diff --git a/glide.lock b/glide.lock index daec23aac..4b9f45666 100644 --- a/glide.lock +++ b/glide.lock @@ -1,12 +1,13 @@ -hash: fa4c40400ed94e105a9a1a0d163ac9c4ecea4598ad4ee4fef5237a39d4f28d0a -updated: 2017-04-07T10:50:34.091189379+01:00 +hash: b1cbcbd938a47a246b0d4d634037b76e63486c63e5867b339f92bcbd7453b75c +updated: 2017-04-07T11:34:46.101385591+01:00 imports: - name: bitbucket.org/ww/goautoneg version: 75cd24fc2f2c2a2088577d12123ddee5f54e0675 - name: cloud.google.com/go - version: c116c7972ec94f148459a304d07a67ecbc770d4b + version: 2e6a95edb1071d750f6d7db777bf66cd2997af6c subpackages: - compute/metadata + - internal - name: github.com/abbot/go-http-auth version: cb4372376e1e00e9f6ab9ec142e029302c9e7140 - name: github.com/ArthurHlt/go-eureka-client @@ -112,9 +113,8 @@ imports: subpackages: - daemon - name: github.com/coreos/pkg - version: 2c77715c4df99b5420ffcae14ead08f52104065d + version: fa29b1d70f0beaddd4c7021607cc3c3be8ce94b8 subpackages: - - capnslog - health - httputil - timeutil @@ -239,6 +239,8 @@ imports: - query - name: github.com/google/gofuzz version: bbcb9da2d746f8bdbd6a936686a0a6067ada0ec5 +- name: github.com/googleapis/gax-go + version: 9af46dd5a1713e8b5cd71106287eba3cefdde50b - name: github.com/gorilla/context version: 1ea25387ff6f684839d82767c1733ff4d4d15d0a - name: github.com/gorilla/websocket @@ -369,7 +371,7 @@ imports: - name: github.com/Sirupsen/logrus version: a283a10442df8dc09befd873fab202bf8a253d6a - name: github.com/spf13/pflag - version: 5644820622454e71517561946e3d94b9f9db6842 + version: 5ccb023bc27df288a957c5e994cd44fd19619465 - name: github.com/streamrail/concurrent-map version: 65a174a3a4188c0b7099acbc6cfa0c53628d3287 - name: github.com/stretchr/objx @@ -457,11 +459,13 @@ imports: - http2 - http2/hpack - idna + - internal/timeseries - lex/httplex - proxy - publicsuffix + - trace - name: golang.org/x/oauth2 - version: 3046bc76d6dfd7d3707f6640f85e42d9c4050f50 + version: 7fdf09982454086d5570c7db3e11f360194830ca subpackages: - google - internal @@ -473,13 +477,9 @@ imports: - unix - windows - name: golang.org/x/text - version: a49bea13b776691cb1b49873e5d8df96ec74831a - repo: https://github.com/golang/text.git - vcs: git + version: 2910a502d2bf9e43193af9d68ca516529614eed3 subpackages: - - . - cases - - internal - internal/tag - language - runes @@ -497,7 +497,7 @@ imports: - googleapi - googleapi/internal/uritemplates - name: google.golang.org/appengine - version: 12d5545dc1cfa6047a286d5e853841b6471f4c19 + version: 4f7eeb5305a4ba1966344836ba4af9996b7b4e05 subpackages: - internal - internal/app_identity @@ -508,11 +508,20 @@ imports: - internal/remote_api - internal/urlfetch - urlfetch -- name: google.golang.org/cloud - version: f20d6dcccb44ed49de45ae3703312cb46e627db1 +- name: google.golang.org/grpc + version: cdee119ee21e61eef7093a41ba148fa83585e143 subpackages: - - compute/metadata + - codes + - credentials + - grpclog - internal + - keepalive + - metadata + - naming + - peer + - stats + - tap + - transport - name: gopkg.in/fsnotify.v1 version: a8a77c9133d2d6fd8334f3260d06f60e8d80a5fb - name: gopkg.in/inf.v0 @@ -538,111 +547,115 @@ imports: - cipher - json - name: gopkg.in/yaml.v2 - version: bef53efd0c76e49e6de55ead051f886bea7e9420 + version: 53feefa2559fb8dfa8d81baad31be332c97d6c77 - name: k8s.io/client-go - version: 1195e3a8ee1a529d53eed7c624527a68555ddf1f + version: e121606b0d09b2e1c467183ee46217fa85a6b672 subpackages: - - 1.5/discovery - - 1.5/kubernetes - - 1.5/kubernetes/typed/apps/v1alpha1 - - 1.5/kubernetes/typed/authentication/v1beta1 - - 1.5/kubernetes/typed/authorization/v1beta1 - - 1.5/kubernetes/typed/autoscaling/v1 - - 1.5/kubernetes/typed/batch/v1 - - 1.5/kubernetes/typed/certificates/v1alpha1 - - 1.5/kubernetes/typed/core/v1 - - 1.5/kubernetes/typed/extensions/v1beta1 - - 1.5/kubernetes/typed/policy/v1alpha1 - - 1.5/kubernetes/typed/rbac/v1alpha1 - - 1.5/kubernetes/typed/storage/v1beta1 - - 1.5/pkg/api - - 1.5/pkg/api/errors - - 1.5/pkg/api/install - - 1.5/pkg/api/meta - - 1.5/pkg/api/meta/metatypes - - 1.5/pkg/api/resource - - 1.5/pkg/api/unversioned - - 1.5/pkg/api/v1 - - 1.5/pkg/api/validation/path - - 1.5/pkg/apimachinery - - 1.5/pkg/apimachinery/announced - - 1.5/pkg/apimachinery/registered - - 1.5/pkg/apis/apps - - 1.5/pkg/apis/apps/install - - 1.5/pkg/apis/apps/v1alpha1 - - 1.5/pkg/apis/authentication - - 1.5/pkg/apis/authentication/install - - 1.5/pkg/apis/authentication/v1beta1 - - 1.5/pkg/apis/authorization - - 1.5/pkg/apis/authorization/install - - 1.5/pkg/apis/authorization/v1beta1 - - 1.5/pkg/apis/autoscaling - - 1.5/pkg/apis/autoscaling/install - - 1.5/pkg/apis/autoscaling/v1 - - 1.5/pkg/apis/batch - - 1.5/pkg/apis/batch/install - - 1.5/pkg/apis/batch/v1 - - 1.5/pkg/apis/batch/v2alpha1 - - 1.5/pkg/apis/certificates - - 1.5/pkg/apis/certificates/install - - 1.5/pkg/apis/certificates/v1alpha1 - - 1.5/pkg/apis/extensions - - 1.5/pkg/apis/extensions/install - - 1.5/pkg/apis/extensions/v1beta1 - - 1.5/pkg/apis/policy - - 1.5/pkg/apis/policy/install - - 1.5/pkg/apis/policy/v1alpha1 - - 1.5/pkg/apis/rbac - - 1.5/pkg/apis/rbac/install - - 1.5/pkg/apis/rbac/v1alpha1 - - 1.5/pkg/apis/storage - - 1.5/pkg/apis/storage/install - - 1.5/pkg/apis/storage/v1beta1 - - 1.5/pkg/auth/user - - 1.5/pkg/conversion - - 1.5/pkg/conversion/queryparams - - 1.5/pkg/fields - - 1.5/pkg/genericapiserver/openapi/common - - 1.5/pkg/labels - - 1.5/pkg/runtime - - 1.5/pkg/runtime/serializer - - 1.5/pkg/runtime/serializer/json - - 1.5/pkg/runtime/serializer/protobuf - - 1.5/pkg/runtime/serializer/recognizer - - 1.5/pkg/runtime/serializer/streaming - - 1.5/pkg/runtime/serializer/versioning - - 1.5/pkg/selection - - 1.5/pkg/third_party/forked/golang/reflect - - 1.5/pkg/types - - 1.5/pkg/util - - 1.5/pkg/util/cert - - 1.5/pkg/util/clock - - 1.5/pkg/util/errors - - 1.5/pkg/util/flowcontrol - - 1.5/pkg/util/framer - - 1.5/pkg/util/integer - - 1.5/pkg/util/intstr - - 1.5/pkg/util/json - - 1.5/pkg/util/labels - - 1.5/pkg/util/net - - 1.5/pkg/util/parsers - - 1.5/pkg/util/rand - - 1.5/pkg/util/runtime - - 1.5/pkg/util/sets - - 1.5/pkg/util/uuid - - 1.5/pkg/util/validation - - 1.5/pkg/util/validation/field - - 1.5/pkg/util/wait - - 1.5/pkg/util/yaml - - 1.5/pkg/version - - 1.5/pkg/watch - - 1.5/pkg/watch/versioned - - 1.5/plugin/pkg/client/auth - - 1.5/plugin/pkg/client/auth/gcp - - 1.5/plugin/pkg/client/auth/oidc - - 1.5/rest - - 1.5/tools/cache - - 1.5/tools/clientcmd/api - - 1.5/tools/metrics - - 1.5/transport + - discovery + - kubernetes + - kubernetes/typed/apps/v1beta1 + - kubernetes/typed/authentication/v1beta1 + - kubernetes/typed/authorization/v1beta1 + - kubernetes/typed/autoscaling/v1 + - kubernetes/typed/batch/v1 + - kubernetes/typed/batch/v2alpha1 + - kubernetes/typed/certificates/v1alpha1 + - kubernetes/typed/core/v1 + - kubernetes/typed/extensions/v1beta1 + - kubernetes/typed/policy/v1beta1 + - kubernetes/typed/rbac/v1alpha1 + - kubernetes/typed/storage/v1beta1 + - pkg/api + - pkg/api/errors + - pkg/api/install + - pkg/api/meta + - pkg/api/meta/metatypes + - pkg/api/resource + - pkg/api/unversioned + - pkg/api/v1 + - pkg/api/validation/path + - pkg/apimachinery + - pkg/apimachinery/announced + - pkg/apimachinery/registered + - pkg/apis/apps + - pkg/apis/apps/install + - pkg/apis/apps/v1beta1 + - pkg/apis/authentication + - pkg/apis/authentication/install + - pkg/apis/authentication/v1beta1 + - pkg/apis/authorization + - pkg/apis/authorization/install + - pkg/apis/authorization/v1beta1 + - pkg/apis/autoscaling + - pkg/apis/autoscaling/install + - pkg/apis/autoscaling/v1 + - pkg/apis/batch + - pkg/apis/batch/install + - pkg/apis/batch/v1 + - pkg/apis/batch/v2alpha1 + - pkg/apis/certificates + - pkg/apis/certificates/install + - pkg/apis/certificates/v1alpha1 + - pkg/apis/extensions + - pkg/apis/extensions/install + - pkg/apis/extensions/v1beta1 + - pkg/apis/policy + - pkg/apis/policy/install + - pkg/apis/policy/v1beta1 + - pkg/apis/rbac + - pkg/apis/rbac/install + - pkg/apis/rbac/v1alpha1 + - pkg/apis/storage + - pkg/apis/storage/install + - pkg/apis/storage/v1beta1 + - pkg/auth/user + - pkg/conversion + - pkg/conversion/queryparams + - pkg/fields + - pkg/genericapiserver/openapi/common + - pkg/labels + - pkg/runtime + - pkg/runtime/serializer + - pkg/runtime/serializer/json + - pkg/runtime/serializer/protobuf + - pkg/runtime/serializer/recognizer + - pkg/runtime/serializer/streaming + - pkg/runtime/serializer/versioning + - pkg/selection + - pkg/third_party/forked/golang/reflect + - pkg/third_party/forked/golang/template + - pkg/types + - pkg/util + - pkg/util/cert + - pkg/util/clock + - pkg/util/diff + - pkg/util/errors + - pkg/util/flowcontrol + - pkg/util/framer + - pkg/util/integer + - pkg/util/intstr + - pkg/util/json + - pkg/util/jsonpath + - pkg/util/labels + - pkg/util/net + - pkg/util/parsers + - pkg/util/rand + - pkg/util/runtime + - pkg/util/sets + - pkg/util/uuid + - pkg/util/validation + - pkg/util/validation/field + - pkg/util/wait + - pkg/util/yaml + - pkg/version + - pkg/watch + - pkg/watch/versioned + - plugin/pkg/client/auth + - plugin/pkg/client/auth/gcp + - plugin/pkg/client/auth/oidc + - rest + - tools/cache + - tools/clientcmd/api + - tools/metrics + - transport testImports: [] diff --git a/glide.yaml b/glide.yaml index 98bd95acb..62091d1b6 100644 --- a/glide.yaml +++ b/glide.yaml @@ -89,7 +89,7 @@ import: - package: github.com/satori/go.uuid version: ^1.1.0 - package: k8s.io/client-go - version: ^v1.5.0 + version: v2.0.0 - package: github.com/gambol99/go-marathon version: ^0.5.1 - package: github.com/ArthurHlt/go-eureka-client @@ -131,7 +131,7 @@ import: - service/ec2 - service/ecs - package: cloud.google.com/go - version: v0.6.0 + version: v0.7.0 subpackages: - compute/metadata - package: github.com/gogo/protobuf @@ -140,3 +140,9 @@ import: - proto - package: github.com/rancher/go-rancher version: 2c43ff300f3eafcbd7d0b89b10427fc630efdc1e +- package: golang.org/x/oauth2/google + version: 7fdf09982454086d5570c7db3e11f360194830ca +- package: github.com/googleapis/gax-go + version: 9af46dd5a1713e8b5cd71106287eba3cefdde50b +- package: google.golang.org/grpc + version: v1.2.0 diff --git a/provider/k8s/client.go b/provider/k8s/client.go index 36a6a26f1..53e63049a 100644 --- a/provider/k8s/client.go +++ b/provider/k8s/client.go @@ -6,16 +6,16 @@ import ( "io/ioutil" "time" - "k8s.io/client-go/1.5/kubernetes" - "k8s.io/client-go/1.5/pkg/api" - "k8s.io/client-go/1.5/pkg/api/v1" - "k8s.io/client-go/1.5/pkg/apis/extensions/v1beta1" - "k8s.io/client-go/1.5/pkg/fields" - "k8s.io/client-go/1.5/pkg/labels" - "k8s.io/client-go/1.5/pkg/runtime" - "k8s.io/client-go/1.5/pkg/watch" - "k8s.io/client-go/1.5/rest" - "k8s.io/client-go/1.5/tools/cache" + "k8s.io/client-go/kubernetes" + "k8s.io/client-go/pkg/api" + "k8s.io/client-go/pkg/api/v1" + "k8s.io/client-go/pkg/apis/extensions/v1beta1" + "k8s.io/client-go/pkg/fields" + "k8s.io/client-go/pkg/labels" + "k8s.io/client-go/pkg/runtime" + "k8s.io/client-go/pkg/watch" + "k8s.io/client-go/rest" + "k8s.io/client-go/tools/cache" ) const resyncPeriod = time.Minute * 5 @@ -111,7 +111,7 @@ func (c *clientImpl) GetIngresses(namespaces Namespaces) []*v1beta1.Ingress { // WatchIngresses starts the watch of Kubernetes Ingresses resources and updates the corresponding store func (c *clientImpl) WatchIngresses(labelSelector labels.Selector, watchCh chan<- interface{}, stopCh <-chan struct{}) { source := NewListWatchFromClient( - c.clientset.ExtensionsClient, + c.clientset.ExtensionsV1beta1().RESTClient(), "ingresses", api.NamespaceAll, fields.Everything(), @@ -157,7 +157,7 @@ func (c *clientImpl) GetService(namespace, name string) (*v1.Service, bool, erro // WatchServices starts the watch of Kubernetes Service resources and updates the corresponding store func (c *clientImpl) WatchServices(watchCh chan<- interface{}, stopCh <-chan struct{}) { source := cache.NewListWatchFromClient( - c.clientset.CoreClient, + c.clientset.CoreV1().RESTClient(), "services", api.NamespaceAll, fields.Everything()) @@ -186,7 +186,7 @@ func (c *clientImpl) GetEndpoints(namespace, name string) (*v1.Endpoints, bool, // WatchEndpoints starts the watch of Kubernetes Endpoints resources and updates the corresponding store func (c *clientImpl) WatchEndpoints(watchCh chan<- interface{}, stopCh <-chan struct{}) { source := cache.NewListWatchFromClient( - c.clientset.CoreClient, + c.clientset.CoreV1().RESTClient(), "endpoints", api.NamespaceAll, fields.Everything()) diff --git a/provider/kubernetes.go b/provider/kubernetes.go index da93a55ab..3300d7105 100644 --- a/provider/kubernetes.go +++ b/provider/kubernetes.go @@ -15,8 +15,8 @@ import ( "github.com/containous/traefik/provider/k8s" "github.com/containous/traefik/safe" "github.com/containous/traefik/types" - "k8s.io/client-go/1.5/pkg/api/v1" - "k8s.io/client-go/1.5/pkg/util/intstr" + "k8s.io/client-go/pkg/api/v1" + "k8s.io/client-go/pkg/util/intstr" ) var _ Provider = (*Kubernetes)(nil) diff --git a/provider/kubernetes_test.go b/provider/kubernetes_test.go index 667662e63..086322a0a 100644 --- a/provider/kubernetes_test.go +++ b/provider/kubernetes_test.go @@ -9,9 +9,9 @@ import ( "github.com/containous/traefik/provider/k8s" "github.com/containous/traefik/types" - "k8s.io/client-go/1.5/pkg/api/v1" - "k8s.io/client-go/1.5/pkg/apis/extensions/v1beta1" - "k8s.io/client-go/1.5/pkg/util/intstr" + "k8s.io/client-go/pkg/api/v1" + "k8s.io/client-go/pkg/apis/extensions/v1beta1" + "k8s.io/client-go/pkg/util/intstr" ) func TestLoadIngresses(t *testing.T) { diff --git a/vendor/cloud.google.com/go/internal/cloud.go b/vendor/cloud.google.com/go/internal/cloud.go new file mode 100644 index 000000000..8e0c8f8e5 --- /dev/null +++ b/vendor/cloud.google.com/go/internal/cloud.go @@ -0,0 +1,64 @@ +// Copyright 2014 Google Inc. 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 internal provides support for the cloud packages. +// +// Users should not import this package directly. +package internal + +import ( + "fmt" + "net/http" +) + +const userAgent = "gcloud-golang/0.1" + +// Transport is an http.RoundTripper that appends Google Cloud client's +// user-agent to the original request's user-agent header. +type Transport struct { + // TODO(bradfitz): delete internal.Transport. It's too wrappy for what it does. + // Do User-Agent some other way. + + // Base is the actual http.RoundTripper + // requests will use. It must not be nil. + Base http.RoundTripper +} + +// RoundTrip appends a user-agent to the existing user-agent +// header and delegates the request to the base http.RoundTripper. +func (t *Transport) RoundTrip(req *http.Request) (*http.Response, error) { + req = cloneRequest(req) + ua := req.Header.Get("User-Agent") + if ua == "" { + ua = userAgent + } else { + ua = fmt.Sprintf("%s %s", ua, userAgent) + } + req.Header.Set("User-Agent", ua) + return t.Base.RoundTrip(req) +} + +// 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 +} diff --git a/vendor/cloud.google.com/go/internal/retry.go b/vendor/cloud.google.com/go/internal/retry.go new file mode 100644 index 000000000..79995be4c --- /dev/null +++ b/vendor/cloud.google.com/go/internal/retry.go @@ -0,0 +1,55 @@ +// Copyright 2016 Google Inc. 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 internal + +import ( + "fmt" + "time" + + gax "github.com/googleapis/gax-go" + + "golang.org/x/net/context" +) + +// Retry calls the supplied function f repeatedly according to the provided +// backoff parameters. It returns when one of the following occurs: +// When f's first return value is true, Retry immediately returns with f's second +// return value. +// When the provided context is done, Retry returns with ctx.Err(). +func Retry(ctx context.Context, bo gax.Backoff, f func() (stop bool, err error)) error { + return retry(ctx, bo, f, gax.Sleep) +} + +func retry(ctx context.Context, bo gax.Backoff, f func() (stop bool, err error), + sleep func(context.Context, time.Duration) error) error { + var lastErr error + for { + stop, err := f() + if stop { + return err + } + // Remember the last "real" error from f. + if err != nil && err != context.Canceled && err != context.DeadlineExceeded { + lastErr = err + } + p := bo.Pause() + if cerr := sleep(ctx, p); cerr != nil { + if lastErr != nil { + return fmt.Errorf("%v; last function err: %v", cerr, lastErr) + } + return cerr + } + } +} diff --git a/vendor/github.com/coreos/pkg/capnslog/formatters.go b/vendor/github.com/coreos/pkg/capnslog/formatters.go deleted file mode 100644 index 99ec6f824..000000000 --- a/vendor/github.com/coreos/pkg/capnslog/formatters.go +++ /dev/null @@ -1,106 +0,0 @@ -// Copyright 2015 CoreOS, Inc. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -package capnslog - -import ( - "bufio" - "fmt" - "io" - "runtime" - "strings" - "time" -) - -type Formatter interface { - Format(pkg string, level LogLevel, depth int, entries ...interface{}) - Flush() -} - -func NewStringFormatter(w io.Writer) *StringFormatter { - return &StringFormatter{ - w: bufio.NewWriter(w), - } -} - -type StringFormatter struct { - w *bufio.Writer -} - -func (s *StringFormatter) Format(pkg string, l LogLevel, i int, entries ...interface{}) { - now := time.Now().UTC() - s.w.WriteString(now.Format(time.RFC3339)) - s.w.WriteByte(' ') - writeEntries(s.w, pkg, l, i, entries...) - s.Flush() -} - -func writeEntries(w *bufio.Writer, pkg string, _ LogLevel, _ int, entries ...interface{}) { - if pkg != "" { - w.WriteString(pkg + ": ") - } - str := fmt.Sprint(entries...) - endsInNL := strings.HasSuffix(str, "\n") - w.WriteString(str) - if !endsInNL { - w.WriteString("\n") - } -} - -func (s *StringFormatter) Flush() { - s.w.Flush() -} - -func NewPrettyFormatter(w io.Writer, debug bool) Formatter { - return &PrettyFormatter{ - w: bufio.NewWriter(w), - debug: debug, - } -} - -type PrettyFormatter struct { - w *bufio.Writer - debug bool -} - -func (c *PrettyFormatter) Format(pkg string, l LogLevel, depth int, entries ...interface{}) { - now := time.Now() - ts := now.Format("2006-01-02 15:04:05") - c.w.WriteString(ts) - ms := now.Nanosecond() / 1000 - c.w.WriteString(fmt.Sprintf(".%06d", ms)) - if c.debug { - _, file, line, ok := runtime.Caller(depth) // It's always the same number of frames to the user's call. - if !ok { - file = "???" - line = 1 - } else { - slash := strings.LastIndex(file, "/") - if slash >= 0 { - file = file[slash+1:] - } - } - if line < 0 { - line = 0 // not a real line number - } - c.w.WriteString(fmt.Sprintf(" [%s:%d]", file, line)) - } - c.w.WriteString(fmt.Sprint(" ", l.Char(), " | ")) - writeEntries(c.w, pkg, l, depth, entries...) - c.Flush() -} - -func (c *PrettyFormatter) Flush() { - c.w.Flush() -} diff --git a/vendor/github.com/coreos/pkg/capnslog/glog_formatter.go b/vendor/github.com/coreos/pkg/capnslog/glog_formatter.go deleted file mode 100644 index 426603ef3..000000000 --- a/vendor/github.com/coreos/pkg/capnslog/glog_formatter.go +++ /dev/null @@ -1,96 +0,0 @@ -// Copyright 2015 CoreOS, Inc. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -package capnslog - -import ( - "bufio" - "bytes" - "io" - "os" - "runtime" - "strconv" - "strings" - "time" -) - -var pid = os.Getpid() - -type GlogFormatter struct { - StringFormatter -} - -func NewGlogFormatter(w io.Writer) *GlogFormatter { - g := &GlogFormatter{} - g.w = bufio.NewWriter(w) - return g -} - -func (g GlogFormatter) Format(pkg string, level LogLevel, depth int, entries ...interface{}) { - g.w.Write(GlogHeader(level, depth+1)) - g.StringFormatter.Format(pkg, level, depth+1, entries...) -} - -func GlogHeader(level LogLevel, depth int) []byte { - // Lmmdd hh:mm:ss.uuuuuu threadid file:line] - now := time.Now().UTC() - _, file, line, ok := runtime.Caller(depth) // It's always the same number of frames to the user's call. - if !ok { - file = "???" - line = 1 - } else { - slash := strings.LastIndex(file, "/") - if slash >= 0 { - file = file[slash+1:] - } - } - if line < 0 { - line = 0 // not a real line number - } - buf := &bytes.Buffer{} - buf.Grow(30) - _, month, day := now.Date() - hour, minute, second := now.Clock() - buf.WriteString(level.Char()) - twoDigits(buf, int(month)) - twoDigits(buf, day) - buf.WriteByte(' ') - twoDigits(buf, hour) - buf.WriteByte(':') - twoDigits(buf, minute) - buf.WriteByte(':') - twoDigits(buf, second) - buf.WriteByte('.') - buf.WriteString(strconv.Itoa(now.Nanosecond() / 1000)) - buf.WriteByte('Z') - buf.WriteByte(' ') - buf.WriteString(strconv.Itoa(pid)) - buf.WriteByte(' ') - buf.WriteString(file) - buf.WriteByte(':') - buf.WriteString(strconv.Itoa(line)) - buf.WriteByte(']') - buf.WriteByte(' ') - return buf.Bytes() -} - -const digits = "0123456789" - -func twoDigits(b *bytes.Buffer, d int) { - c2 := digits[d%10] - d /= 10 - c1 := digits[d%10] - b.WriteByte(c1) - b.WriteByte(c2) -} diff --git a/vendor/github.com/coreos/pkg/capnslog/init.go b/vendor/github.com/coreos/pkg/capnslog/init.go deleted file mode 100644 index 44b8cd361..000000000 --- a/vendor/github.com/coreos/pkg/capnslog/init.go +++ /dev/null @@ -1,49 +0,0 @@ -// Copyright 2015 CoreOS, Inc. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT 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 capnslog - -import ( - "io" - "os" - "syscall" -) - -// Here's where the opinionation comes in. We need some sensible defaults, -// especially after taking over the log package. Your project (whatever it may -// be) may see things differently. That's okay; there should be no defaults in -// the main package that cannot be controlled or overridden programatically, -// otherwise it's a bug. Doing so is creating your own init_log.go file much -// like this one. - -func init() { - initHijack() - - // Go `log` pacakge uses os.Stderr. - SetFormatter(NewDefaultFormatter(os.Stderr)) - SetGlobalLogLevel(INFO) -} - -func NewDefaultFormatter(out io.Writer) Formatter { - if syscall.Getppid() == 1 { - // We're running under init, which may be systemd. - f, err := NewJournaldFormatter() - if err == nil { - return f - } - } - return NewPrettyFormatter(out, false) -} diff --git a/vendor/github.com/coreos/pkg/capnslog/init_windows.go b/vendor/github.com/coreos/pkg/capnslog/init_windows.go deleted file mode 100644 index 455305065..000000000 --- a/vendor/github.com/coreos/pkg/capnslog/init_windows.go +++ /dev/null @@ -1,25 +0,0 @@ -// Copyright 2015 CoreOS, Inc. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -package capnslog - -import "os" - -func init() { - initHijack() - - // Go `log` package uses os.Stderr. - SetFormatter(NewPrettyFormatter(os.Stderr, false)) - SetGlobalLogLevel(INFO) -} diff --git a/vendor/github.com/coreos/pkg/capnslog/journald_formatter.go b/vendor/github.com/coreos/pkg/capnslog/journald_formatter.go deleted file mode 100644 index 72e05207c..000000000 --- a/vendor/github.com/coreos/pkg/capnslog/journald_formatter.go +++ /dev/null @@ -1,68 +0,0 @@ -// Copyright 2015 CoreOS, Inc. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT 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 capnslog - -import ( - "errors" - "fmt" - "os" - "path/filepath" - - "github.com/coreos/go-systemd/journal" -) - -func NewJournaldFormatter() (Formatter, error) { - if !journal.Enabled() { - return nil, errors.New("No systemd detected") - } - return &journaldFormatter{}, nil -} - -type journaldFormatter struct{} - -func (j *journaldFormatter) Format(pkg string, l LogLevel, _ int, entries ...interface{}) { - var pri journal.Priority - switch l { - case CRITICAL: - pri = journal.PriCrit - case ERROR: - pri = journal.PriErr - case WARNING: - pri = journal.PriWarning - case NOTICE: - pri = journal.PriNotice - case INFO: - pri = journal.PriInfo - case DEBUG: - pri = journal.PriDebug - case TRACE: - pri = journal.PriDebug - default: - panic("Unhandled loglevel") - } - msg := fmt.Sprint(entries...) - tags := map[string]string{ - "PACKAGE": pkg, - "SYSLOG_IDENTIFIER": filepath.Base(os.Args[0]), - } - err := journal.Send(msg, pri, tags) - if err != nil { - fmt.Fprintln(os.Stderr, err) - } -} - -func (j *journaldFormatter) Flush() {} diff --git a/vendor/github.com/coreos/pkg/capnslog/log_hijack.go b/vendor/github.com/coreos/pkg/capnslog/log_hijack.go deleted file mode 100644 index 970086b9f..000000000 --- a/vendor/github.com/coreos/pkg/capnslog/log_hijack.go +++ /dev/null @@ -1,39 +0,0 @@ -// Copyright 2015 CoreOS, Inc. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -package capnslog - -import ( - "log" -) - -func initHijack() { - pkg := NewPackageLogger("log", "") - w := packageWriter{pkg} - log.SetFlags(0) - log.SetPrefix("") - log.SetOutput(w) -} - -type packageWriter struct { - pl *PackageLogger -} - -func (p packageWriter) Write(b []byte) (int, error) { - if p.pl.level < INFO { - return 0, nil - } - p.pl.internalLog(calldepth+2, INFO, string(b)) - return len(b), nil -} diff --git a/vendor/github.com/coreos/pkg/capnslog/logmap.go b/vendor/github.com/coreos/pkg/capnslog/logmap.go deleted file mode 100644 index 849544883..000000000 --- a/vendor/github.com/coreos/pkg/capnslog/logmap.go +++ /dev/null @@ -1,240 +0,0 @@ -// Copyright 2015 CoreOS, Inc. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -package capnslog - -import ( - "errors" - "strings" - "sync" -) - -// LogLevel is the set of all log levels. -type LogLevel int8 - -const ( - // CRITICAL is the lowest log level; only errors which will end the program will be propagated. - CRITICAL LogLevel = iota - 1 - // ERROR is for errors that are not fatal but lead to troubling behavior. - ERROR - // WARNING is for errors which are not fatal and not errors, but are unusual. Often sourced from misconfigurations. - WARNING - // NOTICE is for normal but significant conditions. - NOTICE - // INFO is a log level for common, everyday log updates. - INFO - // DEBUG is the default hidden level for more verbose updates about internal processes. - DEBUG - // TRACE is for (potentially) call by call tracing of programs. - TRACE -) - -// Char returns a single-character representation of the log level. -func (l LogLevel) Char() string { - switch l { - case CRITICAL: - return "C" - case ERROR: - return "E" - case WARNING: - return "W" - case NOTICE: - return "N" - case INFO: - return "I" - case DEBUG: - return "D" - case TRACE: - return "T" - default: - panic("Unhandled loglevel") - } -} - -// String returns a multi-character representation of the log level. -func (l LogLevel) String() string { - switch l { - case CRITICAL: - return "CRITICAL" - case ERROR: - return "ERROR" - case WARNING: - return "WARNING" - case NOTICE: - return "NOTICE" - case INFO: - return "INFO" - case DEBUG: - return "DEBUG" - case TRACE: - return "TRACE" - default: - panic("Unhandled loglevel") - } -} - -// Update using the given string value. Fulfills the flag.Value interface. -func (l *LogLevel) Set(s string) error { - value, err := ParseLevel(s) - if err != nil { - return err - } - - *l = value - return nil -} - -// ParseLevel translates some potential loglevel strings into their corresponding levels. -func ParseLevel(s string) (LogLevel, error) { - switch s { - case "CRITICAL", "C": - return CRITICAL, nil - case "ERROR", "0", "E": - return ERROR, nil - case "WARNING", "1", "W": - return WARNING, nil - case "NOTICE", "2", "N": - return NOTICE, nil - case "INFO", "3", "I": - return INFO, nil - case "DEBUG", "4", "D": - return DEBUG, nil - case "TRACE", "5", "T": - return TRACE, nil - } - return CRITICAL, errors.New("couldn't parse log level " + s) -} - -type RepoLogger map[string]*PackageLogger - -type loggerStruct struct { - sync.Mutex - repoMap map[string]RepoLogger - formatter Formatter -} - -// logger is the global logger -var logger = new(loggerStruct) - -// SetGlobalLogLevel sets the log level for all packages in all repositories -// registered with capnslog. -func SetGlobalLogLevel(l LogLevel) { - logger.Lock() - defer logger.Unlock() - for _, r := range logger.repoMap { - r.setRepoLogLevelInternal(l) - } -} - -// GetRepoLogger may return the handle to the repository's set of packages' loggers. -func GetRepoLogger(repo string) (RepoLogger, error) { - logger.Lock() - defer logger.Unlock() - r, ok := logger.repoMap[repo] - if !ok { - return nil, errors.New("no packages registered for repo " + repo) - } - return r, nil -} - -// MustRepoLogger returns the handle to the repository's packages' loggers. -func MustRepoLogger(repo string) RepoLogger { - r, err := GetRepoLogger(repo) - if err != nil { - panic(err) - } - return r -} - -// SetRepoLogLevel sets the log level for all packages in the repository. -func (r RepoLogger) SetRepoLogLevel(l LogLevel) { - logger.Lock() - defer logger.Unlock() - r.setRepoLogLevelInternal(l) -} - -func (r RepoLogger) setRepoLogLevelInternal(l LogLevel) { - for _, v := range r { - v.level = l - } -} - -// ParseLogLevelConfig parses a comma-separated string of "package=loglevel", in -// order, and returns a map of the results, for use in SetLogLevel. -func (r RepoLogger) ParseLogLevelConfig(conf string) (map[string]LogLevel, error) { - setlist := strings.Split(conf, ",") - out := make(map[string]LogLevel) - for _, setstring := range setlist { - setting := strings.Split(setstring, "=") - if len(setting) != 2 { - return nil, errors.New("oddly structured `pkg=level` option: " + setstring) - } - l, err := ParseLevel(setting[1]) - if err != nil { - return nil, err - } - out[setting[0]] = l - } - return out, nil -} - -// SetLogLevel takes a map of package names within a repository to their desired -// loglevel, and sets the levels appropriately. Unknown packages are ignored. -// "*" is a special package name that corresponds to all packages, and will be -// processed first. -func (r RepoLogger) SetLogLevel(m map[string]LogLevel) { - logger.Lock() - defer logger.Unlock() - if l, ok := m["*"]; ok { - r.setRepoLogLevelInternal(l) - } - for k, v := range m { - l, ok := r[k] - if !ok { - continue - } - l.level = v - } -} - -// SetFormatter sets the formatting function for all logs. -func SetFormatter(f Formatter) { - logger.Lock() - defer logger.Unlock() - logger.formatter = f -} - -// NewPackageLogger creates a package logger object. -// This should be defined as a global var in your package, referencing your repo. -func NewPackageLogger(repo string, pkg string) (p *PackageLogger) { - logger.Lock() - defer logger.Unlock() - if logger.repoMap == nil { - logger.repoMap = make(map[string]RepoLogger) - } - r, rok := logger.repoMap[repo] - if !rok { - logger.repoMap[repo] = make(RepoLogger) - r = logger.repoMap[repo] - } - p, pok := r[pkg] - if !pok { - r[pkg] = &PackageLogger{ - pkg: pkg, - level: INFO, - } - p = r[pkg] - } - return -} diff --git a/vendor/github.com/coreos/pkg/capnslog/pkg_logger.go b/vendor/github.com/coreos/pkg/capnslog/pkg_logger.go deleted file mode 100644 index 32d2f16a9..000000000 --- a/vendor/github.com/coreos/pkg/capnslog/pkg_logger.go +++ /dev/null @@ -1,158 +0,0 @@ -// Copyright 2015 CoreOS, Inc. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -package capnslog - -import ( - "fmt" - "os" -) - -type PackageLogger struct { - pkg string - level LogLevel -} - -const calldepth = 2 - -func (p *PackageLogger) internalLog(depth int, inLevel LogLevel, entries ...interface{}) { - if inLevel != CRITICAL && p.level < inLevel { - return - } - logger.Lock() - defer logger.Unlock() - if logger.formatter != nil { - logger.formatter.Format(p.pkg, inLevel, depth+1, entries...) - } -} - -func (p *PackageLogger) LevelAt(l LogLevel) bool { - return p.level >= l -} - -// Log a formatted string at any level between ERROR and TRACE -func (p *PackageLogger) Logf(l LogLevel, format string, args ...interface{}) { - p.internalLog(calldepth, l, fmt.Sprintf(format, args...)) -} - -// Log a message at any level between ERROR and TRACE -func (p *PackageLogger) Log(l LogLevel, args ...interface{}) { - p.internalLog(calldepth, l, fmt.Sprint(args...)) -} - -// log stdlib compatibility - -func (p *PackageLogger) Println(args ...interface{}) { - p.internalLog(calldepth, INFO, fmt.Sprintln(args...)) -} - -func (p *PackageLogger) Printf(format string, args ...interface{}) { - p.internalLog(calldepth, INFO, fmt.Sprintf(format, args...)) -} - -func (p *PackageLogger) Print(args ...interface{}) { - p.internalLog(calldepth, INFO, fmt.Sprint(args...)) -} - -// Panic and fatal - -func (p *PackageLogger) Panicf(format string, args ...interface{}) { - s := fmt.Sprintf(format, args...) - p.internalLog(calldepth, CRITICAL, s) - panic(s) -} - -func (p *PackageLogger) Panic(args ...interface{}) { - s := fmt.Sprint(args...) - p.internalLog(calldepth, CRITICAL, s) - panic(s) -} - -func (p *PackageLogger) Fatalf(format string, args ...interface{}) { - s := fmt.Sprintf(format, args...) - p.internalLog(calldepth, CRITICAL, s) - os.Exit(1) -} - -func (p *PackageLogger) Fatal(args ...interface{}) { - s := fmt.Sprint(args...) - p.internalLog(calldepth, CRITICAL, s) - os.Exit(1) -} - -// Error Functions - -func (p *PackageLogger) Errorf(format string, args ...interface{}) { - p.internalLog(calldepth, ERROR, fmt.Sprintf(format, args...)) -} - -func (p *PackageLogger) Error(entries ...interface{}) { - p.internalLog(calldepth, ERROR, entries...) -} - -// Warning Functions - -func (p *PackageLogger) Warningf(format string, args ...interface{}) { - p.internalLog(calldepth, WARNING, fmt.Sprintf(format, args...)) -} - -func (p *PackageLogger) Warning(entries ...interface{}) { - p.internalLog(calldepth, WARNING, entries...) -} - -// Notice Functions - -func (p *PackageLogger) Noticef(format string, args ...interface{}) { - p.internalLog(calldepth, NOTICE, fmt.Sprintf(format, args...)) -} - -func (p *PackageLogger) Notice(entries ...interface{}) { - p.internalLog(calldepth, NOTICE, entries...) -} - -// Info Functions - -func (p *PackageLogger) Infof(format string, args ...interface{}) { - p.internalLog(calldepth, INFO, fmt.Sprintf(format, args...)) -} - -func (p *PackageLogger) Info(entries ...interface{}) { - p.internalLog(calldepth, INFO, entries...) -} - -// Debug Functions - -func (p *PackageLogger) Debugf(format string, args ...interface{}) { - p.internalLog(calldepth, DEBUG, fmt.Sprintf(format, args...)) -} - -func (p *PackageLogger) Debug(entries ...interface{}) { - p.internalLog(calldepth, DEBUG, entries...) -} - -// Trace Functions - -func (p *PackageLogger) Tracef(format string, args ...interface{}) { - p.internalLog(calldepth, TRACE, fmt.Sprintf(format, args...)) -} - -func (p *PackageLogger) Trace(entries ...interface{}) { - p.internalLog(calldepth, TRACE, entries...) -} - -func (p *PackageLogger) Flush() { - logger.Lock() - defer logger.Unlock() - logger.formatter.Flush() -} diff --git a/vendor/github.com/coreos/pkg/capnslog/syslog_formatter.go b/vendor/github.com/coreos/pkg/capnslog/syslog_formatter.go deleted file mode 100644 index 4be5a1f2d..000000000 --- a/vendor/github.com/coreos/pkg/capnslog/syslog_formatter.go +++ /dev/null @@ -1,65 +0,0 @@ -// Copyright 2015 CoreOS, Inc. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT 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 capnslog - -import ( - "fmt" - "log/syslog" -) - -func NewSyslogFormatter(w *syslog.Writer) Formatter { - return &syslogFormatter{w} -} - -func NewDefaultSyslogFormatter(tag string) (Formatter, error) { - w, err := syslog.New(syslog.LOG_DEBUG, tag) - if err != nil { - return nil, err - } - return NewSyslogFormatter(w), nil -} - -type syslogFormatter struct { - w *syslog.Writer -} - -func (s *syslogFormatter) Format(pkg string, l LogLevel, _ int, entries ...interface{}) { - for _, entry := range entries { - str := fmt.Sprint(entry) - switch l { - case CRITICAL: - s.w.Crit(str) - case ERROR: - s.w.Err(str) - case WARNING: - s.w.Warning(str) - case NOTICE: - s.w.Notice(str) - case INFO: - s.w.Info(str) - case DEBUG: - s.w.Debug(str) - case TRACE: - s.w.Debug(str) - default: - panic("Unhandled loglevel") - } - } -} - -func (s *syslogFormatter) Flush() { -} diff --git a/vendor/github.com/googleapis/gax-go/LICENSE b/vendor/github.com/googleapis/gax-go/LICENSE new file mode 100644 index 000000000..6d16b6578 --- /dev/null +++ b/vendor/github.com/googleapis/gax-go/LICENSE @@ -0,0 +1,27 @@ +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. diff --git a/vendor/github.com/googleapis/gax-go/call_option.go b/vendor/github.com/googleapis/gax-go/call_option.go new file mode 100644 index 000000000..536cb8ce3 --- /dev/null +++ b/vendor/github.com/googleapis/gax-go/call_option.go @@ -0,0 +1,149 @@ +// 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 gax + +import ( + "math/rand" + "time" + + "google.golang.org/grpc" + "google.golang.org/grpc/codes" +) + +// CallOption is an option used by Invoke to control behaviors of RPC calls. +// CallOption works by modifying relevant fields of CallSettings. +type CallOption interface { + // Resolve applies the option by modifying cs. + Resolve(cs *CallSettings) +} + +// Retryer is used by Invoke to determine retry behavior. +type Retryer interface { + // Retry reports whether a request should be retriedand how long to pause before retrying + // if the previous attempt returned with err. Invoke never calls Retry with nil error. + Retry(err error) (pause time.Duration, shouldRetry bool) +} + +type retryerOption func() Retryer + +func (o retryerOption) Resolve(s *CallSettings) { + s.Retry = o +} + +// WithRetry sets CallSettings.Retry to fn. +func WithRetry(fn func() Retryer) CallOption { + return retryerOption(fn) +} + +// OnCodes returns a Retryer that retries if and only if +// the previous attempt returns a GRPC error whose error code is stored in cc. +// Pause times between retries are specified by bo. +// +// bo is only used for its parameters; each Retryer has its own copy. +func OnCodes(cc []codes.Code, bo Backoff) Retryer { + return &boRetryer{ + backoff: bo, + codes: append([]codes.Code(nil), cc...), + } +} + +type boRetryer struct { + backoff Backoff + codes []codes.Code +} + +func (r *boRetryer) Retry(err error) (time.Duration, bool) { + c := grpc.Code(err) + for _, rc := range r.codes { + if c == rc { + return r.backoff.Pause(), true + } + } + return 0, false +} + +// Backoff implements exponential backoff. +// The wait time between retries is a random value between 0 and the "retry envelope". +// The envelope starts at Initial and increases by the factor of Multiplier every retry, +// but is capped at Max. +type Backoff struct { + // Initial is the initial value of the retry envelope, defaults to 1 second. + Initial time.Duration + + // Max is the maximum value of the retry envelope, defaults to 30 seconds. + Max time.Duration + + // Multiplier is the factor by which the retry envelope increases. + // It should be greater than 1 and defaults to 2. + Multiplier float64 + + // cur is the current retry envelope + cur time.Duration +} + +func (bo *Backoff) Pause() time.Duration { + if bo.Initial == 0 { + bo.Initial = time.Second + } + if bo.cur == 0 { + bo.cur = bo.Initial + } + if bo.Max == 0 { + bo.Max = 30 * time.Second + } + if bo.Multiplier < 1 { + bo.Multiplier = 2 + } + d := time.Duration(rand.Int63n(int64(bo.cur))) + bo.cur = time.Duration(float64(bo.cur) * bo.Multiplier) + if bo.cur > bo.Max { + bo.cur = bo.Max + } + return d +} + +type grpcOpt []grpc.CallOption + +func (o grpcOpt) Resolve(s *CallSettings) { + s.GRPC = o +} + +func WithGRPCOptions(opt ...grpc.CallOption) CallOption { + return grpcOpt(append([]grpc.CallOption(nil), opt...)) +} + +type CallSettings struct { + // Retry returns a Retryer to be used to control retry logic of a method call. + // If Retry is nil or the returned Retryer is nil, the call will not be retried. + Retry func() Retryer + + // CallOptions to be forwarded to GRPC. + GRPC []grpc.CallOption +} diff --git a/vendor/github.com/googleapis/gax-go/gax.go b/vendor/github.com/googleapis/gax-go/gax.go new file mode 100644 index 000000000..5ebedff0d --- /dev/null +++ b/vendor/github.com/googleapis/gax-go/gax.go @@ -0,0 +1,40 @@ +// 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 gax contains a set of modules which aid the development of APIs +// for clients and servers based on gRPC and Google API conventions. +// +// Application code will rarely need to use this library directly. +// However, code generated automatically from API definition files can use it +// to simplify code generation and to provide more convenient and idiomatic API surfaces. +// +// This project is currently experimental and not supported. +package gax + +const Version = "0.1.0" diff --git a/vendor/github.com/googleapis/gax-go/header.go b/vendor/github.com/googleapis/gax-go/header.go new file mode 100644 index 000000000..d81455ecc --- /dev/null +++ b/vendor/github.com/googleapis/gax-go/header.go @@ -0,0 +1,24 @@ +package gax + +import "bytes" + +// XGoogHeader is for use by the Google Cloud Libraries only. +// +// XGoogHeader formats key-value pairs. +// The resulting string is suitable for x-goog-api-client header. +func XGoogHeader(keyval ...string) string { + if len(keyval) == 0 { + return "" + } + if len(keyval)%2 != 0 { + panic("gax.Header: odd argument count") + } + var buf bytes.Buffer + for i := 0; i < len(keyval); i += 2 { + buf.WriteByte(' ') + buf.WriteString(keyval[i]) + buf.WriteByte('/') + buf.WriteString(keyval[i+1]) + } + return buf.String()[1:] +} diff --git a/vendor/github.com/googleapis/gax-go/invoke.go b/vendor/github.com/googleapis/gax-go/invoke.go new file mode 100644 index 000000000..86049d826 --- /dev/null +++ b/vendor/github.com/googleapis/gax-go/invoke.go @@ -0,0 +1,90 @@ +// 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 gax + +import ( + "time" + + "golang.org/x/net/context" +) + +// A user defined call stub. +type APICall func(context.Context, CallSettings) error + +// Invoke calls the given APICall, +// performing retries as specified by opts, if any. +func Invoke(ctx context.Context, call APICall, opts ...CallOption) error { + var settings CallSettings + for _, opt := range opts { + opt.Resolve(&settings) + } + return invoke(ctx, call, settings, Sleep) +} + +// Sleep is similar to time.Sleep, but it can be interrupted by ctx.Done() closing. +// If interrupted, Sleep returns ctx.Err(). +func Sleep(ctx context.Context, d time.Duration) error { + t := time.NewTimer(d) + select { + case <-ctx.Done(): + t.Stop() + return ctx.Err() + case <-t.C: + return nil + } +} + +type sleeper func(ctx context.Context, d time.Duration) error + +// invoke implements Invoke, taking an additional sleeper argument for testing. +func invoke(ctx context.Context, call APICall, settings CallSettings, sp sleeper) error { + var retryer Retryer + for { + err := call(ctx, settings) + if err == nil { + return nil + } + if settings.Retry == nil { + return err + } + if retryer == nil { + if r := settings.Retry(); r != nil { + retryer = r + } else { + return err + } + } + if d, ok := retryer.Retry(err); !ok { + return err + } else if err = sp(ctx, d); err != nil { + return err + } + } +} diff --git a/vendor/github.com/googleapis/gax-go/path_template.go b/vendor/github.com/googleapis/gax-go/path_template.go new file mode 100644 index 000000000..41bda94cb --- /dev/null +++ b/vendor/github.com/googleapis/gax-go/path_template.go @@ -0,0 +1,176 @@ +// 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 gax + +import ( + "errors" + "fmt" + "strings" +) + +type matcher interface { + match([]string) (int, error) + String() string +} + +type segment struct { + matcher + name string +} + +type labelMatcher string + +func (ls labelMatcher) match(segments []string) (int, error) { + if len(segments) == 0 { + return 0, fmt.Errorf("expected %s but no more segments found", ls) + } + if segments[0] != string(ls) { + return 0, fmt.Errorf("expected %s but got %s", ls, segments[0]) + } + return 1, nil +} + +func (ls labelMatcher) String() string { + return string(ls) +} + +type wildcardMatcher int + +func (wm wildcardMatcher) match(segments []string) (int, error) { + if len(segments) == 0 { + return 0, errors.New("no more segments found") + } + return 1, nil +} + +func (wm wildcardMatcher) String() string { + return "*" +} + +type pathWildcardMatcher int + +func (pwm pathWildcardMatcher) match(segments []string) (int, error) { + length := len(segments) - int(pwm) + if length <= 0 { + return 0, errors.New("not sufficient segments are supplied for path wildcard") + } + return length, nil +} + +func (pwm pathWildcardMatcher) String() string { + return "**" +} + +type ParseError struct { + Pos int + Template string + Message string +} + +func (pe ParseError) Error() string { + return fmt.Sprintf("at %d of template '%s', %s", pe.Pos, pe.Template, pe.Message) +} + +// PathTemplate manages the template to build and match with paths used +// by API services. It holds a template and variable names in it, and +// it can extract matched patterns from a path string or build a path +// string from a binding. +// +// See http.proto in github.com/googleapis/googleapis/ for the details of +// the template syntax. +type PathTemplate struct { + segments []segment +} + +// NewPathTemplate parses a path template, and returns a PathTemplate +// instance if successful. +func NewPathTemplate(template string) (*PathTemplate, error) { + return parsePathTemplate(template) +} + +// MustCompilePathTemplate is like NewPathTemplate but panics if the +// expression cannot be parsed. It simplifies safe initialization of +// global variables holding compiled regular expressions. +func MustCompilePathTemplate(template string) *PathTemplate { + pt, err := NewPathTemplate(template) + if err != nil { + panic(err) + } + return pt +} + +// Match attempts to match the given path with the template, and returns +// the mapping of the variable name to the matched pattern string. +func (pt *PathTemplate) Match(path string) (map[string]string, error) { + paths := strings.Split(path, "/") + values := map[string]string{} + for _, segment := range pt.segments { + length, err := segment.match(paths) + if err != nil { + return nil, err + } + if segment.name != "" { + value := strings.Join(paths[:length], "/") + if oldValue, ok := values[segment.name]; ok { + values[segment.name] = oldValue + "/" + value + } else { + values[segment.name] = value + } + } + paths = paths[length:] + } + if len(paths) != 0 { + return nil, fmt.Errorf("Trailing path %s remains after the matching", strings.Join(paths, "/")) + } + return values, nil +} + +// Render creates a path string from its template and the binding from +// the variable name to the value. +func (pt *PathTemplate) Render(binding map[string]string) (string, error) { + result := make([]string, 0, len(pt.segments)) + var lastVariableName string + for _, segment := range pt.segments { + name := segment.name + if lastVariableName != "" && name == lastVariableName { + continue + } + lastVariableName = name + if name == "" { + result = append(result, segment.String()) + } else if value, ok := binding[name]; ok { + result = append(result, value) + } else { + return "", fmt.Errorf("%s is not found", name) + } + } + built := strings.Join(result, "/") + return built, nil +} diff --git a/vendor/github.com/googleapis/gax-go/path_template_parser.go b/vendor/github.com/googleapis/gax-go/path_template_parser.go new file mode 100644 index 000000000..79c8e759c --- /dev/null +++ b/vendor/github.com/googleapis/gax-go/path_template_parser.go @@ -0,0 +1,227 @@ +// 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 gax + +import ( + "fmt" + "io" + "strings" +) + +// This parser follows the syntax of path templates, from +// https://github.com/googleapis/googleapis/blob/master/google/api/http.proto. +// The differences are that there is no custom verb, we allow the initial slash +// to be absent, and that we are not strict as +// https://tools.ietf.org/html/rfc6570 about the characters in identifiers and +// literals. + +type pathTemplateParser struct { + r *strings.Reader + runeCount int // the number of the current rune in the original string + nextVar int // the number to use for the next unnamed variable + seenName map[string]bool // names we've seen already + seenPathWildcard bool // have we seen "**" already? +} + +func parsePathTemplate(template string) (pt *PathTemplate, err error) { + p := &pathTemplateParser{ + r: strings.NewReader(template), + seenName: map[string]bool{}, + } + + // Handle panics with strings like errors. + // See pathTemplateParser.error, below. + defer func() { + if x := recover(); x != nil { + errmsg, ok := x.(errString) + if !ok { + panic(x) + } + pt = nil + err = ParseError{p.runeCount, template, string(errmsg)} + } + }() + + segs := p.template() + // If there is a path wildcard, set its length. We can't do this + // until we know how many segments we've got all together. + for i, seg := range segs { + if _, ok := seg.matcher.(pathWildcardMatcher); ok { + segs[i].matcher = pathWildcardMatcher(len(segs) - i - 1) + break + } + } + return &PathTemplate{segments: segs}, nil + +} + +// Used to indicate errors "thrown" by this parser. We don't use string because +// many parts of the standard library panic with strings. +type errString string + +// Terminates parsing immediately with an error. +func (p *pathTemplateParser) error(msg string) { + panic(errString(msg)) +} + +// Template = [ "/" ] Segments +func (p *pathTemplateParser) template() []segment { + var segs []segment + if p.consume('/') { + // Initial '/' needs an initial empty matcher. + segs = append(segs, segment{matcher: labelMatcher("")}) + } + return append(segs, p.segments("")...) +} + +// Segments = Segment { "/" Segment } +func (p *pathTemplateParser) segments(name string) []segment { + var segs []segment + for { + subsegs := p.segment(name) + segs = append(segs, subsegs...) + if !p.consume('/') { + break + } + } + return segs +} + +// Segment = "*" | "**" | LITERAL | Variable +func (p *pathTemplateParser) segment(name string) []segment { + if p.consume('*') { + if name == "" { + name = fmt.Sprintf("$%d", p.nextVar) + p.nextVar++ + } + if p.consume('*') { + if p.seenPathWildcard { + p.error("multiple '**' disallowed") + } + p.seenPathWildcard = true + // We'll change 0 to the right number at the end. + return []segment{{name: name, matcher: pathWildcardMatcher(0)}} + } + return []segment{{name: name, matcher: wildcardMatcher(0)}} + } + if p.consume('{') { + if name != "" { + p.error("recursive named bindings are not allowed") + } + return p.variable() + } + return []segment{{name: name, matcher: labelMatcher(p.literal())}} +} + +// Variable = "{" FieldPath [ "=" Segments ] "}" +// "{" is already consumed. +func (p *pathTemplateParser) variable() []segment { + // Simplification: treat FieldPath as LITERAL, instead of IDENT { '.' IDENT } + name := p.literal() + if p.seenName[name] { + p.error(name + " appears multiple times") + } + p.seenName[name] = true + var segs []segment + if p.consume('=') { + segs = p.segments(name) + } else { + // "{var}" is equivalent to "{var=*}" + segs = []segment{{name: name, matcher: wildcardMatcher(0)}} + } + if !p.consume('}') { + p.error("expected '}'") + } + return segs +} + +// A literal is any sequence of characters other than a few special ones. +// The list of stop characters is not quite the same as in the template RFC. +func (p *pathTemplateParser) literal() string { + lit := p.consumeUntil("/*}{=") + if lit == "" { + p.error("empty literal") + } + return lit +} + +// Read runes until EOF or one of the runes in stopRunes is encountered. +// If the latter, unread the stop rune. Return the accumulated runes as a string. +func (p *pathTemplateParser) consumeUntil(stopRunes string) string { + var runes []rune + for { + r, ok := p.readRune() + if !ok { + break + } + if strings.IndexRune(stopRunes, r) >= 0 { + p.unreadRune() + break + } + runes = append(runes, r) + } + return string(runes) +} + +// If the next rune is r, consume it and return true. +// Otherwise, leave the input unchanged and return false. +func (p *pathTemplateParser) consume(r rune) bool { + rr, ok := p.readRune() + if !ok { + return false + } + if r == rr { + return true + } + p.unreadRune() + return false +} + +// Read the next rune from the input. Return it. +// The second return value is false at EOF. +func (p *pathTemplateParser) readRune() (rune, bool) { + r, _, err := p.r.ReadRune() + if err == io.EOF { + return r, false + } + if err != nil { + p.error(err.Error()) + } + p.runeCount++ + return r, true +} + +// Put the last rune that was read back on the input. +func (p *pathTemplateParser) unreadRune() { + if err := p.r.UnreadRune(); err != nil { + p.error(err.Error()) + } + p.runeCount-- +} diff --git a/vendor/github.com/spf13/pflag/bool.go b/vendor/github.com/spf13/pflag/bool.go index 70e2e0a6b..c4c5c0bfd 100644 --- a/vendor/github.com/spf13/pflag/bool.go +++ b/vendor/github.com/spf13/pflag/bool.go @@ -1,9 +1,6 @@ package pflag -import ( - "fmt" - "strconv" -) +import "strconv" // optional interface to indicate boolean flags that can be // supplied without "=value" text @@ -30,41 +27,54 @@ func (b *boolValue) Type() string { return "bool" } -func (b *boolValue) String() string { return fmt.Sprintf("%v", *b) } +func (b *boolValue) String() string { return strconv.FormatBool(bool(*b)) } func (b *boolValue) IsBoolFlag() bool { return true } +func boolConv(sval string) (interface{}, error) { + return strconv.ParseBool(sval) +} + +// GetBool return the bool value of a flag with the given name +func (f *FlagSet) GetBool(name string) (bool, error) { + val, err := f.getFlagType(name, "bool", boolConv) + if err != nil { + return false, err + } + return val.(bool), nil +} + // BoolVar defines a bool flag with specified name, default value, and usage string. // The argument p points to a bool variable in which to store the value of the flag. func (f *FlagSet) BoolVar(p *bool, name string, value bool, usage string) { - f.VarP(newBoolValue(value, p), name, "", usage) + f.BoolVarP(p, name, "", value, usage) } -// Like BoolVar, but accepts a shorthand letter that can be used after a single dash. +// BoolVarP is like BoolVar, but accepts a shorthand letter that can be used after a single dash. func (f *FlagSet) BoolVarP(p *bool, name, shorthand string, value bool, usage string) { - f.VarP(newBoolValue(value, p), name, shorthand, usage) + flag := f.VarPF(newBoolValue(value, p), name, shorthand, usage) + flag.NoOptDefVal = "true" } // BoolVar defines a bool flag with specified name, default value, and usage string. // The argument p points to a bool variable in which to store the value of the flag. func BoolVar(p *bool, name string, value bool, usage string) { - CommandLine.VarP(newBoolValue(value, p), name, "", usage) + BoolVarP(p, name, "", value, usage) } -// Like BoolVar, but accepts a shorthand letter that can be used after a single dash. +// BoolVarP is like BoolVar, but accepts a shorthand letter that can be used after a single dash. func BoolVarP(p *bool, name, shorthand string, value bool, usage string) { - CommandLine.VarP(newBoolValue(value, p), name, shorthand, usage) + flag := CommandLine.VarPF(newBoolValue(value, p), name, shorthand, usage) + flag.NoOptDefVal = "true" } // Bool defines a bool flag with specified name, default value, and usage string. // The return value is the address of a bool variable that stores the value of the flag. func (f *FlagSet) Bool(name string, value bool, usage string) *bool { - p := new(bool) - f.BoolVarP(p, name, "", value, usage) - return p + return f.BoolP(name, "", value, usage) } -// Like Bool, but accepts a shorthand letter that can be used after a single dash. +// BoolP is like Bool, but accepts a shorthand letter that can be used after a single dash. func (f *FlagSet) BoolP(name, shorthand string, value bool, usage string) *bool { p := new(bool) f.BoolVarP(p, name, shorthand, value, usage) @@ -74,10 +84,11 @@ func (f *FlagSet) BoolP(name, shorthand string, value bool, usage string) *bool // Bool defines a bool flag with specified name, default value, and usage string. // The return value is the address of a bool variable that stores the value of the flag. func Bool(name string, value bool, usage string) *bool { - return CommandLine.BoolP(name, "", value, usage) + return BoolP(name, "", value, usage) } -// Like Bool, but accepts a shorthand letter that can be used after a single dash. +// BoolP is like Bool, but accepts a shorthand letter that can be used after a single dash. func BoolP(name, shorthand string, value bool, usage string) *bool { - return CommandLine.BoolP(name, shorthand, value, usage) + b := CommandLine.BoolP(name, shorthand, value, usage) + return b } diff --git a/vendor/github.com/spf13/pflag/count.go b/vendor/github.com/spf13/pflag/count.go new file mode 100644 index 000000000..d22be41f2 --- /dev/null +++ b/vendor/github.com/spf13/pflag/count.go @@ -0,0 +1,94 @@ +package pflag + +import "strconv" + +// -- count Value +type countValue int + +func newCountValue(val int, p *int) *countValue { + *p = val + return (*countValue)(p) +} + +func (i *countValue) Set(s string) error { + v, err := strconv.ParseInt(s, 0, 64) + // -1 means that no specific value was passed, so increment + if v == -1 { + *i = countValue(*i + 1) + } else { + *i = countValue(v) + } + return err +} + +func (i *countValue) Type() string { + return "count" +} + +func (i *countValue) String() string { return strconv.Itoa(int(*i)) } + +func countConv(sval string) (interface{}, error) { + i, err := strconv.Atoi(sval) + if err != nil { + return nil, err + } + return i, nil +} + +// GetCount return the int value of a flag with the given name +func (f *FlagSet) GetCount(name string) (int, error) { + val, err := f.getFlagType(name, "count", countConv) + if err != nil { + return 0, err + } + return val.(int), nil +} + +// CountVar defines a count flag with specified name, default value, and usage string. +// The argument p points to an int variable in which to store the value of the flag. +// A count flag will add 1 to its value evey time it is found on the command line +func (f *FlagSet) CountVar(p *int, name string, usage string) { + f.CountVarP(p, name, "", usage) +} + +// CountVarP is like CountVar only take a shorthand for the flag name. +func (f *FlagSet) CountVarP(p *int, name, shorthand string, usage string) { + flag := f.VarPF(newCountValue(0, p), name, shorthand, usage) + flag.NoOptDefVal = "-1" +} + +// CountVar like CountVar only the flag is placed on the CommandLine instead of a given flag set +func CountVar(p *int, name string, usage string) { + CommandLine.CountVar(p, name, usage) +} + +// CountVarP is like CountVar only take a shorthand for the flag name. +func CountVarP(p *int, name, shorthand string, usage string) { + CommandLine.CountVarP(p, name, shorthand, usage) +} + +// Count defines a count flag with specified name, default value, and usage string. +// The return value is the address of an int variable that stores the value of the flag. +// A count flag will add 1 to its value evey time it is found on the command line +func (f *FlagSet) Count(name string, usage string) *int { + p := new(int) + f.CountVarP(p, name, "", usage) + return p +} + +// CountP is like Count only takes a shorthand for the flag name. +func (f *FlagSet) CountP(name, shorthand string, usage string) *int { + p := new(int) + f.CountVarP(p, name, shorthand, usage) + return p +} + +// Count like Count only the flag is placed on the CommandLine isntead of a given flag set +func Count(name string, usage string) *int { + return CommandLine.CountP(name, "", usage) +} + +// CountP is like Count only takes a shorthand for the flag name. +func CountP(name, shorthand string, usage string) *int { + return CommandLine.CountP(name, shorthand, usage) +} diff --git a/vendor/github.com/spf13/pflag/duration.go b/vendor/github.com/spf13/pflag/duration.go index 66ed7ac93..e9debef88 100644 --- a/vendor/github.com/spf13/pflag/duration.go +++ b/vendor/github.com/spf13/pflag/duration.go @@ -1,6 +1,8 @@ package pflag -import "time" +import ( + "time" +) // -- time.Duration Value type durationValue time.Duration @@ -22,13 +24,26 @@ func (d *durationValue) Type() string { func (d *durationValue) String() string { return (*time.Duration)(d).String() } +func durationConv(sval string) (interface{}, error) { + return time.ParseDuration(sval) +} + +// GetDuration return the duration value of a flag with the given name +func (f *FlagSet) GetDuration(name string) (time.Duration, error) { + val, err := f.getFlagType(name, "duration", durationConv) + if err != nil { + return 0, err + } + return val.(time.Duration), nil +} + // DurationVar defines a time.Duration flag with specified name, default value, and usage string. // The argument p points to a time.Duration variable in which to store the value of the flag. func (f *FlagSet) DurationVar(p *time.Duration, name string, value time.Duration, usage string) { f.VarP(newDurationValue(value, p), name, "", usage) } -// Like DurationVar, but accepts a shorthand letter that can be used after a single dash. +// DurationVarP is like DurationVar, but accepts a shorthand letter that can be used after a single dash. func (f *FlagSet) DurationVarP(p *time.Duration, name, shorthand string, value time.Duration, usage string) { f.VarP(newDurationValue(value, p), name, shorthand, usage) } @@ -39,7 +54,7 @@ func DurationVar(p *time.Duration, name string, value time.Duration, usage strin CommandLine.VarP(newDurationValue(value, p), name, "", usage) } -// Like DurationVar, but accepts a shorthand letter that can be used after a single dash. +// DurationVarP is like DurationVar, but accepts a shorthand letter that can be used after a single dash. func DurationVarP(p *time.Duration, name, shorthand string, value time.Duration, usage string) { CommandLine.VarP(newDurationValue(value, p), name, shorthand, usage) } @@ -52,7 +67,7 @@ func (f *FlagSet) Duration(name string, value time.Duration, usage string) *time return p } -// Like Duration, but accepts a shorthand letter that can be used after a single dash. +// DurationP is like Duration, but accepts a shorthand letter that can be used after a single dash. func (f *FlagSet) DurationP(name, shorthand string, value time.Duration, usage string) *time.Duration { p := new(time.Duration) f.DurationVarP(p, name, shorthand, value, usage) @@ -65,7 +80,7 @@ func Duration(name string, value time.Duration, usage string) *time.Duration { return CommandLine.DurationP(name, "", value, usage) } -// Like Duration, but accepts a shorthand letter that can be used after a single dash. +// DurationP is like Duration, but accepts a shorthand letter that can be used after a single dash. func DurationP(name, shorthand string, value time.Duration, usage string) *time.Duration { return CommandLine.DurationP(name, shorthand, value, usage) } diff --git a/vendor/github.com/spf13/pflag/flag.go b/vendor/github.com/spf13/pflag/flag.go index 0070b93ee..fa815642e 100644 --- a/vendor/github.com/spf13/pflag/flag.go +++ b/vendor/github.com/spf13/pflag/flag.go @@ -3,98 +3,98 @@ // license that can be found in the LICENSE file. /* - pflag is a drop-in replacement for Go's flag package, implementing - POSIX/GNU-style --flags. +Package pflag is a drop-in replacement for Go's flag package, implementing +POSIX/GNU-style --flags. - pflag is compatible with the GNU extensions to the POSIX recommendations - for command-line options. See - http://www.gnu.org/software/libc/manual/html_node/Argument-Syntax.html +pflag is compatible with the GNU extensions to the POSIX recommendations +for command-line options. See +http://www.gnu.org/software/libc/manual/html_node/Argument-Syntax.html - Usage: +Usage: - pflag is a drop-in replacement of Go's native flag package. If you import - pflag under the name "flag" then all code should continue to function - with no changes. +pflag is a drop-in replacement of Go's native flag package. If you import +pflag under the name "flag" then all code should continue to function +with no changes. - import flag "github.com/ogier/pflag" + import flag "github.com/ogier/pflag" There is one exception to this: if you directly instantiate the Flag struct - there is one more field "Shorthand" that you will need to set. - Most code never instantiates this struct directly, and instead uses - functions such as String(), BoolVar(), and Var(), and is therefore - unaffected. +there is one more field "Shorthand" that you will need to set. +Most code never instantiates this struct directly, and instead uses +functions such as String(), BoolVar(), and Var(), and is therefore +unaffected. - Define flags using flag.String(), Bool(), Int(), etc. +Define flags using flag.String(), Bool(), Int(), etc. - This declares an integer flag, -flagname, stored in the pointer ip, with type *int. - var ip = flag.Int("flagname", 1234, "help message for flagname") - If you like, you can bind the flag to a variable using the Var() functions. - var flagvar int - func init() { - flag.IntVar(&flagvar, "flagname", 1234, "help message for flagname") - } - Or you can create custom flags that satisfy the Value interface (with - pointer receivers) and couple them to flag parsing by - flag.Var(&flagVal, "name", "help message for flagname") - For such flags, the default value is just the initial value of the variable. +This declares an integer flag, -flagname, stored in the pointer ip, with type *int. + var ip = flag.Int("flagname", 1234, "help message for flagname") +If you like, you can bind the flag to a variable using the Var() functions. + var flagvar int + func init() { + flag.IntVar(&flagvar, "flagname", 1234, "help message for flagname") + } +Or you can create custom flags that satisfy the Value interface (with +pointer receivers) and couple them to flag parsing by + flag.Var(&flagVal, "name", "help message for flagname") +For such flags, the default value is just the initial value of the variable. - After all flags are defined, call - flag.Parse() - to parse the command line into the defined flags. +After all flags are defined, call + flag.Parse() +to parse the command line into the defined flags. - Flags may then be used directly. If you're using the flags themselves, - they are all pointers; if you bind to variables, they're values. - fmt.Println("ip has value ", *ip) - fmt.Println("flagvar has value ", flagvar) +Flags may then be used directly. If you're using the flags themselves, +they are all pointers; if you bind to variables, they're values. + fmt.Println("ip has value ", *ip) + fmt.Println("flagvar has value ", flagvar) - After parsing, the arguments after the flag are available as the - slice flag.Args() or individually as flag.Arg(i). - The arguments are indexed from 0 through flag.NArg()-1. +After parsing, the arguments after the flag are available as the +slice flag.Args() or individually as flag.Arg(i). +The arguments are indexed from 0 through flag.NArg()-1. - The pflag package also defines some new functions that are not in flag, - that give one-letter shorthands for flags. You can use these by appending - 'P' to the name of any function that defines a flag. - var ip = flag.IntP("flagname", "f", 1234, "help message") - var flagvar bool - func init() { - flag.BoolVarP("boolname", "b", true, "help message") - } - flag.VarP(&flagVar, "varname", "v", 1234, "help message") - Shorthand letters can be used with single dashes on the command line. - Boolean shorthand flags can be combined with other shorthand flags. +The pflag package also defines some new functions that are not in flag, +that give one-letter shorthands for flags. You can use these by appending +'P' to the name of any function that defines a flag. + var ip = flag.IntP("flagname", "f", 1234, "help message") + var flagvar bool + func init() { + flag.BoolVarP("boolname", "b", true, "help message") + } + flag.VarP(&flagVar, "varname", "v", 1234, "help message") +Shorthand letters can be used with single dashes on the command line. +Boolean shorthand flags can be combined with other shorthand flags. - Command line flag syntax: - --flag // boolean flags only - --flag=x +Command line flag syntax: + --flag // boolean flags only + --flag=x - Unlike the flag package, a single dash before an option means something - different than a double dash. Single dashes signify a series of shorthand - letters for flags. All but the last shorthand letter must be boolean flags. - // boolean flags - -f - -abc - // non-boolean flags - -n 1234 - -Ifile - // mixed - -abcs "hello" - -abcn1234 +Unlike the flag package, a single dash before an option means something +different than a double dash. Single dashes signify a series of shorthand +letters for flags. All but the last shorthand letter must be boolean flags. + // boolean flags + -f + -abc + // non-boolean flags + -n 1234 + -Ifile + // mixed + -abcs "hello" + -abcn1234 - Flag parsing stops after the terminator "--". Unlike the flag package, - flags can be interspersed with arguments anywhere on the command line - before this terminator. +Flag parsing stops after the terminator "--". Unlike the flag package, +flags can be interspersed with arguments anywhere on the command line +before this terminator. - Integer flags accept 1234, 0664, 0x1234 and may be negative. - Boolean flags (in their long form) accept 1, 0, t, f, true, false, - TRUE, FALSE, True, False. - Duration flags accept any input valid for time.ParseDuration. +Integer flags accept 1234, 0664, 0x1234 and may be negative. +Boolean flags (in their long form) accept 1, 0, t, f, true, false, +TRUE, FALSE, True, False. +Duration flags accept any input valid for time.ParseDuration. - The default set of command-line flags is controlled by - top-level functions. The FlagSet type allows one to define - independent sets of flags, such as to implement subcommands - in a command-line interface. The methods of FlagSet are - analogous to the top-level functions for the command-line - flag set. +The default set of command-line flags is controlled by +top-level functions. The FlagSet type allows one to define +independent sets of flags, such as to implement subcommands +in a command-line interface. The methods of FlagSet are +analogous to the top-level functions for the command-line +flag set. */ package pflag @@ -115,8 +115,11 @@ var ErrHelp = errors.New("pflag: help requested") type ErrorHandling int const ( + // ContinueOnError will return an err from Parse() if an error is found ContinueOnError ErrorHandling = iota + // ExitOnError will call os.Exit(2) if an error is found when parsing ExitOnError + // PanicOnError will panic() if an error is found when parsing flags PanicOnError ) @@ -137,6 +140,7 @@ type FlagSet struct { formal map[NormalizedName]*Flag shorthands map[byte]*Flag args []string // arguments after flags + argsLenAtDash int // len(args) when a '--' was located when parsing, or -1 if no -- exitOnError bool // does the program exit if there's an error? errorHandling ErrorHandling output io.Writer // nil means stderr; use out() accessor @@ -146,14 +150,17 @@ type FlagSet struct { // A Flag represents the state of a flag. type Flag struct { - Name string // name as it appears on command line - Shorthand string // one-letter abbreviated flag - Usage string // help message - Value Value // value as set - DefValue string // default value (as text); for usage message - Changed bool // If the user set the value (or if left to default) - Deprecated string // If this flag is deprecated, this string is the new or now thing to use - Annotations map[string][]string // used by cobra.Command bash autocomple code + Name string // name as it appears on command line + Shorthand string // one-letter abbreviated flag + Usage string // help message + Value Value // value as set + DefValue string // default value (as text); for usage message + Changed bool // If the user set the value (or if left to default) + NoOptDefVal string //default value (as text); if the flag is on the command line without any options + Deprecated string // If this flag is deprecated, this string is the new or now thing to use + Hidden bool // used by cobra.Command to allow flags to be hidden from help/usage text + ShorthandDeprecated string // If the shorthand of this flag is deprecated, this string is the new or now thing to use + Annotations map[string][]string // used by cobra.Command bash autocomple code } // Value is the interface to the dynamic value stored in a flag. @@ -180,6 +187,11 @@ func sortFlags(flags map[NormalizedName]*Flag) []*Flag { return result } +// SetNormalizeFunc allows you to add a function which can translate flag names. +// Flags added to the FlagSet will be translated and then when anything tries to +// look up the flag that will also be translated. So it would be possible to create +// a flag named "getURL" and have it translated to "geturl". A user could then pass +// "--getUrl" which may also be translated to "geturl" and everything will work. func (f *FlagSet) SetNormalizeFunc(n func(f *FlagSet, name string) NormalizedName) { f.normalizeNameFunc = n for k, v := range f.formal { @@ -190,6 +202,8 @@ func (f *FlagSet) SetNormalizeFunc(n func(f *FlagSet, name string) NormalizedNam } } +// GetNormalizeFunc returns the previously set NormalizeFunc of a function which +// does no translation, if not set previously. func (f *FlagSet) GetNormalizeFunc() func(f *FlagSet, name string) NormalizedName { if f.normalizeNameFunc != nil { return f.normalizeNameFunc @@ -223,10 +237,22 @@ func (f *FlagSet) VisitAll(fn func(*Flag)) { } } +// HasFlags returns a bool to indicate if the FlagSet has any flags definied. 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)) { @@ -257,16 +283,75 @@ func (f *FlagSet) lookup(name NormalizedName) *Flag { return f.formal[name] } -// Mark a flag deprecated in your program +// func to return a given type for a given flag name +func (f *FlagSet) getFlagType(name string, ftype string, convFunc func(sval string) (interface{}, error)) (interface{}, error) { + flag := f.Lookup(name) + if flag == nil { + err := fmt.Errorf("flag accessed but not defined: %s", name) + return nil, err + } + + if flag.Value.Type() != ftype { + err := fmt.Errorf("trying to get %s value of flag of type %s", ftype, flag.Value.Type()) + return nil, err + } + + sval := flag.Value.String() + result, err := convFunc(sval) + if err != nil { + return nil, err + } + return result, nil +} + +// ArgsLenAtDash will return the length of f.Args at the moment when a -- was +// found during arg parsing. This allows your program to know which args were +// before the -- and which came after. +func (f *FlagSet) ArgsLenAtDash() int { + return f.argsLenAtDash +} + +// MarkDeprecated indicated that a flag is deprecated in your program. It will +// continue to function but will not show up in help or usage messages. Using +// this flag will also print the given usageMessage. func (f *FlagSet) MarkDeprecated(name string, usageMessage string) error { flag := f.Lookup(name) if flag == nil { return fmt.Errorf("flag %q does not exist", name) } + if len(usageMessage) == 0 { + return fmt.Errorf("deprecated message for flag %q must be set", name) + } flag.Deprecated = usageMessage return nil } +// MarkShorthandDeprecated will mark the shorthand of a flag deprecated in your +// program. It will continue to function but will not show up in help or usage +// messages. Using this flag will also print the given usageMessage. +func (f *FlagSet) MarkShorthandDeprecated(name string, usageMessage string) error { + flag := f.Lookup(name) + if flag == nil { + return fmt.Errorf("flag %q does not exist", name) + } + if len(usageMessage) == 0 { + return fmt.Errorf("deprecated message for flag %q must be set", name) + } + flag.ShorthandDeprecated = usageMessage + return nil +} + +// MarkHidden sets a flag to 'hidden' in your program. It will continue to +// function but will not show up in help or usage messages. +func (f *FlagSet) MarkHidden(name string) error { + flag := f.Lookup(name) + if flag == nil { + return fmt.Errorf("flag %q does not exist", name) + } + flag.Hidden = true + return nil +} + // Lookup returns the Flag structure of the named command-line flag, // returning nil if none exists. func Lookup(name string) *Flag { @@ -295,6 +380,33 @@ func (f *FlagSet) Set(name, value string) error { return nil } +// SetAnnotation allows one to set arbitrary annotations on a flag in the FlagSet. +// This is sometimes used by spf13/cobra programs which want to generate additional +// bash completion information. +func (f *FlagSet) SetAnnotation(name, key string, values []string) error { + normalName := f.normalizeFlagName(name) + flag, ok := f.formal[normalName] + if !ok { + return fmt.Errorf("no such flag -%v", name) + } + if flag.Annotations == nil { + flag.Annotations = map[string][]string{} + } + flag.Annotations[key] = values + return nil +} + +// Changed returns true if the flag was explicitly set during Parse() and false +// otherwise +func (f *FlagSet) Changed(name string) bool { + flag := f.Lookup(name) + // If a flag doesn't exist, it wasn't changed.... + if flag == nil { + return false + } + return flag.Changed +} + // Set sets the value of the named command-line flag. func Set(name, value string) error { return CommandLine.Set(name, value) @@ -303,44 +415,140 @@ func Set(name, value string) error { // PrintDefaults prints, to standard error unless configured // otherwise, the default values of all defined flags in the set. func (f *FlagSet) PrintDefaults() { - f.VisitAll(func(flag *Flag) { - if len(flag.Deprecated) > 0 { - return - } - format := "--%s=%s: %s\n" - if _, ok := flag.Value.(*stringValue); ok { - // put quotes on the value - format = "--%s=%q: %s\n" - } - if len(flag.Shorthand) > 0 { - format = " -%s, " + format - } else { - format = " %s " + format - } - fmt.Fprintf(f.out(), format, flag.Shorthand, flag.Name, flag.DefValue, flag.Usage) - }) + usages := f.FlagUsages() + fmt.Fprint(f.out(), usages) } +// defaultIsZeroValue returns true if the default value for this flag represents +// a zero value. +func (f *Flag) defaultIsZeroValue() bool { + switch f.Value.(type) { + case boolFlag: + return f.DefValue == "false" + case *durationValue: + // Beginning in Go 1.7, duration zero values are "0s" + return f.DefValue == "0" || f.DefValue == "0s" + case *intValue, *int8Value, *int32Value, *int64Value, *uintValue, *uint8Value, *uint16Value, *uint32Value, *uint64Value, *countValue, *float32Value, *float64Value: + return f.DefValue == "0" + case *stringValue: + return f.DefValue == "" + case *ipValue, *ipMaskValue, *ipNetValue: + return f.DefValue == "" + case *intSliceValue, *stringSliceValue, *stringArrayValue: + return f.DefValue == "[]" + default: + switch f.Value.String() { + 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. + } + } + + name = flag.Value.Type() + switch name { + case "bool": + name = "" + case "float64": + name = "float" + case "int64": + name = "int" + case "uint64": + 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 { + if len(flag.Deprecated) > 0 || flag.Hidden { return } - format := "--%s=%s: %s\n" - if _, ok := flag.Value.(*stringValue); ok { - // put quotes on the value - format = "--%s=%q: %s\n" - } - if len(flag.Shorthand) > 0 { - format = " -%s, " + format + + line := "" + if len(flag.Shorthand) > 0 && len(flag.ShorthandDeprecated) == 0 { + line = fmt.Sprintf(" -%s, --%s", flag.Shorthand, flag.Name) } else { - format = " %s " + format + line = fmt.Sprintf(" --%s", flag.Name) } - fmt.Fprintf(x, format, flag.Shorthand, flag.Name, flag.DefValue, flag.Usage) + + varname, usage := UnquoteUsage(flag) + if len(varname) > 0 { + line += " " + varname + } + if len(flag.NoOptDefVal) > 0 { + switch flag.Value.Type() { + case "string": + line += fmt.Sprintf("[=\"%s\"]", flag.NoOptDefVal) + case "bool": + if flag.NoOptDefVal != "true" { + line += fmt.Sprintf("[=%s]", flag.NoOptDefVal) + } + default: + line += fmt.Sprintf("[=%s]", flag.NoOptDefVal) + } + } + + // This special character will be replaced with spacing once the + // correct alignment is calculated + line += "\x00" + if len(line) > maxlen { + maxlen = len(line) + } + + line += usage + if !flag.defaultIsZeroValue() { + if flag.Value.Type() == "string" { + line += fmt.Sprintf(" (default \"%s\")", 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() } @@ -361,6 +569,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() @@ -409,8 +619,8 @@ func (f *FlagSet) Var(value Value, name string, usage string) { f.VarP(value, name, "", usage) } -// Like Var, but accepts a shorthand letter that can be used after a single dash. -func (f *FlagSet) VarP(value Value, name, shorthand, usage string) { +// VarPF is like VarP, but returns the flag created +func (f *FlagSet) VarPF(value Value, name, shorthand, usage string) *Flag { // Remember the default value as a string; it won't change. flag := &Flag{ Name: name, @@ -420,11 +630,18 @@ func (f *FlagSet) VarP(value Value, name, shorthand, usage string) { DefValue: value.String(), } f.AddFlag(flag) + return flag } +// VarP is like Var, but accepts a shorthand letter that can be used after a single dash. +func (f *FlagSet) VarP(value Value, name, shorthand, usage string) { + _ = f.VarPF(value, name, shorthand, usage) +} + +// AddFlag will add the flag to the FlagSet func (f *FlagSet) AddFlag(flag *Flag) { // Call normalizeFlagName function only once - var normalizedFlagName NormalizedName = f.normalizeFlagName(flag.Name) + normalizedFlagName := f.normalizeFlagName(flag.Name) _, alreadythere := f.formal[normalizedFlagName] if alreadythere { @@ -458,6 +675,19 @@ func (f *FlagSet) AddFlag(flag *Flag) { f.shorthands[c] = flag } +// AddFlagSet adds one FlagSet to another. If a flag is already present in f +// the flag from newSet will be ignored +func (f *FlagSet) AddFlagSet(newSet *FlagSet) { + if newSet == nil { + return + } + newSet.VisitAll(func(flag *Flag) { + if f.Lookup(flag.Name) == nil { + f.AddFlag(flag) + } + }) +} + // Var defines a flag with the specified name and usage string. The type and // value of the flag are represented by the first argument, of type Value, which // typically holds a user-defined implementation of Value. For instance, the @@ -468,7 +698,7 @@ func Var(value Value, name string, usage string) { CommandLine.VarP(value, name, "", usage) } -// Like Var, but accepts a shorthand letter that can be used after a single dash. +// VarP is like Var, but accepts a shorthand letter that can be used after a single dash. func VarP(value Value, name, shorthand, usage string) { CommandLine.VarP(value, name, shorthand, usage) } @@ -507,9 +737,21 @@ func (f *FlagSet) setFlag(flag *Flag, value string, origArg string) error { if len(flag.Deprecated) > 0 { fmt.Fprintf(os.Stderr, "Flag --%s has been deprecated, %s\n", flag.Name, flag.Deprecated) } + if len(flag.ShorthandDeprecated) > 0 && containsShorthand(origArg, flag.Shorthand) { + fmt.Fprintf(os.Stderr, "Flag shorthand -%s has been deprecated, %s\n", flag.Shorthand, flag.ShorthandDeprecated) + } return nil } +func containsShorthand(arg, shorthand string) bool { + // filter out flags -- + if strings.HasPrefix(arg, "-") { + return false + } + arg = strings.SplitN(arg, "=", 2)[0] + return strings.Contains(arg, shorthand) +} + func (f *FlagSet) parseLongArg(s string, args []string) (a []string, err error) { a = args name := s[2:] @@ -532,11 +774,15 @@ func (f *FlagSet) parseLongArg(s string, args []string) (a []string, err error) if len(split) == 2 { // '--flag=arg' value = split[1] - } else if bv, ok := flag.Value.(boolFlag); ok && bv.IsBoolFlag() { - // '--flag' (where flag is a bool) - value = "true" + } else if len(flag.NoOptDefVal) > 0 { + // '--flag' (arg was optional) + value = flag.NoOptDefVal + } else if len(a) > 0 { + // '--flag arg' + value = a[0] + a = a[1:] } else { - // '--flag' (where flag was not a bool) + // '--flag' (arg was required) err = f.failf("flag needs an argument: %s", s) return } @@ -545,6 +791,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] @@ -564,8 +813,8 @@ func (f *FlagSet) parseSingleShortArg(shorthands string, args []string) (outShor if len(shorthands) > 2 && shorthands[1] == '=' { value = shorthands[2:] outShorts = "" - } else if bv, ok := flag.Value.(boolFlag); ok && bv.IsBoolFlag() { - value = "true" + } else if len(flag.NoOptDefVal) > 0 { + value = flag.NoOptDefVal } else if len(shorthands) > 1 { value = shorthands[1:] outShorts = "" @@ -610,6 +859,7 @@ func (f *FlagSet) parseArgs(args []string) (err error) { if s[1] == '-' { if len(s) == 2 { // "--" terminates the flags + f.argsLenAtDash = len(f.args) f.args = append(f.args, args...) break } @@ -657,7 +907,7 @@ func Parse() { CommandLine.Parse(os.Args[1:]) } -// Whether to support interspersed option/non-option arguments. +// SetInterspersed sets whether to support interspersed option/non-option arguments. func SetInterspersed(interspersed bool) { CommandLine.SetInterspersed(interspersed) } @@ -667,7 +917,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 @@ -676,12 +926,13 @@ func NewFlagSet(name string, errorHandling ErrorHandling) *FlagSet { f := &FlagSet{ name: name, errorHandling: errorHandling, + argsLenAtDash: -1, interspersed: true, } return f } -// Whether to support interspersed option/non-option arguments. +// SetInterspersed sets whether to support interspersed option/non-option arguments. func (f *FlagSet) SetInterspersed(interspersed bool) { f.interspersed = interspersed } @@ -692,4 +943,5 @@ func (f *FlagSet) SetInterspersed(interspersed bool) { func (f *FlagSet) Init(name string, errorHandling ErrorHandling) { f.name = name f.errorHandling = errorHandling + f.argsLenAtDash = -1 } diff --git a/vendor/github.com/spf13/pflag/float32.go b/vendor/github.com/spf13/pflag/float32.go index b7ad67d9a..a243f81f7 100644 --- a/vendor/github.com/spf13/pflag/float32.go +++ b/vendor/github.com/spf13/pflag/float32.go @@ -1,9 +1,6 @@ package pflag -import ( - "fmt" - "strconv" -) +import "strconv" // -- float32 Value type float32Value float32 @@ -23,7 +20,24 @@ func (f *float32Value) Type() string { return "float32" } -func (f *float32Value) String() string { return fmt.Sprintf("%v", *f) } +func (f *float32Value) String() string { return strconv.FormatFloat(float64(*f), 'g', -1, 32) } + +func float32Conv(sval string) (interface{}, error) { + v, err := strconv.ParseFloat(sval, 32) + if err != nil { + return 0, err + } + return float32(v), nil +} + +// GetFloat32 return the float32 value of a flag with the given name +func (f *FlagSet) GetFloat32(name string) (float32, error) { + val, err := f.getFlagType(name, "float32", float32Conv) + if err != nil { + return 0, err + } + return val.(float32), nil +} // Float32Var defines a float32 flag with specified name, default value, and usage string. // The argument p points to a float32 variable in which to store the value of the flag. @@ -31,7 +45,7 @@ func (f *FlagSet) Float32Var(p *float32, name string, value float32, usage strin f.VarP(newFloat32Value(value, p), name, "", usage) } -// Like Float32Var, but accepts a shorthand letter that can be used after a single dash. +// Float32VarP is like Float32Var, but accepts a shorthand letter that can be used after a single dash. func (f *FlagSet) Float32VarP(p *float32, name, shorthand string, value float32, usage string) { f.VarP(newFloat32Value(value, p), name, shorthand, usage) } @@ -42,7 +56,7 @@ func Float32Var(p *float32, name string, value float32, usage string) { CommandLine.VarP(newFloat32Value(value, p), name, "", usage) } -// Like Float32Var, but accepts a shorthand letter that can be used after a single dash. +// Float32VarP is like Float32Var, but accepts a shorthand letter that can be used after a single dash. func Float32VarP(p *float32, name, shorthand string, value float32, usage string) { CommandLine.VarP(newFloat32Value(value, p), name, shorthand, usage) } @@ -55,7 +69,7 @@ func (f *FlagSet) Float32(name string, value float32, usage string) *float32 { return p } -// Like Float32, but accepts a shorthand letter that can be used after a single dash. +// Float32P is like Float32, but accepts a shorthand letter that can be used after a single dash. func (f *FlagSet) Float32P(name, shorthand string, value float32, usage string) *float32 { p := new(float32) f.Float32VarP(p, name, shorthand, value, usage) @@ -68,7 +82,7 @@ func Float32(name string, value float32, usage string) *float32 { return CommandLine.Float32P(name, "", value, usage) } -// Like Float32, but accepts a shorthand letter that can be used after a single dash. +// Float32P is like Float32, but accepts a shorthand letter that can be used after a single dash. func Float32P(name, shorthand string, value float32, usage string) *float32 { return CommandLine.Float32P(name, shorthand, value, usage) } diff --git a/vendor/github.com/spf13/pflag/float64.go b/vendor/github.com/spf13/pflag/float64.go index 031551233..04b5492a7 100644 --- a/vendor/github.com/spf13/pflag/float64.go +++ b/vendor/github.com/spf13/pflag/float64.go @@ -1,9 +1,6 @@ package pflag -import ( - "fmt" - "strconv" -) +import "strconv" // -- float64 Value type float64Value float64 @@ -23,7 +20,20 @@ func (f *float64Value) Type() string { return "float64" } -func (f *float64Value) String() string { return fmt.Sprintf("%v", *f) } +func (f *float64Value) String() string { return strconv.FormatFloat(float64(*f), 'g', -1, 64) } + +func float64Conv(sval string) (interface{}, error) { + return strconv.ParseFloat(sval, 64) +} + +// GetFloat64 return the float64 value of a flag with the given name +func (f *FlagSet) GetFloat64(name string) (float64, error) { + val, err := f.getFlagType(name, "float64", float64Conv) + if err != nil { + return 0, err + } + return val.(float64), nil +} // Float64Var defines a float64 flag with specified name, default value, and usage string. // The argument p points to a float64 variable in which to store the value of the flag. @@ -31,7 +41,7 @@ func (f *FlagSet) Float64Var(p *float64, name string, value float64, usage strin f.VarP(newFloat64Value(value, p), name, "", usage) } -// Like Float64Var, but accepts a shorthand letter that can be used after a single dash. +// Float64VarP is like Float64Var, but accepts a shorthand letter that can be used after a single dash. func (f *FlagSet) Float64VarP(p *float64, name, shorthand string, value float64, usage string) { f.VarP(newFloat64Value(value, p), name, shorthand, usage) } @@ -42,7 +52,7 @@ func Float64Var(p *float64, name string, value float64, usage string) { CommandLine.VarP(newFloat64Value(value, p), name, "", usage) } -// Like Float64Var, but accepts a shorthand letter that can be used after a single dash. +// Float64VarP is like Float64Var, but accepts a shorthand letter that can be used after a single dash. func Float64VarP(p *float64, name, shorthand string, value float64, usage string) { CommandLine.VarP(newFloat64Value(value, p), name, shorthand, usage) } @@ -55,7 +65,7 @@ func (f *FlagSet) Float64(name string, value float64, usage string) *float64 { return p } -// Like Float64, but accepts a shorthand letter that can be used after a single dash. +// Float64P is like Float64, but accepts a shorthand letter that can be used after a single dash. func (f *FlagSet) Float64P(name, shorthand string, value float64, usage string) *float64 { p := new(float64) f.Float64VarP(p, name, shorthand, value, usage) @@ -68,7 +78,7 @@ func Float64(name string, value float64, usage string) *float64 { return CommandLine.Float64P(name, "", value, usage) } -// Like Float64, but accepts a shorthand letter that can be used after a single dash. +// Float64P is like Float64, but accepts a shorthand letter that can be used after a single dash. func Float64P(name, shorthand string, value float64, usage string) *float64 { return CommandLine.Float64P(name, shorthand, value, usage) } diff --git a/vendor/github.com/spf13/pflag/golangflag.go b/vendor/github.com/spf13/pflag/golangflag.go new file mode 100644 index 000000000..b056147fd --- /dev/null +++ b/vendor/github.com/spf13/pflag/golangflag.go @@ -0,0 +1,104 @@ +// 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 pflag + +import ( + goflag "flag" + "fmt" + "reflect" + "strings" +) + +var _ = fmt.Print + +// flagValueWrapper implements pflag.Value around a flag.Value. The main +// difference here is the addition of the Type method that returns a string +// name of the type. As this is generally unknown, we approximate that with +// reflection. +type flagValueWrapper struct { + inner goflag.Value + flagType string +} + +// We are just copying the boolFlag interface out of goflag as that is what +// they use to decide if a flag should get "true" when no arg is given. +type goBoolFlag interface { + goflag.Value + IsBoolFlag() bool +} + +func wrapFlagValue(v goflag.Value) Value { + // If the flag.Value happens to also be a pflag.Value, just use it directly. + if pv, ok := v.(Value); ok { + return pv + } + + pv := &flagValueWrapper{ + inner: v, + } + + t := reflect.TypeOf(v) + if t.Kind() == reflect.Interface || t.Kind() == reflect.Ptr { + t = t.Elem() + } + + pv.flagType = strings.TrimSuffix(t.Name(), "Value") + return pv +} + +func (v *flagValueWrapper) String() string { + return v.inner.String() +} + +func (v *flagValueWrapper) Set(s string) error { + return v.inner.Set(s) +} + +func (v *flagValueWrapper) Type() string { + return v.flagType +} + +// 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{ + Name: goflag.Name, + Usage: goflag.Usage, + Value: wrapFlagValue(goflag.Value), + // Looks like golang flags don't set DefValue correctly :-( + //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" + } + return flag +} + +// AddGoFlag will add the given *flag.Flag to the pflag.FlagSet +func (f *FlagSet) AddGoFlag(goflag *goflag.Flag) { + if f.Lookup(goflag.Name) != nil { + return + } + newflag := PFlagFromGoFlag(goflag) + f.AddFlag(newflag) +} + +// AddGoFlagSet will add the given *flag.FlagSet to the pflag.FlagSet +func (f *FlagSet) AddGoFlagSet(newSet *goflag.FlagSet) { + if newSet == nil { + return + } + newSet.VisitAll(func(goflag *goflag.Flag) { + f.AddGoFlag(goflag) + }) +} diff --git a/vendor/github.com/spf13/pflag/int.go b/vendor/github.com/spf13/pflag/int.go index dca9da6e6..1474b89df 100644 --- a/vendor/github.com/spf13/pflag/int.go +++ b/vendor/github.com/spf13/pflag/int.go @@ -1,9 +1,6 @@ package pflag -import ( - "fmt" - "strconv" -) +import "strconv" // -- int Value type intValue int @@ -23,7 +20,20 @@ func (i *intValue) Type() string { return "int" } -func (i *intValue) String() string { return fmt.Sprintf("%v", *i) } +func (i *intValue) String() string { return strconv.Itoa(int(*i)) } + +func intConv(sval string) (interface{}, error) { + return strconv.Atoi(sval) +} + +// GetInt return the int value of a flag with the given name +func (f *FlagSet) GetInt(name string) (int, error) { + val, err := f.getFlagType(name, "int", intConv) + if err != nil { + return 0, err + } + return val.(int), nil +} // IntVar defines an int flag with specified name, default value, and usage string. // The argument p points to an int variable in which to store the value of the flag. @@ -31,7 +41,7 @@ func (f *FlagSet) IntVar(p *int, name string, value int, usage string) { f.VarP(newIntValue(value, p), name, "", usage) } -// Like IntVar, but accepts a shorthand letter that can be used after a single dash. +// IntVarP is like IntVar, but accepts a shorthand letter that can be used after a single dash. func (f *FlagSet) IntVarP(p *int, name, shorthand string, value int, usage string) { f.VarP(newIntValue(value, p), name, shorthand, usage) } @@ -42,7 +52,7 @@ func IntVar(p *int, name string, value int, usage string) { CommandLine.VarP(newIntValue(value, p), name, "", usage) } -// Like IntVar, but accepts a shorthand letter that can be used after a single dash. +// IntVarP is like IntVar, but accepts a shorthand letter that can be used after a single dash. func IntVarP(p *int, name, shorthand string, value int, usage string) { CommandLine.VarP(newIntValue(value, p), name, shorthand, usage) } @@ -55,7 +65,7 @@ func (f *FlagSet) Int(name string, value int, usage string) *int { return p } -// Like Int, but accepts a shorthand letter that can be used after a single dash. +// IntP is like Int, but accepts a shorthand letter that can be used after a single dash. func (f *FlagSet) IntP(name, shorthand string, value int, usage string) *int { p := new(int) f.IntVarP(p, name, shorthand, value, usage) @@ -68,7 +78,7 @@ func Int(name string, value int, usage string) *int { return CommandLine.IntP(name, "", value, usage) } -// Like Int, but accepts a shorthand letter that can be used after a single dash. +// IntP is like Int, but accepts a shorthand letter that can be used after a single dash. func IntP(name, shorthand string, value int, usage string) *int { return CommandLine.IntP(name, shorthand, value, usage) } diff --git a/vendor/github.com/spf13/pflag/int32.go b/vendor/github.com/spf13/pflag/int32.go index 18eaacd60..9b95944f0 100644 --- a/vendor/github.com/spf13/pflag/int32.go +++ b/vendor/github.com/spf13/pflag/int32.go @@ -1,9 +1,6 @@ package pflag -import ( - "fmt" - "strconv" -) +import "strconv" // -- int32 Value type int32Value int32 @@ -23,7 +20,24 @@ func (i *int32Value) Type() string { return "int32" } -func (i *int32Value) String() string { return fmt.Sprintf("%v", *i) } +func (i *int32Value) String() string { return strconv.FormatInt(int64(*i), 10) } + +func int32Conv(sval string) (interface{}, error) { + v, err := strconv.ParseInt(sval, 0, 32) + if err != nil { + return 0, err + } + return int32(v), nil +} + +// GetInt32 return the int32 value of a flag with the given name +func (f *FlagSet) GetInt32(name string) (int32, error) { + val, err := f.getFlagType(name, "int32", int32Conv) + if err != nil { + return 0, err + } + return val.(int32), nil +} // Int32Var defines an int32 flag with specified name, default value, and usage string. // The argument p points to an int32 variable in which to store the value of the flag. @@ -31,7 +45,7 @@ func (f *FlagSet) Int32Var(p *int32, name string, value int32, usage string) { f.VarP(newInt32Value(value, p), name, "", usage) } -// Like Int32Var, but accepts a shorthand letter that can be used after a single dash. +// Int32VarP is like Int32Var, but accepts a shorthand letter that can be used after a single dash. func (f *FlagSet) Int32VarP(p *int32, name, shorthand string, value int32, usage string) { f.VarP(newInt32Value(value, p), name, shorthand, usage) } @@ -42,7 +56,7 @@ func Int32Var(p *int32, name string, value int32, usage string) { CommandLine.VarP(newInt32Value(value, p), name, "", usage) } -// Like Int32Var, but accepts a shorthand letter that can be used after a single dash. +// Int32VarP is like Int32Var, but accepts a shorthand letter that can be used after a single dash. func Int32VarP(p *int32, name, shorthand string, value int32, usage string) { CommandLine.VarP(newInt32Value(value, p), name, shorthand, usage) } @@ -55,7 +69,7 @@ func (f *FlagSet) Int32(name string, value int32, usage string) *int32 { return p } -// Like Int32, but accepts a shorthand letter that can be used after a single dash. +// Int32P is like Int32, but accepts a shorthand letter that can be used after a single dash. func (f *FlagSet) Int32P(name, shorthand string, value int32, usage string) *int32 { p := new(int32) f.Int32VarP(p, name, shorthand, value, usage) @@ -68,7 +82,7 @@ func Int32(name string, value int32, usage string) *int32 { return CommandLine.Int32P(name, "", value, usage) } -// Like Int32, but accepts a shorthand letter that can be used after a single dash. +// Int32P is like Int32, but accepts a shorthand letter that can be used after a single dash. func Int32P(name, shorthand string, value int32, usage string) *int32 { return CommandLine.Int32P(name, shorthand, value, usage) } diff --git a/vendor/github.com/spf13/pflag/int64.go b/vendor/github.com/spf13/pflag/int64.go index 0114aaaa8..0026d781d 100644 --- a/vendor/github.com/spf13/pflag/int64.go +++ b/vendor/github.com/spf13/pflag/int64.go @@ -1,9 +1,6 @@ package pflag -import ( - "fmt" - "strconv" -) +import "strconv" // -- int64 Value type int64Value int64 @@ -23,7 +20,20 @@ func (i *int64Value) Type() string { return "int64" } -func (i *int64Value) String() string { return fmt.Sprintf("%v", *i) } +func (i *int64Value) String() string { return strconv.FormatInt(int64(*i), 10) } + +func int64Conv(sval string) (interface{}, error) { + return strconv.ParseInt(sval, 0, 64) +} + +// GetInt64 return the int64 value of a flag with the given name +func (f *FlagSet) GetInt64(name string) (int64, error) { + val, err := f.getFlagType(name, "int64", int64Conv) + if err != nil { + return 0, err + } + return val.(int64), nil +} // Int64Var defines an int64 flag with specified name, default value, and usage string. // The argument p points to an int64 variable in which to store the value of the flag. @@ -31,7 +41,7 @@ func (f *FlagSet) Int64Var(p *int64, name string, value int64, usage string) { f.VarP(newInt64Value(value, p), name, "", usage) } -// Like Int64Var, but accepts a shorthand letter that can be used after a single dash. +// Int64VarP is like Int64Var, but accepts a shorthand letter that can be used after a single dash. func (f *FlagSet) Int64VarP(p *int64, name, shorthand string, value int64, usage string) { f.VarP(newInt64Value(value, p), name, shorthand, usage) } @@ -42,7 +52,7 @@ func Int64Var(p *int64, name string, value int64, usage string) { CommandLine.VarP(newInt64Value(value, p), name, "", usage) } -// Like Int64Var, but accepts a shorthand letter that can be used after a single dash. +// Int64VarP is like Int64Var, but accepts a shorthand letter that can be used after a single dash. func Int64VarP(p *int64, name, shorthand string, value int64, usage string) { CommandLine.VarP(newInt64Value(value, p), name, shorthand, usage) } @@ -55,7 +65,7 @@ func (f *FlagSet) Int64(name string, value int64, usage string) *int64 { return p } -// Like Int64, but accepts a shorthand letter that can be used after a single dash. +// Int64P is like Int64, but accepts a shorthand letter that can be used after a single dash. func (f *FlagSet) Int64P(name, shorthand string, value int64, usage string) *int64 { p := new(int64) f.Int64VarP(p, name, shorthand, value, usage) @@ -68,7 +78,7 @@ func Int64(name string, value int64, usage string) *int64 { return CommandLine.Int64P(name, "", value, usage) } -// Like Int64, but accepts a shorthand letter that can be used after a single dash. +// Int64P is like Int64, but accepts a shorthand letter that can be used after a single dash. func Int64P(name, shorthand string, value int64, usage string) *int64 { return CommandLine.Int64P(name, shorthand, value, usage) } diff --git a/vendor/github.com/spf13/pflag/int8.go b/vendor/github.com/spf13/pflag/int8.go index aab1022f9..4da92228e 100644 --- a/vendor/github.com/spf13/pflag/int8.go +++ b/vendor/github.com/spf13/pflag/int8.go @@ -1,9 +1,6 @@ package pflag -import ( - "fmt" - "strconv" -) +import "strconv" // -- int8 Value type int8Value int8 @@ -23,7 +20,24 @@ func (i *int8Value) Type() string { return "int8" } -func (i *int8Value) String() string { return fmt.Sprintf("%v", *i) } +func (i *int8Value) String() string { return strconv.FormatInt(int64(*i), 10) } + +func int8Conv(sval string) (interface{}, error) { + v, err := strconv.ParseInt(sval, 0, 8) + if err != nil { + return 0, err + } + return int8(v), nil +} + +// GetInt8 return the int8 value of a flag with the given name +func (f *FlagSet) GetInt8(name string) (int8, error) { + val, err := f.getFlagType(name, "int8", int8Conv) + if err != nil { + return 0, err + } + return val.(int8), nil +} // Int8Var defines an int8 flag with specified name, default value, and usage string. // The argument p points to an int8 variable in which to store the value of the flag. @@ -31,7 +45,7 @@ func (f *FlagSet) Int8Var(p *int8, name string, value int8, usage string) { f.VarP(newInt8Value(value, p), name, "", usage) } -// Like Int8Var, but accepts a shorthand letter that can be used after a single dash. +// Int8VarP is like Int8Var, but accepts a shorthand letter that can be used after a single dash. func (f *FlagSet) Int8VarP(p *int8, name, shorthand string, value int8, usage string) { f.VarP(newInt8Value(value, p), name, shorthand, usage) } @@ -42,7 +56,7 @@ func Int8Var(p *int8, name string, value int8, usage string) { CommandLine.VarP(newInt8Value(value, p), name, "", usage) } -// Like Int8Var, but accepts a shorthand letter that can be used after a single dash. +// Int8VarP is like Int8Var, but accepts a shorthand letter that can be used after a single dash. func Int8VarP(p *int8, name, shorthand string, value int8, usage string) { CommandLine.VarP(newInt8Value(value, p), name, shorthand, usage) } @@ -55,7 +69,7 @@ func (f *FlagSet) Int8(name string, value int8, usage string) *int8 { return p } -// Like Int8, but accepts a shorthand letter that can be used after a single dash. +// Int8P is like Int8, but accepts a shorthand letter that can be used after a single dash. func (f *FlagSet) Int8P(name, shorthand string, value int8, usage string) *int8 { p := new(int8) f.Int8VarP(p, name, shorthand, value, usage) @@ -68,7 +82,7 @@ func Int8(name string, value int8, usage string) *int8 { return CommandLine.Int8P(name, "", value, usage) } -// Like Int8, but accepts a shorthand letter that can be used after a single dash. +// Int8P is like Int8, but accepts a shorthand letter that can be used after a single dash. func Int8P(name, shorthand string, value int8, usage string) *int8 { return CommandLine.Int8P(name, shorthand, value, usage) } diff --git a/vendor/github.com/spf13/pflag/int_slice.go b/vendor/github.com/spf13/pflag/int_slice.go new file mode 100644 index 000000000..1e7c9edde --- /dev/null +++ b/vendor/github.com/spf13/pflag/int_slice.go @@ -0,0 +1,128 @@ +package pflag + +import ( + "fmt" + "strconv" + "strings" +) + +// -- intSlice Value +type intSliceValue struct { + value *[]int + changed bool +} + +func newIntSliceValue(val []int, p *[]int) *intSliceValue { + isv := new(intSliceValue) + isv.value = p + *isv.value = val + return isv +} + +func (s *intSliceValue) Set(val string) error { + ss := strings.Split(val, ",") + out := make([]int, len(ss)) + for i, d := range ss { + var err error + out[i], err = strconv.Atoi(d) + if err != nil { + return err + } + + } + if !s.changed { + *s.value = out + } else { + *s.value = append(*s.value, out...) + } + s.changed = true + return nil +} + +func (s *intSliceValue) Type() string { + return "intSlice" +} + +func (s *intSliceValue) String() string { + out := make([]string, len(*s.value)) + for i, d := range *s.value { + out[i] = fmt.Sprintf("%d", d) + } + return "[" + strings.Join(out, ",") + "]" +} + +func intSliceConv(val string) (interface{}, error) { + val = strings.Trim(val, "[]") + // Empty string would cause a slice with one (empty) entry + if len(val) == 0 { + return []int{}, nil + } + ss := strings.Split(val, ",") + out := make([]int, len(ss)) + for i, d := range ss { + var err error + out[i], err = strconv.Atoi(d) + if err != nil { + return nil, err + } + + } + return out, nil +} + +// GetIntSlice return the []int value of a flag with the given name +func (f *FlagSet) GetIntSlice(name string) ([]int, error) { + val, err := f.getFlagType(name, "intSlice", intSliceConv) + if err != nil { + return []int{}, err + } + return val.([]int), nil +} + +// IntSliceVar defines a intSlice flag with specified name, default value, and usage string. +// The argument p points to a []int variable in which to store the value of the flag. +func (f *FlagSet) IntSliceVar(p *[]int, name string, value []int, usage string) { + f.VarP(newIntSliceValue(value, p), name, "", usage) +} + +// IntSliceVarP is like IntSliceVar, but accepts a shorthand letter that can be used after a single dash. +func (f *FlagSet) IntSliceVarP(p *[]int, name, shorthand string, value []int, usage string) { + f.VarP(newIntSliceValue(value, p), name, shorthand, usage) +} + +// IntSliceVar defines a int[] flag with specified name, default value, and usage string. +// The argument p points to a int[] variable in which to store the value of the flag. +func IntSliceVar(p *[]int, name string, value []int, usage string) { + CommandLine.VarP(newIntSliceValue(value, p), name, "", usage) +} + +// IntSliceVarP is like IntSliceVar, but accepts a shorthand letter that can be used after a single dash. +func IntSliceVarP(p *[]int, name, shorthand string, value []int, usage string) { + CommandLine.VarP(newIntSliceValue(value, p), name, shorthand, usage) +} + +// IntSlice defines a []int flag with specified name, default value, and usage string. +// The return value is the address of a []int variable that stores the value of the flag. +func (f *FlagSet) IntSlice(name string, value []int, usage string) *[]int { + p := []int{} + f.IntSliceVarP(&p, name, "", value, usage) + return &p +} + +// IntSliceP is like IntSlice, but accepts a shorthand letter that can be used after a single dash. +func (f *FlagSet) IntSliceP(name, shorthand string, value []int, usage string) *[]int { + p := []int{} + f.IntSliceVarP(&p, name, shorthand, value, usage) + return &p +} + +// IntSlice defines a []int flag with specified name, default value, and usage string. +// The return value is the address of a []int variable that stores the value of the flag. +func IntSlice(name string, value []int, usage string) *[]int { + return CommandLine.IntSliceP(name, "", value, usage) +} + +// IntSliceP is like IntSlice, but accepts a shorthand letter that can be used after a single dash. +func IntSliceP(name, shorthand string, value []int, usage string) *[]int { + return CommandLine.IntSliceP(name, shorthand, value, usage) +} diff --git a/vendor/github.com/spf13/pflag/ip.go b/vendor/github.com/spf13/pflag/ip.go index efa75fbc3..88a17430a 100644 --- a/vendor/github.com/spf13/pflag/ip.go +++ b/vendor/github.com/spf13/pflag/ip.go @@ -3,8 +3,11 @@ package pflag import ( "fmt" "net" + "strings" ) +var _ = strings.TrimSpace + // -- net.IP value type ipValue net.IP @@ -15,7 +18,7 @@ func newIPValue(val net.IP, p *net.IP) *ipValue { func (i *ipValue) String() string { return net.IP(*i).String() } func (i *ipValue) Set(s string) error { - ip := net.ParseIP(s) + ip := net.ParseIP(strings.TrimSpace(s)) if ip == nil { return fmt.Errorf("failed to parse IP: %q", s) } @@ -27,13 +30,30 @@ func (i *ipValue) Type() string { return "ip" } +func ipConv(sval string) (interface{}, error) { + ip := net.ParseIP(sval) + if ip != nil { + return ip, nil + } + return nil, fmt.Errorf("invalid string being converted to IP address: %s", sval) +} + +// GetIP return the net.IP value of a flag with the given name +func (f *FlagSet) GetIP(name string) (net.IP, error) { + val, err := f.getFlagType(name, "ip", ipConv) + if err != nil { + return nil, err + } + return val.(net.IP), nil +} + // IPVar defines an net.IP flag with specified name, default value, and usage string. // The argument p points to an net.IP variable in which to store the value of the flag. func (f *FlagSet) IPVar(p *net.IP, name string, value net.IP, usage string) { f.VarP(newIPValue(value, p), name, "", usage) } -// Like IPVar, but accepts a shorthand letter that can be used after a single dash. +// IPVarP is like IPVar, but accepts a shorthand letter that can be used after a single dash. func (f *FlagSet) IPVarP(p *net.IP, name, shorthand string, value net.IP, usage string) { f.VarP(newIPValue(value, p), name, shorthand, usage) } @@ -44,7 +64,7 @@ func IPVar(p *net.IP, name string, value net.IP, usage string) { CommandLine.VarP(newIPValue(value, p), name, "", usage) } -// Like IPVar, but accepts a shorthand letter that can be used after a single dash. +// IPVarP is like IPVar, but accepts a shorthand letter that can be used after a single dash. func IPVarP(p *net.IP, name, shorthand string, value net.IP, usage string) { CommandLine.VarP(newIPValue(value, p), name, shorthand, usage) } @@ -57,7 +77,7 @@ func (f *FlagSet) IP(name string, value net.IP, usage string) *net.IP { return p } -// Like IP, but accepts a shorthand letter that can be used after a single dash. +// IPP is like IP, but accepts a shorthand letter that can be used after a single dash. func (f *FlagSet) IPP(name, shorthand string, value net.IP, usage string) *net.IP { p := new(net.IP) f.IPVarP(p, name, shorthand, value, usage) @@ -70,7 +90,7 @@ func IP(name string, value net.IP, usage string) *net.IP { return CommandLine.IPP(name, "", value, usage) } -// Like IP, but accepts a shorthand letter that can be used after a single dash. +// IPP is like IP, but accepts a shorthand letter that can be used after a single dash. func IPP(name, shorthand string, value net.IP, usage string) *net.IP { return CommandLine.IPP(name, shorthand, value, usage) } diff --git a/vendor/github.com/spf13/pflag/ipmask.go b/vendor/github.com/spf13/pflag/ipmask.go index 09b9533e7..5bd44bd21 100644 --- a/vendor/github.com/spf13/pflag/ipmask.go +++ b/vendor/github.com/spf13/pflag/ipmask.go @@ -3,6 +3,7 @@ package pflag import ( "fmt" "net" + "strconv" ) // -- net.IPMask value @@ -27,23 +28,58 @@ func (i *ipMaskValue) Type() string { return "ipMask" } -// Parse IPv4 netmask written in IP form (e.g. 255.255.255.0). +// ParseIPv4Mask written in IP form (e.g. 255.255.255.0). // This function should really belong to the net package. func ParseIPv4Mask(s string) net.IPMask { mask := net.ParseIP(s) if mask == nil { - return nil + if len(s) != 8 { + return nil + } + // net.IPMask.String() actually outputs things like ffffff00 + // so write a horrible parser for that as well :-( + m := []int{} + for i := 0; i < 4; i++ { + b := "0x" + s[2*i:2*i+2] + d, err := strconv.ParseInt(b, 0, 0) + if err != nil { + return nil + } + m = append(m, int(d)) + } + s := fmt.Sprintf("%d.%d.%d.%d", m[0], m[1], m[2], m[3]) + mask = net.ParseIP(s) + if mask == nil { + return nil + } } return net.IPv4Mask(mask[12], mask[13], mask[14], mask[15]) } +func parseIPv4Mask(sval string) (interface{}, error) { + mask := ParseIPv4Mask(sval) + if mask == nil { + return nil, fmt.Errorf("unable to parse %s as net.IPMask", sval) + } + return mask, nil +} + +// GetIPv4Mask return the net.IPv4Mask value of a flag with the given name +func (f *FlagSet) GetIPv4Mask(name string) (net.IPMask, error) { + val, err := f.getFlagType(name, "ipMask", parseIPv4Mask) + if err != nil { + return nil, err + } + return val.(net.IPMask), nil +} + // IPMaskVar defines an net.IPMask flag with specified name, default value, and usage string. // The argument p points to an net.IPMask variable in which to store the value of the flag. func (f *FlagSet) IPMaskVar(p *net.IPMask, name string, value net.IPMask, usage string) { f.VarP(newIPMaskValue(value, p), name, "", usage) } -// Like IPMaskVar, but accepts a shorthand letter that can be used after a single dash. +// IPMaskVarP is like IPMaskVar, but accepts a shorthand letter that can be used after a single dash. func (f *FlagSet) IPMaskVarP(p *net.IPMask, name, shorthand string, value net.IPMask, usage string) { f.VarP(newIPMaskValue(value, p), name, shorthand, usage) } @@ -54,7 +90,7 @@ func IPMaskVar(p *net.IPMask, name string, value net.IPMask, usage string) { CommandLine.VarP(newIPMaskValue(value, p), name, "", usage) } -// Like IPMaskVar, but accepts a shorthand letter that can be used after a single dash. +// IPMaskVarP is like IPMaskVar, but accepts a shorthand letter that can be used after a single dash. func IPMaskVarP(p *net.IPMask, name, shorthand string, value net.IPMask, usage string) { CommandLine.VarP(newIPMaskValue(value, p), name, shorthand, usage) } @@ -67,7 +103,7 @@ func (f *FlagSet) IPMask(name string, value net.IPMask, usage string) *net.IPMas return p } -// Like IPMask, but accepts a shorthand letter that can be used after a single dash. +// IPMaskP is like IPMask, but accepts a shorthand letter that can be used after a single dash. func (f *FlagSet) IPMaskP(name, shorthand string, value net.IPMask, usage string) *net.IPMask { p := new(net.IPMask) f.IPMaskVarP(p, name, shorthand, value, usage) @@ -80,7 +116,7 @@ func IPMask(name string, value net.IPMask, usage string) *net.IPMask { return CommandLine.IPMaskP(name, "", value, usage) } -// Like IP, but accepts a shorthand letter that can be used after a single dash. +// IPMaskP is like IP, but accepts a shorthand letter that can be used after a single dash. func IPMaskP(name, shorthand string, value net.IPMask, usage string) *net.IPMask { return CommandLine.IPMaskP(name, shorthand, value, usage) } diff --git a/vendor/github.com/spf13/pflag/ipnet.go b/vendor/github.com/spf13/pflag/ipnet.go new file mode 100644 index 000000000..149b764b1 --- /dev/null +++ b/vendor/github.com/spf13/pflag/ipnet.go @@ -0,0 +1,100 @@ +package pflag + +import ( + "fmt" + "net" + "strings" +) + +// IPNet adapts net.IPNet for use as a flag. +type ipNetValue net.IPNet + +func (ipnet ipNetValue) String() string { + n := net.IPNet(ipnet) + return n.String() +} + +func (ipnet *ipNetValue) Set(value string) error { + _, n, err := net.ParseCIDR(strings.TrimSpace(value)) + if err != nil { + return err + } + *ipnet = ipNetValue(*n) + return nil +} + +func (*ipNetValue) Type() string { + return "ipNet" +} + +var _ = strings.TrimSpace + +func newIPNetValue(val net.IPNet, p *net.IPNet) *ipNetValue { + *p = val + return (*ipNetValue)(p) +} + +func ipNetConv(sval string) (interface{}, error) { + _, n, err := net.ParseCIDR(strings.TrimSpace(sval)) + if err == nil { + return *n, nil + } + return nil, fmt.Errorf("invalid string being converted to IPNet: %s", sval) +} + +// GetIPNet return the net.IPNet value of a flag with the given name +func (f *FlagSet) GetIPNet(name string) (net.IPNet, error) { + val, err := f.getFlagType(name, "ipNet", ipNetConv) + if err != nil { + return net.IPNet{}, err + } + return val.(net.IPNet), nil +} + +// IPNetVar defines an net.IPNet flag with specified name, default value, and usage string. +// The argument p points to an net.IPNet variable in which to store the value of the flag. +func (f *FlagSet) IPNetVar(p *net.IPNet, name string, value net.IPNet, usage string) { + f.VarP(newIPNetValue(value, p), name, "", usage) +} + +// IPNetVarP is like IPNetVar, but accepts a shorthand letter that can be used after a single dash. +func (f *FlagSet) IPNetVarP(p *net.IPNet, name, shorthand string, value net.IPNet, usage string) { + f.VarP(newIPNetValue(value, p), name, shorthand, usage) +} + +// IPNetVar defines an net.IPNet flag with specified name, default value, and usage string. +// The argument p points to an net.IPNet variable in which to store the value of the flag. +func IPNetVar(p *net.IPNet, name string, value net.IPNet, usage string) { + CommandLine.VarP(newIPNetValue(value, p), name, "", usage) +} + +// IPNetVarP is like IPNetVar, but accepts a shorthand letter that can be used after a single dash. +func IPNetVarP(p *net.IPNet, name, shorthand string, value net.IPNet, usage string) { + CommandLine.VarP(newIPNetValue(value, p), name, shorthand, usage) +} + +// IPNet defines an net.IPNet flag with specified name, default value, and usage string. +// The return value is the address of an net.IPNet variable that stores the value of the flag. +func (f *FlagSet) IPNet(name string, value net.IPNet, usage string) *net.IPNet { + p := new(net.IPNet) + f.IPNetVarP(p, name, "", value, usage) + return p +} + +// IPNetP is like IPNet, but accepts a shorthand letter that can be used after a single dash. +func (f *FlagSet) IPNetP(name, shorthand string, value net.IPNet, usage string) *net.IPNet { + p := new(net.IPNet) + f.IPNetVarP(p, name, shorthand, value, usage) + return p +} + +// IPNet defines an net.IPNet flag with specified name, default value, and usage string. +// The return value is the address of an net.IPNet variable that stores the value of the flag. +func IPNet(name string, value net.IPNet, usage string) *net.IPNet { + return CommandLine.IPNetP(name, "", value, usage) +} + +// IPNetP is like IPNet, but accepts a shorthand letter that can be used after a single dash. +func IPNetP(name, shorthand string, value net.IPNet, usage string) *net.IPNet { + return CommandLine.IPNetP(name, shorthand, value, usage) +} diff --git a/vendor/github.com/spf13/pflag/string.go b/vendor/github.com/spf13/pflag/string.go index 362fbf8a8..04e0a26ff 100644 --- a/vendor/github.com/spf13/pflag/string.go +++ b/vendor/github.com/spf13/pflag/string.go @@ -1,7 +1,5 @@ package pflag -import "fmt" - // -- string Value type stringValue string @@ -18,7 +16,20 @@ func (s *stringValue) Type() string { return "string" } -func (s *stringValue) String() string { return fmt.Sprintf("%s", *s) } +func (s *stringValue) String() string { return string(*s) } + +func stringConv(sval string) (interface{}, error) { + return sval, nil +} + +// GetString return the string value of a flag with the given name +func (f *FlagSet) GetString(name string) (string, error) { + val, err := f.getFlagType(name, "string", stringConv) + if err != nil { + return "", err + } + return val.(string), nil +} // StringVar defines a string flag with specified name, default value, and usage string. // The argument p points to a string variable in which to store the value of the flag. @@ -26,7 +37,7 @@ func (f *FlagSet) StringVar(p *string, name string, value string, usage string) f.VarP(newStringValue(value, p), name, "", usage) } -// Like StringVar, but accepts a shorthand letter that can be used after a single dash. +// StringVarP is like StringVar, but accepts a shorthand letter that can be used after a single dash. func (f *FlagSet) StringVarP(p *string, name, shorthand string, value string, usage string) { f.VarP(newStringValue(value, p), name, shorthand, usage) } @@ -37,7 +48,7 @@ func StringVar(p *string, name string, value string, usage string) { CommandLine.VarP(newStringValue(value, p), name, "", usage) } -// Like StringVar, but accepts a shorthand letter that can be used after a single dash. +// StringVarP is like StringVar, but accepts a shorthand letter that can be used after a single dash. func StringVarP(p *string, name, shorthand string, value string, usage string) { CommandLine.VarP(newStringValue(value, p), name, shorthand, usage) } @@ -50,7 +61,7 @@ func (f *FlagSet) String(name string, value string, usage string) *string { return p } -// Like String, but accepts a shorthand letter that can be used after a single dash. +// StringP is like String, but accepts a shorthand letter that can be used after a single dash. func (f *FlagSet) StringP(name, shorthand string, value string, usage string) *string { p := new(string) f.StringVarP(p, name, shorthand, value, usage) @@ -63,7 +74,7 @@ func String(name string, value string, usage string) *string { return CommandLine.StringP(name, "", value, usage) } -// Like String, but accepts a shorthand letter that can be used after a single dash. +// StringP is like String, but accepts a shorthand letter that can be used after a single dash. func StringP(name, shorthand string, value string, usage string) *string { return CommandLine.StringP(name, shorthand, value, usage) } diff --git a/vendor/github.com/spf13/pflag/string_array.go b/vendor/github.com/spf13/pflag/string_array.go new file mode 100644 index 000000000..93b4e4329 --- /dev/null +++ b/vendor/github.com/spf13/pflag/string_array.go @@ -0,0 +1,109 @@ +package pflag + +import ( + "fmt" +) + +var _ = fmt.Fprint + +// -- stringArray Value +type stringArrayValue struct { + value *[]string + changed bool +} + +func newStringArrayValue(val []string, p *[]string) *stringArrayValue { + ssv := new(stringArrayValue) + ssv.value = p + *ssv.value = val + return ssv +} + +func (s *stringArrayValue) Set(val string) error { + if !s.changed { + *s.value = []string{val} + s.changed = true + } else { + *s.value = append(*s.value, val) + } + return nil +} + +func (s *stringArrayValue) Type() string { + return "stringArray" +} + +func (s *stringArrayValue) String() string { + str, _ := writeAsCSV(*s.value) + return "[" + str + "]" +} + +func stringArrayConv(sval string) (interface{}, error) { + sval = sval[1 : len(sval)-1] + // An empty string would cause a array with one (empty) string + if len(sval) == 0 { + return []string{}, nil + } + return readAsCSV(sval) +} + +// GetStringArray return the []string value of a flag with the given name +func (f *FlagSet) GetStringArray(name string) ([]string, error) { + val, err := f.getFlagType(name, "stringArray", stringArrayConv) + if err != nil { + return []string{}, err + } + return val.([]string), nil +} + +// StringArrayVar defines a string flag with specified name, default value, and usage string. +// The argument p points to a []string variable in which to store the values of the multiple flags. +// The value of each argument will not try to be separated by comma +func (f *FlagSet) StringArrayVar(p *[]string, name string, value []string, usage string) { + f.VarP(newStringArrayValue(value, p), name, "", usage) +} + +// StringArrayVarP is like StringArrayVar, but accepts a shorthand letter that can be used after a single dash. +func (f *FlagSet) StringArrayVarP(p *[]string, name, shorthand string, value []string, usage string) { + f.VarP(newStringArrayValue(value, p), name, shorthand, usage) +} + +// StringArrayVar defines a string flag with specified name, default value, and usage string. +// The argument p points to a []string variable in which to store the value of the flag. +// The value of each argument will not try to be separated by comma +func StringArrayVar(p *[]string, name string, value []string, usage string) { + CommandLine.VarP(newStringArrayValue(value, p), name, "", usage) +} + +// StringArrayVarP is like StringArrayVar, but accepts a shorthand letter that can be used after a single dash. +func StringArrayVarP(p *[]string, name, shorthand string, value []string, usage string) { + CommandLine.VarP(newStringArrayValue(value, p), name, shorthand, usage) +} + +// StringArray defines a string flag with specified name, default value, and usage string. +// The return value is the address of a []string variable that stores the value of the flag. +// The value of each argument will not try to be separated by comma +func (f *FlagSet) StringArray(name string, value []string, usage string) *[]string { + p := []string{} + f.StringArrayVarP(&p, name, "", value, usage) + return &p +} + +// StringArrayP is like StringArray, but accepts a shorthand letter that can be used after a single dash. +func (f *FlagSet) StringArrayP(name, shorthand string, value []string, usage string) *[]string { + p := []string{} + f.StringArrayVarP(&p, name, shorthand, value, usage) + return &p +} + +// StringArray defines a string flag with specified name, default value, and usage string. +// The return value is the address of a []string variable that stores the value of the flag. +// The value of each argument will not try to be separated by comma +func StringArray(name string, value []string, usage string) *[]string { + return CommandLine.StringArrayP(name, "", value, usage) +} + +// StringArrayP is like StringArray, but accepts a shorthand letter that can be used after a single dash. +func StringArrayP(name, shorthand string, value []string, usage string) *[]string { + return CommandLine.StringArrayP(name, shorthand, value, usage) +} diff --git a/vendor/github.com/spf13/pflag/string_slice.go b/vendor/github.com/spf13/pflag/string_slice.go new file mode 100644 index 000000000..7829cfafb --- /dev/null +++ b/vendor/github.com/spf13/pflag/string_slice.go @@ -0,0 +1,132 @@ +package pflag + +import ( + "bytes" + "encoding/csv" + "fmt" + "strings" +) + +var _ = fmt.Fprint + +// -- stringSlice Value +type stringSliceValue struct { + value *[]string + changed bool +} + +func newStringSliceValue(val []string, p *[]string) *stringSliceValue { + ssv := new(stringSliceValue) + ssv.value = p + *ssv.value = val + return ssv +} + +func readAsCSV(val string) ([]string, error) { + if val == "" { + return []string{}, nil + } + stringReader := strings.NewReader(val) + csvReader := csv.NewReader(stringReader) + return csvReader.Read() +} + +func writeAsCSV(vals []string) (string, error) { + b := &bytes.Buffer{} + w := csv.NewWriter(b) + err := w.Write(vals) + if err != nil { + return "", err + } + w.Flush() + return strings.TrimSuffix(b.String(), fmt.Sprintln()), nil +} + +func (s *stringSliceValue) Set(val string) error { + v, err := readAsCSV(val) + if err != nil { + return err + } + if !s.changed { + *s.value = v + } else { + *s.value = append(*s.value, v...) + } + s.changed = true + return nil +} + +func (s *stringSliceValue) Type() string { + return "stringSlice" +} + +func (s *stringSliceValue) String() string { + str, _ := writeAsCSV(*s.value) + return "[" + str + "]" +} + +func stringSliceConv(sval string) (interface{}, error) { + sval = sval[1 : len(sval)-1] + // An empty string would cause a slice with one (empty) string + if len(sval) == 0 { + return []string{}, nil + } + return readAsCSV(sval) +} + +// GetStringSlice return the []string value of a flag with the given name +func (f *FlagSet) GetStringSlice(name string) ([]string, error) { + val, err := f.getFlagType(name, "stringSlice", stringSliceConv) + if err != nil { + return []string{}, err + } + return val.([]string), nil +} + +// StringSliceVar defines a string flag with specified name, default value, and usage string. +// The argument p points to a []string variable in which to store the value of the flag. +func (f *FlagSet) StringSliceVar(p *[]string, name string, value []string, usage string) { + f.VarP(newStringSliceValue(value, p), name, "", usage) +} + +// StringSliceVarP is like StringSliceVar, but accepts a shorthand letter that can be used after a single dash. +func (f *FlagSet) StringSliceVarP(p *[]string, name, shorthand string, value []string, usage string) { + f.VarP(newStringSliceValue(value, p), name, shorthand, usage) +} + +// StringSliceVar defines a string flag with specified name, default value, and usage string. +// The argument p points to a []string variable in which to store the value of the flag. +func StringSliceVar(p *[]string, name string, value []string, usage string) { + CommandLine.VarP(newStringSliceValue(value, p), name, "", usage) +} + +// StringSliceVarP is like StringSliceVar, but accepts a shorthand letter that can be used after a single dash. +func StringSliceVarP(p *[]string, name, shorthand string, value []string, usage string) { + CommandLine.VarP(newStringSliceValue(value, p), name, shorthand, usage) +} + +// StringSlice defines a string flag with specified name, default value, and usage string. +// The return value is the address of a []string variable that stores the value of the flag. +func (f *FlagSet) StringSlice(name string, value []string, usage string) *[]string { + p := []string{} + f.StringSliceVarP(&p, name, "", value, usage) + return &p +} + +// StringSliceP is like StringSlice, but accepts a shorthand letter that can be used after a single dash. +func (f *FlagSet) StringSliceP(name, shorthand string, value []string, usage string) *[]string { + p := []string{} + f.StringSliceVarP(&p, name, shorthand, value, usage) + return &p +} + +// StringSlice defines a string flag with specified name, default value, and usage string. +// The return value is the address of a []string variable that stores the value of the flag. +func StringSlice(name string, value []string, usage string) *[]string { + return CommandLine.StringSliceP(name, "", value, usage) +} + +// StringSliceP is like StringSlice, but accepts a shorthand letter that can be used after a single dash. +func StringSliceP(name, shorthand string, value []string, usage string) *[]string { + return CommandLine.StringSliceP(name, shorthand, value, usage) +} diff --git a/vendor/github.com/spf13/pflag/uint.go b/vendor/github.com/spf13/pflag/uint.go index c063fe7cb..dcbc2b758 100644 --- a/vendor/github.com/spf13/pflag/uint.go +++ b/vendor/github.com/spf13/pflag/uint.go @@ -1,9 +1,6 @@ package pflag -import ( - "fmt" - "strconv" -) +import "strconv" // -- uint Value type uintValue uint @@ -23,7 +20,24 @@ func (i *uintValue) Type() string { return "uint" } -func (i *uintValue) String() string { return fmt.Sprintf("%v", *i) } +func (i *uintValue) String() string { return strconv.FormatUint(uint64(*i), 10) } + +func uintConv(sval string) (interface{}, error) { + v, err := strconv.ParseUint(sval, 0, 0) + if err != nil { + return 0, err + } + return uint(v), nil +} + +// GetUint return the uint value of a flag with the given name +func (f *FlagSet) GetUint(name string) (uint, error) { + val, err := f.getFlagType(name, "uint", uintConv) + if err != nil { + return 0, err + } + return val.(uint), nil +} // UintVar defines a uint flag with specified name, default value, and usage string. // The argument p points to a uint variable in which to store the value of the flag. @@ -31,7 +45,7 @@ func (f *FlagSet) UintVar(p *uint, name string, value uint, usage string) { f.VarP(newUintValue(value, p), name, "", usage) } -// Like UintVar, but accepts a shorthand letter that can be used after a single dash. +// UintVarP is like UintVar, but accepts a shorthand letter that can be used after a single dash. func (f *FlagSet) UintVarP(p *uint, name, shorthand string, value uint, usage string) { f.VarP(newUintValue(value, p), name, shorthand, usage) } @@ -42,7 +56,7 @@ func UintVar(p *uint, name string, value uint, usage string) { CommandLine.VarP(newUintValue(value, p), name, "", usage) } -// Like UintVar, but accepts a shorthand letter that can be used after a single dash. +// UintVarP is like UintVar, but accepts a shorthand letter that can be used after a single dash. func UintVarP(p *uint, name, shorthand string, value uint, usage string) { CommandLine.VarP(newUintValue(value, p), name, shorthand, usage) } @@ -55,7 +69,7 @@ func (f *FlagSet) Uint(name string, value uint, usage string) *uint { return p } -// Like Uint, but accepts a shorthand letter that can be used after a single dash. +// UintP is like Uint, but accepts a shorthand letter that can be used after a single dash. func (f *FlagSet) UintP(name, shorthand string, value uint, usage string) *uint { p := new(uint) f.UintVarP(p, name, shorthand, value, usage) @@ -68,7 +82,7 @@ func Uint(name string, value uint, usage string) *uint { return CommandLine.UintP(name, "", value, usage) } -// Like Uint, but accepts a shorthand letter that can be used after a single dash. +// UintP is like Uint, but accepts a shorthand letter that can be used after a single dash. func UintP(name, shorthand string, value uint, usage string) *uint { return CommandLine.UintP(name, shorthand, value, usage) } diff --git a/vendor/github.com/spf13/pflag/uint16.go b/vendor/github.com/spf13/pflag/uint16.go index ab1c1f9ee..7e9914edd 100644 --- a/vendor/github.com/spf13/pflag/uint16.go +++ b/vendor/github.com/spf13/pflag/uint16.go @@ -1,9 +1,6 @@ package pflag -import ( - "fmt" - "strconv" -) +import "strconv" // -- uint16 value type uint16Value uint16 @@ -12,7 +9,7 @@ func newUint16Value(val uint16, p *uint16) *uint16Value { *p = val return (*uint16Value)(p) } -func (i *uint16Value) String() string { return fmt.Sprintf("%d", *i) } + func (i *uint16Value) Set(s string) error { v, err := strconv.ParseUint(s, 0, 16) *i = uint16Value(v) @@ -23,13 +20,32 @@ func (i *uint16Value) Type() string { return "uint16" } +func (i *uint16Value) String() string { return strconv.FormatUint(uint64(*i), 10) } + +func uint16Conv(sval string) (interface{}, error) { + v, err := strconv.ParseUint(sval, 0, 16) + if err != nil { + return 0, err + } + return uint16(v), nil +} + +// GetUint16 return the uint16 value of a flag with the given name +func (f *FlagSet) GetUint16(name string) (uint16, error) { + val, err := f.getFlagType(name, "uint16", uint16Conv) + if err != nil { + return 0, err + } + return val.(uint16), nil +} + // Uint16Var defines a uint flag with specified name, default value, and usage string. // The argument p points to a uint variable in which to store the value of the flag. func (f *FlagSet) Uint16Var(p *uint16, name string, value uint16, usage string) { f.VarP(newUint16Value(value, p), name, "", usage) } -// Like Uint16Var, but accepts a shorthand letter that can be used after a single dash. +// Uint16VarP is like Uint16Var, but accepts a shorthand letter that can be used after a single dash. func (f *FlagSet) Uint16VarP(p *uint16, name, shorthand string, value uint16, usage string) { f.VarP(newUint16Value(value, p), name, shorthand, usage) } @@ -40,7 +56,7 @@ func Uint16Var(p *uint16, name string, value uint16, usage string) { CommandLine.VarP(newUint16Value(value, p), name, "", usage) } -// Like Uint16Var, but accepts a shorthand letter that can be used after a single dash. +// Uint16VarP is like Uint16Var, but accepts a shorthand letter that can be used after a single dash. func Uint16VarP(p *uint16, name, shorthand string, value uint16, usage string) { CommandLine.VarP(newUint16Value(value, p), name, shorthand, usage) } @@ -53,7 +69,7 @@ func (f *FlagSet) Uint16(name string, value uint16, usage string) *uint16 { return p } -// Like Uint16, but accepts a shorthand letter that can be used after a single dash. +// Uint16P is like Uint16, but accepts a shorthand letter that can be used after a single dash. func (f *FlagSet) Uint16P(name, shorthand string, value uint16, usage string) *uint16 { p := new(uint16) f.Uint16VarP(p, name, shorthand, value, usage) @@ -66,7 +82,7 @@ func Uint16(name string, value uint16, usage string) *uint16 { return CommandLine.Uint16P(name, "", value, usage) } -// Like Uint16, but accepts a shorthand letter that can be used after a single dash. +// Uint16P is like Uint16, but accepts a shorthand letter that can be used after a single dash. func Uint16P(name, shorthand string, value uint16, usage string) *uint16 { return CommandLine.Uint16P(name, shorthand, value, usage) } diff --git a/vendor/github.com/spf13/pflag/uint32.go b/vendor/github.com/spf13/pflag/uint32.go index db635ae88..d8024539b 100644 --- a/vendor/github.com/spf13/pflag/uint32.go +++ b/vendor/github.com/spf13/pflag/uint32.go @@ -1,18 +1,15 @@ package pflag -import ( - "fmt" - "strconv" -) +import "strconv" -// -- uint16 value +// -- uint32 value type uint32Value uint32 func newUint32Value(val uint32, p *uint32) *uint32Value { *p = val return (*uint32Value)(p) } -func (i *uint32Value) String() string { return fmt.Sprintf("%d", *i) } + func (i *uint32Value) Set(s string) error { v, err := strconv.ParseUint(s, 0, 32) *i = uint32Value(v) @@ -23,13 +20,32 @@ func (i *uint32Value) Type() string { return "uint32" } +func (i *uint32Value) String() string { return strconv.FormatUint(uint64(*i), 10) } + +func uint32Conv(sval string) (interface{}, error) { + v, err := strconv.ParseUint(sval, 0, 32) + if err != nil { + return 0, err + } + return uint32(v), nil +} + +// GetUint32 return the uint32 value of a flag with the given name +func (f *FlagSet) GetUint32(name string) (uint32, error) { + val, err := f.getFlagType(name, "uint32", uint32Conv) + if err != nil { + return 0, err + } + return val.(uint32), nil +} + // Uint32Var defines a uint32 flag with specified name, default value, and usage string. // The argument p points to a uint32 variable in which to store the value of the flag. func (f *FlagSet) Uint32Var(p *uint32, name string, value uint32, usage string) { f.VarP(newUint32Value(value, p), name, "", usage) } -// Like Uint32Var, but accepts a shorthand letter that can be used after a single dash. +// Uint32VarP is like Uint32Var, but accepts a shorthand letter that can be used after a single dash. func (f *FlagSet) Uint32VarP(p *uint32, name, shorthand string, value uint32, usage string) { f.VarP(newUint32Value(value, p), name, shorthand, usage) } @@ -40,7 +56,7 @@ func Uint32Var(p *uint32, name string, value uint32, usage string) { CommandLine.VarP(newUint32Value(value, p), name, "", usage) } -// Like Uint32Var, but accepts a shorthand letter that can be used after a single dash. +// Uint32VarP is like Uint32Var, but accepts a shorthand letter that can be used after a single dash. func Uint32VarP(p *uint32, name, shorthand string, value uint32, usage string) { CommandLine.VarP(newUint32Value(value, p), name, shorthand, usage) } @@ -53,7 +69,7 @@ func (f *FlagSet) Uint32(name string, value uint32, usage string) *uint32 { return p } -// Like Uint32, but accepts a shorthand letter that can be used after a single dash. +// Uint32P is like Uint32, but accepts a shorthand letter that can be used after a single dash. func (f *FlagSet) Uint32P(name, shorthand string, value uint32, usage string) *uint32 { p := new(uint32) f.Uint32VarP(p, name, shorthand, value, usage) @@ -66,7 +82,7 @@ func Uint32(name string, value uint32, usage string) *uint32 { return CommandLine.Uint32P(name, "", value, usage) } -// Like Uint32, but accepts a shorthand letter that can be used after a single dash. +// Uint32P is like Uint32, but accepts a shorthand letter that can be used after a single dash. func Uint32P(name, shorthand string, value uint32, usage string) *uint32 { return CommandLine.Uint32P(name, shorthand, value, usage) } diff --git a/vendor/github.com/spf13/pflag/uint64.go b/vendor/github.com/spf13/pflag/uint64.go index 99c7e805d..f62240f2c 100644 --- a/vendor/github.com/spf13/pflag/uint64.go +++ b/vendor/github.com/spf13/pflag/uint64.go @@ -1,9 +1,6 @@ package pflag -import ( - "fmt" - "strconv" -) +import "strconv" // -- uint64 Value type uint64Value uint64 @@ -23,7 +20,24 @@ func (i *uint64Value) Type() string { return "uint64" } -func (i *uint64Value) String() string { return fmt.Sprintf("%v", *i) } +func (i *uint64Value) String() string { return strconv.FormatUint(uint64(*i), 10) } + +func uint64Conv(sval string) (interface{}, error) { + v, err := strconv.ParseUint(sval, 0, 64) + if err != nil { + return 0, err + } + return uint64(v), nil +} + +// GetUint64 return the uint64 value of a flag with the given name +func (f *FlagSet) GetUint64(name string) (uint64, error) { + val, err := f.getFlagType(name, "uint64", uint64Conv) + if err != nil { + return 0, err + } + return val.(uint64), nil +} // Uint64Var defines a uint64 flag with specified name, default value, and usage string. // The argument p points to a uint64 variable in which to store the value of the flag. @@ -31,7 +45,7 @@ func (f *FlagSet) Uint64Var(p *uint64, name string, value uint64, usage string) f.VarP(newUint64Value(value, p), name, "", usage) } -// Like Uint64Var, but accepts a shorthand letter that can be used after a single dash. +// Uint64VarP is like Uint64Var, but accepts a shorthand letter that can be used after a single dash. func (f *FlagSet) Uint64VarP(p *uint64, name, shorthand string, value uint64, usage string) { f.VarP(newUint64Value(value, p), name, shorthand, usage) } @@ -42,7 +56,7 @@ func Uint64Var(p *uint64, name string, value uint64, usage string) { CommandLine.VarP(newUint64Value(value, p), name, "", usage) } -// Like Uint64Var, but accepts a shorthand letter that can be used after a single dash. +// Uint64VarP is like Uint64Var, but accepts a shorthand letter that can be used after a single dash. func Uint64VarP(p *uint64, name, shorthand string, value uint64, usage string) { CommandLine.VarP(newUint64Value(value, p), name, shorthand, usage) } @@ -55,7 +69,7 @@ func (f *FlagSet) Uint64(name string, value uint64, usage string) *uint64 { return p } -// Like Uint64, but accepts a shorthand letter that can be used after a single dash. +// Uint64P is like Uint64, but accepts a shorthand letter that can be used after a single dash. func (f *FlagSet) Uint64P(name, shorthand string, value uint64, usage string) *uint64 { p := new(uint64) f.Uint64VarP(p, name, shorthand, value, usage) @@ -68,7 +82,7 @@ func Uint64(name string, value uint64, usage string) *uint64 { return CommandLine.Uint64P(name, "", value, usage) } -// Like Uint64, but accepts a shorthand letter that can be used after a single dash. +// Uint64P is like Uint64, but accepts a shorthand letter that can be used after a single dash. func Uint64P(name, shorthand string, value uint64, usage string) *uint64 { return CommandLine.Uint64P(name, shorthand, value, usage) } diff --git a/vendor/github.com/spf13/pflag/uint8.go b/vendor/github.com/spf13/pflag/uint8.go index 6fef508de..bb0e83c1f 100644 --- a/vendor/github.com/spf13/pflag/uint8.go +++ b/vendor/github.com/spf13/pflag/uint8.go @@ -1,9 +1,6 @@ package pflag -import ( - "fmt" - "strconv" -) +import "strconv" // -- uint8 Value type uint8Value uint8 @@ -23,7 +20,24 @@ func (i *uint8Value) Type() string { return "uint8" } -func (i *uint8Value) String() string { return fmt.Sprintf("%v", *i) } +func (i *uint8Value) String() string { return strconv.FormatUint(uint64(*i), 10) } + +func uint8Conv(sval string) (interface{}, error) { + v, err := strconv.ParseUint(sval, 0, 8) + if err != nil { + return 0, err + } + return uint8(v), nil +} + +// GetUint8 return the uint8 value of a flag with the given name +func (f *FlagSet) GetUint8(name string) (uint8, error) { + val, err := f.getFlagType(name, "uint8", uint8Conv) + if err != nil { + return 0, err + } + return val.(uint8), nil +} // Uint8Var defines a uint8 flag with specified name, default value, and usage string. // The argument p points to a uint8 variable in which to store the value of the flag. @@ -31,7 +45,7 @@ func (f *FlagSet) Uint8Var(p *uint8, name string, value uint8, usage string) { f.VarP(newUint8Value(value, p), name, "", usage) } -// Like Uint8Var, but accepts a shorthand letter that can be used after a single dash. +// Uint8VarP is like Uint8Var, but accepts a shorthand letter that can be used after a single dash. func (f *FlagSet) Uint8VarP(p *uint8, name, shorthand string, value uint8, usage string) { f.VarP(newUint8Value(value, p), name, shorthand, usage) } @@ -42,7 +56,7 @@ func Uint8Var(p *uint8, name string, value uint8, usage string) { CommandLine.VarP(newUint8Value(value, p), name, "", usage) } -// Like Uint8Var, but accepts a shorthand letter that can be used after a single dash. +// Uint8VarP is like Uint8Var, but accepts a shorthand letter that can be used after a single dash. func Uint8VarP(p *uint8, name, shorthand string, value uint8, usage string) { CommandLine.VarP(newUint8Value(value, p), name, shorthand, usage) } @@ -55,7 +69,7 @@ func (f *FlagSet) Uint8(name string, value uint8, usage string) *uint8 { return p } -// Like Uint8, but accepts a shorthand letter that can be used after a single dash. +// Uint8P is like Uint8, but accepts a shorthand letter that can be used after a single dash. func (f *FlagSet) Uint8P(name, shorthand string, value uint8, usage string) *uint8 { p := new(uint8) f.Uint8VarP(p, name, shorthand, value, usage) @@ -68,7 +82,7 @@ func Uint8(name string, value uint8, usage string) *uint8 { return CommandLine.Uint8P(name, "", value, usage) } -// Like Uint8, but accepts a shorthand letter that can be used after a single dash. +// Uint8P is like Uint8, but accepts a shorthand letter that can be used after a single dash. func Uint8P(name, shorthand string, value uint8, usage string) *uint8 { return CommandLine.Uint8P(name, shorthand, value, usage) } diff --git a/vendor/golang.org/x/net/internal/timeseries/timeseries.go b/vendor/golang.org/x/net/internal/timeseries/timeseries.go new file mode 100644 index 000000000..1119f3448 --- /dev/null +++ b/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 "golang.org/x/net/internal/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/vendor/golang.org/x/net/trace/events.go b/vendor/golang.org/x/net/trace/events.go new file mode 100644 index 000000000..e66c7e328 --- /dev/null +++ b/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/vendor/golang.org/x/net/trace/histogram.go b/vendor/golang.org/x/net/trace/histogram.go new file mode 100644 index 000000000..bb42aa532 --- /dev/null +++ b/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/vendor/golang.org/x/net/trace/trace.go b/vendor/golang.org/x/net/trace/trace.go new file mode 100644 index 000000000..ecd766eb7 --- /dev/null +++ b/vendor/golang.org/x/net/trace/trace.go @@ -0,0 +1,1071 @@ +// 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 "golang.org/x/net/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 customize its authorization 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.maxEvents = maxEventsPerTrace + tr.events = tr.eventsBuf[:0] + + 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 + Sensitive bool // whether this event contains sensitive information + What interface{} // string or fmt.Stringer +} + +// 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 + maxEvents int + + 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 + + eventsBuf [4]event // preallocated buffer in case we only log a few events +} + +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.maxEvents = 0 + tr.events = nil + tr.refs = 0 + tr.recycler = nil + tr.disc = 0 + tr.finishStack = nil + for i := range tr.eventsBuf { + tr.eventsBuf[i] = event{} + } +} + +// 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 trace.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) < tr.maxEvents { + tr.events = append(tr.events, e) + } else { + // Discard the middle events. + di := int((tr.maxEvents - 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[tr.maxEvents-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.maxEvents = 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/vendor/golang.org/x/oauth2/client_appengine.go b/vendor/golang.org/x/oauth2/client_appengine.go index 10aaf917d..8962c49d1 100644 --- a/vendor/golang.org/x/oauth2/client_appengine.go +++ b/vendor/golang.org/x/oauth2/client_appengine.go @@ -1,8 +1,8 @@ -// Copyright 2014 The oauth2 Authors. All rights reserved. +// 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 appengine appenginevm +// +build appengine // App Engine hooks. @@ -12,11 +12,12 @@ import ( "net/http" "golang.org/x/net/context" + "golang.org/x/oauth2/internal" "google.golang.org/appengine/urlfetch" ) func init() { - registerContextClientFunc(contextClientAppEngine) + internal.RegisterContextClientFunc(contextClientAppEngine) } func contextClientAppEngine(ctx context.Context) (*http.Client, error) { diff --git a/vendor/golang.org/x/oauth2/google/appengine.go b/vendor/golang.org/x/oauth2/google/appengine.go index 65dc34731..50d918b87 100644 --- a/vendor/golang.org/x/oauth2/google/appengine.go +++ b/vendor/golang.org/x/oauth2/google/appengine.go @@ -1,4 +1,4 @@ -// Copyright 2014 The oauth2 Authors. All rights reserved. +// 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. @@ -14,9 +14,15 @@ import ( "golang.org/x/oauth2" ) +// appengineFlex is set at init time by appengineflex_hook.go. If true, we are on App Engine Flex. +var appengineFlex bool + // Set at init time by appengine_hook.go. If nil, we're not on App Engine. var appengineTokenFunc func(c context.Context, scopes ...string) (token string, expiry time.Time, err error) +// Set at init time by appengine_hook.go. If nil, we're not on App Engine. +var appengineAppIDFunc func(c context.Context) string + // AppEngineTokenSource returns a token source that fetches tokens // issued to the current App Engine application's service account. // If you are implementing a 3-legged OAuth 2.0 flow on App Engine diff --git a/vendor/golang.org/x/oauth2/google/appengine_hook.go b/vendor/golang.org/x/oauth2/google/appengine_hook.go index 2f9b15432..56669eaa9 100644 --- a/vendor/golang.org/x/oauth2/google/appengine_hook.go +++ b/vendor/golang.org/x/oauth2/google/appengine_hook.go @@ -1,4 +1,4 @@ -// Copyright 2015 The oauth2 Authors. All rights reserved. +// 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. @@ -10,4 +10,5 @@ import "google.golang.org/appengine" func init() { appengineTokenFunc = appengine.AccessToken + appengineAppIDFunc = appengine.AppID } diff --git a/vendor/golang.org/x/oauth2/google/appengineflex_hook.go b/vendor/golang.org/x/oauth2/google/appengineflex_hook.go new file mode 100644 index 000000000..5d0231af2 --- /dev/null +++ b/vendor/golang.org/x/oauth2/google/appengineflex_hook.go @@ -0,0 +1,11 @@ +// 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 appenginevm + +package google + +func init() { + appengineFlex = true // Flex doesn't support appengine.AccessToken; depend on metadata server. +} diff --git a/vendor/golang.org/x/oauth2/google/default.go b/vendor/golang.org/x/oauth2/google/default.go index 817bfb720..004ed4eab 100644 --- a/vendor/golang.org/x/oauth2/google/default.go +++ b/vendor/golang.org/x/oauth2/google/default.go @@ -1,4 +1,4 @@ -// Copyright 2015 The oauth2 Authors. All rights reserved. +// 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. @@ -6,7 +6,6 @@ package google import ( "encoding/json" - "errors" "fmt" "io/ioutil" "net/http" @@ -14,22 +13,21 @@ import ( "path/filepath" "runtime" + "cloud.google.com/go/compute/metadata" "golang.org/x/net/context" "golang.org/x/oauth2" - "golang.org/x/oauth2/jwt" - "google.golang.org/cloud/compute/metadata" ) +// DefaultCredentials holds "Application Default Credentials". +// For more details, see: +// https://developers.google.com/accounts/docs/application-default-credentials +type DefaultCredentials struct { + ProjectID string // may be empty + TokenSource oauth2.TokenSource +} + // DefaultClient returns an HTTP Client that uses the // DefaultTokenSource to obtain authentication credentials. -// -// This client should be used when developing services -// that run on Google App Engine or Google Compute Engine -// and use "Application Default Credentials." -// -// For more details, see: -// https://developers.google.com/accounts/application-default-credentials -// func DefaultClient(ctx context.Context, scope ...string) (*http.Client, error) { ts, err := DefaultTokenSource(ctx, scope...) if err != nil { @@ -38,8 +36,18 @@ func DefaultClient(ctx context.Context, scope ...string) (*http.Client, error) { return oauth2.NewClient(ctx, ts), nil } -// DefaultTokenSource is a token source that uses +// DefaultTokenSource returns the token source for // "Application Default Credentials". +// It is a shortcut for FindDefaultCredentials(ctx, scope).TokenSource. +func DefaultTokenSource(ctx context.Context, scope ...string) (oauth2.TokenSource, error) { + creds, err := FindDefaultCredentials(ctx, scope...) + if err != nil { + return nil, err + } + return creds.TokenSource, nil +} + +// FindDefaultCredentials searches for "Application Default Credentials". // // It looks for credentials in the following places, // preferring the first location found: @@ -50,51 +58,47 @@ func DefaultClient(ctx context.Context, scope ...string) (*http.Client, error) { // On Windows, this is %APPDATA%/gcloud/application_default_credentials.json. // On other systems, $HOME/.config/gcloud/application_default_credentials.json. // 3. On Google App Engine it uses the appengine.AccessToken function. -// 4. On Google Compute Engine, it fetches credentials from the metadata server. +// 4. On Google Compute Engine and Google App Engine Managed VMs, it fetches +// credentials from the metadata server. // (In this final case any provided scopes are ignored.) -// -// For more details, see: -// https://developers.google.com/accounts/application-default-credentials -// -func DefaultTokenSource(ctx context.Context, scope ...string) (oauth2.TokenSource, error) { +func FindDefaultCredentials(ctx context.Context, scope ...string) (*DefaultCredentials, error) { // First, try the environment variable. const envVar = "GOOGLE_APPLICATION_CREDENTIALS" if filename := os.Getenv(envVar); filename != "" { - ts, err := tokenSourceFromFile(ctx, filename, scope) + creds, err := readCredentialsFile(ctx, filename, scope) if err != nil { return nil, fmt.Errorf("google: error getting credentials using %v environment variable: %v", envVar, err) } - return ts, nil + return creds, nil } // Second, try a well-known file. filename := wellKnownFile() - _, err := os.Stat(filename) - if err == nil { - ts, err2 := tokenSourceFromFile(ctx, filename, scope) - if err2 == nil { - return ts, nil - } - err = err2 - } else if os.IsNotExist(err) { - err = nil // ignore this error - } - if err != nil { + if creds, err := readCredentialsFile(ctx, filename, scope); err == nil { + return creds, nil + } else if !os.IsNotExist(err) { return nil, fmt.Errorf("google: error getting credentials using well-known file (%v): %v", filename, err) } // Third, if we're on Google App Engine use those credentials. - if appengineTokenFunc != nil { - return AppEngineTokenSource(ctx, scope...), nil + if appengineTokenFunc != nil && !appengineFlex { + return &DefaultCredentials{ + ProjectID: appengineAppIDFunc(ctx), + TokenSource: AppEngineTokenSource(ctx, scope...), + }, nil } // Fourth, if we're on Google Compute Engine use the metadata server. if metadata.OnGCE() { - return ComputeTokenSource(""), nil + id, _ := metadata.ProjectID() + return &DefaultCredentials{ + ProjectID: id, + TokenSource: ComputeTokenSource(""), + }, nil } // None are found; return helpful error. - const url = "https://developers.google.com/accounts/application-default-credentials" + const url = "https://developers.google.com/accounts/docs/application-default-credentials" return nil, fmt.Errorf("google: could not find default credentials. See %v for more information.", url) } @@ -106,49 +110,21 @@ func wellKnownFile() string { return filepath.Join(guessUnixHomeDir(), ".config", "gcloud", f) } -func tokenSourceFromFile(ctx context.Context, filename string, scopes []string) (oauth2.TokenSource, error) { +func readCredentialsFile(ctx context.Context, filename string, scopes []string) (*DefaultCredentials, error) { b, err := ioutil.ReadFile(filename) if err != nil { return nil, err } - var d struct { - // Common fields - Type string - ClientID string `json:"client_id"` - - // User Credential fields - ClientSecret string `json:"client_secret"` - RefreshToken string `json:"refresh_token"` - - // Service Account fields - ClientEmail string `json:"client_email"` - PrivateKeyID string `json:"private_key_id"` - PrivateKey string `json:"private_key"` - } - if err := json.Unmarshal(b, &d); err != nil { + var f credentialsFile + if err := json.Unmarshal(b, &f); err != nil { return nil, err } - switch d.Type { - case "authorized_user": - cfg := &oauth2.Config{ - ClientID: d.ClientID, - ClientSecret: d.ClientSecret, - Scopes: append([]string{}, scopes...), // copy - Endpoint: Endpoint, - } - tok := &oauth2.Token{RefreshToken: d.RefreshToken} - return cfg.TokenSource(ctx, tok), nil - case "service_account": - cfg := &jwt.Config{ - Email: d.ClientEmail, - PrivateKey: []byte(d.PrivateKey), - Scopes: append([]string{}, scopes...), // copy - TokenURL: JWTTokenURL, - } - return cfg.TokenSource(ctx), nil - case "": - return nil, errors.New("missing 'type' field in credentials") - default: - return nil, fmt.Errorf("unknown credential type: %q", d.Type) + ts, err := f.tokenSource(ctx, append([]string(nil), scopes...)) + if err != nil { + return nil, err } + return &DefaultCredentials{ + ProjectID: f.ProjectID, + TokenSource: ts, + }, nil } diff --git a/vendor/golang.org/x/oauth2/google/google.go b/vendor/golang.org/x/oauth2/google/google.go index 69f8ff425..66a8b0e18 100644 --- a/vendor/golang.org/x/oauth2/google/google.go +++ b/vendor/golang.org/x/oauth2/google/google.go @@ -1,4 +1,4 @@ -// Copyright 2014 The oauth2 Authors. All rights reserved. +// 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. @@ -11,7 +11,7 @@ // For more information, please read // https://developers.google.com/accounts/docs/OAuth2 // and -// https://developers.google.com/accounts/application-default-credentials. +// https://developers.google.com/accounts/docs/application-default-credentials. package google // import "golang.org/x/oauth2/google" import ( @@ -21,9 +21,10 @@ import ( "strings" "time" + "cloud.google.com/go/compute/metadata" + "golang.org/x/net/context" "golang.org/x/oauth2" "golang.org/x/oauth2/jwt" - "google.golang.org/cloud/compute/metadata" ) // Endpoint is Google's OAuth 2.0 endpoint. @@ -37,9 +38,10 @@ const JWTTokenURL = "https://accounts.google.com/o/oauth2/token" // ConfigFromJSON uses a Google Developers Console client_credentials.json // file to construct a config. -// client_credentials.json can be downloadable from https://console.developers.google.com, -// under "APIs & Auth" > "Credentials". Download the Web application credentials in the -// JSON format and provide the contents of the file as jsonKey. +// client_credentials.json can be downloaded from +// https://console.developers.google.com, under "Credentials". Download the Web +// application credentials in the JSON format and provide the contents of the +// file as jsonKey. func ConfigFromJSON(jsonKey []byte, scope ...string) (*oauth2.Config, error) { type cred struct { ClientID string `json:"client_id"` @@ -81,22 +83,77 @@ func ConfigFromJSON(jsonKey []byte, scope ...string) (*oauth2.Config, error) { // JWTConfigFromJSON uses a Google Developers service account JSON key file to read // the credentials that authorize and authenticate the requests. -// Create a service account on "Credentials" page under "APIs & Auth" for your -// project at https://console.developers.google.com to download a JSON key file. +// Create a service account on "Credentials" for your project at +// https://console.developers.google.com to download a JSON key file. func JWTConfigFromJSON(jsonKey []byte, scope ...string) (*jwt.Config, error) { - var key struct { - Email string `json:"client_email"` - PrivateKey string `json:"private_key"` - } - if err := json.Unmarshal(jsonKey, &key); err != nil { + var f credentialsFile + if err := json.Unmarshal(jsonKey, &f); err != nil { return nil, err } - return &jwt.Config{ - Email: key.Email, - PrivateKey: []byte(key.PrivateKey), - Scopes: scope, - TokenURL: JWTTokenURL, - }, nil + if f.Type != serviceAccountKey { + return nil, fmt.Errorf("google: read JWT from JSON credentials: 'type' field is %q (expected %q)", f.Type, serviceAccountKey) + } + scope = append([]string(nil), scope...) // copy + return f.jwtConfig(scope), nil +} + +// JSON key file types. +const ( + serviceAccountKey = "service_account" + userCredentialsKey = "authorized_user" +) + +// credentialsFile is the unmarshalled representation of a credentials file. +type credentialsFile struct { + Type string `json:"type"` // serviceAccountKey or userCredentialsKey + + // Service Account fields + ClientEmail string `json:"client_email"` + PrivateKeyID string `json:"private_key_id"` + PrivateKey string `json:"private_key"` + TokenURL string `json:"token_uri"` + ProjectID string `json:"project_id"` + + // User Credential fields + // (These typically come from gcloud auth.) + ClientSecret string `json:"client_secret"` + ClientID string `json:"client_id"` + RefreshToken string `json:"refresh_token"` +} + +func (f *credentialsFile) jwtConfig(scopes []string) *jwt.Config { + cfg := &jwt.Config{ + Email: f.ClientEmail, + PrivateKey: []byte(f.PrivateKey), + PrivateKeyID: f.PrivateKeyID, + Scopes: scopes, + TokenURL: f.TokenURL, + } + if cfg.TokenURL == "" { + cfg.TokenURL = JWTTokenURL + } + return cfg +} + +func (f *credentialsFile) tokenSource(ctx context.Context, scopes []string) (oauth2.TokenSource, error) { + switch f.Type { + case serviceAccountKey: + cfg := f.jwtConfig(scopes) + return cfg.TokenSource(ctx), nil + case userCredentialsKey: + cfg := &oauth2.Config{ + ClientID: f.ClientID, + ClientSecret: f.ClientSecret, + Scopes: scopes, + Endpoint: Endpoint, + } + tok := &oauth2.Token{RefreshToken: f.RefreshToken} + return cfg.TokenSource(ctx, tok), nil + case "": + return nil, errors.New("missing 'type' field in credentials") + default: + return nil, fmt.Errorf("unknown credential type: %q", f.Type) + } } // ComputeTokenSource returns a token source that fetches access tokens diff --git a/vendor/golang.org/x/oauth2/google/jwt.go b/vendor/golang.org/x/oauth2/google/jwt.go new file mode 100644 index 000000000..b0fdb3a88 --- /dev/null +++ b/vendor/golang.org/x/oauth2/google/jwt.go @@ -0,0 +1,74 @@ +// 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 google + +import ( + "crypto/rsa" + "fmt" + "time" + + "golang.org/x/oauth2" + "golang.org/x/oauth2/internal" + "golang.org/x/oauth2/jws" +) + +// JWTAccessTokenSourceFromJSON uses a Google Developers service account JSON +// key file to read the credentials that authorize and authenticate the +// requests, and returns a TokenSource that does not use any OAuth2 flow but +// instead creates a JWT and sends that as the access token. +// The audience is typically a URL that specifies the scope of the credentials. +// +// Note that this is not a standard OAuth flow, but rather an +// optimization supported by a few Google services. +// Unless you know otherwise, you should use JWTConfigFromJSON instead. +func JWTAccessTokenSourceFromJSON(jsonKey []byte, audience string) (oauth2.TokenSource, error) { + cfg, err := JWTConfigFromJSON(jsonKey) + if err != nil { + return nil, fmt.Errorf("google: could not parse JSON key: %v", err) + } + pk, err := internal.ParseKey(cfg.PrivateKey) + if err != nil { + return nil, fmt.Errorf("google: could not parse key: %v", err) + } + ts := &jwtAccessTokenSource{ + email: cfg.Email, + audience: audience, + pk: pk, + pkID: cfg.PrivateKeyID, + } + tok, err := ts.Token() + if err != nil { + return nil, err + } + return oauth2.ReuseTokenSource(tok, ts), nil +} + +type jwtAccessTokenSource struct { + email, audience string + pk *rsa.PrivateKey + pkID string +} + +func (ts *jwtAccessTokenSource) Token() (*oauth2.Token, error) { + iat := time.Now() + exp := iat.Add(time.Hour) + cs := &jws.ClaimSet{ + Iss: ts.email, + Sub: ts.email, + Aud: ts.audience, + Iat: iat.Unix(), + Exp: exp.Unix(), + } + hdr := &jws.Header{ + Algorithm: "RS256", + Typ: "JWT", + KeyID: string(ts.pkID), + } + msg, err := jws.Encode(hdr, cs, ts.pk) + if err != nil { + return nil, fmt.Errorf("google: could not encode JWT: %v", err) + } + return &oauth2.Token{AccessToken: msg, TokenType: "Bearer", Expiry: exp}, nil +} diff --git a/vendor/golang.org/x/oauth2/google/sdk.go b/vendor/golang.org/x/oauth2/google/sdk.go index 01ba0ecb0..bdc18084b 100644 --- a/vendor/golang.org/x/oauth2/google/sdk.go +++ b/vendor/golang.org/x/oauth2/google/sdk.go @@ -1,4 +1,4 @@ -// Copyright 2015 The oauth2 Authors. All rights reserved. +// 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. @@ -160,9 +160,13 @@ var sdkConfigPath = func() (string, error) { } func guessUnixHomeDir() string { - usr, err := user.Current() - if err == nil { - return usr.HomeDir + // Prefer $HOME over user.Current due to glibc bug: golang.org/issue/13470 + if v := os.Getenv("HOME"); v != "" { + return v } - return os.Getenv("HOME") + // Else, fall back to user.Current: + if u, err := user.Current(); err == nil { + return u.HomeDir + } + return "" } diff --git a/vendor/golang.org/x/oauth2/internal/oauth2.go b/vendor/golang.org/x/oauth2/internal/oauth2.go index 37571a129..e31541b39 100644 --- a/vendor/golang.org/x/oauth2/internal/oauth2.go +++ b/vendor/golang.org/x/oauth2/internal/oauth2.go @@ -1,4 +1,4 @@ -// Copyright 2014 The oauth2 Authors. All rights reserved. +// 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. @@ -42,7 +42,7 @@ func ParseKey(key []byte) (*rsa.PrivateKey, error) { func ParseINI(ini io.Reader) (map[string]map[string]string, error) { result := map[string]map[string]string{ - "": map[string]string{}, // root section + "": {}, // root section } scanner := bufio.NewScanner(ini) currentSection := "" @@ -67,3 +67,10 @@ func ParseINI(ini io.Reader) (map[string]map[string]string, error) { } return result, nil } + +func CondVal(v string) []string { + if v == "" { + return nil + } + return []string{v} +} diff --git a/vendor/golang.org/x/oauth2/internal/token.go b/vendor/golang.org/x/oauth2/internal/token.go new file mode 100644 index 000000000..018b58ad1 --- /dev/null +++ b/vendor/golang.org/x/oauth2/internal/token.go @@ -0,0 +1,247 @@ +// 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. + +// Package internal contains support packages for oauth2 package. +package internal + +import ( + "encoding/json" + "fmt" + "io" + "io/ioutil" + "mime" + "net/http" + "net/url" + "strconv" + "strings" + "time" + + "golang.org/x/net/context" +) + +// Token represents the crendentials used to authorize +// the requests to access protected resources on the OAuth 2.0 +// provider's backend. +// +// This type is a mirror of oauth2.Token and exists to break +// an otherwise-circular dependency. Other internal packages +// should convert this Token into an oauth2.Token before use. +type Token struct { + // AccessToken is the token that authorizes and authenticates + // the requests. + AccessToken string + + // TokenType is the type of token. + // The Type method returns either this or "Bearer", the default. + TokenType string + + // RefreshToken is a token that's used by the application + // (as opposed to the user) to refresh the access token + // if it expires. + RefreshToken string + + // Expiry is the optional expiration time of the access token. + // + // If zero, TokenSource implementations will reuse the same + // token forever and RefreshToken or equivalent + // mechanisms for that TokenSource will not be used. + Expiry time.Time + + // Raw optionally contains extra metadata from the server + // when updating a token. + Raw interface{} +} + +// tokenJSON is the struct representing the HTTP response from OAuth2 +// providers returning a token in JSON form. +type tokenJSON struct { + AccessToken string `json:"access_token"` + TokenType string `json:"token_type"` + RefreshToken string `json:"refresh_token"` + ExpiresIn expirationTime `json:"expires_in"` // at least PayPal returns string, while most return number + Expires expirationTime `json:"expires"` // broken Facebook spelling of expires_in +} + +func (e *tokenJSON) expiry() (t time.Time) { + if v := e.ExpiresIn; v != 0 { + return time.Now().Add(time.Duration(v) * time.Second) + } + if v := e.Expires; v != 0 { + return time.Now().Add(time.Duration(v) * time.Second) + } + return +} + +type expirationTime int32 + +func (e *expirationTime) UnmarshalJSON(b []byte) error { + var n json.Number + err := json.Unmarshal(b, &n) + if err != nil { + return err + } + i, err := n.Int64() + if err != nil { + return err + } + *e = expirationTime(i) + return nil +} + +var brokenAuthHeaderProviders = []string{ + "https://accounts.google.com/", + "https://api.codeswholesale.com/oauth/token", + "https://api.dropbox.com/", + "https://api.dropboxapi.com/", + "https://api.instagram.com/", + "https://api.netatmo.net/", + "https://api.odnoklassniki.ru/", + "https://api.pushbullet.com/", + "https://api.soundcloud.com/", + "https://api.twitch.tv/", + "https://app.box.com/", + "https://connect.stripe.com/", + "https://graph.facebook.com", // see https://github.com/golang/oauth2/issues/214 + "https://login.microsoftonline.com/", + "https://login.salesforce.com/", + "https://oauth.sandbox.trainingpeaks.com/", + "https://oauth.trainingpeaks.com/", + "https://oauth.vk.com/", + "https://openapi.baidu.com/", + "https://slack.com/", + "https://test-sandbox.auth.corp.google.com", + "https://test.salesforce.com/", + "https://user.gini.net/", + "https://www.douban.com/", + "https://www.googleapis.com/", + "https://www.linkedin.com/", + "https://www.strava.com/oauth/", + "https://www.wunderlist.com/oauth/", + "https://api.patreon.com/", + "https://sandbox.codeswholesale.com/oauth/token", +} + +// brokenAuthHeaderDomains lists broken providers that issue dynamic endpoints. +var brokenAuthHeaderDomains = []string{ + ".force.com", + ".okta.com", + ".oktapreview.com", +} + +func RegisterBrokenAuthHeaderProvider(tokenURL string) { + brokenAuthHeaderProviders = append(brokenAuthHeaderProviders, tokenURL) +} + +// providerAuthHeaderWorks reports whether the OAuth2 server identified by the tokenURL +// implements the OAuth2 spec correctly +// See https://code.google.com/p/goauth2/issues/detail?id=31 for background. +// In summary: +// - Reddit only accepts client secret in the Authorization header +// - Dropbox accepts either it in URL param or Auth header, but not both. +// - Google only accepts URL param (not spec compliant?), not Auth header +// - Stripe only accepts client secret in Auth header with Bearer method, not Basic +func providerAuthHeaderWorks(tokenURL string) bool { + for _, s := range brokenAuthHeaderProviders { + if strings.HasPrefix(tokenURL, s) { + // Some sites fail to implement the OAuth2 spec fully. + return false + } + } + + if u, err := url.Parse(tokenURL); err == nil { + for _, s := range brokenAuthHeaderDomains { + if strings.HasSuffix(u.Host, s) { + return false + } + } + } + + // Assume the provider implements the spec properly + // otherwise. We can add more exceptions as they're + // discovered. We will _not_ be adding configurable hooks + // to this package to let users select server bugs. + return true +} + +func RetrieveToken(ctx context.Context, clientID, clientSecret, tokenURL string, v url.Values) (*Token, error) { + hc, err := ContextClient(ctx) + if err != nil { + return nil, err + } + bustedAuth := !providerAuthHeaderWorks(tokenURL) + if bustedAuth { + if clientID != "" { + v.Set("client_id", clientID) + } + if clientSecret != "" { + v.Set("client_secret", clientSecret) + } + } + req, err := http.NewRequest("POST", tokenURL, strings.NewReader(v.Encode())) + if err != nil { + return nil, err + } + req.Header.Set("Content-Type", "application/x-www-form-urlencoded") + if !bustedAuth { + req.SetBasicAuth(clientID, clientSecret) + } + r, err := hc.Do(req) + if err != nil { + return nil, err + } + defer r.Body.Close() + body, err := ioutil.ReadAll(io.LimitReader(r.Body, 1<<20)) + if err != nil { + return nil, fmt.Errorf("oauth2: cannot fetch token: %v", err) + } + if code := r.StatusCode; code < 200 || code > 299 { + return nil, fmt.Errorf("oauth2: cannot fetch token: %v\nResponse: %s", r.Status, body) + } + + var token *Token + content, _, _ := mime.ParseMediaType(r.Header.Get("Content-Type")) + switch content { + case "application/x-www-form-urlencoded", "text/plain": + vals, err := url.ParseQuery(string(body)) + if err != nil { + return nil, err + } + token = &Token{ + AccessToken: vals.Get("access_token"), + TokenType: vals.Get("token_type"), + RefreshToken: vals.Get("refresh_token"), + Raw: vals, + } + e := vals.Get("expires_in") + if e == "" { + // TODO(jbd): Facebook's OAuth2 implementation is broken and + // returns expires_in field in expires. Remove the fallback to expires, + // when Facebook fixes their implementation. + e = vals.Get("expires") + } + expires, _ := strconv.Atoi(e) + if expires != 0 { + token.Expiry = time.Now().Add(time.Duration(expires) * time.Second) + } + default: + var tj tokenJSON + if err = json.Unmarshal(body, &tj); err != nil { + return nil, err + } + token = &Token{ + AccessToken: tj.AccessToken, + TokenType: tj.TokenType, + RefreshToken: tj.RefreshToken, + Expiry: tj.expiry(), + Raw: make(map[string]interface{}), + } + json.Unmarshal(body, &token.Raw) // no error checks for optional fields + } + // Don't overwrite `RefreshToken` with an empty value + // if this was a token refreshing request. + if token.RefreshToken == "" { + token.RefreshToken = v.Get("refresh_token") + } + return token, nil +} diff --git a/vendor/golang.org/x/oauth2/internal/transport.go b/vendor/golang.org/x/oauth2/internal/transport.go new file mode 100644 index 000000000..f1f173e34 --- /dev/null +++ b/vendor/golang.org/x/oauth2/internal/transport.go @@ -0,0 +1,69 @@ +// 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. + +// Package internal contains support packages for oauth2 package. +package internal + +import ( + "net/http" + + "golang.org/x/net/context" +) + +// HTTPClient is the context key to use with golang.org/x/net/context's +// WithValue function to associate an *http.Client value with a context. +var HTTPClient ContextKey + +// ContextKey is just an empty struct. It exists so HTTPClient can be +// an immutable public variable with a unique type. It's immutable +// because nobody else can create a ContextKey, being unexported. +type ContextKey struct{} + +// ContextClientFunc is a func which tries to return an *http.Client +// given a Context value. If it returns an error, the search stops +// with that error. If it returns (nil, nil), the search continues +// down the list of registered funcs. +type ContextClientFunc func(context.Context) (*http.Client, error) + +var contextClientFuncs []ContextClientFunc + +func RegisterContextClientFunc(fn ContextClientFunc) { + contextClientFuncs = append(contextClientFuncs, fn) +} + +func ContextClient(ctx context.Context) (*http.Client, error) { + if ctx != nil { + if hc, ok := ctx.Value(HTTPClient).(*http.Client); ok { + return hc, nil + } + } + for _, fn := range contextClientFuncs { + c, err := fn(ctx) + if err != nil { + return nil, err + } + if c != nil { + return c, nil + } + } + return http.DefaultClient, nil +} + +func ContextTransport(ctx context.Context) http.RoundTripper { + hc, err := ContextClient(ctx) + // This is a rare error case (somebody using nil on App Engine). + if err != nil { + return ErrorTransport{err} + } + return hc.Transport +} + +// ErrorTransport returns the specified error on RoundTrip. +// This RoundTripper should be used in rare error cases where +// error handling can be postponed to response handling time. +type ErrorTransport struct{ Err error } + +func (t ErrorTransport) RoundTrip(*http.Request) (*http.Response, error) { + return nil, t.Err +} diff --git a/vendor/golang.org/x/oauth2/jws/jws.go b/vendor/golang.org/x/oauth2/jws/jws.go index 362323c4e..683d2d271 100644 --- a/vendor/golang.org/x/oauth2/jws/jws.go +++ b/vendor/golang.org/x/oauth2/jws/jws.go @@ -1,9 +1,17 @@ -// Copyright 2014 The oauth2 Authors. All rights reserved. +// 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. -// Package jws provides encoding and decoding utilities for -// signed JWS messages. +// Package jws provides a partial implementation +// of JSON Web Signature encoding and decoding. +// It exists to support the golang.org/x/oauth2 package. +// +// See RFC 7515. +// +// Deprecated: this package is not intended for public use and might be +// removed in the future. It exists for internal use only. +// Please switch to another JWS package or copy this package into your own +// source tree. package jws // import "golang.org/x/oauth2/jws" import ( @@ -27,8 +35,8 @@ type ClaimSet struct { Iss string `json:"iss"` // email address of the client_id of the application making the access token request Scope string `json:"scope,omitempty"` // space-delimited list of the permissions the application requests Aud string `json:"aud"` // descriptor of the intended target of the assertion (Optional). - Exp int64 `json:"exp"` // the expiration time of the assertion - Iat int64 `json:"iat"` // the time the assertion was issued. + Exp int64 `json:"exp"` // the expiration time of the assertion (seconds since Unix epoch) + Iat int64 `json:"iat"` // the time the assertion was issued (seconds since Unix epoch) Typ string `json:"typ,omitempty"` // token type (Optional). // Email for which the application is requesting delegated access (Optional). @@ -41,23 +49,22 @@ type ClaimSet struct { // See http://tools.ietf.org/html/draft-jones-json-web-token-10#section-4.3 // This array is marshalled using custom code (see (c *ClaimSet) encode()). PrivateClaims map[string]interface{} `json:"-"` - - exp time.Time - iat time.Time } func (c *ClaimSet) encode() (string, error) { - if c.exp.IsZero() || c.iat.IsZero() { - // Reverting time back for machines whose time is not perfectly in sync. - // If client machine's time is in the future according - // to Google servers, an access token will not be issued. - now := time.Now().Add(-10 * time.Second) - c.iat = now - c.exp = now.Add(time.Hour) + // Reverting time back for machines whose time is not perfectly in sync. + // If client machine's time is in the future according + // to Google servers, an access token will not be issued. + now := time.Now().Add(-10 * time.Second) + if c.Iat == 0 { + c.Iat = now.Unix() + } + if c.Exp == 0 { + c.Exp = now.Add(time.Hour).Unix() + } + if c.Exp < c.Iat { + return "", fmt.Errorf("jws: invalid Exp = %v; must be later than Iat = %v", c.Exp, c.Iat) } - - c.Exp = c.exp.Unix() - c.Iat = c.iat.Unix() b, err := json.Marshal(c) if err != nil { @@ -65,7 +72,7 @@ func (c *ClaimSet) encode() (string, error) { } if len(c.PrivateClaims) == 0 { - return base64Encode(b), nil + return base64.RawURLEncoding.EncodeToString(b), nil } // Marshal private claim set and then append it to b. @@ -83,7 +90,7 @@ func (c *ClaimSet) encode() (string, error) { } b[len(b)-1] = ',' // Replace closing curly brace with a comma. b = append(b, prv[1:]...) // Append private claims. - return base64Encode(b), nil + return base64.RawURLEncoding.EncodeToString(b), nil } // Header represents the header for the signed JWS payloads. @@ -93,6 +100,9 @@ type Header struct { // Represents the token type. Typ string `json:"typ"` + + // The optional hint of which key is being used. + KeyID string `json:"kid,omitempty"` } func (h *Header) encode() (string, error) { @@ -100,7 +110,7 @@ func (h *Header) encode() (string, error) { if err != nil { return "", err } - return base64Encode(b), nil + return base64.RawURLEncoding.EncodeToString(b), nil } // Decode decodes a claim set from a JWS payload. @@ -111,7 +121,7 @@ func Decode(payload string) (*ClaimSet, error) { // TODO(jbd): Provide more context about the error. return nil, errors.New("jws: invalid token received") } - decoded, err := base64Decode(s[1]) + decoded, err := base64.RawURLEncoding.DecodeString(s[1]) if err != nil { return nil, err } @@ -120,8 +130,11 @@ func Decode(payload string) (*ClaimSet, error) { return c, err } -// Encode encodes a signed JWS with provided header and claim set. -func Encode(header *Header, c *ClaimSet, signature *rsa.PrivateKey) (string, error) { +// Signer returns a signature for the given data. +type Signer func(data []byte) (sig []byte, err error) + +// EncodeWithSigner encodes a header and claim set with the provided signer. +func EncodeWithSigner(header *Header, c *ClaimSet, sg Signer) (string, error) { head, err := header.encode() if err != nil { return "", err @@ -131,30 +144,39 @@ func Encode(header *Header, c *ClaimSet, signature *rsa.PrivateKey) (string, err return "", err } ss := fmt.Sprintf("%s.%s", head, cs) - h := sha256.New() - h.Write([]byte(ss)) - b, err := rsa.SignPKCS1v15(rand.Reader, signature, crypto.SHA256, h.Sum(nil)) + sig, err := sg([]byte(ss)) if err != nil { return "", err } - sig := base64Encode(b) - return fmt.Sprintf("%s.%s", ss, sig), nil + return fmt.Sprintf("%s.%s", ss, base64.RawURLEncoding.EncodeToString(sig)), nil } -// base64Encode returns and Base64url encoded version of the input string with any -// trailing "=" stripped. -func base64Encode(b []byte) string { - return strings.TrimRight(base64.URLEncoding.EncodeToString(b), "=") -} - -// base64Decode decodes the Base64url encoded string -func base64Decode(s string) ([]byte, error) { - // add back missing padding - switch len(s) % 4 { - case 2: - s += "==" - case 3: - s += "=" +// Encode encodes a signed JWS with provided header and claim set. +// This invokes EncodeWithSigner using crypto/rsa.SignPKCS1v15 with the given RSA private key. +func Encode(header *Header, c *ClaimSet, key *rsa.PrivateKey) (string, error) { + sg := func(data []byte) (sig []byte, err error) { + h := sha256.New() + h.Write(data) + return rsa.SignPKCS1v15(rand.Reader, key, crypto.SHA256, h.Sum(nil)) } - return base64.URLEncoding.DecodeString(s) + return EncodeWithSigner(header, c, sg) +} + +// Verify tests whether the provided JWT token's signature was produced by the private key +// associated with the supplied public key. +func Verify(token string, key *rsa.PublicKey) error { + parts := strings.Split(token, ".") + if len(parts) != 3 { + return errors.New("jws: invalid token received, token must have 3 parts") + } + + signedContent := parts[0] + "." + parts[1] + signatureString, err := base64.RawURLEncoding.DecodeString(parts[2]) + if err != nil { + return err + } + + h := sha256.New() + h.Write([]byte(signedContent)) + return rsa.VerifyPKCS1v15(key, crypto.SHA256, h.Sum(nil), []byte(signatureString)) } diff --git a/vendor/golang.org/x/oauth2/jwt/jwt.go b/vendor/golang.org/x/oauth2/jwt/jwt.go index 205d23ed4..e016db421 100644 --- a/vendor/golang.org/x/oauth2/jwt/jwt.go +++ b/vendor/golang.org/x/oauth2/jwt/jwt.go @@ -1,4 +1,4 @@ -// Copyright 2014 The oauth2 Authors. All rights reserved. +// 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. @@ -46,6 +46,10 @@ type Config struct { // PrivateKey []byte + // PrivateKeyID contains an optional hint indicating which key is being + // used. + PrivateKeyID string + // Subject is the optional user to impersonate. Subject string @@ -54,6 +58,9 @@ type Config struct { // TokenURL is the endpoint required to complete the 2-legged JWT flow. TokenURL string + + // Expires optionally specifies how long the token is valid for. + Expires time.Duration } // TokenSource returns a JWT TokenSource using the configuration @@ -95,7 +102,12 @@ func (js jwtSource) Token() (*oauth2.Token, error) { // to be compatible with legacy OAuth 2.0 providers. claimSet.Prn = subject } - payload, err := jws.Encode(defaultHeader, claimSet, pk) + if t := js.conf.Expires; t > 0 { + claimSet.Exp = time.Now().Add(t).Unix() + } + h := *defaultHeader + h.KeyID = js.conf.PrivateKeyID + payload, err := jws.Encode(&h, claimSet, pk) if err != nil { return nil, err } diff --git a/vendor/golang.org/x/oauth2/oauth2.go b/vendor/golang.org/x/oauth2/oauth2.go index 0c6a1ed98..3e4835d7e 100644 --- a/vendor/golang.org/x/oauth2/oauth2.go +++ b/vendor/golang.org/x/oauth2/oauth2.go @@ -1,4 +1,4 @@ -// Copyright 2014 The oauth2 Authors. All rights reserved. +// 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. @@ -9,28 +9,38 @@ package oauth2 // import "golang.org/x/oauth2" import ( "bytes" - "encoding/json" "errors" - "fmt" - "io" - "io/ioutil" - "mime" "net/http" "net/url" - "strconv" "strings" "sync" - "time" "golang.org/x/net/context" + "golang.org/x/oauth2/internal" ) // NoContext is the default context you should supply if not using // your own context.Context (see https://golang.org/x/net/context). +// +// Deprecated: Use context.Background() or context.TODO() instead. var NoContext = context.TODO() +// RegisterBrokenAuthHeaderProvider registers an OAuth2 server +// identified by the tokenURL prefix as an OAuth2 implementation +// which doesn't support the HTTP Basic authentication +// scheme to authenticate with the authorization server. +// Once a server is registered, credentials (client_id and client_secret) +// will be passed as query parameters rather than being present +// in the Authorization header. +// See https://code.google.com/p/goauth2/issues/detail?id=31 for background. +func RegisterBrokenAuthHeaderProvider(tokenURL string) { + internal.RegisterBrokenAuthHeaderProvider(tokenURL) +} + // Config describes a typical 3-legged OAuth2 flow, with both the // client application information and the server's endpoint URLs. +// For the client credentials 2-legged OAuth2 flow, see the clientcredentials +// package (https://golang.org/x/oauth2/clientcredentials). type Config struct { // ClientID is the application's ID. ClientID string @@ -79,13 +89,13 @@ var ( // result in your application obtaining a refresh token the // first time your application exchanges an authorization // code for a user. - AccessTypeOnline AuthCodeOption = SetParam("access_type", "online") - AccessTypeOffline AuthCodeOption = SetParam("access_type", "offline") + AccessTypeOnline AuthCodeOption = SetAuthURLParam("access_type", "online") + AccessTypeOffline AuthCodeOption = SetAuthURLParam("access_type", "offline") // ApprovalForce forces the users to view the consent dialog // and confirm the permissions request at the URL returned // from AuthCodeURL, even if they've already done so. - ApprovalForce AuthCodeOption = SetParam("approval_prompt", "force") + ApprovalForce AuthCodeOption = SetAuthURLParam("approval_prompt", "force") ) // An AuthCodeOption is passed to Config.AuthCodeURL. @@ -97,9 +107,9 @@ type setParam struct{ k, v string } func (p setParam) setValue(m url.Values) { m.Set(p.k, p.v) } -// SetParam builds an AuthCodeOption which passes key/value parameters +// SetAuthURLParam builds an AuthCodeOption which passes key/value parameters // to a provider's authorization endpoint. -func SetParam(key, value string) AuthCodeOption { +func SetAuthURLParam(key, value string) AuthCodeOption { return setParam{key, value} } @@ -119,9 +129,9 @@ func (c *Config) AuthCodeURL(state string, opts ...AuthCodeOption) string { v := url.Values{ "response_type": {"code"}, "client_id": {c.ClientID}, - "redirect_uri": condVal(c.RedirectURL), - "scope": condVal(strings.Join(c.Scopes, " ")), - "state": condVal(state), + "redirect_uri": internal.CondVal(c.RedirectURL), + "scope": internal.CondVal(strings.Join(c.Scopes, " ")), + "state": internal.CondVal(state), } for _, opt := range opts { opt.setValue(v) @@ -151,7 +161,7 @@ func (c *Config) PasswordCredentialsToken(ctx context.Context, username, passwor "grant_type": {"password"}, "username": {username}, "password": {password}, - "scope": condVal(strings.Join(c.Scopes, " ")), + "scope": internal.CondVal(strings.Join(c.Scopes, " ")), }) } @@ -169,51 +179,10 @@ func (c *Config) Exchange(ctx context.Context, code string) (*Token, error) { return retrieveToken(ctx, c, url.Values{ "grant_type": {"authorization_code"}, "code": {code}, - "redirect_uri": condVal(c.RedirectURL), - "scope": condVal(strings.Join(c.Scopes, " ")), + "redirect_uri": internal.CondVal(c.RedirectURL), }) } -// contextClientFunc is a func which tries to return an *http.Client -// given a Context value. If it returns an error, the search stops -// with that error. If it returns (nil, nil), the search continues -// down the list of registered funcs. -type contextClientFunc func(context.Context) (*http.Client, error) - -var contextClientFuncs []contextClientFunc - -func registerContextClientFunc(fn contextClientFunc) { - contextClientFuncs = append(contextClientFuncs, fn) -} - -func contextClient(ctx context.Context) (*http.Client, error) { - for _, fn := range contextClientFuncs { - c, err := fn(ctx) - if err != nil { - return nil, err - } - if c != nil { - return c, nil - } - } - if hc, ok := ctx.Value(HTTPClient).(*http.Client); ok { - return hc, nil - } - return http.DefaultClient, nil -} - -func contextTransport(ctx context.Context) http.RoundTripper { - hc, err := contextClient(ctx) - if err != nil { - // This is a rare error case (somebody using nil on App Engine), - // so I'd rather not everybody do an error check on this Client - // method. They can get the error that they're doing it wrong - // later, at client.Get/PostForm time. - return errorTransport{err} - } - return hc.Transport -} - // Client returns an HTTP client using the provided token. // The token will auto-refresh as necessary. The underlying // HTTP transport will be obtained using the provided context. @@ -299,177 +268,25 @@ func (s *reuseTokenSource) Token() (*Token, error) { return t, nil } -func retrieveToken(ctx context.Context, c *Config, v url.Values) (*Token, error) { - hc, err := contextClient(ctx) - if err != nil { - return nil, err - } - v.Set("client_id", c.ClientID) - bustedAuth := !providerAuthHeaderWorks(c.Endpoint.TokenURL) - if bustedAuth && c.ClientSecret != "" { - v.Set("client_secret", c.ClientSecret) - } - req, err := http.NewRequest("POST", c.Endpoint.TokenURL, strings.NewReader(v.Encode())) - if err != nil { - return nil, err - } - req.Header.Set("Content-Type", "application/x-www-form-urlencoded") - if !bustedAuth { - req.SetBasicAuth(c.ClientID, c.ClientSecret) - } - r, err := hc.Do(req) - if err != nil { - return nil, err - } - defer r.Body.Close() - body, err := ioutil.ReadAll(io.LimitReader(r.Body, 1<<20)) - if err != nil { - return nil, fmt.Errorf("oauth2: cannot fetch token: %v", err) - } - if code := r.StatusCode; code < 200 || code > 299 { - return nil, fmt.Errorf("oauth2: cannot fetch token: %v\nResponse: %s", r.Status, body) - } - - var token *Token - content, _, _ := mime.ParseMediaType(r.Header.Get("Content-Type")) - switch content { - case "application/x-www-form-urlencoded", "text/plain": - vals, err := url.ParseQuery(string(body)) - if err != nil { - return nil, err - } - token = &Token{ - AccessToken: vals.Get("access_token"), - TokenType: vals.Get("token_type"), - RefreshToken: vals.Get("refresh_token"), - raw: vals, - } - e := vals.Get("expires_in") - if e == "" { - // TODO(jbd): Facebook's OAuth2 implementation is broken and - // returns expires_in field in expires. Remove the fallback to expires, - // when Facebook fixes their implementation. - e = vals.Get("expires") - } - expires, _ := strconv.Atoi(e) - if expires != 0 { - token.Expiry = time.Now().Add(time.Duration(expires) * time.Second) - } - default: - var tj tokenJSON - if err = json.Unmarshal(body, &tj); err != nil { - return nil, err - } - token = &Token{ - AccessToken: tj.AccessToken, - TokenType: tj.TokenType, - RefreshToken: tj.RefreshToken, - Expiry: tj.expiry(), - raw: make(map[string]interface{}), - } - json.Unmarshal(body, &token.raw) // no error checks for optional fields - } - // Don't overwrite `RefreshToken` with an empty value - // if this was a token refreshing request. - if token.RefreshToken == "" { - token.RefreshToken = v.Get("refresh_token") - } - return token, nil +// StaticTokenSource returns a TokenSource that always returns the same token. +// Because the provided token t is never refreshed, StaticTokenSource is only +// useful for tokens that never expire. +func StaticTokenSource(t *Token) TokenSource { + return staticTokenSource{t} } -// tokenJSON is the struct representing the HTTP response from OAuth2 -// providers returning a token in JSON form. -type tokenJSON struct { - AccessToken string `json:"access_token"` - TokenType string `json:"token_type"` - RefreshToken string `json:"refresh_token"` - ExpiresIn expirationTime `json:"expires_in"` // at least PayPal returns string, while most return number - Expires expirationTime `json:"expires"` // broken Facebook spelling of expires_in +// staticTokenSource is a TokenSource that always returns the same Token. +type staticTokenSource struct { + t *Token } -func (e *tokenJSON) expiry() (t time.Time) { - if v := e.ExpiresIn; v != 0 { - return time.Now().Add(time.Duration(v) * time.Second) - } - if v := e.Expires; v != 0 { - return time.Now().Add(time.Duration(v) * time.Second) - } - return -} - -type expirationTime int32 - -func (e *expirationTime) UnmarshalJSON(b []byte) error { - var n json.Number - err := json.Unmarshal(b, &n) - if err != nil { - return err - } - i, err := n.Int64() - if err != nil { - return err - } - *e = expirationTime(i) - return nil -} - -func condVal(v string) []string { - if v == "" { - return nil - } - return []string{v} -} - -var brokenAuthHeaderProviders = []string{ - "https://accounts.google.com/", - "https://www.googleapis.com/", - "https://github.com/", - "https://api.instagram.com/", - "https://www.douban.com/", - "https://api.dropbox.com/", - "https://api.soundcloud.com/", - "https://www.linkedin.com/", - "https://api.twitch.tv/", - "https://oauth.vk.com/", - "https://api.odnoklassniki.ru/", - "https://connect.stripe.com/", - "https://api.pushbullet.com/", - "https://oauth.sandbox.trainingpeaks.com/", - "https://oauth.trainingpeaks.com/", - "https://www.strava.com/oauth/", -} - -// providerAuthHeaderWorks reports whether the OAuth2 server identified by the tokenURL -// implements the OAuth2 spec correctly -// See https://code.google.com/p/goauth2/issues/detail?id=31 for background. -// In summary: -// - Reddit only accepts client secret in the Authorization header -// - Dropbox accepts either it in URL param or Auth header, but not both. -// - Google only accepts URL param (not spec compliant?), not Auth header -// - Stripe only accepts client secret in Auth header with Bearer method, not Basic -func providerAuthHeaderWorks(tokenURL string) bool { - for _, s := range brokenAuthHeaderProviders { - if strings.HasPrefix(tokenURL, s) { - // Some sites fail to implement the OAuth2 spec fully. - return false - } - } - - // Assume the provider implements the spec properly - // otherwise. We can add more exceptions as they're - // discovered. We will _not_ be adding configurable hooks - // to this package to let users select server bugs. - return true +func (s staticTokenSource) Token() (*Token, error) { + return s.t, nil } // HTTPClient is the context key to use with golang.org/x/net/context's // WithValue function to associate an *http.Client value with a context. -var HTTPClient contextKey - -// contextKey is just an empty struct. It exists so HTTPClient can be -// an immutable public variable with a unique type. It's immutable -// because nobody else can create a contextKey, being unexported. -type contextKey struct{} +var HTTPClient internal.ContextKey // NewClient creates an *http.Client from a Context and TokenSource. // The returned client is not valid beyond the lifetime of the context. @@ -479,15 +296,15 @@ type contextKey struct{} // packages. func NewClient(ctx context.Context, src TokenSource) *http.Client { if src == nil { - c, err := contextClient(ctx) + c, err := internal.ContextClient(ctx) if err != nil { - return &http.Client{Transport: errorTransport{err}} + return &http.Client{Transport: internal.ErrorTransport{Err: err}} } return c } return &http.Client{ Transport: &Transport{ - Base: contextTransport(ctx), + Base: internal.ContextTransport(ctx), Source: ReuseTokenSource(nil, src), }, } diff --git a/vendor/golang.org/x/oauth2/token.go b/vendor/golang.org/x/oauth2/token.go index 9852ceb4a..7a3167f15 100644 --- a/vendor/golang.org/x/oauth2/token.go +++ b/vendor/golang.org/x/oauth2/token.go @@ -1,4 +1,4 @@ -// Copyright 2014 The oauth2 Authors. All rights reserved. +// 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. @@ -7,7 +7,12 @@ package oauth2 import ( "net/http" "net/url" + "strconv" + "strings" "time" + + "golang.org/x/net/context" + "golang.org/x/oauth2/internal" ) // expiryDelta determines how earlier a token should be considered @@ -50,6 +55,15 @@ type Token struct { // Type returns t.TokenType if non-empty, else "Bearer". func (t *Token) Type() string { + if strings.EqualFold(t.TokenType, "bearer") { + return "Bearer" + } + if strings.EqualFold(t.TokenType, "mac") { + return "MAC" + } + if strings.EqualFold(t.TokenType, "basic") { + return "Basic" + } if t.TokenType != "" { return t.TokenType } @@ -79,14 +93,28 @@ func (t *Token) WithExtra(extra interface{}) *Token { // Extra fields are key-value pairs returned by the server as a // part of the token retrieval response. func (t *Token) Extra(key string) interface{} { - if vals, ok := t.raw.(url.Values); ok { - // TODO(jbd): Cast numeric values to int64 or float64. - return vals.Get(key) - } if raw, ok := t.raw.(map[string]interface{}); ok { return raw[key] } - return nil + + vals, ok := t.raw.(url.Values) + if !ok { + return nil + } + + v := vals.Get(key) + switch s := strings.TrimSpace(v); strings.Count(s, ".") { + case 0: // Contains no "."; try to parse as int + if i, err := strconv.ParseInt(s, 10, 64); err == nil { + return i + } + case 1: // Contains a single "."; try to parse as float + if f, err := strconv.ParseFloat(s, 64); err == nil { + return f + } + } + + return v } // expired reports whether the token is expired. @@ -102,3 +130,29 @@ func (t *Token) expired() bool { func (t *Token) Valid() bool { return t != nil && t.AccessToken != "" && !t.expired() } + +// tokenFromInternal maps an *internal.Token struct into +// a *Token struct. +func tokenFromInternal(t *internal.Token) *Token { + if t == nil { + return nil + } + return &Token{ + AccessToken: t.AccessToken, + TokenType: t.TokenType, + RefreshToken: t.RefreshToken, + Expiry: t.Expiry, + raw: t.Raw, + } +} + +// retrieveToken takes a *Config and uses that to retrieve an *internal.Token. +// This token is then mapped from *internal.Token into an *oauth2.Token which is returned along +// with an error.. +func retrieveToken(ctx context.Context, c *Config, v url.Values) (*Token, error) { + tk, err := internal.RetrieveToken(ctx, c.ClientID, c.ClientSecret, c.Endpoint.TokenURL, v) + if err != nil { + return nil, err + } + return tokenFromInternal(tk), nil +} diff --git a/vendor/golang.org/x/oauth2/transport.go b/vendor/golang.org/x/oauth2/transport.go index 10339a0be..92ac7e253 100644 --- a/vendor/golang.org/x/oauth2/transport.go +++ b/vendor/golang.org/x/oauth2/transport.go @@ -1,4 +1,4 @@ -// Copyright 2014 The oauth2 Authors. All rights reserved. +// 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. @@ -130,9 +130,3 @@ func (r *onEOFReader) runFunc() { r.fn = nil } } - -type errorTransport struct{ err error } - -func (t errorTransport) RoundTrip(*http.Request) (*http.Response, error) { - return nil, t.err -} diff --git a/vendor/golang.org/x/text/cases/cases.go b/vendor/golang.org/x/text/cases/cases.go index 02043726d..60a58d514 100644 --- a/vendor/golang.org/x/text/cases/cases.go +++ b/vendor/golang.org/x/text/cases/cases.go @@ -35,7 +35,7 @@ import ( // A Caser may be stateful and should therefore not be shared between // goroutines. type Caser struct { - t transform.SpanningTransformer + t transform.Transformer } // Bytes returns a new byte slice with the result of converting b to the case @@ -56,17 +56,12 @@ func (c Caser) String(s string) string { // Transform. func (c Caser) Reset() { c.t.Reset() } -// Transform implements the transform.Transformer interface and transforms the -// given input to the case form implemented by c. +// Transform implements the Transformer interface and transforms the given input +// to the case form implemented by c. func (c Caser) Transform(dst, src []byte, atEOF bool) (nDst, nSrc int, err error) { return c.t.Transform(dst, src, atEOF) } -// Span implements the transform.SpanningTransformer interface. -func (c Caser) Span(src []byte, atEOF bool) (n int, err error) { - return c.t.Span(src, atEOF) -} - // Upper returns a Caser for language-specific uppercasing. func Upper(t language.Tag, opts ...Option) Caser { return Caser{makeUpper(t, getOpts(opts...))} @@ -95,13 +90,7 @@ func Fold(opts ...Option) Caser { } // An Option is used to modify the behavior of a Caser. -type Option func(o options) options - -// TODO: consider these options to take a boolean as well, like FinalSigma. -// The advantage of using this approach is that other providers of a lower-case -// algorithm could set different defaults by prefixing a user-provided slice -// of options with their own. This is handy, for instance, for the precis -// package which would override the default to not handle the Greek final sigma. +type Option func(o *options) var ( // NoLower disables the lowercasing of non-leading letters for a title @@ -121,42 +110,20 @@ type options struct { // TODO: segmenter, max ignorable, alternative versions, etc. - ignoreFinalSigma bool + noFinalSigma bool // Only used for testing. } func getOpts(o ...Option) (res options) { for _, f := range o { - res = f(res) + f(&res) } return } -func noLower(o options) options { +func noLower(o *options) { o.noLower = true - return o } -func compact(o options) options { +func compact(o *options) { o.simple = true - return o -} - -// HandleFinalSigma specifies whether the special handling of Greek final sigma -// should be enabled. Unicode prescribes handling the Greek final sigma for all -// locales, but standards like IDNA and PRECIS override this default. -func HandleFinalSigma(enable bool) Option { - if enable { - return handleFinalSigma - } - return ignoreFinalSigma -} - -func ignoreFinalSigma(o options) options { - o.ignoreFinalSigma = true - return o -} - -func handleFinalSigma(o options) options { - o.ignoreFinalSigma = false - return o } diff --git a/vendor/golang.org/x/text/cases/context.go b/vendor/golang.org/x/text/cases/context.go index e9aa9e193..0d2e497eb 100644 --- a/vendor/golang.org/x/text/cases/context.go +++ b/vendor/golang.org/x/text/cases/context.go @@ -4,7 +4,9 @@ package cases -import "golang.org/x/text/transform" +import ( + "golang.org/x/text/transform" +) // A context is used for iterating over source bytes, fetching case info and // writing to a destination buffer. @@ -54,14 +56,6 @@ func (c *context) ret() (nDst, nSrc int, err error) { return c.nDst, c.nSrc, transform.ErrShortSrc } -// retSpan returns the return values for the Span method. It checks whether -// there were insufficient bytes in src to complete and introduces an error -// accordingly, if necessary. -func (c *context) retSpan() (n int, err error) { - _, nSrc, err := c.ret() - return nSrc, err -} - // checkpoint sets the return value buffer points for Transform to the current // positions. func (c *context) checkpoint() { @@ -206,23 +200,6 @@ func lower(c *context) bool { return c.copy() } -func isLower(c *context) bool { - ct := c.caseType() - if c.info&hasMappingMask == 0 || ct == cLower { - return true - } - if c.info&exceptionBit == 0 { - c.err = transform.ErrEndOfSpan - return false - } - e := exceptions[c.info>>exceptionShift:] - if nLower := (e[1] >> lengthBits) & lengthMask; nLower != noChange { - c.err = transform.ErrEndOfSpan - return false - } - return true -} - // upper writes the uppercase version of the current rune to dst. func upper(c *context) bool { ct := c.caseType() @@ -249,29 +226,6 @@ func upper(c *context) bool { return c.copy() } -// isUpper writes the isUppercase version of the current rune to dst. -func isUpper(c *context) bool { - ct := c.caseType() - if c.info&hasMappingMask == 0 || ct == cUpper { - return true - } - if c.info&exceptionBit == 0 { - c.err = transform.ErrEndOfSpan - return false - } - e := exceptions[c.info>>exceptionShift:] - // Get length of first special case mapping. - n := (e[1] >> lengthBits) & lengthMask - if ct == cTitle { - n = e[1] & lengthMask - } - if n != noChange { - c.err = transform.ErrEndOfSpan - return false - } - return true -} - // title writes the title case version of the current rune to dst. func title(c *context) bool { ct := c.caseType() @@ -303,33 +257,6 @@ func title(c *context) bool { return c.copy() } -// isTitle reports whether the current rune is in title case. -func isTitle(c *context) bool { - ct := c.caseType() - if c.info&hasMappingMask == 0 || ct == cTitle { - return true - } - if c.info&exceptionBit == 0 { - if ct == cLower { - c.err = transform.ErrEndOfSpan - return false - } - return true - } - // Get the exception data. - e := exceptions[c.info>>exceptionShift:] - if nTitle := e[1] & lengthMask; nTitle != noChange { - c.err = transform.ErrEndOfSpan - return false - } - nFirst := (e[1] >> lengthBits) & lengthMask - if ct == cLower && nFirst != noChange { - c.err = transform.ErrEndOfSpan - return false - } - return true -} - // foldFull writes the foldFull version of the current rune to dst. func foldFull(c *context) bool { if c.info&hasMappingMask == 0 { @@ -352,25 +279,3 @@ func foldFull(c *context) bool { } return c.writeString(e[2 : 2+n]) } - -// isFoldFull reports whether the current run is mapped to foldFull -func isFoldFull(c *context) bool { - if c.info&hasMappingMask == 0 { - return true - } - ct := c.caseType() - if c.info&exceptionBit == 0 { - if ct != cLower || c.info&inverseFoldBit != 0 { - c.err = transform.ErrEndOfSpan - return false - } - return true - } - e := exceptions[c.info>>exceptionShift:] - n := e[0] & lengthMask - if n == 0 && ct == cLower { - return true - } - c.err = transform.ErrEndOfSpan - return false -} diff --git a/vendor/golang.org/x/text/cases/fold.go b/vendor/golang.org/x/text/cases/fold.go index 85cc434fa..e95bfa8ea 100644 --- a/vendor/golang.org/x/text/cases/fold.go +++ b/vendor/golang.org/x/text/cases/fold.go @@ -18,15 +18,7 @@ func (t *caseFolder) Transform(dst, src []byte, atEOF bool) (nDst, nSrc int, err return c.ret() } -func (t *caseFolder) Span(src []byte, atEOF bool) (n int, err error) { - c := context{src: src, atEOF: atEOF} - for c.next() && isFoldFull(&c) { - c.checkpoint() - } - return c.retSpan() -} - -func makeFold(o options) transform.SpanningTransformer { +func makeFold(o options) transform.Transformer { // TODO: Special case folding, through option Language, Special/Turkic, or // both. // TODO: Implement Compact options. diff --git a/vendor/golang.org/x/text/cases/gen.go b/vendor/golang.org/x/text/cases/gen.go index eb399baa7..f46170fca 100644 --- a/vendor/golang.org/x/text/cases/gen.go +++ b/vendor/golang.org/x/text/cases/gen.go @@ -76,7 +76,7 @@ type breakCategory int const ( breakBreak breakCategory = iota breakLetter - breakMid + breakIgnored ) // mapping returns the case mapping for the given case type. @@ -162,14 +162,9 @@ func parseUCD() []runeInfo { // We collapse the word breaking properties onto the categories we need. switch p.String(1) { // TODO: officially we need to canonicalize. - case "MidLetter", "MidNumLet", "Single_Quote": - ri.BreakCat = breakMid - if !ri.CaseIgnorable { - // finalSigma relies on the fact that all breakMid runes are - // also a Case_Ignorable. Revisit this code when this changes. - log.Fatalf("Rune %U, which has a break category mid, is not a case ignorable", ri) - } - case "ALetter", "Hebrew_Letter", "Numeric", "Extend", "ExtendNumLet", "Format", "ZWJ": + case "Format", "MidLetter", "MidNumLet", "Single_Quote": + ri.BreakCat = breakIgnored + case "ALetter", "Hebrew_Letter", "Numeric", "Extend", "ExtendNumLet": ri.BreakCat = breakLetter } }) @@ -245,11 +240,8 @@ func makeEntry(ri *runeInfo) { case above: // Above ccc = cccAbove } - switch ri.BreakCat { - case breakBreak: + if ri.BreakCat == breakBreak { ccc = cccBreak - case breakMid: - ri.entry |= isMidBit } ri.entry |= ccc @@ -698,7 +690,7 @@ func genTablesTest() { parse("auxiliary/WordBreakProperty.txt", func(p *ucd.Parser) { switch p.String(1) { case "Extend", "Format", "MidLetter", "MidNumLet", "Single_Quote", - "ALetter", "Hebrew_Letter", "Numeric", "ExtendNumLet", "ZWJ": + "ALetter", "Hebrew_Letter", "Numeric", "ExtendNumLet": notBreak[p.Rune(0)] = true } }) diff --git a/vendor/golang.org/x/text/cases/gen_trieval.go b/vendor/golang.org/x/text/cases/gen_trieval.go index 376d22c8f..cf1a99d5e 100644 --- a/vendor/golang.org/x/text/cases/gen_trieval.go +++ b/vendor/golang.org/x/text/cases/gen_trieval.go @@ -26,7 +26,6 @@ package main // Only 13..8 are used for XOR patterns. // 7 inverseFold (fold to upper, not to lower) // 6 index: interpret the XOR pattern as an index -// or isMid if case mode is cIgnorableUncased. // 5..4 CCC: zero (normal or break), above or other // } // 3 exception: interpret this value as an exception index @@ -49,7 +48,6 @@ const ( ignorableValue = 0x0004 inverseFoldBit = 1 << 7 - isMidBit = 1 << 6 exceptionBit = 1 << 3 exceptionShift = 5 @@ -59,7 +57,7 @@ const ( xorShift = 8 // There is no mapping if all xor bits and the exception bit are zero. - hasMappingMask = 0xff80 | exceptionBit + hasMappingMask = 0xffc0 | exceptionBit ) // The case mode bits encodes the case type of a rune. This includes uncased, @@ -97,6 +95,10 @@ func (c info) isCaseIgnorable() bool { return c&ignorableMask == ignorableValue } +func (c info) isCaseIgnorableAndNonBreakStarter() bool { + return c&(fullCasedMask|cccMask) == (ignorableValue | cccZero) +} + func (c info) isNotCasedAndNotCaseIgnorable() bool { return c&fullCasedMask == 0 } @@ -105,10 +107,6 @@ func (c info) isCaseIgnorableAndNotCased() bool { return c&fullCasedMask == cIgnorableUncased } -func (c info) isMid() bool { - return c&(fullCasedMask|isMidBit) == isMidBit|cIgnorableUncased -} - // The case mapping implementation will need to know about various Canonical // Combining Class (CCC) values. We encode two of these in the trie value: // cccZero (0) and cccAbove (230). If the value is cccOther, it means that diff --git a/vendor/golang.org/x/text/cases/icu.go b/vendor/golang.org/x/text/cases/icu.go deleted file mode 100644 index 46530d1e4..000000000 --- a/vendor/golang.org/x/text/cases/icu.go +++ /dev/null @@ -1,61 +0,0 @@ -// 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 icu - -package cases - -// Ideally these functions would be defined in a test file, but go test doesn't -// allow CGO in tests. The build tag should ensure either way that these -// functions will not end up in the package. - -// TODO: Ensure that the correct ICU version is set. - -/* -#cgo LDFLAGS: -licui18n.57 -licuuc.57 -#include -#include -#include -#include -#include -*/ -import "C" - -import "unsafe" - -func doICU(tag, caser, input string) string { - err := C.UErrorCode(0) - loc := C.CString(tag) - cm := C.ucasemap_open(loc, C.uint32_t(0), &err) - - buf := make([]byte, len(input)*4) - dst := (*C.char)(unsafe.Pointer(&buf[0])) - src := C.CString(input) - - cn := C.int32_t(0) - - switch caser { - case "fold": - cn = C.ucasemap_utf8FoldCase(cm, - dst, C.int32_t(len(buf)), - src, C.int32_t(len(input)), - &err) - case "lower": - cn = C.ucasemap_utf8ToLower(cm, - dst, C.int32_t(len(buf)), - src, C.int32_t(len(input)), - &err) - case "upper": - cn = C.ucasemap_utf8ToUpper(cm, - dst, C.int32_t(len(buf)), - src, C.int32_t(len(input)), - &err) - case "title": - cn = C.ucasemap_utf8ToTitle(cm, - dst, C.int32_t(len(buf)), - src, C.int32_t(len(input)), - &err) - } - return string(buf[:cn]) -} diff --git a/vendor/golang.org/x/text/cases/info.go b/vendor/golang.org/x/text/cases/info.go index 3b51f03d6..669d7ae1f 100644 --- a/vendor/golang.org/x/text/cases/info.go +++ b/vendor/golang.org/x/text/cases/info.go @@ -28,6 +28,9 @@ func (c info) cccType() info { // only makes sense, though, if the performance and/or space penalty of using // the generic breaker is big. Extra data will only be needed for non-cased // runes, which means there are sufficient bits left in the caseType. +// Also note that the standard breaking algorithm doesn't always make sense +// for title casing. For example, a4a -> A4a, but a"4a -> A"4A (where " stands +// for modifier \u0308). // ICU prohibits breaking in such cases as well. // For the purpose of title casing we use an approximation of the Unicode Word @@ -38,19 +41,17 @@ func (c info) cccType() info { // categories, with associated rules: // // 1) Letter: -// ALetter, Hebrew_Letter, Numeric, ExtendNumLet, Extend, Format_FE, ZWJ. +// ALetter, Hebrew_Letter, Numeric, ExtendNumLet, Extend. // Rule: Never break between consecutive runes of this category. // // 2) Mid: -// MidLetter, MidNumLet, Single_Quote. -// (Cf. case-ignorable: MidLetter, MidNumLet, Single_Quote or cat is Mn, -// Me, Cf, Lm or Sk). +// Format, MidLetter, MidNumLet, Single_Quote. +// (Cf. case-ignorable: MidLetter, MidNumLet or cat is Mn, Me, Cf, Lm or Sk). // Rule: Don't break between Letter and Mid, but break between two Mids. // // 3) Break: -// Any other category: NewLine, MidNum, CR, LF, Double_Quote, Katakana, and -// Other. -// These categories should always result in a break between two cased letters. +// Any other category, including NewLine, CR, LF and Double_Quote. These +// categories should always result in a break between two cased letters. // Rule: Always break. // // Note 1: the Katakana and MidNum categories can, in esoteric cases, result in diff --git a/vendor/golang.org/x/text/cases/map.go b/vendor/golang.org/x/text/cases/map.go index 4baebaaa6..f2a8e96d0 100644 --- a/vendor/golang.org/x/text/cases/map.go +++ b/vendor/golang.org/x/text/cases/map.go @@ -13,7 +13,6 @@ import ( "unicode" "unicode/utf8" - "golang.org/x/text/internal" "golang.org/x/text/language" "golang.org/x/text/transform" "golang.org/x/text/unicode/norm" @@ -25,11 +24,6 @@ import ( // dst so far won't need changing as we see more source bytes. type mapFunc func(*context) bool -// A spanFunc takes a context set to the current rune and returns whether this -// rune would be altered when written to the output. It may advance the context -// to the next rune. It returns whether a checkpoint is possible. -type spanFunc func(*context) bool - // maxIgnorable defines the maximum number of ignorables to consider for // lookahead operations. const maxIgnorable = 30 @@ -42,12 +36,12 @@ func init() { for _, s := range strings.Split(supported, " ") { tags = append(tags, language.MustParse(s)) } - matcher = internal.NewInheritanceMatcher(tags) + matcher = language.NewMatcher(tags) Supported = language.NewCoverage(tags) } var ( - matcher *internal.InheritanceMatcher + matcher language.Matcher Supported language.Coverage @@ -56,69 +50,56 @@ var ( // Some uppercase mappers are stateless, so we can precompute the // Transformers and save a bit on runtime allocations. - upperFunc = []struct { - upper mapFunc - span spanFunc - }{ - {nil, nil}, // und - {nil, nil}, // af - {aztrUpper(upper), isUpper}, // az - {elUpper, noSpan}, // el - {ltUpper(upper), noSpan}, // lt - {nil, nil}, // nl - {aztrUpper(upper), isUpper}, // tr + upperFunc = []mapFunc{ + nil, // und + nil, // af + aztrUpper(upper), // az + elUpper, // el + ltUpper(upper), // lt + nil, // nl + aztrUpper(upper), // tr } - undUpper transform.SpanningTransformer = &undUpperCaser{} - undLower transform.SpanningTransformer = &undLowerCaser{} - undLowerIgnoreSigma transform.SpanningTransformer = &undLowerIgnoreSigmaCaser{} + undUpper transform.Transformer = &undUpperCaser{} lowerFunc = []mapFunc{ - nil, // und - nil, // af + lower, // und + lower, // af aztrLower, // az - nil, // el + lower, // el ltLower, // lt - nil, // nl + lower, // nl aztrLower, // tr } titleInfos = []struct { - title mapFunc - lower mapFunc - titleSpan spanFunc - rewrite func(*context) + title, lower mapFunc + rewrite func(*context) }{ - {title, lower, isTitle, nil}, // und - {title, lower, isTitle, afnlRewrite}, // af - {aztrUpper(title), aztrLower, isTitle, nil}, // az - {title, lower, isTitle, nil}, // el - {ltUpper(title), ltLower, noSpan, nil}, // lt - {nlTitle, lower, nlTitleSpan, afnlRewrite}, // nl - {aztrUpper(title), aztrLower, isTitle, nil}, // tr + {title, lower, nil}, // und + {title, lower, afnlRewrite}, // af + {aztrUpper(title), aztrLower, nil}, // az + {title, lower, nil}, // el + {ltUpper(title), ltLower, nil}, // lt + {nlTitle, lower, afnlRewrite}, // nl + {aztrUpper(title), aztrLower, nil}, // tr } ) -func makeUpper(t language.Tag, o options) transform.SpanningTransformer { +func makeUpper(t language.Tag, o options) transform.Transformer { _, i, _ := matcher.Match(t) - f := upperFunc[i].upper + f := upperFunc[i] if f == nil { return undUpper } - return &simpleCaser{f: f, span: upperFunc[i].span} + return &simpleCaser{f: f} } -func makeLower(t language.Tag, o options) transform.SpanningTransformer { +func makeLower(t language.Tag, o options) transform.Transformer { _, i, _ := matcher.Match(t) f := lowerFunc[i] - if f == nil { - if o.ignoreFinalSigma { - return undLowerIgnoreSigma - } - return undLower - } - if o.ignoreFinalSigma { - return &simpleCaser{f: f, span: isLower} + if o.noFinalSigma { + return &simpleCaser{f: f} } return &lowerCaser{ first: f, @@ -126,28 +107,22 @@ func makeLower(t language.Tag, o options) transform.SpanningTransformer { } } -func makeTitle(t language.Tag, o options) transform.SpanningTransformer { +func makeTitle(t language.Tag, o options) transform.Transformer { _, i, _ := matcher.Match(t) x := &titleInfos[i] lower := x.lower if o.noLower { lower = (*context).copy - } else if !o.ignoreFinalSigma { + } else if !o.noFinalSigma { lower = finalSigma(lower) } return &titleCaser{ - title: x.title, - lower: lower, - titleSpan: x.titleSpan, - rewrite: x.rewrite, + title: x.title, + lower: lower, + rewrite: x.rewrite, } } -func noSpan(c *context) bool { - c.err = transform.ErrEndOfSpan - return false -} - // TODO: consider a similar special case for the fast majority lower case. This // is a bit more involved so will require some more precise benchmarking to // justify it. @@ -157,7 +132,7 @@ type undUpperCaser struct{ transform.NopResetter } // undUpperCaser implements the Transformer interface for doing an upper case // mapping for the root locale (und). It eliminates the need for an allocation // as it prevents escaping by not using function pointers. -func (t undUpperCaser) Transform(dst, src []byte, atEOF bool) (nDst, nSrc int, err error) { +func (t *undUpperCaser) Transform(dst, src []byte, atEOF bool) (nDst, nSrc int, err error) { c := context{dst: dst, src: src, atEOF: atEOF} for c.next() { upper(&c) @@ -166,117 +141,26 @@ func (t undUpperCaser) Transform(dst, src []byte, atEOF bool) (nDst, nSrc int, e return c.ret() } -func (t undUpperCaser) Span(src []byte, atEOF bool) (n int, err error) { - c := context{src: src, atEOF: atEOF} - for c.next() && isUpper(&c) { - c.checkpoint() - } - return c.retSpan() -} - -// undLowerIgnoreSigmaCaser implements the Transformer interface for doing -// a lower case mapping for the root locale (und) ignoring final sigma -// handling. This casing algorithm is used in some performance-critical packages -// like secure/precis and x/net/http/idna, which warrants its special-casing. -type undLowerIgnoreSigmaCaser struct{ transform.NopResetter } - -func (t undLowerIgnoreSigmaCaser) Transform(dst, src []byte, atEOF bool) (nDst, nSrc int, err error) { - c := context{dst: dst, src: src, atEOF: atEOF} - for c.next() && lower(&c) { - c.checkpoint() - } - return c.ret() - -} - -// Span implements a generic lower-casing. This is possible as isLower works -// for all lowercasing variants. All lowercase variants only vary in how they -// transform a non-lowercase letter. They will never change an already lowercase -// letter. In addition, there is no state. -func (t undLowerIgnoreSigmaCaser) Span(src []byte, atEOF bool) (n int, err error) { - c := context{src: src, atEOF: atEOF} - for c.next() && isLower(&c) { - c.checkpoint() - } - return c.retSpan() -} - type simpleCaser struct { context - f mapFunc - span spanFunc + f mapFunc } // simpleCaser implements the Transformer interface for doing a case operation // on a rune-by-rune basis. func (t *simpleCaser) Transform(dst, src []byte, atEOF bool) (nDst, nSrc int, err error) { - c := context{dst: dst, src: src, atEOF: atEOF} - for c.next() && t.f(&c) { + t.context = context{dst: dst, src: src, atEOF: atEOF} + c := &t.context + for c.next() && t.f(c) { c.checkpoint() } return c.ret() } -func (t *simpleCaser) Span(src []byte, atEOF bool) (n int, err error) { - c := context{src: src, atEOF: atEOF} - for c.next() && t.span(&c) { - c.checkpoint() - } - return c.retSpan() -} - -// undLowerCaser implements the Transformer interface for doing a lower case -// mapping for the root locale (und) ignoring final sigma handling. This casing -// algorithm is used in some performance-critical packages like secure/precis -// and x/net/http/idna, which warrants its special-casing. -type undLowerCaser struct{ transform.NopResetter } - -func (t undLowerCaser) Transform(dst, src []byte, atEOF bool) (nDst, nSrc int, err error) { - c := context{dst: dst, src: src, atEOF: atEOF} - - for isInterWord := true; c.next(); { - if isInterWord { - if c.info.isCased() { - if !lower(&c) { - break - } - isInterWord = false - } else if !c.copy() { - break - } - } else { - if c.info.isNotCasedAndNotCaseIgnorable() { - if !c.copy() { - break - } - isInterWord = true - } else if !c.hasPrefix("Σ") { - if !lower(&c) { - break - } - } else if !finalSigmaBody(&c) { - break - } - } - c.checkpoint() - } - return c.ret() -} - -func (t undLowerCaser) Span(src []byte, atEOF bool) (n int, err error) { - c := context{src: src, atEOF: atEOF} - for c.next() && isLower(&c) { - c.checkpoint() - } - return c.retSpan() -} - // lowerCaser implements the Transformer interface. The default Unicode lower // casing requires different treatment for the first and subsequent characters // of a word, most notably to handle the Greek final Sigma. type lowerCaser struct { - undLowerIgnoreSigmaCaser - context first, midWord mapFunc @@ -318,9 +202,7 @@ type titleCaser struct { context // rune mappings used by the actual casing algorithms. - title mapFunc - lower mapFunc - titleSpan spanFunc + title, lower mapFunc rewrite func(*context) } @@ -346,10 +228,10 @@ func (t *titleCaser) Transform(dst, src []byte, atEOF bool) (nDst, nSrc int, err t.rewrite(c) } - wasMid := p.isMid() + wasMid := p.isCaseIgnorableAndNonBreakStarter() // Break out of this loop on failure to ensure we do not modify the // state incorrectly. - if p.isCased() { + if p.isCased() && !p.isCaseIgnorableAndNotCased() { if !c.isMidWord { if !t.title(c) { break @@ -360,139 +242,71 @@ func (t *titleCaser) Transform(dst, src []byte, atEOF bool) (nDst, nSrc int, err } } else if !c.copy() { break - } else if p.isBreak() { + } + + // TODO: make this an "else if" if we can prove that no rune that does + // not match the first condition of the if statement can be a break. + if p.isBreak() { c.isMidWord = false } // As we save the state of the transformer, it is safe to call // checkpoint after any successful write. - if !(c.isMidWord && wasMid) { - c.checkpoint() - } + c.checkpoint() if !c.next() { break } - if wasMid && c.info.isMid() { + if wasMid && c.info.isCaseIgnorableAndNonBreakStarter() { c.isMidWord = false } } return c.ret() } -func (t *titleCaser) Span(src []byte, atEOF bool) (n int, err error) { - t.context = context{src: src, atEOF: atEOF, isMidWord: t.isMidWord} - c := &t.context - - if !c.next() { - return c.retSpan() - } - - for { - p := c.info - if t.rewrite != nil { - t.rewrite(c) - } - - wasMid := p.isMid() - // Break out of this loop on failure to ensure we do not modify the - // state incorrectly. - if p.isCased() { - if !c.isMidWord { - if !t.titleSpan(c) { - break - } - c.isMidWord = true - } else if !isLower(c) { - break - } - } else if p.isBreak() { - c.isMidWord = false - } - // As we save the state of the transformer, it is safe to call - // checkpoint after any successful write. - if !(c.isMidWord && wasMid) { - c.checkpoint() - } - - if !c.next() { - break - } - if wasMid && c.info.isMid() { - c.isMidWord = false - } - } - return c.retSpan() -} - // finalSigma adds Greek final Sigma handing to another casing function. It // determines whether a lowercased sigma should be σ or ς, by looking ahead for // case-ignorables and a cased letters. func finalSigma(f mapFunc) mapFunc { return func(c *context) bool { + // ::NFD(); + // # 03A3; 03C2; 03A3; 03A3; Final_Sigma; # GREEK CAPITAL LETTER SIGMA + // Σ } [:case-ignorable:]* [:cased:] → σ; + // [:cased:] [:case-ignorable:]* { Σ → ς; + // ::Any-Lower; + // ::NFC(); + if !c.hasPrefix("Σ") { return f(c) } - return finalSigmaBody(c) - } -} -func finalSigmaBody(c *context) bool { - // Current rune must be ∑. - - // ::NFD(); - // # 03A3; 03C2; 03A3; 03A3; Final_Sigma; # GREEK CAPITAL LETTER SIGMA - // Σ } [:case-ignorable:]* [:cased:] → σ; - // [:cased:] [:case-ignorable:]* { Σ → ς; - // ::Any-Lower; - // ::NFC(); - - p := c.pDst - c.writeString("ς") - - // TODO: we should do this here, but right now this will never have an - // effect as this is called when the prefix is Sigma, whereas Dutch and - // Afrikaans only test for an apostrophe. - // - // if t.rewrite != nil { - // t.rewrite(c) - // } - - // We need to do one more iteration after maxIgnorable, as a cased - // letter is not an ignorable and may modify the result. - wasMid := false - for i := 0; i < maxIgnorable+1; i++ { - if !c.next() { - return false - } - if !c.info.isCaseIgnorable() { - // All Midword runes are also case ignorable, so we are - // guaranteed to have a letter or word break here. As we are - // unreading the run, there is no need to unset c.isMidWord; - // the title caser will handle this. - if c.info.isCased() { - // p+1 is guaranteed to be in bounds: if writing ς was - // successful, p+1 will contain the second byte of ς. If not, - // this function will have returned after c.next returned false. - c.dst[p+1]++ // ς → σ + p := c.pDst + c.writeString("ς") + // We need to do one more iteration after maxIgnorable, as a cased + // letter is not an ignorable and may modify the result. + for i := 0; i < maxIgnorable+1; i++ { + if !c.next() { + return false } - c.unreadRune() - return true + if !c.info.isCaseIgnorable() { + if c.info.isCased() { + // p+1 is guaranteed to be in bounds: if writing ς was + // successful, p+1 will contain the second byte of ς. If not, + // this function will have returned after c.next returned false. + c.dst[p+1]++ // ς → σ + } + c.unreadRune() + return true + } + // A case ignorable may also introduce a word break, so we may need + // to continue searching even after detecting a break. + c.isMidWord = c.isMidWord && !c.info.isBreak() + c.copy() } - // A case ignorable may also introduce a word break, so we may need - // to continue searching even after detecting a break. - isMid := c.info.isMid() - if (wasMid && isMid) || c.info.isBreak() { - c.isMidWord = false - } - wasMid = isMid - c.copy() + return true } - return true } -// finalSigmaSpan would be the same as isLower. - // elUpper implements Greek upper casing, which entails removing a predefined // set of non-blocked modifiers. Note that these accents should not be removed // for title casing! @@ -562,8 +376,6 @@ func elUpper(c *context) bool { return i == maxIgnorable } -// TODO: implement elUpperSpan (low-priority: complex and infrequent). - func ltLower(c *context) bool { // From CLDR: // # Introduce an explicit dot above when lowercasing capital I's and J's @@ -578,10 +390,10 @@ func ltLower(c *context) bool { // ::NFD(); // I } [^[:ccc=Not_Reordered:][:ccc=Above:]]* [:ccc=Above:] → i \u0307; // J } [^[:ccc=Not_Reordered:][:ccc=Above:]]* [:ccc=Above:] → j \u0307; - // I \u0328 (Į) } [^[:ccc=Not_Reordered:][:ccc=Above:]]* [:ccc=Above:] → i \u0328 \u0307; - // I \u0300 (Ì) → i \u0307 \u0300; - // I \u0301 (Í) → i \u0307 \u0301; - // I \u0303 (Ĩ) → i \u0307 \u0303; + // Į } [^[:ccc=Not_Reordered:][:ccc=Above:]]* [:ccc=Above:] → į \u0307; + // Ì → i \u0307 \u0300; + // Í → i \u0307 \u0301; + // Ĩ → i \u0307 \u0303; // ::Any-Lower(); // ::NFC(); @@ -633,16 +445,9 @@ func ltLower(c *context) bool { return i == maxIgnorable } -// ltLowerSpan would be the same as isLower. - func ltUpper(f mapFunc) mapFunc { return func(c *context) bool { - // Unicode: - // 0307; 0307; ; ; lt After_Soft_Dotted; # COMBINING DOT ABOVE - // // From CLDR: - // # Remove \u0307 following soft-dotteds (i, j, and the like), with possible - // # intervening non-230 marks. // ::NFD(); // [:Soft_Dotted:] [^[:ccc=Not_Reordered:][:ccc=Above:]]* { \u0307 → ; // ::Any-Upper(); @@ -706,8 +511,6 @@ func ltUpper(f mapFunc) mapFunc { } } -// TODO: implement ltUpperSpan (low priority: complex and infrequent). - func aztrUpper(f mapFunc) mapFunc { return func(c *context) bool { // i→İ; @@ -768,8 +571,6 @@ Loop: return c.writeString("ı") && c.writeBytes(c.src[start:c.pSrc+c.sz]) && done } -// aztrLowerSpan would be the same as isLower. - func nlTitle(c *context) bool { // From CLDR: // # Special titlecasing for Dutch initial "ij". @@ -790,24 +591,6 @@ func nlTitle(c *context) bool { return true } -func nlTitleSpan(c *context) bool { - // From CLDR: - // # Special titlecasing for Dutch initial "ij". - // ::Any-Title(); - // # Fix up Ij at the beginning of a "word" (per Any-Title, notUAX #29) - // [:^WB=ALetter:] [:WB=Extend:]* [[:WB=MidLetter:][:WB=MidNumLet:]]? { Ij } → IJ ; - if c.src[c.pSrc] != 'I' { - return isTitle(c) - } - if !c.next() || c.src[c.pSrc] == 'j' { - return false - } - if c.src[c.pSrc] != 'J' { - c.unreadRune() - } - return true -} - // Not part of CLDR, but see http://unicode.org/cldr/trac/ticket/7078. func afnlRewrite(c *context) { if c.hasPrefix("'") || c.hasPrefix("’") { diff --git a/vendor/golang.org/x/text/cases/tables.go b/vendor/golang.org/x/text/cases/tables.go index 32ee8fadb..4257e57ae 100644 --- a/vendor/golang.org/x/text/cases/tables.go +++ b/vendor/golang.org/x/text/cases/tables.go @@ -216,7 +216,7 @@ func (t *caseTrie) lookupStringUnsafe(s string) uint16 { return 0 } -// caseTrie. Total size: 11742 bytes (11.47 KiB). Checksum: 147a11466b427436. +// caseTrie. Total size: 11750 bytes (11.47 KiB). Checksum: 9ec26581a3006e0d. type caseTrie struct{} func newCaseTrie(i int) *caseTrie { @@ -238,10 +238,10 @@ func (t *caseTrie) lookupValue(n uint32, b byte) uint16 { // The third block is the zero block. var caseValues = [1280]uint16{ // Block 0x0, offset 0x0 - 0x27: 0x0054, - 0x2e: 0x0054, + 0x27: 0x0014, + 0x2e: 0x0014, 0x30: 0x0010, 0x31: 0x0010, 0x32: 0x0010, 0x33: 0x0010, 0x34: 0x0010, 0x35: 0x0010, - 0x36: 0x0010, 0x37: 0x0010, 0x38: 0x0010, 0x39: 0x0010, 0x3a: 0x0054, + 0x36: 0x0010, 0x37: 0x0010, 0x38: 0x0010, 0x39: 0x0010, 0x3a: 0x0014, // Block 0x1, offset 0x40 0x41: 0x2013, 0x42: 0x2013, 0x43: 0x2013, 0x44: 0x2013, 0x45: 0x2013, 0x46: 0x2013, 0x47: 0x2013, 0x48: 0x2013, 0x49: 0x2013, 0x4a: 0x2013, 0x4b: 0x2013, @@ -316,7 +316,7 @@ var caseValues = [1280]uint16{ 0x1fc: 0x5052, 0x1fd: 0x5052, 0x1ff: 0x5353, // Block 0x8, offset 0x200 0x204: 0x0004, 0x205: 0x0004, - 0x206: 0x2a13, 0x207: 0x0054, 0x208: 0x2513, 0x209: 0x2713, 0x20a: 0x2513, + 0x206: 0x2a13, 0x207: 0x0014, 0x208: 0x2513, 0x209: 0x2713, 0x20a: 0x2513, 0x20c: 0x5653, 0x20e: 0x5953, 0x20f: 0x5c53, 0x210: 0x1e2a, 0x211: 0x2013, 0x212: 0x2013, 0x213: 0x2013, 0x214: 0x2013, 0x215: 0x2013, 0x216: 0x2013, 0x217: 0x2013, 0x218: 0x2013, 0x219: 0x2013, 0x21a: 0x2013, 0x21b: 0x2013, 0x21c: 0x2013, 0x21d: 0x2013, @@ -571,10 +571,10 @@ var caseIndex = [1600]uint16{ } // sparseOffsets: 272 entries, 544 bytes -var sparseOffsets = []uint16{0x0, 0x9, 0xf, 0x18, 0x24, 0x2e, 0x3a, 0x3d, 0x41, 0x44, 0x48, 0x52, 0x54, 0x59, 0x69, 0x70, 0x75, 0x83, 0x84, 0x92, 0xa1, 0xab, 0xae, 0xb4, 0xbc, 0xbe, 0xc0, 0xce, 0xd4, 0xe2, 0xed, 0xf8, 0x103, 0x10f, 0x119, 0x124, 0x12f, 0x13b, 0x147, 0x14f, 0x157, 0x161, 0x16c, 0x178, 0x17e, 0x189, 0x18e, 0x196, 0x199, 0x19e, 0x1a2, 0x1a6, 0x1ad, 0x1b6, 0x1be, 0x1bf, 0x1c8, 0x1cf, 0x1d7, 0x1dd, 0x1e3, 0x1e8, 0x1ec, 0x1ef, 0x1f1, 0x1f4, 0x1f9, 0x1fa, 0x1fc, 0x1fe, 0x200, 0x207, 0x20c, 0x210, 0x219, 0x21c, 0x21f, 0x225, 0x226, 0x231, 0x232, 0x233, 0x238, 0x245, 0x24d, 0x255, 0x25e, 0x267, 0x270, 0x275, 0x278, 0x281, 0x28e, 0x290, 0x297, 0x299, 0x2a4, 0x2a5, 0x2b0, 0x2b8, 0x2c0, 0x2c6, 0x2c7, 0x2d5, 0x2da, 0x2dd, 0x2e2, 0x2e6, 0x2ec, 0x2f1, 0x2f4, 0x2f9, 0x2fe, 0x2ff, 0x305, 0x307, 0x308, 0x30a, 0x30c, 0x30f, 0x310, 0x312, 0x315, 0x31b, 0x31f, 0x321, 0x327, 0x32e, 0x332, 0x33b, 0x33c, 0x344, 0x348, 0x34d, 0x355, 0x35b, 0x361, 0x36b, 0x370, 0x379, 0x37f, 0x386, 0x38a, 0x392, 0x394, 0x396, 0x399, 0x39b, 0x39d, 0x39e, 0x39f, 0x3a1, 0x3a3, 0x3a9, 0x3ae, 0x3b0, 0x3b6, 0x3b9, 0x3bb, 0x3c1, 0x3c6, 0x3c8, 0x3c9, 0x3ca, 0x3cb, 0x3cd, 0x3cf, 0x3d1, 0x3d4, 0x3d6, 0x3d9, 0x3e1, 0x3e4, 0x3e8, 0x3f0, 0x3f2, 0x3f3, 0x3f4, 0x3f6, 0x3fc, 0x3fe, 0x3ff, 0x401, 0x403, 0x405, 0x412, 0x413, 0x414, 0x418, 0x41a, 0x41b, 0x41c, 0x41d, 0x41e, 0x422, 0x426, 0x42c, 0x42e, 0x435, 0x438, 0x43c, 0x442, 0x44b, 0x451, 0x457, 0x461, 0x46b, 0x46d, 0x474, 0x47a, 0x480, 0x486, 0x489, 0x48f, 0x492, 0x49a, 0x49b, 0x4a2, 0x4a3, 0x4a6, 0x4a7, 0x4ad, 0x4b0, 0x4b8, 0x4b9, 0x4ba, 0x4bb, 0x4bc, 0x4be, 0x4c0, 0x4c2, 0x4c6, 0x4c7, 0x4c9, 0x4ca, 0x4cb, 0x4cd, 0x4d2, 0x4d7, 0x4db, 0x4dc, 0x4df, 0x4e3, 0x4ee, 0x4f2, 0x4fa, 0x4ff, 0x503, 0x506, 0x50a, 0x50d, 0x510, 0x515, 0x519, 0x51d, 0x521, 0x525, 0x527, 0x529, 0x52c, 0x531, 0x533, 0x538, 0x541, 0x546, 0x547, 0x54a, 0x54b, 0x54c, 0x54e, 0x54f, 0x550} +var sparseOffsets = []uint16{0x0, 0x9, 0xf, 0x18, 0x24, 0x2e, 0x3a, 0x3d, 0x41, 0x44, 0x48, 0x52, 0x54, 0x59, 0x69, 0x70, 0x75, 0x83, 0x84, 0x92, 0xa1, 0xab, 0xae, 0xb4, 0xbc, 0xbe, 0xc0, 0xce, 0xd4, 0xe2, 0xed, 0xf8, 0x103, 0x10f, 0x119, 0x124, 0x12f, 0x13b, 0x147, 0x14f, 0x157, 0x161, 0x16c, 0x178, 0x17e, 0x189, 0x18e, 0x196, 0x199, 0x19e, 0x1a2, 0x1a6, 0x1ad, 0x1b6, 0x1be, 0x1bf, 0x1c8, 0x1cf, 0x1d7, 0x1dd, 0x1e3, 0x1e8, 0x1ec, 0x1ef, 0x1f1, 0x1f4, 0x1f9, 0x1fa, 0x1fc, 0x1fe, 0x200, 0x207, 0x20c, 0x210, 0x219, 0x21c, 0x21f, 0x225, 0x226, 0x231, 0x232, 0x233, 0x238, 0x245, 0x24d, 0x255, 0x25e, 0x267, 0x270, 0x275, 0x278, 0x281, 0x28e, 0x290, 0x297, 0x299, 0x2a4, 0x2a5, 0x2b0, 0x2b8, 0x2c2, 0x2c8, 0x2c9, 0x2d7, 0x2dc, 0x2df, 0x2e4, 0x2e8, 0x2ee, 0x2f3, 0x2f6, 0x2fb, 0x300, 0x301, 0x307, 0x309, 0x30a, 0x30c, 0x30e, 0x311, 0x312, 0x314, 0x317, 0x31d, 0x321, 0x323, 0x329, 0x330, 0x334, 0x33d, 0x33e, 0x346, 0x34a, 0x34f, 0x357, 0x35d, 0x363, 0x36d, 0x372, 0x37b, 0x381, 0x388, 0x38c, 0x394, 0x396, 0x398, 0x39b, 0x39d, 0x39f, 0x3a0, 0x3a1, 0x3a3, 0x3a5, 0x3ab, 0x3b0, 0x3b2, 0x3b8, 0x3bb, 0x3bd, 0x3c3, 0x3c8, 0x3ca, 0x3cb, 0x3cc, 0x3cd, 0x3cf, 0x3d1, 0x3d3, 0x3d6, 0x3d8, 0x3db, 0x3e3, 0x3e6, 0x3ea, 0x3f2, 0x3f4, 0x3f5, 0x3f6, 0x3f8, 0x3fe, 0x400, 0x401, 0x403, 0x405, 0x407, 0x414, 0x415, 0x416, 0x41a, 0x41c, 0x41d, 0x41e, 0x41f, 0x420, 0x424, 0x428, 0x42e, 0x430, 0x437, 0x43a, 0x43e, 0x444, 0x44d, 0x453, 0x459, 0x463, 0x46d, 0x46f, 0x476, 0x47c, 0x482, 0x488, 0x48b, 0x491, 0x494, 0x49c, 0x49d, 0x4a4, 0x4a5, 0x4a8, 0x4a9, 0x4af, 0x4b2, 0x4ba, 0x4bb, 0x4bc, 0x4bd, 0x4be, 0x4c0, 0x4c2, 0x4c4, 0x4c8, 0x4c9, 0x4cb, 0x4cc, 0x4cd, 0x4cf, 0x4d4, 0x4d9, 0x4dd, 0x4de, 0x4e1, 0x4e5, 0x4f0, 0x4f4, 0x4fc, 0x501, 0x505, 0x508, 0x50c, 0x50f, 0x512, 0x517, 0x51b, 0x51f, 0x523, 0x527, 0x529, 0x52b, 0x52e, 0x533, 0x535, 0x53a, 0x543, 0x548, 0x549, 0x54c, 0x54d, 0x54e, 0x550, 0x551, 0x552} -// sparseValues: 1360 entries, 5440 bytes -var sparseValues = [1360]valueRange{ +// sparseValues: 1362 entries, 5448 bytes +var sparseValues = [1362]valueRange{ // Block 0x0, offset 0x0 {value: 0x0004, lo: 0xa8, hi: 0xa8}, {value: 0x0012, lo: 0xaa, hi: 0xaa}, @@ -582,7 +582,7 @@ var sparseValues = [1360]valueRange{ {value: 0x0004, lo: 0xaf, hi: 0xaf}, {value: 0x0004, lo: 0xb4, hi: 0xb4}, {value: 0x002a, lo: 0xb5, hi: 0xb5}, - {value: 0x0054, lo: 0xb7, hi: 0xb7}, + {value: 0x0014, lo: 0xb7, hi: 0xb7}, {value: 0x0004, lo: 0xb8, hi: 0xb8}, {value: 0x0012, lo: 0xba, hi: 0xba}, // Block 0x1, offset 0x9 @@ -631,7 +631,7 @@ var sparseValues = [1360]valueRange{ {value: 0x0004, lo: 0x82, hi: 0x85}, {value: 0x0014, lo: 0x86, hi: 0x91}, {value: 0x0004, lo: 0x92, hi: 0x96}, - {value: 0x0054, lo: 0x97, hi: 0x97}, + {value: 0x0014, lo: 0x97, hi: 0x97}, {value: 0x0004, lo: 0x98, hi: 0x9f}, {value: 0x0015, lo: 0xa0, hi: 0xa4}, {value: 0x0004, lo: 0xa5, hi: 0xab}, @@ -701,7 +701,7 @@ var sparseValues = [1360]valueRange{ {value: 0x0034, lo: 0x87, hi: 0x87}, {value: 0x0010, lo: 0x90, hi: 0xaa}, {value: 0x0010, lo: 0xb0, hi: 0xb3}, - {value: 0x0054, lo: 0xb4, hi: 0xb4}, + {value: 0x0014, lo: 0xb4, hi: 0xb4}, // Block 0xf, offset 0x70 {value: 0x0014, lo: 0x80, hi: 0x85}, {value: 0x0024, lo: 0x90, hi: 0x97}, @@ -1372,23 +1372,25 @@ var sparseValues = [1360]valueRange{ {value: 0x0813, lo: 0xb8, hi: 0xbf}, // Block 0x63, offset 0x2b8 {value: 0x0004, lo: 0x8b, hi: 0x8b}, - {value: 0x0014, lo: 0x8c, hi: 0x8f}, - {value: 0x0054, lo: 0x98, hi: 0x99}, - {value: 0x0054, lo: 0xa4, hi: 0xa4}, - {value: 0x0054, lo: 0xa7, hi: 0xa7}, + {value: 0x0014, lo: 0x8c, hi: 0x8c}, + {value: 0x0004, lo: 0x8d, hi: 0x8d}, + {value: 0x0014, lo: 0x8e, hi: 0x8f}, + {value: 0x0014, lo: 0x98, hi: 0x99}, + {value: 0x0014, lo: 0xa4, hi: 0xa4}, + {value: 0x0014, lo: 0xa7, hi: 0xa7}, {value: 0x0014, lo: 0xaa, hi: 0xae}, {value: 0x0010, lo: 0xaf, hi: 0xaf}, {value: 0x0010, lo: 0xbf, hi: 0xbf}, - // Block 0x64, offset 0x2c0 + // Block 0x64, offset 0x2c2 {value: 0x0010, lo: 0x80, hi: 0x80}, {value: 0x0010, lo: 0x94, hi: 0x94}, {value: 0x0014, lo: 0xa0, hi: 0xa4}, {value: 0x0014, lo: 0xa6, hi: 0xaf}, {value: 0x0015, lo: 0xb1, hi: 0xb1}, {value: 0x0015, lo: 0xbf, hi: 0xbf}, - // Block 0x65, offset 0x2c6 + // Block 0x65, offset 0x2c8 {value: 0x0015, lo: 0x90, hi: 0x9c}, - // Block 0x66, offset 0x2c7 + // Block 0x66, offset 0x2c9 {value: 0x0024, lo: 0x90, hi: 0x91}, {value: 0x0034, lo: 0x92, hi: 0x93}, {value: 0x0024, lo: 0x94, hi: 0x97}, @@ -1403,112 +1405,112 @@ var sparseValues = [1360]valueRange{ {value: 0x0024, lo: 0xa9, hi: 0xa9}, {value: 0x0034, lo: 0xaa, hi: 0xaf}, {value: 0x0024, lo: 0xb0, hi: 0xb0}, - // Block 0x67, offset 0x2d5 + // Block 0x67, offset 0x2d7 {value: 0x0016, lo: 0x85, hi: 0x86}, {value: 0x0012, lo: 0x87, hi: 0x89}, {value: 0x9d52, lo: 0x8e, hi: 0x8e}, {value: 0x1013, lo: 0xa0, hi: 0xaf}, {value: 0x1012, lo: 0xb0, hi: 0xbf}, - // Block 0x68, offset 0x2da + // Block 0x68, offset 0x2dc {value: 0x0010, lo: 0x80, hi: 0x82}, {value: 0x0716, lo: 0x83, hi: 0x84}, {value: 0x0010, lo: 0x85, hi: 0x88}, - // Block 0x69, offset 0x2dd + // Block 0x69, offset 0x2df {value: 0xa053, lo: 0xb6, hi: 0xb7}, {value: 0xa353, lo: 0xb8, hi: 0xb9}, {value: 0xa653, lo: 0xba, hi: 0xbb}, {value: 0xa353, lo: 0xbc, hi: 0xbd}, {value: 0xa053, lo: 0xbe, hi: 0xbf}, - // Block 0x6a, offset 0x2e2 + // Block 0x6a, offset 0x2e4 {value: 0x3013, lo: 0x80, hi: 0x8f}, {value: 0x6553, lo: 0x90, hi: 0x9f}, {value: 0xa953, lo: 0xa0, hi: 0xae}, {value: 0x3012, lo: 0xb0, hi: 0xbf}, - // Block 0x6b, offset 0x2e6 + // Block 0x6b, offset 0x2e8 {value: 0x0117, lo: 0x80, hi: 0xa3}, {value: 0x0012, lo: 0xa4, hi: 0xa4}, {value: 0x0716, lo: 0xab, hi: 0xac}, {value: 0x0316, lo: 0xad, hi: 0xae}, {value: 0x0024, lo: 0xaf, hi: 0xb1}, {value: 0x0117, lo: 0xb2, hi: 0xb3}, - // Block 0x6c, offset 0x2ec + // Block 0x6c, offset 0x2ee {value: 0x6c52, lo: 0x80, hi: 0x9f}, {value: 0x7052, lo: 0xa0, hi: 0xa5}, {value: 0x7052, lo: 0xa7, hi: 0xa7}, {value: 0x7052, lo: 0xad, hi: 0xad}, {value: 0x0010, lo: 0xb0, hi: 0xbf}, - // Block 0x6d, offset 0x2f1 + // Block 0x6d, offset 0x2f3 {value: 0x0010, lo: 0x80, hi: 0xa7}, {value: 0x0014, lo: 0xaf, hi: 0xaf}, {value: 0x0034, lo: 0xbf, hi: 0xbf}, - // Block 0x6e, offset 0x2f4 + // Block 0x6e, offset 0x2f6 {value: 0x0010, lo: 0x80, hi: 0x96}, {value: 0x0010, lo: 0xa0, hi: 0xa6}, {value: 0x0010, lo: 0xa8, hi: 0xae}, {value: 0x0010, lo: 0xb0, hi: 0xb6}, {value: 0x0010, lo: 0xb8, hi: 0xbe}, - // Block 0x6f, offset 0x2f9 + // Block 0x6f, offset 0x2fb {value: 0x0010, lo: 0x80, hi: 0x86}, {value: 0x0010, lo: 0x88, hi: 0x8e}, {value: 0x0010, lo: 0x90, hi: 0x96}, {value: 0x0010, lo: 0x98, hi: 0x9e}, {value: 0x0024, lo: 0xa0, hi: 0xbf}, - // Block 0x70, offset 0x2fe + // Block 0x70, offset 0x300 {value: 0x0014, lo: 0xaf, hi: 0xaf}, - // Block 0x71, offset 0x2ff + // Block 0x71, offset 0x301 {value: 0x0014, lo: 0x85, hi: 0x85}, {value: 0x0034, lo: 0xaa, hi: 0xad}, {value: 0x0030, lo: 0xae, hi: 0xaf}, {value: 0x0004, lo: 0xb1, hi: 0xb5}, {value: 0x0014, lo: 0xbb, hi: 0xbb}, {value: 0x0010, lo: 0xbc, hi: 0xbc}, - // Block 0x72, offset 0x305 + // Block 0x72, offset 0x307 {value: 0x0034, lo: 0x99, hi: 0x9a}, {value: 0x0004, lo: 0x9b, hi: 0x9e}, - // Block 0x73, offset 0x307 + // Block 0x73, offset 0x309 {value: 0x0004, lo: 0xbc, hi: 0xbe}, - // Block 0x74, offset 0x308 + // Block 0x74, offset 0x30a {value: 0x0010, lo: 0x85, hi: 0xad}, {value: 0x0010, lo: 0xb1, hi: 0xbf}, - // Block 0x75, offset 0x30a + // Block 0x75, offset 0x30c {value: 0x0010, lo: 0x80, hi: 0x8e}, {value: 0x0010, lo: 0xa0, hi: 0xba}, - // Block 0x76, offset 0x30c + // Block 0x76, offset 0x30e {value: 0x0010, lo: 0x80, hi: 0x94}, {value: 0x0014, lo: 0x95, hi: 0x95}, {value: 0x0010, lo: 0x96, hi: 0xbf}, - // Block 0x77, offset 0x30f + // Block 0x77, offset 0x311 {value: 0x0010, lo: 0x80, hi: 0x8c}, - // Block 0x78, offset 0x310 + // Block 0x78, offset 0x312 {value: 0x0010, lo: 0x90, hi: 0xb7}, {value: 0x0014, lo: 0xb8, hi: 0xbd}, - // Block 0x79, offset 0x312 + // Block 0x79, offset 0x314 {value: 0x0010, lo: 0x80, hi: 0x8b}, {value: 0x0014, lo: 0x8c, hi: 0x8c}, {value: 0x0010, lo: 0x90, hi: 0xab}, - // Block 0x7a, offset 0x315 + // Block 0x7a, offset 0x317 {value: 0x0117, lo: 0x80, hi: 0xad}, {value: 0x0010, lo: 0xae, hi: 0xae}, {value: 0x0024, lo: 0xaf, hi: 0xaf}, {value: 0x0014, lo: 0xb0, hi: 0xb2}, {value: 0x0024, lo: 0xb4, hi: 0xbd}, {value: 0x0014, lo: 0xbf, hi: 0xbf}, - // Block 0x7b, offset 0x31b + // Block 0x7b, offset 0x31d {value: 0x0117, lo: 0x80, hi: 0x9b}, {value: 0x0015, lo: 0x9c, hi: 0x9d}, {value: 0x0024, lo: 0x9e, hi: 0x9f}, {value: 0x0010, lo: 0xa0, hi: 0xbf}, - // Block 0x7c, offset 0x31f + // Block 0x7c, offset 0x321 {value: 0x0010, lo: 0x80, hi: 0xaf}, {value: 0x0024, lo: 0xb0, hi: 0xb1}, - // Block 0x7d, offset 0x321 + // Block 0x7d, offset 0x323 {value: 0x0004, lo: 0x80, hi: 0x96}, {value: 0x0014, lo: 0x97, hi: 0x9f}, {value: 0x0004, lo: 0xa0, hi: 0xa1}, {value: 0x0117, lo: 0xa2, hi: 0xaf}, {value: 0x0012, lo: 0xb0, hi: 0xb1}, {value: 0x0117, lo: 0xb2, hi: 0xbf}, - // Block 0x7e, offset 0x327 + // Block 0x7e, offset 0x329 {value: 0x0117, lo: 0x80, hi: 0xaf}, {value: 0x0015, lo: 0xb0, hi: 0xb0}, {value: 0x0012, lo: 0xb1, hi: 0xb8}, @@ -1516,12 +1518,12 @@ var sparseValues = [1360]valueRange{ {value: 0x0716, lo: 0xbb, hi: 0xbc}, {value: 0x8453, lo: 0xbd, hi: 0xbd}, {value: 0x0117, lo: 0xbe, hi: 0xbf}, - // Block 0x7f, offset 0x32e + // Block 0x7f, offset 0x330 {value: 0x0010, lo: 0xb7, hi: 0xb7}, {value: 0x0015, lo: 0xb8, hi: 0xb9}, {value: 0x0012, lo: 0xba, hi: 0xba}, {value: 0x0010, lo: 0xbb, hi: 0xbf}, - // Block 0x80, offset 0x332 + // Block 0x80, offset 0x334 {value: 0x0010, lo: 0x80, hi: 0x81}, {value: 0x0014, lo: 0x82, hi: 0x82}, {value: 0x0010, lo: 0x83, hi: 0x85}, @@ -1531,9 +1533,9 @@ var sparseValues = [1360]valueRange{ {value: 0x0010, lo: 0x8c, hi: 0xa4}, {value: 0x0014, lo: 0xa5, hi: 0xa6}, {value: 0x0010, lo: 0xa7, hi: 0xa7}, - // Block 0x81, offset 0x33b + // Block 0x81, offset 0x33d {value: 0x0010, lo: 0x80, hi: 0xb3}, - // Block 0x82, offset 0x33c + // Block 0x82, offset 0x33e {value: 0x0010, lo: 0x80, hi: 0x83}, {value: 0x0034, lo: 0x84, hi: 0x84}, {value: 0x0014, lo: 0x85, hi: 0x85}, @@ -1542,18 +1544,18 @@ var sparseValues = [1360]valueRange{ {value: 0x0010, lo: 0xb2, hi: 0xb7}, {value: 0x0010, lo: 0xbb, hi: 0xbb}, {value: 0x0010, lo: 0xbd, hi: 0xbd}, - // Block 0x83, offset 0x344 + // Block 0x83, offset 0x346 {value: 0x0010, lo: 0x80, hi: 0xa5}, {value: 0x0014, lo: 0xa6, hi: 0xaa}, {value: 0x0034, lo: 0xab, hi: 0xad}, {value: 0x0010, lo: 0xb0, hi: 0xbf}, - // Block 0x84, offset 0x348 + // Block 0x84, offset 0x34a {value: 0x0010, lo: 0x80, hi: 0x86}, {value: 0x0014, lo: 0x87, hi: 0x91}, {value: 0x0010, lo: 0x92, hi: 0x92}, {value: 0x0030, lo: 0x93, hi: 0x93}, {value: 0x0010, lo: 0xa0, hi: 0xbc}, - // Block 0x85, offset 0x34d + // Block 0x85, offset 0x34f {value: 0x0014, lo: 0x80, hi: 0x82}, {value: 0x0010, lo: 0x83, hi: 0xb2}, {value: 0x0034, lo: 0xb3, hi: 0xb3}, @@ -1562,21 +1564,21 @@ var sparseValues = [1360]valueRange{ {value: 0x0010, lo: 0xba, hi: 0xbb}, {value: 0x0014, lo: 0xbc, hi: 0xbc}, {value: 0x0010, lo: 0xbd, hi: 0xbf}, - // Block 0x86, offset 0x355 + // Block 0x86, offset 0x357 {value: 0x0030, lo: 0x80, hi: 0x80}, {value: 0x0014, lo: 0x8f, hi: 0x8f}, {value: 0x0010, lo: 0x90, hi: 0x99}, {value: 0x0014, lo: 0xa5, hi: 0xa5}, {value: 0x0004, lo: 0xa6, hi: 0xa6}, {value: 0x0010, lo: 0xb0, hi: 0xb9}, - // Block 0x87, offset 0x35b + // Block 0x87, offset 0x35d {value: 0x0010, lo: 0x80, hi: 0xa8}, {value: 0x0014, lo: 0xa9, hi: 0xae}, {value: 0x0010, lo: 0xaf, hi: 0xb0}, {value: 0x0014, lo: 0xb1, hi: 0xb2}, {value: 0x0010, lo: 0xb3, hi: 0xb4}, {value: 0x0014, lo: 0xb5, hi: 0xb6}, - // Block 0x88, offset 0x361 + // Block 0x88, offset 0x363 {value: 0x0010, lo: 0x80, hi: 0x82}, {value: 0x0014, lo: 0x83, hi: 0x83}, {value: 0x0010, lo: 0x84, hi: 0x8b}, @@ -1587,13 +1589,13 @@ var sparseValues = [1360]valueRange{ {value: 0x0010, lo: 0xbb, hi: 0xbb}, {value: 0x0014, lo: 0xbc, hi: 0xbc}, {value: 0x0010, lo: 0xbd, hi: 0xbd}, - // Block 0x89, offset 0x36b + // Block 0x89, offset 0x36d {value: 0x0024, lo: 0xb0, hi: 0xb0}, {value: 0x0024, lo: 0xb2, hi: 0xb3}, {value: 0x0034, lo: 0xb4, hi: 0xb4}, {value: 0x0024, lo: 0xb7, hi: 0xb8}, {value: 0x0024, lo: 0xbe, hi: 0xbf}, - // Block 0x8a, offset 0x370 + // Block 0x8a, offset 0x372 {value: 0x0024, lo: 0x81, hi: 0x81}, {value: 0x0004, lo: 0x9d, hi: 0x9d}, {value: 0x0010, lo: 0xa0, hi: 0xab}, @@ -1603,14 +1605,14 @@ var sparseValues = [1360]valueRange{ {value: 0x0014, lo: 0xb3, hi: 0xb4}, {value: 0x0010, lo: 0xb5, hi: 0xb5}, {value: 0x0034, lo: 0xb6, hi: 0xb6}, - // Block 0x8b, offset 0x379 + // Block 0x8b, offset 0x37b {value: 0x0010, lo: 0x81, hi: 0x86}, {value: 0x0010, lo: 0x89, hi: 0x8e}, {value: 0x0010, lo: 0x91, hi: 0x96}, {value: 0x0010, lo: 0xa0, hi: 0xa6}, {value: 0x0010, lo: 0xa8, hi: 0xae}, {value: 0x0012, lo: 0xb0, hi: 0xbf}, - // Block 0x8c, offset 0x37f + // Block 0x8c, offset 0x381 {value: 0x0012, lo: 0x80, hi: 0x92}, {value: 0xac52, lo: 0x93, hi: 0x93}, {value: 0x0012, lo: 0x94, hi: 0x9a}, @@ -1618,12 +1620,12 @@ var sparseValues = [1360]valueRange{ {value: 0x0015, lo: 0x9c, hi: 0x9f}, {value: 0x0012, lo: 0xa0, hi: 0xa5}, {value: 0x74d2, lo: 0xb0, hi: 0xbf}, - // Block 0x8d, offset 0x386 + // Block 0x8d, offset 0x388 {value: 0x78d2, lo: 0x80, hi: 0x8f}, {value: 0x7cd2, lo: 0x90, hi: 0x9f}, {value: 0x80d2, lo: 0xa0, hi: 0xaf}, {value: 0x7cd2, lo: 0xb0, hi: 0xbf}, - // Block 0x8e, offset 0x38a + // Block 0x8e, offset 0x38c {value: 0x0010, lo: 0x80, hi: 0xa4}, {value: 0x0014, lo: 0xa5, hi: 0xa5}, {value: 0x0010, lo: 0xa6, hi: 0xa7}, @@ -1632,105 +1634,105 @@ var sparseValues = [1360]valueRange{ {value: 0x0010, lo: 0xac, hi: 0xac}, {value: 0x0034, lo: 0xad, hi: 0xad}, {value: 0x0010, lo: 0xb0, hi: 0xb9}, - // Block 0x8f, offset 0x392 + // Block 0x8f, offset 0x394 {value: 0x0010, lo: 0x80, hi: 0xa3}, {value: 0x0010, lo: 0xb0, hi: 0xbf}, - // Block 0x90, offset 0x394 + // Block 0x90, offset 0x396 {value: 0x0010, lo: 0x80, hi: 0x86}, {value: 0x0010, lo: 0x8b, hi: 0xbb}, - // Block 0x91, offset 0x396 + // Block 0x91, offset 0x398 {value: 0x0010, lo: 0x80, hi: 0x81}, {value: 0x0010, lo: 0x83, hi: 0x84}, {value: 0x0010, lo: 0x86, hi: 0xbf}, - // Block 0x92, offset 0x399 + // Block 0x92, offset 0x39b {value: 0x0010, lo: 0x80, hi: 0xb1}, {value: 0x0004, lo: 0xb2, hi: 0xbf}, - // Block 0x93, offset 0x39b + // Block 0x93, offset 0x39d {value: 0x0004, lo: 0x80, hi: 0x81}, {value: 0x0010, lo: 0x93, hi: 0xbf}, - // Block 0x94, offset 0x39d + // Block 0x94, offset 0x39f {value: 0x0010, lo: 0x80, hi: 0xbd}, - // Block 0x95, offset 0x39e + // Block 0x95, offset 0x3a0 {value: 0x0010, lo: 0x90, hi: 0xbf}, - // Block 0x96, offset 0x39f + // Block 0x96, offset 0x3a1 {value: 0x0010, lo: 0x80, hi: 0x8f}, {value: 0x0010, lo: 0x92, hi: 0xbf}, - // Block 0x97, offset 0x3a1 + // Block 0x97, offset 0x3a3 {value: 0x0010, lo: 0x80, hi: 0x87}, {value: 0x0010, lo: 0xb0, hi: 0xbb}, - // Block 0x98, offset 0x3a3 + // Block 0x98, offset 0x3a5 {value: 0x0014, lo: 0x80, hi: 0x8f}, - {value: 0x0054, lo: 0x93, hi: 0x93}, + {value: 0x0014, lo: 0x93, hi: 0x93}, {value: 0x0024, lo: 0xa0, hi: 0xa6}, {value: 0x0034, lo: 0xa7, hi: 0xad}, {value: 0x0024, lo: 0xae, hi: 0xaf}, {value: 0x0010, lo: 0xb3, hi: 0xb4}, - // Block 0x99, offset 0x3a9 + // Block 0x99, offset 0x3ab {value: 0x0010, lo: 0x8d, hi: 0x8f}, - {value: 0x0054, lo: 0x92, hi: 0x92}, - {value: 0x0054, lo: 0x95, hi: 0x95}, + {value: 0x0014, lo: 0x92, hi: 0x92}, + {value: 0x0014, lo: 0x95, hi: 0x95}, {value: 0x0010, lo: 0xb0, hi: 0xb4}, {value: 0x0010, lo: 0xb6, hi: 0xbf}, - // Block 0x9a, offset 0x3ae + // Block 0x9a, offset 0x3b0 {value: 0x0010, lo: 0x80, hi: 0xbc}, {value: 0x0014, lo: 0xbf, hi: 0xbf}, - // Block 0x9b, offset 0x3b0 - {value: 0x0054, lo: 0x87, hi: 0x87}, - {value: 0x0054, lo: 0x8e, hi: 0x8e}, - {value: 0x0054, lo: 0x9a, hi: 0x9a}, + // Block 0x9b, offset 0x3b2 + {value: 0x0014, lo: 0x87, hi: 0x87}, + {value: 0x0014, lo: 0x8e, hi: 0x8e}, + {value: 0x0014, lo: 0x9a, hi: 0x9a}, {value: 0x5f53, lo: 0xa1, hi: 0xba}, {value: 0x0004, lo: 0xbe, hi: 0xbe}, {value: 0x0010, lo: 0xbf, hi: 0xbf}, - // Block 0x9c, offset 0x3b6 + // Block 0x9c, offset 0x3b8 {value: 0x0004, lo: 0x80, hi: 0x80}, {value: 0x5f52, lo: 0x81, hi: 0x9a}, {value: 0x0004, lo: 0xb0, hi: 0xb0}, - // Block 0x9d, offset 0x3b9 + // Block 0x9d, offset 0x3bb {value: 0x0014, lo: 0x9e, hi: 0x9f}, {value: 0x0010, lo: 0xa0, hi: 0xbe}, - // Block 0x9e, offset 0x3bb + // Block 0x9e, offset 0x3bd {value: 0x0010, lo: 0x82, hi: 0x87}, {value: 0x0010, lo: 0x8a, hi: 0x8f}, {value: 0x0010, lo: 0x92, hi: 0x97}, {value: 0x0010, lo: 0x9a, hi: 0x9c}, {value: 0x0004, lo: 0xa3, hi: 0xa3}, {value: 0x0014, lo: 0xb9, hi: 0xbb}, - // Block 0x9f, offset 0x3c1 + // Block 0x9f, offset 0x3c3 {value: 0x0010, lo: 0x80, hi: 0x8b}, {value: 0x0010, lo: 0x8d, hi: 0xa6}, {value: 0x0010, lo: 0xa8, hi: 0xba}, {value: 0x0010, lo: 0xbc, hi: 0xbd}, {value: 0x0010, lo: 0xbf, hi: 0xbf}, - // Block 0xa0, offset 0x3c6 + // Block 0xa0, offset 0x3c8 {value: 0x0010, lo: 0x80, hi: 0x8d}, {value: 0x0010, lo: 0x90, hi: 0x9d}, - // Block 0xa1, offset 0x3c8 + // Block 0xa1, offset 0x3ca {value: 0x0010, lo: 0x80, hi: 0xba}, - // Block 0xa2, offset 0x3c9 + // Block 0xa2, offset 0x3cb {value: 0x0010, lo: 0x80, hi: 0xb4}, - // Block 0xa3, offset 0x3ca + // Block 0xa3, offset 0x3cc {value: 0x0034, lo: 0xbd, hi: 0xbd}, - // Block 0xa4, offset 0x3cb + // Block 0xa4, offset 0x3cd {value: 0x0010, lo: 0x80, hi: 0x9c}, {value: 0x0010, lo: 0xa0, hi: 0xbf}, - // Block 0xa5, offset 0x3cd + // Block 0xa5, offset 0x3cf {value: 0x0010, lo: 0x80, hi: 0x90}, {value: 0x0034, lo: 0xa0, hi: 0xa0}, - // Block 0xa6, offset 0x3cf + // Block 0xa6, offset 0x3d1 {value: 0x0010, lo: 0x80, hi: 0x9f}, {value: 0x0010, lo: 0xb0, hi: 0xbf}, - // Block 0xa7, offset 0x3d1 + // Block 0xa7, offset 0x3d3 {value: 0x0010, lo: 0x80, hi: 0x8a}, {value: 0x0010, lo: 0x90, hi: 0xb5}, {value: 0x0024, lo: 0xb6, hi: 0xba}, - // Block 0xa8, offset 0x3d4 + // Block 0xa8, offset 0x3d6 {value: 0x0010, lo: 0x80, hi: 0x9d}, {value: 0x0010, lo: 0xa0, hi: 0xbf}, - // Block 0xa9, offset 0x3d6 + // Block 0xa9, offset 0x3d8 {value: 0x0010, lo: 0x80, hi: 0x83}, {value: 0x0010, lo: 0x88, hi: 0x8f}, {value: 0x0010, lo: 0x91, hi: 0x95}, - // Block 0xaa, offset 0x3d9 + // Block 0xaa, offset 0x3db {value: 0x2813, lo: 0x80, hi: 0x87}, {value: 0x3813, lo: 0x88, hi: 0x8f}, {value: 0x2813, lo: 0x90, hi: 0x97}, @@ -1739,16 +1741,16 @@ var sparseValues = [1360]valueRange{ {value: 0x2812, lo: 0xa8, hi: 0xaf}, {value: 0x3812, lo: 0xb0, hi: 0xb7}, {value: 0x2812, lo: 0xb8, hi: 0xbf}, - // Block 0xab, offset 0x3e1 + // Block 0xab, offset 0x3e3 {value: 0xaf52, lo: 0x80, hi: 0x87}, {value: 0xb252, lo: 0x88, hi: 0x8f}, {value: 0x0010, lo: 0x90, hi: 0xbf}, - // Block 0xac, offset 0x3e4 + // Block 0xac, offset 0x3e6 {value: 0x0010, lo: 0x80, hi: 0x9d}, {value: 0x0010, lo: 0xa0, hi: 0xa9}, {value: 0xb253, lo: 0xb0, hi: 0xb7}, {value: 0xaf53, lo: 0xb8, hi: 0xbf}, - // Block 0xad, offset 0x3e8 + // Block 0xad, offset 0x3ea {value: 0x2813, lo: 0x80, hi: 0x87}, {value: 0x3813, lo: 0x88, hi: 0x8f}, {value: 0x2813, lo: 0x90, hi: 0x93}, @@ -1757,38 +1759,38 @@ var sparseValues = [1360]valueRange{ {value: 0x2812, lo: 0xa8, hi: 0xaf}, {value: 0x3812, lo: 0xb0, hi: 0xb7}, {value: 0x2812, lo: 0xb8, hi: 0xbb}, - // Block 0xae, offset 0x3f0 + // Block 0xae, offset 0x3f2 {value: 0x0010, lo: 0x80, hi: 0xa7}, {value: 0x0010, lo: 0xb0, hi: 0xbf}, - // Block 0xaf, offset 0x3f2 + // Block 0xaf, offset 0x3f4 {value: 0x0010, lo: 0x80, hi: 0xa3}, - // Block 0xb0, offset 0x3f3 + // Block 0xb0, offset 0x3f5 {value: 0x0010, lo: 0x80, hi: 0xb6}, - // Block 0xb1, offset 0x3f4 + // Block 0xb1, offset 0x3f6 {value: 0x0010, lo: 0x80, hi: 0x95}, {value: 0x0010, lo: 0xa0, hi: 0xa7}, - // Block 0xb2, offset 0x3f6 + // Block 0xb2, offset 0x3f8 {value: 0x0010, lo: 0x80, hi: 0x85}, {value: 0x0010, lo: 0x88, hi: 0x88}, {value: 0x0010, lo: 0x8a, hi: 0xb5}, {value: 0x0010, lo: 0xb7, hi: 0xb8}, {value: 0x0010, lo: 0xbc, hi: 0xbc}, {value: 0x0010, lo: 0xbf, hi: 0xbf}, - // Block 0xb3, offset 0x3fc + // Block 0xb3, offset 0x3fe {value: 0x0010, lo: 0x80, hi: 0x95}, {value: 0x0010, lo: 0xa0, hi: 0xb6}, - // Block 0xb4, offset 0x3fe + // Block 0xb4, offset 0x400 {value: 0x0010, lo: 0x80, hi: 0x9e}, - // Block 0xb5, offset 0x3ff + // Block 0xb5, offset 0x401 {value: 0x0010, lo: 0xa0, hi: 0xb2}, {value: 0x0010, lo: 0xb4, hi: 0xb5}, - // Block 0xb6, offset 0x401 + // Block 0xb6, offset 0x403 {value: 0x0010, lo: 0x80, hi: 0x95}, {value: 0x0010, lo: 0xa0, hi: 0xb9}, - // Block 0xb7, offset 0x403 + // Block 0xb7, offset 0x405 {value: 0x0010, lo: 0x80, hi: 0xb7}, {value: 0x0010, lo: 0xbe, hi: 0xbf}, - // Block 0xb8, offset 0x405 + // Block 0xb8, offset 0x407 {value: 0x0010, lo: 0x80, hi: 0x80}, {value: 0x0014, lo: 0x81, hi: 0x83}, {value: 0x0014, lo: 0x85, hi: 0x86}, @@ -1802,47 +1804,47 @@ var sparseValues = [1360]valueRange{ {value: 0x0024, lo: 0xb8, hi: 0xb8}, {value: 0x0034, lo: 0xb9, hi: 0xba}, {value: 0x0034, lo: 0xbf, hi: 0xbf}, - // Block 0xb9, offset 0x412 + // Block 0xb9, offset 0x414 {value: 0x0010, lo: 0xa0, hi: 0xbc}, - // Block 0xba, offset 0x413 + // Block 0xba, offset 0x415 {value: 0x0010, lo: 0x80, hi: 0x9c}, - // Block 0xbb, offset 0x414 + // Block 0xbb, offset 0x416 {value: 0x0010, lo: 0x80, hi: 0x87}, {value: 0x0010, lo: 0x89, hi: 0xa4}, {value: 0x0024, lo: 0xa5, hi: 0xa5}, {value: 0x0034, lo: 0xa6, hi: 0xa6}, - // Block 0xbc, offset 0x418 + // Block 0xbc, offset 0x41a {value: 0x0010, lo: 0x80, hi: 0x95}, {value: 0x0010, lo: 0xa0, hi: 0xb2}, - // Block 0xbd, offset 0x41a + // Block 0xbd, offset 0x41c {value: 0x0010, lo: 0x80, hi: 0x91}, - // Block 0xbe, offset 0x41b + // Block 0xbe, offset 0x41d {value: 0x0010, lo: 0x80, hi: 0x88}, - // Block 0xbf, offset 0x41c + // Block 0xbf, offset 0x41e {value: 0x5653, lo: 0x80, hi: 0xb2}, - // Block 0xc0, offset 0x41d + // Block 0xc0, offset 0x41f {value: 0x5652, lo: 0x80, hi: 0xb2}, - // Block 0xc1, offset 0x41e + // Block 0xc1, offset 0x420 {value: 0x0010, lo: 0x80, hi: 0x80}, {value: 0x0014, lo: 0x81, hi: 0x81}, {value: 0x0010, lo: 0x82, hi: 0xb7}, {value: 0x0014, lo: 0xb8, hi: 0xbf}, - // Block 0xc2, offset 0x422 + // Block 0xc2, offset 0x424 {value: 0x0014, lo: 0x80, hi: 0x85}, {value: 0x0034, lo: 0x86, hi: 0x86}, {value: 0x0010, lo: 0xa6, hi: 0xaf}, {value: 0x0034, lo: 0xbf, hi: 0xbf}, - // Block 0xc3, offset 0x426 + // Block 0xc3, offset 0x428 {value: 0x0014, lo: 0x80, hi: 0x81}, {value: 0x0010, lo: 0x82, hi: 0xb2}, {value: 0x0014, lo: 0xb3, hi: 0xb6}, {value: 0x0010, lo: 0xb7, hi: 0xb8}, {value: 0x0034, lo: 0xb9, hi: 0xba}, {value: 0x0014, lo: 0xbd, hi: 0xbd}, - // Block 0xc4, offset 0x42c + // Block 0xc4, offset 0x42e {value: 0x0010, lo: 0x90, hi: 0xa8}, {value: 0x0010, lo: 0xb0, hi: 0xb9}, - // Block 0xc5, offset 0x42e + // Block 0xc5, offset 0x430 {value: 0x0024, lo: 0x80, hi: 0x82}, {value: 0x0010, lo: 0x83, hi: 0xa6}, {value: 0x0014, lo: 0xa7, hi: 0xab}, @@ -1850,23 +1852,23 @@ var sparseValues = [1360]valueRange{ {value: 0x0014, lo: 0xad, hi: 0xb2}, {value: 0x0034, lo: 0xb3, hi: 0xb4}, {value: 0x0010, lo: 0xb6, hi: 0xbf}, - // Block 0xc6, offset 0x435 + // Block 0xc6, offset 0x437 {value: 0x0010, lo: 0x90, hi: 0xb2}, {value: 0x0034, lo: 0xb3, hi: 0xb3}, {value: 0x0010, lo: 0xb6, hi: 0xb6}, - // Block 0xc7, offset 0x438 + // Block 0xc7, offset 0x43a {value: 0x0014, lo: 0x80, hi: 0x81}, {value: 0x0010, lo: 0x82, hi: 0xb5}, {value: 0x0014, lo: 0xb6, hi: 0xbe}, {value: 0x0010, lo: 0xbf, hi: 0xbf}, - // Block 0xc8, offset 0x43c + // Block 0xc8, offset 0x43e {value: 0x0030, lo: 0x80, hi: 0x80}, {value: 0x0010, lo: 0x81, hi: 0x84}, {value: 0x0034, lo: 0x8a, hi: 0x8a}, {value: 0x0014, lo: 0x8b, hi: 0x8c}, {value: 0x0010, lo: 0x90, hi: 0x9a}, {value: 0x0010, lo: 0x9c, hi: 0x9c}, - // Block 0xc9, offset 0x442 + // Block 0xc9, offset 0x444 {value: 0x0010, lo: 0x80, hi: 0x91}, {value: 0x0010, lo: 0x93, hi: 0xae}, {value: 0x0014, lo: 0xaf, hi: 0xb1}, @@ -1876,21 +1878,21 @@ var sparseValues = [1360]valueRange{ {value: 0x0034, lo: 0xb6, hi: 0xb6}, {value: 0x0014, lo: 0xb7, hi: 0xb7}, {value: 0x0014, lo: 0xbe, hi: 0xbe}, - // Block 0xca, offset 0x44b + // Block 0xca, offset 0x44d {value: 0x0010, lo: 0x80, hi: 0x86}, {value: 0x0010, lo: 0x88, hi: 0x88}, {value: 0x0010, lo: 0x8a, hi: 0x8d}, {value: 0x0010, lo: 0x8f, hi: 0x9d}, {value: 0x0010, lo: 0x9f, hi: 0xa8}, {value: 0x0010, lo: 0xb0, hi: 0xbf}, - // Block 0xcb, offset 0x451 + // Block 0xcb, offset 0x453 {value: 0x0010, lo: 0x80, hi: 0x9e}, {value: 0x0014, lo: 0x9f, hi: 0x9f}, {value: 0x0010, lo: 0xa0, hi: 0xa2}, {value: 0x0014, lo: 0xa3, hi: 0xa8}, {value: 0x0034, lo: 0xa9, hi: 0xaa}, {value: 0x0010, lo: 0xb0, hi: 0xb9}, - // Block 0xcc, offset 0x457 + // Block 0xcc, offset 0x459 {value: 0x0014, lo: 0x80, hi: 0x81}, {value: 0x0010, lo: 0x82, hi: 0x83}, {value: 0x0010, lo: 0x85, hi: 0x8c}, @@ -1901,7 +1903,7 @@ var sparseValues = [1360]valueRange{ {value: 0x0010, lo: 0xb5, hi: 0xb9}, {value: 0x0034, lo: 0xbc, hi: 0xbc}, {value: 0x0010, lo: 0xbd, hi: 0xbf}, - // Block 0xcd, offset 0x461 + // Block 0xcd, offset 0x463 {value: 0x0014, lo: 0x80, hi: 0x80}, {value: 0x0010, lo: 0x81, hi: 0x84}, {value: 0x0010, lo: 0x87, hi: 0x88}, @@ -1912,10 +1914,10 @@ var sparseValues = [1360]valueRange{ {value: 0x0010, lo: 0x9d, hi: 0xa3}, {value: 0x0024, lo: 0xa6, hi: 0xac}, {value: 0x0024, lo: 0xb0, hi: 0xb4}, - // Block 0xce, offset 0x46b + // Block 0xce, offset 0x46d {value: 0x0010, lo: 0x80, hi: 0xb7}, {value: 0x0014, lo: 0xb8, hi: 0xbf}, - // Block 0xcf, offset 0x46d + // Block 0xcf, offset 0x46f {value: 0x0010, lo: 0x80, hi: 0x81}, {value: 0x0034, lo: 0x82, hi: 0x82}, {value: 0x0014, lo: 0x83, hi: 0x84}, @@ -1923,43 +1925,43 @@ var sparseValues = [1360]valueRange{ {value: 0x0034, lo: 0x86, hi: 0x86}, {value: 0x0010, lo: 0x87, hi: 0x8a}, {value: 0x0010, lo: 0x90, hi: 0x99}, - // Block 0xd0, offset 0x474 + // Block 0xd0, offset 0x476 {value: 0x0010, lo: 0x80, hi: 0xb2}, {value: 0x0014, lo: 0xb3, hi: 0xb8}, {value: 0x0010, lo: 0xb9, hi: 0xb9}, {value: 0x0014, lo: 0xba, hi: 0xba}, {value: 0x0010, lo: 0xbb, hi: 0xbe}, {value: 0x0014, lo: 0xbf, hi: 0xbf}, - // Block 0xd1, offset 0x47a + // Block 0xd1, offset 0x47c {value: 0x0014, lo: 0x80, hi: 0x80}, {value: 0x0010, lo: 0x81, hi: 0x81}, {value: 0x0034, lo: 0x82, hi: 0x83}, {value: 0x0010, lo: 0x84, hi: 0x85}, {value: 0x0010, lo: 0x87, hi: 0x87}, {value: 0x0010, lo: 0x90, hi: 0x99}, - // Block 0xd2, offset 0x480 + // Block 0xd2, offset 0x482 {value: 0x0010, lo: 0x80, hi: 0xb1}, {value: 0x0014, lo: 0xb2, hi: 0xb5}, {value: 0x0010, lo: 0xb8, hi: 0xbb}, {value: 0x0014, lo: 0xbc, hi: 0xbd}, {value: 0x0010, lo: 0xbe, hi: 0xbe}, {value: 0x0034, lo: 0xbf, hi: 0xbf}, - // Block 0xd3, offset 0x486 + // Block 0xd3, offset 0x488 {value: 0x0034, lo: 0x80, hi: 0x80}, {value: 0x0010, lo: 0x98, hi: 0x9b}, {value: 0x0014, lo: 0x9c, hi: 0x9d}, - // Block 0xd4, offset 0x489 + // Block 0xd4, offset 0x48b {value: 0x0010, lo: 0x80, hi: 0xb2}, {value: 0x0014, lo: 0xb3, hi: 0xba}, {value: 0x0010, lo: 0xbb, hi: 0xbc}, {value: 0x0014, lo: 0xbd, hi: 0xbd}, {value: 0x0010, lo: 0xbe, hi: 0xbe}, {value: 0x0034, lo: 0xbf, hi: 0xbf}, - // Block 0xd5, offset 0x48f + // Block 0xd5, offset 0x491 {value: 0x0014, lo: 0x80, hi: 0x80}, {value: 0x0010, lo: 0x84, hi: 0x84}, {value: 0x0010, lo: 0x90, hi: 0x99}, - // Block 0xd6, offset 0x492 + // Block 0xd6, offset 0x494 {value: 0x0010, lo: 0x80, hi: 0xaa}, {value: 0x0014, lo: 0xab, hi: 0xab}, {value: 0x0010, lo: 0xac, hi: 0xac}, @@ -1968,9 +1970,9 @@ var sparseValues = [1360]valueRange{ {value: 0x0014, lo: 0xb0, hi: 0xb5}, {value: 0x0030, lo: 0xb6, hi: 0xb6}, {value: 0x0034, lo: 0xb7, hi: 0xb7}, - // Block 0xd7, offset 0x49a + // Block 0xd7, offset 0x49c {value: 0x0010, lo: 0x80, hi: 0x89}, - // Block 0xd8, offset 0x49b + // Block 0xd8, offset 0x49d {value: 0x0014, lo: 0x9d, hi: 0x9f}, {value: 0x0010, lo: 0xa0, hi: 0xa1}, {value: 0x0014, lo: 0xa2, hi: 0xa5}, @@ -1978,26 +1980,26 @@ var sparseValues = [1360]valueRange{ {value: 0x0014, lo: 0xa7, hi: 0xaa}, {value: 0x0034, lo: 0xab, hi: 0xab}, {value: 0x0010, lo: 0xb0, hi: 0xb9}, - // Block 0xd9, offset 0x4a2 + // Block 0xd9, offset 0x4a4 {value: 0x5f53, lo: 0xa0, hi: 0xbf}, - // Block 0xda, offset 0x4a3 + // Block 0xda, offset 0x4a5 {value: 0x5f52, lo: 0x80, hi: 0x9f}, {value: 0x0010, lo: 0xa0, hi: 0xa9}, {value: 0x0010, lo: 0xbf, hi: 0xbf}, - // Block 0xdb, offset 0x4a6 + // Block 0xdb, offset 0x4a8 {value: 0x0010, lo: 0x80, hi: 0xb8}, - // Block 0xdc, offset 0x4a7 + // Block 0xdc, offset 0x4a9 {value: 0x0010, lo: 0x80, hi: 0x88}, {value: 0x0010, lo: 0x8a, hi: 0xaf}, {value: 0x0014, lo: 0xb0, hi: 0xb6}, {value: 0x0014, lo: 0xb8, hi: 0xbd}, {value: 0x0010, lo: 0xbe, hi: 0xbe}, {value: 0x0034, lo: 0xbf, hi: 0xbf}, - // Block 0xdd, offset 0x4ad + // Block 0xdd, offset 0x4af {value: 0x0010, lo: 0x80, hi: 0x80}, {value: 0x0010, lo: 0x90, hi: 0x99}, {value: 0x0010, lo: 0xb2, hi: 0xbf}, - // Block 0xde, offset 0x4b0 + // Block 0xde, offset 0x4b2 {value: 0x0010, lo: 0x80, hi: 0x8f}, {value: 0x0014, lo: 0x92, hi: 0xa7}, {value: 0x0010, lo: 0xa9, hi: 0xa9}, @@ -2006,69 +2008,69 @@ var sparseValues = [1360]valueRange{ {value: 0x0014, lo: 0xb2, hi: 0xb3}, {value: 0x0010, lo: 0xb4, hi: 0xb4}, {value: 0x0014, lo: 0xb5, hi: 0xb6}, - // Block 0xdf, offset 0x4b8 + // Block 0xdf, offset 0x4ba {value: 0x0010, lo: 0x80, hi: 0x99}, - // Block 0xe0, offset 0x4b9 + // Block 0xe0, offset 0x4bb {value: 0x0010, lo: 0x80, hi: 0xae}, - // Block 0xe1, offset 0x4ba + // Block 0xe1, offset 0x4bc {value: 0x0010, lo: 0x80, hi: 0x83}, - // Block 0xe2, offset 0x4bb + // Block 0xe2, offset 0x4bd {value: 0x0010, lo: 0x80, hi: 0x86}, - // Block 0xe3, offset 0x4bc + // Block 0xe3, offset 0x4be {value: 0x0010, lo: 0x80, hi: 0x9e}, {value: 0x0010, lo: 0xa0, hi: 0xa9}, - // Block 0xe4, offset 0x4be + // Block 0xe4, offset 0x4c0 {value: 0x0010, lo: 0x90, hi: 0xad}, {value: 0x0034, lo: 0xb0, hi: 0xb4}, - // Block 0xe5, offset 0x4c0 + // Block 0xe5, offset 0x4c2 {value: 0x0010, lo: 0x80, hi: 0xaf}, {value: 0x0024, lo: 0xb0, hi: 0xb6}, - // Block 0xe6, offset 0x4c2 + // Block 0xe6, offset 0x4c4 {value: 0x0014, lo: 0x80, hi: 0x83}, {value: 0x0010, lo: 0x90, hi: 0x99}, {value: 0x0010, lo: 0xa3, hi: 0xb7}, {value: 0x0010, lo: 0xbd, hi: 0xbf}, - // Block 0xe7, offset 0x4c6 + // Block 0xe7, offset 0x4c8 {value: 0x0010, lo: 0x80, hi: 0x8f}, - // Block 0xe8, offset 0x4c7 + // Block 0xe8, offset 0x4c9 {value: 0x0010, lo: 0x80, hi: 0x84}, {value: 0x0010, lo: 0x90, hi: 0xbe}, - // Block 0xe9, offset 0x4c9 + // Block 0xe9, offset 0x4cb {value: 0x0014, lo: 0x8f, hi: 0x9f}, - // Block 0xea, offset 0x4ca + // Block 0xea, offset 0x4cc {value: 0x0014, lo: 0xa0, hi: 0xa0}, - // Block 0xeb, offset 0x4cb + // Block 0xeb, offset 0x4cd {value: 0x0010, lo: 0x80, hi: 0xaa}, {value: 0x0010, lo: 0xb0, hi: 0xbc}, - // Block 0xec, offset 0x4cd + // Block 0xec, offset 0x4cf {value: 0x0010, lo: 0x80, hi: 0x88}, {value: 0x0010, lo: 0x90, hi: 0x99}, {value: 0x0014, lo: 0x9d, hi: 0x9d}, {value: 0x0034, lo: 0x9e, hi: 0x9e}, {value: 0x0014, lo: 0xa0, hi: 0xa3}, - // Block 0xed, offset 0x4d2 + // Block 0xed, offset 0x4d4 {value: 0x0030, lo: 0xa5, hi: 0xa6}, {value: 0x0034, lo: 0xa7, hi: 0xa9}, {value: 0x0030, lo: 0xad, hi: 0xb2}, {value: 0x0014, lo: 0xb3, hi: 0xba}, {value: 0x0034, lo: 0xbb, hi: 0xbf}, - // Block 0xee, offset 0x4d7 + // Block 0xee, offset 0x4d9 {value: 0x0034, lo: 0x80, hi: 0x82}, {value: 0x0024, lo: 0x85, hi: 0x89}, {value: 0x0034, lo: 0x8a, hi: 0x8b}, {value: 0x0024, lo: 0xaa, hi: 0xad}, - // Block 0xef, offset 0x4db + // Block 0xef, offset 0x4dd {value: 0x0024, lo: 0x82, hi: 0x84}, - // Block 0xf0, offset 0x4dc + // Block 0xf0, offset 0x4de {value: 0x0013, lo: 0x80, hi: 0x99}, {value: 0x0012, lo: 0x9a, hi: 0xb3}, {value: 0x0013, lo: 0xb4, hi: 0xbf}, - // Block 0xf1, offset 0x4df + // Block 0xf1, offset 0x4e1 {value: 0x0013, lo: 0x80, hi: 0x8d}, {value: 0x0012, lo: 0x8e, hi: 0x94}, {value: 0x0012, lo: 0x96, hi: 0xa7}, {value: 0x0013, lo: 0xa8, hi: 0xbf}, - // Block 0xf2, offset 0x4e3 + // Block 0xf2, offset 0x4e5 {value: 0x0013, lo: 0x80, hi: 0x81}, {value: 0x0012, lo: 0x82, hi: 0x9b}, {value: 0x0013, lo: 0x9c, hi: 0x9c}, @@ -2080,12 +2082,12 @@ var sparseValues = [1360]valueRange{ {value: 0x0012, lo: 0xb6, hi: 0xb9}, {value: 0x0012, lo: 0xbb, hi: 0xbb}, {value: 0x0012, lo: 0xbd, hi: 0xbf}, - // Block 0xf3, offset 0x4ee + // Block 0xf3, offset 0x4f0 {value: 0x0012, lo: 0x80, hi: 0x83}, {value: 0x0012, lo: 0x85, hi: 0x8f}, {value: 0x0013, lo: 0x90, hi: 0xa9}, {value: 0x0012, lo: 0xaa, hi: 0xbf}, - // Block 0xf4, offset 0x4f2 + // Block 0xf4, offset 0x4f4 {value: 0x0012, lo: 0x80, hi: 0x83}, {value: 0x0013, lo: 0x84, hi: 0x85}, {value: 0x0013, lo: 0x87, hi: 0x8a}, @@ -2094,86 +2096,86 @@ var sparseValues = [1360]valueRange{ {value: 0x0012, lo: 0x9e, hi: 0xb7}, {value: 0x0013, lo: 0xb8, hi: 0xb9}, {value: 0x0013, lo: 0xbb, hi: 0xbe}, - // Block 0xf5, offset 0x4fa + // Block 0xf5, offset 0x4fc {value: 0x0013, lo: 0x80, hi: 0x84}, {value: 0x0013, lo: 0x86, hi: 0x86}, {value: 0x0013, lo: 0x8a, hi: 0x90}, {value: 0x0012, lo: 0x92, hi: 0xab}, {value: 0x0013, lo: 0xac, hi: 0xbf}, - // Block 0xf6, offset 0x4ff + // Block 0xf6, offset 0x501 {value: 0x0013, lo: 0x80, hi: 0x85}, {value: 0x0012, lo: 0x86, hi: 0x9f}, {value: 0x0013, lo: 0xa0, hi: 0xb9}, {value: 0x0012, lo: 0xba, hi: 0xbf}, - // Block 0xf7, offset 0x503 + // Block 0xf7, offset 0x505 {value: 0x0012, lo: 0x80, hi: 0x93}, {value: 0x0013, lo: 0x94, hi: 0xad}, {value: 0x0012, lo: 0xae, hi: 0xbf}, - // Block 0xf8, offset 0x506 + // Block 0xf8, offset 0x508 {value: 0x0012, lo: 0x80, hi: 0x87}, {value: 0x0013, lo: 0x88, hi: 0xa1}, {value: 0x0012, lo: 0xa2, hi: 0xbb}, {value: 0x0013, lo: 0xbc, hi: 0xbf}, - // Block 0xf9, offset 0x50a + // Block 0xf9, offset 0x50c {value: 0x0013, lo: 0x80, hi: 0x95}, {value: 0x0012, lo: 0x96, hi: 0xaf}, {value: 0x0013, lo: 0xb0, hi: 0xbf}, - // Block 0xfa, offset 0x50d + // Block 0xfa, offset 0x50f {value: 0x0013, lo: 0x80, hi: 0x89}, {value: 0x0012, lo: 0x8a, hi: 0xa5}, {value: 0x0013, lo: 0xa8, hi: 0xbf}, - // Block 0xfb, offset 0x510 + // Block 0xfb, offset 0x512 {value: 0x0013, lo: 0x80, hi: 0x80}, {value: 0x0012, lo: 0x82, hi: 0x9a}, {value: 0x0012, lo: 0x9c, hi: 0xa1}, {value: 0x0013, lo: 0xa2, hi: 0xba}, {value: 0x0012, lo: 0xbc, hi: 0xbf}, - // Block 0xfc, offset 0x515 + // Block 0xfc, offset 0x517 {value: 0x0012, lo: 0x80, hi: 0x94}, {value: 0x0012, lo: 0x96, hi: 0x9b}, {value: 0x0013, lo: 0x9c, hi: 0xb4}, {value: 0x0012, lo: 0xb6, hi: 0xbf}, - // Block 0xfd, offset 0x519 + // Block 0xfd, offset 0x51b {value: 0x0012, lo: 0x80, hi: 0x8e}, {value: 0x0012, lo: 0x90, hi: 0x95}, {value: 0x0013, lo: 0x96, hi: 0xae}, {value: 0x0012, lo: 0xb0, hi: 0xbf}, - // Block 0xfe, offset 0x51d + // Block 0xfe, offset 0x51f {value: 0x0012, lo: 0x80, hi: 0x88}, {value: 0x0012, lo: 0x8a, hi: 0x8f}, {value: 0x0013, lo: 0x90, hi: 0xa8}, {value: 0x0012, lo: 0xaa, hi: 0xbf}, - // Block 0xff, offset 0x521 + // Block 0xff, offset 0x523 {value: 0x0012, lo: 0x80, hi: 0x82}, {value: 0x0012, lo: 0x84, hi: 0x89}, {value: 0x0017, lo: 0x8a, hi: 0x8b}, {value: 0x0010, lo: 0x8e, hi: 0xbf}, - // Block 0x100, offset 0x525 + // Block 0x100, offset 0x527 {value: 0x0014, lo: 0x80, hi: 0xb6}, {value: 0x0014, lo: 0xbb, hi: 0xbf}, - // Block 0x101, offset 0x527 + // Block 0x101, offset 0x529 {value: 0x0014, lo: 0x80, hi: 0xac}, {value: 0x0014, lo: 0xb5, hi: 0xb5}, - // Block 0x102, offset 0x529 + // Block 0x102, offset 0x52b {value: 0x0014, lo: 0x84, hi: 0x84}, {value: 0x0014, lo: 0x9b, hi: 0x9f}, {value: 0x0014, lo: 0xa1, hi: 0xaf}, - // Block 0x103, offset 0x52c + // Block 0x103, offset 0x52e {value: 0x0024, lo: 0x80, hi: 0x86}, {value: 0x0024, lo: 0x88, hi: 0x98}, {value: 0x0024, lo: 0x9b, hi: 0xa1}, {value: 0x0024, lo: 0xa3, hi: 0xa4}, {value: 0x0024, lo: 0xa6, hi: 0xaa}, - // Block 0x104, offset 0x531 + // Block 0x104, offset 0x533 {value: 0x0010, lo: 0x80, hi: 0x84}, {value: 0x0034, lo: 0x90, hi: 0x96}, - // Block 0x105, offset 0x533 + // Block 0x105, offset 0x535 {value: 0xb552, lo: 0x80, hi: 0x81}, {value: 0xb852, lo: 0x82, hi: 0x83}, {value: 0x0024, lo: 0x84, hi: 0x89}, {value: 0x0034, lo: 0x8a, hi: 0x8a}, {value: 0x0010, lo: 0x90, hi: 0x99}, - // Block 0x106, offset 0x538 + // Block 0x106, offset 0x53a {value: 0x0010, lo: 0x80, hi: 0x83}, {value: 0x0010, lo: 0x85, hi: 0x9f}, {value: 0x0010, lo: 0xa1, hi: 0xa2}, @@ -2183,29 +2185,29 @@ var sparseValues = [1360]valueRange{ {value: 0x0010, lo: 0xb4, hi: 0xb7}, {value: 0x0010, lo: 0xb9, hi: 0xb9}, {value: 0x0010, lo: 0xbb, hi: 0xbb}, - // Block 0x107, offset 0x541 + // Block 0x107, offset 0x543 {value: 0x0010, lo: 0x80, hi: 0x89}, {value: 0x0010, lo: 0x8b, hi: 0x9b}, {value: 0x0010, lo: 0xa1, hi: 0xa3}, {value: 0x0010, lo: 0xa5, hi: 0xa9}, {value: 0x0010, lo: 0xab, hi: 0xbb}, - // Block 0x108, offset 0x546 + // Block 0x108, offset 0x548 {value: 0x0013, lo: 0xb0, hi: 0xbf}, - // Block 0x109, offset 0x547 + // Block 0x109, offset 0x549 {value: 0x0013, lo: 0x80, hi: 0x89}, {value: 0x0013, lo: 0x90, hi: 0xa9}, {value: 0x0013, lo: 0xb0, hi: 0xbf}, - // Block 0x10a, offset 0x54a + // Block 0x10a, offset 0x54c {value: 0x0013, lo: 0x80, hi: 0x89}, - // Block 0x10b, offset 0x54b + // Block 0x10b, offset 0x54d {value: 0x0004, lo: 0xbb, hi: 0xbf}, - // Block 0x10c, offset 0x54c + // Block 0x10c, offset 0x54e {value: 0x0014, lo: 0x81, hi: 0x81}, {value: 0x0014, lo: 0xa0, hi: 0xbf}, - // Block 0x10d, offset 0x54e + // Block 0x10d, offset 0x550 {value: 0x0014, lo: 0x80, hi: 0xbf}, - // Block 0x10e, offset 0x54f + // Block 0x10e, offset 0x551 {value: 0x0014, lo: 0x80, hi: 0xaf}, } -// Total table size 13811 bytes (13KiB); checksum: 4CC48DA3 +// Total table size 13819 bytes (13KiB); checksum: 4CC48DA3 diff --git a/vendor/golang.org/x/text/cases/trieval.go b/vendor/golang.org/x/text/cases/trieval.go index a2edb1057..7f2aa5b01 100644 --- a/vendor/golang.org/x/text/cases/trieval.go +++ b/vendor/golang.org/x/text/cases/trieval.go @@ -22,7 +22,6 @@ package cases // Only 13..8 are used for XOR patterns. // 7 inverseFold (fold to upper, not to lower) // 6 index: interpret the XOR pattern as an index -// or isMid if case mode is cIgnorableUncased. // 5..4 CCC: zero (normal or break), above or other // } // 3 exception: interpret this value as an exception index @@ -45,7 +44,6 @@ const ( ignorableValue = 0x0004 inverseFoldBit = 1 << 7 - isMidBit = 1 << 6 exceptionBit = 1 << 3 exceptionShift = 5 @@ -55,7 +53,7 @@ const ( xorShift = 8 // There is no mapping if all xor bits and the exception bit are zero. - hasMappingMask = 0xff80 | exceptionBit + hasMappingMask = 0xffc0 | exceptionBit ) // The case mode bits encodes the case type of a rune. This includes uncased, @@ -93,6 +91,10 @@ func (c info) isCaseIgnorable() bool { return c&ignorableMask == ignorableValue } +func (c info) isCaseIgnorableAndNonBreakStarter() bool { + return c&(fullCasedMask|cccMask) == (ignorableValue | cccZero) +} + func (c info) isNotCasedAndNotCaseIgnorable() bool { return c&fullCasedMask == 0 } @@ -101,10 +103,6 @@ func (c info) isCaseIgnorableAndNotCased() bool { return c&fullCasedMask == cIgnorableUncased } -func (c info) isMid() bool { - return c&(fullCasedMask|isMidBit) == isMidBit|cIgnorableUncased -} - // The case mapping implementation will need to know about various Canonical // Combining Class (CCC) values. We encode two of these in the trie value: // cccZero (0) and cccAbove (230). If the value is cccOther, it means that diff --git a/vendor/golang.org/x/text/gen.go b/vendor/golang.org/x/text/gen.go index 68976aff2..4ed42b814 100644 --- a/vendor/golang.org/x/text/gen.go +++ b/vendor/golang.org/x/text/gen.go @@ -12,8 +12,6 @@ import ( "bytes" "flag" "fmt" - "go/build" - "io/ioutil" "os" "os/exec" "path/filepath" @@ -28,7 +26,6 @@ import ( var ( verbose = flag.Bool("v", false, "verbose output") force = flag.Bool("force", false, "ignore failing dependencies") - doCore = flag.Bool("core", false, "force an update to core") excludeList = flag.String("exclude", "", "comma-separated list of packages to exclude") @@ -64,7 +61,6 @@ func main() { // variable. This will prevent duplicate downloads and also will enable long // tests, which really need to be run after each generated package. - updateCore := *doCore if gen.UnicodeVersion() != unicode.Version { fmt.Printf("Requested Unicode version %s; core unicode version is %s.\n", gen.UnicodeVersion(), @@ -76,44 +72,24 @@ func main() { if gen.UnicodeVersion() < unicode.Version && !*force { os.Exit(2) } - updateCore = true } - - var unicode = &dependency{} - if updateCore { - fmt.Printf("Updating core to version %s...\n", gen.UnicodeVersion()) - unicode = generate("unicode") - - // Test some users of the unicode packages, especially the ones that - // keep a mirrored table. These may need to be corrected by hand. - generate("regexp", unicode) - generate("strconv", unicode) // mimics Unicode table - generate("strings", unicode) - generate("testing", unicode) // mimics Unicode table - } - var ( - cldr = generate("./unicode/cldr", unicode) - language = generate("./language", cldr) - internal = generate("./internal", unicode, language) - norm = generate("./unicode/norm", unicode) - rangetable = generate("./unicode/rangetable", unicode) - cases = generate("./cases", unicode, norm, language, rangetable) - width = generate("./width", unicode) - bidi = generate("./unicode/bidi", unicode, norm, rangetable) - _ = generate("./secure/precis", unicode, norm, rangetable, cases, width, bidi) - _ = generate("./encoding/htmlindex", unicode, language) - _ = generate("./currency", unicode, cldr, language, internal) - _ = generate("./internal/number", unicode, cldr, language, internal) - _ = generate("./language/display", unicode, cldr, language, internal) - _ = generate("./collate", unicode, norm, cldr, language, rangetable) - _ = generate("./search", unicode, norm, cldr, language, rangetable) + cldr = generate("unicode/cldr") + language = generate("language", cldr) + internal = generate("internal", language) + norm = generate("unicode/norm") + rangetable = generate("unicode/rangetable") + cases = generate("cases", norm, language, rangetable) + width = generate("width") + bidi = generate("unicode/bidi", norm, rangetable) + _ = generate("secure/precis", norm, rangetable, cases, width, bidi) + _ = generate("encoding/htmlindex", language) + _ = generate("currency", cldr, language, internal) + _ = generate("internal/number", cldr, language, internal) + _ = generate("language/display", cldr, language) + _ = generate("collate", norm, cldr, language, rangetable) + _ = generate("search", norm, cldr, language, rangetable) ) - - if updateCore { - copyVendored() - generate("vendor/golang_org/x/net/idna", unicode, norm, width, cases) - } all.Wait() if hasErrors { @@ -157,7 +133,7 @@ func generate(pkg string, deps ...*dependency) *dependency { if *verbose { args = append(args, "-v") } - args = append(args, pkg) + args = append(args, "./"+pkg) cmd := exec.Command(filepath.Join(runtime.GOROOT(), "bin", "go"), args...) w := &bytes.Buffer{} cmd.Stderr = w @@ -187,27 +163,6 @@ func generate(pkg string, deps ...*dependency) *dependency { return &wg } -func copyVendored() { - // Copy the vendored files. Some more may need to be copied in by hand. - dir := filepath.Join(build.Default.GOROOT, "src/vendor/golang_org/x/text") - err := filepath.Walk(dir, func(path string, info os.FileInfo, err error) error { - if info.IsDir() { - return nil - } - b, err := ioutil.ReadFile(path[len(dir)+1:]) - if err != nil { - return err - } - vprintf("=== COPY %s\n", path) - b = bytes.Replace(b, []byte("golang.org"), []byte("golang_org"), -1) - return ioutil.WriteFile(path, b, 0666) - }) - if err != nil { - fmt.Println("Copying vendored files failed:", err) - os.Exit(1) - } -} - func contains(a []string, s string) bool { for _, e := range a { if s == e { diff --git a/vendor/golang.org/x/text/internal/gen.go b/vendor/golang.org/x/text/internal/gen.go deleted file mode 100644 index 1d678af57..000000000 --- a/vendor/golang.org/x/text/internal/gen.go +++ /dev/null @@ -1,52 +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 ignore - -package main - -import ( - "log" - - "golang.org/x/text/internal/gen" - "golang.org/x/text/language" - "golang.org/x/text/unicode/cldr" -) - -func main() { - r := gen.OpenCLDRCoreZip() - defer r.Close() - - d := &cldr.Decoder{} - data, err := d.DecodeZip(r) - if err != nil { - log.Fatalf("DecodeZip: %v", err) - } - - w := gen.NewCodeWriter() - defer w.WriteGoFile("tables.go", "internal") - - // Create parents table. - parents := make([]uint16, language.NumCompactTags) - for _, loc := range data.Locales() { - tag := language.MustParse(loc) - index, ok := language.CompactIndex(tag) - if !ok { - continue - } - parentIndex := 0 // und - for p := tag.Parent(); p != language.Und; p = p.Parent() { - if x, ok := language.CompactIndex(p); ok { - parentIndex = x - break - } - } - parents[index] = uint16(parentIndex) - } - - w.WriteComment(` - Parent maps a compact index of a tag to the compact index of the parent of - this tag.`) - w.WriteVar("Parent", parents) -} diff --git a/vendor/golang.org/x/text/internal/internal.go b/vendor/golang.org/x/text/internal/internal.go deleted file mode 100644 index eac832850..000000000 --- a/vendor/golang.org/x/text/internal/internal.go +++ /dev/null @@ -1,51 +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. - -//go:generate go run gen.go - -// Package internal contains non-exported functionality that are used by -// packages in the text repository. -package internal // import "golang.org/x/text/internal" - -import ( - "sort" - - "golang.org/x/text/language" -) - -// SortTags sorts tags in place. -func SortTags(tags []language.Tag) { - sort.Sort(sorter(tags)) -} - -type sorter []language.Tag - -func (s sorter) Len() int { - return len(s) -} - -func (s sorter) Swap(i, j int) { - s[i], s[j] = s[j], s[i] -} - -func (s sorter) Less(i, j int) bool { - return s[i].String() < s[j].String() -} - -// UniqueTags sorts and filters duplicate tags in place and returns a slice with -// only unique tags. -func UniqueTags(tags []language.Tag) []language.Tag { - if len(tags) <= 1 { - return tags - } - SortTags(tags) - k := 0 - for i := 1; i < len(tags); i++ { - if tags[k].String() < tags[i].String() { - k++ - tags[k] = tags[i] - } - } - return tags[:k+1] -} diff --git a/vendor/golang.org/x/text/internal/match.go b/vendor/golang.org/x/text/internal/match.go deleted file mode 100644 index a67fcaca1..000000000 --- a/vendor/golang.org/x/text/internal/match.go +++ /dev/null @@ -1,67 +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. - -package internal - -// This file contains matchers that implement CLDR inheritance. -// -// See http://unicode.org/reports/tr35/#Locale_Inheritance. -// -// Some of the inheritance described in this document is already handled by -// the cldr package. - -import ( - "golang.org/x/text/language" -) - -// TODO: consider if (some of the) matching algorithm needs to be public after -// getting some feel about what is generic and what is specific. - -// NewInheritanceMatcher returns a matcher that matches based on the inheritance -// chain. -// -// The matcher uses canonicalization and the parent relationship to find a -// match. The resulting match will always be either Und or a language with the -// same language and script as the requested language. It will not match -// languages for which there is understood to be mutual or one-directional -// intelligibility. -// -// A Match will indicate an Exact match if the language matches after -// canonicalization and High if the matched tag is a parent. -func NewInheritanceMatcher(t []language.Tag) *InheritanceMatcher { - tags := &InheritanceMatcher{make(map[language.Tag]int)} - for i, tag := range t { - ct, err := language.All.Canonicalize(tag) - if err != nil { - ct = tag - } - tags.index[ct] = i - } - return tags -} - -type InheritanceMatcher struct { - index map[language.Tag]int -} - -func (m InheritanceMatcher) Match(want ...language.Tag) (language.Tag, int, language.Confidence) { - for _, t := range want { - ct, err := language.All.Canonicalize(t) - if err != nil { - ct = t - } - conf := language.Exact - for { - if index, ok := m.index[ct]; ok { - return ct, index, conf - } - if ct == language.Und { - break - } - ct = ct.Parent() - conf = language.High - } - } - return language.Und, 0, language.No -} diff --git a/vendor/golang.org/x/text/internal/tables.go b/vendor/golang.org/x/text/internal/tables.go deleted file mode 100644 index 5e8f5fa6d..000000000 --- a/vendor/golang.org/x/text/internal/tables.go +++ /dev/null @@ -1,116 +0,0 @@ -// This file was generated by go generate; DO NOT EDIT - -package internal - -// Parent maps a compact index of a tag to the compact index of the parent of -// this tag. -var Parent = []uint16{ // 752 elements - // Entry 0 - 3F - 0x0000, 0x0053, 0x00e5, 0x0000, 0x0003, 0x0003, 0x0000, 0x0006, - 0x0000, 0x0008, 0x0000, 0x000a, 0x0000, 0x000c, 0x000c, 0x000c, - 0x000c, 0x000c, 0x000c, 0x000c, 0x000c, 0x000c, 0x000c, 0x000c, - 0x000c, 0x000c, 0x000c, 0x000c, 0x000c, 0x000c, 0x000c, 0x000c, - 0x000c, 0x000c, 0x000c, 0x000c, 0x000c, 0x000c, 0x000c, 0x000c, - 0x000c, 0x0000, 0x0000, 0x002a, 0x0000, 0x002c, 0x0000, 0x002e, - 0x0000, 0x0000, 0x0031, 0x0030, 0x0030, 0x0000, 0x0035, 0x0000, - 0x0037, 0x0000, 0x0039, 0x0000, 0x003b, 0x0000, 0x003d, 0x0000, - // Entry 40 - 7F - 0x0000, 0x0040, 0x0000, 0x0042, 0x0042, 0x0000, 0x0045, 0x0045, - 0x0000, 0x0048, 0x0000, 0x004a, 0x0000, 0x0000, 0x004d, 0x004c, - 0x004c, 0x0000, 0x0051, 0x0051, 0x0051, 0x0051, 0x0000, 0x0056, - 0x0000, 0x0058, 0x0000, 0x005a, 0x0000, 0x005c, 0x005c, 0x0000, - 0x005f, 0x0000, 0x0061, 0x0000, 0x0063, 0x0000, 0x0065, 0x0065, - 0x0000, 0x0068, 0x0000, 0x006a, 0x006a, 0x006a, 0x006a, 0x006a, - 0x006a, 0x006a, 0x0000, 0x0072, 0x0000, 0x0074, 0x0000, 0x0076, - 0x0000, 0x0000, 0x0079, 0x0000, 0x007b, 0x0000, 0x007d, 0x0000, - // Entry 80 - BF - 0x007f, 0x007f, 0x0000, 0x0082, 0x0082, 0x0000, 0x0085, 0x0086, - 0x0086, 0x0086, 0x0085, 0x0087, 0x0086, 0x0086, 0x0086, 0x0085, - 0x0086, 0x0086, 0x0086, 0x0086, 0x0086, 0x0086, 0x0087, 0x0086, - 0x0086, 0x0086, 0x0086, 0x0087, 0x0086, 0x0087, 0x0086, 0x0086, - 0x0087, 0x0086, 0x0086, 0x0086, 0x0086, 0x0086, 0x0086, 0x0086, - 0x0086, 0x0086, 0x0085, 0x0086, 0x0086, 0x0086, 0x0086, 0x0086, - 0x0086, 0x0086, 0x0086, 0x0086, 0x0086, 0x0086, 0x0086, 0x0086, - 0x0086, 0x0086, 0x0086, 0x0086, 0x0085, 0x0086, 0x0085, 0x0086, - // Entry C0 - FF - 0x0086, 0x0086, 0x0086, 0x0086, 0x0086, 0x0086, 0x0086, 0x0087, - 0x0086, 0x0086, 0x0086, 0x0086, 0x0086, 0x0086, 0x0086, 0x0085, - 0x0086, 0x0086, 0x0086, 0x0086, 0x0086, 0x0087, 0x0086, 0x0086, - 0x0087, 0x0086, 0x0086, 0x0086, 0x0086, 0x0086, 0x0086, 0x0086, - 0x0086, 0x0086, 0x0086, 0x0086, 0x0085, 0x0085, 0x0086, 0x0086, - 0x0085, 0x0086, 0x0086, 0x0086, 0x0086, 0x0086, 0x0000, 0x00ee, - 0x0000, 0x00f0, 0x00f1, 0x00f1, 0x00f1, 0x00f1, 0x00f1, 0x00f1, - 0x00f1, 0x00f1, 0x00f0, 0x00f1, 0x00f0, 0x00f0, 0x00f1, 0x00f1, - // Entry 100 - 13F - 0x00f0, 0x00f1, 0x00f1, 0x00f1, 0x00f1, 0x00f0, 0x00f1, 0x00f1, - 0x00f1, 0x00f1, 0x00f1, 0x00f1, 0x0000, 0x010c, 0x0000, 0x010e, - 0x0000, 0x0110, 0x0000, 0x0112, 0x0112, 0x0000, 0x0115, 0x0115, - 0x0115, 0x0115, 0x0000, 0x011a, 0x0000, 0x011c, 0x0000, 0x011e, - 0x011e, 0x0000, 0x0121, 0x0121, 0x0121, 0x0121, 0x0121, 0x0121, - 0x0121, 0x0121, 0x0121, 0x0121, 0x0121, 0x0121, 0x0121, 0x0121, - 0x0121, 0x0121, 0x0121, 0x0121, 0x0121, 0x0121, 0x0121, 0x0121, - 0x0121, 0x0121, 0x0121, 0x0121, 0x0121, 0x0121, 0x0121, 0x0121, - // Entry 140 - 17F - 0x0121, 0x0121, 0x0121, 0x0121, 0x0121, 0x0121, 0x0121, 0x0121, - 0x0121, 0x0121, 0x0121, 0x0121, 0x0121, 0x0121, 0x0121, 0x0121, - 0x0000, 0x0150, 0x0000, 0x0152, 0x0000, 0x0154, 0x0000, 0x0156, - 0x0000, 0x0158, 0x0000, 0x015a, 0x015a, 0x015a, 0x0000, 0x015e, - 0x0000, 0x0000, 0x0161, 0x0000, 0x0163, 0x0000, 0x0165, 0x0165, - 0x0165, 0x0000, 0x0169, 0x0000, 0x016b, 0x0000, 0x016d, 0x0000, - 0x016f, 0x016f, 0x0000, 0x0172, 0x0000, 0x0174, 0x0000, 0x0176, - 0x0000, 0x0178, 0x0000, 0x017a, 0x0000, 0x017c, 0x0000, 0x017e, - // Entry 180 - 1BF - 0x0000, 0x0180, 0x0180, 0x0180, 0x0000, 0x0000, 0x0185, 0x0000, - 0x0000, 0x0188, 0x0000, 0x018a, 0x0000, 0x0000, 0x018d, 0x0000, - 0x018f, 0x0000, 0x0000, 0x0192, 0x0000, 0x0000, 0x0195, 0x0000, - 0x0197, 0x0000, 0x0199, 0x0000, 0x019b, 0x0000, 0x019d, 0x0000, - 0x019f, 0x0000, 0x01a1, 0x0000, 0x01a3, 0x0000, 0x01a5, 0x0000, - 0x01a7, 0x0000, 0x01a9, 0x01a9, 0x0000, 0x01ac, 0x0000, 0x01ae, - 0x0000, 0x01b0, 0x0000, 0x01b2, 0x0000, 0x01b4, 0x0000, 0x0000, - 0x01b7, 0x0000, 0x01b9, 0x0000, 0x01bb, 0x0000, 0x01bd, 0x0000, - // Entry 1C0 - 1FF - 0x01bf, 0x0000, 0x01c1, 0x0000, 0x01c3, 0x01c3, 0x01c3, 0x01c3, - 0x0000, 0x01c8, 0x0000, 0x01ca, 0x01ca, 0x0000, 0x01cd, 0x0000, - 0x01cf, 0x0000, 0x01d1, 0x0000, 0x01d3, 0x0000, 0x01d5, 0x0000, - 0x01d7, 0x01d7, 0x0000, 0x01da, 0x0000, 0x01dc, 0x0000, 0x01de, - 0x0000, 0x01e0, 0x0000, 0x01e2, 0x0000, 0x01e4, 0x0000, 0x01e6, - 0x0000, 0x01e8, 0x0000, 0x01ea, 0x0000, 0x01ec, 0x01ec, 0x01ec, - 0x0000, 0x01f0, 0x0000, 0x01f2, 0x0000, 0x01f4, 0x0000, 0x01f6, - 0x0000, 0x0000, 0x01f9, 0x0000, 0x01fb, 0x01fb, 0x0000, 0x01fe, - // Entry 200 - 23F - 0x0000, 0x0200, 0x0200, 0x0000, 0x0203, 0x0203, 0x0000, 0x0206, - 0x0206, 0x0206, 0x0206, 0x0206, 0x0206, 0x0206, 0x0000, 0x020e, - 0x0000, 0x0210, 0x0000, 0x0212, 0x0000, 0x0000, 0x0000, 0x0000, - 0x0000, 0x0218, 0x0000, 0x0000, 0x021b, 0x0000, 0x021d, 0x021d, - 0x0000, 0x0220, 0x0000, 0x0222, 0x0222, 0x0000, 0x0000, 0x0226, - 0x0225, 0x0225, 0x0000, 0x0000, 0x022b, 0x0000, 0x022d, 0x0000, - 0x022f, 0x0000, 0x023b, 0x0231, 0x023b, 0x023b, 0x023b, 0x023b, - 0x023b, 0x023b, 0x023b, 0x0231, 0x023b, 0x023b, 0x0000, 0x023e, - // Entry 240 - 27F - 0x023e, 0x023e, 0x0000, 0x0242, 0x0000, 0x0244, 0x0000, 0x0246, - 0x0246, 0x0000, 0x0249, 0x0000, 0x024b, 0x024b, 0x024b, 0x024b, - 0x024b, 0x024b, 0x0000, 0x0252, 0x0000, 0x0254, 0x0000, 0x0256, - 0x0000, 0x0258, 0x0000, 0x025a, 0x0000, 0x0000, 0x025d, 0x025d, - 0x025d, 0x0000, 0x0261, 0x0000, 0x0263, 0x0000, 0x0265, 0x0000, - 0x0000, 0x0268, 0x0267, 0x0267, 0x0000, 0x026c, 0x0000, 0x026e, - 0x0000, 0x0270, 0x0000, 0x0000, 0x0000, 0x0000, 0x0275, 0x0000, - 0x0000, 0x0278, 0x0000, 0x027a, 0x027a, 0x027a, 0x027a, 0x0000, - // Entry 280 - 2BF - 0x027f, 0x027f, 0x027f, 0x0000, 0x0283, 0x0283, 0x0283, 0x0283, - 0x0283, 0x0000, 0x0289, 0x0289, 0x0289, 0x0289, 0x0000, 0x0000, - 0x0000, 0x0000, 0x0291, 0x0291, 0x0291, 0x0000, 0x0295, 0x0295, - 0x0295, 0x0295, 0x0000, 0x0000, 0x029b, 0x029b, 0x029b, 0x029b, - 0x0000, 0x02a0, 0x0000, 0x02a2, 0x02a2, 0x0000, 0x02a5, 0x0000, - 0x02a7, 0x02a7, 0x0000, 0x0000, 0x02ab, 0x0000, 0x0000, 0x02ae, - 0x0000, 0x02b0, 0x02b0, 0x0000, 0x0000, 0x02b4, 0x0000, 0x02b6, - 0x0000, 0x02b8, 0x0000, 0x02ba, 0x0000, 0x02bc, 0x02bc, 0x0000, - // Entry 2C0 - 2FF - 0x0000, 0x02c0, 0x0000, 0x02c2, 0x02bf, 0x02bf, 0x0000, 0x0000, - 0x02c7, 0x02c6, 0x02c6, 0x0000, 0x0000, 0x02cc, 0x0000, 0x02ce, - 0x0000, 0x02d0, 0x0000, 0x0000, 0x02d3, 0x0000, 0x0000, 0x0000, - 0x02d7, 0x0000, 0x02d9, 0x0000, 0x02db, 0x0000, 0x02dd, 0x02dd, - 0x0000, 0x02e0, 0x0000, 0x02e2, 0x0000, 0x02e4, 0x02e4, 0x02e4, - 0x02e4, 0x02e4, 0x0000, 0x02ea, 0x02eb, 0x02ea, 0x0000, 0x02ee, -} // Size: 1528 bytes - -// Total table size 1528 bytes (1KiB); checksum: B99CF952 diff --git a/vendor/golang.org/x/text/language/index.go b/vendor/golang.org/x/text/language/index.go index 50c752186..7fa9cc82d 100644 --- a/vendor/golang.org/x/text/language/index.go +++ b/vendor/golang.org/x/text/language/index.go @@ -4,764 +4,759 @@ package language // NumCompactTags is the number of common tags. The maximum tag is // NumCompactTags-1. -const NumCompactTags = 752 +const NumCompactTags = 747 var specialTags = []Tag{ // 2 elements - 0: {lang: 0xd5, region: 0x6d, script: 0x0, pVariant: 0x5, pExt: 0xe, str: "ca-ES-valencia"}, - 1: {lang: 0x134, region: 0x134, script: 0x0, pVariant: 0x5, pExt: 0x5, str: "en-US-u-va-posix"}, + 0: {lang: 0x61, region: 0x6d, script: 0x0, pVariant: 0x5, pExt: 0xe, str: "ca-ES-valencia"}, + 1: {lang: 0x9b, region: 0x132, script: 0x0, pVariant: 0x5, pExt: 0x5, str: "en-US-u-va-posix"}, } // Size: 72 bytes var coreTags = map[uint32]uint16{ 0x0: 0, // und - 0x01500000: 3, // af - 0x015000d1: 4, // af-NA - 0x01500160: 5, // af-ZA - 0x01b00000: 6, // agq - 0x01b00051: 7, // agq-CM - 0x02000000: 8, // ak - 0x0200007f: 9, // ak-GH - 0x02600000: 10, // am - 0x0260006e: 11, // am-ET - 0x03900000: 12, // ar - 0x03900001: 13, // ar-001 - 0x03900022: 14, // ar-AE - 0x03900038: 15, // ar-BH - 0x03900061: 16, // ar-DJ - 0x03900066: 17, // ar-DZ - 0x0390006a: 18, // ar-EG - 0x0390006b: 19, // ar-EH - 0x0390006c: 20, // ar-ER - 0x03900096: 21, // ar-IL - 0x0390009a: 22, // ar-IQ - 0x039000a0: 23, // ar-JO - 0x039000a7: 24, // ar-KM - 0x039000ab: 25, // ar-KW - 0x039000af: 26, // ar-LB - 0x039000b8: 27, // ar-LY - 0x039000b9: 28, // ar-MA - 0x039000c8: 29, // ar-MR - 0x039000e0: 30, // ar-OM - 0x039000ec: 31, // ar-PS - 0x039000f2: 32, // ar-QA - 0x03900107: 33, // ar-SA - 0x0390010a: 34, // ar-SD - 0x03900114: 35, // ar-SO - 0x03900116: 36, // ar-SS - 0x0390011b: 37, // ar-SY - 0x0390011f: 38, // ar-TD - 0x03900127: 39, // ar-TN - 0x0390015d: 40, // ar-YE - 0x03f00000: 41, // ars - 0x04200000: 42, // as - 0x04200098: 43, // as-IN - 0x04300000: 44, // asa - 0x0430012e: 45, // asa-TZ - 0x04700000: 46, // ast - 0x0470006d: 47, // ast-ES - 0x05700000: 48, // az - 0x0571e000: 49, // az-Cyrl - 0x0571e031: 50, // az-Cyrl-AZ - 0x05752000: 51, // az-Latn - 0x05752031: 52, // az-Latn-AZ - 0x05d00000: 53, // bas - 0x05d00051: 54, // bas-CM - 0x07000000: 55, // be - 0x07000046: 56, // be-BY - 0x07400000: 57, // bem - 0x07400161: 58, // bem-ZM - 0x07800000: 59, // bez - 0x0780012e: 60, // bez-TZ - 0x07d00000: 61, // bg - 0x07d00037: 62, // bg-BG - 0x08100000: 63, // bh - 0x09e00000: 64, // bm - 0x09e000c2: 65, // bm-ML - 0x0a300000: 66, // bn - 0x0a300034: 67, // bn-BD - 0x0a300098: 68, // bn-IN - 0x0a700000: 69, // bo - 0x0a700052: 70, // bo-CN - 0x0a700098: 71, // bo-IN - 0x0b000000: 72, // br - 0x0b000077: 73, // br-FR - 0x0b300000: 74, // brx - 0x0b300098: 75, // brx-IN - 0x0b500000: 76, // bs - 0x0b51e000: 77, // bs-Cyrl - 0x0b51e032: 78, // bs-Cyrl-BA - 0x0b552000: 79, // bs-Latn - 0x0b552032: 80, // bs-Latn-BA - 0x0d500000: 81, // ca - 0x0d500021: 82, // ca-AD - 0x0d50006d: 83, // ca-ES - 0x0d500077: 84, // ca-FR - 0x0d50009d: 85, // ca-IT - 0x0da00000: 86, // ce - 0x0da00105: 87, // ce-RU - 0x0dd00000: 88, // cgg - 0x0dd00130: 89, // cgg-UG - 0x0e300000: 90, // chr - 0x0e300134: 91, // chr-US - 0x0e700000: 92, // ckb - 0x0e70009a: 93, // ckb-IQ - 0x0e70009b: 94, // ckb-IR - 0x0f600000: 95, // cs - 0x0f60005d: 96, // cs-CZ - 0x0fa00000: 97, // cu - 0x0fa00105: 98, // cu-RU - 0x0fc00000: 99, // cy - 0x0fc0007a: 100, // cy-GB - 0x0fd00000: 101, // da - 0x0fd00062: 102, // da-DK - 0x0fd00081: 103, // da-GL - 0x10400000: 104, // dav - 0x104000a3: 105, // dav-KE - 0x10900000: 106, // de - 0x1090002d: 107, // de-AT - 0x10900035: 108, // de-BE - 0x1090004d: 109, // de-CH - 0x1090005f: 110, // de-DE - 0x1090009d: 111, // de-IT - 0x109000b1: 112, // de-LI - 0x109000b6: 113, // de-LU - 0x11300000: 114, // dje - 0x113000d3: 115, // dje-NE - 0x11b00000: 116, // dsb - 0x11b0005f: 117, // dsb-DE - 0x12000000: 118, // dua - 0x12000051: 119, // dua-CM - 0x12400000: 120, // dv - 0x12700000: 121, // dyo - 0x12700113: 122, // dyo-SN - 0x12900000: 123, // dz - 0x12900042: 124, // dz-BT - 0x12b00000: 125, // ebu - 0x12b000a3: 126, // ebu-KE - 0x12c00000: 127, // ee - 0x12c0007f: 128, // ee-GH - 0x12c00121: 129, // ee-TG - 0x13100000: 130, // el - 0x1310005c: 131, // el-CY - 0x13100086: 132, // el-GR - 0x13400000: 133, // en - 0x13400001: 134, // en-001 - 0x1340001a: 135, // en-150 - 0x13400024: 136, // en-AG - 0x13400025: 137, // en-AI - 0x1340002c: 138, // en-AS - 0x1340002d: 139, // en-AT - 0x1340002e: 140, // en-AU - 0x13400033: 141, // en-BB - 0x13400035: 142, // en-BE - 0x13400039: 143, // en-BI - 0x1340003c: 144, // en-BM - 0x13400041: 145, // en-BS - 0x13400045: 146, // en-BW - 0x13400047: 147, // en-BZ - 0x13400048: 148, // en-CA - 0x13400049: 149, // en-CC - 0x1340004d: 150, // en-CH - 0x1340004f: 151, // en-CK - 0x13400051: 152, // en-CM - 0x1340005b: 153, // en-CX - 0x1340005c: 154, // en-CY - 0x1340005f: 155, // en-DE - 0x13400060: 156, // en-DG - 0x13400062: 157, // en-DK - 0x13400063: 158, // en-DM - 0x1340006c: 159, // en-ER - 0x13400071: 160, // en-FI - 0x13400072: 161, // en-FJ - 0x13400073: 162, // en-FK - 0x13400074: 163, // en-FM - 0x1340007a: 164, // en-GB - 0x1340007b: 165, // en-GD - 0x1340007e: 166, // en-GG - 0x1340007f: 167, // en-GH - 0x13400080: 168, // en-GI - 0x13400082: 169, // en-GM - 0x13400089: 170, // en-GU - 0x1340008b: 171, // en-GY - 0x1340008c: 172, // en-HK - 0x13400095: 173, // en-IE - 0x13400096: 174, // en-IL - 0x13400097: 175, // en-IM - 0x13400098: 176, // en-IN - 0x13400099: 177, // en-IO - 0x1340009e: 178, // en-JE - 0x1340009f: 179, // en-JM - 0x134000a3: 180, // en-KE - 0x134000a6: 181, // en-KI - 0x134000a8: 182, // en-KN - 0x134000ac: 183, // en-KY - 0x134000b0: 184, // en-LC - 0x134000b3: 185, // en-LR - 0x134000b4: 186, // en-LS - 0x134000be: 187, // en-MG - 0x134000bf: 188, // en-MH - 0x134000c5: 189, // en-MO - 0x134000c6: 190, // en-MP - 0x134000c9: 191, // en-MS - 0x134000ca: 192, // en-MT - 0x134000cb: 193, // en-MU - 0x134000cd: 194, // en-MW - 0x134000cf: 195, // en-MY - 0x134000d1: 196, // en-NA - 0x134000d4: 197, // en-NF - 0x134000d5: 198, // en-NG - 0x134000d8: 199, // en-NL - 0x134000dc: 200, // en-NR - 0x134000de: 201, // en-NU - 0x134000df: 202, // en-NZ - 0x134000e5: 203, // en-PG - 0x134000e6: 204, // en-PH - 0x134000e7: 205, // en-PK - 0x134000ea: 206, // en-PN - 0x134000eb: 207, // en-PR - 0x134000ef: 208, // en-PW - 0x13400106: 209, // en-RW - 0x13400108: 210, // en-SB - 0x13400109: 211, // en-SC - 0x1340010a: 212, // en-SD - 0x1340010b: 213, // en-SE - 0x1340010c: 214, // en-SG - 0x1340010d: 215, // en-SH - 0x1340010e: 216, // en-SI - 0x13400111: 217, // en-SL - 0x13400116: 218, // en-SS - 0x1340011a: 219, // en-SX - 0x1340011c: 220, // en-SZ - 0x1340011e: 221, // en-TC - 0x13400124: 222, // en-TK - 0x13400128: 223, // en-TO - 0x1340012b: 224, // en-TT - 0x1340012c: 225, // en-TV - 0x1340012e: 226, // en-TZ - 0x13400130: 227, // en-UG - 0x13400132: 228, // en-UM - 0x13400134: 229, // en-US - 0x13400138: 230, // en-VC - 0x1340013b: 231, // en-VG - 0x1340013c: 232, // en-VI - 0x1340013e: 233, // en-VU - 0x13400141: 234, // en-WS - 0x13400160: 235, // en-ZA - 0x13400161: 236, // en-ZM - 0x13400163: 237, // en-ZW - 0x13700000: 238, // eo - 0x13700001: 239, // eo-001 - 0x13900000: 240, // es - 0x1390001e: 241, // es-419 - 0x1390002b: 242, // es-AR - 0x1390003e: 243, // es-BO - 0x13900040: 244, // es-BR - 0x13900050: 245, // es-CL - 0x13900053: 246, // es-CO - 0x13900055: 247, // es-CR - 0x13900058: 248, // es-CU - 0x13900064: 249, // es-DO - 0x13900067: 250, // es-EA - 0x13900068: 251, // es-EC - 0x1390006d: 252, // es-ES - 0x13900085: 253, // es-GQ - 0x13900088: 254, // es-GT - 0x1390008e: 255, // es-HN - 0x13900093: 256, // es-IC - 0x139000ce: 257, // es-MX - 0x139000d7: 258, // es-NI - 0x139000e1: 259, // es-PA - 0x139000e3: 260, // es-PE - 0x139000e6: 261, // es-PH - 0x139000eb: 262, // es-PR - 0x139000f0: 263, // es-PY - 0x13900119: 264, // es-SV - 0x13900134: 265, // es-US - 0x13900135: 266, // es-UY - 0x1390013a: 267, // es-VE - 0x13b00000: 268, // et - 0x13b00069: 269, // et-EE - 0x14000000: 270, // eu - 0x1400006d: 271, // eu-ES - 0x14100000: 272, // ewo - 0x14100051: 273, // ewo-CM - 0x14300000: 274, // fa - 0x14300023: 275, // fa-AF - 0x1430009b: 276, // fa-IR - 0x14900000: 277, // ff - 0x14900051: 278, // ff-CM - 0x14900083: 279, // ff-GN - 0x149000c8: 280, // ff-MR - 0x14900113: 281, // ff-SN - 0x14c00000: 282, // fi - 0x14c00071: 283, // fi-FI - 0x14e00000: 284, // fil - 0x14e000e6: 285, // fil-PH - 0x15300000: 286, // fo - 0x15300062: 287, // fo-DK - 0x15300075: 288, // fo-FO - 0x15900000: 289, // fr - 0x15900035: 290, // fr-BE - 0x15900036: 291, // fr-BF - 0x15900039: 292, // fr-BI - 0x1590003a: 293, // fr-BJ - 0x1590003b: 294, // fr-BL - 0x15900048: 295, // fr-CA - 0x1590004a: 296, // fr-CD - 0x1590004b: 297, // fr-CF - 0x1590004c: 298, // fr-CG - 0x1590004d: 299, // fr-CH - 0x1590004e: 300, // fr-CI - 0x15900051: 301, // fr-CM - 0x15900061: 302, // fr-DJ - 0x15900066: 303, // fr-DZ - 0x15900077: 304, // fr-FR - 0x15900079: 305, // fr-GA - 0x1590007d: 306, // fr-GF - 0x15900083: 307, // fr-GN - 0x15900084: 308, // fr-GP - 0x15900085: 309, // fr-GQ - 0x15900090: 310, // fr-HT - 0x159000a7: 311, // fr-KM - 0x159000b6: 312, // fr-LU - 0x159000b9: 313, // fr-MA - 0x159000ba: 314, // fr-MC - 0x159000bd: 315, // fr-MF - 0x159000be: 316, // fr-MG - 0x159000c2: 317, // fr-ML - 0x159000c7: 318, // fr-MQ - 0x159000c8: 319, // fr-MR - 0x159000cb: 320, // fr-MU - 0x159000d2: 321, // fr-NC - 0x159000d3: 322, // fr-NE - 0x159000e4: 323, // fr-PF - 0x159000e9: 324, // fr-PM - 0x15900101: 325, // fr-RE - 0x15900106: 326, // fr-RW - 0x15900109: 327, // fr-SC - 0x15900113: 328, // fr-SN - 0x1590011b: 329, // fr-SY - 0x1590011f: 330, // fr-TD - 0x15900121: 331, // fr-TG - 0x15900127: 332, // fr-TN - 0x1590013e: 333, // fr-VU - 0x1590013f: 334, // fr-WF - 0x1590015e: 335, // fr-YT - 0x16400000: 336, // fur - 0x1640009d: 337, // fur-IT - 0x16800000: 338, // fy - 0x168000d8: 339, // fy-NL - 0x16900000: 340, // ga - 0x16900095: 341, // ga-IE - 0x17800000: 342, // gd - 0x1780007a: 343, // gd-GB - 0x18a00000: 344, // gl - 0x18a0006d: 345, // gl-ES - 0x19c00000: 346, // gsw - 0x19c0004d: 347, // gsw-CH - 0x19c00077: 348, // gsw-FR - 0x19c000b1: 349, // gsw-LI - 0x19d00000: 350, // gu - 0x19d00098: 351, // gu-IN - 0x1a200000: 352, // guw - 0x1a400000: 353, // guz - 0x1a4000a3: 354, // guz-KE - 0x1a500000: 355, // gv - 0x1a500097: 356, // gv-IM - 0x1ad00000: 357, // ha - 0x1ad0007f: 358, // ha-GH - 0x1ad000d3: 359, // ha-NE - 0x1ad000d5: 360, // ha-NG - 0x1b100000: 361, // haw - 0x1b100134: 362, // haw-US - 0x1b500000: 363, // he - 0x1b500096: 364, // he-IL - 0x1b700000: 365, // hi - 0x1b700098: 366, // hi-IN - 0x1ca00000: 367, // hr - 0x1ca00032: 368, // hr-BA - 0x1ca0008f: 369, // hr-HR - 0x1cb00000: 370, // hsb - 0x1cb0005f: 371, // hsb-DE - 0x1ce00000: 372, // hu - 0x1ce00091: 373, // hu-HU - 0x1d000000: 374, // hy - 0x1d000027: 375, // hy-AM - 0x1da00000: 376, // id - 0x1da00094: 377, // id-ID - 0x1df00000: 378, // ig - 0x1df000d5: 379, // ig-NG - 0x1e200000: 380, // ii - 0x1e200052: 381, // ii-CN - 0x1f000000: 382, // is - 0x1f00009c: 383, // is-IS - 0x1f100000: 384, // it - 0x1f10004d: 385, // it-CH - 0x1f10009d: 386, // it-IT - 0x1f100112: 387, // it-SM - 0x1f200000: 388, // iu - 0x1f800000: 389, // ja - 0x1f8000a1: 390, // ja-JP - 0x1fb00000: 391, // jbo - 0x1ff00000: 392, // jgo - 0x1ff00051: 393, // jgo-CM - 0x20200000: 394, // jmc - 0x2020012e: 395, // jmc-TZ - 0x20600000: 396, // jv - 0x20800000: 397, // ka - 0x2080007c: 398, // ka-GE - 0x20a00000: 399, // kab - 0x20a00066: 400, // kab-DZ - 0x20e00000: 401, // kaj - 0x20f00000: 402, // kam - 0x20f000a3: 403, // kam-KE - 0x21700000: 404, // kcg - 0x21b00000: 405, // kde - 0x21b0012e: 406, // kde-TZ - 0x21f00000: 407, // kea - 0x21f00059: 408, // kea-CV - 0x22c00000: 409, // khq - 0x22c000c2: 410, // khq-ML - 0x23100000: 411, // ki - 0x231000a3: 412, // ki-KE - 0x23a00000: 413, // kk - 0x23a000ad: 414, // kk-KZ - 0x23c00000: 415, // kkj - 0x23c00051: 416, // kkj-CM - 0x23d00000: 417, // kl - 0x23d00081: 418, // kl-GL - 0x23e00000: 419, // kln - 0x23e000a3: 420, // kln-KE - 0x24200000: 421, // km - 0x242000a5: 422, // km-KH - 0x24900000: 423, // kn - 0x24900098: 424, // kn-IN - 0x24b00000: 425, // ko - 0x24b000a9: 426, // ko-KP - 0x24b000aa: 427, // ko-KR - 0x24d00000: 428, // kok - 0x24d00098: 429, // kok-IN - 0x26100000: 430, // ks - 0x26100098: 431, // ks-IN - 0x26200000: 432, // ksb - 0x2620012e: 433, // ksb-TZ - 0x26400000: 434, // ksf - 0x26400051: 435, // ksf-CM - 0x26500000: 436, // ksh - 0x2650005f: 437, // ksh-DE - 0x26b00000: 438, // ku - 0x27800000: 439, // kw - 0x2780007a: 440, // kw-GB - 0x28100000: 441, // ky - 0x281000a4: 442, // ky-KG - 0x28800000: 443, // lag - 0x2880012e: 444, // lag-TZ - 0x28c00000: 445, // lb - 0x28c000b6: 446, // lb-LU - 0x29a00000: 447, // lg - 0x29a00130: 448, // lg-UG - 0x2a600000: 449, // lkt - 0x2a600134: 450, // lkt-US - 0x2ac00000: 451, // ln - 0x2ac00029: 452, // ln-AO - 0x2ac0004a: 453, // ln-CD - 0x2ac0004b: 454, // ln-CF - 0x2ac0004c: 455, // ln-CG - 0x2af00000: 456, // lo - 0x2af000ae: 457, // lo-LA - 0x2b600000: 458, // lrc - 0x2b60009a: 459, // lrc-IQ - 0x2b60009b: 460, // lrc-IR - 0x2b700000: 461, // lt - 0x2b7000b5: 462, // lt-LT - 0x2b900000: 463, // lu - 0x2b90004a: 464, // lu-CD - 0x2bb00000: 465, // luo - 0x2bb000a3: 466, // luo-KE - 0x2bc00000: 467, // luy - 0x2bc000a3: 468, // luy-KE - 0x2be00000: 469, // lv - 0x2be000b7: 470, // lv-LV - 0x2c800000: 471, // mas - 0x2c8000a3: 472, // mas-KE - 0x2c80012e: 473, // mas-TZ - 0x2e000000: 474, // mer - 0x2e0000a3: 475, // mer-KE - 0x2e400000: 476, // mfe - 0x2e4000cb: 477, // mfe-MU - 0x2e800000: 478, // mg - 0x2e8000be: 479, // mg-MG - 0x2e900000: 480, // mgh - 0x2e9000d0: 481, // mgh-MZ - 0x2eb00000: 482, // mgo - 0x2eb00051: 483, // mgo-CM - 0x2f600000: 484, // mk - 0x2f6000c1: 485, // mk-MK - 0x2fb00000: 486, // ml - 0x2fb00098: 487, // ml-IN - 0x30200000: 488, // mn - 0x302000c4: 489, // mn-MN - 0x31200000: 490, // mr - 0x31200098: 491, // mr-IN - 0x31600000: 492, // ms - 0x3160003d: 493, // ms-BN - 0x316000cf: 494, // ms-MY - 0x3160010c: 495, // ms-SG - 0x31700000: 496, // mt - 0x317000ca: 497, // mt-MT - 0x31c00000: 498, // mua - 0x31c00051: 499, // mua-CM - 0x32800000: 500, // my - 0x328000c3: 501, // my-MM - 0x33100000: 502, // mzn - 0x3310009b: 503, // mzn-IR - 0x33800000: 504, // nah - 0x33c00000: 505, // naq - 0x33c000d1: 506, // naq-NA - 0x33e00000: 507, // nb - 0x33e000d9: 508, // nb-NO - 0x33e0010f: 509, // nb-SJ - 0x34500000: 510, // nd - 0x34500163: 511, // nd-ZW - 0x34700000: 512, // nds - 0x3470005f: 513, // nds-DE - 0x347000d8: 514, // nds-NL - 0x34800000: 515, // ne - 0x34800098: 516, // ne-IN - 0x348000da: 517, // ne-NP - 0x35e00000: 518, // nl - 0x35e0002f: 519, // nl-AW - 0x35e00035: 520, // nl-BE - 0x35e0003f: 521, // nl-BQ - 0x35e0005a: 522, // nl-CW - 0x35e000d8: 523, // nl-NL - 0x35e00115: 524, // nl-SR - 0x35e0011a: 525, // nl-SX - 0x35f00000: 526, // nmg - 0x35f00051: 527, // nmg-CM - 0x36100000: 528, // nn - 0x361000d9: 529, // nn-NO - 0x36300000: 530, // nnh - 0x36300051: 531, // nnh-CM - 0x36600000: 532, // no - 0x36c00000: 533, // nqo - 0x36d00000: 534, // nr - 0x37100000: 535, // nso - 0x37700000: 536, // nus - 0x37700116: 537, // nus-SS - 0x37e00000: 538, // ny - 0x38000000: 539, // nyn - 0x38000130: 540, // nyn-UG - 0x38700000: 541, // om - 0x3870006e: 542, // om-ET - 0x387000a3: 543, // om-KE - 0x38c00000: 544, // or - 0x38c00098: 545, // or-IN - 0x38f00000: 546, // os - 0x38f0007c: 547, // os-GE - 0x38f00105: 548, // os-RU - 0x39400000: 549, // pa - 0x39405000: 550, // pa-Arab - 0x394050e7: 551, // pa-Arab-PK - 0x3942f000: 552, // pa-Guru - 0x3942f098: 553, // pa-Guru-IN - 0x39800000: 554, // pap - 0x3aa00000: 555, // pl - 0x3aa000e8: 556, // pl-PL - 0x3b400000: 557, // prg - 0x3b400001: 558, // prg-001 - 0x3b500000: 559, // ps - 0x3b500023: 560, // ps-AF - 0x3b700000: 561, // pt - 0x3b700029: 562, // pt-AO - 0x3b700040: 563, // pt-BR - 0x3b70004d: 564, // pt-CH - 0x3b700059: 565, // pt-CV - 0x3b700085: 566, // pt-GQ - 0x3b70008a: 567, // pt-GW - 0x3b7000b6: 568, // pt-LU - 0x3b7000c5: 569, // pt-MO - 0x3b7000d0: 570, // pt-MZ - 0x3b7000ed: 571, // pt-PT - 0x3b700117: 572, // pt-ST - 0x3b700125: 573, // pt-TL - 0x3bb00000: 574, // qu - 0x3bb0003e: 575, // qu-BO - 0x3bb00068: 576, // qu-EC - 0x3bb000e3: 577, // qu-PE - 0x3cb00000: 578, // rm - 0x3cb0004d: 579, // rm-CH - 0x3d000000: 580, // rn - 0x3d000039: 581, // rn-BI - 0x3d300000: 582, // ro - 0x3d3000bb: 583, // ro-MD - 0x3d300103: 584, // ro-RO - 0x3d500000: 585, // rof - 0x3d50012e: 586, // rof-TZ - 0x3d900000: 587, // ru - 0x3d900046: 588, // ru-BY - 0x3d9000a4: 589, // ru-KG - 0x3d9000ad: 590, // ru-KZ - 0x3d9000bb: 591, // ru-MD - 0x3d900105: 592, // ru-RU - 0x3d90012f: 593, // ru-UA - 0x3dc00000: 594, // rw - 0x3dc00106: 595, // rw-RW - 0x3dd00000: 596, // rwk - 0x3dd0012e: 597, // rwk-TZ - 0x3e200000: 598, // sah - 0x3e200105: 599, // sah-RU - 0x3e300000: 600, // saq - 0x3e3000a3: 601, // saq-KE - 0x3e900000: 602, // sbp - 0x3e90012e: 603, // sbp-TZ - 0x3f200000: 604, // sdh - 0x3f300000: 605, // se - 0x3f300071: 606, // se-FI - 0x3f3000d9: 607, // se-NO - 0x3f30010b: 608, // se-SE - 0x3f500000: 609, // seh - 0x3f5000d0: 610, // seh-MZ - 0x3f700000: 611, // ses - 0x3f7000c2: 612, // ses-ML - 0x3f800000: 613, // sg - 0x3f80004b: 614, // sg-CF - 0x3fe00000: 615, // shi - 0x3fe52000: 616, // shi-Latn - 0x3fe520b9: 617, // shi-Latn-MA - 0x3fed2000: 618, // shi-Tfng - 0x3fed20b9: 619, // shi-Tfng-MA - 0x40200000: 620, // si - 0x402000b2: 621, // si-LK - 0x40800000: 622, // sk - 0x40800110: 623, // sk-SK - 0x40c00000: 624, // sl - 0x40c0010e: 625, // sl-SI - 0x41200000: 626, // sma - 0x41300000: 627, // smi - 0x41400000: 628, // smj - 0x41500000: 629, // smn - 0x41500071: 630, // smn-FI - 0x41800000: 631, // sms - 0x41900000: 632, // sn - 0x41900163: 633, // sn-ZW - 0x41f00000: 634, // so - 0x41f00061: 635, // so-DJ - 0x41f0006e: 636, // so-ET - 0x41f000a3: 637, // so-KE - 0x41f00114: 638, // so-SO - 0x42700000: 639, // sq - 0x42700026: 640, // sq-AL - 0x427000c1: 641, // sq-MK - 0x4270014c: 642, // sq-XK - 0x42800000: 643, // sr - 0x4281e000: 644, // sr-Cyrl - 0x4281e032: 645, // sr-Cyrl-BA - 0x4281e0bc: 646, // sr-Cyrl-ME - 0x4281e104: 647, // sr-Cyrl-RS - 0x4281e14c: 648, // sr-Cyrl-XK - 0x42852000: 649, // sr-Latn - 0x42852032: 650, // sr-Latn-BA - 0x428520bc: 651, // sr-Latn-ME - 0x42852104: 652, // sr-Latn-RS - 0x4285214c: 653, // sr-Latn-XK - 0x42d00000: 654, // ss - 0x43000000: 655, // ssy - 0x43100000: 656, // st - 0x43a00000: 657, // sv - 0x43a00030: 658, // sv-AX - 0x43a00071: 659, // sv-FI - 0x43a0010b: 660, // sv-SE - 0x43b00000: 661, // sw - 0x43b0004a: 662, // sw-CD - 0x43b000a3: 663, // sw-KE - 0x43b0012e: 664, // sw-TZ - 0x43b00130: 665, // sw-UG - 0x44400000: 666, // syr - 0x44600000: 667, // ta - 0x44600098: 668, // ta-IN - 0x446000b2: 669, // ta-LK - 0x446000cf: 670, // ta-MY - 0x4460010c: 671, // ta-SG - 0x45700000: 672, // te - 0x45700098: 673, // te-IN - 0x45a00000: 674, // teo - 0x45a000a3: 675, // teo-KE - 0x45a00130: 676, // teo-UG - 0x46100000: 677, // th - 0x46100122: 678, // th-TH - 0x46500000: 679, // ti - 0x4650006c: 680, // ti-ER - 0x4650006e: 681, // ti-ET - 0x46700000: 682, // tig - 0x46c00000: 683, // tk - 0x46c00126: 684, // tk-TM - 0x47600000: 685, // tn - 0x47800000: 686, // to - 0x47800128: 687, // to-TO - 0x48000000: 688, // tr - 0x4800005c: 689, // tr-CY - 0x4800012a: 690, // tr-TR - 0x48400000: 691, // ts - 0x49a00000: 692, // twq - 0x49a000d3: 693, // twq-NE - 0x49f00000: 694, // tzm - 0x49f000b9: 695, // tzm-MA - 0x4a200000: 696, // ug - 0x4a200052: 697, // ug-CN - 0x4a400000: 698, // uk - 0x4a40012f: 699, // uk-UA - 0x4aa00000: 700, // ur - 0x4aa00098: 701, // ur-IN - 0x4aa000e7: 702, // ur-PK - 0x4b200000: 703, // uz - 0x4b205000: 704, // uz-Arab - 0x4b205023: 705, // uz-Arab-AF - 0x4b21e000: 706, // uz-Cyrl - 0x4b21e136: 707, // uz-Cyrl-UZ - 0x4b252000: 708, // uz-Latn - 0x4b252136: 709, // uz-Latn-UZ - 0x4b400000: 710, // vai - 0x4b452000: 711, // vai-Latn - 0x4b4520b3: 712, // vai-Latn-LR - 0x4b4d9000: 713, // vai-Vaii - 0x4b4d90b3: 714, // vai-Vaii-LR - 0x4b600000: 715, // ve - 0x4b900000: 716, // vi - 0x4b90013d: 717, // vi-VN - 0x4bf00000: 718, // vo - 0x4bf00001: 719, // vo-001 - 0x4c200000: 720, // vun - 0x4c20012e: 721, // vun-TZ - 0x4c400000: 722, // wa - 0x4c500000: 723, // wae - 0x4c50004d: 724, // wae-CH - 0x4db00000: 725, // wo - 0x4e800000: 726, // xh - 0x4f100000: 727, // xog - 0x4f100130: 728, // xog-UG - 0x4ff00000: 729, // yav - 0x4ff00051: 730, // yav-CM - 0x50800000: 731, // yi - 0x50800001: 732, // yi-001 - 0x50e00000: 733, // yo - 0x50e0003a: 734, // yo-BJ - 0x50e000d5: 735, // yo-NG - 0x51500000: 736, // yue - 0x5150008c: 737, // yue-HK - 0x51e00000: 738, // zgh - 0x51e000b9: 739, // zgh-MA - 0x51f00000: 740, // zh - 0x51f34000: 741, // zh-Hans - 0x51f34052: 742, // zh-Hans-CN - 0x51f3408c: 743, // zh-Hans-HK - 0x51f340c5: 744, // zh-Hans-MO - 0x51f3410c: 745, // zh-Hans-SG - 0x51f35000: 746, // zh-Hant - 0x51f3508c: 747, // zh-Hant-HK - 0x51f350c5: 748, // zh-Hant-MO - 0x51f3512d: 749, // zh-Hant-TW - 0x52400000: 750, // zu - 0x52400160: 751, // zu-ZA + 0x00a00000: 3, // af + 0x00a000d0: 4, // af-NA + 0x00a0015e: 5, // af-ZA + 0x00b00000: 6, // agq + 0x00b00051: 7, // agq-CM + 0x00d00000: 8, // ak + 0x00d0007e: 9, // ak-GH + 0x01100000: 10, // am + 0x0110006e: 11, // am-ET + 0x01500000: 12, // ar + 0x01500001: 13, // ar-001 + 0x01500022: 14, // ar-AE + 0x01500038: 15, // ar-BH + 0x01500061: 16, // ar-DJ + 0x01500066: 17, // ar-DZ + 0x0150006a: 18, // ar-EG + 0x0150006b: 19, // ar-EH + 0x0150006c: 20, // ar-ER + 0x01500095: 21, // ar-IL + 0x01500099: 22, // ar-IQ + 0x0150009f: 23, // ar-JO + 0x015000a6: 24, // ar-KM + 0x015000aa: 25, // ar-KW + 0x015000ae: 26, // ar-LB + 0x015000b7: 27, // ar-LY + 0x015000b8: 28, // ar-MA + 0x015000c7: 29, // ar-MR + 0x015000df: 30, // ar-OM + 0x015000eb: 31, // ar-PS + 0x015000f1: 32, // ar-QA + 0x01500106: 33, // ar-SA + 0x01500109: 34, // ar-SD + 0x01500113: 35, // ar-SO + 0x01500115: 36, // ar-SS + 0x0150011a: 37, // ar-SY + 0x0150011e: 38, // ar-TD + 0x01500126: 39, // ar-TN + 0x0150015b: 40, // ar-YE + 0x01c00000: 41, // as + 0x01c00097: 42, // as-IN + 0x01d00000: 43, // asa + 0x01d0012d: 44, // asa-TZ + 0x01f00000: 45, // ast + 0x01f0006d: 46, // ast-ES + 0x02400000: 47, // az + 0x0241e000: 48, // az-Cyrl + 0x0241e031: 49, // az-Cyrl-AZ + 0x02452000: 50, // az-Latn + 0x02452031: 51, // az-Latn-AZ + 0x02a00000: 52, // bas + 0x02a00051: 53, // bas-CM + 0x02f00000: 54, // be + 0x02f00046: 55, // be-BY + 0x03100000: 56, // bem + 0x0310015f: 57, // bem-ZM + 0x03300000: 58, // bez + 0x0330012d: 59, // bez-TZ + 0x03800000: 60, // bg + 0x03800037: 61, // bg-BG + 0x03c00000: 62, // bh + 0x04900000: 63, // bm + 0x049000c1: 64, // bm-ML + 0x04b00000: 65, // bn + 0x04b00034: 66, // bn-BD + 0x04b00097: 67, // bn-IN + 0x04c00000: 68, // bo + 0x04c00052: 69, // bo-CN + 0x04c00097: 70, // bo-IN + 0x05000000: 71, // br + 0x05000076: 72, // br-FR + 0x05300000: 73, // brx + 0x05300097: 74, // brx-IN + 0x05400000: 75, // bs + 0x0541e000: 76, // bs-Cyrl + 0x0541e032: 77, // bs-Cyrl-BA + 0x05452000: 78, // bs-Latn + 0x05452032: 79, // bs-Latn-BA + 0x06100000: 80, // ca + 0x06100021: 81, // ca-AD + 0x0610006d: 82, // ca-ES + 0x06100076: 83, // ca-FR + 0x0610009c: 84, // ca-IT + 0x06400000: 85, // ce + 0x06400104: 86, // ce-RU + 0x06600000: 87, // cgg + 0x0660012f: 88, // cgg-UG + 0x06c00000: 89, // chr + 0x06c00132: 90, // chr-US + 0x06f00000: 91, // ckb + 0x06f00099: 92, // ckb-IQ + 0x06f0009a: 93, // ckb-IR + 0x07900000: 94, // cs + 0x0790005d: 95, // cs-CZ + 0x07d00000: 96, // cu + 0x07d00104: 97, // cu-RU + 0x07f00000: 98, // cy + 0x07f00079: 99, // cy-GB + 0x08000000: 100, // da + 0x08000062: 101, // da-DK + 0x08000080: 102, // da-GL + 0x08300000: 103, // dav + 0x083000a2: 104, // dav-KE + 0x08500000: 105, // de + 0x0850002d: 106, // de-AT + 0x08500035: 107, // de-BE + 0x0850004d: 108, // de-CH + 0x0850005f: 109, // de-DE + 0x085000b0: 110, // de-LI + 0x085000b5: 111, // de-LU + 0x08800000: 112, // dje + 0x088000d2: 113, // dje-NE + 0x08b00000: 114, // dsb + 0x08b0005f: 115, // dsb-DE + 0x08f00000: 116, // dua + 0x08f00051: 117, // dua-CM + 0x09000000: 118, // dv + 0x09100000: 119, // dyo + 0x09100112: 120, // dyo-SN + 0x09300000: 121, // dz + 0x09300042: 122, // dz-BT + 0x09400000: 123, // ebu + 0x094000a2: 124, // ebu-KE + 0x09500000: 125, // ee + 0x0950007e: 126, // ee-GH + 0x09500120: 127, // ee-TG + 0x09a00000: 128, // el + 0x09a0005c: 129, // el-CY + 0x09a00085: 130, // el-GR + 0x09b00000: 131, // en + 0x09b00001: 132, // en-001 + 0x09b0001a: 133, // en-150 + 0x09b00024: 134, // en-AG + 0x09b00025: 135, // en-AI + 0x09b0002c: 136, // en-AS + 0x09b0002d: 137, // en-AT + 0x09b0002e: 138, // en-AU + 0x09b00033: 139, // en-BB + 0x09b00035: 140, // en-BE + 0x09b00039: 141, // en-BI + 0x09b0003c: 142, // en-BM + 0x09b00041: 143, // en-BS + 0x09b00045: 144, // en-BW + 0x09b00047: 145, // en-BZ + 0x09b00048: 146, // en-CA + 0x09b00049: 147, // en-CC + 0x09b0004d: 148, // en-CH + 0x09b0004f: 149, // en-CK + 0x09b00051: 150, // en-CM + 0x09b0005b: 151, // en-CX + 0x09b0005c: 152, // en-CY + 0x09b0005f: 153, // en-DE + 0x09b00060: 154, // en-DG + 0x09b00062: 155, // en-DK + 0x09b00063: 156, // en-DM + 0x09b0006c: 157, // en-ER + 0x09b00070: 158, // en-FI + 0x09b00071: 159, // en-FJ + 0x09b00072: 160, // en-FK + 0x09b00073: 161, // en-FM + 0x09b00079: 162, // en-GB + 0x09b0007a: 163, // en-GD + 0x09b0007d: 164, // en-GG + 0x09b0007e: 165, // en-GH + 0x09b0007f: 166, // en-GI + 0x09b00081: 167, // en-GM + 0x09b00088: 168, // en-GU + 0x09b0008a: 169, // en-GY + 0x09b0008b: 170, // en-HK + 0x09b00094: 171, // en-IE + 0x09b00095: 172, // en-IL + 0x09b00096: 173, // en-IM + 0x09b00097: 174, // en-IN + 0x09b00098: 175, // en-IO + 0x09b0009d: 176, // en-JE + 0x09b0009e: 177, // en-JM + 0x09b000a2: 178, // en-KE + 0x09b000a5: 179, // en-KI + 0x09b000a7: 180, // en-KN + 0x09b000ab: 181, // en-KY + 0x09b000af: 182, // en-LC + 0x09b000b2: 183, // en-LR + 0x09b000b3: 184, // en-LS + 0x09b000bd: 185, // en-MG + 0x09b000be: 186, // en-MH + 0x09b000c4: 187, // en-MO + 0x09b000c5: 188, // en-MP + 0x09b000c8: 189, // en-MS + 0x09b000c9: 190, // en-MT + 0x09b000ca: 191, // en-MU + 0x09b000cc: 192, // en-MW + 0x09b000ce: 193, // en-MY + 0x09b000d0: 194, // en-NA + 0x09b000d3: 195, // en-NF + 0x09b000d4: 196, // en-NG + 0x09b000d7: 197, // en-NL + 0x09b000db: 198, // en-NR + 0x09b000dd: 199, // en-NU + 0x09b000de: 200, // en-NZ + 0x09b000e4: 201, // en-PG + 0x09b000e5: 202, // en-PH + 0x09b000e6: 203, // en-PK + 0x09b000e9: 204, // en-PN + 0x09b000ea: 205, // en-PR + 0x09b000ee: 206, // en-PW + 0x09b00105: 207, // en-RW + 0x09b00107: 208, // en-SB + 0x09b00108: 209, // en-SC + 0x09b00109: 210, // en-SD + 0x09b0010a: 211, // en-SE + 0x09b0010b: 212, // en-SG + 0x09b0010c: 213, // en-SH + 0x09b0010d: 214, // en-SI + 0x09b00110: 215, // en-SL + 0x09b00115: 216, // en-SS + 0x09b00119: 217, // en-SX + 0x09b0011b: 218, // en-SZ + 0x09b0011d: 219, // en-TC + 0x09b00123: 220, // en-TK + 0x09b00127: 221, // en-TO + 0x09b0012a: 222, // en-TT + 0x09b0012b: 223, // en-TV + 0x09b0012d: 224, // en-TZ + 0x09b0012f: 225, // en-UG + 0x09b00131: 226, // en-UM + 0x09b00132: 227, // en-US + 0x09b00136: 228, // en-VC + 0x09b00139: 229, // en-VG + 0x09b0013a: 230, // en-VI + 0x09b0013c: 231, // en-VU + 0x09b0013f: 232, // en-WS + 0x09b0015e: 233, // en-ZA + 0x09b0015f: 234, // en-ZM + 0x09b00161: 235, // en-ZW + 0x09c00000: 236, // eo + 0x09c00001: 237, // eo-001 + 0x09d00000: 238, // es + 0x09d0001e: 239, // es-419 + 0x09d0002b: 240, // es-AR + 0x09d0003e: 241, // es-BO + 0x09d00040: 242, // es-BR + 0x09d00050: 243, // es-CL + 0x09d00053: 244, // es-CO + 0x09d00055: 245, // es-CR + 0x09d00058: 246, // es-CU + 0x09d00064: 247, // es-DO + 0x09d00067: 248, // es-EA + 0x09d00068: 249, // es-EC + 0x09d0006d: 250, // es-ES + 0x09d00084: 251, // es-GQ + 0x09d00087: 252, // es-GT + 0x09d0008d: 253, // es-HN + 0x09d00092: 254, // es-IC + 0x09d000cd: 255, // es-MX + 0x09d000d6: 256, // es-NI + 0x09d000e0: 257, // es-PA + 0x09d000e2: 258, // es-PE + 0x09d000e5: 259, // es-PH + 0x09d000ea: 260, // es-PR + 0x09d000ef: 261, // es-PY + 0x09d00118: 262, // es-SV + 0x09d00132: 263, // es-US + 0x09d00133: 264, // es-UY + 0x09d00138: 265, // es-VE + 0x09f00000: 266, // et + 0x09f00069: 267, // et-EE + 0x0a100000: 268, // eu + 0x0a10006d: 269, // eu-ES + 0x0a200000: 270, // ewo + 0x0a200051: 271, // ewo-CM + 0x0a400000: 272, // fa + 0x0a400023: 273, // fa-AF + 0x0a40009a: 274, // fa-IR + 0x0a600000: 275, // ff + 0x0a600051: 276, // ff-CM + 0x0a600082: 277, // ff-GN + 0x0a6000c7: 278, // ff-MR + 0x0a600112: 279, // ff-SN + 0x0a800000: 280, // fi + 0x0a800070: 281, // fi-FI + 0x0aa00000: 282, // fil + 0x0aa000e5: 283, // fil-PH + 0x0ad00000: 284, // fo + 0x0ad00062: 285, // fo-DK + 0x0ad00074: 286, // fo-FO + 0x0af00000: 287, // fr + 0x0af00035: 288, // fr-BE + 0x0af00036: 289, // fr-BF + 0x0af00039: 290, // fr-BI + 0x0af0003a: 291, // fr-BJ + 0x0af0003b: 292, // fr-BL + 0x0af00048: 293, // fr-CA + 0x0af0004a: 294, // fr-CD + 0x0af0004b: 295, // fr-CF + 0x0af0004c: 296, // fr-CG + 0x0af0004d: 297, // fr-CH + 0x0af0004e: 298, // fr-CI + 0x0af00051: 299, // fr-CM + 0x0af00061: 300, // fr-DJ + 0x0af00066: 301, // fr-DZ + 0x0af00076: 302, // fr-FR + 0x0af00078: 303, // fr-GA + 0x0af0007c: 304, // fr-GF + 0x0af00082: 305, // fr-GN + 0x0af00083: 306, // fr-GP + 0x0af00084: 307, // fr-GQ + 0x0af0008f: 308, // fr-HT + 0x0af000a6: 309, // fr-KM + 0x0af000b5: 310, // fr-LU + 0x0af000b8: 311, // fr-MA + 0x0af000b9: 312, // fr-MC + 0x0af000bc: 313, // fr-MF + 0x0af000bd: 314, // fr-MG + 0x0af000c1: 315, // fr-ML + 0x0af000c6: 316, // fr-MQ + 0x0af000c7: 317, // fr-MR + 0x0af000ca: 318, // fr-MU + 0x0af000d1: 319, // fr-NC + 0x0af000d2: 320, // fr-NE + 0x0af000e3: 321, // fr-PF + 0x0af000e8: 322, // fr-PM + 0x0af00100: 323, // fr-RE + 0x0af00105: 324, // fr-RW + 0x0af00108: 325, // fr-SC + 0x0af00112: 326, // fr-SN + 0x0af0011a: 327, // fr-SY + 0x0af0011e: 328, // fr-TD + 0x0af00120: 329, // fr-TG + 0x0af00126: 330, // fr-TN + 0x0af0013c: 331, // fr-VU + 0x0af0013d: 332, // fr-WF + 0x0af0015c: 333, // fr-YT + 0x0b600000: 334, // fur + 0x0b60009c: 335, // fur-IT + 0x0b900000: 336, // fy + 0x0b9000d7: 337, // fy-NL + 0x0ba00000: 338, // ga + 0x0ba00094: 339, // ga-IE + 0x0c200000: 340, // gd + 0x0c200079: 341, // gd-GB + 0x0c800000: 342, // gl + 0x0c80006d: 343, // gl-ES + 0x0d200000: 344, // gsw + 0x0d20004d: 345, // gsw-CH + 0x0d200076: 346, // gsw-FR + 0x0d2000b0: 347, // gsw-LI + 0x0d300000: 348, // gu + 0x0d300097: 349, // gu-IN + 0x0d700000: 350, // guw + 0x0d800000: 351, // guz + 0x0d8000a2: 352, // guz-KE + 0x0d900000: 353, // gv + 0x0d900096: 354, // gv-IM + 0x0dc00000: 355, // ha + 0x0dc0007e: 356, // ha-GH + 0x0dc000d2: 357, // ha-NE + 0x0dc000d4: 358, // ha-NG + 0x0de00000: 359, // haw + 0x0de00132: 360, // haw-US + 0x0e000000: 361, // he + 0x0e000095: 362, // he-IL + 0x0e100000: 363, // hi + 0x0e100097: 364, // hi-IN + 0x0ee00000: 365, // hr + 0x0ee00032: 366, // hr-BA + 0x0ee0008e: 367, // hr-HR + 0x0ef00000: 368, // hsb + 0x0ef0005f: 369, // hsb-DE + 0x0f200000: 370, // hu + 0x0f200090: 371, // hu-HU + 0x0f300000: 372, // hy + 0x0f300027: 373, // hy-AM + 0x0f800000: 374, // id + 0x0f800093: 375, // id-ID + 0x0fa00000: 376, // ig + 0x0fa000d4: 377, // ig-NG + 0x0fb00000: 378, // ii + 0x0fb00052: 379, // ii-CN + 0x10200000: 380, // is + 0x1020009b: 381, // is-IS + 0x10300000: 382, // it + 0x1030004d: 383, // it-CH + 0x1030009c: 384, // it-IT + 0x10300111: 385, // it-SM + 0x10400000: 386, // iu + 0x10700000: 387, // ja + 0x107000a0: 388, // ja-JP + 0x10900000: 389, // jbo + 0x10a00000: 390, // jgo + 0x10a00051: 391, // jgo-CM + 0x10c00000: 392, // jmc + 0x10c0012d: 393, // jmc-TZ + 0x10f00000: 394, // jv + 0x11100000: 395, // ka + 0x1110007b: 396, // ka-GE + 0x11300000: 397, // kab + 0x11300066: 398, // kab-DZ + 0x11500000: 399, // kaj + 0x11600000: 400, // kam + 0x116000a2: 401, // kam-KE + 0x11900000: 402, // kcg + 0x11b00000: 403, // kde + 0x11b0012d: 404, // kde-TZ + 0x11d00000: 405, // kea + 0x11d00059: 406, // kea-CV + 0x12800000: 407, // khq + 0x128000c1: 408, // khq-ML + 0x12b00000: 409, // ki + 0x12b000a2: 410, // ki-KE + 0x12f00000: 411, // kk + 0x12f000ac: 412, // kk-KZ + 0x13000000: 413, // kkj + 0x13000051: 414, // kkj-CM + 0x13100000: 415, // kl + 0x13100080: 416, // kl-GL + 0x13200000: 417, // kln + 0x132000a2: 418, // kln-KE + 0x13300000: 419, // km + 0x133000a4: 420, // km-KH + 0x13500000: 421, // kn + 0x13500097: 422, // kn-IN + 0x13600000: 423, // ko + 0x136000a8: 424, // ko-KP + 0x136000a9: 425, // ko-KR + 0x13800000: 426, // kok + 0x13800097: 427, // kok-IN + 0x14100000: 428, // ks + 0x14100097: 429, // ks-IN + 0x14200000: 430, // ksb + 0x1420012d: 431, // ksb-TZ + 0x14300000: 432, // ksf + 0x14300051: 433, // ksf-CM + 0x14400000: 434, // ksh + 0x1440005f: 435, // ksh-DE + 0x14500000: 436, // ku + 0x14a00000: 437, // kw + 0x14a00079: 438, // kw-GB + 0x14d00000: 439, // ky + 0x14d000a3: 440, // ky-KG + 0x15100000: 441, // lag + 0x1510012d: 442, // lag-TZ + 0x15400000: 443, // lb + 0x154000b5: 444, // lb-LU + 0x15a00000: 445, // lg + 0x15a0012f: 446, // lg-UG + 0x16100000: 447, // lkt + 0x16100132: 448, // lkt-US + 0x16400000: 449, // ln + 0x16400029: 450, // ln-AO + 0x1640004a: 451, // ln-CD + 0x1640004b: 452, // ln-CF + 0x1640004c: 453, // ln-CG + 0x16500000: 454, // lo + 0x165000ad: 455, // lo-LA + 0x16800000: 456, // lrc + 0x16800099: 457, // lrc-IQ + 0x1680009a: 458, // lrc-IR + 0x16900000: 459, // lt + 0x169000b4: 460, // lt-LT + 0x16b00000: 461, // lu + 0x16b0004a: 462, // lu-CD + 0x16d00000: 463, // luo + 0x16d000a2: 464, // luo-KE + 0x16e00000: 465, // luy + 0x16e000a2: 466, // luy-KE + 0x17000000: 467, // lv + 0x170000b6: 468, // lv-LV + 0x17a00000: 469, // mas + 0x17a000a2: 470, // mas-KE + 0x17a0012d: 471, // mas-TZ + 0x18000000: 472, // mer + 0x180000a2: 473, // mer-KE + 0x18200000: 474, // mfe + 0x182000ca: 475, // mfe-MU + 0x18300000: 476, // mg + 0x183000bd: 477, // mg-MG + 0x18400000: 478, // mgh + 0x184000cf: 479, // mgh-MZ + 0x18500000: 480, // mgo + 0x18500051: 481, // mgo-CM + 0x18c00000: 482, // mk + 0x18c000c0: 483, // mk-MK + 0x18d00000: 484, // ml + 0x18d00097: 485, // ml-IN + 0x18f00000: 486, // mn + 0x18f000c3: 487, // mn-MN + 0x19600000: 488, // mr + 0x19600097: 489, // mr-IN + 0x19a00000: 490, // ms + 0x19a0003d: 491, // ms-BN + 0x19a000ce: 492, // ms-MY + 0x19a0010b: 493, // ms-SG + 0x19b00000: 494, // mt + 0x19b000c9: 495, // mt-MT + 0x19d00000: 496, // mua + 0x19d00051: 497, // mua-CM + 0x1a500000: 498, // my + 0x1a5000c2: 499, // my-MM + 0x1a900000: 500, // mzn + 0x1a90009a: 501, // mzn-IR + 0x1ab00000: 502, // nah + 0x1ae00000: 503, // naq + 0x1ae000d0: 504, // naq-NA + 0x1af00000: 505, // nb + 0x1af000d8: 506, // nb-NO + 0x1af0010e: 507, // nb-SJ + 0x1b100000: 508, // nd + 0x1b100161: 509, // nd-ZW + 0x1b400000: 510, // ne + 0x1b400097: 511, // ne-IN + 0x1b4000d9: 512, // ne-NP + 0x1bd00000: 513, // nl + 0x1bd0002f: 514, // nl-AW + 0x1bd00035: 515, // nl-BE + 0x1bd0003f: 516, // nl-BQ + 0x1bd0005a: 517, // nl-CW + 0x1bd000d7: 518, // nl-NL + 0x1bd00114: 519, // nl-SR + 0x1bd00119: 520, // nl-SX + 0x1be00000: 521, // nmg + 0x1be00051: 522, // nmg-CM + 0x1bf00000: 523, // nn + 0x1bf000d8: 524, // nn-NO + 0x1c000000: 525, // nnh + 0x1c000051: 526, // nnh-CM + 0x1c100000: 527, // no + 0x1c500000: 528, // nqo + 0x1c600000: 529, // nr + 0x1c800000: 530, // nso + 0x1c900000: 531, // nus + 0x1c900115: 532, // nus-SS + 0x1cc00000: 533, // ny + 0x1ce00000: 534, // nyn + 0x1ce0012f: 535, // nyn-UG + 0x1d200000: 536, // om + 0x1d20006e: 537, // om-ET + 0x1d2000a2: 538, // om-KE + 0x1d300000: 539, // or + 0x1d300097: 540, // or-IN + 0x1d400000: 541, // os + 0x1d40007b: 542, // os-GE + 0x1d400104: 543, // os-RU + 0x1d700000: 544, // pa + 0x1d705000: 545, // pa-Arab + 0x1d7050e6: 546, // pa-Arab-PK + 0x1d72f000: 547, // pa-Guru + 0x1d72f097: 548, // pa-Guru-IN + 0x1db00000: 549, // pap + 0x1e700000: 550, // pl + 0x1e7000e7: 551, // pl-PL + 0x1ed00000: 552, // prg + 0x1ed00001: 553, // prg-001 + 0x1ee00000: 554, // ps + 0x1ee00023: 555, // ps-AF + 0x1ef00000: 556, // pt + 0x1ef00029: 557, // pt-AO + 0x1ef00040: 558, // pt-BR + 0x1ef0004d: 559, // pt-CH + 0x1ef00059: 560, // pt-CV + 0x1ef00084: 561, // pt-GQ + 0x1ef00089: 562, // pt-GW + 0x1ef000b5: 563, // pt-LU + 0x1ef000c4: 564, // pt-MO + 0x1ef000cf: 565, // pt-MZ + 0x1ef000ec: 566, // pt-PT + 0x1ef00116: 567, // pt-ST + 0x1ef00124: 568, // pt-TL + 0x1f100000: 569, // qu + 0x1f10003e: 570, // qu-BO + 0x1f100068: 571, // qu-EC + 0x1f1000e2: 572, // qu-PE + 0x1fc00000: 573, // rm + 0x1fc0004d: 574, // rm-CH + 0x20100000: 575, // rn + 0x20100039: 576, // rn-BI + 0x20300000: 577, // ro + 0x203000ba: 578, // ro-MD + 0x20300102: 579, // ro-RO + 0x20500000: 580, // rof + 0x2050012d: 581, // rof-TZ + 0x20700000: 582, // ru + 0x20700046: 583, // ru-BY + 0x207000a3: 584, // ru-KG + 0x207000ac: 585, // ru-KZ + 0x207000ba: 586, // ru-MD + 0x20700104: 587, // ru-RU + 0x2070012e: 588, // ru-UA + 0x20a00000: 589, // rw + 0x20a00105: 590, // rw-RW + 0x20b00000: 591, // rwk + 0x20b0012d: 592, // rwk-TZ + 0x20f00000: 593, // sah + 0x20f00104: 594, // sah-RU + 0x21000000: 595, // saq + 0x210000a2: 596, // saq-KE + 0x21400000: 597, // sbp + 0x2140012d: 598, // sbp-TZ + 0x21c00000: 599, // sdh + 0x21d00000: 600, // se + 0x21d00070: 601, // se-FI + 0x21d000d8: 602, // se-NO + 0x21d0010a: 603, // se-SE + 0x21f00000: 604, // seh + 0x21f000cf: 605, // seh-MZ + 0x22100000: 606, // ses + 0x221000c1: 607, // ses-ML + 0x22200000: 608, // sg + 0x2220004b: 609, // sg-CF + 0x22600000: 610, // shi + 0x22652000: 611, // shi-Latn + 0x226520b8: 612, // shi-Latn-MA + 0x226d2000: 613, // shi-Tfng + 0x226d20b8: 614, // shi-Tfng-MA + 0x22800000: 615, // si + 0x228000b1: 616, // si-LK + 0x22a00000: 617, // sk + 0x22a0010f: 618, // sk-SK + 0x22c00000: 619, // sl + 0x22c0010d: 620, // sl-SI + 0x23000000: 621, // sma + 0x23100000: 622, // smi + 0x23200000: 623, // smj + 0x23300000: 624, // smn + 0x23300070: 625, // smn-FI + 0x23500000: 626, // sms + 0x23600000: 627, // sn + 0x23600161: 628, // sn-ZW + 0x23800000: 629, // so + 0x23800061: 630, // so-DJ + 0x2380006e: 631, // so-ET + 0x238000a2: 632, // so-KE + 0x23800113: 633, // so-SO + 0x23a00000: 634, // sq + 0x23a00026: 635, // sq-AL + 0x23a000c0: 636, // sq-MK + 0x23a0014a: 637, // sq-XK + 0x23b00000: 638, // sr + 0x23b1e000: 639, // sr-Cyrl + 0x23b1e032: 640, // sr-Cyrl-BA + 0x23b1e0bb: 641, // sr-Cyrl-ME + 0x23b1e103: 642, // sr-Cyrl-RS + 0x23b1e14a: 643, // sr-Cyrl-XK + 0x23b52000: 644, // sr-Latn + 0x23b52032: 645, // sr-Latn-BA + 0x23b520bb: 646, // sr-Latn-ME + 0x23b52103: 647, // sr-Latn-RS + 0x23b5214a: 648, // sr-Latn-XK + 0x24000000: 649, // ss + 0x24100000: 650, // ssy + 0x24200000: 651, // st + 0x24700000: 652, // sv + 0x24700030: 653, // sv-AX + 0x24700070: 654, // sv-FI + 0x2470010a: 655, // sv-SE + 0x24800000: 656, // sw + 0x2480004a: 657, // sw-CD + 0x248000a2: 658, // sw-KE + 0x2480012d: 659, // sw-TZ + 0x2480012f: 660, // sw-UG + 0x24f00000: 661, // syr + 0x25100000: 662, // ta + 0x25100097: 663, // ta-IN + 0x251000b1: 664, // ta-LK + 0x251000ce: 665, // ta-MY + 0x2510010b: 666, // ta-SG + 0x25800000: 667, // te + 0x25800097: 668, // te-IN + 0x25a00000: 669, // teo + 0x25a000a2: 670, // teo-KE + 0x25a0012f: 671, // teo-UG + 0x25d00000: 672, // th + 0x25d00121: 673, // th-TH + 0x26100000: 674, // ti + 0x2610006c: 675, // ti-ER + 0x2610006e: 676, // ti-ET + 0x26200000: 677, // tig + 0x26400000: 678, // tk + 0x26400125: 679, // tk-TM + 0x26b00000: 680, // tn + 0x26c00000: 681, // to + 0x26c00127: 682, // to-TO + 0x26f00000: 683, // tr + 0x26f0005c: 684, // tr-CY + 0x26f00129: 685, // tr-TR + 0x27200000: 686, // ts + 0x27e00000: 687, // twq + 0x27e000d2: 688, // twq-NE + 0x28200000: 689, // tzm + 0x282000b8: 690, // tzm-MA + 0x28400000: 691, // ug + 0x28400052: 692, // ug-CN + 0x28600000: 693, // uk + 0x2860012e: 694, // uk-UA + 0x28c00000: 695, // ur + 0x28c00097: 696, // ur-IN + 0x28c000e6: 697, // ur-PK + 0x28d00000: 698, // uz + 0x28d05000: 699, // uz-Arab + 0x28d05023: 700, // uz-Arab-AF + 0x28d1e000: 701, // uz-Cyrl + 0x28d1e134: 702, // uz-Cyrl-UZ + 0x28d52000: 703, // uz-Latn + 0x28d52134: 704, // uz-Latn-UZ + 0x28e00000: 705, // vai + 0x28e52000: 706, // vai-Latn + 0x28e520b2: 707, // vai-Latn-LR + 0x28ed9000: 708, // vai-Vaii + 0x28ed90b2: 709, // vai-Vaii-LR + 0x28f00000: 710, // ve + 0x29200000: 711, // vi + 0x2920013b: 712, // vi-VN + 0x29700000: 713, // vo + 0x29700001: 714, // vo-001 + 0x29a00000: 715, // vun + 0x29a0012d: 716, // vun-TZ + 0x29b00000: 717, // wa + 0x29c00000: 718, // wae + 0x29c0004d: 719, // wae-CH + 0x2a400000: 720, // wo + 0x2a900000: 721, // xh + 0x2b100000: 722, // xog + 0x2b10012f: 723, // xog-UG + 0x2b700000: 724, // yav + 0x2b700051: 725, // yav-CM + 0x2b900000: 726, // yi + 0x2b900001: 727, // yi-001 + 0x2ba00000: 728, // yo + 0x2ba0003a: 729, // yo-BJ + 0x2ba000d4: 730, // yo-NG + 0x2bd00000: 731, // yue + 0x2bd0008b: 732, // yue-HK + 0x2c300000: 733, // zgh + 0x2c3000b8: 734, // zgh-MA + 0x2c400000: 735, // zh + 0x2c434000: 736, // zh-Hans + 0x2c434052: 737, // zh-Hans-CN + 0x2c43408b: 738, // zh-Hans-HK + 0x2c4340c4: 739, // zh-Hans-MO + 0x2c43410b: 740, // zh-Hans-SG + 0x2c435000: 741, // zh-Hant + 0x2c43508b: 742, // zh-Hant-HK + 0x2c4350c4: 743, // zh-Hant-MO + 0x2c43512c: 744, // zh-Hant-TW + 0x2c600000: 745, // zu + 0x2c60015e: 746, // zu-ZA } -// Total table size 4580 bytes (4KiB); checksum: A7F72A2A +// Total table size 4550 bytes (4KiB); checksum: B6D49547 diff --git a/vendor/golang.org/x/text/language/language.go b/vendor/golang.org/x/text/language/language.go index 5eecceb61..3c1904143 100644 --- a/vendor/golang.org/x/text/language/language.go +++ b/vendor/golang.org/x/text/language/language.go @@ -593,7 +593,7 @@ func (t Tag) Extension(x byte) (ext Extension, ok bool) { return Extension{ext}, true } } - return Extension{}, false + return Extension{string(x)}, false } // Extensions returns all extensions of t. diff --git a/vendor/golang.org/x/text/language/maketables.go b/vendor/golang.org/x/text/language/maketables.go index 107f99254..2cc995b37 100644 --- a/vendor/golang.org/x/text/language/maketables.go +++ b/vendor/golang.org/x/text/language/maketables.go @@ -678,8 +678,6 @@ func (b *builder) parseIndices() { b.locale.parse(meta.DefaultContent.Locales) } -// TODO: region inclusion data will probably not be use used in future matchers. - func (b *builder) computeRegionGroups() { b.groups = make(map[int]index) @@ -688,11 +686,6 @@ func (b *builder) computeRegionGroups() { b.groups[i] = index(len(b.groups)) } for _, g := range b.supp.TerritoryContainment.Group { - // Skip UN and EURO zone as they are flattening the containment - // relationship. - if g.Type == "EZ" || g.Type == "UN" { - continue - } group := b.region.index(g.Type) if _, ok := b.groups[group]; !ok { b.groups[group] = index(len(b.groups)) @@ -789,7 +782,6 @@ func (b *builder) writeLanguage() { lang.updateLater("tw", "twi") lang.updateLater("nb", "nob") lang.updateLater("ak", "aka") - lang.updateLater("bh", "bih") // Ensure that each 2-letter code is matched with a 3-letter code. for _, v := range lang.s[1:] { @@ -1490,11 +1482,6 @@ func (b *builder) writeRegionInclusionData() { containment = make(map[index][]index) ) for _, g := range b.supp.TerritoryContainment.Group { - // Skip UN and EURO zone as they are flattening the containment - // relationship. - if g.Type == "EZ" || g.Type == "UN" { - continue - } group := b.region.index(g.Type) groupIdx := b.groups[group] for _, mem := range strings.Split(g.Contains, " ") { diff --git a/vendor/golang.org/x/text/language/match.go b/vendor/golang.org/x/text/language/match.go index 8ad950533..eec72bcc1 100644 --- a/vendor/golang.org/x/text/language/match.go +++ b/vendor/golang.org/x/text/language/match.go @@ -396,8 +396,8 @@ type matcher struct { // matchHeader has the lists of tags for exact matches and matches based on // maximized and canonicalized tags for a given language. type matchHeader struct { - exact []*haveTag - max []*haveTag + exact []haveTag + max []haveTag } // haveTag holds a supported Tag and its maximized script and region. The maximized @@ -457,7 +457,7 @@ func (h *matchHeader) addIfNew(n haveTag, exact bool) { } } if exact { - h.exact = append(h.exact, &n) + h.exact = append(h.exact, n) } // Allow duplicate maximized tags, but create a linked list to allow quickly // comparing the equivalents and bail out. @@ -472,7 +472,7 @@ func (h *matchHeader) addIfNew(n haveTag, exact bool) { break } } - h.max = append(h.max, &n) + h.max = append(h.max, n) } // header returns the matchHeader for the given language. It creates one if @@ -503,7 +503,7 @@ func newMatcher(supported []Tag) *matcher { pair, _ := makeHaveTag(tag, i) m.header(tag.lang).addIfNew(pair, true) } - m.default_ = m.header(supported[0].lang).exact[0] + m.default_ = &m.header(supported[0].lang).exact[0] for i, tag := range supported { pair, max := makeHaveTag(tag, i) if max != tag.lang { @@ -520,8 +520,7 @@ func newMatcher(supported []Tag) *matcher { return } hw := m.header(langID(want)) - for _, ht := range hh.max { - v := *ht + for _, v := range hh.max { if conf < v.conf { v.conf = conf } @@ -581,7 +580,7 @@ func (m *matcher) getBest(want ...Tag) (got *haveTag, orig Tag, c Confidence) { continue } for i := range h.exact { - have := h.exact[i] + have := &h.exact[i] if have.tag.equalsRest(w) { return have, w, Exact } @@ -592,7 +591,7 @@ func (m *matcher) getBest(want ...Tag) (got *haveTag, orig Tag, c Confidence) { // Base language is not defined. if h != nil { for i := range h.exact { - have := h.exact[i] + have := &h.exact[i] if have.tag.equalsRest(w) { return have, w, Exact } @@ -610,11 +609,11 @@ func (m *matcher) getBest(want ...Tag) (got *haveTag, orig Tag, c Confidence) { } // Check for match based on maximized tag. for i := range h.max { - have := h.max[i] + have := &h.max[i] best.update(have, w, max.script, max.region) if best.conf == Exact { for have.nextMax != 0 { - have = h.max[have.nextMax] + have = &h.max[have.nextMax] best.update(have, w, max.script, max.region) } return best.have, best.want, High diff --git a/vendor/golang.org/x/text/language/tables.go b/vendor/golang.org/x/text/language/tables.go index ccdc1ff0f..5de0f856a 100644 --- a/vendor/golang.org/x/text/language/tables.go +++ b/vendor/golang.org/x/text/language/tables.go @@ -5,118 +5,118 @@ package language import "golang.org/x/text/internal/tag" // CLDRVersion is the CLDR version from which the tables in this package are derived. -const CLDRVersion = "30" +const CLDRVersion = "29" const numLanguages = 8654 const numScripts = 230 -const numRegions = 356 +const numRegions = 354 type fromTo struct { from uint16 to uint16 } -const nonCanonicalUnd = 1191 +const nonCanonicalUnd = 649 const ( - _af = 21 - _am = 38 - _ar = 57 - _az = 87 - _bg = 125 - _bn = 163 - _ca = 213 - _cs = 246 - _da = 253 - _de = 265 - _el = 305 - _en = 308 - _es = 313 - _et = 315 - _fa = 323 - _fi = 332 - _fil = 334 - _fr = 345 - _gu = 413 - _he = 437 - _hi = 439 - _hr = 458 - _hu = 462 - _hy = 464 - _id = 474 - _is = 496 - _it = 497 - _ja = 504 - _ka = 520 - _kk = 570 - _km = 578 - _kn = 585 - _ko = 587 - _ky = 641 - _lo = 687 - _lt = 695 - _lv = 702 - _mk = 758 - _ml = 763 - _mn = 770 - _mo = 775 - _mr = 786 - _ms = 790 - _mul = 797 - _my = 808 - _nb = 830 - _ne = 840 - _nl = 862 - _no = 870 - _pa = 916 - _pl = 938 - _pt = 951 - _ro = 979 - _ru = 985 - _sh = 1021 - _si = 1026 - _sk = 1032 - _sl = 1036 - _sq = 1063 - _sr = 1064 - _sv = 1082 - _sw = 1083 - _ta = 1094 - _te = 1111 - _th = 1121 - _tl = 1136 - _tn = 1142 - _tr = 1152 - _uk = 1188 - _ur = 1194 - _uz = 1202 - _vi = 1209 - _zh = 1311 - _zu = 1316 - _jbo = 507 - _ami = 1639 - _bnn = 2346 - _hak = 431 - _tlh = 14456 - _lb = 652 - _nv = 890 - _pwn = 12044 - _tao = 14177 - _tay = 14187 - _tsu = 14651 - _nn = 865 - _sfb = 13618 - _vgt = 15690 - _sgg = 13649 - _cmn = 2996 - _nan = 826 - _hsn = 460 + _af = 10 + _am = 17 + _ar = 21 + _az = 36 + _bg = 56 + _bn = 75 + _ca = 97 + _cs = 121 + _da = 128 + _de = 133 + _el = 154 + _en = 155 + _es = 157 + _et = 159 + _fa = 164 + _fi = 168 + _fil = 170 + _fr = 175 + _gu = 211 + _he = 224 + _hi = 225 + _hr = 238 + _hu = 242 + _hy = 243 + _id = 248 + _is = 258 + _it = 259 + _ja = 263 + _ka = 273 + _kk = 303 + _km = 307 + _kn = 309 + _ko = 310 + _ky = 333 + _lo = 357 + _lt = 361 + _lv = 368 + _mk = 396 + _ml = 397 + _mn = 399 + _mo = 402 + _mr = 406 + _ms = 410 + _mul = 414 + _my = 421 + _nb = 431 + _ne = 436 + _nl = 445 + _no = 449 + _pa = 471 + _pl = 487 + _pt = 495 + _ro = 515 + _ru = 519 + _sh = 549 + _si = 552 + _sk = 554 + _sl = 556 + _sq = 570 + _sr = 571 + _sv = 583 + _sw = 584 + _ta = 593 + _te = 600 + _th = 605 + _tl = 616 + _tn = 619 + _tr = 623 + _uk = 646 + _ur = 652 + _uz = 653 + _vi = 658 + _zh = 708 + _zu = 710 + _jbo = 265 + _ami = 1033 + _bnn = 1740 + _hak = 221 + _tlh = 13850 + _lb = 340 + _nv = 458 + _pwn = 11438 + _tao = 13571 + _tay = 13581 + _tsu = 14045 + _nn = 447 + _sfb = 13012 + _vgt = 15084 + _sgg = 13043 + _cmn = 2390 + _nan = 428 + _hsn = 240 ) -const langPrivateStart = 0x2f67 +const langPrivateStart = 0x2d09 -const langPrivateEnd = 0x316e +const langPrivateEnd = 0x2f10 // lang holds an alphabetically sorted list of ISO-639 language identifiers. // All entries are 4 bytes. The index of the identifier (divided by 4) is the language tag. @@ -125,132 +125,72 @@ const langPrivateEnd = 0x316e // the second and third letter of the 3-letter ISO code. // - otherwise: a 0 and a by 2 bits right-shifted index into altLangISO3. // For 3-byte language identifiers the 4th byte is 0. -const lang tag.Index = "" + // Size: 5280 bytes - "---\x00aaaraai\x00aak\x00aau\x00abbkabi\x00abr\x00abt\x00aby\x00acd\x00a" + - "ce\x00ach\x00ada\x00ade\x00adj\x00ady\x00adz\x00aeveaeb\x00aey\x00affrag" + - "c\x00agd\x00agg\x00agm\x00ago\x00agq\x00aha\x00ahl\x00aho\x00ajg\x00akka" + - "akk\x00ala\x00ali\x00aln\x00alt\x00ammhamm\x00amn\x00amo\x00amp\x00anrga" + - "nc\x00ank\x00ann\x00any\x00aoj\x00aom\x00aoz\x00apc\x00apd\x00ape\x00apr" + - "\x00aps\x00apz\x00arraarc\x00arh\x00arn\x00aro\x00arq\x00ars\x00ary\x00a" + - "rz\x00assmasa\x00ase\x00asg\x00aso\x00ast\x00ata\x00atg\x00atj\x00auy" + - "\x00avvaavl\x00avn\x00avt\x00avu\x00awa\x00awb\x00awo\x00awx\x00ayymayb" + - "\x00azzebaakbal\x00ban\x00bap\x00bar\x00bas\x00bav\x00bax\x00bba\x00bbb" + - "\x00bbc\x00bbd\x00bbj\x00bbp\x00bbr\x00bcf\x00bch\x00bci\x00bcm\x00bcn" + - "\x00bco\x00bcq\x00bcu\x00bdd\x00beelbef\x00beh\x00bej\x00bem\x00bet\x00b" + - "ew\x00bex\x00bez\x00bfd\x00bfq\x00bft\x00bfy\x00bgulbgc\x00bgn\x00bgx" + - "\x00bhihbhb\x00bhg\x00bhi\x00bhk\x00bhl\x00bho\x00bhy\x00biisbib\x00big" + - "\x00bik\x00bim\x00bin\x00bio\x00biq\x00bjh\x00bji\x00bjj\x00bjn\x00bjo" + - "\x00bjr\x00bjz\x00bkc\x00bkm\x00bkq\x00bku\x00bkv\x00blt\x00bmambmh\x00b" + - "mk\x00bmq\x00bmu\x00bnenbng\x00bnm\x00bnp\x00boodboj\x00bom\x00bon\x00bp" + - "y\x00bqc\x00bqi\x00bqp\x00bqv\x00brrebra\x00brh\x00brx\x00brz\x00bsosbsj" + - "\x00bsq\x00bss\x00bst\x00bto\x00btt\x00btv\x00bua\x00buc\x00bud\x00bug" + - "\x00buk\x00bum\x00buo\x00bus\x00buu\x00bvb\x00bwd\x00bwr\x00bxh\x00bye" + - "\x00byn\x00byr\x00bys\x00byv\x00byx\x00bza\x00bze\x00bzf\x00bzh\x00bzw" + - "\x00caatcan\x00cbj\x00cch\x00ccp\x00ceheceb\x00cfa\x00cgg\x00chhachk\x00" + - "chm\x00cho\x00chp\x00chr\x00cja\x00cjm\x00cjv\x00ckb\x00ckl\x00cko\x00ck" + - "y\x00cla\x00cme\x00cooscop\x00cps\x00crrecrj\x00crk\x00crl\x00crm\x00crs" + - "\x00csescsb\x00csw\x00ctd\x00cuhucvhvcyymdaandad\x00daf\x00dag\x00dah" + - "\x00dak\x00dar\x00dav\x00dbd\x00dbq\x00dcc\x00ddn\x00deeuded\x00den\x00d" + - "ga\x00dgh\x00dgi\x00dgl\x00dgr\x00dgz\x00dia\x00dje\x00dnj\x00dob\x00doi" + - "\x00dop\x00dow\x00dri\x00drs\x00dsb\x00dtm\x00dtp\x00dts\x00dty\x00dua" + - "\x00duc\x00dud\x00dug\x00dvivdva\x00dww\x00dyo\x00dyu\x00dzzodzg\x00ebu" + - "\x00eeweefi\x00egl\x00egy\x00eky\x00elllema\x00emi\x00enngenn\x00enq\x00" + - "eopoeri\x00es\x00\x05esu\x00etstetr\x00ett\x00etu\x00etx\x00euusewo\x00e" + - "xt\x00faasfaa\x00fab\x00fag\x00fai\x00fan\x00ffulffi\x00ffm\x00fiinfia" + - "\x00fil\x00fit\x00fjijflr\x00fmp\x00foaofod\x00fon\x00for\x00fpe\x00fqs" + - "\x00frrafrc\x00frp\x00frr\x00frs\x00fub\x00fud\x00fue\x00fuf\x00fuh\x00f" + - "uq\x00fur\x00fuv\x00fuy\x00fvr\x00fyrygalegaa\x00gaf\x00gag\x00gah\x00ga" + - "j\x00gam\x00gan\x00gaw\x00gay\x00gbf\x00gbm\x00gby\x00gbz\x00gcr\x00gdla" + - "gde\x00gdn\x00gdr\x00geb\x00gej\x00gel\x00gez\x00gfk\x00ggn\x00ghs\x00gi" + - "l\x00gim\x00gjk\x00gjn\x00gju\x00gkn\x00gkp\x00gllgglk\x00gmm\x00gmv\x00" + - "gnrngnd\x00gng\x00god\x00gof\x00goi\x00gom\x00gon\x00gor\x00gos\x00got" + - "\x00grc\x00grt\x00grw\x00gsw\x00guujgub\x00guc\x00gud\x00gur\x00guw\x00g" + - "ux\x00guz\x00gvlvgvf\x00gvr\x00gvs\x00gwc\x00gwi\x00gwt\x00gyi\x00haauha" + - "g\x00hak\x00ham\x00haw\x00haz\x00hbb\x00hdy\x00heebhhy\x00hiinhia\x00hif" + - "\x00hig\x00hih\x00hil\x00hla\x00hlu\x00hmd\x00hmt\x00hnd\x00hne\x00hnj" + - "\x00hnn\x00hno\x00homohoc\x00hoj\x00hot\x00hrrvhsb\x00hsn\x00htathuunhui" + - "\x00hyyehzerianaian\x00iar\x00iba\x00ibb\x00iby\x00ica\x00ich\x00idndidd" + - "\x00idi\x00idu\x00ieleigboigb\x00ige\x00iiiiijj\x00ikpkikk\x00ikt\x00ikw" + - "\x00ikx\x00ilo\x00imo\x00inndinh\x00iodoiou\x00iri\x00isslittaiukuiw\x00" + - "\x03iwm\x00iws\x00izh\x00izi\x00japnjab\x00jam\x00jbo\x00jbu\x00jen\x00j" + - "gk\x00jgo\x00ji\x00\x06jib\x00jmc\x00jml\x00jra\x00jut\x00jvavjwavkaatka" + - "a\x00kab\x00kac\x00kad\x00kai\x00kaj\x00kam\x00kao\x00kbd\x00kbm\x00kbp" + - "\x00kbq\x00kbx\x00kby\x00kcg\x00kck\x00kcl\x00kct\x00kde\x00kdh\x00kdl" + - "\x00kdt\x00kea\x00ken\x00kez\x00kfo\x00kfr\x00kfy\x00kgonkge\x00kgf\x00k" + - "gp\x00kha\x00khb\x00khn\x00khq\x00khs\x00kht\x00khw\x00khz\x00kiikkij" + - "\x00kiu\x00kiw\x00kjuakjd\x00kjg\x00kjs\x00kjy\x00kkazkkc\x00kkj\x00klal" + - "kln\x00klq\x00klt\x00klx\x00kmhmkmb\x00kmh\x00kmo\x00kms\x00kmu\x00kmw" + - "\x00knanknp\x00koorkoi\x00kok\x00kol\x00kos\x00koz\x00kpe\x00kpf\x00kpo" + - "\x00kpr\x00kpx\x00kqb\x00kqf\x00kqs\x00kqy\x00kraukrc\x00kri\x00krj\x00k" + - "rl\x00krs\x00kru\x00ksasksb\x00ksd\x00ksf\x00ksh\x00ksj\x00ksr\x00ktb" + - "\x00ktm\x00kto\x00kuurkub\x00kud\x00kue\x00kuj\x00kum\x00kun\x00kup\x00k" + - "us\x00kvomkvg\x00kvr\x00kvx\x00kw\x00\x01kwj\x00kwo\x00kxa\x00kxc\x00kxm" + - "\x00kxp\x00kxw\x00kxz\x00kyirkye\x00kyx\x00kzr\x00laatlab\x00lad\x00lag" + - "\x00lah\x00laj\x00las\x00lbtzlbe\x00lbu\x00lbw\x00lcm\x00lcp\x00ldb\x00l" + - "ed\x00lee\x00lem\x00lep\x00leq\x00leu\x00lez\x00lguglgg\x00liimlia\x00li" + - "d\x00lif\x00lig\x00lih\x00lij\x00lis\x00ljp\x00lki\x00lkt\x00lle\x00lln" + - "\x00lmn\x00lmo\x00lmp\x00lninlns\x00lnu\x00loaoloj\x00lok\x00lol\x00lor" + - "\x00los\x00loz\x00lrc\x00ltitltg\x00luublua\x00luo\x00luy\x00luz\x00lvav" + - "lwl\x00lzh\x00lzz\x00mad\x00maf\x00mag\x00mai\x00mak\x00man\x00mas\x00ma" + - "w\x00maz\x00mbh\x00mbo\x00mbq\x00mbu\x00mbw\x00mci\x00mcp\x00mcq\x00mcr" + - "\x00mcu\x00mda\x00mde\x00mdf\x00mdh\x00mdj\x00mdr\x00mdx\x00med\x00mee" + - "\x00mek\x00men\x00mer\x00met\x00meu\x00mfa\x00mfe\x00mfn\x00mfo\x00mfq" + - "\x00mglgmgh\x00mgl\x00mgo\x00mgp\x00mgy\x00mhahmhi\x00mhl\x00mirimif\x00" + - "min\x00mis\x00miw\x00mkkdmki\x00mkl\x00mkp\x00mkw\x00mlalmle\x00mlp\x00m" + - "ls\x00mmo\x00mmu\x00mmx\x00mnonmna\x00mnf\x00mni\x00mnw\x00moolmoa\x00mo" + - "e\x00moh\x00mos\x00mox\x00mpp\x00mps\x00mpt\x00mpx\x00mql\x00mrarmrd\x00" + - "mrj\x00mro\x00mssamtltmtc\x00mtf\x00mti\x00mtr\x00mua\x00mul\x00mur\x00m" + - "us\x00mva\x00mvn\x00mvy\x00mwk\x00mwr\x00mwv\x00mxc\x00mxm\x00myyamyk" + - "\x00mym\x00myv\x00myw\x00myx\x00myz\x00mzk\x00mzm\x00mzn\x00mzp\x00mzw" + - "\x00mzz\x00naaunac\x00naf\x00nah\x00nak\x00nan\x00nap\x00naq\x00nas\x00n" + - "bobnca\x00nce\x00ncf\x00nch\x00nco\x00ncu\x00nddendc\x00nds\x00neepneb" + - "\x00new\x00nex\x00nfr\x00ngdonga\x00ngb\x00ngl\x00nhb\x00nhe\x00nhw\x00n" + - "if\x00nii\x00nij\x00nin\x00niu\x00niy\x00niz\x00njo\x00nkg\x00nko\x00nll" + - "dnmg\x00nmz\x00nnnonnf\x00nnh\x00nnk\x00nnm\x00noornod\x00noe\x00non\x00" + - "nop\x00nou\x00nqo\x00nrblnrb\x00nsk\x00nsn\x00nso\x00nss\x00ntm\x00ntr" + - "\x00nui\x00nup\x00nus\x00nuv\x00nux\x00nvavnwb\x00nxq\x00nxr\x00nyyanym" + - "\x00nyn\x00nzi\x00occiogc\x00ojjiokr\x00okv\x00omrmong\x00onn\x00ons\x00" + - "opm\x00orrioro\x00oru\x00osssosa\x00ota\x00otk\x00ozm\x00paanpag\x00pal" + - "\x00pam\x00pap\x00pau\x00pbi\x00pcd\x00pcm\x00pdc\x00pdt\x00ped\x00peo" + - "\x00pex\x00pfl\x00phl\x00phn\x00pilipil\x00pip\x00pka\x00pko\x00plolpla" + - "\x00pms\x00png\x00pnn\x00pnt\x00pon\x00ppo\x00pra\x00prd\x00prg\x00psusp" + - "ss\x00ptorptp\x00puu\x00pwa\x00quuequc\x00qug\x00rai\x00raj\x00rao\x00rc" + - "f\x00rej\x00rel\x00res\x00rgn\x00rhg\x00ria\x00rif\x00rjs\x00rkt\x00rmoh" + - "rmf\x00rmo\x00rmt\x00rmu\x00rnunrna\x00rng\x00roonrob\x00rof\x00roo\x00r" + - "ro\x00rtm\x00ruusrue\x00rug\x00rw\x00\x04rwk\x00rwo\x00ryu\x00saansaf" + - "\x00sah\x00saq\x00sas\x00sat\x00saz\x00sba\x00sbe\x00sbp\x00scrdsck\x00s" + - "cl\x00scn\x00sco\x00scs\x00sdndsdc\x00sdh\x00semesef\x00seh\x00sei\x00se" + - "s\x00sgagsga\x00sgs\x00sgw\x00sgz\x00sh\x00\x02shi\x00shk\x00shn\x00shu" + - "\x00siinsid\x00sig\x00sil\x00sim\x00sjr\x00sklkskc\x00skr\x00sks\x00sllv" + - "sld\x00sli\x00sll\x00sly\x00smmosma\x00smi\x00smj\x00smn\x00smp\x00smq" + - "\x00sms\x00snnasnc\x00snk\x00snp\x00snx\x00sny\x00soomsok\x00soq\x00sou" + - "\x00soy\x00spd\x00spl\x00sps\x00sqqisrrpsrb\x00srn\x00srr\x00srx\x00sssw" + - "ssd\x00ssg\x00ssy\x00stotstk\x00stq\x00suunsua\x00sue\x00suk\x00sur\x00s" + - "us\x00svweswwaswb\x00swc\x00swg\x00swp\x00swv\x00sxn\x00sxw\x00syl\x00sy" + - "r\x00szl\x00taamtaj\x00tal\x00tan\x00taq\x00tbc\x00tbd\x00tbf\x00tbg\x00" + - "tbo\x00tbw\x00tbz\x00tci\x00tcy\x00tdd\x00tdg\x00tdh\x00teelted\x00tem" + - "\x00teo\x00tet\x00tfi\x00tggktgc\x00tgo\x00tgu\x00thhathl\x00thq\x00thr" + - "\x00tiirtif\x00tig\x00tik\x00tim\x00tio\x00tiv\x00tkuktkl\x00tkr\x00tkt" + - "\x00tlgltlf\x00tlx\x00tly\x00tmh\x00tmy\x00tnsntnh\x00toontof\x00tog\x00" + - "toq\x00tpi\x00tpm\x00tpz\x00tqo\x00trurtru\x00trv\x00trw\x00tssotsd\x00t" + - "sf\x00tsg\x00tsj\x00tsw\x00ttatttd\x00tte\x00ttj\x00ttr\x00tts\x00ttt" + - "\x00tuh\x00tul\x00tum\x00tuq\x00tvd\x00tvl\x00tvu\x00twwitwh\x00twq\x00t" + - "xg\x00tyahtya\x00tyv\x00tzm\x00ubu\x00udm\x00ugiguga\x00ukkruli\x00umb" + - "\x00und\x00unr\x00unx\x00urrduri\x00urt\x00urw\x00usa\x00utr\x00uvh\x00u" + - "vl\x00uzzbvag\x00vai\x00van\x00veenvec\x00vep\x00viievic\x00viv\x00vls" + - "\x00vmf\x00vmw\x00voolvot\x00vro\x00vun\x00vut\x00walnwae\x00waj\x00wal" + - "\x00wan\x00war\x00wbp\x00wbq\x00wbr\x00wci\x00wer\x00wgi\x00whg\x00wib" + - "\x00wiu\x00wiv\x00wja\x00wji\x00wls\x00wmo\x00wnc\x00wni\x00wnu\x00woolw" + - "ob\x00wos\x00wrs\x00wsk\x00wtm\x00wuu\x00wuv\x00wwa\x00xav\x00xbi\x00xcr" + - "\x00xes\x00xhhoxla\x00xlc\x00xld\x00xmf\x00xmn\x00xmr\x00xna\x00xnr\x00x" + - "og\x00xon\x00xpr\x00xrb\x00xsa\x00xsi\x00xsm\x00xsr\x00xwe\x00yam\x00yao" + - "\x00yap\x00yas\x00yat\x00yav\x00yay\x00yaz\x00yba\x00ybb\x00yby\x00yer" + - "\x00ygr\x00ygw\x00yiidyko\x00yle\x00ylg\x00yll\x00yml\x00yooryon\x00yrb" + - "\x00yre\x00yrl\x00yss\x00yua\x00yue\x00yuj\x00yut\x00yuw\x00zahazag\x00z" + - "bl\x00zdj\x00zea\x00zgh\x00zhhozia\x00zlm\x00zmi\x00zne\x00zuulzxx\x00zz" + - "a\x00\xff\xff\xff\xff" +var lang tag.Index = "" + // Size: 2856 bytes + "---\x00aaarabbkabr\x00ace\x00ach\x00ada\x00ady\x00aeveaeb\x00affragq\x00" + + "aho\x00akkaakk\x00aln\x00alt\x00ammhamo\x00anrgaoz\x00arraarc\x00arn\x00" + + "aro\x00arq\x00ary\x00arz\x00assmasa\x00ase\x00ast\x00atj\x00avvaawa\x00a" + + "yymazzebaakbal\x00ban\x00bap\x00bar\x00bas\x00bax\x00bbc\x00bbj\x00bci" + + "\x00beelbej\x00bem\x00bew\x00bez\x00bfd\x00bfq\x00bft\x00bfy\x00bgulbgc" + + "\x00bgn\x00bgx\x00bhihbhb\x00bhi\x00bhk\x00bho\x00biisbik\x00bin\x00bjj" + + "\x00bjn\x00bkm\x00bku\x00blt\x00bmambmq\x00bnenboodbpy\x00bqi\x00bqv\x00" + + "brrebra\x00brh\x00brx\x00bsosbsq\x00bss\x00bto\x00btv\x00bua\x00buc\x00b" + + "ug\x00bum\x00bvb\x00byn\x00byv\x00bze\x00caatcch\x00ccp\x00ceheceb\x00cg" + + "g\x00chhachk\x00chm\x00cho\x00chp\x00chr\x00cja\x00cjm\x00ckb\x00cooscop" + + "\x00cps\x00crrecrj\x00crk\x00crl\x00crm\x00crs\x00csescsb\x00csw\x00ctd" + + "\x00cuhucvhvcyymdaandak\x00dar\x00dav\x00dcc\x00deeuden\x00dgr\x00dje" + + "\x00dnj\x00doi\x00dsb\x00dtm\x00dtp\x00dty\x00dua\x00dvivdyo\x00dyu\x00d" + + "zzoebu\x00eeweefi\x00egl\x00egy\x00eky\x00elllenngeopoes\x00\x05esu\x00e" + + "tstett\x00euusewo\x00ext\x00faasfan\x00ffulffm\x00fiinfia\x00fil\x00fit" + + "\x00fjijfoaofon\x00frrafrc\x00frp\x00frr\x00frs\x00fud\x00fuq\x00fur\x00" + + "fuv\x00fvr\x00fyrygalegaa\x00gag\x00gan\x00gay\x00gbm\x00gbz\x00gcr\x00g" + + "dlagez\x00ggn\x00gil\x00gjk\x00gju\x00gllgglk\x00gnrngom\x00gon\x00gor" + + "\x00gos\x00got\x00grc\x00grt\x00gsw\x00guujgub\x00guc\x00gur\x00guw\x00g" + + "uz\x00gvlvgvr\x00gwi\x00haauhak\x00haw\x00haz\x00heebhiinhif\x00hil\x00h" + + "lu\x00hmd\x00hnd\x00hne\x00hnj\x00hnn\x00hno\x00homohoc\x00hoj\x00hrrvhs" + + "b\x00hsn\x00htathuunhyyehzerianaiba\x00ibb\x00idndieleigboiiiiikpkikt" + + "\x00ilo\x00inndinh\x00iodoisslittaiukuiw\x00\x03izh\x00japnjam\x00jbo" + + "\x00jgo\x00ji\x00\x06jmc\x00jml\x00jut\x00jvavjwavkaatkaa\x00kab\x00kac" + + "\x00kaj\x00kam\x00kao\x00kbd\x00kcg\x00kck\x00kde\x00kdt\x00kea\x00ken" + + "\x00kfo\x00kfr\x00kfy\x00kgonkge\x00kgp\x00kha\x00khb\x00khn\x00khq\x00k" + + "ht\x00khw\x00kiikkiu\x00kjuakjg\x00kkazkkj\x00klalkln\x00kmhmkmb\x00knan" + + "koorkoi\x00kok\x00kos\x00kpe\x00kraukrc\x00kri\x00krj\x00krl\x00kru\x00k" + + "sasksb\x00ksf\x00ksh\x00kuurkum\x00kvomkvr\x00kvx\x00kw\x00\x01kxm\x00kx" + + "p\x00kyirlaatlab\x00lad\x00lag\x00lah\x00laj\x00lbtzlbe\x00lbw\x00lcp" + + "\x00lep\x00lez\x00lgugliimlif\x00lij\x00lis\x00ljp\x00lki\x00lkt\x00lmn" + + "\x00lmo\x00lninloaolol\x00loz\x00lrc\x00ltitltg\x00luublua\x00luo\x00luy" + + "\x00luz\x00lvavlwl\x00lzh\x00lzz\x00mad\x00maf\x00mag\x00mai\x00mak\x00m" + + "an\x00mas\x00maz\x00mdf\x00mdh\x00mdr\x00men\x00mer\x00mfa\x00mfe\x00mgl" + + "gmgh\x00mgo\x00mgp\x00mgy\x00mhahmirimin\x00mis\x00mkkdmlalmls\x00mnonmn" + + "i\x00mnw\x00moolmoe\x00moh\x00mos\x00mrarmrd\x00mrj\x00mro\x00mssamtltmt" + + "r\x00mua\x00mul\x00mus\x00mvy\x00mwk\x00mwr\x00mwv\x00mxc\x00myyamyv\x00" + + "myx\x00myz\x00mzn\x00naaunah\x00nan\x00nap\x00naq\x00nbobnch\x00nddendc" + + "\x00nds\x00neepnew\x00ngdongl\x00nhe\x00nhw\x00nij\x00niu\x00njo\x00nlld" + + "nmg\x00nnnonnh\x00noornod\x00noe\x00non\x00nqo\x00nrblnsk\x00nso\x00nus" + + "\x00nvavnxq\x00nyyanym\x00nyn\x00nzi\x00occiojjiomrmorriosssosa\x00otk" + + "\x00paanpag\x00pal\x00pam\x00pap\x00pau\x00pcd\x00pcm\x00pdc\x00pdt\x00p" + + "eo\x00pfl\x00phn\x00pilipka\x00pko\x00plolpms\x00pnt\x00pon\x00pra\x00pr" + + "d\x00prg\x00psusptorpuu\x00quuequc\x00qug\x00raj\x00rcf\x00rej\x00rgn" + + "\x00ria\x00rif\x00rjs\x00rkt\x00rmohrmf\x00rmo\x00rmt\x00rmu\x00rnunrng" + + "\x00roonrob\x00rof\x00rtm\x00ruusrue\x00rug\x00rw\x00\x04rwk\x00ryu\x00s" + + "aansaf\x00sah\x00saq\x00sas\x00sat\x00saz\x00sbp\x00scrdsck\x00scn\x00sc" + + "o\x00scs\x00sdndsdc\x00sdh\x00semesef\x00seh\x00sei\x00ses\x00sgagsga" + + "\x00sgs\x00sh\x00\x02shi\x00shn\x00siinsid\x00sklkskr\x00sllvsli\x00sly" + + "\x00smmosma\x00smi\x00smj\x00smn\x00smp\x00sms\x00snnasnk\x00soomsou\x00" + + "sqqisrrpsrb\x00srn\x00srr\x00srx\x00ssswssy\x00stotstq\x00suunsuk\x00sus" + + "\x00svweswwaswb\x00swc\x00swg\x00swv\x00sxn\x00syl\x00syr\x00szl\x00taam" + + "taj\x00tbw\x00tcy\x00tdd\x00tdg\x00tdh\x00teeltem\x00teo\x00tet\x00tggkt" + + "hhathl\x00thq\x00thr\x00tiirtig\x00tiv\x00tkuktkl\x00tkr\x00tkt\x00tlglt" + + "ly\x00tmh\x00tnsntoontog\x00tpi\x00trurtru\x00trv\x00tssotsd\x00tsf\x00t" + + "sg\x00tsj\x00ttatttj\x00tts\x00ttt\x00tum\x00tvl\x00twwitwq\x00txg\x00ty" + + "ahtyv\x00tzm\x00udm\x00ugiguga\x00ukkruli\x00umb\x00und\x00unr\x00unx" + + "\x00urrduzzbvai\x00veenvec\x00vep\x00viievic\x00vls\x00vmf\x00vmw\x00voo" + + "lvot\x00vro\x00vun\x00walnwae\x00wal\x00war\x00wbp\x00wbq\x00wbr\x00wls" + + "\x00wni\x00woolwtm\x00wuu\x00xav\x00xcr\x00xhhoxlc\x00xld\x00xmf\x00xmn" + + "\x00xmr\x00xna\x00xnr\x00xog\x00xpr\x00xsa\x00xsr\x00yao\x00yap\x00yav" + + "\x00ybb\x00yiidyooryrl\x00yua\x00yue\x00zahazag\x00zbl\x00zdj\x00zea\x00" + + "zgh\x00zhhozmi\x00zuulzxx\x00zza\x00\xff\xff\xff\xff" -const langNoIndexOffset = 1319 +const langNoIndexOffset = 713 // langNoIndex is a bit vector of all 3-letter language codes that are not used as an index // in lookup tables. The language ids for these language codes are derived directly @@ -258,194 +198,194 @@ const langNoIndexOffset = 1319 // Size: 2197 bytes, 2197 elements var langNoIndex = [2197]uint8{ // Entry 0 - 3F - 0xff, 0xf8, 0xed, 0xfe, 0xeb, 0xd7, 0x3b, 0xd2, - 0xfb, 0xbf, 0x7a, 0xfa, 0x37, 0x1d, 0x3c, 0x57, - 0x6e, 0x97, 0x73, 0x38, 0xfb, 0xea, 0xbf, 0x70, - 0xad, 0x03, 0xff, 0xff, 0xcf, 0x05, 0x84, 0x62, - 0xe9, 0xbf, 0xfd, 0xbf, 0xbf, 0xf7, 0xfd, 0x77, - 0x0f, 0xff, 0xef, 0x6f, 0xff, 0xfb, 0xdf, 0xe2, - 0xc9, 0xf8, 0x7f, 0x7e, 0x4d, 0xb8, 0x0a, 0x6a, - 0x7c, 0xea, 0xe3, 0xfa, 0x7a, 0xbf, 0x67, 0xff, + 0xff, 0xfd, 0xfd, 0xfe, 0xef, 0xf7, 0xbf, 0xd2, + 0xfb, 0xbf, 0xfe, 0xfa, 0xb7, 0x1d, 0x3c, 0x57, + 0x6f, 0x97, 0x73, 0xf8, 0xff, 0xef, 0xff, 0x70, + 0xaf, 0x03, 0xff, 0xff, 0xcf, 0x05, 0x85, 0x62, + 0xe9, 0xbf, 0xfd, 0xff, 0xff, 0xf7, 0xfd, 0x77, + 0xbf, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xe3, + 0xc9, 0xff, 0xff, 0xff, 0x4d, 0xb8, 0x0a, 0x6a, + 0x7e, 0xfa, 0xe3, 0xfe, 0x7e, 0xff, 0x77, 0xff, // Entry 40 - 7F - 0xff, 0xff, 0xff, 0xdf, 0x2a, 0x54, 0x91, 0xc0, - 0x5d, 0xe3, 0x97, 0x14, 0x07, 0x20, 0xdd, 0xed, - 0x9f, 0x3f, 0xc9, 0x21, 0xf8, 0x3f, 0x94, 0x35, - 0x7c, 0x5f, 0xff, 0x5f, 0x8e, 0x6e, 0xdf, 0xff, - 0xff, 0xff, 0x55, 0x7c, 0xd3, 0xfd, 0xbf, 0xb5, - 0x7b, 0xdf, 0x7f, 0xf7, 0xca, 0xfe, 0xdb, 0xa3, - 0xa8, 0xff, 0x1f, 0x67, 0x7f, 0xeb, 0xef, 0xce, - 0xff, 0xff, 0x9f, 0xff, 0xb7, 0xef, 0xfe, 0xcf, + 0xff, 0xff, 0xff, 0xdf, 0x2b, 0xf4, 0xf1, 0xe0, + 0x5d, 0xe7, 0x9f, 0x14, 0x07, 0x20, 0xdf, 0xed, + 0x9f, 0x3f, 0xc9, 0x21, 0xf8, 0x3f, 0x94, 0xf7, + 0x7e, 0xff, 0xff, 0xff, 0xfe, 0x7f, 0xff, 0xff, + 0xff, 0xff, 0x5f, 0xfc, 0xdb, 0xfd, 0xbf, 0xb5, + 0x7b, 0xdf, 0x7f, 0xf7, 0xeb, 0xfe, 0xff, 0xa7, + 0xbd, 0xff, 0x7f, 0xf7, 0xff, 0xef, 0xef, 0xef, + 0xff, 0xff, 0x9f, 0xff, 0xff, 0xef, 0xff, 0xdf, // Entry 80 - BF - 0xdb, 0xff, 0xf3, 0xcd, 0xfb, 0x2f, 0xff, 0xff, - 0xbb, 0xee, 0xf7, 0xbd, 0xdb, 0xff, 0x5f, 0xf7, - 0xfd, 0xf2, 0xfd, 0xff, 0x5e, 0x2f, 0x3b, 0xba, - 0x7e, 0xff, 0xff, 0xfe, 0xf7, 0xff, 0xdd, 0xff, - 0xfd, 0xdf, 0xfb, 0xfe, 0x9d, 0xb4, 0xd3, 0xff, - 0xef, 0xff, 0xdf, 0xf7, 0x7f, 0xb7, 0xfd, 0xd5, + 0xff, 0xff, 0xf3, 0xff, 0xfb, 0x2f, 0xff, 0xff, + 0xfb, 0xee, 0xff, 0xbd, 0xdb, 0xff, 0xdf, 0xf7, + 0xff, 0xfa, 0xfd, 0xff, 0x7e, 0xaf, 0x7b, 0xfe, + 0x7f, 0xff, 0xff, 0xfe, 0xff, 0xff, 0xdf, 0xff, + 0xff, 0xdf, 0xfb, 0xff, 0xfd, 0xfc, 0xfb, 0xff, + 0xff, 0xff, 0xff, 0xf7, 0x7f, 0xbf, 0xfd, 0xd5, 0xa5, 0x77, 0x40, 0xff, 0x9c, 0xc1, 0x41, 0x2c, - 0x08, 0x20, 0x41, 0x00, 0x50, 0x40, 0x00, 0x80, + 0x08, 0x24, 0x41, 0x00, 0x50, 0x40, 0x00, 0x80, // Entry C0 - FF 0xfb, 0x4a, 0xf2, 0x9f, 0xb4, 0x42, 0x41, 0x96, - 0x1b, 0x14, 0x08, 0xf2, 0x2b, 0xe7, 0x17, 0x56, - 0x45, 0x7d, 0x0e, 0x1c, 0x37, 0x71, 0xf3, 0xef, + 0x9b, 0x14, 0x88, 0xf6, 0x7b, 0xe7, 0x17, 0x56, + 0x55, 0x7d, 0x0e, 0x1c, 0x37, 0x71, 0xf3, 0xef, 0x97, 0xff, 0x5d, 0x38, 0x64, 0x08, 0x00, 0x10, 0xbc, 0x87, 0xaf, 0xdf, 0xff, 0xf7, 0x73, 0x35, 0x3e, 0x87, 0xc7, 0xdf, 0xff, 0x00, 0x81, 0x00, 0xb0, 0x05, 0x80, 0x00, 0x00, 0x00, 0x00, 0x03, - 0x40, 0x00, 0x40, 0x92, 0x21, 0x50, 0xb1, 0x5d, + 0x40, 0x00, 0x40, 0x92, 0x21, 0xd0, 0xbf, 0x5d, // Entry 100 - 13F - 0xfd, 0xdc, 0xbe, 0x5e, 0x00, 0x00, 0x02, 0x64, - 0x0d, 0x19, 0x41, 0xdf, 0x79, 0x22, 0x00, 0x00, - 0x00, 0x5e, 0x64, 0xdc, 0x24, 0xe5, 0xd9, 0xe3, + 0xfd, 0xde, 0xfe, 0x5e, 0x00, 0x00, 0x02, 0x64, + 0x8d, 0x19, 0xc1, 0xdf, 0x79, 0x22, 0x00, 0x00, + 0x00, 0xdf, 0x6d, 0xdc, 0x26, 0xe5, 0xd9, 0xf3, 0xfe, 0xff, 0xfd, 0xcb, 0x9f, 0x14, 0x01, 0x0c, 0x86, 0x00, 0xd1, 0x00, 0xf0, 0xc5, 0x67, 0x5f, - 0x56, 0x89, 0x5e, 0xb5, 0x6c, 0xaf, 0x03, 0x00, - 0x02, 0x00, 0x00, 0x00, 0xc0, 0x37, 0xda, 0x56, - 0x90, 0x69, 0x01, 0x2c, 0x96, 0x69, 0x20, 0xfb, + 0x56, 0x89, 0x5e, 0xb7, 0xec, 0xef, 0x03, 0x00, + 0x02, 0x00, 0x00, 0x00, 0xc0, 0x77, 0xda, 0x57, + 0x90, 0x69, 0x01, 0x2c, 0x96, 0x79, 0xe0, 0xff, // Entry 140 - 17F - 0xff, 0x3f, 0x00, 0x00, 0x00, 0x01, 0x08, 0x16, - 0x01, 0x00, 0x00, 0xb0, 0x14, 0x03, 0x50, 0x06, + 0xff, 0x7f, 0x00, 0x00, 0x00, 0x01, 0x08, 0x56, + 0x01, 0x00, 0x00, 0xb0, 0x14, 0x03, 0x50, 0x16, 0x0a, 0x00, 0x01, 0x00, 0x00, 0x00, 0x11, 0x09, 0x00, 0x00, 0x60, 0x10, 0x00, 0x00, 0x00, 0x10, 0x00, 0x00, 0x44, 0x00, 0x00, 0x10, 0x00, 0x04, 0x08, 0x00, 0x00, 0x04, 0x00, 0x80, 0x28, 0x04, 0x00, 0x00, 0x50, 0xd5, 0x2d, 0x00, 0x64, 0x35, - 0x24, 0x52, 0xf4, 0xd4, 0xbd, 0x62, 0xc9, 0x03, + 0x24, 0x53, 0xf5, 0xd4, 0xbd, 0xe2, 0xcd, 0x03, // Entry 180 - 1BF 0x00, 0x80, 0x00, 0x40, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x04, 0x13, 0x39, 0x01, 0xdd, 0x57, 0x98, - 0x21, 0x18, 0x81, 0x00, 0x00, 0x01, 0x40, 0x82, + 0x00, 0x04, 0x17, 0x39, 0x01, 0xdd, 0x57, 0x98, + 0x21, 0x98, 0xa5, 0x00, 0x00, 0x01, 0x40, 0x82, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x01, 0x40, 0x00, 0x44, 0x00, 0x00, 0x80, 0xea, + 0x01, 0x40, 0x00, 0x44, 0x00, 0x00, 0xb0, 0xfe, 0xa9, 0x39, 0x00, 0x02, 0x00, 0x00, 0x00, 0x04, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x20, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x20, 0x00, 0x40, 0x00, 0x00, 0x00, 0x00, 0x02, 0x00, 0x00, 0x00, // Entry 1C0 - 1FF 0x00, 0x01, 0x28, 0x05, 0x00, 0x00, 0x00, 0x00, - 0x04, 0x20, 0x04, 0xa6, 0x00, 0x04, 0x00, 0x00, - 0x81, 0x50, 0x00, 0x00, 0x00, 0x11, 0x84, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x06, 0x55, - 0x02, 0x10, 0x08, 0x04, 0x00, 0x00, 0x00, 0x40, - 0x30, 0x83, 0x01, 0x00, 0x00, 0x00, 0x11, 0x00, + 0x04, 0x20, 0x04, 0xa6, 0x08, 0x04, 0x00, 0x08, + 0x81, 0x50, 0x00, 0x00, 0x08, 0x11, 0x86, 0x40, + 0x00, 0x00, 0x00, 0x00, 0x40, 0x00, 0x06, 0x55, + 0x02, 0x10, 0x08, 0x04, 0x00, 0x00, 0x00, 0x60, + 0x3b, 0x83, 0x11, 0x00, 0x00, 0x00, 0x11, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x1e, 0xcd, 0xbf, 0x7e, 0xbf, + 0x00, 0x00, 0x00, 0xbe, 0xdf, 0xff, 0xfe, 0xbf, // Entry 200 - 23F - 0xdf, 0xc3, 0x83, 0x82, 0xc0, 0xfb, 0x57, 0x27, - 0xcd, 0x55, 0xe7, 0x01, 0x00, 0x20, 0xb2, 0xc5, - 0xa4, 0x45, 0x25, 0x9b, 0x02, 0xcf, 0xe0, 0xdf, - 0x03, 0x44, 0x08, 0x10, 0x01, 0x04, 0x01, 0xe3, - 0x92, 0x54, 0xdb, 0x28, 0xd1, 0x5f, 0xf6, 0x6d, - 0x79, 0xed, 0x1c, 0x7d, 0x04, 0x08, 0x00, 0x01, - 0x21, 0x12, 0x6c, 0x5f, 0xdd, 0x0e, 0x85, 0x4f, - 0x40, 0x40, 0x00, 0x04, 0xf1, 0xfd, 0x3d, 0x54, + 0xdf, 0xc7, 0x83, 0x82, 0xc0, 0xff, 0xdf, 0x27, + 0xcf, 0x5f, 0xe7, 0x01, 0x10, 0x20, 0xb2, 0xc5, + 0xa4, 0x45, 0x25, 0x9b, 0x03, 0xcf, 0xf0, 0xdf, + 0x03, 0xc4, 0x08, 0x10, 0x01, 0x0e, 0x01, 0xe3, + 0x92, 0x54, 0xdb, 0x38, 0xf1, 0x7f, 0xf7, 0x6d, + 0xf9, 0xff, 0x1c, 0x7d, 0x04, 0x08, 0x00, 0x01, + 0x21, 0x12, 0x6c, 0x5f, 0xdd, 0x0f, 0x85, 0x4f, + 0x40, 0x40, 0x00, 0x04, 0xf9, 0xfd, 0xbd, 0xd4, // Entry 240 - 27F - 0xe8, 0x03, 0xb4, 0x27, 0x23, 0x0d, 0x00, 0x00, - 0x20, 0x7b, 0x38, 0x02, 0x05, 0x84, 0x00, 0xf0, - 0xbb, 0x7e, 0x5a, 0x00, 0x18, 0x04, 0x81, 0x00, - 0x00, 0x00, 0x80, 0x10, 0x90, 0x1c, 0x01, 0x00, + 0xe8, 0x13, 0xf4, 0x27, 0xa3, 0x0d, 0x00, 0x00, + 0x20, 0x7b, 0x39, 0x02, 0x05, 0x84, 0x00, 0xf0, + 0xbf, 0x7f, 0xda, 0x00, 0x18, 0x04, 0x81, 0x00, + 0x00, 0x00, 0x80, 0x10, 0x94, 0x1c, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x10, 0x40, 0x00, 0x04, - 0x08, 0xa0, 0x70, 0xa5, 0x0c, 0x40, 0x00, 0x00, - 0x11, 0x04, 0x04, 0x68, 0x00, 0x20, 0x70, 0xff, - 0x7b, 0x7f, 0x60, 0x00, 0x05, 0x9b, 0xdd, 0x66, + 0x08, 0xb4, 0x7c, 0xa5, 0x0c, 0x40, 0x00, 0x00, + 0x11, 0x04, 0x04, 0x6c, 0x00, 0x20, 0x70, 0xff, + 0xfb, 0x7f, 0x60, 0x00, 0x05, 0x9b, 0xdd, 0x6e, // Entry 280 - 2BF 0x03, 0x00, 0x11, 0x00, 0x00, 0x00, 0x40, 0x05, 0xb5, 0xb6, 0x80, 0x08, 0x04, 0x00, 0x04, 0x51, - 0xe2, 0xef, 0xfd, 0x3f, 0x05, 0x09, 0x08, 0x05, + 0xe2, 0xff, 0xfd, 0x3f, 0x05, 0x09, 0x08, 0x05, 0x40, 0x00, 0x00, 0x00, 0x00, 0x10, 0x00, 0x00, - 0x08, 0x00, 0x00, 0x00, 0x00, 0x81, 0x00, 0x60, - 0xe5, 0x48, 0x00, 0x81, 0x20, 0xc0, 0x05, 0x80, - 0x03, 0x00, 0x00, 0x00, 0xcc, 0x50, 0x40, 0x04, - 0x84, 0x47, 0x84, 0x40, 0x20, 0x10, 0x00, 0x20, + 0x08, 0x00, 0x00, 0x00, 0x00, 0xa1, 0x02, 0x60, + 0xe5, 0x48, 0x14, 0x89, 0x20, 0xc0, 0x47, 0x80, + 0x07, 0x00, 0x00, 0x00, 0xcc, 0x50, 0x40, 0x24, + 0x85, 0x47, 0x84, 0x40, 0x20, 0x10, 0x00, 0x20, // Entry 2C0 - 2FF - 0x02, 0x50, 0x80, 0x11, 0x00, 0x91, 0x6c, 0xe2, - 0x50, 0x27, 0x1d, 0x11, 0x29, 0x06, 0x59, 0xe9, - 0x33, 0x08, 0x00, 0x20, 0x04, 0x40, 0x10, 0x00, - 0x00, 0x00, 0x50, 0x44, 0x92, 0x49, 0xd6, 0x5d, + 0x02, 0x50, 0x88, 0x11, 0x00, 0xd1, 0x6c, 0xee, + 0x50, 0x27, 0x1d, 0x11, 0x69, 0x06, 0x59, 0xe9, + 0x33, 0x08, 0x00, 0x20, 0x05, 0x40, 0x10, 0x00, + 0x00, 0x00, 0x50, 0x44, 0x96, 0x49, 0xd6, 0x5d, 0xa7, 0x81, 0x47, 0x97, 0xfb, 0x00, 0x10, 0x00, - 0x08, 0x00, 0x80, 0x00, 0x40, 0x04, 0x00, 0x01, - 0x02, 0x00, 0x01, 0x40, 0x80, 0x00, 0x00, 0x08, - 0xd8, 0xeb, 0xf6, 0x39, 0xc4, 0x89, 0x12, 0x00, + 0x08, 0x00, 0x80, 0x00, 0x40, 0x45, 0x00, 0x01, + 0x02, 0x00, 0x01, 0x40, 0x80, 0x00, 0x04, 0x08, + 0xf8, 0xeb, 0xf6, 0x39, 0xc4, 0x89, 0x16, 0x00, // Entry 300 - 33F - 0x00, 0x0c, 0x04, 0x01, 0x20, 0x20, 0xdd, 0xa0, - 0x01, 0x00, 0x00, 0x00, 0x12, 0x00, 0x00, 0x00, - 0x04, 0x10, 0xd0, 0x9d, 0x95, 0x13, 0x04, 0x80, + 0x00, 0x0c, 0x04, 0x01, 0x20, 0x20, 0xdd, 0xa2, + 0x01, 0x00, 0x00, 0x00, 0x12, 0x04, 0x00, 0x00, + 0x04, 0x10, 0xf0, 0x9d, 0x95, 0x13, 0x04, 0x80, 0x00, 0x01, 0xd0, 0x12, 0x40, 0x00, 0x10, 0xb0, 0x10, 0x62, 0x4c, 0xd2, 0x02, 0x01, 0x4a, 0x00, - 0x46, 0x04, 0x00, 0x08, 0x02, 0x00, 0x20, 0x80, + 0x46, 0x04, 0x00, 0x08, 0x02, 0x00, 0x20, 0xc0, 0x00, 0x80, 0x06, 0x00, 0x08, 0x00, 0x00, 0x00, 0x00, 0xf0, 0xd8, 0x6f, 0x15, 0x02, 0x08, 0x00, // Entry 340 - 37F 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x10, 0x01, - 0x00, 0x10, 0x00, 0x00, 0x00, 0xf0, 0x84, 0xe3, - 0xdd, 0xbf, 0xf9, 0xf9, 0x3b, 0x7f, 0x7f, 0xdb, - 0xfd, 0xfc, 0xfe, 0xdf, 0xff, 0xfd, 0xff, 0xf6, - 0xfb, 0xfc, 0xf7, 0x1f, 0xff, 0xb3, 0x6c, 0xff, - 0xd9, 0xad, 0xdf, 0xfe, 0xef, 0xba, 0xdf, 0xff, - 0xff, 0xff, 0xb7, 0xdd, 0x7d, 0xbf, 0xab, 0xff, - 0xfd, 0xfd, 0xdf, 0x2f, 0x9c, 0xdf, 0xf3, 0x6f, + 0x00, 0x10, 0x00, 0x00, 0x00, 0xf8, 0x85, 0xe3, + 0xdd, 0xff, 0xff, 0xff, 0xbb, 0xff, 0x7f, 0xfb, + 0xff, 0xfc, 0xfe, 0xdf, 0xff, 0xff, 0xff, 0xf6, + 0xfb, 0xfe, 0xf7, 0x1f, 0xff, 0xb3, 0xed, 0xff, + 0xdb, 0xed, 0xff, 0xfe, 0xff, 0xfe, 0xdf, 0xff, + 0xff, 0xff, 0xf7, 0xff, 0xfd, 0xff, 0xff, 0xff, + 0xfd, 0xff, 0xdf, 0xaf, 0x9c, 0xff, 0xfb, 0xff, // Entry 380 - 3BF - 0xdf, 0xdd, 0xff, 0xfb, 0xee, 0xd2, 0xab, 0x5f, - 0xd5, 0xdf, 0x7f, 0xff, 0xeb, 0xff, 0xe4, 0x4d, - 0xf9, 0xff, 0xfe, 0xf7, 0xfd, 0xdf, 0xfb, 0xbf, - 0xee, 0xdb, 0x6f, 0xef, 0xff, 0x7f, 0xff, 0xff, - 0xf7, 0x5f, 0xd3, 0x3b, 0xfd, 0xd9, 0xdf, 0xeb, - 0xbc, 0x08, 0x05, 0x24, 0xff, 0x07, 0x70, 0xfe, - 0xe6, 0x5e, 0x00, 0x08, 0x00, 0x83, 0x3d, 0x1b, - 0x06, 0xe6, 0x72, 0x60, 0xd1, 0x3c, 0x7f, 0x44, + 0xff, 0xff, 0xff, 0xff, 0xef, 0xd2, 0xbb, 0xdf, + 0xf5, 0xff, 0xff, 0xff, 0xff, 0xff, 0xfe, 0xef, + 0xfd, 0xff, 0xff, 0xf7, 0xfd, 0xff, 0xff, 0xff, + 0xef, 0xdb, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, + 0xff, 0x5f, 0xd3, 0x7b, 0xfd, 0xd9, 0xdf, 0xef, + 0xbc, 0x18, 0x05, 0x2c, 0xff, 0x07, 0xf0, 0xff, + 0xf7, 0x5f, 0x00, 0x08, 0x00, 0xc3, 0x3d, 0x1b, + 0x06, 0xe6, 0x72, 0xf0, 0xdd, 0x3c, 0x7f, 0x44, // Entry 3C0 - 3FF - 0x02, 0x30, 0x9f, 0x7a, 0x16, 0xbd, 0x7f, 0x57, - 0xf2, 0xff, 0x31, 0xff, 0xf2, 0x1e, 0x90, 0xf7, - 0xf1, 0xf9, 0x45, 0x80, 0x01, 0x02, 0x00, 0x00, + 0x02, 0x30, 0x9f, 0x7a, 0x16, 0xfd, 0xff, 0x57, + 0xf2, 0xff, 0x39, 0xff, 0xf2, 0x1e, 0x95, 0xf7, + 0xf7, 0xff, 0x45, 0x80, 0x01, 0x02, 0x00, 0x00, 0x40, 0x54, 0x9f, 0x8a, 0xd9, 0xd9, 0x0e, 0x11, 0x84, 0x51, 0xc0, 0xf3, 0xfb, 0x47, 0x00, 0x01, 0x05, 0xd1, 0x50, 0x58, 0x00, 0x00, 0x00, 0x10, 0x04, 0x02, 0x00, 0x00, 0x0a, 0x00, 0x17, 0xd2, - 0xb9, 0xfd, 0xfc, 0xba, 0xfe, 0xef, 0xc7, 0xbe, + 0xf9, 0xfd, 0xfe, 0xff, 0xff, 0xff, 0xff, 0xff, // Entry 400 - 43F - 0x53, 0x6f, 0xdf, 0xe7, 0xdb, 0x65, 0xbb, 0x7f, - 0xfa, 0xff, 0x77, 0xf3, 0xef, 0xbf, 0xfd, 0xf7, - 0xdf, 0xdf, 0x9b, 0x7f, 0xff, 0xff, 0x7f, 0x6f, - 0xf7, 0xfb, 0xeb, 0xdf, 0xbc, 0xff, 0xbf, 0x6b, - 0x7b, 0xfb, 0xff, 0xce, 0x76, 0xbd, 0xf7, 0xf7, - 0xdf, 0xdc, 0xf7, 0xf7, 0xff, 0xdf, 0xf3, 0xfe, - 0xef, 0xff, 0xff, 0xff, 0xb6, 0x7f, 0x7f, 0xde, - 0xf7, 0xb9, 0xeb, 0x77, 0xff, 0xfb, 0xbf, 0xdf, + 0xd7, 0x6f, 0xff, 0xff, 0xdf, 0x7d, 0xbb, 0xff, + 0xff, 0xff, 0xf7, 0xf3, 0xef, 0xff, 0xff, 0xf7, + 0xff, 0xdf, 0xdb, 0x7f, 0xff, 0xff, 0x7f, 0xff, + 0xff, 0xff, 0xef, 0xff, 0xbc, 0xff, 0xff, 0xfb, + 0xff, 0xfb, 0xff, 0xde, 0x76, 0xbd, 0xff, 0xf7, + 0xff, 0xff, 0xf7, 0xff, 0xff, 0xdf, 0xf3, 0xfe, + 0xef, 0xff, 0xff, 0xff, 0xff, 0x7f, 0x7f, 0xde, + 0xf7, 0xbb, 0xef, 0xf7, 0xff, 0xfb, 0xbf, 0xdf, // Entry 440 - 47F - 0xfd, 0xfe, 0xfb, 0xff, 0xfe, 0xeb, 0x1f, 0x7d, - 0x2f, 0xfd, 0xb6, 0xb5, 0xa5, 0xfc, 0xff, 0xfd, - 0x7f, 0x4e, 0xbf, 0x8e, 0xae, 0xff, 0xee, 0xdf, - 0x7f, 0xf7, 0x73, 0x02, 0x02, 0x04, 0xfc, 0xf7, - 0xff, 0xb7, 0xd7, 0xef, 0xfe, 0xcd, 0xf5, 0xce, - 0xe2, 0x8e, 0xe7, 0xbf, 0xb7, 0xff, 0x56, 0xbd, - 0xcd, 0xff, 0xfb, 0xff, 0xdf, 0xd7, 0xea, 0xff, - 0xe5, 0x5f, 0x6d, 0x0f, 0xa7, 0x51, 0x04, 0x44, + 0xfd, 0xfe, 0xff, 0xff, 0xfe, 0xff, 0x5f, 0x7d, + 0x7f, 0xff, 0xff, 0xf7, 0xe5, 0xfc, 0xff, 0xfd, + 0x7f, 0x7f, 0xff, 0x9e, 0xae, 0xff, 0xee, 0xff, + 0x7f, 0xf7, 0x7b, 0x02, 0x82, 0x04, 0xff, 0xf7, + 0xff, 0xbf, 0xd7, 0xef, 0xfe, 0xdf, 0xf7, 0xfe, + 0xe2, 0x8e, 0xe7, 0xff, 0xf7, 0xff, 0x56, 0xbd, + 0xcd, 0xff, 0xfb, 0xff, 0xff, 0xdf, 0xef, 0xff, + 0xe5, 0xdf, 0x7d, 0x0f, 0xa7, 0x51, 0x04, 0x44, // Entry 480 - 4BF - 0x13, 0x50, 0x5d, 0xaf, 0xa6, 0xfd, 0x99, 0xfb, - 0x63, 0x1d, 0x53, 0xff, 0xef, 0xb7, 0x35, 0x20, - 0x14, 0x00, 0x55, 0x51, 0x82, 0x65, 0xf5, 0x41, + 0x13, 0xd0, 0x5d, 0xaf, 0xa6, 0xfd, 0xb9, 0xff, + 0x63, 0x5d, 0x5b, 0xff, 0xff, 0xbf, 0x3f, 0x20, + 0x14, 0x00, 0x57, 0x51, 0x82, 0x65, 0xf5, 0x49, 0xe2, 0xff, 0xfc, 0xdf, 0x00, 0x05, 0xc5, 0x05, 0x00, 0x22, 0x00, 0x74, 0x69, 0x10, 0x08, 0x04, 0x41, 0x00, 0x01, 0x06, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x51, 0x20, 0x05, 0x04, 0x01, 0x00, 0x00, + 0x00, 0x51, 0x60, 0x05, 0x04, 0x01, 0x00, 0x00, 0x06, 0x01, 0x20, 0x00, 0x18, 0x01, 0x92, 0xb1, // Entry 4C0 - 4FF - 0xfd, 0x47, 0x49, 0x06, 0x95, 0x06, 0x57, 0xed, - 0xfb, 0x4c, 0x1c, 0x6b, 0x83, 0x04, 0x62, 0x40, - 0x00, 0x11, 0x42, 0x00, 0x00, 0x00, 0x54, 0x83, - 0xb8, 0x4f, 0x10, 0x8c, 0x89, 0x46, 0xde, 0xf7, + 0xfd, 0x67, 0x4b, 0x06, 0x95, 0x06, 0x57, 0xed, + 0xfb, 0x4c, 0x9d, 0x7b, 0x83, 0x04, 0x62, 0x40, + 0x00, 0x15, 0x42, 0x00, 0x00, 0x00, 0x54, 0x83, + 0xf9, 0x4f, 0x10, 0x8c, 0xc9, 0x46, 0xde, 0xf7, 0x13, 0x31, 0x00, 0x20, 0x00, 0x00, 0x00, 0x90, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0a, 0x10, 0x00, - 0x01, 0x00, 0x00, 0xf0, 0x5b, 0xf4, 0xbe, 0x3d, + 0x01, 0x40, 0x00, 0xf0, 0x5b, 0xf4, 0xbe, 0x7d, 0xba, 0xcf, 0xf7, 0xaf, 0x42, 0x04, 0x84, 0x41, // Entry 500 - 53F - 0x30, 0xff, 0x79, 0x72, 0x04, 0x00, 0x00, 0x49, - 0x2d, 0x14, 0x27, 0x57, 0xed, 0xf1, 0x3f, 0xe7, - 0x3f, 0x00, 0x00, 0x02, 0xc6, 0xa0, 0x1e, 0xf8, - 0xbb, 0xff, 0xfd, 0xfb, 0xb7, 0xfd, 0xe5, 0xf7, - 0xfd, 0xfc, 0xd5, 0xed, 0x47, 0xf4, 0x7e, 0x10, + 0xb0, 0xff, 0x79, 0x7a, 0x04, 0x00, 0x00, 0x49, + 0x2d, 0x14, 0x27, 0x77, 0xed, 0xf1, 0xbf, 0xef, + 0x3f, 0x00, 0x00, 0x02, 0xc6, 0xa0, 0x1e, 0xfc, + 0xbb, 0xff, 0xfd, 0xfb, 0xb7, 0xfd, 0xf5, 0xff, + 0xfd, 0xfc, 0xd5, 0xed, 0x47, 0xf4, 0x7f, 0x10, 0x01, 0x01, 0x84, 0x6d, 0xff, 0xf7, 0xdd, 0xf9, - 0x5b, 0x05, 0x86, 0xed, 0xf5, 0x77, 0xbd, 0x3c, - 0x00, 0x00, 0x00, 0x42, 0x71, 0x42, 0x00, 0x40, + 0x5f, 0x05, 0x86, 0xef, 0xf5, 0x77, 0xbd, 0x3c, + 0x00, 0x00, 0x00, 0x43, 0x71, 0x42, 0x00, 0x40, // Entry 540 - 57F 0x00, 0x00, 0x01, 0x43, 0x19, 0x00, 0x08, 0x00, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, @@ -459,43 +399,43 @@ var langNoIndex = [2197]uint8{ 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xab, 0xbd, 0xe7, 0x57, 0xee, 0x13, 0x5d, 0x09, 0xc1, 0x40, 0x21, 0xfa, 0x17, 0x01, 0x80, - 0x00, 0x00, 0x00, 0x00, 0xf0, 0xce, 0xfb, 0xbf, + 0x00, 0x00, 0x00, 0x00, 0xf0, 0xde, 0xff, 0xbf, 0x00, 0x23, 0x00, 0x00, 0x00, 0x00, 0x08, 0x00, - 0x00, 0x30, 0x15, 0xa3, 0x10, 0x00, 0x00, 0x00, - 0x11, 0x04, 0x16, 0x00, 0x00, 0x02, 0x00, 0x81, + 0x00, 0x30, 0x95, 0xe3, 0x10, 0x00, 0x00, 0x00, + 0x11, 0x04, 0x16, 0x00, 0x01, 0x02, 0x00, 0x81, 0xa3, 0x01, 0x50, 0x00, 0x00, 0x83, 0x11, 0x40, // Entry 5C0 - 5FF - 0x00, 0x00, 0x00, 0xf0, 0xdd, 0x7b, 0x3e, 0x02, - 0xaa, 0x10, 0x5d, 0x98, 0x52, 0x00, 0x80, 0x20, - 0x00, 0x00, 0x00, 0x00, 0x40, 0x00, 0x02, 0x02, + 0x00, 0x00, 0x00, 0xf0, 0xdd, 0x7b, 0x7e, 0x02, + 0xaa, 0x10, 0x5d, 0xd8, 0x52, 0x00, 0x80, 0x20, + 0x00, 0x00, 0x00, 0x00, 0x40, 0x10, 0x02, 0x02, 0x19, 0x00, 0x10, 0x02, 0x10, 0x61, 0x5a, 0x9d, - 0x31, 0x00, 0x00, 0x00, 0x01, 0x10, 0x02, 0x20, + 0x31, 0x00, 0x00, 0x00, 0x01, 0x50, 0x02, 0x20, 0x00, 0x00, 0x01, 0x00, 0x42, 0x00, 0x20, 0x00, - 0x00, 0x1f, 0xdf, 0xf2, 0xb9, 0xff, 0xfd, 0x3f, - 0x1f, 0x18, 0xcf, 0x9c, 0xbf, 0xaf, 0x5f, 0xfe, + 0x00, 0x1f, 0xdf, 0xf2, 0xfd, 0xff, 0xfd, 0x3f, + 0x9f, 0x18, 0xcf, 0x9c, 0xbf, 0xaf, 0x5f, 0xfe, // Entry 600 - 63F - 0x7b, 0x4b, 0x40, 0x10, 0xe1, 0xfd, 0xaf, 0xd9, - 0xb7, 0xf6, 0xfb, 0xb3, 0xc7, 0xff, 0x6f, 0xf1, - 0x73, 0xb1, 0x7f, 0x9f, 0x7f, 0xbd, 0xfc, 0xb7, - 0xee, 0x1c, 0xfa, 0xcb, 0xef, 0xdd, 0xf9, 0xbd, - 0x6e, 0xae, 0x55, 0xfd, 0x6e, 0x81, 0x76, 0x1f, - 0xd4, 0x77, 0xf5, 0x7d, 0xfb, 0xff, 0xeb, 0xfe, - 0xbe, 0x5f, 0x46, 0x1b, 0xe9, 0x5f, 0x50, 0x18, - 0x02, 0xfa, 0xf7, 0x9d, 0x15, 0x97, 0x05, 0x0f, + 0x7b, 0x4b, 0x40, 0x10, 0xe1, 0xfd, 0xaf, 0xfd, + 0xb7, 0xf7, 0xff, 0xf3, 0xdf, 0xff, 0x6f, 0xf1, + 0x7b, 0xf1, 0x7f, 0xdf, 0x7f, 0xbf, 0xfe, 0xb7, + 0xee, 0x1c, 0xfb, 0xdb, 0xef, 0xdf, 0xff, 0xfd, + 0x7e, 0xbe, 0x57, 0xff, 0x6f, 0x81, 0x76, 0x1f, + 0xd4, 0x77, 0xf5, 0xfd, 0xff, 0xff, 0xeb, 0xfe, + 0xbf, 0x5f, 0x57, 0x1b, 0xeb, 0x5f, 0x50, 0x18, + 0x02, 0xfa, 0xff, 0x9d, 0x15, 0x97, 0x15, 0x0f, // Entry 640 - 67F - 0x75, 0xc4, 0x7d, 0x81, 0x82, 0xf1, 0x57, 0x6c, - 0xff, 0xe4, 0xef, 0x6f, 0xff, 0xfc, 0xdd, 0xde, - 0xfc, 0xfd, 0x76, 0x5f, 0x7a, 0x1f, 0x00, 0x98, - 0x02, 0xfb, 0xa3, 0xef, 0xf3, 0xd6, 0xf2, 0xff, - 0xb9, 0xda, 0x7d, 0x50, 0x1e, 0x15, 0x7b, 0xb4, - 0xf5, 0x3e, 0xff, 0xff, 0xf1, 0xf7, 0xff, 0xe7, - 0x5f, 0xff, 0xff, 0x9e, 0xdb, 0xf6, 0xd7, 0xb9, - 0xef, 0x27, 0x80, 0xbb, 0xc5, 0xff, 0xff, 0xe3, + 0x75, 0xc4, 0x7d, 0x81, 0x82, 0xf1, 0xd7, 0x7e, + 0xff, 0xff, 0xff, 0xef, 0xff, 0xfd, 0xdd, 0xde, + 0xfc, 0xfd, 0xf6, 0x5f, 0x7a, 0x1f, 0x40, 0x98, + 0x02, 0xff, 0xe3, 0xff, 0xf3, 0xd6, 0xf2, 0xff, + 0xfb, 0xdf, 0x7d, 0x50, 0x1e, 0x15, 0x7b, 0xb4, + 0xf5, 0xbe, 0xff, 0xff, 0xf3, 0xf7, 0xff, 0xf7, + 0x7f, 0xff, 0xff, 0xbe, 0xdb, 0xf7, 0xd7, 0xf9, + 0xef, 0x2f, 0x80, 0xbf, 0xc5, 0xff, 0xff, 0xf3, // Entry 680 - 6BF - 0x97, 0x9d, 0xbf, 0x9f, 0xf7, 0xc7, 0xfd, 0x37, - 0xce, 0x7f, 0x04, 0x1d, 0x53, 0x7f, 0xf8, 0xda, - 0x5d, 0xce, 0x7d, 0x06, 0xb9, 0xea, 0x69, 0xa0, - 0x1a, 0x20, 0x00, 0x30, 0x02, 0x04, 0x24, 0x08, + 0x97, 0x9d, 0xff, 0xff, 0xf7, 0xcf, 0xfd, 0xbf, + 0xde, 0x7f, 0x06, 0x1d, 0x57, 0xff, 0xf8, 0xda, + 0x5d, 0xce, 0x7d, 0x16, 0xb9, 0xea, 0x69, 0xa0, + 0x1a, 0x20, 0x00, 0x30, 0x02, 0x04, 0x24, 0x48, 0x04, 0x00, 0x00, 0x40, 0xd4, 0x02, 0x04, 0x00, 0x00, 0x04, 0x00, 0x04, 0x00, 0x20, 0x01, 0x06, 0x50, 0x00, 0x08, 0x00, 0x00, 0x00, 0x24, 0x00, @@ -503,64 +443,64 @@ var langNoIndex = [2197]uint8{ // Entry 6C0 - 6FF 0x14, 0x4d, 0xf1, 0x16, 0x44, 0xd1, 0x42, 0x08, 0x40, 0x00, 0x00, 0x40, 0x00, 0x08, 0x00, 0x00, - 0x00, 0xdc, 0xfb, 0xcb, 0x0e, 0x58, 0x08, 0x41, - 0x04, 0x20, 0x04, 0x00, 0x30, 0x12, 0x40, 0x00, + 0x00, 0xdc, 0xff, 0xeb, 0x1f, 0x58, 0x08, 0x41, + 0x04, 0xa0, 0x04, 0x00, 0x30, 0x12, 0x40, 0x22, 0x00, 0x10, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x01, 0x00, 0x00, 0x00, 0x80, 0x10, 0x10, 0xab, - 0x6d, 0x93, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, + 0x01, 0x00, 0x00, 0x00, 0x80, 0x10, 0x10, 0xaf, + 0x6f, 0x93, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0x80, 0x25, 0x00, 0x00, // Entry 700 - 73F 0x00, 0x00, 0x00, 0x00, 0x0a, 0x00, 0x00, 0x00, - 0x80, 0x86, 0xc2, 0x00, 0x00, 0x00, 0x00, 0x01, + 0x80, 0x86, 0xc2, 0x02, 0x00, 0x00, 0x00, 0x01, 0xdf, 0x18, 0x00, 0x00, 0x02, 0xf0, 0xfd, 0x79, 0x3b, 0x00, 0x25, 0x00, 0x00, 0x00, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x40, 0x00, 0x00, 0x03, 0x00, 0x09, 0x20, 0x00, 0x00, 0x01, 0x00, - 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, + 0x00, 0x81, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, // Entry 740 - 77F - 0x00, 0x00, 0x00, 0xef, 0xd5, 0xfd, 0xcf, 0x7e, - 0xa0, 0x11, 0x00, 0x00, 0x00, 0x92, 0x01, 0x44, - 0xcd, 0xf9, 0x5c, 0x00, 0x01, 0x00, 0x30, 0x04, - 0x04, 0x55, 0x00, 0x01, 0x04, 0xf4, 0x3f, 0x4a, - 0x01, 0x00, 0x00, 0xb0, 0x80, 0x00, 0x55, 0x55, - 0x97, 0x7c, 0x9f, 0x31, 0xcc, 0x68, 0xd1, 0x03, - 0xd5, 0x57, 0x27, 0x14, 0x01, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x2c, 0xf7, 0xcb, 0x1f, 0x14, 0x60, + 0x00, 0x00, 0x00, 0xef, 0xf7, 0xfd, 0xcf, 0x7e, + 0xa0, 0x11, 0x10, 0x00, 0x00, 0x92, 0x01, 0x44, + 0xcd, 0xf9, 0x5e, 0x00, 0x01, 0x00, 0x30, 0x14, + 0x04, 0x55, 0x10, 0x01, 0x04, 0xf6, 0x3f, 0x7a, + 0x05, 0x04, 0x00, 0xb0, 0x80, 0x00, 0x55, 0x55, + 0x97, 0x7c, 0x9f, 0x71, 0xcc, 0x78, 0xd1, 0x43, + 0xf5, 0x57, 0x67, 0x14, 0x01, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x2c, 0xf7, 0xdb, 0x1f, 0x54, 0x60, // Entry 780 - 7BF - 0x03, 0x68, 0x01, 0x10, 0x8b, 0x38, 0x8a, 0x01, - 0x00, 0x00, 0x20, 0x00, 0x24, 0x44, 0x00, 0x00, + 0x03, 0x68, 0x01, 0x10, 0x8b, 0x38, 0xaa, 0x01, + 0x00, 0x00, 0x30, 0x00, 0x24, 0x44, 0x00, 0x00, 0x10, 0x03, 0x11, 0x02, 0x01, 0x00, 0x00, 0xf0, - 0xf5, 0xff, 0xd5, 0x97, 0xbc, 0x70, 0xd6, 0x78, - 0x78, 0x15, 0x50, 0x00, 0xa4, 0x84, 0xa9, 0x41, + 0xf5, 0xff, 0xd5, 0xd7, 0xbc, 0x70, 0xd6, 0x78, + 0x78, 0x15, 0x50, 0x00, 0xa4, 0x84, 0xe9, 0x41, 0x00, 0x00, 0x00, 0x6b, 0x39, 0x52, 0x74, 0x00, 0xe8, 0x30, 0x90, 0x6a, 0x92, 0x00, 0x00, 0x02, - 0xff, 0xef, 0xff, 0x4b, 0x85, 0x53, 0xf4, 0xed, + 0xff, 0xef, 0xff, 0x4f, 0x85, 0x53, 0xf4, 0xed, // Entry 7C0 - 7FF - 0xdd, 0xbf, 0x72, 0x19, 0xc7, 0x0c, 0xd5, 0x42, - 0x54, 0xdd, 0x77, 0x14, 0x00, 0x80, 0x40, 0x56, - 0xcc, 0x16, 0x9e, 0xea, 0x35, 0x7d, 0xef, 0xff, - 0xbd, 0xa4, 0xaf, 0x01, 0x44, 0x18, 0x01, 0x4d, + 0xdd, 0xbf, 0x72, 0x19, 0xc7, 0x0c, 0xf5, 0x42, + 0x54, 0xdd, 0x77, 0x14, 0x00, 0x80, 0xc0, 0x56, + 0xcc, 0x16, 0x9e, 0xfb, 0x35, 0x7d, 0xef, 0xff, + 0xbd, 0xa4, 0xaf, 0x01, 0x44, 0x18, 0x01, 0x5d, 0x4e, 0x4a, 0x08, 0x50, 0x28, 0x30, 0xe0, 0x80, - 0x10, 0x20, 0x24, 0x00, 0xff, 0x2f, 0xd3, 0x60, - 0xfe, 0x01, 0x02, 0x88, 0x0a, 0x40, 0x16, 0x01, - 0x01, 0x15, 0x2b, 0x3c, 0x01, 0x00, 0x00, 0x10, + 0x10, 0x20, 0x24, 0x00, 0xff, 0x3f, 0xdf, 0x67, + 0xfe, 0x01, 0x06, 0x88, 0x0a, 0x40, 0x16, 0x01, + 0x01, 0x15, 0x2b, 0x3e, 0x01, 0x00, 0x00, 0x10, // Entry 800 - 83F - 0x90, 0x49, 0x41, 0x02, 0x02, 0x01, 0xe1, 0xbf, - 0xbf, 0x03, 0x00, 0x00, 0x10, 0xd4, 0xa3, 0xd1, - 0x40, 0x9c, 0x44, 0xdf, 0xf5, 0x8f, 0x66, 0xb3, - 0x55, 0x20, 0xd4, 0xc1, 0xd8, 0x30, 0x3d, 0x80, - 0x00, 0x00, 0x00, 0x04, 0xd4, 0x11, 0xc5, 0x84, - 0x2e, 0x50, 0x00, 0x22, 0x50, 0x6e, 0xbd, 0x93, + 0x90, 0x69, 0x45, 0x02, 0x02, 0x01, 0xe1, 0xbf, + 0xbf, 0x03, 0x00, 0x00, 0x10, 0xd4, 0xa7, 0xd1, + 0x54, 0x9e, 0x44, 0xdf, 0xfd, 0x8f, 0x66, 0xb3, + 0x55, 0x20, 0xd4, 0xc3, 0xd8, 0x30, 0x3d, 0x80, + 0x00, 0x00, 0x00, 0x4c, 0xd4, 0x11, 0xc5, 0x84, + 0x6e, 0x50, 0x00, 0x22, 0x50, 0x6e, 0xbf, 0xdb, 0x07, 0x00, 0x20, 0x10, 0x84, 0xb2, 0x45, 0x10, 0x06, 0x44, 0x00, 0x00, 0x12, 0x02, 0x11, 0x00, // Entry 840 - 87F 0xf0, 0xfb, 0xfd, 0x3f, 0x05, 0x00, 0x12, 0x81, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0c, 0x02, 0x00, 0x00, 0x00, 0x00, 0x03, 0x30, 0x02, 0x28, - 0x84, 0x00, 0x23, 0xc0, 0x23, 0x24, 0x00, 0x00, - 0x00, 0xcb, 0xe4, 0x3a, 0x42, 0x88, 0x14, 0xf1, - 0xef, 0xff, 0x7f, 0x12, 0x01, 0x01, 0x84, 0x50, + 0x84, 0x00, 0x33, 0xc0, 0x23, 0x24, 0x00, 0x00, + 0x00, 0xcb, 0xe4, 0x3a, 0x42, 0xc8, 0x14, 0xf1, + 0xef, 0xff, 0x7f, 0x16, 0x01, 0x01, 0x84, 0x50, 0x07, 0xfc, 0xff, 0xff, 0x0f, 0x01, 0x00, 0x40, 0x10, 0x38, 0x01, 0x01, 0x1c, 0x12, 0x40, 0xe1, // Entry 880 - 8BF @@ -572,196 +512,194 @@ var langNoIndex = [2197]uint8{ // altLangISO3 holds an alphabetically sorted list of 3-letter language code alternatives // to 2-letter language codes that cannot be derived using the method described above. // Each 3-letter code is followed by its 1-byte langID. -const altLangISO3 tag.Index = "---\x00cor\x00hbs\x01heb\x02kin\x03spa\x04yid\x05\xff\xff\xff\xff" +var altLangISO3 tag.Index = "---\x00cor\x00hbs\x01heb\x02kin\x03spa\x04yid\x05\xff\xff\xff\xff" // altLangIndex is used to convert indexes in altLangISO3 to langIDs. // Size: 12 bytes, 6 elements var altLangIndex = [6]uint16{ - 0x0278, 0x03fd, 0x01f3, 0x03dc, 0x0139, 0x0200, + 0x014a, 0x0225, 0x0105, 0x020a, 0x009d, 0x010b, } // langAliasMap maps langIDs to their suggested replacements. -// Size: 644 bytes, 161 elements -var langAliasMap = [161]fromTo{ - 0: {from: 0x81, to: 0x87}, - 1: {from: 0x181, to: 0x1a7}, - 2: {from: 0x1eb, to: 0x1da}, - 3: {from: 0x1f3, to: 0x1b5}, - 4: {from: 0x200, to: 0x508}, - 5: {from: 0x207, to: 0x206}, - 6: {from: 0x307, to: 0x3d3}, - 7: {from: 0x33e, to: 0x366}, - 8: {from: 0x3fd, to: 0x428}, - 9: {from: 0x470, to: 0x14e}, - 10: {from: 0x486, to: 0x447}, - 11: {from: 0x498, to: 0x20}, - 12: {from: 0x533, to: 0x539}, - 13: {from: 0x584, to: 0x129}, - 14: {from: 0x625, to: 0x1ea6}, - 15: {from: 0x646, to: 0x427}, - 16: {from: 0x657, to: 0x427}, - 17: {from: 0x6e2, to: 0x39}, - 18: {from: 0x6ed, to: 0x1d0}, - 19: {from: 0x733, to: 0x2196}, - 20: {from: 0x7a8, to: 0x55}, - 21: {from: 0x7ae, to: 0x2990}, - 22: {from: 0x7ba, to: 0x57}, - 23: {from: 0x7db, to: 0x140}, - 24: {from: 0x801, to: 0x59}, - 25: {from: 0x80a, to: 0x8c}, - 26: {from: 0x873, to: 0x805}, - 27: {from: 0x8b8, to: 0xed8}, - 28: {from: 0x9e4, to: 0x328}, - 29: {from: 0xa2b, to: 0x2bc}, - 30: {from: 0xa32, to: 0xbd}, - 31: {from: 0xab3, to: 0x3317}, - 32: {from: 0xb2d, to: 0x51f}, - 33: {from: 0xb6a, to: 0x264f}, - 34: {from: 0xb73, to: 0xbb8}, - 35: {from: 0xb90, to: 0x444}, - 36: {from: 0xbb1, to: 0x421e}, - 37: {from: 0xbb4, to: 0x51f}, - 38: {from: 0xbf3, to: 0x2d9c}, - 39: {from: 0xc23, to: 0x3176}, - 40: {from: 0xcae, to: 0xf0}, - 41: {from: 0xcfd, to: 0xf6}, - 42: {from: 0xdbd, to: 0x116}, - 43: {from: 0xdcc, to: 0x324}, - 44: {from: 0xded, to: 0xdf0}, - 45: {from: 0xdf3, to: 0x526}, - 46: {from: 0xed4, to: 0x204f}, - 47: {from: 0xee3, to: 0x2e8f}, - 48: {from: 0xf2e, to: 0x35e}, - 49: {from: 0x10c5, to: 0x13b}, - 50: {from: 0x10f9, to: 0x2c7}, - 51: {from: 0x1195, to: 0x1e4}, - 52: {from: 0x126e, to: 0x20}, - 53: {from: 0x1419, to: 0x159}, - 54: {from: 0x1465, to: 0x149}, - 55: {from: 0x1514, to: 0xd90}, - 56: {from: 0x1518, to: 0x387}, - 57: {from: 0x1527, to: 0x16ba}, - 58: {from: 0x1575, to: 0x208}, - 59: {from: 0x1578, to: 0x109}, - 60: {from: 0x1598, to: 0x3ca4}, - 61: {from: 0x165f, to: 0x195}, - 62: {from: 0x16bd, to: 0x131}, - 63: {from: 0x16f5, to: 0x29ed}, - 64: {from: 0x170d, to: 0x18e}, - 65: {from: 0x171c, to: 0xf34}, - 66: {from: 0x176f, to: 0x1519}, - 67: {from: 0x17fe, to: 0x17ab}, - 68: {from: 0x180b, to: 0x18e8}, - 69: {from: 0x187f, to: 0x42c}, - 70: {from: 0x196e, to: 0x1cf6}, - 71: {from: 0x1a69, to: 0x2ba5}, - 72: {from: 0x1a7f, to: 0x1f0}, - 73: {from: 0x1b4f, to: 0x1f2}, - 74: {from: 0x1b7b, to: 0x150a}, - 75: {from: 0x202d, to: 0x37a6}, - 76: {from: 0x2032, to: 0x20d2}, - 77: {from: 0x204f, to: 0x302}, - 78: {from: 0x20d8, to: 0x26b}, - 79: {from: 0x20e3, to: 0x25a}, - 80: {from: 0x20e7, to: 0x225}, - 81: {from: 0x20ee, to: 0x24d}, - 82: {from: 0x2104, to: 0x21e0}, - 83: {from: 0x212a, to: 0x274}, - 84: {from: 0x218e, to: 0x11d}, - 85: {from: 0x21c3, to: 0x1556}, - 86: {from: 0x21db, to: 0x4fa}, - 87: {from: 0x21e9, to: 0x495}, - 88: {from: 0x2222, to: 0x11d}, - 89: {from: 0x222c, to: 0x11d}, - 90: {from: 0x2257, to: 0x91f}, - 91: {from: 0x230b, to: 0x321b}, - 92: {from: 0x2377, to: 0x335a}, - 93: {from: 0x2467, to: 0x2be}, - 94: {from: 0x24d9, to: 0x2f6}, - 95: {from: 0x24e5, to: 0x2f1}, - 96: {from: 0x24ef, to: 0x316}, - 97: {from: 0x2545, to: 0xb50}, - 98: {from: 0x259e, to: 0xe0}, - 99: {from: 0x2633, to: 0x2c7}, - 100: {from: 0x26be, to: 0x26a9}, - 101: {from: 0x26ee, to: 0x3bf}, - 102: {from: 0x271c, to: 0x3ca4}, - 103: {from: 0x275a, to: 0x26a9}, - 104: {from: 0x277e, to: 0x434d}, - 105: {from: 0x28e4, to: 0x282c}, - 106: {from: 0x2909, to: 0x348}, - 107: {from: 0x297b, to: 0x2d9c}, - 108: {from: 0x2b0f, to: 0x384}, - 109: {from: 0x2bf1, to: 0x38c}, - 110: {from: 0x2c34, to: 0x3ca4}, - 111: {from: 0x2cf1, to: 0x3b5}, - 112: {from: 0x2d08, to: 0x58c}, - 113: {from: 0x2d3c, to: 0x143}, - 114: {from: 0x2d3d, to: 0x143}, - 115: {from: 0x2df4, to: 0x2e8}, - 116: {from: 0x2dfd, to: 0x19c1}, - 117: {from: 0x2e0f, to: 0x2d8a}, - 118: {from: 0x2e16, to: 0x289}, - 119: {from: 0x2e49, to: 0x7c}, - 120: {from: 0x2e5a, to: 0x2277}, - 121: {from: 0x2e95, to: 0x2e90}, - 122: {from: 0x2ee4, to: 0x2ecc}, - 123: {from: 0x3188, to: 0x3bb}, - 124: {from: 0x335b, to: 0x3383}, - 125: {from: 0x341f, to: 0x3d3}, - 126: {from: 0x34e3, to: 0x18c5}, - 127: {from: 0x35db, to: 0x408}, - 128: {from: 0x364d, to: 0x23e}, - 129: {from: 0x366b, to: 0x3ea}, - 130: {from: 0x36f2, to: 0x43b}, - 131: {from: 0x37b5, to: 0x11d}, - 132: {from: 0x380b, to: 0x38e7}, - 133: {from: 0x3820, to: 0x2c90}, - 134: {from: 0x3824, to: 0xa7}, - 135: {from: 0x3827, to: 0x321d}, - 136: {from: 0x3861, to: 0x399b}, - 137: {from: 0x3887, to: 0x3fb5}, - 138: {from: 0x389a, to: 0x39cc}, - 139: {from: 0x38a9, to: 0x1f99}, - 140: {from: 0x38aa, to: 0x2e8f}, - 141: {from: 0x3951, to: 0x474}, - 142: {from: 0x3b43, to: 0xd86}, - 143: {from: 0x3b6d, to: 0x132}, - 144: {from: 0x3c8e, to: 0x4b2}, - 145: {from: 0x3fb2, to: 0xfc}, - 146: {from: 0x41fd, to: 0xa86}, - 147: {from: 0x42b3, to: 0x568}, - 148: {from: 0x42ee, to: 0x3f55}, - 149: {from: 0x436d, to: 0x251}, - 150: {from: 0x43c0, to: 0x36c0}, - 151: {from: 0x43c2, to: 0x10b}, - 152: {from: 0x44a4, to: 0x3317}, - 153: {from: 0x44d8, to: 0x508}, - 154: {from: 0x45bf, to: 0x23fe}, - 155: {from: 0x45d2, to: 0x26d1}, - 156: {from: 0x4605, to: 0x48a3}, - 157: {from: 0x46a3, to: 0x4695}, - 158: {from: 0x4733, to: 0x473a}, - 159: {from: 0x490b, to: 0x316}, - 160: {from: 0x499c, to: 0x519}, +// Size: 640 bytes, 160 elements +var langAliasMap = [160]fromTo{ + 0: {from: 0xc4, to: 0xda}, + 1: {from: 0xff, to: 0xf8}, + 2: {from: 0x105, to: 0xe0}, + 3: {from: 0x10b, to: 0x2b9}, + 4: {from: 0x110, to: 0x10f}, + 5: {from: 0x192, to: 0x203}, + 6: {from: 0x1af, to: 0x1c1}, + 7: {from: 0x225, to: 0x23b}, + 8: {from: 0x268, to: 0xaa}, + 9: {from: 0x274, to: 0x252}, + 10: {from: 0x27d, to: 0xd}, + 11: {from: 0x2d5, to: 0x2db}, + 12: {from: 0x326, to: 0x93}, + 13: {from: 0x3c7, to: 0x1c48}, + 14: {from: 0x3e8, to: 0x23a}, + 15: {from: 0x3f9, to: 0x23a}, + 16: {from: 0x484, to: 0x15}, + 17: {from: 0x48f, to: 0xf3}, + 18: {from: 0x4d5, to: 0x1f38}, + 19: {from: 0x54a, to: 0x23}, + 20: {from: 0x550, to: 0x2732}, + 21: {from: 0x55c, to: 0x24}, + 22: {from: 0x57d, to: 0xa1}, + 23: {from: 0x5a3, to: 0x26}, + 24: {from: 0x5ac, to: 0x42}, + 25: {from: 0x615, to: 0x5a7}, + 26: {from: 0x65a, to: 0xc7a}, + 27: {from: 0x786, to: 0x1a5}, + 28: {from: 0x7cd, to: 0x16e}, + 29: {from: 0x7d4, to: 0x59}, + 30: {from: 0x855, to: 0x30b9}, + 31: {from: 0x8cf, to: 0x2c4}, + 32: {from: 0x90c, to: 0x23f1}, + 33: {from: 0x915, to: 0x95a}, + 34: {from: 0x932, to: 0x24f}, + 35: {from: 0x953, to: 0x3fc0}, + 36: {from: 0x956, to: 0x2c4}, + 37: {from: 0x995, to: 0x2b3e}, + 38: {from: 0x9c5, to: 0x2f18}, + 39: {from: 0xa50, to: 0x73}, + 40: {from: 0xa9f, to: 0x79}, + 41: {from: 0xb5f, to: 0x8a}, + 42: {from: 0xb6e, to: 0x1a2}, + 43: {from: 0xb8f, to: 0xb92}, + 44: {from: 0xb95, to: 0x2c8}, + 45: {from: 0xc76, to: 0x1df1}, + 46: {from: 0xc85, to: 0x2c31}, + 47: {from: 0xcd0, to: 0x1bd}, + 48: {from: 0xe67, to: 0x9f}, + 49: {from: 0xe9b, to: 0x179}, + 50: {from: 0xf37, to: 0xfc}, + 51: {from: 0x1010, to: 0xd}, + 52: {from: 0x11bb, to: 0xaf}, + 53: {from: 0x1207, to: 0xa6}, + 54: {from: 0x12b6, to: 0xb32}, + 55: {from: 0x12ba, to: 0x1d2}, + 56: {from: 0x12c9, to: 0x145c}, + 57: {from: 0x1317, to: 0x111}, + 58: {from: 0x131a, to: 0x85}, + 59: {from: 0x133a, to: 0x3a46}, + 60: {from: 0x1401, to: 0xcc}, + 61: {from: 0x145f, to: 0x9a}, + 62: {from: 0x1497, to: 0x278f}, + 63: {from: 0x14af, to: 0xca}, + 64: {from: 0x14be, to: 0xcd6}, + 65: {from: 0x1511, to: 0x12bb}, + 66: {from: 0x15a0, to: 0x154d}, + 67: {from: 0x15ad, to: 0x168a}, + 68: {from: 0x1621, to: 0x23f}, + 69: {from: 0x1710, to: 0x1a98}, + 70: {from: 0x180b, to: 0x2947}, + 71: {from: 0x1821, to: 0x102}, + 72: {from: 0x18f1, to: 0x104}, + 73: {from: 0x191d, to: 0x12ac}, + 74: {from: 0x1dcf, to: 0x3548}, + 75: {from: 0x1dd4, to: 0x1e74}, + 76: {from: 0x1df1, to: 0x18f}, + 77: {from: 0x1e7a, to: 0x145}, + 78: {from: 0x1e85, to: 0x13b}, + 79: {from: 0x1e89, to: 0x122}, + 80: {from: 0x1e90, to: 0x138}, + 81: {from: 0x1ea6, to: 0x1f82}, + 82: {from: 0x1ecc, to: 0x147}, + 83: {from: 0x1f30, to: 0x8d}, + 84: {from: 0x1f65, to: 0x12f8}, + 85: {from: 0x1f7d, to: 0x4235}, + 86: {from: 0x1f8b, to: 0x371a}, + 87: {from: 0x1fc4, to: 0x8d}, + 88: {from: 0x1fce, to: 0x8d}, + 89: {from: 0x1ff9, to: 0x6c1}, + 90: {from: 0x20ad, to: 0x2fbd}, + 91: {from: 0x2119, to: 0x30fc}, + 92: {from: 0x2209, to: 0x170}, + 93: {from: 0x227b, to: 0x18c}, + 94: {from: 0x2287, to: 0x189}, + 95: {from: 0x2291, to: 0x19a}, + 96: {from: 0x22e7, to: 0x8f2}, + 97: {from: 0x2340, to: 0x69}, + 98: {from: 0x23d5, to: 0x179}, + 99: {from: 0x2460, to: 0x244b}, + 100: {from: 0x2490, to: 0x1f4}, + 101: {from: 0x24be, to: 0x3a46}, + 102: {from: 0x24fc, to: 0x244b}, + 103: {from: 0x2520, to: 0x40ef}, + 104: {from: 0x2686, to: 0x25ce}, + 105: {from: 0x26ab, to: 0x1b4}, + 106: {from: 0x271d, to: 0x2b3e}, + 107: {from: 0x28b1, to: 0x1d1}, + 108: {from: 0x2993, to: 0x1d3}, + 109: {from: 0x29d6, to: 0x3a46}, + 110: {from: 0x2a93, to: 0x1ee}, + 111: {from: 0x2aaa, to: 0x32e}, + 112: {from: 0x2ade, to: 0xa4}, + 113: {from: 0x2adf, to: 0xa4}, + 114: {from: 0x2b96, to: 0x183}, + 115: {from: 0x2b9f, to: 0x1763}, + 116: {from: 0x2bb1, to: 0x2b2c}, + 117: {from: 0x2bb8, to: 0x152}, + 118: {from: 0x2beb, to: 0x37}, + 119: {from: 0x2bfc, to: 0x2019}, + 120: {from: 0x2c37, to: 0x2c32}, + 121: {from: 0x2c86, to: 0x2c6e}, + 122: {from: 0x2f2a, to: 0x1f1}, + 123: {from: 0x30fd, to: 0x3125}, + 124: {from: 0x31c1, to: 0x203}, + 125: {from: 0x3285, to: 0x1667}, + 126: {from: 0x337d, to: 0x22a}, + 127: {from: 0x33ef, to: 0x132}, + 128: {from: 0x340d, to: 0x215}, + 129: {from: 0x3494, to: 0x248}, + 130: {from: 0x3557, to: 0x8d}, + 131: {from: 0x35ad, to: 0x3689}, + 132: {from: 0x35c2, to: 0x2a32}, + 133: {from: 0x35c6, to: 0x4c}, + 134: {from: 0x35c9, to: 0x2fbf}, + 135: {from: 0x3603, to: 0x373d}, + 136: {from: 0x3629, to: 0x3d57}, + 137: {from: 0x363c, to: 0x376e}, + 138: {from: 0x364b, to: 0x1d3b}, + 139: {from: 0x364c, to: 0x2c31}, + 140: {from: 0x36f3, to: 0x26a}, + 141: {from: 0x38e5, to: 0xb28}, + 142: {from: 0x390f, to: 0xe91}, + 143: {from: 0x3a30, to: 0x28d}, + 144: {from: 0x3d54, to: 0x7f}, + 145: {from: 0x3f9f, to: 0x828}, + 146: {from: 0x4055, to: 0x30a}, + 147: {from: 0x4090, to: 0x3cf7}, + 148: {from: 0x410f, to: 0x13a}, + 149: {from: 0x4162, to: 0x3462}, + 150: {from: 0x4164, to: 0x86}, + 151: {from: 0x4246, to: 0x30b9}, + 152: {from: 0x427a, to: 0x2b9}, + 153: {from: 0x4361, to: 0x21a0}, + 154: {from: 0x4374, to: 0x2473}, + 155: {from: 0x43a7, to: 0x4645}, + 156: {from: 0x4445, to: 0x4437}, + 157: {from: 0x44d5, to: 0x44dc}, + 158: {from: 0x46ad, to: 0x19a}, + 159: {from: 0x473e, to: 0x2be}, } -// Size: 161 bytes, 161 elements -var langAliasTypes = [161]langAliasType{ +// Size: 160 bytes, 160 elements +var langAliasTypes = [160]langAliasType{ // Entry 0 - 3F - 1, 0, 0, 0, 0, 0, 0, 1, 2, 2, 0, 1, 0, 0, 1, 2, - 1, 1, 2, 0, 1, 0, 1, 2, 1, 1, 0, 0, 2, 1, 1, 0, - 2, 0, 0, 1, 0, 1, 0, 0, 1, 2, 1, 1, 1, 1, 0, 0, - 2, 1, 1, 1, 1, 2, 1, 0, 1, 1, 2, 2, 0, 1, 2, 0, + 0, 0, 0, 0, 0, 0, 1, 2, 2, 0, 1, 0, 0, 1, 2, 1, + 1, 2, 0, 1, 0, 1, 2, 1, 1, 0, 0, 2, 1, 1, 0, 2, + 0, 0, 1, 0, 1, 0, 0, 1, 2, 1, 1, 1, 1, 0, 0, 2, + 1, 1, 1, 1, 2, 1, 0, 1, 1, 2, 2, 0, 1, 2, 0, 1, // Entry 40 - 7F - 1, 0, 1, 1, 1, 1, 0, 0, 2, 1, 0, 0, 0, 1, 1, 1, - 1, 1, 0, 1, 0, 0, 0, 0, 0, 0, 1, 0, 0, 1, 2, 2, - 2, 0, 1, 1, 0, 1, 0, 0, 0, 0, 1, 0, 1, 1, 0, 1, - 0, 2, 1, 1, 0, 0, 1, 0, 0, 0, 0, 1, 1, 2, 0, 2, + 0, 1, 1, 1, 1, 0, 0, 2, 1, 0, 0, 0, 1, 1, 1, 1, + 1, 0, 1, 0, 0, 0, 0, 0, 0, 1, 0, 0, 1, 2, 2, 2, + 0, 1, 1, 0, 1, 0, 0, 0, 0, 1, 0, 1, 1, 0, 1, 0, + 2, 1, 1, 0, 0, 1, 0, 0, 0, 0, 1, 1, 2, 0, 2, 1, // Entry 80 - BF - 1, 1, 1, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 1, 1, 0, - 1, 2, 0, 0, 0, 1, 0, 1, 0, 1, 0, 0, 0, 0, 1, 1, - 1, + 1, 1, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 1, 1, 0, 1, + 2, 0, 0, 0, 1, 0, 1, 0, 1, 0, 0, 0, 0, 1, 1, 1, } const ( @@ -779,7 +717,7 @@ const ( // script is an alphabetically sorted list of ISO 15924 codes. The index // of the script in the string, divided by 4, is the internal scriptID. -const script tag.Index = "" + // Size: 928 bytes +var script tag.Index = "" + // Size: 928 bytes "----AdlmAfakAghbAhomArabAranArmiArmnAvstBaliBamuBassBatkBengBhksBlisBopo" + "BrahBraiBugiBuhdCakmCansCariChamCherCirtCoptCprtCyrlCyrsDevaDsrtDuplEgyd" + "EgyhEgypElbaEthiGeokGeorGlagGothGranGrekGujrGuruHanbHangHaniHanoHansHant" + @@ -797,194 +735,110 @@ const script tag.Index = "" + // Size: 928 bytes // suppressScript is an index from langID to the dominant script for that language, // if it exists. If a script is given, it should be suppressed from the language tag. -// Size: 1319 bytes, 1319 elements -var suppressScript = [1319]uint8{ +// Size: 713 bytes, 713 elements +var suppressScript = [713]uint8{ // Entry 0 - 3F - 0x00, 0x00, 0x00, 0x00, 0x00, 0x1e, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x52, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x27, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x05, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - // Entry 40 - 7F - 0x00, 0x00, 0x0e, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x52, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x1e, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x52, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x00, 0x27, 0x00, 0x00, 0x00, 0x05, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x00, 0x0e, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x52, 0x00, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x1e, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x1e, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x1e, 0x00, 0x00, - // Entry 80 - BF - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + // Entry 40 - 7F 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0e, 0x00, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x00, 0x52, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x52, 0x00, 0x00, + 0x00, 0x52, 0x00, 0x00, 0x00, 0x00, 0x00, 0x52, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x00, 0x52, 0x00, 0x00, 0x00, 0x00, 0x00, 0x52, + // Entry 80 - BF + 0x52, 0x00, 0x00, 0x00, 0x00, 0x52, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x52, 0x00, 0x00, 0x00, 0x00, + 0xd4, 0x00, 0x00, 0xd6, 0x00, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x2d, 0x52, 0x52, 0x52, 0x00, 0x52, + 0x00, 0x52, 0x00, 0x00, 0x05, 0x00, 0x00, 0x00, + 0x52, 0x00, 0x00, 0x00, 0x52, 0x52, 0x00, 0x52, + 0x00, 0x00, 0x52, 0x52, 0x00, 0x00, 0x00, 0x00, + 0x00, 0x52, 0x52, 0x00, 0x00, 0x00, 0x00, 0x00, // Entry C0 - FF 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x52, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x52, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x52, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x52, 0x52, 0x00, 0x00, + 0x52, 0x00, 0x52, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x52, 0x2e, 0x00, 0x00, 0x00, 0x00, + 0x00, 0x52, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x37, 0x20, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x52, 0x52, + 0x00, 0x52, 0x52, 0x08, 0x00, 0x00, 0x00, 0x00, + 0x52, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x52, // Entry 100 - 13F + 0x00, 0x00, 0x52, 0x52, 0x00, 0x37, 0x00, 0x41, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x52, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x52, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0xd4, 0x00, 0x00, 0x00, - 0x00, 0xd6, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x2d, 0x00, 0x00, 0x52, 0x00, 0x00, 0x52, - 0x00, 0x52, 0x00, 0x52, 0x00, 0x00, 0x00, 0x00, - // Entry 140 - 17F - 0x52, 0x00, 0x00, 0x05, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x52, 0x00, 0x00, 0x00, - 0x52, 0x00, 0x00, 0x52, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x52, 0x00, 0x00, 0x52, 0x52, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x52, 0x52, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x00, 0x29, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - // Entry 180 - 1BF - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x52, 0x00, 0x00, 0x00, 0x52, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x52, 0x2e, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x52, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x37, 0x00, 0x20, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - // Entry 1C0 - 1FF - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x52, 0x52, 0x00, 0x52, 0x52, 0x00, - 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x52, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x52, 0x00, 0x00, 0x00, 0x00, - 0x52, 0x52, 0x00, 0x37, 0x00, 0x00, 0x00, 0x00, - 0x41, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - // Entry 200 - 23F - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x29, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x1e, 0x00, 0x00, 0x52, 0x00, 0x00, - // Entry 240 - 27F - 0x00, 0x00, 0x46, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x4a, 0x00, 0x4b, 0x00, 0x20, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - // Entry 280 - 2BF - 0x00, 0x00, 0x00, 0x00, 0x00, 0x52, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x52, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x52, 0x00, 0x00, 0x4f, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x52, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x52, 0x00, - // Entry 2C0 - 2FF - 0x00, 0x00, 0x00, 0x00, 0x00, 0x20, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x52, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x52, 0x00, 0x00, 0x00, 0x00, 0x00, 0x52, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x1e, 0x00, - 0x00, 0x00, 0x00, 0x64, 0x00, 0x00, 0x00, 0x00, - // Entry 300 - 33F - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x52, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x20, 0x00, 0x00, 0x00, 0x52, 0x52, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x6b, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x52, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x52, 0x00, - // Entry 340 - 37F - 0x00, 0x00, 0x00, 0x00, 0x00, 0x52, 0x00, 0x52, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x1e, + 0x00, 0x52, 0x00, 0x46, 0x00, 0x4a, 0x4b, 0x00, 0x20, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + // Entry 140 - 17F 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x52, 0x00, 0x00, 0x00, 0x00, 0x00, 0x52, 0x00, - 0x00, 0x52, 0x00, 0x00, 0x00, 0x00, 0x52, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x70, 0x52, 0x00, 0x00, - 0x00, 0x52, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x52, 0x00, - // Entry 380 - 3BF + 0x00, 0x00, 0x00, 0x00, 0x52, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x00, 0x52, 0x4f, 0x00, 0x00, + 0x00, 0x52, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x52, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x20, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x52, - 0x00, 0x00, 0x00, 0x00, 0x75, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x2f, 0x00, 0x00, 0x00, + // Entry 180 - 1BF + 0x00, 0x00, 0x00, 0x52, 0x00, 0x00, 0x00, 0x00, + 0x52, 0x00, 0x00, 0x00, 0x1e, 0x64, 0x00, 0x00, + 0x00, 0x00, 0x52, 0x00, 0x00, 0x00, 0x20, 0x00, + 0x00, 0x00, 0x52, 0x52, 0x00, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x6b, 0x00, 0x00, + 0x00, 0x00, 0x52, 0x00, 0x00, 0x00, 0x00, 0x52, + 0x00, 0x52, 0x00, 0x52, 0x20, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x52, 0x00, 0x52, 0x00, 0x52, + // Entry 1C0 - 1FF + 0x00, 0x52, 0x00, 0x00, 0x00, 0x70, 0x52, 0x00, + 0x52, 0x00, 0x00, 0x00, 0x52, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x52, 0x75, 0x00, 0x00, 0x00, 0x2f, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x52, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x05, 0x52, + 0x00, 0x52, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x00, 0x52, 0x00, 0x00, 0x00, + // Entry 200 - 23F + 0x00, 0x52, 0x00, 0x52, 0x00, 0x00, 0x00, 0x1e, + 0x00, 0x00, 0x52, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x52, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x05, 0x00, 0x52, - 0x00, 0x00, 0x00, 0x52, 0x00, 0x00, 0x00, 0x00, - // Entry 3C0 - 3FF - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x52, 0x00, 0x00, 0x00, 0x00, - 0x52, 0x00, 0x00, 0x52, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x1e, 0x00, 0x00, 0x52, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0xc1, 0x00, 0x52, 0x00, 0x52, 0x00, 0x00, 0x52, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x52, 0x00, 0x52, 0x00, 0x00, 0x00, 0x00, 0x00, + // Entry 240 - 27F + 0x52, 0x00, 0x52, 0x00, 0x00, 0x00, 0x00, 0x52, 0x52, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - // Entry 400 - 43F - 0x00, 0x00, 0xc1, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x52, 0x00, 0x00, 0x00, 0x52, 0x00, 0x00, 0x00, + 0x00, 0xcd, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0xd0, 0x52, 0x00, 0x00, 0x00, 0xd5, 0x00, 0x00, + 0x00, 0x27, 0x00, 0x00, 0x00, 0x52, 0x00, 0x00, + 0x52, 0x00, 0x52, 0x52, 0x52, 0x00, 0x52, 0x52, + 0x00, 0x00, 0x52, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x00, 0x52, 0x00, 0x00, 0x00, + // Entry 280 - 2BF + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x1e, 0x00, + 0x00, 0x00, 0x00, 0x00, 0x05, 0x00, 0x00, 0x52, + 0x00, 0x00, 0x52, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x52, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x52, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x52, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x52, 0x00, 0x00, - 0x00, 0x52, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x52, 0x52, 0x00, 0x00, 0x00, 0x00, - // Entry 440 - 47F - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xcd, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xd0, - 0x00, 0x52, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0xd5, 0x00, 0x00, 0x00, 0x27, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x52, 0x00, 0x00, - 0x52, 0x00, 0x00, 0x00, 0x52, 0x00, 0x52, 0x00, - 0x52, 0x00, 0x00, 0x00, 0x52, 0x00, 0x00, 0x00, - // Entry 480 - 4BF - 0x52, 0x00, 0x00, 0x00, 0x52, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x52, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x1e, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x05, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x52, 0x00, - 0x00, 0x52, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - // Entry 4C0 - 4FF - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x52, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - // Entry 500 - 53F - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x37, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x10, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x52, 0x00, 0x00, + 0x00, 0x37, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + // Entry 2C0 - 2FF + 0x10, 0x00, 0x00, 0x00, 0x00, 0x00, 0x52, 0x00, + 0x00, } const ( @@ -993,15 +847,15 @@ const ( _BR = 64 _CA = 72 _ES = 109 - _GB = 122 - _MD = 187 - _PT = 237 - _UK = 305 - _US = 308 - _ZZ = 356 - _XA = 322 - _XC = 324 - _XK = 332 + _GB = 121 + _MD = 186 + _PT = 236 + _UK = 304 + _US = 306 + _ZZ = 354 + _XA = 320 + _XC = 322 + _XK = 330 ) // isoRegionOffset needs to be added to the index of regionISO to obtain the regionID @@ -1010,8 +864,8 @@ const ( const isoRegionOffset = 31 // regionTypes defines the status of a region for various standards. -// Size: 357 bytes, 357 elements -var regionTypes = [357]uint8{ +// Size: 355 bytes, 355 elements +var regionTypes = [355]uint8{ // Entry 0 - 3F 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, @@ -1028,41 +882,41 @@ var regionTypes = [357]uint8{ 0x06, 0x06, 0x06, 0x06, 0x06, 0x06, 0x04, 0x06, 0x04, 0x06, 0x06, 0x06, 0x06, 0x00, 0x06, 0x04, 0x06, 0x06, 0x06, 0x06, 0x06, 0x06, 0x06, 0x06, - 0x04, 0x06, 0x06, 0x06, 0x06, 0x06, 0x00, 0x06, - 0x04, 0x06, 0x06, 0x06, 0x06, 0x06, 0x06, 0x06, + 0x06, 0x06, 0x06, 0x06, 0x06, 0x00, 0x06, 0x04, + 0x06, 0x06, 0x06, 0x06, 0x06, 0x06, 0x06, 0x06, // Entry 80 - BF 0x06, 0x06, 0x06, 0x06, 0x06, 0x06, 0x06, 0x06, 0x06, 0x06, 0x06, 0x06, 0x06, 0x06, 0x06, 0x06, - 0x06, 0x06, 0x00, 0x04, 0x06, 0x06, 0x06, 0x06, + 0x06, 0x00, 0x04, 0x06, 0x06, 0x06, 0x06, 0x06, 0x06, 0x06, 0x06, 0x06, 0x06, 0x06, 0x06, 0x06, - 0x06, 0x06, 0x00, 0x06, 0x06, 0x06, 0x06, 0x06, - 0x06, 0x06, 0x06, 0x06, 0x06, 0x06, 0x06, 0x06, - 0x06, 0x06, 0x06, 0x06, 0x06, 0x06, 0x06, 0x06, - 0x06, 0x06, 0x06, 0x06, 0x06, 0x06, 0x06, 0x06, - // Entry C0 - FF - 0x00, 0x06, 0x06, 0x06, 0x06, 0x06, 0x06, 0x06, - 0x06, 0x06, 0x06, 0x06, 0x06, 0x06, 0x06, 0x06, - 0x06, 0x06, 0x06, 0x06, 0x06, 0x06, 0x00, 0x06, - 0x06, 0x06, 0x06, 0x00, 0x06, 0x04, 0x06, 0x06, - 0x06, 0x06, 0x00, 0x06, 0x06, 0x06, 0x06, 0x06, - 0x06, 0x06, 0x06, 0x06, 0x06, 0x06, 0x00, 0x06, - 0x06, 0x00, 0x06, 0x05, 0x05, 0x05, 0x05, 0x05, - 0x05, 0x05, 0x05, 0x05, 0x05, 0x05, 0x05, 0x05, - // Entry 100 - 13F - 0x05, 0x06, 0x00, 0x06, 0x06, 0x06, 0x06, 0x06, - 0x06, 0x06, 0x06, 0x06, 0x06, 0x06, 0x06, 0x06, - 0x06, 0x06, 0x06, 0x06, 0x06, 0x06, 0x06, 0x06, - 0x06, 0x06, 0x06, 0x06, 0x06, 0x04, 0x06, 0x06, - 0x06, 0x06, 0x06, 0x06, 0x06, 0x06, 0x06, 0x06, - 0x06, 0x06, 0x06, 0x06, 0x06, 0x06, 0x06, 0x06, - 0x06, 0x02, 0x06, 0x04, 0x06, 0x06, 0x06, 0x06, 0x06, 0x00, 0x06, 0x06, 0x06, 0x06, 0x06, 0x06, - // Entry 140 - 17F + 0x06, 0x06, 0x06, 0x06, 0x06, 0x06, 0x06, 0x06, + 0x06, 0x06, 0x06, 0x06, 0x06, 0x06, 0x06, 0x06, + 0x06, 0x06, 0x06, 0x06, 0x06, 0x06, 0x06, 0x00, + // Entry C0 - FF + 0x06, 0x06, 0x06, 0x06, 0x06, 0x06, 0x06, 0x06, + 0x06, 0x06, 0x06, 0x06, 0x06, 0x06, 0x06, 0x06, + 0x06, 0x06, 0x06, 0x06, 0x06, 0x00, 0x06, 0x06, + 0x06, 0x06, 0x00, 0x06, 0x04, 0x06, 0x06, 0x06, + 0x06, 0x00, 0x06, 0x06, 0x06, 0x06, 0x06, 0x06, + 0x06, 0x06, 0x06, 0x06, 0x06, 0x00, 0x06, 0x06, 0x00, 0x06, 0x05, 0x05, 0x05, 0x05, 0x05, 0x05, 0x05, 0x05, 0x05, 0x05, 0x05, 0x05, 0x05, 0x05, + // Entry 100 - 13F + 0x06, 0x00, 0x06, 0x06, 0x06, 0x06, 0x06, 0x06, + 0x06, 0x06, 0x06, 0x06, 0x06, 0x06, 0x06, 0x06, + 0x06, 0x06, 0x06, 0x06, 0x06, 0x06, 0x06, 0x06, + 0x06, 0x06, 0x06, 0x06, 0x04, 0x06, 0x06, 0x06, + 0x06, 0x06, 0x06, 0x06, 0x06, 0x06, 0x06, 0x06, + 0x06, 0x06, 0x06, 0x06, 0x06, 0x06, 0x06, 0x06, + 0x02, 0x06, 0x06, 0x06, 0x06, 0x06, 0x06, 0x00, + 0x06, 0x06, 0x06, 0x06, 0x06, 0x06, 0x00, 0x06, + // Entry 140 - 17F 0x05, 0x05, 0x05, 0x05, 0x05, 0x05, 0x05, 0x05, - 0x05, 0x05, 0x05, 0x05, 0x04, 0x06, 0x06, 0x04, - 0x06, 0x06, 0x04, 0x06, 0x05, + 0x05, 0x05, 0x05, 0x05, 0x05, 0x05, 0x05, 0x05, + 0x05, 0x05, 0x05, 0x05, 0x05, 0x05, 0x05, 0x05, + 0x05, 0x05, 0x04, 0x06, 0x06, 0x04, 0x06, 0x06, + 0x04, 0x06, 0x05, } // regionISO holds a list of alphabetically sorted 2-letter ISO region codes. @@ -1070,68 +924,68 @@ var regionTypes = [357]uint8{ // - [A-Z}{2}: the first letter of the 2-letter code plus these two // letters form the 3-letter ISO code. // - 0, n: index into altRegionISO3. -const regionISO tag.Index = "" + // Size: 1308 bytes +var regionISO tag.Index = "" + // Size: 1300 bytes "AAAAACSCADNDAEREAFFGAGTGAIIAALLBAMRMANNTAOGOAQTAARRGASSMATUTAUUSAWBWAXLA" + "AZZEBAIHBBRBBDGDBEELBFFABGGRBHHRBIDIBJENBLLMBMMUBNRNBOOLBQESBRRABSHSBTTN" + "BUURBVVTBWWABYLRBZLZCAANCCCKCDODCFAFCGOGCHHECIIVCKOKCLHLCMMRCNHNCOOLCPPT" + "CRRICS\x00\x00CTTECUUBCVPVCWUWCXXRCYYPCZZEDDDRDEEUDGGADJJIDKNKDMMADOOMDY" + - "HYDZZAEA ECCUEESTEGGYEHSHERRIESSPETTHEU\x00\x03EZ FIINFJJIFKLKFMSMFORO" + - "FQ\x00\x18FRRAFXXXGAABGBBRGDRDGEEOGFUFGGGYGHHAGIIBGLRLGMMBGNINGPLPGQNQGR" + - "RCGS\x00\x06GTTMGUUMGWNBGYUYHKKGHMMDHNNDHRRVHTTIHUUNHVVOIC IDDNIERLILSR" + - "IMMNINNDIOOTIQRQIRRNISSLITTAJEEYJMAMJOORJPPNJTTNKEENKGGZKHHMKIIRKM\x00" + - "\x09KNNAKP\x00\x0cKRORKWWTKY\x00\x0fKZAZLAAOLBBNLCCALIIELKKALRBRLSSOLTTU" + - "LUUXLVVALYBYMAARMCCOMDDAMENEMFAFMGDGMHHLMIIDMKKDMLLIMMMRMNNGMOACMPNPMQTQ" + - "MRRTMSSRMTLTMUUSMVDVMWWIMXEXMYYSMZOZNAAMNCCLNEERNFFKNGGANHHBNIICNLLDNOOR" + - "NPPLNQ\x00\x1eNRRUNTTZNUIUNZZLOMMNPAANPCCIPEERPFYFPGNGPHHLPKAKPLOLPM\x00" + - "\x12PNCNPRRIPSSEPTRTPUUSPWLWPYRYPZCZQAATQMMMQNNNQOOOQPPPQQQQQRRRQSSSQTTT" + - "QU\x00\x03QVVVQWWWQXXXQYYYQZZZREEURHHOROOURS\x00\x15RUUSRWWASAAUSBLBSCYC" + - "SDDNSEWESGGPSHHNSIVNSJJMSKVKSLLESMMRSNENSOOMSRURSSSDSTTPSUUNSVLVSXXMSYYR" + - "SZWZTAAATCCATDCDTF\x00\x18TGGOTHHATJJKTKKLTLLSTMKMTNUNTOONTPMPTRURTTTOTV" + - "UVTWWNTZZAUAKRUGGAUK UMMIUN USSAUYRYUZZBVAATVCCTVDDRVEENVGGBVIIRVNNMVU" + - "UTWFLFWKAKWSSMXAAAXBBBXCCCXDDDXEEEXFFFXGGGXHHHXIIIXJJJXKKKXLLLXMMMXNNNXO" + - "OOXPPPXQQQXRRRXSSSXTTTXUUUXVVVXWWWXXXXXYYYXZZZYDMDYEEMYT\x00\x1bYUUGZAAF" + - "ZMMBZRARZWWEZZZZ\xff\xff\xff\xff" + "HYDZZAEA ECCUEESTEGGYEHSHERRIESSPETTHEU\x00\x03FIINFJJIFKLKFMSMFOROFQ" + + "\x00\x18FRRAFXXXGAABGBBRGDRDGEEOGFUFGGGYGHHAGIIBGLRLGMMBGNINGPLPGQNQGRRC" + + "GS\x00\x06GTTMGUUMGWNBGYUYHKKGHMMDHNNDHRRVHTTIHUUNHVVOIC IDDNIERLILSRIM" + + "MNINNDIOOTIQRQIRRNISSLITTAJEEYJMAMJOORJPPNJTTNKEENKGGZKHHMKIIRKM\x00\x09" + + "KNNAKP\x00\x0cKRORKWWTKY\x00\x0fKZAZLAAOLBBNLCCALIIELKKALRBRLSSOLTTULUUX" + + "LVVALYBYMAARMCCOMDDAMENEMFAFMGDGMHHLMIIDMKKDMLLIMMMRMNNGMOACMPNPMQTQMRRT" + + "MSSRMTLTMUUSMVDVMWWIMXEXMYYSMZOZNAAMNCCLNEERNFFKNGGANHHBNIICNLLDNOORNPPL" + + "NQ\x00\x1eNRRUNTTZNUIUNZZLOMMNPAANPCCIPEERPFYFPGNGPHHLPKAKPLOLPM\x00\x12" + + "PNCNPRRIPSSEPTRTPUUSPWLWPYRYPZCZQAATQMMMQNNNQOOOQPPPQQQQQRRRQSSSQTTTQU" + + "\x00\x03QVVVQWWWQXXXQYYYQZZZREEURHHOROOURS\x00\x15RUUSRWWASAAUSBLBSCYCSD" + + "DNSEWESGGPSHHNSIVNSJJMSKVKSLLESMMRSNENSOOMSRURSSSDSTTPSUUNSVLVSXXMSYYRSZ" + + "WZTAAATCCATDCDTF\x00\x18TGGOTHHATJJKTKKLTLLSTMKMTNUNTOONTPMPTRURTTTOTVUV" + + "TWWNTZZAUAKRUGGAUK UMMIUSSAUYRYUZZBVAATVCCTVDDRVEENVGGBVIIRVNNMVUUTWFLF" + + "WKAKWSSMXAAAXBBBXCCCXDDDXEEEXFFFXGGGXHHHXIIIXJJJXKKKXLLLXMMMXNNNXOOOXPPP" + + "XQQQXRRRXSSSXTTTXUUUXVVVXWWWXXXXXYYYXZZZYDMDYEEMYT\x00\x1bYUUGZAAFZMMBZR" + + "ARZWWEZZZZ\xff\xff\xff\xff" // altRegionISO3 holds a list of 3-letter region codes that cannot be // mapped to 2-letter codes using the default algorithm. This is a short list. -const altRegionISO3 string = "SCGQUUSGSCOMPRKCYMSPMSRBATFMYTATN" +var altRegionISO3 string = "SCGQUUSGSCOMPRKCYMSPMSRBATFMYTATN" // altRegionIDs holds a list of regionIDs the positions of which match those // of the 3-letter ISO codes in altRegionISO3. // Size: 22 bytes, 11 elements var altRegionIDs = [11]uint16{ - 0x0056, 0x006f, 0x0087, 0x00a7, 0x00a9, 0x00ac, 0x00e9, 0x0104, - 0x0120, 0x015e, 0x00db, + 0x0056, 0x006f, 0x0086, 0x00a6, 0x00a8, 0x00ab, 0x00e8, 0x0103, + 0x011f, 0x015c, 0x00da, } // Size: 80 bytes, 20 elements var regionOldMap = [20]fromTo{ - 0: {from: 0x43, to: 0xc3}, - 1: {from: 0x57, to: 0xa6}, + 0: {from: 0x43, to: 0xc2}, + 1: {from: 0x57, to: 0xa5}, 2: {from: 0x5e, to: 0x5f}, 3: {from: 0x65, to: 0x3a}, - 4: {from: 0x78, to: 0x77}, - 5: {from: 0x92, to: 0x36}, - 6: {from: 0xa2, to: 0x132}, - 7: {from: 0xc0, to: 0x132}, - 8: {from: 0xd6, to: 0x13e}, - 9: {from: 0xdb, to: 0x2a}, - 10: {from: 0xee, to: 0x132}, - 11: {from: 0xf1, to: 0xe1}, - 12: {from: 0xfb, to: 0x6f}, - 13: {from: 0x102, to: 0x163}, - 14: {from: 0x129, to: 0x125}, - 15: {from: 0x131, to: 0x7a}, - 16: {from: 0x139, to: 0x13d}, - 17: {from: 0x140, to: 0x132}, - 18: {from: 0x15c, to: 0x15d}, - 19: {from: 0x162, to: 0x4a}, + 4: {from: 0x77, to: 0x76}, + 5: {from: 0x91, to: 0x36}, + 6: {from: 0xa1, to: 0x131}, + 7: {from: 0xbf, to: 0x131}, + 8: {from: 0xd5, to: 0x13c}, + 9: {from: 0xda, to: 0x2a}, + 10: {from: 0xed, to: 0x131}, + 11: {from: 0xf0, to: 0xe0}, + 12: {from: 0xfa, to: 0x6f}, + 13: {from: 0x101, to: 0x161}, + 14: {from: 0x128, to: 0x124}, + 15: {from: 0x130, to: 0x79}, + 16: {from: 0x137, to: 0x13b}, + 17: {from: 0x13e, to: 0x131}, + 18: {from: 0x15a, to: 0x15b}, + 19: {from: 0x160, to: 0x4a}, } // m49 maps regionIDs to UN.M49 codes. The first isoRegionOffset entries are // codes indicating collections of regions. -// Size: 714 bytes, 357 elements -var m49 = [357]int16{ +// Size: 710 bytes, 355 elements +var m49 = [355]int16{ // Entry 0 - 3F 0, 1, 2, 3, 5, 9, 11, 13, 14, 15, 17, 18, 19, 21, 29, 30, @@ -1148,41 +1002,41 @@ var m49 = [357]int16{ 192, 132, 531, 162, 196, 203, 278, 276, 0, 262, 208, 212, 214, 204, 12, 0, 218, 233, 818, 732, 232, 724, 231, 967, - 0, 246, 242, 238, 583, 234, 0, 250, - 249, 266, 826, 308, 268, 254, 831, 288, + 246, 242, 238, 583, 234, 0, 250, 249, + 266, 826, 308, 268, 254, 831, 288, 292, // Entry 80 - BF - 292, 304, 270, 324, 312, 226, 300, 239, - 320, 316, 624, 328, 344, 334, 340, 191, - 332, 348, 854, 0, 360, 372, 376, 833, - 356, 86, 368, 364, 352, 380, 832, 388, - 400, 392, 581, 404, 417, 116, 296, 174, - 659, 408, 410, 414, 136, 398, 418, 422, - 662, 438, 144, 430, 426, 440, 442, 428, - 434, 504, 492, 498, 499, 663, 450, 584, + 304, 270, 324, 312, 226, 300, 239, 320, + 316, 624, 328, 344, 334, 340, 191, 332, + 348, 854, 0, 360, 372, 376, 833, 356, + 86, 368, 364, 352, 380, 832, 388, 400, + 392, 581, 404, 417, 116, 296, 174, 659, + 408, 410, 414, 136, 398, 418, 422, 662, + 438, 144, 430, 426, 440, 442, 428, 434, + 504, 492, 498, 499, 663, 450, 584, 581, // Entry C0 - FF - 581, 807, 466, 104, 496, 446, 580, 474, - 478, 500, 470, 480, 462, 454, 484, 458, - 508, 516, 540, 562, 574, 566, 548, 558, - 528, 578, 524, 10, 520, 536, 570, 554, - 512, 591, 0, 604, 258, 598, 608, 586, - 616, 666, 612, 630, 275, 620, 581, 585, - 600, 591, 634, 959, 960, 961, 962, 963, - 964, 965, 966, 967, 968, 969, 970, 971, + 807, 466, 104, 496, 446, 580, 474, 478, + 500, 470, 480, 462, 454, 484, 458, 508, + 516, 540, 562, 574, 566, 548, 558, 528, + 578, 524, 10, 520, 536, 570, 554, 512, + 591, 0, 604, 258, 598, 608, 586, 616, + 666, 612, 630, 275, 620, 581, 585, 600, + 591, 634, 959, 960, 961, 962, 963, 964, + 965, 966, 967, 968, 969, 970, 971, 972, // Entry 100 - 13F - 972, 638, 716, 642, 688, 643, 646, 682, - 90, 690, 729, 752, 702, 654, 705, 744, - 703, 694, 674, 686, 706, 740, 728, 678, - 810, 222, 534, 760, 748, 0, 796, 148, - 260, 768, 764, 762, 772, 626, 795, 788, - 776, 626, 792, 780, 798, 158, 834, 804, - 800, 826, 581, 0, 840, 858, 860, 336, - 670, 704, 862, 92, 850, 704, 548, 876, + 638, 716, 642, 688, 643, 646, 682, 90, + 690, 729, 752, 702, 654, 705, 744, 703, + 694, 674, 686, 706, 740, 728, 678, 810, + 222, 534, 760, 748, 0, 796, 148, 260, + 768, 764, 762, 772, 626, 795, 788, 776, + 626, 792, 780, 798, 158, 834, 804, 800, + 826, 581, 840, 858, 860, 336, 670, 704, + 862, 92, 850, 704, 548, 876, 581, 882, // Entry 140 - 17F - 581, 882, 973, 974, 975, 976, 977, 978, - 979, 980, 981, 982, 983, 984, 985, 986, - 987, 988, 989, 990, 991, 992, 993, 994, - 995, 996, 997, 998, 720, 887, 175, 891, - 710, 894, 180, 716, 999, + 973, 974, 975, 976, 977, 978, 979, 980, + 981, 982, 983, 984, 985, 986, 987, 988, + 989, 990, 991, 992, 993, 994, 995, 996, + 997, 998, 720, 887, 175, 891, 710, 894, + 180, 716, 999, } // m49Index gives indexes into fromM49 based on the three most significant bits @@ -1206,50 +1060,50 @@ var fromM49 = [332]uint16{ 0x402b, 0x4410, 0x4611, 0x482e, 0x4e12, 0x502d, 0x5841, 0x6038, 0x6434, 0x6627, 0x6833, 0x6a13, 0x6c14, 0x7035, 0x7215, 0x783c, 0x7a16, 0x8042, 0x883e, 0x8c32, 0x9045, 0x9444, 0x9840, 0xa847, - 0xac99, 0xb508, 0xb93b, 0xc03d, 0xc837, 0xd0c3, 0xd839, 0xe046, - 0xe8a5, 0xf051, 0xf848, 0x0859, 0x10ac, 0x184b, 0x1c17, 0x1e18, + 0xac98, 0xb507, 0xb939, 0xc03d, 0xc837, 0xd0c2, 0xd839, 0xe046, + 0xe8a4, 0xf051, 0xf848, 0x0859, 0x10ab, 0x184b, 0x1c17, 0x1e18, // Entry 40 - 7F - 0x20b2, 0x2219, 0x291f, 0x2c1a, 0x2e1b, 0x3050, 0x341c, 0x361d, - 0x3852, 0x3d2d, 0x445b, 0x4c49, 0x5453, 0x5ca7, 0x5f5e, 0x644c, - 0x684a, 0x704f, 0x7855, 0x7e8f, 0x8058, 0x885c, 0x965d, 0x983a, - 0xa062, 0xa863, 0xac64, 0xb468, 0xbd19, 0xc485, 0xcc6e, 0xce6e, - 0xd06c, 0xd269, 0xd475, 0xdc73, 0xde87, 0xe472, 0xec71, 0xf030, - 0xf278, 0xf477, 0xfc7d, 0x04e4, 0x0920, 0x0c61, 0x1479, 0x187c, - 0x1c82, 0x26ec, 0x285f, 0x2c5e, 0x305f, 0x407f, 0x4880, 0x50a6, - 0x5886, 0x6081, 0x687b, 0x7084, 0x7889, 0x8088, 0x8883, 0x908b, + 0x20b1, 0x2219, 0x291e, 0x2c1a, 0x2e1b, 0x3050, 0x341c, 0x361d, + 0x3852, 0x3d2c, 0x445b, 0x4c49, 0x5453, 0x5ca6, 0x5f5c, 0x644c, + 0x684a, 0x704f, 0x7855, 0x7e8e, 0x8058, 0x885c, 0x965d, 0x983a, + 0xa062, 0xa863, 0xac64, 0xb468, 0xbd18, 0xc484, 0xcc6e, 0xce6e, + 0xd06c, 0xd269, 0xd474, 0xdc72, 0xde86, 0xe471, 0xec70, 0xf030, + 0xf277, 0xf476, 0xfc7c, 0x04e3, 0x091f, 0x0c61, 0x1478, 0x187b, + 0x1c81, 0x26eb, 0x285f, 0x2c5e, 0x305f, 0x407e, 0x487f, 0x50a5, + 0x5885, 0x6080, 0x687a, 0x7083, 0x7888, 0x8087, 0x8882, 0x908a, // Entry 80 - BF - 0x9890, 0x9c8d, 0xa137, 0xa88e, 0xb08c, 0xb891, 0xc09c, 0xc898, - 0xd094, 0xd89b, 0xe09a, 0xe895, 0xf096, 0xf89d, 0x004e, 0x089f, - 0x10a1, 0x1cad, 0x20a0, 0x28a3, 0x30a9, 0x34aa, 0x3cab, 0x42a4, - 0x44ae, 0x461e, 0x4caf, 0x54b4, 0x58b7, 0x5cb3, 0x64b8, 0x6cb1, - 0x70b5, 0x74b6, 0x7cc5, 0x84be, 0x8ccd, 0x94cf, 0x9ccc, 0xa4c2, - 0xacca, 0xb4c7, 0xbcc8, 0xc0cb, 0xc8ce, 0xd8ba, 0xe0c4, 0xe4bb, - 0xe6bc, 0xe8c9, 0xf0b9, 0xf8d0, 0x00e0, 0x08d1, 0x10dc, 0x18da, - 0x20d8, 0x2428, 0x265a, 0x2a2f, 0x2d1a, 0x2e3f, 0x30dd, 0x38d2, + 0x988f, 0x9c8c, 0xa135, 0xa88d, 0xb08b, 0xb890, 0xc09b, 0xc897, + 0xd093, 0xd89a, 0xe099, 0xe894, 0xf095, 0xf89c, 0x004e, 0x089e, + 0x10a0, 0x1cac, 0x209f, 0x28a2, 0x30a8, 0x34a9, 0x3caa, 0x42a3, + 0x44ad, 0x461e, 0x4cae, 0x54b3, 0x58b6, 0x5cb2, 0x64b7, 0x6cb0, + 0x70b4, 0x74b5, 0x7cc4, 0x84bd, 0x8ccc, 0x94ce, 0x9ccb, 0xa4c1, + 0xacc9, 0xb4c6, 0xbcc7, 0xc0ca, 0xc8cd, 0xd8b9, 0xe0c3, 0xe4ba, + 0xe6bb, 0xe8c8, 0xf0b8, 0xf8cf, 0x00df, 0x08d0, 0x10db, 0x18d9, + 0x20d7, 0x2428, 0x265a, 0x2a2f, 0x2d19, 0x2e3f, 0x30dc, 0x38d1, // Entry C0 - FF - 0x493e, 0x54df, 0x5cd7, 0x64d3, 0x6cd5, 0x74de, 0x7cd4, 0x84d9, - 0x88c6, 0x8b32, 0x8e74, 0x90bf, 0x92ef, 0x94e7, 0x9ee1, 0xace5, - 0xb0f0, 0xb8e3, 0xc0e6, 0xc8ea, 0xd0e8, 0xd8ed, 0xe08a, 0xe525, - 0xeceb, 0xf4f2, 0xfd01, 0x0503, 0x0705, 0x0d06, 0x183b, 0x1d0d, - 0x26a8, 0x2825, 0x2cb0, 0x2ebd, 0x34e9, 0x3d38, 0x4512, 0x4d17, - 0x5507, 0x5d13, 0x6104, 0x6509, 0x6d11, 0x7d0c, 0x7f10, 0x813d, - 0x830e, 0x8514, 0x8d60, 0x9963, 0xa15c, 0xa86d, 0xb116, 0xb30a, - 0xb86b, 0xc10a, 0xc915, 0xd10f, 0xd91c, 0xe10b, 0xe84d, 0xf11b, + 0x493c, 0x54de, 0x5cd6, 0x64d2, 0x6cd4, 0x74dd, 0x7cd3, 0x84d8, + 0x88c5, 0x8b31, 0x8e73, 0x90be, 0x92ee, 0x94e6, 0x9ee0, 0xace4, + 0xb0ef, 0xb8e2, 0xc0e5, 0xc8e9, 0xd0e7, 0xd8ec, 0xe089, 0xe524, + 0xecea, 0xf4f1, 0xfd00, 0x0502, 0x0704, 0x0d05, 0x183b, 0x1d0c, + 0x26a7, 0x2825, 0x2caf, 0x2ebc, 0x34e8, 0x3d36, 0x4511, 0x4d16, + 0x5506, 0x5d12, 0x6103, 0x6508, 0x6d10, 0x7d0b, 0x7f0f, 0x813b, + 0x830d, 0x8513, 0x8d5e, 0x9961, 0xa15a, 0xa86d, 0xb115, 0xb309, + 0xb86b, 0xc109, 0xc914, 0xd10e, 0xd91b, 0xe10a, 0xe84d, 0xf11a, // Entry 100 - 13F - 0xf523, 0xf922, 0x0121, 0x0924, 0x1128, 0x192b, 0x2022, 0x2927, - 0x312a, 0x3726, 0x391e, 0x3d2c, 0x4130, 0x492f, 0x4ec1, 0x5518, - 0x646a, 0x747a, 0x7e7e, 0x809e, 0x8297, 0x852e, 0x9134, 0xa53c, - 0xac36, 0xb535, 0xb936, 0xbd3a, 0xd93f, 0xe541, 0xed5d, 0xef5d, - 0xf656, 0xfd61, 0x7c1f, 0x7ef3, 0x80f4, 0x82f5, 0x84f6, 0x86f7, - 0x88f8, 0x8af9, 0x8cfa, 0x8e6f, 0x90fc, 0x92fd, 0x94fe, 0x96ff, - 0x9900, 0x9b42, 0x9d43, 0x9f44, 0xa145, 0xa346, 0xa547, 0xa748, - 0xa949, 0xab4a, 0xad4b, 0xaf4c, 0xb14d, 0xb34e, 0xb54f, 0xb750, + 0xf522, 0xf921, 0x0120, 0x0923, 0x1127, 0x192a, 0x2022, 0x2926, + 0x3129, 0x3725, 0x391d, 0x3d2b, 0x412f, 0x492e, 0x4ec0, 0x5517, + 0x646a, 0x7479, 0x7e7d, 0x809d, 0x8296, 0x852d, 0x9132, 0xa53a, + 0xac36, 0xb533, 0xb934, 0xbd38, 0xd93d, 0xe53f, 0xed5b, 0xef5b, + 0xf656, 0xfd5f, 0x7c1f, 0x7ef2, 0x80f3, 0x82f4, 0x84f5, 0x86f6, + 0x88f7, 0x8af8, 0x8cf9, 0x8e6f, 0x90fb, 0x92fc, 0x94fd, 0x96fe, + 0x98ff, 0x9b40, 0x9d41, 0x9f42, 0xa143, 0xa344, 0xa545, 0xa746, + 0xa947, 0xab48, 0xad49, 0xaf4a, 0xb14b, 0xb34c, 0xb54d, 0xb74e, // Entry 140 - 17F - 0xb951, 0xbb52, 0xbd53, 0xbf54, 0xc155, 0xc356, 0xc557, 0xc758, - 0xc959, 0xcb5a, 0xcd5b, 0xcf64, + 0xb94f, 0xbb50, 0xbd51, 0xbf52, 0xc153, 0xc354, 0xc555, 0xc756, + 0xc957, 0xcb58, 0xcd59, 0xcf62, } -// Size: 1463 bytes +// Size: 1444 bytes var variantIndex = map[string]uint8{ "1606nict": 0x0, "1694acad": 0x1, @@ -1278,9 +1132,8 @@ var variantIndex = map[string]uint8{ "ekavsk": 0x15, "emodeng": 0x16, "fonipa": 0x48, - "fonnapa": 0x49, - "fonupa": 0x4a, - "fonxsamp": 0x4b, + "fonupa": 0x49, + "fonxsamp": 0x4a, "hepburn": 0x17, "heploc": 0x46, "hognorsk": 0x18, @@ -1313,7 +1166,7 @@ var variantIndex = map[string]uint8{ "rumgr": 0x30, "scotland": 0x31, "scouse": 0x32, - "simple": 0x4c, + "simple": 0x4b, "solba": 0x44, "sotav": 0x33, "surmiran": 0x34, @@ -1345,145 +1198,145 @@ type likelyLangRegion struct { // languages and regions given a script. // Size: 928 bytes, 232 elements var likelyScript = [232]likelyLangRegion{ - 1: {lang: 0x149, region: 0x83}, - 3: {lang: 0x299, region: 0x105}, - 4: {lang: 0x1e, region: 0x98}, - 5: {lang: 0x39, region: 0x6a}, - 7: {lang: 0x3a, region: 0x9b}, - 8: {lang: 0x1d0, region: 0x27}, - 9: {lang: 0x12, region: 0x9b}, - 10: {lang: 0x5a, region: 0x94}, - 11: {lang: 0x5f, region: 0x51}, - 12: {lang: 0xb7, region: 0xb3}, - 13: {lang: 0x62, region: 0x94}, - 14: {lang: 0xa3, region: 0x34}, - 15: {lang: 0x3e0, region: 0x98}, - 17: {lang: 0x51f, region: 0x12d}, - 18: {lang: 0x3a8, region: 0x98}, - 19: {lang: 0x159, region: 0x77}, - 20: {lang: 0xc0, region: 0x94}, - 21: {lang: 0x9b, region: 0xe6}, - 22: {lang: 0xd9, region: 0x34}, - 23: {lang: 0xf0, region: 0x48}, - 24: {lang: 0x4e6, region: 0x12a}, - 25: {lang: 0xe5, region: 0x13d}, - 26: {lang: 0xe3, region: 0x134}, - 28: {lang: 0xee, region: 0x6a}, - 29: {lang: 0x199, region: 0x5c}, - 30: {lang: 0x3d9, region: 0x105}, - 32: {lang: 0x1b7, region: 0x98}, - 34: {lang: 0x159, region: 0x77}, - 37: {lang: 0x12f, region: 0x6a}, - 38: {lang: 0x427, region: 0x26}, - 39: {lang: 0x26, region: 0x6e}, - 41: {lang: 0x208, region: 0x7c}, - 42: {lang: 0xfa, region: 0x37}, - 43: {lang: 0x198, region: 0x12f}, - 44: {lang: 0x3e0, region: 0x98}, - 45: {lang: 0x131, region: 0x86}, - 46: {lang: 0x19d, region: 0x98}, - 47: {lang: 0x394, region: 0x98}, - 48: {lang: 0x51f, region: 0x12d}, - 49: {lang: 0x24b, region: 0xaa}, - 50: {lang: 0x51f, region: 0x52}, - 51: {lang: 0x1c4, region: 0xe6}, - 52: {lang: 0x51f, region: 0x52}, - 53: {lang: 0x51f, region: 0x12d}, - 54: {lang: 0x2f4, region: 0x9a}, - 55: {lang: 0x1b5, region: 0x96}, - 56: {lang: 0x1f8, region: 0xa1}, - 57: {lang: 0x1be, region: 0x12a}, - 58: {lang: 0x1c3, region: 0xae}, - 60: {lang: 0x1ce, region: 0x91}, - 62: {lang: 0x13d, region: 0x9d}, - 63: {lang: 0x24b, region: 0xaa}, - 64: {lang: 0x206, region: 0x94}, - 65: {lang: 0x1f8, region: 0xa1}, - 67: {lang: 0x130, region: 0xc3}, - 68: {lang: 0x1f8, region: 0xa1}, - 69: {lang: 0x3b2, region: 0xe7}, - 70: {lang: 0x242, region: 0xa5}, - 71: {lang: 0x3f0, region: 0x98}, - 74: {lang: 0x249, region: 0x98}, - 75: {lang: 0x24b, region: 0xaa}, - 77: {lang: 0x87, region: 0x98}, - 78: {lang: 0x367, region: 0x122}, - 79: {lang: 0x2af, region: 0xae}, - 84: {lang: 0x296, region: 0x98}, - 85: {lang: 0x29f, region: 0x98}, - 86: {lang: 0x286, region: 0x86}, - 87: {lang: 0x199, region: 0x86}, - 88: {lang: 0x2a3, region: 0x52}, - 90: {lang: 0x4ea, region: 0x12a}, - 91: {lang: 0x4eb, region: 0x12a}, - 92: {lang: 0x1b7, region: 0x98}, - 93: {lang: 0x32e, region: 0x9b}, - 94: {lang: 0x4ed, region: 0x52}, - 95: {lang: 0xa7, region: 0x52}, - 97: {lang: 0x2df, region: 0x111}, - 98: {lang: 0x4ee, region: 0x10a}, - 99: {lang: 0x4ee, region: 0x10a}, - 100: {lang: 0x2fb, region: 0x98}, - 101: {lang: 0x312, region: 0x98}, - 102: {lang: 0x302, region: 0x52}, - 104: {lang: 0x315, region: 0x34}, - 105: {lang: 0x305, region: 0x98}, - 106: {lang: 0x40a, region: 0xe7}, - 107: {lang: 0x328, region: 0xc3}, - 108: {lang: 0x4ef, region: 0x107}, - 109: {lang: 0x3a, region: 0xa0}, - 110: {lang: 0x34a, region: 0xda}, - 112: {lang: 0x2c7, region: 0x83}, - 114: {lang: 0x3f9, region: 0x95}, - 115: {lang: 0x3e5, region: 0x98}, - 116: {lang: 0x392, region: 0xc4}, - 117: {lang: 0x38c, region: 0x98}, - 118: {lang: 0x390, region: 0x134}, - 119: {lang: 0x41f, region: 0x114}, - 120: {lang: 0x3a, region: 0x11b}, - 121: {lang: 0xf9, region: 0xc3}, - 122: {lang: 0x274, region: 0x105}, - 123: {lang: 0x2c0, region: 0x52}, - 124: {lang: 0x396, region: 0x9b}, - 125: {lang: 0x396, region: 0x52}, - 127: {lang: 0x3a4, region: 0xaf}, - 129: {lang: 0x1bf, region: 0x52}, - 130: {lang: 0x4f3, region: 0x9b}, - 181: {lang: 0x3c2, region: 0x94}, - 183: {lang: 0x369, region: 0x10b}, - 184: {lang: 0x416, region: 0x96}, - 186: {lang: 0x4f5, region: 0x15d}, - 187: {lang: 0x3e6, region: 0x98}, - 188: {lang: 0x44, region: 0x134}, - 189: {lang: 0x134, region: 0x7a}, - 190: {lang: 0x3e0, region: 0x98}, - 191: {lang: 0x3e0, region: 0x98}, - 192: {lang: 0x3f0, region: 0x98}, - 193: {lang: 0x402, region: 0xb2}, - 194: {lang: 0x429, region: 0x98}, - 195: {lang: 0x434, region: 0x94}, - 196: {lang: 0x443, region: 0x34}, - 197: {lang: 0x444, region: 0x9a}, - 201: {lang: 0x450, region: 0xe6}, - 202: {lang: 0x116, region: 0x98}, - 203: {lang: 0x454, region: 0x52}, - 204: {lang: 0x22a, region: 0x52}, - 205: {lang: 0x446, region: 0x98}, - 206: {lang: 0x49b, region: 0x52}, - 207: {lang: 0x9d, region: 0x13d}, - 208: {lang: 0x457, region: 0x98}, - 210: {lang: 0x51e, region: 0xb9}, - 211: {lang: 0x14e, region: 0xe6}, - 212: {lang: 0x124, region: 0xcc}, - 213: {lang: 0x461, region: 0x122}, - 214: {lang: 0xa7, region: 0x52}, - 215: {lang: 0x2c5, region: 0x98}, - 216: {lang: 0x4a3, region: 0x11b}, - 217: {lang: 0x4b4, region: 0xb3}, - 219: {lang: 0x1c7, region: 0x98}, - 221: {lang: 0x3a0, region: 0x9b}, - 222: {lang: 0x21, region: 0x9a}, - 223: {lang: 0x1e2, region: 0x52}, + 1: {lang: 0xa6, region: 0x82}, + 3: {lang: 0x159, region: 0x104}, + 4: {lang: 0xc, region: 0x97}, + 5: {lang: 0x15, region: 0x6a}, + 7: {lang: 0x16, region: 0x9a}, + 8: {lang: 0xf3, region: 0x27}, + 9: {lang: 0x8, region: 0x9a}, + 10: {lang: 0x27, region: 0x93}, + 11: {lang: 0x2b, region: 0x51}, + 12: {lang: 0x55, region: 0xb2}, + 13: {lang: 0x2c, region: 0x93}, + 14: {lang: 0x4b, region: 0x34}, + 15: {lang: 0x20d, region: 0x97}, + 17: {lang: 0x2c4, region: 0x12c}, + 18: {lang: 0x1e5, region: 0x97}, + 19: {lang: 0xaf, region: 0x76}, + 20: {lang: 0x5b, region: 0x93}, + 21: {lang: 0x47, region: 0xe5}, + 22: {lang: 0x63, region: 0x34}, + 23: {lang: 0x73, region: 0x48}, + 24: {lang: 0x2a8, region: 0x129}, + 25: {lang: 0x6e, region: 0x13b}, + 26: {lang: 0x6c, region: 0x132}, + 28: {lang: 0x71, region: 0x6a}, + 29: {lang: 0xd0, region: 0x5c}, + 30: {lang: 0x207, region: 0x104}, + 32: {lang: 0xe1, region: 0x97}, + 34: {lang: 0xaf, region: 0x76}, + 37: {lang: 0x98, region: 0x6a}, + 38: {lang: 0x23a, region: 0x26}, + 39: {lang: 0x11, region: 0x6e}, + 41: {lang: 0x111, region: 0x7b}, + 42: {lang: 0x7d, region: 0x37}, + 43: {lang: 0xcf, region: 0x12e}, + 44: {lang: 0x20d, region: 0x97}, + 45: {lang: 0x9a, region: 0x85}, + 46: {lang: 0xd3, region: 0x97}, + 47: {lang: 0x1d7, region: 0x97}, + 48: {lang: 0x2c4, region: 0x12c}, + 49: {lang: 0x136, region: 0xa9}, + 50: {lang: 0x2c4, region: 0x52}, + 51: {lang: 0xe9, region: 0xe5}, + 52: {lang: 0x2c4, region: 0x52}, + 53: {lang: 0x2c4, region: 0x12c}, + 54: {lang: 0x18b, region: 0x99}, + 55: {lang: 0xe0, region: 0x95}, + 56: {lang: 0x107, region: 0xa0}, + 57: {lang: 0xe4, region: 0x129}, + 58: {lang: 0xe8, region: 0xad}, + 60: {lang: 0xf2, region: 0x90}, + 62: {lang: 0xa0, region: 0x9c}, + 63: {lang: 0x136, region: 0xa9}, + 64: {lang: 0x10f, region: 0x93}, + 65: {lang: 0x107, region: 0xa0}, + 67: {lang: 0x99, region: 0xc2}, + 68: {lang: 0x107, region: 0xa0}, + 69: {lang: 0x1eb, region: 0xe6}, + 70: {lang: 0x133, region: 0xa4}, + 71: {lang: 0x21a, region: 0x97}, + 74: {lang: 0x135, region: 0x97}, + 75: {lang: 0x136, region: 0xa9}, + 77: {lang: 0x40, region: 0x97}, + 78: {lang: 0x1c2, region: 0x121}, + 79: {lang: 0x165, region: 0xad}, + 84: {lang: 0x158, region: 0x97}, + 85: {lang: 0x15c, region: 0x97}, + 86: {lang: 0x14f, region: 0x85}, + 87: {lang: 0xd0, region: 0x85}, + 88: {lang: 0x15e, region: 0x52}, + 90: {lang: 0x2aa, region: 0x129}, + 91: {lang: 0x2ab, region: 0x129}, + 92: {lang: 0xe1, region: 0x97}, + 93: {lang: 0x1a8, region: 0x9a}, + 94: {lang: 0x2ad, region: 0x52}, + 95: {lang: 0x4c, region: 0x52}, + 97: {lang: 0x17f, region: 0x110}, + 98: {lang: 0x2ae, region: 0x109}, + 99: {lang: 0x2ae, region: 0x109}, + 100: {lang: 0x18d, region: 0x97}, + 101: {lang: 0x196, region: 0x97}, + 102: {lang: 0x18f, region: 0x52}, + 104: {lang: 0x199, region: 0x34}, + 105: {lang: 0x190, region: 0x97}, + 106: {lang: 0x22b, region: 0xe6}, + 107: {lang: 0x1a5, region: 0xc2}, + 108: {lang: 0x2af, region: 0x106}, + 109: {lang: 0x16, region: 0x9f}, + 110: {lang: 0x1b5, region: 0xd9}, + 112: {lang: 0x179, region: 0x82}, + 114: {lang: 0x223, region: 0x94}, + 115: {lang: 0x212, region: 0x97}, + 116: {lang: 0x1d6, region: 0xc3}, + 117: {lang: 0x1d3, region: 0x97}, + 118: {lang: 0x1d5, region: 0x132}, + 119: {lang: 0x238, region: 0x113}, + 120: {lang: 0x16, region: 0x11a}, + 121: {lang: 0x7c, region: 0xc2}, + 122: {lang: 0x147, region: 0x104}, + 123: {lang: 0x172, region: 0x52}, + 124: {lang: 0x1d9, region: 0x9a}, + 125: {lang: 0x1d9, region: 0x52}, + 127: {lang: 0x1e3, region: 0xae}, + 129: {lang: 0xe5, region: 0x52}, + 130: {lang: 0x2b2, region: 0x9a}, + 181: {lang: 0x1f6, region: 0x93}, + 183: {lang: 0x1c4, region: 0x10a}, + 184: {lang: 0x234, region: 0x95}, + 186: {lang: 0x2b3, region: 0x15b}, + 187: {lang: 0x213, region: 0x97}, + 188: {lang: 0x1e, region: 0x132}, + 189: {lang: 0x9b, region: 0x79}, + 190: {lang: 0x20d, region: 0x97}, + 191: {lang: 0x20d, region: 0x97}, + 192: {lang: 0x21a, region: 0x97}, + 193: {lang: 0x228, region: 0xb1}, + 194: {lang: 0x23c, region: 0x97}, + 195: {lang: 0x244, region: 0x93}, + 196: {lang: 0x24e, region: 0x34}, + 197: {lang: 0x24f, region: 0x99}, + 201: {lang: 0x253, region: 0xe5}, + 202: {lang: 0x8a, region: 0x97}, + 203: {lang: 0x255, region: 0x52}, + 204: {lang: 0x126, region: 0x52}, + 205: {lang: 0x251, region: 0x97}, + 206: {lang: 0x27f, region: 0x52}, + 207: {lang: 0x48, region: 0x13b}, + 208: {lang: 0x258, region: 0x97}, + 210: {lang: 0x2c3, region: 0xb8}, + 211: {lang: 0xaa, region: 0xe5}, + 212: {lang: 0x90, region: 0xcb}, + 213: {lang: 0x25d, region: 0x121}, + 214: {lang: 0x4c, region: 0x52}, + 215: {lang: 0x177, region: 0x97}, + 216: {lang: 0x285, region: 0x11a}, + 217: {lang: 0x28e, region: 0xb2}, + 219: {lang: 0xec, region: 0x97}, + 221: {lang: 0x1e1, region: 0x9a}, + 222: {lang: 0xe, region: 0x99}, + 223: {lang: 0xfb, region: 0x52}, } type likelyScriptRegion struct { @@ -1496,1413 +1349,807 @@ type likelyScriptRegion struct { // scripts and regions given incomplete information. If more entries exist for a // given language, region and script are the index and size respectively // of the list in likelyLangList. -// Size: 5276 bytes, 1319 elements -var likelyLang = [1319]likelyScriptRegion{ - 0: {region: 0x134, script: 0x52, flags: 0x0}, - 1: {region: 0x6e, script: 0x52, flags: 0x0}, - 2: {region: 0x164, script: 0x52, flags: 0x0}, - 3: {region: 0x164, script: 0x52, flags: 0x0}, - 4: {region: 0x164, script: 0x52, flags: 0x0}, - 5: {region: 0x7c, script: 0x1e, flags: 0x0}, - 6: {region: 0x164, script: 0x52, flags: 0x0}, - 7: {region: 0x7f, script: 0x52, flags: 0x0}, - 8: {region: 0x164, script: 0x52, flags: 0x0}, - 9: {region: 0x164, script: 0x52, flags: 0x0}, - 10: {region: 0x164, script: 0x52, flags: 0x0}, - 11: {region: 0x94, script: 0x52, flags: 0x0}, - 12: {region: 0x130, script: 0x52, flags: 0x0}, - 13: {region: 0x7f, script: 0x52, flags: 0x0}, - 14: {region: 0x164, script: 0x52, flags: 0x0}, - 15: {region: 0x164, script: 0x52, flags: 0x0}, - 16: {region: 0x105, script: 0x1e, flags: 0x0}, - 17: {region: 0x164, script: 0x52, flags: 0x0}, - 18: {region: 0x9b, script: 0x9, flags: 0x0}, - 19: {region: 0x127, script: 0x5, flags: 0x0}, - 20: {region: 0x164, script: 0x52, flags: 0x0}, - 21: {region: 0x160, script: 0x52, flags: 0x0}, - 22: {region: 0x164, script: 0x52, flags: 0x0}, - 23: {region: 0x164, script: 0x52, flags: 0x0}, - 24: {region: 0x164, script: 0x52, flags: 0x0}, - 25: {region: 0x164, script: 0x52, flags: 0x0}, - 26: {region: 0x164, script: 0x52, flags: 0x0}, - 27: {region: 0x51, script: 0x52, flags: 0x0}, - 28: {region: 0x164, script: 0x52, flags: 0x0}, - 29: {region: 0x164, script: 0x52, flags: 0x0}, - 30: {region: 0x98, script: 0x4, flags: 0x0}, - 31: {region: 0x164, script: 0x52, flags: 0x0}, - 32: {region: 0x7f, script: 0x52, flags: 0x0}, - 33: {region: 0x9a, script: 0xde, flags: 0x0}, - 34: {region: 0x164, script: 0x52, flags: 0x0}, - 35: {region: 0x164, script: 0x52, flags: 0x0}, - 36: {region: 0x14c, script: 0x52, flags: 0x0}, - 37: {region: 0x105, script: 0x1e, flags: 0x0}, - 38: {region: 0x6e, script: 0x27, flags: 0x0}, - 39: {region: 0x164, script: 0x52, flags: 0x0}, - 40: {region: 0x164, script: 0x52, flags: 0x0}, - 41: {region: 0xd5, script: 0x52, flags: 0x0}, - 42: {region: 0x164, script: 0x52, flags: 0x0}, - 44: {region: 0x164, script: 0x52, flags: 0x0}, - 45: {region: 0x164, script: 0x52, flags: 0x0}, - 46: {region: 0x164, script: 0x52, flags: 0x0}, - 47: {region: 0x164, script: 0x52, flags: 0x0}, - 48: {region: 0x164, script: 0x52, flags: 0x0}, - 49: {region: 0x164, script: 0x52, flags: 0x0}, - 50: {region: 0x94, script: 0x52, flags: 0x0}, - 51: {region: 0x164, script: 0x5, flags: 0x0}, - 52: {region: 0x121, script: 0x5, flags: 0x0}, - 53: {region: 0x164, script: 0x52, flags: 0x0}, - 54: {region: 0x164, script: 0x52, flags: 0x0}, - 55: {region: 0x164, script: 0x52, flags: 0x0}, - 56: {region: 0x164, script: 0x52, flags: 0x0}, - 57: {region: 0x6a, script: 0x5, flags: 0x0}, - 58: {region: 0x0, script: 0x3, flags: 0x1}, - 59: {region: 0x164, script: 0x52, flags: 0x0}, - 60: {region: 0x50, script: 0x52, flags: 0x0}, - 61: {region: 0x3e, script: 0x52, flags: 0x0}, - 62: {region: 0x66, script: 0x5, flags: 0x0}, - 64: {region: 0xb9, script: 0x5, flags: 0x0}, - 65: {region: 0x6a, script: 0x5, flags: 0x0}, - 66: {region: 0x98, script: 0xe, flags: 0x0}, - 67: {region: 0x12e, script: 0x52, flags: 0x0}, - 68: {region: 0x134, script: 0xbc, flags: 0x0}, - 69: {region: 0x164, script: 0x52, flags: 0x0}, - 70: {region: 0x164, script: 0x52, flags: 0x0}, - 71: {region: 0x6d, script: 0x52, flags: 0x0}, - 72: {region: 0x164, script: 0x52, flags: 0x0}, - 73: {region: 0x164, script: 0x52, flags: 0x0}, - 74: {region: 0x48, script: 0x52, flags: 0x0}, - 75: {region: 0x164, script: 0x52, flags: 0x0}, - 76: {region: 0x105, script: 0x1e, flags: 0x0}, - 77: {region: 0x164, script: 0x5, flags: 0x0}, - 78: {region: 0x164, script: 0x52, flags: 0x0}, - 79: {region: 0x164, script: 0x52, flags: 0x0}, - 80: {region: 0x164, script: 0x52, flags: 0x0}, - 81: {region: 0x98, script: 0x20, flags: 0x0}, - 82: {region: 0x164, script: 0x52, flags: 0x0}, - 83: {region: 0x164, script: 0x52, flags: 0x0}, - 84: {region: 0x164, script: 0x52, flags: 0x0}, - 85: {region: 0x3e, script: 0x52, flags: 0x0}, - 86: {region: 0x164, script: 0x52, flags: 0x0}, - 87: {region: 0x3, script: 0x5, flags: 0x1}, - 88: {region: 0x105, script: 0x1e, flags: 0x0}, - 89: {region: 0xe7, script: 0x5, flags: 0x0}, - 90: {region: 0x94, script: 0x52, flags: 0x0}, - 91: {region: 0xda, script: 0x20, flags: 0x0}, - 92: {region: 0x2d, script: 0x52, flags: 0x0}, - 93: {region: 0x51, script: 0x52, flags: 0x0}, - 94: {region: 0x164, script: 0x52, flags: 0x0}, - 95: {region: 0x51, script: 0xb, flags: 0x0}, - 96: {region: 0x164, script: 0x52, flags: 0x0}, - 97: {region: 0x164, script: 0x52, flags: 0x0}, - 98: {region: 0x94, script: 0x52, flags: 0x0}, - 99: {region: 0x164, script: 0x52, flags: 0x0}, - 100: {region: 0x51, script: 0x52, flags: 0x0}, - 101: {region: 0x164, script: 0x52, flags: 0x0}, - 102: {region: 0x164, script: 0x52, flags: 0x0}, - 103: {region: 0x164, script: 0x52, flags: 0x0}, - 104: {region: 0x164, script: 0x52, flags: 0x0}, - 105: {region: 0x4e, script: 0x52, flags: 0x0}, - 106: {region: 0x164, script: 0x52, flags: 0x0}, - 107: {region: 0x164, script: 0x52, flags: 0x0}, - 108: {region: 0x164, script: 0x52, flags: 0x0}, - 109: {region: 0x164, script: 0x27, flags: 0x0}, - 110: {region: 0x164, script: 0x52, flags: 0x0}, - 111: {region: 0x164, script: 0x52, flags: 0x0}, - 112: {region: 0x46, script: 0x1e, flags: 0x0}, - 113: {region: 0x164, script: 0x52, flags: 0x0}, - 114: {region: 0x164, script: 0x52, flags: 0x0}, - 115: {region: 0x10a, script: 0x5, flags: 0x0}, - 116: {region: 0x161, script: 0x52, flags: 0x0}, - 117: {region: 0x164, script: 0x52, flags: 0x0}, - 118: {region: 0x94, script: 0x52, flags: 0x0}, - 119: {region: 0x164, script: 0x52, flags: 0x0}, - 120: {region: 0x12e, script: 0x52, flags: 0x0}, - 121: {region: 0x51, script: 0x52, flags: 0x0}, - 122: {region: 0x98, script: 0xcd, flags: 0x0}, - 123: {region: 0xe7, script: 0x5, flags: 0x0}, - 124: {region: 0x98, script: 0x20, flags: 0x0}, - 125: {region: 0x37, script: 0x1e, flags: 0x0}, - 126: {region: 0x98, script: 0x20, flags: 0x0}, - 127: {region: 0xe7, script: 0x5, flags: 0x0}, - 128: {region: 0x12a, script: 0x2d, flags: 0x0}, - 130: {region: 0x98, script: 0x20, flags: 0x0}, - 131: {region: 0x164, script: 0x52, flags: 0x0}, - 132: {region: 0x98, script: 0x20, flags: 0x0}, - 133: {region: 0xe6, script: 0x52, flags: 0x0}, - 134: {region: 0x164, script: 0x52, flags: 0x0}, - 135: {region: 0x98, script: 0x20, flags: 0x0}, - 136: {region: 0x164, script: 0x52, flags: 0x0}, - 137: {region: 0x13e, script: 0x52, flags: 0x0}, - 138: {region: 0x164, script: 0x52, flags: 0x0}, - 139: {region: 0x164, script: 0x52, flags: 0x0}, - 140: {region: 0xe6, script: 0x52, flags: 0x0}, - 141: {region: 0x164, script: 0x52, flags: 0x0}, - 142: {region: 0xd5, script: 0x52, flags: 0x0}, - 143: {region: 0x164, script: 0x52, flags: 0x0}, - 144: {region: 0x164, script: 0x52, flags: 0x0}, - 145: {region: 0x164, script: 0x52, flags: 0x0}, - 146: {region: 0x164, script: 0x27, flags: 0x0}, - 147: {region: 0x98, script: 0x20, flags: 0x0}, - 148: {region: 0x94, script: 0x52, flags: 0x0}, - 149: {region: 0x164, script: 0x52, flags: 0x0}, - 150: {region: 0x164, script: 0x52, flags: 0x0}, - 151: {region: 0x164, script: 0x52, flags: 0x0}, - 152: {region: 0x164, script: 0x52, flags: 0x0}, - 153: {region: 0x51, script: 0x52, flags: 0x0}, - 154: {region: 0x164, script: 0x52, flags: 0x0}, - 155: {region: 0xe6, script: 0x52, flags: 0x0}, - 156: {region: 0x164, script: 0x52, flags: 0x0}, - 157: {region: 0x13d, script: 0xcf, flags: 0x0}, - 158: {region: 0xc2, script: 0x52, flags: 0x0}, - 159: {region: 0x164, script: 0x52, flags: 0x0}, - 160: {region: 0x164, script: 0x52, flags: 0x0}, - 161: {region: 0xc2, script: 0x52, flags: 0x0}, - 162: {region: 0x164, script: 0x52, flags: 0x0}, - 163: {region: 0x34, script: 0xe, flags: 0x0}, - 164: {region: 0x164, script: 0x52, flags: 0x0}, - 165: {region: 0x164, script: 0x52, flags: 0x0}, - 166: {region: 0x164, script: 0x52, flags: 0x0}, - 167: {region: 0x52, script: 0xd6, flags: 0x0}, - 168: {region: 0x164, script: 0x52, flags: 0x0}, - 169: {region: 0x164, script: 0x52, flags: 0x0}, - 170: {region: 0x164, script: 0x52, flags: 0x0}, - 171: {region: 0x98, script: 0xe, flags: 0x0}, - 172: {region: 0x164, script: 0x52, flags: 0x0}, - 173: {region: 0x9b, script: 0x5, flags: 0x0}, - 174: {region: 0x164, script: 0x52, flags: 0x0}, - 175: {region: 0x4e, script: 0x52, flags: 0x0}, - 176: {region: 0x77, script: 0x52, flags: 0x0}, - 177: {region: 0x98, script: 0x20, flags: 0x0}, - 178: {region: 0xe7, script: 0x5, flags: 0x0}, - 179: {region: 0x98, script: 0x20, flags: 0x0}, - 180: {region: 0x164, script: 0x52, flags: 0x0}, - 181: {region: 0x32, script: 0x52, flags: 0x0}, - 182: {region: 0x164, script: 0x52, flags: 0x0}, - 183: {region: 0xb3, script: 0xc, flags: 0x0}, - 184: {region: 0x51, script: 0x52, flags: 0x0}, - 185: {region: 0x164, script: 0x27, flags: 0x0}, - 186: {region: 0xe6, script: 0x52, flags: 0x0}, - 187: {region: 0x164, script: 0x52, flags: 0x0}, - 188: {region: 0xe7, script: 0x20, flags: 0x0}, - 189: {region: 0x105, script: 0x1e, flags: 0x0}, - 190: {region: 0x15e, script: 0x52, flags: 0x0}, - 191: {region: 0x164, script: 0x52, flags: 0x0}, - 192: {region: 0x94, script: 0x52, flags: 0x0}, - 193: {region: 0x164, script: 0x52, flags: 0x0}, - 194: {region: 0x51, script: 0x52, flags: 0x0}, - 195: {region: 0x164, script: 0x52, flags: 0x0}, - 196: {region: 0x164, script: 0x52, flags: 0x0}, - 197: {region: 0x164, script: 0x52, flags: 0x0}, - 198: {region: 0x85, script: 0x52, flags: 0x0}, - 199: {region: 0x164, script: 0x52, flags: 0x0}, - 200: {region: 0x164, script: 0x52, flags: 0x0}, - 201: {region: 0x164, script: 0x52, flags: 0x0}, - 202: {region: 0x164, script: 0x52, flags: 0x0}, - 203: {region: 0x6c, script: 0x27, flags: 0x0}, - 204: {region: 0x164, script: 0x52, flags: 0x0}, - 205: {region: 0x164, script: 0x52, flags: 0x0}, - 206: {region: 0x51, script: 0x52, flags: 0x0}, - 207: {region: 0x164, script: 0x52, flags: 0x0}, - 208: {region: 0x164, script: 0x52, flags: 0x0}, - 209: {region: 0xc2, script: 0x52, flags: 0x0}, - 210: {region: 0x164, script: 0x52, flags: 0x0}, - 211: {region: 0x164, script: 0x52, flags: 0x0}, - 212: {region: 0x164, script: 0x52, flags: 0x0}, - 213: {region: 0x6d, script: 0x52, flags: 0x0}, - 214: {region: 0x164, script: 0x52, flags: 0x0}, - 215: {region: 0x164, script: 0x52, flags: 0x0}, - 216: {region: 0xd5, script: 0x52, flags: 0x0}, - 217: {region: 0x8, script: 0x2, flags: 0x1}, - 218: {region: 0x105, script: 0x1e, flags: 0x0}, - 219: {region: 0xe6, script: 0x52, flags: 0x0}, - 220: {region: 0x164, script: 0x52, flags: 0x0}, - 221: {region: 0x130, script: 0x52, flags: 0x0}, - 222: {region: 0x89, script: 0x52, flags: 0x0}, - 223: {region: 0x74, script: 0x52, flags: 0x0}, - 224: {region: 0x105, script: 0x1e, flags: 0x0}, - 225: {region: 0x134, script: 0x52, flags: 0x0}, - 226: {region: 0x48, script: 0x52, flags: 0x0}, - 227: {region: 0x134, script: 0x1a, flags: 0x0}, - 228: {region: 0xa5, script: 0x5, flags: 0x0}, - 229: {region: 0x13d, script: 0x19, flags: 0x0}, - 230: {region: 0x164, script: 0x52, flags: 0x0}, - 231: {region: 0x9a, script: 0x5, flags: 0x0}, - 232: {region: 0x164, script: 0x52, flags: 0x0}, - 233: {region: 0x164, script: 0x52, flags: 0x0}, - 234: {region: 0x164, script: 0x52, flags: 0x0}, - 235: {region: 0x164, script: 0x52, flags: 0x0}, - 236: {region: 0x164, script: 0x52, flags: 0x0}, - 237: {region: 0x77, script: 0x52, flags: 0x0}, - 238: {region: 0x6a, script: 0x1c, flags: 0x0}, - 239: {region: 0xe6, script: 0x52, flags: 0x0}, - 240: {region: 0x48, script: 0x17, flags: 0x0}, - 241: {region: 0x48, script: 0x17, flags: 0x0}, - 242: {region: 0x48, script: 0x17, flags: 0x0}, - 243: {region: 0x48, script: 0x17, flags: 0x0}, - 244: {region: 0x48, script: 0x17, flags: 0x0}, - 245: {region: 0x109, script: 0x52, flags: 0x0}, - 246: {region: 0x5d, script: 0x52, flags: 0x0}, - 247: {region: 0xe8, script: 0x52, flags: 0x0}, - 248: {region: 0x48, script: 0x17, flags: 0x0}, - 249: {region: 0xc3, script: 0x79, flags: 0x0}, - 250: {region: 0xa, script: 0x2, flags: 0x1}, - 251: {region: 0x105, script: 0x1e, flags: 0x0}, - 252: {region: 0x7a, script: 0x52, flags: 0x0}, - 253: {region: 0x62, script: 0x52, flags: 0x0}, - 254: {region: 0x164, script: 0x52, flags: 0x0}, - 255: {region: 0x164, script: 0x52, flags: 0x0}, - 256: {region: 0x164, script: 0x52, flags: 0x0}, - 257: {region: 0x164, script: 0x52, flags: 0x0}, - 258: {region: 0x134, script: 0x52, flags: 0x0}, - 259: {region: 0x105, script: 0x1e, flags: 0x0}, - 260: {region: 0xa3, script: 0x52, flags: 0x0}, - 261: {region: 0x164, script: 0x52, flags: 0x0}, - 262: {region: 0x164, script: 0x52, flags: 0x0}, - 263: {region: 0x98, script: 0x5, flags: 0x0}, - 264: {region: 0x164, script: 0x52, flags: 0x0}, - 265: {region: 0x5f, script: 0x52, flags: 0x0}, - 266: {region: 0x164, script: 0x52, flags: 0x0}, - 267: {region: 0x48, script: 0x52, flags: 0x0}, - 268: {region: 0x164, script: 0x52, flags: 0x0}, - 269: {region: 0x164, script: 0x52, flags: 0x0}, - 270: {region: 0x164, script: 0x52, flags: 0x0}, - 271: {region: 0x164, script: 0x5, flags: 0x0}, - 272: {region: 0x48, script: 0x52, flags: 0x0}, - 273: {region: 0x164, script: 0x52, flags: 0x0}, - 274: {region: 0x164, script: 0x52, flags: 0x0}, - 275: {region: 0xd3, script: 0x52, flags: 0x0}, - 276: {region: 0x4e, script: 0x52, flags: 0x0}, - 277: {region: 0x164, script: 0x52, flags: 0x0}, - 278: {region: 0x98, script: 0x5, flags: 0x0}, - 279: {region: 0x164, script: 0x52, flags: 0x0}, - 280: {region: 0x164, script: 0x52, flags: 0x0}, - 281: {region: 0x164, script: 0x52, flags: 0x0}, - 282: {region: 0x164, script: 0x27, flags: 0x0}, - 283: {region: 0x5f, script: 0x52, flags: 0x0}, - 284: {region: 0xc2, script: 0x52, flags: 0x0}, - 285: {region: 0xcf, script: 0x52, flags: 0x0}, - 286: {region: 0x164, script: 0x52, flags: 0x0}, - 287: {region: 0xda, script: 0x20, flags: 0x0}, - 288: {region: 0x51, script: 0x52, flags: 0x0}, - 289: {region: 0x164, script: 0x52, flags: 0x0}, - 290: {region: 0x164, script: 0x52, flags: 0x0}, - 291: {region: 0x164, script: 0x52, flags: 0x0}, - 292: {region: 0xcc, script: 0xd4, flags: 0x0}, - 293: {region: 0x164, script: 0x52, flags: 0x0}, - 294: {region: 0x164, script: 0x52, flags: 0x0}, - 295: {region: 0x113, script: 0x52, flags: 0x0}, - 296: {region: 0x36, script: 0x52, flags: 0x0}, - 297: {region: 0x42, script: 0xd6, flags: 0x0}, - 298: {region: 0x164, script: 0x52, flags: 0x0}, - 299: {region: 0xa3, script: 0x52, flags: 0x0}, - 300: {region: 0x7f, script: 0x52, flags: 0x0}, - 301: {region: 0xd5, script: 0x52, flags: 0x0}, - 302: {region: 0x9d, script: 0x52, flags: 0x0}, - 303: {region: 0x6a, script: 0x25, flags: 0x0}, - 304: {region: 0xc3, script: 0x43, flags: 0x0}, - 305: {region: 0x86, script: 0x2d, flags: 0x0}, - 306: {region: 0x164, script: 0x52, flags: 0x0}, - 307: {region: 0x164, script: 0x52, flags: 0x0}, - 308: {region: 0xc, script: 0x2, flags: 0x1}, - 309: {region: 0x164, script: 0x52, flags: 0x0}, - 310: {region: 0x164, script: 0x52, flags: 0x0}, - 311: {region: 0x1, script: 0x52, flags: 0x0}, - 312: {region: 0x164, script: 0x52, flags: 0x0}, - 313: {region: 0x6d, script: 0x52, flags: 0x0}, - 314: {region: 0x134, script: 0x52, flags: 0x0}, - 315: {region: 0x69, script: 0x52, flags: 0x0}, - 316: {region: 0x164, script: 0x52, flags: 0x0}, - 317: {region: 0x9d, script: 0x3e, flags: 0x0}, - 318: {region: 0x164, script: 0x52, flags: 0x0}, - 319: {region: 0x164, script: 0x52, flags: 0x0}, - 320: {region: 0x6d, script: 0x52, flags: 0x0}, - 321: {region: 0x51, script: 0x52, flags: 0x0}, - 322: {region: 0x6d, script: 0x52, flags: 0x0}, - 323: {region: 0x9b, script: 0x5, flags: 0x0}, - 324: {region: 0x164, script: 0x52, flags: 0x0}, - 325: {region: 0x164, script: 0x52, flags: 0x0}, - 326: {region: 0x164, script: 0x52, flags: 0x0}, - 327: {region: 0x164, script: 0x52, flags: 0x0}, - 328: {region: 0x85, script: 0x52, flags: 0x0}, - 329: {region: 0xe, script: 0x2, flags: 0x1}, - 330: {region: 0x164, script: 0x52, flags: 0x0}, - 331: {region: 0xc2, script: 0x52, flags: 0x0}, - 332: {region: 0x71, script: 0x52, flags: 0x0}, - 333: {region: 0x10a, script: 0x5, flags: 0x0}, - 334: {region: 0xe6, script: 0x52, flags: 0x0}, - 335: {region: 0x10b, script: 0x52, flags: 0x0}, - 336: {region: 0x72, script: 0x52, flags: 0x0}, - 337: {region: 0x164, script: 0x52, flags: 0x0}, - 338: {region: 0x164, script: 0x52, flags: 0x0}, - 339: {region: 0x75, script: 0x52, flags: 0x0}, - 340: {region: 0x164, script: 0x52, flags: 0x0}, - 341: {region: 0x3a, script: 0x52, flags: 0x0}, - 342: {region: 0x164, script: 0x52, flags: 0x0}, - 343: {region: 0x164, script: 0x52, flags: 0x0}, - 344: {region: 0x164, script: 0x52, flags: 0x0}, - 345: {region: 0x77, script: 0x52, flags: 0x0}, - 346: {region: 0x134, script: 0x52, flags: 0x0}, - 347: {region: 0x77, script: 0x52, flags: 0x0}, - 348: {region: 0x5f, script: 0x52, flags: 0x0}, - 349: {region: 0x5f, script: 0x52, flags: 0x0}, - 350: {region: 0x51, script: 0x5, flags: 0x0}, - 351: {region: 0x13f, script: 0x52, flags: 0x0}, - 352: {region: 0x164, script: 0x52, flags: 0x0}, - 353: {region: 0x83, script: 0x52, flags: 0x0}, - 354: {region: 0x164, script: 0x52, flags: 0x0}, - 355: {region: 0xd3, script: 0x52, flags: 0x0}, - 356: {region: 0x9d, script: 0x52, flags: 0x0}, - 357: {region: 0xd5, script: 0x52, flags: 0x0}, - 358: {region: 0x164, script: 0x52, flags: 0x0}, - 359: {region: 0x10a, script: 0x52, flags: 0x0}, - 360: {region: 0xd8, script: 0x52, flags: 0x0}, - 361: {region: 0x95, script: 0x52, flags: 0x0}, - 362: {region: 0x7f, script: 0x52, flags: 0x0}, - 363: {region: 0x164, script: 0x52, flags: 0x0}, - 364: {region: 0xbb, script: 0x52, flags: 0x0}, - 365: {region: 0x164, script: 0x52, flags: 0x0}, - 366: {region: 0x164, script: 0x52, flags: 0x0}, - 367: {region: 0x164, script: 0x52, flags: 0x0}, - 368: {region: 0x52, script: 0x34, flags: 0x0}, - 369: {region: 0x164, script: 0x52, flags: 0x0}, - 370: {region: 0x94, script: 0x52, flags: 0x0}, - 371: {region: 0x164, script: 0x52, flags: 0x0}, - 372: {region: 0x98, script: 0x20, flags: 0x0}, - 373: {region: 0x164, script: 0x52, flags: 0x0}, - 374: {region: 0x9b, script: 0x5, flags: 0x0}, - 375: {region: 0x7d, script: 0x52, flags: 0x0}, - 376: {region: 0x7a, script: 0x52, flags: 0x0}, - 377: {region: 0x164, script: 0x52, flags: 0x0}, - 378: {region: 0x164, script: 0x52, flags: 0x0}, - 379: {region: 0x164, script: 0x52, flags: 0x0}, - 380: {region: 0x164, script: 0x52, flags: 0x0}, - 381: {region: 0x164, script: 0x52, flags: 0x0}, - 382: {region: 0x164, script: 0x52, flags: 0x0}, - 383: {region: 0x6e, script: 0x27, flags: 0x0}, - 384: {region: 0x164, script: 0x52, flags: 0x0}, - 385: {region: 0xda, script: 0x20, flags: 0x0}, - 386: {region: 0x164, script: 0x52, flags: 0x0}, - 387: {region: 0xa6, script: 0x52, flags: 0x0}, - 388: {region: 0x164, script: 0x52, flags: 0x0}, - 389: {region: 0xe7, script: 0x5, flags: 0x0}, - 390: {region: 0x164, script: 0x52, flags: 0x0}, - 391: {region: 0xe7, script: 0x5, flags: 0x0}, - 392: {region: 0x164, script: 0x52, flags: 0x0}, - 393: {region: 0x164, script: 0x52, flags: 0x0}, - 394: {region: 0x6d, script: 0x52, flags: 0x0}, - 395: {region: 0x9b, script: 0x5, flags: 0x0}, - 396: {region: 0x164, script: 0x52, flags: 0x0}, - 397: {region: 0x164, script: 0x27, flags: 0x0}, - 398: {region: 0xf0, script: 0x52, flags: 0x0}, - 399: {region: 0x164, script: 0x52, flags: 0x0}, - 400: {region: 0x164, script: 0x52, flags: 0x0}, - 401: {region: 0x164, script: 0x52, flags: 0x0}, - 402: {region: 0x164, script: 0x27, flags: 0x0}, - 403: {region: 0x164, script: 0x52, flags: 0x0}, - 404: {region: 0x98, script: 0x20, flags: 0x0}, - 405: {region: 0x98, script: 0xd0, flags: 0x0}, - 406: {region: 0x94, script: 0x52, flags: 0x0}, - 407: {region: 0xd8, script: 0x52, flags: 0x0}, - 408: {region: 0x12f, script: 0x2b, flags: 0x0}, - 409: {region: 0x10, script: 0x2, flags: 0x1}, - 410: {region: 0x98, script: 0xe, flags: 0x0}, - 411: {region: 0x164, script: 0x52, flags: 0x0}, - 412: {region: 0x4d, script: 0x52, flags: 0x0}, - 413: {region: 0x98, script: 0x2e, flags: 0x0}, - 414: {region: 0x40, script: 0x52, flags: 0x0}, - 415: {region: 0x53, script: 0x52, flags: 0x0}, - 416: {region: 0x164, script: 0x52, flags: 0x0}, - 417: {region: 0x7f, script: 0x52, flags: 0x0}, - 418: {region: 0x164, script: 0x52, flags: 0x0}, - 419: {region: 0x164, script: 0x52, flags: 0x0}, - 420: {region: 0xa3, script: 0x52, flags: 0x0}, - 421: {region: 0x97, script: 0x52, flags: 0x0}, - 422: {region: 0x164, script: 0x52, flags: 0x0}, - 423: {region: 0xda, script: 0x20, flags: 0x0}, - 424: {region: 0x164, script: 0x52, flags: 0x0}, - 425: {region: 0x164, script: 0x5, flags: 0x0}, - 426: {region: 0x48, script: 0x52, flags: 0x0}, - 427: {region: 0x164, script: 0x5, flags: 0x0}, - 428: {region: 0x164, script: 0x52, flags: 0x0}, - 429: {region: 0x12, script: 0x3, flags: 0x1}, - 430: {region: 0x164, script: 0x52, flags: 0x0}, - 431: {region: 0x52, script: 0x34, flags: 0x0}, - 432: {region: 0x164, script: 0x52, flags: 0x0}, - 433: {region: 0x134, script: 0x52, flags: 0x0}, - 434: {region: 0x23, script: 0x5, flags: 0x0}, - 435: {region: 0x164, script: 0x52, flags: 0x0}, - 436: {region: 0x164, script: 0x27, flags: 0x0}, - 437: {region: 0x96, script: 0x37, flags: 0x0}, - 438: {region: 0x164, script: 0x52, flags: 0x0}, - 439: {region: 0x98, script: 0x20, flags: 0x0}, - 440: {region: 0x164, script: 0x52, flags: 0x0}, - 441: {region: 0x72, script: 0x52, flags: 0x0}, - 442: {region: 0x164, script: 0x52, flags: 0x0}, - 443: {region: 0x164, script: 0x52, flags: 0x0}, - 444: {region: 0xe6, script: 0x52, flags: 0x0}, - 445: {region: 0x164, script: 0x52, flags: 0x0}, - 446: {region: 0x12a, script: 0x39, flags: 0x0}, - 447: {region: 0x52, script: 0x81, flags: 0x0}, - 448: {region: 0x164, script: 0x52, flags: 0x0}, - 449: {region: 0xe7, script: 0x5, flags: 0x0}, - 450: {region: 0x98, script: 0x20, flags: 0x0}, - 451: {region: 0xae, script: 0x3a, flags: 0x0}, - 452: {region: 0xe6, script: 0x52, flags: 0x0}, - 453: {region: 0xe7, script: 0x5, flags: 0x0}, - 454: {region: 0xe5, script: 0x52, flags: 0x0}, - 455: {region: 0x98, script: 0x20, flags: 0x0}, - 456: {region: 0x98, script: 0x20, flags: 0x0}, - 457: {region: 0x164, script: 0x52, flags: 0x0}, - 458: {region: 0x8f, script: 0x52, flags: 0x0}, - 459: {region: 0x5f, script: 0x52, flags: 0x0}, - 460: {region: 0x52, script: 0x34, flags: 0x0}, - 461: {region: 0x90, script: 0x52, flags: 0x0}, - 462: {region: 0x91, script: 0x52, flags: 0x0}, - 463: {region: 0x164, script: 0x52, flags: 0x0}, - 464: {region: 0x27, script: 0x8, flags: 0x0}, - 465: {region: 0xd1, script: 0x52, flags: 0x0}, - 466: {region: 0x77, script: 0x52, flags: 0x0}, - 467: {region: 0x164, script: 0x52, flags: 0x0}, - 468: {region: 0x164, script: 0x52, flags: 0x0}, - 469: {region: 0xcf, script: 0x52, flags: 0x0}, - 470: {region: 0xd5, script: 0x52, flags: 0x0}, - 471: {region: 0x164, script: 0x52, flags: 0x0}, - 472: {region: 0x164, script: 0x52, flags: 0x0}, - 473: {region: 0x164, script: 0x52, flags: 0x0}, - 474: {region: 0x94, script: 0x52, flags: 0x0}, - 475: {region: 0x164, script: 0x52, flags: 0x0}, - 476: {region: 0x164, script: 0x52, flags: 0x0}, - 477: {region: 0x164, script: 0x52, flags: 0x0}, - 479: {region: 0xd5, script: 0x52, flags: 0x0}, - 480: {region: 0x164, script: 0x52, flags: 0x0}, - 481: {region: 0x164, script: 0x52, flags: 0x0}, - 482: {region: 0x52, script: 0xdf, flags: 0x0}, - 483: {region: 0x164, script: 0x52, flags: 0x0}, - 484: {region: 0x134, script: 0x52, flags: 0x0}, - 485: {region: 0x164, script: 0x52, flags: 0x0}, - 486: {region: 0x48, script: 0x52, flags: 0x0}, - 487: {region: 0x164, script: 0x52, flags: 0x0}, - 488: {region: 0x164, script: 0x52, flags: 0x0}, - 489: {region: 0xe6, script: 0x52, flags: 0x0}, - 490: {region: 0x164, script: 0x52, flags: 0x0}, - 491: {region: 0x94, script: 0x52, flags: 0x0}, - 492: {region: 0x105, script: 0x1e, flags: 0x0}, - 494: {region: 0x164, script: 0x52, flags: 0x0}, - 495: {region: 0x164, script: 0x52, flags: 0x0}, - 496: {region: 0x9c, script: 0x52, flags: 0x0}, - 497: {region: 0x9d, script: 0x52, flags: 0x0}, - 498: {region: 0x48, script: 0x17, flags: 0x0}, - 499: {region: 0x96, script: 0x37, flags: 0x0}, - 500: {region: 0x164, script: 0x52, flags: 0x0}, - 501: {region: 0x164, script: 0x52, flags: 0x0}, - 502: {region: 0x105, script: 0x52, flags: 0x0}, - 503: {region: 0x164, script: 0x52, flags: 0x0}, - 504: {region: 0xa1, script: 0x41, flags: 0x0}, - 505: {region: 0x164, script: 0x52, flags: 0x0}, - 506: {region: 0x9f, script: 0x52, flags: 0x0}, - 508: {region: 0x164, script: 0x52, flags: 0x0}, - 509: {region: 0x164, script: 0x52, flags: 0x0}, - 510: {region: 0x164, script: 0x52, flags: 0x0}, - 511: {region: 0x51, script: 0x52, flags: 0x0}, - 512: {region: 0x12f, script: 0x37, flags: 0x0}, - 513: {region: 0x164, script: 0x52, flags: 0x0}, - 514: {region: 0x12e, script: 0x52, flags: 0x0}, - 515: {region: 0xda, script: 0x20, flags: 0x0}, - 516: {region: 0x164, script: 0x52, flags: 0x0}, - 517: {region: 0x62, script: 0x52, flags: 0x0}, - 518: {region: 0x94, script: 0x52, flags: 0x0}, - 519: {region: 0x94, script: 0x52, flags: 0x0}, - 520: {region: 0x7c, script: 0x29, flags: 0x0}, - 521: {region: 0x136, script: 0x1e, flags: 0x0}, - 522: {region: 0x66, script: 0x52, flags: 0x0}, - 523: {region: 0xc3, script: 0x52, flags: 0x0}, - 524: {region: 0x164, script: 0x52, flags: 0x0}, - 525: {region: 0x164, script: 0x52, flags: 0x0}, - 526: {region: 0xd5, script: 0x52, flags: 0x0}, - 527: {region: 0xa3, script: 0x52, flags: 0x0}, - 528: {region: 0xc2, script: 0x52, flags: 0x0}, - 529: {region: 0x105, script: 0x1e, flags: 0x0}, - 530: {region: 0x164, script: 0x52, flags: 0x0}, - 531: {region: 0x164, script: 0x52, flags: 0x0}, - 532: {region: 0x164, script: 0x52, flags: 0x0}, - 533: {region: 0x164, script: 0x52, flags: 0x0}, - 534: {region: 0xd3, script: 0x5, flags: 0x0}, - 535: {region: 0xd5, script: 0x52, flags: 0x0}, - 536: {region: 0x163, script: 0x52, flags: 0x0}, - 537: {region: 0x164, script: 0x52, flags: 0x0}, - 538: {region: 0x164, script: 0x52, flags: 0x0}, - 539: {region: 0x12e, script: 0x52, flags: 0x0}, - 540: {region: 0x121, script: 0x5, flags: 0x0}, - 541: {region: 0x164, script: 0x52, flags: 0x0}, - 542: {region: 0x122, script: 0xd5, flags: 0x0}, - 543: {region: 0x59, script: 0x52, flags: 0x0}, - 544: {region: 0x51, script: 0x52, flags: 0x0}, - 545: {region: 0x164, script: 0x52, flags: 0x0}, - 546: {region: 0x4e, script: 0x52, flags: 0x0}, - 547: {region: 0x98, script: 0x20, flags: 0x0}, - 548: {region: 0x98, script: 0x20, flags: 0x0}, - 549: {region: 0x4a, script: 0x52, flags: 0x0}, - 550: {region: 0x94, script: 0x52, flags: 0x0}, - 551: {region: 0x164, script: 0x52, flags: 0x0}, - 552: {region: 0x40, script: 0x52, flags: 0x0}, - 553: {region: 0x98, script: 0x52, flags: 0x0}, - 554: {region: 0x52, script: 0xcc, flags: 0x0}, - 555: {region: 0x98, script: 0x20, flags: 0x0}, - 556: {region: 0xc2, script: 0x52, flags: 0x0}, - 557: {region: 0x164, script: 0x52, flags: 0x0}, - 558: {region: 0x98, script: 0x6b, flags: 0x0}, - 559: {region: 0xe7, script: 0x5, flags: 0x0}, - 560: {region: 0x164, script: 0x52, flags: 0x0}, - 561: {region: 0xa3, script: 0x52, flags: 0x0}, - 562: {region: 0x164, script: 0x52, flags: 0x0}, - 563: {region: 0x12a, script: 0x52, flags: 0x0}, - 564: {region: 0x164, script: 0x52, flags: 0x0}, - 565: {region: 0xd1, script: 0x52, flags: 0x0}, - 566: {region: 0x164, script: 0x52, flags: 0x0}, - 567: {region: 0xae, script: 0x4f, flags: 0x0}, - 568: {region: 0x164, script: 0x52, flags: 0x0}, - 569: {region: 0x164, script: 0x52, flags: 0x0}, - 570: {region: 0x15, script: 0x6, flags: 0x1}, - 571: {region: 0x164, script: 0x52, flags: 0x0}, - 572: {region: 0x51, script: 0x52, flags: 0x0}, - 573: {region: 0x81, script: 0x52, flags: 0x0}, - 574: {region: 0xa3, script: 0x52, flags: 0x0}, - 575: {region: 0x164, script: 0x52, flags: 0x0}, - 576: {region: 0x164, script: 0x52, flags: 0x0}, - 577: {region: 0x164, script: 0x52, flags: 0x0}, - 578: {region: 0xa5, script: 0x46, flags: 0x0}, - 579: {region: 0x29, script: 0x52, flags: 0x0}, - 580: {region: 0x164, script: 0x52, flags: 0x0}, - 581: {region: 0x164, script: 0x52, flags: 0x0}, - 582: {region: 0x164, script: 0x52, flags: 0x0}, - 583: {region: 0x164, script: 0x52, flags: 0x0}, - 584: {region: 0x164, script: 0x52, flags: 0x0}, - 585: {region: 0x98, script: 0x4a, flags: 0x0}, - 586: {region: 0x164, script: 0x52, flags: 0x0}, - 587: {region: 0xaa, script: 0x4b, flags: 0x0}, - 588: {region: 0x105, script: 0x1e, flags: 0x0}, - 589: {region: 0x98, script: 0x20, flags: 0x0}, - 590: {region: 0x164, script: 0x52, flags: 0x0}, - 591: {region: 0x74, script: 0x52, flags: 0x0}, - 592: {region: 0x164, script: 0x52, flags: 0x0}, - 593: {region: 0xb3, script: 0x52, flags: 0x0}, - 594: {region: 0x164, script: 0x52, flags: 0x0}, - 595: {region: 0x164, script: 0x52, flags: 0x0}, - 596: {region: 0x164, script: 0x52, flags: 0x0}, - 597: {region: 0x164, script: 0x52, flags: 0x0}, - 598: {region: 0x164, script: 0x52, flags: 0x0}, - 599: {region: 0x164, script: 0x52, flags: 0x0}, - 600: {region: 0x164, script: 0x52, flags: 0x0}, - 601: {region: 0x164, script: 0x27, flags: 0x0}, - 603: {region: 0x105, script: 0x1e, flags: 0x0}, - 604: {region: 0x111, script: 0x52, flags: 0x0}, - 605: {region: 0xe6, script: 0x52, flags: 0x0}, - 606: {region: 0x105, script: 0x52, flags: 0x0}, - 607: {region: 0x164, script: 0x52, flags: 0x0}, - 608: {region: 0x98, script: 0x20, flags: 0x0}, - 609: {region: 0x98, script: 0x5, flags: 0x0}, - 610: {region: 0x12e, script: 0x52, flags: 0x0}, - 611: {region: 0x164, script: 0x52, flags: 0x0}, - 612: {region: 0x51, script: 0x52, flags: 0x0}, - 613: {region: 0x5f, script: 0x52, flags: 0x0}, - 614: {region: 0x164, script: 0x52, flags: 0x0}, - 615: {region: 0x164, script: 0x52, flags: 0x0}, - 616: {region: 0x164, script: 0x27, flags: 0x0}, - 617: {region: 0x164, script: 0x52, flags: 0x0}, - 618: {region: 0x164, script: 0x52, flags: 0x0}, - 619: {region: 0x1b, script: 0x3, flags: 0x1}, - 620: {region: 0x164, script: 0x52, flags: 0x0}, - 621: {region: 0x164, script: 0x52, flags: 0x0}, - 622: {region: 0x164, script: 0x52, flags: 0x0}, - 623: {region: 0x164, script: 0x52, flags: 0x0}, - 624: {region: 0x105, script: 0x1e, flags: 0x0}, - 625: {region: 0x164, script: 0x52, flags: 0x0}, - 626: {region: 0x164, script: 0x52, flags: 0x0}, - 627: {region: 0x164, script: 0x52, flags: 0x0}, - 628: {region: 0x105, script: 0x1e, flags: 0x0}, - 629: {region: 0x164, script: 0x52, flags: 0x0}, - 630: {region: 0x94, script: 0x52, flags: 0x0}, - 631: {region: 0xe7, script: 0x5, flags: 0x0}, - 632: {region: 0x7a, script: 0x52, flags: 0x0}, - 633: {region: 0x164, script: 0x52, flags: 0x0}, - 634: {region: 0x164, script: 0x52, flags: 0x0}, - 635: {region: 0x164, script: 0x52, flags: 0x0}, - 636: {region: 0x164, script: 0x27, flags: 0x0}, - 637: {region: 0x122, script: 0xd5, flags: 0x0}, - 638: {region: 0xe7, script: 0x5, flags: 0x0}, - 639: {region: 0x164, script: 0x52, flags: 0x0}, - 640: {region: 0x164, script: 0x52, flags: 0x0}, - 641: {region: 0x1e, script: 0x5, flags: 0x1}, - 642: {region: 0x164, script: 0x52, flags: 0x0}, - 643: {region: 0x164, script: 0x52, flags: 0x0}, - 644: {region: 0x164, script: 0x52, flags: 0x0}, - 645: {region: 0x137, script: 0x52, flags: 0x0}, - 646: {region: 0x86, script: 0x56, flags: 0x0}, - 647: {region: 0x96, script: 0x37, flags: 0x0}, - 648: {region: 0x12e, script: 0x52, flags: 0x0}, - 649: {region: 0xe7, script: 0x5, flags: 0x0}, - 650: {region: 0x130, script: 0x52, flags: 0x0}, - 651: {region: 0x164, script: 0x52, flags: 0x0}, - 652: {region: 0xb6, script: 0x52, flags: 0x0}, - 653: {region: 0x105, script: 0x1e, flags: 0x0}, - 654: {region: 0x164, script: 0x52, flags: 0x0}, - 655: {region: 0x94, script: 0x52, flags: 0x0}, - 656: {region: 0x164, script: 0x52, flags: 0x0}, - 657: {region: 0x52, script: 0xd5, flags: 0x0}, - 658: {region: 0x164, script: 0x52, flags: 0x0}, - 659: {region: 0x164, script: 0x52, flags: 0x0}, - 660: {region: 0x164, script: 0x52, flags: 0x0}, - 661: {region: 0x164, script: 0x52, flags: 0x0}, - 662: {region: 0x98, script: 0x54, flags: 0x0}, - 663: {region: 0x164, script: 0x52, flags: 0x0}, - 664: {region: 0x164, script: 0x52, flags: 0x0}, - 665: {region: 0x105, script: 0x1e, flags: 0x0}, - 666: {region: 0x130, script: 0x52, flags: 0x0}, - 667: {region: 0x164, script: 0x52, flags: 0x0}, - 668: {region: 0xd8, script: 0x52, flags: 0x0}, - 669: {region: 0x164, script: 0x52, flags: 0x0}, - 670: {region: 0x164, script: 0x52, flags: 0x0}, - 671: {region: 0x23, script: 0x2, flags: 0x1}, - 672: {region: 0x164, script: 0x52, flags: 0x0}, - 673: {region: 0x164, script: 0x52, flags: 0x0}, - 674: {region: 0x9d, script: 0x52, flags: 0x0}, - 675: {region: 0x52, script: 0x58, flags: 0x0}, - 676: {region: 0x94, script: 0x52, flags: 0x0}, - 677: {region: 0x9b, script: 0x5, flags: 0x0}, - 678: {region: 0x134, script: 0x52, flags: 0x0}, - 679: {region: 0x164, script: 0x52, flags: 0x0}, - 680: {region: 0x164, script: 0x52, flags: 0x0}, - 681: {region: 0x98, script: 0xd0, flags: 0x0}, - 682: {region: 0x9d, script: 0x52, flags: 0x0}, - 683: {region: 0x164, script: 0x52, flags: 0x0}, - 684: {region: 0x4a, script: 0x52, flags: 0x0}, - 685: {region: 0x164, script: 0x52, flags: 0x0}, - 686: {region: 0x164, script: 0x52, flags: 0x0}, - 687: {region: 0xae, script: 0x4f, flags: 0x0}, - 688: {region: 0x164, script: 0x52, flags: 0x0}, - 689: {region: 0x164, script: 0x52, flags: 0x0}, - 690: {region: 0x4a, script: 0x52, flags: 0x0}, - 691: {region: 0x164, script: 0x52, flags: 0x0}, - 692: {region: 0x164, script: 0x52, flags: 0x0}, - 693: {region: 0x161, script: 0x52, flags: 0x0}, - 694: {region: 0x9b, script: 0x5, flags: 0x0}, - 695: {region: 0xb5, script: 0x52, flags: 0x0}, - 696: {region: 0xb7, script: 0x52, flags: 0x0}, - 697: {region: 0x4a, script: 0x52, flags: 0x0}, - 698: {region: 0x4a, script: 0x52, flags: 0x0}, - 699: {region: 0xa3, script: 0x52, flags: 0x0}, - 700: {region: 0xa3, script: 0x52, flags: 0x0}, - 701: {region: 0x9b, script: 0x5, flags: 0x0}, - 702: {region: 0xb7, script: 0x52, flags: 0x0}, - 703: {region: 0x122, script: 0xd5, flags: 0x0}, - 704: {region: 0x52, script: 0x34, flags: 0x0}, - 705: {region: 0x12a, script: 0x52, flags: 0x0}, - 706: {region: 0x94, script: 0x52, flags: 0x0}, - 707: {region: 0x51, script: 0x52, flags: 0x0}, - 708: {region: 0x98, script: 0x20, flags: 0x0}, - 709: {region: 0x98, script: 0x20, flags: 0x0}, - 710: {region: 0x94, script: 0x52, flags: 0x0}, - 711: {region: 0x25, script: 0x3, flags: 0x1}, - 712: {region: 0xa3, script: 0x52, flags: 0x0}, - 713: {region: 0x164, script: 0x52, flags: 0x0}, - 714: {region: 0xce, script: 0x52, flags: 0x0}, - 715: {region: 0x164, script: 0x52, flags: 0x0}, - 716: {region: 0x164, script: 0x52, flags: 0x0}, - 717: {region: 0x164, script: 0x52, flags: 0x0}, - 718: {region: 0x164, script: 0x52, flags: 0x0}, - 719: {region: 0x164, script: 0x52, flags: 0x0}, - 720: {region: 0x164, script: 0x52, flags: 0x0}, - 721: {region: 0x164, script: 0x52, flags: 0x0}, - 722: {region: 0x164, script: 0x52, flags: 0x0}, - 723: {region: 0x164, script: 0x52, flags: 0x0}, - 724: {region: 0x164, script: 0x52, flags: 0x0}, - 725: {region: 0x164, script: 0x52, flags: 0x0}, - 726: {region: 0x164, script: 0x5, flags: 0x0}, - 727: {region: 0x105, script: 0x1e, flags: 0x0}, - 728: {region: 0xe6, script: 0x52, flags: 0x0}, - 729: {region: 0x164, script: 0x52, flags: 0x0}, - 730: {region: 0x94, script: 0x52, flags: 0x0}, - 731: {region: 0x164, script: 0x27, flags: 0x0}, - 732: {region: 0x164, script: 0x52, flags: 0x0}, - 733: {region: 0x164, script: 0x52, flags: 0x0}, - 734: {region: 0x164, script: 0x52, flags: 0x0}, - 735: {region: 0x111, script: 0x52, flags: 0x0}, - 736: {region: 0xa3, script: 0x52, flags: 0x0}, - 737: {region: 0x164, script: 0x52, flags: 0x0}, - 738: {region: 0x164, script: 0x52, flags: 0x0}, - 739: {region: 0x122, script: 0x5, flags: 0x0}, - 740: {region: 0xcb, script: 0x52, flags: 0x0}, - 741: {region: 0x164, script: 0x52, flags: 0x0}, - 742: {region: 0x164, script: 0x52, flags: 0x0}, - 743: {region: 0x164, script: 0x52, flags: 0x0}, - 744: {region: 0xbe, script: 0x52, flags: 0x0}, - 745: {region: 0xd0, script: 0x52, flags: 0x0}, - 746: {region: 0x164, script: 0x52, flags: 0x0}, - 747: {region: 0x51, script: 0x52, flags: 0x0}, - 748: {region: 0xda, script: 0x20, flags: 0x0}, - 749: {region: 0x12e, script: 0x52, flags: 0x0}, - 750: {region: 0xbf, script: 0x52, flags: 0x0}, - 751: {region: 0x164, script: 0x52, flags: 0x0}, - 752: {region: 0x164, script: 0x52, flags: 0x0}, - 753: {region: 0xdf, script: 0x52, flags: 0x0}, - 754: {region: 0x164, script: 0x52, flags: 0x0}, - 755: {region: 0x94, script: 0x52, flags: 0x0}, - 756: {region: 0x9a, script: 0x36, flags: 0x0}, - 757: {region: 0x164, script: 0x52, flags: 0x0}, - 758: {region: 0xc1, script: 0x1e, flags: 0x0}, - 759: {region: 0x164, script: 0x5, flags: 0x0}, - 760: {region: 0x164, script: 0x52, flags: 0x0}, - 761: {region: 0x164, script: 0x52, flags: 0x0}, - 762: {region: 0x164, script: 0x52, flags: 0x0}, - 763: {region: 0x98, script: 0x64, flags: 0x0}, - 764: {region: 0x164, script: 0x52, flags: 0x0}, - 765: {region: 0x164, script: 0x52, flags: 0x0}, - 766: {region: 0x10a, script: 0x52, flags: 0x0}, - 767: {region: 0x164, script: 0x52, flags: 0x0}, - 768: {region: 0x164, script: 0x52, flags: 0x0}, - 769: {region: 0x164, script: 0x52, flags: 0x0}, - 770: {region: 0x28, script: 0x3, flags: 0x1}, - 771: {region: 0x164, script: 0x52, flags: 0x0}, - 772: {region: 0x164, script: 0x52, flags: 0x0}, - 773: {region: 0x98, script: 0xe, flags: 0x0}, - 774: {region: 0xc3, script: 0x6b, flags: 0x0}, - 776: {region: 0x164, script: 0x52, flags: 0x0}, - 777: {region: 0x48, script: 0x52, flags: 0x0}, - 778: {region: 0x48, script: 0x52, flags: 0x0}, - 779: {region: 0x36, script: 0x52, flags: 0x0}, - 780: {region: 0x164, script: 0x52, flags: 0x0}, - 781: {region: 0x164, script: 0x52, flags: 0x0}, - 782: {region: 0x164, script: 0x52, flags: 0x0}, - 783: {region: 0x164, script: 0x52, flags: 0x0}, - 784: {region: 0x164, script: 0x52, flags: 0x0}, - 785: {region: 0x164, script: 0x52, flags: 0x0}, - 786: {region: 0x98, script: 0x20, flags: 0x0}, - 787: {region: 0xda, script: 0x20, flags: 0x0}, - 788: {region: 0x105, script: 0x1e, flags: 0x0}, - 789: {region: 0x34, script: 0x68, flags: 0x0}, - 790: {region: 0x2b, script: 0x3, flags: 0x1}, - 791: {region: 0xca, script: 0x52, flags: 0x0}, - 792: {region: 0x164, script: 0x52, flags: 0x0}, - 793: {region: 0x164, script: 0x52, flags: 0x0}, - 794: {region: 0x164, script: 0x52, flags: 0x0}, - 795: {region: 0x98, script: 0x20, flags: 0x0}, - 796: {region: 0x51, script: 0x52, flags: 0x0}, - 798: {region: 0x164, script: 0x52, flags: 0x0}, - 799: {region: 0x134, script: 0x52, flags: 0x0}, - 800: {region: 0x164, script: 0x52, flags: 0x0}, - 801: {region: 0x164, script: 0x52, flags: 0x0}, - 802: {region: 0xe7, script: 0x5, flags: 0x0}, - 803: {region: 0xc2, script: 0x52, flags: 0x0}, - 804: {region: 0x98, script: 0x20, flags: 0x0}, - 805: {region: 0x94, script: 0x52, flags: 0x0}, - 806: {region: 0x163, script: 0x52, flags: 0x0}, - 807: {region: 0x164, script: 0x52, flags: 0x0}, - 808: {region: 0xc3, script: 0x6b, flags: 0x0}, - 809: {region: 0x164, script: 0x52, flags: 0x0}, - 810: {region: 0x164, script: 0x27, flags: 0x0}, - 811: {region: 0x105, script: 0x1e, flags: 0x0}, - 812: {region: 0x164, script: 0x52, flags: 0x0}, - 813: {region: 0x130, script: 0x52, flags: 0x0}, - 814: {region: 0x9b, script: 0x5d, flags: 0x0}, - 815: {region: 0x164, script: 0x52, flags: 0x0}, - 816: {region: 0x164, script: 0x52, flags: 0x0}, - 817: {region: 0x9b, script: 0x5, flags: 0x0}, - 818: {region: 0x164, script: 0x52, flags: 0x0}, - 819: {region: 0x164, script: 0x52, flags: 0x0}, - 820: {region: 0x164, script: 0x52, flags: 0x0}, - 821: {region: 0xdc, script: 0x52, flags: 0x0}, - 822: {region: 0x164, script: 0x52, flags: 0x0}, - 823: {region: 0x164, script: 0x52, flags: 0x0}, - 825: {region: 0x164, script: 0x52, flags: 0x0}, - 826: {region: 0x52, script: 0x34, flags: 0x0}, - 827: {region: 0x9d, script: 0x52, flags: 0x0}, - 828: {region: 0xd1, script: 0x52, flags: 0x0}, - 829: {region: 0x164, script: 0x52, flags: 0x0}, - 830: {region: 0xd9, script: 0x52, flags: 0x0}, - 831: {region: 0x164, script: 0x52, flags: 0x0}, - 832: {region: 0x164, script: 0x52, flags: 0x0}, - 833: {region: 0x164, script: 0x52, flags: 0x0}, - 834: {region: 0xce, script: 0x52, flags: 0x0}, - 835: {region: 0x164, script: 0x52, flags: 0x0}, - 836: {region: 0x164, script: 0x52, flags: 0x0}, - 837: {region: 0x163, script: 0x52, flags: 0x0}, - 838: {region: 0xd0, script: 0x52, flags: 0x0}, - 839: {region: 0x5f, script: 0x52, flags: 0x0}, - 840: {region: 0xda, script: 0x20, flags: 0x0}, - 841: {region: 0x164, script: 0x52, flags: 0x0}, - 842: {region: 0xda, script: 0x20, flags: 0x0}, - 843: {region: 0x164, script: 0x52, flags: 0x0}, - 844: {region: 0x164, script: 0x52, flags: 0x0}, - 845: {region: 0xd1, script: 0x52, flags: 0x0}, - 846: {region: 0x164, script: 0x52, flags: 0x0}, - 847: {region: 0x164, script: 0x52, flags: 0x0}, - 848: {region: 0xd0, script: 0x52, flags: 0x0}, - 849: {region: 0x164, script: 0x52, flags: 0x0}, - 850: {region: 0xce, script: 0x52, flags: 0x0}, - 851: {region: 0xce, script: 0x52, flags: 0x0}, - 852: {region: 0x164, script: 0x52, flags: 0x0}, - 853: {region: 0x164, script: 0x52, flags: 0x0}, - 854: {region: 0x94, script: 0x52, flags: 0x0}, - 855: {region: 0x164, script: 0x52, flags: 0x0}, - 856: {region: 0xde, script: 0x52, flags: 0x0}, - 857: {region: 0x164, script: 0x52, flags: 0x0}, - 858: {region: 0x164, script: 0x52, flags: 0x0}, - 859: {region: 0x98, script: 0x52, flags: 0x0}, - 860: {region: 0x164, script: 0x52, flags: 0x0}, - 861: {region: 0x164, script: 0x52, flags: 0x0}, - 862: {region: 0xd8, script: 0x52, flags: 0x0}, - 863: {region: 0x51, script: 0x52, flags: 0x0}, - 864: {region: 0x164, script: 0x52, flags: 0x0}, - 865: {region: 0xd9, script: 0x52, flags: 0x0}, - 866: {region: 0x164, script: 0x52, flags: 0x0}, - 867: {region: 0x51, script: 0x52, flags: 0x0}, - 868: {region: 0x164, script: 0x52, flags: 0x0}, - 869: {region: 0x164, script: 0x52, flags: 0x0}, - 870: {region: 0xd9, script: 0x52, flags: 0x0}, - 871: {region: 0x122, script: 0x4e, flags: 0x0}, - 872: {region: 0x98, script: 0x20, flags: 0x0}, - 873: {region: 0x10b, script: 0xb7, flags: 0x0}, - 874: {region: 0x164, script: 0x52, flags: 0x0}, - 875: {region: 0x164, script: 0x52, flags: 0x0}, - 876: {region: 0x83, script: 0x70, flags: 0x0}, - 877: {region: 0x160, script: 0x52, flags: 0x0}, - 878: {region: 0x164, script: 0x52, flags: 0x0}, - 879: {region: 0x48, script: 0x17, flags: 0x0}, - 880: {region: 0x164, script: 0x52, flags: 0x0}, - 881: {region: 0x160, script: 0x52, flags: 0x0}, - 882: {region: 0x164, script: 0x52, flags: 0x0}, - 883: {region: 0x164, script: 0x52, flags: 0x0}, - 884: {region: 0x164, script: 0x52, flags: 0x0}, - 885: {region: 0x164, script: 0x52, flags: 0x0}, - 886: {region: 0x164, script: 0x52, flags: 0x0}, - 887: {region: 0x116, script: 0x52, flags: 0x0}, - 888: {region: 0x164, script: 0x52, flags: 0x0}, - 889: {region: 0x164, script: 0x52, flags: 0x0}, - 890: {region: 0x134, script: 0x52, flags: 0x0}, - 891: {region: 0x164, script: 0x52, flags: 0x0}, - 892: {region: 0x52, script: 0x52, flags: 0x0}, - 893: {region: 0x164, script: 0x52, flags: 0x0}, - 894: {region: 0xcd, script: 0x52, flags: 0x0}, - 895: {region: 0x12e, script: 0x52, flags: 0x0}, - 896: {region: 0x130, script: 0x52, flags: 0x0}, - 897: {region: 0x7f, script: 0x52, flags: 0x0}, - 898: {region: 0x77, script: 0x52, flags: 0x0}, - 899: {region: 0x164, script: 0x52, flags: 0x0}, - 901: {region: 0x164, script: 0x52, flags: 0x0}, - 902: {region: 0x164, script: 0x52, flags: 0x0}, - 903: {region: 0x6e, script: 0x52, flags: 0x0}, - 904: {region: 0x164, script: 0x52, flags: 0x0}, - 905: {region: 0x164, script: 0x52, flags: 0x0}, - 906: {region: 0x164, script: 0x52, flags: 0x0}, - 907: {region: 0x164, script: 0x52, flags: 0x0}, - 908: {region: 0x98, script: 0x75, flags: 0x0}, - 909: {region: 0x164, script: 0x52, flags: 0x0}, - 910: {region: 0x164, script: 0x5, flags: 0x0}, - 911: {region: 0x7c, script: 0x1e, flags: 0x0}, - 912: {region: 0x134, script: 0x76, flags: 0x0}, - 913: {region: 0x164, script: 0x5, flags: 0x0}, - 914: {region: 0xc4, script: 0x74, flags: 0x0}, - 915: {region: 0x164, script: 0x52, flags: 0x0}, - 916: {region: 0x2e, script: 0x3, flags: 0x1}, - 917: {region: 0xe6, script: 0x52, flags: 0x0}, - 918: {region: 0x31, script: 0x2, flags: 0x1}, - 919: {region: 0xe6, script: 0x52, flags: 0x0}, - 920: {region: 0x2f, script: 0x52, flags: 0x0}, - 921: {region: 0xef, script: 0x52, flags: 0x0}, - 922: {region: 0x164, script: 0x52, flags: 0x0}, - 923: {region: 0x77, script: 0x52, flags: 0x0}, - 924: {region: 0xd5, script: 0x52, flags: 0x0}, - 925: {region: 0x134, script: 0x52, flags: 0x0}, - 926: {region: 0x48, script: 0x52, flags: 0x0}, - 927: {region: 0x164, script: 0x52, flags: 0x0}, - 928: {region: 0x9b, script: 0xdd, flags: 0x0}, - 929: {region: 0x164, script: 0x52, flags: 0x0}, - 930: {region: 0x5f, script: 0x52, flags: 0x0}, - 931: {region: 0x164, script: 0x5, flags: 0x0}, - 932: {region: 0xaf, script: 0x7f, flags: 0x0}, - 934: {region: 0x164, script: 0x52, flags: 0x0}, - 935: {region: 0x164, script: 0x52, flags: 0x0}, - 936: {region: 0x98, script: 0x12, flags: 0x0}, - 937: {region: 0xa3, script: 0x52, flags: 0x0}, - 938: {region: 0xe8, script: 0x52, flags: 0x0}, - 939: {region: 0x164, script: 0x52, flags: 0x0}, - 940: {region: 0x9d, script: 0x52, flags: 0x0}, - 941: {region: 0x164, script: 0x52, flags: 0x0}, - 942: {region: 0x164, script: 0x52, flags: 0x0}, - 943: {region: 0x86, script: 0x2d, flags: 0x0}, - 944: {region: 0x74, script: 0x52, flags: 0x0}, - 945: {region: 0x164, script: 0x52, flags: 0x0}, - 946: {region: 0xe7, script: 0x45, flags: 0x0}, - 947: {region: 0x9b, script: 0x5, flags: 0x0}, - 948: {region: 0x1, script: 0x52, flags: 0x0}, - 949: {region: 0x23, script: 0x5, flags: 0x0}, - 950: {region: 0x164, script: 0x52, flags: 0x0}, - 951: {region: 0x40, script: 0x52, flags: 0x0}, - 952: {region: 0x164, script: 0x52, flags: 0x0}, - 953: {region: 0x79, script: 0x52, flags: 0x0}, - 954: {region: 0x164, script: 0x52, flags: 0x0}, - 955: {region: 0xe3, script: 0x52, flags: 0x0}, - 956: {region: 0x88, script: 0x52, flags: 0x0}, - 957: {region: 0x68, script: 0x52, flags: 0x0}, - 958: {region: 0x164, script: 0x52, flags: 0x0}, - 959: {region: 0x98, script: 0x20, flags: 0x0}, - 960: {region: 0x164, script: 0x52, flags: 0x0}, - 961: {region: 0x101, script: 0x52, flags: 0x0}, - 962: {region: 0x94, script: 0x52, flags: 0x0}, - 963: {region: 0x164, script: 0x52, flags: 0x0}, - 964: {region: 0x164, script: 0x52, flags: 0x0}, - 965: {region: 0x9d, script: 0x52, flags: 0x0}, - 966: {region: 0x164, script: 0x5, flags: 0x0}, - 967: {region: 0x98, script: 0x52, flags: 0x0}, - 968: {region: 0x33, script: 0x2, flags: 0x1}, - 969: {region: 0xda, script: 0x20, flags: 0x0}, - 970: {region: 0x34, script: 0xe, flags: 0x0}, - 971: {region: 0x4d, script: 0x52, flags: 0x0}, - 972: {region: 0x71, script: 0x52, flags: 0x0}, - 973: {region: 0x4d, script: 0x52, flags: 0x0}, - 974: {region: 0x9b, script: 0x5, flags: 0x0}, - 975: {region: 0x10b, script: 0x52, flags: 0x0}, - 976: {region: 0x39, script: 0x52, flags: 0x0}, - 977: {region: 0x164, script: 0x52, flags: 0x0}, - 978: {region: 0xd0, script: 0x52, flags: 0x0}, - 979: {region: 0x103, script: 0x52, flags: 0x0}, - 980: {region: 0x94, script: 0x52, flags: 0x0}, - 981: {region: 0x12e, script: 0x52, flags: 0x0}, - 982: {region: 0x164, script: 0x52, flags: 0x0}, - 983: {region: 0x164, script: 0x52, flags: 0x0}, - 984: {region: 0x72, script: 0x52, flags: 0x0}, - 985: {region: 0x105, script: 0x1e, flags: 0x0}, - 986: {region: 0x12f, script: 0x1e, flags: 0x0}, - 987: {region: 0x108, script: 0x52, flags: 0x0}, - 988: {region: 0x106, script: 0x52, flags: 0x0}, - 989: {region: 0x12e, script: 0x52, flags: 0x0}, - 990: {region: 0x164, script: 0x52, flags: 0x0}, - 991: {region: 0xa1, script: 0x44, flags: 0x0}, - 992: {region: 0x98, script: 0x20, flags: 0x0}, - 993: {region: 0x7f, script: 0x52, flags: 0x0}, - 994: {region: 0x105, script: 0x1e, flags: 0x0}, - 995: {region: 0xa3, script: 0x52, flags: 0x0}, - 996: {region: 0x94, script: 0x52, flags: 0x0}, - 997: {region: 0x98, script: 0x52, flags: 0x0}, - 998: {region: 0x98, script: 0xbb, flags: 0x0}, - 999: {region: 0x164, script: 0x52, flags: 0x0}, - 1000: {region: 0x164, script: 0x52, flags: 0x0}, - 1001: {region: 0x12e, script: 0x52, flags: 0x0}, - 1002: {region: 0x9d, script: 0x52, flags: 0x0}, - 1003: {region: 0x98, script: 0x20, flags: 0x0}, - 1004: {region: 0x164, script: 0x5, flags: 0x0}, - 1005: {region: 0x9d, script: 0x52, flags: 0x0}, - 1006: {region: 0x7a, script: 0x52, flags: 0x0}, - 1007: {region: 0x48, script: 0x52, flags: 0x0}, - 1008: {region: 0x35, script: 0x4, flags: 0x1}, - 1009: {region: 0x9d, script: 0x52, flags: 0x0}, - 1010: {region: 0x9b, script: 0x5, flags: 0x0}, - 1011: {region: 0xd9, script: 0x52, flags: 0x0}, - 1012: {region: 0x4e, script: 0x52, flags: 0x0}, - 1013: {region: 0xd0, script: 0x52, flags: 0x0}, - 1014: {region: 0xce, script: 0x52, flags: 0x0}, - 1015: {region: 0xc2, script: 0x52, flags: 0x0}, - 1016: {region: 0x4b, script: 0x52, flags: 0x0}, - 1017: {region: 0x95, script: 0x72, flags: 0x0}, - 1018: {region: 0xb5, script: 0x52, flags: 0x0}, - 1019: {region: 0x164, script: 0x27, flags: 0x0}, - 1020: {region: 0x164, script: 0x52, flags: 0x0}, - 1022: {region: 0xb9, script: 0xd2, flags: 0x0}, - 1023: {region: 0x164, script: 0x52, flags: 0x0}, - 1024: {region: 0xc3, script: 0x6b, flags: 0x0}, - 1025: {region: 0x164, script: 0x5, flags: 0x0}, - 1026: {region: 0xb2, script: 0xc1, flags: 0x0}, - 1027: {region: 0x6e, script: 0x52, flags: 0x0}, - 1028: {region: 0x164, script: 0x52, flags: 0x0}, - 1029: {region: 0x164, script: 0x52, flags: 0x0}, - 1030: {region: 0x164, script: 0x52, flags: 0x0}, - 1031: {region: 0x164, script: 0x52, flags: 0x0}, - 1032: {region: 0x110, script: 0x52, flags: 0x0}, - 1033: {region: 0x164, script: 0x52, flags: 0x0}, - 1034: {region: 0xe7, script: 0x5, flags: 0x0}, - 1035: {region: 0x164, script: 0x52, flags: 0x0}, - 1036: {region: 0x10e, script: 0x52, flags: 0x0}, - 1037: {region: 0x164, script: 0x52, flags: 0x0}, - 1038: {region: 0xe8, script: 0x52, flags: 0x0}, - 1039: {region: 0x164, script: 0x52, flags: 0x0}, - 1040: {region: 0x94, script: 0x52, flags: 0x0}, - 1041: {region: 0x141, script: 0x52, flags: 0x0}, - 1042: {region: 0x10b, script: 0x52, flags: 0x0}, - 1044: {region: 0x10b, script: 0x52, flags: 0x0}, - 1045: {region: 0x71, script: 0x52, flags: 0x0}, - 1046: {region: 0x96, script: 0xb8, flags: 0x0}, - 1047: {region: 0x164, script: 0x52, flags: 0x0}, - 1048: {region: 0x71, script: 0x52, flags: 0x0}, - 1049: {region: 0x163, script: 0x52, flags: 0x0}, - 1050: {region: 0x164, script: 0x52, flags: 0x0}, - 1051: {region: 0xc2, script: 0x52, flags: 0x0}, - 1052: {region: 0x164, script: 0x52, flags: 0x0}, - 1053: {region: 0x164, script: 0x52, flags: 0x0}, - 1054: {region: 0x164, script: 0x52, flags: 0x0}, - 1055: {region: 0x114, script: 0x52, flags: 0x0}, - 1056: {region: 0x164, script: 0x52, flags: 0x0}, - 1057: {region: 0x164, script: 0x52, flags: 0x0}, - 1058: {region: 0x122, script: 0xd5, flags: 0x0}, - 1059: {region: 0x164, script: 0x52, flags: 0x0}, - 1060: {region: 0x164, script: 0x52, flags: 0x0}, - 1061: {region: 0x164, script: 0x52, flags: 0x0}, - 1062: {region: 0x164, script: 0x52, flags: 0x0}, - 1063: {region: 0x26, script: 0x52, flags: 0x0}, - 1064: {region: 0x39, script: 0x5, flags: 0x1}, - 1065: {region: 0x98, script: 0xc2, flags: 0x0}, - 1066: {region: 0x115, script: 0x52, flags: 0x0}, - 1067: {region: 0x113, script: 0x52, flags: 0x0}, - 1068: {region: 0x98, script: 0x20, flags: 0x0}, - 1069: {region: 0x160, script: 0x52, flags: 0x0}, - 1070: {region: 0x164, script: 0x52, flags: 0x0}, - 1071: {region: 0x164, script: 0x52, flags: 0x0}, - 1072: {region: 0x6c, script: 0x52, flags: 0x0}, - 1073: {region: 0x160, script: 0x52, flags: 0x0}, - 1074: {region: 0x164, script: 0x52, flags: 0x0}, - 1075: {region: 0x5f, script: 0x52, flags: 0x0}, - 1076: {region: 0x94, script: 0x52, flags: 0x0}, - 1077: {region: 0x164, script: 0x52, flags: 0x0}, - 1078: {region: 0x164, script: 0x52, flags: 0x0}, - 1079: {region: 0x12e, script: 0x52, flags: 0x0}, - 1080: {region: 0x164, script: 0x52, flags: 0x0}, - 1081: {region: 0x83, script: 0x52, flags: 0x0}, - 1082: {region: 0x10b, script: 0x52, flags: 0x0}, - 1083: {region: 0x12e, script: 0x52, flags: 0x0}, - 1084: {region: 0x15e, script: 0x5, flags: 0x0}, - 1085: {region: 0x4a, script: 0x52, flags: 0x0}, - 1086: {region: 0x5f, script: 0x52, flags: 0x0}, - 1087: {region: 0x164, script: 0x52, flags: 0x0}, - 1088: {region: 0x98, script: 0x20, flags: 0x0}, - 1089: {region: 0x94, script: 0x52, flags: 0x0}, - 1090: {region: 0x164, script: 0x52, flags: 0x0}, - 1091: {region: 0x34, script: 0xe, flags: 0x0}, - 1092: {region: 0x9a, script: 0xc5, flags: 0x0}, - 1093: {region: 0xe8, script: 0x52, flags: 0x0}, - 1094: {region: 0x98, script: 0xcd, flags: 0x0}, - 1095: {region: 0xda, script: 0x20, flags: 0x0}, - 1096: {region: 0x164, script: 0x52, flags: 0x0}, - 1097: {region: 0x164, script: 0x52, flags: 0x0}, - 1098: {region: 0x164, script: 0x52, flags: 0x0}, - 1099: {region: 0x164, script: 0x52, flags: 0x0}, - 1100: {region: 0x164, script: 0x52, flags: 0x0}, - 1101: {region: 0x164, script: 0x52, flags: 0x0}, - 1102: {region: 0x164, script: 0x52, flags: 0x0}, - 1103: {region: 0x164, script: 0x52, flags: 0x0}, - 1104: {region: 0xe6, script: 0x52, flags: 0x0}, - 1105: {region: 0x164, script: 0x52, flags: 0x0}, - 1106: {region: 0x164, script: 0x52, flags: 0x0}, - 1107: {region: 0x98, script: 0x4a, flags: 0x0}, - 1108: {region: 0x52, script: 0xcb, flags: 0x0}, - 1109: {region: 0xda, script: 0x20, flags: 0x0}, - 1110: {region: 0xda, script: 0x20, flags: 0x0}, - 1111: {region: 0x98, script: 0xd0, flags: 0x0}, - 1112: {region: 0x164, script: 0x52, flags: 0x0}, - 1113: {region: 0x111, script: 0x52, flags: 0x0}, - 1114: {region: 0x130, script: 0x52, flags: 0x0}, - 1115: {region: 0x125, script: 0x52, flags: 0x0}, - 1116: {region: 0x164, script: 0x52, flags: 0x0}, - 1117: {region: 0x3e, script: 0x3, flags: 0x1}, - 1118: {region: 0x164, script: 0x52, flags: 0x0}, - 1119: {region: 0x164, script: 0x52, flags: 0x0}, - 1120: {region: 0x164, script: 0x52, flags: 0x0}, - 1121: {region: 0x122, script: 0xd5, flags: 0x0}, - 1122: {region: 0xda, script: 0x20, flags: 0x0}, - 1123: {region: 0xda, script: 0x20, flags: 0x0}, - 1124: {region: 0xda, script: 0x20, flags: 0x0}, - 1125: {region: 0x6e, script: 0x27, flags: 0x0}, - 1126: {region: 0x164, script: 0x52, flags: 0x0}, - 1127: {region: 0x6c, script: 0x27, flags: 0x0}, - 1128: {region: 0x164, script: 0x52, flags: 0x0}, - 1129: {region: 0x164, script: 0x52, flags: 0x0}, - 1130: {region: 0x164, script: 0x52, flags: 0x0}, - 1131: {region: 0xd5, script: 0x52, flags: 0x0}, - 1132: {region: 0x126, script: 0x52, flags: 0x0}, - 1133: {region: 0x124, script: 0x52, flags: 0x0}, - 1134: {region: 0x31, script: 0x52, flags: 0x0}, - 1135: {region: 0xda, script: 0x20, flags: 0x0}, - 1136: {region: 0xe6, script: 0x52, flags: 0x0}, - 1137: {region: 0x164, script: 0x52, flags: 0x0}, - 1138: {region: 0x164, script: 0x52, flags: 0x0}, - 1139: {region: 0x31, script: 0x52, flags: 0x0}, - 1140: {region: 0xd3, script: 0x52, flags: 0x0}, - 1141: {region: 0x164, script: 0x52, flags: 0x0}, - 1142: {region: 0x160, script: 0x52, flags: 0x0}, - 1143: {region: 0x164, script: 0x52, flags: 0x0}, - 1144: {region: 0x128, script: 0x52, flags: 0x0}, - 1145: {region: 0x164, script: 0x52, flags: 0x0}, - 1146: {region: 0xcd, script: 0x52, flags: 0x0}, - 1147: {region: 0x164, script: 0x52, flags: 0x0}, - 1148: {region: 0xe5, script: 0x52, flags: 0x0}, - 1149: {region: 0x164, script: 0x52, flags: 0x0}, - 1150: {region: 0x164, script: 0x52, flags: 0x0}, - 1151: {region: 0x164, script: 0x52, flags: 0x0}, - 1152: {region: 0x12a, script: 0x52, flags: 0x0}, - 1153: {region: 0x12a, script: 0x52, flags: 0x0}, - 1154: {region: 0x12d, script: 0x52, flags: 0x0}, - 1155: {region: 0x164, script: 0x5, flags: 0x0}, - 1156: {region: 0x160, script: 0x52, flags: 0x0}, - 1157: {region: 0x86, script: 0x2d, flags: 0x0}, - 1158: {region: 0xda, script: 0x20, flags: 0x0}, - 1159: {region: 0xe6, script: 0x52, flags: 0x0}, - 1160: {region: 0x42, script: 0xd6, flags: 0x0}, - 1161: {region: 0x164, script: 0x52, flags: 0x0}, - 1162: {region: 0x105, script: 0x1e, flags: 0x0}, - 1163: {region: 0x164, script: 0x52, flags: 0x0}, - 1164: {region: 0x164, script: 0x52, flags: 0x0}, - 1165: {region: 0x130, script: 0x52, flags: 0x0}, - 1166: {region: 0x164, script: 0x52, flags: 0x0}, - 1167: {region: 0x122, script: 0xd5, flags: 0x0}, - 1168: {region: 0x31, script: 0x52, flags: 0x0}, - 1169: {region: 0x164, script: 0x52, flags: 0x0}, - 1170: {region: 0x164, script: 0x52, flags: 0x0}, - 1171: {region: 0xcd, script: 0x52, flags: 0x0}, - 1172: {region: 0x164, script: 0x52, flags: 0x0}, - 1173: {region: 0x164, script: 0x52, flags: 0x0}, - 1174: {region: 0x12c, script: 0x52, flags: 0x0}, - 1175: {region: 0x164, script: 0x52, flags: 0x0}, - 1177: {region: 0x164, script: 0x52, flags: 0x0}, - 1178: {region: 0xd3, script: 0x52, flags: 0x0}, - 1179: {region: 0x52, script: 0xce, flags: 0x0}, - 1180: {region: 0xe4, script: 0x52, flags: 0x0}, - 1181: {region: 0x164, script: 0x52, flags: 0x0}, - 1182: {region: 0x105, script: 0x1e, flags: 0x0}, - 1183: {region: 0xb9, script: 0x52, flags: 0x0}, - 1184: {region: 0x164, script: 0x52, flags: 0x0}, - 1185: {region: 0x105, script: 0x1e, flags: 0x0}, - 1186: {region: 0x41, script: 0x4, flags: 0x1}, - 1187: {region: 0x11b, script: 0xd8, flags: 0x0}, - 1188: {region: 0x12f, script: 0x1e, flags: 0x0}, - 1189: {region: 0x74, script: 0x52, flags: 0x0}, - 1190: {region: 0x29, script: 0x52, flags: 0x0}, - 1192: {region: 0x45, script: 0x3, flags: 0x1}, - 1193: {region: 0x98, script: 0xe, flags: 0x0}, - 1194: {region: 0xe7, script: 0x5, flags: 0x0}, - 1195: {region: 0x164, script: 0x52, flags: 0x0}, - 1196: {region: 0x164, script: 0x52, flags: 0x0}, - 1197: {region: 0x164, script: 0x52, flags: 0x0}, - 1198: {region: 0x164, script: 0x52, flags: 0x0}, - 1199: {region: 0x164, script: 0x52, flags: 0x0}, - 1200: {region: 0x164, script: 0x52, flags: 0x0}, - 1201: {region: 0x164, script: 0x52, flags: 0x0}, - 1202: {region: 0x48, script: 0x4, flags: 0x1}, - 1203: {region: 0x164, script: 0x52, flags: 0x0}, - 1204: {region: 0xb3, script: 0xd9, flags: 0x0}, - 1205: {region: 0x164, script: 0x52, flags: 0x0}, - 1206: {region: 0x160, script: 0x52, flags: 0x0}, - 1207: {region: 0x9d, script: 0x52, flags: 0x0}, - 1208: {region: 0x105, script: 0x52, flags: 0x0}, - 1209: {region: 0x13d, script: 0x52, flags: 0x0}, - 1210: {region: 0x11a, script: 0x52, flags: 0x0}, - 1211: {region: 0x164, script: 0x52, flags: 0x0}, - 1212: {region: 0x35, script: 0x52, flags: 0x0}, - 1213: {region: 0x5f, script: 0x52, flags: 0x0}, - 1214: {region: 0xd0, script: 0x52, flags: 0x0}, - 1215: {region: 0x1, script: 0x52, flags: 0x0}, - 1216: {region: 0x105, script: 0x52, flags: 0x0}, - 1217: {region: 0x69, script: 0x52, flags: 0x0}, - 1218: {region: 0x12e, script: 0x52, flags: 0x0}, - 1219: {region: 0x164, script: 0x52, flags: 0x0}, - 1220: {region: 0x35, script: 0x52, flags: 0x0}, - 1221: {region: 0x4d, script: 0x52, flags: 0x0}, - 1222: {region: 0x164, script: 0x52, flags: 0x0}, - 1223: {region: 0x6e, script: 0x27, flags: 0x0}, - 1224: {region: 0x164, script: 0x52, flags: 0x0}, - 1225: {region: 0xe6, script: 0x52, flags: 0x0}, - 1226: {region: 0x2e, script: 0x52, flags: 0x0}, - 1227: {region: 0x98, script: 0xd0, flags: 0x0}, - 1228: {region: 0x98, script: 0x20, flags: 0x0}, - 1229: {region: 0x164, script: 0x52, flags: 0x0}, - 1230: {region: 0x164, script: 0x52, flags: 0x0}, - 1231: {region: 0x164, script: 0x52, flags: 0x0}, - 1232: {region: 0x164, script: 0x52, flags: 0x0}, - 1233: {region: 0x164, script: 0x52, flags: 0x0}, - 1234: {region: 0x164, script: 0x52, flags: 0x0}, - 1235: {region: 0x164, script: 0x52, flags: 0x0}, - 1236: {region: 0x164, script: 0x52, flags: 0x0}, - 1237: {region: 0x164, script: 0x52, flags: 0x0}, - 1238: {region: 0x13f, script: 0x52, flags: 0x0}, - 1239: {region: 0x164, script: 0x52, flags: 0x0}, - 1240: {region: 0x164, script: 0x52, flags: 0x0}, - 1241: {region: 0xa7, script: 0x5, flags: 0x0}, - 1242: {region: 0x164, script: 0x52, flags: 0x0}, - 1243: {region: 0x113, script: 0x52, flags: 0x0}, - 1244: {region: 0x164, script: 0x52, flags: 0x0}, - 1245: {region: 0x164, script: 0x52, flags: 0x0}, - 1246: {region: 0x164, script: 0x52, flags: 0x0}, - 1247: {region: 0x164, script: 0x52, flags: 0x0}, - 1248: {region: 0x98, script: 0x20, flags: 0x0}, - 1249: {region: 0x52, script: 0x34, flags: 0x0}, - 1250: {region: 0x164, script: 0x52, flags: 0x0}, - 1251: {region: 0x164, script: 0x52, flags: 0x0}, - 1252: {region: 0x40, script: 0x52, flags: 0x0}, - 1253: {region: 0x164, script: 0x52, flags: 0x0}, - 1254: {region: 0x12a, script: 0x18, flags: 0x0}, - 1255: {region: 0x164, script: 0x52, flags: 0x0}, - 1256: {region: 0x160, script: 0x52, flags: 0x0}, - 1257: {region: 0x164, script: 0x52, flags: 0x0}, - 1258: {region: 0x12a, script: 0x5a, flags: 0x0}, - 1259: {region: 0x12a, script: 0x5b, flags: 0x0}, - 1260: {region: 0x7c, script: 0x29, flags: 0x0}, - 1261: {region: 0x52, script: 0x5e, flags: 0x0}, - 1262: {region: 0x10a, script: 0x62, flags: 0x0}, - 1263: {region: 0x107, script: 0x6c, flags: 0x0}, - 1264: {region: 0x98, script: 0x20, flags: 0x0}, - 1265: {region: 0x130, script: 0x52, flags: 0x0}, - 1266: {region: 0x164, script: 0x52, flags: 0x0}, - 1267: {region: 0x9b, script: 0x82, flags: 0x0}, - 1268: {region: 0x164, script: 0x52, flags: 0x0}, - 1269: {region: 0x15d, script: 0xba, flags: 0x0}, - 1270: {region: 0x164, script: 0x52, flags: 0x0}, - 1271: {region: 0x164, script: 0x52, flags: 0x0}, - 1272: {region: 0xda, script: 0x20, flags: 0x0}, - 1273: {region: 0x164, script: 0x52, flags: 0x0}, - 1274: {region: 0x164, script: 0x52, flags: 0x0}, - 1275: {region: 0xd0, script: 0x52, flags: 0x0}, - 1276: {region: 0x74, script: 0x52, flags: 0x0}, - 1277: {region: 0x164, script: 0x52, flags: 0x0}, - 1278: {region: 0x164, script: 0x52, flags: 0x0}, - 1279: {region: 0x51, script: 0x52, flags: 0x0}, - 1280: {region: 0x164, script: 0x52, flags: 0x0}, - 1281: {region: 0x164, script: 0x52, flags: 0x0}, - 1282: {region: 0x164, script: 0x52, flags: 0x0}, - 1283: {region: 0x51, script: 0x52, flags: 0x0}, - 1284: {region: 0x164, script: 0x52, flags: 0x0}, - 1285: {region: 0x164, script: 0x52, flags: 0x0}, - 1286: {region: 0x164, script: 0x52, flags: 0x0}, - 1287: {region: 0x164, script: 0x52, flags: 0x0}, - 1288: {region: 0x1, script: 0x37, flags: 0x0}, - 1289: {region: 0x164, script: 0x52, flags: 0x0}, - 1290: {region: 0x164, script: 0x52, flags: 0x0}, - 1291: {region: 0x164, script: 0x52, flags: 0x0}, - 1292: {region: 0x164, script: 0x52, flags: 0x0}, - 1293: {region: 0x164, script: 0x52, flags: 0x0}, - 1294: {region: 0xd5, script: 0x52, flags: 0x0}, - 1295: {region: 0x164, script: 0x52, flags: 0x0}, - 1296: {region: 0x164, script: 0x52, flags: 0x0}, - 1297: {region: 0x164, script: 0x52, flags: 0x0}, - 1298: {region: 0x40, script: 0x52, flags: 0x0}, - 1299: {region: 0x164, script: 0x52, flags: 0x0}, - 1300: {region: 0xce, script: 0x52, flags: 0x0}, - 1301: {region: 0x4c, script: 0x3, flags: 0x1}, - 1302: {region: 0x164, script: 0x52, flags: 0x0}, - 1303: {region: 0x164, script: 0x52, flags: 0x0}, - 1304: {region: 0x164, script: 0x52, flags: 0x0}, - 1305: {region: 0x52, script: 0x52, flags: 0x0}, - 1306: {region: 0x10a, script: 0x52, flags: 0x0}, - 1308: {region: 0xa7, script: 0x5, flags: 0x0}, - 1309: {region: 0xd8, script: 0x52, flags: 0x0}, - 1310: {region: 0xb9, script: 0xd2, flags: 0x0}, - 1311: {region: 0x4f, script: 0x14, flags: 0x1}, - 1312: {region: 0x164, script: 0x52, flags: 0x0}, - 1313: {region: 0x121, script: 0x52, flags: 0x0}, - 1314: {region: 0xcf, script: 0x52, flags: 0x0}, - 1315: {region: 0x164, script: 0x52, flags: 0x0}, - 1316: {region: 0x160, script: 0x52, flags: 0x0}, - 1318: {region: 0x12a, script: 0x52, flags: 0x0}, +// Size: 2852 bytes, 713 elements +var likelyLang = [713]likelyScriptRegion{ + 0: {region: 0x132, script: 0x52, flags: 0x0}, + 1: {region: 0x6e, script: 0x52, flags: 0x0}, + 2: {region: 0x7b, script: 0x1e, flags: 0x0}, + 3: {region: 0x7e, script: 0x52, flags: 0x0}, + 4: {region: 0x93, script: 0x52, flags: 0x0}, + 5: {region: 0x12f, script: 0x52, flags: 0x0}, + 6: {region: 0x7e, script: 0x52, flags: 0x0}, + 7: {region: 0x104, script: 0x1e, flags: 0x0}, + 8: {region: 0x9a, script: 0x9, flags: 0x0}, + 9: {region: 0x126, script: 0x5, flags: 0x0}, + 10: {region: 0x15e, script: 0x52, flags: 0x0}, + 11: {region: 0x51, script: 0x52, flags: 0x0}, + 12: {region: 0x97, script: 0x4, flags: 0x0}, + 13: {region: 0x7e, script: 0x52, flags: 0x0}, + 14: {region: 0x99, script: 0xde, flags: 0x0}, + 15: {region: 0x14a, script: 0x52, flags: 0x0}, + 16: {region: 0x104, script: 0x1e, flags: 0x0}, + 17: {region: 0x6e, script: 0x27, flags: 0x0}, + 18: {region: 0xd4, script: 0x52, flags: 0x0}, + 20: {region: 0x93, script: 0x52, flags: 0x0}, + 21: {region: 0x6a, script: 0x5, flags: 0x0}, + 22: {region: 0x0, script: 0x3, flags: 0x1}, + 23: {region: 0x50, script: 0x52, flags: 0x0}, + 24: {region: 0x3e, script: 0x52, flags: 0x0}, + 25: {region: 0x66, script: 0x5, flags: 0x0}, + 26: {region: 0xb8, script: 0x5, flags: 0x0}, + 27: {region: 0x6a, script: 0x5, flags: 0x0}, + 28: {region: 0x97, script: 0xe, flags: 0x0}, + 29: {region: 0x12d, script: 0x52, flags: 0x0}, + 30: {region: 0x132, script: 0xbc, flags: 0x0}, + 31: {region: 0x6d, script: 0x52, flags: 0x0}, + 32: {region: 0x48, script: 0x52, flags: 0x0}, + 33: {region: 0x104, script: 0x1e, flags: 0x0}, + 34: {region: 0x97, script: 0x20, flags: 0x0}, + 35: {region: 0x3e, script: 0x52, flags: 0x0}, + 36: {region: 0x3, script: 0x5, flags: 0x1}, + 37: {region: 0x104, script: 0x1e, flags: 0x0}, + 38: {region: 0xe6, script: 0x5, flags: 0x0}, + 39: {region: 0x93, script: 0x52, flags: 0x0}, + 40: {region: 0xd9, script: 0x20, flags: 0x0}, + 41: {region: 0x2d, script: 0x52, flags: 0x0}, + 42: {region: 0x51, script: 0x52, flags: 0x0}, + 43: {region: 0x51, script: 0xb, flags: 0x0}, + 44: {region: 0x93, script: 0x52, flags: 0x0}, + 45: {region: 0x51, script: 0x52, flags: 0x0}, + 46: {region: 0x4e, script: 0x52, flags: 0x0}, + 47: {region: 0x46, script: 0x1e, flags: 0x0}, + 48: {region: 0x109, script: 0x5, flags: 0x0}, + 49: {region: 0x15f, script: 0x52, flags: 0x0}, + 50: {region: 0x93, script: 0x52, flags: 0x0}, + 51: {region: 0x12d, script: 0x52, flags: 0x0}, + 52: {region: 0x51, script: 0x52, flags: 0x0}, + 53: {region: 0x97, script: 0xcd, flags: 0x0}, + 54: {region: 0xe6, script: 0x5, flags: 0x0}, + 55: {region: 0x97, script: 0x20, flags: 0x0}, + 56: {region: 0x37, script: 0x1e, flags: 0x0}, + 57: {region: 0x97, script: 0x20, flags: 0x0}, + 58: {region: 0xe6, script: 0x5, flags: 0x0}, + 59: {region: 0x129, script: 0x2d, flags: 0x0}, + 61: {region: 0x97, script: 0x20, flags: 0x0}, + 62: {region: 0x97, script: 0x20, flags: 0x0}, + 63: {region: 0xe5, script: 0x52, flags: 0x0}, + 64: {region: 0x97, script: 0x20, flags: 0x0}, + 65: {region: 0x13c, script: 0x52, flags: 0x0}, + 66: {region: 0xe5, script: 0x52, flags: 0x0}, + 67: {region: 0xd4, script: 0x52, flags: 0x0}, + 68: {region: 0x97, script: 0x20, flags: 0x0}, + 69: {region: 0x93, script: 0x52, flags: 0x0}, + 70: {region: 0x51, script: 0x52, flags: 0x0}, + 71: {region: 0xe5, script: 0x52, flags: 0x0}, + 72: {region: 0x13b, script: 0xcf, flags: 0x0}, + 73: {region: 0xc1, script: 0x52, flags: 0x0}, + 74: {region: 0xc1, script: 0x52, flags: 0x0}, + 75: {region: 0x34, script: 0xe, flags: 0x0}, + 76: {region: 0x52, script: 0xd6, flags: 0x0}, + 77: {region: 0x97, script: 0xe, flags: 0x0}, + 78: {region: 0x9a, script: 0x5, flags: 0x0}, + 79: {region: 0x4e, script: 0x52, flags: 0x0}, + 80: {region: 0x76, script: 0x52, flags: 0x0}, + 81: {region: 0x97, script: 0x20, flags: 0x0}, + 82: {region: 0xe6, script: 0x5, flags: 0x0}, + 83: {region: 0x97, script: 0x20, flags: 0x0}, + 84: {region: 0x32, script: 0x52, flags: 0x0}, + 85: {region: 0xb2, script: 0xc, flags: 0x0}, + 86: {region: 0x51, script: 0x52, flags: 0x0}, + 87: {region: 0xe5, script: 0x52, flags: 0x0}, + 88: {region: 0xe6, script: 0x20, flags: 0x0}, + 89: {region: 0x104, script: 0x1e, flags: 0x0}, + 90: {region: 0x15c, script: 0x52, flags: 0x0}, + 91: {region: 0x93, script: 0x52, flags: 0x0}, + 92: {region: 0x51, script: 0x52, flags: 0x0}, + 93: {region: 0x84, script: 0x52, flags: 0x0}, + 94: {region: 0x6c, script: 0x27, flags: 0x0}, + 95: {region: 0x51, script: 0x52, flags: 0x0}, + 96: {region: 0xc1, script: 0x52, flags: 0x0}, + 97: {region: 0x6d, script: 0x52, flags: 0x0}, + 98: {region: 0xd4, script: 0x52, flags: 0x0}, + 99: {region: 0x8, script: 0x2, flags: 0x1}, + 100: {region: 0x104, script: 0x1e, flags: 0x0}, + 101: {region: 0xe5, script: 0x52, flags: 0x0}, + 102: {region: 0x12f, script: 0x52, flags: 0x0}, + 103: {region: 0x88, script: 0x52, flags: 0x0}, + 104: {region: 0x73, script: 0x52, flags: 0x0}, + 105: {region: 0x104, script: 0x1e, flags: 0x0}, + 106: {region: 0x132, script: 0x52, flags: 0x0}, + 107: {region: 0x48, script: 0x52, flags: 0x0}, + 108: {region: 0x132, script: 0x1a, flags: 0x0}, + 109: {region: 0xa4, script: 0x5, flags: 0x0}, + 110: {region: 0x13b, script: 0x19, flags: 0x0}, + 111: {region: 0x99, script: 0x5, flags: 0x0}, + 112: {region: 0x76, script: 0x52, flags: 0x0}, + 113: {region: 0x6a, script: 0x1c, flags: 0x0}, + 114: {region: 0xe5, script: 0x52, flags: 0x0}, + 115: {region: 0x48, script: 0x17, flags: 0x0}, + 116: {region: 0x48, script: 0x17, flags: 0x0}, + 117: {region: 0x48, script: 0x17, flags: 0x0}, + 118: {region: 0x48, script: 0x17, flags: 0x0}, + 119: {region: 0x48, script: 0x17, flags: 0x0}, + 120: {region: 0x108, script: 0x52, flags: 0x0}, + 121: {region: 0x5d, script: 0x52, flags: 0x0}, + 122: {region: 0xe7, script: 0x52, flags: 0x0}, + 123: {region: 0x48, script: 0x17, flags: 0x0}, + 124: {region: 0xc2, script: 0x79, flags: 0x0}, + 125: {region: 0xa, script: 0x2, flags: 0x1}, + 126: {region: 0x104, script: 0x1e, flags: 0x0}, + 127: {region: 0x79, script: 0x52, flags: 0x0}, + 128: {region: 0x62, script: 0x52, flags: 0x0}, + 129: {region: 0x132, script: 0x52, flags: 0x0}, + 130: {region: 0x104, script: 0x1e, flags: 0x0}, + 131: {region: 0xa2, script: 0x52, flags: 0x0}, + 132: {region: 0x97, script: 0x5, flags: 0x0}, + 133: {region: 0x5f, script: 0x52, flags: 0x0}, + 134: {region: 0x48, script: 0x52, flags: 0x0}, + 135: {region: 0x48, script: 0x52, flags: 0x0}, + 136: {region: 0xd2, script: 0x52, flags: 0x0}, + 137: {region: 0x4e, script: 0x52, flags: 0x0}, + 138: {region: 0x97, script: 0x5, flags: 0x0}, + 139: {region: 0x5f, script: 0x52, flags: 0x0}, + 140: {region: 0xc1, script: 0x52, flags: 0x0}, + 141: {region: 0xce, script: 0x52, flags: 0x0}, + 142: {region: 0xd9, script: 0x20, flags: 0x0}, + 143: {region: 0x51, script: 0x52, flags: 0x0}, + 144: {region: 0xcb, script: 0xd4, flags: 0x0}, + 145: {region: 0x112, script: 0x52, flags: 0x0}, + 146: {region: 0x36, script: 0x52, flags: 0x0}, + 147: {region: 0x42, script: 0xd6, flags: 0x0}, + 148: {region: 0xa2, script: 0x52, flags: 0x0}, + 149: {region: 0x7e, script: 0x52, flags: 0x0}, + 150: {region: 0xd4, script: 0x52, flags: 0x0}, + 151: {region: 0x9c, script: 0x52, flags: 0x0}, + 152: {region: 0x6a, script: 0x25, flags: 0x0}, + 153: {region: 0xc2, script: 0x43, flags: 0x0}, + 154: {region: 0x85, script: 0x2d, flags: 0x0}, + 155: {region: 0xc, script: 0x2, flags: 0x1}, + 156: {region: 0x1, script: 0x52, flags: 0x0}, + 157: {region: 0x6d, script: 0x52, flags: 0x0}, + 158: {region: 0x132, script: 0x52, flags: 0x0}, + 159: {region: 0x69, script: 0x52, flags: 0x0}, + 160: {region: 0x9c, script: 0x3e, flags: 0x0}, + 161: {region: 0x6d, script: 0x52, flags: 0x0}, + 162: {region: 0x51, script: 0x52, flags: 0x0}, + 163: {region: 0x6d, script: 0x52, flags: 0x0}, + 164: {region: 0x9a, script: 0x5, flags: 0x0}, + 165: {region: 0x84, script: 0x52, flags: 0x0}, + 166: {region: 0xe, script: 0x2, flags: 0x1}, + 167: {region: 0xc1, script: 0x52, flags: 0x0}, + 168: {region: 0x70, script: 0x52, flags: 0x0}, + 169: {region: 0x109, script: 0x5, flags: 0x0}, + 170: {region: 0xe5, script: 0x52, flags: 0x0}, + 171: {region: 0x10a, script: 0x52, flags: 0x0}, + 172: {region: 0x71, script: 0x52, flags: 0x0}, + 173: {region: 0x74, script: 0x52, flags: 0x0}, + 174: {region: 0x3a, script: 0x52, flags: 0x0}, + 175: {region: 0x76, script: 0x52, flags: 0x0}, + 176: {region: 0x132, script: 0x52, flags: 0x0}, + 177: {region: 0x76, script: 0x52, flags: 0x0}, + 178: {region: 0x5f, script: 0x52, flags: 0x0}, + 179: {region: 0x5f, script: 0x52, flags: 0x0}, + 180: {region: 0x13d, script: 0x52, flags: 0x0}, + 181: {region: 0xd2, script: 0x52, flags: 0x0}, + 182: {region: 0x9c, script: 0x52, flags: 0x0}, + 183: {region: 0xd4, script: 0x52, flags: 0x0}, + 184: {region: 0x109, script: 0x52, flags: 0x0}, + 185: {region: 0xd7, script: 0x52, flags: 0x0}, + 186: {region: 0x94, script: 0x52, flags: 0x0}, + 187: {region: 0x7e, script: 0x52, flags: 0x0}, + 188: {region: 0xba, script: 0x52, flags: 0x0}, + 189: {region: 0x52, script: 0x34, flags: 0x0}, + 190: {region: 0x93, script: 0x52, flags: 0x0}, + 191: {region: 0x97, script: 0x20, flags: 0x0}, + 192: {region: 0x9a, script: 0x5, flags: 0x0}, + 193: {region: 0x7c, script: 0x52, flags: 0x0}, + 194: {region: 0x79, script: 0x52, flags: 0x0}, + 195: {region: 0x6e, script: 0x27, flags: 0x0}, + 196: {region: 0xd9, script: 0x20, flags: 0x0}, + 197: {region: 0xa5, script: 0x52, flags: 0x0}, + 198: {region: 0xe6, script: 0x5, flags: 0x0}, + 199: {region: 0xe6, script: 0x5, flags: 0x0}, + 200: {region: 0x6d, script: 0x52, flags: 0x0}, + 201: {region: 0x9a, script: 0x5, flags: 0x0}, + 202: {region: 0xef, script: 0x52, flags: 0x0}, + 203: {region: 0x97, script: 0x20, flags: 0x0}, + 204: {region: 0x97, script: 0xd0, flags: 0x0}, + 205: {region: 0x93, script: 0x52, flags: 0x0}, + 206: {region: 0xd7, script: 0x52, flags: 0x0}, + 207: {region: 0x12e, script: 0x2b, flags: 0x0}, + 208: {region: 0x10, script: 0x2, flags: 0x1}, + 209: {region: 0x97, script: 0xe, flags: 0x0}, + 210: {region: 0x4d, script: 0x52, flags: 0x0}, + 211: {region: 0x97, script: 0x2e, flags: 0x0}, + 212: {region: 0x40, script: 0x52, flags: 0x0}, + 213: {region: 0x53, script: 0x52, flags: 0x0}, + 214: {region: 0x7e, script: 0x52, flags: 0x0}, + 216: {region: 0xa2, script: 0x52, flags: 0x0}, + 217: {region: 0x96, script: 0x52, flags: 0x0}, + 218: {region: 0xd9, script: 0x20, flags: 0x0}, + 219: {region: 0x48, script: 0x52, flags: 0x0}, + 220: {region: 0x12, script: 0x3, flags: 0x1}, + 221: {region: 0x52, script: 0x34, flags: 0x0}, + 222: {region: 0x132, script: 0x52, flags: 0x0}, + 223: {region: 0x23, script: 0x5, flags: 0x0}, + 224: {region: 0x95, script: 0x37, flags: 0x0}, + 225: {region: 0x97, script: 0x20, flags: 0x0}, + 226: {region: 0x71, script: 0x52, flags: 0x0}, + 227: {region: 0xe5, script: 0x52, flags: 0x0}, + 228: {region: 0x129, script: 0x39, flags: 0x0}, + 229: {region: 0x52, script: 0x81, flags: 0x0}, + 230: {region: 0xe6, script: 0x5, flags: 0x0}, + 231: {region: 0x97, script: 0x20, flags: 0x0}, + 232: {region: 0xad, script: 0x3a, flags: 0x0}, + 233: {region: 0xe5, script: 0x52, flags: 0x0}, + 234: {region: 0xe6, script: 0x5, flags: 0x0}, + 235: {region: 0xe4, script: 0x52, flags: 0x0}, + 236: {region: 0x97, script: 0x20, flags: 0x0}, + 237: {region: 0x97, script: 0x20, flags: 0x0}, + 238: {region: 0x8e, script: 0x52, flags: 0x0}, + 239: {region: 0x5f, script: 0x52, flags: 0x0}, + 240: {region: 0x52, script: 0x34, flags: 0x0}, + 241: {region: 0x8f, script: 0x52, flags: 0x0}, + 242: {region: 0x90, script: 0x52, flags: 0x0}, + 243: {region: 0x27, script: 0x8, flags: 0x0}, + 244: {region: 0xd0, script: 0x52, flags: 0x0}, + 245: {region: 0x76, script: 0x52, flags: 0x0}, + 246: {region: 0xce, script: 0x52, flags: 0x0}, + 247: {region: 0xd4, script: 0x52, flags: 0x0}, + 248: {region: 0x93, script: 0x52, flags: 0x0}, + 250: {region: 0xd4, script: 0x52, flags: 0x0}, + 251: {region: 0x52, script: 0xdf, flags: 0x0}, + 252: {region: 0x132, script: 0x52, flags: 0x0}, + 253: {region: 0x48, script: 0x52, flags: 0x0}, + 254: {region: 0xe5, script: 0x52, flags: 0x0}, + 255: {region: 0x93, script: 0x52, flags: 0x0}, + 256: {region: 0x104, script: 0x1e, flags: 0x0}, + 258: {region: 0x9b, script: 0x52, flags: 0x0}, + 259: {region: 0x9c, script: 0x52, flags: 0x0}, + 260: {region: 0x48, script: 0x17, flags: 0x0}, + 261: {region: 0x95, script: 0x37, flags: 0x0}, + 262: {region: 0x104, script: 0x52, flags: 0x0}, + 263: {region: 0xa0, script: 0x41, flags: 0x0}, + 264: {region: 0x9e, script: 0x52, flags: 0x0}, + 266: {region: 0x51, script: 0x52, flags: 0x0}, + 267: {region: 0x12e, script: 0x37, flags: 0x0}, + 268: {region: 0x12d, script: 0x52, flags: 0x0}, + 269: {region: 0xd9, script: 0x20, flags: 0x0}, + 270: {region: 0x62, script: 0x52, flags: 0x0}, + 271: {region: 0x93, script: 0x52, flags: 0x0}, + 272: {region: 0x93, script: 0x52, flags: 0x0}, + 273: {region: 0x7b, script: 0x29, flags: 0x0}, + 274: {region: 0x134, script: 0x1e, flags: 0x0}, + 275: {region: 0x66, script: 0x52, flags: 0x0}, + 276: {region: 0xc2, script: 0x52, flags: 0x0}, + 277: {region: 0xd4, script: 0x52, flags: 0x0}, + 278: {region: 0xa2, script: 0x52, flags: 0x0}, + 279: {region: 0xc1, script: 0x52, flags: 0x0}, + 280: {region: 0x104, script: 0x1e, flags: 0x0}, + 281: {region: 0xd4, script: 0x52, flags: 0x0}, + 282: {region: 0x161, script: 0x52, flags: 0x0}, + 283: {region: 0x12d, script: 0x52, flags: 0x0}, + 284: {region: 0x121, script: 0xd5, flags: 0x0}, + 285: {region: 0x59, script: 0x52, flags: 0x0}, + 286: {region: 0x51, script: 0x52, flags: 0x0}, + 287: {region: 0x4e, script: 0x52, flags: 0x0}, + 288: {region: 0x97, script: 0x20, flags: 0x0}, + 289: {region: 0x97, script: 0x20, flags: 0x0}, + 290: {region: 0x4a, script: 0x52, flags: 0x0}, + 291: {region: 0x93, script: 0x52, flags: 0x0}, + 292: {region: 0x40, script: 0x52, flags: 0x0}, + 293: {region: 0x97, script: 0x52, flags: 0x0}, + 294: {region: 0x52, script: 0xcc, flags: 0x0}, + 295: {region: 0x97, script: 0x20, flags: 0x0}, + 296: {region: 0xc1, script: 0x52, flags: 0x0}, + 297: {region: 0x97, script: 0x6b, flags: 0x0}, + 298: {region: 0xe6, script: 0x5, flags: 0x0}, + 299: {region: 0xa2, script: 0x52, flags: 0x0}, + 300: {region: 0x129, script: 0x52, flags: 0x0}, + 301: {region: 0xd0, script: 0x52, flags: 0x0}, + 302: {region: 0xad, script: 0x4f, flags: 0x0}, + 303: {region: 0x15, script: 0x6, flags: 0x1}, + 304: {region: 0x51, script: 0x52, flags: 0x0}, + 305: {region: 0x80, script: 0x52, flags: 0x0}, + 306: {region: 0xa2, script: 0x52, flags: 0x0}, + 307: {region: 0xa4, script: 0x46, flags: 0x0}, + 308: {region: 0x29, script: 0x52, flags: 0x0}, + 309: {region: 0x97, script: 0x4a, flags: 0x0}, + 310: {region: 0xa9, script: 0x4b, flags: 0x0}, + 311: {region: 0x104, script: 0x1e, flags: 0x0}, + 312: {region: 0x97, script: 0x20, flags: 0x0}, + 313: {region: 0x73, script: 0x52, flags: 0x0}, + 314: {region: 0xb2, script: 0x52, flags: 0x0}, + 316: {region: 0x104, script: 0x1e, flags: 0x0}, + 317: {region: 0x110, script: 0x52, flags: 0x0}, + 318: {region: 0xe5, script: 0x52, flags: 0x0}, + 319: {region: 0x104, script: 0x52, flags: 0x0}, + 320: {region: 0x97, script: 0x20, flags: 0x0}, + 321: {region: 0x97, script: 0x5, flags: 0x0}, + 322: {region: 0x12d, script: 0x52, flags: 0x0}, + 323: {region: 0x51, script: 0x52, flags: 0x0}, + 324: {region: 0x5f, script: 0x52, flags: 0x0}, + 325: {region: 0x1b, script: 0x3, flags: 0x1}, + 326: {region: 0x104, script: 0x1e, flags: 0x0}, + 327: {region: 0x104, script: 0x1e, flags: 0x0}, + 328: {region: 0x93, script: 0x52, flags: 0x0}, + 329: {region: 0xe6, script: 0x5, flags: 0x0}, + 330: {region: 0x79, script: 0x52, flags: 0x0}, + 331: {region: 0x121, script: 0xd5, flags: 0x0}, + 332: {region: 0xe6, script: 0x5, flags: 0x0}, + 333: {region: 0x1e, script: 0x5, flags: 0x1}, + 334: {region: 0x135, script: 0x52, flags: 0x0}, + 335: {region: 0x85, script: 0x56, flags: 0x0}, + 336: {region: 0x95, script: 0x37, flags: 0x0}, + 337: {region: 0x12d, script: 0x52, flags: 0x0}, + 338: {region: 0xe6, script: 0x5, flags: 0x0}, + 339: {region: 0x12f, script: 0x52, flags: 0x0}, + 340: {region: 0xb5, script: 0x52, flags: 0x0}, + 341: {region: 0x104, script: 0x1e, flags: 0x0}, + 342: {region: 0x93, script: 0x52, flags: 0x0}, + 343: {region: 0x52, script: 0xd5, flags: 0x0}, + 344: {region: 0x97, script: 0x54, flags: 0x0}, + 345: {region: 0x104, script: 0x1e, flags: 0x0}, + 346: {region: 0x12f, script: 0x52, flags: 0x0}, + 347: {region: 0xd7, script: 0x52, flags: 0x0}, + 348: {region: 0x23, script: 0x2, flags: 0x1}, + 349: {region: 0x9c, script: 0x52, flags: 0x0}, + 350: {region: 0x52, script: 0x58, flags: 0x0}, + 351: {region: 0x93, script: 0x52, flags: 0x0}, + 352: {region: 0x9a, script: 0x5, flags: 0x0}, + 353: {region: 0x132, script: 0x52, flags: 0x0}, + 354: {region: 0x97, script: 0xd0, flags: 0x0}, + 355: {region: 0x9c, script: 0x52, flags: 0x0}, + 356: {region: 0x4a, script: 0x52, flags: 0x0}, + 357: {region: 0xad, script: 0x4f, flags: 0x0}, + 358: {region: 0x4a, script: 0x52, flags: 0x0}, + 359: {region: 0x15f, script: 0x52, flags: 0x0}, + 360: {region: 0x9a, script: 0x5, flags: 0x0}, + 361: {region: 0xb4, script: 0x52, flags: 0x0}, + 362: {region: 0xb6, script: 0x52, flags: 0x0}, + 363: {region: 0x4a, script: 0x52, flags: 0x0}, + 364: {region: 0x4a, script: 0x52, flags: 0x0}, + 365: {region: 0xa2, script: 0x52, flags: 0x0}, + 366: {region: 0xa2, script: 0x52, flags: 0x0}, + 367: {region: 0x9a, script: 0x5, flags: 0x0}, + 368: {region: 0xb6, script: 0x52, flags: 0x0}, + 369: {region: 0x121, script: 0xd5, flags: 0x0}, + 370: {region: 0x52, script: 0x34, flags: 0x0}, + 371: {region: 0x129, script: 0x52, flags: 0x0}, + 372: {region: 0x93, script: 0x52, flags: 0x0}, + 373: {region: 0x51, script: 0x52, flags: 0x0}, + 374: {region: 0x97, script: 0x20, flags: 0x0}, + 375: {region: 0x97, script: 0x20, flags: 0x0}, + 376: {region: 0x93, script: 0x52, flags: 0x0}, + 377: {region: 0x25, script: 0x3, flags: 0x1}, + 378: {region: 0xa2, script: 0x52, flags: 0x0}, + 379: {region: 0xcd, script: 0x52, flags: 0x0}, + 380: {region: 0x104, script: 0x1e, flags: 0x0}, + 381: {region: 0xe5, script: 0x52, flags: 0x0}, + 382: {region: 0x93, script: 0x52, flags: 0x0}, + 383: {region: 0x110, script: 0x52, flags: 0x0}, + 384: {region: 0xa2, script: 0x52, flags: 0x0}, + 385: {region: 0x121, script: 0x5, flags: 0x0}, + 386: {region: 0xca, script: 0x52, flags: 0x0}, + 387: {region: 0xbd, script: 0x52, flags: 0x0}, + 388: {region: 0xcf, script: 0x52, flags: 0x0}, + 389: {region: 0x51, script: 0x52, flags: 0x0}, + 390: {region: 0xd9, script: 0x20, flags: 0x0}, + 391: {region: 0x12d, script: 0x52, flags: 0x0}, + 392: {region: 0xbe, script: 0x52, flags: 0x0}, + 393: {region: 0xde, script: 0x52, flags: 0x0}, + 394: {region: 0x93, script: 0x52, flags: 0x0}, + 395: {region: 0x99, script: 0x36, flags: 0x0}, + 396: {region: 0xc0, script: 0x1e, flags: 0x0}, + 397: {region: 0x97, script: 0x64, flags: 0x0}, + 398: {region: 0x109, script: 0x52, flags: 0x0}, + 399: {region: 0x28, script: 0x3, flags: 0x1}, + 400: {region: 0x97, script: 0xe, flags: 0x0}, + 401: {region: 0xc2, script: 0x6b, flags: 0x0}, + 403: {region: 0x48, script: 0x52, flags: 0x0}, + 404: {region: 0x48, script: 0x52, flags: 0x0}, + 405: {region: 0x36, script: 0x52, flags: 0x0}, + 406: {region: 0x97, script: 0x20, flags: 0x0}, + 407: {region: 0xd9, script: 0x20, flags: 0x0}, + 408: {region: 0x104, script: 0x1e, flags: 0x0}, + 409: {region: 0x34, script: 0x68, flags: 0x0}, + 410: {region: 0x2b, script: 0x3, flags: 0x1}, + 411: {region: 0xc9, script: 0x52, flags: 0x0}, + 412: {region: 0x97, script: 0x20, flags: 0x0}, + 413: {region: 0x51, script: 0x52, flags: 0x0}, + 415: {region: 0x132, script: 0x52, flags: 0x0}, + 416: {region: 0xe6, script: 0x5, flags: 0x0}, + 417: {region: 0xc1, script: 0x52, flags: 0x0}, + 418: {region: 0x97, script: 0x20, flags: 0x0}, + 419: {region: 0x93, script: 0x52, flags: 0x0}, + 420: {region: 0x161, script: 0x52, flags: 0x0}, + 421: {region: 0xc2, script: 0x6b, flags: 0x0}, + 422: {region: 0x104, script: 0x1e, flags: 0x0}, + 423: {region: 0x12f, script: 0x52, flags: 0x0}, + 424: {region: 0x9a, script: 0x5d, flags: 0x0}, + 425: {region: 0x9a, script: 0x5, flags: 0x0}, + 426: {region: 0xdb, script: 0x52, flags: 0x0}, + 428: {region: 0x52, script: 0x34, flags: 0x0}, + 429: {region: 0x9c, script: 0x52, flags: 0x0}, + 430: {region: 0xd0, script: 0x52, flags: 0x0}, + 431: {region: 0xd8, script: 0x52, flags: 0x0}, + 432: {region: 0xcd, script: 0x52, flags: 0x0}, + 433: {region: 0x161, script: 0x52, flags: 0x0}, + 434: {region: 0xcf, script: 0x52, flags: 0x0}, + 435: {region: 0x5f, script: 0x52, flags: 0x0}, + 436: {region: 0xd9, script: 0x20, flags: 0x0}, + 437: {region: 0xd9, script: 0x20, flags: 0x0}, + 438: {region: 0xd0, script: 0x52, flags: 0x0}, + 439: {region: 0xcf, script: 0x52, flags: 0x0}, + 440: {region: 0xcd, script: 0x52, flags: 0x0}, + 441: {region: 0xcd, script: 0x52, flags: 0x0}, + 442: {region: 0x93, script: 0x52, flags: 0x0}, + 443: {region: 0xdd, script: 0x52, flags: 0x0}, + 444: {region: 0x97, script: 0x52, flags: 0x0}, + 445: {region: 0xd7, script: 0x52, flags: 0x0}, + 446: {region: 0x51, script: 0x52, flags: 0x0}, + 447: {region: 0xd8, script: 0x52, flags: 0x0}, + 448: {region: 0x51, script: 0x52, flags: 0x0}, + 449: {region: 0xd8, script: 0x52, flags: 0x0}, + 450: {region: 0x121, script: 0x4e, flags: 0x0}, + 451: {region: 0x97, script: 0x20, flags: 0x0}, + 452: {region: 0x10a, script: 0xb7, flags: 0x0}, + 453: {region: 0x82, script: 0x70, flags: 0x0}, + 454: {region: 0x15e, script: 0x52, flags: 0x0}, + 455: {region: 0x48, script: 0x17, flags: 0x0}, + 456: {region: 0x15e, script: 0x52, flags: 0x0}, + 457: {region: 0x115, script: 0x52, flags: 0x0}, + 458: {region: 0x132, script: 0x52, flags: 0x0}, + 459: {region: 0x52, script: 0x52, flags: 0x0}, + 460: {region: 0xcc, script: 0x52, flags: 0x0}, + 461: {region: 0x12d, script: 0x52, flags: 0x0}, + 462: {region: 0x12f, script: 0x52, flags: 0x0}, + 463: {region: 0x7e, script: 0x52, flags: 0x0}, + 464: {region: 0x76, script: 0x52, flags: 0x0}, + 466: {region: 0x6e, script: 0x52, flags: 0x0}, + 467: {region: 0x97, script: 0x75, flags: 0x0}, + 468: {region: 0x7b, script: 0x1e, flags: 0x0}, + 469: {region: 0x132, script: 0x76, flags: 0x0}, + 470: {region: 0xc3, script: 0x74, flags: 0x0}, + 471: {region: 0x2e, script: 0x3, flags: 0x1}, + 472: {region: 0xe5, script: 0x52, flags: 0x0}, + 473: {region: 0x31, script: 0x2, flags: 0x1}, + 474: {region: 0xe5, script: 0x52, flags: 0x0}, + 475: {region: 0x2f, script: 0x52, flags: 0x0}, + 476: {region: 0xee, script: 0x52, flags: 0x0}, + 477: {region: 0x76, script: 0x52, flags: 0x0}, + 478: {region: 0xd4, script: 0x52, flags: 0x0}, + 479: {region: 0x132, script: 0x52, flags: 0x0}, + 480: {region: 0x48, script: 0x52, flags: 0x0}, + 481: {region: 0x9a, script: 0xdd, flags: 0x0}, + 482: {region: 0x5f, script: 0x52, flags: 0x0}, + 483: {region: 0xae, script: 0x7f, flags: 0x0}, + 485: {region: 0x97, script: 0x12, flags: 0x0}, + 486: {region: 0xa2, script: 0x52, flags: 0x0}, + 487: {region: 0xe7, script: 0x52, flags: 0x0}, + 488: {region: 0x9c, script: 0x52, flags: 0x0}, + 489: {region: 0x85, script: 0x2d, flags: 0x0}, + 490: {region: 0x73, script: 0x52, flags: 0x0}, + 491: {region: 0xe6, script: 0x45, flags: 0x0}, + 492: {region: 0x9a, script: 0x5, flags: 0x0}, + 493: {region: 0x1, script: 0x52, flags: 0x0}, + 494: {region: 0x23, script: 0x5, flags: 0x0}, + 495: {region: 0x40, script: 0x52, flags: 0x0}, + 496: {region: 0x78, script: 0x52, flags: 0x0}, + 497: {region: 0xe2, script: 0x52, flags: 0x0}, + 498: {region: 0x87, script: 0x52, flags: 0x0}, + 499: {region: 0x68, script: 0x52, flags: 0x0}, + 500: {region: 0x97, script: 0x20, flags: 0x0}, + 501: {region: 0x100, script: 0x52, flags: 0x0}, + 502: {region: 0x93, script: 0x52, flags: 0x0}, + 503: {region: 0x9c, script: 0x52, flags: 0x0}, + 504: {region: 0x97, script: 0x52, flags: 0x0}, + 505: {region: 0x33, script: 0x2, flags: 0x1}, + 506: {region: 0xd9, script: 0x20, flags: 0x0}, + 507: {region: 0x34, script: 0xe, flags: 0x0}, + 508: {region: 0x4d, script: 0x52, flags: 0x0}, + 509: {region: 0x70, script: 0x52, flags: 0x0}, + 510: {region: 0x4d, script: 0x52, flags: 0x0}, + 511: {region: 0x9a, script: 0x5, flags: 0x0}, + 512: {region: 0x10a, script: 0x52, flags: 0x0}, + 513: {region: 0x39, script: 0x52, flags: 0x0}, + 514: {region: 0xcf, script: 0x52, flags: 0x0}, + 515: {region: 0x102, script: 0x52, flags: 0x0}, + 516: {region: 0x93, script: 0x52, flags: 0x0}, + 517: {region: 0x12d, script: 0x52, flags: 0x0}, + 518: {region: 0x71, script: 0x52, flags: 0x0}, + 519: {region: 0x104, script: 0x1e, flags: 0x0}, + 520: {region: 0x12e, script: 0x1e, flags: 0x0}, + 521: {region: 0x107, script: 0x52, flags: 0x0}, + 522: {region: 0x105, script: 0x52, flags: 0x0}, + 523: {region: 0x12d, script: 0x52, flags: 0x0}, + 524: {region: 0xa0, script: 0x44, flags: 0x0}, + 525: {region: 0x97, script: 0x20, flags: 0x0}, + 526: {region: 0x7e, script: 0x52, flags: 0x0}, + 527: {region: 0x104, script: 0x1e, flags: 0x0}, + 528: {region: 0xa2, script: 0x52, flags: 0x0}, + 529: {region: 0x93, script: 0x52, flags: 0x0}, + 530: {region: 0x97, script: 0x52, flags: 0x0}, + 531: {region: 0x97, script: 0xbb, flags: 0x0}, + 532: {region: 0x12d, script: 0x52, flags: 0x0}, + 533: {region: 0x9c, script: 0x52, flags: 0x0}, + 534: {region: 0x97, script: 0x20, flags: 0x0}, + 535: {region: 0x9c, script: 0x52, flags: 0x0}, + 536: {region: 0x79, script: 0x52, flags: 0x0}, + 537: {region: 0x48, script: 0x52, flags: 0x0}, + 538: {region: 0x35, script: 0x4, flags: 0x1}, + 539: {region: 0x9c, script: 0x52, flags: 0x0}, + 540: {region: 0x9a, script: 0x5, flags: 0x0}, + 541: {region: 0xd8, script: 0x52, flags: 0x0}, + 542: {region: 0x4e, script: 0x52, flags: 0x0}, + 543: {region: 0xcf, script: 0x52, flags: 0x0}, + 544: {region: 0xcd, script: 0x52, flags: 0x0}, + 545: {region: 0xc1, script: 0x52, flags: 0x0}, + 546: {region: 0x4b, script: 0x52, flags: 0x0}, + 547: {region: 0x94, script: 0x72, flags: 0x0}, + 548: {region: 0xb4, script: 0x52, flags: 0x0}, + 550: {region: 0xb8, script: 0xd2, flags: 0x0}, + 551: {region: 0xc2, script: 0x6b, flags: 0x0}, + 552: {region: 0xb1, script: 0xc1, flags: 0x0}, + 553: {region: 0x6e, script: 0x52, flags: 0x0}, + 554: {region: 0x10f, script: 0x52, flags: 0x0}, + 555: {region: 0xe6, script: 0x5, flags: 0x0}, + 556: {region: 0x10d, script: 0x52, flags: 0x0}, + 557: {region: 0xe7, script: 0x52, flags: 0x0}, + 558: {region: 0x93, script: 0x52, flags: 0x0}, + 559: {region: 0x13f, script: 0x52, flags: 0x0}, + 560: {region: 0x10a, script: 0x52, flags: 0x0}, + 562: {region: 0x10a, script: 0x52, flags: 0x0}, + 563: {region: 0x70, script: 0x52, flags: 0x0}, + 564: {region: 0x95, script: 0xb8, flags: 0x0}, + 565: {region: 0x70, script: 0x52, flags: 0x0}, + 566: {region: 0x161, script: 0x52, flags: 0x0}, + 567: {region: 0xc1, script: 0x52, flags: 0x0}, + 568: {region: 0x113, script: 0x52, flags: 0x0}, + 569: {region: 0x121, script: 0xd5, flags: 0x0}, + 570: {region: 0x26, script: 0x52, flags: 0x0}, + 571: {region: 0x39, script: 0x5, flags: 0x1}, + 572: {region: 0x97, script: 0xc2, flags: 0x0}, + 573: {region: 0x114, script: 0x52, flags: 0x0}, + 574: {region: 0x112, script: 0x52, flags: 0x0}, + 575: {region: 0x97, script: 0x20, flags: 0x0}, + 576: {region: 0x15e, script: 0x52, flags: 0x0}, + 577: {region: 0x6c, script: 0x52, flags: 0x0}, + 578: {region: 0x15e, script: 0x52, flags: 0x0}, + 579: {region: 0x5f, script: 0x52, flags: 0x0}, + 580: {region: 0x93, script: 0x52, flags: 0x0}, + 581: {region: 0x12d, script: 0x52, flags: 0x0}, + 582: {region: 0x82, script: 0x52, flags: 0x0}, + 583: {region: 0x10a, script: 0x52, flags: 0x0}, + 584: {region: 0x12d, script: 0x52, flags: 0x0}, + 585: {region: 0x15c, script: 0x5, flags: 0x0}, + 586: {region: 0x4a, script: 0x52, flags: 0x0}, + 587: {region: 0x5f, script: 0x52, flags: 0x0}, + 588: {region: 0x97, script: 0x20, flags: 0x0}, + 589: {region: 0x93, script: 0x52, flags: 0x0}, + 590: {region: 0x34, script: 0xe, flags: 0x0}, + 591: {region: 0x99, script: 0xc5, flags: 0x0}, + 592: {region: 0xe7, script: 0x52, flags: 0x0}, + 593: {region: 0x97, script: 0xcd, flags: 0x0}, + 594: {region: 0xd9, script: 0x20, flags: 0x0}, + 595: {region: 0xe5, script: 0x52, flags: 0x0}, + 596: {region: 0x97, script: 0x4a, flags: 0x0}, + 597: {region: 0x52, script: 0xcb, flags: 0x0}, + 598: {region: 0xd9, script: 0x20, flags: 0x0}, + 599: {region: 0xd9, script: 0x20, flags: 0x0}, + 600: {region: 0x97, script: 0xd0, flags: 0x0}, + 601: {region: 0x110, script: 0x52, flags: 0x0}, + 602: {region: 0x12f, script: 0x52, flags: 0x0}, + 603: {region: 0x124, script: 0x52, flags: 0x0}, + 604: {region: 0x3e, script: 0x3, flags: 0x1}, + 605: {region: 0x121, script: 0xd5, flags: 0x0}, + 606: {region: 0xd9, script: 0x20, flags: 0x0}, + 607: {region: 0xd9, script: 0x20, flags: 0x0}, + 608: {region: 0xd9, script: 0x20, flags: 0x0}, + 609: {region: 0x6e, script: 0x27, flags: 0x0}, + 610: {region: 0x6c, script: 0x27, flags: 0x0}, + 611: {region: 0xd4, script: 0x52, flags: 0x0}, + 612: {region: 0x125, script: 0x52, flags: 0x0}, + 613: {region: 0x123, script: 0x52, flags: 0x0}, + 614: {region: 0x31, script: 0x52, flags: 0x0}, + 615: {region: 0xd9, script: 0x20, flags: 0x0}, + 616: {region: 0xe5, script: 0x52, flags: 0x0}, + 617: {region: 0x31, script: 0x52, flags: 0x0}, + 618: {region: 0xd2, script: 0x52, flags: 0x0}, + 619: {region: 0x15e, script: 0x52, flags: 0x0}, + 620: {region: 0x127, script: 0x52, flags: 0x0}, + 621: {region: 0xcc, script: 0x52, flags: 0x0}, + 622: {region: 0xe4, script: 0x52, flags: 0x0}, + 623: {region: 0x129, script: 0x52, flags: 0x0}, + 624: {region: 0x129, script: 0x52, flags: 0x0}, + 625: {region: 0x12c, script: 0x52, flags: 0x0}, + 626: {region: 0x15e, script: 0x52, flags: 0x0}, + 627: {region: 0x85, script: 0x2d, flags: 0x0}, + 628: {region: 0xd9, script: 0x20, flags: 0x0}, + 629: {region: 0xe5, script: 0x52, flags: 0x0}, + 630: {region: 0x42, script: 0xd6, flags: 0x0}, + 631: {region: 0x104, script: 0x1e, flags: 0x0}, + 632: {region: 0x12f, script: 0x52, flags: 0x0}, + 633: {region: 0x121, script: 0xd5, flags: 0x0}, + 634: {region: 0x31, script: 0x52, flags: 0x0}, + 635: {region: 0xcc, script: 0x52, flags: 0x0}, + 636: {region: 0x12b, script: 0x52, flags: 0x0}, + 638: {region: 0xd2, script: 0x52, flags: 0x0}, + 639: {region: 0x52, script: 0xce, flags: 0x0}, + 640: {region: 0xe3, script: 0x52, flags: 0x0}, + 641: {region: 0x104, script: 0x1e, flags: 0x0}, + 642: {region: 0xb8, script: 0x52, flags: 0x0}, + 643: {region: 0x104, script: 0x1e, flags: 0x0}, + 644: {region: 0x41, script: 0x4, flags: 0x1}, + 645: {region: 0x11a, script: 0xd8, flags: 0x0}, + 646: {region: 0x12e, script: 0x1e, flags: 0x0}, + 647: {region: 0x73, script: 0x52, flags: 0x0}, + 648: {region: 0x29, script: 0x52, flags: 0x0}, + 650: {region: 0x45, script: 0x3, flags: 0x1}, + 651: {region: 0x97, script: 0xe, flags: 0x0}, + 652: {region: 0xe6, script: 0x5, flags: 0x0}, + 653: {region: 0x48, script: 0x4, flags: 0x1}, + 654: {region: 0xb2, script: 0xd9, flags: 0x0}, + 655: {region: 0x15e, script: 0x52, flags: 0x0}, + 656: {region: 0x9c, script: 0x52, flags: 0x0}, + 657: {region: 0x104, script: 0x52, flags: 0x0}, + 658: {region: 0x13b, script: 0x52, flags: 0x0}, + 659: {region: 0x119, script: 0x52, flags: 0x0}, + 660: {region: 0x35, script: 0x52, flags: 0x0}, + 661: {region: 0x5f, script: 0x52, flags: 0x0}, + 662: {region: 0xcf, script: 0x52, flags: 0x0}, + 663: {region: 0x1, script: 0x52, flags: 0x0}, + 664: {region: 0x104, script: 0x52, flags: 0x0}, + 665: {region: 0x69, script: 0x52, flags: 0x0}, + 666: {region: 0x12d, script: 0x52, flags: 0x0}, + 667: {region: 0x35, script: 0x52, flags: 0x0}, + 668: {region: 0x4d, script: 0x52, flags: 0x0}, + 669: {region: 0x6e, script: 0x27, flags: 0x0}, + 670: {region: 0xe5, script: 0x52, flags: 0x0}, + 671: {region: 0x2e, script: 0x52, flags: 0x0}, + 672: {region: 0x97, script: 0xd0, flags: 0x0}, + 673: {region: 0x97, script: 0x20, flags: 0x0}, + 674: {region: 0x13d, script: 0x52, flags: 0x0}, + 675: {region: 0xa6, script: 0x5, flags: 0x0}, + 676: {region: 0x112, script: 0x52, flags: 0x0}, + 677: {region: 0x97, script: 0x20, flags: 0x0}, + 678: {region: 0x52, script: 0x34, flags: 0x0}, + 679: {region: 0x40, script: 0x52, flags: 0x0}, + 680: {region: 0x129, script: 0x18, flags: 0x0}, + 681: {region: 0x15e, script: 0x52, flags: 0x0}, + 682: {region: 0x129, script: 0x5a, flags: 0x0}, + 683: {region: 0x129, script: 0x5b, flags: 0x0}, + 684: {region: 0x7b, script: 0x29, flags: 0x0}, + 685: {region: 0x52, script: 0x5e, flags: 0x0}, + 686: {region: 0x109, script: 0x62, flags: 0x0}, + 687: {region: 0x106, script: 0x6c, flags: 0x0}, + 688: {region: 0x97, script: 0x20, flags: 0x0}, + 689: {region: 0x12f, script: 0x52, flags: 0x0}, + 690: {region: 0x9a, script: 0x82, flags: 0x0}, + 691: {region: 0x15b, script: 0xba, flags: 0x0}, + 692: {region: 0xd9, script: 0x20, flags: 0x0}, + 693: {region: 0xcf, script: 0x52, flags: 0x0}, + 694: {region: 0x73, script: 0x52, flags: 0x0}, + 695: {region: 0x51, script: 0x52, flags: 0x0}, + 696: {region: 0x51, script: 0x52, flags: 0x0}, + 697: {region: 0x1, script: 0x37, flags: 0x0}, + 698: {region: 0xd4, script: 0x52, flags: 0x0}, + 699: {region: 0x40, script: 0x52, flags: 0x0}, + 700: {region: 0xcd, script: 0x52, flags: 0x0}, + 701: {region: 0x4c, script: 0x3, flags: 0x1}, + 702: {region: 0x52, script: 0x52, flags: 0x0}, + 703: {region: 0x109, script: 0x52, flags: 0x0}, + 705: {region: 0xa6, script: 0x5, flags: 0x0}, + 706: {region: 0xd7, script: 0x52, flags: 0x0}, + 707: {region: 0xb8, script: 0xd2, flags: 0x0}, + 708: {region: 0x4f, script: 0x14, flags: 0x1}, + 709: {region: 0xce, script: 0x52, flags: 0x0}, + 710: {region: 0x15e, script: 0x52, flags: 0x0}, + 712: {region: 0x129, script: 0x52, flags: 0x0}, } // likelyLangList holds lists info associated with likelyLang. // Size: 396 bytes, 99 elements var likelyLangList = [99]likelyScriptRegion{ - 0: {region: 0x9b, script: 0x7, flags: 0x0}, - 1: {region: 0xa0, script: 0x6d, flags: 0x2}, - 2: {region: 0x11b, script: 0x78, flags: 0x2}, + 0: {region: 0x9a, script: 0x7, flags: 0x0}, + 1: {region: 0x9f, script: 0x6d, flags: 0x2}, + 2: {region: 0x11a, script: 0x78, flags: 0x2}, 3: {region: 0x31, script: 0x52, flags: 0x0}, - 4: {region: 0x9a, script: 0x5, flags: 0x4}, - 5: {region: 0x9b, script: 0x5, flags: 0x4}, - 6: {region: 0x105, script: 0x1e, flags: 0x4}, - 7: {region: 0x9b, script: 0x5, flags: 0x2}, - 8: {region: 0x98, script: 0xe, flags: 0x0}, + 4: {region: 0x99, script: 0x5, flags: 0x4}, + 5: {region: 0x9a, script: 0x5, flags: 0x4}, + 6: {region: 0x104, script: 0x1e, flags: 0x4}, + 7: {region: 0x9a, script: 0x5, flags: 0x2}, + 8: {region: 0x97, script: 0xe, flags: 0x0}, 9: {region: 0x34, script: 0x16, flags: 0x2}, - 10: {region: 0x105, script: 0x1e, flags: 0x0}, + 10: {region: 0x104, script: 0x1e, flags: 0x0}, 11: {region: 0x37, script: 0x2a, flags: 0x2}, - 12: {region: 0x134, script: 0x52, flags: 0x0}, - 13: {region: 0x7a, script: 0xbd, flags: 0x2}, - 14: {region: 0x113, script: 0x52, flags: 0x0}, - 15: {region: 0x83, script: 0x1, flags: 0x2}, + 12: {region: 0x132, script: 0x52, flags: 0x0}, + 13: {region: 0x79, script: 0xbd, flags: 0x2}, + 14: {region: 0x112, script: 0x52, flags: 0x0}, + 15: {region: 0x82, script: 0x1, flags: 0x2}, 16: {region: 0x5c, script: 0x1d, flags: 0x0}, - 17: {region: 0x86, script: 0x57, flags: 0x2}, - 18: {region: 0xd5, script: 0x52, flags: 0x0}, + 17: {region: 0x85, script: 0x57, flags: 0x2}, + 18: {region: 0xd4, script: 0x52, flags: 0x0}, 19: {region: 0x51, script: 0x5, flags: 0x4}, - 20: {region: 0x10a, script: 0x5, flags: 0x4}, - 21: {region: 0xad, script: 0x1e, flags: 0x0}, + 20: {region: 0x109, script: 0x5, flags: 0x4}, + 21: {region: 0xac, script: 0x1e, flags: 0x0}, 22: {region: 0x23, script: 0x5, flags: 0x4}, 23: {region: 0x52, script: 0x5, flags: 0x4}, - 24: {region: 0x9b, script: 0x5, flags: 0x4}, - 25: {region: 0xc4, script: 0x5, flags: 0x4}, + 24: {region: 0x9a, script: 0x5, flags: 0x4}, + 25: {region: 0xc3, script: 0x5, flags: 0x4}, 26: {region: 0x52, script: 0x5, flags: 0x2}, - 27: {region: 0x12a, script: 0x52, flags: 0x0}, - 28: {region: 0xaf, script: 0x5, flags: 0x4}, - 29: {region: 0x9a, script: 0x5, flags: 0x2}, - 30: {region: 0xa4, script: 0x1e, flags: 0x0}, + 27: {region: 0x129, script: 0x52, flags: 0x0}, + 28: {region: 0xae, script: 0x5, flags: 0x4}, + 29: {region: 0x99, script: 0x5, flags: 0x2}, + 30: {region: 0xa3, script: 0x1e, flags: 0x0}, 31: {region: 0x52, script: 0x5, flags: 0x4}, - 32: {region: 0x12a, script: 0x52, flags: 0x4}, + 32: {region: 0x129, script: 0x52, flags: 0x4}, 33: {region: 0x52, script: 0x5, flags: 0x2}, - 34: {region: 0x12a, script: 0x52, flags: 0x2}, - 35: {region: 0xda, script: 0x20, flags: 0x0}, - 36: {region: 0x98, script: 0x55, flags: 0x2}, - 37: {region: 0x82, script: 0x52, flags: 0x0}, - 38: {region: 0x83, script: 0x70, flags: 0x4}, - 39: {region: 0x83, script: 0x70, flags: 0x2}, - 40: {region: 0xc4, script: 0x1e, flags: 0x0}, + 34: {region: 0x129, script: 0x52, flags: 0x2}, + 35: {region: 0xd9, script: 0x20, flags: 0x0}, + 36: {region: 0x97, script: 0x55, flags: 0x2}, + 37: {region: 0x81, script: 0x52, flags: 0x0}, + 38: {region: 0x82, script: 0x70, flags: 0x4}, + 39: {region: 0x82, script: 0x70, flags: 0x2}, + 40: {region: 0xc3, script: 0x1e, flags: 0x0}, 41: {region: 0x52, script: 0x66, flags: 0x4}, 42: {region: 0x52, script: 0x66, flags: 0x2}, - 43: {region: 0xcf, script: 0x52, flags: 0x0}, + 43: {region: 0xce, script: 0x52, flags: 0x0}, 44: {region: 0x49, script: 0x5, flags: 0x4}, - 45: {region: 0x94, script: 0x5, flags: 0x4}, - 46: {region: 0x98, script: 0x2f, flags: 0x0}, - 47: {region: 0xe7, script: 0x5, flags: 0x4}, - 48: {region: 0xe7, script: 0x5, flags: 0x2}, - 49: {region: 0x9b, script: 0x7c, flags: 0x0}, + 45: {region: 0x93, script: 0x5, flags: 0x4}, + 46: {region: 0x97, script: 0x2f, flags: 0x0}, + 47: {region: 0xe6, script: 0x5, flags: 0x4}, + 48: {region: 0xe6, script: 0x5, flags: 0x2}, + 49: {region: 0x9a, script: 0x7c, flags: 0x0}, 50: {region: 0x52, script: 0x7d, flags: 0x2}, - 51: {region: 0xb9, script: 0xd2, flags: 0x0}, - 52: {region: 0xd8, script: 0x52, flags: 0x4}, - 53: {region: 0xe7, script: 0x5, flags: 0x0}, - 54: {region: 0x98, script: 0x20, flags: 0x2}, - 55: {region: 0x98, script: 0x47, flags: 0x2}, - 56: {region: 0x98, script: 0xc0, flags: 0x2}, - 57: {region: 0x104, script: 0x1e, flags: 0x0}, - 58: {region: 0xbc, script: 0x52, flags: 0x4}, - 59: {region: 0x103, script: 0x52, flags: 0x4}, - 60: {region: 0x105, script: 0x52, flags: 0x4}, - 61: {region: 0x12a, script: 0x52, flags: 0x4}, - 62: {region: 0x123, script: 0x1e, flags: 0x0}, - 63: {region: 0xe7, script: 0x5, flags: 0x4}, - 64: {region: 0xe7, script: 0x5, flags: 0x2}, + 51: {region: 0xb8, script: 0xd2, flags: 0x0}, + 52: {region: 0xd7, script: 0x52, flags: 0x4}, + 53: {region: 0xe6, script: 0x5, flags: 0x0}, + 54: {region: 0x97, script: 0x20, flags: 0x2}, + 55: {region: 0x97, script: 0x47, flags: 0x2}, + 56: {region: 0x97, script: 0xc0, flags: 0x2}, + 57: {region: 0x103, script: 0x1e, flags: 0x0}, + 58: {region: 0xbb, script: 0x52, flags: 0x4}, + 59: {region: 0x102, script: 0x52, flags: 0x4}, + 60: {region: 0x104, script: 0x52, flags: 0x4}, + 61: {region: 0x129, script: 0x52, flags: 0x4}, + 62: {region: 0x122, script: 0x1e, flags: 0x0}, + 63: {region: 0xe6, script: 0x5, flags: 0x4}, + 64: {region: 0xe6, script: 0x5, flags: 0x2}, 65: {region: 0x52, script: 0x5, flags: 0x0}, - 66: {region: 0xad, script: 0x1e, flags: 0x4}, - 67: {region: 0xc4, script: 0x1e, flags: 0x4}, - 68: {region: 0xad, script: 0x1e, flags: 0x2}, - 69: {region: 0x98, script: 0xe, flags: 0x0}, - 70: {region: 0xda, script: 0x20, flags: 0x4}, - 71: {region: 0xda, script: 0x20, flags: 0x2}, - 72: {region: 0x136, script: 0x52, flags: 0x0}, + 66: {region: 0xac, script: 0x1e, flags: 0x4}, + 67: {region: 0xc3, script: 0x1e, flags: 0x4}, + 68: {region: 0xac, script: 0x1e, flags: 0x2}, + 69: {region: 0x97, script: 0xe, flags: 0x0}, + 70: {region: 0xd9, script: 0x20, flags: 0x4}, + 71: {region: 0xd9, script: 0x20, flags: 0x2}, + 72: {region: 0x134, script: 0x52, flags: 0x0}, 73: {region: 0x23, script: 0x5, flags: 0x4}, 74: {region: 0x52, script: 0x1e, flags: 0x4}, 75: {region: 0x23, script: 0x5, flags: 0x2}, - 76: {region: 0x8c, script: 0x35, flags: 0x0}, + 76: {region: 0x8b, script: 0x35, flags: 0x0}, 77: {region: 0x52, script: 0x34, flags: 0x4}, 78: {region: 0x52, script: 0x34, flags: 0x2}, 79: {region: 0x52, script: 0x34, flags: 0x0}, 80: {region: 0x2e, script: 0x35, flags: 0x4}, 81: {region: 0x3d, script: 0x35, flags: 0x4}, - 82: {region: 0x7a, script: 0x35, flags: 0x4}, - 83: {region: 0x7d, script: 0x35, flags: 0x4}, - 84: {region: 0x8c, script: 0x35, flags: 0x4}, - 85: {region: 0x94, script: 0x35, flags: 0x4}, - 86: {region: 0xc5, script: 0x35, flags: 0x4}, - 87: {region: 0xcf, script: 0x35, flags: 0x4}, - 88: {region: 0xe1, script: 0x35, flags: 0x4}, - 89: {region: 0xe4, script: 0x35, flags: 0x4}, - 90: {region: 0xe6, script: 0x35, flags: 0x4}, - 91: {region: 0x115, script: 0x35, flags: 0x4}, - 92: {region: 0x122, script: 0x35, flags: 0x4}, - 93: {region: 0x12d, script: 0x35, flags: 0x4}, - 94: {region: 0x134, script: 0x35, flags: 0x4}, - 95: {region: 0x13d, script: 0x35, flags: 0x4}, - 96: {region: 0x12d, script: 0x11, flags: 0x2}, - 97: {region: 0x12d, script: 0x30, flags: 0x2}, - 98: {region: 0x12d, script: 0x35, flags: 0x2}, + 82: {region: 0x79, script: 0x35, flags: 0x4}, + 83: {region: 0x7c, script: 0x35, flags: 0x4}, + 84: {region: 0x8b, script: 0x35, flags: 0x4}, + 85: {region: 0x93, script: 0x35, flags: 0x4}, + 86: {region: 0xc4, script: 0x35, flags: 0x4}, + 87: {region: 0xce, script: 0x35, flags: 0x4}, + 88: {region: 0xe0, script: 0x35, flags: 0x4}, + 89: {region: 0xe3, script: 0x35, flags: 0x4}, + 90: {region: 0xe5, script: 0x35, flags: 0x4}, + 91: {region: 0x114, script: 0x35, flags: 0x4}, + 92: {region: 0x121, script: 0x35, flags: 0x4}, + 93: {region: 0x12c, script: 0x35, flags: 0x4}, + 94: {region: 0x132, script: 0x35, flags: 0x4}, + 95: {region: 0x13b, script: 0x35, flags: 0x4}, + 96: {region: 0x12c, script: 0x11, flags: 0x2}, + 97: {region: 0x12c, script: 0x30, flags: 0x2}, + 98: {region: 0x12c, script: 0x35, flags: 0x2}, } type likelyLangScript struct { @@ -2916,310 +2163,307 @@ type likelyLangScript struct { // for a given regionID, lang and script are the index and size respectively // of the list in likelyRegionList. // TODO: exclude containers and user-definable regions from the list. -// Size: 1428 bytes, 357 elements -var likelyRegion = [357]likelyLangScript{ - 33: {lang: 0xd5, script: 0x52, flags: 0x0}, - 34: {lang: 0x39, script: 0x5, flags: 0x0}, +// Size: 1420 bytes, 355 elements +var likelyRegion = [355]likelyLangScript{ + 33: {lang: 0x61, script: 0x52, flags: 0x0}, + 34: {lang: 0x15, script: 0x5, flags: 0x0}, 35: {lang: 0x0, script: 0x2, flags: 0x1}, 38: {lang: 0x2, script: 0x2, flags: 0x1}, 39: {lang: 0x4, script: 0x2, flags: 0x1}, - 41: {lang: 0x3b7, script: 0x52, flags: 0x0}, + 41: {lang: 0x1ef, script: 0x52, flags: 0x0}, 42: {lang: 0x0, script: 0x52, flags: 0x0}, - 43: {lang: 0x139, script: 0x52, flags: 0x0}, - 44: {lang: 0x411, script: 0x52, flags: 0x0}, - 45: {lang: 0x109, script: 0x52, flags: 0x0}, - 47: {lang: 0x35e, script: 0x52, flags: 0x0}, - 48: {lang: 0x43a, script: 0x52, flags: 0x0}, - 49: {lang: 0x57, script: 0x52, flags: 0x0}, + 43: {lang: 0x9d, script: 0x52, flags: 0x0}, + 44: {lang: 0x22f, script: 0x52, flags: 0x0}, + 45: {lang: 0x85, script: 0x52, flags: 0x0}, + 47: {lang: 0x1bd, script: 0x52, flags: 0x0}, + 48: {lang: 0x247, script: 0x52, flags: 0x0}, + 49: {lang: 0x24, script: 0x52, flags: 0x0}, 50: {lang: 0x6, script: 0x2, flags: 0x1}, - 52: {lang: 0xa3, script: 0xe, flags: 0x0}, - 53: {lang: 0x35e, script: 0x52, flags: 0x0}, - 54: {lang: 0x159, script: 0x52, flags: 0x0}, - 55: {lang: 0x7d, script: 0x1e, flags: 0x0}, - 56: {lang: 0x39, script: 0x5, flags: 0x0}, - 57: {lang: 0x3d0, script: 0x52, flags: 0x0}, - 58: {lang: 0x159, script: 0x52, flags: 0x0}, - 59: {lang: 0x159, script: 0x52, flags: 0x0}, - 61: {lang: 0x316, script: 0x52, flags: 0x0}, - 62: {lang: 0x139, script: 0x52, flags: 0x0}, - 63: {lang: 0x398, script: 0x52, flags: 0x0}, - 64: {lang: 0x3b7, script: 0x52, flags: 0x0}, + 52: {lang: 0x4b, script: 0xe, flags: 0x0}, + 53: {lang: 0x1bd, script: 0x52, flags: 0x0}, + 54: {lang: 0xaf, script: 0x52, flags: 0x0}, + 55: {lang: 0x38, script: 0x1e, flags: 0x0}, + 56: {lang: 0x15, script: 0x5, flags: 0x0}, + 57: {lang: 0x201, script: 0x52, flags: 0x0}, + 58: {lang: 0xaf, script: 0x52, flags: 0x0}, + 59: {lang: 0xaf, script: 0x52, flags: 0x0}, + 61: {lang: 0x19a, script: 0x52, flags: 0x0}, + 62: {lang: 0x9d, script: 0x52, flags: 0x0}, + 63: {lang: 0x1db, script: 0x52, flags: 0x0}, + 64: {lang: 0x1ef, script: 0x52, flags: 0x0}, 66: {lang: 0x8, script: 0x2, flags: 0x1}, 68: {lang: 0x0, script: 0x52, flags: 0x0}, - 70: {lang: 0x70, script: 0x1e, flags: 0x0}, - 72: {lang: 0x508, script: 0x37, flags: 0x2}, - 73: {lang: 0x316, script: 0x5, flags: 0x2}, - 74: {lang: 0x43b, script: 0x52, flags: 0x0}, - 75: {lang: 0x159, script: 0x52, flags: 0x0}, - 76: {lang: 0x159, script: 0x52, flags: 0x0}, - 77: {lang: 0x109, script: 0x52, flags: 0x0}, - 78: {lang: 0x159, script: 0x52, flags: 0x0}, - 80: {lang: 0x139, script: 0x52, flags: 0x0}, - 81: {lang: 0x159, script: 0x52, flags: 0x0}, + 70: {lang: 0x2f, script: 0x1e, flags: 0x0}, + 72: {lang: 0x2b9, script: 0x37, flags: 0x2}, + 73: {lang: 0x19a, script: 0x5, flags: 0x2}, + 74: {lang: 0x248, script: 0x52, flags: 0x0}, + 75: {lang: 0xaf, script: 0x52, flags: 0x0}, + 76: {lang: 0xaf, script: 0x52, flags: 0x0}, + 77: {lang: 0x85, script: 0x52, flags: 0x0}, + 78: {lang: 0xaf, script: 0x52, flags: 0x0}, + 80: {lang: 0x9d, script: 0x52, flags: 0x0}, + 81: {lang: 0xaf, script: 0x52, flags: 0x0}, 82: {lang: 0xa, script: 0x5, flags: 0x1}, - 83: {lang: 0x139, script: 0x52, flags: 0x0}, + 83: {lang: 0x9d, script: 0x52, flags: 0x0}, 84: {lang: 0x0, script: 0x52, flags: 0x0}, - 85: {lang: 0x139, script: 0x52, flags: 0x0}, - 88: {lang: 0x139, script: 0x52, flags: 0x0}, - 89: {lang: 0x3b7, script: 0x52, flags: 0x0}, - 90: {lang: 0x398, script: 0x52, flags: 0x0}, + 85: {lang: 0x9d, script: 0x52, flags: 0x0}, + 88: {lang: 0x9d, script: 0x52, flags: 0x0}, + 89: {lang: 0x1ef, script: 0x52, flags: 0x0}, + 90: {lang: 0x1db, script: 0x52, flags: 0x0}, 92: {lang: 0xf, script: 0x2, flags: 0x1}, - 93: {lang: 0xf6, script: 0x52, flags: 0x0}, - 95: {lang: 0x109, script: 0x52, flags: 0x0}, + 93: {lang: 0x79, script: 0x52, flags: 0x0}, + 95: {lang: 0x85, script: 0x52, flags: 0x0}, 97: {lang: 0x1, script: 0x52, flags: 0x0}, - 98: {lang: 0xfd, script: 0x52, flags: 0x0}, - 100: {lang: 0x139, script: 0x52, flags: 0x0}, + 98: {lang: 0x80, script: 0x52, flags: 0x0}, + 100: {lang: 0x9d, script: 0x52, flags: 0x0}, 102: {lang: 0x11, script: 0x2, flags: 0x1}, - 103: {lang: 0x139, script: 0x52, flags: 0x0}, - 104: {lang: 0x139, script: 0x52, flags: 0x0}, - 105: {lang: 0x13b, script: 0x52, flags: 0x0}, - 106: {lang: 0x39, script: 0x5, flags: 0x0}, - 107: {lang: 0x39, script: 0x5, flags: 0x0}, - 108: {lang: 0x465, script: 0x27, flags: 0x0}, - 109: {lang: 0x139, script: 0x52, flags: 0x0}, + 103: {lang: 0x9d, script: 0x52, flags: 0x0}, + 104: {lang: 0x9d, script: 0x52, flags: 0x0}, + 105: {lang: 0x9f, script: 0x52, flags: 0x0}, + 106: {lang: 0x15, script: 0x5, flags: 0x0}, + 107: {lang: 0x15, script: 0x5, flags: 0x0}, + 108: {lang: 0x261, script: 0x27, flags: 0x0}, + 109: {lang: 0x9d, script: 0x52, flags: 0x0}, 110: {lang: 0x13, script: 0x2, flags: 0x1}, - 112: {lang: 0x109, script: 0x52, flags: 0x0}, - 113: {lang: 0x14c, script: 0x52, flags: 0x0}, - 114: {lang: 0x1b9, script: 0x20, flags: 0x2}, - 117: {lang: 0x153, script: 0x52, flags: 0x0}, - 119: {lang: 0x159, script: 0x52, flags: 0x0}, - 121: {lang: 0x159, script: 0x52, flags: 0x0}, - 122: {lang: 0x15, script: 0x2, flags: 0x1}, - 124: {lang: 0x17, script: 0x3, flags: 0x1}, - 125: {lang: 0x159, script: 0x52, flags: 0x0}, - 127: {lang: 0x20, script: 0x52, flags: 0x0}, - 129: {lang: 0x23d, script: 0x52, flags: 0x0}, - 131: {lang: 0x159, script: 0x52, flags: 0x0}, - 132: {lang: 0x159, script: 0x52, flags: 0x0}, - 133: {lang: 0x139, script: 0x52, flags: 0x0}, - 134: {lang: 0x1a, script: 0x2, flags: 0x1}, - 135: {lang: 0x0, script: 0x52, flags: 0x0}, - 136: {lang: 0x139, script: 0x52, flags: 0x0}, - 138: {lang: 0x3b7, script: 0x52, flags: 0x0}, - 140: {lang: 0x51f, script: 0x35, flags: 0x0}, - 141: {lang: 0x0, script: 0x52, flags: 0x0}, - 142: {lang: 0x139, script: 0x52, flags: 0x0}, - 143: {lang: 0x1ca, script: 0x52, flags: 0x0}, - 144: {lang: 0x1cd, script: 0x52, flags: 0x0}, - 145: {lang: 0x1ce, script: 0x52, flags: 0x0}, - 147: {lang: 0x139, script: 0x52, flags: 0x0}, - 148: {lang: 0x1c, script: 0x2, flags: 0x1}, - 150: {lang: 0x1b5, script: 0x37, flags: 0x0}, - 152: {lang: 0x1e, script: 0x3, flags: 0x1}, - 154: {lang: 0x39, script: 0x5, flags: 0x0}, - 155: {lang: 0x21, script: 0x2, flags: 0x1}, - 156: {lang: 0x1f0, script: 0x52, flags: 0x0}, - 157: {lang: 0x1f1, script: 0x52, flags: 0x0}, - 160: {lang: 0x39, script: 0x5, flags: 0x0}, - 161: {lang: 0x1f8, script: 0x41, flags: 0x0}, - 163: {lang: 0x43b, script: 0x52, flags: 0x0}, - 164: {lang: 0x281, script: 0x1e, flags: 0x0}, - 165: {lang: 0x23, script: 0x3, flags: 0x1}, - 167: {lang: 0x26, script: 0x2, flags: 0x1}, - 169: {lang: 0x24b, script: 0x4b, flags: 0x0}, - 170: {lang: 0x24b, script: 0x4b, flags: 0x0}, - 171: {lang: 0x39, script: 0x5, flags: 0x0}, - 173: {lang: 0x3d9, script: 0x1e, flags: 0x0}, - 174: {lang: 0x28, script: 0x2, flags: 0x1}, - 175: {lang: 0x39, script: 0x5, flags: 0x0}, - 177: {lang: 0x109, script: 0x52, flags: 0x0}, - 178: {lang: 0x402, script: 0xc1, flags: 0x0}, - 180: {lang: 0x431, script: 0x52, flags: 0x0}, - 181: {lang: 0x2b7, script: 0x52, flags: 0x0}, - 182: {lang: 0x159, script: 0x52, flags: 0x0}, - 183: {lang: 0x2be, script: 0x52, flags: 0x0}, - 184: {lang: 0x39, script: 0x5, flags: 0x0}, - 185: {lang: 0x2a, script: 0x2, flags: 0x1}, - 186: {lang: 0x159, script: 0x52, flags: 0x0}, - 187: {lang: 0x2c, script: 0x2, flags: 0x1}, - 188: {lang: 0x428, script: 0x52, flags: 0x0}, - 189: {lang: 0x159, script: 0x52, flags: 0x0}, - 190: {lang: 0x2e8, script: 0x52, flags: 0x0}, - 193: {lang: 0x2e, script: 0x2, flags: 0x1}, - 194: {lang: 0x9e, script: 0x52, flags: 0x0}, - 195: {lang: 0x30, script: 0x2, flags: 0x1}, - 196: {lang: 0x32, script: 0x2, flags: 0x1}, - 197: {lang: 0x34, script: 0x2, flags: 0x1}, - 199: {lang: 0x159, script: 0x52, flags: 0x0}, - 200: {lang: 0x36, script: 0x2, flags: 0x1}, - 202: {lang: 0x317, script: 0x52, flags: 0x0}, - 203: {lang: 0x38, script: 0x3, flags: 0x1}, - 204: {lang: 0x124, script: 0xd4, flags: 0x0}, - 206: {lang: 0x139, script: 0x52, flags: 0x0}, - 207: {lang: 0x316, script: 0x52, flags: 0x0}, - 208: {lang: 0x3b7, script: 0x52, flags: 0x0}, - 209: {lang: 0x15, script: 0x52, flags: 0x0}, - 210: {lang: 0x159, script: 0x52, flags: 0x0}, - 211: {lang: 0x1ad, script: 0x52, flags: 0x0}, - 213: {lang: 0x1ad, script: 0x5, flags: 0x2}, - 215: {lang: 0x139, script: 0x52, flags: 0x0}, - 216: {lang: 0x35e, script: 0x52, flags: 0x0}, - 217: {lang: 0x33e, script: 0x52, flags: 0x0}, - 218: {lang: 0x348, script: 0x20, flags: 0x0}, - 224: {lang: 0x39, script: 0x5, flags: 0x0}, - 225: {lang: 0x139, script: 0x52, flags: 0x0}, - 227: {lang: 0x139, script: 0x52, flags: 0x0}, - 228: {lang: 0x159, script: 0x52, flags: 0x0}, - 229: {lang: 0x47c, script: 0x52, flags: 0x0}, - 230: {lang: 0x14e, script: 0x52, flags: 0x0}, - 231: {lang: 0x3b, script: 0x3, flags: 0x1}, - 232: {lang: 0x3e, script: 0x2, flags: 0x1}, - 233: {lang: 0x159, script: 0x52, flags: 0x0}, - 235: {lang: 0x139, script: 0x52, flags: 0x0}, - 236: {lang: 0x39, script: 0x5, flags: 0x0}, - 237: {lang: 0x3b7, script: 0x52, flags: 0x0}, - 239: {lang: 0x399, script: 0x52, flags: 0x0}, - 240: {lang: 0x18e, script: 0x52, flags: 0x0}, - 242: {lang: 0x39, script: 0x5, flags: 0x0}, - 257: {lang: 0x159, script: 0x52, flags: 0x0}, - 259: {lang: 0x40, script: 0x2, flags: 0x1}, - 260: {lang: 0x428, script: 0x1e, flags: 0x0}, - 261: {lang: 0x42, script: 0x2, flags: 0x1}, - 262: {lang: 0x3dc, script: 0x52, flags: 0x0}, - 263: {lang: 0x39, script: 0x5, flags: 0x0}, - 265: {lang: 0x159, script: 0x52, flags: 0x0}, - 266: {lang: 0x39, script: 0x5, flags: 0x0}, - 267: {lang: 0x44, script: 0x2, flags: 0x1}, - 270: {lang: 0x40c, script: 0x52, flags: 0x0}, - 271: {lang: 0x33e, script: 0x52, flags: 0x0}, - 272: {lang: 0x46, script: 0x2, flags: 0x1}, - 274: {lang: 0x1f1, script: 0x52, flags: 0x0}, - 275: {lang: 0x159, script: 0x52, flags: 0x0}, - 276: {lang: 0x41f, script: 0x52, flags: 0x0}, - 277: {lang: 0x35e, script: 0x52, flags: 0x0}, - 279: {lang: 0x3b7, script: 0x52, flags: 0x0}, - 281: {lang: 0x139, script: 0x52, flags: 0x0}, - 283: {lang: 0x48, script: 0x2, flags: 0x1}, - 287: {lang: 0x159, script: 0x52, flags: 0x0}, - 288: {lang: 0x159, script: 0x52, flags: 0x0}, - 289: {lang: 0x4a, script: 0x2, flags: 0x1}, - 290: {lang: 0x4c, script: 0x3, flags: 0x1}, - 291: {lang: 0x4f, script: 0x2, flags: 0x1}, - 292: {lang: 0x46d, script: 0x52, flags: 0x0}, - 293: {lang: 0x3b7, script: 0x52, flags: 0x0}, - 294: {lang: 0x46c, script: 0x52, flags: 0x0}, - 295: {lang: 0x51, script: 0x2, flags: 0x1}, - 296: {lang: 0x478, script: 0x52, flags: 0x0}, - 298: {lang: 0x53, script: 0x4, flags: 0x1}, - 300: {lang: 0x496, script: 0x52, flags: 0x0}, - 301: {lang: 0x57, script: 0x2, flags: 0x1}, - 302: {lang: 0x43b, script: 0x52, flags: 0x0}, - 303: {lang: 0x59, script: 0x3, flags: 0x1}, - 304: {lang: 0x43b, script: 0x52, flags: 0x0}, - 308: {lang: 0x508, script: 0x37, flags: 0x2}, - 309: {lang: 0x139, script: 0x52, flags: 0x0}, - 310: {lang: 0x4b2, script: 0x52, flags: 0x0}, - 311: {lang: 0x1f1, script: 0x52, flags: 0x0}, - 314: {lang: 0x139, script: 0x52, flags: 0x0}, - 317: {lang: 0x4b9, script: 0x52, flags: 0x0}, - 318: {lang: 0x89, script: 0x52, flags: 0x0}, - 319: {lang: 0x159, script: 0x52, flags: 0x0}, - 321: {lang: 0x411, script: 0x52, flags: 0x0}, - 332: {lang: 0x5c, script: 0x2, flags: 0x1}, - 349: {lang: 0x39, script: 0x5, flags: 0x0}, - 350: {lang: 0x5e, script: 0x2, flags: 0x1}, - 355: {lang: 0x419, script: 0x52, flags: 0x0}, + 112: {lang: 0xa8, script: 0x52, flags: 0x0}, + 113: {lang: 0xe2, script: 0x20, flags: 0x2}, + 116: {lang: 0xad, script: 0x52, flags: 0x0}, + 118: {lang: 0xaf, script: 0x52, flags: 0x0}, + 120: {lang: 0xaf, script: 0x52, flags: 0x0}, + 121: {lang: 0x15, script: 0x2, flags: 0x1}, + 123: {lang: 0x17, script: 0x3, flags: 0x1}, + 124: {lang: 0xaf, script: 0x52, flags: 0x0}, + 126: {lang: 0xd, script: 0x52, flags: 0x0}, + 128: {lang: 0x131, script: 0x52, flags: 0x0}, + 130: {lang: 0xaf, script: 0x52, flags: 0x0}, + 131: {lang: 0xaf, script: 0x52, flags: 0x0}, + 132: {lang: 0x9d, script: 0x52, flags: 0x0}, + 133: {lang: 0x1a, script: 0x2, flags: 0x1}, + 134: {lang: 0x0, script: 0x52, flags: 0x0}, + 135: {lang: 0x9d, script: 0x52, flags: 0x0}, + 137: {lang: 0x1ef, script: 0x52, flags: 0x0}, + 139: {lang: 0x2c4, script: 0x35, flags: 0x0}, + 140: {lang: 0x0, script: 0x52, flags: 0x0}, + 141: {lang: 0x9d, script: 0x52, flags: 0x0}, + 142: {lang: 0xee, script: 0x52, flags: 0x0}, + 143: {lang: 0xf1, script: 0x52, flags: 0x0}, + 144: {lang: 0xf2, script: 0x52, flags: 0x0}, + 146: {lang: 0x9d, script: 0x52, flags: 0x0}, + 147: {lang: 0x1c, script: 0x2, flags: 0x1}, + 149: {lang: 0xe0, script: 0x37, flags: 0x0}, + 151: {lang: 0x1e, script: 0x3, flags: 0x1}, + 153: {lang: 0x15, script: 0x5, flags: 0x0}, + 154: {lang: 0x21, script: 0x2, flags: 0x1}, + 155: {lang: 0x102, script: 0x52, flags: 0x0}, + 156: {lang: 0x103, script: 0x52, flags: 0x0}, + 159: {lang: 0x15, script: 0x5, flags: 0x0}, + 160: {lang: 0x107, script: 0x41, flags: 0x0}, + 162: {lang: 0x248, script: 0x52, flags: 0x0}, + 163: {lang: 0x14d, script: 0x1e, flags: 0x0}, + 164: {lang: 0x23, script: 0x3, flags: 0x1}, + 166: {lang: 0x26, script: 0x2, flags: 0x1}, + 168: {lang: 0x136, script: 0x4b, flags: 0x0}, + 169: {lang: 0x136, script: 0x4b, flags: 0x0}, + 170: {lang: 0x15, script: 0x5, flags: 0x0}, + 172: {lang: 0x207, script: 0x1e, flags: 0x0}, + 173: {lang: 0x28, script: 0x2, flags: 0x1}, + 174: {lang: 0x15, script: 0x5, flags: 0x0}, + 176: {lang: 0x85, script: 0x52, flags: 0x0}, + 177: {lang: 0x228, script: 0xc1, flags: 0x0}, + 179: {lang: 0x242, script: 0x52, flags: 0x0}, + 180: {lang: 0x169, script: 0x52, flags: 0x0}, + 181: {lang: 0xaf, script: 0x52, flags: 0x0}, + 182: {lang: 0x170, script: 0x52, flags: 0x0}, + 183: {lang: 0x15, script: 0x5, flags: 0x0}, + 184: {lang: 0x2a, script: 0x2, flags: 0x1}, + 185: {lang: 0xaf, script: 0x52, flags: 0x0}, + 186: {lang: 0x2c, script: 0x2, flags: 0x1}, + 187: {lang: 0x23b, script: 0x52, flags: 0x0}, + 188: {lang: 0xaf, script: 0x52, flags: 0x0}, + 189: {lang: 0x183, script: 0x52, flags: 0x0}, + 192: {lang: 0x2e, script: 0x2, flags: 0x1}, + 193: {lang: 0x49, script: 0x52, flags: 0x0}, + 194: {lang: 0x30, script: 0x2, flags: 0x1}, + 195: {lang: 0x32, script: 0x2, flags: 0x1}, + 196: {lang: 0x34, script: 0x2, flags: 0x1}, + 198: {lang: 0xaf, script: 0x52, flags: 0x0}, + 199: {lang: 0x36, script: 0x2, flags: 0x1}, + 201: {lang: 0x19b, script: 0x52, flags: 0x0}, + 202: {lang: 0x38, script: 0x3, flags: 0x1}, + 203: {lang: 0x90, script: 0xd4, flags: 0x0}, + 205: {lang: 0x9d, script: 0x52, flags: 0x0}, + 206: {lang: 0x19a, script: 0x52, flags: 0x0}, + 207: {lang: 0x1ef, script: 0x52, flags: 0x0}, + 208: {lang: 0xa, script: 0x52, flags: 0x0}, + 209: {lang: 0xaf, script: 0x52, flags: 0x0}, + 210: {lang: 0xdc, script: 0x52, flags: 0x0}, + 212: {lang: 0xdc, script: 0x5, flags: 0x2}, + 214: {lang: 0x9d, script: 0x52, flags: 0x0}, + 215: {lang: 0x1bd, script: 0x52, flags: 0x0}, + 216: {lang: 0x1af, script: 0x52, flags: 0x0}, + 217: {lang: 0x1b4, script: 0x20, flags: 0x0}, + 223: {lang: 0x15, script: 0x5, flags: 0x0}, + 224: {lang: 0x9d, script: 0x52, flags: 0x0}, + 226: {lang: 0x9d, script: 0x52, flags: 0x0}, + 227: {lang: 0xaf, script: 0x52, flags: 0x0}, + 228: {lang: 0x26e, script: 0x52, flags: 0x0}, + 229: {lang: 0xaa, script: 0x52, flags: 0x0}, + 230: {lang: 0x3b, script: 0x3, flags: 0x1}, + 231: {lang: 0x3e, script: 0x2, flags: 0x1}, + 232: {lang: 0xaf, script: 0x52, flags: 0x0}, + 234: {lang: 0x9d, script: 0x52, flags: 0x0}, + 235: {lang: 0x15, script: 0x5, flags: 0x0}, + 236: {lang: 0x1ef, script: 0x52, flags: 0x0}, + 238: {lang: 0x1dc, script: 0x52, flags: 0x0}, + 239: {lang: 0xca, script: 0x52, flags: 0x0}, + 241: {lang: 0x15, script: 0x5, flags: 0x0}, + 256: {lang: 0xaf, script: 0x52, flags: 0x0}, + 258: {lang: 0x40, script: 0x2, flags: 0x1}, + 259: {lang: 0x23b, script: 0x1e, flags: 0x0}, + 260: {lang: 0x42, script: 0x2, flags: 0x1}, + 261: {lang: 0x20a, script: 0x52, flags: 0x0}, + 262: {lang: 0x15, script: 0x5, flags: 0x0}, + 264: {lang: 0xaf, script: 0x52, flags: 0x0}, + 265: {lang: 0x15, script: 0x5, flags: 0x0}, + 266: {lang: 0x44, script: 0x2, flags: 0x1}, + 269: {lang: 0x22c, script: 0x52, flags: 0x0}, + 270: {lang: 0x1af, script: 0x52, flags: 0x0}, + 271: {lang: 0x46, script: 0x2, flags: 0x1}, + 273: {lang: 0x103, script: 0x52, flags: 0x0}, + 274: {lang: 0xaf, script: 0x52, flags: 0x0}, + 275: {lang: 0x238, script: 0x52, flags: 0x0}, + 276: {lang: 0x1bd, script: 0x52, flags: 0x0}, + 278: {lang: 0x1ef, script: 0x52, flags: 0x0}, + 280: {lang: 0x9d, script: 0x52, flags: 0x0}, + 282: {lang: 0x48, script: 0x2, flags: 0x1}, + 286: {lang: 0xaf, script: 0x52, flags: 0x0}, + 287: {lang: 0xaf, script: 0x52, flags: 0x0}, + 288: {lang: 0xaf, script: 0x52, flags: 0x0}, + 289: {lang: 0x4a, script: 0x3, flags: 0x1}, + 290: {lang: 0x4d, script: 0x2, flags: 0x1}, + 291: {lang: 0x265, script: 0x52, flags: 0x0}, + 292: {lang: 0x1ef, script: 0x52, flags: 0x0}, + 293: {lang: 0x264, script: 0x52, flags: 0x0}, + 294: {lang: 0x4f, script: 0x2, flags: 0x1}, + 295: {lang: 0x26c, script: 0x52, flags: 0x0}, + 297: {lang: 0x51, script: 0x4, flags: 0x1}, + 299: {lang: 0x27c, script: 0x52, flags: 0x0}, + 300: {lang: 0x55, script: 0x2, flags: 0x1}, + 301: {lang: 0x248, script: 0x52, flags: 0x0}, + 302: {lang: 0x57, script: 0x3, flags: 0x1}, + 303: {lang: 0x248, script: 0x52, flags: 0x0}, + 306: {lang: 0x2b9, script: 0x37, flags: 0x2}, + 307: {lang: 0x9d, script: 0x52, flags: 0x0}, + 308: {lang: 0x28d, script: 0x52, flags: 0x0}, + 309: {lang: 0x103, script: 0x52, flags: 0x0}, + 312: {lang: 0x9d, script: 0x52, flags: 0x0}, + 315: {lang: 0x292, script: 0x52, flags: 0x0}, + 316: {lang: 0x41, script: 0x52, flags: 0x0}, + 317: {lang: 0xaf, script: 0x52, flags: 0x0}, + 319: {lang: 0x22f, script: 0x52, flags: 0x0}, + 330: {lang: 0x5a, script: 0x2, flags: 0x1}, + 347: {lang: 0x15, script: 0x5, flags: 0x0}, + 348: {lang: 0x5c, script: 0x2, flags: 0x1}, + 353: {lang: 0x236, script: 0x52, flags: 0x0}, } // likelyRegionList holds lists info associated with likelyRegion. -// Size: 384 bytes, 96 elements -var likelyRegionList = [96]likelyLangScript{ - 0: {lang: 0x143, script: 0x5, flags: 0x0}, - 1: {lang: 0x46c, script: 0x52, flags: 0x0}, - 2: {lang: 0x427, script: 0x52, flags: 0x0}, - 3: {lang: 0x2f6, script: 0x1e, flags: 0x0}, - 4: {lang: 0x1d0, script: 0x8, flags: 0x0}, - 5: {lang: 0x26b, script: 0x52, flags: 0x0}, - 6: {lang: 0xb5, script: 0x52, flags: 0x0}, - 7: {lang: 0x428, script: 0x1e, flags: 0x0}, - 8: {lang: 0x129, script: 0xd6, flags: 0x0}, - 9: {lang: 0x348, script: 0x20, flags: 0x0}, - 10: {lang: 0x51f, script: 0x34, flags: 0x0}, - 11: {lang: 0x4a2, script: 0x5, flags: 0x0}, - 12: {lang: 0x515, script: 0x35, flags: 0x0}, - 13: {lang: 0x519, script: 0x52, flags: 0x0}, - 14: {lang: 0x291, script: 0xd5, flags: 0x0}, - 15: {lang: 0x131, script: 0x2d, flags: 0x0}, - 16: {lang: 0x480, script: 0x52, flags: 0x0}, - 17: {lang: 0x39, script: 0x5, flags: 0x0}, - 18: {lang: 0x159, script: 0x52, flags: 0x0}, - 19: {lang: 0x26, script: 0x27, flags: 0x0}, - 20: {lang: 0x134, script: 0x52, flags: 0x0}, - 21: {lang: 0x261, script: 0x5, flags: 0x2}, - 22: {lang: 0x508, script: 0x37, flags: 0x2}, - 23: {lang: 0x208, script: 0x29, flags: 0x0}, - 24: {lang: 0x5, script: 0x1e, flags: 0x0}, - 25: {lang: 0x26b, script: 0x52, flags: 0x0}, - 26: {lang: 0x131, script: 0x2d, flags: 0x0}, - 27: {lang: 0x2f6, script: 0x1e, flags: 0x0}, - 28: {lang: 0x1da, script: 0x52, flags: 0x0}, - 29: {lang: 0x316, script: 0x5, flags: 0x0}, - 30: {lang: 0x1b7, script: 0x20, flags: 0x0}, - 31: {lang: 0x4aa, script: 0x5, flags: 0x0}, - 32: {lang: 0x22e, script: 0x6b, flags: 0x0}, - 33: {lang: 0x143, script: 0x5, flags: 0x0}, - 34: {lang: 0x46c, script: 0x52, flags: 0x0}, - 35: {lang: 0x242, script: 0x46, flags: 0x0}, - 36: {lang: 0xe4, script: 0x5, flags: 0x0}, - 37: {lang: 0x21e, script: 0xd5, flags: 0x0}, - 38: {lang: 0x39, script: 0x5, flags: 0x0}, - 39: {lang: 0x159, script: 0x52, flags: 0x0}, - 40: {lang: 0x2af, script: 0x4f, flags: 0x0}, - 41: {lang: 0x21e, script: 0xd5, flags: 0x0}, - 42: {lang: 0x39, script: 0x5, flags: 0x0}, - 43: {lang: 0x159, script: 0x52, flags: 0x0}, - 44: {lang: 0x3d3, script: 0x52, flags: 0x0}, - 45: {lang: 0x4a4, script: 0x1e, flags: 0x0}, - 46: {lang: 0x2f6, script: 0x1e, flags: 0x0}, - 47: {lang: 0x427, script: 0x52, flags: 0x0}, - 48: {lang: 0x328, script: 0x6b, flags: 0x0}, - 49: {lang: 0x20b, script: 0x52, flags: 0x0}, - 50: {lang: 0x302, script: 0x1e, flags: 0x0}, - 51: {lang: 0x23a, script: 0x5, flags: 0x0}, - 52: {lang: 0x51f, script: 0x35, flags: 0x0}, - 53: {lang: 0x3b7, script: 0x52, flags: 0x0}, - 54: {lang: 0x39, script: 0x5, flags: 0x0}, - 55: {lang: 0x159, script: 0x52, flags: 0x0}, - 56: {lang: 0x2e4, script: 0x52, flags: 0x0}, - 57: {lang: 0x4aa, script: 0x5, flags: 0x0}, - 58: {lang: 0x87, script: 0x20, flags: 0x0}, - 59: {lang: 0x4aa, script: 0x5, flags: 0x0}, - 60: {lang: 0x4aa, script: 0x5, flags: 0x0}, - 61: {lang: 0xbc, script: 0x20, flags: 0x0}, - 62: {lang: 0x3aa, script: 0x52, flags: 0x0}, - 63: {lang: 0x70, script: 0x1e, flags: 0x0}, - 64: {lang: 0x3d3, script: 0x52, flags: 0x0}, - 65: {lang: 0x7d, script: 0x1e, flags: 0x0}, - 66: {lang: 0x3d9, script: 0x1e, flags: 0x0}, - 67: {lang: 0x25e, script: 0x52, flags: 0x0}, - 68: {lang: 0x43a, script: 0x52, flags: 0x0}, - 69: {lang: 0x508, script: 0x37, flags: 0x0}, - 70: {lang: 0x408, script: 0x52, flags: 0x0}, - 71: {lang: 0x4a4, script: 0x1e, flags: 0x0}, - 72: {lang: 0x39, script: 0x5, flags: 0x0}, - 73: {lang: 0x159, script: 0x52, flags: 0x0}, - 74: {lang: 0x159, script: 0x52, flags: 0x0}, - 75: {lang: 0x34, script: 0x5, flags: 0x0}, - 76: {lang: 0x461, script: 0xd5, flags: 0x0}, - 77: {lang: 0x2e3, script: 0x5, flags: 0x0}, - 78: {lang: 0x306, script: 0x6b, flags: 0x0}, - 79: {lang: 0x45d, script: 0x1e, flags: 0x0}, - 80: {lang: 0x143, script: 0x5, flags: 0x0}, - 81: {lang: 0x39, script: 0x5, flags: 0x0}, - 82: {lang: 0x159, script: 0x52, flags: 0x0}, - 83: {lang: 0x480, script: 0x52, flags: 0x0}, - 84: {lang: 0x57, script: 0x5, flags: 0x0}, - 85: {lang: 0x211, script: 0x1e, flags: 0x0}, - 86: {lang: 0x80, script: 0x2d, flags: 0x0}, - 87: {lang: 0x51f, script: 0x35, flags: 0x0}, - 88: {lang: 0x482, script: 0x52, flags: 0x0}, - 89: {lang: 0x4a4, script: 0x1e, flags: 0x0}, - 90: {lang: 0x508, script: 0x37, flags: 0x0}, - 91: {lang: 0x3aa, script: 0x52, flags: 0x0}, - 92: {lang: 0x427, script: 0x52, flags: 0x0}, - 93: {lang: 0x428, script: 0x1e, flags: 0x0}, - 94: {lang: 0x159, script: 0x52, flags: 0x0}, - 95: {lang: 0x43c, script: 0x5, flags: 0x0}, +// Size: 376 bytes, 94 elements +var likelyRegionList = [94]likelyLangScript{ + 0: {lang: 0xa4, script: 0x5, flags: 0x0}, + 1: {lang: 0x264, script: 0x52, flags: 0x0}, + 2: {lang: 0x23a, script: 0x52, flags: 0x0}, + 3: {lang: 0x18c, script: 0x1e, flags: 0x0}, + 4: {lang: 0xf3, script: 0x8, flags: 0x0}, + 5: {lang: 0x145, script: 0x52, flags: 0x0}, + 6: {lang: 0x54, script: 0x52, flags: 0x0}, + 7: {lang: 0x23b, script: 0x1e, flags: 0x0}, + 8: {lang: 0x93, script: 0xd6, flags: 0x0}, + 9: {lang: 0x1b4, script: 0x20, flags: 0x0}, + 10: {lang: 0x2c4, script: 0x34, flags: 0x0}, + 11: {lang: 0x284, script: 0x5, flags: 0x0}, + 12: {lang: 0x2bd, script: 0x35, flags: 0x0}, + 13: {lang: 0x2be, script: 0x52, flags: 0x0}, + 14: {lang: 0x157, script: 0xd5, flags: 0x0}, + 15: {lang: 0x9a, script: 0x2d, flags: 0x0}, + 16: {lang: 0x26f, script: 0x52, flags: 0x0}, + 17: {lang: 0x15, script: 0x5, flags: 0x0}, + 18: {lang: 0xaf, script: 0x52, flags: 0x0}, + 19: {lang: 0x11, script: 0x27, flags: 0x0}, + 20: {lang: 0x9b, script: 0x52, flags: 0x0}, + 21: {lang: 0x141, script: 0x5, flags: 0x2}, + 22: {lang: 0x2b9, script: 0x37, flags: 0x2}, + 23: {lang: 0x111, script: 0x29, flags: 0x0}, + 24: {lang: 0x2, script: 0x1e, flags: 0x0}, + 25: {lang: 0x145, script: 0x52, flags: 0x0}, + 26: {lang: 0x9a, script: 0x2d, flags: 0x0}, + 27: {lang: 0x18c, script: 0x1e, flags: 0x0}, + 28: {lang: 0xf8, script: 0x52, flags: 0x0}, + 29: {lang: 0x19a, script: 0x5, flags: 0x0}, + 30: {lang: 0xe1, script: 0x20, flags: 0x0}, + 31: {lang: 0x28c, script: 0x5, flags: 0x0}, + 32: {lang: 0x129, script: 0x6b, flags: 0x0}, + 33: {lang: 0xa4, script: 0x5, flags: 0x0}, + 34: {lang: 0x264, script: 0x52, flags: 0x0}, + 35: {lang: 0x133, script: 0x46, flags: 0x0}, + 36: {lang: 0x6d, script: 0x5, flags: 0x0}, + 37: {lang: 0x11c, script: 0xd5, flags: 0x0}, + 38: {lang: 0x15, script: 0x5, flags: 0x0}, + 39: {lang: 0xaf, script: 0x52, flags: 0x0}, + 40: {lang: 0x165, script: 0x4f, flags: 0x0}, + 41: {lang: 0x11c, script: 0xd5, flags: 0x0}, + 42: {lang: 0x15, script: 0x5, flags: 0x0}, + 43: {lang: 0xaf, script: 0x52, flags: 0x0}, + 44: {lang: 0x203, script: 0x52, flags: 0x0}, + 45: {lang: 0x286, script: 0x1e, flags: 0x0}, + 46: {lang: 0x18c, script: 0x1e, flags: 0x0}, + 47: {lang: 0x23a, script: 0x52, flags: 0x0}, + 48: {lang: 0x1a5, script: 0x6b, flags: 0x0}, + 49: {lang: 0x114, script: 0x52, flags: 0x0}, + 50: {lang: 0x18f, script: 0x1e, flags: 0x0}, + 51: {lang: 0x12f, script: 0x5, flags: 0x0}, + 52: {lang: 0x2c4, script: 0x35, flags: 0x0}, + 53: {lang: 0x1ef, script: 0x52, flags: 0x0}, + 54: {lang: 0x15, script: 0x5, flags: 0x0}, + 55: {lang: 0xaf, script: 0x52, flags: 0x0}, + 56: {lang: 0x182, script: 0x52, flags: 0x0}, + 57: {lang: 0x28c, script: 0x5, flags: 0x0}, + 58: {lang: 0x40, script: 0x20, flags: 0x0}, + 59: {lang: 0x28c, script: 0x5, flags: 0x0}, + 60: {lang: 0x28c, script: 0x5, flags: 0x0}, + 61: {lang: 0x58, script: 0x20, flags: 0x0}, + 62: {lang: 0x1e7, script: 0x52, flags: 0x0}, + 63: {lang: 0x2f, script: 0x1e, flags: 0x0}, + 64: {lang: 0x203, script: 0x52, flags: 0x0}, + 65: {lang: 0x38, script: 0x1e, flags: 0x0}, + 66: {lang: 0x207, script: 0x1e, flags: 0x0}, + 67: {lang: 0x13f, script: 0x52, flags: 0x0}, + 68: {lang: 0x247, script: 0x52, flags: 0x0}, + 69: {lang: 0x2b9, script: 0x37, flags: 0x0}, + 70: {lang: 0x22a, script: 0x52, flags: 0x0}, + 71: {lang: 0x286, script: 0x1e, flags: 0x0}, + 72: {lang: 0x15, script: 0x5, flags: 0x0}, + 73: {lang: 0xaf, script: 0x52, flags: 0x0}, + 74: {lang: 0x25d, script: 0xd5, flags: 0x0}, + 75: {lang: 0x181, script: 0x5, flags: 0x0}, + 76: {lang: 0x191, script: 0x6b, flags: 0x0}, + 77: {lang: 0x25c, script: 0x1e, flags: 0x0}, + 78: {lang: 0xa4, script: 0x5, flags: 0x0}, + 79: {lang: 0x15, script: 0x5, flags: 0x0}, + 80: {lang: 0xaf, script: 0x52, flags: 0x0}, + 81: {lang: 0x26f, script: 0x52, flags: 0x0}, + 82: {lang: 0x24, script: 0x5, flags: 0x0}, + 83: {lang: 0x118, script: 0x1e, flags: 0x0}, + 84: {lang: 0x3b, script: 0x2d, flags: 0x0}, + 85: {lang: 0x2c4, script: 0x35, flags: 0x0}, + 86: {lang: 0x271, script: 0x52, flags: 0x0}, + 87: {lang: 0x286, script: 0x1e, flags: 0x0}, + 88: {lang: 0x2b9, script: 0x37, flags: 0x0}, + 89: {lang: 0x1e7, script: 0x52, flags: 0x0}, + 90: {lang: 0x23a, script: 0x52, flags: 0x0}, + 91: {lang: 0x23b, script: 0x1e, flags: 0x0}, + 92: {lang: 0xaf, script: 0x52, flags: 0x0}, + 93: {lang: 0x249, script: 0x5, flags: 0x0}, } type likelyTag struct { @@ -3230,37 +2474,37 @@ type likelyTag struct { // Size: 192 bytes, 32 elements var likelyRegionGroup = [32]likelyTag{ - 1: {lang: 0x134, region: 0xd5, script: 0x52}, - 2: {lang: 0x134, region: 0x134, script: 0x52}, - 3: {lang: 0x3b7, region: 0x40, script: 0x52}, - 4: {lang: 0x134, region: 0x2e, script: 0x52}, - 5: {lang: 0x134, region: 0xd5, script: 0x52}, - 6: {lang: 0x139, region: 0xce, script: 0x52}, - 7: {lang: 0x43b, region: 0x12e, script: 0x52}, - 8: {lang: 0x39, region: 0x6a, script: 0x5}, - 9: {lang: 0x43b, region: 0x4a, script: 0x52}, - 10: {lang: 0x134, region: 0x160, script: 0x52}, - 11: {lang: 0x134, region: 0x134, script: 0x52}, - 12: {lang: 0x134, region: 0x134, script: 0x52}, - 13: {lang: 0x139, region: 0x58, script: 0x52}, - 14: {lang: 0x51f, region: 0x52, script: 0x34}, - 15: {lang: 0x1b7, region: 0x98, script: 0x20}, - 16: {lang: 0x1da, region: 0x94, script: 0x52}, - 17: {lang: 0x1f1, region: 0x9d, script: 0x52}, - 18: {lang: 0x134, region: 0x2e, script: 0x52}, - 19: {lang: 0x134, region: 0xe5, script: 0x52}, - 20: {lang: 0x134, region: 0x89, script: 0x52}, - 21: {lang: 0x411, region: 0x141, script: 0x52}, - 22: {lang: 0x51f, region: 0x52, script: 0x34}, - 23: {lang: 0x4b2, region: 0x136, script: 0x52}, - 24: {lang: 0x39, region: 0x107, script: 0x5}, - 25: {lang: 0x3d9, region: 0x105, script: 0x1e}, - 26: {lang: 0x3d9, region: 0x105, script: 0x1e}, - 27: {lang: 0x134, region: 0x7a, script: 0x52}, - 28: {lang: 0x109, region: 0x5f, script: 0x52}, - 29: {lang: 0x139, region: 0x1e, script: 0x52}, - 30: {lang: 0x134, region: 0x99, script: 0x52}, - 31: {lang: 0x134, region: 0x7a, script: 0x52}, + 1: {lang: 0x9b, region: 0xd4, script: 0x52}, + 2: {lang: 0x9b, region: 0x132, script: 0x52}, + 3: {lang: 0x1ef, region: 0x40, script: 0x52}, + 4: {lang: 0x9b, region: 0x2e, script: 0x52}, + 5: {lang: 0x9b, region: 0xd4, script: 0x52}, + 6: {lang: 0x9d, region: 0xcd, script: 0x52}, + 7: {lang: 0x248, region: 0x12d, script: 0x52}, + 8: {lang: 0x15, region: 0x6a, script: 0x5}, + 9: {lang: 0x248, region: 0x4a, script: 0x52}, + 10: {lang: 0x9b, region: 0x15e, script: 0x52}, + 11: {lang: 0x9b, region: 0x132, script: 0x52}, + 12: {lang: 0x9b, region: 0x132, script: 0x52}, + 13: {lang: 0x9d, region: 0x58, script: 0x52}, + 14: {lang: 0x2c4, region: 0x52, script: 0x34}, + 15: {lang: 0xe1, region: 0x97, script: 0x20}, + 16: {lang: 0xf8, region: 0x93, script: 0x52}, + 17: {lang: 0x103, region: 0x9c, script: 0x52}, + 18: {lang: 0x9b, region: 0x2e, script: 0x52}, + 19: {lang: 0x9b, region: 0xe4, script: 0x52}, + 20: {lang: 0x9b, region: 0x88, script: 0x52}, + 21: {lang: 0x22f, region: 0x13f, script: 0x52}, + 22: {lang: 0x2c4, region: 0x52, script: 0x34}, + 23: {lang: 0x28d, region: 0x134, script: 0x52}, + 24: {lang: 0x15, region: 0x106, script: 0x5}, + 25: {lang: 0x207, region: 0x104, script: 0x1e}, + 26: {lang: 0x207, region: 0x104, script: 0x1e}, + 27: {lang: 0x9b, region: 0x79, script: 0x52}, + 28: {lang: 0x85, region: 0x5f, script: 0x52}, + 29: {lang: 0x9d, region: 0x1e, script: 0x52}, + 30: {lang: 0x9b, region: 0x98, script: 0x52}, + 31: {lang: 0x9b, region: 0x79, script: 0x52}, } type mutualIntelligibility struct { @@ -3282,132 +2526,132 @@ type scriptIntelligibility struct { // whether the intelligibility goes one or both ways. // Size: 708 bytes, 118 elements var matchLang = [118]mutualIntelligibility{ - 0: {want: 0x366, have: 0x33e, conf: 0x2, oneway: false}, - 1: {want: 0x26b, have: 0xe7, conf: 0x2, oneway: false}, - 2: {want: 0x1ca, have: 0xb5, conf: 0x2, oneway: false}, - 3: {want: 0x3fd, have: 0xb5, conf: 0x2, oneway: false}, - 4: {want: 0x428, have: 0xb5, conf: 0x2, oneway: false}, - 5: {want: 0x3fd, have: 0x1ca, conf: 0x2, oneway: false}, - 6: {want: 0x428, have: 0x1ca, conf: 0x2, oneway: false}, - 7: {want: 0x3fd, have: 0x428, conf: 0x2, oneway: false}, - 8: {want: 0x430, have: 0x1, conf: 0x2, oneway: false}, - 9: {want: 0x19c, have: 0x109, conf: 0x2, oneway: true}, - 10: {want: 0x28c, have: 0x109, conf: 0x2, oneway: true}, - 11: {want: 0xfd, have: 0x366, conf: 0x2, oneway: false}, - 12: {want: 0xfd, have: 0x33e, conf: 0x2, oneway: false}, - 13: {want: 0xe7, have: 0x26b, conf: 0x2, oneway: false}, - 14: {want: 0x5, have: 0x3d9, conf: 0x2, oneway: true}, - 15: {want: 0xc, have: 0x134, conf: 0x2, oneway: true}, - 16: {want: 0x15, have: 0x35e, conf: 0x2, oneway: true}, - 17: {want: 0x20, have: 0x134, conf: 0x2, oneway: true}, - 18: {want: 0x55, have: 0x139, conf: 0x2, oneway: true}, - 19: {want: 0x57, have: 0x3d9, conf: 0x2, oneway: true}, - 20: {want: 0x70, have: 0x3d9, conf: 0x2, oneway: true}, - 21: {want: 0x74, have: 0x134, conf: 0x2, oneway: true}, - 22: {want: 0x81, have: 0x1b7, conf: 0x2, oneway: true}, - 23: {want: 0xa3, have: 0x134, conf: 0x2, oneway: true}, - 24: {want: 0xb0, have: 0x159, conf: 0x2, oneway: true}, - 25: {want: 0xdb, have: 0x14e, conf: 0x2, oneway: true}, - 26: {want: 0xe3, have: 0x134, conf: 0x2, oneway: true}, - 27: {want: 0xe7, have: 0x39, conf: 0x2, oneway: true}, - 28: {want: 0xed, have: 0x159, conf: 0x2, oneway: true}, - 29: {want: 0xf5, have: 0x159, conf: 0x2, oneway: true}, - 30: {want: 0xfc, have: 0x134, conf: 0x2, oneway: true}, - 31: {want: 0x12c, have: 0x134, conf: 0x2, oneway: true}, - 32: {want: 0x137, have: 0x134, conf: 0x2, oneway: true}, - 33: {want: 0x13b, have: 0x14c, conf: 0x2, oneway: true}, - 34: {want: 0x140, have: 0x139, conf: 0x2, oneway: true}, - 35: {want: 0x153, have: 0xfd, conf: 0x2, oneway: true}, - 36: {want: 0x168, have: 0x35e, conf: 0x2, oneway: true}, - 37: {want: 0x169, have: 0x134, conf: 0x2, oneway: true}, - 38: {want: 0x16a, have: 0x134, conf: 0x2, oneway: true}, - 39: {want: 0x178, have: 0x134, conf: 0x2, oneway: true}, - 40: {want: 0x18a, have: 0x139, conf: 0x2, oneway: true}, - 41: {want: 0x18e, have: 0x139, conf: 0x2, oneway: true}, - 42: {want: 0x19d, have: 0x1b7, conf: 0x2, oneway: true}, - 43: {want: 0x1ad, have: 0x134, conf: 0x2, oneway: true}, - 44: {want: 0x1b1, have: 0x134, conf: 0x2, oneway: true}, - 45: {want: 0x1cd, have: 0x159, conf: 0x2, oneway: true}, - 46: {want: 0x1d0, have: 0x3d9, conf: 0x2, oneway: true}, - 47: {want: 0x1d2, have: 0x134, conf: 0x2, oneway: true}, - 48: {want: 0x1df, have: 0x134, conf: 0x2, oneway: true}, - 49: {want: 0x1f0, have: 0x134, conf: 0x2, oneway: true}, - 50: {want: 0x206, have: 0x1da, conf: 0x2, oneway: true}, - 51: {want: 0x208, have: 0x134, conf: 0x2, oneway: true}, - 52: {want: 0x225, have: 0x159, conf: 0x2, oneway: true}, - 53: {want: 0x23a, have: 0x3d9, conf: 0x2, oneway: true}, - 54: {want: 0x242, have: 0x134, conf: 0x2, oneway: true}, - 55: {want: 0x249, have: 0x134, conf: 0x2, oneway: true}, - 56: {want: 0x25c, have: 0x134, conf: 0x2, oneway: true}, - 57: {want: 0x26b, have: 0x480, conf: 0x2, oneway: true}, - 58: {want: 0x281, have: 0x3d9, conf: 0x2, oneway: true}, - 59: {want: 0x285, have: 0x1f1, conf: 0x2, oneway: true}, - 60: {want: 0x29a, have: 0x134, conf: 0x2, oneway: true}, - 61: {want: 0x2ac, have: 0x159, conf: 0x2, oneway: true}, - 62: {want: 0x2af, have: 0x134, conf: 0x2, oneway: true}, - 63: {want: 0x2b5, have: 0x134, conf: 0x2, oneway: true}, - 64: {want: 0x2ba, have: 0x159, conf: 0x2, oneway: true}, - 65: {want: 0x2e4, have: 0x134, conf: 0x2, oneway: true}, - 66: {want: 0x2e8, have: 0x159, conf: 0x2, oneway: true}, - 67: {want: 0x2f1, have: 0x134, conf: 0x2, oneway: true}, - 68: {want: 0x2f6, have: 0x7d, conf: 0x2, oneway: true}, - 69: {want: 0x2fb, have: 0x134, conf: 0x2, oneway: true}, - 70: {want: 0x302, have: 0x3d9, conf: 0x2, oneway: true}, - 71: {want: 0x312, have: 0x1b7, conf: 0x2, oneway: true}, - 72: {want: 0x316, have: 0x1da, conf: 0x2, oneway: true}, - 73: {want: 0x317, have: 0x134, conf: 0x2, oneway: true}, - 74: {want: 0x328, have: 0x134, conf: 0x2, oneway: true}, - 75: {want: 0x348, have: 0x134, conf: 0x2, oneway: true}, - 76: {want: 0x361, have: 0x33e, conf: 0x2, oneway: false}, - 77: {want: 0x361, have: 0x366, conf: 0x2, oneway: true}, - 78: {want: 0x371, have: 0x134, conf: 0x2, oneway: true}, - 79: {want: 0x37e, have: 0x134, conf: 0x2, oneway: true}, - 80: {want: 0x380, have: 0x134, conf: 0x2, oneway: true}, - 81: {want: 0x382, have: 0x159, conf: 0x2, oneway: true}, - 82: {want: 0x387, have: 0x134, conf: 0x2, oneway: true}, - 83: {want: 0x38c, have: 0x134, conf: 0x2, oneway: true}, - 84: {want: 0x394, have: 0x134, conf: 0x2, oneway: true}, - 85: {want: 0x39c, have: 0x134, conf: 0x2, oneway: true}, - 86: {want: 0x3b5, have: 0x134, conf: 0x2, oneway: true}, - 87: {want: 0x3bb, have: 0x139, conf: 0x2, oneway: true}, - 88: {want: 0x3cb, have: 0x109, conf: 0x2, oneway: true}, - 89: {want: 0x3d0, have: 0x134, conf: 0x2, oneway: true}, - 90: {want: 0x3dc, have: 0x159, conf: 0x2, oneway: true}, - 91: {want: 0x3e0, have: 0x1b7, conf: 0x2, oneway: true}, - 92: {want: 0x3f0, have: 0x134, conf: 0x2, oneway: true}, - 93: {want: 0x402, have: 0x134, conf: 0x2, oneway: true}, - 94: {want: 0x419, have: 0x134, conf: 0x2, oneway: true}, - 95: {want: 0x41f, have: 0x134, conf: 0x2, oneway: true}, - 96: {want: 0x427, have: 0x134, conf: 0x2, oneway: true}, - 97: {want: 0x431, have: 0x134, conf: 0x2, oneway: true}, - 98: {want: 0x434, have: 0x1da, conf: 0x2, oneway: true}, - 99: {want: 0x43b, have: 0x134, conf: 0x2, oneway: true}, - 100: {want: 0x446, have: 0x134, conf: 0x2, oneway: true}, - 101: {want: 0x457, have: 0x134, conf: 0x2, oneway: true}, - 102: {want: 0x45d, have: 0x3d9, conf: 0x2, oneway: true}, - 103: {want: 0x465, have: 0x134, conf: 0x2, oneway: true}, - 104: {want: 0x46c, have: 0x3d9, conf: 0x2, oneway: true}, - 105: {want: 0x3878, have: 0x134, conf: 0x2, oneway: true}, - 106: {want: 0x476, have: 0x134, conf: 0x2, oneway: true}, - 107: {want: 0x478, have: 0x134, conf: 0x2, oneway: true}, - 108: {want: 0x48a, have: 0x3d9, conf: 0x2, oneway: true}, - 109: {want: 0x493, have: 0x134, conf: 0x2, oneway: true}, - 110: {want: 0x4a2, have: 0x51f, conf: 0x2, oneway: true}, - 111: {want: 0x4aa, have: 0x134, conf: 0x2, oneway: true}, - 112: {want: 0x4b2, have: 0x3d9, conf: 0x2, oneway: true}, - 113: {want: 0x4db, have: 0x159, conf: 0x2, oneway: true}, - 114: {want: 0x4e8, have: 0x134, conf: 0x2, oneway: true}, - 115: {want: 0x508, have: 0x134, conf: 0x2, oneway: true}, - 116: {want: 0x50e, have: 0x134, conf: 0x2, oneway: true}, - 117: {want: 0x524, have: 0x134, conf: 0x2, oneway: true}, + 0: {want: 0x1c1, have: 0x1af, conf: 0x2, oneway: false}, + 1: {want: 0x145, have: 0x6f, conf: 0x2, oneway: false}, + 2: {want: 0xee, have: 0x54, conf: 0x2, oneway: false}, + 3: {want: 0x225, have: 0x54, conf: 0x2, oneway: false}, + 4: {want: 0x23b, have: 0x54, conf: 0x2, oneway: false}, + 5: {want: 0x225, have: 0xee, conf: 0x2, oneway: false}, + 6: {want: 0x23b, have: 0xee, conf: 0x2, oneway: false}, + 7: {want: 0x225, have: 0x23b, conf: 0x2, oneway: false}, + 8: {want: 0x241, have: 0x1, conf: 0x2, oneway: false}, + 9: {want: 0xd2, have: 0x85, conf: 0x2, oneway: true}, + 10: {want: 0x154, have: 0x85, conf: 0x2, oneway: true}, + 11: {want: 0x80, have: 0x1c1, conf: 0x2, oneway: false}, + 12: {want: 0x80, have: 0x1af, conf: 0x2, oneway: false}, + 13: {want: 0x6f, have: 0x145, conf: 0x2, oneway: false}, + 14: {want: 0x2, have: 0x207, conf: 0x2, oneway: true}, + 15: {want: 0x5, have: 0x9b, conf: 0x2, oneway: true}, + 16: {want: 0xa, have: 0x1bd, conf: 0x2, oneway: true}, + 17: {want: 0xd, have: 0x9b, conf: 0x2, oneway: true}, + 18: {want: 0x23, have: 0x9d, conf: 0x2, oneway: true}, + 19: {want: 0x24, have: 0x207, conf: 0x2, oneway: true}, + 20: {want: 0x2f, have: 0x207, conf: 0x2, oneway: true}, + 21: {want: 0x31, have: 0x9b, conf: 0x2, oneway: true}, + 22: {want: 0x3c, have: 0xe1, conf: 0x2, oneway: true}, + 23: {want: 0x4b, have: 0x9b, conf: 0x2, oneway: true}, + 24: {want: 0x50, have: 0xaf, conf: 0x2, oneway: true}, + 25: {want: 0x65, have: 0xaa, conf: 0x2, oneway: true}, + 26: {want: 0x6c, have: 0x9b, conf: 0x2, oneway: true}, + 27: {want: 0x6f, have: 0x15, conf: 0x2, oneway: true}, + 28: {want: 0x70, have: 0xaf, conf: 0x2, oneway: true}, + 29: {want: 0x78, have: 0xaf, conf: 0x2, oneway: true}, + 30: {want: 0x7f, have: 0x9b, conf: 0x2, oneway: true}, + 31: {want: 0x95, have: 0x9b, conf: 0x2, oneway: true}, + 32: {want: 0x9c, have: 0x9b, conf: 0x2, oneway: true}, + 33: {want: 0x9f, have: 0xa8, conf: 0x2, oneway: true}, + 34: {want: 0xa1, have: 0x9d, conf: 0x2, oneway: true}, + 35: {want: 0xad, have: 0x80, conf: 0x2, oneway: true}, + 36: {want: 0xb9, have: 0x1bd, conf: 0x2, oneway: true}, + 37: {want: 0xba, have: 0x9b, conf: 0x2, oneway: true}, + 38: {want: 0xbb, have: 0x9b, conf: 0x2, oneway: true}, + 39: {want: 0xc2, have: 0x9b, conf: 0x2, oneway: true}, + 40: {want: 0xc8, have: 0x9d, conf: 0x2, oneway: true}, + 41: {want: 0xca, have: 0x9d, conf: 0x2, oneway: true}, + 42: {want: 0xd3, have: 0xe1, conf: 0x2, oneway: true}, + 43: {want: 0xdc, have: 0x9b, conf: 0x2, oneway: true}, + 44: {want: 0xde, have: 0x9b, conf: 0x2, oneway: true}, + 45: {want: 0xf1, have: 0xaf, conf: 0x2, oneway: true}, + 46: {want: 0xf3, have: 0x207, conf: 0x2, oneway: true}, + 47: {want: 0xf5, have: 0x9b, conf: 0x2, oneway: true}, + 48: {want: 0xfa, have: 0x9b, conf: 0x2, oneway: true}, + 49: {want: 0x102, have: 0x9b, conf: 0x2, oneway: true}, + 50: {want: 0x10f, have: 0xf8, conf: 0x2, oneway: true}, + 51: {want: 0x111, have: 0x9b, conf: 0x2, oneway: true}, + 52: {want: 0x122, have: 0xaf, conf: 0x2, oneway: true}, + 53: {want: 0x12f, have: 0x207, conf: 0x2, oneway: true}, + 54: {want: 0x133, have: 0x9b, conf: 0x2, oneway: true}, + 55: {want: 0x135, have: 0x9b, conf: 0x2, oneway: true}, + 56: {want: 0x13d, have: 0x9b, conf: 0x2, oneway: true}, + 57: {want: 0x145, have: 0x26f, conf: 0x2, oneway: true}, + 58: {want: 0x14d, have: 0x207, conf: 0x2, oneway: true}, + 59: {want: 0x14e, have: 0x103, conf: 0x2, oneway: true}, + 60: {want: 0x15a, have: 0x9b, conf: 0x2, oneway: true}, + 61: {want: 0x164, have: 0xaf, conf: 0x2, oneway: true}, + 62: {want: 0x165, have: 0x9b, conf: 0x2, oneway: true}, + 63: {want: 0x167, have: 0x9b, conf: 0x2, oneway: true}, + 64: {want: 0x16c, have: 0xaf, conf: 0x2, oneway: true}, + 65: {want: 0x182, have: 0x9b, conf: 0x2, oneway: true}, + 66: {want: 0x183, have: 0xaf, conf: 0x2, oneway: true}, + 67: {want: 0x189, have: 0x9b, conf: 0x2, oneway: true}, + 68: {want: 0x18c, have: 0x38, conf: 0x2, oneway: true}, + 69: {want: 0x18d, have: 0x9b, conf: 0x2, oneway: true}, + 70: {want: 0x18f, have: 0x207, conf: 0x2, oneway: true}, + 71: {want: 0x196, have: 0xe1, conf: 0x2, oneway: true}, + 72: {want: 0x19a, have: 0xf8, conf: 0x2, oneway: true}, + 73: {want: 0x19b, have: 0x9b, conf: 0x2, oneway: true}, + 74: {want: 0x1a5, have: 0x9b, conf: 0x2, oneway: true}, + 75: {want: 0x1b4, have: 0x9b, conf: 0x2, oneway: true}, + 76: {want: 0x1bf, have: 0x1af, conf: 0x2, oneway: false}, + 77: {want: 0x1bf, have: 0x1c1, conf: 0x2, oneway: true}, + 78: {want: 0x1c8, have: 0x9b, conf: 0x2, oneway: true}, + 79: {want: 0x1cc, have: 0x9b, conf: 0x2, oneway: true}, + 80: {want: 0x1ce, have: 0x9b, conf: 0x2, oneway: true}, + 81: {want: 0x1d0, have: 0xaf, conf: 0x2, oneway: true}, + 82: {want: 0x1d2, have: 0x9b, conf: 0x2, oneway: true}, + 83: {want: 0x1d3, have: 0x9b, conf: 0x2, oneway: true}, + 84: {want: 0x1d7, have: 0x9b, conf: 0x2, oneway: true}, + 85: {want: 0x1de, have: 0x9b, conf: 0x2, oneway: true}, + 86: {want: 0x1ee, have: 0x9b, conf: 0x2, oneway: true}, + 87: {want: 0x1f1, have: 0x9d, conf: 0x2, oneway: true}, + 88: {want: 0x1fc, have: 0x85, conf: 0x2, oneway: true}, + 89: {want: 0x201, have: 0x9b, conf: 0x2, oneway: true}, + 90: {want: 0x20a, have: 0xaf, conf: 0x2, oneway: true}, + 91: {want: 0x20d, have: 0xe1, conf: 0x2, oneway: true}, + 92: {want: 0x21a, have: 0x9b, conf: 0x2, oneway: true}, + 93: {want: 0x228, have: 0x9b, conf: 0x2, oneway: true}, + 94: {want: 0x236, have: 0x9b, conf: 0x2, oneway: true}, + 95: {want: 0x238, have: 0x9b, conf: 0x2, oneway: true}, + 96: {want: 0x23a, have: 0x9b, conf: 0x2, oneway: true}, + 97: {want: 0x242, have: 0x9b, conf: 0x2, oneway: true}, + 98: {want: 0x244, have: 0xf8, conf: 0x2, oneway: true}, + 99: {want: 0x248, have: 0x9b, conf: 0x2, oneway: true}, + 100: {want: 0x251, have: 0x9b, conf: 0x2, oneway: true}, + 101: {want: 0x258, have: 0x9b, conf: 0x2, oneway: true}, + 102: {want: 0x25c, have: 0x207, conf: 0x2, oneway: true}, + 103: {want: 0x261, have: 0x9b, conf: 0x2, oneway: true}, + 104: {want: 0x264, have: 0x207, conf: 0x2, oneway: true}, + 105: {want: 0x361a, have: 0x9b, conf: 0x2, oneway: true}, + 106: {want: 0x26b, have: 0x9b, conf: 0x2, oneway: true}, + 107: {want: 0x26c, have: 0x9b, conf: 0x2, oneway: true}, + 108: {want: 0x277, have: 0x207, conf: 0x2, oneway: true}, + 109: {want: 0x27b, have: 0x9b, conf: 0x2, oneway: true}, + 110: {want: 0x284, have: 0x2c4, conf: 0x2, oneway: true}, + 111: {want: 0x28c, have: 0x9b, conf: 0x2, oneway: true}, + 112: {want: 0x28d, have: 0x207, conf: 0x2, oneway: true}, + 113: {want: 0x2a4, have: 0xaf, conf: 0x2, oneway: true}, + 114: {want: 0x2a9, have: 0x9b, conf: 0x2, oneway: true}, + 115: {want: 0x2b9, have: 0x9b, conf: 0x2, oneway: true}, + 116: {want: 0x2ba, have: 0x9b, conf: 0x2, oneway: true}, + 117: {want: 0x2c6, have: 0x9b, conf: 0x2, oneway: true}, } // matchScript holds pairs of scriptIDs where readers of one script // can typically also read the other. Each is associated with a confidence. // Size: 24 bytes, 4 elements var matchScript = [4]scriptIntelligibility{ - 0: {lang: 0x428, want: 0x52, have: 0x1e, conf: 0x2}, - 1: {lang: 0x428, want: 0x1e, have: 0x52, conf: 0x2}, + 0: {lang: 0x23b, want: 0x52, have: 0x1e, conf: 0x2}, + 1: {lang: 0x23b, want: 0x1e, have: 0x52, conf: 0x2}, 2: {lang: 0x0, want: 0x34, have: 0x35, conf: 0x1}, 3: {lang: 0x0, want: 0x35, have: 0x34, conf: 0x1}, } @@ -3427,8 +2671,8 @@ var regionContainment = [32]uint32{ // regionInclusion maps region identifiers to sets of regions in regionInclusionBits, // where each set holds all groupings that are directly connected in a region // containment graph. -// Size: 357 bytes, 357 elements -var regionInclusion = [357]uint8{ +// Size: 355 bytes, 355 elements +var regionInclusion = [355]uint8{ // Entry 0 - 3F 0x00, 0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08, 0x09, 0x0a, 0x0b, 0x0c, 0x0d, 0x0e, @@ -3445,41 +2689,41 @@ var regionInclusion = [357]uint8{ 0x25, 0x2c, 0x25, 0x21, 0x36, 0x2d, 0x34, 0x29, 0x21, 0x2e, 0x37, 0x25, 0x25, 0x20, 0x38, 0x38, 0x27, 0x37, 0x38, 0x38, 0x2e, 0x39, 0x2e, 0x1f, - 0x20, 0x37, 0x3a, 0x27, 0x3b, 0x2b, 0x20, 0x29, - 0x34, 0x26, 0x37, 0x25, 0x23, 0x27, 0x2b, 0x2c, + 0x37, 0x3a, 0x27, 0x3b, 0x2b, 0x20, 0x29, 0x34, + 0x26, 0x37, 0x25, 0x23, 0x27, 0x2b, 0x2c, 0x22, // Entry 80 - BF - 0x22, 0x2f, 0x2c, 0x2c, 0x25, 0x26, 0x39, 0x21, - 0x33, 0x3b, 0x2c, 0x27, 0x35, 0x21, 0x33, 0x39, - 0x25, 0x2d, 0x20, 0x38, 0x30, 0x37, 0x23, 0x2b, - 0x24, 0x21, 0x23, 0x24, 0x2b, 0x39, 0x2b, 0x25, - 0x23, 0x35, 0x20, 0x2e, 0x3c, 0x30, 0x3b, 0x2e, - 0x25, 0x35, 0x35, 0x23, 0x25, 0x3c, 0x30, 0x23, - 0x25, 0x34, 0x24, 0x2c, 0x31, 0x37, 0x29, 0x37, - 0x38, 0x38, 0x34, 0x32, 0x22, 0x25, 0x2e, 0x3b, + 0x2f, 0x2c, 0x2c, 0x25, 0x26, 0x39, 0x21, 0x33, + 0x3b, 0x2c, 0x27, 0x35, 0x21, 0x33, 0x39, 0x25, + 0x2d, 0x20, 0x38, 0x30, 0x37, 0x23, 0x2b, 0x24, + 0x21, 0x23, 0x24, 0x2b, 0x39, 0x2b, 0x25, 0x23, + 0x35, 0x20, 0x2e, 0x3c, 0x30, 0x3b, 0x2e, 0x25, + 0x35, 0x35, 0x23, 0x25, 0x3c, 0x30, 0x23, 0x25, + 0x34, 0x24, 0x2c, 0x31, 0x37, 0x29, 0x37, 0x38, + 0x38, 0x34, 0x32, 0x22, 0x25, 0x2e, 0x3b, 0x20, // Entry C0 - FF - 0x20, 0x22, 0x2c, 0x30, 0x35, 0x35, 0x3b, 0x25, - 0x2c, 0x25, 0x39, 0x2e, 0x24, 0x2e, 0x33, 0x30, - 0x2e, 0x31, 0x3a, 0x2c, 0x2a, 0x2c, 0x20, 0x33, - 0x29, 0x2b, 0x24, 0x20, 0x3b, 0x23, 0x28, 0x2a, - 0x23, 0x33, 0x20, 0x27, 0x28, 0x3a, 0x30, 0x24, - 0x2d, 0x2f, 0x28, 0x25, 0x23, 0x39, 0x20, 0x3b, - 0x27, 0x20, 0x23, 0x20, 0x20, 0x1e, 0x20, 0x20, + 0x22, 0x2c, 0x30, 0x35, 0x35, 0x3b, 0x25, 0x2c, + 0x25, 0x39, 0x2e, 0x24, 0x2e, 0x33, 0x30, 0x2e, + 0x31, 0x3a, 0x2c, 0x2a, 0x2c, 0x20, 0x33, 0x29, + 0x2b, 0x24, 0x20, 0x3b, 0x23, 0x28, 0x2a, 0x23, + 0x33, 0x20, 0x27, 0x28, 0x3a, 0x30, 0x24, 0x2d, + 0x2f, 0x28, 0x25, 0x23, 0x39, 0x20, 0x3b, 0x27, + 0x20, 0x23, 0x20, 0x20, 0x1e, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, // Entry 100 - 13F - 0x20, 0x2e, 0x20, 0x2d, 0x22, 0x32, 0x2e, 0x23, - 0x3a, 0x2e, 0x38, 0x37, 0x30, 0x2c, 0x39, 0x2b, - 0x2d, 0x2c, 0x22, 0x2c, 0x2e, 0x27, 0x2e, 0x26, - 0x32, 0x33, 0x25, 0x23, 0x31, 0x21, 0x25, 0x26, - 0x21, 0x2c, 0x30, 0x3c, 0x28, 0x30, 0x3c, 0x38, - 0x28, 0x30, 0x23, 0x25, 0x28, 0x35, 0x2e, 0x32, - 0x2e, 0x20, 0x21, 0x20, 0x2f, 0x27, 0x3c, 0x22, - 0x25, 0x20, 0x27, 0x25, 0x25, 0x30, 0x3a, 0x28, + 0x2e, 0x20, 0x2d, 0x22, 0x32, 0x2e, 0x23, 0x3a, + 0x2e, 0x38, 0x37, 0x30, 0x2c, 0x39, 0x2b, 0x2d, + 0x2c, 0x22, 0x2c, 0x2e, 0x27, 0x2e, 0x26, 0x32, + 0x33, 0x25, 0x23, 0x31, 0x21, 0x25, 0x26, 0x21, + 0x2c, 0x30, 0x3c, 0x28, 0x30, 0x3c, 0x38, 0x28, + 0x30, 0x23, 0x25, 0x28, 0x35, 0x2e, 0x32, 0x2e, + 0x20, 0x21, 0x2f, 0x27, 0x3c, 0x22, 0x25, 0x20, + 0x27, 0x25, 0x25, 0x30, 0x3a, 0x28, 0x20, 0x28, // Entry 140 - 17F - 0x20, 0x28, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, - 0x20, 0x20, 0x20, 0x20, 0x22, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, - 0x20, 0x20, 0x20, 0x20, 0x23, 0x23, 0x2e, 0x22, - 0x31, 0x2e, 0x26, 0x2e, 0x20, + 0x20, 0x20, 0x22, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + 0x20, 0x20, 0x23, 0x23, 0x2e, 0x22, 0x31, 0x2e, + 0x26, 0x2e, 0x20, } // regionInclusionBits is an array of bit vectors where every vector represents @@ -3537,11 +2781,11 @@ type parentRel struct { // Size: 412 bytes, 5 elements var parents = [5]parentRel{ - 0: {lang: 0x134, script: 0x0, maxScript: 0x52, toRegion: 0x1, fromRegion: []uint16{0x1a, 0x24, 0x25, 0x2e, 0x33, 0x35, 0x3c, 0x41, 0x45, 0x47, 0x48, 0x49, 0x4f, 0x51, 0x5b, 0x5c, 0x60, 0x63, 0x6c, 0x72, 0x73, 0x74, 0x7a, 0x7b, 0x7e, 0x7f, 0x80, 0x82, 0x8b, 0x8c, 0x95, 0x96, 0x97, 0x98, 0x99, 0x9e, 0x9f, 0xa3, 0xa6, 0xa8, 0xac, 0xb0, 0xb3, 0xb4, 0xbe, 0xc5, 0xc9, 0xca, 0xcb, 0xcd, 0xcf, 0xd1, 0xd4, 0xd5, 0xdc, 0xde, 0xdf, 0xe5, 0xe6, 0xe7, 0xea, 0xef, 0x106, 0x108, 0x109, 0x10a, 0x10c, 0x10d, 0x111, 0x116, 0x11a, 0x11c, 0x11e, 0x124, 0x128, 0x12b, 0x12c, 0x12e, 0x130, 0x138, 0x13b, 0x13e, 0x141, 0x160, 0x161, 0x163}}, - 1: {lang: 0x134, script: 0x0, maxScript: 0x52, toRegion: 0x1a, fromRegion: []uint16{0x2d, 0x4d, 0x5f, 0x62, 0x71, 0xd8, 0x10b, 0x10e}}, - 2: {lang: 0x139, script: 0x0, maxScript: 0x52, toRegion: 0x1e, fromRegion: []uint16{0x2b, 0x3e, 0x40, 0x50, 0x53, 0x55, 0x58, 0x64, 0x68, 0x88, 0x8e, 0xce, 0xd7, 0xe1, 0xe3, 0xeb, 0xf0, 0x119, 0x134, 0x135, 0x13a}}, - 3: {lang: 0x3b7, script: 0x0, maxScript: 0x52, toRegion: 0xed, fromRegion: []uint16{0x29, 0x4d, 0x59, 0x85, 0x8a, 0xb6, 0xc5, 0xd0, 0x117, 0x125}}, - 4: {lang: 0x51f, script: 0x35, maxScript: 0x35, toRegion: 0x8c, fromRegion: []uint16{0xc5}}, + 0: {lang: 0x9b, script: 0x0, maxScript: 0x52, toRegion: 0x1, fromRegion: []uint16{0x1a, 0x24, 0x25, 0x2e, 0x33, 0x35, 0x3c, 0x41, 0x45, 0x47, 0x48, 0x49, 0x4f, 0x51, 0x5b, 0x5c, 0x60, 0x63, 0x6c, 0x71, 0x72, 0x73, 0x79, 0x7a, 0x7d, 0x7e, 0x7f, 0x81, 0x8a, 0x8b, 0x94, 0x95, 0x96, 0x97, 0x98, 0x9d, 0x9e, 0xa2, 0xa5, 0xa7, 0xab, 0xaf, 0xb2, 0xb3, 0xbd, 0xc4, 0xc8, 0xc9, 0xca, 0xcc, 0xce, 0xd0, 0xd3, 0xd4, 0xdb, 0xdd, 0xde, 0xe4, 0xe5, 0xe6, 0xe9, 0xee, 0x105, 0x107, 0x108, 0x109, 0x10b, 0x10c, 0x110, 0x115, 0x119, 0x11b, 0x11d, 0x123, 0x127, 0x12a, 0x12b, 0x12d, 0x12f, 0x136, 0x139, 0x13c, 0x13f, 0x15e, 0x15f, 0x161}}, + 1: {lang: 0x9b, script: 0x0, maxScript: 0x52, toRegion: 0x1a, fromRegion: []uint16{0x2d, 0x4d, 0x5f, 0x62, 0x70, 0xd7, 0x10a, 0x10d}}, + 2: {lang: 0x9d, script: 0x0, maxScript: 0x52, toRegion: 0x1e, fromRegion: []uint16{0x2b, 0x3e, 0x40, 0x50, 0x53, 0x55, 0x58, 0x64, 0x68, 0x87, 0x8d, 0xcd, 0xd6, 0xe0, 0xe2, 0xea, 0xef, 0x118, 0x132, 0x133, 0x138}}, + 3: {lang: 0x1ef, script: 0x0, maxScript: 0x52, toRegion: 0xec, fromRegion: []uint16{0x29, 0x4d, 0x59, 0x84, 0x89, 0xb5, 0xc4, 0xcf, 0x116, 0x124}}, + 4: {lang: 0x2c4, script: 0x35, maxScript: 0x35, toRegion: 0x8b, fromRegion: []uint16{0xc4}}, } -// Total table size 25825 bytes (25KiB); checksum: 4E97CC5E +// Total table size 20315 bytes (19KiB); checksum: C16EF251 diff --git a/vendor/golang.org/x/text/runes/cond.go b/vendor/golang.org/x/text/runes/cond.go index df7aa02db..ae7a92158 100644 --- a/vendor/golang.org/x/text/runes/cond.go +++ b/vendor/golang.org/x/text/runes/cond.go @@ -41,35 +41,20 @@ func If(s Set, tIn, tNotIn transform.Transformer) Transformer { if tNotIn == nil { tNotIn = transform.Nop } - sIn, ok := tIn.(transform.SpanningTransformer) - if !ok { - sIn = dummySpan{tIn} - } - sNotIn, ok := tNotIn.(transform.SpanningTransformer) - if !ok { - sNotIn = dummySpan{tNotIn} - } - a := &cond{ - tIn: sIn, - tNotIn: sNotIn, + tIn: tIn, + tNotIn: tNotIn, f: s.Contains, } a.Reset() return Transformer{a} } -type dummySpan struct{ transform.Transformer } - -func (d dummySpan) Span(src []byte, atEOF bool) (n int, err error) { - return 0, transform.ErrEndOfSpan -} - type cond struct { - tIn, tNotIn transform.SpanningTransformer + tIn, tNotIn transform.Transformer f func(rune) bool - check func(rune) bool // current check to perform - t transform.SpanningTransformer // current transformer to use + check func(rune) bool // current check to perform + t transform.Transformer // current transformer to use } // Reset implements transform.Transformer. @@ -99,51 +84,6 @@ func (t *cond) isNot(r rune) bool { return false } -// This implementation of Span doesn't help all too much, but it needs to be -// there to satisfy this package's Transformer interface. -// TODO: there are certainly room for improvements, though. For example, if -// t.t == transform.Nop (which will a common occurrence) it will save a bundle -// to special-case that loop. -func (t *cond) Span(src []byte, atEOF bool) (n int, err error) { - p := 0 - for n < len(src) && err == nil { - // Don't process too much at a time as the Spanner that will be - // called on this block may terminate early. - const maxChunk = 4096 - max := len(src) - if v := n + maxChunk; v < max { - max = v - } - atEnd := false - size := 0 - current := t.t - for ; p < max; p += size { - r := rune(src[p]) - if r < utf8.RuneSelf { - size = 1 - } else if r, size = utf8.DecodeRune(src[p:]); size == 1 { - if !atEOF && !utf8.FullRune(src[p:]) { - err = transform.ErrShortSrc - break - } - } - if !t.check(r) { - // The next rune will be the start of a new run. - atEnd = true - break - } - } - n2, err2 := current.Span(src[n:p], atEnd || (atEOF && p == len(src))) - n += n2 - if err2 != nil { - return n, err2 - } - // At this point either err != nil or t.check will pass for the rune at p. - p = n + size - } - return n, err -} - func (t *cond) Transform(dst, src []byte, atEOF bool) (nDst, nSrc int, err error) { p := 0 for nSrc < len(src) && err == nil { @@ -159,10 +99,9 @@ func (t *cond) Transform(dst, src []byte, atEOF bool) (nDst, nSrc int, err error size := 0 current := t.t for ; p < max; p += size { - r := rune(src[p]) - if r < utf8.RuneSelf { - size = 1 - } else if r, size = utf8.DecodeRune(src[p:]); size == 1 { + var r rune + r, size = utf8.DecodeRune(src[p:]) + if r == utf8.RuneError && size == 1 { if !atEOF && !utf8.FullRune(src[p:]) { err = transform.ErrShortSrc break diff --git a/vendor/golang.org/x/text/runes/runes.go b/vendor/golang.org/x/text/runes/runes.go index 71933696f..bb17f475b 100644 --- a/vendor/golang.org/x/text/runes/runes.go +++ b/vendor/golang.org/x/text/runes/runes.go @@ -46,19 +46,9 @@ func Predicate(f func(rune) bool) Set { // Transformer implements the transform.Transformer interface. type Transformer struct { - t transform.SpanningTransformer + transform.Transformer } -func (t Transformer) Transform(dst, src []byte, atEOF bool) (nDst, nSrc int, err error) { - return t.t.Transform(dst, src, atEOF) -} - -func (t Transformer) Span(b []byte, atEOF bool) (n int, err error) { - return t.t.Span(b, atEOF) -} - -func (t Transformer) Reset() { t.t.Reset() } - // Bytes returns a new byte slice with the result of converting b using t. It // calls Reset on t. It returns nil if any error was found. This can only happen // if an error-producing Transformer is passed to If. @@ -106,57 +96,39 @@ type remove func(r rune) bool func (remove) Reset() {} -// Span implements transform.Spanner. -func (t remove) Span(src []byte, atEOF bool) (n int, err error) { - for r, size := rune(0), 0; n < len(src); { - if r = rune(src[n]); r < utf8.RuneSelf { - size = 1 - } else if r, size = utf8.DecodeRune(src[n:]); size == 1 { - // Invalid rune. - if !atEOF && !utf8.FullRune(src[n:]) { - err = transform.ErrShortSrc - } else { - err = transform.ErrEndOfSpan - } - break - } - if t(r) { - err = transform.ErrEndOfSpan - break - } - n += size - } - return -} - // Transform implements transform.Transformer. func (t remove) Transform(dst, src []byte, atEOF bool) (nDst, nSrc int, err error) { for r, size := rune(0), 0; nSrc < len(src); { if r = rune(src[nSrc]); r < utf8.RuneSelf { size = 1 - } else if r, size = utf8.DecodeRune(src[nSrc:]); size == 1 { - // Invalid rune. - if !atEOF && !utf8.FullRune(src[nSrc:]) { - err = transform.ErrShortSrc - break - } - // We replace illegal bytes with RuneError. Not doing so might - // otherwise turn a sequence of invalid UTF-8 into valid UTF-8. - // The resulting byte sequence may subsequently contain runes - // for which t(r) is true that were passed unnoticed. - if !t(utf8.RuneError) { - if nDst+3 > len(dst) { - err = transform.ErrShortDst + } else { + r, size = utf8.DecodeRune(src[nSrc:]) + + if size == 1 { + // Invalid rune. + if !atEOF && !utf8.FullRune(src[nSrc:]) { + err = transform.ErrShortSrc break } - dst[nDst+0] = runeErrorString[0] - dst[nDst+1] = runeErrorString[1] - dst[nDst+2] = runeErrorString[2] - nDst += 3 + // We replace illegal bytes with RuneError. Not doing so might + // otherwise turn a sequence of invalid UTF-8 into valid UTF-8. + // The resulting byte sequence may subsequently contain runes + // for which t(r) is true that were passed unnoticed. + if !t(utf8.RuneError) { + if nDst+3 > len(dst) { + err = transform.ErrShortDst + break + } + dst[nDst+0] = runeErrorString[0] + dst[nDst+1] = runeErrorString[1] + dst[nDst+2] = runeErrorString[2] + nDst += 3 + } + nSrc++ + continue } - nSrc++ - continue } + if t(r) { nSrc += size continue @@ -185,28 +157,6 @@ type mapper func(rune) rune func (mapper) Reset() {} -// Span implements transform.Spanner. -func (t mapper) Span(src []byte, atEOF bool) (n int, err error) { - for r, size := rune(0), 0; n < len(src); n += size { - if r = rune(src[n]); r < utf8.RuneSelf { - size = 1 - } else if r, size = utf8.DecodeRune(src[n:]); size == 1 { - // Invalid rune. - if !atEOF && !utf8.FullRune(src[n:]) { - err = transform.ErrShortSrc - } else { - err = transform.ErrEndOfSpan - } - break - } - if t(r) != r { - err = transform.ErrEndOfSpan - break - } - } - return n, err -} - // Transform implements transform.Transformer. func (t mapper) Transform(dst, src []byte, atEOF bool) (nDst, nSrc int, err error) { var replacement rune @@ -280,51 +230,24 @@ func ReplaceIllFormed() Transformer { type replaceIllFormed struct{ transform.NopResetter } -func (t replaceIllFormed) Span(src []byte, atEOF bool) (n int, err error) { - for n < len(src) { - // ASCII fast path. - if src[n] < utf8.RuneSelf { - n++ - continue - } - - r, size := utf8.DecodeRune(src[n:]) - - // Look for a valid non-ASCII rune. - if r != utf8.RuneError || size != 1 { - n += size - continue - } - - // Look for short source data. - if !atEOF && !utf8.FullRune(src[n:]) { - err = transform.ErrShortSrc - break - } - - // We have an invalid rune. - err = transform.ErrEndOfSpan - break - } - return n, err -} - func (t replaceIllFormed) Transform(dst, src []byte, atEOF bool) (nDst, nSrc int, err error) { for nSrc < len(src) { - // ASCII fast path. - if r := src[nSrc]; r < utf8.RuneSelf { + r, size := utf8.DecodeRune(src[nSrc:]) + + // Look for an ASCII rune. + if r < utf8.RuneSelf { if nDst == len(dst) { err = transform.ErrShortDst break } - dst[nDst] = r + dst[nDst] = byte(r) nDst++ nSrc++ continue } // Look for a valid non-ASCII rune. - if _, size := utf8.DecodeRune(src[nSrc:]); size != 1 { + if r != utf8.RuneError || size != 1 { if size != copy(dst[nDst:], src[nSrc:nSrc+size]) { err = transform.ErrShortDst break diff --git a/vendor/golang.org/x/text/secure/bidirule/bidirule.go b/vendor/golang.org/x/text/secure/bidirule/bidirule.go index a7161bdd9..277257fd7 100644 --- a/vendor/golang.org/x/text/secure/bidirule/bidirule.go +++ b/vendor/golang.org/x/text/secure/bidirule/bidirule.go @@ -123,64 +123,34 @@ var transitions = [...][2]ruleTransition{ // vice versa. const exclusiveRTL = uint16(1<>2) - } - span := append(b.buf[x][:0], b.src[:n]...) - b.src, _, err = transform.Append(t, span, b.src[n:]) + b.src, _, err = transform.Append(t, b.buf[x][:0], b.src) b.buf[x] = b.src b.next++ return err } -// Pre-allocate transformers when possible. In some cases this avoids allocation. -var ( - foldWidthT transform.SpanningTransformer = width.Fold - lowerCaseT transform.SpanningTransformer = cases.Lower(language.Und, cases.HandleFinalSigma(false)) -) - -// TODO: make this a method on profile. - -func (b *buffers) enforce(p *Profile, src []byte, comparing bool) (str []byte, err error) { +func (b *buffers) enforce(p *Profile, src []byte) (str []byte, err error) { b.src = src - ascii := true - for _, c := range src { - if c >= utf8.RuneSelf { - ascii = false - break - } - } - // ASCII fast path. - if ascii { - for _, f := range p.options.additional { - if err = b.apply(f()); err != nil { - return nil, err - } - } - switch { - case p.options.asciiLower || (comparing && p.options.ignorecase): - for i, c := range b.src { - if 'A' <= c && c <= 'Z' { - b.src[i] = c ^ 1<<5 - } - } - case p.options.cases != nil: - b.apply(p.options.cases) - } - c := checker{p: p} - if _, err := c.span(b.src, true); err != nil { - return nil, err - } - if p.disallow != nil { - for _, c := range b.src { - if p.disallow.Contains(rune(c)) { - return nil, errDisallowedRune - } - } - } - if p.options.disallowEmpty && len(b.src) == 0 { - return nil, errEmptyString - } - return b.src, nil - } - // These transforms are applied in the order defined in // https://tools.ietf.org/html/rfc7564#section-7 // TODO: allow different width transforms options. - if p.options.foldWidth || (p.options.ignorecase && comparing) { - b.apply(foldWidthT) + if p.options.foldWidth { + // TODO: use Span, once available. + if err = b.apply(width.Fold); err != nil { + return nil, err + } } for _, f := range p.options.additional { if err = b.apply(f()); err != nil { @@ -174,14 +123,24 @@ func (b *buffers) enforce(p *Profile, src []byte, comparing bool) (str []byte, e } } if p.options.cases != nil { - b.apply(p.options.cases) + if err = b.apply(p.options.cases); err != nil { + return nil, err + } } - if comparing && p.options.ignorecase { - b.apply(lowerCaseT) + if n := p.norm.QuickSpan(b.src); n < len(b.src) { + x := b.next & 1 + n = copy(b.buf[x], b.src[:n]) + b.src, _, err = transform.Append(p.norm, b.buf[x][:n], b.src[n:]) + b.buf[x] = b.src + b.next++ + if err != nil { + return nil, err + } } - b.apply(p.norm) - if p.options.bidiRule && !bidirule.Valid(b.src) { - return nil, bidirule.ErrInvalid + if p.options.bidiRule { + if err := b.apply(bidirule.New()); err != nil { + return nil, err + } } c := checker{p: p} if _, err := c.span(b.src, true); err != nil { @@ -196,6 +155,9 @@ func (b *buffers) enforce(p *Profile, src []byte, comparing bool) (str []byte, e i += size } } + + // TODO: Add the disallow empty rule with a dummy transformer? + if p.options.disallowEmpty && len(b.src) == 0 { return nil, errEmptyString } @@ -206,16 +168,19 @@ func (b *buffers) enforce(p *Profile, src []byte, comparing bool) (str []byte, e // It returns an error if the input string is invalid. func (p *Profile) Append(dst, src []byte) ([]byte, error) { var buf buffers - b, err := buf.enforce(p, src, false) + buf.init(8 + len(src) + len(src)>>2) + b, err := buf.enforce(p, src) if err != nil { return nil, err } return append(dst, b...), nil } -func processBytes(p *Profile, b []byte, key bool) ([]byte, error) { +// Bytes returns a new byte slice with the result of applying the profile to b. +func (p *Profile) Bytes(b []byte) ([]byte, error) { var buf buffers - b, err := buf.enforce(p, b, key) + buf.init(8 + len(b) + len(b)>>2) + b, err := buf.enforce(p, b) if err != nil { return nil, err } @@ -227,62 +192,39 @@ func processBytes(p *Profile, b []byte, key bool) ([]byte, error) { return b, nil } -// Bytes returns a new byte slice with the result of applying the profile to b. -func (p *Profile) Bytes(b []byte) ([]byte, error) { - return processBytes(p, b, false) -} - -// AppendCompareKey appends the result of applying p to src (including any -// optional rules to make strings comparable or useful in a map key such as -// applying lowercasing) writing the result to dst. It returns an error if the -// input string is invalid. -func (p *Profile) AppendCompareKey(dst, src []byte) ([]byte, error) { +// String returns a string with the result of applying the profile to s. +func (p *Profile) String(s string) (string, error) { var buf buffers - b, err := buf.enforce(p, src, true) - if err != nil { - return nil, err - } - return append(dst, b...), nil -} - -func processString(p *Profile, s string, key bool) (string, error) { - var buf buffers - b, err := buf.enforce(p, []byte(s), key) + buf.init(8 + len(s) + len(s)>>2) + b, err := buf.enforce(p, []byte(s)) if err != nil { return "", err } return string(b), nil } -// String returns a string with the result of applying the profile to s. -func (p *Profile) String(s string) (string, error) { - return processString(p, s, false) -} - -// CompareKey returns a string that can be used for comparison, hashing, or -// collation. -func (p *Profile) CompareKey(s string) (string, error) { - return processString(p, s, true) -} - // Compare enforces both strings, and then compares them for bit-string identity // (byte-for-byte equality). If either string cannot be enforced, the comparison // is false. func (p *Profile) Compare(a, b string) bool { - var buf buffers - - akey, err := buf.enforce(p, []byte(a), true) + a, err := p.String(a) + if err != nil { + return false + } + b, err = p.String(b) if err != nil { return false } - buf = buffers{} - bkey, err := buf.enforce(p, []byte(b), true) - if err != nil { - return false + // TODO: This is out of order. Need to extract the transformation logic and + // put this in where the normal case folding would go (but only for + // comparison). + if p.options.ignorecase { + a = width.Fold.String(a) + b = width.Fold.String(a) } - return bytes.Compare(akey, bkey) == 0 + return a == b } // Allowed returns a runes.Set containing every rune that is a member of the diff --git a/vendor/golang.org/x/text/secure/precis/profiles.go b/vendor/golang.org/x/text/secure/precis/profiles.go index 8b46d504c..ad50ae857 100644 --- a/vendor/golang.org/x/text/secure/precis/profiles.go +++ b/vendor/golang.org/x/text/secure/precis/profiles.go @@ -19,51 +19,38 @@ var ( OpaqueString *Profile = opaquestring // Implements the OpaqueString profile defined in RFC 7613 for passwords and other secure labels. ) +// TODO: mvl: "Ultimately, I would manually define the structs for the internal +// profiles. This avoid pulling in unneeded tables when they are not used." var ( - nickname = &Profile{ - options: getOpts( - AdditionalMapping(func() transform.Transformer { - return &nickAdditionalMapping{} - }), - IgnoreCase, - Norm(norm.NFKC), - DisallowEmpty, - ), - class: freeform, - } - usernameCaseMap = &Profile{ - options: getOpts( - FoldWidth, - LowerCase(), - Norm(norm.NFC), - BidiRule, - ), - class: identifier, - } - usernameNoCaseMap = &Profile{ - options: getOpts( - FoldWidth, - Norm(norm.NFC), - BidiRule, - ), - class: identifier, - } - opaquestring = &Profile{ - options: getOpts( - AdditionalMapping(func() transform.Transformer { - return mapSpaces - }), - Norm(norm.NFC), - DisallowEmpty, - ), - class: freeform, - } + nickname = NewFreeform( + AdditionalMapping(func() transform.Transformer { + return &nickAdditionalMapping{} + }), + IgnoreCase, + Norm(norm.NFKC), + DisallowEmpty, + ) + usernameCaseMap = NewIdentifier( + FoldWidth, + FoldCase(), + Norm(norm.NFC), + BidiRule, + ) + usernameNoCaseMap = NewIdentifier( + FoldWidth, + Norm(norm.NFC), + BidiRule, + ) + opaquestring = NewFreeform( + AdditionalMapping(func() transform.Transformer { + return runes.Map(func(r rune) rune { + if unicode.Is(unicode.Zs, r) { + return ' ' + } + return r + }) + }), + Norm(norm.NFC), + DisallowEmpty, + ) ) - -// mapSpaces is a shared value of a runes.Map transformer. -var mapSpaces transform.Transformer = runes.Map(func(r rune) rune { - if unicode.Is(unicode.Zs, r) { - return ' ' - } - return r -}) diff --git a/vendor/golang.org/x/text/transform/transform.go b/vendor/golang.org/x/text/transform/transform.go index fe47b9b35..0c2f730ea 100644 --- a/vendor/golang.org/x/text/transform/transform.go +++ b/vendor/golang.org/x/text/transform/transform.go @@ -24,10 +24,6 @@ var ( // complete the transformation. ErrShortSrc = errors.New("transform: short source buffer") - // ErrEndOfSpan means that the input and output (the transformed input) - // are not identical. - ErrEndOfSpan = errors.New("transform: input and output are not identical") - // errInconsistentByteCount means that Transform returned success (nil // error) but also returned nSrc inconsistent with the src argument. errInconsistentByteCount = errors.New("transform: inconsistent byte count returned") @@ -64,41 +60,6 @@ type Transformer interface { Reset() } -// SpanningTransformer extends the Transformer interface with a Span method -// that determines how much of the input already conforms to the Transformer. -type SpanningTransformer interface { - Transformer - - // Span returns a position in src such that transforming src[:n] results in - // identical output src[:n] for these bytes. It does not necessarily return - // the largest such n. The atEOF argument tells whether src represents the - // last bytes of the input. - // - // Callers should always account for the n bytes consumed before - // considering the error err. - // - // A nil error means that all input bytes are known to be identical to the - // output produced by the Transformer. A nil error can be be returned - // regardless of whether atEOF is true. If err is nil, then then n must - // equal len(src); the converse is not necessarily true. - // - // ErrEndOfSpan means that the Transformer output may differ from the - // input after n bytes. Note that n may be len(src), meaning that the output - // would contain additional bytes after otherwise identical output. - // ErrShortSrc means that src had insufficient data to determine whether the - // remaining bytes would change. Other than the error conditions listed - // here, implementations are free to report other errors that arise. - // - // Calling Span can modify the Transformer state as a side effect. In - // effect, it does the transformation just as calling Transform would, only - // without copying to a destination buffer and only up to a point it can - // determine the input and output bytes are the same. This is obviously more - // limited than calling Transform, but can be more efficient in terms of - // copying and allocating buffers. Calls to Span and Transform may be - // interleaved. - Span(src []byte, atEOF bool) (n int, err error) -} - // NopResetter can be embedded by implementations of Transformer to add a nop // Reset method. type NopResetter struct{} @@ -317,10 +278,6 @@ func (nop) Transform(dst, src []byte, atEOF bool) (nDst, nSrc int, err error) { return n, n, err } -func (nop) Span(src []byte, atEOF bool) (n int, err error) { - return len(src), nil -} - type discard struct{ NopResetter } func (discard) Transform(dst, src []byte, atEOF bool) (nDst, nSrc int, err error) { @@ -332,8 +289,8 @@ var ( // by consuming all bytes and writing nothing. Discard Transformer = discard{} - // Nop is a SpanningTransformer that copies src to dst. - Nop SpanningTransformer = nop{} + // Nop is a Transformer that copies src to dst. + Nop Transformer = nop{} ) // chain is a sequence of links. A chain with N Transformers has N+1 links and @@ -401,8 +358,6 @@ func (c *chain) Reset() { } } -// TODO: make chain use Span (is going to be fun to implement!) - // Transform applies the transformers of c in sequence. func (c *chain) Transform(dst, src []byte, atEOF bool) (nDst, nSrc int, err error) { // Set up src and dst in the chain. @@ -493,7 +448,8 @@ func (c *chain) Transform(dst, src []byte, atEOF bool) (nDst, nSrc int, err erro return dstL.n, srcL.p, err } -// Deprecated: use runes.Remove instead. +// RemoveFunc returns a Transformer that removes from the input all runes r for +// which f(r) is true. Illegal bytes in the input are replaced by RuneError. func RemoveFunc(f func(r rune) bool) Transformer { return removeF(f) } diff --git a/vendor/golang.org/x/text/unicode/bidi/bracket.go b/vendor/golang.org/x/text/unicode/bidi/bracket.go index 601e25920..e88119d1b 100644 --- a/vendor/golang.org/x/text/unicode/bidi/bracket.go +++ b/vendor/golang.org/x/text/unicode/bidi/bracket.go @@ -84,7 +84,7 @@ func resolvePairedBrackets(s *isolatingRunSequence) { dirEmbed = R } p.locateBrackets(s.p.pairTypes, s.p.pairValues) - p.resolveBrackets(dirEmbed, s.p.initialTypes) + p.resolveBrackets(dirEmbed) } type bracketPairer struct { @@ -125,8 +125,6 @@ func (p *bracketPairer) matchOpener(pairValues []rune, opener, closer int) bool return pairValues[p.indexes[opener]] == pairValues[p.indexes[closer]] } -const maxPairingDepth = 63 - // locateBrackets locates matching bracket pairs according to BD16. // // This implementation uses a linked list instead of a stack, because, while @@ -138,17 +136,11 @@ func (p *bracketPairer) locateBrackets(pairTypes []bracketType, pairValues []run for i, index := range p.indexes { // look at the bracket type for each character - if pairTypes[index] == bpNone || p.codesIsolatedRun[i] != ON { - // continue scanning - continue - } switch pairTypes[index] { + case bpNone: + // continue scanning + case bpOpen: - // check if maximum pairing depth reached - if p.openers.Len() == maxPairingDepth { - p.openers.Init() - return - } // remember opener location, most recent first p.openers.PushFront(i) @@ -278,7 +270,7 @@ func (p *bracketPairer) classBeforePair(loc bracketPair) Class { } // assignBracketType implements rule N0 for a single bracket pair. -func (p *bracketPairer) assignBracketType(loc bracketPair, dirEmbed Class, initialTypes []Class) { +func (p *bracketPairer) assignBracketType(loc bracketPair, dirEmbed Class) { // rule "N0, a", inspect contents of pair dirPair := p.classifyPairContent(loc, dirEmbed) @@ -303,33 +295,13 @@ func (p *bracketPairer) assignBracketType(loc bracketPair, dirEmbed Class, initi // direction // set the bracket types to the type found - p.setBracketsToType(loc, dirPair, initialTypes) -} - -func (p *bracketPairer) setBracketsToType(loc bracketPair, dirPair Class, initialTypes []Class) { p.codesIsolatedRun[loc.opener] = dirPair p.codesIsolatedRun[loc.closer] = dirPair - - for i := loc.opener + 1; i < loc.closer; i++ { - index := p.indexes[i] - if initialTypes[index] != NSM { - break - } - p.codesIsolatedRun[i] = dirPair - } - - for i := loc.closer + 1; i < len(p.indexes); i++ { - index := p.indexes[i] - if initialTypes[index] != NSM { - break - } - p.codesIsolatedRun[i] = dirPair - } } // resolveBrackets implements rule N0 for a list of pairs. -func (p *bracketPairer) resolveBrackets(dirEmbed Class, initialTypes []Class) { +func (p *bracketPairer) resolveBrackets(dirEmbed Class) { for _, loc := range p.pairPositions { - p.assignBracketType(loc, dirEmbed, initialTypes) + p.assignBracketType(loc, dirEmbed) } } diff --git a/vendor/golang.org/x/text/unicode/bidi/core.go b/vendor/golang.org/x/text/unicode/bidi/core.go index ec52f1448..381f30ad0 100644 --- a/vendor/golang.org/x/text/unicode/bidi/core.go +++ b/vendor/golang.org/x/text/unicode/bidi/core.go @@ -309,9 +309,6 @@ func (p *paragraph) determineExplicitEmbeddingLevels() { } if isIsolate { p.resultLevels[i] = stack.lastEmbeddingLevel() - if stack.lastDirectionalOverrideStatus() != ON { - p.resultTypes[i] = stack.lastDirectionalOverrideStatus() - } } var newLevel level diff --git a/vendor/golang.org/x/text/unicode/norm/normalize.go b/vendor/golang.org/x/text/unicode/norm/normalize.go index bba8ce9f9..eb5596f86 100644 --- a/vendor/golang.org/x/text/unicode/norm/normalize.go +++ b/vendor/golang.org/x/text/unicode/norm/normalize.go @@ -8,11 +8,7 @@ // Package norm contains types and functions for normalizing Unicode strings. package norm // import "golang.org/x/text/unicode/norm" -import ( - "unicode/utf8" - - "golang.org/x/text/transform" -) +import "unicode/utf8" // A Form denotes a canonical representation of Unicode code points. // The Unicode-defined normalization and equivalence forms are: @@ -267,34 +263,6 @@ func (f Form) QuickSpan(b []byte) int { return n } -// Span implements transform.SpanningTransformer. It returns a boundary n such -// that b[0:n] == f(b[0:n]). It is not guaranteed to return the largest such n. -func (f Form) Span(b []byte, atEOF bool) (n int, err error) { - n, ok := formTable[f].quickSpan(inputBytes(b), 0, len(b), atEOF) - if n < len(b) { - if !ok { - err = transform.ErrEndOfSpan - } else { - err = transform.ErrShortSrc - } - } - return n, err -} - -// SpanString returns a boundary n such that s[0:n] == f(s[0:n]). -// It is not guaranteed to return the largest such n. -func (f Form) SpanString(s string, atEOF bool) (n int, err error) { - n, ok := formTable[f].quickSpan(inputString(s), 0, len(s), atEOF) - if n < len(s) { - if !ok { - err = transform.ErrEndOfSpan - } else { - err = transform.ErrShortSrc - } - } - return n, err -} - // quickSpan returns a boundary n such that src[0:n] == f(src[0:n]) and // whether any non-normalized parts were found. If atEOF is false, n will // not point past the last segment if this segment might be become @@ -353,7 +321,7 @@ func (f *formInfo) quickSpan(src input, i, end int, atEOF bool) (n int, ok bool) return lastSegStart, false } -// QuickSpanString returns a boundary n such that s[0:n] == f(s[0:n]). +// QuickSpanString returns a boundary n such that b[0:n] == f(s[0:n]). // It is not guaranteed to return the largest such n. func (f Form) QuickSpanString(s string) int { n, _ := formTable[f].quickSpan(inputString(s), 0, len(s), true) diff --git a/vendor/golang.org/x/text/unicode/norm/readwriter.go b/vendor/golang.org/x/text/unicode/norm/readwriter.go index d926ee903..4fa0e04b2 100644 --- a/vendor/golang.org/x/text/unicode/norm/readwriter.go +++ b/vendor/golang.org/x/text/unicode/norm/readwriter.go @@ -112,6 +112,7 @@ func (r *normReader) Read(p []byte) (int, error) { } } } + panic("should not reach here") } // Reader returns a new reader that implements Read diff --git a/vendor/golang.org/x/text/width/transform.go b/vendor/golang.org/x/text/width/transform.go index 0049f700a..2ed25096a 100644 --- a/vendor/golang.org/x/text/width/transform.go +++ b/vendor/golang.org/x/text/width/transform.go @@ -14,32 +14,6 @@ type foldTransform struct { transform.NopResetter } -func (foldTransform) Span(src []byte, atEOF bool) (n int, err error) { - for n < len(src) { - if src[n] < utf8.RuneSelf { - // ASCII fast path. - for n++; n < len(src) && src[n] < utf8.RuneSelf; n++ { - } - continue - } - v, size := trie.lookup(src[n:]) - if size == 0 { // incomplete UTF-8 encoding - if !atEOF { - err = transform.ErrShortSrc - } else { - n = len(src) - } - break - } - if elem(v)&tagNeedsFold != 0 { - err = transform.ErrEndOfSpan - break - } - n += size - } - return n, err -} - func (foldTransform) Transform(dst, src []byte, atEOF bool) (nDst, nSrc int, err error) { for nSrc < len(src) { if src[nSrc] < utf8.RuneSelf { @@ -96,33 +70,6 @@ type narrowTransform struct { transform.NopResetter } -func (narrowTransform) Span(src []byte, atEOF bool) (n int, err error) { - for n < len(src) { - if src[n] < utf8.RuneSelf { - // ASCII fast path. - for n++; n < len(src) && src[n] < utf8.RuneSelf; n++ { - } - continue - } - v, size := trie.lookup(src[n:]) - if size == 0 { // incomplete UTF-8 encoding - if !atEOF { - err = transform.ErrShortSrc - } else { - n = len(src) - } - break - } - if k := elem(v).kind(); byte(v) == 0 || k != EastAsianFullwidth && k != EastAsianWide && k != EastAsianAmbiguous { - } else { - err = transform.ErrEndOfSpan - break - } - n += size - } - return n, err -} - func (narrowTransform) Transform(dst, src []byte, atEOF bool) (nDst, nSrc int, err error) { for nSrc < len(src) { if src[nSrc] < utf8.RuneSelf { @@ -179,30 +126,6 @@ type wideTransform struct { transform.NopResetter } -func (wideTransform) Span(src []byte, atEOF bool) (n int, err error) { - for n < len(src) { - // TODO: Consider ASCII fast path. Special-casing ASCII handling can - // reduce the ns/op of BenchmarkWideASCII by about 30%. This is probably - // not enough to warrant the extra code and complexity. - v, size := trie.lookup(src[n:]) - if size == 0 { // incomplete UTF-8 encoding - if !atEOF { - err = transform.ErrShortSrc - } else { - n = len(src) - } - break - } - if k := elem(v).kind(); byte(v) == 0 || k != EastAsianHalfwidth && k != EastAsianNarrow { - } else { - err = transform.ErrEndOfSpan - break - } - n += size - } - return n, err -} - func (wideTransform) Transform(dst, src []byte, atEOF bool) (nDst, nSrc int, err error) { for nSrc < len(src) { // TODO: Consider ASCII fast path. Special-casing ASCII handling can diff --git a/vendor/golang.org/x/text/width/width.go b/vendor/golang.org/x/text/width/width.go index f1639ca68..dc026eef6 100644 --- a/vendor/golang.org/x/text/width/width.go +++ b/vendor/golang.org/x/text/width/width.go @@ -153,22 +153,17 @@ func (p Properties) Wide() rune { // Transformer implements the transform.Transformer interface. type Transformer struct { - t transform.SpanningTransformer + t transform.Transformer } // Reset implements the transform.Transformer interface. func (t Transformer) Reset() { t.t.Reset() } -// Transform implements the transform.Transformer interface. +// Transform implements the Transformer interface. func (t Transformer) Transform(dst, src []byte, atEOF bool) (nDst, nSrc int, err error) { return t.t.Transform(dst, src, atEOF) } -// Span implements the transform.SpanningTransformer interface. -func (t Transformer) Span(src []byte, atEOF bool) (n int, err error) { - return t.t.Span(src, atEOF) -} - // Bytes returns a new byte slice with the result of applying t to b. func (t Transformer) Bytes(b []byte) []byte { b, _, _ = transform.Bytes(t, b) diff --git a/vendor/google.golang.org/appengine/appengine.go b/vendor/google.golang.org/appengine/appengine.go index aa23a7ab6..475cf2e32 100644 --- a/vendor/google.golang.org/appengine/appengine.go +++ b/vendor/google.golang.org/appengine/appengine.go @@ -17,6 +17,42 @@ import ( "google.golang.org/appengine/internal" ) +// The gophers party all night; the rabbits provide the beats. + +// Main is the principal entry point for an app running in App Engine. +// +// On App Engine Flexible it installs a trivial health checker if one isn't +// already registered, and starts listening on port 8080 (overridden by the +// $PORT environment variable). +// +// See https://cloud.google.com/appengine/docs/flexible/custom-runtimes#health_check_requests +// for details on how to do your own health checking. +// +// Main is not yet supported on App Engine Standard. +// +// Main never returns. +// +// Main is designed so that the app's main package looks like this: +// +// package main +// +// import ( +// "google.golang.org/appengine" +// +// _ "myapp/package0" +// _ "myapp/package1" +// ) +// +// func main() { +// appengine.Main() +// } +// +// The "myapp/packageX" packages are expected to register HTTP handlers +// in their init functions. +func Main() { + internal.Main() +} + // IsDevAppServer reports whether the App Engine app is running in the // development App Server. func IsDevAppServer() bool { diff --git a/vendor/google.golang.org/appengine/appengine_vm.go b/vendor/google.golang.org/appengine/appengine_vm.go index 2f7759067..f4b645aad 100644 --- a/vendor/google.golang.org/appengine/appengine_vm.go +++ b/vendor/google.golang.org/appengine/appengine_vm.go @@ -12,45 +12,9 @@ import ( "google.golang.org/appengine/internal" ) -// The comment below must not be changed. -// It is used by go-app-builder to recognise that this package has -// the Main function to use in the synthetic main. -// The gophers party all night; the rabbits provide the beats. - -// Main is the principal entry point for a Managed VMs app. -// It installs a trivial health checker if one isn't already registered, -// and starts listening on port 8080 (overridden by the $PORT environment -// variable). -// -// See https://cloud.google.com/appengine/docs/managed-vms/custom-runtimes#health_check_requests -// for details on how to do your own health checking. -// -// Main never returns. -// -// Main is designed so that the app's main package looks like this: -// -// package main -// -// import ( -// "google.golang.org/appengine" -// -// _ "myapp/package0" -// _ "myapp/package1" -// ) -// -// func main() { -// appengine.Main() -// } -// -// The "myapp/packageX" packages are expected to register HTTP handlers -// in their init functions. -func Main() { - internal.Main() -} - // BackgroundContext returns a context not associated with a request. // This should only be used when not servicing a request. -// This only works on Managed VMs. +// This only works in App Engine "flexible environment". func BackgroundContext() context.Context { return internal.BackgroundContext() } diff --git a/vendor/google.golang.org/appengine/internal/api.go b/vendor/google.golang.org/appengine/internal/api.go index aa139d4d5..ec5aa59b3 100644 --- a/vendor/google.golang.org/appengine/internal/api.go +++ b/vendor/google.golang.org/appengine/internal/api.go @@ -432,6 +432,12 @@ func (c *context) post(body []byte, timeout time.Duration) (b []byte, err error) } func Call(ctx netcontext.Context, service, method string, in, out proto.Message) error { + if ns := NamespaceFromContext(ctx); ns != "" { + if fn, ok := NamespaceMods[service]; ok { + fn(in, ns) + } + } + if f, ctx, ok := callOverrideFromContext(ctx); ok { return f(ctx, service, method, in, out) } diff --git a/vendor/google.golang.org/appengine/internal/api_classic.go b/vendor/google.golang.org/appengine/internal/api_classic.go index 1c072e9db..597f66e6e 100644 --- a/vendor/google.golang.org/appengine/internal/api_classic.go +++ b/vendor/google.golang.org/appengine/internal/api_classic.go @@ -8,6 +8,7 @@ package internal import ( "errors" + "fmt" "net/http" "time" @@ -57,7 +58,32 @@ func WithContext(parent netcontext.Context, req *http.Request) netcontext.Contex return withContext(parent, c) } +type testingContext struct { + appengine.Context + + req *http.Request +} + +func (t *testingContext) FullyQualifiedAppID() string { return "dev~testcontext" } +func (t *testingContext) Call(service, method string, _, _ appengine_internal.ProtoMessage, _ *appengine_internal.CallOptions) error { + if service == "__go__" && method == "GetNamespace" { + return nil + } + return fmt.Errorf("testingContext: unsupported Call") +} +func (t *testingContext) Request() interface{} { return t.req } + +func ContextForTesting(req *http.Request) netcontext.Context { + return withContext(netcontext.Background(), &testingContext{req: req}) +} + func Call(ctx netcontext.Context, service, method string, in, out proto.Message) error { + if ns := NamespaceFromContext(ctx); ns != "" { + if fn, ok := NamespaceMods[service]; ok { + fn(in, ns) + } + } + if f, ctx, ok := callOverrideFromContext(ctx); ok { return f(ctx, service, method, in, out) } diff --git a/vendor/google.golang.org/appengine/internal/api_common.go b/vendor/google.golang.org/appengine/internal/api_common.go index ec5383e66..2db33a774 100644 --- a/vendor/google.golang.org/appengine/internal/api_common.go +++ b/vendor/google.golang.org/appengine/internal/api_common.go @@ -82,20 +82,5 @@ func Logf(ctx netcontext.Context, level int64, format string, args ...interface{ // NamespacedContext wraps a Context to support namespaces. func NamespacedContext(ctx netcontext.Context, namespace string) netcontext.Context { - n := &namespacedContext{ - namespace: namespace, - } - return withNamespace(WithCallOverride(ctx, n.call), namespace) -} - -type namespacedContext struct { - namespace string -} - -func (n *namespacedContext) call(ctx netcontext.Context, service, method string, in, out proto.Message) error { - // Apply any namespace mods. - if mod, ok := NamespaceMods[service]; ok { - mod(in, n.namespace) - } - return Call(ctx, service, method, in, out) + return withNamespace(ctx, namespace) } diff --git a/vendor/google.golang.org/appengine/internal/internal.go b/vendor/google.golang.org/appengine/internal/internal.go index 66e8d7686..051ea3980 100644 --- a/vendor/google.golang.org/appengine/internal/internal.go +++ b/vendor/google.golang.org/appengine/internal/internal.go @@ -10,11 +10,6 @@ package internal import ( "fmt" - "io" - "log" - "net/http" - "net/url" - "os" "github.com/golang/protobuf/proto" @@ -109,35 +104,6 @@ func (e *CallError) IsTimeout() bool { return e.Timeout } -func Main() { - installHealthChecker(http.DefaultServeMux) - - port := "8080" - if s := os.Getenv("PORT"); s != "" { - port = s - } - - if err := http.ListenAndServe(":"+port, http.HandlerFunc(handleHTTP)); err != nil { - log.Fatalf("http.ListenAndServe: %v", err) - } -} - -func installHealthChecker(mux *http.ServeMux) { - // If no health check handler has been installed by this point, add a trivial one. - const healthPath = "/_ah/health" - hreq := &http.Request{ - Method: "GET", - URL: &url.URL{ - Path: healthPath, - }, - } - if _, pat := mux.Handler(hreq); pat != healthPath { - mux.HandleFunc(healthPath, func(w http.ResponseWriter, r *http.Request) { - io.WriteString(w, "ok") - }) - } -} - // NamespaceMods is a map from API service to a function that will mutate an RPC request to attach a namespace. // The function should be prepared to be called on the same message more than once; it should only modify the // RPC request the first time. diff --git a/vendor/google.golang.org/appengine/internal/main.go b/vendor/google.golang.org/appengine/internal/main.go new file mode 100644 index 000000000..49036163c --- /dev/null +++ b/vendor/google.golang.org/appengine/internal/main.go @@ -0,0 +1,15 @@ +// Copyright 2011 Google Inc. All rights reserved. +// Use of this source code is governed by the Apache 2.0 +// license that can be found in the LICENSE file. + +// +build appengine + +package internal + +import ( + "appengine_internal" +) + +func Main() { + appengine_internal.Main() +} diff --git a/vendor/google.golang.org/appengine/internal/main_vm.go b/vendor/google.golang.org/appengine/internal/main_vm.go new file mode 100644 index 000000000..57331ad17 --- /dev/null +++ b/vendor/google.golang.org/appengine/internal/main_vm.go @@ -0,0 +1,44 @@ +// Copyright 2011 Google Inc. All rights reserved. +// Use of this source code is governed by the Apache 2.0 +// license that can be found in the LICENSE file. + +// +build !appengine + +package internal + +import ( + "io" + "log" + "net/http" + "net/url" + "os" +) + +func Main() { + installHealthChecker(http.DefaultServeMux) + + port := "8080" + if s := os.Getenv("PORT"); s != "" { + port = s + } + + if err := http.ListenAndServe(":"+port, http.HandlerFunc(handleHTTP)); err != nil { + log.Fatalf("http.ListenAndServe: %v", err) + } +} + +func installHealthChecker(mux *http.ServeMux) { + // If no health check handler has been installed by this point, add a trivial one. + const healthPath = "/_ah/health" + hreq := &http.Request{ + Method: "GET", + URL: &url.URL{ + Path: healthPath, + }, + } + if _, pat := mux.Handler(hreq); pat != healthPath { + mux.HandleFunc(healthPath, func(w http.ResponseWriter, r *http.Request) { + io.WriteString(w, "ok") + }) + } +} diff --git a/vendor/google.golang.org/cloud/LICENSE b/vendor/google.golang.org/cloud/LICENSE deleted file mode 100644 index a4c5efd82..000000000 --- a/vendor/google.golang.org/cloud/LICENSE +++ /dev/null @@ -1,202 +0,0 @@ - - Apache License - Version 2.0, January 2004 - http://www.apache.org/licenses/ - - TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION - - 1. Definitions. - - "License" shall mean the terms and conditions for use, reproduction, - and distribution as defined by Sections 1 through 9 of this document. - - "Licensor" shall mean the copyright owner or entity authorized by - the copyright owner that is granting the License. - - "Legal Entity" shall mean the union of the acting entity and all - other entities that control, are controlled by, or are under common - control with that entity. For the purposes of this definition, - "control" means (i) the power, direct or indirect, to cause the - direction or management of such entity, whether by contract or - otherwise, or (ii) ownership of fifty percent (50%) or more of the - outstanding shares, or (iii) beneficial ownership of such entity. - - "You" (or "Your") shall mean an individual or Legal Entity - exercising permissions granted by this License. - - "Source" form shall mean the preferred form for making modifications, - including but not limited to software source code, documentation - source, and configuration files. - - "Object" form shall mean any form resulting from mechanical - transformation or translation of a Source form, including but - not limited to compiled object code, generated documentation, - and conversions to other media types. - - "Work" shall mean the work of authorship, whether in Source or - Object form, made available under the License, as indicated by a - copyright notice that is included in or attached to the work - (an example is provided in the Appendix below). - - "Derivative Works" shall mean any work, whether in Source or Object - form, that is based on (or derived from) the Work and for which the - editorial revisions, annotations, elaborations, or other modifications - represent, as a whole, an original work of authorship. For the purposes - of this License, Derivative Works shall not include works that remain - separable from, or merely link (or bind by name) to the interfaces of, - the Work and Derivative Works thereof. - - "Contribution" shall mean any work of authorship, including - the original version of the Work and any modifications or additions - to that Work or Derivative Works thereof, that is intentionally - submitted to Licensor for inclusion in the Work by the copyright owner - or by an individual or Legal Entity authorized to submit on behalf of - the copyright owner. For the purposes of this definition, "submitted" - means any form of electronic, verbal, or written communication sent - to the Licensor or its representatives, including but not limited to - communication on electronic mailing lists, source code control systems, - and issue tracking systems that are managed by, or on behalf of, the - Licensor for the purpose of discussing and improving the Work, but - excluding communication that is conspicuously marked or otherwise - designated in writing by the copyright owner as "Not a Contribution." - - "Contributor" shall mean Licensor and any individual or Legal Entity - on behalf of whom a Contribution has been received by Licensor and - subsequently incorporated within the Work. - - 2. Grant of Copyright License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - copyright license to reproduce, prepare Derivative Works of, - publicly display, publicly perform, sublicense, and distribute the - Work and such Derivative Works in Source or Object form. - - 3. Grant of Patent License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - (except as stated in this section) patent license to make, have made, - use, offer to sell, sell, import, and otherwise transfer the Work, - where such license applies only to those patent claims licensable - by such Contributor that are necessarily infringed by their - Contribution(s) alone or by combination of their Contribution(s) - with the Work to which such Contribution(s) was submitted. If You - institute patent litigation against any entity (including a - cross-claim or counterclaim in a lawsuit) alleging that the Work - or a Contribution incorporated within the Work constitutes direct - or contributory patent infringement, then any patent licenses - granted to You under this License for that Work shall terminate - as of the date such litigation is filed. - - 4. Redistribution. You may reproduce and distribute copies of the - Work or Derivative Works thereof in any medium, with or without - modifications, and in Source or Object form, provided that You - meet the following conditions: - - (a) You must give any other recipients of the Work or - Derivative Works a copy of this License; and - - (b) You must cause any modified files to carry prominent notices - stating that You changed the files; and - - (c) You must retain, in the Source form of any Derivative Works - that You distribute, all copyright, patent, trademark, and - attribution notices from the Source form of the Work, - excluding those notices that do not pertain to any part of - the Derivative Works; and - - (d) If the Work includes a "NOTICE" text file as part of its - distribution, then any Derivative Works that You distribute must - include a readable copy of the attribution notices contained - within such NOTICE file, excluding those notices that do not - pertain to any part of the Derivative Works, in at least one - of the following places: within a NOTICE text file distributed - as part of the Derivative Works; within the Source form or - documentation, if provided along with the Derivative Works; or, - within a display generated by the Derivative Works, if and - wherever such third-party notices normally appear. The contents - of the NOTICE file are for informational purposes only and - do not modify the License. You may add Your own attribution - notices within Derivative Works that You distribute, alongside - or as an addendum to the NOTICE text from the Work, provided - that such additional attribution notices cannot be construed - as modifying the License. - - You may add Your own copyright statement to Your modifications and - may provide additional or different license terms and conditions - for use, reproduction, or distribution of Your modifications, or - for any such Derivative Works as a whole, provided Your use, - reproduction, and distribution of the Work otherwise complies with - the conditions stated in this License. - - 5. Submission of Contributions. Unless You explicitly state otherwise, - any Contribution intentionally submitted for inclusion in the Work - by You to the Licensor shall be under the terms and conditions of - this License, without any additional terms or conditions. - Notwithstanding the above, nothing herein shall supersede or modify - the terms of any separate license agreement you may have executed - with Licensor regarding such Contributions. - - 6. Trademarks. This License does not grant permission to use the trade - names, trademarks, service marks, or product names of the Licensor, - except as required for reasonable and customary use in describing the - origin of the Work and reproducing the content of the NOTICE file. - - 7. Disclaimer of Warranty. Unless required by applicable law or - agreed to in writing, Licensor provides the Work (and each - Contributor provides its Contributions) on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - implied, including, without limitation, any warranties or conditions - of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A - PARTICULAR PURPOSE. You are solely responsible for determining the - appropriateness of using or redistributing the Work and assume any - risks associated with Your exercise of permissions under this License. - - 8. Limitation of Liability. In no event and under no legal theory, - whether in tort (including negligence), contract, or otherwise, - unless required by applicable law (such as deliberate and grossly - negligent acts) or agreed to in writing, shall any Contributor be - liable to You for damages, including any direct, indirect, special, - incidental, or consequential damages of any character arising as a - result of this License or out of the use or inability to use the - Work (including but not limited to damages for loss of goodwill, - work stoppage, computer failure or malfunction, or any and all - other commercial damages or losses), even if such Contributor - has been advised of the possibility of such damages. - - 9. Accepting Warranty or Additional Liability. While redistributing - the Work or Derivative Works thereof, You may choose to offer, - and charge a fee for, acceptance of support, warranty, indemnity, - or other liability obligations and/or rights consistent with this - License. However, in accepting such obligations, You may act only - on Your own behalf and on Your sole responsibility, not on behalf - of any other Contributor, and only if You agree to indemnify, - defend, and hold each Contributor harmless for any liability - incurred by, or claims asserted against, such Contributor by reason - of your accepting any such warranty or additional liability. - - END OF TERMS AND CONDITIONS - - APPENDIX: How to apply the Apache License to your work. - - To apply the Apache License to your work, attach the following - boilerplate notice, with the fields enclosed by brackets "[]" - replaced with your own identifying information. (Don't include - the brackets!) The text should be enclosed in the appropriate - comment syntax for the file format. We also recommend that a - file or class name and description of purpose be included on the - same "printed page" as the copyright notice for easier - identification within third-party archives. - - Copyright 2014 Google Inc. - - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. diff --git a/vendor/google.golang.org/cloud/cloud.go b/vendor/google.golang.org/cloud/cloud.go deleted file mode 100644 index 96d36baf2..000000000 --- a/vendor/google.golang.org/cloud/cloud.go +++ /dev/null @@ -1,49 +0,0 @@ -// Copyright 2014 Google Inc. 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 cloud contains Google Cloud Platform APIs related types -// and common functions. -package cloud // import "google.golang.org/cloud" - -import ( - "net/http" - - "golang.org/x/net/context" - "google.golang.org/cloud/internal" -) - -// NewContext returns a new context that uses the provided http.Client. -// Provided http.Client is responsible to authorize and authenticate -// the requests made to the Google Cloud APIs. -// It mutates the client's original Transport to append the cloud -// package's user-agent to the outgoing requests. -// You can obtain the project ID from the Google Developers Console, -// https://console.developers.google.com. -func NewContext(projID string, c *http.Client) context.Context { - if c == nil { - panic("invalid nil *http.Client passed to NewContext") - } - return WithContext(context.Background(), projID, c) -} - -// WithContext returns a new context in a similar way NewContext does, -// but initiates the new context with the specified parent. -func WithContext(parent context.Context, projID string, c *http.Client) context.Context { - // TODO(bradfitz): delete internal.Transport. It's too wrappy for what it does. - // Do User-Agent some other way. - if _, ok := c.Transport.(*internal.Transport); !ok { - c.Transport = &internal.Transport{Base: c.Transport} - } - return internal.WithContext(parent, projID, c) -} diff --git a/vendor/google.golang.org/cloud/compute/metadata/go13.go b/vendor/google.golang.org/cloud/compute/metadata/go13.go deleted file mode 100644 index c979f4390..000000000 --- a/vendor/google.golang.org/cloud/compute/metadata/go13.go +++ /dev/null @@ -1,37 +0,0 @@ -// Copyright 2015 Google Inc. 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. - -// +build go1.3 - -package metadata - -import ( - "net" - "time" -) - -// This is a workaround for https://github.com/golang/oauth2/issues/70, where -// net.Dialer.KeepAlive is unavailable on Go 1.2 (which App Engine as of -// Jan 2015 still runs). -// -// TODO(bradfitz,jbd,adg): remove this once App Engine supports Go -// 1.3+. -func init() { - go13Dialer = func() *net.Dialer { - return &net.Dialer{ - Timeout: 750 * time.Millisecond, - KeepAlive: 30 * time.Second, - } - } -} diff --git a/vendor/google.golang.org/cloud/compute/metadata/metadata.go b/vendor/google.golang.org/cloud/compute/metadata/metadata.go deleted file mode 100644 index 7753a05b6..000000000 --- a/vendor/google.golang.org/cloud/compute/metadata/metadata.go +++ /dev/null @@ -1,267 +0,0 @@ -// Copyright 2014 Google Inc. 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 metadata provides access to Google Compute Engine (GCE) -// metadata and API service accounts. -// -// This package is a wrapper around the GCE metadata service, -// as documented at https://developers.google.com/compute/docs/metadata. -package metadata - -import ( - "encoding/json" - "fmt" - "io/ioutil" - "net" - "net/http" - "strings" - "sync" - "time" - - "google.golang.org/cloud/internal" -) - -type cachedValue struct { - k string - trim bool - mu sync.Mutex - v string -} - -var ( - projID = &cachedValue{k: "project/project-id", trim: true} - projNum = &cachedValue{k: "project/numeric-project-id", trim: true} - instID = &cachedValue{k: "instance/id", trim: true} -) - -var metaClient = &http.Client{ - Transport: &internal.Transport{ - Base: &http.Transport{ - Dial: dialer().Dial, - ResponseHeaderTimeout: 750 * time.Millisecond, - }, - }, -} - -// go13Dialer is nil until we're using Go 1.3+. -// This is a workaround for https://github.com/golang/oauth2/issues/70, where -// net.Dialer.KeepAlive is unavailable on Go 1.2 (which App Engine as of -// Jan 2015 still runs). -// -// TODO(bradfitz,jbd,adg,dsymonds): remove this once App Engine supports Go -// 1.3+ and go-app-builder also supports 1.3+, or when Go 1.2 is no longer an -// option on App Engine. -var go13Dialer func() *net.Dialer - -func dialer() *net.Dialer { - if fn := go13Dialer; fn != nil { - return fn() - } - return &net.Dialer{ - Timeout: 750 * time.Millisecond, - } -} - -// NotDefinedError is returned when requested metadata is not defined. -// -// The underlying string is the suffix after "/computeMetadata/v1/". -// -// This error is not returned if the value is defined to be the empty -// string. -type NotDefinedError string - -func (suffix NotDefinedError) Error() string { - return fmt.Sprintf("metadata: GCE metadata %q not defined", string(suffix)) -} - -// Get returns a value from the metadata service. -// The suffix is appended to "http://metadata/computeMetadata/v1/". -// -// If the requested metadata is not defined, the returned error will -// be of type NotDefinedError. -func Get(suffix string) (string, error) { - // Using 169.254.169.254 instead of "metadata" here because Go - // binaries built with the "netgo" tag and without cgo won't - // know the search suffix for "metadata" is - // ".google.internal", and this IP address is documented as - // being stable anyway. - url := "http://169.254.169.254/computeMetadata/v1/" + suffix - req, _ := http.NewRequest("GET", url, nil) - req.Header.Set("Metadata-Flavor", "Google") - res, err := metaClient.Do(req) - if err != nil { - return "", err - } - defer res.Body.Close() - if res.StatusCode == http.StatusNotFound { - return "", NotDefinedError(suffix) - } - if res.StatusCode != 200 { - return "", fmt.Errorf("status code %d trying to fetch %s", res.StatusCode, url) - } - all, err := ioutil.ReadAll(res.Body) - if err != nil { - return "", err - } - return string(all), nil -} - -func getTrimmed(suffix string) (s string, err error) { - s, err = Get(suffix) - s = strings.TrimSpace(s) - return -} - -func (c *cachedValue) get() (v string, err error) { - defer c.mu.Unlock() - c.mu.Lock() - if c.v != "" { - return c.v, nil - } - if c.trim { - v, err = getTrimmed(c.k) - } else { - v, err = Get(c.k) - } - if err == nil { - c.v = v - } - return -} - -var onGCE struct { - sync.Mutex - set bool - v bool -} - -// OnGCE reports whether this process is running on Google Compute Engine. -func OnGCE() bool { - defer onGCE.Unlock() - onGCE.Lock() - if onGCE.set { - return onGCE.v - } - onGCE.set = true - - // We use the DNS name of the metadata service here instead of the IP address - // because we expect that to fail faster in the not-on-GCE case. - res, err := metaClient.Get("http://metadata.google.internal") - if err != nil { - return false - } - onGCE.v = res.Header.Get("Metadata-Flavor") == "Google" - return onGCE.v -} - -// ProjectID returns the current instance's project ID string. -func ProjectID() (string, error) { return projID.get() } - -// NumericProjectID returns the current instance's numeric project ID. -func NumericProjectID() (string, error) { return projNum.get() } - -// InternalIP returns the instance's primary internal IP address. -func InternalIP() (string, error) { - return getTrimmed("instance/network-interfaces/0/ip") -} - -// ExternalIP returns the instance's primary external (public) IP address. -func ExternalIP() (string, error) { - return getTrimmed("instance/network-interfaces/0/access-configs/0/external-ip") -} - -// Hostname returns the instance's hostname. This will probably be of -// the form "INSTANCENAME.c.PROJECT.internal" but that isn't -// guaranteed. -// -// TODO: what is this defined to be? Docs say "The host name of the -// instance." -func Hostname() (string, error) { - return getTrimmed("network-interfaces/0/ip") -} - -// InstanceTags returns the list of user-defined instance tags, -// assigned when initially creating a GCE instance. -func InstanceTags() ([]string, error) { - var s []string - j, err := Get("instance/tags") - if err != nil { - return nil, err - } - if err := json.NewDecoder(strings.NewReader(j)).Decode(&s); err != nil { - return nil, err - } - return s, nil -} - -// InstanceID returns the current VM's numeric instance ID. -func InstanceID() (string, error) { - return instID.get() -} - -// InstanceAttributes returns the list of user-defined attributes, -// assigned when initially creating a GCE VM instance. The value of an -// attribute can be obtained with InstanceAttributeValue. -func InstanceAttributes() ([]string, error) { return lines("instance/attributes/") } - -// ProjectAttributes returns the list of user-defined attributes -// applying to the project as a whole, not just this VM. The value of -// an attribute can be obtained with ProjectAttributeValue. -func ProjectAttributes() ([]string, error) { return lines("project/attributes/") } - -func lines(suffix string) ([]string, error) { - j, err := Get(suffix) - if err != nil { - return nil, err - } - s := strings.Split(strings.TrimSpace(j), "\n") - for i := range s { - s[i] = strings.TrimSpace(s[i]) - } - return s, nil -} - -// InstanceAttributeValue returns the value of the provided VM -// instance attribute. -// -// If the requested attribute is not defined, the returned error will -// be of type NotDefinedError. -// -// InstanceAttributeValue may return ("", nil) if the attribute was -// defined to be the empty string. -func InstanceAttributeValue(attr string) (string, error) { - return Get("instance/attributes/" + attr) -} - -// ProjectAttributeValue returns the value of the provided -// project attribute. -// -// If the requested attribute is not defined, the returned error will -// be of type NotDefinedError. -// -// ProjectAttributeValue may return ("", nil) if the attribute was -// defined to be the empty string. -func ProjectAttributeValue(attr string) (string, error) { - return Get("project/attributes/" + attr) -} - -// Scopes returns the service account scopes for the given account. -// The account may be empty or the string "default" to use the instance's -// main account. -func Scopes(serviceAccount string) ([]string, error) { - if serviceAccount == "" { - serviceAccount = "default" - } - return lines("instance/service-accounts/" + serviceAccount + "/scopes") -} diff --git a/vendor/google.golang.org/cloud/internal/cloud.go b/vendor/google.golang.org/cloud/internal/cloud.go deleted file mode 100644 index 8b0db1b5d..000000000 --- a/vendor/google.golang.org/cloud/internal/cloud.go +++ /dev/null @@ -1,128 +0,0 @@ -// Copyright 2014 Google Inc. 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 internal provides support for the cloud packages. -// -// Users should not import this package directly. -package internal - -import ( - "fmt" - "net/http" - "sync" - - "golang.org/x/net/context" -) - -type contextKey struct{} - -func WithContext(parent context.Context, projID string, c *http.Client) context.Context { - if c == nil { - panic("nil *http.Client passed to WithContext") - } - if projID == "" { - panic("empty project ID passed to WithContext") - } - return context.WithValue(parent, contextKey{}, &cloudContext{ - ProjectID: projID, - HTTPClient: c, - }) -} - -const userAgent = "gcloud-golang/0.1" - -type cloudContext struct { - ProjectID string - HTTPClient *http.Client - - mu sync.Mutex // guards svc - svc map[string]interface{} // e.g. "storage" => *rawStorage.Service -} - -// Service returns the result of the fill function if it's never been -// called before for the given name (which is assumed to be an API -// service name, like "datastore"). If it has already been cached, the fill -// func is not run. -// It's safe for concurrent use by multiple goroutines. -func Service(ctx context.Context, name string, fill func(*http.Client) interface{}) interface{} { - return cc(ctx).service(name, fill) -} - -func (c *cloudContext) service(name string, fill func(*http.Client) interface{}) interface{} { - c.mu.Lock() - defer c.mu.Unlock() - - if c.svc == nil { - c.svc = make(map[string]interface{}) - } else if v, ok := c.svc[name]; ok { - return v - } - v := fill(c.HTTPClient) - c.svc[name] = v - return v -} - -// Transport is an http.RoundTripper that appends -// Google Cloud client's user-agent to the original -// request's user-agent header. -type Transport struct { - // Base represents the actual http.RoundTripper - // the requests will be delegated to. - Base http.RoundTripper -} - -// RoundTrip appends a user-agent to the existing user-agent -// header and delegates the request to the base http.RoundTripper. -func (t *Transport) RoundTrip(req *http.Request) (*http.Response, error) { - req = cloneRequest(req) - ua := req.Header.Get("User-Agent") - if ua == "" { - ua = userAgent - } else { - ua = fmt.Sprintf("%s %s", ua, userAgent) - } - req.Header.Set("User-Agent", ua) - return t.Base.RoundTrip(req) -} - -// 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 -} - -func ProjID(ctx context.Context) string { - return cc(ctx).ProjectID -} - -func HTTPClient(ctx context.Context) *http.Client { - return cc(ctx).HTTPClient -} - -// cc returns the internal *cloudContext (cc) state for a context.Context. -// It panics if the user did it wrong. -func cc(ctx context.Context) *cloudContext { - if c, ok := ctx.Value(contextKey{}).(*cloudContext); ok { - return c - } - panic("invalid context.Context type; it should be created with cloud.NewContext") -} diff --git a/vendor/google.golang.org/grpc/LICENSE b/vendor/google.golang.org/grpc/LICENSE new file mode 100644 index 000000000..f4988b450 --- /dev/null +++ b/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/vendor/google.golang.org/grpc/PATENTS b/vendor/google.golang.org/grpc/PATENTS new file mode 100644 index 000000000..69b47959f --- /dev/null +++ b/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/vendor/google.golang.org/grpc/backoff.go b/vendor/google.golang.org/grpc/backoff.go new file mode 100644 index 000000000..c99024ee3 --- /dev/null +++ b/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) 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/vendor/google.golang.org/grpc/balancer.go b/vendor/google.golang.org/grpc/balancer.go new file mode 100644 index 000000000..9d943fbad --- /dev/null +++ b/vendor/google.golang.org/grpc/balancer.go @@ -0,0 +1,400 @@ +/* + * + * 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/codes" + "google.golang.org/grpc/credentials" + "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{} +} + +// BalancerConfig specifies the configurations for Balancer. +type BalancerConfig struct { + // DialCreds is the transport credential the Balancer implementation can + // use to dial to a remote load balancer server. The Balancer implementations + // can ignore this if it does not need to talk to another party securely. + DialCreds credentials.TransportCredentials +} + +// 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, config BalancerConfig) 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 of 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, config BalancerConfig) error { + rr.mu.Lock() + defer rr.mu.Unlock() + if rr.done { + return ErrClientConnClosing + } + 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 = Errorf(codes.Unavailable, "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/vendor/google.golang.org/grpc/call.go b/vendor/google.golang.org/grpc/call.go new file mode 100644 index 000000000..c1588c637 --- /dev/null +++ b/vendor/google.golang.org/grpc/call.go @@ -0,0 +1,289 @@ +/* + * + * 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/peer" + "google.golang.org/grpc/stats" + "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. +// TODO ctx is used for stats collection and processing. It is the context passed from the application. +func recvResponse(ctx context.Context, dopts dialOptions, t transport.ClientTransport, c *callInfo, stream *transport.Stream, reply interface{}) (err error) { + // Try to acquire header metadata from the server if there is any. + defer func() { + if err != nil { + if _, ok := err.(transport.ConnectionError); !ok { + t.CloseStream(stream, err) + } + } + }() + c.headerMD, err = stream.Header() + if err != nil { + return + } + p := &parser{r: stream} + var inPayload *stats.InPayload + if dopts.copts.StatsHandler != nil { + inPayload = &stats.InPayload{ + Client: true, + } + } + for { + if err = recv(p, dopts.codec, stream, dopts.dc, reply, dopts.maxMsgSize, inPayload); err != nil { + if err == io.EOF { + break + } + return + } + } + if inPayload != nil && err == io.EOF && stream.StatusCode() == codes.OK { + // TODO in the current implementation, inTrailer may be handled before inPayload in some cases. + // Fix the order if necessary. + dopts.copts.StatsHandler.HandleRPC(ctx, inPayload) + } + c.trailerMD = stream.Trailer() + if peer, ok := peer.FromContext(stream.Context()); ok { + c.peer = peer + } + return nil +} + +// sendRequest writes out various information of an RPC such as Context and Message. +func sendRequest(ctx context.Context, dopts dialOptions, 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 err is connection error, t will be closed, no need to close stream here. + if _, ok := err.(transport.ConnectionError); !ok { + t.CloseStream(stream, err) + } + } + }() + var ( + cbuf *bytes.Buffer + outPayload *stats.OutPayload + ) + if compressor != nil { + cbuf = new(bytes.Buffer) + } + if dopts.copts.StatsHandler != nil { + outPayload = &stats.OutPayload{ + Client: true, + } + } + outBuf, err := encode(dopts.codec, args, compressor, cbuf, outPayload) + if err != nil { + return nil, Errorf(codes.Internal, "grpc: %v", err) + } + err = t.Write(stream, outBuf, opts) + if err == nil && outPayload != nil { + outPayload.SentTime = time.Now() + dopts.copts.StatsHandler.HandleRPC(ctx, outPayload) + } + // t.NewStream(...) could lead to an early rejection of the RPC (e.g., the service/method + // does not exist.) so that t.Write could get io.EOF from wait(...). Leave the following + // recvResponse to get the final status. + if err != nil && err != io.EOF { + 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) error { + if cc.dopts.unaryInt != nil { + return cc.dopts.unaryInt(ctx, method, args, reply, cc, invoke, opts...) + } + return invoke(ctx, method, args, reply, cc, opts...) +} + +func invoke(ctx context.Context, method string, args, reply interface{}, cc *ClientConn, opts ...CallOption) (e error) { + c := defaultCallInfo + if mc, ok := cc.getMethodConfig(method); ok { + c.failFast = !mc.WaitForReady + if mc.Timeout > 0 { + var cancel context.CancelFunc + ctx, cancel = context.WithTimeout(ctx, mc.Timeout) + defer cancel() + } + } + 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 e != nil { + c.traceInfo.tr.LazyLog(&fmtStringer{"%v", []interface{}{e}}, true) + c.traceInfo.tr.SetError() + } + }() + } + sh := cc.dopts.copts.StatsHandler + if sh != nil { + ctx = sh.TagRPC(ctx, &stats.RPCTagInfo{FullMethodName: method}) + begin := &stats.Begin{ + Client: true, + BeginTime: time.Now(), + FailFast: c.failFast, + } + sh.HandleRPC(ctx, begin) + } + defer func() { + if sh != nil { + end := &stats.End{ + Client: true, + EndTime: time.Now(), + Error: e, + } + sh.HandleRPC(ctx, end) + } + }() + 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 || err == errConnUnavailable { + if c.failFast { + return Errorf(codes.Unavailable, "%v", err) + } + 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, cc.dopts.cp, callHdr, t, args, topts) + if err != nil { + if put != nil { + put() + put = nil + } + // Retry a non-failfast RPC when + // i) there is a connection error; or + // ii) the server started to drain before this RPC was initiated. + if _, ok := err.(transport.ConnectionError); ok || err == transport.ErrStreamDrain { + if c.failFast { + return toRPCErr(err) + } + continue + } + return toRPCErr(err) + } + err = recvResponse(ctx, cc.dopts, t, &c, stream, reply) + if err != nil { + if put != nil { + put() + put = nil + } + if _, ok := err.(transport.ConnectionError); ok || err == transport.ErrStreamDrain { + if c.failFast { + return toRPCErr(err) + } + continue + } + 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/vendor/google.golang.org/grpc/clientconn.go b/vendor/google.golang.org/grpc/clientconn.go new file mode 100644 index 000000000..1ba592c50 --- /dev/null +++ b/vendor/google.golang.org/grpc/clientconn.go @@ -0,0 +1,998 @@ +/* + * + * 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" + "math" + "net" + "strings" + "sync" + "time" + + "golang.org/x/net/context" + "golang.org/x/net/trace" + "google.golang.org/grpc/credentials" + "google.golang.org/grpc/grpclog" + "google.golang.org/grpc/keepalive" + "google.golang.org/grpc/stats" + "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. + // DEPRECATED: Please use context.DeadlineExceeded instead. This error will be + // removed in Q1 2017. + 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)") + // errNetworkIO 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") + // errConnUnavailable indicates that the connection is unavailable. + errConnUnavailable = errors.New("grpc: the connection is unavailable") + 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 { + unaryInt UnaryClientInterceptor + streamInt StreamClientInterceptor + codec Codec + cp Compressor + dc Decompressor + bs backoffStrategy + balancer Balancer + block bool + insecure bool + timeout time.Duration + scChan <-chan ServiceConfig + copts transport.ConnectOptions + maxMsgSize int +} + +const defaultClientMaxMsgSize = math.MaxInt32 + +// DialOption configures how we set up the connection. +type DialOption func(*dialOptions) + +// WithMaxMsgSize returns a DialOption which sets the maximum message size the client can receive. +func WithMaxMsgSize(s int) DialOption { + return func(o *dialOptions) { + o.maxMsgSize = s + } +} + +// 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 + } +} + +// WithServiceConfig returns a DialOption which has a channel to read the service configuration. +func WithServiceConfig(c <-chan ServiceConfig) DialOption { + return func(o *dialOptions) { + o.scChan = c + } +} + +// 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. +// If FailOnNonTempDialError() is set to true, and an error is returned by f, gRPC checks the error's +// Temporary() method to decide if it should try to reconnect to the network address. +func WithDialer(f func(string, time.Duration) (net.Conn, error)) DialOption { + return func(o *dialOptions) { + o.copts.Dialer = func(ctx context.Context, addr string) (net.Conn, error) { + if deadline, ok := ctx.Deadline(); ok { + return f(addr, deadline.Sub(time.Now())) + } + return f(addr, 0) + } + } +} + +// WithStatsHandler returns a DialOption that specifies the stats handler +// for all the RPCs and underlying network connections in this ClientConn. +func WithStatsHandler(h stats.Handler) DialOption { + return func(o *dialOptions) { + o.copts.StatsHandler = h + } +} + +// FailOnNonTempDialError returns a DialOption that specified if gRPC fails on non-temporary dial errors. +// If f is true, and dialer returns a non-temporary error, gRPC will fail the connection to the network +// address and won't try to reconnect. +// The default value of FailOnNonTempDialError is false. +// This is an EXPERIMENTAL API. +func FailOnNonTempDialError(f bool) DialOption { + return func(o *dialOptions) { + o.copts.FailOnNonTempDialError = 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 + } +} + +// WithKeepaliveParams returns a DialOption that specifies keepalive paramaters for the client transport. +func WithKeepaliveParams(kp keepalive.ClientParameters) DialOption { + return func(o *dialOptions) { + o.copts.KeepaliveParams = kp + } +} + +// WithUnaryInterceptor returns a DialOption that specifies the interceptor for unary RPCs. +func WithUnaryInterceptor(f UnaryClientInterceptor) DialOption { + return func(o *dialOptions) { + o.unaryInt = f + } +} + +// WithStreamInterceptor returns a DialOption that specifies the interceptor for streaming RPCs. +func WithStreamInterceptor(f StreamClientInterceptor) DialOption { + return func(o *dialOptions) { + o.streamInt = f + } +} + +// WithAuthority returns a DialOption that specifies the value to be used as +// the :authority pseudo-header. This value only works with WithInsecure and +// has no effect if TransportCredentials are present. +func WithAuthority(a string) DialOption { + return func(o *dialOptions) { + o.copts.Authority = a + } +} + +// Dial creates a client connection to the given target. +func Dial(target string, opts ...DialOption) (*ClientConn, error) { + return DialContext(context.Background(), target, opts...) +} + +// DialContext creates a client connection to the given target. ctx can be used to +// cancel or expire the pending connecting. Once this function returns, the +// cancellation and expiration of ctx will be noop. Users should call ClientConn.Close +// to terminate all the pending operations after this function returns. +// This is the EXPERIMENTAL API. +func DialContext(ctx context.Context, target string, opts ...DialOption) (conn *ClientConn, err error) { + cc := &ClientConn{ + target: target, + conns: make(map[Address]*addrConn), + } + cc.ctx, cc.cancel = context.WithCancel(context.Background()) + cc.dopts.maxMsgSize = defaultClientMaxMsgSize + for _, opt := range opts { + opt(&cc.dopts) + } + if cc.dopts.timeout > 0 { + var cancel context.CancelFunc + ctx, cancel = context.WithTimeout(ctx, cc.dopts.timeout) + defer cancel() + } + + defer func() { + select { + case <-ctx.Done(): + conn, err = nil, ctx.Err() + default: + } + + if err != nil { + cc.Close() + } + }() + + if cc.dopts.scChan != nil { + // Wait for the initial service config. + select { + case sc, ok := <-cc.dopts.scChan: + if ok { + cc.sc = sc + } + case <-ctx.Done(): + return nil, ctx.Err() + } + } + // Set defaults. + if cc.dopts.codec == nil { + cc.dopts.codec = protoCodec{} + } + if cc.dopts.bs == nil { + cc.dopts.bs = DefaultBackoffConfig + } + creds := cc.dopts.copts.TransportCredentials + if creds != nil && creds.Info().ServerName != "" { + cc.authority = creds.Info().ServerName + } else if cc.dopts.insecure && cc.dopts.copts.Authority != "" { + cc.authority = cc.dopts.copts.Authority + } else { + colonPos := strings.LastIndex(target, ":") + if colonPos == -1 { + colonPos = len(target) + } + cc.authority = target[:colonPos] + } + var ok bool + waitC := make(chan error, 1) + go func() { + var addrs []Address + if cc.dopts.balancer == nil && cc.sc.LB != nil { + cc.dopts.balancer = cc.sc.LB + } + if cc.dopts.balancer == nil { + // Connect to target directly if balancer is nil. + addrs = append(addrs, Address{Addr: target}) + } else { + var credsClone credentials.TransportCredentials + if creds != nil { + credsClone = creds.Clone() + } + config := BalancerConfig{ + DialCreds: credsClone, + } + if err := cc.dopts.balancer.Start(target, config); err != nil { + waitC <- err + return + } + 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 { + waitC <- errNoAddr + return + } + } + } + for _, a := range addrs { + if err := cc.resetAddrConn(a, false, nil); err != nil { + waitC <- err + return + } + } + close(waitC) + }() + select { + case <-ctx.Done(): + return nil, ctx.Err() + case err := <-waitC: + if err != nil { + return nil, err + } + } + + // If balancer is nil or balancer.Notify() is nil, ok will be false here. + // The lbWatcher goroutine will not be created. + if ok { + go cc.lbWatcher() + } + + if cc.dopts.scChan != nil { + go cc.scWatcher() + } + 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 { + ctx context.Context + cancel context.CancelFunc + + target string + authority string + dopts dialOptions + + mu sync.RWMutex + sc ServiceConfig + 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) + delete(cc.conns, c.addr) + } + } + cc.mu.Unlock() + for _, a := range add { + cc.resetAddrConn(a, true, nil) + } + for _, c := range del { + c.tearDown(errConnDrain) + } + } +} + +func (cc *ClientConn) scWatcher() { + for { + select { + case sc, ok := <-cc.dopts.scChan: + if !ok { + return + } + cc.mu.Lock() + // TODO: load balance policy runtime change is ignored. + // We may revist this decision in the future. + cc.sc = sc + cc.mu.Unlock() + case <-cc.ctx.Done(): + return + } + } +} + +// resetAddrConn creates an addrConn for addr and adds it to cc.conns. +// If there is an old addrConn for addr, it will be torn down, using tearDownErr as the reason. +// If tearDownErr is nil, errConnDrain will be used instead. +func (cc *ClientConn) resetAddrConn(addr Address, skipWait bool, tearDownErr error) error { + ac := &addrConn{ + cc: cc, + addr: addr, + dopts: cc.dopts, + } + ac.ctx, ac.cancel = context.WithCancel(cc.ctx) + ac.stateCV = sync.NewCond(&ac.mu) + 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 + } + } + } + // Track ac in cc. This needs to be done before any getTransport(...) is called. + cc.mu.Lock() + if cc.conns == nil { + cc.mu.Unlock() + return ErrClientConnClosing + } + stale := cc.conns[ac.addr] + cc.conns[ac.addr] = ac + cc.mu.Unlock() + if stale != nil { + // There is an addrConn alive on ac.addr already. This could be due to + // 1) a buggy Balancer notifies duplicated Addresses; + // 2) goaway was received, a new ac will replace the old ac. + // The old ac should be deleted from cc.conns, but the + // underlying transport should drain rather than close. + if tearDownErr == nil { + // tearDownErr is nil if resetAddrConn is called by + // 1) Dial + // 2) lbWatcher + // In both cases, the stale ac should drain, not close. + stale.tearDown(errConnDrain) + } else { + stale.tearDown(tearDownErr) + } + } + // skipWait may overwrite the decision in ac.dopts.block. + if ac.dopts.block && !skipWait { + if err := ac.resetTransport(false); err != nil { + if err != errConnClosing { + // Tear down ac and delete it from cc.conns. + cc.mu.Lock() + delete(cc.conns, ac.addr) + cc.mu.Unlock() + ac.tearDown(err) + } + if e, ok := err.(transport.ConnectionError); ok && !e.Temporary() { + return e.Origin() + } + 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) + if err != errConnClosing { + // Keep this ac in cc.conns, to get the reason it's torn down. + ac.tearDown(err) + } + return + } + ac.transportMonitor() + }() + } + return nil +} + +// TODO: Avoid the locking here. +func (cc *ClientConn) getMethodConfig(method string) (m MethodConfig, ok bool) { + cc.mu.RLock() + defer cc.mu.RUnlock() + m, ok = cc.sc.Methods[method] + return +} + +func (cc *ClientConn) getTransport(ctx context.Context, opts BalancerGetOptions) (transport.ClientTransport, func(), error) { + var ( + ac *addrConn + ok bool + put func() + ) + if cc.dopts.balancer == nil { + // If balancer is nil, there should be only one addrConn available. + cc.mu.RLock() + if cc.conns == nil { + cc.mu.RUnlock() + return nil, nil, toRPCErr(ErrClientConnClosing) + } + for _, ac = range cc.conns { + // Break after the first iteration to get the first addrConn. + ok = true + break + } + cc.mu.RUnlock() + } else { + var ( + addr Address + err 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, errConnClosing + } + t, err := ac.wait(ctx, cc.dopts.balancer != nil, !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.cancel() + + cc.mu.Lock() + if cc.conns == nil { + cc.mu.Unlock() + return ErrClientConnClosing + } + conns := cc.conns + cc.conns = nil + cc.mu.Unlock() + if cc.dopts.balancer != nil { + 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 { + ctx context.Context + cancel context.CancelFunc + + cc *ClientConn + addr Address + dopts dialOptions + 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 + + // The reason this addrConn is torn down. + tearDownErr error +} + +// 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 { + for retries := 0; ; retries++ { + 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) + timeout := minConnectTimeout + if timeout < sleepTime { + timeout = sleepTime + } + ctx, cancel := context.WithTimeout(ac.ctx, timeout) + connectTime := time.Now() + sinfo := transport.TargetInfo{ + Addr: ac.addr.Addr, + Metadata: ac.addr.Metadata, + } + newTransport, err := transport.NewClientTransport(ctx, sinfo, ac.dopts.copts) + // Don't call cancel in success path due to a race in Go 1.6: + // https://github.com/golang/go/issues/15078. + if err != nil { + cancel() + + if e, ok := err.(transport.ConnectionError); ok && !e.Temporary() { + return err + } + grpclog.Printf("grpc: addrConn.resetTransport failed to create client transport: %v; Reconnecting to %v", err, ac.addr) + 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() + closeTransport = false + select { + case <-time.After(sleepTime - time.Since(connectTime)): + case <-ac.ctx.Done(): + return ac.ctx.Err() + } + 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 + } + if ac.cc.dopts.balancer != 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 { + // This is needed to detect the teardown when + // the addrConn is idle (i.e., no RPC in flight). + case <-ac.ctx.Done(): + select { + case <-t.Error(): + t.Close() + default: + } + return + case <-t.GoAway(): + // If GoAway happens without any network I/O error, ac is closed without shutting down the + // underlying transport (the transport will be closed when all the pending RPCs finished or + // failed.). + // If GoAway and some network I/O error happen concurrently, ac and its underlying transport + // are closed. + // In both cases, a new ac is created. + select { + case <-t.Error(): + ac.cc.resetAddrConn(ac.addr, true, errNetworkIO) + default: + ac.cc.resetAddrConn(ac.addr, true, errConnDrain) + } + return + case <-t.Error(): + select { + case <-ac.ctx.Done(): + t.Close() + return + case <-t.GoAway(): + ac.cc.resetAddrConn(ac.addr, true, errNetworkIO) + return + default: + } + ac.mu.Lock() + if ac.state == Shutdown { + // ac has been shutdown. + 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) + if err != errConnClosing { + // Keep this ac in cc.conns, to get the reason it's torn down. + ac.tearDown(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 there is a balancer/failfast is true. +func (ac *addrConn) wait(ctx context.Context, hasBalancer, failfast bool) (transport.ClientTransport, error) { + for { + ac.mu.Lock() + switch { + case ac.state == Shutdown: + if failfast || !hasBalancer { + // RPC is failfast or balancer is nil. This RPC should fail with ac.tearDownErr. + err := ac.tearDownErr + ac.mu.Unlock() + return nil, err + } + ac.mu.Unlock() + return nil, errConnClosing + case ac.state == Ready: + ct := ac.transport + ac.mu.Unlock() + return ct, nil + case ac.state == TransientFailure: + if failfast || hasBalancer { + ac.mu.Unlock() + return nil, errConnUnavailable + } + } + 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. +// tearDown doesn't remove ac from ac.cc.conns. +func (ac *addrConn) tearDown(err error) { + ac.cancel() + + ac.mu.Lock() + defer ac.mu.Unlock() + if ac.down != nil { + ac.down(downErrorf(false, false, "%v", err)) + ac.down = nil + } + if err == errConnDrain && ac.transport != nil { + // GracefulClose(...) may be executed multiple times when + // i) receiving multiple GoAway frames from the server; or + // ii) there are concurrent name resolver/Balancer triggered + // address removal and GoAway. + ac.transport.GracefulClose() + } + if ac.state == Shutdown { + return + } + ac.state = Shutdown + ac.tearDownErr = err + 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 && err != errConnDrain { + ac.transport.Close() + } + return +} diff --git a/vendor/google.golang.org/grpc/codes/code_string.go b/vendor/google.golang.org/grpc/codes/code_string.go new file mode 100644 index 000000000..e6762d084 --- /dev/null +++ b/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/vendor/google.golang.org/grpc/codes/codes.go b/vendor/google.golang.org/grpc/codes/codes.go new file mode 100644 index 000000000..e14b464ac --- /dev/null +++ b/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 // import "google.golang.org/grpc/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/vendor/google.golang.org/grpc/credentials/credentials.go b/vendor/google.golang.org/grpc/credentials/credentials.go new file mode 100644 index 000000000..4d45c3e3c --- /dev/null +++ b/vendor/google.golang.org/grpc/credentials/credentials.go @@ -0,0 +1,230 @@ +/* + * + * 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 "google.golang.org/grpc/credentials" + +import ( + "crypto/tls" + "crypto/x509" + "errors" + "fmt" + "io/ioutil" + "net" + "strings" + + "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, server name, 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 + // ServerName is the user-configured server name. + ServerName string +} + +// AuthInfo defines the common interface for the auth information the users are interested in. +type AuthInfo interface { + AuthType() string +} + +var ( + // ErrConnDispatched indicates that rawConn has been dispatched out of gRPC + // and the caller should not close rawConn. + ErrConnDispatched = errors.New("credentials: rawConn is dispatched out of gRPC") +) + +// 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. + // Implementations must use the provided context to implement timely cancellation. + ClientHandshake(context.Context, string, net.Conn) (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(net.Conn) (net.Conn, AuthInfo, error) + // Info provides the ProtocolInfo of this TransportCredentials. + Info() ProtocolInfo + // Clone makes a copy of this TransportCredentials. + Clone() TransportCredentials + // OverrideServerName overrides the server name used to verify the hostname on the returned certificates from the server. + // gRPC internals also use it to override the virtual hosting name if it is set. + // It must be called before dialing. Currently, this is only used by grpclb. + OverrideServerName(string) error +} + +// 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", + ServerName: c.config.ServerName, + } +} + +func (c *tlsCreds) ClientHandshake(ctx context.Context, addr string, rawConn net.Conn) (_ net.Conn, _ AuthInfo, err error) { + // use local cfg to avoid clobbering ServerName if using multiple endpoints + cfg := cloneTLSConfig(c.config) + if cfg.ServerName == "" { + colonPos := strings.LastIndex(addr, ":") + if colonPos == -1 { + colonPos = len(addr) + } + cfg.ServerName = addr[:colonPos] + } + conn := tls.Client(rawConn, cfg) + errChannel := make(chan error, 1) + go func() { + errChannel <- conn.Handshake() + }() + select { + case err := <-errChannel: + if err != nil { + return nil, nil, err + } + case <-ctx.Done(): + return nil, nil, ctx.Err() + } + return conn, TLSInfo{conn.ConnectionState()}, nil +} + +func (c *tlsCreds) ServerHandshake(rawConn net.Conn) (net.Conn, AuthInfo, error) { + conn := tls.Server(rawConn, c.config) + if err := conn.Handshake(); err != nil { + return nil, nil, err + } + return conn, TLSInfo{conn.ConnectionState()}, nil +} + +func (c *tlsCreds) Clone() TransportCredentials { + return NewTLS(c.config) +} + +func (c *tlsCreds) OverrideServerName(serverNameOverride string) error { + c.config.ServerName = serverNameOverride + return nil +} + +// NewTLS uses c to construct a TransportCredentials based on TLS. +func NewTLS(c *tls.Config) TransportCredentials { + tc := &tlsCreds{cloneTLSConfig(c)} + tc.config.NextProtos = alpnProtoStr + return tc +} + +// NewClientTLSFromCert constructs a TLS from the input certificate for client. +// serverNameOverride is for testing only. If set to a non empty string, +// it will override the virtual host name of authority (e.g. :authority header field) in requests. +func NewClientTLSFromCert(cp *x509.CertPool, serverNameOverride string) TransportCredentials { + return NewTLS(&tls.Config{ServerName: serverNameOverride, RootCAs: cp}) +} + +// NewClientTLSFromFile constructs a TLS from the input certificate file for client. +// serverNameOverride is for testing only. If set to a non empty string, +// it will override the virtual host name of authority (e.g. :authority header field) in requests. +func NewClientTLSFromFile(certFile, serverNameOverride 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: serverNameOverride, 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/vendor/google.golang.org/grpc/credentials/credentials_util_go17.go b/vendor/google.golang.org/grpc/credentials/credentials_util_go17.go new file mode 100644 index 000000000..7597b09e3 --- /dev/null +++ b/vendor/google.golang.org/grpc/credentials/credentials_util_go17.go @@ -0,0 +1,75 @@ +// +build go1.7 +// +build !go1.8 + +/* + * + * 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 credentials + +import ( + "crypto/tls" +) + +// cloneTLSConfig returns a shallow clone of the exported +// fields of cfg, ignoring the unexported sync.Once, which +// contains a mutex and must not be copied. +// +// If cfg is nil, a new zero tls.Config is returned. +func cloneTLSConfig(cfg *tls.Config) *tls.Config { + if cfg == nil { + return &tls.Config{} + } + return &tls.Config{ + Rand: cfg.Rand, + 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, + SessionTicketsDisabled: cfg.SessionTicketsDisabled, + SessionTicketKey: cfg.SessionTicketKey, + ClientSessionCache: cfg.ClientSessionCache, + MinVersion: cfg.MinVersion, + MaxVersion: cfg.MaxVersion, + CurvePreferences: cfg.CurvePreferences, + DynamicRecordSizingDisabled: cfg.DynamicRecordSizingDisabled, + Renegotiation: cfg.Renegotiation, + } +} diff --git a/vendor/google.golang.org/grpc/credentials/credentials_util_go18.go b/vendor/google.golang.org/grpc/credentials/credentials_util_go18.go new file mode 100644 index 000000000..0ecf342da --- /dev/null +++ b/vendor/google.golang.org/grpc/credentials/credentials_util_go18.go @@ -0,0 +1,53 @@ +// +build go1.8 + +/* + * + * Copyright 2017, 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 + +import ( + "crypto/tls" +) + +// cloneTLSConfig returns a shallow clone of the exported +// fields of cfg, ignoring the unexported sync.Once, which +// contains a mutex and must not be copied. +// +// If cfg is nil, a new zero tls.Config is returned. +func cloneTLSConfig(cfg *tls.Config) *tls.Config { + if cfg == nil { + return &tls.Config{} + } + + return cfg.Clone() +} diff --git a/vendor/google.golang.org/grpc/credentials/credentials_util_pre_go17.go b/vendor/google.golang.org/grpc/credentials/credentials_util_pre_go17.go new file mode 100644 index 000000000..cfd40dfa3 --- /dev/null +++ b/vendor/google.golang.org/grpc/credentials/credentials_util_pre_go17.go @@ -0,0 +1,72 @@ +// +build !go1.7 + +/* + * + * 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 credentials + +import ( + "crypto/tls" +) + +// cloneTLSConfig returns a shallow clone of the exported +// fields of cfg, ignoring the unexported sync.Once, which +// contains a mutex and must not be copied. +// +// If cfg is nil, a new zero tls.Config is returned. +func cloneTLSConfig(cfg *tls.Config) *tls.Config { + if cfg == nil { + return &tls.Config{} + } + return &tls.Config{ + Rand: cfg.Rand, + 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, + SessionTicketsDisabled: cfg.SessionTicketsDisabled, + SessionTicketKey: cfg.SessionTicketKey, + ClientSessionCache: cfg.ClientSessionCache, + MinVersion: cfg.MinVersion, + MaxVersion: cfg.MaxVersion, + CurvePreferences: cfg.CurvePreferences, + } +} diff --git a/vendor/google.golang.org/grpc/doc.go b/vendor/google.golang.org/grpc/doc.go new file mode 100644 index 000000000..a35f21885 --- /dev/null +++ b/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 // import "google.golang.org/grpc" diff --git a/vendor/google.golang.org/grpc/grpclog/logger.go b/vendor/google.golang.org/grpc/grpclog/logger.go new file mode 100644 index 000000000..3b2933079 --- /dev/null +++ b/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 "google.golang.org/grpc/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/vendor/google.golang.org/grpc/interceptor.go b/vendor/google.golang.org/grpc/interceptor.go new file mode 100644 index 000000000..8d932efed --- /dev/null +++ b/vendor/google.golang.org/grpc/interceptor.go @@ -0,0 +1,90 @@ +/* + * + * 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" +) + +// UnaryInvoker is called by UnaryClientInterceptor to complete RPCs. +type UnaryInvoker func(ctx context.Context, method string, req, reply interface{}, cc *ClientConn, opts ...CallOption) error + +// UnaryClientInterceptor intercepts the execution of a unary RPC on the client. inovker is the handler to complete the RPC +// and it is the responsibility of the interceptor to call it. +// This is the EXPERIMENTAL API. +type UnaryClientInterceptor func(ctx context.Context, method string, req, reply interface{}, cc *ClientConn, invoker UnaryInvoker, opts ...CallOption) error + +// Streamer is called by StreamClientInterceptor to create a ClientStream. +type Streamer func(ctx context.Context, desc *StreamDesc, cc *ClientConn, method string, opts ...CallOption) (ClientStream, error) + +// StreamClientInterceptor intercepts the creation of ClientStream. It may return a custom ClientStream to intercept all I/O +// operations. streamer is the handlder to create a ClientStream and it is the responsibility of the interceptor to call it. +// This is the EXPERIMENTAL API. +type StreamClientInterceptor func(ctx context.Context, desc *StreamDesc, cc *ClientConn, method string, streamer Streamer, opts ...CallOption) (ClientStream, error) + +// 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/vendor/google.golang.org/grpc/internal/internal.go b/vendor/google.golang.org/grpc/internal/internal.go new file mode 100644 index 000000000..5489143a8 --- /dev/null +++ b/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/vendor/google.golang.org/grpc/keepalive/keepalive.go b/vendor/google.golang.org/grpc/keepalive/keepalive.go new file mode 100644 index 000000000..20672e49d --- /dev/null +++ b/vendor/google.golang.org/grpc/keepalive/keepalive.go @@ -0,0 +1,52 @@ +/* + * + * Copyright 2017, 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 keepalive defines configurable parameters for point-to-point healthcheck. +package keepalive + +import ( + "time" +) + +// ClientParameters is used to set keepalive parameters on the client-side. +// These configure how the client will actively probe to notice when a connection broken +// and to cause activity so intermediaries are aware the connection is still in use. +type ClientParameters struct { + // After a duration of this time if the client doesn't see any activity it pings the server to see if the transport is still alive. + Time time.Duration // The current default value is infinity. + // After having pinged for keepalive check, the client waits for a duration of Timeout and if no activity is seen even after that + // the connection is closed. + Timeout time.Duration // The current default value is 20 seconds. + // If true, client runs keepalive checks even with no active RPCs. + PermitWithoutStream bool +} diff --git a/vendor/google.golang.org/grpc/metadata/metadata.go b/vendor/google.golang.org/grpc/metadata/metadata.go new file mode 100644 index 000000000..733239502 --- /dev/null +++ b/vendor/google.golang.org/grpc/metadata/metadata.go @@ -0,0 +1,152 @@ +/* + * + * 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. +// Please refer to http://www.grpc.io/docs/guides/wire.html for more information about custom-metadata. +package metadata // import "google.golang.org/grpc/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. +// If k is a binary header and v contains comma, v is split on comma before decoded, +// and the decoded v will be joined with comma before returned. +func DecodeKeyValue(k, v string) (string, string, error) { + if !strings.HasSuffix(k, binHdrSuffix) { + return k, v, nil + } + vvs := strings.Split(v, ",") + for i, vv := range vvs { + val, err := base64.StdEncoding.DecodeString(vv) + if err != nil { + return "", "", err + } + vvs[i] = string(val) + } + return k, strings.Join(vvs, ","), 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. +// Keys are automatically converted to lowercase. And for keys having "-bin" as suffix, their values will be applied Base64 encoding. +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. +// Keys are automatically converted to lowercase. And for keys having "-bin" as suffix, their values will be appplied Base64 encoding. +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 { + return Join(md) +} + +// Join joins any number of MDs into a single MD. +// The order of values for each key is determined by the order in which +// the MDs containing those values are presented to Join. +func Join(mds ...MD) MD { + out := MD{} + for _, md := range mds { + for k, v := range md { + out[k] = append(out[k], v...) + } + } + 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. +// The returned md should be immutable, writing to it may cause races. +// Modification should be made to the copies of the returned md. +func FromContext(ctx context.Context) (md MD, ok bool) { + md, ok = ctx.Value(mdKey{}).(MD) + return +} diff --git a/vendor/google.golang.org/grpc/naming/naming.go b/vendor/google.golang.org/grpc/naming/naming.go new file mode 100644 index 000000000..c2e0871e6 --- /dev/null +++ b/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/vendor/google.golang.org/grpc/peer/peer.go b/vendor/google.golang.org/grpc/peer/peer.go new file mode 100644 index 000000000..bfa6205ba --- /dev/null +++ b/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/vendor/google.golang.org/grpc/rpc_util.go b/vendor/google.golang.org/grpc/rpc_util.go new file mode 100644 index 000000000..73c3a9665 --- /dev/null +++ b/vendor/google.golang.org/grpc/rpc_util.go @@ -0,0 +1,529 @@ +/* + * + * 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" + "time" + + "github.com/golang/protobuf/proto" + "golang.org/x/net/context" + "google.golang.org/grpc/codes" + "google.golang.org/grpc/metadata" + "google.golang.org/grpc/peer" + "google.golang.org/grpc/stats" + "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 + peer *peer.Peer + 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 + }) +} + +// Peer returns a CallOption that retrieves peer information for a +// unary RPC. +func Peer(peer *peer.Peer) CallOption { + return afterCall(func(c *callInfo) { + *peer = *c.peer + }) +} + +// 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. Note: failFast is default to true. +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(maxMsgSize int) (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 + } + if length > uint32(maxMsgSize) { + return 0, nil, Errorf(codes.Internal, "grpc: received message length %d exceeding the max size %d", length, maxMsgSize) + } + // 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, outPayload *stats.OutPayload) ([]byte, error) { + var ( + b []byte + 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 outPayload != nil { + outPayload.Payload = msg + // TODO truncate large payload. + outPayload.Data = b + outPayload.Length = len(b) + } + 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) + + if outPayload != nil { + outPayload.WireLength = len(buf) + } + + 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 Errorf(codes.Unimplemented, "grpc: Decompressor is not installed for grpc-encoding %q", recvCompress) + } + default: + return Errorf(codes.Internal, "grpc: received unexpected payload format %d", pf) + } + return nil +} + +func recv(p *parser, c Codec, s *transport.Stream, dc Decompressor, m interface{}, maxMsgSize int, inPayload *stats.InPayload) error { + pf, d, err := p.recvMsg(maxMsgSize) + if err != nil { + return err + } + if inPayload != nil { + inPayload.WireLength = len(d) + } + 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 Errorf(codes.Internal, "grpc: failed to decompress the received message %v", err) + } + } + if len(d) > maxMsgSize { + // TODO: Revisit the error code. Currently keep it consistent with java + // implementation. + return Errorf(codes.Internal, "grpc: received a message of %d bytes exceeding %d limit", len(d), maxMsgSize) + } + if err := c.Unmarshal(d, m); err != nil { + return Errorf(codes.Internal, "grpc: failed to unmarshal the received message %v", err) + } + if inPayload != nil { + inPayload.RecvTime = time.Now() + inPayload.Payload = m + // TODO truncate large payload. + inPayload.Data = d + inPayload.Length = len(d) + } + 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 = %s 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 +} + +// MethodConfig defines the configuration recommended by the service providers for a +// particular method. +// This is EXPERIMENTAL and subject to change. +type MethodConfig struct { + // WaitForReady indicates whether RPCs sent to this method should wait until + // the connection is ready by default (!failfast). The value specified via the + // gRPC client API will override the value set here. + WaitForReady bool + // Timeout is the default timeout for RPCs sent to this method. The actual + // deadline used will be the minimum of the value specified here and the value + // set by the application via the gRPC client API. If either one is not set, + // then the other will be used. If neither is set, then the RPC has no deadline. + Timeout time.Duration + // MaxReqSize is the maximum allowed payload size for an individual request in a + // stream (client->server) in bytes. The size which is measured is the serialized + // payload after per-message compression (but before stream compression) in bytes. + // The actual value used is the minumum of the value specified here and the value set + // by the application via the gRPC client API. If either one is not set, then the other + // will be used. If neither is set, then the built-in default is used. + // TODO: support this. + MaxReqSize uint32 + // MaxRespSize is the maximum allowed payload size for an individual response in a + // stream (server->client) in bytes. + // TODO: support this. + MaxRespSize uint32 +} + +// ServiceConfig is provided by the service provider and contains parameters for how +// clients that connect to the service should behave. +// This is EXPERIMENTAL and subject to change. +type ServiceConfig struct { + // LB is the load balancer the service providers recommends. The balancer specified + // via grpc.WithBalancer will override this. + LB Balancer + // Methods contains a map for the methods in this service. + Methods map[string]MethodConfig +} + +// SupportPackageIsVersion4 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 SupportPackageIsVersion4 = true diff --git a/vendor/google.golang.org/grpc/server.go b/vendor/google.golang.org/grpc/server.go new file mode 100644 index 000000000..157f35eea --- /dev/null +++ b/vendor/google.golang.org/grpc/server.go @@ -0,0 +1,1085 @@ +/* + * + * 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/stats" + "google.golang.org/grpc/tap" + "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 + drain bool + ctx context.Context + cancel context.CancelFunc + // A CondVar to let GracefulStop() blocks until all the pending RPCs are finished + // and all the transport goes away. + cv *sync.Cond + m map[string]*service // service name -> service info + events trace.EventLog +} + +type options struct { + creds credentials.TransportCredentials + codec Codec + cp Compressor + dc Decompressor + maxMsgSize int + unaryInt UnaryServerInterceptor + streamInt StreamServerInterceptor + inTapHandle tap.ServerInHandle + statsHandler stats.Handler + maxConcurrentStreams uint32 + useHandlerImpl bool // use http.Handler-based server + unknownStreamDesc *StreamDesc +} + +var defaultMaxMsgSize = 1024 * 1024 * 4 // use 4MB as the default message size limit + +// 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 messages. +func RPCCompressor(cp Compressor) ServerOption { + return func(o *options) { + o.cp = cp + } +} + +// RPCDecompressor returns a ServerOption that sets a decompressor for inbound messages. +func RPCDecompressor(dc Decompressor) ServerOption { + return func(o *options) { + o.dc = dc + } +} + +// MaxMsgSize returns a ServerOption to set the max message size in bytes for inbound mesages. +// If this is not set, gRPC uses the default 4MB. +func MaxMsgSize(m int) ServerOption { + return func(o *options) { + o.maxMsgSize = m + } +} + +// 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 + } +} + +// InTapHandle returns a ServerOption that sets the tap handle for all the server +// transport to be created. Only one can be installed. +func InTapHandle(h tap.ServerInHandle) ServerOption { + return func(o *options) { + if o.inTapHandle != nil { + panic("The tap handle has been set.") + } + o.inTapHandle = h + } +} + +// StatsHandler returns a ServerOption that sets the stats handler for the server. +func StatsHandler(h stats.Handler) ServerOption { + return func(o *options) { + o.statsHandler = h + } +} + +// UnknownServiceHandler returns a ServerOption that allows for adding a custom +// unknown service handler. The provided method is a bidi-streaming RPC service +// handler that will be invoked instead of returning the the "unimplemented" gRPC +// error whenever a request is received for an unregistered service or method. +// The handling function has full access to the Context of the request and the +// stream, and the invocation passes through interceptors. +func UnknownServiceHandler(streamHandler StreamHandler) ServerOption { + return func(o *options) { + o.unknownStreamDesc = &StreamDesc{ + StreamName: "unknown_service_handler", + Handler: streamHandler, + // We need to assume that the users of the streamHandler will want to use both. + ClientStreams: true, + ServerStreams: true, + } + } +} + +// 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 + opts.maxMsgSize = defaultMaxMsgSize + 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), + } + s.cv = sync.NewCond(&s.mu) + s.ctx, s.cancel = context.WithCancel(context.Background()) + 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. +// Serve returns when lis.Accept fails with fatal errors. lis will be closed when +// this method returns. +// Serve always returns non-nil error. +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() + }() + + var tempDelay time.Duration // how long to sleep on accept failure + + for { + rawConn, err := lis.Accept() + if err != nil { + if ne, ok := err.(interface { + Temporary() bool + }); ok && ne.Temporary() { + if tempDelay == 0 { + tempDelay = 5 * time.Millisecond + } else { + tempDelay *= 2 + } + if max := 1 * time.Second; tempDelay > max { + tempDelay = max + } + s.mu.Lock() + s.printf("Accept error: %v; retrying in %v", err, tempDelay) + s.mu.Unlock() + select { + case <-time.After(tempDelay): + case <-s.ctx.Done(): + } + continue + } + s.mu.Lock() + s.printf("done serving; Accept = %v", err) + s.mu.Unlock() + return err + } + tempDelay = 0 + // 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) + // If serverHandShake returns ErrConnDispatched, keep rawConn open. + if err != credentials.ErrConnDispatched { + 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.serveHTTP2Transport(conn, authInfo) + } +} + +// serveHTTP2Transport sets up a 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) serveHTTP2Transport(c net.Conn, authInfo credentials.AuthInfo) { + config := &transport.ServerConfig{ + MaxStreams: s.opts.maxConcurrentStreams, + AuthInfo: authInfo, + InTapHandle: s.opts.inTapHandle, + StatsHandler: s.opts.statsHandler, + } + st, err := transport.NewServerTransport("http2", c, config) + 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)) + }() + }, func(ctx context.Context, method string) context.Context { + if !EnableTracing { + return ctx + } + tr := trace.New("grpc.Recv."+methodFamily(method), method) + return trace.NewContext(ctx, tr) + }) + 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) { + tr, ok := trace.FromContext(stream.Context()) + if !ok { + return nil + } + + trInfo = &traceInfo{ + tr: tr, + } + trInfo.firstLine.client = false + trInfo.firstLine.remoteAddr = st.RemoteAddr() + + 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 || s.drain { + 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) + s.cv.Broadcast() + } +} + +func (s *Server) sendResponse(t transport.ServerTransport, stream *transport.Stream, msg interface{}, cp Compressor, opts *transport.Options) error { + var ( + cbuf *bytes.Buffer + outPayload *stats.OutPayload + ) + if cp != nil { + cbuf = new(bytes.Buffer) + } + if s.opts.statsHandler != nil { + outPayload = &stats.OutPayload{} + } + p, err := encode(s.opts.codec, msg, cp, cbuf, outPayload) + 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) + } + err = t.Write(stream, p, opts) + if err == nil && outPayload != nil { + outPayload.SentTime = time.Now() + s.opts.statsHandler.HandleRPC(stream.Context(), outPayload) + } + return err +} + +func (s *Server) processUnaryRPC(t transport.ServerTransport, stream *transport.Stream, srv *service, md *MethodDesc, trInfo *traceInfo) (err error) { + sh := s.opts.statsHandler + if sh != nil { + begin := &stats.Begin{ + BeginTime: time.Now(), + } + sh.HandleRPC(stream.Context(), begin) + } + defer func() { + if sh != nil { + end := &stats.End{ + EndTime: time.Now(), + } + if err != nil && err != io.EOF { + end.Error = toRPCErr(err) + } + sh.HandleRPC(stream.Context(), end) + } + }() + 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(s.opts.maxMsgSize) + if err == io.EOF { + // The entire stream is done (for unary RPC only). + return err + } + if err == io.ErrUnexpectedEOF { + err = Errorf(codes.Internal, io.ErrUnexpectedEOF.Error()) + } + if err != nil { + switch err := err.(type) { + case *rpcError: + if e := t.WriteStatus(stream, err.code, err.desc); e != nil { + grpclog.Printf("grpc: Server.processUnaryRPC failed to write status %v", e) + } + case transport.ConnectionError: + // Nothing to do here. + case transport.StreamError: + if e := t.WriteStatus(stream, err.Code, err.Desc); e != nil { + grpclog.Printf("grpc: Server.processUnaryRPC failed to write status %v", e) + } + 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 *rpcError: + if e := t.WriteStatus(stream, err.code, err.desc); e != nil { + grpclog.Printf("grpc: Server.processUnaryRPC failed to write status %v", e) + } + return err + default: + if e := t.WriteStatus(stream, codes.Internal, err.Error()); e != nil { + grpclog.Printf("grpc: Server.processUnaryRPC failed to write status %v", e) + } + // TODO checkRecvPayload always return RPC error. Add a return here if necessary. + } + } + var inPayload *stats.InPayload + if sh != nil { + inPayload = &stats.InPayload{ + RecvTime: time.Now(), + } + } + statusCode := codes.OK + statusDesc := "" + df := func(v interface{}) error { + if inPayload != nil { + inPayload.WireLength = len(req) + } + 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 Errorf(codes.Internal, err.Error()) + } + } + if len(req) > s.opts.maxMsgSize { + // TODO: Revisit the error code. Currently keep it consistent with + // java implementation. + statusCode = codes.Internal + statusDesc = fmt.Sprintf("grpc: server received a message of %d bytes exceeding %d limit", len(req), s.opts.maxMsgSize) + } + if err := s.opts.codec.Unmarshal(req, v); err != nil { + return err + } + if inPayload != nil { + inPayload.Payload = v + inPayload.Data = req + inPayload.Length = len(req) + sh.HandleRPC(stream.Context(), inPayload) + } + 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 Errorf(statusCode, statusDesc) + } + 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) + } + errWrite := t.WriteStatus(stream, statusCode, statusDesc) + if statusCode != codes.OK { + return Errorf(statusCode, statusDesc) + } + return errWrite + } +} + +func (s *Server) processStreamingRPC(t transport.ServerTransport, stream *transport.Stream, srv *service, sd *StreamDesc, trInfo *traceInfo) (err error) { + sh := s.opts.statsHandler + if sh != nil { + begin := &stats.Begin{ + BeginTime: time.Now(), + } + sh.HandleRPC(stream.Context(), begin) + } + defer func() { + if sh != nil { + end := &stats.End{ + EndTime: time.Now(), + } + if err != nil && err != io.EOF { + end.Error = toRPCErr(err) + } + sh.HandleRPC(stream.Context(), end) + } + }() + 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, + maxMsgSize: s.opts.maxMsgSize, + trInfo: trInfo, + statsHandler: sh, + } + 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 + var server interface{} + if srv != nil { + server = srv.server + } + if s.opts.streamInt == nil { + appErr = sd.Handler(server, ss) + } else { + info := &StreamServerInfo{ + FullMethod: stream.Method(), + IsClientStream: sd.ClientStreams, + IsServerStream: sd.ServerStreams, + } + appErr = s.opts.streamInt(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() + } + errWrite := t.WriteStatus(ss.s, ss.statusCode, ss.statusDesc) + if ss.statusCode != codes.OK { + return Errorf(ss.statusCode, ss.statusDesc) + } + return errWrite + +} + +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() + } + errDesc := fmt.Sprintf("malformed method name: %q", stream.Method()) + if err := t.WriteStatus(stream, codes.InvalidArgument, errDesc); 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 unknownDesc := s.opts.unknownStreamDesc; unknownDesc != nil { + s.processStreamingRPC(t, stream, nil, unknownDesc, trInfo) + return + } + if trInfo != nil { + trInfo.tr.LazyLog(&fmtStringer{"Unknown service %v", []interface{}{service}}, true) + trInfo.tr.SetError() + } + errDesc := fmt.Sprintf("unknown service %v", service) + if err := t.WriteStatus(stream, codes.Unimplemented, errDesc); 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 unknownDesc := s.opts.unknownStreamDesc; unknownDesc != nil { + s.processStreamingRPC(t, stream, nil, unknownDesc, trInfo) + return + } + errDesc := fmt.Sprintf("unknown method %v", method) + if err := t.WriteStatus(stream, codes.Unimplemented, errDesc); 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 + st := s.conns + s.conns = nil + // interrupt GracefulStop if Stop and GracefulStop are called concurrently. + s.cv.Broadcast() + s.mu.Unlock() + + for lis := range listeners { + lis.Close() + } + for c := range st { + c.Close() + } + + s.mu.Lock() + s.cancel() + if s.events != nil { + s.events.Finish() + s.events = nil + } + s.mu.Unlock() +} + +// GracefulStop stops the gRPC server gracefully. It stops the server to accept new +// connections and RPCs and blocks until all the pending RPCs are finished. +func (s *Server) GracefulStop() { + s.mu.Lock() + defer s.mu.Unlock() + if s.conns == nil { + return + } + for lis := range s.lis { + lis.Close() + } + s.lis = nil + s.cancel() + if !s.drain { + for c := range s.conns { + c.(transport.ServerTransport).Drain() + } + s.drain = true + } + for len(s.conns) != 0 { + s.cv.Wait() + } + s.conns = nil + if s.events != nil { + s.events.Finish() + s.events = nil + } +} + +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() +} + +// SetHeader sets the header metadata. +// When called multiple times, all the provided metadata will be merged. +// All the metadata will be sent out when one of the following happens: +// - grpc.SendHeader() is called; +// - The first response is sent out; +// - An RPC status is sent out (error or success). +func SetHeader(ctx context.Context, md metadata.MD) error { + if md.Len() == 0 { + return nil + } + stream, ok := transport.StreamFromContext(ctx) + if !ok { + return Errorf(codes.Internal, "grpc: failed to fetch the stream from the context %v", ctx) + } + return stream.SetHeader(md) +} + +// SendHeader sends header metadata. It may be called at most once. +// The provided md and headers set by SetHeader() will be sent. +func SendHeader(ctx context.Context, md metadata.MD) error { + stream, ok := transport.StreamFromContext(ctx) + if !ok { + return Errorf(codes.Internal, "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) + } + if err := t.WriteHeader(stream, md); err != nil { + return toRPCErr(err) + } + return nil +} + +// SetTrailer sets the trailer metadata that will be sent when an RPC returns. +// When called more than once, all the provided metadata will be merged. +func SetTrailer(ctx context.Context, md metadata.MD) error { + if md.Len() == 0 { + return nil + } + stream, ok := transport.StreamFromContext(ctx) + if !ok { + return Errorf(codes.Internal, "grpc: failed to fetch the stream from the context %v", ctx) + } + return stream.SetTrailer(md) +} diff --git a/vendor/google.golang.org/grpc/stats/handlers.go b/vendor/google.golang.org/grpc/stats/handlers.go new file mode 100644 index 000000000..26e1a8e2f --- /dev/null +++ b/vendor/google.golang.org/grpc/stats/handlers.go @@ -0,0 +1,76 @@ +/* + * + * 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 stats + +import ( + "net" + + "golang.org/x/net/context" +) + +// ConnTagInfo defines the relevant information needed by connection context tagger. +type ConnTagInfo struct { + // RemoteAddr is the remote address of the corresponding connection. + RemoteAddr net.Addr + // LocalAddr is the local address of the corresponding connection. + LocalAddr net.Addr + // TODO add QOS related fields. +} + +// RPCTagInfo defines the relevant information needed by RPC context tagger. +type RPCTagInfo struct { + // FullMethodName is the RPC method in the format of /package.service/method. + FullMethodName string +} + +// Handler defines the interface for the related stats handling (e.g., RPCs, connections). +type Handler interface { + // TagRPC can attach some information to the given context. + // The returned context is used in the rest lifetime of the RPC. + TagRPC(context.Context, *RPCTagInfo) context.Context + // HandleRPC processes the RPC stats. + HandleRPC(context.Context, RPCStats) + + // TagConn can attach some information to the given context. + // The returned context will be used for stats handling. + // For conn stats handling, the context used in HandleConn for this + // connection will be derived from the context returned. + // For RPC stats handling, + // - On server side, the context used in HandleRPC for all RPCs on this + // connection will be derived from the context returned. + // - On client side, the context is not derived from the context returned. + TagConn(context.Context, *ConnTagInfo) context.Context + // HandleConn processes the Conn stats. + HandleConn(context.Context, ConnStats) +} diff --git a/vendor/google.golang.org/grpc/stats/stats.go b/vendor/google.golang.org/grpc/stats/stats.go new file mode 100644 index 000000000..a82448a68 --- /dev/null +++ b/vendor/google.golang.org/grpc/stats/stats.go @@ -0,0 +1,223 @@ +/* + * + * 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 stats is for collecting and reporting various network and RPC stats. +// This package is for monitoring purpose only. All fields are read-only. +// All APIs are experimental. +package stats // import "google.golang.org/grpc/stats" + +import ( + "net" + "time" +) + +// RPCStats contains stats information about RPCs. +type RPCStats interface { + isRPCStats() + // IsClient returns true if this RPCStats is from client side. + IsClient() bool +} + +// Begin contains stats when an RPC begins. +// FailFast are only valid if Client is true. +type Begin struct { + // Client is true if this Begin is from client side. + Client bool + // BeginTime is the time when the RPC begins. + BeginTime time.Time + // FailFast indicates if this RPC is failfast. + FailFast bool +} + +// IsClient indicates if this is from client side. +func (s *Begin) IsClient() bool { return s.Client } + +func (s *Begin) isRPCStats() {} + +// InPayload contains the information for an incoming payload. +type InPayload struct { + // Client is true if this InPayload is from client side. + Client bool + // Payload is the payload with original type. + Payload interface{} + // Data is the serialized message payload. + Data []byte + // Length is the length of uncompressed data. + Length int + // WireLength is the length of data on wire (compressed, signed, encrypted). + WireLength int + // RecvTime is the time when the payload is received. + RecvTime time.Time +} + +// IsClient indicates if this is from client side. +func (s *InPayload) IsClient() bool { return s.Client } + +func (s *InPayload) isRPCStats() {} + +// InHeader contains stats when a header is received. +// FullMethod, addresses and Compression are only valid if Client is false. +type InHeader struct { + // Client is true if this InHeader is from client side. + Client bool + // WireLength is the wire length of header. + WireLength int + + // FullMethod is the full RPC method string, i.e., /package.service/method. + FullMethod string + // RemoteAddr is the remote address of the corresponding connection. + RemoteAddr net.Addr + // LocalAddr is the local address of the corresponding connection. + LocalAddr net.Addr + // Compression is the compression algorithm used for the RPC. + Compression string +} + +// IsClient indicates if this is from client side. +func (s *InHeader) IsClient() bool { return s.Client } + +func (s *InHeader) isRPCStats() {} + +// InTrailer contains stats when a trailer is received. +type InTrailer struct { + // Client is true if this InTrailer is from client side. + Client bool + // WireLength is the wire length of trailer. + WireLength int +} + +// IsClient indicates if this is from client side. +func (s *InTrailer) IsClient() bool { return s.Client } + +func (s *InTrailer) isRPCStats() {} + +// OutPayload contains the information for an outgoing payload. +type OutPayload struct { + // Client is true if this OutPayload is from client side. + Client bool + // Payload is the payload with original type. + Payload interface{} + // Data is the serialized message payload. + Data []byte + // Length is the length of uncompressed data. + Length int + // WireLength is the length of data on wire (compressed, signed, encrypted). + WireLength int + // SentTime is the time when the payload is sent. + SentTime time.Time +} + +// IsClient indicates if this is from client side. +func (s *OutPayload) IsClient() bool { return s.Client } + +func (s *OutPayload) isRPCStats() {} + +// OutHeader contains stats when a header is sent. +// FullMethod, addresses and Compression are only valid if Client is true. +type OutHeader struct { + // Client is true if this OutHeader is from client side. + Client bool + // WireLength is the wire length of header. + WireLength int + + // FullMethod is the full RPC method string, i.e., /package.service/method. + FullMethod string + // RemoteAddr is the remote address of the corresponding connection. + RemoteAddr net.Addr + // LocalAddr is the local address of the corresponding connection. + LocalAddr net.Addr + // Compression is the compression algorithm used for the RPC. + Compression string +} + +// IsClient indicates if this is from client side. +func (s *OutHeader) IsClient() bool { return s.Client } + +func (s *OutHeader) isRPCStats() {} + +// OutTrailer contains stats when a trailer is sent. +type OutTrailer struct { + // Client is true if this OutTrailer is from client side. + Client bool + // WireLength is the wire length of trailer. + WireLength int +} + +// IsClient indicates if this is from client side. +func (s *OutTrailer) IsClient() bool { return s.Client } + +func (s *OutTrailer) isRPCStats() {} + +// End contains stats when an RPC ends. +type End struct { + // Client is true if this End is from client side. + Client bool + // EndTime is the time when the RPC ends. + EndTime time.Time + // Error is the error just happened. Its type is gRPC error. + Error error +} + +// IsClient indicates if this is from client side. +func (s *End) IsClient() bool { return s.Client } + +func (s *End) isRPCStats() {} + +// ConnStats contains stats information about connections. +type ConnStats interface { + isConnStats() + // IsClient returns true if this ConnStats is from client side. + IsClient() bool +} + +// ConnBegin contains the stats of a connection when it is established. +type ConnBegin struct { + // Client is true if this ConnBegin is from client side. + Client bool +} + +// IsClient indicates if this is from client side. +func (s *ConnBegin) IsClient() bool { return s.Client } + +func (s *ConnBegin) isConnStats() {} + +// ConnEnd contains the stats of a connection when it ends. +type ConnEnd struct { + // Client is true if this ConnEnd is from client side. + Client bool +} + +// IsClient indicates if this is from client side. +func (s *ConnEnd) IsClient() bool { return s.Client } + +func (s *ConnEnd) isConnStats() {} diff --git a/vendor/google.golang.org/grpc/stream.go b/vendor/google.golang.org/grpc/stream.go new file mode 100644 index 000000000..0ef2077ce --- /dev/null +++ b/vendor/google.golang.org/grpc/stream.go @@ -0,0 +1,626 @@ +/* + * + * 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/stats" + "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, if there is any. + // It must only be called after stream.CloseAndRecv has returned, or + // stream.Recv has returned a non-nil error (including io.EOF). + 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, err error) { + if cc.dopts.streamInt != nil { + return cc.dopts.streamInt(ctx, desc, cc, method, newClientStream, opts...) + } + return newClientStream(ctx, desc, cc, method, opts...) +} + +func newClientStream(ctx context.Context, desc *StreamDesc, cc *ClientConn, method string, opts ...CallOption) (_ ClientStream, err error) { + var ( + t transport.ClientTransport + s *transport.Stream + put func() + cancel context.CancelFunc + ) + c := defaultCallInfo + if mc, ok := cc.getMethodConfig(method); ok { + c.failFast = !mc.WaitForReady + if mc.Timeout > 0 { + ctx, cancel = context.WithTimeout(ctx, mc.Timeout) + } + } + 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() + } + var trInfo traceInfo + if EnableTracing { + trInfo.tr = trace.New("grpc.Sent."+methodFamily(method), method) + trInfo.firstLine.client = true + if deadline, ok := ctx.Deadline(); ok { + trInfo.firstLine.deadline = deadline.Sub(time.Now()) + } + trInfo.tr.LazyLog(&trInfo.firstLine, false) + ctx = trace.NewContext(ctx, trInfo.tr) + defer func() { + if err != nil { + // Need to call tr.finish() if error is returned. + // Because tr will not be returned to caller. + trInfo.tr.LazyPrintf("RPC: [%v]", err) + trInfo.tr.SetError() + trInfo.tr.Finish() + } + }() + } + sh := cc.dopts.copts.StatsHandler + if sh != nil { + ctx = sh.TagRPC(ctx, &stats.RPCTagInfo{FullMethodName: method}) + begin := &stats.Begin{ + Client: true, + BeginTime: time.Now(), + FailFast: c.failFast, + } + sh.HandleRPC(ctx, begin) + } + defer func() { + if err != nil && sh != nil { + // Only handle end stats if err != nil. + end := &stats.End{ + Client: true, + Error: err, + } + sh.HandleRPC(ctx, end) + } + }() + 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 || err == errConnUnavailable { + if c.failFast { + return nil, Errorf(codes.Unavailable, "%v", err) + } + 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 || err == transport.ErrStreamDrain { + if c.failFast { + return nil, toRPCErr(err) + } + continue + } + return nil, toRPCErr(err) + } + break + } + cs := &clientStream{ + opts: opts, + c: c, + desc: desc, + codec: cc.dopts.codec, + cp: cc.dopts.cp, + dc: cc.dopts.dc, + maxMsgSize: cc.dopts.maxMsgSize, + cancel: cancel, + + put: put, + t: t, + s: s, + p: &parser{r: s}, + + tracing: EnableTracing, + trInfo: trInfo, + + statsCtx: ctx, + statsHandler: cc.dopts.copts.StatsHandler, + } + if cc.dopts.cp != nil { + cs.cbuf = new(bytes.Buffer) + } + // Listen on ctx.Done() to detect cancellation and s.Done() to detect normal termination + // when there is no pending I/O operations on this stream. + go func() { + select { + case <-t.Error(): + // Incur transport error, simply exit. + case <-s.Done(): + // TODO: The trace of the RPC is terminated here when there is no pending + // I/O, which is probably not the optimal solution. + if s.StatusCode() == codes.OK { + cs.finish(nil) + } else { + cs.finish(Errorf(s.StatusCode(), "%s", s.StatusDesc())) + } + cs.closeTransportStream(nil) + case <-s.GoAway(): + cs.finish(errConnDrain) + cs.closeTransportStream(errConnDrain) + 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 + maxMsgSize int + cancel context.CancelFunc + + 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 + + // statsCtx keeps the user context for stats handling. + // All stats collection should use the statsCtx (instead of the stream context) + // so that all the generated stats for a particular RPC can be associated in the processing phase. + statsCtx context.Context + statsHandler stats.Handler +} + +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() + } + // TODO Investigate how to signal the stats handling party. + // generate error stats if err != nil && err != io.EOF? + defer func() { + if err != nil { + cs.finish(err) + } + if err == nil { + return + } + if err == io.EOF { + // Specialize the process for server streaming. SendMesg is only called + // once when creating the stream object. io.EOF needs to be skipped when + // the rpc is early finished (before the stream object is created.). + // TODO: It is probably better to move this into the generated code. + if !cs.desc.ClientStreams && cs.desc.ServerStreams { + err = nil + } + return + } + if _, ok := err.(transport.ConnectionError); !ok { + cs.closeTransportStream(err) + } + err = toRPCErr(err) + }() + var outPayload *stats.OutPayload + if cs.statsHandler != nil { + outPayload = &stats.OutPayload{ + Client: true, + } + } + out, err := encode(cs.codec, m, cs.cp, cs.cbuf, outPayload) + defer func() { + if cs.cbuf != nil { + cs.cbuf.Reset() + } + }() + if err != nil { + return Errorf(codes.Internal, "grpc: %v", err) + } + err = cs.t.Write(cs.s, out, &transport.Options{Last: false}) + if err == nil && outPayload != nil { + outPayload.SentTime = time.Now() + cs.statsHandler.HandleRPC(cs.statsCtx, outPayload) + } + return err +} + +func (cs *clientStream) RecvMsg(m interface{}) (err error) { + defer func() { + if err != nil && cs.statsHandler != nil { + // Only generate End if err != nil. + // If err == nil, it's not the last RecvMsg. + // The last RecvMsg gets either an RPC error or io.EOF. + end := &stats.End{ + Client: true, + EndTime: time.Now(), + } + if err != io.EOF { + end.Error = toRPCErr(err) + } + cs.statsHandler.HandleRPC(cs.statsCtx, end) + } + }() + var inPayload *stats.InPayload + if cs.statsHandler != nil { + inPayload = &stats.InPayload{ + Client: true, + } + } + err = recv(cs.p, cs.codec, cs.s, cs.dc, m, cs.maxMsgSize, inPayload) + 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 inPayload != nil { + cs.statsHandler.HandleRPC(cs.statsCtx, inPayload) + } + if !cs.desc.ClientStreams || cs.desc.ServerStreams { + return + } + // Special handling for client streaming rpc. + // This recv expects EOF or errors, so we don't collect inPayload. + err = recv(cs.p, cs.codec, cs.s, cs.dc, m, cs.maxMsgSize, nil) + 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 nil + } + 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) { + defer func() { + if cs.cancel != nil { + cs.cancel() + } + }() + 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 { + // SetHeader sets the header metadata. It may be called multiple times. + // When call multiple times, all the provided metadata will be merged. + // All the metadata will be sent out when one of the following happens: + // - ServerStream.SendHeader() is called; + // - The first response is sent out; + // - An RPC status is sent out (error or success). + SetHeader(metadata.MD) error + // SendHeader sends the header metadata. + // The provided md and headers set by SetHeader() will be sent. + // It fails if called multiple times. + SendHeader(metadata.MD) error + // SetTrailer sets the trailer metadata which will be sent with the RPC status. + // When called more than once, all the provided metadata will be merged. + 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 + maxMsgSize int + statusCode codes.Code + statusDesc string + trInfo *traceInfo + + statsHandler stats.Handler + + mu sync.Mutex // protects trInfo.tr after the service handler runs. +} + +func (ss *serverStream) Context() context.Context { + return ss.s.Context() +} + +func (ss *serverStream) SetHeader(md metadata.MD) error { + if md.Len() == 0 { + return nil + } + return ss.s.SetHeader(md) +} + +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() + } + }() + var outPayload *stats.OutPayload + if ss.statsHandler != nil { + outPayload = &stats.OutPayload{} + } + out, err := encode(ss.codec, m, ss.cp, ss.cbuf, outPayload) + defer func() { + if ss.cbuf != nil { + ss.cbuf.Reset() + } + }() + if err != nil { + err = Errorf(codes.Internal, "grpc: %v", err) + return err + } + if err := ss.t.Write(ss.s, out, &transport.Options{Last: false}); err != nil { + return toRPCErr(err) + } + if outPayload != nil { + outPayload.SentTime = time.Now() + ss.statsHandler.HandleRPC(ss.s.Context(), outPayload) + } + return nil +} + +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() + } + }() + var inPayload *stats.InPayload + if ss.statsHandler != nil { + inPayload = &stats.InPayload{} + } + if err := recv(ss.p, ss.codec, ss.s, ss.dc, m, ss.maxMsgSize, inPayload); err != nil { + if err == io.EOF { + return err + } + if err == io.ErrUnexpectedEOF { + err = Errorf(codes.Internal, io.ErrUnexpectedEOF.Error()) + } + return toRPCErr(err) + } + if inPayload != nil { + ss.statsHandler.HandleRPC(ss.s.Context(), inPayload) + } + return nil +} diff --git a/vendor/google.golang.org/grpc/tap/tap.go b/vendor/google.golang.org/grpc/tap/tap.go new file mode 100644 index 000000000..0f3664767 --- /dev/null +++ b/vendor/google.golang.org/grpc/tap/tap.go @@ -0,0 +1,54 @@ +/* + * + * 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 tap defines the function handles which are executed on the transport +// layer of gRPC-Go and related information. Everything here is EXPERIMENTAL. +package tap + +import ( + "golang.org/x/net/context" +) + +// Info defines the relevant information needed by the handles. +type Info struct { + // FullMethodName is the string of grpc method (in the format of + // /package.service/method). + FullMethodName string + // TODO: More to be added. +} + +// ServerInHandle defines the function which runs when a new stream is created +// on the server side. Note that it is executed in the per-connection I/O goroutine(s) instead +// of per-RPC goroutine. Therefore, users should NOT have any blocking/time-consuming +// work in this handle. Otherwise all the RPCs would slow down. +type ServerInHandle func(ctx context.Context, info *Info) (context.Context, error) diff --git a/vendor/google.golang.org/grpc/trace.go b/vendor/google.golang.org/grpc/trace.go new file mode 100644 index 000000000..f6747e1df --- /dev/null +++ b/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/vendor/google.golang.org/grpc/transport/control.go b/vendor/google.golang.org/grpc/transport/control.go new file mode 100644 index 000000000..0edbe53a7 --- /dev/null +++ b/vendor/google.golang.org/grpc/transport/control.go @@ -0,0 +1,199 @@ +/* + * + * 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" + "math" + "sync" + "time" + + "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 + infinity = time.Duration(math.MaxInt64) + defaultKeepaliveTime = infinity + defaultKeepaliveTimeout = time.Duration(20 * time.Second) + defaultMaxStreamsClient = 100 +) + +// 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 goAway struct { +} + +func (*goAway) 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 cancels the pending quota sent on acquired, incremented by v and sends +// it back on acquire. +func (qb *quotaPool) add(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 + } + // After the pool has been created, this is the only place that sends on + // the channel. Since mu is held at this point and any quota that was sent + // on the channel has been retrieved, we know that this code will always + // place any positive quota value on the channel. + 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/vendor/google.golang.org/grpc/transport/go16.go b/vendor/google.golang.org/grpc/transport/go16.go new file mode 100644 index 000000000..ee1c46bad --- /dev/null +++ b/vendor/google.golang.org/grpc/transport/go16.go @@ -0,0 +1,46 @@ +// +build go1.6,!go1.7 + +/* + * 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 transport + +import ( + "net" + + "golang.org/x/net/context" +) + +// dialContext connects to the address on the named network. +func dialContext(ctx context.Context, network, address string) (net.Conn, error) { + return (&net.Dialer{Cancel: ctx.Done()}).Dial(network, address) +} diff --git a/vendor/google.golang.org/grpc/transport/go17.go b/vendor/google.golang.org/grpc/transport/go17.go new file mode 100644 index 000000000..356f13ff1 --- /dev/null +++ b/vendor/google.golang.org/grpc/transport/go17.go @@ -0,0 +1,46 @@ +// +build go1.7 + +/* + * 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 transport + +import ( + "net" + + "golang.org/x/net/context" +) + +// dialContext connects to the address on the named network. +func dialContext(ctx context.Context, network, address string) (net.Conn, error) { + return (&net.Dialer{}).DialContext(ctx, network, address) +} diff --git a/vendor/google.golang.org/grpc/transport/handler_server.go b/vendor/google.golang.org/grpc/transport/handler_server.go new file mode 100644 index 000000000..10b6dc0b1 --- /dev/null +++ b/vendor/google.golang.org/grpc/transport/handler_server.go @@ -0,0 +1,397 @@ +/* + * 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 := decodeTimeout(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", encodeGrpcMessage(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), traceCtx func(context.Context, string) context.Context) { + // 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 + } + } +} + +func (ht *serverHandlerTransport) Drain() { + panic("Drain() is not implemented") +} + +// 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 connectionErrorf(true, err, err.Error()) +} diff --git a/vendor/google.golang.org/grpc/transport/http2_client.go b/vendor/google.golang.org/grpc/transport/http2_client.go new file mode 100644 index 000000000..627a590a0 --- /dev/null +++ b/vendor/google.golang.org/grpc/transport/http2_client.go @@ -0,0 +1,1234 @@ +/* + * + * 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" + "fmt" + "io" + "math" + "net" + "strings" + "sync" + "sync/atomic" + "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/keepalive" + "google.golang.org/grpc/metadata" + "google.golang.org/grpc/peer" + "google.golang.org/grpc/stats" +) + +// http2Client implements the ClientTransport interface with HTTP2. +type http2Client struct { + ctx context.Context + target string // server name/addr + userAgent string + md interface{} + conn net.Conn // underlying communication channel + remoteAddr net.Addr + localAddr net.Addr + 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{} + // goAway is closed to notify the upper layer (i.e., addrConn.transportMonitor) + // that the server sent GoAway on this transport. + goAway chan struct{} + // awakenKeepalive is used to wake up keepalive when after it has gone dormant. + awakenKeepalive 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 + + // Boolean to keep track of reading activity on transport. + // 1 is true and 0 is false. + activity uint32 // Accessed atomically. + kp keepalive.ClientParameters + + statsHandler stats.Handler + + 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 + // goAwayID records the Last-Stream-ID in the GoAway frame from the server. + goAwayID uint32 + // prevGoAway ID records the Last-Stream-ID in the previous GOAway frame. + prevGoAwayID uint32 +} + +func dial(ctx context.Context, fn func(context.Context, string) (net.Conn, error), addr string) (net.Conn, error) { + if fn != nil { + return fn(ctx, addr) + } + return dialContext(ctx, "tcp", addr) +} + +func isTemporary(err error) bool { + switch err { + case io.EOF: + // Connection closures may be resolved upon retry, and are thus + // treated as temporary. + return true + case context.DeadlineExceeded: + // In Go 1.7, context.DeadlineExceeded implements Timeout(), and this + // special case is not needed. Until then, we need to keep this + // clause. + return true + } + + switch err := err.(type) { + case interface { + Temporary() bool + }: + return err.Temporary() + case interface { + Timeout() bool + }: + // Timeouts may be resolved upon retry, and are thus treated as + // temporary. + return err.Timeout() + } + return false +} + +// 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(ctx context.Context, addr TargetInfo, opts ConnectOptions) (_ ClientTransport, err error) { + scheme := "http" + conn, err := dial(ctx, opts.Dialer, addr.Addr) + if err != nil { + if opts.FailOnNonTempDialError { + return nil, connectionErrorf(isTemporary(err), err, "transport: %v", err) + } + return nil, connectionErrorf(true, err, "transport: %v", err) + } + // Any further errors will close the underlying connection + defer func(conn net.Conn) { + if err != nil { + conn.Close() + } + }(conn) + var authInfo credentials.AuthInfo + if creds := opts.TransportCredentials; creds != nil { + scheme = "https" + conn, authInfo, err = creds.ClientHandshake(ctx, addr.Addr, conn) + if err != nil { + // Credentials handshake errors are typically considered permanent + // to avoid retrying on e.g. bad certificates. + temp := isTemporary(err) + return nil, connectionErrorf(temp, err, "transport: %v", err) + } + } + ua := primaryUA + if opts.UserAgent != "" { + ua = opts.UserAgent + " " + ua + } + kp := opts.KeepaliveParams + // Validate keepalive parameters. + if kp.Time == 0 { + kp.Time = defaultKeepaliveTime + } + if kp.Timeout == 0 { + kp.Timeout = defaultKeepaliveTimeout + } + var buf bytes.Buffer + t := &http2Client{ + ctx: ctx, + target: addr.Addr, + userAgent: ua, + md: addr.Metadata, + conn: conn, + remoteAddr: conn.RemoteAddr(), + localAddr: conn.LocalAddr(), + 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{}), + goAway: make(chan struct{}), + awakenKeepalive: make(chan struct{}, 1), + 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: defaultMaxStreamsClient, + streamsQuota: newQuotaPool(defaultMaxStreamsClient), + streamSendQuota: defaultWindowSize, + kp: kp, + statsHandler: opts.StatsHandler, + } + // Make sure awakenKeepalive can't be written upon. + // keepalive routine will make it writable, if need be. + t.awakenKeepalive <- struct{}{} + if t.statsHandler != nil { + t.ctx = t.statsHandler.TagConn(t.ctx, &stats.ConnTagInfo{ + RemoteAddr: t.remoteAddr, + LocalAddr: t.localAddr, + }) + connBegin := &stats.ConnBegin{ + Client: true, + } + t.statsHandler.HandleConn(t.ctx, connBegin) + } + // 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(true, err, "transport: %v", err) + } + if n != len(clientPreface) { + t.Close() + return nil, connectionErrorf(true, err, "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(true, err, "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(true, err, "transport: %v", err) + } + } + go t.controller() + if t.kp.Time != infinity { + go t.keepalive() + } + 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, + done: make(chan struct{}), + goAway: make(chan struct{}), + 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)) + } + // The client side stream context should have exactly the same life cycle with the user provided context. + // That means, s.ctx should be read-only. And s.ctx is done iff ctx is done. + // So we use the original context here instead of creating a copy. + s.ctx = ctx + s.dec = &recvBufferReader{ + ctx: s.ctx, + goAway: s.goAway, + 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) { + pr := &peer.Peer{ + Addr: t.remoteAddr, + } + // Attach Auth info if there is any. + if t.authInfo != nil { + pr.AuthInfo = t.authInfo + } + userCtx := ctx + 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 == draining { + t.mu.Unlock() + return nil, ErrStreamDrain + } + if t.state != reachable { + t.mu.Unlock() + return nil, ErrConnClosing + } + t.mu.Unlock() + sq, err := wait(ctx, nil, nil, 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, nil, nil, 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 { + t.streamsQuota.add(1) + } + return nil, err + } + t.mu.Lock() + if t.state == draining { + t.mu.Unlock() + t.streamsQuota.add(1) + // Need to make t writable again so that the rpc in flight can still proceed. + t.writableChan <- 0 + return nil, ErrStreamDrain + } + if t.state != reachable { + t.mu.Unlock() + return nil, ErrConnClosing + } + s := t.newStream(ctx, callHdr) + s.clientStatsCtx = userCtx + t.activeStreams[s.id] = s + // If the number of active streams change from 0 to 1, then check if keepalive + // has gone dormant. If so, wake it up. + if len(t.activeStreams) == 1 { + select { + case t.awakenKeepalive <- struct{}{}: + t.framer.writePing(false, false, [8]byte{}) + default: + } + } + + t.mu.Unlock() + + // 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 dl, ok := ctx.Deadline(); ok { + // Send out timeout regardless its value. The server can detect timeout context by itself. + timeout := dl.Sub(time.Now()) + t.hEnc.WriteField(hpack.HeaderField{Name: "grpc-timeout", Value: encodeTimeout(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}) + } + } + } + if md, ok := t.md.(*metadata.MD); ok { + for k, v := range *md { + if isReservedHeader(k) { + continue + } + for _, entry := range v { + t.hEnc.WriteField(hpack.HeaderField{Name: k, Value: entry}) + } + } + } + first := true + bufLen := t.hBuf.Len() + // 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(true, err, "transport: %v", err) + } + } + if t.statsHandler != nil { + outHeader := &stats.OutHeader{ + Client: true, + WireLength: bufLen, + FullMethod: callHdr.Method, + RemoteAddr: t.remoteAddr, + LocalAddr: t.localAddr, + Compression: callHdr.SendCompress, + } + t.statsHandler.HandleRPC(s.clientStatsCtx, outHeader) + } + 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) { + t.mu.Lock() + if t.activeStreams == nil { + t.mu.Unlock() + return + } + delete(t.activeStreams, s.id) + if t.state == draining && len(t.activeStreams) == 0 { + // The transport is draining and s is the last live stream on t. + t.mu.Unlock() + t.Close() + return + } + t.mu.Unlock() + // rstStream is true in case the stream is being closed at the client-side + // and the server needs to be intimated about it by sending a RST_STREAM + // frame. + // To make sure this frame is written to the wire before the headers of the + // next stream waiting for streamsQuota, we add to streamsQuota pool only + // after having acquired the writableChan to send RST_STREAM out (look at + // the controller() routine). + var rstStream bool + var rstError http2.ErrCode + defer func() { + // In case, the client doesn't have to send RST_STREAM to server + // we can safely add back to streamsQuota pool now. + if !rstStream { + t.streamsQuota.add(1) + return + } + t.controlBuf.put(&resetStream{s.id, rstError}) + }() + s.mu.Lock() + rstStream = s.rstStream + rstError = s.rstError + 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 { + rstStream = true + rstError = 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 == closing { + t.mu.Unlock() + return + } + if t.state == reachable || t.state == draining { + close(t.errorChan) + } + 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}) + } + if t.statsHandler != nil { + connEnd := &stats.ConnEnd{ + Client: true, + } + t.statsHandler.HandleConn(t.ctx, connEnd) + } + return +} + +func (t *http2Client) GracefulClose() error { + t.mu.Lock() + switch t.state { + case unreachable: + // The server may close the connection concurrently. t is not available for + // any streams. Close it now. + t.mu.Unlock() + t.Close() + return nil + case closing: + t.mu.Unlock() + return nil + } + // Notify the streams which were initiated after the server sent GOAWAY. + select { + case <-t.goAway: + n := t.prevGoAwayID + if n == 0 && t.nextID > 1 { + n = t.nextID - 2 + } + m := t.goAwayID + 2 + if m == 2 { + m = 1 + } + for i := m; i <= n; i += 2 { + if s, ok := t.activeStreams[i]; ok { + close(s.goAway) + } + } + default: + } + 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 + // Wait until the stream has some quota to send the data. + sq, err := wait(s.ctx, s.done, s.goAway, t.shutdownChan, s.sendQuotaPool.acquire()) + if err != nil { + return err + } + // Wait until the transport has some quota to send the data. + tq, err := wait(s.ctx, s.done, s.goAway, t.shutdownChan, t.sendQuotaPool.acquire()) + if err != nil { + 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, s.done, s.goAway, t.shutdownChan, t.writableChan); err != nil { + if _, ok := err.(StreamError); ok || err == io.EOF { + // 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(true, err, "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 { + 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 := f.Header().Length + if err := t.fc.onData(uint32(size)); err != nil { + t.notifyError(connectionErrorf(true, err, "%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 { + if f.Header().Flags.Has(http2.FlagDataPadded) { + if w := t.fc.onRead(uint32(size) - uint32(len(f.Data()))); w > 0 { + t.controlBuf.put(&windowUpdate{0, w}) + } + } + 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.rstStream = true + s.rstError = http2.ErrCodeFlowControl + close(s.done) + s.mu.Unlock() + s.write(recvMsg{err: io.EOF}) + return + } + if f.Header().Flags.Has(http2.FlagDataPadded) { + if w := s.fc.onRead(uint32(size) - uint32(len(f.Data()))); w > 0 { + t.controlBuf.put(&windowUpdate{s.id, w}) + } + } + 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? + if len(f.Data()) > 0 { + data := make([]byte, len(f.Data())) + 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 == streamDone { + s.mu.Unlock() + return + } + s.state = streamDone + s.statusCode = codes.Internal + s.statusDesc = "server closed the stream without sending trailers" + close(s.done) + 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.statusDesc = fmt.Sprintf("stream terminated by RST_STREAM with error code: %d", f.ErrCode) + close(s.done) + 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) { + if f.IsAck() { // Do nothing. + return + } + pingAck := &ping{ack: true} + copy(pingAck.data[:], f.Data[:]) + t.controlBuf.put(pingAck) +} + +func (t *http2Client) handleGoAway(f *http2.GoAwayFrame) { + t.mu.Lock() + if t.state == reachable || t.state == draining { + if f.LastStreamID > 0 && f.LastStreamID%2 != 1 { + t.mu.Unlock() + t.notifyError(connectionErrorf(true, nil, "received illegal http2 GOAWAY frame: stream ID %d is even", f.LastStreamID)) + return + } + select { + case <-t.goAway: + id := t.goAwayID + // t.goAway has been closed (i.e.,multiple GoAways). + if id < f.LastStreamID { + t.mu.Unlock() + t.notifyError(connectionErrorf(true, nil, "received illegal http2 GOAWAY frame: previously recv GOAWAY frame with LastStramID %d, currently recv %d", id, f.LastStreamID)) + return + } + t.prevGoAwayID = id + t.goAwayID = f.LastStreamID + t.mu.Unlock() + return + default: + } + t.goAwayID = f.LastStreamID + close(t.goAway) + } + t.mu.Unlock() +} + +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.mu.Lock() + if !s.headerDone { + close(s.headerChan) + s.headerDone = true + } + s.mu.Unlock() + s.write(recvMsg{err: state.err}) + // Something wrong. Stops reading even when there is remaining. + return + } + + endStream := frame.StreamEnded() + var isHeader bool + defer func() { + if t.statsHandler != nil { + if isHeader { + inHeader := &stats.InHeader{ + Client: true, + WireLength: int(frame.Header().Length), + } + t.statsHandler.HandleRPC(s.clientStatsCtx, inHeader) + } else { + inTrailer := &stats.InTrailer{ + Client: true, + WireLength: int(frame.Header().Length), + } + t.statsHandler.HandleRPC(s.clientStatsCtx, inTrailer) + } + } + }() + + 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 + isHeader = true + } + if !endStream || s.state == streamDone { + s.mu.Unlock() + return + } + + if len(state.mdata) > 0 { + s.trailer = state.mdata + } + s.statusCode = state.statusCode + s.statusDesc = state.statusDesc + close(s.done) + s.state = streamDone + 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 + } + atomic.CompareAndSwapUint32(&t.activity, 0, 1) + 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() + atomic.CompareAndSwapUint32(&t.activity, 0, 1) + 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() + ms := t.maxStreams + t.maxStreams = int(s.Val) + t.mu.Unlock() + t.streamsQuota.add(int(s.Val) - ms) + case http2.SettingInitialWindowSize: + t.mu.Lock() + for _, stream := range t.activeStreams { + // Adjust the sending quota for each stream. + stream.sendQuotaPool.add(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: + // If the server needs to be to intimated about stream closing, + // then we need to make sure the RST_STREAM frame is written to + // the wire before the headers of the next stream waiting on + // streamQuota. We ensure this by adding to the streamsQuota pool + // only after having acquired the writableChan to send RST_STREAM. + t.streamsQuota.add(1) + 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 + } + } +} + +// keepalive running in a separate goroutune makes sure the connection is alive by sending pings. +func (t *http2Client) keepalive() { + p := &ping{data: [8]byte{}} + timer := time.NewTimer(t.kp.Time) + for { + select { + case <-timer.C: + if atomic.CompareAndSwapUint32(&t.activity, 1, 0) { + timer.Reset(t.kp.Time) + continue + } + // Check if keepalive should go dormant. + t.mu.Lock() + if len(t.activeStreams) < 1 && !t.kp.PermitWithoutStream { + // Make awakenKeepalive writable. + <-t.awakenKeepalive + t.mu.Unlock() + select { + case <-t.awakenKeepalive: + // If the control gets here a ping has been sent + // need to reset the timer with keepalive.Timeout. + case <-t.shutdownChan: + return + } + } else { + t.mu.Unlock() + // Send ping. + t.controlBuf.put(p) + } + + // By the time control gets here a ping has been sent one way or the other. + timer.Reset(t.kp.Timeout) + select { + case <-timer.C: + if atomic.CompareAndSwapUint32(&t.activity, 1, 0) { + timer.Reset(t.kp.Time) + continue + } + t.Close() + return + case <-t.shutdownChan: + if !timer.Stop() { + <-timer.C + } + return + } + case <-t.shutdownChan: + if !timer.Stop() { + <-timer.C + } + return + } + } +} + +func (t *http2Client) Error() <-chan struct{} { + return t.errorChan +} + +func (t *http2Client) GoAway() <-chan struct{} { + return t.goAway +} + +func (t *http2Client) notifyError(err error) { + t.mu.Lock() + // make sure t.errorChan is closed only once. + if t.state == draining { + t.mu.Unlock() + t.Close() + return + } + 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) + } + t.mu.Unlock() +} diff --git a/vendor/google.golang.org/grpc/transport/http2_server.go b/vendor/google.golang.org/grpc/transport/http2_server.go new file mode 100644 index 000000000..f5c590f43 --- /dev/null +++ b/vendor/google.golang.org/grpc/transport/http2_server.go @@ -0,0 +1,847 @@ +/* + * + * 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" + "google.golang.org/grpc/stats" + "google.golang.org/grpc/tap" +) + +// 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 { + ctx context.Context + conn net.Conn + remoteAddr net.Addr + localAddr net.Addr + maxStreamID uint32 // max stream ID ever seen + authInfo credentials.AuthInfo // auth info about the connection + inTapHandle tap.ServerInHandle + // 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 + + stats stats.Handler + + 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, config *ServerConfig) (_ 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. + maxStreams := config.MaxStreams + 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(true, err, "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(true, err, "transport: %v", err) + } + } + var buf bytes.Buffer + t := &http2Server{ + ctx: context.Background(), + conn: conn, + remoteAddr: conn.RemoteAddr(), + localAddr: conn.LocalAddr(), + authInfo: config.AuthInfo, + framer: framer, + hBuf: &buf, + hEnc: hpack.NewEncoder(&buf), + maxStreams: maxStreams, + inTapHandle: config.InTapHandle, + 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, + stats: config.StatsHandler, + } + if t.stats != nil { + t.ctx = t.stats.TagConn(t.ctx, &stats.ConnTagInfo{ + RemoteAddr: t.remoteAddr, + LocalAddr: t.localAddr, + }) + connBegin := &stats.ConnBegin{} + t.stats.HandleConn(t.ctx, connBegin) + } + 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), traceCtx func(context.Context, string) context.Context) (close bool) { + 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(t.ctx, state.timeout) + } else { + s.ctx, s.cancel = context.WithCancel(t.ctx) + } + pr := &peer.Peer{ + Addr: t.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 + if t.inTapHandle != nil { + var err error + info := &tap.Info{ + FullMethodName: state.method, + } + s.ctx, err = t.inTapHandle(s.ctx, info) + if err != nil { + // TODO: Log the real error. + t.controlBuf.put(&resetStream{s.id, http2.ErrCodeRefusedStream}) + return + } + } + 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 + } + if s.id%2 != 1 || s.id <= t.maxStreamID { + t.mu.Unlock() + // illegal gRPC stream id. + grpclog.Println("transport: http2Server.HandleStreams received an illegal stream id: ", s.id) + return true + } + t.maxStreamID = s.id + s.sendQuotaPool = newQuotaPool(int(t.streamSendQuota)) + t.activeStreams[s.id] = s + t.mu.Unlock() + s.windowHandler = func(n int) { + t.updateWindow(s, uint32(n)) + } + s.ctx = traceCtx(s.ctx, s.method) + if t.stats != nil { + s.ctx = t.stats.TagRPC(s.ctx, &stats.RPCTagInfo{FullMethodName: s.method}) + inHeader := &stats.InHeader{ + FullMethod: s.method, + RemoteAddr: t.remoteAddr, + LocalAddr: t.localAddr, + Compression: s.recvCompress, + WireLength: int(frame.Header().Length), + } + t.stats.HandleRPC(s.ctx, inHeader) + } + handle(s) + return +} + +// HandleStreams receives incoming streams using the given handler. This is +// typically run in a separate goroutine. +// traceCtx attaches trace to ctx and returns the new context. +func (t *http2Server) HandleStreams(handle func(*Stream), traceCtx func(context.Context, string) context.Context) { + // 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 == io.EOF || err == io.ErrUnexpectedEOF { + t.Close() + return + } + 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 + } + if err == io.EOF || err == io.ErrUnexpectedEOF { + t.Close() + return + } + grpclog.Printf("transport: http2Server.HandleStreams failed to read frame: %v", err) + t.Close() + return + } + switch frame := frame.(type) { + case *http2.MetaHeadersFrame: + if t.operateHeaders(frame, handle, traceCtx) { + t.Close() + break + } + 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: + // TODO: Handle GoAway from the client appropriately. + 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 := f.Header().Length + 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 { + if f.Header().Flags.Has(http2.FlagDataPadded) { + if w := t.fc.onRead(uint32(size) - uint32(len(f.Data()))); w > 0 { + t.controlBuf.put(&windowUpdate{0, w}) + } + } + 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 + } + if f.Header().Flags.Has(http2.FlagDataPadded) { + if w := s.fc.onRead(uint32(size) - uint32(len(f.Data()))); w > 0 { + t.controlBuf.put(&windowUpdate{s.id, w}) + } + } + 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? + if len(f.Data()) > 0 { + data := make([]byte, len(f.Data())) + 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 { + 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) { + if f.IsAck() { // Do nothing. + return + } + 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(true, err, "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 + if md.Len() > 0 { + if s.header.Len() > 0 { + s.header = metadata.Join(s.header, md) + } else { + s.header = md + } + } + md = s.header + s.mu.Unlock() + if _, err := wait(s.ctx, nil, nil, 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}) + } + } + bufLen := t.hBuf.Len() + if err := t.writeHeaders(s, t.hBuf, false); err != nil { + return err + } + if t.stats != nil { + outHeader := &stats.OutHeader{ + WireLength: bufLen, + } + t.stats.HandleRPC(s.Context(), outHeader) + } + 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, hasHeader bool + s.mu.Lock() + if s.state == streamDone { + s.mu.Unlock() + return nil + } + if s.headerOk { + headersSent = true + } + if s.header.Len() > 0 { + hasHeader = true + } + s.mu.Unlock() + + if !headersSent && hasHeader { + t.WriteHeader(s, nil) + headersSent = true + } + + if _, err := wait(s.ctx, nil, nil, 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: encodeGrpcMessage(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}) + } + } + bufLen := t.hBuf.Len() + if err := t.writeHeaders(s, t.hBuf, true); err != nil { + t.Close() + return err + } + if t.stats != nil { + outTrailer := &stats.OutTrailer{ + WireLength: bufLen, + } + t.stats.HandleRPC(s.Context(), outTrailer) + } + 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.mu.Unlock() + if writeHeaderFrame { + t.WriteHeader(s, nil) + } + r := bytes.NewBuffer(data) + for { + if r.Len() == 0 { + return nil + } + size := http2MaxFrameLen + // Wait until the stream has some quota to send the data. + sq, err := wait(s.ctx, nil, nil, t.shutdownChan, s.sendQuotaPool.acquire()) + if err != nil { + return err + } + // Wait until the transport has some quota to send the data. + tq, err := wait(s.ctx, nil, nil, t.shutdownChan, t.sendQuotaPool.acquire()) + if err != nil { + 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, nil, nil, 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(true, err, "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.add(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 *goAway: + t.mu.Lock() + if t.state == closing { + t.mu.Unlock() + // The transport is closing. + return + } + sid := t.maxStreamID + t.state = draining + t.mu.Unlock() + t.framer.writeGoAway(true, sid, http2.ErrCodeNo, nil) + 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() + } + if t.stats != nil { + connEnd := &stats.ConnEnd{} + t.stats.HandleConn(t.ctx, connEnd) + } + 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) + if t.state == draining && len(t.activeStreams) == 0 { + defer t.Close() + } + 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.remoteAddr +} + +func (t *http2Server) Drain() { + t.controlBuf.put(&goAway{}) +} diff --git a/vendor/google.golang.org/grpc/transport/http_util.go b/vendor/google.golang.org/grpc/transport/http_util.go new file mode 100644 index 000000000..a3c68d4ca --- /dev/null +++ b/vendor/google.golang.org/grpc/transport/http_util.go @@ -0,0 +1,513 @@ +/* + * + * 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" + "bytes" + "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/1.0" + // 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 = decodeGrpcMessage(f.Value) + case "grpc-timeout": + d.timeoutSet = true + var err error + d.timeout, err = decodeTimeout(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 encodeTimeout(t time.Duration) string { + if t <= 0 { + return "0n" + } + 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 decodeTimeout(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 +} + +const ( + spaceByte = ' ' + tildaByte = '~' + percentByte = '%' +) + +// encodeGrpcMessage is used to encode status code in header field +// "grpc-message". +// It checks to see if each individual byte in msg is an +// allowable byte, and then either percent encoding or passing it through. +// When percent encoding, the byte is converted into hexadecimal notation +// with a '%' prepended. +func encodeGrpcMessage(msg string) string { + if msg == "" { + return "" + } + lenMsg := len(msg) + for i := 0; i < lenMsg; i++ { + c := msg[i] + if !(c >= spaceByte && c < tildaByte && c != percentByte) { + return encodeGrpcMessageUnchecked(msg) + } + } + return msg +} + +func encodeGrpcMessageUnchecked(msg string) string { + var buf bytes.Buffer + lenMsg := len(msg) + for i := 0; i < lenMsg; i++ { + c := msg[i] + if c >= spaceByte && c < tildaByte && c != percentByte { + buf.WriteByte(c) + } else { + buf.WriteString(fmt.Sprintf("%%%02X", c)) + } + } + return buf.String() +} + +// decodeGrpcMessage decodes the msg encoded by encodeGrpcMessage. +func decodeGrpcMessage(msg string) string { + if msg == "" { + return "" + } + lenMsg := len(msg) + for i := 0; i < lenMsg; i++ { + if msg[i] == percentByte && i+2 < lenMsg { + return decodeGrpcMessageUnchecked(msg) + } + } + return msg +} + +func decodeGrpcMessageUnchecked(msg string) string { + var buf bytes.Buffer + lenMsg := len(msg) + for i := 0; i < lenMsg; i++ { + c := msg[i] + if c == percentByte && i+2 < lenMsg { + parsed, err := strconv.ParseUint(msg[i+1:i+3], 16, 8) + if err != nil { + buf.WriteByte(c) + } else { + buf.WriteByte(byte(parsed)) + i += 2 + } + } else { + buf.WriteByte(c) + } + } + return buf.String() +} + +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/vendor/google.golang.org/grpc/transport/pre_go16.go b/vendor/google.golang.org/grpc/transport/pre_go16.go new file mode 100644 index 000000000..33d91c17c --- /dev/null +++ b/vendor/google.golang.org/grpc/transport/pre_go16.go @@ -0,0 +1,51 @@ +// +build !go1.6 + +/* + * 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 transport + +import ( + "net" + "time" + + "golang.org/x/net/context" +) + +// dialContext connects to the address on the named network. +func dialContext(ctx context.Context, network, address string) (net.Conn, error) { + var dialer net.Dialer + if deadline, ok := ctx.Deadline(); ok { + dialer.Timeout = deadline.Sub(time.Now()) + } + return dialer.Dial(network, address) +} diff --git a/vendor/google.golang.org/grpc/transport/transport.go b/vendor/google.golang.org/grpc/transport/transport.go new file mode 100644 index 000000000..beb0a520a --- /dev/null +++ b/vendor/google.golang.org/grpc/transport/transport.go @@ -0,0 +1,620 @@ +/* + * + * 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 "google.golang.org/grpc/transport" + +import ( + "bytes" + "fmt" + "io" + "net" + "sync" + + "golang.org/x/net/context" + "golang.org/x/net/http2" + "google.golang.org/grpc/codes" + "google.golang.org/grpc/credentials" + "google.golang.org/grpc/keepalive" + "google.golang.org/grpc/metadata" + "google.golang.org/grpc/stats" + "google.golang.org/grpc/tap" +) + +// 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 + goAway chan struct{} + 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 <-r.goAway: + return 0, ErrStreamDrain + 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 // the entire stream is finished. +) + +// Stream represents an RPC in the transport layer. +type Stream struct { + id uint32 + // nil for client side Stream. + st ServerTransport + // clientStatsCtx keeps the user context for stats handling. + // It's only valid on client side. Server side stats context is same as s.ctx. + // All client side stats collection should use the clientStatsCtx (instead of the stream context) + // so that all the generated stats for a particular RPC can be associated in the processing phase. + clientStatsCtx context.Context + // ctx is the associated context of the stream. + ctx context.Context + // cancel is always nil for client side Stream. + cancel context.CancelFunc + // done is closed when the final status arrives. + done chan struct{} + // goAway is closed when the server sent GoAways signal before this stream was initiated. + goAway chan struct{} + // 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 + // rstStream indicates whether a RST_STREAM frame needs to be sent + // to the server to signify that this stream is closing. + rstStream bool + // rstError is the error that needs to be sent along with the RST_STREAM frame. + rstError http2.ErrCode +} + +// 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 +} + +// Done returns a chanel which is closed when it receives the final status +// from the server. +func (s *Stream) Done() <-chan struct{} { + return s.done +} + +// GoAway returns a channel which is closed when the server sent GoAways signal +// before this stream was initiated. +func (s *Stream) GoAway() <-chan struct{} { + return s.goAway +} + +// 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.goAway: + return nil, ErrStreamDrain + 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 +} + +// 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 +} + +// SetHeader sets the header metadata. This can be called multiple times. +// Server side only. +func (s *Stream) SetHeader(md metadata.MD) error { + s.mu.Lock() + defer s.mu.Unlock() + if s.headerOk || s.state == streamDone { + return ErrIllegalHeaderWrite + } + if md.Len() == 0 { + return nil + } + s.header = metadata.Join(s.header, md) + return nil +} + +// SetTrailer sets the trailer metadata which will be sent with the RPC status +// by the server. This can be called multiple times. Server side only. +func (s *Stream) SetTrailer(md metadata.MD) error { + if md.Len() == 0 { + return nil + } + s.mu.Lock() + defer s.mu.Unlock() + s.trailer = metadata.Join(s.trailer, md) + 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 +) + +// ServerConfig consists of all the configurations to establish a server transport. +type ServerConfig struct { + MaxStreams uint32 + AuthInfo credentials.AuthInfo + InTapHandle tap.ServerInHandle + StatsHandler stats.Handler +} + +// NewServerTransport creates a ServerTransport with conn or non-nil error +// if it fails. +func NewServerTransport(protocol string, conn net.Conn, config *ServerConfig) (ServerTransport, error) { + return newHTTP2Server(conn, config) +} + +// ConnectOptions covers all relevant options for communicating with the server. +type ConnectOptions struct { + // UserAgent is the application user agent. + UserAgent string + // Authority is the :authority pseudo-header to use. This field has no effect if + // TransportCredentials is set. + Authority string + // Dialer specifies how to dial a network address. + Dialer func(context.Context, string) (net.Conn, error) + // FailOnNonTempDialError specifies if gRPC fails on non-temporary dial errors. + FailOnNonTempDialError bool + // PerRPCCredentials stores the PerRPCCredentials required to issue RPCs. + PerRPCCredentials []credentials.PerRPCCredentials + // TransportCredentials stores the Authenticator required to setup a client connection. + TransportCredentials credentials.TransportCredentials + // KeepaliveParams stores the keepalive parameters. + KeepaliveParams keepalive.ClientParameters + // StatsHandler stores the handler for stats. + StatsHandler stats.Handler +} + +// TargetInfo contains the information of the target such as network address and metadata. +type TargetInfo struct { + Addr string + Metadata interface{} +} + +// NewClientTransport establishes the transport with the required ConnectOptions +// and returns it to the caller. +func NewClientTransport(ctx context.Context, target TargetInfo, opts ConnectOptions) (ClientTransport, error) { + return newHTTP2Client(ctx, 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{} + + // GoAway returns a channel that is closed when ClientTranspor + // receives the draining signal from the server (e.g., GOAWAY frame in + // HTTP/2). + GoAway() <-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), func(context.Context, string) context.Context) + + // 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 + + // Drain notifies the client this ServerTransport stops accepting new RPCs. + Drain() +} + +// 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(temp bool, e error, format string, a ...interface{}) ConnectionError { + return ConnectionError{ + Desc: fmt.Sprintf(format, a...), + temp: temp, + err: e, + } +} + +// 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 + temp bool + err error +} + +func (e ConnectionError) Error() string { + return fmt.Sprintf("connection error: desc = %q", e.Desc) +} + +// Temporary indicates if this connection error is temporary or fatal. +func (e ConnectionError) Temporary() bool { + return e.temp +} + +// Origin returns the original error of this connection error. +func (e ConnectionError) Origin() error { + // Never return nil error here. + // If the original error is nil, return itself. + if e.err == nil { + return e + } + return e.err +} + +var ( + // ErrConnClosing indicates that the transport is closing. + ErrConnClosing = connectionErrorf(true, nil, "transport is closing") + // ErrStreamDrain indicates that the stream is rejected by the server because + // the server stops accepting new RPCs. + ErrStreamDrain = streamErrorf(codes.Unavailable, "the server stops accepting new RPCs") +) + +// 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 = %s 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 done, it returns 0, io.EOF if ctx is not done; otherwise +// it return the StreamError for ctx.Err. +// If it receives from goAway, it returns 0, ErrStreamDrain. +// 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, done, goAway, closing <-chan struct{}, proceed <-chan int) (int, error) { + select { + case <-ctx.Done(): + return 0, ContextErr(ctx.Err()) + case <-done: + // User cancellation has precedence. + select { + case <-ctx.Done(): + return 0, ContextErr(ctx.Err()) + default: + } + return 0, io.EOF + case <-goAway: + return 0, ErrStreamDrain + case <-closing: + return 0, ErrConnClosing + case i := <-proceed: + return i, nil + } +} diff --git a/vendor/gopkg.in/yaml.v2/decode.go b/vendor/gopkg.in/yaml.v2/decode.go index ec9d27101..085cddc44 100644 --- a/vendor/gopkg.in/yaml.v2/decode.go +++ b/vendor/gopkg.in/yaml.v2/decode.go @@ -607,6 +607,15 @@ func (d *decoder) mappingStruct(n *node, out reflect.Value) (good bool) { } name := settableValueOf("") l := len(n.children) + + var inlineMap reflect.Value + var elemType reflect.Type + if sinfo.InlineMap != -1 { + inlineMap = out.Field(sinfo.InlineMap) + inlineMap.Set(reflect.New(inlineMap.Type()).Elem()) + elemType = inlineMap.Type().Elem() + } + for i := 0; i < l; i += 2 { ni := n.children[i] if isMerge(ni) { @@ -624,6 +633,13 @@ func (d *decoder) mappingStruct(n *node, out reflect.Value) (good bool) { field = out.FieldByIndex(info.Inline) } d.unmarshal(n.children[i+1], field) + } else if sinfo.InlineMap != -1 { + if inlineMap.IsNil() { + inlineMap.Set(reflect.MakeMap(inlineMap.Type())) + } + value := reflect.New(elemType).Elem() + d.unmarshal(n.children[i+1], value) + inlineMap.SetMapIndex(name, value) } } return true diff --git a/vendor/gopkg.in/yaml.v2/emitterc.go b/vendor/gopkg.in/yaml.v2/emitterc.go index 9b3dc4a43..2befd553e 100644 --- a/vendor/gopkg.in/yaml.v2/emitterc.go +++ b/vendor/gopkg.in/yaml.v2/emitterc.go @@ -1019,7 +1019,7 @@ func yaml_emitter_analyze_scalar(emitter *yaml_emitter_t, value []byte) bool { preceeded_by_whitespace = true for i, w := 0, 0; i < len(value); i += w { - w = width(value[0]) + w = width(value[i]) followed_by_whitespace = i+w >= len(value) || is_blank(value, i+w) if i == 0 { diff --git a/vendor/gopkg.in/yaml.v2/encode.go b/vendor/gopkg.in/yaml.v2/encode.go index b7edc799d..84f849955 100644 --- a/vendor/gopkg.in/yaml.v2/encode.go +++ b/vendor/gopkg.in/yaml.v2/encode.go @@ -2,6 +2,7 @@ package yaml import ( "encoding" + "fmt" "reflect" "regexp" "sort" @@ -164,6 +165,22 @@ func (e *encoder) structv(tag string, in reflect.Value) { e.flow = info.Flow e.marshal("", value) } + if sinfo.InlineMap >= 0 { + m := in.Field(sinfo.InlineMap) + if m.Len() > 0 { + e.flow = false + keys := keyList(m.MapKeys()) + sort.Sort(keys) + for _, k := range keys { + if _, found := sinfo.FieldsMap[k.String()]; found { + panic(fmt.Sprintf("Can't have key %q in inlined map; conflicts with struct field", k.String())) + } + e.marshal("", k) + e.flow = false + e.marshal("", m.MapIndex(k)) + } + } + } }) } diff --git a/vendor/gopkg.in/yaml.v2/scannerc.go b/vendor/gopkg.in/yaml.v2/scannerc.go index fe93b190c..d97d76fa5 100644 --- a/vendor/gopkg.in/yaml.v2/scannerc.go +++ b/vendor/gopkg.in/yaml.v2/scannerc.go @@ -961,7 +961,7 @@ func yaml_parser_roll_indent(parser *yaml_parser_t, column, number int, typ yaml } // Pop indentation levels from the indents stack until the current level -// becomes less or equal to the column. For each intendation level, append +// becomes less or equal to the column. For each indentation level, append // the BLOCK-END token. func yaml_parser_unroll_indent(parser *yaml_parser_t, column int) bool { // In the flow context, do nothing. @@ -969,7 +969,7 @@ func yaml_parser_unroll_indent(parser *yaml_parser_t, column int) bool { return true } - // Loop through the intendation levels in the stack. + // Loop through the indentation levels in the stack. for parser.indent > column { // Create a token and append it to the queue. token := yaml_token_t{ @@ -2085,14 +2085,14 @@ func yaml_parser_scan_block_scalar(parser *yaml_parser_t, token *yaml_token_t, l return false } if is_digit(parser.buffer, parser.buffer_pos) { - // Check that the intendation is greater than 0. + // Check that the indentation is greater than 0. if parser.buffer[parser.buffer_pos] == '0' { yaml_parser_set_scanner_error(parser, "while scanning a block scalar", - start_mark, "found an intendation indicator equal to 0") + start_mark, "found an indentation indicator equal to 0") return false } - // Get the intendation level and eat the indicator. + // Get the indentation level and eat the indicator. increment = as_digit(parser.buffer, parser.buffer_pos) skip(parser) } @@ -2102,7 +2102,7 @@ func yaml_parser_scan_block_scalar(parser *yaml_parser_t, token *yaml_token_t, l if parser.buffer[parser.buffer_pos] == '0' { yaml_parser_set_scanner_error(parser, "while scanning a block scalar", - start_mark, "found an intendation indicator equal to 0") + start_mark, "found an indentation indicator equal to 0") return false } increment = as_digit(parser.buffer, parser.buffer_pos) @@ -2157,7 +2157,7 @@ func yaml_parser_scan_block_scalar(parser *yaml_parser_t, token *yaml_token_t, l end_mark := parser.mark - // Set the intendation level if it was specified. + // Set the indentation level if it was specified. var indent int if increment > 0 { if parser.indent >= 0 { @@ -2217,7 +2217,7 @@ func yaml_parser_scan_block_scalar(parser *yaml_parser_t, token *yaml_token_t, l leading_break = read_line(parser, leading_break) - // Eat the following intendation spaces and line breaks. + // Eat the following indentation spaces and line breaks. if !yaml_parser_scan_block_scalar_breaks(parser, &indent, &trailing_breaks, start_mark, &end_mark) { return false } @@ -2245,15 +2245,15 @@ func yaml_parser_scan_block_scalar(parser *yaml_parser_t, token *yaml_token_t, l return true } -// Scan intendation spaces and line breaks for a block scalar. Determine the -// intendation level if needed. +// Scan indentation spaces and line breaks for a block scalar. Determine the +// indentation level if needed. func yaml_parser_scan_block_scalar_breaks(parser *yaml_parser_t, indent *int, breaks *[]byte, start_mark yaml_mark_t, end_mark *yaml_mark_t) bool { *end_mark = parser.mark - // Eat the intendation spaces and line breaks. + // Eat the indentation spaces and line breaks. max_indent := 0 for { - // Eat the intendation spaces. + // Eat the indentation spaces. if parser.unread < 1 && !yaml_parser_update_buffer(parser, 1) { return false } @@ -2267,10 +2267,10 @@ func yaml_parser_scan_block_scalar_breaks(parser *yaml_parser_t, indent *int, br max_indent = parser.mark.column } - // Check for a tab character messing the intendation. + // Check for a tab character messing the indentation. if (*indent == 0 || parser.mark.column < *indent) && is_tab(parser.buffer, parser.buffer_pos) { return yaml_parser_set_scanner_error(parser, "while scanning a block scalar", - start_mark, "found a tab character where an intendation space is expected") + start_mark, "found a tab character where an indentation space is expected") } // Have we found a non-empty line? @@ -2655,10 +2655,10 @@ func yaml_parser_scan_plain_scalar(parser *yaml_parser_t, token *yaml_token_t) b for is_blank(parser.buffer, parser.buffer_pos) || is_break(parser.buffer, parser.buffer_pos) { if is_blank(parser.buffer, parser.buffer_pos) { - // Check for tab character that abuse intendation. + // Check for tab character that abuse indentation. if leading_blanks && parser.mark.column < indent && is_tab(parser.buffer, parser.buffer_pos) { yaml_parser_set_scanner_error(parser, "while scanning a plain scalar", - start_mark, "found a tab character that violate intendation") + start_mark, "found a tab character that violate indentation") return false } @@ -2687,7 +2687,7 @@ func yaml_parser_scan_plain_scalar(parser *yaml_parser_t, token *yaml_token_t) b } } - // Check intendation level. + // Check indentation level. if parser.flow_level == 0 && parser.mark.column < indent { break } diff --git a/vendor/gopkg.in/yaml.v2/yaml.go b/vendor/gopkg.in/yaml.v2/yaml.go index e3e01edc9..d133edf9d 100644 --- a/vendor/gopkg.in/yaml.v2/yaml.go +++ b/vendor/gopkg.in/yaml.v2/yaml.go @@ -117,11 +117,12 @@ func Unmarshal(in []byte, out interface{}) (err error) { // Does not apply to zero valued structs. // // flow Marshal using a flow style (useful for structs, -// sequences and maps. +// sequences and maps). // -// inline Inline the struct it's applied to, so its fields -// are processed as if they were part of the outer -// struct. +// inline Inline the field, which must be a struct or a map, +// causing all of its fields or keys to be processed as if +// they were part of the outer struct. For maps, keys must +// not conflict with the yaml keys of other struct fields. // // In addition, if the key is "-", the field is ignored. // @@ -255,15 +256,14 @@ func getStructInfo(st reflect.Type) (*structInfo, error) { if inline { switch field.Type.Kind() { - // TODO: Implement support for inline maps. - //case reflect.Map: - // if inlineMap >= 0 { - // return nil, errors.New("Multiple ,inline maps in struct " + st.String()) - // } - // if field.Type.Key() != reflect.TypeOf("") { - // return nil, errors.New("Option ,inline needs a map with string keys in struct " + st.String()) - // } - // inlineMap = info.Num + case reflect.Map: + if inlineMap >= 0 { + return nil, errors.New("Multiple ,inline maps in struct " + st.String()) + } + if field.Type.Key() != reflect.TypeOf("") { + return nil, errors.New("Option ,inline needs a map with string keys in struct " + st.String()) + } + inlineMap = info.Num case reflect.Struct: sinfo, err := getStructInfo(field.Type) if err != nil { @@ -324,13 +324,15 @@ func isZero(v reflect.Value) bool { return v.Len() == 0 case reflect.Int, reflect.Int8, reflect.Int16, reflect.Int32, reflect.Int64: return v.Int() == 0 + case reflect.Float32, reflect.Float64: + return v.Float() == 0 case reflect.Uint, reflect.Uint8, reflect.Uint16, reflect.Uint32, reflect.Uint64, reflect.Uintptr: return v.Uint() == 0 case reflect.Bool: return !v.Bool() case reflect.Struct: vt := v.Type() - for i := v.NumField()-1; i >= 0; i-- { + for i := v.NumField() - 1; i >= 0; i-- { if vt.Field(i).PkgPath != "" { continue // Private field } diff --git a/vendor/k8s.io/client-go/1.5/LICENSE b/vendor/k8s.io/client-go/1.5/LICENSE deleted file mode 100644 index 00b240110..000000000 --- a/vendor/k8s.io/client-go/1.5/LICENSE +++ /dev/null @@ -1,202 +0,0 @@ - - Apache License - Version 2.0, January 2004 - http://www.apache.org/licenses/ - - TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION - - 1. Definitions. - - "License" shall mean the terms and conditions for use, reproduction, - and distribution as defined by Sections 1 through 9 of this document. - - "Licensor" shall mean the copyright owner or entity authorized by - the copyright owner that is granting the License. - - "Legal Entity" shall mean the union of the acting entity and all - other entities that control, are controlled by, or are under common - control with that entity. For the purposes of this definition, - "control" means (i) the power, direct or indirect, to cause the - direction or management of such entity, whether by contract or - otherwise, or (ii) ownership of fifty percent (50%) or more of the - outstanding shares, or (iii) beneficial ownership of such entity. - - "You" (or "Your") shall mean an individual or Legal Entity - exercising permissions granted by this License. - - "Source" form shall mean the preferred form for making modifications, - including but not limited to software source code, documentation - source, and configuration files. - - "Object" form shall mean any form resulting from mechanical - transformation or translation of a Source form, including but - not limited to compiled object code, generated documentation, - and conversions to other media types. - - "Work" shall mean the work of authorship, whether in Source or - Object form, made available under the License, as indicated by a - copyright notice that is included in or attached to the work - (an example is provided in the Appendix below). - - "Derivative Works" shall mean any work, whether in Source or Object - form, that is based on (or derived from) the Work and for which the - editorial revisions, annotations, elaborations, or other modifications - represent, as a whole, an original work of authorship. For the purposes - of this License, Derivative Works shall not include works that remain - separable from, or merely link (or bind by name) to the interfaces of, - the Work and Derivative Works thereof. - - "Contribution" shall mean any work of authorship, including - the original version of the Work and any modifications or additions - to that Work or Derivative Works thereof, that is intentionally - submitted to Licensor for inclusion in the Work by the copyright owner - or by an individual or Legal Entity authorized to submit on behalf of - the copyright owner. For the purposes of this definition, "submitted" - means any form of electronic, verbal, or written communication sent - to the Licensor or its representatives, including but not limited to - communication on electronic mailing lists, source code control systems, - and issue tracking systems that are managed by, or on behalf of, the - Licensor for the purpose of discussing and improving the Work, but - excluding communication that is conspicuously marked or otherwise - designated in writing by the copyright owner as "Not a Contribution." - - "Contributor" shall mean Licensor and any individual or Legal Entity - on behalf of whom a Contribution has been received by Licensor and - subsequently incorporated within the Work. - - 2. Grant of Copyright License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - copyright license to reproduce, prepare Derivative Works of, - publicly display, publicly perform, sublicense, and distribute the - Work and such Derivative Works in Source or Object form. - - 3. Grant of Patent License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - (except as stated in this section) patent license to make, have made, - use, offer to sell, sell, import, and otherwise transfer the Work, - where such license applies only to those patent claims licensable - by such Contributor that are necessarily infringed by their - Contribution(s) alone or by combination of their Contribution(s) - with the Work to which such Contribution(s) was submitted. If You - institute patent litigation against any entity (including a - cross-claim or counterclaim in a lawsuit) alleging that the Work - or a Contribution incorporated within the Work constitutes direct - or contributory patent infringement, then any patent licenses - granted to You under this License for that Work shall terminate - as of the date such litigation is filed. - - 4. Redistribution. You may reproduce and distribute copies of the - Work or Derivative Works thereof in any medium, with or without - modifications, and in Source or Object form, provided that You - meet the following conditions: - - (a) You must give any other recipients of the Work or - Derivative Works a copy of this License; and - - (b) You must cause any modified files to carry prominent notices - stating that You changed the files; and - - (c) You must retain, in the Source form of any Derivative Works - that You distribute, all copyright, patent, trademark, and - attribution notices from the Source form of the Work, - excluding those notices that do not pertain to any part of - the Derivative Works; and - - (d) If the Work includes a "NOTICE" text file as part of its - distribution, then any Derivative Works that You distribute must - include a readable copy of the attribution notices contained - within such NOTICE file, excluding those notices that do not - pertain to any part of the Derivative Works, in at least one - of the following places: within a NOTICE text file distributed - as part of the Derivative Works; within the Source form or - documentation, if provided along with the Derivative Works; or, - within a display generated by the Derivative Works, if and - wherever such third-party notices normally appear. The contents - of the NOTICE file are for informational purposes only and - do not modify the License. You may add Your own attribution - notices within Derivative Works that You distribute, alongside - or as an addendum to the NOTICE text from the Work, provided - that such additional attribution notices cannot be construed - as modifying the License. - - You may add Your own copyright statement to Your modifications and - may provide additional or different license terms and conditions - for use, reproduction, or distribution of Your modifications, or - for any such Derivative Works as a whole, provided Your use, - reproduction, and distribution of the Work otherwise complies with - the conditions stated in this License. - - 5. Submission of Contributions. Unless You explicitly state otherwise, - any Contribution intentionally submitted for inclusion in the Work - by You to the Licensor shall be under the terms and conditions of - this License, without any additional terms or conditions. - Notwithstanding the above, nothing herein shall supersede or modify - the terms of any separate license agreement you may have executed - with Licensor regarding such Contributions. - - 6. Trademarks. This License does not grant permission to use the trade - names, trademarks, service marks, or product names of the Licensor, - except as required for reasonable and customary use in describing the - origin of the Work and reproducing the content of the NOTICE file. - - 7. Disclaimer of Warranty. Unless required by applicable law or - agreed to in writing, Licensor provides the Work (and each - Contributor provides its Contributions) on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - implied, including, without limitation, any warranties or conditions - of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A - PARTICULAR PURPOSE. You are solely responsible for determining the - appropriateness of using or redistributing the Work and assume any - risks associated with Your exercise of permissions under this License. - - 8. Limitation of Liability. In no event and under no legal theory, - whether in tort (including negligence), contract, or otherwise, - unless required by applicable law (such as deliberate and grossly - negligent acts) or agreed to in writing, shall any Contributor be - liable to You for damages, including any direct, indirect, special, - incidental, or consequential damages of any character arising as a - result of this License or out of the use or inability to use the - Work (including but not limited to damages for loss of goodwill, - work stoppage, computer failure or malfunction, or any and all - other commercial damages or losses), even if such Contributor - has been advised of the possibility of such damages. - - 9. Accepting Warranty or Additional Liability. While redistributing - the Work or Derivative Works thereof, You may choose to offer, - and charge a fee for, acceptance of support, warranty, indemnity, - or other liability obligations and/or rights consistent with this - License. However, in accepting such obligations, You may act only - on Your own behalf and on Your sole responsibility, not on behalf - of any other Contributor, and only if You agree to indemnify, - defend, and hold each Contributor harmless for any liability - incurred by, or claims asserted against, such Contributor by reason - of your accepting any such warranty or additional liability. - - END OF TERMS AND CONDITIONS - - APPENDIX: How to apply the Apache License to your work. - - To apply the Apache License to your work, attach the following - boilerplate notice, with the fields enclosed by brackets "[]" - replaced with your own identifying information. (Don't include - the brackets!) The text should be enclosed in the appropriate - comment syntax for the file format. We also recommend that a - file or class name and description of purpose be included on the - same "printed page" as the copyright notice for easier - identification within third-party archives. - - Copyright 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. diff --git a/vendor/k8s.io/client-go/1.5/kubernetes/clientset.go b/vendor/k8s.io/client-go/1.5/kubernetes/clientset.go deleted file mode 100644 index 35df6df63..000000000 --- a/vendor/k8s.io/client-go/1.5/kubernetes/clientset.go +++ /dev/null @@ -1,261 +0,0 @@ -/* -Copyright 2016 The Kubernetes Authors. - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ - -package kubernetes - -import ( - "github.com/golang/glog" - discovery "k8s.io/client-go/1.5/discovery" - v1alpha1apps "k8s.io/client-go/1.5/kubernetes/typed/apps/v1alpha1" - v1beta1authentication "k8s.io/client-go/1.5/kubernetes/typed/authentication/v1beta1" - v1beta1authorization "k8s.io/client-go/1.5/kubernetes/typed/authorization/v1beta1" - v1autoscaling "k8s.io/client-go/1.5/kubernetes/typed/autoscaling/v1" - v1batch "k8s.io/client-go/1.5/kubernetes/typed/batch/v1" - v1alpha1certificates "k8s.io/client-go/1.5/kubernetes/typed/certificates/v1alpha1" - v1core "k8s.io/client-go/1.5/kubernetes/typed/core/v1" - v1beta1extensions "k8s.io/client-go/1.5/kubernetes/typed/extensions/v1beta1" - v1alpha1policy "k8s.io/client-go/1.5/kubernetes/typed/policy/v1alpha1" - v1alpha1rbac "k8s.io/client-go/1.5/kubernetes/typed/rbac/v1alpha1" - v1beta1storage "k8s.io/client-go/1.5/kubernetes/typed/storage/v1beta1" - "k8s.io/client-go/1.5/pkg/util/flowcontrol" - _ "k8s.io/client-go/1.5/plugin/pkg/client/auth" - rest "k8s.io/client-go/1.5/rest" -) - -type Interface interface { - Discovery() discovery.DiscoveryInterface - Core() v1core.CoreInterface - Apps() v1alpha1apps.AppsInterface - Authentication() v1beta1authentication.AuthenticationInterface - Authorization() v1beta1authorization.AuthorizationInterface - Autoscaling() v1autoscaling.AutoscalingInterface - Batch() v1batch.BatchInterface - Certificates() v1alpha1certificates.CertificatesInterface - Extensions() v1beta1extensions.ExtensionsInterface - Policy() v1alpha1policy.PolicyInterface - Rbac() v1alpha1rbac.RbacInterface - Storage() v1beta1storage.StorageInterface -} - -// Clientset contains the clients for groups. Each group has exactly one -// version included in a Clientset. -type Clientset struct { - *discovery.DiscoveryClient - *v1core.CoreClient - *v1alpha1apps.AppsClient - *v1beta1authentication.AuthenticationClient - *v1beta1authorization.AuthorizationClient - *v1autoscaling.AutoscalingClient - *v1batch.BatchClient - *v1alpha1certificates.CertificatesClient - *v1beta1extensions.ExtensionsClient - *v1alpha1policy.PolicyClient - *v1alpha1rbac.RbacClient - *v1beta1storage.StorageClient -} - -// Core retrieves the CoreClient -func (c *Clientset) Core() v1core.CoreInterface { - if c == nil { - return nil - } - return c.CoreClient -} - -// Apps retrieves the AppsClient -func (c *Clientset) Apps() v1alpha1apps.AppsInterface { - if c == nil { - return nil - } - return c.AppsClient -} - -// Authentication retrieves the AuthenticationClient -func (c *Clientset) Authentication() v1beta1authentication.AuthenticationInterface { - if c == nil { - return nil - } - return c.AuthenticationClient -} - -// Authorization retrieves the AuthorizationClient -func (c *Clientset) Authorization() v1beta1authorization.AuthorizationInterface { - if c == nil { - return nil - } - return c.AuthorizationClient -} - -// Autoscaling retrieves the AutoscalingClient -func (c *Clientset) Autoscaling() v1autoscaling.AutoscalingInterface { - if c == nil { - return nil - } - return c.AutoscalingClient -} - -// Batch retrieves the BatchClient -func (c *Clientset) Batch() v1batch.BatchInterface { - if c == nil { - return nil - } - return c.BatchClient -} - -// Certificates retrieves the CertificatesClient -func (c *Clientset) Certificates() v1alpha1certificates.CertificatesInterface { - if c == nil { - return nil - } - return c.CertificatesClient -} - -// Extensions retrieves the ExtensionsClient -func (c *Clientset) Extensions() v1beta1extensions.ExtensionsInterface { - if c == nil { - return nil - } - return c.ExtensionsClient -} - -// Policy retrieves the PolicyClient -func (c *Clientset) Policy() v1alpha1policy.PolicyInterface { - if c == nil { - return nil - } - return c.PolicyClient -} - -// Rbac retrieves the RbacClient -func (c *Clientset) Rbac() v1alpha1rbac.RbacInterface { - if c == nil { - return nil - } - return c.RbacClient -} - -// Storage retrieves the StorageClient -func (c *Clientset) Storage() v1beta1storage.StorageInterface { - if c == nil { - return nil - } - return c.StorageClient -} - -// Discovery retrieves the DiscoveryClient -func (c *Clientset) Discovery() discovery.DiscoveryInterface { - return c.DiscoveryClient -} - -// NewForConfig creates a new Clientset for the given config. -func NewForConfig(c *rest.Config) (*Clientset, error) { - configShallowCopy := *c - if configShallowCopy.RateLimiter == nil && configShallowCopy.QPS > 0 { - configShallowCopy.RateLimiter = flowcontrol.NewTokenBucketRateLimiter(configShallowCopy.QPS, configShallowCopy.Burst) - } - var clientset Clientset - var err error - clientset.CoreClient, err = v1core.NewForConfig(&configShallowCopy) - if err != nil { - return nil, err - } - clientset.AppsClient, err = v1alpha1apps.NewForConfig(&configShallowCopy) - if err != nil { - return nil, err - } - clientset.AuthenticationClient, err = v1beta1authentication.NewForConfig(&configShallowCopy) - if err != nil { - return nil, err - } - clientset.AuthorizationClient, err = v1beta1authorization.NewForConfig(&configShallowCopy) - if err != nil { - return nil, err - } - clientset.AutoscalingClient, err = v1autoscaling.NewForConfig(&configShallowCopy) - if err != nil { - return nil, err - } - clientset.BatchClient, err = v1batch.NewForConfig(&configShallowCopy) - if err != nil { - return nil, err - } - clientset.CertificatesClient, err = v1alpha1certificates.NewForConfig(&configShallowCopy) - if err != nil { - return nil, err - } - clientset.ExtensionsClient, err = v1beta1extensions.NewForConfig(&configShallowCopy) - if err != nil { - return nil, err - } - clientset.PolicyClient, err = v1alpha1policy.NewForConfig(&configShallowCopy) - if err != nil { - return nil, err - } - clientset.RbacClient, err = v1alpha1rbac.NewForConfig(&configShallowCopy) - if err != nil { - return nil, err - } - clientset.StorageClient, err = v1beta1storage.NewForConfig(&configShallowCopy) - if err != nil { - return nil, err - } - - clientset.DiscoveryClient, err = discovery.NewDiscoveryClientForConfig(&configShallowCopy) - if err != nil { - glog.Errorf("failed to create the DiscoveryClient: %v", err) - return nil, err - } - return &clientset, nil -} - -// NewForConfigOrDie creates a new Clientset for the given config and -// panics if there is an error in the config. -func NewForConfigOrDie(c *rest.Config) *Clientset { - var clientset Clientset - clientset.CoreClient = v1core.NewForConfigOrDie(c) - clientset.AppsClient = v1alpha1apps.NewForConfigOrDie(c) - clientset.AuthenticationClient = v1beta1authentication.NewForConfigOrDie(c) - clientset.AuthorizationClient = v1beta1authorization.NewForConfigOrDie(c) - clientset.AutoscalingClient = v1autoscaling.NewForConfigOrDie(c) - clientset.BatchClient = v1batch.NewForConfigOrDie(c) - clientset.CertificatesClient = v1alpha1certificates.NewForConfigOrDie(c) - clientset.ExtensionsClient = v1beta1extensions.NewForConfigOrDie(c) - clientset.PolicyClient = v1alpha1policy.NewForConfigOrDie(c) - clientset.RbacClient = v1alpha1rbac.NewForConfigOrDie(c) - clientset.StorageClient = v1beta1storage.NewForConfigOrDie(c) - - clientset.DiscoveryClient = discovery.NewDiscoveryClientForConfigOrDie(c) - return &clientset -} - -// New creates a new Clientset for the given RESTClient. -func New(c *rest.RESTClient) *Clientset { - var clientset Clientset - clientset.CoreClient = v1core.New(c) - clientset.AppsClient = v1alpha1apps.New(c) - clientset.AuthenticationClient = v1beta1authentication.New(c) - clientset.AuthorizationClient = v1beta1authorization.New(c) - clientset.AutoscalingClient = v1autoscaling.New(c) - clientset.BatchClient = v1batch.New(c) - clientset.CertificatesClient = v1alpha1certificates.New(c) - clientset.ExtensionsClient = v1beta1extensions.New(c) - clientset.PolicyClient = v1alpha1policy.New(c) - clientset.RbacClient = v1alpha1rbac.New(c) - clientset.StorageClient = v1beta1storage.New(c) - - clientset.DiscoveryClient = discovery.NewDiscoveryClient(c) - return &clientset -} diff --git a/vendor/k8s.io/client-go/1.5/kubernetes/typed/apps/v1alpha1/apps_client.go b/vendor/k8s.io/client-go/1.5/kubernetes/typed/apps/v1alpha1/apps_client.go deleted file mode 100644 index 6c792d936..000000000 --- a/vendor/k8s.io/client-go/1.5/kubernetes/typed/apps/v1alpha1/apps_client.go +++ /dev/null @@ -1,96 +0,0 @@ -/* -Copyright 2016 The Kubernetes Authors. - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ - -package v1alpha1 - -import ( - api "k8s.io/client-go/1.5/pkg/api" - registered "k8s.io/client-go/1.5/pkg/apimachinery/registered" - serializer "k8s.io/client-go/1.5/pkg/runtime/serializer" - rest "k8s.io/client-go/1.5/rest" -) - -type AppsInterface interface { - GetRESTClient() *rest.RESTClient - PetSetsGetter -} - -// AppsClient is used to interact with features provided by the Apps group. -type AppsClient struct { - *rest.RESTClient -} - -func (c *AppsClient) PetSets(namespace string) PetSetInterface { - return newPetSets(c, namespace) -} - -// NewForConfig creates a new AppsClient for the given config. -func NewForConfig(c *rest.Config) (*AppsClient, error) { - config := *c - if err := setConfigDefaults(&config); err != nil { - return nil, err - } - client, err := rest.RESTClientFor(&config) - if err != nil { - return nil, err - } - return &AppsClient{client}, nil -} - -// NewForConfigOrDie creates a new AppsClient for the given config and -// panics if there is an error in the config. -func NewForConfigOrDie(c *rest.Config) *AppsClient { - client, err := NewForConfig(c) - if err != nil { - panic(err) - } - return client -} - -// New creates a new AppsClient for the given RESTClient. -func New(c *rest.RESTClient) *AppsClient { - return &AppsClient{c} -} - -func setConfigDefaults(config *rest.Config) error { - // if apps group is not registered, return an error - g, err := registered.Group("apps") - if err != nil { - return err - } - config.APIPath = "/apis" - if config.UserAgent == "" { - config.UserAgent = rest.DefaultKubernetesUserAgent() - } - // TODO: Unconditionally set the config.Version, until we fix the config. - //if config.Version == "" { - copyGroupVersion := g.GroupVersion - config.GroupVersion = ©GroupVersion - //} - - config.NegotiatedSerializer = serializer.DirectCodecFactory{CodecFactory: api.Codecs} - - return nil -} - -// GetRESTClient returns a RESTClient that is used to communicate -// with API server by this client implementation. -func (c *AppsClient) GetRESTClient() *rest.RESTClient { - if c == nil { - return nil - } - return c.RESTClient -} diff --git a/vendor/k8s.io/client-go/1.5/kubernetes/typed/apps/v1alpha1/petset.go b/vendor/k8s.io/client-go/1.5/kubernetes/typed/apps/v1alpha1/petset.go deleted file mode 100644 index 611c68dc6..000000000 --- a/vendor/k8s.io/client-go/1.5/kubernetes/typed/apps/v1alpha1/petset.go +++ /dev/null @@ -1,165 +0,0 @@ -/* -Copyright 2016 The Kubernetes Authors. - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ - -package v1alpha1 - -import ( - api "k8s.io/client-go/1.5/pkg/api" - v1alpha1 "k8s.io/client-go/1.5/pkg/apis/apps/v1alpha1" - watch "k8s.io/client-go/1.5/pkg/watch" -) - -// PetSetsGetter has a method to return a PetSetInterface. -// A group's client should implement this interface. -type PetSetsGetter interface { - PetSets(namespace string) PetSetInterface -} - -// PetSetInterface has methods to work with PetSet resources. -type PetSetInterface interface { - Create(*v1alpha1.PetSet) (*v1alpha1.PetSet, error) - Update(*v1alpha1.PetSet) (*v1alpha1.PetSet, error) - UpdateStatus(*v1alpha1.PetSet) (*v1alpha1.PetSet, error) - Delete(name string, options *api.DeleteOptions) error - DeleteCollection(options *api.DeleteOptions, listOptions api.ListOptions) error - Get(name string) (*v1alpha1.PetSet, error) - List(opts api.ListOptions) (*v1alpha1.PetSetList, error) - Watch(opts api.ListOptions) (watch.Interface, error) - Patch(name string, pt api.PatchType, data []byte, subresources ...string) (result *v1alpha1.PetSet, err error) - PetSetExpansion -} - -// petSets implements PetSetInterface -type petSets struct { - client *AppsClient - ns string -} - -// newPetSets returns a PetSets -func newPetSets(c *AppsClient, namespace string) *petSets { - return &petSets{ - client: c, - ns: namespace, - } -} - -// Create takes the representation of a petSet and creates it. Returns the server's representation of the petSet, and an error, if there is any. -func (c *petSets) Create(petSet *v1alpha1.PetSet) (result *v1alpha1.PetSet, err error) { - result = &v1alpha1.PetSet{} - err = c.client.Post(). - Namespace(c.ns). - Resource("petsets"). - Body(petSet). - Do(). - Into(result) - return -} - -// Update takes the representation of a petSet and updates it. Returns the server's representation of the petSet, and an error, if there is any. -func (c *petSets) Update(petSet *v1alpha1.PetSet) (result *v1alpha1.PetSet, err error) { - result = &v1alpha1.PetSet{} - err = c.client.Put(). - Namespace(c.ns). - Resource("petsets"). - Name(petSet.Name). - Body(petSet). - Do(). - Into(result) - return -} - -func (c *petSets) UpdateStatus(petSet *v1alpha1.PetSet) (result *v1alpha1.PetSet, err error) { - result = &v1alpha1.PetSet{} - err = c.client.Put(). - Namespace(c.ns). - Resource("petsets"). - Name(petSet.Name). - SubResource("status"). - Body(petSet). - Do(). - Into(result) - return -} - -// Delete takes name of the petSet and deletes it. Returns an error if one occurs. -func (c *petSets) Delete(name string, options *api.DeleteOptions) error { - return c.client.Delete(). - Namespace(c.ns). - Resource("petsets"). - Name(name). - Body(options). - Do(). - Error() -} - -// DeleteCollection deletes a collection of objects. -func (c *petSets) DeleteCollection(options *api.DeleteOptions, listOptions api.ListOptions) error { - return c.client.Delete(). - Namespace(c.ns). - Resource("petsets"). - VersionedParams(&listOptions, api.ParameterCodec). - Body(options). - Do(). - Error() -} - -// Get takes name of the petSet, and returns the corresponding petSet object, and an error if there is any. -func (c *petSets) Get(name string) (result *v1alpha1.PetSet, err error) { - result = &v1alpha1.PetSet{} - err = c.client.Get(). - Namespace(c.ns). - Resource("petsets"). - Name(name). - Do(). - Into(result) - return -} - -// List takes label and field selectors, and returns the list of PetSets that match those selectors. -func (c *petSets) List(opts api.ListOptions) (result *v1alpha1.PetSetList, err error) { - result = &v1alpha1.PetSetList{} - err = c.client.Get(). - Namespace(c.ns). - Resource("petsets"). - VersionedParams(&opts, api.ParameterCodec). - Do(). - Into(result) - return -} - -// Watch returns a watch.Interface that watches the requested petSets. -func (c *petSets) Watch(opts api.ListOptions) (watch.Interface, error) { - return c.client.Get(). - Prefix("watch"). - Namespace(c.ns). - Resource("petsets"). - VersionedParams(&opts, api.ParameterCodec). - Watch() -} - -// Patch applies the patch and returns the patched petSet. -func (c *petSets) Patch(name string, pt api.PatchType, data []byte, subresources ...string) (result *v1alpha1.PetSet, err error) { - result = &v1alpha1.PetSet{} - err = c.client.Patch(pt). - Namespace(c.ns). - Resource("petsets"). - SubResource(subresources...). - Name(name). - Body(data). - Do(). - Into(result) - return -} diff --git a/vendor/k8s.io/client-go/1.5/kubernetes/typed/authentication/v1beta1/authentication_client.go b/vendor/k8s.io/client-go/1.5/kubernetes/typed/authentication/v1beta1/authentication_client.go deleted file mode 100644 index 878e92aa0..000000000 --- a/vendor/k8s.io/client-go/1.5/kubernetes/typed/authentication/v1beta1/authentication_client.go +++ /dev/null @@ -1,96 +0,0 @@ -/* -Copyright 2016 The Kubernetes Authors. - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ - -package v1beta1 - -import ( - api "k8s.io/client-go/1.5/pkg/api" - registered "k8s.io/client-go/1.5/pkg/apimachinery/registered" - serializer "k8s.io/client-go/1.5/pkg/runtime/serializer" - rest "k8s.io/client-go/1.5/rest" -) - -type AuthenticationInterface interface { - GetRESTClient() *rest.RESTClient - TokenReviewsGetter -} - -// AuthenticationClient is used to interact with features provided by the Authentication group. -type AuthenticationClient struct { - *rest.RESTClient -} - -func (c *AuthenticationClient) TokenReviews() TokenReviewInterface { - return newTokenReviews(c) -} - -// NewForConfig creates a new AuthenticationClient for the given config. -func NewForConfig(c *rest.Config) (*AuthenticationClient, error) { - config := *c - if err := setConfigDefaults(&config); err != nil { - return nil, err - } - client, err := rest.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 *rest.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 *rest.RESTClient) *AuthenticationClient { - return &AuthenticationClient{c} -} - -func setConfigDefaults(config *rest.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 = rest.DefaultKubernetesUserAgent() - } - // TODO: Unconditionally set the config.Version, until we fix the config. - //if config.Version == "" { - copyGroupVersion := g.GroupVersion - config.GroupVersion = ©GroupVersion - //} - - config.NegotiatedSerializer = serializer.DirectCodecFactory{CodecFactory: api.Codecs} - - return nil -} - -// GetRESTClient returns a RESTClient that is used to communicate -// with API server by this client implementation. -func (c *AuthenticationClient) GetRESTClient() *rest.RESTClient { - if c == nil { - return nil - } - return c.RESTClient -} diff --git a/vendor/k8s.io/client-go/1.5/kubernetes/typed/authorization/v1beta1/authorization_client.go b/vendor/k8s.io/client-go/1.5/kubernetes/typed/authorization/v1beta1/authorization_client.go deleted file mode 100644 index 9ec2290cb..000000000 --- a/vendor/k8s.io/client-go/1.5/kubernetes/typed/authorization/v1beta1/authorization_client.go +++ /dev/null @@ -1,106 +0,0 @@ -/* -Copyright 2016 The Kubernetes Authors. - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ - -package v1beta1 - -import ( - api "k8s.io/client-go/1.5/pkg/api" - registered "k8s.io/client-go/1.5/pkg/apimachinery/registered" - serializer "k8s.io/client-go/1.5/pkg/runtime/serializer" - rest "k8s.io/client-go/1.5/rest" -) - -type AuthorizationInterface interface { - GetRESTClient() *rest.RESTClient - LocalSubjectAccessReviewsGetter - SelfSubjectAccessReviewsGetter - SubjectAccessReviewsGetter -} - -// AuthorizationClient is used to interact with features provided by the Authorization group. -type AuthorizationClient struct { - *rest.RESTClient -} - -func (c *AuthorizationClient) LocalSubjectAccessReviews(namespace string) LocalSubjectAccessReviewInterface { - return newLocalSubjectAccessReviews(c, namespace) -} - -func (c *AuthorizationClient) SelfSubjectAccessReviews() SelfSubjectAccessReviewInterface { - return newSelfSubjectAccessReviews(c) -} - -func (c *AuthorizationClient) SubjectAccessReviews() SubjectAccessReviewInterface { - return newSubjectAccessReviews(c) -} - -// NewForConfig creates a new AuthorizationClient for the given config. -func NewForConfig(c *rest.Config) (*AuthorizationClient, error) { - config := *c - if err := setConfigDefaults(&config); err != nil { - return nil, err - } - client, err := rest.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 *rest.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 *rest.RESTClient) *AuthorizationClient { - return &AuthorizationClient{c} -} - -func setConfigDefaults(config *rest.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 = rest.DefaultKubernetesUserAgent() - } - // TODO: Unconditionally set the config.Version, until we fix the config. - //if config.Version == "" { - copyGroupVersion := g.GroupVersion - config.GroupVersion = ©GroupVersion - //} - - config.NegotiatedSerializer = serializer.DirectCodecFactory{CodecFactory: api.Codecs} - - return nil -} - -// GetRESTClient returns a RESTClient that is used to communicate -// with API server by this client implementation. -func (c *AuthorizationClient) GetRESTClient() *rest.RESTClient { - if c == nil { - return nil - } - return c.RESTClient -} diff --git a/vendor/k8s.io/client-go/1.5/kubernetes/typed/autoscaling/v1/autoscaling_client.go b/vendor/k8s.io/client-go/1.5/kubernetes/typed/autoscaling/v1/autoscaling_client.go deleted file mode 100644 index 0dfd5d959..000000000 --- a/vendor/k8s.io/client-go/1.5/kubernetes/typed/autoscaling/v1/autoscaling_client.go +++ /dev/null @@ -1,96 +0,0 @@ -/* -Copyright 2016 The Kubernetes Authors. - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ - -package v1 - -import ( - api "k8s.io/client-go/1.5/pkg/api" - registered "k8s.io/client-go/1.5/pkg/apimachinery/registered" - serializer "k8s.io/client-go/1.5/pkg/runtime/serializer" - rest "k8s.io/client-go/1.5/rest" -) - -type AutoscalingInterface interface { - GetRESTClient() *rest.RESTClient - HorizontalPodAutoscalersGetter -} - -// AutoscalingClient is used to interact with features provided by the Autoscaling group. -type AutoscalingClient struct { - *rest.RESTClient -} - -func (c *AutoscalingClient) HorizontalPodAutoscalers(namespace string) HorizontalPodAutoscalerInterface { - return newHorizontalPodAutoscalers(c, namespace) -} - -// NewForConfig creates a new AutoscalingClient for the given config. -func NewForConfig(c *rest.Config) (*AutoscalingClient, error) { - config := *c - if err := setConfigDefaults(&config); err != nil { - return nil, err - } - client, err := rest.RESTClientFor(&config) - if err != nil { - return nil, err - } - return &AutoscalingClient{client}, nil -} - -// NewForConfigOrDie creates a new AutoscalingClient for the given config and -// panics if there is an error in the config. -func NewForConfigOrDie(c *rest.Config) *AutoscalingClient { - client, err := NewForConfig(c) - if err != nil { - panic(err) - } - return client -} - -// New creates a new AutoscalingClient for the given RESTClient. -func New(c *rest.RESTClient) *AutoscalingClient { - return &AutoscalingClient{c} -} - -func setConfigDefaults(config *rest.Config) error { - // if autoscaling group is not registered, return an error - g, err := registered.Group("autoscaling") - if err != nil { - return err - } - config.APIPath = "/apis" - if config.UserAgent == "" { - config.UserAgent = rest.DefaultKubernetesUserAgent() - } - // TODO: Unconditionally set the config.Version, until we fix the config. - //if config.Version == "" { - copyGroupVersion := g.GroupVersion - config.GroupVersion = ©GroupVersion - //} - - config.NegotiatedSerializer = serializer.DirectCodecFactory{CodecFactory: api.Codecs} - - return nil -} - -// GetRESTClient returns a RESTClient that is used to communicate -// with API server by this client implementation. -func (c *AutoscalingClient) GetRESTClient() *rest.RESTClient { - if c == nil { - return nil - } - return c.RESTClient -} diff --git a/vendor/k8s.io/client-go/1.5/kubernetes/typed/batch/v1/batch_client.go b/vendor/k8s.io/client-go/1.5/kubernetes/typed/batch/v1/batch_client.go deleted file mode 100644 index 084fa6a29..000000000 --- a/vendor/k8s.io/client-go/1.5/kubernetes/typed/batch/v1/batch_client.go +++ /dev/null @@ -1,96 +0,0 @@ -/* -Copyright 2016 The Kubernetes Authors. - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ - -package v1 - -import ( - api "k8s.io/client-go/1.5/pkg/api" - registered "k8s.io/client-go/1.5/pkg/apimachinery/registered" - serializer "k8s.io/client-go/1.5/pkg/runtime/serializer" - rest "k8s.io/client-go/1.5/rest" -) - -type BatchInterface interface { - GetRESTClient() *rest.RESTClient - JobsGetter -} - -// BatchClient is used to interact with features provided by the Batch group. -type BatchClient struct { - *rest.RESTClient -} - -func (c *BatchClient) Jobs(namespace string) JobInterface { - return newJobs(c, namespace) -} - -// NewForConfig creates a new BatchClient for the given config. -func NewForConfig(c *rest.Config) (*BatchClient, error) { - config := *c - if err := setConfigDefaults(&config); err != nil { - return nil, err - } - client, err := rest.RESTClientFor(&config) - if err != nil { - return nil, err - } - return &BatchClient{client}, nil -} - -// NewForConfigOrDie creates a new BatchClient for the given config and -// panics if there is an error in the config. -func NewForConfigOrDie(c *rest.Config) *BatchClient { - client, err := NewForConfig(c) - if err != nil { - panic(err) - } - return client -} - -// New creates a new BatchClient for the given RESTClient. -func New(c *rest.RESTClient) *BatchClient { - return &BatchClient{c} -} - -func setConfigDefaults(config *rest.Config) error { - // if batch group is not registered, return an error - g, err := registered.Group("batch") - if err != nil { - return err - } - config.APIPath = "/apis" - if config.UserAgent == "" { - config.UserAgent = rest.DefaultKubernetesUserAgent() - } - // TODO: Unconditionally set the config.Version, until we fix the config. - //if config.Version == "" { - copyGroupVersion := g.GroupVersion - config.GroupVersion = ©GroupVersion - //} - - config.NegotiatedSerializer = serializer.DirectCodecFactory{CodecFactory: api.Codecs} - - return nil -} - -// GetRESTClient returns a RESTClient that is used to communicate -// with API server by this client implementation. -func (c *BatchClient) GetRESTClient() *rest.RESTClient { - if c == nil { - return nil - } - return c.RESTClient -} diff --git a/vendor/k8s.io/client-go/1.5/kubernetes/typed/certificates/v1alpha1/certificates_client.go b/vendor/k8s.io/client-go/1.5/kubernetes/typed/certificates/v1alpha1/certificates_client.go deleted file mode 100644 index 56c3d4a39..000000000 --- a/vendor/k8s.io/client-go/1.5/kubernetes/typed/certificates/v1alpha1/certificates_client.go +++ /dev/null @@ -1,96 +0,0 @@ -/* -Copyright 2016 The Kubernetes Authors. - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ - -package v1alpha1 - -import ( - api "k8s.io/client-go/1.5/pkg/api" - registered "k8s.io/client-go/1.5/pkg/apimachinery/registered" - serializer "k8s.io/client-go/1.5/pkg/runtime/serializer" - rest "k8s.io/client-go/1.5/rest" -) - -type CertificatesInterface interface { - GetRESTClient() *rest.RESTClient - CertificateSigningRequestsGetter -} - -// CertificatesClient is used to interact with features provided by the Certificates group. -type CertificatesClient struct { - *rest.RESTClient -} - -func (c *CertificatesClient) CertificateSigningRequests() CertificateSigningRequestInterface { - return newCertificateSigningRequests(c) -} - -// NewForConfig creates a new CertificatesClient for the given config. -func NewForConfig(c *rest.Config) (*CertificatesClient, error) { - config := *c - if err := setConfigDefaults(&config); err != nil { - return nil, err - } - client, err := rest.RESTClientFor(&config) - if err != nil { - return nil, err - } - return &CertificatesClient{client}, nil -} - -// NewForConfigOrDie creates a new CertificatesClient for the given config and -// panics if there is an error in the config. -func NewForConfigOrDie(c *rest.Config) *CertificatesClient { - client, err := NewForConfig(c) - if err != nil { - panic(err) - } - return client -} - -// New creates a new CertificatesClient for the given RESTClient. -func New(c *rest.RESTClient) *CertificatesClient { - return &CertificatesClient{c} -} - -func setConfigDefaults(config *rest.Config) error { - // if certificates group is not registered, return an error - g, err := registered.Group("certificates.k8s.io") - if err != nil { - return err - } - config.APIPath = "/apis" - if config.UserAgent == "" { - config.UserAgent = rest.DefaultKubernetesUserAgent() - } - // TODO: Unconditionally set the config.Version, until we fix the config. - //if config.Version == "" { - copyGroupVersion := g.GroupVersion - config.GroupVersion = ©GroupVersion - //} - - config.NegotiatedSerializer = serializer.DirectCodecFactory{CodecFactory: api.Codecs} - - return nil -} - -// GetRESTClient returns a RESTClient that is used to communicate -// with API server by this client implementation. -func (c *CertificatesClient) GetRESTClient() *rest.RESTClient { - if c == nil { - return nil - } - return c.RESTClient -} diff --git a/vendor/k8s.io/client-go/1.5/kubernetes/typed/certificates/v1alpha1/generated_expansion.go b/vendor/k8s.io/client-go/1.5/kubernetes/typed/certificates/v1alpha1/generated_expansion.go deleted file mode 100644 index 1f67dc9d8..000000000 --- a/vendor/k8s.io/client-go/1.5/kubernetes/typed/certificates/v1alpha1/generated_expansion.go +++ /dev/null @@ -1,19 +0,0 @@ -/* -Copyright 2016 The Kubernetes Authors. - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ - -package v1alpha1 - -type CertificateSigningRequestExpansion interface{} diff --git a/vendor/k8s.io/client-go/1.5/kubernetes/typed/core/v1/core_client.go b/vendor/k8s.io/client-go/1.5/kubernetes/typed/core/v1/core_client.go deleted file mode 100644 index e32979f23..000000000 --- a/vendor/k8s.io/client-go/1.5/kubernetes/typed/core/v1/core_client.go +++ /dev/null @@ -1,171 +0,0 @@ -/* -Copyright 2016 The Kubernetes Authors. - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ - -package v1 - -import ( - api "k8s.io/client-go/1.5/pkg/api" - registered "k8s.io/client-go/1.5/pkg/apimachinery/registered" - serializer "k8s.io/client-go/1.5/pkg/runtime/serializer" - rest "k8s.io/client-go/1.5/rest" -) - -type CoreInterface interface { - GetRESTClient() *rest.RESTClient - ComponentStatusesGetter - ConfigMapsGetter - EndpointsGetter - EventsGetter - LimitRangesGetter - NamespacesGetter - NodesGetter - PersistentVolumesGetter - PersistentVolumeClaimsGetter - PodsGetter - PodTemplatesGetter - ReplicationControllersGetter - ResourceQuotasGetter - SecretsGetter - ServicesGetter - ServiceAccountsGetter -} - -// CoreClient is used to interact with features provided by the Core group. -type CoreClient struct { - *rest.RESTClient -} - -func (c *CoreClient) ComponentStatuses() ComponentStatusInterface { - return newComponentStatuses(c) -} - -func (c *CoreClient) ConfigMaps(namespace string) ConfigMapInterface { - return newConfigMaps(c, namespace) -} - -func (c *CoreClient) Endpoints(namespace string) EndpointsInterface { - return newEndpoints(c, namespace) -} - -func (c *CoreClient) Events(namespace string) EventInterface { - return newEvents(c, namespace) -} - -func (c *CoreClient) LimitRanges(namespace string) LimitRangeInterface { - return newLimitRanges(c, namespace) -} - -func (c *CoreClient) Namespaces() NamespaceInterface { - return newNamespaces(c) -} - -func (c *CoreClient) Nodes() NodeInterface { - return newNodes(c) -} - -func (c *CoreClient) PersistentVolumes() PersistentVolumeInterface { - return newPersistentVolumes(c) -} - -func (c *CoreClient) PersistentVolumeClaims(namespace string) PersistentVolumeClaimInterface { - return newPersistentVolumeClaims(c, namespace) -} - -func (c *CoreClient) Pods(namespace string) PodInterface { - return newPods(c, namespace) -} - -func (c *CoreClient) PodTemplates(namespace string) PodTemplateInterface { - return newPodTemplates(c, namespace) -} - -func (c *CoreClient) ReplicationControllers(namespace string) ReplicationControllerInterface { - return newReplicationControllers(c, namespace) -} - -func (c *CoreClient) ResourceQuotas(namespace string) ResourceQuotaInterface { - return newResourceQuotas(c, namespace) -} - -func (c *CoreClient) Secrets(namespace string) SecretInterface { - return newSecrets(c, namespace) -} - -func (c *CoreClient) Services(namespace string) ServiceInterface { - return newServices(c, namespace) -} - -func (c *CoreClient) ServiceAccounts(namespace string) ServiceAccountInterface { - return newServiceAccounts(c, namespace) -} - -// NewForConfig creates a new CoreClient for the given config. -func NewForConfig(c *rest.Config) (*CoreClient, error) { - config := *c - if err := setConfigDefaults(&config); err != nil { - return nil, err - } - client, err := rest.RESTClientFor(&config) - if err != nil { - return nil, err - } - return &CoreClient{client}, nil -} - -// NewForConfigOrDie creates a new CoreClient for the given config and -// panics if there is an error in the config. -func NewForConfigOrDie(c *rest.Config) *CoreClient { - client, err := NewForConfig(c) - if err != nil { - panic(err) - } - return client -} - -// New creates a new CoreClient for the given RESTClient. -func New(c *rest.RESTClient) *CoreClient { - return &CoreClient{c} -} - -func setConfigDefaults(config *rest.Config) error { - // if core group is not registered, return an error - g, err := registered.Group("") - if err != nil { - return err - } - config.APIPath = "/api" - if config.UserAgent == "" { - config.UserAgent = rest.DefaultKubernetesUserAgent() - } - // TODO: Unconditionally set the config.Version, until we fix the config. - //if config.Version == "" { - copyGroupVersion := g.GroupVersion - config.GroupVersion = ©GroupVersion - //} - - config.NegotiatedSerializer = serializer.DirectCodecFactory{CodecFactory: api.Codecs} - - return nil -} - -// GetRESTClient returns a RESTClient that is used to communicate -// with API server by this client implementation. -func (c *CoreClient) GetRESTClient() *rest.RESTClient { - if c == nil { - return nil - } - return c.RESTClient -} diff --git a/vendor/k8s.io/client-go/1.5/kubernetes/typed/extensions/v1beta1/extensions_client.go b/vendor/k8s.io/client-go/1.5/kubernetes/typed/extensions/v1beta1/extensions_client.go deleted file mode 100644 index 054bb461d..000000000 --- a/vendor/k8s.io/client-go/1.5/kubernetes/typed/extensions/v1beta1/extensions_client.go +++ /dev/null @@ -1,131 +0,0 @@ -/* -Copyright 2016 The Kubernetes Authors. - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ - -package v1beta1 - -import ( - api "k8s.io/client-go/1.5/pkg/api" - registered "k8s.io/client-go/1.5/pkg/apimachinery/registered" - serializer "k8s.io/client-go/1.5/pkg/runtime/serializer" - rest "k8s.io/client-go/1.5/rest" -) - -type ExtensionsInterface interface { - GetRESTClient() *rest.RESTClient - DaemonSetsGetter - DeploymentsGetter - IngressesGetter - JobsGetter - PodSecurityPoliciesGetter - ReplicaSetsGetter - ScalesGetter - ThirdPartyResourcesGetter -} - -// ExtensionsClient is used to interact with features provided by the Extensions group. -type ExtensionsClient struct { - *rest.RESTClient -} - -func (c *ExtensionsClient) DaemonSets(namespace string) DaemonSetInterface { - return newDaemonSets(c, namespace) -} - -func (c *ExtensionsClient) Deployments(namespace string) DeploymentInterface { - return newDeployments(c, namespace) -} - -func (c *ExtensionsClient) Ingresses(namespace string) IngressInterface { - return newIngresses(c, namespace) -} - -func (c *ExtensionsClient) Jobs(namespace string) JobInterface { - return newJobs(c, namespace) -} - -func (c *ExtensionsClient) PodSecurityPolicies() PodSecurityPolicyInterface { - return newPodSecurityPolicies(c) -} - -func (c *ExtensionsClient) ReplicaSets(namespace string) ReplicaSetInterface { - return newReplicaSets(c, namespace) -} - -func (c *ExtensionsClient) Scales(namespace string) ScaleInterface { - return newScales(c, namespace) -} - -func (c *ExtensionsClient) ThirdPartyResources() ThirdPartyResourceInterface { - return newThirdPartyResources(c) -} - -// NewForConfig creates a new ExtensionsClient for the given config. -func NewForConfig(c *rest.Config) (*ExtensionsClient, error) { - config := *c - if err := setConfigDefaults(&config); err != nil { - return nil, err - } - client, err := rest.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 *rest.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 *rest.RESTClient) *ExtensionsClient { - return &ExtensionsClient{c} -} - -func setConfigDefaults(config *rest.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 = rest.DefaultKubernetesUserAgent() - } - // TODO: Unconditionally set the config.Version, until we fix the config. - //if config.Version == "" { - copyGroupVersion := g.GroupVersion - config.GroupVersion = ©GroupVersion - //} - - config.NegotiatedSerializer = serializer.DirectCodecFactory{CodecFactory: api.Codecs} - - return nil -} - -// GetRESTClient returns a RESTClient that is used to communicate -// with API server by this client implementation. -func (c *ExtensionsClient) GetRESTClient() *rest.RESTClient { - if c == nil { - return nil - } - return c.RESTClient -} diff --git a/vendor/k8s.io/client-go/1.5/kubernetes/typed/policy/v1alpha1/policy_client.go b/vendor/k8s.io/client-go/1.5/kubernetes/typed/policy/v1alpha1/policy_client.go deleted file mode 100644 index 0491d3d5c..000000000 --- a/vendor/k8s.io/client-go/1.5/kubernetes/typed/policy/v1alpha1/policy_client.go +++ /dev/null @@ -1,96 +0,0 @@ -/* -Copyright 2016 The Kubernetes Authors. - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ - -package v1alpha1 - -import ( - api "k8s.io/client-go/1.5/pkg/api" - registered "k8s.io/client-go/1.5/pkg/apimachinery/registered" - serializer "k8s.io/client-go/1.5/pkg/runtime/serializer" - rest "k8s.io/client-go/1.5/rest" -) - -type PolicyInterface interface { - GetRESTClient() *rest.RESTClient - PodDisruptionBudgetsGetter -} - -// PolicyClient is used to interact with features provided by the Policy group. -type PolicyClient struct { - *rest.RESTClient -} - -func (c *PolicyClient) PodDisruptionBudgets(namespace string) PodDisruptionBudgetInterface { - return newPodDisruptionBudgets(c, namespace) -} - -// NewForConfig creates a new PolicyClient for the given config. -func NewForConfig(c *rest.Config) (*PolicyClient, error) { - config := *c - if err := setConfigDefaults(&config); err != nil { - return nil, err - } - client, err := rest.RESTClientFor(&config) - if err != nil { - return nil, err - } - return &PolicyClient{client}, nil -} - -// NewForConfigOrDie creates a new PolicyClient for the given config and -// panics if there is an error in the config. -func NewForConfigOrDie(c *rest.Config) *PolicyClient { - client, err := NewForConfig(c) - if err != nil { - panic(err) - } - return client -} - -// New creates a new PolicyClient for the given RESTClient. -func New(c *rest.RESTClient) *PolicyClient { - return &PolicyClient{c} -} - -func setConfigDefaults(config *rest.Config) error { - // if policy group is not registered, return an error - g, err := registered.Group("policy") - if err != nil { - return err - } - config.APIPath = "/apis" - if config.UserAgent == "" { - config.UserAgent = rest.DefaultKubernetesUserAgent() - } - // TODO: Unconditionally set the config.Version, until we fix the config. - //if config.Version == "" { - copyGroupVersion := g.GroupVersion - config.GroupVersion = ©GroupVersion - //} - - config.NegotiatedSerializer = serializer.DirectCodecFactory{CodecFactory: api.Codecs} - - return nil -} - -// GetRESTClient returns a RESTClient that is used to communicate -// with API server by this client implementation. -func (c *PolicyClient) GetRESTClient() *rest.RESTClient { - if c == nil { - return nil - } - return c.RESTClient -} diff --git a/vendor/k8s.io/client-go/1.5/kubernetes/typed/rbac/v1alpha1/doc.go b/vendor/k8s.io/client-go/1.5/kubernetes/typed/rbac/v1alpha1/doc.go deleted file mode 100644 index 0c1ca41fa..000000000 --- a/vendor/k8s.io/client-go/1.5/kubernetes/typed/rbac/v1alpha1/doc.go +++ /dev/null @@ -1,20 +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. -*/ - -// This package is generated by client-gen with arguments: --clientset-name=release_1_5 --input=[api/v1,apps/v1alpha1,authentication/v1beta1,authorization/v1beta1,autoscaling/v1,batch/v1,certificates/v1alpha1,extensions/v1beta1,policy/v1alpha1,rbac/v1alpha1,storage/v1beta1] - -// This package has the automatically generated typed clients. -package v1alpha1 diff --git a/vendor/k8s.io/client-go/1.5/kubernetes/typed/rbac/v1alpha1/rbac_client.go b/vendor/k8s.io/client-go/1.5/kubernetes/typed/rbac/v1alpha1/rbac_client.go deleted file mode 100644 index fde5a6036..000000000 --- a/vendor/k8s.io/client-go/1.5/kubernetes/typed/rbac/v1alpha1/rbac_client.go +++ /dev/null @@ -1,111 +0,0 @@ -/* -Copyright 2016 The Kubernetes Authors. - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ - -package v1alpha1 - -import ( - api "k8s.io/client-go/1.5/pkg/api" - registered "k8s.io/client-go/1.5/pkg/apimachinery/registered" - serializer "k8s.io/client-go/1.5/pkg/runtime/serializer" - rest "k8s.io/client-go/1.5/rest" -) - -type RbacInterface interface { - GetRESTClient() *rest.RESTClient - ClusterRolesGetter - ClusterRoleBindingsGetter - RolesGetter - RoleBindingsGetter -} - -// RbacClient is used to interact with features provided by the Rbac group. -type RbacClient struct { - *rest.RESTClient -} - -func (c *RbacClient) ClusterRoles() ClusterRoleInterface { - return newClusterRoles(c) -} - -func (c *RbacClient) ClusterRoleBindings() ClusterRoleBindingInterface { - return newClusterRoleBindings(c) -} - -func (c *RbacClient) Roles(namespace string) RoleInterface { - return newRoles(c, namespace) -} - -func (c *RbacClient) RoleBindings(namespace string) RoleBindingInterface { - return newRoleBindings(c, namespace) -} - -// NewForConfig creates a new RbacClient for the given config. -func NewForConfig(c *rest.Config) (*RbacClient, error) { - config := *c - if err := setConfigDefaults(&config); err != nil { - return nil, err - } - client, err := rest.RESTClientFor(&config) - if err != nil { - return nil, err - } - return &RbacClient{client}, nil -} - -// NewForConfigOrDie creates a new RbacClient for the given config and -// panics if there is an error in the config. -func NewForConfigOrDie(c *rest.Config) *RbacClient { - client, err := NewForConfig(c) - if err != nil { - panic(err) - } - return client -} - -// New creates a new RbacClient for the given RESTClient. -func New(c *rest.RESTClient) *RbacClient { - return &RbacClient{c} -} - -func setConfigDefaults(config *rest.Config) error { - // if rbac group is not registered, return an error - g, err := registered.Group("rbac.authorization.k8s.io") - if err != nil { - return err - } - config.APIPath = "/apis" - if config.UserAgent == "" { - config.UserAgent = rest.DefaultKubernetesUserAgent() - } - // TODO: Unconditionally set the config.Version, until we fix the config. - //if config.Version == "" { - copyGroupVersion := g.GroupVersion - config.GroupVersion = ©GroupVersion - //} - - config.NegotiatedSerializer = serializer.DirectCodecFactory{CodecFactory: api.Codecs} - - return nil -} - -// GetRESTClient returns a RESTClient that is used to communicate -// with API server by this client implementation. -func (c *RbacClient) GetRESTClient() *rest.RESTClient { - if c == nil { - return nil - } - return c.RESTClient -} diff --git a/vendor/k8s.io/client-go/1.5/kubernetes/typed/storage/v1beta1/storage_client.go b/vendor/k8s.io/client-go/1.5/kubernetes/typed/storage/v1beta1/storage_client.go deleted file mode 100644 index 813cdbf05..000000000 --- a/vendor/k8s.io/client-go/1.5/kubernetes/typed/storage/v1beta1/storage_client.go +++ /dev/null @@ -1,96 +0,0 @@ -/* -Copyright 2016 The Kubernetes Authors. - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ - -package v1beta1 - -import ( - api "k8s.io/client-go/1.5/pkg/api" - registered "k8s.io/client-go/1.5/pkg/apimachinery/registered" - serializer "k8s.io/client-go/1.5/pkg/runtime/serializer" - rest "k8s.io/client-go/1.5/rest" -) - -type StorageInterface interface { - GetRESTClient() *rest.RESTClient - StorageClassesGetter -} - -// StorageClient is used to interact with features provided by the Storage group. -type StorageClient struct { - *rest.RESTClient -} - -func (c *StorageClient) StorageClasses() StorageClassInterface { - return newStorageClasses(c) -} - -// NewForConfig creates a new StorageClient for the given config. -func NewForConfig(c *rest.Config) (*StorageClient, error) { - config := *c - if err := setConfigDefaults(&config); err != nil { - return nil, err - } - client, err := rest.RESTClientFor(&config) - if err != nil { - return nil, err - } - return &StorageClient{client}, nil -} - -// NewForConfigOrDie creates a new StorageClient for the given config and -// panics if there is an error in the config. -func NewForConfigOrDie(c *rest.Config) *StorageClient { - client, err := NewForConfig(c) - if err != nil { - panic(err) - } - return client -} - -// New creates a new StorageClient for the given RESTClient. -func New(c *rest.RESTClient) *StorageClient { - return &StorageClient{c} -} - -func setConfigDefaults(config *rest.Config) error { - // if storage group is not registered, return an error - g, err := registered.Group("storage.k8s.io") - if err != nil { - return err - } - config.APIPath = "/apis" - if config.UserAgent == "" { - config.UserAgent = rest.DefaultKubernetesUserAgent() - } - // TODO: Unconditionally set the config.Version, until we fix the config. - //if config.Version == "" { - copyGroupVersion := g.GroupVersion - config.GroupVersion = ©GroupVersion - //} - - config.NegotiatedSerializer = serializer.DirectCodecFactory{CodecFactory: api.Codecs} - - return nil -} - -// GetRESTClient returns a RESTClient that is used to communicate -// with API server by this client implementation. -func (c *StorageClient) GetRESTClient() *rest.RESTClient { - if c == nil { - return nil - } - return c.RESTClient -} diff --git a/vendor/k8s.io/client-go/1.5/pkg/api/resource/generated.pb.go b/vendor/k8s.io/client-go/1.5/pkg/api/resource/generated.pb.go deleted file mode 100644 index 10fe6f07b..000000000 --- a/vendor/k8s.io/client-go/1.5/pkg/api/resource/generated.pb.go +++ /dev/null @@ -1,69 +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. -*/ - -// 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.5.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/vendor/k8s.io/client-go/1.5/pkg/api/unversioned/well_known_labels.go b/vendor/k8s.io/client-go/1.5/pkg/api/unversioned/well_known_labels.go deleted file mode 100644 index 318c6eebf..000000000 --- a/vendor/k8s.io/client-go/1.5/pkg/api/unversioned/well_known_labels.go +++ /dev/null @@ -1,30 +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 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/vendor/k8s.io/client-go/1.5/pkg/apis/apps/v1alpha1/types_swagger_doc_generated.go b/vendor/k8s.io/client-go/1.5/pkg/apis/apps/v1alpha1/types_swagger_doc_generated.go deleted file mode 100644 index 5191f1224..000000000 --- a/vendor/k8s.io/client-go/1.5/pkg/apis/apps/v1alpha1/types_swagger_doc_generated.go +++ /dev/null @@ -1,71 +0,0 @@ -/* -Copyright 2016 The Kubernetes Authors. - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ - -package v1alpha1 - -// 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_PetSet = map[string]string{ - "": "PetSet represents a set of pods with consistent identities. Identities are defined as:\n - Network: A single stable DNS and hostname.\n - Storage: As many VolumeClaims as requested.\nThe PetSet guarantees that a given network identity will always map to the same storage identity. PetSet is currently in alpha and subject to change without notice.", - "spec": "Spec defines the desired identities of pets in this set.", - "status": "Status is the current status of Pets in this PetSet. This data may be out of date by some window of time.", -} - -func (PetSet) SwaggerDoc() map[string]string { - return map_PetSet -} - -var map_PetSetList = map[string]string{ - "": "PetSetList is a collection of PetSets.", -} - -func (PetSetList) SwaggerDoc() map[string]string { - return map_PetSetList -} - -var map_PetSetSpec = map[string]string{ - "": "A PetSetSpec is the specification of a PetSet.", - "replicas": "Replicas is the desired number of replicas of the given Template. These are replicas in the sense that they are instantiations of the same Template, but individual replicas also have a consistent identity. If unspecified, defaults to 1.", - "selector": "Selector is a label query over pods that should match the replica count. If empty, defaulted to labels on the 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. Each pod stamped out by the PetSet will fulfill this Template, but have a unique identity from the rest of the PetSet.", - "volumeClaimTemplates": "VolumeClaimTemplates is a list of claims that pets are allowed to reference. The PetSet controller is responsible for mapping network identities to claims in a way that maintains the identity of a pet. Every claim in this list must have at least one matching (by name) volumeMount in one container in the template. A claim in this list takes precedence over any volumes in the template, with the same name.", - "serviceName": "ServiceName is the name of the service that governs this PetSet. This service must exist before the PetSet, and is responsible for the network identity of the set. Pets get DNS/hostnames that follow the pattern: pet-specific-string.serviceName.default.svc.cluster.local where \"pet-specific-string\" is managed by the PetSet controller.", -} - -func (PetSetSpec) SwaggerDoc() map[string]string { - return map_PetSetSpec -} - -var map_PetSetStatus = map[string]string{ - "": "PetSetStatus represents the current state of a PetSet.", - "observedGeneration": "most recent generation observed by this autoscaler.", - "replicas": "Replicas is the number of actual replicas.", -} - -func (PetSetStatus) SwaggerDoc() map[string]string { - return map_PetSetStatus -} - -// AUTO-GENERATED FUNCTIONS END HERE diff --git a/vendor/k8s.io/client-go/1.5/pkg/apis/apps/v1alpha1/zz_generated.conversion.go b/vendor/k8s.io/client-go/1.5/pkg/apis/apps/v1alpha1/zz_generated.conversion.go deleted file mode 100644 index d93e738b2..000000000 --- a/vendor/k8s.io/client-go/1.5/pkg/apis/apps/v1alpha1/zz_generated.conversion.go +++ /dev/null @@ -1,205 +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/client-go/1.5/pkg/api" - v1 "k8s.io/client-go/1.5/pkg/api/v1" - apps "k8s.io/client-go/1.5/pkg/apis/apps" - conversion "k8s.io/client-go/1.5/pkg/conversion" - runtime "k8s.io/client-go/1.5/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_PetSet_To_apps_PetSet, - Convert_apps_PetSet_To_v1alpha1_PetSet, - Convert_v1alpha1_PetSetList_To_apps_PetSetList, - Convert_apps_PetSetList_To_v1alpha1_PetSetList, - Convert_v1alpha1_PetSetSpec_To_apps_PetSetSpec, - Convert_apps_PetSetSpec_To_v1alpha1_PetSetSpec, - Convert_v1alpha1_PetSetStatus_To_apps_PetSetStatus, - Convert_apps_PetSetStatus_To_v1alpha1_PetSetStatus, - ) -} - -func autoConvert_v1alpha1_PetSet_To_apps_PetSet(in *PetSet, out *apps.PetSet, s conversion.Scope) error { - SetDefaults_PetSet(in) - 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_PetSetSpec_To_apps_PetSetSpec(&in.Spec, &out.Spec, s); err != nil { - return err - } - if err := Convert_v1alpha1_PetSetStatus_To_apps_PetSetStatus(&in.Status, &out.Status, s); err != nil { - return err - } - return nil -} - -func Convert_v1alpha1_PetSet_To_apps_PetSet(in *PetSet, out *apps.PetSet, s conversion.Scope) error { - return autoConvert_v1alpha1_PetSet_To_apps_PetSet(in, out, s) -} - -func autoConvert_apps_PetSet_To_v1alpha1_PetSet(in *apps.PetSet, out *PetSet, 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_apps_PetSetSpec_To_v1alpha1_PetSetSpec(&in.Spec, &out.Spec, s); err != nil { - return err - } - if err := Convert_apps_PetSetStatus_To_v1alpha1_PetSetStatus(&in.Status, &out.Status, s); err != nil { - return err - } - return nil -} - -func Convert_apps_PetSet_To_v1alpha1_PetSet(in *apps.PetSet, out *PetSet, s conversion.Scope) error { - return autoConvert_apps_PetSet_To_v1alpha1_PetSet(in, out, s) -} - -func autoConvert_v1alpha1_PetSetList_To_apps_PetSetList(in *PetSetList, out *apps.PetSetList, 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([]apps.PetSet, len(*in)) - for i := range *in { - if err := Convert_v1alpha1_PetSet_To_apps_PetSet(&(*in)[i], &(*out)[i], s); err != nil { - return err - } - } - } else { - out.Items = nil - } - return nil -} - -func Convert_v1alpha1_PetSetList_To_apps_PetSetList(in *PetSetList, out *apps.PetSetList, s conversion.Scope) error { - return autoConvert_v1alpha1_PetSetList_To_apps_PetSetList(in, out, s) -} - -func autoConvert_apps_PetSetList_To_v1alpha1_PetSetList(in *apps.PetSetList, out *PetSetList, 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([]PetSet, len(*in)) - for i := range *in { - if err := Convert_apps_PetSet_To_v1alpha1_PetSet(&(*in)[i], &(*out)[i], s); err != nil { - return err - } - } - } else { - out.Items = nil - } - return nil -} - -func Convert_apps_PetSetList_To_v1alpha1_PetSetList(in *apps.PetSetList, out *PetSetList, s conversion.Scope) error { - return autoConvert_apps_PetSetList_To_v1alpha1_PetSetList(in, out, s) -} - -func autoConvert_v1alpha1_PetSetSpec_To_apps_PetSetSpec(in *PetSetSpec, out *apps.PetSetSpec, s conversion.Scope) error { - // WARNING: in.Replicas requires manual conversion: inconvertible types (*int32 vs int) - out.Selector = in.Selector - if err := v1.Convert_v1_PodTemplateSpec_To_api_PodTemplateSpec(&in.Template, &out.Template, s); err != nil { - return err - } - if in.VolumeClaimTemplates != nil { - in, out := &in.VolumeClaimTemplates, &out.VolumeClaimTemplates - *out = make([]api.PersistentVolumeClaim, len(*in)) - for i := range *in { - // TODO: Inefficient conversion - can we improve it? - if err := s.Convert(&(*in)[i], &(*out)[i], 0); err != nil { - return err - } - } - } else { - out.VolumeClaimTemplates = nil - } - out.ServiceName = in.ServiceName - return nil -} - -func autoConvert_apps_PetSetSpec_To_v1alpha1_PetSetSpec(in *apps.PetSetSpec, out *PetSetSpec, s conversion.Scope) error { - // WARNING: in.Replicas requires manual conversion: inconvertible types (int vs *int32) - out.Selector = in.Selector - if err := v1.Convert_api_PodTemplateSpec_To_v1_PodTemplateSpec(&in.Template, &out.Template, s); err != nil { - return err - } - if in.VolumeClaimTemplates != nil { - in, out := &in.VolumeClaimTemplates, &out.VolumeClaimTemplates - *out = make([]v1.PersistentVolumeClaim, len(*in)) - for i := range *in { - // TODO: Inefficient conversion - can we improve it? - if err := s.Convert(&(*in)[i], &(*out)[i], 0); err != nil { - return err - } - } - } else { - out.VolumeClaimTemplates = nil - } - out.ServiceName = in.ServiceName - return nil -} - -func autoConvert_v1alpha1_PetSetStatus_To_apps_PetSetStatus(in *PetSetStatus, out *apps.PetSetStatus, s conversion.Scope) error { - out.ObservedGeneration = in.ObservedGeneration - out.Replicas = int(in.Replicas) - return nil -} - -func Convert_v1alpha1_PetSetStatus_To_apps_PetSetStatus(in *PetSetStatus, out *apps.PetSetStatus, s conversion.Scope) error { - return autoConvert_v1alpha1_PetSetStatus_To_apps_PetSetStatus(in, out, s) -} - -func autoConvert_apps_PetSetStatus_To_v1alpha1_PetSetStatus(in *apps.PetSetStatus, out *PetSetStatus, s conversion.Scope) error { - out.ObservedGeneration = in.ObservedGeneration - out.Replicas = int32(in.Replicas) - return nil -} - -func Convert_apps_PetSetStatus_To_v1alpha1_PetSetStatus(in *apps.PetSetStatus, out *PetSetStatus, s conversion.Scope) error { - return autoConvert_apps_PetSetStatus_To_v1alpha1_PetSetStatus(in, out, s) -} diff --git a/vendor/k8s.io/client-go/1.5/pkg/apis/batch/v1/zz_generated.conversion.go b/vendor/k8s.io/client-go/1.5/pkg/apis/batch/v1/zz_generated.conversion.go deleted file mode 100644 index b4c218138..000000000 --- a/vendor/k8s.io/client-go/1.5/pkg/apis/batch/v1/zz_generated.conversion.go +++ /dev/null @@ -1,334 +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 v1 - -import ( - api "k8s.io/client-go/1.5/pkg/api" - unversioned "k8s.io/client-go/1.5/pkg/api/unversioned" - api_v1 "k8s.io/client-go/1.5/pkg/api/v1" - batch "k8s.io/client-go/1.5/pkg/apis/batch" - conversion "k8s.io/client-go/1.5/pkg/conversion" - runtime "k8s.io/client-go/1.5/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_v1_Job_To_batch_Job, - Convert_batch_Job_To_v1_Job, - Convert_v1_JobCondition_To_batch_JobCondition, - Convert_batch_JobCondition_To_v1_JobCondition, - Convert_v1_JobList_To_batch_JobList, - Convert_batch_JobList_To_v1_JobList, - Convert_v1_JobSpec_To_batch_JobSpec, - Convert_batch_JobSpec_To_v1_JobSpec, - Convert_v1_JobStatus_To_batch_JobStatus, - Convert_batch_JobStatus_To_v1_JobStatus, - Convert_v1_LabelSelector_To_unversioned_LabelSelector, - Convert_unversioned_LabelSelector_To_v1_LabelSelector, - Convert_v1_LabelSelectorRequirement_To_unversioned_LabelSelectorRequirement, - Convert_unversioned_LabelSelectorRequirement_To_v1_LabelSelectorRequirement, - ) -} - -func autoConvert_v1_Job_To_batch_Job(in *Job, out *batch.Job, s conversion.Scope) error { - SetDefaults_Job(in) - 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_v1_JobSpec_To_batch_JobSpec(&in.Spec, &out.Spec, s); err != nil { - return err - } - if err := Convert_v1_JobStatus_To_batch_JobStatus(&in.Status, &out.Status, s); err != nil { - return err - } - return nil -} - -func Convert_v1_Job_To_batch_Job(in *Job, out *batch.Job, s conversion.Scope) error { - return autoConvert_v1_Job_To_batch_Job(in, out, s) -} - -func autoConvert_batch_Job_To_v1_Job(in *batch.Job, out *Job, 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_batch_JobSpec_To_v1_JobSpec(&in.Spec, &out.Spec, s); err != nil { - return err - } - if err := Convert_batch_JobStatus_To_v1_JobStatus(&in.Status, &out.Status, s); err != nil { - return err - } - return nil -} - -func Convert_batch_Job_To_v1_Job(in *batch.Job, out *Job, s conversion.Scope) error { - return autoConvert_batch_Job_To_v1_Job(in, out, s) -} - -func autoConvert_v1_JobCondition_To_batch_JobCondition(in *JobCondition, out *batch.JobCondition, s conversion.Scope) error { - out.Type = batch.JobConditionType(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_JobCondition_To_batch_JobCondition(in *JobCondition, out *batch.JobCondition, s conversion.Scope) error { - return autoConvert_v1_JobCondition_To_batch_JobCondition(in, out, s) -} - -func autoConvert_batch_JobCondition_To_v1_JobCondition(in *batch.JobCondition, out *JobCondition, s conversion.Scope) error { - out.Type = JobConditionType(in.Type) - out.Status = api_v1.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_batch_JobCondition_To_v1_JobCondition(in *batch.JobCondition, out *JobCondition, s conversion.Scope) error { - return autoConvert_batch_JobCondition_To_v1_JobCondition(in, out, s) -} - -func autoConvert_v1_JobList_To_batch_JobList(in *JobList, out *batch.JobList, 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([]batch.Job, len(*in)) - for i := range *in { - if err := Convert_v1_Job_To_batch_Job(&(*in)[i], &(*out)[i], s); err != nil { - return err - } - } - } else { - out.Items = nil - } - return nil -} - -func Convert_v1_JobList_To_batch_JobList(in *JobList, out *batch.JobList, s conversion.Scope) error { - return autoConvert_v1_JobList_To_batch_JobList(in, out, s) -} - -func autoConvert_batch_JobList_To_v1_JobList(in *batch.JobList, out *JobList, 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([]Job, len(*in)) - for i := range *in { - if err := Convert_batch_Job_To_v1_Job(&(*in)[i], &(*out)[i], s); err != nil { - return err - } - } - } else { - out.Items = nil - } - return nil -} - -func Convert_batch_JobList_To_v1_JobList(in *batch.JobList, out *JobList, s conversion.Scope) error { - return autoConvert_batch_JobList_To_v1_JobList(in, out, s) -} - -func autoConvert_v1_JobSpec_To_batch_JobSpec(in *JobSpec, out *batch.JobSpec, s conversion.Scope) error { - out.Parallelism = in.Parallelism - out.Completions = in.Completions - out.ActiveDeadlineSeconds = in.ActiveDeadlineSeconds - if in.Selector != nil { - in, out := &in.Selector, &out.Selector - *out = new(unversioned.LabelSelector) - if err := Convert_v1_LabelSelector_To_unversioned_LabelSelector(*in, *out, s); err != nil { - return err - } - } else { - out.Selector = nil - } - out.ManualSelector = in.ManualSelector - if err := api_v1.Convert_v1_PodTemplateSpec_To_api_PodTemplateSpec(&in.Template, &out.Template, s); err != nil { - return err - } - return nil -} - -func autoConvert_batch_JobSpec_To_v1_JobSpec(in *batch.JobSpec, out *JobSpec, s conversion.Scope) error { - out.Parallelism = in.Parallelism - out.Completions = in.Completions - out.ActiveDeadlineSeconds = in.ActiveDeadlineSeconds - if in.Selector != nil { - in, out := &in.Selector, &out.Selector - *out = new(LabelSelector) - if err := Convert_unversioned_LabelSelector_To_v1_LabelSelector(*in, *out, s); err != nil { - return err - } - } else { - out.Selector = nil - } - out.ManualSelector = in.ManualSelector - if err := api_v1.Convert_api_PodTemplateSpec_To_v1_PodTemplateSpec(&in.Template, &out.Template, s); err != nil { - return err - } - return nil -} - -func autoConvert_v1_JobStatus_To_batch_JobStatus(in *JobStatus, out *batch.JobStatus, s conversion.Scope) error { - if in.Conditions != nil { - in, out := &in.Conditions, &out.Conditions - *out = make([]batch.JobCondition, len(*in)) - for i := range *in { - if err := Convert_v1_JobCondition_To_batch_JobCondition(&(*in)[i], &(*out)[i], s); err != nil { - return err - } - } - } else { - out.Conditions = nil - } - out.StartTime = in.StartTime - out.CompletionTime = in.CompletionTime - out.Active = in.Active - out.Succeeded = in.Succeeded - out.Failed = in.Failed - return nil -} - -func Convert_v1_JobStatus_To_batch_JobStatus(in *JobStatus, out *batch.JobStatus, s conversion.Scope) error { - return autoConvert_v1_JobStatus_To_batch_JobStatus(in, out, s) -} - -func autoConvert_batch_JobStatus_To_v1_JobStatus(in *batch.JobStatus, out *JobStatus, s conversion.Scope) error { - if in.Conditions != nil { - in, out := &in.Conditions, &out.Conditions - *out = make([]JobCondition, len(*in)) - for i := range *in { - if err := Convert_batch_JobCondition_To_v1_JobCondition(&(*in)[i], &(*out)[i], s); err != nil { - return err - } - } - } else { - out.Conditions = nil - } - out.StartTime = in.StartTime - out.CompletionTime = in.CompletionTime - out.Active = in.Active - out.Succeeded = in.Succeeded - out.Failed = in.Failed - return nil -} - -func Convert_batch_JobStatus_To_v1_JobStatus(in *batch.JobStatus, out *JobStatus, s conversion.Scope) error { - return autoConvert_batch_JobStatus_To_v1_JobStatus(in, out, s) -} - -func autoConvert_v1_LabelSelector_To_unversioned_LabelSelector(in *LabelSelector, out *unversioned.LabelSelector, s conversion.Scope) error { - out.MatchLabels = in.MatchLabels - if in.MatchExpressions != nil { - in, out := &in.MatchExpressions, &out.MatchExpressions - *out = make([]unversioned.LabelSelectorRequirement, len(*in)) - for i := range *in { - if err := Convert_v1_LabelSelectorRequirement_To_unversioned_LabelSelectorRequirement(&(*in)[i], &(*out)[i], s); err != nil { - return err - } - } - } else { - out.MatchExpressions = nil - } - return nil -} - -func Convert_v1_LabelSelector_To_unversioned_LabelSelector(in *LabelSelector, out *unversioned.LabelSelector, s conversion.Scope) error { - return autoConvert_v1_LabelSelector_To_unversioned_LabelSelector(in, out, s) -} - -func autoConvert_unversioned_LabelSelector_To_v1_LabelSelector(in *unversioned.LabelSelector, out *LabelSelector, s conversion.Scope) error { - out.MatchLabels = in.MatchLabels - if in.MatchExpressions != nil { - in, out := &in.MatchExpressions, &out.MatchExpressions - *out = make([]LabelSelectorRequirement, len(*in)) - for i := range *in { - if err := Convert_unversioned_LabelSelectorRequirement_To_v1_LabelSelectorRequirement(&(*in)[i], &(*out)[i], s); err != nil { - return err - } - } - } else { - out.MatchExpressions = nil - } - return nil -} - -func Convert_unversioned_LabelSelector_To_v1_LabelSelector(in *unversioned.LabelSelector, out *LabelSelector, s conversion.Scope) error { - return autoConvert_unversioned_LabelSelector_To_v1_LabelSelector(in, out, s) -} - -func autoConvert_v1_LabelSelectorRequirement_To_unversioned_LabelSelectorRequirement(in *LabelSelectorRequirement, out *unversioned.LabelSelectorRequirement, s conversion.Scope) error { - out.Key = in.Key - out.Operator = unversioned.LabelSelectorOperator(in.Operator) - out.Values = in.Values - return nil -} - -func Convert_v1_LabelSelectorRequirement_To_unversioned_LabelSelectorRequirement(in *LabelSelectorRequirement, out *unversioned.LabelSelectorRequirement, s conversion.Scope) error { - return autoConvert_v1_LabelSelectorRequirement_To_unversioned_LabelSelectorRequirement(in, out, s) -} - -func autoConvert_unversioned_LabelSelectorRequirement_To_v1_LabelSelectorRequirement(in *unversioned.LabelSelectorRequirement, out *LabelSelectorRequirement, s conversion.Scope) error { - out.Key = in.Key - out.Operator = LabelSelectorOperator(in.Operator) - out.Values = in.Values - return nil -} - -func Convert_unversioned_LabelSelectorRequirement_To_v1_LabelSelectorRequirement(in *unversioned.LabelSelectorRequirement, out *LabelSelectorRequirement, s conversion.Scope) error { - return autoConvert_unversioned_LabelSelectorRequirement_To_v1_LabelSelectorRequirement(in, out, s) -} diff --git a/vendor/k8s.io/client-go/1.5/pkg/apis/batch/v2alpha1/zz_generated.conversion.go b/vendor/k8s.io/client-go/1.5/pkg/apis/batch/v2alpha1/zz_generated.conversion.go deleted file mode 100644 index ea087e8e7..000000000 --- a/vendor/k8s.io/client-go/1.5/pkg/apis/batch/v2alpha1/zz_generated.conversion.go +++ /dev/null @@ -1,577 +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 v2alpha1 - -import ( - api "k8s.io/client-go/1.5/pkg/api" - unversioned "k8s.io/client-go/1.5/pkg/api/unversioned" - v1 "k8s.io/client-go/1.5/pkg/api/v1" - batch "k8s.io/client-go/1.5/pkg/apis/batch" - conversion "k8s.io/client-go/1.5/pkg/conversion" - runtime "k8s.io/client-go/1.5/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_v2alpha1_Job_To_batch_Job, - Convert_batch_Job_To_v2alpha1_Job, - Convert_v2alpha1_JobCondition_To_batch_JobCondition, - Convert_batch_JobCondition_To_v2alpha1_JobCondition, - Convert_v2alpha1_JobList_To_batch_JobList, - Convert_batch_JobList_To_v2alpha1_JobList, - Convert_v2alpha1_JobSpec_To_batch_JobSpec, - Convert_batch_JobSpec_To_v2alpha1_JobSpec, - Convert_v2alpha1_JobStatus_To_batch_JobStatus, - Convert_batch_JobStatus_To_v2alpha1_JobStatus, - Convert_v2alpha1_JobTemplate_To_batch_JobTemplate, - Convert_batch_JobTemplate_To_v2alpha1_JobTemplate, - Convert_v2alpha1_JobTemplateSpec_To_batch_JobTemplateSpec, - Convert_batch_JobTemplateSpec_To_v2alpha1_JobTemplateSpec, - Convert_v2alpha1_LabelSelector_To_unversioned_LabelSelector, - Convert_unversioned_LabelSelector_To_v2alpha1_LabelSelector, - Convert_v2alpha1_LabelSelectorRequirement_To_unversioned_LabelSelectorRequirement, - Convert_unversioned_LabelSelectorRequirement_To_v2alpha1_LabelSelectorRequirement, - Convert_v2alpha1_ScheduledJob_To_batch_ScheduledJob, - Convert_batch_ScheduledJob_To_v2alpha1_ScheduledJob, - Convert_v2alpha1_ScheduledJobList_To_batch_ScheduledJobList, - Convert_batch_ScheduledJobList_To_v2alpha1_ScheduledJobList, - Convert_v2alpha1_ScheduledJobSpec_To_batch_ScheduledJobSpec, - Convert_batch_ScheduledJobSpec_To_v2alpha1_ScheduledJobSpec, - Convert_v2alpha1_ScheduledJobStatus_To_batch_ScheduledJobStatus, - Convert_batch_ScheduledJobStatus_To_v2alpha1_ScheduledJobStatus, - ) -} - -func autoConvert_v2alpha1_Job_To_batch_Job(in *Job, out *batch.Job, s conversion.Scope) error { - SetDefaults_Job(in) - 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_v2alpha1_JobSpec_To_batch_JobSpec(&in.Spec, &out.Spec, s); err != nil { - return err - } - if err := Convert_v2alpha1_JobStatus_To_batch_JobStatus(&in.Status, &out.Status, s); err != nil { - return err - } - return nil -} - -func Convert_v2alpha1_Job_To_batch_Job(in *Job, out *batch.Job, s conversion.Scope) error { - return autoConvert_v2alpha1_Job_To_batch_Job(in, out, s) -} - -func autoConvert_batch_Job_To_v2alpha1_Job(in *batch.Job, out *Job, 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_batch_JobSpec_To_v2alpha1_JobSpec(&in.Spec, &out.Spec, s); err != nil { - return err - } - if err := Convert_batch_JobStatus_To_v2alpha1_JobStatus(&in.Status, &out.Status, s); err != nil { - return err - } - return nil -} - -func Convert_batch_Job_To_v2alpha1_Job(in *batch.Job, out *Job, s conversion.Scope) error { - return autoConvert_batch_Job_To_v2alpha1_Job(in, out, s) -} - -func autoConvert_v2alpha1_JobCondition_To_batch_JobCondition(in *JobCondition, out *batch.JobCondition, s conversion.Scope) error { - out.Type = batch.JobConditionType(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_v2alpha1_JobCondition_To_batch_JobCondition(in *JobCondition, out *batch.JobCondition, s conversion.Scope) error { - return autoConvert_v2alpha1_JobCondition_To_batch_JobCondition(in, out, s) -} - -func autoConvert_batch_JobCondition_To_v2alpha1_JobCondition(in *batch.JobCondition, out *JobCondition, s conversion.Scope) error { - out.Type = JobConditionType(in.Type) - out.Status = v1.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_batch_JobCondition_To_v2alpha1_JobCondition(in *batch.JobCondition, out *JobCondition, s conversion.Scope) error { - return autoConvert_batch_JobCondition_To_v2alpha1_JobCondition(in, out, s) -} - -func autoConvert_v2alpha1_JobList_To_batch_JobList(in *JobList, out *batch.JobList, 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([]batch.Job, len(*in)) - for i := range *in { - if err := Convert_v2alpha1_Job_To_batch_Job(&(*in)[i], &(*out)[i], s); err != nil { - return err - } - } - } else { - out.Items = nil - } - return nil -} - -func Convert_v2alpha1_JobList_To_batch_JobList(in *JobList, out *batch.JobList, s conversion.Scope) error { - return autoConvert_v2alpha1_JobList_To_batch_JobList(in, out, s) -} - -func autoConvert_batch_JobList_To_v2alpha1_JobList(in *batch.JobList, out *JobList, 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([]Job, len(*in)) - for i := range *in { - if err := Convert_batch_Job_To_v2alpha1_Job(&(*in)[i], &(*out)[i], s); err != nil { - return err - } - } - } else { - out.Items = nil - } - return nil -} - -func Convert_batch_JobList_To_v2alpha1_JobList(in *batch.JobList, out *JobList, s conversion.Scope) error { - return autoConvert_batch_JobList_To_v2alpha1_JobList(in, out, s) -} - -func autoConvert_v2alpha1_JobSpec_To_batch_JobSpec(in *JobSpec, out *batch.JobSpec, s conversion.Scope) error { - out.Parallelism = in.Parallelism - out.Completions = in.Completions - out.ActiveDeadlineSeconds = in.ActiveDeadlineSeconds - if in.Selector != nil { - in, out := &in.Selector, &out.Selector - *out = new(unversioned.LabelSelector) - if err := Convert_v2alpha1_LabelSelector_To_unversioned_LabelSelector(*in, *out, s); err != nil { - return err - } - } else { - out.Selector = nil - } - out.ManualSelector = in.ManualSelector - if err := v1.Convert_v1_PodTemplateSpec_To_api_PodTemplateSpec(&in.Template, &out.Template, s); err != nil { - return err - } - return nil -} - -func autoConvert_batch_JobSpec_To_v2alpha1_JobSpec(in *batch.JobSpec, out *JobSpec, s conversion.Scope) error { - out.Parallelism = in.Parallelism - out.Completions = in.Completions - out.ActiveDeadlineSeconds = in.ActiveDeadlineSeconds - if in.Selector != nil { - in, out := &in.Selector, &out.Selector - *out = new(LabelSelector) - if err := Convert_unversioned_LabelSelector_To_v2alpha1_LabelSelector(*in, *out, s); err != nil { - return err - } - } else { - out.Selector = nil - } - out.ManualSelector = in.ManualSelector - if err := v1.Convert_api_PodTemplateSpec_To_v1_PodTemplateSpec(&in.Template, &out.Template, s); err != nil { - return err - } - return nil -} - -func autoConvert_v2alpha1_JobStatus_To_batch_JobStatus(in *JobStatus, out *batch.JobStatus, s conversion.Scope) error { - if in.Conditions != nil { - in, out := &in.Conditions, &out.Conditions - *out = make([]batch.JobCondition, len(*in)) - for i := range *in { - if err := Convert_v2alpha1_JobCondition_To_batch_JobCondition(&(*in)[i], &(*out)[i], s); err != nil { - return err - } - } - } else { - out.Conditions = nil - } - out.StartTime = in.StartTime - out.CompletionTime = in.CompletionTime - out.Active = in.Active - out.Succeeded = in.Succeeded - out.Failed = in.Failed - return nil -} - -func Convert_v2alpha1_JobStatus_To_batch_JobStatus(in *JobStatus, out *batch.JobStatus, s conversion.Scope) error { - return autoConvert_v2alpha1_JobStatus_To_batch_JobStatus(in, out, s) -} - -func autoConvert_batch_JobStatus_To_v2alpha1_JobStatus(in *batch.JobStatus, out *JobStatus, s conversion.Scope) error { - if in.Conditions != nil { - in, out := &in.Conditions, &out.Conditions - *out = make([]JobCondition, len(*in)) - for i := range *in { - if err := Convert_batch_JobCondition_To_v2alpha1_JobCondition(&(*in)[i], &(*out)[i], s); err != nil { - return err - } - } - } else { - out.Conditions = nil - } - out.StartTime = in.StartTime - out.CompletionTime = in.CompletionTime - out.Active = in.Active - out.Succeeded = in.Succeeded - out.Failed = in.Failed - return nil -} - -func Convert_batch_JobStatus_To_v2alpha1_JobStatus(in *batch.JobStatus, out *JobStatus, s conversion.Scope) error { - return autoConvert_batch_JobStatus_To_v2alpha1_JobStatus(in, out, s) -} - -func autoConvert_v2alpha1_JobTemplate_To_batch_JobTemplate(in *JobTemplate, out *batch.JobTemplate, 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_v2alpha1_JobTemplateSpec_To_batch_JobTemplateSpec(&in.Template, &out.Template, s); err != nil { - return err - } - return nil -} - -func Convert_v2alpha1_JobTemplate_To_batch_JobTemplate(in *JobTemplate, out *batch.JobTemplate, s conversion.Scope) error { - return autoConvert_v2alpha1_JobTemplate_To_batch_JobTemplate(in, out, s) -} - -func autoConvert_batch_JobTemplate_To_v2alpha1_JobTemplate(in *batch.JobTemplate, out *JobTemplate, 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_batch_JobTemplateSpec_To_v2alpha1_JobTemplateSpec(&in.Template, &out.Template, s); err != nil { - return err - } - return nil -} - -func Convert_batch_JobTemplate_To_v2alpha1_JobTemplate(in *batch.JobTemplate, out *JobTemplate, s conversion.Scope) error { - return autoConvert_batch_JobTemplate_To_v2alpha1_JobTemplate(in, out, s) -} - -func autoConvert_v2alpha1_JobTemplateSpec_To_batch_JobTemplateSpec(in *JobTemplateSpec, out *batch.JobTemplateSpec, s conversion.Scope) error { - // TODO: Inefficient conversion - can we improve it? - if err := s.Convert(&in.ObjectMeta, &out.ObjectMeta, 0); err != nil { - return err - } - if err := Convert_v2alpha1_JobSpec_To_batch_JobSpec(&in.Spec, &out.Spec, s); err != nil { - return err - } - return nil -} - -func Convert_v2alpha1_JobTemplateSpec_To_batch_JobTemplateSpec(in *JobTemplateSpec, out *batch.JobTemplateSpec, s conversion.Scope) error { - return autoConvert_v2alpha1_JobTemplateSpec_To_batch_JobTemplateSpec(in, out, s) -} - -func autoConvert_batch_JobTemplateSpec_To_v2alpha1_JobTemplateSpec(in *batch.JobTemplateSpec, out *JobTemplateSpec, s conversion.Scope) error { - // TODO: Inefficient conversion - can we improve it? - if err := s.Convert(&in.ObjectMeta, &out.ObjectMeta, 0); err != nil { - return err - } - if err := Convert_batch_JobSpec_To_v2alpha1_JobSpec(&in.Spec, &out.Spec, s); err != nil { - return err - } - return nil -} - -func Convert_batch_JobTemplateSpec_To_v2alpha1_JobTemplateSpec(in *batch.JobTemplateSpec, out *JobTemplateSpec, s conversion.Scope) error { - return autoConvert_batch_JobTemplateSpec_To_v2alpha1_JobTemplateSpec(in, out, s) -} - -func autoConvert_v2alpha1_LabelSelector_To_unversioned_LabelSelector(in *LabelSelector, out *unversioned.LabelSelector, s conversion.Scope) error { - out.MatchLabels = in.MatchLabels - if in.MatchExpressions != nil { - in, out := &in.MatchExpressions, &out.MatchExpressions - *out = make([]unversioned.LabelSelectorRequirement, len(*in)) - for i := range *in { - if err := Convert_v2alpha1_LabelSelectorRequirement_To_unversioned_LabelSelectorRequirement(&(*in)[i], &(*out)[i], s); err != nil { - return err - } - } - } else { - out.MatchExpressions = nil - } - return nil -} - -func Convert_v2alpha1_LabelSelector_To_unversioned_LabelSelector(in *LabelSelector, out *unversioned.LabelSelector, s conversion.Scope) error { - return autoConvert_v2alpha1_LabelSelector_To_unversioned_LabelSelector(in, out, s) -} - -func autoConvert_unversioned_LabelSelector_To_v2alpha1_LabelSelector(in *unversioned.LabelSelector, out *LabelSelector, s conversion.Scope) error { - out.MatchLabels = in.MatchLabels - if in.MatchExpressions != nil { - in, out := &in.MatchExpressions, &out.MatchExpressions - *out = make([]LabelSelectorRequirement, len(*in)) - for i := range *in { - if err := Convert_unversioned_LabelSelectorRequirement_To_v2alpha1_LabelSelectorRequirement(&(*in)[i], &(*out)[i], s); err != nil { - return err - } - } - } else { - out.MatchExpressions = nil - } - return nil -} - -func Convert_unversioned_LabelSelector_To_v2alpha1_LabelSelector(in *unversioned.LabelSelector, out *LabelSelector, s conversion.Scope) error { - return autoConvert_unversioned_LabelSelector_To_v2alpha1_LabelSelector(in, out, s) -} - -func autoConvert_v2alpha1_LabelSelectorRequirement_To_unversioned_LabelSelectorRequirement(in *LabelSelectorRequirement, out *unversioned.LabelSelectorRequirement, s conversion.Scope) error { - out.Key = in.Key - out.Operator = unversioned.LabelSelectorOperator(in.Operator) - out.Values = in.Values - return nil -} - -func Convert_v2alpha1_LabelSelectorRequirement_To_unversioned_LabelSelectorRequirement(in *LabelSelectorRequirement, out *unversioned.LabelSelectorRequirement, s conversion.Scope) error { - return autoConvert_v2alpha1_LabelSelectorRequirement_To_unversioned_LabelSelectorRequirement(in, out, s) -} - -func autoConvert_unversioned_LabelSelectorRequirement_To_v2alpha1_LabelSelectorRequirement(in *unversioned.LabelSelectorRequirement, out *LabelSelectorRequirement, s conversion.Scope) error { - out.Key = in.Key - out.Operator = LabelSelectorOperator(in.Operator) - out.Values = in.Values - return nil -} - -func Convert_unversioned_LabelSelectorRequirement_To_v2alpha1_LabelSelectorRequirement(in *unversioned.LabelSelectorRequirement, out *LabelSelectorRequirement, s conversion.Scope) error { - return autoConvert_unversioned_LabelSelectorRequirement_To_v2alpha1_LabelSelectorRequirement(in, out, s) -} - -func autoConvert_v2alpha1_ScheduledJob_To_batch_ScheduledJob(in *ScheduledJob, out *batch.ScheduledJob, s conversion.Scope) error { - SetDefaults_ScheduledJob(in) - 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_v2alpha1_ScheduledJobSpec_To_batch_ScheduledJobSpec(&in.Spec, &out.Spec, s); err != nil { - return err - } - if err := Convert_v2alpha1_ScheduledJobStatus_To_batch_ScheduledJobStatus(&in.Status, &out.Status, s); err != nil { - return err - } - return nil -} - -func Convert_v2alpha1_ScheduledJob_To_batch_ScheduledJob(in *ScheduledJob, out *batch.ScheduledJob, s conversion.Scope) error { - return autoConvert_v2alpha1_ScheduledJob_To_batch_ScheduledJob(in, out, s) -} - -func autoConvert_batch_ScheduledJob_To_v2alpha1_ScheduledJob(in *batch.ScheduledJob, out *ScheduledJob, 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_batch_ScheduledJobSpec_To_v2alpha1_ScheduledJobSpec(&in.Spec, &out.Spec, s); err != nil { - return err - } - if err := Convert_batch_ScheduledJobStatus_To_v2alpha1_ScheduledJobStatus(&in.Status, &out.Status, s); err != nil { - return err - } - return nil -} - -func Convert_batch_ScheduledJob_To_v2alpha1_ScheduledJob(in *batch.ScheduledJob, out *ScheduledJob, s conversion.Scope) error { - return autoConvert_batch_ScheduledJob_To_v2alpha1_ScheduledJob(in, out, s) -} - -func autoConvert_v2alpha1_ScheduledJobList_To_batch_ScheduledJobList(in *ScheduledJobList, out *batch.ScheduledJobList, 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([]batch.ScheduledJob, len(*in)) - for i := range *in { - if err := Convert_v2alpha1_ScheduledJob_To_batch_ScheduledJob(&(*in)[i], &(*out)[i], s); err != nil { - return err - } - } - } else { - out.Items = nil - } - return nil -} - -func Convert_v2alpha1_ScheduledJobList_To_batch_ScheduledJobList(in *ScheduledJobList, out *batch.ScheduledJobList, s conversion.Scope) error { - return autoConvert_v2alpha1_ScheduledJobList_To_batch_ScheduledJobList(in, out, s) -} - -func autoConvert_batch_ScheduledJobList_To_v2alpha1_ScheduledJobList(in *batch.ScheduledJobList, out *ScheduledJobList, 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([]ScheduledJob, len(*in)) - for i := range *in { - if err := Convert_batch_ScheduledJob_To_v2alpha1_ScheduledJob(&(*in)[i], &(*out)[i], s); err != nil { - return err - } - } - } else { - out.Items = nil - } - return nil -} - -func Convert_batch_ScheduledJobList_To_v2alpha1_ScheduledJobList(in *batch.ScheduledJobList, out *ScheduledJobList, s conversion.Scope) error { - return autoConvert_batch_ScheduledJobList_To_v2alpha1_ScheduledJobList(in, out, s) -} - -func autoConvert_v2alpha1_ScheduledJobSpec_To_batch_ScheduledJobSpec(in *ScheduledJobSpec, out *batch.ScheduledJobSpec, s conversion.Scope) error { - out.Schedule = in.Schedule - out.StartingDeadlineSeconds = in.StartingDeadlineSeconds - out.ConcurrencyPolicy = batch.ConcurrencyPolicy(in.ConcurrencyPolicy) - out.Suspend = in.Suspend - if err := Convert_v2alpha1_JobTemplateSpec_To_batch_JobTemplateSpec(&in.JobTemplate, &out.JobTemplate, s); err != nil { - return err - } - return nil -} - -func Convert_v2alpha1_ScheduledJobSpec_To_batch_ScheduledJobSpec(in *ScheduledJobSpec, out *batch.ScheduledJobSpec, s conversion.Scope) error { - return autoConvert_v2alpha1_ScheduledJobSpec_To_batch_ScheduledJobSpec(in, out, s) -} - -func autoConvert_batch_ScheduledJobSpec_To_v2alpha1_ScheduledJobSpec(in *batch.ScheduledJobSpec, out *ScheduledJobSpec, s conversion.Scope) error { - out.Schedule = in.Schedule - out.StartingDeadlineSeconds = in.StartingDeadlineSeconds - out.ConcurrencyPolicy = ConcurrencyPolicy(in.ConcurrencyPolicy) - out.Suspend = in.Suspend - if err := Convert_batch_JobTemplateSpec_To_v2alpha1_JobTemplateSpec(&in.JobTemplate, &out.JobTemplate, s); err != nil { - return err - } - return nil -} - -func Convert_batch_ScheduledJobSpec_To_v2alpha1_ScheduledJobSpec(in *batch.ScheduledJobSpec, out *ScheduledJobSpec, s conversion.Scope) error { - return autoConvert_batch_ScheduledJobSpec_To_v2alpha1_ScheduledJobSpec(in, out, s) -} - -func autoConvert_v2alpha1_ScheduledJobStatus_To_batch_ScheduledJobStatus(in *ScheduledJobStatus, out *batch.ScheduledJobStatus, s conversion.Scope) error { - if in.Active != nil { - in, out := &in.Active, &out.Active - *out = make([]api.ObjectReference, len(*in)) - for i := range *in { - // TODO: Inefficient conversion - can we improve it? - if err := s.Convert(&(*in)[i], &(*out)[i], 0); err != nil { - return err - } - } - } else { - out.Active = nil - } - out.LastScheduleTime = in.LastScheduleTime - return nil -} - -func Convert_v2alpha1_ScheduledJobStatus_To_batch_ScheduledJobStatus(in *ScheduledJobStatus, out *batch.ScheduledJobStatus, s conversion.Scope) error { - return autoConvert_v2alpha1_ScheduledJobStatus_To_batch_ScheduledJobStatus(in, out, s) -} - -func autoConvert_batch_ScheduledJobStatus_To_v2alpha1_ScheduledJobStatus(in *batch.ScheduledJobStatus, out *ScheduledJobStatus, s conversion.Scope) error { - if in.Active != nil { - in, out := &in.Active, &out.Active - *out = make([]v1.ObjectReference, len(*in)) - for i := range *in { - // TODO: Inefficient conversion - can we improve it? - if err := s.Convert(&(*in)[i], &(*out)[i], 0); err != nil { - return err - } - } - } else { - out.Active = nil - } - out.LastScheduleTime = in.LastScheduleTime - return nil -} - -func Convert_batch_ScheduledJobStatus_To_v2alpha1_ScheduledJobStatus(in *batch.ScheduledJobStatus, out *ScheduledJobStatus, s conversion.Scope) error { - return autoConvert_batch_ScheduledJobStatus_To_v2alpha1_ScheduledJobStatus(in, out, s) -} diff --git a/vendor/k8s.io/client-go/1.5/pkg/apis/policy/v1alpha1/zz_generated.conversion.go b/vendor/k8s.io/client-go/1.5/pkg/apis/policy/v1alpha1/zz_generated.conversion.go deleted file mode 100644 index d20b4763d..000000000 --- a/vendor/k8s.io/client-go/1.5/pkg/apis/policy/v1alpha1/zz_generated.conversion.go +++ /dev/null @@ -1,240 +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/client-go/1.5/pkg/api" - v1 "k8s.io/client-go/1.5/pkg/api/v1" - policy "k8s.io/client-go/1.5/pkg/apis/policy" - conversion "k8s.io/client-go/1.5/pkg/conversion" - runtime "k8s.io/client-go/1.5/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_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, - Convert_policy_PodDisruptionBudgetList_To_v1alpha1_PodDisruptionBudgetList, - Convert_v1alpha1_PodDisruptionBudgetSpec_To_policy_PodDisruptionBudgetSpec, - Convert_policy_PodDisruptionBudgetSpec_To_v1alpha1_PodDisruptionBudgetSpec, - Convert_v1alpha1_PodDisruptionBudgetStatus_To_policy_PodDisruptionBudgetStatus, - Convert_policy_PodDisruptionBudgetStatus_To_v1alpha1_PodDisruptionBudgetStatus, - ) -} - -func autoConvert_v1alpha1_Eviction_To_policy_Eviction(in *Eviction, out *policy.Eviction, s conversion.Scope) error { - if err := api.Convert_unversioned_TypeMeta_To_unversioned_TypeMeta(&in.TypeMeta, &out.TypeMeta, s); err != nil { - return err - } - // TODO: Inefficient conversion - can we improve it? - if err := s.Convert(&in.ObjectMeta, &out.ObjectMeta, 0); err != nil { - return err - } - if in.DeleteOptions != nil { - in, out := &in.DeleteOptions, &out.DeleteOptions - *out = new(api.DeleteOptions) - // TODO: Inefficient conversion - can we improve it? - if err := s.Convert(*in, *out, 0); err != nil { - return err - } - } else { - out.DeleteOptions = nil - } - return nil -} - -func Convert_v1alpha1_Eviction_To_policy_Eviction(in *Eviction, out *policy.Eviction, s conversion.Scope) error { - return autoConvert_v1alpha1_Eviction_To_policy_Eviction(in, out, s) -} - -func autoConvert_policy_Eviction_To_v1alpha1_Eviction(in *policy.Eviction, out *Eviction, s conversion.Scope) error { - if err := api.Convert_unversioned_TypeMeta_To_unversioned_TypeMeta(&in.TypeMeta, &out.TypeMeta, s); err != nil { - return err - } - // TODO: Inefficient conversion - can we improve it? - if err := s.Convert(&in.ObjectMeta, &out.ObjectMeta, 0); err != nil { - return err - } - if in.DeleteOptions != nil { - in, out := &in.DeleteOptions, &out.DeleteOptions - *out = new(v1.DeleteOptions) - // TODO: Inefficient conversion - can we improve it? - if err := s.Convert(*in, *out, 0); err != nil { - return err - } - } else { - out.DeleteOptions = nil - } - return nil -} - -func Convert_policy_Eviction_To_v1alpha1_Eviction(in *policy.Eviction, out *Eviction, s conversion.Scope) error { - return autoConvert_policy_Eviction_To_v1alpha1_Eviction(in, out, s) -} - -func autoConvert_v1alpha1_PodDisruptionBudget_To_policy_PodDisruptionBudget(in *PodDisruptionBudget, out *policy.PodDisruptionBudget, s conversion.Scope) error { - if err := api.Convert_unversioned_TypeMeta_To_unversioned_TypeMeta(&in.TypeMeta, &out.TypeMeta, s); err != nil { - return err - } - // TODO: Inefficient conversion - can we improve it? - if err := s.Convert(&in.ObjectMeta, &out.ObjectMeta, 0); err != nil { - return err - } - if err := Convert_v1alpha1_PodDisruptionBudgetSpec_To_policy_PodDisruptionBudgetSpec(&in.Spec, &out.Spec, s); err != nil { - return err - } - if err := Convert_v1alpha1_PodDisruptionBudgetStatus_To_policy_PodDisruptionBudgetStatus(&in.Status, &out.Status, s); err != nil { - return err - } - return nil -} - -func Convert_v1alpha1_PodDisruptionBudget_To_policy_PodDisruptionBudget(in *PodDisruptionBudget, out *policy.PodDisruptionBudget, s conversion.Scope) error { - return autoConvert_v1alpha1_PodDisruptionBudget_To_policy_PodDisruptionBudget(in, out, s) -} - -func autoConvert_policy_PodDisruptionBudget_To_v1alpha1_PodDisruptionBudget(in *policy.PodDisruptionBudget, out *PodDisruptionBudget, 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_policy_PodDisruptionBudgetSpec_To_v1alpha1_PodDisruptionBudgetSpec(&in.Spec, &out.Spec, s); err != nil { - return err - } - if err := Convert_policy_PodDisruptionBudgetStatus_To_v1alpha1_PodDisruptionBudgetStatus(&in.Status, &out.Status, s); err != nil { - return err - } - return nil -} - -func Convert_policy_PodDisruptionBudget_To_v1alpha1_PodDisruptionBudget(in *policy.PodDisruptionBudget, out *PodDisruptionBudget, s conversion.Scope) error { - return autoConvert_policy_PodDisruptionBudget_To_v1alpha1_PodDisruptionBudget(in, out, s) -} - -func autoConvert_v1alpha1_PodDisruptionBudgetList_To_policy_PodDisruptionBudgetList(in *PodDisruptionBudgetList, out *policy.PodDisruptionBudgetList, 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([]policy.PodDisruptionBudget, len(*in)) - for i := range *in { - if err := Convert_v1alpha1_PodDisruptionBudget_To_policy_PodDisruptionBudget(&(*in)[i], &(*out)[i], s); err != nil { - return err - } - } - } else { - out.Items = nil - } - return nil -} - -func Convert_v1alpha1_PodDisruptionBudgetList_To_policy_PodDisruptionBudgetList(in *PodDisruptionBudgetList, out *policy.PodDisruptionBudgetList, s conversion.Scope) error { - return autoConvert_v1alpha1_PodDisruptionBudgetList_To_policy_PodDisruptionBudgetList(in, out, s) -} - -func autoConvert_policy_PodDisruptionBudgetList_To_v1alpha1_PodDisruptionBudgetList(in *policy.PodDisruptionBudgetList, out *PodDisruptionBudgetList, 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([]PodDisruptionBudget, len(*in)) - for i := range *in { - if err := Convert_policy_PodDisruptionBudget_To_v1alpha1_PodDisruptionBudget(&(*in)[i], &(*out)[i], s); err != nil { - return err - } - } - } else { - out.Items = nil - } - return nil -} - -func Convert_policy_PodDisruptionBudgetList_To_v1alpha1_PodDisruptionBudgetList(in *policy.PodDisruptionBudgetList, out *PodDisruptionBudgetList, s conversion.Scope) error { - return autoConvert_policy_PodDisruptionBudgetList_To_v1alpha1_PodDisruptionBudgetList(in, out, s) -} - -func autoConvert_v1alpha1_PodDisruptionBudgetSpec_To_policy_PodDisruptionBudgetSpec(in *PodDisruptionBudgetSpec, out *policy.PodDisruptionBudgetSpec, s conversion.Scope) error { - if err := api.Convert_intstr_IntOrString_To_intstr_IntOrString(&in.MinAvailable, &out.MinAvailable, s); err != nil { - return err - } - out.Selector = in.Selector - return nil -} - -func Convert_v1alpha1_PodDisruptionBudgetSpec_To_policy_PodDisruptionBudgetSpec(in *PodDisruptionBudgetSpec, out *policy.PodDisruptionBudgetSpec, s conversion.Scope) error { - return autoConvert_v1alpha1_PodDisruptionBudgetSpec_To_policy_PodDisruptionBudgetSpec(in, out, s) -} - -func autoConvert_policy_PodDisruptionBudgetSpec_To_v1alpha1_PodDisruptionBudgetSpec(in *policy.PodDisruptionBudgetSpec, out *PodDisruptionBudgetSpec, s conversion.Scope) error { - if err := api.Convert_intstr_IntOrString_To_intstr_IntOrString(&in.MinAvailable, &out.MinAvailable, s); err != nil { - return err - } - out.Selector = in.Selector - return nil -} - -func Convert_policy_PodDisruptionBudgetSpec_To_v1alpha1_PodDisruptionBudgetSpec(in *policy.PodDisruptionBudgetSpec, out *PodDisruptionBudgetSpec, s conversion.Scope) error { - return autoConvert_policy_PodDisruptionBudgetSpec_To_v1alpha1_PodDisruptionBudgetSpec(in, out, s) -} - -func autoConvert_v1alpha1_PodDisruptionBudgetStatus_To_policy_PodDisruptionBudgetStatus(in *PodDisruptionBudgetStatus, out *policy.PodDisruptionBudgetStatus, s conversion.Scope) error { - out.PodDisruptionAllowed = in.PodDisruptionAllowed - out.CurrentHealthy = in.CurrentHealthy - out.DesiredHealthy = in.DesiredHealthy - out.ExpectedPods = in.ExpectedPods - return nil -} - -func Convert_v1alpha1_PodDisruptionBudgetStatus_To_policy_PodDisruptionBudgetStatus(in *PodDisruptionBudgetStatus, out *policy.PodDisruptionBudgetStatus, s conversion.Scope) error { - return autoConvert_v1alpha1_PodDisruptionBudgetStatus_To_policy_PodDisruptionBudgetStatus(in, out, s) -} - -func autoConvert_policy_PodDisruptionBudgetStatus_To_v1alpha1_PodDisruptionBudgetStatus(in *policy.PodDisruptionBudgetStatus, out *PodDisruptionBudgetStatus, s conversion.Scope) error { - out.PodDisruptionAllowed = in.PodDisruptionAllowed - out.CurrentHealthy = in.CurrentHealthy - out.DesiredHealthy = in.DesiredHealthy - out.ExpectedPods = in.ExpectedPods - return nil -} - -func Convert_policy_PodDisruptionBudgetStatus_To_v1alpha1_PodDisruptionBudgetStatus(in *policy.PodDisruptionBudgetStatus, out *PodDisruptionBudgetStatus, s conversion.Scope) error { - return autoConvert_policy_PodDisruptionBudgetStatus_To_v1alpha1_PodDisruptionBudgetStatus(in, out, s) -} diff --git a/vendor/k8s.io/client-go/1.5/pkg/runtime/serializer/negotiated_codec.go b/vendor/k8s.io/client-go/1.5/pkg/runtime/serializer/negotiated_codec.go deleted file mode 100644 index 6b3cf018e..000000000 --- a/vendor/k8s.io/client-go/1.5/pkg/runtime/serializer/negotiated_codec.go +++ /dev/null @@ -1,56 +0,0 @@ -/* -Copyright 2016 The Kubernetes Authors. - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ - -package serializer - -import ( - "k8s.io/client-go/1.5/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, _ runtime.GroupVersioner) runtime.Encoder { - return e -} - -func (n *negotiatedSerializerWrapper) DecoderToVersion(d runtime.Decoder, _gv runtime.GroupVersioner) runtime.Decoder { - return d -} diff --git a/vendor/k8s.io/client-go/1.5/pkg/util/string_flag.go b/vendor/k8s.io/client-go/1.5/pkg/util/string_flag.go deleted file mode 100644 index 9d6a00a15..000000000 --- a/vendor/k8s.io/client-go/1.5/pkg/util/string_flag.go +++ /dev/null @@ -1,56 +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 - -// 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/vendor/k8s.io/client-go/1.5/plugin/pkg/client/auth/gcp/gcp.go b/vendor/k8s.io/client-go/1.5/plugin/pkg/client/auth/gcp/gcp.go deleted file mode 100644 index bbc0f0b8b..000000000 --- a/vendor/k8s.io/client-go/1.5/plugin/pkg/client/auth/gcp/gcp.go +++ /dev/null @@ -1,105 +0,0 @@ -/* -Copyright 2016 The Kubernetes Authors. - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ - -package gcp - -import ( - "net/http" - "time" - - "github.com/golang/glog" - "golang.org/x/net/context" - "golang.org/x/oauth2" - "golang.org/x/oauth2/google" - "k8s.io/client-go/1.5/rest" -) - -func init() { - if err := rest.RegisterAuthProviderPlugin("gcp", newGCPAuthProvider); err != nil { - glog.Fatalf("Failed to register gcp auth plugin: %v", err) - } -} - -type gcpAuthProvider struct { - tokenSource oauth2.TokenSource - persister rest.AuthProviderConfigPersister -} - -func newGCPAuthProvider(_ string, gcpConfig map[string]string, persister rest.AuthProviderConfigPersister) (rest.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, - Base: rt, - } -} - -func (g *gcpAuthProvider) Login() error { return nil } - -type cachedTokenSource struct { - source oauth2.TokenSource - accessToken string - expiry time.Time - persister rest.AuthProviderConfigPersister -} - -func newCachedTokenSource(accessToken, expiry string, persister rest.AuthProviderConfigPersister) (*cachedTokenSource, error) { - var expiryTime time.Time - if parsedTime, err := time.Parse(time.RFC3339Nano, expiry); err == nil { - expiryTime = parsedTime - } - ts, err := google.DefaultTokenSource(context.Background(), "https://www.googleapis.com/auth/cloud-platform") - if err != nil { - return nil, err - } - return &cachedTokenSource{ - source: ts, - accessToken: accessToken, - expiry: expiryTime, - persister: persister, - }, nil -} - -func (t *cachedTokenSource) Token() (*oauth2.Token, error) { - tok := &oauth2.Token{ - AccessToken: t.accessToken, - TokenType: "Bearer", - Expiry: t.expiry, - } - if tok.Valid() && !tok.Expiry.IsZero() { - return tok, nil - } - tok, err := t.source.Token() - if err != nil { - return nil, err - } - if t.persister != nil { - cached := map[string]string{ - "access-token": tok.AccessToken, - "expiry": tok.Expiry.Format(time.RFC3339Nano), - } - if err := t.persister.Persist(cached); err != nil { - glog.V(4).Infof("Failed to persist token: %v", err) - } - } - return tok, nil -} diff --git a/vendor/k8s.io/client-go/1.5/plugin/pkg/client/auth/oidc/oidc.go b/vendor/k8s.io/client-go/1.5/plugin/pkg/client/auth/oidc/oidc.go deleted file mode 100644 index b397fa162..000000000 --- a/vendor/k8s.io/client-go/1.5/plugin/pkg/client/auth/oidc/oidc.go +++ /dev/null @@ -1,270 +0,0 @@ -/* -Copyright 2016 The Kubernetes Authors. - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ - -package oidc - -import ( - "encoding/base64" - "errors" - "fmt" - "net/http" - "strings" - "time" - - "github.com/coreos/go-oidc/jose" - "github.com/coreos/go-oidc/oauth2" - "github.com/coreos/go-oidc/oidc" - "github.com/golang/glog" - - "k8s.io/client-go/1.5/pkg/util/wait" - "k8s.io/client-go/1.5/rest" -) - -const ( - cfgIssuerUrl = "idp-issuer-url" - cfgClientID = "client-id" - cfgClientSecret = "client-secret" - cfgCertificateAuthority = "idp-certificate-authority" - cfgCertificateAuthorityData = "idp-certificate-authority-data" - cfgExtraScopes = "extra-scopes" - cfgIDToken = "id-token" - cfgRefreshToken = "refresh-token" -) - -var ( - backoff = wait.Backoff{ - Duration: 1 * time.Second, - Factor: 2, - Jitter: .1, - Steps: 5, - } -) - -func init() { - if err := rest.RegisterAuthProviderPlugin("oidc", newOIDCAuthProvider); err != nil { - glog.Fatalf("Failed to register oidc auth plugin: %v", err) - } -} - -func newOIDCAuthProvider(_ string, cfg map[string]string, persister rest.AuthProviderConfigPersister) (rest.AuthProvider, error) { - issuer := cfg[cfgIssuerUrl] - if issuer == "" { - return nil, fmt.Errorf("Must provide %s", cfgIssuerUrl) - } - - clientID := cfg[cfgClientID] - if clientID == "" { - return nil, fmt.Errorf("Must provide %s", cfgClientID) - } - - clientSecret := cfg[cfgClientSecret] - if clientSecret == "" { - return nil, fmt.Errorf("Must provide %s", cfgClientSecret) - } - - var certAuthData []byte - var err error - if cfg[cfgCertificateAuthorityData] != "" { - certAuthData, err = base64.StdEncoding.DecodeString(cfg[cfgCertificateAuthorityData]) - if err != nil { - return nil, err - } - } - - clientConfig := rest.Config{ - TLSClientConfig: rest.TLSClientConfig{ - CAFile: cfg[cfgCertificateAuthority], - CAData: certAuthData, - }, - } - - trans, err := rest.TransportFor(&clientConfig) - if err != nil { - return nil, err - } - hc := &http.Client{Transport: trans} - - providerCfg, err := oidc.FetchProviderConfig(hc, issuer) - if err != nil { - return nil, fmt.Errorf("error fetching provider config: %v", err) - } - - scopes := strings.Split(cfg[cfgExtraScopes], ",") - oidcCfg := oidc.ClientConfig{ - HTTPClient: hc, - Credentials: oidc.ClientCredentials{ - ID: clientID, - Secret: clientSecret, - }, - ProviderConfig: providerCfg, - Scope: append(scopes, oidc.DefaultScope...), - } - - client, err := oidc.NewClient(oidcCfg) - if err != nil { - return nil, fmt.Errorf("error creating OIDC Client: %v", err) - } - - oClient := &oidcClient{client} - - var initialIDToken jose.JWT - if cfg[cfgIDToken] != "" { - initialIDToken, err = jose.ParseJWT(cfg[cfgIDToken]) - if err != nil { - return nil, err - } - } - - return &oidcAuthProvider{ - initialIDToken: initialIDToken, - refresher: &idTokenRefresher{ - client: oClient, - cfg: cfg, - persister: persister, - }, - }, nil -} - -type oidcAuthProvider struct { - refresher *idTokenRefresher - initialIDToken jose.JWT -} - -func (g *oidcAuthProvider) WrapTransport(rt http.RoundTripper) http.RoundTripper { - at := &oidc.AuthenticatedTransport{ - TokenRefresher: g.refresher, - RoundTripper: rt, - } - at.SetJWT(g.initialIDToken) - return &roundTripper{ - wrapped: at, - refresher: g.refresher, - } -} - -func (g *oidcAuthProvider) Login() error { - return errors.New("not yet implemented") -} - -type OIDCClient interface { - refreshToken(rt string) (oauth2.TokenResponse, error) - verifyJWT(jwt jose.JWT) error -} - -type roundTripper struct { - refresher *idTokenRefresher - wrapped *oidc.AuthenticatedTransport -} - -func (r *roundTripper) RoundTrip(req *http.Request) (*http.Response, error) { - var res *http.Response - var err error - firstTime := true - wait.ExponentialBackoff(backoff, func() (bool, error) { - if !firstTime { - var jwt jose.JWT - jwt, err = r.refresher.Refresh() - if err != nil { - return true, nil - } - r.wrapped.SetJWT(jwt) - } else { - firstTime = false - } - - res, err = r.wrapped.RoundTrip(req) - if err != nil { - return true, nil - } - if res.StatusCode == http.StatusUnauthorized { - return false, nil - } - return true, nil - }) - return res, err -} - -type idTokenRefresher struct { - cfg map[string]string - client OIDCClient - persister rest.AuthProviderConfigPersister - intialIDToken jose.JWT -} - -func (r *idTokenRefresher) Verify(jwt jose.JWT) error { - claims, err := jwt.Claims() - if err != nil { - return err - } - - now := time.Now() - exp, ok, err := claims.TimeClaim("exp") - switch { - case err != nil: - return fmt.Errorf("failed to parse 'exp' claim: %v", err) - case !ok: - return errors.New("missing required 'exp' claim") - case exp.Before(now): - return fmt.Errorf("token already expired at: %v", exp) - } - - return nil -} - -func (r *idTokenRefresher) Refresh() (jose.JWT, error) { - rt, ok := r.cfg[cfgRefreshToken] - if !ok { - return jose.JWT{}, errors.New("No valid id-token, and cannot refresh without refresh-token") - } - - tokens, err := r.client.refreshToken(rt) - if err != nil { - return jose.JWT{}, fmt.Errorf("could not refresh token: %v", err) - } - jwt, err := jose.ParseJWT(tokens.IDToken) - if err != nil { - return jose.JWT{}, err - } - - if tokens.RefreshToken != "" && tokens.RefreshToken != rt { - r.cfg[cfgRefreshToken] = tokens.RefreshToken - } - r.cfg[cfgIDToken] = jwt.Encode() - - err = r.persister.Persist(r.cfg) - if err != nil { - return jose.JWT{}, fmt.Errorf("could not perist new tokens: %v", err) - } - - return jwt, r.client.verifyJWT(jwt) -} - -type oidcClient struct { - client *oidc.Client -} - -func (o *oidcClient) refreshToken(rt string) (oauth2.TokenResponse, error) { - oac, err := o.client.OAuthClient() - if err != nil { - return oauth2.TokenResponse{}, err - } - - return oac.RequestToken(oauth2.GrantTypeRefreshToken, rt) -} - -func (o *oidcClient) verifyJWT(jwt jose.JWT) error { - return o.client.VerifyJWT(jwt) -} diff --git a/vendor/k8s.io/client-go/1.5/tools/cache/listers.go b/vendor/k8s.io/client-go/1.5/tools/cache/listers.go deleted file mode 100644 index 1b607e773..000000000 --- a/vendor/k8s.io/client-go/1.5/tools/cache/listers.go +++ /dev/null @@ -1,668 +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 cache - -import ( - "fmt" - - "github.com/golang/glog" - "k8s.io/client-go/1.5/pkg/api" - "k8s.io/client-go/1.5/pkg/api/errors" - "k8s.io/client-go/1.5/pkg/api/meta" - "k8s.io/client-go/1.5/pkg/api/unversioned" - "k8s.io/client-go/1.5/pkg/apis/apps" - "k8s.io/client-go/1.5/pkg/apis/batch" - "k8s.io/client-go/1.5/pkg/apis/certificates" - "k8s.io/client-go/1.5/pkg/apis/extensions" - "k8s.io/client-go/1.5/pkg/apis/policy" - "k8s.io/client-go/1.5/pkg/labels" -) - -// AppendFunc is used to add a matching item to whatever list the caller is using -type AppendFunc func(interface{}) - -func ListAll(store Store, selector labels.Selector, appendFn AppendFunc) error { - for _, m := range store.List() { - metadata, err := meta.Accessor(m) - if err != nil { - return err - } - if selector.Matches(labels.Set(metadata.GetLabels())) { - appendFn(m) - } - } - return nil -} - -func ListAllByNamespace(indexer Indexer, namespace string, selector labels.Selector, appendFn AppendFunc) error { - if namespace == api.NamespaceAll { - for _, m := range indexer.List() { - metadata, err := meta.Accessor(m) - if err != nil { - return err - } - if selector.Matches(labels.Set(metadata.GetLabels())) { - appendFn(m) - } - } - return nil - } - - items, err := indexer.Index(NamespaceIndex, api.ObjectMeta{Namespace: namespace}) - if err != nil { - // Ignore error; do slow search without index. - glog.Warningf("can not retrieve list of objects using index : %v", err) - for _, m := range indexer.List() { - metadata, err := meta.Accessor(m) - if err != nil { - return err - } - if metadata.GetNamespace() == namespace && selector.Matches(labels.Set(metadata.GetLabels())) { - appendFn(m) - } - - } - return nil - } - for _, m := range items { - metadata, err := meta.Accessor(m) - if err != nil { - return err - } - if selector.Matches(labels.Set(metadata.GetLabels())) { - appendFn(m) - } - } - - return nil -} - -// TODO: generate these classes and methods for all resources of interest using -// a script. Can use "go generate" once 1.4 is supported by all users. - -// NodeConditionPredicate is a function that indicates whether the given node's conditions meet -// some set of criteria defined by the function. -type NodeConditionPredicate func(node *api.Node) bool - -// StoreToNodeLister makes a Store have the List method of the client.NodeInterface -// The Store must contain (only) Nodes. -type StoreToNodeLister struct { - Store -} - -func (s *StoreToNodeLister) List() (machines api.NodeList, err error) { - for _, m := range s.Store.List() { - machines.Items = append(machines.Items, *(m.(*api.Node))) - } - return machines, nil -} - -// NodeCondition returns a storeToNodeConditionLister -func (s *StoreToNodeLister) NodeCondition(predicate NodeConditionPredicate) storeToNodeConditionLister { - // TODO: Move this filtering server side. Currently our selectors don't facilitate searching through a list so we - // have the reflector filter out the Unschedulable field and sift through node conditions in the lister. - return storeToNodeConditionLister{s.Store, predicate} -} - -// storeToNodeConditionLister filters and returns nodes matching the given type and status from the store. -type storeToNodeConditionLister struct { - store Store - predicate NodeConditionPredicate -} - -// List returns a list of nodes that match the conditions defined by the predicate functions in the storeToNodeConditionLister. -func (s storeToNodeConditionLister) List() (nodes []*api.Node, err error) { - for _, m := range s.store.List() { - node := m.(*api.Node) - if s.predicate(node) { - nodes = append(nodes, node) - } else { - glog.V(5).Infof("Node %s matches none of the conditions", node.Name) - } - } - return -} - -// StoreToDeploymentLister gives a store List and Exists methods. The store must contain only Deployments. -type StoreToDeploymentLister struct { - Indexer -} - -// Exists checks if the given deployment exists in the store. -func (s *StoreToDeploymentLister) Exists(deployment *extensions.Deployment) (bool, error) { - _, exists, err := s.Indexer.Get(deployment) - if err != nil { - return false, err - } - return exists, nil -} - -// StoreToDeploymentLister lists all deployments in the store. -// TODO: converge on the interface in pkg/client -func (s *StoreToDeploymentLister) List() (deployments []extensions.Deployment, err error) { - for _, c := range s.Indexer.List() { - deployments = append(deployments, *(c.(*extensions.Deployment))) - } - return deployments, nil -} - -// GetDeploymentsForReplicaSet returns a list of deployments managing a replica set. Returns an error only if no matching deployments are found. -func (s *StoreToDeploymentLister) GetDeploymentsForReplicaSet(rs *extensions.ReplicaSet) (deployments []extensions.Deployment, err error) { - if len(rs.Labels) == 0 { - err = fmt.Errorf("no deployments found for ReplicaSet %v because it has no labels", rs.Name) - return - } - - // TODO: MODIFY THIS METHOD so that it checks for the podTemplateSpecHash label - dList, err := s.Deployments(rs.Namespace).List(labels.Everything()) - if err != nil { - return - } - for _, d := range dList { - selector, err := unversioned.LabelSelectorAsSelector(d.Spec.Selector) - if err != nil { - return nil, fmt.Errorf("invalid label selector: %v", err) - } - // If a deployment with a nil or empty selector creeps in, it should match nothing, not everything. - if selector.Empty() || !selector.Matches(labels.Set(rs.Labels)) { - continue - } - deployments = append(deployments, d) - } - if len(deployments) == 0 { - err = fmt.Errorf("could not find deployments set for ReplicaSet %s in namespace %s with labels: %v", rs.Name, rs.Namespace, rs.Labels) - } - return -} - -type storeToDeploymentNamespacer struct { - indexer Indexer - namespace string -} - -// storeToDeploymentNamespacer lists deployments under its namespace in the store. -func (s storeToDeploymentNamespacer) List(selector labels.Selector) (deployments []extensions.Deployment, err error) { - if s.namespace == api.NamespaceAll { - for _, m := range s.indexer.List() { - d := *(m.(*extensions.Deployment)) - if selector.Matches(labels.Set(d.Labels)) { - deployments = append(deployments, d) - } - } - return - } - - key := &extensions.Deployment{ObjectMeta: api.ObjectMeta{Namespace: s.namespace}} - items, err := s.indexer.Index(NamespaceIndex, key) - if err != nil { - // Ignore error; do slow search without index. - glog.Warningf("can not retrieve list of objects using index : %v", err) - for _, m := range s.indexer.List() { - d := *(m.(*extensions.Deployment)) - if s.namespace == d.Namespace && selector.Matches(labels.Set(d.Labels)) { - deployments = append(deployments, d) - } - } - return deployments, nil - } - for _, m := range items { - d := *(m.(*extensions.Deployment)) - if selector.Matches(labels.Set(d.Labels)) { - deployments = append(deployments, d) - } - } - return -} - -func (s *StoreToDeploymentLister) Deployments(namespace string) storeToDeploymentNamespacer { - return storeToDeploymentNamespacer{s.Indexer, namespace} -} - -// GetDeploymentsForPods returns a list of deployments managing a pod. Returns an error only if no matching deployments are found. -func (s *StoreToDeploymentLister) GetDeploymentsForPod(pod *api.Pod) (deployments []extensions.Deployment, err error) { - if len(pod.Labels) == 0 { - err = fmt.Errorf("no deployments found for Pod %v because it has no labels", pod.Name) - return - } - - if len(pod.Labels[extensions.DefaultDeploymentUniqueLabelKey]) == 0 { - return - } - - dList, err := s.Deployments(pod.Namespace).List(labels.Everything()) - if err != nil { - return - } - for _, d := range dList { - selector, err := unversioned.LabelSelectorAsSelector(d.Spec.Selector) - if err != nil { - return nil, fmt.Errorf("invalid label selector: %v", err) - } - // If a deployment with a nil or empty selector creeps in, it should match nothing, not everything. - if selector.Empty() || !selector.Matches(labels.Set(pod.Labels)) { - continue - } - deployments = append(deployments, d) - } - if len(deployments) == 0 { - err = fmt.Errorf("could not find deployments set for Pod %s in namespace %s with labels: %v", pod.Name, pod.Namespace, pod.Labels) - } - return -} - -// StoreToReplicaSetLister gives a store List and Exists methods. The store must contain only ReplicaSets. -type StoreToReplicaSetLister struct { - Store -} - -// Exists checks if the given ReplicaSet exists in the store. -func (s *StoreToReplicaSetLister) Exists(rs *extensions.ReplicaSet) (bool, error) { - _, exists, err := s.Store.Get(rs) - if err != nil { - return false, err - } - return exists, nil -} - -// List lists all ReplicaSets in the store. -// TODO: converge on the interface in pkg/client -func (s *StoreToReplicaSetLister) List() (rss []extensions.ReplicaSet, err error) { - for _, rs := range s.Store.List() { - rss = append(rss, *(rs.(*extensions.ReplicaSet))) - } - return rss, nil -} - -type storeReplicaSetsNamespacer struct { - store Store - namespace string -} - -func (s storeReplicaSetsNamespacer) List(selector labels.Selector) (rss []extensions.ReplicaSet, err error) { - for _, c := range s.store.List() { - rs := *(c.(*extensions.ReplicaSet)) - if s.namespace == api.NamespaceAll || s.namespace == rs.Namespace { - if selector.Matches(labels.Set(rs.Labels)) { - rss = append(rss, rs) - } - } - } - 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} -} - -// GetPodReplicaSets returns a list of ReplicaSets managing a pod. Returns an error only if no matching ReplicaSets are found. -func (s *StoreToReplicaSetLister) GetPodReplicaSets(pod *api.Pod) (rss []extensions.ReplicaSet, err error) { - var selector labels.Selector - var rs extensions.ReplicaSet - - if len(pod.Labels) == 0 { - err = fmt.Errorf("no ReplicaSets found for pod %v because it has no labels", pod.Name) - return - } - - for _, m := range s.Store.List() { - rs = *m.(*extensions.ReplicaSet) - if rs.Namespace != pod.Namespace { - continue - } - selector, err = unversioned.LabelSelectorAsSelector(rs.Spec.Selector) - if err != nil { - err = fmt.Errorf("invalid selector: %v", err) - return - } - - // If a ReplicaSet with a nil or empty selector creeps in, it should match nothing, not everything. - if selector.Empty() || !selector.Matches(labels.Set(pod.Labels)) { - continue - } - rss = append(rss, rs) - } - if len(rss) == 0 { - err = fmt.Errorf("could not find ReplicaSet for pod %s in namespace %s with labels: %v", pod.Name, pod.Namespace, pod.Labels) - } - return -} - -// StoreToDaemonSetLister gives a store List and Exists methods. The store must contain only DaemonSets. -type StoreToDaemonSetLister struct { - Store -} - -// Exists checks if the given daemon set exists in the store. -func (s *StoreToDaemonSetLister) Exists(ds *extensions.DaemonSet) (bool, error) { - _, exists, err := s.Store.Get(ds) - if err != nil { - return false, err - } - return exists, nil -} - -// List lists all daemon sets in the store. -// TODO: converge on the interface in pkg/client -func (s *StoreToDaemonSetLister) List() (dss extensions.DaemonSetList, err error) { - for _, c := range s.Store.List() { - dss.Items = append(dss.Items, *(c.(*extensions.DaemonSet))) - } - return dss, nil -} - -// GetPodDaemonSets returns a list of daemon sets managing a pod. -// Returns an error if and only if no matching daemon sets are found. -func (s *StoreToDaemonSetLister) GetPodDaemonSets(pod *api.Pod) (daemonSets []extensions.DaemonSet, err error) { - var selector labels.Selector - var daemonSet extensions.DaemonSet - - if len(pod.Labels) == 0 { - err = fmt.Errorf("no daemon sets found for pod %v because it has no labels", pod.Name) - return - } - - for _, m := range s.Store.List() { - daemonSet = *m.(*extensions.DaemonSet) - if daemonSet.Namespace != pod.Namespace { - continue - } - selector, err = unversioned.LabelSelectorAsSelector(daemonSet.Spec.Selector) - if err != nil { - // this should not happen if the DaemonSet passed validation - return nil, err - } - - // If a daemonSet with a nil or empty selector creeps in, it should match nothing, not everything. - if selector.Empty() || !selector.Matches(labels.Set(pod.Labels)) { - continue - } - daemonSets = append(daemonSets, daemonSet) - } - if len(daemonSets) == 0 { - err = fmt.Errorf("could not find daemon set for pod %s in namespace %s with labels: %v", pod.Name, pod.Namespace, pod.Labels) - } - return -} - -// StoreToEndpointsLister makes a Store that lists endpoints. -type StoreToEndpointsLister struct { - Store -} - -// List lists all endpoints in the store. -func (s *StoreToEndpointsLister) List() (services api.EndpointsList, err error) { - for _, m := range s.Store.List() { - services.Items = append(services.Items, *(m.(*api.Endpoints))) - } - return services, nil -} - -// GetServiceEndpoints returns the endpoints of a service, matched on service name. -func (s *StoreToEndpointsLister) GetServiceEndpoints(svc *api.Service) (ep api.Endpoints, err error) { - for _, m := range s.Store.List() { - ep = *m.(*api.Endpoints) - if svc.Name == ep.Name && svc.Namespace == ep.Namespace { - return ep, nil - } - } - err = fmt.Errorf("could not find endpoints for service: %v", svc.Name) - return -} - -// StoreToJobLister gives a store List and Exists methods. The store must contain only Jobs. -type StoreToJobLister struct { - Store -} - -// Exists checks if the given job exists in the store. -func (s *StoreToJobLister) Exists(job *batch.Job) (bool, error) { - _, exists, err := s.Store.Get(job) - if err != nil { - return false, err - } - return exists, nil -} - -// StoreToJobLister lists all jobs in the store. -func (s *StoreToJobLister) List() (jobs batch.JobList, err error) { - for _, c := range s.Store.List() { - jobs.Items = append(jobs.Items, *(c.(*batch.Job))) - } - return jobs, nil -} - -// GetPodJobs returns a list of jobs managing a pod. Returns an error only if no matching jobs are found. -func (s *StoreToJobLister) GetPodJobs(pod *api.Pod) (jobs []batch.Job, err error) { - var selector labels.Selector - var job batch.Job - - if len(pod.Labels) == 0 { - err = fmt.Errorf("no jobs found for pod %v because it has no labels", pod.Name) - return - } - - for _, m := range s.Store.List() { - job = *m.(*batch.Job) - if job.Namespace != pod.Namespace { - continue - } - - selector, _ = unversioned.LabelSelectorAsSelector(job.Spec.Selector) - if !selector.Matches(labels.Set(pod.Labels)) { - continue - } - jobs = append(jobs, job) - } - if len(jobs) == 0 { - err = fmt.Errorf("could not find jobs for pod %s in namespace %s with labels: %v", pod.Name, pod.Namespace, pod.Labels) - } - return -} - -// Typed wrapper around a store of PersistentVolumes -type StoreToPVFetcher struct { - Store -} - -// GetPersistentVolumeInfo returns cached data for the PersistentVolume 'id'. -func (s *StoreToPVFetcher) GetPersistentVolumeInfo(id string) (*api.PersistentVolume, error) { - o, exists, err := s.Get(&api.PersistentVolume{ObjectMeta: api.ObjectMeta{Name: id}}) - - if err != nil { - return nil, fmt.Errorf("error retrieving PersistentVolume '%v' from cache: %v", id, err) - } - - if !exists { - return nil, fmt.Errorf("PersistentVolume '%v' not found", id) - } - - return o.(*api.PersistentVolume), nil -} - -// Typed wrapper around a store of PersistentVolumeClaims -type StoreToPVCFetcher struct { - Store -} - -// GetPersistentVolumeClaimInfo returns cached data for the PersistentVolumeClaim 'id'. -func (s *StoreToPVCFetcher) GetPersistentVolumeClaimInfo(namespace string, id string) (*api.PersistentVolumeClaim, error) { - o, exists, err := s.Get(&api.PersistentVolumeClaim{ObjectMeta: api.ObjectMeta{Namespace: namespace, Name: id}}) - if err != nil { - return nil, fmt.Errorf("error retrieving PersistentVolumeClaim '%s/%s' from cache: %v", namespace, id, err) - } - - if !exists { - return nil, fmt.Errorf("PersistentVolumeClaim '%s/%s' not found", namespace, id) - } - - return o.(*api.PersistentVolumeClaim), nil -} - -// StoreToPetSetLister gives a store List and Exists methods. The store must contain only PetSets. -type StoreToPetSetLister struct { - Store -} - -// Exists checks if the given PetSet exists in the store. -func (s *StoreToPetSetLister) Exists(ps *apps.PetSet) (bool, error) { - _, exists, err := s.Store.Get(ps) - if err != nil { - return false, err - } - return exists, nil -} - -// List lists all PetSets in the store. -func (s *StoreToPetSetLister) List() (psList []apps.PetSet, err error) { - for _, ps := range s.Store.List() { - psList = append(psList, *(ps.(*apps.PetSet))) - } - return psList, nil -} - -type storePetSetsNamespacer struct { - store Store - namespace string -} - -func (s *StoreToPetSetLister) PetSets(namespace string) storePetSetsNamespacer { - return storePetSetsNamespacer{s.Store, namespace} -} - -// GetPodPetSets returns a list of PetSets managing a pod. Returns an error only if no matching PetSets are found. -func (s *StoreToPetSetLister) GetPodPetSets(pod *api.Pod) (psList []apps.PetSet, err error) { - var selector labels.Selector - var ps apps.PetSet - - if len(pod.Labels) == 0 { - err = fmt.Errorf("no PetSets found for pod %v because it has no labels", pod.Name) - return - } - - for _, m := range s.Store.List() { - ps = *m.(*apps.PetSet) - if ps.Namespace != pod.Namespace { - continue - } - selector, err = unversioned.LabelSelectorAsSelector(ps.Spec.Selector) - if err != nil { - err = fmt.Errorf("invalid selector: %v", err) - return - } - - // If a PetSet with a nil or empty selector creeps in, it should match nothing, not everything. - if selector.Empty() || !selector.Matches(labels.Set(pod.Labels)) { - continue - } - psList = append(psList, ps) - } - if len(psList) == 0 { - err = fmt.Errorf("could not find PetSet for pod %s in namespace %s with labels: %v", pod.Name, pod.Namespace, pod.Labels) - } - 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/vendor/k8s.io/client-go/1.5/discovery/discovery_client.go b/vendor/k8s.io/client-go/discovery/discovery_client.go similarity index 75% rename from vendor/k8s.io/client-go/1.5/discovery/discovery_client.go rename to vendor/k8s.io/client-go/discovery/discovery_client.go index 11ebae16b..4aaed5e1d 100644 --- a/vendor/k8s.io/client-go/1.5/discovery/discovery_client.go +++ b/vendor/k8s.io/client-go/discovery/discovery_client.go @@ -25,25 +25,35 @@ import ( "github.com/emicklei/go-restful/swagger" - "k8s.io/client-go/1.5/pkg/api" - "k8s.io/client-go/1.5/pkg/api/errors" - "k8s.io/client-go/1.5/pkg/api/unversioned" - "k8s.io/client-go/1.5/pkg/api/v1" - "k8s.io/client-go/1.5/pkg/runtime" - "k8s.io/client-go/1.5/pkg/runtime/serializer" - "k8s.io/client-go/1.5/pkg/version" - "k8s.io/client-go/1.5/rest" + "k8s.io/client-go/pkg/api" + "k8s.io/client-go/pkg/api/errors" + "k8s.io/client-go/pkg/api/unversioned" + "k8s.io/client-go/pkg/api/v1" + "k8s.io/client-go/pkg/runtime" + "k8s.io/client-go/pkg/runtime/serializer" + "k8s.io/client-go/pkg/version" + "k8s.io/client-go/rest" ) // DiscoveryInterface holds the methods that discover server-supported API groups, // versions and resources. type DiscoveryInterface interface { + RESTClient() rest.Interface ServerGroupsInterface ServerResourcesInterface ServerVersionInterface SwaggerSchemaInterface } +// CachedDiscoveryInterface is a DiscoveryInterface with cache invalidation and freshness. +type CachedDiscoveryInterface interface { + DiscoveryInterface + // Fresh returns true if no cached data was used that had been retrieved before the instantiation. + Fresh() bool + // Invalidate enforces that no cached data is used in the future that is older than the current time. + Invalidate() +} + // ServerGroupsInterface has methods for obtaining supported groups on the API server type ServerGroupsInterface interface { // ServerGroups returns the supported groups, with information like supported versions and the @@ -80,7 +90,7 @@ type SwaggerSchemaInterface interface { // DiscoveryClient implements the functions that discover server-supported API groups, // versions and resources. type DiscoveryClient struct { - *rest.RESTClient + restClient rest.Interface LegacyPrefix string } @@ -107,7 +117,7 @@ func apiVersionsToAPIGroup(apiVersions *unversioned.APIVersions) (apiGroup unver func (d *DiscoveryClient) ServerGroups() (apiGroupList *unversioned.APIGroupList, err error) { // Get the groupVersions exposed at /api v := &unversioned.APIVersions{} - err = d.Get().AbsPath(d.LegacyPrefix).Do().Into(v) + err = d.restClient.Get().AbsPath(d.LegacyPrefix).Do().Into(v) apiGroup := unversioned.APIGroup{} if err == nil { apiGroup = apiVersionsToAPIGroup(v) @@ -118,7 +128,7 @@ func (d *DiscoveryClient) ServerGroups() (apiGroupList *unversioned.APIGroupList // Get the groupVersions exposed at /apis apiGroupList = &unversioned.APIGroupList{} - err = d.Get().AbsPath("/apis").Do().Into(apiGroupList) + err = d.restClient.Get().AbsPath("/apis").Do().Into(apiGroupList) if err != nil && !errors.IsNotFound(err) && !errors.IsForbidden(err) { return nil, err } @@ -144,7 +154,7 @@ func (d *DiscoveryClient) ServerResourcesForGroupVersion(groupVersion string) (r url.Path = "/apis/" + groupVersion } resources = &unversioned.APIResourceList{} - err = d.Get().AbsPath(url.String()).Do().Into(resources) + err = d.restClient.Get().AbsPath(url.String()).Do().Into(resources) if err != nil { // ignore 403 or 404 error to be compatible with an v1.0 server. if groupVersion == "v1" && (errors.IsNotFound(err) || errors.IsForbidden(err)) { @@ -199,39 +209,63 @@ func IsGroupDiscoveryFailedError(err error) bool { // serverPreferredResources returns the supported resources with the version preferred by the // server. If namespaced is true, only namespaced resources will be returned. func (d *DiscoveryClient) serverPreferredResources(namespaced bool) ([]unversioned.GroupVersionResource, error) { - results := []unversioned.GroupVersionResource{} - serverGroupList, err := d.ServerGroups() - if err != nil { - return results, err - } - + // retry in case the groups supported by the server change after ServerGroup() returns. + const maxRetries = 2 var failedGroups map[unversioned.GroupVersion]error - for _, apiGroup := range serverGroupList.Groups { - preferredVersion := apiGroup.PreferredVersion - groupVersion := unversioned.GroupVersion{Group: apiGroup.Name, Version: preferredVersion.Version} - apiResourceList, err := d.ServerResourcesForGroupVersion(preferredVersion.GroupVersion) + var results []unversioned.GroupVersionResource + var resources map[unversioned.GroupResource]string +RetrieveGroups: + for i := 0; i < maxRetries; i++ { + results = []unversioned.GroupVersionResource{} + resources = map[unversioned.GroupResource]string{} + failedGroups = make(map[unversioned.GroupVersion]error) + serverGroupList, err := d.ServerGroups() if err != nil { - if failedGroups == nil { - failedGroups = make(map[unversioned.GroupVersion]error) - } - failedGroups[groupVersion] = err - continue + return results, err } - for _, apiResource := range apiResourceList.APIResources { - // ignore the root scoped resources if "namespaced" is true. - if namespaced && !apiResource.Namespaced { - continue + + for _, apiGroup := range serverGroupList.Groups { + versions := apiGroup.Versions + for _, version := range versions { + groupVersion := unversioned.GroupVersion{Group: apiGroup.Name, Version: version.Version} + apiResourceList, err := d.ServerResourcesForGroupVersion(version.GroupVersion) + if err != nil { + if i < maxRetries-1 { + continue RetrieveGroups + } + failedGroups[groupVersion] = err + continue + } + for _, apiResource := range apiResourceList.APIResources { + // ignore the root scoped resources if "namespaced" is true. + if namespaced && !apiResource.Namespaced { + continue + } + if strings.Contains(apiResource.Name, "/") { + continue + } + gvr := groupVersion.WithResource(apiResource.Name) + if _, ok := resources[gvr.GroupResource()]; ok { + if gvr.Version != apiGroup.PreferredVersion.Version { + continue + } + // remove previous entry, because it will be replaced with a preferred one + for i := range results { + if results[i].GroupResource() == gvr.GroupResource() { + results = append(results[:i], results[i+1:]...) + } + } + } + resources[gvr.GroupResource()] = gvr.Version + results = append(results, gvr) + } } - if strings.Contains(apiResource.Name, "/") { - continue - } - results = append(results, groupVersion.WithResource(apiResource.Name)) + } + if len(failedGroups) == 0 { + return results, nil } } - if len(failedGroups) > 0 { - return results, &ErrGroupDiscoveryFailed{Groups: failedGroups} - } - return results, nil + return results, &ErrGroupDiscoveryFailed{Groups: failedGroups} } // ServerPreferredResources returns the supported resources with the version preferred by the @@ -248,7 +282,7 @@ func (d *DiscoveryClient) ServerPreferredNamespacedResources() ([]unversioned.Gr // ServerVersion retrieves and parses the server's version (git version). func (d *DiscoveryClient) ServerVersion() (*version.Info, error) { - body, err := d.Get().AbsPath("/version").Do().Raw() + body, err := d.restClient.Get().AbsPath("/version").Do().Raw() if err != nil { return nil, err } @@ -282,7 +316,7 @@ func (d *DiscoveryClient) SwaggerSchema(version unversioned.GroupVersion) (*swag path = "/swaggerapi/apis/" + version.Group + "/" + version.Version } - body, err := d.Get().AbsPath(path).Do().Raw() + body, err := d.restClient.Get().AbsPath(path).Do().Raw() if err != nil { return nil, err } @@ -298,10 +332,7 @@ func setDiscoveryDefaults(config *rest.Config) error { config.APIPath = "" config.GroupVersion = nil codec := runtime.NoopEncoder{Decoder: api.Codecs.UniversalDecoder()} - config.NegotiatedSerializer = serializer.NegotiatedSerializerWrapper( - runtime.SerializerInfo{Serializer: codec}, - runtime.StreamSerializerInfo{}, - ) + config.NegotiatedSerializer = serializer.NegotiatedSerializerWrapper(runtime.SerializerInfo{Serializer: codec}) if len(config.UserAgent) == 0 { config.UserAgent = rest.DefaultKubernetesUserAgent() } @@ -316,7 +347,7 @@ func NewDiscoveryClientForConfig(c *rest.Config) (*DiscoveryClient, error) { return nil, err } client, err := rest.UnversionedRESTClientFor(&config) - return &DiscoveryClient{RESTClient: client, LegacyPrefix: "/api"}, err + return &DiscoveryClient{restClient: client, LegacyPrefix: "/api"}, err } // NewDiscoveryClientForConfig creates a new DiscoveryClient for the given config. If @@ -331,8 +362,8 @@ func NewDiscoveryClientForConfigOrDie(c *rest.Config) *DiscoveryClient { } // New creates a new DiscoveryClient for the given RESTClient. -func NewDiscoveryClient(c *rest.RESTClient) *DiscoveryClient { - return &DiscoveryClient{RESTClient: c, LegacyPrefix: "/api"} +func NewDiscoveryClient(c rest.Interface) *DiscoveryClient { + return &DiscoveryClient{restClient: c, LegacyPrefix: "/api"} } func stringDoesntExistIn(str string, slice []string) bool { @@ -343,3 +374,12 @@ func stringDoesntExistIn(str string, slice []string) bool { } return true } + +// RESTClient returns a RESTClient that is used to communicate +// with API server by this client implementation. +func (c *DiscoveryClient) RESTClient() rest.Interface { + if c == nil { + return nil + } + return c.restClient +} diff --git a/vendor/k8s.io/client-go/discovery/helper.go b/vendor/k8s.io/client-go/discovery/helper.go new file mode 100644 index 000000000..9494735dd --- /dev/null +++ b/vendor/k8s.io/client-go/discovery/helper.go @@ -0,0 +1,109 @@ +/* +Copyright 2016 The Kubernetes Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + +package discovery + +import ( + "fmt" + + "k8s.io/client-go/pkg/api/unversioned" + "k8s.io/client-go/pkg/util/sets" + "k8s.io/client-go/pkg/version" + // Import solely to initialize client auth plugins. + _ "k8s.io/client-go/plugin/pkg/client/auth" +) + +// MatchesServerVersion queries the server to compares the build version +// (git hash) of the client with the server's build version. It returns an error +// if it failed to contact the server or if the versions are not an exact match. +func MatchesServerVersion(client DiscoveryInterface) error { + cVer := version.Get() + sVer, err := client.ServerVersion() + if err != nil { + return fmt.Errorf("couldn't read version from server: %v\n", err) + } + // GitVersion includes GitCommit and GitTreeState, but best to be safe? + if cVer.GitVersion != sVer.GitVersion || cVer.GitCommit != sVer.GitCommit || cVer.GitTreeState != sVer.GitTreeState { + return fmt.Errorf("server version (%#v) differs from client version (%#v)!\n", sVer, cVer) + } + + return nil +} + +// NegotiateVersion queries the server's supported api versions to find +// a version that both client and server support. +// - If no version is provided, try registered client versions in order of +// preference. +// - If version is provided and the server does not support it, +// return an error. +func NegotiateVersion(client DiscoveryInterface, requiredGV *unversioned.GroupVersion, clientRegisteredGVs []unversioned.GroupVersion) (*unversioned.GroupVersion, error) { + clientVersions := sets.String{} + for _, gv := range clientRegisteredGVs { + clientVersions.Insert(gv.String()) + } + groups, err := client.ServerGroups() + if err != nil { + // This is almost always a connection error, and higher level code should treat this as a generic error, + // not a negotiation specific error. + return nil, err + } + versions := unversioned.ExtractGroupVersions(groups) + serverVersions := sets.String{} + for _, v := range versions { + serverVersions.Insert(v) + } + + // If version explicitly requested verify that both client and server support it. + // If server does not support warn, but try to negotiate a lower version. + if requiredGV != nil { + if !clientVersions.Has(requiredGV.String()) { + return nil, fmt.Errorf("client does not support API version %q; client supported API versions: %v", requiredGV, clientVersions) + + } + // If the server supports no versions, then we should just use the preferredGV + // This can happen because discovery fails due to 403 Forbidden errors + if len(serverVersions) == 0 { + return requiredGV, nil + } + if serverVersions.Has(requiredGV.String()) { + return requiredGV, nil + } + // If we are using an explicit config version the server does not support, fail. + return nil, fmt.Errorf("server does not support API version %q", requiredGV) + } + + for _, clientGV := range clientRegisteredGVs { + if serverVersions.Has(clientGV.String()) { + // Version was not explicitly requested in command config (--api-version). + // Ok to fall back to a supported version with a warning. + // TODO: caesarxuchao: enable the warning message when we have + // proper fix. Please refer to issue #14895. + // if len(version) != 0 { + // glog.Warningf("Server does not support API version '%s'. Falling back to '%s'.", version, clientVersion) + // } + t := clientGV + return &t, nil + } + } + + // if we have no server versions and we have no required version, choose the first clientRegisteredVersion + if len(serverVersions) == 0 && len(clientRegisteredGVs) > 0 { + return &clientRegisteredGVs[0], nil + } + + return nil, fmt.Errorf("failed to negotiate an api version; server supports: %v, client supports: %v", + serverVersions, clientVersions) +} diff --git a/vendor/k8s.io/client-go/1.5/discovery/restmapper.go b/vendor/k8s.io/client-go/discovery/restmapper.go similarity index 78% rename from vendor/k8s.io/client-go/1.5/discovery/restmapper.go rename to vendor/k8s.io/client-go/discovery/restmapper.go index 81dc905f4..7f846d2fb 100644 --- a/vendor/k8s.io/client-go/1.5/discovery/restmapper.go +++ b/vendor/k8s.io/client-go/discovery/restmapper.go @@ -20,9 +20,11 @@ import ( "fmt" "sync" - "k8s.io/client-go/1.5/pkg/api/errors" - "k8s.io/client-go/1.5/pkg/api/meta" - "k8s.io/client-go/1.5/pkg/api/unversioned" + "k8s.io/client-go/pkg/api/errors" + "k8s.io/client-go/pkg/api/meta" + "k8s.io/client-go/pkg/api/unversioned" + + "github.com/golang/glog" ) // APIGroupResources is an API group with a mapping of versions to @@ -35,7 +37,7 @@ type APIGroupResources struct { } // NewRESTMapper returns a PriorityRESTMapper based on the discovered -// groups and resourced passed in. +// groups and resources passed in. func NewRESTMapper(groupResources []*APIGroupResources, versionInterfaces meta.VersionInterfacesFunc) meta.RESTMapper { unionMapper := meta.MultiRESTMapper{} @@ -47,8 +49,8 @@ func NewRESTMapper(groupResources []*APIGroupResources, versionInterfaces meta.V groupPriority = append(groupPriority, group.Group.Name) if len(group.Group.PreferredVersion.Version) != 0 { - preffered := group.Group.PreferredVersion.Version - if _, ok := group.VersionedResources[preffered]; ok { + preferred := group.Group.PreferredVersion.Version + if _, ok := group.VersionedResources[preferred]; ok { resourcePriority = append(resourcePriority, unversioned.GroupVersionResource{ Group: group.Group.Name, Version: group.Group.PreferredVersion.Version, @@ -141,14 +143,14 @@ func GetAPIGroupResources(cl DiscoveryInterface) ([]*APIGroupResources, error) { type DeferredDiscoveryRESTMapper struct { initMu sync.Mutex delegate meta.RESTMapper - cl DiscoveryInterface + cl CachedDiscoveryInterface 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 { +func NewDeferredDiscoveryRESTMapper(cl CachedDiscoveryInterface, versionInterface meta.VersionInterfacesFunc) *DeferredDiscoveryRESTMapper { return &DeferredDiscoveryRESTMapper{ cl: cl, versionInterface: versionInterface, @@ -175,79 +177,118 @@ func (d *DeferredDiscoveryRESTMapper) getDelegate() (meta.RESTMapper, error) { // Reset resets the internally cached Discovery information and will // cause the next mapping request to re-discover. func (d *DeferredDiscoveryRESTMapper) Reset() { + glog.V(5).Info("Invalidating discovery information") + d.initMu.Lock() + defer d.initMu.Unlock() + + d.cl.Invalidate() 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) { +func (d *DeferredDiscoveryRESTMapper) KindFor(resource unversioned.GroupVersionResource) (gvk unversioned.GroupVersionKind, err error) { del, err := d.getDelegate() if err != nil { return unversioned.GroupVersionKind{}, err } - return del.KindFor(resource) + gvk, err = del.KindFor(resource) + if err != nil && !d.cl.Fresh() { + d.Reset() + gvk, err = d.KindFor(resource) + } + return } // 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) { +func (d *DeferredDiscoveryRESTMapper) KindsFor(resource unversioned.GroupVersionResource) (gvks []unversioned.GroupVersionKind, err error) { del, err := d.getDelegate() if err != nil { return nil, err } - return del.KindsFor(resource) + gvks, err = del.KindsFor(resource) + if len(gvks) == 0 && !d.cl.Fresh() { + d.Reset() + gvks, err = d.KindsFor(resource) + } + return } // 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) { +func (d *DeferredDiscoveryRESTMapper) ResourceFor(input unversioned.GroupVersionResource) (gvr unversioned.GroupVersionResource, err error) { del, err := d.getDelegate() if err != nil { return unversioned.GroupVersionResource{}, err } - return del.ResourceFor(input) + gvr, err = del.ResourceFor(input) + if err != nil && !d.cl.Fresh() { + d.Reset() + gvr, err = d.ResourceFor(input) + } + return } // 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) { +func (d *DeferredDiscoveryRESTMapper) ResourcesFor(input unversioned.GroupVersionResource) (gvrs []unversioned.GroupVersionResource, err error) { del, err := d.getDelegate() if err != nil { return nil, err } - return del.ResourcesFor(input) + gvrs, err = del.ResourcesFor(input) + if len(gvrs) == 0 && !d.cl.Fresh() { + d.Reset() + gvrs, err = d.ResourcesFor(input) + } + return } // RESTMapping identifies a preferred resource mapping for the // provided group kind. -func (d *DeferredDiscoveryRESTMapper) RESTMapping(gk unversioned.GroupKind, versions ...string) (*meta.RESTMapping, error) { +func (d *DeferredDiscoveryRESTMapper) RESTMapping(gk unversioned.GroupKind, versions ...string) (m *meta.RESTMapping, err error) { del, err := d.getDelegate() if err != nil { return nil, err } - return del.RESTMapping(gk, versions...) + m, err = del.RESTMapping(gk, versions...) + if err != nil && !d.cl.Fresh() { + d.Reset() + m, err = d.RESTMapping(gk, versions...) + } + return } // 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) { +func (d *DeferredDiscoveryRESTMapper) RESTMappings(gk unversioned.GroupKind) (ms []*meta.RESTMapping, err error) { del, err := d.getDelegate() if err != nil { return nil, err } - return del.RESTMappings(gk) + ms, err = del.RESTMappings(gk) + if len(ms) == 0 && !d.cl.Fresh() { + d.Reset() + ms, err = d.RESTMappings(gk) + } + return } // AliasesForResource returns whether a resource has an alias or not. -func (d *DeferredDiscoveryRESTMapper) AliasesForResource(resource string) ([]string, bool) { +func (d *DeferredDiscoveryRESTMapper) AliasesForResource(resource string) (as []string, ok bool) { del, err := d.getDelegate() if err != nil { return nil, false } - return del.AliasesForResource(resource) + as, ok = del.AliasesForResource(resource) + if len(as) == 0 && !d.cl.Fresh() { + d.Reset() + as, ok = d.AliasesForResource(resource) + } + return } // ResourceSingularizer converts a resource name from plural to @@ -257,7 +298,12 @@ func (d *DeferredDiscoveryRESTMapper) ResourceSingularizer(resource string) (sin if err != nil { return resource, err } - return del.ResourceSingularizer(resource) + singular, err = del.ResourceSingularizer(resource) + if err != nil && !d.cl.Fresh() { + d.Reset() + singular, err = d.ResourceSingularizer(resource) + } + return } func (d *DeferredDiscoveryRESTMapper) String() string { diff --git a/vendor/k8s.io/client-go/1.5/discovery/unstructured.go b/vendor/k8s.io/client-go/discovery/unstructured.go similarity index 97% rename from vendor/k8s.io/client-go/1.5/discovery/unstructured.go rename to vendor/k8s.io/client-go/discovery/unstructured.go index cb8050823..c4b8791fa 100644 --- a/vendor/k8s.io/client-go/1.5/discovery/unstructured.go +++ b/vendor/k8s.io/client-go/discovery/unstructured.go @@ -19,8 +19,8 @@ package discovery import ( "fmt" - "k8s.io/client-go/1.5/pkg/api/unversioned" - "k8s.io/client-go/1.5/pkg/runtime" + "k8s.io/client-go/pkg/api/unversioned" + "k8s.io/client-go/pkg/runtime" ) // UnstructuredObjectTyper provides a runtime.ObjectTyper implmentation for diff --git a/vendor/k8s.io/client-go/godeps-json-updater.go b/vendor/k8s.io/client-go/godeps-json-updater.go deleted file mode 100644 index a9a66d379..000000000 --- a/vendor/k8s.io/client-go/godeps-json-updater.go +++ /dev/null @@ -1,88 +0,0 @@ -/* -Copyright 2016 The Kubernetes Authors. - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ - -package main - -import ( - "encoding/json" - "flag" - "log" - "os" - "strings" -) - -var ( - godepsFile = flag.String("godeps-file", "", "absolute path to Godeps.json") - clientRepoImportPath = flag.String("client-go-import-path", "", "import path to a version of client-go, e.g., k8s.io/client-go/1.4") -) - -type Dependency struct { - ImportPath string - Comment string `json:",omitempty"` - Rev string -} - -type Godeps struct { - ImportPath string - GoVersion string - GodepVersion string - Packages []string `json:",omitempty"` // Arguments to save, if any. - Deps []Dependency -} - -// rewrites the Godeps.ImportPath, removes the Deps whose ImportPath contains "k8s.io/kubernetes" -func main() { - flag.Parse() - var g Godeps - if len(*godepsFile) == 0 { - log.Fatalf("absolute ath to Godeps.json is required") - } - if len(*clientRepoImportPath) == 0 { - log.Fatalf("import path to a version of client-go is required") - } - f, err := os.OpenFile(*godepsFile, os.O_RDWR, 0666) - if err != nil { - log.Fatalf("cannot open file %q: %v", *godepsFile, err) - } - defer f.Close() - err = json.NewDecoder(f).Decode(&g) - if err != nil { - log.Fatalf("Unable to parse %q: %v", *godepsFile, err) - } - // rewrites the Godeps.ImportPath - g.ImportPath = *clientRepoImportPath - // removes the Deps whose ImportPath contains "k8s.io/kubernetes" - i := 0 - for _, dep := range g.Deps { - if strings.Contains(dep.ImportPath, "k8s.io/kubernetes") { - continue - } - g.Deps[i] = dep - i++ - } - g.Deps = g.Deps[:i] - b, err := json.MarshalIndent(g, "", "\t") - if err != nil { - log.Fatal(err) - } - n, err := f.WriteAt(append(b, '\n'), 0) - if err != nil { - log.Fatal(err) - } - if err := f.Truncate(int64(n)); err != nil { - log.Fatal(err) - } -} diff --git a/vendor/k8s.io/client-go/kubernetes/clientset.go b/vendor/k8s.io/client-go/kubernetes/clientset.go new file mode 100644 index 000000000..dcbf77320 --- /dev/null +++ b/vendor/k8s.io/client-go/kubernetes/clientset.go @@ -0,0 +1,400 @@ +/* +Copyright 2017 The Kubernetes Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + +package kubernetes + +import ( + "github.com/golang/glog" + discovery "k8s.io/client-go/discovery" + v1beta1apps "k8s.io/client-go/kubernetes/typed/apps/v1beta1" + v1beta1authentication "k8s.io/client-go/kubernetes/typed/authentication/v1beta1" + v1beta1authorization "k8s.io/client-go/kubernetes/typed/authorization/v1beta1" + v1autoscaling "k8s.io/client-go/kubernetes/typed/autoscaling/v1" + v1batch "k8s.io/client-go/kubernetes/typed/batch/v1" + v2alpha1batch "k8s.io/client-go/kubernetes/typed/batch/v2alpha1" + v1alpha1certificates "k8s.io/client-go/kubernetes/typed/certificates/v1alpha1" + v1core "k8s.io/client-go/kubernetes/typed/core/v1" + v1beta1extensions "k8s.io/client-go/kubernetes/typed/extensions/v1beta1" + v1beta1policy "k8s.io/client-go/kubernetes/typed/policy/v1beta1" + v1alpha1rbac "k8s.io/client-go/kubernetes/typed/rbac/v1alpha1" + v1beta1storage "k8s.io/client-go/kubernetes/typed/storage/v1beta1" + "k8s.io/client-go/pkg/util/flowcontrol" + _ "k8s.io/client-go/plugin/pkg/client/auth" + rest "k8s.io/client-go/rest" +) + +type Interface interface { + Discovery() discovery.DiscoveryInterface + CoreV1() v1core.CoreV1Interface + // Deprecated: please explicitly pick a version if possible. + Core() v1core.CoreV1Interface + AppsV1beta1() v1beta1apps.AppsV1beta1Interface + // Deprecated: please explicitly pick a version if possible. + Apps() v1beta1apps.AppsV1beta1Interface + AuthenticationV1beta1() v1beta1authentication.AuthenticationV1beta1Interface + // Deprecated: please explicitly pick a version if possible. + Authentication() v1beta1authentication.AuthenticationV1beta1Interface + AuthorizationV1beta1() v1beta1authorization.AuthorizationV1beta1Interface + // Deprecated: please explicitly pick a version if possible. + Authorization() v1beta1authorization.AuthorizationV1beta1Interface + AutoscalingV1() v1autoscaling.AutoscalingV1Interface + // Deprecated: please explicitly pick a version if possible. + Autoscaling() v1autoscaling.AutoscalingV1Interface + BatchV1() v1batch.BatchV1Interface + // Deprecated: please explicitly pick a version if possible. + Batch() v1batch.BatchV1Interface + BatchV2alpha1() v2alpha1batch.BatchV2alpha1Interface + + CertificatesV1alpha1() v1alpha1certificates.CertificatesV1alpha1Interface + // Deprecated: please explicitly pick a version if possible. + Certificates() v1alpha1certificates.CertificatesV1alpha1Interface + ExtensionsV1beta1() v1beta1extensions.ExtensionsV1beta1Interface + // Deprecated: please explicitly pick a version if possible. + Extensions() v1beta1extensions.ExtensionsV1beta1Interface + PolicyV1beta1() v1beta1policy.PolicyV1beta1Interface + // Deprecated: please explicitly pick a version if possible. + Policy() v1beta1policy.PolicyV1beta1Interface + RbacV1alpha1() v1alpha1rbac.RbacV1alpha1Interface + // Deprecated: please explicitly pick a version if possible. + Rbac() v1alpha1rbac.RbacV1alpha1Interface + StorageV1beta1() v1beta1storage.StorageV1beta1Interface + // Deprecated: please explicitly pick a version if possible. + Storage() v1beta1storage.StorageV1beta1Interface +} + +// Clientset contains the clients for groups. Each group has exactly one +// version included in a Clientset. +type Clientset struct { + *discovery.DiscoveryClient + *v1core.CoreV1Client + *v1beta1apps.AppsV1beta1Client + *v1beta1authentication.AuthenticationV1beta1Client + *v1beta1authorization.AuthorizationV1beta1Client + *v1autoscaling.AutoscalingV1Client + *v1batch.BatchV1Client + *v2alpha1batch.BatchV2alpha1Client + *v1alpha1certificates.CertificatesV1alpha1Client + *v1beta1extensions.ExtensionsV1beta1Client + *v1beta1policy.PolicyV1beta1Client + *v1alpha1rbac.RbacV1alpha1Client + *v1beta1storage.StorageV1beta1Client +} + +// CoreV1 retrieves the CoreV1Client +func (c *Clientset) CoreV1() v1core.CoreV1Interface { + if c == nil { + return nil + } + return c.CoreV1Client +} + +// Deprecated: Core retrieves the default version of CoreClient. +// Please explicitly pick a version. +func (c *Clientset) Core() v1core.CoreV1Interface { + if c == nil { + return nil + } + return c.CoreV1Client +} + +// AppsV1beta1 retrieves the AppsV1beta1Client +func (c *Clientset) AppsV1beta1() v1beta1apps.AppsV1beta1Interface { + if c == nil { + return nil + } + return c.AppsV1beta1Client +} + +// Deprecated: Apps retrieves the default version of AppsClient. +// Please explicitly pick a version. +func (c *Clientset) Apps() v1beta1apps.AppsV1beta1Interface { + if c == nil { + return nil + } + return c.AppsV1beta1Client +} + +// AuthenticationV1beta1 retrieves the AuthenticationV1beta1Client +func (c *Clientset) AuthenticationV1beta1() v1beta1authentication.AuthenticationV1beta1Interface { + if c == nil { + return nil + } + return c.AuthenticationV1beta1Client +} + +// Deprecated: Authentication retrieves the default version of AuthenticationClient. +// Please explicitly pick a version. +func (c *Clientset) Authentication() v1beta1authentication.AuthenticationV1beta1Interface { + if c == nil { + return nil + } + return c.AuthenticationV1beta1Client +} + +// AuthorizationV1beta1 retrieves the AuthorizationV1beta1Client +func (c *Clientset) AuthorizationV1beta1() v1beta1authorization.AuthorizationV1beta1Interface { + if c == nil { + return nil + } + return c.AuthorizationV1beta1Client +} + +// Deprecated: Authorization retrieves the default version of AuthorizationClient. +// Please explicitly pick a version. +func (c *Clientset) Authorization() v1beta1authorization.AuthorizationV1beta1Interface { + if c == nil { + return nil + } + return c.AuthorizationV1beta1Client +} + +// AutoscalingV1 retrieves the AutoscalingV1Client +func (c *Clientset) AutoscalingV1() v1autoscaling.AutoscalingV1Interface { + if c == nil { + return nil + } + return c.AutoscalingV1Client +} + +// Deprecated: Autoscaling retrieves the default version of AutoscalingClient. +// Please explicitly pick a version. +func (c *Clientset) Autoscaling() v1autoscaling.AutoscalingV1Interface { + if c == nil { + return nil + } + return c.AutoscalingV1Client +} + +// BatchV1 retrieves the BatchV1Client +func (c *Clientset) BatchV1() v1batch.BatchV1Interface { + if c == nil { + return nil + } + return c.BatchV1Client +} + +// Deprecated: Batch retrieves the default version of BatchClient. +// Please explicitly pick a version. +func (c *Clientset) Batch() v1batch.BatchV1Interface { + if c == nil { + return nil + } + return c.BatchV1Client +} + +// BatchV2alpha1 retrieves the BatchV2alpha1Client +func (c *Clientset) BatchV2alpha1() v2alpha1batch.BatchV2alpha1Interface { + if c == nil { + return nil + } + return c.BatchV2alpha1Client +} + +// CertificatesV1alpha1 retrieves the CertificatesV1alpha1Client +func (c *Clientset) CertificatesV1alpha1() v1alpha1certificates.CertificatesV1alpha1Interface { + if c == nil { + return nil + } + return c.CertificatesV1alpha1Client +} + +// Deprecated: Certificates retrieves the default version of CertificatesClient. +// Please explicitly pick a version. +func (c *Clientset) Certificates() v1alpha1certificates.CertificatesV1alpha1Interface { + if c == nil { + return nil + } + return c.CertificatesV1alpha1Client +} + +// ExtensionsV1beta1 retrieves the ExtensionsV1beta1Client +func (c *Clientset) ExtensionsV1beta1() v1beta1extensions.ExtensionsV1beta1Interface { + if c == nil { + return nil + } + return c.ExtensionsV1beta1Client +} + +// Deprecated: Extensions retrieves the default version of ExtensionsClient. +// Please explicitly pick a version. +func (c *Clientset) Extensions() v1beta1extensions.ExtensionsV1beta1Interface { + if c == nil { + return nil + } + return c.ExtensionsV1beta1Client +} + +// PolicyV1beta1 retrieves the PolicyV1beta1Client +func (c *Clientset) PolicyV1beta1() v1beta1policy.PolicyV1beta1Interface { + if c == nil { + return nil + } + return c.PolicyV1beta1Client +} + +// Deprecated: Policy retrieves the default version of PolicyClient. +// Please explicitly pick a version. +func (c *Clientset) Policy() v1beta1policy.PolicyV1beta1Interface { + if c == nil { + return nil + } + return c.PolicyV1beta1Client +} + +// RbacV1alpha1 retrieves the RbacV1alpha1Client +func (c *Clientset) RbacV1alpha1() v1alpha1rbac.RbacV1alpha1Interface { + if c == nil { + return nil + } + return c.RbacV1alpha1Client +} + +// Deprecated: Rbac retrieves the default version of RbacClient. +// Please explicitly pick a version. +func (c *Clientset) Rbac() v1alpha1rbac.RbacV1alpha1Interface { + if c == nil { + return nil + } + return c.RbacV1alpha1Client +} + +// StorageV1beta1 retrieves the StorageV1beta1Client +func (c *Clientset) StorageV1beta1() v1beta1storage.StorageV1beta1Interface { + if c == nil { + return nil + } + return c.StorageV1beta1Client +} + +// Deprecated: Storage retrieves the default version of StorageClient. +// Please explicitly pick a version. +func (c *Clientset) Storage() v1beta1storage.StorageV1beta1Interface { + if c == nil { + return nil + } + return c.StorageV1beta1Client +} + +// Discovery retrieves the DiscoveryClient +func (c *Clientset) Discovery() discovery.DiscoveryInterface { + return c.DiscoveryClient +} + +// NewForConfig creates a new Clientset for the given config. +func NewForConfig(c *rest.Config) (*Clientset, error) { + configShallowCopy := *c + if configShallowCopy.RateLimiter == nil && configShallowCopy.QPS > 0 { + configShallowCopy.RateLimiter = flowcontrol.NewTokenBucketRateLimiter(configShallowCopy.QPS, configShallowCopy.Burst) + } + var clientset Clientset + var err error + clientset.CoreV1Client, err = v1core.NewForConfig(&configShallowCopy) + if err != nil { + return nil, err + } + clientset.AppsV1beta1Client, err = v1beta1apps.NewForConfig(&configShallowCopy) + if err != nil { + return nil, err + } + clientset.AuthenticationV1beta1Client, err = v1beta1authentication.NewForConfig(&configShallowCopy) + if err != nil { + return nil, err + } + clientset.AuthorizationV1beta1Client, err = v1beta1authorization.NewForConfig(&configShallowCopy) + if err != nil { + return nil, err + } + clientset.AutoscalingV1Client, err = v1autoscaling.NewForConfig(&configShallowCopy) + if err != nil { + return nil, err + } + clientset.BatchV1Client, err = v1batch.NewForConfig(&configShallowCopy) + if err != nil { + return nil, err + } + clientset.BatchV2alpha1Client, err = v2alpha1batch.NewForConfig(&configShallowCopy) + if err != nil { + return nil, err + } + clientset.CertificatesV1alpha1Client, err = v1alpha1certificates.NewForConfig(&configShallowCopy) + if err != nil { + return nil, err + } + clientset.ExtensionsV1beta1Client, err = v1beta1extensions.NewForConfig(&configShallowCopy) + if err != nil { + return nil, err + } + clientset.PolicyV1beta1Client, err = v1beta1policy.NewForConfig(&configShallowCopy) + if err != nil { + return nil, err + } + clientset.RbacV1alpha1Client, err = v1alpha1rbac.NewForConfig(&configShallowCopy) + if err != nil { + return nil, err + } + clientset.StorageV1beta1Client, err = v1beta1storage.NewForConfig(&configShallowCopy) + if err != nil { + return nil, err + } + + clientset.DiscoveryClient, err = discovery.NewDiscoveryClientForConfig(&configShallowCopy) + if err != nil { + glog.Errorf("failed to create the DiscoveryClient: %v", err) + return nil, err + } + return &clientset, nil +} + +// NewForConfigOrDie creates a new Clientset for the given config and +// panics if there is an error in the config. +func NewForConfigOrDie(c *rest.Config) *Clientset { + var clientset Clientset + clientset.CoreV1Client = v1core.NewForConfigOrDie(c) + clientset.AppsV1beta1Client = v1beta1apps.NewForConfigOrDie(c) + clientset.AuthenticationV1beta1Client = v1beta1authentication.NewForConfigOrDie(c) + clientset.AuthorizationV1beta1Client = v1beta1authorization.NewForConfigOrDie(c) + clientset.AutoscalingV1Client = v1autoscaling.NewForConfigOrDie(c) + clientset.BatchV1Client = v1batch.NewForConfigOrDie(c) + clientset.BatchV2alpha1Client = v2alpha1batch.NewForConfigOrDie(c) + clientset.CertificatesV1alpha1Client = v1alpha1certificates.NewForConfigOrDie(c) + clientset.ExtensionsV1beta1Client = v1beta1extensions.NewForConfigOrDie(c) + clientset.PolicyV1beta1Client = v1beta1policy.NewForConfigOrDie(c) + clientset.RbacV1alpha1Client = v1alpha1rbac.NewForConfigOrDie(c) + clientset.StorageV1beta1Client = v1beta1storage.NewForConfigOrDie(c) + + clientset.DiscoveryClient = discovery.NewDiscoveryClientForConfigOrDie(c) + return &clientset +} + +// New creates a new Clientset for the given RESTClient. +func New(c rest.Interface) *Clientset { + var clientset Clientset + clientset.CoreV1Client = v1core.New(c) + clientset.AppsV1beta1Client = v1beta1apps.New(c) + clientset.AuthenticationV1beta1Client = v1beta1authentication.New(c) + clientset.AuthorizationV1beta1Client = v1beta1authorization.New(c) + clientset.AutoscalingV1Client = v1autoscaling.New(c) + clientset.BatchV1Client = v1batch.New(c) + clientset.BatchV2alpha1Client = v2alpha1batch.New(c) + clientset.CertificatesV1alpha1Client = v1alpha1certificates.New(c) + clientset.ExtensionsV1beta1Client = v1beta1extensions.New(c) + clientset.PolicyV1beta1Client = v1beta1policy.New(c) + clientset.RbacV1alpha1Client = v1alpha1rbac.New(c) + clientset.StorageV1beta1Client = v1beta1storage.New(c) + + clientset.DiscoveryClient = discovery.NewDiscoveryClient(c) + return &clientset +} diff --git a/vendor/k8s.io/client-go/1.5/kubernetes/doc.go b/vendor/k8s.io/client-go/kubernetes/doc.go similarity index 71% rename from vendor/k8s.io/client-go/1.5/kubernetes/doc.go rename to vendor/k8s.io/client-go/kubernetes/doc.go index bd09a3563..18ee0663d 100644 --- a/vendor/k8s.io/client-go/1.5/kubernetes/doc.go +++ b/vendor/k8s.io/client-go/kubernetes/doc.go @@ -1,5 +1,5 @@ /* -Copyright 2016 The Kubernetes Authors. +Copyright 2017 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -14,7 +14,7 @@ See the License for the specific language governing permissions and limitations under the License. */ -// This package is generated by client-gen with arguments: --clientset-name=release_1_5 --input=[api/v1,apps/v1alpha1,authentication/v1beta1,authorization/v1beta1,autoscaling/v1,batch/v1,certificates/v1alpha1,extensions/v1beta1,policy/v1alpha1,rbac/v1alpha1,storage/v1beta1] +// This package is generated by client-gen with arguments: --clientset-name=release_1_5 --input=[api/v1,apps/v1beta1,authentication/v1beta1,authorization/v1beta1,autoscaling/v1,batch/v1,batch/v2alpha1,certificates/v1alpha1,extensions/v1beta1,policy/v1beta1,rbac/v1alpha1,storage/v1beta1] // This package has the automatically generated clientset. package kubernetes diff --git a/vendor/k8s.io/client-go/1.5/kubernetes/import_known_versions.go b/vendor/k8s.io/client-go/kubernetes/import_known_versions.go similarity index 58% rename from vendor/k8s.io/client-go/1.5/kubernetes/import_known_versions.go rename to vendor/k8s.io/client-go/kubernetes/import_known_versions.go index 2a27c780f..57fb7f942 100644 --- a/vendor/k8s.io/client-go/1.5/kubernetes/import_known_versions.go +++ b/vendor/k8s.io/client-go/kubernetes/import_known_versions.go @@ -20,18 +20,18 @@ package kubernetes import ( "fmt" - _ "k8s.io/client-go/1.5/pkg/api/install" - "k8s.io/client-go/1.5/pkg/apimachinery/registered" - _ "k8s.io/client-go/1.5/pkg/apis/apps/install" - _ "k8s.io/client-go/1.5/pkg/apis/authentication/install" - _ "k8s.io/client-go/1.5/pkg/apis/authorization/install" - _ "k8s.io/client-go/1.5/pkg/apis/autoscaling/install" - _ "k8s.io/client-go/1.5/pkg/apis/batch/install" - _ "k8s.io/client-go/1.5/pkg/apis/certificates/install" - _ "k8s.io/client-go/1.5/pkg/apis/extensions/install" - _ "k8s.io/client-go/1.5/pkg/apis/policy/install" - _ "k8s.io/client-go/1.5/pkg/apis/rbac/install" - _ "k8s.io/client-go/1.5/pkg/apis/storage/install" + _ "k8s.io/client-go/pkg/api/install" + "k8s.io/client-go/pkg/apimachinery/registered" + _ "k8s.io/client-go/pkg/apis/apps/install" + _ "k8s.io/client-go/pkg/apis/authentication/install" + _ "k8s.io/client-go/pkg/apis/authorization/install" + _ "k8s.io/client-go/pkg/apis/autoscaling/install" + _ "k8s.io/client-go/pkg/apis/batch/install" + _ "k8s.io/client-go/pkg/apis/certificates/install" + _ "k8s.io/client-go/pkg/apis/extensions/install" + _ "k8s.io/client-go/pkg/apis/policy/install" + _ "k8s.io/client-go/pkg/apis/rbac/install" + _ "k8s.io/client-go/pkg/apis/storage/install" ) func init() { diff --git a/vendor/k8s.io/client-go/kubernetes/typed/apps/v1beta1/apps_client.go b/vendor/k8s.io/client-go/kubernetes/typed/apps/v1beta1/apps_client.go new file mode 100644 index 000000000..f95e71ae5 --- /dev/null +++ b/vendor/k8s.io/client-go/kubernetes/typed/apps/v1beta1/apps_client.go @@ -0,0 +1,98 @@ +/* +Copyright 2017 The Kubernetes Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + +package v1beta1 + +import ( + fmt "fmt" + api "k8s.io/client-go/pkg/api" + unversioned "k8s.io/client-go/pkg/api/unversioned" + registered "k8s.io/client-go/pkg/apimachinery/registered" + serializer "k8s.io/client-go/pkg/runtime/serializer" + rest "k8s.io/client-go/rest" +) + +type AppsV1beta1Interface interface { + RESTClient() rest.Interface + StatefulSetsGetter +} + +// AppsV1beta1Client is used to interact with features provided by the k8s.io/kubernetes/pkg/apimachinery/registered.Group group. +type AppsV1beta1Client struct { + restClient rest.Interface +} + +func (c *AppsV1beta1Client) StatefulSets(namespace string) StatefulSetInterface { + return newStatefulSets(c, namespace) +} + +// NewForConfig creates a new AppsV1beta1Client for the given config. +func NewForConfig(c *rest.Config) (*AppsV1beta1Client, error) { + config := *c + if err := setConfigDefaults(&config); err != nil { + return nil, err + } + client, err := rest.RESTClientFor(&config) + if err != nil { + return nil, err + } + return &AppsV1beta1Client{client}, nil +} + +// NewForConfigOrDie creates a new AppsV1beta1Client for the given config and +// panics if there is an error in the config. +func NewForConfigOrDie(c *rest.Config) *AppsV1beta1Client { + client, err := NewForConfig(c) + if err != nil { + panic(err) + } + return client +} + +// New creates a new AppsV1beta1Client for the given RESTClient. +func New(c rest.Interface) *AppsV1beta1Client { + return &AppsV1beta1Client{c} +} + +func setConfigDefaults(config *rest.Config) error { + gv, err := unversioned.ParseGroupVersion("apps/v1beta1") + if err != nil { + return err + } + // if apps/v1beta1 is not enabled, return an error + if !registered.IsEnabledVersion(gv) { + return fmt.Errorf("apps/v1beta1 is not enabled") + } + config.APIPath = "/apis" + if config.UserAgent == "" { + config.UserAgent = rest.DefaultKubernetesUserAgent() + } + copyGroupVersion := gv + config.GroupVersion = ©GroupVersion + + config.NegotiatedSerializer = serializer.DirectCodecFactory{CodecFactory: api.Codecs} + + return nil +} + +// RESTClient returns a RESTClient that is used to communicate +// with API server by this client implementation. +func (c *AppsV1beta1Client) RESTClient() rest.Interface { + if c == nil { + return nil + } + return c.restClient +} diff --git a/vendor/k8s.io/client-go/1.5/kubernetes/typed/authorization/v1beta1/doc.go b/vendor/k8s.io/client-go/kubernetes/typed/apps/v1beta1/doc.go similarity index 71% rename from vendor/k8s.io/client-go/1.5/kubernetes/typed/authorization/v1beta1/doc.go rename to vendor/k8s.io/client-go/kubernetes/typed/apps/v1beta1/doc.go index 5616c95d3..f96bb0e2a 100644 --- a/vendor/k8s.io/client-go/1.5/kubernetes/typed/authorization/v1beta1/doc.go +++ b/vendor/k8s.io/client-go/kubernetes/typed/apps/v1beta1/doc.go @@ -1,5 +1,5 @@ /* -Copyright 2016 The Kubernetes Authors. +Copyright 2017 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -14,7 +14,7 @@ See the License for the specific language governing permissions and limitations under the License. */ -// This package is generated by client-gen with arguments: --clientset-name=release_1_5 --input=[api/v1,apps/v1alpha1,authentication/v1beta1,authorization/v1beta1,autoscaling/v1,batch/v1,certificates/v1alpha1,extensions/v1beta1,policy/v1alpha1,rbac/v1alpha1,storage/v1beta1] +// This package is generated by client-gen with arguments: --clientset-name=release_1_5 --input=[api/v1,apps/v1beta1,authentication/v1beta1,authorization/v1beta1,autoscaling/v1,batch/v1,batch/v2alpha1,certificates/v1alpha1,extensions/v1beta1,policy/v1beta1,rbac/v1alpha1,storage/v1beta1] // This package has the automatically generated typed clients. package v1beta1 diff --git a/vendor/k8s.io/client-go/1.5/kubernetes/typed/authentication/v1beta1/generated_expansion.go b/vendor/k8s.io/client-go/kubernetes/typed/apps/v1beta1/generated_expansion.go similarity index 87% rename from vendor/k8s.io/client-go/1.5/kubernetes/typed/authentication/v1beta1/generated_expansion.go rename to vendor/k8s.io/client-go/kubernetes/typed/apps/v1beta1/generated_expansion.go index f30710029..895fdf554 100644 --- a/vendor/k8s.io/client-go/1.5/kubernetes/typed/authentication/v1beta1/generated_expansion.go +++ b/vendor/k8s.io/client-go/kubernetes/typed/apps/v1beta1/generated_expansion.go @@ -1,5 +1,5 @@ /* -Copyright 2016 The Kubernetes Authors. +Copyright 2017 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -16,4 +16,4 @@ limitations under the License. package v1beta1 -type TokenReviewExpansion interface{} +type StatefulSetExpansion interface{} diff --git a/vendor/k8s.io/client-go/kubernetes/typed/apps/v1beta1/statefulset.go b/vendor/k8s.io/client-go/kubernetes/typed/apps/v1beta1/statefulset.go new file mode 100644 index 000000000..aeebd089e --- /dev/null +++ b/vendor/k8s.io/client-go/kubernetes/typed/apps/v1beta1/statefulset.go @@ -0,0 +1,167 @@ +/* +Copyright 2017 The Kubernetes Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + +package v1beta1 + +import ( + api "k8s.io/client-go/pkg/api" + v1 "k8s.io/client-go/pkg/api/v1" + v1beta1 "k8s.io/client-go/pkg/apis/apps/v1beta1" + watch "k8s.io/client-go/pkg/watch" + rest "k8s.io/client-go/rest" +) + +// StatefulSetsGetter has a method to return a StatefulSetInterface. +// A group's client should implement this interface. +type StatefulSetsGetter interface { + StatefulSets(namespace string) StatefulSetInterface +} + +// StatefulSetInterface has methods to work with StatefulSet resources. +type StatefulSetInterface interface { + Create(*v1beta1.StatefulSet) (*v1beta1.StatefulSet, error) + Update(*v1beta1.StatefulSet) (*v1beta1.StatefulSet, error) + UpdateStatus(*v1beta1.StatefulSet) (*v1beta1.StatefulSet, error) + Delete(name string, options *v1.DeleteOptions) error + DeleteCollection(options *v1.DeleteOptions, listOptions v1.ListOptions) error + Get(name string) (*v1beta1.StatefulSet, error) + List(opts v1.ListOptions) (*v1beta1.StatefulSetList, error) + Watch(opts v1.ListOptions) (watch.Interface, error) + Patch(name string, pt api.PatchType, data []byte, subresources ...string) (result *v1beta1.StatefulSet, err error) + StatefulSetExpansion +} + +// statefulSets implements StatefulSetInterface +type statefulSets struct { + client rest.Interface + ns string +} + +// newStatefulSets returns a StatefulSets +func newStatefulSets(c *AppsV1beta1Client, namespace string) *statefulSets { + return &statefulSets{ + client: c.RESTClient(), + ns: namespace, + } +} + +// Create takes the representation of a statefulSet and creates it. Returns the server's representation of the statefulSet, and an error, if there is any. +func (c *statefulSets) Create(statefulSet *v1beta1.StatefulSet) (result *v1beta1.StatefulSet, err error) { + result = &v1beta1.StatefulSet{} + err = c.client.Post(). + Namespace(c.ns). + Resource("statefulsets"). + Body(statefulSet). + Do(). + Into(result) + return +} + +// Update takes the representation of a statefulSet and updates it. Returns the server's representation of the statefulSet, and an error, if there is any. +func (c *statefulSets) Update(statefulSet *v1beta1.StatefulSet) (result *v1beta1.StatefulSet, err error) { + result = &v1beta1.StatefulSet{} + err = c.client.Put(). + Namespace(c.ns). + Resource("statefulsets"). + Name(statefulSet.Name). + Body(statefulSet). + Do(). + Into(result) + return +} + +func (c *statefulSets) UpdateStatus(statefulSet *v1beta1.StatefulSet) (result *v1beta1.StatefulSet, err error) { + result = &v1beta1.StatefulSet{} + err = c.client.Put(). + Namespace(c.ns). + Resource("statefulsets"). + Name(statefulSet.Name). + SubResource("status"). + Body(statefulSet). + Do(). + Into(result) + return +} + +// Delete takes name of the statefulSet and deletes it. Returns an error if one occurs. +func (c *statefulSets) Delete(name string, options *v1.DeleteOptions) error { + return c.client.Delete(). + Namespace(c.ns). + Resource("statefulsets"). + Name(name). + Body(options). + Do(). + Error() +} + +// DeleteCollection deletes a collection of objects. +func (c *statefulSets) DeleteCollection(options *v1.DeleteOptions, listOptions v1.ListOptions) error { + return c.client.Delete(). + Namespace(c.ns). + Resource("statefulsets"). + VersionedParams(&listOptions, api.ParameterCodec). + Body(options). + Do(). + Error() +} + +// Get takes name of the statefulSet, and returns the corresponding statefulSet object, and an error if there is any. +func (c *statefulSets) Get(name string) (result *v1beta1.StatefulSet, err error) { + result = &v1beta1.StatefulSet{} + err = c.client.Get(). + Namespace(c.ns). + Resource("statefulsets"). + Name(name). + Do(). + Into(result) + return +} + +// List takes label and field selectors, and returns the list of StatefulSets that match those selectors. +func (c *statefulSets) List(opts v1.ListOptions) (result *v1beta1.StatefulSetList, err error) { + result = &v1beta1.StatefulSetList{} + err = c.client.Get(). + Namespace(c.ns). + Resource("statefulsets"). + VersionedParams(&opts, api.ParameterCodec). + Do(). + Into(result) + return +} + +// Watch returns a watch.Interface that watches the requested statefulSets. +func (c *statefulSets) Watch(opts v1.ListOptions) (watch.Interface, error) { + return c.client.Get(). + Prefix("watch"). + Namespace(c.ns). + Resource("statefulsets"). + VersionedParams(&opts, api.ParameterCodec). + Watch() +} + +// Patch applies the patch and returns the patched statefulSet. +func (c *statefulSets) Patch(name string, pt api.PatchType, data []byte, subresources ...string) (result *v1beta1.StatefulSet, err error) { + result = &v1beta1.StatefulSet{} + err = c.client.Patch(pt). + Namespace(c.ns). + Resource("statefulsets"). + SubResource(subresources...). + Name(name). + Body(data). + Do(). + Into(result) + return +} diff --git a/vendor/k8s.io/client-go/kubernetes/typed/authentication/v1beta1/authentication_client.go b/vendor/k8s.io/client-go/kubernetes/typed/authentication/v1beta1/authentication_client.go new file mode 100644 index 000000000..a1f3bd2d3 --- /dev/null +++ b/vendor/k8s.io/client-go/kubernetes/typed/authentication/v1beta1/authentication_client.go @@ -0,0 +1,98 @@ +/* +Copyright 2017 The Kubernetes Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + +package v1beta1 + +import ( + fmt "fmt" + api "k8s.io/client-go/pkg/api" + unversioned "k8s.io/client-go/pkg/api/unversioned" + registered "k8s.io/client-go/pkg/apimachinery/registered" + serializer "k8s.io/client-go/pkg/runtime/serializer" + rest "k8s.io/client-go/rest" +) + +type AuthenticationV1beta1Interface interface { + RESTClient() rest.Interface + TokenReviewsGetter +} + +// AuthenticationV1beta1Client is used to interact with features provided by the k8s.io/kubernetes/pkg/apimachinery/registered.Group group. +type AuthenticationV1beta1Client struct { + restClient rest.Interface +} + +func (c *AuthenticationV1beta1Client) TokenReviews() TokenReviewInterface { + return newTokenReviews(c) +} + +// NewForConfig creates a new AuthenticationV1beta1Client for the given config. +func NewForConfig(c *rest.Config) (*AuthenticationV1beta1Client, error) { + config := *c + if err := setConfigDefaults(&config); err != nil { + return nil, err + } + client, err := rest.RESTClientFor(&config) + if err != nil { + return nil, err + } + return &AuthenticationV1beta1Client{client}, nil +} + +// NewForConfigOrDie creates a new AuthenticationV1beta1Client for the given config and +// panics if there is an error in the config. +func NewForConfigOrDie(c *rest.Config) *AuthenticationV1beta1Client { + client, err := NewForConfig(c) + if err != nil { + panic(err) + } + return client +} + +// New creates a new AuthenticationV1beta1Client for the given RESTClient. +func New(c rest.Interface) *AuthenticationV1beta1Client { + return &AuthenticationV1beta1Client{c} +} + +func setConfigDefaults(config *rest.Config) error { + gv, err := unversioned.ParseGroupVersion("authentication.k8s.io/v1beta1") + if err != nil { + return err + } + // if authentication.k8s.io/v1beta1 is not enabled, return an error + if !registered.IsEnabledVersion(gv) { + return fmt.Errorf("authentication.k8s.io/v1beta1 is not enabled") + } + config.APIPath = "/apis" + if config.UserAgent == "" { + config.UserAgent = rest.DefaultKubernetesUserAgent() + } + copyGroupVersion := gv + config.GroupVersion = ©GroupVersion + + config.NegotiatedSerializer = serializer.DirectCodecFactory{CodecFactory: api.Codecs} + + return nil +} + +// RESTClient returns a RESTClient that is used to communicate +// with API server by this client implementation. +func (c *AuthenticationV1beta1Client) RESTClient() rest.Interface { + if c == nil { + return nil + } + return c.restClient +} diff --git a/vendor/k8s.io/client-go/1.5/kubernetes/typed/extensions/v1beta1/doc.go b/vendor/k8s.io/client-go/kubernetes/typed/authentication/v1beta1/doc.go similarity index 71% rename from vendor/k8s.io/client-go/1.5/kubernetes/typed/extensions/v1beta1/doc.go rename to vendor/k8s.io/client-go/kubernetes/typed/authentication/v1beta1/doc.go index 5616c95d3..f96bb0e2a 100644 --- a/vendor/k8s.io/client-go/1.5/kubernetes/typed/extensions/v1beta1/doc.go +++ b/vendor/k8s.io/client-go/kubernetes/typed/authentication/v1beta1/doc.go @@ -1,5 +1,5 @@ /* -Copyright 2016 The Kubernetes Authors. +Copyright 2017 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -14,7 +14,7 @@ See the License for the specific language governing permissions and limitations under the License. */ -// This package is generated by client-gen with arguments: --clientset-name=release_1_5 --input=[api/v1,apps/v1alpha1,authentication/v1beta1,authorization/v1beta1,autoscaling/v1,batch/v1,certificates/v1alpha1,extensions/v1beta1,policy/v1alpha1,rbac/v1alpha1,storage/v1beta1] +// This package is generated by client-gen with arguments: --clientset-name=release_1_5 --input=[api/v1,apps/v1beta1,authentication/v1beta1,authorization/v1beta1,autoscaling/v1,batch/v1,batch/v2alpha1,certificates/v1alpha1,extensions/v1beta1,policy/v1beta1,rbac/v1alpha1,storage/v1beta1] // This package has the automatically generated typed clients. package v1beta1 diff --git a/vendor/k8s.io/client-go/kubernetes/typed/authentication/v1beta1/generated_expansion.go b/vendor/k8s.io/client-go/kubernetes/typed/authentication/v1beta1/generated_expansion.go new file mode 100644 index 000000000..2b7e8ca0b --- /dev/null +++ b/vendor/k8s.io/client-go/kubernetes/typed/authentication/v1beta1/generated_expansion.go @@ -0,0 +1,17 @@ +/* +Copyright 2017 The Kubernetes Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES 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 diff --git a/vendor/k8s.io/client-go/1.5/kubernetes/typed/authentication/v1beta1/tokenreview.go b/vendor/k8s.io/client-go/kubernetes/typed/authentication/v1beta1/tokenreview.go similarity index 83% rename from vendor/k8s.io/client-go/1.5/kubernetes/typed/authentication/v1beta1/tokenreview.go rename to vendor/k8s.io/client-go/kubernetes/typed/authentication/v1beta1/tokenreview.go index dc9313bae..7f9f1e9fa 100644 --- a/vendor/k8s.io/client-go/1.5/kubernetes/typed/authentication/v1beta1/tokenreview.go +++ b/vendor/k8s.io/client-go/kubernetes/typed/authentication/v1beta1/tokenreview.go @@ -1,5 +1,5 @@ /* -Copyright 2016 The Kubernetes Authors. +Copyright 2017 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -16,6 +16,10 @@ limitations under the License. package v1beta1 +import ( + rest "k8s.io/client-go/rest" +) + // TokenReviewsGetter has a method to return a TokenReviewInterface. // A group's client should implement this interface. type TokenReviewsGetter interface { @@ -29,12 +33,12 @@ type TokenReviewInterface interface { // tokenReviews implements TokenReviewInterface type tokenReviews struct { - client *AuthenticationClient + client rest.Interface } // newTokenReviews returns a TokenReviews -func newTokenReviews(c *AuthenticationClient) *tokenReviews { +func newTokenReviews(c *AuthenticationV1beta1Client) *tokenReviews { return &tokenReviews{ - client: c, + client: c.RESTClient(), } } diff --git a/vendor/k8s.io/client-go/1.5/kubernetes/typed/authorization/v1beta1/generated_expansion.go b/vendor/k8s.io/client-go/kubernetes/typed/authentication/v1beta1/tokenreview_expansion.go similarity index 54% rename from vendor/k8s.io/client-go/1.5/kubernetes/typed/authorization/v1beta1/generated_expansion.go rename to vendor/k8s.io/client-go/kubernetes/typed/authentication/v1beta1/tokenreview_expansion.go index 0e5d86e3a..375b6f637 100644 --- a/vendor/k8s.io/client-go/1.5/kubernetes/typed/authorization/v1beta1/generated_expansion.go +++ b/vendor/k8s.io/client-go/kubernetes/typed/authentication/v1beta1/tokenreview_expansion.go @@ -16,6 +16,20 @@ limitations under the License. package v1beta1 -type LocalSubjectAccessReviewExpansion interface{} +import ( + authenticationapi "k8s.io/client-go/pkg/apis/authentication/v1beta1" +) -type SelfSubjectAccessReviewExpansion interface{} +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/vendor/k8s.io/client-go/kubernetes/typed/authorization/v1beta1/authorization_client.go b/vendor/k8s.io/client-go/kubernetes/typed/authorization/v1beta1/authorization_client.go new file mode 100644 index 000000000..22b74dc8d --- /dev/null +++ b/vendor/k8s.io/client-go/kubernetes/typed/authorization/v1beta1/authorization_client.go @@ -0,0 +1,108 @@ +/* +Copyright 2017 The Kubernetes Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + +package v1beta1 + +import ( + fmt "fmt" + api "k8s.io/client-go/pkg/api" + unversioned "k8s.io/client-go/pkg/api/unversioned" + registered "k8s.io/client-go/pkg/apimachinery/registered" + serializer "k8s.io/client-go/pkg/runtime/serializer" + rest "k8s.io/client-go/rest" +) + +type AuthorizationV1beta1Interface interface { + RESTClient() rest.Interface + LocalSubjectAccessReviewsGetter + SelfSubjectAccessReviewsGetter + SubjectAccessReviewsGetter +} + +// AuthorizationV1beta1Client is used to interact with features provided by the k8s.io/kubernetes/pkg/apimachinery/registered.Group group. +type AuthorizationV1beta1Client struct { + restClient rest.Interface +} + +func (c *AuthorizationV1beta1Client) LocalSubjectAccessReviews(namespace string) LocalSubjectAccessReviewInterface { + return newLocalSubjectAccessReviews(c, namespace) +} + +func (c *AuthorizationV1beta1Client) SelfSubjectAccessReviews() SelfSubjectAccessReviewInterface { + return newSelfSubjectAccessReviews(c) +} + +func (c *AuthorizationV1beta1Client) SubjectAccessReviews() SubjectAccessReviewInterface { + return newSubjectAccessReviews(c) +} + +// NewForConfig creates a new AuthorizationV1beta1Client for the given config. +func NewForConfig(c *rest.Config) (*AuthorizationV1beta1Client, error) { + config := *c + if err := setConfigDefaults(&config); err != nil { + return nil, err + } + client, err := rest.RESTClientFor(&config) + if err != nil { + return nil, err + } + return &AuthorizationV1beta1Client{client}, nil +} + +// NewForConfigOrDie creates a new AuthorizationV1beta1Client for the given config and +// panics if there is an error in the config. +func NewForConfigOrDie(c *rest.Config) *AuthorizationV1beta1Client { + client, err := NewForConfig(c) + if err != nil { + panic(err) + } + return client +} + +// New creates a new AuthorizationV1beta1Client for the given RESTClient. +func New(c rest.Interface) *AuthorizationV1beta1Client { + return &AuthorizationV1beta1Client{c} +} + +func setConfigDefaults(config *rest.Config) error { + gv, err := unversioned.ParseGroupVersion("authorization.k8s.io/v1beta1") + if err != nil { + return err + } + // if authorization.k8s.io/v1beta1 is not enabled, return an error + if !registered.IsEnabledVersion(gv) { + return fmt.Errorf("authorization.k8s.io/v1beta1 is not enabled") + } + config.APIPath = "/apis" + if config.UserAgent == "" { + config.UserAgent = rest.DefaultKubernetesUserAgent() + } + copyGroupVersion := gv + config.GroupVersion = ©GroupVersion + + config.NegotiatedSerializer = serializer.DirectCodecFactory{CodecFactory: api.Codecs} + + return nil +} + +// RESTClient returns a RESTClient that is used to communicate +// with API server by this client implementation. +func (c *AuthorizationV1beta1Client) RESTClient() rest.Interface { + if c == nil { + return nil + } + return c.restClient +} diff --git a/vendor/k8s.io/client-go/1.5/kubernetes/typed/authentication/v1beta1/doc.go b/vendor/k8s.io/client-go/kubernetes/typed/authorization/v1beta1/doc.go similarity index 71% rename from vendor/k8s.io/client-go/1.5/kubernetes/typed/authentication/v1beta1/doc.go rename to vendor/k8s.io/client-go/kubernetes/typed/authorization/v1beta1/doc.go index 5616c95d3..f96bb0e2a 100644 --- a/vendor/k8s.io/client-go/1.5/kubernetes/typed/authentication/v1beta1/doc.go +++ b/vendor/k8s.io/client-go/kubernetes/typed/authorization/v1beta1/doc.go @@ -1,5 +1,5 @@ /* -Copyright 2016 The Kubernetes Authors. +Copyright 2017 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -14,7 +14,7 @@ See the License for the specific language governing permissions and limitations under the License. */ -// This package is generated by client-gen with arguments: --clientset-name=release_1_5 --input=[api/v1,apps/v1alpha1,authentication/v1beta1,authorization/v1beta1,autoscaling/v1,batch/v1,certificates/v1alpha1,extensions/v1beta1,policy/v1alpha1,rbac/v1alpha1,storage/v1beta1] +// This package is generated by client-gen with arguments: --clientset-name=release_1_5 --input=[api/v1,apps/v1beta1,authentication/v1beta1,authorization/v1beta1,autoscaling/v1,batch/v1,batch/v2alpha1,certificates/v1alpha1,extensions/v1beta1,policy/v1beta1,rbac/v1alpha1,storage/v1beta1] // This package has the automatically generated typed clients. package v1beta1 diff --git a/vendor/k8s.io/client-go/kubernetes/typed/authorization/v1beta1/generated_expansion.go b/vendor/k8s.io/client-go/kubernetes/typed/authorization/v1beta1/generated_expansion.go new file mode 100644 index 000000000..2b7e8ca0b --- /dev/null +++ b/vendor/k8s.io/client-go/kubernetes/typed/authorization/v1beta1/generated_expansion.go @@ -0,0 +1,17 @@ +/* +Copyright 2017 The Kubernetes Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES 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 diff --git a/vendor/k8s.io/client-go/1.5/kubernetes/typed/authorization/v1beta1/localsubjectaccessreview.go b/vendor/k8s.io/client-go/kubernetes/typed/authorization/v1beta1/localsubjectaccessreview.go similarity index 84% rename from vendor/k8s.io/client-go/1.5/kubernetes/typed/authorization/v1beta1/localsubjectaccessreview.go rename to vendor/k8s.io/client-go/kubernetes/typed/authorization/v1beta1/localsubjectaccessreview.go index c605b8d04..9b8e10341 100644 --- a/vendor/k8s.io/client-go/1.5/kubernetes/typed/authorization/v1beta1/localsubjectaccessreview.go +++ b/vendor/k8s.io/client-go/kubernetes/typed/authorization/v1beta1/localsubjectaccessreview.go @@ -1,5 +1,5 @@ /* -Copyright 2016 The Kubernetes Authors. +Copyright 2017 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -16,6 +16,10 @@ limitations under the License. package v1beta1 +import ( + rest "k8s.io/client-go/rest" +) + // LocalSubjectAccessReviewsGetter has a method to return a LocalSubjectAccessReviewInterface. // A group's client should implement this interface. type LocalSubjectAccessReviewsGetter interface { @@ -29,14 +33,14 @@ type LocalSubjectAccessReviewInterface interface { // localSubjectAccessReviews implements LocalSubjectAccessReviewInterface type localSubjectAccessReviews struct { - client *AuthorizationClient + client rest.Interface ns string } // newLocalSubjectAccessReviews returns a LocalSubjectAccessReviews -func newLocalSubjectAccessReviews(c *AuthorizationClient, namespace string) *localSubjectAccessReviews { +func newLocalSubjectAccessReviews(c *AuthorizationV1beta1Client, namespace string) *localSubjectAccessReviews { return &localSubjectAccessReviews{ - client: c, + client: c.RESTClient(), ns: namespace, } } diff --git a/vendor/k8s.io/client-go/kubernetes/typed/authorization/v1beta1/localsubjectaccessreview_expansion.go b/vendor/k8s.io/client-go/kubernetes/typed/authorization/v1beta1/localsubjectaccessreview_expansion.go new file mode 100644 index 000000000..d2ce4f0d7 --- /dev/null +++ b/vendor/k8s.io/client-go/kubernetes/typed/authorization/v1beta1/localsubjectaccessreview_expansion.go @@ -0,0 +1,36 @@ +/* +Copyright 2016 The Kubernetes Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + +package v1beta1 + +import ( + authorizationapi "k8s.io/client-go/pkg/apis/authorization/v1beta1" +) + +type LocalSubjectAccessReviewExpansion interface { + Create(sar *authorizationapi.LocalSubjectAccessReview) (result *authorizationapi.LocalSubjectAccessReview, err error) +} + +func (c *localSubjectAccessReviews) Create(sar *authorizationapi.LocalSubjectAccessReview) (result *authorizationapi.LocalSubjectAccessReview, err error) { + result = &authorizationapi.LocalSubjectAccessReview{} + err = c.client.Post(). + Namespace(c.ns). + Resource("localsubjectaccessreviews"). + Body(sar). + Do(). + Into(result) + return +} diff --git a/vendor/k8s.io/client-go/1.5/kubernetes/typed/authorization/v1beta1/selfsubjectaccessreview.go b/vendor/k8s.io/client-go/kubernetes/typed/authorization/v1beta1/selfsubjectaccessreview.go similarity index 84% rename from vendor/k8s.io/client-go/1.5/kubernetes/typed/authorization/v1beta1/selfsubjectaccessreview.go rename to vendor/k8s.io/client-go/kubernetes/typed/authorization/v1beta1/selfsubjectaccessreview.go index 7e0fd5fc2..1ef3e49af 100644 --- a/vendor/k8s.io/client-go/1.5/kubernetes/typed/authorization/v1beta1/selfsubjectaccessreview.go +++ b/vendor/k8s.io/client-go/kubernetes/typed/authorization/v1beta1/selfsubjectaccessreview.go @@ -1,5 +1,5 @@ /* -Copyright 2016 The Kubernetes Authors. +Copyright 2017 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -16,6 +16,10 @@ limitations under the License. package v1beta1 +import ( + rest "k8s.io/client-go/rest" +) + // SelfSubjectAccessReviewsGetter has a method to return a SelfSubjectAccessReviewInterface. // A group's client should implement this interface. type SelfSubjectAccessReviewsGetter interface { @@ -29,12 +33,12 @@ type SelfSubjectAccessReviewInterface interface { // selfSubjectAccessReviews implements SelfSubjectAccessReviewInterface type selfSubjectAccessReviews struct { - client *AuthorizationClient + client rest.Interface } // newSelfSubjectAccessReviews returns a SelfSubjectAccessReviews -func newSelfSubjectAccessReviews(c *AuthorizationClient) *selfSubjectAccessReviews { +func newSelfSubjectAccessReviews(c *AuthorizationV1beta1Client) *selfSubjectAccessReviews { return &selfSubjectAccessReviews{ - client: c, + client: c.RESTClient(), } } diff --git a/vendor/k8s.io/client-go/kubernetes/typed/authorization/v1beta1/selfsubjectaccessreview_expansion.go b/vendor/k8s.io/client-go/kubernetes/typed/authorization/v1beta1/selfsubjectaccessreview_expansion.go new file mode 100644 index 000000000..d341eb14a --- /dev/null +++ b/vendor/k8s.io/client-go/kubernetes/typed/authorization/v1beta1/selfsubjectaccessreview_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 v1beta1 + +import ( + authorizationapi "k8s.io/client-go/pkg/apis/authorization/v1beta1" +) + +type SelfSubjectAccessReviewExpansion interface { + Create(sar *authorizationapi.SelfSubjectAccessReview) (result *authorizationapi.SelfSubjectAccessReview, err error) +} + +func (c *selfSubjectAccessReviews) Create(sar *authorizationapi.SelfSubjectAccessReview) (result *authorizationapi.SelfSubjectAccessReview, err error) { + result = &authorizationapi.SelfSubjectAccessReview{} + err = c.client.Post(). + Resource("selfsubjectaccessreviews"). + Body(sar). + Do(). + Into(result) + return +} diff --git a/vendor/k8s.io/client-go/1.5/kubernetes/typed/authorization/v1beta1/subjectaccessreview.go b/vendor/k8s.io/client-go/kubernetes/typed/authorization/v1beta1/subjectaccessreview.go similarity index 84% rename from vendor/k8s.io/client-go/1.5/kubernetes/typed/authorization/v1beta1/subjectaccessreview.go rename to vendor/k8s.io/client-go/kubernetes/typed/authorization/v1beta1/subjectaccessreview.go index 1c9367218..cd60e9df6 100644 --- a/vendor/k8s.io/client-go/1.5/kubernetes/typed/authorization/v1beta1/subjectaccessreview.go +++ b/vendor/k8s.io/client-go/kubernetes/typed/authorization/v1beta1/subjectaccessreview.go @@ -1,5 +1,5 @@ /* -Copyright 2016 The Kubernetes Authors. +Copyright 2017 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -16,6 +16,10 @@ limitations under the License. package v1beta1 +import ( + rest "k8s.io/client-go/rest" +) + // SubjectAccessReviewsGetter has a method to return a SubjectAccessReviewInterface. // A group's client should implement this interface. type SubjectAccessReviewsGetter interface { @@ -29,12 +33,12 @@ type SubjectAccessReviewInterface interface { // subjectAccessReviews implements SubjectAccessReviewInterface type subjectAccessReviews struct { - client *AuthorizationClient + client rest.Interface } // newSubjectAccessReviews returns a SubjectAccessReviews -func newSubjectAccessReviews(c *AuthorizationClient) *subjectAccessReviews { +func newSubjectAccessReviews(c *AuthorizationV1beta1Client) *subjectAccessReviews { return &subjectAccessReviews{ - client: c, + client: c.RESTClient(), } } diff --git a/vendor/k8s.io/client-go/1.5/kubernetes/typed/authorization/v1beta1/subjectaccessreview_expansion.go b/vendor/k8s.io/client-go/kubernetes/typed/authorization/v1beta1/subjectaccessreview_expansion.go similarity index 94% rename from vendor/k8s.io/client-go/1.5/kubernetes/typed/authorization/v1beta1/subjectaccessreview_expansion.go rename to vendor/k8s.io/client-go/kubernetes/typed/authorization/v1beta1/subjectaccessreview_expansion.go index 788ac3db3..8d03b0811 100644 --- a/vendor/k8s.io/client-go/1.5/kubernetes/typed/authorization/v1beta1/subjectaccessreview_expansion.go +++ b/vendor/k8s.io/client-go/kubernetes/typed/authorization/v1beta1/subjectaccessreview_expansion.go @@ -17,7 +17,7 @@ limitations under the License. package v1beta1 import ( - authorizationapi "k8s.io/client-go/1.5/pkg/apis/authorization/v1beta1" + authorizationapi "k8s.io/client-go/pkg/apis/authorization/v1beta1" ) // The SubjectAccessReviewExpansion interface allows manually adding extra methods to the AuthorizationInterface. diff --git a/vendor/k8s.io/client-go/kubernetes/typed/autoscaling/v1/autoscaling_client.go b/vendor/k8s.io/client-go/kubernetes/typed/autoscaling/v1/autoscaling_client.go new file mode 100644 index 000000000..b521b6957 --- /dev/null +++ b/vendor/k8s.io/client-go/kubernetes/typed/autoscaling/v1/autoscaling_client.go @@ -0,0 +1,98 @@ +/* +Copyright 2017 The Kubernetes Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + +package v1 + +import ( + fmt "fmt" + api "k8s.io/client-go/pkg/api" + unversioned "k8s.io/client-go/pkg/api/unversioned" + registered "k8s.io/client-go/pkg/apimachinery/registered" + serializer "k8s.io/client-go/pkg/runtime/serializer" + rest "k8s.io/client-go/rest" +) + +type AutoscalingV1Interface interface { + RESTClient() rest.Interface + HorizontalPodAutoscalersGetter +} + +// AutoscalingV1Client is used to interact with features provided by the k8s.io/kubernetes/pkg/apimachinery/registered.Group group. +type AutoscalingV1Client struct { + restClient rest.Interface +} + +func (c *AutoscalingV1Client) HorizontalPodAutoscalers(namespace string) HorizontalPodAutoscalerInterface { + return newHorizontalPodAutoscalers(c, namespace) +} + +// NewForConfig creates a new AutoscalingV1Client for the given config. +func NewForConfig(c *rest.Config) (*AutoscalingV1Client, error) { + config := *c + if err := setConfigDefaults(&config); err != nil { + return nil, err + } + client, err := rest.RESTClientFor(&config) + if err != nil { + return nil, err + } + return &AutoscalingV1Client{client}, nil +} + +// NewForConfigOrDie creates a new AutoscalingV1Client for the given config and +// panics if there is an error in the config. +func NewForConfigOrDie(c *rest.Config) *AutoscalingV1Client { + client, err := NewForConfig(c) + if err != nil { + panic(err) + } + return client +} + +// New creates a new AutoscalingV1Client for the given RESTClient. +func New(c rest.Interface) *AutoscalingV1Client { + return &AutoscalingV1Client{c} +} + +func setConfigDefaults(config *rest.Config) error { + gv, err := unversioned.ParseGroupVersion("autoscaling/v1") + if err != nil { + return err + } + // if autoscaling/v1 is not enabled, return an error + if !registered.IsEnabledVersion(gv) { + return fmt.Errorf("autoscaling/v1 is not enabled") + } + config.APIPath = "/apis" + if config.UserAgent == "" { + config.UserAgent = rest.DefaultKubernetesUserAgent() + } + copyGroupVersion := gv + config.GroupVersion = ©GroupVersion + + config.NegotiatedSerializer = serializer.DirectCodecFactory{CodecFactory: api.Codecs} + + return nil +} + +// RESTClient returns a RESTClient that is used to communicate +// with API server by this client implementation. +func (c *AutoscalingV1Client) RESTClient() rest.Interface { + if c == nil { + return nil + } + return c.restClient +} diff --git a/vendor/k8s.io/client-go/1.5/kubernetes/typed/batch/v1/doc.go b/vendor/k8s.io/client-go/kubernetes/typed/autoscaling/v1/doc.go similarity index 71% rename from vendor/k8s.io/client-go/1.5/kubernetes/typed/batch/v1/doc.go rename to vendor/k8s.io/client-go/kubernetes/typed/autoscaling/v1/doc.go index fe27cf5c1..4971b7ec0 100644 --- a/vendor/k8s.io/client-go/1.5/kubernetes/typed/batch/v1/doc.go +++ b/vendor/k8s.io/client-go/kubernetes/typed/autoscaling/v1/doc.go @@ -1,5 +1,5 @@ /* -Copyright 2016 The Kubernetes Authors. +Copyright 2017 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -14,7 +14,7 @@ See the License for the specific language governing permissions and limitations under the License. */ -// This package is generated by client-gen with arguments: --clientset-name=release_1_5 --input=[api/v1,apps/v1alpha1,authentication/v1beta1,authorization/v1beta1,autoscaling/v1,batch/v1,certificates/v1alpha1,extensions/v1beta1,policy/v1alpha1,rbac/v1alpha1,storage/v1beta1] +// This package is generated by client-gen with arguments: --clientset-name=release_1_5 --input=[api/v1,apps/v1beta1,authentication/v1beta1,authorization/v1beta1,autoscaling/v1,batch/v1,batch/v2alpha1,certificates/v1alpha1,extensions/v1beta1,policy/v1beta1,rbac/v1alpha1,storage/v1beta1] // This package has the automatically generated typed clients. package v1 diff --git a/vendor/k8s.io/client-go/1.5/kubernetes/typed/autoscaling/v1/generated_expansion.go b/vendor/k8s.io/client-go/kubernetes/typed/autoscaling/v1/generated_expansion.go similarity index 93% rename from vendor/k8s.io/client-go/1.5/kubernetes/typed/autoscaling/v1/generated_expansion.go rename to vendor/k8s.io/client-go/kubernetes/typed/autoscaling/v1/generated_expansion.go index 3e37a64ef..effefbd50 100644 --- a/vendor/k8s.io/client-go/1.5/kubernetes/typed/autoscaling/v1/generated_expansion.go +++ b/vendor/k8s.io/client-go/kubernetes/typed/autoscaling/v1/generated_expansion.go @@ -1,5 +1,5 @@ /* -Copyright 2016 The Kubernetes Authors. +Copyright 2017 The Kubernetes Authors. 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/vendor/k8s.io/client-go/1.5/kubernetes/typed/autoscaling/v1/horizontalpodautoscaler.go b/vendor/k8s.io/client-go/kubernetes/typed/autoscaling/v1/horizontalpodautoscaler.go similarity index 84% rename from vendor/k8s.io/client-go/1.5/kubernetes/typed/autoscaling/v1/horizontalpodautoscaler.go rename to vendor/k8s.io/client-go/kubernetes/typed/autoscaling/v1/horizontalpodautoscaler.go index b28317919..0cd16fdf4 100644 --- a/vendor/k8s.io/client-go/1.5/kubernetes/typed/autoscaling/v1/horizontalpodautoscaler.go +++ b/vendor/k8s.io/client-go/kubernetes/typed/autoscaling/v1/horizontalpodautoscaler.go @@ -1,5 +1,5 @@ /* -Copyright 2016 The Kubernetes Authors. +Copyright 2017 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -17,9 +17,11 @@ limitations under the License. package v1 import ( - api "k8s.io/client-go/1.5/pkg/api" - v1 "k8s.io/client-go/1.5/pkg/apis/autoscaling/v1" - watch "k8s.io/client-go/1.5/pkg/watch" + api "k8s.io/client-go/pkg/api" + api_v1 "k8s.io/client-go/pkg/api/v1" + v1 "k8s.io/client-go/pkg/apis/autoscaling/v1" + watch "k8s.io/client-go/pkg/watch" + rest "k8s.io/client-go/rest" ) // HorizontalPodAutoscalersGetter has a method to return a HorizontalPodAutoscalerInterface. @@ -33,25 +35,25 @@ type HorizontalPodAutoscalerInterface interface { Create(*v1.HorizontalPodAutoscaler) (*v1.HorizontalPodAutoscaler, error) Update(*v1.HorizontalPodAutoscaler) (*v1.HorizontalPodAutoscaler, error) UpdateStatus(*v1.HorizontalPodAutoscaler) (*v1.HorizontalPodAutoscaler, error) - Delete(name string, options *api.DeleteOptions) error - DeleteCollection(options *api.DeleteOptions, listOptions api.ListOptions) error + Delete(name string, options *api_v1.DeleteOptions) error + DeleteCollection(options *api_v1.DeleteOptions, listOptions api_v1.ListOptions) error Get(name string) (*v1.HorizontalPodAutoscaler, error) - List(opts api.ListOptions) (*v1.HorizontalPodAutoscalerList, error) - Watch(opts api.ListOptions) (watch.Interface, error) + List(opts api_v1.ListOptions) (*v1.HorizontalPodAutoscalerList, error) + Watch(opts api_v1.ListOptions) (watch.Interface, error) Patch(name string, pt api.PatchType, data []byte, subresources ...string) (result *v1.HorizontalPodAutoscaler, err error) HorizontalPodAutoscalerExpansion } // horizontalPodAutoscalers implements HorizontalPodAutoscalerInterface type horizontalPodAutoscalers struct { - client *AutoscalingClient + client rest.Interface ns string } // newHorizontalPodAutoscalers returns a HorizontalPodAutoscalers -func newHorizontalPodAutoscalers(c *AutoscalingClient, namespace string) *horizontalPodAutoscalers { +func newHorizontalPodAutoscalers(c *AutoscalingV1Client, namespace string) *horizontalPodAutoscalers { return &horizontalPodAutoscalers{ - client: c, + client: c.RESTClient(), ns: namespace, } } @@ -95,7 +97,7 @@ func (c *horizontalPodAutoscalers) UpdateStatus(horizontalPodAutoscaler *v1.Hori } // Delete takes name of the horizontalPodAutoscaler and deletes it. Returns an error if one occurs. -func (c *horizontalPodAutoscalers) Delete(name string, options *api.DeleteOptions) error { +func (c *horizontalPodAutoscalers) Delete(name string, options *api_v1.DeleteOptions) error { return c.client.Delete(). Namespace(c.ns). Resource("horizontalpodautoscalers"). @@ -106,7 +108,7 @@ func (c *horizontalPodAutoscalers) Delete(name string, options *api.DeleteOption } // DeleteCollection deletes a collection of objects. -func (c *horizontalPodAutoscalers) DeleteCollection(options *api.DeleteOptions, listOptions api.ListOptions) error { +func (c *horizontalPodAutoscalers) DeleteCollection(options *api_v1.DeleteOptions, listOptions api_v1.ListOptions) error { return c.client.Delete(). Namespace(c.ns). Resource("horizontalpodautoscalers"). @@ -129,7 +131,7 @@ func (c *horizontalPodAutoscalers) Get(name string) (result *v1.HorizontalPodAut } // List takes label and field selectors, and returns the list of HorizontalPodAutoscalers that match those selectors. -func (c *horizontalPodAutoscalers) List(opts api.ListOptions) (result *v1.HorizontalPodAutoscalerList, err error) { +func (c *horizontalPodAutoscalers) List(opts api_v1.ListOptions) (result *v1.HorizontalPodAutoscalerList, err error) { result = &v1.HorizontalPodAutoscalerList{} err = c.client.Get(). Namespace(c.ns). @@ -141,7 +143,7 @@ func (c *horizontalPodAutoscalers) List(opts api.ListOptions) (result *v1.Horizo } // Watch returns a watch.Interface that watches the requested horizontalPodAutoscalers. -func (c *horizontalPodAutoscalers) Watch(opts api.ListOptions) (watch.Interface, error) { +func (c *horizontalPodAutoscalers) Watch(opts api_v1.ListOptions) (watch.Interface, error) { return c.client.Get(). Prefix("watch"). Namespace(c.ns). diff --git a/vendor/k8s.io/client-go/kubernetes/typed/batch/v1/batch_client.go b/vendor/k8s.io/client-go/kubernetes/typed/batch/v1/batch_client.go new file mode 100644 index 000000000..cd7fd7534 --- /dev/null +++ b/vendor/k8s.io/client-go/kubernetes/typed/batch/v1/batch_client.go @@ -0,0 +1,98 @@ +/* +Copyright 2017 The Kubernetes Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + +package v1 + +import ( + fmt "fmt" + api "k8s.io/client-go/pkg/api" + unversioned "k8s.io/client-go/pkg/api/unversioned" + registered "k8s.io/client-go/pkg/apimachinery/registered" + serializer "k8s.io/client-go/pkg/runtime/serializer" + rest "k8s.io/client-go/rest" +) + +type BatchV1Interface interface { + RESTClient() rest.Interface + JobsGetter +} + +// BatchV1Client is used to interact with features provided by the k8s.io/kubernetes/pkg/apimachinery/registered.Group group. +type BatchV1Client struct { + restClient rest.Interface +} + +func (c *BatchV1Client) Jobs(namespace string) JobInterface { + return newJobs(c, namespace) +} + +// NewForConfig creates a new BatchV1Client for the given config. +func NewForConfig(c *rest.Config) (*BatchV1Client, error) { + config := *c + if err := setConfigDefaults(&config); err != nil { + return nil, err + } + client, err := rest.RESTClientFor(&config) + if err != nil { + return nil, err + } + return &BatchV1Client{client}, nil +} + +// NewForConfigOrDie creates a new BatchV1Client for the given config and +// panics if there is an error in the config. +func NewForConfigOrDie(c *rest.Config) *BatchV1Client { + client, err := NewForConfig(c) + if err != nil { + panic(err) + } + return client +} + +// New creates a new BatchV1Client for the given RESTClient. +func New(c rest.Interface) *BatchV1Client { + return &BatchV1Client{c} +} + +func setConfigDefaults(config *rest.Config) error { + gv, err := unversioned.ParseGroupVersion("batch/v1") + if err != nil { + return err + } + // if batch/v1 is not enabled, return an error + if !registered.IsEnabledVersion(gv) { + return fmt.Errorf("batch/v1 is not enabled") + } + config.APIPath = "/apis" + if config.UserAgent == "" { + config.UserAgent = rest.DefaultKubernetesUserAgent() + } + copyGroupVersion := gv + config.GroupVersion = ©GroupVersion + + config.NegotiatedSerializer = serializer.DirectCodecFactory{CodecFactory: api.Codecs} + + return nil +} + +// RESTClient returns a RESTClient that is used to communicate +// with API server by this client implementation. +func (c *BatchV1Client) RESTClient() rest.Interface { + if c == nil { + return nil + } + return c.restClient +} diff --git a/vendor/k8s.io/client-go/1.5/kubernetes/typed/autoscaling/v1/doc.go b/vendor/k8s.io/client-go/kubernetes/typed/batch/v1/doc.go similarity index 71% rename from vendor/k8s.io/client-go/1.5/kubernetes/typed/autoscaling/v1/doc.go rename to vendor/k8s.io/client-go/kubernetes/typed/batch/v1/doc.go index fe27cf5c1..4971b7ec0 100644 --- a/vendor/k8s.io/client-go/1.5/kubernetes/typed/autoscaling/v1/doc.go +++ b/vendor/k8s.io/client-go/kubernetes/typed/batch/v1/doc.go @@ -1,5 +1,5 @@ /* -Copyright 2016 The Kubernetes Authors. +Copyright 2017 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -14,7 +14,7 @@ See the License for the specific language governing permissions and limitations under the License. */ -// This package is generated by client-gen with arguments: --clientset-name=release_1_5 --input=[api/v1,apps/v1alpha1,authentication/v1beta1,authorization/v1beta1,autoscaling/v1,batch/v1,certificates/v1alpha1,extensions/v1beta1,policy/v1alpha1,rbac/v1alpha1,storage/v1beta1] +// This package is generated by client-gen with arguments: --clientset-name=release_1_5 --input=[api/v1,apps/v1beta1,authentication/v1beta1,authorization/v1beta1,autoscaling/v1,batch/v1,batch/v2alpha1,certificates/v1alpha1,extensions/v1beta1,policy/v1beta1,rbac/v1alpha1,storage/v1beta1] // This package has the automatically generated typed clients. package v1 diff --git a/vendor/k8s.io/client-go/1.5/kubernetes/typed/batch/v1/generated_expansion.go b/vendor/k8s.io/client-go/kubernetes/typed/batch/v1/generated_expansion.go similarity index 93% rename from vendor/k8s.io/client-go/1.5/kubernetes/typed/batch/v1/generated_expansion.go rename to vendor/k8s.io/client-go/kubernetes/typed/batch/v1/generated_expansion.go index b24faa315..68d7741fa 100644 --- a/vendor/k8s.io/client-go/1.5/kubernetes/typed/batch/v1/generated_expansion.go +++ b/vendor/k8s.io/client-go/kubernetes/typed/batch/v1/generated_expansion.go @@ -1,5 +1,5 @@ /* -Copyright 2016 The Kubernetes Authors. +Copyright 2017 The Kubernetes Authors. 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/vendor/k8s.io/client-go/1.5/kubernetes/typed/batch/v1/job.go b/vendor/k8s.io/client-go/kubernetes/typed/batch/v1/job.go similarity index 80% rename from vendor/k8s.io/client-go/1.5/kubernetes/typed/batch/v1/job.go rename to vendor/k8s.io/client-go/kubernetes/typed/batch/v1/job.go index c201bddc7..364f6f91c 100644 --- a/vendor/k8s.io/client-go/1.5/kubernetes/typed/batch/v1/job.go +++ b/vendor/k8s.io/client-go/kubernetes/typed/batch/v1/job.go @@ -1,5 +1,5 @@ /* -Copyright 2016 The Kubernetes Authors. +Copyright 2017 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -17,9 +17,11 @@ limitations under the License. package v1 import ( - api "k8s.io/client-go/1.5/pkg/api" - v1 "k8s.io/client-go/1.5/pkg/apis/batch/v1" - watch "k8s.io/client-go/1.5/pkg/watch" + api "k8s.io/client-go/pkg/api" + api_v1 "k8s.io/client-go/pkg/api/v1" + v1 "k8s.io/client-go/pkg/apis/batch/v1" + watch "k8s.io/client-go/pkg/watch" + rest "k8s.io/client-go/rest" ) // JobsGetter has a method to return a JobInterface. @@ -33,25 +35,25 @@ type JobInterface interface { Create(*v1.Job) (*v1.Job, error) Update(*v1.Job) (*v1.Job, error) UpdateStatus(*v1.Job) (*v1.Job, error) - Delete(name string, options *api.DeleteOptions) error - DeleteCollection(options *api.DeleteOptions, listOptions api.ListOptions) error + Delete(name string, options *api_v1.DeleteOptions) error + DeleteCollection(options *api_v1.DeleteOptions, listOptions api_v1.ListOptions) error Get(name string) (*v1.Job, error) - List(opts api.ListOptions) (*v1.JobList, error) - Watch(opts api.ListOptions) (watch.Interface, error) + List(opts api_v1.ListOptions) (*v1.JobList, error) + Watch(opts api_v1.ListOptions) (watch.Interface, error) Patch(name string, pt api.PatchType, data []byte, subresources ...string) (result *v1.Job, err error) JobExpansion } // jobs implements JobInterface type jobs struct { - client *BatchClient + client rest.Interface ns string } // newJobs returns a Jobs -func newJobs(c *BatchClient, namespace string) *jobs { +func newJobs(c *BatchV1Client, namespace string) *jobs { return &jobs{ - client: c, + client: c.RESTClient(), ns: namespace, } } @@ -95,7 +97,7 @@ func (c *jobs) UpdateStatus(job *v1.Job) (result *v1.Job, err error) { } // Delete takes name of the job and deletes it. Returns an error if one occurs. -func (c *jobs) Delete(name string, options *api.DeleteOptions) error { +func (c *jobs) Delete(name string, options *api_v1.DeleteOptions) error { return c.client.Delete(). Namespace(c.ns). Resource("jobs"). @@ -106,7 +108,7 @@ func (c *jobs) Delete(name string, options *api.DeleteOptions) error { } // DeleteCollection deletes a collection of objects. -func (c *jobs) DeleteCollection(options *api.DeleteOptions, listOptions api.ListOptions) error { +func (c *jobs) DeleteCollection(options *api_v1.DeleteOptions, listOptions api_v1.ListOptions) error { return c.client.Delete(). Namespace(c.ns). Resource("jobs"). @@ -129,7 +131,7 @@ func (c *jobs) Get(name string) (result *v1.Job, err error) { } // List takes label and field selectors, and returns the list of Jobs that match those selectors. -func (c *jobs) List(opts api.ListOptions) (result *v1.JobList, err error) { +func (c *jobs) List(opts api_v1.ListOptions) (result *v1.JobList, err error) { result = &v1.JobList{} err = c.client.Get(). Namespace(c.ns). @@ -141,7 +143,7 @@ func (c *jobs) List(opts api.ListOptions) (result *v1.JobList, err error) { } // Watch returns a watch.Interface that watches the requested jobs. -func (c *jobs) Watch(opts api.ListOptions) (watch.Interface, error) { +func (c *jobs) Watch(opts api_v1.ListOptions) (watch.Interface, error) { return c.client.Get(). Prefix("watch"). Namespace(c.ns). diff --git a/vendor/k8s.io/client-go/kubernetes/typed/batch/v2alpha1/batch_client.go b/vendor/k8s.io/client-go/kubernetes/typed/batch/v2alpha1/batch_client.go new file mode 100644 index 000000000..d2b7aadb8 --- /dev/null +++ b/vendor/k8s.io/client-go/kubernetes/typed/batch/v2alpha1/batch_client.go @@ -0,0 +1,103 @@ +/* +Copyright 2017 The Kubernetes Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + +package v2alpha1 + +import ( + fmt "fmt" + api "k8s.io/client-go/pkg/api" + unversioned "k8s.io/client-go/pkg/api/unversioned" + registered "k8s.io/client-go/pkg/apimachinery/registered" + serializer "k8s.io/client-go/pkg/runtime/serializer" + rest "k8s.io/client-go/rest" +) + +type BatchV2alpha1Interface interface { + RESTClient() rest.Interface + CronJobsGetter + JobsGetter +} + +// BatchV2alpha1Client is used to interact with features provided by the k8s.io/kubernetes/pkg/apimachinery/registered.Group group. +type BatchV2alpha1Client struct { + restClient rest.Interface +} + +func (c *BatchV2alpha1Client) CronJobs(namespace string) CronJobInterface { + return newCronJobs(c, namespace) +} + +func (c *BatchV2alpha1Client) Jobs(namespace string) JobInterface { + return newJobs(c, namespace) +} + +// NewForConfig creates a new BatchV2alpha1Client for the given config. +func NewForConfig(c *rest.Config) (*BatchV2alpha1Client, error) { + config := *c + if err := setConfigDefaults(&config); err != nil { + return nil, err + } + client, err := rest.RESTClientFor(&config) + if err != nil { + return nil, err + } + return &BatchV2alpha1Client{client}, nil +} + +// NewForConfigOrDie creates a new BatchV2alpha1Client for the given config and +// panics if there is an error in the config. +func NewForConfigOrDie(c *rest.Config) *BatchV2alpha1Client { + client, err := NewForConfig(c) + if err != nil { + panic(err) + } + return client +} + +// New creates a new BatchV2alpha1Client for the given RESTClient. +func New(c rest.Interface) *BatchV2alpha1Client { + return &BatchV2alpha1Client{c} +} + +func setConfigDefaults(config *rest.Config) error { + gv, err := unversioned.ParseGroupVersion("batch/v2alpha1") + if err != nil { + return err + } + // if batch/v2alpha1 is not enabled, return an error + if !registered.IsEnabledVersion(gv) { + return fmt.Errorf("batch/v2alpha1 is not enabled") + } + config.APIPath = "/apis" + if config.UserAgent == "" { + config.UserAgent = rest.DefaultKubernetesUserAgent() + } + copyGroupVersion := gv + config.GroupVersion = ©GroupVersion + + config.NegotiatedSerializer = serializer.DirectCodecFactory{CodecFactory: api.Codecs} + + return nil +} + +// RESTClient returns a RESTClient that is used to communicate +// with API server by this client implementation. +func (c *BatchV2alpha1Client) RESTClient() rest.Interface { + if c == nil { + return nil + } + return c.restClient +} diff --git a/vendor/k8s.io/client-go/kubernetes/typed/batch/v2alpha1/cronjob.go b/vendor/k8s.io/client-go/kubernetes/typed/batch/v2alpha1/cronjob.go new file mode 100644 index 000000000..ebb60ff83 --- /dev/null +++ b/vendor/k8s.io/client-go/kubernetes/typed/batch/v2alpha1/cronjob.go @@ -0,0 +1,167 @@ +/* +Copyright 2017 The Kubernetes Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + +package v2alpha1 + +import ( + api "k8s.io/client-go/pkg/api" + v1 "k8s.io/client-go/pkg/api/v1" + v2alpha1 "k8s.io/client-go/pkg/apis/batch/v2alpha1" + watch "k8s.io/client-go/pkg/watch" + rest "k8s.io/client-go/rest" +) + +// CronJobsGetter has a method to return a CronJobInterface. +// A group's client should implement this interface. +type CronJobsGetter interface { + CronJobs(namespace string) CronJobInterface +} + +// CronJobInterface has methods to work with CronJob resources. +type CronJobInterface interface { + Create(*v2alpha1.CronJob) (*v2alpha1.CronJob, error) + Update(*v2alpha1.CronJob) (*v2alpha1.CronJob, error) + UpdateStatus(*v2alpha1.CronJob) (*v2alpha1.CronJob, error) + Delete(name string, options *v1.DeleteOptions) error + DeleteCollection(options *v1.DeleteOptions, listOptions v1.ListOptions) error + Get(name string) (*v2alpha1.CronJob, error) + List(opts v1.ListOptions) (*v2alpha1.CronJobList, error) + Watch(opts v1.ListOptions) (watch.Interface, error) + Patch(name string, pt api.PatchType, data []byte, subresources ...string) (result *v2alpha1.CronJob, err error) + CronJobExpansion +} + +// cronJobs implements CronJobInterface +type cronJobs struct { + client rest.Interface + ns string +} + +// newCronJobs returns a CronJobs +func newCronJobs(c *BatchV2alpha1Client, namespace string) *cronJobs { + return &cronJobs{ + client: c.RESTClient(), + ns: namespace, + } +} + +// Create takes the representation of a cronJob and creates it. Returns the server's representation of the cronJob, and an error, if there is any. +func (c *cronJobs) Create(cronJob *v2alpha1.CronJob) (result *v2alpha1.CronJob, err error) { + result = &v2alpha1.CronJob{} + err = c.client.Post(). + Namespace(c.ns). + Resource("cronjobs"). + Body(cronJob). + Do(). + Into(result) + return +} + +// Update takes the representation of a cronJob and updates it. Returns the server's representation of the cronJob, and an error, if there is any. +func (c *cronJobs) Update(cronJob *v2alpha1.CronJob) (result *v2alpha1.CronJob, err error) { + result = &v2alpha1.CronJob{} + err = c.client.Put(). + Namespace(c.ns). + Resource("cronjobs"). + Name(cronJob.Name). + Body(cronJob). + Do(). + Into(result) + return +} + +func (c *cronJobs) UpdateStatus(cronJob *v2alpha1.CronJob) (result *v2alpha1.CronJob, err error) { + result = &v2alpha1.CronJob{} + err = c.client.Put(). + Namespace(c.ns). + Resource("cronjobs"). + Name(cronJob.Name). + SubResource("status"). + Body(cronJob). + Do(). + Into(result) + return +} + +// Delete takes name of the cronJob and deletes it. Returns an error if one occurs. +func (c *cronJobs) Delete(name string, options *v1.DeleteOptions) error { + return c.client.Delete(). + Namespace(c.ns). + Resource("cronjobs"). + Name(name). + Body(options). + Do(). + Error() +} + +// DeleteCollection deletes a collection of objects. +func (c *cronJobs) DeleteCollection(options *v1.DeleteOptions, listOptions v1.ListOptions) error { + return c.client.Delete(). + Namespace(c.ns). + Resource("cronjobs"). + VersionedParams(&listOptions, api.ParameterCodec). + Body(options). + Do(). + Error() +} + +// Get takes name of the cronJob, and returns the corresponding cronJob object, and an error if there is any. +func (c *cronJobs) Get(name string) (result *v2alpha1.CronJob, err error) { + result = &v2alpha1.CronJob{} + err = c.client.Get(). + Namespace(c.ns). + Resource("cronjobs"). + Name(name). + Do(). + Into(result) + return +} + +// List takes label and field selectors, and returns the list of CronJobs that match those selectors. +func (c *cronJobs) List(opts v1.ListOptions) (result *v2alpha1.CronJobList, err error) { + result = &v2alpha1.CronJobList{} + err = c.client.Get(). + Namespace(c.ns). + Resource("cronjobs"). + VersionedParams(&opts, api.ParameterCodec). + Do(). + Into(result) + return +} + +// Watch returns a watch.Interface that watches the requested cronJobs. +func (c *cronJobs) Watch(opts v1.ListOptions) (watch.Interface, error) { + return c.client.Get(). + Prefix("watch"). + Namespace(c.ns). + Resource("cronjobs"). + VersionedParams(&opts, api.ParameterCodec). + Watch() +} + +// Patch applies the patch and returns the patched cronJob. +func (c *cronJobs) Patch(name string, pt api.PatchType, data []byte, subresources ...string) (result *v2alpha1.CronJob, err error) { + result = &v2alpha1.CronJob{} + err = c.client.Patch(pt). + Namespace(c.ns). + Resource("cronjobs"). + SubResource(subresources...). + Name(name). + Body(data). + Do(). + Into(result) + return +} diff --git a/vendor/k8s.io/client-go/1.5/kubernetes/typed/apps/v1alpha1/doc.go b/vendor/k8s.io/client-go/kubernetes/typed/batch/v2alpha1/doc.go similarity index 70% rename from vendor/k8s.io/client-go/1.5/kubernetes/typed/apps/v1alpha1/doc.go rename to vendor/k8s.io/client-go/kubernetes/typed/batch/v2alpha1/doc.go index 0c1ca41fa..57f8a0f4b 100644 --- a/vendor/k8s.io/client-go/1.5/kubernetes/typed/apps/v1alpha1/doc.go +++ b/vendor/k8s.io/client-go/kubernetes/typed/batch/v2alpha1/doc.go @@ -1,5 +1,5 @@ /* -Copyright 2016 The Kubernetes Authors. +Copyright 2017 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -14,7 +14,7 @@ See the License for the specific language governing permissions and limitations under the License. */ -// This package is generated by client-gen with arguments: --clientset-name=release_1_5 --input=[api/v1,apps/v1alpha1,authentication/v1beta1,authorization/v1beta1,autoscaling/v1,batch/v1,certificates/v1alpha1,extensions/v1beta1,policy/v1alpha1,rbac/v1alpha1,storage/v1beta1] +// This package is generated by client-gen with arguments: --clientset-name=release_1_5 --input=[api/v1,apps/v1beta1,authentication/v1beta1,authorization/v1beta1,autoscaling/v1,batch/v1,batch/v2alpha1,certificates/v1alpha1,extensions/v1beta1,policy/v1beta1,rbac/v1alpha1,storage/v1beta1] // This package has the automatically generated typed clients. -package v1alpha1 +package v2alpha1 diff --git a/vendor/k8s.io/client-go/kubernetes/typed/batch/v2alpha1/generated_expansion.go b/vendor/k8s.io/client-go/kubernetes/typed/batch/v2alpha1/generated_expansion.go new file mode 100644 index 000000000..c0d3badea --- /dev/null +++ b/vendor/k8s.io/client-go/kubernetes/typed/batch/v2alpha1/generated_expansion.go @@ -0,0 +1,21 @@ +/* +Copyright 2017 The Kubernetes Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + +package v2alpha1 + +type CronJobExpansion interface{} + +type JobExpansion interface{} diff --git a/vendor/k8s.io/client-go/kubernetes/typed/batch/v2alpha1/job.go b/vendor/k8s.io/client-go/kubernetes/typed/batch/v2alpha1/job.go new file mode 100644 index 000000000..2c1941056 --- /dev/null +++ b/vendor/k8s.io/client-go/kubernetes/typed/batch/v2alpha1/job.go @@ -0,0 +1,167 @@ +/* +Copyright 2017 The Kubernetes Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + +package v2alpha1 + +import ( + api "k8s.io/client-go/pkg/api" + v1 "k8s.io/client-go/pkg/api/v1" + v2alpha1 "k8s.io/client-go/pkg/apis/batch/v2alpha1" + watch "k8s.io/client-go/pkg/watch" + rest "k8s.io/client-go/rest" +) + +// JobsGetter has a method to return a JobInterface. +// A group's client should implement this interface. +type JobsGetter interface { + Jobs(namespace string) JobInterface +} + +// JobInterface has methods to work with Job resources. +type JobInterface interface { + Create(*v2alpha1.Job) (*v2alpha1.Job, error) + Update(*v2alpha1.Job) (*v2alpha1.Job, error) + UpdateStatus(*v2alpha1.Job) (*v2alpha1.Job, error) + Delete(name string, options *v1.DeleteOptions) error + DeleteCollection(options *v1.DeleteOptions, listOptions v1.ListOptions) error + Get(name string) (*v2alpha1.Job, error) + List(opts v1.ListOptions) (*v2alpha1.JobList, error) + Watch(opts v1.ListOptions) (watch.Interface, error) + Patch(name string, pt api.PatchType, data []byte, subresources ...string) (result *v2alpha1.Job, err error) + JobExpansion +} + +// jobs implements JobInterface +type jobs struct { + client rest.Interface + ns string +} + +// newJobs returns a Jobs +func newJobs(c *BatchV2alpha1Client, namespace string) *jobs { + return &jobs{ + client: c.RESTClient(), + ns: namespace, + } +} + +// Create takes the representation of a job and creates it. Returns the server's representation of the job, and an error, if there is any. +func (c *jobs) Create(job *v2alpha1.Job) (result *v2alpha1.Job, err error) { + result = &v2alpha1.Job{} + err = c.client.Post(). + Namespace(c.ns). + Resource("jobs"). + Body(job). + Do(). + Into(result) + return +} + +// Update takes the representation of a job and updates it. Returns the server's representation of the job, and an error, if there is any. +func (c *jobs) Update(job *v2alpha1.Job) (result *v2alpha1.Job, err error) { + result = &v2alpha1.Job{} + err = c.client.Put(). + Namespace(c.ns). + Resource("jobs"). + Name(job.Name). + Body(job). + Do(). + Into(result) + return +} + +func (c *jobs) UpdateStatus(job *v2alpha1.Job) (result *v2alpha1.Job, err error) { + result = &v2alpha1.Job{} + err = c.client.Put(). + Namespace(c.ns). + Resource("jobs"). + Name(job.Name). + SubResource("status"). + Body(job). + Do(). + Into(result) + return +} + +// Delete takes name of the job and deletes it. Returns an error if one occurs. +func (c *jobs) Delete(name string, options *v1.DeleteOptions) error { + return c.client.Delete(). + Namespace(c.ns). + Resource("jobs"). + Name(name). + Body(options). + Do(). + Error() +} + +// DeleteCollection deletes a collection of objects. +func (c *jobs) DeleteCollection(options *v1.DeleteOptions, listOptions v1.ListOptions) error { + return c.client.Delete(). + Namespace(c.ns). + Resource("jobs"). + VersionedParams(&listOptions, api.ParameterCodec). + Body(options). + Do(). + Error() +} + +// Get takes name of the job, and returns the corresponding job object, and an error if there is any. +func (c *jobs) Get(name string) (result *v2alpha1.Job, err error) { + result = &v2alpha1.Job{} + err = c.client.Get(). + Namespace(c.ns). + Resource("jobs"). + Name(name). + Do(). + Into(result) + return +} + +// List takes label and field selectors, and returns the list of Jobs that match those selectors. +func (c *jobs) List(opts v1.ListOptions) (result *v2alpha1.JobList, err error) { + result = &v2alpha1.JobList{} + err = c.client.Get(). + Namespace(c.ns). + Resource("jobs"). + VersionedParams(&opts, api.ParameterCodec). + Do(). + Into(result) + return +} + +// Watch returns a watch.Interface that watches the requested jobs. +func (c *jobs) Watch(opts v1.ListOptions) (watch.Interface, error) { + return c.client.Get(). + Prefix("watch"). + Namespace(c.ns). + Resource("jobs"). + VersionedParams(&opts, api.ParameterCodec). + Watch() +} + +// Patch applies the patch and returns the patched job. +func (c *jobs) Patch(name string, pt api.PatchType, data []byte, subresources ...string) (result *v2alpha1.Job, err error) { + result = &v2alpha1.Job{} + err = c.client.Patch(pt). + Namespace(c.ns). + Resource("jobs"). + SubResource(subresources...). + Name(name). + Body(data). + Do(). + Into(result) + return +} diff --git a/vendor/k8s.io/client-go/kubernetes/typed/certificates/v1alpha1/certificates_client.go b/vendor/k8s.io/client-go/kubernetes/typed/certificates/v1alpha1/certificates_client.go new file mode 100644 index 000000000..7f3aa2704 --- /dev/null +++ b/vendor/k8s.io/client-go/kubernetes/typed/certificates/v1alpha1/certificates_client.go @@ -0,0 +1,98 @@ +/* +Copyright 2017 The Kubernetes Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES 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 ( + fmt "fmt" + api "k8s.io/client-go/pkg/api" + unversioned "k8s.io/client-go/pkg/api/unversioned" + registered "k8s.io/client-go/pkg/apimachinery/registered" + serializer "k8s.io/client-go/pkg/runtime/serializer" + rest "k8s.io/client-go/rest" +) + +type CertificatesV1alpha1Interface interface { + RESTClient() rest.Interface + CertificateSigningRequestsGetter +} + +// CertificatesV1alpha1Client is used to interact with features provided by the k8s.io/kubernetes/pkg/apimachinery/registered.Group group. +type CertificatesV1alpha1Client struct { + restClient rest.Interface +} + +func (c *CertificatesV1alpha1Client) CertificateSigningRequests() CertificateSigningRequestInterface { + return newCertificateSigningRequests(c) +} + +// NewForConfig creates a new CertificatesV1alpha1Client for the given config. +func NewForConfig(c *rest.Config) (*CertificatesV1alpha1Client, error) { + config := *c + if err := setConfigDefaults(&config); err != nil { + return nil, err + } + client, err := rest.RESTClientFor(&config) + if err != nil { + return nil, err + } + return &CertificatesV1alpha1Client{client}, nil +} + +// NewForConfigOrDie creates a new CertificatesV1alpha1Client for the given config and +// panics if there is an error in the config. +func NewForConfigOrDie(c *rest.Config) *CertificatesV1alpha1Client { + client, err := NewForConfig(c) + if err != nil { + panic(err) + } + return client +} + +// New creates a new CertificatesV1alpha1Client for the given RESTClient. +func New(c rest.Interface) *CertificatesV1alpha1Client { + return &CertificatesV1alpha1Client{c} +} + +func setConfigDefaults(config *rest.Config) error { + gv, err := unversioned.ParseGroupVersion("certificates.k8s.io/v1alpha1") + if err != nil { + return err + } + // if certificates.k8s.io/v1alpha1 is not enabled, return an error + if !registered.IsEnabledVersion(gv) { + return fmt.Errorf("certificates.k8s.io/v1alpha1 is not enabled") + } + config.APIPath = "/apis" + if config.UserAgent == "" { + config.UserAgent = rest.DefaultKubernetesUserAgent() + } + copyGroupVersion := gv + config.GroupVersion = ©GroupVersion + + config.NegotiatedSerializer = serializer.DirectCodecFactory{CodecFactory: api.Codecs} + + return nil +} + +// RESTClient returns a RESTClient that is used to communicate +// with API server by this client implementation. +func (c *CertificatesV1alpha1Client) RESTClient() rest.Interface { + if c == nil { + return nil + } + return c.restClient +} diff --git a/vendor/k8s.io/client-go/1.5/kubernetes/typed/certificates/v1alpha1/certificatesigningrequest.go b/vendor/k8s.io/client-go/kubernetes/typed/certificates/v1alpha1/certificatesigningrequest.go similarity index 83% rename from vendor/k8s.io/client-go/1.5/kubernetes/typed/certificates/v1alpha1/certificatesigningrequest.go rename to vendor/k8s.io/client-go/kubernetes/typed/certificates/v1alpha1/certificatesigningrequest.go index 07e6a0404..a0613e163 100644 --- a/vendor/k8s.io/client-go/1.5/kubernetes/typed/certificates/v1alpha1/certificatesigningrequest.go +++ b/vendor/k8s.io/client-go/kubernetes/typed/certificates/v1alpha1/certificatesigningrequest.go @@ -1,5 +1,5 @@ /* -Copyright 2016 The Kubernetes Authors. +Copyright 2017 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -17,9 +17,11 @@ limitations under the License. package v1alpha1 import ( - api "k8s.io/client-go/1.5/pkg/api" - v1alpha1 "k8s.io/client-go/1.5/pkg/apis/certificates/v1alpha1" - watch "k8s.io/client-go/1.5/pkg/watch" + api "k8s.io/client-go/pkg/api" + v1 "k8s.io/client-go/pkg/api/v1" + v1alpha1 "k8s.io/client-go/pkg/apis/certificates/v1alpha1" + watch "k8s.io/client-go/pkg/watch" + rest "k8s.io/client-go/rest" ) // CertificateSigningRequestsGetter has a method to return a CertificateSigningRequestInterface. @@ -33,24 +35,24 @@ type CertificateSigningRequestInterface interface { Create(*v1alpha1.CertificateSigningRequest) (*v1alpha1.CertificateSigningRequest, error) Update(*v1alpha1.CertificateSigningRequest) (*v1alpha1.CertificateSigningRequest, error) UpdateStatus(*v1alpha1.CertificateSigningRequest) (*v1alpha1.CertificateSigningRequest, error) - Delete(name string, options *api.DeleteOptions) error - DeleteCollection(options *api.DeleteOptions, listOptions api.ListOptions) error + Delete(name string, options *v1.DeleteOptions) error + DeleteCollection(options *v1.DeleteOptions, listOptions v1.ListOptions) error Get(name string) (*v1alpha1.CertificateSigningRequest, error) - List(opts api.ListOptions) (*v1alpha1.CertificateSigningRequestList, error) - Watch(opts api.ListOptions) (watch.Interface, error) + List(opts v1.ListOptions) (*v1alpha1.CertificateSigningRequestList, error) + Watch(opts v1.ListOptions) (watch.Interface, error) Patch(name string, pt api.PatchType, data []byte, subresources ...string) (result *v1alpha1.CertificateSigningRequest, err error) CertificateSigningRequestExpansion } // certificateSigningRequests implements CertificateSigningRequestInterface type certificateSigningRequests struct { - client *CertificatesClient + client rest.Interface } // newCertificateSigningRequests returns a CertificateSigningRequests -func newCertificateSigningRequests(c *CertificatesClient) *certificateSigningRequests { +func newCertificateSigningRequests(c *CertificatesV1alpha1Client) *certificateSigningRequests { return &certificateSigningRequests{ - client: c, + client: c.RESTClient(), } } @@ -90,7 +92,7 @@ func (c *certificateSigningRequests) UpdateStatus(certificateSigningRequest *v1a } // Delete takes name of the certificateSigningRequest and deletes it. Returns an error if one occurs. -func (c *certificateSigningRequests) Delete(name string, options *api.DeleteOptions) error { +func (c *certificateSigningRequests) Delete(name string, options *v1.DeleteOptions) error { return c.client.Delete(). Resource("certificatesigningrequests"). Name(name). @@ -100,7 +102,7 @@ func (c *certificateSigningRequests) Delete(name string, options *api.DeleteOpti } // DeleteCollection deletes a collection of objects. -func (c *certificateSigningRequests) DeleteCollection(options *api.DeleteOptions, listOptions api.ListOptions) error { +func (c *certificateSigningRequests) DeleteCollection(options *v1.DeleteOptions, listOptions v1.ListOptions) error { return c.client.Delete(). Resource("certificatesigningrequests"). VersionedParams(&listOptions, api.ParameterCodec). @@ -121,7 +123,7 @@ func (c *certificateSigningRequests) Get(name string) (result *v1alpha1.Certific } // List takes label and field selectors, and returns the list of CertificateSigningRequests that match those selectors. -func (c *certificateSigningRequests) List(opts api.ListOptions) (result *v1alpha1.CertificateSigningRequestList, err error) { +func (c *certificateSigningRequests) List(opts v1.ListOptions) (result *v1alpha1.CertificateSigningRequestList, err error) { result = &v1alpha1.CertificateSigningRequestList{} err = c.client.Get(). Resource("certificatesigningrequests"). @@ -132,7 +134,7 @@ func (c *certificateSigningRequests) List(opts api.ListOptions) (result *v1alpha } // Watch returns a watch.Interface that watches the requested certificateSigningRequests. -func (c *certificateSigningRequests) Watch(opts api.ListOptions) (watch.Interface, error) { +func (c *certificateSigningRequests) Watch(opts v1.ListOptions) (watch.Interface, error) { return c.client.Get(). Prefix("watch"). Resource("certificatesigningrequests"). diff --git a/vendor/k8s.io/client-go/kubernetes/typed/certificates/v1alpha1/certificatesigningrequest_expansion.go b/vendor/k8s.io/client-go/kubernetes/typed/certificates/v1alpha1/certificatesigningrequest_expansion.go new file mode 100644 index 000000000..580f92c20 --- /dev/null +++ b/vendor/k8s.io/client-go/kubernetes/typed/certificates/v1alpha1/certificatesigningrequest_expansion.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 v1alpha1 + +import ( + certificates "k8s.io/client-go/pkg/apis/certificates/v1alpha1" +) + +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/vendor/k8s.io/client-go/1.5/kubernetes/typed/certificates/v1alpha1/doc.go b/vendor/k8s.io/client-go/kubernetes/typed/certificates/v1alpha1/doc.go similarity index 72% rename from vendor/k8s.io/client-go/1.5/kubernetes/typed/certificates/v1alpha1/doc.go rename to vendor/k8s.io/client-go/kubernetes/typed/certificates/v1alpha1/doc.go index 0c1ca41fa..77f6cf0a2 100644 --- a/vendor/k8s.io/client-go/1.5/kubernetes/typed/certificates/v1alpha1/doc.go +++ b/vendor/k8s.io/client-go/kubernetes/typed/certificates/v1alpha1/doc.go @@ -1,5 +1,5 @@ /* -Copyright 2016 The Kubernetes Authors. +Copyright 2017 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -14,7 +14,7 @@ See the License for the specific language governing permissions and limitations under the License. */ -// This package is generated by client-gen with arguments: --clientset-name=release_1_5 --input=[api/v1,apps/v1alpha1,authentication/v1beta1,authorization/v1beta1,autoscaling/v1,batch/v1,certificates/v1alpha1,extensions/v1beta1,policy/v1alpha1,rbac/v1alpha1,storage/v1beta1] +// This package is generated by client-gen with arguments: --clientset-name=release_1_5 --input=[api/v1,apps/v1beta1,authentication/v1beta1,authorization/v1beta1,autoscaling/v1,batch/v1,batch/v2alpha1,certificates/v1alpha1,extensions/v1beta1,policy/v1beta1,rbac/v1alpha1,storage/v1beta1] // This package has the automatically generated typed clients. package v1alpha1 diff --git a/vendor/k8s.io/client-go/1.5/kubernetes/typed/apps/v1alpha1/generated_expansion.go b/vendor/k8s.io/client-go/kubernetes/typed/certificates/v1alpha1/generated_expansion.go similarity index 88% rename from vendor/k8s.io/client-go/1.5/kubernetes/typed/apps/v1alpha1/generated_expansion.go rename to vendor/k8s.io/client-go/kubernetes/typed/certificates/v1alpha1/generated_expansion.go index 439a241b0..48a74f4a3 100644 --- a/vendor/k8s.io/client-go/1.5/kubernetes/typed/apps/v1alpha1/generated_expansion.go +++ b/vendor/k8s.io/client-go/kubernetes/typed/certificates/v1alpha1/generated_expansion.go @@ -1,5 +1,5 @@ /* -Copyright 2016 The Kubernetes Authors. +Copyright 2017 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -15,5 +15,3 @@ limitations under the License. */ package v1alpha1 - -type PetSetExpansion interface{} diff --git a/vendor/k8s.io/client-go/1.5/kubernetes/typed/core/v1/componentstatus.go b/vendor/k8s.io/client-go/kubernetes/typed/core/v1/componentstatus.go similarity index 81% rename from vendor/k8s.io/client-go/1.5/kubernetes/typed/core/v1/componentstatus.go rename to vendor/k8s.io/client-go/kubernetes/typed/core/v1/componentstatus.go index bcdbbc34a..93335c2bc 100644 --- a/vendor/k8s.io/client-go/1.5/kubernetes/typed/core/v1/componentstatus.go +++ b/vendor/k8s.io/client-go/kubernetes/typed/core/v1/componentstatus.go @@ -1,5 +1,5 @@ /* -Copyright 2016 The Kubernetes Authors. +Copyright 2017 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -17,9 +17,10 @@ limitations under the License. package v1 import ( - api "k8s.io/client-go/1.5/pkg/api" - v1 "k8s.io/client-go/1.5/pkg/api/v1" - watch "k8s.io/client-go/1.5/pkg/watch" + api "k8s.io/client-go/pkg/api" + v1 "k8s.io/client-go/pkg/api/v1" + watch "k8s.io/client-go/pkg/watch" + rest "k8s.io/client-go/rest" ) // ComponentStatusesGetter has a method to return a ComponentStatusInterface. @@ -32,24 +33,24 @@ type ComponentStatusesGetter interface { type ComponentStatusInterface interface { Create(*v1.ComponentStatus) (*v1.ComponentStatus, error) Update(*v1.ComponentStatus) (*v1.ComponentStatus, error) - Delete(name string, options *api.DeleteOptions) error - DeleteCollection(options *api.DeleteOptions, listOptions api.ListOptions) error + Delete(name string, options *v1.DeleteOptions) error + DeleteCollection(options *v1.DeleteOptions, listOptions v1.ListOptions) error Get(name string) (*v1.ComponentStatus, error) - List(opts api.ListOptions) (*v1.ComponentStatusList, error) - Watch(opts api.ListOptions) (watch.Interface, error) + List(opts v1.ListOptions) (*v1.ComponentStatusList, error) + Watch(opts v1.ListOptions) (watch.Interface, error) Patch(name string, pt api.PatchType, data []byte, subresources ...string) (result *v1.ComponentStatus, err error) ComponentStatusExpansion } // componentStatuses implements ComponentStatusInterface type componentStatuses struct { - client *CoreClient + client rest.Interface } // newComponentStatuses returns a ComponentStatuses -func newComponentStatuses(c *CoreClient) *componentStatuses { +func newComponentStatuses(c *CoreV1Client) *componentStatuses { return &componentStatuses{ - client: c, + client: c.RESTClient(), } } @@ -77,7 +78,7 @@ func (c *componentStatuses) Update(componentStatus *v1.ComponentStatus) (result } // Delete takes name of the componentStatus and deletes it. Returns an error if one occurs. -func (c *componentStatuses) Delete(name string, options *api.DeleteOptions) error { +func (c *componentStatuses) Delete(name string, options *v1.DeleteOptions) error { return c.client.Delete(). Resource("componentstatuses"). Name(name). @@ -87,7 +88,7 @@ func (c *componentStatuses) Delete(name string, options *api.DeleteOptions) erro } // DeleteCollection deletes a collection of objects. -func (c *componentStatuses) DeleteCollection(options *api.DeleteOptions, listOptions api.ListOptions) error { +func (c *componentStatuses) DeleteCollection(options *v1.DeleteOptions, listOptions v1.ListOptions) error { return c.client.Delete(). Resource("componentstatuses"). VersionedParams(&listOptions, api.ParameterCodec). @@ -108,7 +109,7 @@ func (c *componentStatuses) Get(name string) (result *v1.ComponentStatus, err er } // List takes label and field selectors, and returns the list of ComponentStatuses that match those selectors. -func (c *componentStatuses) List(opts api.ListOptions) (result *v1.ComponentStatusList, err error) { +func (c *componentStatuses) List(opts v1.ListOptions) (result *v1.ComponentStatusList, err error) { result = &v1.ComponentStatusList{} err = c.client.Get(). Resource("componentstatuses"). @@ -119,7 +120,7 @@ func (c *componentStatuses) List(opts api.ListOptions) (result *v1.ComponentStat } // Watch returns a watch.Interface that watches the requested componentStatuses. -func (c *componentStatuses) Watch(opts api.ListOptions) (watch.Interface, error) { +func (c *componentStatuses) Watch(opts v1.ListOptions) (watch.Interface, error) { return c.client.Get(). Prefix("watch"). Resource("componentstatuses"). diff --git a/vendor/k8s.io/client-go/1.5/kubernetes/typed/core/v1/configmap.go b/vendor/k8s.io/client-go/kubernetes/typed/core/v1/configmap.go similarity index 81% rename from vendor/k8s.io/client-go/1.5/kubernetes/typed/core/v1/configmap.go rename to vendor/k8s.io/client-go/kubernetes/typed/core/v1/configmap.go index 5ede52bc4..fc14b2f06 100644 --- a/vendor/k8s.io/client-go/1.5/kubernetes/typed/core/v1/configmap.go +++ b/vendor/k8s.io/client-go/kubernetes/typed/core/v1/configmap.go @@ -1,5 +1,5 @@ /* -Copyright 2016 The Kubernetes Authors. +Copyright 2017 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -17,9 +17,10 @@ limitations under the License. package v1 import ( - api "k8s.io/client-go/1.5/pkg/api" - v1 "k8s.io/client-go/1.5/pkg/api/v1" - watch "k8s.io/client-go/1.5/pkg/watch" + api "k8s.io/client-go/pkg/api" + v1 "k8s.io/client-go/pkg/api/v1" + watch "k8s.io/client-go/pkg/watch" + rest "k8s.io/client-go/rest" ) // ConfigMapsGetter has a method to return a ConfigMapInterface. @@ -32,25 +33,25 @@ type ConfigMapsGetter interface { type ConfigMapInterface interface { Create(*v1.ConfigMap) (*v1.ConfigMap, error) Update(*v1.ConfigMap) (*v1.ConfigMap, error) - Delete(name string, options *api.DeleteOptions) error - DeleteCollection(options *api.DeleteOptions, listOptions api.ListOptions) error + Delete(name string, options *v1.DeleteOptions) error + DeleteCollection(options *v1.DeleteOptions, listOptions v1.ListOptions) error Get(name string) (*v1.ConfigMap, error) - List(opts api.ListOptions) (*v1.ConfigMapList, error) - Watch(opts api.ListOptions) (watch.Interface, error) + List(opts v1.ListOptions) (*v1.ConfigMapList, error) + Watch(opts v1.ListOptions) (watch.Interface, error) Patch(name string, pt api.PatchType, data []byte, subresources ...string) (result *v1.ConfigMap, err error) ConfigMapExpansion } // configMaps implements ConfigMapInterface type configMaps struct { - client *CoreClient + client rest.Interface ns string } // newConfigMaps returns a ConfigMaps -func newConfigMaps(c *CoreClient, namespace string) *configMaps { +func newConfigMaps(c *CoreV1Client, namespace string) *configMaps { return &configMaps{ - client: c, + client: c.RESTClient(), ns: namespace, } } @@ -81,7 +82,7 @@ func (c *configMaps) Update(configMap *v1.ConfigMap) (result *v1.ConfigMap, err } // Delete takes name of the configMap and deletes it. Returns an error if one occurs. -func (c *configMaps) Delete(name string, options *api.DeleteOptions) error { +func (c *configMaps) Delete(name string, options *v1.DeleteOptions) error { return c.client.Delete(). Namespace(c.ns). Resource("configmaps"). @@ -92,7 +93,7 @@ func (c *configMaps) Delete(name string, options *api.DeleteOptions) error { } // DeleteCollection deletes a collection of objects. -func (c *configMaps) DeleteCollection(options *api.DeleteOptions, listOptions api.ListOptions) error { +func (c *configMaps) DeleteCollection(options *v1.DeleteOptions, listOptions v1.ListOptions) error { return c.client.Delete(). Namespace(c.ns). Resource("configmaps"). @@ -115,7 +116,7 @@ func (c *configMaps) Get(name string) (result *v1.ConfigMap, err error) { } // List takes label and field selectors, and returns the list of ConfigMaps that match those selectors. -func (c *configMaps) List(opts api.ListOptions) (result *v1.ConfigMapList, err error) { +func (c *configMaps) List(opts v1.ListOptions) (result *v1.ConfigMapList, err error) { result = &v1.ConfigMapList{} err = c.client.Get(). Namespace(c.ns). @@ -127,7 +128,7 @@ func (c *configMaps) List(opts api.ListOptions) (result *v1.ConfigMapList, err e } // Watch returns a watch.Interface that watches the requested configMaps. -func (c *configMaps) Watch(opts api.ListOptions) (watch.Interface, error) { +func (c *configMaps) Watch(opts v1.ListOptions) (watch.Interface, error) { return c.client.Get(). Prefix("watch"). Namespace(c.ns). diff --git a/vendor/k8s.io/client-go/kubernetes/typed/core/v1/core_client.go b/vendor/k8s.io/client-go/kubernetes/typed/core/v1/core_client.go new file mode 100644 index 000000000..5df194acb --- /dev/null +++ b/vendor/k8s.io/client-go/kubernetes/typed/core/v1/core_client.go @@ -0,0 +1,173 @@ +/* +Copyright 2017 The Kubernetes Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + +package v1 + +import ( + fmt "fmt" + api "k8s.io/client-go/pkg/api" + unversioned "k8s.io/client-go/pkg/api/unversioned" + registered "k8s.io/client-go/pkg/apimachinery/registered" + serializer "k8s.io/client-go/pkg/runtime/serializer" + rest "k8s.io/client-go/rest" +) + +type CoreV1Interface interface { + RESTClient() rest.Interface + ComponentStatusesGetter + ConfigMapsGetter + EndpointsGetter + EventsGetter + LimitRangesGetter + NamespacesGetter + NodesGetter + PersistentVolumesGetter + PersistentVolumeClaimsGetter + PodsGetter + PodTemplatesGetter + ReplicationControllersGetter + ResourceQuotasGetter + SecretsGetter + ServicesGetter + ServiceAccountsGetter +} + +// CoreV1Client is used to interact with features provided by the k8s.io/kubernetes/pkg/apimachinery/registered.Group group. +type CoreV1Client struct { + restClient rest.Interface +} + +func (c *CoreV1Client) ComponentStatuses() ComponentStatusInterface { + return newComponentStatuses(c) +} + +func (c *CoreV1Client) ConfigMaps(namespace string) ConfigMapInterface { + return newConfigMaps(c, namespace) +} + +func (c *CoreV1Client) Endpoints(namespace string) EndpointsInterface { + return newEndpoints(c, namespace) +} + +func (c *CoreV1Client) Events(namespace string) EventInterface { + return newEvents(c, namespace) +} + +func (c *CoreV1Client) LimitRanges(namespace string) LimitRangeInterface { + return newLimitRanges(c, namespace) +} + +func (c *CoreV1Client) Namespaces() NamespaceInterface { + return newNamespaces(c) +} + +func (c *CoreV1Client) Nodes() NodeInterface { + return newNodes(c) +} + +func (c *CoreV1Client) PersistentVolumes() PersistentVolumeInterface { + return newPersistentVolumes(c) +} + +func (c *CoreV1Client) PersistentVolumeClaims(namespace string) PersistentVolumeClaimInterface { + return newPersistentVolumeClaims(c, namespace) +} + +func (c *CoreV1Client) Pods(namespace string) PodInterface { + return newPods(c, namespace) +} + +func (c *CoreV1Client) PodTemplates(namespace string) PodTemplateInterface { + return newPodTemplates(c, namespace) +} + +func (c *CoreV1Client) ReplicationControllers(namespace string) ReplicationControllerInterface { + return newReplicationControllers(c, namespace) +} + +func (c *CoreV1Client) ResourceQuotas(namespace string) ResourceQuotaInterface { + return newResourceQuotas(c, namespace) +} + +func (c *CoreV1Client) Secrets(namespace string) SecretInterface { + return newSecrets(c, namespace) +} + +func (c *CoreV1Client) Services(namespace string) ServiceInterface { + return newServices(c, namespace) +} + +func (c *CoreV1Client) ServiceAccounts(namespace string) ServiceAccountInterface { + return newServiceAccounts(c, namespace) +} + +// NewForConfig creates a new CoreV1Client for the given config. +func NewForConfig(c *rest.Config) (*CoreV1Client, error) { + config := *c + if err := setConfigDefaults(&config); err != nil { + return nil, err + } + client, err := rest.RESTClientFor(&config) + if err != nil { + return nil, err + } + return &CoreV1Client{client}, nil +} + +// NewForConfigOrDie creates a new CoreV1Client for the given config and +// panics if there is an error in the config. +func NewForConfigOrDie(c *rest.Config) *CoreV1Client { + client, err := NewForConfig(c) + if err != nil { + panic(err) + } + return client +} + +// New creates a new CoreV1Client for the given RESTClient. +func New(c rest.Interface) *CoreV1Client { + return &CoreV1Client{c} +} + +func setConfigDefaults(config *rest.Config) error { + gv, err := unversioned.ParseGroupVersion("/v1") + if err != nil { + return err + } + // if /v1 is not enabled, return an error + if !registered.IsEnabledVersion(gv) { + return fmt.Errorf("/v1 is not enabled") + } + config.APIPath = "/api" + if config.UserAgent == "" { + config.UserAgent = rest.DefaultKubernetesUserAgent() + } + copyGroupVersion := gv + config.GroupVersion = ©GroupVersion + + config.NegotiatedSerializer = serializer.DirectCodecFactory{CodecFactory: api.Codecs} + + return nil +} + +// RESTClient returns a RESTClient that is used to communicate +// with API server by this client implementation. +func (c *CoreV1Client) RESTClient() rest.Interface { + if c == nil { + return nil + } + return c.restClient +} diff --git a/vendor/k8s.io/client-go/1.5/kubernetes/typed/core/v1/doc.go b/vendor/k8s.io/client-go/kubernetes/typed/core/v1/doc.go similarity index 71% rename from vendor/k8s.io/client-go/1.5/kubernetes/typed/core/v1/doc.go rename to vendor/k8s.io/client-go/kubernetes/typed/core/v1/doc.go index fe27cf5c1..4971b7ec0 100644 --- a/vendor/k8s.io/client-go/1.5/kubernetes/typed/core/v1/doc.go +++ b/vendor/k8s.io/client-go/kubernetes/typed/core/v1/doc.go @@ -1,5 +1,5 @@ /* -Copyright 2016 The Kubernetes Authors. +Copyright 2017 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -14,7 +14,7 @@ See the License for the specific language governing permissions and limitations under the License. */ -// This package is generated by client-gen with arguments: --clientset-name=release_1_5 --input=[api/v1,apps/v1alpha1,authentication/v1beta1,authorization/v1beta1,autoscaling/v1,batch/v1,certificates/v1alpha1,extensions/v1beta1,policy/v1alpha1,rbac/v1alpha1,storage/v1beta1] +// This package is generated by client-gen with arguments: --clientset-name=release_1_5 --input=[api/v1,apps/v1beta1,authentication/v1beta1,authorization/v1beta1,autoscaling/v1,batch/v1,batch/v2alpha1,certificates/v1alpha1,extensions/v1beta1,policy/v1beta1,rbac/v1alpha1,storage/v1beta1] // This package has the automatically generated typed clients. package v1 diff --git a/vendor/k8s.io/client-go/1.5/kubernetes/typed/core/v1/endpoints.go b/vendor/k8s.io/client-go/kubernetes/typed/core/v1/endpoints.go similarity index 81% rename from vendor/k8s.io/client-go/1.5/kubernetes/typed/core/v1/endpoints.go rename to vendor/k8s.io/client-go/kubernetes/typed/core/v1/endpoints.go index 119e92da3..27398e6b4 100644 --- a/vendor/k8s.io/client-go/1.5/kubernetes/typed/core/v1/endpoints.go +++ b/vendor/k8s.io/client-go/kubernetes/typed/core/v1/endpoints.go @@ -1,5 +1,5 @@ /* -Copyright 2016 The Kubernetes Authors. +Copyright 2017 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -17,9 +17,10 @@ limitations under the License. package v1 import ( - api "k8s.io/client-go/1.5/pkg/api" - v1 "k8s.io/client-go/1.5/pkg/api/v1" - watch "k8s.io/client-go/1.5/pkg/watch" + api "k8s.io/client-go/pkg/api" + v1 "k8s.io/client-go/pkg/api/v1" + watch "k8s.io/client-go/pkg/watch" + rest "k8s.io/client-go/rest" ) // EndpointsGetter has a method to return a EndpointsInterface. @@ -32,25 +33,25 @@ type EndpointsGetter interface { type EndpointsInterface interface { Create(*v1.Endpoints) (*v1.Endpoints, error) Update(*v1.Endpoints) (*v1.Endpoints, error) - Delete(name string, options *api.DeleteOptions) error - DeleteCollection(options *api.DeleteOptions, listOptions api.ListOptions) error + Delete(name string, options *v1.DeleteOptions) error + DeleteCollection(options *v1.DeleteOptions, listOptions v1.ListOptions) error Get(name string) (*v1.Endpoints, error) - List(opts api.ListOptions) (*v1.EndpointsList, error) - Watch(opts api.ListOptions) (watch.Interface, error) + List(opts v1.ListOptions) (*v1.EndpointsList, error) + Watch(opts v1.ListOptions) (watch.Interface, error) Patch(name string, pt api.PatchType, data []byte, subresources ...string) (result *v1.Endpoints, err error) EndpointsExpansion } // endpoints implements EndpointsInterface type endpoints struct { - client *CoreClient + client rest.Interface ns string } // newEndpoints returns a Endpoints -func newEndpoints(c *CoreClient, namespace string) *endpoints { +func newEndpoints(c *CoreV1Client, namespace string) *endpoints { return &endpoints{ - client: c, + client: c.RESTClient(), ns: namespace, } } @@ -81,7 +82,7 @@ func (c *endpoints) Update(endpoints *v1.Endpoints) (result *v1.Endpoints, err e } // Delete takes name of the endpoints and deletes it. Returns an error if one occurs. -func (c *endpoints) Delete(name string, options *api.DeleteOptions) error { +func (c *endpoints) Delete(name string, options *v1.DeleteOptions) error { return c.client.Delete(). Namespace(c.ns). Resource("endpoints"). @@ -92,7 +93,7 @@ func (c *endpoints) Delete(name string, options *api.DeleteOptions) error { } // DeleteCollection deletes a collection of objects. -func (c *endpoints) DeleteCollection(options *api.DeleteOptions, listOptions api.ListOptions) error { +func (c *endpoints) DeleteCollection(options *v1.DeleteOptions, listOptions v1.ListOptions) error { return c.client.Delete(). Namespace(c.ns). Resource("endpoints"). @@ -115,7 +116,7 @@ func (c *endpoints) Get(name string) (result *v1.Endpoints, err error) { } // List takes label and field selectors, and returns the list of Endpoints that match those selectors. -func (c *endpoints) List(opts api.ListOptions) (result *v1.EndpointsList, err error) { +func (c *endpoints) List(opts v1.ListOptions) (result *v1.EndpointsList, err error) { result = &v1.EndpointsList{} err = c.client.Get(). Namespace(c.ns). @@ -127,7 +128,7 @@ func (c *endpoints) List(opts api.ListOptions) (result *v1.EndpointsList, err er } // Watch returns a watch.Interface that watches the requested endpoints. -func (c *endpoints) Watch(opts api.ListOptions) (watch.Interface, error) { +func (c *endpoints) Watch(opts v1.ListOptions) (watch.Interface, error) { return c.client.Get(). Prefix("watch"). Namespace(c.ns). diff --git a/vendor/k8s.io/client-go/1.5/kubernetes/typed/core/v1/event.go b/vendor/k8s.io/client-go/kubernetes/typed/core/v1/event.go similarity index 80% rename from vendor/k8s.io/client-go/1.5/kubernetes/typed/core/v1/event.go rename to vendor/k8s.io/client-go/kubernetes/typed/core/v1/event.go index e4a7ef6a9..cfd394213 100644 --- a/vendor/k8s.io/client-go/1.5/kubernetes/typed/core/v1/event.go +++ b/vendor/k8s.io/client-go/kubernetes/typed/core/v1/event.go @@ -1,5 +1,5 @@ /* -Copyright 2016 The Kubernetes Authors. +Copyright 2017 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -17,9 +17,10 @@ limitations under the License. package v1 import ( - api "k8s.io/client-go/1.5/pkg/api" - v1 "k8s.io/client-go/1.5/pkg/api/v1" - watch "k8s.io/client-go/1.5/pkg/watch" + api "k8s.io/client-go/pkg/api" + v1 "k8s.io/client-go/pkg/api/v1" + watch "k8s.io/client-go/pkg/watch" + rest "k8s.io/client-go/rest" ) // EventsGetter has a method to return a EventInterface. @@ -32,25 +33,25 @@ type EventsGetter interface { type EventInterface interface { Create(*v1.Event) (*v1.Event, error) Update(*v1.Event) (*v1.Event, error) - Delete(name string, options *api.DeleteOptions) error - DeleteCollection(options *api.DeleteOptions, listOptions api.ListOptions) error + Delete(name string, options *v1.DeleteOptions) error + DeleteCollection(options *v1.DeleteOptions, listOptions v1.ListOptions) error Get(name string) (*v1.Event, error) - List(opts api.ListOptions) (*v1.EventList, error) - Watch(opts api.ListOptions) (watch.Interface, error) + List(opts v1.ListOptions) (*v1.EventList, error) + Watch(opts v1.ListOptions) (watch.Interface, error) Patch(name string, pt api.PatchType, data []byte, subresources ...string) (result *v1.Event, err error) EventExpansion } // events implements EventInterface type events struct { - client *CoreClient + client rest.Interface ns string } // newEvents returns a Events -func newEvents(c *CoreClient, namespace string) *events { +func newEvents(c *CoreV1Client, namespace string) *events { return &events{ - client: c, + client: c.RESTClient(), ns: namespace, } } @@ -81,7 +82,7 @@ func (c *events) Update(event *v1.Event) (result *v1.Event, err error) { } // 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 { +func (c *events) Delete(name string, options *v1.DeleteOptions) error { return c.client.Delete(). Namespace(c.ns). Resource("events"). @@ -92,7 +93,7 @@ func (c *events) Delete(name string, options *api.DeleteOptions) error { } // DeleteCollection deletes a collection of objects. -func (c *events) DeleteCollection(options *api.DeleteOptions, listOptions api.ListOptions) error { +func (c *events) DeleteCollection(options *v1.DeleteOptions, listOptions v1.ListOptions) error { return c.client.Delete(). Namespace(c.ns). Resource("events"). @@ -115,7 +116,7 @@ func (c *events) Get(name string) (result *v1.Event, err error) { } // List takes label and field selectors, and returns the list of Events that match those selectors. -func (c *events) List(opts api.ListOptions) (result *v1.EventList, err error) { +func (c *events) List(opts v1.ListOptions) (result *v1.EventList, err error) { result = &v1.EventList{} err = c.client.Get(). Namespace(c.ns). @@ -127,7 +128,7 @@ func (c *events) List(opts api.ListOptions) (result *v1.EventList, err error) { } // Watch returns a watch.Interface that watches the requested events. -func (c *events) Watch(opts api.ListOptions) (watch.Interface, error) { +func (c *events) Watch(opts v1.ListOptions) (watch.Interface, error) { return c.client.Get(). Prefix("watch"). Namespace(c.ns). diff --git a/vendor/k8s.io/client-go/1.5/kubernetes/typed/core/v1/event_expansion.go b/vendor/k8s.io/client-go/kubernetes/typed/core/v1/event_expansion.go similarity index 96% rename from vendor/k8s.io/client-go/1.5/kubernetes/typed/core/v1/event_expansion.go rename to vendor/k8s.io/client-go/kubernetes/typed/core/v1/event_expansion.go index b768053ba..5a893ca2d 100644 --- a/vendor/k8s.io/client-go/1.5/kubernetes/typed/core/v1/event_expansion.go +++ b/vendor/k8s.io/client-go/kubernetes/typed/core/v1/event_expansion.go @@ -19,10 +19,10 @@ package v1 import ( "fmt" - "k8s.io/client-go/1.5/pkg/api" - "k8s.io/client-go/1.5/pkg/api/v1" - "k8s.io/client-go/1.5/pkg/fields" - "k8s.io/client-go/1.5/pkg/runtime" + "k8s.io/client-go/pkg/api" + "k8s.io/client-go/pkg/api/v1" + "k8s.io/client-go/pkg/fields" + "k8s.io/client-go/pkg/runtime" ) // The EventExpansion interface allows manually adding extra methods to the EventInterface. @@ -116,7 +116,7 @@ func (e *events) Search(objOrRef runtime.Object) (*v1.EventList, error) { refUID = &stringRefUID } fieldSelector := e.GetFieldSelector(&ref.Name, &ref.Namespace, refKind, refUID) - return e.List(api.ListOptions{FieldSelector: fieldSelector}) + return e.List(v1.ListOptions{FieldSelector: fieldSelector.String()}) } // Returns the appropriate field selector based on the API version being used to communicate with the server. diff --git a/vendor/k8s.io/client-go/1.5/kubernetes/typed/core/v1/generated_expansion.go b/vendor/k8s.io/client-go/kubernetes/typed/core/v1/generated_expansion.go similarity index 93% rename from vendor/k8s.io/client-go/1.5/kubernetes/typed/core/v1/generated_expansion.go rename to vendor/k8s.io/client-go/kubernetes/typed/core/v1/generated_expansion.go index 0039ffd03..5fe0585b4 100644 --- a/vendor/k8s.io/client-go/1.5/kubernetes/typed/core/v1/generated_expansion.go +++ b/vendor/k8s.io/client-go/kubernetes/typed/core/v1/generated_expansion.go @@ -1,5 +1,5 @@ /* -Copyright 2016 The Kubernetes Authors. +Copyright 2017 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -24,8 +24,6 @@ type EndpointsExpansion interface{} type LimitRangeExpansion interface{} -type NodeExpansion interface{} - type PersistentVolumeExpansion interface{} type PersistentVolumeClaimExpansion interface{} diff --git a/vendor/k8s.io/client-go/1.5/kubernetes/typed/core/v1/limitrange.go b/vendor/k8s.io/client-go/kubernetes/typed/core/v1/limitrange.go similarity index 81% rename from vendor/k8s.io/client-go/1.5/kubernetes/typed/core/v1/limitrange.go rename to vendor/k8s.io/client-go/kubernetes/typed/core/v1/limitrange.go index 784656901..a64a864d2 100644 --- a/vendor/k8s.io/client-go/1.5/kubernetes/typed/core/v1/limitrange.go +++ b/vendor/k8s.io/client-go/kubernetes/typed/core/v1/limitrange.go @@ -1,5 +1,5 @@ /* -Copyright 2016 The Kubernetes Authors. +Copyright 2017 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -17,9 +17,10 @@ limitations under the License. package v1 import ( - api "k8s.io/client-go/1.5/pkg/api" - v1 "k8s.io/client-go/1.5/pkg/api/v1" - watch "k8s.io/client-go/1.5/pkg/watch" + api "k8s.io/client-go/pkg/api" + v1 "k8s.io/client-go/pkg/api/v1" + watch "k8s.io/client-go/pkg/watch" + rest "k8s.io/client-go/rest" ) // LimitRangesGetter has a method to return a LimitRangeInterface. @@ -32,25 +33,25 @@ type LimitRangesGetter interface { type LimitRangeInterface interface { Create(*v1.LimitRange) (*v1.LimitRange, error) Update(*v1.LimitRange) (*v1.LimitRange, error) - Delete(name string, options *api.DeleteOptions) error - DeleteCollection(options *api.DeleteOptions, listOptions api.ListOptions) error + Delete(name string, options *v1.DeleteOptions) error + DeleteCollection(options *v1.DeleteOptions, listOptions v1.ListOptions) error Get(name string) (*v1.LimitRange, error) - List(opts api.ListOptions) (*v1.LimitRangeList, error) - Watch(opts api.ListOptions) (watch.Interface, error) + List(opts v1.ListOptions) (*v1.LimitRangeList, error) + Watch(opts v1.ListOptions) (watch.Interface, error) Patch(name string, pt api.PatchType, data []byte, subresources ...string) (result *v1.LimitRange, err error) LimitRangeExpansion } // limitRanges implements LimitRangeInterface type limitRanges struct { - client *CoreClient + client rest.Interface ns string } // newLimitRanges returns a LimitRanges -func newLimitRanges(c *CoreClient, namespace string) *limitRanges { +func newLimitRanges(c *CoreV1Client, namespace string) *limitRanges { return &limitRanges{ - client: c, + client: c.RESTClient(), ns: namespace, } } @@ -81,7 +82,7 @@ func (c *limitRanges) Update(limitRange *v1.LimitRange) (result *v1.LimitRange, } // Delete takes name of the limitRange and deletes it. Returns an error if one occurs. -func (c *limitRanges) Delete(name string, options *api.DeleteOptions) error { +func (c *limitRanges) Delete(name string, options *v1.DeleteOptions) error { return c.client.Delete(). Namespace(c.ns). Resource("limitranges"). @@ -92,7 +93,7 @@ func (c *limitRanges) Delete(name string, options *api.DeleteOptions) error { } // DeleteCollection deletes a collection of objects. -func (c *limitRanges) DeleteCollection(options *api.DeleteOptions, listOptions api.ListOptions) error { +func (c *limitRanges) DeleteCollection(options *v1.DeleteOptions, listOptions v1.ListOptions) error { return c.client.Delete(). Namespace(c.ns). Resource("limitranges"). @@ -115,7 +116,7 @@ func (c *limitRanges) Get(name string) (result *v1.LimitRange, err error) { } // List takes label and field selectors, and returns the list of LimitRanges that match those selectors. -func (c *limitRanges) List(opts api.ListOptions) (result *v1.LimitRangeList, err error) { +func (c *limitRanges) List(opts v1.ListOptions) (result *v1.LimitRangeList, err error) { result = &v1.LimitRangeList{} err = c.client.Get(). Namespace(c.ns). @@ -127,7 +128,7 @@ func (c *limitRanges) List(opts api.ListOptions) (result *v1.LimitRangeList, err } // Watch returns a watch.Interface that watches the requested limitRanges. -func (c *limitRanges) Watch(opts api.ListOptions) (watch.Interface, error) { +func (c *limitRanges) Watch(opts v1.ListOptions) (watch.Interface, error) { return c.client.Get(). Prefix("watch"). Namespace(c.ns). diff --git a/vendor/k8s.io/client-go/1.5/kubernetes/typed/core/v1/namespace.go b/vendor/k8s.io/client-go/kubernetes/typed/core/v1/namespace.go similarity index 81% rename from vendor/k8s.io/client-go/1.5/kubernetes/typed/core/v1/namespace.go rename to vendor/k8s.io/client-go/kubernetes/typed/core/v1/namespace.go index 7aed5bfd3..2598cd64e 100644 --- a/vendor/k8s.io/client-go/1.5/kubernetes/typed/core/v1/namespace.go +++ b/vendor/k8s.io/client-go/kubernetes/typed/core/v1/namespace.go @@ -1,5 +1,5 @@ /* -Copyright 2016 The Kubernetes Authors. +Copyright 2017 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -17,9 +17,10 @@ limitations under the License. package v1 import ( - api "k8s.io/client-go/1.5/pkg/api" - v1 "k8s.io/client-go/1.5/pkg/api/v1" - watch "k8s.io/client-go/1.5/pkg/watch" + api "k8s.io/client-go/pkg/api" + v1 "k8s.io/client-go/pkg/api/v1" + watch "k8s.io/client-go/pkg/watch" + rest "k8s.io/client-go/rest" ) // NamespacesGetter has a method to return a NamespaceInterface. @@ -33,24 +34,24 @@ type NamespaceInterface interface { Create(*v1.Namespace) (*v1.Namespace, error) Update(*v1.Namespace) (*v1.Namespace, error) UpdateStatus(*v1.Namespace) (*v1.Namespace, error) - Delete(name string, options *api.DeleteOptions) error - DeleteCollection(options *api.DeleteOptions, listOptions api.ListOptions) error + Delete(name string, options *v1.DeleteOptions) error + DeleteCollection(options *v1.DeleteOptions, listOptions v1.ListOptions) error Get(name string) (*v1.Namespace, error) - List(opts api.ListOptions) (*v1.NamespaceList, error) - Watch(opts api.ListOptions) (watch.Interface, error) + List(opts v1.ListOptions) (*v1.NamespaceList, error) + Watch(opts v1.ListOptions) (watch.Interface, error) Patch(name string, pt api.PatchType, data []byte, subresources ...string) (result *v1.Namespace, err error) NamespaceExpansion } // namespaces implements NamespaceInterface type namespaces struct { - client *CoreClient + client rest.Interface } // newNamespaces returns a Namespaces -func newNamespaces(c *CoreClient) *namespaces { +func newNamespaces(c *CoreV1Client) *namespaces { return &namespaces{ - client: c, + client: c.RESTClient(), } } @@ -90,7 +91,7 @@ func (c *namespaces) UpdateStatus(namespace *v1.Namespace) (result *v1.Namespace } // 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 { +func (c *namespaces) Delete(name string, options *v1.DeleteOptions) error { return c.client.Delete(). Resource("namespaces"). Name(name). @@ -100,7 +101,7 @@ func (c *namespaces) Delete(name string, options *api.DeleteOptions) error { } // DeleteCollection deletes a collection of objects. -func (c *namespaces) DeleteCollection(options *api.DeleteOptions, listOptions api.ListOptions) error { +func (c *namespaces) DeleteCollection(options *v1.DeleteOptions, listOptions v1.ListOptions) error { return c.client.Delete(). Resource("namespaces"). VersionedParams(&listOptions, api.ParameterCodec). @@ -121,7 +122,7 @@ func (c *namespaces) Get(name string) (result *v1.Namespace, err error) { } // List takes label and field selectors, and returns the list of Namespaces that match those selectors. -func (c *namespaces) List(opts api.ListOptions) (result *v1.NamespaceList, err error) { +func (c *namespaces) List(opts v1.ListOptions) (result *v1.NamespaceList, err error) { result = &v1.NamespaceList{} err = c.client.Get(). Resource("namespaces"). @@ -132,7 +133,7 @@ func (c *namespaces) List(opts api.ListOptions) (result *v1.NamespaceList, err e } // Watch returns a watch.Interface that watches the requested namespaces. -func (c *namespaces) Watch(opts api.ListOptions) (watch.Interface, error) { +func (c *namespaces) Watch(opts v1.ListOptions) (watch.Interface, error) { return c.client.Get(). Prefix("watch"). Resource("namespaces"). diff --git a/vendor/k8s.io/client-go/1.5/kubernetes/typed/core/v1/namespace_expansion.go b/vendor/k8s.io/client-go/kubernetes/typed/core/v1/namespace_expansion.go similarity index 96% rename from vendor/k8s.io/client-go/1.5/kubernetes/typed/core/v1/namespace_expansion.go rename to vendor/k8s.io/client-go/kubernetes/typed/core/v1/namespace_expansion.go index 5ab37194a..203430000 100644 --- a/vendor/k8s.io/client-go/1.5/kubernetes/typed/core/v1/namespace_expansion.go +++ b/vendor/k8s.io/client-go/kubernetes/typed/core/v1/namespace_expansion.go @@ -16,7 +16,7 @@ limitations under the License. package v1 -import "k8s.io/client-go/1.5/pkg/api/v1" +import "k8s.io/client-go/pkg/api/v1" // The NamespaceExpansion interface allows manually adding extra methods to the NamespaceInterface. type NamespaceExpansion interface { diff --git a/vendor/k8s.io/client-go/1.5/kubernetes/typed/core/v1/node.go b/vendor/k8s.io/client-go/kubernetes/typed/core/v1/node.go similarity index 81% rename from vendor/k8s.io/client-go/1.5/kubernetes/typed/core/v1/node.go rename to vendor/k8s.io/client-go/kubernetes/typed/core/v1/node.go index 26cf2e30d..6ee4302be 100644 --- a/vendor/k8s.io/client-go/1.5/kubernetes/typed/core/v1/node.go +++ b/vendor/k8s.io/client-go/kubernetes/typed/core/v1/node.go @@ -1,5 +1,5 @@ /* -Copyright 2016 The Kubernetes Authors. +Copyright 2017 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -17,9 +17,10 @@ limitations under the License. package v1 import ( - api "k8s.io/client-go/1.5/pkg/api" - v1 "k8s.io/client-go/1.5/pkg/api/v1" - watch "k8s.io/client-go/1.5/pkg/watch" + api "k8s.io/client-go/pkg/api" + v1 "k8s.io/client-go/pkg/api/v1" + watch "k8s.io/client-go/pkg/watch" + rest "k8s.io/client-go/rest" ) // NodesGetter has a method to return a NodeInterface. @@ -33,24 +34,24 @@ type NodeInterface interface { Create(*v1.Node) (*v1.Node, error) Update(*v1.Node) (*v1.Node, error) UpdateStatus(*v1.Node) (*v1.Node, error) - Delete(name string, options *api.DeleteOptions) error - DeleteCollection(options *api.DeleteOptions, listOptions api.ListOptions) error + Delete(name string, options *v1.DeleteOptions) error + DeleteCollection(options *v1.DeleteOptions, listOptions v1.ListOptions) error Get(name string) (*v1.Node, error) - List(opts api.ListOptions) (*v1.NodeList, error) - Watch(opts api.ListOptions) (watch.Interface, error) + List(opts v1.ListOptions) (*v1.NodeList, error) + Watch(opts v1.ListOptions) (watch.Interface, error) Patch(name string, pt api.PatchType, data []byte, subresources ...string) (result *v1.Node, err error) NodeExpansion } // nodes implements NodeInterface type nodes struct { - client *CoreClient + client rest.Interface } // newNodes returns a Nodes -func newNodes(c *CoreClient) *nodes { +func newNodes(c *CoreV1Client) *nodes { return &nodes{ - client: c, + client: c.RESTClient(), } } @@ -90,7 +91,7 @@ func (c *nodes) UpdateStatus(node *v1.Node) (result *v1.Node, err error) { } // Delete takes name of the node and deletes it. Returns an error if one occurs. -func (c *nodes) Delete(name string, options *api.DeleteOptions) error { +func (c *nodes) Delete(name string, options *v1.DeleteOptions) error { return c.client.Delete(). Resource("nodes"). Name(name). @@ -100,7 +101,7 @@ func (c *nodes) Delete(name string, options *api.DeleteOptions) error { } // DeleteCollection deletes a collection of objects. -func (c *nodes) DeleteCollection(options *api.DeleteOptions, listOptions api.ListOptions) error { +func (c *nodes) DeleteCollection(options *v1.DeleteOptions, listOptions v1.ListOptions) error { return c.client.Delete(). Resource("nodes"). VersionedParams(&listOptions, api.ParameterCodec). @@ -121,7 +122,7 @@ func (c *nodes) Get(name string) (result *v1.Node, err error) { } // List takes label and field selectors, and returns the list of Nodes that match those selectors. -func (c *nodes) List(opts api.ListOptions) (result *v1.NodeList, err error) { +func (c *nodes) List(opts v1.ListOptions) (result *v1.NodeList, err error) { result = &v1.NodeList{} err = c.client.Get(). Resource("nodes"). @@ -132,7 +133,7 @@ func (c *nodes) List(opts api.ListOptions) (result *v1.NodeList, err error) { } // Watch returns a watch.Interface that watches the requested nodes. -func (c *nodes) Watch(opts api.ListOptions) (watch.Interface, error) { +func (c *nodes) Watch(opts v1.ListOptions) (watch.Interface, error) { return c.client.Get(). Prefix("watch"). Resource("nodes"). diff --git a/vendor/k8s.io/client-go/kubernetes/typed/core/v1/node_expansion.go b/vendor/k8s.io/client-go/kubernetes/typed/core/v1/node_expansion.go new file mode 100644 index 000000000..748b8c6af --- /dev/null +++ b/vendor/k8s.io/client-go/kubernetes/typed/core/v1/node_expansion.go @@ -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. +*/ + +package v1 + +import ( + "k8s.io/client-go/pkg/api" + "k8s.io/client-go/pkg/api/v1" +) + +// The NodeExpansion interface allows manually adding extra methods to the NodeInterface. +type NodeExpansion interface { + // PatchStatus modifies the status of an existing node. It returns the copy + // of the node that the server returns, or an error. + PatchStatus(nodeName string, data []byte) (*v1.Node, error) +} + +// PatchStatus modifies the status of an existing node. It returns the copy of +// the node that the server returns, or an error. +func (c *nodes) PatchStatus(nodeName string, data []byte) (*v1.Node, error) { + result := &v1.Node{} + err := c.client.Patch(api.StrategicMergePatchType). + Resource("nodes"). + Name(nodeName). + SubResource("status"). + Body(data). + Do(). + Into(result) + return result, err +} diff --git a/vendor/k8s.io/client-go/1.5/kubernetes/typed/core/v1/persistentvolume.go b/vendor/k8s.io/client-go/kubernetes/typed/core/v1/persistentvolume.go similarity index 82% rename from vendor/k8s.io/client-go/1.5/kubernetes/typed/core/v1/persistentvolume.go rename to vendor/k8s.io/client-go/kubernetes/typed/core/v1/persistentvolume.go index 31cd3b6da..abe9674e7 100644 --- a/vendor/k8s.io/client-go/1.5/kubernetes/typed/core/v1/persistentvolume.go +++ b/vendor/k8s.io/client-go/kubernetes/typed/core/v1/persistentvolume.go @@ -1,5 +1,5 @@ /* -Copyright 2016 The Kubernetes Authors. +Copyright 2017 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -17,9 +17,10 @@ limitations under the License. package v1 import ( - api "k8s.io/client-go/1.5/pkg/api" - v1 "k8s.io/client-go/1.5/pkg/api/v1" - watch "k8s.io/client-go/1.5/pkg/watch" + api "k8s.io/client-go/pkg/api" + v1 "k8s.io/client-go/pkg/api/v1" + watch "k8s.io/client-go/pkg/watch" + rest "k8s.io/client-go/rest" ) // PersistentVolumesGetter has a method to return a PersistentVolumeInterface. @@ -33,24 +34,24 @@ type PersistentVolumeInterface interface { Create(*v1.PersistentVolume) (*v1.PersistentVolume, error) Update(*v1.PersistentVolume) (*v1.PersistentVolume, error) UpdateStatus(*v1.PersistentVolume) (*v1.PersistentVolume, error) - Delete(name string, options *api.DeleteOptions) error - DeleteCollection(options *api.DeleteOptions, listOptions api.ListOptions) error + Delete(name string, options *v1.DeleteOptions) error + DeleteCollection(options *v1.DeleteOptions, listOptions v1.ListOptions) error Get(name string) (*v1.PersistentVolume, error) - List(opts api.ListOptions) (*v1.PersistentVolumeList, error) - Watch(opts api.ListOptions) (watch.Interface, error) + List(opts v1.ListOptions) (*v1.PersistentVolumeList, error) + Watch(opts v1.ListOptions) (watch.Interface, error) Patch(name string, pt api.PatchType, data []byte, subresources ...string) (result *v1.PersistentVolume, err error) PersistentVolumeExpansion } // persistentVolumes implements PersistentVolumeInterface type persistentVolumes struct { - client *CoreClient + client rest.Interface } // newPersistentVolumes returns a PersistentVolumes -func newPersistentVolumes(c *CoreClient) *persistentVolumes { +func newPersistentVolumes(c *CoreV1Client) *persistentVolumes { return &persistentVolumes{ - client: c, + client: c.RESTClient(), } } @@ -90,7 +91,7 @@ func (c *persistentVolumes) UpdateStatus(persistentVolume *v1.PersistentVolume) } // Delete takes name of the persistentVolume and deletes it. Returns an error if one occurs. -func (c *persistentVolumes) Delete(name string, options *api.DeleteOptions) error { +func (c *persistentVolumes) Delete(name string, options *v1.DeleteOptions) error { return c.client.Delete(). Resource("persistentvolumes"). Name(name). @@ -100,7 +101,7 @@ func (c *persistentVolumes) Delete(name string, options *api.DeleteOptions) erro } // DeleteCollection deletes a collection of objects. -func (c *persistentVolumes) DeleteCollection(options *api.DeleteOptions, listOptions api.ListOptions) error { +func (c *persistentVolumes) DeleteCollection(options *v1.DeleteOptions, listOptions v1.ListOptions) error { return c.client.Delete(). Resource("persistentvolumes"). VersionedParams(&listOptions, api.ParameterCodec). @@ -121,7 +122,7 @@ func (c *persistentVolumes) Get(name string) (result *v1.PersistentVolume, err e } // List takes label and field selectors, and returns the list of PersistentVolumes that match those selectors. -func (c *persistentVolumes) List(opts api.ListOptions) (result *v1.PersistentVolumeList, err error) { +func (c *persistentVolumes) List(opts v1.ListOptions) (result *v1.PersistentVolumeList, err error) { result = &v1.PersistentVolumeList{} err = c.client.Get(). Resource("persistentvolumes"). @@ -132,7 +133,7 @@ func (c *persistentVolumes) List(opts api.ListOptions) (result *v1.PersistentVol } // Watch returns a watch.Interface that watches the requested persistentVolumes. -func (c *persistentVolumes) Watch(opts api.ListOptions) (watch.Interface, error) { +func (c *persistentVolumes) Watch(opts v1.ListOptions) (watch.Interface, error) { return c.client.Get(). Prefix("watch"). Resource("persistentvolumes"). diff --git a/vendor/k8s.io/client-go/1.5/kubernetes/typed/core/v1/persistentvolumeclaim.go b/vendor/k8s.io/client-go/kubernetes/typed/core/v1/persistentvolumeclaim.go similarity index 83% rename from vendor/k8s.io/client-go/1.5/kubernetes/typed/core/v1/persistentvolumeclaim.go rename to vendor/k8s.io/client-go/kubernetes/typed/core/v1/persistentvolumeclaim.go index aa2a996c9..34e902f56 100644 --- a/vendor/k8s.io/client-go/1.5/kubernetes/typed/core/v1/persistentvolumeclaim.go +++ b/vendor/k8s.io/client-go/kubernetes/typed/core/v1/persistentvolumeclaim.go @@ -1,5 +1,5 @@ /* -Copyright 2016 The Kubernetes Authors. +Copyright 2017 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -17,9 +17,10 @@ limitations under the License. package v1 import ( - api "k8s.io/client-go/1.5/pkg/api" - v1 "k8s.io/client-go/1.5/pkg/api/v1" - watch "k8s.io/client-go/1.5/pkg/watch" + api "k8s.io/client-go/pkg/api" + v1 "k8s.io/client-go/pkg/api/v1" + watch "k8s.io/client-go/pkg/watch" + rest "k8s.io/client-go/rest" ) // PersistentVolumeClaimsGetter has a method to return a PersistentVolumeClaimInterface. @@ -33,25 +34,25 @@ type PersistentVolumeClaimInterface interface { Create(*v1.PersistentVolumeClaim) (*v1.PersistentVolumeClaim, error) Update(*v1.PersistentVolumeClaim) (*v1.PersistentVolumeClaim, error) UpdateStatus(*v1.PersistentVolumeClaim) (*v1.PersistentVolumeClaim, error) - Delete(name string, options *api.DeleteOptions) error - DeleteCollection(options *api.DeleteOptions, listOptions api.ListOptions) error + Delete(name string, options *v1.DeleteOptions) error + DeleteCollection(options *v1.DeleteOptions, listOptions v1.ListOptions) error Get(name string) (*v1.PersistentVolumeClaim, error) - List(opts api.ListOptions) (*v1.PersistentVolumeClaimList, error) - Watch(opts api.ListOptions) (watch.Interface, error) + List(opts v1.ListOptions) (*v1.PersistentVolumeClaimList, error) + Watch(opts v1.ListOptions) (watch.Interface, error) Patch(name string, pt api.PatchType, data []byte, subresources ...string) (result *v1.PersistentVolumeClaim, err error) PersistentVolumeClaimExpansion } // persistentVolumeClaims implements PersistentVolumeClaimInterface type persistentVolumeClaims struct { - client *CoreClient + client rest.Interface ns string } // newPersistentVolumeClaims returns a PersistentVolumeClaims -func newPersistentVolumeClaims(c *CoreClient, namespace string) *persistentVolumeClaims { +func newPersistentVolumeClaims(c *CoreV1Client, namespace string) *persistentVolumeClaims { return &persistentVolumeClaims{ - client: c, + client: c.RESTClient(), ns: namespace, } } @@ -95,7 +96,7 @@ func (c *persistentVolumeClaims) UpdateStatus(persistentVolumeClaim *v1.Persiste } // Delete takes name of the persistentVolumeClaim and deletes it. Returns an error if one occurs. -func (c *persistentVolumeClaims) Delete(name string, options *api.DeleteOptions) error { +func (c *persistentVolumeClaims) Delete(name string, options *v1.DeleteOptions) error { return c.client.Delete(). Namespace(c.ns). Resource("persistentvolumeclaims"). @@ -106,7 +107,7 @@ func (c *persistentVolumeClaims) Delete(name string, options *api.DeleteOptions) } // DeleteCollection deletes a collection of objects. -func (c *persistentVolumeClaims) DeleteCollection(options *api.DeleteOptions, listOptions api.ListOptions) error { +func (c *persistentVolumeClaims) DeleteCollection(options *v1.DeleteOptions, listOptions v1.ListOptions) error { return c.client.Delete(). Namespace(c.ns). Resource("persistentvolumeclaims"). @@ -129,7 +130,7 @@ func (c *persistentVolumeClaims) Get(name string) (result *v1.PersistentVolumeCl } // List takes label and field selectors, and returns the list of PersistentVolumeClaims that match those selectors. -func (c *persistentVolumeClaims) List(opts api.ListOptions) (result *v1.PersistentVolumeClaimList, err error) { +func (c *persistentVolumeClaims) List(opts v1.ListOptions) (result *v1.PersistentVolumeClaimList, err error) { result = &v1.PersistentVolumeClaimList{} err = c.client.Get(). Namespace(c.ns). @@ -141,7 +142,7 @@ func (c *persistentVolumeClaims) List(opts api.ListOptions) (result *v1.Persiste } // Watch returns a watch.Interface that watches the requested persistentVolumeClaims. -func (c *persistentVolumeClaims) Watch(opts api.ListOptions) (watch.Interface, error) { +func (c *persistentVolumeClaims) Watch(opts v1.ListOptions) (watch.Interface, error) { return c.client.Get(). Prefix("watch"). Namespace(c.ns). diff --git a/vendor/k8s.io/client-go/1.5/kubernetes/typed/core/v1/pod.go b/vendor/k8s.io/client-go/kubernetes/typed/core/v1/pod.go similarity index 81% rename from vendor/k8s.io/client-go/1.5/kubernetes/typed/core/v1/pod.go rename to vendor/k8s.io/client-go/kubernetes/typed/core/v1/pod.go index ad6e0eb20..1e90e3699 100644 --- a/vendor/k8s.io/client-go/1.5/kubernetes/typed/core/v1/pod.go +++ b/vendor/k8s.io/client-go/kubernetes/typed/core/v1/pod.go @@ -1,5 +1,5 @@ /* -Copyright 2016 The Kubernetes Authors. +Copyright 2017 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -17,9 +17,10 @@ limitations under the License. package v1 import ( - api "k8s.io/client-go/1.5/pkg/api" - v1 "k8s.io/client-go/1.5/pkg/api/v1" - watch "k8s.io/client-go/1.5/pkg/watch" + api "k8s.io/client-go/pkg/api" + v1 "k8s.io/client-go/pkg/api/v1" + watch "k8s.io/client-go/pkg/watch" + rest "k8s.io/client-go/rest" ) // PodsGetter has a method to return a PodInterface. @@ -33,25 +34,25 @@ type PodInterface interface { Create(*v1.Pod) (*v1.Pod, error) Update(*v1.Pod) (*v1.Pod, error) UpdateStatus(*v1.Pod) (*v1.Pod, error) - Delete(name string, options *api.DeleteOptions) error - DeleteCollection(options *api.DeleteOptions, listOptions api.ListOptions) error + Delete(name string, options *v1.DeleteOptions) error + DeleteCollection(options *v1.DeleteOptions, listOptions v1.ListOptions) error Get(name string) (*v1.Pod, error) - List(opts api.ListOptions) (*v1.PodList, error) - Watch(opts api.ListOptions) (watch.Interface, error) + List(opts v1.ListOptions) (*v1.PodList, error) + Watch(opts v1.ListOptions) (watch.Interface, error) Patch(name string, pt api.PatchType, data []byte, subresources ...string) (result *v1.Pod, err error) PodExpansion } // pods implements PodInterface type pods struct { - client *CoreClient + client rest.Interface ns string } // newPods returns a Pods -func newPods(c *CoreClient, namespace string) *pods { +func newPods(c *CoreV1Client, namespace string) *pods { return &pods{ - client: c, + client: c.RESTClient(), ns: namespace, } } @@ -95,7 +96,7 @@ func (c *pods) UpdateStatus(pod *v1.Pod) (result *v1.Pod, err error) { } // Delete takes name of the pod and deletes it. Returns an error if one occurs. -func (c *pods) Delete(name string, options *api.DeleteOptions) error { +func (c *pods) Delete(name string, options *v1.DeleteOptions) error { return c.client.Delete(). Namespace(c.ns). Resource("pods"). @@ -106,7 +107,7 @@ func (c *pods) Delete(name string, options *api.DeleteOptions) error { } // DeleteCollection deletes a collection of objects. -func (c *pods) DeleteCollection(options *api.DeleteOptions, listOptions api.ListOptions) error { +func (c *pods) DeleteCollection(options *v1.DeleteOptions, listOptions v1.ListOptions) error { return c.client.Delete(). Namespace(c.ns). Resource("pods"). @@ -129,7 +130,7 @@ func (c *pods) Get(name string) (result *v1.Pod, err error) { } // List takes label and field selectors, and returns the list of Pods that match those selectors. -func (c *pods) List(opts api.ListOptions) (result *v1.PodList, err error) { +func (c *pods) List(opts v1.ListOptions) (result *v1.PodList, err error) { result = &v1.PodList{} err = c.client.Get(). Namespace(c.ns). @@ -141,7 +142,7 @@ func (c *pods) List(opts api.ListOptions) (result *v1.PodList, err error) { } // Watch returns a watch.Interface that watches the requested pods. -func (c *pods) Watch(opts api.ListOptions) (watch.Interface, error) { +func (c *pods) Watch(opts v1.ListOptions) (watch.Interface, error) { return c.client.Get(). Prefix("watch"). Namespace(c.ns). diff --git a/vendor/k8s.io/client-go/1.5/kubernetes/typed/core/v1/pod_expansion.go b/vendor/k8s.io/client-go/kubernetes/typed/core/v1/pod_expansion.go similarity index 91% rename from vendor/k8s.io/client-go/1.5/kubernetes/typed/core/v1/pod_expansion.go rename to vendor/k8s.io/client-go/kubernetes/typed/core/v1/pod_expansion.go index a2a85a3f8..c54ba6a7a 100644 --- a/vendor/k8s.io/client-go/1.5/kubernetes/typed/core/v1/pod_expansion.go +++ b/vendor/k8s.io/client-go/kubernetes/typed/core/v1/pod_expansion.go @@ -17,10 +17,10 @@ limitations under the License. package v1 import ( - "k8s.io/client-go/1.5/pkg/api" - "k8s.io/client-go/1.5/pkg/api/v1" - policy "k8s.io/client-go/1.5/pkg/apis/policy/v1alpha1" - "k8s.io/client-go/1.5/rest" + "k8s.io/client-go/pkg/api" + "k8s.io/client-go/pkg/api/v1" + policy "k8s.io/client-go/pkg/apis/policy/v1beta1" + "k8s.io/client-go/rest" ) // The PodExpansion interface allows manually adding extra methods to the PodInterface. diff --git a/vendor/k8s.io/client-go/1.5/kubernetes/typed/core/v1/podtemplate.go b/vendor/k8s.io/client-go/kubernetes/typed/core/v1/podtemplate.go similarity index 81% rename from vendor/k8s.io/client-go/1.5/kubernetes/typed/core/v1/podtemplate.go rename to vendor/k8s.io/client-go/kubernetes/typed/core/v1/podtemplate.go index 98788ea6d..158a8ed2e 100644 --- a/vendor/k8s.io/client-go/1.5/kubernetes/typed/core/v1/podtemplate.go +++ b/vendor/k8s.io/client-go/kubernetes/typed/core/v1/podtemplate.go @@ -1,5 +1,5 @@ /* -Copyright 2016 The Kubernetes Authors. +Copyright 2017 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -17,9 +17,10 @@ limitations under the License. package v1 import ( - api "k8s.io/client-go/1.5/pkg/api" - v1 "k8s.io/client-go/1.5/pkg/api/v1" - watch "k8s.io/client-go/1.5/pkg/watch" + api "k8s.io/client-go/pkg/api" + v1 "k8s.io/client-go/pkg/api/v1" + watch "k8s.io/client-go/pkg/watch" + rest "k8s.io/client-go/rest" ) // PodTemplatesGetter has a method to return a PodTemplateInterface. @@ -32,25 +33,25 @@ type PodTemplatesGetter interface { type PodTemplateInterface interface { Create(*v1.PodTemplate) (*v1.PodTemplate, error) Update(*v1.PodTemplate) (*v1.PodTemplate, error) - Delete(name string, options *api.DeleteOptions) error - DeleteCollection(options *api.DeleteOptions, listOptions api.ListOptions) error + Delete(name string, options *v1.DeleteOptions) error + DeleteCollection(options *v1.DeleteOptions, listOptions v1.ListOptions) error Get(name string) (*v1.PodTemplate, error) - List(opts api.ListOptions) (*v1.PodTemplateList, error) - Watch(opts api.ListOptions) (watch.Interface, error) + List(opts v1.ListOptions) (*v1.PodTemplateList, error) + Watch(opts v1.ListOptions) (watch.Interface, error) Patch(name string, pt api.PatchType, data []byte, subresources ...string) (result *v1.PodTemplate, err error) PodTemplateExpansion } // podTemplates implements PodTemplateInterface type podTemplates struct { - client *CoreClient + client rest.Interface ns string } // newPodTemplates returns a PodTemplates -func newPodTemplates(c *CoreClient, namespace string) *podTemplates { +func newPodTemplates(c *CoreV1Client, namespace string) *podTemplates { return &podTemplates{ - client: c, + client: c.RESTClient(), ns: namespace, } } @@ -81,7 +82,7 @@ func (c *podTemplates) Update(podTemplate *v1.PodTemplate) (result *v1.PodTempla } // Delete takes name of the podTemplate and deletes it. Returns an error if one occurs. -func (c *podTemplates) Delete(name string, options *api.DeleteOptions) error { +func (c *podTemplates) Delete(name string, options *v1.DeleteOptions) error { return c.client.Delete(). Namespace(c.ns). Resource("podtemplates"). @@ -92,7 +93,7 @@ func (c *podTemplates) Delete(name string, options *api.DeleteOptions) error { } // DeleteCollection deletes a collection of objects. -func (c *podTemplates) DeleteCollection(options *api.DeleteOptions, listOptions api.ListOptions) error { +func (c *podTemplates) DeleteCollection(options *v1.DeleteOptions, listOptions v1.ListOptions) error { return c.client.Delete(). Namespace(c.ns). Resource("podtemplates"). @@ -115,7 +116,7 @@ func (c *podTemplates) Get(name string) (result *v1.PodTemplate, err error) { } // List takes label and field selectors, and returns the list of PodTemplates that match those selectors. -func (c *podTemplates) List(opts api.ListOptions) (result *v1.PodTemplateList, err error) { +func (c *podTemplates) List(opts v1.ListOptions) (result *v1.PodTemplateList, err error) { result = &v1.PodTemplateList{} err = c.client.Get(). Namespace(c.ns). @@ -127,7 +128,7 @@ func (c *podTemplates) List(opts api.ListOptions) (result *v1.PodTemplateList, e } // Watch returns a watch.Interface that watches the requested podTemplates. -func (c *podTemplates) Watch(opts api.ListOptions) (watch.Interface, error) { +func (c *podTemplates) Watch(opts v1.ListOptions) (watch.Interface, error) { return c.client.Get(). Prefix("watch"). Namespace(c.ns). diff --git a/vendor/k8s.io/client-go/1.5/kubernetes/typed/core/v1/replicationcontroller.go b/vendor/k8s.io/client-go/kubernetes/typed/core/v1/replicationcontroller.go similarity index 83% rename from vendor/k8s.io/client-go/1.5/kubernetes/typed/core/v1/replicationcontroller.go rename to vendor/k8s.io/client-go/kubernetes/typed/core/v1/replicationcontroller.go index eb4f789ec..b8be409d5 100644 --- a/vendor/k8s.io/client-go/1.5/kubernetes/typed/core/v1/replicationcontroller.go +++ b/vendor/k8s.io/client-go/kubernetes/typed/core/v1/replicationcontroller.go @@ -1,5 +1,5 @@ /* -Copyright 2016 The Kubernetes Authors. +Copyright 2017 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -17,9 +17,10 @@ limitations under the License. package v1 import ( - api "k8s.io/client-go/1.5/pkg/api" - v1 "k8s.io/client-go/1.5/pkg/api/v1" - watch "k8s.io/client-go/1.5/pkg/watch" + api "k8s.io/client-go/pkg/api" + v1 "k8s.io/client-go/pkg/api/v1" + watch "k8s.io/client-go/pkg/watch" + rest "k8s.io/client-go/rest" ) // ReplicationControllersGetter has a method to return a ReplicationControllerInterface. @@ -33,25 +34,25 @@ type ReplicationControllerInterface interface { Create(*v1.ReplicationController) (*v1.ReplicationController, error) Update(*v1.ReplicationController) (*v1.ReplicationController, error) UpdateStatus(*v1.ReplicationController) (*v1.ReplicationController, error) - Delete(name string, options *api.DeleteOptions) error - DeleteCollection(options *api.DeleteOptions, listOptions api.ListOptions) error + Delete(name string, options *v1.DeleteOptions) error + DeleteCollection(options *v1.DeleteOptions, listOptions v1.ListOptions) error Get(name string) (*v1.ReplicationController, error) - List(opts api.ListOptions) (*v1.ReplicationControllerList, error) - Watch(opts api.ListOptions) (watch.Interface, error) + List(opts v1.ListOptions) (*v1.ReplicationControllerList, error) + Watch(opts v1.ListOptions) (watch.Interface, error) Patch(name string, pt api.PatchType, data []byte, subresources ...string) (result *v1.ReplicationController, err error) ReplicationControllerExpansion } // replicationControllers implements ReplicationControllerInterface type replicationControllers struct { - client *CoreClient + client rest.Interface ns string } // newReplicationControllers returns a ReplicationControllers -func newReplicationControllers(c *CoreClient, namespace string) *replicationControllers { +func newReplicationControllers(c *CoreV1Client, namespace string) *replicationControllers { return &replicationControllers{ - client: c, + client: c.RESTClient(), ns: namespace, } } @@ -95,7 +96,7 @@ func (c *replicationControllers) UpdateStatus(replicationController *v1.Replicat } // Delete takes name of the replicationController and deletes it. Returns an error if one occurs. -func (c *replicationControllers) Delete(name string, options *api.DeleteOptions) error { +func (c *replicationControllers) Delete(name string, options *v1.DeleteOptions) error { return c.client.Delete(). Namespace(c.ns). Resource("replicationcontrollers"). @@ -106,7 +107,7 @@ func (c *replicationControllers) Delete(name string, options *api.DeleteOptions) } // DeleteCollection deletes a collection of objects. -func (c *replicationControllers) DeleteCollection(options *api.DeleteOptions, listOptions api.ListOptions) error { +func (c *replicationControllers) DeleteCollection(options *v1.DeleteOptions, listOptions v1.ListOptions) error { return c.client.Delete(). Namespace(c.ns). Resource("replicationcontrollers"). @@ -129,7 +130,7 @@ func (c *replicationControllers) Get(name string) (result *v1.ReplicationControl } // List takes label and field selectors, and returns the list of ReplicationControllers that match those selectors. -func (c *replicationControllers) List(opts api.ListOptions) (result *v1.ReplicationControllerList, err error) { +func (c *replicationControllers) List(opts v1.ListOptions) (result *v1.ReplicationControllerList, err error) { result = &v1.ReplicationControllerList{} err = c.client.Get(). Namespace(c.ns). @@ -141,7 +142,7 @@ func (c *replicationControllers) List(opts api.ListOptions) (result *v1.Replicat } // Watch returns a watch.Interface that watches the requested replicationControllers. -func (c *replicationControllers) Watch(opts api.ListOptions) (watch.Interface, error) { +func (c *replicationControllers) Watch(opts v1.ListOptions) (watch.Interface, error) { return c.client.Get(). Prefix("watch"). Namespace(c.ns). diff --git a/vendor/k8s.io/client-go/1.5/kubernetes/typed/core/v1/resourcequota.go b/vendor/k8s.io/client-go/kubernetes/typed/core/v1/resourcequota.go similarity index 82% rename from vendor/k8s.io/client-go/1.5/kubernetes/typed/core/v1/resourcequota.go rename to vendor/k8s.io/client-go/kubernetes/typed/core/v1/resourcequota.go index 0b58bcf20..b4ed6b361 100644 --- a/vendor/k8s.io/client-go/1.5/kubernetes/typed/core/v1/resourcequota.go +++ b/vendor/k8s.io/client-go/kubernetes/typed/core/v1/resourcequota.go @@ -1,5 +1,5 @@ /* -Copyright 2016 The Kubernetes Authors. +Copyright 2017 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -17,9 +17,10 @@ limitations under the License. package v1 import ( - api "k8s.io/client-go/1.5/pkg/api" - v1 "k8s.io/client-go/1.5/pkg/api/v1" - watch "k8s.io/client-go/1.5/pkg/watch" + api "k8s.io/client-go/pkg/api" + v1 "k8s.io/client-go/pkg/api/v1" + watch "k8s.io/client-go/pkg/watch" + rest "k8s.io/client-go/rest" ) // ResourceQuotasGetter has a method to return a ResourceQuotaInterface. @@ -33,25 +34,25 @@ type ResourceQuotaInterface interface { Create(*v1.ResourceQuota) (*v1.ResourceQuota, error) Update(*v1.ResourceQuota) (*v1.ResourceQuota, error) UpdateStatus(*v1.ResourceQuota) (*v1.ResourceQuota, error) - Delete(name string, options *api.DeleteOptions) error - DeleteCollection(options *api.DeleteOptions, listOptions api.ListOptions) error + Delete(name string, options *v1.DeleteOptions) error + DeleteCollection(options *v1.DeleteOptions, listOptions v1.ListOptions) error Get(name string) (*v1.ResourceQuota, error) - List(opts api.ListOptions) (*v1.ResourceQuotaList, error) - Watch(opts api.ListOptions) (watch.Interface, error) + List(opts v1.ListOptions) (*v1.ResourceQuotaList, error) + Watch(opts v1.ListOptions) (watch.Interface, error) Patch(name string, pt api.PatchType, data []byte, subresources ...string) (result *v1.ResourceQuota, err error) ResourceQuotaExpansion } // resourceQuotas implements ResourceQuotaInterface type resourceQuotas struct { - client *CoreClient + client rest.Interface ns string } // newResourceQuotas returns a ResourceQuotas -func newResourceQuotas(c *CoreClient, namespace string) *resourceQuotas { +func newResourceQuotas(c *CoreV1Client, namespace string) *resourceQuotas { return &resourceQuotas{ - client: c, + client: c.RESTClient(), ns: namespace, } } @@ -95,7 +96,7 @@ func (c *resourceQuotas) UpdateStatus(resourceQuota *v1.ResourceQuota) (result * } // Delete takes name of the resourceQuota and deletes it. Returns an error if one occurs. -func (c *resourceQuotas) Delete(name string, options *api.DeleteOptions) error { +func (c *resourceQuotas) Delete(name string, options *v1.DeleteOptions) error { return c.client.Delete(). Namespace(c.ns). Resource("resourcequotas"). @@ -106,7 +107,7 @@ func (c *resourceQuotas) Delete(name string, options *api.DeleteOptions) error { } // DeleteCollection deletes a collection of objects. -func (c *resourceQuotas) DeleteCollection(options *api.DeleteOptions, listOptions api.ListOptions) error { +func (c *resourceQuotas) DeleteCollection(options *v1.DeleteOptions, listOptions v1.ListOptions) error { return c.client.Delete(). Namespace(c.ns). Resource("resourcequotas"). @@ -129,7 +130,7 @@ func (c *resourceQuotas) Get(name string) (result *v1.ResourceQuota, err error) } // List takes label and field selectors, and returns the list of ResourceQuotas that match those selectors. -func (c *resourceQuotas) List(opts api.ListOptions) (result *v1.ResourceQuotaList, err error) { +func (c *resourceQuotas) List(opts v1.ListOptions) (result *v1.ResourceQuotaList, err error) { result = &v1.ResourceQuotaList{} err = c.client.Get(). Namespace(c.ns). @@ -141,7 +142,7 @@ func (c *resourceQuotas) List(opts api.ListOptions) (result *v1.ResourceQuotaLis } // Watch returns a watch.Interface that watches the requested resourceQuotas. -func (c *resourceQuotas) Watch(opts api.ListOptions) (watch.Interface, error) { +func (c *resourceQuotas) Watch(opts v1.ListOptions) (watch.Interface, error) { return c.client.Get(). Prefix("watch"). Namespace(c.ns). diff --git a/vendor/k8s.io/client-go/1.5/kubernetes/typed/core/v1/secret.go b/vendor/k8s.io/client-go/kubernetes/typed/core/v1/secret.go similarity index 80% rename from vendor/k8s.io/client-go/1.5/kubernetes/typed/core/v1/secret.go rename to vendor/k8s.io/client-go/kubernetes/typed/core/v1/secret.go index 611b59c01..7911d3386 100644 --- a/vendor/k8s.io/client-go/1.5/kubernetes/typed/core/v1/secret.go +++ b/vendor/k8s.io/client-go/kubernetes/typed/core/v1/secret.go @@ -1,5 +1,5 @@ /* -Copyright 2016 The Kubernetes Authors. +Copyright 2017 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -17,9 +17,10 @@ limitations under the License. package v1 import ( - api "k8s.io/client-go/1.5/pkg/api" - v1 "k8s.io/client-go/1.5/pkg/api/v1" - watch "k8s.io/client-go/1.5/pkg/watch" + api "k8s.io/client-go/pkg/api" + v1 "k8s.io/client-go/pkg/api/v1" + watch "k8s.io/client-go/pkg/watch" + rest "k8s.io/client-go/rest" ) // SecretsGetter has a method to return a SecretInterface. @@ -32,25 +33,25 @@ type SecretsGetter interface { type SecretInterface interface { Create(*v1.Secret) (*v1.Secret, error) Update(*v1.Secret) (*v1.Secret, error) - Delete(name string, options *api.DeleteOptions) error - DeleteCollection(options *api.DeleteOptions, listOptions api.ListOptions) error + Delete(name string, options *v1.DeleteOptions) error + DeleteCollection(options *v1.DeleteOptions, listOptions v1.ListOptions) error Get(name string) (*v1.Secret, error) - List(opts api.ListOptions) (*v1.SecretList, error) - Watch(opts api.ListOptions) (watch.Interface, error) + List(opts v1.ListOptions) (*v1.SecretList, error) + Watch(opts v1.ListOptions) (watch.Interface, error) Patch(name string, pt api.PatchType, data []byte, subresources ...string) (result *v1.Secret, err error) SecretExpansion } // secrets implements SecretInterface type secrets struct { - client *CoreClient + client rest.Interface ns string } // newSecrets returns a Secrets -func newSecrets(c *CoreClient, namespace string) *secrets { +func newSecrets(c *CoreV1Client, namespace string) *secrets { return &secrets{ - client: c, + client: c.RESTClient(), ns: namespace, } } @@ -81,7 +82,7 @@ func (c *secrets) Update(secret *v1.Secret) (result *v1.Secret, err error) { } // 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 { +func (c *secrets) Delete(name string, options *v1.DeleteOptions) error { return c.client.Delete(). Namespace(c.ns). Resource("secrets"). @@ -92,7 +93,7 @@ func (c *secrets) Delete(name string, options *api.DeleteOptions) error { } // DeleteCollection deletes a collection of objects. -func (c *secrets) DeleteCollection(options *api.DeleteOptions, listOptions api.ListOptions) error { +func (c *secrets) DeleteCollection(options *v1.DeleteOptions, listOptions v1.ListOptions) error { return c.client.Delete(). Namespace(c.ns). Resource("secrets"). @@ -115,7 +116,7 @@ func (c *secrets) Get(name string) (result *v1.Secret, err error) { } // List takes label and field selectors, and returns the list of Secrets that match those selectors. -func (c *secrets) List(opts api.ListOptions) (result *v1.SecretList, err error) { +func (c *secrets) List(opts v1.ListOptions) (result *v1.SecretList, err error) { result = &v1.SecretList{} err = c.client.Get(). Namespace(c.ns). @@ -127,7 +128,7 @@ func (c *secrets) List(opts api.ListOptions) (result *v1.SecretList, err error) } // Watch returns a watch.Interface that watches the requested secrets. -func (c *secrets) Watch(opts api.ListOptions) (watch.Interface, error) { +func (c *secrets) Watch(opts v1.ListOptions) (watch.Interface, error) { return c.client.Get(). Prefix("watch"). Namespace(c.ns). diff --git a/vendor/k8s.io/client-go/1.5/kubernetes/typed/core/v1/service.go b/vendor/k8s.io/client-go/kubernetes/typed/core/v1/service.go similarity index 82% rename from vendor/k8s.io/client-go/1.5/kubernetes/typed/core/v1/service.go rename to vendor/k8s.io/client-go/kubernetes/typed/core/v1/service.go index d40efde6e..74675c9ce 100644 --- a/vendor/k8s.io/client-go/1.5/kubernetes/typed/core/v1/service.go +++ b/vendor/k8s.io/client-go/kubernetes/typed/core/v1/service.go @@ -1,5 +1,5 @@ /* -Copyright 2016 The Kubernetes Authors. +Copyright 2017 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -17,9 +17,10 @@ limitations under the License. package v1 import ( - api "k8s.io/client-go/1.5/pkg/api" - v1 "k8s.io/client-go/1.5/pkg/api/v1" - watch "k8s.io/client-go/1.5/pkg/watch" + api "k8s.io/client-go/pkg/api" + v1 "k8s.io/client-go/pkg/api/v1" + watch "k8s.io/client-go/pkg/watch" + rest "k8s.io/client-go/rest" ) // ServicesGetter has a method to return a ServiceInterface. @@ -33,25 +34,25 @@ type ServiceInterface interface { Create(*v1.Service) (*v1.Service, error) Update(*v1.Service) (*v1.Service, error) UpdateStatus(*v1.Service) (*v1.Service, error) - Delete(name string, options *api.DeleteOptions) error - DeleteCollection(options *api.DeleteOptions, listOptions api.ListOptions) error + Delete(name string, options *v1.DeleteOptions) error + DeleteCollection(options *v1.DeleteOptions, listOptions v1.ListOptions) error Get(name string) (*v1.Service, error) - List(opts api.ListOptions) (*v1.ServiceList, error) - Watch(opts api.ListOptions) (watch.Interface, error) + List(opts v1.ListOptions) (*v1.ServiceList, error) + Watch(opts v1.ListOptions) (watch.Interface, error) Patch(name string, pt api.PatchType, data []byte, subresources ...string) (result *v1.Service, err error) ServiceExpansion } // services implements ServiceInterface type services struct { - client *CoreClient + client rest.Interface ns string } // newServices returns a Services -func newServices(c *CoreClient, namespace string) *services { +func newServices(c *CoreV1Client, namespace string) *services { return &services{ - client: c, + client: c.RESTClient(), ns: namespace, } } @@ -95,7 +96,7 @@ func (c *services) UpdateStatus(service *v1.Service) (result *v1.Service, err er } // Delete takes name of the service and deletes it. Returns an error if one occurs. -func (c *services) Delete(name string, options *api.DeleteOptions) error { +func (c *services) Delete(name string, options *v1.DeleteOptions) error { return c.client.Delete(). Namespace(c.ns). Resource("services"). @@ -106,7 +107,7 @@ func (c *services) Delete(name string, options *api.DeleteOptions) error { } // DeleteCollection deletes a collection of objects. -func (c *services) DeleteCollection(options *api.DeleteOptions, listOptions api.ListOptions) error { +func (c *services) DeleteCollection(options *v1.DeleteOptions, listOptions v1.ListOptions) error { return c.client.Delete(). Namespace(c.ns). Resource("services"). @@ -129,7 +130,7 @@ func (c *services) Get(name string) (result *v1.Service, err error) { } // List takes label and field selectors, and returns the list of Services that match those selectors. -func (c *services) List(opts api.ListOptions) (result *v1.ServiceList, err error) { +func (c *services) List(opts v1.ListOptions) (result *v1.ServiceList, err error) { result = &v1.ServiceList{} err = c.client.Get(). Namespace(c.ns). @@ -141,7 +142,7 @@ func (c *services) List(opts api.ListOptions) (result *v1.ServiceList, err error } // Watch returns a watch.Interface that watches the requested services. -func (c *services) Watch(opts api.ListOptions) (watch.Interface, error) { +func (c *services) Watch(opts v1.ListOptions) (watch.Interface, error) { return c.client.Get(). Prefix("watch"). Namespace(c.ns). diff --git a/vendor/k8s.io/client-go/1.5/kubernetes/typed/core/v1/service_expansion.go b/vendor/k8s.io/client-go/kubernetes/typed/core/v1/service_expansion.go similarity index 94% rename from vendor/k8s.io/client-go/1.5/kubernetes/typed/core/v1/service_expansion.go rename to vendor/k8s.io/client-go/kubernetes/typed/core/v1/service_expansion.go index 89d69f860..687589c26 100644 --- a/vendor/k8s.io/client-go/1.5/kubernetes/typed/core/v1/service_expansion.go +++ b/vendor/k8s.io/client-go/kubernetes/typed/core/v1/service_expansion.go @@ -17,8 +17,8 @@ limitations under the License. package v1 import ( - "k8s.io/client-go/1.5/pkg/util/net" - "k8s.io/client-go/1.5/rest" + "k8s.io/client-go/pkg/util/net" + "k8s.io/client-go/rest" ) // The ServiceExpansion interface allows manually adding extra methods to the ServiceInterface. diff --git a/vendor/k8s.io/client-go/1.5/kubernetes/typed/core/v1/serviceaccount.go b/vendor/k8s.io/client-go/kubernetes/typed/core/v1/serviceaccount.go similarity index 81% rename from vendor/k8s.io/client-go/1.5/kubernetes/typed/core/v1/serviceaccount.go rename to vendor/k8s.io/client-go/kubernetes/typed/core/v1/serviceaccount.go index ce8cc882e..8aab6ac87 100644 --- a/vendor/k8s.io/client-go/1.5/kubernetes/typed/core/v1/serviceaccount.go +++ b/vendor/k8s.io/client-go/kubernetes/typed/core/v1/serviceaccount.go @@ -1,5 +1,5 @@ /* -Copyright 2016 The Kubernetes Authors. +Copyright 2017 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -17,9 +17,10 @@ limitations under the License. package v1 import ( - api "k8s.io/client-go/1.5/pkg/api" - v1 "k8s.io/client-go/1.5/pkg/api/v1" - watch "k8s.io/client-go/1.5/pkg/watch" + api "k8s.io/client-go/pkg/api" + v1 "k8s.io/client-go/pkg/api/v1" + watch "k8s.io/client-go/pkg/watch" + rest "k8s.io/client-go/rest" ) // ServiceAccountsGetter has a method to return a ServiceAccountInterface. @@ -32,25 +33,25 @@ type ServiceAccountsGetter interface { type ServiceAccountInterface interface { Create(*v1.ServiceAccount) (*v1.ServiceAccount, error) Update(*v1.ServiceAccount) (*v1.ServiceAccount, error) - Delete(name string, options *api.DeleteOptions) error - DeleteCollection(options *api.DeleteOptions, listOptions api.ListOptions) error + Delete(name string, options *v1.DeleteOptions) error + DeleteCollection(options *v1.DeleteOptions, listOptions v1.ListOptions) error Get(name string) (*v1.ServiceAccount, error) - List(opts api.ListOptions) (*v1.ServiceAccountList, error) - Watch(opts api.ListOptions) (watch.Interface, error) + List(opts v1.ListOptions) (*v1.ServiceAccountList, error) + Watch(opts v1.ListOptions) (watch.Interface, error) Patch(name string, pt api.PatchType, data []byte, subresources ...string) (result *v1.ServiceAccount, err error) ServiceAccountExpansion } // serviceAccounts implements ServiceAccountInterface type serviceAccounts struct { - client *CoreClient + client rest.Interface ns string } // newServiceAccounts returns a ServiceAccounts -func newServiceAccounts(c *CoreClient, namespace string) *serviceAccounts { +func newServiceAccounts(c *CoreV1Client, namespace string) *serviceAccounts { return &serviceAccounts{ - client: c, + client: c.RESTClient(), ns: namespace, } } @@ -81,7 +82,7 @@ func (c *serviceAccounts) Update(serviceAccount *v1.ServiceAccount) (result *v1. } // Delete takes name of the serviceAccount and deletes it. Returns an error if one occurs. -func (c *serviceAccounts) Delete(name string, options *api.DeleteOptions) error { +func (c *serviceAccounts) Delete(name string, options *v1.DeleteOptions) error { return c.client.Delete(). Namespace(c.ns). Resource("serviceaccounts"). @@ -92,7 +93,7 @@ func (c *serviceAccounts) Delete(name string, options *api.DeleteOptions) error } // DeleteCollection deletes a collection of objects. -func (c *serviceAccounts) DeleteCollection(options *api.DeleteOptions, listOptions api.ListOptions) error { +func (c *serviceAccounts) DeleteCollection(options *v1.DeleteOptions, listOptions v1.ListOptions) error { return c.client.Delete(). Namespace(c.ns). Resource("serviceaccounts"). @@ -115,7 +116,7 @@ func (c *serviceAccounts) Get(name string) (result *v1.ServiceAccount, err error } // List takes label and field selectors, and returns the list of ServiceAccounts that match those selectors. -func (c *serviceAccounts) List(opts api.ListOptions) (result *v1.ServiceAccountList, err error) { +func (c *serviceAccounts) List(opts v1.ListOptions) (result *v1.ServiceAccountList, err error) { result = &v1.ServiceAccountList{} err = c.client.Get(). Namespace(c.ns). @@ -127,7 +128,7 @@ func (c *serviceAccounts) List(opts api.ListOptions) (result *v1.ServiceAccountL } // Watch returns a watch.Interface that watches the requested serviceAccounts. -func (c *serviceAccounts) Watch(opts api.ListOptions) (watch.Interface, error) { +func (c *serviceAccounts) Watch(opts v1.ListOptions) (watch.Interface, error) { return c.client.Get(). Prefix("watch"). Namespace(c.ns). diff --git a/vendor/k8s.io/client-go/1.5/kubernetes/typed/extensions/v1beta1/daemonset.go b/vendor/k8s.io/client-go/kubernetes/typed/extensions/v1beta1/daemonset.go similarity index 81% rename from vendor/k8s.io/client-go/1.5/kubernetes/typed/extensions/v1beta1/daemonset.go rename to vendor/k8s.io/client-go/kubernetes/typed/extensions/v1beta1/daemonset.go index 2ae93b151..29d3ff162 100644 --- a/vendor/k8s.io/client-go/1.5/kubernetes/typed/extensions/v1beta1/daemonset.go +++ b/vendor/k8s.io/client-go/kubernetes/typed/extensions/v1beta1/daemonset.go @@ -1,5 +1,5 @@ /* -Copyright 2016 The Kubernetes Authors. +Copyright 2017 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -17,9 +17,11 @@ limitations under the License. package v1beta1 import ( - api "k8s.io/client-go/1.5/pkg/api" - v1beta1 "k8s.io/client-go/1.5/pkg/apis/extensions/v1beta1" - watch "k8s.io/client-go/1.5/pkg/watch" + api "k8s.io/client-go/pkg/api" + v1 "k8s.io/client-go/pkg/api/v1" + v1beta1 "k8s.io/client-go/pkg/apis/extensions/v1beta1" + watch "k8s.io/client-go/pkg/watch" + rest "k8s.io/client-go/rest" ) // DaemonSetsGetter has a method to return a DaemonSetInterface. @@ -33,25 +35,25 @@ type DaemonSetInterface interface { Create(*v1beta1.DaemonSet) (*v1beta1.DaemonSet, error) Update(*v1beta1.DaemonSet) (*v1beta1.DaemonSet, error) UpdateStatus(*v1beta1.DaemonSet) (*v1beta1.DaemonSet, error) - Delete(name string, options *api.DeleteOptions) error - DeleteCollection(options *api.DeleteOptions, listOptions api.ListOptions) error + Delete(name string, options *v1.DeleteOptions) error + DeleteCollection(options *v1.DeleteOptions, listOptions v1.ListOptions) error Get(name string) (*v1beta1.DaemonSet, error) - List(opts api.ListOptions) (*v1beta1.DaemonSetList, error) - Watch(opts api.ListOptions) (watch.Interface, error) + List(opts v1.ListOptions) (*v1beta1.DaemonSetList, error) + Watch(opts v1.ListOptions) (watch.Interface, error) Patch(name string, pt api.PatchType, data []byte, subresources ...string) (result *v1beta1.DaemonSet, err error) DaemonSetExpansion } // daemonSets implements DaemonSetInterface type daemonSets struct { - client *ExtensionsClient + client rest.Interface ns string } // newDaemonSets returns a DaemonSets -func newDaemonSets(c *ExtensionsClient, namespace string) *daemonSets { +func newDaemonSets(c *ExtensionsV1beta1Client, namespace string) *daemonSets { return &daemonSets{ - client: c, + client: c.RESTClient(), ns: namespace, } } @@ -95,7 +97,7 @@ func (c *daemonSets) UpdateStatus(daemonSet *v1beta1.DaemonSet) (result *v1beta1 } // Delete takes name of the daemonSet and deletes it. Returns an error if one occurs. -func (c *daemonSets) Delete(name string, options *api.DeleteOptions) error { +func (c *daemonSets) Delete(name string, options *v1.DeleteOptions) error { return c.client.Delete(). Namespace(c.ns). Resource("daemonsets"). @@ -106,7 +108,7 @@ func (c *daemonSets) Delete(name string, options *api.DeleteOptions) error { } // DeleteCollection deletes a collection of objects. -func (c *daemonSets) DeleteCollection(options *api.DeleteOptions, listOptions api.ListOptions) error { +func (c *daemonSets) DeleteCollection(options *v1.DeleteOptions, listOptions v1.ListOptions) error { return c.client.Delete(). Namespace(c.ns). Resource("daemonsets"). @@ -129,7 +131,7 @@ func (c *daemonSets) Get(name string) (result *v1beta1.DaemonSet, err error) { } // List takes label and field selectors, and returns the list of DaemonSets that match those selectors. -func (c *daemonSets) List(opts api.ListOptions) (result *v1beta1.DaemonSetList, err error) { +func (c *daemonSets) List(opts v1.ListOptions) (result *v1beta1.DaemonSetList, err error) { result = &v1beta1.DaemonSetList{} err = c.client.Get(). Namespace(c.ns). @@ -141,7 +143,7 @@ func (c *daemonSets) List(opts api.ListOptions) (result *v1beta1.DaemonSetList, } // Watch returns a watch.Interface that watches the requested daemonSets. -func (c *daemonSets) Watch(opts api.ListOptions) (watch.Interface, error) { +func (c *daemonSets) Watch(opts v1.ListOptions) (watch.Interface, error) { return c.client.Get(). Prefix("watch"). Namespace(c.ns). diff --git a/vendor/k8s.io/client-go/1.5/kubernetes/typed/extensions/v1beta1/deployment.go b/vendor/k8s.io/client-go/kubernetes/typed/extensions/v1beta1/deployment.go similarity index 81% rename from vendor/k8s.io/client-go/1.5/kubernetes/typed/extensions/v1beta1/deployment.go rename to vendor/k8s.io/client-go/kubernetes/typed/extensions/v1beta1/deployment.go index 540617130..223206f17 100644 --- a/vendor/k8s.io/client-go/1.5/kubernetes/typed/extensions/v1beta1/deployment.go +++ b/vendor/k8s.io/client-go/kubernetes/typed/extensions/v1beta1/deployment.go @@ -1,5 +1,5 @@ /* -Copyright 2016 The Kubernetes Authors. +Copyright 2017 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -17,9 +17,11 @@ limitations under the License. package v1beta1 import ( - api "k8s.io/client-go/1.5/pkg/api" - v1beta1 "k8s.io/client-go/1.5/pkg/apis/extensions/v1beta1" - watch "k8s.io/client-go/1.5/pkg/watch" + api "k8s.io/client-go/pkg/api" + v1 "k8s.io/client-go/pkg/api/v1" + v1beta1 "k8s.io/client-go/pkg/apis/extensions/v1beta1" + watch "k8s.io/client-go/pkg/watch" + rest "k8s.io/client-go/rest" ) // DeploymentsGetter has a method to return a DeploymentInterface. @@ -33,25 +35,25 @@ type DeploymentInterface interface { Create(*v1beta1.Deployment) (*v1beta1.Deployment, error) Update(*v1beta1.Deployment) (*v1beta1.Deployment, error) UpdateStatus(*v1beta1.Deployment) (*v1beta1.Deployment, error) - Delete(name string, options *api.DeleteOptions) error - DeleteCollection(options *api.DeleteOptions, listOptions api.ListOptions) error + Delete(name string, options *v1.DeleteOptions) error + DeleteCollection(options *v1.DeleteOptions, listOptions v1.ListOptions) error Get(name string) (*v1beta1.Deployment, error) - List(opts api.ListOptions) (*v1beta1.DeploymentList, error) - Watch(opts api.ListOptions) (watch.Interface, error) + List(opts v1.ListOptions) (*v1beta1.DeploymentList, error) + Watch(opts v1.ListOptions) (watch.Interface, error) Patch(name string, pt api.PatchType, data []byte, subresources ...string) (result *v1beta1.Deployment, err error) DeploymentExpansion } // deployments implements DeploymentInterface type deployments struct { - client *ExtensionsClient + client rest.Interface ns string } // newDeployments returns a Deployments -func newDeployments(c *ExtensionsClient, namespace string) *deployments { +func newDeployments(c *ExtensionsV1beta1Client, namespace string) *deployments { return &deployments{ - client: c, + client: c.RESTClient(), ns: namespace, } } @@ -95,7 +97,7 @@ func (c *deployments) UpdateStatus(deployment *v1beta1.Deployment) (result *v1be } // Delete takes name of the deployment and deletes it. Returns an error if one occurs. -func (c *deployments) Delete(name string, options *api.DeleteOptions) error { +func (c *deployments) Delete(name string, options *v1.DeleteOptions) error { return c.client.Delete(). Namespace(c.ns). Resource("deployments"). @@ -106,7 +108,7 @@ func (c *deployments) Delete(name string, options *api.DeleteOptions) error { } // DeleteCollection deletes a collection of objects. -func (c *deployments) DeleteCollection(options *api.DeleteOptions, listOptions api.ListOptions) error { +func (c *deployments) DeleteCollection(options *v1.DeleteOptions, listOptions v1.ListOptions) error { return c.client.Delete(). Namespace(c.ns). Resource("deployments"). @@ -129,7 +131,7 @@ func (c *deployments) Get(name string) (result *v1beta1.Deployment, err error) { } // List takes label and field selectors, and returns the list of Deployments that match those selectors. -func (c *deployments) List(opts api.ListOptions) (result *v1beta1.DeploymentList, err error) { +func (c *deployments) List(opts v1.ListOptions) (result *v1beta1.DeploymentList, err error) { result = &v1beta1.DeploymentList{} err = c.client.Get(). Namespace(c.ns). @@ -141,7 +143,7 @@ func (c *deployments) List(opts api.ListOptions) (result *v1beta1.DeploymentList } // Watch returns a watch.Interface that watches the requested deployments. -func (c *deployments) Watch(opts api.ListOptions) (watch.Interface, error) { +func (c *deployments) Watch(opts v1.ListOptions) (watch.Interface, error) { return c.client.Get(). Prefix("watch"). Namespace(c.ns). diff --git a/vendor/k8s.io/client-go/1.5/kubernetes/typed/extensions/v1beta1/deployment_expansion.go b/vendor/k8s.io/client-go/kubernetes/typed/extensions/v1beta1/deployment_expansion.go similarity index 95% rename from vendor/k8s.io/client-go/1.5/kubernetes/typed/extensions/v1beta1/deployment_expansion.go rename to vendor/k8s.io/client-go/kubernetes/typed/extensions/v1beta1/deployment_expansion.go index 293ed8c44..e737f09ae 100644 --- a/vendor/k8s.io/client-go/1.5/kubernetes/typed/extensions/v1beta1/deployment_expansion.go +++ b/vendor/k8s.io/client-go/kubernetes/typed/extensions/v1beta1/deployment_expansion.go @@ -16,7 +16,7 @@ limitations under the License. package v1beta1 -import "k8s.io/client-go/1.5/pkg/apis/extensions/v1beta1" +import "k8s.io/client-go/pkg/apis/extensions/v1beta1" // The DeploymentExpansion interface allows manually adding extra methods to the DeploymentInterface. type DeploymentExpansion interface { diff --git a/vendor/k8s.io/client-go/1.5/kubernetes/typed/storage/v1beta1/doc.go b/vendor/k8s.io/client-go/kubernetes/typed/extensions/v1beta1/doc.go similarity index 71% rename from vendor/k8s.io/client-go/1.5/kubernetes/typed/storage/v1beta1/doc.go rename to vendor/k8s.io/client-go/kubernetes/typed/extensions/v1beta1/doc.go index 5616c95d3..f96bb0e2a 100644 --- a/vendor/k8s.io/client-go/1.5/kubernetes/typed/storage/v1beta1/doc.go +++ b/vendor/k8s.io/client-go/kubernetes/typed/extensions/v1beta1/doc.go @@ -1,5 +1,5 @@ /* -Copyright 2016 The Kubernetes Authors. +Copyright 2017 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -14,7 +14,7 @@ See the License for the specific language governing permissions and limitations under the License. */ -// This package is generated by client-gen with arguments: --clientset-name=release_1_5 --input=[api/v1,apps/v1alpha1,authentication/v1beta1,authorization/v1beta1,autoscaling/v1,batch/v1,certificates/v1alpha1,extensions/v1beta1,policy/v1alpha1,rbac/v1alpha1,storage/v1beta1] +// This package is generated by client-gen with arguments: --clientset-name=release_1_5 --input=[api/v1,apps/v1beta1,authentication/v1beta1,authorization/v1beta1,autoscaling/v1,batch/v1,batch/v2alpha1,certificates/v1alpha1,extensions/v1beta1,policy/v1beta1,rbac/v1alpha1,storage/v1beta1] // This package has the automatically generated typed clients. package v1beta1 diff --git a/vendor/k8s.io/client-go/kubernetes/typed/extensions/v1beta1/extensions_client.go b/vendor/k8s.io/client-go/kubernetes/typed/extensions/v1beta1/extensions_client.go new file mode 100644 index 000000000..dee295a42 --- /dev/null +++ b/vendor/k8s.io/client-go/kubernetes/typed/extensions/v1beta1/extensions_client.go @@ -0,0 +1,133 @@ +/* +Copyright 2017 The Kubernetes Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + +package v1beta1 + +import ( + fmt "fmt" + api "k8s.io/client-go/pkg/api" + unversioned "k8s.io/client-go/pkg/api/unversioned" + registered "k8s.io/client-go/pkg/apimachinery/registered" + serializer "k8s.io/client-go/pkg/runtime/serializer" + rest "k8s.io/client-go/rest" +) + +type ExtensionsV1beta1Interface interface { + RESTClient() rest.Interface + DaemonSetsGetter + DeploymentsGetter + IngressesGetter + JobsGetter + PodSecurityPoliciesGetter + ReplicaSetsGetter + ScalesGetter + ThirdPartyResourcesGetter +} + +// ExtensionsV1beta1Client is used to interact with features provided by the k8s.io/kubernetes/pkg/apimachinery/registered.Group group. +type ExtensionsV1beta1Client struct { + restClient rest.Interface +} + +func (c *ExtensionsV1beta1Client) DaemonSets(namespace string) DaemonSetInterface { + return newDaemonSets(c, namespace) +} + +func (c *ExtensionsV1beta1Client) Deployments(namespace string) DeploymentInterface { + return newDeployments(c, namespace) +} + +func (c *ExtensionsV1beta1Client) Ingresses(namespace string) IngressInterface { + return newIngresses(c, namespace) +} + +func (c *ExtensionsV1beta1Client) Jobs(namespace string) JobInterface { + return newJobs(c, namespace) +} + +func (c *ExtensionsV1beta1Client) PodSecurityPolicies() PodSecurityPolicyInterface { + return newPodSecurityPolicies(c) +} + +func (c *ExtensionsV1beta1Client) ReplicaSets(namespace string) ReplicaSetInterface { + return newReplicaSets(c, namespace) +} + +func (c *ExtensionsV1beta1Client) Scales(namespace string) ScaleInterface { + return newScales(c, namespace) +} + +func (c *ExtensionsV1beta1Client) ThirdPartyResources() ThirdPartyResourceInterface { + return newThirdPartyResources(c) +} + +// NewForConfig creates a new ExtensionsV1beta1Client for the given config. +func NewForConfig(c *rest.Config) (*ExtensionsV1beta1Client, error) { + config := *c + if err := setConfigDefaults(&config); err != nil { + return nil, err + } + client, err := rest.RESTClientFor(&config) + if err != nil { + return nil, err + } + return &ExtensionsV1beta1Client{client}, nil +} + +// NewForConfigOrDie creates a new ExtensionsV1beta1Client for the given config and +// panics if there is an error in the config. +func NewForConfigOrDie(c *rest.Config) *ExtensionsV1beta1Client { + client, err := NewForConfig(c) + if err != nil { + panic(err) + } + return client +} + +// New creates a new ExtensionsV1beta1Client for the given RESTClient. +func New(c rest.Interface) *ExtensionsV1beta1Client { + return &ExtensionsV1beta1Client{c} +} + +func setConfigDefaults(config *rest.Config) error { + gv, err := unversioned.ParseGroupVersion("extensions/v1beta1") + if err != nil { + return err + } + // if extensions/v1beta1 is not enabled, return an error + if !registered.IsEnabledVersion(gv) { + return fmt.Errorf("extensions/v1beta1 is not enabled") + } + config.APIPath = "/apis" + if config.UserAgent == "" { + config.UserAgent = rest.DefaultKubernetesUserAgent() + } + copyGroupVersion := gv + config.GroupVersion = ©GroupVersion + + config.NegotiatedSerializer = serializer.DirectCodecFactory{CodecFactory: api.Codecs} + + return nil +} + +// RESTClient returns a RESTClient that is used to communicate +// with API server by this client implementation. +func (c *ExtensionsV1beta1Client) RESTClient() rest.Interface { + if c == nil { + return nil + } + return c.restClient +} diff --git a/vendor/k8s.io/client-go/1.5/kubernetes/typed/extensions/v1beta1/generated_expansion.go b/vendor/k8s.io/client-go/kubernetes/typed/extensions/v1beta1/generated_expansion.go similarity index 95% rename from vendor/k8s.io/client-go/1.5/kubernetes/typed/extensions/v1beta1/generated_expansion.go rename to vendor/k8s.io/client-go/kubernetes/typed/extensions/v1beta1/generated_expansion.go index 60cf61d4b..9771eb70b 100644 --- a/vendor/k8s.io/client-go/1.5/kubernetes/typed/extensions/v1beta1/generated_expansion.go +++ b/vendor/k8s.io/client-go/kubernetes/typed/extensions/v1beta1/generated_expansion.go @@ -1,5 +1,5 @@ /* -Copyright 2016 The Kubernetes Authors. +Copyright 2017 The Kubernetes Authors. 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/vendor/k8s.io/client-go/1.5/kubernetes/typed/extensions/v1beta1/ingress.go b/vendor/k8s.io/client-go/kubernetes/typed/extensions/v1beta1/ingress.go similarity index 81% rename from vendor/k8s.io/client-go/1.5/kubernetes/typed/extensions/v1beta1/ingress.go rename to vendor/k8s.io/client-go/kubernetes/typed/extensions/v1beta1/ingress.go index 29b93cef5..007b14737 100644 --- a/vendor/k8s.io/client-go/1.5/kubernetes/typed/extensions/v1beta1/ingress.go +++ b/vendor/k8s.io/client-go/kubernetes/typed/extensions/v1beta1/ingress.go @@ -1,5 +1,5 @@ /* -Copyright 2016 The Kubernetes Authors. +Copyright 2017 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -17,9 +17,11 @@ limitations under the License. package v1beta1 import ( - api "k8s.io/client-go/1.5/pkg/api" - v1beta1 "k8s.io/client-go/1.5/pkg/apis/extensions/v1beta1" - watch "k8s.io/client-go/1.5/pkg/watch" + api "k8s.io/client-go/pkg/api" + v1 "k8s.io/client-go/pkg/api/v1" + v1beta1 "k8s.io/client-go/pkg/apis/extensions/v1beta1" + watch "k8s.io/client-go/pkg/watch" + rest "k8s.io/client-go/rest" ) // IngressesGetter has a method to return a IngressInterface. @@ -33,25 +35,25 @@ type IngressInterface interface { Create(*v1beta1.Ingress) (*v1beta1.Ingress, error) Update(*v1beta1.Ingress) (*v1beta1.Ingress, error) UpdateStatus(*v1beta1.Ingress) (*v1beta1.Ingress, error) - Delete(name string, options *api.DeleteOptions) error - DeleteCollection(options *api.DeleteOptions, listOptions api.ListOptions) error + Delete(name string, options *v1.DeleteOptions) error + DeleteCollection(options *v1.DeleteOptions, listOptions v1.ListOptions) error Get(name string) (*v1beta1.Ingress, error) - List(opts api.ListOptions) (*v1beta1.IngressList, error) - Watch(opts api.ListOptions) (watch.Interface, error) + List(opts v1.ListOptions) (*v1beta1.IngressList, error) + Watch(opts v1.ListOptions) (watch.Interface, error) Patch(name string, pt api.PatchType, data []byte, subresources ...string) (result *v1beta1.Ingress, err error) IngressExpansion } // ingresses implements IngressInterface type ingresses struct { - client *ExtensionsClient + client rest.Interface ns string } // newIngresses returns a Ingresses -func newIngresses(c *ExtensionsClient, namespace string) *ingresses { +func newIngresses(c *ExtensionsV1beta1Client, namespace string) *ingresses { return &ingresses{ - client: c, + client: c.RESTClient(), ns: namespace, } } @@ -95,7 +97,7 @@ func (c *ingresses) UpdateStatus(ingress *v1beta1.Ingress) (result *v1beta1.Ingr } // 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 { +func (c *ingresses) Delete(name string, options *v1.DeleteOptions) error { return c.client.Delete(). Namespace(c.ns). Resource("ingresses"). @@ -106,7 +108,7 @@ func (c *ingresses) Delete(name string, options *api.DeleteOptions) error { } // DeleteCollection deletes a collection of objects. -func (c *ingresses) DeleteCollection(options *api.DeleteOptions, listOptions api.ListOptions) error { +func (c *ingresses) DeleteCollection(options *v1.DeleteOptions, listOptions v1.ListOptions) error { return c.client.Delete(). Namespace(c.ns). Resource("ingresses"). @@ -129,7 +131,7 @@ func (c *ingresses) Get(name string) (result *v1beta1.Ingress, err error) { } // List takes label and field selectors, and returns the list of Ingresses that match those selectors. -func (c *ingresses) List(opts api.ListOptions) (result *v1beta1.IngressList, err error) { +func (c *ingresses) List(opts v1.ListOptions) (result *v1beta1.IngressList, err error) { result = &v1beta1.IngressList{} err = c.client.Get(). Namespace(c.ns). @@ -141,7 +143,7 @@ func (c *ingresses) List(opts api.ListOptions) (result *v1beta1.IngressList, err } // Watch returns a watch.Interface that watches the requested ingresses. -func (c *ingresses) Watch(opts api.ListOptions) (watch.Interface, error) { +func (c *ingresses) Watch(opts v1.ListOptions) (watch.Interface, error) { return c.client.Get(). Prefix("watch"). Namespace(c.ns). diff --git a/vendor/k8s.io/client-go/1.5/kubernetes/typed/extensions/v1beta1/job.go b/vendor/k8s.io/client-go/kubernetes/typed/extensions/v1beta1/job.go similarity index 80% rename from vendor/k8s.io/client-go/1.5/kubernetes/typed/extensions/v1beta1/job.go rename to vendor/k8s.io/client-go/kubernetes/typed/extensions/v1beta1/job.go index 0142d69cc..67fb2250e 100644 --- a/vendor/k8s.io/client-go/1.5/kubernetes/typed/extensions/v1beta1/job.go +++ b/vendor/k8s.io/client-go/kubernetes/typed/extensions/v1beta1/job.go @@ -1,5 +1,5 @@ /* -Copyright 2016 The Kubernetes Authors. +Copyright 2017 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -17,9 +17,11 @@ limitations under the License. package v1beta1 import ( - api "k8s.io/client-go/1.5/pkg/api" - v1beta1 "k8s.io/client-go/1.5/pkg/apis/extensions/v1beta1" - watch "k8s.io/client-go/1.5/pkg/watch" + api "k8s.io/client-go/pkg/api" + v1 "k8s.io/client-go/pkg/api/v1" + v1beta1 "k8s.io/client-go/pkg/apis/extensions/v1beta1" + watch "k8s.io/client-go/pkg/watch" + rest "k8s.io/client-go/rest" ) // JobsGetter has a method to return a JobInterface. @@ -33,25 +35,25 @@ type JobInterface interface { Create(*v1beta1.Job) (*v1beta1.Job, error) Update(*v1beta1.Job) (*v1beta1.Job, error) UpdateStatus(*v1beta1.Job) (*v1beta1.Job, error) - Delete(name string, options *api.DeleteOptions) error - DeleteCollection(options *api.DeleteOptions, listOptions api.ListOptions) error + Delete(name string, options *v1.DeleteOptions) error + DeleteCollection(options *v1.DeleteOptions, listOptions v1.ListOptions) error Get(name string) (*v1beta1.Job, error) - List(opts api.ListOptions) (*v1beta1.JobList, error) - Watch(opts api.ListOptions) (watch.Interface, error) + List(opts v1.ListOptions) (*v1beta1.JobList, error) + Watch(opts v1.ListOptions) (watch.Interface, error) Patch(name string, pt api.PatchType, data []byte, subresources ...string) (result *v1beta1.Job, err error) JobExpansion } // jobs implements JobInterface type jobs struct { - client *ExtensionsClient + client rest.Interface ns string } // newJobs returns a Jobs -func newJobs(c *ExtensionsClient, namespace string) *jobs { +func newJobs(c *ExtensionsV1beta1Client, namespace string) *jobs { return &jobs{ - client: c, + client: c.RESTClient(), ns: namespace, } } @@ -95,7 +97,7 @@ func (c *jobs) UpdateStatus(job *v1beta1.Job) (result *v1beta1.Job, err error) { } // Delete takes name of the job and deletes it. Returns an error if one occurs. -func (c *jobs) Delete(name string, options *api.DeleteOptions) error { +func (c *jobs) Delete(name string, options *v1.DeleteOptions) error { return c.client.Delete(). Namespace(c.ns). Resource("jobs"). @@ -106,7 +108,7 @@ func (c *jobs) Delete(name string, options *api.DeleteOptions) error { } // DeleteCollection deletes a collection of objects. -func (c *jobs) DeleteCollection(options *api.DeleteOptions, listOptions api.ListOptions) error { +func (c *jobs) DeleteCollection(options *v1.DeleteOptions, listOptions v1.ListOptions) error { return c.client.Delete(). Namespace(c.ns). Resource("jobs"). @@ -129,7 +131,7 @@ func (c *jobs) Get(name string) (result *v1beta1.Job, err error) { } // List takes label and field selectors, and returns the list of Jobs that match those selectors. -func (c *jobs) List(opts api.ListOptions) (result *v1beta1.JobList, err error) { +func (c *jobs) List(opts v1.ListOptions) (result *v1beta1.JobList, err error) { result = &v1beta1.JobList{} err = c.client.Get(). Namespace(c.ns). @@ -141,7 +143,7 @@ func (c *jobs) List(opts api.ListOptions) (result *v1beta1.JobList, err error) { } // Watch returns a watch.Interface that watches the requested jobs. -func (c *jobs) Watch(opts api.ListOptions) (watch.Interface, error) { +func (c *jobs) Watch(opts v1.ListOptions) (watch.Interface, error) { return c.client.Get(). Prefix("watch"). Namespace(c.ns). diff --git a/vendor/k8s.io/client-go/1.5/kubernetes/typed/extensions/v1beta1/podsecuritypolicy.go b/vendor/k8s.io/client-go/kubernetes/typed/extensions/v1beta1/podsecuritypolicy.go similarity index 80% rename from vendor/k8s.io/client-go/1.5/kubernetes/typed/extensions/v1beta1/podsecuritypolicy.go rename to vendor/k8s.io/client-go/kubernetes/typed/extensions/v1beta1/podsecuritypolicy.go index 53646543b..a17df56cd 100644 --- a/vendor/k8s.io/client-go/1.5/kubernetes/typed/extensions/v1beta1/podsecuritypolicy.go +++ b/vendor/k8s.io/client-go/kubernetes/typed/extensions/v1beta1/podsecuritypolicy.go @@ -1,5 +1,5 @@ /* -Copyright 2016 The Kubernetes Authors. +Copyright 2017 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -17,9 +17,11 @@ limitations under the License. package v1beta1 import ( - api "k8s.io/client-go/1.5/pkg/api" - v1beta1 "k8s.io/client-go/1.5/pkg/apis/extensions/v1beta1" - watch "k8s.io/client-go/1.5/pkg/watch" + api "k8s.io/client-go/pkg/api" + v1 "k8s.io/client-go/pkg/api/v1" + v1beta1 "k8s.io/client-go/pkg/apis/extensions/v1beta1" + watch "k8s.io/client-go/pkg/watch" + rest "k8s.io/client-go/rest" ) // PodSecurityPoliciesGetter has a method to return a PodSecurityPolicyInterface. @@ -32,24 +34,24 @@ type PodSecurityPoliciesGetter interface { type PodSecurityPolicyInterface interface { Create(*v1beta1.PodSecurityPolicy) (*v1beta1.PodSecurityPolicy, error) Update(*v1beta1.PodSecurityPolicy) (*v1beta1.PodSecurityPolicy, error) - Delete(name string, options *api.DeleteOptions) error - DeleteCollection(options *api.DeleteOptions, listOptions api.ListOptions) error + Delete(name string, options *v1.DeleteOptions) error + DeleteCollection(options *v1.DeleteOptions, listOptions v1.ListOptions) error Get(name string) (*v1beta1.PodSecurityPolicy, error) - List(opts api.ListOptions) (*v1beta1.PodSecurityPolicyList, error) - Watch(opts api.ListOptions) (watch.Interface, error) + List(opts v1.ListOptions) (*v1beta1.PodSecurityPolicyList, error) + Watch(opts v1.ListOptions) (watch.Interface, error) Patch(name string, pt api.PatchType, data []byte, subresources ...string) (result *v1beta1.PodSecurityPolicy, err error) PodSecurityPolicyExpansion } // podSecurityPolicies implements PodSecurityPolicyInterface type podSecurityPolicies struct { - client *ExtensionsClient + client rest.Interface } // newPodSecurityPolicies returns a PodSecurityPolicies -func newPodSecurityPolicies(c *ExtensionsClient) *podSecurityPolicies { +func newPodSecurityPolicies(c *ExtensionsV1beta1Client) *podSecurityPolicies { return &podSecurityPolicies{ - client: c, + client: c.RESTClient(), } } @@ -77,7 +79,7 @@ func (c *podSecurityPolicies) Update(podSecurityPolicy *v1beta1.PodSecurityPolic } // Delete takes name of the podSecurityPolicy and deletes it. Returns an error if one occurs. -func (c *podSecurityPolicies) Delete(name string, options *api.DeleteOptions) error { +func (c *podSecurityPolicies) Delete(name string, options *v1.DeleteOptions) error { return c.client.Delete(). Resource("podsecuritypolicies"). Name(name). @@ -87,7 +89,7 @@ func (c *podSecurityPolicies) Delete(name string, options *api.DeleteOptions) er } // DeleteCollection deletes a collection of objects. -func (c *podSecurityPolicies) DeleteCollection(options *api.DeleteOptions, listOptions api.ListOptions) error { +func (c *podSecurityPolicies) DeleteCollection(options *v1.DeleteOptions, listOptions v1.ListOptions) error { return c.client.Delete(). Resource("podsecuritypolicies"). VersionedParams(&listOptions, api.ParameterCodec). @@ -108,7 +110,7 @@ func (c *podSecurityPolicies) Get(name string) (result *v1beta1.PodSecurityPolic } // List takes label and field selectors, and returns the list of PodSecurityPolicies that match those selectors. -func (c *podSecurityPolicies) List(opts api.ListOptions) (result *v1beta1.PodSecurityPolicyList, err error) { +func (c *podSecurityPolicies) List(opts v1.ListOptions) (result *v1beta1.PodSecurityPolicyList, err error) { result = &v1beta1.PodSecurityPolicyList{} err = c.client.Get(). Resource("podsecuritypolicies"). @@ -119,7 +121,7 @@ func (c *podSecurityPolicies) List(opts api.ListOptions) (result *v1beta1.PodSec } // Watch returns a watch.Interface that watches the requested podSecurityPolicies. -func (c *podSecurityPolicies) Watch(opts api.ListOptions) (watch.Interface, error) { +func (c *podSecurityPolicies) Watch(opts v1.ListOptions) (watch.Interface, error) { return c.client.Get(). Prefix("watch"). Resource("podsecuritypolicies"). diff --git a/vendor/k8s.io/client-go/1.5/kubernetes/typed/extensions/v1beta1/replicaset.go b/vendor/k8s.io/client-go/kubernetes/typed/extensions/v1beta1/replicaset.go similarity index 81% rename from vendor/k8s.io/client-go/1.5/kubernetes/typed/extensions/v1beta1/replicaset.go rename to vendor/k8s.io/client-go/kubernetes/typed/extensions/v1beta1/replicaset.go index 722a4b4e9..76227d718 100644 --- a/vendor/k8s.io/client-go/1.5/kubernetes/typed/extensions/v1beta1/replicaset.go +++ b/vendor/k8s.io/client-go/kubernetes/typed/extensions/v1beta1/replicaset.go @@ -1,5 +1,5 @@ /* -Copyright 2016 The Kubernetes Authors. +Copyright 2017 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -17,9 +17,11 @@ limitations under the License. package v1beta1 import ( - api "k8s.io/client-go/1.5/pkg/api" - v1beta1 "k8s.io/client-go/1.5/pkg/apis/extensions/v1beta1" - watch "k8s.io/client-go/1.5/pkg/watch" + api "k8s.io/client-go/pkg/api" + v1 "k8s.io/client-go/pkg/api/v1" + v1beta1 "k8s.io/client-go/pkg/apis/extensions/v1beta1" + watch "k8s.io/client-go/pkg/watch" + rest "k8s.io/client-go/rest" ) // ReplicaSetsGetter has a method to return a ReplicaSetInterface. @@ -33,25 +35,25 @@ type ReplicaSetInterface interface { Create(*v1beta1.ReplicaSet) (*v1beta1.ReplicaSet, error) Update(*v1beta1.ReplicaSet) (*v1beta1.ReplicaSet, error) UpdateStatus(*v1beta1.ReplicaSet) (*v1beta1.ReplicaSet, error) - Delete(name string, options *api.DeleteOptions) error - DeleteCollection(options *api.DeleteOptions, listOptions api.ListOptions) error + Delete(name string, options *v1.DeleteOptions) error + DeleteCollection(options *v1.DeleteOptions, listOptions v1.ListOptions) error Get(name string) (*v1beta1.ReplicaSet, error) - List(opts api.ListOptions) (*v1beta1.ReplicaSetList, error) - Watch(opts api.ListOptions) (watch.Interface, error) + List(opts v1.ListOptions) (*v1beta1.ReplicaSetList, error) + Watch(opts v1.ListOptions) (watch.Interface, error) Patch(name string, pt api.PatchType, data []byte, subresources ...string) (result *v1beta1.ReplicaSet, err error) ReplicaSetExpansion } // replicaSets implements ReplicaSetInterface type replicaSets struct { - client *ExtensionsClient + client rest.Interface ns string } // newReplicaSets returns a ReplicaSets -func newReplicaSets(c *ExtensionsClient, namespace string) *replicaSets { +func newReplicaSets(c *ExtensionsV1beta1Client, namespace string) *replicaSets { return &replicaSets{ - client: c, + client: c.RESTClient(), ns: namespace, } } @@ -95,7 +97,7 @@ func (c *replicaSets) UpdateStatus(replicaSet *v1beta1.ReplicaSet) (result *v1be } // 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 { +func (c *replicaSets) Delete(name string, options *v1.DeleteOptions) error { return c.client.Delete(). Namespace(c.ns). Resource("replicasets"). @@ -106,7 +108,7 @@ func (c *replicaSets) Delete(name string, options *api.DeleteOptions) error { } // DeleteCollection deletes a collection of objects. -func (c *replicaSets) DeleteCollection(options *api.DeleteOptions, listOptions api.ListOptions) error { +func (c *replicaSets) DeleteCollection(options *v1.DeleteOptions, listOptions v1.ListOptions) error { return c.client.Delete(). Namespace(c.ns). Resource("replicasets"). @@ -129,7 +131,7 @@ func (c *replicaSets) Get(name string) (result *v1beta1.ReplicaSet, err error) { } // List takes label and field selectors, and returns the list of ReplicaSets that match those selectors. -func (c *replicaSets) List(opts api.ListOptions) (result *v1beta1.ReplicaSetList, err error) { +func (c *replicaSets) List(opts v1.ListOptions) (result *v1beta1.ReplicaSetList, err error) { result = &v1beta1.ReplicaSetList{} err = c.client.Get(). Namespace(c.ns). @@ -141,7 +143,7 @@ func (c *replicaSets) List(opts api.ListOptions) (result *v1beta1.ReplicaSetList } // Watch returns a watch.Interface that watches the requested replicaSets. -func (c *replicaSets) Watch(opts api.ListOptions) (watch.Interface, error) { +func (c *replicaSets) Watch(opts v1.ListOptions) (watch.Interface, error) { return c.client.Get(). Prefix("watch"). Namespace(c.ns). diff --git a/vendor/k8s.io/client-go/1.5/kubernetes/typed/extensions/v1beta1/scale.go b/vendor/k8s.io/client-go/kubernetes/typed/extensions/v1beta1/scale.go similarity index 83% rename from vendor/k8s.io/client-go/1.5/kubernetes/typed/extensions/v1beta1/scale.go rename to vendor/k8s.io/client-go/kubernetes/typed/extensions/v1beta1/scale.go index 3a7be158a..733012ade 100644 --- a/vendor/k8s.io/client-go/1.5/kubernetes/typed/extensions/v1beta1/scale.go +++ b/vendor/k8s.io/client-go/kubernetes/typed/extensions/v1beta1/scale.go @@ -1,5 +1,5 @@ /* -Copyright 2016 The Kubernetes Authors. +Copyright 2017 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -16,6 +16,10 @@ limitations under the License. package v1beta1 +import ( + rest "k8s.io/client-go/rest" +) + // ScalesGetter has a method to return a ScaleInterface. // A group's client should implement this interface. type ScalesGetter interface { @@ -29,14 +33,14 @@ type ScaleInterface interface { // scales implements ScaleInterface type scales struct { - client *ExtensionsClient + client rest.Interface ns string } // newScales returns a Scales -func newScales(c *ExtensionsClient, namespace string) *scales { +func newScales(c *ExtensionsV1beta1Client, namespace string) *scales { return &scales{ - client: c, + client: c.RESTClient(), ns: namespace, } } diff --git a/vendor/k8s.io/client-go/1.5/kubernetes/typed/extensions/v1beta1/scale_expansion.go b/vendor/k8s.io/client-go/kubernetes/typed/extensions/v1beta1/scale_expansion.go similarity index 93% rename from vendor/k8s.io/client-go/1.5/kubernetes/typed/extensions/v1beta1/scale_expansion.go rename to vendor/k8s.io/client-go/kubernetes/typed/extensions/v1beta1/scale_expansion.go index 435506f1c..08421dc45 100644 --- a/vendor/k8s.io/client-go/1.5/kubernetes/typed/extensions/v1beta1/scale_expansion.go +++ b/vendor/k8s.io/client-go/kubernetes/typed/extensions/v1beta1/scale_expansion.go @@ -17,9 +17,9 @@ limitations under the License. package v1beta1 import ( - "k8s.io/client-go/1.5/pkg/api/meta" - "k8s.io/client-go/1.5/pkg/api/unversioned" - "k8s.io/client-go/1.5/pkg/apis/extensions/v1beta1" + "k8s.io/client-go/pkg/api/meta" + "k8s.io/client-go/pkg/api/unversioned" + "k8s.io/client-go/pkg/apis/extensions/v1beta1" ) // The ScaleExpansion interface allows manually adding extra methods to the ScaleInterface. diff --git a/vendor/k8s.io/client-go/1.5/kubernetes/typed/extensions/v1beta1/thirdpartyresource.go b/vendor/k8s.io/client-go/kubernetes/typed/extensions/v1beta1/thirdpartyresource.go similarity index 80% rename from vendor/k8s.io/client-go/1.5/kubernetes/typed/extensions/v1beta1/thirdpartyresource.go rename to vendor/k8s.io/client-go/kubernetes/typed/extensions/v1beta1/thirdpartyresource.go index 65162d46e..89c980150 100644 --- a/vendor/k8s.io/client-go/1.5/kubernetes/typed/extensions/v1beta1/thirdpartyresource.go +++ b/vendor/k8s.io/client-go/kubernetes/typed/extensions/v1beta1/thirdpartyresource.go @@ -1,5 +1,5 @@ /* -Copyright 2016 The Kubernetes Authors. +Copyright 2017 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -17,9 +17,11 @@ limitations under the License. package v1beta1 import ( - api "k8s.io/client-go/1.5/pkg/api" - v1beta1 "k8s.io/client-go/1.5/pkg/apis/extensions/v1beta1" - watch "k8s.io/client-go/1.5/pkg/watch" + api "k8s.io/client-go/pkg/api" + v1 "k8s.io/client-go/pkg/api/v1" + v1beta1 "k8s.io/client-go/pkg/apis/extensions/v1beta1" + watch "k8s.io/client-go/pkg/watch" + rest "k8s.io/client-go/rest" ) // ThirdPartyResourcesGetter has a method to return a ThirdPartyResourceInterface. @@ -32,24 +34,24 @@ type ThirdPartyResourcesGetter interface { type ThirdPartyResourceInterface interface { Create(*v1beta1.ThirdPartyResource) (*v1beta1.ThirdPartyResource, error) Update(*v1beta1.ThirdPartyResource) (*v1beta1.ThirdPartyResource, error) - Delete(name string, options *api.DeleteOptions) error - DeleteCollection(options *api.DeleteOptions, listOptions api.ListOptions) error + Delete(name string, options *v1.DeleteOptions) error + DeleteCollection(options *v1.DeleteOptions, listOptions v1.ListOptions) error Get(name string) (*v1beta1.ThirdPartyResource, error) - List(opts api.ListOptions) (*v1beta1.ThirdPartyResourceList, error) - Watch(opts api.ListOptions) (watch.Interface, error) + List(opts v1.ListOptions) (*v1beta1.ThirdPartyResourceList, error) + Watch(opts v1.ListOptions) (watch.Interface, error) Patch(name string, pt api.PatchType, data []byte, subresources ...string) (result *v1beta1.ThirdPartyResource, err error) ThirdPartyResourceExpansion } // thirdPartyResources implements ThirdPartyResourceInterface type thirdPartyResources struct { - client *ExtensionsClient + client rest.Interface } // newThirdPartyResources returns a ThirdPartyResources -func newThirdPartyResources(c *ExtensionsClient) *thirdPartyResources { +func newThirdPartyResources(c *ExtensionsV1beta1Client) *thirdPartyResources { return &thirdPartyResources{ - client: c, + client: c.RESTClient(), } } @@ -77,7 +79,7 @@ func (c *thirdPartyResources) Update(thirdPartyResource *v1beta1.ThirdPartyResou } // Delete takes name of the thirdPartyResource and deletes it. Returns an error if one occurs. -func (c *thirdPartyResources) Delete(name string, options *api.DeleteOptions) error { +func (c *thirdPartyResources) Delete(name string, options *v1.DeleteOptions) error { return c.client.Delete(). Resource("thirdpartyresources"). Name(name). @@ -87,7 +89,7 @@ func (c *thirdPartyResources) Delete(name string, options *api.DeleteOptions) er } // DeleteCollection deletes a collection of objects. -func (c *thirdPartyResources) DeleteCollection(options *api.DeleteOptions, listOptions api.ListOptions) error { +func (c *thirdPartyResources) DeleteCollection(options *v1.DeleteOptions, listOptions v1.ListOptions) error { return c.client.Delete(). Resource("thirdpartyresources"). VersionedParams(&listOptions, api.ParameterCodec). @@ -108,7 +110,7 @@ func (c *thirdPartyResources) Get(name string) (result *v1beta1.ThirdPartyResour } // List takes label and field selectors, and returns the list of ThirdPartyResources that match those selectors. -func (c *thirdPartyResources) List(opts api.ListOptions) (result *v1beta1.ThirdPartyResourceList, err error) { +func (c *thirdPartyResources) List(opts v1.ListOptions) (result *v1beta1.ThirdPartyResourceList, err error) { result = &v1beta1.ThirdPartyResourceList{} err = c.client.Get(). Resource("thirdpartyresources"). @@ -119,7 +121,7 @@ func (c *thirdPartyResources) List(opts api.ListOptions) (result *v1beta1.ThirdP } // Watch returns a watch.Interface that watches the requested thirdPartyResources. -func (c *thirdPartyResources) Watch(opts api.ListOptions) (watch.Interface, error) { +func (c *thirdPartyResources) Watch(opts v1.ListOptions) (watch.Interface, error) { return c.client.Get(). Prefix("watch"). Resource("thirdpartyresources"). diff --git a/vendor/k8s.io/client-go/kubernetes/typed/policy/v1beta1/doc.go b/vendor/k8s.io/client-go/kubernetes/typed/policy/v1beta1/doc.go new file mode 100644 index 000000000..f96bb0e2a --- /dev/null +++ b/vendor/k8s.io/client-go/kubernetes/typed/policy/v1beta1/doc.go @@ -0,0 +1,20 @@ +/* +Copyright 2017 The Kubernetes Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + +// This package is generated by client-gen with arguments: --clientset-name=release_1_5 --input=[api/v1,apps/v1beta1,authentication/v1beta1,authorization/v1beta1,autoscaling/v1,batch/v1,batch/v2alpha1,certificates/v1alpha1,extensions/v1beta1,policy/v1beta1,rbac/v1alpha1,storage/v1beta1] + +// This package has the automatically generated typed clients. +package v1beta1 diff --git a/vendor/k8s.io/client-go/1.5/kubernetes/typed/policy/v1alpha1/generated_expansion.go b/vendor/k8s.io/client-go/kubernetes/typed/policy/v1beta1/generated_expansion.go similarity index 91% rename from vendor/k8s.io/client-go/1.5/kubernetes/typed/policy/v1alpha1/generated_expansion.go rename to vendor/k8s.io/client-go/kubernetes/typed/policy/v1beta1/generated_expansion.go index a2e74c84d..511adc6ef 100644 --- a/vendor/k8s.io/client-go/1.5/kubernetes/typed/policy/v1alpha1/generated_expansion.go +++ b/vendor/k8s.io/client-go/kubernetes/typed/policy/v1beta1/generated_expansion.go @@ -1,5 +1,5 @@ /* -Copyright 2016 The Kubernetes Authors. +Copyright 2017 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -14,6 +14,6 @@ See the License for the specific language governing permissions and limitations under the License. */ -package v1alpha1 +package v1beta1 type PodDisruptionBudgetExpansion interface{} diff --git a/vendor/k8s.io/client-go/1.5/kubernetes/typed/policy/v1alpha1/poddisruptionbudget.go b/vendor/k8s.io/client-go/kubernetes/typed/policy/v1beta1/poddisruptionbudget.go similarity index 63% rename from vendor/k8s.io/client-go/1.5/kubernetes/typed/policy/v1alpha1/poddisruptionbudget.go rename to vendor/k8s.io/client-go/kubernetes/typed/policy/v1beta1/poddisruptionbudget.go index f3cdd3acd..e59ed279c 100644 --- a/vendor/k8s.io/client-go/1.5/kubernetes/typed/policy/v1alpha1/poddisruptionbudget.go +++ b/vendor/k8s.io/client-go/kubernetes/typed/policy/v1beta1/poddisruptionbudget.go @@ -1,5 +1,5 @@ /* -Copyright 2016 The Kubernetes Authors. +Copyright 2017 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -14,12 +14,14 @@ See the License for the specific language governing permissions and limitations under the License. */ -package v1alpha1 +package v1beta1 import ( - api "k8s.io/client-go/1.5/pkg/api" - v1alpha1 "k8s.io/client-go/1.5/pkg/apis/policy/v1alpha1" - watch "k8s.io/client-go/1.5/pkg/watch" + api "k8s.io/client-go/pkg/api" + v1 "k8s.io/client-go/pkg/api/v1" + v1beta1 "k8s.io/client-go/pkg/apis/policy/v1beta1" + watch "k8s.io/client-go/pkg/watch" + rest "k8s.io/client-go/rest" ) // PodDisruptionBudgetsGetter has a method to return a PodDisruptionBudgetInterface. @@ -30,35 +32,35 @@ type PodDisruptionBudgetsGetter interface { // PodDisruptionBudgetInterface has methods to work with PodDisruptionBudget resources. type PodDisruptionBudgetInterface interface { - Create(*v1alpha1.PodDisruptionBudget) (*v1alpha1.PodDisruptionBudget, error) - Update(*v1alpha1.PodDisruptionBudget) (*v1alpha1.PodDisruptionBudget, error) - UpdateStatus(*v1alpha1.PodDisruptionBudget) (*v1alpha1.PodDisruptionBudget, error) - Delete(name string, options *api.DeleteOptions) error - DeleteCollection(options *api.DeleteOptions, listOptions api.ListOptions) error - Get(name string) (*v1alpha1.PodDisruptionBudget, error) - List(opts api.ListOptions) (*v1alpha1.PodDisruptionBudgetList, error) - Watch(opts api.ListOptions) (watch.Interface, error) - Patch(name string, pt api.PatchType, data []byte, subresources ...string) (result *v1alpha1.PodDisruptionBudget, err error) + Create(*v1beta1.PodDisruptionBudget) (*v1beta1.PodDisruptionBudget, error) + Update(*v1beta1.PodDisruptionBudget) (*v1beta1.PodDisruptionBudget, error) + UpdateStatus(*v1beta1.PodDisruptionBudget) (*v1beta1.PodDisruptionBudget, error) + Delete(name string, options *v1.DeleteOptions) error + DeleteCollection(options *v1.DeleteOptions, listOptions v1.ListOptions) error + Get(name string) (*v1beta1.PodDisruptionBudget, error) + List(opts v1.ListOptions) (*v1beta1.PodDisruptionBudgetList, error) + Watch(opts v1.ListOptions) (watch.Interface, error) + Patch(name string, pt api.PatchType, data []byte, subresources ...string) (result *v1beta1.PodDisruptionBudget, err error) PodDisruptionBudgetExpansion } // podDisruptionBudgets implements PodDisruptionBudgetInterface type podDisruptionBudgets struct { - client *PolicyClient + client rest.Interface ns string } // newPodDisruptionBudgets returns a PodDisruptionBudgets -func newPodDisruptionBudgets(c *PolicyClient, namespace string) *podDisruptionBudgets { +func newPodDisruptionBudgets(c *PolicyV1beta1Client, namespace string) *podDisruptionBudgets { return &podDisruptionBudgets{ - client: c, + client: c.RESTClient(), ns: namespace, } } // Create takes the representation of a podDisruptionBudget and creates it. Returns the server's representation of the podDisruptionBudget, and an error, if there is any. -func (c *podDisruptionBudgets) Create(podDisruptionBudget *v1alpha1.PodDisruptionBudget) (result *v1alpha1.PodDisruptionBudget, err error) { - result = &v1alpha1.PodDisruptionBudget{} +func (c *podDisruptionBudgets) Create(podDisruptionBudget *v1beta1.PodDisruptionBudget) (result *v1beta1.PodDisruptionBudget, err error) { + result = &v1beta1.PodDisruptionBudget{} err = c.client.Post(). Namespace(c.ns). Resource("poddisruptionbudgets"). @@ -69,8 +71,8 @@ func (c *podDisruptionBudgets) Create(podDisruptionBudget *v1alpha1.PodDisruptio } // Update takes the representation of a podDisruptionBudget and updates it. Returns the server's representation of the podDisruptionBudget, and an error, if there is any. -func (c *podDisruptionBudgets) Update(podDisruptionBudget *v1alpha1.PodDisruptionBudget) (result *v1alpha1.PodDisruptionBudget, err error) { - result = &v1alpha1.PodDisruptionBudget{} +func (c *podDisruptionBudgets) Update(podDisruptionBudget *v1beta1.PodDisruptionBudget) (result *v1beta1.PodDisruptionBudget, err error) { + result = &v1beta1.PodDisruptionBudget{} err = c.client.Put(). Namespace(c.ns). Resource("poddisruptionbudgets"). @@ -81,8 +83,8 @@ func (c *podDisruptionBudgets) Update(podDisruptionBudget *v1alpha1.PodDisruptio return } -func (c *podDisruptionBudgets) UpdateStatus(podDisruptionBudget *v1alpha1.PodDisruptionBudget) (result *v1alpha1.PodDisruptionBudget, err error) { - result = &v1alpha1.PodDisruptionBudget{} +func (c *podDisruptionBudgets) UpdateStatus(podDisruptionBudget *v1beta1.PodDisruptionBudget) (result *v1beta1.PodDisruptionBudget, err error) { + result = &v1beta1.PodDisruptionBudget{} err = c.client.Put(). Namespace(c.ns). Resource("poddisruptionbudgets"). @@ -95,7 +97,7 @@ func (c *podDisruptionBudgets) UpdateStatus(podDisruptionBudget *v1alpha1.PodDis } // Delete takes name of the podDisruptionBudget and deletes it. Returns an error if one occurs. -func (c *podDisruptionBudgets) Delete(name string, options *api.DeleteOptions) error { +func (c *podDisruptionBudgets) Delete(name string, options *v1.DeleteOptions) error { return c.client.Delete(). Namespace(c.ns). Resource("poddisruptionbudgets"). @@ -106,7 +108,7 @@ func (c *podDisruptionBudgets) Delete(name string, options *api.DeleteOptions) e } // DeleteCollection deletes a collection of objects. -func (c *podDisruptionBudgets) DeleteCollection(options *api.DeleteOptions, listOptions api.ListOptions) error { +func (c *podDisruptionBudgets) DeleteCollection(options *v1.DeleteOptions, listOptions v1.ListOptions) error { return c.client.Delete(). Namespace(c.ns). Resource("poddisruptionbudgets"). @@ -117,8 +119,8 @@ func (c *podDisruptionBudgets) DeleteCollection(options *api.DeleteOptions, list } // Get takes name of the podDisruptionBudget, and returns the corresponding podDisruptionBudget object, and an error if there is any. -func (c *podDisruptionBudgets) Get(name string) (result *v1alpha1.PodDisruptionBudget, err error) { - result = &v1alpha1.PodDisruptionBudget{} +func (c *podDisruptionBudgets) Get(name string) (result *v1beta1.PodDisruptionBudget, err error) { + result = &v1beta1.PodDisruptionBudget{} err = c.client.Get(). Namespace(c.ns). Resource("poddisruptionbudgets"). @@ -129,8 +131,8 @@ func (c *podDisruptionBudgets) Get(name string) (result *v1alpha1.PodDisruptionB } // List takes label and field selectors, and returns the list of PodDisruptionBudgets that match those selectors. -func (c *podDisruptionBudgets) List(opts api.ListOptions) (result *v1alpha1.PodDisruptionBudgetList, err error) { - result = &v1alpha1.PodDisruptionBudgetList{} +func (c *podDisruptionBudgets) List(opts v1.ListOptions) (result *v1beta1.PodDisruptionBudgetList, err error) { + result = &v1beta1.PodDisruptionBudgetList{} err = c.client.Get(). Namespace(c.ns). Resource("poddisruptionbudgets"). @@ -141,7 +143,7 @@ func (c *podDisruptionBudgets) List(opts api.ListOptions) (result *v1alpha1.PodD } // Watch returns a watch.Interface that watches the requested podDisruptionBudgets. -func (c *podDisruptionBudgets) Watch(opts api.ListOptions) (watch.Interface, error) { +func (c *podDisruptionBudgets) Watch(opts v1.ListOptions) (watch.Interface, error) { return c.client.Get(). Prefix("watch"). Namespace(c.ns). @@ -151,8 +153,8 @@ func (c *podDisruptionBudgets) Watch(opts api.ListOptions) (watch.Interface, err } // Patch applies the patch and returns the patched podDisruptionBudget. -func (c *podDisruptionBudgets) Patch(name string, pt api.PatchType, data []byte, subresources ...string) (result *v1alpha1.PodDisruptionBudget, err error) { - result = &v1alpha1.PodDisruptionBudget{} +func (c *podDisruptionBudgets) Patch(name string, pt api.PatchType, data []byte, subresources ...string) (result *v1beta1.PodDisruptionBudget, err error) { + result = &v1beta1.PodDisruptionBudget{} err = c.client.Patch(pt). Namespace(c.ns). Resource("poddisruptionbudgets"). diff --git a/vendor/k8s.io/client-go/kubernetes/typed/policy/v1beta1/policy_client.go b/vendor/k8s.io/client-go/kubernetes/typed/policy/v1beta1/policy_client.go new file mode 100644 index 000000000..e924b8b28 --- /dev/null +++ b/vendor/k8s.io/client-go/kubernetes/typed/policy/v1beta1/policy_client.go @@ -0,0 +1,98 @@ +/* +Copyright 2017 The Kubernetes Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + +package v1beta1 + +import ( + fmt "fmt" + api "k8s.io/client-go/pkg/api" + unversioned "k8s.io/client-go/pkg/api/unversioned" + registered "k8s.io/client-go/pkg/apimachinery/registered" + serializer "k8s.io/client-go/pkg/runtime/serializer" + rest "k8s.io/client-go/rest" +) + +type PolicyV1beta1Interface interface { + RESTClient() rest.Interface + PodDisruptionBudgetsGetter +} + +// PolicyV1beta1Client is used to interact with features provided by the k8s.io/kubernetes/pkg/apimachinery/registered.Group group. +type PolicyV1beta1Client struct { + restClient rest.Interface +} + +func (c *PolicyV1beta1Client) PodDisruptionBudgets(namespace string) PodDisruptionBudgetInterface { + return newPodDisruptionBudgets(c, namespace) +} + +// NewForConfig creates a new PolicyV1beta1Client for the given config. +func NewForConfig(c *rest.Config) (*PolicyV1beta1Client, error) { + config := *c + if err := setConfigDefaults(&config); err != nil { + return nil, err + } + client, err := rest.RESTClientFor(&config) + if err != nil { + return nil, err + } + return &PolicyV1beta1Client{client}, nil +} + +// NewForConfigOrDie creates a new PolicyV1beta1Client for the given config and +// panics if there is an error in the config. +func NewForConfigOrDie(c *rest.Config) *PolicyV1beta1Client { + client, err := NewForConfig(c) + if err != nil { + panic(err) + } + return client +} + +// New creates a new PolicyV1beta1Client for the given RESTClient. +func New(c rest.Interface) *PolicyV1beta1Client { + return &PolicyV1beta1Client{c} +} + +func setConfigDefaults(config *rest.Config) error { + gv, err := unversioned.ParseGroupVersion("policy/v1beta1") + if err != nil { + return err + } + // if policy/v1beta1 is not enabled, return an error + if !registered.IsEnabledVersion(gv) { + return fmt.Errorf("policy/v1beta1 is not enabled") + } + config.APIPath = "/apis" + if config.UserAgent == "" { + config.UserAgent = rest.DefaultKubernetesUserAgent() + } + copyGroupVersion := gv + config.GroupVersion = ©GroupVersion + + config.NegotiatedSerializer = serializer.DirectCodecFactory{CodecFactory: api.Codecs} + + return nil +} + +// RESTClient returns a RESTClient that is used to communicate +// with API server by this client implementation. +func (c *PolicyV1beta1Client) RESTClient() rest.Interface { + if c == nil { + return nil + } + return c.restClient +} diff --git a/vendor/k8s.io/client-go/1.5/kubernetes/typed/rbac/v1alpha1/clusterrole.go b/vendor/k8s.io/client-go/kubernetes/typed/rbac/v1alpha1/clusterrole.go similarity index 80% rename from vendor/k8s.io/client-go/1.5/kubernetes/typed/rbac/v1alpha1/clusterrole.go rename to vendor/k8s.io/client-go/kubernetes/typed/rbac/v1alpha1/clusterrole.go index 8e4a838d1..a48134df2 100644 --- a/vendor/k8s.io/client-go/1.5/kubernetes/typed/rbac/v1alpha1/clusterrole.go +++ b/vendor/k8s.io/client-go/kubernetes/typed/rbac/v1alpha1/clusterrole.go @@ -1,5 +1,5 @@ /* -Copyright 2016 The Kubernetes Authors. +Copyright 2017 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -17,9 +17,11 @@ limitations under the License. package v1alpha1 import ( - api "k8s.io/client-go/1.5/pkg/api" - v1alpha1 "k8s.io/client-go/1.5/pkg/apis/rbac/v1alpha1" - watch "k8s.io/client-go/1.5/pkg/watch" + api "k8s.io/client-go/pkg/api" + v1 "k8s.io/client-go/pkg/api/v1" + v1alpha1 "k8s.io/client-go/pkg/apis/rbac/v1alpha1" + watch "k8s.io/client-go/pkg/watch" + rest "k8s.io/client-go/rest" ) // ClusterRolesGetter has a method to return a ClusterRoleInterface. @@ -32,24 +34,24 @@ type ClusterRolesGetter interface { type ClusterRoleInterface interface { Create(*v1alpha1.ClusterRole) (*v1alpha1.ClusterRole, error) Update(*v1alpha1.ClusterRole) (*v1alpha1.ClusterRole, error) - Delete(name string, options *api.DeleteOptions) error - DeleteCollection(options *api.DeleteOptions, listOptions api.ListOptions) error + Delete(name string, options *v1.DeleteOptions) error + DeleteCollection(options *v1.DeleteOptions, listOptions v1.ListOptions) error Get(name string) (*v1alpha1.ClusterRole, error) - List(opts api.ListOptions) (*v1alpha1.ClusterRoleList, error) - Watch(opts api.ListOptions) (watch.Interface, error) + List(opts v1.ListOptions) (*v1alpha1.ClusterRoleList, error) + Watch(opts v1.ListOptions) (watch.Interface, error) Patch(name string, pt api.PatchType, data []byte, subresources ...string) (result *v1alpha1.ClusterRole, err error) ClusterRoleExpansion } // clusterRoles implements ClusterRoleInterface type clusterRoles struct { - client *RbacClient + client rest.Interface } // newClusterRoles returns a ClusterRoles -func newClusterRoles(c *RbacClient) *clusterRoles { +func newClusterRoles(c *RbacV1alpha1Client) *clusterRoles { return &clusterRoles{ - client: c, + client: c.RESTClient(), } } @@ -77,7 +79,7 @@ func (c *clusterRoles) Update(clusterRole *v1alpha1.ClusterRole) (result *v1alph } // Delete takes name of the clusterRole and deletes it. Returns an error if one occurs. -func (c *clusterRoles) Delete(name string, options *api.DeleteOptions) error { +func (c *clusterRoles) Delete(name string, options *v1.DeleteOptions) error { return c.client.Delete(). Resource("clusterroles"). Name(name). @@ -87,7 +89,7 @@ func (c *clusterRoles) Delete(name string, options *api.DeleteOptions) error { } // DeleteCollection deletes a collection of objects. -func (c *clusterRoles) DeleteCollection(options *api.DeleteOptions, listOptions api.ListOptions) error { +func (c *clusterRoles) DeleteCollection(options *v1.DeleteOptions, listOptions v1.ListOptions) error { return c.client.Delete(). Resource("clusterroles"). VersionedParams(&listOptions, api.ParameterCodec). @@ -108,7 +110,7 @@ func (c *clusterRoles) Get(name string) (result *v1alpha1.ClusterRole, err error } // List takes label and field selectors, and returns the list of ClusterRoles that match those selectors. -func (c *clusterRoles) List(opts api.ListOptions) (result *v1alpha1.ClusterRoleList, err error) { +func (c *clusterRoles) List(opts v1.ListOptions) (result *v1alpha1.ClusterRoleList, err error) { result = &v1alpha1.ClusterRoleList{} err = c.client.Get(). Resource("clusterroles"). @@ -119,7 +121,7 @@ func (c *clusterRoles) List(opts api.ListOptions) (result *v1alpha1.ClusterRoleL } // Watch returns a watch.Interface that watches the requested clusterRoles. -func (c *clusterRoles) Watch(opts api.ListOptions) (watch.Interface, error) { +func (c *clusterRoles) Watch(opts v1.ListOptions) (watch.Interface, error) { return c.client.Get(). Prefix("watch"). Resource("clusterroles"). diff --git a/vendor/k8s.io/client-go/1.5/kubernetes/typed/rbac/v1alpha1/clusterrolebinding.go b/vendor/k8s.io/client-go/kubernetes/typed/rbac/v1alpha1/clusterrolebinding.go similarity index 80% rename from vendor/k8s.io/client-go/1.5/kubernetes/typed/rbac/v1alpha1/clusterrolebinding.go rename to vendor/k8s.io/client-go/kubernetes/typed/rbac/v1alpha1/clusterrolebinding.go index 919f84074..d16ea084d 100644 --- a/vendor/k8s.io/client-go/1.5/kubernetes/typed/rbac/v1alpha1/clusterrolebinding.go +++ b/vendor/k8s.io/client-go/kubernetes/typed/rbac/v1alpha1/clusterrolebinding.go @@ -1,5 +1,5 @@ /* -Copyright 2016 The Kubernetes Authors. +Copyright 2017 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -17,9 +17,11 @@ limitations under the License. package v1alpha1 import ( - api "k8s.io/client-go/1.5/pkg/api" - v1alpha1 "k8s.io/client-go/1.5/pkg/apis/rbac/v1alpha1" - watch "k8s.io/client-go/1.5/pkg/watch" + api "k8s.io/client-go/pkg/api" + v1 "k8s.io/client-go/pkg/api/v1" + v1alpha1 "k8s.io/client-go/pkg/apis/rbac/v1alpha1" + watch "k8s.io/client-go/pkg/watch" + rest "k8s.io/client-go/rest" ) // ClusterRoleBindingsGetter has a method to return a ClusterRoleBindingInterface. @@ -32,24 +34,24 @@ type ClusterRoleBindingsGetter interface { type ClusterRoleBindingInterface interface { Create(*v1alpha1.ClusterRoleBinding) (*v1alpha1.ClusterRoleBinding, error) Update(*v1alpha1.ClusterRoleBinding) (*v1alpha1.ClusterRoleBinding, error) - Delete(name string, options *api.DeleteOptions) error - DeleteCollection(options *api.DeleteOptions, listOptions api.ListOptions) error + Delete(name string, options *v1.DeleteOptions) error + DeleteCollection(options *v1.DeleteOptions, listOptions v1.ListOptions) error Get(name string) (*v1alpha1.ClusterRoleBinding, error) - List(opts api.ListOptions) (*v1alpha1.ClusterRoleBindingList, error) - Watch(opts api.ListOptions) (watch.Interface, error) + List(opts v1.ListOptions) (*v1alpha1.ClusterRoleBindingList, error) + Watch(opts v1.ListOptions) (watch.Interface, error) Patch(name string, pt api.PatchType, data []byte, subresources ...string) (result *v1alpha1.ClusterRoleBinding, err error) ClusterRoleBindingExpansion } // clusterRoleBindings implements ClusterRoleBindingInterface type clusterRoleBindings struct { - client *RbacClient + client rest.Interface } // newClusterRoleBindings returns a ClusterRoleBindings -func newClusterRoleBindings(c *RbacClient) *clusterRoleBindings { +func newClusterRoleBindings(c *RbacV1alpha1Client) *clusterRoleBindings { return &clusterRoleBindings{ - client: c, + client: c.RESTClient(), } } @@ -77,7 +79,7 @@ func (c *clusterRoleBindings) Update(clusterRoleBinding *v1alpha1.ClusterRoleBin } // Delete takes name of the clusterRoleBinding and deletes it. Returns an error if one occurs. -func (c *clusterRoleBindings) Delete(name string, options *api.DeleteOptions) error { +func (c *clusterRoleBindings) Delete(name string, options *v1.DeleteOptions) error { return c.client.Delete(). Resource("clusterrolebindings"). Name(name). @@ -87,7 +89,7 @@ func (c *clusterRoleBindings) Delete(name string, options *api.DeleteOptions) er } // DeleteCollection deletes a collection of objects. -func (c *clusterRoleBindings) DeleteCollection(options *api.DeleteOptions, listOptions api.ListOptions) error { +func (c *clusterRoleBindings) DeleteCollection(options *v1.DeleteOptions, listOptions v1.ListOptions) error { return c.client.Delete(). Resource("clusterrolebindings"). VersionedParams(&listOptions, api.ParameterCodec). @@ -108,7 +110,7 @@ func (c *clusterRoleBindings) Get(name string) (result *v1alpha1.ClusterRoleBind } // List takes label and field selectors, and returns the list of ClusterRoleBindings that match those selectors. -func (c *clusterRoleBindings) List(opts api.ListOptions) (result *v1alpha1.ClusterRoleBindingList, err error) { +func (c *clusterRoleBindings) List(opts v1.ListOptions) (result *v1alpha1.ClusterRoleBindingList, err error) { result = &v1alpha1.ClusterRoleBindingList{} err = c.client.Get(). Resource("clusterrolebindings"). @@ -119,7 +121,7 @@ func (c *clusterRoleBindings) List(opts api.ListOptions) (result *v1alpha1.Clust } // Watch returns a watch.Interface that watches the requested clusterRoleBindings. -func (c *clusterRoleBindings) Watch(opts api.ListOptions) (watch.Interface, error) { +func (c *clusterRoleBindings) Watch(opts v1.ListOptions) (watch.Interface, error) { return c.client.Get(). Prefix("watch"). Resource("clusterrolebindings"). diff --git a/vendor/k8s.io/client-go/1.5/kubernetes/typed/policy/v1alpha1/doc.go b/vendor/k8s.io/client-go/kubernetes/typed/rbac/v1alpha1/doc.go similarity index 72% rename from vendor/k8s.io/client-go/1.5/kubernetes/typed/policy/v1alpha1/doc.go rename to vendor/k8s.io/client-go/kubernetes/typed/rbac/v1alpha1/doc.go index 0c1ca41fa..77f6cf0a2 100644 --- a/vendor/k8s.io/client-go/1.5/kubernetes/typed/policy/v1alpha1/doc.go +++ b/vendor/k8s.io/client-go/kubernetes/typed/rbac/v1alpha1/doc.go @@ -1,5 +1,5 @@ /* -Copyright 2016 The Kubernetes Authors. +Copyright 2017 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -14,7 +14,7 @@ See the License for the specific language governing permissions and limitations under the License. */ -// This package is generated by client-gen with arguments: --clientset-name=release_1_5 --input=[api/v1,apps/v1alpha1,authentication/v1beta1,authorization/v1beta1,autoscaling/v1,batch/v1,certificates/v1alpha1,extensions/v1beta1,policy/v1alpha1,rbac/v1alpha1,storage/v1beta1] +// This package is generated by client-gen with arguments: --clientset-name=release_1_5 --input=[api/v1,apps/v1beta1,authentication/v1beta1,authorization/v1beta1,autoscaling/v1,batch/v1,batch/v2alpha1,certificates/v1alpha1,extensions/v1beta1,policy/v1beta1,rbac/v1alpha1,storage/v1beta1] // This package has the automatically generated typed clients. package v1alpha1 diff --git a/vendor/k8s.io/client-go/1.5/kubernetes/typed/rbac/v1alpha1/generated_expansion.go b/vendor/k8s.io/client-go/kubernetes/typed/rbac/v1alpha1/generated_expansion.go similarity index 94% rename from vendor/k8s.io/client-go/1.5/kubernetes/typed/rbac/v1alpha1/generated_expansion.go rename to vendor/k8s.io/client-go/kubernetes/typed/rbac/v1alpha1/generated_expansion.go index 86def2663..f506fc346 100644 --- a/vendor/k8s.io/client-go/1.5/kubernetes/typed/rbac/v1alpha1/generated_expansion.go +++ b/vendor/k8s.io/client-go/kubernetes/typed/rbac/v1alpha1/generated_expansion.go @@ -1,5 +1,5 @@ /* -Copyright 2016 The Kubernetes Authors. +Copyright 2017 The Kubernetes Authors. 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/vendor/k8s.io/client-go/kubernetes/typed/rbac/v1alpha1/rbac_client.go b/vendor/k8s.io/client-go/kubernetes/typed/rbac/v1alpha1/rbac_client.go new file mode 100644 index 000000000..b7505efad --- /dev/null +++ b/vendor/k8s.io/client-go/kubernetes/typed/rbac/v1alpha1/rbac_client.go @@ -0,0 +1,113 @@ +/* +Copyright 2017 The Kubernetes Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES 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 ( + fmt "fmt" + api "k8s.io/client-go/pkg/api" + unversioned "k8s.io/client-go/pkg/api/unversioned" + registered "k8s.io/client-go/pkg/apimachinery/registered" + serializer "k8s.io/client-go/pkg/runtime/serializer" + rest "k8s.io/client-go/rest" +) + +type RbacV1alpha1Interface interface { + RESTClient() rest.Interface + ClusterRolesGetter + ClusterRoleBindingsGetter + RolesGetter + RoleBindingsGetter +} + +// RbacV1alpha1Client is used to interact with features provided by the k8s.io/kubernetes/pkg/apimachinery/registered.Group group. +type RbacV1alpha1Client struct { + restClient rest.Interface +} + +func (c *RbacV1alpha1Client) ClusterRoles() ClusterRoleInterface { + return newClusterRoles(c) +} + +func (c *RbacV1alpha1Client) ClusterRoleBindings() ClusterRoleBindingInterface { + return newClusterRoleBindings(c) +} + +func (c *RbacV1alpha1Client) Roles(namespace string) RoleInterface { + return newRoles(c, namespace) +} + +func (c *RbacV1alpha1Client) RoleBindings(namespace string) RoleBindingInterface { + return newRoleBindings(c, namespace) +} + +// NewForConfig creates a new RbacV1alpha1Client for the given config. +func NewForConfig(c *rest.Config) (*RbacV1alpha1Client, error) { + config := *c + if err := setConfigDefaults(&config); err != nil { + return nil, err + } + client, err := rest.RESTClientFor(&config) + if err != nil { + return nil, err + } + return &RbacV1alpha1Client{client}, nil +} + +// NewForConfigOrDie creates a new RbacV1alpha1Client for the given config and +// panics if there is an error in the config. +func NewForConfigOrDie(c *rest.Config) *RbacV1alpha1Client { + client, err := NewForConfig(c) + if err != nil { + panic(err) + } + return client +} + +// New creates a new RbacV1alpha1Client for the given RESTClient. +func New(c rest.Interface) *RbacV1alpha1Client { + return &RbacV1alpha1Client{c} +} + +func setConfigDefaults(config *rest.Config) error { + gv, err := unversioned.ParseGroupVersion("rbac.authorization.k8s.io/v1alpha1") + if err != nil { + return err + } + // if rbac.authorization.k8s.io/v1alpha1 is not enabled, return an error + if !registered.IsEnabledVersion(gv) { + return fmt.Errorf("rbac.authorization.k8s.io/v1alpha1 is not enabled") + } + config.APIPath = "/apis" + if config.UserAgent == "" { + config.UserAgent = rest.DefaultKubernetesUserAgent() + } + copyGroupVersion := gv + config.GroupVersion = ©GroupVersion + + config.NegotiatedSerializer = serializer.DirectCodecFactory{CodecFactory: api.Codecs} + + return nil +} + +// RESTClient returns a RESTClient that is used to communicate +// with API server by this client implementation. +func (c *RbacV1alpha1Client) RESTClient() rest.Interface { + if c == nil { + return nil + } + return c.restClient +} diff --git a/vendor/k8s.io/client-go/1.5/kubernetes/typed/rbac/v1alpha1/role.go b/vendor/k8s.io/client-go/kubernetes/typed/rbac/v1alpha1/role.go similarity index 79% rename from vendor/k8s.io/client-go/1.5/kubernetes/typed/rbac/v1alpha1/role.go rename to vendor/k8s.io/client-go/kubernetes/typed/rbac/v1alpha1/role.go index 72de75c65..5f13257ac 100644 --- a/vendor/k8s.io/client-go/1.5/kubernetes/typed/rbac/v1alpha1/role.go +++ b/vendor/k8s.io/client-go/kubernetes/typed/rbac/v1alpha1/role.go @@ -1,5 +1,5 @@ /* -Copyright 2016 The Kubernetes Authors. +Copyright 2017 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -17,9 +17,11 @@ limitations under the License. package v1alpha1 import ( - api "k8s.io/client-go/1.5/pkg/api" - v1alpha1 "k8s.io/client-go/1.5/pkg/apis/rbac/v1alpha1" - watch "k8s.io/client-go/1.5/pkg/watch" + api "k8s.io/client-go/pkg/api" + v1 "k8s.io/client-go/pkg/api/v1" + v1alpha1 "k8s.io/client-go/pkg/apis/rbac/v1alpha1" + watch "k8s.io/client-go/pkg/watch" + rest "k8s.io/client-go/rest" ) // RolesGetter has a method to return a RoleInterface. @@ -32,25 +34,25 @@ type RolesGetter interface { type RoleInterface interface { Create(*v1alpha1.Role) (*v1alpha1.Role, error) Update(*v1alpha1.Role) (*v1alpha1.Role, error) - Delete(name string, options *api.DeleteOptions) error - DeleteCollection(options *api.DeleteOptions, listOptions api.ListOptions) error + Delete(name string, options *v1.DeleteOptions) error + DeleteCollection(options *v1.DeleteOptions, listOptions v1.ListOptions) error Get(name string) (*v1alpha1.Role, error) - List(opts api.ListOptions) (*v1alpha1.RoleList, error) - Watch(opts api.ListOptions) (watch.Interface, error) + List(opts v1.ListOptions) (*v1alpha1.RoleList, error) + Watch(opts v1.ListOptions) (watch.Interface, error) Patch(name string, pt api.PatchType, data []byte, subresources ...string) (result *v1alpha1.Role, err error) RoleExpansion } // roles implements RoleInterface type roles struct { - client *RbacClient + client rest.Interface ns string } // newRoles returns a Roles -func newRoles(c *RbacClient, namespace string) *roles { +func newRoles(c *RbacV1alpha1Client, namespace string) *roles { return &roles{ - client: c, + client: c.RESTClient(), ns: namespace, } } @@ -81,7 +83,7 @@ func (c *roles) Update(role *v1alpha1.Role) (result *v1alpha1.Role, err error) { } // Delete takes name of the role and deletes it. Returns an error if one occurs. -func (c *roles) Delete(name string, options *api.DeleteOptions) error { +func (c *roles) Delete(name string, options *v1.DeleteOptions) error { return c.client.Delete(). Namespace(c.ns). Resource("roles"). @@ -92,7 +94,7 @@ func (c *roles) Delete(name string, options *api.DeleteOptions) error { } // DeleteCollection deletes a collection of objects. -func (c *roles) DeleteCollection(options *api.DeleteOptions, listOptions api.ListOptions) error { +func (c *roles) DeleteCollection(options *v1.DeleteOptions, listOptions v1.ListOptions) error { return c.client.Delete(). Namespace(c.ns). Resource("roles"). @@ -115,7 +117,7 @@ func (c *roles) Get(name string) (result *v1alpha1.Role, err error) { } // List takes label and field selectors, and returns the list of Roles that match those selectors. -func (c *roles) List(opts api.ListOptions) (result *v1alpha1.RoleList, err error) { +func (c *roles) List(opts v1.ListOptions) (result *v1alpha1.RoleList, err error) { result = &v1alpha1.RoleList{} err = c.client.Get(). Namespace(c.ns). @@ -127,7 +129,7 @@ func (c *roles) List(opts api.ListOptions) (result *v1alpha1.RoleList, err error } // Watch returns a watch.Interface that watches the requested roles. -func (c *roles) Watch(opts api.ListOptions) (watch.Interface, error) { +func (c *roles) Watch(opts v1.ListOptions) (watch.Interface, error) { return c.client.Get(). Prefix("watch"). Namespace(c.ns). diff --git a/vendor/k8s.io/client-go/1.5/kubernetes/typed/rbac/v1alpha1/rolebinding.go b/vendor/k8s.io/client-go/kubernetes/typed/rbac/v1alpha1/rolebinding.go similarity index 80% rename from vendor/k8s.io/client-go/1.5/kubernetes/typed/rbac/v1alpha1/rolebinding.go rename to vendor/k8s.io/client-go/kubernetes/typed/rbac/v1alpha1/rolebinding.go index 649a9dd30..a9723093c 100644 --- a/vendor/k8s.io/client-go/1.5/kubernetes/typed/rbac/v1alpha1/rolebinding.go +++ b/vendor/k8s.io/client-go/kubernetes/typed/rbac/v1alpha1/rolebinding.go @@ -1,5 +1,5 @@ /* -Copyright 2016 The Kubernetes Authors. +Copyright 2017 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -17,9 +17,11 @@ limitations under the License. package v1alpha1 import ( - api "k8s.io/client-go/1.5/pkg/api" - v1alpha1 "k8s.io/client-go/1.5/pkg/apis/rbac/v1alpha1" - watch "k8s.io/client-go/1.5/pkg/watch" + api "k8s.io/client-go/pkg/api" + v1 "k8s.io/client-go/pkg/api/v1" + v1alpha1 "k8s.io/client-go/pkg/apis/rbac/v1alpha1" + watch "k8s.io/client-go/pkg/watch" + rest "k8s.io/client-go/rest" ) // RoleBindingsGetter has a method to return a RoleBindingInterface. @@ -32,25 +34,25 @@ type RoleBindingsGetter interface { type RoleBindingInterface interface { Create(*v1alpha1.RoleBinding) (*v1alpha1.RoleBinding, error) Update(*v1alpha1.RoleBinding) (*v1alpha1.RoleBinding, error) - Delete(name string, options *api.DeleteOptions) error - DeleteCollection(options *api.DeleteOptions, listOptions api.ListOptions) error + Delete(name string, options *v1.DeleteOptions) error + DeleteCollection(options *v1.DeleteOptions, listOptions v1.ListOptions) error Get(name string) (*v1alpha1.RoleBinding, error) - List(opts api.ListOptions) (*v1alpha1.RoleBindingList, error) - Watch(opts api.ListOptions) (watch.Interface, error) + List(opts v1.ListOptions) (*v1alpha1.RoleBindingList, error) + Watch(opts v1.ListOptions) (watch.Interface, error) Patch(name string, pt api.PatchType, data []byte, subresources ...string) (result *v1alpha1.RoleBinding, err error) RoleBindingExpansion } // roleBindings implements RoleBindingInterface type roleBindings struct { - client *RbacClient + client rest.Interface ns string } // newRoleBindings returns a RoleBindings -func newRoleBindings(c *RbacClient, namespace string) *roleBindings { +func newRoleBindings(c *RbacV1alpha1Client, namespace string) *roleBindings { return &roleBindings{ - client: c, + client: c.RESTClient(), ns: namespace, } } @@ -81,7 +83,7 @@ func (c *roleBindings) Update(roleBinding *v1alpha1.RoleBinding) (result *v1alph } // Delete takes name of the roleBinding and deletes it. Returns an error if one occurs. -func (c *roleBindings) Delete(name string, options *api.DeleteOptions) error { +func (c *roleBindings) Delete(name string, options *v1.DeleteOptions) error { return c.client.Delete(). Namespace(c.ns). Resource("rolebindings"). @@ -92,7 +94,7 @@ func (c *roleBindings) Delete(name string, options *api.DeleteOptions) error { } // DeleteCollection deletes a collection of objects. -func (c *roleBindings) DeleteCollection(options *api.DeleteOptions, listOptions api.ListOptions) error { +func (c *roleBindings) DeleteCollection(options *v1.DeleteOptions, listOptions v1.ListOptions) error { return c.client.Delete(). Namespace(c.ns). Resource("rolebindings"). @@ -115,7 +117,7 @@ func (c *roleBindings) Get(name string) (result *v1alpha1.RoleBinding, err error } // List takes label and field selectors, and returns the list of RoleBindings that match those selectors. -func (c *roleBindings) List(opts api.ListOptions) (result *v1alpha1.RoleBindingList, err error) { +func (c *roleBindings) List(opts v1.ListOptions) (result *v1alpha1.RoleBindingList, err error) { result = &v1alpha1.RoleBindingList{} err = c.client.Get(). Namespace(c.ns). @@ -127,7 +129,7 @@ func (c *roleBindings) List(opts api.ListOptions) (result *v1alpha1.RoleBindingL } // Watch returns a watch.Interface that watches the requested roleBindings. -func (c *roleBindings) Watch(opts api.ListOptions) (watch.Interface, error) { +func (c *roleBindings) Watch(opts v1.ListOptions) (watch.Interface, error) { return c.client.Get(). Prefix("watch"). Namespace(c.ns). diff --git a/vendor/k8s.io/client-go/kubernetes/typed/storage/v1beta1/doc.go b/vendor/k8s.io/client-go/kubernetes/typed/storage/v1beta1/doc.go new file mode 100644 index 000000000..f96bb0e2a --- /dev/null +++ b/vendor/k8s.io/client-go/kubernetes/typed/storage/v1beta1/doc.go @@ -0,0 +1,20 @@ +/* +Copyright 2017 The Kubernetes Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + +// This package is generated by client-gen with arguments: --clientset-name=release_1_5 --input=[api/v1,apps/v1beta1,authentication/v1beta1,authorization/v1beta1,autoscaling/v1,batch/v1,batch/v2alpha1,certificates/v1alpha1,extensions/v1beta1,policy/v1beta1,rbac/v1alpha1,storage/v1beta1] + +// This package has the automatically generated typed clients. +package v1beta1 diff --git a/vendor/k8s.io/client-go/1.5/kubernetes/typed/storage/v1beta1/generated_expansion.go b/vendor/k8s.io/client-go/kubernetes/typed/storage/v1beta1/generated_expansion.go similarity index 93% rename from vendor/k8s.io/client-go/1.5/kubernetes/typed/storage/v1beta1/generated_expansion.go rename to vendor/k8s.io/client-go/kubernetes/typed/storage/v1beta1/generated_expansion.go index b18dda009..6f3f0c55e 100644 --- a/vendor/k8s.io/client-go/1.5/kubernetes/typed/storage/v1beta1/generated_expansion.go +++ b/vendor/k8s.io/client-go/kubernetes/typed/storage/v1beta1/generated_expansion.go @@ -1,5 +1,5 @@ /* -Copyright 2016 The Kubernetes Authors. +Copyright 2017 The Kubernetes Authors. 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/vendor/k8s.io/client-go/kubernetes/typed/storage/v1beta1/storage_client.go b/vendor/k8s.io/client-go/kubernetes/typed/storage/v1beta1/storage_client.go new file mode 100644 index 000000000..f5466e3d9 --- /dev/null +++ b/vendor/k8s.io/client-go/kubernetes/typed/storage/v1beta1/storage_client.go @@ -0,0 +1,98 @@ +/* +Copyright 2017 The Kubernetes Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + +package v1beta1 + +import ( + fmt "fmt" + api "k8s.io/client-go/pkg/api" + unversioned "k8s.io/client-go/pkg/api/unversioned" + registered "k8s.io/client-go/pkg/apimachinery/registered" + serializer "k8s.io/client-go/pkg/runtime/serializer" + rest "k8s.io/client-go/rest" +) + +type StorageV1beta1Interface interface { + RESTClient() rest.Interface + StorageClassesGetter +} + +// StorageV1beta1Client is used to interact with features provided by the k8s.io/kubernetes/pkg/apimachinery/registered.Group group. +type StorageV1beta1Client struct { + restClient rest.Interface +} + +func (c *StorageV1beta1Client) StorageClasses() StorageClassInterface { + return newStorageClasses(c) +} + +// NewForConfig creates a new StorageV1beta1Client for the given config. +func NewForConfig(c *rest.Config) (*StorageV1beta1Client, error) { + config := *c + if err := setConfigDefaults(&config); err != nil { + return nil, err + } + client, err := rest.RESTClientFor(&config) + if err != nil { + return nil, err + } + return &StorageV1beta1Client{client}, nil +} + +// NewForConfigOrDie creates a new StorageV1beta1Client for the given config and +// panics if there is an error in the config. +func NewForConfigOrDie(c *rest.Config) *StorageV1beta1Client { + client, err := NewForConfig(c) + if err != nil { + panic(err) + } + return client +} + +// New creates a new StorageV1beta1Client for the given RESTClient. +func New(c rest.Interface) *StorageV1beta1Client { + return &StorageV1beta1Client{c} +} + +func setConfigDefaults(config *rest.Config) error { + gv, err := unversioned.ParseGroupVersion("storage.k8s.io/v1beta1") + if err != nil { + return err + } + // if storage.k8s.io/v1beta1 is not enabled, return an error + if !registered.IsEnabledVersion(gv) { + return fmt.Errorf("storage.k8s.io/v1beta1 is not enabled") + } + config.APIPath = "/apis" + if config.UserAgent == "" { + config.UserAgent = rest.DefaultKubernetesUserAgent() + } + copyGroupVersion := gv + config.GroupVersion = ©GroupVersion + + config.NegotiatedSerializer = serializer.DirectCodecFactory{CodecFactory: api.Codecs} + + return nil +} + +// RESTClient returns a RESTClient that is used to communicate +// with API server by this client implementation. +func (c *StorageV1beta1Client) RESTClient() rest.Interface { + if c == nil { + return nil + } + return c.restClient +} diff --git a/vendor/k8s.io/client-go/1.5/kubernetes/typed/storage/v1beta1/storageclass.go b/vendor/k8s.io/client-go/kubernetes/typed/storage/v1beta1/storageclass.go similarity index 80% rename from vendor/k8s.io/client-go/1.5/kubernetes/typed/storage/v1beta1/storageclass.go rename to vendor/k8s.io/client-go/kubernetes/typed/storage/v1beta1/storageclass.go index c1453cd43..e5000e636 100644 --- a/vendor/k8s.io/client-go/1.5/kubernetes/typed/storage/v1beta1/storageclass.go +++ b/vendor/k8s.io/client-go/kubernetes/typed/storage/v1beta1/storageclass.go @@ -1,5 +1,5 @@ /* -Copyright 2016 The Kubernetes Authors. +Copyright 2017 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -17,9 +17,11 @@ limitations under the License. package v1beta1 import ( - api "k8s.io/client-go/1.5/pkg/api" - v1beta1 "k8s.io/client-go/1.5/pkg/apis/storage/v1beta1" - watch "k8s.io/client-go/1.5/pkg/watch" + api "k8s.io/client-go/pkg/api" + v1 "k8s.io/client-go/pkg/api/v1" + v1beta1 "k8s.io/client-go/pkg/apis/storage/v1beta1" + watch "k8s.io/client-go/pkg/watch" + rest "k8s.io/client-go/rest" ) // StorageClassesGetter has a method to return a StorageClassInterface. @@ -32,24 +34,24 @@ type StorageClassesGetter interface { type StorageClassInterface interface { Create(*v1beta1.StorageClass) (*v1beta1.StorageClass, error) Update(*v1beta1.StorageClass) (*v1beta1.StorageClass, error) - Delete(name string, options *api.DeleteOptions) error - DeleteCollection(options *api.DeleteOptions, listOptions api.ListOptions) error + Delete(name string, options *v1.DeleteOptions) error + DeleteCollection(options *v1.DeleteOptions, listOptions v1.ListOptions) error Get(name string) (*v1beta1.StorageClass, error) - List(opts api.ListOptions) (*v1beta1.StorageClassList, error) - Watch(opts api.ListOptions) (watch.Interface, error) + List(opts v1.ListOptions) (*v1beta1.StorageClassList, error) + Watch(opts v1.ListOptions) (watch.Interface, error) Patch(name string, pt api.PatchType, data []byte, subresources ...string) (result *v1beta1.StorageClass, err error) StorageClassExpansion } // storageClasses implements StorageClassInterface type storageClasses struct { - client *StorageClient + client rest.Interface } // newStorageClasses returns a StorageClasses -func newStorageClasses(c *StorageClient) *storageClasses { +func newStorageClasses(c *StorageV1beta1Client) *storageClasses { return &storageClasses{ - client: c, + client: c.RESTClient(), } } @@ -77,7 +79,7 @@ func (c *storageClasses) Update(storageClass *v1beta1.StorageClass) (result *v1b } // 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 { +func (c *storageClasses) Delete(name string, options *v1.DeleteOptions) error { return c.client.Delete(). Resource("storageclasses"). Name(name). @@ -87,7 +89,7 @@ func (c *storageClasses) Delete(name string, options *api.DeleteOptions) error { } // DeleteCollection deletes a collection of objects. -func (c *storageClasses) DeleteCollection(options *api.DeleteOptions, listOptions api.ListOptions) error { +func (c *storageClasses) DeleteCollection(options *v1.DeleteOptions, listOptions v1.ListOptions) error { return c.client.Delete(). Resource("storageclasses"). VersionedParams(&listOptions, api.ParameterCodec). @@ -108,7 +110,7 @@ func (c *storageClasses) Get(name string) (result *v1beta1.StorageClass, err err } // List takes label and field selectors, and returns the list of StorageClasses that match those selectors. -func (c *storageClasses) List(opts api.ListOptions) (result *v1beta1.StorageClassList, err error) { +func (c *storageClasses) List(opts v1.ListOptions) (result *v1beta1.StorageClassList, err error) { result = &v1beta1.StorageClassList{} err = c.client.Get(). Resource("storageclasses"). @@ -119,7 +121,7 @@ func (c *storageClasses) List(opts api.ListOptions) (result *v1beta1.StorageClas } // Watch returns a watch.Interface that watches the requested storageClasses. -func (c *storageClasses) Watch(opts api.ListOptions) (watch.Interface, error) { +func (c *storageClasses) Watch(opts v1.ListOptions) (watch.Interface, error) { return c.client.Get(). Prefix("watch"). Resource("storageclasses"). diff --git a/vendor/k8s.io/client-go/1.5/pkg/api/context.go b/vendor/k8s.io/client-go/pkg/api/context.go similarity index 98% rename from vendor/k8s.io/client-go/1.5/pkg/api/context.go rename to vendor/k8s.io/client-go/pkg/api/context.go index fba7b7338..71e0e2dd7 100644 --- a/vendor/k8s.io/client-go/1.5/pkg/api/context.go +++ b/vendor/k8s.io/client-go/pkg/api/context.go @@ -21,8 +21,8 @@ import ( "time" "golang.org/x/net/context" - "k8s.io/client-go/1.5/pkg/auth/user" - "k8s.io/client-go/1.5/pkg/types" + "k8s.io/client-go/pkg/auth/user" + "k8s.io/client-go/pkg/types" ) // Context carries values across API boundaries. diff --git a/vendor/k8s.io/client-go/1.5/pkg/api/conversion.go b/vendor/k8s.io/client-go/pkg/api/conversion.go similarity index 92% rename from vendor/k8s.io/client-go/1.5/pkg/api/conversion.go rename to vendor/k8s.io/client-go/pkg/api/conversion.go index 782c7e5df..3ff0a1582 100644 --- a/vendor/k8s.io/client-go/1.5/pkg/api/conversion.go +++ b/vendor/k8s.io/client-go/pkg/api/conversion.go @@ -19,15 +19,15 @@ package api import ( "fmt" - "k8s.io/client-go/1.5/pkg/api/resource" - "k8s.io/client-go/1.5/pkg/api/unversioned" - "k8s.io/client-go/1.5/pkg/conversion" - "k8s.io/client-go/1.5/pkg/fields" - "k8s.io/client-go/1.5/pkg/labels" - "k8s.io/client-go/1.5/pkg/runtime" - "k8s.io/client-go/1.5/pkg/util/intstr" - utillabels "k8s.io/client-go/1.5/pkg/util/labels" - "k8s.io/client-go/1.5/pkg/util/validation/field" + "k8s.io/client-go/pkg/api/resource" + "k8s.io/client-go/pkg/api/unversioned" + "k8s.io/client-go/pkg/conversion" + "k8s.io/client-go/pkg/fields" + "k8s.io/client-go/pkg/labels" + "k8s.io/client-go/pkg/runtime" + "k8s.io/client-go/pkg/util/intstr" + utillabels "k8s.io/client-go/pkg/util/labels" + "k8s.io/client-go/pkg/util/validation/field" ) func addConversionFuncs(scheme *runtime.Scheme) error { @@ -153,6 +153,7 @@ func Convert_bool_To_Pointer_bool(in *bool, out **bool, s conversion.Scope) erro return nil } +// +k8s:conversion-fn=drop 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 @@ -160,16 +161,19 @@ func Convert_unversioned_TypeMeta_To_unversioned_TypeMeta(in, out *unversioned.T return nil } +// +k8s:conversion-fn=copy-only func Convert_unversioned_ListMeta_To_unversioned_ListMeta(in, out *unversioned.ListMeta, s conversion.Scope) error { *out = *in return nil } +// +k8s:conversion-fn=copy-only func Convert_intstr_IntOrString_To_intstr_IntOrString(in, out *intstr.IntOrString, s conversion.Scope) error { *out = *in return nil } +// +k8s:conversion-fn=copy-only 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 @@ -219,6 +223,7 @@ func Convert_fields_Selector_To_string(in *fields.Selector, out *string, s conve return nil } +// +k8s:conversion-fn=copy-only func Convert_resource_Quantity_To_resource_Quantity(in *resource.Quantity, out *resource.Quantity, s conversion.Scope) error { *out = *in return nil diff --git a/vendor/k8s.io/client-go/1.5/pkg/api/defaults.go b/vendor/k8s.io/client-go/pkg/api/defaults.go similarity index 89% rename from vendor/k8s.io/client-go/1.5/pkg/api/defaults.go rename to vendor/k8s.io/client-go/pkg/api/defaults.go index 33f72151f..745f610ee 100644 --- a/vendor/k8s.io/client-go/1.5/pkg/api/defaults.go +++ b/vendor/k8s.io/client-go/pkg/api/defaults.go @@ -17,9 +17,9 @@ limitations under the License. package api import ( - "k8s.io/client-go/1.5/pkg/fields" - "k8s.io/client-go/1.5/pkg/labels" - "k8s.io/client-go/1.5/pkg/runtime" + "k8s.io/client-go/pkg/fields" + "k8s.io/client-go/pkg/labels" + "k8s.io/client-go/pkg/runtime" ) func addDefaultingFuncs(scheme *runtime.Scheme) error { diff --git a/vendor/k8s.io/client-go/1.5/pkg/api/doc.go b/vendor/k8s.io/client-go/pkg/api/doc.go similarity index 100% rename from vendor/k8s.io/client-go/1.5/pkg/api/doc.go rename to vendor/k8s.io/client-go/pkg/api/doc.go diff --git a/vendor/k8s.io/client-go/1.5/pkg/api/errors/doc.go b/vendor/k8s.io/client-go/pkg/api/errors/doc.go similarity index 100% rename from vendor/k8s.io/client-go/1.5/pkg/api/errors/doc.go rename to vendor/k8s.io/client-go/pkg/api/errors/doc.go diff --git a/vendor/k8s.io/client-go/1.5/pkg/api/errors/errors.go b/vendor/k8s.io/client-go/pkg/api/errors/errors.go similarity index 95% rename from vendor/k8s.io/client-go/1.5/pkg/api/errors/errors.go rename to vendor/k8s.io/client-go/pkg/api/errors/errors.go index 17567dcd7..93dd52a24 100644 --- a/vendor/k8s.io/client-go/1.5/pkg/api/errors/errors.go +++ b/vendor/k8s.io/client-go/pkg/api/errors/errors.go @@ -22,20 +22,18 @@ import ( "net/http" "strings" - "k8s.io/client-go/1.5/pkg/api/unversioned" - "k8s.io/client-go/1.5/pkg/runtime" - "k8s.io/client-go/1.5/pkg/util/validation/field" + "k8s.io/client-go/pkg/api/unversioned" + "k8s.io/client-go/pkg/runtime" + "k8s.io/client-go/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 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 ) @@ -415,6 +413,17 @@ func IsInternalError(err error) bool { return reasonForError(err) == unversioned.StatusReasonInternalError } +// IsTooManyRequests determines if err is an error which indicates that there are too many requests +// that the server cannot handle. +// TODO: update IsTooManyRequests() when the TooManyRequests(429) error returned from the API server has a non-empty Reason field +func IsTooManyRequests(err error) bool { + switch t := err.(type) { + case APIStatus: + return t.Status().Code == StatusTooManyRequests + } + return false +} + // 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 { diff --git a/vendor/k8s.io/client-go/1.5/pkg/api/field_constants.go b/vendor/k8s.io/client-go/pkg/api/field_constants.go similarity index 100% rename from vendor/k8s.io/client-go/1.5/pkg/api/field_constants.go rename to vendor/k8s.io/client-go/pkg/api/field_constants.go diff --git a/vendor/k8s.io/client-go/1.5/pkg/api/generate.go b/vendor/k8s.io/client-go/pkg/api/generate.go similarity index 98% rename from vendor/k8s.io/client-go/1.5/pkg/api/generate.go rename to vendor/k8s.io/client-go/pkg/api/generate.go index 59be6f54c..a4a003bac 100644 --- a/vendor/k8s.io/client-go/1.5/pkg/api/generate.go +++ b/vendor/k8s.io/client-go/pkg/api/generate.go @@ -19,7 +19,7 @@ package api import ( "fmt" - utilrand "k8s.io/client-go/1.5/pkg/util/rand" + utilrand "k8s.io/client-go/pkg/util/rand" ) // NameGenerator generates names for objects. Some backends may have more information diff --git a/vendor/k8s.io/client-go/1.5/pkg/api/helpers.go b/vendor/k8s.io/client-go/pkg/api/helpers.go similarity index 92% rename from vendor/k8s.io/client-go/1.5/pkg/api/helpers.go rename to vendor/k8s.io/client-go/pkg/api/helpers.go index 6aa1a311d..8f494c194 100644 --- a/vendor/k8s.io/client-go/1.5/pkg/api/helpers.go +++ b/vendor/k8s.io/client-go/pkg/api/helpers.go @@ -24,15 +24,15 @@ import ( "strings" "time" - "k8s.io/client-go/1.5/pkg/api/resource" - "k8s.io/client-go/1.5/pkg/api/unversioned" - "k8s.io/client-go/1.5/pkg/conversion" - "k8s.io/client-go/1.5/pkg/fields" - "k8s.io/client-go/1.5/pkg/labels" - "k8s.io/client-go/1.5/pkg/runtime" - "k8s.io/client-go/1.5/pkg/selection" - "k8s.io/client-go/1.5/pkg/types" - "k8s.io/client-go/1.5/pkg/util/sets" + "k8s.io/client-go/pkg/api/resource" + "k8s.io/client-go/pkg/api/unversioned" + "k8s.io/client-go/pkg/conversion" + "k8s.io/client-go/pkg/fields" + "k8s.io/client-go/pkg/labels" + "k8s.io/client-go/pkg/runtime" + "k8s.io/client-go/pkg/selection" + "k8s.io/client-go/pkg/types" + "k8s.io/client-go/pkg/util/sets" "github.com/davecgh/go-spew/spew" ) @@ -120,9 +120,26 @@ func IsStandardContainerResourceName(str string) bool { return standardContainerResources.Has(str) } +// IsOpaqueIntResourceName returns true if the resource name has the opaque +// integer resource prefix. +func IsOpaqueIntResourceName(name ResourceName) bool { + return strings.HasPrefix(string(name), ResourceOpaqueIntPrefix) +} + +// OpaqueIntResourceName returns a ResourceName with the canonical opaque +// integer prefix prepended. If the argument already has the prefix, it is +// returned unmodified. +func OpaqueIntResourceName(name string) ResourceName { + if IsOpaqueIntResourceName(ResourceName(name)) { + return ResourceName(name) + } + return ResourceName(fmt.Sprintf("%s%s", ResourceOpaqueIntPrefix, name)) +} + var standardLimitRangeTypes = sets.NewString( string(LimitTypePod), string(LimitTypeContainer), + string(LimitTypePersistentVolumeClaim), ) // IsStandardLimitRangeType returns true if the type is Pod or Container @@ -170,6 +187,7 @@ var standardResources = sets.NewString( string(ResourceConfigMaps), string(ResourcePersistentVolumeClaims), string(ResourceStorage), + string(ResourceRequestsStorage), ) // IsStandardResourceName returns true if the resource is known to the system @@ -191,7 +209,7 @@ var integerResources = sets.NewString( // IsIntegerResourceName returns true if the resource is measured in integer values func IsIntegerResourceName(str string) bool { - return integerResources.Has(str) + return integerResources.Has(str) || IsOpaqueIntResourceName(ResourceName(str)) } // NewDeleteOptions returns a DeleteOptions indicating the resource should @@ -235,6 +253,20 @@ var standardFinalizers = sets.NewString( FinalizerOrphan, ) +// HasAnnotation returns a bool if passed in annotation exists +func HasAnnotation(obj ObjectMeta, ann string) bool { + _, found := obj.Annotations[ann] + return found +} + +// SetMetaDataAnnotation sets the annotation and value +func SetMetaDataAnnotation(obj *ObjectMeta, ann string, value string) { + if obj.Annotations == nil { + obj.Annotations = make(map[string]string) + } + obj.Annotations[ann] = value +} + func IsStandardFinalizerName(str string) bool { return standardFinalizers.Has(str) } @@ -401,7 +433,7 @@ func NodeSelectorRequirementsAsSelector(nsm []NodeSelectorRequirement) (labels.S 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...)) + r, err := labels.NewRequirement(expr.Key, op, expr.Values) if err != nil { return nil, err } @@ -511,7 +543,6 @@ func TolerationToleratesTaint(toleration *Toleration, taint *Taint) bool { return true } return false - } // TaintToleratedByTolerations checks if taint is tolerated by any of the tolerations. @@ -577,7 +608,7 @@ func SysctlsFromPodAnnotation(annotation string) ([]Sysctl, error) { sysctls := make([]Sysctl, len(kvs)) for i, kv := range kvs { cs := strings.Split(kv, "=") - if len(cs) != 2 { + if len(cs) != 2 || len(cs[0]) == 0 { return nil, fmt.Errorf("sysctl %q not of the format sysctl_name=value", kv) } sysctls[i].Name = cs[0] diff --git a/vendor/k8s.io/client-go/1.5/pkg/api/install/install.go b/vendor/k8s.io/client-go/pkg/api/install/install.go similarity index 92% rename from vendor/k8s.io/client-go/1.5/pkg/api/install/install.go rename to vendor/k8s.io/client-go/pkg/api/install/install.go index a4518bc0a..e41dd6378 100644 --- a/vendor/k8s.io/client-go/1.5/pkg/api/install/install.go +++ b/vendor/k8s.io/client-go/pkg/api/install/install.go @@ -23,17 +23,17 @@ import ( "github.com/golang/glog" - "k8s.io/client-go/1.5/pkg/api" - "k8s.io/client-go/1.5/pkg/api/meta" - "k8s.io/client-go/1.5/pkg/api/unversioned" - "k8s.io/client-go/1.5/pkg/api/v1" - "k8s.io/client-go/1.5/pkg/apimachinery" - "k8s.io/client-go/1.5/pkg/apimachinery/registered" - "k8s.io/client-go/1.5/pkg/runtime" - "k8s.io/client-go/1.5/pkg/util/sets" + "k8s.io/client-go/pkg/api" + "k8s.io/client-go/pkg/api/meta" + "k8s.io/client-go/pkg/api/unversioned" + "k8s.io/client-go/pkg/api/v1" + "k8s.io/client-go/pkg/apimachinery" + "k8s.io/client-go/pkg/apimachinery/registered" + "k8s.io/client-go/pkg/runtime" + "k8s.io/client-go/pkg/util/sets" ) -const importPrefix = "k8s.io/client-go/1.5/pkg/api" +const importPrefix = "k8s.io/client-go/pkg/api" var accessor = meta.NewAccessor() diff --git a/vendor/k8s.io/client-go/1.5/pkg/api/mapper.go b/vendor/k8s.io/client-go/pkg/api/mapper.go similarity index 93% rename from vendor/k8s.io/client-go/1.5/pkg/api/mapper.go rename to vendor/k8s.io/client-go/pkg/api/mapper.go index 17e624f93..db72bdfb8 100644 --- a/vendor/k8s.io/client-go/1.5/pkg/api/mapper.go +++ b/vendor/k8s.io/client-go/pkg/api/mapper.go @@ -19,10 +19,10 @@ package api import ( "strings" - "k8s.io/client-go/1.5/pkg/api/meta" - "k8s.io/client-go/1.5/pkg/api/unversioned" - "k8s.io/client-go/1.5/pkg/runtime" - "k8s.io/client-go/1.5/pkg/util/sets" + "k8s.io/client-go/pkg/api/meta" + "k8s.io/client-go/pkg/api/unversioned" + "k8s.io/client-go/pkg/runtime" + "k8s.io/client-go/pkg/util/sets" ) // Instantiates a DefaultRESTMapper based on types registered in api.Scheme diff --git a/vendor/k8s.io/client-go/1.5/pkg/api/meta.go b/vendor/k8s.io/client-go/pkg/api/meta.go similarity index 95% rename from vendor/k8s.io/client-go/1.5/pkg/api/meta.go rename to vendor/k8s.io/client-go/pkg/api/meta.go index 6a90006c2..0f76d946a 100644 --- a/vendor/k8s.io/client-go/1.5/pkg/api/meta.go +++ b/vendor/k8s.io/client-go/pkg/api/meta.go @@ -17,13 +17,13 @@ limitations under the License. package api import ( - "k8s.io/client-go/1.5/pkg/api/meta" - "k8s.io/client-go/1.5/pkg/api/meta/metatypes" - "k8s.io/client-go/1.5/pkg/api/unversioned" - "k8s.io/client-go/1.5/pkg/conversion" - "k8s.io/client-go/1.5/pkg/runtime" - "k8s.io/client-go/1.5/pkg/types" - "k8s.io/client-go/1.5/pkg/util/uuid" + "k8s.io/client-go/pkg/api/meta" + "k8s.io/client-go/pkg/api/meta/metatypes" + "k8s.io/client-go/pkg/api/unversioned" + "k8s.io/client-go/pkg/conversion" + "k8s.io/client-go/pkg/runtime" + "k8s.io/client-go/pkg/types" + "k8s.io/client-go/pkg/util/uuid" ) // FillObjectMetaSystemFields populates fields that are managed by the system on ObjectMeta. diff --git a/vendor/k8s.io/client-go/1.5/pkg/api/meta/doc.go b/vendor/k8s.io/client-go/pkg/api/meta/doc.go similarity index 100% rename from vendor/k8s.io/client-go/1.5/pkg/api/meta/doc.go rename to vendor/k8s.io/client-go/pkg/api/meta/doc.go diff --git a/vendor/k8s.io/client-go/1.5/pkg/api/meta/errors.go b/vendor/k8s.io/client-go/pkg/api/meta/errors.go similarity index 98% rename from vendor/k8s.io/client-go/1.5/pkg/api/meta/errors.go rename to vendor/k8s.io/client-go/pkg/api/meta/errors.go index e8d10ab9e..9de77d60e 100644 --- a/vendor/k8s.io/client-go/1.5/pkg/api/meta/errors.go +++ b/vendor/k8s.io/client-go/pkg/api/meta/errors.go @@ -19,7 +19,7 @@ package meta import ( "fmt" - "k8s.io/client-go/1.5/pkg/api/unversioned" + "k8s.io/client-go/pkg/api/unversioned" ) // AmbiguousResourceError is returned if the RESTMapper finds multiple matches for a resource diff --git a/vendor/k8s.io/client-go/1.5/pkg/api/meta/firsthit_restmapper.go b/vendor/k8s.io/client-go/pkg/api/meta/firsthit_restmapper.go similarity index 96% rename from vendor/k8s.io/client-go/1.5/pkg/api/meta/firsthit_restmapper.go rename to vendor/k8s.io/client-go/pkg/api/meta/firsthit_restmapper.go index 224e71530..3c576dbe9 100644 --- a/vendor/k8s.io/client-go/1.5/pkg/api/meta/firsthit_restmapper.go +++ b/vendor/k8s.io/client-go/pkg/api/meta/firsthit_restmapper.go @@ -19,8 +19,8 @@ package meta import ( "fmt" - "k8s.io/client-go/1.5/pkg/api/unversioned" - utilerrors "k8s.io/client-go/1.5/pkg/util/errors" + "k8s.io/client-go/pkg/api/unversioned" + utilerrors "k8s.io/client-go/pkg/util/errors" ) // FirstHitRESTMapper is a wrapper for multiple RESTMappers which returns the diff --git a/vendor/k8s.io/client-go/1.5/pkg/api/meta/help.go b/vendor/k8s.io/client-go/pkg/api/meta/help.go similarity index 68% rename from vendor/k8s.io/client-go/1.5/pkg/api/meta/help.go rename to vendor/k8s.io/client-go/pkg/api/meta/help.go index d44a57d19..607f3fa3f 100644 --- a/vendor/k8s.io/client-go/1.5/pkg/api/meta/help.go +++ b/vendor/k8s.io/client-go/pkg/api/meta/help.go @@ -20,12 +20,20 @@ import ( "fmt" "reflect" - "k8s.io/client-go/1.5/pkg/conversion" - "k8s.io/client-go/1.5/pkg/runtime" + "k8s.io/client-go/pkg/conversion" + "k8s.io/client-go/pkg/runtime" ) // IsListType returns true if the provided Object has a slice called Items func IsListType(obj runtime.Object) bool { + // if we're a runtime.Unstructured, check to see if we have an `items` key + // This is a list type for recognition, but other Items type methods will fail on it + // and give you errors. + if unstructured, ok := obj.(*runtime.Unstructured); ok { + _, ok := unstructured.Object["items"] + return ok + } + _, err := GetItemsPtr(obj) return err == nil } @@ -39,6 +47,7 @@ func GetItemsPtr(list runtime.Object) (interface{}, error) { if err != nil { return nil, err } + items := v.FieldByName("Items") if !items.IsValid() { return nil, fmt.Errorf("no Items field in %#v", list) @@ -57,6 +66,57 @@ func GetItemsPtr(list runtime.Object) (interface{}, error) { } } +// EachListItem invokes fn on each runtime.Object in the list. Any error immediately terminates +// the loop. +func EachListItem(obj runtime.Object, fn func(runtime.Object) error) error { + // TODO: Change to an interface call? + itemsPtr, err := GetItemsPtr(obj) + if err != nil { + return err + } + items, err := conversion.EnforcePtr(itemsPtr) + if err != nil { + return err + } + len := items.Len() + if len == 0 { + return nil + } + takeAddr := false + if elemType := items.Type().Elem(); elemType.Kind() != reflect.Ptr && elemType.Kind() != reflect.Interface { + if !items.Index(0).CanAddr() { + return fmt.Errorf("unable to take address of items in %T for EachListItem", obj) + } + takeAddr = true + } + + for i := 0; i < len; i++ { + raw := items.Index(i) + if takeAddr { + raw = raw.Addr() + } + switch item := raw.Interface().(type) { + case *runtime.RawExtension: + if err := fn(item.Object); err != nil { + return err + } + case runtime.Object: + if err := fn(item); err != nil { + return err + } + default: + obj, ok := item.(runtime.Object) + if !ok { + return fmt.Errorf("%v: item[%v]: Expected object, got %#v(%s)", obj, i, raw.Interface(), raw.Kind()) + } + if err := fn(obj); err != nil { + return err + } + } + } + return nil +} + // 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) { @@ -117,6 +177,13 @@ func SetList(list runtime.Object, objects []runtime.Object) error { slice := reflect.MakeSlice(items.Type(), len(objects), len(objects)) for i := range objects { dest := slice.Index(i) + + // check to see if you're directly assignable + if reflect.TypeOf(objects[i]).AssignableTo(dest.Type()) { + dest.Set(reflect.ValueOf(objects[i])) + continue + } + src, err := conversion.EnforcePtr(objects[i]) if err != nil { return err diff --git a/vendor/k8s.io/client-go/1.5/pkg/api/meta/interfaces.go b/vendor/k8s.io/client-go/pkg/api/meta/interfaces.go similarity index 97% rename from vendor/k8s.io/client-go/1.5/pkg/api/meta/interfaces.go rename to vendor/k8s.io/client-go/pkg/api/meta/interfaces.go index ce37cc70e..6dd570008 100644 --- a/vendor/k8s.io/client-go/1.5/pkg/api/meta/interfaces.go +++ b/vendor/k8s.io/client-go/pkg/api/meta/interfaces.go @@ -17,10 +17,10 @@ limitations under the License. package meta import ( - "k8s.io/client-go/1.5/pkg/api/meta/metatypes" - "k8s.io/client-go/1.5/pkg/api/unversioned" - "k8s.io/client-go/1.5/pkg/runtime" - "k8s.io/client-go/1.5/pkg/types" + "k8s.io/client-go/pkg/api/meta/metatypes" + "k8s.io/client-go/pkg/api/unversioned" + "k8s.io/client-go/pkg/runtime" + "k8s.io/client-go/pkg/types" ) // VersionInterfaces contains the interfaces one should use for dealing with types of a particular version. diff --git a/vendor/k8s.io/client-go/1.5/pkg/api/meta/meta.go b/vendor/k8s.io/client-go/pkg/api/meta/meta.go similarity index 98% rename from vendor/k8s.io/client-go/1.5/pkg/api/meta/meta.go rename to vendor/k8s.io/client-go/pkg/api/meta/meta.go index a234bb0fe..9f11215ad 100644 --- a/vendor/k8s.io/client-go/1.5/pkg/api/meta/meta.go +++ b/vendor/k8s.io/client-go/pkg/api/meta/meta.go @@ -20,11 +20,11 @@ import ( "fmt" "reflect" - "k8s.io/client-go/1.5/pkg/api/meta/metatypes" - "k8s.io/client-go/1.5/pkg/api/unversioned" - "k8s.io/client-go/1.5/pkg/conversion" - "k8s.io/client-go/1.5/pkg/runtime" - "k8s.io/client-go/1.5/pkg/types" + "k8s.io/client-go/pkg/api/meta/metatypes" + "k8s.io/client-go/pkg/api/unversioned" + "k8s.io/client-go/pkg/conversion" + "k8s.io/client-go/pkg/runtime" + "k8s.io/client-go/pkg/types" "github.com/golang/glog" ) diff --git a/vendor/k8s.io/client-go/1.5/pkg/api/meta/metatypes/types.go b/vendor/k8s.io/client-go/pkg/api/meta/metatypes/types.go similarity index 95% rename from vendor/k8s.io/client-go/1.5/pkg/api/meta/metatypes/types.go rename to vendor/k8s.io/client-go/pkg/api/meta/metatypes/types.go index 4f41bb10c..70b5aadaa 100644 --- a/vendor/k8s.io/client-go/1.5/pkg/api/meta/metatypes/types.go +++ b/vendor/k8s.io/client-go/pkg/api/meta/metatypes/types.go @@ -19,7 +19,7 @@ limitations under the License. // API objects because it causes import cycle. package metatypes -import "k8s.io/client-go/1.5/pkg/types" +import "k8s.io/client-go/pkg/types" type OwnerReference struct { APIVersion string diff --git a/vendor/k8s.io/client-go/1.5/pkg/api/meta/multirestmapper.go b/vendor/k8s.io/client-go/pkg/api/meta/multirestmapper.go similarity index 97% rename from vendor/k8s.io/client-go/1.5/pkg/api/meta/multirestmapper.go rename to vendor/k8s.io/client-go/pkg/api/meta/multirestmapper.go index 4534271f0..c8ee8d1db 100644 --- a/vendor/k8s.io/client-go/1.5/pkg/api/meta/multirestmapper.go +++ b/vendor/k8s.io/client-go/pkg/api/meta/multirestmapper.go @@ -20,9 +20,9 @@ import ( "fmt" "strings" - "k8s.io/client-go/1.5/pkg/api/unversioned" - utilerrors "k8s.io/client-go/1.5/pkg/util/errors" - "k8s.io/client-go/1.5/pkg/util/sets" + "k8s.io/client-go/pkg/api/unversioned" + utilerrors "k8s.io/client-go/pkg/util/errors" + "k8s.io/client-go/pkg/util/sets" ) // MultiRESTMapper is a wrapper for multiple RESTMappers. diff --git a/vendor/k8s.io/client-go/1.5/pkg/api/meta/priority.go b/vendor/k8s.io/client-go/pkg/api/meta/priority.go similarity index 99% rename from vendor/k8s.io/client-go/1.5/pkg/api/meta/priority.go rename to vendor/k8s.io/client-go/pkg/api/meta/priority.go index 2f7fe102b..b0ba309c8 100644 --- a/vendor/k8s.io/client-go/1.5/pkg/api/meta/priority.go +++ b/vendor/k8s.io/client-go/pkg/api/meta/priority.go @@ -19,7 +19,7 @@ package meta import ( "fmt" - "k8s.io/client-go/1.5/pkg/api/unversioned" + "k8s.io/client-go/pkg/api/unversioned" ) const ( diff --git a/vendor/k8s.io/client-go/1.5/pkg/api/meta/restmapper.go b/vendor/k8s.io/client-go/pkg/api/meta/restmapper.go similarity index 99% rename from vendor/k8s.io/client-go/1.5/pkg/api/meta/restmapper.go rename to vendor/k8s.io/client-go/pkg/api/meta/restmapper.go index 063f48e4b..98add7fd2 100644 --- a/vendor/k8s.io/client-go/1.5/pkg/api/meta/restmapper.go +++ b/vendor/k8s.io/client-go/pkg/api/meta/restmapper.go @@ -22,8 +22,8 @@ import ( "sort" "strings" - "k8s.io/client-go/1.5/pkg/api/unversioned" - "k8s.io/client-go/1.5/pkg/runtime" + "k8s.io/client-go/pkg/api/unversioned" + "k8s.io/client-go/pkg/runtime" ) // Implements RESTScope interface diff --git a/vendor/k8s.io/client-go/1.5/pkg/api/meta/unstructured.go b/vendor/k8s.io/client-go/pkg/api/meta/unstructured.go similarity index 92% rename from vendor/k8s.io/client-go/1.5/pkg/api/meta/unstructured.go rename to vendor/k8s.io/client-go/pkg/api/meta/unstructured.go index fef6e86d0..cb5a4e35a 100644 --- a/vendor/k8s.io/client-go/1.5/pkg/api/meta/unstructured.go +++ b/vendor/k8s.io/client-go/pkg/api/meta/unstructured.go @@ -17,8 +17,8 @@ limitations under the License. package meta import ( - "k8s.io/client-go/1.5/pkg/api/unversioned" - "k8s.io/client-go/1.5/pkg/runtime" + "k8s.io/client-go/pkg/api/unversioned" + "k8s.io/client-go/pkg/runtime" ) // InterfacesForUnstructured returns VersionInterfaces suitable for diff --git a/vendor/k8s.io/client-go/1.5/pkg/api/ref.go b/vendor/k8s.io/client-go/pkg/api/ref.go similarity index 97% rename from vendor/k8s.io/client-go/1.5/pkg/api/ref.go rename to vendor/k8s.io/client-go/pkg/api/ref.go index d25b4dc18..afa80004a 100644 --- a/vendor/k8s.io/client-go/1.5/pkg/api/ref.go +++ b/vendor/k8s.io/client-go/pkg/api/ref.go @@ -22,9 +22,9 @@ import ( "net/url" "strings" - "k8s.io/client-go/1.5/pkg/api/meta" - "k8s.io/client-go/1.5/pkg/api/unversioned" - "k8s.io/client-go/1.5/pkg/runtime" + "k8s.io/client-go/pkg/api/meta" + "k8s.io/client-go/pkg/api/unversioned" + "k8s.io/client-go/pkg/runtime" ) var ( diff --git a/vendor/k8s.io/client-go/1.5/pkg/api/register.go b/vendor/k8s.io/client-go/pkg/api/register.go similarity index 97% rename from vendor/k8s.io/client-go/1.5/pkg/api/register.go rename to vendor/k8s.io/client-go/pkg/api/register.go index 46addba88..d5533b40c 100644 --- a/vendor/k8s.io/client-go/1.5/pkg/api/register.go +++ b/vendor/k8s.io/client-go/pkg/api/register.go @@ -17,9 +17,9 @@ limitations under the License. package api import ( - "k8s.io/client-go/1.5/pkg/api/unversioned" - "k8s.io/client-go/1.5/pkg/runtime" - "k8s.io/client-go/1.5/pkg/runtime/serializer" + "k8s.io/client-go/pkg/api/unversioned" + "k8s.io/client-go/pkg/runtime" + "k8s.io/client-go/pkg/runtime/serializer" ) // Scheme is the default instance of runtime.Scheme to which types in the Kubernetes API are already registered. diff --git a/vendor/k8s.io/client-go/1.5/pkg/api/requestcontext.go b/vendor/k8s.io/client-go/pkg/api/requestcontext.go similarity index 100% rename from vendor/k8s.io/client-go/1.5/pkg/api/requestcontext.go rename to vendor/k8s.io/client-go/pkg/api/requestcontext.go diff --git a/vendor/k8s.io/client-go/1.5/pkg/api/resource/amount.go b/vendor/k8s.io/client-go/pkg/api/resource/amount.go similarity index 100% rename from vendor/k8s.io/client-go/1.5/pkg/api/resource/amount.go rename to vendor/k8s.io/client-go/pkg/api/resource/amount.go diff --git a/vendor/k8s.io/client-go/pkg/api/resource/generated.pb.go b/vendor/k8s.io/client-go/pkg/api/resource/generated.pb.go new file mode 100644 index 000000000..b8eb16061 --- /dev/null +++ b/vendor/k8s.io/client-go/pkg/api/resource/generated.pb.go @@ -0,0 +1,70 @@ +/* +Copyright 2017 The Kubernetes Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT 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.pkg.api.resource.Quantity") +} + +var fileDescriptorGenerated = []byte{ + // 236 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x09, 0x6e, 0x88, 0x02, 0xff, 0x6c, 0x8f, 0xa1, 0x4e, 0x03, 0x41, + 0x10, 0x86, 0x67, 0x0d, 0x29, 0x27, 0x1b, 0x42, 0x48, 0xc5, 0x5e, 0x53, 0x45, 0x48, 0xd8, 0x09, + 0xa8, 0x06, 0xc9, 0x1b, 0x80, 0xc4, 0xdd, 0x95, 0x61, 0x99, 0x1c, 0xec, 0x6e, 0x76, 0x67, 0x05, + 0xae, 0x12, 0x59, 0x89, 0xec, 0xbd, 0x4d, 0x65, 0x25, 0x02, 0xc1, 0x1d, 0x2f, 0x42, 0x72, 0xa5, + 0x21, 0x21, 0xb8, 0xf9, 0xc4, 0x37, 0xf9, 0xfe, 0xe2, 0xb2, 0x99, 0x27, 0xc3, 0x1e, 0x9b, 0x5c, + 0x53, 0x74, 0x24, 0x94, 0x30, 0x34, 0x16, 0xab, 0xc0, 0x18, 0x29, 0xf9, 0x1c, 0x17, 0x84, 0x96, + 0x1c, 0xc5, 0x4a, 0xe8, 0xde, 0x84, 0xe8, 0xc5, 0x8f, 0x67, 0x3b, 0xc7, 0xfc, 0x3a, 0x26, 0x34, + 0xd6, 0x54, 0x81, 0xcd, 0xde, 0x99, 0x9c, 0x5b, 0x96, 0xc7, 0x5c, 0x9b, 0x85, 0x7f, 0x46, 0xeb, + 0xad, 0xc7, 0x41, 0xad, 0xf3, 0xc3, 0x40, 0x03, 0x0c, 0xd7, 0xee, 0xe5, 0xe4, 0xe2, 0xff, 0x8c, + 0x2c, 0xfc, 0x84, 0xec, 0x24, 0x49, 0xfc, 0x5b, 0x31, 0x9b, 0x17, 0xa3, 0x9b, 0x5c, 0x39, 0x61, + 0x79, 0x19, 0x1f, 0x17, 0x07, 0x49, 0x22, 0x3b, 0x7b, 0xa2, 0xa6, 0xea, 0xf4, 0xf0, 0xf6, 0x87, + 0xae, 0x8e, 0xde, 0xd6, 0x25, 0xbc, 0xb6, 0x25, 0xac, 0xda, 0x12, 0xd6, 0x6d, 0x09, 0xcb, 0x8f, + 0x29, 0x5c, 0x9f, 0x6d, 0x3a, 0x0d, 0xdb, 0x4e, 0xc3, 0x7b, 0xa7, 0x61, 0xd9, 0x6b, 0xb5, 0xe9, + 0xb5, 0xda, 0xf6, 0x5a, 0x7d, 0xf6, 0x5a, 0xad, 0xbe, 0x34, 0xdc, 0x8d, 0xf6, 0x3b, 0xbe, 0x03, + 0x00, 0x00, 0xff, 0xff, 0x90, 0x1c, 0x7f, 0xff, 0x20, 0x01, 0x00, 0x00, +} diff --git a/vendor/k8s.io/client-go/1.5/pkg/api/resource/math.go b/vendor/k8s.io/client-go/pkg/api/resource/math.go similarity index 100% rename from vendor/k8s.io/client-go/1.5/pkg/api/resource/math.go rename to vendor/k8s.io/client-go/pkg/api/resource/math.go diff --git a/vendor/k8s.io/client-go/1.5/pkg/api/resource/quantity.go b/vendor/k8s.io/client-go/pkg/api/resource/quantity.go similarity index 99% rename from vendor/k8s.io/client-go/1.5/pkg/api/resource/quantity.go rename to vendor/k8s.io/client-go/pkg/api/resource/quantity.go index df8bcd510..d0a4a4019 100644 --- a/vendor/k8s.io/client-go/1.5/pkg/api/resource/quantity.go +++ b/vendor/k8s.io/client-go/pkg/api/resource/quantity.go @@ -29,7 +29,7 @@ import ( "github.com/go-openapi/spec" inf "gopkg.in/inf.v0" - "k8s.io/client-go/1.5/pkg/genericapiserver/openapi/common" + "k8s.io/client-go/pkg/genericapiserver/openapi/common" ) // Quantity is a fixed-point representation of a number. diff --git a/vendor/k8s.io/client-go/1.5/pkg/api/resource/quantity_proto.go b/vendor/k8s.io/client-go/pkg/api/resource/quantity_proto.go similarity index 100% rename from vendor/k8s.io/client-go/1.5/pkg/api/resource/quantity_proto.go rename to vendor/k8s.io/client-go/pkg/api/resource/quantity_proto.go diff --git a/vendor/k8s.io/client-go/1.5/pkg/api/resource/scale_int.go b/vendor/k8s.io/client-go/pkg/api/resource/scale_int.go similarity index 100% rename from vendor/k8s.io/client-go/1.5/pkg/api/resource/scale_int.go rename to vendor/k8s.io/client-go/pkg/api/resource/scale_int.go diff --git a/vendor/k8s.io/client-go/1.5/pkg/api/resource/suffix.go b/vendor/k8s.io/client-go/pkg/api/resource/suffix.go similarity index 100% rename from vendor/k8s.io/client-go/1.5/pkg/api/resource/suffix.go rename to vendor/k8s.io/client-go/pkg/api/resource/suffix.go diff --git a/vendor/k8s.io/client-go/1.5/pkg/api/resource_helpers.go b/vendor/k8s.io/client-go/pkg/api/resource_helpers.go similarity index 88% rename from vendor/k8s.io/client-go/1.5/pkg/api/resource_helpers.go rename to vendor/k8s.io/client-go/pkg/api/resource_helpers.go index 37b77c8c3..3d78fc892 100644 --- a/vendor/k8s.io/client-go/1.5/pkg/api/resource_helpers.go +++ b/vendor/k8s.io/client-go/pkg/api/resource_helpers.go @@ -17,8 +17,10 @@ limitations under the License. package api import ( - "k8s.io/client-go/1.5/pkg/api/resource" - "k8s.io/client-go/1.5/pkg/api/unversioned" + "time" + + "k8s.io/client-go/pkg/api/resource" + "k8s.io/client-go/pkg/api/unversioned" ) // Returns string version of ResourceName. @@ -74,6 +76,24 @@ func GetExistingContainerStatus(statuses []ContainerStatus, name string) Contain return ContainerStatus{} } +// IsPodAvailable returns true if a pod is available; false otherwise. +// Precondition for an available pod is that it must be ready. On top +// of that, there are two cases when a pod can be considered available: +// 1. minReadySeconds == 0, or +// 2. LastTransitionTime (is set) + minReadySeconds < current time +func IsPodAvailable(pod *Pod, minReadySeconds int32, now unversioned.Time) bool { + if !IsPodReady(pod) { + return false + } + + c := GetPodReadyCondition(pod.Status) + minReadySecondsDuration := time.Duration(minReadySeconds) * time.Second + if minReadySeconds == 0 || !c.LastTransitionTime.IsZero() && c.LastTransitionTime.Add(minReadySecondsDuration).Before(now.Time) { + return true + } + return false +} + // IsPodReady returns true if a pod is ready; false otherwise. func IsPodReady(pod *Pod) bool { return IsPodReadyConditionTrue(pod.Status) diff --git a/vendor/k8s.io/client-go/1.5/pkg/api/types.generated.go b/vendor/k8s.io/client-go/pkg/api/types.generated.go similarity index 68% rename from vendor/k8s.io/client-go/1.5/pkg/api/types.generated.go rename to vendor/k8s.io/client-go/pkg/api/types.generated.go index bb4c8e573..2cc36139e 100644 --- a/vendor/k8s.io/client-go/1.5/pkg/api/types.generated.go +++ b/vendor/k8s.io/client-go/pkg/api/types.generated.go @@ -25,13 +25,13 @@ import ( "errors" "fmt" codec1978 "github.com/ugorji/go/codec" - pkg3_resource "k8s.io/client-go/1.5/pkg/api/resource" - pkg2_unversioned "k8s.io/client-go/1.5/pkg/api/unversioned" - pkg6_fields "k8s.io/client-go/1.5/pkg/fields" - pkg5_labels "k8s.io/client-go/1.5/pkg/labels" - pkg7_runtime "k8s.io/client-go/1.5/pkg/runtime" - pkg1_types "k8s.io/client-go/1.5/pkg/types" - pkg4_intstr "k8s.io/client-go/1.5/pkg/util/intstr" + pkg3_resource "k8s.io/client-go/pkg/api/resource" + pkg2_unversioned "k8s.io/client-go/pkg/api/unversioned" + pkg6_fields "k8s.io/client-go/pkg/fields" + pkg5_labels "k8s.io/client-go/pkg/labels" + pkg7_runtime "k8s.io/client-go/pkg/runtime" + pkg1_types "k8s.io/client-go/pkg/types" + pkg4_intstr "k8s.io/client-go/pkg/util/intstr" "reflect" "runtime" time "time" @@ -1128,7 +1128,7 @@ func (x *Volume) CodecEncodeSelf(e *codec1978.Encoder) { } else { yysep101 := !z.EncBinary() yy2arr101 := z.EncBasicHandle().StructToArray - var yyq101 [23]bool + var yyq101 [24]bool _, _, _ = yysep101, yyq101, yy2arr101 const yyr101 bool = false yyq101[1] = x.VolumeSource.HostPath != nil && x.HostPath != nil @@ -1153,9 +1153,10 @@ func (x *Volume) CodecEncodeSelf(e *codec1978.Encoder) { 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 + yyq101[23] = x.VolumeSource.PhotonPersistentDisk != nil && x.PhotonPersistentDisk != nil var yynn101 int if yyr101 || yy2arr101 { - r.EncodeArrayStart(23) + r.EncodeArrayStart(24) } else { yynn101 = 1 for _, b := range yyq101 { @@ -1999,6 +2000,43 @@ func (x *Volume) CodecEncodeSelf(e *codec1978.Encoder) { } } } + var yyn127 bool + if x.VolumeSource.PhotonPersistentDisk == nil { + yyn127 = true + goto LABEL127 + } + LABEL127: + if yyr101 || yy2arr101 { + if yyn127 { + r.EncodeNil() + } else { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq101[23] { + if x.PhotonPersistentDisk == nil { + r.EncodeNil() + } else { + x.PhotonPersistentDisk.CodecEncodeSelf(e) + } + } else { + r.EncodeNil() + } + } + } else { + if yyq101[23] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("photonPersistentDisk")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + if yyn127 { + r.EncodeNil() + } else { + if x.PhotonPersistentDisk == nil { + r.EncodeNil() + } else { + x.PhotonPersistentDisk.CodecEncodeSelf(e) + } + } + } + } if yyr101 || yy2arr101 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { @@ -2012,25 +2050,25 @@ func (x *Volume) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym127 := z.DecBinary() - _ = yym127 + yym128 := z.DecBinary() + _ = yym128 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct128 := r.ContainerType() - if yyct128 == codecSelferValueTypeMap1234 { - yyl128 := r.ReadMapStart() - if yyl128 == 0 { + yyct129 := r.ContainerType() + if yyct129 == codecSelferValueTypeMap1234 { + yyl129 := r.ReadMapStart() + if yyl129 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl128, d) + x.codecDecodeSelfFromMap(yyl129, d) } - } else if yyct128 == codecSelferValueTypeArray1234 { - yyl128 := r.ReadArrayStart() - if yyl128 == 0 { + } else if yyct129 == codecSelferValueTypeArray1234 { + yyl129 := r.ReadArrayStart() + if yyl129 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl128, d) + x.codecDecodeSelfFromArray(yyl129, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -2042,12 +2080,12 @@ func (x *Volume) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys129Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys129Slc - var yyhl129 bool = l >= 0 - for yyj129 := 0; ; yyj129++ { - if yyhl129 { - if yyj129 >= 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 { @@ -2056,10 +2094,10 @@ func (x *Volume) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys129Slc = r.DecodeBytes(yys129Slc, true, true) - yys129 := string(yys129Slc) + yys130Slc = r.DecodeBytes(yys130Slc, true, true) + yys130 := string(yys130Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys129 { + switch yys130 { case "name": if r.TryDecodeAsNil() { x.Name = "" @@ -2374,10 +2412,24 @@ func (x *Volume) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } x.AzureDisk.CodecDecodeSelf(d) } + case "photonPersistentDisk": + if x.VolumeSource.PhotonPersistentDisk == nil { + x.VolumeSource.PhotonPersistentDisk = new(PhotonPersistentDiskVolumeSource) + } + if r.TryDecodeAsNil() { + if x.PhotonPersistentDisk != nil { + x.PhotonPersistentDisk = nil + } + } else { + if x.PhotonPersistentDisk == nil { + x.PhotonPersistentDisk = new(PhotonPersistentDiskVolumeSource) + } + x.PhotonPersistentDisk.CodecDecodeSelf(d) + } default: - z.DecStructFieldNotFound(-1, yys129) - } // end switch yys129 - } // end for yyj129 + z.DecStructFieldNotFound(-1, yys130) + } // end switch yys130 + } // end for yyj130 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -2385,16 +2437,16 @@ func (x *Volume) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj153 int - var yyb153 bool - var yyhl153 bool = l >= 0 - yyj153++ - if yyhl153 { - yyb153 = yyj153 > l + var yyj155 int + var yyb155 bool + var yyhl155 bool = l >= 0 + yyj155++ + if yyhl155 { + yyb155 = yyj155 > l } else { - yyb153 = r.CheckBreak() + yyb155 = r.CheckBreak() } - if yyb153 { + if yyb155 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -2407,13 +2459,13 @@ func (x *Volume) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if x.VolumeSource.HostPath == nil { x.VolumeSource.HostPath = new(HostPathVolumeSource) } - yyj153++ - if yyhl153 { - yyb153 = yyj153 > l + yyj155++ + if yyhl155 { + yyb155 = yyj155 > l } else { - yyb153 = r.CheckBreak() + yyb155 = r.CheckBreak() } - if yyb153 { + if yyb155 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -2431,13 +2483,13 @@ func (x *Volume) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if x.VolumeSource.EmptyDir == nil { x.VolumeSource.EmptyDir = new(EmptyDirVolumeSource) } - yyj153++ - if yyhl153 { - yyb153 = yyj153 > l + yyj155++ + if yyhl155 { + yyb155 = yyj155 > l } else { - yyb153 = r.CheckBreak() + yyb155 = r.CheckBreak() } - if yyb153 { + if yyb155 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -2455,13 +2507,13 @@ func (x *Volume) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if x.VolumeSource.GCEPersistentDisk == nil { x.VolumeSource.GCEPersistentDisk = new(GCEPersistentDiskVolumeSource) } - yyj153++ - if yyhl153 { - yyb153 = yyj153 > l + yyj155++ + if yyhl155 { + yyb155 = yyj155 > l } else { - yyb153 = r.CheckBreak() + yyb155 = r.CheckBreak() } - if yyb153 { + if yyb155 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -2479,13 +2531,13 @@ func (x *Volume) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if x.VolumeSource.AWSElasticBlockStore == nil { x.VolumeSource.AWSElasticBlockStore = new(AWSElasticBlockStoreVolumeSource) } - yyj153++ - if yyhl153 { - yyb153 = yyj153 > l + yyj155++ + if yyhl155 { + yyb155 = yyj155 > l } else { - yyb153 = r.CheckBreak() + yyb155 = r.CheckBreak() } - if yyb153 { + if yyb155 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -2503,13 +2555,13 @@ func (x *Volume) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if x.VolumeSource.GitRepo == nil { x.VolumeSource.GitRepo = new(GitRepoVolumeSource) } - yyj153++ - if yyhl153 { - yyb153 = yyj153 > l + yyj155++ + if yyhl155 { + yyb155 = yyj155 > l } else { - yyb153 = r.CheckBreak() + yyb155 = r.CheckBreak() } - if yyb153 { + if yyb155 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -2527,13 +2579,13 @@ func (x *Volume) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if x.VolumeSource.Secret == nil { x.VolumeSource.Secret = new(SecretVolumeSource) } - yyj153++ - if yyhl153 { - yyb153 = yyj153 > l + yyj155++ + if yyhl155 { + yyb155 = yyj155 > l } else { - yyb153 = r.CheckBreak() + yyb155 = r.CheckBreak() } - if yyb153 { + if yyb155 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -2551,13 +2603,13 @@ func (x *Volume) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if x.VolumeSource.NFS == nil { x.VolumeSource.NFS = new(NFSVolumeSource) } - yyj153++ - if yyhl153 { - yyb153 = yyj153 > l + yyj155++ + if yyhl155 { + yyb155 = yyj155 > l } else { - yyb153 = r.CheckBreak() + yyb155 = r.CheckBreak() } - if yyb153 { + if yyb155 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -2575,13 +2627,13 @@ func (x *Volume) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if x.VolumeSource.ISCSI == nil { x.VolumeSource.ISCSI = new(ISCSIVolumeSource) } - yyj153++ - if yyhl153 { - yyb153 = yyj153 > l + yyj155++ + if yyhl155 { + yyb155 = yyj155 > l } else { - yyb153 = r.CheckBreak() + yyb155 = r.CheckBreak() } - if yyb153 { + if yyb155 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -2599,13 +2651,13 @@ func (x *Volume) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if x.VolumeSource.Glusterfs == nil { x.VolumeSource.Glusterfs = new(GlusterfsVolumeSource) } - yyj153++ - if yyhl153 { - yyb153 = yyj153 > l + yyj155++ + if yyhl155 { + yyb155 = yyj155 > l } else { - yyb153 = r.CheckBreak() + yyb155 = r.CheckBreak() } - if yyb153 { + if yyb155 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -2623,13 +2675,13 @@ func (x *Volume) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if x.VolumeSource.PersistentVolumeClaim == nil { x.VolumeSource.PersistentVolumeClaim = new(PersistentVolumeClaimVolumeSource) } - yyj153++ - if yyhl153 { - yyb153 = yyj153 > l + yyj155++ + if yyhl155 { + yyb155 = yyj155 > l } else { - yyb153 = r.CheckBreak() + yyb155 = r.CheckBreak() } - if yyb153 { + if yyb155 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -2647,13 +2699,13 @@ func (x *Volume) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if x.VolumeSource.RBD == nil { x.VolumeSource.RBD = new(RBDVolumeSource) } - yyj153++ - if yyhl153 { - yyb153 = yyj153 > l + yyj155++ + if yyhl155 { + yyb155 = yyj155 > l } else { - yyb153 = r.CheckBreak() + yyb155 = r.CheckBreak() } - if yyb153 { + if yyb155 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -2671,13 +2723,13 @@ func (x *Volume) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if x.VolumeSource.Quobyte == nil { x.VolumeSource.Quobyte = new(QuobyteVolumeSource) } - yyj153++ - if yyhl153 { - yyb153 = yyj153 > l + yyj155++ + if yyhl155 { + yyb155 = yyj155 > l } else { - yyb153 = r.CheckBreak() + yyb155 = r.CheckBreak() } - if yyb153 { + if yyb155 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -2695,13 +2747,13 @@ func (x *Volume) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if x.VolumeSource.FlexVolume == nil { x.VolumeSource.FlexVolume = new(FlexVolumeSource) } - yyj153++ - if yyhl153 { - yyb153 = yyj153 > l + yyj155++ + if yyhl155 { + yyb155 = yyj155 > l } else { - yyb153 = r.CheckBreak() + yyb155 = r.CheckBreak() } - if yyb153 { + if yyb155 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -2719,13 +2771,13 @@ func (x *Volume) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if x.VolumeSource.Cinder == nil { x.VolumeSource.Cinder = new(CinderVolumeSource) } - yyj153++ - if yyhl153 { - yyb153 = yyj153 > l + yyj155++ + if yyhl155 { + yyb155 = yyj155 > l } else { - yyb153 = r.CheckBreak() + yyb155 = r.CheckBreak() } - if yyb153 { + if yyb155 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -2743,13 +2795,13 @@ func (x *Volume) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if x.VolumeSource.CephFS == nil { x.VolumeSource.CephFS = new(CephFSVolumeSource) } - yyj153++ - if yyhl153 { - yyb153 = yyj153 > l + yyj155++ + if yyhl155 { + yyb155 = yyj155 > l } else { - yyb153 = r.CheckBreak() + yyb155 = r.CheckBreak() } - if yyb153 { + if yyb155 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -2767,13 +2819,13 @@ func (x *Volume) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if x.VolumeSource.Flocker == nil { x.VolumeSource.Flocker = new(FlockerVolumeSource) } - yyj153++ - if yyhl153 { - yyb153 = yyj153 > l + yyj155++ + if yyhl155 { + yyb155 = yyj155 > l } else { - yyb153 = r.CheckBreak() + yyb155 = r.CheckBreak() } - if yyb153 { + if yyb155 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -2791,13 +2843,13 @@ func (x *Volume) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if x.VolumeSource.DownwardAPI == nil { x.VolumeSource.DownwardAPI = new(DownwardAPIVolumeSource) } - yyj153++ - if yyhl153 { - yyb153 = yyj153 > l + yyj155++ + if yyhl155 { + yyb155 = yyj155 > l } else { - yyb153 = r.CheckBreak() + yyb155 = r.CheckBreak() } - if yyb153 { + if yyb155 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -2815,13 +2867,13 @@ func (x *Volume) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if x.VolumeSource.FC == nil { x.VolumeSource.FC = new(FCVolumeSource) } - yyj153++ - if yyhl153 { - yyb153 = yyj153 > l + yyj155++ + if yyhl155 { + yyb155 = yyj155 > l } else { - yyb153 = r.CheckBreak() + yyb155 = r.CheckBreak() } - if yyb153 { + if yyb155 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -2839,13 +2891,13 @@ func (x *Volume) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if x.VolumeSource.AzureFile == nil { x.VolumeSource.AzureFile = new(AzureFileVolumeSource) } - yyj153++ - if yyhl153 { - yyb153 = yyj153 > l + yyj155++ + if yyhl155 { + yyb155 = yyj155 > l } else { - yyb153 = r.CheckBreak() + yyb155 = r.CheckBreak() } - if yyb153 { + if yyb155 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -2863,13 +2915,13 @@ func (x *Volume) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if x.VolumeSource.ConfigMap == nil { x.VolumeSource.ConfigMap = new(ConfigMapVolumeSource) } - yyj153++ - if yyhl153 { - yyb153 = yyj153 > l + yyj155++ + if yyhl155 { + yyb155 = yyj155 > l } else { - yyb153 = r.CheckBreak() + yyb155 = r.CheckBreak() } - if yyb153 { + if yyb155 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -2887,13 +2939,13 @@ func (x *Volume) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if x.VolumeSource.VsphereVolume == nil { x.VolumeSource.VsphereVolume = new(VsphereVirtualDiskVolumeSource) } - yyj153++ - if yyhl153 { - yyb153 = yyj153 > l + yyj155++ + if yyhl155 { + yyb155 = yyj155 > l } else { - yyb153 = r.CheckBreak() + yyb155 = r.CheckBreak() } - if yyb153 { + if yyb155 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -2911,13 +2963,13 @@ func (x *Volume) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if x.VolumeSource.AzureDisk == nil { x.VolumeSource.AzureDisk = new(AzureDiskVolumeSource) } - yyj153++ - if yyhl153 { - yyb153 = yyj153 > l + yyj155++ + if yyhl155 { + yyb155 = yyj155 > l } else { - yyb153 = r.CheckBreak() + yyb155 = r.CheckBreak() } - if yyb153 { + if yyb155 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -2932,18 +2984,42 @@ func (x *Volume) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } x.AzureDisk.CodecDecodeSelf(d) } - for { - yyj153++ - if yyhl153 { - yyb153 = yyj153 > l - } else { - yyb153 = r.CheckBreak() + if x.VolumeSource.PhotonPersistentDisk == nil { + x.VolumeSource.PhotonPersistentDisk = new(PhotonPersistentDiskVolumeSource) + } + yyj155++ + if yyhl155 { + yyb155 = yyj155 > l + } else { + yyb155 = r.CheckBreak() + } + if yyb155 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + if x.PhotonPersistentDisk != nil { + x.PhotonPersistentDisk = nil } - if yyb153 { + } else { + if x.PhotonPersistentDisk == nil { + x.PhotonPersistentDisk = new(PhotonPersistentDiskVolumeSource) + } + x.PhotonPersistentDisk.CodecDecodeSelf(d) + } + for { + yyj155++ + if yyhl155 { + yyb155 = yyj155 > l + } else { + yyb155 = r.CheckBreak() + } + if yyb155 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj153-1, "") + z.DecStructFieldNotFound(yyj155-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -2955,54 +3031,55 @@ func (x *VolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym177 := z.EncBinary() - _ = yym177 + yym180 := z.EncBinary() + _ = yym180 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - 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) + yysep181 := !z.EncBinary() + yy2arr181 := z.EncBasicHandle().StructToArray + var yyq181 [23]bool + _, _, _ = yysep181, yyq181, yy2arr181 + const yyr181 bool = false + yyq181[0] = x.HostPath != nil + yyq181[1] = x.EmptyDir != nil + yyq181[2] = x.GCEPersistentDisk != nil + yyq181[3] = x.AWSElasticBlockStore != nil + yyq181[4] = x.GitRepo != nil + yyq181[5] = x.Secret != nil + yyq181[6] = x.NFS != nil + yyq181[7] = x.ISCSI != nil + yyq181[8] = x.Glusterfs != nil + yyq181[9] = x.PersistentVolumeClaim != nil + yyq181[10] = x.RBD != nil + yyq181[11] = x.Quobyte != nil + yyq181[12] = x.FlexVolume != nil + yyq181[13] = x.Cinder != nil + yyq181[14] = x.CephFS != nil + yyq181[15] = x.Flocker != nil + yyq181[16] = x.DownwardAPI != nil + yyq181[17] = x.FC != nil + yyq181[18] = x.AzureFile != nil + yyq181[19] = x.ConfigMap != nil + yyq181[20] = x.VsphereVolume != nil + yyq181[21] = x.AzureDisk != nil + yyq181[22] = x.PhotonPersistentDisk != nil + var yynn181 int + if yyr181 || yy2arr181 { + r.EncodeArrayStart(23) } else { - yynn178 = 0 - for _, b := range yyq178 { + yynn181 = 0 + for _, b := range yyq181 { if b { - yynn178++ + yynn181++ } } - r.EncodeMapStart(yynn178) - yynn178 = 0 + r.EncodeMapStart(yynn181) + yynn181 = 0 } - if yyr178 || yy2arr178 { + if yyr181 || yy2arr181 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq178[0] { + if yyq181[0] { if x.HostPath == nil { r.EncodeNil() } else { @@ -3012,7 +3089,7 @@ func (x *VolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq178[0] { + if yyq181[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("hostPath")) z.EncSendContainerState(codecSelfer_containerMapValue1234) @@ -3023,9 +3100,9 @@ func (x *VolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr178 || yy2arr178 { + if yyr181 || yy2arr181 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq178[1] { + if yyq181[1] { if x.EmptyDir == nil { r.EncodeNil() } else { @@ -3035,7 +3112,7 @@ func (x *VolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq178[1] { + if yyq181[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("emptyDir")) z.EncSendContainerState(codecSelfer_containerMapValue1234) @@ -3046,9 +3123,9 @@ func (x *VolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr178 || yy2arr178 { + if yyr181 || yy2arr181 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq178[2] { + if yyq181[2] { if x.GCEPersistentDisk == nil { r.EncodeNil() } else { @@ -3058,7 +3135,7 @@ func (x *VolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq178[2] { + if yyq181[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("gcePersistentDisk")) z.EncSendContainerState(codecSelfer_containerMapValue1234) @@ -3069,9 +3146,9 @@ func (x *VolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr178 || yy2arr178 { + if yyr181 || yy2arr181 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq178[3] { + if yyq181[3] { if x.AWSElasticBlockStore == nil { r.EncodeNil() } else { @@ -3081,7 +3158,7 @@ func (x *VolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq178[3] { + if yyq181[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("awsElasticBlockStore")) z.EncSendContainerState(codecSelfer_containerMapValue1234) @@ -3092,9 +3169,9 @@ func (x *VolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr178 || yy2arr178 { + if yyr181 || yy2arr181 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq178[4] { + if yyq181[4] { if x.GitRepo == nil { r.EncodeNil() } else { @@ -3104,7 +3181,7 @@ func (x *VolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq178[4] { + if yyq181[4] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("gitRepo")) z.EncSendContainerState(codecSelfer_containerMapValue1234) @@ -3115,9 +3192,9 @@ func (x *VolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr178 || yy2arr178 { + if yyr181 || yy2arr181 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq178[5] { + if yyq181[5] { if x.Secret == nil { r.EncodeNil() } else { @@ -3127,7 +3204,7 @@ func (x *VolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq178[5] { + if yyq181[5] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("secret")) z.EncSendContainerState(codecSelfer_containerMapValue1234) @@ -3138,9 +3215,9 @@ func (x *VolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr178 || yy2arr178 { + if yyr181 || yy2arr181 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq178[6] { + if yyq181[6] { if x.NFS == nil { r.EncodeNil() } else { @@ -3150,7 +3227,7 @@ func (x *VolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq178[6] { + if yyq181[6] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("nfs")) z.EncSendContainerState(codecSelfer_containerMapValue1234) @@ -3161,9 +3238,9 @@ func (x *VolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr178 || yy2arr178 { + if yyr181 || yy2arr181 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq178[7] { + if yyq181[7] { if x.ISCSI == nil { r.EncodeNil() } else { @@ -3173,7 +3250,7 @@ func (x *VolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq178[7] { + if yyq181[7] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("iscsi")) z.EncSendContainerState(codecSelfer_containerMapValue1234) @@ -3184,9 +3261,9 @@ func (x *VolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr178 || yy2arr178 { + if yyr181 || yy2arr181 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq178[8] { + if yyq181[8] { if x.Glusterfs == nil { r.EncodeNil() } else { @@ -3196,7 +3273,7 @@ func (x *VolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq178[8] { + if yyq181[8] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("glusterfs")) z.EncSendContainerState(codecSelfer_containerMapValue1234) @@ -3207,9 +3284,9 @@ func (x *VolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr178 || yy2arr178 { + if yyr181 || yy2arr181 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq178[9] { + if yyq181[9] { if x.PersistentVolumeClaim == nil { r.EncodeNil() } else { @@ -3219,7 +3296,7 @@ func (x *VolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq178[9] { + if yyq181[9] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("persistentVolumeClaim")) z.EncSendContainerState(codecSelfer_containerMapValue1234) @@ -3230,9 +3307,9 @@ func (x *VolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr178 || yy2arr178 { + if yyr181 || yy2arr181 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq178[10] { + if yyq181[10] { if x.RBD == nil { r.EncodeNil() } else { @@ -3242,7 +3319,7 @@ func (x *VolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq178[10] { + if yyq181[10] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("rbd")) z.EncSendContainerState(codecSelfer_containerMapValue1234) @@ -3253,9 +3330,9 @@ func (x *VolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr178 || yy2arr178 { + if yyr181 || yy2arr181 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq178[11] { + if yyq181[11] { if x.Quobyte == nil { r.EncodeNil() } else { @@ -3265,7 +3342,7 @@ func (x *VolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq178[11] { + if yyq181[11] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("quobyte")) z.EncSendContainerState(codecSelfer_containerMapValue1234) @@ -3276,9 +3353,9 @@ func (x *VolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr178 || yy2arr178 { + if yyr181 || yy2arr181 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq178[12] { + if yyq181[12] { if x.FlexVolume == nil { r.EncodeNil() } else { @@ -3288,7 +3365,7 @@ func (x *VolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq178[12] { + if yyq181[12] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("flexVolume")) z.EncSendContainerState(codecSelfer_containerMapValue1234) @@ -3299,9 +3376,9 @@ func (x *VolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr178 || yy2arr178 { + if yyr181 || yy2arr181 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq178[13] { + if yyq181[13] { if x.Cinder == nil { r.EncodeNil() } else { @@ -3311,7 +3388,7 @@ func (x *VolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq178[13] { + if yyq181[13] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("cinder")) z.EncSendContainerState(codecSelfer_containerMapValue1234) @@ -3322,9 +3399,9 @@ func (x *VolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr178 || yy2arr178 { + if yyr181 || yy2arr181 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq178[14] { + if yyq181[14] { if x.CephFS == nil { r.EncodeNil() } else { @@ -3334,7 +3411,7 @@ func (x *VolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq178[14] { + if yyq181[14] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("cephfs")) z.EncSendContainerState(codecSelfer_containerMapValue1234) @@ -3345,9 +3422,9 @@ func (x *VolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr178 || yy2arr178 { + if yyr181 || yy2arr181 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq178[15] { + if yyq181[15] { if x.Flocker == nil { r.EncodeNil() } else { @@ -3357,7 +3434,7 @@ func (x *VolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq178[15] { + if yyq181[15] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("flocker")) z.EncSendContainerState(codecSelfer_containerMapValue1234) @@ -3368,9 +3445,9 @@ func (x *VolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr178 || yy2arr178 { + if yyr181 || yy2arr181 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq178[16] { + if yyq181[16] { if x.DownwardAPI == nil { r.EncodeNil() } else { @@ -3380,7 +3457,7 @@ func (x *VolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq178[16] { + if yyq181[16] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("downwardAPI")) z.EncSendContainerState(codecSelfer_containerMapValue1234) @@ -3391,9 +3468,9 @@ func (x *VolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr178 || yy2arr178 { + if yyr181 || yy2arr181 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq178[17] { + if yyq181[17] { if x.FC == nil { r.EncodeNil() } else { @@ -3403,7 +3480,7 @@ func (x *VolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq178[17] { + if yyq181[17] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("fc")) z.EncSendContainerState(codecSelfer_containerMapValue1234) @@ -3414,9 +3491,9 @@ func (x *VolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr178 || yy2arr178 { + if yyr181 || yy2arr181 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq178[18] { + if yyq181[18] { if x.AzureFile == nil { r.EncodeNil() } else { @@ -3426,7 +3503,7 @@ func (x *VolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq178[18] { + if yyq181[18] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("azureFile")) z.EncSendContainerState(codecSelfer_containerMapValue1234) @@ -3437,9 +3514,9 @@ func (x *VolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr178 || yy2arr178 { + if yyr181 || yy2arr181 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq178[19] { + if yyq181[19] { if x.ConfigMap == nil { r.EncodeNil() } else { @@ -3449,7 +3526,7 @@ func (x *VolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq178[19] { + if yyq181[19] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("configMap")) z.EncSendContainerState(codecSelfer_containerMapValue1234) @@ -3460,9 +3537,9 @@ func (x *VolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr178 || yy2arr178 { + if yyr181 || yy2arr181 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq178[20] { + if yyq181[20] { if x.VsphereVolume == nil { r.EncodeNil() } else { @@ -3472,7 +3549,7 @@ func (x *VolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq178[20] { + if yyq181[20] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("vsphereVolume")) z.EncSendContainerState(codecSelfer_containerMapValue1234) @@ -3483,9 +3560,9 @@ func (x *VolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr178 || yy2arr178 { + if yyr181 || yy2arr181 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq178[21] { + if yyq181[21] { if x.AzureDisk == nil { r.EncodeNil() } else { @@ -3495,7 +3572,7 @@ func (x *VolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq178[21] { + if yyq181[21] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("azureDisk")) z.EncSendContainerState(codecSelfer_containerMapValue1234) @@ -3506,7 +3583,30 @@ func (x *VolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr178 || yy2arr178 { + if yyr181 || yy2arr181 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq181[22] { + if x.PhotonPersistentDisk == nil { + r.EncodeNil() + } else { + x.PhotonPersistentDisk.CodecEncodeSelf(e) + } + } else { + r.EncodeNil() + } + } else { + if yyq181[22] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("photonPersistentDisk")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + if x.PhotonPersistentDisk == nil { + r.EncodeNil() + } else { + x.PhotonPersistentDisk.CodecEncodeSelf(e) + } + } + } + if yyr181 || yy2arr181 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -3519,25 +3619,25 @@ func (x *VolumeSource) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym201 := z.DecBinary() - _ = yym201 + yym205 := z.DecBinary() + _ = yym205 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct202 := r.ContainerType() - if yyct202 == codecSelferValueTypeMap1234 { - yyl202 := r.ReadMapStart() - if yyl202 == 0 { + yyct206 := r.ContainerType() + if yyct206 == codecSelferValueTypeMap1234 { + yyl206 := r.ReadMapStart() + if yyl206 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl202, d) + x.codecDecodeSelfFromMap(yyl206, d) } - } else if yyct202 == codecSelferValueTypeArray1234 { - yyl202 := r.ReadArrayStart() - if yyl202 == 0 { + } else if yyct206 == codecSelferValueTypeArray1234 { + yyl206 := r.ReadArrayStart() + if yyl206 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl202, d) + x.codecDecodeSelfFromArray(yyl206, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -3549,12 +3649,12 @@ func (x *VolumeSource) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys203Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys203Slc - var yyhl203 bool = l >= 0 - for yyj203 := 0; ; yyj203++ { - if yyhl203 { - if yyj203 >= l { + var yys207Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys207Slc + var yyhl207 bool = l >= 0 + for yyj207 := 0; ; yyj207++ { + if yyhl207 { + if yyj207 >= l { break } } else { @@ -3563,10 +3663,10 @@ func (x *VolumeSource) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys203Slc = r.DecodeBytes(yys203Slc, true, true) - yys203 := string(yys203Slc) + yys207Slc = r.DecodeBytes(yys207Slc, true, true) + yys207 := string(yys207Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys203 { + switch yys207 { case "hostPath": if r.TryDecodeAsNil() { if x.HostPath != nil { @@ -3809,10 +3909,21 @@ func (x *VolumeSource) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } x.AzureDisk.CodecDecodeSelf(d) } + case "photonPersistentDisk": + if r.TryDecodeAsNil() { + if x.PhotonPersistentDisk != nil { + x.PhotonPersistentDisk = nil + } + } else { + if x.PhotonPersistentDisk == nil { + x.PhotonPersistentDisk = new(PhotonPersistentDiskVolumeSource) + } + x.PhotonPersistentDisk.CodecDecodeSelf(d) + } default: - z.DecStructFieldNotFound(-1, yys203) - } // end switch yys203 - } // end for yyj203 + z.DecStructFieldNotFound(-1, yys207) + } // end switch yys207 + } // end for yyj207 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -3820,16 +3931,16 @@ func (x *VolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj226 int - var yyb226 bool - var yyhl226 bool = l >= 0 - yyj226++ - if yyhl226 { - yyb226 = yyj226 > l + var yyj231 int + var yyb231 bool + var yyhl231 bool = l >= 0 + yyj231++ + if yyhl231 { + yyb231 = yyj231 > l } else { - yyb226 = r.CheckBreak() + yyb231 = r.CheckBreak() } - if yyb226 { + if yyb231 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -3844,13 +3955,13 @@ func (x *VolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } x.HostPath.CodecDecodeSelf(d) } - yyj226++ - if yyhl226 { - yyb226 = yyj226 > l + yyj231++ + if yyhl231 { + yyb231 = yyj231 > l } else { - yyb226 = r.CheckBreak() + yyb231 = r.CheckBreak() } - if yyb226 { + if yyb231 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -3865,13 +3976,13 @@ func (x *VolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } x.EmptyDir.CodecDecodeSelf(d) } - yyj226++ - if yyhl226 { - yyb226 = yyj226 > l + yyj231++ + if yyhl231 { + yyb231 = yyj231 > l } else { - yyb226 = r.CheckBreak() + yyb231 = r.CheckBreak() } - if yyb226 { + if yyb231 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -3886,13 +3997,13 @@ func (x *VolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } x.GCEPersistentDisk.CodecDecodeSelf(d) } - yyj226++ - if yyhl226 { - yyb226 = yyj226 > l + yyj231++ + if yyhl231 { + yyb231 = yyj231 > l } else { - yyb226 = r.CheckBreak() + yyb231 = r.CheckBreak() } - if yyb226 { + if yyb231 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -3907,13 +4018,13 @@ func (x *VolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } x.AWSElasticBlockStore.CodecDecodeSelf(d) } - yyj226++ - if yyhl226 { - yyb226 = yyj226 > l + yyj231++ + if yyhl231 { + yyb231 = yyj231 > l } else { - yyb226 = r.CheckBreak() + yyb231 = r.CheckBreak() } - if yyb226 { + if yyb231 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -3928,13 +4039,13 @@ func (x *VolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } x.GitRepo.CodecDecodeSelf(d) } - yyj226++ - if yyhl226 { - yyb226 = yyj226 > l + yyj231++ + if yyhl231 { + yyb231 = yyj231 > l } else { - yyb226 = r.CheckBreak() + yyb231 = r.CheckBreak() } - if yyb226 { + if yyb231 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -3949,13 +4060,13 @@ func (x *VolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } x.Secret.CodecDecodeSelf(d) } - yyj226++ - if yyhl226 { - yyb226 = yyj226 > l + yyj231++ + if yyhl231 { + yyb231 = yyj231 > l } else { - yyb226 = r.CheckBreak() + yyb231 = r.CheckBreak() } - if yyb226 { + if yyb231 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -3970,13 +4081,13 @@ func (x *VolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } x.NFS.CodecDecodeSelf(d) } - yyj226++ - if yyhl226 { - yyb226 = yyj226 > l + yyj231++ + if yyhl231 { + yyb231 = yyj231 > l } else { - yyb226 = r.CheckBreak() + yyb231 = r.CheckBreak() } - if yyb226 { + if yyb231 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -3991,13 +4102,13 @@ func (x *VolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } x.ISCSI.CodecDecodeSelf(d) } - yyj226++ - if yyhl226 { - yyb226 = yyj226 > l + yyj231++ + if yyhl231 { + yyb231 = yyj231 > l } else { - yyb226 = r.CheckBreak() + yyb231 = r.CheckBreak() } - if yyb226 { + if yyb231 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -4012,13 +4123,13 @@ func (x *VolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } x.Glusterfs.CodecDecodeSelf(d) } - yyj226++ - if yyhl226 { - yyb226 = yyj226 > l + yyj231++ + if yyhl231 { + yyb231 = yyj231 > l } else { - yyb226 = r.CheckBreak() + yyb231 = r.CheckBreak() } - if yyb226 { + if yyb231 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -4033,13 +4144,13 @@ func (x *VolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } x.PersistentVolumeClaim.CodecDecodeSelf(d) } - yyj226++ - if yyhl226 { - yyb226 = yyj226 > l + yyj231++ + if yyhl231 { + yyb231 = yyj231 > l } else { - yyb226 = r.CheckBreak() + yyb231 = r.CheckBreak() } - if yyb226 { + if yyb231 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -4054,13 +4165,13 @@ func (x *VolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } x.RBD.CodecDecodeSelf(d) } - yyj226++ - if yyhl226 { - yyb226 = yyj226 > l + yyj231++ + if yyhl231 { + yyb231 = yyj231 > l } else { - yyb226 = r.CheckBreak() + yyb231 = r.CheckBreak() } - if yyb226 { + if yyb231 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -4075,13 +4186,13 @@ func (x *VolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } x.Quobyte.CodecDecodeSelf(d) } - yyj226++ - if yyhl226 { - yyb226 = yyj226 > l + yyj231++ + if yyhl231 { + yyb231 = yyj231 > l } else { - yyb226 = r.CheckBreak() + yyb231 = r.CheckBreak() } - if yyb226 { + if yyb231 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -4096,13 +4207,13 @@ func (x *VolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } x.FlexVolume.CodecDecodeSelf(d) } - yyj226++ - if yyhl226 { - yyb226 = yyj226 > l + yyj231++ + if yyhl231 { + yyb231 = yyj231 > l } else { - yyb226 = r.CheckBreak() + yyb231 = r.CheckBreak() } - if yyb226 { + if yyb231 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -4117,13 +4228,13 @@ func (x *VolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } x.Cinder.CodecDecodeSelf(d) } - yyj226++ - if yyhl226 { - yyb226 = yyj226 > l + yyj231++ + if yyhl231 { + yyb231 = yyj231 > l } else { - yyb226 = r.CheckBreak() + yyb231 = r.CheckBreak() } - if yyb226 { + if yyb231 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -4138,13 +4249,13 @@ func (x *VolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } x.CephFS.CodecDecodeSelf(d) } - yyj226++ - if yyhl226 { - yyb226 = yyj226 > l + yyj231++ + if yyhl231 { + yyb231 = yyj231 > l } else { - yyb226 = r.CheckBreak() + yyb231 = r.CheckBreak() } - if yyb226 { + if yyb231 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -4159,13 +4270,13 @@ func (x *VolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } x.Flocker.CodecDecodeSelf(d) } - yyj226++ - if yyhl226 { - yyb226 = yyj226 > l + yyj231++ + if yyhl231 { + yyb231 = yyj231 > l } else { - yyb226 = r.CheckBreak() + yyb231 = r.CheckBreak() } - if yyb226 { + if yyb231 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -4180,13 +4291,13 @@ func (x *VolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } x.DownwardAPI.CodecDecodeSelf(d) } - yyj226++ - if yyhl226 { - yyb226 = yyj226 > l + yyj231++ + if yyhl231 { + yyb231 = yyj231 > l } else { - yyb226 = r.CheckBreak() + yyb231 = r.CheckBreak() } - if yyb226 { + if yyb231 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -4201,13 +4312,13 @@ func (x *VolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } x.FC.CodecDecodeSelf(d) } - yyj226++ - if yyhl226 { - yyb226 = yyj226 > l + yyj231++ + if yyhl231 { + yyb231 = yyj231 > l } else { - yyb226 = r.CheckBreak() + yyb231 = r.CheckBreak() } - if yyb226 { + if yyb231 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -4222,13 +4333,13 @@ func (x *VolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } x.AzureFile.CodecDecodeSelf(d) } - yyj226++ - if yyhl226 { - yyb226 = yyj226 > l + yyj231++ + if yyhl231 { + yyb231 = yyj231 > l } else { - yyb226 = r.CheckBreak() + yyb231 = r.CheckBreak() } - if yyb226 { + if yyb231 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -4243,13 +4354,13 @@ func (x *VolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } x.ConfigMap.CodecDecodeSelf(d) } - yyj226++ - if yyhl226 { - yyb226 = yyj226 > l + yyj231++ + if yyhl231 { + yyb231 = yyj231 > l } else { - yyb226 = r.CheckBreak() + yyb231 = r.CheckBreak() } - if yyb226 { + if yyb231 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -4264,13 +4375,13 @@ func (x *VolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } x.VsphereVolume.CodecDecodeSelf(d) } - yyj226++ - if yyhl226 { - yyb226 = yyj226 > l + yyj231++ + if yyhl231 { + yyb231 = yyj231 > l } else { - yyb226 = r.CheckBreak() + yyb231 = r.CheckBreak() } - if yyb226 { + if yyb231 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -4285,18 +4396,39 @@ func (x *VolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } x.AzureDisk.CodecDecodeSelf(d) } - for { - yyj226++ - if yyhl226 { - yyb226 = yyj226 > l - } else { - yyb226 = r.CheckBreak() + yyj231++ + if yyhl231 { + yyb231 = yyj231 > l + } else { + yyb231 = r.CheckBreak() + } + if yyb231 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + if x.PhotonPersistentDisk != nil { + x.PhotonPersistentDisk = nil } - if yyb226 { + } else { + if x.PhotonPersistentDisk == nil { + x.PhotonPersistentDisk = new(PhotonPersistentDiskVolumeSource) + } + x.PhotonPersistentDisk.CodecDecodeSelf(d) + } + for { + yyj231++ + if yyhl231 { + yyb231 = yyj231 > l + } else { + yyb231 = r.CheckBreak() + } + if yyb231 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj226-1, "") + z.DecStructFieldNotFound(yyj231-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -4308,48 +4440,49 @@ func (x *PersistentVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym249 := z.EncBinary() - _ = yym249 + yym255 := z.EncBinary() + _ = yym255 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - 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) + yysep256 := !z.EncBinary() + yy2arr256 := z.EncBasicHandle().StructToArray + var yyq256 [17]bool + _, _, _ = yysep256, yyq256, yy2arr256 + const yyr256 bool = false + yyq256[0] = x.GCEPersistentDisk != nil + yyq256[1] = x.AWSElasticBlockStore != nil + yyq256[2] = x.HostPath != nil + yyq256[3] = x.Glusterfs != nil + yyq256[4] = x.NFS != nil + yyq256[5] = x.RBD != nil + yyq256[6] = x.Quobyte != nil + yyq256[7] = x.ISCSI != nil + yyq256[8] = x.FlexVolume != nil + yyq256[9] = x.Cinder != nil + yyq256[10] = x.CephFS != nil + yyq256[11] = x.FC != nil + yyq256[12] = x.Flocker != nil + yyq256[13] = x.AzureFile != nil + yyq256[14] = x.VsphereVolume != nil + yyq256[15] = x.AzureDisk != nil + yyq256[16] = x.PhotonPersistentDisk != nil + var yynn256 int + if yyr256 || yy2arr256 { + r.EncodeArrayStart(17) } else { - yynn250 = 0 - for _, b := range yyq250 { + yynn256 = 0 + for _, b := range yyq256 { if b { - yynn250++ + yynn256++ } } - r.EncodeMapStart(yynn250) - yynn250 = 0 + r.EncodeMapStart(yynn256) + yynn256 = 0 } - if yyr250 || yy2arr250 { + if yyr256 || yy2arr256 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq250[0] { + if yyq256[0] { if x.GCEPersistentDisk == nil { r.EncodeNil() } else { @@ -4359,7 +4492,7 @@ func (x *PersistentVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq250[0] { + if yyq256[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("gcePersistentDisk")) z.EncSendContainerState(codecSelfer_containerMapValue1234) @@ -4370,9 +4503,9 @@ func (x *PersistentVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr250 || yy2arr250 { + if yyr256 || yy2arr256 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq250[1] { + if yyq256[1] { if x.AWSElasticBlockStore == nil { r.EncodeNil() } else { @@ -4382,7 +4515,7 @@ func (x *PersistentVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq250[1] { + if yyq256[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("awsElasticBlockStore")) z.EncSendContainerState(codecSelfer_containerMapValue1234) @@ -4393,9 +4526,9 @@ func (x *PersistentVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr250 || yy2arr250 { + if yyr256 || yy2arr256 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq250[2] { + if yyq256[2] { if x.HostPath == nil { r.EncodeNil() } else { @@ -4405,7 +4538,7 @@ func (x *PersistentVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq250[2] { + if yyq256[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("hostPath")) z.EncSendContainerState(codecSelfer_containerMapValue1234) @@ -4416,9 +4549,9 @@ func (x *PersistentVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr250 || yy2arr250 { + if yyr256 || yy2arr256 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq250[3] { + if yyq256[3] { if x.Glusterfs == nil { r.EncodeNil() } else { @@ -4428,7 +4561,7 @@ func (x *PersistentVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq250[3] { + if yyq256[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("glusterfs")) z.EncSendContainerState(codecSelfer_containerMapValue1234) @@ -4439,9 +4572,9 @@ func (x *PersistentVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr250 || yy2arr250 { + if yyr256 || yy2arr256 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq250[4] { + if yyq256[4] { if x.NFS == nil { r.EncodeNil() } else { @@ -4451,7 +4584,7 @@ func (x *PersistentVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq250[4] { + if yyq256[4] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("nfs")) z.EncSendContainerState(codecSelfer_containerMapValue1234) @@ -4462,9 +4595,9 @@ func (x *PersistentVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr250 || yy2arr250 { + if yyr256 || yy2arr256 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq250[5] { + if yyq256[5] { if x.RBD == nil { r.EncodeNil() } else { @@ -4474,7 +4607,7 @@ func (x *PersistentVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq250[5] { + if yyq256[5] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("rbd")) z.EncSendContainerState(codecSelfer_containerMapValue1234) @@ -4485,9 +4618,9 @@ func (x *PersistentVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr250 || yy2arr250 { + if yyr256 || yy2arr256 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq250[6] { + if yyq256[6] { if x.Quobyte == nil { r.EncodeNil() } else { @@ -4497,7 +4630,7 @@ func (x *PersistentVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq250[6] { + if yyq256[6] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("quobyte")) z.EncSendContainerState(codecSelfer_containerMapValue1234) @@ -4508,9 +4641,9 @@ func (x *PersistentVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr250 || yy2arr250 { + if yyr256 || yy2arr256 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq250[7] { + if yyq256[7] { if x.ISCSI == nil { r.EncodeNil() } else { @@ -4520,7 +4653,7 @@ func (x *PersistentVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq250[7] { + if yyq256[7] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("iscsi")) z.EncSendContainerState(codecSelfer_containerMapValue1234) @@ -4531,9 +4664,9 @@ func (x *PersistentVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr250 || yy2arr250 { + if yyr256 || yy2arr256 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq250[8] { + if yyq256[8] { if x.FlexVolume == nil { r.EncodeNil() } else { @@ -4543,7 +4676,7 @@ func (x *PersistentVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq250[8] { + if yyq256[8] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("flexVolume")) z.EncSendContainerState(codecSelfer_containerMapValue1234) @@ -4554,9 +4687,9 @@ func (x *PersistentVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr250 || yy2arr250 { + if yyr256 || yy2arr256 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq250[9] { + if yyq256[9] { if x.Cinder == nil { r.EncodeNil() } else { @@ -4566,7 +4699,7 @@ func (x *PersistentVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq250[9] { + if yyq256[9] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("cinder")) z.EncSendContainerState(codecSelfer_containerMapValue1234) @@ -4577,9 +4710,9 @@ func (x *PersistentVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr250 || yy2arr250 { + if yyr256 || yy2arr256 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq250[10] { + if yyq256[10] { if x.CephFS == nil { r.EncodeNil() } else { @@ -4589,7 +4722,7 @@ func (x *PersistentVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq250[10] { + if yyq256[10] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("cephfs")) z.EncSendContainerState(codecSelfer_containerMapValue1234) @@ -4600,9 +4733,9 @@ func (x *PersistentVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr250 || yy2arr250 { + if yyr256 || yy2arr256 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq250[11] { + if yyq256[11] { if x.FC == nil { r.EncodeNil() } else { @@ -4612,7 +4745,7 @@ func (x *PersistentVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq250[11] { + if yyq256[11] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("fc")) z.EncSendContainerState(codecSelfer_containerMapValue1234) @@ -4623,9 +4756,9 @@ func (x *PersistentVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr250 || yy2arr250 { + if yyr256 || yy2arr256 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq250[12] { + if yyq256[12] { if x.Flocker == nil { r.EncodeNil() } else { @@ -4635,7 +4768,7 @@ func (x *PersistentVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq250[12] { + if yyq256[12] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("flocker")) z.EncSendContainerState(codecSelfer_containerMapValue1234) @@ -4646,9 +4779,9 @@ func (x *PersistentVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr250 || yy2arr250 { + if yyr256 || yy2arr256 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq250[13] { + if yyq256[13] { if x.AzureFile == nil { r.EncodeNil() } else { @@ -4658,7 +4791,7 @@ func (x *PersistentVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq250[13] { + if yyq256[13] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("azureFile")) z.EncSendContainerState(codecSelfer_containerMapValue1234) @@ -4669,9 +4802,9 @@ func (x *PersistentVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr250 || yy2arr250 { + if yyr256 || yy2arr256 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq250[14] { + if yyq256[14] { if x.VsphereVolume == nil { r.EncodeNil() } else { @@ -4681,7 +4814,7 @@ func (x *PersistentVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq250[14] { + if yyq256[14] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("vsphereVolume")) z.EncSendContainerState(codecSelfer_containerMapValue1234) @@ -4692,9 +4825,9 @@ func (x *PersistentVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr250 || yy2arr250 { + if yyr256 || yy2arr256 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq250[15] { + if yyq256[15] { if x.AzureDisk == nil { r.EncodeNil() } else { @@ -4704,7 +4837,7 @@ func (x *PersistentVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq250[15] { + if yyq256[15] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("azureDisk")) z.EncSendContainerState(codecSelfer_containerMapValue1234) @@ -4715,7 +4848,30 @@ func (x *PersistentVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr250 || yy2arr250 { + if yyr256 || yy2arr256 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq256[16] { + if x.PhotonPersistentDisk == nil { + r.EncodeNil() + } else { + x.PhotonPersistentDisk.CodecEncodeSelf(e) + } + } else { + r.EncodeNil() + } + } else { + if yyq256[16] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("photonPersistentDisk")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + if x.PhotonPersistentDisk == nil { + r.EncodeNil() + } else { + x.PhotonPersistentDisk.CodecEncodeSelf(e) + } + } + } + if yyr256 || yy2arr256 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -4728,25 +4884,25 @@ func (x *PersistentVolumeSource) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym267 := z.DecBinary() - _ = yym267 + yym274 := z.DecBinary() + _ = yym274 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct268 := r.ContainerType() - if yyct268 == codecSelferValueTypeMap1234 { - yyl268 := r.ReadMapStart() - if yyl268 == 0 { + yyct275 := r.ContainerType() + if yyct275 == codecSelferValueTypeMap1234 { + yyl275 := r.ReadMapStart() + if yyl275 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl268, d) + x.codecDecodeSelfFromMap(yyl275, d) } - } else if yyct268 == codecSelferValueTypeArray1234 { - yyl268 := r.ReadArrayStart() - if yyl268 == 0 { + } else if yyct275 == codecSelferValueTypeArray1234 { + yyl275 := r.ReadArrayStart() + if yyl275 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl268, d) + x.codecDecodeSelfFromArray(yyl275, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -4758,12 +4914,12 @@ func (x *PersistentVolumeSource) codecDecodeSelfFromMap(l int, d *codec1978.Deco var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys269Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys269Slc - var yyhl269 bool = l >= 0 - for yyj269 := 0; ; yyj269++ { - if yyhl269 { - if yyj269 >= l { + var yys276Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys276Slc + var yyhl276 bool = l >= 0 + for yyj276 := 0; ; yyj276++ { + if yyhl276 { + if yyj276 >= l { break } } else { @@ -4772,10 +4928,10 @@ func (x *PersistentVolumeSource) codecDecodeSelfFromMap(l int, d *codec1978.Deco } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys269Slc = r.DecodeBytes(yys269Slc, true, true) - yys269 := string(yys269Slc) + yys276Slc = r.DecodeBytes(yys276Slc, true, true) + yys276 := string(yys276Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys269 { + switch yys276 { case "gcePersistentDisk": if r.TryDecodeAsNil() { if x.GCEPersistentDisk != nil { @@ -4952,10 +5108,21 @@ func (x *PersistentVolumeSource) codecDecodeSelfFromMap(l int, d *codec1978.Deco } x.AzureDisk.CodecDecodeSelf(d) } + case "photonPersistentDisk": + if r.TryDecodeAsNil() { + if x.PhotonPersistentDisk != nil { + x.PhotonPersistentDisk = nil + } + } else { + if x.PhotonPersistentDisk == nil { + x.PhotonPersistentDisk = new(PhotonPersistentDiskVolumeSource) + } + x.PhotonPersistentDisk.CodecDecodeSelf(d) + } default: - z.DecStructFieldNotFound(-1, yys269) - } // end switch yys269 - } // end for yyj269 + z.DecStructFieldNotFound(-1, yys276) + } // end switch yys276 + } // end for yyj276 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -4963,16 +5130,16 @@ func (x *PersistentVolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.De var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj286 int - var yyb286 bool - var yyhl286 bool = l >= 0 - yyj286++ - if yyhl286 { - yyb286 = yyj286 > l + var yyj294 int + var yyb294 bool + var yyhl294 bool = l >= 0 + yyj294++ + if yyhl294 { + yyb294 = yyj294 > l } else { - yyb286 = r.CheckBreak() + yyb294 = r.CheckBreak() } - if yyb286 { + if yyb294 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -4987,13 +5154,13 @@ func (x *PersistentVolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.De } x.GCEPersistentDisk.CodecDecodeSelf(d) } - yyj286++ - if yyhl286 { - yyb286 = yyj286 > l + yyj294++ + if yyhl294 { + yyb294 = yyj294 > l } else { - yyb286 = r.CheckBreak() + yyb294 = r.CheckBreak() } - if yyb286 { + if yyb294 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -5008,13 +5175,13 @@ func (x *PersistentVolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.De } x.AWSElasticBlockStore.CodecDecodeSelf(d) } - yyj286++ - if yyhl286 { - yyb286 = yyj286 > l + yyj294++ + if yyhl294 { + yyb294 = yyj294 > l } else { - yyb286 = r.CheckBreak() + yyb294 = r.CheckBreak() } - if yyb286 { + if yyb294 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -5029,13 +5196,13 @@ func (x *PersistentVolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.De } x.HostPath.CodecDecodeSelf(d) } - yyj286++ - if yyhl286 { - yyb286 = yyj286 > l + yyj294++ + if yyhl294 { + yyb294 = yyj294 > l } else { - yyb286 = r.CheckBreak() + yyb294 = r.CheckBreak() } - if yyb286 { + if yyb294 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -5050,13 +5217,13 @@ func (x *PersistentVolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.De } x.Glusterfs.CodecDecodeSelf(d) } - yyj286++ - if yyhl286 { - yyb286 = yyj286 > l + yyj294++ + if yyhl294 { + yyb294 = yyj294 > l } else { - yyb286 = r.CheckBreak() + yyb294 = r.CheckBreak() } - if yyb286 { + if yyb294 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -5071,13 +5238,13 @@ func (x *PersistentVolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.De } x.NFS.CodecDecodeSelf(d) } - yyj286++ - if yyhl286 { - yyb286 = yyj286 > l + yyj294++ + if yyhl294 { + yyb294 = yyj294 > l } else { - yyb286 = r.CheckBreak() + yyb294 = r.CheckBreak() } - if yyb286 { + if yyb294 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -5092,13 +5259,13 @@ func (x *PersistentVolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.De } x.RBD.CodecDecodeSelf(d) } - yyj286++ - if yyhl286 { - yyb286 = yyj286 > l + yyj294++ + if yyhl294 { + yyb294 = yyj294 > l } else { - yyb286 = r.CheckBreak() + yyb294 = r.CheckBreak() } - if yyb286 { + if yyb294 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -5113,13 +5280,13 @@ func (x *PersistentVolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.De } x.Quobyte.CodecDecodeSelf(d) } - yyj286++ - if yyhl286 { - yyb286 = yyj286 > l + yyj294++ + if yyhl294 { + yyb294 = yyj294 > l } else { - yyb286 = r.CheckBreak() + yyb294 = r.CheckBreak() } - if yyb286 { + if yyb294 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -5134,13 +5301,13 @@ func (x *PersistentVolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.De } x.ISCSI.CodecDecodeSelf(d) } - yyj286++ - if yyhl286 { - yyb286 = yyj286 > l + yyj294++ + if yyhl294 { + yyb294 = yyj294 > l } else { - yyb286 = r.CheckBreak() + yyb294 = r.CheckBreak() } - if yyb286 { + if yyb294 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -5155,13 +5322,13 @@ func (x *PersistentVolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.De } x.FlexVolume.CodecDecodeSelf(d) } - yyj286++ - if yyhl286 { - yyb286 = yyj286 > l + yyj294++ + if yyhl294 { + yyb294 = yyj294 > l } else { - yyb286 = r.CheckBreak() + yyb294 = r.CheckBreak() } - if yyb286 { + if yyb294 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -5176,13 +5343,13 @@ func (x *PersistentVolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.De } x.Cinder.CodecDecodeSelf(d) } - yyj286++ - if yyhl286 { - yyb286 = yyj286 > l + yyj294++ + if yyhl294 { + yyb294 = yyj294 > l } else { - yyb286 = r.CheckBreak() + yyb294 = r.CheckBreak() } - if yyb286 { + if yyb294 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -5197,13 +5364,13 @@ func (x *PersistentVolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.De } x.CephFS.CodecDecodeSelf(d) } - yyj286++ - if yyhl286 { - yyb286 = yyj286 > l + yyj294++ + if yyhl294 { + yyb294 = yyj294 > l } else { - yyb286 = r.CheckBreak() + yyb294 = r.CheckBreak() } - if yyb286 { + if yyb294 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -5218,13 +5385,13 @@ func (x *PersistentVolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.De } x.FC.CodecDecodeSelf(d) } - yyj286++ - if yyhl286 { - yyb286 = yyj286 > l + yyj294++ + if yyhl294 { + yyb294 = yyj294 > l } else { - yyb286 = r.CheckBreak() + yyb294 = r.CheckBreak() } - if yyb286 { + if yyb294 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -5239,13 +5406,13 @@ func (x *PersistentVolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.De } x.Flocker.CodecDecodeSelf(d) } - yyj286++ - if yyhl286 { - yyb286 = yyj286 > l + yyj294++ + if yyhl294 { + yyb294 = yyj294 > l } else { - yyb286 = r.CheckBreak() + yyb294 = r.CheckBreak() } - if yyb286 { + if yyb294 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -5260,13 +5427,13 @@ func (x *PersistentVolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.De } x.AzureFile.CodecDecodeSelf(d) } - yyj286++ - if yyhl286 { - yyb286 = yyj286 > l + yyj294++ + if yyhl294 { + yyb294 = yyj294 > l } else { - yyb286 = r.CheckBreak() + yyb294 = r.CheckBreak() } - if yyb286 { + if yyb294 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -5281,13 +5448,13 @@ func (x *PersistentVolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.De } x.VsphereVolume.CodecDecodeSelf(d) } - yyj286++ - if yyhl286 { - yyb286 = yyj286 > l + yyj294++ + if yyhl294 { + yyb294 = yyj294 > l } else { - yyb286 = r.CheckBreak() + yyb294 = r.CheckBreak() } - if yyb286 { + if yyb294 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -5302,18 +5469,39 @@ func (x *PersistentVolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.De } x.AzureDisk.CodecDecodeSelf(d) } - for { - yyj286++ - if yyhl286 { - yyb286 = yyj286 > l - } else { - yyb286 = r.CheckBreak() + yyj294++ + if yyhl294 { + yyb294 = yyj294 > l + } else { + yyb294 = r.CheckBreak() + } + if yyb294 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + if x.PhotonPersistentDisk != nil { + x.PhotonPersistentDisk = nil } - if yyb286 { + } else { + if x.PhotonPersistentDisk == nil { + x.PhotonPersistentDisk = new(PhotonPersistentDiskVolumeSource) + } + x.PhotonPersistentDisk.CodecDecodeSelf(d) + } + for { + yyj294++ + if yyhl294 { + yyb294 = yyj294 > l + } else { + yyb294 = r.CheckBreak() + } + if yyb294 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj286-1, "") + z.DecStructFieldNotFound(yyj294-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -5325,34 +5513,34 @@ func (x *PersistentVolumeClaimVolumeSource) CodecEncodeSelf(e *codec1978.Encoder if x == nil { r.EncodeNil() } else { - yym303 := z.EncBinary() - _ = yym303 + yym312 := z.EncBinary() + _ = yym312 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - 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 { + yysep313 := !z.EncBinary() + yy2arr313 := z.EncBasicHandle().StructToArray + var yyq313 [2]bool + _, _, _ = yysep313, yyq313, yy2arr313 + const yyr313 bool = false + yyq313[1] = x.ReadOnly != false + var yynn313 int + if yyr313 || yy2arr313 { r.EncodeArrayStart(2) } else { - yynn304 = 1 - for _, b := range yyq304 { + yynn313 = 1 + for _, b := range yyq313 { if b { - yynn304++ + yynn313++ } } - r.EncodeMapStart(yynn304) - yynn304 = 0 + r.EncodeMapStart(yynn313) + yynn313 = 0 } - if yyr304 || yy2arr304 { + if yyr313 || yy2arr313 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym306 := z.EncBinary() - _ = yym306 + yym315 := z.EncBinary() + _ = yym315 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.ClaimName)) @@ -5361,18 +5549,18 @@ func (x *PersistentVolumeClaimVolumeSource) CodecEncodeSelf(e *codec1978.Encoder z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("claimName")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym307 := z.EncBinary() - _ = yym307 + yym316 := z.EncBinary() + _ = yym316 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.ClaimName)) } } - if yyr304 || yy2arr304 { + if yyr313 || yy2arr313 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq304[1] { - yym309 := z.EncBinary() - _ = yym309 + if yyq313[1] { + yym318 := z.EncBinary() + _ = yym318 if false { } else { r.EncodeBool(bool(x.ReadOnly)) @@ -5381,19 +5569,19 @@ func (x *PersistentVolumeClaimVolumeSource) CodecEncodeSelf(e *codec1978.Encoder r.EncodeBool(false) } } else { - if yyq304[1] { + if yyq313[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("readOnly")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym310 := z.EncBinary() - _ = yym310 + yym319 := z.EncBinary() + _ = yym319 if false { } else { r.EncodeBool(bool(x.ReadOnly)) } } } - if yyr304 || yy2arr304 { + if yyr313 || yy2arr313 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -5406,25 +5594,25 @@ func (x *PersistentVolumeClaimVolumeSource) CodecDecodeSelf(d *codec1978.Decoder var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym311 := z.DecBinary() - _ = yym311 + yym320 := z.DecBinary() + _ = yym320 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct312 := r.ContainerType() - if yyct312 == codecSelferValueTypeMap1234 { - yyl312 := r.ReadMapStart() - if yyl312 == 0 { + yyct321 := r.ContainerType() + if yyct321 == codecSelferValueTypeMap1234 { + yyl321 := r.ReadMapStart() + if yyl321 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl312, d) + x.codecDecodeSelfFromMap(yyl321, d) } - } else if yyct312 == codecSelferValueTypeArray1234 { - yyl312 := r.ReadArrayStart() - if yyl312 == 0 { + } else if yyct321 == codecSelferValueTypeArray1234 { + yyl321 := r.ReadArrayStart() + if yyl321 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl312, d) + x.codecDecodeSelfFromArray(yyl321, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -5436,12 +5624,12 @@ func (x *PersistentVolumeClaimVolumeSource) codecDecodeSelfFromMap(l int, d *cod var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys313Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys313Slc - var yyhl313 bool = l >= 0 - for yyj313 := 0; ; yyj313++ { - if yyhl313 { - if yyj313 >= l { + var yys322Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys322Slc + var yyhl322 bool = l >= 0 + for yyj322 := 0; ; yyj322++ { + if yyhl322 { + if yyj322 >= l { break } } else { @@ -5450,10 +5638,10 @@ func (x *PersistentVolumeClaimVolumeSource) codecDecodeSelfFromMap(l int, d *cod } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys313Slc = r.DecodeBytes(yys313Slc, true, true) - yys313 := string(yys313Slc) + yys322Slc = r.DecodeBytes(yys322Slc, true, true) + yys322 := string(yys322Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys313 { + switch yys322 { case "claimName": if r.TryDecodeAsNil() { x.ClaimName = "" @@ -5467,9 +5655,9 @@ func (x *PersistentVolumeClaimVolumeSource) codecDecodeSelfFromMap(l int, d *cod x.ReadOnly = bool(r.DecodeBool()) } default: - z.DecStructFieldNotFound(-1, yys313) - } // end switch yys313 - } // end for yyj313 + z.DecStructFieldNotFound(-1, yys322) + } // end switch yys322 + } // end for yyj322 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -5477,16 +5665,16 @@ func (x *PersistentVolumeClaimVolumeSource) codecDecodeSelfFromArray(l int, d *c var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj316 int - var yyb316 bool - var yyhl316 bool = l >= 0 - yyj316++ - if yyhl316 { - yyb316 = yyj316 > l + var yyj325 int + var yyb325 bool + var yyhl325 bool = l >= 0 + yyj325++ + if yyhl325 { + yyb325 = yyj325 > l } else { - yyb316 = r.CheckBreak() + yyb325 = r.CheckBreak() } - if yyb316 { + if yyb325 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -5496,13 +5684,13 @@ func (x *PersistentVolumeClaimVolumeSource) codecDecodeSelfFromArray(l int, d *c } else { x.ClaimName = string(r.DecodeString()) } - yyj316++ - if yyhl316 { - yyb316 = yyj316 > l + yyj325++ + if yyhl325 { + yyb325 = yyj325 > l } else { - yyb316 = r.CheckBreak() + yyb325 = r.CheckBreak() } - if yyb316 { + if yyb325 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -5513,17 +5701,17 @@ func (x *PersistentVolumeClaimVolumeSource) codecDecodeSelfFromArray(l int, d *c x.ReadOnly = bool(r.DecodeBool()) } for { - yyj316++ - if yyhl316 { - yyb316 = yyj316 > l + yyj325++ + if yyhl325 { + yyb325 = yyj325 > l } else { - yyb316 = r.CheckBreak() + yyb325 = r.CheckBreak() } - if yyb316 { + if yyb325 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj316-1, "") + z.DecStructFieldNotFound(yyj325-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -5535,39 +5723,39 @@ func (x *PersistentVolume) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym319 := z.EncBinary() - _ = yym319 + yym328 := z.EncBinary() + _ = yym328 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - 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 { + 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[2] = true + yyq329[3] = true + yyq329[4] = true + var yynn329 int + if yyr329 || yy2arr329 { r.EncodeArrayStart(5) } else { - yynn320 = 0 - for _, b := range yyq320 { + yynn329 = 0 + for _, b := range yyq329 { if b { - yynn320++ + yynn329++ } } - r.EncodeMapStart(yynn320) - yynn320 = 0 + r.EncodeMapStart(yynn329) + yynn329 = 0 } - if yyr320 || yy2arr320 { + if yyr329 || yy2arr329 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq320[0] { - yym322 := z.EncBinary() - _ = yym322 + if yyq329[0] { + yym331 := z.EncBinary() + _ = yym331 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) @@ -5576,23 +5764,23 @@ func (x *PersistentVolume) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq320[0] { + if yyq329[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym323 := z.EncBinary() - _ = yym323 + yym332 := z.EncBinary() + _ = yym332 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } - if yyr320 || yy2arr320 { + if yyr329 || yy2arr329 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq320[1] { - yym325 := z.EncBinary() - _ = yym325 + if yyq329[1] { + yym334 := z.EncBinary() + _ = yym334 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) @@ -5601,70 +5789,70 @@ func (x *PersistentVolume) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq320[1] { + if yyq329[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym326 := z.EncBinary() - _ = yym326 + yym335 := z.EncBinary() + _ = yym335 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } - if yyr320 || yy2arr320 { + if yyr329 || yy2arr329 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq320[2] { - yy328 := &x.ObjectMeta - yy328.CodecEncodeSelf(e) + if yyq329[2] { + yy337 := &x.ObjectMeta + yy337.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { - if yyq320[2] { + if yyq329[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy329 := &x.ObjectMeta - yy329.CodecEncodeSelf(e) + yy338 := &x.ObjectMeta + yy338.CodecEncodeSelf(e) } } - if yyr320 || yy2arr320 { + if yyr329 || yy2arr329 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq320[3] { - yy331 := &x.Spec - yy331.CodecEncodeSelf(e) + if yyq329[3] { + yy340 := &x.Spec + yy340.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { - if yyq320[3] { + if yyq329[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("spec")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy332 := &x.Spec - yy332.CodecEncodeSelf(e) + yy341 := &x.Spec + yy341.CodecEncodeSelf(e) } } - if yyr320 || yy2arr320 { + if yyr329 || yy2arr329 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq320[4] { - yy334 := &x.Status - yy334.CodecEncodeSelf(e) + if yyq329[4] { + yy343 := &x.Status + yy343.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { - if yyq320[4] { + if yyq329[4] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("status")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy335 := &x.Status - yy335.CodecEncodeSelf(e) + yy344 := &x.Status + yy344.CodecEncodeSelf(e) } } - if yyr320 || yy2arr320 { + if yyr329 || yy2arr329 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -5677,25 +5865,25 @@ func (x *PersistentVolume) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym336 := z.DecBinary() - _ = yym336 + yym345 := z.DecBinary() + _ = yym345 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct337 := r.ContainerType() - if yyct337 == codecSelferValueTypeMap1234 { - yyl337 := r.ReadMapStart() - if yyl337 == 0 { + yyct346 := r.ContainerType() + if yyct346 == codecSelferValueTypeMap1234 { + yyl346 := r.ReadMapStart() + if yyl346 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl337, d) + x.codecDecodeSelfFromMap(yyl346, d) } - } else if yyct337 == codecSelferValueTypeArray1234 { - yyl337 := r.ReadArrayStart() - if yyl337 == 0 { + } else if yyct346 == codecSelferValueTypeArray1234 { + yyl346 := r.ReadArrayStart() + if yyl346 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl337, d) + x.codecDecodeSelfFromArray(yyl346, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -5707,12 +5895,12 @@ func (x *PersistentVolume) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys338Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys338Slc - var yyhl338 bool = l >= 0 - for yyj338 := 0; ; yyj338++ { - if yyhl338 { - if yyj338 >= 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 { @@ -5721,10 +5909,10 @@ func (x *PersistentVolume) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys338Slc = r.DecodeBytes(yys338Slc, true, true) - yys338 := string(yys338Slc) + yys347Slc = r.DecodeBytes(yys347Slc, true, true) + yys347 := string(yys347Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys338 { + switch yys347 { case "kind": if r.TryDecodeAsNil() { x.Kind = "" @@ -5741,27 +5929,27 @@ func (x *PersistentVolume) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.ObjectMeta = ObjectMeta{} } else { - yyv341 := &x.ObjectMeta - yyv341.CodecDecodeSelf(d) + yyv350 := &x.ObjectMeta + yyv350.CodecDecodeSelf(d) } case "spec": if r.TryDecodeAsNil() { x.Spec = PersistentVolumeSpec{} } else { - yyv342 := &x.Spec - yyv342.CodecDecodeSelf(d) + yyv351 := &x.Spec + yyv351.CodecDecodeSelf(d) } case "status": if r.TryDecodeAsNil() { x.Status = PersistentVolumeStatus{} } else { - yyv343 := &x.Status - yyv343.CodecDecodeSelf(d) + yyv352 := &x.Status + yyv352.CodecDecodeSelf(d) } default: - z.DecStructFieldNotFound(-1, yys338) - } // end switch yys338 - } // end for yyj338 + z.DecStructFieldNotFound(-1, yys347) + } // end switch yys347 + } // end for yyj347 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -5769,16 +5957,16 @@ func (x *PersistentVolume) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj344 int - var yyb344 bool - var yyhl344 bool = l >= 0 - yyj344++ - if yyhl344 { - yyb344 = yyj344 > l + var yyj353 int + var yyb353 bool + var yyhl353 bool = l >= 0 + yyj353++ + if yyhl353 { + yyb353 = yyj353 > l } else { - yyb344 = r.CheckBreak() + yyb353 = r.CheckBreak() } - if yyb344 { + if yyb353 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -5788,13 +5976,13 @@ func (x *PersistentVolume) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) } else { x.Kind = string(r.DecodeString()) } - yyj344++ - if yyhl344 { - yyb344 = yyj344 > l + yyj353++ + if yyhl353 { + yyb353 = yyj353 > l } else { - yyb344 = r.CheckBreak() + yyb353 = r.CheckBreak() } - if yyb344 { + if yyb353 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -5804,13 +5992,13 @@ func (x *PersistentVolume) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) } else { x.APIVersion = string(r.DecodeString()) } - yyj344++ - if yyhl344 { - yyb344 = yyj344 > l + yyj353++ + if yyhl353 { + yyb353 = yyj353 > l } else { - yyb344 = r.CheckBreak() + yyb353 = r.CheckBreak() } - if yyb344 { + if yyb353 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -5818,16 +6006,16 @@ func (x *PersistentVolume) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) if r.TryDecodeAsNil() { x.ObjectMeta = ObjectMeta{} } else { - yyv347 := &x.ObjectMeta - yyv347.CodecDecodeSelf(d) + yyv356 := &x.ObjectMeta + yyv356.CodecDecodeSelf(d) } - yyj344++ - if yyhl344 { - yyb344 = yyj344 > l + yyj353++ + if yyhl353 { + yyb353 = yyj353 > l } else { - yyb344 = r.CheckBreak() + yyb353 = r.CheckBreak() } - if yyb344 { + if yyb353 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -5835,16 +6023,16 @@ func (x *PersistentVolume) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) if r.TryDecodeAsNil() { x.Spec = PersistentVolumeSpec{} } else { - yyv348 := &x.Spec - yyv348.CodecDecodeSelf(d) + yyv357 := &x.Spec + yyv357.CodecDecodeSelf(d) } - yyj344++ - if yyhl344 { - yyb344 = yyj344 > l + yyj353++ + if yyhl353 { + yyb353 = yyj353 > l } else { - yyb344 = r.CheckBreak() + yyb353 = r.CheckBreak() } - if yyb344 { + if yyb353 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -5852,21 +6040,21 @@ func (x *PersistentVolume) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) if r.TryDecodeAsNil() { x.Status = PersistentVolumeStatus{} } else { - yyv349 := &x.Status - yyv349.CodecDecodeSelf(d) + yyv358 := &x.Status + yyv358.CodecDecodeSelf(d) } for { - yyj344++ - if yyhl344 { - yyb344 = yyj344 > l + yyj353++ + if yyhl353 { + yyb353 = yyj353 > l } else { - yyb344 = r.CheckBreak() + yyb353 = r.CheckBreak() } - if yyb344 { + if yyb353 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj344-1, "") + z.DecStructFieldNotFound(yyj353-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -5878,49 +6066,50 @@ func (x *PersistentVolumeSpec) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym350 := z.EncBinary() - _ = yym350 + yym359 := z.EncBinary() + _ = yym359 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - 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) + yysep360 := !z.EncBinary() + yy2arr360 := z.EncBasicHandle().StructToArray + var yyq360 [21]bool + _, _, _ = yysep360, yyq360, yy2arr360 + const yyr360 bool = false + yyq360[1] = x.PersistentVolumeSource.GCEPersistentDisk != nil && x.GCEPersistentDisk != nil + yyq360[2] = x.PersistentVolumeSource.AWSElasticBlockStore != nil && x.AWSElasticBlockStore != nil + yyq360[3] = x.PersistentVolumeSource.HostPath != nil && x.HostPath != nil + yyq360[4] = x.PersistentVolumeSource.Glusterfs != nil && x.Glusterfs != nil + yyq360[5] = x.PersistentVolumeSource.NFS != nil && x.NFS != nil + yyq360[6] = x.PersistentVolumeSource.RBD != nil && x.RBD != nil + yyq360[7] = x.PersistentVolumeSource.Quobyte != nil && x.Quobyte != nil + yyq360[8] = x.PersistentVolumeSource.ISCSI != nil && x.ISCSI != nil + yyq360[9] = x.PersistentVolumeSource.FlexVolume != nil && x.FlexVolume != nil + yyq360[10] = x.PersistentVolumeSource.Cinder != nil && x.Cinder != nil + yyq360[11] = x.PersistentVolumeSource.CephFS != nil && x.CephFS != nil + yyq360[12] = x.PersistentVolumeSource.FC != nil && x.FC != nil + yyq360[13] = x.PersistentVolumeSource.Flocker != nil && x.Flocker != nil + yyq360[14] = x.PersistentVolumeSource.AzureFile != nil && x.AzureFile != nil + yyq360[15] = x.PersistentVolumeSource.VsphereVolume != nil && x.VsphereVolume != nil + yyq360[16] = x.PersistentVolumeSource.AzureDisk != nil && x.AzureDisk != nil + yyq360[17] = x.PersistentVolumeSource.PhotonPersistentDisk != nil && x.PhotonPersistentDisk != nil + yyq360[18] = len(x.AccessModes) != 0 + yyq360[19] = x.ClaimRef != nil + yyq360[20] = x.PersistentVolumeReclaimPolicy != "" + var yynn360 int + if yyr360 || yy2arr360 { + r.EncodeArrayStart(21) } else { - yynn351 = 1 - for _, b := range yyq351 { + yynn360 = 1 + for _, b := range yyq360 { if b { - yynn351++ + yynn360++ } } - r.EncodeMapStart(yynn351) - yynn351 = 0 + r.EncodeMapStart(yynn360) + yynn360 = 0 } - if yyr351 || yy2arr351 { + if yyr360 || yy2arr360 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.Capacity == nil { r.EncodeNil() @@ -5937,573 +6126,573 @@ func (x *PersistentVolumeSpec) CodecEncodeSelf(e *codec1978.Encoder) { x.Capacity.CodecEncodeSelf(e) } } - var yyn353 bool - if x.PersistentVolumeSource.GCEPersistentDisk == nil { - yyn353 = true - goto LABEL353 - } - LABEL353: - if yyr351 || yy2arr351 { - if yyn353 { - r.EncodeNil() - } else { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq351[1] { - if x.GCEPersistentDisk == nil { - r.EncodeNil() - } else { - x.GCEPersistentDisk.CodecEncodeSelf(e) - } - } else { - r.EncodeNil() - } - } - } else { - if yyq351[1] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("gcePersistentDisk")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - if yyn353 { - r.EncodeNil() - } else { - if x.GCEPersistentDisk == nil { - r.EncodeNil() - } else { - x.GCEPersistentDisk.CodecEncodeSelf(e) - } - } - } - } - var yyn354 bool - if x.PersistentVolumeSource.AWSElasticBlockStore == nil { - yyn354 = true - goto LABEL354 - } - LABEL354: - if yyr351 || yy2arr351 { - if yyn354 { - r.EncodeNil() - } else { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq351[2] { - if x.AWSElasticBlockStore == nil { - r.EncodeNil() - } else { - x.AWSElasticBlockStore.CodecEncodeSelf(e) - } - } else { - r.EncodeNil() - } - } - } else { - if yyq351[2] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("awsElasticBlockStore")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - if yyn354 { - r.EncodeNil() - } else { - if x.AWSElasticBlockStore == nil { - r.EncodeNil() - } else { - x.AWSElasticBlockStore.CodecEncodeSelf(e) - } - } - } - } - var yyn355 bool - if x.PersistentVolumeSource.HostPath == nil { - yyn355 = true - goto LABEL355 - } - LABEL355: - if yyr351 || yy2arr351 { - if yyn355 { - r.EncodeNil() - } else { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq351[3] { - if x.HostPath == nil { - r.EncodeNil() - } else { - x.HostPath.CodecEncodeSelf(e) - } - } else { - r.EncodeNil() - } - } - } else { - if yyq351[3] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("hostPath")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - if yyn355 { - r.EncodeNil() - } else { - if x.HostPath == nil { - r.EncodeNil() - } else { - x.HostPath.CodecEncodeSelf(e) - } - } - } - } - var yyn356 bool - if x.PersistentVolumeSource.Glusterfs == nil { - yyn356 = true - goto LABEL356 - } - LABEL356: - if yyr351 || yy2arr351 { - if yyn356 { - r.EncodeNil() - } else { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq351[4] { - if x.Glusterfs == nil { - r.EncodeNil() - } else { - x.Glusterfs.CodecEncodeSelf(e) - } - } else { - r.EncodeNil() - } - } - } else { - if yyq351[4] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("glusterfs")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - if yyn356 { - r.EncodeNil() - } else { - if x.Glusterfs == nil { - r.EncodeNil() - } else { - x.Glusterfs.CodecEncodeSelf(e) - } - } - } - } - var yyn357 bool - if x.PersistentVolumeSource.NFS == nil { - yyn357 = true - goto LABEL357 - } - LABEL357: - if yyr351 || yy2arr351 { - if yyn357 { - r.EncodeNil() - } else { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq351[5] { - if x.NFS == nil { - r.EncodeNil() - } else { - x.NFS.CodecEncodeSelf(e) - } - } else { - r.EncodeNil() - } - } - } else { - if yyq351[5] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("nfs")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - if yyn357 { - r.EncodeNil() - } else { - if x.NFS == nil { - r.EncodeNil() - } else { - x.NFS.CodecEncodeSelf(e) - } - } - } - } - var yyn358 bool - if x.PersistentVolumeSource.RBD == nil { - yyn358 = true - goto LABEL358 - } - LABEL358: - if yyr351 || yy2arr351 { - if yyn358 { - r.EncodeNil() - } else { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq351[6] { - if x.RBD == nil { - r.EncodeNil() - } else { - x.RBD.CodecEncodeSelf(e) - } - } else { - r.EncodeNil() - } - } - } else { - if yyq351[6] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("rbd")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - if yyn358 { - r.EncodeNil() - } else { - if x.RBD == nil { - r.EncodeNil() - } else { - x.RBD.CodecEncodeSelf(e) - } - } - } - } - 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 { - yyn360 = true - goto LABEL360 - } - LABEL360: - if yyr351 || yy2arr351 { - if yyn360 { - r.EncodeNil() - } else { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq351[8] { - if x.ISCSI == nil { - r.EncodeNil() - } else { - x.ISCSI.CodecEncodeSelf(e) - } - } else { - r.EncodeNil() - } - } - } else { - if yyq351[8] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("iscsi")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - if yyn360 { - r.EncodeNil() - } else { - if x.ISCSI == nil { - r.EncodeNil() - } else { - x.ISCSI.CodecEncodeSelf(e) - } - } - } - } - var yyn361 bool - if x.PersistentVolumeSource.FlexVolume == nil { - yyn361 = true - goto LABEL361 - } - LABEL361: - if yyr351 || yy2arr351 { - if yyn361 { - r.EncodeNil() - } else { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq351[9] { - if x.FlexVolume == nil { - r.EncodeNil() - } else { - x.FlexVolume.CodecEncodeSelf(e) - } - } else { - r.EncodeNil() - } - } - } else { - if yyq351[9] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("flexVolume")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - if yyn361 { - r.EncodeNil() - } else { - if x.FlexVolume == nil { - r.EncodeNil() - } else { - x.FlexVolume.CodecEncodeSelf(e) - } - } - } - } var yyn362 bool - if x.PersistentVolumeSource.Cinder == nil { + if x.PersistentVolumeSource.GCEPersistentDisk == nil { yyn362 = true goto LABEL362 } LABEL362: - if yyr351 || yy2arr351 { + if yyr360 || yy2arr360 { if yyn362 { r.EncodeNil() } else { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq351[10] { - if x.Cinder == nil { + if yyq360[1] { + if x.GCEPersistentDisk == nil { r.EncodeNil() } else { - x.Cinder.CodecEncodeSelf(e) + x.GCEPersistentDisk.CodecEncodeSelf(e) } } else { r.EncodeNil() } } } else { - if yyq351[10] { + if yyq360[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("cinder")) + r.EncodeString(codecSelferC_UTF81234, string("gcePersistentDisk")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if yyn362 { r.EncodeNil() } else { - if x.Cinder == nil { + if x.GCEPersistentDisk == nil { r.EncodeNil() } else { - x.Cinder.CodecEncodeSelf(e) + x.GCEPersistentDisk.CodecEncodeSelf(e) } } } } var yyn363 bool - if x.PersistentVolumeSource.CephFS == nil { + if x.PersistentVolumeSource.AWSElasticBlockStore == nil { yyn363 = true goto LABEL363 } LABEL363: - if yyr351 || yy2arr351 { + if yyr360 || yy2arr360 { if yyn363 { r.EncodeNil() } else { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq351[11] { - if x.CephFS == nil { + if yyq360[2] { + if x.AWSElasticBlockStore == nil { r.EncodeNil() } else { - x.CephFS.CodecEncodeSelf(e) + x.AWSElasticBlockStore.CodecEncodeSelf(e) } } else { r.EncodeNil() } } } else { - if yyq351[11] { + if yyq360[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("cephfs")) + r.EncodeString(codecSelferC_UTF81234, string("awsElasticBlockStore")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if yyn363 { r.EncodeNil() } else { - if x.CephFS == nil { + if x.AWSElasticBlockStore == nil { r.EncodeNil() } else { - x.CephFS.CodecEncodeSelf(e) + x.AWSElasticBlockStore.CodecEncodeSelf(e) } } } } var yyn364 bool - if x.PersistentVolumeSource.FC == nil { + if x.PersistentVolumeSource.HostPath == nil { yyn364 = true goto LABEL364 } LABEL364: - if yyr351 || yy2arr351 { + if yyr360 || yy2arr360 { if yyn364 { r.EncodeNil() } else { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq351[12] { - if x.FC == nil { + if yyq360[3] { + if x.HostPath == nil { r.EncodeNil() } else { - x.FC.CodecEncodeSelf(e) + x.HostPath.CodecEncodeSelf(e) } } else { r.EncodeNil() } } } else { - if yyq351[12] { + if yyq360[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("fc")) + r.EncodeString(codecSelferC_UTF81234, string("hostPath")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if yyn364 { r.EncodeNil() } else { - if x.FC == nil { + if x.HostPath == nil { r.EncodeNil() } else { - x.FC.CodecEncodeSelf(e) + x.HostPath.CodecEncodeSelf(e) } } } } var yyn365 bool - if x.PersistentVolumeSource.Flocker == nil { + if x.PersistentVolumeSource.Glusterfs == nil { yyn365 = true goto LABEL365 } LABEL365: - if yyr351 || yy2arr351 { + if yyr360 || yy2arr360 { if yyn365 { r.EncodeNil() } else { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq351[13] { - if x.Flocker == nil { + if yyq360[4] { + if x.Glusterfs == nil { r.EncodeNil() } else { - x.Flocker.CodecEncodeSelf(e) + x.Glusterfs.CodecEncodeSelf(e) } } else { r.EncodeNil() } } } else { - if yyq351[13] { + if yyq360[4] { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("flocker")) + r.EncodeString(codecSelferC_UTF81234, string("glusterfs")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if yyn365 { r.EncodeNil() } else { - if x.Flocker == nil { + if x.Glusterfs == nil { r.EncodeNil() } else { - x.Flocker.CodecEncodeSelf(e) + x.Glusterfs.CodecEncodeSelf(e) } } } } var yyn366 bool - if x.PersistentVolumeSource.AzureFile == nil { + if x.PersistentVolumeSource.NFS == nil { yyn366 = true goto LABEL366 } LABEL366: - if yyr351 || yy2arr351 { + if yyr360 || yy2arr360 { if yyn366 { r.EncodeNil() } else { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq351[14] { - if x.AzureFile == nil { + if yyq360[5] { + if x.NFS == nil { r.EncodeNil() } else { - x.AzureFile.CodecEncodeSelf(e) + x.NFS.CodecEncodeSelf(e) } } else { r.EncodeNil() } } } else { - if yyq351[14] { + if yyq360[5] { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("azureFile")) + r.EncodeString(codecSelferC_UTF81234, string("nfs")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if yyn366 { r.EncodeNil() } else { - if x.AzureFile == nil { + if x.NFS == nil { r.EncodeNil() } else { - x.AzureFile.CodecEncodeSelf(e) + x.NFS.CodecEncodeSelf(e) } } } } var yyn367 bool - if x.PersistentVolumeSource.VsphereVolume == nil { + if x.PersistentVolumeSource.RBD == nil { yyn367 = true goto LABEL367 } LABEL367: - if yyr351 || yy2arr351 { + if yyr360 || yy2arr360 { if yyn367 { r.EncodeNil() } else { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq351[15] { - if x.VsphereVolume == nil { + if yyq360[6] { + if x.RBD == nil { r.EncodeNil() } else { - x.VsphereVolume.CodecEncodeSelf(e) + x.RBD.CodecEncodeSelf(e) } } else { r.EncodeNil() } } } else { - if yyq351[15] { + if yyq360[6] { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("vsphereVolume")) + r.EncodeString(codecSelferC_UTF81234, string("rbd")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if yyn367 { r.EncodeNil() } else { - if x.VsphereVolume == nil { + if x.RBD == nil { r.EncodeNil() } else { - x.VsphereVolume.CodecEncodeSelf(e) + x.RBD.CodecEncodeSelf(e) } } } } var yyn368 bool - if x.PersistentVolumeSource.AzureDisk == nil { + if x.PersistentVolumeSource.Quobyte == nil { yyn368 = true goto LABEL368 } LABEL368: - if yyr351 || yy2arr351 { + if yyr360 || yy2arr360 { if yyn368 { r.EncodeNil() } else { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq351[16] { + if yyq360[7] { + if x.Quobyte == nil { + r.EncodeNil() + } else { + x.Quobyte.CodecEncodeSelf(e) + } + } else { + r.EncodeNil() + } + } + } else { + if yyq360[7] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("quobyte")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + if yyn368 { + r.EncodeNil() + } else { + if x.Quobyte == nil { + r.EncodeNil() + } else { + x.Quobyte.CodecEncodeSelf(e) + } + } + } + } + var yyn369 bool + if x.PersistentVolumeSource.ISCSI == nil { + yyn369 = true + goto LABEL369 + } + LABEL369: + if yyr360 || yy2arr360 { + if yyn369 { + r.EncodeNil() + } else { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq360[8] { + if x.ISCSI == nil { + r.EncodeNil() + } else { + x.ISCSI.CodecEncodeSelf(e) + } + } else { + r.EncodeNil() + } + } + } else { + if yyq360[8] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("iscsi")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + if yyn369 { + r.EncodeNil() + } else { + if x.ISCSI == nil { + r.EncodeNil() + } else { + x.ISCSI.CodecEncodeSelf(e) + } + } + } + } + var yyn370 bool + if x.PersistentVolumeSource.FlexVolume == nil { + yyn370 = true + goto LABEL370 + } + LABEL370: + if yyr360 || yy2arr360 { + if yyn370 { + r.EncodeNil() + } else { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq360[9] { + if x.FlexVolume == nil { + r.EncodeNil() + } else { + x.FlexVolume.CodecEncodeSelf(e) + } + } else { + r.EncodeNil() + } + } + } else { + if yyq360[9] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("flexVolume")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + if yyn370 { + r.EncodeNil() + } else { + if x.FlexVolume == nil { + r.EncodeNil() + } else { + x.FlexVolume.CodecEncodeSelf(e) + } + } + } + } + var yyn371 bool + if x.PersistentVolumeSource.Cinder == nil { + yyn371 = true + goto LABEL371 + } + LABEL371: + if yyr360 || yy2arr360 { + if yyn371 { + r.EncodeNil() + } else { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq360[10] { + if x.Cinder == nil { + r.EncodeNil() + } else { + x.Cinder.CodecEncodeSelf(e) + } + } else { + r.EncodeNil() + } + } + } else { + if yyq360[10] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("cinder")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + if yyn371 { + r.EncodeNil() + } else { + if x.Cinder == nil { + r.EncodeNil() + } else { + x.Cinder.CodecEncodeSelf(e) + } + } + } + } + var yyn372 bool + if x.PersistentVolumeSource.CephFS == nil { + yyn372 = true + goto LABEL372 + } + LABEL372: + if yyr360 || yy2arr360 { + if yyn372 { + r.EncodeNil() + } else { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq360[11] { + if x.CephFS == nil { + r.EncodeNil() + } else { + x.CephFS.CodecEncodeSelf(e) + } + } else { + r.EncodeNil() + } + } + } else { + if yyq360[11] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("cephfs")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + if yyn372 { + r.EncodeNil() + } else { + if x.CephFS == nil { + r.EncodeNil() + } else { + x.CephFS.CodecEncodeSelf(e) + } + } + } + } + var yyn373 bool + if x.PersistentVolumeSource.FC == nil { + yyn373 = true + goto LABEL373 + } + LABEL373: + if yyr360 || yy2arr360 { + if yyn373 { + r.EncodeNil() + } else { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq360[12] { + if x.FC == nil { + r.EncodeNil() + } else { + x.FC.CodecEncodeSelf(e) + } + } else { + r.EncodeNil() + } + } + } else { + if yyq360[12] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("fc")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + if yyn373 { + r.EncodeNil() + } else { + if x.FC == nil { + r.EncodeNil() + } else { + x.FC.CodecEncodeSelf(e) + } + } + } + } + var yyn374 bool + if x.PersistentVolumeSource.Flocker == nil { + yyn374 = true + goto LABEL374 + } + LABEL374: + if yyr360 || yy2arr360 { + if yyn374 { + r.EncodeNil() + } else { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq360[13] { + if x.Flocker == nil { + r.EncodeNil() + } else { + x.Flocker.CodecEncodeSelf(e) + } + } else { + r.EncodeNil() + } + } + } else { + if yyq360[13] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("flocker")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + if yyn374 { + r.EncodeNil() + } else { + if x.Flocker == nil { + r.EncodeNil() + } else { + x.Flocker.CodecEncodeSelf(e) + } + } + } + } + var yyn375 bool + if x.PersistentVolumeSource.AzureFile == nil { + yyn375 = true + goto LABEL375 + } + LABEL375: + if yyr360 || yy2arr360 { + if yyn375 { + r.EncodeNil() + } else { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq360[14] { + if x.AzureFile == nil { + r.EncodeNil() + } else { + x.AzureFile.CodecEncodeSelf(e) + } + } else { + r.EncodeNil() + } + } + } else { + if yyq360[14] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("azureFile")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + if yyn375 { + r.EncodeNil() + } else { + if x.AzureFile == nil { + r.EncodeNil() + } else { + x.AzureFile.CodecEncodeSelf(e) + } + } + } + } + var yyn376 bool + if x.PersistentVolumeSource.VsphereVolume == nil { + yyn376 = true + goto LABEL376 + } + LABEL376: + if yyr360 || yy2arr360 { + if yyn376 { + r.EncodeNil() + } else { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq360[15] { + if x.VsphereVolume == nil { + r.EncodeNil() + } else { + x.VsphereVolume.CodecEncodeSelf(e) + } + } else { + r.EncodeNil() + } + } + } else { + if yyq360[15] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("vsphereVolume")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + if yyn376 { + r.EncodeNil() + } else { + if x.VsphereVolume == nil { + r.EncodeNil() + } else { + x.VsphereVolume.CodecEncodeSelf(e) + } + } + } + } + var yyn377 bool + if x.PersistentVolumeSource.AzureDisk == nil { + yyn377 = true + goto LABEL377 + } + LABEL377: + if yyr360 || yy2arr360 { + if yyn377 { + r.EncodeNil() + } else { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq360[16] { if x.AzureDisk == nil { r.EncodeNil() } else { @@ -6514,11 +6703,11 @@ func (x *PersistentVolumeSpec) CodecEncodeSelf(e *codec1978.Encoder) { } } } else { - if yyq351[16] { + if yyq360[16] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("azureDisk")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - if yyn368 { + if yyn377 { r.EncodeNil() } else { if x.AzureDisk == nil { @@ -6529,14 +6718,51 @@ func (x *PersistentVolumeSpec) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr351 || yy2arr351 { + var yyn378 bool + if x.PersistentVolumeSource.PhotonPersistentDisk == nil { + yyn378 = true + goto LABEL378 + } + LABEL378: + if yyr360 || yy2arr360 { + if yyn378 { + r.EncodeNil() + } else { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq360[17] { + if x.PhotonPersistentDisk == nil { + r.EncodeNil() + } else { + x.PhotonPersistentDisk.CodecEncodeSelf(e) + } + } else { + r.EncodeNil() + } + } + } else { + if yyq360[17] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("photonPersistentDisk")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + if yyn378 { + r.EncodeNil() + } else { + if x.PhotonPersistentDisk == nil { + r.EncodeNil() + } else { + x.PhotonPersistentDisk.CodecEncodeSelf(e) + } + } + } + } + if yyr360 || yy2arr360 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq351[17] { + if yyq360[18] { if x.AccessModes == nil { r.EncodeNil() } else { - yym370 := z.EncBinary() - _ = yym370 + yym380 := z.EncBinary() + _ = yym380 if false { } else { h.encSlicePersistentVolumeAccessMode(([]PersistentVolumeAccessMode)(x.AccessModes), e) @@ -6546,15 +6772,15 @@ func (x *PersistentVolumeSpec) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq351[17] { + if yyq360[18] { 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 + yym381 := z.EncBinary() + _ = yym381 if false { } else { h.encSlicePersistentVolumeAccessMode(([]PersistentVolumeAccessMode)(x.AccessModes), e) @@ -6562,9 +6788,9 @@ func (x *PersistentVolumeSpec) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr351 || yy2arr351 { + if yyr360 || yy2arr360 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq351[18] { + if yyq360[19] { if x.ClaimRef == nil { r.EncodeNil() } else { @@ -6574,7 +6800,7 @@ func (x *PersistentVolumeSpec) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq351[18] { + if yyq360[19] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("claimRef")) z.EncSendContainerState(codecSelfer_containerMapValue1234) @@ -6585,22 +6811,22 @@ func (x *PersistentVolumeSpec) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr351 || yy2arr351 { + if yyr360 || yy2arr360 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq351[19] { + if yyq360[20] { x.PersistentVolumeReclaimPolicy.CodecEncodeSelf(e) } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq351[19] { + if yyq360[20] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("persistentVolumeReclaimPolicy")) z.EncSendContainerState(codecSelfer_containerMapValue1234) x.PersistentVolumeReclaimPolicy.CodecEncodeSelf(e) } } - if yyr351 || yy2arr351 { + if yyr360 || yy2arr360 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -6613,25 +6839,25 @@ func (x *PersistentVolumeSpec) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym374 := z.DecBinary() - _ = yym374 + yym384 := z.DecBinary() + _ = yym384 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct375 := r.ContainerType() - if yyct375 == codecSelferValueTypeMap1234 { - yyl375 := r.ReadMapStart() - if yyl375 == 0 { + yyct385 := r.ContainerType() + if yyct385 == codecSelferValueTypeMap1234 { + yyl385 := r.ReadMapStart() + if yyl385 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl375, d) + x.codecDecodeSelfFromMap(yyl385, d) } - } else if yyct375 == codecSelferValueTypeArray1234 { - yyl375 := r.ReadArrayStart() - if yyl375 == 0 { + } else if yyct385 == codecSelferValueTypeArray1234 { + yyl385 := r.ReadArrayStart() + if yyl385 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl375, d) + x.codecDecodeSelfFromArray(yyl385, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -6643,12 +6869,12 @@ func (x *PersistentVolumeSpec) codecDecodeSelfFromMap(l int, d *codec1978.Decode var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys376Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys376Slc - var yyhl376 bool = l >= 0 - for yyj376 := 0; ; yyj376++ { - if yyhl376 { - if yyj376 >= l { + var yys386Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys386Slc + var yyhl386 bool = l >= 0 + for yyj386 := 0; ; yyj386++ { + if yyhl386 { + if yyj386 >= l { break } } else { @@ -6657,16 +6883,16 @@ func (x *PersistentVolumeSpec) codecDecodeSelfFromMap(l int, d *codec1978.Decode } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys376Slc = r.DecodeBytes(yys376Slc, true, true) - yys376 := string(yys376Slc) + yys386Slc = r.DecodeBytes(yys386Slc, true, true) + yys386 := string(yys386Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys376 { + switch yys386 { case "capacity": if r.TryDecodeAsNil() { x.Capacity = nil } else { - yyv377 := &x.Capacity - yyv377.CodecDecodeSelf(d) + yyv387 := &x.Capacity + yyv387.CodecDecodeSelf(d) } case "gcePersistentDisk": if x.PersistentVolumeSource.GCEPersistentDisk == nil { @@ -6892,16 +7118,30 @@ func (x *PersistentVolumeSpec) codecDecodeSelfFromMap(l int, d *codec1978.Decode } x.AzureDisk.CodecDecodeSelf(d) } + case "photonPersistentDisk": + if x.PersistentVolumeSource.PhotonPersistentDisk == nil { + x.PersistentVolumeSource.PhotonPersistentDisk = new(PhotonPersistentDiskVolumeSource) + } + if r.TryDecodeAsNil() { + if x.PhotonPersistentDisk != nil { + x.PhotonPersistentDisk = nil + } + } else { + if x.PhotonPersistentDisk == nil { + x.PhotonPersistentDisk = new(PhotonPersistentDiskVolumeSource) + } + x.PhotonPersistentDisk.CodecDecodeSelf(d) + } case "accessModes": if r.TryDecodeAsNil() { x.AccessModes = nil } else { - yyv394 := &x.AccessModes - yym395 := z.DecBinary() - _ = yym395 + yyv405 := &x.AccessModes + yym406 := z.DecBinary() + _ = yym406 if false { } else { - h.decSlicePersistentVolumeAccessMode((*[]PersistentVolumeAccessMode)(yyv394), d) + h.decSlicePersistentVolumeAccessMode((*[]PersistentVolumeAccessMode)(yyv405), d) } } case "claimRef": @@ -6922,9 +7162,9 @@ func (x *PersistentVolumeSpec) codecDecodeSelfFromMap(l int, d *codec1978.Decode x.PersistentVolumeReclaimPolicy = PersistentVolumeReclaimPolicy(r.DecodeString()) } default: - z.DecStructFieldNotFound(-1, yys376) - } // end switch yys376 - } // end for yyj376 + z.DecStructFieldNotFound(-1, yys386) + } // end switch yys386 + } // end for yyj386 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -6932,16 +7172,16 @@ func (x *PersistentVolumeSpec) codecDecodeSelfFromArray(l int, d *codec1978.Deco var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj398 int - var yyb398 bool - var yyhl398 bool = l >= 0 - yyj398++ - if yyhl398 { - yyb398 = yyj398 > l + var yyj409 int + var yyb409 bool + var yyhl409 bool = l >= 0 + yyj409++ + if yyhl409 { + yyb409 = yyj409 > l } else { - yyb398 = r.CheckBreak() + yyb409 = r.CheckBreak() } - if yyb398 { + if yyb409 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -6949,19 +7189,19 @@ func (x *PersistentVolumeSpec) codecDecodeSelfFromArray(l int, d *codec1978.Deco if r.TryDecodeAsNil() { x.Capacity = nil } else { - yyv399 := &x.Capacity - yyv399.CodecDecodeSelf(d) + yyv410 := &x.Capacity + yyv410.CodecDecodeSelf(d) } if x.PersistentVolumeSource.GCEPersistentDisk == nil { x.PersistentVolumeSource.GCEPersistentDisk = new(GCEPersistentDiskVolumeSource) } - yyj398++ - if yyhl398 { - yyb398 = yyj398 > l + yyj409++ + if yyhl409 { + yyb409 = yyj409 > l } else { - yyb398 = r.CheckBreak() + yyb409 = r.CheckBreak() } - if yyb398 { + if yyb409 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -6979,13 +7219,13 @@ func (x *PersistentVolumeSpec) codecDecodeSelfFromArray(l int, d *codec1978.Deco if x.PersistentVolumeSource.AWSElasticBlockStore == nil { x.PersistentVolumeSource.AWSElasticBlockStore = new(AWSElasticBlockStoreVolumeSource) } - yyj398++ - if yyhl398 { - yyb398 = yyj398 > l + yyj409++ + if yyhl409 { + yyb409 = yyj409 > l } else { - yyb398 = r.CheckBreak() + yyb409 = r.CheckBreak() } - if yyb398 { + if yyb409 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -7003,13 +7243,13 @@ func (x *PersistentVolumeSpec) codecDecodeSelfFromArray(l int, d *codec1978.Deco if x.PersistentVolumeSource.HostPath == nil { x.PersistentVolumeSource.HostPath = new(HostPathVolumeSource) } - yyj398++ - if yyhl398 { - yyb398 = yyj398 > l + yyj409++ + if yyhl409 { + yyb409 = yyj409 > l } else { - yyb398 = r.CheckBreak() + yyb409 = r.CheckBreak() } - if yyb398 { + if yyb409 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -7027,13 +7267,13 @@ func (x *PersistentVolumeSpec) codecDecodeSelfFromArray(l int, d *codec1978.Deco if x.PersistentVolumeSource.Glusterfs == nil { x.PersistentVolumeSource.Glusterfs = new(GlusterfsVolumeSource) } - yyj398++ - if yyhl398 { - yyb398 = yyj398 > l + yyj409++ + if yyhl409 { + yyb409 = yyj409 > l } else { - yyb398 = r.CheckBreak() + yyb409 = r.CheckBreak() } - if yyb398 { + if yyb409 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -7051,13 +7291,13 @@ func (x *PersistentVolumeSpec) codecDecodeSelfFromArray(l int, d *codec1978.Deco if x.PersistentVolumeSource.NFS == nil { x.PersistentVolumeSource.NFS = new(NFSVolumeSource) } - yyj398++ - if yyhl398 { - yyb398 = yyj398 > l + yyj409++ + if yyhl409 { + yyb409 = yyj409 > l } else { - yyb398 = r.CheckBreak() + yyb409 = r.CheckBreak() } - if yyb398 { + if yyb409 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -7075,13 +7315,13 @@ func (x *PersistentVolumeSpec) codecDecodeSelfFromArray(l int, d *codec1978.Deco if x.PersistentVolumeSource.RBD == nil { x.PersistentVolumeSource.RBD = new(RBDVolumeSource) } - yyj398++ - if yyhl398 { - yyb398 = yyj398 > l + yyj409++ + if yyhl409 { + yyb409 = yyj409 > l } else { - yyb398 = r.CheckBreak() + yyb409 = r.CheckBreak() } - if yyb398 { + if yyb409 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -7099,13 +7339,13 @@ func (x *PersistentVolumeSpec) codecDecodeSelfFromArray(l int, d *codec1978.Deco if x.PersistentVolumeSource.Quobyte == nil { x.PersistentVolumeSource.Quobyte = new(QuobyteVolumeSource) } - yyj398++ - if yyhl398 { - yyb398 = yyj398 > l + yyj409++ + if yyhl409 { + yyb409 = yyj409 > l } else { - yyb398 = r.CheckBreak() + yyb409 = r.CheckBreak() } - if yyb398 { + if yyb409 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -7123,13 +7363,13 @@ func (x *PersistentVolumeSpec) codecDecodeSelfFromArray(l int, d *codec1978.Deco if x.PersistentVolumeSource.ISCSI == nil { x.PersistentVolumeSource.ISCSI = new(ISCSIVolumeSource) } - yyj398++ - if yyhl398 { - yyb398 = yyj398 > l + yyj409++ + if yyhl409 { + yyb409 = yyj409 > l } else { - yyb398 = r.CheckBreak() + yyb409 = r.CheckBreak() } - if yyb398 { + if yyb409 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -7147,13 +7387,13 @@ func (x *PersistentVolumeSpec) codecDecodeSelfFromArray(l int, d *codec1978.Deco if x.PersistentVolumeSource.FlexVolume == nil { x.PersistentVolumeSource.FlexVolume = new(FlexVolumeSource) } - yyj398++ - if yyhl398 { - yyb398 = yyj398 > l + yyj409++ + if yyhl409 { + yyb409 = yyj409 > l } else { - yyb398 = r.CheckBreak() + yyb409 = r.CheckBreak() } - if yyb398 { + if yyb409 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -7171,13 +7411,13 @@ func (x *PersistentVolumeSpec) codecDecodeSelfFromArray(l int, d *codec1978.Deco if x.PersistentVolumeSource.Cinder == nil { x.PersistentVolumeSource.Cinder = new(CinderVolumeSource) } - yyj398++ - if yyhl398 { - yyb398 = yyj398 > l + yyj409++ + if yyhl409 { + yyb409 = yyj409 > l } else { - yyb398 = r.CheckBreak() + yyb409 = r.CheckBreak() } - if yyb398 { + if yyb409 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -7195,13 +7435,13 @@ func (x *PersistentVolumeSpec) codecDecodeSelfFromArray(l int, d *codec1978.Deco if x.PersistentVolumeSource.CephFS == nil { x.PersistentVolumeSource.CephFS = new(CephFSVolumeSource) } - yyj398++ - if yyhl398 { - yyb398 = yyj398 > l + yyj409++ + if yyhl409 { + yyb409 = yyj409 > l } else { - yyb398 = r.CheckBreak() + yyb409 = r.CheckBreak() } - if yyb398 { + if yyb409 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -7219,13 +7459,13 @@ func (x *PersistentVolumeSpec) codecDecodeSelfFromArray(l int, d *codec1978.Deco if x.PersistentVolumeSource.FC == nil { x.PersistentVolumeSource.FC = new(FCVolumeSource) } - yyj398++ - if yyhl398 { - yyb398 = yyj398 > l + yyj409++ + if yyhl409 { + yyb409 = yyj409 > l } else { - yyb398 = r.CheckBreak() + yyb409 = r.CheckBreak() } - if yyb398 { + if yyb409 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -7243,13 +7483,13 @@ func (x *PersistentVolumeSpec) codecDecodeSelfFromArray(l int, d *codec1978.Deco if x.PersistentVolumeSource.Flocker == nil { x.PersistentVolumeSource.Flocker = new(FlockerVolumeSource) } - yyj398++ - if yyhl398 { - yyb398 = yyj398 > l + yyj409++ + if yyhl409 { + yyb409 = yyj409 > l } else { - yyb398 = r.CheckBreak() + yyb409 = r.CheckBreak() } - if yyb398 { + if yyb409 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -7267,13 +7507,13 @@ func (x *PersistentVolumeSpec) codecDecodeSelfFromArray(l int, d *codec1978.Deco if x.PersistentVolumeSource.AzureFile == nil { x.PersistentVolumeSource.AzureFile = new(AzureFileVolumeSource) } - yyj398++ - if yyhl398 { - yyb398 = yyj398 > l + yyj409++ + if yyhl409 { + yyb409 = yyj409 > l } else { - yyb398 = r.CheckBreak() + yyb409 = r.CheckBreak() } - if yyb398 { + if yyb409 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -7291,13 +7531,13 @@ func (x *PersistentVolumeSpec) codecDecodeSelfFromArray(l int, d *codec1978.Deco if x.PersistentVolumeSource.VsphereVolume == nil { x.PersistentVolumeSource.VsphereVolume = new(VsphereVirtualDiskVolumeSource) } - yyj398++ - if yyhl398 { - yyb398 = yyj398 > l + yyj409++ + if yyhl409 { + yyb409 = yyj409 > l } else { - yyb398 = r.CheckBreak() + yyb409 = r.CheckBreak() } - if yyb398 { + if yyb409 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -7315,13 +7555,13 @@ func (x *PersistentVolumeSpec) codecDecodeSelfFromArray(l int, d *codec1978.Deco if x.PersistentVolumeSource.AzureDisk == nil { x.PersistentVolumeSource.AzureDisk = new(AzureDiskVolumeSource) } - yyj398++ - if yyhl398 { - yyb398 = yyj398 > l + yyj409++ + if yyhl409 { + yyb409 = yyj409 > l } else { - yyb398 = r.CheckBreak() + yyb409 = r.CheckBreak() } - if yyb398 { + if yyb409 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -7336,13 +7576,37 @@ func (x *PersistentVolumeSpec) codecDecodeSelfFromArray(l int, d *codec1978.Deco } x.AzureDisk.CodecDecodeSelf(d) } - yyj398++ - if yyhl398 { - yyb398 = yyj398 > l - } else { - yyb398 = r.CheckBreak() + if x.PersistentVolumeSource.PhotonPersistentDisk == nil { + x.PersistentVolumeSource.PhotonPersistentDisk = new(PhotonPersistentDiskVolumeSource) } - if yyb398 { + yyj409++ + if yyhl409 { + yyb409 = yyj409 > l + } else { + yyb409 = r.CheckBreak() + } + if yyb409 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + if x.PhotonPersistentDisk != nil { + x.PhotonPersistentDisk = nil + } + } else { + if x.PhotonPersistentDisk == nil { + x.PhotonPersistentDisk = new(PhotonPersistentDiskVolumeSource) + } + x.PhotonPersistentDisk.CodecDecodeSelf(d) + } + yyj409++ + if yyhl409 { + yyb409 = yyj409 > l + } else { + yyb409 = r.CheckBreak() + } + if yyb409 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -7350,21 +7614,21 @@ func (x *PersistentVolumeSpec) codecDecodeSelfFromArray(l int, d *codec1978.Deco if r.TryDecodeAsNil() { x.AccessModes = nil } else { - yyv416 := &x.AccessModes - yym417 := z.DecBinary() - _ = yym417 + yyv428 := &x.AccessModes + yym429 := z.DecBinary() + _ = yym429 if false { } else { - h.decSlicePersistentVolumeAccessMode((*[]PersistentVolumeAccessMode)(yyv416), d) + h.decSlicePersistentVolumeAccessMode((*[]PersistentVolumeAccessMode)(yyv428), d) } } - yyj398++ - if yyhl398 { - yyb398 = yyj398 > l + yyj409++ + if yyhl409 { + yyb409 = yyj409 > l } else { - yyb398 = r.CheckBreak() + yyb409 = r.CheckBreak() } - if yyb398 { + if yyb409 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -7379,13 +7643,13 @@ func (x *PersistentVolumeSpec) codecDecodeSelfFromArray(l int, d *codec1978.Deco } x.ClaimRef.CodecDecodeSelf(d) } - yyj398++ - if yyhl398 { - yyb398 = yyj398 > l + yyj409++ + if yyhl409 { + yyb409 = yyj409 > l } else { - yyb398 = r.CheckBreak() + yyb409 = r.CheckBreak() } - if yyb398 { + if yyb409 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -7396,17 +7660,17 @@ func (x *PersistentVolumeSpec) codecDecodeSelfFromArray(l int, d *codec1978.Deco x.PersistentVolumeReclaimPolicy = PersistentVolumeReclaimPolicy(r.DecodeString()) } for { - yyj398++ - if yyhl398 { - yyb398 = yyj398 > l + yyj409++ + if yyhl409 { + yyb409 = yyj409 > l } else { - yyb398 = r.CheckBreak() + yyb409 = r.CheckBreak() } - if yyb398 { + if yyb409 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj398-1, "") + z.DecStructFieldNotFound(yyj409-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -7415,8 +7679,8 @@ func (x PersistentVolumeReclaimPolicy) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r - yym420 := z.EncBinary() - _ = yym420 + yym432 := z.EncBinary() + _ = yym432 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { @@ -7428,8 +7692,8 @@ func (x *PersistentVolumeReclaimPolicy) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym421 := z.DecBinary() - _ = yym421 + yym433 := z.DecBinary() + _ = yym433 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { @@ -7444,52 +7708,52 @@ func (x *PersistentVolumeStatus) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym422 := z.EncBinary() - _ = yym422 + yym434 := z.EncBinary() + _ = yym434 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - 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 { + yysep435 := !z.EncBinary() + yy2arr435 := z.EncBasicHandle().StructToArray + var yyq435 [3]bool + _, _, _ = yysep435, yyq435, yy2arr435 + const yyr435 bool = false + yyq435[0] = x.Phase != "" + yyq435[1] = x.Message != "" + yyq435[2] = x.Reason != "" + var yynn435 int + if yyr435 || yy2arr435 { r.EncodeArrayStart(3) } else { - yynn423 = 0 - for _, b := range yyq423 { + yynn435 = 0 + for _, b := range yyq435 { if b { - yynn423++ + yynn435++ } } - r.EncodeMapStart(yynn423) - yynn423 = 0 + r.EncodeMapStart(yynn435) + yynn435 = 0 } - if yyr423 || yy2arr423 { + if yyr435 || yy2arr435 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq423[0] { + if yyq435[0] { x.Phase.CodecEncodeSelf(e) } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq423[0] { + if yyq435[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("phase")) z.EncSendContainerState(codecSelfer_containerMapValue1234) x.Phase.CodecEncodeSelf(e) } } - if yyr423 || yy2arr423 { + if yyr435 || yy2arr435 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq423[1] { - yym426 := z.EncBinary() - _ = yym426 + if yyq435[1] { + yym438 := z.EncBinary() + _ = yym438 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Message)) @@ -7498,23 +7762,23 @@ func (x *PersistentVolumeStatus) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq423[1] { + if yyq435[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("message")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym427 := z.EncBinary() - _ = yym427 + yym439 := z.EncBinary() + _ = yym439 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Message)) } } } - if yyr423 || yy2arr423 { + if yyr435 || yy2arr435 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq423[2] { - yym429 := z.EncBinary() - _ = yym429 + if yyq435[2] { + yym441 := z.EncBinary() + _ = yym441 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Reason)) @@ -7523,19 +7787,19 @@ func (x *PersistentVolumeStatus) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq423[2] { + if yyq435[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("reason")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym430 := z.EncBinary() - _ = yym430 + yym442 := z.EncBinary() + _ = yym442 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Reason)) } } } - if yyr423 || yy2arr423 { + if yyr435 || yy2arr435 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -7548,25 +7812,25 @@ func (x *PersistentVolumeStatus) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym431 := z.DecBinary() - _ = yym431 + yym443 := z.DecBinary() + _ = yym443 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct432 := r.ContainerType() - if yyct432 == codecSelferValueTypeMap1234 { - yyl432 := r.ReadMapStart() - if yyl432 == 0 { + yyct444 := r.ContainerType() + if yyct444 == codecSelferValueTypeMap1234 { + yyl444 := r.ReadMapStart() + if yyl444 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl432, d) + x.codecDecodeSelfFromMap(yyl444, d) } - } else if yyct432 == codecSelferValueTypeArray1234 { - yyl432 := r.ReadArrayStart() - if yyl432 == 0 { + } else if yyct444 == codecSelferValueTypeArray1234 { + yyl444 := r.ReadArrayStart() + if yyl444 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl432, d) + x.codecDecodeSelfFromArray(yyl444, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -7578,12 +7842,12 @@ func (x *PersistentVolumeStatus) codecDecodeSelfFromMap(l int, d *codec1978.Deco var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys433Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys433Slc - var yyhl433 bool = l >= 0 - for yyj433 := 0; ; yyj433++ { - if yyhl433 { - if yyj433 >= l { + var yys445Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys445Slc + var yyhl445 bool = l >= 0 + for yyj445 := 0; ; yyj445++ { + if yyhl445 { + if yyj445 >= l { break } } else { @@ -7592,10 +7856,10 @@ func (x *PersistentVolumeStatus) codecDecodeSelfFromMap(l int, d *codec1978.Deco } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys433Slc = r.DecodeBytes(yys433Slc, true, true) - yys433 := string(yys433Slc) + yys445Slc = r.DecodeBytes(yys445Slc, true, true) + yys445 := string(yys445Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys433 { + switch yys445 { case "phase": if r.TryDecodeAsNil() { x.Phase = "" @@ -7615,9 +7879,9 @@ func (x *PersistentVolumeStatus) codecDecodeSelfFromMap(l int, d *codec1978.Deco x.Reason = string(r.DecodeString()) } default: - z.DecStructFieldNotFound(-1, yys433) - } // end switch yys433 - } // end for yyj433 + z.DecStructFieldNotFound(-1, yys445) + } // end switch yys445 + } // end for yyj445 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -7625,16 +7889,16 @@ func (x *PersistentVolumeStatus) codecDecodeSelfFromArray(l int, d *codec1978.De 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 + var yyj449 int + var yyb449 bool + var yyhl449 bool = l >= 0 + yyj449++ + if yyhl449 { + yyb449 = yyj449 > l } else { - yyb437 = r.CheckBreak() + yyb449 = r.CheckBreak() } - if yyb437 { + if yyb449 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -7644,13 +7908,13 @@ func (x *PersistentVolumeStatus) codecDecodeSelfFromArray(l int, d *codec1978.De } else { x.Phase = PersistentVolumePhase(r.DecodeString()) } - yyj437++ - if yyhl437 { - yyb437 = yyj437 > l + yyj449++ + if yyhl449 { + yyb449 = yyj449 > l } else { - yyb437 = r.CheckBreak() + yyb449 = r.CheckBreak() } - if yyb437 { + if yyb449 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -7660,13 +7924,13 @@ func (x *PersistentVolumeStatus) codecDecodeSelfFromArray(l int, d *codec1978.De } else { x.Message = string(r.DecodeString()) } - yyj437++ - if yyhl437 { - yyb437 = yyj437 > l + yyj449++ + if yyhl449 { + yyb449 = yyj449 > l } else { - yyb437 = r.CheckBreak() + yyb449 = r.CheckBreak() } - if yyb437 { + if yyb449 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -7677,17 +7941,17 @@ func (x *PersistentVolumeStatus) codecDecodeSelfFromArray(l int, d *codec1978.De x.Reason = string(r.DecodeString()) } for { - yyj437++ - if yyhl437 { - yyb437 = yyj437 > l + yyj449++ + if yyhl449 { + yyb449 = yyj449 > l } else { - yyb437 = r.CheckBreak() + yyb449 = r.CheckBreak() } - if yyb437 { + if yyb449 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj437-1, "") + z.DecStructFieldNotFound(yyj449-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -7699,37 +7963,37 @@ func (x *PersistentVolumeList) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym441 := z.EncBinary() - _ = yym441 + yym453 := z.EncBinary() + _ = yym453 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 { + yysep454 := !z.EncBinary() + yy2arr454 := z.EncBasicHandle().StructToArray + var yyq454 [4]bool + _, _, _ = yysep454, yyq454, yy2arr454 + const yyr454 bool = false + yyq454[0] = x.Kind != "" + yyq454[1] = x.APIVersion != "" + yyq454[2] = true + var yynn454 int + if yyr454 || yy2arr454 { r.EncodeArrayStart(4) } else { - yynn442 = 1 - for _, b := range yyq442 { + yynn454 = 1 + for _, b := range yyq454 { if b { - yynn442++ + yynn454++ } } - r.EncodeMapStart(yynn442) - yynn442 = 0 + r.EncodeMapStart(yynn454) + yynn454 = 0 } - if yyr442 || yy2arr442 { + if yyr454 || yy2arr454 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq442[0] { - yym444 := z.EncBinary() - _ = yym444 + if yyq454[0] { + yym456 := z.EncBinary() + _ = yym456 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) @@ -7738,23 +8002,23 @@ func (x *PersistentVolumeList) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq442[0] { + if yyq454[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym445 := z.EncBinary() - _ = yym445 + yym457 := z.EncBinary() + _ = yym457 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } - if yyr442 || yy2arr442 { + if yyr454 || yy2arr454 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq442[1] { - yym447 := z.EncBinary() - _ = yym447 + if yyq454[1] { + yym459 := z.EncBinary() + _ = yym459 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) @@ -7763,54 +8027,54 @@ func (x *PersistentVolumeList) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq442[1] { + if yyq454[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym448 := z.EncBinary() - _ = yym448 + yym460 := z.EncBinary() + _ = yym460 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } - if yyr442 || yy2arr442 { + if yyr454 || yy2arr454 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq442[2] { - yy450 := &x.ListMeta - yym451 := z.EncBinary() - _ = yym451 + if yyq454[2] { + yy462 := &x.ListMeta + yym463 := z.EncBinary() + _ = yym463 if false { - } else if z.HasExtensions() && z.EncExt(yy450) { + } else if z.HasExtensions() && z.EncExt(yy462) { } else { - z.EncFallback(yy450) + z.EncFallback(yy462) } } else { r.EncodeNil() } } else { - if yyq442[2] { + if yyq454[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy452 := &x.ListMeta - yym453 := z.EncBinary() - _ = yym453 + yy464 := &x.ListMeta + yym465 := z.EncBinary() + _ = yym465 if false { - } else if z.HasExtensions() && z.EncExt(yy452) { + } else if z.HasExtensions() && z.EncExt(yy464) { } else { - z.EncFallback(yy452) + z.EncFallback(yy464) } } } - if yyr442 || yy2arr442 { + if yyr454 || yy2arr454 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.Items == nil { r.EncodeNil() } else { - yym455 := z.EncBinary() - _ = yym455 + yym467 := z.EncBinary() + _ = yym467 if false { } else { h.encSlicePersistentVolume(([]PersistentVolume)(x.Items), e) @@ -7823,15 +8087,15 @@ func (x *PersistentVolumeList) CodecEncodeSelf(e *codec1978.Encoder) { if x.Items == nil { r.EncodeNil() } else { - yym456 := z.EncBinary() - _ = yym456 + yym468 := z.EncBinary() + _ = yym468 if false { } else { h.encSlicePersistentVolume(([]PersistentVolume)(x.Items), e) } } } - if yyr442 || yy2arr442 { + if yyr454 || yy2arr454 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -7844,25 +8108,25 @@ func (x *PersistentVolumeList) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym457 := z.DecBinary() - _ = yym457 + yym469 := z.DecBinary() + _ = yym469 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct458 := r.ContainerType() - if yyct458 == codecSelferValueTypeMap1234 { - yyl458 := r.ReadMapStart() - if yyl458 == 0 { + yyct470 := r.ContainerType() + if yyct470 == codecSelferValueTypeMap1234 { + yyl470 := r.ReadMapStart() + if yyl470 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl458, d) + x.codecDecodeSelfFromMap(yyl470, d) } - } else if yyct458 == codecSelferValueTypeArray1234 { - yyl458 := r.ReadArrayStart() - if yyl458 == 0 { + } else if yyct470 == codecSelferValueTypeArray1234 { + yyl470 := r.ReadArrayStart() + if yyl470 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl458, d) + x.codecDecodeSelfFromArray(yyl470, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -7874,12 +8138,12 @@ func (x *PersistentVolumeList) codecDecodeSelfFromMap(l int, d *codec1978.Decode 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 { + var yys471Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys471Slc + var yyhl471 bool = l >= 0 + for yyj471 := 0; ; yyj471++ { + if yyhl471 { + if yyj471 >= l { break } } else { @@ -7888,10 +8152,10 @@ func (x *PersistentVolumeList) codecDecodeSelfFromMap(l int, d *codec1978.Decode } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys459Slc = r.DecodeBytes(yys459Slc, true, true) - yys459 := string(yys459Slc) + yys471Slc = r.DecodeBytes(yys471Slc, true, true) + yys471 := string(yys471Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys459 { + switch yys471 { case "kind": if r.TryDecodeAsNil() { x.Kind = "" @@ -7908,31 +8172,31 @@ func (x *PersistentVolumeList) codecDecodeSelfFromMap(l int, d *codec1978.Decode if r.TryDecodeAsNil() { x.ListMeta = pkg2_unversioned.ListMeta{} } else { - yyv462 := &x.ListMeta - yym463 := z.DecBinary() - _ = yym463 + yyv474 := &x.ListMeta + yym475 := z.DecBinary() + _ = yym475 if false { - } else if z.HasExtensions() && z.DecExt(yyv462) { + } else if z.HasExtensions() && z.DecExt(yyv474) { } else { - z.DecFallback(yyv462, false) + z.DecFallback(yyv474, false) } } case "items": if r.TryDecodeAsNil() { x.Items = nil } else { - yyv464 := &x.Items - yym465 := z.DecBinary() - _ = yym465 + yyv476 := &x.Items + yym477 := z.DecBinary() + _ = yym477 if false { } else { - h.decSlicePersistentVolume((*[]PersistentVolume)(yyv464), d) + h.decSlicePersistentVolume((*[]PersistentVolume)(yyv476), d) } } default: - z.DecStructFieldNotFound(-1, yys459) - } // end switch yys459 - } // end for yyj459 + z.DecStructFieldNotFound(-1, yys471) + } // end switch yys471 + } // end for yyj471 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -7940,16 +8204,16 @@ func (x *PersistentVolumeList) codecDecodeSelfFromArray(l int, d *codec1978.Deco 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 + var yyj478 int + var yyb478 bool + var yyhl478 bool = l >= 0 + yyj478++ + if yyhl478 { + yyb478 = yyj478 > l } else { - yyb466 = r.CheckBreak() + yyb478 = r.CheckBreak() } - if yyb466 { + if yyb478 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -7959,13 +8223,13 @@ func (x *PersistentVolumeList) codecDecodeSelfFromArray(l int, d *codec1978.Deco } else { x.Kind = string(r.DecodeString()) } - yyj466++ - if yyhl466 { - yyb466 = yyj466 > l + yyj478++ + if yyhl478 { + yyb478 = yyj478 > l } else { - yyb466 = r.CheckBreak() + yyb478 = r.CheckBreak() } - if yyb466 { + if yyb478 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -7975,13 +8239,13 @@ func (x *PersistentVolumeList) codecDecodeSelfFromArray(l int, d *codec1978.Deco } else { x.APIVersion = string(r.DecodeString()) } - yyj466++ - if yyhl466 { - yyb466 = yyj466 > l + yyj478++ + if yyhl478 { + yyb478 = yyj478 > l } else { - yyb466 = r.CheckBreak() + yyb478 = r.CheckBreak() } - if yyb466 { + if yyb478 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -7989,22 +8253,22 @@ func (x *PersistentVolumeList) codecDecodeSelfFromArray(l int, d *codec1978.Deco if r.TryDecodeAsNil() { x.ListMeta = pkg2_unversioned.ListMeta{} } else { - yyv469 := &x.ListMeta - yym470 := z.DecBinary() - _ = yym470 + yyv481 := &x.ListMeta + yym482 := z.DecBinary() + _ = yym482 if false { - } else if z.HasExtensions() && z.DecExt(yyv469) { + } else if z.HasExtensions() && z.DecExt(yyv481) { } else { - z.DecFallback(yyv469, false) + z.DecFallback(yyv481, false) } } - yyj466++ - if yyhl466 { - yyb466 = yyj466 > l + yyj478++ + if yyhl478 { + yyb478 = yyj478 > l } else { - yyb466 = r.CheckBreak() + yyb478 = r.CheckBreak() } - if yyb466 { + if yyb478 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -8012,26 +8276,26 @@ func (x *PersistentVolumeList) codecDecodeSelfFromArray(l int, d *codec1978.Deco if r.TryDecodeAsNil() { x.Items = nil } else { - yyv471 := &x.Items - yym472 := z.DecBinary() - _ = yym472 + yyv483 := &x.Items + yym484 := z.DecBinary() + _ = yym484 if false { } else { - h.decSlicePersistentVolume((*[]PersistentVolume)(yyv471), d) + h.decSlicePersistentVolume((*[]PersistentVolume)(yyv483), d) } } for { - yyj466++ - if yyhl466 { - yyb466 = yyj466 > l + yyj478++ + if yyhl478 { + yyb478 = yyj478 > l } else { - yyb466 = r.CheckBreak() + yyb478 = r.CheckBreak() } - if yyb466 { + if yyb478 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj466-1, "") + z.DecStructFieldNotFound(yyj478-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -8043,39 +8307,39 @@ func (x *PersistentVolumeClaim) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym473 := z.EncBinary() - _ = yym473 + yym485 := z.EncBinary() + _ = yym485 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep474 := !z.EncBinary() - yy2arr474 := z.EncBasicHandle().StructToArray - var yyq474 [5]bool - _, _, _ = yysep474, yyq474, yy2arr474 - const yyr474 bool = false - yyq474[0] = x.Kind != "" - yyq474[1] = x.APIVersion != "" - yyq474[2] = true - yyq474[3] = true - yyq474[4] = true - var yynn474 int - if yyr474 || yy2arr474 { + yysep486 := !z.EncBinary() + yy2arr486 := z.EncBasicHandle().StructToArray + var yyq486 [5]bool + _, _, _ = yysep486, yyq486, yy2arr486 + const yyr486 bool = false + yyq486[0] = x.Kind != "" + yyq486[1] = x.APIVersion != "" + yyq486[2] = true + yyq486[3] = true + yyq486[4] = true + var yynn486 int + if yyr486 || yy2arr486 { r.EncodeArrayStart(5) } else { - yynn474 = 0 - for _, b := range yyq474 { + yynn486 = 0 + for _, b := range yyq486 { if b { - yynn474++ + yynn486++ } } - r.EncodeMapStart(yynn474) - yynn474 = 0 + r.EncodeMapStart(yynn486) + yynn486 = 0 } - if yyr474 || yy2arr474 { + if yyr486 || yy2arr486 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq474[0] { - yym476 := z.EncBinary() - _ = yym476 + if yyq486[0] { + yym488 := z.EncBinary() + _ = yym488 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) @@ -8084,23 +8348,23 @@ func (x *PersistentVolumeClaim) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq474[0] { + if yyq486[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym477 := z.EncBinary() - _ = yym477 + yym489 := z.EncBinary() + _ = yym489 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } - if yyr474 || yy2arr474 { + if yyr486 || yy2arr486 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq474[1] { - yym479 := z.EncBinary() - _ = yym479 + if yyq486[1] { + yym491 := z.EncBinary() + _ = yym491 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) @@ -8109,70 +8373,70 @@ func (x *PersistentVolumeClaim) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq474[1] { + if yyq486[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym480 := z.EncBinary() - _ = yym480 + yym492 := z.EncBinary() + _ = yym492 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } - if yyr474 || yy2arr474 { + if yyr486 || yy2arr486 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq474[2] { - yy482 := &x.ObjectMeta - yy482.CodecEncodeSelf(e) + if yyq486[2] { + yy494 := &x.ObjectMeta + yy494.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { - if yyq474[2] { + if yyq486[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy483 := &x.ObjectMeta - yy483.CodecEncodeSelf(e) + yy495 := &x.ObjectMeta + yy495.CodecEncodeSelf(e) } } - if yyr474 || yy2arr474 { + if yyr486 || yy2arr486 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq474[3] { - yy485 := &x.Spec - yy485.CodecEncodeSelf(e) + if yyq486[3] { + yy497 := &x.Spec + yy497.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { - if yyq474[3] { + if yyq486[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("spec")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy486 := &x.Spec - yy486.CodecEncodeSelf(e) + yy498 := &x.Spec + yy498.CodecEncodeSelf(e) } } - if yyr474 || yy2arr474 { + if yyr486 || yy2arr486 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq474[4] { - yy488 := &x.Status - yy488.CodecEncodeSelf(e) + if yyq486[4] { + yy500 := &x.Status + yy500.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { - if yyq474[4] { + if yyq486[4] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("status")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy489 := &x.Status - yy489.CodecEncodeSelf(e) + yy501 := &x.Status + yy501.CodecEncodeSelf(e) } } - if yyr474 || yy2arr474 { + if yyr486 || yy2arr486 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -8185,25 +8449,25 @@ func (x *PersistentVolumeClaim) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym490 := z.DecBinary() - _ = yym490 + yym502 := z.DecBinary() + _ = yym502 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct491 := r.ContainerType() - if yyct491 == codecSelferValueTypeMap1234 { - yyl491 := r.ReadMapStart() - if yyl491 == 0 { + yyct503 := r.ContainerType() + if yyct503 == codecSelferValueTypeMap1234 { + yyl503 := r.ReadMapStart() + if yyl503 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl491, d) + x.codecDecodeSelfFromMap(yyl503, d) } - } else if yyct491 == codecSelferValueTypeArray1234 { - yyl491 := r.ReadArrayStart() - if yyl491 == 0 { + } else if yyct503 == codecSelferValueTypeArray1234 { + yyl503 := r.ReadArrayStart() + if yyl503 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl491, d) + x.codecDecodeSelfFromArray(yyl503, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -8215,12 +8479,12 @@ func (x *PersistentVolumeClaim) codecDecodeSelfFromMap(l int, d *codec1978.Decod var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys492Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys492Slc - var yyhl492 bool = l >= 0 - for yyj492 := 0; ; yyj492++ { - if yyhl492 { - if yyj492 >= l { + 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 { @@ -8229,10 +8493,10 @@ func (x *PersistentVolumeClaim) codecDecodeSelfFromMap(l int, d *codec1978.Decod } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys492Slc = r.DecodeBytes(yys492Slc, true, true) - yys492 := string(yys492Slc) + yys504Slc = r.DecodeBytes(yys504Slc, true, true) + yys504 := string(yys504Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys492 { + switch yys504 { case "kind": if r.TryDecodeAsNil() { x.Kind = "" @@ -8249,27 +8513,27 @@ func (x *PersistentVolumeClaim) codecDecodeSelfFromMap(l int, d *codec1978.Decod if r.TryDecodeAsNil() { x.ObjectMeta = ObjectMeta{} } else { - yyv495 := &x.ObjectMeta - yyv495.CodecDecodeSelf(d) + yyv507 := &x.ObjectMeta + yyv507.CodecDecodeSelf(d) } case "spec": if r.TryDecodeAsNil() { x.Spec = PersistentVolumeClaimSpec{} } else { - yyv496 := &x.Spec - yyv496.CodecDecodeSelf(d) + yyv508 := &x.Spec + yyv508.CodecDecodeSelf(d) } case "status": if r.TryDecodeAsNil() { x.Status = PersistentVolumeClaimStatus{} } else { - yyv497 := &x.Status - yyv497.CodecDecodeSelf(d) + yyv509 := &x.Status + yyv509.CodecDecodeSelf(d) } default: - z.DecStructFieldNotFound(-1, yys492) - } // end switch yys492 - } // end for yyj492 + z.DecStructFieldNotFound(-1, yys504) + } // end switch yys504 + } // end for yyj504 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -8277,16 +8541,16 @@ func (x *PersistentVolumeClaim) codecDecodeSelfFromArray(l int, d *codec1978.Dec var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj498 int - var yyb498 bool - var yyhl498 bool = l >= 0 - yyj498++ - if yyhl498 { - yyb498 = yyj498 > l + var yyj510 int + var yyb510 bool + var yyhl510 bool = l >= 0 + yyj510++ + if yyhl510 { + yyb510 = yyj510 > l } else { - yyb498 = r.CheckBreak() + yyb510 = r.CheckBreak() } - if yyb498 { + if yyb510 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -8296,13 +8560,13 @@ func (x *PersistentVolumeClaim) codecDecodeSelfFromArray(l int, d *codec1978.Dec } else { x.Kind = string(r.DecodeString()) } - yyj498++ - if yyhl498 { - yyb498 = yyj498 > l + yyj510++ + if yyhl510 { + yyb510 = yyj510 > l } else { - yyb498 = r.CheckBreak() + yyb510 = r.CheckBreak() } - if yyb498 { + if yyb510 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -8312,13 +8576,13 @@ func (x *PersistentVolumeClaim) codecDecodeSelfFromArray(l int, d *codec1978.Dec } else { x.APIVersion = string(r.DecodeString()) } - yyj498++ - if yyhl498 { - yyb498 = yyj498 > l + yyj510++ + if yyhl510 { + yyb510 = yyj510 > l } else { - yyb498 = r.CheckBreak() + yyb510 = r.CheckBreak() } - if yyb498 { + if yyb510 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -8326,16 +8590,16 @@ func (x *PersistentVolumeClaim) codecDecodeSelfFromArray(l int, d *codec1978.Dec if r.TryDecodeAsNil() { x.ObjectMeta = ObjectMeta{} } else { - yyv501 := &x.ObjectMeta - yyv501.CodecDecodeSelf(d) + yyv513 := &x.ObjectMeta + yyv513.CodecDecodeSelf(d) } - yyj498++ - if yyhl498 { - yyb498 = yyj498 > l + yyj510++ + if yyhl510 { + yyb510 = yyj510 > l } else { - yyb498 = r.CheckBreak() + yyb510 = r.CheckBreak() } - if yyb498 { + if yyb510 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -8343,16 +8607,16 @@ func (x *PersistentVolumeClaim) codecDecodeSelfFromArray(l int, d *codec1978.Dec if r.TryDecodeAsNil() { x.Spec = PersistentVolumeClaimSpec{} } else { - yyv502 := &x.Spec - yyv502.CodecDecodeSelf(d) + yyv514 := &x.Spec + yyv514.CodecDecodeSelf(d) } - yyj498++ - if yyhl498 { - yyb498 = yyj498 > l + yyj510++ + if yyhl510 { + yyb510 = yyj510 > l } else { - yyb498 = r.CheckBreak() + yyb510 = r.CheckBreak() } - if yyb498 { + if yyb510 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -8360,21 +8624,21 @@ func (x *PersistentVolumeClaim) codecDecodeSelfFromArray(l int, d *codec1978.Dec if r.TryDecodeAsNil() { x.Status = PersistentVolumeClaimStatus{} } else { - yyv503 := &x.Status - yyv503.CodecDecodeSelf(d) + yyv515 := &x.Status + yyv515.CodecDecodeSelf(d) } for { - yyj498++ - if yyhl498 { - yyb498 = yyj498 > l + yyj510++ + if yyhl510 { + yyb510 = yyj510 > l } else { - yyb498 = r.CheckBreak() + yyb510 = r.CheckBreak() } - if yyb498 { + if yyb510 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj498-1, "") + z.DecStructFieldNotFound(yyj510-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -8386,37 +8650,37 @@ func (x *PersistentVolumeClaimList) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym504 := z.EncBinary() - _ = yym504 + yym516 := z.EncBinary() + _ = yym516 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep505 := !z.EncBinary() - yy2arr505 := z.EncBasicHandle().StructToArray - var yyq505 [4]bool - _, _, _ = yysep505, yyq505, yy2arr505 - const yyr505 bool = false - yyq505[0] = x.Kind != "" - yyq505[1] = x.APIVersion != "" - yyq505[2] = true - var yynn505 int - if yyr505 || yy2arr505 { + yysep517 := !z.EncBinary() + yy2arr517 := z.EncBasicHandle().StructToArray + var yyq517 [4]bool + _, _, _ = yysep517, yyq517, yy2arr517 + const yyr517 bool = false + yyq517[0] = x.Kind != "" + yyq517[1] = x.APIVersion != "" + yyq517[2] = true + var yynn517 int + if yyr517 || yy2arr517 { r.EncodeArrayStart(4) } else { - yynn505 = 1 - for _, b := range yyq505 { + yynn517 = 1 + for _, b := range yyq517 { if b { - yynn505++ + yynn517++ } } - r.EncodeMapStart(yynn505) - yynn505 = 0 + r.EncodeMapStart(yynn517) + yynn517 = 0 } - if yyr505 || yy2arr505 { + if yyr517 || yy2arr517 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq505[0] { - yym507 := z.EncBinary() - _ = yym507 + if yyq517[0] { + yym519 := z.EncBinary() + _ = yym519 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) @@ -8425,23 +8689,23 @@ func (x *PersistentVolumeClaimList) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq505[0] { + if yyq517[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym508 := z.EncBinary() - _ = yym508 + yym520 := z.EncBinary() + _ = yym520 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } - if yyr505 || yy2arr505 { + if yyr517 || yy2arr517 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq505[1] { - yym510 := z.EncBinary() - _ = yym510 + if yyq517[1] { + yym522 := z.EncBinary() + _ = yym522 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) @@ -8450,54 +8714,54 @@ func (x *PersistentVolumeClaimList) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq505[1] { + if yyq517[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym511 := z.EncBinary() - _ = yym511 + yym523 := z.EncBinary() + _ = yym523 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } - if yyr505 || yy2arr505 { + if yyr517 || yy2arr517 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq505[2] { - yy513 := &x.ListMeta - yym514 := z.EncBinary() - _ = yym514 + if yyq517[2] { + yy525 := &x.ListMeta + yym526 := z.EncBinary() + _ = yym526 if false { - } else if z.HasExtensions() && z.EncExt(yy513) { + } else if z.HasExtensions() && z.EncExt(yy525) { } else { - z.EncFallback(yy513) + z.EncFallback(yy525) } } else { r.EncodeNil() } } else { - if yyq505[2] { + if yyq517[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy515 := &x.ListMeta - yym516 := z.EncBinary() - _ = yym516 + yy527 := &x.ListMeta + yym528 := z.EncBinary() + _ = yym528 if false { - } else if z.HasExtensions() && z.EncExt(yy515) { + } else if z.HasExtensions() && z.EncExt(yy527) { } else { - z.EncFallback(yy515) + z.EncFallback(yy527) } } } - if yyr505 || yy2arr505 { + if yyr517 || yy2arr517 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.Items == nil { r.EncodeNil() } else { - yym518 := z.EncBinary() - _ = yym518 + yym530 := z.EncBinary() + _ = yym530 if false { } else { h.encSlicePersistentVolumeClaim(([]PersistentVolumeClaim)(x.Items), e) @@ -8510,15 +8774,15 @@ func (x *PersistentVolumeClaimList) CodecEncodeSelf(e *codec1978.Encoder) { if x.Items == nil { r.EncodeNil() } else { - yym519 := z.EncBinary() - _ = yym519 + yym531 := z.EncBinary() + _ = yym531 if false { } else { h.encSlicePersistentVolumeClaim(([]PersistentVolumeClaim)(x.Items), e) } } } - if yyr505 || yy2arr505 { + if yyr517 || yy2arr517 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -8531,25 +8795,25 @@ func (x *PersistentVolumeClaimList) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym520 := z.DecBinary() - _ = yym520 + yym532 := z.DecBinary() + _ = yym532 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct521 := r.ContainerType() - if yyct521 == codecSelferValueTypeMap1234 { - yyl521 := r.ReadMapStart() - if yyl521 == 0 { + yyct533 := r.ContainerType() + if yyct533 == codecSelferValueTypeMap1234 { + yyl533 := r.ReadMapStart() + if yyl533 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl521, d) + x.codecDecodeSelfFromMap(yyl533, d) } - } else if yyct521 == codecSelferValueTypeArray1234 { - yyl521 := r.ReadArrayStart() - if yyl521 == 0 { + } else if yyct533 == codecSelferValueTypeArray1234 { + yyl533 := r.ReadArrayStart() + if yyl533 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl521, d) + x.codecDecodeSelfFromArray(yyl533, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -8561,12 +8825,12 @@ func (x *PersistentVolumeClaimList) codecDecodeSelfFromMap(l int, d *codec1978.D var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys522Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys522Slc - var yyhl522 bool = l >= 0 - for yyj522 := 0; ; yyj522++ { - if yyhl522 { - if yyj522 >= l { + var yys534Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys534Slc + var yyhl534 bool = l >= 0 + for yyj534 := 0; ; yyj534++ { + if yyhl534 { + if yyj534 >= l { break } } else { @@ -8575,10 +8839,10 @@ func (x *PersistentVolumeClaimList) codecDecodeSelfFromMap(l int, d *codec1978.D } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys522Slc = r.DecodeBytes(yys522Slc, true, true) - yys522 := string(yys522Slc) + yys534Slc = r.DecodeBytes(yys534Slc, true, true) + yys534 := string(yys534Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys522 { + switch yys534 { case "kind": if r.TryDecodeAsNil() { x.Kind = "" @@ -8595,31 +8859,31 @@ func (x *PersistentVolumeClaimList) codecDecodeSelfFromMap(l int, d *codec1978.D if r.TryDecodeAsNil() { x.ListMeta = pkg2_unversioned.ListMeta{} } else { - yyv525 := &x.ListMeta - yym526 := z.DecBinary() - _ = yym526 + yyv537 := &x.ListMeta + yym538 := z.DecBinary() + _ = yym538 if false { - } else if z.HasExtensions() && z.DecExt(yyv525) { + } else if z.HasExtensions() && z.DecExt(yyv537) { } else { - z.DecFallback(yyv525, false) + z.DecFallback(yyv537, false) } } case "items": if r.TryDecodeAsNil() { x.Items = nil } else { - yyv527 := &x.Items - yym528 := z.DecBinary() - _ = yym528 + yyv539 := &x.Items + yym540 := z.DecBinary() + _ = yym540 if false { } else { - h.decSlicePersistentVolumeClaim((*[]PersistentVolumeClaim)(yyv527), d) + h.decSlicePersistentVolumeClaim((*[]PersistentVolumeClaim)(yyv539), d) } } default: - z.DecStructFieldNotFound(-1, yys522) - } // end switch yys522 - } // end for yyj522 + z.DecStructFieldNotFound(-1, yys534) + } // end switch yys534 + } // end for yyj534 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -8627,16 +8891,16 @@ func (x *PersistentVolumeClaimList) codecDecodeSelfFromArray(l int, d *codec1978 var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj529 int - var yyb529 bool - var yyhl529 bool = l >= 0 - yyj529++ - if yyhl529 { - yyb529 = yyj529 > l + var yyj541 int + var yyb541 bool + var yyhl541 bool = l >= 0 + yyj541++ + if yyhl541 { + yyb541 = yyj541 > l } else { - yyb529 = r.CheckBreak() + yyb541 = r.CheckBreak() } - if yyb529 { + if yyb541 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -8646,13 +8910,13 @@ func (x *PersistentVolumeClaimList) codecDecodeSelfFromArray(l int, d *codec1978 } else { x.Kind = string(r.DecodeString()) } - yyj529++ - if yyhl529 { - yyb529 = yyj529 > l + yyj541++ + if yyhl541 { + yyb541 = yyj541 > l } else { - yyb529 = r.CheckBreak() + yyb541 = r.CheckBreak() } - if yyb529 { + if yyb541 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -8662,13 +8926,13 @@ func (x *PersistentVolumeClaimList) codecDecodeSelfFromArray(l int, d *codec1978 } else { x.APIVersion = string(r.DecodeString()) } - yyj529++ - if yyhl529 { - yyb529 = yyj529 > l + yyj541++ + if yyhl541 { + yyb541 = yyj541 > l } else { - yyb529 = r.CheckBreak() + yyb541 = r.CheckBreak() } - if yyb529 { + if yyb541 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -8676,22 +8940,22 @@ func (x *PersistentVolumeClaimList) codecDecodeSelfFromArray(l int, d *codec1978 if r.TryDecodeAsNil() { x.ListMeta = pkg2_unversioned.ListMeta{} } else { - yyv532 := &x.ListMeta - yym533 := z.DecBinary() - _ = yym533 + yyv544 := &x.ListMeta + yym545 := z.DecBinary() + _ = yym545 if false { - } else if z.HasExtensions() && z.DecExt(yyv532) { + } else if z.HasExtensions() && z.DecExt(yyv544) { } else { - z.DecFallback(yyv532, false) + z.DecFallback(yyv544, false) } } - yyj529++ - if yyhl529 { - yyb529 = yyj529 > l + yyj541++ + if yyhl541 { + yyb541 = yyj541 > l } else { - yyb529 = r.CheckBreak() + yyb541 = r.CheckBreak() } - if yyb529 { + if yyb541 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -8699,26 +8963,26 @@ func (x *PersistentVolumeClaimList) codecDecodeSelfFromArray(l int, d *codec1978 if r.TryDecodeAsNil() { x.Items = nil } else { - yyv534 := &x.Items - yym535 := z.DecBinary() - _ = yym535 + yyv546 := &x.Items + yym547 := z.DecBinary() + _ = yym547 if false { } else { - h.decSlicePersistentVolumeClaim((*[]PersistentVolumeClaim)(yyv534), d) + h.decSlicePersistentVolumeClaim((*[]PersistentVolumeClaim)(yyv546), d) } } for { - yyj529++ - if yyhl529 { - yyb529 = yyj529 > l + yyj541++ + if yyhl541 { + yyb541 = yyj541 > l } else { - yyb529 = r.CheckBreak() + yyb541 = r.CheckBreak() } - if yyb529 { + if yyb541 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj529-1, "") + z.DecStructFieldNotFound(yyj541-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -8730,41 +8994,41 @@ func (x *PersistentVolumeClaimSpec) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym536 := z.EncBinary() - _ = yym536 + yym548 := z.EncBinary() + _ = yym548 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - 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 { + yysep549 := !z.EncBinary() + yy2arr549 := z.EncBasicHandle().StructToArray + var yyq549 [4]bool + _, _, _ = yysep549, yyq549, yy2arr549 + const yyr549 bool = false + yyq549[0] = len(x.AccessModes) != 0 + yyq549[1] = x.Selector != nil + yyq549[2] = true + yyq549[3] = x.VolumeName != "" + var yynn549 int + if yyr549 || yy2arr549 { r.EncodeArrayStart(4) } else { - yynn537 = 0 - for _, b := range yyq537 { + yynn549 = 0 + for _, b := range yyq549 { if b { - yynn537++ + yynn549++ } } - r.EncodeMapStart(yynn537) - yynn537 = 0 + r.EncodeMapStart(yynn549) + yynn549 = 0 } - if yyr537 || yy2arr537 { + if yyr549 || yy2arr549 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq537[0] { + if yyq549[0] { if x.AccessModes == nil { r.EncodeNil() } else { - yym539 := z.EncBinary() - _ = yym539 + yym551 := z.EncBinary() + _ = yym551 if false { } else { h.encSlicePersistentVolumeAccessMode(([]PersistentVolumeAccessMode)(x.AccessModes), e) @@ -8774,15 +9038,15 @@ func (x *PersistentVolumeClaimSpec) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq537[0] { + if yyq549[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("accessModes")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.AccessModes == nil { r.EncodeNil() } else { - yym540 := z.EncBinary() - _ = yym540 + yym552 := z.EncBinary() + _ = yym552 if false { } else { h.encSlicePersistentVolumeAccessMode(([]PersistentVolumeAccessMode)(x.AccessModes), e) @@ -8790,14 +9054,14 @@ func (x *PersistentVolumeClaimSpec) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr537 || yy2arr537 { + if yyr549 || yy2arr549 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq537[1] { + if yyq549[1] { if x.Selector == nil { r.EncodeNil() } else { - yym542 := z.EncBinary() - _ = yym542 + yym554 := z.EncBinary() + _ = yym554 if false { } else if z.HasExtensions() && z.EncExt(x.Selector) { } else { @@ -8808,15 +9072,15 @@ func (x *PersistentVolumeClaimSpec) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq537[1] { + if yyq549[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("selector")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.Selector == nil { r.EncodeNil() } else { - yym543 := z.EncBinary() - _ = yym543 + yym555 := z.EncBinary() + _ = yym555 if false { } else if z.HasExtensions() && z.EncExt(x.Selector) { } else { @@ -8825,28 +9089,28 @@ func (x *PersistentVolumeClaimSpec) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr537 || yy2arr537 { + if yyr549 || yy2arr549 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq537[2] { - yy545 := &x.Resources - yy545.CodecEncodeSelf(e) + if yyq549[2] { + yy557 := &x.Resources + yy557.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { - if yyq537[2] { + if yyq549[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("resources")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy546 := &x.Resources - yy546.CodecEncodeSelf(e) + yy558 := &x.Resources + yy558.CodecEncodeSelf(e) } } - if yyr537 || yy2arr537 { + if yyr549 || yy2arr549 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq537[3] { - yym548 := z.EncBinary() - _ = yym548 + if yyq549[3] { + yym560 := z.EncBinary() + _ = yym560 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.VolumeName)) @@ -8855,19 +9119,19 @@ func (x *PersistentVolumeClaimSpec) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq537[3] { + if yyq549[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("volumeName")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym549 := z.EncBinary() - _ = yym549 + yym561 := z.EncBinary() + _ = yym561 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.VolumeName)) } } } - if yyr537 || yy2arr537 { + if yyr549 || yy2arr549 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -8880,25 +9144,25 @@ func (x *PersistentVolumeClaimSpec) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym550 := z.DecBinary() - _ = yym550 + yym562 := z.DecBinary() + _ = yym562 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct551 := r.ContainerType() - if yyct551 == codecSelferValueTypeMap1234 { - yyl551 := r.ReadMapStart() - if yyl551 == 0 { + yyct563 := r.ContainerType() + if yyct563 == codecSelferValueTypeMap1234 { + yyl563 := r.ReadMapStart() + if yyl563 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl551, d) + x.codecDecodeSelfFromMap(yyl563, d) } - } else if yyct551 == codecSelferValueTypeArray1234 { - yyl551 := r.ReadArrayStart() - if yyl551 == 0 { + } else if yyct563 == codecSelferValueTypeArray1234 { + yyl563 := r.ReadArrayStart() + if yyl563 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl551, d) + x.codecDecodeSelfFromArray(yyl563, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -8910,12 +9174,12 @@ func (x *PersistentVolumeClaimSpec) codecDecodeSelfFromMap(l int, d *codec1978.D var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys552Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys552Slc - var yyhl552 bool = l >= 0 - for yyj552 := 0; ; yyj552++ { - if yyhl552 { - if yyj552 >= l { + var yys564Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys564Slc + var yyhl564 bool = l >= 0 + for yyj564 := 0; ; yyj564++ { + if yyhl564 { + if yyj564 >= l { break } } else { @@ -8924,20 +9188,20 @@ func (x *PersistentVolumeClaimSpec) codecDecodeSelfFromMap(l int, d *codec1978.D } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys552Slc = r.DecodeBytes(yys552Slc, true, true) - yys552 := string(yys552Slc) + yys564Slc = r.DecodeBytes(yys564Slc, true, true) + yys564 := string(yys564Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys552 { + switch yys564 { case "accessModes": if r.TryDecodeAsNil() { x.AccessModes = nil } else { - yyv553 := &x.AccessModes - yym554 := z.DecBinary() - _ = yym554 + yyv565 := &x.AccessModes + yym566 := z.DecBinary() + _ = yym566 if false { } else { - h.decSlicePersistentVolumeAccessMode((*[]PersistentVolumeAccessMode)(yyv553), d) + h.decSlicePersistentVolumeAccessMode((*[]PersistentVolumeAccessMode)(yyv565), d) } } case "selector": @@ -8949,8 +9213,8 @@ func (x *PersistentVolumeClaimSpec) codecDecodeSelfFromMap(l int, d *codec1978.D if x.Selector == nil { x.Selector = new(pkg2_unversioned.LabelSelector) } - yym556 := z.DecBinary() - _ = yym556 + yym568 := z.DecBinary() + _ = yym568 if false { } else if z.HasExtensions() && z.DecExt(x.Selector) { } else { @@ -8961,8 +9225,8 @@ func (x *PersistentVolumeClaimSpec) codecDecodeSelfFromMap(l int, d *codec1978.D if r.TryDecodeAsNil() { x.Resources = ResourceRequirements{} } else { - yyv557 := &x.Resources - yyv557.CodecDecodeSelf(d) + yyv569 := &x.Resources + yyv569.CodecDecodeSelf(d) } case "volumeName": if r.TryDecodeAsNil() { @@ -8971,9 +9235,9 @@ func (x *PersistentVolumeClaimSpec) codecDecodeSelfFromMap(l int, d *codec1978.D x.VolumeName = string(r.DecodeString()) } default: - z.DecStructFieldNotFound(-1, yys552) - } // end switch yys552 - } // end for yyj552 + z.DecStructFieldNotFound(-1, yys564) + } // end switch yys564 + } // end for yyj564 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -8981,16 +9245,16 @@ func (x *PersistentVolumeClaimSpec) codecDecodeSelfFromArray(l int, d *codec1978 var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj559 int - var yyb559 bool - var yyhl559 bool = l >= 0 - yyj559++ - if yyhl559 { - yyb559 = yyj559 > l + var yyj571 int + var yyb571 bool + var yyhl571 bool = l >= 0 + yyj571++ + if yyhl571 { + yyb571 = yyj571 > l } else { - yyb559 = r.CheckBreak() + yyb571 = r.CheckBreak() } - if yyb559 { + if yyb571 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -8998,21 +9262,21 @@ func (x *PersistentVolumeClaimSpec) codecDecodeSelfFromArray(l int, d *codec1978 if r.TryDecodeAsNil() { x.AccessModes = nil } else { - yyv560 := &x.AccessModes - yym561 := z.DecBinary() - _ = yym561 + yyv572 := &x.AccessModes + yym573 := z.DecBinary() + _ = yym573 if false { } else { - h.decSlicePersistentVolumeAccessMode((*[]PersistentVolumeAccessMode)(yyv560), d) + h.decSlicePersistentVolumeAccessMode((*[]PersistentVolumeAccessMode)(yyv572), d) } } - yyj559++ - if yyhl559 { - yyb559 = yyj559 > l + yyj571++ + if yyhl571 { + yyb571 = yyj571 > l } else { - yyb559 = r.CheckBreak() + yyb571 = r.CheckBreak() } - if yyb559 { + if yyb571 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -9025,21 +9289,21 @@ func (x *PersistentVolumeClaimSpec) codecDecodeSelfFromArray(l int, d *codec1978 if x.Selector == nil { x.Selector = new(pkg2_unversioned.LabelSelector) } - yym563 := z.DecBinary() - _ = yym563 + yym575 := z.DecBinary() + _ = yym575 if false { } else if z.HasExtensions() && z.DecExt(x.Selector) { } else { z.DecFallback(x.Selector, false) } } - yyj559++ - if yyhl559 { - yyb559 = yyj559 > l + yyj571++ + if yyhl571 { + yyb571 = yyj571 > l } else { - yyb559 = r.CheckBreak() + yyb571 = r.CheckBreak() } - if yyb559 { + if yyb571 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -9047,16 +9311,16 @@ func (x *PersistentVolumeClaimSpec) codecDecodeSelfFromArray(l int, d *codec1978 if r.TryDecodeAsNil() { x.Resources = ResourceRequirements{} } else { - yyv564 := &x.Resources - yyv564.CodecDecodeSelf(d) + yyv576 := &x.Resources + yyv576.CodecDecodeSelf(d) } - yyj559++ - if yyhl559 { - yyb559 = yyj559 > l + yyj571++ + if yyhl571 { + yyb571 = yyj571 > l } else { - yyb559 = r.CheckBreak() + yyb571 = r.CheckBreak() } - if yyb559 { + if yyb571 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -9067,17 +9331,17 @@ func (x *PersistentVolumeClaimSpec) codecDecodeSelfFromArray(l int, d *codec1978 x.VolumeName = string(r.DecodeString()) } for { - yyj559++ - if yyhl559 { - yyb559 = yyj559 > l + yyj571++ + if yyhl571 { + yyb571 = yyj571 > l } else { - yyb559 = r.CheckBreak() + yyb571 = r.CheckBreak() } - if yyb559 { + if yyb571 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj559-1, "") + z.DecStructFieldNotFound(yyj571-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -9089,55 +9353,55 @@ func (x *PersistentVolumeClaimStatus) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym566 := z.EncBinary() - _ = yym566 + yym578 := z.EncBinary() + _ = yym578 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - 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 { + yysep579 := !z.EncBinary() + yy2arr579 := z.EncBasicHandle().StructToArray + var yyq579 [3]bool + _, _, _ = yysep579, yyq579, yy2arr579 + const yyr579 bool = false + yyq579[0] = x.Phase != "" + yyq579[1] = len(x.AccessModes) != 0 + yyq579[2] = len(x.Capacity) != 0 + var yynn579 int + if yyr579 || yy2arr579 { r.EncodeArrayStart(3) } else { - yynn567 = 0 - for _, b := range yyq567 { + yynn579 = 0 + for _, b := range yyq579 { if b { - yynn567++ + yynn579++ } } - r.EncodeMapStart(yynn567) - yynn567 = 0 + r.EncodeMapStart(yynn579) + yynn579 = 0 } - if yyr567 || yy2arr567 { + if yyr579 || yy2arr579 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq567[0] { + if yyq579[0] { x.Phase.CodecEncodeSelf(e) } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq567[0] { + if yyq579[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("phase")) z.EncSendContainerState(codecSelfer_containerMapValue1234) x.Phase.CodecEncodeSelf(e) } } - if yyr567 || yy2arr567 { + if yyr579 || yy2arr579 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq567[1] { + if yyq579[1] { if x.AccessModes == nil { r.EncodeNil() } else { - yym570 := z.EncBinary() - _ = yym570 + yym582 := z.EncBinary() + _ = yym582 if false { } else { h.encSlicePersistentVolumeAccessMode(([]PersistentVolumeAccessMode)(x.AccessModes), e) @@ -9147,15 +9411,15 @@ func (x *PersistentVolumeClaimStatus) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq567[1] { + if yyq579[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("accessModes")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.AccessModes == nil { r.EncodeNil() } else { - yym571 := z.EncBinary() - _ = yym571 + yym583 := z.EncBinary() + _ = yym583 if false { } else { h.encSlicePersistentVolumeAccessMode(([]PersistentVolumeAccessMode)(x.AccessModes), e) @@ -9163,9 +9427,9 @@ func (x *PersistentVolumeClaimStatus) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr567 || yy2arr567 { + if yyr579 || yy2arr579 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq567[2] { + if yyq579[2] { if x.Capacity == nil { r.EncodeNil() } else { @@ -9175,7 +9439,7 @@ func (x *PersistentVolumeClaimStatus) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq567[2] { + if yyq579[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("capacity")) z.EncSendContainerState(codecSelfer_containerMapValue1234) @@ -9186,7 +9450,7 @@ func (x *PersistentVolumeClaimStatus) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr567 || yy2arr567 { + if yyr579 || yy2arr579 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -9199,25 +9463,25 @@ func (x *PersistentVolumeClaimStatus) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym573 := z.DecBinary() - _ = yym573 + yym585 := z.DecBinary() + _ = yym585 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct574 := r.ContainerType() - if yyct574 == codecSelferValueTypeMap1234 { - yyl574 := r.ReadMapStart() - if yyl574 == 0 { + yyct586 := r.ContainerType() + if yyct586 == codecSelferValueTypeMap1234 { + yyl586 := r.ReadMapStart() + if yyl586 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl574, d) + x.codecDecodeSelfFromMap(yyl586, d) } - } else if yyct574 == codecSelferValueTypeArray1234 { - yyl574 := r.ReadArrayStart() - if yyl574 == 0 { + } else if yyct586 == codecSelferValueTypeArray1234 { + yyl586 := r.ReadArrayStart() + if yyl586 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl574, d) + x.codecDecodeSelfFromArray(yyl586, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -9229,12 +9493,12 @@ func (x *PersistentVolumeClaimStatus) codecDecodeSelfFromMap(l int, d *codec1978 var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys575Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys575Slc - var yyhl575 bool = l >= 0 - for yyj575 := 0; ; yyj575++ { - if yyhl575 { - if yyj575 >= l { + var yys587Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys587Slc + var yyhl587 bool = l >= 0 + for yyj587 := 0; ; yyj587++ { + if yyhl587 { + if yyj587 >= l { break } } else { @@ -9243,10 +9507,10 @@ func (x *PersistentVolumeClaimStatus) codecDecodeSelfFromMap(l int, d *codec1978 } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys575Slc = r.DecodeBytes(yys575Slc, true, true) - yys575 := string(yys575Slc) + yys587Slc = r.DecodeBytes(yys587Slc, true, true) + yys587 := string(yys587Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys575 { + switch yys587 { case "phase": if r.TryDecodeAsNil() { x.Phase = "" @@ -9257,25 +9521,25 @@ func (x *PersistentVolumeClaimStatus) codecDecodeSelfFromMap(l int, d *codec1978 if r.TryDecodeAsNil() { x.AccessModes = nil } else { - yyv577 := &x.AccessModes - yym578 := z.DecBinary() - _ = yym578 + yyv589 := &x.AccessModes + yym590 := z.DecBinary() + _ = yym590 if false { } else { - h.decSlicePersistentVolumeAccessMode((*[]PersistentVolumeAccessMode)(yyv577), d) + h.decSlicePersistentVolumeAccessMode((*[]PersistentVolumeAccessMode)(yyv589), d) } } case "capacity": if r.TryDecodeAsNil() { x.Capacity = nil } else { - yyv579 := &x.Capacity - yyv579.CodecDecodeSelf(d) + yyv591 := &x.Capacity + yyv591.CodecDecodeSelf(d) } default: - z.DecStructFieldNotFound(-1, yys575) - } // end switch yys575 - } // end for yyj575 + z.DecStructFieldNotFound(-1, yys587) + } // end switch yys587 + } // end for yyj587 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -9283,16 +9547,16 @@ func (x *PersistentVolumeClaimStatus) codecDecodeSelfFromArray(l int, d *codec19 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 + var yyj592 int + var yyb592 bool + var yyhl592 bool = l >= 0 + yyj592++ + if yyhl592 { + yyb592 = yyj592 > l } else { - yyb580 = r.CheckBreak() + yyb592 = r.CheckBreak() } - if yyb580 { + if yyb592 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -9302,13 +9566,13 @@ func (x *PersistentVolumeClaimStatus) codecDecodeSelfFromArray(l int, d *codec19 } else { x.Phase = PersistentVolumeClaimPhase(r.DecodeString()) } - yyj580++ - if yyhl580 { - yyb580 = yyj580 > l + yyj592++ + if yyhl592 { + yyb592 = yyj592 > l } else { - yyb580 = r.CheckBreak() + yyb592 = r.CheckBreak() } - if yyb580 { + if yyb592 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -9316,21 +9580,21 @@ func (x *PersistentVolumeClaimStatus) codecDecodeSelfFromArray(l int, d *codec19 if r.TryDecodeAsNil() { x.AccessModes = nil } else { - yyv582 := &x.AccessModes - yym583 := z.DecBinary() - _ = yym583 + yyv594 := &x.AccessModes + yym595 := z.DecBinary() + _ = yym595 if false { } else { - h.decSlicePersistentVolumeAccessMode((*[]PersistentVolumeAccessMode)(yyv582), d) + h.decSlicePersistentVolumeAccessMode((*[]PersistentVolumeAccessMode)(yyv594), d) } } - yyj580++ - if yyhl580 { - yyb580 = yyj580 > l + yyj592++ + if yyhl592 { + yyb592 = yyj592 > l } else { - yyb580 = r.CheckBreak() + yyb592 = r.CheckBreak() } - if yyb580 { + if yyb592 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -9338,21 +9602,21 @@ func (x *PersistentVolumeClaimStatus) codecDecodeSelfFromArray(l int, d *codec19 if r.TryDecodeAsNil() { x.Capacity = nil } else { - yyv584 := &x.Capacity - yyv584.CodecDecodeSelf(d) + yyv596 := &x.Capacity + yyv596.CodecDecodeSelf(d) } for { - yyj580++ - if yyhl580 { - yyb580 = yyj580 > l + yyj592++ + if yyhl592 { + yyb592 = yyj592 > l } else { - yyb580 = r.CheckBreak() + yyb592 = r.CheckBreak() } - if yyb580 { + if yyb592 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj580-1, "") + z.DecStructFieldNotFound(yyj592-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -9361,8 +9625,8 @@ func (x PersistentVolumeAccessMode) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r - yym585 := z.EncBinary() - _ = yym585 + yym597 := z.EncBinary() + _ = yym597 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { @@ -9374,8 +9638,8 @@ func (x *PersistentVolumeAccessMode) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym586 := z.DecBinary() - _ = yym586 + yym598 := z.DecBinary() + _ = yym598 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { @@ -9387,8 +9651,8 @@ func (x PersistentVolumePhase) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r - yym587 := z.EncBinary() - _ = yym587 + yym599 := z.EncBinary() + _ = yym599 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { @@ -9400,8 +9664,8 @@ func (x *PersistentVolumePhase) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym588 := z.DecBinary() - _ = yym588 + yym600 := z.DecBinary() + _ = yym600 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { @@ -9413,8 +9677,8 @@ func (x PersistentVolumeClaimPhase) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r - yym589 := z.EncBinary() - _ = yym589 + yym601 := z.EncBinary() + _ = yym601 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { @@ -9426,8 +9690,8 @@ func (x *PersistentVolumeClaimPhase) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym590 := z.DecBinary() - _ = yym590 + yym602 := z.DecBinary() + _ = yym602 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { @@ -9442,33 +9706,33 @@ func (x *HostPathVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym591 := z.EncBinary() - _ = yym591 + yym603 := z.EncBinary() + _ = yym603 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep592 := !z.EncBinary() - yy2arr592 := z.EncBasicHandle().StructToArray - var yyq592 [1]bool - _, _, _ = yysep592, yyq592, yy2arr592 - const yyr592 bool = false - var yynn592 int - if yyr592 || yy2arr592 { + yysep604 := !z.EncBinary() + yy2arr604 := z.EncBasicHandle().StructToArray + var yyq604 [1]bool + _, _, _ = yysep604, yyq604, yy2arr604 + const yyr604 bool = false + var yynn604 int + if yyr604 || yy2arr604 { r.EncodeArrayStart(1) } else { - yynn592 = 1 - for _, b := range yyq592 { + yynn604 = 1 + for _, b := range yyq604 { if b { - yynn592++ + yynn604++ } } - r.EncodeMapStart(yynn592) - yynn592 = 0 + r.EncodeMapStart(yynn604) + yynn604 = 0 } - if yyr592 || yy2arr592 { + if yyr604 || yy2arr604 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym594 := z.EncBinary() - _ = yym594 + yym606 := z.EncBinary() + _ = yym606 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Path)) @@ -9477,14 +9741,14 @@ func (x *HostPathVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("path")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym595 := z.EncBinary() - _ = yym595 + yym607 := z.EncBinary() + _ = yym607 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Path)) } } - if yyr592 || yy2arr592 { + if yyr604 || yy2arr604 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -9497,25 +9761,25 @@ func (x *HostPathVolumeSource) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym596 := z.DecBinary() - _ = yym596 + yym608 := z.DecBinary() + _ = yym608 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct597 := r.ContainerType() - if yyct597 == codecSelferValueTypeMap1234 { - yyl597 := r.ReadMapStart() - if yyl597 == 0 { + yyct609 := r.ContainerType() + if yyct609 == codecSelferValueTypeMap1234 { + yyl609 := r.ReadMapStart() + if yyl609 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl597, d) + x.codecDecodeSelfFromMap(yyl609, d) } - } else if yyct597 == codecSelferValueTypeArray1234 { - yyl597 := r.ReadArrayStart() - if yyl597 == 0 { + } else if yyct609 == codecSelferValueTypeArray1234 { + yyl609 := r.ReadArrayStart() + if yyl609 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl597, d) + x.codecDecodeSelfFromArray(yyl609, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -9527,12 +9791,12 @@ func (x *HostPathVolumeSource) codecDecodeSelfFromMap(l int, d *codec1978.Decode var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys598Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys598Slc - var yyhl598 bool = l >= 0 - for yyj598 := 0; ; yyj598++ { - if yyhl598 { - if yyj598 >= l { + var yys610Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys610Slc + var yyhl610 bool = l >= 0 + for yyj610 := 0; ; yyj610++ { + if yyhl610 { + if yyj610 >= l { break } } else { @@ -9541,10 +9805,10 @@ func (x *HostPathVolumeSource) codecDecodeSelfFromMap(l int, d *codec1978.Decode } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys598Slc = r.DecodeBytes(yys598Slc, true, true) - yys598 := string(yys598Slc) + yys610Slc = r.DecodeBytes(yys610Slc, true, true) + yys610 := string(yys610Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys598 { + switch yys610 { case "path": if r.TryDecodeAsNil() { x.Path = "" @@ -9552,9 +9816,9 @@ func (x *HostPathVolumeSource) codecDecodeSelfFromMap(l int, d *codec1978.Decode x.Path = string(r.DecodeString()) } default: - z.DecStructFieldNotFound(-1, yys598) - } // end switch yys598 - } // end for yyj598 + z.DecStructFieldNotFound(-1, yys610) + } // end switch yys610 + } // end for yyj610 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -9562,16 +9826,16 @@ func (x *HostPathVolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Deco 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 + var yyj612 int + var yyb612 bool + var yyhl612 bool = l >= 0 + yyj612++ + if yyhl612 { + yyb612 = yyj612 > l } else { - yyb600 = r.CheckBreak() + yyb612 = r.CheckBreak() } - if yyb600 { + if yyb612 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -9582,17 +9846,17 @@ func (x *HostPathVolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Deco x.Path = string(r.DecodeString()) } for { - yyj600++ - if yyhl600 { - yyb600 = yyj600 > l + yyj612++ + if yyhl612 { + yyb612 = yyj612 > l } else { - yyb600 = r.CheckBreak() + yyb612 = r.CheckBreak() } - if yyb600 { + if yyb612 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj600-1, "") + z.DecStructFieldNotFound(yyj612-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -9604,46 +9868,46 @@ func (x *EmptyDirVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym602 := z.EncBinary() - _ = yym602 + yym614 := z.EncBinary() + _ = yym614 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep603 := !z.EncBinary() - yy2arr603 := z.EncBasicHandle().StructToArray - var yyq603 [1]bool - _, _, _ = yysep603, yyq603, yy2arr603 - const yyr603 bool = false - yyq603[0] = x.Medium != "" - var yynn603 int - if yyr603 || yy2arr603 { + yysep615 := !z.EncBinary() + yy2arr615 := z.EncBasicHandle().StructToArray + var yyq615 [1]bool + _, _, _ = yysep615, yyq615, yy2arr615 + const yyr615 bool = false + yyq615[0] = x.Medium != "" + var yynn615 int + if yyr615 || yy2arr615 { r.EncodeArrayStart(1) } else { - yynn603 = 0 - for _, b := range yyq603 { + yynn615 = 0 + for _, b := range yyq615 { if b { - yynn603++ + yynn615++ } } - r.EncodeMapStart(yynn603) - yynn603 = 0 + r.EncodeMapStart(yynn615) + yynn615 = 0 } - if yyr603 || yy2arr603 { + if yyr615 || yy2arr615 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq603[0] { + if yyq615[0] { x.Medium.CodecEncodeSelf(e) } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq603[0] { + if yyq615[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("medium")) z.EncSendContainerState(codecSelfer_containerMapValue1234) x.Medium.CodecEncodeSelf(e) } } - if yyr603 || yy2arr603 { + if yyr615 || yy2arr615 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -9656,25 +9920,25 @@ func (x *EmptyDirVolumeSource) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym605 := z.DecBinary() - _ = yym605 + yym617 := z.DecBinary() + _ = yym617 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct606 := r.ContainerType() - if yyct606 == codecSelferValueTypeMap1234 { - yyl606 := r.ReadMapStart() - if yyl606 == 0 { + yyct618 := r.ContainerType() + if yyct618 == codecSelferValueTypeMap1234 { + yyl618 := r.ReadMapStart() + if yyl618 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl606, d) + x.codecDecodeSelfFromMap(yyl618, d) } - } else if yyct606 == codecSelferValueTypeArray1234 { - yyl606 := r.ReadArrayStart() - if yyl606 == 0 { + } else if yyct618 == codecSelferValueTypeArray1234 { + yyl618 := r.ReadArrayStart() + if yyl618 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl606, d) + x.codecDecodeSelfFromArray(yyl618, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -9686,12 +9950,12 @@ func (x *EmptyDirVolumeSource) codecDecodeSelfFromMap(l int, d *codec1978.Decode var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys607Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys607Slc - var yyhl607 bool = l >= 0 - for yyj607 := 0; ; yyj607++ { - if yyhl607 { - if yyj607 >= l { + var yys619Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys619Slc + var yyhl619 bool = l >= 0 + for yyj619 := 0; ; yyj619++ { + if yyhl619 { + if yyj619 >= l { break } } else { @@ -9700,10 +9964,10 @@ func (x *EmptyDirVolumeSource) codecDecodeSelfFromMap(l int, d *codec1978.Decode } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys607Slc = r.DecodeBytes(yys607Slc, true, true) - yys607 := string(yys607Slc) + yys619Slc = r.DecodeBytes(yys619Slc, true, true) + yys619 := string(yys619Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys607 { + switch yys619 { case "medium": if r.TryDecodeAsNil() { x.Medium = "" @@ -9711,9 +9975,9 @@ func (x *EmptyDirVolumeSource) codecDecodeSelfFromMap(l int, d *codec1978.Decode x.Medium = StorageMedium(r.DecodeString()) } default: - z.DecStructFieldNotFound(-1, yys607) - } // end switch yys607 - } // end for yyj607 + z.DecStructFieldNotFound(-1, yys619) + } // end switch yys619 + } // end for yyj619 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -9721,16 +9985,16 @@ func (x *EmptyDirVolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Deco var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj609 int - var yyb609 bool - var yyhl609 bool = l >= 0 - yyj609++ - if yyhl609 { - yyb609 = yyj609 > l + var yyj621 int + var yyb621 bool + var yyhl621 bool = l >= 0 + yyj621++ + if yyhl621 { + yyb621 = yyj621 > l } else { - yyb609 = r.CheckBreak() + yyb621 = r.CheckBreak() } - if yyb609 { + if yyb621 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -9741,17 +10005,17 @@ func (x *EmptyDirVolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Deco x.Medium = StorageMedium(r.DecodeString()) } for { - yyj609++ - if yyhl609 { - yyb609 = yyj609 > l + yyj621++ + if yyhl621 { + yyb621 = yyj621 > l } else { - yyb609 = r.CheckBreak() + yyb621 = r.CheckBreak() } - if yyb609 { + if yyb621 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj609-1, "") + z.DecStructFieldNotFound(yyj621-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -9760,8 +10024,8 @@ func (x StorageMedium) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r - yym611 := z.EncBinary() - _ = yym611 + yym623 := z.EncBinary() + _ = yym623 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { @@ -9773,8 +10037,8 @@ func (x *StorageMedium) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym612 := z.DecBinary() - _ = yym612 + yym624 := z.DecBinary() + _ = yym624 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { @@ -9786,8 +10050,8 @@ func (x Protocol) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r - yym613 := z.EncBinary() - _ = yym613 + yym625 := z.EncBinary() + _ = yym625 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { @@ -9799,8 +10063,8 @@ func (x *Protocol) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym614 := z.DecBinary() - _ = yym614 + yym626 := z.DecBinary() + _ = yym626 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { @@ -9815,36 +10079,36 @@ func (x *GCEPersistentDiskVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym615 := z.EncBinary() - _ = yym615 + yym627 := z.EncBinary() + _ = yym627 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - 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 { + yysep628 := !z.EncBinary() + yy2arr628 := z.EncBasicHandle().StructToArray + var yyq628 [4]bool + _, _, _ = yysep628, yyq628, yy2arr628 + const yyr628 bool = false + yyq628[1] = x.FSType != "" + yyq628[2] = x.Partition != 0 + yyq628[3] = x.ReadOnly != false + var yynn628 int + if yyr628 || yy2arr628 { r.EncodeArrayStart(4) } else { - yynn616 = 1 - for _, b := range yyq616 { + yynn628 = 1 + for _, b := range yyq628 { if b { - yynn616++ + yynn628++ } } - r.EncodeMapStart(yynn616) - yynn616 = 0 + r.EncodeMapStart(yynn628) + yynn628 = 0 } - if yyr616 || yy2arr616 { + if yyr628 || yy2arr628 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym618 := z.EncBinary() - _ = yym618 + yym630 := z.EncBinary() + _ = yym630 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.PDName)) @@ -9853,18 +10117,18 @@ func (x *GCEPersistentDiskVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("pdName")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym619 := z.EncBinary() - _ = yym619 + yym631 := z.EncBinary() + _ = yym631 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.PDName)) } } - if yyr616 || yy2arr616 { + if yyr628 || yy2arr628 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq616[1] { - yym621 := z.EncBinary() - _ = yym621 + if yyq628[1] { + yym633 := z.EncBinary() + _ = yym633 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.FSType)) @@ -9873,23 +10137,23 @@ func (x *GCEPersistentDiskVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq616[1] { + if yyq628[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("fsType")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym622 := z.EncBinary() - _ = yym622 + yym634 := z.EncBinary() + _ = yym634 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.FSType)) } } } - if yyr616 || yy2arr616 { + if yyr628 || yy2arr628 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq616[2] { - yym624 := z.EncBinary() - _ = yym624 + if yyq628[2] { + yym636 := z.EncBinary() + _ = yym636 if false { } else { r.EncodeInt(int64(x.Partition)) @@ -9898,23 +10162,23 @@ func (x *GCEPersistentDiskVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeInt(0) } } else { - if yyq616[2] { + if yyq628[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("partition")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym625 := z.EncBinary() - _ = yym625 + yym637 := z.EncBinary() + _ = yym637 if false { } else { r.EncodeInt(int64(x.Partition)) } } } - if yyr616 || yy2arr616 { + if yyr628 || yy2arr628 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq616[3] { - yym627 := z.EncBinary() - _ = yym627 + if yyq628[3] { + yym639 := z.EncBinary() + _ = yym639 if false { } else { r.EncodeBool(bool(x.ReadOnly)) @@ -9923,19 +10187,19 @@ func (x *GCEPersistentDiskVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeBool(false) } } else { - if yyq616[3] { + if yyq628[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("readOnly")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym628 := z.EncBinary() - _ = yym628 + yym640 := z.EncBinary() + _ = yym640 if false { } else { r.EncodeBool(bool(x.ReadOnly)) } } } - if yyr616 || yy2arr616 { + if yyr628 || yy2arr628 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -9948,25 +10212,25 @@ func (x *GCEPersistentDiskVolumeSource) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym629 := z.DecBinary() - _ = yym629 + yym641 := z.DecBinary() + _ = yym641 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct630 := r.ContainerType() - if yyct630 == codecSelferValueTypeMap1234 { - yyl630 := r.ReadMapStart() - if yyl630 == 0 { + yyct642 := r.ContainerType() + if yyct642 == codecSelferValueTypeMap1234 { + yyl642 := r.ReadMapStart() + if yyl642 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl630, d) + x.codecDecodeSelfFromMap(yyl642, d) } - } else if yyct630 == codecSelferValueTypeArray1234 { - yyl630 := r.ReadArrayStart() - if yyl630 == 0 { + } else if yyct642 == codecSelferValueTypeArray1234 { + yyl642 := r.ReadArrayStart() + if yyl642 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl630, d) + x.codecDecodeSelfFromArray(yyl642, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -9978,12 +10242,12 @@ func (x *GCEPersistentDiskVolumeSource) codecDecodeSelfFromMap(l int, d *codec19 var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys631Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys631Slc - var yyhl631 bool = l >= 0 - for yyj631 := 0; ; yyj631++ { - if yyhl631 { - if yyj631 >= l { + var yys643Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys643Slc + var yyhl643 bool = l >= 0 + for yyj643 := 0; ; yyj643++ { + if yyhl643 { + if yyj643 >= l { break } } else { @@ -9992,10 +10256,10 @@ func (x *GCEPersistentDiskVolumeSource) codecDecodeSelfFromMap(l int, d *codec19 } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys631Slc = r.DecodeBytes(yys631Slc, true, true) - yys631 := string(yys631Slc) + yys643Slc = r.DecodeBytes(yys643Slc, true, true) + yys643 := string(yys643Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys631 { + switch yys643 { case "pdName": if r.TryDecodeAsNil() { x.PDName = "" @@ -10021,9 +10285,9 @@ func (x *GCEPersistentDiskVolumeSource) codecDecodeSelfFromMap(l int, d *codec19 x.ReadOnly = bool(r.DecodeBool()) } default: - z.DecStructFieldNotFound(-1, yys631) - } // end switch yys631 - } // end for yyj631 + z.DecStructFieldNotFound(-1, yys643) + } // end switch yys643 + } // end for yyj643 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -10031,16 +10295,16 @@ func (x *GCEPersistentDiskVolumeSource) codecDecodeSelfFromArray(l int, d *codec var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj636 int - var yyb636 bool - var yyhl636 bool = l >= 0 - yyj636++ - if yyhl636 { - yyb636 = yyj636 > l + var yyj648 int + var yyb648 bool + var yyhl648 bool = l >= 0 + yyj648++ + if yyhl648 { + yyb648 = yyj648 > l } else { - yyb636 = r.CheckBreak() + yyb648 = r.CheckBreak() } - if yyb636 { + if yyb648 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -10050,13 +10314,13 @@ func (x *GCEPersistentDiskVolumeSource) codecDecodeSelfFromArray(l int, d *codec } else { x.PDName = string(r.DecodeString()) } - yyj636++ - if yyhl636 { - yyb636 = yyj636 > l + yyj648++ + if yyhl648 { + yyb648 = yyj648 > l } else { - yyb636 = r.CheckBreak() + yyb648 = r.CheckBreak() } - if yyb636 { + if yyb648 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -10066,13 +10330,13 @@ func (x *GCEPersistentDiskVolumeSource) codecDecodeSelfFromArray(l int, d *codec } else { x.FSType = string(r.DecodeString()) } - yyj636++ - if yyhl636 { - yyb636 = yyj636 > l + yyj648++ + if yyhl648 { + yyb648 = yyj648 > l } else { - yyb636 = r.CheckBreak() + yyb648 = r.CheckBreak() } - if yyb636 { + if yyb648 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -10082,13 +10346,13 @@ func (x *GCEPersistentDiskVolumeSource) codecDecodeSelfFromArray(l int, d *codec } else { x.Partition = int32(r.DecodeInt(32)) } - yyj636++ - if yyhl636 { - yyb636 = yyj636 > l + yyj648++ + if yyhl648 { + yyb648 = yyj648 > l } else { - yyb636 = r.CheckBreak() + yyb648 = r.CheckBreak() } - if yyb636 { + if yyb648 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -10099,17 +10363,17 @@ func (x *GCEPersistentDiskVolumeSource) codecDecodeSelfFromArray(l int, d *codec x.ReadOnly = bool(r.DecodeBool()) } for { - yyj636++ - if yyhl636 { - yyb636 = yyj636 > l + yyj648++ + if yyhl648 { + yyb648 = yyj648 > l } else { - yyb636 = r.CheckBreak() + yyb648 = r.CheckBreak() } - if yyb636 { + if yyb648 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj636-1, "") + z.DecStructFieldNotFound(yyj648-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -10121,40 +10385,40 @@ func (x *ISCSIVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym641 := z.EncBinary() - _ = yym641 + yym653 := z.EncBinary() + _ = yym653 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - 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 { + yysep654 := !z.EncBinary() + yy2arr654 := z.EncBasicHandle().StructToArray + var yyq654 [6]bool + _, _, _ = yysep654, yyq654, yy2arr654 + const yyr654 bool = false + yyq654[0] = x.TargetPortal != "" + yyq654[1] = x.IQN != "" + yyq654[2] = x.Lun != 0 + yyq654[3] = x.ISCSIInterface != "" + yyq654[4] = x.FSType != "" + yyq654[5] = x.ReadOnly != false + var yynn654 int + if yyr654 || yy2arr654 { r.EncodeArrayStart(6) } else { - yynn642 = 0 - for _, b := range yyq642 { + yynn654 = 0 + for _, b := range yyq654 { if b { - yynn642++ + yynn654++ } } - r.EncodeMapStart(yynn642) - yynn642 = 0 + r.EncodeMapStart(yynn654) + yynn654 = 0 } - if yyr642 || yy2arr642 { + if yyr654 || yy2arr654 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq642[0] { - yym644 := z.EncBinary() - _ = yym644 + if yyq654[0] { + yym656 := z.EncBinary() + _ = yym656 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.TargetPortal)) @@ -10163,23 +10427,23 @@ func (x *ISCSIVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq642[0] { + if yyq654[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("targetPortal")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym645 := z.EncBinary() - _ = yym645 + yym657 := z.EncBinary() + _ = yym657 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.TargetPortal)) } } } - if yyr642 || yy2arr642 { + if yyr654 || yy2arr654 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq642[1] { - yym647 := z.EncBinary() - _ = yym647 + if yyq654[1] { + yym659 := z.EncBinary() + _ = yym659 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.IQN)) @@ -10188,23 +10452,23 @@ func (x *ISCSIVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq642[1] { + if yyq654[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("iqn")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym648 := z.EncBinary() - _ = yym648 + yym660 := z.EncBinary() + _ = yym660 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.IQN)) } } } - if yyr642 || yy2arr642 { + if yyr654 || yy2arr654 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq642[2] { - yym650 := z.EncBinary() - _ = yym650 + if yyq654[2] { + yym662 := z.EncBinary() + _ = yym662 if false { } else { r.EncodeInt(int64(x.Lun)) @@ -10213,23 +10477,23 @@ func (x *ISCSIVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeInt(0) } } else { - if yyq642[2] { + if yyq654[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("lun")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym651 := z.EncBinary() - _ = yym651 + yym663 := z.EncBinary() + _ = yym663 if false { } else { r.EncodeInt(int64(x.Lun)) } } } - if yyr642 || yy2arr642 { + if yyr654 || yy2arr654 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq642[3] { - yym653 := z.EncBinary() - _ = yym653 + if yyq654[3] { + yym665 := z.EncBinary() + _ = yym665 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.ISCSIInterface)) @@ -10238,23 +10502,23 @@ func (x *ISCSIVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq642[3] { + if yyq654[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("iscsiInterface")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym654 := z.EncBinary() - _ = yym654 + yym666 := z.EncBinary() + _ = yym666 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.ISCSIInterface)) } } } - if yyr642 || yy2arr642 { + if yyr654 || yy2arr654 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq642[4] { - yym656 := z.EncBinary() - _ = yym656 + if yyq654[4] { + yym668 := z.EncBinary() + _ = yym668 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.FSType)) @@ -10263,23 +10527,23 @@ func (x *ISCSIVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq642[4] { + if yyq654[4] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("fsType")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym657 := z.EncBinary() - _ = yym657 + yym669 := z.EncBinary() + _ = yym669 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.FSType)) } } } - if yyr642 || yy2arr642 { + if yyr654 || yy2arr654 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq642[5] { - yym659 := z.EncBinary() - _ = yym659 + if yyq654[5] { + yym671 := z.EncBinary() + _ = yym671 if false { } else { r.EncodeBool(bool(x.ReadOnly)) @@ -10288,19 +10552,19 @@ func (x *ISCSIVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeBool(false) } } else { - if yyq642[5] { + if yyq654[5] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("readOnly")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym660 := z.EncBinary() - _ = yym660 + yym672 := z.EncBinary() + _ = yym672 if false { } else { r.EncodeBool(bool(x.ReadOnly)) } } } - if yyr642 || yy2arr642 { + if yyr654 || yy2arr654 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -10313,25 +10577,25 @@ func (x *ISCSIVolumeSource) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym661 := z.DecBinary() - _ = yym661 + yym673 := z.DecBinary() + _ = yym673 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct662 := r.ContainerType() - if yyct662 == codecSelferValueTypeMap1234 { - yyl662 := r.ReadMapStart() - if yyl662 == 0 { + yyct674 := r.ContainerType() + if yyct674 == codecSelferValueTypeMap1234 { + yyl674 := r.ReadMapStart() + if yyl674 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl662, d) + x.codecDecodeSelfFromMap(yyl674, d) } - } else if yyct662 == codecSelferValueTypeArray1234 { - yyl662 := r.ReadArrayStart() - if yyl662 == 0 { + } else if yyct674 == codecSelferValueTypeArray1234 { + yyl674 := r.ReadArrayStart() + if yyl674 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl662, d) + x.codecDecodeSelfFromArray(yyl674, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -10343,12 +10607,12 @@ func (x *ISCSIVolumeSource) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys663Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys663Slc - var yyhl663 bool = l >= 0 - for yyj663 := 0; ; yyj663++ { - if yyhl663 { - if yyj663 >= l { + var yys675Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys675Slc + var yyhl675 bool = l >= 0 + for yyj675 := 0; ; yyj675++ { + if yyhl675 { + if yyj675 >= l { break } } else { @@ -10357,10 +10621,10 @@ func (x *ISCSIVolumeSource) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys663Slc = r.DecodeBytes(yys663Slc, true, true) - yys663 := string(yys663Slc) + yys675Slc = r.DecodeBytes(yys675Slc, true, true) + yys675 := string(yys675Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys663 { + switch yys675 { case "targetPortal": if r.TryDecodeAsNil() { x.TargetPortal = "" @@ -10398,9 +10662,9 @@ func (x *ISCSIVolumeSource) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) x.ReadOnly = bool(r.DecodeBool()) } default: - z.DecStructFieldNotFound(-1, yys663) - } // end switch yys663 - } // end for yyj663 + z.DecStructFieldNotFound(-1, yys675) + } // end switch yys675 + } // end for yyj675 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -10408,16 +10672,16 @@ func (x *ISCSIVolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Decoder var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj670 int - var yyb670 bool - var yyhl670 bool = l >= 0 - yyj670++ - if yyhl670 { - yyb670 = yyj670 > l + var yyj682 int + var yyb682 bool + var yyhl682 bool = l >= 0 + yyj682++ + if yyhl682 { + yyb682 = yyj682 > l } else { - yyb670 = r.CheckBreak() + yyb682 = r.CheckBreak() } - if yyb670 { + if yyb682 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -10427,13 +10691,13 @@ func (x *ISCSIVolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Decoder } else { x.TargetPortal = string(r.DecodeString()) } - yyj670++ - if yyhl670 { - yyb670 = yyj670 > l + yyj682++ + if yyhl682 { + yyb682 = yyj682 > l } else { - yyb670 = r.CheckBreak() + yyb682 = r.CheckBreak() } - if yyb670 { + if yyb682 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -10443,13 +10707,13 @@ func (x *ISCSIVolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Decoder } else { x.IQN = string(r.DecodeString()) } - yyj670++ - if yyhl670 { - yyb670 = yyj670 > l + yyj682++ + if yyhl682 { + yyb682 = yyj682 > l } else { - yyb670 = r.CheckBreak() + yyb682 = r.CheckBreak() } - if yyb670 { + if yyb682 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -10459,13 +10723,13 @@ func (x *ISCSIVolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Decoder } else { x.Lun = int32(r.DecodeInt(32)) } - yyj670++ - if yyhl670 { - yyb670 = yyj670 > l + yyj682++ + if yyhl682 { + yyb682 = yyj682 > l } else { - yyb670 = r.CheckBreak() + yyb682 = r.CheckBreak() } - if yyb670 { + if yyb682 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -10475,13 +10739,13 @@ func (x *ISCSIVolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Decoder } else { x.ISCSIInterface = string(r.DecodeString()) } - yyj670++ - if yyhl670 { - yyb670 = yyj670 > l + yyj682++ + if yyhl682 { + yyb682 = yyj682 > l } else { - yyb670 = r.CheckBreak() + yyb682 = r.CheckBreak() } - if yyb670 { + if yyb682 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -10491,13 +10755,13 @@ func (x *ISCSIVolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Decoder } else { x.FSType = string(r.DecodeString()) } - yyj670++ - if yyhl670 { - yyb670 = yyj670 > l + yyj682++ + if yyhl682 { + yyb682 = yyj682 > l } else { - yyb670 = r.CheckBreak() + yyb682 = r.CheckBreak() } - if yyb670 { + if yyb682 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -10508,17 +10772,17 @@ func (x *ISCSIVolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Decoder x.ReadOnly = bool(r.DecodeBool()) } for { - yyj670++ - if yyhl670 { - yyb670 = yyj670 > l + yyj682++ + if yyhl682 { + yyb682 = yyj682 > l } else { - yyb670 = r.CheckBreak() + yyb682 = r.CheckBreak() } - if yyb670 { + if yyb682 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj670-1, "") + z.DecStructFieldNotFound(yyj682-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -10530,38 +10794,38 @@ func (x *FCVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym677 := z.EncBinary() - _ = yym677 + yym689 := z.EncBinary() + _ = yym689 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - 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 { + yysep690 := !z.EncBinary() + yy2arr690 := z.EncBasicHandle().StructToArray + var yyq690 [4]bool + _, _, _ = yysep690, yyq690, yy2arr690 + const yyr690 bool = false + yyq690[2] = x.FSType != "" + yyq690[3] = x.ReadOnly != false + var yynn690 int + if yyr690 || yy2arr690 { r.EncodeArrayStart(4) } else { - yynn678 = 2 - for _, b := range yyq678 { + yynn690 = 2 + for _, b := range yyq690 { if b { - yynn678++ + yynn690++ } } - r.EncodeMapStart(yynn678) - yynn678 = 0 + r.EncodeMapStart(yynn690) + yynn690 = 0 } - if yyr678 || yy2arr678 { + if yyr690 || yy2arr690 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.TargetWWNs == nil { r.EncodeNil() } else { - yym680 := z.EncBinary() - _ = yym680 + yym692 := z.EncBinary() + _ = yym692 if false { } else { z.F.EncSliceStringV(x.TargetWWNs, false, e) @@ -10574,25 +10838,25 @@ func (x *FCVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { if x.TargetWWNs == nil { r.EncodeNil() } else { - yym681 := z.EncBinary() - _ = yym681 + yym693 := z.EncBinary() + _ = yym693 if false { } else { z.F.EncSliceStringV(x.TargetWWNs, false, e) } } } - if yyr678 || yy2arr678 { + if yyr690 || yy2arr690 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.Lun == nil { r.EncodeNil() } else { - yy683 := *x.Lun - yym684 := z.EncBinary() - _ = yym684 + yy695 := *x.Lun + yym696 := z.EncBinary() + _ = yym696 if false { } else { - r.EncodeInt(int64(yy683)) + r.EncodeInt(int64(yy695)) } } } else { @@ -10602,20 +10866,20 @@ func (x *FCVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { if x.Lun == nil { r.EncodeNil() } else { - yy685 := *x.Lun - yym686 := z.EncBinary() - _ = yym686 + yy697 := *x.Lun + yym698 := z.EncBinary() + _ = yym698 if false { } else { - r.EncodeInt(int64(yy685)) + r.EncodeInt(int64(yy697)) } } } - if yyr678 || yy2arr678 { + if yyr690 || yy2arr690 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq678[2] { - yym688 := z.EncBinary() - _ = yym688 + if yyq690[2] { + yym700 := z.EncBinary() + _ = yym700 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.FSType)) @@ -10624,23 +10888,23 @@ func (x *FCVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq678[2] { + if yyq690[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("fsType")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym689 := z.EncBinary() - _ = yym689 + yym701 := z.EncBinary() + _ = yym701 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.FSType)) } } } - if yyr678 || yy2arr678 { + if yyr690 || yy2arr690 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq678[3] { - yym691 := z.EncBinary() - _ = yym691 + if yyq690[3] { + yym703 := z.EncBinary() + _ = yym703 if false { } else { r.EncodeBool(bool(x.ReadOnly)) @@ -10649,19 +10913,19 @@ func (x *FCVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeBool(false) } } else { - if yyq678[3] { + if yyq690[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("readOnly")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym692 := z.EncBinary() - _ = yym692 + yym704 := z.EncBinary() + _ = yym704 if false { } else { r.EncodeBool(bool(x.ReadOnly)) } } } - if yyr678 || yy2arr678 { + if yyr690 || yy2arr690 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -10674,25 +10938,25 @@ func (x *FCVolumeSource) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym693 := z.DecBinary() - _ = yym693 + yym705 := z.DecBinary() + _ = yym705 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct694 := r.ContainerType() - if yyct694 == codecSelferValueTypeMap1234 { - yyl694 := r.ReadMapStart() - if yyl694 == 0 { + yyct706 := r.ContainerType() + if yyct706 == codecSelferValueTypeMap1234 { + yyl706 := r.ReadMapStart() + if yyl706 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl694, d) + x.codecDecodeSelfFromMap(yyl706, d) } - } else if yyct694 == codecSelferValueTypeArray1234 { - yyl694 := r.ReadArrayStart() - if yyl694 == 0 { + } else if yyct706 == codecSelferValueTypeArray1234 { + yyl706 := r.ReadArrayStart() + if yyl706 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl694, d) + x.codecDecodeSelfFromArray(yyl706, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -10704,12 +10968,12 @@ func (x *FCVolumeSource) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys695Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys695Slc - var yyhl695 bool = l >= 0 - for yyj695 := 0; ; yyj695++ { - if yyhl695 { - if yyj695 >= l { + var yys707Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys707Slc + var yyhl707 bool = l >= 0 + for yyj707 := 0; ; yyj707++ { + if yyhl707 { + if yyj707 >= l { break } } else { @@ -10718,20 +10982,20 @@ func (x *FCVolumeSource) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys695Slc = r.DecodeBytes(yys695Slc, true, true) - yys695 := string(yys695Slc) + yys707Slc = r.DecodeBytes(yys707Slc, true, true) + yys707 := string(yys707Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys695 { + switch yys707 { case "targetWWNs": if r.TryDecodeAsNil() { x.TargetWWNs = nil } else { - yyv696 := &x.TargetWWNs - yym697 := z.DecBinary() - _ = yym697 + yyv708 := &x.TargetWWNs + yym709 := z.DecBinary() + _ = yym709 if false { } else { - z.F.DecSliceStringX(yyv696, false, d) + z.F.DecSliceStringX(yyv708, false, d) } } case "lun": @@ -10743,8 +11007,8 @@ func (x *FCVolumeSource) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { if x.Lun == nil { x.Lun = new(int32) } - yym699 := z.DecBinary() - _ = yym699 + yym711 := z.DecBinary() + _ = yym711 if false { } else { *((*int32)(x.Lun)) = int32(r.DecodeInt(32)) @@ -10763,9 +11027,9 @@ func (x *FCVolumeSource) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { x.ReadOnly = bool(r.DecodeBool()) } default: - z.DecStructFieldNotFound(-1, yys695) - } // end switch yys695 - } // end for yyj695 + z.DecStructFieldNotFound(-1, yys707) + } // end switch yys707 + } // end for yyj707 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -10773,16 +11037,16 @@ func (x *FCVolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj702 int - var yyb702 bool - var yyhl702 bool = l >= 0 - yyj702++ - if yyhl702 { - yyb702 = yyj702 > l + var yyj714 int + var yyb714 bool + var yyhl714 bool = l >= 0 + yyj714++ + if yyhl714 { + yyb714 = yyj714 > l } else { - yyb702 = r.CheckBreak() + yyb714 = r.CheckBreak() } - if yyb702 { + if yyb714 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -10790,21 +11054,21 @@ func (x *FCVolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.TargetWWNs = nil } else { - yyv703 := &x.TargetWWNs - yym704 := z.DecBinary() - _ = yym704 + yyv715 := &x.TargetWWNs + yym716 := z.DecBinary() + _ = yym716 if false { } else { - z.F.DecSliceStringX(yyv703, false, d) + z.F.DecSliceStringX(yyv715, false, d) } } - yyj702++ - if yyhl702 { - yyb702 = yyj702 > l + yyj714++ + if yyhl714 { + yyb714 = yyj714 > l } else { - yyb702 = r.CheckBreak() + yyb714 = r.CheckBreak() } - if yyb702 { + if yyb714 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -10817,20 +11081,20 @@ func (x *FCVolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if x.Lun == nil { x.Lun = new(int32) } - yym706 := z.DecBinary() - _ = yym706 + yym718 := z.DecBinary() + _ = yym718 if false { } else { *((*int32)(x.Lun)) = int32(r.DecodeInt(32)) } } - yyj702++ - if yyhl702 { - yyb702 = yyj702 > l + yyj714++ + if yyhl714 { + yyb714 = yyj714 > l } else { - yyb702 = r.CheckBreak() + yyb714 = r.CheckBreak() } - if yyb702 { + if yyb714 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -10840,13 +11104,13 @@ func (x *FCVolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.FSType = string(r.DecodeString()) } - yyj702++ - if yyhl702 { - yyb702 = yyj702 > l + yyj714++ + if yyhl714 { + yyb714 = yyj714 > l } else { - yyb702 = r.CheckBreak() + yyb714 = r.CheckBreak() } - if yyb702 { + if yyb714 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -10857,17 +11121,17 @@ func (x *FCVolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { x.ReadOnly = bool(r.DecodeBool()) } for { - yyj702++ - if yyhl702 { - yyb702 = yyj702 > l + yyj714++ + if yyhl714 { + yyb714 = yyj714 > l } else { - yyb702 = r.CheckBreak() + yyb714 = r.CheckBreak() } - if yyb702 { + if yyb714 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj702-1, "") + z.DecStructFieldNotFound(yyj714-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -10879,37 +11143,37 @@ func (x *FlexVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym709 := z.EncBinary() - _ = yym709 + yym721 := z.EncBinary() + _ = yym721 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - 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 { + yysep722 := !z.EncBinary() + yy2arr722 := z.EncBasicHandle().StructToArray + var yyq722 [5]bool + _, _, _ = yysep722, yyq722, yy2arr722 + const yyr722 bool = false + yyq722[1] = x.FSType != "" + yyq722[2] = x.SecretRef != nil + yyq722[3] = x.ReadOnly != false + yyq722[4] = len(x.Options) != 0 + var yynn722 int + if yyr722 || yy2arr722 { r.EncodeArrayStart(5) } else { - yynn710 = 1 - for _, b := range yyq710 { + yynn722 = 1 + for _, b := range yyq722 { if b { - yynn710++ + yynn722++ } } - r.EncodeMapStart(yynn710) - yynn710 = 0 + r.EncodeMapStart(yynn722) + yynn722 = 0 } - if yyr710 || yy2arr710 { + if yyr722 || yy2arr722 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym712 := z.EncBinary() - _ = yym712 + yym724 := z.EncBinary() + _ = yym724 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Driver)) @@ -10918,18 +11182,18 @@ func (x *FlexVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("driver")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym713 := z.EncBinary() - _ = yym713 + yym725 := z.EncBinary() + _ = yym725 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Driver)) } } - if yyr710 || yy2arr710 { + if yyr722 || yy2arr722 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq710[1] { - yym715 := z.EncBinary() - _ = yym715 + if yyq722[1] { + yym727 := z.EncBinary() + _ = yym727 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.FSType)) @@ -10938,21 +11202,21 @@ func (x *FlexVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq710[1] { + if yyq722[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("fsType")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym716 := z.EncBinary() - _ = yym716 + yym728 := z.EncBinary() + _ = yym728 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.FSType)) } } } - if yyr710 || yy2arr710 { + if yyr722 || yy2arr722 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq710[2] { + if yyq722[2] { if x.SecretRef == nil { r.EncodeNil() } else { @@ -10962,7 +11226,7 @@ func (x *FlexVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq710[2] { + if yyq722[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("secretRef")) z.EncSendContainerState(codecSelfer_containerMapValue1234) @@ -10973,11 +11237,11 @@ func (x *FlexVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr710 || yy2arr710 { + if yyr722 || yy2arr722 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq710[3] { - yym719 := z.EncBinary() - _ = yym719 + if yyq722[3] { + yym731 := z.EncBinary() + _ = yym731 if false { } else { r.EncodeBool(bool(x.ReadOnly)) @@ -10986,26 +11250,26 @@ func (x *FlexVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeBool(false) } } else { - if yyq710[3] { + if yyq722[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("readOnly")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym720 := z.EncBinary() - _ = yym720 + yym732 := z.EncBinary() + _ = yym732 if false { } else { r.EncodeBool(bool(x.ReadOnly)) } } } - if yyr710 || yy2arr710 { + if yyr722 || yy2arr722 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq710[4] { + if yyq722[4] { if x.Options == nil { r.EncodeNil() } else { - yym722 := z.EncBinary() - _ = yym722 + yym734 := z.EncBinary() + _ = yym734 if false { } else { z.F.EncMapStringStringV(x.Options, false, e) @@ -11015,15 +11279,15 @@ func (x *FlexVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq710[4] { + if yyq722[4] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("options")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.Options == nil { r.EncodeNil() } else { - yym723 := z.EncBinary() - _ = yym723 + yym735 := z.EncBinary() + _ = yym735 if false { } else { z.F.EncMapStringStringV(x.Options, false, e) @@ -11031,7 +11295,7 @@ func (x *FlexVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr710 || yy2arr710 { + if yyr722 || yy2arr722 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -11044,25 +11308,25 @@ func (x *FlexVolumeSource) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym724 := z.DecBinary() - _ = yym724 + yym736 := z.DecBinary() + _ = yym736 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct725 := r.ContainerType() - if yyct725 == codecSelferValueTypeMap1234 { - yyl725 := r.ReadMapStart() - if yyl725 == 0 { + yyct737 := r.ContainerType() + if yyct737 == codecSelferValueTypeMap1234 { + yyl737 := r.ReadMapStart() + if yyl737 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl725, d) + x.codecDecodeSelfFromMap(yyl737, d) } - } else if yyct725 == codecSelferValueTypeArray1234 { - yyl725 := r.ReadArrayStart() - if yyl725 == 0 { + } else if yyct737 == codecSelferValueTypeArray1234 { + yyl737 := r.ReadArrayStart() + if yyl737 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl725, d) + x.codecDecodeSelfFromArray(yyl737, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -11074,12 +11338,12 @@ func (x *FlexVolumeSource) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys726Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys726Slc - var yyhl726 bool = l >= 0 - for yyj726 := 0; ; yyj726++ { - if yyhl726 { - if yyj726 >= l { + var yys738Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys738Slc + var yyhl738 bool = l >= 0 + for yyj738 := 0; ; yyj738++ { + if yyhl738 { + if yyj738 >= l { break } } else { @@ -11088,10 +11352,10 @@ func (x *FlexVolumeSource) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys726Slc = r.DecodeBytes(yys726Slc, true, true) - yys726 := string(yys726Slc) + yys738Slc = r.DecodeBytes(yys738Slc, true, true) + yys738 := string(yys738Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys726 { + switch yys738 { case "driver": if r.TryDecodeAsNil() { x.Driver = "" @@ -11125,18 +11389,18 @@ func (x *FlexVolumeSource) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.Options = nil } else { - yyv731 := &x.Options - yym732 := z.DecBinary() - _ = yym732 + yyv743 := &x.Options + yym744 := z.DecBinary() + _ = yym744 if false { } else { - z.F.DecMapStringStringX(yyv731, false, d) + z.F.DecMapStringStringX(yyv743, false, d) } } default: - z.DecStructFieldNotFound(-1, yys726) - } // end switch yys726 - } // end for yyj726 + z.DecStructFieldNotFound(-1, yys738) + } // end switch yys738 + } // end for yyj738 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -11144,16 +11408,16 @@ func (x *FlexVolumeSource) 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 + var yyj745 int + var yyb745 bool + var yyhl745 bool = l >= 0 + yyj745++ + if yyhl745 { + yyb745 = yyj745 > l } else { - yyb733 = r.CheckBreak() + yyb745 = r.CheckBreak() } - if yyb733 { + if yyb745 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -11163,13 +11427,13 @@ func (x *FlexVolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) } else { x.Driver = string(r.DecodeString()) } - yyj733++ - if yyhl733 { - yyb733 = yyj733 > l + yyj745++ + if yyhl745 { + yyb745 = yyj745 > l } else { - yyb733 = r.CheckBreak() + yyb745 = r.CheckBreak() } - if yyb733 { + if yyb745 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -11179,13 +11443,13 @@ func (x *FlexVolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) } else { x.FSType = string(r.DecodeString()) } - yyj733++ - if yyhl733 { - yyb733 = yyj733 > l + yyj745++ + if yyhl745 { + yyb745 = yyj745 > l } else { - yyb733 = r.CheckBreak() + yyb745 = r.CheckBreak() } - if yyb733 { + if yyb745 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -11200,13 +11464,13 @@ func (x *FlexVolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) } x.SecretRef.CodecDecodeSelf(d) } - yyj733++ - if yyhl733 { - yyb733 = yyj733 > l + yyj745++ + if yyhl745 { + yyb745 = yyj745 > l } else { - yyb733 = r.CheckBreak() + yyb745 = r.CheckBreak() } - if yyb733 { + if yyb745 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -11216,13 +11480,13 @@ func (x *FlexVolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) } else { x.ReadOnly = bool(r.DecodeBool()) } - yyj733++ - if yyhl733 { - yyb733 = yyj733 > l + yyj745++ + if yyhl745 { + yyb745 = yyj745 > l } else { - yyb733 = r.CheckBreak() + yyb745 = r.CheckBreak() } - if yyb733 { + if yyb745 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -11230,26 +11494,26 @@ func (x *FlexVolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) if r.TryDecodeAsNil() { x.Options = nil } else { - yyv738 := &x.Options - yym739 := z.DecBinary() - _ = yym739 + yyv750 := &x.Options + yym751 := z.DecBinary() + _ = yym751 if false { } else { - z.F.DecMapStringStringX(yyv738, false, d) + z.F.DecMapStringStringX(yyv750, false, d) } } for { - yyj733++ - if yyhl733 { - yyb733 = yyj733 > l + yyj745++ + if yyhl745 { + yyb745 = yyj745 > l } else { - yyb733 = r.CheckBreak() + yyb745 = r.CheckBreak() } - if yyb733 { + if yyb745 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj733-1, "") + z.DecStructFieldNotFound(yyj745-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -11261,36 +11525,36 @@ func (x *AWSElasticBlockStoreVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) if x == nil { r.EncodeNil() } else { - yym740 := z.EncBinary() - _ = yym740 + yym752 := z.EncBinary() + _ = yym752 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - 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 { + yysep753 := !z.EncBinary() + yy2arr753 := z.EncBasicHandle().StructToArray + var yyq753 [4]bool + _, _, _ = yysep753, yyq753, yy2arr753 + const yyr753 bool = false + yyq753[1] = x.FSType != "" + yyq753[2] = x.Partition != 0 + yyq753[3] = x.ReadOnly != false + var yynn753 int + if yyr753 || yy2arr753 { r.EncodeArrayStart(4) } else { - yynn741 = 1 - for _, b := range yyq741 { + yynn753 = 1 + for _, b := range yyq753 { if b { - yynn741++ + yynn753++ } } - r.EncodeMapStart(yynn741) - yynn741 = 0 + r.EncodeMapStart(yynn753) + yynn753 = 0 } - if yyr741 || yy2arr741 { + if yyr753 || yy2arr753 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym743 := z.EncBinary() - _ = yym743 + yym755 := z.EncBinary() + _ = yym755 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.VolumeID)) @@ -11299,18 +11563,18 @@ func (x *AWSElasticBlockStoreVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("volumeID")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym744 := z.EncBinary() - _ = yym744 + yym756 := z.EncBinary() + _ = yym756 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.VolumeID)) } } - if yyr741 || yy2arr741 { + if yyr753 || yy2arr753 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq741[1] { - yym746 := z.EncBinary() - _ = yym746 + if yyq753[1] { + yym758 := z.EncBinary() + _ = yym758 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.FSType)) @@ -11319,23 +11583,23 @@ func (x *AWSElasticBlockStoreVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq741[1] { + if yyq753[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("fsType")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym747 := z.EncBinary() - _ = yym747 + yym759 := z.EncBinary() + _ = yym759 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.FSType)) } } } - if yyr741 || yy2arr741 { + if yyr753 || yy2arr753 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq741[2] { - yym749 := z.EncBinary() - _ = yym749 + if yyq753[2] { + yym761 := z.EncBinary() + _ = yym761 if false { } else { r.EncodeInt(int64(x.Partition)) @@ -11344,23 +11608,23 @@ func (x *AWSElasticBlockStoreVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) r.EncodeInt(0) } } else { - if yyq741[2] { + if yyq753[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("partition")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym750 := z.EncBinary() - _ = yym750 + yym762 := z.EncBinary() + _ = yym762 if false { } else { r.EncodeInt(int64(x.Partition)) } } } - if yyr741 || yy2arr741 { + if yyr753 || yy2arr753 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq741[3] { - yym752 := z.EncBinary() - _ = yym752 + if yyq753[3] { + yym764 := z.EncBinary() + _ = yym764 if false { } else { r.EncodeBool(bool(x.ReadOnly)) @@ -11369,19 +11633,19 @@ func (x *AWSElasticBlockStoreVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) r.EncodeBool(false) } } else { - if yyq741[3] { + if yyq753[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("readOnly")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym753 := z.EncBinary() - _ = yym753 + yym765 := z.EncBinary() + _ = yym765 if false { } else { r.EncodeBool(bool(x.ReadOnly)) } } } - if yyr741 || yy2arr741 { + if yyr753 || yy2arr753 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -11394,25 +11658,25 @@ func (x *AWSElasticBlockStoreVolumeSource) CodecDecodeSelf(d *codec1978.Decoder) var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym754 := z.DecBinary() - _ = yym754 + yym766 := z.DecBinary() + _ = yym766 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct755 := r.ContainerType() - if yyct755 == codecSelferValueTypeMap1234 { - yyl755 := r.ReadMapStart() - if yyl755 == 0 { + yyct767 := r.ContainerType() + if yyct767 == codecSelferValueTypeMap1234 { + yyl767 := r.ReadMapStart() + if yyl767 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl755, d) + x.codecDecodeSelfFromMap(yyl767, d) } - } else if yyct755 == codecSelferValueTypeArray1234 { - yyl755 := r.ReadArrayStart() - if yyl755 == 0 { + } else if yyct767 == codecSelferValueTypeArray1234 { + yyl767 := r.ReadArrayStart() + if yyl767 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl755, d) + x.codecDecodeSelfFromArray(yyl767, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -11424,12 +11688,12 @@ func (x *AWSElasticBlockStoreVolumeSource) codecDecodeSelfFromMap(l int, d *code var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys756Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys756Slc - var yyhl756 bool = l >= 0 - for yyj756 := 0; ; yyj756++ { - if yyhl756 { - if yyj756 >= 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 { @@ -11438,10 +11702,10 @@ func (x *AWSElasticBlockStoreVolumeSource) codecDecodeSelfFromMap(l int, d *code } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys756Slc = r.DecodeBytes(yys756Slc, true, true) - yys756 := string(yys756Slc) + yys768Slc = r.DecodeBytes(yys768Slc, true, true) + yys768 := string(yys768Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys756 { + switch yys768 { case "volumeID": if r.TryDecodeAsNil() { x.VolumeID = "" @@ -11467,9 +11731,9 @@ func (x *AWSElasticBlockStoreVolumeSource) codecDecodeSelfFromMap(l int, d *code x.ReadOnly = bool(r.DecodeBool()) } default: - z.DecStructFieldNotFound(-1, yys756) - } // end switch yys756 - } // end for yyj756 + z.DecStructFieldNotFound(-1, yys768) + } // end switch yys768 + } // end for yyj768 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -11477,16 +11741,16 @@ func (x *AWSElasticBlockStoreVolumeSource) codecDecodeSelfFromArray(l int, d *co var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj761 int - var yyb761 bool - var yyhl761 bool = l >= 0 - yyj761++ - if yyhl761 { - yyb761 = yyj761 > l + var yyj773 int + var yyb773 bool + var yyhl773 bool = l >= 0 + yyj773++ + if yyhl773 { + yyb773 = yyj773 > l } else { - yyb761 = r.CheckBreak() + yyb773 = r.CheckBreak() } - if yyb761 { + if yyb773 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -11496,13 +11760,13 @@ func (x *AWSElasticBlockStoreVolumeSource) codecDecodeSelfFromArray(l int, d *co } else { x.VolumeID = string(r.DecodeString()) } - yyj761++ - if yyhl761 { - yyb761 = yyj761 > l + yyj773++ + if yyhl773 { + yyb773 = yyj773 > l } else { - yyb761 = r.CheckBreak() + yyb773 = r.CheckBreak() } - if yyb761 { + if yyb773 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -11512,13 +11776,13 @@ func (x *AWSElasticBlockStoreVolumeSource) codecDecodeSelfFromArray(l int, d *co } else { x.FSType = string(r.DecodeString()) } - yyj761++ - if yyhl761 { - yyb761 = yyj761 > l + yyj773++ + if yyhl773 { + yyb773 = yyj773 > l } else { - yyb761 = r.CheckBreak() + yyb773 = r.CheckBreak() } - if yyb761 { + if yyb773 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -11528,13 +11792,13 @@ func (x *AWSElasticBlockStoreVolumeSource) codecDecodeSelfFromArray(l int, d *co } else { x.Partition = int32(r.DecodeInt(32)) } - yyj761++ - if yyhl761 { - yyb761 = yyj761 > l + yyj773++ + if yyhl773 { + yyb773 = yyj773 > l } else { - yyb761 = r.CheckBreak() + yyb773 = r.CheckBreak() } - if yyb761 { + if yyb773 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -11545,17 +11809,17 @@ func (x *AWSElasticBlockStoreVolumeSource) codecDecodeSelfFromArray(l int, d *co x.ReadOnly = bool(r.DecodeBool()) } for { - yyj761++ - if yyhl761 { - yyb761 = yyj761 > l + yyj773++ + if yyhl773 { + yyb773 = yyj773 > l } else { - yyb761 = r.CheckBreak() + yyb773 = r.CheckBreak() } - if yyb761 { + if yyb773 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj761-1, "") + z.DecStructFieldNotFound(yyj773-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -11567,35 +11831,35 @@ func (x *GitRepoVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym766 := z.EncBinary() - _ = yym766 + yym778 := z.EncBinary() + _ = yym778 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - 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 { + yysep779 := !z.EncBinary() + yy2arr779 := z.EncBasicHandle().StructToArray + var yyq779 [3]bool + _, _, _ = yysep779, yyq779, yy2arr779 + const yyr779 bool = false + yyq779[1] = x.Revision != "" + yyq779[2] = x.Directory != "" + var yynn779 int + if yyr779 || yy2arr779 { r.EncodeArrayStart(3) } else { - yynn767 = 1 - for _, b := range yyq767 { + yynn779 = 1 + for _, b := range yyq779 { if b { - yynn767++ + yynn779++ } } - r.EncodeMapStart(yynn767) - yynn767 = 0 + r.EncodeMapStart(yynn779) + yynn779 = 0 } - if yyr767 || yy2arr767 { + if yyr779 || yy2arr779 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym769 := z.EncBinary() - _ = yym769 + yym781 := z.EncBinary() + _ = yym781 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Repository)) @@ -11604,18 +11868,18 @@ func (x *GitRepoVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("repository")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym770 := z.EncBinary() - _ = yym770 + yym782 := z.EncBinary() + _ = yym782 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Repository)) } } - if yyr767 || yy2arr767 { + if yyr779 || yy2arr779 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq767[1] { - yym772 := z.EncBinary() - _ = yym772 + if yyq779[1] { + yym784 := z.EncBinary() + _ = yym784 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Revision)) @@ -11624,23 +11888,23 @@ func (x *GitRepoVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq767[1] { + if yyq779[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("revision")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym773 := z.EncBinary() - _ = yym773 + yym785 := z.EncBinary() + _ = yym785 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Revision)) } } } - if yyr767 || yy2arr767 { + if yyr779 || yy2arr779 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq767[2] { - yym775 := z.EncBinary() - _ = yym775 + if yyq779[2] { + yym787 := z.EncBinary() + _ = yym787 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Directory)) @@ -11649,19 +11913,19 @@ func (x *GitRepoVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq767[2] { + if yyq779[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("directory")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym776 := z.EncBinary() - _ = yym776 + yym788 := z.EncBinary() + _ = yym788 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Directory)) } } } - if yyr767 || yy2arr767 { + if yyr779 || yy2arr779 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -11674,25 +11938,25 @@ func (x *GitRepoVolumeSource) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym777 := z.DecBinary() - _ = yym777 + yym789 := z.DecBinary() + _ = yym789 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct778 := r.ContainerType() - if yyct778 == codecSelferValueTypeMap1234 { - yyl778 := r.ReadMapStart() - if yyl778 == 0 { + yyct790 := r.ContainerType() + if yyct790 == codecSelferValueTypeMap1234 { + yyl790 := r.ReadMapStart() + if yyl790 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl778, d) + x.codecDecodeSelfFromMap(yyl790, d) } - } else if yyct778 == codecSelferValueTypeArray1234 { - yyl778 := r.ReadArrayStart() - if yyl778 == 0 { + } else if yyct790 == codecSelferValueTypeArray1234 { + yyl790 := r.ReadArrayStart() + if yyl790 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl778, d) + x.codecDecodeSelfFromArray(yyl790, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -11704,12 +11968,12 @@ func (x *GitRepoVolumeSource) codecDecodeSelfFromMap(l int, d *codec1978.Decoder var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys779Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys779Slc - var yyhl779 bool = l >= 0 - for yyj779 := 0; ; yyj779++ { - if yyhl779 { - if yyj779 >= l { + var yys791Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys791Slc + var yyhl791 bool = l >= 0 + for yyj791 := 0; ; yyj791++ { + if yyhl791 { + if yyj791 >= l { break } } else { @@ -11718,10 +11982,10 @@ func (x *GitRepoVolumeSource) codecDecodeSelfFromMap(l int, d *codec1978.Decoder } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys779Slc = r.DecodeBytes(yys779Slc, true, true) - yys779 := string(yys779Slc) + yys791Slc = r.DecodeBytes(yys791Slc, true, true) + yys791 := string(yys791Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys779 { + switch yys791 { case "repository": if r.TryDecodeAsNil() { x.Repository = "" @@ -11741,9 +12005,9 @@ func (x *GitRepoVolumeSource) codecDecodeSelfFromMap(l int, d *codec1978.Decoder x.Directory = string(r.DecodeString()) } default: - z.DecStructFieldNotFound(-1, yys779) - } // end switch yys779 - } // end for yyj779 + z.DecStructFieldNotFound(-1, yys791) + } // end switch yys791 + } // end for yyj791 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -11751,16 +12015,16 @@ func (x *GitRepoVolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Decod var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj783 int - var yyb783 bool - var yyhl783 bool = l >= 0 - yyj783++ - if yyhl783 { - yyb783 = yyj783 > l + var yyj795 int + var yyb795 bool + var yyhl795 bool = l >= 0 + yyj795++ + if yyhl795 { + yyb795 = yyj795 > l } else { - yyb783 = r.CheckBreak() + yyb795 = r.CheckBreak() } - if yyb783 { + if yyb795 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -11770,13 +12034,13 @@ func (x *GitRepoVolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Decod } else { x.Repository = string(r.DecodeString()) } - yyj783++ - if yyhl783 { - yyb783 = yyj783 > l + yyj795++ + if yyhl795 { + yyb795 = yyj795 > l } else { - yyb783 = r.CheckBreak() + yyb795 = r.CheckBreak() } - if yyb783 { + if yyb795 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -11786,13 +12050,13 @@ func (x *GitRepoVolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Decod } else { x.Revision = string(r.DecodeString()) } - yyj783++ - if yyhl783 { - yyb783 = yyj783 > l + yyj795++ + if yyhl795 { + yyb795 = yyj795 > l } else { - yyb783 = r.CheckBreak() + yyb795 = r.CheckBreak() } - if yyb783 { + if yyb795 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -11803,17 +12067,17 @@ func (x *GitRepoVolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Decod x.Directory = string(r.DecodeString()) } for { - yyj783++ - if yyhl783 { - yyb783 = yyj783 > l + yyj795++ + if yyhl795 { + yyb795 = yyj795 > l } else { - yyb783 = r.CheckBreak() + yyb795 = r.CheckBreak() } - if yyb783 { + if yyb795 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj783-1, "") + z.DecStructFieldNotFound(yyj795-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -11825,37 +12089,37 @@ func (x *SecretVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym787 := z.EncBinary() - _ = yym787 + yym799 := z.EncBinary() + _ = yym799 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - 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 { + yysep800 := !z.EncBinary() + yy2arr800 := z.EncBasicHandle().StructToArray + var yyq800 [3]bool + _, _, _ = yysep800, yyq800, yy2arr800 + const yyr800 bool = false + yyq800[0] = x.SecretName != "" + yyq800[1] = len(x.Items) != 0 + yyq800[2] = x.DefaultMode != nil + var yynn800 int + if yyr800 || yy2arr800 { r.EncodeArrayStart(3) } else { - yynn788 = 0 - for _, b := range yyq788 { + yynn800 = 0 + for _, b := range yyq800 { if b { - yynn788++ + yynn800++ } } - r.EncodeMapStart(yynn788) - yynn788 = 0 + r.EncodeMapStart(yynn800) + yynn800 = 0 } - if yyr788 || yy2arr788 { + if yyr800 || yy2arr800 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq788[0] { - yym790 := z.EncBinary() - _ = yym790 + if yyq800[0] { + yym802 := z.EncBinary() + _ = yym802 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.SecretName)) @@ -11864,26 +12128,26 @@ func (x *SecretVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq788[0] { + if yyq800[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("secretName")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym791 := z.EncBinary() - _ = yym791 + yym803 := z.EncBinary() + _ = yym803 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.SecretName)) } } } - if yyr788 || yy2arr788 { + if yyr800 || yy2arr800 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq788[1] { + if yyq800[1] { if x.Items == nil { r.EncodeNil() } else { - yym793 := z.EncBinary() - _ = yym793 + yym805 := z.EncBinary() + _ = yym805 if false { } else { h.encSliceKeyToPath(([]KeyToPath)(x.Items), e) @@ -11893,15 +12157,15 @@ func (x *SecretVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq788[1] { + if yyq800[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("items")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.Items == nil { r.EncodeNil() } else { - yym794 := z.EncBinary() - _ = yym794 + yym806 := z.EncBinary() + _ = yym806 if false { } else { h.encSliceKeyToPath(([]KeyToPath)(x.Items), e) @@ -11909,42 +12173,42 @@ func (x *SecretVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr788 || yy2arr788 { + if yyr800 || yy2arr800 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq788[2] { + if yyq800[2] { if x.DefaultMode == nil { r.EncodeNil() } else { - yy796 := *x.DefaultMode - yym797 := z.EncBinary() - _ = yym797 + yy808 := *x.DefaultMode + yym809 := z.EncBinary() + _ = yym809 if false { } else { - r.EncodeInt(int64(yy796)) + r.EncodeInt(int64(yy808)) } } } else { r.EncodeNil() } } else { - if yyq788[2] { + if yyq800[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 + yy810 := *x.DefaultMode + yym811 := z.EncBinary() + _ = yym811 if false { } else { - r.EncodeInt(int64(yy798)) + r.EncodeInt(int64(yy810)) } } } } - if yyr788 || yy2arr788 { + if yyr800 || yy2arr800 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -11957,25 +12221,25 @@ func (x *SecretVolumeSource) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym800 := z.DecBinary() - _ = yym800 + yym812 := z.DecBinary() + _ = yym812 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct801 := r.ContainerType() - if yyct801 == codecSelferValueTypeMap1234 { - yyl801 := r.ReadMapStart() - if yyl801 == 0 { + yyct813 := r.ContainerType() + if yyct813 == codecSelferValueTypeMap1234 { + yyl813 := r.ReadMapStart() + if yyl813 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl801, d) + x.codecDecodeSelfFromMap(yyl813, d) } - } else if yyct801 == codecSelferValueTypeArray1234 { - yyl801 := r.ReadArrayStart() - if yyl801 == 0 { + } else if yyct813 == codecSelferValueTypeArray1234 { + yyl813 := r.ReadArrayStart() + if yyl813 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl801, d) + x.codecDecodeSelfFromArray(yyl813, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -11987,12 +12251,12 @@ func (x *SecretVolumeSource) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys802Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys802Slc - var yyhl802 bool = l >= 0 - for yyj802 := 0; ; yyj802++ { - if yyhl802 { - if yyj802 >= l { + var yys814Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys814Slc + var yyhl814 bool = l >= 0 + for yyj814 := 0; ; yyj814++ { + if yyhl814 { + if yyj814 >= l { break } } else { @@ -12001,10 +12265,10 @@ func (x *SecretVolumeSource) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys802Slc = r.DecodeBytes(yys802Slc, true, true) - yys802 := string(yys802Slc) + yys814Slc = r.DecodeBytes(yys814Slc, true, true) + yys814 := string(yys814Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys802 { + switch yys814 { case "secretName": if r.TryDecodeAsNil() { x.SecretName = "" @@ -12015,12 +12279,12 @@ func (x *SecretVolumeSource) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) if r.TryDecodeAsNil() { x.Items = nil } else { - yyv804 := &x.Items - yym805 := z.DecBinary() - _ = yym805 + yyv816 := &x.Items + yym817 := z.DecBinary() + _ = yym817 if false { } else { - h.decSliceKeyToPath((*[]KeyToPath)(yyv804), d) + h.decSliceKeyToPath((*[]KeyToPath)(yyv816), d) } } case "defaultMode": @@ -12032,17 +12296,17 @@ func (x *SecretVolumeSource) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) if x.DefaultMode == nil { x.DefaultMode = new(int32) } - yym807 := z.DecBinary() - _ = yym807 + yym819 := z.DecBinary() + _ = yym819 if false { } else { *((*int32)(x.DefaultMode)) = int32(r.DecodeInt(32)) } } default: - z.DecStructFieldNotFound(-1, yys802) - } // end switch yys802 - } // end for yyj802 + z.DecStructFieldNotFound(-1, yys814) + } // end switch yys814 + } // end for yyj814 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -12050,16 +12314,16 @@ func (x *SecretVolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Decode var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj808 int - var yyb808 bool - var yyhl808 bool = l >= 0 - yyj808++ - if yyhl808 { - yyb808 = yyj808 > l + var yyj820 int + var yyb820 bool + var yyhl820 bool = l >= 0 + yyj820++ + if yyhl820 { + yyb820 = yyj820 > l } else { - yyb808 = r.CheckBreak() + yyb820 = r.CheckBreak() } - if yyb808 { + if yyb820 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -12069,13 +12333,13 @@ func (x *SecretVolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Decode } else { x.SecretName = string(r.DecodeString()) } - yyj808++ - if yyhl808 { - yyb808 = yyj808 > l + yyj820++ + if yyhl820 { + yyb820 = yyj820 > l } else { - yyb808 = r.CheckBreak() + yyb820 = r.CheckBreak() } - if yyb808 { + if yyb820 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -12083,21 +12347,21 @@ func (x *SecretVolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Decode if r.TryDecodeAsNil() { x.Items = nil } else { - yyv810 := &x.Items - yym811 := z.DecBinary() - _ = yym811 + yyv822 := &x.Items + yym823 := z.DecBinary() + _ = yym823 if false { } else { - h.decSliceKeyToPath((*[]KeyToPath)(yyv810), d) + h.decSliceKeyToPath((*[]KeyToPath)(yyv822), d) } } - yyj808++ - if yyhl808 { - yyb808 = yyj808 > l + yyj820++ + if yyhl820 { + yyb820 = yyj820 > l } else { - yyb808 = r.CheckBreak() + yyb820 = r.CheckBreak() } - if yyb808 { + if yyb820 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -12110,25 +12374,25 @@ func (x *SecretVolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Decode if x.DefaultMode == nil { x.DefaultMode = new(int32) } - yym813 := z.DecBinary() - _ = yym813 + yym825 := z.DecBinary() + _ = yym825 if false { } else { *((*int32)(x.DefaultMode)) = int32(r.DecodeInt(32)) } } for { - yyj808++ - if yyhl808 { - yyb808 = yyj808 > l + yyj820++ + if yyhl820 { + yyb820 = yyj820 > l } else { - yyb808 = r.CheckBreak() + yyb820 = r.CheckBreak() } - if yyb808 { + if yyb820 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj808-1, "") + z.DecStructFieldNotFound(yyj820-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -12140,34 +12404,34 @@ func (x *NFSVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym814 := z.EncBinary() - _ = yym814 + yym826 := z.EncBinary() + _ = yym826 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - 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 { + yysep827 := !z.EncBinary() + yy2arr827 := z.EncBasicHandle().StructToArray + var yyq827 [3]bool + _, _, _ = yysep827, yyq827, yy2arr827 + const yyr827 bool = false + yyq827[2] = x.ReadOnly != false + var yynn827 int + if yyr827 || yy2arr827 { r.EncodeArrayStart(3) } else { - yynn815 = 2 - for _, b := range yyq815 { + yynn827 = 2 + for _, b := range yyq827 { if b { - yynn815++ + yynn827++ } } - r.EncodeMapStart(yynn815) - yynn815 = 0 + r.EncodeMapStart(yynn827) + yynn827 = 0 } - if yyr815 || yy2arr815 { + if yyr827 || yy2arr827 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym817 := z.EncBinary() - _ = yym817 + yym829 := z.EncBinary() + _ = yym829 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Server)) @@ -12176,17 +12440,17 @@ func (x *NFSVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("server")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym818 := z.EncBinary() - _ = yym818 + yym830 := z.EncBinary() + _ = yym830 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Server)) } } - if yyr815 || yy2arr815 { + if yyr827 || yy2arr827 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym820 := z.EncBinary() - _ = yym820 + yym832 := z.EncBinary() + _ = yym832 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Path)) @@ -12195,18 +12459,18 @@ func (x *NFSVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("path")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym821 := z.EncBinary() - _ = yym821 + yym833 := z.EncBinary() + _ = yym833 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Path)) } } - if yyr815 || yy2arr815 { + if yyr827 || yy2arr827 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq815[2] { - yym823 := z.EncBinary() - _ = yym823 + if yyq827[2] { + yym835 := z.EncBinary() + _ = yym835 if false { } else { r.EncodeBool(bool(x.ReadOnly)) @@ -12215,19 +12479,19 @@ func (x *NFSVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeBool(false) } } else { - if yyq815[2] { + if yyq827[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("readOnly")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym824 := z.EncBinary() - _ = yym824 + yym836 := z.EncBinary() + _ = yym836 if false { } else { r.EncodeBool(bool(x.ReadOnly)) } } } - if yyr815 || yy2arr815 { + if yyr827 || yy2arr827 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -12240,25 +12504,25 @@ func (x *NFSVolumeSource) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym825 := z.DecBinary() - _ = yym825 + yym837 := z.DecBinary() + _ = yym837 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct826 := r.ContainerType() - if yyct826 == codecSelferValueTypeMap1234 { - yyl826 := r.ReadMapStart() - if yyl826 == 0 { + yyct838 := r.ContainerType() + if yyct838 == codecSelferValueTypeMap1234 { + yyl838 := r.ReadMapStart() + if yyl838 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl826, d) + x.codecDecodeSelfFromMap(yyl838, d) } - } else if yyct826 == codecSelferValueTypeArray1234 { - yyl826 := r.ReadArrayStart() - if yyl826 == 0 { + } else if yyct838 == codecSelferValueTypeArray1234 { + yyl838 := r.ReadArrayStart() + if yyl838 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl826, d) + x.codecDecodeSelfFromArray(yyl838, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -12270,12 +12534,12 @@ func (x *NFSVolumeSource) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys827Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys827Slc - var yyhl827 bool = l >= 0 - for yyj827 := 0; ; yyj827++ { - if yyhl827 { - if yyj827 >= l { + var yys839Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys839Slc + var yyhl839 bool = l >= 0 + for yyj839 := 0; ; yyj839++ { + if yyhl839 { + if yyj839 >= l { break } } else { @@ -12284,10 +12548,10 @@ func (x *NFSVolumeSource) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys827Slc = r.DecodeBytes(yys827Slc, true, true) - yys827 := string(yys827Slc) + yys839Slc = r.DecodeBytes(yys839Slc, true, true) + yys839 := string(yys839Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys827 { + switch yys839 { case "server": if r.TryDecodeAsNil() { x.Server = "" @@ -12307,9 +12571,9 @@ func (x *NFSVolumeSource) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { x.ReadOnly = bool(r.DecodeBool()) } default: - z.DecStructFieldNotFound(-1, yys827) - } // end switch yys827 - } // end for yyj827 + z.DecStructFieldNotFound(-1, yys839) + } // end switch yys839 + } // end for yyj839 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -12317,16 +12581,16 @@ func (x *NFSVolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj831 int - var yyb831 bool - var yyhl831 bool = l >= 0 - yyj831++ - if yyhl831 { - yyb831 = yyj831 > l + var yyj843 int + var yyb843 bool + var yyhl843 bool = l >= 0 + yyj843++ + if yyhl843 { + yyb843 = yyj843 > l } else { - yyb831 = r.CheckBreak() + yyb843 = r.CheckBreak() } - if yyb831 { + if yyb843 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -12336,13 +12600,13 @@ func (x *NFSVolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) } else { x.Server = string(r.DecodeString()) } - yyj831++ - if yyhl831 { - yyb831 = yyj831 > l + yyj843++ + if yyhl843 { + yyb843 = yyj843 > l } else { - yyb831 = r.CheckBreak() + yyb843 = r.CheckBreak() } - if yyb831 { + if yyb843 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -12352,13 +12616,13 @@ func (x *NFSVolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) } else { x.Path = string(r.DecodeString()) } - yyj831++ - if yyhl831 { - yyb831 = yyj831 > l + yyj843++ + if yyhl843 { + yyb843 = yyj843 > l } else { - yyb831 = r.CheckBreak() + yyb843 = r.CheckBreak() } - if yyb831 { + if yyb843 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -12369,17 +12633,17 @@ func (x *NFSVolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) x.ReadOnly = bool(r.DecodeBool()) } for { - yyj831++ - if yyhl831 { - yyb831 = yyj831 > l + yyj843++ + if yyhl843 { + yyb843 = yyj843 > l } else { - yyb831 = r.CheckBreak() + yyb843 = r.CheckBreak() } - if yyb831 { + if yyb843 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj831-1, "") + z.DecStructFieldNotFound(yyj843-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -12391,36 +12655,36 @@ func (x *QuobyteVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym835 := z.EncBinary() - _ = yym835 + yym847 := z.EncBinary() + _ = yym847 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 { + yysep848 := !z.EncBinary() + yy2arr848 := z.EncBasicHandle().StructToArray + var yyq848 [5]bool + _, _, _ = yysep848, yyq848, yy2arr848 + const yyr848 bool = false + yyq848[2] = x.ReadOnly != false + yyq848[3] = x.User != "" + yyq848[4] = x.Group != "" + var yynn848 int + if yyr848 || yy2arr848 { r.EncodeArrayStart(5) } else { - yynn836 = 2 - for _, b := range yyq836 { + yynn848 = 2 + for _, b := range yyq848 { if b { - yynn836++ + yynn848++ } } - r.EncodeMapStart(yynn836) - yynn836 = 0 + r.EncodeMapStart(yynn848) + yynn848 = 0 } - if yyr836 || yy2arr836 { + if yyr848 || yy2arr848 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym838 := z.EncBinary() - _ = yym838 + yym850 := z.EncBinary() + _ = yym850 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Registry)) @@ -12429,17 +12693,17 @@ func (x *QuobyteVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("registry")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym839 := z.EncBinary() - _ = yym839 + yym851 := z.EncBinary() + _ = yym851 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Registry)) } } - if yyr836 || yy2arr836 { + if yyr848 || yy2arr848 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym841 := z.EncBinary() - _ = yym841 + yym853 := z.EncBinary() + _ = yym853 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Volume)) @@ -12448,18 +12712,18 @@ func (x *QuobyteVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("volume")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym842 := z.EncBinary() - _ = yym842 + yym854 := z.EncBinary() + _ = yym854 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Volume)) } } - if yyr836 || yy2arr836 { + if yyr848 || yy2arr848 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq836[2] { - yym844 := z.EncBinary() - _ = yym844 + if yyq848[2] { + yym856 := z.EncBinary() + _ = yym856 if false { } else { r.EncodeBool(bool(x.ReadOnly)) @@ -12468,23 +12732,23 @@ func (x *QuobyteVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeBool(false) } } else { - if yyq836[2] { + if yyq848[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("readOnly")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym845 := z.EncBinary() - _ = yym845 + yym857 := z.EncBinary() + _ = yym857 if false { } else { r.EncodeBool(bool(x.ReadOnly)) } } } - if yyr836 || yy2arr836 { + if yyr848 || yy2arr848 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq836[3] { - yym847 := z.EncBinary() - _ = yym847 + if yyq848[3] { + yym859 := z.EncBinary() + _ = yym859 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.User)) @@ -12493,23 +12757,23 @@ func (x *QuobyteVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq836[3] { + if yyq848[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("user")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym848 := z.EncBinary() - _ = yym848 + yym860 := z.EncBinary() + _ = yym860 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.User)) } } } - if yyr836 || yy2arr836 { + if yyr848 || yy2arr848 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq836[4] { - yym850 := z.EncBinary() - _ = yym850 + if yyq848[4] { + yym862 := z.EncBinary() + _ = yym862 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Group)) @@ -12518,19 +12782,19 @@ func (x *QuobyteVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq836[4] { + if yyq848[4] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("group")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym851 := z.EncBinary() - _ = yym851 + yym863 := z.EncBinary() + _ = yym863 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Group)) } } } - if yyr836 || yy2arr836 { + if yyr848 || yy2arr848 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -12543,25 +12807,25 @@ func (x *QuobyteVolumeSource) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym852 := z.DecBinary() - _ = yym852 + yym864 := z.DecBinary() + _ = yym864 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct853 := r.ContainerType() - if yyct853 == codecSelferValueTypeMap1234 { - yyl853 := r.ReadMapStart() - if yyl853 == 0 { + yyct865 := r.ContainerType() + if yyct865 == codecSelferValueTypeMap1234 { + yyl865 := r.ReadMapStart() + if yyl865 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl853, d) + x.codecDecodeSelfFromMap(yyl865, d) } - } else if yyct853 == codecSelferValueTypeArray1234 { - yyl853 := r.ReadArrayStart() - if yyl853 == 0 { + } else if yyct865 == codecSelferValueTypeArray1234 { + yyl865 := r.ReadArrayStart() + if yyl865 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl853, d) + x.codecDecodeSelfFromArray(yyl865, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -12573,12 +12837,12 @@ 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 { + var yys866Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys866Slc + var yyhl866 bool = l >= 0 + for yyj866 := 0; ; yyj866++ { + if yyhl866 { + if yyj866 >= l { break } } else { @@ -12587,10 +12851,10 @@ func (x *QuobyteVolumeSource) codecDecodeSelfFromMap(l int, d *codec1978.Decoder } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys854Slc = r.DecodeBytes(yys854Slc, true, true) - yys854 := string(yys854Slc) + yys866Slc = r.DecodeBytes(yys866Slc, true, true) + yys866 := string(yys866Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys854 { + switch yys866 { case "registry": if r.TryDecodeAsNil() { x.Registry = "" @@ -12622,9 +12886,9 @@ func (x *QuobyteVolumeSource) codecDecodeSelfFromMap(l int, d *codec1978.Decoder x.Group = string(r.DecodeString()) } default: - z.DecStructFieldNotFound(-1, yys854) - } // end switch yys854 - } // end for yyj854 + z.DecStructFieldNotFound(-1, yys866) + } // end switch yys866 + } // end for yyj866 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -12632,16 +12896,16 @@ func (x *QuobyteVolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Decod var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj860 int - var yyb860 bool - var yyhl860 bool = l >= 0 - yyj860++ - if yyhl860 { - yyb860 = yyj860 > l + var yyj872 int + var yyb872 bool + var yyhl872 bool = l >= 0 + yyj872++ + if yyhl872 { + yyb872 = yyj872 > l } else { - yyb860 = r.CheckBreak() + yyb872 = r.CheckBreak() } - if yyb860 { + if yyb872 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -12651,13 +12915,13 @@ func (x *QuobyteVolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Decod } else { x.Registry = string(r.DecodeString()) } - yyj860++ - if yyhl860 { - yyb860 = yyj860 > l + yyj872++ + if yyhl872 { + yyb872 = yyj872 > l } else { - yyb860 = r.CheckBreak() + yyb872 = r.CheckBreak() } - if yyb860 { + if yyb872 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -12667,13 +12931,13 @@ func (x *QuobyteVolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Decod } else { x.Volume = string(r.DecodeString()) } - yyj860++ - if yyhl860 { - yyb860 = yyj860 > l + yyj872++ + if yyhl872 { + yyb872 = yyj872 > l } else { - yyb860 = r.CheckBreak() + yyb872 = r.CheckBreak() } - if yyb860 { + if yyb872 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -12683,13 +12947,13 @@ func (x *QuobyteVolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Decod } else { x.ReadOnly = bool(r.DecodeBool()) } - yyj860++ - if yyhl860 { - yyb860 = yyj860 > l + yyj872++ + if yyhl872 { + yyb872 = yyj872 > l } else { - yyb860 = r.CheckBreak() + yyb872 = r.CheckBreak() } - if yyb860 { + if yyb872 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -12699,13 +12963,13 @@ func (x *QuobyteVolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Decod } else { x.User = string(r.DecodeString()) } - yyj860++ - if yyhl860 { - yyb860 = yyj860 > l + yyj872++ + if yyhl872 { + yyb872 = yyj872 > l } else { - yyb860 = r.CheckBreak() + yyb872 = r.CheckBreak() } - if yyb860 { + if yyb872 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -12716,17 +12980,17 @@ func (x *QuobyteVolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Decod x.Group = string(r.DecodeString()) } for { - yyj860++ - if yyhl860 { - yyb860 = yyj860 > l + yyj872++ + if yyhl872 { + yyb872 = yyj872 > l } else { - yyb860 = r.CheckBreak() + yyb872 = r.CheckBreak() } - if yyb860 { + if yyb872 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj860-1, "") + z.DecStructFieldNotFound(yyj872-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -12738,34 +13002,34 @@ func (x *GlusterfsVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym866 := z.EncBinary() - _ = yym866 + yym878 := z.EncBinary() + _ = yym878 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - 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 { + yysep879 := !z.EncBinary() + yy2arr879 := z.EncBasicHandle().StructToArray + var yyq879 [3]bool + _, _, _ = yysep879, yyq879, yy2arr879 + const yyr879 bool = false + yyq879[2] = x.ReadOnly != false + var yynn879 int + if yyr879 || yy2arr879 { r.EncodeArrayStart(3) } else { - yynn867 = 2 - for _, b := range yyq867 { + yynn879 = 2 + for _, b := range yyq879 { if b { - yynn867++ + yynn879++ } } - r.EncodeMapStart(yynn867) - yynn867 = 0 + r.EncodeMapStart(yynn879) + yynn879 = 0 } - if yyr867 || yy2arr867 { + if yyr879 || yy2arr879 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym869 := z.EncBinary() - _ = yym869 + yym881 := z.EncBinary() + _ = yym881 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.EndpointsName)) @@ -12774,17 +13038,17 @@ func (x *GlusterfsVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("endpoints")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym870 := z.EncBinary() - _ = yym870 + yym882 := z.EncBinary() + _ = yym882 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.EndpointsName)) } } - if yyr867 || yy2arr867 { + if yyr879 || yy2arr879 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym872 := z.EncBinary() - _ = yym872 + yym884 := z.EncBinary() + _ = yym884 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Path)) @@ -12793,18 +13057,18 @@ func (x *GlusterfsVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("path")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym873 := z.EncBinary() - _ = yym873 + yym885 := z.EncBinary() + _ = yym885 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Path)) } } - if yyr867 || yy2arr867 { + if yyr879 || yy2arr879 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq867[2] { - yym875 := z.EncBinary() - _ = yym875 + if yyq879[2] { + yym887 := z.EncBinary() + _ = yym887 if false { } else { r.EncodeBool(bool(x.ReadOnly)) @@ -12813,19 +13077,19 @@ func (x *GlusterfsVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeBool(false) } } else { - if yyq867[2] { + if yyq879[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("readOnly")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym876 := z.EncBinary() - _ = yym876 + yym888 := z.EncBinary() + _ = yym888 if false { } else { r.EncodeBool(bool(x.ReadOnly)) } } } - if yyr867 || yy2arr867 { + if yyr879 || yy2arr879 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -12838,25 +13102,25 @@ func (x *GlusterfsVolumeSource) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym877 := z.DecBinary() - _ = yym877 + yym889 := z.DecBinary() + _ = yym889 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct878 := r.ContainerType() - if yyct878 == codecSelferValueTypeMap1234 { - yyl878 := r.ReadMapStart() - if yyl878 == 0 { + yyct890 := r.ContainerType() + if yyct890 == codecSelferValueTypeMap1234 { + yyl890 := r.ReadMapStart() + if yyl890 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl878, d) + x.codecDecodeSelfFromMap(yyl890, d) } - } else if yyct878 == codecSelferValueTypeArray1234 { - yyl878 := r.ReadArrayStart() - if yyl878 == 0 { + } else if yyct890 == codecSelferValueTypeArray1234 { + yyl890 := r.ReadArrayStart() + if yyl890 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl878, d) + x.codecDecodeSelfFromArray(yyl890, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -12868,12 +13132,12 @@ func (x *GlusterfsVolumeSource) codecDecodeSelfFromMap(l int, d *codec1978.Decod var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys879Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys879Slc - var yyhl879 bool = l >= 0 - for yyj879 := 0; ; yyj879++ { - if yyhl879 { - if yyj879 >= l { + var yys891Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys891Slc + var yyhl891 bool = l >= 0 + for yyj891 := 0; ; yyj891++ { + if yyhl891 { + if yyj891 >= l { break } } else { @@ -12882,10 +13146,10 @@ func (x *GlusterfsVolumeSource) codecDecodeSelfFromMap(l int, d *codec1978.Decod } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys879Slc = r.DecodeBytes(yys879Slc, true, true) - yys879 := string(yys879Slc) + yys891Slc = r.DecodeBytes(yys891Slc, true, true) + yys891 := string(yys891Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys879 { + switch yys891 { case "endpoints": if r.TryDecodeAsNil() { x.EndpointsName = "" @@ -12905,9 +13169,9 @@ func (x *GlusterfsVolumeSource) codecDecodeSelfFromMap(l int, d *codec1978.Decod x.ReadOnly = bool(r.DecodeBool()) } default: - z.DecStructFieldNotFound(-1, yys879) - } // end switch yys879 - } // end for yyj879 + z.DecStructFieldNotFound(-1, yys891) + } // end switch yys891 + } // end for yyj891 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -12915,16 +13179,16 @@ func (x *GlusterfsVolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Dec var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj883 int - var yyb883 bool - var yyhl883 bool = l >= 0 - yyj883++ - if yyhl883 { - yyb883 = yyj883 > l + var yyj895 int + var yyb895 bool + var yyhl895 bool = l >= 0 + yyj895++ + if yyhl895 { + yyb895 = yyj895 > l } else { - yyb883 = r.CheckBreak() + yyb895 = r.CheckBreak() } - if yyb883 { + if yyb895 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -12934,13 +13198,13 @@ func (x *GlusterfsVolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Dec } else { x.EndpointsName = string(r.DecodeString()) } - yyj883++ - if yyhl883 { - yyb883 = yyj883 > l + yyj895++ + if yyhl895 { + yyb895 = yyj895 > l } else { - yyb883 = r.CheckBreak() + yyb895 = r.CheckBreak() } - if yyb883 { + if yyb895 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -12950,13 +13214,13 @@ func (x *GlusterfsVolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Dec } else { x.Path = string(r.DecodeString()) } - yyj883++ - if yyhl883 { - yyb883 = yyj883 > l + yyj895++ + if yyhl895 { + yyb895 = yyj895 > l } else { - yyb883 = r.CheckBreak() + yyb895 = r.CheckBreak() } - if yyb883 { + if yyb895 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -12967,17 +13231,17 @@ func (x *GlusterfsVolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Dec x.ReadOnly = bool(r.DecodeBool()) } for { - yyj883++ - if yyhl883 { - yyb883 = yyj883 > l + yyj895++ + if yyhl895 { + yyb895 = yyj895 > l } else { - yyb883 = r.CheckBreak() + yyb895 = r.CheckBreak() } - if yyb883 { + if yyb895 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj883-1, "") + z.DecStructFieldNotFound(yyj895-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -12989,42 +13253,42 @@ func (x *RBDVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym887 := z.EncBinary() - _ = yym887 + yym899 := z.EncBinary() + _ = yym899 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - 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 { + yysep900 := !z.EncBinary() + yy2arr900 := z.EncBasicHandle().StructToArray + var yyq900 [8]bool + _, _, _ = yysep900, yyq900, yy2arr900 + const yyr900 bool = false + yyq900[2] = x.FSType != "" + yyq900[3] = x.RBDPool != "" + yyq900[4] = x.RadosUser != "" + yyq900[5] = x.Keyring != "" + yyq900[6] = x.SecretRef != nil + yyq900[7] = x.ReadOnly != false + var yynn900 int + if yyr900 || yy2arr900 { r.EncodeArrayStart(8) } else { - yynn888 = 2 - for _, b := range yyq888 { + yynn900 = 2 + for _, b := range yyq900 { if b { - yynn888++ + yynn900++ } } - r.EncodeMapStart(yynn888) - yynn888 = 0 + r.EncodeMapStart(yynn900) + yynn900 = 0 } - if yyr888 || yy2arr888 { + if yyr900 || yy2arr900 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.CephMonitors == nil { r.EncodeNil() } else { - yym890 := z.EncBinary() - _ = yym890 + yym902 := z.EncBinary() + _ = yym902 if false { } else { z.F.EncSliceStringV(x.CephMonitors, false, e) @@ -13037,18 +13301,18 @@ func (x *RBDVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { if x.CephMonitors == nil { r.EncodeNil() } else { - yym891 := z.EncBinary() - _ = yym891 + yym903 := z.EncBinary() + _ = yym903 if false { } else { z.F.EncSliceStringV(x.CephMonitors, false, e) } } } - if yyr888 || yy2arr888 { + if yyr900 || yy2arr900 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym893 := z.EncBinary() - _ = yym893 + yym905 := z.EncBinary() + _ = yym905 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.RBDImage)) @@ -13057,18 +13321,18 @@ func (x *RBDVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("image")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym894 := z.EncBinary() - _ = yym894 + yym906 := z.EncBinary() + _ = yym906 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.RBDImage)) } } - if yyr888 || yy2arr888 { + if yyr900 || yy2arr900 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq888[2] { - yym896 := z.EncBinary() - _ = yym896 + if yyq900[2] { + yym908 := z.EncBinary() + _ = yym908 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.FSType)) @@ -13077,23 +13341,23 @@ func (x *RBDVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq888[2] { + if yyq900[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("fsType")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym897 := z.EncBinary() - _ = yym897 + yym909 := z.EncBinary() + _ = yym909 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.FSType)) } } } - if yyr888 || yy2arr888 { + if yyr900 || yy2arr900 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq888[3] { - yym899 := z.EncBinary() - _ = yym899 + if yyq900[3] { + yym911 := z.EncBinary() + _ = yym911 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.RBDPool)) @@ -13102,23 +13366,23 @@ func (x *RBDVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq888[3] { + if yyq900[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("pool")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym900 := z.EncBinary() - _ = yym900 + yym912 := z.EncBinary() + _ = yym912 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.RBDPool)) } } } - if yyr888 || yy2arr888 { + if yyr900 || yy2arr900 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq888[4] { - yym902 := z.EncBinary() - _ = yym902 + if yyq900[4] { + yym914 := z.EncBinary() + _ = yym914 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.RadosUser)) @@ -13127,23 +13391,23 @@ func (x *RBDVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq888[4] { + if yyq900[4] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("user")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym903 := z.EncBinary() - _ = yym903 + yym915 := z.EncBinary() + _ = yym915 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.RadosUser)) } } } - if yyr888 || yy2arr888 { + if yyr900 || yy2arr900 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq888[5] { - yym905 := z.EncBinary() - _ = yym905 + if yyq900[5] { + yym917 := z.EncBinary() + _ = yym917 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Keyring)) @@ -13152,21 +13416,21 @@ func (x *RBDVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq888[5] { + if yyq900[5] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("keyring")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym906 := z.EncBinary() - _ = yym906 + yym918 := z.EncBinary() + _ = yym918 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Keyring)) } } } - if yyr888 || yy2arr888 { + if yyr900 || yy2arr900 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq888[6] { + if yyq900[6] { if x.SecretRef == nil { r.EncodeNil() } else { @@ -13176,7 +13440,7 @@ func (x *RBDVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq888[6] { + if yyq900[6] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("secretRef")) z.EncSendContainerState(codecSelfer_containerMapValue1234) @@ -13187,11 +13451,11 @@ func (x *RBDVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr888 || yy2arr888 { + if yyr900 || yy2arr900 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq888[7] { - yym909 := z.EncBinary() - _ = yym909 + if yyq900[7] { + yym921 := z.EncBinary() + _ = yym921 if false { } else { r.EncodeBool(bool(x.ReadOnly)) @@ -13200,19 +13464,19 @@ func (x *RBDVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeBool(false) } } else { - if yyq888[7] { + if yyq900[7] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("readOnly")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym910 := z.EncBinary() - _ = yym910 + yym922 := z.EncBinary() + _ = yym922 if false { } else { r.EncodeBool(bool(x.ReadOnly)) } } } - if yyr888 || yy2arr888 { + if yyr900 || yy2arr900 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -13225,25 +13489,25 @@ func (x *RBDVolumeSource) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym911 := z.DecBinary() - _ = yym911 + yym923 := z.DecBinary() + _ = yym923 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct912 := r.ContainerType() - if yyct912 == codecSelferValueTypeMap1234 { - yyl912 := r.ReadMapStart() - if yyl912 == 0 { + yyct924 := r.ContainerType() + if yyct924 == codecSelferValueTypeMap1234 { + yyl924 := r.ReadMapStart() + if yyl924 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl912, d) + x.codecDecodeSelfFromMap(yyl924, d) } - } else if yyct912 == codecSelferValueTypeArray1234 { - yyl912 := r.ReadArrayStart() - if yyl912 == 0 { + } else if yyct924 == codecSelferValueTypeArray1234 { + yyl924 := r.ReadArrayStart() + if yyl924 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl912, d) + x.codecDecodeSelfFromArray(yyl924, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -13255,12 +13519,12 @@ func (x *RBDVolumeSource) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys913Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys913Slc - var yyhl913 bool = l >= 0 - for yyj913 := 0; ; yyj913++ { - if yyhl913 { - if yyj913 >= 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 { @@ -13269,20 +13533,20 @@ func (x *RBDVolumeSource) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys913Slc = r.DecodeBytes(yys913Slc, true, true) - yys913 := string(yys913Slc) + yys925Slc = r.DecodeBytes(yys925Slc, true, true) + yys925 := string(yys925Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys913 { + switch yys925 { case "monitors": if r.TryDecodeAsNil() { x.CephMonitors = nil } else { - yyv914 := &x.CephMonitors - yym915 := z.DecBinary() - _ = yym915 + yyv926 := &x.CephMonitors + yym927 := z.DecBinary() + _ = yym927 if false { } else { - z.F.DecSliceStringX(yyv914, false, d) + z.F.DecSliceStringX(yyv926, false, d) } } case "image": @@ -13333,9 +13597,9 @@ func (x *RBDVolumeSource) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { x.ReadOnly = bool(r.DecodeBool()) } default: - z.DecStructFieldNotFound(-1, yys913) - } // end switch yys913 - } // end for yyj913 + z.DecStructFieldNotFound(-1, yys925) + } // end switch yys925 + } // end for yyj925 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -13343,16 +13607,16 @@ func (x *RBDVolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj923 int - var yyb923 bool - var yyhl923 bool = l >= 0 - yyj923++ - if yyhl923 { - yyb923 = yyj923 > l + var yyj935 int + var yyb935 bool + var yyhl935 bool = l >= 0 + yyj935++ + if yyhl935 { + yyb935 = yyj935 > l } else { - yyb923 = r.CheckBreak() + yyb935 = r.CheckBreak() } - if yyb923 { + if yyb935 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -13360,21 +13624,21 @@ func (x *RBDVolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) if r.TryDecodeAsNil() { x.CephMonitors = nil } else { - yyv924 := &x.CephMonitors - yym925 := z.DecBinary() - _ = yym925 + yyv936 := &x.CephMonitors + yym937 := z.DecBinary() + _ = yym937 if false { } else { - z.F.DecSliceStringX(yyv924, false, d) + z.F.DecSliceStringX(yyv936, false, d) } } - yyj923++ - if yyhl923 { - yyb923 = yyj923 > l + yyj935++ + if yyhl935 { + yyb935 = yyj935 > l } else { - yyb923 = r.CheckBreak() + yyb935 = r.CheckBreak() } - if yyb923 { + if yyb935 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -13384,13 +13648,13 @@ func (x *RBDVolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) } else { x.RBDImage = string(r.DecodeString()) } - yyj923++ - if yyhl923 { - yyb923 = yyj923 > l + yyj935++ + if yyhl935 { + yyb935 = yyj935 > l } else { - yyb923 = r.CheckBreak() + yyb935 = r.CheckBreak() } - if yyb923 { + if yyb935 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -13400,13 +13664,13 @@ func (x *RBDVolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) } else { x.FSType = string(r.DecodeString()) } - yyj923++ - if yyhl923 { - yyb923 = yyj923 > l + yyj935++ + if yyhl935 { + yyb935 = yyj935 > l } else { - yyb923 = r.CheckBreak() + yyb935 = r.CheckBreak() } - if yyb923 { + if yyb935 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -13416,13 +13680,13 @@ func (x *RBDVolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) } else { x.RBDPool = string(r.DecodeString()) } - yyj923++ - if yyhl923 { - yyb923 = yyj923 > l + yyj935++ + if yyhl935 { + yyb935 = yyj935 > l } else { - yyb923 = r.CheckBreak() + yyb935 = r.CheckBreak() } - if yyb923 { + if yyb935 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -13432,13 +13696,13 @@ func (x *RBDVolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) } else { x.RadosUser = string(r.DecodeString()) } - yyj923++ - if yyhl923 { - yyb923 = yyj923 > l + yyj935++ + if yyhl935 { + yyb935 = yyj935 > l } else { - yyb923 = r.CheckBreak() + yyb935 = r.CheckBreak() } - if yyb923 { + if yyb935 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -13448,13 +13712,13 @@ func (x *RBDVolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) } else { x.Keyring = string(r.DecodeString()) } - yyj923++ - if yyhl923 { - yyb923 = yyj923 > l + yyj935++ + if yyhl935 { + yyb935 = yyj935 > l } else { - yyb923 = r.CheckBreak() + yyb935 = r.CheckBreak() } - if yyb923 { + if yyb935 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -13469,13 +13733,13 @@ func (x *RBDVolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) } x.SecretRef.CodecDecodeSelf(d) } - yyj923++ - if yyhl923 { - yyb923 = yyj923 > l + yyj935++ + if yyhl935 { + yyb935 = yyj935 > l } else { - yyb923 = r.CheckBreak() + yyb935 = r.CheckBreak() } - if yyb923 { + if yyb935 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -13486,17 +13750,17 @@ func (x *RBDVolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) x.ReadOnly = bool(r.DecodeBool()) } for { - yyj923++ - if yyhl923 { - yyb923 = yyj923 > l + yyj935++ + if yyhl935 { + yyb935 = yyj935 > l } else { - yyb923 = r.CheckBreak() + yyb935 = r.CheckBreak() } - if yyb923 { + if yyb935 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj923-1, "") + z.DecStructFieldNotFound(yyj935-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -13508,35 +13772,35 @@ func (x *CinderVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym933 := z.EncBinary() - _ = yym933 + yym945 := z.EncBinary() + _ = yym945 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - 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 { + yysep946 := !z.EncBinary() + yy2arr946 := z.EncBasicHandle().StructToArray + var yyq946 [3]bool + _, _, _ = yysep946, yyq946, yy2arr946 + const yyr946 bool = false + yyq946[1] = x.FSType != "" + yyq946[2] = x.ReadOnly != false + var yynn946 int + if yyr946 || yy2arr946 { r.EncodeArrayStart(3) } else { - yynn934 = 1 - for _, b := range yyq934 { + yynn946 = 1 + for _, b := range yyq946 { if b { - yynn934++ + yynn946++ } } - r.EncodeMapStart(yynn934) - yynn934 = 0 + r.EncodeMapStart(yynn946) + yynn946 = 0 } - if yyr934 || yy2arr934 { + if yyr946 || yy2arr946 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym936 := z.EncBinary() - _ = yym936 + yym948 := z.EncBinary() + _ = yym948 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.VolumeID)) @@ -13545,18 +13809,18 @@ func (x *CinderVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("volumeID")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym937 := z.EncBinary() - _ = yym937 + yym949 := z.EncBinary() + _ = yym949 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.VolumeID)) } } - if yyr934 || yy2arr934 { + if yyr946 || yy2arr946 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq934[1] { - yym939 := z.EncBinary() - _ = yym939 + if yyq946[1] { + yym951 := z.EncBinary() + _ = yym951 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.FSType)) @@ -13565,23 +13829,23 @@ func (x *CinderVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq934[1] { + if yyq946[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("fsType")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym940 := z.EncBinary() - _ = yym940 + yym952 := z.EncBinary() + _ = yym952 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.FSType)) } } } - if yyr934 || yy2arr934 { + if yyr946 || yy2arr946 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq934[2] { - yym942 := z.EncBinary() - _ = yym942 + if yyq946[2] { + yym954 := z.EncBinary() + _ = yym954 if false { } else { r.EncodeBool(bool(x.ReadOnly)) @@ -13590,19 +13854,19 @@ func (x *CinderVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeBool(false) } } else { - if yyq934[2] { + if yyq946[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("readOnly")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym943 := z.EncBinary() - _ = yym943 + yym955 := z.EncBinary() + _ = yym955 if false { } else { r.EncodeBool(bool(x.ReadOnly)) } } } - if yyr934 || yy2arr934 { + if yyr946 || yy2arr946 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -13615,25 +13879,25 @@ func (x *CinderVolumeSource) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym944 := z.DecBinary() - _ = yym944 + yym956 := z.DecBinary() + _ = yym956 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct945 := r.ContainerType() - if yyct945 == codecSelferValueTypeMap1234 { - yyl945 := r.ReadMapStart() - if yyl945 == 0 { + yyct957 := r.ContainerType() + if yyct957 == codecSelferValueTypeMap1234 { + yyl957 := r.ReadMapStart() + if yyl957 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl945, d) + x.codecDecodeSelfFromMap(yyl957, d) } - } else if yyct945 == codecSelferValueTypeArray1234 { - yyl945 := r.ReadArrayStart() - if yyl945 == 0 { + } else if yyct957 == codecSelferValueTypeArray1234 { + yyl957 := r.ReadArrayStart() + if yyl957 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl945, d) + x.codecDecodeSelfFromArray(yyl957, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -13645,12 +13909,12 @@ func (x *CinderVolumeSource) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys946Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys946Slc - var yyhl946 bool = l >= 0 - for yyj946 := 0; ; yyj946++ { - if yyhl946 { - if yyj946 >= l { + var yys958Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys958Slc + var yyhl958 bool = l >= 0 + for yyj958 := 0; ; yyj958++ { + if yyhl958 { + if yyj958 >= l { break } } else { @@ -13659,10 +13923,10 @@ func (x *CinderVolumeSource) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys946Slc = r.DecodeBytes(yys946Slc, true, true) - yys946 := string(yys946Slc) + yys958Slc = r.DecodeBytes(yys958Slc, true, true) + yys958 := string(yys958Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys946 { + switch yys958 { case "volumeID": if r.TryDecodeAsNil() { x.VolumeID = "" @@ -13682,9 +13946,9 @@ func (x *CinderVolumeSource) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) x.ReadOnly = bool(r.DecodeBool()) } default: - z.DecStructFieldNotFound(-1, yys946) - } // end switch yys946 - } // end for yyj946 + z.DecStructFieldNotFound(-1, yys958) + } // end switch yys958 + } // end for yyj958 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -13692,16 +13956,16 @@ func (x *CinderVolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Decode var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj950 int - var yyb950 bool - var yyhl950 bool = l >= 0 - yyj950++ - if yyhl950 { - yyb950 = yyj950 > l + var yyj962 int + var yyb962 bool + var yyhl962 bool = l >= 0 + yyj962++ + if yyhl962 { + yyb962 = yyj962 > l } else { - yyb950 = r.CheckBreak() + yyb962 = r.CheckBreak() } - if yyb950 { + if yyb962 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -13711,13 +13975,13 @@ func (x *CinderVolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Decode } else { x.VolumeID = string(r.DecodeString()) } - yyj950++ - if yyhl950 { - yyb950 = yyj950 > l + yyj962++ + if yyhl962 { + yyb962 = yyj962 > l } else { - yyb950 = r.CheckBreak() + yyb962 = r.CheckBreak() } - if yyb950 { + if yyb962 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -13727,13 +13991,13 @@ func (x *CinderVolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Decode } else { x.FSType = string(r.DecodeString()) } - yyj950++ - if yyhl950 { - yyb950 = yyj950 > l + yyj962++ + if yyhl962 { + yyb962 = yyj962 > l } else { - yyb950 = r.CheckBreak() + yyb962 = r.CheckBreak() } - if yyb950 { + if yyb962 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -13744,17 +14008,17 @@ func (x *CinderVolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Decode x.ReadOnly = bool(r.DecodeBool()) } for { - yyj950++ - if yyhl950 { - yyb950 = yyj950 > l + yyj962++ + if yyhl962 { + yyb962 = yyj962 > l } else { - yyb950 = r.CheckBreak() + yyb962 = r.CheckBreak() } - if yyb950 { + if yyb962 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj950-1, "") + z.DecStructFieldNotFound(yyj962-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -13766,41 +14030,41 @@ func (x *CephFSVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym954 := z.EncBinary() - _ = yym954 + yym966 := z.EncBinary() + _ = yym966 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - 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 { + yysep967 := !z.EncBinary() + yy2arr967 := z.EncBasicHandle().StructToArray + var yyq967 [6]bool + _, _, _ = yysep967, yyq967, yy2arr967 + const yyr967 bool = false + yyq967[1] = x.Path != "" + yyq967[2] = x.User != "" + yyq967[3] = x.SecretFile != "" + yyq967[4] = x.SecretRef != nil + yyq967[5] = x.ReadOnly != false + var yynn967 int + if yyr967 || yy2arr967 { r.EncodeArrayStart(6) } else { - yynn955 = 1 - for _, b := range yyq955 { + yynn967 = 1 + for _, b := range yyq967 { if b { - yynn955++ + yynn967++ } } - r.EncodeMapStart(yynn955) - yynn955 = 0 + r.EncodeMapStart(yynn967) + yynn967 = 0 } - if yyr955 || yy2arr955 { + if yyr967 || yy2arr967 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.Monitors == nil { r.EncodeNil() } else { - yym957 := z.EncBinary() - _ = yym957 + yym969 := z.EncBinary() + _ = yym969 if false { } else { z.F.EncSliceStringV(x.Monitors, false, e) @@ -13813,19 +14077,19 @@ func (x *CephFSVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { if x.Monitors == nil { r.EncodeNil() } else { - yym958 := z.EncBinary() - _ = yym958 + yym970 := z.EncBinary() + _ = yym970 if false { } else { z.F.EncSliceStringV(x.Monitors, false, e) } } } - if yyr955 || yy2arr955 { + if yyr967 || yy2arr967 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq955[1] { - yym960 := z.EncBinary() - _ = yym960 + if yyq967[1] { + yym972 := z.EncBinary() + _ = yym972 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Path)) @@ -13834,23 +14098,23 @@ func (x *CephFSVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq955[1] { + if yyq967[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("path")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym961 := z.EncBinary() - _ = yym961 + yym973 := z.EncBinary() + _ = yym973 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Path)) } } } - if yyr955 || yy2arr955 { + if yyr967 || yy2arr967 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq955[2] { - yym963 := z.EncBinary() - _ = yym963 + if yyq967[2] { + yym975 := z.EncBinary() + _ = yym975 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.User)) @@ -13859,23 +14123,23 @@ func (x *CephFSVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq955[2] { + if yyq967[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("user")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym964 := z.EncBinary() - _ = yym964 + yym976 := z.EncBinary() + _ = yym976 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.User)) } } } - if yyr955 || yy2arr955 { + if yyr967 || yy2arr967 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq955[3] { - yym966 := z.EncBinary() - _ = yym966 + if yyq967[3] { + yym978 := z.EncBinary() + _ = yym978 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.SecretFile)) @@ -13884,21 +14148,21 @@ func (x *CephFSVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq955[3] { + if yyq967[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("secretFile")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym967 := z.EncBinary() - _ = yym967 + yym979 := z.EncBinary() + _ = yym979 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.SecretFile)) } } } - if yyr955 || yy2arr955 { + if yyr967 || yy2arr967 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq955[4] { + if yyq967[4] { if x.SecretRef == nil { r.EncodeNil() } else { @@ -13908,7 +14172,7 @@ func (x *CephFSVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq955[4] { + if yyq967[4] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("secretRef")) z.EncSendContainerState(codecSelfer_containerMapValue1234) @@ -13919,11 +14183,11 @@ func (x *CephFSVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr955 || yy2arr955 { + if yyr967 || yy2arr967 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq955[5] { - yym970 := z.EncBinary() - _ = yym970 + if yyq967[5] { + yym982 := z.EncBinary() + _ = yym982 if false { } else { r.EncodeBool(bool(x.ReadOnly)) @@ -13932,19 +14196,19 @@ func (x *CephFSVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeBool(false) } } else { - if yyq955[5] { + if yyq967[5] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("readOnly")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym971 := z.EncBinary() - _ = yym971 + yym983 := z.EncBinary() + _ = yym983 if false { } else { r.EncodeBool(bool(x.ReadOnly)) } } } - if yyr955 || yy2arr955 { + if yyr967 || yy2arr967 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -13957,25 +14221,25 @@ func (x *CephFSVolumeSource) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym972 := z.DecBinary() - _ = yym972 + yym984 := z.DecBinary() + _ = yym984 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct973 := r.ContainerType() - if yyct973 == codecSelferValueTypeMap1234 { - yyl973 := r.ReadMapStart() - if yyl973 == 0 { + yyct985 := r.ContainerType() + if yyct985 == codecSelferValueTypeMap1234 { + yyl985 := r.ReadMapStart() + if yyl985 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl973, d) + x.codecDecodeSelfFromMap(yyl985, d) } - } else if yyct973 == codecSelferValueTypeArray1234 { - yyl973 := r.ReadArrayStart() - if yyl973 == 0 { + } else if yyct985 == codecSelferValueTypeArray1234 { + yyl985 := r.ReadArrayStart() + if yyl985 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl973, d) + x.codecDecodeSelfFromArray(yyl985, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -13987,12 +14251,12 @@ func (x *CephFSVolumeSource) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys974Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys974Slc - var yyhl974 bool = l >= 0 - for yyj974 := 0; ; yyj974++ { - if yyhl974 { - if yyj974 >= l { + var yys986Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys986Slc + var yyhl986 bool = l >= 0 + for yyj986 := 0; ; yyj986++ { + if yyhl986 { + if yyj986 >= l { break } } else { @@ -14001,20 +14265,20 @@ func (x *CephFSVolumeSource) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys974Slc = r.DecodeBytes(yys974Slc, true, true) - yys974 := string(yys974Slc) + yys986Slc = r.DecodeBytes(yys986Slc, true, true) + yys986 := string(yys986Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys974 { + switch yys986 { case "monitors": if r.TryDecodeAsNil() { x.Monitors = nil } else { - yyv975 := &x.Monitors - yym976 := z.DecBinary() - _ = yym976 + yyv987 := &x.Monitors + yym988 := z.DecBinary() + _ = yym988 if false { } else { - z.F.DecSliceStringX(yyv975, false, d) + z.F.DecSliceStringX(yyv987, false, d) } } case "path": @@ -14053,9 +14317,9 @@ func (x *CephFSVolumeSource) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) x.ReadOnly = bool(r.DecodeBool()) } default: - z.DecStructFieldNotFound(-1, yys974) - } // end switch yys974 - } // end for yyj974 + z.DecStructFieldNotFound(-1, yys986) + } // end switch yys986 + } // end for yyj986 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -14063,16 +14327,16 @@ func (x *CephFSVolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Decode var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj982 int - var yyb982 bool - var yyhl982 bool = l >= 0 - yyj982++ - if yyhl982 { - yyb982 = yyj982 > l + var yyj994 int + var yyb994 bool + var yyhl994 bool = l >= 0 + yyj994++ + if yyhl994 { + yyb994 = yyj994 > l } else { - yyb982 = r.CheckBreak() + yyb994 = r.CheckBreak() } - if yyb982 { + if yyb994 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -14080,21 +14344,21 @@ func (x *CephFSVolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Decode if r.TryDecodeAsNil() { x.Monitors = nil } else { - yyv983 := &x.Monitors - yym984 := z.DecBinary() - _ = yym984 + yyv995 := &x.Monitors + yym996 := z.DecBinary() + _ = yym996 if false { } else { - z.F.DecSliceStringX(yyv983, false, d) + z.F.DecSliceStringX(yyv995, false, d) } } - yyj982++ - if yyhl982 { - yyb982 = yyj982 > l + yyj994++ + if yyhl994 { + yyb994 = yyj994 > l } else { - yyb982 = r.CheckBreak() + yyb994 = r.CheckBreak() } - if yyb982 { + if yyb994 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -14104,13 +14368,13 @@ func (x *CephFSVolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Decode } else { x.Path = string(r.DecodeString()) } - yyj982++ - if yyhl982 { - yyb982 = yyj982 > l + yyj994++ + if yyhl994 { + yyb994 = yyj994 > l } else { - yyb982 = r.CheckBreak() + yyb994 = r.CheckBreak() } - if yyb982 { + if yyb994 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -14120,13 +14384,13 @@ func (x *CephFSVolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Decode } else { x.User = string(r.DecodeString()) } - yyj982++ - if yyhl982 { - yyb982 = yyj982 > l + yyj994++ + if yyhl994 { + yyb994 = yyj994 > l } else { - yyb982 = r.CheckBreak() + yyb994 = r.CheckBreak() } - if yyb982 { + if yyb994 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -14136,13 +14400,13 @@ func (x *CephFSVolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Decode } else { x.SecretFile = string(r.DecodeString()) } - yyj982++ - if yyhl982 { - yyb982 = yyj982 > l + yyj994++ + if yyhl994 { + yyb994 = yyj994 > l } else { - yyb982 = r.CheckBreak() + yyb994 = r.CheckBreak() } - if yyb982 { + if yyb994 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -14157,13 +14421,13 @@ func (x *CephFSVolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Decode } x.SecretRef.CodecDecodeSelf(d) } - yyj982++ - if yyhl982 { - yyb982 = yyj982 > l + yyj994++ + if yyhl994 { + yyb994 = yyj994 > l } else { - yyb982 = r.CheckBreak() + yyb994 = r.CheckBreak() } - if yyb982 { + if yyb994 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -14174,17 +14438,17 @@ func (x *CephFSVolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Decode x.ReadOnly = bool(r.DecodeBool()) } for { - yyj982++ - if yyhl982 { - yyb982 = yyj982 > l + yyj994++ + if yyhl994 { + yyb994 = yyj994 > l } else { - yyb982 = r.CheckBreak() + yyb994 = r.CheckBreak() } - if yyb982 { + if yyb994 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj982-1, "") + z.DecStructFieldNotFound(yyj994-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -14196,49 +14460,82 @@ func (x *FlockerVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym990 := z.EncBinary() - _ = yym990 + yym1002 := z.EncBinary() + _ = yym1002 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - 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) + yysep1003 := !z.EncBinary() + yy2arr1003 := z.EncBasicHandle().StructToArray + var yyq1003 [2]bool + _, _, _ = yysep1003, yyq1003, yy2arr1003 + const yyr1003 bool = false + yyq1003[0] = x.DatasetName != "" + yyq1003[1] = x.DatasetUUID != "" + var yynn1003 int + if yyr1003 || yy2arr1003 { + r.EncodeArrayStart(2) } else { - yynn991 = 1 - for _, b := range yyq991 { + yynn1003 = 0 + for _, b := range yyq1003 { if b { - yynn991++ + yynn1003++ } } - r.EncodeMapStart(yynn991) - yynn991 = 0 + r.EncodeMapStart(yynn1003) + yynn1003 = 0 } - if yyr991 || yy2arr991 { + if yyr1003 || yy2arr1003 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym993 := z.EncBinary() - _ = yym993 - if false { + if yyq1003[0] { + yym1005 := z.EncBinary() + _ = yym1005 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.DatasetName)) + } } else { - r.EncodeString(codecSelferC_UTF81234, string(x.DatasetName)) + r.EncodeString(codecSelferC_UTF81234, "") } } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("datasetName")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym994 := z.EncBinary() - _ = yym994 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.DatasetName)) + if yyq1003[0] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("datasetName")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym1006 := z.EncBinary() + _ = yym1006 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.DatasetName)) + } } } - if yyr991 || yy2arr991 { + if yyr1003 || yy2arr1003 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq1003[1] { + yym1008 := z.EncBinary() + _ = yym1008 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.DatasetUUID)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq1003[1] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("datasetUUID")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym1009 := z.EncBinary() + _ = yym1009 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.DatasetUUID)) + } + } + } + if yyr1003 || yy2arr1003 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -14251,25 +14548,25 @@ func (x *FlockerVolumeSource) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym995 := z.DecBinary() - _ = yym995 + yym1010 := z.DecBinary() + _ = yym1010 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct996 := r.ContainerType() - if yyct996 == codecSelferValueTypeMap1234 { - yyl996 := r.ReadMapStart() - if yyl996 == 0 { + yyct1011 := r.ContainerType() + if yyct1011 == codecSelferValueTypeMap1234 { + yyl1011 := r.ReadMapStart() + if yyl1011 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl996, d) + x.codecDecodeSelfFromMap(yyl1011, d) } - } else if yyct996 == codecSelferValueTypeArray1234 { - yyl996 := r.ReadArrayStart() - if yyl996 == 0 { + } else if yyct1011 == codecSelferValueTypeArray1234 { + yyl1011 := r.ReadArrayStart() + if yyl1011 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl996, d) + x.codecDecodeSelfFromArray(yyl1011, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -14281,12 +14578,12 @@ func (x *FlockerVolumeSource) codecDecodeSelfFromMap(l int, d *codec1978.Decoder var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys997Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys997Slc - var yyhl997 bool = l >= 0 - for yyj997 := 0; ; yyj997++ { - if yyhl997 { - if yyj997 >= l { + var yys1012Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys1012Slc + var yyhl1012 bool = l >= 0 + for yyj1012 := 0; ; yyj1012++ { + if yyhl1012 { + if yyj1012 >= l { break } } else { @@ -14295,20 +14592,26 @@ func (x *FlockerVolumeSource) codecDecodeSelfFromMap(l int, d *codec1978.Decoder } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys997Slc = r.DecodeBytes(yys997Slc, true, true) - yys997 := string(yys997Slc) + yys1012Slc = r.DecodeBytes(yys1012Slc, true, true) + yys1012 := string(yys1012Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys997 { + switch yys1012 { case "datasetName": if r.TryDecodeAsNil() { x.DatasetName = "" } else { x.DatasetName = string(r.DecodeString()) } + case "datasetUUID": + if r.TryDecodeAsNil() { + x.DatasetUUID = "" + } else { + x.DatasetUUID = string(r.DecodeString()) + } default: - z.DecStructFieldNotFound(-1, yys997) - } // end switch yys997 - } // end for yyj997 + z.DecStructFieldNotFound(-1, yys1012) + } // end switch yys1012 + } // end for yyj1012 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -14316,16 +14619,16 @@ func (x *FlockerVolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Decod var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj999 int - var yyb999 bool - var yyhl999 bool = l >= 0 - yyj999++ - if yyhl999 { - yyb999 = yyj999 > l + var yyj1015 int + var yyb1015 bool + var yyhl1015 bool = l >= 0 + yyj1015++ + if yyhl1015 { + yyb1015 = yyj1015 > l } else { - yyb999 = r.CheckBreak() + yyb1015 = r.CheckBreak() } - if yyb999 { + if yyb1015 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -14335,18 +14638,34 @@ func (x *FlockerVolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Decod } else { x.DatasetName = string(r.DecodeString()) } + yyj1015++ + if yyhl1015 { + yyb1015 = yyj1015 > l + } else { + yyb1015 = r.CheckBreak() + } + if yyb1015 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.DatasetUUID = "" + } else { + x.DatasetUUID = string(r.DecodeString()) + } for { - yyj999++ - if yyhl999 { - yyb999 = yyj999 > l + yyj1015++ + if yyhl1015 { + yyb1015 = yyj1015 > l } else { - yyb999 = r.CheckBreak() + yyb1015 = r.CheckBreak() } - if yyb999 { + if yyb1015 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj999-1, "") + z.DecStructFieldNotFound(yyj1015-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -14358,39 +14677,39 @@ func (x *DownwardAPIVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1001 := z.EncBinary() - _ = yym1001 + yym1018 := z.EncBinary() + _ = yym1018 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - 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 { + yysep1019 := !z.EncBinary() + yy2arr1019 := z.EncBasicHandle().StructToArray + var yyq1019 [2]bool + _, _, _ = yysep1019, yyq1019, yy2arr1019 + const yyr1019 bool = false + yyq1019[0] = len(x.Items) != 0 + yyq1019[1] = x.DefaultMode != nil + var yynn1019 int + if yyr1019 || yy2arr1019 { r.EncodeArrayStart(2) } else { - yynn1002 = 0 - for _, b := range yyq1002 { + yynn1019 = 0 + for _, b := range yyq1019 { if b { - yynn1002++ + yynn1019++ } } - r.EncodeMapStart(yynn1002) - yynn1002 = 0 + r.EncodeMapStart(yynn1019) + yynn1019 = 0 } - if yyr1002 || yy2arr1002 { + if yyr1019 || yy2arr1019 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1002[0] { + if yyq1019[0] { if x.Items == nil { r.EncodeNil() } else { - yym1004 := z.EncBinary() - _ = yym1004 + yym1021 := z.EncBinary() + _ = yym1021 if false { } else { h.encSliceDownwardAPIVolumeFile(([]DownwardAPIVolumeFile)(x.Items), e) @@ -14400,15 +14719,15 @@ func (x *DownwardAPIVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq1002[0] { + if yyq1019[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("items")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.Items == nil { r.EncodeNil() } else { - yym1005 := z.EncBinary() - _ = yym1005 + yym1022 := z.EncBinary() + _ = yym1022 if false { } else { h.encSliceDownwardAPIVolumeFile(([]DownwardAPIVolumeFile)(x.Items), e) @@ -14416,42 +14735,42 @@ func (x *DownwardAPIVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr1002 || yy2arr1002 { + if yyr1019 || yy2arr1019 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1002[1] { + if yyq1019[1] { if x.DefaultMode == nil { r.EncodeNil() } else { - yy1007 := *x.DefaultMode - yym1008 := z.EncBinary() - _ = yym1008 + yy1024 := *x.DefaultMode + yym1025 := z.EncBinary() + _ = yym1025 if false { } else { - r.EncodeInt(int64(yy1007)) + r.EncodeInt(int64(yy1024)) } } } else { r.EncodeNil() } } else { - if yyq1002[1] { + if yyq1019[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 + yy1026 := *x.DefaultMode + yym1027 := z.EncBinary() + _ = yym1027 if false { } else { - r.EncodeInt(int64(yy1009)) + r.EncodeInt(int64(yy1026)) } } } } - if yyr1002 || yy2arr1002 { + if yyr1019 || yy2arr1019 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -14464,25 +14783,25 @@ func (x *DownwardAPIVolumeSource) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1011 := z.DecBinary() - _ = yym1011 + yym1028 := z.DecBinary() + _ = yym1028 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct1012 := r.ContainerType() - if yyct1012 == codecSelferValueTypeMap1234 { - yyl1012 := r.ReadMapStart() - if yyl1012 == 0 { + yyct1029 := r.ContainerType() + if yyct1029 == codecSelferValueTypeMap1234 { + yyl1029 := r.ReadMapStart() + if yyl1029 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl1012, d) + x.codecDecodeSelfFromMap(yyl1029, d) } - } else if yyct1012 == codecSelferValueTypeArray1234 { - yyl1012 := r.ReadArrayStart() - if yyl1012 == 0 { + } else if yyct1029 == codecSelferValueTypeArray1234 { + yyl1029 := r.ReadArrayStart() + if yyl1029 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl1012, d) + x.codecDecodeSelfFromArray(yyl1029, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -14494,12 +14813,12 @@ func (x *DownwardAPIVolumeSource) codecDecodeSelfFromMap(l int, d *codec1978.Dec var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys1013Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys1013Slc - var yyhl1013 bool = l >= 0 - for yyj1013 := 0; ; yyj1013++ { - if yyhl1013 { - if yyj1013 >= l { + var yys1030Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys1030Slc + var yyhl1030 bool = l >= 0 + for yyj1030 := 0; ; yyj1030++ { + if yyhl1030 { + if yyj1030 >= l { break } } else { @@ -14508,20 +14827,20 @@ func (x *DownwardAPIVolumeSource) codecDecodeSelfFromMap(l int, d *codec1978.Dec } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys1013Slc = r.DecodeBytes(yys1013Slc, true, true) - yys1013 := string(yys1013Slc) + yys1030Slc = r.DecodeBytes(yys1030Slc, true, true) + yys1030 := string(yys1030Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys1013 { + switch yys1030 { case "items": if r.TryDecodeAsNil() { x.Items = nil } else { - yyv1014 := &x.Items - yym1015 := z.DecBinary() - _ = yym1015 + yyv1031 := &x.Items + yym1032 := z.DecBinary() + _ = yym1032 if false { } else { - h.decSliceDownwardAPIVolumeFile((*[]DownwardAPIVolumeFile)(yyv1014), d) + h.decSliceDownwardAPIVolumeFile((*[]DownwardAPIVolumeFile)(yyv1031), d) } } case "defaultMode": @@ -14533,17 +14852,17 @@ func (x *DownwardAPIVolumeSource) codecDecodeSelfFromMap(l int, d *codec1978.Dec if x.DefaultMode == nil { x.DefaultMode = new(int32) } - yym1017 := z.DecBinary() - _ = yym1017 + yym1034 := z.DecBinary() + _ = yym1034 if false { } else { *((*int32)(x.DefaultMode)) = int32(r.DecodeInt(32)) } } default: - z.DecStructFieldNotFound(-1, yys1013) - } // end switch yys1013 - } // end for yyj1013 + z.DecStructFieldNotFound(-1, yys1030) + } // end switch yys1030 + } // end for yyj1030 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -14551,16 +14870,16 @@ func (x *DownwardAPIVolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.D var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj1018 int - var yyb1018 bool - var yyhl1018 bool = l >= 0 - yyj1018++ - if yyhl1018 { - yyb1018 = yyj1018 > l + var yyj1035 int + var yyb1035 bool + var yyhl1035 bool = l >= 0 + yyj1035++ + if yyhl1035 { + yyb1035 = yyj1035 > l } else { - yyb1018 = r.CheckBreak() + yyb1035 = r.CheckBreak() } - if yyb1018 { + if yyb1035 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -14568,21 +14887,21 @@ func (x *DownwardAPIVolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.D if r.TryDecodeAsNil() { x.Items = nil } else { - yyv1019 := &x.Items - yym1020 := z.DecBinary() - _ = yym1020 + yyv1036 := &x.Items + yym1037 := z.DecBinary() + _ = yym1037 if false { } else { - h.decSliceDownwardAPIVolumeFile((*[]DownwardAPIVolumeFile)(yyv1019), d) + h.decSliceDownwardAPIVolumeFile((*[]DownwardAPIVolumeFile)(yyv1036), d) } } - yyj1018++ - if yyhl1018 { - yyb1018 = yyj1018 > l + yyj1035++ + if yyhl1035 { + yyb1035 = yyj1035 > l } else { - yyb1018 = r.CheckBreak() + yyb1035 = r.CheckBreak() } - if yyb1018 { + if yyb1035 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -14595,25 +14914,25 @@ func (x *DownwardAPIVolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.D if x.DefaultMode == nil { x.DefaultMode = new(int32) } - yym1022 := z.DecBinary() - _ = yym1022 + yym1039 := z.DecBinary() + _ = yym1039 if false { } else { *((*int32)(x.DefaultMode)) = int32(r.DecodeInt(32)) } } for { - yyj1018++ - if yyhl1018 { - yyb1018 = yyj1018 > l + yyj1035++ + if yyhl1035 { + yyb1035 = yyj1035 > l } else { - yyb1018 = r.CheckBreak() + yyb1035 = r.CheckBreak() } - if yyb1018 { + if yyb1035 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj1018-1, "") + z.DecStructFieldNotFound(yyj1035-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -14625,36 +14944,36 @@ func (x *DownwardAPIVolumeFile) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1023 := z.EncBinary() - _ = yym1023 + yym1040 := z.EncBinary() + _ = yym1040 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - 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 { + yysep1041 := !z.EncBinary() + yy2arr1041 := z.EncBasicHandle().StructToArray + var yyq1041 [4]bool + _, _, _ = yysep1041, yyq1041, yy2arr1041 + const yyr1041 bool = false + yyq1041[1] = x.FieldRef != nil + yyq1041[2] = x.ResourceFieldRef != nil + yyq1041[3] = x.Mode != nil + var yynn1041 int + if yyr1041 || yy2arr1041 { r.EncodeArrayStart(4) } else { - yynn1024 = 1 - for _, b := range yyq1024 { + yynn1041 = 1 + for _, b := range yyq1041 { if b { - yynn1024++ + yynn1041++ } } - r.EncodeMapStart(yynn1024) - yynn1024 = 0 + r.EncodeMapStart(yynn1041) + yynn1041 = 0 } - if yyr1024 || yy2arr1024 { + if yyr1041 || yy2arr1041 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym1026 := z.EncBinary() - _ = yym1026 + yym1043 := z.EncBinary() + _ = yym1043 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Path)) @@ -14663,16 +14982,16 @@ func (x *DownwardAPIVolumeFile) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("path")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym1027 := z.EncBinary() - _ = yym1027 + yym1044 := z.EncBinary() + _ = yym1044 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Path)) } } - if yyr1024 || yy2arr1024 { + if yyr1041 || yy2arr1041 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1024[1] { + if yyq1041[1] { if x.FieldRef == nil { r.EncodeNil() } else { @@ -14682,7 +15001,7 @@ func (x *DownwardAPIVolumeFile) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq1024[1] { + if yyq1041[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("fieldRef")) z.EncSendContainerState(codecSelfer_containerMapValue1234) @@ -14693,9 +15012,9 @@ func (x *DownwardAPIVolumeFile) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr1024 || yy2arr1024 { + if yyr1041 || yy2arr1041 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1024[2] { + if yyq1041[2] { if x.ResourceFieldRef == nil { r.EncodeNil() } else { @@ -14705,7 +15024,7 @@ func (x *DownwardAPIVolumeFile) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq1024[2] { + if yyq1041[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("resourceFieldRef")) z.EncSendContainerState(codecSelfer_containerMapValue1234) @@ -14716,42 +15035,42 @@ func (x *DownwardAPIVolumeFile) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr1024 || yy2arr1024 { + if yyr1041 || yy2arr1041 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1024[3] { + if yyq1041[3] { if x.Mode == nil { r.EncodeNil() } else { - yy1031 := *x.Mode - yym1032 := z.EncBinary() - _ = yym1032 + yy1048 := *x.Mode + yym1049 := z.EncBinary() + _ = yym1049 if false { } else { - r.EncodeInt(int64(yy1031)) + r.EncodeInt(int64(yy1048)) } } } else { r.EncodeNil() } } else { - if yyq1024[3] { + if yyq1041[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 + yy1050 := *x.Mode + yym1051 := z.EncBinary() + _ = yym1051 if false { } else { - r.EncodeInt(int64(yy1033)) + r.EncodeInt(int64(yy1050)) } } } } - if yyr1024 || yy2arr1024 { + if yyr1041 || yy2arr1041 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -14764,25 +15083,25 @@ func (x *DownwardAPIVolumeFile) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1035 := z.DecBinary() - _ = yym1035 + yym1052 := z.DecBinary() + _ = yym1052 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct1036 := r.ContainerType() - if yyct1036 == codecSelferValueTypeMap1234 { - yyl1036 := r.ReadMapStart() - if yyl1036 == 0 { + yyct1053 := r.ContainerType() + if yyct1053 == codecSelferValueTypeMap1234 { + yyl1053 := r.ReadMapStart() + if yyl1053 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl1036, d) + x.codecDecodeSelfFromMap(yyl1053, d) } - } else if yyct1036 == codecSelferValueTypeArray1234 { - yyl1036 := r.ReadArrayStart() - if yyl1036 == 0 { + } else if yyct1053 == codecSelferValueTypeArray1234 { + yyl1053 := r.ReadArrayStart() + if yyl1053 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl1036, d) + x.codecDecodeSelfFromArray(yyl1053, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -14794,12 +15113,12 @@ func (x *DownwardAPIVolumeFile) codecDecodeSelfFromMap(l int, d *codec1978.Decod var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys1037Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys1037Slc - var yyhl1037 bool = l >= 0 - for yyj1037 := 0; ; yyj1037++ { - if yyhl1037 { - if yyj1037 >= l { + var yys1054Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys1054Slc + var yyhl1054 bool = l >= 0 + for yyj1054 := 0; ; yyj1054++ { + if yyhl1054 { + if yyj1054 >= l { break } } else { @@ -14808,10 +15127,10 @@ func (x *DownwardAPIVolumeFile) codecDecodeSelfFromMap(l int, d *codec1978.Decod } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys1037Slc = r.DecodeBytes(yys1037Slc, true, true) - yys1037 := string(yys1037Slc) + yys1054Slc = r.DecodeBytes(yys1054Slc, true, true) + yys1054 := string(yys1054Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys1037 { + switch yys1054 { case "path": if r.TryDecodeAsNil() { x.Path = "" @@ -14849,17 +15168,17 @@ func (x *DownwardAPIVolumeFile) codecDecodeSelfFromMap(l int, d *codec1978.Decod if x.Mode == nil { x.Mode = new(int32) } - yym1042 := z.DecBinary() - _ = yym1042 + yym1059 := z.DecBinary() + _ = yym1059 if false { } else { *((*int32)(x.Mode)) = int32(r.DecodeInt(32)) } } default: - z.DecStructFieldNotFound(-1, yys1037) - } // end switch yys1037 - } // end for yyj1037 + z.DecStructFieldNotFound(-1, yys1054) + } // end switch yys1054 + } // end for yyj1054 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -14867,16 +15186,16 @@ func (x *DownwardAPIVolumeFile) codecDecodeSelfFromArray(l int, d *codec1978.Dec var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj1043 int - var yyb1043 bool - var yyhl1043 bool = l >= 0 - yyj1043++ - if yyhl1043 { - yyb1043 = yyj1043 > l + var yyj1060 int + var yyb1060 bool + var yyhl1060 bool = l >= 0 + yyj1060++ + if yyhl1060 { + yyb1060 = yyj1060 > l } else { - yyb1043 = r.CheckBreak() + yyb1060 = r.CheckBreak() } - if yyb1043 { + if yyb1060 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -14886,13 +15205,13 @@ func (x *DownwardAPIVolumeFile) codecDecodeSelfFromArray(l int, d *codec1978.Dec } else { x.Path = string(r.DecodeString()) } - yyj1043++ - if yyhl1043 { - yyb1043 = yyj1043 > l + yyj1060++ + if yyhl1060 { + yyb1060 = yyj1060 > l } else { - yyb1043 = r.CheckBreak() + yyb1060 = r.CheckBreak() } - if yyb1043 { + if yyb1060 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -14907,13 +15226,13 @@ func (x *DownwardAPIVolumeFile) codecDecodeSelfFromArray(l int, d *codec1978.Dec } x.FieldRef.CodecDecodeSelf(d) } - yyj1043++ - if yyhl1043 { - yyb1043 = yyj1043 > l + yyj1060++ + if yyhl1060 { + yyb1060 = yyj1060 > l } else { - yyb1043 = r.CheckBreak() + yyb1060 = r.CheckBreak() } - if yyb1043 { + if yyb1060 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -14928,13 +15247,13 @@ func (x *DownwardAPIVolumeFile) codecDecodeSelfFromArray(l int, d *codec1978.Dec } x.ResourceFieldRef.CodecDecodeSelf(d) } - yyj1043++ - if yyhl1043 { - yyb1043 = yyj1043 > l + yyj1060++ + if yyhl1060 { + yyb1060 = yyj1060 > l } else { - yyb1043 = r.CheckBreak() + yyb1060 = r.CheckBreak() } - if yyb1043 { + if yyb1060 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -14947,25 +15266,25 @@ func (x *DownwardAPIVolumeFile) codecDecodeSelfFromArray(l int, d *codec1978.Dec if x.Mode == nil { x.Mode = new(int32) } - yym1048 := z.DecBinary() - _ = yym1048 + yym1065 := z.DecBinary() + _ = yym1065 if false { } else { *((*int32)(x.Mode)) = int32(r.DecodeInt(32)) } } for { - yyj1043++ - if yyhl1043 { - yyb1043 = yyj1043 > l + yyj1060++ + if yyhl1060 { + yyb1060 = yyj1060 > l } else { - yyb1043 = r.CheckBreak() + yyb1060 = r.CheckBreak() } - if yyb1043 { + if yyb1060 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj1043-1, "") + z.DecStructFieldNotFound(yyj1060-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -14977,34 +15296,34 @@ func (x *AzureFileVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1049 := z.EncBinary() - _ = yym1049 + yym1066 := z.EncBinary() + _ = yym1066 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - 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 { + yysep1067 := !z.EncBinary() + yy2arr1067 := z.EncBasicHandle().StructToArray + var yyq1067 [3]bool + _, _, _ = yysep1067, yyq1067, yy2arr1067 + const yyr1067 bool = false + yyq1067[2] = x.ReadOnly != false + var yynn1067 int + if yyr1067 || yy2arr1067 { r.EncodeArrayStart(3) } else { - yynn1050 = 2 - for _, b := range yyq1050 { + yynn1067 = 2 + for _, b := range yyq1067 { if b { - yynn1050++ + yynn1067++ } } - r.EncodeMapStart(yynn1050) - yynn1050 = 0 + r.EncodeMapStart(yynn1067) + yynn1067 = 0 } - if yyr1050 || yy2arr1050 { + if yyr1067 || yy2arr1067 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym1052 := z.EncBinary() - _ = yym1052 + yym1069 := z.EncBinary() + _ = yym1069 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.SecretName)) @@ -15013,17 +15332,17 @@ func (x *AzureFileVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("secretName")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym1053 := z.EncBinary() - _ = yym1053 + yym1070 := z.EncBinary() + _ = yym1070 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.SecretName)) } } - if yyr1050 || yy2arr1050 { + if yyr1067 || yy2arr1067 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym1055 := z.EncBinary() - _ = yym1055 + yym1072 := z.EncBinary() + _ = yym1072 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.ShareName)) @@ -15032,18 +15351,18 @@ func (x *AzureFileVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("shareName")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym1056 := z.EncBinary() - _ = yym1056 + yym1073 := z.EncBinary() + _ = yym1073 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.ShareName)) } } - if yyr1050 || yy2arr1050 { + if yyr1067 || yy2arr1067 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1050[2] { - yym1058 := z.EncBinary() - _ = yym1058 + if yyq1067[2] { + yym1075 := z.EncBinary() + _ = yym1075 if false { } else { r.EncodeBool(bool(x.ReadOnly)) @@ -15052,19 +15371,19 @@ func (x *AzureFileVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeBool(false) } } else { - if yyq1050[2] { + if yyq1067[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("readOnly")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym1059 := z.EncBinary() - _ = yym1059 + yym1076 := z.EncBinary() + _ = yym1076 if false { } else { r.EncodeBool(bool(x.ReadOnly)) } } } - if yyr1050 || yy2arr1050 { + if yyr1067 || yy2arr1067 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -15077,25 +15396,25 @@ func (x *AzureFileVolumeSource) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1060 := z.DecBinary() - _ = yym1060 + yym1077 := z.DecBinary() + _ = yym1077 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct1061 := r.ContainerType() - if yyct1061 == codecSelferValueTypeMap1234 { - yyl1061 := r.ReadMapStart() - if yyl1061 == 0 { + yyct1078 := r.ContainerType() + if yyct1078 == codecSelferValueTypeMap1234 { + yyl1078 := r.ReadMapStart() + if yyl1078 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl1061, d) + x.codecDecodeSelfFromMap(yyl1078, d) } - } else if yyct1061 == codecSelferValueTypeArray1234 { - yyl1061 := r.ReadArrayStart() - if yyl1061 == 0 { + } else if yyct1078 == codecSelferValueTypeArray1234 { + yyl1078 := r.ReadArrayStart() + if yyl1078 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl1061, d) + x.codecDecodeSelfFromArray(yyl1078, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -15107,12 +15426,12 @@ func (x *AzureFileVolumeSource) codecDecodeSelfFromMap(l int, d *codec1978.Decod var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys1062Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys1062Slc - var yyhl1062 bool = l >= 0 - for yyj1062 := 0; ; yyj1062++ { - if yyhl1062 { - if yyj1062 >= l { + var yys1079Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys1079Slc + var yyhl1079 bool = l >= 0 + for yyj1079 := 0; ; yyj1079++ { + if yyhl1079 { + if yyj1079 >= l { break } } else { @@ -15121,10 +15440,10 @@ func (x *AzureFileVolumeSource) codecDecodeSelfFromMap(l int, d *codec1978.Decod } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys1062Slc = r.DecodeBytes(yys1062Slc, true, true) - yys1062 := string(yys1062Slc) + yys1079Slc = r.DecodeBytes(yys1079Slc, true, true) + yys1079 := string(yys1079Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys1062 { + switch yys1079 { case "secretName": if r.TryDecodeAsNil() { x.SecretName = "" @@ -15144,239 +15463,13 @@ func (x *AzureFileVolumeSource) codecDecodeSelfFromMap(l int, d *codec1978.Decod x.ReadOnly = bool(r.DecodeBool()) } default: - z.DecStructFieldNotFound(-1, yys1062) - } // end switch yys1062 - } // end for yyj1062 + z.DecStructFieldNotFound(-1, yys1079) + } // end switch yys1079 + } // end for yyj1079 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 yyj1066 int - var yyb1066 bool - var yyhl1066 bool = l >= 0 - yyj1066++ - if yyhl1066 { - yyb1066 = yyj1066 > l - } else { - yyb1066 = r.CheckBreak() - } - if yyb1066 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.SecretName = "" - } else { - x.SecretName = string(r.DecodeString()) - } - yyj1066++ - if yyhl1066 { - yyb1066 = yyj1066 > l - } else { - yyb1066 = r.CheckBreak() - } - if yyb1066 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.ShareName = "" - } else { - x.ShareName = string(r.DecodeString()) - } - yyj1066++ - if yyhl1066 { - yyb1066 = yyj1066 > l - } else { - yyb1066 = r.CheckBreak() - } - if yyb1066 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.ReadOnly = false - } else { - x.ReadOnly = bool(r.DecodeBool()) - } - for { - yyj1066++ - if yyhl1066 { - yyb1066 = yyj1066 > l - } else { - yyb1066 = r.CheckBreak() - } - if yyb1066 { - break - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj1066-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 { - yym1070 := z.EncBinary() - _ = yym1070 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - 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 { - yynn1071 = 1 - for _, b := range yyq1071 { - if b { - yynn1071++ - } - } - r.EncodeMapStart(yynn1071) - yynn1071 = 0 - } - if yyr1071 || yy2arr1071 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym1073 := z.EncBinary() - _ = yym1073 - 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) - yym1074 := z.EncBinary() - _ = yym1074 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.VolumePath)) - } - } - if yyr1071 || yy2arr1071 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1071[1] { - yym1076 := z.EncBinary() - _ = yym1076 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.FSType)) - } - } else { - r.EncodeString(codecSelferC_UTF81234, "") - } - } else { - if yyq1071[1] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("fsType")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym1077 := z.EncBinary() - _ = yym1077 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.FSType)) - } - } - } - if yyr1071 || yy2arr1071 { - 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 - yym1078 := z.DecBinary() - _ = yym1078 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - yyct1079 := r.ContainerType() - if yyct1079 == codecSelferValueTypeMap1234 { - yyl1079 := r.ReadMapStart() - if yyl1079 == 0 { - z.DecSendContainerState(codecSelfer_containerMapEnd1234) - } else { - x.codecDecodeSelfFromMap(yyl1079, d) - } - } else if yyct1079 == codecSelferValueTypeArray1234 { - yyl1079 := r.ReadArrayStart() - if yyl1079 == 0 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - x.codecDecodeSelfFromArray(yyl1079, 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 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 { - if r.CheckBreak() { - break - } - } - z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys1080Slc = r.DecodeBytes(yys1080Slc, true, true) - yys1080 := string(yys1080Slc) - z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys1080 { - 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, yys1080) - } // end switch yys1080 - } // end for yyj1080 - z.DecSendContainerState(codecSelfer_containerMapEnd1234) -} - -func (x *VsphereVirtualDiskVolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r @@ -15395,9 +15488,9 @@ func (x *VsphereVirtualDiskVolumeSource) codecDecodeSelfFromArray(l int, d *code } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.VolumePath = "" + x.SecretName = "" } else { - x.VolumePath = string(r.DecodeString()) + x.SecretName = string(r.DecodeString()) } yyj1083++ if yyhl1083 { @@ -15411,9 +15504,25 @@ func (x *VsphereVirtualDiskVolumeSource) codecDecodeSelfFromArray(l int, d *code } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.FSType = "" + x.ShareName = "" } else { - x.FSType = string(r.DecodeString()) + x.ShareName = 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()) } for { yyj1083++ @@ -15431,12 +15540,432 @@ func (x *VsphereVirtualDiskVolumeSource) codecDecodeSelfFromArray(l int, d *code 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 { + yym1087 := z.EncBinary() + _ = yym1087 + if false { + } else if z.HasExtensions() && z.EncExt(x) { + } else { + yysep1088 := !z.EncBinary() + yy2arr1088 := z.EncBasicHandle().StructToArray + var yyq1088 [2]bool + _, _, _ = yysep1088, yyq1088, yy2arr1088 + const yyr1088 bool = false + yyq1088[1] = x.FSType != "" + var yynn1088 int + if yyr1088 || yy2arr1088 { + r.EncodeArrayStart(2) + } else { + yynn1088 = 1 + for _, b := range yyq1088 { + if b { + yynn1088++ + } + } + r.EncodeMapStart(yynn1088) + yynn1088 = 0 + } + if yyr1088 || yy2arr1088 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yym1090 := z.EncBinary() + _ = yym1090 + 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) + yym1091 := z.EncBinary() + _ = yym1091 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.VolumePath)) + } + } + if yyr1088 || yy2arr1088 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq1088[1] { + yym1093 := z.EncBinary() + _ = yym1093 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.FSType)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq1088[1] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("fsType")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym1094 := z.EncBinary() + _ = yym1094 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.FSType)) + } + } + } + if yyr1088 || yy2arr1088 { + 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 + yym1095 := z.DecBinary() + _ = yym1095 + if false { + } else if z.HasExtensions() && z.DecExt(x) { + } else { + yyct1096 := r.ContainerType() + if yyct1096 == codecSelferValueTypeMap1234 { + yyl1096 := r.ReadMapStart() + if yyl1096 == 0 { + z.DecSendContainerState(codecSelfer_containerMapEnd1234) + } else { + x.codecDecodeSelfFromMap(yyl1096, d) + } + } else if yyct1096 == codecSelferValueTypeArray1234 { + yyl1096 := r.ReadArrayStart() + if yyl1096 == 0 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + x.codecDecodeSelfFromArray(yyl1096, 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 yys1097Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys1097Slc + var yyhl1097 bool = l >= 0 + for yyj1097 := 0; ; yyj1097++ { + if yyhl1097 { + if yyj1097 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + z.DecSendContainerState(codecSelfer_containerMapKey1234) + yys1097Slc = r.DecodeBytes(yys1097Slc, true, true) + yys1097 := string(yys1097Slc) + z.DecSendContainerState(codecSelfer_containerMapValue1234) + switch yys1097 { + 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, yys1097) + } // end switch yys1097 + } // end for yyj1097 + 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 yyj1100 int + var yyb1100 bool + var yyhl1100 bool = l >= 0 + yyj1100++ + if yyhl1100 { + yyb1100 = yyj1100 > l + } else { + yyb1100 = r.CheckBreak() + } + if yyb1100 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.VolumePath = "" + } else { + x.VolumePath = string(r.DecodeString()) + } + yyj1100++ + if yyhl1100 { + yyb1100 = yyj1100 > l + } else { + yyb1100 = r.CheckBreak() + } + if yyb1100 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.FSType = "" + } else { + x.FSType = string(r.DecodeString()) + } + for { + yyj1100++ + if yyhl1100 { + yyb1100 = yyj1100 > l + } else { + yyb1100 = r.CheckBreak() + } + if yyb1100 { + break + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + z.DecStructFieldNotFound(yyj1100-1, "") + } + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) +} + +func (x *PhotonPersistentDiskVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + yym1103 := z.EncBinary() + _ = yym1103 + if false { + } else if z.HasExtensions() && z.EncExt(x) { + } else { + yysep1104 := !z.EncBinary() + yy2arr1104 := z.EncBasicHandle().StructToArray + var yyq1104 [2]bool + _, _, _ = yysep1104, yyq1104, yy2arr1104 + const yyr1104 bool = false + yyq1104[1] = x.FSType != "" + var yynn1104 int + if yyr1104 || yy2arr1104 { + r.EncodeArrayStart(2) + } else { + yynn1104 = 1 + for _, b := range yyq1104 { + if b { + yynn1104++ + } + } + r.EncodeMapStart(yynn1104) + yynn1104 = 0 + } + if yyr1104 || yy2arr1104 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yym1106 := z.EncBinary() + _ = yym1106 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.PdID)) + } + } else { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("pdID")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym1107 := z.EncBinary() + _ = yym1107 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.PdID)) + } + } + if yyr1104 || yy2arr1104 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq1104[1] { + yym1109 := z.EncBinary() + _ = yym1109 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.FSType)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq1104[1] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("fsType")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym1110 := z.EncBinary() + _ = yym1110 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.FSType)) + } + } + } + if yyr1104 || yy2arr1104 { + z.EncSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + z.EncSendContainerState(codecSelfer_containerMapEnd1234) + } + } + } +} + +func (x *PhotonPersistentDiskVolumeSource) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + yym1111 := z.DecBinary() + _ = yym1111 + if false { + } else if z.HasExtensions() && z.DecExt(x) { + } else { + yyct1112 := r.ContainerType() + if yyct1112 == codecSelferValueTypeMap1234 { + yyl1112 := r.ReadMapStart() + if yyl1112 == 0 { + z.DecSendContainerState(codecSelfer_containerMapEnd1234) + } else { + x.codecDecodeSelfFromMap(yyl1112, d) + } + } else if yyct1112 == codecSelferValueTypeArray1234 { + yyl1112 := r.ReadArrayStart() + if yyl1112 == 0 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + x.codecDecodeSelfFromArray(yyl1112, d) + } + } else { + panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) + } + } +} + +func (x *PhotonPersistentDiskVolumeSource) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yys1113Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys1113Slc + var yyhl1113 bool = l >= 0 + for yyj1113 := 0; ; yyj1113++ { + if yyhl1113 { + if yyj1113 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + z.DecSendContainerState(codecSelfer_containerMapKey1234) + yys1113Slc = r.DecodeBytes(yys1113Slc, true, true) + yys1113 := string(yys1113Slc) + z.DecSendContainerState(codecSelfer_containerMapValue1234) + switch yys1113 { + case "pdID": + if r.TryDecodeAsNil() { + x.PdID = "" + } else { + x.PdID = string(r.DecodeString()) + } + case "fsType": + if r.TryDecodeAsNil() { + x.FSType = "" + } else { + x.FSType = string(r.DecodeString()) + } + default: + z.DecStructFieldNotFound(-1, yys1113) + } // end switch yys1113 + } // end for yyj1113 + z.DecSendContainerState(codecSelfer_containerMapEnd1234) +} + +func (x *PhotonPersistentDiskVolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj1116 int + var yyb1116 bool + var yyhl1116 bool = l >= 0 + yyj1116++ + if yyhl1116 { + yyb1116 = yyj1116 > l + } else { + yyb1116 = r.CheckBreak() + } + if yyb1116 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.PdID = "" + } else { + x.PdID = string(r.DecodeString()) + } + yyj1116++ + if yyhl1116 { + yyb1116 = yyj1116 > l + } else { + yyb1116 = r.CheckBreak() + } + if yyb1116 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.FSType = "" + } else { + x.FSType = string(r.DecodeString()) + } + for { + yyj1116++ + if yyhl1116 { + yyb1116 = yyj1116 > l + } else { + yyb1116 = r.CheckBreak() + } + if yyb1116 { + break + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + z.DecStructFieldNotFound(yyj1116-1, "") + } + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) +} + func (x AzureDataDiskCachingMode) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r - yym1086 := z.EncBinary() - _ = yym1086 + yym1119 := z.EncBinary() + _ = yym1119 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { @@ -15448,8 +15977,8 @@ func (x *AzureDataDiskCachingMode) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1087 := z.DecBinary() - _ = yym1087 + yym1120 := z.DecBinary() + _ = yym1120 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { @@ -15464,36 +15993,36 @@ func (x *AzureDiskVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1088 := z.EncBinary() - _ = yym1088 + yym1121 := z.EncBinary() + _ = yym1121 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep1089 := !z.EncBinary() - yy2arr1089 := z.EncBasicHandle().StructToArray - var yyq1089 [5]bool - _, _, _ = yysep1089, yyq1089, yy2arr1089 - const yyr1089 bool = false - yyq1089[2] = x.CachingMode != nil - yyq1089[3] = x.FSType != nil - yyq1089[4] = x.ReadOnly != nil - var yynn1089 int - if yyr1089 || yy2arr1089 { + yysep1122 := !z.EncBinary() + yy2arr1122 := z.EncBasicHandle().StructToArray + var yyq1122 [5]bool + _, _, _ = yysep1122, yyq1122, yy2arr1122 + const yyr1122 bool = false + yyq1122[2] = x.CachingMode != nil + yyq1122[3] = x.FSType != nil + yyq1122[4] = x.ReadOnly != nil + var yynn1122 int + if yyr1122 || yy2arr1122 { r.EncodeArrayStart(5) } else { - yynn1089 = 2 - for _, b := range yyq1089 { + yynn1122 = 2 + for _, b := range yyq1122 { if b { - yynn1089++ + yynn1122++ } } - r.EncodeMapStart(yynn1089) - yynn1089 = 0 + r.EncodeMapStart(yynn1122) + yynn1122 = 0 } - if yyr1089 || yy2arr1089 { + if yyr1122 || yy2arr1122 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym1091 := z.EncBinary() - _ = yym1091 + yym1124 := z.EncBinary() + _ = yym1124 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.DiskName)) @@ -15502,17 +16031,17 @@ func (x *AzureDiskVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("diskName")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym1092 := z.EncBinary() - _ = yym1092 + yym1125 := z.EncBinary() + _ = yym1125 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.DiskName)) } } - if yyr1089 || yy2arr1089 { + if yyr1122 || yy2arr1122 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym1094 := z.EncBinary() - _ = yym1094 + yym1127 := z.EncBinary() + _ = yym1127 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.DataDiskURI)) @@ -15521,109 +16050,109 @@ func (x *AzureDiskVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("diskURI")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym1095 := z.EncBinary() - _ = yym1095 + yym1128 := z.EncBinary() + _ = yym1128 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.DataDiskURI)) } } - if yyr1089 || yy2arr1089 { + if yyr1122 || yy2arr1122 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1089[2] { + if yyq1122[2] { if x.CachingMode == nil { r.EncodeNil() } else { - yy1097 := *x.CachingMode - yy1097.CodecEncodeSelf(e) + yy1130 := *x.CachingMode + yy1130.CodecEncodeSelf(e) } } else { r.EncodeNil() } } else { - if yyq1089[2] { + if yyq1122[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) + yy1131 := *x.CachingMode + yy1131.CodecEncodeSelf(e) } } } - if yyr1089 || yy2arr1089 { + if yyr1122 || yy2arr1122 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1089[3] { + if yyq1122[3] { if x.FSType == nil { r.EncodeNil() } else { - yy1100 := *x.FSType - yym1101 := z.EncBinary() - _ = yym1101 + yy1133 := *x.FSType + yym1134 := z.EncBinary() + _ = yym1134 if false { } else { - r.EncodeString(codecSelferC_UTF81234, string(yy1100)) + r.EncodeString(codecSelferC_UTF81234, string(yy1133)) } } } else { r.EncodeNil() } } else { - if yyq1089[3] { + if yyq1122[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("fsType")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.FSType == nil { r.EncodeNil() } else { - yy1102 := *x.FSType - yym1103 := z.EncBinary() - _ = yym1103 + yy1135 := *x.FSType + yym1136 := z.EncBinary() + _ = yym1136 if false { } else { - r.EncodeString(codecSelferC_UTF81234, string(yy1102)) + r.EncodeString(codecSelferC_UTF81234, string(yy1135)) } } } } - if yyr1089 || yy2arr1089 { + if yyr1122 || yy2arr1122 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1089[4] { + if yyq1122[4] { if x.ReadOnly == nil { r.EncodeNil() } else { - yy1105 := *x.ReadOnly - yym1106 := z.EncBinary() - _ = yym1106 + yy1138 := *x.ReadOnly + yym1139 := z.EncBinary() + _ = yym1139 if false { } else { - r.EncodeBool(bool(yy1105)) + r.EncodeBool(bool(yy1138)) } } } else { r.EncodeNil() } } else { - if yyq1089[4] { + if yyq1122[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 + yy1140 := *x.ReadOnly + yym1141 := z.EncBinary() + _ = yym1141 if false { } else { - r.EncodeBool(bool(yy1107)) + r.EncodeBool(bool(yy1140)) } } } } - if yyr1089 || yy2arr1089 { + if yyr1122 || yy2arr1122 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -15636,25 +16165,25 @@ func (x *AzureDiskVolumeSource) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1109 := z.DecBinary() - _ = yym1109 + yym1142 := z.DecBinary() + _ = yym1142 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct1110 := r.ContainerType() - if yyct1110 == codecSelferValueTypeMap1234 { - yyl1110 := r.ReadMapStart() - if yyl1110 == 0 { + yyct1143 := r.ContainerType() + if yyct1143 == codecSelferValueTypeMap1234 { + yyl1143 := r.ReadMapStart() + if yyl1143 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl1110, d) + x.codecDecodeSelfFromMap(yyl1143, d) } - } else if yyct1110 == codecSelferValueTypeArray1234 { - yyl1110 := r.ReadArrayStart() - if yyl1110 == 0 { + } else if yyct1143 == codecSelferValueTypeArray1234 { + yyl1143 := r.ReadArrayStart() + if yyl1143 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl1110, d) + x.codecDecodeSelfFromArray(yyl1143, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -15666,12 +16195,12 @@ func (x *AzureDiskVolumeSource) codecDecodeSelfFromMap(l int, d *codec1978.Decod 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 { + var yys1144Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys1144Slc + var yyhl1144 bool = l >= 0 + for yyj1144 := 0; ; yyj1144++ { + if yyhl1144 { + if yyj1144 >= l { break } } else { @@ -15680,10 +16209,10 @@ func (x *AzureDiskVolumeSource) codecDecodeSelfFromMap(l int, d *codec1978.Decod } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys1111Slc = r.DecodeBytes(yys1111Slc, true, true) - yys1111 := string(yys1111Slc) + yys1144Slc = r.DecodeBytes(yys1144Slc, true, true) + yys1144 := string(yys1144Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys1111 { + switch yys1144 { case "diskName": if r.TryDecodeAsNil() { x.DiskName = "" @@ -15716,8 +16245,8 @@ func (x *AzureDiskVolumeSource) codecDecodeSelfFromMap(l int, d *codec1978.Decod if x.FSType == nil { x.FSType = new(string) } - yym1116 := z.DecBinary() - _ = yym1116 + yym1149 := z.DecBinary() + _ = yym1149 if false { } else { *((*string)(x.FSType)) = r.DecodeString() @@ -15732,17 +16261,17 @@ func (x *AzureDiskVolumeSource) codecDecodeSelfFromMap(l int, d *codec1978.Decod if x.ReadOnly == nil { x.ReadOnly = new(bool) } - yym1118 := z.DecBinary() - _ = yym1118 + yym1151 := z.DecBinary() + _ = yym1151 if false { } else { *((*bool)(x.ReadOnly)) = r.DecodeBool() } } default: - z.DecStructFieldNotFound(-1, yys1111) - } // end switch yys1111 - } // end for yyj1111 + z.DecStructFieldNotFound(-1, yys1144) + } // end switch yys1144 + } // end for yyj1144 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -15750,16 +16279,16 @@ func (x *AzureDiskVolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Dec 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 + var yyj1152 int + var yyb1152 bool + var yyhl1152 bool = l >= 0 + yyj1152++ + if yyhl1152 { + yyb1152 = yyj1152 > l } else { - yyb1119 = r.CheckBreak() + yyb1152 = r.CheckBreak() } - if yyb1119 { + if yyb1152 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -15769,13 +16298,13 @@ func (x *AzureDiskVolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Dec } else { x.DiskName = string(r.DecodeString()) } - yyj1119++ - if yyhl1119 { - yyb1119 = yyj1119 > l + yyj1152++ + if yyhl1152 { + yyb1152 = yyj1152 > l } else { - yyb1119 = r.CheckBreak() + yyb1152 = r.CheckBreak() } - if yyb1119 { + if yyb1152 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -15785,13 +16314,13 @@ func (x *AzureDiskVolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Dec } else { x.DataDiskURI = string(r.DecodeString()) } - yyj1119++ - if yyhl1119 { - yyb1119 = yyj1119 > l + yyj1152++ + if yyhl1152 { + yyb1152 = yyj1152 > l } else { - yyb1119 = r.CheckBreak() + yyb1152 = r.CheckBreak() } - if yyb1119 { + if yyb1152 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -15806,13 +16335,13 @@ func (x *AzureDiskVolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Dec } x.CachingMode.CodecDecodeSelf(d) } - yyj1119++ - if yyhl1119 { - yyb1119 = yyj1119 > l + yyj1152++ + if yyhl1152 { + yyb1152 = yyj1152 > l } else { - yyb1119 = r.CheckBreak() + yyb1152 = r.CheckBreak() } - if yyb1119 { + if yyb1152 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -15825,20 +16354,20 @@ func (x *AzureDiskVolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Dec if x.FSType == nil { x.FSType = new(string) } - yym1124 := z.DecBinary() - _ = yym1124 + yym1157 := z.DecBinary() + _ = yym1157 if false { } else { *((*string)(x.FSType)) = r.DecodeString() } } - yyj1119++ - if yyhl1119 { - yyb1119 = yyj1119 > l + yyj1152++ + if yyhl1152 { + yyb1152 = yyj1152 > l } else { - yyb1119 = r.CheckBreak() + yyb1152 = r.CheckBreak() } - if yyb1119 { + if yyb1152 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -15851,25 +16380,25 @@ func (x *AzureDiskVolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Dec if x.ReadOnly == nil { x.ReadOnly = new(bool) } - yym1126 := z.DecBinary() - _ = yym1126 + yym1159 := z.DecBinary() + _ = yym1159 if false { } else { *((*bool)(x.ReadOnly)) = r.DecodeBool() } } for { - yyj1119++ - if yyhl1119 { - yyb1119 = yyj1119 > l + yyj1152++ + if yyhl1152 { + yyb1152 = yyj1152 > l } else { - yyb1119 = r.CheckBreak() + yyb1152 = r.CheckBreak() } - if yyb1119 { + if yyb1152 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj1119-1, "") + z.DecStructFieldNotFound(yyj1152-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -15881,35 +16410,35 @@ func (x *ConfigMapVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1127 := z.EncBinary() - _ = yym1127 + yym1160 := z.EncBinary() + _ = yym1160 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 { + yysep1161 := !z.EncBinary() + yy2arr1161 := z.EncBasicHandle().StructToArray + var yyq1161 [3]bool + _, _, _ = yysep1161, yyq1161, yy2arr1161 + const yyr1161 bool = false + yyq1161[1] = len(x.Items) != 0 + yyq1161[2] = x.DefaultMode != nil + var yynn1161 int + if yyr1161 || yy2arr1161 { r.EncodeArrayStart(3) } else { - yynn1128 = 1 - for _, b := range yyq1128 { + yynn1161 = 1 + for _, b := range yyq1161 { if b { - yynn1128++ + yynn1161++ } } - r.EncodeMapStart(yynn1128) - yynn1128 = 0 + r.EncodeMapStart(yynn1161) + yynn1161 = 0 } - if yyr1128 || yy2arr1128 { + if yyr1161 || yy2arr1161 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym1130 := z.EncBinary() - _ = yym1130 + yym1163 := z.EncBinary() + _ = yym1163 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Name)) @@ -15918,21 +16447,21 @@ func (x *ConfigMapVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("Name")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym1131 := z.EncBinary() - _ = yym1131 + yym1164 := z.EncBinary() + _ = yym1164 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Name)) } } - if yyr1128 || yy2arr1128 { + if yyr1161 || yy2arr1161 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1128[1] { + if yyq1161[1] { if x.Items == nil { r.EncodeNil() } else { - yym1133 := z.EncBinary() - _ = yym1133 + yym1166 := z.EncBinary() + _ = yym1166 if false { } else { h.encSliceKeyToPath(([]KeyToPath)(x.Items), e) @@ -15942,15 +16471,15 @@ func (x *ConfigMapVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq1128[1] { + if yyq1161[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 + yym1167 := z.EncBinary() + _ = yym1167 if false { } else { h.encSliceKeyToPath(([]KeyToPath)(x.Items), e) @@ -15958,42 +16487,42 @@ func (x *ConfigMapVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr1128 || yy2arr1128 { + if yyr1161 || yy2arr1161 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1128[2] { + if yyq1161[2] { if x.DefaultMode == nil { r.EncodeNil() } else { - yy1136 := *x.DefaultMode - yym1137 := z.EncBinary() - _ = yym1137 + yy1169 := *x.DefaultMode + yym1170 := z.EncBinary() + _ = yym1170 if false { } else { - r.EncodeInt(int64(yy1136)) + r.EncodeInt(int64(yy1169)) } } } else { r.EncodeNil() } } else { - if yyq1128[2] { + if yyq1161[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 + yy1171 := *x.DefaultMode + yym1172 := z.EncBinary() + _ = yym1172 if false { } else { - r.EncodeInt(int64(yy1138)) + r.EncodeInt(int64(yy1171)) } } } } - if yyr1128 || yy2arr1128 { + if yyr1161 || yy2arr1161 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -16006,25 +16535,25 @@ func (x *ConfigMapVolumeSource) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1140 := z.DecBinary() - _ = yym1140 + yym1173 := z.DecBinary() + _ = yym1173 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct1141 := r.ContainerType() - if yyct1141 == codecSelferValueTypeMap1234 { - yyl1141 := r.ReadMapStart() - if yyl1141 == 0 { + yyct1174 := r.ContainerType() + if yyct1174 == codecSelferValueTypeMap1234 { + yyl1174 := r.ReadMapStart() + if yyl1174 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl1141, d) + x.codecDecodeSelfFromMap(yyl1174, d) } - } else if yyct1141 == codecSelferValueTypeArray1234 { - yyl1141 := r.ReadArrayStart() - if yyl1141 == 0 { + } else if yyct1174 == codecSelferValueTypeArray1234 { + yyl1174 := r.ReadArrayStart() + if yyl1174 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl1141, d) + x.codecDecodeSelfFromArray(yyl1174, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -16036,12 +16565,12 @@ func (x *ConfigMapVolumeSource) codecDecodeSelfFromMap(l int, d *codec1978.Decod var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys1142Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys1142Slc - var yyhl1142 bool = l >= 0 - for yyj1142 := 0; ; yyj1142++ { - if yyhl1142 { - if yyj1142 >= 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 { @@ -16050,10 +16579,10 @@ func (x *ConfigMapVolumeSource) codecDecodeSelfFromMap(l int, d *codec1978.Decod } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys1142Slc = r.DecodeBytes(yys1142Slc, true, true) - yys1142 := string(yys1142Slc) + yys1175Slc = r.DecodeBytes(yys1175Slc, true, true) + yys1175 := string(yys1175Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys1142 { + switch yys1175 { case "Name": if r.TryDecodeAsNil() { x.Name = "" @@ -16064,12 +16593,12 @@ func (x *ConfigMapVolumeSource) codecDecodeSelfFromMap(l int, d *codec1978.Decod if r.TryDecodeAsNil() { x.Items = nil } else { - yyv1144 := &x.Items - yym1145 := z.DecBinary() - _ = yym1145 + yyv1177 := &x.Items + yym1178 := z.DecBinary() + _ = yym1178 if false { } else { - h.decSliceKeyToPath((*[]KeyToPath)(yyv1144), d) + h.decSliceKeyToPath((*[]KeyToPath)(yyv1177), d) } } case "defaultMode": @@ -16081,17 +16610,17 @@ func (x *ConfigMapVolumeSource) codecDecodeSelfFromMap(l int, d *codec1978.Decod if x.DefaultMode == nil { x.DefaultMode = new(int32) } - yym1147 := z.DecBinary() - _ = yym1147 + yym1180 := z.DecBinary() + _ = yym1180 if false { } else { *((*int32)(x.DefaultMode)) = int32(r.DecodeInt(32)) } } default: - z.DecStructFieldNotFound(-1, yys1142) - } // end switch yys1142 - } // end for yyj1142 + z.DecStructFieldNotFound(-1, yys1175) + } // end switch yys1175 + } // end for yyj1175 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -16099,16 +16628,16 @@ func (x *ConfigMapVolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Dec var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj1148 int - var yyb1148 bool - var yyhl1148 bool = l >= 0 - yyj1148++ - if yyhl1148 { - yyb1148 = yyj1148 > l + var yyj1181 int + var yyb1181 bool + var yyhl1181 bool = l >= 0 + yyj1181++ + if yyhl1181 { + yyb1181 = yyj1181 > l } else { - yyb1148 = r.CheckBreak() + yyb1181 = r.CheckBreak() } - if yyb1148 { + if yyb1181 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -16118,13 +16647,13 @@ func (x *ConfigMapVolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Dec } else { x.Name = string(r.DecodeString()) } - yyj1148++ - if yyhl1148 { - yyb1148 = yyj1148 > l + yyj1181++ + if yyhl1181 { + yyb1181 = yyj1181 > l } else { - yyb1148 = r.CheckBreak() + yyb1181 = r.CheckBreak() } - if yyb1148 { + if yyb1181 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -16132,21 +16661,21 @@ func (x *ConfigMapVolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Dec if r.TryDecodeAsNil() { x.Items = nil } else { - yyv1150 := &x.Items - yym1151 := z.DecBinary() - _ = yym1151 + yyv1183 := &x.Items + yym1184 := z.DecBinary() + _ = yym1184 if false { } else { - h.decSliceKeyToPath((*[]KeyToPath)(yyv1150), d) + h.decSliceKeyToPath((*[]KeyToPath)(yyv1183), d) } } - yyj1148++ - if yyhl1148 { - yyb1148 = yyj1148 > l + yyj1181++ + if yyhl1181 { + yyb1181 = yyj1181 > l } else { - yyb1148 = r.CheckBreak() + yyb1181 = r.CheckBreak() } - if yyb1148 { + if yyb1181 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -16159,25 +16688,25 @@ func (x *ConfigMapVolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Dec if x.DefaultMode == nil { x.DefaultMode = new(int32) } - yym1153 := z.DecBinary() - _ = yym1153 + yym1186 := z.DecBinary() + _ = yym1186 if false { } else { *((*int32)(x.DefaultMode)) = int32(r.DecodeInt(32)) } } for { - yyj1148++ - if yyhl1148 { - yyb1148 = yyj1148 > l + yyj1181++ + if yyhl1181 { + yyb1181 = yyj1181 > l } else { - yyb1148 = r.CheckBreak() + yyb1181 = r.CheckBreak() } - if yyb1148 { + if yyb1181 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj1148-1, "") + z.DecStructFieldNotFound(yyj1181-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -16189,34 +16718,34 @@ func (x *KeyToPath) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1154 := z.EncBinary() - _ = yym1154 + yym1187 := z.EncBinary() + _ = yym1187 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - 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 { + yysep1188 := !z.EncBinary() + yy2arr1188 := z.EncBasicHandle().StructToArray + var yyq1188 [3]bool + _, _, _ = yysep1188, yyq1188, yy2arr1188 + const yyr1188 bool = false + yyq1188[2] = x.Mode != nil + var yynn1188 int + if yyr1188 || yy2arr1188 { r.EncodeArrayStart(3) } else { - yynn1155 = 2 - for _, b := range yyq1155 { + yynn1188 = 2 + for _, b := range yyq1188 { if b { - yynn1155++ + yynn1188++ } } - r.EncodeMapStart(yynn1155) - yynn1155 = 0 + r.EncodeMapStart(yynn1188) + yynn1188 = 0 } - if yyr1155 || yy2arr1155 { + if yyr1188 || yy2arr1188 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym1157 := z.EncBinary() - _ = yym1157 + yym1190 := z.EncBinary() + _ = yym1190 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Key)) @@ -16225,17 +16754,17 @@ func (x *KeyToPath) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("key")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym1158 := z.EncBinary() - _ = yym1158 + yym1191 := z.EncBinary() + _ = yym1191 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Key)) } } - if yyr1155 || yy2arr1155 { + if yyr1188 || yy2arr1188 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym1160 := z.EncBinary() - _ = yym1160 + yym1193 := z.EncBinary() + _ = yym1193 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Path)) @@ -16244,49 +16773,49 @@ func (x *KeyToPath) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("path")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym1161 := z.EncBinary() - _ = yym1161 + yym1194 := z.EncBinary() + _ = yym1194 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Path)) } } - if yyr1155 || yy2arr1155 { + if yyr1188 || yy2arr1188 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1155[2] { + if yyq1188[2] { if x.Mode == nil { r.EncodeNil() } else { - yy1163 := *x.Mode - yym1164 := z.EncBinary() - _ = yym1164 + yy1196 := *x.Mode + yym1197 := z.EncBinary() + _ = yym1197 if false { } else { - r.EncodeInt(int64(yy1163)) + r.EncodeInt(int64(yy1196)) } } } else { r.EncodeNil() } } else { - if yyq1155[2] { + if yyq1188[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 + yy1198 := *x.Mode + yym1199 := z.EncBinary() + _ = yym1199 if false { } else { - r.EncodeInt(int64(yy1165)) + r.EncodeInt(int64(yy1198)) } } } } - if yyr1155 || yy2arr1155 { + if yyr1188 || yy2arr1188 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -16299,25 +16828,25 @@ func (x *KeyToPath) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1167 := z.DecBinary() - _ = yym1167 + yym1200 := z.DecBinary() + _ = yym1200 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct1168 := r.ContainerType() - if yyct1168 == codecSelferValueTypeMap1234 { - yyl1168 := r.ReadMapStart() - if yyl1168 == 0 { + yyct1201 := r.ContainerType() + if yyct1201 == codecSelferValueTypeMap1234 { + yyl1201 := r.ReadMapStart() + if yyl1201 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl1168, d) + x.codecDecodeSelfFromMap(yyl1201, d) } - } else if yyct1168 == codecSelferValueTypeArray1234 { - yyl1168 := r.ReadArrayStart() - if yyl1168 == 0 { + } else if yyct1201 == codecSelferValueTypeArray1234 { + yyl1201 := r.ReadArrayStart() + if yyl1201 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl1168, d) + x.codecDecodeSelfFromArray(yyl1201, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -16329,12 +16858,12 @@ func (x *KeyToPath) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys1169Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys1169Slc - var yyhl1169 bool = l >= 0 - for yyj1169 := 0; ; yyj1169++ { - if yyhl1169 { - if yyj1169 >= l { + var yys1202Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys1202Slc + var yyhl1202 bool = l >= 0 + for yyj1202 := 0; ; yyj1202++ { + if yyhl1202 { + if yyj1202 >= l { break } } else { @@ -16343,10 +16872,10 @@ func (x *KeyToPath) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys1169Slc = r.DecodeBytes(yys1169Slc, true, true) - yys1169 := string(yys1169Slc) + yys1202Slc = r.DecodeBytes(yys1202Slc, true, true) + yys1202 := string(yys1202Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys1169 { + switch yys1202 { case "key": if r.TryDecodeAsNil() { x.Key = "" @@ -16368,17 +16897,17 @@ func (x *KeyToPath) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { if x.Mode == nil { x.Mode = new(int32) } - yym1173 := z.DecBinary() - _ = yym1173 + yym1206 := z.DecBinary() + _ = yym1206 if false { } else { *((*int32)(x.Mode)) = int32(r.DecodeInt(32)) } } default: - z.DecStructFieldNotFound(-1, yys1169) - } // end switch yys1169 - } // end for yyj1169 + z.DecStructFieldNotFound(-1, yys1202) + } // end switch yys1202 + } // end for yyj1202 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -16386,16 +16915,16 @@ func (x *KeyToPath) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj1174 int - var yyb1174 bool - var yyhl1174 bool = l >= 0 - yyj1174++ - if yyhl1174 { - yyb1174 = yyj1174 > l + var yyj1207 int + var yyb1207 bool + var yyhl1207 bool = l >= 0 + yyj1207++ + if yyhl1207 { + yyb1207 = yyj1207 > l } else { - yyb1174 = r.CheckBreak() + yyb1207 = r.CheckBreak() } - if yyb1174 { + if yyb1207 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -16405,13 +16934,13 @@ func (x *KeyToPath) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.Key = string(r.DecodeString()) } - yyj1174++ - if yyhl1174 { - yyb1174 = yyj1174 > l + yyj1207++ + if yyhl1207 { + yyb1207 = yyj1207 > l } else { - yyb1174 = r.CheckBreak() + yyb1207 = r.CheckBreak() } - if yyb1174 { + if yyb1207 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -16421,13 +16950,13 @@ func (x *KeyToPath) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.Path = string(r.DecodeString()) } - yyj1174++ - if yyhl1174 { - yyb1174 = yyj1174 > l + yyj1207++ + if yyhl1207 { + yyb1207 = yyj1207 > l } else { - yyb1174 = r.CheckBreak() + yyb1207 = r.CheckBreak() } - if yyb1174 { + if yyb1207 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -16440,25 +16969,25 @@ func (x *KeyToPath) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if x.Mode == nil { x.Mode = new(int32) } - yym1178 := z.DecBinary() - _ = yym1178 + yym1211 := z.DecBinary() + _ = yym1211 if false { } else { *((*int32)(x.Mode)) = int32(r.DecodeInt(32)) } } for { - yyj1174++ - if yyhl1174 { - yyb1174 = yyj1174 > l + yyj1207++ + if yyhl1207 { + yyb1207 = yyj1207 > l } else { - yyb1174 = r.CheckBreak() + yyb1207 = r.CheckBreak() } - if yyb1174 { + if yyb1207 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj1174-1, "") + z.DecStructFieldNotFound(yyj1207-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -16470,38 +16999,38 @@ func (x *ContainerPort) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1179 := z.EncBinary() - _ = yym1179 + yym1212 := z.EncBinary() + _ = yym1212 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - 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 { + yysep1213 := !z.EncBinary() + yy2arr1213 := z.EncBasicHandle().StructToArray + var yyq1213 [5]bool + _, _, _ = yysep1213, yyq1213, yy2arr1213 + const yyr1213 bool = false + yyq1213[0] = x.Name != "" + yyq1213[1] = x.HostPort != 0 + yyq1213[3] = x.Protocol != "" + yyq1213[4] = x.HostIP != "" + var yynn1213 int + if yyr1213 || yy2arr1213 { r.EncodeArrayStart(5) } else { - yynn1180 = 1 - for _, b := range yyq1180 { + yynn1213 = 1 + for _, b := range yyq1213 { if b { - yynn1180++ + yynn1213++ } } - r.EncodeMapStart(yynn1180) - yynn1180 = 0 + r.EncodeMapStart(yynn1213) + yynn1213 = 0 } - if yyr1180 || yy2arr1180 { + if yyr1213 || yy2arr1213 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1180[0] { - yym1182 := z.EncBinary() - _ = yym1182 + if yyq1213[0] { + yym1215 := z.EncBinary() + _ = yym1215 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Name)) @@ -16510,23 +17039,23 @@ func (x *ContainerPort) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq1180[0] { + if yyq1213[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("name")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym1183 := z.EncBinary() - _ = yym1183 + yym1216 := z.EncBinary() + _ = yym1216 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Name)) } } } - if yyr1180 || yy2arr1180 { + if yyr1213 || yy2arr1213 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1180[1] { - yym1185 := z.EncBinary() - _ = yym1185 + if yyq1213[1] { + yym1218 := z.EncBinary() + _ = yym1218 if false { } else { r.EncodeInt(int64(x.HostPort)) @@ -16535,22 +17064,22 @@ func (x *ContainerPort) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeInt(0) } } else { - if yyq1180[1] { + if yyq1213[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("hostPort")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym1186 := z.EncBinary() - _ = yym1186 + yym1219 := z.EncBinary() + _ = yym1219 if false { } else { r.EncodeInt(int64(x.HostPort)) } } } - if yyr1180 || yy2arr1180 { + if yyr1213 || yy2arr1213 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym1188 := z.EncBinary() - _ = yym1188 + yym1221 := z.EncBinary() + _ = yym1221 if false { } else { r.EncodeInt(int64(x.ContainerPort)) @@ -16559,33 +17088,33 @@ func (x *ContainerPort) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("containerPort")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym1189 := z.EncBinary() - _ = yym1189 + yym1222 := z.EncBinary() + _ = yym1222 if false { } else { r.EncodeInt(int64(x.ContainerPort)) } } - if yyr1180 || yy2arr1180 { + if yyr1213 || yy2arr1213 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1180[3] { + if yyq1213[3] { x.Protocol.CodecEncodeSelf(e) } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq1180[3] { + if yyq1213[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("protocol")) z.EncSendContainerState(codecSelfer_containerMapValue1234) x.Protocol.CodecEncodeSelf(e) } } - if yyr1180 || yy2arr1180 { + if yyr1213 || yy2arr1213 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1180[4] { - yym1192 := z.EncBinary() - _ = yym1192 + if yyq1213[4] { + yym1225 := z.EncBinary() + _ = yym1225 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.HostIP)) @@ -16594,19 +17123,19 @@ func (x *ContainerPort) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq1180[4] { + if yyq1213[4] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("hostIP")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym1193 := z.EncBinary() - _ = yym1193 + yym1226 := z.EncBinary() + _ = yym1226 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.HostIP)) } } } - if yyr1180 || yy2arr1180 { + if yyr1213 || yy2arr1213 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -16619,25 +17148,25 @@ func (x *ContainerPort) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1194 := z.DecBinary() - _ = yym1194 + yym1227 := z.DecBinary() + _ = yym1227 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct1195 := r.ContainerType() - if yyct1195 == codecSelferValueTypeMap1234 { - yyl1195 := r.ReadMapStart() - if yyl1195 == 0 { + yyct1228 := r.ContainerType() + if yyct1228 == codecSelferValueTypeMap1234 { + yyl1228 := r.ReadMapStart() + if yyl1228 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl1195, d) + x.codecDecodeSelfFromMap(yyl1228, d) } - } else if yyct1195 == codecSelferValueTypeArray1234 { - yyl1195 := r.ReadArrayStart() - if yyl1195 == 0 { + } else if yyct1228 == codecSelferValueTypeArray1234 { + yyl1228 := r.ReadArrayStart() + if yyl1228 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl1195, d) + x.codecDecodeSelfFromArray(yyl1228, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -16649,12 +17178,12 @@ func (x *ContainerPort) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys1196Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys1196Slc - var yyhl1196 bool = l >= 0 - for yyj1196 := 0; ; yyj1196++ { - if yyhl1196 { - if yyj1196 >= l { + var yys1229Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys1229Slc + var yyhl1229 bool = l >= 0 + for yyj1229 := 0; ; yyj1229++ { + if yyhl1229 { + if yyj1229 >= l { break } } else { @@ -16663,10 +17192,10 @@ func (x *ContainerPort) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys1196Slc = r.DecodeBytes(yys1196Slc, true, true) - yys1196 := string(yys1196Slc) + yys1229Slc = r.DecodeBytes(yys1229Slc, true, true) + yys1229 := string(yys1229Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys1196 { + switch yys1229 { case "name": if r.TryDecodeAsNil() { x.Name = "" @@ -16698,9 +17227,9 @@ func (x *ContainerPort) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { x.HostIP = string(r.DecodeString()) } default: - z.DecStructFieldNotFound(-1, yys1196) - } // end switch yys1196 - } // end for yyj1196 + z.DecStructFieldNotFound(-1, yys1229) + } // end switch yys1229 + } // end for yyj1229 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -16708,16 +17237,16 @@ func (x *ContainerPort) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj1202 int - var yyb1202 bool - var yyhl1202 bool = l >= 0 - yyj1202++ - if yyhl1202 { - yyb1202 = yyj1202 > l + var yyj1235 int + var yyb1235 bool + var yyhl1235 bool = l >= 0 + yyj1235++ + if yyhl1235 { + yyb1235 = yyj1235 > l } else { - yyb1202 = r.CheckBreak() + yyb1235 = r.CheckBreak() } - if yyb1202 { + if yyb1235 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -16727,13 +17256,13 @@ func (x *ContainerPort) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.Name = string(r.DecodeString()) } - yyj1202++ - if yyhl1202 { - yyb1202 = yyj1202 > l + yyj1235++ + if yyhl1235 { + yyb1235 = yyj1235 > l } else { - yyb1202 = r.CheckBreak() + yyb1235 = r.CheckBreak() } - if yyb1202 { + if yyb1235 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -16743,13 +17272,13 @@ func (x *ContainerPort) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.HostPort = int32(r.DecodeInt(32)) } - yyj1202++ - if yyhl1202 { - yyb1202 = yyj1202 > l + yyj1235++ + if yyhl1235 { + yyb1235 = yyj1235 > l } else { - yyb1202 = r.CheckBreak() + yyb1235 = r.CheckBreak() } - if yyb1202 { + if yyb1235 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -16759,13 +17288,13 @@ func (x *ContainerPort) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.ContainerPort = int32(r.DecodeInt(32)) } - yyj1202++ - if yyhl1202 { - yyb1202 = yyj1202 > l + yyj1235++ + if yyhl1235 { + yyb1235 = yyj1235 > l } else { - yyb1202 = r.CheckBreak() + yyb1235 = r.CheckBreak() } - if yyb1202 { + if yyb1235 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -16775,13 +17304,13 @@ func (x *ContainerPort) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.Protocol = Protocol(r.DecodeString()) } - yyj1202++ - if yyhl1202 { - yyb1202 = yyj1202 > l + yyj1235++ + if yyhl1235 { + yyb1235 = yyj1235 > l } else { - yyb1202 = r.CheckBreak() + yyb1235 = r.CheckBreak() } - if yyb1202 { + if yyb1235 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -16792,17 +17321,17 @@ func (x *ContainerPort) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { x.HostIP = string(r.DecodeString()) } for { - yyj1202++ - if yyhl1202 { - yyb1202 = yyj1202 > l + yyj1235++ + if yyhl1235 { + yyb1235 = yyj1235 > l } else { - yyb1202 = r.CheckBreak() + yyb1235 = r.CheckBreak() } - if yyb1202 { + if yyb1235 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj1202-1, "") + z.DecStructFieldNotFound(yyj1235-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -16814,35 +17343,35 @@ func (x *VolumeMount) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1208 := z.EncBinary() - _ = yym1208 + yym1241 := z.EncBinary() + _ = yym1241 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - 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 { + yysep1242 := !z.EncBinary() + yy2arr1242 := z.EncBasicHandle().StructToArray + var yyq1242 [4]bool + _, _, _ = yysep1242, yyq1242, yy2arr1242 + const yyr1242 bool = false + yyq1242[1] = x.ReadOnly != false + yyq1242[3] = x.SubPath != "" + var yynn1242 int + if yyr1242 || yy2arr1242 { r.EncodeArrayStart(4) } else { - yynn1209 = 2 - for _, b := range yyq1209 { + yynn1242 = 2 + for _, b := range yyq1242 { if b { - yynn1209++ + yynn1242++ } } - r.EncodeMapStart(yynn1209) - yynn1209 = 0 + r.EncodeMapStart(yynn1242) + yynn1242 = 0 } - if yyr1209 || yy2arr1209 { + if yyr1242 || yy2arr1242 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym1211 := z.EncBinary() - _ = yym1211 + yym1244 := z.EncBinary() + _ = yym1244 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Name)) @@ -16851,18 +17380,18 @@ func (x *VolumeMount) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("name")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym1212 := z.EncBinary() - _ = yym1212 + yym1245 := z.EncBinary() + _ = yym1245 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Name)) } } - if yyr1209 || yy2arr1209 { + if yyr1242 || yy2arr1242 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1209[1] { - yym1214 := z.EncBinary() - _ = yym1214 + if yyq1242[1] { + yym1247 := z.EncBinary() + _ = yym1247 if false { } else { r.EncodeBool(bool(x.ReadOnly)) @@ -16871,22 +17400,22 @@ func (x *VolumeMount) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeBool(false) } } else { - if yyq1209[1] { + if yyq1242[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("readOnly")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym1215 := z.EncBinary() - _ = yym1215 + yym1248 := z.EncBinary() + _ = yym1248 if false { } else { r.EncodeBool(bool(x.ReadOnly)) } } } - if yyr1209 || yy2arr1209 { + if yyr1242 || yy2arr1242 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym1217 := z.EncBinary() - _ = yym1217 + yym1250 := z.EncBinary() + _ = yym1250 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.MountPath)) @@ -16895,18 +17424,18 @@ func (x *VolumeMount) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("mountPath")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym1218 := z.EncBinary() - _ = yym1218 + yym1251 := z.EncBinary() + _ = yym1251 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.MountPath)) } } - if yyr1209 || yy2arr1209 { + if yyr1242 || yy2arr1242 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1209[3] { - yym1220 := z.EncBinary() - _ = yym1220 + if yyq1242[3] { + yym1253 := z.EncBinary() + _ = yym1253 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.SubPath)) @@ -16915,19 +17444,19 @@ func (x *VolumeMount) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq1209[3] { + if yyq1242[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("subPath")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym1221 := z.EncBinary() - _ = yym1221 + yym1254 := z.EncBinary() + _ = yym1254 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.SubPath)) } } } - if yyr1209 || yy2arr1209 { + if yyr1242 || yy2arr1242 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -16940,25 +17469,25 @@ func (x *VolumeMount) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1222 := z.DecBinary() - _ = yym1222 + yym1255 := z.DecBinary() + _ = yym1255 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct1223 := r.ContainerType() - if yyct1223 == codecSelferValueTypeMap1234 { - yyl1223 := r.ReadMapStart() - if yyl1223 == 0 { + yyct1256 := r.ContainerType() + if yyct1256 == codecSelferValueTypeMap1234 { + yyl1256 := r.ReadMapStart() + if yyl1256 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl1223, d) + x.codecDecodeSelfFromMap(yyl1256, d) } - } else if yyct1223 == codecSelferValueTypeArray1234 { - yyl1223 := r.ReadArrayStart() - if yyl1223 == 0 { + } else if yyct1256 == codecSelferValueTypeArray1234 { + yyl1256 := r.ReadArrayStart() + if yyl1256 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl1223, d) + x.codecDecodeSelfFromArray(yyl1256, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -16970,12 +17499,12 @@ func (x *VolumeMount) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys1224Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys1224Slc - var yyhl1224 bool = l >= 0 - for yyj1224 := 0; ; yyj1224++ { - if yyhl1224 { - if yyj1224 >= l { + var yys1257Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys1257Slc + var yyhl1257 bool = l >= 0 + for yyj1257 := 0; ; yyj1257++ { + if yyhl1257 { + if yyj1257 >= l { break } } else { @@ -16984,10 +17513,10 @@ func (x *VolumeMount) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys1224Slc = r.DecodeBytes(yys1224Slc, true, true) - yys1224 := string(yys1224Slc) + yys1257Slc = r.DecodeBytes(yys1257Slc, true, true) + yys1257 := string(yys1257Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys1224 { + switch yys1257 { case "name": if r.TryDecodeAsNil() { x.Name = "" @@ -17013,9 +17542,9 @@ func (x *VolumeMount) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { x.SubPath = string(r.DecodeString()) } default: - z.DecStructFieldNotFound(-1, yys1224) - } // end switch yys1224 - } // end for yyj1224 + z.DecStructFieldNotFound(-1, yys1257) + } // end switch yys1257 + } // end for yyj1257 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -17023,16 +17552,16 @@ func (x *VolumeMount) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj1229 int - var yyb1229 bool - var yyhl1229 bool = l >= 0 - yyj1229++ - if yyhl1229 { - yyb1229 = yyj1229 > l + var yyj1262 int + var yyb1262 bool + var yyhl1262 bool = l >= 0 + yyj1262++ + if yyhl1262 { + yyb1262 = yyj1262 > l } else { - yyb1229 = r.CheckBreak() + yyb1262 = r.CheckBreak() } - if yyb1229 { + if yyb1262 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -17042,13 +17571,13 @@ func (x *VolumeMount) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.Name = string(r.DecodeString()) } - yyj1229++ - if yyhl1229 { - yyb1229 = yyj1229 > l + yyj1262++ + if yyhl1262 { + yyb1262 = yyj1262 > l } else { - yyb1229 = r.CheckBreak() + yyb1262 = r.CheckBreak() } - if yyb1229 { + if yyb1262 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -17058,13 +17587,13 @@ func (x *VolumeMount) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.ReadOnly = bool(r.DecodeBool()) } - yyj1229++ - if yyhl1229 { - yyb1229 = yyj1229 > l + yyj1262++ + if yyhl1262 { + yyb1262 = yyj1262 > l } else { - yyb1229 = r.CheckBreak() + yyb1262 = r.CheckBreak() } - if yyb1229 { + if yyb1262 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -17074,13 +17603,13 @@ func (x *VolumeMount) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.MountPath = string(r.DecodeString()) } - yyj1229++ - if yyhl1229 { - yyb1229 = yyj1229 > l + yyj1262++ + if yyhl1262 { + yyb1262 = yyj1262 > l } else { - yyb1229 = r.CheckBreak() + yyb1262 = r.CheckBreak() } - if yyb1229 { + if yyb1262 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -17091,17 +17620,17 @@ func (x *VolumeMount) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { x.SubPath = string(r.DecodeString()) } for { - yyj1229++ - if yyhl1229 { - yyb1229 = yyj1229 > l + yyj1262++ + if yyhl1262 { + yyb1262 = yyj1262 > l } else { - yyb1229 = r.CheckBreak() + yyb1262 = r.CheckBreak() } - if yyb1229 { + if yyb1262 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj1229-1, "") + z.DecStructFieldNotFound(yyj1262-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -17113,35 +17642,35 @@ func (x *EnvVar) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1234 := z.EncBinary() - _ = yym1234 + yym1267 := z.EncBinary() + _ = yym1267 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - 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 { + yysep1268 := !z.EncBinary() + yy2arr1268 := z.EncBasicHandle().StructToArray + var yyq1268 [3]bool + _, _, _ = yysep1268, yyq1268, yy2arr1268 + const yyr1268 bool = false + yyq1268[1] = x.Value != "" + yyq1268[2] = x.ValueFrom != nil + var yynn1268 int + if yyr1268 || yy2arr1268 { r.EncodeArrayStart(3) } else { - yynn1235 = 1 - for _, b := range yyq1235 { + yynn1268 = 1 + for _, b := range yyq1268 { if b { - yynn1235++ + yynn1268++ } } - r.EncodeMapStart(yynn1235) - yynn1235 = 0 + r.EncodeMapStart(yynn1268) + yynn1268 = 0 } - if yyr1235 || yy2arr1235 { + if yyr1268 || yy2arr1268 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym1237 := z.EncBinary() - _ = yym1237 + yym1270 := z.EncBinary() + _ = yym1270 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Name)) @@ -17150,18 +17679,18 @@ func (x *EnvVar) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("name")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym1238 := z.EncBinary() - _ = yym1238 + yym1271 := z.EncBinary() + _ = yym1271 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Name)) } } - if yyr1235 || yy2arr1235 { + if yyr1268 || yy2arr1268 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1235[1] { - yym1240 := z.EncBinary() - _ = yym1240 + if yyq1268[1] { + yym1273 := z.EncBinary() + _ = yym1273 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Value)) @@ -17170,21 +17699,21 @@ func (x *EnvVar) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq1235[1] { + if yyq1268[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("value")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym1241 := z.EncBinary() - _ = yym1241 + yym1274 := z.EncBinary() + _ = yym1274 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Value)) } } } - if yyr1235 || yy2arr1235 { + if yyr1268 || yy2arr1268 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1235[2] { + if yyq1268[2] { if x.ValueFrom == nil { r.EncodeNil() } else { @@ -17194,7 +17723,7 @@ func (x *EnvVar) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq1235[2] { + if yyq1268[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("valueFrom")) z.EncSendContainerState(codecSelfer_containerMapValue1234) @@ -17205,7 +17734,7 @@ func (x *EnvVar) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr1235 || yy2arr1235 { + if yyr1268 || yy2arr1268 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -17218,25 +17747,25 @@ func (x *EnvVar) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1243 := z.DecBinary() - _ = yym1243 + yym1276 := z.DecBinary() + _ = yym1276 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct1244 := r.ContainerType() - if yyct1244 == codecSelferValueTypeMap1234 { - yyl1244 := r.ReadMapStart() - if yyl1244 == 0 { + yyct1277 := r.ContainerType() + if yyct1277 == codecSelferValueTypeMap1234 { + yyl1277 := r.ReadMapStart() + if yyl1277 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl1244, d) + x.codecDecodeSelfFromMap(yyl1277, d) } - } else if yyct1244 == codecSelferValueTypeArray1234 { - yyl1244 := r.ReadArrayStart() - if yyl1244 == 0 { + } else if yyct1277 == codecSelferValueTypeArray1234 { + yyl1277 := r.ReadArrayStart() + if yyl1277 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl1244, d) + x.codecDecodeSelfFromArray(yyl1277, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -17248,12 +17777,12 @@ func (x *EnvVar) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys1245Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys1245Slc - var yyhl1245 bool = l >= 0 - for yyj1245 := 0; ; yyj1245++ { - if yyhl1245 { - if yyj1245 >= l { + var 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 { @@ -17262,10 +17791,10 @@ func (x *EnvVar) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys1245Slc = r.DecodeBytes(yys1245Slc, true, true) - yys1245 := string(yys1245Slc) + yys1278Slc = r.DecodeBytes(yys1278Slc, true, true) + yys1278 := string(yys1278Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys1245 { + switch yys1278 { case "name": if r.TryDecodeAsNil() { x.Name = "" @@ -17290,9 +17819,9 @@ func (x *EnvVar) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { x.ValueFrom.CodecDecodeSelf(d) } default: - z.DecStructFieldNotFound(-1, yys1245) - } // end switch yys1245 - } // end for yyj1245 + z.DecStructFieldNotFound(-1, yys1278) + } // end switch yys1278 + } // end for yyj1278 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -17300,16 +17829,16 @@ func (x *EnvVar) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj1249 int - var yyb1249 bool - var yyhl1249 bool = l >= 0 - yyj1249++ - if yyhl1249 { - yyb1249 = yyj1249 > l + var yyj1282 int + var yyb1282 bool + var yyhl1282 bool = l >= 0 + yyj1282++ + if yyhl1282 { + yyb1282 = yyj1282 > l } else { - yyb1249 = r.CheckBreak() + yyb1282 = r.CheckBreak() } - if yyb1249 { + if yyb1282 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -17319,13 +17848,13 @@ func (x *EnvVar) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.Name = string(r.DecodeString()) } - yyj1249++ - if yyhl1249 { - yyb1249 = yyj1249 > l + yyj1282++ + if yyhl1282 { + yyb1282 = yyj1282 > l } else { - yyb1249 = r.CheckBreak() + yyb1282 = r.CheckBreak() } - if yyb1249 { + if yyb1282 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -17335,13 +17864,13 @@ func (x *EnvVar) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.Value = string(r.DecodeString()) } - yyj1249++ - if yyhl1249 { - yyb1249 = yyj1249 > l + yyj1282++ + if yyhl1282 { + yyb1282 = yyj1282 > l } else { - yyb1249 = r.CheckBreak() + yyb1282 = r.CheckBreak() } - if yyb1249 { + if yyb1282 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -17357,17 +17886,17 @@ func (x *EnvVar) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { x.ValueFrom.CodecDecodeSelf(d) } for { - yyj1249++ - if yyhl1249 { - yyb1249 = yyj1249 > l + yyj1282++ + if yyhl1282 { + yyb1282 = yyj1282 > l } else { - yyb1249 = r.CheckBreak() + yyb1282 = r.CheckBreak() } - if yyb1249 { + if yyb1282 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj1249-1, "") + z.DecStructFieldNotFound(yyj1282-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -17379,36 +17908,36 @@ func (x *EnvVarSource) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1253 := z.EncBinary() - _ = yym1253 + yym1286 := z.EncBinary() + _ = yym1286 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - 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 { + yysep1287 := !z.EncBinary() + yy2arr1287 := z.EncBasicHandle().StructToArray + var yyq1287 [4]bool + _, _, _ = yysep1287, yyq1287, yy2arr1287 + const yyr1287 bool = false + yyq1287[0] = x.FieldRef != nil + yyq1287[1] = x.ResourceFieldRef != nil + yyq1287[2] = x.ConfigMapKeyRef != nil + yyq1287[3] = x.SecretKeyRef != nil + var yynn1287 int + if yyr1287 || yy2arr1287 { r.EncodeArrayStart(4) } else { - yynn1254 = 0 - for _, b := range yyq1254 { + yynn1287 = 0 + for _, b := range yyq1287 { if b { - yynn1254++ + yynn1287++ } } - r.EncodeMapStart(yynn1254) - yynn1254 = 0 + r.EncodeMapStart(yynn1287) + yynn1287 = 0 } - if yyr1254 || yy2arr1254 { + if yyr1287 || yy2arr1287 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1254[0] { + if yyq1287[0] { if x.FieldRef == nil { r.EncodeNil() } else { @@ -17418,7 +17947,7 @@ func (x *EnvVarSource) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq1254[0] { + if yyq1287[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("fieldRef")) z.EncSendContainerState(codecSelfer_containerMapValue1234) @@ -17429,9 +17958,9 @@ func (x *EnvVarSource) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr1254 || yy2arr1254 { + if yyr1287 || yy2arr1287 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1254[1] { + if yyq1287[1] { if x.ResourceFieldRef == nil { r.EncodeNil() } else { @@ -17441,7 +17970,7 @@ func (x *EnvVarSource) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq1254[1] { + if yyq1287[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("resourceFieldRef")) z.EncSendContainerState(codecSelfer_containerMapValue1234) @@ -17452,9 +17981,9 @@ func (x *EnvVarSource) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr1254 || yy2arr1254 { + if yyr1287 || yy2arr1287 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1254[2] { + if yyq1287[2] { if x.ConfigMapKeyRef == nil { r.EncodeNil() } else { @@ -17464,7 +17993,7 @@ func (x *EnvVarSource) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq1254[2] { + if yyq1287[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("configMapKeyRef")) z.EncSendContainerState(codecSelfer_containerMapValue1234) @@ -17475,9 +18004,9 @@ func (x *EnvVarSource) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr1254 || yy2arr1254 { + if yyr1287 || yy2arr1287 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1254[3] { + if yyq1287[3] { if x.SecretKeyRef == nil { r.EncodeNil() } else { @@ -17487,7 +18016,7 @@ func (x *EnvVarSource) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq1254[3] { + if yyq1287[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("secretKeyRef")) z.EncSendContainerState(codecSelfer_containerMapValue1234) @@ -17498,7 +18027,7 @@ func (x *EnvVarSource) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr1254 || yy2arr1254 { + if yyr1287 || yy2arr1287 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -17511,25 +18040,25 @@ func (x *EnvVarSource) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1259 := z.DecBinary() - _ = yym1259 + yym1292 := z.DecBinary() + _ = yym1292 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct1260 := r.ContainerType() - if yyct1260 == codecSelferValueTypeMap1234 { - yyl1260 := r.ReadMapStart() - if yyl1260 == 0 { + yyct1293 := r.ContainerType() + if yyct1293 == codecSelferValueTypeMap1234 { + yyl1293 := r.ReadMapStart() + if yyl1293 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl1260, d) + x.codecDecodeSelfFromMap(yyl1293, d) } - } else if yyct1260 == codecSelferValueTypeArray1234 { - yyl1260 := r.ReadArrayStart() - if yyl1260 == 0 { + } else if yyct1293 == codecSelferValueTypeArray1234 { + yyl1293 := r.ReadArrayStart() + if yyl1293 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl1260, d) + x.codecDecodeSelfFromArray(yyl1293, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -17541,12 +18070,12 @@ func (x *EnvVarSource) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys1261Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys1261Slc - var yyhl1261 bool = l >= 0 - for yyj1261 := 0; ; yyj1261++ { - if yyhl1261 { - if yyj1261 >= l { + var yys1294Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys1294Slc + var yyhl1294 bool = l >= 0 + for yyj1294 := 0; ; yyj1294++ { + if yyhl1294 { + if yyj1294 >= l { break } } else { @@ -17555,10 +18084,10 @@ func (x *EnvVarSource) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys1261Slc = r.DecodeBytes(yys1261Slc, true, true) - yys1261 := string(yys1261Slc) + yys1294Slc = r.DecodeBytes(yys1294Slc, true, true) + yys1294 := string(yys1294Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys1261 { + switch yys1294 { case "fieldRef": if r.TryDecodeAsNil() { if x.FieldRef != nil { @@ -17604,9 +18133,9 @@ func (x *EnvVarSource) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { x.SecretKeyRef.CodecDecodeSelf(d) } default: - z.DecStructFieldNotFound(-1, yys1261) - } // end switch yys1261 - } // end for yyj1261 + z.DecStructFieldNotFound(-1, yys1294) + } // end switch yys1294 + } // end for yyj1294 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -17614,16 +18143,16 @@ func (x *EnvVarSource) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj1266 int - var yyb1266 bool - var yyhl1266 bool = l >= 0 - yyj1266++ - if yyhl1266 { - yyb1266 = yyj1266 > l + var yyj1299 int + var yyb1299 bool + var yyhl1299 bool = l >= 0 + yyj1299++ + if yyhl1299 { + yyb1299 = yyj1299 > l } else { - yyb1266 = r.CheckBreak() + yyb1299 = r.CheckBreak() } - if yyb1266 { + if yyb1299 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -17638,13 +18167,13 @@ func (x *EnvVarSource) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } x.FieldRef.CodecDecodeSelf(d) } - yyj1266++ - if yyhl1266 { - yyb1266 = yyj1266 > l + yyj1299++ + if yyhl1299 { + yyb1299 = yyj1299 > l } else { - yyb1266 = r.CheckBreak() + yyb1299 = r.CheckBreak() } - if yyb1266 { + if yyb1299 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -17659,13 +18188,13 @@ func (x *EnvVarSource) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } x.ResourceFieldRef.CodecDecodeSelf(d) } - yyj1266++ - if yyhl1266 { - yyb1266 = yyj1266 > l + yyj1299++ + if yyhl1299 { + yyb1299 = yyj1299 > l } else { - yyb1266 = r.CheckBreak() + yyb1299 = r.CheckBreak() } - if yyb1266 { + if yyb1299 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -17680,13 +18209,13 @@ func (x *EnvVarSource) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } x.ConfigMapKeyRef.CodecDecodeSelf(d) } - yyj1266++ - if yyhl1266 { - yyb1266 = yyj1266 > l + yyj1299++ + if yyhl1299 { + yyb1299 = yyj1299 > l } else { - yyb1266 = r.CheckBreak() + yyb1299 = r.CheckBreak() } - if yyb1266 { + if yyb1299 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -17702,17 +18231,17 @@ func (x *EnvVarSource) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { x.SecretKeyRef.CodecDecodeSelf(d) } for { - yyj1266++ - if yyhl1266 { - yyb1266 = yyj1266 > l + yyj1299++ + if yyhl1299 { + yyb1299 = yyj1299 > l } else { - yyb1266 = r.CheckBreak() + yyb1299 = r.CheckBreak() } - if yyb1266 { + if yyb1299 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj1266-1, "") + z.DecStructFieldNotFound(yyj1299-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -17724,33 +18253,33 @@ func (x *ObjectFieldSelector) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1271 := z.EncBinary() - _ = yym1271 + yym1304 := z.EncBinary() + _ = yym1304 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep1272 := !z.EncBinary() - yy2arr1272 := z.EncBasicHandle().StructToArray - var yyq1272 [2]bool - _, _, _ = yysep1272, yyq1272, yy2arr1272 - const yyr1272 bool = false - var yynn1272 int - if yyr1272 || yy2arr1272 { + yysep1305 := !z.EncBinary() + yy2arr1305 := z.EncBasicHandle().StructToArray + var yyq1305 [2]bool + _, _, _ = yysep1305, yyq1305, yy2arr1305 + const yyr1305 bool = false + var yynn1305 int + if yyr1305 || yy2arr1305 { r.EncodeArrayStart(2) } else { - yynn1272 = 2 - for _, b := range yyq1272 { + yynn1305 = 2 + for _, b := range yyq1305 { if b { - yynn1272++ + yynn1305++ } } - r.EncodeMapStart(yynn1272) - yynn1272 = 0 + r.EncodeMapStart(yynn1305) + yynn1305 = 0 } - if yyr1272 || yy2arr1272 { + if yyr1305 || yy2arr1305 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym1274 := z.EncBinary() - _ = yym1274 + yym1307 := z.EncBinary() + _ = yym1307 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) @@ -17759,17 +18288,17 @@ func (x *ObjectFieldSelector) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym1275 := z.EncBinary() - _ = yym1275 + yym1308 := z.EncBinary() + _ = yym1308 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } - if yyr1272 || yy2arr1272 { + if yyr1305 || yy2arr1305 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym1277 := z.EncBinary() - _ = yym1277 + yym1310 := z.EncBinary() + _ = yym1310 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.FieldPath)) @@ -17778,14 +18307,14 @@ func (x *ObjectFieldSelector) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("fieldPath")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym1278 := z.EncBinary() - _ = yym1278 + yym1311 := z.EncBinary() + _ = yym1311 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.FieldPath)) } } - if yyr1272 || yy2arr1272 { + if yyr1305 || yy2arr1305 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -17798,25 +18327,25 @@ func (x *ObjectFieldSelector) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1279 := z.DecBinary() - _ = yym1279 + yym1312 := z.DecBinary() + _ = yym1312 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct1280 := r.ContainerType() - if yyct1280 == codecSelferValueTypeMap1234 { - yyl1280 := r.ReadMapStart() - if yyl1280 == 0 { + yyct1313 := r.ContainerType() + if yyct1313 == codecSelferValueTypeMap1234 { + yyl1313 := r.ReadMapStart() + if yyl1313 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl1280, d) + x.codecDecodeSelfFromMap(yyl1313, d) } - } else if yyct1280 == codecSelferValueTypeArray1234 { - yyl1280 := r.ReadArrayStart() - if yyl1280 == 0 { + } else if yyct1313 == codecSelferValueTypeArray1234 { + yyl1313 := r.ReadArrayStart() + if yyl1313 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl1280, d) + x.codecDecodeSelfFromArray(yyl1313, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -17828,12 +18357,12 @@ func (x *ObjectFieldSelector) codecDecodeSelfFromMap(l int, d *codec1978.Decoder var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys1281Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys1281Slc - var yyhl1281 bool = l >= 0 - for yyj1281 := 0; ; yyj1281++ { - if yyhl1281 { - if yyj1281 >= l { + var yys1314Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys1314Slc + var yyhl1314 bool = l >= 0 + for yyj1314 := 0; ; yyj1314++ { + if yyhl1314 { + if yyj1314 >= l { break } } else { @@ -17842,10 +18371,10 @@ func (x *ObjectFieldSelector) codecDecodeSelfFromMap(l int, d *codec1978.Decoder } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys1281Slc = r.DecodeBytes(yys1281Slc, true, true) - yys1281 := string(yys1281Slc) + yys1314Slc = r.DecodeBytes(yys1314Slc, true, true) + yys1314 := string(yys1314Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys1281 { + switch yys1314 { case "apiVersion": if r.TryDecodeAsNil() { x.APIVersion = "" @@ -17859,9 +18388,9 @@ func (x *ObjectFieldSelector) codecDecodeSelfFromMap(l int, d *codec1978.Decoder x.FieldPath = string(r.DecodeString()) } default: - z.DecStructFieldNotFound(-1, yys1281) - } // end switch yys1281 - } // end for yyj1281 + z.DecStructFieldNotFound(-1, yys1314) + } // end switch yys1314 + } // end for yyj1314 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -17869,16 +18398,16 @@ func (x *ObjectFieldSelector) codecDecodeSelfFromArray(l int, d *codec1978.Decod var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj1284 int - var yyb1284 bool - var yyhl1284 bool = l >= 0 - yyj1284++ - if yyhl1284 { - yyb1284 = yyj1284 > l + var yyj1317 int + var yyb1317 bool + var yyhl1317 bool = l >= 0 + yyj1317++ + if yyhl1317 { + yyb1317 = yyj1317 > l } else { - yyb1284 = r.CheckBreak() + yyb1317 = r.CheckBreak() } - if yyb1284 { + if yyb1317 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -17888,13 +18417,13 @@ func (x *ObjectFieldSelector) codecDecodeSelfFromArray(l int, d *codec1978.Decod } else { x.APIVersion = string(r.DecodeString()) } - yyj1284++ - if yyhl1284 { - yyb1284 = yyj1284 > l + yyj1317++ + if yyhl1317 { + yyb1317 = yyj1317 > l } else { - yyb1284 = r.CheckBreak() + yyb1317 = r.CheckBreak() } - if yyb1284 { + if yyb1317 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -17905,17 +18434,17 @@ func (x *ObjectFieldSelector) codecDecodeSelfFromArray(l int, d *codec1978.Decod x.FieldPath = string(r.DecodeString()) } for { - yyj1284++ - if yyhl1284 { - yyb1284 = yyj1284 > l + yyj1317++ + if yyhl1317 { + yyb1317 = yyj1317 > l } else { - yyb1284 = r.CheckBreak() + yyb1317 = r.CheckBreak() } - if yyb1284 { + if yyb1317 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj1284-1, "") + z.DecStructFieldNotFound(yyj1317-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -17927,36 +18456,36 @@ func (x *ResourceFieldSelector) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1287 := z.EncBinary() - _ = yym1287 + yym1320 := z.EncBinary() + _ = yym1320 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - 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 { + yysep1321 := !z.EncBinary() + yy2arr1321 := z.EncBasicHandle().StructToArray + var yyq1321 [3]bool + _, _, _ = yysep1321, yyq1321, yy2arr1321 + const yyr1321 bool = false + yyq1321[0] = x.ContainerName != "" + yyq1321[2] = true + var yynn1321 int + if yyr1321 || yy2arr1321 { r.EncodeArrayStart(3) } else { - yynn1288 = 1 - for _, b := range yyq1288 { + yynn1321 = 1 + for _, b := range yyq1321 { if b { - yynn1288++ + yynn1321++ } } - r.EncodeMapStart(yynn1288) - yynn1288 = 0 + r.EncodeMapStart(yynn1321) + yynn1321 = 0 } - if yyr1288 || yy2arr1288 { + if yyr1321 || yy2arr1321 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1288[0] { - yym1290 := z.EncBinary() - _ = yym1290 + if yyq1321[0] { + yym1323 := z.EncBinary() + _ = yym1323 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.ContainerName)) @@ -17965,22 +18494,22 @@ func (x *ResourceFieldSelector) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq1288[0] { + if yyq1321[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("containerName")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym1291 := z.EncBinary() - _ = yym1291 + yym1324 := z.EncBinary() + _ = yym1324 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.ContainerName)) } } } - if yyr1288 || yy2arr1288 { + if yyr1321 || yy2arr1321 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym1293 := z.EncBinary() - _ = yym1293 + yym1326 := z.EncBinary() + _ = yym1326 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Resource)) @@ -17989,47 +18518,47 @@ func (x *ResourceFieldSelector) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("resource")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym1294 := z.EncBinary() - _ = yym1294 + yym1327 := z.EncBinary() + _ = yym1327 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Resource)) } } - if yyr1288 || yy2arr1288 { + if yyr1321 || yy2arr1321 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1288[2] { - yy1296 := &x.Divisor - yym1297 := z.EncBinary() - _ = yym1297 + if yyq1321[2] { + yy1329 := &x.Divisor + yym1330 := z.EncBinary() + _ = yym1330 if false { - } else if z.HasExtensions() && z.EncExt(yy1296) { - } else if !yym1297 && z.IsJSONHandle() { - z.EncJSONMarshal(yy1296) + } else if z.HasExtensions() && z.EncExt(yy1329) { + } else if !yym1330 && z.IsJSONHandle() { + z.EncJSONMarshal(yy1329) } else { - z.EncFallback(yy1296) + z.EncFallback(yy1329) } } else { r.EncodeNil() } } else { - if yyq1288[2] { + if yyq1321[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("divisor")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy1298 := &x.Divisor - yym1299 := z.EncBinary() - _ = yym1299 + yy1331 := &x.Divisor + yym1332 := z.EncBinary() + _ = yym1332 if false { - } else if z.HasExtensions() && z.EncExt(yy1298) { - } else if !yym1299 && z.IsJSONHandle() { - z.EncJSONMarshal(yy1298) + } else if z.HasExtensions() && z.EncExt(yy1331) { + } else if !yym1332 && z.IsJSONHandle() { + z.EncJSONMarshal(yy1331) } else { - z.EncFallback(yy1298) + z.EncFallback(yy1331) } } } - if yyr1288 || yy2arr1288 { + if yyr1321 || yy2arr1321 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -18042,25 +18571,25 @@ func (x *ResourceFieldSelector) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1300 := z.DecBinary() - _ = yym1300 + yym1333 := z.DecBinary() + _ = yym1333 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct1301 := r.ContainerType() - if yyct1301 == codecSelferValueTypeMap1234 { - yyl1301 := r.ReadMapStart() - if yyl1301 == 0 { + yyct1334 := r.ContainerType() + if yyct1334 == codecSelferValueTypeMap1234 { + yyl1334 := r.ReadMapStart() + if yyl1334 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl1301, d) + x.codecDecodeSelfFromMap(yyl1334, d) } - } else if yyct1301 == codecSelferValueTypeArray1234 { - yyl1301 := r.ReadArrayStart() - if yyl1301 == 0 { + } else if yyct1334 == codecSelferValueTypeArray1234 { + yyl1334 := r.ReadArrayStart() + if yyl1334 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl1301, d) + x.codecDecodeSelfFromArray(yyl1334, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -18072,12 +18601,12 @@ func (x *ResourceFieldSelector) codecDecodeSelfFromMap(l int, d *codec1978.Decod var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys1302Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys1302Slc - var yyhl1302 bool = l >= 0 - for yyj1302 := 0; ; yyj1302++ { - if yyhl1302 { - if yyj1302 >= l { + var yys1335Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys1335Slc + var yyhl1335 bool = l >= 0 + for yyj1335 := 0; ; yyj1335++ { + if yyhl1335 { + if yyj1335 >= l { break } } else { @@ -18086,10 +18615,10 @@ func (x *ResourceFieldSelector) codecDecodeSelfFromMap(l int, d *codec1978.Decod } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys1302Slc = r.DecodeBytes(yys1302Slc, true, true) - yys1302 := string(yys1302Slc) + yys1335Slc = r.DecodeBytes(yys1335Slc, true, true) + yys1335 := string(yys1335Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys1302 { + switch yys1335 { case "containerName": if r.TryDecodeAsNil() { x.ContainerName = "" @@ -18106,21 +18635,21 @@ func (x *ResourceFieldSelector) codecDecodeSelfFromMap(l int, d *codec1978.Decod if r.TryDecodeAsNil() { x.Divisor = pkg3_resource.Quantity{} } else { - yyv1305 := &x.Divisor - yym1306 := z.DecBinary() - _ = yym1306 + yyv1338 := &x.Divisor + yym1339 := z.DecBinary() + _ = yym1339 if false { - } else if z.HasExtensions() && z.DecExt(yyv1305) { - } else if !yym1306 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv1305) + } else if z.HasExtensions() && z.DecExt(yyv1338) { + } else if !yym1339 && z.IsJSONHandle() { + z.DecJSONUnmarshal(yyv1338) } else { - z.DecFallback(yyv1305, false) + z.DecFallback(yyv1338, false) } } default: - z.DecStructFieldNotFound(-1, yys1302) - } // end switch yys1302 - } // end for yyj1302 + z.DecStructFieldNotFound(-1, yys1335) + } // end switch yys1335 + } // end for yyj1335 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -18128,16 +18657,16 @@ func (x *ResourceFieldSelector) codecDecodeSelfFromArray(l int, d *codec1978.Dec var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj1307 int - var yyb1307 bool - var yyhl1307 bool = l >= 0 - yyj1307++ - if yyhl1307 { - yyb1307 = yyj1307 > l + var yyj1340 int + var yyb1340 bool + var yyhl1340 bool = l >= 0 + yyj1340++ + if yyhl1340 { + yyb1340 = yyj1340 > l } else { - yyb1307 = r.CheckBreak() + yyb1340 = r.CheckBreak() } - if yyb1307 { + if yyb1340 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -18147,13 +18676,13 @@ func (x *ResourceFieldSelector) codecDecodeSelfFromArray(l int, d *codec1978.Dec } else { x.ContainerName = string(r.DecodeString()) } - yyj1307++ - if yyhl1307 { - yyb1307 = yyj1307 > l + yyj1340++ + if yyhl1340 { + yyb1340 = yyj1340 > l } else { - yyb1307 = r.CheckBreak() + yyb1340 = r.CheckBreak() } - if yyb1307 { + if yyb1340 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -18163,13 +18692,13 @@ func (x *ResourceFieldSelector) codecDecodeSelfFromArray(l int, d *codec1978.Dec } else { x.Resource = string(r.DecodeString()) } - yyj1307++ - if yyhl1307 { - yyb1307 = yyj1307 > l + yyj1340++ + if yyhl1340 { + yyb1340 = yyj1340 > l } else { - yyb1307 = r.CheckBreak() + yyb1340 = r.CheckBreak() } - if yyb1307 { + if yyb1340 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -18177,29 +18706,29 @@ func (x *ResourceFieldSelector) codecDecodeSelfFromArray(l int, d *codec1978.Dec if r.TryDecodeAsNil() { x.Divisor = pkg3_resource.Quantity{} } else { - yyv1310 := &x.Divisor - yym1311 := z.DecBinary() - _ = yym1311 + yyv1343 := &x.Divisor + yym1344 := z.DecBinary() + _ = yym1344 if false { - } else if z.HasExtensions() && z.DecExt(yyv1310) { - } else if !yym1311 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv1310) + } else if z.HasExtensions() && z.DecExt(yyv1343) { + } else if !yym1344 && z.IsJSONHandle() { + z.DecJSONUnmarshal(yyv1343) } else { - z.DecFallback(yyv1310, false) + z.DecFallback(yyv1343, false) } } for { - yyj1307++ - if yyhl1307 { - yyb1307 = yyj1307 > l + yyj1340++ + if yyhl1340 { + yyb1340 = yyj1340 > l } else { - yyb1307 = r.CheckBreak() + yyb1340 = r.CheckBreak() } - if yyb1307 { + if yyb1340 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj1307-1, "") + z.DecStructFieldNotFound(yyj1340-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -18211,33 +18740,33 @@ func (x *ConfigMapKeySelector) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1312 := z.EncBinary() - _ = yym1312 + yym1345 := z.EncBinary() + _ = yym1345 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep1313 := !z.EncBinary() - yy2arr1313 := z.EncBasicHandle().StructToArray - var yyq1313 [2]bool - _, _, _ = yysep1313, yyq1313, yy2arr1313 - const yyr1313 bool = false - var yynn1313 int - if yyr1313 || yy2arr1313 { + yysep1346 := !z.EncBinary() + yy2arr1346 := z.EncBasicHandle().StructToArray + var yyq1346 [2]bool + _, _, _ = yysep1346, yyq1346, yy2arr1346 + const yyr1346 bool = false + var yynn1346 int + if yyr1346 || yy2arr1346 { r.EncodeArrayStart(2) } else { - yynn1313 = 2 - for _, b := range yyq1313 { + yynn1346 = 2 + for _, b := range yyq1346 { if b { - yynn1313++ + yynn1346++ } } - r.EncodeMapStart(yynn1313) - yynn1313 = 0 + r.EncodeMapStart(yynn1346) + yynn1346 = 0 } - if yyr1313 || yy2arr1313 { + if yyr1346 || yy2arr1346 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym1315 := z.EncBinary() - _ = yym1315 + yym1348 := z.EncBinary() + _ = yym1348 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Name)) @@ -18246,17 +18775,17 @@ func (x *ConfigMapKeySelector) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("Name")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym1316 := z.EncBinary() - _ = yym1316 + yym1349 := z.EncBinary() + _ = yym1349 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Name)) } } - if yyr1313 || yy2arr1313 { + if yyr1346 || yy2arr1346 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym1318 := z.EncBinary() - _ = yym1318 + yym1351 := z.EncBinary() + _ = yym1351 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Key)) @@ -18265,14 +18794,14 @@ func (x *ConfigMapKeySelector) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("key")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym1319 := z.EncBinary() - _ = yym1319 + yym1352 := z.EncBinary() + _ = yym1352 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Key)) } } - if yyr1313 || yy2arr1313 { + if yyr1346 || yy2arr1346 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -18285,25 +18814,25 @@ func (x *ConfigMapKeySelector) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1320 := z.DecBinary() - _ = yym1320 + yym1353 := z.DecBinary() + _ = yym1353 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct1321 := r.ContainerType() - if yyct1321 == codecSelferValueTypeMap1234 { - yyl1321 := r.ReadMapStart() - if yyl1321 == 0 { + yyct1354 := r.ContainerType() + if yyct1354 == codecSelferValueTypeMap1234 { + yyl1354 := r.ReadMapStart() + if yyl1354 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl1321, d) + x.codecDecodeSelfFromMap(yyl1354, d) } - } else if yyct1321 == codecSelferValueTypeArray1234 { - yyl1321 := r.ReadArrayStart() - if yyl1321 == 0 { + } else if yyct1354 == codecSelferValueTypeArray1234 { + yyl1354 := r.ReadArrayStart() + if yyl1354 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl1321, d) + x.codecDecodeSelfFromArray(yyl1354, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -18315,12 +18844,12 @@ func (x *ConfigMapKeySelector) codecDecodeSelfFromMap(l int, d *codec1978.Decode var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys1322Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys1322Slc - var yyhl1322 bool = l >= 0 - for yyj1322 := 0; ; yyj1322++ { - if yyhl1322 { - if yyj1322 >= l { + var yys1355Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys1355Slc + var yyhl1355 bool = l >= 0 + for yyj1355 := 0; ; yyj1355++ { + if yyhl1355 { + if yyj1355 >= l { break } } else { @@ -18329,10 +18858,10 @@ func (x *ConfigMapKeySelector) codecDecodeSelfFromMap(l int, d *codec1978.Decode } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys1322Slc = r.DecodeBytes(yys1322Slc, true, true) - yys1322 := string(yys1322Slc) + yys1355Slc = r.DecodeBytes(yys1355Slc, true, true) + yys1355 := string(yys1355Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys1322 { + switch yys1355 { case "Name": if r.TryDecodeAsNil() { x.Name = "" @@ -18346,9 +18875,9 @@ func (x *ConfigMapKeySelector) codecDecodeSelfFromMap(l int, d *codec1978.Decode x.Key = string(r.DecodeString()) } default: - z.DecStructFieldNotFound(-1, yys1322) - } // end switch yys1322 - } // end for yyj1322 + z.DecStructFieldNotFound(-1, yys1355) + } // end switch yys1355 + } // end for yyj1355 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -18356,16 +18885,16 @@ func (x *ConfigMapKeySelector) codecDecodeSelfFromArray(l int, d *codec1978.Deco var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj1325 int - var yyb1325 bool - var yyhl1325 bool = l >= 0 - yyj1325++ - if yyhl1325 { - yyb1325 = yyj1325 > l + var yyj1358 int + var yyb1358 bool + var yyhl1358 bool = l >= 0 + yyj1358++ + if yyhl1358 { + yyb1358 = yyj1358 > l } else { - yyb1325 = r.CheckBreak() + yyb1358 = r.CheckBreak() } - if yyb1325 { + if yyb1358 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -18375,13 +18904,13 @@ func (x *ConfigMapKeySelector) codecDecodeSelfFromArray(l int, d *codec1978.Deco } else { x.Name = string(r.DecodeString()) } - yyj1325++ - if yyhl1325 { - yyb1325 = yyj1325 > l + yyj1358++ + if yyhl1358 { + yyb1358 = yyj1358 > l } else { - yyb1325 = r.CheckBreak() + yyb1358 = r.CheckBreak() } - if yyb1325 { + if yyb1358 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -18392,17 +18921,17 @@ func (x *ConfigMapKeySelector) codecDecodeSelfFromArray(l int, d *codec1978.Deco x.Key = string(r.DecodeString()) } for { - yyj1325++ - if yyhl1325 { - yyb1325 = yyj1325 > l + yyj1358++ + if yyhl1358 { + yyb1358 = yyj1358 > l } else { - yyb1325 = r.CheckBreak() + yyb1358 = r.CheckBreak() } - if yyb1325 { + if yyb1358 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj1325-1, "") + z.DecStructFieldNotFound(yyj1358-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -18414,33 +18943,33 @@ func (x *SecretKeySelector) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1328 := z.EncBinary() - _ = yym1328 + yym1361 := z.EncBinary() + _ = yym1361 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep1329 := !z.EncBinary() - yy2arr1329 := z.EncBasicHandle().StructToArray - var yyq1329 [2]bool - _, _, _ = yysep1329, yyq1329, yy2arr1329 - const yyr1329 bool = false - var yynn1329 int - if yyr1329 || yy2arr1329 { + yysep1362 := !z.EncBinary() + yy2arr1362 := z.EncBasicHandle().StructToArray + var yyq1362 [2]bool + _, _, _ = yysep1362, yyq1362, yy2arr1362 + const yyr1362 bool = false + var yynn1362 int + if yyr1362 || yy2arr1362 { r.EncodeArrayStart(2) } else { - yynn1329 = 2 - for _, b := range yyq1329 { + yynn1362 = 2 + for _, b := range yyq1362 { if b { - yynn1329++ + yynn1362++ } } - r.EncodeMapStart(yynn1329) - yynn1329 = 0 + r.EncodeMapStart(yynn1362) + yynn1362 = 0 } - if yyr1329 || yy2arr1329 { + if yyr1362 || yy2arr1362 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym1331 := z.EncBinary() - _ = yym1331 + yym1364 := z.EncBinary() + _ = yym1364 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Name)) @@ -18449,17 +18978,17 @@ func (x *SecretKeySelector) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("Name")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym1332 := z.EncBinary() - _ = yym1332 + yym1365 := z.EncBinary() + _ = yym1365 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Name)) } } - if yyr1329 || yy2arr1329 { + if yyr1362 || yy2arr1362 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym1334 := z.EncBinary() - _ = yym1334 + yym1367 := z.EncBinary() + _ = yym1367 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Key)) @@ -18468,14 +18997,14 @@ func (x *SecretKeySelector) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("key")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym1335 := z.EncBinary() - _ = yym1335 + yym1368 := z.EncBinary() + _ = yym1368 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Key)) } } - if yyr1329 || yy2arr1329 { + if yyr1362 || yy2arr1362 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -18488,25 +19017,25 @@ func (x *SecretKeySelector) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1336 := z.DecBinary() - _ = yym1336 + yym1369 := z.DecBinary() + _ = yym1369 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct1337 := r.ContainerType() - if yyct1337 == codecSelferValueTypeMap1234 { - yyl1337 := r.ReadMapStart() - if yyl1337 == 0 { + yyct1370 := r.ContainerType() + if yyct1370 == codecSelferValueTypeMap1234 { + yyl1370 := r.ReadMapStart() + if yyl1370 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl1337, d) + x.codecDecodeSelfFromMap(yyl1370, d) } - } else if yyct1337 == codecSelferValueTypeArray1234 { - yyl1337 := r.ReadArrayStart() - if yyl1337 == 0 { + } else if yyct1370 == codecSelferValueTypeArray1234 { + yyl1370 := r.ReadArrayStart() + if yyl1370 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl1337, d) + x.codecDecodeSelfFromArray(yyl1370, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -18518,12 +19047,12 @@ func (x *SecretKeySelector) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys1338Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys1338Slc - var yyhl1338 bool = l >= 0 - for yyj1338 := 0; ; yyj1338++ { - if yyhl1338 { - if yyj1338 >= l { + var 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 { @@ -18532,10 +19061,10 @@ func (x *SecretKeySelector) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys1338Slc = r.DecodeBytes(yys1338Slc, true, true) - yys1338 := string(yys1338Slc) + yys1371Slc = r.DecodeBytes(yys1371Slc, true, true) + yys1371 := string(yys1371Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys1338 { + switch yys1371 { case "Name": if r.TryDecodeAsNil() { x.Name = "" @@ -18549,9 +19078,9 @@ func (x *SecretKeySelector) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) x.Key = string(r.DecodeString()) } default: - z.DecStructFieldNotFound(-1, yys1338) - } // end switch yys1338 - } // end for yyj1338 + z.DecStructFieldNotFound(-1, yys1371) + } // end switch yys1371 + } // end for yyj1371 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -18559,16 +19088,16 @@ func (x *SecretKeySelector) codecDecodeSelfFromArray(l int, d *codec1978.Decoder var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj1341 int - var yyb1341 bool - var yyhl1341 bool = l >= 0 - yyj1341++ - if yyhl1341 { - yyb1341 = yyj1341 > l + var yyj1374 int + var yyb1374 bool + var yyhl1374 bool = l >= 0 + yyj1374++ + if yyhl1374 { + yyb1374 = yyj1374 > l } else { - yyb1341 = r.CheckBreak() + yyb1374 = r.CheckBreak() } - if yyb1341 { + if yyb1374 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -18578,13 +19107,13 @@ func (x *SecretKeySelector) codecDecodeSelfFromArray(l int, d *codec1978.Decoder } else { x.Name = string(r.DecodeString()) } - yyj1341++ - if yyhl1341 { - yyb1341 = yyj1341 > l + yyj1374++ + if yyhl1374 { + yyb1374 = yyj1374 > l } else { - yyb1341 = r.CheckBreak() + yyb1374 = r.CheckBreak() } - if yyb1341 { + if yyb1374 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -18595,17 +19124,17 @@ func (x *SecretKeySelector) codecDecodeSelfFromArray(l int, d *codec1978.Decoder x.Key = string(r.DecodeString()) } for { - yyj1341++ - if yyhl1341 { - yyb1341 = yyj1341 > l + yyj1374++ + if yyhl1374 { + yyb1374 = yyj1374 > l } else { - yyb1341 = r.CheckBreak() + yyb1374 = r.CheckBreak() } - if yyb1341 { + if yyb1374 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj1341-1, "") + z.DecStructFieldNotFound(yyj1374-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -18617,33 +19146,33 @@ func (x *HTTPHeader) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1344 := z.EncBinary() - _ = yym1344 + yym1377 := z.EncBinary() + _ = yym1377 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 { + yysep1378 := !z.EncBinary() + yy2arr1378 := z.EncBasicHandle().StructToArray + var yyq1378 [2]bool + _, _, _ = yysep1378, yyq1378, yy2arr1378 + const yyr1378 bool = false + var yynn1378 int + if yyr1378 || yy2arr1378 { r.EncodeArrayStart(2) } else { - yynn1345 = 2 - for _, b := range yyq1345 { + yynn1378 = 2 + for _, b := range yyq1378 { if b { - yynn1345++ + yynn1378++ } } - r.EncodeMapStart(yynn1345) - yynn1345 = 0 + r.EncodeMapStart(yynn1378) + yynn1378 = 0 } - if yyr1345 || yy2arr1345 { + if yyr1378 || yy2arr1378 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym1347 := z.EncBinary() - _ = yym1347 + yym1380 := z.EncBinary() + _ = yym1380 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Name)) @@ -18652,17 +19181,17 @@ func (x *HTTPHeader) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("name")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym1348 := z.EncBinary() - _ = yym1348 + yym1381 := z.EncBinary() + _ = yym1381 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Name)) } } - if yyr1345 || yy2arr1345 { + if yyr1378 || yy2arr1378 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym1350 := z.EncBinary() - _ = yym1350 + yym1383 := z.EncBinary() + _ = yym1383 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Value)) @@ -18671,14 +19200,14 @@ func (x *HTTPHeader) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("value")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym1351 := z.EncBinary() - _ = yym1351 + yym1384 := z.EncBinary() + _ = yym1384 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Value)) } } - if yyr1345 || yy2arr1345 { + if yyr1378 || yy2arr1378 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -18691,25 +19220,25 @@ func (x *HTTPHeader) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1352 := z.DecBinary() - _ = yym1352 + yym1385 := z.DecBinary() + _ = yym1385 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct1353 := r.ContainerType() - if yyct1353 == codecSelferValueTypeMap1234 { - yyl1353 := r.ReadMapStart() - if yyl1353 == 0 { + yyct1386 := r.ContainerType() + if yyct1386 == codecSelferValueTypeMap1234 { + yyl1386 := r.ReadMapStart() + if yyl1386 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl1353, d) + x.codecDecodeSelfFromMap(yyl1386, d) } - } else if yyct1353 == codecSelferValueTypeArray1234 { - yyl1353 := r.ReadArrayStart() - if yyl1353 == 0 { + } else if yyct1386 == codecSelferValueTypeArray1234 { + yyl1386 := r.ReadArrayStart() + if yyl1386 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl1353, d) + x.codecDecodeSelfFromArray(yyl1386, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -18721,12 +19250,12 @@ 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 { + var yys1387Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys1387Slc + var yyhl1387 bool = l >= 0 + for yyj1387 := 0; ; yyj1387++ { + if yyhl1387 { + if yyj1387 >= l { break } } else { @@ -18735,10 +19264,10 @@ func (x *HTTPHeader) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys1354Slc = r.DecodeBytes(yys1354Slc, true, true) - yys1354 := string(yys1354Slc) + yys1387Slc = r.DecodeBytes(yys1387Slc, true, true) + yys1387 := string(yys1387Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys1354 { + switch yys1387 { case "name": if r.TryDecodeAsNil() { x.Name = "" @@ -18752,9 +19281,9 @@ func (x *HTTPHeader) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { x.Value = string(r.DecodeString()) } default: - z.DecStructFieldNotFound(-1, yys1354) - } // end switch yys1354 - } // end for yyj1354 + z.DecStructFieldNotFound(-1, yys1387) + } // end switch yys1387 + } // end for yyj1387 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -18762,16 +19291,16 @@ 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 + var yyj1390 int + var yyb1390 bool + var yyhl1390 bool = l >= 0 + yyj1390++ + if yyhl1390 { + yyb1390 = yyj1390 > l } else { - yyb1357 = r.CheckBreak() + yyb1390 = r.CheckBreak() } - if yyb1357 { + if yyb1390 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -18781,13 +19310,13 @@ func (x *HTTPHeader) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.Name = string(r.DecodeString()) } - yyj1357++ - if yyhl1357 { - yyb1357 = yyj1357 > l + yyj1390++ + if yyhl1390 { + yyb1390 = yyj1390 > l } else { - yyb1357 = r.CheckBreak() + yyb1390 = r.CheckBreak() } - if yyb1357 { + if yyb1390 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -18798,17 +19327,17 @@ func (x *HTTPHeader) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { x.Value = string(r.DecodeString()) } for { - yyj1357++ - if yyhl1357 { - yyb1357 = yyj1357 > l + yyj1390++ + if yyhl1390 { + yyb1390 = yyj1390 > l } else { - yyb1357 = r.CheckBreak() + yyb1390 = r.CheckBreak() } - if yyb1357 { + if yyb1390 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj1357-1, "") + z.DecStructFieldNotFound(yyj1390-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -18820,39 +19349,39 @@ func (x *HTTPGetAction) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1360 := z.EncBinary() - _ = yym1360 + yym1393 := z.EncBinary() + _ = yym1393 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - 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 { + yysep1394 := !z.EncBinary() + yy2arr1394 := z.EncBasicHandle().StructToArray + var yyq1394 [5]bool + _, _, _ = yysep1394, yyq1394, yy2arr1394 + const yyr1394 bool = false + yyq1394[0] = x.Path != "" + yyq1394[1] = true + yyq1394[2] = x.Host != "" + yyq1394[3] = x.Scheme != "" + yyq1394[4] = len(x.HTTPHeaders) != 0 + var yynn1394 int + if yyr1394 || yy2arr1394 { r.EncodeArrayStart(5) } else { - yynn1361 = 0 - for _, b := range yyq1361 { + yynn1394 = 0 + for _, b := range yyq1394 { if b { - yynn1361++ + yynn1394++ } } - r.EncodeMapStart(yynn1361) - yynn1361 = 0 + r.EncodeMapStart(yynn1394) + yynn1394 = 0 } - if yyr1361 || yy2arr1361 { + if yyr1394 || yy2arr1394 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1361[0] { - yym1363 := z.EncBinary() - _ = yym1363 + if yyq1394[0] { + yym1396 := z.EncBinary() + _ = yym1396 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Path)) @@ -18861,56 +19390,56 @@ func (x *HTTPGetAction) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq1361[0] { + if yyq1394[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("path")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym1364 := z.EncBinary() - _ = yym1364 + yym1397 := z.EncBinary() + _ = yym1397 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Path)) } } } - if yyr1361 || yy2arr1361 { + if yyr1394 || yy2arr1394 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1361[1] { - yy1366 := &x.Port - yym1367 := z.EncBinary() - _ = yym1367 + if yyq1394[1] { + yy1399 := &x.Port + yym1400 := z.EncBinary() + _ = yym1400 if false { - } else if z.HasExtensions() && z.EncExt(yy1366) { - } else if !yym1367 && z.IsJSONHandle() { - z.EncJSONMarshal(yy1366) + } else if z.HasExtensions() && z.EncExt(yy1399) { + } else if !yym1400 && z.IsJSONHandle() { + z.EncJSONMarshal(yy1399) } else { - z.EncFallback(yy1366) + z.EncFallback(yy1399) } } else { r.EncodeNil() } } else { - if yyq1361[1] { + if yyq1394[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("port")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy1368 := &x.Port - yym1369 := z.EncBinary() - _ = yym1369 + yy1401 := &x.Port + yym1402 := z.EncBinary() + _ = yym1402 if false { - } else if z.HasExtensions() && z.EncExt(yy1368) { - } else if !yym1369 && z.IsJSONHandle() { - z.EncJSONMarshal(yy1368) + } else if z.HasExtensions() && z.EncExt(yy1401) { + } else if !yym1402 && z.IsJSONHandle() { + z.EncJSONMarshal(yy1401) } else { - z.EncFallback(yy1368) + z.EncFallback(yy1401) } } } - if yyr1361 || yy2arr1361 { + if yyr1394 || yy2arr1394 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1361[2] { - yym1371 := z.EncBinary() - _ = yym1371 + if yyq1394[2] { + yym1404 := z.EncBinary() + _ = yym1404 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Host)) @@ -18919,41 +19448,41 @@ func (x *HTTPGetAction) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq1361[2] { + if yyq1394[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("host")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym1372 := z.EncBinary() - _ = yym1372 + yym1405 := z.EncBinary() + _ = yym1405 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Host)) } } } - if yyr1361 || yy2arr1361 { + if yyr1394 || yy2arr1394 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1361[3] { + if yyq1394[3] { x.Scheme.CodecEncodeSelf(e) } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq1361[3] { + if yyq1394[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("scheme")) z.EncSendContainerState(codecSelfer_containerMapValue1234) x.Scheme.CodecEncodeSelf(e) } } - if yyr1361 || yy2arr1361 { + if yyr1394 || yy2arr1394 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1361[4] { + if yyq1394[4] { if x.HTTPHeaders == nil { r.EncodeNil() } else { - yym1375 := z.EncBinary() - _ = yym1375 + yym1408 := z.EncBinary() + _ = yym1408 if false { } else { h.encSliceHTTPHeader(([]HTTPHeader)(x.HTTPHeaders), e) @@ -18963,15 +19492,15 @@ func (x *HTTPGetAction) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq1361[4] { + if yyq1394[4] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("httpHeaders")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.HTTPHeaders == nil { r.EncodeNil() } else { - yym1376 := z.EncBinary() - _ = yym1376 + yym1409 := z.EncBinary() + _ = yym1409 if false { } else { h.encSliceHTTPHeader(([]HTTPHeader)(x.HTTPHeaders), e) @@ -18979,7 +19508,7 @@ func (x *HTTPGetAction) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr1361 || yy2arr1361 { + if yyr1394 || yy2arr1394 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -18992,25 +19521,25 @@ func (x *HTTPGetAction) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1377 := z.DecBinary() - _ = yym1377 + yym1410 := z.DecBinary() + _ = yym1410 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct1378 := r.ContainerType() - if yyct1378 == codecSelferValueTypeMap1234 { - yyl1378 := r.ReadMapStart() - if yyl1378 == 0 { + yyct1411 := r.ContainerType() + if yyct1411 == codecSelferValueTypeMap1234 { + yyl1411 := r.ReadMapStart() + if yyl1411 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl1378, d) + x.codecDecodeSelfFromMap(yyl1411, d) } - } else if yyct1378 == codecSelferValueTypeArray1234 { - yyl1378 := r.ReadArrayStart() - if yyl1378 == 0 { + } else if yyct1411 == codecSelferValueTypeArray1234 { + yyl1411 := r.ReadArrayStart() + if yyl1411 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl1378, d) + x.codecDecodeSelfFromArray(yyl1411, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -19022,12 +19551,12 @@ func (x *HTTPGetAction) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys1379Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys1379Slc - var yyhl1379 bool = l >= 0 - for yyj1379 := 0; ; yyj1379++ { - if yyhl1379 { - if yyj1379 >= l { + var yys1412Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys1412Slc + var yyhl1412 bool = l >= 0 + for yyj1412 := 0; ; yyj1412++ { + if yyhl1412 { + if yyj1412 >= l { break } } else { @@ -19036,10 +19565,10 @@ func (x *HTTPGetAction) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys1379Slc = r.DecodeBytes(yys1379Slc, true, true) - yys1379 := string(yys1379Slc) + yys1412Slc = r.DecodeBytes(yys1412Slc, true, true) + yys1412 := string(yys1412Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys1379 { + switch yys1412 { case "path": if r.TryDecodeAsNil() { x.Path = "" @@ -19050,15 +19579,15 @@ func (x *HTTPGetAction) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.Port = pkg4_intstr.IntOrString{} } else { - yyv1381 := &x.Port - yym1382 := z.DecBinary() - _ = yym1382 + yyv1414 := &x.Port + yym1415 := z.DecBinary() + _ = yym1415 if false { - } else if z.HasExtensions() && z.DecExt(yyv1381) { - } else if !yym1382 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv1381) + } else if z.HasExtensions() && z.DecExt(yyv1414) { + } else if !yym1415 && z.IsJSONHandle() { + z.DecJSONUnmarshal(yyv1414) } else { - z.DecFallback(yyv1381, false) + z.DecFallback(yyv1414, false) } } case "host": @@ -19077,18 +19606,18 @@ func (x *HTTPGetAction) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.HTTPHeaders = nil } else { - yyv1385 := &x.HTTPHeaders - yym1386 := z.DecBinary() - _ = yym1386 + yyv1418 := &x.HTTPHeaders + yym1419 := z.DecBinary() + _ = yym1419 if false { } else { - h.decSliceHTTPHeader((*[]HTTPHeader)(yyv1385), d) + h.decSliceHTTPHeader((*[]HTTPHeader)(yyv1418), d) } } default: - z.DecStructFieldNotFound(-1, yys1379) - } // end switch yys1379 - } // end for yyj1379 + z.DecStructFieldNotFound(-1, yys1412) + } // end switch yys1412 + } // end for yyj1412 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -19096,16 +19625,16 @@ func (x *HTTPGetAction) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj1387 int - var yyb1387 bool - var yyhl1387 bool = l >= 0 - yyj1387++ - if yyhl1387 { - yyb1387 = yyj1387 > l + var yyj1420 int + var yyb1420 bool + var yyhl1420 bool = l >= 0 + yyj1420++ + if yyhl1420 { + yyb1420 = yyj1420 > l } else { - yyb1387 = r.CheckBreak() + yyb1420 = r.CheckBreak() } - if yyb1387 { + if yyb1420 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -19115,13 +19644,13 @@ func (x *HTTPGetAction) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.Path = string(r.DecodeString()) } - yyj1387++ - if yyhl1387 { - yyb1387 = yyj1387 > l + yyj1420++ + if yyhl1420 { + yyb1420 = yyj1420 > l } else { - yyb1387 = r.CheckBreak() + yyb1420 = r.CheckBreak() } - if yyb1387 { + if yyb1420 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -19129,24 +19658,24 @@ func (x *HTTPGetAction) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.Port = pkg4_intstr.IntOrString{} } else { - yyv1389 := &x.Port - yym1390 := z.DecBinary() - _ = yym1390 + yyv1422 := &x.Port + yym1423 := z.DecBinary() + _ = yym1423 if false { - } else if z.HasExtensions() && z.DecExt(yyv1389) { - } else if !yym1390 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv1389) + } else if z.HasExtensions() && z.DecExt(yyv1422) { + } else if !yym1423 && z.IsJSONHandle() { + z.DecJSONUnmarshal(yyv1422) } else { - z.DecFallback(yyv1389, false) + z.DecFallback(yyv1422, false) } } - yyj1387++ - if yyhl1387 { - yyb1387 = yyj1387 > l + yyj1420++ + if yyhl1420 { + yyb1420 = yyj1420 > l } else { - yyb1387 = r.CheckBreak() + yyb1420 = r.CheckBreak() } - if yyb1387 { + if yyb1420 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -19156,13 +19685,13 @@ func (x *HTTPGetAction) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.Host = string(r.DecodeString()) } - yyj1387++ - if yyhl1387 { - yyb1387 = yyj1387 > l + yyj1420++ + if yyhl1420 { + yyb1420 = yyj1420 > l } else { - yyb1387 = r.CheckBreak() + yyb1420 = r.CheckBreak() } - if yyb1387 { + if yyb1420 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -19172,13 +19701,13 @@ func (x *HTTPGetAction) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.Scheme = URIScheme(r.DecodeString()) } - yyj1387++ - if yyhl1387 { - yyb1387 = yyj1387 > l + yyj1420++ + if yyhl1420 { + yyb1420 = yyj1420 > l } else { - yyb1387 = r.CheckBreak() + yyb1420 = r.CheckBreak() } - if yyb1387 { + if yyb1420 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -19186,26 +19715,26 @@ func (x *HTTPGetAction) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.HTTPHeaders = nil } else { - yyv1393 := &x.HTTPHeaders - yym1394 := z.DecBinary() - _ = yym1394 + yyv1426 := &x.HTTPHeaders + yym1427 := z.DecBinary() + _ = yym1427 if false { } else { - h.decSliceHTTPHeader((*[]HTTPHeader)(yyv1393), d) + h.decSliceHTTPHeader((*[]HTTPHeader)(yyv1426), d) } } for { - yyj1387++ - if yyhl1387 { - yyb1387 = yyj1387 > l + yyj1420++ + if yyhl1420 { + yyb1420 = yyj1420 > l } else { - yyb1387 = r.CheckBreak() + yyb1420 = r.CheckBreak() } - if yyb1387 { + if yyb1420 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj1387-1, "") + z.DecStructFieldNotFound(yyj1420-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -19214,8 +19743,8 @@ func (x URIScheme) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r - yym1395 := z.EncBinary() - _ = yym1395 + yym1428 := z.EncBinary() + _ = yym1428 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { @@ -19227,8 +19756,8 @@ func (x *URIScheme) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1396 := z.DecBinary() - _ = yym1396 + yym1429 := z.DecBinary() + _ = yym1429 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { @@ -19243,64 +19772,64 @@ func (x *TCPSocketAction) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1397 := z.EncBinary() - _ = yym1397 + yym1430 := z.EncBinary() + _ = yym1430 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - 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 { + yysep1431 := !z.EncBinary() + yy2arr1431 := z.EncBasicHandle().StructToArray + var yyq1431 [1]bool + _, _, _ = yysep1431, yyq1431, yy2arr1431 + const yyr1431 bool = false + yyq1431[0] = true + var yynn1431 int + if yyr1431 || yy2arr1431 { r.EncodeArrayStart(1) } else { - yynn1398 = 0 - for _, b := range yyq1398 { + yynn1431 = 0 + for _, b := range yyq1431 { if b { - yynn1398++ + yynn1431++ } } - r.EncodeMapStart(yynn1398) - yynn1398 = 0 + r.EncodeMapStart(yynn1431) + yynn1431 = 0 } - if yyr1398 || yy2arr1398 { + if yyr1431 || yy2arr1431 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1398[0] { - yy1400 := &x.Port - yym1401 := z.EncBinary() - _ = yym1401 + if yyq1431[0] { + yy1433 := &x.Port + yym1434 := z.EncBinary() + _ = yym1434 if false { - } else if z.HasExtensions() && z.EncExt(yy1400) { - } else if !yym1401 && z.IsJSONHandle() { - z.EncJSONMarshal(yy1400) + } else if z.HasExtensions() && z.EncExt(yy1433) { + } else if !yym1434 && z.IsJSONHandle() { + z.EncJSONMarshal(yy1433) } else { - z.EncFallback(yy1400) + z.EncFallback(yy1433) } } else { r.EncodeNil() } } else { - if yyq1398[0] { + if yyq1431[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("port")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy1402 := &x.Port - yym1403 := z.EncBinary() - _ = yym1403 + yy1435 := &x.Port + yym1436 := z.EncBinary() + _ = yym1436 if false { - } else if z.HasExtensions() && z.EncExt(yy1402) { - } else if !yym1403 && z.IsJSONHandle() { - z.EncJSONMarshal(yy1402) + } else if z.HasExtensions() && z.EncExt(yy1435) { + } else if !yym1436 && z.IsJSONHandle() { + z.EncJSONMarshal(yy1435) } else { - z.EncFallback(yy1402) + z.EncFallback(yy1435) } } } - if yyr1398 || yy2arr1398 { + if yyr1431 || yy2arr1431 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -19313,25 +19842,25 @@ func (x *TCPSocketAction) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1404 := z.DecBinary() - _ = yym1404 + yym1437 := z.DecBinary() + _ = yym1437 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct1405 := r.ContainerType() - if yyct1405 == codecSelferValueTypeMap1234 { - yyl1405 := r.ReadMapStart() - if yyl1405 == 0 { + yyct1438 := r.ContainerType() + if yyct1438 == codecSelferValueTypeMap1234 { + yyl1438 := r.ReadMapStart() + if yyl1438 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl1405, d) + x.codecDecodeSelfFromMap(yyl1438, d) } - } else if yyct1405 == codecSelferValueTypeArray1234 { - yyl1405 := r.ReadArrayStart() - if yyl1405 == 0 { + } else if yyct1438 == codecSelferValueTypeArray1234 { + yyl1438 := r.ReadArrayStart() + if yyl1438 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl1405, d) + x.codecDecodeSelfFromArray(yyl1438, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -19343,12 +19872,12 @@ func (x *TCPSocketAction) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys1406Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys1406Slc - var yyhl1406 bool = l >= 0 - for yyj1406 := 0; ; yyj1406++ { - if yyhl1406 { - if yyj1406 >= l { + var yys1439Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys1439Slc + var yyhl1439 bool = l >= 0 + for yyj1439 := 0; ; yyj1439++ { + if yyhl1439 { + if yyj1439 >= l { break } } else { @@ -19357,29 +19886,29 @@ func (x *TCPSocketAction) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys1406Slc = r.DecodeBytes(yys1406Slc, true, true) - yys1406 := string(yys1406Slc) + yys1439Slc = r.DecodeBytes(yys1439Slc, true, true) + yys1439 := string(yys1439Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys1406 { + switch yys1439 { case "port": if r.TryDecodeAsNil() { x.Port = pkg4_intstr.IntOrString{} } else { - yyv1407 := &x.Port - yym1408 := z.DecBinary() - _ = yym1408 + yyv1440 := &x.Port + yym1441 := z.DecBinary() + _ = yym1441 if false { - } else if z.HasExtensions() && z.DecExt(yyv1407) { - } else if !yym1408 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv1407) + } else if z.HasExtensions() && z.DecExt(yyv1440) { + } else if !yym1441 && z.IsJSONHandle() { + z.DecJSONUnmarshal(yyv1440) } else { - z.DecFallback(yyv1407, false) + z.DecFallback(yyv1440, false) } } default: - z.DecStructFieldNotFound(-1, yys1406) - } // end switch yys1406 - } // end for yyj1406 + z.DecStructFieldNotFound(-1, yys1439) + } // end switch yys1439 + } // end for yyj1439 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -19387,16 +19916,16 @@ func (x *TCPSocketAction) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj1409 int - var yyb1409 bool - var yyhl1409 bool = l >= 0 - yyj1409++ - if yyhl1409 { - yyb1409 = yyj1409 > l + var yyj1442 int + var yyb1442 bool + var yyhl1442 bool = l >= 0 + yyj1442++ + if yyhl1442 { + yyb1442 = yyj1442 > l } else { - yyb1409 = r.CheckBreak() + yyb1442 = r.CheckBreak() } - if yyb1409 { + if yyb1442 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -19404,29 +19933,29 @@ func (x *TCPSocketAction) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) if r.TryDecodeAsNil() { x.Port = pkg4_intstr.IntOrString{} } else { - yyv1410 := &x.Port - yym1411 := z.DecBinary() - _ = yym1411 + yyv1443 := &x.Port + yym1444 := z.DecBinary() + _ = yym1444 if false { - } else if z.HasExtensions() && z.DecExt(yyv1410) { - } else if !yym1411 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv1410) + } else if z.HasExtensions() && z.DecExt(yyv1443) { + } else if !yym1444 && z.IsJSONHandle() { + z.DecJSONUnmarshal(yyv1443) } else { - z.DecFallback(yyv1410, false) + z.DecFallback(yyv1443, false) } } for { - yyj1409++ - if yyhl1409 { - yyb1409 = yyj1409 > l + yyj1442++ + if yyhl1442 { + yyb1442 = yyj1442 > l } else { - yyb1409 = r.CheckBreak() + yyb1442 = r.CheckBreak() } - if yyb1409 { + if yyb1442 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj1409-1, "") + z.DecStructFieldNotFound(yyj1442-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -19438,38 +19967,38 @@ func (x *ExecAction) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1412 := z.EncBinary() - _ = yym1412 + yym1445 := z.EncBinary() + _ = yym1445 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - 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 { + yysep1446 := !z.EncBinary() + yy2arr1446 := z.EncBasicHandle().StructToArray + var yyq1446 [1]bool + _, _, _ = yysep1446, yyq1446, yy2arr1446 + const yyr1446 bool = false + yyq1446[0] = len(x.Command) != 0 + var yynn1446 int + if yyr1446 || yy2arr1446 { r.EncodeArrayStart(1) } else { - yynn1413 = 0 - for _, b := range yyq1413 { + yynn1446 = 0 + for _, b := range yyq1446 { if b { - yynn1413++ + yynn1446++ } } - r.EncodeMapStart(yynn1413) - yynn1413 = 0 + r.EncodeMapStart(yynn1446) + yynn1446 = 0 } - if yyr1413 || yy2arr1413 { + if yyr1446 || yy2arr1446 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1413[0] { + if yyq1446[0] { if x.Command == nil { r.EncodeNil() } else { - yym1415 := z.EncBinary() - _ = yym1415 + yym1448 := z.EncBinary() + _ = yym1448 if false { } else { z.F.EncSliceStringV(x.Command, false, e) @@ -19479,15 +20008,15 @@ func (x *ExecAction) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq1413[0] { + if yyq1446[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("command")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.Command == nil { r.EncodeNil() } else { - yym1416 := z.EncBinary() - _ = yym1416 + yym1449 := z.EncBinary() + _ = yym1449 if false { } else { z.F.EncSliceStringV(x.Command, false, e) @@ -19495,7 +20024,7 @@ func (x *ExecAction) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr1413 || yy2arr1413 { + if yyr1446 || yy2arr1446 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -19508,25 +20037,25 @@ func (x *ExecAction) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1417 := z.DecBinary() - _ = yym1417 + yym1450 := z.DecBinary() + _ = yym1450 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct1418 := r.ContainerType() - if yyct1418 == codecSelferValueTypeMap1234 { - yyl1418 := r.ReadMapStart() - if yyl1418 == 0 { + yyct1451 := r.ContainerType() + if yyct1451 == codecSelferValueTypeMap1234 { + yyl1451 := r.ReadMapStart() + if yyl1451 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl1418, d) + x.codecDecodeSelfFromMap(yyl1451, d) } - } else if yyct1418 == codecSelferValueTypeArray1234 { - yyl1418 := r.ReadArrayStart() - if yyl1418 == 0 { + } else if yyct1451 == codecSelferValueTypeArray1234 { + yyl1451 := r.ReadArrayStart() + if yyl1451 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl1418, d) + x.codecDecodeSelfFromArray(yyl1451, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -19538,12 +20067,12 @@ func (x *ExecAction) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys1419Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys1419Slc - var yyhl1419 bool = l >= 0 - for yyj1419 := 0; ; yyj1419++ { - if yyhl1419 { - if yyj1419 >= l { + var yys1452Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys1452Slc + var yyhl1452 bool = l >= 0 + for yyj1452 := 0; ; yyj1452++ { + if yyhl1452 { + if yyj1452 >= l { break } } else { @@ -19552,26 +20081,26 @@ func (x *ExecAction) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys1419Slc = r.DecodeBytes(yys1419Slc, true, true) - yys1419 := string(yys1419Slc) + yys1452Slc = r.DecodeBytes(yys1452Slc, true, true) + yys1452 := string(yys1452Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys1419 { + switch yys1452 { case "command": if r.TryDecodeAsNil() { x.Command = nil } else { - yyv1420 := &x.Command - yym1421 := z.DecBinary() - _ = yym1421 + yyv1453 := &x.Command + yym1454 := z.DecBinary() + _ = yym1454 if false { } else { - z.F.DecSliceStringX(yyv1420, false, d) + z.F.DecSliceStringX(yyv1453, false, d) } } default: - z.DecStructFieldNotFound(-1, yys1419) - } // end switch yys1419 - } // end for yyj1419 + z.DecStructFieldNotFound(-1, yys1452) + } // end switch yys1452 + } // end for yyj1452 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -19579,16 +20108,16 @@ func (x *ExecAction) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj1422 int - var yyb1422 bool - var yyhl1422 bool = l >= 0 - yyj1422++ - if yyhl1422 { - yyb1422 = yyj1422 > l + var yyj1455 int + var yyb1455 bool + var yyhl1455 bool = l >= 0 + yyj1455++ + if yyhl1455 { + yyb1455 = yyj1455 > l } else { - yyb1422 = r.CheckBreak() + yyb1455 = r.CheckBreak() } - if yyb1422 { + if yyb1455 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -19596,26 +20125,26 @@ func (x *ExecAction) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.Command = nil } else { - yyv1423 := &x.Command - yym1424 := z.DecBinary() - _ = yym1424 + yyv1456 := &x.Command + yym1457 := z.DecBinary() + _ = yym1457 if false { } else { - z.F.DecSliceStringX(yyv1423, false, d) + z.F.DecSliceStringX(yyv1456, false, d) } } for { - yyj1422++ - if yyhl1422 { - yyb1422 = yyj1422 > l + yyj1455++ + if yyhl1455 { + yyb1455 = yyj1455 > l } else { - yyb1422 = r.CheckBreak() + yyb1455 = r.CheckBreak() } - if yyb1422 { + if yyb1455 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj1422-1, "") + z.DecStructFieldNotFound(yyj1455-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -19627,49 +20156,49 @@ func (x *Probe) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1425 := z.EncBinary() - _ = yym1425 + yym1458 := z.EncBinary() + _ = yym1458 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - 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 { + yysep1459 := !z.EncBinary() + yy2arr1459 := z.EncBasicHandle().StructToArray + var yyq1459 [8]bool + _, _, _ = yysep1459, yyq1459, yy2arr1459 + const yyr1459 bool = false + yyq1459[0] = x.Handler.Exec != nil && x.Exec != nil + yyq1459[1] = x.Handler.HTTPGet != nil && x.HTTPGet != nil + yyq1459[2] = x.Handler.TCPSocket != nil && x.TCPSocket != nil + yyq1459[3] = x.InitialDelaySeconds != 0 + yyq1459[4] = x.TimeoutSeconds != 0 + yyq1459[5] = x.PeriodSeconds != 0 + yyq1459[6] = x.SuccessThreshold != 0 + yyq1459[7] = x.FailureThreshold != 0 + var yynn1459 int + if yyr1459 || yy2arr1459 { r.EncodeArrayStart(8) } else { - yynn1426 = 0 - for _, b := range yyq1426 { + yynn1459 = 0 + for _, b := range yyq1459 { if b { - yynn1426++ + yynn1459++ } } - r.EncodeMapStart(yynn1426) - yynn1426 = 0 + r.EncodeMapStart(yynn1459) + yynn1459 = 0 } - var yyn1427 bool + var yyn1460 bool if x.Handler.Exec == nil { - yyn1427 = true - goto LABEL1427 + yyn1460 = true + goto LABEL1460 } - LABEL1427: - if yyr1426 || yy2arr1426 { - if yyn1427 { + LABEL1460: + if yyr1459 || yy2arr1459 { + if yyn1460 { r.EncodeNil() } else { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1426[0] { + if yyq1459[0] { if x.Exec == nil { r.EncodeNil() } else { @@ -19680,11 +20209,11 @@ func (x *Probe) CodecEncodeSelf(e *codec1978.Encoder) { } } } else { - if yyq1426[0] { + if yyq1459[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("exec")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - if yyn1427 { + if yyn1460 { r.EncodeNil() } else { if x.Exec == nil { @@ -19695,18 +20224,18 @@ func (x *Probe) CodecEncodeSelf(e *codec1978.Encoder) { } } } - var yyn1428 bool + var yyn1461 bool if x.Handler.HTTPGet == nil { - yyn1428 = true - goto LABEL1428 + yyn1461 = true + goto LABEL1461 } - LABEL1428: - if yyr1426 || yy2arr1426 { - if yyn1428 { + LABEL1461: + if yyr1459 || yy2arr1459 { + if yyn1461 { r.EncodeNil() } else { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1426[1] { + if yyq1459[1] { if x.HTTPGet == nil { r.EncodeNil() } else { @@ -19717,11 +20246,11 @@ func (x *Probe) CodecEncodeSelf(e *codec1978.Encoder) { } } } else { - if yyq1426[1] { + if yyq1459[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("httpGet")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - if yyn1428 { + if yyn1461 { r.EncodeNil() } else { if x.HTTPGet == nil { @@ -19732,18 +20261,18 @@ func (x *Probe) CodecEncodeSelf(e *codec1978.Encoder) { } } } - var yyn1429 bool + var yyn1462 bool if x.Handler.TCPSocket == nil { - yyn1429 = true - goto LABEL1429 + yyn1462 = true + goto LABEL1462 } - LABEL1429: - if yyr1426 || yy2arr1426 { - if yyn1429 { + LABEL1462: + if yyr1459 || yy2arr1459 { + if yyn1462 { r.EncodeNil() } else { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1426[2] { + if yyq1459[2] { if x.TCPSocket == nil { r.EncodeNil() } else { @@ -19754,11 +20283,11 @@ func (x *Probe) CodecEncodeSelf(e *codec1978.Encoder) { } } } else { - if yyq1426[2] { + if yyq1459[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("tcpSocket")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - if yyn1429 { + if yyn1462 { r.EncodeNil() } else { if x.TCPSocket == nil { @@ -19769,11 +20298,11 @@ func (x *Probe) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr1426 || yy2arr1426 { + if yyr1459 || yy2arr1459 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1426[3] { - yym1431 := z.EncBinary() - _ = yym1431 + if yyq1459[3] { + yym1464 := z.EncBinary() + _ = yym1464 if false { } else { r.EncodeInt(int64(x.InitialDelaySeconds)) @@ -19782,23 +20311,23 @@ func (x *Probe) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeInt(0) } } else { - if yyq1426[3] { + if yyq1459[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("initialDelaySeconds")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym1432 := z.EncBinary() - _ = yym1432 + yym1465 := z.EncBinary() + _ = yym1465 if false { } else { r.EncodeInt(int64(x.InitialDelaySeconds)) } } } - if yyr1426 || yy2arr1426 { + if yyr1459 || yy2arr1459 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1426[4] { - yym1434 := z.EncBinary() - _ = yym1434 + if yyq1459[4] { + yym1467 := z.EncBinary() + _ = yym1467 if false { } else { r.EncodeInt(int64(x.TimeoutSeconds)) @@ -19807,23 +20336,23 @@ func (x *Probe) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeInt(0) } } else { - if yyq1426[4] { + if yyq1459[4] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("timeoutSeconds")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym1435 := z.EncBinary() - _ = yym1435 + yym1468 := z.EncBinary() + _ = yym1468 if false { } else { r.EncodeInt(int64(x.TimeoutSeconds)) } } } - if yyr1426 || yy2arr1426 { + if yyr1459 || yy2arr1459 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1426[5] { - yym1437 := z.EncBinary() - _ = yym1437 + if yyq1459[5] { + yym1470 := z.EncBinary() + _ = yym1470 if false { } else { r.EncodeInt(int64(x.PeriodSeconds)) @@ -19832,23 +20361,23 @@ func (x *Probe) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeInt(0) } } else { - if yyq1426[5] { + if yyq1459[5] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("periodSeconds")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym1438 := z.EncBinary() - _ = yym1438 + yym1471 := z.EncBinary() + _ = yym1471 if false { } else { r.EncodeInt(int64(x.PeriodSeconds)) } } } - if yyr1426 || yy2arr1426 { + if yyr1459 || yy2arr1459 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1426[6] { - yym1440 := z.EncBinary() - _ = yym1440 + if yyq1459[6] { + yym1473 := z.EncBinary() + _ = yym1473 if false { } else { r.EncodeInt(int64(x.SuccessThreshold)) @@ -19857,23 +20386,23 @@ func (x *Probe) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeInt(0) } } else { - if yyq1426[6] { + if yyq1459[6] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("successThreshold")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym1441 := z.EncBinary() - _ = yym1441 + yym1474 := z.EncBinary() + _ = yym1474 if false { } else { r.EncodeInt(int64(x.SuccessThreshold)) } } } - if yyr1426 || yy2arr1426 { + if yyr1459 || yy2arr1459 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1426[7] { - yym1443 := z.EncBinary() - _ = yym1443 + if yyq1459[7] { + yym1476 := z.EncBinary() + _ = yym1476 if false { } else { r.EncodeInt(int64(x.FailureThreshold)) @@ -19882,19 +20411,19 @@ func (x *Probe) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeInt(0) } } else { - if yyq1426[7] { + if yyq1459[7] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("failureThreshold")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym1444 := z.EncBinary() - _ = yym1444 + yym1477 := z.EncBinary() + _ = yym1477 if false { } else { r.EncodeInt(int64(x.FailureThreshold)) } } } - if yyr1426 || yy2arr1426 { + if yyr1459 || yy2arr1459 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -19907,25 +20436,25 @@ func (x *Probe) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1445 := z.DecBinary() - _ = yym1445 + yym1478 := z.DecBinary() + _ = yym1478 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct1446 := r.ContainerType() - if yyct1446 == codecSelferValueTypeMap1234 { - yyl1446 := r.ReadMapStart() - if yyl1446 == 0 { + yyct1479 := r.ContainerType() + if yyct1479 == codecSelferValueTypeMap1234 { + yyl1479 := r.ReadMapStart() + if yyl1479 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl1446, d) + x.codecDecodeSelfFromMap(yyl1479, d) } - } else if yyct1446 == codecSelferValueTypeArray1234 { - yyl1446 := r.ReadArrayStart() - if yyl1446 == 0 { + } else if yyct1479 == codecSelferValueTypeArray1234 { + yyl1479 := r.ReadArrayStart() + if yyl1479 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl1446, d) + x.codecDecodeSelfFromArray(yyl1479, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -19937,12 +20466,12 @@ func (x *Probe) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys1447Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys1447Slc - var yyhl1447 bool = l >= 0 - for yyj1447 := 0; ; yyj1447++ { - if yyhl1447 { - if yyj1447 >= l { + var yys1480Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys1480Slc + var yyhl1480 bool = l >= 0 + for yyj1480 := 0; ; yyj1480++ { + if yyhl1480 { + if yyj1480 >= l { break } } else { @@ -19951,10 +20480,10 @@ func (x *Probe) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys1447Slc = r.DecodeBytes(yys1447Slc, true, true) - yys1447 := string(yys1447Slc) + yys1480Slc = r.DecodeBytes(yys1480Slc, true, true) + yys1480 := string(yys1480Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys1447 { + switch yys1480 { case "exec": if x.Handler.Exec == nil { x.Handler.Exec = new(ExecAction) @@ -20028,9 +20557,9 @@ func (x *Probe) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { x.FailureThreshold = int32(r.DecodeInt(32)) } default: - z.DecStructFieldNotFound(-1, yys1447) - } // end switch yys1447 - } // end for yyj1447 + z.DecStructFieldNotFound(-1, yys1480) + } // end switch yys1480 + } // end for yyj1480 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -20038,19 +20567,19 @@ func (x *Probe) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj1456 int - var yyb1456 bool - var yyhl1456 bool = l >= 0 + var yyj1489 int + var yyb1489 bool + var yyhl1489 bool = l >= 0 if x.Handler.Exec == nil { x.Handler.Exec = new(ExecAction) } - yyj1456++ - if yyhl1456 { - yyb1456 = yyj1456 > l + yyj1489++ + if yyhl1489 { + yyb1489 = yyj1489 > l } else { - yyb1456 = r.CheckBreak() + yyb1489 = r.CheckBreak() } - if yyb1456 { + if yyb1489 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -20068,13 +20597,13 @@ func (x *Probe) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if x.Handler.HTTPGet == nil { x.Handler.HTTPGet = new(HTTPGetAction) } - yyj1456++ - if yyhl1456 { - yyb1456 = yyj1456 > l + yyj1489++ + if yyhl1489 { + yyb1489 = yyj1489 > l } else { - yyb1456 = r.CheckBreak() + yyb1489 = r.CheckBreak() } - if yyb1456 { + if yyb1489 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -20092,13 +20621,13 @@ func (x *Probe) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if x.Handler.TCPSocket == nil { x.Handler.TCPSocket = new(TCPSocketAction) } - yyj1456++ - if yyhl1456 { - yyb1456 = yyj1456 > l + yyj1489++ + if yyhl1489 { + yyb1489 = yyj1489 > l } else { - yyb1456 = r.CheckBreak() + yyb1489 = r.CheckBreak() } - if yyb1456 { + if yyb1489 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -20113,13 +20642,13 @@ func (x *Probe) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } x.TCPSocket.CodecDecodeSelf(d) } - yyj1456++ - if yyhl1456 { - yyb1456 = yyj1456 > l + yyj1489++ + if yyhl1489 { + yyb1489 = yyj1489 > l } else { - yyb1456 = r.CheckBreak() + yyb1489 = r.CheckBreak() } - if yyb1456 { + if yyb1489 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -20129,13 +20658,13 @@ func (x *Probe) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.InitialDelaySeconds = int32(r.DecodeInt(32)) } - yyj1456++ - if yyhl1456 { - yyb1456 = yyj1456 > l + yyj1489++ + if yyhl1489 { + yyb1489 = yyj1489 > l } else { - yyb1456 = r.CheckBreak() + yyb1489 = r.CheckBreak() } - if yyb1456 { + if yyb1489 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -20145,13 +20674,13 @@ func (x *Probe) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.TimeoutSeconds = int32(r.DecodeInt(32)) } - yyj1456++ - if yyhl1456 { - yyb1456 = yyj1456 > l + yyj1489++ + if yyhl1489 { + yyb1489 = yyj1489 > l } else { - yyb1456 = r.CheckBreak() + yyb1489 = r.CheckBreak() } - if yyb1456 { + if yyb1489 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -20161,13 +20690,13 @@ func (x *Probe) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.PeriodSeconds = int32(r.DecodeInt(32)) } - yyj1456++ - if yyhl1456 { - yyb1456 = yyj1456 > l + yyj1489++ + if yyhl1489 { + yyb1489 = yyj1489 > l } else { - yyb1456 = r.CheckBreak() + yyb1489 = r.CheckBreak() } - if yyb1456 { + if yyb1489 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -20177,13 +20706,13 @@ func (x *Probe) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.SuccessThreshold = int32(r.DecodeInt(32)) } - yyj1456++ - if yyhl1456 { - yyb1456 = yyj1456 > l + yyj1489++ + if yyhl1489 { + yyb1489 = yyj1489 > l } else { - yyb1456 = r.CheckBreak() + yyb1489 = r.CheckBreak() } - if yyb1456 { + if yyb1489 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -20194,17 +20723,17 @@ func (x *Probe) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { x.FailureThreshold = int32(r.DecodeInt(32)) } for { - yyj1456++ - if yyhl1456 { - yyb1456 = yyj1456 > l + yyj1489++ + if yyhl1489 { + yyb1489 = yyj1489 > l } else { - yyb1456 = r.CheckBreak() + yyb1489 = r.CheckBreak() } - if yyb1456 { + if yyb1489 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj1456-1, "") + z.DecStructFieldNotFound(yyj1489-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -20213,8 +20742,8 @@ func (x PullPolicy) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r - yym1465 := z.EncBinary() - _ = yym1465 + yym1498 := z.EncBinary() + _ = yym1498 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { @@ -20226,8 +20755,8 @@ func (x *PullPolicy) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1466 := z.DecBinary() - _ = yym1466 + yym1499 := z.DecBinary() + _ = yym1499 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { @@ -20239,8 +20768,8 @@ func (x Capability) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r - yym1467 := z.EncBinary() - _ = yym1467 + yym1500 := z.EncBinary() + _ = yym1500 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { @@ -20252,8 +20781,8 @@ func (x *Capability) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1468 := z.DecBinary() - _ = yym1468 + yym1501 := z.DecBinary() + _ = yym1501 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { @@ -20268,39 +20797,39 @@ func (x *Capabilities) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1469 := z.EncBinary() - _ = yym1469 + yym1502 := z.EncBinary() + _ = yym1502 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - 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 { + yysep1503 := !z.EncBinary() + yy2arr1503 := z.EncBasicHandle().StructToArray + var yyq1503 [2]bool + _, _, _ = yysep1503, yyq1503, yy2arr1503 + const yyr1503 bool = false + yyq1503[0] = len(x.Add) != 0 + yyq1503[1] = len(x.Drop) != 0 + var yynn1503 int + if yyr1503 || yy2arr1503 { r.EncodeArrayStart(2) } else { - yynn1470 = 0 - for _, b := range yyq1470 { + yynn1503 = 0 + for _, b := range yyq1503 { if b { - yynn1470++ + yynn1503++ } } - r.EncodeMapStart(yynn1470) - yynn1470 = 0 + r.EncodeMapStart(yynn1503) + yynn1503 = 0 } - if yyr1470 || yy2arr1470 { + if yyr1503 || yy2arr1503 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1470[0] { + if yyq1503[0] { if x.Add == nil { r.EncodeNil() } else { - yym1472 := z.EncBinary() - _ = yym1472 + yym1505 := z.EncBinary() + _ = yym1505 if false { } else { h.encSliceCapability(([]Capability)(x.Add), e) @@ -20310,15 +20839,15 @@ func (x *Capabilities) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq1470[0] { + if yyq1503[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("add")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.Add == nil { r.EncodeNil() } else { - yym1473 := z.EncBinary() - _ = yym1473 + yym1506 := z.EncBinary() + _ = yym1506 if false { } else { h.encSliceCapability(([]Capability)(x.Add), e) @@ -20326,14 +20855,14 @@ func (x *Capabilities) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr1470 || yy2arr1470 { + if yyr1503 || yy2arr1503 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1470[1] { + if yyq1503[1] { if x.Drop == nil { r.EncodeNil() } else { - yym1475 := z.EncBinary() - _ = yym1475 + yym1508 := z.EncBinary() + _ = yym1508 if false { } else { h.encSliceCapability(([]Capability)(x.Drop), e) @@ -20343,15 +20872,15 @@ func (x *Capabilities) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq1470[1] { + if yyq1503[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("drop")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.Drop == nil { r.EncodeNil() } else { - yym1476 := z.EncBinary() - _ = yym1476 + yym1509 := z.EncBinary() + _ = yym1509 if false { } else { h.encSliceCapability(([]Capability)(x.Drop), e) @@ -20359,7 +20888,7 @@ func (x *Capabilities) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr1470 || yy2arr1470 { + if yyr1503 || yy2arr1503 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -20372,25 +20901,25 @@ func (x *Capabilities) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1477 := z.DecBinary() - _ = yym1477 + yym1510 := z.DecBinary() + _ = yym1510 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct1478 := r.ContainerType() - if yyct1478 == codecSelferValueTypeMap1234 { - yyl1478 := r.ReadMapStart() - if yyl1478 == 0 { + yyct1511 := r.ContainerType() + if yyct1511 == codecSelferValueTypeMap1234 { + yyl1511 := r.ReadMapStart() + if yyl1511 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl1478, d) + x.codecDecodeSelfFromMap(yyl1511, d) } - } else if yyct1478 == codecSelferValueTypeArray1234 { - yyl1478 := r.ReadArrayStart() - if yyl1478 == 0 { + } else if yyct1511 == codecSelferValueTypeArray1234 { + yyl1511 := r.ReadArrayStart() + if yyl1511 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl1478, d) + x.codecDecodeSelfFromArray(yyl1511, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -20402,12 +20931,12 @@ func (x *Capabilities) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys1479Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys1479Slc - var yyhl1479 bool = l >= 0 - for yyj1479 := 0; ; yyj1479++ { - if yyhl1479 { - if yyj1479 >= l { + var yys1512Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys1512Slc + var yyhl1512 bool = l >= 0 + for yyj1512 := 0; ; yyj1512++ { + if yyhl1512 { + if yyj1512 >= l { break } } else { @@ -20416,38 +20945,38 @@ func (x *Capabilities) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys1479Slc = r.DecodeBytes(yys1479Slc, true, true) - yys1479 := string(yys1479Slc) + yys1512Slc = r.DecodeBytes(yys1512Slc, true, true) + yys1512 := string(yys1512Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys1479 { + switch yys1512 { case "add": if r.TryDecodeAsNil() { x.Add = nil } else { - yyv1480 := &x.Add - yym1481 := z.DecBinary() - _ = yym1481 + yyv1513 := &x.Add + yym1514 := z.DecBinary() + _ = yym1514 if false { } else { - h.decSliceCapability((*[]Capability)(yyv1480), d) + h.decSliceCapability((*[]Capability)(yyv1513), d) } } case "drop": if r.TryDecodeAsNil() { x.Drop = nil } else { - yyv1482 := &x.Drop - yym1483 := z.DecBinary() - _ = yym1483 + yyv1515 := &x.Drop + yym1516 := z.DecBinary() + _ = yym1516 if false { } else { - h.decSliceCapability((*[]Capability)(yyv1482), d) + h.decSliceCapability((*[]Capability)(yyv1515), d) } } default: - z.DecStructFieldNotFound(-1, yys1479) - } // end switch yys1479 - } // end for yyj1479 + z.DecStructFieldNotFound(-1, yys1512) + } // end switch yys1512 + } // end for yyj1512 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -20455,16 +20984,16 @@ func (x *Capabilities) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj1484 int - var yyb1484 bool - var yyhl1484 bool = l >= 0 - yyj1484++ - if yyhl1484 { - yyb1484 = yyj1484 > l + var yyj1517 int + var yyb1517 bool + var yyhl1517 bool = l >= 0 + yyj1517++ + if yyhl1517 { + yyb1517 = yyj1517 > l } else { - yyb1484 = r.CheckBreak() + yyb1517 = r.CheckBreak() } - if yyb1484 { + if yyb1517 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -20472,21 +21001,21 @@ func (x *Capabilities) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.Add = nil } else { - yyv1485 := &x.Add - yym1486 := z.DecBinary() - _ = yym1486 + yyv1518 := &x.Add + yym1519 := z.DecBinary() + _ = yym1519 if false { } else { - h.decSliceCapability((*[]Capability)(yyv1485), d) + h.decSliceCapability((*[]Capability)(yyv1518), d) } } - yyj1484++ - if yyhl1484 { - yyb1484 = yyj1484 > l + yyj1517++ + if yyhl1517 { + yyb1517 = yyj1517 > l } else { - yyb1484 = r.CheckBreak() + yyb1517 = r.CheckBreak() } - if yyb1484 { + if yyb1517 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -20494,26 +21023,26 @@ func (x *Capabilities) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.Drop = nil } else { - yyv1487 := &x.Drop - yym1488 := z.DecBinary() - _ = yym1488 + yyv1520 := &x.Drop + yym1521 := z.DecBinary() + _ = yym1521 if false { } else { - h.decSliceCapability((*[]Capability)(yyv1487), d) + h.decSliceCapability((*[]Capability)(yyv1520), d) } } for { - yyj1484++ - if yyhl1484 { - yyb1484 = yyj1484 > l + yyj1517++ + if yyhl1517 { + yyb1517 = yyj1517 > l } else { - yyb1484 = r.CheckBreak() + yyb1517 = r.CheckBreak() } - if yyb1484 { + if yyb1517 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj1484-1, "") + z.DecStructFieldNotFound(yyj1517-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -20525,34 +21054,34 @@ func (x *ResourceRequirements) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1489 := z.EncBinary() - _ = yym1489 + yym1522 := z.EncBinary() + _ = yym1522 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - 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 { + yysep1523 := !z.EncBinary() + yy2arr1523 := z.EncBasicHandle().StructToArray + var yyq1523 [2]bool + _, _, _ = yysep1523, yyq1523, yy2arr1523 + const yyr1523 bool = false + yyq1523[0] = len(x.Limits) != 0 + yyq1523[1] = len(x.Requests) != 0 + var yynn1523 int + if yyr1523 || yy2arr1523 { r.EncodeArrayStart(2) } else { - yynn1490 = 0 - for _, b := range yyq1490 { + yynn1523 = 0 + for _, b := range yyq1523 { if b { - yynn1490++ + yynn1523++ } } - r.EncodeMapStart(yynn1490) - yynn1490 = 0 + r.EncodeMapStart(yynn1523) + yynn1523 = 0 } - if yyr1490 || yy2arr1490 { + if yyr1523 || yy2arr1523 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1490[0] { + if yyq1523[0] { if x.Limits == nil { r.EncodeNil() } else { @@ -20562,7 +21091,7 @@ func (x *ResourceRequirements) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq1490[0] { + if yyq1523[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("limits")) z.EncSendContainerState(codecSelfer_containerMapValue1234) @@ -20573,9 +21102,9 @@ func (x *ResourceRequirements) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr1490 || yy2arr1490 { + if yyr1523 || yy2arr1523 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1490[1] { + if yyq1523[1] { if x.Requests == nil { r.EncodeNil() } else { @@ -20585,7 +21114,7 @@ func (x *ResourceRequirements) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq1490[1] { + if yyq1523[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("requests")) z.EncSendContainerState(codecSelfer_containerMapValue1234) @@ -20596,7 +21125,7 @@ func (x *ResourceRequirements) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr1490 || yy2arr1490 { + if yyr1523 || yy2arr1523 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -20609,25 +21138,25 @@ func (x *ResourceRequirements) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1493 := z.DecBinary() - _ = yym1493 + yym1526 := z.DecBinary() + _ = yym1526 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct1494 := r.ContainerType() - if yyct1494 == codecSelferValueTypeMap1234 { - yyl1494 := r.ReadMapStart() - if yyl1494 == 0 { + yyct1527 := r.ContainerType() + if yyct1527 == codecSelferValueTypeMap1234 { + yyl1527 := r.ReadMapStart() + if yyl1527 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl1494, d) + x.codecDecodeSelfFromMap(yyl1527, d) } - } else if yyct1494 == codecSelferValueTypeArray1234 { - yyl1494 := r.ReadArrayStart() - if yyl1494 == 0 { + } else if yyct1527 == codecSelferValueTypeArray1234 { + yyl1527 := r.ReadArrayStart() + if yyl1527 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl1494, d) + x.codecDecodeSelfFromArray(yyl1527, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -20639,12 +21168,12 @@ func (x *ResourceRequirements) codecDecodeSelfFromMap(l int, d *codec1978.Decode var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys1495Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys1495Slc - var yyhl1495 bool = l >= 0 - for yyj1495 := 0; ; yyj1495++ { - if yyhl1495 { - if yyj1495 >= l { + var yys1528Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys1528Slc + var yyhl1528 bool = l >= 0 + for yyj1528 := 0; ; yyj1528++ { + if yyhl1528 { + if yyj1528 >= l { break } } else { @@ -20653,28 +21182,28 @@ func (x *ResourceRequirements) codecDecodeSelfFromMap(l int, d *codec1978.Decode } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys1495Slc = r.DecodeBytes(yys1495Slc, true, true) - yys1495 := string(yys1495Slc) + yys1528Slc = r.DecodeBytes(yys1528Slc, true, true) + yys1528 := string(yys1528Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys1495 { + switch yys1528 { case "limits": if r.TryDecodeAsNil() { x.Limits = nil } else { - yyv1496 := &x.Limits - yyv1496.CodecDecodeSelf(d) + yyv1529 := &x.Limits + yyv1529.CodecDecodeSelf(d) } case "requests": if r.TryDecodeAsNil() { x.Requests = nil } else { - yyv1497 := &x.Requests - yyv1497.CodecDecodeSelf(d) + yyv1530 := &x.Requests + yyv1530.CodecDecodeSelf(d) } default: - z.DecStructFieldNotFound(-1, yys1495) - } // end switch yys1495 - } // end for yyj1495 + z.DecStructFieldNotFound(-1, yys1528) + } // end switch yys1528 + } // end for yyj1528 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -20682,16 +21211,16 @@ func (x *ResourceRequirements) codecDecodeSelfFromArray(l int, d *codec1978.Deco var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj1498 int - var yyb1498 bool - var yyhl1498 bool = l >= 0 - yyj1498++ - if yyhl1498 { - yyb1498 = yyj1498 > l + var yyj1531 int + var yyb1531 bool + var yyhl1531 bool = l >= 0 + yyj1531++ + if yyhl1531 { + yyb1531 = yyj1531 > l } else { - yyb1498 = r.CheckBreak() + yyb1531 = r.CheckBreak() } - if yyb1498 { + if yyb1531 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -20699,16 +21228,16 @@ func (x *ResourceRequirements) codecDecodeSelfFromArray(l int, d *codec1978.Deco if r.TryDecodeAsNil() { x.Limits = nil } else { - yyv1499 := &x.Limits - yyv1499.CodecDecodeSelf(d) + yyv1532 := &x.Limits + yyv1532.CodecDecodeSelf(d) } - yyj1498++ - if yyhl1498 { - yyb1498 = yyj1498 > l + yyj1531++ + if yyhl1531 { + yyb1531 = yyj1531 > l } else { - yyb1498 = r.CheckBreak() + yyb1531 = r.CheckBreak() } - if yyb1498 { + if yyb1531 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -20716,21 +21245,21 @@ func (x *ResourceRequirements) codecDecodeSelfFromArray(l int, d *codec1978.Deco if r.TryDecodeAsNil() { x.Requests = nil } else { - yyv1500 := &x.Requests - yyv1500.CodecDecodeSelf(d) + yyv1533 := &x.Requests + yyv1533.CodecDecodeSelf(d) } for { - yyj1498++ - if yyhl1498 { - yyb1498 = yyj1498 > l + yyj1531++ + if yyhl1531 { + yyb1531 = yyj1531 > l } else { - yyb1498 = r.CheckBreak() + yyb1531 = r.CheckBreak() } - if yyb1498 { + if yyb1531 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj1498-1, "") + z.DecStructFieldNotFound(yyj1531-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -20742,48 +21271,48 @@ func (x *Container) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1501 := z.EncBinary() - _ = yym1501 + yym1534 := z.EncBinary() + _ = yym1534 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - 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 { + yysep1535 := !z.EncBinary() + yy2arr1535 := z.EncBasicHandle().StructToArray + var yyq1535 [18]bool + _, _, _ = yysep1535, yyq1535, yy2arr1535 + const yyr1535 bool = false + yyq1535[2] = len(x.Command) != 0 + yyq1535[3] = len(x.Args) != 0 + yyq1535[4] = x.WorkingDir != "" + yyq1535[5] = len(x.Ports) != 0 + yyq1535[6] = len(x.Env) != 0 + yyq1535[7] = true + yyq1535[8] = len(x.VolumeMounts) != 0 + yyq1535[9] = x.LivenessProbe != nil + yyq1535[10] = x.ReadinessProbe != nil + yyq1535[11] = x.Lifecycle != nil + yyq1535[12] = x.TerminationMessagePath != "" + yyq1535[14] = x.SecurityContext != nil + yyq1535[15] = x.Stdin != false + yyq1535[16] = x.StdinOnce != false + yyq1535[17] = x.TTY != false + var yynn1535 int + if yyr1535 || yy2arr1535 { r.EncodeArrayStart(18) } else { - yynn1502 = 3 - for _, b := range yyq1502 { + yynn1535 = 3 + for _, b := range yyq1535 { if b { - yynn1502++ + yynn1535++ } } - r.EncodeMapStart(yynn1502) - yynn1502 = 0 + r.EncodeMapStart(yynn1535) + yynn1535 = 0 } - if yyr1502 || yy2arr1502 { + if yyr1535 || yy2arr1535 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym1504 := z.EncBinary() - _ = yym1504 + yym1537 := z.EncBinary() + _ = yym1537 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Name)) @@ -20792,17 +21321,17 @@ func (x *Container) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("name")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym1505 := z.EncBinary() - _ = yym1505 + yym1538 := z.EncBinary() + _ = yym1538 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Name)) } } - if yyr1502 || yy2arr1502 { + if yyr1535 || yy2arr1535 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym1507 := z.EncBinary() - _ = yym1507 + yym1540 := z.EncBinary() + _ = yym1540 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Image)) @@ -20811,21 +21340,21 @@ func (x *Container) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("image")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym1508 := z.EncBinary() - _ = yym1508 + yym1541 := z.EncBinary() + _ = yym1541 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Image)) } } - if yyr1502 || yy2arr1502 { + if yyr1535 || yy2arr1535 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1502[2] { + if yyq1535[2] { if x.Command == nil { r.EncodeNil() } else { - yym1510 := z.EncBinary() - _ = yym1510 + yym1543 := z.EncBinary() + _ = yym1543 if false { } else { z.F.EncSliceStringV(x.Command, false, e) @@ -20835,15 +21364,15 @@ func (x *Container) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq1502[2] { + if yyq1535[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("command")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.Command == nil { r.EncodeNil() } else { - yym1511 := z.EncBinary() - _ = yym1511 + yym1544 := z.EncBinary() + _ = yym1544 if false { } else { z.F.EncSliceStringV(x.Command, false, e) @@ -20851,14 +21380,14 @@ func (x *Container) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr1502 || yy2arr1502 { + if yyr1535 || yy2arr1535 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1502[3] { + if yyq1535[3] { if x.Args == nil { r.EncodeNil() } else { - yym1513 := z.EncBinary() - _ = yym1513 + yym1546 := z.EncBinary() + _ = yym1546 if false { } else { z.F.EncSliceStringV(x.Args, false, e) @@ -20868,15 +21397,15 @@ func (x *Container) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq1502[3] { + if yyq1535[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("args")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.Args == nil { r.EncodeNil() } else { - yym1514 := z.EncBinary() - _ = yym1514 + yym1547 := z.EncBinary() + _ = yym1547 if false { } else { z.F.EncSliceStringV(x.Args, false, e) @@ -20884,11 +21413,11 @@ func (x *Container) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr1502 || yy2arr1502 { + if yyr1535 || yy2arr1535 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1502[4] { - yym1516 := z.EncBinary() - _ = yym1516 + if yyq1535[4] { + yym1549 := z.EncBinary() + _ = yym1549 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.WorkingDir)) @@ -20897,26 +21426,26 @@ func (x *Container) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq1502[4] { + if yyq1535[4] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("workingDir")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym1517 := z.EncBinary() - _ = yym1517 + yym1550 := z.EncBinary() + _ = yym1550 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.WorkingDir)) } } } - if yyr1502 || yy2arr1502 { + if yyr1535 || yy2arr1535 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1502[5] { + if yyq1535[5] { if x.Ports == nil { r.EncodeNil() } else { - yym1519 := z.EncBinary() - _ = yym1519 + yym1552 := z.EncBinary() + _ = yym1552 if false { } else { h.encSliceContainerPort(([]ContainerPort)(x.Ports), e) @@ -20926,15 +21455,15 @@ func (x *Container) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq1502[5] { + if yyq1535[5] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("ports")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.Ports == nil { r.EncodeNil() } else { - yym1520 := z.EncBinary() - _ = yym1520 + yym1553 := z.EncBinary() + _ = yym1553 if false { } else { h.encSliceContainerPort(([]ContainerPort)(x.Ports), e) @@ -20942,14 +21471,14 @@ func (x *Container) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr1502 || yy2arr1502 { + if yyr1535 || yy2arr1535 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1502[6] { + if yyq1535[6] { if x.Env == nil { r.EncodeNil() } else { - yym1522 := z.EncBinary() - _ = yym1522 + yym1555 := z.EncBinary() + _ = yym1555 if false { } else { h.encSliceEnvVar(([]EnvVar)(x.Env), e) @@ -20959,15 +21488,15 @@ func (x *Container) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq1502[6] { + if yyq1535[6] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("env")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.Env == nil { r.EncodeNil() } else { - yym1523 := z.EncBinary() - _ = yym1523 + yym1556 := z.EncBinary() + _ = yym1556 if false { } else { h.encSliceEnvVar(([]EnvVar)(x.Env), e) @@ -20975,31 +21504,31 @@ func (x *Container) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr1502 || yy2arr1502 { + if yyr1535 || yy2arr1535 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1502[7] { - yy1525 := &x.Resources - yy1525.CodecEncodeSelf(e) + if yyq1535[7] { + yy1558 := &x.Resources + yy1558.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { - if yyq1502[7] { + if yyq1535[7] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("resources")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy1526 := &x.Resources - yy1526.CodecEncodeSelf(e) + yy1559 := &x.Resources + yy1559.CodecEncodeSelf(e) } } - if yyr1502 || yy2arr1502 { + if yyr1535 || yy2arr1535 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1502[8] { + if yyq1535[8] { if x.VolumeMounts == nil { r.EncodeNil() } else { - yym1528 := z.EncBinary() - _ = yym1528 + yym1561 := z.EncBinary() + _ = yym1561 if false { } else { h.encSliceVolumeMount(([]VolumeMount)(x.VolumeMounts), e) @@ -21009,15 +21538,15 @@ func (x *Container) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq1502[8] { + if yyq1535[8] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("volumeMounts")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.VolumeMounts == nil { r.EncodeNil() } else { - yym1529 := z.EncBinary() - _ = yym1529 + yym1562 := z.EncBinary() + _ = yym1562 if false { } else { h.encSliceVolumeMount(([]VolumeMount)(x.VolumeMounts), e) @@ -21025,9 +21554,9 @@ func (x *Container) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr1502 || yy2arr1502 { + if yyr1535 || yy2arr1535 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1502[9] { + if yyq1535[9] { if x.LivenessProbe == nil { r.EncodeNil() } else { @@ -21037,7 +21566,7 @@ func (x *Container) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq1502[9] { + if yyq1535[9] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("livenessProbe")) z.EncSendContainerState(codecSelfer_containerMapValue1234) @@ -21048,9 +21577,9 @@ func (x *Container) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr1502 || yy2arr1502 { + if yyr1535 || yy2arr1535 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1502[10] { + if yyq1535[10] { if x.ReadinessProbe == nil { r.EncodeNil() } else { @@ -21060,7 +21589,7 @@ func (x *Container) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq1502[10] { + if yyq1535[10] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("readinessProbe")) z.EncSendContainerState(codecSelfer_containerMapValue1234) @@ -21071,9 +21600,9 @@ func (x *Container) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr1502 || yy2arr1502 { + if yyr1535 || yy2arr1535 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1502[11] { + if yyq1535[11] { if x.Lifecycle == nil { r.EncodeNil() } else { @@ -21083,7 +21612,7 @@ func (x *Container) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq1502[11] { + if yyq1535[11] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("lifecycle")) z.EncSendContainerState(codecSelfer_containerMapValue1234) @@ -21094,11 +21623,11 @@ func (x *Container) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr1502 || yy2arr1502 { + if yyr1535 || yy2arr1535 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1502[12] { - yym1534 := z.EncBinary() - _ = yym1534 + if yyq1535[12] { + yym1567 := z.EncBinary() + _ = yym1567 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.TerminationMessagePath)) @@ -21107,19 +21636,19 @@ func (x *Container) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq1502[12] { + if yyq1535[12] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("terminationMessagePath")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym1535 := z.EncBinary() - _ = yym1535 + yym1568 := z.EncBinary() + _ = yym1568 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.TerminationMessagePath)) } } } - if yyr1502 || yy2arr1502 { + if yyr1535 || yy2arr1535 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) x.ImagePullPolicy.CodecEncodeSelf(e) } else { @@ -21128,9 +21657,9 @@ func (x *Container) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapValue1234) x.ImagePullPolicy.CodecEncodeSelf(e) } - if yyr1502 || yy2arr1502 { + if yyr1535 || yy2arr1535 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1502[14] { + if yyq1535[14] { if x.SecurityContext == nil { r.EncodeNil() } else { @@ -21140,7 +21669,7 @@ func (x *Container) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq1502[14] { + if yyq1535[14] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("securityContext")) z.EncSendContainerState(codecSelfer_containerMapValue1234) @@ -21151,11 +21680,11 @@ func (x *Container) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr1502 || yy2arr1502 { + if yyr1535 || yy2arr1535 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1502[15] { - yym1539 := z.EncBinary() - _ = yym1539 + if yyq1535[15] { + yym1572 := z.EncBinary() + _ = yym1572 if false { } else { r.EncodeBool(bool(x.Stdin)) @@ -21164,23 +21693,23 @@ func (x *Container) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeBool(false) } } else { - if yyq1502[15] { + if yyq1535[15] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("stdin")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym1540 := z.EncBinary() - _ = yym1540 + yym1573 := z.EncBinary() + _ = yym1573 if false { } else { r.EncodeBool(bool(x.Stdin)) } } } - if yyr1502 || yy2arr1502 { + if yyr1535 || yy2arr1535 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1502[16] { - yym1542 := z.EncBinary() - _ = yym1542 + if yyq1535[16] { + yym1575 := z.EncBinary() + _ = yym1575 if false { } else { r.EncodeBool(bool(x.StdinOnce)) @@ -21189,23 +21718,23 @@ func (x *Container) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeBool(false) } } else { - if yyq1502[16] { + if yyq1535[16] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("stdinOnce")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym1543 := z.EncBinary() - _ = yym1543 + yym1576 := z.EncBinary() + _ = yym1576 if false { } else { r.EncodeBool(bool(x.StdinOnce)) } } } - if yyr1502 || yy2arr1502 { + if yyr1535 || yy2arr1535 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1502[17] { - yym1545 := z.EncBinary() - _ = yym1545 + if yyq1535[17] { + yym1578 := z.EncBinary() + _ = yym1578 if false { } else { r.EncodeBool(bool(x.TTY)) @@ -21214,19 +21743,19 @@ func (x *Container) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeBool(false) } } else { - if yyq1502[17] { + if yyq1535[17] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("tty")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym1546 := z.EncBinary() - _ = yym1546 + yym1579 := z.EncBinary() + _ = yym1579 if false { } else { r.EncodeBool(bool(x.TTY)) } } } - if yyr1502 || yy2arr1502 { + if yyr1535 || yy2arr1535 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -21239,25 +21768,25 @@ func (x *Container) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1547 := z.DecBinary() - _ = yym1547 + yym1580 := z.DecBinary() + _ = yym1580 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct1548 := r.ContainerType() - if yyct1548 == codecSelferValueTypeMap1234 { - yyl1548 := r.ReadMapStart() - if yyl1548 == 0 { + yyct1581 := r.ContainerType() + if yyct1581 == codecSelferValueTypeMap1234 { + yyl1581 := r.ReadMapStart() + if yyl1581 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl1548, d) + x.codecDecodeSelfFromMap(yyl1581, d) } - } else if yyct1548 == codecSelferValueTypeArray1234 { - yyl1548 := r.ReadArrayStart() - if yyl1548 == 0 { + } else if yyct1581 == codecSelferValueTypeArray1234 { + yyl1581 := r.ReadArrayStart() + if yyl1581 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl1548, d) + x.codecDecodeSelfFromArray(yyl1581, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -21269,12 +21798,12 @@ func (x *Container) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys1549Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys1549Slc - var yyhl1549 bool = l >= 0 - for yyj1549 := 0; ; yyj1549++ { - if yyhl1549 { - if yyj1549 >= l { + var yys1582Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys1582Slc + var yyhl1582 bool = l >= 0 + for yyj1582 := 0; ; yyj1582++ { + if yyhl1582 { + if yyj1582 >= l { break } } else { @@ -21283,10 +21812,10 @@ func (x *Container) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys1549Slc = r.DecodeBytes(yys1549Slc, true, true) - yys1549 := string(yys1549Slc) + yys1582Slc = r.DecodeBytes(yys1582Slc, true, true) + yys1582 := string(yys1582Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys1549 { + switch yys1582 { case "name": if r.TryDecodeAsNil() { x.Name = "" @@ -21303,24 +21832,24 @@ func (x *Container) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.Command = nil } else { - yyv1552 := &x.Command - yym1553 := z.DecBinary() - _ = yym1553 + yyv1585 := &x.Command + yym1586 := z.DecBinary() + _ = yym1586 if false { } else { - z.F.DecSliceStringX(yyv1552, false, d) + z.F.DecSliceStringX(yyv1585, false, d) } } case "args": if r.TryDecodeAsNil() { x.Args = nil } else { - yyv1554 := &x.Args - yym1555 := z.DecBinary() - _ = yym1555 + yyv1587 := &x.Args + yym1588 := z.DecBinary() + _ = yym1588 if false { } else { - z.F.DecSliceStringX(yyv1554, false, d) + z.F.DecSliceStringX(yyv1587, false, d) } } case "workingDir": @@ -21333,43 +21862,43 @@ func (x *Container) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.Ports = nil } else { - yyv1557 := &x.Ports - yym1558 := z.DecBinary() - _ = yym1558 + yyv1590 := &x.Ports + yym1591 := z.DecBinary() + _ = yym1591 if false { } else { - h.decSliceContainerPort((*[]ContainerPort)(yyv1557), d) + h.decSliceContainerPort((*[]ContainerPort)(yyv1590), d) } } case "env": if r.TryDecodeAsNil() { x.Env = nil } else { - yyv1559 := &x.Env - yym1560 := z.DecBinary() - _ = yym1560 + yyv1592 := &x.Env + yym1593 := z.DecBinary() + _ = yym1593 if false { } else { - h.decSliceEnvVar((*[]EnvVar)(yyv1559), d) + h.decSliceEnvVar((*[]EnvVar)(yyv1592), d) } } case "resources": if r.TryDecodeAsNil() { x.Resources = ResourceRequirements{} } else { - yyv1561 := &x.Resources - yyv1561.CodecDecodeSelf(d) + yyv1594 := &x.Resources + yyv1594.CodecDecodeSelf(d) } case "volumeMounts": if r.TryDecodeAsNil() { x.VolumeMounts = nil } else { - yyv1562 := &x.VolumeMounts - yym1563 := z.DecBinary() - _ = yym1563 + yyv1595 := &x.VolumeMounts + yym1596 := z.DecBinary() + _ = yym1596 if false { } else { - h.decSliceVolumeMount((*[]VolumeMount)(yyv1562), d) + h.decSliceVolumeMount((*[]VolumeMount)(yyv1595), d) } } case "livenessProbe": @@ -21447,9 +21976,9 @@ func (x *Container) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { x.TTY = bool(r.DecodeBool()) } default: - z.DecStructFieldNotFound(-1, yys1549) - } // end switch yys1549 - } // end for yyj1549 + z.DecStructFieldNotFound(-1, yys1582) + } // end switch yys1582 + } // end for yyj1582 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -21457,16 +21986,16 @@ func (x *Container) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj1573 int - var yyb1573 bool - var yyhl1573 bool = l >= 0 - yyj1573++ - if yyhl1573 { - yyb1573 = yyj1573 > l + var yyj1606 int + var yyb1606 bool + var yyhl1606 bool = l >= 0 + yyj1606++ + if yyhl1606 { + yyb1606 = yyj1606 > l } else { - yyb1573 = r.CheckBreak() + yyb1606 = r.CheckBreak() } - if yyb1573 { + if yyb1606 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -21476,13 +22005,13 @@ func (x *Container) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.Name = string(r.DecodeString()) } - yyj1573++ - if yyhl1573 { - yyb1573 = yyj1573 > l + yyj1606++ + if yyhl1606 { + yyb1606 = yyj1606 > l } else { - yyb1573 = r.CheckBreak() + yyb1606 = r.CheckBreak() } - if yyb1573 { + if yyb1606 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -21492,13 +22021,13 @@ func (x *Container) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.Image = string(r.DecodeString()) } - yyj1573++ - if yyhl1573 { - yyb1573 = yyj1573 > l + yyj1606++ + if yyhl1606 { + yyb1606 = yyj1606 > l } else { - yyb1573 = r.CheckBreak() + yyb1606 = r.CheckBreak() } - if yyb1573 { + if yyb1606 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -21506,21 +22035,21 @@ func (x *Container) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.Command = nil } else { - yyv1576 := &x.Command - yym1577 := z.DecBinary() - _ = yym1577 + yyv1609 := &x.Command + yym1610 := z.DecBinary() + _ = yym1610 if false { } else { - z.F.DecSliceStringX(yyv1576, false, d) + z.F.DecSliceStringX(yyv1609, false, d) } } - yyj1573++ - if yyhl1573 { - yyb1573 = yyj1573 > l + yyj1606++ + if yyhl1606 { + yyb1606 = yyj1606 > l } else { - yyb1573 = r.CheckBreak() + yyb1606 = r.CheckBreak() } - if yyb1573 { + if yyb1606 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -21528,21 +22057,21 @@ func (x *Container) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.Args = nil } else { - yyv1578 := &x.Args - yym1579 := z.DecBinary() - _ = yym1579 + yyv1611 := &x.Args + yym1612 := z.DecBinary() + _ = yym1612 if false { } else { - z.F.DecSliceStringX(yyv1578, false, d) + z.F.DecSliceStringX(yyv1611, false, d) } } - yyj1573++ - if yyhl1573 { - yyb1573 = yyj1573 > l + yyj1606++ + if yyhl1606 { + yyb1606 = yyj1606 > l } else { - yyb1573 = r.CheckBreak() + yyb1606 = r.CheckBreak() } - if yyb1573 { + if yyb1606 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -21552,13 +22081,13 @@ func (x *Container) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.WorkingDir = string(r.DecodeString()) } - yyj1573++ - if yyhl1573 { - yyb1573 = yyj1573 > l + yyj1606++ + if yyhl1606 { + yyb1606 = yyj1606 > l } else { - yyb1573 = r.CheckBreak() + yyb1606 = r.CheckBreak() } - if yyb1573 { + if yyb1606 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -21566,21 +22095,21 @@ func (x *Container) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.Ports = nil } else { - yyv1581 := &x.Ports - yym1582 := z.DecBinary() - _ = yym1582 + yyv1614 := &x.Ports + yym1615 := z.DecBinary() + _ = yym1615 if false { } else { - h.decSliceContainerPort((*[]ContainerPort)(yyv1581), d) + h.decSliceContainerPort((*[]ContainerPort)(yyv1614), d) } } - yyj1573++ - if yyhl1573 { - yyb1573 = yyj1573 > l + yyj1606++ + if yyhl1606 { + yyb1606 = yyj1606 > l } else { - yyb1573 = r.CheckBreak() + yyb1606 = r.CheckBreak() } - if yyb1573 { + if yyb1606 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -21588,21 +22117,21 @@ func (x *Container) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.Env = nil } else { - yyv1583 := &x.Env - yym1584 := z.DecBinary() - _ = yym1584 + yyv1616 := &x.Env + yym1617 := z.DecBinary() + _ = yym1617 if false { } else { - h.decSliceEnvVar((*[]EnvVar)(yyv1583), d) + h.decSliceEnvVar((*[]EnvVar)(yyv1616), d) } } - yyj1573++ - if yyhl1573 { - yyb1573 = yyj1573 > l + yyj1606++ + if yyhl1606 { + yyb1606 = yyj1606 > l } else { - yyb1573 = r.CheckBreak() + yyb1606 = r.CheckBreak() } - if yyb1573 { + if yyb1606 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -21610,16 +22139,16 @@ func (x *Container) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.Resources = ResourceRequirements{} } else { - yyv1585 := &x.Resources - yyv1585.CodecDecodeSelf(d) + yyv1618 := &x.Resources + yyv1618.CodecDecodeSelf(d) } - yyj1573++ - if yyhl1573 { - yyb1573 = yyj1573 > l + yyj1606++ + if yyhl1606 { + yyb1606 = yyj1606 > l } else { - yyb1573 = r.CheckBreak() + yyb1606 = r.CheckBreak() } - if yyb1573 { + if yyb1606 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -21627,21 +22156,21 @@ func (x *Container) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.VolumeMounts = nil } else { - yyv1586 := &x.VolumeMounts - yym1587 := z.DecBinary() - _ = yym1587 + yyv1619 := &x.VolumeMounts + yym1620 := z.DecBinary() + _ = yym1620 if false { } else { - h.decSliceVolumeMount((*[]VolumeMount)(yyv1586), d) + h.decSliceVolumeMount((*[]VolumeMount)(yyv1619), d) } } - yyj1573++ - if yyhl1573 { - yyb1573 = yyj1573 > l + yyj1606++ + if yyhl1606 { + yyb1606 = yyj1606 > l } else { - yyb1573 = r.CheckBreak() + yyb1606 = r.CheckBreak() } - if yyb1573 { + if yyb1606 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -21656,13 +22185,13 @@ func (x *Container) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } x.LivenessProbe.CodecDecodeSelf(d) } - yyj1573++ - if yyhl1573 { - yyb1573 = yyj1573 > l + yyj1606++ + if yyhl1606 { + yyb1606 = yyj1606 > l } else { - yyb1573 = r.CheckBreak() + yyb1606 = r.CheckBreak() } - if yyb1573 { + if yyb1606 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -21677,13 +22206,13 @@ func (x *Container) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } x.ReadinessProbe.CodecDecodeSelf(d) } - yyj1573++ - if yyhl1573 { - yyb1573 = yyj1573 > l + yyj1606++ + if yyhl1606 { + yyb1606 = yyj1606 > l } else { - yyb1573 = r.CheckBreak() + yyb1606 = r.CheckBreak() } - if yyb1573 { + if yyb1606 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -21698,13 +22227,13 @@ func (x *Container) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } x.Lifecycle.CodecDecodeSelf(d) } - yyj1573++ - if yyhl1573 { - yyb1573 = yyj1573 > l + yyj1606++ + if yyhl1606 { + yyb1606 = yyj1606 > l } else { - yyb1573 = r.CheckBreak() + yyb1606 = r.CheckBreak() } - if yyb1573 { + if yyb1606 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -21714,13 +22243,13 @@ func (x *Container) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.TerminationMessagePath = string(r.DecodeString()) } - yyj1573++ - if yyhl1573 { - yyb1573 = yyj1573 > l + yyj1606++ + if yyhl1606 { + yyb1606 = yyj1606 > l } else { - yyb1573 = r.CheckBreak() + yyb1606 = r.CheckBreak() } - if yyb1573 { + if yyb1606 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -21730,13 +22259,13 @@ func (x *Container) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.ImagePullPolicy = PullPolicy(r.DecodeString()) } - yyj1573++ - if yyhl1573 { - yyb1573 = yyj1573 > l + yyj1606++ + if yyhl1606 { + yyb1606 = yyj1606 > l } else { - yyb1573 = r.CheckBreak() + yyb1606 = r.CheckBreak() } - if yyb1573 { + if yyb1606 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -21751,13 +22280,13 @@ func (x *Container) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } x.SecurityContext.CodecDecodeSelf(d) } - yyj1573++ - if yyhl1573 { - yyb1573 = yyj1573 > l + yyj1606++ + if yyhl1606 { + yyb1606 = yyj1606 > l } else { - yyb1573 = r.CheckBreak() + yyb1606 = r.CheckBreak() } - if yyb1573 { + if yyb1606 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -21767,13 +22296,13 @@ func (x *Container) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.Stdin = bool(r.DecodeBool()) } - yyj1573++ - if yyhl1573 { - yyb1573 = yyj1573 > l + yyj1606++ + if yyhl1606 { + yyb1606 = yyj1606 > l } else { - yyb1573 = r.CheckBreak() + yyb1606 = r.CheckBreak() } - if yyb1573 { + if yyb1606 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -21783,13 +22312,13 @@ func (x *Container) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.StdinOnce = bool(r.DecodeBool()) } - yyj1573++ - if yyhl1573 { - yyb1573 = yyj1573 > l + yyj1606++ + if yyhl1606 { + yyb1606 = yyj1606 > l } else { - yyb1573 = r.CheckBreak() + yyb1606 = r.CheckBreak() } - if yyb1573 { + if yyb1606 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -21800,17 +22329,17 @@ func (x *Container) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { x.TTY = bool(r.DecodeBool()) } for { - yyj1573++ - if yyhl1573 { - yyb1573 = yyj1573 > l + yyj1606++ + if yyhl1606 { + yyb1606 = yyj1606 > l } else { - yyb1573 = r.CheckBreak() + yyb1606 = r.CheckBreak() } - if yyb1573 { + if yyb1606 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj1573-1, "") + z.DecStructFieldNotFound(yyj1606-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -21822,35 +22351,35 @@ func (x *Handler) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1597 := z.EncBinary() - _ = yym1597 + yym1630 := z.EncBinary() + _ = yym1630 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - 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 { + yysep1631 := !z.EncBinary() + yy2arr1631 := z.EncBasicHandle().StructToArray + var yyq1631 [3]bool + _, _, _ = yysep1631, yyq1631, yy2arr1631 + const yyr1631 bool = false + yyq1631[0] = x.Exec != nil + yyq1631[1] = x.HTTPGet != nil + yyq1631[2] = x.TCPSocket != nil + var yynn1631 int + if yyr1631 || yy2arr1631 { r.EncodeArrayStart(3) } else { - yynn1598 = 0 - for _, b := range yyq1598 { + yynn1631 = 0 + for _, b := range yyq1631 { if b { - yynn1598++ + yynn1631++ } } - r.EncodeMapStart(yynn1598) - yynn1598 = 0 + r.EncodeMapStart(yynn1631) + yynn1631 = 0 } - if yyr1598 || yy2arr1598 { + if yyr1631 || yy2arr1631 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1598[0] { + if yyq1631[0] { if x.Exec == nil { r.EncodeNil() } else { @@ -21860,7 +22389,7 @@ func (x *Handler) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq1598[0] { + if yyq1631[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("exec")) z.EncSendContainerState(codecSelfer_containerMapValue1234) @@ -21871,9 +22400,9 @@ func (x *Handler) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr1598 || yy2arr1598 { + if yyr1631 || yy2arr1631 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1598[1] { + if yyq1631[1] { if x.HTTPGet == nil { r.EncodeNil() } else { @@ -21883,7 +22412,7 @@ func (x *Handler) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq1598[1] { + if yyq1631[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("httpGet")) z.EncSendContainerState(codecSelfer_containerMapValue1234) @@ -21894,9 +22423,9 @@ func (x *Handler) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr1598 || yy2arr1598 { + if yyr1631 || yy2arr1631 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1598[2] { + if yyq1631[2] { if x.TCPSocket == nil { r.EncodeNil() } else { @@ -21906,7 +22435,7 @@ func (x *Handler) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq1598[2] { + if yyq1631[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("tcpSocket")) z.EncSendContainerState(codecSelfer_containerMapValue1234) @@ -21917,7 +22446,7 @@ func (x *Handler) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr1598 || yy2arr1598 { + if yyr1631 || yy2arr1631 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -21930,25 +22459,25 @@ func (x *Handler) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1602 := z.DecBinary() - _ = yym1602 + yym1635 := z.DecBinary() + _ = yym1635 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct1603 := r.ContainerType() - if yyct1603 == codecSelferValueTypeMap1234 { - yyl1603 := r.ReadMapStart() - if yyl1603 == 0 { + yyct1636 := r.ContainerType() + if yyct1636 == codecSelferValueTypeMap1234 { + yyl1636 := r.ReadMapStart() + if yyl1636 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl1603, d) + x.codecDecodeSelfFromMap(yyl1636, d) } - } else if yyct1603 == codecSelferValueTypeArray1234 { - yyl1603 := r.ReadArrayStart() - if yyl1603 == 0 { + } else if yyct1636 == codecSelferValueTypeArray1234 { + yyl1636 := r.ReadArrayStart() + if yyl1636 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl1603, d) + x.codecDecodeSelfFromArray(yyl1636, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -21960,12 +22489,12 @@ func (x *Handler) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys1604Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys1604Slc - var yyhl1604 bool = l >= 0 - for yyj1604 := 0; ; yyj1604++ { - if yyhl1604 { - if yyj1604 >= l { + var yys1637Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys1637Slc + var yyhl1637 bool = l >= 0 + for yyj1637 := 0; ; yyj1637++ { + if yyhl1637 { + if yyj1637 >= l { break } } else { @@ -21974,10 +22503,10 @@ func (x *Handler) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys1604Slc = r.DecodeBytes(yys1604Slc, true, true) - yys1604 := string(yys1604Slc) + yys1637Slc = r.DecodeBytes(yys1637Slc, true, true) + yys1637 := string(yys1637Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys1604 { + switch yys1637 { case "exec": if r.TryDecodeAsNil() { if x.Exec != nil { @@ -22012,9 +22541,9 @@ func (x *Handler) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { x.TCPSocket.CodecDecodeSelf(d) } default: - z.DecStructFieldNotFound(-1, yys1604) - } // end switch yys1604 - } // end for yyj1604 + z.DecStructFieldNotFound(-1, yys1637) + } // end switch yys1637 + } // end for yyj1637 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -22022,16 +22551,16 @@ func (x *Handler) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj1608 int - var yyb1608 bool - var yyhl1608 bool = l >= 0 - yyj1608++ - if yyhl1608 { - yyb1608 = yyj1608 > l + var yyj1641 int + var yyb1641 bool + var yyhl1641 bool = l >= 0 + yyj1641++ + if yyhl1641 { + yyb1641 = yyj1641 > l } else { - yyb1608 = r.CheckBreak() + yyb1641 = r.CheckBreak() } - if yyb1608 { + if yyb1641 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -22046,13 +22575,13 @@ func (x *Handler) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } x.Exec.CodecDecodeSelf(d) } - yyj1608++ - if yyhl1608 { - yyb1608 = yyj1608 > l + yyj1641++ + if yyhl1641 { + yyb1641 = yyj1641 > l } else { - yyb1608 = r.CheckBreak() + yyb1641 = r.CheckBreak() } - if yyb1608 { + if yyb1641 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -22067,13 +22596,13 @@ func (x *Handler) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } x.HTTPGet.CodecDecodeSelf(d) } - yyj1608++ - if yyhl1608 { - yyb1608 = yyj1608 > l + yyj1641++ + if yyhl1641 { + yyb1641 = yyj1641 > l } else { - yyb1608 = r.CheckBreak() + yyb1641 = r.CheckBreak() } - if yyb1608 { + if yyb1641 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -22089,17 +22618,17 @@ func (x *Handler) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { x.TCPSocket.CodecDecodeSelf(d) } for { - yyj1608++ - if yyhl1608 { - yyb1608 = yyj1608 > l + yyj1641++ + if yyhl1641 { + yyb1641 = yyj1641 > l } else { - yyb1608 = r.CheckBreak() + yyb1641 = r.CheckBreak() } - if yyb1608 { + if yyb1641 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj1608-1, "") + z.DecStructFieldNotFound(yyj1641-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -22111,34 +22640,34 @@ func (x *Lifecycle) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1612 := z.EncBinary() - _ = yym1612 + yym1645 := z.EncBinary() + _ = yym1645 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - 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 { + yysep1646 := !z.EncBinary() + yy2arr1646 := z.EncBasicHandle().StructToArray + var yyq1646 [2]bool + _, _, _ = yysep1646, yyq1646, yy2arr1646 + const yyr1646 bool = false + yyq1646[0] = x.PostStart != nil + yyq1646[1] = x.PreStop != nil + var yynn1646 int + if yyr1646 || yy2arr1646 { r.EncodeArrayStart(2) } else { - yynn1613 = 0 - for _, b := range yyq1613 { + yynn1646 = 0 + for _, b := range yyq1646 { if b { - yynn1613++ + yynn1646++ } } - r.EncodeMapStart(yynn1613) - yynn1613 = 0 + r.EncodeMapStart(yynn1646) + yynn1646 = 0 } - if yyr1613 || yy2arr1613 { + if yyr1646 || yy2arr1646 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1613[0] { + if yyq1646[0] { if x.PostStart == nil { r.EncodeNil() } else { @@ -22148,7 +22677,7 @@ func (x *Lifecycle) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq1613[0] { + if yyq1646[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("postStart")) z.EncSendContainerState(codecSelfer_containerMapValue1234) @@ -22159,9 +22688,9 @@ func (x *Lifecycle) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr1613 || yy2arr1613 { + if yyr1646 || yy2arr1646 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1613[1] { + if yyq1646[1] { if x.PreStop == nil { r.EncodeNil() } else { @@ -22171,7 +22700,7 @@ func (x *Lifecycle) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq1613[1] { + if yyq1646[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("preStop")) z.EncSendContainerState(codecSelfer_containerMapValue1234) @@ -22182,7 +22711,7 @@ func (x *Lifecycle) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr1613 || yy2arr1613 { + if yyr1646 || yy2arr1646 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -22192,472 +22721,6 @@ func (x *Lifecycle) CodecEncodeSelf(e *codec1978.Encoder) { } func (x *Lifecycle) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - yym1616 := z.DecBinary() - _ = yym1616 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - yyct1617 := r.ContainerType() - if yyct1617 == codecSelferValueTypeMap1234 { - yyl1617 := r.ReadMapStart() - if yyl1617 == 0 { - z.DecSendContainerState(codecSelfer_containerMapEnd1234) - } else { - x.codecDecodeSelfFromMap(yyl1617, d) - } - } else if yyct1617 == codecSelferValueTypeArray1234 { - yyl1617 := r.ReadArrayStart() - if yyl1617 == 0 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - x.codecDecodeSelfFromArray(yyl1617, 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 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 { - if r.CheckBreak() { - break - } - } - z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys1618Slc = r.DecodeBytes(yys1618Slc, true, true) - yys1618 := string(yys1618Slc) - z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys1618 { - 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, yys1618) - } // end switch yys1618 - } // end for yyj1618 - 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 yyj1621 int - var yyb1621 bool - var yyhl1621 bool = l >= 0 - yyj1621++ - if yyhl1621 { - yyb1621 = yyj1621 > l - } else { - yyb1621 = r.CheckBreak() - } - if yyb1621 { - 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) - } - yyj1621++ - if yyhl1621 { - yyb1621 = yyj1621 > l - } else { - yyb1621 = r.CheckBreak() - } - if yyb1621 { - 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 { - yyj1621++ - if yyhl1621 { - yyb1621 = yyj1621 > l - } else { - yyb1621 = r.CheckBreak() - } - if yyb1621 { - break - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj1621-1, "") - } - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) -} - -func (x ConditionStatus) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - yym1624 := z.EncBinary() - _ = yym1624 - 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 - yym1625 := z.DecBinary() - _ = yym1625 - 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 { - yym1626 := z.EncBinary() - _ = yym1626 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - 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 { - yynn1627 = 0 - for _, b := range yyq1627 { - if b { - yynn1627++ - } - } - r.EncodeMapStart(yynn1627) - yynn1627 = 0 - } - if yyr1627 || yy2arr1627 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1627[0] { - yym1629 := z.EncBinary() - _ = yym1629 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Reason)) - } - } else { - r.EncodeString(codecSelferC_UTF81234, "") - } - } else { - if yyq1627[0] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("reason")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym1630 := z.EncBinary() - _ = yym1630 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Reason)) - } - } - } - if yyr1627 || yy2arr1627 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1627[1] { - yym1632 := z.EncBinary() - _ = yym1632 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Message)) - } - } else { - r.EncodeString(codecSelferC_UTF81234, "") - } - } else { - if yyq1627[1] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("message")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym1633 := z.EncBinary() - _ = yym1633 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Message)) - } - } - } - if yyr1627 || yy2arr1627 { - 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 - yym1634 := z.DecBinary() - _ = yym1634 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - yyct1635 := r.ContainerType() - if yyct1635 == codecSelferValueTypeMap1234 { - yyl1635 := r.ReadMapStart() - if yyl1635 == 0 { - z.DecSendContainerState(codecSelfer_containerMapEnd1234) - } else { - x.codecDecodeSelfFromMap(yyl1635, d) - } - } else if yyct1635 == codecSelferValueTypeArray1234 { - yyl1635 := r.ReadArrayStart() - if yyl1635 == 0 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - x.codecDecodeSelfFromArray(yyl1635, 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 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 { - if r.CheckBreak() { - break - } - } - z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys1636Slc = r.DecodeBytes(yys1636Slc, true, true) - yys1636 := string(yys1636Slc) - z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys1636 { - 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, yys1636) - } // end switch yys1636 - } // end for yyj1636 - 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 yyj1639 int - var yyb1639 bool - var yyhl1639 bool = l >= 0 - yyj1639++ - if yyhl1639 { - yyb1639 = yyj1639 > l - } else { - yyb1639 = r.CheckBreak() - } - if yyb1639 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Reason = "" - } else { - x.Reason = string(r.DecodeString()) - } - yyj1639++ - if yyhl1639 { - yyb1639 = yyj1639 > l - } else { - yyb1639 = r.CheckBreak() - } - if yyb1639 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Message = "" - } else { - x.Message = string(r.DecodeString()) - } - for { - yyj1639++ - if yyhl1639 { - yyb1639 = yyj1639 > l - } else { - yyb1639 = r.CheckBreak() - } - if yyb1639 { - break - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj1639-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 { - yym1642 := z.EncBinary() - _ = yym1642 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - 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 { - yynn1643 = 0 - for _, b := range yyq1643 { - if b { - yynn1643++ - } - } - r.EncodeMapStart(yynn1643) - yynn1643 = 0 - } - if yyr1643 || yy2arr1643 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1643[0] { - yy1645 := &x.StartedAt - yym1646 := z.EncBinary() - _ = yym1646 - if false { - } else if z.HasExtensions() && z.EncExt(yy1645) { - } else if yym1646 { - z.EncBinaryMarshal(yy1645) - } else if !yym1646 && z.IsJSONHandle() { - z.EncJSONMarshal(yy1645) - } else { - z.EncFallback(yy1645) - } - } else { - r.EncodeNil() - } - } else { - if yyq1643[0] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("startedAt")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy1647 := &x.StartedAt - yym1648 := z.EncBinary() - _ = yym1648 - if false { - } else if z.HasExtensions() && z.EncExt(yy1647) { - } else if yym1648 { - z.EncBinaryMarshal(yy1647) - } else if !yym1648 && z.IsJSONHandle() { - z.EncJSONMarshal(yy1647) - } else { - z.EncFallback(yy1647) - } - } - } - if yyr1643 || yy2arr1643 { - 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 @@ -22687,7 +22750,7 @@ func (x *ContainerStateRunning) CodecDecodeSelf(d *codec1978.Decoder) { } } -func (x *ContainerStateRunning) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { +func (x *Lifecycle) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r @@ -22709,22 +22772,27 @@ func (x *ContainerStateRunning) codecDecodeSelfFromMap(l int, d *codec1978.Decod yys1651 := string(yys1651Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys1651 { - case "startedAt": + case "postStart": if r.TryDecodeAsNil() { - x.StartedAt = pkg2_unversioned.Time{} - } else { - yyv1652 := &x.StartedAt - 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) + 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, yys1651) @@ -22733,7 +22801,7 @@ func (x *ContainerStateRunning) codecDecodeSelfFromMap(l int, d *codec1978.Decod z.DecSendContainerState(codecSelfer_containerMapEnd1234) } -func (x *ContainerStateRunning) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { +func (x *Lifecycle) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r @@ -22752,20 +22820,35 @@ func (x *ContainerStateRunning) codecDecodeSelfFromArray(l int, d *codec1978.Dec } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.StartedAt = pkg2_unversioned.Time{} - } else { - yyv1655 := &x.StartedAt - yym1656 := z.DecBinary() - _ = yym1656 - if false { - } else if z.HasExtensions() && z.DecExt(yyv1655) { - } else if yym1656 { - z.DecBinaryUnmarshal(yyv1655) - } else if !yym1656 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv1655) - } else { - z.DecFallback(yyv1655, false) + if x.PostStart != nil { + x.PostStart = nil } + } else { + if x.PostStart == nil { + x.PostStart = new(Handler) + } + x.PostStart.CodecDecodeSelf(d) + } + yyj1654++ + if yyhl1654 { + yyb1654 = yyj1654 > l + } else { + yyb1654 = r.CheckBreak() + } + if yyb1654 { + 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 { yyj1654++ @@ -22783,6 +22866,452 @@ func (x *ContainerStateRunning) codecDecodeSelfFromArray(l int, d *codec1978.Dec z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } +func (x ConditionStatus) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + yym1657 := z.EncBinary() + _ = yym1657 + 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 + yym1658 := z.DecBinary() + _ = yym1658 + 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 { + yym1659 := z.EncBinary() + _ = yym1659 + if false { + } else if z.HasExtensions() && z.EncExt(x) { + } else { + yysep1660 := !z.EncBinary() + yy2arr1660 := z.EncBasicHandle().StructToArray + var yyq1660 [2]bool + _, _, _ = yysep1660, yyq1660, yy2arr1660 + const yyr1660 bool = false + yyq1660[0] = x.Reason != "" + yyq1660[1] = x.Message != "" + var yynn1660 int + if yyr1660 || yy2arr1660 { + r.EncodeArrayStart(2) + } else { + yynn1660 = 0 + for _, b := range yyq1660 { + if b { + yynn1660++ + } + } + r.EncodeMapStart(yynn1660) + yynn1660 = 0 + } + if yyr1660 || yy2arr1660 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq1660[0] { + yym1662 := z.EncBinary() + _ = yym1662 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Reason)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq1660[0] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("reason")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym1663 := z.EncBinary() + _ = yym1663 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Reason)) + } + } + } + if yyr1660 || yy2arr1660 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq1660[1] { + yym1665 := z.EncBinary() + _ = yym1665 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Message)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq1660[1] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("message")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym1666 := z.EncBinary() + _ = yym1666 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Message)) + } + } + } + if yyr1660 || yy2arr1660 { + 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 + yym1667 := z.DecBinary() + _ = yym1667 + if false { + } else if z.HasExtensions() && z.DecExt(x) { + } else { + yyct1668 := r.ContainerType() + if yyct1668 == codecSelferValueTypeMap1234 { + yyl1668 := r.ReadMapStart() + if yyl1668 == 0 { + z.DecSendContainerState(codecSelfer_containerMapEnd1234) + } else { + x.codecDecodeSelfFromMap(yyl1668, d) + } + } else if yyct1668 == codecSelferValueTypeArray1234 { + yyl1668 := r.ReadArrayStart() + if yyl1668 == 0 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + x.codecDecodeSelfFromArray(yyl1668, 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 yys1669Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys1669Slc + var yyhl1669 bool = l >= 0 + for yyj1669 := 0; ; yyj1669++ { + if yyhl1669 { + if yyj1669 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + z.DecSendContainerState(codecSelfer_containerMapKey1234) + yys1669Slc = r.DecodeBytes(yys1669Slc, true, true) + yys1669 := string(yys1669Slc) + z.DecSendContainerState(codecSelfer_containerMapValue1234) + switch yys1669 { + 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, yys1669) + } // end switch yys1669 + } // end for yyj1669 + 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 yyj1672 int + var yyb1672 bool + var yyhl1672 bool = l >= 0 + yyj1672++ + if yyhl1672 { + yyb1672 = yyj1672 > l + } else { + yyb1672 = r.CheckBreak() + } + if yyb1672 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Reason = "" + } else { + x.Reason = string(r.DecodeString()) + } + yyj1672++ + if yyhl1672 { + yyb1672 = yyj1672 > l + } else { + yyb1672 = r.CheckBreak() + } + if yyb1672 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Message = "" + } else { + x.Message = string(r.DecodeString()) + } + for { + yyj1672++ + if yyhl1672 { + yyb1672 = yyj1672 > l + } else { + yyb1672 = r.CheckBreak() + } + if yyb1672 { + break + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + z.DecStructFieldNotFound(yyj1672-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 { + yym1675 := z.EncBinary() + _ = yym1675 + if false { + } else if z.HasExtensions() && z.EncExt(x) { + } else { + yysep1676 := !z.EncBinary() + yy2arr1676 := z.EncBasicHandle().StructToArray + var yyq1676 [1]bool + _, _, _ = yysep1676, yyq1676, yy2arr1676 + const yyr1676 bool = false + yyq1676[0] = true + var yynn1676 int + if yyr1676 || yy2arr1676 { + r.EncodeArrayStart(1) + } else { + yynn1676 = 0 + for _, b := range yyq1676 { + if b { + yynn1676++ + } + } + r.EncodeMapStart(yynn1676) + yynn1676 = 0 + } + if yyr1676 || yy2arr1676 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq1676[0] { + yy1678 := &x.StartedAt + yym1679 := z.EncBinary() + _ = yym1679 + if false { + } else if z.HasExtensions() && z.EncExt(yy1678) { + } else if yym1679 { + z.EncBinaryMarshal(yy1678) + } else if !yym1679 && z.IsJSONHandle() { + z.EncJSONMarshal(yy1678) + } else { + z.EncFallback(yy1678) + } + } else { + r.EncodeNil() + } + } else { + if yyq1676[0] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("startedAt")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yy1680 := &x.StartedAt + yym1681 := z.EncBinary() + _ = yym1681 + if false { + } else if z.HasExtensions() && z.EncExt(yy1680) { + } else if yym1681 { + z.EncBinaryMarshal(yy1680) + } else if !yym1681 && z.IsJSONHandle() { + z.EncJSONMarshal(yy1680) + } else { + z.EncFallback(yy1680) + } + } + } + if yyr1676 || yy2arr1676 { + 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 + yym1682 := z.DecBinary() + _ = yym1682 + if false { + } else if z.HasExtensions() && z.DecExt(x) { + } else { + yyct1683 := r.ContainerType() + if yyct1683 == codecSelferValueTypeMap1234 { + yyl1683 := r.ReadMapStart() + if yyl1683 == 0 { + z.DecSendContainerState(codecSelfer_containerMapEnd1234) + } else { + x.codecDecodeSelfFromMap(yyl1683, d) + } + } else if yyct1683 == codecSelferValueTypeArray1234 { + yyl1683 := r.ReadArrayStart() + if yyl1683 == 0 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + x.codecDecodeSelfFromArray(yyl1683, 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 yys1684Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys1684Slc + var yyhl1684 bool = l >= 0 + for yyj1684 := 0; ; yyj1684++ { + if yyhl1684 { + if yyj1684 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + z.DecSendContainerState(codecSelfer_containerMapKey1234) + yys1684Slc = r.DecodeBytes(yys1684Slc, true, true) + yys1684 := string(yys1684Slc) + z.DecSendContainerState(codecSelfer_containerMapValue1234) + switch yys1684 { + case "startedAt": + if r.TryDecodeAsNil() { + x.StartedAt = pkg2_unversioned.Time{} + } else { + yyv1685 := &x.StartedAt + yym1686 := z.DecBinary() + _ = yym1686 + if false { + } else if z.HasExtensions() && z.DecExt(yyv1685) { + } else if yym1686 { + z.DecBinaryUnmarshal(yyv1685) + } else if !yym1686 && z.IsJSONHandle() { + z.DecJSONUnmarshal(yyv1685) + } else { + z.DecFallback(yyv1685, false) + } + } + default: + z.DecStructFieldNotFound(-1, yys1684) + } // end switch yys1684 + } // end for yyj1684 + 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 yyj1687 int + var yyb1687 bool + var yyhl1687 bool = l >= 0 + yyj1687++ + if yyhl1687 { + yyb1687 = yyj1687 > l + } else { + yyb1687 = r.CheckBreak() + } + if yyb1687 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.StartedAt = pkg2_unversioned.Time{} + } else { + yyv1688 := &x.StartedAt + yym1689 := z.DecBinary() + _ = yym1689 + if false { + } else if z.HasExtensions() && z.DecExt(yyv1688) { + } else if yym1689 { + z.DecBinaryUnmarshal(yyv1688) + } else if !yym1689 && z.IsJSONHandle() { + z.DecJSONUnmarshal(yyv1688) + } else { + z.DecFallback(yyv1688, false) + } + } + for { + yyj1687++ + if yyhl1687 { + yyb1687 = yyj1687 > l + } else { + yyb1687 = r.CheckBreak() + } + if yyb1687 { + break + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + z.DecStructFieldNotFound(yyj1687-1, "") + } + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) +} + func (x *ContainerStateTerminated) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) @@ -22790,39 +23319,39 @@ func (x *ContainerStateTerminated) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1657 := z.EncBinary() - _ = yym1657 + yym1690 := z.EncBinary() + _ = yym1690 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - 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 { + yysep1691 := !z.EncBinary() + yy2arr1691 := z.EncBasicHandle().StructToArray + var yyq1691 [7]bool + _, _, _ = yysep1691, yyq1691, yy2arr1691 + const yyr1691 bool = false + yyq1691[1] = x.Signal != 0 + yyq1691[2] = x.Reason != "" + yyq1691[3] = x.Message != "" + yyq1691[4] = true + yyq1691[5] = true + yyq1691[6] = x.ContainerID != "" + var yynn1691 int + if yyr1691 || yy2arr1691 { r.EncodeArrayStart(7) } else { - yynn1658 = 1 - for _, b := range yyq1658 { + yynn1691 = 1 + for _, b := range yyq1691 { if b { - yynn1658++ + yynn1691++ } } - r.EncodeMapStart(yynn1658) - yynn1658 = 0 + r.EncodeMapStart(yynn1691) + yynn1691 = 0 } - if yyr1658 || yy2arr1658 { + if yyr1691 || yy2arr1691 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym1660 := z.EncBinary() - _ = yym1660 + yym1693 := z.EncBinary() + _ = yym1693 if false { } else { r.EncodeInt(int64(x.ExitCode)) @@ -22831,18 +23360,18 @@ func (x *ContainerStateTerminated) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("exitCode")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym1661 := z.EncBinary() - _ = yym1661 + yym1694 := z.EncBinary() + _ = yym1694 if false { } else { r.EncodeInt(int64(x.ExitCode)) } } - if yyr1658 || yy2arr1658 { + if yyr1691 || yy2arr1691 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1658[1] { - yym1663 := z.EncBinary() - _ = yym1663 + if yyq1691[1] { + yym1696 := z.EncBinary() + _ = yym1696 if false { } else { r.EncodeInt(int64(x.Signal)) @@ -22851,23 +23380,23 @@ func (x *ContainerStateTerminated) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeInt(0) } } else { - if yyq1658[1] { + if yyq1691[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("signal")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym1664 := z.EncBinary() - _ = yym1664 + yym1697 := z.EncBinary() + _ = yym1697 if false { } else { r.EncodeInt(int64(x.Signal)) } } } - if yyr1658 || yy2arr1658 { + if yyr1691 || yy2arr1691 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1658[2] { - yym1666 := z.EncBinary() - _ = yym1666 + if yyq1691[2] { + yym1699 := z.EncBinary() + _ = yym1699 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Reason)) @@ -22876,23 +23405,23 @@ func (x *ContainerStateTerminated) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq1658[2] { + if yyq1691[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("reason")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym1667 := z.EncBinary() - _ = yym1667 + yym1700 := z.EncBinary() + _ = yym1700 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Reason)) } } } - if yyr1658 || yy2arr1658 { + if yyr1691 || yy2arr1691 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1658[3] { - yym1669 := z.EncBinary() - _ = yym1669 + if yyq1691[3] { + yym1702 := z.EncBinary() + _ = yym1702 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Message)) @@ -22901,97 +23430,97 @@ func (x *ContainerStateTerminated) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq1658[3] { + if yyq1691[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("message")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym1670 := z.EncBinary() - _ = yym1670 + yym1703 := z.EncBinary() + _ = yym1703 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Message)) } } } - if yyr1658 || yy2arr1658 { + if yyr1691 || yy2arr1691 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1658[4] { - yy1672 := &x.StartedAt - yym1673 := z.EncBinary() - _ = yym1673 + if yyq1691[4] { + yy1705 := &x.StartedAt + yym1706 := z.EncBinary() + _ = yym1706 if false { - } else if z.HasExtensions() && z.EncExt(yy1672) { - } else if yym1673 { - z.EncBinaryMarshal(yy1672) - } else if !yym1673 && z.IsJSONHandle() { - z.EncJSONMarshal(yy1672) + } else if z.HasExtensions() && z.EncExt(yy1705) { + } else if yym1706 { + z.EncBinaryMarshal(yy1705) + } else if !yym1706 && z.IsJSONHandle() { + z.EncJSONMarshal(yy1705) } else { - z.EncFallback(yy1672) + z.EncFallback(yy1705) } } else { r.EncodeNil() } } else { - if yyq1658[4] { + if yyq1691[4] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("startedAt")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy1674 := &x.StartedAt - yym1675 := z.EncBinary() - _ = yym1675 + yy1707 := &x.StartedAt + yym1708 := z.EncBinary() + _ = yym1708 if false { - } else if z.HasExtensions() && z.EncExt(yy1674) { - } else if yym1675 { - z.EncBinaryMarshal(yy1674) - } else if !yym1675 && z.IsJSONHandle() { - z.EncJSONMarshal(yy1674) + } else if z.HasExtensions() && z.EncExt(yy1707) { + } else if yym1708 { + z.EncBinaryMarshal(yy1707) + } else if !yym1708 && z.IsJSONHandle() { + z.EncJSONMarshal(yy1707) } else { - z.EncFallback(yy1674) + z.EncFallback(yy1707) } } } - if yyr1658 || yy2arr1658 { + if yyr1691 || yy2arr1691 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1658[5] { - yy1677 := &x.FinishedAt - yym1678 := z.EncBinary() - _ = yym1678 + if yyq1691[5] { + yy1710 := &x.FinishedAt + yym1711 := z.EncBinary() + _ = yym1711 if false { - } else if z.HasExtensions() && z.EncExt(yy1677) { - } else if yym1678 { - z.EncBinaryMarshal(yy1677) - } else if !yym1678 && z.IsJSONHandle() { - z.EncJSONMarshal(yy1677) + } else if z.HasExtensions() && z.EncExt(yy1710) { + } else if yym1711 { + z.EncBinaryMarshal(yy1710) + } else if !yym1711 && z.IsJSONHandle() { + z.EncJSONMarshal(yy1710) } else { - z.EncFallback(yy1677) + z.EncFallback(yy1710) } } else { r.EncodeNil() } } else { - if yyq1658[5] { + if yyq1691[5] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("finishedAt")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy1679 := &x.FinishedAt - yym1680 := z.EncBinary() - _ = yym1680 + yy1712 := &x.FinishedAt + yym1713 := z.EncBinary() + _ = yym1713 if false { - } else if z.HasExtensions() && z.EncExt(yy1679) { - } else if yym1680 { - z.EncBinaryMarshal(yy1679) - } else if !yym1680 && z.IsJSONHandle() { - z.EncJSONMarshal(yy1679) + } else if z.HasExtensions() && z.EncExt(yy1712) { + } else if yym1713 { + z.EncBinaryMarshal(yy1712) + } else if !yym1713 && z.IsJSONHandle() { + z.EncJSONMarshal(yy1712) } else { - z.EncFallback(yy1679) + z.EncFallback(yy1712) } } } - if yyr1658 || yy2arr1658 { + if yyr1691 || yy2arr1691 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1658[6] { - yym1682 := z.EncBinary() - _ = yym1682 + if yyq1691[6] { + yym1715 := z.EncBinary() + _ = yym1715 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.ContainerID)) @@ -23000,19 +23529,19 @@ func (x *ContainerStateTerminated) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq1658[6] { + if yyq1691[6] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("containerID")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym1683 := z.EncBinary() - _ = yym1683 + yym1716 := z.EncBinary() + _ = yym1716 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.ContainerID)) } } } - if yyr1658 || yy2arr1658 { + if yyr1691 || yy2arr1691 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -23025,25 +23554,25 @@ func (x *ContainerStateTerminated) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1684 := z.DecBinary() - _ = yym1684 + yym1717 := z.DecBinary() + _ = yym1717 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct1685 := r.ContainerType() - if yyct1685 == codecSelferValueTypeMap1234 { - yyl1685 := r.ReadMapStart() - if yyl1685 == 0 { + yyct1718 := r.ContainerType() + if yyct1718 == codecSelferValueTypeMap1234 { + yyl1718 := r.ReadMapStart() + if yyl1718 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl1685, d) + x.codecDecodeSelfFromMap(yyl1718, d) } - } else if yyct1685 == codecSelferValueTypeArray1234 { - yyl1685 := r.ReadArrayStart() - if yyl1685 == 0 { + } else if yyct1718 == codecSelferValueTypeArray1234 { + yyl1718 := r.ReadArrayStart() + if yyl1718 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl1685, d) + x.codecDecodeSelfFromArray(yyl1718, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -23055,12 +23584,12 @@ func (x *ContainerStateTerminated) codecDecodeSelfFromMap(l int, d *codec1978.De var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys1686Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys1686Slc - var yyhl1686 bool = l >= 0 - for yyj1686 := 0; ; yyj1686++ { - if yyhl1686 { - if yyj1686 >= l { + var yys1719Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys1719Slc + var yyhl1719 bool = l >= 0 + for yyj1719 := 0; ; yyj1719++ { + if yyhl1719 { + if yyj1719 >= l { break } } else { @@ -23069,10 +23598,10 @@ func (x *ContainerStateTerminated) codecDecodeSelfFromMap(l int, d *codec1978.De } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys1686Slc = r.DecodeBytes(yys1686Slc, true, true) - yys1686 := string(yys1686Slc) + yys1719Slc = r.DecodeBytes(yys1719Slc, true, true) + yys1719 := string(yys1719Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys1686 { + switch yys1719 { case "exitCode": if r.TryDecodeAsNil() { x.ExitCode = 0 @@ -23101,34 +23630,34 @@ func (x *ContainerStateTerminated) codecDecodeSelfFromMap(l int, d *codec1978.De if r.TryDecodeAsNil() { x.StartedAt = pkg2_unversioned.Time{} } else { - yyv1691 := &x.StartedAt - yym1692 := z.DecBinary() - _ = yym1692 + yyv1724 := &x.StartedAt + yym1725 := z.DecBinary() + _ = yym1725 if false { - } else if z.HasExtensions() && z.DecExt(yyv1691) { - } else if yym1692 { - z.DecBinaryUnmarshal(yyv1691) - } else if !yym1692 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv1691) + } else if z.HasExtensions() && z.DecExt(yyv1724) { + } else if yym1725 { + z.DecBinaryUnmarshal(yyv1724) + } else if !yym1725 && z.IsJSONHandle() { + z.DecJSONUnmarshal(yyv1724) } else { - z.DecFallback(yyv1691, false) + z.DecFallback(yyv1724, false) } } case "finishedAt": if r.TryDecodeAsNil() { x.FinishedAt = pkg2_unversioned.Time{} } else { - yyv1693 := &x.FinishedAt - yym1694 := z.DecBinary() - _ = yym1694 + yyv1726 := &x.FinishedAt + yym1727 := z.DecBinary() + _ = yym1727 if false { - } else if z.HasExtensions() && z.DecExt(yyv1693) { - } else if yym1694 { - z.DecBinaryUnmarshal(yyv1693) - } else if !yym1694 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv1693) + } else if z.HasExtensions() && z.DecExt(yyv1726) { + } else if yym1727 { + z.DecBinaryUnmarshal(yyv1726) + } else if !yym1727 && z.IsJSONHandle() { + z.DecJSONUnmarshal(yyv1726) } else { - z.DecFallback(yyv1693, false) + z.DecFallback(yyv1726, false) } } case "containerID": @@ -23138,9 +23667,9 @@ func (x *ContainerStateTerminated) codecDecodeSelfFromMap(l int, d *codec1978.De x.ContainerID = string(r.DecodeString()) } default: - z.DecStructFieldNotFound(-1, yys1686) - } // end switch yys1686 - } // end for yyj1686 + z.DecStructFieldNotFound(-1, yys1719) + } // end switch yys1719 + } // end for yyj1719 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -23148,16 +23677,16 @@ func (x *ContainerStateTerminated) codecDecodeSelfFromArray(l int, d *codec1978. var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj1696 int - var yyb1696 bool - var yyhl1696 bool = l >= 0 - yyj1696++ - if yyhl1696 { - yyb1696 = yyj1696 > l + var yyj1729 int + var yyb1729 bool + var yyhl1729 bool = l >= 0 + yyj1729++ + if yyhl1729 { + yyb1729 = yyj1729 > l } else { - yyb1696 = r.CheckBreak() + yyb1729 = r.CheckBreak() } - if yyb1696 { + if yyb1729 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -23167,13 +23696,13 @@ func (x *ContainerStateTerminated) codecDecodeSelfFromArray(l int, d *codec1978. } else { x.ExitCode = int32(r.DecodeInt(32)) } - yyj1696++ - if yyhl1696 { - yyb1696 = yyj1696 > l + yyj1729++ + if yyhl1729 { + yyb1729 = yyj1729 > l } else { - yyb1696 = r.CheckBreak() + yyb1729 = r.CheckBreak() } - if yyb1696 { + if yyb1729 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -23183,13 +23712,13 @@ func (x *ContainerStateTerminated) codecDecodeSelfFromArray(l int, d *codec1978. } else { x.Signal = int32(r.DecodeInt(32)) } - yyj1696++ - if yyhl1696 { - yyb1696 = yyj1696 > l + yyj1729++ + if yyhl1729 { + yyb1729 = yyj1729 > l } else { - yyb1696 = r.CheckBreak() + yyb1729 = r.CheckBreak() } - if yyb1696 { + if yyb1729 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -23199,13 +23728,13 @@ func (x *ContainerStateTerminated) codecDecodeSelfFromArray(l int, d *codec1978. } else { x.Reason = string(r.DecodeString()) } - yyj1696++ - if yyhl1696 { - yyb1696 = yyj1696 > l + yyj1729++ + if yyhl1729 { + yyb1729 = yyj1729 > l } else { - yyb1696 = r.CheckBreak() + yyb1729 = r.CheckBreak() } - if yyb1696 { + if yyb1729 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -23215,13 +23744,13 @@ func (x *ContainerStateTerminated) codecDecodeSelfFromArray(l int, d *codec1978. } else { x.Message = string(r.DecodeString()) } - yyj1696++ - if yyhl1696 { - yyb1696 = yyj1696 > l + yyj1729++ + if yyhl1729 { + yyb1729 = yyj1729 > l } else { - yyb1696 = r.CheckBreak() + yyb1729 = r.CheckBreak() } - if yyb1696 { + if yyb1729 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -23229,26 +23758,26 @@ func (x *ContainerStateTerminated) codecDecodeSelfFromArray(l int, d *codec1978. if r.TryDecodeAsNil() { x.StartedAt = pkg2_unversioned.Time{} } else { - yyv1701 := &x.StartedAt - yym1702 := z.DecBinary() - _ = yym1702 + yyv1734 := &x.StartedAt + yym1735 := z.DecBinary() + _ = yym1735 if false { - } else if z.HasExtensions() && z.DecExt(yyv1701) { - } else if yym1702 { - z.DecBinaryUnmarshal(yyv1701) - } else if !yym1702 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv1701) + } else if z.HasExtensions() && z.DecExt(yyv1734) { + } else if yym1735 { + z.DecBinaryUnmarshal(yyv1734) + } else if !yym1735 && z.IsJSONHandle() { + z.DecJSONUnmarshal(yyv1734) } else { - z.DecFallback(yyv1701, false) + z.DecFallback(yyv1734, false) } } - yyj1696++ - if yyhl1696 { - yyb1696 = yyj1696 > l + yyj1729++ + if yyhl1729 { + yyb1729 = yyj1729 > l } else { - yyb1696 = r.CheckBreak() + yyb1729 = r.CheckBreak() } - if yyb1696 { + if yyb1729 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -23256,26 +23785,26 @@ func (x *ContainerStateTerminated) codecDecodeSelfFromArray(l int, d *codec1978. if r.TryDecodeAsNil() { x.FinishedAt = pkg2_unversioned.Time{} } else { - yyv1703 := &x.FinishedAt - yym1704 := z.DecBinary() - _ = yym1704 + yyv1736 := &x.FinishedAt + yym1737 := z.DecBinary() + _ = yym1737 if false { - } else if z.HasExtensions() && z.DecExt(yyv1703) { - } else if yym1704 { - z.DecBinaryUnmarshal(yyv1703) - } else if !yym1704 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv1703) + } else if z.HasExtensions() && z.DecExt(yyv1736) { + } else if yym1737 { + z.DecBinaryUnmarshal(yyv1736) + } else if !yym1737 && z.IsJSONHandle() { + z.DecJSONUnmarshal(yyv1736) } else { - z.DecFallback(yyv1703, false) + z.DecFallback(yyv1736, false) } } - yyj1696++ - if yyhl1696 { - yyb1696 = yyj1696 > l + yyj1729++ + if yyhl1729 { + yyb1729 = yyj1729 > l } else { - yyb1696 = r.CheckBreak() + yyb1729 = r.CheckBreak() } - if yyb1696 { + if yyb1729 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -23286,17 +23815,17 @@ func (x *ContainerStateTerminated) codecDecodeSelfFromArray(l int, d *codec1978. x.ContainerID = string(r.DecodeString()) } for { - yyj1696++ - if yyhl1696 { - yyb1696 = yyj1696 > l + yyj1729++ + if yyhl1729 { + yyb1729 = yyj1729 > l } else { - yyb1696 = r.CheckBreak() + yyb1729 = r.CheckBreak() } - if yyb1696 { + if yyb1729 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj1696-1, "") + z.DecStructFieldNotFound(yyj1729-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -23308,35 +23837,35 @@ func (x *ContainerState) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1706 := z.EncBinary() - _ = yym1706 + yym1739 := z.EncBinary() + _ = yym1739 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - 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 { + yysep1740 := !z.EncBinary() + yy2arr1740 := z.EncBasicHandle().StructToArray + var yyq1740 [3]bool + _, _, _ = yysep1740, yyq1740, yy2arr1740 + const yyr1740 bool = false + yyq1740[0] = x.Waiting != nil + yyq1740[1] = x.Running != nil + yyq1740[2] = x.Terminated != nil + var yynn1740 int + if yyr1740 || yy2arr1740 { r.EncodeArrayStart(3) } else { - yynn1707 = 0 - for _, b := range yyq1707 { + yynn1740 = 0 + for _, b := range yyq1740 { if b { - yynn1707++ + yynn1740++ } } - r.EncodeMapStart(yynn1707) - yynn1707 = 0 + r.EncodeMapStart(yynn1740) + yynn1740 = 0 } - if yyr1707 || yy2arr1707 { + if yyr1740 || yy2arr1740 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1707[0] { + if yyq1740[0] { if x.Waiting == nil { r.EncodeNil() } else { @@ -23346,7 +23875,7 @@ func (x *ContainerState) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq1707[0] { + if yyq1740[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("waiting")) z.EncSendContainerState(codecSelfer_containerMapValue1234) @@ -23357,9 +23886,9 @@ func (x *ContainerState) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr1707 || yy2arr1707 { + if yyr1740 || yy2arr1740 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1707[1] { + if yyq1740[1] { if x.Running == nil { r.EncodeNil() } else { @@ -23369,7 +23898,7 @@ func (x *ContainerState) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq1707[1] { + if yyq1740[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("running")) z.EncSendContainerState(codecSelfer_containerMapValue1234) @@ -23380,9 +23909,9 @@ func (x *ContainerState) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr1707 || yy2arr1707 { + if yyr1740 || yy2arr1740 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1707[2] { + if yyq1740[2] { if x.Terminated == nil { r.EncodeNil() } else { @@ -23392,7 +23921,7 @@ func (x *ContainerState) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq1707[2] { + if yyq1740[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("terminated")) z.EncSendContainerState(codecSelfer_containerMapValue1234) @@ -23403,7 +23932,7 @@ func (x *ContainerState) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr1707 || yy2arr1707 { + if yyr1740 || yy2arr1740 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -23416,25 +23945,25 @@ func (x *ContainerState) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1711 := z.DecBinary() - _ = yym1711 + yym1744 := z.DecBinary() + _ = yym1744 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct1712 := r.ContainerType() - if yyct1712 == codecSelferValueTypeMap1234 { - yyl1712 := r.ReadMapStart() - if yyl1712 == 0 { + yyct1745 := r.ContainerType() + if yyct1745 == codecSelferValueTypeMap1234 { + yyl1745 := r.ReadMapStart() + if yyl1745 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl1712, d) + x.codecDecodeSelfFromMap(yyl1745, d) } - } else if yyct1712 == codecSelferValueTypeArray1234 { - yyl1712 := r.ReadArrayStart() - if yyl1712 == 0 { + } else if yyct1745 == codecSelferValueTypeArray1234 { + yyl1745 := r.ReadArrayStart() + if yyl1745 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl1712, d) + x.codecDecodeSelfFromArray(yyl1745, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -23446,12 +23975,12 @@ func (x *ContainerState) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys1713Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys1713Slc - var yyhl1713 bool = l >= 0 - for yyj1713 := 0; ; yyj1713++ { - if yyhl1713 { - if yyj1713 >= l { + var yys1746Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys1746Slc + var yyhl1746 bool = l >= 0 + for yyj1746 := 0; ; yyj1746++ { + if yyhl1746 { + if yyj1746 >= l { break } } else { @@ -23460,10 +23989,10 @@ func (x *ContainerState) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys1713Slc = r.DecodeBytes(yys1713Slc, true, true) - yys1713 := string(yys1713Slc) + yys1746Slc = r.DecodeBytes(yys1746Slc, true, true) + yys1746 := string(yys1746Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys1713 { + switch yys1746 { case "waiting": if r.TryDecodeAsNil() { if x.Waiting != nil { @@ -23498,9 +24027,9 @@ func (x *ContainerState) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { x.Terminated.CodecDecodeSelf(d) } default: - z.DecStructFieldNotFound(-1, yys1713) - } // end switch yys1713 - } // end for yyj1713 + z.DecStructFieldNotFound(-1, yys1746) + } // end switch yys1746 + } // end for yyj1746 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -23508,16 +24037,16 @@ func (x *ContainerState) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj1717 int - var yyb1717 bool - var yyhl1717 bool = l >= 0 - yyj1717++ - if yyhl1717 { - yyb1717 = yyj1717 > l + var yyj1750 int + var yyb1750 bool + var yyhl1750 bool = l >= 0 + yyj1750++ + if yyhl1750 { + yyb1750 = yyj1750 > l } else { - yyb1717 = r.CheckBreak() + yyb1750 = r.CheckBreak() } - if yyb1717 { + if yyb1750 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -23532,13 +24061,13 @@ func (x *ContainerState) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } x.Waiting.CodecDecodeSelf(d) } - yyj1717++ - if yyhl1717 { - yyb1717 = yyj1717 > l + yyj1750++ + if yyhl1750 { + yyb1750 = yyj1750 > l } else { - yyb1717 = r.CheckBreak() + yyb1750 = r.CheckBreak() } - if yyb1717 { + if yyb1750 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -23553,13 +24082,13 @@ func (x *ContainerState) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } x.Running.CodecDecodeSelf(d) } - yyj1717++ - if yyhl1717 { - yyb1717 = yyj1717 > l + yyj1750++ + if yyhl1750 { + yyb1750 = yyj1750 > l } else { - yyb1717 = r.CheckBreak() + yyb1750 = r.CheckBreak() } - if yyb1717 { + if yyb1750 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -23575,17 +24104,17 @@ func (x *ContainerState) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { x.Terminated.CodecDecodeSelf(d) } for { - yyj1717++ - if yyhl1717 { - yyb1717 = yyj1717 > l + yyj1750++ + if yyhl1750 { + yyb1750 = yyj1750 > l } else { - yyb1717 = r.CheckBreak() + yyb1750 = r.CheckBreak() } - if yyb1717 { + if yyb1750 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj1717-1, "") + z.DecStructFieldNotFound(yyj1750-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -23597,36 +24126,36 @@ func (x *ContainerStatus) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1721 := z.EncBinary() - _ = yym1721 + yym1754 := z.EncBinary() + _ = yym1754 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - 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 { + yysep1755 := !z.EncBinary() + yy2arr1755 := z.EncBasicHandle().StructToArray + var yyq1755 [8]bool + _, _, _ = yysep1755, yyq1755, yy2arr1755 + const yyr1755 bool = false + yyq1755[1] = true + yyq1755[2] = true + yyq1755[7] = x.ContainerID != "" + var yynn1755 int + if yyr1755 || yy2arr1755 { r.EncodeArrayStart(8) } else { - yynn1722 = 5 - for _, b := range yyq1722 { + yynn1755 = 5 + for _, b := range yyq1755 { if b { - yynn1722++ + yynn1755++ } } - r.EncodeMapStart(yynn1722) - yynn1722 = 0 + r.EncodeMapStart(yynn1755) + yynn1755 = 0 } - if yyr1722 || yy2arr1722 { + if yyr1755 || yy2arr1755 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym1724 := z.EncBinary() - _ = yym1724 + yym1757 := z.EncBinary() + _ = yym1757 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Name)) @@ -23635,51 +24164,51 @@ func (x *ContainerStatus) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("name")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym1725 := z.EncBinary() - _ = yym1725 + yym1758 := z.EncBinary() + _ = yym1758 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Name)) } } - if yyr1722 || yy2arr1722 { + if yyr1755 || yy2arr1755 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1722[1] { - yy1727 := &x.State - yy1727.CodecEncodeSelf(e) + if yyq1755[1] { + yy1760 := &x.State + yy1760.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { - if yyq1722[1] { + if yyq1755[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("state")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy1728 := &x.State - yy1728.CodecEncodeSelf(e) + yy1761 := &x.State + yy1761.CodecEncodeSelf(e) } } - if yyr1722 || yy2arr1722 { + if yyr1755 || yy2arr1755 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1722[2] { - yy1730 := &x.LastTerminationState - yy1730.CodecEncodeSelf(e) + if yyq1755[2] { + yy1763 := &x.LastTerminationState + yy1763.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { - if yyq1722[2] { + if yyq1755[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("lastState")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy1731 := &x.LastTerminationState - yy1731.CodecEncodeSelf(e) + yy1764 := &x.LastTerminationState + yy1764.CodecEncodeSelf(e) } } - if yyr1722 || yy2arr1722 { + if yyr1755 || yy2arr1755 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym1733 := z.EncBinary() - _ = yym1733 + yym1766 := z.EncBinary() + _ = yym1766 if false { } else { r.EncodeBool(bool(x.Ready)) @@ -23688,17 +24217,17 @@ func (x *ContainerStatus) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("ready")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym1734 := z.EncBinary() - _ = yym1734 + yym1767 := z.EncBinary() + _ = yym1767 if false { } else { r.EncodeBool(bool(x.Ready)) } } - if yyr1722 || yy2arr1722 { + if yyr1755 || yy2arr1755 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym1736 := z.EncBinary() - _ = yym1736 + yym1769 := z.EncBinary() + _ = yym1769 if false { } else { r.EncodeInt(int64(x.RestartCount)) @@ -23707,17 +24236,17 @@ func (x *ContainerStatus) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("restartCount")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym1737 := z.EncBinary() - _ = yym1737 + yym1770 := z.EncBinary() + _ = yym1770 if false { } else { r.EncodeInt(int64(x.RestartCount)) } } - if yyr1722 || yy2arr1722 { + if yyr1755 || yy2arr1755 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym1739 := z.EncBinary() - _ = yym1739 + yym1772 := z.EncBinary() + _ = yym1772 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Image)) @@ -23726,17 +24255,17 @@ func (x *ContainerStatus) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("image")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym1740 := z.EncBinary() - _ = yym1740 + yym1773 := z.EncBinary() + _ = yym1773 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Image)) } } - if yyr1722 || yy2arr1722 { + if yyr1755 || yy2arr1755 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym1742 := z.EncBinary() - _ = yym1742 + yym1775 := z.EncBinary() + _ = yym1775 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.ImageID)) @@ -23745,18 +24274,18 @@ func (x *ContainerStatus) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("imageID")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym1743 := z.EncBinary() - _ = yym1743 + yym1776 := z.EncBinary() + _ = yym1776 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.ImageID)) } } - if yyr1722 || yy2arr1722 { + if yyr1755 || yy2arr1755 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1722[7] { - yym1745 := z.EncBinary() - _ = yym1745 + if yyq1755[7] { + yym1778 := z.EncBinary() + _ = yym1778 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.ContainerID)) @@ -23765,19 +24294,19 @@ func (x *ContainerStatus) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq1722[7] { + if yyq1755[7] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("containerID")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym1746 := z.EncBinary() - _ = yym1746 + yym1779 := z.EncBinary() + _ = yym1779 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.ContainerID)) } } } - if yyr1722 || yy2arr1722 { + if yyr1755 || yy2arr1755 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -23790,25 +24319,25 @@ func (x *ContainerStatus) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1747 := z.DecBinary() - _ = yym1747 + yym1780 := z.DecBinary() + _ = yym1780 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct1748 := r.ContainerType() - if yyct1748 == codecSelferValueTypeMap1234 { - yyl1748 := r.ReadMapStart() - if yyl1748 == 0 { + yyct1781 := r.ContainerType() + if yyct1781 == codecSelferValueTypeMap1234 { + yyl1781 := r.ReadMapStart() + if yyl1781 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl1748, d) + x.codecDecodeSelfFromMap(yyl1781, d) } - } else if yyct1748 == codecSelferValueTypeArray1234 { - yyl1748 := r.ReadArrayStart() - if yyl1748 == 0 { + } else if yyct1781 == codecSelferValueTypeArray1234 { + yyl1781 := r.ReadArrayStart() + if yyl1781 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl1748, d) + x.codecDecodeSelfFromArray(yyl1781, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -23820,12 +24349,12 @@ func (x *ContainerStatus) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys1749Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys1749Slc - var yyhl1749 bool = l >= 0 - for yyj1749 := 0; ; yyj1749++ { - if yyhl1749 { - if yyj1749 >= l { + var yys1782Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys1782Slc + var yyhl1782 bool = l >= 0 + for yyj1782 := 0; ; yyj1782++ { + if yyhl1782 { + if yyj1782 >= l { break } } else { @@ -23834,10 +24363,10 @@ func (x *ContainerStatus) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys1749Slc = r.DecodeBytes(yys1749Slc, true, true) - yys1749 := string(yys1749Slc) + yys1782Slc = r.DecodeBytes(yys1782Slc, true, true) + yys1782 := string(yys1782Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys1749 { + switch yys1782 { case "name": if r.TryDecodeAsNil() { x.Name = "" @@ -23848,15 +24377,15 @@ func (x *ContainerStatus) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.State = ContainerState{} } else { - yyv1751 := &x.State - yyv1751.CodecDecodeSelf(d) + yyv1784 := &x.State + yyv1784.CodecDecodeSelf(d) } case "lastState": if r.TryDecodeAsNil() { x.LastTerminationState = ContainerState{} } else { - yyv1752 := &x.LastTerminationState - yyv1752.CodecDecodeSelf(d) + yyv1785 := &x.LastTerminationState + yyv1785.CodecDecodeSelf(d) } case "ready": if r.TryDecodeAsNil() { @@ -23889,9 +24418,9 @@ func (x *ContainerStatus) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { x.ContainerID = string(r.DecodeString()) } default: - z.DecStructFieldNotFound(-1, yys1749) - } // end switch yys1749 - } // end for yyj1749 + z.DecStructFieldNotFound(-1, yys1782) + } // end switch yys1782 + } // end for yyj1782 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -23899,16 +24428,16 @@ func (x *ContainerStatus) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj1758 int - var yyb1758 bool - var yyhl1758 bool = l >= 0 - yyj1758++ - if yyhl1758 { - yyb1758 = yyj1758 > l + var yyj1791 int + var yyb1791 bool + var yyhl1791 bool = l >= 0 + yyj1791++ + if yyhl1791 { + yyb1791 = yyj1791 > l } else { - yyb1758 = r.CheckBreak() + yyb1791 = r.CheckBreak() } - if yyb1758 { + if yyb1791 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -23918,13 +24447,13 @@ func (x *ContainerStatus) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) } else { x.Name = string(r.DecodeString()) } - yyj1758++ - if yyhl1758 { - yyb1758 = yyj1758 > l + yyj1791++ + if yyhl1791 { + yyb1791 = yyj1791 > l } else { - yyb1758 = r.CheckBreak() + yyb1791 = r.CheckBreak() } - if yyb1758 { + if yyb1791 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -23932,16 +24461,16 @@ func (x *ContainerStatus) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) if r.TryDecodeAsNil() { x.State = ContainerState{} } else { - yyv1760 := &x.State - yyv1760.CodecDecodeSelf(d) + yyv1793 := &x.State + yyv1793.CodecDecodeSelf(d) } - yyj1758++ - if yyhl1758 { - yyb1758 = yyj1758 > l + yyj1791++ + if yyhl1791 { + yyb1791 = yyj1791 > l } else { - yyb1758 = r.CheckBreak() + yyb1791 = r.CheckBreak() } - if yyb1758 { + if yyb1791 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -23949,16 +24478,16 @@ func (x *ContainerStatus) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) if r.TryDecodeAsNil() { x.LastTerminationState = ContainerState{} } else { - yyv1761 := &x.LastTerminationState - yyv1761.CodecDecodeSelf(d) + yyv1794 := &x.LastTerminationState + yyv1794.CodecDecodeSelf(d) } - yyj1758++ - if yyhl1758 { - yyb1758 = yyj1758 > l + yyj1791++ + if yyhl1791 { + yyb1791 = yyj1791 > l } else { - yyb1758 = r.CheckBreak() + yyb1791 = r.CheckBreak() } - if yyb1758 { + if yyb1791 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -23968,13 +24497,13 @@ func (x *ContainerStatus) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) } else { x.Ready = bool(r.DecodeBool()) } - yyj1758++ - if yyhl1758 { - yyb1758 = yyj1758 > l + yyj1791++ + if yyhl1791 { + yyb1791 = yyj1791 > l } else { - yyb1758 = r.CheckBreak() + yyb1791 = r.CheckBreak() } - if yyb1758 { + if yyb1791 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -23984,13 +24513,13 @@ func (x *ContainerStatus) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) } else { x.RestartCount = int32(r.DecodeInt(32)) } - yyj1758++ - if yyhl1758 { - yyb1758 = yyj1758 > l + yyj1791++ + if yyhl1791 { + yyb1791 = yyj1791 > l } else { - yyb1758 = r.CheckBreak() + yyb1791 = r.CheckBreak() } - if yyb1758 { + if yyb1791 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -24000,13 +24529,13 @@ func (x *ContainerStatus) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) } else { x.Image = string(r.DecodeString()) } - yyj1758++ - if yyhl1758 { - yyb1758 = yyj1758 > l + yyj1791++ + if yyhl1791 { + yyb1791 = yyj1791 > l } else { - yyb1758 = r.CheckBreak() + yyb1791 = r.CheckBreak() } - if yyb1758 { + if yyb1791 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -24016,13 +24545,13 @@ func (x *ContainerStatus) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) } else { x.ImageID = string(r.DecodeString()) } - yyj1758++ - if yyhl1758 { - yyb1758 = yyj1758 > l + yyj1791++ + if yyhl1791 { + yyb1791 = yyj1791 > l } else { - yyb1758 = r.CheckBreak() + yyb1791 = r.CheckBreak() } - if yyb1758 { + if yyb1791 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -24033,17 +24562,17 @@ func (x *ContainerStatus) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) x.ContainerID = string(r.DecodeString()) } for { - yyj1758++ - if yyhl1758 { - yyb1758 = yyj1758 > l + yyj1791++ + if yyhl1791 { + yyb1791 = yyj1791 > l } else { - yyb1758 = r.CheckBreak() + yyb1791 = r.CheckBreak() } - if yyb1758 { + if yyb1791 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj1758-1, "") + z.DecStructFieldNotFound(yyj1791-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -24052,8 +24581,8 @@ func (x PodPhase) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r - yym1767 := z.EncBinary() - _ = yym1767 + yym1800 := z.EncBinary() + _ = yym1800 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { @@ -24065,8 +24594,8 @@ func (x *PodPhase) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1768 := z.DecBinary() - _ = yym1768 + yym1801 := z.DecBinary() + _ = yym1801 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { @@ -24078,8 +24607,8 @@ func (x PodConditionType) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r - yym1769 := z.EncBinary() - _ = yym1769 + yym1802 := z.EncBinary() + _ = yym1802 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { @@ -24091,8 +24620,8 @@ func (x *PodConditionType) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1770 := z.DecBinary() - _ = yym1770 + yym1803 := z.DecBinary() + _ = yym1803 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { @@ -24107,34 +24636,34 @@ func (x *PodCondition) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1771 := z.EncBinary() - _ = yym1771 + yym1804 := z.EncBinary() + _ = yym1804 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - 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 { + yysep1805 := !z.EncBinary() + yy2arr1805 := z.EncBasicHandle().StructToArray + var yyq1805 [6]bool + _, _, _ = yysep1805, yyq1805, yy2arr1805 + const yyr1805 bool = false + yyq1805[2] = true + yyq1805[3] = true + yyq1805[4] = x.Reason != "" + yyq1805[5] = x.Message != "" + var yynn1805 int + if yyr1805 || yy2arr1805 { r.EncodeArrayStart(6) } else { - yynn1772 = 2 - for _, b := range yyq1772 { + yynn1805 = 2 + for _, b := range yyq1805 { if b { - yynn1772++ + yynn1805++ } } - r.EncodeMapStart(yynn1772) - yynn1772 = 0 + r.EncodeMapStart(yynn1805) + yynn1805 = 0 } - if yyr1772 || yy2arr1772 { + if yyr1805 || yy2arr1805 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) x.Type.CodecEncodeSelf(e) } else { @@ -24143,7 +24672,7 @@ func (x *PodCondition) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapValue1234) x.Type.CodecEncodeSelf(e) } - if yyr1772 || yy2arr1772 { + if yyr1805 || yy2arr1805 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) x.Status.CodecEncodeSelf(e) } else { @@ -24152,85 +24681,85 @@ func (x *PodCondition) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapValue1234) x.Status.CodecEncodeSelf(e) } - if yyr1772 || yy2arr1772 { + if yyr1805 || yy2arr1805 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1772[2] { - yy1776 := &x.LastProbeTime - yym1777 := z.EncBinary() - _ = yym1777 + if yyq1805[2] { + yy1809 := &x.LastProbeTime + yym1810 := z.EncBinary() + _ = yym1810 if false { - } else if z.HasExtensions() && z.EncExt(yy1776) { - } else if yym1777 { - z.EncBinaryMarshal(yy1776) - } else if !yym1777 && z.IsJSONHandle() { - z.EncJSONMarshal(yy1776) + } else if z.HasExtensions() && z.EncExt(yy1809) { + } else if yym1810 { + z.EncBinaryMarshal(yy1809) + } else if !yym1810 && z.IsJSONHandle() { + z.EncJSONMarshal(yy1809) } else { - z.EncFallback(yy1776) + z.EncFallback(yy1809) } } else { r.EncodeNil() } } else { - if yyq1772[2] { + if yyq1805[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("lastProbeTime")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy1778 := &x.LastProbeTime - yym1779 := z.EncBinary() - _ = yym1779 + yy1811 := &x.LastProbeTime + yym1812 := z.EncBinary() + _ = yym1812 if false { - } else if z.HasExtensions() && z.EncExt(yy1778) { - } else if yym1779 { - z.EncBinaryMarshal(yy1778) - } else if !yym1779 && z.IsJSONHandle() { - z.EncJSONMarshal(yy1778) + } else if z.HasExtensions() && z.EncExt(yy1811) { + } else if yym1812 { + z.EncBinaryMarshal(yy1811) + } else if !yym1812 && z.IsJSONHandle() { + z.EncJSONMarshal(yy1811) } else { - z.EncFallback(yy1778) + z.EncFallback(yy1811) } } } - if yyr1772 || yy2arr1772 { + if yyr1805 || yy2arr1805 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1772[3] { - yy1781 := &x.LastTransitionTime - yym1782 := z.EncBinary() - _ = yym1782 + if yyq1805[3] { + yy1814 := &x.LastTransitionTime + yym1815 := z.EncBinary() + _ = yym1815 if false { - } else if z.HasExtensions() && z.EncExt(yy1781) { - } else if yym1782 { - z.EncBinaryMarshal(yy1781) - } else if !yym1782 && z.IsJSONHandle() { - z.EncJSONMarshal(yy1781) + } else if z.HasExtensions() && z.EncExt(yy1814) { + } else if yym1815 { + z.EncBinaryMarshal(yy1814) + } else if !yym1815 && z.IsJSONHandle() { + z.EncJSONMarshal(yy1814) } else { - z.EncFallback(yy1781) + z.EncFallback(yy1814) } } else { r.EncodeNil() } } else { - if yyq1772[3] { + if yyq1805[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("lastTransitionTime")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy1783 := &x.LastTransitionTime - yym1784 := z.EncBinary() - _ = yym1784 + yy1816 := &x.LastTransitionTime + yym1817 := z.EncBinary() + _ = yym1817 if false { - } else if z.HasExtensions() && z.EncExt(yy1783) { - } else if yym1784 { - z.EncBinaryMarshal(yy1783) - } else if !yym1784 && z.IsJSONHandle() { - z.EncJSONMarshal(yy1783) + } else if z.HasExtensions() && z.EncExt(yy1816) { + } else if yym1817 { + z.EncBinaryMarshal(yy1816) + } else if !yym1817 && z.IsJSONHandle() { + z.EncJSONMarshal(yy1816) } else { - z.EncFallback(yy1783) + z.EncFallback(yy1816) } } } - if yyr1772 || yy2arr1772 { + if yyr1805 || yy2arr1805 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1772[4] { - yym1786 := z.EncBinary() - _ = yym1786 + if yyq1805[4] { + yym1819 := z.EncBinary() + _ = yym1819 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Reason)) @@ -24239,23 +24768,23 @@ func (x *PodCondition) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq1772[4] { + if yyq1805[4] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("reason")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym1787 := z.EncBinary() - _ = yym1787 + yym1820 := z.EncBinary() + _ = yym1820 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Reason)) } } } - if yyr1772 || yy2arr1772 { + if yyr1805 || yy2arr1805 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1772[5] { - yym1789 := z.EncBinary() - _ = yym1789 + if yyq1805[5] { + yym1822 := z.EncBinary() + _ = yym1822 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Message)) @@ -24264,19 +24793,19 @@ func (x *PodCondition) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq1772[5] { + if yyq1805[5] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("message")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym1790 := z.EncBinary() - _ = yym1790 + yym1823 := z.EncBinary() + _ = yym1823 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Message)) } } } - if yyr1772 || yy2arr1772 { + if yyr1805 || yy2arr1805 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -24289,25 +24818,25 @@ func (x *PodCondition) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1791 := z.DecBinary() - _ = yym1791 + yym1824 := z.DecBinary() + _ = yym1824 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct1792 := r.ContainerType() - if yyct1792 == codecSelferValueTypeMap1234 { - yyl1792 := r.ReadMapStart() - if yyl1792 == 0 { + yyct1825 := r.ContainerType() + if yyct1825 == codecSelferValueTypeMap1234 { + yyl1825 := r.ReadMapStart() + if yyl1825 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl1792, d) + x.codecDecodeSelfFromMap(yyl1825, d) } - } else if yyct1792 == codecSelferValueTypeArray1234 { - yyl1792 := r.ReadArrayStart() - if yyl1792 == 0 { + } else if yyct1825 == codecSelferValueTypeArray1234 { + yyl1825 := r.ReadArrayStart() + if yyl1825 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl1792, d) + x.codecDecodeSelfFromArray(yyl1825, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -24319,12 +24848,12 @@ func (x *PodCondition) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys1793Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys1793Slc - var yyhl1793 bool = l >= 0 - for yyj1793 := 0; ; yyj1793++ { - if yyhl1793 { - if yyj1793 >= l { + var yys1826Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys1826Slc + var yyhl1826 bool = l >= 0 + for yyj1826 := 0; ; yyj1826++ { + if yyhl1826 { + if yyj1826 >= l { break } } else { @@ -24333,10 +24862,10 @@ func (x *PodCondition) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys1793Slc = r.DecodeBytes(yys1793Slc, true, true) - yys1793 := string(yys1793Slc) + yys1826Slc = r.DecodeBytes(yys1826Slc, true, true) + yys1826 := string(yys1826Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys1793 { + switch yys1826 { case "type": if r.TryDecodeAsNil() { x.Type = "" @@ -24353,34 +24882,34 @@ func (x *PodCondition) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.LastProbeTime = pkg2_unversioned.Time{} } else { - yyv1796 := &x.LastProbeTime - yym1797 := z.DecBinary() - _ = yym1797 + yyv1829 := &x.LastProbeTime + yym1830 := z.DecBinary() + _ = yym1830 if false { - } else if z.HasExtensions() && z.DecExt(yyv1796) { - } else if yym1797 { - z.DecBinaryUnmarshal(yyv1796) - } else if !yym1797 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv1796) + } else if z.HasExtensions() && z.DecExt(yyv1829) { + } else if yym1830 { + z.DecBinaryUnmarshal(yyv1829) + } else if !yym1830 && z.IsJSONHandle() { + z.DecJSONUnmarshal(yyv1829) } else { - z.DecFallback(yyv1796, false) + z.DecFallback(yyv1829, false) } } case "lastTransitionTime": if r.TryDecodeAsNil() { x.LastTransitionTime = pkg2_unversioned.Time{} } else { - yyv1798 := &x.LastTransitionTime - yym1799 := z.DecBinary() - _ = yym1799 + yyv1831 := &x.LastTransitionTime + yym1832 := z.DecBinary() + _ = yym1832 if false { - } else if z.HasExtensions() && z.DecExt(yyv1798) { - } else if yym1799 { - z.DecBinaryUnmarshal(yyv1798) - } else if !yym1799 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv1798) + } else if z.HasExtensions() && z.DecExt(yyv1831) { + } else if yym1832 { + z.DecBinaryUnmarshal(yyv1831) + } else if !yym1832 && z.IsJSONHandle() { + z.DecJSONUnmarshal(yyv1831) } else { - z.DecFallback(yyv1798, false) + z.DecFallback(yyv1831, false) } } case "reason": @@ -24396,9 +24925,9 @@ func (x *PodCondition) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { x.Message = string(r.DecodeString()) } default: - z.DecStructFieldNotFound(-1, yys1793) - } // end switch yys1793 - } // end for yyj1793 + z.DecStructFieldNotFound(-1, yys1826) + } // end switch yys1826 + } // end for yyj1826 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -24406,16 +24935,16 @@ func (x *PodCondition) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj1802 int - var yyb1802 bool - var yyhl1802 bool = l >= 0 - yyj1802++ - if yyhl1802 { - yyb1802 = yyj1802 > l + var yyj1835 int + var yyb1835 bool + var yyhl1835 bool = l >= 0 + yyj1835++ + if yyhl1835 { + yyb1835 = yyj1835 > l } else { - yyb1802 = r.CheckBreak() + yyb1835 = r.CheckBreak() } - if yyb1802 { + if yyb1835 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -24425,13 +24954,13 @@ func (x *PodCondition) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.Type = PodConditionType(r.DecodeString()) } - yyj1802++ - if yyhl1802 { - yyb1802 = yyj1802 > l + yyj1835++ + if yyhl1835 { + yyb1835 = yyj1835 > l } else { - yyb1802 = r.CheckBreak() + yyb1835 = r.CheckBreak() } - if yyb1802 { + if yyb1835 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -24441,13 +24970,13 @@ func (x *PodCondition) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.Status = ConditionStatus(r.DecodeString()) } - yyj1802++ - if yyhl1802 { - yyb1802 = yyj1802 > l + yyj1835++ + if yyhl1835 { + yyb1835 = yyj1835 > l } else { - yyb1802 = r.CheckBreak() + yyb1835 = r.CheckBreak() } - if yyb1802 { + if yyb1835 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -24455,26 +24984,26 @@ func (x *PodCondition) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.LastProbeTime = pkg2_unversioned.Time{} } else { - yyv1805 := &x.LastProbeTime - yym1806 := z.DecBinary() - _ = yym1806 + yyv1838 := &x.LastProbeTime + yym1839 := z.DecBinary() + _ = yym1839 if false { - } else if z.HasExtensions() && z.DecExt(yyv1805) { - } else if yym1806 { - z.DecBinaryUnmarshal(yyv1805) - } else if !yym1806 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv1805) + } else if z.HasExtensions() && z.DecExt(yyv1838) { + } else if yym1839 { + z.DecBinaryUnmarshal(yyv1838) + } else if !yym1839 && z.IsJSONHandle() { + z.DecJSONUnmarshal(yyv1838) } else { - z.DecFallback(yyv1805, false) + z.DecFallback(yyv1838, false) } } - yyj1802++ - if yyhl1802 { - yyb1802 = yyj1802 > l + yyj1835++ + if yyhl1835 { + yyb1835 = yyj1835 > l } else { - yyb1802 = r.CheckBreak() + yyb1835 = r.CheckBreak() } - if yyb1802 { + if yyb1835 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -24482,26 +25011,26 @@ func (x *PodCondition) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.LastTransitionTime = pkg2_unversioned.Time{} } else { - yyv1807 := &x.LastTransitionTime - yym1808 := z.DecBinary() - _ = yym1808 + yyv1840 := &x.LastTransitionTime + yym1841 := z.DecBinary() + _ = yym1841 if false { - } else if z.HasExtensions() && z.DecExt(yyv1807) { - } else if yym1808 { - z.DecBinaryUnmarshal(yyv1807) - } else if !yym1808 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv1807) + } else if z.HasExtensions() && z.DecExt(yyv1840) { + } else if yym1841 { + z.DecBinaryUnmarshal(yyv1840) + } else if !yym1841 && z.IsJSONHandle() { + z.DecJSONUnmarshal(yyv1840) } else { - z.DecFallback(yyv1807, false) + z.DecFallback(yyv1840, false) } } - yyj1802++ - if yyhl1802 { - yyb1802 = yyj1802 > l + yyj1835++ + if yyhl1835 { + yyb1835 = yyj1835 > l } else { - yyb1802 = r.CheckBreak() + yyb1835 = r.CheckBreak() } - if yyb1802 { + if yyb1835 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -24511,13 +25040,13 @@ func (x *PodCondition) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.Reason = string(r.DecodeString()) } - yyj1802++ - if yyhl1802 { - yyb1802 = yyj1802 > l + yyj1835++ + if yyhl1835 { + yyb1835 = yyj1835 > l } else { - yyb1802 = r.CheckBreak() + yyb1835 = r.CheckBreak() } - if yyb1802 { + if yyb1835 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -24528,17 +25057,17 @@ func (x *PodCondition) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { x.Message = string(r.DecodeString()) } for { - yyj1802++ - if yyhl1802 { - yyb1802 = yyj1802 > l + yyj1835++ + if yyhl1835 { + yyb1835 = yyj1835 > l } else { - yyb1802 = r.CheckBreak() + yyb1835 = r.CheckBreak() } - if yyb1802 { + if yyb1835 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj1802-1, "") + z.DecStructFieldNotFound(yyj1835-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -24547,8 +25076,8 @@ func (x RestartPolicy) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r - yym1811 := z.EncBinary() - _ = yym1811 + yym1844 := z.EncBinary() + _ = yym1844 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { @@ -24560,8 +25089,8 @@ func (x *RestartPolicy) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1812 := z.DecBinary() - _ = yym1812 + yym1845 := z.DecBinary() + _ = yym1845 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { @@ -24576,37 +25105,37 @@ func (x *PodList) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1813 := z.EncBinary() - _ = yym1813 + yym1846 := z.EncBinary() + _ = yym1846 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - 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 { + yysep1847 := !z.EncBinary() + yy2arr1847 := z.EncBasicHandle().StructToArray + var yyq1847 [4]bool + _, _, _ = yysep1847, yyq1847, yy2arr1847 + const yyr1847 bool = false + yyq1847[0] = x.Kind != "" + yyq1847[1] = x.APIVersion != "" + yyq1847[2] = true + var yynn1847 int + if yyr1847 || yy2arr1847 { r.EncodeArrayStart(4) } else { - yynn1814 = 1 - for _, b := range yyq1814 { + yynn1847 = 1 + for _, b := range yyq1847 { if b { - yynn1814++ + yynn1847++ } } - r.EncodeMapStart(yynn1814) - yynn1814 = 0 + r.EncodeMapStart(yynn1847) + yynn1847 = 0 } - if yyr1814 || yy2arr1814 { + if yyr1847 || yy2arr1847 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1814[0] { - yym1816 := z.EncBinary() - _ = yym1816 + if yyq1847[0] { + yym1849 := z.EncBinary() + _ = yym1849 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) @@ -24615,23 +25144,23 @@ func (x *PodList) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq1814[0] { + if yyq1847[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym1817 := z.EncBinary() - _ = yym1817 + yym1850 := z.EncBinary() + _ = yym1850 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } - if yyr1814 || yy2arr1814 { + if yyr1847 || yy2arr1847 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1814[1] { - yym1819 := z.EncBinary() - _ = yym1819 + if yyq1847[1] { + yym1852 := z.EncBinary() + _ = yym1852 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) @@ -24640,54 +25169,54 @@ func (x *PodList) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq1814[1] { + if yyq1847[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym1820 := z.EncBinary() - _ = yym1820 + yym1853 := z.EncBinary() + _ = yym1853 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } - if yyr1814 || yy2arr1814 { + if yyr1847 || yy2arr1847 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1814[2] { - yy1822 := &x.ListMeta - yym1823 := z.EncBinary() - _ = yym1823 + if yyq1847[2] { + yy1855 := &x.ListMeta + yym1856 := z.EncBinary() + _ = yym1856 if false { - } else if z.HasExtensions() && z.EncExt(yy1822) { + } else if z.HasExtensions() && z.EncExt(yy1855) { } else { - z.EncFallback(yy1822) + z.EncFallback(yy1855) } } else { r.EncodeNil() } } else { - if yyq1814[2] { + if yyq1847[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy1824 := &x.ListMeta - yym1825 := z.EncBinary() - _ = yym1825 + yy1857 := &x.ListMeta + yym1858 := z.EncBinary() + _ = yym1858 if false { - } else if z.HasExtensions() && z.EncExt(yy1824) { + } else if z.HasExtensions() && z.EncExt(yy1857) { } else { - z.EncFallback(yy1824) + z.EncFallback(yy1857) } } } - if yyr1814 || yy2arr1814 { + if yyr1847 || yy2arr1847 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.Items == nil { r.EncodeNil() } else { - yym1827 := z.EncBinary() - _ = yym1827 + yym1860 := z.EncBinary() + _ = yym1860 if false { } else { h.encSlicePod(([]Pod)(x.Items), e) @@ -24700,15 +25229,15 @@ func (x *PodList) CodecEncodeSelf(e *codec1978.Encoder) { if x.Items == nil { r.EncodeNil() } else { - yym1828 := z.EncBinary() - _ = yym1828 + yym1861 := z.EncBinary() + _ = yym1861 if false { } else { h.encSlicePod(([]Pod)(x.Items), e) } } } - if yyr1814 || yy2arr1814 { + if yyr1847 || yy2arr1847 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -24721,25 +25250,25 @@ func (x *PodList) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1829 := z.DecBinary() - _ = yym1829 + yym1862 := z.DecBinary() + _ = yym1862 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct1830 := r.ContainerType() - if yyct1830 == codecSelferValueTypeMap1234 { - yyl1830 := r.ReadMapStart() - if yyl1830 == 0 { + yyct1863 := r.ContainerType() + if yyct1863 == codecSelferValueTypeMap1234 { + yyl1863 := r.ReadMapStart() + if yyl1863 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl1830, d) + x.codecDecodeSelfFromMap(yyl1863, d) } - } else if yyct1830 == codecSelferValueTypeArray1234 { - yyl1830 := r.ReadArrayStart() - if yyl1830 == 0 { + } else if yyct1863 == codecSelferValueTypeArray1234 { + yyl1863 := r.ReadArrayStart() + if yyl1863 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl1830, d) + x.codecDecodeSelfFromArray(yyl1863, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -24751,12 +25280,12 @@ func (x *PodList) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys1831Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys1831Slc - var yyhl1831 bool = l >= 0 - for yyj1831 := 0; ; yyj1831++ { - if yyhl1831 { - if yyj1831 >= l { + var yys1864Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys1864Slc + var yyhl1864 bool = l >= 0 + for yyj1864 := 0; ; yyj1864++ { + if yyhl1864 { + if yyj1864 >= l { break } } else { @@ -24765,10 +25294,10 @@ func (x *PodList) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys1831Slc = r.DecodeBytes(yys1831Slc, true, true) - yys1831 := string(yys1831Slc) + yys1864Slc = r.DecodeBytes(yys1864Slc, true, true) + yys1864 := string(yys1864Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys1831 { + switch yys1864 { case "kind": if r.TryDecodeAsNil() { x.Kind = "" @@ -24785,31 +25314,31 @@ func (x *PodList) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.ListMeta = pkg2_unversioned.ListMeta{} } else { - yyv1834 := &x.ListMeta - yym1835 := z.DecBinary() - _ = yym1835 + yyv1867 := &x.ListMeta + yym1868 := z.DecBinary() + _ = yym1868 if false { - } else if z.HasExtensions() && z.DecExt(yyv1834) { + } else if z.HasExtensions() && z.DecExt(yyv1867) { } else { - z.DecFallback(yyv1834, false) + z.DecFallback(yyv1867, false) } } case "items": if r.TryDecodeAsNil() { x.Items = nil } else { - yyv1836 := &x.Items - yym1837 := z.DecBinary() - _ = yym1837 + yyv1869 := &x.Items + yym1870 := z.DecBinary() + _ = yym1870 if false { } else { - h.decSlicePod((*[]Pod)(yyv1836), d) + h.decSlicePod((*[]Pod)(yyv1869), d) } } default: - z.DecStructFieldNotFound(-1, yys1831) - } // end switch yys1831 - } // end for yyj1831 + z.DecStructFieldNotFound(-1, yys1864) + } // end switch yys1864 + } // end for yyj1864 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -24817,16 +25346,16 @@ func (x *PodList) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj1838 int - var yyb1838 bool - var yyhl1838 bool = l >= 0 - yyj1838++ - if yyhl1838 { - yyb1838 = yyj1838 > l + var yyj1871 int + var yyb1871 bool + var yyhl1871 bool = l >= 0 + yyj1871++ + if yyhl1871 { + yyb1871 = yyj1871 > l } else { - yyb1838 = r.CheckBreak() + yyb1871 = r.CheckBreak() } - if yyb1838 { + if yyb1871 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -24836,13 +25365,13 @@ func (x *PodList) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.Kind = string(r.DecodeString()) } - yyj1838++ - if yyhl1838 { - yyb1838 = yyj1838 > l + yyj1871++ + if yyhl1871 { + yyb1871 = yyj1871 > l } else { - yyb1838 = r.CheckBreak() + yyb1871 = r.CheckBreak() } - if yyb1838 { + if yyb1871 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -24852,13 +25381,13 @@ func (x *PodList) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.APIVersion = string(r.DecodeString()) } - yyj1838++ - if yyhl1838 { - yyb1838 = yyj1838 > l + yyj1871++ + if yyhl1871 { + yyb1871 = yyj1871 > l } else { - yyb1838 = r.CheckBreak() + yyb1871 = r.CheckBreak() } - if yyb1838 { + if yyb1871 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -24866,22 +25395,22 @@ func (x *PodList) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.ListMeta = pkg2_unversioned.ListMeta{} } else { - yyv1841 := &x.ListMeta - yym1842 := z.DecBinary() - _ = yym1842 + yyv1874 := &x.ListMeta + yym1875 := z.DecBinary() + _ = yym1875 if false { - } else if z.HasExtensions() && z.DecExt(yyv1841) { + } else if z.HasExtensions() && z.DecExt(yyv1874) { } else { - z.DecFallback(yyv1841, false) + z.DecFallback(yyv1874, false) } } - yyj1838++ - if yyhl1838 { - yyb1838 = yyj1838 > l + yyj1871++ + if yyhl1871 { + yyb1871 = yyj1871 > l } else { - yyb1838 = r.CheckBreak() + yyb1871 = r.CheckBreak() } - if yyb1838 { + if yyb1871 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -24889,26 +25418,26 @@ func (x *PodList) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.Items = nil } else { - yyv1843 := &x.Items - yym1844 := z.DecBinary() - _ = yym1844 + yyv1876 := &x.Items + yym1877 := z.DecBinary() + _ = yym1877 if false { } else { - h.decSlicePod((*[]Pod)(yyv1843), d) + h.decSlicePod((*[]Pod)(yyv1876), d) } } for { - yyj1838++ - if yyhl1838 { - yyb1838 = yyj1838 > l + yyj1871++ + if yyhl1871 { + yyb1871 = yyj1871 > l } else { - yyb1838 = r.CheckBreak() + yyb1871 = r.CheckBreak() } - if yyb1838 { + if yyb1871 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj1838-1, "") + z.DecStructFieldNotFound(yyj1871-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -24917,8 +25446,8 @@ func (x DNSPolicy) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r - yym1845 := z.EncBinary() - _ = yym1845 + yym1878 := z.EncBinary() + _ = yym1878 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { @@ -24930,8 +25459,8 @@ func (x *DNSPolicy) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1846 := z.DecBinary() - _ = yym1846 + yym1879 := z.DecBinary() + _ = yym1879 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { @@ -24946,36 +25475,36 @@ func (x *NodeSelector) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1847 := z.EncBinary() - _ = yym1847 + yym1880 := z.EncBinary() + _ = yym1880 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep1848 := !z.EncBinary() - yy2arr1848 := z.EncBasicHandle().StructToArray - var yyq1848 [1]bool - _, _, _ = yysep1848, yyq1848, yy2arr1848 - const yyr1848 bool = false - var yynn1848 int - if yyr1848 || yy2arr1848 { + yysep1881 := !z.EncBinary() + yy2arr1881 := z.EncBasicHandle().StructToArray + var yyq1881 [1]bool + _, _, _ = yysep1881, yyq1881, yy2arr1881 + const yyr1881 bool = false + var yynn1881 int + if yyr1881 || yy2arr1881 { r.EncodeArrayStart(1) } else { - yynn1848 = 1 - for _, b := range yyq1848 { + yynn1881 = 1 + for _, b := range yyq1881 { if b { - yynn1848++ + yynn1881++ } } - r.EncodeMapStart(yynn1848) - yynn1848 = 0 + r.EncodeMapStart(yynn1881) + yynn1881 = 0 } - if yyr1848 || yy2arr1848 { + if yyr1881 || yy2arr1881 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.NodeSelectorTerms == nil { r.EncodeNil() } else { - yym1850 := z.EncBinary() - _ = yym1850 + yym1883 := z.EncBinary() + _ = yym1883 if false { } else { h.encSliceNodeSelectorTerm(([]NodeSelectorTerm)(x.NodeSelectorTerms), e) @@ -24988,15 +25517,15 @@ func (x *NodeSelector) CodecEncodeSelf(e *codec1978.Encoder) { if x.NodeSelectorTerms == nil { r.EncodeNil() } else { - yym1851 := z.EncBinary() - _ = yym1851 + yym1884 := z.EncBinary() + _ = yym1884 if false { } else { h.encSliceNodeSelectorTerm(([]NodeSelectorTerm)(x.NodeSelectorTerms), e) } } } - if yyr1848 || yy2arr1848 { + if yyr1881 || yy2arr1881 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -25009,25 +25538,25 @@ func (x *NodeSelector) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1852 := z.DecBinary() - _ = yym1852 + yym1885 := z.DecBinary() + _ = yym1885 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct1853 := r.ContainerType() - if yyct1853 == codecSelferValueTypeMap1234 { - yyl1853 := r.ReadMapStart() - if yyl1853 == 0 { + yyct1886 := r.ContainerType() + if yyct1886 == codecSelferValueTypeMap1234 { + yyl1886 := r.ReadMapStart() + if yyl1886 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl1853, d) + x.codecDecodeSelfFromMap(yyl1886, d) } - } else if yyct1853 == codecSelferValueTypeArray1234 { - yyl1853 := r.ReadArrayStart() - if yyl1853 == 0 { + } else if yyct1886 == codecSelferValueTypeArray1234 { + yyl1886 := r.ReadArrayStart() + if yyl1886 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl1853, d) + x.codecDecodeSelfFromArray(yyl1886, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -25039,12 +25568,12 @@ func (x *NodeSelector) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys1854Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys1854Slc - var yyhl1854 bool = l >= 0 - for yyj1854 := 0; ; yyj1854++ { - if yyhl1854 { - if yyj1854 >= l { + var yys1887Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys1887Slc + var yyhl1887 bool = l >= 0 + for yyj1887 := 0; ; yyj1887++ { + if yyhl1887 { + if yyj1887 >= l { break } } else { @@ -25053,26 +25582,26 @@ func (x *NodeSelector) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys1854Slc = r.DecodeBytes(yys1854Slc, true, true) - yys1854 := string(yys1854Slc) + yys1887Slc = r.DecodeBytes(yys1887Slc, true, true) + yys1887 := string(yys1887Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys1854 { + switch yys1887 { case "nodeSelectorTerms": if r.TryDecodeAsNil() { x.NodeSelectorTerms = nil } else { - yyv1855 := &x.NodeSelectorTerms - yym1856 := z.DecBinary() - _ = yym1856 + yyv1888 := &x.NodeSelectorTerms + yym1889 := z.DecBinary() + _ = yym1889 if false { } else { - h.decSliceNodeSelectorTerm((*[]NodeSelectorTerm)(yyv1855), d) + h.decSliceNodeSelectorTerm((*[]NodeSelectorTerm)(yyv1888), d) } } default: - z.DecStructFieldNotFound(-1, yys1854) - } // end switch yys1854 - } // end for yyj1854 + z.DecStructFieldNotFound(-1, yys1887) + } // end switch yys1887 + } // end for yyj1887 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -25080,16 +25609,16 @@ func (x *NodeSelector) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj1857 int - var yyb1857 bool - var yyhl1857 bool = l >= 0 - yyj1857++ - if yyhl1857 { - yyb1857 = yyj1857 > l + var yyj1890 int + var yyb1890 bool + var yyhl1890 bool = l >= 0 + yyj1890++ + if yyhl1890 { + yyb1890 = yyj1890 > l } else { - yyb1857 = r.CheckBreak() + yyb1890 = r.CheckBreak() } - if yyb1857 { + if yyb1890 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -25097,26 +25626,26 @@ func (x *NodeSelector) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.NodeSelectorTerms = nil } else { - yyv1858 := &x.NodeSelectorTerms - yym1859 := z.DecBinary() - _ = yym1859 + yyv1891 := &x.NodeSelectorTerms + yym1892 := z.DecBinary() + _ = yym1892 if false { } else { - h.decSliceNodeSelectorTerm((*[]NodeSelectorTerm)(yyv1858), d) + h.decSliceNodeSelectorTerm((*[]NodeSelectorTerm)(yyv1891), d) } } for { - yyj1857++ - if yyhl1857 { - yyb1857 = yyj1857 > l + yyj1890++ + if yyhl1890 { + yyb1890 = yyj1890 > l } else { - yyb1857 = r.CheckBreak() + yyb1890 = r.CheckBreak() } - if yyb1857 { + if yyb1890 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj1857-1, "") + z.DecStructFieldNotFound(yyj1890-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -25128,36 +25657,36 @@ func (x *NodeSelectorTerm) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1860 := z.EncBinary() - _ = yym1860 + yym1893 := z.EncBinary() + _ = yym1893 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep1861 := !z.EncBinary() - yy2arr1861 := z.EncBasicHandle().StructToArray - var yyq1861 [1]bool - _, _, _ = yysep1861, yyq1861, yy2arr1861 - const yyr1861 bool = false - var yynn1861 int - if yyr1861 || yy2arr1861 { + yysep1894 := !z.EncBinary() + yy2arr1894 := z.EncBasicHandle().StructToArray + var yyq1894 [1]bool + _, _, _ = yysep1894, yyq1894, yy2arr1894 + const yyr1894 bool = false + var yynn1894 int + if yyr1894 || yy2arr1894 { r.EncodeArrayStart(1) } else { - yynn1861 = 1 - for _, b := range yyq1861 { + yynn1894 = 1 + for _, b := range yyq1894 { if b { - yynn1861++ + yynn1894++ } } - r.EncodeMapStart(yynn1861) - yynn1861 = 0 + r.EncodeMapStart(yynn1894) + yynn1894 = 0 } - if yyr1861 || yy2arr1861 { + if yyr1894 || yy2arr1894 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.MatchExpressions == nil { r.EncodeNil() } else { - yym1863 := z.EncBinary() - _ = yym1863 + yym1896 := z.EncBinary() + _ = yym1896 if false { } else { h.encSliceNodeSelectorRequirement(([]NodeSelectorRequirement)(x.MatchExpressions), e) @@ -25170,15 +25699,15 @@ func (x *NodeSelectorTerm) CodecEncodeSelf(e *codec1978.Encoder) { if x.MatchExpressions == nil { r.EncodeNil() } else { - yym1864 := z.EncBinary() - _ = yym1864 + yym1897 := z.EncBinary() + _ = yym1897 if false { } else { h.encSliceNodeSelectorRequirement(([]NodeSelectorRequirement)(x.MatchExpressions), e) } } } - if yyr1861 || yy2arr1861 { + if yyr1894 || yy2arr1894 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -25191,25 +25720,25 @@ func (x *NodeSelectorTerm) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1865 := z.DecBinary() - _ = yym1865 + yym1898 := z.DecBinary() + _ = yym1898 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct1866 := r.ContainerType() - if yyct1866 == codecSelferValueTypeMap1234 { - yyl1866 := r.ReadMapStart() - if yyl1866 == 0 { + yyct1899 := r.ContainerType() + if yyct1899 == codecSelferValueTypeMap1234 { + yyl1899 := r.ReadMapStart() + if yyl1899 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl1866, d) + x.codecDecodeSelfFromMap(yyl1899, d) } - } else if yyct1866 == codecSelferValueTypeArray1234 { - yyl1866 := r.ReadArrayStart() - if yyl1866 == 0 { + } else if yyct1899 == codecSelferValueTypeArray1234 { + yyl1899 := r.ReadArrayStart() + if yyl1899 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl1866, d) + x.codecDecodeSelfFromArray(yyl1899, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -25221,12 +25750,12 @@ func (x *NodeSelectorTerm) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys1867Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys1867Slc - var yyhl1867 bool = l >= 0 - for yyj1867 := 0; ; yyj1867++ { - if yyhl1867 { - if yyj1867 >= 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 { @@ -25235,26 +25764,26 @@ func (x *NodeSelectorTerm) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys1867Slc = r.DecodeBytes(yys1867Slc, true, true) - yys1867 := string(yys1867Slc) + yys1900Slc = r.DecodeBytes(yys1900Slc, true, true) + yys1900 := string(yys1900Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys1867 { + switch yys1900 { case "matchExpressions": if r.TryDecodeAsNil() { x.MatchExpressions = nil } else { - yyv1868 := &x.MatchExpressions - yym1869 := z.DecBinary() - _ = yym1869 + yyv1901 := &x.MatchExpressions + yym1902 := z.DecBinary() + _ = yym1902 if false { } else { - h.decSliceNodeSelectorRequirement((*[]NodeSelectorRequirement)(yyv1868), d) + h.decSliceNodeSelectorRequirement((*[]NodeSelectorRequirement)(yyv1901), d) } } default: - z.DecStructFieldNotFound(-1, yys1867) - } // end switch yys1867 - } // end for yyj1867 + z.DecStructFieldNotFound(-1, yys1900) + } // end switch yys1900 + } // end for yyj1900 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -25262,16 +25791,16 @@ func (x *NodeSelectorTerm) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj1870 int - var yyb1870 bool - var yyhl1870 bool = l >= 0 - yyj1870++ - if yyhl1870 { - yyb1870 = yyj1870 > l + var yyj1903 int + var yyb1903 bool + var yyhl1903 bool = l >= 0 + yyj1903++ + if yyhl1903 { + yyb1903 = yyj1903 > l } else { - yyb1870 = r.CheckBreak() + yyb1903 = r.CheckBreak() } - if yyb1870 { + if yyb1903 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -25279,26 +25808,26 @@ func (x *NodeSelectorTerm) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) if r.TryDecodeAsNil() { x.MatchExpressions = nil } else { - yyv1871 := &x.MatchExpressions - yym1872 := z.DecBinary() - _ = yym1872 + yyv1904 := &x.MatchExpressions + yym1905 := z.DecBinary() + _ = yym1905 if false { } else { - h.decSliceNodeSelectorRequirement((*[]NodeSelectorRequirement)(yyv1871), d) + h.decSliceNodeSelectorRequirement((*[]NodeSelectorRequirement)(yyv1904), d) } } for { - yyj1870++ - if yyhl1870 { - yyb1870 = yyj1870 > l + yyj1903++ + if yyhl1903 { + yyb1903 = yyj1903 > l } else { - yyb1870 = r.CheckBreak() + yyb1903 = r.CheckBreak() } - if yyb1870 { + if yyb1903 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj1870-1, "") + z.DecStructFieldNotFound(yyj1903-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -25310,34 +25839,34 @@ func (x *NodeSelectorRequirement) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1873 := z.EncBinary() - _ = yym1873 + yym1906 := z.EncBinary() + _ = yym1906 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - 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 { + yysep1907 := !z.EncBinary() + yy2arr1907 := z.EncBasicHandle().StructToArray + var yyq1907 [3]bool + _, _, _ = yysep1907, yyq1907, yy2arr1907 + const yyr1907 bool = false + yyq1907[2] = len(x.Values) != 0 + var yynn1907 int + if yyr1907 || yy2arr1907 { r.EncodeArrayStart(3) } else { - yynn1874 = 2 - for _, b := range yyq1874 { + yynn1907 = 2 + for _, b := range yyq1907 { if b { - yynn1874++ + yynn1907++ } } - r.EncodeMapStart(yynn1874) - yynn1874 = 0 + r.EncodeMapStart(yynn1907) + yynn1907 = 0 } - if yyr1874 || yy2arr1874 { + if yyr1907 || yy2arr1907 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym1876 := z.EncBinary() - _ = yym1876 + yym1909 := z.EncBinary() + _ = yym1909 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Key)) @@ -25346,14 +25875,14 @@ func (x *NodeSelectorRequirement) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("key")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym1877 := z.EncBinary() - _ = yym1877 + yym1910 := z.EncBinary() + _ = yym1910 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Key)) } } - if yyr1874 || yy2arr1874 { + if yyr1907 || yy2arr1907 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) x.Operator.CodecEncodeSelf(e) } else { @@ -25362,14 +25891,14 @@ func (x *NodeSelectorRequirement) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapValue1234) x.Operator.CodecEncodeSelf(e) } - if yyr1874 || yy2arr1874 { + if yyr1907 || yy2arr1907 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1874[2] { + if yyq1907[2] { if x.Values == nil { r.EncodeNil() } else { - yym1880 := z.EncBinary() - _ = yym1880 + yym1913 := z.EncBinary() + _ = yym1913 if false { } else { z.F.EncSliceStringV(x.Values, false, e) @@ -25379,15 +25908,15 @@ func (x *NodeSelectorRequirement) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq1874[2] { + if yyq1907[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("values")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.Values == nil { r.EncodeNil() } else { - yym1881 := z.EncBinary() - _ = yym1881 + yym1914 := z.EncBinary() + _ = yym1914 if false { } else { z.F.EncSliceStringV(x.Values, false, e) @@ -25395,7 +25924,7 @@ func (x *NodeSelectorRequirement) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr1874 || yy2arr1874 { + if yyr1907 || yy2arr1907 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -25408,25 +25937,25 @@ func (x *NodeSelectorRequirement) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1882 := z.DecBinary() - _ = yym1882 + yym1915 := z.DecBinary() + _ = yym1915 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct1883 := r.ContainerType() - if yyct1883 == codecSelferValueTypeMap1234 { - yyl1883 := r.ReadMapStart() - if yyl1883 == 0 { + yyct1916 := r.ContainerType() + if yyct1916 == codecSelferValueTypeMap1234 { + yyl1916 := r.ReadMapStart() + if yyl1916 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl1883, d) + x.codecDecodeSelfFromMap(yyl1916, d) } - } else if yyct1883 == codecSelferValueTypeArray1234 { - yyl1883 := r.ReadArrayStart() - if yyl1883 == 0 { + } else if yyct1916 == codecSelferValueTypeArray1234 { + yyl1916 := r.ReadArrayStart() + if yyl1916 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl1883, d) + x.codecDecodeSelfFromArray(yyl1916, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -25438,12 +25967,12 @@ func (x *NodeSelectorRequirement) codecDecodeSelfFromMap(l int, d *codec1978.Dec var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys1884Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys1884Slc - var yyhl1884 bool = l >= 0 - for yyj1884 := 0; ; yyj1884++ { - if yyhl1884 { - if yyj1884 >= l { + var yys1917Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys1917Slc + var yyhl1917 bool = l >= 0 + for yyj1917 := 0; ; yyj1917++ { + if yyhl1917 { + if yyj1917 >= l { break } } else { @@ -25452,10 +25981,10 @@ func (x *NodeSelectorRequirement) codecDecodeSelfFromMap(l int, d *codec1978.Dec } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys1884Slc = r.DecodeBytes(yys1884Slc, true, true) - yys1884 := string(yys1884Slc) + yys1917Slc = r.DecodeBytes(yys1917Slc, true, true) + yys1917 := string(yys1917Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys1884 { + switch yys1917 { case "key": if r.TryDecodeAsNil() { x.Key = "" @@ -25472,18 +26001,18 @@ func (x *NodeSelectorRequirement) codecDecodeSelfFromMap(l int, d *codec1978.Dec if r.TryDecodeAsNil() { x.Values = nil } else { - yyv1887 := &x.Values - yym1888 := z.DecBinary() - _ = yym1888 + yyv1920 := &x.Values + yym1921 := z.DecBinary() + _ = yym1921 if false { } else { - z.F.DecSliceStringX(yyv1887, false, d) + z.F.DecSliceStringX(yyv1920, false, d) } } default: - z.DecStructFieldNotFound(-1, yys1884) - } // end switch yys1884 - } // end for yyj1884 + z.DecStructFieldNotFound(-1, yys1917) + } // end switch yys1917 + } // end for yyj1917 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -25491,16 +26020,16 @@ func (x *NodeSelectorRequirement) codecDecodeSelfFromArray(l int, d *codec1978.D var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj1889 int - var yyb1889 bool - var yyhl1889 bool = l >= 0 - yyj1889++ - if yyhl1889 { - yyb1889 = yyj1889 > l + var yyj1922 int + var yyb1922 bool + var yyhl1922 bool = l >= 0 + yyj1922++ + if yyhl1922 { + yyb1922 = yyj1922 > l } else { - yyb1889 = r.CheckBreak() + yyb1922 = r.CheckBreak() } - if yyb1889 { + if yyb1922 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -25510,13 +26039,13 @@ func (x *NodeSelectorRequirement) codecDecodeSelfFromArray(l int, d *codec1978.D } else { x.Key = string(r.DecodeString()) } - yyj1889++ - if yyhl1889 { - yyb1889 = yyj1889 > l + yyj1922++ + if yyhl1922 { + yyb1922 = yyj1922 > l } else { - yyb1889 = r.CheckBreak() + yyb1922 = r.CheckBreak() } - if yyb1889 { + if yyb1922 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -25526,13 +26055,13 @@ func (x *NodeSelectorRequirement) codecDecodeSelfFromArray(l int, d *codec1978.D } else { x.Operator = NodeSelectorOperator(r.DecodeString()) } - yyj1889++ - if yyhl1889 { - yyb1889 = yyj1889 > l + yyj1922++ + if yyhl1922 { + yyb1922 = yyj1922 > l } else { - yyb1889 = r.CheckBreak() + yyb1922 = r.CheckBreak() } - if yyb1889 { + if yyb1922 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -25540,26 +26069,26 @@ func (x *NodeSelectorRequirement) codecDecodeSelfFromArray(l int, d *codec1978.D if r.TryDecodeAsNil() { x.Values = nil } else { - yyv1892 := &x.Values - yym1893 := z.DecBinary() - _ = yym1893 + yyv1925 := &x.Values + yym1926 := z.DecBinary() + _ = yym1926 if false { } else { - z.F.DecSliceStringX(yyv1892, false, d) + z.F.DecSliceStringX(yyv1925, false, d) } } for { - yyj1889++ - if yyhl1889 { - yyb1889 = yyj1889 > l + yyj1922++ + if yyhl1922 { + yyb1922 = yyj1922 > l } else { - yyb1889 = r.CheckBreak() + yyb1922 = r.CheckBreak() } - if yyb1889 { + if yyb1922 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj1889-1, "") + z.DecStructFieldNotFound(yyj1922-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -25568,8 +26097,8 @@ func (x NodeSelectorOperator) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r - yym1894 := z.EncBinary() - _ = yym1894 + yym1927 := z.EncBinary() + _ = yym1927 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { @@ -25581,8 +26110,8 @@ func (x *NodeSelectorOperator) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1895 := z.DecBinary() - _ = yym1895 + yym1928 := z.DecBinary() + _ = yym1928 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { @@ -25597,35 +26126,35 @@ func (x *Affinity) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1896 := z.EncBinary() - _ = yym1896 + yym1929 := z.EncBinary() + _ = yym1929 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - 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 { + yysep1930 := !z.EncBinary() + yy2arr1930 := z.EncBasicHandle().StructToArray + var yyq1930 [3]bool + _, _, _ = yysep1930, yyq1930, yy2arr1930 + const yyr1930 bool = false + yyq1930[0] = x.NodeAffinity != nil + yyq1930[1] = x.PodAffinity != nil + yyq1930[2] = x.PodAntiAffinity != nil + var yynn1930 int + if yyr1930 || yy2arr1930 { r.EncodeArrayStart(3) } else { - yynn1897 = 0 - for _, b := range yyq1897 { + yynn1930 = 0 + for _, b := range yyq1930 { if b { - yynn1897++ + yynn1930++ } } - r.EncodeMapStart(yynn1897) - yynn1897 = 0 + r.EncodeMapStart(yynn1930) + yynn1930 = 0 } - if yyr1897 || yy2arr1897 { + if yyr1930 || yy2arr1930 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1897[0] { + if yyq1930[0] { if x.NodeAffinity == nil { r.EncodeNil() } else { @@ -25635,7 +26164,7 @@ func (x *Affinity) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq1897[0] { + if yyq1930[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("nodeAffinity")) z.EncSendContainerState(codecSelfer_containerMapValue1234) @@ -25646,9 +26175,9 @@ func (x *Affinity) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr1897 || yy2arr1897 { + if yyr1930 || yy2arr1930 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1897[1] { + if yyq1930[1] { if x.PodAffinity == nil { r.EncodeNil() } else { @@ -25658,7 +26187,7 @@ func (x *Affinity) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq1897[1] { + if yyq1930[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("podAffinity")) z.EncSendContainerState(codecSelfer_containerMapValue1234) @@ -25669,9 +26198,9 @@ func (x *Affinity) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr1897 || yy2arr1897 { + if yyr1930 || yy2arr1930 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1897[2] { + if yyq1930[2] { if x.PodAntiAffinity == nil { r.EncodeNil() } else { @@ -25681,7 +26210,7 @@ func (x *Affinity) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq1897[2] { + if yyq1930[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("podAntiAffinity")) z.EncSendContainerState(codecSelfer_containerMapValue1234) @@ -25692,7 +26221,7 @@ func (x *Affinity) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr1897 || yy2arr1897 { + if yyr1930 || yy2arr1930 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -25705,25 +26234,25 @@ func (x *Affinity) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1901 := z.DecBinary() - _ = yym1901 + yym1934 := z.DecBinary() + _ = yym1934 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct1902 := r.ContainerType() - if yyct1902 == codecSelferValueTypeMap1234 { - yyl1902 := r.ReadMapStart() - if yyl1902 == 0 { + yyct1935 := r.ContainerType() + if yyct1935 == codecSelferValueTypeMap1234 { + yyl1935 := r.ReadMapStart() + if yyl1935 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl1902, d) + x.codecDecodeSelfFromMap(yyl1935, d) } - } else if yyct1902 == codecSelferValueTypeArray1234 { - yyl1902 := r.ReadArrayStart() - if yyl1902 == 0 { + } else if yyct1935 == codecSelferValueTypeArray1234 { + yyl1935 := r.ReadArrayStart() + if yyl1935 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl1902, d) + x.codecDecodeSelfFromArray(yyl1935, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -25735,12 +26264,12 @@ func (x *Affinity) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys1903Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys1903Slc - var yyhl1903 bool = l >= 0 - for yyj1903 := 0; ; yyj1903++ { - if yyhl1903 { - if yyj1903 >= l { + var yys1936Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys1936Slc + var yyhl1936 bool = l >= 0 + for yyj1936 := 0; ; yyj1936++ { + if yyhl1936 { + if yyj1936 >= l { break } } else { @@ -25749,10 +26278,10 @@ func (x *Affinity) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys1903Slc = r.DecodeBytes(yys1903Slc, true, true) - yys1903 := string(yys1903Slc) + yys1936Slc = r.DecodeBytes(yys1936Slc, true, true) + yys1936 := string(yys1936Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys1903 { + switch yys1936 { case "nodeAffinity": if r.TryDecodeAsNil() { if x.NodeAffinity != nil { @@ -25787,9 +26316,9 @@ func (x *Affinity) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { x.PodAntiAffinity.CodecDecodeSelf(d) } default: - z.DecStructFieldNotFound(-1, yys1903) - } // end switch yys1903 - } // end for yyj1903 + z.DecStructFieldNotFound(-1, yys1936) + } // end switch yys1936 + } // end for yyj1936 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -25797,16 +26326,16 @@ func (x *Affinity) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj1907 int - var yyb1907 bool - var yyhl1907 bool = l >= 0 - yyj1907++ - if yyhl1907 { - yyb1907 = yyj1907 > l + var yyj1940 int + var yyb1940 bool + var yyhl1940 bool = l >= 0 + yyj1940++ + if yyhl1940 { + yyb1940 = yyj1940 > l } else { - yyb1907 = r.CheckBreak() + yyb1940 = r.CheckBreak() } - if yyb1907 { + if yyb1940 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -25821,13 +26350,13 @@ func (x *Affinity) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } x.NodeAffinity.CodecDecodeSelf(d) } - yyj1907++ - if yyhl1907 { - yyb1907 = yyj1907 > l + yyj1940++ + if yyhl1940 { + yyb1940 = yyj1940 > l } else { - yyb1907 = r.CheckBreak() + yyb1940 = r.CheckBreak() } - if yyb1907 { + if yyb1940 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -25842,13 +26371,13 @@ func (x *Affinity) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } x.PodAffinity.CodecDecodeSelf(d) } - yyj1907++ - if yyhl1907 { - yyb1907 = yyj1907 > l + yyj1940++ + if yyhl1940 { + yyb1940 = yyj1940 > l } else { - yyb1907 = r.CheckBreak() + yyb1940 = r.CheckBreak() } - if yyb1907 { + if yyb1940 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -25864,17 +26393,17 @@ func (x *Affinity) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { x.PodAntiAffinity.CodecDecodeSelf(d) } for { - yyj1907++ - if yyhl1907 { - yyb1907 = yyj1907 > l + yyj1940++ + if yyhl1940 { + yyb1940 = yyj1940 > l } else { - yyb1907 = r.CheckBreak() + yyb1940 = r.CheckBreak() } - if yyb1907 { + if yyb1940 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj1907-1, "") + z.DecStructFieldNotFound(yyj1940-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -25886,39 +26415,39 @@ func (x *PodAffinity) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1911 := z.EncBinary() - _ = yym1911 + yym1944 := z.EncBinary() + _ = yym1944 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - 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 { + yysep1945 := !z.EncBinary() + yy2arr1945 := z.EncBasicHandle().StructToArray + var yyq1945 [2]bool + _, _, _ = yysep1945, yyq1945, yy2arr1945 + const yyr1945 bool = false + yyq1945[0] = len(x.RequiredDuringSchedulingIgnoredDuringExecution) != 0 + yyq1945[1] = len(x.PreferredDuringSchedulingIgnoredDuringExecution) != 0 + var yynn1945 int + if yyr1945 || yy2arr1945 { r.EncodeArrayStart(2) } else { - yynn1912 = 0 - for _, b := range yyq1912 { + yynn1945 = 0 + for _, b := range yyq1945 { if b { - yynn1912++ + yynn1945++ } } - r.EncodeMapStart(yynn1912) - yynn1912 = 0 + r.EncodeMapStart(yynn1945) + yynn1945 = 0 } - if yyr1912 || yy2arr1912 { + if yyr1945 || yy2arr1945 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1912[0] { + if yyq1945[0] { if x.RequiredDuringSchedulingIgnoredDuringExecution == nil { r.EncodeNil() } else { - yym1914 := z.EncBinary() - _ = yym1914 + yym1947 := z.EncBinary() + _ = yym1947 if false { } else { h.encSlicePodAffinityTerm(([]PodAffinityTerm)(x.RequiredDuringSchedulingIgnoredDuringExecution), e) @@ -25928,15 +26457,15 @@ func (x *PodAffinity) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq1912[0] { + if yyq1945[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("requiredDuringSchedulingIgnoredDuringExecution")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.RequiredDuringSchedulingIgnoredDuringExecution == nil { r.EncodeNil() } else { - yym1915 := z.EncBinary() - _ = yym1915 + yym1948 := z.EncBinary() + _ = yym1948 if false { } else { h.encSlicePodAffinityTerm(([]PodAffinityTerm)(x.RequiredDuringSchedulingIgnoredDuringExecution), e) @@ -25944,14 +26473,14 @@ func (x *PodAffinity) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr1912 || yy2arr1912 { + if yyr1945 || yy2arr1945 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1912[1] { + if yyq1945[1] { if x.PreferredDuringSchedulingIgnoredDuringExecution == nil { r.EncodeNil() } else { - yym1917 := z.EncBinary() - _ = yym1917 + yym1950 := z.EncBinary() + _ = yym1950 if false { } else { h.encSliceWeightedPodAffinityTerm(([]WeightedPodAffinityTerm)(x.PreferredDuringSchedulingIgnoredDuringExecution), e) @@ -25961,15 +26490,15 @@ func (x *PodAffinity) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq1912[1] { + if yyq1945[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("preferredDuringSchedulingIgnoredDuringExecution")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.PreferredDuringSchedulingIgnoredDuringExecution == nil { r.EncodeNil() } else { - yym1918 := z.EncBinary() - _ = yym1918 + yym1951 := z.EncBinary() + _ = yym1951 if false { } else { h.encSliceWeightedPodAffinityTerm(([]WeightedPodAffinityTerm)(x.PreferredDuringSchedulingIgnoredDuringExecution), e) @@ -25977,7 +26506,7 @@ func (x *PodAffinity) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr1912 || yy2arr1912 { + if yyr1945 || yy2arr1945 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -25990,25 +26519,25 @@ func (x *PodAffinity) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1919 := z.DecBinary() - _ = yym1919 + yym1952 := z.DecBinary() + _ = yym1952 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct1920 := r.ContainerType() - if yyct1920 == codecSelferValueTypeMap1234 { - yyl1920 := r.ReadMapStart() - if yyl1920 == 0 { + yyct1953 := r.ContainerType() + if yyct1953 == codecSelferValueTypeMap1234 { + yyl1953 := r.ReadMapStart() + if yyl1953 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl1920, d) + x.codecDecodeSelfFromMap(yyl1953, d) } - } else if yyct1920 == codecSelferValueTypeArray1234 { - yyl1920 := r.ReadArrayStart() - if yyl1920 == 0 { + } else if yyct1953 == codecSelferValueTypeArray1234 { + yyl1953 := r.ReadArrayStart() + if yyl1953 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl1920, d) + x.codecDecodeSelfFromArray(yyl1953, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -26020,12 +26549,12 @@ func (x *PodAffinity) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys1921Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys1921Slc - var yyhl1921 bool = l >= 0 - for yyj1921 := 0; ; yyj1921++ { - if yyhl1921 { - if yyj1921 >= l { + var yys1954Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys1954Slc + var yyhl1954 bool = l >= 0 + for yyj1954 := 0; ; yyj1954++ { + if yyhl1954 { + if yyj1954 >= l { break } } else { @@ -26034,38 +26563,38 @@ func (x *PodAffinity) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys1921Slc = r.DecodeBytes(yys1921Slc, true, true) - yys1921 := string(yys1921Slc) + yys1954Slc = r.DecodeBytes(yys1954Slc, true, true) + yys1954 := string(yys1954Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys1921 { + switch yys1954 { case "requiredDuringSchedulingIgnoredDuringExecution": if r.TryDecodeAsNil() { x.RequiredDuringSchedulingIgnoredDuringExecution = nil } else { - yyv1922 := &x.RequiredDuringSchedulingIgnoredDuringExecution - yym1923 := z.DecBinary() - _ = yym1923 + yyv1955 := &x.RequiredDuringSchedulingIgnoredDuringExecution + yym1956 := z.DecBinary() + _ = yym1956 if false { } else { - h.decSlicePodAffinityTerm((*[]PodAffinityTerm)(yyv1922), d) + h.decSlicePodAffinityTerm((*[]PodAffinityTerm)(yyv1955), d) } } case "preferredDuringSchedulingIgnoredDuringExecution": if r.TryDecodeAsNil() { x.PreferredDuringSchedulingIgnoredDuringExecution = nil } else { - yyv1924 := &x.PreferredDuringSchedulingIgnoredDuringExecution - yym1925 := z.DecBinary() - _ = yym1925 + yyv1957 := &x.PreferredDuringSchedulingIgnoredDuringExecution + yym1958 := z.DecBinary() + _ = yym1958 if false { } else { - h.decSliceWeightedPodAffinityTerm((*[]WeightedPodAffinityTerm)(yyv1924), d) + h.decSliceWeightedPodAffinityTerm((*[]WeightedPodAffinityTerm)(yyv1957), d) } } default: - z.DecStructFieldNotFound(-1, yys1921) - } // end switch yys1921 - } // end for yyj1921 + z.DecStructFieldNotFound(-1, yys1954) + } // end switch yys1954 + } // end for yyj1954 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -26073,16 +26602,16 @@ func (x *PodAffinity) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj1926 int - var yyb1926 bool - var yyhl1926 bool = l >= 0 - yyj1926++ - if yyhl1926 { - yyb1926 = yyj1926 > l + var yyj1959 int + var yyb1959 bool + var yyhl1959 bool = l >= 0 + yyj1959++ + if yyhl1959 { + yyb1959 = yyj1959 > l } else { - yyb1926 = r.CheckBreak() + yyb1959 = r.CheckBreak() } - if yyb1926 { + if yyb1959 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -26090,21 +26619,21 @@ func (x *PodAffinity) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.RequiredDuringSchedulingIgnoredDuringExecution = nil } else { - yyv1927 := &x.RequiredDuringSchedulingIgnoredDuringExecution - yym1928 := z.DecBinary() - _ = yym1928 + yyv1960 := &x.RequiredDuringSchedulingIgnoredDuringExecution + yym1961 := z.DecBinary() + _ = yym1961 if false { } else { - h.decSlicePodAffinityTerm((*[]PodAffinityTerm)(yyv1927), d) + h.decSlicePodAffinityTerm((*[]PodAffinityTerm)(yyv1960), d) } } - yyj1926++ - if yyhl1926 { - yyb1926 = yyj1926 > l + yyj1959++ + if yyhl1959 { + yyb1959 = yyj1959 > l } else { - yyb1926 = r.CheckBreak() + yyb1959 = r.CheckBreak() } - if yyb1926 { + if yyb1959 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -26112,26 +26641,26 @@ func (x *PodAffinity) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.PreferredDuringSchedulingIgnoredDuringExecution = nil } else { - yyv1929 := &x.PreferredDuringSchedulingIgnoredDuringExecution - yym1930 := z.DecBinary() - _ = yym1930 + yyv1962 := &x.PreferredDuringSchedulingIgnoredDuringExecution + yym1963 := z.DecBinary() + _ = yym1963 if false { } else { - h.decSliceWeightedPodAffinityTerm((*[]WeightedPodAffinityTerm)(yyv1929), d) + h.decSliceWeightedPodAffinityTerm((*[]WeightedPodAffinityTerm)(yyv1962), d) } } for { - yyj1926++ - if yyhl1926 { - yyb1926 = yyj1926 > l + yyj1959++ + if yyhl1959 { + yyb1959 = yyj1959 > l } else { - yyb1926 = r.CheckBreak() + yyb1959 = r.CheckBreak() } - if yyb1926 { + if yyb1959 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj1926-1, "") + z.DecStructFieldNotFound(yyj1959-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -26143,39 +26672,39 @@ func (x *PodAntiAffinity) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1931 := z.EncBinary() - _ = yym1931 + yym1964 := z.EncBinary() + _ = yym1964 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - 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 { + yysep1965 := !z.EncBinary() + yy2arr1965 := z.EncBasicHandle().StructToArray + var yyq1965 [2]bool + _, _, _ = yysep1965, yyq1965, yy2arr1965 + const yyr1965 bool = false + yyq1965[0] = len(x.RequiredDuringSchedulingIgnoredDuringExecution) != 0 + yyq1965[1] = len(x.PreferredDuringSchedulingIgnoredDuringExecution) != 0 + var yynn1965 int + if yyr1965 || yy2arr1965 { r.EncodeArrayStart(2) } else { - yynn1932 = 0 - for _, b := range yyq1932 { + yynn1965 = 0 + for _, b := range yyq1965 { if b { - yynn1932++ + yynn1965++ } } - r.EncodeMapStart(yynn1932) - yynn1932 = 0 + r.EncodeMapStart(yynn1965) + yynn1965 = 0 } - if yyr1932 || yy2arr1932 { + if yyr1965 || yy2arr1965 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1932[0] { + if yyq1965[0] { if x.RequiredDuringSchedulingIgnoredDuringExecution == nil { r.EncodeNil() } else { - yym1934 := z.EncBinary() - _ = yym1934 + yym1967 := z.EncBinary() + _ = yym1967 if false { } else { h.encSlicePodAffinityTerm(([]PodAffinityTerm)(x.RequiredDuringSchedulingIgnoredDuringExecution), e) @@ -26185,15 +26714,15 @@ func (x *PodAntiAffinity) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq1932[0] { + if yyq1965[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("requiredDuringSchedulingIgnoredDuringExecution")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.RequiredDuringSchedulingIgnoredDuringExecution == nil { r.EncodeNil() } else { - yym1935 := z.EncBinary() - _ = yym1935 + yym1968 := z.EncBinary() + _ = yym1968 if false { } else { h.encSlicePodAffinityTerm(([]PodAffinityTerm)(x.RequiredDuringSchedulingIgnoredDuringExecution), e) @@ -26201,14 +26730,14 @@ func (x *PodAntiAffinity) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr1932 || yy2arr1932 { + if yyr1965 || yy2arr1965 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1932[1] { + if yyq1965[1] { if x.PreferredDuringSchedulingIgnoredDuringExecution == nil { r.EncodeNil() } else { - yym1937 := z.EncBinary() - _ = yym1937 + yym1970 := z.EncBinary() + _ = yym1970 if false { } else { h.encSliceWeightedPodAffinityTerm(([]WeightedPodAffinityTerm)(x.PreferredDuringSchedulingIgnoredDuringExecution), e) @@ -26218,15 +26747,15 @@ func (x *PodAntiAffinity) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq1932[1] { + if yyq1965[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("preferredDuringSchedulingIgnoredDuringExecution")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.PreferredDuringSchedulingIgnoredDuringExecution == nil { r.EncodeNil() } else { - yym1938 := z.EncBinary() - _ = yym1938 + yym1971 := z.EncBinary() + _ = yym1971 if false { } else { h.encSliceWeightedPodAffinityTerm(([]WeightedPodAffinityTerm)(x.PreferredDuringSchedulingIgnoredDuringExecution), e) @@ -26234,7 +26763,7 @@ func (x *PodAntiAffinity) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr1932 || yy2arr1932 { + if yyr1965 || yy2arr1965 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -26247,25 +26776,25 @@ func (x *PodAntiAffinity) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1939 := z.DecBinary() - _ = yym1939 + yym1972 := z.DecBinary() + _ = yym1972 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct1940 := r.ContainerType() - if yyct1940 == codecSelferValueTypeMap1234 { - yyl1940 := r.ReadMapStart() - if yyl1940 == 0 { + yyct1973 := r.ContainerType() + if yyct1973 == codecSelferValueTypeMap1234 { + yyl1973 := r.ReadMapStart() + if yyl1973 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl1940, d) + x.codecDecodeSelfFromMap(yyl1973, d) } - } else if yyct1940 == codecSelferValueTypeArray1234 { - yyl1940 := r.ReadArrayStart() - if yyl1940 == 0 { + } else if yyct1973 == codecSelferValueTypeArray1234 { + yyl1973 := r.ReadArrayStart() + if yyl1973 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl1940, d) + x.codecDecodeSelfFromArray(yyl1973, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -26277,12 +26806,12 @@ func (x *PodAntiAffinity) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys1941Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys1941Slc - var yyhl1941 bool = l >= 0 - for yyj1941 := 0; ; yyj1941++ { - if yyhl1941 { - if yyj1941 >= l { + var yys1974Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys1974Slc + var yyhl1974 bool = l >= 0 + for yyj1974 := 0; ; yyj1974++ { + if yyhl1974 { + if yyj1974 >= l { break } } else { @@ -26291,38 +26820,38 @@ func (x *PodAntiAffinity) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys1941Slc = r.DecodeBytes(yys1941Slc, true, true) - yys1941 := string(yys1941Slc) + yys1974Slc = r.DecodeBytes(yys1974Slc, true, true) + yys1974 := string(yys1974Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys1941 { + switch yys1974 { case "requiredDuringSchedulingIgnoredDuringExecution": if r.TryDecodeAsNil() { x.RequiredDuringSchedulingIgnoredDuringExecution = nil } else { - yyv1942 := &x.RequiredDuringSchedulingIgnoredDuringExecution - yym1943 := z.DecBinary() - _ = yym1943 + yyv1975 := &x.RequiredDuringSchedulingIgnoredDuringExecution + yym1976 := z.DecBinary() + _ = yym1976 if false { } else { - h.decSlicePodAffinityTerm((*[]PodAffinityTerm)(yyv1942), d) + h.decSlicePodAffinityTerm((*[]PodAffinityTerm)(yyv1975), d) } } case "preferredDuringSchedulingIgnoredDuringExecution": if r.TryDecodeAsNil() { x.PreferredDuringSchedulingIgnoredDuringExecution = nil } else { - yyv1944 := &x.PreferredDuringSchedulingIgnoredDuringExecution - yym1945 := z.DecBinary() - _ = yym1945 + yyv1977 := &x.PreferredDuringSchedulingIgnoredDuringExecution + yym1978 := z.DecBinary() + _ = yym1978 if false { } else { - h.decSliceWeightedPodAffinityTerm((*[]WeightedPodAffinityTerm)(yyv1944), d) + h.decSliceWeightedPodAffinityTerm((*[]WeightedPodAffinityTerm)(yyv1977), d) } } default: - z.DecStructFieldNotFound(-1, yys1941) - } // end switch yys1941 - } // end for yyj1941 + z.DecStructFieldNotFound(-1, yys1974) + } // end switch yys1974 + } // end for yyj1974 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -26330,16 +26859,16 @@ func (x *PodAntiAffinity) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj1946 int - var yyb1946 bool - var yyhl1946 bool = l >= 0 - yyj1946++ - if yyhl1946 { - yyb1946 = yyj1946 > l + var yyj1979 int + var yyb1979 bool + var yyhl1979 bool = l >= 0 + yyj1979++ + if yyhl1979 { + yyb1979 = yyj1979 > l } else { - yyb1946 = r.CheckBreak() + yyb1979 = r.CheckBreak() } - if yyb1946 { + if yyb1979 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -26347,21 +26876,21 @@ func (x *PodAntiAffinity) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) if r.TryDecodeAsNil() { x.RequiredDuringSchedulingIgnoredDuringExecution = nil } else { - yyv1947 := &x.RequiredDuringSchedulingIgnoredDuringExecution - yym1948 := z.DecBinary() - _ = yym1948 + yyv1980 := &x.RequiredDuringSchedulingIgnoredDuringExecution + yym1981 := z.DecBinary() + _ = yym1981 if false { } else { - h.decSlicePodAffinityTerm((*[]PodAffinityTerm)(yyv1947), d) + h.decSlicePodAffinityTerm((*[]PodAffinityTerm)(yyv1980), d) } } - yyj1946++ - if yyhl1946 { - yyb1946 = yyj1946 > l + yyj1979++ + if yyhl1979 { + yyb1979 = yyj1979 > l } else { - yyb1946 = r.CheckBreak() + yyb1979 = r.CheckBreak() } - if yyb1946 { + if yyb1979 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -26369,26 +26898,26 @@ func (x *PodAntiAffinity) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) if r.TryDecodeAsNil() { x.PreferredDuringSchedulingIgnoredDuringExecution = nil } else { - yyv1949 := &x.PreferredDuringSchedulingIgnoredDuringExecution - yym1950 := z.DecBinary() - _ = yym1950 + yyv1982 := &x.PreferredDuringSchedulingIgnoredDuringExecution + yym1983 := z.DecBinary() + _ = yym1983 if false { } else { - h.decSliceWeightedPodAffinityTerm((*[]WeightedPodAffinityTerm)(yyv1949), d) + h.decSliceWeightedPodAffinityTerm((*[]WeightedPodAffinityTerm)(yyv1982), d) } } for { - yyj1946++ - if yyhl1946 { - yyb1946 = yyj1946 > l + yyj1979++ + if yyhl1979 { + yyb1979 = yyj1979 > l } else { - yyb1946 = r.CheckBreak() + yyb1979 = r.CheckBreak() } - if yyb1946 { + if yyb1979 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj1946-1, "") + z.DecStructFieldNotFound(yyj1979-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -26400,33 +26929,33 @@ func (x *WeightedPodAffinityTerm) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1951 := z.EncBinary() - _ = yym1951 + yym1984 := z.EncBinary() + _ = yym1984 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep1952 := !z.EncBinary() - yy2arr1952 := z.EncBasicHandle().StructToArray - var yyq1952 [2]bool - _, _, _ = yysep1952, yyq1952, yy2arr1952 - const yyr1952 bool = false - var yynn1952 int - if yyr1952 || yy2arr1952 { + yysep1985 := !z.EncBinary() + yy2arr1985 := z.EncBasicHandle().StructToArray + var yyq1985 [2]bool + _, _, _ = yysep1985, yyq1985, yy2arr1985 + const yyr1985 bool = false + var yynn1985 int + if yyr1985 || yy2arr1985 { r.EncodeArrayStart(2) } else { - yynn1952 = 2 - for _, b := range yyq1952 { + yynn1985 = 2 + for _, b := range yyq1985 { if b { - yynn1952++ + yynn1985++ } } - r.EncodeMapStart(yynn1952) - yynn1952 = 0 + r.EncodeMapStart(yynn1985) + yynn1985 = 0 } - if yyr1952 || yy2arr1952 { + if yyr1985 || yy2arr1985 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym1954 := z.EncBinary() - _ = yym1954 + yym1987 := z.EncBinary() + _ = yym1987 if false { } else { r.EncodeInt(int64(x.Weight)) @@ -26435,25 +26964,25 @@ func (x *WeightedPodAffinityTerm) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("weight")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym1955 := z.EncBinary() - _ = yym1955 + yym1988 := z.EncBinary() + _ = yym1988 if false { } else { r.EncodeInt(int64(x.Weight)) } } - if yyr1952 || yy2arr1952 { + if yyr1985 || yy2arr1985 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy1957 := &x.PodAffinityTerm - yy1957.CodecEncodeSelf(e) + yy1990 := &x.PodAffinityTerm + yy1990.CodecEncodeSelf(e) } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("podAffinityTerm")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy1958 := &x.PodAffinityTerm - yy1958.CodecEncodeSelf(e) + yy1991 := &x.PodAffinityTerm + yy1991.CodecEncodeSelf(e) } - if yyr1952 || yy2arr1952 { + if yyr1985 || yy2arr1985 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -26466,25 +26995,25 @@ func (x *WeightedPodAffinityTerm) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1959 := z.DecBinary() - _ = yym1959 + yym1992 := z.DecBinary() + _ = yym1992 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct1960 := r.ContainerType() - if yyct1960 == codecSelferValueTypeMap1234 { - yyl1960 := r.ReadMapStart() - if yyl1960 == 0 { + yyct1993 := r.ContainerType() + if yyct1993 == codecSelferValueTypeMap1234 { + yyl1993 := r.ReadMapStart() + if yyl1993 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl1960, d) + x.codecDecodeSelfFromMap(yyl1993, d) } - } else if yyct1960 == codecSelferValueTypeArray1234 { - yyl1960 := r.ReadArrayStart() - if yyl1960 == 0 { + } else if yyct1993 == codecSelferValueTypeArray1234 { + yyl1993 := r.ReadArrayStart() + if yyl1993 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl1960, d) + x.codecDecodeSelfFromArray(yyl1993, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -26496,12 +27025,12 @@ func (x *WeightedPodAffinityTerm) codecDecodeSelfFromMap(l int, d *codec1978.Dec var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys1961Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys1961Slc - var yyhl1961 bool = l >= 0 - for yyj1961 := 0; ; yyj1961++ { - if yyhl1961 { - if yyj1961 >= l { + var yys1994Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys1994Slc + var yyhl1994 bool = l >= 0 + for yyj1994 := 0; ; yyj1994++ { + if yyhl1994 { + if yyj1994 >= l { break } } else { @@ -26510,27 +27039,27 @@ func (x *WeightedPodAffinityTerm) codecDecodeSelfFromMap(l int, d *codec1978.Dec } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys1961Slc = r.DecodeBytes(yys1961Slc, true, true) - yys1961 := string(yys1961Slc) + yys1994Slc = r.DecodeBytes(yys1994Slc, true, true) + yys1994 := string(yys1994Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys1961 { + switch yys1994 { case "weight": if r.TryDecodeAsNil() { x.Weight = 0 } else { - x.Weight = int(r.DecodeInt(codecSelferBitsize1234)) + x.Weight = int32(r.DecodeInt(32)) } case "podAffinityTerm": if r.TryDecodeAsNil() { x.PodAffinityTerm = PodAffinityTerm{} } else { - yyv1963 := &x.PodAffinityTerm - yyv1963.CodecDecodeSelf(d) + yyv1996 := &x.PodAffinityTerm + yyv1996.CodecDecodeSelf(d) } default: - z.DecStructFieldNotFound(-1, yys1961) - } // end switch yys1961 - } // end for yyj1961 + z.DecStructFieldNotFound(-1, yys1994) + } // end switch yys1994 + } // end for yyj1994 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -26538,16 +27067,16 @@ func (x *WeightedPodAffinityTerm) codecDecodeSelfFromArray(l int, d *codec1978.D var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj1964 int - var yyb1964 bool - var yyhl1964 bool = l >= 0 - yyj1964++ - if yyhl1964 { - yyb1964 = yyj1964 > l + var yyj1997 int + var yyb1997 bool + var yyhl1997 bool = l >= 0 + yyj1997++ + if yyhl1997 { + yyb1997 = yyj1997 > l } else { - yyb1964 = r.CheckBreak() + yyb1997 = r.CheckBreak() } - if yyb1964 { + if yyb1997 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -26555,15 +27084,15 @@ func (x *WeightedPodAffinityTerm) codecDecodeSelfFromArray(l int, d *codec1978.D if r.TryDecodeAsNil() { x.Weight = 0 } else { - x.Weight = int(r.DecodeInt(codecSelferBitsize1234)) + x.Weight = int32(r.DecodeInt(32)) } - yyj1964++ - if yyhl1964 { - yyb1964 = yyj1964 > l + yyj1997++ + if yyhl1997 { + yyb1997 = yyj1997 > l } else { - yyb1964 = r.CheckBreak() + yyb1997 = r.CheckBreak() } - if yyb1964 { + if yyb1997 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -26571,21 +27100,21 @@ func (x *WeightedPodAffinityTerm) codecDecodeSelfFromArray(l int, d *codec1978.D if r.TryDecodeAsNil() { x.PodAffinityTerm = PodAffinityTerm{} } else { - yyv1966 := &x.PodAffinityTerm - yyv1966.CodecDecodeSelf(d) + yyv1999 := &x.PodAffinityTerm + yyv1999.CodecDecodeSelf(d) } for { - yyj1964++ - if yyhl1964 { - yyb1964 = yyj1964 > l + yyj1997++ + if yyhl1997 { + yyb1997 = yyj1997 > l } else { - yyb1964 = r.CheckBreak() + yyb1997 = r.CheckBreak() } - if yyb1964 { + if yyb1997 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj1964-1, "") + z.DecStructFieldNotFound(yyj1997-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -26597,39 +27126,39 @@ func (x *PodAffinityTerm) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1967 := z.EncBinary() - _ = yym1967 + yym2000 := z.EncBinary() + _ = yym2000 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - 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 { + yysep2001 := !z.EncBinary() + yy2arr2001 := z.EncBasicHandle().StructToArray + var yyq2001 [3]bool + _, _, _ = yysep2001, yyq2001, yy2arr2001 + const yyr2001 bool = false + yyq2001[0] = x.LabelSelector != nil + yyq2001[2] = x.TopologyKey != "" + var yynn2001 int + if yyr2001 || yy2arr2001 { r.EncodeArrayStart(3) } else { - yynn1968 = 1 - for _, b := range yyq1968 { + yynn2001 = 1 + for _, b := range yyq2001 { if b { - yynn1968++ + yynn2001++ } } - r.EncodeMapStart(yynn1968) - yynn1968 = 0 + r.EncodeMapStart(yynn2001) + yynn2001 = 0 } - if yyr1968 || yy2arr1968 { + if yyr2001 || yy2arr2001 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1968[0] { + if yyq2001[0] { if x.LabelSelector == nil { r.EncodeNil() } else { - yym1970 := z.EncBinary() - _ = yym1970 + yym2003 := z.EncBinary() + _ = yym2003 if false { } else if z.HasExtensions() && z.EncExt(x.LabelSelector) { } else { @@ -26640,15 +27169,15 @@ func (x *PodAffinityTerm) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq1968[0] { + if yyq2001[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("labelSelector")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.LabelSelector == nil { r.EncodeNil() } else { - yym1971 := z.EncBinary() - _ = yym1971 + yym2004 := z.EncBinary() + _ = yym2004 if false { } else if z.HasExtensions() && z.EncExt(x.LabelSelector) { } else { @@ -26657,13 +27186,13 @@ func (x *PodAffinityTerm) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr1968 || yy2arr1968 { + if yyr2001 || yy2arr2001 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.Namespaces == nil { r.EncodeNil() } else { - yym1973 := z.EncBinary() - _ = yym1973 + yym2006 := z.EncBinary() + _ = yym2006 if false { } else { z.F.EncSliceStringV(x.Namespaces, false, e) @@ -26676,19 +27205,19 @@ func (x *PodAffinityTerm) CodecEncodeSelf(e *codec1978.Encoder) { if x.Namespaces == nil { r.EncodeNil() } else { - yym1974 := z.EncBinary() - _ = yym1974 + yym2007 := z.EncBinary() + _ = yym2007 if false { } else { z.F.EncSliceStringV(x.Namespaces, false, e) } } } - if yyr1968 || yy2arr1968 { + if yyr2001 || yy2arr2001 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1968[2] { - yym1976 := z.EncBinary() - _ = yym1976 + if yyq2001[2] { + yym2009 := z.EncBinary() + _ = yym2009 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.TopologyKey)) @@ -26697,19 +27226,19 @@ func (x *PodAffinityTerm) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq1968[2] { + if yyq2001[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("topologyKey")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym1977 := z.EncBinary() - _ = yym1977 + yym2010 := z.EncBinary() + _ = yym2010 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.TopologyKey)) } } } - if yyr1968 || yy2arr1968 { + if yyr2001 || yy2arr2001 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -26722,25 +27251,25 @@ func (x *PodAffinityTerm) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1978 := z.DecBinary() - _ = yym1978 + yym2011 := z.DecBinary() + _ = yym2011 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct1979 := r.ContainerType() - if yyct1979 == codecSelferValueTypeMap1234 { - yyl1979 := r.ReadMapStart() - if yyl1979 == 0 { + yyct2012 := r.ContainerType() + if yyct2012 == codecSelferValueTypeMap1234 { + yyl2012 := r.ReadMapStart() + if yyl2012 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl1979, d) + x.codecDecodeSelfFromMap(yyl2012, d) } - } else if yyct1979 == codecSelferValueTypeArray1234 { - yyl1979 := r.ReadArrayStart() - if yyl1979 == 0 { + } else if yyct2012 == codecSelferValueTypeArray1234 { + yyl2012 := r.ReadArrayStart() + if yyl2012 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl1979, d) + x.codecDecodeSelfFromArray(yyl2012, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -26752,12 +27281,12 @@ func (x *PodAffinityTerm) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys1980Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys1980Slc - var yyhl1980 bool = l >= 0 - for yyj1980 := 0; ; yyj1980++ { - if yyhl1980 { - if yyj1980 >= l { + var yys2013Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys2013Slc + var yyhl2013 bool = l >= 0 + for yyj2013 := 0; ; yyj2013++ { + if yyhl2013 { + if yyj2013 >= l { break } } else { @@ -26766,10 +27295,10 @@ func (x *PodAffinityTerm) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys1980Slc = r.DecodeBytes(yys1980Slc, true, true) - yys1980 := string(yys1980Slc) + yys2013Slc = r.DecodeBytes(yys2013Slc, true, true) + yys2013 := string(yys2013Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys1980 { + switch yys2013 { case "labelSelector": if r.TryDecodeAsNil() { if x.LabelSelector != nil { @@ -26779,8 +27308,8 @@ func (x *PodAffinityTerm) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { if x.LabelSelector == nil { x.LabelSelector = new(pkg2_unversioned.LabelSelector) } - yym1982 := z.DecBinary() - _ = yym1982 + yym2015 := z.DecBinary() + _ = yym2015 if false { } else if z.HasExtensions() && z.DecExt(x.LabelSelector) { } else { @@ -26791,12 +27320,12 @@ func (x *PodAffinityTerm) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.Namespaces = nil } else { - yyv1983 := &x.Namespaces - yym1984 := z.DecBinary() - _ = yym1984 + yyv2016 := &x.Namespaces + yym2017 := z.DecBinary() + _ = yym2017 if false { } else { - z.F.DecSliceStringX(yyv1983, false, d) + z.F.DecSliceStringX(yyv2016, false, d) } } case "topologyKey": @@ -26806,9 +27335,9 @@ func (x *PodAffinityTerm) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { x.TopologyKey = string(r.DecodeString()) } default: - z.DecStructFieldNotFound(-1, yys1980) - } // end switch yys1980 - } // end for yyj1980 + z.DecStructFieldNotFound(-1, yys2013) + } // end switch yys2013 + } // end for yyj2013 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -26816,16 +27345,16 @@ func (x *PodAffinityTerm) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj1986 int - var yyb1986 bool - var yyhl1986 bool = l >= 0 - yyj1986++ - if yyhl1986 { - yyb1986 = yyj1986 > l + var yyj2019 int + var yyb2019 bool + var yyhl2019 bool = l >= 0 + yyj2019++ + if yyhl2019 { + yyb2019 = yyj2019 > l } else { - yyb1986 = r.CheckBreak() + yyb2019 = r.CheckBreak() } - if yyb1986 { + if yyb2019 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -26838,21 +27367,21 @@ func (x *PodAffinityTerm) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) if x.LabelSelector == nil { x.LabelSelector = new(pkg2_unversioned.LabelSelector) } - yym1988 := z.DecBinary() - _ = yym1988 + yym2021 := z.DecBinary() + _ = yym2021 if false { } else if z.HasExtensions() && z.DecExt(x.LabelSelector) { } else { z.DecFallback(x.LabelSelector, false) } } - yyj1986++ - if yyhl1986 { - yyb1986 = yyj1986 > l + yyj2019++ + if yyhl2019 { + yyb2019 = yyj2019 > l } else { - yyb1986 = r.CheckBreak() + yyb2019 = r.CheckBreak() } - if yyb1986 { + if yyb2019 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -26860,21 +27389,21 @@ func (x *PodAffinityTerm) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) if r.TryDecodeAsNil() { x.Namespaces = nil } else { - yyv1989 := &x.Namespaces - yym1990 := z.DecBinary() - _ = yym1990 + yyv2022 := &x.Namespaces + yym2023 := z.DecBinary() + _ = yym2023 if false { } else { - z.F.DecSliceStringX(yyv1989, false, d) + z.F.DecSliceStringX(yyv2022, false, d) } } - yyj1986++ - if yyhl1986 { - yyb1986 = yyj1986 > l + yyj2019++ + if yyhl2019 { + yyb2019 = yyj2019 > l } else { - yyb1986 = r.CheckBreak() + yyb2019 = r.CheckBreak() } - if yyb1986 { + if yyb2019 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -26885,17 +27414,17 @@ func (x *PodAffinityTerm) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) x.TopologyKey = string(r.DecodeString()) } for { - yyj1986++ - if yyhl1986 { - yyb1986 = yyj1986 > l + yyj2019++ + if yyhl2019 { + yyb2019 = yyj2019 > l } else { - yyb1986 = r.CheckBreak() + yyb2019 = r.CheckBreak() } - if yyb1986 { + if yyb2019 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj1986-1, "") + z.DecStructFieldNotFound(yyj2019-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -26907,34 +27436,34 @@ func (x *NodeAffinity) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1992 := z.EncBinary() - _ = yym1992 + yym2025 := z.EncBinary() + _ = yym2025 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - 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 { + yysep2026 := !z.EncBinary() + yy2arr2026 := z.EncBasicHandle().StructToArray + var yyq2026 [2]bool + _, _, _ = yysep2026, yyq2026, yy2arr2026 + const yyr2026 bool = false + yyq2026[0] = x.RequiredDuringSchedulingIgnoredDuringExecution != nil + yyq2026[1] = len(x.PreferredDuringSchedulingIgnoredDuringExecution) != 0 + var yynn2026 int + if yyr2026 || yy2arr2026 { r.EncodeArrayStart(2) } else { - yynn1993 = 0 - for _, b := range yyq1993 { + yynn2026 = 0 + for _, b := range yyq2026 { if b { - yynn1993++ + yynn2026++ } } - r.EncodeMapStart(yynn1993) - yynn1993 = 0 + r.EncodeMapStart(yynn2026) + yynn2026 = 0 } - if yyr1993 || yy2arr1993 { + if yyr2026 || yy2arr2026 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1993[0] { + if yyq2026[0] { if x.RequiredDuringSchedulingIgnoredDuringExecution == nil { r.EncodeNil() } else { @@ -26944,7 +27473,7 @@ func (x *NodeAffinity) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq1993[0] { + if yyq2026[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("requiredDuringSchedulingIgnoredDuringExecution")) z.EncSendContainerState(codecSelfer_containerMapValue1234) @@ -26955,14 +27484,14 @@ func (x *NodeAffinity) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr1993 || yy2arr1993 { + if yyr2026 || yy2arr2026 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1993[1] { + if yyq2026[1] { if x.PreferredDuringSchedulingIgnoredDuringExecution == nil { r.EncodeNil() } else { - yym1996 := z.EncBinary() - _ = yym1996 + yym2029 := z.EncBinary() + _ = yym2029 if false { } else { h.encSlicePreferredSchedulingTerm(([]PreferredSchedulingTerm)(x.PreferredDuringSchedulingIgnoredDuringExecution), e) @@ -26972,15 +27501,15 @@ func (x *NodeAffinity) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq1993[1] { + if yyq2026[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("preferredDuringSchedulingIgnoredDuringExecution")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.PreferredDuringSchedulingIgnoredDuringExecution == nil { r.EncodeNil() } else { - yym1997 := z.EncBinary() - _ = yym1997 + yym2030 := z.EncBinary() + _ = yym2030 if false { } else { h.encSlicePreferredSchedulingTerm(([]PreferredSchedulingTerm)(x.PreferredDuringSchedulingIgnoredDuringExecution), e) @@ -26988,7 +27517,7 @@ func (x *NodeAffinity) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr1993 || yy2arr1993 { + if yyr2026 || yy2arr2026 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -27001,25 +27530,25 @@ func (x *NodeAffinity) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1998 := z.DecBinary() - _ = yym1998 + yym2031 := z.DecBinary() + _ = yym2031 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct1999 := r.ContainerType() - if yyct1999 == codecSelferValueTypeMap1234 { - yyl1999 := r.ReadMapStart() - if yyl1999 == 0 { + yyct2032 := r.ContainerType() + if yyct2032 == codecSelferValueTypeMap1234 { + yyl2032 := r.ReadMapStart() + if yyl2032 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl1999, d) + x.codecDecodeSelfFromMap(yyl2032, d) } - } else if yyct1999 == codecSelferValueTypeArray1234 { - yyl1999 := r.ReadArrayStart() - if yyl1999 == 0 { + } else if yyct2032 == codecSelferValueTypeArray1234 { + yyl2032 := r.ReadArrayStart() + if yyl2032 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl1999, d) + x.codecDecodeSelfFromArray(yyl2032, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -27031,12 +27560,12 @@ func (x *NodeAffinity) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys2000Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys2000Slc - var yyhl2000 bool = l >= 0 - for yyj2000 := 0; ; yyj2000++ { - if yyhl2000 { - if yyj2000 >= l { + var yys2033Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys2033Slc + var yyhl2033 bool = l >= 0 + for yyj2033 := 0; ; yyj2033++ { + if yyhl2033 { + if yyj2033 >= l { break } } else { @@ -27045,10 +27574,10 @@ func (x *NodeAffinity) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys2000Slc = r.DecodeBytes(yys2000Slc, true, true) - yys2000 := string(yys2000Slc) + yys2033Slc = r.DecodeBytes(yys2033Slc, true, true) + yys2033 := string(yys2033Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys2000 { + switch yys2033 { case "requiredDuringSchedulingIgnoredDuringExecution": if r.TryDecodeAsNil() { if x.RequiredDuringSchedulingIgnoredDuringExecution != nil { @@ -27064,18 +27593,18 @@ func (x *NodeAffinity) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.PreferredDuringSchedulingIgnoredDuringExecution = nil } else { - yyv2002 := &x.PreferredDuringSchedulingIgnoredDuringExecution - yym2003 := z.DecBinary() - _ = yym2003 + yyv2035 := &x.PreferredDuringSchedulingIgnoredDuringExecution + yym2036 := z.DecBinary() + _ = yym2036 if false { } else { - h.decSlicePreferredSchedulingTerm((*[]PreferredSchedulingTerm)(yyv2002), d) + h.decSlicePreferredSchedulingTerm((*[]PreferredSchedulingTerm)(yyv2035), d) } } default: - z.DecStructFieldNotFound(-1, yys2000) - } // end switch yys2000 - } // end for yyj2000 + z.DecStructFieldNotFound(-1, yys2033) + } // end switch yys2033 + } // end for yyj2033 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -27083,16 +27612,16 @@ func (x *NodeAffinity) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj2004 int - var yyb2004 bool - var yyhl2004 bool = l >= 0 - yyj2004++ - if yyhl2004 { - yyb2004 = yyj2004 > l + var yyj2037 int + var yyb2037 bool + var yyhl2037 bool = l >= 0 + yyj2037++ + if yyhl2037 { + yyb2037 = yyj2037 > l } else { - yyb2004 = r.CheckBreak() + yyb2037 = r.CheckBreak() } - if yyb2004 { + if yyb2037 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -27107,13 +27636,13 @@ func (x *NodeAffinity) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } x.RequiredDuringSchedulingIgnoredDuringExecution.CodecDecodeSelf(d) } - yyj2004++ - if yyhl2004 { - yyb2004 = yyj2004 > l + yyj2037++ + if yyhl2037 { + yyb2037 = yyj2037 > l } else { - yyb2004 = r.CheckBreak() + yyb2037 = r.CheckBreak() } - if yyb2004 { + if yyb2037 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -27121,26 +27650,26 @@ func (x *NodeAffinity) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.PreferredDuringSchedulingIgnoredDuringExecution = nil } else { - yyv2006 := &x.PreferredDuringSchedulingIgnoredDuringExecution - yym2007 := z.DecBinary() - _ = yym2007 + yyv2039 := &x.PreferredDuringSchedulingIgnoredDuringExecution + yym2040 := z.DecBinary() + _ = yym2040 if false { } else { - h.decSlicePreferredSchedulingTerm((*[]PreferredSchedulingTerm)(yyv2006), d) + h.decSlicePreferredSchedulingTerm((*[]PreferredSchedulingTerm)(yyv2039), d) } } for { - yyj2004++ - if yyhl2004 { - yyb2004 = yyj2004 > l + yyj2037++ + if yyhl2037 { + yyb2037 = yyj2037 > l } else { - yyb2004 = r.CheckBreak() + yyb2037 = r.CheckBreak() } - if yyb2004 { + if yyb2037 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj2004-1, "") + z.DecStructFieldNotFound(yyj2037-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -27152,33 +27681,33 @@ func (x *PreferredSchedulingTerm) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym2008 := z.EncBinary() - _ = yym2008 + yym2041 := z.EncBinary() + _ = yym2041 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep2009 := !z.EncBinary() - yy2arr2009 := z.EncBasicHandle().StructToArray - var yyq2009 [2]bool - _, _, _ = yysep2009, yyq2009, yy2arr2009 - const yyr2009 bool = false - var yynn2009 int - if yyr2009 || yy2arr2009 { + yysep2042 := !z.EncBinary() + yy2arr2042 := z.EncBasicHandle().StructToArray + var yyq2042 [2]bool + _, _, _ = yysep2042, yyq2042, yy2arr2042 + const yyr2042 bool = false + var yynn2042 int + if yyr2042 || yy2arr2042 { r.EncodeArrayStart(2) } else { - yynn2009 = 2 - for _, b := range yyq2009 { + yynn2042 = 2 + for _, b := range yyq2042 { if b { - yynn2009++ + yynn2042++ } } - r.EncodeMapStart(yynn2009) - yynn2009 = 0 + r.EncodeMapStart(yynn2042) + yynn2042 = 0 } - if yyr2009 || yy2arr2009 { + if yyr2042 || yy2arr2042 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym2011 := z.EncBinary() - _ = yym2011 + yym2044 := z.EncBinary() + _ = yym2044 if false { } else { r.EncodeInt(int64(x.Weight)) @@ -27187,25 +27716,25 @@ func (x *PreferredSchedulingTerm) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("weight")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym2012 := z.EncBinary() - _ = yym2012 + yym2045 := z.EncBinary() + _ = yym2045 if false { } else { r.EncodeInt(int64(x.Weight)) } } - if yyr2009 || yy2arr2009 { + if yyr2042 || yy2arr2042 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy2014 := &x.Preference - yy2014.CodecEncodeSelf(e) + yy2047 := &x.Preference + yy2047.CodecEncodeSelf(e) } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("preference")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy2015 := &x.Preference - yy2015.CodecEncodeSelf(e) + yy2048 := &x.Preference + yy2048.CodecEncodeSelf(e) } - if yyr2009 || yy2arr2009 { + if yyr2042 || yy2arr2042 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -27218,25 +27747,25 @@ func (x *PreferredSchedulingTerm) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym2016 := z.DecBinary() - _ = yym2016 + yym2049 := z.DecBinary() + _ = yym2049 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2017 := r.ContainerType() - if yyct2017 == codecSelferValueTypeMap1234 { - yyl2017 := r.ReadMapStart() - if yyl2017 == 0 { + yyct2050 := r.ContainerType() + if yyct2050 == codecSelferValueTypeMap1234 { + yyl2050 := r.ReadMapStart() + if yyl2050 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2017, d) + x.codecDecodeSelfFromMap(yyl2050, d) } - } else if yyct2017 == codecSelferValueTypeArray1234 { - yyl2017 := r.ReadArrayStart() - if yyl2017 == 0 { + } else if yyct2050 == codecSelferValueTypeArray1234 { + yyl2050 := r.ReadArrayStart() + if yyl2050 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2017, d) + x.codecDecodeSelfFromArray(yyl2050, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -27248,12 +27777,12 @@ func (x *PreferredSchedulingTerm) codecDecodeSelfFromMap(l int, d *codec1978.Dec var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys2018Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys2018Slc - var yyhl2018 bool = l >= 0 - for yyj2018 := 0; ; yyj2018++ { - if yyhl2018 { - if yyj2018 >= l { + var yys2051Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys2051Slc + var yyhl2051 bool = l >= 0 + for yyj2051 := 0; ; yyj2051++ { + if yyhl2051 { + if yyj2051 >= l { break } } else { @@ -27262,10 +27791,10 @@ func (x *PreferredSchedulingTerm) codecDecodeSelfFromMap(l int, d *codec1978.Dec } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys2018Slc = r.DecodeBytes(yys2018Slc, true, true) - yys2018 := string(yys2018Slc) + yys2051Slc = r.DecodeBytes(yys2051Slc, true, true) + yys2051 := string(yys2051Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys2018 { + switch yys2051 { case "weight": if r.TryDecodeAsNil() { x.Weight = 0 @@ -27276,13 +27805,13 @@ func (x *PreferredSchedulingTerm) codecDecodeSelfFromMap(l int, d *codec1978.Dec if r.TryDecodeAsNil() { x.Preference = NodeSelectorTerm{} } else { - yyv2020 := &x.Preference - yyv2020.CodecDecodeSelf(d) + yyv2053 := &x.Preference + yyv2053.CodecDecodeSelf(d) } default: - z.DecStructFieldNotFound(-1, yys2018) - } // end switch yys2018 - } // end for yyj2018 + z.DecStructFieldNotFound(-1, yys2051) + } // end switch yys2051 + } // end for yyj2051 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -27290,16 +27819,16 @@ func (x *PreferredSchedulingTerm) codecDecodeSelfFromArray(l int, d *codec1978.D var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj2021 int - var yyb2021 bool - var yyhl2021 bool = l >= 0 - yyj2021++ - if yyhl2021 { - yyb2021 = yyj2021 > l + var yyj2054 int + var yyb2054 bool + var yyhl2054 bool = l >= 0 + yyj2054++ + if yyhl2054 { + yyb2054 = yyj2054 > l } else { - yyb2021 = r.CheckBreak() + yyb2054 = r.CheckBreak() } - if yyb2021 { + if yyb2054 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -27309,13 +27838,13 @@ func (x *PreferredSchedulingTerm) codecDecodeSelfFromArray(l int, d *codec1978.D } else { x.Weight = int32(r.DecodeInt(32)) } - yyj2021++ - if yyhl2021 { - yyb2021 = yyj2021 > l + yyj2054++ + if yyhl2054 { + yyb2054 = yyj2054 > l } else { - yyb2021 = r.CheckBreak() + yyb2054 = r.CheckBreak() } - if yyb2021 { + if yyb2054 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -27323,21 +27852,21 @@ func (x *PreferredSchedulingTerm) codecDecodeSelfFromArray(l int, d *codec1978.D if r.TryDecodeAsNil() { x.Preference = NodeSelectorTerm{} } else { - yyv2023 := &x.Preference - yyv2023.CodecDecodeSelf(d) + yyv2056 := &x.Preference + yyv2056.CodecDecodeSelf(d) } for { - yyj2021++ - if yyhl2021 { - yyb2021 = yyj2021 > l + yyj2054++ + if yyhl2054 { + yyb2054 = yyj2054 > l } else { - yyb2021 = r.CheckBreak() + yyb2054 = r.CheckBreak() } - if yyb2021 { + if yyb2054 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj2021-1, "") + z.DecStructFieldNotFound(yyj2054-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -27349,34 +27878,34 @@ func (x *Taint) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym2024 := z.EncBinary() - _ = yym2024 + yym2057 := z.EncBinary() + _ = yym2057 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - 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 { + yysep2058 := !z.EncBinary() + yy2arr2058 := z.EncBasicHandle().StructToArray + var yyq2058 [3]bool + _, _, _ = yysep2058, yyq2058, yy2arr2058 + const yyr2058 bool = false + yyq2058[1] = x.Value != "" + var yynn2058 int + if yyr2058 || yy2arr2058 { r.EncodeArrayStart(3) } else { - yynn2025 = 2 - for _, b := range yyq2025 { + yynn2058 = 2 + for _, b := range yyq2058 { if b { - yynn2025++ + yynn2058++ } } - r.EncodeMapStart(yynn2025) - yynn2025 = 0 + r.EncodeMapStart(yynn2058) + yynn2058 = 0 } - if yyr2025 || yy2arr2025 { + if yyr2058 || yy2arr2058 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym2027 := z.EncBinary() - _ = yym2027 + yym2060 := z.EncBinary() + _ = yym2060 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Key)) @@ -27385,18 +27914,18 @@ func (x *Taint) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("key")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym2028 := z.EncBinary() - _ = yym2028 + yym2061 := z.EncBinary() + _ = yym2061 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Key)) } } - if yyr2025 || yy2arr2025 { + if yyr2058 || yy2arr2058 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2025[1] { - yym2030 := z.EncBinary() - _ = yym2030 + if yyq2058[1] { + yym2063 := z.EncBinary() + _ = yym2063 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Value)) @@ -27405,19 +27934,19 @@ func (x *Taint) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2025[1] { + if yyq2058[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("value")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym2031 := z.EncBinary() - _ = yym2031 + yym2064 := z.EncBinary() + _ = yym2064 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Value)) } } } - if yyr2025 || yy2arr2025 { + if yyr2058 || yy2arr2058 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) x.Effect.CodecEncodeSelf(e) } else { @@ -27426,7 +27955,7 @@ func (x *Taint) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapValue1234) x.Effect.CodecEncodeSelf(e) } - if yyr2025 || yy2arr2025 { + if yyr2058 || yy2arr2058 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -27439,25 +27968,25 @@ func (x *Taint) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym2033 := z.DecBinary() - _ = yym2033 + yym2066 := z.DecBinary() + _ = yym2066 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2034 := r.ContainerType() - if yyct2034 == codecSelferValueTypeMap1234 { - yyl2034 := r.ReadMapStart() - if yyl2034 == 0 { + yyct2067 := r.ContainerType() + if yyct2067 == codecSelferValueTypeMap1234 { + yyl2067 := r.ReadMapStart() + if yyl2067 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2034, d) + x.codecDecodeSelfFromMap(yyl2067, d) } - } else if yyct2034 == codecSelferValueTypeArray1234 { - yyl2034 := r.ReadArrayStart() - if yyl2034 == 0 { + } else if yyct2067 == codecSelferValueTypeArray1234 { + yyl2067 := r.ReadArrayStart() + if yyl2067 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2034, d) + x.codecDecodeSelfFromArray(yyl2067, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -27469,12 +27998,12 @@ func (x *Taint) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys2035Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys2035Slc - var yyhl2035 bool = l >= 0 - for yyj2035 := 0; ; yyj2035++ { - if yyhl2035 { - if yyj2035 >= l { + var yys2068Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys2068Slc + var yyhl2068 bool = l >= 0 + for yyj2068 := 0; ; yyj2068++ { + if yyhl2068 { + if yyj2068 >= l { break } } else { @@ -27483,10 +28012,10 @@ func (x *Taint) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys2035Slc = r.DecodeBytes(yys2035Slc, true, true) - yys2035 := string(yys2035Slc) + yys2068Slc = r.DecodeBytes(yys2068Slc, true, true) + yys2068 := string(yys2068Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys2035 { + switch yys2068 { case "key": if r.TryDecodeAsNil() { x.Key = "" @@ -27506,9 +28035,9 @@ func (x *Taint) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { x.Effect = TaintEffect(r.DecodeString()) } default: - z.DecStructFieldNotFound(-1, yys2035) - } // end switch yys2035 - } // end for yyj2035 + z.DecStructFieldNotFound(-1, yys2068) + } // end switch yys2068 + } // end for yyj2068 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -27516,16 +28045,16 @@ func (x *Taint) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj2039 int - var yyb2039 bool - var yyhl2039 bool = l >= 0 - yyj2039++ - if yyhl2039 { - yyb2039 = yyj2039 > l + var yyj2072 int + var yyb2072 bool + var yyhl2072 bool = l >= 0 + yyj2072++ + if yyhl2072 { + yyb2072 = yyj2072 > l } else { - yyb2039 = r.CheckBreak() + yyb2072 = r.CheckBreak() } - if yyb2039 { + if yyb2072 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -27535,13 +28064,13 @@ func (x *Taint) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.Key = string(r.DecodeString()) } - yyj2039++ - if yyhl2039 { - yyb2039 = yyj2039 > l + yyj2072++ + if yyhl2072 { + yyb2072 = yyj2072 > l } else { - yyb2039 = r.CheckBreak() + yyb2072 = r.CheckBreak() } - if yyb2039 { + if yyb2072 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -27551,13 +28080,13 @@ func (x *Taint) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.Value = string(r.DecodeString()) } - yyj2039++ - if yyhl2039 { - yyb2039 = yyj2039 > l + yyj2072++ + if yyhl2072 { + yyb2072 = yyj2072 > l } else { - yyb2039 = r.CheckBreak() + yyb2072 = r.CheckBreak() } - if yyb2039 { + if yyb2072 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -27568,17 +28097,17 @@ func (x *Taint) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { x.Effect = TaintEffect(r.DecodeString()) } for { - yyj2039++ - if yyhl2039 { - yyb2039 = yyj2039 > l + yyj2072++ + if yyhl2072 { + yyb2072 = yyj2072 > l } else { - yyb2039 = r.CheckBreak() + yyb2072 = r.CheckBreak() } - if yyb2039 { + if yyb2072 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj2039-1, "") + z.DecStructFieldNotFound(yyj2072-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -27587,8 +28116,8 @@ func (x TaintEffect) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r - yym2043 := z.EncBinary() - _ = yym2043 + yym2076 := z.EncBinary() + _ = yym2076 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { @@ -27600,8 +28129,8 @@ func (x *TaintEffect) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym2044 := z.DecBinary() - _ = yym2044 + yym2077 := z.DecBinary() + _ = yym2077 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { @@ -27616,38 +28145,38 @@ func (x *Toleration) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym2045 := z.EncBinary() - _ = yym2045 + yym2078 := z.EncBinary() + _ = yym2078 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - 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 { + yysep2079 := !z.EncBinary() + yy2arr2079 := z.EncBasicHandle().StructToArray + var yyq2079 [4]bool + _, _, _ = yysep2079, yyq2079, yy2arr2079 + const yyr2079 bool = false + yyq2079[0] = x.Key != "" + yyq2079[1] = x.Operator != "" + yyq2079[2] = x.Value != "" + yyq2079[3] = x.Effect != "" + var yynn2079 int + if yyr2079 || yy2arr2079 { r.EncodeArrayStart(4) } else { - yynn2046 = 0 - for _, b := range yyq2046 { + yynn2079 = 0 + for _, b := range yyq2079 { if b { - yynn2046++ + yynn2079++ } } - r.EncodeMapStart(yynn2046) - yynn2046 = 0 + r.EncodeMapStart(yynn2079) + yynn2079 = 0 } - if yyr2046 || yy2arr2046 { + if yyr2079 || yy2arr2079 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2046[0] { - yym2048 := z.EncBinary() - _ = yym2048 + if yyq2079[0] { + yym2081 := z.EncBinary() + _ = yym2081 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Key)) @@ -27656,38 +28185,38 @@ func (x *Toleration) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2046[0] { + if yyq2079[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("key")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym2049 := z.EncBinary() - _ = yym2049 + yym2082 := z.EncBinary() + _ = yym2082 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Key)) } } } - if yyr2046 || yy2arr2046 { + if yyr2079 || yy2arr2079 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2046[1] { + if yyq2079[1] { x.Operator.CodecEncodeSelf(e) } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2046[1] { + if yyq2079[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("operator")) z.EncSendContainerState(codecSelfer_containerMapValue1234) x.Operator.CodecEncodeSelf(e) } } - if yyr2046 || yy2arr2046 { + if yyr2079 || yy2arr2079 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2046[2] { - yym2052 := z.EncBinary() - _ = yym2052 + if yyq2079[2] { + yym2085 := z.EncBinary() + _ = yym2085 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Value)) @@ -27696,34 +28225,34 @@ func (x *Toleration) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2046[2] { + if yyq2079[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("value")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym2053 := z.EncBinary() - _ = yym2053 + yym2086 := z.EncBinary() + _ = yym2086 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Value)) } } } - if yyr2046 || yy2arr2046 { + if yyr2079 || yy2arr2079 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2046[3] { + if yyq2079[3] { x.Effect.CodecEncodeSelf(e) } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2046[3] { + if yyq2079[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("effect")) z.EncSendContainerState(codecSelfer_containerMapValue1234) x.Effect.CodecEncodeSelf(e) } } - if yyr2046 || yy2arr2046 { + if yyr2079 || yy2arr2079 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -27736,25 +28265,25 @@ func (x *Toleration) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym2055 := z.DecBinary() - _ = yym2055 + yym2088 := z.DecBinary() + _ = yym2088 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2056 := r.ContainerType() - if yyct2056 == codecSelferValueTypeMap1234 { - yyl2056 := r.ReadMapStart() - if yyl2056 == 0 { + yyct2089 := r.ContainerType() + if yyct2089 == codecSelferValueTypeMap1234 { + yyl2089 := r.ReadMapStart() + if yyl2089 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2056, d) + x.codecDecodeSelfFromMap(yyl2089, d) } - } else if yyct2056 == codecSelferValueTypeArray1234 { - yyl2056 := r.ReadArrayStart() - if yyl2056 == 0 { + } else if yyct2089 == codecSelferValueTypeArray1234 { + yyl2089 := r.ReadArrayStart() + if yyl2089 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2056, d) + x.codecDecodeSelfFromArray(yyl2089, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -27766,12 +28295,12 @@ func (x *Toleration) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys2057Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys2057Slc - var yyhl2057 bool = l >= 0 - for yyj2057 := 0; ; yyj2057++ { - if yyhl2057 { - if yyj2057 >= l { + var yys2090Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys2090Slc + var yyhl2090 bool = l >= 0 + for yyj2090 := 0; ; yyj2090++ { + if yyhl2090 { + if yyj2090 >= l { break } } else { @@ -27780,10 +28309,10 @@ func (x *Toleration) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys2057Slc = r.DecodeBytes(yys2057Slc, true, true) - yys2057 := string(yys2057Slc) + yys2090Slc = r.DecodeBytes(yys2090Slc, true, true) + yys2090 := string(yys2090Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys2057 { + switch yys2090 { case "key": if r.TryDecodeAsNil() { x.Key = "" @@ -27809,9 +28338,9 @@ func (x *Toleration) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { x.Effect = TaintEffect(r.DecodeString()) } default: - z.DecStructFieldNotFound(-1, yys2057) - } // end switch yys2057 - } // end for yyj2057 + z.DecStructFieldNotFound(-1, yys2090) + } // end switch yys2090 + } // end for yyj2090 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -27819,16 +28348,16 @@ func (x *Toleration) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj2062 int - var yyb2062 bool - var yyhl2062 bool = l >= 0 - yyj2062++ - if yyhl2062 { - yyb2062 = yyj2062 > l + var yyj2095 int + var yyb2095 bool + var yyhl2095 bool = l >= 0 + yyj2095++ + if yyhl2095 { + yyb2095 = yyj2095 > l } else { - yyb2062 = r.CheckBreak() + yyb2095 = r.CheckBreak() } - if yyb2062 { + if yyb2095 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -27838,13 +28367,13 @@ func (x *Toleration) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.Key = string(r.DecodeString()) } - yyj2062++ - if yyhl2062 { - yyb2062 = yyj2062 > l + yyj2095++ + if yyhl2095 { + yyb2095 = yyj2095 > l } else { - yyb2062 = r.CheckBreak() + yyb2095 = r.CheckBreak() } - if yyb2062 { + if yyb2095 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -27854,13 +28383,13 @@ func (x *Toleration) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.Operator = TolerationOperator(r.DecodeString()) } - yyj2062++ - if yyhl2062 { - yyb2062 = yyj2062 > l + yyj2095++ + if yyhl2095 { + yyb2095 = yyj2095 > l } else { - yyb2062 = r.CheckBreak() + yyb2095 = r.CheckBreak() } - if yyb2062 { + if yyb2095 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -27870,13 +28399,13 @@ func (x *Toleration) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.Value = string(r.DecodeString()) } - yyj2062++ - if yyhl2062 { - yyb2062 = yyj2062 > l + yyj2095++ + if yyhl2095 { + yyb2095 = yyj2095 > l } else { - yyb2062 = r.CheckBreak() + yyb2095 = r.CheckBreak() } - if yyb2062 { + if yyb2095 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -27887,17 +28416,17 @@ func (x *Toleration) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { x.Effect = TaintEffect(r.DecodeString()) } for { - yyj2062++ - if yyhl2062 { - yyb2062 = yyj2062 > l + yyj2095++ + if yyhl2095 { + yyb2095 = yyj2095 > l } else { - yyb2062 = r.CheckBreak() + yyb2095 = r.CheckBreak() } - if yyb2062 { + if yyb2095 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj2062-1, "") + z.DecStructFieldNotFound(yyj2095-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -27906,8 +28435,8 @@ func (x TolerationOperator) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r - yym2067 := z.EncBinary() - _ = yym2067 + yym2100 := z.EncBinary() + _ = yym2100 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { @@ -27919,8 +28448,8 @@ func (x *TolerationOperator) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym2068 := z.DecBinary() - _ = yym2068 + yym2101 := z.DecBinary() + _ = yym2101 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { @@ -27935,46 +28464,46 @@ func (x *PodSpec) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym2069 := z.EncBinary() - _ = yym2069 + yym2102 := z.EncBinary() + _ = yym2102 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - 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 { + yysep2103 := !z.EncBinary() + yy2arr2103 := z.EncBasicHandle().StructToArray + var yyq2103 [13]bool + _, _, _ = yysep2103, yyq2103, yy2arr2103 + const yyr2103 bool = false + yyq2103[2] = x.RestartPolicy != "" + yyq2103[3] = x.TerminationGracePeriodSeconds != nil + yyq2103[4] = x.ActiveDeadlineSeconds != nil + yyq2103[5] = x.DNSPolicy != "" + yyq2103[6] = len(x.NodeSelector) != 0 + yyq2103[8] = x.NodeName != "" + yyq2103[9] = x.SecurityContext != nil + yyq2103[10] = len(x.ImagePullSecrets) != 0 + yyq2103[11] = x.Hostname != "" + yyq2103[12] = x.Subdomain != "" + var yynn2103 int + if yyr2103 || yy2arr2103 { r.EncodeArrayStart(13) } else { - yynn2070 = 3 - for _, b := range yyq2070 { + yynn2103 = 3 + for _, b := range yyq2103 { if b { - yynn2070++ + yynn2103++ } } - r.EncodeMapStart(yynn2070) - yynn2070 = 0 + r.EncodeMapStart(yynn2103) + yynn2103 = 0 } - if yyr2070 || yy2arr2070 { + if yyr2103 || yy2arr2103 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.Volumes == nil { r.EncodeNil() } else { - yym2072 := z.EncBinary() - _ = yym2072 + yym2105 := z.EncBinary() + _ = yym2105 if false { } else { h.encSliceVolume(([]Volume)(x.Volumes), e) @@ -27987,21 +28516,21 @@ func (x *PodSpec) CodecEncodeSelf(e *codec1978.Encoder) { if x.Volumes == nil { r.EncodeNil() } else { - yym2073 := z.EncBinary() - _ = yym2073 + yym2106 := z.EncBinary() + _ = yym2106 if false { } else { h.encSliceVolume(([]Volume)(x.Volumes), e) } } } - if yyr2070 || yy2arr2070 { + if yyr2103 || yy2arr2103 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.Containers == nil { r.EncodeNil() } else { - yym2075 := z.EncBinary() - _ = yym2075 + yym2108 := z.EncBinary() + _ = yym2108 if false { } else { h.encSliceContainer(([]Container)(x.Containers), e) @@ -28014,122 +28543,122 @@ func (x *PodSpec) CodecEncodeSelf(e *codec1978.Encoder) { if x.Containers == nil { r.EncodeNil() } else { - yym2076 := z.EncBinary() - _ = yym2076 + yym2109 := z.EncBinary() + _ = yym2109 if false { } else { h.encSliceContainer(([]Container)(x.Containers), e) } } } - if yyr2070 || yy2arr2070 { + if yyr2103 || yy2arr2103 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2070[2] { + if yyq2103[2] { x.RestartPolicy.CodecEncodeSelf(e) } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2070[2] { + if yyq2103[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("restartPolicy")) z.EncSendContainerState(codecSelfer_containerMapValue1234) x.RestartPolicy.CodecEncodeSelf(e) } } - if yyr2070 || yy2arr2070 { + if yyr2103 || yy2arr2103 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2070[3] { + if yyq2103[3] { if x.TerminationGracePeriodSeconds == nil { r.EncodeNil() } else { - yy2079 := *x.TerminationGracePeriodSeconds - yym2080 := z.EncBinary() - _ = yym2080 + yy2112 := *x.TerminationGracePeriodSeconds + yym2113 := z.EncBinary() + _ = yym2113 if false { } else { - r.EncodeInt(int64(yy2079)) + r.EncodeInt(int64(yy2112)) } } } else { r.EncodeNil() } } else { - if yyq2070[3] { + if yyq2103[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("terminationGracePeriodSeconds")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.TerminationGracePeriodSeconds == nil { r.EncodeNil() } else { - yy2081 := *x.TerminationGracePeriodSeconds - yym2082 := z.EncBinary() - _ = yym2082 + yy2114 := *x.TerminationGracePeriodSeconds + yym2115 := z.EncBinary() + _ = yym2115 if false { } else { - r.EncodeInt(int64(yy2081)) + r.EncodeInt(int64(yy2114)) } } } } - if yyr2070 || yy2arr2070 { + if yyr2103 || yy2arr2103 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2070[4] { + if yyq2103[4] { if x.ActiveDeadlineSeconds == nil { r.EncodeNil() } else { - yy2084 := *x.ActiveDeadlineSeconds - yym2085 := z.EncBinary() - _ = yym2085 + yy2117 := *x.ActiveDeadlineSeconds + yym2118 := z.EncBinary() + _ = yym2118 if false { } else { - r.EncodeInt(int64(yy2084)) + r.EncodeInt(int64(yy2117)) } } } else { r.EncodeNil() } } else { - if yyq2070[4] { + if yyq2103[4] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("activeDeadlineSeconds")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.ActiveDeadlineSeconds == nil { r.EncodeNil() } else { - yy2086 := *x.ActiveDeadlineSeconds - yym2087 := z.EncBinary() - _ = yym2087 + yy2119 := *x.ActiveDeadlineSeconds + yym2120 := z.EncBinary() + _ = yym2120 if false { } else { - r.EncodeInt(int64(yy2086)) + r.EncodeInt(int64(yy2119)) } } } } - if yyr2070 || yy2arr2070 { + if yyr2103 || yy2arr2103 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2070[5] { + if yyq2103[5] { x.DNSPolicy.CodecEncodeSelf(e) } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2070[5] { + if yyq2103[5] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("dnsPolicy")) z.EncSendContainerState(codecSelfer_containerMapValue1234) x.DNSPolicy.CodecEncodeSelf(e) } } - if yyr2070 || yy2arr2070 { + if yyr2103 || yy2arr2103 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2070[6] { + if yyq2103[6] { if x.NodeSelector == nil { r.EncodeNil() } else { - yym2090 := z.EncBinary() - _ = yym2090 + yym2123 := z.EncBinary() + _ = yym2123 if false { } else { z.F.EncMapStringStringV(x.NodeSelector, false, e) @@ -28139,15 +28668,15 @@ func (x *PodSpec) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq2070[6] { + if yyq2103[6] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("nodeSelector")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.NodeSelector == nil { r.EncodeNil() } else { - yym2091 := z.EncBinary() - _ = yym2091 + yym2124 := z.EncBinary() + _ = yym2124 if false { } else { z.F.EncMapStringStringV(x.NodeSelector, false, e) @@ -28155,10 +28684,10 @@ func (x *PodSpec) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr2070 || yy2arr2070 { + if yyr2103 || yy2arr2103 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym2093 := z.EncBinary() - _ = yym2093 + yym2126 := z.EncBinary() + _ = yym2126 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.ServiceAccountName)) @@ -28167,18 +28696,18 @@ func (x *PodSpec) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("serviceAccountName")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym2094 := z.EncBinary() - _ = yym2094 + yym2127 := z.EncBinary() + _ = yym2127 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.ServiceAccountName)) } } - if yyr2070 || yy2arr2070 { + if yyr2103 || yy2arr2103 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2070[8] { - yym2096 := z.EncBinary() - _ = yym2096 + if yyq2103[8] { + yym2129 := z.EncBinary() + _ = yym2129 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.NodeName)) @@ -28187,21 +28716,21 @@ func (x *PodSpec) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2070[8] { + if yyq2103[8] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("nodeName")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym2097 := z.EncBinary() - _ = yym2097 + yym2130 := z.EncBinary() + _ = yym2130 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.NodeName)) } } } - if yyr2070 || yy2arr2070 { + if yyr2103 || yy2arr2103 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2070[9] { + if yyq2103[9] { if x.SecurityContext == nil { r.EncodeNil() } else { @@ -28211,7 +28740,7 @@ func (x *PodSpec) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq2070[9] { + if yyq2103[9] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("securityContext")) z.EncSendContainerState(codecSelfer_containerMapValue1234) @@ -28222,14 +28751,14 @@ func (x *PodSpec) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr2070 || yy2arr2070 { + if yyr2103 || yy2arr2103 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2070[10] { + if yyq2103[10] { if x.ImagePullSecrets == nil { r.EncodeNil() } else { - yym2100 := z.EncBinary() - _ = yym2100 + yym2133 := z.EncBinary() + _ = yym2133 if false { } else { h.encSliceLocalObjectReference(([]LocalObjectReference)(x.ImagePullSecrets), e) @@ -28239,15 +28768,15 @@ func (x *PodSpec) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq2070[10] { + if yyq2103[10] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("imagePullSecrets")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.ImagePullSecrets == nil { r.EncodeNil() } else { - yym2101 := z.EncBinary() - _ = yym2101 + yym2134 := z.EncBinary() + _ = yym2134 if false { } else { h.encSliceLocalObjectReference(([]LocalObjectReference)(x.ImagePullSecrets), e) @@ -28255,11 +28784,11 @@ func (x *PodSpec) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr2070 || yy2arr2070 { + if yyr2103 || yy2arr2103 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2070[11] { - yym2103 := z.EncBinary() - _ = yym2103 + if yyq2103[11] { + yym2136 := z.EncBinary() + _ = yym2136 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Hostname)) @@ -28268,23 +28797,23 @@ func (x *PodSpec) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2070[11] { + if yyq2103[11] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("hostname")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym2104 := z.EncBinary() - _ = yym2104 + yym2137 := z.EncBinary() + _ = yym2137 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Hostname)) } } } - if yyr2070 || yy2arr2070 { + if yyr2103 || yy2arr2103 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2070[12] { - yym2106 := z.EncBinary() - _ = yym2106 + if yyq2103[12] { + yym2139 := z.EncBinary() + _ = yym2139 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Subdomain)) @@ -28293,19 +28822,19 @@ func (x *PodSpec) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2070[12] { + if yyq2103[12] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("subdomain")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym2107 := z.EncBinary() - _ = yym2107 + yym2140 := z.EncBinary() + _ = yym2140 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Subdomain)) } } } - if yyr2070 || yy2arr2070 { + if yyr2103 || yy2arr2103 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -28318,25 +28847,25 @@ func (x *PodSpec) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym2108 := z.DecBinary() - _ = yym2108 + yym2141 := z.DecBinary() + _ = yym2141 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2109 := r.ContainerType() - if yyct2109 == codecSelferValueTypeMap1234 { - yyl2109 := r.ReadMapStart() - if yyl2109 == 0 { + yyct2142 := r.ContainerType() + if yyct2142 == codecSelferValueTypeMap1234 { + yyl2142 := r.ReadMapStart() + if yyl2142 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2109, d) + x.codecDecodeSelfFromMap(yyl2142, d) } - } else if yyct2109 == codecSelferValueTypeArray1234 { - yyl2109 := r.ReadArrayStart() - if yyl2109 == 0 { + } else if yyct2142 == codecSelferValueTypeArray1234 { + yyl2142 := r.ReadArrayStart() + if yyl2142 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2109, d) + x.codecDecodeSelfFromArray(yyl2142, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -28348,12 +28877,12 @@ func (x *PodSpec) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys2110Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys2110Slc - var yyhl2110 bool = l >= 0 - for yyj2110 := 0; ; yyj2110++ { - if yyhl2110 { - if yyj2110 >= l { + var yys2143Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys2143Slc + var yyhl2143 bool = l >= 0 + for yyj2143 := 0; ; yyj2143++ { + if yyhl2143 { + if yyj2143 >= l { break } } else { @@ -28362,32 +28891,32 @@ func (x *PodSpec) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys2110Slc = r.DecodeBytes(yys2110Slc, true, true) - yys2110 := string(yys2110Slc) + yys2143Slc = r.DecodeBytes(yys2143Slc, true, true) + yys2143 := string(yys2143Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys2110 { + switch yys2143 { case "volumes": if r.TryDecodeAsNil() { x.Volumes = nil } else { - yyv2111 := &x.Volumes - yym2112 := z.DecBinary() - _ = yym2112 + yyv2144 := &x.Volumes + yym2145 := z.DecBinary() + _ = yym2145 if false { } else { - h.decSliceVolume((*[]Volume)(yyv2111), d) + h.decSliceVolume((*[]Volume)(yyv2144), d) } } case "containers": if r.TryDecodeAsNil() { x.Containers = nil } else { - yyv2113 := &x.Containers - yym2114 := z.DecBinary() - _ = yym2114 + yyv2146 := &x.Containers + yym2147 := z.DecBinary() + _ = yym2147 if false { } else { - h.decSliceContainer((*[]Container)(yyv2113), d) + h.decSliceContainer((*[]Container)(yyv2146), d) } } case "restartPolicy": @@ -28405,8 +28934,8 @@ func (x *PodSpec) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { if x.TerminationGracePeriodSeconds == nil { x.TerminationGracePeriodSeconds = new(int64) } - yym2117 := z.DecBinary() - _ = yym2117 + yym2150 := z.DecBinary() + _ = yym2150 if false { } else { *((*int64)(x.TerminationGracePeriodSeconds)) = int64(r.DecodeInt(64)) @@ -28421,8 +28950,8 @@ func (x *PodSpec) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { if x.ActiveDeadlineSeconds == nil { x.ActiveDeadlineSeconds = new(int64) } - yym2119 := z.DecBinary() - _ = yym2119 + yym2152 := z.DecBinary() + _ = yym2152 if false { } else { *((*int64)(x.ActiveDeadlineSeconds)) = int64(r.DecodeInt(64)) @@ -28438,12 +28967,12 @@ func (x *PodSpec) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.NodeSelector = nil } else { - yyv2121 := &x.NodeSelector - yym2122 := z.DecBinary() - _ = yym2122 + yyv2154 := &x.NodeSelector + yym2155 := z.DecBinary() + _ = yym2155 if false { } else { - z.F.DecMapStringStringX(yyv2121, false, d) + z.F.DecMapStringStringX(yyv2154, false, d) } } case "serviceAccountName": @@ -28473,12 +29002,12 @@ func (x *PodSpec) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.ImagePullSecrets = nil } else { - yyv2126 := &x.ImagePullSecrets - yym2127 := z.DecBinary() - _ = yym2127 + yyv2159 := &x.ImagePullSecrets + yym2160 := z.DecBinary() + _ = yym2160 if false { } else { - h.decSliceLocalObjectReference((*[]LocalObjectReference)(yyv2126), d) + h.decSliceLocalObjectReference((*[]LocalObjectReference)(yyv2159), d) } } case "hostname": @@ -28494,441 +29023,13 @@ func (x *PodSpec) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { x.Subdomain = string(r.DecodeString()) } default: - z.DecStructFieldNotFound(-1, yys2110) - } // end switch yys2110 - } // end for yyj2110 + z.DecStructFieldNotFound(-1, yys2143) + } // end switch yys2143 + } // end for yyj2143 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 yyj2130 int - var yyb2130 bool - var yyhl2130 bool = l >= 0 - yyj2130++ - if yyhl2130 { - yyb2130 = yyj2130 > l - } else { - yyb2130 = r.CheckBreak() - } - if yyb2130 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Volumes = nil - } else { - yyv2131 := &x.Volumes - yym2132 := z.DecBinary() - _ = yym2132 - if false { - } else { - h.decSliceVolume((*[]Volume)(yyv2131), d) - } - } - yyj2130++ - if yyhl2130 { - yyb2130 = yyj2130 > l - } else { - yyb2130 = r.CheckBreak() - } - if yyb2130 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Containers = nil - } else { - yyv2133 := &x.Containers - yym2134 := z.DecBinary() - _ = yym2134 - if false { - } else { - h.decSliceContainer((*[]Container)(yyv2133), d) - } - } - yyj2130++ - if yyhl2130 { - yyb2130 = yyj2130 > l - } else { - yyb2130 = r.CheckBreak() - } - if yyb2130 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.RestartPolicy = "" - } else { - x.RestartPolicy = RestartPolicy(r.DecodeString()) - } - yyj2130++ - if yyhl2130 { - yyb2130 = yyj2130 > l - } else { - yyb2130 = r.CheckBreak() - } - if yyb2130 { - 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) - } - yym2137 := z.DecBinary() - _ = yym2137 - if false { - } else { - *((*int64)(x.TerminationGracePeriodSeconds)) = int64(r.DecodeInt(64)) - } - } - yyj2130++ - if yyhl2130 { - yyb2130 = yyj2130 > l - } else { - yyb2130 = r.CheckBreak() - } - if yyb2130 { - 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) - } - yym2139 := z.DecBinary() - _ = yym2139 - if false { - } else { - *((*int64)(x.ActiveDeadlineSeconds)) = int64(r.DecodeInt(64)) - } - } - yyj2130++ - if yyhl2130 { - yyb2130 = yyj2130 > l - } else { - yyb2130 = r.CheckBreak() - } - if yyb2130 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.DNSPolicy = "" - } else { - x.DNSPolicy = DNSPolicy(r.DecodeString()) - } - yyj2130++ - if yyhl2130 { - yyb2130 = yyj2130 > l - } else { - yyb2130 = r.CheckBreak() - } - if yyb2130 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.NodeSelector = nil - } else { - yyv2141 := &x.NodeSelector - yym2142 := z.DecBinary() - _ = yym2142 - if false { - } else { - z.F.DecMapStringStringX(yyv2141, false, d) - } - } - yyj2130++ - if yyhl2130 { - yyb2130 = yyj2130 > l - } else { - yyb2130 = r.CheckBreak() - } - if yyb2130 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.ServiceAccountName = "" - } else { - x.ServiceAccountName = string(r.DecodeString()) - } - yyj2130++ - if yyhl2130 { - yyb2130 = yyj2130 > l - } else { - yyb2130 = r.CheckBreak() - } - if yyb2130 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.NodeName = "" - } else { - x.NodeName = string(r.DecodeString()) - } - yyj2130++ - if yyhl2130 { - yyb2130 = yyj2130 > l - } else { - yyb2130 = r.CheckBreak() - } - if yyb2130 { - 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) - } - yyj2130++ - if yyhl2130 { - yyb2130 = yyj2130 > l - } else { - yyb2130 = r.CheckBreak() - } - if yyb2130 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.ImagePullSecrets = nil - } else { - yyv2146 := &x.ImagePullSecrets - yym2147 := z.DecBinary() - _ = yym2147 - if false { - } else { - h.decSliceLocalObjectReference((*[]LocalObjectReference)(yyv2146), d) - } - } - yyj2130++ - if yyhl2130 { - yyb2130 = yyj2130 > l - } else { - yyb2130 = r.CheckBreak() - } - if yyb2130 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Hostname = "" - } else { - x.Hostname = string(r.DecodeString()) - } - yyj2130++ - if yyhl2130 { - yyb2130 = yyj2130 > l - } else { - yyb2130 = r.CheckBreak() - } - if yyb2130 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Subdomain = "" - } else { - x.Subdomain = string(r.DecodeString()) - } - for { - 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 @@ -28947,9 +29048,15 @@ func (x *Sysctl) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.Name = "" + x.Volumes = nil } else { - x.Name = string(r.DecodeString()) + yyv2164 := &x.Volumes + yym2165 := z.DecBinary() + _ = yym2165 + if false { + } else { + h.decSliceVolume((*[]Volume)(yyv2164), d) + } } yyj2163++ if yyhl2163 { @@ -28963,9 +29070,228 @@ func (x *Sysctl) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.Value = "" + x.Containers = nil } else { - x.Value = string(r.DecodeString()) + yyv2166 := &x.Containers + yym2167 := z.DecBinary() + _ = yym2167 + if false { + } else { + h.decSliceContainer((*[]Container)(yyv2166), 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.RestartPolicy = "" + } else { + x.RestartPolicy = RestartPolicy(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() { + if x.TerminationGracePeriodSeconds != nil { + x.TerminationGracePeriodSeconds = nil + } + } else { + if x.TerminationGracePeriodSeconds == nil { + x.TerminationGracePeriodSeconds = new(int64) + } + yym2170 := z.DecBinary() + _ = yym2170 + if false { + } else { + *((*int64)(x.TerminationGracePeriodSeconds)) = int64(r.DecodeInt(64)) + } + } + yyj2163++ + if yyhl2163 { + yyb2163 = yyj2163 > l + } else { + yyb2163 = r.CheckBreak() + } + if yyb2163 { + 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) + } + yym2172 := z.DecBinary() + _ = yym2172 + if false { + } else { + *((*int64)(x.ActiveDeadlineSeconds)) = int64(r.DecodeInt(64)) + } + } + 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.DNSPolicy = "" + } else { + x.DNSPolicy = DNSPolicy(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.NodeSelector = nil + } else { + yyv2174 := &x.NodeSelector + yym2175 := z.DecBinary() + _ = yym2175 + if false { + } else { + z.F.DecMapStringStringX(yyv2174, false, 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.ServiceAccountName = "" + } else { + x.ServiceAccountName = 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.NodeName = "" + } else { + x.NodeName = 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() { + if x.SecurityContext != nil { + x.SecurityContext = nil + } + } else { + if x.SecurityContext == nil { + x.SecurityContext = new(PodSecurityContext) + } + x.SecurityContext.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.ImagePullSecrets = nil + } else { + yyv2179 := &x.ImagePullSecrets + yym2180 := z.DecBinary() + _ = yym2180 + if false { + } else { + h.decSliceLocalObjectReference((*[]LocalObjectReference)(yyv2179), 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.Hostname = "" + } else { + x.Hostname = 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.Subdomain = "" + } else { + x.Subdomain = string(r.DecodeString()) } for { yyj2163++ @@ -28983,6 +29309,209 @@ func (x *Sysctl) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { 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 { + yym2183 := z.EncBinary() + _ = yym2183 + if false { + } else if z.HasExtensions() && z.EncExt(x) { + } else { + yysep2184 := !z.EncBinary() + yy2arr2184 := z.EncBasicHandle().StructToArray + var yyq2184 [2]bool + _, _, _ = yysep2184, yyq2184, yy2arr2184 + const yyr2184 bool = false + var yynn2184 int + if yyr2184 || yy2arr2184 { + r.EncodeArrayStart(2) + } else { + yynn2184 = 2 + for _, b := range yyq2184 { + if b { + yynn2184++ + } + } + r.EncodeMapStart(yynn2184) + yynn2184 = 0 + } + if yyr2184 || yy2arr2184 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yym2186 := z.EncBinary() + _ = yym2186 + 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) + yym2187 := z.EncBinary() + _ = yym2187 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Name)) + } + } + if yyr2184 || yy2arr2184 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yym2189 := z.EncBinary() + _ = yym2189 + 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) + yym2190 := z.EncBinary() + _ = yym2190 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Value)) + } + } + if yyr2184 || yy2arr2184 { + 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 + yym2191 := z.DecBinary() + _ = yym2191 + if false { + } else if z.HasExtensions() && z.DecExt(x) { + } else { + yyct2192 := r.ContainerType() + if yyct2192 == codecSelferValueTypeMap1234 { + yyl2192 := r.ReadMapStart() + if yyl2192 == 0 { + z.DecSendContainerState(codecSelfer_containerMapEnd1234) + } else { + x.codecDecodeSelfFromMap(yyl2192, d) + } + } else if yyct2192 == codecSelferValueTypeArray1234 { + yyl2192 := r.ReadArrayStart() + if yyl2192 == 0 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + x.codecDecodeSelfFromArray(yyl2192, 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 yys2193Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys2193Slc + var yyhl2193 bool = l >= 0 + for yyj2193 := 0; ; yyj2193++ { + if yyhl2193 { + if yyj2193 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + z.DecSendContainerState(codecSelfer_containerMapKey1234) + yys2193Slc = r.DecodeBytes(yys2193Slc, true, true) + yys2193 := string(yys2193Slc) + z.DecSendContainerState(codecSelfer_containerMapValue1234) + switch yys2193 { + 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, yys2193) + } // end switch yys2193 + } // end for yyj2193 + 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 yyj2196 int + var yyb2196 bool + var yyhl2196 bool = l >= 0 + yyj2196++ + if yyhl2196 { + yyb2196 = yyj2196 > l + } else { + yyb2196 = r.CheckBreak() + } + if yyb2196 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Name = "" + } else { + x.Name = string(r.DecodeString()) + } + yyj2196++ + if yyhl2196 { + yyb2196 = yyj2196 > l + } else { + yyb2196 = r.CheckBreak() + } + if yyb2196 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Value = "" + } else { + x.Value = string(r.DecodeString()) + } + for { + yyj2196++ + if yyhl2196 { + yyb2196 = yyj2196 > l + } else { + yyb2196 = r.CheckBreak() + } + if yyb2196 { + break + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + z.DecStructFieldNotFound(yyj2196-1, "") + } + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) +} + func (x *PodSecurityContext) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) @@ -28990,42 +29519,42 @@ func (x *PodSecurityContext) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym2166 := z.EncBinary() - _ = yym2166 + yym2199 := z.EncBinary() + _ = yym2199 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - 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 { + yysep2200 := !z.EncBinary() + yy2arr2200 := z.EncBasicHandle().StructToArray + var yyq2200 [8]bool + _, _, _ = yysep2200, yyq2200, yy2arr2200 + const yyr2200 bool = false + yyq2200[0] = x.HostNetwork != false + yyq2200[1] = x.HostPID != false + yyq2200[2] = x.HostIPC != false + yyq2200[3] = x.SELinuxOptions != nil + yyq2200[4] = x.RunAsUser != nil + yyq2200[5] = x.RunAsNonRoot != nil + yyq2200[6] = len(x.SupplementalGroups) != 0 + yyq2200[7] = x.FSGroup != nil + var yynn2200 int + if yyr2200 || yy2arr2200 { r.EncodeArrayStart(8) } else { - yynn2167 = 0 - for _, b := range yyq2167 { + yynn2200 = 0 + for _, b := range yyq2200 { if b { - yynn2167++ + yynn2200++ } } - r.EncodeMapStart(yynn2167) - yynn2167 = 0 + r.EncodeMapStart(yynn2200) + yynn2200 = 0 } - if yyr2167 || yy2arr2167 { + if yyr2200 || yy2arr2200 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2167[0] { - yym2169 := z.EncBinary() - _ = yym2169 + if yyq2200[0] { + yym2202 := z.EncBinary() + _ = yym2202 if false { } else { r.EncodeBool(bool(x.HostNetwork)) @@ -29034,23 +29563,23 @@ func (x *PodSecurityContext) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeBool(false) } } else { - if yyq2167[0] { + if yyq2200[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("hostNetwork")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym2170 := z.EncBinary() - _ = yym2170 + yym2203 := z.EncBinary() + _ = yym2203 if false { } else { r.EncodeBool(bool(x.HostNetwork)) } } } - if yyr2167 || yy2arr2167 { + if yyr2200 || yy2arr2200 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2167[1] { - yym2172 := z.EncBinary() - _ = yym2172 + if yyq2200[1] { + yym2205 := z.EncBinary() + _ = yym2205 if false { } else { r.EncodeBool(bool(x.HostPID)) @@ -29059,23 +29588,23 @@ func (x *PodSecurityContext) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeBool(false) } } else { - if yyq2167[1] { + if yyq2200[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("hostPID")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym2173 := z.EncBinary() - _ = yym2173 + yym2206 := z.EncBinary() + _ = yym2206 if false { } else { r.EncodeBool(bool(x.HostPID)) } } } - if yyr2167 || yy2arr2167 { + if yyr2200 || yy2arr2200 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2167[2] { - yym2175 := z.EncBinary() - _ = yym2175 + if yyq2200[2] { + yym2208 := z.EncBinary() + _ = yym2208 if false { } else { r.EncodeBool(bool(x.HostIPC)) @@ -29084,21 +29613,21 @@ func (x *PodSecurityContext) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeBool(false) } } else { - if yyq2167[2] { + if yyq2200[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("hostIPC")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym2176 := z.EncBinary() - _ = yym2176 + yym2209 := z.EncBinary() + _ = yym2209 if false { } else { r.EncodeBool(bool(x.HostIPC)) } } } - if yyr2167 || yy2arr2167 { + if yyr2200 || yy2arr2200 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2167[3] { + if yyq2200[3] { if x.SELinuxOptions == nil { r.EncodeNil() } else { @@ -29108,7 +29637,7 @@ func (x *PodSecurityContext) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq2167[3] { + if yyq2200[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("seLinuxOptions")) z.EncSendContainerState(codecSelfer_containerMapValue1234) @@ -29119,84 +29648,84 @@ func (x *PodSecurityContext) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr2167 || yy2arr2167 { + if yyr2200 || yy2arr2200 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2167[4] { + if yyq2200[4] { if x.RunAsUser == nil { r.EncodeNil() } else { - yy2179 := *x.RunAsUser - yym2180 := z.EncBinary() - _ = yym2180 + yy2212 := *x.RunAsUser + yym2213 := z.EncBinary() + _ = yym2213 if false { } else { - r.EncodeInt(int64(yy2179)) + r.EncodeInt(int64(yy2212)) } } } else { r.EncodeNil() } } else { - if yyq2167[4] { + if yyq2200[4] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("runAsUser")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.RunAsUser == nil { r.EncodeNil() } else { - yy2181 := *x.RunAsUser - yym2182 := z.EncBinary() - _ = yym2182 + yy2214 := *x.RunAsUser + yym2215 := z.EncBinary() + _ = yym2215 if false { } else { - r.EncodeInt(int64(yy2181)) + r.EncodeInt(int64(yy2214)) } } } } - if yyr2167 || yy2arr2167 { + if yyr2200 || yy2arr2200 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2167[5] { + if yyq2200[5] { if x.RunAsNonRoot == nil { r.EncodeNil() } else { - yy2184 := *x.RunAsNonRoot - yym2185 := z.EncBinary() - _ = yym2185 + yy2217 := *x.RunAsNonRoot + yym2218 := z.EncBinary() + _ = yym2218 if false { } else { - r.EncodeBool(bool(yy2184)) + r.EncodeBool(bool(yy2217)) } } } else { r.EncodeNil() } } else { - if yyq2167[5] { + if yyq2200[5] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("runAsNonRoot")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.RunAsNonRoot == nil { r.EncodeNil() } else { - yy2186 := *x.RunAsNonRoot - yym2187 := z.EncBinary() - _ = yym2187 + yy2219 := *x.RunAsNonRoot + yym2220 := z.EncBinary() + _ = yym2220 if false { } else { - r.EncodeBool(bool(yy2186)) + r.EncodeBool(bool(yy2219)) } } } } - if yyr2167 || yy2arr2167 { + if yyr2200 || yy2arr2200 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2167[6] { + if yyq2200[6] { if x.SupplementalGroups == nil { r.EncodeNil() } else { - yym2189 := z.EncBinary() - _ = yym2189 + yym2222 := z.EncBinary() + _ = yym2222 if false { } else { z.F.EncSliceInt64V(x.SupplementalGroups, false, e) @@ -29206,15 +29735,15 @@ func (x *PodSecurityContext) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq2167[6] { + if yyq2200[6] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("supplementalGroups")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.SupplementalGroups == nil { r.EncodeNil() } else { - yym2190 := z.EncBinary() - _ = yym2190 + yym2223 := z.EncBinary() + _ = yym2223 if false { } else { z.F.EncSliceInt64V(x.SupplementalGroups, false, e) @@ -29222,42 +29751,42 @@ func (x *PodSecurityContext) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr2167 || yy2arr2167 { + if yyr2200 || yy2arr2200 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2167[7] { + if yyq2200[7] { if x.FSGroup == nil { r.EncodeNil() } else { - yy2192 := *x.FSGroup - yym2193 := z.EncBinary() - _ = yym2193 + yy2225 := *x.FSGroup + yym2226 := z.EncBinary() + _ = yym2226 if false { } else { - r.EncodeInt(int64(yy2192)) + r.EncodeInt(int64(yy2225)) } } } else { r.EncodeNil() } } else { - if yyq2167[7] { + if yyq2200[7] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("fsGroup")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.FSGroup == nil { r.EncodeNil() } else { - yy2194 := *x.FSGroup - yym2195 := z.EncBinary() - _ = yym2195 + yy2227 := *x.FSGroup + yym2228 := z.EncBinary() + _ = yym2228 if false { } else { - r.EncodeInt(int64(yy2194)) + r.EncodeInt(int64(yy2227)) } } } } - if yyr2167 || yy2arr2167 { + if yyr2200 || yy2arr2200 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -29270,25 +29799,25 @@ func (x *PodSecurityContext) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym2196 := z.DecBinary() - _ = yym2196 + yym2229 := z.DecBinary() + _ = yym2229 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2197 := r.ContainerType() - if yyct2197 == codecSelferValueTypeMap1234 { - yyl2197 := r.ReadMapStart() - if yyl2197 == 0 { + yyct2230 := r.ContainerType() + if yyct2230 == codecSelferValueTypeMap1234 { + yyl2230 := r.ReadMapStart() + if yyl2230 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2197, d) + x.codecDecodeSelfFromMap(yyl2230, d) } - } else if yyct2197 == codecSelferValueTypeArray1234 { - yyl2197 := r.ReadArrayStart() - if yyl2197 == 0 { + } else if yyct2230 == codecSelferValueTypeArray1234 { + yyl2230 := r.ReadArrayStart() + if yyl2230 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2197, d) + x.codecDecodeSelfFromArray(yyl2230, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -29300,12 +29829,12 @@ func (x *PodSecurityContext) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys2198Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys2198Slc - var yyhl2198 bool = l >= 0 - for yyj2198 := 0; ; yyj2198++ { - if yyhl2198 { - if yyj2198 >= l { + 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 { @@ -29314,10 +29843,10 @@ func (x *PodSecurityContext) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys2198Slc = r.DecodeBytes(yys2198Slc, true, true) - yys2198 := string(yys2198Slc) + yys2231Slc = r.DecodeBytes(yys2231Slc, true, true) + yys2231 := string(yys2231Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys2198 { + switch yys2231 { case "hostNetwork": if r.TryDecodeAsNil() { x.HostNetwork = false @@ -29356,8 +29885,8 @@ func (x *PodSecurityContext) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) if x.RunAsUser == nil { x.RunAsUser = new(int64) } - yym2204 := z.DecBinary() - _ = yym2204 + yym2237 := z.DecBinary() + _ = yym2237 if false { } else { *((*int64)(x.RunAsUser)) = int64(r.DecodeInt(64)) @@ -29372,8 +29901,8 @@ func (x *PodSecurityContext) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) if x.RunAsNonRoot == nil { x.RunAsNonRoot = new(bool) } - yym2206 := z.DecBinary() - _ = yym2206 + yym2239 := z.DecBinary() + _ = yym2239 if false { } else { *((*bool)(x.RunAsNonRoot)) = r.DecodeBool() @@ -29383,12 +29912,12 @@ func (x *PodSecurityContext) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) if r.TryDecodeAsNil() { x.SupplementalGroups = nil } else { - yyv2207 := &x.SupplementalGroups - yym2208 := z.DecBinary() - _ = yym2208 + yyv2240 := &x.SupplementalGroups + yym2241 := z.DecBinary() + _ = yym2241 if false { } else { - z.F.DecSliceInt64X(yyv2207, false, d) + z.F.DecSliceInt64X(yyv2240, false, d) } } case "fsGroup": @@ -29400,17 +29929,17 @@ func (x *PodSecurityContext) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) if x.FSGroup == nil { x.FSGroup = new(int64) } - yym2210 := z.DecBinary() - _ = yym2210 + yym2243 := z.DecBinary() + _ = yym2243 if false { } else { *((*int64)(x.FSGroup)) = int64(r.DecodeInt(64)) } } default: - z.DecStructFieldNotFound(-1, yys2198) - } // end switch yys2198 - } // end for yyj2198 + z.DecStructFieldNotFound(-1, yys2231) + } // end switch yys2231 + } // end for yyj2231 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -29418,16 +29947,16 @@ func (x *PodSecurityContext) codecDecodeSelfFromArray(l int, d *codec1978.Decode var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj2211 int - var yyb2211 bool - var yyhl2211 bool = l >= 0 - yyj2211++ - if yyhl2211 { - yyb2211 = yyj2211 > l + var yyj2244 int + var yyb2244 bool + var yyhl2244 bool = l >= 0 + yyj2244++ + if yyhl2244 { + yyb2244 = yyj2244 > l } else { - yyb2211 = r.CheckBreak() + yyb2244 = r.CheckBreak() } - if yyb2211 { + if yyb2244 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -29437,13 +29966,13 @@ func (x *PodSecurityContext) codecDecodeSelfFromArray(l int, d *codec1978.Decode } else { x.HostNetwork = bool(r.DecodeBool()) } - yyj2211++ - if yyhl2211 { - yyb2211 = yyj2211 > l + yyj2244++ + if yyhl2244 { + yyb2244 = yyj2244 > l } else { - yyb2211 = r.CheckBreak() + yyb2244 = r.CheckBreak() } - if yyb2211 { + if yyb2244 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -29453,13 +29982,13 @@ func (x *PodSecurityContext) codecDecodeSelfFromArray(l int, d *codec1978.Decode } else { x.HostPID = bool(r.DecodeBool()) } - yyj2211++ - if yyhl2211 { - yyb2211 = yyj2211 > l + yyj2244++ + if yyhl2244 { + yyb2244 = yyj2244 > l } else { - yyb2211 = r.CheckBreak() + yyb2244 = r.CheckBreak() } - if yyb2211 { + if yyb2244 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -29469,13 +29998,13 @@ func (x *PodSecurityContext) codecDecodeSelfFromArray(l int, d *codec1978.Decode } else { x.HostIPC = bool(r.DecodeBool()) } - yyj2211++ - if yyhl2211 { - yyb2211 = yyj2211 > l + yyj2244++ + if yyhl2244 { + yyb2244 = yyj2244 > l } else { - yyb2211 = r.CheckBreak() + yyb2244 = r.CheckBreak() } - if yyb2211 { + if yyb2244 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -29490,13 +30019,13 @@ func (x *PodSecurityContext) codecDecodeSelfFromArray(l int, d *codec1978.Decode } x.SELinuxOptions.CodecDecodeSelf(d) } - yyj2211++ - if yyhl2211 { - yyb2211 = yyj2211 > l + yyj2244++ + if yyhl2244 { + yyb2244 = yyj2244 > l } else { - yyb2211 = r.CheckBreak() + yyb2244 = r.CheckBreak() } - if yyb2211 { + if yyb2244 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -29509,20 +30038,20 @@ func (x *PodSecurityContext) codecDecodeSelfFromArray(l int, d *codec1978.Decode if x.RunAsUser == nil { x.RunAsUser = new(int64) } - yym2217 := z.DecBinary() - _ = yym2217 + yym2250 := z.DecBinary() + _ = yym2250 if false { } else { *((*int64)(x.RunAsUser)) = int64(r.DecodeInt(64)) } } - yyj2211++ - if yyhl2211 { - yyb2211 = yyj2211 > l + yyj2244++ + if yyhl2244 { + yyb2244 = yyj2244 > l } else { - yyb2211 = r.CheckBreak() + yyb2244 = r.CheckBreak() } - if yyb2211 { + if yyb2244 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -29535,20 +30064,20 @@ func (x *PodSecurityContext) codecDecodeSelfFromArray(l int, d *codec1978.Decode if x.RunAsNonRoot == nil { x.RunAsNonRoot = new(bool) } - yym2219 := z.DecBinary() - _ = yym2219 + yym2252 := z.DecBinary() + _ = yym2252 if false { } else { *((*bool)(x.RunAsNonRoot)) = r.DecodeBool() } } - yyj2211++ - if yyhl2211 { - yyb2211 = yyj2211 > l + yyj2244++ + if yyhl2244 { + yyb2244 = yyj2244 > l } else { - yyb2211 = r.CheckBreak() + yyb2244 = r.CheckBreak() } - if yyb2211 { + if yyb2244 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -29556,21 +30085,21 @@ func (x *PodSecurityContext) codecDecodeSelfFromArray(l int, d *codec1978.Decode if r.TryDecodeAsNil() { x.SupplementalGroups = nil } else { - yyv2220 := &x.SupplementalGroups - yym2221 := z.DecBinary() - _ = yym2221 + yyv2253 := &x.SupplementalGroups + yym2254 := z.DecBinary() + _ = yym2254 if false { } else { - z.F.DecSliceInt64X(yyv2220, false, d) + z.F.DecSliceInt64X(yyv2253, false, d) } } - yyj2211++ - if yyhl2211 { - yyb2211 = yyj2211 > l + yyj2244++ + if yyhl2244 { + yyb2244 = yyj2244 > l } else { - yyb2211 = r.CheckBreak() + yyb2244 = r.CheckBreak() } - if yyb2211 { + if yyb2244 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -29583,25 +30112,25 @@ func (x *PodSecurityContext) codecDecodeSelfFromArray(l int, d *codec1978.Decode if x.FSGroup == nil { x.FSGroup = new(int64) } - yym2223 := z.DecBinary() - _ = yym2223 + yym2256 := z.DecBinary() + _ = yym2256 if false { } else { *((*int64)(x.FSGroup)) = int64(r.DecodeInt(64)) } } for { - yyj2211++ - if yyhl2211 { - yyb2211 = yyj2211 > l + yyj2244++ + if yyhl2244 { + yyb2244 = yyj2244 > l } else { - yyb2211 = r.CheckBreak() + yyb2244 = r.CheckBreak() } - if yyb2211 { + if yyb2244 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj2211-1, "") + z.DecStructFieldNotFound(yyj2244-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -29613,60 +30142,60 @@ func (x *PodStatus) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym2224 := z.EncBinary() - _ = yym2224 + yym2257 := z.EncBinary() + _ = yym2257 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - 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 { + yysep2258 := !z.EncBinary() + yy2arr2258 := z.EncBasicHandle().StructToArray + var yyq2258 [8]bool + _, _, _ = yysep2258, yyq2258, yy2arr2258 + const yyr2258 bool = false + yyq2258[0] = x.Phase != "" + yyq2258[1] = len(x.Conditions) != 0 + yyq2258[2] = x.Message != "" + yyq2258[3] = x.Reason != "" + yyq2258[4] = x.HostIP != "" + yyq2258[5] = x.PodIP != "" + yyq2258[6] = x.StartTime != nil + yyq2258[7] = len(x.ContainerStatuses) != 0 + var yynn2258 int + if yyr2258 || yy2arr2258 { r.EncodeArrayStart(8) } else { - yynn2225 = 0 - for _, b := range yyq2225 { + yynn2258 = 0 + for _, b := range yyq2258 { if b { - yynn2225++ + yynn2258++ } } - r.EncodeMapStart(yynn2225) - yynn2225 = 0 + r.EncodeMapStart(yynn2258) + yynn2258 = 0 } - if yyr2225 || yy2arr2225 { + if yyr2258 || yy2arr2258 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2225[0] { + if yyq2258[0] { x.Phase.CodecEncodeSelf(e) } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2225[0] { + if yyq2258[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("phase")) z.EncSendContainerState(codecSelfer_containerMapValue1234) x.Phase.CodecEncodeSelf(e) } } - if yyr2225 || yy2arr2225 { + if yyr2258 || yy2arr2258 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2225[1] { + if yyq2258[1] { if x.Conditions == nil { r.EncodeNil() } else { - yym2228 := z.EncBinary() - _ = yym2228 + yym2261 := z.EncBinary() + _ = yym2261 if false { } else { h.encSlicePodCondition(([]PodCondition)(x.Conditions), e) @@ -29676,15 +30205,15 @@ func (x *PodStatus) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq2225[1] { + if yyq2258[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("conditions")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.Conditions == nil { r.EncodeNil() } else { - yym2229 := z.EncBinary() - _ = yym2229 + yym2262 := z.EncBinary() + _ = yym2262 if false { } else { h.encSlicePodCondition(([]PodCondition)(x.Conditions), e) @@ -29692,11 +30221,11 @@ func (x *PodStatus) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr2225 || yy2arr2225 { + if yyr2258 || yy2arr2258 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2225[2] { - yym2231 := z.EncBinary() - _ = yym2231 + if yyq2258[2] { + yym2264 := z.EncBinary() + _ = yym2264 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Message)) @@ -29705,23 +30234,23 @@ func (x *PodStatus) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2225[2] { + if yyq2258[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("message")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym2232 := z.EncBinary() - _ = yym2232 + yym2265 := z.EncBinary() + _ = yym2265 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Message)) } } } - if yyr2225 || yy2arr2225 { + if yyr2258 || yy2arr2258 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2225[3] { - yym2234 := z.EncBinary() - _ = yym2234 + if yyq2258[3] { + yym2267 := z.EncBinary() + _ = yym2267 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Reason)) @@ -29730,23 +30259,23 @@ func (x *PodStatus) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2225[3] { + if yyq2258[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("reason")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym2235 := z.EncBinary() - _ = yym2235 + yym2268 := z.EncBinary() + _ = yym2268 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Reason)) } } } - if yyr2225 || yy2arr2225 { + if yyr2258 || yy2arr2258 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2225[4] { - yym2237 := z.EncBinary() - _ = yym2237 + if yyq2258[4] { + yym2270 := z.EncBinary() + _ = yym2270 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.HostIP)) @@ -29755,23 +30284,23 @@ func (x *PodStatus) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2225[4] { + if yyq2258[4] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("hostIP")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym2238 := z.EncBinary() - _ = yym2238 + yym2271 := z.EncBinary() + _ = yym2271 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.HostIP)) } } } - if yyr2225 || yy2arr2225 { + if yyr2258 || yy2arr2258 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2225[5] { - yym2240 := z.EncBinary() - _ = yym2240 + if yyq2258[5] { + yym2273 := z.EncBinary() + _ = yym2273 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.PodIP)) @@ -29780,31 +30309,31 @@ func (x *PodStatus) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2225[5] { + if yyq2258[5] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("podIP")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym2241 := z.EncBinary() - _ = yym2241 + yym2274 := z.EncBinary() + _ = yym2274 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.PodIP)) } } } - if yyr2225 || yy2arr2225 { + if yyr2258 || yy2arr2258 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2225[6] { + if yyq2258[6] { if x.StartTime == nil { r.EncodeNil() } else { - yym2243 := z.EncBinary() - _ = yym2243 + yym2276 := z.EncBinary() + _ = yym2276 if false { } else if z.HasExtensions() && z.EncExt(x.StartTime) { - } else if yym2243 { + } else if yym2276 { z.EncBinaryMarshal(x.StartTime) - } else if !yym2243 && z.IsJSONHandle() { + } else if !yym2276 && z.IsJSONHandle() { z.EncJSONMarshal(x.StartTime) } else { z.EncFallback(x.StartTime) @@ -29814,20 +30343,20 @@ func (x *PodStatus) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq2225[6] { + if yyq2258[6] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("startTime")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.StartTime == nil { r.EncodeNil() } else { - yym2244 := z.EncBinary() - _ = yym2244 + yym2277 := z.EncBinary() + _ = yym2277 if false { } else if z.HasExtensions() && z.EncExt(x.StartTime) { - } else if yym2244 { + } else if yym2277 { z.EncBinaryMarshal(x.StartTime) - } else if !yym2244 && z.IsJSONHandle() { + } else if !yym2277 && z.IsJSONHandle() { z.EncJSONMarshal(x.StartTime) } else { z.EncFallback(x.StartTime) @@ -29835,14 +30364,14 @@ func (x *PodStatus) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr2225 || yy2arr2225 { + if yyr2258 || yy2arr2258 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2225[7] { + if yyq2258[7] { if x.ContainerStatuses == nil { r.EncodeNil() } else { - yym2246 := z.EncBinary() - _ = yym2246 + yym2279 := z.EncBinary() + _ = yym2279 if false { } else { h.encSliceContainerStatus(([]ContainerStatus)(x.ContainerStatuses), e) @@ -29852,15 +30381,15 @@ func (x *PodStatus) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq2225[7] { + if yyq2258[7] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("containerStatuses")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.ContainerStatuses == nil { r.EncodeNil() } else { - yym2247 := z.EncBinary() - _ = yym2247 + yym2280 := z.EncBinary() + _ = yym2280 if false { } else { h.encSliceContainerStatus(([]ContainerStatus)(x.ContainerStatuses), e) @@ -29868,7 +30397,7 @@ func (x *PodStatus) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr2225 || yy2arr2225 { + if yyr2258 || yy2arr2258 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -29881,25 +30410,25 @@ func (x *PodStatus) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym2248 := z.DecBinary() - _ = yym2248 + yym2281 := z.DecBinary() + _ = yym2281 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2249 := r.ContainerType() - if yyct2249 == codecSelferValueTypeMap1234 { - yyl2249 := r.ReadMapStart() - if yyl2249 == 0 { + yyct2282 := r.ContainerType() + if yyct2282 == codecSelferValueTypeMap1234 { + yyl2282 := r.ReadMapStart() + if yyl2282 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2249, d) + x.codecDecodeSelfFromMap(yyl2282, d) } - } else if yyct2249 == codecSelferValueTypeArray1234 { - yyl2249 := r.ReadArrayStart() - if yyl2249 == 0 { + } else if yyct2282 == codecSelferValueTypeArray1234 { + yyl2282 := r.ReadArrayStart() + if yyl2282 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2249, d) + x.codecDecodeSelfFromArray(yyl2282, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -29911,12 +30440,12 @@ func (x *PodStatus) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys2250Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys2250Slc - var yyhl2250 bool = l >= 0 - for yyj2250 := 0; ; yyj2250++ { - if yyhl2250 { - if yyj2250 >= l { + 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 { @@ -29925,10 +30454,10 @@ func (x *PodStatus) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys2250Slc = r.DecodeBytes(yys2250Slc, true, true) - yys2250 := string(yys2250Slc) + yys2283Slc = r.DecodeBytes(yys2283Slc, true, true) + yys2283 := string(yys2283Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys2250 { + switch yys2283 { case "phase": if r.TryDecodeAsNil() { x.Phase = "" @@ -29939,12 +30468,12 @@ func (x *PodStatus) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.Conditions = nil } else { - yyv2252 := &x.Conditions - yym2253 := z.DecBinary() - _ = yym2253 + yyv2285 := &x.Conditions + yym2286 := z.DecBinary() + _ = yym2286 if false { } else { - h.decSlicePodCondition((*[]PodCondition)(yyv2252), d) + h.decSlicePodCondition((*[]PodCondition)(yyv2285), d) } } case "message": @@ -29980,13 +30509,13 @@ func (x *PodStatus) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { if x.StartTime == nil { x.StartTime = new(pkg2_unversioned.Time) } - yym2259 := z.DecBinary() - _ = yym2259 + yym2292 := z.DecBinary() + _ = yym2292 if false { } else if z.HasExtensions() && z.DecExt(x.StartTime) { - } else if yym2259 { + } else if yym2292 { z.DecBinaryUnmarshal(x.StartTime) - } else if !yym2259 && z.IsJSONHandle() { + } else if !yym2292 && z.IsJSONHandle() { z.DecJSONUnmarshal(x.StartTime) } else { z.DecFallback(x.StartTime, false) @@ -29996,412 +30525,22 @@ func (x *PodStatus) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.ContainerStatuses = nil } else { - yyv2260 := &x.ContainerStatuses - yym2261 := z.DecBinary() - _ = yym2261 + yyv2293 := &x.ContainerStatuses + yym2294 := z.DecBinary() + _ = yym2294 if false { } else { - h.decSliceContainerStatus((*[]ContainerStatus)(yyv2260), d) + h.decSliceContainerStatus((*[]ContainerStatus)(yyv2293), d) } } default: - z.DecStructFieldNotFound(-1, yys2250) - } // end switch yys2250 - } // end for yyj2250 + z.DecStructFieldNotFound(-1, yys2283) + } // end switch yys2283 + } // end for yyj2283 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 yyj2262 int - var yyb2262 bool - var yyhl2262 bool = l >= 0 - yyj2262++ - if yyhl2262 { - yyb2262 = yyj2262 > l - } else { - yyb2262 = r.CheckBreak() - } - if yyb2262 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Phase = "" - } else { - x.Phase = PodPhase(r.DecodeString()) - } - yyj2262++ - if yyhl2262 { - yyb2262 = yyj2262 > l - } else { - yyb2262 = r.CheckBreak() - } - if yyb2262 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Conditions = nil - } else { - yyv2264 := &x.Conditions - yym2265 := z.DecBinary() - _ = yym2265 - if false { - } else { - h.decSlicePodCondition((*[]PodCondition)(yyv2264), d) - } - } - yyj2262++ - if yyhl2262 { - yyb2262 = yyj2262 > l - } else { - yyb2262 = r.CheckBreak() - } - if yyb2262 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Message = "" - } else { - x.Message = string(r.DecodeString()) - } - yyj2262++ - if yyhl2262 { - yyb2262 = yyj2262 > l - } else { - yyb2262 = r.CheckBreak() - } - if yyb2262 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Reason = "" - } else { - x.Reason = string(r.DecodeString()) - } - yyj2262++ - if yyhl2262 { - yyb2262 = yyj2262 > l - } else { - yyb2262 = r.CheckBreak() - } - if yyb2262 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.HostIP = "" - } else { - x.HostIP = string(r.DecodeString()) - } - yyj2262++ - if yyhl2262 { - yyb2262 = yyj2262 > l - } else { - yyb2262 = r.CheckBreak() - } - if yyb2262 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.PodIP = "" - } else { - x.PodIP = string(r.DecodeString()) - } - yyj2262++ - if yyhl2262 { - yyb2262 = yyj2262 > l - } else { - yyb2262 = r.CheckBreak() - } - if yyb2262 { - 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) - } - yym2271 := z.DecBinary() - _ = yym2271 - if false { - } else if z.HasExtensions() && z.DecExt(x.StartTime) { - } else if yym2271 { - z.DecBinaryUnmarshal(x.StartTime) - } else if !yym2271 && z.IsJSONHandle() { - z.DecJSONUnmarshal(x.StartTime) - } else { - z.DecFallback(x.StartTime, false) - } - } - yyj2262++ - if yyhl2262 { - yyb2262 = yyj2262 > l - } else { - yyb2262 = r.CheckBreak() - } - if yyb2262 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.ContainerStatuses = nil - } else { - yyv2272 := &x.ContainerStatuses - yym2273 := z.DecBinary() - _ = yym2273 - if false { - } else { - h.decSliceContainerStatus((*[]ContainerStatus)(yyv2272), d) - } - } - for { - yyj2262++ - if yyhl2262 { - yyb2262 = yyj2262 > l - } else { - yyb2262 = r.CheckBreak() - } - if yyb2262 { - break - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj2262-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 { - yym2274 := z.EncBinary() - _ = yym2274 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - 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 { - yynn2275 = 0 - for _, b := range yyq2275 { - if b { - yynn2275++ - } - } - r.EncodeMapStart(yynn2275) - yynn2275 = 0 - } - if yyr2275 || yy2arr2275 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2275[0] { - yym2277 := z.EncBinary() - _ = yym2277 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) - } - } else { - r.EncodeString(codecSelferC_UTF81234, "") - } - } else { - if yyq2275[0] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("kind")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym2278 := z.EncBinary() - _ = yym2278 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) - } - } - } - if yyr2275 || yy2arr2275 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2275[1] { - yym2280 := z.EncBinary() - _ = yym2280 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) - } - } else { - r.EncodeString(codecSelferC_UTF81234, "") - } - } else { - if yyq2275[1] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym2281 := z.EncBinary() - _ = yym2281 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) - } - } - } - 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) - } - } - } -} - -func (x *PodStatusResult) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - yym2288 := z.DecBinary() - _ = yym2288 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - yyct2289 := r.ContainerType() - if yyct2289 == codecSelferValueTypeMap1234 { - yyl2289 := r.ReadMapStart() - if yyl2289 == 0 { - z.DecSendContainerState(codecSelfer_containerMapEnd1234) - } else { - x.codecDecodeSelfFromMap(yyl2289, d) - } - } else if yyct2289 == codecSelferValueTypeArray1234 { - yyl2289 := r.ReadArrayStart() - if yyl2289 == 0 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - x.codecDecodeSelfFromArray(yyl2289, 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 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 { - if r.CheckBreak() { - break - } - } - z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys2290Slc = r.DecodeBytes(yys2290Slc, true, true) - yys2290 := string(yys2290Slc) - z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys2290 { - case "kind": - if 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 { - 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, yys2290) - } // end switch yys2290 - } // end for yyj2290 - z.DecSendContainerState(codecSelfer_containerMapEnd1234) -} - -func (x *PodStatusResult) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r @@ -30420,9 +30559,9 @@ func (x *PodStatusResult) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.Kind = "" + x.Phase = "" } else { - x.Kind = string(r.DecodeString()) + x.Phase = PodPhase(r.DecodeString()) } yyj2295++ if yyhl2295 { @@ -30436,9 +30575,15 @@ func (x *PodStatusResult) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.APIVersion = "" + x.Conditions = nil } else { - x.APIVersion = string(r.DecodeString()) + yyv2297 := &x.Conditions + yym2298 := z.DecBinary() + _ = yym2298 + if false { + } else { + h.decSlicePodCondition((*[]PodCondition)(yyv2297), d) + } } yyj2295++ if yyhl2295 { @@ -30452,10 +30597,9 @@ func (x *PodStatusResult) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.ObjectMeta = ObjectMeta{} + x.Message = "" } else { - yyv2298 := &x.ObjectMeta - yyv2298.CodecDecodeSelf(d) + x.Message = string(r.DecodeString()) } yyj2295++ if yyhl2295 { @@ -30469,10 +30613,94 @@ func (x *PodStatusResult) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.Status = PodStatus{} + x.Reason = "" } else { - yyv2299 := &x.Status - yyv2299.CodecDecodeSelf(d) + x.Reason = string(r.DecodeString()) + } + yyj2295++ + if yyhl2295 { + yyb2295 = yyj2295 > l + } else { + yyb2295 = r.CheckBreak() + } + if yyb2295 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.HostIP = "" + } else { + x.HostIP = string(r.DecodeString()) + } + yyj2295++ + if yyhl2295 { + yyb2295 = yyj2295 > l + } else { + yyb2295 = r.CheckBreak() + } + if yyb2295 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.PodIP = "" + } else { + x.PodIP = string(r.DecodeString()) + } + yyj2295++ + if yyhl2295 { + yyb2295 = yyj2295 > l + } else { + yyb2295 = r.CheckBreak() + } + if yyb2295 { + 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) + } + yym2304 := z.DecBinary() + _ = yym2304 + if false { + } else if z.HasExtensions() && z.DecExt(x.StartTime) { + } else if yym2304 { + z.DecBinaryUnmarshal(x.StartTime) + } else if !yym2304 && z.IsJSONHandle() { + z.DecJSONUnmarshal(x.StartTime) + } else { + z.DecFallback(x.StartTime, false) + } + } + yyj2295++ + if yyhl2295 { + yyb2295 = yyj2295 > l + } else { + yyb2295 = r.CheckBreak() + } + if yyb2295 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.ContainerStatuses = nil + } else { + yyv2305 := &x.ContainerStatuses + yym2306 := z.DecBinary() + _ = yym2306 + if false { + } else { + h.decSliceContainerStatus((*[]ContainerStatus)(yyv2305), d) + } } for { yyj2295++ @@ -30490,6 +30718,307 @@ func (x *PodStatusResult) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) 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 { + yym2307 := z.EncBinary() + _ = yym2307 + if false { + } else if z.HasExtensions() && z.EncExt(x) { + } else { + yysep2308 := !z.EncBinary() + yy2arr2308 := z.EncBasicHandle().StructToArray + var yyq2308 [4]bool + _, _, _ = yysep2308, yyq2308, yy2arr2308 + const yyr2308 bool = false + yyq2308[0] = x.Kind != "" + yyq2308[1] = x.APIVersion != "" + yyq2308[2] = true + yyq2308[3] = true + var yynn2308 int + if yyr2308 || yy2arr2308 { + r.EncodeArrayStart(4) + } else { + yynn2308 = 0 + for _, b := range yyq2308 { + if b { + yynn2308++ + } + } + r.EncodeMapStart(yynn2308) + yynn2308 = 0 + } + if yyr2308 || yy2arr2308 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq2308[0] { + yym2310 := z.EncBinary() + _ = yym2310 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq2308[0] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("kind")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym2311 := z.EncBinary() + _ = yym2311 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + } + } + } + if yyr2308 || yy2arr2308 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq2308[1] { + yym2313 := z.EncBinary() + _ = yym2313 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq2308[1] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym2314 := z.EncBinary() + _ = yym2314 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + } + } + } + if yyr2308 || yy2arr2308 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq2308[2] { + yy2316 := &x.ObjectMeta + yy2316.CodecEncodeSelf(e) + } else { + r.EncodeNil() + } + } else { + if yyq2308[2] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("metadata")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yy2317 := &x.ObjectMeta + yy2317.CodecEncodeSelf(e) + } + } + if yyr2308 || yy2arr2308 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq2308[3] { + yy2319 := &x.Status + yy2319.CodecEncodeSelf(e) + } else { + r.EncodeNil() + } + } else { + if yyq2308[3] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("status")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yy2320 := &x.Status + yy2320.CodecEncodeSelf(e) + } + } + if yyr2308 || yy2arr2308 { + 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 + yym2321 := z.DecBinary() + _ = yym2321 + if false { + } else if z.HasExtensions() && z.DecExt(x) { + } else { + yyct2322 := r.ContainerType() + if yyct2322 == codecSelferValueTypeMap1234 { + yyl2322 := r.ReadMapStart() + if yyl2322 == 0 { + z.DecSendContainerState(codecSelfer_containerMapEnd1234) + } else { + x.codecDecodeSelfFromMap(yyl2322, d) + } + } else if yyct2322 == codecSelferValueTypeArray1234 { + yyl2322 := r.ReadArrayStart() + if yyl2322 == 0 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + x.codecDecodeSelfFromArray(yyl2322, 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 yys2323Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys2323Slc + var yyhl2323 bool = l >= 0 + for yyj2323 := 0; ; yyj2323++ { + if yyhl2323 { + if yyj2323 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + z.DecSendContainerState(codecSelfer_containerMapKey1234) + yys2323Slc = r.DecodeBytes(yys2323Slc, true, true) + yys2323 := string(yys2323Slc) + z.DecSendContainerState(codecSelfer_containerMapValue1234) + switch yys2323 { + case "kind": + if 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 { + yyv2326 := &x.ObjectMeta + yyv2326.CodecDecodeSelf(d) + } + case "status": + if r.TryDecodeAsNil() { + x.Status = PodStatus{} + } else { + yyv2327 := &x.Status + yyv2327.CodecDecodeSelf(d) + } + default: + z.DecStructFieldNotFound(-1, yys2323) + } // end switch yys2323 + } // end for yyj2323 + 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 yyj2328 int + var yyb2328 bool + var yyhl2328 bool = l >= 0 + yyj2328++ + if yyhl2328 { + yyb2328 = yyj2328 > l + } else { + yyb2328 = r.CheckBreak() + } + if yyb2328 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Kind = "" + } else { + x.Kind = string(r.DecodeString()) + } + yyj2328++ + if yyhl2328 { + yyb2328 = yyj2328 > l + } else { + yyb2328 = r.CheckBreak() + } + if yyb2328 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.APIVersion = "" + } else { + x.APIVersion = string(r.DecodeString()) + } + yyj2328++ + if yyhl2328 { + yyb2328 = yyj2328 > l + } else { + yyb2328 = r.CheckBreak() + } + if yyb2328 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.ObjectMeta = ObjectMeta{} + } else { + yyv2331 := &x.ObjectMeta + yyv2331.CodecDecodeSelf(d) + } + yyj2328++ + if yyhl2328 { + yyb2328 = yyj2328 > l + } else { + yyb2328 = r.CheckBreak() + } + if yyb2328 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Status = PodStatus{} + } else { + yyv2332 := &x.Status + yyv2332.CodecDecodeSelf(d) + } + for { + yyj2328++ + if yyhl2328 { + yyb2328 = yyj2328 > l + } else { + yyb2328 = r.CheckBreak() + } + if yyb2328 { + break + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + z.DecStructFieldNotFound(yyj2328-1, "") + } + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) +} + func (x *Pod) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) @@ -30497,39 +31026,39 @@ func (x *Pod) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym2300 := z.EncBinary() - _ = yym2300 + yym2333 := z.EncBinary() + _ = yym2333 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - 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 { + yysep2334 := !z.EncBinary() + yy2arr2334 := z.EncBasicHandle().StructToArray + var yyq2334 [5]bool + _, _, _ = yysep2334, yyq2334, yy2arr2334 + const yyr2334 bool = false + yyq2334[0] = x.Kind != "" + yyq2334[1] = x.APIVersion != "" + yyq2334[2] = true + yyq2334[3] = true + yyq2334[4] = true + var yynn2334 int + if yyr2334 || yy2arr2334 { r.EncodeArrayStart(5) } else { - yynn2301 = 0 - for _, b := range yyq2301 { + yynn2334 = 0 + for _, b := range yyq2334 { if b { - yynn2301++ + yynn2334++ } } - r.EncodeMapStart(yynn2301) - yynn2301 = 0 + r.EncodeMapStart(yynn2334) + yynn2334 = 0 } - if yyr2301 || yy2arr2301 { + if yyr2334 || yy2arr2334 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2301[0] { - yym2303 := z.EncBinary() - _ = yym2303 + if yyq2334[0] { + yym2336 := z.EncBinary() + _ = yym2336 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) @@ -30538,23 +31067,23 @@ func (x *Pod) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2301[0] { + if yyq2334[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym2304 := z.EncBinary() - _ = yym2304 + yym2337 := z.EncBinary() + _ = yym2337 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } - if yyr2301 || yy2arr2301 { + if yyr2334 || yy2arr2334 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2301[1] { - yym2306 := z.EncBinary() - _ = yym2306 + if yyq2334[1] { + yym2339 := z.EncBinary() + _ = yym2339 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) @@ -30563,70 +31092,70 @@ func (x *Pod) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2301[1] { + if yyq2334[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym2307 := z.EncBinary() - _ = yym2307 + yym2340 := z.EncBinary() + _ = yym2340 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } - if yyr2301 || yy2arr2301 { + if yyr2334 || yy2arr2334 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2301[2] { - yy2309 := &x.ObjectMeta - yy2309.CodecEncodeSelf(e) + if yyq2334[2] { + yy2342 := &x.ObjectMeta + yy2342.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { - if yyq2301[2] { + if yyq2334[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy2310 := &x.ObjectMeta - yy2310.CodecEncodeSelf(e) + yy2343 := &x.ObjectMeta + yy2343.CodecEncodeSelf(e) } } - if yyr2301 || yy2arr2301 { + if yyr2334 || yy2arr2334 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2301[3] { - yy2312 := &x.Spec - yy2312.CodecEncodeSelf(e) + if yyq2334[3] { + yy2345 := &x.Spec + yy2345.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { - if yyq2301[3] { + if yyq2334[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("spec")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy2313 := &x.Spec - yy2313.CodecEncodeSelf(e) + yy2346 := &x.Spec + yy2346.CodecEncodeSelf(e) } } - if yyr2301 || yy2arr2301 { + if yyr2334 || yy2arr2334 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2301[4] { - yy2315 := &x.Status - yy2315.CodecEncodeSelf(e) + if yyq2334[4] { + yy2348 := &x.Status + yy2348.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { - if yyq2301[4] { + if yyq2334[4] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("status")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy2316 := &x.Status - yy2316.CodecEncodeSelf(e) + yy2349 := &x.Status + yy2349.CodecEncodeSelf(e) } } - if yyr2301 || yy2arr2301 { + if yyr2334 || yy2arr2334 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -30639,25 +31168,25 @@ func (x *Pod) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym2317 := z.DecBinary() - _ = yym2317 + yym2350 := z.DecBinary() + _ = yym2350 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2318 := r.ContainerType() - if yyct2318 == codecSelferValueTypeMap1234 { - yyl2318 := r.ReadMapStart() - if yyl2318 == 0 { + yyct2351 := r.ContainerType() + if yyct2351 == codecSelferValueTypeMap1234 { + yyl2351 := r.ReadMapStart() + if yyl2351 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2318, d) + x.codecDecodeSelfFromMap(yyl2351, d) } - } else if yyct2318 == codecSelferValueTypeArray1234 { - yyl2318 := r.ReadArrayStart() - if yyl2318 == 0 { + } else if yyct2351 == codecSelferValueTypeArray1234 { + yyl2351 := r.ReadArrayStart() + if yyl2351 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2318, d) + x.codecDecodeSelfFromArray(yyl2351, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -30669,12 +31198,12 @@ func (x *Pod) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys2319Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys2319Slc - var yyhl2319 bool = l >= 0 - for yyj2319 := 0; ; yyj2319++ { - if yyhl2319 { - if yyj2319 >= l { + var yys2352Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys2352Slc + var yyhl2352 bool = l >= 0 + for yyj2352 := 0; ; yyj2352++ { + if yyhl2352 { + if yyj2352 >= l { break } } else { @@ -30683,10 +31212,10 @@ func (x *Pod) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys2319Slc = r.DecodeBytes(yys2319Slc, true, true) - yys2319 := string(yys2319Slc) + yys2352Slc = r.DecodeBytes(yys2352Slc, true, true) + yys2352 := string(yys2352Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys2319 { + switch yys2352 { case "kind": if r.TryDecodeAsNil() { x.Kind = "" @@ -30703,27 +31232,27 @@ func (x *Pod) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.ObjectMeta = ObjectMeta{} } else { - yyv2322 := &x.ObjectMeta - yyv2322.CodecDecodeSelf(d) + yyv2355 := &x.ObjectMeta + yyv2355.CodecDecodeSelf(d) } case "spec": if r.TryDecodeAsNil() { x.Spec = PodSpec{} } else { - yyv2323 := &x.Spec - yyv2323.CodecDecodeSelf(d) + yyv2356 := &x.Spec + yyv2356.CodecDecodeSelf(d) } case "status": if r.TryDecodeAsNil() { x.Status = PodStatus{} } else { - yyv2324 := &x.Status - yyv2324.CodecDecodeSelf(d) + yyv2357 := &x.Status + yyv2357.CodecDecodeSelf(d) } default: - z.DecStructFieldNotFound(-1, yys2319) - } // end switch yys2319 - } // end for yyj2319 + z.DecStructFieldNotFound(-1, yys2352) + } // end switch yys2352 + } // end for yyj2352 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -30731,16 +31260,16 @@ func (x *Pod) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj2325 int - var yyb2325 bool - var yyhl2325 bool = l >= 0 - yyj2325++ - if yyhl2325 { - yyb2325 = yyj2325 > l + var yyj2358 int + var yyb2358 bool + var yyhl2358 bool = l >= 0 + yyj2358++ + if yyhl2358 { + yyb2358 = yyj2358 > l } else { - yyb2325 = r.CheckBreak() + yyb2358 = r.CheckBreak() } - if yyb2325 { + if yyb2358 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -30750,13 +31279,13 @@ func (x *Pod) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.Kind = string(r.DecodeString()) } - yyj2325++ - if yyhl2325 { - yyb2325 = yyj2325 > l + yyj2358++ + if yyhl2358 { + yyb2358 = yyj2358 > l } else { - yyb2325 = r.CheckBreak() + yyb2358 = r.CheckBreak() } - if yyb2325 { + if yyb2358 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -30766,13 +31295,13 @@ func (x *Pod) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.APIVersion = string(r.DecodeString()) } - yyj2325++ - if yyhl2325 { - yyb2325 = yyj2325 > l + yyj2358++ + if yyhl2358 { + yyb2358 = yyj2358 > l } else { - yyb2325 = r.CheckBreak() + yyb2358 = r.CheckBreak() } - if yyb2325 { + if yyb2358 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -30780,16 +31309,16 @@ func (x *Pod) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.ObjectMeta = ObjectMeta{} } else { - yyv2328 := &x.ObjectMeta - yyv2328.CodecDecodeSelf(d) + yyv2361 := &x.ObjectMeta + yyv2361.CodecDecodeSelf(d) } - yyj2325++ - if yyhl2325 { - yyb2325 = yyj2325 > l + yyj2358++ + if yyhl2358 { + yyb2358 = yyj2358 > l } else { - yyb2325 = r.CheckBreak() + yyb2358 = r.CheckBreak() } - if yyb2325 { + if yyb2358 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -30797,16 +31326,16 @@ func (x *Pod) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.Spec = PodSpec{} } else { - yyv2329 := &x.Spec - yyv2329.CodecDecodeSelf(d) + yyv2362 := &x.Spec + yyv2362.CodecDecodeSelf(d) } - yyj2325++ - if yyhl2325 { - yyb2325 = yyj2325 > l + yyj2358++ + if yyhl2358 { + yyb2358 = yyj2358 > l } else { - yyb2325 = r.CheckBreak() + yyb2358 = r.CheckBreak() } - if yyb2325 { + if yyb2358 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -30814,21 +31343,21 @@ func (x *Pod) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.Status = PodStatus{} } else { - yyv2330 := &x.Status - yyv2330.CodecDecodeSelf(d) + yyv2363 := &x.Status + yyv2363.CodecDecodeSelf(d) } for { - yyj2325++ - if yyhl2325 { - yyb2325 = yyj2325 > l + yyj2358++ + if yyhl2358 { + yyb2358 = yyj2358 > l } else { - yyb2325 = r.CheckBreak() + yyb2358 = r.CheckBreak() } - if yyb2325 { + if yyb2358 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj2325-1, "") + z.DecStructFieldNotFound(yyj2358-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -30840,66 +31369,66 @@ func (x *PodTemplateSpec) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym2331 := z.EncBinary() - _ = yym2331 + yym2364 := z.EncBinary() + _ = yym2364 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - 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 { + yysep2365 := !z.EncBinary() + yy2arr2365 := z.EncBasicHandle().StructToArray + var yyq2365 [2]bool + _, _, _ = yysep2365, yyq2365, yy2arr2365 + const yyr2365 bool = false + yyq2365[0] = true + yyq2365[1] = true + var yynn2365 int + if yyr2365 || yy2arr2365 { r.EncodeArrayStart(2) } else { - yynn2332 = 0 - for _, b := range yyq2332 { + yynn2365 = 0 + for _, b := range yyq2365 { if b { - yynn2332++ + yynn2365++ } } - r.EncodeMapStart(yynn2332) - yynn2332 = 0 + r.EncodeMapStart(yynn2365) + yynn2365 = 0 } - if yyr2332 || yy2arr2332 { + if yyr2365 || yy2arr2365 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2332[0] { - yy2334 := &x.ObjectMeta - yy2334.CodecEncodeSelf(e) + if yyq2365[0] { + yy2367 := &x.ObjectMeta + yy2367.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { - if yyq2332[0] { + if yyq2365[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy2335 := &x.ObjectMeta - yy2335.CodecEncodeSelf(e) + yy2368 := &x.ObjectMeta + yy2368.CodecEncodeSelf(e) } } - if yyr2332 || yy2arr2332 { + if yyr2365 || yy2arr2365 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2332[1] { - yy2337 := &x.Spec - yy2337.CodecEncodeSelf(e) + if yyq2365[1] { + yy2370 := &x.Spec + yy2370.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { - if yyq2332[1] { + if yyq2365[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("spec")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy2338 := &x.Spec - yy2338.CodecEncodeSelf(e) + yy2371 := &x.Spec + yy2371.CodecEncodeSelf(e) } } - if yyr2332 || yy2arr2332 { + if yyr2365 || yy2arr2365 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -30912,25 +31441,25 @@ func (x *PodTemplateSpec) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym2339 := z.DecBinary() - _ = yym2339 + yym2372 := z.DecBinary() + _ = yym2372 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2340 := r.ContainerType() - if yyct2340 == codecSelferValueTypeMap1234 { - yyl2340 := r.ReadMapStart() - if yyl2340 == 0 { + yyct2373 := r.ContainerType() + if yyct2373 == codecSelferValueTypeMap1234 { + yyl2373 := r.ReadMapStart() + if yyl2373 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2340, d) + x.codecDecodeSelfFromMap(yyl2373, d) } - } else if yyct2340 == codecSelferValueTypeArray1234 { - yyl2340 := r.ReadArrayStart() - if yyl2340 == 0 { + } else if yyct2373 == codecSelferValueTypeArray1234 { + yyl2373 := r.ReadArrayStart() + if yyl2373 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2340, d) + x.codecDecodeSelfFromArray(yyl2373, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -30942,12 +31471,12 @@ func (x *PodTemplateSpec) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys2341Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys2341Slc - var yyhl2341 bool = l >= 0 - for yyj2341 := 0; ; yyj2341++ { - if yyhl2341 { - if yyj2341 >= l { + var yys2374Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys2374Slc + var yyhl2374 bool = l >= 0 + for yyj2374 := 0; ; yyj2374++ { + if yyhl2374 { + if yyj2374 >= l { break } } else { @@ -30956,28 +31485,28 @@ func (x *PodTemplateSpec) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys2341Slc = r.DecodeBytes(yys2341Slc, true, true) - yys2341 := string(yys2341Slc) + yys2374Slc = r.DecodeBytes(yys2374Slc, true, true) + yys2374 := string(yys2374Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys2341 { + switch yys2374 { case "metadata": if r.TryDecodeAsNil() { x.ObjectMeta = ObjectMeta{} } else { - yyv2342 := &x.ObjectMeta - yyv2342.CodecDecodeSelf(d) + yyv2375 := &x.ObjectMeta + yyv2375.CodecDecodeSelf(d) } case "spec": if r.TryDecodeAsNil() { x.Spec = PodSpec{} } else { - yyv2343 := &x.Spec - yyv2343.CodecDecodeSelf(d) + yyv2376 := &x.Spec + yyv2376.CodecDecodeSelf(d) } default: - z.DecStructFieldNotFound(-1, yys2341) - } // end switch yys2341 - } // end for yyj2341 + z.DecStructFieldNotFound(-1, yys2374) + } // end switch yys2374 + } // end for yyj2374 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -30985,16 +31514,16 @@ func (x *PodTemplateSpec) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj2344 int - var yyb2344 bool - var yyhl2344 bool = l >= 0 - yyj2344++ - if yyhl2344 { - yyb2344 = yyj2344 > l + var yyj2377 int + var yyb2377 bool + var yyhl2377 bool = l >= 0 + yyj2377++ + if yyhl2377 { + yyb2377 = yyj2377 > l } else { - yyb2344 = r.CheckBreak() + yyb2377 = r.CheckBreak() } - if yyb2344 { + if yyb2377 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -31002,16 +31531,16 @@ func (x *PodTemplateSpec) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) if r.TryDecodeAsNil() { x.ObjectMeta = ObjectMeta{} } else { - yyv2345 := &x.ObjectMeta - yyv2345.CodecDecodeSelf(d) + yyv2378 := &x.ObjectMeta + yyv2378.CodecDecodeSelf(d) } - yyj2344++ - if yyhl2344 { - yyb2344 = yyj2344 > l + yyj2377++ + if yyhl2377 { + yyb2377 = yyj2377 > l } else { - yyb2344 = r.CheckBreak() + yyb2377 = r.CheckBreak() } - if yyb2344 { + if yyb2377 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -31019,21 +31548,21 @@ func (x *PodTemplateSpec) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) if r.TryDecodeAsNil() { x.Spec = PodSpec{} } else { - yyv2346 := &x.Spec - yyv2346.CodecDecodeSelf(d) + yyv2379 := &x.Spec + yyv2379.CodecDecodeSelf(d) } for { - yyj2344++ - if yyhl2344 { - yyb2344 = yyj2344 > l + yyj2377++ + if yyhl2377 { + yyb2377 = yyj2377 > l } else { - yyb2344 = r.CheckBreak() + yyb2377 = r.CheckBreak() } - if yyb2344 { + if yyb2377 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj2344-1, "") + z.DecStructFieldNotFound(yyj2377-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -31045,38 +31574,38 @@ func (x *PodTemplate) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym2347 := z.EncBinary() - _ = yym2347 + yym2380 := z.EncBinary() + _ = yym2380 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - 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 { + yysep2381 := !z.EncBinary() + yy2arr2381 := z.EncBasicHandle().StructToArray + var yyq2381 [4]bool + _, _, _ = yysep2381, yyq2381, yy2arr2381 + const yyr2381 bool = false + yyq2381[0] = x.Kind != "" + yyq2381[1] = x.APIVersion != "" + yyq2381[2] = true + yyq2381[3] = true + var yynn2381 int + if yyr2381 || yy2arr2381 { r.EncodeArrayStart(4) } else { - yynn2348 = 0 - for _, b := range yyq2348 { + yynn2381 = 0 + for _, b := range yyq2381 { if b { - yynn2348++ + yynn2381++ } } - r.EncodeMapStart(yynn2348) - yynn2348 = 0 + r.EncodeMapStart(yynn2381) + yynn2381 = 0 } - if yyr2348 || yy2arr2348 { + if yyr2381 || yy2arr2381 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2348[0] { - yym2350 := z.EncBinary() - _ = yym2350 + if yyq2381[0] { + yym2383 := z.EncBinary() + _ = yym2383 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) @@ -31085,23 +31614,23 @@ func (x *PodTemplate) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2348[0] { + if yyq2381[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym2351 := z.EncBinary() - _ = yym2351 + yym2384 := z.EncBinary() + _ = yym2384 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } - if yyr2348 || yy2arr2348 { + if yyr2381 || yy2arr2381 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2348[1] { - yym2353 := z.EncBinary() - _ = yym2353 + if yyq2381[1] { + yym2386 := z.EncBinary() + _ = yym2386 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) @@ -31110,53 +31639,53 @@ func (x *PodTemplate) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2348[1] { + if yyq2381[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym2354 := z.EncBinary() - _ = yym2354 + yym2387 := z.EncBinary() + _ = yym2387 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } - if yyr2348 || yy2arr2348 { + if yyr2381 || yy2arr2381 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2348[2] { - yy2356 := &x.ObjectMeta - yy2356.CodecEncodeSelf(e) + if yyq2381[2] { + yy2389 := &x.ObjectMeta + yy2389.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { - if yyq2348[2] { + if yyq2381[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy2357 := &x.ObjectMeta - yy2357.CodecEncodeSelf(e) + yy2390 := &x.ObjectMeta + yy2390.CodecEncodeSelf(e) } } - if yyr2348 || yy2arr2348 { + if yyr2381 || yy2arr2381 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2348[3] { - yy2359 := &x.Template - yy2359.CodecEncodeSelf(e) + if yyq2381[3] { + yy2392 := &x.Template + yy2392.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { - if yyq2348[3] { + if yyq2381[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("template")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy2360 := &x.Template - yy2360.CodecEncodeSelf(e) + yy2393 := &x.Template + yy2393.CodecEncodeSelf(e) } } - if yyr2348 || yy2arr2348 { + if yyr2381 || yy2arr2381 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -31169,25 +31698,25 @@ func (x *PodTemplate) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym2361 := z.DecBinary() - _ = yym2361 + yym2394 := z.DecBinary() + _ = yym2394 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2362 := r.ContainerType() - if yyct2362 == codecSelferValueTypeMap1234 { - yyl2362 := r.ReadMapStart() - if yyl2362 == 0 { + yyct2395 := r.ContainerType() + if yyct2395 == codecSelferValueTypeMap1234 { + yyl2395 := r.ReadMapStart() + if yyl2395 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2362, d) + x.codecDecodeSelfFromMap(yyl2395, d) } - } else if yyct2362 == codecSelferValueTypeArray1234 { - yyl2362 := r.ReadArrayStart() - if yyl2362 == 0 { + } else if yyct2395 == codecSelferValueTypeArray1234 { + yyl2395 := r.ReadArrayStart() + if yyl2395 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2362, d) + x.codecDecodeSelfFromArray(yyl2395, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -31199,12 +31728,12 @@ func (x *PodTemplate) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys2363Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys2363Slc - var yyhl2363 bool = l >= 0 - for yyj2363 := 0; ; yyj2363++ { - if yyhl2363 { - if yyj2363 >= l { + var yys2396Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys2396Slc + var yyhl2396 bool = l >= 0 + for yyj2396 := 0; ; yyj2396++ { + if yyhl2396 { + if yyj2396 >= l { break } } else { @@ -31213,10 +31742,10 @@ func (x *PodTemplate) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys2363Slc = r.DecodeBytes(yys2363Slc, true, true) - yys2363 := string(yys2363Slc) + yys2396Slc = r.DecodeBytes(yys2396Slc, true, true) + yys2396 := string(yys2396Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys2363 { + switch yys2396 { case "kind": if r.TryDecodeAsNil() { x.Kind = "" @@ -31233,20 +31762,20 @@ func (x *PodTemplate) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.ObjectMeta = ObjectMeta{} } else { - yyv2366 := &x.ObjectMeta - yyv2366.CodecDecodeSelf(d) + yyv2399 := &x.ObjectMeta + yyv2399.CodecDecodeSelf(d) } case "template": if r.TryDecodeAsNil() { x.Template = PodTemplateSpec{} } else { - yyv2367 := &x.Template - yyv2367.CodecDecodeSelf(d) + yyv2400 := &x.Template + yyv2400.CodecDecodeSelf(d) } default: - z.DecStructFieldNotFound(-1, yys2363) - } // end switch yys2363 - } // end for yyj2363 + z.DecStructFieldNotFound(-1, yys2396) + } // end switch yys2396 + } // end for yyj2396 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -31254,16 +31783,16 @@ func (x *PodTemplate) 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 + var yyj2401 int + var yyb2401 bool + var yyhl2401 bool = l >= 0 + yyj2401++ + if yyhl2401 { + yyb2401 = yyj2401 > l } else { - yyb2368 = r.CheckBreak() + yyb2401 = r.CheckBreak() } - if yyb2368 { + if yyb2401 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -31273,13 +31802,13 @@ func (x *PodTemplate) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.Kind = string(r.DecodeString()) } - yyj2368++ - if yyhl2368 { - yyb2368 = yyj2368 > l + yyj2401++ + if yyhl2401 { + yyb2401 = yyj2401 > l } else { - yyb2368 = r.CheckBreak() + yyb2401 = r.CheckBreak() } - if yyb2368 { + if yyb2401 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -31289,13 +31818,13 @@ func (x *PodTemplate) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.APIVersion = string(r.DecodeString()) } - yyj2368++ - if yyhl2368 { - yyb2368 = yyj2368 > l + yyj2401++ + if yyhl2401 { + yyb2401 = yyj2401 > l } else { - yyb2368 = r.CheckBreak() + yyb2401 = r.CheckBreak() } - if yyb2368 { + if yyb2401 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -31303,16 +31832,16 @@ func (x *PodTemplate) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.ObjectMeta = ObjectMeta{} } else { - yyv2371 := &x.ObjectMeta - yyv2371.CodecDecodeSelf(d) + yyv2404 := &x.ObjectMeta + yyv2404.CodecDecodeSelf(d) } - yyj2368++ - if yyhl2368 { - yyb2368 = yyj2368 > l + yyj2401++ + if yyhl2401 { + yyb2401 = yyj2401 > l } else { - yyb2368 = r.CheckBreak() + yyb2401 = r.CheckBreak() } - if yyb2368 { + if yyb2401 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -31320,21 +31849,21 @@ func (x *PodTemplate) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.Template = PodTemplateSpec{} } else { - yyv2372 := &x.Template - yyv2372.CodecDecodeSelf(d) + yyv2405 := &x.Template + yyv2405.CodecDecodeSelf(d) } for { - yyj2368++ - if yyhl2368 { - yyb2368 = yyj2368 > l + yyj2401++ + if yyhl2401 { + yyb2401 = yyj2401 > l } else { - yyb2368 = r.CheckBreak() + yyb2401 = r.CheckBreak() } - if yyb2368 { + if yyb2401 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj2368-1, "") + z.DecStructFieldNotFound(yyj2401-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -31346,37 +31875,37 @@ func (x *PodTemplateList) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym2373 := z.EncBinary() - _ = yym2373 + yym2406 := z.EncBinary() + _ = yym2406 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - 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 { + yysep2407 := !z.EncBinary() + yy2arr2407 := z.EncBasicHandle().StructToArray + var yyq2407 [4]bool + _, _, _ = yysep2407, yyq2407, yy2arr2407 + const yyr2407 bool = false + yyq2407[0] = x.Kind != "" + yyq2407[1] = x.APIVersion != "" + yyq2407[2] = true + var yynn2407 int + if yyr2407 || yy2arr2407 { r.EncodeArrayStart(4) } else { - yynn2374 = 1 - for _, b := range yyq2374 { + yynn2407 = 1 + for _, b := range yyq2407 { if b { - yynn2374++ + yynn2407++ } } - r.EncodeMapStart(yynn2374) - yynn2374 = 0 + r.EncodeMapStart(yynn2407) + yynn2407 = 0 } - if yyr2374 || yy2arr2374 { + if yyr2407 || yy2arr2407 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2374[0] { - yym2376 := z.EncBinary() - _ = yym2376 + if yyq2407[0] { + yym2409 := z.EncBinary() + _ = yym2409 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) @@ -31385,23 +31914,23 @@ func (x *PodTemplateList) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2374[0] { + if yyq2407[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym2377 := z.EncBinary() - _ = yym2377 + yym2410 := z.EncBinary() + _ = yym2410 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } - if yyr2374 || yy2arr2374 { + if yyr2407 || yy2arr2407 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2374[1] { - yym2379 := z.EncBinary() - _ = yym2379 + if yyq2407[1] { + yym2412 := z.EncBinary() + _ = yym2412 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) @@ -31410,54 +31939,54 @@ func (x *PodTemplateList) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2374[1] { + if yyq2407[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym2380 := z.EncBinary() - _ = yym2380 + yym2413 := z.EncBinary() + _ = yym2413 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } - if yyr2374 || yy2arr2374 { + if yyr2407 || yy2arr2407 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2374[2] { - yy2382 := &x.ListMeta - yym2383 := z.EncBinary() - _ = yym2383 + if yyq2407[2] { + yy2415 := &x.ListMeta + yym2416 := z.EncBinary() + _ = yym2416 if false { - } else if z.HasExtensions() && z.EncExt(yy2382) { + } else if z.HasExtensions() && z.EncExt(yy2415) { } else { - z.EncFallback(yy2382) + z.EncFallback(yy2415) } } else { r.EncodeNil() } } else { - if yyq2374[2] { + if yyq2407[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy2384 := &x.ListMeta - yym2385 := z.EncBinary() - _ = yym2385 + yy2417 := &x.ListMeta + yym2418 := z.EncBinary() + _ = yym2418 if false { - } else if z.HasExtensions() && z.EncExt(yy2384) { + } else if z.HasExtensions() && z.EncExt(yy2417) { } else { - z.EncFallback(yy2384) + z.EncFallback(yy2417) } } } - if yyr2374 || yy2arr2374 { + if yyr2407 || yy2arr2407 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.Items == nil { r.EncodeNil() } else { - yym2387 := z.EncBinary() - _ = yym2387 + yym2420 := z.EncBinary() + _ = yym2420 if false { } else { h.encSlicePodTemplate(([]PodTemplate)(x.Items), e) @@ -31470,15 +31999,15 @@ func (x *PodTemplateList) CodecEncodeSelf(e *codec1978.Encoder) { if x.Items == nil { r.EncodeNil() } else { - yym2388 := z.EncBinary() - _ = yym2388 + yym2421 := z.EncBinary() + _ = yym2421 if false { } else { h.encSlicePodTemplate(([]PodTemplate)(x.Items), e) } } } - if yyr2374 || yy2arr2374 { + if yyr2407 || yy2arr2407 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -31491,25 +32020,25 @@ func (x *PodTemplateList) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym2389 := z.DecBinary() - _ = yym2389 + yym2422 := z.DecBinary() + _ = yym2422 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2390 := r.ContainerType() - if yyct2390 == codecSelferValueTypeMap1234 { - yyl2390 := r.ReadMapStart() - if yyl2390 == 0 { + yyct2423 := r.ContainerType() + if yyct2423 == codecSelferValueTypeMap1234 { + yyl2423 := r.ReadMapStart() + if yyl2423 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2390, d) + x.codecDecodeSelfFromMap(yyl2423, d) } - } else if yyct2390 == codecSelferValueTypeArray1234 { - yyl2390 := r.ReadArrayStart() - if yyl2390 == 0 { + } else if yyct2423 == codecSelferValueTypeArray1234 { + yyl2423 := r.ReadArrayStart() + if yyl2423 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2390, d) + x.codecDecodeSelfFromArray(yyl2423, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -31521,12 +32050,12 @@ func (x *PodTemplateList) 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 { + var yys2424Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys2424Slc + var yyhl2424 bool = l >= 0 + for yyj2424 := 0; ; yyj2424++ { + if yyhl2424 { + if yyj2424 >= l { break } } else { @@ -31535,10 +32064,10 @@ func (x *PodTemplateList) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys2391Slc = r.DecodeBytes(yys2391Slc, true, true) - yys2391 := string(yys2391Slc) + yys2424Slc = r.DecodeBytes(yys2424Slc, true, true) + yys2424 := string(yys2424Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys2391 { + switch yys2424 { case "kind": if r.TryDecodeAsNil() { x.Kind = "" @@ -31555,31 +32084,31 @@ func (x *PodTemplateList) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.ListMeta = pkg2_unversioned.ListMeta{} } else { - yyv2394 := &x.ListMeta - yym2395 := z.DecBinary() - _ = yym2395 + yyv2427 := &x.ListMeta + yym2428 := z.DecBinary() + _ = yym2428 if false { - } else if z.HasExtensions() && z.DecExt(yyv2394) { + } else if z.HasExtensions() && z.DecExt(yyv2427) { } else { - z.DecFallback(yyv2394, false) + z.DecFallback(yyv2427, false) } } case "items": if r.TryDecodeAsNil() { x.Items = nil } else { - yyv2396 := &x.Items - yym2397 := z.DecBinary() - _ = yym2397 + yyv2429 := &x.Items + yym2430 := z.DecBinary() + _ = yym2430 if false { } else { - h.decSlicePodTemplate((*[]PodTemplate)(yyv2396), d) + h.decSlicePodTemplate((*[]PodTemplate)(yyv2429), d) } } default: - z.DecStructFieldNotFound(-1, yys2391) - } // end switch yys2391 - } // end for yyj2391 + z.DecStructFieldNotFound(-1, yys2424) + } // end switch yys2424 + } // end for yyj2424 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -31587,16 +32116,16 @@ func (x *PodTemplateList) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj2398 int - var yyb2398 bool - var yyhl2398 bool = l >= 0 - yyj2398++ - if yyhl2398 { - yyb2398 = yyj2398 > l + var yyj2431 int + var yyb2431 bool + var yyhl2431 bool = l >= 0 + yyj2431++ + if yyhl2431 { + yyb2431 = yyj2431 > l } else { - yyb2398 = r.CheckBreak() + yyb2431 = r.CheckBreak() } - if yyb2398 { + if yyb2431 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -31606,13 +32135,13 @@ func (x *PodTemplateList) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) } else { x.Kind = string(r.DecodeString()) } - yyj2398++ - if yyhl2398 { - yyb2398 = yyj2398 > l + yyj2431++ + if yyhl2431 { + yyb2431 = yyj2431 > l } else { - yyb2398 = r.CheckBreak() + yyb2431 = r.CheckBreak() } - if yyb2398 { + if yyb2431 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -31622,13 +32151,13 @@ func (x *PodTemplateList) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) } else { x.APIVersion = string(r.DecodeString()) } - yyj2398++ - if yyhl2398 { - yyb2398 = yyj2398 > l + yyj2431++ + if yyhl2431 { + yyb2431 = yyj2431 > l } else { - yyb2398 = r.CheckBreak() + yyb2431 = r.CheckBreak() } - if yyb2398 { + if yyb2431 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -31636,22 +32165,22 @@ func (x *PodTemplateList) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) if r.TryDecodeAsNil() { x.ListMeta = pkg2_unversioned.ListMeta{} } else { - yyv2401 := &x.ListMeta - yym2402 := z.DecBinary() - _ = yym2402 + yyv2434 := &x.ListMeta + yym2435 := z.DecBinary() + _ = yym2435 if false { - } else if z.HasExtensions() && z.DecExt(yyv2401) { + } else if z.HasExtensions() && z.DecExt(yyv2434) { } else { - z.DecFallback(yyv2401, false) + z.DecFallback(yyv2434, false) } } - yyj2398++ - if yyhl2398 { - yyb2398 = yyj2398 > l + yyj2431++ + if yyhl2431 { + yyb2431 = yyj2431 > l } else { - yyb2398 = r.CheckBreak() + yyb2431 = r.CheckBreak() } - if yyb2398 { + if yyb2431 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -31659,26 +32188,26 @@ func (x *PodTemplateList) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) if r.TryDecodeAsNil() { x.Items = nil } else { - yyv2403 := &x.Items - yym2404 := z.DecBinary() - _ = yym2404 + yyv2436 := &x.Items + yym2437 := z.DecBinary() + _ = yym2437 if false { } else { - h.decSlicePodTemplate((*[]PodTemplate)(yyv2403), d) + h.decSlicePodTemplate((*[]PodTemplate)(yyv2436), d) } } for { - yyj2398++ - if yyhl2398 { - yyb2398 = yyj2398 > l + yyj2431++ + if yyhl2431 { + yyb2431 = yyj2431 > l } else { - yyb2398 = r.CheckBreak() + yyb2431 = r.CheckBreak() } - if yyb2398 { + if yyb2431 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj2398-1, "") + z.DecStructFieldNotFound(yyj2431-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -31690,34 +32219,35 @@ func (x *ReplicationControllerSpec) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym2405 := z.EncBinary() - _ = yym2405 + yym2438 := z.EncBinary() + _ = yym2438 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - 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) + yysep2439 := !z.EncBinary() + yy2arr2439 := z.EncBasicHandle().StructToArray + var yyq2439 [4]bool + _, _, _ = yysep2439, yyq2439, yy2arr2439 + const yyr2439 bool = false + yyq2439[1] = x.MinReadySeconds != 0 + yyq2439[3] = x.Template != nil + var yynn2439 int + if yyr2439 || yy2arr2439 { + r.EncodeArrayStart(4) } else { - yynn2406 = 2 - for _, b := range yyq2406 { + yynn2439 = 2 + for _, b := range yyq2439 { if b { - yynn2406++ + yynn2439++ } } - r.EncodeMapStart(yynn2406) - yynn2406 = 0 + r.EncodeMapStart(yynn2439) + yynn2439 = 0 } - if yyr2406 || yy2arr2406 { + if yyr2439 || yy2arr2439 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym2408 := z.EncBinary() - _ = yym2408 + yym2441 := z.EncBinary() + _ = yym2441 if false { } else { r.EncodeInt(int64(x.Replicas)) @@ -31726,20 +32256,45 @@ func (x *ReplicationControllerSpec) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("replicas")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym2409 := z.EncBinary() - _ = yym2409 + yym2442 := z.EncBinary() + _ = yym2442 if false { } else { r.EncodeInt(int64(x.Replicas)) } } - if yyr2406 || yy2arr2406 { + if yyr2439 || yy2arr2439 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq2439[1] { + yym2444 := z.EncBinary() + _ = yym2444 + if false { + } else { + r.EncodeInt(int64(x.MinReadySeconds)) + } + } else { + r.EncodeInt(0) + } + } else { + if yyq2439[1] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("minReadySeconds")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym2445 := z.EncBinary() + _ = yym2445 + if false { + } else { + r.EncodeInt(int64(x.MinReadySeconds)) + } + } + } + if yyr2439 || yy2arr2439 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.Selector == nil { r.EncodeNil() } else { - yym2411 := z.EncBinary() - _ = yym2411 + yym2447 := z.EncBinary() + _ = yym2447 if false { } else { z.F.EncMapStringStringV(x.Selector, false, e) @@ -31752,17 +32307,17 @@ func (x *ReplicationControllerSpec) CodecEncodeSelf(e *codec1978.Encoder) { if x.Selector == nil { r.EncodeNil() } else { - yym2412 := z.EncBinary() - _ = yym2412 + yym2448 := z.EncBinary() + _ = yym2448 if false { } else { z.F.EncMapStringStringV(x.Selector, false, e) } } } - if yyr2406 || yy2arr2406 { + if yyr2439 || yy2arr2439 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2406[2] { + if yyq2439[3] { if x.Template == nil { r.EncodeNil() } else { @@ -31772,7 +32327,7 @@ func (x *ReplicationControllerSpec) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq2406[2] { + if yyq2439[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("template")) z.EncSendContainerState(codecSelfer_containerMapValue1234) @@ -31783,7 +32338,7 @@ func (x *ReplicationControllerSpec) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr2406 || yy2arr2406 { + if yyr2439 || yy2arr2439 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -31796,25 +32351,25 @@ func (x *ReplicationControllerSpec) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym2414 := z.DecBinary() - _ = yym2414 + yym2450 := z.DecBinary() + _ = yym2450 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2415 := r.ContainerType() - if yyct2415 == codecSelferValueTypeMap1234 { - yyl2415 := r.ReadMapStart() - if yyl2415 == 0 { + yyct2451 := r.ContainerType() + if yyct2451 == codecSelferValueTypeMap1234 { + yyl2451 := r.ReadMapStart() + if yyl2451 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2415, d) + x.codecDecodeSelfFromMap(yyl2451, d) } - } else if yyct2415 == codecSelferValueTypeArray1234 { - yyl2415 := r.ReadArrayStart() - if yyl2415 == 0 { + } else if yyct2451 == codecSelferValueTypeArray1234 { + yyl2451 := r.ReadArrayStart() + if yyl2451 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2415, d) + x.codecDecodeSelfFromArray(yyl2451, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -31826,12 +32381,12 @@ func (x *ReplicationControllerSpec) codecDecodeSelfFromMap(l int, d *codec1978.D var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys2416Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys2416Slc - var yyhl2416 bool = l >= 0 - for yyj2416 := 0; ; yyj2416++ { - if yyhl2416 { - if yyj2416 >= l { + var yys2452Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys2452Slc + var yyhl2452 bool = l >= 0 + for yyj2452 := 0; ; yyj2452++ { + if yyhl2452 { + if yyj2452 >= l { break } } else { @@ -31840,26 +32395,32 @@ func (x *ReplicationControllerSpec) codecDecodeSelfFromMap(l int, d *codec1978.D } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys2416Slc = r.DecodeBytes(yys2416Slc, true, true) - yys2416 := string(yys2416Slc) + yys2452Slc = r.DecodeBytes(yys2452Slc, true, true) + yys2452 := string(yys2452Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys2416 { + switch yys2452 { case "replicas": if r.TryDecodeAsNil() { x.Replicas = 0 } else { x.Replicas = int32(r.DecodeInt(32)) } + case "minReadySeconds": + if r.TryDecodeAsNil() { + x.MinReadySeconds = 0 + } else { + x.MinReadySeconds = int32(r.DecodeInt(32)) + } case "selector": if r.TryDecodeAsNil() { x.Selector = nil } else { - yyv2418 := &x.Selector - yym2419 := z.DecBinary() - _ = yym2419 + yyv2455 := &x.Selector + yym2456 := z.DecBinary() + _ = yym2456 if false { } else { - z.F.DecMapStringStringX(yyv2418, false, d) + z.F.DecMapStringStringX(yyv2455, false, d) } } case "template": @@ -31874,9 +32435,9 @@ func (x *ReplicationControllerSpec) codecDecodeSelfFromMap(l int, d *codec1978.D x.Template.CodecDecodeSelf(d) } default: - z.DecStructFieldNotFound(-1, yys2416) - } // end switch yys2416 - } // end for yyj2416 + z.DecStructFieldNotFound(-1, yys2452) + } // end switch yys2452 + } // end for yyj2452 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -31884,16 +32445,16 @@ func (x *ReplicationControllerSpec) codecDecodeSelfFromArray(l int, d *codec1978 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 + var yyj2458 int + var yyb2458 bool + var yyhl2458 bool = l >= 0 + yyj2458++ + if yyhl2458 { + yyb2458 = yyj2458 > l } else { - yyb2421 = r.CheckBreak() + yyb2458 = r.CheckBreak() } - if yyb2421 { + if yyb2458 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -31903,13 +32464,29 @@ func (x *ReplicationControllerSpec) codecDecodeSelfFromArray(l int, d *codec1978 } else { x.Replicas = int32(r.DecodeInt(32)) } - yyj2421++ - if yyhl2421 { - yyb2421 = yyj2421 > l + yyj2458++ + if yyhl2458 { + yyb2458 = yyj2458 > l } else { - yyb2421 = r.CheckBreak() + yyb2458 = r.CheckBreak() } - if yyb2421 { + if yyb2458 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.MinReadySeconds = 0 + } else { + x.MinReadySeconds = int32(r.DecodeInt(32)) + } + yyj2458++ + if yyhl2458 { + yyb2458 = yyj2458 > l + } else { + yyb2458 = r.CheckBreak() + } + if yyb2458 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -31917,21 +32494,21 @@ func (x *ReplicationControllerSpec) codecDecodeSelfFromArray(l int, d *codec1978 if r.TryDecodeAsNil() { x.Selector = nil } else { - yyv2423 := &x.Selector - yym2424 := z.DecBinary() - _ = yym2424 + yyv2461 := &x.Selector + yym2462 := z.DecBinary() + _ = yym2462 if false { } else { - z.F.DecMapStringStringX(yyv2423, false, d) + z.F.DecMapStringStringX(yyv2461, false, d) } } - yyj2421++ - if yyhl2421 { - yyb2421 = yyj2421 > l + yyj2458++ + if yyhl2458 { + yyb2458 = yyj2458 > l } else { - yyb2421 = r.CheckBreak() + yyb2458 = r.CheckBreak() } - if yyb2421 { + if yyb2458 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -31947,17 +32524,17 @@ func (x *ReplicationControllerSpec) codecDecodeSelfFromArray(l int, d *codec1978 x.Template.CodecDecodeSelf(d) } for { - yyj2421++ - if yyhl2421 { - yyb2421 = yyj2421 > l + yyj2458++ + if yyhl2458 { + yyb2458 = yyj2458 > l } else { - yyb2421 = r.CheckBreak() + yyb2458 = r.CheckBreak() } - if yyb2421 { + if yyb2458 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj2421-1, "") + z.DecStructFieldNotFound(yyj2458-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -31969,36 +32546,38 @@ func (x *ReplicationControllerStatus) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym2426 := z.EncBinary() - _ = yym2426 + yym2464 := z.EncBinary() + _ = yym2464 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep2427 := !z.EncBinary() - yy2arr2427 := z.EncBasicHandle().StructToArray - var yyq2427 [4]bool - _, _, _ = yysep2427, yyq2427, yy2arr2427 - const yyr2427 bool = false - yyq2427[1] = x.FullyLabeledReplicas != 0 - yyq2427[2] = x.ReadyReplicas != 0 - yyq2427[3] = x.ObservedGeneration != 0 - var yynn2427 int - if yyr2427 || yy2arr2427 { - r.EncodeArrayStart(4) + yysep2465 := !z.EncBinary() + yy2arr2465 := z.EncBasicHandle().StructToArray + var yyq2465 [6]bool + _, _, _ = yysep2465, yyq2465, yy2arr2465 + const yyr2465 bool = false + yyq2465[1] = x.FullyLabeledReplicas != 0 + yyq2465[2] = x.ReadyReplicas != 0 + yyq2465[3] = x.AvailableReplicas != 0 + yyq2465[4] = x.ObservedGeneration != 0 + yyq2465[5] = len(x.Conditions) != 0 + var yynn2465 int + if yyr2465 || yy2arr2465 { + r.EncodeArrayStart(6) } else { - yynn2427 = 1 - for _, b := range yyq2427 { + yynn2465 = 1 + for _, b := range yyq2465 { if b { - yynn2427++ + yynn2465++ } } - r.EncodeMapStart(yynn2427) - yynn2427 = 0 + r.EncodeMapStart(yynn2465) + yynn2465 = 0 } - if yyr2427 || yy2arr2427 { + if yyr2465 || yy2arr2465 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym2429 := z.EncBinary() - _ = yym2429 + yym2467 := z.EncBinary() + _ = yym2467 if false { } else { r.EncodeInt(int64(x.Replicas)) @@ -32007,18 +32586,18 @@ func (x *ReplicationControllerStatus) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("replicas")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym2430 := z.EncBinary() - _ = yym2430 + yym2468 := z.EncBinary() + _ = yym2468 if false { } else { r.EncodeInt(int64(x.Replicas)) } } - if yyr2427 || yy2arr2427 { + if yyr2465 || yy2arr2465 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2427[1] { - yym2432 := z.EncBinary() - _ = yym2432 + if yyq2465[1] { + yym2470 := z.EncBinary() + _ = yym2470 if false { } else { r.EncodeInt(int64(x.FullyLabeledReplicas)) @@ -32027,23 +32606,23 @@ func (x *ReplicationControllerStatus) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeInt(0) } } else { - if yyq2427[1] { + if yyq2465[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("fullyLabeledReplicas")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym2433 := z.EncBinary() - _ = yym2433 + yym2471 := z.EncBinary() + _ = yym2471 if false { } else { r.EncodeInt(int64(x.FullyLabeledReplicas)) } } } - if yyr2427 || yy2arr2427 { + if yyr2465 || yy2arr2465 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2427[2] { - yym2435 := z.EncBinary() - _ = yym2435 + if yyq2465[2] { + yym2473 := z.EncBinary() + _ = yym2473 if false { } else { r.EncodeInt(int64(x.ReadyReplicas)) @@ -32052,23 +32631,48 @@ func (x *ReplicationControllerStatus) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeInt(0) } } else { - if yyq2427[2] { + if yyq2465[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("readyReplicas")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym2436 := z.EncBinary() - _ = yym2436 + yym2474 := z.EncBinary() + _ = yym2474 if false { } else { r.EncodeInt(int64(x.ReadyReplicas)) } } } - if yyr2427 || yy2arr2427 { + if yyr2465 || yy2arr2465 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2427[3] { - yym2438 := z.EncBinary() - _ = yym2438 + if yyq2465[3] { + yym2476 := z.EncBinary() + _ = yym2476 + if false { + } else { + r.EncodeInt(int64(x.AvailableReplicas)) + } + } else { + r.EncodeInt(0) + } + } else { + if yyq2465[3] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("availableReplicas")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym2477 := z.EncBinary() + _ = yym2477 + if false { + } else { + r.EncodeInt(int64(x.AvailableReplicas)) + } + } + } + if yyr2465 || yy2arr2465 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq2465[4] { + yym2479 := z.EncBinary() + _ = yym2479 if false { } else { r.EncodeInt(int64(x.ObservedGeneration)) @@ -32077,19 +32681,52 @@ func (x *ReplicationControllerStatus) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeInt(0) } } else { - if yyq2427[3] { + if yyq2465[4] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("observedGeneration")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym2439 := z.EncBinary() - _ = yym2439 + yym2480 := z.EncBinary() + _ = yym2480 if false { } else { r.EncodeInt(int64(x.ObservedGeneration)) } } } - if yyr2427 || yy2arr2427 { + if yyr2465 || yy2arr2465 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq2465[5] { + if x.Conditions == nil { + r.EncodeNil() + } else { + yym2482 := z.EncBinary() + _ = yym2482 + if false { + } else { + h.encSliceReplicationControllerCondition(([]ReplicationControllerCondition)(x.Conditions), e) + } + } + } else { + r.EncodeNil() + } + } else { + if yyq2465[5] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("conditions")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + if x.Conditions == nil { + r.EncodeNil() + } else { + yym2483 := z.EncBinary() + _ = yym2483 + if false { + } else { + h.encSliceReplicationControllerCondition(([]ReplicationControllerCondition)(x.Conditions), e) + } + } + } + } + if yyr2465 || yy2arr2465 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -32102,25 +32739,25 @@ func (x *ReplicationControllerStatus) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym2440 := z.DecBinary() - _ = yym2440 + yym2484 := z.DecBinary() + _ = yym2484 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2441 := r.ContainerType() - if yyct2441 == codecSelferValueTypeMap1234 { - yyl2441 := r.ReadMapStart() - if yyl2441 == 0 { + yyct2485 := r.ContainerType() + if yyct2485 == codecSelferValueTypeMap1234 { + yyl2485 := r.ReadMapStart() + if yyl2485 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2441, d) + x.codecDecodeSelfFromMap(yyl2485, d) } - } else if yyct2441 == codecSelferValueTypeArray1234 { - yyl2441 := r.ReadArrayStart() - if yyl2441 == 0 { + } else if yyct2485 == codecSelferValueTypeArray1234 { + yyl2485 := r.ReadArrayStart() + if yyl2485 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2441, d) + x.codecDecodeSelfFromArray(yyl2485, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -32132,12 +32769,12 @@ func (x *ReplicationControllerStatus) codecDecodeSelfFromMap(l int, d *codec1978 var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys2442Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys2442Slc - var yyhl2442 bool = l >= 0 - for yyj2442 := 0; ; yyj2442++ { - if yyhl2442 { - if yyj2442 >= l { + var yys2486Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys2486Slc + var yyhl2486 bool = l >= 0 + for yyj2486 := 0; ; yyj2486++ { + if yyhl2486 { + if yyj2486 >= l { break } } else { @@ -32146,10 +32783,10 @@ func (x *ReplicationControllerStatus) codecDecodeSelfFromMap(l int, d *codec1978 } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys2442Slc = r.DecodeBytes(yys2442Slc, true, true) - yys2442 := string(yys2442Slc) + yys2486Slc = r.DecodeBytes(yys2486Slc, true, true) + yys2486 := string(yys2486Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys2442 { + switch yys2486 { case "replicas": if r.TryDecodeAsNil() { x.Replicas = 0 @@ -32168,16 +32805,34 @@ func (x *ReplicationControllerStatus) codecDecodeSelfFromMap(l int, d *codec1978 } else { x.ReadyReplicas = int32(r.DecodeInt(32)) } + case "availableReplicas": + if r.TryDecodeAsNil() { + x.AvailableReplicas = 0 + } else { + x.AvailableReplicas = int32(r.DecodeInt(32)) + } case "observedGeneration": if r.TryDecodeAsNil() { x.ObservedGeneration = 0 } else { x.ObservedGeneration = int64(r.DecodeInt(64)) } + case "conditions": + if r.TryDecodeAsNil() { + x.Conditions = nil + } else { + yyv2492 := &x.Conditions + yym2493 := z.DecBinary() + _ = yym2493 + if false { + } else { + h.decSliceReplicationControllerCondition((*[]ReplicationControllerCondition)(yyv2492), d) + } + } default: - z.DecStructFieldNotFound(-1, yys2442) - } // end switch yys2442 - } // end for yyj2442 + z.DecStructFieldNotFound(-1, yys2486) + } // end switch yys2486 + } // end for yyj2486 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -32185,16 +32840,16 @@ func (x *ReplicationControllerStatus) codecDecodeSelfFromArray(l int, d *codec19 var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj2447 int - var yyb2447 bool - var yyhl2447 bool = l >= 0 - yyj2447++ - if yyhl2447 { - yyb2447 = yyj2447 > l + var yyj2494 int + var yyb2494 bool + var yyhl2494 bool = l >= 0 + yyj2494++ + if yyhl2494 { + yyb2494 = yyj2494 > l } else { - yyb2447 = r.CheckBreak() + yyb2494 = r.CheckBreak() } - if yyb2447 { + if yyb2494 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -32204,13 +32859,13 @@ func (x *ReplicationControllerStatus) codecDecodeSelfFromArray(l int, d *codec19 } else { x.Replicas = int32(r.DecodeInt(32)) } - yyj2447++ - if yyhl2447 { - yyb2447 = yyj2447 > l + yyj2494++ + if yyhl2494 { + yyb2494 = yyj2494 > l } else { - yyb2447 = r.CheckBreak() + yyb2494 = r.CheckBreak() } - if yyb2447 { + if yyb2494 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -32220,13 +32875,13 @@ func (x *ReplicationControllerStatus) codecDecodeSelfFromArray(l int, d *codec19 } else { x.FullyLabeledReplicas = int32(r.DecodeInt(32)) } - yyj2447++ - if yyhl2447 { - yyb2447 = yyj2447 > l + yyj2494++ + if yyhl2494 { + yyb2494 = yyj2494 > l } else { - yyb2447 = r.CheckBreak() + yyb2494 = r.CheckBreak() } - if yyb2447 { + if yyb2494 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -32236,13 +32891,29 @@ func (x *ReplicationControllerStatus) codecDecodeSelfFromArray(l int, d *codec19 } else { x.ReadyReplicas = int32(r.DecodeInt(32)) } - yyj2447++ - if yyhl2447 { - yyb2447 = yyj2447 > l + yyj2494++ + if yyhl2494 { + yyb2494 = yyj2494 > l } else { - yyb2447 = r.CheckBreak() + yyb2494 = r.CheckBreak() } - if yyb2447 { + if yyb2494 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.AvailableReplicas = 0 + } else { + x.AvailableReplicas = int32(r.DecodeInt(32)) + } + yyj2494++ + if yyhl2494 { + yyb2494 = yyj2494 > l + } else { + yyb2494 = r.CheckBreak() + } + if yyb2494 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -32252,18 +32923,427 @@ func (x *ReplicationControllerStatus) codecDecodeSelfFromArray(l int, d *codec19 } else { x.ObservedGeneration = int64(r.DecodeInt(64)) } - for { - yyj2447++ - if yyhl2447 { - yyb2447 = yyj2447 > l + yyj2494++ + if yyhl2494 { + yyb2494 = yyj2494 > l + } else { + yyb2494 = r.CheckBreak() + } + if yyb2494 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Conditions = nil + } else { + yyv2500 := &x.Conditions + yym2501 := z.DecBinary() + _ = yym2501 + if false { } else { - yyb2447 = r.CheckBreak() + h.decSliceReplicationControllerCondition((*[]ReplicationControllerCondition)(yyv2500), d) } - if yyb2447 { + } + for { + yyj2494++ + if yyhl2494 { + yyb2494 = yyj2494 > l + } else { + yyb2494 = r.CheckBreak() + } + if yyb2494 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj2447-1, "") + z.DecStructFieldNotFound(yyj2494-1, "") + } + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) +} + +func (x ReplicationControllerConditionType) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + yym2502 := z.EncBinary() + _ = yym2502 + if false { + } else if z.HasExtensions() && z.EncExt(x) { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x)) + } +} + +func (x *ReplicationControllerConditionType) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + yym2503 := z.DecBinary() + _ = yym2503 + if false { + } else if z.HasExtensions() && z.DecExt(x) { + } else { + *((*string)(x)) = r.DecodeString() + } +} + +func (x *ReplicationControllerCondition) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + yym2504 := z.EncBinary() + _ = yym2504 + if false { + } else if z.HasExtensions() && z.EncExt(x) { + } else { + yysep2505 := !z.EncBinary() + yy2arr2505 := z.EncBasicHandle().StructToArray + var yyq2505 [5]bool + _, _, _ = yysep2505, yyq2505, yy2arr2505 + const yyr2505 bool = false + yyq2505[2] = true + yyq2505[3] = x.Reason != "" + yyq2505[4] = x.Message != "" + var yynn2505 int + if yyr2505 || yy2arr2505 { + r.EncodeArrayStart(5) + } else { + yynn2505 = 2 + for _, b := range yyq2505 { + if b { + yynn2505++ + } + } + r.EncodeMapStart(yynn2505) + yynn2505 = 0 + } + if yyr2505 || yy2arr2505 { + 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 yyr2505 || yy2arr2505 { + 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 yyr2505 || yy2arr2505 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq2505[2] { + yy2509 := &x.LastTransitionTime + yym2510 := z.EncBinary() + _ = yym2510 + if false { + } else if z.HasExtensions() && z.EncExt(yy2509) { + } else if yym2510 { + z.EncBinaryMarshal(yy2509) + } else if !yym2510 && z.IsJSONHandle() { + z.EncJSONMarshal(yy2509) + } else { + z.EncFallback(yy2509) + } + } else { + r.EncodeNil() + } + } else { + if yyq2505[2] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("lastTransitionTime")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yy2511 := &x.LastTransitionTime + yym2512 := z.EncBinary() + _ = yym2512 + if false { + } else if z.HasExtensions() && z.EncExt(yy2511) { + } else if yym2512 { + z.EncBinaryMarshal(yy2511) + } else if !yym2512 && z.IsJSONHandle() { + z.EncJSONMarshal(yy2511) + } else { + z.EncFallback(yy2511) + } + } + } + if yyr2505 || yy2arr2505 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq2505[3] { + yym2514 := z.EncBinary() + _ = yym2514 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Reason)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq2505[3] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("reason")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym2515 := z.EncBinary() + _ = yym2515 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Reason)) + } + } + } + if yyr2505 || yy2arr2505 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq2505[4] { + yym2517 := z.EncBinary() + _ = yym2517 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Message)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq2505[4] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("message")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym2518 := z.EncBinary() + _ = yym2518 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Message)) + } + } + } + if yyr2505 || yy2arr2505 { + z.EncSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + z.EncSendContainerState(codecSelfer_containerMapEnd1234) + } + } + } +} + +func (x *ReplicationControllerCondition) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + yym2519 := z.DecBinary() + _ = yym2519 + if false { + } else if z.HasExtensions() && z.DecExt(x) { + } else { + yyct2520 := r.ContainerType() + if yyct2520 == codecSelferValueTypeMap1234 { + yyl2520 := r.ReadMapStart() + if yyl2520 == 0 { + z.DecSendContainerState(codecSelfer_containerMapEnd1234) + } else { + x.codecDecodeSelfFromMap(yyl2520, d) + } + } else if yyct2520 == codecSelferValueTypeArray1234 { + yyl2520 := r.ReadArrayStart() + if yyl2520 == 0 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + x.codecDecodeSelfFromArray(yyl2520, d) + } + } else { + panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) + } + } +} + +func (x *ReplicationControllerCondition) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yys2521Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys2521Slc + var yyhl2521 bool = l >= 0 + for yyj2521 := 0; ; yyj2521++ { + if yyhl2521 { + if yyj2521 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + z.DecSendContainerState(codecSelfer_containerMapKey1234) + yys2521Slc = r.DecodeBytes(yys2521Slc, true, true) + yys2521 := string(yys2521Slc) + z.DecSendContainerState(codecSelfer_containerMapValue1234) + switch yys2521 { + case "type": + if r.TryDecodeAsNil() { + x.Type = "" + } else { + x.Type = ReplicationControllerConditionType(r.DecodeString()) + } + case "status": + if r.TryDecodeAsNil() { + x.Status = "" + } else { + x.Status = ConditionStatus(r.DecodeString()) + } + case "lastTransitionTime": + if r.TryDecodeAsNil() { + x.LastTransitionTime = pkg2_unversioned.Time{} + } else { + yyv2524 := &x.LastTransitionTime + yym2525 := z.DecBinary() + _ = yym2525 + if false { + } else if z.HasExtensions() && z.DecExt(yyv2524) { + } else if yym2525 { + z.DecBinaryUnmarshal(yyv2524) + } else if !yym2525 && z.IsJSONHandle() { + z.DecJSONUnmarshal(yyv2524) + } else { + z.DecFallback(yyv2524, 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, yys2521) + } // end switch yys2521 + } // end for yyj2521 + z.DecSendContainerState(codecSelfer_containerMapEnd1234) +} + +func (x *ReplicationControllerCondition) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj2528 int + var yyb2528 bool + var yyhl2528 bool = l >= 0 + yyj2528++ + if yyhl2528 { + yyb2528 = yyj2528 > l + } else { + yyb2528 = r.CheckBreak() + } + if yyb2528 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Type = "" + } else { + x.Type = ReplicationControllerConditionType(r.DecodeString()) + } + yyj2528++ + if yyhl2528 { + yyb2528 = yyj2528 > l + } else { + yyb2528 = r.CheckBreak() + } + if yyb2528 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Status = "" + } else { + x.Status = ConditionStatus(r.DecodeString()) + } + yyj2528++ + if yyhl2528 { + yyb2528 = yyj2528 > l + } else { + yyb2528 = r.CheckBreak() + } + if yyb2528 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.LastTransitionTime = pkg2_unversioned.Time{} + } else { + yyv2531 := &x.LastTransitionTime + yym2532 := z.DecBinary() + _ = yym2532 + if false { + } else if z.HasExtensions() && z.DecExt(yyv2531) { + } else if yym2532 { + z.DecBinaryUnmarshal(yyv2531) + } else if !yym2532 && z.IsJSONHandle() { + z.DecJSONUnmarshal(yyv2531) + } else { + z.DecFallback(yyv2531, false) + } + } + yyj2528++ + if yyhl2528 { + yyb2528 = yyj2528 > l + } else { + yyb2528 = r.CheckBreak() + } + if yyb2528 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Reason = "" + } else { + x.Reason = string(r.DecodeString()) + } + yyj2528++ + if yyhl2528 { + yyb2528 = yyj2528 > l + } else { + yyb2528 = r.CheckBreak() + } + if yyb2528 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Message = "" + } else { + x.Message = string(r.DecodeString()) + } + for { + yyj2528++ + if yyhl2528 { + yyb2528 = yyj2528 > l + } else { + yyb2528 = r.CheckBreak() + } + if yyb2528 { + break + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + z.DecStructFieldNotFound(yyj2528-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -32275,39 +33355,39 @@ func (x *ReplicationController) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym2452 := z.EncBinary() - _ = yym2452 + yym2535 := z.EncBinary() + _ = yym2535 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep2453 := !z.EncBinary() - yy2arr2453 := z.EncBasicHandle().StructToArray - var yyq2453 [5]bool - _, _, _ = yysep2453, yyq2453, yy2arr2453 - const yyr2453 bool = false - yyq2453[0] = x.Kind != "" - yyq2453[1] = x.APIVersion != "" - yyq2453[2] = true - yyq2453[3] = true - yyq2453[4] = true - var yynn2453 int - if yyr2453 || yy2arr2453 { + yysep2536 := !z.EncBinary() + yy2arr2536 := z.EncBasicHandle().StructToArray + var yyq2536 [5]bool + _, _, _ = yysep2536, yyq2536, yy2arr2536 + const yyr2536 bool = false + yyq2536[0] = x.Kind != "" + yyq2536[1] = x.APIVersion != "" + yyq2536[2] = true + yyq2536[3] = true + yyq2536[4] = true + var yynn2536 int + if yyr2536 || yy2arr2536 { r.EncodeArrayStart(5) } else { - yynn2453 = 0 - for _, b := range yyq2453 { + yynn2536 = 0 + for _, b := range yyq2536 { if b { - yynn2453++ + yynn2536++ } } - r.EncodeMapStart(yynn2453) - yynn2453 = 0 + r.EncodeMapStart(yynn2536) + yynn2536 = 0 } - if yyr2453 || yy2arr2453 { + if yyr2536 || yy2arr2536 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2453[0] { - yym2455 := z.EncBinary() - _ = yym2455 + if yyq2536[0] { + yym2538 := z.EncBinary() + _ = yym2538 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) @@ -32316,23 +33396,23 @@ func (x *ReplicationController) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2453[0] { + if yyq2536[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym2456 := z.EncBinary() - _ = yym2456 + yym2539 := z.EncBinary() + _ = yym2539 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } - if yyr2453 || yy2arr2453 { + if yyr2536 || yy2arr2536 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2453[1] { - yym2458 := z.EncBinary() - _ = yym2458 + if yyq2536[1] { + yym2541 := z.EncBinary() + _ = yym2541 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) @@ -32341,70 +33421,70 @@ func (x *ReplicationController) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2453[1] { + if yyq2536[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym2459 := z.EncBinary() - _ = yym2459 + yym2542 := z.EncBinary() + _ = yym2542 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } - if yyr2453 || yy2arr2453 { + if yyr2536 || yy2arr2536 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2453[2] { - yy2461 := &x.ObjectMeta - yy2461.CodecEncodeSelf(e) + if yyq2536[2] { + yy2544 := &x.ObjectMeta + yy2544.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { - if yyq2453[2] { + if yyq2536[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy2462 := &x.ObjectMeta - yy2462.CodecEncodeSelf(e) + yy2545 := &x.ObjectMeta + yy2545.CodecEncodeSelf(e) } } - if yyr2453 || yy2arr2453 { + if yyr2536 || yy2arr2536 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2453[3] { - yy2464 := &x.Spec - yy2464.CodecEncodeSelf(e) + if yyq2536[3] { + yy2547 := &x.Spec + yy2547.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { - if yyq2453[3] { + if yyq2536[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("spec")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy2465 := &x.Spec - yy2465.CodecEncodeSelf(e) + yy2548 := &x.Spec + yy2548.CodecEncodeSelf(e) } } - if yyr2453 || yy2arr2453 { + if yyr2536 || yy2arr2536 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2453[4] { - yy2467 := &x.Status - yy2467.CodecEncodeSelf(e) + if yyq2536[4] { + yy2550 := &x.Status + yy2550.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { - if yyq2453[4] { + if yyq2536[4] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("status")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy2468 := &x.Status - yy2468.CodecEncodeSelf(e) + yy2551 := &x.Status + yy2551.CodecEncodeSelf(e) } } - if yyr2453 || yy2arr2453 { + if yyr2536 || yy2arr2536 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -32417,25 +33497,25 @@ func (x *ReplicationController) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym2469 := z.DecBinary() - _ = yym2469 + yym2552 := z.DecBinary() + _ = yym2552 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2470 := r.ContainerType() - if yyct2470 == codecSelferValueTypeMap1234 { - yyl2470 := r.ReadMapStart() - if yyl2470 == 0 { + yyct2553 := r.ContainerType() + if yyct2553 == codecSelferValueTypeMap1234 { + yyl2553 := r.ReadMapStart() + if yyl2553 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2470, d) + x.codecDecodeSelfFromMap(yyl2553, d) } - } else if yyct2470 == codecSelferValueTypeArray1234 { - yyl2470 := r.ReadArrayStart() - if yyl2470 == 0 { + } else if yyct2553 == codecSelferValueTypeArray1234 { + yyl2553 := r.ReadArrayStart() + if yyl2553 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2470, d) + x.codecDecodeSelfFromArray(yyl2553, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -32447,12 +33527,12 @@ func (x *ReplicationController) codecDecodeSelfFromMap(l int, d *codec1978.Decod var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys2471Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys2471Slc - var yyhl2471 bool = l >= 0 - for yyj2471 := 0; ; yyj2471++ { - if yyhl2471 { - if yyj2471 >= l { + var yys2554Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys2554Slc + var yyhl2554 bool = l >= 0 + for yyj2554 := 0; ; yyj2554++ { + if yyhl2554 { + if yyj2554 >= l { break } } else { @@ -32461,10 +33541,10 @@ func (x *ReplicationController) codecDecodeSelfFromMap(l int, d *codec1978.Decod } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys2471Slc = r.DecodeBytes(yys2471Slc, true, true) - yys2471 := string(yys2471Slc) + yys2554Slc = r.DecodeBytes(yys2554Slc, true, true) + yys2554 := string(yys2554Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys2471 { + switch yys2554 { case "kind": if r.TryDecodeAsNil() { x.Kind = "" @@ -32481,1000 +33561,31 @@ func (x *ReplicationController) codecDecodeSelfFromMap(l int, d *codec1978.Decod if r.TryDecodeAsNil() { x.ObjectMeta = ObjectMeta{} } else { - yyv2474 := &x.ObjectMeta - yyv2474.CodecDecodeSelf(d) + yyv2557 := &x.ObjectMeta + yyv2557.CodecDecodeSelf(d) } case "spec": if r.TryDecodeAsNil() { x.Spec = ReplicationControllerSpec{} } else { - yyv2475 := &x.Spec - yyv2475.CodecDecodeSelf(d) + yyv2558 := &x.Spec + yyv2558.CodecDecodeSelf(d) } case "status": if r.TryDecodeAsNil() { x.Status = ReplicationControllerStatus{} } else { - yyv2476 := &x.Status - yyv2476.CodecDecodeSelf(d) + yyv2559 := &x.Status + yyv2559.CodecDecodeSelf(d) } default: - z.DecStructFieldNotFound(-1, yys2471) - } // end switch yys2471 - } // end for yyj2471 + z.DecStructFieldNotFound(-1, yys2554) + } // end switch yys2554 + } // end for yyj2554 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } func (x *ReplicationController) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yyj2477 int - var yyb2477 bool - var yyhl2477 bool = l >= 0 - yyj2477++ - if yyhl2477 { - yyb2477 = yyj2477 > l - } else { - yyb2477 = r.CheckBreak() - } - if yyb2477 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Kind = "" - } else { - x.Kind = string(r.DecodeString()) - } - yyj2477++ - if yyhl2477 { - yyb2477 = yyj2477 > l - } else { - yyb2477 = r.CheckBreak() - } - if yyb2477 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.APIVersion = "" - } else { - x.APIVersion = string(r.DecodeString()) - } - yyj2477++ - if yyhl2477 { - yyb2477 = yyj2477 > l - } else { - yyb2477 = r.CheckBreak() - } - if yyb2477 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.ObjectMeta = ObjectMeta{} - } else { - yyv2480 := &x.ObjectMeta - yyv2480.CodecDecodeSelf(d) - } - yyj2477++ - if yyhl2477 { - yyb2477 = yyj2477 > l - } else { - yyb2477 = r.CheckBreak() - } - if yyb2477 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Spec = ReplicationControllerSpec{} - } else { - yyv2481 := &x.Spec - yyv2481.CodecDecodeSelf(d) - } - yyj2477++ - if yyhl2477 { - yyb2477 = yyj2477 > l - } else { - yyb2477 = r.CheckBreak() - } - if yyb2477 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Status = ReplicationControllerStatus{} - } else { - yyv2482 := &x.Status - yyv2482.CodecDecodeSelf(d) - } - for { - yyj2477++ - if yyhl2477 { - yyb2477 = yyj2477 > l - } else { - yyb2477 = r.CheckBreak() - } - if yyb2477 { - break - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj2477-1, "") - } - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) -} - -func (x *ReplicationControllerList) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - if x == nil { - r.EncodeNil() - } else { - yym2483 := z.EncBinary() - _ = yym2483 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - yysep2484 := !z.EncBinary() - yy2arr2484 := z.EncBasicHandle().StructToArray - var yyq2484 [4]bool - _, _, _ = yysep2484, yyq2484, yy2arr2484 - const yyr2484 bool = false - yyq2484[0] = x.Kind != "" - yyq2484[1] = x.APIVersion != "" - yyq2484[2] = true - var yynn2484 int - if yyr2484 || yy2arr2484 { - r.EncodeArrayStart(4) - } else { - yynn2484 = 1 - for _, b := range yyq2484 { - if b { - yynn2484++ - } - } - r.EncodeMapStart(yynn2484) - yynn2484 = 0 - } - if yyr2484 || yy2arr2484 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2484[0] { - yym2486 := z.EncBinary() - _ = yym2486 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) - } - } else { - r.EncodeString(codecSelferC_UTF81234, "") - } - } else { - if yyq2484[0] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("kind")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym2487 := z.EncBinary() - _ = yym2487 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) - } - } - } - if yyr2484 || yy2arr2484 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2484[1] { - yym2489 := z.EncBinary() - _ = yym2489 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) - } - } else { - r.EncodeString(codecSelferC_UTF81234, "") - } - } else { - if yyq2484[1] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym2490 := z.EncBinary() - _ = yym2490 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) - } - } - } - if yyr2484 || yy2arr2484 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2484[2] { - yy2492 := &x.ListMeta - yym2493 := z.EncBinary() - _ = yym2493 - if false { - } else if z.HasExtensions() && z.EncExt(yy2492) { - } else { - z.EncFallback(yy2492) - } - } else { - r.EncodeNil() - } - } else { - if yyq2484[2] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("metadata")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy2494 := &x.ListMeta - yym2495 := z.EncBinary() - _ = yym2495 - if false { - } else if z.HasExtensions() && z.EncExt(yy2494) { - } else { - z.EncFallback(yy2494) - } - } - } - if yyr2484 || yy2arr2484 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if x.Items == nil { - r.EncodeNil() - } else { - yym2497 := z.EncBinary() - _ = yym2497 - if false { - } else { - h.encSliceReplicationController(([]ReplicationController)(x.Items), e) - } - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("items")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - if x.Items == nil { - r.EncodeNil() - } else { - yym2498 := z.EncBinary() - _ = yym2498 - if false { - } else { - h.encSliceReplicationController(([]ReplicationController)(x.Items), e) - } - } - } - if yyr2484 || yy2arr2484 { - z.EncSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - z.EncSendContainerState(codecSelfer_containerMapEnd1234) - } - } - } -} - -func (x *ReplicationControllerList) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - yym2499 := z.DecBinary() - _ = yym2499 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - yyct2500 := r.ContainerType() - if yyct2500 == codecSelferValueTypeMap1234 { - yyl2500 := r.ReadMapStart() - if yyl2500 == 0 { - z.DecSendContainerState(codecSelfer_containerMapEnd1234) - } else { - x.codecDecodeSelfFromMap(yyl2500, d) - } - } else if yyct2500 == codecSelferValueTypeArray1234 { - yyl2500 := r.ReadArrayStart() - if yyl2500 == 0 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - x.codecDecodeSelfFromArray(yyl2500, d) - } - } else { - panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) - } - } -} - -func (x *ReplicationControllerList) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yys2501Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys2501Slc - var yyhl2501 bool = l >= 0 - for yyj2501 := 0; ; yyj2501++ { - if yyhl2501 { - if yyj2501 >= l { - break - } - } else { - if r.CheckBreak() { - break - } - } - z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys2501Slc = r.DecodeBytes(yys2501Slc, true, true) - yys2501 := string(yys2501Slc) - z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys2501 { - case "kind": - if r.TryDecodeAsNil() { - x.Kind = "" - } else { - x.Kind = string(r.DecodeString()) - } - case "apiVersion": - if r.TryDecodeAsNil() { - x.APIVersion = "" - } else { - x.APIVersion = string(r.DecodeString()) - } - case "metadata": - if r.TryDecodeAsNil() { - x.ListMeta = pkg2_unversioned.ListMeta{} - } else { - yyv2504 := &x.ListMeta - yym2505 := z.DecBinary() - _ = yym2505 - if false { - } else if z.HasExtensions() && z.DecExt(yyv2504) { - } else { - z.DecFallback(yyv2504, false) - } - } - case "items": - if r.TryDecodeAsNil() { - x.Items = nil - } else { - yyv2506 := &x.Items - yym2507 := z.DecBinary() - _ = yym2507 - if false { - } else { - h.decSliceReplicationController((*[]ReplicationController)(yyv2506), d) - } - } - default: - z.DecStructFieldNotFound(-1, yys2501) - } // end switch yys2501 - } // end for yyj2501 - z.DecSendContainerState(codecSelfer_containerMapEnd1234) -} - -func (x *ReplicationControllerList) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yyj2508 int - var yyb2508 bool - var yyhl2508 bool = l >= 0 - yyj2508++ - if yyhl2508 { - yyb2508 = yyj2508 > l - } else { - yyb2508 = r.CheckBreak() - } - if yyb2508 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Kind = "" - } else { - x.Kind = string(r.DecodeString()) - } - yyj2508++ - if yyhl2508 { - yyb2508 = yyj2508 > l - } else { - yyb2508 = r.CheckBreak() - } - if yyb2508 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.APIVersion = "" - } else { - x.APIVersion = string(r.DecodeString()) - } - yyj2508++ - if yyhl2508 { - yyb2508 = yyj2508 > l - } else { - yyb2508 = r.CheckBreak() - } - if yyb2508 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.ListMeta = pkg2_unversioned.ListMeta{} - } else { - yyv2511 := &x.ListMeta - yym2512 := z.DecBinary() - _ = yym2512 - if false { - } else if z.HasExtensions() && z.DecExt(yyv2511) { - } else { - z.DecFallback(yyv2511, false) - } - } - yyj2508++ - if yyhl2508 { - yyb2508 = yyj2508 > l - } else { - yyb2508 = r.CheckBreak() - } - if yyb2508 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Items = nil - } else { - yyv2513 := &x.Items - yym2514 := z.DecBinary() - _ = yym2514 - if false { - } else { - h.decSliceReplicationController((*[]ReplicationController)(yyv2513), d) - } - } - for { - yyj2508++ - if yyhl2508 { - yyb2508 = yyj2508 > l - } else { - yyb2508 = r.CheckBreak() - } - if yyb2508 { - break - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj2508-1, "") - } - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) -} - -func (x *ServiceList) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - if x == nil { - r.EncodeNil() - } else { - yym2515 := z.EncBinary() - _ = yym2515 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - yysep2516 := !z.EncBinary() - yy2arr2516 := z.EncBasicHandle().StructToArray - var yyq2516 [4]bool - _, _, _ = yysep2516, yyq2516, yy2arr2516 - const yyr2516 bool = false - yyq2516[0] = x.Kind != "" - yyq2516[1] = x.APIVersion != "" - yyq2516[2] = true - var yynn2516 int - if yyr2516 || yy2arr2516 { - r.EncodeArrayStart(4) - } else { - yynn2516 = 1 - for _, b := range yyq2516 { - if b { - yynn2516++ - } - } - r.EncodeMapStart(yynn2516) - yynn2516 = 0 - } - if yyr2516 || yy2arr2516 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2516[0] { - yym2518 := z.EncBinary() - _ = yym2518 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) - } - } else { - r.EncodeString(codecSelferC_UTF81234, "") - } - } else { - if yyq2516[0] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("kind")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym2519 := z.EncBinary() - _ = yym2519 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) - } - } - } - if yyr2516 || yy2arr2516 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2516[1] { - yym2521 := z.EncBinary() - _ = yym2521 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) - } - } else { - r.EncodeString(codecSelferC_UTF81234, "") - } - } else { - if yyq2516[1] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym2522 := z.EncBinary() - _ = yym2522 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) - } - } - } - if yyr2516 || yy2arr2516 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2516[2] { - yy2524 := &x.ListMeta - yym2525 := z.EncBinary() - _ = yym2525 - if false { - } else if z.HasExtensions() && z.EncExt(yy2524) { - } else { - z.EncFallback(yy2524) - } - } else { - r.EncodeNil() - } - } else { - if yyq2516[2] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("metadata")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy2526 := &x.ListMeta - yym2527 := z.EncBinary() - _ = yym2527 - if false { - } else if z.HasExtensions() && z.EncExt(yy2526) { - } else { - z.EncFallback(yy2526) - } - } - } - if yyr2516 || yy2arr2516 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if x.Items == nil { - r.EncodeNil() - } else { - yym2529 := z.EncBinary() - _ = yym2529 - if false { - } else { - h.encSliceService(([]Service)(x.Items), e) - } - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("items")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - if x.Items == nil { - r.EncodeNil() - } else { - yym2530 := z.EncBinary() - _ = yym2530 - if false { - } else { - h.encSliceService(([]Service)(x.Items), e) - } - } - } - if yyr2516 || yy2arr2516 { - z.EncSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - z.EncSendContainerState(codecSelfer_containerMapEnd1234) - } - } - } -} - -func (x *ServiceList) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - yym2531 := z.DecBinary() - _ = yym2531 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - yyct2532 := r.ContainerType() - if yyct2532 == codecSelferValueTypeMap1234 { - yyl2532 := r.ReadMapStart() - if yyl2532 == 0 { - z.DecSendContainerState(codecSelfer_containerMapEnd1234) - } else { - x.codecDecodeSelfFromMap(yyl2532, d) - } - } else if yyct2532 == codecSelferValueTypeArray1234 { - yyl2532 := r.ReadArrayStart() - if yyl2532 == 0 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - x.codecDecodeSelfFromArray(yyl2532, d) - } - } else { - panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) - } - } -} - -func (x *ServiceList) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yys2533Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys2533Slc - var yyhl2533 bool = l >= 0 - for yyj2533 := 0; ; yyj2533++ { - if yyhl2533 { - if yyj2533 >= l { - break - } - } else { - if r.CheckBreak() { - break - } - } - z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys2533Slc = r.DecodeBytes(yys2533Slc, true, true) - yys2533 := string(yys2533Slc) - z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys2533 { - case "kind": - if r.TryDecodeAsNil() { - x.Kind = "" - } else { - x.Kind = string(r.DecodeString()) - } - case "apiVersion": - if r.TryDecodeAsNil() { - x.APIVersion = "" - } else { - x.APIVersion = string(r.DecodeString()) - } - case "metadata": - if r.TryDecodeAsNil() { - x.ListMeta = pkg2_unversioned.ListMeta{} - } else { - yyv2536 := &x.ListMeta - yym2537 := z.DecBinary() - _ = yym2537 - if false { - } else if z.HasExtensions() && z.DecExt(yyv2536) { - } else { - z.DecFallback(yyv2536, false) - } - } - case "items": - if r.TryDecodeAsNil() { - x.Items = nil - } else { - yyv2538 := &x.Items - yym2539 := z.DecBinary() - _ = yym2539 - if false { - } else { - h.decSliceService((*[]Service)(yyv2538), d) - } - } - default: - z.DecStructFieldNotFound(-1, yys2533) - } // end switch yys2533 - } // end for yyj2533 - z.DecSendContainerState(codecSelfer_containerMapEnd1234) -} - -func (x *ServiceList) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yyj2540 int - var yyb2540 bool - var yyhl2540 bool = l >= 0 - yyj2540++ - if yyhl2540 { - yyb2540 = yyj2540 > l - } else { - yyb2540 = r.CheckBreak() - } - if yyb2540 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Kind = "" - } else { - x.Kind = string(r.DecodeString()) - } - yyj2540++ - if yyhl2540 { - yyb2540 = yyj2540 > l - } else { - yyb2540 = r.CheckBreak() - } - if yyb2540 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.APIVersion = "" - } else { - x.APIVersion = string(r.DecodeString()) - } - yyj2540++ - if yyhl2540 { - yyb2540 = yyj2540 > l - } else { - yyb2540 = r.CheckBreak() - } - if yyb2540 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.ListMeta = pkg2_unversioned.ListMeta{} - } else { - yyv2543 := &x.ListMeta - yym2544 := z.DecBinary() - _ = yym2544 - if false { - } else if z.HasExtensions() && z.DecExt(yyv2543) { - } else { - z.DecFallback(yyv2543, false) - } - } - yyj2540++ - if yyhl2540 { - yyb2540 = yyj2540 > l - } else { - yyb2540 = r.CheckBreak() - } - if yyb2540 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Items = nil - } else { - yyv2545 := &x.Items - yym2546 := z.DecBinary() - _ = yym2546 - if false { - } else { - h.decSliceService((*[]Service)(yyv2545), d) - } - } - for { - yyj2540++ - if yyhl2540 { - yyb2540 = yyj2540 > l - } else { - yyb2540 = r.CheckBreak() - } - if yyb2540 { - break - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj2540-1, "") - } - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) -} - -func (x ServiceAffinity) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - yym2547 := z.EncBinary() - _ = yym2547 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x)) - } -} - -func (x *ServiceAffinity) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - yym2548 := z.DecBinary() - _ = yym2548 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - *((*string)(x)) = r.DecodeString() - } -} - -func (x ServiceType) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - yym2549 := z.EncBinary() - _ = yym2549 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x)) - } -} - -func (x *ServiceType) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - yym2550 := z.DecBinary() - _ = yym2550 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - *((*string)(x)) = r.DecodeString() - } -} - -func (x *ServiceStatus) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - if x == nil { - r.EncodeNil() - } else { - yym2551 := z.EncBinary() - _ = yym2551 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - yysep2552 := !z.EncBinary() - yy2arr2552 := z.EncBasicHandle().StructToArray - var yyq2552 [1]bool - _, _, _ = yysep2552, yyq2552, yy2arr2552 - const yyr2552 bool = false - yyq2552[0] = true - var yynn2552 int - if yyr2552 || yy2arr2552 { - r.EncodeArrayStart(1) - } else { - yynn2552 = 0 - for _, b := range yyq2552 { - if b { - yynn2552++ - } - } - r.EncodeMapStart(yynn2552) - yynn2552 = 0 - } - if yyr2552 || yy2arr2552 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2552[0] { - yy2554 := &x.LoadBalancer - yy2554.CodecEncodeSelf(e) - } else { - r.EncodeNil() - } - } else { - if yyq2552[0] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("loadBalancer")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy2555 := &x.LoadBalancer - yy2555.CodecEncodeSelf(e) - } - } - if yyr2552 || yy2arr2552 { - z.EncSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - z.EncSendContainerState(codecSelfer_containerMapEnd1234) - } - } - } -} - -func (x *ServiceStatus) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - yym2556 := z.DecBinary() - _ = yym2556 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - yyct2557 := r.ContainerType() - if yyct2557 == codecSelferValueTypeMap1234 { - yyl2557 := r.ReadMapStart() - if yyl2557 == 0 { - z.DecSendContainerState(codecSelfer_containerMapEnd1234) - } else { - x.codecDecodeSelfFromMap(yyl2557, d) - } - } else if yyct2557 == codecSelferValueTypeArray1234 { - yyl2557 := r.ReadArrayStart() - if yyl2557 == 0 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - x.codecDecodeSelfFromArray(yyl2557, d) - } - } else { - panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) - } - } -} - -func (x *ServiceStatus) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yys2558Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys2558Slc - var yyhl2558 bool = l >= 0 - for yyj2558 := 0; ; yyj2558++ { - if yyhl2558 { - if yyj2558 >= l { - break - } - } else { - if r.CheckBreak() { - break - } - } - z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys2558Slc = r.DecodeBytes(yys2558Slc, true, true) - yys2558 := string(yys2558Slc) - z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys2558 { - case "loadBalancer": - if r.TryDecodeAsNil() { - x.LoadBalancer = LoadBalancerStatus{} - } else { - yyv2559 := &x.LoadBalancer - yyv2559.CodecDecodeSelf(d) - } - default: - z.DecStructFieldNotFound(-1, yys2558) - } // end switch yys2558 - } // end for yyj2558 - z.DecSendContainerState(codecSelfer_containerMapEnd1234) -} - -func (x *ServiceStatus) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r @@ -33493,10 +33604,76 @@ func (x *ServiceStatus) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.LoadBalancer = LoadBalancerStatus{} + x.Kind = "" } else { - yyv2561 := &x.LoadBalancer - yyv2561.CodecDecodeSelf(d) + x.Kind = string(r.DecodeString()) + } + yyj2560++ + if yyhl2560 { + yyb2560 = yyj2560 > l + } else { + yyb2560 = r.CheckBreak() + } + if yyb2560 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.APIVersion = "" + } else { + x.APIVersion = string(r.DecodeString()) + } + yyj2560++ + if yyhl2560 { + yyb2560 = yyj2560 > l + } else { + yyb2560 = r.CheckBreak() + } + if yyb2560 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.ObjectMeta = ObjectMeta{} + } else { + yyv2563 := &x.ObjectMeta + yyv2563.CodecDecodeSelf(d) + } + yyj2560++ + if yyhl2560 { + yyb2560 = yyj2560 > l + } else { + yyb2560 = r.CheckBreak() + } + if yyb2560 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Spec = ReplicationControllerSpec{} + } else { + yyv2564 := &x.Spec + yyv2564.CodecDecodeSelf(d) + } + yyj2560++ + if yyhl2560 { + yyb2560 = yyj2560 > l + } else { + yyb2560 = r.CheckBreak() + } + if yyb2560 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Status = ReplicationControllerStatus{} + } else { + yyv2565 := &x.Status + yyv2565.CodecDecodeSelf(d) } for { yyj2560++ @@ -33514,6 +33691,909 @@ func (x *ServiceStatus) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { 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 { + yym2566 := z.EncBinary() + _ = yym2566 + if false { + } else if z.HasExtensions() && z.EncExt(x) { + } else { + yysep2567 := !z.EncBinary() + yy2arr2567 := z.EncBasicHandle().StructToArray + var yyq2567 [4]bool + _, _, _ = yysep2567, yyq2567, yy2arr2567 + const yyr2567 bool = false + yyq2567[0] = x.Kind != "" + yyq2567[1] = x.APIVersion != "" + yyq2567[2] = true + var yynn2567 int + if yyr2567 || yy2arr2567 { + r.EncodeArrayStart(4) + } else { + yynn2567 = 1 + for _, b := range yyq2567 { + if b { + yynn2567++ + } + } + r.EncodeMapStart(yynn2567) + yynn2567 = 0 + } + if yyr2567 || yy2arr2567 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq2567[0] { + yym2569 := z.EncBinary() + _ = yym2569 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq2567[0] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("kind")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym2570 := z.EncBinary() + _ = yym2570 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + } + } + } + if yyr2567 || yy2arr2567 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq2567[1] { + yym2572 := z.EncBinary() + _ = yym2572 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq2567[1] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym2573 := z.EncBinary() + _ = yym2573 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + } + } + } + if yyr2567 || yy2arr2567 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq2567[2] { + yy2575 := &x.ListMeta + yym2576 := z.EncBinary() + _ = yym2576 + if false { + } else if z.HasExtensions() && z.EncExt(yy2575) { + } else { + z.EncFallback(yy2575) + } + } else { + r.EncodeNil() + } + } else { + if yyq2567[2] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("metadata")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yy2577 := &x.ListMeta + yym2578 := z.EncBinary() + _ = yym2578 + if false { + } else if z.HasExtensions() && z.EncExt(yy2577) { + } else { + z.EncFallback(yy2577) + } + } + } + if yyr2567 || yy2arr2567 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if x.Items == nil { + r.EncodeNil() + } else { + yym2580 := z.EncBinary() + _ = yym2580 + 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 { + yym2581 := z.EncBinary() + _ = yym2581 + if false { + } else { + h.encSliceReplicationController(([]ReplicationController)(x.Items), e) + } + } + } + if yyr2567 || yy2arr2567 { + 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 + yym2582 := z.DecBinary() + _ = yym2582 + if false { + } else if z.HasExtensions() && z.DecExt(x) { + } else { + yyct2583 := r.ContainerType() + if yyct2583 == codecSelferValueTypeMap1234 { + yyl2583 := r.ReadMapStart() + if yyl2583 == 0 { + z.DecSendContainerState(codecSelfer_containerMapEnd1234) + } else { + x.codecDecodeSelfFromMap(yyl2583, d) + } + } else if yyct2583 == codecSelferValueTypeArray1234 { + yyl2583 := r.ReadArrayStart() + if yyl2583 == 0 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + x.codecDecodeSelfFromArray(yyl2583, 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 yys2584Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys2584Slc + var yyhl2584 bool = l >= 0 + for yyj2584 := 0; ; yyj2584++ { + if yyhl2584 { + if yyj2584 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + z.DecSendContainerState(codecSelfer_containerMapKey1234) + yys2584Slc = r.DecodeBytes(yys2584Slc, true, true) + yys2584 := string(yys2584Slc) + z.DecSendContainerState(codecSelfer_containerMapValue1234) + switch yys2584 { + case "kind": + if 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 { + yyv2587 := &x.ListMeta + yym2588 := z.DecBinary() + _ = yym2588 + if false { + } else if z.HasExtensions() && z.DecExt(yyv2587) { + } else { + z.DecFallback(yyv2587, false) + } + } + case "items": + if r.TryDecodeAsNil() { + x.Items = nil + } else { + yyv2589 := &x.Items + yym2590 := z.DecBinary() + _ = yym2590 + if false { + } else { + h.decSliceReplicationController((*[]ReplicationController)(yyv2589), d) + } + } + default: + z.DecStructFieldNotFound(-1, yys2584) + } // end switch yys2584 + } // end for yyj2584 + 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 yyj2591 int + var yyb2591 bool + var yyhl2591 bool = l >= 0 + yyj2591++ + if yyhl2591 { + yyb2591 = yyj2591 > l + } else { + yyb2591 = r.CheckBreak() + } + if yyb2591 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Kind = "" + } else { + x.Kind = string(r.DecodeString()) + } + yyj2591++ + if yyhl2591 { + yyb2591 = yyj2591 > l + } else { + yyb2591 = r.CheckBreak() + } + if yyb2591 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.APIVersion = "" + } else { + x.APIVersion = string(r.DecodeString()) + } + yyj2591++ + if yyhl2591 { + yyb2591 = yyj2591 > l + } else { + yyb2591 = r.CheckBreak() + } + if yyb2591 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + 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) + } + } + yyj2591++ + if yyhl2591 { + yyb2591 = yyj2591 > l + } else { + yyb2591 = r.CheckBreak() + } + if yyb2591 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Items = nil + } else { + yyv2596 := &x.Items + yym2597 := z.DecBinary() + _ = yym2597 + if false { + } else { + h.decSliceReplicationController((*[]ReplicationController)(yyv2596), d) + } + } + for { + yyj2591++ + if yyhl2591 { + yyb2591 = yyj2591 > l + } else { + yyb2591 = r.CheckBreak() + } + if yyb2591 { + break + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + z.DecStructFieldNotFound(yyj2591-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 { + yym2598 := z.EncBinary() + _ = yym2598 + if false { + } else if z.HasExtensions() && z.EncExt(x) { + } else { + yysep2599 := !z.EncBinary() + yy2arr2599 := z.EncBasicHandle().StructToArray + var yyq2599 [4]bool + _, _, _ = yysep2599, yyq2599, yy2arr2599 + const yyr2599 bool = false + yyq2599[0] = x.Kind != "" + yyq2599[1] = x.APIVersion != "" + yyq2599[2] = true + var yynn2599 int + if yyr2599 || yy2arr2599 { + r.EncodeArrayStart(4) + } else { + yynn2599 = 1 + for _, b := range yyq2599 { + if b { + yynn2599++ + } + } + r.EncodeMapStart(yynn2599) + yynn2599 = 0 + } + if yyr2599 || yy2arr2599 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq2599[0] { + yym2601 := z.EncBinary() + _ = yym2601 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq2599[0] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("kind")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym2602 := z.EncBinary() + _ = yym2602 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + } + } + } + if yyr2599 || yy2arr2599 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq2599[1] { + yym2604 := z.EncBinary() + _ = yym2604 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq2599[1] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym2605 := z.EncBinary() + _ = yym2605 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + } + } + } + if yyr2599 || yy2arr2599 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq2599[2] { + yy2607 := &x.ListMeta + yym2608 := z.EncBinary() + _ = yym2608 + if false { + } else if z.HasExtensions() && z.EncExt(yy2607) { + } else { + z.EncFallback(yy2607) + } + } else { + r.EncodeNil() + } + } else { + if yyq2599[2] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("metadata")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yy2609 := &x.ListMeta + yym2610 := z.EncBinary() + _ = yym2610 + if false { + } else if z.HasExtensions() && z.EncExt(yy2609) { + } else { + z.EncFallback(yy2609) + } + } + } + if yyr2599 || yy2arr2599 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if x.Items == nil { + r.EncodeNil() + } else { + yym2612 := z.EncBinary() + _ = yym2612 + 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 { + yym2613 := z.EncBinary() + _ = yym2613 + if false { + } else { + h.encSliceService(([]Service)(x.Items), e) + } + } + } + if yyr2599 || yy2arr2599 { + 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 + yym2614 := z.DecBinary() + _ = yym2614 + if false { + } else if z.HasExtensions() && z.DecExt(x) { + } else { + yyct2615 := r.ContainerType() + if yyct2615 == codecSelferValueTypeMap1234 { + yyl2615 := r.ReadMapStart() + if yyl2615 == 0 { + z.DecSendContainerState(codecSelfer_containerMapEnd1234) + } else { + x.codecDecodeSelfFromMap(yyl2615, d) + } + } else if yyct2615 == codecSelferValueTypeArray1234 { + yyl2615 := r.ReadArrayStart() + if yyl2615 == 0 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + x.codecDecodeSelfFromArray(yyl2615, 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 yys2616Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys2616Slc + var yyhl2616 bool = l >= 0 + for yyj2616 := 0; ; yyj2616++ { + if yyhl2616 { + if yyj2616 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + z.DecSendContainerState(codecSelfer_containerMapKey1234) + yys2616Slc = r.DecodeBytes(yys2616Slc, true, true) + yys2616 := string(yys2616Slc) + z.DecSendContainerState(codecSelfer_containerMapValue1234) + switch yys2616 { + case "kind": + if 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 { + yyv2619 := &x.ListMeta + yym2620 := z.DecBinary() + _ = yym2620 + if false { + } else if z.HasExtensions() && z.DecExt(yyv2619) { + } else { + z.DecFallback(yyv2619, false) + } + } + case "items": + if r.TryDecodeAsNil() { + x.Items = nil + } else { + yyv2621 := &x.Items + yym2622 := z.DecBinary() + _ = yym2622 + if false { + } else { + h.decSliceService((*[]Service)(yyv2621), d) + } + } + default: + z.DecStructFieldNotFound(-1, yys2616) + } // end switch yys2616 + } // end for yyj2616 + 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 yyj2623 int + var yyb2623 bool + var yyhl2623 bool = l >= 0 + yyj2623++ + if yyhl2623 { + yyb2623 = yyj2623 > l + } else { + yyb2623 = r.CheckBreak() + } + if yyb2623 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Kind = "" + } else { + x.Kind = string(r.DecodeString()) + } + yyj2623++ + if yyhl2623 { + yyb2623 = yyj2623 > l + } else { + yyb2623 = r.CheckBreak() + } + if yyb2623 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.APIVersion = "" + } else { + x.APIVersion = string(r.DecodeString()) + } + yyj2623++ + if yyhl2623 { + yyb2623 = yyj2623 > l + } else { + yyb2623 = r.CheckBreak() + } + if yyb2623 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.ListMeta = pkg2_unversioned.ListMeta{} + } else { + yyv2626 := &x.ListMeta + yym2627 := z.DecBinary() + _ = yym2627 + if false { + } else if z.HasExtensions() && z.DecExt(yyv2626) { + } else { + z.DecFallback(yyv2626, false) + } + } + yyj2623++ + if yyhl2623 { + yyb2623 = yyj2623 > l + } else { + yyb2623 = r.CheckBreak() + } + if yyb2623 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Items = nil + } else { + yyv2628 := &x.Items + yym2629 := z.DecBinary() + _ = yym2629 + if false { + } else { + h.decSliceService((*[]Service)(yyv2628), d) + } + } + for { + yyj2623++ + if yyhl2623 { + yyb2623 = yyj2623 > l + } else { + yyb2623 = r.CheckBreak() + } + if yyb2623 { + break + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + z.DecStructFieldNotFound(yyj2623-1, "") + } + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) +} + +func (x ServiceAffinity) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + yym2630 := z.EncBinary() + _ = yym2630 + 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 + yym2631 := z.DecBinary() + _ = yym2631 + 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 + yym2632 := z.EncBinary() + _ = yym2632 + 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 + yym2633 := z.DecBinary() + _ = yym2633 + 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 { + yym2634 := z.EncBinary() + _ = yym2634 + if false { + } else if z.HasExtensions() && z.EncExt(x) { + } else { + yysep2635 := !z.EncBinary() + yy2arr2635 := z.EncBasicHandle().StructToArray + var yyq2635 [1]bool + _, _, _ = yysep2635, yyq2635, yy2arr2635 + const yyr2635 bool = false + yyq2635[0] = true + var yynn2635 int + if yyr2635 || yy2arr2635 { + r.EncodeArrayStart(1) + } else { + yynn2635 = 0 + for _, b := range yyq2635 { + if b { + yynn2635++ + } + } + r.EncodeMapStart(yynn2635) + yynn2635 = 0 + } + if yyr2635 || yy2arr2635 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq2635[0] { + yy2637 := &x.LoadBalancer + yy2637.CodecEncodeSelf(e) + } else { + r.EncodeNil() + } + } else { + if yyq2635[0] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("loadBalancer")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yy2638 := &x.LoadBalancer + yy2638.CodecEncodeSelf(e) + } + } + if yyr2635 || yy2arr2635 { + 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 + yym2639 := z.DecBinary() + _ = yym2639 + if false { + } else if z.HasExtensions() && z.DecExt(x) { + } else { + yyct2640 := r.ContainerType() + if yyct2640 == codecSelferValueTypeMap1234 { + yyl2640 := r.ReadMapStart() + if yyl2640 == 0 { + z.DecSendContainerState(codecSelfer_containerMapEnd1234) + } else { + x.codecDecodeSelfFromMap(yyl2640, d) + } + } else if yyct2640 == codecSelferValueTypeArray1234 { + yyl2640 := r.ReadArrayStart() + if yyl2640 == 0 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + x.codecDecodeSelfFromArray(yyl2640, 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 yys2641Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys2641Slc + var yyhl2641 bool = l >= 0 + for yyj2641 := 0; ; yyj2641++ { + if yyhl2641 { + if yyj2641 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + z.DecSendContainerState(codecSelfer_containerMapKey1234) + yys2641Slc = r.DecodeBytes(yys2641Slc, true, true) + yys2641 := string(yys2641Slc) + z.DecSendContainerState(codecSelfer_containerMapValue1234) + switch yys2641 { + case "loadBalancer": + if r.TryDecodeAsNil() { + x.LoadBalancer = LoadBalancerStatus{} + } else { + yyv2642 := &x.LoadBalancer + yyv2642.CodecDecodeSelf(d) + } + default: + z.DecStructFieldNotFound(-1, yys2641) + } // end switch yys2641 + } // end for yyj2641 + 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 yyj2643 int + var yyb2643 bool + var yyhl2643 bool = l >= 0 + yyj2643++ + if yyhl2643 { + yyb2643 = yyj2643 > l + } else { + yyb2643 = r.CheckBreak() + } + if yyb2643 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.LoadBalancer = LoadBalancerStatus{} + } else { + yyv2644 := &x.LoadBalancer + yyv2644.CodecDecodeSelf(d) + } + for { + yyj2643++ + if yyhl2643 { + yyb2643 = yyj2643 > l + } else { + yyb2643 = r.CheckBreak() + } + if yyb2643 { + break + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + z.DecStructFieldNotFound(yyj2643-1, "") + } + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) +} + func (x *LoadBalancerStatus) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) @@ -33521,38 +34601,38 @@ func (x *LoadBalancerStatus) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym2562 := z.EncBinary() - _ = yym2562 + yym2645 := z.EncBinary() + _ = yym2645 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep2563 := !z.EncBinary() - yy2arr2563 := z.EncBasicHandle().StructToArray - var yyq2563 [1]bool - _, _, _ = yysep2563, yyq2563, yy2arr2563 - const yyr2563 bool = false - yyq2563[0] = len(x.Ingress) != 0 - var yynn2563 int - if yyr2563 || yy2arr2563 { + yysep2646 := !z.EncBinary() + yy2arr2646 := z.EncBasicHandle().StructToArray + var yyq2646 [1]bool + _, _, _ = yysep2646, yyq2646, yy2arr2646 + const yyr2646 bool = false + yyq2646[0] = len(x.Ingress) != 0 + var yynn2646 int + if yyr2646 || yy2arr2646 { r.EncodeArrayStart(1) } else { - yynn2563 = 0 - for _, b := range yyq2563 { + yynn2646 = 0 + for _, b := range yyq2646 { if b { - yynn2563++ + yynn2646++ } } - r.EncodeMapStart(yynn2563) - yynn2563 = 0 + r.EncodeMapStart(yynn2646) + yynn2646 = 0 } - if yyr2563 || yy2arr2563 { + if yyr2646 || yy2arr2646 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2563[0] { + if yyq2646[0] { if x.Ingress == nil { r.EncodeNil() } else { - yym2565 := z.EncBinary() - _ = yym2565 + yym2648 := z.EncBinary() + _ = yym2648 if false { } else { h.encSliceLoadBalancerIngress(([]LoadBalancerIngress)(x.Ingress), e) @@ -33562,15 +34642,15 @@ func (x *LoadBalancerStatus) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq2563[0] { + if yyq2646[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("ingress")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.Ingress == nil { r.EncodeNil() } else { - yym2566 := z.EncBinary() - _ = yym2566 + yym2649 := z.EncBinary() + _ = yym2649 if false { } else { h.encSliceLoadBalancerIngress(([]LoadBalancerIngress)(x.Ingress), e) @@ -33578,7 +34658,7 @@ func (x *LoadBalancerStatus) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr2563 || yy2arr2563 { + if yyr2646 || yy2arr2646 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -33591,25 +34671,25 @@ func (x *LoadBalancerStatus) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym2567 := z.DecBinary() - _ = yym2567 + yym2650 := z.DecBinary() + _ = yym2650 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2568 := r.ContainerType() - if yyct2568 == codecSelferValueTypeMap1234 { - yyl2568 := r.ReadMapStart() - if yyl2568 == 0 { + yyct2651 := r.ContainerType() + if yyct2651 == codecSelferValueTypeMap1234 { + yyl2651 := r.ReadMapStart() + if yyl2651 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2568, d) + x.codecDecodeSelfFromMap(yyl2651, d) } - } else if yyct2568 == codecSelferValueTypeArray1234 { - yyl2568 := r.ReadArrayStart() - if yyl2568 == 0 { + } else if yyct2651 == codecSelferValueTypeArray1234 { + yyl2651 := r.ReadArrayStart() + if yyl2651 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2568, d) + x.codecDecodeSelfFromArray(yyl2651, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -33621,12 +34701,12 @@ func (x *LoadBalancerStatus) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys2569Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys2569Slc - var yyhl2569 bool = l >= 0 - for yyj2569 := 0; ; yyj2569++ { - if yyhl2569 { - if yyj2569 >= l { + var yys2652Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys2652Slc + var yyhl2652 bool = l >= 0 + for yyj2652 := 0; ; yyj2652++ { + if yyhl2652 { + if yyj2652 >= l { break } } else { @@ -33635,26 +34715,26 @@ func (x *LoadBalancerStatus) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys2569Slc = r.DecodeBytes(yys2569Slc, true, true) - yys2569 := string(yys2569Slc) + yys2652Slc = r.DecodeBytes(yys2652Slc, true, true) + yys2652 := string(yys2652Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys2569 { + switch yys2652 { case "ingress": if r.TryDecodeAsNil() { x.Ingress = nil } else { - yyv2570 := &x.Ingress - yym2571 := z.DecBinary() - _ = yym2571 + yyv2653 := &x.Ingress + yym2654 := z.DecBinary() + _ = yym2654 if false { } else { - h.decSliceLoadBalancerIngress((*[]LoadBalancerIngress)(yyv2570), d) + h.decSliceLoadBalancerIngress((*[]LoadBalancerIngress)(yyv2653), d) } } default: - z.DecStructFieldNotFound(-1, yys2569) - } // end switch yys2569 - } // end for yyj2569 + z.DecStructFieldNotFound(-1, yys2652) + } // end switch yys2652 + } // end for yyj2652 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -33662,16 +34742,16 @@ func (x *LoadBalancerStatus) codecDecodeSelfFromArray(l int, d *codec1978.Decode var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj2572 int - var yyb2572 bool - var yyhl2572 bool = l >= 0 - yyj2572++ - if yyhl2572 { - yyb2572 = yyj2572 > l + var yyj2655 int + var yyb2655 bool + var yyhl2655 bool = l >= 0 + yyj2655++ + if yyhl2655 { + yyb2655 = yyj2655 > l } else { - yyb2572 = r.CheckBreak() + yyb2655 = r.CheckBreak() } - if yyb2572 { + if yyb2655 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -33679,26 +34759,26 @@ func (x *LoadBalancerStatus) codecDecodeSelfFromArray(l int, d *codec1978.Decode if r.TryDecodeAsNil() { x.Ingress = nil } else { - yyv2573 := &x.Ingress - yym2574 := z.DecBinary() - _ = yym2574 + yyv2656 := &x.Ingress + yym2657 := z.DecBinary() + _ = yym2657 if false { } else { - h.decSliceLoadBalancerIngress((*[]LoadBalancerIngress)(yyv2573), d) + h.decSliceLoadBalancerIngress((*[]LoadBalancerIngress)(yyv2656), d) } } for { - yyj2572++ - if yyhl2572 { - yyb2572 = yyj2572 > l + yyj2655++ + if yyhl2655 { + yyb2655 = yyj2655 > l } else { - yyb2572 = r.CheckBreak() + yyb2655 = r.CheckBreak() } - if yyb2572 { + if yyb2655 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj2572-1, "") + z.DecStructFieldNotFound(yyj2655-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -33710,36 +34790,36 @@ func (x *LoadBalancerIngress) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym2575 := z.EncBinary() - _ = yym2575 + yym2658 := z.EncBinary() + _ = yym2658 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep2576 := !z.EncBinary() - yy2arr2576 := z.EncBasicHandle().StructToArray - var yyq2576 [2]bool - _, _, _ = yysep2576, yyq2576, yy2arr2576 - const yyr2576 bool = false - yyq2576[0] = x.IP != "" - yyq2576[1] = x.Hostname != "" - var yynn2576 int - if yyr2576 || yy2arr2576 { + yysep2659 := !z.EncBinary() + yy2arr2659 := z.EncBasicHandle().StructToArray + var yyq2659 [2]bool + _, _, _ = yysep2659, yyq2659, yy2arr2659 + const yyr2659 bool = false + yyq2659[0] = x.IP != "" + yyq2659[1] = x.Hostname != "" + var yynn2659 int + if yyr2659 || yy2arr2659 { r.EncodeArrayStart(2) } else { - yynn2576 = 0 - for _, b := range yyq2576 { + yynn2659 = 0 + for _, b := range yyq2659 { if b { - yynn2576++ + yynn2659++ } } - r.EncodeMapStart(yynn2576) - yynn2576 = 0 + r.EncodeMapStart(yynn2659) + yynn2659 = 0 } - if yyr2576 || yy2arr2576 { + if yyr2659 || yy2arr2659 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2576[0] { - yym2578 := z.EncBinary() - _ = yym2578 + if yyq2659[0] { + yym2661 := z.EncBinary() + _ = yym2661 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.IP)) @@ -33748,23 +34828,23 @@ func (x *LoadBalancerIngress) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2576[0] { + if yyq2659[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("ip")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym2579 := z.EncBinary() - _ = yym2579 + yym2662 := z.EncBinary() + _ = yym2662 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.IP)) } } } - if yyr2576 || yy2arr2576 { + if yyr2659 || yy2arr2659 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2576[1] { - yym2581 := z.EncBinary() - _ = yym2581 + if yyq2659[1] { + yym2664 := z.EncBinary() + _ = yym2664 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Hostname)) @@ -33773,19 +34853,19 @@ func (x *LoadBalancerIngress) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2576[1] { + if yyq2659[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("hostname")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym2582 := z.EncBinary() - _ = yym2582 + yym2665 := z.EncBinary() + _ = yym2665 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Hostname)) } } } - if yyr2576 || yy2arr2576 { + if yyr2659 || yy2arr2659 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -33798,25 +34878,25 @@ func (x *LoadBalancerIngress) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym2583 := z.DecBinary() - _ = yym2583 + yym2666 := z.DecBinary() + _ = yym2666 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2584 := r.ContainerType() - if yyct2584 == codecSelferValueTypeMap1234 { - yyl2584 := r.ReadMapStart() - if yyl2584 == 0 { + yyct2667 := r.ContainerType() + if yyct2667 == codecSelferValueTypeMap1234 { + yyl2667 := r.ReadMapStart() + if yyl2667 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2584, d) + x.codecDecodeSelfFromMap(yyl2667, d) } - } else if yyct2584 == codecSelferValueTypeArray1234 { - yyl2584 := r.ReadArrayStart() - if yyl2584 == 0 { + } else if yyct2667 == codecSelferValueTypeArray1234 { + yyl2667 := r.ReadArrayStart() + if yyl2667 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2584, d) + x.codecDecodeSelfFromArray(yyl2667, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -33828,12 +34908,12 @@ func (x *LoadBalancerIngress) codecDecodeSelfFromMap(l int, d *codec1978.Decoder var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys2585Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys2585Slc - var yyhl2585 bool = l >= 0 - for yyj2585 := 0; ; yyj2585++ { - if yyhl2585 { - if yyj2585 >= l { + var yys2668Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys2668Slc + var yyhl2668 bool = l >= 0 + for yyj2668 := 0; ; yyj2668++ { + if yyhl2668 { + if yyj2668 >= l { break } } else { @@ -33842,10 +34922,10 @@ func (x *LoadBalancerIngress) codecDecodeSelfFromMap(l int, d *codec1978.Decoder } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys2585Slc = r.DecodeBytes(yys2585Slc, true, true) - yys2585 := string(yys2585Slc) + yys2668Slc = r.DecodeBytes(yys2668Slc, true, true) + yys2668 := string(yys2668Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys2585 { + switch yys2668 { case "ip": if r.TryDecodeAsNil() { x.IP = "" @@ -33859,9 +34939,9 @@ func (x *LoadBalancerIngress) codecDecodeSelfFromMap(l int, d *codec1978.Decoder x.Hostname = string(r.DecodeString()) } default: - z.DecStructFieldNotFound(-1, yys2585) - } // end switch yys2585 - } // end for yyj2585 + z.DecStructFieldNotFound(-1, yys2668) + } // end switch yys2668 + } // end for yyj2668 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -33869,16 +34949,16 @@ func (x *LoadBalancerIngress) codecDecodeSelfFromArray(l int, d *codec1978.Decod var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj2588 int - var yyb2588 bool - var yyhl2588 bool = l >= 0 - yyj2588++ - if yyhl2588 { - yyb2588 = yyj2588 > l + var yyj2671 int + var yyb2671 bool + var yyhl2671 bool = l >= 0 + yyj2671++ + if yyhl2671 { + yyb2671 = yyj2671 > l } else { - yyb2588 = r.CheckBreak() + yyb2671 = r.CheckBreak() } - if yyb2588 { + if yyb2671 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -33888,13 +34968,13 @@ func (x *LoadBalancerIngress) codecDecodeSelfFromArray(l int, d *codec1978.Decod } else { x.IP = string(r.DecodeString()) } - yyj2588++ - if yyhl2588 { - yyb2588 = yyj2588 > l + yyj2671++ + if yyhl2671 { + yyb2671 = yyj2671 > l } else { - yyb2588 = r.CheckBreak() + yyb2671 = r.CheckBreak() } - if yyb2588 { + if yyb2671 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -33905,17 +34985,17 @@ func (x *LoadBalancerIngress) codecDecodeSelfFromArray(l int, d *codec1978.Decod x.Hostname = string(r.DecodeString()) } for { - yyj2588++ - if yyhl2588 { - yyb2588 = yyj2588 > l + yyj2671++ + if yyhl2671 { + yyb2671 = yyj2671 > l } else { - yyb2588 = r.CheckBreak() + yyb2671 = r.CheckBreak() } - if yyb2588 { + if yyb2671 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj2588-1, "") + z.DecStructFieldNotFound(yyj2671-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -33927,57 +35007,57 @@ func (x *ServiceSpec) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym2591 := z.EncBinary() - _ = yym2591 + yym2674 := z.EncBinary() + _ = yym2674 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - 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 { + yysep2675 := !z.EncBinary() + yy2arr2675 := z.EncBasicHandle().StructToArray + var yyq2675 [9]bool + _, _, _ = yysep2675, yyq2675, yy2arr2675 + const yyr2675 bool = false + yyq2675[0] = x.Type != "" + yyq2675[3] = x.ClusterIP != "" + yyq2675[5] = len(x.ExternalIPs) != 0 + yyq2675[6] = x.LoadBalancerIP != "" + yyq2675[7] = x.SessionAffinity != "" + yyq2675[8] = len(x.LoadBalancerSourceRanges) != 0 + var yynn2675 int + if yyr2675 || yy2arr2675 { r.EncodeArrayStart(9) } else { - yynn2592 = 3 - for _, b := range yyq2592 { + yynn2675 = 3 + for _, b := range yyq2675 { if b { - yynn2592++ + yynn2675++ } } - r.EncodeMapStart(yynn2592) - yynn2592 = 0 + r.EncodeMapStart(yynn2675) + yynn2675 = 0 } - if yyr2592 || yy2arr2592 { + if yyr2675 || yy2arr2675 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2592[0] { + if yyq2675[0] { x.Type.CodecEncodeSelf(e) } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2592[0] { + if yyq2675[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("type")) z.EncSendContainerState(codecSelfer_containerMapValue1234) x.Type.CodecEncodeSelf(e) } } - if yyr2592 || yy2arr2592 { + if yyr2675 || yy2arr2675 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.Ports == nil { r.EncodeNil() } else { - yym2595 := z.EncBinary() - _ = yym2595 + yym2678 := z.EncBinary() + _ = yym2678 if false { } else { h.encSliceServicePort(([]ServicePort)(x.Ports), e) @@ -33990,21 +35070,21 @@ func (x *ServiceSpec) CodecEncodeSelf(e *codec1978.Encoder) { if x.Ports == nil { r.EncodeNil() } else { - yym2596 := z.EncBinary() - _ = yym2596 + yym2679 := z.EncBinary() + _ = yym2679 if false { } else { h.encSliceServicePort(([]ServicePort)(x.Ports), e) } } } - if yyr2592 || yy2arr2592 { + if yyr2675 || yy2arr2675 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.Selector == nil { r.EncodeNil() } else { - yym2598 := z.EncBinary() - _ = yym2598 + yym2681 := z.EncBinary() + _ = yym2681 if false { } else { z.F.EncMapStringStringV(x.Selector, false, e) @@ -34017,19 +35097,19 @@ func (x *ServiceSpec) CodecEncodeSelf(e *codec1978.Encoder) { if x.Selector == nil { r.EncodeNil() } else { - yym2599 := z.EncBinary() - _ = yym2599 + yym2682 := z.EncBinary() + _ = yym2682 if false { } else { z.F.EncMapStringStringV(x.Selector, false, e) } } } - if yyr2592 || yy2arr2592 { + if yyr2675 || yy2arr2675 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2592[3] { - yym2601 := z.EncBinary() - _ = yym2601 + if yyq2675[3] { + yym2684 := z.EncBinary() + _ = yym2684 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.ClusterIP)) @@ -34038,22 +35118,22 @@ func (x *ServiceSpec) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2592[3] { + if yyq2675[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("clusterIP")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym2602 := z.EncBinary() - _ = yym2602 + yym2685 := z.EncBinary() + _ = yym2685 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.ClusterIP)) } } } - if yyr2592 || yy2arr2592 { + if yyr2675 || yy2arr2675 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym2604 := z.EncBinary() - _ = yym2604 + yym2687 := z.EncBinary() + _ = yym2687 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.ExternalName)) @@ -34062,21 +35142,21 @@ func (x *ServiceSpec) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("ExternalName")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym2605 := z.EncBinary() - _ = yym2605 + yym2688 := z.EncBinary() + _ = yym2688 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.ExternalName)) } } - if yyr2592 || yy2arr2592 { + if yyr2675 || yy2arr2675 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2592[5] { + if yyq2675[5] { if x.ExternalIPs == nil { r.EncodeNil() } else { - yym2607 := z.EncBinary() - _ = yym2607 + yym2690 := z.EncBinary() + _ = yym2690 if false { } else { z.F.EncSliceStringV(x.ExternalIPs, false, e) @@ -34086,15 +35166,15 @@ func (x *ServiceSpec) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq2592[5] { + if yyq2675[5] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("externalIPs")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.ExternalIPs == nil { r.EncodeNil() } else { - yym2608 := z.EncBinary() - _ = yym2608 + yym2691 := z.EncBinary() + _ = yym2691 if false { } else { z.F.EncSliceStringV(x.ExternalIPs, false, e) @@ -34102,11 +35182,11 @@ func (x *ServiceSpec) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr2592 || yy2arr2592 { + if yyr2675 || yy2arr2675 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2592[6] { - yym2610 := z.EncBinary() - _ = yym2610 + if yyq2675[6] { + yym2693 := z.EncBinary() + _ = yym2693 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.LoadBalancerIP)) @@ -34115,41 +35195,41 @@ func (x *ServiceSpec) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2592[6] { + if yyq2675[6] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("loadBalancerIP")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym2611 := z.EncBinary() - _ = yym2611 + yym2694 := z.EncBinary() + _ = yym2694 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.LoadBalancerIP)) } } } - if yyr2592 || yy2arr2592 { + if yyr2675 || yy2arr2675 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2592[7] { + if yyq2675[7] { x.SessionAffinity.CodecEncodeSelf(e) } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2592[7] { + if yyq2675[7] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("sessionAffinity")) z.EncSendContainerState(codecSelfer_containerMapValue1234) x.SessionAffinity.CodecEncodeSelf(e) } } - if yyr2592 || yy2arr2592 { + if yyr2675 || yy2arr2675 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2592[8] { + if yyq2675[8] { if x.LoadBalancerSourceRanges == nil { r.EncodeNil() } else { - yym2614 := z.EncBinary() - _ = yym2614 + yym2697 := z.EncBinary() + _ = yym2697 if false { } else { z.F.EncSliceStringV(x.LoadBalancerSourceRanges, false, e) @@ -34159,15 +35239,15 @@ func (x *ServiceSpec) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq2592[8] { + if yyq2675[8] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("loadBalancerSourceRanges")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.LoadBalancerSourceRanges == nil { r.EncodeNil() } else { - yym2615 := z.EncBinary() - _ = yym2615 + yym2698 := z.EncBinary() + _ = yym2698 if false { } else { z.F.EncSliceStringV(x.LoadBalancerSourceRanges, false, e) @@ -34175,7 +35255,7 @@ func (x *ServiceSpec) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr2592 || yy2arr2592 { + if yyr2675 || yy2arr2675 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -34188,25 +35268,25 @@ func (x *ServiceSpec) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym2616 := z.DecBinary() - _ = yym2616 + yym2699 := z.DecBinary() + _ = yym2699 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2617 := r.ContainerType() - if yyct2617 == codecSelferValueTypeMap1234 { - yyl2617 := r.ReadMapStart() - if yyl2617 == 0 { + yyct2700 := r.ContainerType() + if yyct2700 == codecSelferValueTypeMap1234 { + yyl2700 := r.ReadMapStart() + if yyl2700 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2617, d) + x.codecDecodeSelfFromMap(yyl2700, d) } - } else if yyct2617 == codecSelferValueTypeArray1234 { - yyl2617 := r.ReadArrayStart() - if yyl2617 == 0 { + } else if yyct2700 == codecSelferValueTypeArray1234 { + yyl2700 := r.ReadArrayStart() + if yyl2700 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2617, d) + x.codecDecodeSelfFromArray(yyl2700, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -34218,12 +35298,12 @@ func (x *ServiceSpec) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys2618Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys2618Slc - var yyhl2618 bool = l >= 0 - for yyj2618 := 0; ; yyj2618++ { - if yyhl2618 { - if yyj2618 >= l { + var yys2701Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys2701Slc + var yyhl2701 bool = l >= 0 + for yyj2701 := 0; ; yyj2701++ { + if yyhl2701 { + if yyj2701 >= l { break } } else { @@ -34232,10 +35312,10 @@ func (x *ServiceSpec) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys2618Slc = r.DecodeBytes(yys2618Slc, true, true) - yys2618 := string(yys2618Slc) + yys2701Slc = r.DecodeBytes(yys2701Slc, true, true) + yys2701 := string(yys2701Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys2618 { + switch yys2701 { case "type": if r.TryDecodeAsNil() { x.Type = "" @@ -34246,24 +35326,24 @@ func (x *ServiceSpec) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.Ports = nil } else { - yyv2620 := &x.Ports - yym2621 := z.DecBinary() - _ = yym2621 + yyv2703 := &x.Ports + yym2704 := z.DecBinary() + _ = yym2704 if false { } else { - h.decSliceServicePort((*[]ServicePort)(yyv2620), d) + h.decSliceServicePort((*[]ServicePort)(yyv2703), d) } } case "selector": if r.TryDecodeAsNil() { x.Selector = nil } else { - yyv2622 := &x.Selector - yym2623 := z.DecBinary() - _ = yym2623 + yyv2705 := &x.Selector + yym2706 := z.DecBinary() + _ = yym2706 if false { } else { - z.F.DecMapStringStringX(yyv2622, false, d) + z.F.DecMapStringStringX(yyv2705, false, d) } } case "clusterIP": @@ -34282,12 +35362,12 @@ func (x *ServiceSpec) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.ExternalIPs = nil } else { - yyv2626 := &x.ExternalIPs - yym2627 := z.DecBinary() - _ = yym2627 + yyv2709 := &x.ExternalIPs + yym2710 := z.DecBinary() + _ = yym2710 if false { } else { - z.F.DecSliceStringX(yyv2626, false, d) + z.F.DecSliceStringX(yyv2709, false, d) } } case "loadBalancerIP": @@ -34306,18 +35386,18 @@ func (x *ServiceSpec) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.LoadBalancerSourceRanges = nil } else { - yyv2630 := &x.LoadBalancerSourceRanges - yym2631 := z.DecBinary() - _ = yym2631 + yyv2713 := &x.LoadBalancerSourceRanges + yym2714 := z.DecBinary() + _ = yym2714 if false { } else { - z.F.DecSliceStringX(yyv2630, false, d) + z.F.DecSliceStringX(yyv2713, false, d) } } default: - z.DecStructFieldNotFound(-1, yys2618) - } // end switch yys2618 - } // end for yyj2618 + z.DecStructFieldNotFound(-1, yys2701) + } // end switch yys2701 + } // end for yyj2701 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -34325,16 +35405,16 @@ func (x *ServiceSpec) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj2632 int - var yyb2632 bool - var yyhl2632 bool = l >= 0 - yyj2632++ - if yyhl2632 { - yyb2632 = yyj2632 > l + var yyj2715 int + var yyb2715 bool + var yyhl2715 bool = l >= 0 + yyj2715++ + if yyhl2715 { + yyb2715 = yyj2715 > l } else { - yyb2632 = r.CheckBreak() + yyb2715 = r.CheckBreak() } - if yyb2632 { + if yyb2715 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -34344,13 +35424,13 @@ func (x *ServiceSpec) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.Type = ServiceType(r.DecodeString()) } - yyj2632++ - if yyhl2632 { - yyb2632 = yyj2632 > l + yyj2715++ + if yyhl2715 { + yyb2715 = yyj2715 > l } else { - yyb2632 = r.CheckBreak() + yyb2715 = r.CheckBreak() } - if yyb2632 { + if yyb2715 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -34358,21 +35438,21 @@ func (x *ServiceSpec) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.Ports = nil } else { - yyv2634 := &x.Ports - yym2635 := z.DecBinary() - _ = yym2635 + yyv2717 := &x.Ports + yym2718 := z.DecBinary() + _ = yym2718 if false { } else { - h.decSliceServicePort((*[]ServicePort)(yyv2634), d) + h.decSliceServicePort((*[]ServicePort)(yyv2717), d) } } - yyj2632++ - if yyhl2632 { - yyb2632 = yyj2632 > l + yyj2715++ + if yyhl2715 { + yyb2715 = yyj2715 > l } else { - yyb2632 = r.CheckBreak() + yyb2715 = r.CheckBreak() } - if yyb2632 { + if yyb2715 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -34380,21 +35460,21 @@ func (x *ServiceSpec) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.Selector = nil } else { - yyv2636 := &x.Selector - yym2637 := z.DecBinary() - _ = yym2637 + yyv2719 := &x.Selector + yym2720 := z.DecBinary() + _ = yym2720 if false { } else { - z.F.DecMapStringStringX(yyv2636, false, d) + z.F.DecMapStringStringX(yyv2719, false, d) } } - yyj2632++ - if yyhl2632 { - yyb2632 = yyj2632 > l + yyj2715++ + if yyhl2715 { + yyb2715 = yyj2715 > l } else { - yyb2632 = r.CheckBreak() + yyb2715 = r.CheckBreak() } - if yyb2632 { + if yyb2715 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -34404,13 +35484,13 @@ func (x *ServiceSpec) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.ClusterIP = string(r.DecodeString()) } - yyj2632++ - if yyhl2632 { - yyb2632 = yyj2632 > l + yyj2715++ + if yyhl2715 { + yyb2715 = yyj2715 > l } else { - yyb2632 = r.CheckBreak() + yyb2715 = r.CheckBreak() } - if yyb2632 { + if yyb2715 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -34420,13 +35500,13 @@ func (x *ServiceSpec) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.ExternalName = string(r.DecodeString()) } - yyj2632++ - if yyhl2632 { - yyb2632 = yyj2632 > l + yyj2715++ + if yyhl2715 { + yyb2715 = yyj2715 > l } else { - yyb2632 = r.CheckBreak() + yyb2715 = r.CheckBreak() } - if yyb2632 { + if yyb2715 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -34434,21 +35514,21 @@ func (x *ServiceSpec) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.ExternalIPs = nil } else { - yyv2640 := &x.ExternalIPs - yym2641 := z.DecBinary() - _ = yym2641 + yyv2723 := &x.ExternalIPs + yym2724 := z.DecBinary() + _ = yym2724 if false { } else { - z.F.DecSliceStringX(yyv2640, false, d) + z.F.DecSliceStringX(yyv2723, false, d) } } - yyj2632++ - if yyhl2632 { - yyb2632 = yyj2632 > l + yyj2715++ + if yyhl2715 { + yyb2715 = yyj2715 > l } else { - yyb2632 = r.CheckBreak() + yyb2715 = r.CheckBreak() } - if yyb2632 { + if yyb2715 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -34458,13 +35538,13 @@ func (x *ServiceSpec) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.LoadBalancerIP = string(r.DecodeString()) } - yyj2632++ - if yyhl2632 { - yyb2632 = yyj2632 > l + yyj2715++ + if yyhl2715 { + yyb2715 = yyj2715 > l } else { - yyb2632 = r.CheckBreak() + yyb2715 = r.CheckBreak() } - if yyb2632 { + if yyb2715 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -34474,13 +35554,13 @@ func (x *ServiceSpec) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.SessionAffinity = ServiceAffinity(r.DecodeString()) } - yyj2632++ - if yyhl2632 { - yyb2632 = yyj2632 > l + yyj2715++ + if yyhl2715 { + yyb2715 = yyj2715 > l } else { - yyb2632 = r.CheckBreak() + yyb2715 = r.CheckBreak() } - if yyb2632 { + if yyb2715 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -34488,26 +35568,26 @@ func (x *ServiceSpec) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.LoadBalancerSourceRanges = nil } else { - yyv2644 := &x.LoadBalancerSourceRanges - yym2645 := z.DecBinary() - _ = yym2645 + yyv2727 := &x.LoadBalancerSourceRanges + yym2728 := z.DecBinary() + _ = yym2728 if false { } else { - z.F.DecSliceStringX(yyv2644, false, d) + z.F.DecSliceStringX(yyv2727, false, d) } } for { - yyj2632++ - if yyhl2632 { - yyb2632 = yyj2632 > l + yyj2715++ + if yyhl2715 { + yyb2715 = yyj2715 > l } else { - yyb2632 = r.CheckBreak() + yyb2715 = r.CheckBreak() } - if yyb2632 { + if yyb2715 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj2632-1, "") + z.DecStructFieldNotFound(yyj2715-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -34519,33 +35599,33 @@ func (x *ServicePort) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym2646 := z.EncBinary() - _ = yym2646 + yym2729 := z.EncBinary() + _ = yym2729 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep2647 := !z.EncBinary() - yy2arr2647 := z.EncBasicHandle().StructToArray - var yyq2647 [5]bool - _, _, _ = yysep2647, yyq2647, yy2arr2647 - const yyr2647 bool = false - var yynn2647 int - if yyr2647 || yy2arr2647 { + yysep2730 := !z.EncBinary() + yy2arr2730 := z.EncBasicHandle().StructToArray + var yyq2730 [5]bool + _, _, _ = yysep2730, yyq2730, yy2arr2730 + const yyr2730 bool = false + var yynn2730 int + if yyr2730 || yy2arr2730 { r.EncodeArrayStart(5) } else { - yynn2647 = 5 - for _, b := range yyq2647 { + yynn2730 = 5 + for _, b := range yyq2730 { if b { - yynn2647++ + yynn2730++ } } - r.EncodeMapStart(yynn2647) - yynn2647 = 0 + r.EncodeMapStart(yynn2730) + yynn2730 = 0 } - if yyr2647 || yy2arr2647 { + if yyr2730 || yy2arr2730 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym2649 := z.EncBinary() - _ = yym2649 + yym2732 := z.EncBinary() + _ = yym2732 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Name)) @@ -34554,14 +35634,14 @@ func (x *ServicePort) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("name")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym2650 := z.EncBinary() - _ = yym2650 + yym2733 := z.EncBinary() + _ = yym2733 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Name)) } } - if yyr2647 || yy2arr2647 { + if yyr2730 || yy2arr2730 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) x.Protocol.CodecEncodeSelf(e) } else { @@ -34570,10 +35650,10 @@ func (x *ServicePort) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapValue1234) x.Protocol.CodecEncodeSelf(e) } - if yyr2647 || yy2arr2647 { + if yyr2730 || yy2arr2730 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym2653 := z.EncBinary() - _ = yym2653 + yym2736 := z.EncBinary() + _ = yym2736 if false { } else { r.EncodeInt(int64(x.Port)) @@ -34582,44 +35662,44 @@ func (x *ServicePort) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("port")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym2654 := z.EncBinary() - _ = yym2654 + yym2737 := z.EncBinary() + _ = yym2737 if false { } else { r.EncodeInt(int64(x.Port)) } } - if yyr2647 || yy2arr2647 { + if yyr2730 || yy2arr2730 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy2656 := &x.TargetPort - yym2657 := z.EncBinary() - _ = yym2657 + yy2739 := &x.TargetPort + yym2740 := z.EncBinary() + _ = yym2740 if false { - } else if z.HasExtensions() && z.EncExt(yy2656) { - } else if !yym2657 && z.IsJSONHandle() { - z.EncJSONMarshal(yy2656) + } else if z.HasExtensions() && z.EncExt(yy2739) { + } else if !yym2740 && z.IsJSONHandle() { + z.EncJSONMarshal(yy2739) } else { - z.EncFallback(yy2656) + z.EncFallback(yy2739) } } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("targetPort")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy2658 := &x.TargetPort - yym2659 := z.EncBinary() - _ = yym2659 + yy2741 := &x.TargetPort + yym2742 := z.EncBinary() + _ = yym2742 if false { - } else if z.HasExtensions() && z.EncExt(yy2658) { - } else if !yym2659 && z.IsJSONHandle() { - z.EncJSONMarshal(yy2658) + } else if z.HasExtensions() && z.EncExt(yy2741) { + } else if !yym2742 && z.IsJSONHandle() { + z.EncJSONMarshal(yy2741) } else { - z.EncFallback(yy2658) + z.EncFallback(yy2741) } } - if yyr2647 || yy2arr2647 { + if yyr2730 || yy2arr2730 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym2661 := z.EncBinary() - _ = yym2661 + yym2744 := z.EncBinary() + _ = yym2744 if false { } else { r.EncodeInt(int64(x.NodePort)) @@ -34628,14 +35708,14 @@ func (x *ServicePort) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("nodePort")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym2662 := z.EncBinary() - _ = yym2662 + yym2745 := z.EncBinary() + _ = yym2745 if false { } else { r.EncodeInt(int64(x.NodePort)) } } - if yyr2647 || yy2arr2647 { + if yyr2730 || yy2arr2730 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -34648,25 +35728,25 @@ func (x *ServicePort) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym2663 := z.DecBinary() - _ = yym2663 + yym2746 := z.DecBinary() + _ = yym2746 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2664 := r.ContainerType() - if yyct2664 == codecSelferValueTypeMap1234 { - yyl2664 := r.ReadMapStart() - if yyl2664 == 0 { + yyct2747 := r.ContainerType() + if yyct2747 == codecSelferValueTypeMap1234 { + yyl2747 := r.ReadMapStart() + if yyl2747 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2664, d) + x.codecDecodeSelfFromMap(yyl2747, d) } - } else if yyct2664 == codecSelferValueTypeArray1234 { - yyl2664 := r.ReadArrayStart() - if yyl2664 == 0 { + } else if yyct2747 == codecSelferValueTypeArray1234 { + yyl2747 := r.ReadArrayStart() + if yyl2747 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2664, d) + x.codecDecodeSelfFromArray(yyl2747, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -34678,12 +35758,12 @@ func (x *ServicePort) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys2665Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys2665Slc - var yyhl2665 bool = l >= 0 - for yyj2665 := 0; ; yyj2665++ { - if yyhl2665 { - if yyj2665 >= l { + var yys2748Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys2748Slc + var yyhl2748 bool = l >= 0 + for yyj2748 := 0; ; yyj2748++ { + if yyhl2748 { + if yyj2748 >= l { break } } else { @@ -34692,10 +35772,10 @@ func (x *ServicePort) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys2665Slc = r.DecodeBytes(yys2665Slc, true, true) - yys2665 := string(yys2665Slc) + yys2748Slc = r.DecodeBytes(yys2748Slc, true, true) + yys2748 := string(yys2748Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys2665 { + switch yys2748 { case "name": if r.TryDecodeAsNil() { x.Name = "" @@ -34718,15 +35798,15 @@ func (x *ServicePort) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.TargetPort = pkg4_intstr.IntOrString{} } else { - yyv2669 := &x.TargetPort - yym2670 := z.DecBinary() - _ = yym2670 + yyv2752 := &x.TargetPort + yym2753 := z.DecBinary() + _ = yym2753 if false { - } else if z.HasExtensions() && z.DecExt(yyv2669) { - } else if !yym2670 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv2669) + } else if z.HasExtensions() && z.DecExt(yyv2752) { + } else if !yym2753 && z.IsJSONHandle() { + z.DecJSONUnmarshal(yyv2752) } else { - z.DecFallback(yyv2669, false) + z.DecFallback(yyv2752, false) } } case "nodePort": @@ -34736,9 +35816,9 @@ func (x *ServicePort) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { x.NodePort = int32(r.DecodeInt(32)) } default: - z.DecStructFieldNotFound(-1, yys2665) - } // end switch yys2665 - } // end for yyj2665 + z.DecStructFieldNotFound(-1, yys2748) + } // end switch yys2748 + } // end for yyj2748 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -34746,16 +35826,16 @@ func (x *ServicePort) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj2672 int - var yyb2672 bool - var yyhl2672 bool = l >= 0 - yyj2672++ - if yyhl2672 { - yyb2672 = yyj2672 > l + var yyj2755 int + var yyb2755 bool + var yyhl2755 bool = l >= 0 + yyj2755++ + if yyhl2755 { + yyb2755 = yyj2755 > l } else { - yyb2672 = r.CheckBreak() + yyb2755 = r.CheckBreak() } - if yyb2672 { + if yyb2755 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -34765,13 +35845,13 @@ func (x *ServicePort) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.Name = string(r.DecodeString()) } - yyj2672++ - if yyhl2672 { - yyb2672 = yyj2672 > l + yyj2755++ + if yyhl2755 { + yyb2755 = yyj2755 > l } else { - yyb2672 = r.CheckBreak() + yyb2755 = r.CheckBreak() } - if yyb2672 { + if yyb2755 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -34781,13 +35861,13 @@ func (x *ServicePort) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.Protocol = Protocol(r.DecodeString()) } - yyj2672++ - if yyhl2672 { - yyb2672 = yyj2672 > l + yyj2755++ + if yyhl2755 { + yyb2755 = yyj2755 > l } else { - yyb2672 = r.CheckBreak() + yyb2755 = r.CheckBreak() } - if yyb2672 { + if yyb2755 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -34797,13 +35877,13 @@ func (x *ServicePort) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.Port = int32(r.DecodeInt(32)) } - yyj2672++ - if yyhl2672 { - yyb2672 = yyj2672 > l + yyj2755++ + if yyhl2755 { + yyb2755 = yyj2755 > l } else { - yyb2672 = r.CheckBreak() + yyb2755 = r.CheckBreak() } - if yyb2672 { + if yyb2755 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -34811,24 +35891,24 @@ func (x *ServicePort) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.TargetPort = pkg4_intstr.IntOrString{} } else { - yyv2676 := &x.TargetPort - yym2677 := z.DecBinary() - _ = yym2677 + yyv2759 := &x.TargetPort + yym2760 := z.DecBinary() + _ = yym2760 if false { - } else if z.HasExtensions() && z.DecExt(yyv2676) { - } else if !yym2677 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv2676) + } else if z.HasExtensions() && z.DecExt(yyv2759) { + } else if !yym2760 && z.IsJSONHandle() { + z.DecJSONUnmarshal(yyv2759) } else { - z.DecFallback(yyv2676, false) + z.DecFallback(yyv2759, false) } } - yyj2672++ - if yyhl2672 { - yyb2672 = yyj2672 > l + yyj2755++ + if yyhl2755 { + yyb2755 = yyj2755 > l } else { - yyb2672 = r.CheckBreak() + yyb2755 = r.CheckBreak() } - if yyb2672 { + if yyb2755 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -34839,17 +35919,17 @@ func (x *ServicePort) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { x.NodePort = int32(r.DecodeInt(32)) } for { - yyj2672++ - if yyhl2672 { - yyb2672 = yyj2672 > l + yyj2755++ + if yyhl2755 { + yyb2755 = yyj2755 > l } else { - yyb2672 = r.CheckBreak() + yyb2755 = r.CheckBreak() } - if yyb2672 { + if yyb2755 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj2672-1, "") + z.DecStructFieldNotFound(yyj2755-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -34861,39 +35941,39 @@ func (x *Service) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym2679 := z.EncBinary() - _ = yym2679 + yym2762 := z.EncBinary() + _ = yym2762 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - 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 { + yysep2763 := !z.EncBinary() + yy2arr2763 := z.EncBasicHandle().StructToArray + var yyq2763 [5]bool + _, _, _ = yysep2763, yyq2763, yy2arr2763 + const yyr2763 bool = false + yyq2763[0] = x.Kind != "" + yyq2763[1] = x.APIVersion != "" + yyq2763[2] = true + yyq2763[3] = true + yyq2763[4] = true + var yynn2763 int + if yyr2763 || yy2arr2763 { r.EncodeArrayStart(5) } else { - yynn2680 = 0 - for _, b := range yyq2680 { + yynn2763 = 0 + for _, b := range yyq2763 { if b { - yynn2680++ + yynn2763++ } } - r.EncodeMapStart(yynn2680) - yynn2680 = 0 + r.EncodeMapStart(yynn2763) + yynn2763 = 0 } - if yyr2680 || yy2arr2680 { + if yyr2763 || yy2arr2763 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2680[0] { - yym2682 := z.EncBinary() - _ = yym2682 + if yyq2763[0] { + yym2765 := z.EncBinary() + _ = yym2765 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) @@ -34902,23 +35982,23 @@ func (x *Service) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2680[0] { + if yyq2763[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym2683 := z.EncBinary() - _ = yym2683 + yym2766 := z.EncBinary() + _ = yym2766 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } - if yyr2680 || yy2arr2680 { + if yyr2763 || yy2arr2763 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2680[1] { - yym2685 := z.EncBinary() - _ = yym2685 + if yyq2763[1] { + yym2768 := z.EncBinary() + _ = yym2768 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) @@ -34927,70 +36007,70 @@ func (x *Service) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2680[1] { + if yyq2763[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym2686 := z.EncBinary() - _ = yym2686 + yym2769 := z.EncBinary() + _ = yym2769 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } - if yyr2680 || yy2arr2680 { + if yyr2763 || yy2arr2763 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2680[2] { - yy2688 := &x.ObjectMeta - yy2688.CodecEncodeSelf(e) + if yyq2763[2] { + yy2771 := &x.ObjectMeta + yy2771.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { - if yyq2680[2] { + if yyq2763[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy2689 := &x.ObjectMeta - yy2689.CodecEncodeSelf(e) + yy2772 := &x.ObjectMeta + yy2772.CodecEncodeSelf(e) } } - if yyr2680 || yy2arr2680 { + if yyr2763 || yy2arr2763 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2680[3] { - yy2691 := &x.Spec - yy2691.CodecEncodeSelf(e) + if yyq2763[3] { + yy2774 := &x.Spec + yy2774.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { - if yyq2680[3] { + if yyq2763[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("spec")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy2692 := &x.Spec - yy2692.CodecEncodeSelf(e) + yy2775 := &x.Spec + yy2775.CodecEncodeSelf(e) } } - if yyr2680 || yy2arr2680 { + if yyr2763 || yy2arr2763 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2680[4] { - yy2694 := &x.Status - yy2694.CodecEncodeSelf(e) + if yyq2763[4] { + yy2777 := &x.Status + yy2777.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { - if yyq2680[4] { + if yyq2763[4] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("status")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy2695 := &x.Status - yy2695.CodecEncodeSelf(e) + yy2778 := &x.Status + yy2778.CodecEncodeSelf(e) } } - if yyr2680 || yy2arr2680 { + if yyr2763 || yy2arr2763 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -35003,25 +36083,25 @@ func (x *Service) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym2696 := z.DecBinary() - _ = yym2696 + yym2779 := z.DecBinary() + _ = yym2779 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2697 := r.ContainerType() - if yyct2697 == codecSelferValueTypeMap1234 { - yyl2697 := r.ReadMapStart() - if yyl2697 == 0 { + yyct2780 := r.ContainerType() + if yyct2780 == codecSelferValueTypeMap1234 { + yyl2780 := r.ReadMapStart() + if yyl2780 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2697, d) + x.codecDecodeSelfFromMap(yyl2780, d) } - } else if yyct2697 == codecSelferValueTypeArray1234 { - yyl2697 := r.ReadArrayStart() - if yyl2697 == 0 { + } else if yyct2780 == codecSelferValueTypeArray1234 { + yyl2780 := r.ReadArrayStart() + if yyl2780 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2697, d) + x.codecDecodeSelfFromArray(yyl2780, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -35033,12 +36113,12 @@ func (x *Service) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys2698Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys2698Slc - var yyhl2698 bool = l >= 0 - for yyj2698 := 0; ; yyj2698++ { - if yyhl2698 { - if yyj2698 >= l { + var yys2781Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys2781Slc + var yyhl2781 bool = l >= 0 + for yyj2781 := 0; ; yyj2781++ { + if yyhl2781 { + if yyj2781 >= l { break } } else { @@ -35047,10 +36127,10 @@ func (x *Service) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys2698Slc = r.DecodeBytes(yys2698Slc, true, true) - yys2698 := string(yys2698Slc) + yys2781Slc = r.DecodeBytes(yys2781Slc, true, true) + yys2781 := string(yys2781Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys2698 { + switch yys2781 { case "kind": if r.TryDecodeAsNil() { x.Kind = "" @@ -35067,27 +36147,27 @@ func (x *Service) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.ObjectMeta = ObjectMeta{} } else { - yyv2701 := &x.ObjectMeta - yyv2701.CodecDecodeSelf(d) + yyv2784 := &x.ObjectMeta + yyv2784.CodecDecodeSelf(d) } case "spec": if r.TryDecodeAsNil() { x.Spec = ServiceSpec{} } else { - yyv2702 := &x.Spec - yyv2702.CodecDecodeSelf(d) + yyv2785 := &x.Spec + yyv2785.CodecDecodeSelf(d) } case "status": if r.TryDecodeAsNil() { x.Status = ServiceStatus{} } else { - yyv2703 := &x.Status - yyv2703.CodecDecodeSelf(d) + yyv2786 := &x.Status + yyv2786.CodecDecodeSelf(d) } default: - z.DecStructFieldNotFound(-1, yys2698) - } // end switch yys2698 - } // end for yyj2698 + z.DecStructFieldNotFound(-1, yys2781) + } // end switch yys2781 + } // end for yyj2781 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -35095,16 +36175,16 @@ func (x *Service) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj2704 int - var yyb2704 bool - var yyhl2704 bool = l >= 0 - yyj2704++ - if yyhl2704 { - yyb2704 = yyj2704 > l + var yyj2787 int + var yyb2787 bool + var yyhl2787 bool = l >= 0 + yyj2787++ + if yyhl2787 { + yyb2787 = yyj2787 > l } else { - yyb2704 = r.CheckBreak() + yyb2787 = r.CheckBreak() } - if yyb2704 { + if yyb2787 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -35114,13 +36194,13 @@ func (x *Service) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.Kind = string(r.DecodeString()) } - yyj2704++ - if yyhl2704 { - yyb2704 = yyj2704 > l + yyj2787++ + if yyhl2787 { + yyb2787 = yyj2787 > l } else { - yyb2704 = r.CheckBreak() + yyb2787 = r.CheckBreak() } - if yyb2704 { + if yyb2787 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -35130,13 +36210,13 @@ func (x *Service) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.APIVersion = string(r.DecodeString()) } - yyj2704++ - if yyhl2704 { - yyb2704 = yyj2704 > l + yyj2787++ + if yyhl2787 { + yyb2787 = yyj2787 > l } else { - yyb2704 = r.CheckBreak() + yyb2787 = r.CheckBreak() } - if yyb2704 { + if yyb2787 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -35144,16 +36224,16 @@ func (x *Service) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.ObjectMeta = ObjectMeta{} } else { - yyv2707 := &x.ObjectMeta - yyv2707.CodecDecodeSelf(d) + yyv2790 := &x.ObjectMeta + yyv2790.CodecDecodeSelf(d) } - yyj2704++ - if yyhl2704 { - yyb2704 = yyj2704 > l + yyj2787++ + if yyhl2787 { + yyb2787 = yyj2787 > l } else { - yyb2704 = r.CheckBreak() + yyb2787 = r.CheckBreak() } - if yyb2704 { + if yyb2787 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -35161,16 +36241,16 @@ func (x *Service) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.Spec = ServiceSpec{} } else { - yyv2708 := &x.Spec - yyv2708.CodecDecodeSelf(d) + yyv2791 := &x.Spec + yyv2791.CodecDecodeSelf(d) } - yyj2704++ - if yyhl2704 { - yyb2704 = yyj2704 > l + yyj2787++ + if yyhl2787 { + yyb2787 = yyj2787 > l } else { - yyb2704 = r.CheckBreak() + yyb2787 = r.CheckBreak() } - if yyb2704 { + if yyb2787 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -35178,21 +36258,21 @@ func (x *Service) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.Status = ServiceStatus{} } else { - yyv2709 := &x.Status - yyv2709.CodecDecodeSelf(d) + yyv2792 := &x.Status + yyv2792.CodecDecodeSelf(d) } for { - yyj2704++ - if yyhl2704 { - yyb2704 = yyj2704 > l + yyj2787++ + if yyhl2787 { + yyb2787 = yyj2787 > l } else { - yyb2704 = r.CheckBreak() + yyb2787 = r.CheckBreak() } - if yyb2704 { + if yyb2787 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj2704-1, "") + z.DecStructFieldNotFound(yyj2787-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -35204,38 +36284,38 @@ func (x *ServiceAccount) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym2710 := z.EncBinary() - _ = yym2710 + yym2793 := z.EncBinary() + _ = yym2793 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - 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 { + yysep2794 := !z.EncBinary() + yy2arr2794 := z.EncBasicHandle().StructToArray + var yyq2794 [5]bool + _, _, _ = yysep2794, yyq2794, yy2arr2794 + const yyr2794 bool = false + yyq2794[0] = x.Kind != "" + yyq2794[1] = x.APIVersion != "" + yyq2794[2] = true + yyq2794[4] = len(x.ImagePullSecrets) != 0 + var yynn2794 int + if yyr2794 || yy2arr2794 { r.EncodeArrayStart(5) } else { - yynn2711 = 1 - for _, b := range yyq2711 { + yynn2794 = 1 + for _, b := range yyq2794 { if b { - yynn2711++ + yynn2794++ } } - r.EncodeMapStart(yynn2711) - yynn2711 = 0 + r.EncodeMapStart(yynn2794) + yynn2794 = 0 } - if yyr2711 || yy2arr2711 { + if yyr2794 || yy2arr2794 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2711[0] { - yym2713 := z.EncBinary() - _ = yym2713 + if yyq2794[0] { + yym2796 := z.EncBinary() + _ = yym2796 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) @@ -35244,23 +36324,23 @@ func (x *ServiceAccount) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2711[0] { + if yyq2794[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym2714 := z.EncBinary() - _ = yym2714 + yym2797 := z.EncBinary() + _ = yym2797 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } - if yyr2711 || yy2arr2711 { + if yyr2794 || yy2arr2794 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2711[1] { - yym2716 := z.EncBinary() - _ = yym2716 + if yyq2794[1] { + yym2799 := z.EncBinary() + _ = yym2799 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) @@ -35269,42 +36349,42 @@ func (x *ServiceAccount) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2711[1] { + if yyq2794[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym2717 := z.EncBinary() - _ = yym2717 + yym2800 := z.EncBinary() + _ = yym2800 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } - if yyr2711 || yy2arr2711 { + if yyr2794 || yy2arr2794 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2711[2] { - yy2719 := &x.ObjectMeta - yy2719.CodecEncodeSelf(e) + if yyq2794[2] { + yy2802 := &x.ObjectMeta + yy2802.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { - if yyq2711[2] { + if yyq2794[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy2720 := &x.ObjectMeta - yy2720.CodecEncodeSelf(e) + yy2803 := &x.ObjectMeta + yy2803.CodecEncodeSelf(e) } } - if yyr2711 || yy2arr2711 { + if yyr2794 || yy2arr2794 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.Secrets == nil { r.EncodeNil() } else { - yym2722 := z.EncBinary() - _ = yym2722 + yym2805 := z.EncBinary() + _ = yym2805 if false { } else { h.encSliceObjectReference(([]ObjectReference)(x.Secrets), e) @@ -35317,22 +36397,22 @@ func (x *ServiceAccount) CodecEncodeSelf(e *codec1978.Encoder) { if x.Secrets == nil { r.EncodeNil() } else { - yym2723 := z.EncBinary() - _ = yym2723 + yym2806 := z.EncBinary() + _ = yym2806 if false { } else { h.encSliceObjectReference(([]ObjectReference)(x.Secrets), e) } } } - if yyr2711 || yy2arr2711 { + if yyr2794 || yy2arr2794 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2711[4] { + if yyq2794[4] { if x.ImagePullSecrets == nil { r.EncodeNil() } else { - yym2725 := z.EncBinary() - _ = yym2725 + yym2808 := z.EncBinary() + _ = yym2808 if false { } else { h.encSliceLocalObjectReference(([]LocalObjectReference)(x.ImagePullSecrets), e) @@ -35342,15 +36422,15 @@ func (x *ServiceAccount) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq2711[4] { + if yyq2794[4] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("imagePullSecrets")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.ImagePullSecrets == nil { r.EncodeNil() } else { - yym2726 := z.EncBinary() - _ = yym2726 + yym2809 := z.EncBinary() + _ = yym2809 if false { } else { h.encSliceLocalObjectReference(([]LocalObjectReference)(x.ImagePullSecrets), e) @@ -35358,7 +36438,7 @@ func (x *ServiceAccount) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr2711 || yy2arr2711 { + if yyr2794 || yy2arr2794 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -35371,25 +36451,25 @@ func (x *ServiceAccount) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym2727 := z.DecBinary() - _ = yym2727 + yym2810 := z.DecBinary() + _ = yym2810 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2728 := r.ContainerType() - if yyct2728 == codecSelferValueTypeMap1234 { - yyl2728 := r.ReadMapStart() - if yyl2728 == 0 { + yyct2811 := r.ContainerType() + if yyct2811 == codecSelferValueTypeMap1234 { + yyl2811 := r.ReadMapStart() + if yyl2811 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2728, d) + x.codecDecodeSelfFromMap(yyl2811, d) } - } else if yyct2728 == codecSelferValueTypeArray1234 { - yyl2728 := r.ReadArrayStart() - if yyl2728 == 0 { + } else if yyct2811 == codecSelferValueTypeArray1234 { + yyl2811 := r.ReadArrayStart() + if yyl2811 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2728, d) + x.codecDecodeSelfFromArray(yyl2811, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -35401,12 +36481,12 @@ func (x *ServiceAccount) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys2729Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys2729Slc - var yyhl2729 bool = l >= 0 - for yyj2729 := 0; ; yyj2729++ { - if yyhl2729 { - if yyj2729 >= l { + 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 { @@ -35415,10 +36495,10 @@ func (x *ServiceAccount) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys2729Slc = r.DecodeBytes(yys2729Slc, true, true) - yys2729 := string(yys2729Slc) + yys2812Slc = r.DecodeBytes(yys2812Slc, true, true) + yys2812 := string(yys2812Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys2729 { + switch yys2812 { case "kind": if r.TryDecodeAsNil() { x.Kind = "" @@ -35435,37 +36515,37 @@ func (x *ServiceAccount) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.ObjectMeta = ObjectMeta{} } else { - yyv2732 := &x.ObjectMeta - yyv2732.CodecDecodeSelf(d) + yyv2815 := &x.ObjectMeta + yyv2815.CodecDecodeSelf(d) } case "secrets": if r.TryDecodeAsNil() { x.Secrets = nil } else { - yyv2733 := &x.Secrets - yym2734 := z.DecBinary() - _ = yym2734 + yyv2816 := &x.Secrets + yym2817 := z.DecBinary() + _ = yym2817 if false { } else { - h.decSliceObjectReference((*[]ObjectReference)(yyv2733), d) + h.decSliceObjectReference((*[]ObjectReference)(yyv2816), d) } } case "imagePullSecrets": if r.TryDecodeAsNil() { x.ImagePullSecrets = nil } else { - yyv2735 := &x.ImagePullSecrets - yym2736 := z.DecBinary() - _ = yym2736 + yyv2818 := &x.ImagePullSecrets + yym2819 := z.DecBinary() + _ = yym2819 if false { } else { - h.decSliceLocalObjectReference((*[]LocalObjectReference)(yyv2735), d) + h.decSliceLocalObjectReference((*[]LocalObjectReference)(yyv2818), d) } } default: - z.DecStructFieldNotFound(-1, yys2729) - } // end switch yys2729 - } // end for yyj2729 + z.DecStructFieldNotFound(-1, yys2812) + } // end switch yys2812 + } // end for yyj2812 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -35473,16 +36553,16 @@ func (x *ServiceAccount) 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 + var yyj2820 int + var yyb2820 bool + var yyhl2820 bool = l >= 0 + yyj2820++ + if yyhl2820 { + yyb2820 = yyj2820 > l } else { - yyb2737 = r.CheckBreak() + yyb2820 = r.CheckBreak() } - if yyb2737 { + if yyb2820 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -35492,13 +36572,13 @@ func (x *ServiceAccount) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.Kind = string(r.DecodeString()) } - yyj2737++ - if yyhl2737 { - yyb2737 = yyj2737 > l + yyj2820++ + if yyhl2820 { + yyb2820 = yyj2820 > l } else { - yyb2737 = r.CheckBreak() + yyb2820 = r.CheckBreak() } - if yyb2737 { + if yyb2820 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -35508,13 +36588,13 @@ func (x *ServiceAccount) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.APIVersion = string(r.DecodeString()) } - yyj2737++ - if yyhl2737 { - yyb2737 = yyj2737 > l + yyj2820++ + if yyhl2820 { + yyb2820 = yyj2820 > l } else { - yyb2737 = r.CheckBreak() + yyb2820 = r.CheckBreak() } - if yyb2737 { + if yyb2820 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -35522,16 +36602,16 @@ func (x *ServiceAccount) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.ObjectMeta = ObjectMeta{} } else { - yyv2740 := &x.ObjectMeta - yyv2740.CodecDecodeSelf(d) + yyv2823 := &x.ObjectMeta + yyv2823.CodecDecodeSelf(d) } - yyj2737++ - if yyhl2737 { - yyb2737 = yyj2737 > l + yyj2820++ + if yyhl2820 { + yyb2820 = yyj2820 > l } else { - yyb2737 = r.CheckBreak() + yyb2820 = r.CheckBreak() } - if yyb2737 { + if yyb2820 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -35539,21 +36619,21 @@ func (x *ServiceAccount) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.Secrets = nil } else { - yyv2741 := &x.Secrets - yym2742 := z.DecBinary() - _ = yym2742 + yyv2824 := &x.Secrets + yym2825 := z.DecBinary() + _ = yym2825 if false { } else { - h.decSliceObjectReference((*[]ObjectReference)(yyv2741), d) + h.decSliceObjectReference((*[]ObjectReference)(yyv2824), d) } } - yyj2737++ - if yyhl2737 { - yyb2737 = yyj2737 > l + yyj2820++ + if yyhl2820 { + yyb2820 = yyj2820 > l } else { - yyb2737 = r.CheckBreak() + yyb2820 = r.CheckBreak() } - if yyb2737 { + if yyb2820 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -35561,26 +36641,26 @@ func (x *ServiceAccount) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.ImagePullSecrets = nil } else { - yyv2743 := &x.ImagePullSecrets - yym2744 := z.DecBinary() - _ = yym2744 + yyv2826 := &x.ImagePullSecrets + yym2827 := z.DecBinary() + _ = yym2827 if false { } else { - h.decSliceLocalObjectReference((*[]LocalObjectReference)(yyv2743), d) + h.decSliceLocalObjectReference((*[]LocalObjectReference)(yyv2826), d) } } for { - yyj2737++ - if yyhl2737 { - yyb2737 = yyj2737 > l + yyj2820++ + if yyhl2820 { + yyb2820 = yyj2820 > l } else { - yyb2737 = r.CheckBreak() + yyb2820 = r.CheckBreak() } - if yyb2737 { + if yyb2820 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj2737-1, "") + z.DecStructFieldNotFound(yyj2820-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -35592,37 +36672,37 @@ func (x *ServiceAccountList) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym2745 := z.EncBinary() - _ = yym2745 + yym2828 := z.EncBinary() + _ = yym2828 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - 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 { + yysep2829 := !z.EncBinary() + yy2arr2829 := z.EncBasicHandle().StructToArray + var yyq2829 [4]bool + _, _, _ = yysep2829, yyq2829, yy2arr2829 + const yyr2829 bool = false + yyq2829[0] = x.Kind != "" + yyq2829[1] = x.APIVersion != "" + yyq2829[2] = true + var yynn2829 int + if yyr2829 || yy2arr2829 { r.EncodeArrayStart(4) } else { - yynn2746 = 1 - for _, b := range yyq2746 { + yynn2829 = 1 + for _, b := range yyq2829 { if b { - yynn2746++ + yynn2829++ } } - r.EncodeMapStart(yynn2746) - yynn2746 = 0 + r.EncodeMapStart(yynn2829) + yynn2829 = 0 } - if yyr2746 || yy2arr2746 { + if yyr2829 || yy2arr2829 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2746[0] { - yym2748 := z.EncBinary() - _ = yym2748 + if yyq2829[0] { + yym2831 := z.EncBinary() + _ = yym2831 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) @@ -35631,23 +36711,23 @@ func (x *ServiceAccountList) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2746[0] { + if yyq2829[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym2749 := z.EncBinary() - _ = yym2749 + yym2832 := z.EncBinary() + _ = yym2832 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } - if yyr2746 || yy2arr2746 { + if yyr2829 || yy2arr2829 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2746[1] { - yym2751 := z.EncBinary() - _ = yym2751 + if yyq2829[1] { + yym2834 := z.EncBinary() + _ = yym2834 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) @@ -35656,54 +36736,54 @@ func (x *ServiceAccountList) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2746[1] { + if yyq2829[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym2752 := z.EncBinary() - _ = yym2752 + yym2835 := z.EncBinary() + _ = yym2835 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } - if yyr2746 || yy2arr2746 { + if yyr2829 || yy2arr2829 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2746[2] { - yy2754 := &x.ListMeta - yym2755 := z.EncBinary() - _ = yym2755 + if yyq2829[2] { + yy2837 := &x.ListMeta + yym2838 := z.EncBinary() + _ = yym2838 if false { - } else if z.HasExtensions() && z.EncExt(yy2754) { + } else if z.HasExtensions() && z.EncExt(yy2837) { } else { - z.EncFallback(yy2754) + z.EncFallback(yy2837) } } else { r.EncodeNil() } } else { - if yyq2746[2] { + if yyq2829[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy2756 := &x.ListMeta - yym2757 := z.EncBinary() - _ = yym2757 + yy2839 := &x.ListMeta + yym2840 := z.EncBinary() + _ = yym2840 if false { - } else if z.HasExtensions() && z.EncExt(yy2756) { + } else if z.HasExtensions() && z.EncExt(yy2839) { } else { - z.EncFallback(yy2756) + z.EncFallback(yy2839) } } } - if yyr2746 || yy2arr2746 { + if yyr2829 || yy2arr2829 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.Items == nil { r.EncodeNil() } else { - yym2759 := z.EncBinary() - _ = yym2759 + yym2842 := z.EncBinary() + _ = yym2842 if false { } else { h.encSliceServiceAccount(([]ServiceAccount)(x.Items), e) @@ -35716,15 +36796,15 @@ func (x *ServiceAccountList) CodecEncodeSelf(e *codec1978.Encoder) { if x.Items == nil { r.EncodeNil() } else { - yym2760 := z.EncBinary() - _ = yym2760 + yym2843 := z.EncBinary() + _ = yym2843 if false { } else { h.encSliceServiceAccount(([]ServiceAccount)(x.Items), e) } } } - if yyr2746 || yy2arr2746 { + if yyr2829 || yy2arr2829 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -35737,25 +36817,25 @@ func (x *ServiceAccountList) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym2761 := z.DecBinary() - _ = yym2761 + yym2844 := z.DecBinary() + _ = yym2844 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2762 := r.ContainerType() - if yyct2762 == codecSelferValueTypeMap1234 { - yyl2762 := r.ReadMapStart() - if yyl2762 == 0 { + yyct2845 := r.ContainerType() + if yyct2845 == codecSelferValueTypeMap1234 { + yyl2845 := r.ReadMapStart() + if yyl2845 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2762, d) + x.codecDecodeSelfFromMap(yyl2845, d) } - } else if yyct2762 == codecSelferValueTypeArray1234 { - yyl2762 := r.ReadArrayStart() - if yyl2762 == 0 { + } else if yyct2845 == codecSelferValueTypeArray1234 { + yyl2845 := r.ReadArrayStart() + if yyl2845 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2762, d) + x.codecDecodeSelfFromArray(yyl2845, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -35767,12 +36847,12 @@ func (x *ServiceAccountList) 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 { + var yys2846Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys2846Slc + var yyhl2846 bool = l >= 0 + for yyj2846 := 0; ; yyj2846++ { + if yyhl2846 { + if yyj2846 >= l { break } } else { @@ -35781,10 +36861,10 @@ func (x *ServiceAccountList) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys2763Slc = r.DecodeBytes(yys2763Slc, true, true) - yys2763 := string(yys2763Slc) + yys2846Slc = r.DecodeBytes(yys2846Slc, true, true) + yys2846 := string(yys2846Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys2763 { + switch yys2846 { case "kind": if r.TryDecodeAsNil() { x.Kind = "" @@ -35801,31 +36881,31 @@ func (x *ServiceAccountList) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) if r.TryDecodeAsNil() { x.ListMeta = pkg2_unversioned.ListMeta{} } else { - yyv2766 := &x.ListMeta - yym2767 := z.DecBinary() - _ = yym2767 + yyv2849 := &x.ListMeta + yym2850 := z.DecBinary() + _ = yym2850 if false { - } else if z.HasExtensions() && z.DecExt(yyv2766) { + } else if z.HasExtensions() && z.DecExt(yyv2849) { } else { - z.DecFallback(yyv2766, false) + z.DecFallback(yyv2849, false) } } case "items": if r.TryDecodeAsNil() { x.Items = nil } else { - yyv2768 := &x.Items - yym2769 := z.DecBinary() - _ = yym2769 + yyv2851 := &x.Items + yym2852 := z.DecBinary() + _ = yym2852 if false { } else { - h.decSliceServiceAccount((*[]ServiceAccount)(yyv2768), d) + h.decSliceServiceAccount((*[]ServiceAccount)(yyv2851), d) } } default: - z.DecStructFieldNotFound(-1, yys2763) - } // end switch yys2763 - } // end for yyj2763 + z.DecStructFieldNotFound(-1, yys2846) + } // end switch yys2846 + } // end for yyj2846 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -35833,16 +36913,16 @@ func (x *ServiceAccountList) codecDecodeSelfFromArray(l int, d *codec1978.Decode var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj2770 int - var yyb2770 bool - var yyhl2770 bool = l >= 0 - yyj2770++ - if yyhl2770 { - yyb2770 = yyj2770 > l + var yyj2853 int + var yyb2853 bool + var yyhl2853 bool = l >= 0 + yyj2853++ + if yyhl2853 { + yyb2853 = yyj2853 > l } else { - yyb2770 = r.CheckBreak() + yyb2853 = r.CheckBreak() } - if yyb2770 { + if yyb2853 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -35852,13 +36932,13 @@ func (x *ServiceAccountList) codecDecodeSelfFromArray(l int, d *codec1978.Decode } else { x.Kind = string(r.DecodeString()) } - yyj2770++ - if yyhl2770 { - yyb2770 = yyj2770 > l + yyj2853++ + if yyhl2853 { + yyb2853 = yyj2853 > l } else { - yyb2770 = r.CheckBreak() + yyb2853 = r.CheckBreak() } - if yyb2770 { + if yyb2853 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -35868,13 +36948,13 @@ func (x *ServiceAccountList) codecDecodeSelfFromArray(l int, d *codec1978.Decode } else { x.APIVersion = string(r.DecodeString()) } - yyj2770++ - if yyhl2770 { - yyb2770 = yyj2770 > l + yyj2853++ + if yyhl2853 { + yyb2853 = yyj2853 > l } else { - yyb2770 = r.CheckBreak() + yyb2853 = r.CheckBreak() } - if yyb2770 { + if yyb2853 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -35882,22 +36962,22 @@ func (x *ServiceAccountList) codecDecodeSelfFromArray(l int, d *codec1978.Decode if r.TryDecodeAsNil() { x.ListMeta = pkg2_unversioned.ListMeta{} } else { - yyv2773 := &x.ListMeta - yym2774 := z.DecBinary() - _ = yym2774 + yyv2856 := &x.ListMeta + yym2857 := z.DecBinary() + _ = yym2857 if false { - } else if z.HasExtensions() && z.DecExt(yyv2773) { + } else if z.HasExtensions() && z.DecExt(yyv2856) { } else { - z.DecFallback(yyv2773, false) + z.DecFallback(yyv2856, false) } } - yyj2770++ - if yyhl2770 { - yyb2770 = yyj2770 > l + yyj2853++ + if yyhl2853 { + yyb2853 = yyj2853 > l } else { - yyb2770 = r.CheckBreak() + yyb2853 = r.CheckBreak() } - if yyb2770 { + if yyb2853 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -35905,26 +36985,26 @@ func (x *ServiceAccountList) codecDecodeSelfFromArray(l int, d *codec1978.Decode if r.TryDecodeAsNil() { x.Items = nil } else { - yyv2775 := &x.Items - yym2776 := z.DecBinary() - _ = yym2776 + yyv2858 := &x.Items + yym2859 := z.DecBinary() + _ = yym2859 if false { } else { - h.decSliceServiceAccount((*[]ServiceAccount)(yyv2775), d) + h.decSliceServiceAccount((*[]ServiceAccount)(yyv2858), d) } } for { - yyj2770++ - if yyhl2770 { - yyb2770 = yyj2770 > l + yyj2853++ + if yyhl2853 { + yyb2853 = yyj2853 > l } else { - yyb2770 = r.CheckBreak() + yyb2853 = r.CheckBreak() } - if yyb2770 { + if yyb2853 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj2770-1, "") + z.DecStructFieldNotFound(yyj2853-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -35936,37 +37016,37 @@ func (x *Endpoints) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym2777 := z.EncBinary() - _ = yym2777 + yym2860 := z.EncBinary() + _ = yym2860 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - 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 { + yysep2861 := !z.EncBinary() + yy2arr2861 := z.EncBasicHandle().StructToArray + var yyq2861 [4]bool + _, _, _ = yysep2861, yyq2861, yy2arr2861 + const yyr2861 bool = false + yyq2861[0] = x.Kind != "" + yyq2861[1] = x.APIVersion != "" + yyq2861[2] = true + var yynn2861 int + if yyr2861 || yy2arr2861 { r.EncodeArrayStart(4) } else { - yynn2778 = 1 - for _, b := range yyq2778 { + yynn2861 = 1 + for _, b := range yyq2861 { if b { - yynn2778++ + yynn2861++ } } - r.EncodeMapStart(yynn2778) - yynn2778 = 0 + r.EncodeMapStart(yynn2861) + yynn2861 = 0 } - if yyr2778 || yy2arr2778 { + if yyr2861 || yy2arr2861 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2778[0] { - yym2780 := z.EncBinary() - _ = yym2780 + if yyq2861[0] { + yym2863 := z.EncBinary() + _ = yym2863 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) @@ -35975,23 +37055,23 @@ func (x *Endpoints) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2778[0] { + if yyq2861[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym2781 := z.EncBinary() - _ = yym2781 + yym2864 := z.EncBinary() + _ = yym2864 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } - if yyr2778 || yy2arr2778 { + if yyr2861 || yy2arr2861 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2778[1] { - yym2783 := z.EncBinary() - _ = yym2783 + if yyq2861[1] { + yym2866 := z.EncBinary() + _ = yym2866 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) @@ -36000,42 +37080,42 @@ func (x *Endpoints) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2778[1] { + if yyq2861[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym2784 := z.EncBinary() - _ = yym2784 + yym2867 := z.EncBinary() + _ = yym2867 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } - if yyr2778 || yy2arr2778 { + if yyr2861 || yy2arr2861 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2778[2] { - yy2786 := &x.ObjectMeta - yy2786.CodecEncodeSelf(e) + if yyq2861[2] { + yy2869 := &x.ObjectMeta + yy2869.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { - if yyq2778[2] { + if yyq2861[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy2787 := &x.ObjectMeta - yy2787.CodecEncodeSelf(e) + yy2870 := &x.ObjectMeta + yy2870.CodecEncodeSelf(e) } } - if yyr2778 || yy2arr2778 { + if yyr2861 || yy2arr2861 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.Subsets == nil { r.EncodeNil() } else { - yym2789 := z.EncBinary() - _ = yym2789 + yym2872 := z.EncBinary() + _ = yym2872 if false { } else { h.encSliceEndpointSubset(([]EndpointSubset)(x.Subsets), e) @@ -36048,15 +37128,15 @@ func (x *Endpoints) CodecEncodeSelf(e *codec1978.Encoder) { if x.Subsets == nil { r.EncodeNil() } else { - yym2790 := z.EncBinary() - _ = yym2790 + yym2873 := z.EncBinary() + _ = yym2873 if false { } else { h.encSliceEndpointSubset(([]EndpointSubset)(x.Subsets), e) } } } - if yyr2778 || yy2arr2778 { + if yyr2861 || yy2arr2861 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -36069,25 +37149,25 @@ func (x *Endpoints) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym2791 := z.DecBinary() - _ = yym2791 + yym2874 := z.DecBinary() + _ = yym2874 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2792 := r.ContainerType() - if yyct2792 == codecSelferValueTypeMap1234 { - yyl2792 := r.ReadMapStart() - if yyl2792 == 0 { + yyct2875 := r.ContainerType() + if yyct2875 == codecSelferValueTypeMap1234 { + yyl2875 := r.ReadMapStart() + if yyl2875 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2792, d) + x.codecDecodeSelfFromMap(yyl2875, d) } - } else if yyct2792 == codecSelferValueTypeArray1234 { - yyl2792 := r.ReadArrayStart() - if yyl2792 == 0 { + } else if yyct2875 == codecSelferValueTypeArray1234 { + yyl2875 := r.ReadArrayStart() + if yyl2875 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2792, d) + x.codecDecodeSelfFromArray(yyl2875, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -36099,12 +37179,12 @@ func (x *Endpoints) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys2793Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys2793Slc - var yyhl2793 bool = l >= 0 - for yyj2793 := 0; ; yyj2793++ { - if yyhl2793 { - if yyj2793 >= l { + var yys2876Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys2876Slc + var yyhl2876 bool = l >= 0 + for yyj2876 := 0; ; yyj2876++ { + if yyhl2876 { + if yyj2876 >= l { break } } else { @@ -36113,10 +37193,10 @@ func (x *Endpoints) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys2793Slc = r.DecodeBytes(yys2793Slc, true, true) - yys2793 := string(yys2793Slc) + yys2876Slc = r.DecodeBytes(yys2876Slc, true, true) + yys2876 := string(yys2876Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys2793 { + switch yys2876 { case "kind": if r.TryDecodeAsNil() { x.Kind = "" @@ -36133,25 +37213,25 @@ func (x *Endpoints) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.ObjectMeta = ObjectMeta{} } else { - yyv2796 := &x.ObjectMeta - yyv2796.CodecDecodeSelf(d) + yyv2879 := &x.ObjectMeta + yyv2879.CodecDecodeSelf(d) } case "Subsets": if r.TryDecodeAsNil() { x.Subsets = nil } else { - yyv2797 := &x.Subsets - yym2798 := z.DecBinary() - _ = yym2798 + yyv2880 := &x.Subsets + yym2881 := z.DecBinary() + _ = yym2881 if false { } else { - h.decSliceEndpointSubset((*[]EndpointSubset)(yyv2797), d) + h.decSliceEndpointSubset((*[]EndpointSubset)(yyv2880), d) } } default: - z.DecStructFieldNotFound(-1, yys2793) - } // end switch yys2793 - } // end for yyj2793 + z.DecStructFieldNotFound(-1, yys2876) + } // end switch yys2876 + } // end for yyj2876 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -36159,16 +37239,16 @@ func (x *Endpoints) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj2799 int - var yyb2799 bool - var yyhl2799 bool = l >= 0 - yyj2799++ - if yyhl2799 { - yyb2799 = yyj2799 > l + var yyj2882 int + var yyb2882 bool + var yyhl2882 bool = l >= 0 + yyj2882++ + if yyhl2882 { + yyb2882 = yyj2882 > l } else { - yyb2799 = r.CheckBreak() + yyb2882 = r.CheckBreak() } - if yyb2799 { + if yyb2882 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -36178,13 +37258,13 @@ func (x *Endpoints) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.Kind = string(r.DecodeString()) } - yyj2799++ - if yyhl2799 { - yyb2799 = yyj2799 > l + yyj2882++ + if yyhl2882 { + yyb2882 = yyj2882 > l } else { - yyb2799 = r.CheckBreak() + yyb2882 = r.CheckBreak() } - if yyb2799 { + if yyb2882 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -36194,13 +37274,13 @@ func (x *Endpoints) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.APIVersion = string(r.DecodeString()) } - yyj2799++ - if yyhl2799 { - yyb2799 = yyj2799 > l + yyj2882++ + if yyhl2882 { + yyb2882 = yyj2882 > l } else { - yyb2799 = r.CheckBreak() + yyb2882 = r.CheckBreak() } - if yyb2799 { + if yyb2882 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -36208,16 +37288,16 @@ func (x *Endpoints) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.ObjectMeta = ObjectMeta{} } else { - yyv2802 := &x.ObjectMeta - yyv2802.CodecDecodeSelf(d) + yyv2885 := &x.ObjectMeta + yyv2885.CodecDecodeSelf(d) } - yyj2799++ - if yyhl2799 { - yyb2799 = yyj2799 > l + yyj2882++ + if yyhl2882 { + yyb2882 = yyj2882 > l } else { - yyb2799 = r.CheckBreak() + yyb2882 = r.CheckBreak() } - if yyb2799 { + if yyb2882 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -36225,26 +37305,26 @@ func (x *Endpoints) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.Subsets = nil } else { - yyv2803 := &x.Subsets - yym2804 := z.DecBinary() - _ = yym2804 + yyv2886 := &x.Subsets + yym2887 := z.DecBinary() + _ = yym2887 if false { } else { - h.decSliceEndpointSubset((*[]EndpointSubset)(yyv2803), d) + h.decSliceEndpointSubset((*[]EndpointSubset)(yyv2886), d) } } for { - yyj2799++ - if yyhl2799 { - yyb2799 = yyj2799 > l + yyj2882++ + if yyhl2882 { + yyb2882 = yyj2882 > l } else { - yyb2799 = r.CheckBreak() + yyb2882 = r.CheckBreak() } - if yyb2799 { + if yyb2882 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj2799-1, "") + z.DecStructFieldNotFound(yyj2882-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -36256,36 +37336,36 @@ func (x *EndpointSubset) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym2805 := z.EncBinary() - _ = yym2805 + yym2888 := z.EncBinary() + _ = yym2888 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep2806 := !z.EncBinary() - yy2arr2806 := z.EncBasicHandle().StructToArray - var yyq2806 [3]bool - _, _, _ = yysep2806, yyq2806, yy2arr2806 - const yyr2806 bool = false - var yynn2806 int - if yyr2806 || yy2arr2806 { + yysep2889 := !z.EncBinary() + yy2arr2889 := z.EncBasicHandle().StructToArray + var yyq2889 [3]bool + _, _, _ = yysep2889, yyq2889, yy2arr2889 + const yyr2889 bool = false + var yynn2889 int + if yyr2889 || yy2arr2889 { r.EncodeArrayStart(3) } else { - yynn2806 = 3 - for _, b := range yyq2806 { + yynn2889 = 3 + for _, b := range yyq2889 { if b { - yynn2806++ + yynn2889++ } } - r.EncodeMapStart(yynn2806) - yynn2806 = 0 + r.EncodeMapStart(yynn2889) + yynn2889 = 0 } - if yyr2806 || yy2arr2806 { + if yyr2889 || yy2arr2889 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.Addresses == nil { r.EncodeNil() } else { - yym2808 := z.EncBinary() - _ = yym2808 + yym2891 := z.EncBinary() + _ = yym2891 if false { } else { h.encSliceEndpointAddress(([]EndpointAddress)(x.Addresses), e) @@ -36298,21 +37378,21 @@ func (x *EndpointSubset) CodecEncodeSelf(e *codec1978.Encoder) { if x.Addresses == nil { r.EncodeNil() } else { - yym2809 := z.EncBinary() - _ = yym2809 + yym2892 := z.EncBinary() + _ = yym2892 if false { } else { h.encSliceEndpointAddress(([]EndpointAddress)(x.Addresses), e) } } } - if yyr2806 || yy2arr2806 { + if yyr2889 || yy2arr2889 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.NotReadyAddresses == nil { r.EncodeNil() } else { - yym2811 := z.EncBinary() - _ = yym2811 + yym2894 := z.EncBinary() + _ = yym2894 if false { } else { h.encSliceEndpointAddress(([]EndpointAddress)(x.NotReadyAddresses), e) @@ -36325,21 +37405,21 @@ func (x *EndpointSubset) CodecEncodeSelf(e *codec1978.Encoder) { if x.NotReadyAddresses == nil { r.EncodeNil() } else { - yym2812 := z.EncBinary() - _ = yym2812 + yym2895 := z.EncBinary() + _ = yym2895 if false { } else { h.encSliceEndpointAddress(([]EndpointAddress)(x.NotReadyAddresses), e) } } } - if yyr2806 || yy2arr2806 { + if yyr2889 || yy2arr2889 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.Ports == nil { r.EncodeNil() } else { - yym2814 := z.EncBinary() - _ = yym2814 + yym2897 := z.EncBinary() + _ = yym2897 if false { } else { h.encSliceEndpointPort(([]EndpointPort)(x.Ports), e) @@ -36352,15 +37432,15 @@ func (x *EndpointSubset) CodecEncodeSelf(e *codec1978.Encoder) { if x.Ports == nil { r.EncodeNil() } else { - yym2815 := z.EncBinary() - _ = yym2815 + yym2898 := z.EncBinary() + _ = yym2898 if false { } else { h.encSliceEndpointPort(([]EndpointPort)(x.Ports), e) } } } - if yyr2806 || yy2arr2806 { + if yyr2889 || yy2arr2889 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -36373,25 +37453,25 @@ func (x *EndpointSubset) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym2816 := z.DecBinary() - _ = yym2816 + yym2899 := z.DecBinary() + _ = yym2899 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2817 := r.ContainerType() - if yyct2817 == codecSelferValueTypeMap1234 { - yyl2817 := r.ReadMapStart() - if yyl2817 == 0 { + yyct2900 := r.ContainerType() + if yyct2900 == codecSelferValueTypeMap1234 { + yyl2900 := r.ReadMapStart() + if yyl2900 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2817, d) + x.codecDecodeSelfFromMap(yyl2900, d) } - } else if yyct2817 == codecSelferValueTypeArray1234 { - yyl2817 := r.ReadArrayStart() - if yyl2817 == 0 { + } else if yyct2900 == codecSelferValueTypeArray1234 { + yyl2900 := r.ReadArrayStart() + if yyl2900 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2817, d) + x.codecDecodeSelfFromArray(yyl2900, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -36403,12 +37483,12 @@ func (x *EndpointSubset) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys2818Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys2818Slc - var yyhl2818 bool = l >= 0 - for yyj2818 := 0; ; yyj2818++ { - if yyhl2818 { - if yyj2818 >= l { + var yys2901Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys2901Slc + var yyhl2901 bool = l >= 0 + for yyj2901 := 0; ; yyj2901++ { + if yyhl2901 { + if yyj2901 >= l { break } } else { @@ -36417,50 +37497,50 @@ func (x *EndpointSubset) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys2818Slc = r.DecodeBytes(yys2818Slc, true, true) - yys2818 := string(yys2818Slc) + yys2901Slc = r.DecodeBytes(yys2901Slc, true, true) + yys2901 := string(yys2901Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys2818 { + switch yys2901 { case "Addresses": if r.TryDecodeAsNil() { x.Addresses = nil } else { - yyv2819 := &x.Addresses - yym2820 := z.DecBinary() - _ = yym2820 + yyv2902 := &x.Addresses + yym2903 := z.DecBinary() + _ = yym2903 if false { } else { - h.decSliceEndpointAddress((*[]EndpointAddress)(yyv2819), d) + h.decSliceEndpointAddress((*[]EndpointAddress)(yyv2902), d) } } case "NotReadyAddresses": if r.TryDecodeAsNil() { x.NotReadyAddresses = nil } else { - yyv2821 := &x.NotReadyAddresses - yym2822 := z.DecBinary() - _ = yym2822 + yyv2904 := &x.NotReadyAddresses + yym2905 := z.DecBinary() + _ = yym2905 if false { } else { - h.decSliceEndpointAddress((*[]EndpointAddress)(yyv2821), d) + h.decSliceEndpointAddress((*[]EndpointAddress)(yyv2904), d) } } case "Ports": if r.TryDecodeAsNil() { x.Ports = nil } else { - yyv2823 := &x.Ports - yym2824 := z.DecBinary() - _ = yym2824 + yyv2906 := &x.Ports + yym2907 := z.DecBinary() + _ = yym2907 if false { } else { - h.decSliceEndpointPort((*[]EndpointPort)(yyv2823), d) + h.decSliceEndpointPort((*[]EndpointPort)(yyv2906), d) } } default: - z.DecStructFieldNotFound(-1, yys2818) - } // end switch yys2818 - } // end for yyj2818 + z.DecStructFieldNotFound(-1, yys2901) + } // end switch yys2901 + } // end for yyj2901 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -36468,16 +37548,16 @@ func (x *EndpointSubset) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj2825 int - var yyb2825 bool - var yyhl2825 bool = l >= 0 - yyj2825++ - if yyhl2825 { - yyb2825 = yyj2825 > l + var yyj2908 int + var yyb2908 bool + var yyhl2908 bool = l >= 0 + yyj2908++ + if yyhl2908 { + yyb2908 = yyj2908 > l } else { - yyb2825 = r.CheckBreak() + yyb2908 = r.CheckBreak() } - if yyb2825 { + if yyb2908 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -36485,21 +37565,21 @@ func (x *EndpointSubset) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.Addresses = nil } else { - yyv2826 := &x.Addresses - yym2827 := z.DecBinary() - _ = yym2827 + yyv2909 := &x.Addresses + yym2910 := z.DecBinary() + _ = yym2910 if false { } else { - h.decSliceEndpointAddress((*[]EndpointAddress)(yyv2826), d) + h.decSliceEndpointAddress((*[]EndpointAddress)(yyv2909), d) } } - yyj2825++ - if yyhl2825 { - yyb2825 = yyj2825 > l + yyj2908++ + if yyhl2908 { + yyb2908 = yyj2908 > l } else { - yyb2825 = r.CheckBreak() + yyb2908 = r.CheckBreak() } - if yyb2825 { + if yyb2908 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -36507,21 +37587,21 @@ func (x *EndpointSubset) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.NotReadyAddresses = nil } else { - yyv2828 := &x.NotReadyAddresses - yym2829 := z.DecBinary() - _ = yym2829 + yyv2911 := &x.NotReadyAddresses + yym2912 := z.DecBinary() + _ = yym2912 if false { } else { - h.decSliceEndpointAddress((*[]EndpointAddress)(yyv2828), d) + h.decSliceEndpointAddress((*[]EndpointAddress)(yyv2911), d) } } - yyj2825++ - if yyhl2825 { - yyb2825 = yyj2825 > l + yyj2908++ + if yyhl2908 { + yyb2908 = yyj2908 > l } else { - yyb2825 = r.CheckBreak() + yyb2908 = r.CheckBreak() } - if yyb2825 { + if yyb2908 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -36529,26 +37609,26 @@ func (x *EndpointSubset) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.Ports = nil } else { - yyv2830 := &x.Ports - yym2831 := z.DecBinary() - _ = yym2831 + yyv2913 := &x.Ports + yym2914 := z.DecBinary() + _ = yym2914 if false { } else { - h.decSliceEndpointPort((*[]EndpointPort)(yyv2830), d) + h.decSliceEndpointPort((*[]EndpointPort)(yyv2913), d) } } for { - yyj2825++ - if yyhl2825 { - yyb2825 = yyj2825 > l + yyj2908++ + if yyhl2908 { + yyb2908 = yyj2908 > l } else { - yyb2825 = r.CheckBreak() + yyb2908 = r.CheckBreak() } - if yyb2825 { + if yyb2908 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj2825-1, "") + z.DecStructFieldNotFound(yyj2908-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -36560,35 +37640,35 @@ func (x *EndpointAddress) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym2832 := z.EncBinary() - _ = yym2832 + yym2915 := z.EncBinary() + _ = yym2915 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - 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 { + yysep2916 := !z.EncBinary() + yy2arr2916 := z.EncBasicHandle().StructToArray + var yyq2916 [4]bool + _, _, _ = yysep2916, yyq2916, yy2arr2916 + const yyr2916 bool = false + yyq2916[1] = x.Hostname != "" + yyq2916[2] = x.NodeName != nil + var yynn2916 int + if yyr2916 || yy2arr2916 { r.EncodeArrayStart(4) } else { - yynn2833 = 2 - for _, b := range yyq2833 { + yynn2916 = 2 + for _, b := range yyq2916 { if b { - yynn2833++ + yynn2916++ } } - r.EncodeMapStart(yynn2833) - yynn2833 = 0 + r.EncodeMapStart(yynn2916) + yynn2916 = 0 } - if yyr2833 || yy2arr2833 { + if yyr2916 || yy2arr2916 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym2835 := z.EncBinary() - _ = yym2835 + yym2918 := z.EncBinary() + _ = yym2918 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.IP)) @@ -36597,18 +37677,18 @@ func (x *EndpointAddress) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("IP")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym2836 := z.EncBinary() - _ = yym2836 + yym2919 := z.EncBinary() + _ = yym2919 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.IP)) } } - if yyr2833 || yy2arr2833 { + if yyr2916 || yy2arr2916 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2833[1] { - yym2838 := z.EncBinary() - _ = yym2838 + if yyq2916[1] { + yym2921 := z.EncBinary() + _ = yym2921 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Hostname)) @@ -36617,54 +37697,54 @@ func (x *EndpointAddress) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2833[1] { + if yyq2916[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("hostname")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym2839 := z.EncBinary() - _ = yym2839 + yym2922 := z.EncBinary() + _ = yym2922 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Hostname)) } } } - if yyr2833 || yy2arr2833 { + if yyr2916 || yy2arr2916 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2833[2] { + if yyq2916[2] { if x.NodeName == nil { r.EncodeNil() } else { - yy2841 := *x.NodeName - yym2842 := z.EncBinary() - _ = yym2842 + yy2924 := *x.NodeName + yym2925 := z.EncBinary() + _ = yym2925 if false { } else { - r.EncodeString(codecSelferC_UTF81234, string(yy2841)) + r.EncodeString(codecSelferC_UTF81234, string(yy2924)) } } } else { r.EncodeNil() } } else { - if yyq2833[2] { + if yyq2916[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 + yy2926 := *x.NodeName + yym2927 := z.EncBinary() + _ = yym2927 if false { } else { - r.EncodeString(codecSelferC_UTF81234, string(yy2843)) + r.EncodeString(codecSelferC_UTF81234, string(yy2926)) } } } } - if yyr2833 || yy2arr2833 { + if yyr2916 || yy2arr2916 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.TargetRef == nil { r.EncodeNil() @@ -36681,7 +37761,7 @@ func (x *EndpointAddress) CodecEncodeSelf(e *codec1978.Encoder) { x.TargetRef.CodecEncodeSelf(e) } } - if yyr2833 || yy2arr2833 { + if yyr2916 || yy2arr2916 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -36694,25 +37774,25 @@ func (x *EndpointAddress) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym2846 := z.DecBinary() - _ = yym2846 + yym2929 := z.DecBinary() + _ = yym2929 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2847 := r.ContainerType() - if yyct2847 == codecSelferValueTypeMap1234 { - yyl2847 := r.ReadMapStart() - if yyl2847 == 0 { + yyct2930 := r.ContainerType() + if yyct2930 == codecSelferValueTypeMap1234 { + yyl2930 := r.ReadMapStart() + if yyl2930 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2847, d) + x.codecDecodeSelfFromMap(yyl2930, d) } - } else if yyct2847 == codecSelferValueTypeArray1234 { - yyl2847 := r.ReadArrayStart() - if yyl2847 == 0 { + } else if yyct2930 == codecSelferValueTypeArray1234 { + yyl2930 := r.ReadArrayStart() + if yyl2930 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2847, d) + x.codecDecodeSelfFromArray(yyl2930, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -36724,12 +37804,12 @@ func (x *EndpointAddress) 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 { + var yys2931Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys2931Slc + var yyhl2931 bool = l >= 0 + for yyj2931 := 0; ; yyj2931++ { + if yyhl2931 { + if yyj2931 >= l { break } } else { @@ -36738,10 +37818,10 @@ func (x *EndpointAddress) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys2848Slc = r.DecodeBytes(yys2848Slc, true, true) - yys2848 := string(yys2848Slc) + yys2931Slc = r.DecodeBytes(yys2931Slc, true, true) + yys2931 := string(yys2931Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys2848 { + switch yys2931 { case "IP": if r.TryDecodeAsNil() { x.IP = "" @@ -36763,8 +37843,8 @@ func (x *EndpointAddress) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { if x.NodeName == nil { x.NodeName = new(string) } - yym2852 := z.DecBinary() - _ = yym2852 + yym2935 := z.DecBinary() + _ = yym2935 if false { } else { *((*string)(x.NodeName)) = r.DecodeString() @@ -36782,9 +37862,9 @@ func (x *EndpointAddress) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { x.TargetRef.CodecDecodeSelf(d) } default: - z.DecStructFieldNotFound(-1, yys2848) - } // end switch yys2848 - } // end for yyj2848 + z.DecStructFieldNotFound(-1, yys2931) + } // end switch yys2931 + } // end for yyj2931 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -36792,16 +37872,16 @@ func (x *EndpointAddress) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj2854 int - var yyb2854 bool - var yyhl2854 bool = l >= 0 - yyj2854++ - if yyhl2854 { - yyb2854 = yyj2854 > l + var yyj2937 int + var yyb2937 bool + var yyhl2937 bool = l >= 0 + yyj2937++ + if yyhl2937 { + yyb2937 = yyj2937 > l } else { - yyb2854 = r.CheckBreak() + yyb2937 = r.CheckBreak() } - if yyb2854 { + if yyb2937 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -36811,13 +37891,13 @@ func (x *EndpointAddress) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) } else { x.IP = string(r.DecodeString()) } - yyj2854++ - if yyhl2854 { - yyb2854 = yyj2854 > l + yyj2937++ + if yyhl2937 { + yyb2937 = yyj2937 > l } else { - yyb2854 = r.CheckBreak() + yyb2937 = r.CheckBreak() } - if yyb2854 { + if yyb2937 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -36827,13 +37907,13 @@ func (x *EndpointAddress) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) } else { x.Hostname = string(r.DecodeString()) } - yyj2854++ - if yyhl2854 { - yyb2854 = yyj2854 > l + yyj2937++ + if yyhl2937 { + yyb2937 = yyj2937 > l } else { - yyb2854 = r.CheckBreak() + yyb2937 = r.CheckBreak() } - if yyb2854 { + if yyb2937 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -36846,20 +37926,20 @@ func (x *EndpointAddress) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) if x.NodeName == nil { x.NodeName = new(string) } - yym2858 := z.DecBinary() - _ = yym2858 + yym2941 := z.DecBinary() + _ = yym2941 if false { } else { *((*string)(x.NodeName)) = r.DecodeString() } } - yyj2854++ - if yyhl2854 { - yyb2854 = yyj2854 > l + yyj2937++ + if yyhl2937 { + yyb2937 = yyj2937 > l } else { - yyb2854 = r.CheckBreak() + yyb2937 = r.CheckBreak() } - if yyb2854 { + if yyb2937 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -36875,17 +37955,17 @@ func (x *EndpointAddress) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) x.TargetRef.CodecDecodeSelf(d) } for { - yyj2854++ - if yyhl2854 { - yyb2854 = yyj2854 > l + yyj2937++ + if yyhl2937 { + yyb2937 = yyj2937 > l } else { - yyb2854 = r.CheckBreak() + yyb2937 = r.CheckBreak() } - if yyb2854 { + if yyb2937 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj2854-1, "") + z.DecStructFieldNotFound(yyj2937-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -36897,33 +37977,33 @@ func (x *EndpointPort) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym2860 := z.EncBinary() - _ = yym2860 + yym2943 := z.EncBinary() + _ = yym2943 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep2861 := !z.EncBinary() - yy2arr2861 := z.EncBasicHandle().StructToArray - var yyq2861 [3]bool - _, _, _ = yysep2861, yyq2861, yy2arr2861 - const yyr2861 bool = false - var yynn2861 int - if yyr2861 || yy2arr2861 { + yysep2944 := !z.EncBinary() + yy2arr2944 := z.EncBasicHandle().StructToArray + var yyq2944 [3]bool + _, _, _ = yysep2944, yyq2944, yy2arr2944 + const yyr2944 bool = false + var yynn2944 int + if yyr2944 || yy2arr2944 { r.EncodeArrayStart(3) } else { - yynn2861 = 3 - for _, b := range yyq2861 { + yynn2944 = 3 + for _, b := range yyq2944 { if b { - yynn2861++ + yynn2944++ } } - r.EncodeMapStart(yynn2861) - yynn2861 = 0 + r.EncodeMapStart(yynn2944) + yynn2944 = 0 } - if yyr2861 || yy2arr2861 { + if yyr2944 || yy2arr2944 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym2863 := z.EncBinary() - _ = yym2863 + yym2946 := z.EncBinary() + _ = yym2946 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Name)) @@ -36932,17 +38012,17 @@ func (x *EndpointPort) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("Name")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym2864 := z.EncBinary() - _ = yym2864 + yym2947 := z.EncBinary() + _ = yym2947 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Name)) } } - if yyr2861 || yy2arr2861 { + if yyr2944 || yy2arr2944 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym2866 := z.EncBinary() - _ = yym2866 + yym2949 := z.EncBinary() + _ = yym2949 if false { } else { r.EncodeInt(int64(x.Port)) @@ -36951,14 +38031,14 @@ func (x *EndpointPort) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("Port")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym2867 := z.EncBinary() - _ = yym2867 + yym2950 := z.EncBinary() + _ = yym2950 if false { } else { r.EncodeInt(int64(x.Port)) } } - if yyr2861 || yy2arr2861 { + if yyr2944 || yy2arr2944 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) x.Protocol.CodecEncodeSelf(e) } else { @@ -36967,7 +38047,7 @@ func (x *EndpointPort) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapValue1234) x.Protocol.CodecEncodeSelf(e) } - if yyr2861 || yy2arr2861 { + if yyr2944 || yy2arr2944 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -36980,25 +38060,25 @@ func (x *EndpointPort) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym2869 := z.DecBinary() - _ = yym2869 + yym2952 := z.DecBinary() + _ = yym2952 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2870 := r.ContainerType() - if yyct2870 == codecSelferValueTypeMap1234 { - yyl2870 := r.ReadMapStart() - if yyl2870 == 0 { + yyct2953 := r.ContainerType() + if yyct2953 == codecSelferValueTypeMap1234 { + yyl2953 := r.ReadMapStart() + if yyl2953 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2870, d) + x.codecDecodeSelfFromMap(yyl2953, d) } - } else if yyct2870 == codecSelferValueTypeArray1234 { - yyl2870 := r.ReadArrayStart() - if yyl2870 == 0 { + } else if yyct2953 == codecSelferValueTypeArray1234 { + yyl2953 := r.ReadArrayStart() + if yyl2953 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2870, d) + x.codecDecodeSelfFromArray(yyl2953, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -37010,12 +38090,12 @@ func (x *EndpointPort) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys2871Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys2871Slc - var yyhl2871 bool = l >= 0 - for yyj2871 := 0; ; yyj2871++ { - if yyhl2871 { - if yyj2871 >= l { + var yys2954Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys2954Slc + var yyhl2954 bool = l >= 0 + for yyj2954 := 0; ; yyj2954++ { + if yyhl2954 { + if yyj2954 >= l { break } } else { @@ -37024,10 +38104,10 @@ func (x *EndpointPort) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys2871Slc = r.DecodeBytes(yys2871Slc, true, true) - yys2871 := string(yys2871Slc) + yys2954Slc = r.DecodeBytes(yys2954Slc, true, true) + yys2954 := string(yys2954Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys2871 { + switch yys2954 { case "Name": if r.TryDecodeAsNil() { x.Name = "" @@ -37047,9 +38127,9 @@ func (x *EndpointPort) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { x.Protocol = Protocol(r.DecodeString()) } default: - z.DecStructFieldNotFound(-1, yys2871) - } // end switch yys2871 - } // end for yyj2871 + z.DecStructFieldNotFound(-1, yys2954) + } // end switch yys2954 + } // end for yyj2954 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -37057,16 +38137,16 @@ func (x *EndpointPort) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj2875 int - var yyb2875 bool - var yyhl2875 bool = l >= 0 - yyj2875++ - if yyhl2875 { - yyb2875 = yyj2875 > l + var yyj2958 int + var yyb2958 bool + var yyhl2958 bool = l >= 0 + yyj2958++ + if yyhl2958 { + yyb2958 = yyj2958 > l } else { - yyb2875 = r.CheckBreak() + yyb2958 = r.CheckBreak() } - if yyb2875 { + if yyb2958 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -37076,13 +38156,13 @@ func (x *EndpointPort) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.Name = string(r.DecodeString()) } - yyj2875++ - if yyhl2875 { - yyb2875 = yyj2875 > l + yyj2958++ + if yyhl2958 { + yyb2958 = yyj2958 > l } else { - yyb2875 = r.CheckBreak() + yyb2958 = r.CheckBreak() } - if yyb2875 { + if yyb2958 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -37092,13 +38172,13 @@ func (x *EndpointPort) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.Port = int32(r.DecodeInt(32)) } - yyj2875++ - if yyhl2875 { - yyb2875 = yyj2875 > l + yyj2958++ + if yyhl2958 { + yyb2958 = yyj2958 > l } else { - yyb2875 = r.CheckBreak() + yyb2958 = r.CheckBreak() } - if yyb2875 { + if yyb2958 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -37109,17 +38189,17 @@ func (x *EndpointPort) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { x.Protocol = Protocol(r.DecodeString()) } for { - yyj2875++ - if yyhl2875 { - yyb2875 = yyj2875 > l + yyj2958++ + if yyhl2958 { + yyb2958 = yyj2958 > l } else { - yyb2875 = r.CheckBreak() + yyb2958 = r.CheckBreak() } - if yyb2875 { + if yyb2958 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj2875-1, "") + z.DecStructFieldNotFound(yyj2958-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -37131,37 +38211,37 @@ func (x *EndpointsList) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym2879 := z.EncBinary() - _ = yym2879 + yym2962 := z.EncBinary() + _ = yym2962 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - 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 { + yysep2963 := !z.EncBinary() + yy2arr2963 := z.EncBasicHandle().StructToArray + var yyq2963 [4]bool + _, _, _ = yysep2963, yyq2963, yy2arr2963 + const yyr2963 bool = false + yyq2963[0] = x.Kind != "" + yyq2963[1] = x.APIVersion != "" + yyq2963[2] = true + var yynn2963 int + if yyr2963 || yy2arr2963 { r.EncodeArrayStart(4) } else { - yynn2880 = 1 - for _, b := range yyq2880 { + yynn2963 = 1 + for _, b := range yyq2963 { if b { - yynn2880++ + yynn2963++ } } - r.EncodeMapStart(yynn2880) - yynn2880 = 0 + r.EncodeMapStart(yynn2963) + yynn2963 = 0 } - if yyr2880 || yy2arr2880 { + if yyr2963 || yy2arr2963 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2880[0] { - yym2882 := z.EncBinary() - _ = yym2882 + if yyq2963[0] { + yym2965 := z.EncBinary() + _ = yym2965 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) @@ -37170,23 +38250,23 @@ func (x *EndpointsList) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2880[0] { + if yyq2963[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym2883 := z.EncBinary() - _ = yym2883 + yym2966 := z.EncBinary() + _ = yym2966 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } - if yyr2880 || yy2arr2880 { + if yyr2963 || yy2arr2963 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2880[1] { - yym2885 := z.EncBinary() - _ = yym2885 + if yyq2963[1] { + yym2968 := z.EncBinary() + _ = yym2968 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) @@ -37195,54 +38275,54 @@ func (x *EndpointsList) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2880[1] { + if yyq2963[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym2886 := z.EncBinary() - _ = yym2886 + yym2969 := z.EncBinary() + _ = yym2969 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } - if yyr2880 || yy2arr2880 { + if yyr2963 || yy2arr2963 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2880[2] { - yy2888 := &x.ListMeta - yym2889 := z.EncBinary() - _ = yym2889 + if yyq2963[2] { + yy2971 := &x.ListMeta + yym2972 := z.EncBinary() + _ = yym2972 if false { - } else if z.HasExtensions() && z.EncExt(yy2888) { + } else if z.HasExtensions() && z.EncExt(yy2971) { } else { - z.EncFallback(yy2888) + z.EncFallback(yy2971) } } else { r.EncodeNil() } } else { - if yyq2880[2] { + if yyq2963[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy2890 := &x.ListMeta - yym2891 := z.EncBinary() - _ = yym2891 + yy2973 := &x.ListMeta + yym2974 := z.EncBinary() + _ = yym2974 if false { - } else if z.HasExtensions() && z.EncExt(yy2890) { + } else if z.HasExtensions() && z.EncExt(yy2973) { } else { - z.EncFallback(yy2890) + z.EncFallback(yy2973) } } } - if yyr2880 || yy2arr2880 { + if yyr2963 || yy2arr2963 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.Items == nil { r.EncodeNil() } else { - yym2893 := z.EncBinary() - _ = yym2893 + yym2976 := z.EncBinary() + _ = yym2976 if false { } else { h.encSliceEndpoints(([]Endpoints)(x.Items), e) @@ -37255,15 +38335,15 @@ func (x *EndpointsList) CodecEncodeSelf(e *codec1978.Encoder) { if x.Items == nil { r.EncodeNil() } else { - yym2894 := z.EncBinary() - _ = yym2894 + yym2977 := z.EncBinary() + _ = yym2977 if false { } else { h.encSliceEndpoints(([]Endpoints)(x.Items), e) } } } - if yyr2880 || yy2arr2880 { + if yyr2963 || yy2arr2963 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -37276,25 +38356,25 @@ func (x *EndpointsList) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym2895 := z.DecBinary() - _ = yym2895 + yym2978 := z.DecBinary() + _ = yym2978 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2896 := r.ContainerType() - if yyct2896 == codecSelferValueTypeMap1234 { - yyl2896 := r.ReadMapStart() - if yyl2896 == 0 { + yyct2979 := r.ContainerType() + if yyct2979 == codecSelferValueTypeMap1234 { + yyl2979 := r.ReadMapStart() + if yyl2979 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2896, d) + x.codecDecodeSelfFromMap(yyl2979, d) } - } else if yyct2896 == codecSelferValueTypeArray1234 { - yyl2896 := r.ReadArrayStart() - if yyl2896 == 0 { + } else if yyct2979 == codecSelferValueTypeArray1234 { + yyl2979 := r.ReadArrayStart() + if yyl2979 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2896, d) + x.codecDecodeSelfFromArray(yyl2979, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -37306,12 +38386,12 @@ func (x *EndpointsList) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys2897Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys2897Slc - var yyhl2897 bool = l >= 0 - for yyj2897 := 0; ; yyj2897++ { - if yyhl2897 { - if yyj2897 >= l { + var yys2980Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys2980Slc + var yyhl2980 bool = l >= 0 + for yyj2980 := 0; ; yyj2980++ { + if yyhl2980 { + if yyj2980 >= l { break } } else { @@ -37320,10 +38400,10 @@ func (x *EndpointsList) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys2897Slc = r.DecodeBytes(yys2897Slc, true, true) - yys2897 := string(yys2897Slc) + yys2980Slc = r.DecodeBytes(yys2980Slc, true, true) + yys2980 := string(yys2980Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys2897 { + switch yys2980 { case "kind": if r.TryDecodeAsNil() { x.Kind = "" @@ -37340,31 +38420,31 @@ func (x *EndpointsList) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.ListMeta = pkg2_unversioned.ListMeta{} } else { - yyv2900 := &x.ListMeta - yym2901 := z.DecBinary() - _ = yym2901 + yyv2983 := &x.ListMeta + yym2984 := z.DecBinary() + _ = yym2984 if false { - } else if z.HasExtensions() && z.DecExt(yyv2900) { + } else if z.HasExtensions() && z.DecExt(yyv2983) { } else { - z.DecFallback(yyv2900, false) + z.DecFallback(yyv2983, false) } } case "items": if r.TryDecodeAsNil() { x.Items = nil } else { - yyv2902 := &x.Items - yym2903 := z.DecBinary() - _ = yym2903 + yyv2985 := &x.Items + yym2986 := z.DecBinary() + _ = yym2986 if false { } else { - h.decSliceEndpoints((*[]Endpoints)(yyv2902), d) + h.decSliceEndpoints((*[]Endpoints)(yyv2985), d) } } default: - z.DecStructFieldNotFound(-1, yys2897) - } // end switch yys2897 - } // end for yyj2897 + z.DecStructFieldNotFound(-1, yys2980) + } // end switch yys2980 + } // end for yyj2980 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -37372,16 +38452,16 @@ func (x *EndpointsList) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj2904 int - var yyb2904 bool - var yyhl2904 bool = l >= 0 - yyj2904++ - if yyhl2904 { - yyb2904 = yyj2904 > l + var yyj2987 int + var yyb2987 bool + var yyhl2987 bool = l >= 0 + yyj2987++ + if yyhl2987 { + yyb2987 = yyj2987 > l } else { - yyb2904 = r.CheckBreak() + yyb2987 = r.CheckBreak() } - if yyb2904 { + if yyb2987 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -37391,13 +38471,13 @@ func (x *EndpointsList) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.Kind = string(r.DecodeString()) } - yyj2904++ - if yyhl2904 { - yyb2904 = yyj2904 > l + yyj2987++ + if yyhl2987 { + yyb2987 = yyj2987 > l } else { - yyb2904 = r.CheckBreak() + yyb2987 = r.CheckBreak() } - if yyb2904 { + if yyb2987 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -37407,13 +38487,13 @@ func (x *EndpointsList) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.APIVersion = string(r.DecodeString()) } - yyj2904++ - if yyhl2904 { - yyb2904 = yyj2904 > l + yyj2987++ + if yyhl2987 { + yyb2987 = yyj2987 > l } else { - yyb2904 = r.CheckBreak() + yyb2987 = r.CheckBreak() } - if yyb2904 { + if yyb2987 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -37421,22 +38501,22 @@ func (x *EndpointsList) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.ListMeta = pkg2_unversioned.ListMeta{} } else { - yyv2907 := &x.ListMeta - yym2908 := z.DecBinary() - _ = yym2908 + yyv2990 := &x.ListMeta + yym2991 := z.DecBinary() + _ = yym2991 if false { - } else if z.HasExtensions() && z.DecExt(yyv2907) { + } else if z.HasExtensions() && z.DecExt(yyv2990) { } else { - z.DecFallback(yyv2907, false) + z.DecFallback(yyv2990, false) } } - yyj2904++ - if yyhl2904 { - yyb2904 = yyj2904 > l + yyj2987++ + if yyhl2987 { + yyb2987 = yyj2987 > l } else { - yyb2904 = r.CheckBreak() + yyb2987 = r.CheckBreak() } - if yyb2904 { + if yyb2987 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -37444,26 +38524,26 @@ func (x *EndpointsList) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.Items = nil } else { - yyv2909 := &x.Items - yym2910 := z.DecBinary() - _ = yym2910 + yyv2992 := &x.Items + yym2993 := z.DecBinary() + _ = yym2993 if false { } else { - h.decSliceEndpoints((*[]Endpoints)(yyv2909), d) + h.decSliceEndpoints((*[]Endpoints)(yyv2992), d) } } for { - yyj2904++ - if yyhl2904 { - yyb2904 = yyj2904 > l + yyj2987++ + if yyhl2987 { + yyb2987 = yyj2987 > l } else { - yyb2904 = r.CheckBreak() + yyb2987 = r.CheckBreak() } - if yyb2904 { + if yyb2987 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj2904-1, "") + z.DecStructFieldNotFound(yyj2987-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -37475,38 +38555,38 @@ func (x *NodeSpec) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym2911 := z.EncBinary() - _ = yym2911 + yym2994 := z.EncBinary() + _ = yym2994 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - 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 { + yysep2995 := !z.EncBinary() + yy2arr2995 := z.EncBasicHandle().StructToArray + var yyq2995 [4]bool + _, _, _ = yysep2995, yyq2995, yy2arr2995 + const yyr2995 bool = false + yyq2995[0] = x.PodCIDR != "" + yyq2995[1] = x.ExternalID != "" + yyq2995[2] = x.ProviderID != "" + yyq2995[3] = x.Unschedulable != false + var yynn2995 int + if yyr2995 || yy2arr2995 { r.EncodeArrayStart(4) } else { - yynn2912 = 0 - for _, b := range yyq2912 { + yynn2995 = 0 + for _, b := range yyq2995 { if b { - yynn2912++ + yynn2995++ } } - r.EncodeMapStart(yynn2912) - yynn2912 = 0 + r.EncodeMapStart(yynn2995) + yynn2995 = 0 } - if yyr2912 || yy2arr2912 { + if yyr2995 || yy2arr2995 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2912[0] { - yym2914 := z.EncBinary() - _ = yym2914 + if yyq2995[0] { + yym2997 := z.EncBinary() + _ = yym2997 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.PodCIDR)) @@ -37515,23 +38595,23 @@ func (x *NodeSpec) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2912[0] { + if yyq2995[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("podCIDR")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym2915 := z.EncBinary() - _ = yym2915 + yym2998 := z.EncBinary() + _ = yym2998 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.PodCIDR)) } } } - if yyr2912 || yy2arr2912 { + if yyr2995 || yy2arr2995 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2912[1] { - yym2917 := z.EncBinary() - _ = yym2917 + if yyq2995[1] { + yym3000 := z.EncBinary() + _ = yym3000 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.ExternalID)) @@ -37540,23 +38620,23 @@ func (x *NodeSpec) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2912[1] { + if yyq2995[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("externalID")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym2918 := z.EncBinary() - _ = yym2918 + yym3001 := z.EncBinary() + _ = yym3001 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.ExternalID)) } } } - if yyr2912 || yy2arr2912 { + if yyr2995 || yy2arr2995 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2912[2] { - yym2920 := z.EncBinary() - _ = yym2920 + if yyq2995[2] { + yym3003 := z.EncBinary() + _ = yym3003 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.ProviderID)) @@ -37565,23 +38645,23 @@ func (x *NodeSpec) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2912[2] { + if yyq2995[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("providerID")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym2921 := z.EncBinary() - _ = yym2921 + yym3004 := z.EncBinary() + _ = yym3004 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.ProviderID)) } } } - if yyr2912 || yy2arr2912 { + if yyr2995 || yy2arr2995 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2912[3] { - yym2923 := z.EncBinary() - _ = yym2923 + if yyq2995[3] { + yym3006 := z.EncBinary() + _ = yym3006 if false { } else { r.EncodeBool(bool(x.Unschedulable)) @@ -37590,19 +38670,19 @@ func (x *NodeSpec) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeBool(false) } } else { - if yyq2912[3] { + if yyq2995[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("unschedulable")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym2924 := z.EncBinary() - _ = yym2924 + yym3007 := z.EncBinary() + _ = yym3007 if false { } else { r.EncodeBool(bool(x.Unschedulable)) } } } - if yyr2912 || yy2arr2912 { + if yyr2995 || yy2arr2995 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -37615,25 +38695,25 @@ func (x *NodeSpec) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym2925 := z.DecBinary() - _ = yym2925 + yym3008 := z.DecBinary() + _ = yym3008 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2926 := r.ContainerType() - if yyct2926 == codecSelferValueTypeMap1234 { - yyl2926 := r.ReadMapStart() - if yyl2926 == 0 { + yyct3009 := r.ContainerType() + if yyct3009 == codecSelferValueTypeMap1234 { + yyl3009 := r.ReadMapStart() + if yyl3009 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2926, d) + x.codecDecodeSelfFromMap(yyl3009, d) } - } else if yyct2926 == codecSelferValueTypeArray1234 { - yyl2926 := r.ReadArrayStart() - if yyl2926 == 0 { + } else if yyct3009 == codecSelferValueTypeArray1234 { + yyl3009 := r.ReadArrayStart() + if yyl3009 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2926, d) + x.codecDecodeSelfFromArray(yyl3009, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -37645,12 +38725,12 @@ func (x *NodeSpec) 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 { + var yys3010Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys3010Slc + var yyhl3010 bool = l >= 0 + for yyj3010 := 0; ; yyj3010++ { + if yyhl3010 { + if yyj3010 >= l { break } } else { @@ -37659,10 +38739,10 @@ func (x *NodeSpec) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys2927Slc = r.DecodeBytes(yys2927Slc, true, true) - yys2927 := string(yys2927Slc) + yys3010Slc = r.DecodeBytes(yys3010Slc, true, true) + yys3010 := string(yys3010Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys2927 { + switch yys3010 { case "podCIDR": if r.TryDecodeAsNil() { x.PodCIDR = "" @@ -37688,9 +38768,9 @@ func (x *NodeSpec) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { x.Unschedulable = bool(r.DecodeBool()) } default: - z.DecStructFieldNotFound(-1, yys2927) - } // end switch yys2927 - } // end for yyj2927 + z.DecStructFieldNotFound(-1, yys3010) + } // end switch yys3010 + } // end for yyj3010 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -37698,16 +38778,16 @@ func (x *NodeSpec) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj2932 int - var yyb2932 bool - var yyhl2932 bool = l >= 0 - yyj2932++ - if yyhl2932 { - yyb2932 = yyj2932 > l + var yyj3015 int + var yyb3015 bool + var yyhl3015 bool = l >= 0 + yyj3015++ + if yyhl3015 { + yyb3015 = yyj3015 > l } else { - yyb2932 = r.CheckBreak() + yyb3015 = r.CheckBreak() } - if yyb2932 { + if yyb3015 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -37717,13 +38797,13 @@ func (x *NodeSpec) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.PodCIDR = string(r.DecodeString()) } - yyj2932++ - if yyhl2932 { - yyb2932 = yyj2932 > l + yyj3015++ + if yyhl3015 { + yyb3015 = yyj3015 > l } else { - yyb2932 = r.CheckBreak() + yyb3015 = r.CheckBreak() } - if yyb2932 { + if yyb3015 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -37733,13 +38813,13 @@ func (x *NodeSpec) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.ExternalID = string(r.DecodeString()) } - yyj2932++ - if yyhl2932 { - yyb2932 = yyj2932 > l + yyj3015++ + if yyhl3015 { + yyb3015 = yyj3015 > l } else { - yyb2932 = r.CheckBreak() + yyb3015 = r.CheckBreak() } - if yyb2932 { + if yyb3015 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -37749,13 +38829,13 @@ func (x *NodeSpec) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.ProviderID = string(r.DecodeString()) } - yyj2932++ - if yyhl2932 { - yyb2932 = yyj2932 > l + yyj3015++ + if yyhl3015 { + yyb3015 = yyj3015 > l } else { - yyb2932 = r.CheckBreak() + yyb3015 = r.CheckBreak() } - if yyb2932 { + if yyb3015 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -37766,17 +38846,17 @@ func (x *NodeSpec) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { x.Unschedulable = bool(r.DecodeBool()) } for { - yyj2932++ - if yyhl2932 { - yyb2932 = yyj2932 > l + yyj3015++ + if yyhl3015 { + yyb3015 = yyj3015 > l } else { - yyb2932 = r.CheckBreak() + yyb3015 = r.CheckBreak() } - if yyb2932 { + if yyb3015 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj2932-1, "") + z.DecStructFieldNotFound(yyj3015-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -37788,33 +38868,33 @@ func (x *DaemonEndpoint) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym2937 := z.EncBinary() - _ = yym2937 + yym3020 := z.EncBinary() + _ = yym3020 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep2938 := !z.EncBinary() - yy2arr2938 := z.EncBasicHandle().StructToArray - var yyq2938 [1]bool - _, _, _ = yysep2938, yyq2938, yy2arr2938 - const yyr2938 bool = false - var yynn2938 int - if yyr2938 || yy2arr2938 { + yysep3021 := !z.EncBinary() + yy2arr3021 := z.EncBasicHandle().StructToArray + var yyq3021 [1]bool + _, _, _ = yysep3021, yyq3021, yy2arr3021 + const yyr3021 bool = false + var yynn3021 int + if yyr3021 || yy2arr3021 { r.EncodeArrayStart(1) } else { - yynn2938 = 1 - for _, b := range yyq2938 { + yynn3021 = 1 + for _, b := range yyq3021 { if b { - yynn2938++ + yynn3021++ } } - r.EncodeMapStart(yynn2938) - yynn2938 = 0 + r.EncodeMapStart(yynn3021) + yynn3021 = 0 } - if yyr2938 || yy2arr2938 { + if yyr3021 || yy2arr3021 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym2940 := z.EncBinary() - _ = yym2940 + yym3023 := z.EncBinary() + _ = yym3023 if false { } else { r.EncodeInt(int64(x.Port)) @@ -37823,14 +38903,14 @@ func (x *DaemonEndpoint) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("Port")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym2941 := z.EncBinary() - _ = yym2941 + yym3024 := z.EncBinary() + _ = yym3024 if false { } else { r.EncodeInt(int64(x.Port)) } } - if yyr2938 || yy2arr2938 { + if yyr3021 || yy2arr3021 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -37843,25 +38923,25 @@ func (x *DaemonEndpoint) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym2942 := z.DecBinary() - _ = yym2942 + yym3025 := z.DecBinary() + _ = yym3025 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2943 := r.ContainerType() - if yyct2943 == codecSelferValueTypeMap1234 { - yyl2943 := r.ReadMapStart() - if yyl2943 == 0 { + yyct3026 := r.ContainerType() + if yyct3026 == codecSelferValueTypeMap1234 { + yyl3026 := r.ReadMapStart() + if yyl3026 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2943, d) + x.codecDecodeSelfFromMap(yyl3026, d) } - } else if yyct2943 == codecSelferValueTypeArray1234 { - yyl2943 := r.ReadArrayStart() - if yyl2943 == 0 { + } else if yyct3026 == codecSelferValueTypeArray1234 { + yyl3026 := r.ReadArrayStart() + if yyl3026 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2943, d) + x.codecDecodeSelfFromArray(yyl3026, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -37873,12 +38953,12 @@ func (x *DaemonEndpoint) 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 { + var yys3027Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys3027Slc + var yyhl3027 bool = l >= 0 + for yyj3027 := 0; ; yyj3027++ { + if yyhl3027 { + if yyj3027 >= l { break } } else { @@ -37887,10 +38967,10 @@ func (x *DaemonEndpoint) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys2944Slc = r.DecodeBytes(yys2944Slc, true, true) - yys2944 := string(yys2944Slc) + yys3027Slc = r.DecodeBytes(yys3027Slc, true, true) + yys3027 := string(yys3027Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys2944 { + switch yys3027 { case "Port": if r.TryDecodeAsNil() { x.Port = 0 @@ -37898,9 +38978,9 @@ func (x *DaemonEndpoint) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { x.Port = int32(r.DecodeInt(32)) } default: - z.DecStructFieldNotFound(-1, yys2944) - } // end switch yys2944 - } // end for yyj2944 + z.DecStructFieldNotFound(-1, yys3027) + } // end switch yys3027 + } // end for yyj3027 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -37908,16 +38988,16 @@ func (x *DaemonEndpoint) 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 + var yyj3029 int + var yyb3029 bool + var yyhl3029 bool = l >= 0 + yyj3029++ + if yyhl3029 { + yyb3029 = yyj3029 > l } else { - yyb2946 = r.CheckBreak() + yyb3029 = r.CheckBreak() } - if yyb2946 { + if yyb3029 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -37928,17 +39008,17 @@ func (x *DaemonEndpoint) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { x.Port = int32(r.DecodeInt(32)) } for { - yyj2946++ - if yyhl2946 { - yyb2946 = yyj2946 > l + yyj3029++ + if yyhl3029 { + yyb3029 = yyj3029 > l } else { - yyb2946 = r.CheckBreak() + yyb3029 = r.CheckBreak() } - if yyb2946 { + if yyb3029 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj2946-1, "") + z.DecStructFieldNotFound(yyj3029-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -37950,48 +39030,48 @@ func (x *NodeDaemonEndpoints) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym2948 := z.EncBinary() - _ = yym2948 + yym3031 := z.EncBinary() + _ = yym3031 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep2949 := !z.EncBinary() - yy2arr2949 := z.EncBasicHandle().StructToArray - var yyq2949 [1]bool - _, _, _ = yysep2949, yyq2949, yy2arr2949 - const yyr2949 bool = false - yyq2949[0] = true - var yynn2949 int - if yyr2949 || yy2arr2949 { + yysep3032 := !z.EncBinary() + yy2arr3032 := z.EncBasicHandle().StructToArray + var yyq3032 [1]bool + _, _, _ = yysep3032, yyq3032, yy2arr3032 + const yyr3032 bool = false + yyq3032[0] = true + var yynn3032 int + if yyr3032 || yy2arr3032 { r.EncodeArrayStart(1) } else { - yynn2949 = 0 - for _, b := range yyq2949 { + yynn3032 = 0 + for _, b := range yyq3032 { if b { - yynn2949++ + yynn3032++ } } - r.EncodeMapStart(yynn2949) - yynn2949 = 0 + r.EncodeMapStart(yynn3032) + yynn3032 = 0 } - if yyr2949 || yy2arr2949 { + if yyr3032 || yy2arr3032 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2949[0] { - yy2951 := &x.KubeletEndpoint - yy2951.CodecEncodeSelf(e) + if yyq3032[0] { + yy3034 := &x.KubeletEndpoint + yy3034.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { - if yyq2949[0] { + if yyq3032[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kubeletEndpoint")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy2952 := &x.KubeletEndpoint - yy2952.CodecEncodeSelf(e) + yy3035 := &x.KubeletEndpoint + yy3035.CodecEncodeSelf(e) } } - if yyr2949 || yy2arr2949 { + if yyr3032 || yy2arr3032 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -38004,25 +39084,25 @@ func (x *NodeDaemonEndpoints) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym2953 := z.DecBinary() - _ = yym2953 + yym3036 := z.DecBinary() + _ = yym3036 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2954 := r.ContainerType() - if yyct2954 == codecSelferValueTypeMap1234 { - yyl2954 := r.ReadMapStart() - if yyl2954 == 0 { + yyct3037 := r.ContainerType() + if yyct3037 == codecSelferValueTypeMap1234 { + yyl3037 := r.ReadMapStart() + if yyl3037 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2954, d) + x.codecDecodeSelfFromMap(yyl3037, d) } - } else if yyct2954 == codecSelferValueTypeArray1234 { - yyl2954 := r.ReadArrayStart() - if yyl2954 == 0 { + } else if yyct3037 == codecSelferValueTypeArray1234 { + yyl3037 := r.ReadArrayStart() + if yyl3037 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2954, d) + x.codecDecodeSelfFromArray(yyl3037, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -38034,12 +39114,12 @@ func (x *NodeDaemonEndpoints) codecDecodeSelfFromMap(l int, d *codec1978.Decoder var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys2955Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys2955Slc - var yyhl2955 bool = l >= 0 - for yyj2955 := 0; ; yyj2955++ { - if yyhl2955 { - if yyj2955 >= l { + var yys3038Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys3038Slc + var yyhl3038 bool = l >= 0 + for yyj3038 := 0; ; yyj3038++ { + if yyhl3038 { + if yyj3038 >= l { break } } else { @@ -38048,21 +39128,21 @@ func (x *NodeDaemonEndpoints) codecDecodeSelfFromMap(l int, d *codec1978.Decoder } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys2955Slc = r.DecodeBytes(yys2955Slc, true, true) - yys2955 := string(yys2955Slc) + yys3038Slc = r.DecodeBytes(yys3038Slc, true, true) + yys3038 := string(yys3038Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys2955 { + switch yys3038 { case "kubeletEndpoint": if r.TryDecodeAsNil() { x.KubeletEndpoint = DaemonEndpoint{} } else { - yyv2956 := &x.KubeletEndpoint - yyv2956.CodecDecodeSelf(d) + yyv3039 := &x.KubeletEndpoint + yyv3039.CodecDecodeSelf(d) } default: - z.DecStructFieldNotFound(-1, yys2955) - } // end switch yys2955 - } // end for yyj2955 + z.DecStructFieldNotFound(-1, yys3038) + } // end switch yys3038 + } // end for yyj3038 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -38070,16 +39150,16 @@ func (x *NodeDaemonEndpoints) codecDecodeSelfFromArray(l int, d *codec1978.Decod var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj2957 int - var yyb2957 bool - var yyhl2957 bool = l >= 0 - yyj2957++ - if yyhl2957 { - yyb2957 = yyj2957 > l + var yyj3040 int + var yyb3040 bool + var yyhl3040 bool = l >= 0 + yyj3040++ + if yyhl3040 { + yyb3040 = yyj3040 > l } else { - yyb2957 = r.CheckBreak() + yyb3040 = r.CheckBreak() } - if yyb2957 { + if yyb3040 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -38087,21 +39167,21 @@ func (x *NodeDaemonEndpoints) codecDecodeSelfFromArray(l int, d *codec1978.Decod if r.TryDecodeAsNil() { x.KubeletEndpoint = DaemonEndpoint{} } else { - yyv2958 := &x.KubeletEndpoint - yyv2958.CodecDecodeSelf(d) + yyv3041 := &x.KubeletEndpoint + yyv3041.CodecDecodeSelf(d) } for { - yyj2957++ - if yyhl2957 { - yyb2957 = yyj2957 > l + yyj3040++ + if yyhl3040 { + yyb3040 = yyj3040 > l } else { - yyb2957 = r.CheckBreak() + yyb3040 = r.CheckBreak() } - if yyb2957 { + if yyb3040 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj2957-1, "") + z.DecStructFieldNotFound(yyj3040-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -38113,33 +39193,33 @@ func (x *NodeSystemInfo) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym2959 := z.EncBinary() - _ = yym2959 + yym3042 := z.EncBinary() + _ = yym3042 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep2960 := !z.EncBinary() - yy2arr2960 := z.EncBasicHandle().StructToArray - var yyq2960 [10]bool - _, _, _ = yysep2960, yyq2960, yy2arr2960 - const yyr2960 bool = false - var yynn2960 int - if yyr2960 || yy2arr2960 { + yysep3043 := !z.EncBinary() + yy2arr3043 := z.EncBasicHandle().StructToArray + var yyq3043 [10]bool + _, _, _ = yysep3043, yyq3043, yy2arr3043 + const yyr3043 bool = false + var yynn3043 int + if yyr3043 || yy2arr3043 { r.EncodeArrayStart(10) } else { - yynn2960 = 10 - for _, b := range yyq2960 { + yynn3043 = 10 + for _, b := range yyq3043 { if b { - yynn2960++ + yynn3043++ } } - r.EncodeMapStart(yynn2960) - yynn2960 = 0 + r.EncodeMapStart(yynn3043) + yynn3043 = 0 } - if yyr2960 || yy2arr2960 { + if yyr3043 || yy2arr3043 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym2962 := z.EncBinary() - _ = yym2962 + yym3045 := z.EncBinary() + _ = yym3045 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.MachineID)) @@ -38148,17 +39228,17 @@ func (x *NodeSystemInfo) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("machineID")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym2963 := z.EncBinary() - _ = yym2963 + yym3046 := z.EncBinary() + _ = yym3046 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.MachineID)) } } - if yyr2960 || yy2arr2960 { + if yyr3043 || yy2arr3043 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym2965 := z.EncBinary() - _ = yym2965 + yym3048 := z.EncBinary() + _ = yym3048 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.SystemUUID)) @@ -38167,17 +39247,17 @@ func (x *NodeSystemInfo) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("systemUUID")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym2966 := z.EncBinary() - _ = yym2966 + yym3049 := z.EncBinary() + _ = yym3049 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.SystemUUID)) } } - if yyr2960 || yy2arr2960 { + if yyr3043 || yy2arr3043 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym2968 := z.EncBinary() - _ = yym2968 + yym3051 := z.EncBinary() + _ = yym3051 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.BootID)) @@ -38186,17 +39266,17 @@ func (x *NodeSystemInfo) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("bootID")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym2969 := z.EncBinary() - _ = yym2969 + yym3052 := z.EncBinary() + _ = yym3052 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.BootID)) } } - if yyr2960 || yy2arr2960 { + if yyr3043 || yy2arr3043 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym2971 := z.EncBinary() - _ = yym2971 + yym3054 := z.EncBinary() + _ = yym3054 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.KernelVersion)) @@ -38205,17 +39285,17 @@ func (x *NodeSystemInfo) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kernelVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym2972 := z.EncBinary() - _ = yym2972 + yym3055 := z.EncBinary() + _ = yym3055 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.KernelVersion)) } } - if yyr2960 || yy2arr2960 { + if yyr3043 || yy2arr3043 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym2974 := z.EncBinary() - _ = yym2974 + yym3057 := z.EncBinary() + _ = yym3057 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.OSImage)) @@ -38224,17 +39304,17 @@ func (x *NodeSystemInfo) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("osImage")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym2975 := z.EncBinary() - _ = yym2975 + yym3058 := z.EncBinary() + _ = yym3058 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.OSImage)) } } - if yyr2960 || yy2arr2960 { + if yyr3043 || yy2arr3043 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym2977 := z.EncBinary() - _ = yym2977 + yym3060 := z.EncBinary() + _ = yym3060 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.ContainerRuntimeVersion)) @@ -38243,17 +39323,17 @@ func (x *NodeSystemInfo) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("containerRuntimeVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym2978 := z.EncBinary() - _ = yym2978 + yym3061 := z.EncBinary() + _ = yym3061 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.ContainerRuntimeVersion)) } } - if yyr2960 || yy2arr2960 { + if yyr3043 || yy2arr3043 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym2980 := z.EncBinary() - _ = yym2980 + yym3063 := z.EncBinary() + _ = yym3063 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.KubeletVersion)) @@ -38262,17 +39342,17 @@ func (x *NodeSystemInfo) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kubeletVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym2981 := z.EncBinary() - _ = yym2981 + yym3064 := z.EncBinary() + _ = yym3064 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.KubeletVersion)) } } - if yyr2960 || yy2arr2960 { + if yyr3043 || yy2arr3043 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym2983 := z.EncBinary() - _ = yym2983 + yym3066 := z.EncBinary() + _ = yym3066 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.KubeProxyVersion)) @@ -38281,17 +39361,17 @@ func (x *NodeSystemInfo) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kubeProxyVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym2984 := z.EncBinary() - _ = yym2984 + yym3067 := z.EncBinary() + _ = yym3067 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.KubeProxyVersion)) } } - if yyr2960 || yy2arr2960 { + if yyr3043 || yy2arr3043 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym2986 := z.EncBinary() - _ = yym2986 + yym3069 := z.EncBinary() + _ = yym3069 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.OperatingSystem)) @@ -38300,17 +39380,17 @@ func (x *NodeSystemInfo) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("operatingSystem")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym2987 := z.EncBinary() - _ = yym2987 + yym3070 := z.EncBinary() + _ = yym3070 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.OperatingSystem)) } } - if yyr2960 || yy2arr2960 { + if yyr3043 || yy2arr3043 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym2989 := z.EncBinary() - _ = yym2989 + yym3072 := z.EncBinary() + _ = yym3072 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Architecture)) @@ -38319,14 +39399,14 @@ func (x *NodeSystemInfo) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("architecture")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym2990 := z.EncBinary() - _ = yym2990 + yym3073 := z.EncBinary() + _ = yym3073 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Architecture)) } } - if yyr2960 || yy2arr2960 { + if yyr3043 || yy2arr3043 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -38339,25 +39419,25 @@ func (x *NodeSystemInfo) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym2991 := z.DecBinary() - _ = yym2991 + yym3074 := z.DecBinary() + _ = yym3074 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2992 := r.ContainerType() - if yyct2992 == codecSelferValueTypeMap1234 { - yyl2992 := r.ReadMapStart() - if yyl2992 == 0 { + yyct3075 := r.ContainerType() + if yyct3075 == codecSelferValueTypeMap1234 { + yyl3075 := r.ReadMapStart() + if yyl3075 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2992, d) + x.codecDecodeSelfFromMap(yyl3075, d) } - } else if yyct2992 == codecSelferValueTypeArray1234 { - yyl2992 := r.ReadArrayStart() - if yyl2992 == 0 { + } else if yyct3075 == codecSelferValueTypeArray1234 { + yyl3075 := r.ReadArrayStart() + if yyl3075 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2992, d) + x.codecDecodeSelfFromArray(yyl3075, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -38369,12 +39449,12 @@ func (x *NodeSystemInfo) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys2993Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys2993Slc - var yyhl2993 bool = l >= 0 - for yyj2993 := 0; ; yyj2993++ { - if yyhl2993 { - if yyj2993 >= l { + var yys3076Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys3076Slc + var yyhl3076 bool = l >= 0 + for yyj3076 := 0; ; yyj3076++ { + if yyhl3076 { + if yyj3076 >= l { break } } else { @@ -38383,10 +39463,10 @@ func (x *NodeSystemInfo) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys2993Slc = r.DecodeBytes(yys2993Slc, true, true) - yys2993 := string(yys2993Slc) + yys3076Slc = r.DecodeBytes(yys3076Slc, true, true) + yys3076 := string(yys3076Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys2993 { + switch yys3076 { case "machineID": if r.TryDecodeAsNil() { x.MachineID = "" @@ -38448,9 +39528,9 @@ func (x *NodeSystemInfo) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { x.Architecture = string(r.DecodeString()) } default: - z.DecStructFieldNotFound(-1, yys2993) - } // end switch yys2993 - } // end for yyj2993 + z.DecStructFieldNotFound(-1, yys3076) + } // end switch yys3076 + } // end for yyj3076 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -38458,16 +39538,16 @@ func (x *NodeSystemInfo) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj3004 int - var yyb3004 bool - var yyhl3004 bool = l >= 0 - yyj3004++ - if yyhl3004 { - yyb3004 = yyj3004 > l + var yyj3087 int + var yyb3087 bool + var yyhl3087 bool = l >= 0 + yyj3087++ + if yyhl3087 { + yyb3087 = yyj3087 > l } else { - yyb3004 = r.CheckBreak() + yyb3087 = r.CheckBreak() } - if yyb3004 { + if yyb3087 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -38477,13 +39557,13 @@ func (x *NodeSystemInfo) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.MachineID = string(r.DecodeString()) } - yyj3004++ - if yyhl3004 { - yyb3004 = yyj3004 > l + yyj3087++ + if yyhl3087 { + yyb3087 = yyj3087 > l } else { - yyb3004 = r.CheckBreak() + yyb3087 = r.CheckBreak() } - if yyb3004 { + if yyb3087 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -38493,13 +39573,13 @@ func (x *NodeSystemInfo) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.SystemUUID = string(r.DecodeString()) } - yyj3004++ - if yyhl3004 { - yyb3004 = yyj3004 > l + yyj3087++ + if yyhl3087 { + yyb3087 = yyj3087 > l } else { - yyb3004 = r.CheckBreak() + yyb3087 = r.CheckBreak() } - if yyb3004 { + if yyb3087 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -38509,13 +39589,13 @@ func (x *NodeSystemInfo) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.BootID = string(r.DecodeString()) } - yyj3004++ - if yyhl3004 { - yyb3004 = yyj3004 > l + yyj3087++ + if yyhl3087 { + yyb3087 = yyj3087 > l } else { - yyb3004 = r.CheckBreak() + yyb3087 = r.CheckBreak() } - if yyb3004 { + if yyb3087 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -38525,13 +39605,13 @@ func (x *NodeSystemInfo) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.KernelVersion = string(r.DecodeString()) } - yyj3004++ - if yyhl3004 { - yyb3004 = yyj3004 > l + yyj3087++ + if yyhl3087 { + yyb3087 = yyj3087 > l } else { - yyb3004 = r.CheckBreak() + yyb3087 = r.CheckBreak() } - if yyb3004 { + if yyb3087 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -38541,13 +39621,13 @@ func (x *NodeSystemInfo) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.OSImage = string(r.DecodeString()) } - yyj3004++ - if yyhl3004 { - yyb3004 = yyj3004 > l + yyj3087++ + if yyhl3087 { + yyb3087 = yyj3087 > l } else { - yyb3004 = r.CheckBreak() + yyb3087 = r.CheckBreak() } - if yyb3004 { + if yyb3087 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -38557,13 +39637,13 @@ func (x *NodeSystemInfo) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.ContainerRuntimeVersion = string(r.DecodeString()) } - yyj3004++ - if yyhl3004 { - yyb3004 = yyj3004 > l + yyj3087++ + if yyhl3087 { + yyb3087 = yyj3087 > l } else { - yyb3004 = r.CheckBreak() + yyb3087 = r.CheckBreak() } - if yyb3004 { + if yyb3087 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -38573,13 +39653,13 @@ func (x *NodeSystemInfo) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.KubeletVersion = string(r.DecodeString()) } - yyj3004++ - if yyhl3004 { - yyb3004 = yyj3004 > l + yyj3087++ + if yyhl3087 { + yyb3087 = yyj3087 > l } else { - yyb3004 = r.CheckBreak() + yyb3087 = r.CheckBreak() } - if yyb3004 { + if yyb3087 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -38589,13 +39669,13 @@ func (x *NodeSystemInfo) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.KubeProxyVersion = string(r.DecodeString()) } - yyj3004++ - if yyhl3004 { - yyb3004 = yyj3004 > l + yyj3087++ + if yyhl3087 { + yyb3087 = yyj3087 > l } else { - yyb3004 = r.CheckBreak() + yyb3087 = r.CheckBreak() } - if yyb3004 { + if yyb3087 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -38605,13 +39685,13 @@ func (x *NodeSystemInfo) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.OperatingSystem = string(r.DecodeString()) } - yyj3004++ - if yyhl3004 { - yyb3004 = yyj3004 > l + yyj3087++ + if yyhl3087 { + yyb3087 = yyj3087 > l } else { - yyb3004 = r.CheckBreak() + yyb3087 = r.CheckBreak() } - if yyb3004 { + if yyb3087 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -38622,17 +39702,17 @@ func (x *NodeSystemInfo) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { x.Architecture = string(r.DecodeString()) } for { - yyj3004++ - if yyhl3004 { - yyb3004 = yyj3004 > l + yyj3087++ + if yyhl3087 { + yyb3087 = yyj3087 > l } else { - yyb3004 = r.CheckBreak() + yyb3087 = r.CheckBreak() } - if yyb3004 { + if yyb3087 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj3004-1, "") + z.DecStructFieldNotFound(yyj3087-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -38644,42 +39724,42 @@ func (x *NodeStatus) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym3015 := z.EncBinary() - _ = yym3015 + yym3098 := z.EncBinary() + _ = yym3098 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - 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 { + yysep3099 := !z.EncBinary() + yy2arr3099 := z.EncBasicHandle().StructToArray + var yyq3099 [10]bool + _, _, _ = yysep3099, yyq3099, yy2arr3099 + const yyr3099 bool = false + yyq3099[0] = len(x.Capacity) != 0 + yyq3099[1] = len(x.Allocatable) != 0 + yyq3099[2] = x.Phase != "" + yyq3099[3] = len(x.Conditions) != 0 + yyq3099[4] = len(x.Addresses) != 0 + yyq3099[5] = true + yyq3099[6] = true + yyq3099[7] = len(x.Images) != 0 + yyq3099[8] = len(x.VolumesInUse) != 0 + yyq3099[9] = len(x.VolumesAttached) != 0 + var yynn3099 int + if yyr3099 || yy2arr3099 { r.EncodeArrayStart(10) } else { - yynn3016 = 0 - for _, b := range yyq3016 { + yynn3099 = 0 + for _, b := range yyq3099 { if b { - yynn3016++ + yynn3099++ } } - r.EncodeMapStart(yynn3016) - yynn3016 = 0 + r.EncodeMapStart(yynn3099) + yynn3099 = 0 } - if yyr3016 || yy2arr3016 { + if yyr3099 || yy2arr3099 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3016[0] { + if yyq3099[0] { if x.Capacity == nil { r.EncodeNil() } else { @@ -38689,7 +39769,7 @@ func (x *NodeStatus) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq3016[0] { + if yyq3099[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("capacity")) z.EncSendContainerState(codecSelfer_containerMapValue1234) @@ -38700,9 +39780,9 @@ func (x *NodeStatus) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr3016 || yy2arr3016 { + if yyr3099 || yy2arr3099 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3016[1] { + if yyq3099[1] { if x.Allocatable == nil { r.EncodeNil() } else { @@ -38712,7 +39792,7 @@ func (x *NodeStatus) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq3016[1] { + if yyq3099[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("allocatable")) z.EncSendContainerState(codecSelfer_containerMapValue1234) @@ -38723,29 +39803,29 @@ func (x *NodeStatus) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr3016 || yy2arr3016 { + if yyr3099 || yy2arr3099 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3016[2] { + if yyq3099[2] { x.Phase.CodecEncodeSelf(e) } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq3016[2] { + if yyq3099[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("phase")) z.EncSendContainerState(codecSelfer_containerMapValue1234) x.Phase.CodecEncodeSelf(e) } } - if yyr3016 || yy2arr3016 { + if yyr3099 || yy2arr3099 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3016[3] { + if yyq3099[3] { if x.Conditions == nil { r.EncodeNil() } else { - yym3021 := z.EncBinary() - _ = yym3021 + yym3104 := z.EncBinary() + _ = yym3104 if false { } else { h.encSliceNodeCondition(([]NodeCondition)(x.Conditions), e) @@ -38755,15 +39835,15 @@ func (x *NodeStatus) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq3016[3] { + if yyq3099[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("conditions")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.Conditions == nil { r.EncodeNil() } else { - yym3022 := z.EncBinary() - _ = yym3022 + yym3105 := z.EncBinary() + _ = yym3105 if false { } else { h.encSliceNodeCondition(([]NodeCondition)(x.Conditions), e) @@ -38771,14 +39851,14 @@ func (x *NodeStatus) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr3016 || yy2arr3016 { + if yyr3099 || yy2arr3099 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3016[4] { + if yyq3099[4] { if x.Addresses == nil { r.EncodeNil() } else { - yym3024 := z.EncBinary() - _ = yym3024 + yym3107 := z.EncBinary() + _ = yym3107 if false { } else { h.encSliceNodeAddress(([]NodeAddress)(x.Addresses), e) @@ -38788,15 +39868,15 @@ func (x *NodeStatus) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq3016[4] { + if yyq3099[4] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("addresses")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.Addresses == nil { r.EncodeNil() } else { - yym3025 := z.EncBinary() - _ = yym3025 + yym3108 := z.EncBinary() + _ = yym3108 if false { } else { h.encSliceNodeAddress(([]NodeAddress)(x.Addresses), e) @@ -38804,48 +39884,48 @@ func (x *NodeStatus) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr3016 || yy2arr3016 { + if yyr3099 || yy2arr3099 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3016[5] { - yy3027 := &x.DaemonEndpoints - yy3027.CodecEncodeSelf(e) + if yyq3099[5] { + yy3110 := &x.DaemonEndpoints + yy3110.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { - if yyq3016[5] { + if yyq3099[5] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("daemonEndpoints")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy3028 := &x.DaemonEndpoints - yy3028.CodecEncodeSelf(e) + yy3111 := &x.DaemonEndpoints + yy3111.CodecEncodeSelf(e) } } - if yyr3016 || yy2arr3016 { + if yyr3099 || yy2arr3099 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3016[6] { - yy3030 := &x.NodeInfo - yy3030.CodecEncodeSelf(e) + if yyq3099[6] { + yy3113 := &x.NodeInfo + yy3113.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { - if yyq3016[6] { + if yyq3099[6] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("nodeInfo")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy3031 := &x.NodeInfo - yy3031.CodecEncodeSelf(e) + yy3114 := &x.NodeInfo + yy3114.CodecEncodeSelf(e) } } - if yyr3016 || yy2arr3016 { + if yyr3099 || yy2arr3099 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3016[7] { + if yyq3099[7] { if x.Images == nil { r.EncodeNil() } else { - yym3033 := z.EncBinary() - _ = yym3033 + yym3116 := z.EncBinary() + _ = yym3116 if false { } else { h.encSliceContainerImage(([]ContainerImage)(x.Images), e) @@ -38855,15 +39935,15 @@ func (x *NodeStatus) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq3016[7] { + if yyq3099[7] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("images")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.Images == nil { r.EncodeNil() } else { - yym3034 := z.EncBinary() - _ = yym3034 + yym3117 := z.EncBinary() + _ = yym3117 if false { } else { h.encSliceContainerImage(([]ContainerImage)(x.Images), e) @@ -38871,14 +39951,14 @@ func (x *NodeStatus) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr3016 || yy2arr3016 { + if yyr3099 || yy2arr3099 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3016[8] { + if yyq3099[8] { if x.VolumesInUse == nil { r.EncodeNil() } else { - yym3036 := z.EncBinary() - _ = yym3036 + yym3119 := z.EncBinary() + _ = yym3119 if false { } else { h.encSliceUniqueVolumeName(([]UniqueVolumeName)(x.VolumesInUse), e) @@ -38888,15 +39968,15 @@ func (x *NodeStatus) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq3016[8] { + if yyq3099[8] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("volumesInUse")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.VolumesInUse == nil { r.EncodeNil() } else { - yym3037 := z.EncBinary() - _ = yym3037 + yym3120 := z.EncBinary() + _ = yym3120 if false { } else { h.encSliceUniqueVolumeName(([]UniqueVolumeName)(x.VolumesInUse), e) @@ -38904,14 +39984,14 @@ func (x *NodeStatus) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr3016 || yy2arr3016 { + if yyr3099 || yy2arr3099 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3016[9] { + if yyq3099[9] { if x.VolumesAttached == nil { r.EncodeNil() } else { - yym3039 := z.EncBinary() - _ = yym3039 + yym3122 := z.EncBinary() + _ = yym3122 if false { } else { h.encSliceAttachedVolume(([]AttachedVolume)(x.VolumesAttached), e) @@ -38921,15 +40001,15 @@ func (x *NodeStatus) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq3016[9] { + if yyq3099[9] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("volumesAttached")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.VolumesAttached == nil { r.EncodeNil() } else { - yym3040 := z.EncBinary() - _ = yym3040 + yym3123 := z.EncBinary() + _ = yym3123 if false { } else { h.encSliceAttachedVolume(([]AttachedVolume)(x.VolumesAttached), e) @@ -38937,7 +40017,7 @@ func (x *NodeStatus) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr3016 || yy2arr3016 { + if yyr3099 || yy2arr3099 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -38950,25 +40030,25 @@ func (x *NodeStatus) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym3041 := z.DecBinary() - _ = yym3041 + yym3124 := z.DecBinary() + _ = yym3124 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct3042 := r.ContainerType() - if yyct3042 == codecSelferValueTypeMap1234 { - yyl3042 := r.ReadMapStart() - if yyl3042 == 0 { + yyct3125 := r.ContainerType() + if yyct3125 == codecSelferValueTypeMap1234 { + yyl3125 := r.ReadMapStart() + if yyl3125 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl3042, d) + x.codecDecodeSelfFromMap(yyl3125, d) } - } else if yyct3042 == codecSelferValueTypeArray1234 { - yyl3042 := r.ReadArrayStart() - if yyl3042 == 0 { + } else if yyct3125 == codecSelferValueTypeArray1234 { + yyl3125 := r.ReadArrayStart() + if yyl3125 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl3042, d) + x.codecDecodeSelfFromArray(yyl3125, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -38980,12 +40060,12 @@ func (x *NodeStatus) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys3043Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3043Slc - var yyhl3043 bool = l >= 0 - for yyj3043 := 0; ; yyj3043++ { - if yyhl3043 { - if yyj3043 >= l { + var yys3126Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys3126Slc + var yyhl3126 bool = l >= 0 + for yyj3126 := 0; ; yyj3126++ { + if yyhl3126 { + if yyj3126 >= l { break } } else { @@ -38994,23 +40074,23 @@ func (x *NodeStatus) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3043Slc = r.DecodeBytes(yys3043Slc, true, true) - yys3043 := string(yys3043Slc) + yys3126Slc = r.DecodeBytes(yys3126Slc, true, true) + yys3126 := string(yys3126Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3043 { + switch yys3126 { case "capacity": if r.TryDecodeAsNil() { x.Capacity = nil } else { - yyv3044 := &x.Capacity - yyv3044.CodecDecodeSelf(d) + yyv3127 := &x.Capacity + yyv3127.CodecDecodeSelf(d) } case "allocatable": if r.TryDecodeAsNil() { x.Allocatable = nil } else { - yyv3045 := &x.Allocatable - yyv3045.CodecDecodeSelf(d) + yyv3128 := &x.Allocatable + yyv3128.CodecDecodeSelf(d) } case "phase": if r.TryDecodeAsNil() { @@ -39022,80 +40102,80 @@ func (x *NodeStatus) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.Conditions = nil } else { - yyv3047 := &x.Conditions - yym3048 := z.DecBinary() - _ = yym3048 + yyv3130 := &x.Conditions + yym3131 := z.DecBinary() + _ = yym3131 if false { } else { - h.decSliceNodeCondition((*[]NodeCondition)(yyv3047), d) + h.decSliceNodeCondition((*[]NodeCondition)(yyv3130), d) } } case "addresses": if r.TryDecodeAsNil() { x.Addresses = nil } else { - yyv3049 := &x.Addresses - yym3050 := z.DecBinary() - _ = yym3050 + yyv3132 := &x.Addresses + yym3133 := z.DecBinary() + _ = yym3133 if false { } else { - h.decSliceNodeAddress((*[]NodeAddress)(yyv3049), d) + h.decSliceNodeAddress((*[]NodeAddress)(yyv3132), d) } } case "daemonEndpoints": if r.TryDecodeAsNil() { x.DaemonEndpoints = NodeDaemonEndpoints{} } else { - yyv3051 := &x.DaemonEndpoints - yyv3051.CodecDecodeSelf(d) + yyv3134 := &x.DaemonEndpoints + yyv3134.CodecDecodeSelf(d) } case "nodeInfo": if r.TryDecodeAsNil() { x.NodeInfo = NodeSystemInfo{} } else { - yyv3052 := &x.NodeInfo - yyv3052.CodecDecodeSelf(d) + yyv3135 := &x.NodeInfo + yyv3135.CodecDecodeSelf(d) } case "images": if r.TryDecodeAsNil() { x.Images = nil } else { - yyv3053 := &x.Images - yym3054 := z.DecBinary() - _ = yym3054 + yyv3136 := &x.Images + yym3137 := z.DecBinary() + _ = yym3137 if false { } else { - h.decSliceContainerImage((*[]ContainerImage)(yyv3053), d) + h.decSliceContainerImage((*[]ContainerImage)(yyv3136), d) } } case "volumesInUse": if r.TryDecodeAsNil() { x.VolumesInUse = nil } else { - yyv3055 := &x.VolumesInUse - yym3056 := z.DecBinary() - _ = yym3056 + yyv3138 := &x.VolumesInUse + yym3139 := z.DecBinary() + _ = yym3139 if false { } else { - h.decSliceUniqueVolumeName((*[]UniqueVolumeName)(yyv3055), d) + h.decSliceUniqueVolumeName((*[]UniqueVolumeName)(yyv3138), d) } } case "volumesAttached": if r.TryDecodeAsNil() { x.VolumesAttached = nil } else { - yyv3057 := &x.VolumesAttached - yym3058 := z.DecBinary() - _ = yym3058 + yyv3140 := &x.VolumesAttached + yym3141 := z.DecBinary() + _ = yym3141 if false { } else { - h.decSliceAttachedVolume((*[]AttachedVolume)(yyv3057), d) + h.decSliceAttachedVolume((*[]AttachedVolume)(yyv3140), d) } } default: - z.DecStructFieldNotFound(-1, yys3043) - } // end switch yys3043 - } // end for yyj3043 + z.DecStructFieldNotFound(-1, yys3126) + } // end switch yys3126 + } // end for yyj3126 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -39103,16 +40183,16 @@ func (x *NodeStatus) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj3059 int - var yyb3059 bool - var yyhl3059 bool = l >= 0 - yyj3059++ - if yyhl3059 { - yyb3059 = yyj3059 > l + var yyj3142 int + var yyb3142 bool + var yyhl3142 bool = l >= 0 + yyj3142++ + if yyhl3142 { + yyb3142 = yyj3142 > l } else { - yyb3059 = r.CheckBreak() + yyb3142 = r.CheckBreak() } - if yyb3059 { + if yyb3142 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -39120,16 +40200,16 @@ func (x *NodeStatus) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.Capacity = nil } else { - yyv3060 := &x.Capacity - yyv3060.CodecDecodeSelf(d) + yyv3143 := &x.Capacity + yyv3143.CodecDecodeSelf(d) } - yyj3059++ - if yyhl3059 { - yyb3059 = yyj3059 > l + yyj3142++ + if yyhl3142 { + yyb3142 = yyj3142 > l } else { - yyb3059 = r.CheckBreak() + yyb3142 = r.CheckBreak() } - if yyb3059 { + if yyb3142 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -39137,16 +40217,16 @@ func (x *NodeStatus) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.Allocatable = nil } else { - yyv3061 := &x.Allocatable - yyv3061.CodecDecodeSelf(d) + yyv3144 := &x.Allocatable + yyv3144.CodecDecodeSelf(d) } - yyj3059++ - if yyhl3059 { - yyb3059 = yyj3059 > l + yyj3142++ + if yyhl3142 { + yyb3142 = yyj3142 > l } else { - yyb3059 = r.CheckBreak() + yyb3142 = r.CheckBreak() } - if yyb3059 { + if yyb3142 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -39156,13 +40236,13 @@ func (x *NodeStatus) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.Phase = NodePhase(r.DecodeString()) } - yyj3059++ - if yyhl3059 { - yyb3059 = yyj3059 > l + yyj3142++ + if yyhl3142 { + yyb3142 = yyj3142 > l } else { - yyb3059 = r.CheckBreak() + yyb3142 = r.CheckBreak() } - if yyb3059 { + if yyb3142 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -39170,21 +40250,21 @@ func (x *NodeStatus) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.Conditions = nil } else { - yyv3063 := &x.Conditions - yym3064 := z.DecBinary() - _ = yym3064 + yyv3146 := &x.Conditions + yym3147 := z.DecBinary() + _ = yym3147 if false { } else { - h.decSliceNodeCondition((*[]NodeCondition)(yyv3063), d) + h.decSliceNodeCondition((*[]NodeCondition)(yyv3146), d) } } - yyj3059++ - if yyhl3059 { - yyb3059 = yyj3059 > l + yyj3142++ + if yyhl3142 { + yyb3142 = yyj3142 > l } else { - yyb3059 = r.CheckBreak() + yyb3142 = r.CheckBreak() } - if yyb3059 { + if yyb3142 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -39192,21 +40272,21 @@ func (x *NodeStatus) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.Addresses = nil } else { - yyv3065 := &x.Addresses - yym3066 := z.DecBinary() - _ = yym3066 + yyv3148 := &x.Addresses + yym3149 := z.DecBinary() + _ = yym3149 if false { } else { - h.decSliceNodeAddress((*[]NodeAddress)(yyv3065), d) + h.decSliceNodeAddress((*[]NodeAddress)(yyv3148), d) } } - yyj3059++ - if yyhl3059 { - yyb3059 = yyj3059 > l + yyj3142++ + if yyhl3142 { + yyb3142 = yyj3142 > l } else { - yyb3059 = r.CheckBreak() + yyb3142 = r.CheckBreak() } - if yyb3059 { + if yyb3142 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -39214,16 +40294,16 @@ func (x *NodeStatus) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.DaemonEndpoints = NodeDaemonEndpoints{} } else { - yyv3067 := &x.DaemonEndpoints - yyv3067.CodecDecodeSelf(d) + yyv3150 := &x.DaemonEndpoints + yyv3150.CodecDecodeSelf(d) } - yyj3059++ - if yyhl3059 { - yyb3059 = yyj3059 > l + yyj3142++ + if yyhl3142 { + yyb3142 = yyj3142 > l } else { - yyb3059 = r.CheckBreak() + yyb3142 = r.CheckBreak() } - if yyb3059 { + if yyb3142 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -39231,16 +40311,16 @@ func (x *NodeStatus) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.NodeInfo = NodeSystemInfo{} } else { - yyv3068 := &x.NodeInfo - yyv3068.CodecDecodeSelf(d) + yyv3151 := &x.NodeInfo + yyv3151.CodecDecodeSelf(d) } - yyj3059++ - if yyhl3059 { - yyb3059 = yyj3059 > l + yyj3142++ + if yyhl3142 { + yyb3142 = yyj3142 > l } else { - yyb3059 = r.CheckBreak() + yyb3142 = r.CheckBreak() } - if yyb3059 { + if yyb3142 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -39248,21 +40328,21 @@ func (x *NodeStatus) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.Images = nil } else { - yyv3069 := &x.Images - yym3070 := z.DecBinary() - _ = yym3070 + yyv3152 := &x.Images + yym3153 := z.DecBinary() + _ = yym3153 if false { } else { - h.decSliceContainerImage((*[]ContainerImage)(yyv3069), d) + h.decSliceContainerImage((*[]ContainerImage)(yyv3152), d) } } - yyj3059++ - if yyhl3059 { - yyb3059 = yyj3059 > l + yyj3142++ + if yyhl3142 { + yyb3142 = yyj3142 > l } else { - yyb3059 = r.CheckBreak() + yyb3142 = r.CheckBreak() } - if yyb3059 { + if yyb3142 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -39270,21 +40350,21 @@ func (x *NodeStatus) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.VolumesInUse = nil } else { - yyv3071 := &x.VolumesInUse - yym3072 := z.DecBinary() - _ = yym3072 + yyv3154 := &x.VolumesInUse + yym3155 := z.DecBinary() + _ = yym3155 if false { } else { - h.decSliceUniqueVolumeName((*[]UniqueVolumeName)(yyv3071), d) + h.decSliceUniqueVolumeName((*[]UniqueVolumeName)(yyv3154), d) } } - yyj3059++ - if yyhl3059 { - yyb3059 = yyj3059 > l + yyj3142++ + if yyhl3142 { + yyb3142 = yyj3142 > l } else { - yyb3059 = r.CheckBreak() + yyb3142 = r.CheckBreak() } - if yyb3059 { + if yyb3142 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -39292,26 +40372,26 @@ func (x *NodeStatus) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.VolumesAttached = nil } else { - yyv3073 := &x.VolumesAttached - yym3074 := z.DecBinary() - _ = yym3074 + yyv3156 := &x.VolumesAttached + yym3157 := z.DecBinary() + _ = yym3157 if false { } else { - h.decSliceAttachedVolume((*[]AttachedVolume)(yyv3073), d) + h.decSliceAttachedVolume((*[]AttachedVolume)(yyv3156), d) } } for { - yyj3059++ - if yyhl3059 { - yyb3059 = yyj3059 > l + yyj3142++ + if yyhl3142 { + yyb3142 = yyj3142 > l } else { - yyb3059 = r.CheckBreak() + yyb3142 = r.CheckBreak() } - if yyb3059 { + if yyb3142 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj3059-1, "") + z.DecStructFieldNotFound(yyj3142-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -39320,8 +40400,8 @@ func (x UniqueVolumeName) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r - yym3075 := z.EncBinary() - _ = yym3075 + yym3158 := z.EncBinary() + _ = yym3158 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { @@ -39333,8 +40413,8 @@ func (x *UniqueVolumeName) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym3076 := z.DecBinary() - _ = yym3076 + yym3159 := z.DecBinary() + _ = yym3159 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { @@ -39349,30 +40429,30 @@ func (x *AttachedVolume) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym3077 := z.EncBinary() - _ = yym3077 + yym3160 := z.EncBinary() + _ = yym3160 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep3078 := !z.EncBinary() - yy2arr3078 := z.EncBasicHandle().StructToArray - var yyq3078 [2]bool - _, _, _ = yysep3078, yyq3078, yy2arr3078 - const yyr3078 bool = false - var yynn3078 int - if yyr3078 || yy2arr3078 { + yysep3161 := !z.EncBinary() + yy2arr3161 := z.EncBasicHandle().StructToArray + var yyq3161 [2]bool + _, _, _ = yysep3161, yyq3161, yy2arr3161 + const yyr3161 bool = false + var yynn3161 int + if yyr3161 || yy2arr3161 { r.EncodeArrayStart(2) } else { - yynn3078 = 2 - for _, b := range yyq3078 { + yynn3161 = 2 + for _, b := range yyq3161 { if b { - yynn3078++ + yynn3161++ } } - r.EncodeMapStart(yynn3078) - yynn3078 = 0 + r.EncodeMapStart(yynn3161) + yynn3161 = 0 } - if yyr3078 || yy2arr3078 { + if yyr3161 || yy2arr3161 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) x.Name.CodecEncodeSelf(e) } else { @@ -39381,10 +40461,10 @@ func (x *AttachedVolume) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapValue1234) x.Name.CodecEncodeSelf(e) } - if yyr3078 || yy2arr3078 { + if yyr3161 || yy2arr3161 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym3081 := z.EncBinary() - _ = yym3081 + yym3164 := z.EncBinary() + _ = yym3164 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.DevicePath)) @@ -39393,14 +40473,14 @@ func (x *AttachedVolume) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("devicePath")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym3082 := z.EncBinary() - _ = yym3082 + yym3165 := z.EncBinary() + _ = yym3165 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.DevicePath)) } } - if yyr3078 || yy2arr3078 { + if yyr3161 || yy2arr3161 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -39413,25 +40493,25 @@ func (x *AttachedVolume) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym3083 := z.DecBinary() - _ = yym3083 + yym3166 := z.DecBinary() + _ = yym3166 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct3084 := r.ContainerType() - if yyct3084 == codecSelferValueTypeMap1234 { - yyl3084 := r.ReadMapStart() - if yyl3084 == 0 { + yyct3167 := r.ContainerType() + if yyct3167 == codecSelferValueTypeMap1234 { + yyl3167 := r.ReadMapStart() + if yyl3167 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl3084, d) + x.codecDecodeSelfFromMap(yyl3167, d) } - } else if yyct3084 == codecSelferValueTypeArray1234 { - yyl3084 := r.ReadArrayStart() - if yyl3084 == 0 { + } else if yyct3167 == codecSelferValueTypeArray1234 { + yyl3167 := r.ReadArrayStart() + if yyl3167 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl3084, d) + x.codecDecodeSelfFromArray(yyl3167, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -39443,12 +40523,12 @@ func (x *AttachedVolume) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys3085Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3085Slc - var yyhl3085 bool = l >= 0 - for yyj3085 := 0; ; yyj3085++ { - if yyhl3085 { - if yyj3085 >= l { + 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 { @@ -39457,10 +40537,10 @@ func (x *AttachedVolume) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3085Slc = r.DecodeBytes(yys3085Slc, true, true) - yys3085 := string(yys3085Slc) + yys3168Slc = r.DecodeBytes(yys3168Slc, true, true) + yys3168 := string(yys3168Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3085 { + switch yys3168 { case "name": if r.TryDecodeAsNil() { x.Name = "" @@ -39474,9 +40554,9 @@ func (x *AttachedVolume) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { x.DevicePath = string(r.DecodeString()) } default: - z.DecStructFieldNotFound(-1, yys3085) - } // end switch yys3085 - } // end for yyj3085 + z.DecStructFieldNotFound(-1, yys3168) + } // end switch yys3168 + } // end for yyj3168 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -39484,16 +40564,16 @@ func (x *AttachedVolume) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj3088 int - var yyb3088 bool - var yyhl3088 bool = l >= 0 - yyj3088++ - if yyhl3088 { - yyb3088 = yyj3088 > l + var yyj3171 int + var yyb3171 bool + var yyhl3171 bool = l >= 0 + yyj3171++ + if yyhl3171 { + yyb3171 = yyj3171 > l } else { - yyb3088 = r.CheckBreak() + yyb3171 = r.CheckBreak() } - if yyb3088 { + if yyb3171 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -39503,13 +40583,13 @@ func (x *AttachedVolume) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.Name = UniqueVolumeName(r.DecodeString()) } - yyj3088++ - if yyhl3088 { - yyb3088 = yyj3088 > l + yyj3171++ + if yyhl3171 { + yyb3171 = yyj3171 > l } else { - yyb3088 = r.CheckBreak() + yyb3171 = r.CheckBreak() } - if yyb3088 { + if yyb3171 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -39520,17 +40600,17 @@ func (x *AttachedVolume) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { x.DevicePath = string(r.DecodeString()) } for { - yyj3088++ - if yyhl3088 { - yyb3088 = yyj3088 > l + yyj3171++ + if yyhl3171 { + yyb3171 = yyj3171 > l } else { - yyb3088 = r.CheckBreak() + yyb3171 = r.CheckBreak() } - if yyb3088 { + if yyb3171 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj3088-1, "") + z.DecStructFieldNotFound(yyj3171-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -39542,38 +40622,38 @@ func (x *AvoidPods) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym3091 := z.EncBinary() - _ = yym3091 + yym3174 := z.EncBinary() + _ = yym3174 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep3092 := !z.EncBinary() - yy2arr3092 := z.EncBasicHandle().StructToArray - var yyq3092 [1]bool - _, _, _ = yysep3092, yyq3092, yy2arr3092 - const yyr3092 bool = false - yyq3092[0] = len(x.PreferAvoidPods) != 0 - var yynn3092 int - if yyr3092 || yy2arr3092 { + yysep3175 := !z.EncBinary() + yy2arr3175 := z.EncBasicHandle().StructToArray + var yyq3175 [1]bool + _, _, _ = yysep3175, yyq3175, yy2arr3175 + const yyr3175 bool = false + yyq3175[0] = len(x.PreferAvoidPods) != 0 + var yynn3175 int + if yyr3175 || yy2arr3175 { r.EncodeArrayStart(1) } else { - yynn3092 = 0 - for _, b := range yyq3092 { + yynn3175 = 0 + for _, b := range yyq3175 { if b { - yynn3092++ + yynn3175++ } } - r.EncodeMapStart(yynn3092) - yynn3092 = 0 + r.EncodeMapStart(yynn3175) + yynn3175 = 0 } - if yyr3092 || yy2arr3092 { + if yyr3175 || yy2arr3175 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3092[0] { + if yyq3175[0] { if x.PreferAvoidPods == nil { r.EncodeNil() } else { - yym3094 := z.EncBinary() - _ = yym3094 + yym3177 := z.EncBinary() + _ = yym3177 if false { } else { h.encSlicePreferAvoidPodsEntry(([]PreferAvoidPodsEntry)(x.PreferAvoidPods), e) @@ -39583,15 +40663,15 @@ func (x *AvoidPods) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq3092[0] { + if yyq3175[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("preferAvoidPods")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.PreferAvoidPods == nil { r.EncodeNil() } else { - yym3095 := z.EncBinary() - _ = yym3095 + yym3178 := z.EncBinary() + _ = yym3178 if false { } else { h.encSlicePreferAvoidPodsEntry(([]PreferAvoidPodsEntry)(x.PreferAvoidPods), e) @@ -39599,7 +40679,7 @@ func (x *AvoidPods) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr3092 || yy2arr3092 { + if yyr3175 || yy2arr3175 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -39612,25 +40692,25 @@ func (x *AvoidPods) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym3096 := z.DecBinary() - _ = yym3096 + yym3179 := z.DecBinary() + _ = yym3179 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct3097 := r.ContainerType() - if yyct3097 == codecSelferValueTypeMap1234 { - yyl3097 := r.ReadMapStart() - if yyl3097 == 0 { + yyct3180 := r.ContainerType() + if yyct3180 == codecSelferValueTypeMap1234 { + yyl3180 := r.ReadMapStart() + if yyl3180 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl3097, d) + x.codecDecodeSelfFromMap(yyl3180, d) } - } else if yyct3097 == codecSelferValueTypeArray1234 { - yyl3097 := r.ReadArrayStart() - if yyl3097 == 0 { + } else if yyct3180 == codecSelferValueTypeArray1234 { + yyl3180 := r.ReadArrayStart() + if yyl3180 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl3097, d) + x.codecDecodeSelfFromArray(yyl3180, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -39642,12 +40722,12 @@ func (x *AvoidPods) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys3098Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3098Slc - var yyhl3098 bool = l >= 0 - for yyj3098 := 0; ; yyj3098++ { - if yyhl3098 { - if yyj3098 >= l { + var yys3181Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys3181Slc + var yyhl3181 bool = l >= 0 + for yyj3181 := 0; ; yyj3181++ { + if yyhl3181 { + if yyj3181 >= l { break } } else { @@ -39656,26 +40736,26 @@ func (x *AvoidPods) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3098Slc = r.DecodeBytes(yys3098Slc, true, true) - yys3098 := string(yys3098Slc) + yys3181Slc = r.DecodeBytes(yys3181Slc, true, true) + yys3181 := string(yys3181Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3098 { + switch yys3181 { case "preferAvoidPods": if r.TryDecodeAsNil() { x.PreferAvoidPods = nil } else { - yyv3099 := &x.PreferAvoidPods - yym3100 := z.DecBinary() - _ = yym3100 + yyv3182 := &x.PreferAvoidPods + yym3183 := z.DecBinary() + _ = yym3183 if false { } else { - h.decSlicePreferAvoidPodsEntry((*[]PreferAvoidPodsEntry)(yyv3099), d) + h.decSlicePreferAvoidPodsEntry((*[]PreferAvoidPodsEntry)(yyv3182), d) } } default: - z.DecStructFieldNotFound(-1, yys3098) - } // end switch yys3098 - } // end for yyj3098 + z.DecStructFieldNotFound(-1, yys3181) + } // end switch yys3181 + } // end for yyj3181 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -39683,16 +40763,16 @@ func (x *AvoidPods) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj3101 int - var yyb3101 bool - var yyhl3101 bool = l >= 0 - yyj3101++ - if yyhl3101 { - yyb3101 = yyj3101 > l + var yyj3184 int + var yyb3184 bool + var yyhl3184 bool = l >= 0 + yyj3184++ + if yyhl3184 { + yyb3184 = yyj3184 > l } else { - yyb3101 = r.CheckBreak() + yyb3184 = r.CheckBreak() } - if yyb3101 { + if yyb3184 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -39700,26 +40780,26 @@ func (x *AvoidPods) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.PreferAvoidPods = nil } else { - yyv3102 := &x.PreferAvoidPods - yym3103 := z.DecBinary() - _ = yym3103 + yyv3185 := &x.PreferAvoidPods + yym3186 := z.DecBinary() + _ = yym3186 if false { } else { - h.decSlicePreferAvoidPodsEntry((*[]PreferAvoidPodsEntry)(yyv3102), d) + h.decSlicePreferAvoidPodsEntry((*[]PreferAvoidPodsEntry)(yyv3185), d) } } for { - yyj3101++ - if yyhl3101 { - yyb3101 = yyj3101 > l + yyj3184++ + if yyhl3184 { + yyb3184 = yyj3184 > l } else { - yyb3101 = r.CheckBreak() + yyb3184 = r.CheckBreak() } - if yyb3101 { + if yyb3184 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj3101-1, "") + z.DecStructFieldNotFound(yyj3184-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -39731,85 +40811,85 @@ func (x *PreferAvoidPodsEntry) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym3104 := z.EncBinary() - _ = yym3104 + yym3187 := z.EncBinary() + _ = yym3187 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep3105 := !z.EncBinary() - yy2arr3105 := z.EncBasicHandle().StructToArray - var yyq3105 [4]bool - _, _, _ = yysep3105, yyq3105, yy2arr3105 - const yyr3105 bool = false - yyq3105[1] = true - yyq3105[2] = x.Reason != "" - yyq3105[3] = x.Message != "" - var yynn3105 int - if yyr3105 || yy2arr3105 { + yysep3188 := !z.EncBinary() + yy2arr3188 := z.EncBasicHandle().StructToArray + var yyq3188 [4]bool + _, _, _ = yysep3188, yyq3188, yy2arr3188 + const yyr3188 bool = false + yyq3188[1] = true + yyq3188[2] = x.Reason != "" + yyq3188[3] = x.Message != "" + var yynn3188 int + if yyr3188 || yy2arr3188 { r.EncodeArrayStart(4) } else { - yynn3105 = 1 - for _, b := range yyq3105 { + yynn3188 = 1 + for _, b := range yyq3188 { if b { - yynn3105++ + yynn3188++ } } - r.EncodeMapStart(yynn3105) - yynn3105 = 0 + r.EncodeMapStart(yynn3188) + yynn3188 = 0 } - if yyr3105 || yy2arr3105 { + if yyr3188 || yy2arr3188 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy3107 := &x.PodSignature - yy3107.CodecEncodeSelf(e) + yy3190 := &x.PodSignature + yy3190.CodecEncodeSelf(e) } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("podSignature")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy3108 := &x.PodSignature - yy3108.CodecEncodeSelf(e) + yy3191 := &x.PodSignature + yy3191.CodecEncodeSelf(e) } - if yyr3105 || yy2arr3105 { + if yyr3188 || yy2arr3188 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3105[1] { - yy3110 := &x.EvictionTime - yym3111 := z.EncBinary() - _ = yym3111 + if yyq3188[1] { + yy3193 := &x.EvictionTime + yym3194 := z.EncBinary() + _ = yym3194 if false { - } else if z.HasExtensions() && z.EncExt(yy3110) { - } else if yym3111 { - z.EncBinaryMarshal(yy3110) - } else if !yym3111 && z.IsJSONHandle() { - z.EncJSONMarshal(yy3110) + } else if z.HasExtensions() && z.EncExt(yy3193) { + } else if yym3194 { + z.EncBinaryMarshal(yy3193) + } else if !yym3194 && z.IsJSONHandle() { + z.EncJSONMarshal(yy3193) } else { - z.EncFallback(yy3110) + z.EncFallback(yy3193) } } else { r.EncodeNil() } } else { - if yyq3105[1] { + if yyq3188[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("evictionTime")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy3112 := &x.EvictionTime - yym3113 := z.EncBinary() - _ = yym3113 + yy3195 := &x.EvictionTime + yym3196 := z.EncBinary() + _ = yym3196 if false { - } else if z.HasExtensions() && z.EncExt(yy3112) { - } else if yym3113 { - z.EncBinaryMarshal(yy3112) - } else if !yym3113 && z.IsJSONHandle() { - z.EncJSONMarshal(yy3112) + } else if z.HasExtensions() && z.EncExt(yy3195) { + } else if yym3196 { + z.EncBinaryMarshal(yy3195) + } else if !yym3196 && z.IsJSONHandle() { + z.EncJSONMarshal(yy3195) } else { - z.EncFallback(yy3112) + z.EncFallback(yy3195) } } } - if yyr3105 || yy2arr3105 { + if yyr3188 || yy2arr3188 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3105[2] { - yym3115 := z.EncBinary() - _ = yym3115 + if yyq3188[2] { + yym3198 := z.EncBinary() + _ = yym3198 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Reason)) @@ -39818,23 +40898,23 @@ func (x *PreferAvoidPodsEntry) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq3105[2] { + if yyq3188[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("reason")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym3116 := z.EncBinary() - _ = yym3116 + yym3199 := z.EncBinary() + _ = yym3199 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Reason)) } } } - if yyr3105 || yy2arr3105 { + if yyr3188 || yy2arr3188 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3105[3] { - yym3118 := z.EncBinary() - _ = yym3118 + if yyq3188[3] { + yym3201 := z.EncBinary() + _ = yym3201 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Message)) @@ -39843,19 +40923,19 @@ func (x *PreferAvoidPodsEntry) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq3105[3] { + if yyq3188[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("message")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym3119 := z.EncBinary() - _ = yym3119 + yym3202 := z.EncBinary() + _ = yym3202 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Message)) } } } - if yyr3105 || yy2arr3105 { + if yyr3188 || yy2arr3188 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -39868,25 +40948,25 @@ func (x *PreferAvoidPodsEntry) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym3120 := z.DecBinary() - _ = yym3120 + yym3203 := z.DecBinary() + _ = yym3203 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct3121 := r.ContainerType() - if yyct3121 == codecSelferValueTypeMap1234 { - yyl3121 := r.ReadMapStart() - if yyl3121 == 0 { + yyct3204 := r.ContainerType() + if yyct3204 == codecSelferValueTypeMap1234 { + yyl3204 := r.ReadMapStart() + if yyl3204 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl3121, d) + x.codecDecodeSelfFromMap(yyl3204, d) } - } else if yyct3121 == codecSelferValueTypeArray1234 { - yyl3121 := r.ReadArrayStart() - if yyl3121 == 0 { + } else if yyct3204 == codecSelferValueTypeArray1234 { + yyl3204 := r.ReadArrayStart() + if yyl3204 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl3121, d) + x.codecDecodeSelfFromArray(yyl3204, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -39898,12 +40978,12 @@ func (x *PreferAvoidPodsEntry) codecDecodeSelfFromMap(l int, d *codec1978.Decode var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys3122Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3122Slc - var yyhl3122 bool = l >= 0 - for yyj3122 := 0; ; yyj3122++ { - if yyhl3122 { - if yyj3122 >= l { + var yys3205Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys3205Slc + var yyhl3205 bool = l >= 0 + for yyj3205 := 0; ; yyj3205++ { + if yyhl3205 { + if yyj3205 >= l { break } } else { @@ -39912,32 +40992,32 @@ func (x *PreferAvoidPodsEntry) codecDecodeSelfFromMap(l int, d *codec1978.Decode } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3122Slc = r.DecodeBytes(yys3122Slc, true, true) - yys3122 := string(yys3122Slc) + yys3205Slc = r.DecodeBytes(yys3205Slc, true, true) + yys3205 := string(yys3205Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3122 { + switch yys3205 { case "podSignature": if r.TryDecodeAsNil() { x.PodSignature = PodSignature{} } else { - yyv3123 := &x.PodSignature - yyv3123.CodecDecodeSelf(d) + yyv3206 := &x.PodSignature + yyv3206.CodecDecodeSelf(d) } case "evictionTime": if r.TryDecodeAsNil() { x.EvictionTime = pkg2_unversioned.Time{} } else { - yyv3124 := &x.EvictionTime - yym3125 := z.DecBinary() - _ = yym3125 + yyv3207 := &x.EvictionTime + yym3208 := z.DecBinary() + _ = yym3208 if false { - } else if z.HasExtensions() && z.DecExt(yyv3124) { - } else if yym3125 { - z.DecBinaryUnmarshal(yyv3124) - } else if !yym3125 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv3124) + } else if z.HasExtensions() && z.DecExt(yyv3207) { + } else if yym3208 { + z.DecBinaryUnmarshal(yyv3207) + } else if !yym3208 && z.IsJSONHandle() { + z.DecJSONUnmarshal(yyv3207) } else { - z.DecFallback(yyv3124, false) + z.DecFallback(yyv3207, false) } } case "reason": @@ -39953,9 +41033,9 @@ func (x *PreferAvoidPodsEntry) codecDecodeSelfFromMap(l int, d *codec1978.Decode x.Message = string(r.DecodeString()) } default: - z.DecStructFieldNotFound(-1, yys3122) - } // end switch yys3122 - } // end for yyj3122 + z.DecStructFieldNotFound(-1, yys3205) + } // end switch yys3205 + } // end for yyj3205 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -39963,16 +41043,16 @@ func (x *PreferAvoidPodsEntry) codecDecodeSelfFromArray(l int, d *codec1978.Deco var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj3128 int - var yyb3128 bool - var yyhl3128 bool = l >= 0 - yyj3128++ - if yyhl3128 { - yyb3128 = yyj3128 > l + var yyj3211 int + var yyb3211 bool + var yyhl3211 bool = l >= 0 + yyj3211++ + if yyhl3211 { + yyb3211 = yyj3211 > l } else { - yyb3128 = r.CheckBreak() + yyb3211 = r.CheckBreak() } - if yyb3128 { + if yyb3211 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -39980,16 +41060,16 @@ func (x *PreferAvoidPodsEntry) codecDecodeSelfFromArray(l int, d *codec1978.Deco if r.TryDecodeAsNil() { x.PodSignature = PodSignature{} } else { - yyv3129 := &x.PodSignature - yyv3129.CodecDecodeSelf(d) + yyv3212 := &x.PodSignature + yyv3212.CodecDecodeSelf(d) } - yyj3128++ - if yyhl3128 { - yyb3128 = yyj3128 > l + yyj3211++ + if yyhl3211 { + yyb3211 = yyj3211 > l } else { - yyb3128 = r.CheckBreak() + yyb3211 = r.CheckBreak() } - if yyb3128 { + if yyb3211 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -39997,26 +41077,26 @@ func (x *PreferAvoidPodsEntry) codecDecodeSelfFromArray(l int, d *codec1978.Deco if r.TryDecodeAsNil() { x.EvictionTime = pkg2_unversioned.Time{} } else { - yyv3130 := &x.EvictionTime - yym3131 := z.DecBinary() - _ = yym3131 + yyv3213 := &x.EvictionTime + yym3214 := z.DecBinary() + _ = yym3214 if false { - } else if z.HasExtensions() && z.DecExt(yyv3130) { - } else if yym3131 { - z.DecBinaryUnmarshal(yyv3130) - } else if !yym3131 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv3130) + } else if z.HasExtensions() && z.DecExt(yyv3213) { + } else if yym3214 { + z.DecBinaryUnmarshal(yyv3213) + } else if !yym3214 && z.IsJSONHandle() { + z.DecJSONUnmarshal(yyv3213) } else { - z.DecFallback(yyv3130, false) + z.DecFallback(yyv3213, false) } } - yyj3128++ - if yyhl3128 { - yyb3128 = yyj3128 > l + yyj3211++ + if yyhl3211 { + yyb3211 = yyj3211 > l } else { - yyb3128 = r.CheckBreak() + yyb3211 = r.CheckBreak() } - if yyb3128 { + if yyb3211 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -40026,13 +41106,13 @@ func (x *PreferAvoidPodsEntry) codecDecodeSelfFromArray(l int, d *codec1978.Deco } else { x.Reason = string(r.DecodeString()) } - yyj3128++ - if yyhl3128 { - yyb3128 = yyj3128 > l + yyj3211++ + if yyhl3211 { + yyb3211 = yyj3211 > l } else { - yyb3128 = r.CheckBreak() + yyb3211 = r.CheckBreak() } - if yyb3128 { + if yyb3211 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -40043,17 +41123,17 @@ func (x *PreferAvoidPodsEntry) codecDecodeSelfFromArray(l int, d *codec1978.Deco x.Message = string(r.DecodeString()) } for { - yyj3128++ - if yyhl3128 { - yyb3128 = yyj3128 > l + yyj3211++ + if yyhl3211 { + yyb3211 = yyj3211 > l } else { - yyb3128 = r.CheckBreak() + yyb3211 = r.CheckBreak() } - if yyb3128 { + if yyb3211 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj3128-1, "") + z.DecStructFieldNotFound(yyj3211-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -40065,33 +41145,33 @@ func (x *PodSignature) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym3134 := z.EncBinary() - _ = yym3134 + yym3217 := z.EncBinary() + _ = yym3217 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 { + yysep3218 := !z.EncBinary() + yy2arr3218 := z.EncBasicHandle().StructToArray + var yyq3218 [1]bool + _, _, _ = yysep3218, yyq3218, yy2arr3218 + const yyr3218 bool = false + yyq3218[0] = x.PodController != nil + var yynn3218 int + if yyr3218 || yy2arr3218 { r.EncodeArrayStart(1) } else { - yynn3135 = 0 - for _, b := range yyq3135 { + yynn3218 = 0 + for _, b := range yyq3218 { if b { - yynn3135++ + yynn3218++ } } - r.EncodeMapStart(yynn3135) - yynn3135 = 0 + r.EncodeMapStart(yynn3218) + yynn3218 = 0 } - if yyr3135 || yy2arr3135 { + if yyr3218 || yy2arr3218 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3135[0] { + if yyq3218[0] { if x.PodController == nil { r.EncodeNil() } else { @@ -40101,7 +41181,7 @@ func (x *PodSignature) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq3135[0] { + if yyq3218[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("podController")) z.EncSendContainerState(codecSelfer_containerMapValue1234) @@ -40112,7 +41192,7 @@ func (x *PodSignature) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr3135 || yy2arr3135 { + if yyr3218 || yy2arr3218 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -40125,25 +41205,25 @@ func (x *PodSignature) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym3137 := z.DecBinary() - _ = yym3137 + yym3220 := z.DecBinary() + _ = yym3220 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct3138 := r.ContainerType() - if yyct3138 == codecSelferValueTypeMap1234 { - yyl3138 := r.ReadMapStart() - if yyl3138 == 0 { + yyct3221 := r.ContainerType() + if yyct3221 == codecSelferValueTypeMap1234 { + yyl3221 := r.ReadMapStart() + if yyl3221 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl3138, d) + x.codecDecodeSelfFromMap(yyl3221, d) } - } else if yyct3138 == codecSelferValueTypeArray1234 { - yyl3138 := r.ReadArrayStart() - if yyl3138 == 0 { + } else if yyct3221 == codecSelferValueTypeArray1234 { + yyl3221 := r.ReadArrayStart() + if yyl3221 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl3138, d) + x.codecDecodeSelfFromArray(yyl3221, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -40155,12 +41235,12 @@ 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 { + var yys3222Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys3222Slc + var yyhl3222 bool = l >= 0 + for yyj3222 := 0; ; yyj3222++ { + if yyhl3222 { + if yyj3222 >= l { break } } else { @@ -40169,10 +41249,10 @@ func (x *PodSignature) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3139Slc = r.DecodeBytes(yys3139Slc, true, true) - yys3139 := string(yys3139Slc) + yys3222Slc = r.DecodeBytes(yys3222Slc, true, true) + yys3222 := string(yys3222Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3139 { + switch yys3222 { case "podController": if r.TryDecodeAsNil() { if x.PodController != nil { @@ -40185,9 +41265,9 @@ func (x *PodSignature) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { x.PodController.CodecDecodeSelf(d) } default: - z.DecStructFieldNotFound(-1, yys3139) - } // end switch yys3139 - } // end for yyj3139 + z.DecStructFieldNotFound(-1, yys3222) + } // end switch yys3222 + } // end for yyj3222 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -40195,16 +41275,16 @@ 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 + var yyj3224 int + var yyb3224 bool + var yyhl3224 bool = l >= 0 + yyj3224++ + if yyhl3224 { + yyb3224 = yyj3224 > l } else { - yyb3141 = r.CheckBreak() + yyb3224 = r.CheckBreak() } - if yyb3141 { + if yyb3224 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -40220,17 +41300,17 @@ func (x *PodSignature) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { x.PodController.CodecDecodeSelf(d) } for { - yyj3141++ - if yyhl3141 { - yyb3141 = yyj3141 > l + yyj3224++ + if yyhl3224 { + yyb3224 = yyj3224 > l } else { - yyb3141 = r.CheckBreak() + yyb3224 = r.CheckBreak() } - if yyb3141 { + if yyb3224 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj3141-1, "") + z.DecStructFieldNotFound(yyj3224-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -40242,37 +41322,37 @@ func (x *ContainerImage) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym3143 := z.EncBinary() - _ = yym3143 + yym3226 := z.EncBinary() + _ = yym3226 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 { + yysep3227 := !z.EncBinary() + yy2arr3227 := z.EncBasicHandle().StructToArray + var yyq3227 [2]bool + _, _, _ = yysep3227, yyq3227, yy2arr3227 + const yyr3227 bool = false + yyq3227[1] = x.SizeBytes != 0 + var yynn3227 int + if yyr3227 || yy2arr3227 { r.EncodeArrayStart(2) } else { - yynn3144 = 1 - for _, b := range yyq3144 { + yynn3227 = 1 + for _, b := range yyq3227 { if b { - yynn3144++ + yynn3227++ } } - r.EncodeMapStart(yynn3144) - yynn3144 = 0 + r.EncodeMapStart(yynn3227) + yynn3227 = 0 } - if yyr3144 || yy2arr3144 { + if yyr3227 || yy2arr3227 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.Names == nil { r.EncodeNil() } else { - yym3146 := z.EncBinary() - _ = yym3146 + yym3229 := z.EncBinary() + _ = yym3229 if false { } else { z.F.EncSliceStringV(x.Names, false, e) @@ -40285,19 +41365,19 @@ func (x *ContainerImage) CodecEncodeSelf(e *codec1978.Encoder) { if x.Names == nil { r.EncodeNil() } else { - yym3147 := z.EncBinary() - _ = yym3147 + yym3230 := z.EncBinary() + _ = yym3230 if false { } else { z.F.EncSliceStringV(x.Names, false, e) } } } - if yyr3144 || yy2arr3144 { + if yyr3227 || yy2arr3227 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3144[1] { - yym3149 := z.EncBinary() - _ = yym3149 + if yyq3227[1] { + yym3232 := z.EncBinary() + _ = yym3232 if false { } else { r.EncodeInt(int64(x.SizeBytes)) @@ -40306,19 +41386,19 @@ func (x *ContainerImage) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeInt(0) } } else { - if yyq3144[1] { + if yyq3227[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("sizeBytes")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym3150 := z.EncBinary() - _ = yym3150 + yym3233 := z.EncBinary() + _ = yym3233 if false { } else { r.EncodeInt(int64(x.SizeBytes)) } } } - if yyr3144 || yy2arr3144 { + if yyr3227 || yy2arr3227 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -40331,25 +41411,25 @@ func (x *ContainerImage) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym3151 := z.DecBinary() - _ = yym3151 + yym3234 := z.DecBinary() + _ = yym3234 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct3152 := r.ContainerType() - if yyct3152 == codecSelferValueTypeMap1234 { - yyl3152 := r.ReadMapStart() - if yyl3152 == 0 { + yyct3235 := r.ContainerType() + if yyct3235 == codecSelferValueTypeMap1234 { + yyl3235 := r.ReadMapStart() + if yyl3235 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl3152, d) + x.codecDecodeSelfFromMap(yyl3235, d) } - } else if yyct3152 == codecSelferValueTypeArray1234 { - yyl3152 := r.ReadArrayStart() - if yyl3152 == 0 { + } else if yyct3235 == codecSelferValueTypeArray1234 { + yyl3235 := r.ReadArrayStart() + if yyl3235 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl3152, d) + x.codecDecodeSelfFromArray(yyl3235, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -40361,12 +41441,12 @@ 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 { + var yys3236Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys3236Slc + var yyhl3236 bool = l >= 0 + for yyj3236 := 0; ; yyj3236++ { + if yyhl3236 { + if yyj3236 >= l { break } } else { @@ -40375,20 +41455,20 @@ func (x *ContainerImage) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3153Slc = r.DecodeBytes(yys3153Slc, true, true) - yys3153 := string(yys3153Slc) + yys3236Slc = r.DecodeBytes(yys3236Slc, true, true) + yys3236 := string(yys3236Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3153 { + switch yys3236 { case "names": if r.TryDecodeAsNil() { x.Names = nil } else { - yyv3154 := &x.Names - yym3155 := z.DecBinary() - _ = yym3155 + yyv3237 := &x.Names + yym3238 := z.DecBinary() + _ = yym3238 if false { } else { - z.F.DecSliceStringX(yyv3154, false, d) + z.F.DecSliceStringX(yyv3237, false, d) } } case "sizeBytes": @@ -40398,9 +41478,9 @@ func (x *ContainerImage) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { x.SizeBytes = int64(r.DecodeInt(64)) } default: - z.DecStructFieldNotFound(-1, yys3153) - } // end switch yys3153 - } // end for yyj3153 + z.DecStructFieldNotFound(-1, yys3236) + } // end switch yys3236 + } // end for yyj3236 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -40408,16 +41488,16 @@ 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 + var yyj3240 int + var yyb3240 bool + var yyhl3240 bool = l >= 0 + yyj3240++ + if yyhl3240 { + yyb3240 = yyj3240 > l } else { - yyb3157 = r.CheckBreak() + yyb3240 = r.CheckBreak() } - if yyb3157 { + if yyb3240 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -40425,21 +41505,21 @@ func (x *ContainerImage) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.Names = nil } else { - yyv3158 := &x.Names - yym3159 := z.DecBinary() - _ = yym3159 + yyv3241 := &x.Names + yym3242 := z.DecBinary() + _ = yym3242 if false { } else { - z.F.DecSliceStringX(yyv3158, false, d) + z.F.DecSliceStringX(yyv3241, false, d) } } - yyj3157++ - if yyhl3157 { - yyb3157 = yyj3157 > l + yyj3240++ + if yyhl3240 { + yyb3240 = yyj3240 > l } else { - yyb3157 = r.CheckBreak() + yyb3240 = r.CheckBreak() } - if yyb3157 { + if yyb3240 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -40450,17 +41530,17 @@ func (x *ContainerImage) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { x.SizeBytes = int64(r.DecodeInt(64)) } for { - yyj3157++ - if yyhl3157 { - yyb3157 = yyj3157 > l + yyj3240++ + if yyhl3240 { + yyb3240 = yyj3240 > l } else { - yyb3157 = r.CheckBreak() + yyb3240 = r.CheckBreak() } - if yyb3157 { + if yyb3240 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj3157-1, "") + z.DecStructFieldNotFound(yyj3240-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -40469,8 +41549,8 @@ func (x NodePhase) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r - yym3161 := z.EncBinary() - _ = yym3161 + yym3244 := z.EncBinary() + _ = yym3244 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { @@ -40482,8 +41562,8 @@ func (x *NodePhase) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym3162 := z.DecBinary() - _ = yym3162 + yym3245 := z.DecBinary() + _ = yym3245 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { @@ -40495,8 +41575,8 @@ func (x NodeConditionType) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r - yym3163 := z.EncBinary() - _ = yym3163 + yym3246 := z.EncBinary() + _ = yym3246 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { @@ -40508,8 +41588,8 @@ func (x *NodeConditionType) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym3164 := z.DecBinary() - _ = yym3164 + yym3247 := z.DecBinary() + _ = yym3247 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { @@ -40524,34 +41604,34 @@ func (x *NodeCondition) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym3165 := z.EncBinary() - _ = yym3165 + yym3248 := z.EncBinary() + _ = yym3248 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 { + yysep3249 := !z.EncBinary() + yy2arr3249 := z.EncBasicHandle().StructToArray + var yyq3249 [6]bool + _, _, _ = yysep3249, yyq3249, yy2arr3249 + const yyr3249 bool = false + yyq3249[2] = true + yyq3249[3] = true + yyq3249[4] = x.Reason != "" + yyq3249[5] = x.Message != "" + var yynn3249 int + if yyr3249 || yy2arr3249 { r.EncodeArrayStart(6) } else { - yynn3166 = 2 - for _, b := range yyq3166 { + yynn3249 = 2 + for _, b := range yyq3249 { if b { - yynn3166++ + yynn3249++ } } - r.EncodeMapStart(yynn3166) - yynn3166 = 0 + r.EncodeMapStart(yynn3249) + yynn3249 = 0 } - if yyr3166 || yy2arr3166 { + if yyr3249 || yy2arr3249 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) x.Type.CodecEncodeSelf(e) } else { @@ -40560,7 +41640,7 @@ func (x *NodeCondition) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapValue1234) x.Type.CodecEncodeSelf(e) } - if yyr3166 || yy2arr3166 { + if yyr3249 || yy2arr3249 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) x.Status.CodecEncodeSelf(e) } else { @@ -40569,85 +41649,85 @@ func (x *NodeCondition) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapValue1234) x.Status.CodecEncodeSelf(e) } - if yyr3166 || yy2arr3166 { + if yyr3249 || yy2arr3249 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3166[2] { - yy3170 := &x.LastHeartbeatTime - yym3171 := z.EncBinary() - _ = yym3171 + if yyq3249[2] { + yy3253 := &x.LastHeartbeatTime + yym3254 := z.EncBinary() + _ = yym3254 if false { - } else if z.HasExtensions() && z.EncExt(yy3170) { - } else if yym3171 { - z.EncBinaryMarshal(yy3170) - } else if !yym3171 && z.IsJSONHandle() { - z.EncJSONMarshal(yy3170) + } else if z.HasExtensions() && z.EncExt(yy3253) { + } else if yym3254 { + z.EncBinaryMarshal(yy3253) + } else if !yym3254 && z.IsJSONHandle() { + z.EncJSONMarshal(yy3253) } else { - z.EncFallback(yy3170) + z.EncFallback(yy3253) } } else { r.EncodeNil() } } else { - if yyq3166[2] { + if yyq3249[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("lastHeartbeatTime")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy3172 := &x.LastHeartbeatTime - yym3173 := z.EncBinary() - _ = yym3173 + yy3255 := &x.LastHeartbeatTime + yym3256 := z.EncBinary() + _ = yym3256 if false { - } else if z.HasExtensions() && z.EncExt(yy3172) { - } else if yym3173 { - z.EncBinaryMarshal(yy3172) - } else if !yym3173 && z.IsJSONHandle() { - z.EncJSONMarshal(yy3172) + } else if z.HasExtensions() && z.EncExt(yy3255) { + } else if yym3256 { + z.EncBinaryMarshal(yy3255) + } else if !yym3256 && z.IsJSONHandle() { + z.EncJSONMarshal(yy3255) } else { - z.EncFallback(yy3172) + z.EncFallback(yy3255) } } } - if yyr3166 || yy2arr3166 { + if yyr3249 || yy2arr3249 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3166[3] { - yy3175 := &x.LastTransitionTime - yym3176 := z.EncBinary() - _ = yym3176 + if yyq3249[3] { + yy3258 := &x.LastTransitionTime + yym3259 := z.EncBinary() + _ = yym3259 if false { - } else if z.HasExtensions() && z.EncExt(yy3175) { - } else if yym3176 { - z.EncBinaryMarshal(yy3175) - } else if !yym3176 && z.IsJSONHandle() { - z.EncJSONMarshal(yy3175) + } else if z.HasExtensions() && z.EncExt(yy3258) { + } else if yym3259 { + z.EncBinaryMarshal(yy3258) + } else if !yym3259 && z.IsJSONHandle() { + z.EncJSONMarshal(yy3258) } else { - z.EncFallback(yy3175) + z.EncFallback(yy3258) } } else { r.EncodeNil() } } else { - if yyq3166[3] { + if yyq3249[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("lastTransitionTime")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy3177 := &x.LastTransitionTime - yym3178 := z.EncBinary() - _ = yym3178 + yy3260 := &x.LastTransitionTime + yym3261 := z.EncBinary() + _ = yym3261 if false { - } else if z.HasExtensions() && z.EncExt(yy3177) { - } else if yym3178 { - z.EncBinaryMarshal(yy3177) - } else if !yym3178 && z.IsJSONHandle() { - z.EncJSONMarshal(yy3177) + } else if z.HasExtensions() && z.EncExt(yy3260) { + } else if yym3261 { + z.EncBinaryMarshal(yy3260) + } else if !yym3261 && z.IsJSONHandle() { + z.EncJSONMarshal(yy3260) } else { - z.EncFallback(yy3177) + z.EncFallback(yy3260) } } } - if yyr3166 || yy2arr3166 { + if yyr3249 || yy2arr3249 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3166[4] { - yym3180 := z.EncBinary() - _ = yym3180 + if yyq3249[4] { + yym3263 := z.EncBinary() + _ = yym3263 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Reason)) @@ -40656,23 +41736,23 @@ func (x *NodeCondition) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq3166[4] { + if yyq3249[4] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("reason")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym3181 := z.EncBinary() - _ = yym3181 + yym3264 := z.EncBinary() + _ = yym3264 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Reason)) } } } - if yyr3166 || yy2arr3166 { + if yyr3249 || yy2arr3249 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3166[5] { - yym3183 := z.EncBinary() - _ = yym3183 + if yyq3249[5] { + yym3266 := z.EncBinary() + _ = yym3266 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Message)) @@ -40681,19 +41761,19 @@ func (x *NodeCondition) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq3166[5] { + if yyq3249[5] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("message")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym3184 := z.EncBinary() - _ = yym3184 + yym3267 := z.EncBinary() + _ = yym3267 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Message)) } } } - if yyr3166 || yy2arr3166 { + if yyr3249 || yy2arr3249 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -40706,25 +41786,25 @@ func (x *NodeCondition) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym3185 := z.DecBinary() - _ = yym3185 + yym3268 := z.DecBinary() + _ = yym3268 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct3186 := r.ContainerType() - if yyct3186 == codecSelferValueTypeMap1234 { - yyl3186 := r.ReadMapStart() - if yyl3186 == 0 { + yyct3269 := r.ContainerType() + if yyct3269 == codecSelferValueTypeMap1234 { + yyl3269 := r.ReadMapStart() + if yyl3269 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl3186, d) + x.codecDecodeSelfFromMap(yyl3269, d) } - } else if yyct3186 == codecSelferValueTypeArray1234 { - yyl3186 := r.ReadArrayStart() - if yyl3186 == 0 { + } else if yyct3269 == codecSelferValueTypeArray1234 { + yyl3269 := r.ReadArrayStart() + if yyl3269 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl3186, d) + x.codecDecodeSelfFromArray(yyl3269, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -40736,12 +41816,12 @@ 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 { + var yys3270Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys3270Slc + var yyhl3270 bool = l >= 0 + for yyj3270 := 0; ; yyj3270++ { + if yyhl3270 { + if yyj3270 >= l { break } } else { @@ -40750,10 +41830,10 @@ func (x *NodeCondition) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3187Slc = r.DecodeBytes(yys3187Slc, true, true) - yys3187 := string(yys3187Slc) + yys3270Slc = r.DecodeBytes(yys3270Slc, true, true) + yys3270 := string(yys3270Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3187 { + switch yys3270 { case "type": if r.TryDecodeAsNil() { x.Type = "" @@ -40770,34 +41850,34 @@ func (x *NodeCondition) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.LastHeartbeatTime = pkg2_unversioned.Time{} } else { - yyv3190 := &x.LastHeartbeatTime - yym3191 := z.DecBinary() - _ = yym3191 + yyv3273 := &x.LastHeartbeatTime + yym3274 := z.DecBinary() + _ = yym3274 if false { - } else if z.HasExtensions() && z.DecExt(yyv3190) { - } else if yym3191 { - z.DecBinaryUnmarshal(yyv3190) - } else if !yym3191 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv3190) + } else if z.HasExtensions() && z.DecExt(yyv3273) { + } else if yym3274 { + z.DecBinaryUnmarshal(yyv3273) + } else if !yym3274 && z.IsJSONHandle() { + z.DecJSONUnmarshal(yyv3273) } else { - z.DecFallback(yyv3190, false) + z.DecFallback(yyv3273, false) } } case "lastTransitionTime": if r.TryDecodeAsNil() { x.LastTransitionTime = pkg2_unversioned.Time{} } else { - yyv3192 := &x.LastTransitionTime - yym3193 := z.DecBinary() - _ = yym3193 + yyv3275 := &x.LastTransitionTime + yym3276 := z.DecBinary() + _ = yym3276 if false { - } else if z.HasExtensions() && z.DecExt(yyv3192) { - } else if yym3193 { - z.DecBinaryUnmarshal(yyv3192) - } else if !yym3193 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv3192) + } else if z.HasExtensions() && z.DecExt(yyv3275) { + } else if yym3276 { + z.DecBinaryUnmarshal(yyv3275) + } else if !yym3276 && z.IsJSONHandle() { + z.DecJSONUnmarshal(yyv3275) } else { - z.DecFallback(yyv3192, false) + z.DecFallback(yyv3275, false) } } case "reason": @@ -40813,9 +41893,9 @@ func (x *NodeCondition) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { x.Message = string(r.DecodeString()) } default: - z.DecStructFieldNotFound(-1, yys3187) - } // end switch yys3187 - } // end for yyj3187 + z.DecStructFieldNotFound(-1, yys3270) + } // end switch yys3270 + } // end for yyj3270 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -40823,16 +41903,16 @@ 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 + var yyj3279 int + var yyb3279 bool + var yyhl3279 bool = l >= 0 + yyj3279++ + if yyhl3279 { + yyb3279 = yyj3279 > l } else { - yyb3196 = r.CheckBreak() + yyb3279 = r.CheckBreak() } - if yyb3196 { + if yyb3279 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -40842,13 +41922,13 @@ func (x *NodeCondition) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.Type = NodeConditionType(r.DecodeString()) } - yyj3196++ - if yyhl3196 { - yyb3196 = yyj3196 > l + yyj3279++ + if yyhl3279 { + yyb3279 = yyj3279 > l } else { - yyb3196 = r.CheckBreak() + yyb3279 = r.CheckBreak() } - if yyb3196 { + if yyb3279 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -40858,13 +41938,13 @@ func (x *NodeCondition) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.Status = ConditionStatus(r.DecodeString()) } - yyj3196++ - if yyhl3196 { - yyb3196 = yyj3196 > l + yyj3279++ + if yyhl3279 { + yyb3279 = yyj3279 > l } else { - yyb3196 = r.CheckBreak() + yyb3279 = r.CheckBreak() } - if yyb3196 { + if yyb3279 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -40872,26 +41952,26 @@ func (x *NodeCondition) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.LastHeartbeatTime = pkg2_unversioned.Time{} } else { - yyv3199 := &x.LastHeartbeatTime - yym3200 := z.DecBinary() - _ = yym3200 + yyv3282 := &x.LastHeartbeatTime + yym3283 := z.DecBinary() + _ = yym3283 if false { - } else if z.HasExtensions() && z.DecExt(yyv3199) { - } else if yym3200 { - z.DecBinaryUnmarshal(yyv3199) - } else if !yym3200 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv3199) + } else if z.HasExtensions() && z.DecExt(yyv3282) { + } else if yym3283 { + z.DecBinaryUnmarshal(yyv3282) + } else if !yym3283 && z.IsJSONHandle() { + z.DecJSONUnmarshal(yyv3282) } else { - z.DecFallback(yyv3199, false) + z.DecFallback(yyv3282, false) } } - yyj3196++ - if yyhl3196 { - yyb3196 = yyj3196 > l + yyj3279++ + if yyhl3279 { + yyb3279 = yyj3279 > l } else { - yyb3196 = r.CheckBreak() + yyb3279 = r.CheckBreak() } - if yyb3196 { + if yyb3279 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -40899,26 +41979,26 @@ func (x *NodeCondition) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.LastTransitionTime = pkg2_unversioned.Time{} } else { - yyv3201 := &x.LastTransitionTime - yym3202 := z.DecBinary() - _ = yym3202 + yyv3284 := &x.LastTransitionTime + yym3285 := z.DecBinary() + _ = yym3285 if false { - } else if z.HasExtensions() && z.DecExt(yyv3201) { - } else if yym3202 { - z.DecBinaryUnmarshal(yyv3201) - } else if !yym3202 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv3201) + } else if z.HasExtensions() && z.DecExt(yyv3284) { + } else if yym3285 { + z.DecBinaryUnmarshal(yyv3284) + } else if !yym3285 && z.IsJSONHandle() { + z.DecJSONUnmarshal(yyv3284) } else { - z.DecFallback(yyv3201, false) + z.DecFallback(yyv3284, false) } } - yyj3196++ - if yyhl3196 { - yyb3196 = yyj3196 > l + yyj3279++ + if yyhl3279 { + yyb3279 = yyj3279 > l } else { - yyb3196 = r.CheckBreak() + yyb3279 = r.CheckBreak() } - if yyb3196 { + if yyb3279 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -40928,13 +42008,13 @@ func (x *NodeCondition) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.Reason = string(r.DecodeString()) } - yyj3196++ - if yyhl3196 { - yyb3196 = yyj3196 > l + yyj3279++ + if yyhl3279 { + yyb3279 = yyj3279 > l } else { - yyb3196 = r.CheckBreak() + yyb3279 = r.CheckBreak() } - if yyb3196 { + if yyb3279 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -40945,17 +42025,17 @@ func (x *NodeCondition) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { x.Message = string(r.DecodeString()) } for { - yyj3196++ - if yyhl3196 { - yyb3196 = yyj3196 > l + yyj3279++ + if yyhl3279 { + yyb3279 = yyj3279 > l } else { - yyb3196 = r.CheckBreak() + yyb3279 = r.CheckBreak() } - if yyb3196 { + if yyb3279 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj3196-1, "") + z.DecStructFieldNotFound(yyj3279-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -40964,8 +42044,8 @@ func (x NodeAddressType) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r - yym3205 := z.EncBinary() - _ = yym3205 + yym3288 := z.EncBinary() + _ = yym3288 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { @@ -40977,8 +42057,8 @@ func (x *NodeAddressType) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym3206 := z.DecBinary() - _ = yym3206 + yym3289 := z.DecBinary() + _ = yym3289 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { @@ -40993,30 +42073,30 @@ func (x *NodeAddress) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym3207 := z.EncBinary() - _ = yym3207 + yym3290 := z.EncBinary() + _ = yym3290 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep3208 := !z.EncBinary() - yy2arr3208 := z.EncBasicHandle().StructToArray - var yyq3208 [2]bool - _, _, _ = yysep3208, yyq3208, yy2arr3208 - const yyr3208 bool = false - var yynn3208 int - if yyr3208 || yy2arr3208 { + yysep3291 := !z.EncBinary() + yy2arr3291 := z.EncBasicHandle().StructToArray + var yyq3291 [2]bool + _, _, _ = yysep3291, yyq3291, yy2arr3291 + const yyr3291 bool = false + var yynn3291 int + if yyr3291 || yy2arr3291 { r.EncodeArrayStart(2) } else { - yynn3208 = 2 - for _, b := range yyq3208 { + yynn3291 = 2 + for _, b := range yyq3291 { if b { - yynn3208++ + yynn3291++ } } - r.EncodeMapStart(yynn3208) - yynn3208 = 0 + r.EncodeMapStart(yynn3291) + yynn3291 = 0 } - if yyr3208 || yy2arr3208 { + if yyr3291 || yy2arr3291 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) x.Type.CodecEncodeSelf(e) } else { @@ -41025,10 +42105,10 @@ func (x *NodeAddress) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapValue1234) x.Type.CodecEncodeSelf(e) } - if yyr3208 || yy2arr3208 { + if yyr3291 || yy2arr3291 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym3211 := z.EncBinary() - _ = yym3211 + yym3294 := z.EncBinary() + _ = yym3294 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Address)) @@ -41037,14 +42117,14 @@ func (x *NodeAddress) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("address")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym3212 := z.EncBinary() - _ = yym3212 + yym3295 := z.EncBinary() + _ = yym3295 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Address)) } } - if yyr3208 || yy2arr3208 { + if yyr3291 || yy2arr3291 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -41057,25 +42137,25 @@ func (x *NodeAddress) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym3213 := z.DecBinary() - _ = yym3213 + yym3296 := z.DecBinary() + _ = yym3296 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct3214 := r.ContainerType() - if yyct3214 == codecSelferValueTypeMap1234 { - yyl3214 := r.ReadMapStart() - if yyl3214 == 0 { + yyct3297 := r.ContainerType() + if yyct3297 == codecSelferValueTypeMap1234 { + yyl3297 := r.ReadMapStart() + if yyl3297 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl3214, d) + x.codecDecodeSelfFromMap(yyl3297, d) } - } else if yyct3214 == codecSelferValueTypeArray1234 { - yyl3214 := r.ReadArrayStart() - if yyl3214 == 0 { + } else if yyct3297 == codecSelferValueTypeArray1234 { + yyl3297 := r.ReadArrayStart() + if yyl3297 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl3214, d) + x.codecDecodeSelfFromArray(yyl3297, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -41087,12 +42167,12 @@ func (x *NodeAddress) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys3215Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3215Slc - var yyhl3215 bool = l >= 0 - for yyj3215 := 0; ; yyj3215++ { - if yyhl3215 { - if yyj3215 >= l { + var yys3298Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys3298Slc + var yyhl3298 bool = l >= 0 + for yyj3298 := 0; ; yyj3298++ { + if yyhl3298 { + if yyj3298 >= l { break } } else { @@ -41101,10 +42181,10 @@ func (x *NodeAddress) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3215Slc = r.DecodeBytes(yys3215Slc, true, true) - yys3215 := string(yys3215Slc) + yys3298Slc = r.DecodeBytes(yys3298Slc, true, true) + yys3298 := string(yys3298Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3215 { + switch yys3298 { case "type": if r.TryDecodeAsNil() { x.Type = "" @@ -41118,9 +42198,9 @@ func (x *NodeAddress) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { x.Address = string(r.DecodeString()) } default: - z.DecStructFieldNotFound(-1, yys3215) - } // end switch yys3215 - } // end for yyj3215 + z.DecStructFieldNotFound(-1, yys3298) + } // end switch yys3298 + } // end for yyj3298 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -41128,16 +42208,16 @@ func (x *NodeAddress) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj3218 int - var yyb3218 bool - var yyhl3218 bool = l >= 0 - yyj3218++ - if yyhl3218 { - yyb3218 = yyj3218 > l + var yyj3301 int + var yyb3301 bool + var yyhl3301 bool = l >= 0 + yyj3301++ + if yyhl3301 { + yyb3301 = yyj3301 > l } else { - yyb3218 = r.CheckBreak() + yyb3301 = r.CheckBreak() } - if yyb3218 { + if yyb3301 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -41147,13 +42227,13 @@ func (x *NodeAddress) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.Type = NodeAddressType(r.DecodeString()) } - yyj3218++ - if yyhl3218 { - yyb3218 = yyj3218 > l + yyj3301++ + if yyhl3301 { + yyb3301 = yyj3301 > l } else { - yyb3218 = r.CheckBreak() + yyb3301 = r.CheckBreak() } - if yyb3218 { + if yyb3301 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -41164,17 +42244,17 @@ func (x *NodeAddress) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { x.Address = string(r.DecodeString()) } for { - yyj3218++ - if yyhl3218 { - yyb3218 = yyj3218 > l + yyj3301++ + if yyhl3301 { + yyb3301 = yyj3301 > l } else { - yyb3218 = r.CheckBreak() + yyb3301 = r.CheckBreak() } - if yyb3218 { + if yyb3301 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj3218-1, "") + z.DecStructFieldNotFound(yyj3301-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -41186,33 +42266,33 @@ func (x *NodeResources) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym3221 := z.EncBinary() - _ = yym3221 + yym3304 := z.EncBinary() + _ = yym3304 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - 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 { + yysep3305 := !z.EncBinary() + yy2arr3305 := z.EncBasicHandle().StructToArray + var yyq3305 [1]bool + _, _, _ = yysep3305, yyq3305, yy2arr3305 + const yyr3305 bool = false + yyq3305[0] = len(x.Capacity) != 0 + var yynn3305 int + if yyr3305 || yy2arr3305 { r.EncodeArrayStart(1) } else { - yynn3222 = 0 - for _, b := range yyq3222 { + yynn3305 = 0 + for _, b := range yyq3305 { if b { - yynn3222++ + yynn3305++ } } - r.EncodeMapStart(yynn3222) - yynn3222 = 0 + r.EncodeMapStart(yynn3305) + yynn3305 = 0 } - if yyr3222 || yy2arr3222 { + if yyr3305 || yy2arr3305 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3222[0] { + if yyq3305[0] { if x.Capacity == nil { r.EncodeNil() } else { @@ -41222,7 +42302,7 @@ func (x *NodeResources) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq3222[0] { + if yyq3305[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("capacity")) z.EncSendContainerState(codecSelfer_containerMapValue1234) @@ -41233,7 +42313,7 @@ func (x *NodeResources) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr3222 || yy2arr3222 { + if yyr3305 || yy2arr3305 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -41246,25 +42326,25 @@ func (x *NodeResources) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym3224 := z.DecBinary() - _ = yym3224 + yym3307 := z.DecBinary() + _ = yym3307 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct3225 := r.ContainerType() - if yyct3225 == codecSelferValueTypeMap1234 { - yyl3225 := r.ReadMapStart() - if yyl3225 == 0 { + yyct3308 := r.ContainerType() + if yyct3308 == codecSelferValueTypeMap1234 { + yyl3308 := r.ReadMapStart() + if yyl3308 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl3225, d) + x.codecDecodeSelfFromMap(yyl3308, d) } - } else if yyct3225 == codecSelferValueTypeArray1234 { - yyl3225 := r.ReadArrayStart() - if yyl3225 == 0 { + } else if yyct3308 == codecSelferValueTypeArray1234 { + yyl3308 := r.ReadArrayStart() + if yyl3308 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl3225, d) + x.codecDecodeSelfFromArray(yyl3308, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -41276,12 +42356,12 @@ func (x *NodeResources) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys3226Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3226Slc - var yyhl3226 bool = l >= 0 - for yyj3226 := 0; ; yyj3226++ { - if yyhl3226 { - if yyj3226 >= l { + var yys3309Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys3309Slc + var yyhl3309 bool = l >= 0 + for yyj3309 := 0; ; yyj3309++ { + if yyhl3309 { + if yyj3309 >= l { break } } else { @@ -41290,21 +42370,21 @@ func (x *NodeResources) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3226Slc = r.DecodeBytes(yys3226Slc, true, true) - yys3226 := string(yys3226Slc) + yys3309Slc = r.DecodeBytes(yys3309Slc, true, true) + yys3309 := string(yys3309Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3226 { + switch yys3309 { case "capacity": if r.TryDecodeAsNil() { x.Capacity = nil } else { - yyv3227 := &x.Capacity - yyv3227.CodecDecodeSelf(d) + yyv3310 := &x.Capacity + yyv3310.CodecDecodeSelf(d) } default: - z.DecStructFieldNotFound(-1, yys3226) - } // end switch yys3226 - } // end for yyj3226 + z.DecStructFieldNotFound(-1, yys3309) + } // end switch yys3309 + } // end for yyj3309 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -41312,16 +42392,16 @@ func (x *NodeResources) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj3228 int - var yyb3228 bool - var yyhl3228 bool = l >= 0 - yyj3228++ - if yyhl3228 { - yyb3228 = yyj3228 > l + var yyj3311 int + var yyb3311 bool + var yyhl3311 bool = l >= 0 + yyj3311++ + if yyhl3311 { + yyb3311 = yyj3311 > l } else { - yyb3228 = r.CheckBreak() + yyb3311 = r.CheckBreak() } - if yyb3228 { + if yyb3311 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -41329,21 +42409,21 @@ func (x *NodeResources) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.Capacity = nil } else { - yyv3229 := &x.Capacity - yyv3229.CodecDecodeSelf(d) + yyv3312 := &x.Capacity + yyv3312.CodecDecodeSelf(d) } for { - yyj3228++ - if yyhl3228 { - yyb3228 = yyj3228 > l + yyj3311++ + if yyhl3311 { + yyb3311 = yyj3311 > l } else { - yyb3228 = r.CheckBreak() + yyb3311 = r.CheckBreak() } - if yyb3228 { + if yyb3311 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj3228-1, "") + z.DecStructFieldNotFound(yyj3311-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -41352,8 +42432,8 @@ func (x ResourceName) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r - yym3230 := z.EncBinary() - _ = yym3230 + yym3313 := z.EncBinary() + _ = yym3313 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { @@ -41365,8 +42445,8 @@ func (x *ResourceName) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym3231 := z.DecBinary() - _ = yym3231 + yym3314 := z.DecBinary() + _ = yym3314 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { @@ -41381,8 +42461,8 @@ func (x ResourceList) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym3232 := z.EncBinary() - _ = yym3232 + yym3315 := z.EncBinary() + _ = yym3315 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { @@ -41395,8 +42475,8 @@ func (x *ResourceList) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym3233 := z.DecBinary() - _ = yym3233 + yym3316 := z.DecBinary() + _ = yym3316 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { @@ -41411,39 +42491,39 @@ func (x *Node) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym3234 := z.EncBinary() - _ = yym3234 + yym3317 := z.EncBinary() + _ = yym3317 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - 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 { + yysep3318 := !z.EncBinary() + yy2arr3318 := z.EncBasicHandle().StructToArray + var yyq3318 [5]bool + _, _, _ = yysep3318, yyq3318, yy2arr3318 + const yyr3318 bool = false + yyq3318[0] = x.Kind != "" + yyq3318[1] = x.APIVersion != "" + yyq3318[2] = true + yyq3318[3] = true + yyq3318[4] = true + var yynn3318 int + if yyr3318 || yy2arr3318 { r.EncodeArrayStart(5) } else { - yynn3235 = 0 - for _, b := range yyq3235 { + yynn3318 = 0 + for _, b := range yyq3318 { if b { - yynn3235++ + yynn3318++ } } - r.EncodeMapStart(yynn3235) - yynn3235 = 0 + r.EncodeMapStart(yynn3318) + yynn3318 = 0 } - if yyr3235 || yy2arr3235 { + if yyr3318 || yy2arr3318 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3235[0] { - yym3237 := z.EncBinary() - _ = yym3237 + if yyq3318[0] { + yym3320 := z.EncBinary() + _ = yym3320 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) @@ -41452,23 +42532,23 @@ func (x *Node) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq3235[0] { + if yyq3318[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym3238 := z.EncBinary() - _ = yym3238 + yym3321 := z.EncBinary() + _ = yym3321 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } - if yyr3235 || yy2arr3235 { + if yyr3318 || yy2arr3318 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3235[1] { - yym3240 := z.EncBinary() - _ = yym3240 + if yyq3318[1] { + yym3323 := z.EncBinary() + _ = yym3323 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) @@ -41477,70 +42557,70 @@ func (x *Node) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq3235[1] { + if yyq3318[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym3241 := z.EncBinary() - _ = yym3241 + yym3324 := z.EncBinary() + _ = yym3324 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } - if yyr3235 || yy2arr3235 { + if yyr3318 || yy2arr3318 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3235[2] { - yy3243 := &x.ObjectMeta - yy3243.CodecEncodeSelf(e) + if yyq3318[2] { + yy3326 := &x.ObjectMeta + yy3326.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { - if yyq3235[2] { + if yyq3318[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy3244 := &x.ObjectMeta - yy3244.CodecEncodeSelf(e) + yy3327 := &x.ObjectMeta + yy3327.CodecEncodeSelf(e) } } - if yyr3235 || yy2arr3235 { + if yyr3318 || yy2arr3318 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3235[3] { - yy3246 := &x.Spec - yy3246.CodecEncodeSelf(e) + if yyq3318[3] { + yy3329 := &x.Spec + yy3329.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { - if yyq3235[3] { + if yyq3318[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("spec")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy3247 := &x.Spec - yy3247.CodecEncodeSelf(e) + yy3330 := &x.Spec + yy3330.CodecEncodeSelf(e) } } - if yyr3235 || yy2arr3235 { + if yyr3318 || yy2arr3318 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3235[4] { - yy3249 := &x.Status - yy3249.CodecEncodeSelf(e) + if yyq3318[4] { + yy3332 := &x.Status + yy3332.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { - if yyq3235[4] { + if yyq3318[4] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("status")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy3250 := &x.Status - yy3250.CodecEncodeSelf(e) + yy3333 := &x.Status + yy3333.CodecEncodeSelf(e) } } - if yyr3235 || yy2arr3235 { + if yyr3318 || yy2arr3318 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -41553,25 +42633,25 @@ func (x *Node) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym3251 := z.DecBinary() - _ = yym3251 + yym3334 := z.DecBinary() + _ = yym3334 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct3252 := r.ContainerType() - if yyct3252 == codecSelferValueTypeMap1234 { - yyl3252 := r.ReadMapStart() - if yyl3252 == 0 { + yyct3335 := r.ContainerType() + if yyct3335 == codecSelferValueTypeMap1234 { + yyl3335 := r.ReadMapStart() + if yyl3335 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl3252, d) + x.codecDecodeSelfFromMap(yyl3335, d) } - } else if yyct3252 == codecSelferValueTypeArray1234 { - yyl3252 := r.ReadArrayStart() - if yyl3252 == 0 { + } else if yyct3335 == codecSelferValueTypeArray1234 { + yyl3335 := r.ReadArrayStart() + if yyl3335 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl3252, d) + x.codecDecodeSelfFromArray(yyl3335, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -41583,12 +42663,12 @@ func (x *Node) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys3253Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3253Slc - var yyhl3253 bool = l >= 0 - for yyj3253 := 0; ; yyj3253++ { - if yyhl3253 { - if yyj3253 >= l { + 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 { @@ -41597,10 +42677,10 @@ func (x *Node) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3253Slc = r.DecodeBytes(yys3253Slc, true, true) - yys3253 := string(yys3253Slc) + yys3336Slc = r.DecodeBytes(yys3336Slc, true, true) + yys3336 := string(yys3336Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3253 { + switch yys3336 { case "kind": if r.TryDecodeAsNil() { x.Kind = "" @@ -41617,27 +42697,27 @@ func (x *Node) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.ObjectMeta = ObjectMeta{} } else { - yyv3256 := &x.ObjectMeta - yyv3256.CodecDecodeSelf(d) + yyv3339 := &x.ObjectMeta + yyv3339.CodecDecodeSelf(d) } case "spec": if r.TryDecodeAsNil() { x.Spec = NodeSpec{} } else { - yyv3257 := &x.Spec - yyv3257.CodecDecodeSelf(d) + yyv3340 := &x.Spec + yyv3340.CodecDecodeSelf(d) } case "status": if r.TryDecodeAsNil() { x.Status = NodeStatus{} } else { - yyv3258 := &x.Status - yyv3258.CodecDecodeSelf(d) + yyv3341 := &x.Status + yyv3341.CodecDecodeSelf(d) } default: - z.DecStructFieldNotFound(-1, yys3253) - } // end switch yys3253 - } // end for yyj3253 + z.DecStructFieldNotFound(-1, yys3336) + } // end switch yys3336 + } // end for yyj3336 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -41645,16 +42725,16 @@ func (x *Node) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj3259 int - var yyb3259 bool - var yyhl3259 bool = l >= 0 - yyj3259++ - if yyhl3259 { - yyb3259 = yyj3259 > l + var yyj3342 int + var yyb3342 bool + var yyhl3342 bool = l >= 0 + yyj3342++ + if yyhl3342 { + yyb3342 = yyj3342 > l } else { - yyb3259 = r.CheckBreak() + yyb3342 = r.CheckBreak() } - if yyb3259 { + if yyb3342 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -41664,13 +42744,13 @@ func (x *Node) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.Kind = string(r.DecodeString()) } - yyj3259++ - if yyhl3259 { - yyb3259 = yyj3259 > l + yyj3342++ + if yyhl3342 { + yyb3342 = yyj3342 > l } else { - yyb3259 = r.CheckBreak() + yyb3342 = r.CheckBreak() } - if yyb3259 { + if yyb3342 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -41680,13 +42760,13 @@ func (x *Node) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.APIVersion = string(r.DecodeString()) } - yyj3259++ - if yyhl3259 { - yyb3259 = yyj3259 > l + yyj3342++ + if yyhl3342 { + yyb3342 = yyj3342 > l } else { - yyb3259 = r.CheckBreak() + yyb3342 = r.CheckBreak() } - if yyb3259 { + if yyb3342 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -41694,16 +42774,16 @@ func (x *Node) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.ObjectMeta = ObjectMeta{} } else { - yyv3262 := &x.ObjectMeta - yyv3262.CodecDecodeSelf(d) + yyv3345 := &x.ObjectMeta + yyv3345.CodecDecodeSelf(d) } - yyj3259++ - if yyhl3259 { - yyb3259 = yyj3259 > l + yyj3342++ + if yyhl3342 { + yyb3342 = yyj3342 > l } else { - yyb3259 = r.CheckBreak() + yyb3342 = r.CheckBreak() } - if yyb3259 { + if yyb3342 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -41711,16 +42791,16 @@ func (x *Node) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.Spec = NodeSpec{} } else { - yyv3263 := &x.Spec - yyv3263.CodecDecodeSelf(d) + yyv3346 := &x.Spec + yyv3346.CodecDecodeSelf(d) } - yyj3259++ - if yyhl3259 { - yyb3259 = yyj3259 > l + yyj3342++ + if yyhl3342 { + yyb3342 = yyj3342 > l } else { - yyb3259 = r.CheckBreak() + yyb3342 = r.CheckBreak() } - if yyb3259 { + if yyb3342 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -41728,21 +42808,21 @@ func (x *Node) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.Status = NodeStatus{} } else { - yyv3264 := &x.Status - yyv3264.CodecDecodeSelf(d) + yyv3347 := &x.Status + yyv3347.CodecDecodeSelf(d) } for { - yyj3259++ - if yyhl3259 { - yyb3259 = yyj3259 > l + yyj3342++ + if yyhl3342 { + yyb3342 = yyj3342 > l } else { - yyb3259 = r.CheckBreak() + yyb3342 = r.CheckBreak() } - if yyb3259 { + if yyb3342 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj3259-1, "") + z.DecStructFieldNotFound(yyj3342-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -41754,37 +42834,37 @@ func (x *NodeList) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym3265 := z.EncBinary() - _ = yym3265 + yym3348 := z.EncBinary() + _ = yym3348 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - 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 { + yysep3349 := !z.EncBinary() + yy2arr3349 := z.EncBasicHandle().StructToArray + var yyq3349 [4]bool + _, _, _ = yysep3349, yyq3349, yy2arr3349 + const yyr3349 bool = false + yyq3349[0] = x.Kind != "" + yyq3349[1] = x.APIVersion != "" + yyq3349[2] = true + var yynn3349 int + if yyr3349 || yy2arr3349 { r.EncodeArrayStart(4) } else { - yynn3266 = 1 - for _, b := range yyq3266 { + yynn3349 = 1 + for _, b := range yyq3349 { if b { - yynn3266++ + yynn3349++ } } - r.EncodeMapStart(yynn3266) - yynn3266 = 0 + r.EncodeMapStart(yynn3349) + yynn3349 = 0 } - if yyr3266 || yy2arr3266 { + if yyr3349 || yy2arr3349 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3266[0] { - yym3268 := z.EncBinary() - _ = yym3268 + if yyq3349[0] { + yym3351 := z.EncBinary() + _ = yym3351 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) @@ -41793,23 +42873,23 @@ func (x *NodeList) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq3266[0] { + if yyq3349[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym3269 := z.EncBinary() - _ = yym3269 + yym3352 := z.EncBinary() + _ = yym3352 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } - if yyr3266 || yy2arr3266 { + if yyr3349 || yy2arr3349 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3266[1] { - yym3271 := z.EncBinary() - _ = yym3271 + if yyq3349[1] { + yym3354 := z.EncBinary() + _ = yym3354 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) @@ -41818,54 +42898,54 @@ func (x *NodeList) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq3266[1] { + if yyq3349[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym3272 := z.EncBinary() - _ = yym3272 + yym3355 := z.EncBinary() + _ = yym3355 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } - if yyr3266 || yy2arr3266 { + if yyr3349 || yy2arr3349 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3266[2] { - yy3274 := &x.ListMeta - yym3275 := z.EncBinary() - _ = yym3275 + if yyq3349[2] { + yy3357 := &x.ListMeta + yym3358 := z.EncBinary() + _ = yym3358 if false { - } else if z.HasExtensions() && z.EncExt(yy3274) { + } else if z.HasExtensions() && z.EncExt(yy3357) { } else { - z.EncFallback(yy3274) + z.EncFallback(yy3357) } } else { r.EncodeNil() } } else { - if yyq3266[2] { + if yyq3349[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy3276 := &x.ListMeta - yym3277 := z.EncBinary() - _ = yym3277 + yy3359 := &x.ListMeta + yym3360 := z.EncBinary() + _ = yym3360 if false { - } else if z.HasExtensions() && z.EncExt(yy3276) { + } else if z.HasExtensions() && z.EncExt(yy3359) { } else { - z.EncFallback(yy3276) + z.EncFallback(yy3359) } } } - if yyr3266 || yy2arr3266 { + if yyr3349 || yy2arr3349 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.Items == nil { r.EncodeNil() } else { - yym3279 := z.EncBinary() - _ = yym3279 + yym3362 := z.EncBinary() + _ = yym3362 if false { } else { h.encSliceNode(([]Node)(x.Items), e) @@ -41878,15 +42958,15 @@ func (x *NodeList) CodecEncodeSelf(e *codec1978.Encoder) { if x.Items == nil { r.EncodeNil() } else { - yym3280 := z.EncBinary() - _ = yym3280 + yym3363 := z.EncBinary() + _ = yym3363 if false { } else { h.encSliceNode(([]Node)(x.Items), e) } } } - if yyr3266 || yy2arr3266 { + if yyr3349 || yy2arr3349 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -41899,25 +42979,25 @@ func (x *NodeList) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym3281 := z.DecBinary() - _ = yym3281 + yym3364 := z.DecBinary() + _ = yym3364 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct3282 := r.ContainerType() - if yyct3282 == codecSelferValueTypeMap1234 { - yyl3282 := r.ReadMapStart() - if yyl3282 == 0 { + yyct3365 := r.ContainerType() + if yyct3365 == codecSelferValueTypeMap1234 { + yyl3365 := r.ReadMapStart() + if yyl3365 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl3282, d) + x.codecDecodeSelfFromMap(yyl3365, d) } - } else if yyct3282 == codecSelferValueTypeArray1234 { - yyl3282 := r.ReadArrayStart() - if yyl3282 == 0 { + } else if yyct3365 == codecSelferValueTypeArray1234 { + yyl3365 := r.ReadArrayStart() + if yyl3365 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl3282, d) + x.codecDecodeSelfFromArray(yyl3365, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -41929,12 +43009,12 @@ func (x *NodeList) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys3283Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3283Slc - var yyhl3283 bool = l >= 0 - for yyj3283 := 0; ; yyj3283++ { - if yyhl3283 { - if yyj3283 >= l { + var yys3366Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys3366Slc + var yyhl3366 bool = l >= 0 + for yyj3366 := 0; ; yyj3366++ { + if yyhl3366 { + if yyj3366 >= l { break } } else { @@ -41943,10 +43023,10 @@ func (x *NodeList) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3283Slc = r.DecodeBytes(yys3283Slc, true, true) - yys3283 := string(yys3283Slc) + yys3366Slc = r.DecodeBytes(yys3366Slc, true, true) + yys3366 := string(yys3366Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3283 { + switch yys3366 { case "kind": if r.TryDecodeAsNil() { x.Kind = "" @@ -41963,31 +43043,31 @@ func (x *NodeList) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.ListMeta = pkg2_unversioned.ListMeta{} } else { - yyv3286 := &x.ListMeta - yym3287 := z.DecBinary() - _ = yym3287 + yyv3369 := &x.ListMeta + yym3370 := z.DecBinary() + _ = yym3370 if false { - } else if z.HasExtensions() && z.DecExt(yyv3286) { + } else if z.HasExtensions() && z.DecExt(yyv3369) { } else { - z.DecFallback(yyv3286, false) + z.DecFallback(yyv3369, false) } } case "items": if r.TryDecodeAsNil() { x.Items = nil } else { - yyv3288 := &x.Items - yym3289 := z.DecBinary() - _ = yym3289 + yyv3371 := &x.Items + yym3372 := z.DecBinary() + _ = yym3372 if false { } else { - h.decSliceNode((*[]Node)(yyv3288), d) + h.decSliceNode((*[]Node)(yyv3371), d) } } default: - z.DecStructFieldNotFound(-1, yys3283) - } // end switch yys3283 - } // end for yyj3283 + z.DecStructFieldNotFound(-1, yys3366) + } // end switch yys3366 + } // end for yyj3366 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -41995,16 +43075,16 @@ func (x *NodeList) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj3290 int - var yyb3290 bool - var yyhl3290 bool = l >= 0 - yyj3290++ - if yyhl3290 { - yyb3290 = yyj3290 > l + var yyj3373 int + var yyb3373 bool + var yyhl3373 bool = l >= 0 + yyj3373++ + if yyhl3373 { + yyb3373 = yyj3373 > l } else { - yyb3290 = r.CheckBreak() + yyb3373 = r.CheckBreak() } - if yyb3290 { + if yyb3373 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -42014,13 +43094,13 @@ func (x *NodeList) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.Kind = string(r.DecodeString()) } - yyj3290++ - if yyhl3290 { - yyb3290 = yyj3290 > l + yyj3373++ + if yyhl3373 { + yyb3373 = yyj3373 > l } else { - yyb3290 = r.CheckBreak() + yyb3373 = r.CheckBreak() } - if yyb3290 { + if yyb3373 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -42030,13 +43110,13 @@ func (x *NodeList) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.APIVersion = string(r.DecodeString()) } - yyj3290++ - if yyhl3290 { - yyb3290 = yyj3290 > l + yyj3373++ + if yyhl3373 { + yyb3373 = yyj3373 > l } else { - yyb3290 = r.CheckBreak() + yyb3373 = r.CheckBreak() } - if yyb3290 { + if yyb3373 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -42044,22 +43124,22 @@ func (x *NodeList) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.ListMeta = pkg2_unversioned.ListMeta{} } else { - yyv3293 := &x.ListMeta - yym3294 := z.DecBinary() - _ = yym3294 + yyv3376 := &x.ListMeta + yym3377 := z.DecBinary() + _ = yym3377 if false { - } else if z.HasExtensions() && z.DecExt(yyv3293) { + } else if z.HasExtensions() && z.DecExt(yyv3376) { } else { - z.DecFallback(yyv3293, false) + z.DecFallback(yyv3376, false) } } - yyj3290++ - if yyhl3290 { - yyb3290 = yyj3290 > l + yyj3373++ + if yyhl3373 { + yyb3373 = yyj3373 > l } else { - yyb3290 = r.CheckBreak() + yyb3373 = r.CheckBreak() } - if yyb3290 { + if yyb3373 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -42067,26 +43147,26 @@ func (x *NodeList) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.Items = nil } else { - yyv3295 := &x.Items - yym3296 := z.DecBinary() - _ = yym3296 + yyv3378 := &x.Items + yym3379 := z.DecBinary() + _ = yym3379 if false { } else { - h.decSliceNode((*[]Node)(yyv3295), d) + h.decSliceNode((*[]Node)(yyv3378), d) } } for { - yyj3290++ - if yyhl3290 { - yyb3290 = yyj3290 > l + yyj3373++ + if yyhl3373 { + yyb3373 = yyj3373 > l } else { - yyb3290 = r.CheckBreak() + yyb3373 = r.CheckBreak() } - if yyb3290 { + if yyb3373 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj3290-1, "") + z.DecStructFieldNotFound(yyj3373-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -42098,36 +43178,36 @@ func (x *NamespaceSpec) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym3297 := z.EncBinary() - _ = yym3297 + yym3380 := z.EncBinary() + _ = yym3380 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep3298 := !z.EncBinary() - yy2arr3298 := z.EncBasicHandle().StructToArray - var yyq3298 [1]bool - _, _, _ = yysep3298, yyq3298, yy2arr3298 - const yyr3298 bool = false - var yynn3298 int - if yyr3298 || yy2arr3298 { + yysep3381 := !z.EncBinary() + yy2arr3381 := z.EncBasicHandle().StructToArray + var yyq3381 [1]bool + _, _, _ = yysep3381, yyq3381, yy2arr3381 + const yyr3381 bool = false + var yynn3381 int + if yyr3381 || yy2arr3381 { r.EncodeArrayStart(1) } else { - yynn3298 = 1 - for _, b := range yyq3298 { + yynn3381 = 1 + for _, b := range yyq3381 { if b { - yynn3298++ + yynn3381++ } } - r.EncodeMapStart(yynn3298) - yynn3298 = 0 + r.EncodeMapStart(yynn3381) + yynn3381 = 0 } - if yyr3298 || yy2arr3298 { + if yyr3381 || yy2arr3381 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.Finalizers == nil { r.EncodeNil() } else { - yym3300 := z.EncBinary() - _ = yym3300 + yym3383 := z.EncBinary() + _ = yym3383 if false { } else { h.encSliceFinalizerName(([]FinalizerName)(x.Finalizers), e) @@ -42140,15 +43220,15 @@ func (x *NamespaceSpec) CodecEncodeSelf(e *codec1978.Encoder) { if x.Finalizers == nil { r.EncodeNil() } else { - yym3301 := z.EncBinary() - _ = yym3301 + yym3384 := z.EncBinary() + _ = yym3384 if false { } else { h.encSliceFinalizerName(([]FinalizerName)(x.Finalizers), e) } } } - if yyr3298 || yy2arr3298 { + if yyr3381 || yy2arr3381 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -42161,25 +43241,25 @@ func (x *NamespaceSpec) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym3302 := z.DecBinary() - _ = yym3302 + yym3385 := z.DecBinary() + _ = yym3385 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct3303 := r.ContainerType() - if yyct3303 == codecSelferValueTypeMap1234 { - yyl3303 := r.ReadMapStart() - if yyl3303 == 0 { + yyct3386 := r.ContainerType() + if yyct3386 == codecSelferValueTypeMap1234 { + yyl3386 := r.ReadMapStart() + if yyl3386 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl3303, d) + x.codecDecodeSelfFromMap(yyl3386, d) } - } else if yyct3303 == codecSelferValueTypeArray1234 { - yyl3303 := r.ReadArrayStart() - if yyl3303 == 0 { + } else if yyct3386 == codecSelferValueTypeArray1234 { + yyl3386 := r.ReadArrayStart() + if yyl3386 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl3303, d) + x.codecDecodeSelfFromArray(yyl3386, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -42191,12 +43271,12 @@ func (x *NamespaceSpec) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys3304Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3304Slc - var yyhl3304 bool = l >= 0 - for yyj3304 := 0; ; yyj3304++ { - if yyhl3304 { - if yyj3304 >= l { + var yys3387Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys3387Slc + var yyhl3387 bool = l >= 0 + for yyj3387 := 0; ; yyj3387++ { + if yyhl3387 { + if yyj3387 >= l { break } } else { @@ -42205,26 +43285,26 @@ func (x *NamespaceSpec) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3304Slc = r.DecodeBytes(yys3304Slc, true, true) - yys3304 := string(yys3304Slc) + yys3387Slc = r.DecodeBytes(yys3387Slc, true, true) + yys3387 := string(yys3387Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3304 { + switch yys3387 { case "Finalizers": if r.TryDecodeAsNil() { x.Finalizers = nil } else { - yyv3305 := &x.Finalizers - yym3306 := z.DecBinary() - _ = yym3306 + yyv3388 := &x.Finalizers + yym3389 := z.DecBinary() + _ = yym3389 if false { } else { - h.decSliceFinalizerName((*[]FinalizerName)(yyv3305), d) + h.decSliceFinalizerName((*[]FinalizerName)(yyv3388), d) } } default: - z.DecStructFieldNotFound(-1, yys3304) - } // end switch yys3304 - } // end for yyj3304 + z.DecStructFieldNotFound(-1, yys3387) + } // end switch yys3387 + } // end for yyj3387 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -42232,16 +43312,16 @@ func (x *NamespaceSpec) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj3307 int - var yyb3307 bool - var yyhl3307 bool = l >= 0 - yyj3307++ - if yyhl3307 { - yyb3307 = yyj3307 > l + var yyj3390 int + var yyb3390 bool + var yyhl3390 bool = l >= 0 + yyj3390++ + if yyhl3390 { + yyb3390 = yyj3390 > l } else { - yyb3307 = r.CheckBreak() + yyb3390 = r.CheckBreak() } - if yyb3307 { + if yyb3390 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -42249,26 +43329,26 @@ func (x *NamespaceSpec) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.Finalizers = nil } else { - yyv3308 := &x.Finalizers - yym3309 := z.DecBinary() - _ = yym3309 + yyv3391 := &x.Finalizers + yym3392 := z.DecBinary() + _ = yym3392 if false { } else { - h.decSliceFinalizerName((*[]FinalizerName)(yyv3308), d) + h.decSliceFinalizerName((*[]FinalizerName)(yyv3391), d) } } for { - yyj3307++ - if yyhl3307 { - yyb3307 = yyj3307 > l + yyj3390++ + if yyhl3390 { + yyb3390 = yyj3390 > l } else { - yyb3307 = r.CheckBreak() + yyb3390 = r.CheckBreak() } - if yyb3307 { + if yyb3390 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj3307-1, "") + z.DecStructFieldNotFound(yyj3390-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -42277,8 +43357,8 @@ func (x FinalizerName) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r - yym3310 := z.EncBinary() - _ = yym3310 + yym3393 := z.EncBinary() + _ = yym3393 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { @@ -42290,8 +43370,8 @@ func (x *FinalizerName) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym3311 := z.DecBinary() - _ = yym3311 + yym3394 := z.DecBinary() + _ = yym3394 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { @@ -42306,46 +43386,46 @@ func (x *NamespaceStatus) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym3312 := z.EncBinary() - _ = yym3312 + yym3395 := z.EncBinary() + _ = yym3395 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - 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 { + yysep3396 := !z.EncBinary() + yy2arr3396 := z.EncBasicHandle().StructToArray + var yyq3396 [1]bool + _, _, _ = yysep3396, yyq3396, yy2arr3396 + const yyr3396 bool = false + yyq3396[0] = x.Phase != "" + var yynn3396 int + if yyr3396 || yy2arr3396 { r.EncodeArrayStart(1) } else { - yynn3313 = 0 - for _, b := range yyq3313 { + yynn3396 = 0 + for _, b := range yyq3396 { if b { - yynn3313++ + yynn3396++ } } - r.EncodeMapStart(yynn3313) - yynn3313 = 0 + r.EncodeMapStart(yynn3396) + yynn3396 = 0 } - if yyr3313 || yy2arr3313 { + if yyr3396 || yy2arr3396 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3313[0] { + if yyq3396[0] { x.Phase.CodecEncodeSelf(e) } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq3313[0] { + if yyq3396[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("phase")) z.EncSendContainerState(codecSelfer_containerMapValue1234) x.Phase.CodecEncodeSelf(e) } } - if yyr3313 || yy2arr3313 { + if yyr3396 || yy2arr3396 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -42358,25 +43438,25 @@ func (x *NamespaceStatus) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym3315 := z.DecBinary() - _ = yym3315 + yym3398 := z.DecBinary() + _ = yym3398 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct3316 := r.ContainerType() - if yyct3316 == codecSelferValueTypeMap1234 { - yyl3316 := r.ReadMapStart() - if yyl3316 == 0 { + yyct3399 := r.ContainerType() + if yyct3399 == codecSelferValueTypeMap1234 { + yyl3399 := r.ReadMapStart() + if yyl3399 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl3316, d) + x.codecDecodeSelfFromMap(yyl3399, d) } - } else if yyct3316 == codecSelferValueTypeArray1234 { - yyl3316 := r.ReadArrayStart() - if yyl3316 == 0 { + } else if yyct3399 == codecSelferValueTypeArray1234 { + yyl3399 := r.ReadArrayStart() + if yyl3399 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl3316, d) + x.codecDecodeSelfFromArray(yyl3399, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -42388,12 +43468,12 @@ func (x *NamespaceStatus) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys3317Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3317Slc - var yyhl3317 bool = l >= 0 - for yyj3317 := 0; ; yyj3317++ { - if yyhl3317 { - if yyj3317 >= l { + var yys3400Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys3400Slc + var yyhl3400 bool = l >= 0 + for yyj3400 := 0; ; yyj3400++ { + if yyhl3400 { + if yyj3400 >= l { break } } else { @@ -42402,10 +43482,10 @@ func (x *NamespaceStatus) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3317Slc = r.DecodeBytes(yys3317Slc, true, true) - yys3317 := string(yys3317Slc) + yys3400Slc = r.DecodeBytes(yys3400Slc, true, true) + yys3400 := string(yys3400Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3317 { + switch yys3400 { case "phase": if r.TryDecodeAsNil() { x.Phase = "" @@ -42413,9 +43493,9 @@ func (x *NamespaceStatus) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { x.Phase = NamespacePhase(r.DecodeString()) } default: - z.DecStructFieldNotFound(-1, yys3317) - } // end switch yys3317 - } // end for yyj3317 + z.DecStructFieldNotFound(-1, yys3400) + } // end switch yys3400 + } // end for yyj3400 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -42423,16 +43503,16 @@ func (x *NamespaceStatus) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj3319 int - var yyb3319 bool - var yyhl3319 bool = l >= 0 - yyj3319++ - if yyhl3319 { - yyb3319 = yyj3319 > l + var yyj3402 int + var yyb3402 bool + var yyhl3402 bool = l >= 0 + yyj3402++ + if yyhl3402 { + yyb3402 = yyj3402 > l } else { - yyb3319 = r.CheckBreak() + yyb3402 = r.CheckBreak() } - if yyb3319 { + if yyb3402 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -42443,17 +43523,17 @@ func (x *NamespaceStatus) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) x.Phase = NamespacePhase(r.DecodeString()) } for { - yyj3319++ - if yyhl3319 { - yyb3319 = yyj3319 > l + yyj3402++ + if yyhl3402 { + yyb3402 = yyj3402 > l } else { - yyb3319 = r.CheckBreak() + yyb3402 = r.CheckBreak() } - if yyb3319 { + if yyb3402 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj3319-1, "") + z.DecStructFieldNotFound(yyj3402-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -42462,8 +43542,8 @@ func (x NamespacePhase) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r - yym3321 := z.EncBinary() - _ = yym3321 + yym3404 := z.EncBinary() + _ = yym3404 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { @@ -42475,8 +43555,8 @@ func (x *NamespacePhase) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym3322 := z.DecBinary() - _ = yym3322 + yym3405 := z.DecBinary() + _ = yym3405 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { @@ -42491,39 +43571,39 @@ func (x *Namespace) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym3323 := z.EncBinary() - _ = yym3323 + yym3406 := z.EncBinary() + _ = yym3406 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - 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 { + yysep3407 := !z.EncBinary() + yy2arr3407 := z.EncBasicHandle().StructToArray + var yyq3407 [5]bool + _, _, _ = yysep3407, yyq3407, yy2arr3407 + const yyr3407 bool = false + yyq3407[0] = x.Kind != "" + yyq3407[1] = x.APIVersion != "" + yyq3407[2] = true + yyq3407[3] = true + yyq3407[4] = true + var yynn3407 int + if yyr3407 || yy2arr3407 { r.EncodeArrayStart(5) } else { - yynn3324 = 0 - for _, b := range yyq3324 { + yynn3407 = 0 + for _, b := range yyq3407 { if b { - yynn3324++ + yynn3407++ } } - r.EncodeMapStart(yynn3324) - yynn3324 = 0 + r.EncodeMapStart(yynn3407) + yynn3407 = 0 } - if yyr3324 || yy2arr3324 { + if yyr3407 || yy2arr3407 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3324[0] { - yym3326 := z.EncBinary() - _ = yym3326 + if yyq3407[0] { + yym3409 := z.EncBinary() + _ = yym3409 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) @@ -42532,23 +43612,23 @@ func (x *Namespace) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq3324[0] { + if yyq3407[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym3327 := z.EncBinary() - _ = yym3327 + yym3410 := z.EncBinary() + _ = yym3410 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } - if yyr3324 || yy2arr3324 { + if yyr3407 || yy2arr3407 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3324[1] { - yym3329 := z.EncBinary() - _ = yym3329 + if yyq3407[1] { + yym3412 := z.EncBinary() + _ = yym3412 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) @@ -42557,70 +43637,70 @@ func (x *Namespace) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq3324[1] { + if yyq3407[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym3330 := z.EncBinary() - _ = yym3330 + yym3413 := z.EncBinary() + _ = yym3413 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } - if yyr3324 || yy2arr3324 { + if yyr3407 || yy2arr3407 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3324[2] { - yy3332 := &x.ObjectMeta - yy3332.CodecEncodeSelf(e) + if yyq3407[2] { + yy3415 := &x.ObjectMeta + yy3415.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { - if yyq3324[2] { + if yyq3407[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy3333 := &x.ObjectMeta - yy3333.CodecEncodeSelf(e) + yy3416 := &x.ObjectMeta + yy3416.CodecEncodeSelf(e) } } - if yyr3324 || yy2arr3324 { + if yyr3407 || yy2arr3407 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3324[3] { - yy3335 := &x.Spec - yy3335.CodecEncodeSelf(e) + if yyq3407[3] { + yy3418 := &x.Spec + yy3418.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { - if yyq3324[3] { + if yyq3407[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("spec")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy3336 := &x.Spec - yy3336.CodecEncodeSelf(e) + yy3419 := &x.Spec + yy3419.CodecEncodeSelf(e) } } - if yyr3324 || yy2arr3324 { + if yyr3407 || yy2arr3407 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3324[4] { - yy3338 := &x.Status - yy3338.CodecEncodeSelf(e) + if yyq3407[4] { + yy3421 := &x.Status + yy3421.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { - if yyq3324[4] { + if yyq3407[4] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("status")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy3339 := &x.Status - yy3339.CodecEncodeSelf(e) + yy3422 := &x.Status + yy3422.CodecEncodeSelf(e) } } - if yyr3324 || yy2arr3324 { + if yyr3407 || yy2arr3407 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -42633,25 +43713,25 @@ func (x *Namespace) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym3340 := z.DecBinary() - _ = yym3340 + yym3423 := z.DecBinary() + _ = yym3423 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct3341 := r.ContainerType() - if yyct3341 == codecSelferValueTypeMap1234 { - yyl3341 := r.ReadMapStart() - if yyl3341 == 0 { + yyct3424 := r.ContainerType() + if yyct3424 == codecSelferValueTypeMap1234 { + yyl3424 := r.ReadMapStart() + if yyl3424 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl3341, d) + x.codecDecodeSelfFromMap(yyl3424, d) } - } else if yyct3341 == codecSelferValueTypeArray1234 { - yyl3341 := r.ReadArrayStart() - if yyl3341 == 0 { + } else if yyct3424 == codecSelferValueTypeArray1234 { + yyl3424 := r.ReadArrayStart() + if yyl3424 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl3341, d) + x.codecDecodeSelfFromArray(yyl3424, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -42663,12 +43743,12 @@ func (x *Namespace) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys3342Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3342Slc - var yyhl3342 bool = l >= 0 - for yyj3342 := 0; ; yyj3342++ { - if yyhl3342 { - if yyj3342 >= l { + var yys3425Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys3425Slc + var yyhl3425 bool = l >= 0 + for yyj3425 := 0; ; yyj3425++ { + if yyhl3425 { + if yyj3425 >= l { break } } else { @@ -42677,10 +43757,10 @@ func (x *Namespace) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3342Slc = r.DecodeBytes(yys3342Slc, true, true) - yys3342 := string(yys3342Slc) + yys3425Slc = r.DecodeBytes(yys3425Slc, true, true) + yys3425 := string(yys3425Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3342 { + switch yys3425 { case "kind": if r.TryDecodeAsNil() { x.Kind = "" @@ -42697,27 +43777,27 @@ func (x *Namespace) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.ObjectMeta = ObjectMeta{} } else { - yyv3345 := &x.ObjectMeta - yyv3345.CodecDecodeSelf(d) + yyv3428 := &x.ObjectMeta + yyv3428.CodecDecodeSelf(d) } case "spec": if r.TryDecodeAsNil() { x.Spec = NamespaceSpec{} } else { - yyv3346 := &x.Spec - yyv3346.CodecDecodeSelf(d) + yyv3429 := &x.Spec + yyv3429.CodecDecodeSelf(d) } case "status": if r.TryDecodeAsNil() { x.Status = NamespaceStatus{} } else { - yyv3347 := &x.Status - yyv3347.CodecDecodeSelf(d) + yyv3430 := &x.Status + yyv3430.CodecDecodeSelf(d) } default: - z.DecStructFieldNotFound(-1, yys3342) - } // end switch yys3342 - } // end for yyj3342 + z.DecStructFieldNotFound(-1, yys3425) + } // end switch yys3425 + } // end for yyj3425 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -42725,16 +43805,16 @@ func (x *Namespace) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj3348 int - var yyb3348 bool - var yyhl3348 bool = l >= 0 - yyj3348++ - if yyhl3348 { - yyb3348 = yyj3348 > l + var yyj3431 int + var yyb3431 bool + var yyhl3431 bool = l >= 0 + yyj3431++ + if yyhl3431 { + yyb3431 = yyj3431 > l } else { - yyb3348 = r.CheckBreak() + yyb3431 = r.CheckBreak() } - if yyb3348 { + if yyb3431 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -42744,13 +43824,13 @@ func (x *Namespace) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.Kind = string(r.DecodeString()) } - yyj3348++ - if yyhl3348 { - yyb3348 = yyj3348 > l + yyj3431++ + if yyhl3431 { + yyb3431 = yyj3431 > l } else { - yyb3348 = r.CheckBreak() + yyb3431 = r.CheckBreak() } - if yyb3348 { + if yyb3431 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -42760,13 +43840,13 @@ func (x *Namespace) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.APIVersion = string(r.DecodeString()) } - yyj3348++ - if yyhl3348 { - yyb3348 = yyj3348 > l + yyj3431++ + if yyhl3431 { + yyb3431 = yyj3431 > l } else { - yyb3348 = r.CheckBreak() + yyb3431 = r.CheckBreak() } - if yyb3348 { + if yyb3431 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -42774,16 +43854,16 @@ func (x *Namespace) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.ObjectMeta = ObjectMeta{} } else { - yyv3351 := &x.ObjectMeta - yyv3351.CodecDecodeSelf(d) + yyv3434 := &x.ObjectMeta + yyv3434.CodecDecodeSelf(d) } - yyj3348++ - if yyhl3348 { - yyb3348 = yyj3348 > l + yyj3431++ + if yyhl3431 { + yyb3431 = yyj3431 > l } else { - yyb3348 = r.CheckBreak() + yyb3431 = r.CheckBreak() } - if yyb3348 { + if yyb3431 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -42791,16 +43871,16 @@ func (x *Namespace) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.Spec = NamespaceSpec{} } else { - yyv3352 := &x.Spec - yyv3352.CodecDecodeSelf(d) + yyv3435 := &x.Spec + yyv3435.CodecDecodeSelf(d) } - yyj3348++ - if yyhl3348 { - yyb3348 = yyj3348 > l + yyj3431++ + if yyhl3431 { + yyb3431 = yyj3431 > l } else { - yyb3348 = r.CheckBreak() + yyb3431 = r.CheckBreak() } - if yyb3348 { + if yyb3431 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -42808,21 +43888,21 @@ func (x *Namespace) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.Status = NamespaceStatus{} } else { - yyv3353 := &x.Status - yyv3353.CodecDecodeSelf(d) + yyv3436 := &x.Status + yyv3436.CodecDecodeSelf(d) } for { - yyj3348++ - if yyhl3348 { - yyb3348 = yyj3348 > l + yyj3431++ + if yyhl3431 { + yyb3431 = yyj3431 > l } else { - yyb3348 = r.CheckBreak() + yyb3431 = r.CheckBreak() } - if yyb3348 { + if yyb3431 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj3348-1, "") + z.DecStructFieldNotFound(yyj3431-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -42834,37 +43914,37 @@ func (x *NamespaceList) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym3354 := z.EncBinary() - _ = yym3354 + yym3437 := z.EncBinary() + _ = yym3437 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - 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 { + yysep3438 := !z.EncBinary() + yy2arr3438 := z.EncBasicHandle().StructToArray + var yyq3438 [4]bool + _, _, _ = yysep3438, yyq3438, yy2arr3438 + const yyr3438 bool = false + yyq3438[0] = x.Kind != "" + yyq3438[1] = x.APIVersion != "" + yyq3438[2] = true + var yynn3438 int + if yyr3438 || yy2arr3438 { r.EncodeArrayStart(4) } else { - yynn3355 = 1 - for _, b := range yyq3355 { + yynn3438 = 1 + for _, b := range yyq3438 { if b { - yynn3355++ + yynn3438++ } } - r.EncodeMapStart(yynn3355) - yynn3355 = 0 + r.EncodeMapStart(yynn3438) + yynn3438 = 0 } - if yyr3355 || yy2arr3355 { + if yyr3438 || yy2arr3438 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3355[0] { - yym3357 := z.EncBinary() - _ = yym3357 + if yyq3438[0] { + yym3440 := z.EncBinary() + _ = yym3440 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) @@ -42873,23 +43953,23 @@ func (x *NamespaceList) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq3355[0] { + if yyq3438[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym3358 := z.EncBinary() - _ = yym3358 + yym3441 := z.EncBinary() + _ = yym3441 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } - if yyr3355 || yy2arr3355 { + if yyr3438 || yy2arr3438 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3355[1] { - yym3360 := z.EncBinary() - _ = yym3360 + if yyq3438[1] { + yym3443 := z.EncBinary() + _ = yym3443 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) @@ -42898,54 +43978,54 @@ func (x *NamespaceList) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq3355[1] { + if yyq3438[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym3361 := z.EncBinary() - _ = yym3361 + yym3444 := z.EncBinary() + _ = yym3444 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } - if yyr3355 || yy2arr3355 { + if yyr3438 || yy2arr3438 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3355[2] { - yy3363 := &x.ListMeta - yym3364 := z.EncBinary() - _ = yym3364 + if yyq3438[2] { + yy3446 := &x.ListMeta + yym3447 := z.EncBinary() + _ = yym3447 if false { - } else if z.HasExtensions() && z.EncExt(yy3363) { + } else if z.HasExtensions() && z.EncExt(yy3446) { } else { - z.EncFallback(yy3363) + z.EncFallback(yy3446) } } else { r.EncodeNil() } } else { - if yyq3355[2] { + if yyq3438[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy3365 := &x.ListMeta - yym3366 := z.EncBinary() - _ = yym3366 + yy3448 := &x.ListMeta + yym3449 := z.EncBinary() + _ = yym3449 if false { - } else if z.HasExtensions() && z.EncExt(yy3365) { + } else if z.HasExtensions() && z.EncExt(yy3448) { } else { - z.EncFallback(yy3365) + z.EncFallback(yy3448) } } } - if yyr3355 || yy2arr3355 { + if yyr3438 || yy2arr3438 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.Items == nil { r.EncodeNil() } else { - yym3368 := z.EncBinary() - _ = yym3368 + yym3451 := z.EncBinary() + _ = yym3451 if false { } else { h.encSliceNamespace(([]Namespace)(x.Items), e) @@ -42958,15 +44038,15 @@ func (x *NamespaceList) CodecEncodeSelf(e *codec1978.Encoder) { if x.Items == nil { r.EncodeNil() } else { - yym3369 := z.EncBinary() - _ = yym3369 + yym3452 := z.EncBinary() + _ = yym3452 if false { } else { h.encSliceNamespace(([]Namespace)(x.Items), e) } } } - if yyr3355 || yy2arr3355 { + if yyr3438 || yy2arr3438 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -42979,25 +44059,25 @@ func (x *NamespaceList) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym3370 := z.DecBinary() - _ = yym3370 + yym3453 := z.DecBinary() + _ = yym3453 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct3371 := r.ContainerType() - if yyct3371 == codecSelferValueTypeMap1234 { - yyl3371 := r.ReadMapStart() - if yyl3371 == 0 { + yyct3454 := r.ContainerType() + if yyct3454 == codecSelferValueTypeMap1234 { + yyl3454 := r.ReadMapStart() + if yyl3454 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl3371, d) + x.codecDecodeSelfFromMap(yyl3454, d) } - } else if yyct3371 == codecSelferValueTypeArray1234 { - yyl3371 := r.ReadArrayStart() - if yyl3371 == 0 { + } else if yyct3454 == codecSelferValueTypeArray1234 { + yyl3454 := r.ReadArrayStart() + if yyl3454 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl3371, d) + x.codecDecodeSelfFromArray(yyl3454, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -43009,12 +44089,12 @@ func (x *NamespaceList) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys3372Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3372Slc - var yyhl3372 bool = l >= 0 - for yyj3372 := 0; ; yyj3372++ { - if yyhl3372 { - if yyj3372 >= l { + var yys3455Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys3455Slc + var yyhl3455 bool = l >= 0 + for yyj3455 := 0; ; yyj3455++ { + if yyhl3455 { + if yyj3455 >= l { break } } else { @@ -43023,10 +44103,10 @@ func (x *NamespaceList) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3372Slc = r.DecodeBytes(yys3372Slc, true, true) - yys3372 := string(yys3372Slc) + yys3455Slc = r.DecodeBytes(yys3455Slc, true, true) + yys3455 := string(yys3455Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3372 { + switch yys3455 { case "kind": if r.TryDecodeAsNil() { x.Kind = "" @@ -43043,31 +44123,31 @@ func (x *NamespaceList) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.ListMeta = pkg2_unversioned.ListMeta{} } else { - yyv3375 := &x.ListMeta - yym3376 := z.DecBinary() - _ = yym3376 + yyv3458 := &x.ListMeta + yym3459 := z.DecBinary() + _ = yym3459 if false { - } else if z.HasExtensions() && z.DecExt(yyv3375) { + } else if z.HasExtensions() && z.DecExt(yyv3458) { } else { - z.DecFallback(yyv3375, false) + z.DecFallback(yyv3458, false) } } case "items": if r.TryDecodeAsNil() { x.Items = nil } else { - yyv3377 := &x.Items - yym3378 := z.DecBinary() - _ = yym3378 + yyv3460 := &x.Items + yym3461 := z.DecBinary() + _ = yym3461 if false { } else { - h.decSliceNamespace((*[]Namespace)(yyv3377), d) + h.decSliceNamespace((*[]Namespace)(yyv3460), d) } } default: - z.DecStructFieldNotFound(-1, yys3372) - } // end switch yys3372 - } // end for yyj3372 + z.DecStructFieldNotFound(-1, yys3455) + } // end switch yys3455 + } // end for yyj3455 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -43075,16 +44155,16 @@ func (x *NamespaceList) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj3379 int - var yyb3379 bool - var yyhl3379 bool = l >= 0 - yyj3379++ - if yyhl3379 { - yyb3379 = yyj3379 > l + var yyj3462 int + var yyb3462 bool + var yyhl3462 bool = l >= 0 + yyj3462++ + if yyhl3462 { + yyb3462 = yyj3462 > l } else { - yyb3379 = r.CheckBreak() + yyb3462 = r.CheckBreak() } - if yyb3379 { + if yyb3462 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -43094,13 +44174,13 @@ func (x *NamespaceList) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.Kind = string(r.DecodeString()) } - yyj3379++ - if yyhl3379 { - yyb3379 = yyj3379 > l + yyj3462++ + if yyhl3462 { + yyb3462 = yyj3462 > l } else { - yyb3379 = r.CheckBreak() + yyb3462 = r.CheckBreak() } - if yyb3379 { + if yyb3462 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -43110,13 +44190,13 @@ func (x *NamespaceList) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.APIVersion = string(r.DecodeString()) } - yyj3379++ - if yyhl3379 { - yyb3379 = yyj3379 > l + yyj3462++ + if yyhl3462 { + yyb3462 = yyj3462 > l } else { - yyb3379 = r.CheckBreak() + yyb3462 = r.CheckBreak() } - if yyb3379 { + if yyb3462 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -43124,22 +44204,22 @@ func (x *NamespaceList) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.ListMeta = pkg2_unversioned.ListMeta{} } else { - yyv3382 := &x.ListMeta - yym3383 := z.DecBinary() - _ = yym3383 + yyv3465 := &x.ListMeta + yym3466 := z.DecBinary() + _ = yym3466 if false { - } else if z.HasExtensions() && z.DecExt(yyv3382) { + } else if z.HasExtensions() && z.DecExt(yyv3465) { } else { - z.DecFallback(yyv3382, false) + z.DecFallback(yyv3465, false) } } - yyj3379++ - if yyhl3379 { - yyb3379 = yyj3379 > l + yyj3462++ + if yyhl3462 { + yyb3462 = yyj3462 > l } else { - yyb3379 = r.CheckBreak() + yyb3462 = r.CheckBreak() } - if yyb3379 { + if yyb3462 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -43147,26 +44227,26 @@ func (x *NamespaceList) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.Items = nil } else { - yyv3384 := &x.Items - yym3385 := z.DecBinary() - _ = yym3385 + yyv3467 := &x.Items + yym3468 := z.DecBinary() + _ = yym3468 if false { } else { - h.decSliceNamespace((*[]Namespace)(yyv3384), d) + h.decSliceNamespace((*[]Namespace)(yyv3467), d) } } for { - yyj3379++ - if yyhl3379 { - yyb3379 = yyj3379 > l + yyj3462++ + if yyhl3462 { + yyb3462 = yyj3462 > l } else { - yyb3379 = r.CheckBreak() + yyb3462 = r.CheckBreak() } - if yyb3379 { + if yyb3462 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj3379-1, "") + z.DecStructFieldNotFound(yyj3462-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -43178,37 +44258,37 @@ func (x *Binding) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym3386 := z.EncBinary() - _ = yym3386 + yym3469 := z.EncBinary() + _ = yym3469 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - 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 { + yysep3470 := !z.EncBinary() + yy2arr3470 := z.EncBasicHandle().StructToArray + var yyq3470 [4]bool + _, _, _ = yysep3470, yyq3470, yy2arr3470 + const yyr3470 bool = false + yyq3470[0] = x.Kind != "" + yyq3470[1] = x.APIVersion != "" + yyq3470[2] = true + var yynn3470 int + if yyr3470 || yy2arr3470 { r.EncodeArrayStart(4) } else { - yynn3387 = 1 - for _, b := range yyq3387 { + yynn3470 = 1 + for _, b := range yyq3470 { if b { - yynn3387++ + yynn3470++ } } - r.EncodeMapStart(yynn3387) - yynn3387 = 0 + r.EncodeMapStart(yynn3470) + yynn3470 = 0 } - if yyr3387 || yy2arr3387 { + if yyr3470 || yy2arr3470 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3387[0] { - yym3389 := z.EncBinary() - _ = yym3389 + if yyq3470[0] { + yym3472 := z.EncBinary() + _ = yym3472 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) @@ -43217,23 +44297,23 @@ func (x *Binding) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq3387[0] { + if yyq3470[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym3390 := z.EncBinary() - _ = yym3390 + yym3473 := z.EncBinary() + _ = yym3473 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } - if yyr3387 || yy2arr3387 { + if yyr3470 || yy2arr3470 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3387[1] { - yym3392 := z.EncBinary() - _ = yym3392 + if yyq3470[1] { + yym3475 := z.EncBinary() + _ = yym3475 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) @@ -43242,47 +44322,47 @@ func (x *Binding) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq3387[1] { + if yyq3470[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym3393 := z.EncBinary() - _ = yym3393 + yym3476 := z.EncBinary() + _ = yym3476 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } - if yyr3387 || yy2arr3387 { + if yyr3470 || yy2arr3470 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3387[2] { - yy3395 := &x.ObjectMeta - yy3395.CodecEncodeSelf(e) + if yyq3470[2] { + yy3478 := &x.ObjectMeta + yy3478.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { - if yyq3387[2] { + if yyq3470[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy3396 := &x.ObjectMeta - yy3396.CodecEncodeSelf(e) + yy3479 := &x.ObjectMeta + yy3479.CodecEncodeSelf(e) } } - if yyr3387 || yy2arr3387 { + if yyr3470 || yy2arr3470 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy3398 := &x.Target - yy3398.CodecEncodeSelf(e) + yy3481 := &x.Target + yy3481.CodecEncodeSelf(e) } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("target")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy3399 := &x.Target - yy3399.CodecEncodeSelf(e) + yy3482 := &x.Target + yy3482.CodecEncodeSelf(e) } - if yyr3387 || yy2arr3387 { + if yyr3470 || yy2arr3470 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -43295,25 +44375,25 @@ func (x *Binding) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym3400 := z.DecBinary() - _ = yym3400 + yym3483 := z.DecBinary() + _ = yym3483 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct3401 := r.ContainerType() - if yyct3401 == codecSelferValueTypeMap1234 { - yyl3401 := r.ReadMapStart() - if yyl3401 == 0 { + yyct3484 := r.ContainerType() + if yyct3484 == codecSelferValueTypeMap1234 { + yyl3484 := r.ReadMapStart() + if yyl3484 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl3401, d) + x.codecDecodeSelfFromMap(yyl3484, d) } - } else if yyct3401 == codecSelferValueTypeArray1234 { - yyl3401 := r.ReadArrayStart() - if yyl3401 == 0 { + } else if yyct3484 == codecSelferValueTypeArray1234 { + yyl3484 := r.ReadArrayStart() + if yyl3484 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl3401, d) + x.codecDecodeSelfFromArray(yyl3484, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -43325,12 +44405,12 @@ func (x *Binding) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys3402Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3402Slc - var yyhl3402 bool = l >= 0 - for yyj3402 := 0; ; yyj3402++ { - if yyhl3402 { - if yyj3402 >= l { + var yys3485Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys3485Slc + var yyhl3485 bool = l >= 0 + for yyj3485 := 0; ; yyj3485++ { + if yyhl3485 { + if yyj3485 >= l { break } } else { @@ -43339,10 +44419,10 @@ func (x *Binding) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3402Slc = r.DecodeBytes(yys3402Slc, true, true) - yys3402 := string(yys3402Slc) + yys3485Slc = r.DecodeBytes(yys3485Slc, true, true) + yys3485 := string(yys3485Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3402 { + switch yys3485 { case "kind": if r.TryDecodeAsNil() { x.Kind = "" @@ -43359,20 +44439,20 @@ func (x *Binding) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.ObjectMeta = ObjectMeta{} } else { - yyv3405 := &x.ObjectMeta - yyv3405.CodecDecodeSelf(d) + yyv3488 := &x.ObjectMeta + yyv3488.CodecDecodeSelf(d) } case "target": if r.TryDecodeAsNil() { x.Target = ObjectReference{} } else { - yyv3406 := &x.Target - yyv3406.CodecDecodeSelf(d) + yyv3489 := &x.Target + yyv3489.CodecDecodeSelf(d) } default: - z.DecStructFieldNotFound(-1, yys3402) - } // end switch yys3402 - } // end for yyj3402 + z.DecStructFieldNotFound(-1, yys3485) + } // end switch yys3485 + } // end for yyj3485 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -43380,16 +44460,16 @@ func (x *Binding) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj3407 int - var yyb3407 bool - var yyhl3407 bool = l >= 0 - yyj3407++ - if yyhl3407 { - yyb3407 = yyj3407 > l + var yyj3490 int + var yyb3490 bool + var yyhl3490 bool = l >= 0 + yyj3490++ + if yyhl3490 { + yyb3490 = yyj3490 > l } else { - yyb3407 = r.CheckBreak() + yyb3490 = r.CheckBreak() } - if yyb3407 { + if yyb3490 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -43399,13 +44479,13 @@ func (x *Binding) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.Kind = string(r.DecodeString()) } - yyj3407++ - if yyhl3407 { - yyb3407 = yyj3407 > l + yyj3490++ + if yyhl3490 { + yyb3490 = yyj3490 > l } else { - yyb3407 = r.CheckBreak() + yyb3490 = r.CheckBreak() } - if yyb3407 { + if yyb3490 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -43415,13 +44495,13 @@ func (x *Binding) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.APIVersion = string(r.DecodeString()) } - yyj3407++ - if yyhl3407 { - yyb3407 = yyj3407 > l + yyj3490++ + if yyhl3490 { + yyb3490 = yyj3490 > l } else { - yyb3407 = r.CheckBreak() + yyb3490 = r.CheckBreak() } - if yyb3407 { + if yyb3490 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -43429,16 +44509,16 @@ func (x *Binding) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.ObjectMeta = ObjectMeta{} } else { - yyv3410 := &x.ObjectMeta - yyv3410.CodecDecodeSelf(d) + yyv3493 := &x.ObjectMeta + yyv3493.CodecDecodeSelf(d) } - yyj3407++ - if yyhl3407 { - yyb3407 = yyj3407 > l + yyj3490++ + if yyhl3490 { + yyb3490 = yyj3490 > l } else { - yyb3407 = r.CheckBreak() + yyb3490 = r.CheckBreak() } - if yyb3407 { + if yyb3490 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -43446,21 +44526,21 @@ func (x *Binding) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.Target = ObjectReference{} } else { - yyv3411 := &x.Target - yyv3411.CodecDecodeSelf(d) + yyv3494 := &x.Target + yyv3494.CodecDecodeSelf(d) } for { - yyj3407++ - if yyhl3407 { - yyb3407 = yyj3407 > l + yyj3490++ + if yyhl3490 { + yyb3490 = yyj3490 > l } else { - yyb3407 = r.CheckBreak() + yyb3490 = r.CheckBreak() } - if yyb3407 { + if yyb3490 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj3407-1, "") + z.DecStructFieldNotFound(yyj3490-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -43472,68 +44552,68 @@ func (x *Preconditions) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym3412 := z.EncBinary() - _ = yym3412 + yym3495 := z.EncBinary() + _ = yym3495 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - 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 { + yysep3496 := !z.EncBinary() + yy2arr3496 := z.EncBasicHandle().StructToArray + var yyq3496 [1]bool + _, _, _ = yysep3496, yyq3496, yy2arr3496 + const yyr3496 bool = false + yyq3496[0] = x.UID != nil + var yynn3496 int + if yyr3496 || yy2arr3496 { r.EncodeArrayStart(1) } else { - yynn3413 = 0 - for _, b := range yyq3413 { + yynn3496 = 0 + for _, b := range yyq3496 { if b { - yynn3413++ + yynn3496++ } } - r.EncodeMapStart(yynn3413) - yynn3413 = 0 + r.EncodeMapStart(yynn3496) + yynn3496 = 0 } - if yyr3413 || yy2arr3413 { + if yyr3496 || yy2arr3496 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3413[0] { + if yyq3496[0] { if x.UID == nil { r.EncodeNil() } else { - yy3415 := *x.UID - yym3416 := z.EncBinary() - _ = yym3416 + yy3498 := *x.UID + yym3499 := z.EncBinary() + _ = yym3499 if false { - } else if z.HasExtensions() && z.EncExt(yy3415) { + } else if z.HasExtensions() && z.EncExt(yy3498) { } else { - r.EncodeString(codecSelferC_UTF81234, string(yy3415)) + r.EncodeString(codecSelferC_UTF81234, string(yy3498)) } } } else { r.EncodeNil() } } else { - if yyq3413[0] { + if yyq3496[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("uid")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.UID == nil { r.EncodeNil() } else { - yy3417 := *x.UID - yym3418 := z.EncBinary() - _ = yym3418 + yy3500 := *x.UID + yym3501 := z.EncBinary() + _ = yym3501 if false { - } else if z.HasExtensions() && z.EncExt(yy3417) { + } else if z.HasExtensions() && z.EncExt(yy3500) { } else { - r.EncodeString(codecSelferC_UTF81234, string(yy3417)) + r.EncodeString(codecSelferC_UTF81234, string(yy3500)) } } } } - if yyr3413 || yy2arr3413 { + if yyr3496 || yy2arr3496 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -43546,25 +44626,25 @@ func (x *Preconditions) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym3419 := z.DecBinary() - _ = yym3419 + yym3502 := z.DecBinary() + _ = yym3502 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct3420 := r.ContainerType() - if yyct3420 == codecSelferValueTypeMap1234 { - yyl3420 := r.ReadMapStart() - if yyl3420 == 0 { + yyct3503 := r.ContainerType() + if yyct3503 == codecSelferValueTypeMap1234 { + yyl3503 := r.ReadMapStart() + if yyl3503 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl3420, d) + x.codecDecodeSelfFromMap(yyl3503, d) } - } else if yyct3420 == codecSelferValueTypeArray1234 { - yyl3420 := r.ReadArrayStart() - if yyl3420 == 0 { + } else if yyct3503 == codecSelferValueTypeArray1234 { + yyl3503 := r.ReadArrayStart() + if yyl3503 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl3420, d) + x.codecDecodeSelfFromArray(yyl3503, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -43576,12 +44656,12 @@ func (x *Preconditions) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys3421Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3421Slc - var yyhl3421 bool = l >= 0 - for yyj3421 := 0; ; yyj3421++ { - if yyhl3421 { - if yyj3421 >= l { + var yys3504Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys3504Slc + var yyhl3504 bool = l >= 0 + for yyj3504 := 0; ; yyj3504++ { + if yyhl3504 { + if yyj3504 >= l { break } } else { @@ -43590,10 +44670,10 @@ func (x *Preconditions) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3421Slc = r.DecodeBytes(yys3421Slc, true, true) - yys3421 := string(yys3421Slc) + yys3504Slc = r.DecodeBytes(yys3504Slc, true, true) + yys3504 := string(yys3504Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3421 { + switch yys3504 { case "uid": if r.TryDecodeAsNil() { if x.UID != nil { @@ -43603,8 +44683,8 @@ func (x *Preconditions) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { if x.UID == nil { x.UID = new(pkg1_types.UID) } - yym3423 := z.DecBinary() - _ = yym3423 + yym3506 := z.DecBinary() + _ = yym3506 if false { } else if z.HasExtensions() && z.DecExt(x.UID) { } else { @@ -43612,9 +44692,9 @@ func (x *Preconditions) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } default: - z.DecStructFieldNotFound(-1, yys3421) - } // end switch yys3421 - } // end for yyj3421 + z.DecStructFieldNotFound(-1, yys3504) + } // end switch yys3504 + } // end for yyj3504 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -43622,16 +44702,16 @@ func (x *Preconditions) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj3424 int - var yyb3424 bool - var yyhl3424 bool = l >= 0 - yyj3424++ - if yyhl3424 { - yyb3424 = yyj3424 > l + var yyj3507 int + var yyb3507 bool + var yyhl3507 bool = l >= 0 + yyj3507++ + if yyhl3507 { + yyb3507 = yyj3507 > l } else { - yyb3424 = r.CheckBreak() + yyb3507 = r.CheckBreak() } - if yyb3424 { + if yyb3507 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -43644,8 +44724,8 @@ func (x *Preconditions) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if x.UID == nil { x.UID = new(pkg1_types.UID) } - yym3426 := z.DecBinary() - _ = yym3426 + yym3509 := z.DecBinary() + _ = yym3509 if false { } else if z.HasExtensions() && z.DecExt(x.UID) { } else { @@ -43653,17 +44733,17 @@ func (x *Preconditions) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } } for { - yyj3424++ - if yyhl3424 { - yyb3424 = yyj3424 > l + yyj3507++ + if yyhl3507 { + yyb3507 = yyj3507 > l } else { - yyb3424 = r.CheckBreak() + yyb3507 = r.CheckBreak() } - if yyb3424 { + if yyb3507 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj3424-1, "") + z.DecStructFieldNotFound(yyj3507-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -43675,39 +44755,39 @@ func (x *DeleteOptions) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym3427 := z.EncBinary() - _ = yym3427 + yym3510 := z.EncBinary() + _ = yym3510 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - 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 { + yysep3511 := !z.EncBinary() + yy2arr3511 := z.EncBasicHandle().StructToArray + var yyq3511 [5]bool + _, _, _ = yysep3511, yyq3511, yy2arr3511 + const yyr3511 bool = false + yyq3511[0] = x.Kind != "" + yyq3511[1] = x.APIVersion != "" + yyq3511[2] = x.GracePeriodSeconds != nil + yyq3511[3] = x.Preconditions != nil + yyq3511[4] = x.OrphanDependents != nil + var yynn3511 int + if yyr3511 || yy2arr3511 { r.EncodeArrayStart(5) } else { - yynn3428 = 0 - for _, b := range yyq3428 { + yynn3511 = 0 + for _, b := range yyq3511 { if b { - yynn3428++ + yynn3511++ } } - r.EncodeMapStart(yynn3428) - yynn3428 = 0 + r.EncodeMapStart(yynn3511) + yynn3511 = 0 } - if yyr3428 || yy2arr3428 { + if yyr3511 || yy2arr3511 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3428[0] { - yym3430 := z.EncBinary() - _ = yym3430 + if yyq3511[0] { + yym3513 := z.EncBinary() + _ = yym3513 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) @@ -43716,23 +44796,23 @@ func (x *DeleteOptions) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq3428[0] { + if yyq3511[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym3431 := z.EncBinary() - _ = yym3431 + yym3514 := z.EncBinary() + _ = yym3514 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } - if yyr3428 || yy2arr3428 { + if yyr3511 || yy2arr3511 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3428[1] { - yym3433 := z.EncBinary() - _ = yym3433 + if yyq3511[1] { + yym3516 := z.EncBinary() + _ = yym3516 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) @@ -43741,56 +44821,56 @@ func (x *DeleteOptions) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq3428[1] { + if yyq3511[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym3434 := z.EncBinary() - _ = yym3434 + yym3517 := z.EncBinary() + _ = yym3517 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } - if yyr3428 || yy2arr3428 { + if yyr3511 || yy2arr3511 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3428[2] { + if yyq3511[2] { if x.GracePeriodSeconds == nil { r.EncodeNil() } else { - yy3436 := *x.GracePeriodSeconds - yym3437 := z.EncBinary() - _ = yym3437 + yy3519 := *x.GracePeriodSeconds + yym3520 := z.EncBinary() + _ = yym3520 if false { } else { - r.EncodeInt(int64(yy3436)) + r.EncodeInt(int64(yy3519)) } } } else { r.EncodeNil() } } else { - if yyq3428[2] { + if yyq3511[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("gracePeriodSeconds")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.GracePeriodSeconds == nil { r.EncodeNil() } else { - yy3438 := *x.GracePeriodSeconds - yym3439 := z.EncBinary() - _ = yym3439 + yy3521 := *x.GracePeriodSeconds + yym3522 := z.EncBinary() + _ = yym3522 if false { } else { - r.EncodeInt(int64(yy3438)) + r.EncodeInt(int64(yy3521)) } } } } - if yyr3428 || yy2arr3428 { + if yyr3511 || yy2arr3511 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3428[3] { + if yyq3511[3] { if x.Preconditions == nil { r.EncodeNil() } else { @@ -43800,7 +44880,7 @@ func (x *DeleteOptions) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq3428[3] { + if yyq3511[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("preconditions")) z.EncSendContainerState(codecSelfer_containerMapValue1234) @@ -43811,42 +44891,42 @@ func (x *DeleteOptions) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr3428 || yy2arr3428 { + if yyr3511 || yy2arr3511 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3428[4] { + if yyq3511[4] { if x.OrphanDependents == nil { r.EncodeNil() } else { - yy3442 := *x.OrphanDependents - yym3443 := z.EncBinary() - _ = yym3443 + yy3525 := *x.OrphanDependents + yym3526 := z.EncBinary() + _ = yym3526 if false { } else { - r.EncodeBool(bool(yy3442)) + r.EncodeBool(bool(yy3525)) } } } else { r.EncodeNil() } } else { - if yyq3428[4] { + if yyq3511[4] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("orphanDependents")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.OrphanDependents == nil { r.EncodeNil() } else { - yy3444 := *x.OrphanDependents - yym3445 := z.EncBinary() - _ = yym3445 + yy3527 := *x.OrphanDependents + yym3528 := z.EncBinary() + _ = yym3528 if false { } else { - r.EncodeBool(bool(yy3444)) + r.EncodeBool(bool(yy3527)) } } } } - if yyr3428 || yy2arr3428 { + if yyr3511 || yy2arr3511 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -43859,25 +44939,25 @@ func (x *DeleteOptions) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym3446 := z.DecBinary() - _ = yym3446 + yym3529 := z.DecBinary() + _ = yym3529 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct3447 := r.ContainerType() - if yyct3447 == codecSelferValueTypeMap1234 { - yyl3447 := r.ReadMapStart() - if yyl3447 == 0 { + yyct3530 := r.ContainerType() + if yyct3530 == codecSelferValueTypeMap1234 { + yyl3530 := r.ReadMapStart() + if yyl3530 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl3447, d) + x.codecDecodeSelfFromMap(yyl3530, d) } - } else if yyct3447 == codecSelferValueTypeArray1234 { - yyl3447 := r.ReadArrayStart() - if yyl3447 == 0 { + } else if yyct3530 == codecSelferValueTypeArray1234 { + yyl3530 := r.ReadArrayStart() + if yyl3530 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl3447, d) + x.codecDecodeSelfFromArray(yyl3530, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -43889,12 +44969,12 @@ func (x *DeleteOptions) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys3448Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3448Slc - var yyhl3448 bool = l >= 0 - for yyj3448 := 0; ; yyj3448++ { - if yyhl3448 { - if yyj3448 >= l { + var yys3531Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys3531Slc + var yyhl3531 bool = l >= 0 + for yyj3531 := 0; ; yyj3531++ { + if yyhl3531 { + if yyj3531 >= l { break } } else { @@ -43903,10 +44983,10 @@ func (x *DeleteOptions) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3448Slc = r.DecodeBytes(yys3448Slc, true, true) - yys3448 := string(yys3448Slc) + yys3531Slc = r.DecodeBytes(yys3531Slc, true, true) + yys3531 := string(yys3531Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3448 { + switch yys3531 { case "kind": if r.TryDecodeAsNil() { x.Kind = "" @@ -43928,8 +45008,8 @@ func (x *DeleteOptions) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { if x.GracePeriodSeconds == nil { x.GracePeriodSeconds = new(int64) } - yym3452 := z.DecBinary() - _ = yym3452 + yym3535 := z.DecBinary() + _ = yym3535 if false { } else { *((*int64)(x.GracePeriodSeconds)) = int64(r.DecodeInt(64)) @@ -43955,17 +45035,17 @@ func (x *DeleteOptions) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { if x.OrphanDependents == nil { x.OrphanDependents = new(bool) } - yym3455 := z.DecBinary() - _ = yym3455 + yym3538 := z.DecBinary() + _ = yym3538 if false { } else { *((*bool)(x.OrphanDependents)) = r.DecodeBool() } } default: - z.DecStructFieldNotFound(-1, yys3448) - } // end switch yys3448 - } // end for yyj3448 + z.DecStructFieldNotFound(-1, yys3531) + } // end switch yys3531 + } // end for yyj3531 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -43973,16 +45053,16 @@ func (x *DeleteOptions) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj3456 int - var yyb3456 bool - var yyhl3456 bool = l >= 0 - yyj3456++ - if yyhl3456 { - yyb3456 = yyj3456 > l + var yyj3539 int + var yyb3539 bool + var yyhl3539 bool = l >= 0 + yyj3539++ + if yyhl3539 { + yyb3539 = yyj3539 > l } else { - yyb3456 = r.CheckBreak() + yyb3539 = r.CheckBreak() } - if yyb3456 { + if yyb3539 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -43992,13 +45072,13 @@ func (x *DeleteOptions) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.Kind = string(r.DecodeString()) } - yyj3456++ - if yyhl3456 { - yyb3456 = yyj3456 > l + yyj3539++ + if yyhl3539 { + yyb3539 = yyj3539 > l } else { - yyb3456 = r.CheckBreak() + yyb3539 = r.CheckBreak() } - if yyb3456 { + if yyb3539 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -44008,13 +45088,13 @@ func (x *DeleteOptions) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.APIVersion = string(r.DecodeString()) } - yyj3456++ - if yyhl3456 { - yyb3456 = yyj3456 > l + yyj3539++ + if yyhl3539 { + yyb3539 = yyj3539 > l } else { - yyb3456 = r.CheckBreak() + yyb3539 = r.CheckBreak() } - if yyb3456 { + if yyb3539 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -44027,20 +45107,20 @@ func (x *DeleteOptions) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if x.GracePeriodSeconds == nil { x.GracePeriodSeconds = new(int64) } - yym3460 := z.DecBinary() - _ = yym3460 + yym3543 := z.DecBinary() + _ = yym3543 if false { } else { *((*int64)(x.GracePeriodSeconds)) = int64(r.DecodeInt(64)) } } - yyj3456++ - if yyhl3456 { - yyb3456 = yyj3456 > l + yyj3539++ + if yyhl3539 { + yyb3539 = yyj3539 > l } else { - yyb3456 = r.CheckBreak() + yyb3539 = r.CheckBreak() } - if yyb3456 { + if yyb3539 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -44055,13 +45135,13 @@ func (x *DeleteOptions) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } x.Preconditions.CodecDecodeSelf(d) } - yyj3456++ - if yyhl3456 { - yyb3456 = yyj3456 > l + yyj3539++ + if yyhl3539 { + yyb3539 = yyj3539 > l } else { - yyb3456 = r.CheckBreak() + yyb3539 = r.CheckBreak() } - if yyb3456 { + if yyb3539 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -44074,25 +45154,25 @@ func (x *DeleteOptions) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if x.OrphanDependents == nil { x.OrphanDependents = new(bool) } - yym3463 := z.DecBinary() - _ = yym3463 + yym3546 := z.DecBinary() + _ = yym3546 if false { } else { *((*bool)(x.OrphanDependents)) = r.DecodeBool() } } for { - yyj3456++ - if yyhl3456 { - yyb3456 = yyj3456 > l + yyj3539++ + if yyhl3539 { + yyb3539 = yyj3539 > l } else { - yyb3456 = r.CheckBreak() + yyb3539 = r.CheckBreak() } - if yyb3456 { + if yyb3539 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj3456-1, "") + z.DecStructFieldNotFound(yyj3539-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -44104,36 +45184,36 @@ func (x *ExportOptions) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym3464 := z.EncBinary() - _ = yym3464 + yym3547 := z.EncBinary() + _ = yym3547 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - 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 { + yysep3548 := !z.EncBinary() + yy2arr3548 := z.EncBasicHandle().StructToArray + var yyq3548 [4]bool + _, _, _ = yysep3548, yyq3548, yy2arr3548 + const yyr3548 bool = false + yyq3548[0] = x.Kind != "" + yyq3548[1] = x.APIVersion != "" + var yynn3548 int + if yyr3548 || yy2arr3548 { r.EncodeArrayStart(4) } else { - yynn3465 = 2 - for _, b := range yyq3465 { + yynn3548 = 2 + for _, b := range yyq3548 { if b { - yynn3465++ + yynn3548++ } } - r.EncodeMapStart(yynn3465) - yynn3465 = 0 + r.EncodeMapStart(yynn3548) + yynn3548 = 0 } - if yyr3465 || yy2arr3465 { + if yyr3548 || yy2arr3548 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3465[0] { - yym3467 := z.EncBinary() - _ = yym3467 + if yyq3548[0] { + yym3550 := z.EncBinary() + _ = yym3550 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) @@ -44142,23 +45222,23 @@ func (x *ExportOptions) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq3465[0] { + if yyq3548[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym3468 := z.EncBinary() - _ = yym3468 + yym3551 := z.EncBinary() + _ = yym3551 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } - if yyr3465 || yy2arr3465 { + if yyr3548 || yy2arr3548 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3465[1] { - yym3470 := z.EncBinary() - _ = yym3470 + if yyq3548[1] { + yym3553 := z.EncBinary() + _ = yym3553 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) @@ -44167,22 +45247,22 @@ func (x *ExportOptions) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq3465[1] { + if yyq3548[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym3471 := z.EncBinary() - _ = yym3471 + yym3554 := z.EncBinary() + _ = yym3554 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } - if yyr3465 || yy2arr3465 { + if yyr3548 || yy2arr3548 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym3473 := z.EncBinary() - _ = yym3473 + yym3556 := z.EncBinary() + _ = yym3556 if false { } else { r.EncodeBool(bool(x.Export)) @@ -44191,17 +45271,17 @@ func (x *ExportOptions) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("export")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym3474 := z.EncBinary() - _ = yym3474 + yym3557 := z.EncBinary() + _ = yym3557 if false { } else { r.EncodeBool(bool(x.Export)) } } - if yyr3465 || yy2arr3465 { + if yyr3548 || yy2arr3548 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym3476 := z.EncBinary() - _ = yym3476 + yym3559 := z.EncBinary() + _ = yym3559 if false { } else { r.EncodeBool(bool(x.Exact)) @@ -44210,14 +45290,14 @@ func (x *ExportOptions) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("exact")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym3477 := z.EncBinary() - _ = yym3477 + yym3560 := z.EncBinary() + _ = yym3560 if false { } else { r.EncodeBool(bool(x.Exact)) } } - if yyr3465 || yy2arr3465 { + if yyr3548 || yy2arr3548 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -44230,25 +45310,25 @@ func (x *ExportOptions) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym3478 := z.DecBinary() - _ = yym3478 + yym3561 := z.DecBinary() + _ = yym3561 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct3479 := r.ContainerType() - if yyct3479 == codecSelferValueTypeMap1234 { - yyl3479 := r.ReadMapStart() - if yyl3479 == 0 { + yyct3562 := r.ContainerType() + if yyct3562 == codecSelferValueTypeMap1234 { + yyl3562 := r.ReadMapStart() + if yyl3562 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl3479, d) + x.codecDecodeSelfFromMap(yyl3562, d) } - } else if yyct3479 == codecSelferValueTypeArray1234 { - yyl3479 := r.ReadArrayStart() - if yyl3479 == 0 { + } else if yyct3562 == codecSelferValueTypeArray1234 { + yyl3562 := r.ReadArrayStart() + if yyl3562 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl3479, d) + x.codecDecodeSelfFromArray(yyl3562, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -44260,12 +45340,12 @@ func (x *ExportOptions) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys3480Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3480Slc - var yyhl3480 bool = l >= 0 - for yyj3480 := 0; ; yyj3480++ { - if yyhl3480 { - if yyj3480 >= l { + var yys3563Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys3563Slc + var yyhl3563 bool = l >= 0 + for yyj3563 := 0; ; yyj3563++ { + if yyhl3563 { + if yyj3563 >= l { break } } else { @@ -44274,10 +45354,10 @@ func (x *ExportOptions) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3480Slc = r.DecodeBytes(yys3480Slc, true, true) - yys3480 := string(yys3480Slc) + yys3563Slc = r.DecodeBytes(yys3563Slc, true, true) + yys3563 := string(yys3563Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3480 { + switch yys3563 { case "kind": if r.TryDecodeAsNil() { x.Kind = "" @@ -44303,9 +45383,9 @@ func (x *ExportOptions) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { x.Exact = bool(r.DecodeBool()) } default: - z.DecStructFieldNotFound(-1, yys3480) - } // end switch yys3480 - } // end for yyj3480 + z.DecStructFieldNotFound(-1, yys3563) + } // end switch yys3563 + } // end for yyj3563 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -44313,16 +45393,16 @@ func (x *ExportOptions) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj3485 int - var yyb3485 bool - var yyhl3485 bool = l >= 0 - yyj3485++ - if yyhl3485 { - yyb3485 = yyj3485 > l + var yyj3568 int + var yyb3568 bool + var yyhl3568 bool = l >= 0 + yyj3568++ + if yyhl3568 { + yyb3568 = yyj3568 > l } else { - yyb3485 = r.CheckBreak() + yyb3568 = r.CheckBreak() } - if yyb3485 { + if yyb3568 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -44332,13 +45412,13 @@ func (x *ExportOptions) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.Kind = string(r.DecodeString()) } - yyj3485++ - if yyhl3485 { - yyb3485 = yyj3485 > l + yyj3568++ + if yyhl3568 { + yyb3568 = yyj3568 > l } else { - yyb3485 = r.CheckBreak() + yyb3568 = r.CheckBreak() } - if yyb3485 { + if yyb3568 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -44348,13 +45428,13 @@ func (x *ExportOptions) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.APIVersion = string(r.DecodeString()) } - yyj3485++ - if yyhl3485 { - yyb3485 = yyj3485 > l + yyj3568++ + if yyhl3568 { + yyb3568 = yyj3568 > l } else { - yyb3485 = r.CheckBreak() + yyb3568 = r.CheckBreak() } - if yyb3485 { + if yyb3568 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -44364,13 +45444,13 @@ func (x *ExportOptions) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.Export = bool(r.DecodeBool()) } - yyj3485++ - if yyhl3485 { - yyb3485 = yyj3485 > l + yyj3568++ + if yyhl3568 { + yyb3568 = yyj3568 > l } else { - yyb3485 = r.CheckBreak() + yyb3568 = r.CheckBreak() } - if yyb3485 { + if yyb3568 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -44381,17 +45461,17 @@ func (x *ExportOptions) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { x.Exact = bool(r.DecodeBool()) } for { - yyj3485++ - if yyhl3485 { - yyb3485 = yyj3485 > l + yyj3568++ + if yyhl3568 { + yyb3568 = yyj3568 > l } else { - yyb3485 = r.CheckBreak() + yyb3568 = r.CheckBreak() } - if yyb3485 { + if yyb3568 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj3485-1, "") + z.DecStructFieldNotFound(yyj3568-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -44403,36 +45483,36 @@ func (x *ListOptions) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym3490 := z.EncBinary() - _ = yym3490 + yym3573 := z.EncBinary() + _ = yym3573 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - 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 { + yysep3574 := !z.EncBinary() + yy2arr3574 := z.EncBasicHandle().StructToArray + var yyq3574 [7]bool + _, _, _ = yysep3574, yyq3574, yy2arr3574 + const yyr3574 bool = false + yyq3574[0] = x.Kind != "" + yyq3574[1] = x.APIVersion != "" + var yynn3574 int + if yyr3574 || yy2arr3574 { r.EncodeArrayStart(7) } else { - yynn3491 = 5 - for _, b := range yyq3491 { + yynn3574 = 5 + for _, b := range yyq3574 { if b { - yynn3491++ + yynn3574++ } } - r.EncodeMapStart(yynn3491) - yynn3491 = 0 + r.EncodeMapStart(yynn3574) + yynn3574 = 0 } - if yyr3491 || yy2arr3491 { + if yyr3574 || yy2arr3574 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3491[0] { - yym3493 := z.EncBinary() - _ = yym3493 + if yyq3574[0] { + yym3576 := z.EncBinary() + _ = yym3576 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) @@ -44441,23 +45521,23 @@ func (x *ListOptions) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq3491[0] { + if yyq3574[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym3494 := z.EncBinary() - _ = yym3494 + yym3577 := z.EncBinary() + _ = yym3577 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } - if yyr3491 || yy2arr3491 { + if yyr3574 || yy2arr3574 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3491[1] { - yym3496 := z.EncBinary() - _ = yym3496 + if yyq3574[1] { + yym3579 := z.EncBinary() + _ = yym3579 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) @@ -44466,25 +45546,25 @@ func (x *ListOptions) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq3491[1] { + if yyq3574[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym3497 := z.EncBinary() - _ = yym3497 + yym3580 := z.EncBinary() + _ = yym3580 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } - if yyr3491 || yy2arr3491 { + if yyr3574 || yy2arr3574 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.LabelSelector == nil { r.EncodeNil() } else { - yym3499 := z.EncBinary() - _ = yym3499 + yym3582 := z.EncBinary() + _ = yym3582 if false { } else if z.HasExtensions() && z.EncExt(x.LabelSelector) { } else { @@ -44498,8 +45578,8 @@ func (x *ListOptions) CodecEncodeSelf(e *codec1978.Encoder) { if x.LabelSelector == nil { r.EncodeNil() } else { - yym3500 := z.EncBinary() - _ = yym3500 + yym3583 := z.EncBinary() + _ = yym3583 if false { } else if z.HasExtensions() && z.EncExt(x.LabelSelector) { } else { @@ -44507,13 +45587,13 @@ func (x *ListOptions) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr3491 || yy2arr3491 { + if yyr3574 || yy2arr3574 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.FieldSelector == nil { r.EncodeNil() } else { - yym3502 := z.EncBinary() - _ = yym3502 + yym3585 := z.EncBinary() + _ = yym3585 if false { } else if z.HasExtensions() && z.EncExt(x.FieldSelector) { } else { @@ -44527,8 +45607,8 @@ func (x *ListOptions) CodecEncodeSelf(e *codec1978.Encoder) { if x.FieldSelector == nil { r.EncodeNil() } else { - yym3503 := z.EncBinary() - _ = yym3503 + yym3586 := z.EncBinary() + _ = yym3586 if false { } else if z.HasExtensions() && z.EncExt(x.FieldSelector) { } else { @@ -44536,10 +45616,10 @@ func (x *ListOptions) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr3491 || yy2arr3491 { + if yyr3574 || yy2arr3574 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym3505 := z.EncBinary() - _ = yym3505 + yym3588 := z.EncBinary() + _ = yym3588 if false { } else { r.EncodeBool(bool(x.Watch)) @@ -44548,17 +45628,17 @@ func (x *ListOptions) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("Watch")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym3506 := z.EncBinary() - _ = yym3506 + yym3589 := z.EncBinary() + _ = yym3589 if false { } else { r.EncodeBool(bool(x.Watch)) } } - if yyr3491 || yy2arr3491 { + if yyr3574 || yy2arr3574 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym3508 := z.EncBinary() - _ = yym3508 + yym3591 := z.EncBinary() + _ = yym3591 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.ResourceVersion)) @@ -44567,24 +45647,24 @@ func (x *ListOptions) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("ResourceVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym3509 := z.EncBinary() - _ = yym3509 + yym3592 := z.EncBinary() + _ = yym3592 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.ResourceVersion)) } } - if yyr3491 || yy2arr3491 { + if yyr3574 || yy2arr3574 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.TimeoutSeconds == nil { r.EncodeNil() } else { - yy3511 := *x.TimeoutSeconds - yym3512 := z.EncBinary() - _ = yym3512 + yy3594 := *x.TimeoutSeconds + yym3595 := z.EncBinary() + _ = yym3595 if false { } else { - r.EncodeInt(int64(yy3511)) + r.EncodeInt(int64(yy3594)) } } } else { @@ -44594,16 +45674,16 @@ func (x *ListOptions) CodecEncodeSelf(e *codec1978.Encoder) { if x.TimeoutSeconds == nil { r.EncodeNil() } else { - yy3513 := *x.TimeoutSeconds - yym3514 := z.EncBinary() - _ = yym3514 + yy3596 := *x.TimeoutSeconds + yym3597 := z.EncBinary() + _ = yym3597 if false { } else { - r.EncodeInt(int64(yy3513)) + r.EncodeInt(int64(yy3596)) } } } - if yyr3491 || yy2arr3491 { + if yyr3574 || yy2arr3574 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -44616,25 +45696,25 @@ func (x *ListOptions) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym3515 := z.DecBinary() - _ = yym3515 + yym3598 := z.DecBinary() + _ = yym3598 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct3516 := r.ContainerType() - if yyct3516 == codecSelferValueTypeMap1234 { - yyl3516 := r.ReadMapStart() - if yyl3516 == 0 { + yyct3599 := r.ContainerType() + if yyct3599 == codecSelferValueTypeMap1234 { + yyl3599 := r.ReadMapStart() + if yyl3599 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl3516, d) + x.codecDecodeSelfFromMap(yyl3599, d) } - } else if yyct3516 == codecSelferValueTypeArray1234 { - yyl3516 := r.ReadArrayStart() - if yyl3516 == 0 { + } else if yyct3599 == codecSelferValueTypeArray1234 { + yyl3599 := r.ReadArrayStart() + if yyl3599 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl3516, d) + x.codecDecodeSelfFromArray(yyl3599, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -44646,12 +45726,12 @@ func (x *ListOptions) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys3517Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3517Slc - var yyhl3517 bool = l >= 0 - for yyj3517 := 0; ; yyj3517++ { - if yyhl3517 { - if yyj3517 >= l { + var yys3600Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys3600Slc + var yyhl3600 bool = l >= 0 + for yyj3600 := 0; ; yyj3600++ { + if yyhl3600 { + if yyj3600 >= l { break } } else { @@ -44660,10 +45740,10 @@ func (x *ListOptions) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3517Slc = r.DecodeBytes(yys3517Slc, true, true) - yys3517 := string(yys3517Slc) + yys3600Slc = r.DecodeBytes(yys3600Slc, true, true) + yys3600 := string(yys3600Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3517 { + switch yys3600 { case "kind": if r.TryDecodeAsNil() { x.Kind = "" @@ -44680,26 +45760,26 @@ func (x *ListOptions) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.LabelSelector = nil } else { - yyv3520 := &x.LabelSelector - yym3521 := z.DecBinary() - _ = yym3521 + yyv3603 := &x.LabelSelector + yym3604 := z.DecBinary() + _ = yym3604 if false { - } else if z.HasExtensions() && z.DecExt(yyv3520) { + } else if z.HasExtensions() && z.DecExt(yyv3603) { } else { - z.DecFallback(yyv3520, true) + z.DecFallback(yyv3603, true) } } case "FieldSelector": if r.TryDecodeAsNil() { x.FieldSelector = nil } else { - yyv3522 := &x.FieldSelector - yym3523 := z.DecBinary() - _ = yym3523 + yyv3605 := &x.FieldSelector + yym3606 := z.DecBinary() + _ = yym3606 if false { - } else if z.HasExtensions() && z.DecExt(yyv3522) { + } else if z.HasExtensions() && z.DecExt(yyv3605) { } else { - z.DecFallback(yyv3522, true) + z.DecFallback(yyv3605, true) } } case "Watch": @@ -44723,17 +45803,17 @@ func (x *ListOptions) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { if x.TimeoutSeconds == nil { x.TimeoutSeconds = new(int64) } - yym3527 := z.DecBinary() - _ = yym3527 + yym3610 := z.DecBinary() + _ = yym3610 if false { } else { *((*int64)(x.TimeoutSeconds)) = int64(r.DecodeInt(64)) } } default: - z.DecStructFieldNotFound(-1, yys3517) - } // end switch yys3517 - } // end for yyj3517 + z.DecStructFieldNotFound(-1, yys3600) + } // end switch yys3600 + } // end for yyj3600 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -44741,16 +45821,16 @@ func (x *ListOptions) 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 + var yyj3611 int + var yyb3611 bool + var yyhl3611 bool = l >= 0 + yyj3611++ + if yyhl3611 { + yyb3611 = yyj3611 > l } else { - yyb3528 = r.CheckBreak() + yyb3611 = r.CheckBreak() } - if yyb3528 { + if yyb3611 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -44760,13 +45840,13 @@ func (x *ListOptions) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.Kind = string(r.DecodeString()) } - yyj3528++ - if yyhl3528 { - yyb3528 = yyj3528 > l + yyj3611++ + if yyhl3611 { + yyb3611 = yyj3611 > l } else { - yyb3528 = r.CheckBreak() + yyb3611 = r.CheckBreak() } - if yyb3528 { + if yyb3611 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -44776,13 +45856,13 @@ func (x *ListOptions) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.APIVersion = string(r.DecodeString()) } - yyj3528++ - if yyhl3528 { - yyb3528 = yyj3528 > l + yyj3611++ + if yyhl3611 { + yyb3611 = yyj3611 > l } else { - yyb3528 = r.CheckBreak() + yyb3611 = r.CheckBreak() } - if yyb3528 { + if yyb3611 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -44790,22 +45870,22 @@ func (x *ListOptions) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.LabelSelector = nil } else { - yyv3531 := &x.LabelSelector - yym3532 := z.DecBinary() - _ = yym3532 + yyv3614 := &x.LabelSelector + yym3615 := z.DecBinary() + _ = yym3615 if false { - } else if z.HasExtensions() && z.DecExt(yyv3531) { + } else if z.HasExtensions() && z.DecExt(yyv3614) { } else { - z.DecFallback(yyv3531, true) + z.DecFallback(yyv3614, true) } } - yyj3528++ - if yyhl3528 { - yyb3528 = yyj3528 > l + yyj3611++ + if yyhl3611 { + yyb3611 = yyj3611 > l } else { - yyb3528 = r.CheckBreak() + yyb3611 = r.CheckBreak() } - if yyb3528 { + if yyb3611 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -44813,22 +45893,22 @@ func (x *ListOptions) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.FieldSelector = nil } else { - yyv3533 := &x.FieldSelector - yym3534 := z.DecBinary() - _ = yym3534 + yyv3616 := &x.FieldSelector + yym3617 := z.DecBinary() + _ = yym3617 if false { - } else if z.HasExtensions() && z.DecExt(yyv3533) { + } else if z.HasExtensions() && z.DecExt(yyv3616) { } else { - z.DecFallback(yyv3533, true) + z.DecFallback(yyv3616, true) } } - yyj3528++ - if yyhl3528 { - yyb3528 = yyj3528 > l + yyj3611++ + if yyhl3611 { + yyb3611 = yyj3611 > l } else { - yyb3528 = r.CheckBreak() + yyb3611 = r.CheckBreak() } - if yyb3528 { + if yyb3611 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -44838,13 +45918,13 @@ func (x *ListOptions) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.Watch = bool(r.DecodeBool()) } - yyj3528++ - if yyhl3528 { - yyb3528 = yyj3528 > l + yyj3611++ + if yyhl3611 { + yyb3611 = yyj3611 > l } else { - yyb3528 = r.CheckBreak() + yyb3611 = r.CheckBreak() } - if yyb3528 { + if yyb3611 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -44854,13 +45934,13 @@ func (x *ListOptions) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.ResourceVersion = string(r.DecodeString()) } - yyj3528++ - if yyhl3528 { - yyb3528 = yyj3528 > l + yyj3611++ + if yyhl3611 { + yyb3611 = yyj3611 > l } else { - yyb3528 = r.CheckBreak() + yyb3611 = r.CheckBreak() } - if yyb3528 { + if yyb3611 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -44873,25 +45953,25 @@ func (x *ListOptions) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if x.TimeoutSeconds == nil { x.TimeoutSeconds = new(int64) } - yym3538 := z.DecBinary() - _ = yym3538 + yym3621 := z.DecBinary() + _ = yym3621 if false { } else { *((*int64)(x.TimeoutSeconds)) = int64(r.DecodeInt(64)) } } for { - yyj3528++ - if yyhl3528 { - yyb3528 = yyj3528 > l + yyj3611++ + if yyhl3611 { + yyb3611 = yyj3611 > l } else { - yyb3528 = r.CheckBreak() + yyb3611 = r.CheckBreak() } - if yyb3528 { + if yyb3611 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj3528-1, "") + z.DecStructFieldNotFound(yyj3611-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -44903,36 +45983,36 @@ func (x *PodLogOptions) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym3539 := z.EncBinary() - _ = yym3539 + yym3622 := z.EncBinary() + _ = yym3622 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - 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 { + yysep3623 := !z.EncBinary() + yy2arr3623 := z.EncBasicHandle().StructToArray + var yyq3623 [10]bool + _, _, _ = yysep3623, yyq3623, yy2arr3623 + const yyr3623 bool = false + yyq3623[0] = x.Kind != "" + yyq3623[1] = x.APIVersion != "" + var yynn3623 int + if yyr3623 || yy2arr3623 { r.EncodeArrayStart(10) } else { - yynn3540 = 8 - for _, b := range yyq3540 { + yynn3623 = 8 + for _, b := range yyq3623 { if b { - yynn3540++ + yynn3623++ } } - r.EncodeMapStart(yynn3540) - yynn3540 = 0 + r.EncodeMapStart(yynn3623) + yynn3623 = 0 } - if yyr3540 || yy2arr3540 { + if yyr3623 || yy2arr3623 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3540[0] { - yym3542 := z.EncBinary() - _ = yym3542 + if yyq3623[0] { + yym3625 := z.EncBinary() + _ = yym3625 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) @@ -44941,23 +46021,23 @@ func (x *PodLogOptions) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq3540[0] { + if yyq3623[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym3543 := z.EncBinary() - _ = yym3543 + yym3626 := z.EncBinary() + _ = yym3626 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } - if yyr3540 || yy2arr3540 { + if yyr3623 || yy2arr3623 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3540[1] { - yym3545 := z.EncBinary() - _ = yym3545 + if yyq3623[1] { + yym3628 := z.EncBinary() + _ = yym3628 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) @@ -44966,22 +46046,22 @@ func (x *PodLogOptions) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq3540[1] { + if yyq3623[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym3546 := z.EncBinary() - _ = yym3546 + yym3629 := z.EncBinary() + _ = yym3629 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } - if yyr3540 || yy2arr3540 { + if yyr3623 || yy2arr3623 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym3548 := z.EncBinary() - _ = yym3548 + yym3631 := z.EncBinary() + _ = yym3631 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Container)) @@ -44990,17 +46070,17 @@ func (x *PodLogOptions) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("Container")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym3549 := z.EncBinary() - _ = yym3549 + yym3632 := z.EncBinary() + _ = yym3632 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Container)) } } - if yyr3540 || yy2arr3540 { + if yyr3623 || yy2arr3623 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym3551 := z.EncBinary() - _ = yym3551 + yym3634 := z.EncBinary() + _ = yym3634 if false { } else { r.EncodeBool(bool(x.Follow)) @@ -45009,17 +46089,17 @@ func (x *PodLogOptions) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("Follow")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym3552 := z.EncBinary() - _ = yym3552 + yym3635 := z.EncBinary() + _ = yym3635 if false { } else { r.EncodeBool(bool(x.Follow)) } } - if yyr3540 || yy2arr3540 { + if yyr3623 || yy2arr3623 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym3554 := z.EncBinary() - _ = yym3554 + yym3637 := z.EncBinary() + _ = yym3637 if false { } else { r.EncodeBool(bool(x.Previous)) @@ -45028,24 +46108,24 @@ func (x *PodLogOptions) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("Previous")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym3555 := z.EncBinary() - _ = yym3555 + yym3638 := z.EncBinary() + _ = yym3638 if false { } else { r.EncodeBool(bool(x.Previous)) } } - if yyr3540 || yy2arr3540 { + if yyr3623 || yy2arr3623 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.SinceSeconds == nil { r.EncodeNil() } else { - yy3557 := *x.SinceSeconds - yym3558 := z.EncBinary() - _ = yym3558 + yy3640 := *x.SinceSeconds + yym3641 := z.EncBinary() + _ = yym3641 if false { } else { - r.EncodeInt(int64(yy3557)) + r.EncodeInt(int64(yy3640)) } } } else { @@ -45055,27 +46135,27 @@ func (x *PodLogOptions) CodecEncodeSelf(e *codec1978.Encoder) { if x.SinceSeconds == nil { r.EncodeNil() } else { - yy3559 := *x.SinceSeconds - yym3560 := z.EncBinary() - _ = yym3560 + yy3642 := *x.SinceSeconds + yym3643 := z.EncBinary() + _ = yym3643 if false { } else { - r.EncodeInt(int64(yy3559)) + r.EncodeInt(int64(yy3642)) } } } - if yyr3540 || yy2arr3540 { + if yyr3623 || yy2arr3623 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.SinceTime == nil { r.EncodeNil() } else { - yym3562 := z.EncBinary() - _ = yym3562 + yym3645 := z.EncBinary() + _ = yym3645 if false { } else if z.HasExtensions() && z.EncExt(x.SinceTime) { - } else if yym3562 { + } else if yym3645 { z.EncBinaryMarshal(x.SinceTime) - } else if !yym3562 && z.IsJSONHandle() { + } else if !yym3645 && z.IsJSONHandle() { z.EncJSONMarshal(x.SinceTime) } else { z.EncFallback(x.SinceTime) @@ -45088,23 +46168,23 @@ func (x *PodLogOptions) CodecEncodeSelf(e *codec1978.Encoder) { if x.SinceTime == nil { r.EncodeNil() } else { - yym3563 := z.EncBinary() - _ = yym3563 + yym3646 := z.EncBinary() + _ = yym3646 if false { } else if z.HasExtensions() && z.EncExt(x.SinceTime) { - } else if yym3563 { + } else if yym3646 { z.EncBinaryMarshal(x.SinceTime) - } else if !yym3563 && z.IsJSONHandle() { + } else if !yym3646 && z.IsJSONHandle() { z.EncJSONMarshal(x.SinceTime) } else { z.EncFallback(x.SinceTime) } } } - if yyr3540 || yy2arr3540 { + if yyr3623 || yy2arr3623 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym3565 := z.EncBinary() - _ = yym3565 + yym3648 := z.EncBinary() + _ = yym3648 if false { } else { r.EncodeBool(bool(x.Timestamps)) @@ -45113,24 +46193,24 @@ func (x *PodLogOptions) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("Timestamps")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym3566 := z.EncBinary() - _ = yym3566 + yym3649 := z.EncBinary() + _ = yym3649 if false { } else { r.EncodeBool(bool(x.Timestamps)) } } - if yyr3540 || yy2arr3540 { + if yyr3623 || yy2arr3623 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.TailLines == nil { r.EncodeNil() } else { - yy3568 := *x.TailLines - yym3569 := z.EncBinary() - _ = yym3569 + yy3651 := *x.TailLines + yym3652 := z.EncBinary() + _ = yym3652 if false { } else { - r.EncodeInt(int64(yy3568)) + r.EncodeInt(int64(yy3651)) } } } else { @@ -45140,26 +46220,26 @@ func (x *PodLogOptions) CodecEncodeSelf(e *codec1978.Encoder) { if x.TailLines == nil { r.EncodeNil() } else { - yy3570 := *x.TailLines - yym3571 := z.EncBinary() - _ = yym3571 + yy3653 := *x.TailLines + yym3654 := z.EncBinary() + _ = yym3654 if false { } else { - r.EncodeInt(int64(yy3570)) + r.EncodeInt(int64(yy3653)) } } } - if yyr3540 || yy2arr3540 { + if yyr3623 || yy2arr3623 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.LimitBytes == nil { r.EncodeNil() } else { - yy3573 := *x.LimitBytes - yym3574 := z.EncBinary() - _ = yym3574 + yy3656 := *x.LimitBytes + yym3657 := z.EncBinary() + _ = yym3657 if false { } else { - r.EncodeInt(int64(yy3573)) + r.EncodeInt(int64(yy3656)) } } } else { @@ -45169,16 +46249,16 @@ func (x *PodLogOptions) CodecEncodeSelf(e *codec1978.Encoder) { if x.LimitBytes == nil { r.EncodeNil() } else { - yy3575 := *x.LimitBytes - yym3576 := z.EncBinary() - _ = yym3576 + yy3658 := *x.LimitBytes + yym3659 := z.EncBinary() + _ = yym3659 if false { } else { - r.EncodeInt(int64(yy3575)) + r.EncodeInt(int64(yy3658)) } } } - if yyr3540 || yy2arr3540 { + if yyr3623 || yy2arr3623 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -45191,25 +46271,25 @@ func (x *PodLogOptions) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym3577 := z.DecBinary() - _ = yym3577 + yym3660 := z.DecBinary() + _ = yym3660 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct3578 := r.ContainerType() - if yyct3578 == codecSelferValueTypeMap1234 { - yyl3578 := r.ReadMapStart() - if yyl3578 == 0 { + yyct3661 := r.ContainerType() + if yyct3661 == codecSelferValueTypeMap1234 { + yyl3661 := r.ReadMapStart() + if yyl3661 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl3578, d) + x.codecDecodeSelfFromMap(yyl3661, d) } - } else if yyct3578 == codecSelferValueTypeArray1234 { - yyl3578 := r.ReadArrayStart() - if yyl3578 == 0 { + } else if yyct3661 == codecSelferValueTypeArray1234 { + yyl3661 := r.ReadArrayStart() + if yyl3661 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl3578, d) + x.codecDecodeSelfFromArray(yyl3661, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -45221,12 +46301,12 @@ func (x *PodLogOptions) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys3579Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3579Slc - var yyhl3579 bool = l >= 0 - for yyj3579 := 0; ; yyj3579++ { - if yyhl3579 { - if yyj3579 >= l { + var yys3662Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys3662Slc + var yyhl3662 bool = l >= 0 + for yyj3662 := 0; ; yyj3662++ { + if yyhl3662 { + if yyj3662 >= l { break } } else { @@ -45235,10 +46315,10 @@ func (x *PodLogOptions) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3579Slc = r.DecodeBytes(yys3579Slc, true, true) - yys3579 := string(yys3579Slc) + yys3662Slc = r.DecodeBytes(yys3662Slc, true, true) + yys3662 := string(yys3662Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3579 { + switch yys3662 { case "kind": if r.TryDecodeAsNil() { x.Kind = "" @@ -45278,8 +46358,8 @@ func (x *PodLogOptions) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { if x.SinceSeconds == nil { x.SinceSeconds = new(int64) } - yym3586 := z.DecBinary() - _ = yym3586 + yym3669 := z.DecBinary() + _ = yym3669 if false { } else { *((*int64)(x.SinceSeconds)) = int64(r.DecodeInt(64)) @@ -45294,13 +46374,13 @@ func (x *PodLogOptions) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { if x.SinceTime == nil { x.SinceTime = new(pkg2_unversioned.Time) } - yym3588 := z.DecBinary() - _ = yym3588 + yym3671 := z.DecBinary() + _ = yym3671 if false { } else if z.HasExtensions() && z.DecExt(x.SinceTime) { - } else if yym3588 { + } else if yym3671 { z.DecBinaryUnmarshal(x.SinceTime) - } else if !yym3588 && z.IsJSONHandle() { + } else if !yym3671 && z.IsJSONHandle() { z.DecJSONUnmarshal(x.SinceTime) } else { z.DecFallback(x.SinceTime, false) @@ -45321,8 +46401,8 @@ func (x *PodLogOptions) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { if x.TailLines == nil { x.TailLines = new(int64) } - yym3591 := z.DecBinary() - _ = yym3591 + yym3674 := z.DecBinary() + _ = yym3674 if false { } else { *((*int64)(x.TailLines)) = int64(r.DecodeInt(64)) @@ -45337,17 +46417,17 @@ func (x *PodLogOptions) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { if x.LimitBytes == nil { x.LimitBytes = new(int64) } - yym3593 := z.DecBinary() - _ = yym3593 + yym3676 := z.DecBinary() + _ = yym3676 if false { } else { *((*int64)(x.LimitBytes)) = int64(r.DecodeInt(64)) } } default: - z.DecStructFieldNotFound(-1, yys3579) - } // end switch yys3579 - } // end for yyj3579 + z.DecStructFieldNotFound(-1, yys3662) + } // end switch yys3662 + } // end for yyj3662 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -45355,16 +46435,16 @@ func (x *PodLogOptions) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj3594 int - var yyb3594 bool - var yyhl3594 bool = l >= 0 - yyj3594++ - if yyhl3594 { - yyb3594 = yyj3594 > l + var yyj3677 int + var yyb3677 bool + var yyhl3677 bool = l >= 0 + yyj3677++ + if yyhl3677 { + yyb3677 = yyj3677 > l } else { - yyb3594 = r.CheckBreak() + yyb3677 = r.CheckBreak() } - if yyb3594 { + if yyb3677 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -45374,13 +46454,13 @@ func (x *PodLogOptions) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.Kind = string(r.DecodeString()) } - yyj3594++ - if yyhl3594 { - yyb3594 = yyj3594 > l + yyj3677++ + if yyhl3677 { + yyb3677 = yyj3677 > l } else { - yyb3594 = r.CheckBreak() + yyb3677 = r.CheckBreak() } - if yyb3594 { + if yyb3677 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -45390,13 +46470,13 @@ func (x *PodLogOptions) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.APIVersion = string(r.DecodeString()) } - yyj3594++ - if yyhl3594 { - yyb3594 = yyj3594 > l + yyj3677++ + if yyhl3677 { + yyb3677 = yyj3677 > l } else { - yyb3594 = r.CheckBreak() + yyb3677 = r.CheckBreak() } - if yyb3594 { + if yyb3677 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -45406,13 +46486,13 @@ func (x *PodLogOptions) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.Container = string(r.DecodeString()) } - yyj3594++ - if yyhl3594 { - yyb3594 = yyj3594 > l + yyj3677++ + if yyhl3677 { + yyb3677 = yyj3677 > l } else { - yyb3594 = r.CheckBreak() + yyb3677 = r.CheckBreak() } - if yyb3594 { + if yyb3677 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -45422,13 +46502,13 @@ func (x *PodLogOptions) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.Follow = bool(r.DecodeBool()) } - yyj3594++ - if yyhl3594 { - yyb3594 = yyj3594 > l + yyj3677++ + if yyhl3677 { + yyb3677 = yyj3677 > l } else { - yyb3594 = r.CheckBreak() + yyb3677 = r.CheckBreak() } - if yyb3594 { + if yyb3677 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -45438,13 +46518,13 @@ func (x *PodLogOptions) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.Previous = bool(r.DecodeBool()) } - yyj3594++ - if yyhl3594 { - yyb3594 = yyj3594 > l + yyj3677++ + if yyhl3677 { + yyb3677 = yyj3677 > l } else { - yyb3594 = r.CheckBreak() + yyb3677 = r.CheckBreak() } - if yyb3594 { + if yyb3677 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -45457,20 +46537,20 @@ func (x *PodLogOptions) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if x.SinceSeconds == nil { x.SinceSeconds = new(int64) } - yym3601 := z.DecBinary() - _ = yym3601 + yym3684 := z.DecBinary() + _ = yym3684 if false { } else { *((*int64)(x.SinceSeconds)) = int64(r.DecodeInt(64)) } } - yyj3594++ - if yyhl3594 { - yyb3594 = yyj3594 > l + yyj3677++ + if yyhl3677 { + yyb3677 = yyj3677 > l } else { - yyb3594 = r.CheckBreak() + yyb3677 = r.CheckBreak() } - if yyb3594 { + if yyb3677 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -45483,25 +46563,25 @@ func (x *PodLogOptions) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if x.SinceTime == nil { x.SinceTime = new(pkg2_unversioned.Time) } - yym3603 := z.DecBinary() - _ = yym3603 + yym3686 := z.DecBinary() + _ = yym3686 if false { } else if z.HasExtensions() && z.DecExt(x.SinceTime) { - } else if yym3603 { + } else if yym3686 { z.DecBinaryUnmarshal(x.SinceTime) - } else if !yym3603 && z.IsJSONHandle() { + } else if !yym3686 && z.IsJSONHandle() { z.DecJSONUnmarshal(x.SinceTime) } else { z.DecFallback(x.SinceTime, false) } } - yyj3594++ - if yyhl3594 { - yyb3594 = yyj3594 > l + yyj3677++ + if yyhl3677 { + yyb3677 = yyj3677 > l } else { - yyb3594 = r.CheckBreak() + yyb3677 = r.CheckBreak() } - if yyb3594 { + if yyb3677 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -45511,13 +46591,13 @@ func (x *PodLogOptions) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.Timestamps = bool(r.DecodeBool()) } - yyj3594++ - if yyhl3594 { - yyb3594 = yyj3594 > l + yyj3677++ + if yyhl3677 { + yyb3677 = yyj3677 > l } else { - yyb3594 = r.CheckBreak() + yyb3677 = r.CheckBreak() } - if yyb3594 { + if yyb3677 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -45530,20 +46610,20 @@ func (x *PodLogOptions) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if x.TailLines == nil { x.TailLines = new(int64) } - yym3606 := z.DecBinary() - _ = yym3606 + yym3689 := z.DecBinary() + _ = yym3689 if false { } else { *((*int64)(x.TailLines)) = int64(r.DecodeInt(64)) } } - yyj3594++ - if yyhl3594 { - yyb3594 = yyj3594 > l + yyj3677++ + if yyhl3677 { + yyb3677 = yyj3677 > l } else { - yyb3594 = r.CheckBreak() + yyb3677 = r.CheckBreak() } - if yyb3594 { + if yyb3677 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -45556,25 +46636,25 @@ func (x *PodLogOptions) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if x.LimitBytes == nil { x.LimitBytes = new(int64) } - yym3608 := z.DecBinary() - _ = yym3608 + yym3691 := z.DecBinary() + _ = yym3691 if false { } else { *((*int64)(x.LimitBytes)) = int64(r.DecodeInt(64)) } } for { - yyj3594++ - if yyhl3594 { - yyb3594 = yyj3594 > l + yyj3677++ + if yyhl3677 { + yyb3677 = yyj3677 > l } else { - yyb3594 = r.CheckBreak() + yyb3677 = r.CheckBreak() } - if yyb3594 { + if yyb3677 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj3594-1, "") + z.DecStructFieldNotFound(yyj3677-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -45586,41 +46666,41 @@ func (x *PodAttachOptions) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym3609 := z.EncBinary() - _ = yym3609 + yym3692 := z.EncBinary() + _ = yym3692 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - 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 { + yysep3693 := !z.EncBinary() + yy2arr3693 := z.EncBasicHandle().StructToArray + var yyq3693 [7]bool + _, _, _ = yysep3693, yyq3693, yy2arr3693 + const yyr3693 bool = false + yyq3693[0] = x.Kind != "" + yyq3693[1] = x.APIVersion != "" + yyq3693[2] = x.Stdin != false + yyq3693[3] = x.Stdout != false + yyq3693[4] = x.Stderr != false + yyq3693[5] = x.TTY != false + yyq3693[6] = x.Container != "" + var yynn3693 int + if yyr3693 || yy2arr3693 { r.EncodeArrayStart(7) } else { - yynn3610 = 0 - for _, b := range yyq3610 { + yynn3693 = 0 + for _, b := range yyq3693 { if b { - yynn3610++ + yynn3693++ } } - r.EncodeMapStart(yynn3610) - yynn3610 = 0 + r.EncodeMapStart(yynn3693) + yynn3693 = 0 } - if yyr3610 || yy2arr3610 { + if yyr3693 || yy2arr3693 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3610[0] { - yym3612 := z.EncBinary() - _ = yym3612 + if yyq3693[0] { + yym3695 := z.EncBinary() + _ = yym3695 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) @@ -45629,23 +46709,23 @@ func (x *PodAttachOptions) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq3610[0] { + if yyq3693[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym3613 := z.EncBinary() - _ = yym3613 + yym3696 := z.EncBinary() + _ = yym3696 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } - if yyr3610 || yy2arr3610 { + if yyr3693 || yy2arr3693 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3610[1] { - yym3615 := z.EncBinary() - _ = yym3615 + if yyq3693[1] { + yym3698 := z.EncBinary() + _ = yym3698 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) @@ -45654,23 +46734,23 @@ func (x *PodAttachOptions) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq3610[1] { + if yyq3693[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym3616 := z.EncBinary() - _ = yym3616 + yym3699 := z.EncBinary() + _ = yym3699 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } - if yyr3610 || yy2arr3610 { + if yyr3693 || yy2arr3693 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3610[2] { - yym3618 := z.EncBinary() - _ = yym3618 + if yyq3693[2] { + yym3701 := z.EncBinary() + _ = yym3701 if false { } else { r.EncodeBool(bool(x.Stdin)) @@ -45679,23 +46759,23 @@ func (x *PodAttachOptions) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeBool(false) } } else { - if yyq3610[2] { + if yyq3693[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("stdin")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym3619 := z.EncBinary() - _ = yym3619 + yym3702 := z.EncBinary() + _ = yym3702 if false { } else { r.EncodeBool(bool(x.Stdin)) } } } - if yyr3610 || yy2arr3610 { + if yyr3693 || yy2arr3693 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3610[3] { - yym3621 := z.EncBinary() - _ = yym3621 + if yyq3693[3] { + yym3704 := z.EncBinary() + _ = yym3704 if false { } else { r.EncodeBool(bool(x.Stdout)) @@ -45704,23 +46784,23 @@ func (x *PodAttachOptions) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeBool(false) } } else { - if yyq3610[3] { + if yyq3693[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("stdout")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym3622 := z.EncBinary() - _ = yym3622 + yym3705 := z.EncBinary() + _ = yym3705 if false { } else { r.EncodeBool(bool(x.Stdout)) } } } - if yyr3610 || yy2arr3610 { + if yyr3693 || yy2arr3693 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3610[4] { - yym3624 := z.EncBinary() - _ = yym3624 + if yyq3693[4] { + yym3707 := z.EncBinary() + _ = yym3707 if false { } else { r.EncodeBool(bool(x.Stderr)) @@ -45729,23 +46809,23 @@ func (x *PodAttachOptions) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeBool(false) } } else { - if yyq3610[4] { + if yyq3693[4] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("stderr")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym3625 := z.EncBinary() - _ = yym3625 + yym3708 := z.EncBinary() + _ = yym3708 if false { } else { r.EncodeBool(bool(x.Stderr)) } } } - if yyr3610 || yy2arr3610 { + if yyr3693 || yy2arr3693 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3610[5] { - yym3627 := z.EncBinary() - _ = yym3627 + if yyq3693[5] { + yym3710 := z.EncBinary() + _ = yym3710 if false { } else { r.EncodeBool(bool(x.TTY)) @@ -45754,23 +46834,23 @@ func (x *PodAttachOptions) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeBool(false) } } else { - if yyq3610[5] { + if yyq3693[5] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("tty")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym3628 := z.EncBinary() - _ = yym3628 + yym3711 := z.EncBinary() + _ = yym3711 if false { } else { r.EncodeBool(bool(x.TTY)) } } } - if yyr3610 || yy2arr3610 { + if yyr3693 || yy2arr3693 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3610[6] { - yym3630 := z.EncBinary() - _ = yym3630 + if yyq3693[6] { + yym3713 := z.EncBinary() + _ = yym3713 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Container)) @@ -45779,19 +46859,19 @@ func (x *PodAttachOptions) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq3610[6] { + if yyq3693[6] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("container")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym3631 := z.EncBinary() - _ = yym3631 + yym3714 := z.EncBinary() + _ = yym3714 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Container)) } } } - if yyr3610 || yy2arr3610 { + if yyr3693 || yy2arr3693 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -45804,25 +46884,25 @@ func (x *PodAttachOptions) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym3632 := z.DecBinary() - _ = yym3632 + yym3715 := z.DecBinary() + _ = yym3715 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct3633 := r.ContainerType() - if yyct3633 == codecSelferValueTypeMap1234 { - yyl3633 := r.ReadMapStart() - if yyl3633 == 0 { + yyct3716 := r.ContainerType() + if yyct3716 == codecSelferValueTypeMap1234 { + yyl3716 := r.ReadMapStart() + if yyl3716 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl3633, d) + x.codecDecodeSelfFromMap(yyl3716, d) } - } else if yyct3633 == codecSelferValueTypeArray1234 { - yyl3633 := r.ReadArrayStart() - if yyl3633 == 0 { + } else if yyct3716 == codecSelferValueTypeArray1234 { + yyl3716 := r.ReadArrayStart() + if yyl3716 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl3633, d) + x.codecDecodeSelfFromArray(yyl3716, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -45834,12 +46914,12 @@ func (x *PodAttachOptions) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys3634Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3634Slc - var yyhl3634 bool = l >= 0 - for yyj3634 := 0; ; yyj3634++ { - if yyhl3634 { - if yyj3634 >= l { + var yys3717Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys3717Slc + var yyhl3717 bool = l >= 0 + for yyj3717 := 0; ; yyj3717++ { + if yyhl3717 { + if yyj3717 >= l { break } } else { @@ -45848,10 +46928,10 @@ func (x *PodAttachOptions) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3634Slc = r.DecodeBytes(yys3634Slc, true, true) - yys3634 := string(yys3634Slc) + yys3717Slc = r.DecodeBytes(yys3717Slc, true, true) + yys3717 := string(yys3717Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3634 { + switch yys3717 { case "kind": if r.TryDecodeAsNil() { x.Kind = "" @@ -45895,9 +46975,9 @@ func (x *PodAttachOptions) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { x.Container = string(r.DecodeString()) } default: - z.DecStructFieldNotFound(-1, yys3634) - } // end switch yys3634 - } // end for yyj3634 + z.DecStructFieldNotFound(-1, yys3717) + } // end switch yys3717 + } // end for yyj3717 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -45905,16 +46985,16 @@ func (x *PodAttachOptions) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj3642 int - var yyb3642 bool - var yyhl3642 bool = l >= 0 - yyj3642++ - if yyhl3642 { - yyb3642 = yyj3642 > l + var yyj3725 int + var yyb3725 bool + var yyhl3725 bool = l >= 0 + yyj3725++ + if yyhl3725 { + yyb3725 = yyj3725 > l } else { - yyb3642 = r.CheckBreak() + yyb3725 = r.CheckBreak() } - if yyb3642 { + if yyb3725 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -45924,13 +47004,13 @@ func (x *PodAttachOptions) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) } else { x.Kind = string(r.DecodeString()) } - yyj3642++ - if yyhl3642 { - yyb3642 = yyj3642 > l + yyj3725++ + if yyhl3725 { + yyb3725 = yyj3725 > l } else { - yyb3642 = r.CheckBreak() + yyb3725 = r.CheckBreak() } - if yyb3642 { + if yyb3725 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -45940,13 +47020,13 @@ func (x *PodAttachOptions) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) } else { x.APIVersion = string(r.DecodeString()) } - yyj3642++ - if yyhl3642 { - yyb3642 = yyj3642 > l + yyj3725++ + if yyhl3725 { + yyb3725 = yyj3725 > l } else { - yyb3642 = r.CheckBreak() + yyb3725 = r.CheckBreak() } - if yyb3642 { + if yyb3725 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -45956,13 +47036,13 @@ func (x *PodAttachOptions) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) } else { x.Stdin = bool(r.DecodeBool()) } - yyj3642++ - if yyhl3642 { - yyb3642 = yyj3642 > l + yyj3725++ + if yyhl3725 { + yyb3725 = yyj3725 > l } else { - yyb3642 = r.CheckBreak() + yyb3725 = r.CheckBreak() } - if yyb3642 { + if yyb3725 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -45972,13 +47052,13 @@ func (x *PodAttachOptions) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) } else { x.Stdout = bool(r.DecodeBool()) } - yyj3642++ - if yyhl3642 { - yyb3642 = yyj3642 > l + yyj3725++ + if yyhl3725 { + yyb3725 = yyj3725 > l } else { - yyb3642 = r.CheckBreak() + yyb3725 = r.CheckBreak() } - if yyb3642 { + if yyb3725 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -45988,13 +47068,13 @@ func (x *PodAttachOptions) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) } else { x.Stderr = bool(r.DecodeBool()) } - yyj3642++ - if yyhl3642 { - yyb3642 = yyj3642 > l + yyj3725++ + if yyhl3725 { + yyb3725 = yyj3725 > l } else { - yyb3642 = r.CheckBreak() + yyb3725 = r.CheckBreak() } - if yyb3642 { + if yyb3725 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -46004,13 +47084,13 @@ func (x *PodAttachOptions) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) } else { x.TTY = bool(r.DecodeBool()) } - yyj3642++ - if yyhl3642 { - yyb3642 = yyj3642 > l + yyj3725++ + if yyhl3725 { + yyb3725 = yyj3725 > l } else { - yyb3642 = r.CheckBreak() + yyb3725 = r.CheckBreak() } - if yyb3642 { + if yyb3725 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -46021,17 +47101,17 @@ func (x *PodAttachOptions) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) x.Container = string(r.DecodeString()) } for { - yyj3642++ - if yyhl3642 { - yyb3642 = yyj3642 > l + yyj3725++ + if yyhl3725 { + yyb3725 = yyj3725 > l } else { - yyb3642 = r.CheckBreak() + yyb3725 = r.CheckBreak() } - if yyb3642 { + if yyb3725 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj3642-1, "") + z.DecStructFieldNotFound(yyj3725-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -46043,36 +47123,36 @@ func (x *PodExecOptions) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym3650 := z.EncBinary() - _ = yym3650 + yym3733 := z.EncBinary() + _ = yym3733 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - 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 { + yysep3734 := !z.EncBinary() + yy2arr3734 := z.EncBasicHandle().StructToArray + var yyq3734 [8]bool + _, _, _ = yysep3734, yyq3734, yy2arr3734 + const yyr3734 bool = false + yyq3734[0] = x.Kind != "" + yyq3734[1] = x.APIVersion != "" + var yynn3734 int + if yyr3734 || yy2arr3734 { r.EncodeArrayStart(8) } else { - yynn3651 = 6 - for _, b := range yyq3651 { + yynn3734 = 6 + for _, b := range yyq3734 { if b { - yynn3651++ + yynn3734++ } } - r.EncodeMapStart(yynn3651) - yynn3651 = 0 + r.EncodeMapStart(yynn3734) + yynn3734 = 0 } - if yyr3651 || yy2arr3651 { + if yyr3734 || yy2arr3734 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3651[0] { - yym3653 := z.EncBinary() - _ = yym3653 + if yyq3734[0] { + yym3736 := z.EncBinary() + _ = yym3736 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) @@ -46081,23 +47161,23 @@ func (x *PodExecOptions) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq3651[0] { + if yyq3734[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym3654 := z.EncBinary() - _ = yym3654 + yym3737 := z.EncBinary() + _ = yym3737 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } - if yyr3651 || yy2arr3651 { + if yyr3734 || yy2arr3734 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3651[1] { - yym3656 := z.EncBinary() - _ = yym3656 + if yyq3734[1] { + yym3739 := z.EncBinary() + _ = yym3739 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) @@ -46106,22 +47186,22 @@ func (x *PodExecOptions) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq3651[1] { + if yyq3734[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym3657 := z.EncBinary() - _ = yym3657 + yym3740 := z.EncBinary() + _ = yym3740 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } - if yyr3651 || yy2arr3651 { + if yyr3734 || yy2arr3734 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym3659 := z.EncBinary() - _ = yym3659 + yym3742 := z.EncBinary() + _ = yym3742 if false { } else { r.EncodeBool(bool(x.Stdin)) @@ -46130,17 +47210,17 @@ func (x *PodExecOptions) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("Stdin")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym3660 := z.EncBinary() - _ = yym3660 + yym3743 := z.EncBinary() + _ = yym3743 if false { } else { r.EncodeBool(bool(x.Stdin)) } } - if yyr3651 || yy2arr3651 { + if yyr3734 || yy2arr3734 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym3662 := z.EncBinary() - _ = yym3662 + yym3745 := z.EncBinary() + _ = yym3745 if false { } else { r.EncodeBool(bool(x.Stdout)) @@ -46149,17 +47229,17 @@ func (x *PodExecOptions) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("Stdout")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym3663 := z.EncBinary() - _ = yym3663 + yym3746 := z.EncBinary() + _ = yym3746 if false { } else { r.EncodeBool(bool(x.Stdout)) } } - if yyr3651 || yy2arr3651 { + if yyr3734 || yy2arr3734 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym3665 := z.EncBinary() - _ = yym3665 + yym3748 := z.EncBinary() + _ = yym3748 if false { } else { r.EncodeBool(bool(x.Stderr)) @@ -46168,17 +47248,17 @@ func (x *PodExecOptions) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("Stderr")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym3666 := z.EncBinary() - _ = yym3666 + yym3749 := z.EncBinary() + _ = yym3749 if false { } else { r.EncodeBool(bool(x.Stderr)) } } - if yyr3651 || yy2arr3651 { + if yyr3734 || yy2arr3734 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym3668 := z.EncBinary() - _ = yym3668 + yym3751 := z.EncBinary() + _ = yym3751 if false { } else { r.EncodeBool(bool(x.TTY)) @@ -46187,17 +47267,17 @@ func (x *PodExecOptions) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("TTY")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym3669 := z.EncBinary() - _ = yym3669 + yym3752 := z.EncBinary() + _ = yym3752 if false { } else { r.EncodeBool(bool(x.TTY)) } } - if yyr3651 || yy2arr3651 { + if yyr3734 || yy2arr3734 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym3671 := z.EncBinary() - _ = yym3671 + yym3754 := z.EncBinary() + _ = yym3754 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Container)) @@ -46206,20 +47286,20 @@ func (x *PodExecOptions) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("Container")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym3672 := z.EncBinary() - _ = yym3672 + yym3755 := z.EncBinary() + _ = yym3755 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Container)) } } - if yyr3651 || yy2arr3651 { + if yyr3734 || yy2arr3734 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.Command == nil { r.EncodeNil() } else { - yym3674 := z.EncBinary() - _ = yym3674 + yym3757 := z.EncBinary() + _ = yym3757 if false { } else { z.F.EncSliceStringV(x.Command, false, e) @@ -46232,15 +47312,15 @@ func (x *PodExecOptions) CodecEncodeSelf(e *codec1978.Encoder) { if x.Command == nil { r.EncodeNil() } else { - yym3675 := z.EncBinary() - _ = yym3675 + yym3758 := z.EncBinary() + _ = yym3758 if false { } else { z.F.EncSliceStringV(x.Command, false, e) } } } - if yyr3651 || yy2arr3651 { + if yyr3734 || yy2arr3734 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -46253,25 +47333,25 @@ func (x *PodExecOptions) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym3676 := z.DecBinary() - _ = yym3676 + yym3759 := z.DecBinary() + _ = yym3759 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct3677 := r.ContainerType() - if yyct3677 == codecSelferValueTypeMap1234 { - yyl3677 := r.ReadMapStart() - if yyl3677 == 0 { + yyct3760 := r.ContainerType() + if yyct3760 == codecSelferValueTypeMap1234 { + yyl3760 := r.ReadMapStart() + if yyl3760 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl3677, d) + x.codecDecodeSelfFromMap(yyl3760, d) } - } else if yyct3677 == codecSelferValueTypeArray1234 { - yyl3677 := r.ReadArrayStart() - if yyl3677 == 0 { + } else if yyct3760 == codecSelferValueTypeArray1234 { + yyl3760 := r.ReadArrayStart() + if yyl3760 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl3677, d) + x.codecDecodeSelfFromArray(yyl3760, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -46283,12 +47363,12 @@ func (x *PodExecOptions) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys3678Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3678Slc - var yyhl3678 bool = l >= 0 - for yyj3678 := 0; ; yyj3678++ { - if yyhl3678 { - if yyj3678 >= l { + var yys3761Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys3761Slc + var yyhl3761 bool = l >= 0 + for yyj3761 := 0; ; yyj3761++ { + if yyhl3761 { + if yyj3761 >= l { break } } else { @@ -46297,10 +47377,10 @@ func (x *PodExecOptions) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3678Slc = r.DecodeBytes(yys3678Slc, true, true) - yys3678 := string(yys3678Slc) + yys3761Slc = r.DecodeBytes(yys3761Slc, true, true) + yys3761 := string(yys3761Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3678 { + switch yys3761 { case "kind": if r.TryDecodeAsNil() { x.Kind = "" @@ -46347,18 +47427,18 @@ func (x *PodExecOptions) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.Command = nil } else { - yyv3686 := &x.Command - yym3687 := z.DecBinary() - _ = yym3687 + yyv3769 := &x.Command + yym3770 := z.DecBinary() + _ = yym3770 if false { } else { - z.F.DecSliceStringX(yyv3686, false, d) + z.F.DecSliceStringX(yyv3769, false, d) } } default: - z.DecStructFieldNotFound(-1, yys3678) - } // end switch yys3678 - } // end for yyj3678 + z.DecStructFieldNotFound(-1, yys3761) + } // end switch yys3761 + } // end for yyj3761 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -46366,16 +47446,16 @@ func (x *PodExecOptions) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj3688 int - var yyb3688 bool - var yyhl3688 bool = l >= 0 - yyj3688++ - if yyhl3688 { - yyb3688 = yyj3688 > l + var yyj3771 int + var yyb3771 bool + var yyhl3771 bool = l >= 0 + yyj3771++ + if yyhl3771 { + yyb3771 = yyj3771 > l } else { - yyb3688 = r.CheckBreak() + yyb3771 = r.CheckBreak() } - if yyb3688 { + if yyb3771 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -46385,13 +47465,13 @@ func (x *PodExecOptions) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.Kind = string(r.DecodeString()) } - yyj3688++ - if yyhl3688 { - yyb3688 = yyj3688 > l + yyj3771++ + if yyhl3771 { + yyb3771 = yyj3771 > l } else { - yyb3688 = r.CheckBreak() + yyb3771 = r.CheckBreak() } - if yyb3688 { + if yyb3771 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -46401,13 +47481,13 @@ func (x *PodExecOptions) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.APIVersion = string(r.DecodeString()) } - yyj3688++ - if yyhl3688 { - yyb3688 = yyj3688 > l + yyj3771++ + if yyhl3771 { + yyb3771 = yyj3771 > l } else { - yyb3688 = r.CheckBreak() + yyb3771 = r.CheckBreak() } - if yyb3688 { + if yyb3771 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -46417,13 +47497,13 @@ func (x *PodExecOptions) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.Stdin = bool(r.DecodeBool()) } - yyj3688++ - if yyhl3688 { - yyb3688 = yyj3688 > l + yyj3771++ + if yyhl3771 { + yyb3771 = yyj3771 > l } else { - yyb3688 = r.CheckBreak() + yyb3771 = r.CheckBreak() } - if yyb3688 { + if yyb3771 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -46433,13 +47513,13 @@ func (x *PodExecOptions) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.Stdout = bool(r.DecodeBool()) } - yyj3688++ - if yyhl3688 { - yyb3688 = yyj3688 > l + yyj3771++ + if yyhl3771 { + yyb3771 = yyj3771 > l } else { - yyb3688 = r.CheckBreak() + yyb3771 = r.CheckBreak() } - if yyb3688 { + if yyb3771 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -46449,13 +47529,13 @@ func (x *PodExecOptions) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.Stderr = bool(r.DecodeBool()) } - yyj3688++ - if yyhl3688 { - yyb3688 = yyj3688 > l + yyj3771++ + if yyhl3771 { + yyb3771 = yyj3771 > l } else { - yyb3688 = r.CheckBreak() + yyb3771 = r.CheckBreak() } - if yyb3688 { + if yyb3771 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -46465,13 +47545,13 @@ func (x *PodExecOptions) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.TTY = bool(r.DecodeBool()) } - yyj3688++ - if yyhl3688 { - yyb3688 = yyj3688 > l + yyj3771++ + if yyhl3771 { + yyb3771 = yyj3771 > l } else { - yyb3688 = r.CheckBreak() + yyb3771 = r.CheckBreak() } - if yyb3688 { + if yyb3771 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -46481,13 +47561,13 @@ func (x *PodExecOptions) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.Container = string(r.DecodeString()) } - yyj3688++ - if yyhl3688 { - yyb3688 = yyj3688 > l + yyj3771++ + if yyhl3771 { + yyb3771 = yyj3771 > l } else { - yyb3688 = r.CheckBreak() + yyb3771 = r.CheckBreak() } - if yyb3688 { + if yyb3771 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -46495,26 +47575,26 @@ func (x *PodExecOptions) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.Command = nil } else { - yyv3696 := &x.Command - yym3697 := z.DecBinary() - _ = yym3697 + yyv3779 := &x.Command + yym3780 := z.DecBinary() + _ = yym3780 if false { } else { - z.F.DecSliceStringX(yyv3696, false, d) + z.F.DecSliceStringX(yyv3779, false, d) } } for { - yyj3688++ - if yyhl3688 { - yyb3688 = yyj3688 > l + yyj3771++ + if yyhl3771 { + yyb3771 = yyj3771 > l } else { - yyb3688 = r.CheckBreak() + yyb3771 = r.CheckBreak() } - if yyb3688 { + if yyb3771 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj3688-1, "") + z.DecStructFieldNotFound(yyj3771-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -46526,36 +47606,36 @@ func (x *PodProxyOptions) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym3698 := z.EncBinary() - _ = yym3698 + yym3781 := z.EncBinary() + _ = yym3781 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - 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 { + yysep3782 := !z.EncBinary() + yy2arr3782 := z.EncBasicHandle().StructToArray + var yyq3782 [3]bool + _, _, _ = yysep3782, yyq3782, yy2arr3782 + const yyr3782 bool = false + yyq3782[0] = x.Kind != "" + yyq3782[1] = x.APIVersion != "" + var yynn3782 int + if yyr3782 || yy2arr3782 { r.EncodeArrayStart(3) } else { - yynn3699 = 1 - for _, b := range yyq3699 { + yynn3782 = 1 + for _, b := range yyq3782 { if b { - yynn3699++ + yynn3782++ } } - r.EncodeMapStart(yynn3699) - yynn3699 = 0 + r.EncodeMapStart(yynn3782) + yynn3782 = 0 } - if yyr3699 || yy2arr3699 { + if yyr3782 || yy2arr3782 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3699[0] { - yym3701 := z.EncBinary() - _ = yym3701 + if yyq3782[0] { + yym3784 := z.EncBinary() + _ = yym3784 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) @@ -46564,23 +47644,23 @@ func (x *PodProxyOptions) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq3699[0] { + if yyq3782[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym3702 := z.EncBinary() - _ = yym3702 + yym3785 := z.EncBinary() + _ = yym3785 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } - if yyr3699 || yy2arr3699 { + if yyr3782 || yy2arr3782 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3699[1] { - yym3704 := z.EncBinary() - _ = yym3704 + if yyq3782[1] { + yym3787 := z.EncBinary() + _ = yym3787 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) @@ -46589,22 +47669,22 @@ func (x *PodProxyOptions) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq3699[1] { + if yyq3782[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym3705 := z.EncBinary() - _ = yym3705 + yym3788 := z.EncBinary() + _ = yym3788 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } - if yyr3699 || yy2arr3699 { + if yyr3782 || yy2arr3782 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym3707 := z.EncBinary() - _ = yym3707 + yym3790 := z.EncBinary() + _ = yym3790 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Path)) @@ -46613,14 +47693,14 @@ func (x *PodProxyOptions) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("Path")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym3708 := z.EncBinary() - _ = yym3708 + yym3791 := z.EncBinary() + _ = yym3791 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Path)) } } - if yyr3699 || yy2arr3699 { + if yyr3782 || yy2arr3782 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -46633,25 +47713,25 @@ func (x *PodProxyOptions) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym3709 := z.DecBinary() - _ = yym3709 + yym3792 := z.DecBinary() + _ = yym3792 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct3710 := r.ContainerType() - if yyct3710 == codecSelferValueTypeMap1234 { - yyl3710 := r.ReadMapStart() - if yyl3710 == 0 { + yyct3793 := r.ContainerType() + if yyct3793 == codecSelferValueTypeMap1234 { + yyl3793 := r.ReadMapStart() + if yyl3793 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl3710, d) + x.codecDecodeSelfFromMap(yyl3793, d) } - } else if yyct3710 == codecSelferValueTypeArray1234 { - yyl3710 := r.ReadArrayStart() - if yyl3710 == 0 { + } else if yyct3793 == codecSelferValueTypeArray1234 { + yyl3793 := r.ReadArrayStart() + if yyl3793 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl3710, d) + x.codecDecodeSelfFromArray(yyl3793, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -46663,12 +47743,12 @@ func (x *PodProxyOptions) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys3711Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3711Slc - var yyhl3711 bool = l >= 0 - for yyj3711 := 0; ; yyj3711++ { - if yyhl3711 { - if yyj3711 >= l { + var yys3794Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys3794Slc + var yyhl3794 bool = l >= 0 + for yyj3794 := 0; ; yyj3794++ { + if yyhl3794 { + if yyj3794 >= l { break } } else { @@ -46677,10 +47757,10 @@ func (x *PodProxyOptions) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3711Slc = r.DecodeBytes(yys3711Slc, true, true) - yys3711 := string(yys3711Slc) + yys3794Slc = r.DecodeBytes(yys3794Slc, true, true) + yys3794 := string(yys3794Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3711 { + switch yys3794 { case "kind": if r.TryDecodeAsNil() { x.Kind = "" @@ -46700,9 +47780,9 @@ func (x *PodProxyOptions) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { x.Path = string(r.DecodeString()) } default: - z.DecStructFieldNotFound(-1, yys3711) - } // end switch yys3711 - } // end for yyj3711 + z.DecStructFieldNotFound(-1, yys3794) + } // end switch yys3794 + } // end for yyj3794 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -46710,16 +47790,16 @@ func (x *PodProxyOptions) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj3715 int - var yyb3715 bool - var yyhl3715 bool = l >= 0 - yyj3715++ - if yyhl3715 { - yyb3715 = yyj3715 > l + var yyj3798 int + var yyb3798 bool + var yyhl3798 bool = l >= 0 + yyj3798++ + if yyhl3798 { + yyb3798 = yyj3798 > l } else { - yyb3715 = r.CheckBreak() + yyb3798 = r.CheckBreak() } - if yyb3715 { + if yyb3798 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -46729,13 +47809,13 @@ func (x *PodProxyOptions) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) } else { x.Kind = string(r.DecodeString()) } - yyj3715++ - if yyhl3715 { - yyb3715 = yyj3715 > l + yyj3798++ + if yyhl3798 { + yyb3798 = yyj3798 > l } else { - yyb3715 = r.CheckBreak() + yyb3798 = r.CheckBreak() } - if yyb3715 { + if yyb3798 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -46745,13 +47825,13 @@ func (x *PodProxyOptions) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) } else { x.APIVersion = string(r.DecodeString()) } - yyj3715++ - if yyhl3715 { - yyb3715 = yyj3715 > l + yyj3798++ + if yyhl3798 { + yyb3798 = yyj3798 > l } else { - yyb3715 = r.CheckBreak() + yyb3798 = r.CheckBreak() } - if yyb3715 { + if yyb3798 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -46762,17 +47842,17 @@ func (x *PodProxyOptions) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) x.Path = string(r.DecodeString()) } for { - yyj3715++ - if yyhl3715 { - yyb3715 = yyj3715 > l + yyj3798++ + if yyhl3798 { + yyb3798 = yyj3798 > l } else { - yyb3715 = r.CheckBreak() + yyb3798 = r.CheckBreak() } - if yyb3715 { + if yyb3798 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj3715-1, "") + z.DecStructFieldNotFound(yyj3798-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -46784,36 +47864,36 @@ func (x *NodeProxyOptions) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym3719 := z.EncBinary() - _ = yym3719 + yym3802 := z.EncBinary() + _ = yym3802 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - 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 { + yysep3803 := !z.EncBinary() + yy2arr3803 := z.EncBasicHandle().StructToArray + var yyq3803 [3]bool + _, _, _ = yysep3803, yyq3803, yy2arr3803 + const yyr3803 bool = false + yyq3803[0] = x.Kind != "" + yyq3803[1] = x.APIVersion != "" + var yynn3803 int + if yyr3803 || yy2arr3803 { r.EncodeArrayStart(3) } else { - yynn3720 = 1 - for _, b := range yyq3720 { + yynn3803 = 1 + for _, b := range yyq3803 { if b { - yynn3720++ + yynn3803++ } } - r.EncodeMapStart(yynn3720) - yynn3720 = 0 + r.EncodeMapStart(yynn3803) + yynn3803 = 0 } - if yyr3720 || yy2arr3720 { + if yyr3803 || yy2arr3803 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3720[0] { - yym3722 := z.EncBinary() - _ = yym3722 + if yyq3803[0] { + yym3805 := z.EncBinary() + _ = yym3805 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) @@ -46822,23 +47902,23 @@ func (x *NodeProxyOptions) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq3720[0] { + if yyq3803[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym3723 := z.EncBinary() - _ = yym3723 + yym3806 := z.EncBinary() + _ = yym3806 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } - if yyr3720 || yy2arr3720 { + if yyr3803 || yy2arr3803 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3720[1] { - yym3725 := z.EncBinary() - _ = yym3725 + if yyq3803[1] { + yym3808 := z.EncBinary() + _ = yym3808 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) @@ -46847,22 +47927,22 @@ func (x *NodeProxyOptions) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq3720[1] { + if yyq3803[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym3726 := z.EncBinary() - _ = yym3726 + yym3809 := z.EncBinary() + _ = yym3809 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } - if yyr3720 || yy2arr3720 { + if yyr3803 || yy2arr3803 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym3728 := z.EncBinary() - _ = yym3728 + yym3811 := z.EncBinary() + _ = yym3811 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Path)) @@ -46871,14 +47951,14 @@ func (x *NodeProxyOptions) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("Path")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym3729 := z.EncBinary() - _ = yym3729 + yym3812 := z.EncBinary() + _ = yym3812 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Path)) } } - if yyr3720 || yy2arr3720 { + if yyr3803 || yy2arr3803 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -46891,25 +47971,25 @@ func (x *NodeProxyOptions) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym3730 := z.DecBinary() - _ = yym3730 + yym3813 := z.DecBinary() + _ = yym3813 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct3731 := r.ContainerType() - if yyct3731 == codecSelferValueTypeMap1234 { - yyl3731 := r.ReadMapStart() - if yyl3731 == 0 { + yyct3814 := r.ContainerType() + if yyct3814 == codecSelferValueTypeMap1234 { + yyl3814 := r.ReadMapStart() + if yyl3814 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl3731, d) + x.codecDecodeSelfFromMap(yyl3814, d) } - } else if yyct3731 == codecSelferValueTypeArray1234 { - yyl3731 := r.ReadArrayStart() - if yyl3731 == 0 { + } else if yyct3814 == codecSelferValueTypeArray1234 { + yyl3814 := r.ReadArrayStart() + if yyl3814 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl3731, d) + x.codecDecodeSelfFromArray(yyl3814, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -46921,12 +48001,12 @@ func (x *NodeProxyOptions) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys3732Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3732Slc - var yyhl3732 bool = l >= 0 - for yyj3732 := 0; ; yyj3732++ { - if yyhl3732 { - if yyj3732 >= l { + var yys3815Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys3815Slc + var yyhl3815 bool = l >= 0 + for yyj3815 := 0; ; yyj3815++ { + if yyhl3815 { + if yyj3815 >= l { break } } else { @@ -46935,10 +48015,10 @@ func (x *NodeProxyOptions) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3732Slc = r.DecodeBytes(yys3732Slc, true, true) - yys3732 := string(yys3732Slc) + yys3815Slc = r.DecodeBytes(yys3815Slc, true, true) + yys3815 := string(yys3815Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3732 { + switch yys3815 { case "kind": if r.TryDecodeAsNil() { x.Kind = "" @@ -46958,9 +48038,9 @@ func (x *NodeProxyOptions) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { x.Path = string(r.DecodeString()) } default: - z.DecStructFieldNotFound(-1, yys3732) - } // end switch yys3732 - } // end for yyj3732 + z.DecStructFieldNotFound(-1, yys3815) + } // end switch yys3815 + } // end for yyj3815 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -46968,16 +48048,16 @@ func (x *NodeProxyOptions) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj3736 int - var yyb3736 bool - var yyhl3736 bool = l >= 0 - yyj3736++ - if yyhl3736 { - yyb3736 = yyj3736 > l + var yyj3819 int + var yyb3819 bool + var yyhl3819 bool = l >= 0 + yyj3819++ + if yyhl3819 { + yyb3819 = yyj3819 > l } else { - yyb3736 = r.CheckBreak() + yyb3819 = r.CheckBreak() } - if yyb3736 { + if yyb3819 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -46987,13 +48067,13 @@ func (x *NodeProxyOptions) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) } else { x.Kind = string(r.DecodeString()) } - yyj3736++ - if yyhl3736 { - yyb3736 = yyj3736 > l + yyj3819++ + if yyhl3819 { + yyb3819 = yyj3819 > l } else { - yyb3736 = r.CheckBreak() + yyb3819 = r.CheckBreak() } - if yyb3736 { + if yyb3819 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -47003,13 +48083,13 @@ func (x *NodeProxyOptions) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) } else { x.APIVersion = string(r.DecodeString()) } - yyj3736++ - if yyhl3736 { - yyb3736 = yyj3736 > l + yyj3819++ + if yyhl3819 { + yyb3819 = yyj3819 > l } else { - yyb3736 = r.CheckBreak() + yyb3819 = r.CheckBreak() } - if yyb3736 { + if yyb3819 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -47020,17 +48100,17 @@ func (x *NodeProxyOptions) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) x.Path = string(r.DecodeString()) } for { - yyj3736++ - if yyhl3736 { - yyb3736 = yyj3736 > l + yyj3819++ + if yyhl3819 { + yyb3819 = yyj3819 > l } else { - yyb3736 = r.CheckBreak() + yyb3819 = r.CheckBreak() } - if yyb3736 { + if yyb3819 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj3736-1, "") + z.DecStructFieldNotFound(yyj3819-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -47042,36 +48122,36 @@ func (x *ServiceProxyOptions) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym3740 := z.EncBinary() - _ = yym3740 + yym3823 := z.EncBinary() + _ = yym3823 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - 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 { + yysep3824 := !z.EncBinary() + yy2arr3824 := z.EncBasicHandle().StructToArray + var yyq3824 [3]bool + _, _, _ = yysep3824, yyq3824, yy2arr3824 + const yyr3824 bool = false + yyq3824[0] = x.Kind != "" + yyq3824[1] = x.APIVersion != "" + var yynn3824 int + if yyr3824 || yy2arr3824 { r.EncodeArrayStart(3) } else { - yynn3741 = 1 - for _, b := range yyq3741 { + yynn3824 = 1 + for _, b := range yyq3824 { if b { - yynn3741++ + yynn3824++ } } - r.EncodeMapStart(yynn3741) - yynn3741 = 0 + r.EncodeMapStart(yynn3824) + yynn3824 = 0 } - if yyr3741 || yy2arr3741 { + if yyr3824 || yy2arr3824 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3741[0] { - yym3743 := z.EncBinary() - _ = yym3743 + if yyq3824[0] { + yym3826 := z.EncBinary() + _ = yym3826 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) @@ -47080,23 +48160,23 @@ func (x *ServiceProxyOptions) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq3741[0] { + if yyq3824[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym3744 := z.EncBinary() - _ = yym3744 + yym3827 := z.EncBinary() + _ = yym3827 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } - if yyr3741 || yy2arr3741 { + if yyr3824 || yy2arr3824 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3741[1] { - yym3746 := z.EncBinary() - _ = yym3746 + if yyq3824[1] { + yym3829 := z.EncBinary() + _ = yym3829 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) @@ -47105,22 +48185,22 @@ func (x *ServiceProxyOptions) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq3741[1] { + if yyq3824[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym3747 := z.EncBinary() - _ = yym3747 + yym3830 := z.EncBinary() + _ = yym3830 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } - if yyr3741 || yy2arr3741 { + if yyr3824 || yy2arr3824 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym3749 := z.EncBinary() - _ = yym3749 + yym3832 := z.EncBinary() + _ = yym3832 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Path)) @@ -47129,14 +48209,14 @@ func (x *ServiceProxyOptions) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("Path")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym3750 := z.EncBinary() - _ = yym3750 + yym3833 := z.EncBinary() + _ = yym3833 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Path)) } } - if yyr3741 || yy2arr3741 { + if yyr3824 || yy2arr3824 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -47149,25 +48229,25 @@ func (x *ServiceProxyOptions) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym3751 := z.DecBinary() - _ = yym3751 + yym3834 := z.DecBinary() + _ = yym3834 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct3752 := r.ContainerType() - if yyct3752 == codecSelferValueTypeMap1234 { - yyl3752 := r.ReadMapStart() - if yyl3752 == 0 { + yyct3835 := r.ContainerType() + if yyct3835 == codecSelferValueTypeMap1234 { + yyl3835 := r.ReadMapStart() + if yyl3835 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl3752, d) + x.codecDecodeSelfFromMap(yyl3835, d) } - } else if yyct3752 == codecSelferValueTypeArray1234 { - yyl3752 := r.ReadArrayStart() - if yyl3752 == 0 { + } else if yyct3835 == codecSelferValueTypeArray1234 { + yyl3835 := r.ReadArrayStart() + if yyl3835 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl3752, d) + x.codecDecodeSelfFromArray(yyl3835, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -47179,12 +48259,12 @@ func (x *ServiceProxyOptions) codecDecodeSelfFromMap(l int, d *codec1978.Decoder var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys3753Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3753Slc - var yyhl3753 bool = l >= 0 - for yyj3753 := 0; ; yyj3753++ { - if yyhl3753 { - if yyj3753 >= l { + var yys3836Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys3836Slc + var yyhl3836 bool = l >= 0 + for yyj3836 := 0; ; yyj3836++ { + if yyhl3836 { + if yyj3836 >= l { break } } else { @@ -47193,10 +48273,10 @@ func (x *ServiceProxyOptions) codecDecodeSelfFromMap(l int, d *codec1978.Decoder } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3753Slc = r.DecodeBytes(yys3753Slc, true, true) - yys3753 := string(yys3753Slc) + yys3836Slc = r.DecodeBytes(yys3836Slc, true, true) + yys3836 := string(yys3836Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3753 { + switch yys3836 { case "kind": if r.TryDecodeAsNil() { x.Kind = "" @@ -47216,9 +48296,9 @@ func (x *ServiceProxyOptions) codecDecodeSelfFromMap(l int, d *codec1978.Decoder x.Path = string(r.DecodeString()) } default: - z.DecStructFieldNotFound(-1, yys3753) - } // end switch yys3753 - } // end for yyj3753 + z.DecStructFieldNotFound(-1, yys3836) + } // end switch yys3836 + } // end for yyj3836 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -47226,16 +48306,16 @@ func (x *ServiceProxyOptions) codecDecodeSelfFromArray(l int, d *codec1978.Decod var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj3757 int - var yyb3757 bool - var yyhl3757 bool = l >= 0 - yyj3757++ - if yyhl3757 { - yyb3757 = yyj3757 > l + var yyj3840 int + var yyb3840 bool + var yyhl3840 bool = l >= 0 + yyj3840++ + if yyhl3840 { + yyb3840 = yyj3840 > l } else { - yyb3757 = r.CheckBreak() + yyb3840 = r.CheckBreak() } - if yyb3757 { + if yyb3840 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -47245,13 +48325,13 @@ func (x *ServiceProxyOptions) codecDecodeSelfFromArray(l int, d *codec1978.Decod } else { x.Kind = string(r.DecodeString()) } - yyj3757++ - if yyhl3757 { - yyb3757 = yyj3757 > l + yyj3840++ + if yyhl3840 { + yyb3840 = yyj3840 > l } else { - yyb3757 = r.CheckBreak() + yyb3840 = r.CheckBreak() } - if yyb3757 { + if yyb3840 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -47261,13 +48341,13 @@ func (x *ServiceProxyOptions) codecDecodeSelfFromArray(l int, d *codec1978.Decod } else { x.APIVersion = string(r.DecodeString()) } - yyj3757++ - if yyhl3757 { - yyb3757 = yyj3757 > l + yyj3840++ + if yyhl3840 { + yyb3840 = yyj3840 > l } else { - yyb3757 = r.CheckBreak() + yyb3840 = r.CheckBreak() } - if yyb3757 { + if yyb3840 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -47278,17 +48358,17 @@ func (x *ServiceProxyOptions) codecDecodeSelfFromArray(l int, d *codec1978.Decod x.Path = string(r.DecodeString()) } for { - yyj3757++ - if yyhl3757 { - yyb3757 = yyj3757 > l + yyj3840++ + if yyhl3840 { + yyb3840 = yyj3840 > l } else { - yyb3757 = r.CheckBreak() + yyb3840 = r.CheckBreak() } - if yyb3757 { + if yyb3840 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj3757-1, "") + z.DecStructFieldNotFound(yyj3840-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -47300,34 +48380,34 @@ func (x *OwnerReference) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym3761 := z.EncBinary() - _ = yym3761 + yym3844 := z.EncBinary() + _ = yym3844 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - 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 { + yysep3845 := !z.EncBinary() + yy2arr3845 := z.EncBasicHandle().StructToArray + var yyq3845 [5]bool + _, _, _ = yysep3845, yyq3845, yy2arr3845 + const yyr3845 bool = false + yyq3845[4] = x.Controller != nil + var yynn3845 int + if yyr3845 || yy2arr3845 { r.EncodeArrayStart(5) } else { - yynn3762 = 4 - for _, b := range yyq3762 { + yynn3845 = 4 + for _, b := range yyq3845 { if b { - yynn3762++ + yynn3845++ } } - r.EncodeMapStart(yynn3762) - yynn3762 = 0 + r.EncodeMapStart(yynn3845) + yynn3845 = 0 } - if yyr3762 || yy2arr3762 { + if yyr3845 || yy2arr3845 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym3764 := z.EncBinary() - _ = yym3764 + yym3847 := z.EncBinary() + _ = yym3847 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) @@ -47336,17 +48416,17 @@ func (x *OwnerReference) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym3765 := z.EncBinary() - _ = yym3765 + yym3848 := z.EncBinary() + _ = yym3848 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } - if yyr3762 || yy2arr3762 { + if yyr3845 || yy2arr3845 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym3767 := z.EncBinary() - _ = yym3767 + yym3850 := z.EncBinary() + _ = yym3850 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) @@ -47355,17 +48435,17 @@ func (x *OwnerReference) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym3768 := z.EncBinary() - _ = yym3768 + yym3851 := z.EncBinary() + _ = yym3851 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } - if yyr3762 || yy2arr3762 { + if yyr3845 || yy2arr3845 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym3770 := z.EncBinary() - _ = yym3770 + yym3853 := z.EncBinary() + _ = yym3853 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Name)) @@ -47374,17 +48454,17 @@ func (x *OwnerReference) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("name")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym3771 := z.EncBinary() - _ = yym3771 + yym3854 := z.EncBinary() + _ = yym3854 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Name)) } } - if yyr3762 || yy2arr3762 { + if yyr3845 || yy2arr3845 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym3773 := z.EncBinary() - _ = yym3773 + yym3856 := z.EncBinary() + _ = yym3856 if false { } else if z.HasExtensions() && z.EncExt(x.UID) { } else { @@ -47394,50 +48474,50 @@ func (x *OwnerReference) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("uid")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym3774 := z.EncBinary() - _ = yym3774 + yym3857 := z.EncBinary() + _ = yym3857 if false { } else if z.HasExtensions() && z.EncExt(x.UID) { } else { r.EncodeString(codecSelferC_UTF81234, string(x.UID)) } } - if yyr3762 || yy2arr3762 { + if yyr3845 || yy2arr3845 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3762[4] { + if yyq3845[4] { if x.Controller == nil { r.EncodeNil() } else { - yy3776 := *x.Controller - yym3777 := z.EncBinary() - _ = yym3777 + yy3859 := *x.Controller + yym3860 := z.EncBinary() + _ = yym3860 if false { } else { - r.EncodeBool(bool(yy3776)) + r.EncodeBool(bool(yy3859)) } } } else { r.EncodeNil() } } else { - if yyq3762[4] { + if yyq3845[4] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("controller")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.Controller == nil { r.EncodeNil() } else { - yy3778 := *x.Controller - yym3779 := z.EncBinary() - _ = yym3779 + yy3861 := *x.Controller + yym3862 := z.EncBinary() + _ = yym3862 if false { } else { - r.EncodeBool(bool(yy3778)) + r.EncodeBool(bool(yy3861)) } } } } - if yyr3762 || yy2arr3762 { + if yyr3845 || yy2arr3845 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -47450,25 +48530,25 @@ func (x *OwnerReference) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym3780 := z.DecBinary() - _ = yym3780 + yym3863 := z.DecBinary() + _ = yym3863 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct3781 := r.ContainerType() - if yyct3781 == codecSelferValueTypeMap1234 { - yyl3781 := r.ReadMapStart() - if yyl3781 == 0 { + yyct3864 := r.ContainerType() + if yyct3864 == codecSelferValueTypeMap1234 { + yyl3864 := r.ReadMapStart() + if yyl3864 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl3781, d) + x.codecDecodeSelfFromMap(yyl3864, d) } - } else if yyct3781 == codecSelferValueTypeArray1234 { - yyl3781 := r.ReadArrayStart() - if yyl3781 == 0 { + } else if yyct3864 == codecSelferValueTypeArray1234 { + yyl3864 := r.ReadArrayStart() + if yyl3864 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl3781, d) + x.codecDecodeSelfFromArray(yyl3864, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -47480,12 +48560,12 @@ func (x *OwnerReference) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys3782Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3782Slc - var yyhl3782 bool = l >= 0 - for yyj3782 := 0; ; yyj3782++ { - if yyhl3782 { - if yyj3782 >= 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 { @@ -47494,10 +48574,10 @@ func (x *OwnerReference) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3782Slc = r.DecodeBytes(yys3782Slc, true, true) - yys3782 := string(yys3782Slc) + yys3865Slc = r.DecodeBytes(yys3865Slc, true, true) + yys3865 := string(yys3865Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3782 { + switch yys3865 { case "apiVersion": if r.TryDecodeAsNil() { x.APIVersion = "" @@ -47531,17 +48611,17 @@ func (x *OwnerReference) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { if x.Controller == nil { x.Controller = new(bool) } - yym3788 := z.DecBinary() - _ = yym3788 + yym3871 := z.DecBinary() + _ = yym3871 if false { } else { *((*bool)(x.Controller)) = r.DecodeBool() } } default: - z.DecStructFieldNotFound(-1, yys3782) - } // end switch yys3782 - } // end for yyj3782 + z.DecStructFieldNotFound(-1, yys3865) + } // end switch yys3865 + } // end for yyj3865 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -47549,16 +48629,16 @@ func (x *OwnerReference) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj3789 int - var yyb3789 bool - var yyhl3789 bool = l >= 0 - yyj3789++ - if yyhl3789 { - yyb3789 = yyj3789 > l + var yyj3872 int + var yyb3872 bool + var yyhl3872 bool = l >= 0 + yyj3872++ + if yyhl3872 { + yyb3872 = yyj3872 > l } else { - yyb3789 = r.CheckBreak() + yyb3872 = r.CheckBreak() } - if yyb3789 { + if yyb3872 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -47568,13 +48648,13 @@ func (x *OwnerReference) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.APIVersion = string(r.DecodeString()) } - yyj3789++ - if yyhl3789 { - yyb3789 = yyj3789 > l + yyj3872++ + if yyhl3872 { + yyb3872 = yyj3872 > l } else { - yyb3789 = r.CheckBreak() + yyb3872 = r.CheckBreak() } - if yyb3789 { + if yyb3872 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -47584,13 +48664,13 @@ func (x *OwnerReference) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.Kind = string(r.DecodeString()) } - yyj3789++ - if yyhl3789 { - yyb3789 = yyj3789 > l + yyj3872++ + if yyhl3872 { + yyb3872 = yyj3872 > l } else { - yyb3789 = r.CheckBreak() + yyb3872 = r.CheckBreak() } - if yyb3789 { + if yyb3872 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -47600,13 +48680,13 @@ func (x *OwnerReference) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.Name = string(r.DecodeString()) } - yyj3789++ - if yyhl3789 { - yyb3789 = yyj3789 > l + yyj3872++ + if yyhl3872 { + yyb3872 = yyj3872 > l } else { - yyb3789 = r.CheckBreak() + yyb3872 = r.CheckBreak() } - if yyb3789 { + if yyb3872 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -47616,13 +48696,13 @@ func (x *OwnerReference) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.UID = pkg1_types.UID(r.DecodeString()) } - yyj3789++ - if yyhl3789 { - yyb3789 = yyj3789 > l + yyj3872++ + if yyhl3872 { + yyb3872 = yyj3872 > l } else { - yyb3789 = r.CheckBreak() + yyb3872 = r.CheckBreak() } - if yyb3789 { + if yyb3872 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -47635,25 +48715,25 @@ func (x *OwnerReference) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if x.Controller == nil { x.Controller = new(bool) } - yym3795 := z.DecBinary() - _ = yym3795 + yym3878 := z.DecBinary() + _ = yym3878 if false { } else { *((*bool)(x.Controller)) = r.DecodeBool() } } for { - yyj3789++ - if yyhl3789 { - yyb3789 = yyj3789 > l + yyj3872++ + if yyhl3872 { + yyb3872 = yyj3872 > l } else { - yyb3789 = r.CheckBreak() + yyb3872 = r.CheckBreak() } - if yyb3789 { + if yyb3872 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj3789-1, "") + z.DecStructFieldNotFound(yyj3872-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -47665,41 +48745,41 @@ func (x *ObjectReference) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym3796 := z.EncBinary() - _ = yym3796 + yym3879 := z.EncBinary() + _ = yym3879 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - 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 { + yysep3880 := !z.EncBinary() + yy2arr3880 := z.EncBasicHandle().StructToArray + var yyq3880 [7]bool + _, _, _ = yysep3880, yyq3880, yy2arr3880 + const yyr3880 bool = false + yyq3880[0] = x.Kind != "" + yyq3880[1] = x.Namespace != "" + yyq3880[2] = x.Name != "" + yyq3880[3] = x.UID != "" + yyq3880[4] = x.APIVersion != "" + yyq3880[5] = x.ResourceVersion != "" + yyq3880[6] = x.FieldPath != "" + var yynn3880 int + if yyr3880 || yy2arr3880 { r.EncodeArrayStart(7) } else { - yynn3797 = 0 - for _, b := range yyq3797 { + yynn3880 = 0 + for _, b := range yyq3880 { if b { - yynn3797++ + yynn3880++ } } - r.EncodeMapStart(yynn3797) - yynn3797 = 0 + r.EncodeMapStart(yynn3880) + yynn3880 = 0 } - if yyr3797 || yy2arr3797 { + if yyr3880 || yy2arr3880 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3797[0] { - yym3799 := z.EncBinary() - _ = yym3799 + if yyq3880[0] { + yym3882 := z.EncBinary() + _ = yym3882 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) @@ -47708,23 +48788,23 @@ func (x *ObjectReference) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq3797[0] { + if yyq3880[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym3800 := z.EncBinary() - _ = yym3800 + yym3883 := z.EncBinary() + _ = yym3883 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } - if yyr3797 || yy2arr3797 { + if yyr3880 || yy2arr3880 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3797[1] { - yym3802 := z.EncBinary() - _ = yym3802 + if yyq3880[1] { + yym3885 := z.EncBinary() + _ = yym3885 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Namespace)) @@ -47733,23 +48813,23 @@ func (x *ObjectReference) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq3797[1] { + if yyq3880[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("namespace")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym3803 := z.EncBinary() - _ = yym3803 + yym3886 := z.EncBinary() + _ = yym3886 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Namespace)) } } } - if yyr3797 || yy2arr3797 { + if yyr3880 || yy2arr3880 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3797[2] { - yym3805 := z.EncBinary() - _ = yym3805 + if yyq3880[2] { + yym3888 := z.EncBinary() + _ = yym3888 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Name)) @@ -47758,23 +48838,23 @@ func (x *ObjectReference) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq3797[2] { + if yyq3880[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("name")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym3806 := z.EncBinary() - _ = yym3806 + yym3889 := z.EncBinary() + _ = yym3889 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Name)) } } } - if yyr3797 || yy2arr3797 { + if yyr3880 || yy2arr3880 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3797[3] { - yym3808 := z.EncBinary() - _ = yym3808 + if yyq3880[3] { + yym3891 := z.EncBinary() + _ = yym3891 if false { } else if z.HasExtensions() && z.EncExt(x.UID) { } else { @@ -47784,12 +48864,12 @@ func (x *ObjectReference) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq3797[3] { + if yyq3880[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("uid")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym3809 := z.EncBinary() - _ = yym3809 + yym3892 := z.EncBinary() + _ = yym3892 if false { } else if z.HasExtensions() && z.EncExt(x.UID) { } else { @@ -47797,11 +48877,11 @@ func (x *ObjectReference) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr3797 || yy2arr3797 { + if yyr3880 || yy2arr3880 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3797[4] { - yym3811 := z.EncBinary() - _ = yym3811 + if yyq3880[4] { + yym3894 := z.EncBinary() + _ = yym3894 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) @@ -47810,23 +48890,23 @@ func (x *ObjectReference) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq3797[4] { + if yyq3880[4] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym3812 := z.EncBinary() - _ = yym3812 + yym3895 := z.EncBinary() + _ = yym3895 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } - if yyr3797 || yy2arr3797 { + if yyr3880 || yy2arr3880 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3797[5] { - yym3814 := z.EncBinary() - _ = yym3814 + if yyq3880[5] { + yym3897 := z.EncBinary() + _ = yym3897 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.ResourceVersion)) @@ -47835,23 +48915,23 @@ func (x *ObjectReference) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq3797[5] { + if yyq3880[5] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("resourceVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym3815 := z.EncBinary() - _ = yym3815 + yym3898 := z.EncBinary() + _ = yym3898 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.ResourceVersion)) } } } - if yyr3797 || yy2arr3797 { + if yyr3880 || yy2arr3880 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3797[6] { - yym3817 := z.EncBinary() - _ = yym3817 + if yyq3880[6] { + yym3900 := z.EncBinary() + _ = yym3900 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.FieldPath)) @@ -47860,19 +48940,19 @@ func (x *ObjectReference) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq3797[6] { + if yyq3880[6] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("fieldPath")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym3818 := z.EncBinary() - _ = yym3818 + yym3901 := z.EncBinary() + _ = yym3901 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.FieldPath)) } } } - if yyr3797 || yy2arr3797 { + if yyr3880 || yy2arr3880 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -47885,25 +48965,25 @@ func (x *ObjectReference) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym3819 := z.DecBinary() - _ = yym3819 + yym3902 := z.DecBinary() + _ = yym3902 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct3820 := r.ContainerType() - if yyct3820 == codecSelferValueTypeMap1234 { - yyl3820 := r.ReadMapStart() - if yyl3820 == 0 { + yyct3903 := r.ContainerType() + if yyct3903 == codecSelferValueTypeMap1234 { + yyl3903 := r.ReadMapStart() + if yyl3903 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl3820, d) + x.codecDecodeSelfFromMap(yyl3903, d) } - } else if yyct3820 == codecSelferValueTypeArray1234 { - yyl3820 := r.ReadArrayStart() - if yyl3820 == 0 { + } else if yyct3903 == codecSelferValueTypeArray1234 { + yyl3903 := r.ReadArrayStart() + if yyl3903 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl3820, d) + x.codecDecodeSelfFromArray(yyl3903, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -47915,12 +48995,12 @@ func (x *ObjectReference) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys3821Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3821Slc - var yyhl3821 bool = l >= 0 - for yyj3821 := 0; ; yyj3821++ { - if yyhl3821 { - if yyj3821 >= l { + var yys3904Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys3904Slc + var yyhl3904 bool = l >= 0 + for yyj3904 := 0; ; yyj3904++ { + if yyhl3904 { + if yyj3904 >= l { break } } else { @@ -47929,10 +49009,10 @@ func (x *ObjectReference) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3821Slc = r.DecodeBytes(yys3821Slc, true, true) - yys3821 := string(yys3821Slc) + yys3904Slc = r.DecodeBytes(yys3904Slc, true, true) + yys3904 := string(yys3904Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3821 { + switch yys3904 { case "kind": if r.TryDecodeAsNil() { x.Kind = "" @@ -47976,9 +49056,9 @@ func (x *ObjectReference) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { x.FieldPath = string(r.DecodeString()) } default: - z.DecStructFieldNotFound(-1, yys3821) - } // end switch yys3821 - } // end for yyj3821 + z.DecStructFieldNotFound(-1, yys3904) + } // end switch yys3904 + } // end for yyj3904 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -47986,16 +49066,16 @@ func (x *ObjectReference) 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 + var yyj3912 int + var yyb3912 bool + var yyhl3912 bool = l >= 0 + yyj3912++ + if yyhl3912 { + yyb3912 = yyj3912 > l } else { - yyb3829 = r.CheckBreak() + yyb3912 = r.CheckBreak() } - if yyb3829 { + if yyb3912 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -48005,13 +49085,13 @@ func (x *ObjectReference) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) } else { x.Kind = string(r.DecodeString()) } - yyj3829++ - if yyhl3829 { - yyb3829 = yyj3829 > l + yyj3912++ + if yyhl3912 { + yyb3912 = yyj3912 > l } else { - yyb3829 = r.CheckBreak() + yyb3912 = r.CheckBreak() } - if yyb3829 { + if yyb3912 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -48021,13 +49101,13 @@ func (x *ObjectReference) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) } else { x.Namespace = string(r.DecodeString()) } - yyj3829++ - if yyhl3829 { - yyb3829 = yyj3829 > l + yyj3912++ + if yyhl3912 { + yyb3912 = yyj3912 > l } else { - yyb3829 = r.CheckBreak() + yyb3912 = r.CheckBreak() } - if yyb3829 { + if yyb3912 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -48037,13 +49117,13 @@ func (x *ObjectReference) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) } else { x.Name = string(r.DecodeString()) } - yyj3829++ - if yyhl3829 { - yyb3829 = yyj3829 > l + yyj3912++ + if yyhl3912 { + yyb3912 = yyj3912 > l } else { - yyb3829 = r.CheckBreak() + yyb3912 = r.CheckBreak() } - if yyb3829 { + if yyb3912 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -48053,13 +49133,13 @@ func (x *ObjectReference) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) } else { x.UID = pkg1_types.UID(r.DecodeString()) } - yyj3829++ - if yyhl3829 { - yyb3829 = yyj3829 > l + yyj3912++ + if yyhl3912 { + yyb3912 = yyj3912 > l } else { - yyb3829 = r.CheckBreak() + yyb3912 = r.CheckBreak() } - if yyb3829 { + if yyb3912 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -48069,13 +49149,13 @@ func (x *ObjectReference) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) } else { x.APIVersion = string(r.DecodeString()) } - yyj3829++ - if yyhl3829 { - yyb3829 = yyj3829 > l + yyj3912++ + if yyhl3912 { + yyb3912 = yyj3912 > l } else { - yyb3829 = r.CheckBreak() + yyb3912 = r.CheckBreak() } - if yyb3829 { + if yyb3912 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -48085,13 +49165,13 @@ func (x *ObjectReference) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) } else { x.ResourceVersion = string(r.DecodeString()) } - yyj3829++ - if yyhl3829 { - yyb3829 = yyj3829 > l + yyj3912++ + if yyhl3912 { + yyb3912 = yyj3912 > l } else { - yyb3829 = r.CheckBreak() + yyb3912 = r.CheckBreak() } - if yyb3829 { + if yyb3912 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -48102,17 +49182,17 @@ func (x *ObjectReference) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) x.FieldPath = string(r.DecodeString()) } for { - yyj3829++ - if yyhl3829 { - yyb3829 = yyj3829 > l + yyj3912++ + if yyhl3912 { + yyb3912 = yyj3912 > l } else { - yyb3829 = r.CheckBreak() + yyb3912 = r.CheckBreak() } - if yyb3829 { + if yyb3912 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj3829-1, "") + z.DecStructFieldNotFound(yyj3912-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -48124,33 +49204,33 @@ func (x *LocalObjectReference) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym3837 := z.EncBinary() - _ = yym3837 + yym3920 := z.EncBinary() + _ = yym3920 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep3838 := !z.EncBinary() - yy2arr3838 := z.EncBasicHandle().StructToArray - var yyq3838 [1]bool - _, _, _ = yysep3838, yyq3838, yy2arr3838 - const yyr3838 bool = false - var yynn3838 int - if yyr3838 || yy2arr3838 { + yysep3921 := !z.EncBinary() + yy2arr3921 := z.EncBasicHandle().StructToArray + var yyq3921 [1]bool + _, _, _ = yysep3921, yyq3921, yy2arr3921 + const yyr3921 bool = false + var yynn3921 int + if yyr3921 || yy2arr3921 { r.EncodeArrayStart(1) } else { - yynn3838 = 1 - for _, b := range yyq3838 { + yynn3921 = 1 + for _, b := range yyq3921 { if b { - yynn3838++ + yynn3921++ } } - r.EncodeMapStart(yynn3838) - yynn3838 = 0 + r.EncodeMapStart(yynn3921) + yynn3921 = 0 } - if yyr3838 || yy2arr3838 { + if yyr3921 || yy2arr3921 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym3840 := z.EncBinary() - _ = yym3840 + yym3923 := z.EncBinary() + _ = yym3923 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Name)) @@ -48159,14 +49239,14 @@ func (x *LocalObjectReference) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("Name")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym3841 := z.EncBinary() - _ = yym3841 + yym3924 := z.EncBinary() + _ = yym3924 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Name)) } } - if yyr3838 || yy2arr3838 { + if yyr3921 || yy2arr3921 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -48179,25 +49259,25 @@ func (x *LocalObjectReference) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym3842 := z.DecBinary() - _ = yym3842 + yym3925 := z.DecBinary() + _ = yym3925 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct3843 := r.ContainerType() - if yyct3843 == codecSelferValueTypeMap1234 { - yyl3843 := r.ReadMapStart() - if yyl3843 == 0 { + yyct3926 := r.ContainerType() + if yyct3926 == codecSelferValueTypeMap1234 { + yyl3926 := r.ReadMapStart() + if yyl3926 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl3843, d) + x.codecDecodeSelfFromMap(yyl3926, d) } - } else if yyct3843 == codecSelferValueTypeArray1234 { - yyl3843 := r.ReadArrayStart() - if yyl3843 == 0 { + } else if yyct3926 == codecSelferValueTypeArray1234 { + yyl3926 := r.ReadArrayStart() + if yyl3926 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl3843, d) + x.codecDecodeSelfFromArray(yyl3926, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -48209,12 +49289,12 @@ func (x *LocalObjectReference) codecDecodeSelfFromMap(l int, d *codec1978.Decode var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys3844Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3844Slc - var yyhl3844 bool = l >= 0 - for yyj3844 := 0; ; yyj3844++ { - if yyhl3844 { - if yyj3844 >= l { + var yys3927Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys3927Slc + var yyhl3927 bool = l >= 0 + for yyj3927 := 0; ; yyj3927++ { + if yyhl3927 { + if yyj3927 >= l { break } } else { @@ -48223,10 +49303,10 @@ func (x *LocalObjectReference) codecDecodeSelfFromMap(l int, d *codec1978.Decode } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3844Slc = r.DecodeBytes(yys3844Slc, true, true) - yys3844 := string(yys3844Slc) + yys3927Slc = r.DecodeBytes(yys3927Slc, true, true) + yys3927 := string(yys3927Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3844 { + switch yys3927 { case "Name": if r.TryDecodeAsNil() { x.Name = "" @@ -48234,9 +49314,9 @@ func (x *LocalObjectReference) codecDecodeSelfFromMap(l int, d *codec1978.Decode x.Name = string(r.DecodeString()) } default: - z.DecStructFieldNotFound(-1, yys3844) - } // end switch yys3844 - } // end for yyj3844 + z.DecStructFieldNotFound(-1, yys3927) + } // end switch yys3927 + } // end for yyj3927 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -48244,16 +49324,16 @@ func (x *LocalObjectReference) codecDecodeSelfFromArray(l int, d *codec1978.Deco 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 + var yyj3929 int + var yyb3929 bool + var yyhl3929 bool = l >= 0 + yyj3929++ + if yyhl3929 { + yyb3929 = yyj3929 > l } else { - yyb3846 = r.CheckBreak() + yyb3929 = r.CheckBreak() } - if yyb3846 { + if yyb3929 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -48264,17 +49344,17 @@ func (x *LocalObjectReference) codecDecodeSelfFromArray(l int, d *codec1978.Deco x.Name = string(r.DecodeString()) } for { - yyj3846++ - if yyhl3846 { - yyb3846 = yyj3846 > l + yyj3929++ + if yyhl3929 { + yyb3929 = yyj3929 > l } else { - yyb3846 = r.CheckBreak() + yyb3929 = r.CheckBreak() } - if yyb3846 { + if yyb3929 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj3846-1, "") + z.DecStructFieldNotFound(yyj3929-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -48286,37 +49366,37 @@ func (x *SerializedReference) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym3848 := z.EncBinary() - _ = yym3848 + yym3931 := z.EncBinary() + _ = yym3931 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - 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 { + yysep3932 := !z.EncBinary() + yy2arr3932 := z.EncBasicHandle().StructToArray + var yyq3932 [3]bool + _, _, _ = yysep3932, yyq3932, yy2arr3932 + const yyr3932 bool = false + yyq3932[0] = x.Kind != "" + yyq3932[1] = x.APIVersion != "" + yyq3932[2] = true + var yynn3932 int + if yyr3932 || yy2arr3932 { r.EncodeArrayStart(3) } else { - yynn3849 = 0 - for _, b := range yyq3849 { + yynn3932 = 0 + for _, b := range yyq3932 { if b { - yynn3849++ + yynn3932++ } } - r.EncodeMapStart(yynn3849) - yynn3849 = 0 + r.EncodeMapStart(yynn3932) + yynn3932 = 0 } - if yyr3849 || yy2arr3849 { + if yyr3932 || yy2arr3932 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3849[0] { - yym3851 := z.EncBinary() - _ = yym3851 + if yyq3932[0] { + yym3934 := z.EncBinary() + _ = yym3934 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) @@ -48325,23 +49405,23 @@ func (x *SerializedReference) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq3849[0] { + if yyq3932[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym3852 := z.EncBinary() - _ = yym3852 + yym3935 := z.EncBinary() + _ = yym3935 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } - if yyr3849 || yy2arr3849 { + if yyr3932 || yy2arr3932 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3849[1] { - yym3854 := z.EncBinary() - _ = yym3854 + if yyq3932[1] { + yym3937 := z.EncBinary() + _ = yym3937 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) @@ -48350,36 +49430,36 @@ func (x *SerializedReference) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq3849[1] { + if yyq3932[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym3855 := z.EncBinary() - _ = yym3855 + yym3938 := z.EncBinary() + _ = yym3938 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } - if yyr3849 || yy2arr3849 { + if yyr3932 || yy2arr3932 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3849[2] { - yy3857 := &x.Reference - yy3857.CodecEncodeSelf(e) + if yyq3932[2] { + yy3940 := &x.Reference + yy3940.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { - if yyq3849[2] { + if yyq3932[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("reference")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy3858 := &x.Reference - yy3858.CodecEncodeSelf(e) + yy3941 := &x.Reference + yy3941.CodecEncodeSelf(e) } } - if yyr3849 || yy2arr3849 { + if yyr3932 || yy2arr3932 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -48392,25 +49472,25 @@ func (x *SerializedReference) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym3859 := z.DecBinary() - _ = yym3859 + yym3942 := z.DecBinary() + _ = yym3942 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct3860 := r.ContainerType() - if yyct3860 == codecSelferValueTypeMap1234 { - yyl3860 := r.ReadMapStart() - if yyl3860 == 0 { + yyct3943 := r.ContainerType() + if yyct3943 == codecSelferValueTypeMap1234 { + yyl3943 := r.ReadMapStart() + if yyl3943 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl3860, d) + x.codecDecodeSelfFromMap(yyl3943, d) } - } else if yyct3860 == codecSelferValueTypeArray1234 { - yyl3860 := r.ReadArrayStart() - if yyl3860 == 0 { + } else if yyct3943 == codecSelferValueTypeArray1234 { + yyl3943 := r.ReadArrayStart() + if yyl3943 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl3860, d) + x.codecDecodeSelfFromArray(yyl3943, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -48422,12 +49502,12 @@ func (x *SerializedReference) codecDecodeSelfFromMap(l int, d *codec1978.Decoder var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys3861Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3861Slc - var yyhl3861 bool = l >= 0 - for yyj3861 := 0; ; yyj3861++ { - if yyhl3861 { - if yyj3861 >= l { + 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 { @@ -48436,10 +49516,10 @@ func (x *SerializedReference) codecDecodeSelfFromMap(l int, d *codec1978.Decoder } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3861Slc = r.DecodeBytes(yys3861Slc, true, true) - yys3861 := string(yys3861Slc) + yys3944Slc = r.DecodeBytes(yys3944Slc, true, true) + yys3944 := string(yys3944Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3861 { + switch yys3944 { case "kind": if r.TryDecodeAsNil() { x.Kind = "" @@ -48456,13 +49536,13 @@ func (x *SerializedReference) codecDecodeSelfFromMap(l int, d *codec1978.Decoder if r.TryDecodeAsNil() { x.Reference = ObjectReference{} } else { - yyv3864 := &x.Reference - yyv3864.CodecDecodeSelf(d) + yyv3947 := &x.Reference + yyv3947.CodecDecodeSelf(d) } default: - z.DecStructFieldNotFound(-1, yys3861) - } // end switch yys3861 - } // end for yyj3861 + z.DecStructFieldNotFound(-1, yys3944) + } // end switch yys3944 + } // end for yyj3944 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -48470,16 +49550,16 @@ func (x *SerializedReference) codecDecodeSelfFromArray(l int, d *codec1978.Decod var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj3865 int - var yyb3865 bool - var yyhl3865 bool = l >= 0 - yyj3865++ - if yyhl3865 { - yyb3865 = yyj3865 > l + var yyj3948 int + var yyb3948 bool + var yyhl3948 bool = l >= 0 + yyj3948++ + if yyhl3948 { + yyb3948 = yyj3948 > l } else { - yyb3865 = r.CheckBreak() + yyb3948 = r.CheckBreak() } - if yyb3865 { + if yyb3948 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -48489,13 +49569,13 @@ func (x *SerializedReference) codecDecodeSelfFromArray(l int, d *codec1978.Decod } else { x.Kind = string(r.DecodeString()) } - yyj3865++ - if yyhl3865 { - yyb3865 = yyj3865 > l + yyj3948++ + if yyhl3948 { + yyb3948 = yyj3948 > l } else { - yyb3865 = r.CheckBreak() + yyb3948 = r.CheckBreak() } - if yyb3865 { + if yyb3948 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -48505,13 +49585,13 @@ func (x *SerializedReference) codecDecodeSelfFromArray(l int, d *codec1978.Decod } else { x.APIVersion = string(r.DecodeString()) } - yyj3865++ - if yyhl3865 { - yyb3865 = yyj3865 > l + yyj3948++ + if yyhl3948 { + yyb3948 = yyj3948 > l } else { - yyb3865 = r.CheckBreak() + yyb3948 = r.CheckBreak() } - if yyb3865 { + if yyb3948 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -48519,21 +49599,21 @@ func (x *SerializedReference) codecDecodeSelfFromArray(l int, d *codec1978.Decod if r.TryDecodeAsNil() { x.Reference = ObjectReference{} } else { - yyv3868 := &x.Reference - yyv3868.CodecDecodeSelf(d) + yyv3951 := &x.Reference + yyv3951.CodecDecodeSelf(d) } for { - yyj3865++ - if yyhl3865 { - yyb3865 = yyj3865 > l + yyj3948++ + if yyhl3948 { + yyb3948 = yyj3948 > l } else { - yyb3865 = r.CheckBreak() + yyb3948 = r.CheckBreak() } - if yyb3865 { + if yyb3948 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj3865-1, "") + z.DecStructFieldNotFound(yyj3948-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -48545,36 +49625,36 @@ func (x *EventSource) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym3869 := z.EncBinary() - _ = yym3869 + yym3952 := z.EncBinary() + _ = yym3952 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - 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 { + yysep3953 := !z.EncBinary() + yy2arr3953 := z.EncBasicHandle().StructToArray + var yyq3953 [2]bool + _, _, _ = yysep3953, yyq3953, yy2arr3953 + const yyr3953 bool = false + yyq3953[0] = x.Component != "" + yyq3953[1] = x.Host != "" + var yynn3953 int + if yyr3953 || yy2arr3953 { r.EncodeArrayStart(2) } else { - yynn3870 = 0 - for _, b := range yyq3870 { + yynn3953 = 0 + for _, b := range yyq3953 { if b { - yynn3870++ + yynn3953++ } } - r.EncodeMapStart(yynn3870) - yynn3870 = 0 + r.EncodeMapStart(yynn3953) + yynn3953 = 0 } - if yyr3870 || yy2arr3870 { + if yyr3953 || yy2arr3953 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3870[0] { - yym3872 := z.EncBinary() - _ = yym3872 + if yyq3953[0] { + yym3955 := z.EncBinary() + _ = yym3955 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Component)) @@ -48583,23 +49663,23 @@ func (x *EventSource) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq3870[0] { + if yyq3953[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("component")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym3873 := z.EncBinary() - _ = yym3873 + yym3956 := z.EncBinary() + _ = yym3956 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Component)) } } } - if yyr3870 || yy2arr3870 { + if yyr3953 || yy2arr3953 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3870[1] { - yym3875 := z.EncBinary() - _ = yym3875 + if yyq3953[1] { + yym3958 := z.EncBinary() + _ = yym3958 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Host)) @@ -48608,19 +49688,19 @@ func (x *EventSource) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq3870[1] { + if yyq3953[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("host")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym3876 := z.EncBinary() - _ = yym3876 + yym3959 := z.EncBinary() + _ = yym3959 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Host)) } } } - if yyr3870 || yy2arr3870 { + if yyr3953 || yy2arr3953 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -48633,25 +49713,25 @@ func (x *EventSource) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym3877 := z.DecBinary() - _ = yym3877 + yym3960 := z.DecBinary() + _ = yym3960 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct3878 := r.ContainerType() - if yyct3878 == codecSelferValueTypeMap1234 { - yyl3878 := r.ReadMapStart() - if yyl3878 == 0 { + yyct3961 := r.ContainerType() + if yyct3961 == codecSelferValueTypeMap1234 { + yyl3961 := r.ReadMapStart() + if yyl3961 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl3878, d) + x.codecDecodeSelfFromMap(yyl3961, d) } - } else if yyct3878 == codecSelferValueTypeArray1234 { - yyl3878 := r.ReadArrayStart() - if yyl3878 == 0 { + } else if yyct3961 == codecSelferValueTypeArray1234 { + yyl3961 := r.ReadArrayStart() + if yyl3961 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl3878, d) + x.codecDecodeSelfFromArray(yyl3961, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -48663,12 +49743,12 @@ func (x *EventSource) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys3879Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3879Slc - var yyhl3879 bool = l >= 0 - for yyj3879 := 0; ; yyj3879++ { - if yyhl3879 { - if yyj3879 >= l { + var yys3962Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys3962Slc + var yyhl3962 bool = l >= 0 + for yyj3962 := 0; ; yyj3962++ { + if yyhl3962 { + if yyj3962 >= l { break } } else { @@ -48677,10 +49757,10 @@ func (x *EventSource) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3879Slc = r.DecodeBytes(yys3879Slc, true, true) - yys3879 := string(yys3879Slc) + yys3962Slc = r.DecodeBytes(yys3962Slc, true, true) + yys3962 := string(yys3962Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3879 { + switch yys3962 { case "component": if r.TryDecodeAsNil() { x.Component = "" @@ -48694,9 +49774,9 @@ func (x *EventSource) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { x.Host = string(r.DecodeString()) } default: - z.DecStructFieldNotFound(-1, yys3879) - } // end switch yys3879 - } // end for yyj3879 + z.DecStructFieldNotFound(-1, yys3962) + } // end switch yys3962 + } // end for yyj3962 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -48704,16 +49784,16 @@ func (x *EventSource) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj3882 int - var yyb3882 bool - var yyhl3882 bool = l >= 0 - yyj3882++ - if yyhl3882 { - yyb3882 = yyj3882 > l + var yyj3965 int + var yyb3965 bool + var yyhl3965 bool = l >= 0 + yyj3965++ + if yyhl3965 { + yyb3965 = yyj3965 > l } else { - yyb3882 = r.CheckBreak() + yyb3965 = r.CheckBreak() } - if yyb3882 { + if yyb3965 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -48723,13 +49803,13 @@ func (x *EventSource) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.Component = string(r.DecodeString()) } - yyj3882++ - if yyhl3882 { - yyb3882 = yyj3882 > l + yyj3965++ + if yyhl3965 { + yyb3965 = yyj3965 > l } else { - yyb3882 = r.CheckBreak() + yyb3965 = r.CheckBreak() } - if yyb3882 { + if yyb3965 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -48740,17 +49820,17 @@ func (x *EventSource) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { x.Host = string(r.DecodeString()) } for { - yyj3882++ - if yyhl3882 { - yyb3882 = yyj3882 > l + yyj3965++ + if yyhl3965 { + yyb3965 = yyj3965 > l } else { - yyb3882 = r.CheckBreak() + yyb3965 = r.CheckBreak() } - if yyb3882 { + if yyb3965 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj3882-1, "") + z.DecStructFieldNotFound(yyj3965-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -48762,45 +49842,45 @@ func (x *Event) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym3885 := z.EncBinary() - _ = yym3885 + yym3968 := z.EncBinary() + _ = yym3968 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - 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 { + yysep3969 := !z.EncBinary() + yy2arr3969 := z.EncBasicHandle().StructToArray + var yyq3969 [11]bool + _, _, _ = yysep3969, yyq3969, yy2arr3969 + const yyr3969 bool = false + yyq3969[0] = x.Kind != "" + yyq3969[1] = x.APIVersion != "" + yyq3969[2] = true + yyq3969[3] = true + yyq3969[4] = x.Reason != "" + yyq3969[5] = x.Message != "" + yyq3969[6] = true + yyq3969[7] = true + yyq3969[8] = true + yyq3969[9] = x.Count != 0 + yyq3969[10] = x.Type != "" + var yynn3969 int + if yyr3969 || yy2arr3969 { r.EncodeArrayStart(11) } else { - yynn3886 = 0 - for _, b := range yyq3886 { + yynn3969 = 0 + for _, b := range yyq3969 { if b { - yynn3886++ + yynn3969++ } } - r.EncodeMapStart(yynn3886) - yynn3886 = 0 + r.EncodeMapStart(yynn3969) + yynn3969 = 0 } - if yyr3886 || yy2arr3886 { + if yyr3969 || yy2arr3969 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3886[0] { - yym3888 := z.EncBinary() - _ = yym3888 + if yyq3969[0] { + yym3971 := z.EncBinary() + _ = yym3971 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) @@ -48809,23 +49889,23 @@ func (x *Event) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq3886[0] { + if yyq3969[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym3889 := z.EncBinary() - _ = yym3889 + yym3972 := z.EncBinary() + _ = yym3972 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } - if yyr3886 || yy2arr3886 { + if yyr3969 || yy2arr3969 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3886[1] { - yym3891 := z.EncBinary() - _ = yym3891 + if yyq3969[1] { + yym3974 := z.EncBinary() + _ = yym3974 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) @@ -48834,57 +49914,57 @@ func (x *Event) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq3886[1] { + if yyq3969[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym3892 := z.EncBinary() - _ = yym3892 + yym3975 := z.EncBinary() + _ = yym3975 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } - if yyr3886 || yy2arr3886 { + if yyr3969 || yy2arr3969 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3886[2] { - yy3894 := &x.ObjectMeta - yy3894.CodecEncodeSelf(e) + if yyq3969[2] { + yy3977 := &x.ObjectMeta + yy3977.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { - if yyq3886[2] { + if yyq3969[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy3895 := &x.ObjectMeta - yy3895.CodecEncodeSelf(e) + yy3978 := &x.ObjectMeta + yy3978.CodecEncodeSelf(e) } } - if yyr3886 || yy2arr3886 { + if yyr3969 || yy2arr3969 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3886[3] { - yy3897 := &x.InvolvedObject - yy3897.CodecEncodeSelf(e) + if yyq3969[3] { + yy3980 := &x.InvolvedObject + yy3980.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { - if yyq3886[3] { + if yyq3969[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("involvedObject")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy3898 := &x.InvolvedObject - yy3898.CodecEncodeSelf(e) + yy3981 := &x.InvolvedObject + yy3981.CodecEncodeSelf(e) } } - if yyr3886 || yy2arr3886 { + if yyr3969 || yy2arr3969 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3886[4] { - yym3900 := z.EncBinary() - _ = yym3900 + if yyq3969[4] { + yym3983 := z.EncBinary() + _ = yym3983 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Reason)) @@ -48893,23 +49973,23 @@ func (x *Event) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq3886[4] { + if yyq3969[4] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("reason")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym3901 := z.EncBinary() - _ = yym3901 + yym3984 := z.EncBinary() + _ = yym3984 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Reason)) } } } - if yyr3886 || yy2arr3886 { + if yyr3969 || yy2arr3969 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3886[5] { - yym3903 := z.EncBinary() - _ = yym3903 + if yyq3969[5] { + yym3986 := z.EncBinary() + _ = yym3986 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Message)) @@ -48918,114 +49998,114 @@ func (x *Event) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq3886[5] { + if yyq3969[5] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("message")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym3904 := z.EncBinary() - _ = yym3904 + yym3987 := z.EncBinary() + _ = yym3987 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Message)) } } } - if yyr3886 || yy2arr3886 { + if yyr3969 || yy2arr3969 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3886[6] { - yy3906 := &x.Source - yy3906.CodecEncodeSelf(e) + if yyq3969[6] { + yy3989 := &x.Source + yy3989.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { - if yyq3886[6] { + if yyq3969[6] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("source")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy3907 := &x.Source - yy3907.CodecEncodeSelf(e) + yy3990 := &x.Source + yy3990.CodecEncodeSelf(e) } } - if yyr3886 || yy2arr3886 { + if yyr3969 || yy2arr3969 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3886[7] { - yy3909 := &x.FirstTimestamp - yym3910 := z.EncBinary() - _ = yym3910 + if yyq3969[7] { + yy3992 := &x.FirstTimestamp + yym3993 := z.EncBinary() + _ = yym3993 if false { - } else if z.HasExtensions() && z.EncExt(yy3909) { - } else if yym3910 { - z.EncBinaryMarshal(yy3909) - } else if !yym3910 && z.IsJSONHandle() { - z.EncJSONMarshal(yy3909) + } else if z.HasExtensions() && z.EncExt(yy3992) { + } else if yym3993 { + z.EncBinaryMarshal(yy3992) + } else if !yym3993 && z.IsJSONHandle() { + z.EncJSONMarshal(yy3992) } else { - z.EncFallback(yy3909) + z.EncFallback(yy3992) } } else { r.EncodeNil() } } else { - if yyq3886[7] { + if yyq3969[7] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("firstTimestamp")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy3911 := &x.FirstTimestamp - yym3912 := z.EncBinary() - _ = yym3912 + yy3994 := &x.FirstTimestamp + yym3995 := z.EncBinary() + _ = yym3995 if false { - } else if z.HasExtensions() && z.EncExt(yy3911) { - } else if yym3912 { - z.EncBinaryMarshal(yy3911) - } else if !yym3912 && z.IsJSONHandle() { - z.EncJSONMarshal(yy3911) + } else if z.HasExtensions() && z.EncExt(yy3994) { + } else if yym3995 { + z.EncBinaryMarshal(yy3994) + } else if !yym3995 && z.IsJSONHandle() { + z.EncJSONMarshal(yy3994) } else { - z.EncFallback(yy3911) + z.EncFallback(yy3994) } } } - if yyr3886 || yy2arr3886 { + if yyr3969 || yy2arr3969 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3886[8] { - yy3914 := &x.LastTimestamp - yym3915 := z.EncBinary() - _ = yym3915 + if yyq3969[8] { + yy3997 := &x.LastTimestamp + yym3998 := z.EncBinary() + _ = yym3998 if false { - } else if z.HasExtensions() && z.EncExt(yy3914) { - } else if yym3915 { - z.EncBinaryMarshal(yy3914) - } else if !yym3915 && z.IsJSONHandle() { - z.EncJSONMarshal(yy3914) + } else if z.HasExtensions() && z.EncExt(yy3997) { + } else if yym3998 { + z.EncBinaryMarshal(yy3997) + } else if !yym3998 && z.IsJSONHandle() { + z.EncJSONMarshal(yy3997) } else { - z.EncFallback(yy3914) + z.EncFallback(yy3997) } } else { r.EncodeNil() } } else { - if yyq3886[8] { + if yyq3969[8] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("lastTimestamp")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy3916 := &x.LastTimestamp - yym3917 := z.EncBinary() - _ = yym3917 + yy3999 := &x.LastTimestamp + yym4000 := z.EncBinary() + _ = yym4000 if false { - } else if z.HasExtensions() && z.EncExt(yy3916) { - } else if yym3917 { - z.EncBinaryMarshal(yy3916) - } else if !yym3917 && z.IsJSONHandle() { - z.EncJSONMarshal(yy3916) + } else if z.HasExtensions() && z.EncExt(yy3999) { + } else if yym4000 { + z.EncBinaryMarshal(yy3999) + } else if !yym4000 && z.IsJSONHandle() { + z.EncJSONMarshal(yy3999) } else { - z.EncFallback(yy3916) + z.EncFallback(yy3999) } } } - if yyr3886 || yy2arr3886 { + if yyr3969 || yy2arr3969 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3886[9] { - yym3919 := z.EncBinary() - _ = yym3919 + if yyq3969[9] { + yym4002 := z.EncBinary() + _ = yym4002 if false { } else { r.EncodeInt(int64(x.Count)) @@ -49034,23 +50114,23 @@ func (x *Event) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeInt(0) } } else { - if yyq3886[9] { + if yyq3969[9] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("count")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym3920 := z.EncBinary() - _ = yym3920 + yym4003 := z.EncBinary() + _ = yym4003 if false { } else { r.EncodeInt(int64(x.Count)) } } } - if yyr3886 || yy2arr3886 { + if yyr3969 || yy2arr3969 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3886[10] { - yym3922 := z.EncBinary() - _ = yym3922 + if yyq3969[10] { + yym4005 := z.EncBinary() + _ = yym4005 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Type)) @@ -49059,19 +50139,19 @@ func (x *Event) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq3886[10] { + if yyq3969[10] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("type")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym3923 := z.EncBinary() - _ = yym3923 + yym4006 := z.EncBinary() + _ = yym4006 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Type)) } } } - if yyr3886 || yy2arr3886 { + if yyr3969 || yy2arr3969 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -49084,25 +50164,25 @@ func (x *Event) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym3924 := z.DecBinary() - _ = yym3924 + yym4007 := z.DecBinary() + _ = yym4007 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct3925 := r.ContainerType() - if yyct3925 == codecSelferValueTypeMap1234 { - yyl3925 := r.ReadMapStart() - if yyl3925 == 0 { + yyct4008 := r.ContainerType() + if yyct4008 == codecSelferValueTypeMap1234 { + yyl4008 := r.ReadMapStart() + if yyl4008 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl3925, d) + x.codecDecodeSelfFromMap(yyl4008, d) } - } else if yyct3925 == codecSelferValueTypeArray1234 { - yyl3925 := r.ReadArrayStart() - if yyl3925 == 0 { + } else if yyct4008 == codecSelferValueTypeArray1234 { + yyl4008 := r.ReadArrayStart() + if yyl4008 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl3925, d) + x.codecDecodeSelfFromArray(yyl4008, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -49114,12 +50194,12 @@ func (x *Event) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys3926Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3926Slc - var yyhl3926 bool = l >= 0 - for yyj3926 := 0; ; yyj3926++ { - if yyhl3926 { - if yyj3926 >= l { + var yys4009Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys4009Slc + var yyhl4009 bool = l >= 0 + for yyj4009 := 0; ; yyj4009++ { + if yyhl4009 { + if yyj4009 >= l { break } } else { @@ -49128,10 +50208,10 @@ func (x *Event) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3926Slc = r.DecodeBytes(yys3926Slc, true, true) - yys3926 := string(yys3926Slc) + yys4009Slc = r.DecodeBytes(yys4009Slc, true, true) + yys4009 := string(yys4009Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3926 { + switch yys4009 { case "kind": if r.TryDecodeAsNil() { x.Kind = "" @@ -49148,15 +50228,15 @@ func (x *Event) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.ObjectMeta = ObjectMeta{} } else { - yyv3929 := &x.ObjectMeta - yyv3929.CodecDecodeSelf(d) + yyv4012 := &x.ObjectMeta + yyv4012.CodecDecodeSelf(d) } case "involvedObject": if r.TryDecodeAsNil() { x.InvolvedObject = ObjectReference{} } else { - yyv3930 := &x.InvolvedObject - yyv3930.CodecDecodeSelf(d) + yyv4013 := &x.InvolvedObject + yyv4013.CodecDecodeSelf(d) } case "reason": if r.TryDecodeAsNil() { @@ -49174,41 +50254,41 @@ func (x *Event) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.Source = EventSource{} } else { - yyv3933 := &x.Source - yyv3933.CodecDecodeSelf(d) + yyv4016 := &x.Source + yyv4016.CodecDecodeSelf(d) } case "firstTimestamp": if r.TryDecodeAsNil() { x.FirstTimestamp = pkg2_unversioned.Time{} } else { - yyv3934 := &x.FirstTimestamp - yym3935 := z.DecBinary() - _ = yym3935 + yyv4017 := &x.FirstTimestamp + yym4018 := z.DecBinary() + _ = yym4018 if false { - } else if z.HasExtensions() && z.DecExt(yyv3934) { - } else if yym3935 { - z.DecBinaryUnmarshal(yyv3934) - } else if !yym3935 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv3934) + } else if z.HasExtensions() && z.DecExt(yyv4017) { + } else if yym4018 { + z.DecBinaryUnmarshal(yyv4017) + } else if !yym4018 && z.IsJSONHandle() { + z.DecJSONUnmarshal(yyv4017) } else { - z.DecFallback(yyv3934, false) + z.DecFallback(yyv4017, false) } } case "lastTimestamp": if r.TryDecodeAsNil() { x.LastTimestamp = pkg2_unversioned.Time{} } else { - yyv3936 := &x.LastTimestamp - yym3937 := z.DecBinary() - _ = yym3937 + yyv4019 := &x.LastTimestamp + yym4020 := z.DecBinary() + _ = yym4020 if false { - } else if z.HasExtensions() && z.DecExt(yyv3936) { - } else if yym3937 { - z.DecBinaryUnmarshal(yyv3936) - } else if !yym3937 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv3936) + } else if z.HasExtensions() && z.DecExt(yyv4019) { + } else if yym4020 { + z.DecBinaryUnmarshal(yyv4019) + } else if !yym4020 && z.IsJSONHandle() { + z.DecJSONUnmarshal(yyv4019) } else { - z.DecFallback(yyv3936, false) + z.DecFallback(yyv4019, false) } } case "count": @@ -49224,9 +50304,9 @@ func (x *Event) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { x.Type = string(r.DecodeString()) } default: - z.DecStructFieldNotFound(-1, yys3926) - } // end switch yys3926 - } // end for yyj3926 + z.DecStructFieldNotFound(-1, yys4009) + } // end switch yys4009 + } // end for yyj4009 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -49234,16 +50314,16 @@ func (x *Event) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj3940 int - var yyb3940 bool - var yyhl3940 bool = l >= 0 - yyj3940++ - if yyhl3940 { - yyb3940 = yyj3940 > l + var yyj4023 int + var yyb4023 bool + var yyhl4023 bool = l >= 0 + yyj4023++ + if yyhl4023 { + yyb4023 = yyj4023 > l } else { - yyb3940 = r.CheckBreak() + yyb4023 = r.CheckBreak() } - if yyb3940 { + if yyb4023 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -49253,13 +50333,13 @@ func (x *Event) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.Kind = string(r.DecodeString()) } - yyj3940++ - if yyhl3940 { - yyb3940 = yyj3940 > l + yyj4023++ + if yyhl4023 { + yyb4023 = yyj4023 > l } else { - yyb3940 = r.CheckBreak() + yyb4023 = r.CheckBreak() } - if yyb3940 { + if yyb4023 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -49269,13 +50349,13 @@ func (x *Event) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.APIVersion = string(r.DecodeString()) } - yyj3940++ - if yyhl3940 { - yyb3940 = yyj3940 > l + yyj4023++ + if yyhl4023 { + yyb4023 = yyj4023 > l } else { - yyb3940 = r.CheckBreak() + yyb4023 = r.CheckBreak() } - if yyb3940 { + if yyb4023 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -49283,16 +50363,16 @@ func (x *Event) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.ObjectMeta = ObjectMeta{} } else { - yyv3943 := &x.ObjectMeta - yyv3943.CodecDecodeSelf(d) + yyv4026 := &x.ObjectMeta + yyv4026.CodecDecodeSelf(d) } - yyj3940++ - if yyhl3940 { - yyb3940 = yyj3940 > l + yyj4023++ + if yyhl4023 { + yyb4023 = yyj4023 > l } else { - yyb3940 = r.CheckBreak() + yyb4023 = r.CheckBreak() } - if yyb3940 { + if yyb4023 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -49300,16 +50380,16 @@ func (x *Event) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.InvolvedObject = ObjectReference{} } else { - yyv3944 := &x.InvolvedObject - yyv3944.CodecDecodeSelf(d) + yyv4027 := &x.InvolvedObject + yyv4027.CodecDecodeSelf(d) } - yyj3940++ - if yyhl3940 { - yyb3940 = yyj3940 > l + yyj4023++ + if yyhl4023 { + yyb4023 = yyj4023 > l } else { - yyb3940 = r.CheckBreak() + yyb4023 = r.CheckBreak() } - if yyb3940 { + if yyb4023 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -49319,13 +50399,13 @@ func (x *Event) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.Reason = string(r.DecodeString()) } - yyj3940++ - if yyhl3940 { - yyb3940 = yyj3940 > l + yyj4023++ + if yyhl4023 { + yyb4023 = yyj4023 > l } else { - yyb3940 = r.CheckBreak() + yyb4023 = r.CheckBreak() } - if yyb3940 { + if yyb4023 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -49335,13 +50415,13 @@ func (x *Event) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.Message = string(r.DecodeString()) } - yyj3940++ - if yyhl3940 { - yyb3940 = yyj3940 > l + yyj4023++ + if yyhl4023 { + yyb4023 = yyj4023 > l } else { - yyb3940 = r.CheckBreak() + yyb4023 = r.CheckBreak() } - if yyb3940 { + if yyb4023 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -49349,16 +50429,16 @@ func (x *Event) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.Source = EventSource{} } else { - yyv3947 := &x.Source - yyv3947.CodecDecodeSelf(d) + yyv4030 := &x.Source + yyv4030.CodecDecodeSelf(d) } - yyj3940++ - if yyhl3940 { - yyb3940 = yyj3940 > l + yyj4023++ + if yyhl4023 { + yyb4023 = yyj4023 > l } else { - yyb3940 = r.CheckBreak() + yyb4023 = r.CheckBreak() } - if yyb3940 { + if yyb4023 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -49366,26 +50446,26 @@ func (x *Event) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.FirstTimestamp = pkg2_unversioned.Time{} } else { - yyv3948 := &x.FirstTimestamp - yym3949 := z.DecBinary() - _ = yym3949 + yyv4031 := &x.FirstTimestamp + yym4032 := z.DecBinary() + _ = yym4032 if false { - } else if z.HasExtensions() && z.DecExt(yyv3948) { - } else if yym3949 { - z.DecBinaryUnmarshal(yyv3948) - } else if !yym3949 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv3948) + } else if z.HasExtensions() && z.DecExt(yyv4031) { + } else if yym4032 { + z.DecBinaryUnmarshal(yyv4031) + } else if !yym4032 && z.IsJSONHandle() { + z.DecJSONUnmarshal(yyv4031) } else { - z.DecFallback(yyv3948, false) + z.DecFallback(yyv4031, false) } } - yyj3940++ - if yyhl3940 { - yyb3940 = yyj3940 > l + yyj4023++ + if yyhl4023 { + yyb4023 = yyj4023 > l } else { - yyb3940 = r.CheckBreak() + yyb4023 = r.CheckBreak() } - if yyb3940 { + if yyb4023 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -49393,26 +50473,26 @@ func (x *Event) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.LastTimestamp = pkg2_unversioned.Time{} } else { - yyv3950 := &x.LastTimestamp - yym3951 := z.DecBinary() - _ = yym3951 + yyv4033 := &x.LastTimestamp + yym4034 := z.DecBinary() + _ = yym4034 if false { - } else if z.HasExtensions() && z.DecExt(yyv3950) { - } else if yym3951 { - z.DecBinaryUnmarshal(yyv3950) - } else if !yym3951 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv3950) + } else if z.HasExtensions() && z.DecExt(yyv4033) { + } else if yym4034 { + z.DecBinaryUnmarshal(yyv4033) + } else if !yym4034 && z.IsJSONHandle() { + z.DecJSONUnmarshal(yyv4033) } else { - z.DecFallback(yyv3950, false) + z.DecFallback(yyv4033, false) } } - yyj3940++ - if yyhl3940 { - yyb3940 = yyj3940 > l + yyj4023++ + if yyhl4023 { + yyb4023 = yyj4023 > l } else { - yyb3940 = r.CheckBreak() + yyb4023 = r.CheckBreak() } - if yyb3940 { + if yyb4023 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -49422,13 +50502,13 @@ func (x *Event) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.Count = int32(r.DecodeInt(32)) } - yyj3940++ - if yyhl3940 { - yyb3940 = yyj3940 > l + yyj4023++ + if yyhl4023 { + yyb4023 = yyj4023 > l } else { - yyb3940 = r.CheckBreak() + yyb4023 = r.CheckBreak() } - if yyb3940 { + if yyb4023 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -49439,17 +50519,17 @@ func (x *Event) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { x.Type = string(r.DecodeString()) } for { - yyj3940++ - if yyhl3940 { - yyb3940 = yyj3940 > l + yyj4023++ + if yyhl4023 { + yyb4023 = yyj4023 > l } else { - yyb3940 = r.CheckBreak() + yyb4023 = r.CheckBreak() } - if yyb3940 { + if yyb4023 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj3940-1, "") + z.DecStructFieldNotFound(yyj4023-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -49461,37 +50541,37 @@ func (x *EventList) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym3954 := z.EncBinary() - _ = yym3954 + yym4037 := z.EncBinary() + _ = yym4037 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - 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 { + yysep4038 := !z.EncBinary() + yy2arr4038 := z.EncBasicHandle().StructToArray + var yyq4038 [4]bool + _, _, _ = yysep4038, yyq4038, yy2arr4038 + const yyr4038 bool = false + yyq4038[0] = x.Kind != "" + yyq4038[1] = x.APIVersion != "" + yyq4038[2] = true + var yynn4038 int + if yyr4038 || yy2arr4038 { r.EncodeArrayStart(4) } else { - yynn3955 = 1 - for _, b := range yyq3955 { + yynn4038 = 1 + for _, b := range yyq4038 { if b { - yynn3955++ + yynn4038++ } } - r.EncodeMapStart(yynn3955) - yynn3955 = 0 + r.EncodeMapStart(yynn4038) + yynn4038 = 0 } - if yyr3955 || yy2arr3955 { + if yyr4038 || yy2arr4038 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3955[0] { - yym3957 := z.EncBinary() - _ = yym3957 + if yyq4038[0] { + yym4040 := z.EncBinary() + _ = yym4040 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) @@ -49500,23 +50580,23 @@ func (x *EventList) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq3955[0] { + if yyq4038[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym3958 := z.EncBinary() - _ = yym3958 + yym4041 := z.EncBinary() + _ = yym4041 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } - if yyr3955 || yy2arr3955 { + if yyr4038 || yy2arr4038 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3955[1] { - yym3960 := z.EncBinary() - _ = yym3960 + if yyq4038[1] { + yym4043 := z.EncBinary() + _ = yym4043 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) @@ -49525,54 +50605,54 @@ func (x *EventList) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq3955[1] { + if yyq4038[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym3961 := z.EncBinary() - _ = yym3961 + yym4044 := z.EncBinary() + _ = yym4044 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } - if yyr3955 || yy2arr3955 { + if yyr4038 || yy2arr4038 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3955[2] { - yy3963 := &x.ListMeta - yym3964 := z.EncBinary() - _ = yym3964 + if yyq4038[2] { + yy4046 := &x.ListMeta + yym4047 := z.EncBinary() + _ = yym4047 if false { - } else if z.HasExtensions() && z.EncExt(yy3963) { + } else if z.HasExtensions() && z.EncExt(yy4046) { } else { - z.EncFallback(yy3963) + z.EncFallback(yy4046) } } else { r.EncodeNil() } } else { - if yyq3955[2] { + if yyq4038[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy3965 := &x.ListMeta - yym3966 := z.EncBinary() - _ = yym3966 + yy4048 := &x.ListMeta + yym4049 := z.EncBinary() + _ = yym4049 if false { - } else if z.HasExtensions() && z.EncExt(yy3965) { + } else if z.HasExtensions() && z.EncExt(yy4048) { } else { - z.EncFallback(yy3965) + z.EncFallback(yy4048) } } } - if yyr3955 || yy2arr3955 { + if yyr4038 || yy2arr4038 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.Items == nil { r.EncodeNil() } else { - yym3968 := z.EncBinary() - _ = yym3968 + yym4051 := z.EncBinary() + _ = yym4051 if false { } else { h.encSliceEvent(([]Event)(x.Items), e) @@ -49585,15 +50665,15 @@ func (x *EventList) CodecEncodeSelf(e *codec1978.Encoder) { if x.Items == nil { r.EncodeNil() } else { - yym3969 := z.EncBinary() - _ = yym3969 + yym4052 := z.EncBinary() + _ = yym4052 if false { } else { h.encSliceEvent(([]Event)(x.Items), e) } } } - if yyr3955 || yy2arr3955 { + if yyr4038 || yy2arr4038 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -49606,25 +50686,25 @@ func (x *EventList) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym3970 := z.DecBinary() - _ = yym3970 + yym4053 := z.DecBinary() + _ = yym4053 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct3971 := r.ContainerType() - if yyct3971 == codecSelferValueTypeMap1234 { - yyl3971 := r.ReadMapStart() - if yyl3971 == 0 { + yyct4054 := r.ContainerType() + if yyct4054 == codecSelferValueTypeMap1234 { + yyl4054 := r.ReadMapStart() + if yyl4054 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl3971, d) + x.codecDecodeSelfFromMap(yyl4054, d) } - } else if yyct3971 == codecSelferValueTypeArray1234 { - yyl3971 := r.ReadArrayStart() - if yyl3971 == 0 { + } else if yyct4054 == codecSelferValueTypeArray1234 { + yyl4054 := r.ReadArrayStart() + if yyl4054 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl3971, d) + x.codecDecodeSelfFromArray(yyl4054, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -49636,12 +50716,12 @@ func (x *EventList) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys3972Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3972Slc - var yyhl3972 bool = l >= 0 - for yyj3972 := 0; ; yyj3972++ { - if yyhl3972 { - if yyj3972 >= l { + var yys4055Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys4055Slc + var yyhl4055 bool = l >= 0 + for yyj4055 := 0; ; yyj4055++ { + if yyhl4055 { + if yyj4055 >= l { break } } else { @@ -49650,10 +50730,10 @@ func (x *EventList) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3972Slc = r.DecodeBytes(yys3972Slc, true, true) - yys3972 := string(yys3972Slc) + yys4055Slc = r.DecodeBytes(yys4055Slc, true, true) + yys4055 := string(yys4055Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3972 { + switch yys4055 { case "kind": if r.TryDecodeAsNil() { x.Kind = "" @@ -49670,31 +50750,31 @@ func (x *EventList) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.ListMeta = pkg2_unversioned.ListMeta{} } else { - yyv3975 := &x.ListMeta - yym3976 := z.DecBinary() - _ = yym3976 + yyv4058 := &x.ListMeta + yym4059 := z.DecBinary() + _ = yym4059 if false { - } else if z.HasExtensions() && z.DecExt(yyv3975) { + } else if z.HasExtensions() && z.DecExt(yyv4058) { } else { - z.DecFallback(yyv3975, false) + z.DecFallback(yyv4058, false) } } case "items": if r.TryDecodeAsNil() { x.Items = nil } else { - yyv3977 := &x.Items - yym3978 := z.DecBinary() - _ = yym3978 + yyv4060 := &x.Items + yym4061 := z.DecBinary() + _ = yym4061 if false { } else { - h.decSliceEvent((*[]Event)(yyv3977), d) + h.decSliceEvent((*[]Event)(yyv4060), d) } } default: - z.DecStructFieldNotFound(-1, yys3972) - } // end switch yys3972 - } // end for yyj3972 + z.DecStructFieldNotFound(-1, yys4055) + } // end switch yys4055 + } // end for yyj4055 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -49702,16 +50782,16 @@ func (x *EventList) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj3979 int - var yyb3979 bool - var yyhl3979 bool = l >= 0 - yyj3979++ - if yyhl3979 { - yyb3979 = yyj3979 > l + var yyj4062 int + var yyb4062 bool + var yyhl4062 bool = l >= 0 + yyj4062++ + if yyhl4062 { + yyb4062 = yyj4062 > l } else { - yyb3979 = r.CheckBreak() + yyb4062 = r.CheckBreak() } - if yyb3979 { + if yyb4062 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -49721,13 +50801,13 @@ func (x *EventList) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.Kind = string(r.DecodeString()) } - yyj3979++ - if yyhl3979 { - yyb3979 = yyj3979 > l + yyj4062++ + if yyhl4062 { + yyb4062 = yyj4062 > l } else { - yyb3979 = r.CheckBreak() + yyb4062 = r.CheckBreak() } - if yyb3979 { + if yyb4062 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -49737,13 +50817,13 @@ func (x *EventList) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.APIVersion = string(r.DecodeString()) } - yyj3979++ - if yyhl3979 { - yyb3979 = yyj3979 > l + yyj4062++ + if yyhl4062 { + yyb4062 = yyj4062 > l } else { - yyb3979 = r.CheckBreak() + yyb4062 = r.CheckBreak() } - if yyb3979 { + if yyb4062 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -49751,22 +50831,22 @@ func (x *EventList) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.ListMeta = pkg2_unversioned.ListMeta{} } else { - yyv3982 := &x.ListMeta - yym3983 := z.DecBinary() - _ = yym3983 + yyv4065 := &x.ListMeta + yym4066 := z.DecBinary() + _ = yym4066 if false { - } else if z.HasExtensions() && z.DecExt(yyv3982) { + } else if z.HasExtensions() && z.DecExt(yyv4065) { } else { - z.DecFallback(yyv3982, false) + z.DecFallback(yyv4065, false) } } - yyj3979++ - if yyhl3979 { - yyb3979 = yyj3979 > l + yyj4062++ + if yyhl4062 { + yyb4062 = yyj4062 > l } else { - yyb3979 = r.CheckBreak() + yyb4062 = r.CheckBreak() } - if yyb3979 { + if yyb4062 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -49774,26 +50854,26 @@ func (x *EventList) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.Items = nil } else { - yyv3984 := &x.Items - yym3985 := z.DecBinary() - _ = yym3985 + yyv4067 := &x.Items + yym4068 := z.DecBinary() + _ = yym4068 if false { } else { - h.decSliceEvent((*[]Event)(yyv3984), d) + h.decSliceEvent((*[]Event)(yyv4067), d) } } for { - yyj3979++ - if yyhl3979 { - yyb3979 = yyj3979 > l + yyj4062++ + if yyhl4062 { + yyb4062 = yyj4062 > l } else { - yyb3979 = r.CheckBreak() + yyb4062 = r.CheckBreak() } - if yyb3979 { + if yyb4062 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj3979-1, "") + z.DecStructFieldNotFound(yyj4062-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -49805,37 +50885,37 @@ func (x *List) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym3986 := z.EncBinary() - _ = yym3986 + yym4069 := z.EncBinary() + _ = yym4069 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep3987 := !z.EncBinary() - yy2arr3987 := z.EncBasicHandle().StructToArray - var yyq3987 [4]bool - _, _, _ = yysep3987, yyq3987, yy2arr3987 - const yyr3987 bool = false - yyq3987[0] = x.Kind != "" - yyq3987[1] = x.APIVersion != "" - yyq3987[2] = true - var yynn3987 int - if yyr3987 || yy2arr3987 { + yysep4070 := !z.EncBinary() + yy2arr4070 := z.EncBasicHandle().StructToArray + var yyq4070 [4]bool + _, _, _ = yysep4070, yyq4070, yy2arr4070 + const yyr4070 bool = false + yyq4070[0] = x.Kind != "" + yyq4070[1] = x.APIVersion != "" + yyq4070[2] = true + var yynn4070 int + if yyr4070 || yy2arr4070 { r.EncodeArrayStart(4) } else { - yynn3987 = 1 - for _, b := range yyq3987 { + yynn4070 = 1 + for _, b := range yyq4070 { if b { - yynn3987++ + yynn4070++ } } - r.EncodeMapStart(yynn3987) - yynn3987 = 0 + r.EncodeMapStart(yynn4070) + yynn4070 = 0 } - if yyr3987 || yy2arr3987 { + if yyr4070 || yy2arr4070 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3987[0] { - yym3989 := z.EncBinary() - _ = yym3989 + if yyq4070[0] { + yym4072 := z.EncBinary() + _ = yym4072 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) @@ -49844,23 +50924,23 @@ func (x *List) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq3987[0] { + if yyq4070[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym3990 := z.EncBinary() - _ = yym3990 + yym4073 := z.EncBinary() + _ = yym4073 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } - if yyr3987 || yy2arr3987 { + if yyr4070 || yy2arr4070 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3987[1] { - yym3992 := z.EncBinary() - _ = yym3992 + if yyq4070[1] { + yym4075 := z.EncBinary() + _ = yym4075 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) @@ -49869,54 +50949,54 @@ func (x *List) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq3987[1] { + if yyq4070[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym3993 := z.EncBinary() - _ = yym3993 + yym4076 := z.EncBinary() + _ = yym4076 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } - if yyr3987 || yy2arr3987 { + if yyr4070 || yy2arr4070 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3987[2] { - yy3995 := &x.ListMeta - yym3996 := z.EncBinary() - _ = yym3996 + if yyq4070[2] { + yy4078 := &x.ListMeta + yym4079 := z.EncBinary() + _ = yym4079 if false { - } else if z.HasExtensions() && z.EncExt(yy3995) { + } else if z.HasExtensions() && z.EncExt(yy4078) { } else { - z.EncFallback(yy3995) + z.EncFallback(yy4078) } } else { r.EncodeNil() } } else { - if yyq3987[2] { + if yyq4070[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy3997 := &x.ListMeta - yym3998 := z.EncBinary() - _ = yym3998 + yy4080 := &x.ListMeta + yym4081 := z.EncBinary() + _ = yym4081 if false { - } else if z.HasExtensions() && z.EncExt(yy3997) { + } else if z.HasExtensions() && z.EncExt(yy4080) { } else { - z.EncFallback(yy3997) + z.EncFallback(yy4080) } } } - if yyr3987 || yy2arr3987 { + if yyr4070 || yy2arr4070 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.Items == nil { r.EncodeNil() } else { - yym4000 := z.EncBinary() - _ = yym4000 + yym4083 := z.EncBinary() + _ = yym4083 if false { } else { h.encSliceruntime_Object(([]pkg7_runtime.Object)(x.Items), e) @@ -49929,15 +51009,15 @@ func (x *List) CodecEncodeSelf(e *codec1978.Encoder) { if x.Items == nil { r.EncodeNil() } else { - yym4001 := z.EncBinary() - _ = yym4001 + yym4084 := z.EncBinary() + _ = yym4084 if false { } else { h.encSliceruntime_Object(([]pkg7_runtime.Object)(x.Items), e) } } } - if yyr3987 || yy2arr3987 { + if yyr4070 || yy2arr4070 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -49950,25 +51030,25 @@ func (x *List) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym4002 := z.DecBinary() - _ = yym4002 + yym4085 := z.DecBinary() + _ = yym4085 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct4003 := r.ContainerType() - if yyct4003 == codecSelferValueTypeMap1234 { - yyl4003 := r.ReadMapStart() - if yyl4003 == 0 { + yyct4086 := r.ContainerType() + if yyct4086 == codecSelferValueTypeMap1234 { + yyl4086 := r.ReadMapStart() + if yyl4086 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl4003, d) + x.codecDecodeSelfFromMap(yyl4086, d) } - } else if yyct4003 == codecSelferValueTypeArray1234 { - yyl4003 := r.ReadArrayStart() - if yyl4003 == 0 { + } else if yyct4086 == codecSelferValueTypeArray1234 { + yyl4086 := r.ReadArrayStart() + if yyl4086 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl4003, d) + x.codecDecodeSelfFromArray(yyl4086, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -49980,12 +51060,12 @@ func (x *List) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys4004Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys4004Slc - var yyhl4004 bool = l >= 0 - for yyj4004 := 0; ; yyj4004++ { - if yyhl4004 { - if yyj4004 >= l { + var yys4087Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys4087Slc + var yyhl4087 bool = l >= 0 + for yyj4087 := 0; ; yyj4087++ { + if yyhl4087 { + if yyj4087 >= l { break } } else { @@ -49994,10 +51074,10 @@ func (x *List) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys4004Slc = r.DecodeBytes(yys4004Slc, true, true) - yys4004 := string(yys4004Slc) + yys4087Slc = r.DecodeBytes(yys4087Slc, true, true) + yys4087 := string(yys4087Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys4004 { + switch yys4087 { case "kind": if r.TryDecodeAsNil() { x.Kind = "" @@ -50014,31 +51094,31 @@ func (x *List) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.ListMeta = pkg2_unversioned.ListMeta{} } else { - yyv4007 := &x.ListMeta - yym4008 := z.DecBinary() - _ = yym4008 + yyv4090 := &x.ListMeta + yym4091 := z.DecBinary() + _ = yym4091 if false { - } else if z.HasExtensions() && z.DecExt(yyv4007) { + } else if z.HasExtensions() && z.DecExt(yyv4090) { } else { - z.DecFallback(yyv4007, false) + z.DecFallback(yyv4090, false) } } case "items": if r.TryDecodeAsNil() { x.Items = nil } else { - yyv4009 := &x.Items - yym4010 := z.DecBinary() - _ = yym4010 + yyv4092 := &x.Items + yym4093 := z.DecBinary() + _ = yym4093 if false { } else { - h.decSliceruntime_Object((*[]pkg7_runtime.Object)(yyv4009), d) + h.decSliceruntime_Object((*[]pkg7_runtime.Object)(yyv4092), d) } } default: - z.DecStructFieldNotFound(-1, yys4004) - } // end switch yys4004 - } // end for yyj4004 + z.DecStructFieldNotFound(-1, yys4087) + } // end switch yys4087 + } // end for yyj4087 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -50046,16 +51126,16 @@ func (x *List) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj4011 int - var yyb4011 bool - var yyhl4011 bool = l >= 0 - yyj4011++ - if yyhl4011 { - yyb4011 = yyj4011 > l + var yyj4094 int + var yyb4094 bool + var yyhl4094 bool = l >= 0 + yyj4094++ + if yyhl4094 { + yyb4094 = yyj4094 > l } else { - yyb4011 = r.CheckBreak() + yyb4094 = r.CheckBreak() } - if yyb4011 { + if yyb4094 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -50065,13 +51145,13 @@ func (x *List) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.Kind = string(r.DecodeString()) } - yyj4011++ - if yyhl4011 { - yyb4011 = yyj4011 > l + yyj4094++ + if yyhl4094 { + yyb4094 = yyj4094 > l } else { - yyb4011 = r.CheckBreak() + yyb4094 = r.CheckBreak() } - if yyb4011 { + if yyb4094 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -50081,13 +51161,13 @@ func (x *List) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.APIVersion = string(r.DecodeString()) } - yyj4011++ - if yyhl4011 { - yyb4011 = yyj4011 > l + yyj4094++ + if yyhl4094 { + yyb4094 = yyj4094 > l } else { - yyb4011 = r.CheckBreak() + yyb4094 = r.CheckBreak() } - if yyb4011 { + if yyb4094 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -50095,22 +51175,22 @@ func (x *List) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.ListMeta = pkg2_unversioned.ListMeta{} } else { - yyv4014 := &x.ListMeta - yym4015 := z.DecBinary() - _ = yym4015 + yyv4097 := &x.ListMeta + yym4098 := z.DecBinary() + _ = yym4098 if false { - } else if z.HasExtensions() && z.DecExt(yyv4014) { + } else if z.HasExtensions() && z.DecExt(yyv4097) { } else { - z.DecFallback(yyv4014, false) + z.DecFallback(yyv4097, false) } } - yyj4011++ - if yyhl4011 { - yyb4011 = yyj4011 > l + yyj4094++ + if yyhl4094 { + yyb4094 = yyj4094 > l } else { - yyb4011 = r.CheckBreak() + yyb4094 = r.CheckBreak() } - if yyb4011 { + if yyb4094 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -50118,26 +51198,26 @@ func (x *List) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.Items = nil } else { - yyv4016 := &x.Items - yym4017 := z.DecBinary() - _ = yym4017 + yyv4099 := &x.Items + yym4100 := z.DecBinary() + _ = yym4100 if false { } else { - h.decSliceruntime_Object((*[]pkg7_runtime.Object)(yyv4016), d) + h.decSliceruntime_Object((*[]pkg7_runtime.Object)(yyv4099), d) } } for { - yyj4011++ - if yyhl4011 { - yyb4011 = yyj4011 > l + yyj4094++ + if yyhl4094 { + yyb4094 = yyj4094 > l } else { - yyb4011 = r.CheckBreak() + yyb4094 = r.CheckBreak() } - if yyb4011 { + if yyb4094 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj4011-1, "") + z.DecStructFieldNotFound(yyj4094-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -50146,8 +51226,8 @@ func (x LimitType) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r - yym4018 := z.EncBinary() - _ = yym4018 + yym4101 := z.EncBinary() + _ = yym4101 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { @@ -50159,8 +51239,8 @@ func (x *LimitType) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym4019 := z.DecBinary() - _ = yym4019 + yym4102 := z.DecBinary() + _ = yym4102 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { @@ -50175,53 +51255,53 @@ func (x *LimitRangeItem) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym4020 := z.EncBinary() - _ = yym4020 + yym4103 := z.EncBinary() + _ = yym4103 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep4021 := !z.EncBinary() - yy2arr4021 := z.EncBasicHandle().StructToArray - var yyq4021 [6]bool - _, _, _ = yysep4021, yyq4021, yy2arr4021 - const yyr4021 bool = false - yyq4021[0] = x.Type != "" - yyq4021[1] = len(x.Max) != 0 - yyq4021[2] = len(x.Min) != 0 - yyq4021[3] = len(x.Default) != 0 - yyq4021[4] = len(x.DefaultRequest) != 0 - yyq4021[5] = len(x.MaxLimitRequestRatio) != 0 - var yynn4021 int - if yyr4021 || yy2arr4021 { + yysep4104 := !z.EncBinary() + yy2arr4104 := z.EncBasicHandle().StructToArray + var yyq4104 [6]bool + _, _, _ = yysep4104, yyq4104, yy2arr4104 + const yyr4104 bool = false + yyq4104[0] = x.Type != "" + yyq4104[1] = len(x.Max) != 0 + yyq4104[2] = len(x.Min) != 0 + yyq4104[3] = len(x.Default) != 0 + yyq4104[4] = len(x.DefaultRequest) != 0 + yyq4104[5] = len(x.MaxLimitRequestRatio) != 0 + var yynn4104 int + if yyr4104 || yy2arr4104 { r.EncodeArrayStart(6) } else { - yynn4021 = 0 - for _, b := range yyq4021 { + yynn4104 = 0 + for _, b := range yyq4104 { if b { - yynn4021++ + yynn4104++ } } - r.EncodeMapStart(yynn4021) - yynn4021 = 0 + r.EncodeMapStart(yynn4104) + yynn4104 = 0 } - if yyr4021 || yy2arr4021 { + if yyr4104 || yy2arr4104 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq4021[0] { + if yyq4104[0] { x.Type.CodecEncodeSelf(e) } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq4021[0] { + if yyq4104[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("type")) z.EncSendContainerState(codecSelfer_containerMapValue1234) x.Type.CodecEncodeSelf(e) } } - if yyr4021 || yy2arr4021 { + if yyr4104 || yy2arr4104 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq4021[1] { + if yyq4104[1] { if x.Max == nil { r.EncodeNil() } else { @@ -50231,7 +51311,7 @@ func (x *LimitRangeItem) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq4021[1] { + if yyq4104[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("max")) z.EncSendContainerState(codecSelfer_containerMapValue1234) @@ -50242,9 +51322,9 @@ func (x *LimitRangeItem) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr4021 || yy2arr4021 { + if yyr4104 || yy2arr4104 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq4021[2] { + if yyq4104[2] { if x.Min == nil { r.EncodeNil() } else { @@ -50254,7 +51334,7 @@ func (x *LimitRangeItem) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq4021[2] { + if yyq4104[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("min")) z.EncSendContainerState(codecSelfer_containerMapValue1234) @@ -50265,9 +51345,9 @@ func (x *LimitRangeItem) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr4021 || yy2arr4021 { + if yyr4104 || yy2arr4104 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq4021[3] { + if yyq4104[3] { if x.Default == nil { r.EncodeNil() } else { @@ -50277,7 +51357,7 @@ func (x *LimitRangeItem) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq4021[3] { + if yyq4104[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("default")) z.EncSendContainerState(codecSelfer_containerMapValue1234) @@ -50288,9 +51368,9 @@ func (x *LimitRangeItem) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr4021 || yy2arr4021 { + if yyr4104 || yy2arr4104 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq4021[4] { + if yyq4104[4] { if x.DefaultRequest == nil { r.EncodeNil() } else { @@ -50300,7 +51380,7 @@ func (x *LimitRangeItem) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq4021[4] { + if yyq4104[4] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("defaultRequest")) z.EncSendContainerState(codecSelfer_containerMapValue1234) @@ -50311,9 +51391,9 @@ func (x *LimitRangeItem) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr4021 || yy2arr4021 { + if yyr4104 || yy2arr4104 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq4021[5] { + if yyq4104[5] { if x.MaxLimitRequestRatio == nil { r.EncodeNil() } else { @@ -50323,7 +51403,7 @@ func (x *LimitRangeItem) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq4021[5] { + if yyq4104[5] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("maxLimitRequestRatio")) z.EncSendContainerState(codecSelfer_containerMapValue1234) @@ -50334,7 +51414,7 @@ func (x *LimitRangeItem) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr4021 || yy2arr4021 { + if yyr4104 || yy2arr4104 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -50347,25 +51427,25 @@ func (x *LimitRangeItem) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym4028 := z.DecBinary() - _ = yym4028 + yym4111 := z.DecBinary() + _ = yym4111 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct4029 := r.ContainerType() - if yyct4029 == codecSelferValueTypeMap1234 { - yyl4029 := r.ReadMapStart() - if yyl4029 == 0 { + yyct4112 := r.ContainerType() + if yyct4112 == codecSelferValueTypeMap1234 { + yyl4112 := r.ReadMapStart() + if yyl4112 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl4029, d) + x.codecDecodeSelfFromMap(yyl4112, d) } - } else if yyct4029 == codecSelferValueTypeArray1234 { - yyl4029 := r.ReadArrayStart() - if yyl4029 == 0 { + } else if yyct4112 == codecSelferValueTypeArray1234 { + yyl4112 := r.ReadArrayStart() + if yyl4112 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl4029, d) + x.codecDecodeSelfFromArray(yyl4112, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -50377,12 +51457,12 @@ func (x *LimitRangeItem) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys4030Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys4030Slc - var yyhl4030 bool = l >= 0 - for yyj4030 := 0; ; yyj4030++ { - if yyhl4030 { - if yyj4030 >= l { + var yys4113Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys4113Slc + var yyhl4113 bool = l >= 0 + for yyj4113 := 0; ; yyj4113++ { + if yyhl4113 { + if yyj4113 >= l { break } } else { @@ -50391,10 +51471,10 @@ func (x *LimitRangeItem) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys4030Slc = r.DecodeBytes(yys4030Slc, true, true) - yys4030 := string(yys4030Slc) + yys4113Slc = r.DecodeBytes(yys4113Slc, true, true) + yys4113 := string(yys4113Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys4030 { + switch yys4113 { case "type": if r.TryDecodeAsNil() { x.Type = "" @@ -50405,41 +51485,41 @@ func (x *LimitRangeItem) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.Max = nil } else { - yyv4032 := &x.Max - yyv4032.CodecDecodeSelf(d) + yyv4115 := &x.Max + yyv4115.CodecDecodeSelf(d) } case "min": if r.TryDecodeAsNil() { x.Min = nil } else { - yyv4033 := &x.Min - yyv4033.CodecDecodeSelf(d) + yyv4116 := &x.Min + yyv4116.CodecDecodeSelf(d) } case "default": if r.TryDecodeAsNil() { x.Default = nil } else { - yyv4034 := &x.Default - yyv4034.CodecDecodeSelf(d) + yyv4117 := &x.Default + yyv4117.CodecDecodeSelf(d) } case "defaultRequest": if r.TryDecodeAsNil() { x.DefaultRequest = nil } else { - yyv4035 := &x.DefaultRequest - yyv4035.CodecDecodeSelf(d) + yyv4118 := &x.DefaultRequest + yyv4118.CodecDecodeSelf(d) } case "maxLimitRequestRatio": if r.TryDecodeAsNil() { x.MaxLimitRequestRatio = nil } else { - yyv4036 := &x.MaxLimitRequestRatio - yyv4036.CodecDecodeSelf(d) + yyv4119 := &x.MaxLimitRequestRatio + yyv4119.CodecDecodeSelf(d) } default: - z.DecStructFieldNotFound(-1, yys4030) - } // end switch yys4030 - } // end for yyj4030 + z.DecStructFieldNotFound(-1, yys4113) + } // end switch yys4113 + } // end for yyj4113 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -50447,16 +51527,16 @@ func (x *LimitRangeItem) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj4037 int - var yyb4037 bool - var yyhl4037 bool = l >= 0 - yyj4037++ - if yyhl4037 { - yyb4037 = yyj4037 > l + var yyj4120 int + var yyb4120 bool + var yyhl4120 bool = l >= 0 + yyj4120++ + if yyhl4120 { + yyb4120 = yyj4120 > l } else { - yyb4037 = r.CheckBreak() + yyb4120 = r.CheckBreak() } - if yyb4037 { + if yyb4120 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -50466,13 +51546,13 @@ func (x *LimitRangeItem) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.Type = LimitType(r.DecodeString()) } - yyj4037++ - if yyhl4037 { - yyb4037 = yyj4037 > l + yyj4120++ + if yyhl4120 { + yyb4120 = yyj4120 > l } else { - yyb4037 = r.CheckBreak() + yyb4120 = r.CheckBreak() } - if yyb4037 { + if yyb4120 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -50480,16 +51560,16 @@ func (x *LimitRangeItem) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.Max = nil } else { - yyv4039 := &x.Max - yyv4039.CodecDecodeSelf(d) + yyv4122 := &x.Max + yyv4122.CodecDecodeSelf(d) } - yyj4037++ - if yyhl4037 { - yyb4037 = yyj4037 > l + yyj4120++ + if yyhl4120 { + yyb4120 = yyj4120 > l } else { - yyb4037 = r.CheckBreak() + yyb4120 = r.CheckBreak() } - if yyb4037 { + if yyb4120 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -50497,16 +51577,16 @@ func (x *LimitRangeItem) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.Min = nil } else { - yyv4040 := &x.Min - yyv4040.CodecDecodeSelf(d) + yyv4123 := &x.Min + yyv4123.CodecDecodeSelf(d) } - yyj4037++ - if yyhl4037 { - yyb4037 = yyj4037 > l + yyj4120++ + if yyhl4120 { + yyb4120 = yyj4120 > l } else { - yyb4037 = r.CheckBreak() + yyb4120 = r.CheckBreak() } - if yyb4037 { + if yyb4120 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -50514,16 +51594,16 @@ func (x *LimitRangeItem) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.Default = nil } else { - yyv4041 := &x.Default - yyv4041.CodecDecodeSelf(d) + yyv4124 := &x.Default + yyv4124.CodecDecodeSelf(d) } - yyj4037++ - if yyhl4037 { - yyb4037 = yyj4037 > l + yyj4120++ + if yyhl4120 { + yyb4120 = yyj4120 > l } else { - yyb4037 = r.CheckBreak() + yyb4120 = r.CheckBreak() } - if yyb4037 { + if yyb4120 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -50531,16 +51611,16 @@ func (x *LimitRangeItem) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.DefaultRequest = nil } else { - yyv4042 := &x.DefaultRequest - yyv4042.CodecDecodeSelf(d) + yyv4125 := &x.DefaultRequest + yyv4125.CodecDecodeSelf(d) } - yyj4037++ - if yyhl4037 { - yyb4037 = yyj4037 > l + yyj4120++ + if yyhl4120 { + yyb4120 = yyj4120 > l } else { - yyb4037 = r.CheckBreak() + yyb4120 = r.CheckBreak() } - if yyb4037 { + if yyb4120 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -50548,21 +51628,21 @@ func (x *LimitRangeItem) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.MaxLimitRequestRatio = nil } else { - yyv4043 := &x.MaxLimitRequestRatio - yyv4043.CodecDecodeSelf(d) + yyv4126 := &x.MaxLimitRequestRatio + yyv4126.CodecDecodeSelf(d) } for { - yyj4037++ - if yyhl4037 { - yyb4037 = yyj4037 > l + yyj4120++ + if yyhl4120 { + yyb4120 = yyj4120 > l } else { - yyb4037 = r.CheckBreak() + yyb4120 = r.CheckBreak() } - if yyb4037 { + if yyb4120 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj4037-1, "") + z.DecStructFieldNotFound(yyj4120-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -50574,36 +51654,36 @@ func (x *LimitRangeSpec) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym4044 := z.EncBinary() - _ = yym4044 + yym4127 := z.EncBinary() + _ = yym4127 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep4045 := !z.EncBinary() - yy2arr4045 := z.EncBasicHandle().StructToArray - var yyq4045 [1]bool - _, _, _ = yysep4045, yyq4045, yy2arr4045 - const yyr4045 bool = false - var yynn4045 int - if yyr4045 || yy2arr4045 { + yysep4128 := !z.EncBinary() + yy2arr4128 := z.EncBasicHandle().StructToArray + var yyq4128 [1]bool + _, _, _ = yysep4128, yyq4128, yy2arr4128 + const yyr4128 bool = false + var yynn4128 int + if yyr4128 || yy2arr4128 { r.EncodeArrayStart(1) } else { - yynn4045 = 1 - for _, b := range yyq4045 { + yynn4128 = 1 + for _, b := range yyq4128 { if b { - yynn4045++ + yynn4128++ } } - r.EncodeMapStart(yynn4045) - yynn4045 = 0 + r.EncodeMapStart(yynn4128) + yynn4128 = 0 } - if yyr4045 || yy2arr4045 { + if yyr4128 || yy2arr4128 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.Limits == nil { r.EncodeNil() } else { - yym4047 := z.EncBinary() - _ = yym4047 + yym4130 := z.EncBinary() + _ = yym4130 if false { } else { h.encSliceLimitRangeItem(([]LimitRangeItem)(x.Limits), e) @@ -50616,15 +51696,15 @@ func (x *LimitRangeSpec) CodecEncodeSelf(e *codec1978.Encoder) { if x.Limits == nil { r.EncodeNil() } else { - yym4048 := z.EncBinary() - _ = yym4048 + yym4131 := z.EncBinary() + _ = yym4131 if false { } else { h.encSliceLimitRangeItem(([]LimitRangeItem)(x.Limits), e) } } } - if yyr4045 || yy2arr4045 { + if yyr4128 || yy2arr4128 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -50637,25 +51717,25 @@ func (x *LimitRangeSpec) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym4049 := z.DecBinary() - _ = yym4049 + yym4132 := z.DecBinary() + _ = yym4132 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct4050 := r.ContainerType() - if yyct4050 == codecSelferValueTypeMap1234 { - yyl4050 := r.ReadMapStart() - if yyl4050 == 0 { + yyct4133 := r.ContainerType() + if yyct4133 == codecSelferValueTypeMap1234 { + yyl4133 := r.ReadMapStart() + if yyl4133 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl4050, d) + x.codecDecodeSelfFromMap(yyl4133, d) } - } else if yyct4050 == codecSelferValueTypeArray1234 { - yyl4050 := r.ReadArrayStart() - if yyl4050 == 0 { + } else if yyct4133 == codecSelferValueTypeArray1234 { + yyl4133 := r.ReadArrayStart() + if yyl4133 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl4050, d) + x.codecDecodeSelfFromArray(yyl4133, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -50667,12 +51747,12 @@ func (x *LimitRangeSpec) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys4051Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys4051Slc - var yyhl4051 bool = l >= 0 - for yyj4051 := 0; ; yyj4051++ { - if yyhl4051 { - if yyj4051 >= l { + var yys4134Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys4134Slc + var yyhl4134 bool = l >= 0 + for yyj4134 := 0; ; yyj4134++ { + if yyhl4134 { + if yyj4134 >= l { break } } else { @@ -50681,26 +51761,26 @@ func (x *LimitRangeSpec) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys4051Slc = r.DecodeBytes(yys4051Slc, true, true) - yys4051 := string(yys4051Slc) + yys4134Slc = r.DecodeBytes(yys4134Slc, true, true) + yys4134 := string(yys4134Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys4051 { + switch yys4134 { case "limits": if r.TryDecodeAsNil() { x.Limits = nil } else { - yyv4052 := &x.Limits - yym4053 := z.DecBinary() - _ = yym4053 + yyv4135 := &x.Limits + yym4136 := z.DecBinary() + _ = yym4136 if false { } else { - h.decSliceLimitRangeItem((*[]LimitRangeItem)(yyv4052), d) + h.decSliceLimitRangeItem((*[]LimitRangeItem)(yyv4135), d) } } default: - z.DecStructFieldNotFound(-1, yys4051) - } // end switch yys4051 - } // end for yyj4051 + z.DecStructFieldNotFound(-1, yys4134) + } // end switch yys4134 + } // end for yyj4134 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -50708,16 +51788,16 @@ func (x *LimitRangeSpec) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj4054 int - var yyb4054 bool - var yyhl4054 bool = l >= 0 - yyj4054++ - if yyhl4054 { - yyb4054 = yyj4054 > l + var yyj4137 int + var yyb4137 bool + var yyhl4137 bool = l >= 0 + yyj4137++ + if yyhl4137 { + yyb4137 = yyj4137 > l } else { - yyb4054 = r.CheckBreak() + yyb4137 = r.CheckBreak() } - if yyb4054 { + if yyb4137 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -50725,26 +51805,26 @@ func (x *LimitRangeSpec) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.Limits = nil } else { - yyv4055 := &x.Limits - yym4056 := z.DecBinary() - _ = yym4056 + yyv4138 := &x.Limits + yym4139 := z.DecBinary() + _ = yym4139 if false { } else { - h.decSliceLimitRangeItem((*[]LimitRangeItem)(yyv4055), d) + h.decSliceLimitRangeItem((*[]LimitRangeItem)(yyv4138), d) } } for { - yyj4054++ - if yyhl4054 { - yyb4054 = yyj4054 > l + yyj4137++ + if yyhl4137 { + yyb4137 = yyj4137 > l } else { - yyb4054 = r.CheckBreak() + yyb4137 = r.CheckBreak() } - if yyb4054 { + if yyb4137 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj4054-1, "") + z.DecStructFieldNotFound(yyj4137-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -50756,38 +51836,38 @@ func (x *LimitRange) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym4057 := z.EncBinary() - _ = yym4057 + yym4140 := z.EncBinary() + _ = yym4140 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep4058 := !z.EncBinary() - yy2arr4058 := z.EncBasicHandle().StructToArray - var yyq4058 [4]bool - _, _, _ = yysep4058, yyq4058, yy2arr4058 - const yyr4058 bool = false - yyq4058[0] = x.Kind != "" - yyq4058[1] = x.APIVersion != "" - yyq4058[2] = true - yyq4058[3] = true - var yynn4058 int - if yyr4058 || yy2arr4058 { + yysep4141 := !z.EncBinary() + yy2arr4141 := z.EncBasicHandle().StructToArray + var yyq4141 [4]bool + _, _, _ = yysep4141, yyq4141, yy2arr4141 + const yyr4141 bool = false + yyq4141[0] = x.Kind != "" + yyq4141[1] = x.APIVersion != "" + yyq4141[2] = true + yyq4141[3] = true + var yynn4141 int + if yyr4141 || yy2arr4141 { r.EncodeArrayStart(4) } else { - yynn4058 = 0 - for _, b := range yyq4058 { + yynn4141 = 0 + for _, b := range yyq4141 { if b { - yynn4058++ + yynn4141++ } } - r.EncodeMapStart(yynn4058) - yynn4058 = 0 + r.EncodeMapStart(yynn4141) + yynn4141 = 0 } - if yyr4058 || yy2arr4058 { + if yyr4141 || yy2arr4141 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq4058[0] { - yym4060 := z.EncBinary() - _ = yym4060 + if yyq4141[0] { + yym4143 := z.EncBinary() + _ = yym4143 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) @@ -50796,23 +51876,23 @@ func (x *LimitRange) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq4058[0] { + if yyq4141[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym4061 := z.EncBinary() - _ = yym4061 + yym4144 := z.EncBinary() + _ = yym4144 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } - if yyr4058 || yy2arr4058 { + if yyr4141 || yy2arr4141 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq4058[1] { - yym4063 := z.EncBinary() - _ = yym4063 + if yyq4141[1] { + yym4146 := z.EncBinary() + _ = yym4146 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) @@ -50821,53 +51901,53 @@ func (x *LimitRange) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq4058[1] { + if yyq4141[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym4064 := z.EncBinary() - _ = yym4064 + yym4147 := z.EncBinary() + _ = yym4147 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } - if yyr4058 || yy2arr4058 { + if yyr4141 || yy2arr4141 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq4058[2] { - yy4066 := &x.ObjectMeta - yy4066.CodecEncodeSelf(e) + if yyq4141[2] { + yy4149 := &x.ObjectMeta + yy4149.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { - if yyq4058[2] { + if yyq4141[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy4067 := &x.ObjectMeta - yy4067.CodecEncodeSelf(e) + yy4150 := &x.ObjectMeta + yy4150.CodecEncodeSelf(e) } } - if yyr4058 || yy2arr4058 { + if yyr4141 || yy2arr4141 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq4058[3] { - yy4069 := &x.Spec - yy4069.CodecEncodeSelf(e) + if yyq4141[3] { + yy4152 := &x.Spec + yy4152.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { - if yyq4058[3] { + if yyq4141[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("spec")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy4070 := &x.Spec - yy4070.CodecEncodeSelf(e) + yy4153 := &x.Spec + yy4153.CodecEncodeSelf(e) } } - if yyr4058 || yy2arr4058 { + if yyr4141 || yy2arr4141 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -50880,25 +51960,25 @@ func (x *LimitRange) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym4071 := z.DecBinary() - _ = yym4071 + yym4154 := z.DecBinary() + _ = yym4154 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct4072 := r.ContainerType() - if yyct4072 == codecSelferValueTypeMap1234 { - yyl4072 := r.ReadMapStart() - if yyl4072 == 0 { + yyct4155 := r.ContainerType() + if yyct4155 == codecSelferValueTypeMap1234 { + yyl4155 := r.ReadMapStart() + if yyl4155 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl4072, d) + x.codecDecodeSelfFromMap(yyl4155, d) } - } else if yyct4072 == codecSelferValueTypeArray1234 { - yyl4072 := r.ReadArrayStart() - if yyl4072 == 0 { + } else if yyct4155 == codecSelferValueTypeArray1234 { + yyl4155 := r.ReadArrayStart() + if yyl4155 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl4072, d) + x.codecDecodeSelfFromArray(yyl4155, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -50910,12 +51990,12 @@ func (x *LimitRange) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys4073Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys4073Slc - var yyhl4073 bool = l >= 0 - for yyj4073 := 0; ; yyj4073++ { - if yyhl4073 { - if yyj4073 >= l { + var yys4156Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys4156Slc + var yyhl4156 bool = l >= 0 + for yyj4156 := 0; ; yyj4156++ { + if yyhl4156 { + if yyj4156 >= l { break } } else { @@ -50924,10 +52004,10 @@ func (x *LimitRange) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys4073Slc = r.DecodeBytes(yys4073Slc, true, true) - yys4073 := string(yys4073Slc) + yys4156Slc = r.DecodeBytes(yys4156Slc, true, true) + yys4156 := string(yys4156Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys4073 { + switch yys4156 { case "kind": if r.TryDecodeAsNil() { x.Kind = "" @@ -50944,20 +52024,20 @@ func (x *LimitRange) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.ObjectMeta = ObjectMeta{} } else { - yyv4076 := &x.ObjectMeta - yyv4076.CodecDecodeSelf(d) + yyv4159 := &x.ObjectMeta + yyv4159.CodecDecodeSelf(d) } case "spec": if r.TryDecodeAsNil() { x.Spec = LimitRangeSpec{} } else { - yyv4077 := &x.Spec - yyv4077.CodecDecodeSelf(d) + yyv4160 := &x.Spec + yyv4160.CodecDecodeSelf(d) } default: - z.DecStructFieldNotFound(-1, yys4073) - } // end switch yys4073 - } // end for yyj4073 + z.DecStructFieldNotFound(-1, yys4156) + } // end switch yys4156 + } // end for yyj4156 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -50965,16 +52045,16 @@ func (x *LimitRange) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj4078 int - var yyb4078 bool - var yyhl4078 bool = l >= 0 - yyj4078++ - if yyhl4078 { - yyb4078 = yyj4078 > l + var yyj4161 int + var yyb4161 bool + var yyhl4161 bool = l >= 0 + yyj4161++ + if yyhl4161 { + yyb4161 = yyj4161 > l } else { - yyb4078 = r.CheckBreak() + yyb4161 = r.CheckBreak() } - if yyb4078 { + if yyb4161 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -50984,13 +52064,13 @@ func (x *LimitRange) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.Kind = string(r.DecodeString()) } - yyj4078++ - if yyhl4078 { - yyb4078 = yyj4078 > l + yyj4161++ + if yyhl4161 { + yyb4161 = yyj4161 > l } else { - yyb4078 = r.CheckBreak() + yyb4161 = r.CheckBreak() } - if yyb4078 { + if yyb4161 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -51000,13 +52080,13 @@ func (x *LimitRange) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.APIVersion = string(r.DecodeString()) } - yyj4078++ - if yyhl4078 { - yyb4078 = yyj4078 > l + yyj4161++ + if yyhl4161 { + yyb4161 = yyj4161 > l } else { - yyb4078 = r.CheckBreak() + yyb4161 = r.CheckBreak() } - if yyb4078 { + if yyb4161 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -51014,16 +52094,16 @@ func (x *LimitRange) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.ObjectMeta = ObjectMeta{} } else { - yyv4081 := &x.ObjectMeta - yyv4081.CodecDecodeSelf(d) + yyv4164 := &x.ObjectMeta + yyv4164.CodecDecodeSelf(d) } - yyj4078++ - if yyhl4078 { - yyb4078 = yyj4078 > l + yyj4161++ + if yyhl4161 { + yyb4161 = yyj4161 > l } else { - yyb4078 = r.CheckBreak() + yyb4161 = r.CheckBreak() } - if yyb4078 { + if yyb4161 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -51031,21 +52111,21 @@ func (x *LimitRange) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.Spec = LimitRangeSpec{} } else { - yyv4082 := &x.Spec - yyv4082.CodecDecodeSelf(d) + yyv4165 := &x.Spec + yyv4165.CodecDecodeSelf(d) } for { - yyj4078++ - if yyhl4078 { - yyb4078 = yyj4078 > l + yyj4161++ + if yyhl4161 { + yyb4161 = yyj4161 > l } else { - yyb4078 = r.CheckBreak() + yyb4161 = r.CheckBreak() } - if yyb4078 { + if yyb4161 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj4078-1, "") + z.DecStructFieldNotFound(yyj4161-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -51057,37 +52137,37 @@ func (x *LimitRangeList) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym4083 := z.EncBinary() - _ = yym4083 + yym4166 := z.EncBinary() + _ = yym4166 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep4084 := !z.EncBinary() - yy2arr4084 := z.EncBasicHandle().StructToArray - var yyq4084 [4]bool - _, _, _ = yysep4084, yyq4084, yy2arr4084 - const yyr4084 bool = false - yyq4084[0] = x.Kind != "" - yyq4084[1] = x.APIVersion != "" - yyq4084[2] = true - var yynn4084 int - if yyr4084 || yy2arr4084 { + yysep4167 := !z.EncBinary() + yy2arr4167 := z.EncBasicHandle().StructToArray + var yyq4167 [4]bool + _, _, _ = yysep4167, yyq4167, yy2arr4167 + const yyr4167 bool = false + yyq4167[0] = x.Kind != "" + yyq4167[1] = x.APIVersion != "" + yyq4167[2] = true + var yynn4167 int + if yyr4167 || yy2arr4167 { r.EncodeArrayStart(4) } else { - yynn4084 = 1 - for _, b := range yyq4084 { + yynn4167 = 1 + for _, b := range yyq4167 { if b { - yynn4084++ + yynn4167++ } } - r.EncodeMapStart(yynn4084) - yynn4084 = 0 + r.EncodeMapStart(yynn4167) + yynn4167 = 0 } - if yyr4084 || yy2arr4084 { + if yyr4167 || yy2arr4167 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq4084[0] { - yym4086 := z.EncBinary() - _ = yym4086 + if yyq4167[0] { + yym4169 := z.EncBinary() + _ = yym4169 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) @@ -51096,23 +52176,23 @@ func (x *LimitRangeList) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq4084[0] { + if yyq4167[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym4087 := z.EncBinary() - _ = yym4087 + yym4170 := z.EncBinary() + _ = yym4170 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } - if yyr4084 || yy2arr4084 { + if yyr4167 || yy2arr4167 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq4084[1] { - yym4089 := z.EncBinary() - _ = yym4089 + if yyq4167[1] { + yym4172 := z.EncBinary() + _ = yym4172 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) @@ -51121,54 +52201,54 @@ func (x *LimitRangeList) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq4084[1] { + if yyq4167[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym4090 := z.EncBinary() - _ = yym4090 + yym4173 := z.EncBinary() + _ = yym4173 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } - if yyr4084 || yy2arr4084 { + if yyr4167 || yy2arr4167 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq4084[2] { - yy4092 := &x.ListMeta - yym4093 := z.EncBinary() - _ = yym4093 + if yyq4167[2] { + yy4175 := &x.ListMeta + yym4176 := z.EncBinary() + _ = yym4176 if false { - } else if z.HasExtensions() && z.EncExt(yy4092) { + } else if z.HasExtensions() && z.EncExt(yy4175) { } else { - z.EncFallback(yy4092) + z.EncFallback(yy4175) } } else { r.EncodeNil() } } else { - if yyq4084[2] { + if yyq4167[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy4094 := &x.ListMeta - yym4095 := z.EncBinary() - _ = yym4095 + yy4177 := &x.ListMeta + yym4178 := z.EncBinary() + _ = yym4178 if false { - } else if z.HasExtensions() && z.EncExt(yy4094) { + } else if z.HasExtensions() && z.EncExt(yy4177) { } else { - z.EncFallback(yy4094) + z.EncFallback(yy4177) } } } - if yyr4084 || yy2arr4084 { + if yyr4167 || yy2arr4167 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.Items == nil { r.EncodeNil() } else { - yym4097 := z.EncBinary() - _ = yym4097 + yym4180 := z.EncBinary() + _ = yym4180 if false { } else { h.encSliceLimitRange(([]LimitRange)(x.Items), e) @@ -51181,15 +52261,15 @@ func (x *LimitRangeList) CodecEncodeSelf(e *codec1978.Encoder) { if x.Items == nil { r.EncodeNil() } else { - yym4098 := z.EncBinary() - _ = yym4098 + yym4181 := z.EncBinary() + _ = yym4181 if false { } else { h.encSliceLimitRange(([]LimitRange)(x.Items), e) } } } - if yyr4084 || yy2arr4084 { + if yyr4167 || yy2arr4167 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -51202,25 +52282,25 @@ func (x *LimitRangeList) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym4099 := z.DecBinary() - _ = yym4099 + yym4182 := z.DecBinary() + _ = yym4182 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct4100 := r.ContainerType() - if yyct4100 == codecSelferValueTypeMap1234 { - yyl4100 := r.ReadMapStart() - if yyl4100 == 0 { + yyct4183 := r.ContainerType() + if yyct4183 == codecSelferValueTypeMap1234 { + yyl4183 := r.ReadMapStart() + if yyl4183 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl4100, d) + x.codecDecodeSelfFromMap(yyl4183, d) } - } else if yyct4100 == codecSelferValueTypeArray1234 { - yyl4100 := r.ReadArrayStart() - if yyl4100 == 0 { + } else if yyct4183 == codecSelferValueTypeArray1234 { + yyl4183 := r.ReadArrayStart() + if yyl4183 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl4100, d) + x.codecDecodeSelfFromArray(yyl4183, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -51232,12 +52312,12 @@ func (x *LimitRangeList) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys4101Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys4101Slc - var yyhl4101 bool = l >= 0 - for yyj4101 := 0; ; yyj4101++ { - if yyhl4101 { - if yyj4101 >= l { + var yys4184Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys4184Slc + var yyhl4184 bool = l >= 0 + for yyj4184 := 0; ; yyj4184++ { + if yyhl4184 { + if yyj4184 >= l { break } } else { @@ -51246,10 +52326,10 @@ func (x *LimitRangeList) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys4101Slc = r.DecodeBytes(yys4101Slc, true, true) - yys4101 := string(yys4101Slc) + yys4184Slc = r.DecodeBytes(yys4184Slc, true, true) + yys4184 := string(yys4184Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys4101 { + switch yys4184 { case "kind": if r.TryDecodeAsNil() { x.Kind = "" @@ -51266,31 +52346,31 @@ func (x *LimitRangeList) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.ListMeta = pkg2_unversioned.ListMeta{} } else { - yyv4104 := &x.ListMeta - yym4105 := z.DecBinary() - _ = yym4105 + yyv4187 := &x.ListMeta + yym4188 := z.DecBinary() + _ = yym4188 if false { - } else if z.HasExtensions() && z.DecExt(yyv4104) { + } else if z.HasExtensions() && z.DecExt(yyv4187) { } else { - z.DecFallback(yyv4104, false) + z.DecFallback(yyv4187, false) } } case "items": if r.TryDecodeAsNil() { x.Items = nil } else { - yyv4106 := &x.Items - yym4107 := z.DecBinary() - _ = yym4107 + yyv4189 := &x.Items + yym4190 := z.DecBinary() + _ = yym4190 if false { } else { - h.decSliceLimitRange((*[]LimitRange)(yyv4106), d) + h.decSliceLimitRange((*[]LimitRange)(yyv4189), d) } } default: - z.DecStructFieldNotFound(-1, yys4101) - } // end switch yys4101 - } // end for yyj4101 + z.DecStructFieldNotFound(-1, yys4184) + } // end switch yys4184 + } // end for yyj4184 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -51298,16 +52378,16 @@ func (x *LimitRangeList) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj4108 int - var yyb4108 bool - var yyhl4108 bool = l >= 0 - yyj4108++ - if yyhl4108 { - yyb4108 = yyj4108 > l + var yyj4191 int + var yyb4191 bool + var yyhl4191 bool = l >= 0 + yyj4191++ + if yyhl4191 { + yyb4191 = yyj4191 > l } else { - yyb4108 = r.CheckBreak() + yyb4191 = r.CheckBreak() } - if yyb4108 { + if yyb4191 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -51317,13 +52397,13 @@ func (x *LimitRangeList) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.Kind = string(r.DecodeString()) } - yyj4108++ - if yyhl4108 { - yyb4108 = yyj4108 > l + yyj4191++ + if yyhl4191 { + yyb4191 = yyj4191 > l } else { - yyb4108 = r.CheckBreak() + yyb4191 = r.CheckBreak() } - if yyb4108 { + if yyb4191 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -51333,13 +52413,13 @@ func (x *LimitRangeList) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.APIVersion = string(r.DecodeString()) } - yyj4108++ - if yyhl4108 { - yyb4108 = yyj4108 > l + yyj4191++ + if yyhl4191 { + yyb4191 = yyj4191 > l } else { - yyb4108 = r.CheckBreak() + yyb4191 = r.CheckBreak() } - if yyb4108 { + if yyb4191 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -51347,22 +52427,22 @@ func (x *LimitRangeList) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.ListMeta = pkg2_unversioned.ListMeta{} } else { - yyv4111 := &x.ListMeta - yym4112 := z.DecBinary() - _ = yym4112 + yyv4194 := &x.ListMeta + yym4195 := z.DecBinary() + _ = yym4195 if false { - } else if z.HasExtensions() && z.DecExt(yyv4111) { + } else if z.HasExtensions() && z.DecExt(yyv4194) { } else { - z.DecFallback(yyv4111, false) + z.DecFallback(yyv4194, false) } } - yyj4108++ - if yyhl4108 { - yyb4108 = yyj4108 > l + yyj4191++ + if yyhl4191 { + yyb4191 = yyj4191 > l } else { - yyb4108 = r.CheckBreak() + yyb4191 = r.CheckBreak() } - if yyb4108 { + if yyb4191 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -51370,26 +52450,26 @@ func (x *LimitRangeList) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.Items = nil } else { - yyv4113 := &x.Items - yym4114 := z.DecBinary() - _ = yym4114 + yyv4196 := &x.Items + yym4197 := z.DecBinary() + _ = yym4197 if false { } else { - h.decSliceLimitRange((*[]LimitRange)(yyv4113), d) + h.decSliceLimitRange((*[]LimitRange)(yyv4196), d) } } for { - yyj4108++ - if yyhl4108 { - yyb4108 = yyj4108 > l + yyj4191++ + if yyhl4191 { + yyb4191 = yyj4191 > l } else { - yyb4108 = r.CheckBreak() + yyb4191 = r.CheckBreak() } - if yyb4108 { + if yyb4191 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj4108-1, "") + z.DecStructFieldNotFound(yyj4191-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -51398,8 +52478,8 @@ func (x ResourceQuotaScope) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r - yym4115 := z.EncBinary() - _ = yym4115 + yym4198 := z.EncBinary() + _ = yym4198 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { @@ -51411,8 +52491,8 @@ func (x *ResourceQuotaScope) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym4116 := z.DecBinary() - _ = yym4116 + yym4199 := z.DecBinary() + _ = yym4199 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { @@ -51427,34 +52507,34 @@ func (x *ResourceQuotaSpec) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym4117 := z.EncBinary() - _ = yym4117 + yym4200 := z.EncBinary() + _ = yym4200 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - 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 { + yysep4201 := !z.EncBinary() + yy2arr4201 := z.EncBasicHandle().StructToArray + var yyq4201 [2]bool + _, _, _ = yysep4201, yyq4201, yy2arr4201 + const yyr4201 bool = false + yyq4201[0] = len(x.Hard) != 0 + yyq4201[1] = len(x.Scopes) != 0 + var yynn4201 int + if yyr4201 || yy2arr4201 { r.EncodeArrayStart(2) } else { - yynn4118 = 0 - for _, b := range yyq4118 { + yynn4201 = 0 + for _, b := range yyq4201 { if b { - yynn4118++ + yynn4201++ } } - r.EncodeMapStart(yynn4118) - yynn4118 = 0 + r.EncodeMapStart(yynn4201) + yynn4201 = 0 } - if yyr4118 || yy2arr4118 { + if yyr4201 || yy2arr4201 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq4118[0] { + if yyq4201[0] { if x.Hard == nil { r.EncodeNil() } else { @@ -51464,7 +52544,7 @@ func (x *ResourceQuotaSpec) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq4118[0] { + if yyq4201[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("hard")) z.EncSendContainerState(codecSelfer_containerMapValue1234) @@ -51475,14 +52555,14 @@ func (x *ResourceQuotaSpec) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr4118 || yy2arr4118 { + if yyr4201 || yy2arr4201 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq4118[1] { + if yyq4201[1] { if x.Scopes == nil { r.EncodeNil() } else { - yym4121 := z.EncBinary() - _ = yym4121 + yym4204 := z.EncBinary() + _ = yym4204 if false { } else { h.encSliceResourceQuotaScope(([]ResourceQuotaScope)(x.Scopes), e) @@ -51492,15 +52572,15 @@ func (x *ResourceQuotaSpec) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq4118[1] { + if yyq4201[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("scopes")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.Scopes == nil { r.EncodeNil() } else { - yym4122 := z.EncBinary() - _ = yym4122 + yym4205 := z.EncBinary() + _ = yym4205 if false { } else { h.encSliceResourceQuotaScope(([]ResourceQuotaScope)(x.Scopes), e) @@ -51508,7 +52588,7 @@ func (x *ResourceQuotaSpec) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr4118 || yy2arr4118 { + if yyr4201 || yy2arr4201 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -51521,25 +52601,25 @@ func (x *ResourceQuotaSpec) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym4123 := z.DecBinary() - _ = yym4123 + yym4206 := z.DecBinary() + _ = yym4206 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct4124 := r.ContainerType() - if yyct4124 == codecSelferValueTypeMap1234 { - yyl4124 := r.ReadMapStart() - if yyl4124 == 0 { + yyct4207 := r.ContainerType() + if yyct4207 == codecSelferValueTypeMap1234 { + yyl4207 := r.ReadMapStart() + if yyl4207 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl4124, d) + x.codecDecodeSelfFromMap(yyl4207, d) } - } else if yyct4124 == codecSelferValueTypeArray1234 { - yyl4124 := r.ReadArrayStart() - if yyl4124 == 0 { + } else if yyct4207 == codecSelferValueTypeArray1234 { + yyl4207 := r.ReadArrayStart() + if yyl4207 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl4124, d) + x.codecDecodeSelfFromArray(yyl4207, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -51551,12 +52631,12 @@ func (x *ResourceQuotaSpec) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys4125Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys4125Slc - var yyhl4125 bool = l >= 0 - for yyj4125 := 0; ; yyj4125++ { - if yyhl4125 { - if yyj4125 >= l { + var yys4208Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys4208Slc + var yyhl4208 bool = l >= 0 + for yyj4208 := 0; ; yyj4208++ { + if yyhl4208 { + if yyj4208 >= l { break } } else { @@ -51565,33 +52645,33 @@ func (x *ResourceQuotaSpec) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys4125Slc = r.DecodeBytes(yys4125Slc, true, true) - yys4125 := string(yys4125Slc) + yys4208Slc = r.DecodeBytes(yys4208Slc, true, true) + yys4208 := string(yys4208Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys4125 { + switch yys4208 { case "hard": if r.TryDecodeAsNil() { x.Hard = nil } else { - yyv4126 := &x.Hard - yyv4126.CodecDecodeSelf(d) + yyv4209 := &x.Hard + yyv4209.CodecDecodeSelf(d) } case "scopes": if r.TryDecodeAsNil() { x.Scopes = nil } else { - yyv4127 := &x.Scopes - yym4128 := z.DecBinary() - _ = yym4128 + yyv4210 := &x.Scopes + yym4211 := z.DecBinary() + _ = yym4211 if false { } else { - h.decSliceResourceQuotaScope((*[]ResourceQuotaScope)(yyv4127), d) + h.decSliceResourceQuotaScope((*[]ResourceQuotaScope)(yyv4210), d) } } default: - z.DecStructFieldNotFound(-1, yys4125) - } // end switch yys4125 - } // end for yyj4125 + z.DecStructFieldNotFound(-1, yys4208) + } // end switch yys4208 + } // end for yyj4208 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -51599,16 +52679,16 @@ func (x *ResourceQuotaSpec) codecDecodeSelfFromArray(l int, d *codec1978.Decoder var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj4129 int - var yyb4129 bool - var yyhl4129 bool = l >= 0 - yyj4129++ - if yyhl4129 { - yyb4129 = yyj4129 > l + var yyj4212 int + var yyb4212 bool + var yyhl4212 bool = l >= 0 + yyj4212++ + if yyhl4212 { + yyb4212 = yyj4212 > l } else { - yyb4129 = r.CheckBreak() + yyb4212 = r.CheckBreak() } - if yyb4129 { + if yyb4212 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -51616,16 +52696,16 @@ func (x *ResourceQuotaSpec) codecDecodeSelfFromArray(l int, d *codec1978.Decoder if r.TryDecodeAsNil() { x.Hard = nil } else { - yyv4130 := &x.Hard - yyv4130.CodecDecodeSelf(d) + yyv4213 := &x.Hard + yyv4213.CodecDecodeSelf(d) } - yyj4129++ - if yyhl4129 { - yyb4129 = yyj4129 > l + yyj4212++ + if yyhl4212 { + yyb4212 = yyj4212 > l } else { - yyb4129 = r.CheckBreak() + yyb4212 = r.CheckBreak() } - if yyb4129 { + if yyb4212 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -51633,26 +52713,26 @@ func (x *ResourceQuotaSpec) codecDecodeSelfFromArray(l int, d *codec1978.Decoder if r.TryDecodeAsNil() { x.Scopes = nil } else { - yyv4131 := &x.Scopes - yym4132 := z.DecBinary() - _ = yym4132 + yyv4214 := &x.Scopes + yym4215 := z.DecBinary() + _ = yym4215 if false { } else { - h.decSliceResourceQuotaScope((*[]ResourceQuotaScope)(yyv4131), d) + h.decSliceResourceQuotaScope((*[]ResourceQuotaScope)(yyv4214), d) } } for { - yyj4129++ - if yyhl4129 { - yyb4129 = yyj4129 > l + yyj4212++ + if yyhl4212 { + yyb4212 = yyj4212 > l } else { - yyb4129 = r.CheckBreak() + yyb4212 = r.CheckBreak() } - if yyb4129 { + if yyb4212 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj4129-1, "") + z.DecStructFieldNotFound(yyj4212-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -51664,34 +52744,34 @@ func (x *ResourceQuotaStatus) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym4133 := z.EncBinary() - _ = yym4133 + yym4216 := z.EncBinary() + _ = yym4216 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - 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 { + yysep4217 := !z.EncBinary() + yy2arr4217 := z.EncBasicHandle().StructToArray + var yyq4217 [2]bool + _, _, _ = yysep4217, yyq4217, yy2arr4217 + const yyr4217 bool = false + yyq4217[0] = len(x.Hard) != 0 + yyq4217[1] = len(x.Used) != 0 + var yynn4217 int + if yyr4217 || yy2arr4217 { r.EncodeArrayStart(2) } else { - yynn4134 = 0 - for _, b := range yyq4134 { + yynn4217 = 0 + for _, b := range yyq4217 { if b { - yynn4134++ + yynn4217++ } } - r.EncodeMapStart(yynn4134) - yynn4134 = 0 + r.EncodeMapStart(yynn4217) + yynn4217 = 0 } - if yyr4134 || yy2arr4134 { + if yyr4217 || yy2arr4217 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq4134[0] { + if yyq4217[0] { if x.Hard == nil { r.EncodeNil() } else { @@ -51701,7 +52781,7 @@ func (x *ResourceQuotaStatus) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq4134[0] { + if yyq4217[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("hard")) z.EncSendContainerState(codecSelfer_containerMapValue1234) @@ -51712,9 +52792,9 @@ func (x *ResourceQuotaStatus) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr4134 || yy2arr4134 { + if yyr4217 || yy2arr4217 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq4134[1] { + if yyq4217[1] { if x.Used == nil { r.EncodeNil() } else { @@ -51724,7 +52804,7 @@ func (x *ResourceQuotaStatus) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq4134[1] { + if yyq4217[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("used")) z.EncSendContainerState(codecSelfer_containerMapValue1234) @@ -51735,7 +52815,7 @@ func (x *ResourceQuotaStatus) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr4134 || yy2arr4134 { + if yyr4217 || yy2arr4217 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -51748,25 +52828,25 @@ func (x *ResourceQuotaStatus) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym4137 := z.DecBinary() - _ = yym4137 + yym4220 := z.DecBinary() + _ = yym4220 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct4138 := r.ContainerType() - if yyct4138 == codecSelferValueTypeMap1234 { - yyl4138 := r.ReadMapStart() - if yyl4138 == 0 { + yyct4221 := r.ContainerType() + if yyct4221 == codecSelferValueTypeMap1234 { + yyl4221 := r.ReadMapStart() + if yyl4221 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl4138, d) + x.codecDecodeSelfFromMap(yyl4221, d) } - } else if yyct4138 == codecSelferValueTypeArray1234 { - yyl4138 := r.ReadArrayStart() - if yyl4138 == 0 { + } else if yyct4221 == codecSelferValueTypeArray1234 { + yyl4221 := r.ReadArrayStart() + if yyl4221 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl4138, d) + x.codecDecodeSelfFromArray(yyl4221, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -51778,12 +52858,12 @@ func (x *ResourceQuotaStatus) codecDecodeSelfFromMap(l int, d *codec1978.Decoder var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys4139Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys4139Slc - var yyhl4139 bool = l >= 0 - for yyj4139 := 0; ; yyj4139++ { - if yyhl4139 { - if yyj4139 >= l { + var yys4222Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys4222Slc + var yyhl4222 bool = l >= 0 + for yyj4222 := 0; ; yyj4222++ { + if yyhl4222 { + if yyj4222 >= l { break } } else { @@ -51792,28 +52872,28 @@ func (x *ResourceQuotaStatus) codecDecodeSelfFromMap(l int, d *codec1978.Decoder } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys4139Slc = r.DecodeBytes(yys4139Slc, true, true) - yys4139 := string(yys4139Slc) + yys4222Slc = r.DecodeBytes(yys4222Slc, true, true) + yys4222 := string(yys4222Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys4139 { + switch yys4222 { case "hard": if r.TryDecodeAsNil() { x.Hard = nil } else { - yyv4140 := &x.Hard - yyv4140.CodecDecodeSelf(d) + yyv4223 := &x.Hard + yyv4223.CodecDecodeSelf(d) } case "used": if r.TryDecodeAsNil() { x.Used = nil } else { - yyv4141 := &x.Used - yyv4141.CodecDecodeSelf(d) + yyv4224 := &x.Used + yyv4224.CodecDecodeSelf(d) } default: - z.DecStructFieldNotFound(-1, yys4139) - } // end switch yys4139 - } // end for yyj4139 + z.DecStructFieldNotFound(-1, yys4222) + } // end switch yys4222 + } // end for yyj4222 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -51821,16 +52901,16 @@ func (x *ResourceQuotaStatus) codecDecodeSelfFromArray(l int, d *codec1978.Decod var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj4142 int - var yyb4142 bool - var yyhl4142 bool = l >= 0 - yyj4142++ - if yyhl4142 { - yyb4142 = yyj4142 > l + var yyj4225 int + var yyb4225 bool + var yyhl4225 bool = l >= 0 + yyj4225++ + if yyhl4225 { + yyb4225 = yyj4225 > l } else { - yyb4142 = r.CheckBreak() + yyb4225 = r.CheckBreak() } - if yyb4142 { + if yyb4225 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -51838,16 +52918,16 @@ func (x *ResourceQuotaStatus) codecDecodeSelfFromArray(l int, d *codec1978.Decod if r.TryDecodeAsNil() { x.Hard = nil } else { - yyv4143 := &x.Hard - yyv4143.CodecDecodeSelf(d) + yyv4226 := &x.Hard + yyv4226.CodecDecodeSelf(d) } - yyj4142++ - if yyhl4142 { - yyb4142 = yyj4142 > l + yyj4225++ + if yyhl4225 { + yyb4225 = yyj4225 > l } else { - yyb4142 = r.CheckBreak() + yyb4225 = r.CheckBreak() } - if yyb4142 { + if yyb4225 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -51855,21 +52935,21 @@ func (x *ResourceQuotaStatus) codecDecodeSelfFromArray(l int, d *codec1978.Decod if r.TryDecodeAsNil() { x.Used = nil } else { - yyv4144 := &x.Used - yyv4144.CodecDecodeSelf(d) + yyv4227 := &x.Used + yyv4227.CodecDecodeSelf(d) } for { - yyj4142++ - if yyhl4142 { - yyb4142 = yyj4142 > l + yyj4225++ + if yyhl4225 { + yyb4225 = yyj4225 > l } else { - yyb4142 = r.CheckBreak() + yyb4225 = r.CheckBreak() } - if yyb4142 { + if yyb4225 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj4142-1, "") + z.DecStructFieldNotFound(yyj4225-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -51881,39 +52961,39 @@ func (x *ResourceQuota) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym4145 := z.EncBinary() - _ = yym4145 + yym4228 := z.EncBinary() + _ = yym4228 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - 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 { + yysep4229 := !z.EncBinary() + yy2arr4229 := z.EncBasicHandle().StructToArray + var yyq4229 [5]bool + _, _, _ = yysep4229, yyq4229, yy2arr4229 + const yyr4229 bool = false + yyq4229[0] = x.Kind != "" + yyq4229[1] = x.APIVersion != "" + yyq4229[2] = true + yyq4229[3] = true + yyq4229[4] = true + var yynn4229 int + if yyr4229 || yy2arr4229 { r.EncodeArrayStart(5) } else { - yynn4146 = 0 - for _, b := range yyq4146 { + yynn4229 = 0 + for _, b := range yyq4229 { if b { - yynn4146++ + yynn4229++ } } - r.EncodeMapStart(yynn4146) - yynn4146 = 0 + r.EncodeMapStart(yynn4229) + yynn4229 = 0 } - if yyr4146 || yy2arr4146 { + if yyr4229 || yy2arr4229 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq4146[0] { - yym4148 := z.EncBinary() - _ = yym4148 + if yyq4229[0] { + yym4231 := z.EncBinary() + _ = yym4231 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) @@ -51922,23 +53002,23 @@ func (x *ResourceQuota) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq4146[0] { + if yyq4229[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym4149 := z.EncBinary() - _ = yym4149 + yym4232 := z.EncBinary() + _ = yym4232 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } - if yyr4146 || yy2arr4146 { + if yyr4229 || yy2arr4229 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq4146[1] { - yym4151 := z.EncBinary() - _ = yym4151 + if yyq4229[1] { + yym4234 := z.EncBinary() + _ = yym4234 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) @@ -51947,70 +53027,70 @@ func (x *ResourceQuota) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq4146[1] { + if yyq4229[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym4152 := z.EncBinary() - _ = yym4152 + yym4235 := z.EncBinary() + _ = yym4235 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } - if yyr4146 || yy2arr4146 { + if yyr4229 || yy2arr4229 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq4146[2] { - yy4154 := &x.ObjectMeta - yy4154.CodecEncodeSelf(e) + if yyq4229[2] { + yy4237 := &x.ObjectMeta + yy4237.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { - if yyq4146[2] { + if yyq4229[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy4155 := &x.ObjectMeta - yy4155.CodecEncodeSelf(e) + yy4238 := &x.ObjectMeta + yy4238.CodecEncodeSelf(e) } } - if yyr4146 || yy2arr4146 { + if yyr4229 || yy2arr4229 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq4146[3] { - yy4157 := &x.Spec - yy4157.CodecEncodeSelf(e) + if yyq4229[3] { + yy4240 := &x.Spec + yy4240.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { - if yyq4146[3] { + if yyq4229[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("spec")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy4158 := &x.Spec - yy4158.CodecEncodeSelf(e) + yy4241 := &x.Spec + yy4241.CodecEncodeSelf(e) } } - if yyr4146 || yy2arr4146 { + if yyr4229 || yy2arr4229 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq4146[4] { - yy4160 := &x.Status - yy4160.CodecEncodeSelf(e) + if yyq4229[4] { + yy4243 := &x.Status + yy4243.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { - if yyq4146[4] { + if yyq4229[4] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("status")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy4161 := &x.Status - yy4161.CodecEncodeSelf(e) + yy4244 := &x.Status + yy4244.CodecEncodeSelf(e) } } - if yyr4146 || yy2arr4146 { + if yyr4229 || yy2arr4229 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -52023,25 +53103,25 @@ func (x *ResourceQuota) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym4162 := z.DecBinary() - _ = yym4162 + yym4245 := z.DecBinary() + _ = yym4245 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct4163 := r.ContainerType() - if yyct4163 == codecSelferValueTypeMap1234 { - yyl4163 := r.ReadMapStart() - if yyl4163 == 0 { + yyct4246 := r.ContainerType() + if yyct4246 == codecSelferValueTypeMap1234 { + yyl4246 := r.ReadMapStart() + if yyl4246 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl4163, d) + x.codecDecodeSelfFromMap(yyl4246, d) } - } else if yyct4163 == codecSelferValueTypeArray1234 { - yyl4163 := r.ReadArrayStart() - if yyl4163 == 0 { + } else if yyct4246 == codecSelferValueTypeArray1234 { + yyl4246 := r.ReadArrayStart() + if yyl4246 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl4163, d) + x.codecDecodeSelfFromArray(yyl4246, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -52053,12 +53133,12 @@ func (x *ResourceQuota) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys4164Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys4164Slc - var yyhl4164 bool = l >= 0 - for yyj4164 := 0; ; yyj4164++ { - if yyhl4164 { - if yyj4164 >= l { + var yys4247Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys4247Slc + var yyhl4247 bool = l >= 0 + for yyj4247 := 0; ; yyj4247++ { + if yyhl4247 { + if yyj4247 >= l { break } } else { @@ -52067,10 +53147,10 @@ func (x *ResourceQuota) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys4164Slc = r.DecodeBytes(yys4164Slc, true, true) - yys4164 := string(yys4164Slc) + yys4247Slc = r.DecodeBytes(yys4247Slc, true, true) + yys4247 := string(yys4247Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys4164 { + switch yys4247 { case "kind": if r.TryDecodeAsNil() { x.Kind = "" @@ -52087,27 +53167,27 @@ func (x *ResourceQuota) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.ObjectMeta = ObjectMeta{} } else { - yyv4167 := &x.ObjectMeta - yyv4167.CodecDecodeSelf(d) + yyv4250 := &x.ObjectMeta + yyv4250.CodecDecodeSelf(d) } case "spec": if r.TryDecodeAsNil() { x.Spec = ResourceQuotaSpec{} } else { - yyv4168 := &x.Spec - yyv4168.CodecDecodeSelf(d) + yyv4251 := &x.Spec + yyv4251.CodecDecodeSelf(d) } case "status": if r.TryDecodeAsNil() { x.Status = ResourceQuotaStatus{} } else { - yyv4169 := &x.Status - yyv4169.CodecDecodeSelf(d) + yyv4252 := &x.Status + yyv4252.CodecDecodeSelf(d) } default: - z.DecStructFieldNotFound(-1, yys4164) - } // end switch yys4164 - } // end for yyj4164 + z.DecStructFieldNotFound(-1, yys4247) + } // end switch yys4247 + } // end for yyj4247 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -52115,16 +53195,16 @@ func (x *ResourceQuota) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj4170 int - var yyb4170 bool - var yyhl4170 bool = l >= 0 - yyj4170++ - if yyhl4170 { - yyb4170 = yyj4170 > l + var yyj4253 int + var yyb4253 bool + var yyhl4253 bool = l >= 0 + yyj4253++ + if yyhl4253 { + yyb4253 = yyj4253 > l } else { - yyb4170 = r.CheckBreak() + yyb4253 = r.CheckBreak() } - if yyb4170 { + if yyb4253 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -52134,13 +53214,13 @@ func (x *ResourceQuota) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.Kind = string(r.DecodeString()) } - yyj4170++ - if yyhl4170 { - yyb4170 = yyj4170 > l + yyj4253++ + if yyhl4253 { + yyb4253 = yyj4253 > l } else { - yyb4170 = r.CheckBreak() + yyb4253 = r.CheckBreak() } - if yyb4170 { + if yyb4253 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -52150,13 +53230,13 @@ func (x *ResourceQuota) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.APIVersion = string(r.DecodeString()) } - yyj4170++ - if yyhl4170 { - yyb4170 = yyj4170 > l + yyj4253++ + if yyhl4253 { + yyb4253 = yyj4253 > l } else { - yyb4170 = r.CheckBreak() + yyb4253 = r.CheckBreak() } - if yyb4170 { + if yyb4253 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -52164,16 +53244,16 @@ func (x *ResourceQuota) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.ObjectMeta = ObjectMeta{} } else { - yyv4173 := &x.ObjectMeta - yyv4173.CodecDecodeSelf(d) + yyv4256 := &x.ObjectMeta + yyv4256.CodecDecodeSelf(d) } - yyj4170++ - if yyhl4170 { - yyb4170 = yyj4170 > l + yyj4253++ + if yyhl4253 { + yyb4253 = yyj4253 > l } else { - yyb4170 = r.CheckBreak() + yyb4253 = r.CheckBreak() } - if yyb4170 { + if yyb4253 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -52181,16 +53261,16 @@ func (x *ResourceQuota) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.Spec = ResourceQuotaSpec{} } else { - yyv4174 := &x.Spec - yyv4174.CodecDecodeSelf(d) + yyv4257 := &x.Spec + yyv4257.CodecDecodeSelf(d) } - yyj4170++ - if yyhl4170 { - yyb4170 = yyj4170 > l + yyj4253++ + if yyhl4253 { + yyb4253 = yyj4253 > l } else { - yyb4170 = r.CheckBreak() + yyb4253 = r.CheckBreak() } - if yyb4170 { + if yyb4253 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -52198,21 +53278,21 @@ func (x *ResourceQuota) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.Status = ResourceQuotaStatus{} } else { - yyv4175 := &x.Status - yyv4175.CodecDecodeSelf(d) + yyv4258 := &x.Status + yyv4258.CodecDecodeSelf(d) } for { - yyj4170++ - if yyhl4170 { - yyb4170 = yyj4170 > l + yyj4253++ + if yyhl4253 { + yyb4253 = yyj4253 > l } else { - yyb4170 = r.CheckBreak() + yyb4253 = r.CheckBreak() } - if yyb4170 { + if yyb4253 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj4170-1, "") + z.DecStructFieldNotFound(yyj4253-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -52224,37 +53304,37 @@ func (x *ResourceQuotaList) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym4176 := z.EncBinary() - _ = yym4176 + yym4259 := z.EncBinary() + _ = yym4259 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - 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 { + yysep4260 := !z.EncBinary() + yy2arr4260 := z.EncBasicHandle().StructToArray + var yyq4260 [4]bool + _, _, _ = yysep4260, yyq4260, yy2arr4260 + const yyr4260 bool = false + yyq4260[0] = x.Kind != "" + yyq4260[1] = x.APIVersion != "" + yyq4260[2] = true + var yynn4260 int + if yyr4260 || yy2arr4260 { r.EncodeArrayStart(4) } else { - yynn4177 = 1 - for _, b := range yyq4177 { + yynn4260 = 1 + for _, b := range yyq4260 { if b { - yynn4177++ + yynn4260++ } } - r.EncodeMapStart(yynn4177) - yynn4177 = 0 + r.EncodeMapStart(yynn4260) + yynn4260 = 0 } - if yyr4177 || yy2arr4177 { + if yyr4260 || yy2arr4260 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq4177[0] { - yym4179 := z.EncBinary() - _ = yym4179 + if yyq4260[0] { + yym4262 := z.EncBinary() + _ = yym4262 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) @@ -52263,23 +53343,23 @@ func (x *ResourceQuotaList) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq4177[0] { + if yyq4260[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym4180 := z.EncBinary() - _ = yym4180 + yym4263 := z.EncBinary() + _ = yym4263 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } - if yyr4177 || yy2arr4177 { + if yyr4260 || yy2arr4260 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq4177[1] { - yym4182 := z.EncBinary() - _ = yym4182 + if yyq4260[1] { + yym4265 := z.EncBinary() + _ = yym4265 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) @@ -52288,54 +53368,54 @@ func (x *ResourceQuotaList) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq4177[1] { + if yyq4260[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym4183 := z.EncBinary() - _ = yym4183 + yym4266 := z.EncBinary() + _ = yym4266 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } - if yyr4177 || yy2arr4177 { + if yyr4260 || yy2arr4260 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq4177[2] { - yy4185 := &x.ListMeta - yym4186 := z.EncBinary() - _ = yym4186 + if yyq4260[2] { + yy4268 := &x.ListMeta + yym4269 := z.EncBinary() + _ = yym4269 if false { - } else if z.HasExtensions() && z.EncExt(yy4185) { + } else if z.HasExtensions() && z.EncExt(yy4268) { } else { - z.EncFallback(yy4185) + z.EncFallback(yy4268) } } else { r.EncodeNil() } } else { - if yyq4177[2] { + if yyq4260[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy4187 := &x.ListMeta - yym4188 := z.EncBinary() - _ = yym4188 + yy4270 := &x.ListMeta + yym4271 := z.EncBinary() + _ = yym4271 if false { - } else if z.HasExtensions() && z.EncExt(yy4187) { + } else if z.HasExtensions() && z.EncExt(yy4270) { } else { - z.EncFallback(yy4187) + z.EncFallback(yy4270) } } } - if yyr4177 || yy2arr4177 { + if yyr4260 || yy2arr4260 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.Items == nil { r.EncodeNil() } else { - yym4190 := z.EncBinary() - _ = yym4190 + yym4273 := z.EncBinary() + _ = yym4273 if false { } else { h.encSliceResourceQuota(([]ResourceQuota)(x.Items), e) @@ -52348,15 +53428,15 @@ func (x *ResourceQuotaList) CodecEncodeSelf(e *codec1978.Encoder) { if x.Items == nil { r.EncodeNil() } else { - yym4191 := z.EncBinary() - _ = yym4191 + yym4274 := z.EncBinary() + _ = yym4274 if false { } else { h.encSliceResourceQuota(([]ResourceQuota)(x.Items), e) } } } - if yyr4177 || yy2arr4177 { + if yyr4260 || yy2arr4260 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -52369,25 +53449,25 @@ func (x *ResourceQuotaList) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym4192 := z.DecBinary() - _ = yym4192 + yym4275 := z.DecBinary() + _ = yym4275 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct4193 := r.ContainerType() - if yyct4193 == codecSelferValueTypeMap1234 { - yyl4193 := r.ReadMapStart() - if yyl4193 == 0 { + yyct4276 := r.ContainerType() + if yyct4276 == codecSelferValueTypeMap1234 { + yyl4276 := r.ReadMapStart() + if yyl4276 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl4193, d) + x.codecDecodeSelfFromMap(yyl4276, d) } - } else if yyct4193 == codecSelferValueTypeArray1234 { - yyl4193 := r.ReadArrayStart() - if yyl4193 == 0 { + } else if yyct4276 == codecSelferValueTypeArray1234 { + yyl4276 := r.ReadArrayStart() + if yyl4276 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl4193, d) + x.codecDecodeSelfFromArray(yyl4276, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -52399,12 +53479,12 @@ func (x *ResourceQuotaList) 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 { + var yys4277Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys4277Slc + var yyhl4277 bool = l >= 0 + for yyj4277 := 0; ; yyj4277++ { + if yyhl4277 { + if yyj4277 >= l { break } } else { @@ -52413,10 +53493,10 @@ func (x *ResourceQuotaList) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys4194Slc = r.DecodeBytes(yys4194Slc, true, true) - yys4194 := string(yys4194Slc) + yys4277Slc = r.DecodeBytes(yys4277Slc, true, true) + yys4277 := string(yys4277Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys4194 { + switch yys4277 { case "kind": if r.TryDecodeAsNil() { x.Kind = "" @@ -52433,31 +53513,31 @@ func (x *ResourceQuotaList) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) if r.TryDecodeAsNil() { x.ListMeta = pkg2_unversioned.ListMeta{} } else { - yyv4197 := &x.ListMeta - yym4198 := z.DecBinary() - _ = yym4198 + yyv4280 := &x.ListMeta + yym4281 := z.DecBinary() + _ = yym4281 if false { - } else if z.HasExtensions() && z.DecExt(yyv4197) { + } else if z.HasExtensions() && z.DecExt(yyv4280) { } else { - z.DecFallback(yyv4197, false) + z.DecFallback(yyv4280, false) } } case "items": if r.TryDecodeAsNil() { x.Items = nil } else { - yyv4199 := &x.Items - yym4200 := z.DecBinary() - _ = yym4200 + yyv4282 := &x.Items + yym4283 := z.DecBinary() + _ = yym4283 if false { } else { - h.decSliceResourceQuota((*[]ResourceQuota)(yyv4199), d) + h.decSliceResourceQuota((*[]ResourceQuota)(yyv4282), d) } } default: - z.DecStructFieldNotFound(-1, yys4194) - } // end switch yys4194 - } // end for yyj4194 + z.DecStructFieldNotFound(-1, yys4277) + } // end switch yys4277 + } // end for yyj4277 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -52465,16 +53545,16 @@ func (x *ResourceQuotaList) codecDecodeSelfFromArray(l int, d *codec1978.Decoder var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj4201 int - var yyb4201 bool - var yyhl4201 bool = l >= 0 - yyj4201++ - if yyhl4201 { - yyb4201 = yyj4201 > l + var yyj4284 int + var yyb4284 bool + var yyhl4284 bool = l >= 0 + yyj4284++ + if yyhl4284 { + yyb4284 = yyj4284 > l } else { - yyb4201 = r.CheckBreak() + yyb4284 = r.CheckBreak() } - if yyb4201 { + if yyb4284 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -52484,13 +53564,13 @@ func (x *ResourceQuotaList) codecDecodeSelfFromArray(l int, d *codec1978.Decoder } else { x.Kind = string(r.DecodeString()) } - yyj4201++ - if yyhl4201 { - yyb4201 = yyj4201 > l + yyj4284++ + if yyhl4284 { + yyb4284 = yyj4284 > l } else { - yyb4201 = r.CheckBreak() + yyb4284 = r.CheckBreak() } - if yyb4201 { + if yyb4284 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -52500,13 +53580,13 @@ func (x *ResourceQuotaList) codecDecodeSelfFromArray(l int, d *codec1978.Decoder } else { x.APIVersion = string(r.DecodeString()) } - yyj4201++ - if yyhl4201 { - yyb4201 = yyj4201 > l + yyj4284++ + if yyhl4284 { + yyb4284 = yyj4284 > l } else { - yyb4201 = r.CheckBreak() + yyb4284 = r.CheckBreak() } - if yyb4201 { + if yyb4284 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -52514,22 +53594,22 @@ func (x *ResourceQuotaList) codecDecodeSelfFromArray(l int, d *codec1978.Decoder if r.TryDecodeAsNil() { x.ListMeta = pkg2_unversioned.ListMeta{} } else { - yyv4204 := &x.ListMeta - yym4205 := z.DecBinary() - _ = yym4205 + yyv4287 := &x.ListMeta + yym4288 := z.DecBinary() + _ = yym4288 if false { - } else if z.HasExtensions() && z.DecExt(yyv4204) { + } else if z.HasExtensions() && z.DecExt(yyv4287) { } else { - z.DecFallback(yyv4204, false) + z.DecFallback(yyv4287, false) } } - yyj4201++ - if yyhl4201 { - yyb4201 = yyj4201 > l + yyj4284++ + if yyhl4284 { + yyb4284 = yyj4284 > l } else { - yyb4201 = r.CheckBreak() + yyb4284 = r.CheckBreak() } - if yyb4201 { + if yyb4284 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -52537,26 +53617,26 @@ func (x *ResourceQuotaList) codecDecodeSelfFromArray(l int, d *codec1978.Decoder if r.TryDecodeAsNil() { x.Items = nil } else { - yyv4206 := &x.Items - yym4207 := z.DecBinary() - _ = yym4207 + yyv4289 := &x.Items + yym4290 := z.DecBinary() + _ = yym4290 if false { } else { - h.decSliceResourceQuota((*[]ResourceQuota)(yyv4206), d) + h.decSliceResourceQuota((*[]ResourceQuota)(yyv4289), d) } } for { - yyj4201++ - if yyhl4201 { - yyb4201 = yyj4201 > l + yyj4284++ + if yyhl4284 { + yyb4284 = yyj4284 > l } else { - yyb4201 = r.CheckBreak() + yyb4284 = r.CheckBreak() } - if yyb4201 { + if yyb4284 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj4201-1, "") + z.DecStructFieldNotFound(yyj4284-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -52568,39 +53648,39 @@ func (x *Secret) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym4208 := z.EncBinary() - _ = yym4208 + yym4291 := z.EncBinary() + _ = yym4291 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - 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 { + yysep4292 := !z.EncBinary() + yy2arr4292 := z.EncBasicHandle().StructToArray + var yyq4292 [5]bool + _, _, _ = yysep4292, yyq4292, yy2arr4292 + const yyr4292 bool = false + yyq4292[0] = x.Kind != "" + yyq4292[1] = x.APIVersion != "" + yyq4292[2] = true + yyq4292[3] = len(x.Data) != 0 + yyq4292[4] = x.Type != "" + var yynn4292 int + if yyr4292 || yy2arr4292 { r.EncodeArrayStart(5) } else { - yynn4209 = 0 - for _, b := range yyq4209 { + yynn4292 = 0 + for _, b := range yyq4292 { if b { - yynn4209++ + yynn4292++ } } - r.EncodeMapStart(yynn4209) - yynn4209 = 0 + r.EncodeMapStart(yynn4292) + yynn4292 = 0 } - if yyr4209 || yy2arr4209 { + if yyr4292 || yy2arr4292 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq4209[0] { - yym4211 := z.EncBinary() - _ = yym4211 + if yyq4292[0] { + yym4294 := z.EncBinary() + _ = yym4294 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) @@ -52609,23 +53689,23 @@ func (x *Secret) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq4209[0] { + if yyq4292[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym4212 := z.EncBinary() - _ = yym4212 + yym4295 := z.EncBinary() + _ = yym4295 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } - if yyr4209 || yy2arr4209 { + if yyr4292 || yy2arr4292 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq4209[1] { - yym4214 := z.EncBinary() - _ = yym4214 + if yyq4292[1] { + yym4297 := z.EncBinary() + _ = yym4297 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) @@ -52634,43 +53714,43 @@ func (x *Secret) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq4209[1] { + if yyq4292[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym4215 := z.EncBinary() - _ = yym4215 + yym4298 := z.EncBinary() + _ = yym4298 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } - if yyr4209 || yy2arr4209 { + if yyr4292 || yy2arr4292 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq4209[2] { - yy4217 := &x.ObjectMeta - yy4217.CodecEncodeSelf(e) + if yyq4292[2] { + yy4300 := &x.ObjectMeta + yy4300.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { - if yyq4209[2] { + if yyq4292[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy4218 := &x.ObjectMeta - yy4218.CodecEncodeSelf(e) + yy4301 := &x.ObjectMeta + yy4301.CodecEncodeSelf(e) } } - if yyr4209 || yy2arr4209 { + if yyr4292 || yy2arr4292 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq4209[3] { + if yyq4292[3] { if x.Data == nil { r.EncodeNil() } else { - yym4220 := z.EncBinary() - _ = yym4220 + yym4303 := z.EncBinary() + _ = yym4303 if false { } else { h.encMapstringSliceuint8((map[string][]uint8)(x.Data), e) @@ -52680,15 +53760,15 @@ func (x *Secret) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq4209[3] { + if yyq4292[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("data")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.Data == nil { r.EncodeNil() } else { - yym4221 := z.EncBinary() - _ = yym4221 + yym4304 := z.EncBinary() + _ = yym4304 if false { } else { h.encMapstringSliceuint8((map[string][]uint8)(x.Data), e) @@ -52696,22 +53776,22 @@ func (x *Secret) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr4209 || yy2arr4209 { + if yyr4292 || yy2arr4292 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq4209[4] { + if yyq4292[4] { x.Type.CodecEncodeSelf(e) } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq4209[4] { + if yyq4292[4] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("type")) z.EncSendContainerState(codecSelfer_containerMapValue1234) x.Type.CodecEncodeSelf(e) } } - if yyr4209 || yy2arr4209 { + if yyr4292 || yy2arr4292 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -52724,25 +53804,25 @@ func (x *Secret) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym4223 := z.DecBinary() - _ = yym4223 + yym4306 := z.DecBinary() + _ = yym4306 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct4224 := r.ContainerType() - if yyct4224 == codecSelferValueTypeMap1234 { - yyl4224 := r.ReadMapStart() - if yyl4224 == 0 { + yyct4307 := r.ContainerType() + if yyct4307 == codecSelferValueTypeMap1234 { + yyl4307 := r.ReadMapStart() + if yyl4307 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl4224, d) + x.codecDecodeSelfFromMap(yyl4307, d) } - } else if yyct4224 == codecSelferValueTypeArray1234 { - yyl4224 := r.ReadArrayStart() - if yyl4224 == 0 { + } else if yyct4307 == codecSelferValueTypeArray1234 { + yyl4307 := r.ReadArrayStart() + if yyl4307 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl4224, d) + x.codecDecodeSelfFromArray(yyl4307, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -52754,12 +53834,12 @@ func (x *Secret) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys4225Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys4225Slc - var yyhl4225 bool = l >= 0 - for yyj4225 := 0; ; yyj4225++ { - if yyhl4225 { - if yyj4225 >= l { + var yys4308Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys4308Slc + var yyhl4308 bool = l >= 0 + for yyj4308 := 0; ; yyj4308++ { + if yyhl4308 { + if yyj4308 >= l { break } } else { @@ -52768,10 +53848,10 @@ func (x *Secret) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys4225Slc = r.DecodeBytes(yys4225Slc, true, true) - yys4225 := string(yys4225Slc) + yys4308Slc = r.DecodeBytes(yys4308Slc, true, true) + yys4308 := string(yys4308Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys4225 { + switch yys4308 { case "kind": if r.TryDecodeAsNil() { x.Kind = "" @@ -52788,19 +53868,19 @@ func (x *Secret) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.ObjectMeta = ObjectMeta{} } else { - yyv4228 := &x.ObjectMeta - yyv4228.CodecDecodeSelf(d) + yyv4311 := &x.ObjectMeta + yyv4311.CodecDecodeSelf(d) } case "data": if r.TryDecodeAsNil() { x.Data = nil } else { - yyv4229 := &x.Data - yym4230 := z.DecBinary() - _ = yym4230 + yyv4312 := &x.Data + yym4313 := z.DecBinary() + _ = yym4313 if false { } else { - h.decMapstringSliceuint8((*map[string][]uint8)(yyv4229), d) + h.decMapstringSliceuint8((*map[string][]uint8)(yyv4312), d) } } case "type": @@ -52810,9 +53890,9 @@ func (x *Secret) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { x.Type = SecretType(r.DecodeString()) } default: - z.DecStructFieldNotFound(-1, yys4225) - } // end switch yys4225 - } // end for yyj4225 + z.DecStructFieldNotFound(-1, yys4308) + } // end switch yys4308 + } // end for yyj4308 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -52820,16 +53900,16 @@ func (x *Secret) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj4232 int - var yyb4232 bool - var yyhl4232 bool = l >= 0 - yyj4232++ - if yyhl4232 { - yyb4232 = yyj4232 > l + var yyj4315 int + var yyb4315 bool + var yyhl4315 bool = l >= 0 + yyj4315++ + if yyhl4315 { + yyb4315 = yyj4315 > l } else { - yyb4232 = r.CheckBreak() + yyb4315 = r.CheckBreak() } - if yyb4232 { + if yyb4315 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -52839,13 +53919,13 @@ func (x *Secret) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.Kind = string(r.DecodeString()) } - yyj4232++ - if yyhl4232 { - yyb4232 = yyj4232 > l + yyj4315++ + if yyhl4315 { + yyb4315 = yyj4315 > l } else { - yyb4232 = r.CheckBreak() + yyb4315 = r.CheckBreak() } - if yyb4232 { + if yyb4315 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -52855,13 +53935,13 @@ func (x *Secret) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.APIVersion = string(r.DecodeString()) } - yyj4232++ - if yyhl4232 { - yyb4232 = yyj4232 > l + yyj4315++ + if yyhl4315 { + yyb4315 = yyj4315 > l } else { - yyb4232 = r.CheckBreak() + yyb4315 = r.CheckBreak() } - if yyb4232 { + if yyb4315 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -52869,16 +53949,16 @@ func (x *Secret) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.ObjectMeta = ObjectMeta{} } else { - yyv4235 := &x.ObjectMeta - yyv4235.CodecDecodeSelf(d) + yyv4318 := &x.ObjectMeta + yyv4318.CodecDecodeSelf(d) } - yyj4232++ - if yyhl4232 { - yyb4232 = yyj4232 > l + yyj4315++ + if yyhl4315 { + yyb4315 = yyj4315 > l } else { - yyb4232 = r.CheckBreak() + yyb4315 = r.CheckBreak() } - if yyb4232 { + if yyb4315 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -52886,21 +53966,21 @@ func (x *Secret) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.Data = nil } else { - yyv4236 := &x.Data - yym4237 := z.DecBinary() - _ = yym4237 + yyv4319 := &x.Data + yym4320 := z.DecBinary() + _ = yym4320 if false { } else { - h.decMapstringSliceuint8((*map[string][]uint8)(yyv4236), d) + h.decMapstringSliceuint8((*map[string][]uint8)(yyv4319), d) } } - yyj4232++ - if yyhl4232 { - yyb4232 = yyj4232 > l + yyj4315++ + if yyhl4315 { + yyb4315 = yyj4315 > l } else { - yyb4232 = r.CheckBreak() + yyb4315 = r.CheckBreak() } - if yyb4232 { + if yyb4315 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -52911,17 +53991,17 @@ func (x *Secret) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { x.Type = SecretType(r.DecodeString()) } for { - yyj4232++ - if yyhl4232 { - yyb4232 = yyj4232 > l + yyj4315++ + if yyhl4315 { + yyb4315 = yyj4315 > l } else { - yyb4232 = r.CheckBreak() + yyb4315 = r.CheckBreak() } - if yyb4232 { + if yyb4315 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj4232-1, "") + z.DecStructFieldNotFound(yyj4315-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -52930,8 +54010,8 @@ func (x SecretType) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r - yym4239 := z.EncBinary() - _ = yym4239 + yym4322 := z.EncBinary() + _ = yym4322 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { @@ -52943,8 +54023,8 @@ func (x *SecretType) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym4240 := z.DecBinary() - _ = yym4240 + yym4323 := z.DecBinary() + _ = yym4323 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { @@ -52959,37 +54039,37 @@ func (x *SecretList) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym4241 := z.EncBinary() - _ = yym4241 + yym4324 := z.EncBinary() + _ = yym4324 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - 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 { + yysep4325 := !z.EncBinary() + yy2arr4325 := z.EncBasicHandle().StructToArray + var yyq4325 [4]bool + _, _, _ = yysep4325, yyq4325, yy2arr4325 + const yyr4325 bool = false + yyq4325[0] = x.Kind != "" + yyq4325[1] = x.APIVersion != "" + yyq4325[2] = true + var yynn4325 int + if yyr4325 || yy2arr4325 { r.EncodeArrayStart(4) } else { - yynn4242 = 1 - for _, b := range yyq4242 { + yynn4325 = 1 + for _, b := range yyq4325 { if b { - yynn4242++ + yynn4325++ } } - r.EncodeMapStart(yynn4242) - yynn4242 = 0 + r.EncodeMapStart(yynn4325) + yynn4325 = 0 } - if yyr4242 || yy2arr4242 { + if yyr4325 || yy2arr4325 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq4242[0] { - yym4244 := z.EncBinary() - _ = yym4244 + if yyq4325[0] { + yym4327 := z.EncBinary() + _ = yym4327 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) @@ -52998,23 +54078,23 @@ func (x *SecretList) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq4242[0] { + if yyq4325[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym4245 := z.EncBinary() - _ = yym4245 + yym4328 := z.EncBinary() + _ = yym4328 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } - if yyr4242 || yy2arr4242 { + if yyr4325 || yy2arr4325 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq4242[1] { - yym4247 := z.EncBinary() - _ = yym4247 + if yyq4325[1] { + yym4330 := z.EncBinary() + _ = yym4330 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) @@ -53023,54 +54103,54 @@ func (x *SecretList) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq4242[1] { + if yyq4325[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym4248 := z.EncBinary() - _ = yym4248 + yym4331 := z.EncBinary() + _ = yym4331 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } - if yyr4242 || yy2arr4242 { + if yyr4325 || yy2arr4325 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq4242[2] { - yy4250 := &x.ListMeta - yym4251 := z.EncBinary() - _ = yym4251 + if yyq4325[2] { + yy4333 := &x.ListMeta + yym4334 := z.EncBinary() + _ = yym4334 if false { - } else if z.HasExtensions() && z.EncExt(yy4250) { + } else if z.HasExtensions() && z.EncExt(yy4333) { } else { - z.EncFallback(yy4250) + z.EncFallback(yy4333) } } else { r.EncodeNil() } } else { - if yyq4242[2] { + if yyq4325[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy4252 := &x.ListMeta - yym4253 := z.EncBinary() - _ = yym4253 + yy4335 := &x.ListMeta + yym4336 := z.EncBinary() + _ = yym4336 if false { - } else if z.HasExtensions() && z.EncExt(yy4252) { + } else if z.HasExtensions() && z.EncExt(yy4335) { } else { - z.EncFallback(yy4252) + z.EncFallback(yy4335) } } } - if yyr4242 || yy2arr4242 { + if yyr4325 || yy2arr4325 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.Items == nil { r.EncodeNil() } else { - yym4255 := z.EncBinary() - _ = yym4255 + yym4338 := z.EncBinary() + _ = yym4338 if false { } else { h.encSliceSecret(([]Secret)(x.Items), e) @@ -53083,15 +54163,15 @@ func (x *SecretList) CodecEncodeSelf(e *codec1978.Encoder) { if x.Items == nil { r.EncodeNil() } else { - yym4256 := z.EncBinary() - _ = yym4256 + yym4339 := z.EncBinary() + _ = yym4339 if false { } else { h.encSliceSecret(([]Secret)(x.Items), e) } } } - if yyr4242 || yy2arr4242 { + if yyr4325 || yy2arr4325 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -53104,25 +54184,25 @@ func (x *SecretList) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym4257 := z.DecBinary() - _ = yym4257 + yym4340 := z.DecBinary() + _ = yym4340 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct4258 := r.ContainerType() - if yyct4258 == codecSelferValueTypeMap1234 { - yyl4258 := r.ReadMapStart() - if yyl4258 == 0 { + yyct4341 := r.ContainerType() + if yyct4341 == codecSelferValueTypeMap1234 { + yyl4341 := r.ReadMapStart() + if yyl4341 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl4258, d) + x.codecDecodeSelfFromMap(yyl4341, d) } - } else if yyct4258 == codecSelferValueTypeArray1234 { - yyl4258 := r.ReadArrayStart() - if yyl4258 == 0 { + } else if yyct4341 == codecSelferValueTypeArray1234 { + yyl4341 := r.ReadArrayStart() + if yyl4341 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl4258, d) + x.codecDecodeSelfFromArray(yyl4341, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -53134,12 +54214,12 @@ func (x *SecretList) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys4259Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys4259Slc - var yyhl4259 bool = l >= 0 - for yyj4259 := 0; ; yyj4259++ { - if yyhl4259 { - if yyj4259 >= l { + var yys4342Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys4342Slc + var yyhl4342 bool = l >= 0 + for yyj4342 := 0; ; yyj4342++ { + if yyhl4342 { + if yyj4342 >= l { break } } else { @@ -53148,10 +54228,10 @@ func (x *SecretList) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys4259Slc = r.DecodeBytes(yys4259Slc, true, true) - yys4259 := string(yys4259Slc) + yys4342Slc = r.DecodeBytes(yys4342Slc, true, true) + yys4342 := string(yys4342Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys4259 { + switch yys4342 { case "kind": if r.TryDecodeAsNil() { x.Kind = "" @@ -53168,31 +54248,31 @@ func (x *SecretList) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.ListMeta = pkg2_unversioned.ListMeta{} } else { - yyv4262 := &x.ListMeta - yym4263 := z.DecBinary() - _ = yym4263 + yyv4345 := &x.ListMeta + yym4346 := z.DecBinary() + _ = yym4346 if false { - } else if z.HasExtensions() && z.DecExt(yyv4262) { + } else if z.HasExtensions() && z.DecExt(yyv4345) { } else { - z.DecFallback(yyv4262, false) + z.DecFallback(yyv4345, false) } } case "items": if r.TryDecodeAsNil() { x.Items = nil } else { - yyv4264 := &x.Items - yym4265 := z.DecBinary() - _ = yym4265 + yyv4347 := &x.Items + yym4348 := z.DecBinary() + _ = yym4348 if false { } else { - h.decSliceSecret((*[]Secret)(yyv4264), d) + h.decSliceSecret((*[]Secret)(yyv4347), d) } } default: - z.DecStructFieldNotFound(-1, yys4259) - } // end switch yys4259 - } // end for yyj4259 + z.DecStructFieldNotFound(-1, yys4342) + } // end switch yys4342 + } // end for yyj4342 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -53200,16 +54280,16 @@ func (x *SecretList) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj4266 int - var yyb4266 bool - var yyhl4266 bool = l >= 0 - yyj4266++ - if yyhl4266 { - yyb4266 = yyj4266 > l + var yyj4349 int + var yyb4349 bool + var yyhl4349 bool = l >= 0 + yyj4349++ + if yyhl4349 { + yyb4349 = yyj4349 > l } else { - yyb4266 = r.CheckBreak() + yyb4349 = r.CheckBreak() } - if yyb4266 { + if yyb4349 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -53219,13 +54299,13 @@ func (x *SecretList) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.Kind = string(r.DecodeString()) } - yyj4266++ - if yyhl4266 { - yyb4266 = yyj4266 > l + yyj4349++ + if yyhl4349 { + yyb4349 = yyj4349 > l } else { - yyb4266 = r.CheckBreak() + yyb4349 = r.CheckBreak() } - if yyb4266 { + if yyb4349 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -53235,13 +54315,13 @@ func (x *SecretList) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.APIVersion = string(r.DecodeString()) } - yyj4266++ - if yyhl4266 { - yyb4266 = yyj4266 > l + yyj4349++ + if yyhl4349 { + yyb4349 = yyj4349 > l } else { - yyb4266 = r.CheckBreak() + yyb4349 = r.CheckBreak() } - if yyb4266 { + if yyb4349 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -53249,22 +54329,22 @@ func (x *SecretList) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.ListMeta = pkg2_unversioned.ListMeta{} } else { - yyv4269 := &x.ListMeta - yym4270 := z.DecBinary() - _ = yym4270 + yyv4352 := &x.ListMeta + yym4353 := z.DecBinary() + _ = yym4353 if false { - } else if z.HasExtensions() && z.DecExt(yyv4269) { + } else if z.HasExtensions() && z.DecExt(yyv4352) { } else { - z.DecFallback(yyv4269, false) + z.DecFallback(yyv4352, false) } } - yyj4266++ - if yyhl4266 { - yyb4266 = yyj4266 > l + yyj4349++ + if yyhl4349 { + yyb4349 = yyj4349 > l } else { - yyb4266 = r.CheckBreak() + yyb4349 = r.CheckBreak() } - if yyb4266 { + if yyb4349 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -53272,26 +54352,26 @@ func (x *SecretList) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.Items = nil } else { - yyv4271 := &x.Items - yym4272 := z.DecBinary() - _ = yym4272 + yyv4354 := &x.Items + yym4355 := z.DecBinary() + _ = yym4355 if false { } else { - h.decSliceSecret((*[]Secret)(yyv4271), d) + h.decSliceSecret((*[]Secret)(yyv4354), d) } } for { - yyj4266++ - if yyhl4266 { - yyb4266 = yyj4266 > l + yyj4349++ + if yyhl4349 { + yyb4349 = yyj4349 > l } else { - yyb4266 = r.CheckBreak() + yyb4349 = r.CheckBreak() } - if yyb4266 { + if yyb4349 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj4266-1, "") + z.DecStructFieldNotFound(yyj4349-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -53303,38 +54383,38 @@ func (x *ConfigMap) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym4273 := z.EncBinary() - _ = yym4273 + yym4356 := z.EncBinary() + _ = yym4356 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - 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 { + yysep4357 := !z.EncBinary() + yy2arr4357 := z.EncBasicHandle().StructToArray + var yyq4357 [4]bool + _, _, _ = yysep4357, yyq4357, yy2arr4357 + const yyr4357 bool = false + yyq4357[0] = x.Kind != "" + yyq4357[1] = x.APIVersion != "" + yyq4357[2] = true + yyq4357[3] = len(x.Data) != 0 + var yynn4357 int + if yyr4357 || yy2arr4357 { r.EncodeArrayStart(4) } else { - yynn4274 = 0 - for _, b := range yyq4274 { + yynn4357 = 0 + for _, b := range yyq4357 { if b { - yynn4274++ + yynn4357++ } } - r.EncodeMapStart(yynn4274) - yynn4274 = 0 + r.EncodeMapStart(yynn4357) + yynn4357 = 0 } - if yyr4274 || yy2arr4274 { + if yyr4357 || yy2arr4357 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq4274[0] { - yym4276 := z.EncBinary() - _ = yym4276 + if yyq4357[0] { + yym4359 := z.EncBinary() + _ = yym4359 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) @@ -53343,23 +54423,23 @@ func (x *ConfigMap) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq4274[0] { + if yyq4357[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym4277 := z.EncBinary() - _ = yym4277 + yym4360 := z.EncBinary() + _ = yym4360 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } - if yyr4274 || yy2arr4274 { + if yyr4357 || yy2arr4357 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq4274[1] { - yym4279 := z.EncBinary() - _ = yym4279 + if yyq4357[1] { + yym4362 := z.EncBinary() + _ = yym4362 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) @@ -53368,43 +54448,43 @@ func (x *ConfigMap) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq4274[1] { + if yyq4357[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym4280 := z.EncBinary() - _ = yym4280 + yym4363 := z.EncBinary() + _ = yym4363 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } - if yyr4274 || yy2arr4274 { + if yyr4357 || yy2arr4357 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq4274[2] { - yy4282 := &x.ObjectMeta - yy4282.CodecEncodeSelf(e) + if yyq4357[2] { + yy4365 := &x.ObjectMeta + yy4365.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { - if yyq4274[2] { + if yyq4357[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy4283 := &x.ObjectMeta - yy4283.CodecEncodeSelf(e) + yy4366 := &x.ObjectMeta + yy4366.CodecEncodeSelf(e) } } - if yyr4274 || yy2arr4274 { + if yyr4357 || yy2arr4357 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq4274[3] { + if yyq4357[3] { if x.Data == nil { r.EncodeNil() } else { - yym4285 := z.EncBinary() - _ = yym4285 + yym4368 := z.EncBinary() + _ = yym4368 if false { } else { z.F.EncMapStringStringV(x.Data, false, e) @@ -53414,15 +54494,15 @@ func (x *ConfigMap) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq4274[3] { + if yyq4357[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("data")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.Data == nil { r.EncodeNil() } else { - yym4286 := z.EncBinary() - _ = yym4286 + yym4369 := z.EncBinary() + _ = yym4369 if false { } else { z.F.EncMapStringStringV(x.Data, false, e) @@ -53430,7 +54510,7 @@ func (x *ConfigMap) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr4274 || yy2arr4274 { + if yyr4357 || yy2arr4357 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -53443,25 +54523,25 @@ func (x *ConfigMap) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym4287 := z.DecBinary() - _ = yym4287 + yym4370 := z.DecBinary() + _ = yym4370 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct4288 := r.ContainerType() - if yyct4288 == codecSelferValueTypeMap1234 { - yyl4288 := r.ReadMapStart() - if yyl4288 == 0 { + yyct4371 := r.ContainerType() + if yyct4371 == codecSelferValueTypeMap1234 { + yyl4371 := r.ReadMapStart() + if yyl4371 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl4288, d) + x.codecDecodeSelfFromMap(yyl4371, d) } - } else if yyct4288 == codecSelferValueTypeArray1234 { - yyl4288 := r.ReadArrayStart() - if yyl4288 == 0 { + } else if yyct4371 == codecSelferValueTypeArray1234 { + yyl4371 := r.ReadArrayStart() + if yyl4371 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl4288, d) + x.codecDecodeSelfFromArray(yyl4371, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -53473,12 +54553,12 @@ func (x *ConfigMap) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys4289Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys4289Slc - var yyhl4289 bool = l >= 0 - for yyj4289 := 0; ; yyj4289++ { - if yyhl4289 { - if yyj4289 >= l { + var yys4372Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys4372Slc + var yyhl4372 bool = l >= 0 + for yyj4372 := 0; ; yyj4372++ { + if yyhl4372 { + if yyj4372 >= l { break } } else { @@ -53487,10 +54567,10 @@ func (x *ConfigMap) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys4289Slc = r.DecodeBytes(yys4289Slc, true, true) - yys4289 := string(yys4289Slc) + yys4372Slc = r.DecodeBytes(yys4372Slc, true, true) + yys4372 := string(yys4372Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys4289 { + switch yys4372 { case "kind": if r.TryDecodeAsNil() { x.Kind = "" @@ -53507,25 +54587,25 @@ func (x *ConfigMap) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.ObjectMeta = ObjectMeta{} } else { - yyv4292 := &x.ObjectMeta - yyv4292.CodecDecodeSelf(d) + yyv4375 := &x.ObjectMeta + yyv4375.CodecDecodeSelf(d) } case "data": if r.TryDecodeAsNil() { x.Data = nil } else { - yyv4293 := &x.Data - yym4294 := z.DecBinary() - _ = yym4294 + yyv4376 := &x.Data + yym4377 := z.DecBinary() + _ = yym4377 if false { } else { - z.F.DecMapStringStringX(yyv4293, false, d) + z.F.DecMapStringStringX(yyv4376, false, d) } } default: - z.DecStructFieldNotFound(-1, yys4289) - } // end switch yys4289 - } // end for yyj4289 + z.DecStructFieldNotFound(-1, yys4372) + } // end switch yys4372 + } // end for yyj4372 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -53533,16 +54613,16 @@ func (x *ConfigMap) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj4295 int - var yyb4295 bool - var yyhl4295 bool = l >= 0 - yyj4295++ - if yyhl4295 { - yyb4295 = yyj4295 > l + var yyj4378 int + var yyb4378 bool + var yyhl4378 bool = l >= 0 + yyj4378++ + if yyhl4378 { + yyb4378 = yyj4378 > l } else { - yyb4295 = r.CheckBreak() + yyb4378 = r.CheckBreak() } - if yyb4295 { + if yyb4378 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -53552,13 +54632,13 @@ func (x *ConfigMap) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.Kind = string(r.DecodeString()) } - yyj4295++ - if yyhl4295 { - yyb4295 = yyj4295 > l + yyj4378++ + if yyhl4378 { + yyb4378 = yyj4378 > l } else { - yyb4295 = r.CheckBreak() + yyb4378 = r.CheckBreak() } - if yyb4295 { + if yyb4378 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -53568,13 +54648,13 @@ func (x *ConfigMap) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.APIVersion = string(r.DecodeString()) } - yyj4295++ - if yyhl4295 { - yyb4295 = yyj4295 > l + yyj4378++ + if yyhl4378 { + yyb4378 = yyj4378 > l } else { - yyb4295 = r.CheckBreak() + yyb4378 = r.CheckBreak() } - if yyb4295 { + if yyb4378 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -53582,16 +54662,16 @@ func (x *ConfigMap) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.ObjectMeta = ObjectMeta{} } else { - yyv4298 := &x.ObjectMeta - yyv4298.CodecDecodeSelf(d) + yyv4381 := &x.ObjectMeta + yyv4381.CodecDecodeSelf(d) } - yyj4295++ - if yyhl4295 { - yyb4295 = yyj4295 > l + yyj4378++ + if yyhl4378 { + yyb4378 = yyj4378 > l } else { - yyb4295 = r.CheckBreak() + yyb4378 = r.CheckBreak() } - if yyb4295 { + if yyb4378 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -53599,26 +54679,26 @@ func (x *ConfigMap) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.Data = nil } else { - yyv4299 := &x.Data - yym4300 := z.DecBinary() - _ = yym4300 + yyv4382 := &x.Data + yym4383 := z.DecBinary() + _ = yym4383 if false { } else { - z.F.DecMapStringStringX(yyv4299, false, d) + z.F.DecMapStringStringX(yyv4382, false, d) } } for { - yyj4295++ - if yyhl4295 { - yyb4295 = yyj4295 > l + yyj4378++ + if yyhl4378 { + yyb4378 = yyj4378 > l } else { - yyb4295 = r.CheckBreak() + yyb4378 = r.CheckBreak() } - if yyb4295 { + if yyb4378 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj4295-1, "") + z.DecStructFieldNotFound(yyj4378-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -53630,37 +54710,37 @@ func (x *ConfigMapList) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym4301 := z.EncBinary() - _ = yym4301 + yym4384 := z.EncBinary() + _ = yym4384 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - 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 { + yysep4385 := !z.EncBinary() + yy2arr4385 := z.EncBasicHandle().StructToArray + var yyq4385 [4]bool + _, _, _ = yysep4385, yyq4385, yy2arr4385 + const yyr4385 bool = false + yyq4385[0] = x.Kind != "" + yyq4385[1] = x.APIVersion != "" + yyq4385[2] = true + var yynn4385 int + if yyr4385 || yy2arr4385 { r.EncodeArrayStart(4) } else { - yynn4302 = 1 - for _, b := range yyq4302 { + yynn4385 = 1 + for _, b := range yyq4385 { if b { - yynn4302++ + yynn4385++ } } - r.EncodeMapStart(yynn4302) - yynn4302 = 0 + r.EncodeMapStart(yynn4385) + yynn4385 = 0 } - if yyr4302 || yy2arr4302 { + if yyr4385 || yy2arr4385 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq4302[0] { - yym4304 := z.EncBinary() - _ = yym4304 + if yyq4385[0] { + yym4387 := z.EncBinary() + _ = yym4387 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) @@ -53669,23 +54749,23 @@ func (x *ConfigMapList) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq4302[0] { + if yyq4385[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym4305 := z.EncBinary() - _ = yym4305 + yym4388 := z.EncBinary() + _ = yym4388 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } - if yyr4302 || yy2arr4302 { + if yyr4385 || yy2arr4385 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq4302[1] { - yym4307 := z.EncBinary() - _ = yym4307 + if yyq4385[1] { + yym4390 := z.EncBinary() + _ = yym4390 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) @@ -53694,54 +54774,54 @@ func (x *ConfigMapList) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq4302[1] { + if yyq4385[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym4308 := z.EncBinary() - _ = yym4308 + yym4391 := z.EncBinary() + _ = yym4391 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } - if yyr4302 || yy2arr4302 { + if yyr4385 || yy2arr4385 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq4302[2] { - yy4310 := &x.ListMeta - yym4311 := z.EncBinary() - _ = yym4311 + if yyq4385[2] { + yy4393 := &x.ListMeta + yym4394 := z.EncBinary() + _ = yym4394 if false { - } else if z.HasExtensions() && z.EncExt(yy4310) { + } else if z.HasExtensions() && z.EncExt(yy4393) { } else { - z.EncFallback(yy4310) + z.EncFallback(yy4393) } } else { r.EncodeNil() } } else { - if yyq4302[2] { + if yyq4385[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy4312 := &x.ListMeta - yym4313 := z.EncBinary() - _ = yym4313 + yy4395 := &x.ListMeta + yym4396 := z.EncBinary() + _ = yym4396 if false { - } else if z.HasExtensions() && z.EncExt(yy4312) { + } else if z.HasExtensions() && z.EncExt(yy4395) { } else { - z.EncFallback(yy4312) + z.EncFallback(yy4395) } } } - if yyr4302 || yy2arr4302 { + if yyr4385 || yy2arr4385 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.Items == nil { r.EncodeNil() } else { - yym4315 := z.EncBinary() - _ = yym4315 + yym4398 := z.EncBinary() + _ = yym4398 if false { } else { h.encSliceConfigMap(([]ConfigMap)(x.Items), e) @@ -53754,15 +54834,15 @@ func (x *ConfigMapList) CodecEncodeSelf(e *codec1978.Encoder) { if x.Items == nil { r.EncodeNil() } else { - yym4316 := z.EncBinary() - _ = yym4316 + yym4399 := z.EncBinary() + _ = yym4399 if false { } else { h.encSliceConfigMap(([]ConfigMap)(x.Items), e) } } } - if yyr4302 || yy2arr4302 { + if yyr4385 || yy2arr4385 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -53775,25 +54855,25 @@ func (x *ConfigMapList) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym4317 := z.DecBinary() - _ = yym4317 + yym4400 := z.DecBinary() + _ = yym4400 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct4318 := r.ContainerType() - if yyct4318 == codecSelferValueTypeMap1234 { - yyl4318 := r.ReadMapStart() - if yyl4318 == 0 { + yyct4401 := r.ContainerType() + if yyct4401 == codecSelferValueTypeMap1234 { + yyl4401 := r.ReadMapStart() + if yyl4401 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl4318, d) + x.codecDecodeSelfFromMap(yyl4401, d) } - } else if yyct4318 == codecSelferValueTypeArray1234 { - yyl4318 := r.ReadArrayStart() - if yyl4318 == 0 { + } else if yyct4401 == codecSelferValueTypeArray1234 { + yyl4401 := r.ReadArrayStart() + if yyl4401 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl4318, d) + x.codecDecodeSelfFromArray(yyl4401, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -53805,12 +54885,12 @@ func (x *ConfigMapList) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys4319Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys4319Slc - var yyhl4319 bool = l >= 0 - for yyj4319 := 0; ; yyj4319++ { - if yyhl4319 { - if yyj4319 >= l { + var yys4402Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys4402Slc + var yyhl4402 bool = l >= 0 + for yyj4402 := 0; ; yyj4402++ { + if yyhl4402 { + if yyj4402 >= l { break } } else { @@ -53819,10 +54899,10 @@ func (x *ConfigMapList) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys4319Slc = r.DecodeBytes(yys4319Slc, true, true) - yys4319 := string(yys4319Slc) + yys4402Slc = r.DecodeBytes(yys4402Slc, true, true) + yys4402 := string(yys4402Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys4319 { + switch yys4402 { case "kind": if r.TryDecodeAsNil() { x.Kind = "" @@ -53839,31 +54919,31 @@ func (x *ConfigMapList) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.ListMeta = pkg2_unversioned.ListMeta{} } else { - yyv4322 := &x.ListMeta - yym4323 := z.DecBinary() - _ = yym4323 + yyv4405 := &x.ListMeta + yym4406 := z.DecBinary() + _ = yym4406 if false { - } else if z.HasExtensions() && z.DecExt(yyv4322) { + } else if z.HasExtensions() && z.DecExt(yyv4405) { } else { - z.DecFallback(yyv4322, false) + z.DecFallback(yyv4405, false) } } case "items": if r.TryDecodeAsNil() { x.Items = nil } else { - yyv4324 := &x.Items - yym4325 := z.DecBinary() - _ = yym4325 + yyv4407 := &x.Items + yym4408 := z.DecBinary() + _ = yym4408 if false { } else { - h.decSliceConfigMap((*[]ConfigMap)(yyv4324), d) + h.decSliceConfigMap((*[]ConfigMap)(yyv4407), d) } } default: - z.DecStructFieldNotFound(-1, yys4319) - } // end switch yys4319 - } // end for yyj4319 + z.DecStructFieldNotFound(-1, yys4402) + } // end switch yys4402 + } // end for yyj4402 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -53871,16 +54951,16 @@ func (x *ConfigMapList) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj4326 int - var yyb4326 bool - var yyhl4326 bool = l >= 0 - yyj4326++ - if yyhl4326 { - yyb4326 = yyj4326 > l + var yyj4409 int + var yyb4409 bool + var yyhl4409 bool = l >= 0 + yyj4409++ + if yyhl4409 { + yyb4409 = yyj4409 > l } else { - yyb4326 = r.CheckBreak() + yyb4409 = r.CheckBreak() } - if yyb4326 { + if yyb4409 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -53890,13 +54970,13 @@ func (x *ConfigMapList) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.Kind = string(r.DecodeString()) } - yyj4326++ - if yyhl4326 { - yyb4326 = yyj4326 > l + yyj4409++ + if yyhl4409 { + yyb4409 = yyj4409 > l } else { - yyb4326 = r.CheckBreak() + yyb4409 = r.CheckBreak() } - if yyb4326 { + if yyb4409 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -53906,13 +54986,13 @@ func (x *ConfigMapList) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.APIVersion = string(r.DecodeString()) } - yyj4326++ - if yyhl4326 { - yyb4326 = yyj4326 > l + yyj4409++ + if yyhl4409 { + yyb4409 = yyj4409 > l } else { - yyb4326 = r.CheckBreak() + yyb4409 = r.CheckBreak() } - if yyb4326 { + if yyb4409 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -53920,22 +55000,22 @@ func (x *ConfigMapList) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.ListMeta = pkg2_unversioned.ListMeta{} } else { - yyv4329 := &x.ListMeta - yym4330 := z.DecBinary() - _ = yym4330 + yyv4412 := &x.ListMeta + yym4413 := z.DecBinary() + _ = yym4413 if false { - } else if z.HasExtensions() && z.DecExt(yyv4329) { + } else if z.HasExtensions() && z.DecExt(yyv4412) { } else { - z.DecFallback(yyv4329, false) + z.DecFallback(yyv4412, false) } } - yyj4326++ - if yyhl4326 { - yyb4326 = yyj4326 > l + yyj4409++ + if yyhl4409 { + yyb4409 = yyj4409 > l } else { - yyb4326 = r.CheckBreak() + yyb4409 = r.CheckBreak() } - if yyb4326 { + if yyb4409 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -53943,26 +55023,26 @@ func (x *ConfigMapList) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.Items = nil } else { - yyv4331 := &x.Items - yym4332 := z.DecBinary() - _ = yym4332 + yyv4414 := &x.Items + yym4415 := z.DecBinary() + _ = yym4415 if false { } else { - h.decSliceConfigMap((*[]ConfigMap)(yyv4331), d) + h.decSliceConfigMap((*[]ConfigMap)(yyv4414), d) } } for { - yyj4326++ - if yyhl4326 { - yyb4326 = yyj4326 > l + yyj4409++ + if yyhl4409 { + yyb4409 = yyj4409 > l } else { - yyb4326 = r.CheckBreak() + yyb4409 = r.CheckBreak() } - if yyb4326 { + if yyb4409 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj4326-1, "") + z.DecStructFieldNotFound(yyj4409-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -53971,8 +55051,8 @@ func (x PatchType) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r - yym4333 := z.EncBinary() - _ = yym4333 + yym4416 := z.EncBinary() + _ = yym4416 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { @@ -53984,8 +55064,8 @@ func (x *PatchType) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym4334 := z.DecBinary() - _ = yym4334 + yym4417 := z.DecBinary() + _ = yym4417 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { @@ -53997,8 +55077,8 @@ func (x ComponentConditionType) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r - yym4335 := z.EncBinary() - _ = yym4335 + yym4418 := z.EncBinary() + _ = yym4418 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { @@ -54010,8 +55090,8 @@ func (x *ComponentConditionType) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym4336 := z.DecBinary() - _ = yym4336 + yym4419 := z.DecBinary() + _ = yym4419 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { @@ -54026,32 +55106,32 @@ func (x *ComponentCondition) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym4337 := z.EncBinary() - _ = yym4337 + yym4420 := z.EncBinary() + _ = yym4420 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - 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 { + yysep4421 := !z.EncBinary() + yy2arr4421 := z.EncBasicHandle().StructToArray + var yyq4421 [4]bool + _, _, _ = yysep4421, yyq4421, yy2arr4421 + const yyr4421 bool = false + yyq4421[2] = x.Message != "" + yyq4421[3] = x.Error != "" + var yynn4421 int + if yyr4421 || yy2arr4421 { r.EncodeArrayStart(4) } else { - yynn4338 = 2 - for _, b := range yyq4338 { + yynn4421 = 2 + for _, b := range yyq4421 { if b { - yynn4338++ + yynn4421++ } } - r.EncodeMapStart(yynn4338) - yynn4338 = 0 + r.EncodeMapStart(yynn4421) + yynn4421 = 0 } - if yyr4338 || yy2arr4338 { + if yyr4421 || yy2arr4421 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) x.Type.CodecEncodeSelf(e) } else { @@ -54060,7 +55140,7 @@ func (x *ComponentCondition) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapValue1234) x.Type.CodecEncodeSelf(e) } - if yyr4338 || yy2arr4338 { + if yyr4421 || yy2arr4421 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) x.Status.CodecEncodeSelf(e) } else { @@ -54069,11 +55149,11 @@ func (x *ComponentCondition) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapValue1234) x.Status.CodecEncodeSelf(e) } - if yyr4338 || yy2arr4338 { + if yyr4421 || yy2arr4421 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq4338[2] { - yym4342 := z.EncBinary() - _ = yym4342 + if yyq4421[2] { + yym4425 := z.EncBinary() + _ = yym4425 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Message)) @@ -54082,23 +55162,23 @@ func (x *ComponentCondition) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq4338[2] { + if yyq4421[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("message")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym4343 := z.EncBinary() - _ = yym4343 + yym4426 := z.EncBinary() + _ = yym4426 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Message)) } } } - if yyr4338 || yy2arr4338 { + if yyr4421 || yy2arr4421 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq4338[3] { - yym4345 := z.EncBinary() - _ = yym4345 + if yyq4421[3] { + yym4428 := z.EncBinary() + _ = yym4428 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Error)) @@ -54107,19 +55187,19 @@ func (x *ComponentCondition) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq4338[3] { + if yyq4421[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("error")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym4346 := z.EncBinary() - _ = yym4346 + yym4429 := z.EncBinary() + _ = yym4429 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Error)) } } } - if yyr4338 || yy2arr4338 { + if yyr4421 || yy2arr4421 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -54132,25 +55212,25 @@ func (x *ComponentCondition) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym4347 := z.DecBinary() - _ = yym4347 + yym4430 := z.DecBinary() + _ = yym4430 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct4348 := r.ContainerType() - if yyct4348 == codecSelferValueTypeMap1234 { - yyl4348 := r.ReadMapStart() - if yyl4348 == 0 { + yyct4431 := r.ContainerType() + if yyct4431 == codecSelferValueTypeMap1234 { + yyl4431 := r.ReadMapStart() + if yyl4431 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl4348, d) + x.codecDecodeSelfFromMap(yyl4431, d) } - } else if yyct4348 == codecSelferValueTypeArray1234 { - yyl4348 := r.ReadArrayStart() - if yyl4348 == 0 { + } else if yyct4431 == codecSelferValueTypeArray1234 { + yyl4431 := r.ReadArrayStart() + if yyl4431 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl4348, d) + x.codecDecodeSelfFromArray(yyl4431, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -54162,12 +55242,12 @@ func (x *ComponentCondition) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys4349Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys4349Slc - var yyhl4349 bool = l >= 0 - for yyj4349 := 0; ; yyj4349++ { - if yyhl4349 { - if yyj4349 >= l { + var yys4432Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys4432Slc + var yyhl4432 bool = l >= 0 + for yyj4432 := 0; ; yyj4432++ { + if yyhl4432 { + if yyj4432 >= l { break } } else { @@ -54176,10 +55256,10 @@ func (x *ComponentCondition) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys4349Slc = r.DecodeBytes(yys4349Slc, true, true) - yys4349 := string(yys4349Slc) + yys4432Slc = r.DecodeBytes(yys4432Slc, true, true) + yys4432 := string(yys4432Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys4349 { + switch yys4432 { case "type": if r.TryDecodeAsNil() { x.Type = "" @@ -54205,9 +55285,9 @@ func (x *ComponentCondition) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) x.Error = string(r.DecodeString()) } default: - z.DecStructFieldNotFound(-1, yys4349) - } // end switch yys4349 - } // end for yyj4349 + z.DecStructFieldNotFound(-1, yys4432) + } // end switch yys4432 + } // end for yyj4432 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -54215,16 +55295,16 @@ func (x *ComponentCondition) codecDecodeSelfFromArray(l int, d *codec1978.Decode var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj4354 int - var yyb4354 bool - var yyhl4354 bool = l >= 0 - yyj4354++ - if yyhl4354 { - yyb4354 = yyj4354 > l + var yyj4437 int + var yyb4437 bool + var yyhl4437 bool = l >= 0 + yyj4437++ + if yyhl4437 { + yyb4437 = yyj4437 > l } else { - yyb4354 = r.CheckBreak() + yyb4437 = r.CheckBreak() } - if yyb4354 { + if yyb4437 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -54234,13 +55314,13 @@ func (x *ComponentCondition) codecDecodeSelfFromArray(l int, d *codec1978.Decode } else { x.Type = ComponentConditionType(r.DecodeString()) } - yyj4354++ - if yyhl4354 { - yyb4354 = yyj4354 > l + yyj4437++ + if yyhl4437 { + yyb4437 = yyj4437 > l } else { - yyb4354 = r.CheckBreak() + yyb4437 = r.CheckBreak() } - if yyb4354 { + if yyb4437 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -54250,13 +55330,13 @@ func (x *ComponentCondition) codecDecodeSelfFromArray(l int, d *codec1978.Decode } else { x.Status = ConditionStatus(r.DecodeString()) } - yyj4354++ - if yyhl4354 { - yyb4354 = yyj4354 > l + yyj4437++ + if yyhl4437 { + yyb4437 = yyj4437 > l } else { - yyb4354 = r.CheckBreak() + yyb4437 = r.CheckBreak() } - if yyb4354 { + if yyb4437 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -54266,13 +55346,13 @@ func (x *ComponentCondition) codecDecodeSelfFromArray(l int, d *codec1978.Decode } else { x.Message = string(r.DecodeString()) } - yyj4354++ - if yyhl4354 { - yyb4354 = yyj4354 > l + yyj4437++ + if yyhl4437 { + yyb4437 = yyj4437 > l } else { - yyb4354 = r.CheckBreak() + yyb4437 = r.CheckBreak() } - if yyb4354 { + if yyb4437 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -54283,17 +55363,17 @@ func (x *ComponentCondition) codecDecodeSelfFromArray(l int, d *codec1978.Decode x.Error = string(r.DecodeString()) } for { - yyj4354++ - if yyhl4354 { - yyb4354 = yyj4354 > l + yyj4437++ + if yyhl4437 { + yyb4437 = yyj4437 > l } else { - yyb4354 = r.CheckBreak() + yyb4437 = r.CheckBreak() } - if yyb4354 { + if yyb4437 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj4354-1, "") + z.DecStructFieldNotFound(yyj4437-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -54305,38 +55385,38 @@ func (x *ComponentStatus) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym4359 := z.EncBinary() - _ = yym4359 + yym4442 := z.EncBinary() + _ = yym4442 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - 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 { + yysep4443 := !z.EncBinary() + yy2arr4443 := z.EncBasicHandle().StructToArray + var yyq4443 [4]bool + _, _, _ = yysep4443, yyq4443, yy2arr4443 + const yyr4443 bool = false + yyq4443[0] = x.Kind != "" + yyq4443[1] = x.APIVersion != "" + yyq4443[2] = true + yyq4443[3] = len(x.Conditions) != 0 + var yynn4443 int + if yyr4443 || yy2arr4443 { r.EncodeArrayStart(4) } else { - yynn4360 = 0 - for _, b := range yyq4360 { + yynn4443 = 0 + for _, b := range yyq4443 { if b { - yynn4360++ + yynn4443++ } } - r.EncodeMapStart(yynn4360) - yynn4360 = 0 + r.EncodeMapStart(yynn4443) + yynn4443 = 0 } - if yyr4360 || yy2arr4360 { + if yyr4443 || yy2arr4443 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq4360[0] { - yym4362 := z.EncBinary() - _ = yym4362 + if yyq4443[0] { + yym4445 := z.EncBinary() + _ = yym4445 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) @@ -54345,23 +55425,23 @@ func (x *ComponentStatus) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq4360[0] { + if yyq4443[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym4363 := z.EncBinary() - _ = yym4363 + yym4446 := z.EncBinary() + _ = yym4446 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } - if yyr4360 || yy2arr4360 { + if yyr4443 || yy2arr4443 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq4360[1] { - yym4365 := z.EncBinary() - _ = yym4365 + if yyq4443[1] { + yym4448 := z.EncBinary() + _ = yym4448 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) @@ -54370,43 +55450,43 @@ func (x *ComponentStatus) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq4360[1] { + if yyq4443[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym4366 := z.EncBinary() - _ = yym4366 + yym4449 := z.EncBinary() + _ = yym4449 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } - if yyr4360 || yy2arr4360 { + if yyr4443 || yy2arr4443 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq4360[2] { - yy4368 := &x.ObjectMeta - yy4368.CodecEncodeSelf(e) + if yyq4443[2] { + yy4451 := &x.ObjectMeta + yy4451.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { - if yyq4360[2] { + if yyq4443[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy4369 := &x.ObjectMeta - yy4369.CodecEncodeSelf(e) + yy4452 := &x.ObjectMeta + yy4452.CodecEncodeSelf(e) } } - if yyr4360 || yy2arr4360 { + if yyr4443 || yy2arr4443 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq4360[3] { + if yyq4443[3] { if x.Conditions == nil { r.EncodeNil() } else { - yym4371 := z.EncBinary() - _ = yym4371 + yym4454 := z.EncBinary() + _ = yym4454 if false { } else { h.encSliceComponentCondition(([]ComponentCondition)(x.Conditions), e) @@ -54416,15 +55496,15 @@ func (x *ComponentStatus) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq4360[3] { + if yyq4443[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("conditions")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.Conditions == nil { r.EncodeNil() } else { - yym4372 := z.EncBinary() - _ = yym4372 + yym4455 := z.EncBinary() + _ = yym4455 if false { } else { h.encSliceComponentCondition(([]ComponentCondition)(x.Conditions), e) @@ -54432,7 +55512,7 @@ func (x *ComponentStatus) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr4360 || yy2arr4360 { + if yyr4443 || yy2arr4443 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -54445,25 +55525,25 @@ func (x *ComponentStatus) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym4373 := z.DecBinary() - _ = yym4373 + yym4456 := z.DecBinary() + _ = yym4456 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct4374 := r.ContainerType() - if yyct4374 == codecSelferValueTypeMap1234 { - yyl4374 := r.ReadMapStart() - if yyl4374 == 0 { + yyct4457 := r.ContainerType() + if yyct4457 == codecSelferValueTypeMap1234 { + yyl4457 := r.ReadMapStart() + if yyl4457 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl4374, d) + x.codecDecodeSelfFromMap(yyl4457, d) } - } else if yyct4374 == codecSelferValueTypeArray1234 { - yyl4374 := r.ReadArrayStart() - if yyl4374 == 0 { + } else if yyct4457 == codecSelferValueTypeArray1234 { + yyl4457 := r.ReadArrayStart() + if yyl4457 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl4374, d) + x.codecDecodeSelfFromArray(yyl4457, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -54475,12 +55555,12 @@ func (x *ComponentStatus) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys4375Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys4375Slc - var yyhl4375 bool = l >= 0 - for yyj4375 := 0; ; yyj4375++ { - if yyhl4375 { - if yyj4375 >= l { + var yys4458Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys4458Slc + var yyhl4458 bool = l >= 0 + for yyj4458 := 0; ; yyj4458++ { + if yyhl4458 { + if yyj4458 >= l { break } } else { @@ -54489,10 +55569,10 @@ func (x *ComponentStatus) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys4375Slc = r.DecodeBytes(yys4375Slc, true, true) - yys4375 := string(yys4375Slc) + yys4458Slc = r.DecodeBytes(yys4458Slc, true, true) + yys4458 := string(yys4458Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys4375 { + switch yys4458 { case "kind": if r.TryDecodeAsNil() { x.Kind = "" @@ -54509,25 +55589,25 @@ func (x *ComponentStatus) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.ObjectMeta = ObjectMeta{} } else { - yyv4378 := &x.ObjectMeta - yyv4378.CodecDecodeSelf(d) + yyv4461 := &x.ObjectMeta + yyv4461.CodecDecodeSelf(d) } case "conditions": if r.TryDecodeAsNil() { x.Conditions = nil } else { - yyv4379 := &x.Conditions - yym4380 := z.DecBinary() - _ = yym4380 + yyv4462 := &x.Conditions + yym4463 := z.DecBinary() + _ = yym4463 if false { } else { - h.decSliceComponentCondition((*[]ComponentCondition)(yyv4379), d) + h.decSliceComponentCondition((*[]ComponentCondition)(yyv4462), d) } } default: - z.DecStructFieldNotFound(-1, yys4375) - } // end switch yys4375 - } // end for yyj4375 + z.DecStructFieldNotFound(-1, yys4458) + } // end switch yys4458 + } // end for yyj4458 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -54535,16 +55615,16 @@ func (x *ComponentStatus) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj4381 int - var yyb4381 bool - var yyhl4381 bool = l >= 0 - yyj4381++ - if yyhl4381 { - yyb4381 = yyj4381 > l + var yyj4464 int + var yyb4464 bool + var yyhl4464 bool = l >= 0 + yyj4464++ + if yyhl4464 { + yyb4464 = yyj4464 > l } else { - yyb4381 = r.CheckBreak() + yyb4464 = r.CheckBreak() } - if yyb4381 { + if yyb4464 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -54554,13 +55634,13 @@ func (x *ComponentStatus) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) } else { x.Kind = string(r.DecodeString()) } - yyj4381++ - if yyhl4381 { - yyb4381 = yyj4381 > l + yyj4464++ + if yyhl4464 { + yyb4464 = yyj4464 > l } else { - yyb4381 = r.CheckBreak() + yyb4464 = r.CheckBreak() } - if yyb4381 { + if yyb4464 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -54570,13 +55650,13 @@ func (x *ComponentStatus) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) } else { x.APIVersion = string(r.DecodeString()) } - yyj4381++ - if yyhl4381 { - yyb4381 = yyj4381 > l + yyj4464++ + if yyhl4464 { + yyb4464 = yyj4464 > l } else { - yyb4381 = r.CheckBreak() + yyb4464 = r.CheckBreak() } - if yyb4381 { + if yyb4464 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -54584,16 +55664,16 @@ func (x *ComponentStatus) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) if r.TryDecodeAsNil() { x.ObjectMeta = ObjectMeta{} } else { - yyv4384 := &x.ObjectMeta - yyv4384.CodecDecodeSelf(d) + yyv4467 := &x.ObjectMeta + yyv4467.CodecDecodeSelf(d) } - yyj4381++ - if yyhl4381 { - yyb4381 = yyj4381 > l + yyj4464++ + if yyhl4464 { + yyb4464 = yyj4464 > l } else { - yyb4381 = r.CheckBreak() + yyb4464 = r.CheckBreak() } - if yyb4381 { + if yyb4464 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -54601,26 +55681,26 @@ func (x *ComponentStatus) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) if r.TryDecodeAsNil() { x.Conditions = nil } else { - yyv4385 := &x.Conditions - yym4386 := z.DecBinary() - _ = yym4386 + yyv4468 := &x.Conditions + yym4469 := z.DecBinary() + _ = yym4469 if false { } else { - h.decSliceComponentCondition((*[]ComponentCondition)(yyv4385), d) + h.decSliceComponentCondition((*[]ComponentCondition)(yyv4468), d) } } for { - yyj4381++ - if yyhl4381 { - yyb4381 = yyj4381 > l + yyj4464++ + if yyhl4464 { + yyb4464 = yyj4464 > l } else { - yyb4381 = r.CheckBreak() + yyb4464 = r.CheckBreak() } - if yyb4381 { + if yyb4464 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj4381-1, "") + z.DecStructFieldNotFound(yyj4464-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -54632,37 +55712,37 @@ func (x *ComponentStatusList) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym4387 := z.EncBinary() - _ = yym4387 + yym4470 := z.EncBinary() + _ = yym4470 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - 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 { + yysep4471 := !z.EncBinary() + yy2arr4471 := z.EncBasicHandle().StructToArray + var yyq4471 [4]bool + _, _, _ = yysep4471, yyq4471, yy2arr4471 + const yyr4471 bool = false + yyq4471[0] = x.Kind != "" + yyq4471[1] = x.APIVersion != "" + yyq4471[2] = true + var yynn4471 int + if yyr4471 || yy2arr4471 { r.EncodeArrayStart(4) } else { - yynn4388 = 1 - for _, b := range yyq4388 { + yynn4471 = 1 + for _, b := range yyq4471 { if b { - yynn4388++ + yynn4471++ } } - r.EncodeMapStart(yynn4388) - yynn4388 = 0 + r.EncodeMapStart(yynn4471) + yynn4471 = 0 } - if yyr4388 || yy2arr4388 { + if yyr4471 || yy2arr4471 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq4388[0] { - yym4390 := z.EncBinary() - _ = yym4390 + if yyq4471[0] { + yym4473 := z.EncBinary() + _ = yym4473 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) @@ -54671,23 +55751,23 @@ func (x *ComponentStatusList) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq4388[0] { + if yyq4471[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym4391 := z.EncBinary() - _ = yym4391 + yym4474 := z.EncBinary() + _ = yym4474 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } - if yyr4388 || yy2arr4388 { + if yyr4471 || yy2arr4471 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq4388[1] { - yym4393 := z.EncBinary() - _ = yym4393 + if yyq4471[1] { + yym4476 := z.EncBinary() + _ = yym4476 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) @@ -54696,54 +55776,54 @@ func (x *ComponentStatusList) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq4388[1] { + if yyq4471[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym4394 := z.EncBinary() - _ = yym4394 + yym4477 := z.EncBinary() + _ = yym4477 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } - if yyr4388 || yy2arr4388 { + if yyr4471 || yy2arr4471 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq4388[2] { - yy4396 := &x.ListMeta - yym4397 := z.EncBinary() - _ = yym4397 + if yyq4471[2] { + yy4479 := &x.ListMeta + yym4480 := z.EncBinary() + _ = yym4480 if false { - } else if z.HasExtensions() && z.EncExt(yy4396) { + } else if z.HasExtensions() && z.EncExt(yy4479) { } else { - z.EncFallback(yy4396) + z.EncFallback(yy4479) } } else { r.EncodeNil() } } else { - if yyq4388[2] { + if yyq4471[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy4398 := &x.ListMeta - yym4399 := z.EncBinary() - _ = yym4399 + yy4481 := &x.ListMeta + yym4482 := z.EncBinary() + _ = yym4482 if false { - } else if z.HasExtensions() && z.EncExt(yy4398) { + } else if z.HasExtensions() && z.EncExt(yy4481) { } else { - z.EncFallback(yy4398) + z.EncFallback(yy4481) } } } - if yyr4388 || yy2arr4388 { + if yyr4471 || yy2arr4471 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.Items == nil { r.EncodeNil() } else { - yym4401 := z.EncBinary() - _ = yym4401 + yym4484 := z.EncBinary() + _ = yym4484 if false { } else { h.encSliceComponentStatus(([]ComponentStatus)(x.Items), e) @@ -54756,15 +55836,15 @@ func (x *ComponentStatusList) CodecEncodeSelf(e *codec1978.Encoder) { if x.Items == nil { r.EncodeNil() } else { - yym4402 := z.EncBinary() - _ = yym4402 + yym4485 := z.EncBinary() + _ = yym4485 if false { } else { h.encSliceComponentStatus(([]ComponentStatus)(x.Items), e) } } } - if yyr4388 || yy2arr4388 { + if yyr4471 || yy2arr4471 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -54777,25 +55857,25 @@ func (x *ComponentStatusList) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym4403 := z.DecBinary() - _ = yym4403 + yym4486 := z.DecBinary() + _ = yym4486 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct4404 := r.ContainerType() - if yyct4404 == codecSelferValueTypeMap1234 { - yyl4404 := r.ReadMapStart() - if yyl4404 == 0 { + yyct4487 := r.ContainerType() + if yyct4487 == codecSelferValueTypeMap1234 { + yyl4487 := r.ReadMapStart() + if yyl4487 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl4404, d) + x.codecDecodeSelfFromMap(yyl4487, d) } - } else if yyct4404 == codecSelferValueTypeArray1234 { - yyl4404 := r.ReadArrayStart() - if yyl4404 == 0 { + } else if yyct4487 == codecSelferValueTypeArray1234 { + yyl4487 := r.ReadArrayStart() + if yyl4487 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl4404, d) + x.codecDecodeSelfFromArray(yyl4487, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -54807,12 +55887,12 @@ func (x *ComponentStatusList) codecDecodeSelfFromMap(l int, d *codec1978.Decoder var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys4405Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys4405Slc - var yyhl4405 bool = l >= 0 - for yyj4405 := 0; ; yyj4405++ { - if yyhl4405 { - if yyj4405 >= l { + var yys4488Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys4488Slc + var yyhl4488 bool = l >= 0 + for yyj4488 := 0; ; yyj4488++ { + if yyhl4488 { + if yyj4488 >= l { break } } else { @@ -54821,10 +55901,10 @@ func (x *ComponentStatusList) codecDecodeSelfFromMap(l int, d *codec1978.Decoder } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys4405Slc = r.DecodeBytes(yys4405Slc, true, true) - yys4405 := string(yys4405Slc) + yys4488Slc = r.DecodeBytes(yys4488Slc, true, true) + yys4488 := string(yys4488Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys4405 { + switch yys4488 { case "kind": if r.TryDecodeAsNil() { x.Kind = "" @@ -54841,31 +55921,31 @@ func (x *ComponentStatusList) codecDecodeSelfFromMap(l int, d *codec1978.Decoder if r.TryDecodeAsNil() { x.ListMeta = pkg2_unversioned.ListMeta{} } else { - yyv4408 := &x.ListMeta - yym4409 := z.DecBinary() - _ = yym4409 + yyv4491 := &x.ListMeta + yym4492 := z.DecBinary() + _ = yym4492 if false { - } else if z.HasExtensions() && z.DecExt(yyv4408) { + } else if z.HasExtensions() && z.DecExt(yyv4491) { } else { - z.DecFallback(yyv4408, false) + z.DecFallback(yyv4491, false) } } case "items": if r.TryDecodeAsNil() { x.Items = nil } else { - yyv4410 := &x.Items - yym4411 := z.DecBinary() - _ = yym4411 + yyv4493 := &x.Items + yym4494 := z.DecBinary() + _ = yym4494 if false { } else { - h.decSliceComponentStatus((*[]ComponentStatus)(yyv4410), d) + h.decSliceComponentStatus((*[]ComponentStatus)(yyv4493), d) } } default: - z.DecStructFieldNotFound(-1, yys4405) - } // end switch yys4405 - } // end for yyj4405 + z.DecStructFieldNotFound(-1, yys4488) + } // end switch yys4488 + } // end for yyj4488 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -54873,16 +55953,16 @@ func (x *ComponentStatusList) codecDecodeSelfFromArray(l int, d *codec1978.Decod var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj4412 int - var yyb4412 bool - var yyhl4412 bool = l >= 0 - yyj4412++ - if yyhl4412 { - yyb4412 = yyj4412 > l + var yyj4495 int + var yyb4495 bool + var yyhl4495 bool = l >= 0 + yyj4495++ + if yyhl4495 { + yyb4495 = yyj4495 > l } else { - yyb4412 = r.CheckBreak() + yyb4495 = r.CheckBreak() } - if yyb4412 { + if yyb4495 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -54892,13 +55972,13 @@ func (x *ComponentStatusList) codecDecodeSelfFromArray(l int, d *codec1978.Decod } else { x.Kind = string(r.DecodeString()) } - yyj4412++ - if yyhl4412 { - yyb4412 = yyj4412 > l + yyj4495++ + if yyhl4495 { + yyb4495 = yyj4495 > l } else { - yyb4412 = r.CheckBreak() + yyb4495 = r.CheckBreak() } - if yyb4412 { + if yyb4495 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -54908,13 +55988,13 @@ func (x *ComponentStatusList) codecDecodeSelfFromArray(l int, d *codec1978.Decod } else { x.APIVersion = string(r.DecodeString()) } - yyj4412++ - if yyhl4412 { - yyb4412 = yyj4412 > l + yyj4495++ + if yyhl4495 { + yyb4495 = yyj4495 > l } else { - yyb4412 = r.CheckBreak() + yyb4495 = r.CheckBreak() } - if yyb4412 { + if yyb4495 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -54922,22 +56002,22 @@ func (x *ComponentStatusList) codecDecodeSelfFromArray(l int, d *codec1978.Decod if r.TryDecodeAsNil() { x.ListMeta = pkg2_unversioned.ListMeta{} } else { - yyv4415 := &x.ListMeta - yym4416 := z.DecBinary() - _ = yym4416 + yyv4498 := &x.ListMeta + yym4499 := z.DecBinary() + _ = yym4499 if false { - } else if z.HasExtensions() && z.DecExt(yyv4415) { + } else if z.HasExtensions() && z.DecExt(yyv4498) { } else { - z.DecFallback(yyv4415, false) + z.DecFallback(yyv4498, false) } } - yyj4412++ - if yyhl4412 { - yyb4412 = yyj4412 > l + yyj4495++ + if yyhl4495 { + yyb4495 = yyj4495 > l } else { - yyb4412 = r.CheckBreak() + yyb4495 = r.CheckBreak() } - if yyb4412 { + if yyb4495 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -54945,26 +56025,26 @@ func (x *ComponentStatusList) codecDecodeSelfFromArray(l int, d *codec1978.Decod if r.TryDecodeAsNil() { x.Items = nil } else { - yyv4417 := &x.Items - yym4418 := z.DecBinary() - _ = yym4418 + yyv4500 := &x.Items + yym4501 := z.DecBinary() + _ = yym4501 if false { } else { - h.decSliceComponentStatus((*[]ComponentStatus)(yyv4417), d) + h.decSliceComponentStatus((*[]ComponentStatus)(yyv4500), d) } } for { - yyj4412++ - if yyhl4412 { - yyb4412 = yyj4412 > l + yyj4495++ + if yyhl4495 { + yyb4495 = yyj4495 > l } else { - yyb4412 = r.CheckBreak() + yyb4495 = r.CheckBreak() } - if yyb4412 { + if yyb4495 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj4412-1, "") + z.DecStructFieldNotFound(yyj4495-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -54976,38 +56056,38 @@ func (x *SecurityContext) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym4419 := z.EncBinary() - _ = yym4419 + yym4502 := z.EncBinary() + _ = yym4502 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - 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 { + yysep4503 := !z.EncBinary() + yy2arr4503 := z.EncBasicHandle().StructToArray + var yyq4503 [6]bool + _, _, _ = yysep4503, yyq4503, yy2arr4503 + const yyr4503 bool = false + yyq4503[0] = x.Capabilities != nil + yyq4503[1] = x.Privileged != nil + yyq4503[2] = x.SELinuxOptions != nil + yyq4503[3] = x.RunAsUser != nil + yyq4503[4] = x.RunAsNonRoot != nil + yyq4503[5] = x.ReadOnlyRootFilesystem != nil + var yynn4503 int + if yyr4503 || yy2arr4503 { r.EncodeArrayStart(6) } else { - yynn4420 = 0 - for _, b := range yyq4420 { + yynn4503 = 0 + for _, b := range yyq4503 { if b { - yynn4420++ + yynn4503++ } } - r.EncodeMapStart(yynn4420) - yynn4420 = 0 + r.EncodeMapStart(yynn4503) + yynn4503 = 0 } - if yyr4420 || yy2arr4420 { + if yyr4503 || yy2arr4503 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq4420[0] { + if yyq4503[0] { if x.Capabilities == nil { r.EncodeNil() } else { @@ -55017,7 +56097,7 @@ func (x *SecurityContext) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq4420[0] { + if yyq4503[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("capabilities")) z.EncSendContainerState(codecSelfer_containerMapValue1234) @@ -55028,44 +56108,44 @@ func (x *SecurityContext) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr4420 || yy2arr4420 { + if yyr4503 || yy2arr4503 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq4420[1] { + if yyq4503[1] { if x.Privileged == nil { r.EncodeNil() } else { - yy4423 := *x.Privileged - yym4424 := z.EncBinary() - _ = yym4424 + yy4506 := *x.Privileged + yym4507 := z.EncBinary() + _ = yym4507 if false { } else { - r.EncodeBool(bool(yy4423)) + r.EncodeBool(bool(yy4506)) } } } else { r.EncodeNil() } } else { - if yyq4420[1] { + if yyq4503[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("privileged")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.Privileged == nil { r.EncodeNil() } else { - yy4425 := *x.Privileged - yym4426 := z.EncBinary() - _ = yym4426 + yy4508 := *x.Privileged + yym4509 := z.EncBinary() + _ = yym4509 if false { } else { - r.EncodeBool(bool(yy4425)) + r.EncodeBool(bool(yy4508)) } } } } - if yyr4420 || yy2arr4420 { + if yyr4503 || yy2arr4503 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq4420[2] { + if yyq4503[2] { if x.SELinuxOptions == nil { r.EncodeNil() } else { @@ -55075,7 +56155,7 @@ func (x *SecurityContext) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq4420[2] { + if yyq4503[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("seLinuxOptions")) z.EncSendContainerState(codecSelfer_containerMapValue1234) @@ -55086,112 +56166,112 @@ func (x *SecurityContext) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr4420 || yy2arr4420 { + if yyr4503 || yy2arr4503 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq4420[3] { + if yyq4503[3] { if x.RunAsUser == nil { r.EncodeNil() } else { - yy4429 := *x.RunAsUser - yym4430 := z.EncBinary() - _ = yym4430 + yy4512 := *x.RunAsUser + yym4513 := z.EncBinary() + _ = yym4513 if false { } else { - r.EncodeInt(int64(yy4429)) + r.EncodeInt(int64(yy4512)) } } } else { r.EncodeNil() } } else { - if yyq4420[3] { + if yyq4503[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("runAsUser")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.RunAsUser == nil { r.EncodeNil() } else { - yy4431 := *x.RunAsUser - yym4432 := z.EncBinary() - _ = yym4432 + yy4514 := *x.RunAsUser + yym4515 := z.EncBinary() + _ = yym4515 if false { } else { - r.EncodeInt(int64(yy4431)) + r.EncodeInt(int64(yy4514)) } } } } - if yyr4420 || yy2arr4420 { + if yyr4503 || yy2arr4503 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq4420[4] { + if yyq4503[4] { if x.RunAsNonRoot == nil { r.EncodeNil() } else { - yy4434 := *x.RunAsNonRoot - yym4435 := z.EncBinary() - _ = yym4435 + yy4517 := *x.RunAsNonRoot + yym4518 := z.EncBinary() + _ = yym4518 if false { } else { - r.EncodeBool(bool(yy4434)) + r.EncodeBool(bool(yy4517)) } } } else { r.EncodeNil() } } else { - if yyq4420[4] { + if yyq4503[4] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("runAsNonRoot")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.RunAsNonRoot == nil { r.EncodeNil() } else { - yy4436 := *x.RunAsNonRoot - yym4437 := z.EncBinary() - _ = yym4437 + yy4519 := *x.RunAsNonRoot + yym4520 := z.EncBinary() + _ = yym4520 if false { } else { - r.EncodeBool(bool(yy4436)) + r.EncodeBool(bool(yy4519)) } } } } - if yyr4420 || yy2arr4420 { + if yyr4503 || yy2arr4503 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq4420[5] { + if yyq4503[5] { if x.ReadOnlyRootFilesystem == nil { r.EncodeNil() } else { - yy4439 := *x.ReadOnlyRootFilesystem - yym4440 := z.EncBinary() - _ = yym4440 + yy4522 := *x.ReadOnlyRootFilesystem + yym4523 := z.EncBinary() + _ = yym4523 if false { } else { - r.EncodeBool(bool(yy4439)) + r.EncodeBool(bool(yy4522)) } } } else { r.EncodeNil() } } else { - if yyq4420[5] { + if yyq4503[5] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("readOnlyRootFilesystem")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.ReadOnlyRootFilesystem == nil { r.EncodeNil() } else { - yy4441 := *x.ReadOnlyRootFilesystem - yym4442 := z.EncBinary() - _ = yym4442 + yy4524 := *x.ReadOnlyRootFilesystem + yym4525 := z.EncBinary() + _ = yym4525 if false { } else { - r.EncodeBool(bool(yy4441)) + r.EncodeBool(bool(yy4524)) } } } } - if yyr4420 || yy2arr4420 { + if yyr4503 || yy2arr4503 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -55204,25 +56284,25 @@ func (x *SecurityContext) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym4443 := z.DecBinary() - _ = yym4443 + yym4526 := z.DecBinary() + _ = yym4526 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct4444 := r.ContainerType() - if yyct4444 == codecSelferValueTypeMap1234 { - yyl4444 := r.ReadMapStart() - if yyl4444 == 0 { + yyct4527 := r.ContainerType() + if yyct4527 == codecSelferValueTypeMap1234 { + yyl4527 := r.ReadMapStart() + if yyl4527 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl4444, d) + x.codecDecodeSelfFromMap(yyl4527, d) } - } else if yyct4444 == codecSelferValueTypeArray1234 { - yyl4444 := r.ReadArrayStart() - if yyl4444 == 0 { + } else if yyct4527 == codecSelferValueTypeArray1234 { + yyl4527 := r.ReadArrayStart() + if yyl4527 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl4444, d) + x.codecDecodeSelfFromArray(yyl4527, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -55234,12 +56314,12 @@ func (x *SecurityContext) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys4445Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys4445Slc - var yyhl4445 bool = l >= 0 - for yyj4445 := 0; ; yyj4445++ { - if yyhl4445 { - if yyj4445 >= l { + var yys4528Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys4528Slc + var yyhl4528 bool = l >= 0 + for yyj4528 := 0; ; yyj4528++ { + if yyhl4528 { + if yyj4528 >= l { break } } else { @@ -55248,10 +56328,10 @@ func (x *SecurityContext) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys4445Slc = r.DecodeBytes(yys4445Slc, true, true) - yys4445 := string(yys4445Slc) + yys4528Slc = r.DecodeBytes(yys4528Slc, true, true) + yys4528 := string(yys4528Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys4445 { + switch yys4528 { case "capabilities": if r.TryDecodeAsNil() { if x.Capabilities != nil { @@ -55272,8 +56352,8 @@ func (x *SecurityContext) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { if x.Privileged == nil { x.Privileged = new(bool) } - yym4448 := z.DecBinary() - _ = yym4448 + yym4531 := z.DecBinary() + _ = yym4531 if false { } else { *((*bool)(x.Privileged)) = r.DecodeBool() @@ -55299,8 +56379,8 @@ func (x *SecurityContext) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { if x.RunAsUser == nil { x.RunAsUser = new(int64) } - yym4451 := z.DecBinary() - _ = yym4451 + yym4534 := z.DecBinary() + _ = yym4534 if false { } else { *((*int64)(x.RunAsUser)) = int64(r.DecodeInt(64)) @@ -55315,8 +56395,8 @@ func (x *SecurityContext) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { if x.RunAsNonRoot == nil { x.RunAsNonRoot = new(bool) } - yym4453 := z.DecBinary() - _ = yym4453 + yym4536 := z.DecBinary() + _ = yym4536 if false { } else { *((*bool)(x.RunAsNonRoot)) = r.DecodeBool() @@ -55331,17 +56411,17 @@ func (x *SecurityContext) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { if x.ReadOnlyRootFilesystem == nil { x.ReadOnlyRootFilesystem = new(bool) } - yym4455 := z.DecBinary() - _ = yym4455 + yym4538 := z.DecBinary() + _ = yym4538 if false { } else { *((*bool)(x.ReadOnlyRootFilesystem)) = r.DecodeBool() } } default: - z.DecStructFieldNotFound(-1, yys4445) - } // end switch yys4445 - } // end for yyj4445 + z.DecStructFieldNotFound(-1, yys4528) + } // end switch yys4528 + } // end for yyj4528 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -55349,16 +56429,16 @@ func (x *SecurityContext) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj4456 int - var yyb4456 bool - var yyhl4456 bool = l >= 0 - yyj4456++ - if yyhl4456 { - yyb4456 = yyj4456 > l + var yyj4539 int + var yyb4539 bool + var yyhl4539 bool = l >= 0 + yyj4539++ + if yyhl4539 { + yyb4539 = yyj4539 > l } else { - yyb4456 = r.CheckBreak() + yyb4539 = r.CheckBreak() } - if yyb4456 { + if yyb4539 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -55373,13 +56453,13 @@ func (x *SecurityContext) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) } x.Capabilities.CodecDecodeSelf(d) } - yyj4456++ - if yyhl4456 { - yyb4456 = yyj4456 > l + yyj4539++ + if yyhl4539 { + yyb4539 = yyj4539 > l } else { - yyb4456 = r.CheckBreak() + yyb4539 = r.CheckBreak() } - if yyb4456 { + if yyb4539 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -55392,20 +56472,20 @@ func (x *SecurityContext) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) if x.Privileged == nil { x.Privileged = new(bool) } - yym4459 := z.DecBinary() - _ = yym4459 + yym4542 := z.DecBinary() + _ = yym4542 if false { } else { *((*bool)(x.Privileged)) = r.DecodeBool() } } - yyj4456++ - if yyhl4456 { - yyb4456 = yyj4456 > l + yyj4539++ + if yyhl4539 { + yyb4539 = yyj4539 > l } else { - yyb4456 = r.CheckBreak() + yyb4539 = r.CheckBreak() } - if yyb4456 { + if yyb4539 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -55420,13 +56500,13 @@ func (x *SecurityContext) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) } x.SELinuxOptions.CodecDecodeSelf(d) } - yyj4456++ - if yyhl4456 { - yyb4456 = yyj4456 > l + yyj4539++ + if yyhl4539 { + yyb4539 = yyj4539 > l } else { - yyb4456 = r.CheckBreak() + yyb4539 = r.CheckBreak() } - if yyb4456 { + if yyb4539 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -55439,20 +56519,20 @@ func (x *SecurityContext) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) if x.RunAsUser == nil { x.RunAsUser = new(int64) } - yym4462 := z.DecBinary() - _ = yym4462 + yym4545 := z.DecBinary() + _ = yym4545 if false { } else { *((*int64)(x.RunAsUser)) = int64(r.DecodeInt(64)) } } - yyj4456++ - if yyhl4456 { - yyb4456 = yyj4456 > l + yyj4539++ + if yyhl4539 { + yyb4539 = yyj4539 > l } else { - yyb4456 = r.CheckBreak() + yyb4539 = r.CheckBreak() } - if yyb4456 { + if yyb4539 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -55465,20 +56545,20 @@ func (x *SecurityContext) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) if x.RunAsNonRoot == nil { x.RunAsNonRoot = new(bool) } - yym4464 := z.DecBinary() - _ = yym4464 + yym4547 := z.DecBinary() + _ = yym4547 if false { } else { *((*bool)(x.RunAsNonRoot)) = r.DecodeBool() } } - yyj4456++ - if yyhl4456 { - yyb4456 = yyj4456 > l + yyj4539++ + if yyhl4539 { + yyb4539 = yyj4539 > l } else { - yyb4456 = r.CheckBreak() + yyb4539 = r.CheckBreak() } - if yyb4456 { + if yyb4539 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -55491,25 +56571,25 @@ func (x *SecurityContext) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) if x.ReadOnlyRootFilesystem == nil { x.ReadOnlyRootFilesystem = new(bool) } - yym4466 := z.DecBinary() - _ = yym4466 + yym4549 := z.DecBinary() + _ = yym4549 if false { } else { *((*bool)(x.ReadOnlyRootFilesystem)) = r.DecodeBool() } } for { - yyj4456++ - if yyhl4456 { - yyb4456 = yyj4456 > l + yyj4539++ + if yyhl4539 { + yyb4539 = yyj4539 > l } else { - yyb4456 = r.CheckBreak() + yyb4539 = r.CheckBreak() } - if yyb4456 { + if yyb4539 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj4456-1, "") + z.DecStructFieldNotFound(yyj4539-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -55521,38 +56601,38 @@ func (x *SELinuxOptions) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym4467 := z.EncBinary() - _ = yym4467 + yym4550 := z.EncBinary() + _ = yym4550 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - 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 { + yysep4551 := !z.EncBinary() + yy2arr4551 := z.EncBasicHandle().StructToArray + var yyq4551 [4]bool + _, _, _ = yysep4551, yyq4551, yy2arr4551 + const yyr4551 bool = false + yyq4551[0] = x.User != "" + yyq4551[1] = x.Role != "" + yyq4551[2] = x.Type != "" + yyq4551[3] = x.Level != "" + var yynn4551 int + if yyr4551 || yy2arr4551 { r.EncodeArrayStart(4) } else { - yynn4468 = 0 - for _, b := range yyq4468 { + yynn4551 = 0 + for _, b := range yyq4551 { if b { - yynn4468++ + yynn4551++ } } - r.EncodeMapStart(yynn4468) - yynn4468 = 0 + r.EncodeMapStart(yynn4551) + yynn4551 = 0 } - if yyr4468 || yy2arr4468 { + if yyr4551 || yy2arr4551 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq4468[0] { - yym4470 := z.EncBinary() - _ = yym4470 + if yyq4551[0] { + yym4553 := z.EncBinary() + _ = yym4553 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.User)) @@ -55561,23 +56641,23 @@ func (x *SELinuxOptions) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq4468[0] { + if yyq4551[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("user")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym4471 := z.EncBinary() - _ = yym4471 + yym4554 := z.EncBinary() + _ = yym4554 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.User)) } } } - if yyr4468 || yy2arr4468 { + if yyr4551 || yy2arr4551 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq4468[1] { - yym4473 := z.EncBinary() - _ = yym4473 + if yyq4551[1] { + yym4556 := z.EncBinary() + _ = yym4556 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Role)) @@ -55586,23 +56666,23 @@ func (x *SELinuxOptions) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq4468[1] { + if yyq4551[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("role")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym4474 := z.EncBinary() - _ = yym4474 + yym4557 := z.EncBinary() + _ = yym4557 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Role)) } } } - if yyr4468 || yy2arr4468 { + if yyr4551 || yy2arr4551 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq4468[2] { - yym4476 := z.EncBinary() - _ = yym4476 + if yyq4551[2] { + yym4559 := z.EncBinary() + _ = yym4559 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Type)) @@ -55611,23 +56691,23 @@ func (x *SELinuxOptions) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq4468[2] { + if yyq4551[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("type")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym4477 := z.EncBinary() - _ = yym4477 + yym4560 := z.EncBinary() + _ = yym4560 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Type)) } } } - if yyr4468 || yy2arr4468 { + if yyr4551 || yy2arr4551 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq4468[3] { - yym4479 := z.EncBinary() - _ = yym4479 + if yyq4551[3] { + yym4562 := z.EncBinary() + _ = yym4562 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Level)) @@ -55636,19 +56716,19 @@ func (x *SELinuxOptions) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq4468[3] { + if yyq4551[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("level")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym4480 := z.EncBinary() - _ = yym4480 + yym4563 := z.EncBinary() + _ = yym4563 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Level)) } } } - if yyr4468 || yy2arr4468 { + if yyr4551 || yy2arr4551 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -55661,25 +56741,25 @@ func (x *SELinuxOptions) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym4481 := z.DecBinary() - _ = yym4481 + yym4564 := z.DecBinary() + _ = yym4564 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct4482 := r.ContainerType() - if yyct4482 == codecSelferValueTypeMap1234 { - yyl4482 := r.ReadMapStart() - if yyl4482 == 0 { + yyct4565 := r.ContainerType() + if yyct4565 == codecSelferValueTypeMap1234 { + yyl4565 := r.ReadMapStart() + if yyl4565 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl4482, d) + x.codecDecodeSelfFromMap(yyl4565, d) } - } else if yyct4482 == codecSelferValueTypeArray1234 { - yyl4482 := r.ReadArrayStart() - if yyl4482 == 0 { + } else if yyct4565 == codecSelferValueTypeArray1234 { + yyl4565 := r.ReadArrayStart() + if yyl4565 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl4482, d) + x.codecDecodeSelfFromArray(yyl4565, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -55691,12 +56771,12 @@ func (x *SELinuxOptions) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys4483Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys4483Slc - var yyhl4483 bool = l >= 0 - for yyj4483 := 0; ; yyj4483++ { - if yyhl4483 { - if yyj4483 >= l { + var yys4566Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys4566Slc + var yyhl4566 bool = l >= 0 + for yyj4566 := 0; ; yyj4566++ { + if yyhl4566 { + if yyj4566 >= l { break } } else { @@ -55705,10 +56785,10 @@ func (x *SELinuxOptions) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys4483Slc = r.DecodeBytes(yys4483Slc, true, true) - yys4483 := string(yys4483Slc) + yys4566Slc = r.DecodeBytes(yys4566Slc, true, true) + yys4566 := string(yys4566Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys4483 { + switch yys4566 { case "user": if r.TryDecodeAsNil() { x.User = "" @@ -55734,9 +56814,9 @@ func (x *SELinuxOptions) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { x.Level = string(r.DecodeString()) } default: - z.DecStructFieldNotFound(-1, yys4483) - } // end switch yys4483 - } // end for yyj4483 + z.DecStructFieldNotFound(-1, yys4566) + } // end switch yys4566 + } // end for yyj4566 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -55744,16 +56824,16 @@ func (x *SELinuxOptions) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj4488 int - var yyb4488 bool - var yyhl4488 bool = l >= 0 - yyj4488++ - if yyhl4488 { - yyb4488 = yyj4488 > l + var yyj4571 int + var yyb4571 bool + var yyhl4571 bool = l >= 0 + yyj4571++ + if yyhl4571 { + yyb4571 = yyj4571 > l } else { - yyb4488 = r.CheckBreak() + yyb4571 = r.CheckBreak() } - if yyb4488 { + if yyb4571 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -55763,13 +56843,13 @@ func (x *SELinuxOptions) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.User = string(r.DecodeString()) } - yyj4488++ - if yyhl4488 { - yyb4488 = yyj4488 > l + yyj4571++ + if yyhl4571 { + yyb4571 = yyj4571 > l } else { - yyb4488 = r.CheckBreak() + yyb4571 = r.CheckBreak() } - if yyb4488 { + if yyb4571 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -55779,13 +56859,13 @@ func (x *SELinuxOptions) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.Role = string(r.DecodeString()) } - yyj4488++ - if yyhl4488 { - yyb4488 = yyj4488 > l + yyj4571++ + if yyhl4571 { + yyb4571 = yyj4571 > l } else { - yyb4488 = r.CheckBreak() + yyb4571 = r.CheckBreak() } - if yyb4488 { + if yyb4571 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -55795,13 +56875,13 @@ func (x *SELinuxOptions) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.Type = string(r.DecodeString()) } - yyj4488++ - if yyhl4488 { - yyb4488 = yyj4488 > l + yyj4571++ + if yyhl4571 { + yyb4571 = yyj4571 > l } else { - yyb4488 = r.CheckBreak() + yyb4571 = r.CheckBreak() } - if yyb4488 { + if yyb4571 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -55812,17 +56892,17 @@ func (x *SELinuxOptions) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { x.Level = string(r.DecodeString()) } for { - yyj4488++ - if yyhl4488 { - yyb4488 = yyj4488 > l + yyj4571++ + if yyhl4571 { + yyb4571 = yyj4571 > l } else { - yyb4488 = r.CheckBreak() + yyb4571 = r.CheckBreak() } - if yyb4488 { + if yyb4571 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj4488-1, "") + z.DecStructFieldNotFound(yyj4571-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -55834,37 +56914,37 @@ func (x *RangeAllocation) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym4493 := z.EncBinary() - _ = yym4493 + yym4576 := z.EncBinary() + _ = yym4576 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - 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 { + yysep4577 := !z.EncBinary() + yy2arr4577 := z.EncBasicHandle().StructToArray + var yyq4577 [5]bool + _, _, _ = yysep4577, yyq4577, yy2arr4577 + const yyr4577 bool = false + yyq4577[0] = x.Kind != "" + yyq4577[1] = x.APIVersion != "" + yyq4577[2] = true + var yynn4577 int + if yyr4577 || yy2arr4577 { r.EncodeArrayStart(5) } else { - yynn4494 = 2 - for _, b := range yyq4494 { + yynn4577 = 2 + for _, b := range yyq4577 { if b { - yynn4494++ + yynn4577++ } } - r.EncodeMapStart(yynn4494) - yynn4494 = 0 + r.EncodeMapStart(yynn4577) + yynn4577 = 0 } - if yyr4494 || yy2arr4494 { + if yyr4577 || yy2arr4577 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq4494[0] { - yym4496 := z.EncBinary() - _ = yym4496 + if yyq4577[0] { + yym4579 := z.EncBinary() + _ = yym4579 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) @@ -55873,23 +56953,23 @@ func (x *RangeAllocation) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq4494[0] { + if yyq4577[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym4497 := z.EncBinary() - _ = yym4497 + yym4580 := z.EncBinary() + _ = yym4580 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } - if yyr4494 || yy2arr4494 { + if yyr4577 || yy2arr4577 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq4494[1] { - yym4499 := z.EncBinary() - _ = yym4499 + if yyq4577[1] { + yym4582 := z.EncBinary() + _ = yym4582 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) @@ -55898,39 +56978,39 @@ func (x *RangeAllocation) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq4494[1] { + if yyq4577[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym4500 := z.EncBinary() - _ = yym4500 + yym4583 := z.EncBinary() + _ = yym4583 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } - if yyr4494 || yy2arr4494 { + if yyr4577 || yy2arr4577 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq4494[2] { - yy4502 := &x.ObjectMeta - yy4502.CodecEncodeSelf(e) + if yyq4577[2] { + yy4585 := &x.ObjectMeta + yy4585.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { - if yyq4494[2] { + if yyq4577[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy4503 := &x.ObjectMeta - yy4503.CodecEncodeSelf(e) + yy4586 := &x.ObjectMeta + yy4586.CodecEncodeSelf(e) } } - if yyr4494 || yy2arr4494 { + if yyr4577 || yy2arr4577 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym4505 := z.EncBinary() - _ = yym4505 + yym4588 := z.EncBinary() + _ = yym4588 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Range)) @@ -55939,20 +57019,20 @@ func (x *RangeAllocation) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("range")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym4506 := z.EncBinary() - _ = yym4506 + yym4589 := z.EncBinary() + _ = yym4589 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Range)) } } - if yyr4494 || yy2arr4494 { + if yyr4577 || yy2arr4577 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.Data == nil { r.EncodeNil() } else { - yym4508 := z.EncBinary() - _ = yym4508 + yym4591 := z.EncBinary() + _ = yym4591 if false { } else { r.EncodeStringBytes(codecSelferC_RAW1234, []byte(x.Data)) @@ -55965,15 +57045,15 @@ func (x *RangeAllocation) CodecEncodeSelf(e *codec1978.Encoder) { if x.Data == nil { r.EncodeNil() } else { - yym4509 := z.EncBinary() - _ = yym4509 + yym4592 := z.EncBinary() + _ = yym4592 if false { } else { r.EncodeStringBytes(codecSelferC_RAW1234, []byte(x.Data)) } } } - if yyr4494 || yy2arr4494 { + if yyr4577 || yy2arr4577 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -55986,25 +57066,25 @@ func (x *RangeAllocation) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym4510 := z.DecBinary() - _ = yym4510 + yym4593 := z.DecBinary() + _ = yym4593 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct4511 := r.ContainerType() - if yyct4511 == codecSelferValueTypeMap1234 { - yyl4511 := r.ReadMapStart() - if yyl4511 == 0 { + yyct4594 := r.ContainerType() + if yyct4594 == codecSelferValueTypeMap1234 { + yyl4594 := r.ReadMapStart() + if yyl4594 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl4511, d) + x.codecDecodeSelfFromMap(yyl4594, d) } - } else if yyct4511 == codecSelferValueTypeArray1234 { - yyl4511 := r.ReadArrayStart() - if yyl4511 == 0 { + } else if yyct4594 == codecSelferValueTypeArray1234 { + yyl4594 := r.ReadArrayStart() + if yyl4594 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl4511, d) + x.codecDecodeSelfFromArray(yyl4594, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -56016,12 +57096,12 @@ func (x *RangeAllocation) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys4512Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys4512Slc - var yyhl4512 bool = l >= 0 - for yyj4512 := 0; ; yyj4512++ { - if yyhl4512 { - if yyj4512 >= l { + var yys4595Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys4595Slc + var yyhl4595 bool = l >= 0 + for yyj4595 := 0; ; yyj4595++ { + if yyhl4595 { + if yyj4595 >= l { break } } else { @@ -56030,10 +57110,10 @@ func (x *RangeAllocation) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys4512Slc = r.DecodeBytes(yys4512Slc, true, true) - yys4512 := string(yys4512Slc) + yys4595Slc = r.DecodeBytes(yys4595Slc, true, true) + yys4595 := string(yys4595Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys4512 { + switch yys4595 { case "kind": if r.TryDecodeAsNil() { x.Kind = "" @@ -56050,8 +57130,8 @@ func (x *RangeAllocation) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.ObjectMeta = ObjectMeta{} } else { - yyv4515 := &x.ObjectMeta - yyv4515.CodecDecodeSelf(d) + yyv4598 := &x.ObjectMeta + yyv4598.CodecDecodeSelf(d) } case "range": if r.TryDecodeAsNil() { @@ -56063,18 +57143,18 @@ func (x *RangeAllocation) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.Data = nil } else { - yyv4517 := &x.Data - yym4518 := z.DecBinary() - _ = yym4518 + yyv4600 := &x.Data + yym4601 := z.DecBinary() + _ = yym4601 if false { } else { - *yyv4517 = r.DecodeBytes(*(*[]byte)(yyv4517), false, false) + *yyv4600 = r.DecodeBytes(*(*[]byte)(yyv4600), false, false) } } default: - z.DecStructFieldNotFound(-1, yys4512) - } // end switch yys4512 - } // end for yyj4512 + z.DecStructFieldNotFound(-1, yys4595) + } // end switch yys4595 + } // end for yyj4595 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -56082,16 +57162,16 @@ func (x *RangeAllocation) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj4519 int - var yyb4519 bool - var yyhl4519 bool = l >= 0 - yyj4519++ - if yyhl4519 { - yyb4519 = yyj4519 > l + var yyj4602 int + var yyb4602 bool + var yyhl4602 bool = l >= 0 + yyj4602++ + if yyhl4602 { + yyb4602 = yyj4602 > l } else { - yyb4519 = r.CheckBreak() + yyb4602 = r.CheckBreak() } - if yyb4519 { + if yyb4602 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -56101,13 +57181,13 @@ func (x *RangeAllocation) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) } else { x.Kind = string(r.DecodeString()) } - yyj4519++ - if yyhl4519 { - yyb4519 = yyj4519 > l + yyj4602++ + if yyhl4602 { + yyb4602 = yyj4602 > l } else { - yyb4519 = r.CheckBreak() + yyb4602 = r.CheckBreak() } - if yyb4519 { + if yyb4602 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -56117,13 +57197,13 @@ func (x *RangeAllocation) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) } else { x.APIVersion = string(r.DecodeString()) } - yyj4519++ - if yyhl4519 { - yyb4519 = yyj4519 > l + yyj4602++ + if yyhl4602 { + yyb4602 = yyj4602 > l } else { - yyb4519 = r.CheckBreak() + yyb4602 = r.CheckBreak() } - if yyb4519 { + if yyb4602 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -56131,16 +57211,16 @@ func (x *RangeAllocation) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) if r.TryDecodeAsNil() { x.ObjectMeta = ObjectMeta{} } else { - yyv4522 := &x.ObjectMeta - yyv4522.CodecDecodeSelf(d) + yyv4605 := &x.ObjectMeta + yyv4605.CodecDecodeSelf(d) } - yyj4519++ - if yyhl4519 { - yyb4519 = yyj4519 > l + yyj4602++ + if yyhl4602 { + yyb4602 = yyj4602 > l } else { - yyb4519 = r.CheckBreak() + yyb4602 = r.CheckBreak() } - if yyb4519 { + if yyb4602 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -56150,13 +57230,13 @@ func (x *RangeAllocation) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) } else { x.Range = string(r.DecodeString()) } - yyj4519++ - if yyhl4519 { - yyb4519 = yyj4519 > l + yyj4602++ + if yyhl4602 { + yyb4602 = yyj4602 > l } else { - yyb4519 = r.CheckBreak() + yyb4602 = r.CheckBreak() } - if yyb4519 { + if yyb4602 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -56164,26 +57244,26 @@ func (x *RangeAllocation) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) if r.TryDecodeAsNil() { x.Data = nil } else { - yyv4524 := &x.Data - yym4525 := z.DecBinary() - _ = yym4525 + yyv4607 := &x.Data + yym4608 := z.DecBinary() + _ = yym4608 if false { } else { - *yyv4524 = r.DecodeBytes(*(*[]byte)(yyv4524), false, false) + *yyv4607 = r.DecodeBytes(*(*[]byte)(yyv4607), false, false) } } for { - yyj4519++ - if yyhl4519 { - yyb4519 = yyj4519 > l + yyj4602++ + if yyhl4602 { + yyb4602 = yyj4602 > l } else { - yyb4519 = r.CheckBreak() + yyb4602 = r.CheckBreak() } - if yyb4519 { + if yyb4602 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj4519-1, "") + z.DecStructFieldNotFound(yyj4602-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -56193,10 +57273,10 @@ func (x codecSelfer1234) encSliceOwnerReference(v []OwnerReference, e *codec1978 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r r.EncodeArrayStart(len(v)) - for _, yyv4526 := range v { + for _, yyv4609 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy4527 := &yyv4526 - yy4527.CodecEncodeSelf(e) + yy4610 := &yyv4609 + yy4610.CodecEncodeSelf(e) } z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -56206,83 +57286,83 @@ func (x codecSelfer1234) decSliceOwnerReference(v *[]OwnerReference, d *codec197 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - 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 + yyv4611 := *v + yyh4611, yyl4611 := z.DecSliceHelperStart() + var yyc4611 bool + if yyl4611 == 0 { + if yyv4611 == nil { + yyv4611 = []OwnerReference{} + yyc4611 = true + } else if len(yyv4611) != 0 { + yyv4611 = yyv4611[:0] + yyc4611 = true } - } else if yyl4528 > 0 { - var yyrr4528, yyrl4528 int - var yyrt4528 bool - if yyl4528 > cap(yyv4528) { + } else if yyl4611 > 0 { + var yyrr4611, yyrl4611 int + var yyrt4611 bool + if yyl4611 > cap(yyv4611) { - yyrg4528 := len(yyv4528) > 0 - yyv24528 := yyv4528 - yyrl4528, yyrt4528 = z.DecInferLen(yyl4528, z.DecBasicHandle().MaxInitLen, 72) - if yyrt4528 { - if yyrl4528 <= cap(yyv4528) { - yyv4528 = yyv4528[:yyrl4528] + yyrg4611 := len(yyv4611) > 0 + yyv24611 := yyv4611 + yyrl4611, yyrt4611 = z.DecInferLen(yyl4611, z.DecBasicHandle().MaxInitLen, 72) + if yyrt4611 { + if yyrl4611 <= cap(yyv4611) { + yyv4611 = yyv4611[:yyrl4611] } else { - yyv4528 = make([]OwnerReference, yyrl4528) + yyv4611 = make([]OwnerReference, yyrl4611) } } else { - yyv4528 = make([]OwnerReference, yyrl4528) + yyv4611 = make([]OwnerReference, yyrl4611) } - yyc4528 = true - yyrr4528 = len(yyv4528) - if yyrg4528 { - copy(yyv4528, yyv24528) + yyc4611 = true + yyrr4611 = len(yyv4611) + if yyrg4611 { + copy(yyv4611, yyv24611) } - } else if yyl4528 != len(yyv4528) { - yyv4528 = yyv4528[:yyl4528] - yyc4528 = true + } else if yyl4611 != len(yyv4611) { + yyv4611 = yyv4611[:yyl4611] + yyc4611 = true } - yyj4528 := 0 - for ; yyj4528 < yyrr4528; yyj4528++ { - yyh4528.ElemContainerState(yyj4528) + yyj4611 := 0 + for ; yyj4611 < yyrr4611; yyj4611++ { + yyh4611.ElemContainerState(yyj4611) if r.TryDecodeAsNil() { - yyv4528[yyj4528] = OwnerReference{} + yyv4611[yyj4611] = OwnerReference{} } else { - yyv4529 := &yyv4528[yyj4528] - yyv4529.CodecDecodeSelf(d) + yyv4612 := &yyv4611[yyj4611] + yyv4612.CodecDecodeSelf(d) } } - if yyrt4528 { - for ; yyj4528 < yyl4528; yyj4528++ { - yyv4528 = append(yyv4528, OwnerReference{}) - yyh4528.ElemContainerState(yyj4528) + if yyrt4611 { + for ; yyj4611 < yyl4611; yyj4611++ { + yyv4611 = append(yyv4611, OwnerReference{}) + yyh4611.ElemContainerState(yyj4611) if r.TryDecodeAsNil() { - yyv4528[yyj4528] = OwnerReference{} + yyv4611[yyj4611] = OwnerReference{} } else { - yyv4530 := &yyv4528[yyj4528] - yyv4530.CodecDecodeSelf(d) + yyv4613 := &yyv4611[yyj4611] + yyv4613.CodecDecodeSelf(d) } } } } else { - yyj4528 := 0 - for ; !r.CheckBreak(); yyj4528++ { + yyj4611 := 0 + for ; !r.CheckBreak(); yyj4611++ { - if yyj4528 >= len(yyv4528) { - yyv4528 = append(yyv4528, OwnerReference{}) // var yyz4528 OwnerReference - yyc4528 = true + if yyj4611 >= len(yyv4611) { + yyv4611 = append(yyv4611, OwnerReference{}) // var yyz4611 OwnerReference + yyc4611 = true } - yyh4528.ElemContainerState(yyj4528) - if yyj4528 < len(yyv4528) { + yyh4611.ElemContainerState(yyj4611) + if yyj4611 < len(yyv4611) { if r.TryDecodeAsNil() { - yyv4528[yyj4528] = OwnerReference{} + yyv4611[yyj4611] = OwnerReference{} } else { - yyv4531 := &yyv4528[yyj4528] - yyv4531.CodecDecodeSelf(d) + yyv4614 := &yyv4611[yyj4611] + yyv4614.CodecDecodeSelf(d) } } else { @@ -56290,17 +57370,17 @@ func (x codecSelfer1234) decSliceOwnerReference(v *[]OwnerReference, d *codec197 } } - if yyj4528 < len(yyv4528) { - yyv4528 = yyv4528[:yyj4528] - yyc4528 = true - } else if yyj4528 == 0 && yyv4528 == nil { - yyv4528 = []OwnerReference{} - yyc4528 = true + if yyj4611 < len(yyv4611) { + yyv4611 = yyv4611[:yyj4611] + yyc4611 = true + } else if yyj4611 == 0 && yyv4611 == nil { + yyv4611 = []OwnerReference{} + yyc4611 = true } } - yyh4528.End() - if yyc4528 { - *v = yyv4528 + yyh4611.End() + if yyc4611 { + *v = yyv4611 } } @@ -56309,9 +57389,9 @@ func (x codecSelfer1234) encSlicePersistentVolumeAccessMode(v []PersistentVolume z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r r.EncodeArrayStart(len(v)) - for _, yyv4532 := range v { + for _, yyv4615 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yyv4532.CodecEncodeSelf(e) + yyv4615.CodecEncodeSelf(e) } z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -56321,1619 +57401,12 @@ func (x codecSelfer1234) decSlicePersistentVolumeAccessMode(v *[]PersistentVolum z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - 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 yyl4533 > 0 { - var yyrr4533, yyrl4533 int - var yyrt4533 bool - if yyl4533 > cap(yyv4533) { - - yyrl4533, yyrt4533 = z.DecInferLen(yyl4533, z.DecBasicHandle().MaxInitLen, 16) - if yyrt4533 { - if yyrl4533 <= cap(yyv4533) { - yyv4533 = yyv4533[:yyrl4533] - } else { - yyv4533 = make([]PersistentVolumeAccessMode, yyrl4533) - } - } else { - yyv4533 = make([]PersistentVolumeAccessMode, yyrl4533) - } - yyc4533 = true - yyrr4533 = len(yyv4533) - } else if yyl4533 != len(yyv4533) { - yyv4533 = yyv4533[:yyl4533] - yyc4533 = true - } - yyj4533 := 0 - for ; yyj4533 < yyrr4533; yyj4533++ { - yyh4533.ElemContainerState(yyj4533) - if r.TryDecodeAsNil() { - yyv4533[yyj4533] = "" - } else { - yyv4533[yyj4533] = PersistentVolumeAccessMode(r.DecodeString()) - } - - } - if yyrt4533 { - for ; yyj4533 < yyl4533; yyj4533++ { - yyv4533 = append(yyv4533, "") - yyh4533.ElemContainerState(yyj4533) - if r.TryDecodeAsNil() { - yyv4533[yyj4533] = "" - } else { - yyv4533[yyj4533] = PersistentVolumeAccessMode(r.DecodeString()) - } - - } - } - - } else { - yyj4533 := 0 - for ; !r.CheckBreak(); yyj4533++ { - - if yyj4533 >= len(yyv4533) { - yyv4533 = append(yyv4533, "") // var yyz4533 PersistentVolumeAccessMode - yyc4533 = true - } - yyh4533.ElemContainerState(yyj4533) - if yyj4533 < len(yyv4533) { - if r.TryDecodeAsNil() { - yyv4533[yyj4533] = "" - } else { - yyv4533[yyj4533] = PersistentVolumeAccessMode(r.DecodeString()) - } - - } else { - z.DecSwallow() - } - - } - if yyj4533 < len(yyv4533) { - yyv4533 = yyv4533[:yyj4533] - yyc4533 = true - } else if yyj4533 == 0 && yyv4533 == nil { - yyv4533 = []PersistentVolumeAccessMode{} - yyc4533 = true - } - } - yyh4533.End() - if yyc4533 { - *v = yyv4533 - } -} - -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 _, yyv4537 := range v { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy4538 := &yyv4537 - yy4538.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 - - 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 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, 488) - if yyrt4539 { - if yyrl4539 <= cap(yyv4539) { - yyv4539 = yyv4539[:yyrl4539] - } else { - yyv4539 = make([]PersistentVolume, yyrl4539) - } - } else { - yyv4539 = make([]PersistentVolume, 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] = PersistentVolume{} - } else { - yyv4540 := &yyv4539[yyj4539] - yyv4540.CodecDecodeSelf(d) - } - - } - if yyrt4539 { - for ; yyj4539 < yyl4539; yyj4539++ { - yyv4539 = append(yyv4539, PersistentVolume{}) - yyh4539.ElemContainerState(yyj4539) - if r.TryDecodeAsNil() { - yyv4539[yyj4539] = PersistentVolume{} - } else { - yyv4541 := &yyv4539[yyj4539] - yyv4541.CodecDecodeSelf(d) - } - - } - } - - } else { - yyj4539 := 0 - for ; !r.CheckBreak(); yyj4539++ { - - if yyj4539 >= len(yyv4539) { - yyv4539 = append(yyv4539, PersistentVolume{}) // var yyz4539 PersistentVolume - yyc4539 = true - } - yyh4539.ElemContainerState(yyj4539) - if yyj4539 < len(yyv4539) { - if r.TryDecodeAsNil() { - yyv4539[yyj4539] = PersistentVolume{} - } else { - yyv4542 := &yyv4539[yyj4539] - yyv4542.CodecDecodeSelf(d) - } - - } else { - z.DecSwallow() - } - - } - if yyj4539 < len(yyv4539) { - yyv4539 = yyv4539[:yyj4539] - yyc4539 = true - } else if yyj4539 == 0 && yyv4539 == nil { - yyv4539 = []PersistentVolume{} - yyc4539 = true - } - } - yyh4539.End() - if yyc4539 { - *v = yyv4539 - } -} - -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 _, yyv4543 := range v { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy4544 := &yyv4543 - yy4544.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 - - 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 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, 368) - if yyrt4545 { - if yyrl4545 <= cap(yyv4545) { - yyv4545 = yyv4545[:yyrl4545] - } else { - yyv4545 = make([]PersistentVolumeClaim, yyrl4545) - } - } else { - yyv4545 = make([]PersistentVolumeClaim, 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] = PersistentVolumeClaim{} - } else { - yyv4546 := &yyv4545[yyj4545] - yyv4546.CodecDecodeSelf(d) - } - - } - if yyrt4545 { - for ; yyj4545 < yyl4545; yyj4545++ { - yyv4545 = append(yyv4545, PersistentVolumeClaim{}) - yyh4545.ElemContainerState(yyj4545) - if r.TryDecodeAsNil() { - yyv4545[yyj4545] = PersistentVolumeClaim{} - } else { - yyv4547 := &yyv4545[yyj4545] - yyv4547.CodecDecodeSelf(d) - } - - } - } - - } else { - yyj4545 := 0 - for ; !r.CheckBreak(); yyj4545++ { - - if yyj4545 >= len(yyv4545) { - yyv4545 = append(yyv4545, PersistentVolumeClaim{}) // var yyz4545 PersistentVolumeClaim - yyc4545 = true - } - yyh4545.ElemContainerState(yyj4545) - if yyj4545 < len(yyv4545) { - if r.TryDecodeAsNil() { - yyv4545[yyj4545] = PersistentVolumeClaim{} - } else { - yyv4548 := &yyv4545[yyj4545] - yyv4548.CodecDecodeSelf(d) - } - - } else { - z.DecSwallow() - } - - } - if yyj4545 < len(yyv4545) { - yyv4545 = yyv4545[:yyj4545] - yyc4545 = true - } else if yyj4545 == 0 && yyv4545 == nil { - yyv4545 = []PersistentVolumeClaim{} - yyc4545 = true - } - } - yyh4545.End() - if yyc4545 { - *v = yyv4545 - } -} - -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 _, yyv4549 := range v { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy4550 := &yyv4549 - yy4550.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 - - 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 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, 40) - if yyrt4551 { - if yyrl4551 <= cap(yyv4551) { - yyv4551 = yyv4551[:yyrl4551] - } else { - yyv4551 = make([]KeyToPath, yyrl4551) - } - } else { - yyv4551 = make([]KeyToPath, 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] = KeyToPath{} - } else { - yyv4552 := &yyv4551[yyj4551] - yyv4552.CodecDecodeSelf(d) - } - - } - if yyrt4551 { - for ; yyj4551 < yyl4551; yyj4551++ { - yyv4551 = append(yyv4551, KeyToPath{}) - yyh4551.ElemContainerState(yyj4551) - if r.TryDecodeAsNil() { - yyv4551[yyj4551] = KeyToPath{} - } else { - yyv4553 := &yyv4551[yyj4551] - yyv4553.CodecDecodeSelf(d) - } - - } - } - - } else { - yyj4551 := 0 - for ; !r.CheckBreak(); yyj4551++ { - - if yyj4551 >= len(yyv4551) { - yyv4551 = append(yyv4551, KeyToPath{}) // var yyz4551 KeyToPath - yyc4551 = true - } - yyh4551.ElemContainerState(yyj4551) - if yyj4551 < len(yyv4551) { - if r.TryDecodeAsNil() { - yyv4551[yyj4551] = KeyToPath{} - } else { - yyv4554 := &yyv4551[yyj4551] - yyv4554.CodecDecodeSelf(d) - } - - } else { - z.DecSwallow() - } - - } - if yyj4551 < len(yyv4551) { - yyv4551 = yyv4551[:yyj4551] - yyc4551 = true - } else if yyj4551 == 0 && yyv4551 == nil { - yyv4551 = []KeyToPath{} - yyc4551 = true - } - } - yyh4551.End() - if yyc4551 { - *v = yyv4551 - } -} - -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 _, yyv4555 := range v { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy4556 := &yyv4555 - yy4556.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 - - 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 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, 40) - if yyrt4557 { - if yyrl4557 <= cap(yyv4557) { - yyv4557 = yyv4557[:yyrl4557] - } else { - yyv4557 = make([]DownwardAPIVolumeFile, yyrl4557) - } - } else { - yyv4557 = make([]DownwardAPIVolumeFile, 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] = DownwardAPIVolumeFile{} - } else { - yyv4558 := &yyv4557[yyj4557] - yyv4558.CodecDecodeSelf(d) - } - - } - if yyrt4557 { - for ; yyj4557 < yyl4557; yyj4557++ { - yyv4557 = append(yyv4557, DownwardAPIVolumeFile{}) - yyh4557.ElemContainerState(yyj4557) - if r.TryDecodeAsNil() { - yyv4557[yyj4557] = DownwardAPIVolumeFile{} - } else { - yyv4559 := &yyv4557[yyj4557] - yyv4559.CodecDecodeSelf(d) - } - - } - } - - } else { - yyj4557 := 0 - for ; !r.CheckBreak(); yyj4557++ { - - if yyj4557 >= len(yyv4557) { - yyv4557 = append(yyv4557, DownwardAPIVolumeFile{}) // var yyz4557 DownwardAPIVolumeFile - yyc4557 = true - } - yyh4557.ElemContainerState(yyj4557) - if yyj4557 < len(yyv4557) { - if r.TryDecodeAsNil() { - yyv4557[yyj4557] = DownwardAPIVolumeFile{} - } else { - yyv4560 := &yyv4557[yyj4557] - yyv4560.CodecDecodeSelf(d) - } - - } else { - z.DecSwallow() - } - - } - if yyj4557 < len(yyv4557) { - yyv4557 = yyv4557[:yyj4557] - yyc4557 = true - } else if yyj4557 == 0 && yyv4557 == nil { - yyv4557 = []DownwardAPIVolumeFile{} - yyc4557 = true - } - } - yyh4557.End() - if yyc4557 { - *v = yyv4557 - } -} - -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 _, yyv4561 := range v { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy4562 := &yyv4561 - yy4562.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 - - 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 yyl4563 > 0 { - var yyrr4563, yyrl4563 int - var yyrt4563 bool - if yyl4563 > cap(yyv4563) { - - 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 { - yyv4563 = make([]HTTPHeader, yyrl4563) - } - } else { - yyv4563 = make([]HTTPHeader, yyrl4563) - } - yyc4563 = true - yyrr4563 = len(yyv4563) - if yyrg4563 { - copy(yyv4563, yyv24563) - } - } else if yyl4563 != len(yyv4563) { - yyv4563 = yyv4563[:yyl4563] - yyc4563 = true - } - yyj4563 := 0 - for ; yyj4563 < yyrr4563; yyj4563++ { - yyh4563.ElemContainerState(yyj4563) - if r.TryDecodeAsNil() { - yyv4563[yyj4563] = HTTPHeader{} - } else { - yyv4564 := &yyv4563[yyj4563] - yyv4564.CodecDecodeSelf(d) - } - - } - if yyrt4563 { - for ; yyj4563 < yyl4563; yyj4563++ { - yyv4563 = append(yyv4563, HTTPHeader{}) - yyh4563.ElemContainerState(yyj4563) - if r.TryDecodeAsNil() { - yyv4563[yyj4563] = HTTPHeader{} - } else { - yyv4565 := &yyv4563[yyj4563] - yyv4565.CodecDecodeSelf(d) - } - - } - } - - } else { - yyj4563 := 0 - for ; !r.CheckBreak(); yyj4563++ { - - if yyj4563 >= len(yyv4563) { - yyv4563 = append(yyv4563, HTTPHeader{}) // var yyz4563 HTTPHeader - yyc4563 = true - } - yyh4563.ElemContainerState(yyj4563) - if yyj4563 < len(yyv4563) { - if r.TryDecodeAsNil() { - yyv4563[yyj4563] = HTTPHeader{} - } else { - yyv4566 := &yyv4563[yyj4563] - yyv4566.CodecDecodeSelf(d) - } - - } else { - z.DecSwallow() - } - - } - if yyj4563 < len(yyv4563) { - yyv4563 = yyv4563[:yyj4563] - yyc4563 = true - } else if yyj4563 == 0 && yyv4563 == nil { - yyv4563 = []HTTPHeader{} - yyc4563 = true - } - } - yyh4563.End() - if yyc4563 { - *v = yyv4563 - } -} - -func (x codecSelfer1234) encSliceCapability(v []Capability, e *codec1978.Encoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - r.EncodeArrayStart(len(v)) - for _, yyv4567 := range v { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yyv4567.CodecEncodeSelf(e) - } - z.EncSendContainerState(codecSelfer_containerArrayEnd1234) -} - -func (x codecSelfer1234) decSliceCapability(v *[]Capability, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - - yyv4568 := *v - yyh4568, yyl4568 := z.DecSliceHelperStart() - var yyc4568 bool - if yyl4568 == 0 { - if yyv4568 == nil { - yyv4568 = []Capability{} - yyc4568 = true - } else if len(yyv4568) != 0 { - yyv4568 = yyv4568[:0] - yyc4568 = true - } - } else if yyl4568 > 0 { - var yyrr4568, yyrl4568 int - var yyrt4568 bool - if yyl4568 > cap(yyv4568) { - - yyrl4568, yyrt4568 = z.DecInferLen(yyl4568, z.DecBasicHandle().MaxInitLen, 16) - if yyrt4568 { - if yyrl4568 <= cap(yyv4568) { - yyv4568 = yyv4568[:yyrl4568] - } else { - yyv4568 = make([]Capability, yyrl4568) - } - } else { - yyv4568 = make([]Capability, yyrl4568) - } - yyc4568 = true - yyrr4568 = len(yyv4568) - } else if yyl4568 != len(yyv4568) { - yyv4568 = yyv4568[:yyl4568] - yyc4568 = true - } - yyj4568 := 0 - for ; yyj4568 < yyrr4568; yyj4568++ { - yyh4568.ElemContainerState(yyj4568) - if r.TryDecodeAsNil() { - yyv4568[yyj4568] = "" - } else { - yyv4568[yyj4568] = Capability(r.DecodeString()) - } - - } - if yyrt4568 { - for ; yyj4568 < yyl4568; yyj4568++ { - yyv4568 = append(yyv4568, "") - yyh4568.ElemContainerState(yyj4568) - if r.TryDecodeAsNil() { - yyv4568[yyj4568] = "" - } else { - yyv4568[yyj4568] = Capability(r.DecodeString()) - } - - } - } - - } else { - yyj4568 := 0 - for ; !r.CheckBreak(); yyj4568++ { - - if yyj4568 >= len(yyv4568) { - yyv4568 = append(yyv4568, "") // var yyz4568 Capability - yyc4568 = true - } - yyh4568.ElemContainerState(yyj4568) - if yyj4568 < len(yyv4568) { - if r.TryDecodeAsNil() { - yyv4568[yyj4568] = "" - } else { - yyv4568[yyj4568] = Capability(r.DecodeString()) - } - - } else { - z.DecSwallow() - } - - } - if yyj4568 < len(yyv4568) { - yyv4568 = yyv4568[:yyj4568] - yyc4568 = true - } else if yyj4568 == 0 && yyv4568 == nil { - yyv4568 = []Capability{} - yyc4568 = true - } - } - yyh4568.End() - if yyc4568 { - *v = yyv4568 - } -} - -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 _, yyv4572 := range v { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy4573 := &yyv4572 - yy4573.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 - - 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 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, 56) - if yyrt4574 { - if yyrl4574 <= cap(yyv4574) { - yyv4574 = yyv4574[:yyrl4574] - } else { - yyv4574 = make([]ContainerPort, yyrl4574) - } - } else { - yyv4574 = make([]ContainerPort, 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] = ContainerPort{} - } else { - yyv4575 := &yyv4574[yyj4574] - yyv4575.CodecDecodeSelf(d) - } - - } - if yyrt4574 { - for ; yyj4574 < yyl4574; yyj4574++ { - yyv4574 = append(yyv4574, ContainerPort{}) - yyh4574.ElemContainerState(yyj4574) - if r.TryDecodeAsNil() { - yyv4574[yyj4574] = ContainerPort{} - } else { - yyv4576 := &yyv4574[yyj4574] - yyv4576.CodecDecodeSelf(d) - } - - } - } - - } else { - yyj4574 := 0 - for ; !r.CheckBreak(); yyj4574++ { - - if yyj4574 >= len(yyv4574) { - yyv4574 = append(yyv4574, ContainerPort{}) // var yyz4574 ContainerPort - yyc4574 = true - } - yyh4574.ElemContainerState(yyj4574) - if yyj4574 < len(yyv4574) { - if r.TryDecodeAsNil() { - yyv4574[yyj4574] = ContainerPort{} - } 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 = []ContainerPort{} - yyc4574 = true - } - } - yyh4574.End() - if yyc4574 { - *v = yyv4574 - } -} - -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 _, yyv4578 := range v { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy4579 := &yyv4578 - yy4579.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 - - 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 yyl4580 > 0 { - var yyrr4580, yyrl4580 int - var yyrt4580 bool - if yyl4580 > cap(yyv4580) { - - 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 { - yyv4580 = make([]EnvVar, yyrl4580) - } - } else { - yyv4580 = make([]EnvVar, yyrl4580) - } - yyc4580 = true - yyrr4580 = len(yyv4580) - if yyrg4580 { - copy(yyv4580, yyv24580) - } - } else if yyl4580 != len(yyv4580) { - yyv4580 = yyv4580[:yyl4580] - yyc4580 = true - } - yyj4580 := 0 - for ; yyj4580 < yyrr4580; yyj4580++ { - yyh4580.ElemContainerState(yyj4580) - if r.TryDecodeAsNil() { - yyv4580[yyj4580] = EnvVar{} - } else { - yyv4581 := &yyv4580[yyj4580] - yyv4581.CodecDecodeSelf(d) - } - - } - if yyrt4580 { - for ; yyj4580 < yyl4580; yyj4580++ { - yyv4580 = append(yyv4580, EnvVar{}) - yyh4580.ElemContainerState(yyj4580) - if r.TryDecodeAsNil() { - yyv4580[yyj4580] = EnvVar{} - } else { - yyv4582 := &yyv4580[yyj4580] - yyv4582.CodecDecodeSelf(d) - } - - } - } - - } else { - yyj4580 := 0 - for ; !r.CheckBreak(); yyj4580++ { - - if yyj4580 >= len(yyv4580) { - yyv4580 = append(yyv4580, EnvVar{}) // var yyz4580 EnvVar - yyc4580 = true - } - yyh4580.ElemContainerState(yyj4580) - if yyj4580 < len(yyv4580) { - if r.TryDecodeAsNil() { - yyv4580[yyj4580] = EnvVar{} - } else { - yyv4583 := &yyv4580[yyj4580] - yyv4583.CodecDecodeSelf(d) - } - - } else { - z.DecSwallow() - } - - } - if yyj4580 < len(yyv4580) { - yyv4580 = yyv4580[:yyj4580] - yyc4580 = true - } else if yyj4580 == 0 && yyv4580 == nil { - yyv4580 = []EnvVar{} - yyc4580 = true - } - } - yyh4580.End() - if yyc4580 { - *v = yyv4580 - } -} - -func (x codecSelfer1234) encSliceVolumeMount(v []VolumeMount, e *codec1978.Encoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - r.EncodeArrayStart(len(v)) - for _, yyv4584 := range v { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy4585 := &yyv4584 - yy4585.CodecEncodeSelf(e) - } - z.EncSendContainerState(codecSelfer_containerArrayEnd1234) -} - -func (x codecSelfer1234) decSliceVolumeMount(v *[]VolumeMount, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - - yyv4586 := *v - yyh4586, yyl4586 := z.DecSliceHelperStart() - var yyc4586 bool - if yyl4586 == 0 { - if yyv4586 == nil { - yyv4586 = []VolumeMount{} - yyc4586 = true - } else if len(yyv4586) != 0 { - yyv4586 = yyv4586[:0] - yyc4586 = true - } - } else if yyl4586 > 0 { - var yyrr4586, yyrl4586 int - var yyrt4586 bool - if yyl4586 > cap(yyv4586) { - - yyrg4586 := len(yyv4586) > 0 - yyv24586 := yyv4586 - yyrl4586, yyrt4586 = z.DecInferLen(yyl4586, z.DecBasicHandle().MaxInitLen, 56) - if yyrt4586 { - if yyrl4586 <= cap(yyv4586) { - yyv4586 = yyv4586[:yyrl4586] - } else { - yyv4586 = make([]VolumeMount, yyrl4586) - } - } else { - yyv4586 = make([]VolumeMount, yyrl4586) - } - yyc4586 = true - yyrr4586 = len(yyv4586) - if yyrg4586 { - copy(yyv4586, yyv24586) - } - } else if yyl4586 != len(yyv4586) { - yyv4586 = yyv4586[:yyl4586] - yyc4586 = true - } - yyj4586 := 0 - for ; yyj4586 < yyrr4586; yyj4586++ { - yyh4586.ElemContainerState(yyj4586) - if r.TryDecodeAsNil() { - yyv4586[yyj4586] = VolumeMount{} - } else { - yyv4587 := &yyv4586[yyj4586] - yyv4587.CodecDecodeSelf(d) - } - - } - if yyrt4586 { - for ; yyj4586 < yyl4586; yyj4586++ { - yyv4586 = append(yyv4586, VolumeMount{}) - yyh4586.ElemContainerState(yyj4586) - if r.TryDecodeAsNil() { - yyv4586[yyj4586] = VolumeMount{} - } else { - yyv4588 := &yyv4586[yyj4586] - yyv4588.CodecDecodeSelf(d) - } - - } - } - - } else { - yyj4586 := 0 - for ; !r.CheckBreak(); yyj4586++ { - - if yyj4586 >= len(yyv4586) { - yyv4586 = append(yyv4586, VolumeMount{}) // var yyz4586 VolumeMount - yyc4586 = true - } - yyh4586.ElemContainerState(yyj4586) - if yyj4586 < len(yyv4586) { - if r.TryDecodeAsNil() { - yyv4586[yyj4586] = VolumeMount{} - } else { - yyv4589 := &yyv4586[yyj4586] - yyv4589.CodecDecodeSelf(d) - } - - } else { - z.DecSwallow() - } - - } - if yyj4586 < len(yyv4586) { - yyv4586 = yyv4586[:yyj4586] - yyc4586 = true - } else if yyj4586 == 0 && yyv4586 == nil { - yyv4586 = []VolumeMount{} - yyc4586 = true - } - } - yyh4586.End() - if yyc4586 { - *v = yyv4586 - } -} - -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 _, yyv4590 := range v { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy4591 := &yyv4590 - yy4591.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 - - 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 yyl4592 > 0 { - var yyrr4592, yyrl4592 int - var yyrt4592 bool - if yyl4592 > cap(yyv4592) { - - 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 { - yyv4592 = make([]Pod, yyrl4592) - } - } else { - yyv4592 = make([]Pod, yyrl4592) - } - yyc4592 = true - yyrr4592 = len(yyv4592) - if yyrg4592 { - copy(yyv4592, yyv24592) - } - } else if yyl4592 != len(yyv4592) { - yyv4592 = yyv4592[:yyl4592] - yyc4592 = true - } - yyj4592 := 0 - for ; yyj4592 < yyrr4592; yyj4592++ { - yyh4592.ElemContainerState(yyj4592) - if r.TryDecodeAsNil() { - yyv4592[yyj4592] = Pod{} - } else { - yyv4593 := &yyv4592[yyj4592] - yyv4593.CodecDecodeSelf(d) - } - - } - if yyrt4592 { - for ; yyj4592 < yyl4592; yyj4592++ { - yyv4592 = append(yyv4592, Pod{}) - yyh4592.ElemContainerState(yyj4592) - if r.TryDecodeAsNil() { - yyv4592[yyj4592] = Pod{} - } else { - yyv4594 := &yyv4592[yyj4592] - yyv4594.CodecDecodeSelf(d) - } - - } - } - - } else { - yyj4592 := 0 - for ; !r.CheckBreak(); yyj4592++ { - - if yyj4592 >= len(yyv4592) { - yyv4592 = append(yyv4592, Pod{}) // var yyz4592 Pod - yyc4592 = true - } - yyh4592.ElemContainerState(yyj4592) - if yyj4592 < len(yyv4592) { - if r.TryDecodeAsNil() { - yyv4592[yyj4592] = Pod{} - } else { - yyv4595 := &yyv4592[yyj4592] - yyv4595.CodecDecodeSelf(d) - } - - } else { - z.DecSwallow() - } - - } - if yyj4592 < len(yyv4592) { - yyv4592 = yyv4592[:yyj4592] - yyc4592 = true - } else if yyj4592 == 0 && yyv4592 == nil { - yyv4592 = []Pod{} - yyc4592 = true - } - } - yyh4592.End() - if yyc4592 { - *v = yyv4592 - } -} - -func (x codecSelfer1234) encSliceNodeSelectorTerm(v []NodeSelectorTerm, e *codec1978.Encoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - r.EncodeArrayStart(len(v)) - for _, yyv4596 := range v { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy4597 := &yyv4596 - yy4597.CodecEncodeSelf(e) - } - z.EncSendContainerState(codecSelfer_containerArrayEnd1234) -} - -func (x codecSelfer1234) decSliceNodeSelectorTerm(v *[]NodeSelectorTerm, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - - yyv4598 := *v - yyh4598, yyl4598 := z.DecSliceHelperStart() - var yyc4598 bool - if yyl4598 == 0 { - if yyv4598 == nil { - yyv4598 = []NodeSelectorTerm{} - yyc4598 = true - } else if len(yyv4598) != 0 { - yyv4598 = yyv4598[:0] - yyc4598 = true - } - } else if yyl4598 > 0 { - var yyrr4598, yyrl4598 int - var yyrt4598 bool - if yyl4598 > cap(yyv4598) { - - yyrg4598 := len(yyv4598) > 0 - yyv24598 := yyv4598 - yyrl4598, yyrt4598 = z.DecInferLen(yyl4598, z.DecBasicHandle().MaxInitLen, 24) - if yyrt4598 { - if yyrl4598 <= cap(yyv4598) { - yyv4598 = yyv4598[:yyrl4598] - } else { - yyv4598 = make([]NodeSelectorTerm, yyrl4598) - } - } else { - yyv4598 = make([]NodeSelectorTerm, yyrl4598) - } - yyc4598 = true - yyrr4598 = len(yyv4598) - if yyrg4598 { - copy(yyv4598, yyv24598) - } - } else if yyl4598 != len(yyv4598) { - yyv4598 = yyv4598[:yyl4598] - yyc4598 = true - } - yyj4598 := 0 - for ; yyj4598 < yyrr4598; yyj4598++ { - yyh4598.ElemContainerState(yyj4598) - if r.TryDecodeAsNil() { - yyv4598[yyj4598] = NodeSelectorTerm{} - } else { - yyv4599 := &yyv4598[yyj4598] - yyv4599.CodecDecodeSelf(d) - } - - } - if yyrt4598 { - for ; yyj4598 < yyl4598; yyj4598++ { - yyv4598 = append(yyv4598, NodeSelectorTerm{}) - yyh4598.ElemContainerState(yyj4598) - if r.TryDecodeAsNil() { - yyv4598[yyj4598] = NodeSelectorTerm{} - } else { - yyv4600 := &yyv4598[yyj4598] - yyv4600.CodecDecodeSelf(d) - } - - } - } - - } else { - yyj4598 := 0 - for ; !r.CheckBreak(); yyj4598++ { - - if yyj4598 >= len(yyv4598) { - yyv4598 = append(yyv4598, NodeSelectorTerm{}) // var yyz4598 NodeSelectorTerm - yyc4598 = true - } - yyh4598.ElemContainerState(yyj4598) - if yyj4598 < len(yyv4598) { - if r.TryDecodeAsNil() { - yyv4598[yyj4598] = NodeSelectorTerm{} - } else { - yyv4601 := &yyv4598[yyj4598] - yyv4601.CodecDecodeSelf(d) - } - - } else { - z.DecSwallow() - } - - } - if yyj4598 < len(yyv4598) { - yyv4598 = yyv4598[:yyj4598] - yyc4598 = true - } else if yyj4598 == 0 && yyv4598 == nil { - yyv4598 = []NodeSelectorTerm{} - yyc4598 = true - } - } - yyh4598.End() - if yyc4598 { - *v = yyv4598 - } -} - -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 _, yyv4602 := range v { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy4603 := &yyv4602 - yy4603.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 - - 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 yyl4604 > 0 { - var yyrr4604, yyrl4604 int - var yyrt4604 bool - if yyl4604 > cap(yyv4604) { - - 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 { - yyv4604 = make([]NodeSelectorRequirement, yyrl4604) - } - } else { - yyv4604 = make([]NodeSelectorRequirement, yyrl4604) - } - yyc4604 = true - yyrr4604 = len(yyv4604) - if yyrg4604 { - copy(yyv4604, yyv24604) - } - } else if yyl4604 != len(yyv4604) { - yyv4604 = yyv4604[:yyl4604] - yyc4604 = true - } - yyj4604 := 0 - for ; yyj4604 < yyrr4604; yyj4604++ { - yyh4604.ElemContainerState(yyj4604) - if r.TryDecodeAsNil() { - yyv4604[yyj4604] = NodeSelectorRequirement{} - } else { - yyv4605 := &yyv4604[yyj4604] - yyv4605.CodecDecodeSelf(d) - } - - } - if yyrt4604 { - for ; yyj4604 < yyl4604; yyj4604++ { - yyv4604 = append(yyv4604, NodeSelectorRequirement{}) - yyh4604.ElemContainerState(yyj4604) - if r.TryDecodeAsNil() { - yyv4604[yyj4604] = NodeSelectorRequirement{} - } else { - yyv4606 := &yyv4604[yyj4604] - yyv4606.CodecDecodeSelf(d) - } - - } - } - - } else { - yyj4604 := 0 - for ; !r.CheckBreak(); yyj4604++ { - - if yyj4604 >= len(yyv4604) { - yyv4604 = append(yyv4604, NodeSelectorRequirement{}) // var yyz4604 NodeSelectorRequirement - yyc4604 = true - } - yyh4604.ElemContainerState(yyj4604) - if yyj4604 < len(yyv4604) { - if r.TryDecodeAsNil() { - yyv4604[yyj4604] = NodeSelectorRequirement{} - } else { - yyv4607 := &yyv4604[yyj4604] - yyv4607.CodecDecodeSelf(d) - } - - } else { - z.DecSwallow() - } - - } - if yyj4604 < len(yyv4604) { - yyv4604 = yyv4604[:yyj4604] - yyc4604 = true - } else if yyj4604 == 0 && yyv4604 == nil { - yyv4604 = []NodeSelectorRequirement{} - yyc4604 = true - } - } - yyh4604.End() - if yyc4604 { - *v = yyv4604 - } -} - -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 _, yyv4608 := range v { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy4609 := &yyv4608 - yy4609.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 - - 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 yyl4610 > 0 { - var yyrr4610, yyrl4610 int - var yyrt4610 bool - if yyl4610 > cap(yyv4610) { - - 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 { - yyv4610 = make([]PodAffinityTerm, yyrl4610) - } - } else { - yyv4610 = make([]PodAffinityTerm, yyrl4610) - } - yyc4610 = true - yyrr4610 = len(yyv4610) - if yyrg4610 { - copy(yyv4610, yyv24610) - } - } else if yyl4610 != len(yyv4610) { - yyv4610 = yyv4610[:yyl4610] - yyc4610 = true - } - yyj4610 := 0 - for ; yyj4610 < yyrr4610; yyj4610++ { - yyh4610.ElemContainerState(yyj4610) - if r.TryDecodeAsNil() { - yyv4610[yyj4610] = PodAffinityTerm{} - } else { - yyv4611 := &yyv4610[yyj4610] - yyv4611.CodecDecodeSelf(d) - } - - } - if yyrt4610 { - for ; yyj4610 < yyl4610; yyj4610++ { - yyv4610 = append(yyv4610, PodAffinityTerm{}) - yyh4610.ElemContainerState(yyj4610) - if r.TryDecodeAsNil() { - yyv4610[yyj4610] = PodAffinityTerm{} - } else { - yyv4612 := &yyv4610[yyj4610] - yyv4612.CodecDecodeSelf(d) - } - - } - } - - } else { - yyj4610 := 0 - for ; !r.CheckBreak(); yyj4610++ { - - if yyj4610 >= len(yyv4610) { - yyv4610 = append(yyv4610, PodAffinityTerm{}) // var yyz4610 PodAffinityTerm - yyc4610 = true - } - yyh4610.ElemContainerState(yyj4610) - if yyj4610 < len(yyv4610) { - if r.TryDecodeAsNil() { - yyv4610[yyj4610] = PodAffinityTerm{} - } else { - yyv4613 := &yyv4610[yyj4610] - yyv4613.CodecDecodeSelf(d) - } - - } else { - z.DecSwallow() - } - - } - if yyj4610 < len(yyv4610) { - yyv4610 = yyv4610[:yyj4610] - yyc4610 = true - } else if yyj4610 == 0 && yyv4610 == nil { - yyv4610 = []PodAffinityTerm{} - yyc4610 = true - } - } - yyh4610.End() - if yyc4610 { - *v = yyv4610 - } -} - -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 _, yyv4614 := range v { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy4615 := &yyv4614 - yy4615.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 - yyv4616 := *v yyh4616, yyl4616 := z.DecSliceHelperStart() var yyc4616 bool if yyl4616 == 0 { if yyv4616 == nil { - yyv4616 = []WeightedPodAffinityTerm{} + yyv4616 = []PersistentVolumeAccessMode{} yyc4616 = true } else if len(yyv4616) != 0 { yyv4616 = yyv4616[:0] @@ -57944,23 +57417,18 @@ func (x codecSelfer1234) decSliceWeightedPodAffinityTerm(v *[]WeightedPodAffinit var yyrt4616 bool if yyl4616 > cap(yyv4616) { - yyrg4616 := len(yyv4616) > 0 - yyv24616 := yyv4616 - yyrl4616, yyrt4616 = z.DecInferLen(yyl4616, z.DecBasicHandle().MaxInitLen, 56) + yyrl4616, yyrt4616 = z.DecInferLen(yyl4616, z.DecBasicHandle().MaxInitLen, 16) if yyrt4616 { if yyrl4616 <= cap(yyv4616) { yyv4616 = yyv4616[:yyrl4616] } else { - yyv4616 = make([]WeightedPodAffinityTerm, yyrl4616) + yyv4616 = make([]PersistentVolumeAccessMode, yyrl4616) } } else { - yyv4616 = make([]WeightedPodAffinityTerm, yyrl4616) + yyv4616 = make([]PersistentVolumeAccessMode, yyrl4616) } yyc4616 = true yyrr4616 = len(yyv4616) - if yyrg4616 { - copy(yyv4616, yyv24616) - } } else if yyl4616 != len(yyv4616) { yyv4616 = yyv4616[:yyl4616] yyc4616 = true @@ -57969,22 +57437,20 @@ func (x codecSelfer1234) decSliceWeightedPodAffinityTerm(v *[]WeightedPodAffinit for ; yyj4616 < yyrr4616; yyj4616++ { yyh4616.ElemContainerState(yyj4616) if r.TryDecodeAsNil() { - yyv4616[yyj4616] = WeightedPodAffinityTerm{} + yyv4616[yyj4616] = "" } else { - yyv4617 := &yyv4616[yyj4616] - yyv4617.CodecDecodeSelf(d) + yyv4616[yyj4616] = PersistentVolumeAccessMode(r.DecodeString()) } } if yyrt4616 { for ; yyj4616 < yyl4616; yyj4616++ { - yyv4616 = append(yyv4616, WeightedPodAffinityTerm{}) + yyv4616 = append(yyv4616, "") yyh4616.ElemContainerState(yyj4616) if r.TryDecodeAsNil() { - yyv4616[yyj4616] = WeightedPodAffinityTerm{} + yyv4616[yyj4616] = "" } else { - yyv4618 := &yyv4616[yyj4616] - yyv4618.CodecDecodeSelf(d) + yyv4616[yyj4616] = PersistentVolumeAccessMode(r.DecodeString()) } } @@ -57995,16 +57461,15 @@ func (x codecSelfer1234) decSliceWeightedPodAffinityTerm(v *[]WeightedPodAffinit for ; !r.CheckBreak(); yyj4616++ { if yyj4616 >= len(yyv4616) { - yyv4616 = append(yyv4616, WeightedPodAffinityTerm{}) // var yyz4616 WeightedPodAffinityTerm + yyv4616 = append(yyv4616, "") // var yyz4616 PersistentVolumeAccessMode yyc4616 = true } yyh4616.ElemContainerState(yyj4616) if yyj4616 < len(yyv4616) { if r.TryDecodeAsNil() { - yyv4616[yyj4616] = WeightedPodAffinityTerm{} + yyv4616[yyj4616] = "" } else { - yyv4619 := &yyv4616[yyj4616] - yyv4619.CodecDecodeSelf(d) + yyv4616[yyj4616] = PersistentVolumeAccessMode(r.DecodeString()) } } else { @@ -58016,7 +57481,7 @@ func (x codecSelfer1234) decSliceWeightedPodAffinityTerm(v *[]WeightedPodAffinit yyv4616 = yyv4616[:yyj4616] yyc4616 = true } else if yyj4616 == 0 && yyv4616 == nil { - yyv4616 = []WeightedPodAffinityTerm{} + yyv4616 = []PersistentVolumeAccessMode{} yyc4616 = true } } @@ -58026,7 +57491,7 @@ func (x codecSelfer1234) decSliceWeightedPodAffinityTerm(v *[]WeightedPodAffinit } } -func (x codecSelfer1234) encSlicePreferredSchedulingTerm(v []PreferredSchedulingTerm, e *codec1978.Encoder) { +func (x codecSelfer1234) encSlicePersistentVolume(v []PersistentVolume, e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r @@ -58039,7 +57504,7 @@ func (x codecSelfer1234) encSlicePreferredSchedulingTerm(v []PreferredScheduling z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } -func (x codecSelfer1234) decSlicePreferredSchedulingTerm(v *[]PreferredSchedulingTerm, d *codec1978.Decoder) { +func (x codecSelfer1234) decSlicePersistentVolume(v *[]PersistentVolume, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r @@ -58049,7 +57514,7 @@ func (x codecSelfer1234) decSlicePreferredSchedulingTerm(v *[]PreferredSchedulin var yyc4622 bool if yyl4622 == 0 { if yyv4622 == nil { - yyv4622 = []PreferredSchedulingTerm{} + yyv4622 = []PersistentVolume{} yyc4622 = true } else if len(yyv4622) != 0 { yyv4622 = yyv4622[:0] @@ -58062,15 +57527,15 @@ func (x codecSelfer1234) decSlicePreferredSchedulingTerm(v *[]PreferredSchedulin yyrg4622 := len(yyv4622) > 0 yyv24622 := yyv4622 - yyrl4622, yyrt4622 = z.DecInferLen(yyl4622, z.DecBasicHandle().MaxInitLen, 32) + yyrl4622, yyrt4622 = z.DecInferLen(yyl4622, z.DecBasicHandle().MaxInitLen, 496) if yyrt4622 { if yyrl4622 <= cap(yyv4622) { yyv4622 = yyv4622[:yyrl4622] } else { - yyv4622 = make([]PreferredSchedulingTerm, yyrl4622) + yyv4622 = make([]PersistentVolume, yyrl4622) } } else { - yyv4622 = make([]PreferredSchedulingTerm, yyrl4622) + yyv4622 = make([]PersistentVolume, yyrl4622) } yyc4622 = true yyrr4622 = len(yyv4622) @@ -58085,7 +57550,7 @@ func (x codecSelfer1234) decSlicePreferredSchedulingTerm(v *[]PreferredSchedulin for ; yyj4622 < yyrr4622; yyj4622++ { yyh4622.ElemContainerState(yyj4622) if r.TryDecodeAsNil() { - yyv4622[yyj4622] = PreferredSchedulingTerm{} + yyv4622[yyj4622] = PersistentVolume{} } else { yyv4623 := &yyv4622[yyj4622] yyv4623.CodecDecodeSelf(d) @@ -58094,10 +57559,10 @@ func (x codecSelfer1234) decSlicePreferredSchedulingTerm(v *[]PreferredSchedulin } if yyrt4622 { for ; yyj4622 < yyl4622; yyj4622++ { - yyv4622 = append(yyv4622, PreferredSchedulingTerm{}) + yyv4622 = append(yyv4622, PersistentVolume{}) yyh4622.ElemContainerState(yyj4622) if r.TryDecodeAsNil() { - yyv4622[yyj4622] = PreferredSchedulingTerm{} + yyv4622[yyj4622] = PersistentVolume{} } else { yyv4624 := &yyv4622[yyj4622] yyv4624.CodecDecodeSelf(d) @@ -58111,13 +57576,13 @@ func (x codecSelfer1234) decSlicePreferredSchedulingTerm(v *[]PreferredSchedulin for ; !r.CheckBreak(); yyj4622++ { if yyj4622 >= len(yyv4622) { - yyv4622 = append(yyv4622, PreferredSchedulingTerm{}) // var yyz4622 PreferredSchedulingTerm + yyv4622 = append(yyv4622, PersistentVolume{}) // var yyz4622 PersistentVolume yyc4622 = true } yyh4622.ElemContainerState(yyj4622) if yyj4622 < len(yyv4622) { if r.TryDecodeAsNil() { - yyv4622[yyj4622] = PreferredSchedulingTerm{} + yyv4622[yyj4622] = PersistentVolume{} } else { yyv4625 := &yyv4622[yyj4622] yyv4625.CodecDecodeSelf(d) @@ -58132,7 +57597,7 @@ func (x codecSelfer1234) decSlicePreferredSchedulingTerm(v *[]PreferredSchedulin yyv4622 = yyv4622[:yyj4622] yyc4622 = true } else if yyj4622 == 0 && yyv4622 == nil { - yyv4622 = []PreferredSchedulingTerm{} + yyv4622 = []PersistentVolume{} yyc4622 = true } } @@ -58142,7 +57607,7 @@ func (x codecSelfer1234) decSlicePreferredSchedulingTerm(v *[]PreferredSchedulin } } -func (x codecSelfer1234) encSliceVolume(v []Volume, e *codec1978.Encoder) { +func (x codecSelfer1234) encSlicePersistentVolumeClaim(v []PersistentVolumeClaim, e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r @@ -58155,7 +57620,7 @@ func (x codecSelfer1234) encSliceVolume(v []Volume, e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } -func (x codecSelfer1234) decSliceVolume(v *[]Volume, d *codec1978.Decoder) { +func (x codecSelfer1234) decSlicePersistentVolumeClaim(v *[]PersistentVolumeClaim, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r @@ -58165,7 +57630,7 @@ func (x codecSelfer1234) decSliceVolume(v *[]Volume, d *codec1978.Decoder) { var yyc4628 bool if yyl4628 == 0 { if yyv4628 == nil { - yyv4628 = []Volume{} + yyv4628 = []PersistentVolumeClaim{} yyc4628 = true } else if len(yyv4628) != 0 { yyv4628 = yyv4628[:0] @@ -58178,15 +57643,15 @@ func (x codecSelfer1234) decSliceVolume(v *[]Volume, d *codec1978.Decoder) { yyrg4628 := len(yyv4628) > 0 yyv24628 := yyv4628 - yyrl4628, yyrt4628 = z.DecInferLen(yyl4628, z.DecBasicHandle().MaxInitLen, 192) + yyrl4628, yyrt4628 = z.DecInferLen(yyl4628, z.DecBasicHandle().MaxInitLen, 368) if yyrt4628 { if yyrl4628 <= cap(yyv4628) { yyv4628 = yyv4628[:yyrl4628] } else { - yyv4628 = make([]Volume, yyrl4628) + yyv4628 = make([]PersistentVolumeClaim, yyrl4628) } } else { - yyv4628 = make([]Volume, yyrl4628) + yyv4628 = make([]PersistentVolumeClaim, yyrl4628) } yyc4628 = true yyrr4628 = len(yyv4628) @@ -58201,7 +57666,7 @@ func (x codecSelfer1234) decSliceVolume(v *[]Volume, d *codec1978.Decoder) { for ; yyj4628 < yyrr4628; yyj4628++ { yyh4628.ElemContainerState(yyj4628) if r.TryDecodeAsNil() { - yyv4628[yyj4628] = Volume{} + yyv4628[yyj4628] = PersistentVolumeClaim{} } else { yyv4629 := &yyv4628[yyj4628] yyv4629.CodecDecodeSelf(d) @@ -58210,10 +57675,10 @@ func (x codecSelfer1234) decSliceVolume(v *[]Volume, d *codec1978.Decoder) { } if yyrt4628 { for ; yyj4628 < yyl4628; yyj4628++ { - yyv4628 = append(yyv4628, Volume{}) + yyv4628 = append(yyv4628, PersistentVolumeClaim{}) yyh4628.ElemContainerState(yyj4628) if r.TryDecodeAsNil() { - yyv4628[yyj4628] = Volume{} + yyv4628[yyj4628] = PersistentVolumeClaim{} } else { yyv4630 := &yyv4628[yyj4628] yyv4630.CodecDecodeSelf(d) @@ -58227,13 +57692,13 @@ func (x codecSelfer1234) decSliceVolume(v *[]Volume, d *codec1978.Decoder) { for ; !r.CheckBreak(); yyj4628++ { if yyj4628 >= len(yyv4628) { - yyv4628 = append(yyv4628, Volume{}) // var yyz4628 Volume + yyv4628 = append(yyv4628, PersistentVolumeClaim{}) // var yyz4628 PersistentVolumeClaim yyc4628 = true } yyh4628.ElemContainerState(yyj4628) if yyj4628 < len(yyv4628) { if r.TryDecodeAsNil() { - yyv4628[yyj4628] = Volume{} + yyv4628[yyj4628] = PersistentVolumeClaim{} } else { yyv4631 := &yyv4628[yyj4628] yyv4631.CodecDecodeSelf(d) @@ -58248,7 +57713,7 @@ func (x codecSelfer1234) decSliceVolume(v *[]Volume, d *codec1978.Decoder) { yyv4628 = yyv4628[:yyj4628] yyc4628 = true } else if yyj4628 == 0 && yyv4628 == nil { - yyv4628 = []Volume{} + yyv4628 = []PersistentVolumeClaim{} yyc4628 = true } } @@ -58258,7 +57723,7 @@ func (x codecSelfer1234) decSliceVolume(v *[]Volume, d *codec1978.Decoder) { } } -func (x codecSelfer1234) encSliceContainer(v []Container, e *codec1978.Encoder) { +func (x codecSelfer1234) encSliceKeyToPath(v []KeyToPath, e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r @@ -58271,7 +57736,7 @@ func (x codecSelfer1234) encSliceContainer(v []Container, e *codec1978.Encoder) z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } -func (x codecSelfer1234) decSliceContainer(v *[]Container, d *codec1978.Decoder) { +func (x codecSelfer1234) decSliceKeyToPath(v *[]KeyToPath, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r @@ -58281,7 +57746,7 @@ func (x codecSelfer1234) decSliceContainer(v *[]Container, d *codec1978.Decoder) var yyc4634 bool if yyl4634 == 0 { if yyv4634 == nil { - yyv4634 = []Container{} + yyv4634 = []KeyToPath{} yyc4634 = true } else if len(yyv4634) != 0 { yyv4634 = yyv4634[:0] @@ -58294,15 +57759,15 @@ func (x codecSelfer1234) decSliceContainer(v *[]Container, d *codec1978.Decoder) yyrg4634 := len(yyv4634) > 0 yyv24634 := yyv4634 - yyrl4634, yyrt4634 = z.DecInferLen(yyl4634, z.DecBasicHandle().MaxInitLen, 256) + yyrl4634, yyrt4634 = z.DecInferLen(yyl4634, z.DecBasicHandle().MaxInitLen, 40) if yyrt4634 { if yyrl4634 <= cap(yyv4634) { yyv4634 = yyv4634[:yyrl4634] } else { - yyv4634 = make([]Container, yyrl4634) + yyv4634 = make([]KeyToPath, yyrl4634) } } else { - yyv4634 = make([]Container, yyrl4634) + yyv4634 = make([]KeyToPath, yyrl4634) } yyc4634 = true yyrr4634 = len(yyv4634) @@ -58317,7 +57782,7 @@ func (x codecSelfer1234) decSliceContainer(v *[]Container, d *codec1978.Decoder) for ; yyj4634 < yyrr4634; yyj4634++ { yyh4634.ElemContainerState(yyj4634) if r.TryDecodeAsNil() { - yyv4634[yyj4634] = Container{} + yyv4634[yyj4634] = KeyToPath{} } else { yyv4635 := &yyv4634[yyj4634] yyv4635.CodecDecodeSelf(d) @@ -58326,10 +57791,10 @@ func (x codecSelfer1234) decSliceContainer(v *[]Container, d *codec1978.Decoder) } if yyrt4634 { for ; yyj4634 < yyl4634; yyj4634++ { - yyv4634 = append(yyv4634, Container{}) + yyv4634 = append(yyv4634, KeyToPath{}) yyh4634.ElemContainerState(yyj4634) if r.TryDecodeAsNil() { - yyv4634[yyj4634] = Container{} + yyv4634[yyj4634] = KeyToPath{} } else { yyv4636 := &yyv4634[yyj4634] yyv4636.CodecDecodeSelf(d) @@ -58343,13 +57808,13 @@ func (x codecSelfer1234) decSliceContainer(v *[]Container, d *codec1978.Decoder) for ; !r.CheckBreak(); yyj4634++ { if yyj4634 >= len(yyv4634) { - yyv4634 = append(yyv4634, Container{}) // var yyz4634 Container + yyv4634 = append(yyv4634, KeyToPath{}) // var yyz4634 KeyToPath yyc4634 = true } yyh4634.ElemContainerState(yyj4634) if yyj4634 < len(yyv4634) { if r.TryDecodeAsNil() { - yyv4634[yyj4634] = Container{} + yyv4634[yyj4634] = KeyToPath{} } else { yyv4637 := &yyv4634[yyj4634] yyv4637.CodecDecodeSelf(d) @@ -58364,7 +57829,7 @@ func (x codecSelfer1234) decSliceContainer(v *[]Container, d *codec1978.Decoder) yyv4634 = yyv4634[:yyj4634] yyc4634 = true } else if yyj4634 == 0 && yyv4634 == nil { - yyv4634 = []Container{} + yyv4634 = []KeyToPath{} yyc4634 = true } } @@ -58374,7 +57839,7 @@ func (x codecSelfer1234) decSliceContainer(v *[]Container, d *codec1978.Decoder) } } -func (x codecSelfer1234) encSliceLocalObjectReference(v []LocalObjectReference, e *codec1978.Encoder) { +func (x codecSelfer1234) encSliceDownwardAPIVolumeFile(v []DownwardAPIVolumeFile, e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r @@ -58387,7 +57852,7 @@ func (x codecSelfer1234) encSliceLocalObjectReference(v []LocalObjectReference, z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } -func (x codecSelfer1234) decSliceLocalObjectReference(v *[]LocalObjectReference, d *codec1978.Decoder) { +func (x codecSelfer1234) decSliceDownwardAPIVolumeFile(v *[]DownwardAPIVolumeFile, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r @@ -58397,7 +57862,7 @@ func (x codecSelfer1234) decSliceLocalObjectReference(v *[]LocalObjectReference, var yyc4640 bool if yyl4640 == 0 { if yyv4640 == nil { - yyv4640 = []LocalObjectReference{} + yyv4640 = []DownwardAPIVolumeFile{} yyc4640 = true } else if len(yyv4640) != 0 { yyv4640 = yyv4640[:0] @@ -58410,15 +57875,15 @@ func (x codecSelfer1234) decSliceLocalObjectReference(v *[]LocalObjectReference, yyrg4640 := len(yyv4640) > 0 yyv24640 := yyv4640 - yyrl4640, yyrt4640 = z.DecInferLen(yyl4640, z.DecBasicHandle().MaxInitLen, 16) + yyrl4640, yyrt4640 = z.DecInferLen(yyl4640, z.DecBasicHandle().MaxInitLen, 40) if yyrt4640 { if yyrl4640 <= cap(yyv4640) { yyv4640 = yyv4640[:yyrl4640] } else { - yyv4640 = make([]LocalObjectReference, yyrl4640) + yyv4640 = make([]DownwardAPIVolumeFile, yyrl4640) } } else { - yyv4640 = make([]LocalObjectReference, yyrl4640) + yyv4640 = make([]DownwardAPIVolumeFile, yyrl4640) } yyc4640 = true yyrr4640 = len(yyv4640) @@ -58433,7 +57898,7 @@ func (x codecSelfer1234) decSliceLocalObjectReference(v *[]LocalObjectReference, for ; yyj4640 < yyrr4640; yyj4640++ { yyh4640.ElemContainerState(yyj4640) if r.TryDecodeAsNil() { - yyv4640[yyj4640] = LocalObjectReference{} + yyv4640[yyj4640] = DownwardAPIVolumeFile{} } else { yyv4641 := &yyv4640[yyj4640] yyv4641.CodecDecodeSelf(d) @@ -58442,10 +57907,10 @@ func (x codecSelfer1234) decSliceLocalObjectReference(v *[]LocalObjectReference, } if yyrt4640 { for ; yyj4640 < yyl4640; yyj4640++ { - yyv4640 = append(yyv4640, LocalObjectReference{}) + yyv4640 = append(yyv4640, DownwardAPIVolumeFile{}) yyh4640.ElemContainerState(yyj4640) if r.TryDecodeAsNil() { - yyv4640[yyj4640] = LocalObjectReference{} + yyv4640[yyj4640] = DownwardAPIVolumeFile{} } else { yyv4642 := &yyv4640[yyj4640] yyv4642.CodecDecodeSelf(d) @@ -58459,13 +57924,13 @@ func (x codecSelfer1234) decSliceLocalObjectReference(v *[]LocalObjectReference, for ; !r.CheckBreak(); yyj4640++ { if yyj4640 >= len(yyv4640) { - yyv4640 = append(yyv4640, LocalObjectReference{}) // var yyz4640 LocalObjectReference + yyv4640 = append(yyv4640, DownwardAPIVolumeFile{}) // var yyz4640 DownwardAPIVolumeFile yyc4640 = true } yyh4640.ElemContainerState(yyj4640) if yyj4640 < len(yyv4640) { if r.TryDecodeAsNil() { - yyv4640[yyj4640] = LocalObjectReference{} + yyv4640[yyj4640] = DownwardAPIVolumeFile{} } else { yyv4643 := &yyv4640[yyj4640] yyv4643.CodecDecodeSelf(d) @@ -58480,7 +57945,7 @@ func (x codecSelfer1234) decSliceLocalObjectReference(v *[]LocalObjectReference, yyv4640 = yyv4640[:yyj4640] yyc4640 = true } else if yyj4640 == 0 && yyv4640 == nil { - yyv4640 = []LocalObjectReference{} + yyv4640 = []DownwardAPIVolumeFile{} yyc4640 = true } } @@ -58490,7 +57955,7 @@ func (x codecSelfer1234) decSliceLocalObjectReference(v *[]LocalObjectReference, } } -func (x codecSelfer1234) encSlicePodCondition(v []PodCondition, e *codec1978.Encoder) { +func (x codecSelfer1234) encSliceHTTPHeader(v []HTTPHeader, e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r @@ -58503,7 +57968,7 @@ func (x codecSelfer1234) encSlicePodCondition(v []PodCondition, e *codec1978.Enc z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } -func (x codecSelfer1234) decSlicePodCondition(v *[]PodCondition, d *codec1978.Decoder) { +func (x codecSelfer1234) decSliceHTTPHeader(v *[]HTTPHeader, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r @@ -58513,7 +57978,7 @@ func (x codecSelfer1234) decSlicePodCondition(v *[]PodCondition, d *codec1978.De var yyc4646 bool if yyl4646 == 0 { if yyv4646 == nil { - yyv4646 = []PodCondition{} + yyv4646 = []HTTPHeader{} yyc4646 = true } else if len(yyv4646) != 0 { yyv4646 = yyv4646[:0] @@ -58526,15 +57991,15 @@ func (x codecSelfer1234) decSlicePodCondition(v *[]PodCondition, d *codec1978.De yyrg4646 := len(yyv4646) > 0 yyv24646 := yyv4646 - yyrl4646, yyrt4646 = z.DecInferLen(yyl4646, z.DecBasicHandle().MaxInitLen, 112) + yyrl4646, yyrt4646 = z.DecInferLen(yyl4646, z.DecBasicHandle().MaxInitLen, 32) if yyrt4646 { if yyrl4646 <= cap(yyv4646) { yyv4646 = yyv4646[:yyrl4646] } else { - yyv4646 = make([]PodCondition, yyrl4646) + yyv4646 = make([]HTTPHeader, yyrl4646) } } else { - yyv4646 = make([]PodCondition, yyrl4646) + yyv4646 = make([]HTTPHeader, yyrl4646) } yyc4646 = true yyrr4646 = len(yyv4646) @@ -58549,7 +58014,7 @@ func (x codecSelfer1234) decSlicePodCondition(v *[]PodCondition, d *codec1978.De for ; yyj4646 < yyrr4646; yyj4646++ { yyh4646.ElemContainerState(yyj4646) if r.TryDecodeAsNil() { - yyv4646[yyj4646] = PodCondition{} + yyv4646[yyj4646] = HTTPHeader{} } else { yyv4647 := &yyv4646[yyj4646] yyv4647.CodecDecodeSelf(d) @@ -58558,10 +58023,10 @@ func (x codecSelfer1234) decSlicePodCondition(v *[]PodCondition, d *codec1978.De } if yyrt4646 { for ; yyj4646 < yyl4646; yyj4646++ { - yyv4646 = append(yyv4646, PodCondition{}) + yyv4646 = append(yyv4646, HTTPHeader{}) yyh4646.ElemContainerState(yyj4646) if r.TryDecodeAsNil() { - yyv4646[yyj4646] = PodCondition{} + yyv4646[yyj4646] = HTTPHeader{} } else { yyv4648 := &yyv4646[yyj4646] yyv4648.CodecDecodeSelf(d) @@ -58575,13 +58040,13 @@ func (x codecSelfer1234) decSlicePodCondition(v *[]PodCondition, d *codec1978.De for ; !r.CheckBreak(); yyj4646++ { if yyj4646 >= len(yyv4646) { - yyv4646 = append(yyv4646, PodCondition{}) // var yyz4646 PodCondition + yyv4646 = append(yyv4646, HTTPHeader{}) // var yyz4646 HTTPHeader yyc4646 = true } yyh4646.ElemContainerState(yyj4646) if yyj4646 < len(yyv4646) { if r.TryDecodeAsNil() { - yyv4646[yyj4646] = PodCondition{} + yyv4646[yyj4646] = HTTPHeader{} } else { yyv4649 := &yyv4646[yyj4646] yyv4649.CodecDecodeSelf(d) @@ -58596,7 +58061,7 @@ func (x codecSelfer1234) decSlicePodCondition(v *[]PodCondition, d *codec1978.De yyv4646 = yyv4646[:yyj4646] yyc4646 = true } else if yyj4646 == 0 && yyv4646 == nil { - yyv4646 = []PodCondition{} + yyv4646 = []HTTPHeader{} yyc4646 = true } } @@ -58606,15 +58071,1630 @@ func (x codecSelfer1234) decSlicePodCondition(v *[]PodCondition, d *codec1978.De } } -func (x codecSelfer1234) encSliceContainerStatus(v []ContainerStatus, e *codec1978.Encoder) { +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 _, yyv4650 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy4651 := &yyv4650 - yy4651.CodecEncodeSelf(e) + yyv4650.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 + + yyv4651 := *v + yyh4651, yyl4651 := z.DecSliceHelperStart() + var yyc4651 bool + if yyl4651 == 0 { + if yyv4651 == nil { + yyv4651 = []Capability{} + yyc4651 = true + } else if len(yyv4651) != 0 { + yyv4651 = yyv4651[:0] + yyc4651 = true + } + } else if yyl4651 > 0 { + var yyrr4651, yyrl4651 int + var yyrt4651 bool + if yyl4651 > cap(yyv4651) { + + yyrl4651, yyrt4651 = z.DecInferLen(yyl4651, z.DecBasicHandle().MaxInitLen, 16) + if yyrt4651 { + if yyrl4651 <= cap(yyv4651) { + yyv4651 = yyv4651[:yyrl4651] + } else { + yyv4651 = make([]Capability, yyrl4651) + } + } else { + yyv4651 = make([]Capability, yyrl4651) + } + yyc4651 = true + yyrr4651 = len(yyv4651) + } else if yyl4651 != len(yyv4651) { + yyv4651 = yyv4651[:yyl4651] + yyc4651 = true + } + yyj4651 := 0 + for ; yyj4651 < yyrr4651; yyj4651++ { + yyh4651.ElemContainerState(yyj4651) + if r.TryDecodeAsNil() { + yyv4651[yyj4651] = "" + } else { + yyv4651[yyj4651] = Capability(r.DecodeString()) + } + + } + if yyrt4651 { + for ; yyj4651 < yyl4651; yyj4651++ { + yyv4651 = append(yyv4651, "") + yyh4651.ElemContainerState(yyj4651) + if r.TryDecodeAsNil() { + yyv4651[yyj4651] = "" + } else { + yyv4651[yyj4651] = Capability(r.DecodeString()) + } + + } + } + + } else { + yyj4651 := 0 + for ; !r.CheckBreak(); yyj4651++ { + + if yyj4651 >= len(yyv4651) { + yyv4651 = append(yyv4651, "") // var yyz4651 Capability + yyc4651 = true + } + yyh4651.ElemContainerState(yyj4651) + if yyj4651 < len(yyv4651) { + if r.TryDecodeAsNil() { + yyv4651[yyj4651] = "" + } else { + yyv4651[yyj4651] = Capability(r.DecodeString()) + } + + } else { + z.DecSwallow() + } + + } + if yyj4651 < len(yyv4651) { + yyv4651 = yyv4651[:yyj4651] + yyc4651 = true + } else if yyj4651 == 0 && yyv4651 == nil { + yyv4651 = []Capability{} + yyc4651 = true + } + } + yyh4651.End() + if yyc4651 { + *v = yyv4651 + } +} + +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 _, yyv4655 := range v { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yy4656 := &yyv4655 + yy4656.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 + + yyv4657 := *v + yyh4657, yyl4657 := z.DecSliceHelperStart() + var yyc4657 bool + if yyl4657 == 0 { + if yyv4657 == nil { + yyv4657 = []ContainerPort{} + yyc4657 = true + } else if len(yyv4657) != 0 { + yyv4657 = yyv4657[:0] + yyc4657 = true + } + } else if yyl4657 > 0 { + var yyrr4657, yyrl4657 int + var yyrt4657 bool + if yyl4657 > cap(yyv4657) { + + yyrg4657 := len(yyv4657) > 0 + yyv24657 := yyv4657 + yyrl4657, yyrt4657 = z.DecInferLen(yyl4657, z.DecBasicHandle().MaxInitLen, 56) + if yyrt4657 { + if yyrl4657 <= cap(yyv4657) { + yyv4657 = yyv4657[:yyrl4657] + } else { + yyv4657 = make([]ContainerPort, yyrl4657) + } + } else { + yyv4657 = make([]ContainerPort, yyrl4657) + } + yyc4657 = true + yyrr4657 = len(yyv4657) + if yyrg4657 { + copy(yyv4657, yyv24657) + } + } else if yyl4657 != len(yyv4657) { + yyv4657 = yyv4657[:yyl4657] + yyc4657 = true + } + yyj4657 := 0 + for ; yyj4657 < yyrr4657; yyj4657++ { + yyh4657.ElemContainerState(yyj4657) + if r.TryDecodeAsNil() { + yyv4657[yyj4657] = ContainerPort{} + } else { + yyv4658 := &yyv4657[yyj4657] + yyv4658.CodecDecodeSelf(d) + } + + } + if yyrt4657 { + for ; yyj4657 < yyl4657; yyj4657++ { + yyv4657 = append(yyv4657, ContainerPort{}) + yyh4657.ElemContainerState(yyj4657) + if r.TryDecodeAsNil() { + yyv4657[yyj4657] = ContainerPort{} + } else { + yyv4659 := &yyv4657[yyj4657] + yyv4659.CodecDecodeSelf(d) + } + + } + } + + } else { + yyj4657 := 0 + for ; !r.CheckBreak(); yyj4657++ { + + if yyj4657 >= len(yyv4657) { + yyv4657 = append(yyv4657, ContainerPort{}) // var yyz4657 ContainerPort + yyc4657 = true + } + yyh4657.ElemContainerState(yyj4657) + if yyj4657 < len(yyv4657) { + if r.TryDecodeAsNil() { + yyv4657[yyj4657] = ContainerPort{} + } else { + yyv4660 := &yyv4657[yyj4657] + yyv4660.CodecDecodeSelf(d) + } + + } else { + z.DecSwallow() + } + + } + if yyj4657 < len(yyv4657) { + yyv4657 = yyv4657[:yyj4657] + yyc4657 = true + } else if yyj4657 == 0 && yyv4657 == nil { + yyv4657 = []ContainerPort{} + yyc4657 = true + } + } + yyh4657.End() + if yyc4657 { + *v = yyv4657 + } +} + +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 _, yyv4661 := range v { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yy4662 := &yyv4661 + yy4662.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 + + yyv4663 := *v + yyh4663, yyl4663 := z.DecSliceHelperStart() + var yyc4663 bool + if yyl4663 == 0 { + if yyv4663 == nil { + yyv4663 = []EnvVar{} + yyc4663 = true + } else if len(yyv4663) != 0 { + yyv4663 = yyv4663[:0] + yyc4663 = true + } + } else if yyl4663 > 0 { + var yyrr4663, yyrl4663 int + var yyrt4663 bool + if yyl4663 > cap(yyv4663) { + + yyrg4663 := len(yyv4663) > 0 + yyv24663 := yyv4663 + yyrl4663, yyrt4663 = z.DecInferLen(yyl4663, z.DecBasicHandle().MaxInitLen, 40) + if yyrt4663 { + if yyrl4663 <= cap(yyv4663) { + yyv4663 = yyv4663[:yyrl4663] + } else { + yyv4663 = make([]EnvVar, yyrl4663) + } + } else { + yyv4663 = make([]EnvVar, yyrl4663) + } + yyc4663 = true + yyrr4663 = len(yyv4663) + if yyrg4663 { + copy(yyv4663, yyv24663) + } + } else if yyl4663 != len(yyv4663) { + yyv4663 = yyv4663[:yyl4663] + yyc4663 = true + } + yyj4663 := 0 + for ; yyj4663 < yyrr4663; yyj4663++ { + yyh4663.ElemContainerState(yyj4663) + if r.TryDecodeAsNil() { + yyv4663[yyj4663] = EnvVar{} + } else { + yyv4664 := &yyv4663[yyj4663] + yyv4664.CodecDecodeSelf(d) + } + + } + if yyrt4663 { + for ; yyj4663 < yyl4663; yyj4663++ { + yyv4663 = append(yyv4663, EnvVar{}) + yyh4663.ElemContainerState(yyj4663) + if r.TryDecodeAsNil() { + yyv4663[yyj4663] = EnvVar{} + } else { + yyv4665 := &yyv4663[yyj4663] + yyv4665.CodecDecodeSelf(d) + } + + } + } + + } else { + yyj4663 := 0 + for ; !r.CheckBreak(); yyj4663++ { + + if yyj4663 >= len(yyv4663) { + yyv4663 = append(yyv4663, EnvVar{}) // var yyz4663 EnvVar + yyc4663 = true + } + yyh4663.ElemContainerState(yyj4663) + if yyj4663 < len(yyv4663) { + if r.TryDecodeAsNil() { + yyv4663[yyj4663] = EnvVar{} + } else { + yyv4666 := &yyv4663[yyj4663] + yyv4666.CodecDecodeSelf(d) + } + + } else { + z.DecSwallow() + } + + } + if yyj4663 < len(yyv4663) { + yyv4663 = yyv4663[:yyj4663] + yyc4663 = true + } else if yyj4663 == 0 && yyv4663 == nil { + yyv4663 = []EnvVar{} + yyc4663 = true + } + } + yyh4663.End() + if yyc4663 { + *v = yyv4663 + } +} + +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 _, yyv4667 := range v { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yy4668 := &yyv4667 + yy4668.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 + + yyv4669 := *v + yyh4669, yyl4669 := z.DecSliceHelperStart() + var yyc4669 bool + if yyl4669 == 0 { + if yyv4669 == nil { + yyv4669 = []VolumeMount{} + yyc4669 = true + } else if len(yyv4669) != 0 { + yyv4669 = yyv4669[:0] + yyc4669 = true + } + } else if yyl4669 > 0 { + var yyrr4669, yyrl4669 int + var yyrt4669 bool + if yyl4669 > cap(yyv4669) { + + yyrg4669 := len(yyv4669) > 0 + yyv24669 := yyv4669 + yyrl4669, yyrt4669 = z.DecInferLen(yyl4669, z.DecBasicHandle().MaxInitLen, 56) + if yyrt4669 { + if yyrl4669 <= cap(yyv4669) { + yyv4669 = yyv4669[:yyrl4669] + } else { + yyv4669 = make([]VolumeMount, yyrl4669) + } + } else { + yyv4669 = make([]VolumeMount, yyrl4669) + } + yyc4669 = true + yyrr4669 = len(yyv4669) + if yyrg4669 { + copy(yyv4669, yyv24669) + } + } else if yyl4669 != len(yyv4669) { + yyv4669 = yyv4669[:yyl4669] + yyc4669 = true + } + yyj4669 := 0 + for ; yyj4669 < yyrr4669; yyj4669++ { + yyh4669.ElemContainerState(yyj4669) + if r.TryDecodeAsNil() { + yyv4669[yyj4669] = VolumeMount{} + } else { + yyv4670 := &yyv4669[yyj4669] + yyv4670.CodecDecodeSelf(d) + } + + } + if yyrt4669 { + for ; yyj4669 < yyl4669; yyj4669++ { + yyv4669 = append(yyv4669, VolumeMount{}) + yyh4669.ElemContainerState(yyj4669) + if r.TryDecodeAsNil() { + yyv4669[yyj4669] = VolumeMount{} + } else { + yyv4671 := &yyv4669[yyj4669] + yyv4671.CodecDecodeSelf(d) + } + + } + } + + } else { + yyj4669 := 0 + for ; !r.CheckBreak(); yyj4669++ { + + if yyj4669 >= len(yyv4669) { + yyv4669 = append(yyv4669, VolumeMount{}) // var yyz4669 VolumeMount + yyc4669 = true + } + yyh4669.ElemContainerState(yyj4669) + if yyj4669 < len(yyv4669) { + if r.TryDecodeAsNil() { + yyv4669[yyj4669] = VolumeMount{} + } else { + yyv4672 := &yyv4669[yyj4669] + yyv4672.CodecDecodeSelf(d) + } + + } else { + z.DecSwallow() + } + + } + if yyj4669 < len(yyv4669) { + yyv4669 = yyv4669[:yyj4669] + yyc4669 = true + } else if yyj4669 == 0 && yyv4669 == nil { + yyv4669 = []VolumeMount{} + yyc4669 = true + } + } + yyh4669.End() + if yyc4669 { + *v = yyv4669 + } +} + +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 _, yyv4673 := range v { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yy4674 := &yyv4673 + yy4674.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 + + yyv4675 := *v + yyh4675, yyl4675 := z.DecSliceHelperStart() + var yyc4675 bool + if yyl4675 == 0 { + if yyv4675 == nil { + yyv4675 = []Pod{} + yyc4675 = true + } else if len(yyv4675) != 0 { + yyv4675 = yyv4675[:0] + yyc4675 = true + } + } else if yyl4675 > 0 { + var yyrr4675, yyrl4675 int + var yyrt4675 bool + if yyl4675 > cap(yyv4675) { + + yyrg4675 := len(yyv4675) > 0 + yyv24675 := yyv4675 + yyrl4675, yyrt4675 = z.DecInferLen(yyl4675, z.DecBasicHandle().MaxInitLen, 640) + if yyrt4675 { + if yyrl4675 <= cap(yyv4675) { + yyv4675 = yyv4675[:yyrl4675] + } else { + yyv4675 = make([]Pod, yyrl4675) + } + } else { + yyv4675 = make([]Pod, yyrl4675) + } + yyc4675 = true + yyrr4675 = len(yyv4675) + if yyrg4675 { + copy(yyv4675, yyv24675) + } + } else if yyl4675 != len(yyv4675) { + yyv4675 = yyv4675[:yyl4675] + yyc4675 = true + } + yyj4675 := 0 + for ; yyj4675 < yyrr4675; yyj4675++ { + yyh4675.ElemContainerState(yyj4675) + if r.TryDecodeAsNil() { + yyv4675[yyj4675] = Pod{} + } else { + yyv4676 := &yyv4675[yyj4675] + yyv4676.CodecDecodeSelf(d) + } + + } + if yyrt4675 { + for ; yyj4675 < yyl4675; yyj4675++ { + yyv4675 = append(yyv4675, Pod{}) + yyh4675.ElemContainerState(yyj4675) + if r.TryDecodeAsNil() { + yyv4675[yyj4675] = Pod{} + } else { + yyv4677 := &yyv4675[yyj4675] + yyv4677.CodecDecodeSelf(d) + } + + } + } + + } else { + yyj4675 := 0 + for ; !r.CheckBreak(); yyj4675++ { + + if yyj4675 >= len(yyv4675) { + yyv4675 = append(yyv4675, Pod{}) // var yyz4675 Pod + yyc4675 = true + } + yyh4675.ElemContainerState(yyj4675) + if yyj4675 < len(yyv4675) { + if r.TryDecodeAsNil() { + yyv4675[yyj4675] = Pod{} + } else { + yyv4678 := &yyv4675[yyj4675] + yyv4678.CodecDecodeSelf(d) + } + + } else { + z.DecSwallow() + } + + } + if yyj4675 < len(yyv4675) { + yyv4675 = yyv4675[:yyj4675] + yyc4675 = true + } else if yyj4675 == 0 && yyv4675 == nil { + yyv4675 = []Pod{} + yyc4675 = true + } + } + yyh4675.End() + if yyc4675 { + *v = yyv4675 + } +} + +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 _, yyv4679 := range v { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yy4680 := &yyv4679 + yy4680.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 + + yyv4681 := *v + yyh4681, yyl4681 := z.DecSliceHelperStart() + var yyc4681 bool + if yyl4681 == 0 { + if yyv4681 == nil { + yyv4681 = []NodeSelectorTerm{} + yyc4681 = true + } else if len(yyv4681) != 0 { + yyv4681 = yyv4681[:0] + yyc4681 = true + } + } else if yyl4681 > 0 { + var yyrr4681, yyrl4681 int + var yyrt4681 bool + if yyl4681 > cap(yyv4681) { + + yyrg4681 := len(yyv4681) > 0 + yyv24681 := yyv4681 + yyrl4681, yyrt4681 = z.DecInferLen(yyl4681, z.DecBasicHandle().MaxInitLen, 24) + if yyrt4681 { + if yyrl4681 <= cap(yyv4681) { + yyv4681 = yyv4681[:yyrl4681] + } else { + yyv4681 = make([]NodeSelectorTerm, yyrl4681) + } + } else { + yyv4681 = make([]NodeSelectorTerm, yyrl4681) + } + yyc4681 = true + yyrr4681 = len(yyv4681) + if yyrg4681 { + copy(yyv4681, yyv24681) + } + } else if yyl4681 != len(yyv4681) { + yyv4681 = yyv4681[:yyl4681] + yyc4681 = true + } + yyj4681 := 0 + for ; yyj4681 < yyrr4681; yyj4681++ { + yyh4681.ElemContainerState(yyj4681) + if r.TryDecodeAsNil() { + yyv4681[yyj4681] = NodeSelectorTerm{} + } else { + yyv4682 := &yyv4681[yyj4681] + yyv4682.CodecDecodeSelf(d) + } + + } + if yyrt4681 { + for ; yyj4681 < yyl4681; yyj4681++ { + yyv4681 = append(yyv4681, NodeSelectorTerm{}) + yyh4681.ElemContainerState(yyj4681) + if r.TryDecodeAsNil() { + yyv4681[yyj4681] = NodeSelectorTerm{} + } else { + yyv4683 := &yyv4681[yyj4681] + yyv4683.CodecDecodeSelf(d) + } + + } + } + + } else { + yyj4681 := 0 + for ; !r.CheckBreak(); yyj4681++ { + + if yyj4681 >= len(yyv4681) { + yyv4681 = append(yyv4681, NodeSelectorTerm{}) // var yyz4681 NodeSelectorTerm + yyc4681 = true + } + yyh4681.ElemContainerState(yyj4681) + if yyj4681 < len(yyv4681) { + if r.TryDecodeAsNil() { + yyv4681[yyj4681] = NodeSelectorTerm{} + } else { + yyv4684 := &yyv4681[yyj4681] + yyv4684.CodecDecodeSelf(d) + } + + } else { + z.DecSwallow() + } + + } + if yyj4681 < len(yyv4681) { + yyv4681 = yyv4681[:yyj4681] + yyc4681 = true + } else if yyj4681 == 0 && yyv4681 == nil { + yyv4681 = []NodeSelectorTerm{} + yyc4681 = true + } + } + yyh4681.End() + if yyc4681 { + *v = yyv4681 + } +} + +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 _, yyv4685 := range v { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yy4686 := &yyv4685 + yy4686.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 + + yyv4687 := *v + yyh4687, yyl4687 := z.DecSliceHelperStart() + var yyc4687 bool + if yyl4687 == 0 { + if yyv4687 == nil { + yyv4687 = []NodeSelectorRequirement{} + yyc4687 = true + } else if len(yyv4687) != 0 { + yyv4687 = yyv4687[:0] + yyc4687 = true + } + } else if yyl4687 > 0 { + var yyrr4687, yyrl4687 int + var yyrt4687 bool + if yyl4687 > cap(yyv4687) { + + yyrg4687 := len(yyv4687) > 0 + yyv24687 := yyv4687 + yyrl4687, yyrt4687 = z.DecInferLen(yyl4687, z.DecBasicHandle().MaxInitLen, 56) + if yyrt4687 { + if yyrl4687 <= cap(yyv4687) { + yyv4687 = yyv4687[:yyrl4687] + } else { + yyv4687 = make([]NodeSelectorRequirement, yyrl4687) + } + } else { + yyv4687 = make([]NodeSelectorRequirement, yyrl4687) + } + yyc4687 = true + yyrr4687 = len(yyv4687) + if yyrg4687 { + copy(yyv4687, yyv24687) + } + } else if yyl4687 != len(yyv4687) { + yyv4687 = yyv4687[:yyl4687] + yyc4687 = true + } + yyj4687 := 0 + for ; yyj4687 < yyrr4687; yyj4687++ { + yyh4687.ElemContainerState(yyj4687) + if r.TryDecodeAsNil() { + yyv4687[yyj4687] = NodeSelectorRequirement{} + } else { + yyv4688 := &yyv4687[yyj4687] + yyv4688.CodecDecodeSelf(d) + } + + } + if yyrt4687 { + for ; yyj4687 < yyl4687; yyj4687++ { + yyv4687 = append(yyv4687, NodeSelectorRequirement{}) + yyh4687.ElemContainerState(yyj4687) + if r.TryDecodeAsNil() { + yyv4687[yyj4687] = NodeSelectorRequirement{} + } else { + yyv4689 := &yyv4687[yyj4687] + yyv4689.CodecDecodeSelf(d) + } + + } + } + + } else { + yyj4687 := 0 + for ; !r.CheckBreak(); yyj4687++ { + + if yyj4687 >= len(yyv4687) { + yyv4687 = append(yyv4687, NodeSelectorRequirement{}) // var yyz4687 NodeSelectorRequirement + yyc4687 = true + } + yyh4687.ElemContainerState(yyj4687) + if yyj4687 < len(yyv4687) { + if r.TryDecodeAsNil() { + yyv4687[yyj4687] = NodeSelectorRequirement{} + } else { + yyv4690 := &yyv4687[yyj4687] + yyv4690.CodecDecodeSelf(d) + } + + } else { + z.DecSwallow() + } + + } + if yyj4687 < len(yyv4687) { + yyv4687 = yyv4687[:yyj4687] + yyc4687 = true + } else if yyj4687 == 0 && yyv4687 == nil { + yyv4687 = []NodeSelectorRequirement{} + yyc4687 = true + } + } + yyh4687.End() + if yyc4687 { + *v = yyv4687 + } +} + +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 _, yyv4691 := range v { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yy4692 := &yyv4691 + yy4692.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 + + yyv4693 := *v + yyh4693, yyl4693 := z.DecSliceHelperStart() + var yyc4693 bool + if yyl4693 == 0 { + if yyv4693 == nil { + yyv4693 = []PodAffinityTerm{} + yyc4693 = true + } else if len(yyv4693) != 0 { + yyv4693 = yyv4693[:0] + yyc4693 = true + } + } else if yyl4693 > 0 { + var yyrr4693, yyrl4693 int + var yyrt4693 bool + if yyl4693 > cap(yyv4693) { + + yyrg4693 := len(yyv4693) > 0 + yyv24693 := yyv4693 + yyrl4693, yyrt4693 = z.DecInferLen(yyl4693, z.DecBasicHandle().MaxInitLen, 48) + if yyrt4693 { + if yyrl4693 <= cap(yyv4693) { + yyv4693 = yyv4693[:yyrl4693] + } else { + yyv4693 = make([]PodAffinityTerm, yyrl4693) + } + } else { + yyv4693 = make([]PodAffinityTerm, yyrl4693) + } + yyc4693 = true + yyrr4693 = len(yyv4693) + if yyrg4693 { + copy(yyv4693, yyv24693) + } + } else if yyl4693 != len(yyv4693) { + yyv4693 = yyv4693[:yyl4693] + yyc4693 = true + } + yyj4693 := 0 + for ; yyj4693 < yyrr4693; yyj4693++ { + yyh4693.ElemContainerState(yyj4693) + if r.TryDecodeAsNil() { + yyv4693[yyj4693] = PodAffinityTerm{} + } else { + yyv4694 := &yyv4693[yyj4693] + yyv4694.CodecDecodeSelf(d) + } + + } + if yyrt4693 { + for ; yyj4693 < yyl4693; yyj4693++ { + yyv4693 = append(yyv4693, PodAffinityTerm{}) + yyh4693.ElemContainerState(yyj4693) + if r.TryDecodeAsNil() { + yyv4693[yyj4693] = PodAffinityTerm{} + } else { + yyv4695 := &yyv4693[yyj4693] + yyv4695.CodecDecodeSelf(d) + } + + } + } + + } else { + yyj4693 := 0 + for ; !r.CheckBreak(); yyj4693++ { + + if yyj4693 >= len(yyv4693) { + yyv4693 = append(yyv4693, PodAffinityTerm{}) // var yyz4693 PodAffinityTerm + yyc4693 = true + } + yyh4693.ElemContainerState(yyj4693) + if yyj4693 < len(yyv4693) { + if r.TryDecodeAsNil() { + yyv4693[yyj4693] = PodAffinityTerm{} + } else { + yyv4696 := &yyv4693[yyj4693] + yyv4696.CodecDecodeSelf(d) + } + + } else { + z.DecSwallow() + } + + } + if yyj4693 < len(yyv4693) { + yyv4693 = yyv4693[:yyj4693] + yyc4693 = true + } else if yyj4693 == 0 && yyv4693 == nil { + yyv4693 = []PodAffinityTerm{} + yyc4693 = true + } + } + yyh4693.End() + if yyc4693 { + *v = yyv4693 + } +} + +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 _, yyv4697 := range v { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yy4698 := &yyv4697 + yy4698.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 + + yyv4699 := *v + yyh4699, yyl4699 := z.DecSliceHelperStart() + var yyc4699 bool + if yyl4699 == 0 { + if yyv4699 == nil { + yyv4699 = []WeightedPodAffinityTerm{} + yyc4699 = true + } else if len(yyv4699) != 0 { + yyv4699 = yyv4699[:0] + yyc4699 = true + } + } else if yyl4699 > 0 { + var yyrr4699, yyrl4699 int + var yyrt4699 bool + if yyl4699 > cap(yyv4699) { + + yyrg4699 := len(yyv4699) > 0 + yyv24699 := yyv4699 + yyrl4699, yyrt4699 = z.DecInferLen(yyl4699, z.DecBasicHandle().MaxInitLen, 56) + if yyrt4699 { + if yyrl4699 <= cap(yyv4699) { + yyv4699 = yyv4699[:yyrl4699] + } else { + yyv4699 = make([]WeightedPodAffinityTerm, yyrl4699) + } + } else { + yyv4699 = make([]WeightedPodAffinityTerm, yyrl4699) + } + yyc4699 = true + yyrr4699 = len(yyv4699) + if yyrg4699 { + copy(yyv4699, yyv24699) + } + } else if yyl4699 != len(yyv4699) { + yyv4699 = yyv4699[:yyl4699] + yyc4699 = true + } + yyj4699 := 0 + for ; yyj4699 < yyrr4699; yyj4699++ { + yyh4699.ElemContainerState(yyj4699) + if r.TryDecodeAsNil() { + yyv4699[yyj4699] = WeightedPodAffinityTerm{} + } else { + yyv4700 := &yyv4699[yyj4699] + yyv4700.CodecDecodeSelf(d) + } + + } + if yyrt4699 { + for ; yyj4699 < yyl4699; yyj4699++ { + yyv4699 = append(yyv4699, WeightedPodAffinityTerm{}) + yyh4699.ElemContainerState(yyj4699) + if r.TryDecodeAsNil() { + yyv4699[yyj4699] = WeightedPodAffinityTerm{} + } else { + yyv4701 := &yyv4699[yyj4699] + yyv4701.CodecDecodeSelf(d) + } + + } + } + + } else { + yyj4699 := 0 + for ; !r.CheckBreak(); yyj4699++ { + + if yyj4699 >= len(yyv4699) { + yyv4699 = append(yyv4699, WeightedPodAffinityTerm{}) // var yyz4699 WeightedPodAffinityTerm + yyc4699 = true + } + yyh4699.ElemContainerState(yyj4699) + if yyj4699 < len(yyv4699) { + if r.TryDecodeAsNil() { + yyv4699[yyj4699] = WeightedPodAffinityTerm{} + } else { + yyv4702 := &yyv4699[yyj4699] + yyv4702.CodecDecodeSelf(d) + } + + } else { + z.DecSwallow() + } + + } + if yyj4699 < len(yyv4699) { + yyv4699 = yyv4699[:yyj4699] + yyc4699 = true + } else if yyj4699 == 0 && yyv4699 == nil { + yyv4699 = []WeightedPodAffinityTerm{} + yyc4699 = true + } + } + yyh4699.End() + if yyc4699 { + *v = yyv4699 + } +} + +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 _, yyv4703 := range v { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yy4704 := &yyv4703 + yy4704.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 + + yyv4705 := *v + yyh4705, yyl4705 := z.DecSliceHelperStart() + var yyc4705 bool + if yyl4705 == 0 { + if yyv4705 == nil { + yyv4705 = []PreferredSchedulingTerm{} + yyc4705 = true + } else if len(yyv4705) != 0 { + yyv4705 = yyv4705[:0] + yyc4705 = true + } + } else if yyl4705 > 0 { + var yyrr4705, yyrl4705 int + var yyrt4705 bool + if yyl4705 > cap(yyv4705) { + + yyrg4705 := len(yyv4705) > 0 + yyv24705 := yyv4705 + yyrl4705, yyrt4705 = z.DecInferLen(yyl4705, z.DecBasicHandle().MaxInitLen, 32) + if yyrt4705 { + if yyrl4705 <= cap(yyv4705) { + yyv4705 = yyv4705[:yyrl4705] + } else { + yyv4705 = make([]PreferredSchedulingTerm, yyrl4705) + } + } else { + yyv4705 = make([]PreferredSchedulingTerm, yyrl4705) + } + yyc4705 = true + yyrr4705 = len(yyv4705) + if yyrg4705 { + copy(yyv4705, yyv24705) + } + } else if yyl4705 != len(yyv4705) { + yyv4705 = yyv4705[:yyl4705] + yyc4705 = true + } + yyj4705 := 0 + for ; yyj4705 < yyrr4705; yyj4705++ { + yyh4705.ElemContainerState(yyj4705) + if r.TryDecodeAsNil() { + yyv4705[yyj4705] = PreferredSchedulingTerm{} + } else { + yyv4706 := &yyv4705[yyj4705] + yyv4706.CodecDecodeSelf(d) + } + + } + if yyrt4705 { + for ; yyj4705 < yyl4705; yyj4705++ { + yyv4705 = append(yyv4705, PreferredSchedulingTerm{}) + yyh4705.ElemContainerState(yyj4705) + if r.TryDecodeAsNil() { + yyv4705[yyj4705] = PreferredSchedulingTerm{} + } else { + yyv4707 := &yyv4705[yyj4705] + yyv4707.CodecDecodeSelf(d) + } + + } + } + + } else { + yyj4705 := 0 + for ; !r.CheckBreak(); yyj4705++ { + + if yyj4705 >= len(yyv4705) { + yyv4705 = append(yyv4705, PreferredSchedulingTerm{}) // var yyz4705 PreferredSchedulingTerm + yyc4705 = true + } + yyh4705.ElemContainerState(yyj4705) + if yyj4705 < len(yyv4705) { + if r.TryDecodeAsNil() { + yyv4705[yyj4705] = PreferredSchedulingTerm{} + } else { + yyv4708 := &yyv4705[yyj4705] + yyv4708.CodecDecodeSelf(d) + } + + } else { + z.DecSwallow() + } + + } + if yyj4705 < len(yyv4705) { + yyv4705 = yyv4705[:yyj4705] + yyc4705 = true + } else if yyj4705 == 0 && yyv4705 == nil { + yyv4705 = []PreferredSchedulingTerm{} + yyc4705 = true + } + } + yyh4705.End() + if yyc4705 { + *v = yyv4705 + } +} + +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 _, yyv4709 := range v { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yy4710 := &yyv4709 + yy4710.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 + + yyv4711 := *v + yyh4711, yyl4711 := z.DecSliceHelperStart() + var yyc4711 bool + if yyl4711 == 0 { + if yyv4711 == nil { + yyv4711 = []Volume{} + yyc4711 = true + } else if len(yyv4711) != 0 { + yyv4711 = yyv4711[:0] + yyc4711 = true + } + } else if yyl4711 > 0 { + var yyrr4711, yyrl4711 int + var yyrt4711 bool + if yyl4711 > cap(yyv4711) { + + yyrg4711 := len(yyv4711) > 0 + yyv24711 := yyv4711 + yyrl4711, yyrt4711 = z.DecInferLen(yyl4711, z.DecBasicHandle().MaxInitLen, 200) + if yyrt4711 { + if yyrl4711 <= cap(yyv4711) { + yyv4711 = yyv4711[:yyrl4711] + } else { + yyv4711 = make([]Volume, yyrl4711) + } + } else { + yyv4711 = make([]Volume, yyrl4711) + } + yyc4711 = true + yyrr4711 = len(yyv4711) + if yyrg4711 { + copy(yyv4711, yyv24711) + } + } else if yyl4711 != len(yyv4711) { + yyv4711 = yyv4711[:yyl4711] + yyc4711 = true + } + yyj4711 := 0 + for ; yyj4711 < yyrr4711; yyj4711++ { + yyh4711.ElemContainerState(yyj4711) + if r.TryDecodeAsNil() { + yyv4711[yyj4711] = Volume{} + } else { + yyv4712 := &yyv4711[yyj4711] + yyv4712.CodecDecodeSelf(d) + } + + } + if yyrt4711 { + for ; yyj4711 < yyl4711; yyj4711++ { + yyv4711 = append(yyv4711, Volume{}) + yyh4711.ElemContainerState(yyj4711) + if r.TryDecodeAsNil() { + yyv4711[yyj4711] = Volume{} + } else { + yyv4713 := &yyv4711[yyj4711] + yyv4713.CodecDecodeSelf(d) + } + + } + } + + } else { + yyj4711 := 0 + for ; !r.CheckBreak(); yyj4711++ { + + if yyj4711 >= len(yyv4711) { + yyv4711 = append(yyv4711, Volume{}) // var yyz4711 Volume + yyc4711 = true + } + yyh4711.ElemContainerState(yyj4711) + if yyj4711 < len(yyv4711) { + if r.TryDecodeAsNil() { + yyv4711[yyj4711] = Volume{} + } else { + yyv4714 := &yyv4711[yyj4711] + yyv4714.CodecDecodeSelf(d) + } + + } else { + z.DecSwallow() + } + + } + if yyj4711 < len(yyv4711) { + yyv4711 = yyv4711[:yyj4711] + yyc4711 = true + } else if yyj4711 == 0 && yyv4711 == nil { + yyv4711 = []Volume{} + yyc4711 = true + } + } + yyh4711.End() + if yyc4711 { + *v = yyv4711 + } +} + +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 _, yyv4715 := range v { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yy4716 := &yyv4715 + yy4716.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 + + yyv4717 := *v + yyh4717, yyl4717 := z.DecSliceHelperStart() + var yyc4717 bool + if yyl4717 == 0 { + if yyv4717 == nil { + yyv4717 = []Container{} + yyc4717 = true + } else if len(yyv4717) != 0 { + yyv4717 = yyv4717[:0] + yyc4717 = true + } + } else if yyl4717 > 0 { + var yyrr4717, yyrl4717 int + var yyrt4717 bool + if yyl4717 > cap(yyv4717) { + + yyrg4717 := len(yyv4717) > 0 + yyv24717 := yyv4717 + yyrl4717, yyrt4717 = z.DecInferLen(yyl4717, z.DecBasicHandle().MaxInitLen, 256) + if yyrt4717 { + if yyrl4717 <= cap(yyv4717) { + yyv4717 = yyv4717[:yyrl4717] + } else { + yyv4717 = make([]Container, yyrl4717) + } + } else { + yyv4717 = make([]Container, yyrl4717) + } + yyc4717 = true + yyrr4717 = len(yyv4717) + if yyrg4717 { + copy(yyv4717, yyv24717) + } + } else if yyl4717 != len(yyv4717) { + yyv4717 = yyv4717[:yyl4717] + yyc4717 = true + } + yyj4717 := 0 + for ; yyj4717 < yyrr4717; yyj4717++ { + yyh4717.ElemContainerState(yyj4717) + if r.TryDecodeAsNil() { + yyv4717[yyj4717] = Container{} + } else { + yyv4718 := &yyv4717[yyj4717] + yyv4718.CodecDecodeSelf(d) + } + + } + if yyrt4717 { + for ; yyj4717 < yyl4717; yyj4717++ { + yyv4717 = append(yyv4717, Container{}) + yyh4717.ElemContainerState(yyj4717) + if r.TryDecodeAsNil() { + yyv4717[yyj4717] = Container{} + } else { + yyv4719 := &yyv4717[yyj4717] + yyv4719.CodecDecodeSelf(d) + } + + } + } + + } else { + yyj4717 := 0 + for ; !r.CheckBreak(); yyj4717++ { + + if yyj4717 >= len(yyv4717) { + yyv4717 = append(yyv4717, Container{}) // var yyz4717 Container + yyc4717 = true + } + yyh4717.ElemContainerState(yyj4717) + if yyj4717 < len(yyv4717) { + if r.TryDecodeAsNil() { + yyv4717[yyj4717] = Container{} + } else { + yyv4720 := &yyv4717[yyj4717] + yyv4720.CodecDecodeSelf(d) + } + + } else { + z.DecSwallow() + } + + } + if yyj4717 < len(yyv4717) { + yyv4717 = yyv4717[:yyj4717] + yyc4717 = true + } else if yyj4717 == 0 && yyv4717 == nil { + yyv4717 = []Container{} + yyc4717 = true + } + } + yyh4717.End() + if yyc4717 { + *v = yyv4717 + } +} + +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 _, yyv4721 := range v { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yy4722 := &yyv4721 + yy4722.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 + + yyv4723 := *v + yyh4723, yyl4723 := z.DecSliceHelperStart() + var yyc4723 bool + if yyl4723 == 0 { + if yyv4723 == nil { + yyv4723 = []LocalObjectReference{} + yyc4723 = true + } else if len(yyv4723) != 0 { + yyv4723 = yyv4723[:0] + yyc4723 = true + } + } else if yyl4723 > 0 { + var yyrr4723, yyrl4723 int + var yyrt4723 bool + if yyl4723 > cap(yyv4723) { + + yyrg4723 := len(yyv4723) > 0 + yyv24723 := yyv4723 + yyrl4723, yyrt4723 = z.DecInferLen(yyl4723, z.DecBasicHandle().MaxInitLen, 16) + if yyrt4723 { + if yyrl4723 <= cap(yyv4723) { + yyv4723 = yyv4723[:yyrl4723] + } else { + yyv4723 = make([]LocalObjectReference, yyrl4723) + } + } else { + yyv4723 = make([]LocalObjectReference, yyrl4723) + } + yyc4723 = true + yyrr4723 = len(yyv4723) + if yyrg4723 { + copy(yyv4723, yyv24723) + } + } else if yyl4723 != len(yyv4723) { + yyv4723 = yyv4723[:yyl4723] + yyc4723 = true + } + yyj4723 := 0 + for ; yyj4723 < yyrr4723; yyj4723++ { + yyh4723.ElemContainerState(yyj4723) + if r.TryDecodeAsNil() { + yyv4723[yyj4723] = LocalObjectReference{} + } else { + yyv4724 := &yyv4723[yyj4723] + yyv4724.CodecDecodeSelf(d) + } + + } + if yyrt4723 { + for ; yyj4723 < yyl4723; yyj4723++ { + yyv4723 = append(yyv4723, LocalObjectReference{}) + yyh4723.ElemContainerState(yyj4723) + if r.TryDecodeAsNil() { + yyv4723[yyj4723] = LocalObjectReference{} + } else { + yyv4725 := &yyv4723[yyj4723] + yyv4725.CodecDecodeSelf(d) + } + + } + } + + } else { + yyj4723 := 0 + for ; !r.CheckBreak(); yyj4723++ { + + if yyj4723 >= len(yyv4723) { + yyv4723 = append(yyv4723, LocalObjectReference{}) // var yyz4723 LocalObjectReference + yyc4723 = true + } + yyh4723.ElemContainerState(yyj4723) + if yyj4723 < len(yyv4723) { + if r.TryDecodeAsNil() { + yyv4723[yyj4723] = LocalObjectReference{} + } else { + yyv4726 := &yyv4723[yyj4723] + yyv4726.CodecDecodeSelf(d) + } + + } else { + z.DecSwallow() + } + + } + if yyj4723 < len(yyv4723) { + yyv4723 = yyv4723[:yyj4723] + yyc4723 = true + } else if yyj4723 == 0 && yyv4723 == nil { + yyv4723 = []LocalObjectReference{} + yyc4723 = true + } + } + yyh4723.End() + if yyc4723 { + *v = yyv4723 + } +} + +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 _, yyv4727 := range v { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yy4728 := &yyv4727 + yy4728.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 + + yyv4729 := *v + yyh4729, yyl4729 := z.DecSliceHelperStart() + var yyc4729 bool + if yyl4729 == 0 { + if yyv4729 == nil { + yyv4729 = []PodCondition{} + yyc4729 = true + } else if len(yyv4729) != 0 { + yyv4729 = yyv4729[:0] + yyc4729 = true + } + } else if yyl4729 > 0 { + var yyrr4729, yyrl4729 int + var yyrt4729 bool + if yyl4729 > cap(yyv4729) { + + yyrg4729 := len(yyv4729) > 0 + yyv24729 := yyv4729 + yyrl4729, yyrt4729 = z.DecInferLen(yyl4729, z.DecBasicHandle().MaxInitLen, 112) + if yyrt4729 { + if yyrl4729 <= cap(yyv4729) { + yyv4729 = yyv4729[:yyrl4729] + } else { + yyv4729 = make([]PodCondition, yyrl4729) + } + } else { + yyv4729 = make([]PodCondition, yyrl4729) + } + yyc4729 = true + yyrr4729 = len(yyv4729) + if yyrg4729 { + copy(yyv4729, yyv24729) + } + } else if yyl4729 != len(yyv4729) { + yyv4729 = yyv4729[:yyl4729] + yyc4729 = true + } + yyj4729 := 0 + for ; yyj4729 < yyrr4729; yyj4729++ { + yyh4729.ElemContainerState(yyj4729) + if r.TryDecodeAsNil() { + yyv4729[yyj4729] = PodCondition{} + } else { + yyv4730 := &yyv4729[yyj4729] + yyv4730.CodecDecodeSelf(d) + } + + } + if yyrt4729 { + for ; yyj4729 < yyl4729; yyj4729++ { + yyv4729 = append(yyv4729, PodCondition{}) + yyh4729.ElemContainerState(yyj4729) + if r.TryDecodeAsNil() { + yyv4729[yyj4729] = PodCondition{} + } else { + yyv4731 := &yyv4729[yyj4729] + yyv4731.CodecDecodeSelf(d) + } + + } + } + + } else { + yyj4729 := 0 + for ; !r.CheckBreak(); yyj4729++ { + + if yyj4729 >= len(yyv4729) { + yyv4729 = append(yyv4729, PodCondition{}) // var yyz4729 PodCondition + yyc4729 = true + } + yyh4729.ElemContainerState(yyj4729) + if yyj4729 < len(yyv4729) { + if r.TryDecodeAsNil() { + yyv4729[yyj4729] = PodCondition{} + } else { + yyv4732 := &yyv4729[yyj4729] + yyv4732.CodecDecodeSelf(d) + } + + } else { + z.DecSwallow() + } + + } + if yyj4729 < len(yyv4729) { + yyv4729 = yyv4729[:yyj4729] + yyc4729 = true + } else if yyj4729 == 0 && yyv4729 == nil { + yyv4729 = []PodCondition{} + yyc4729 = true + } + } + yyh4729.End() + if yyc4729 { + *v = yyv4729 + } +} + +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 _, yyv4733 := range v { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yy4734 := &yyv4733 + yy4734.CodecEncodeSelf(e) } z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -58624,83 +59704,83 @@ func (x codecSelfer1234) decSliceContainerStatus(v *[]ContainerStatus, d *codec1 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yyv4652 := *v - yyh4652, yyl4652 := z.DecSliceHelperStart() - var yyc4652 bool - if yyl4652 == 0 { - if yyv4652 == nil { - yyv4652 = []ContainerStatus{} - yyc4652 = true - } else if len(yyv4652) != 0 { - yyv4652 = yyv4652[:0] - yyc4652 = true + yyv4735 := *v + yyh4735, yyl4735 := z.DecSliceHelperStart() + var yyc4735 bool + if yyl4735 == 0 { + if yyv4735 == nil { + yyv4735 = []ContainerStatus{} + yyc4735 = true + } else if len(yyv4735) != 0 { + yyv4735 = yyv4735[:0] + yyc4735 = true } - } else if yyl4652 > 0 { - var yyrr4652, yyrl4652 int - var yyrt4652 bool - if yyl4652 > cap(yyv4652) { + } else if yyl4735 > 0 { + var yyrr4735, yyrl4735 int + var yyrt4735 bool + if yyl4735 > cap(yyv4735) { - yyrg4652 := len(yyv4652) > 0 - yyv24652 := yyv4652 - yyrl4652, yyrt4652 = z.DecInferLen(yyl4652, z.DecBasicHandle().MaxInitLen, 120) - if yyrt4652 { - if yyrl4652 <= cap(yyv4652) { - yyv4652 = yyv4652[:yyrl4652] + yyrg4735 := len(yyv4735) > 0 + yyv24735 := yyv4735 + yyrl4735, yyrt4735 = z.DecInferLen(yyl4735, z.DecBasicHandle().MaxInitLen, 120) + if yyrt4735 { + if yyrl4735 <= cap(yyv4735) { + yyv4735 = yyv4735[:yyrl4735] } else { - yyv4652 = make([]ContainerStatus, yyrl4652) + yyv4735 = make([]ContainerStatus, yyrl4735) } } else { - yyv4652 = make([]ContainerStatus, yyrl4652) + yyv4735 = make([]ContainerStatus, yyrl4735) } - yyc4652 = true - yyrr4652 = len(yyv4652) - if yyrg4652 { - copy(yyv4652, yyv24652) + yyc4735 = true + yyrr4735 = len(yyv4735) + if yyrg4735 { + copy(yyv4735, yyv24735) } - } else if yyl4652 != len(yyv4652) { - yyv4652 = yyv4652[:yyl4652] - yyc4652 = true + } else if yyl4735 != len(yyv4735) { + yyv4735 = yyv4735[:yyl4735] + yyc4735 = true } - yyj4652 := 0 - for ; yyj4652 < yyrr4652; yyj4652++ { - yyh4652.ElemContainerState(yyj4652) + yyj4735 := 0 + for ; yyj4735 < yyrr4735; yyj4735++ { + yyh4735.ElemContainerState(yyj4735) if r.TryDecodeAsNil() { - yyv4652[yyj4652] = ContainerStatus{} + yyv4735[yyj4735] = ContainerStatus{} } else { - yyv4653 := &yyv4652[yyj4652] - yyv4653.CodecDecodeSelf(d) + yyv4736 := &yyv4735[yyj4735] + yyv4736.CodecDecodeSelf(d) } } - if yyrt4652 { - for ; yyj4652 < yyl4652; yyj4652++ { - yyv4652 = append(yyv4652, ContainerStatus{}) - yyh4652.ElemContainerState(yyj4652) + if yyrt4735 { + for ; yyj4735 < yyl4735; yyj4735++ { + yyv4735 = append(yyv4735, ContainerStatus{}) + yyh4735.ElemContainerState(yyj4735) if r.TryDecodeAsNil() { - yyv4652[yyj4652] = ContainerStatus{} + yyv4735[yyj4735] = ContainerStatus{} } else { - yyv4654 := &yyv4652[yyj4652] - yyv4654.CodecDecodeSelf(d) + yyv4737 := &yyv4735[yyj4735] + yyv4737.CodecDecodeSelf(d) } } } } else { - yyj4652 := 0 - for ; !r.CheckBreak(); yyj4652++ { + yyj4735 := 0 + for ; !r.CheckBreak(); yyj4735++ { - if yyj4652 >= len(yyv4652) { - yyv4652 = append(yyv4652, ContainerStatus{}) // var yyz4652 ContainerStatus - yyc4652 = true + if yyj4735 >= len(yyv4735) { + yyv4735 = append(yyv4735, ContainerStatus{}) // var yyz4735 ContainerStatus + yyc4735 = true } - yyh4652.ElemContainerState(yyj4652) - if yyj4652 < len(yyv4652) { + yyh4735.ElemContainerState(yyj4735) + if yyj4735 < len(yyv4735) { if r.TryDecodeAsNil() { - yyv4652[yyj4652] = ContainerStatus{} + yyv4735[yyj4735] = ContainerStatus{} } else { - yyv4655 := &yyv4652[yyj4652] - yyv4655.CodecDecodeSelf(d) + yyv4738 := &yyv4735[yyj4735] + yyv4738.CodecDecodeSelf(d) } } else { @@ -58708,17 +59788,17 @@ func (x codecSelfer1234) decSliceContainerStatus(v *[]ContainerStatus, d *codec1 } } - if yyj4652 < len(yyv4652) { - yyv4652 = yyv4652[:yyj4652] - yyc4652 = true - } else if yyj4652 == 0 && yyv4652 == nil { - yyv4652 = []ContainerStatus{} - yyc4652 = true + if yyj4735 < len(yyv4735) { + yyv4735 = yyv4735[:yyj4735] + yyc4735 = true + } else if yyj4735 == 0 && yyv4735 == nil { + yyv4735 = []ContainerStatus{} + yyc4735 = true } } - yyh4652.End() - if yyc4652 { - *v = yyv4652 + yyh4735.End() + if yyc4735 { + *v = yyv4735 } } @@ -58727,10 +59807,10 @@ func (x codecSelfer1234) encSlicePodTemplate(v []PodTemplate, e *codec1978.Encod z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r r.EncodeArrayStart(len(v)) - for _, yyv4656 := range v { + for _, yyv4739 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy4657 := &yyv4656 - yy4657.CodecEncodeSelf(e) + yy4740 := &yyv4739 + yy4740.CodecEncodeSelf(e) } z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -58740,1635 +59820,12 @@ func (x codecSelfer1234) decSlicePodTemplate(v *[]PodTemplate, d *codec1978.Deco z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yyv4658 := *v - yyh4658, yyl4658 := z.DecSliceHelperStart() - var yyc4658 bool - if yyl4658 == 0 { - if yyv4658 == nil { - yyv4658 = []PodTemplate{} - yyc4658 = true - } else if len(yyv4658) != 0 { - yyv4658 = yyv4658[:0] - yyc4658 = true - } - } else if yyl4658 > 0 { - var yyrr4658, yyrl4658 int - var yyrt4658 bool - if yyl4658 > cap(yyv4658) { - - yyrg4658 := len(yyv4658) > 0 - yyv24658 := yyv4658 - yyrl4658, yyrt4658 = z.DecInferLen(yyl4658, z.DecBasicHandle().MaxInitLen, 704) - if yyrt4658 { - if yyrl4658 <= cap(yyv4658) { - yyv4658 = yyv4658[:yyrl4658] - } else { - yyv4658 = make([]PodTemplate, yyrl4658) - } - } else { - yyv4658 = make([]PodTemplate, yyrl4658) - } - yyc4658 = true - yyrr4658 = len(yyv4658) - if yyrg4658 { - copy(yyv4658, yyv24658) - } - } else if yyl4658 != len(yyv4658) { - yyv4658 = yyv4658[:yyl4658] - yyc4658 = true - } - yyj4658 := 0 - for ; yyj4658 < yyrr4658; yyj4658++ { - yyh4658.ElemContainerState(yyj4658) - if r.TryDecodeAsNil() { - yyv4658[yyj4658] = PodTemplate{} - } else { - yyv4659 := &yyv4658[yyj4658] - yyv4659.CodecDecodeSelf(d) - } - - } - if yyrt4658 { - for ; yyj4658 < yyl4658; yyj4658++ { - yyv4658 = append(yyv4658, PodTemplate{}) - yyh4658.ElemContainerState(yyj4658) - if r.TryDecodeAsNil() { - yyv4658[yyj4658] = PodTemplate{} - } else { - yyv4660 := &yyv4658[yyj4658] - yyv4660.CodecDecodeSelf(d) - } - - } - } - - } else { - yyj4658 := 0 - for ; !r.CheckBreak(); yyj4658++ { - - if yyj4658 >= len(yyv4658) { - yyv4658 = append(yyv4658, PodTemplate{}) // var yyz4658 PodTemplate - yyc4658 = true - } - yyh4658.ElemContainerState(yyj4658) - if yyj4658 < len(yyv4658) { - if r.TryDecodeAsNil() { - yyv4658[yyj4658] = PodTemplate{} - } else { - yyv4661 := &yyv4658[yyj4658] - yyv4661.CodecDecodeSelf(d) - } - - } else { - z.DecSwallow() - } - - } - if yyj4658 < len(yyv4658) { - yyv4658 = yyv4658[:yyj4658] - yyc4658 = true - } else if yyj4658 == 0 && yyv4658 == nil { - yyv4658 = []PodTemplate{} - yyc4658 = true - } - } - yyh4658.End() - if yyc4658 { - *v = yyv4658 - } -} - -func (x codecSelfer1234) encSliceReplicationController(v []ReplicationController, e *codec1978.Encoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - r.EncodeArrayStart(len(v)) - for _, yyv4662 := range v { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy4663 := &yyv4662 - yy4663.CodecEncodeSelf(e) - } - z.EncSendContainerState(codecSelfer_containerArrayEnd1234) -} - -func (x codecSelfer1234) decSliceReplicationController(v *[]ReplicationController, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - - yyv4664 := *v - yyh4664, yyl4664 := z.DecSliceHelperStart() - var yyc4664 bool - if yyl4664 == 0 { - if yyv4664 == nil { - yyv4664 = []ReplicationController{} - yyc4664 = true - } else if len(yyv4664) != 0 { - yyv4664 = yyv4664[:0] - yyc4664 = true - } - } else if yyl4664 > 0 { - var yyrr4664, yyrl4664 int - var yyrt4664 bool - if yyl4664 > cap(yyv4664) { - - yyrg4664 := len(yyv4664) > 0 - yyv24664 := yyv4664 - yyrl4664, yyrt4664 = z.DecInferLen(yyl4664, z.DecBasicHandle().MaxInitLen, 304) - if yyrt4664 { - if yyrl4664 <= cap(yyv4664) { - yyv4664 = yyv4664[:yyrl4664] - } else { - yyv4664 = make([]ReplicationController, yyrl4664) - } - } else { - yyv4664 = make([]ReplicationController, yyrl4664) - } - yyc4664 = true - yyrr4664 = len(yyv4664) - if yyrg4664 { - copy(yyv4664, yyv24664) - } - } else if yyl4664 != len(yyv4664) { - yyv4664 = yyv4664[:yyl4664] - yyc4664 = true - } - yyj4664 := 0 - for ; yyj4664 < yyrr4664; yyj4664++ { - yyh4664.ElemContainerState(yyj4664) - if r.TryDecodeAsNil() { - yyv4664[yyj4664] = ReplicationController{} - } else { - yyv4665 := &yyv4664[yyj4664] - yyv4665.CodecDecodeSelf(d) - } - - } - if yyrt4664 { - for ; yyj4664 < yyl4664; yyj4664++ { - yyv4664 = append(yyv4664, ReplicationController{}) - yyh4664.ElemContainerState(yyj4664) - if r.TryDecodeAsNil() { - yyv4664[yyj4664] = ReplicationController{} - } else { - yyv4666 := &yyv4664[yyj4664] - yyv4666.CodecDecodeSelf(d) - } - - } - } - - } else { - yyj4664 := 0 - for ; !r.CheckBreak(); yyj4664++ { - - if yyj4664 >= len(yyv4664) { - yyv4664 = append(yyv4664, ReplicationController{}) // var yyz4664 ReplicationController - yyc4664 = true - } - yyh4664.ElemContainerState(yyj4664) - if yyj4664 < len(yyv4664) { - if r.TryDecodeAsNil() { - yyv4664[yyj4664] = ReplicationController{} - } else { - yyv4667 := &yyv4664[yyj4664] - yyv4667.CodecDecodeSelf(d) - } - - } else { - z.DecSwallow() - } - - } - if yyj4664 < len(yyv4664) { - yyv4664 = yyv4664[:yyj4664] - yyc4664 = true - } else if yyj4664 == 0 && yyv4664 == nil { - yyv4664 = []ReplicationController{} - yyc4664 = true - } - } - yyh4664.End() - if yyc4664 { - *v = yyv4664 - } -} - -func (x codecSelfer1234) encSliceService(v []Service, e *codec1978.Encoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - r.EncodeArrayStart(len(v)) - for _, yyv4668 := range v { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy4669 := &yyv4668 - yy4669.CodecEncodeSelf(e) - } - z.EncSendContainerState(codecSelfer_containerArrayEnd1234) -} - -func (x codecSelfer1234) decSliceService(v *[]Service, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - - yyv4670 := *v - yyh4670, yyl4670 := z.DecSliceHelperStart() - var yyc4670 bool - if yyl4670 == 0 { - if yyv4670 == nil { - yyv4670 = []Service{} - yyc4670 = true - } else if len(yyv4670) != 0 { - yyv4670 = yyv4670[:0] - yyc4670 = true - } - } else if yyl4670 > 0 { - var yyrr4670, yyrl4670 int - var yyrt4670 bool - if yyl4670 > cap(yyv4670) { - - yyrg4670 := len(yyv4670) > 0 - yyv24670 := yyv4670 - yyrl4670, yyrt4670 = z.DecInferLen(yyl4670, z.DecBasicHandle().MaxInitLen, 440) - if yyrt4670 { - if yyrl4670 <= cap(yyv4670) { - yyv4670 = yyv4670[:yyrl4670] - } else { - yyv4670 = make([]Service, yyrl4670) - } - } else { - yyv4670 = make([]Service, yyrl4670) - } - yyc4670 = true - yyrr4670 = len(yyv4670) - if yyrg4670 { - copy(yyv4670, yyv24670) - } - } else if yyl4670 != len(yyv4670) { - yyv4670 = yyv4670[:yyl4670] - yyc4670 = true - } - yyj4670 := 0 - for ; yyj4670 < yyrr4670; yyj4670++ { - yyh4670.ElemContainerState(yyj4670) - if r.TryDecodeAsNil() { - yyv4670[yyj4670] = Service{} - } else { - yyv4671 := &yyv4670[yyj4670] - yyv4671.CodecDecodeSelf(d) - } - - } - if yyrt4670 { - for ; yyj4670 < yyl4670; yyj4670++ { - yyv4670 = append(yyv4670, Service{}) - yyh4670.ElemContainerState(yyj4670) - if r.TryDecodeAsNil() { - yyv4670[yyj4670] = Service{} - } else { - yyv4672 := &yyv4670[yyj4670] - yyv4672.CodecDecodeSelf(d) - } - - } - } - - } else { - yyj4670 := 0 - for ; !r.CheckBreak(); yyj4670++ { - - if yyj4670 >= len(yyv4670) { - yyv4670 = append(yyv4670, Service{}) // var yyz4670 Service - yyc4670 = true - } - yyh4670.ElemContainerState(yyj4670) - if yyj4670 < len(yyv4670) { - if r.TryDecodeAsNil() { - yyv4670[yyj4670] = Service{} - } else { - yyv4673 := &yyv4670[yyj4670] - yyv4673.CodecDecodeSelf(d) - } - - } else { - z.DecSwallow() - } - - } - if yyj4670 < len(yyv4670) { - yyv4670 = yyv4670[:yyj4670] - yyc4670 = true - } else if yyj4670 == 0 && yyv4670 == nil { - yyv4670 = []Service{} - yyc4670 = true - } - } - yyh4670.End() - if yyc4670 { - *v = yyv4670 - } -} - -func (x codecSelfer1234) encSliceLoadBalancerIngress(v []LoadBalancerIngress, e *codec1978.Encoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - r.EncodeArrayStart(len(v)) - for _, yyv4674 := range v { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy4675 := &yyv4674 - yy4675.CodecEncodeSelf(e) - } - z.EncSendContainerState(codecSelfer_containerArrayEnd1234) -} - -func (x codecSelfer1234) decSliceLoadBalancerIngress(v *[]LoadBalancerIngress, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - - yyv4676 := *v - yyh4676, yyl4676 := z.DecSliceHelperStart() - var yyc4676 bool - if yyl4676 == 0 { - if yyv4676 == nil { - yyv4676 = []LoadBalancerIngress{} - yyc4676 = true - } else if len(yyv4676) != 0 { - yyv4676 = yyv4676[:0] - yyc4676 = true - } - } else if yyl4676 > 0 { - var yyrr4676, yyrl4676 int - var yyrt4676 bool - if yyl4676 > cap(yyv4676) { - - yyrg4676 := len(yyv4676) > 0 - yyv24676 := yyv4676 - yyrl4676, yyrt4676 = z.DecInferLen(yyl4676, z.DecBasicHandle().MaxInitLen, 32) - if yyrt4676 { - if yyrl4676 <= cap(yyv4676) { - yyv4676 = yyv4676[:yyrl4676] - } else { - yyv4676 = make([]LoadBalancerIngress, yyrl4676) - } - } else { - yyv4676 = make([]LoadBalancerIngress, yyrl4676) - } - yyc4676 = true - yyrr4676 = len(yyv4676) - if yyrg4676 { - copy(yyv4676, yyv24676) - } - } else if yyl4676 != len(yyv4676) { - yyv4676 = yyv4676[:yyl4676] - yyc4676 = true - } - yyj4676 := 0 - for ; yyj4676 < yyrr4676; yyj4676++ { - yyh4676.ElemContainerState(yyj4676) - if r.TryDecodeAsNil() { - yyv4676[yyj4676] = LoadBalancerIngress{} - } else { - yyv4677 := &yyv4676[yyj4676] - yyv4677.CodecDecodeSelf(d) - } - - } - if yyrt4676 { - for ; yyj4676 < yyl4676; yyj4676++ { - yyv4676 = append(yyv4676, LoadBalancerIngress{}) - yyh4676.ElemContainerState(yyj4676) - if r.TryDecodeAsNil() { - yyv4676[yyj4676] = LoadBalancerIngress{} - } else { - yyv4678 := &yyv4676[yyj4676] - yyv4678.CodecDecodeSelf(d) - } - - } - } - - } else { - yyj4676 := 0 - for ; !r.CheckBreak(); yyj4676++ { - - if yyj4676 >= len(yyv4676) { - yyv4676 = append(yyv4676, LoadBalancerIngress{}) // var yyz4676 LoadBalancerIngress - yyc4676 = true - } - yyh4676.ElemContainerState(yyj4676) - if yyj4676 < len(yyv4676) { - if r.TryDecodeAsNil() { - yyv4676[yyj4676] = LoadBalancerIngress{} - } else { - yyv4679 := &yyv4676[yyj4676] - yyv4679.CodecDecodeSelf(d) - } - - } else { - z.DecSwallow() - } - - } - if yyj4676 < len(yyv4676) { - yyv4676 = yyv4676[:yyj4676] - yyc4676 = true - } else if yyj4676 == 0 && yyv4676 == nil { - yyv4676 = []LoadBalancerIngress{} - yyc4676 = true - } - } - yyh4676.End() - if yyc4676 { - *v = yyv4676 - } -} - -func (x codecSelfer1234) encSliceServicePort(v []ServicePort, e *codec1978.Encoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - r.EncodeArrayStart(len(v)) - for _, yyv4680 := range v { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy4681 := &yyv4680 - yy4681.CodecEncodeSelf(e) - } - z.EncSendContainerState(codecSelfer_containerArrayEnd1234) -} - -func (x codecSelfer1234) decSliceServicePort(v *[]ServicePort, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - - yyv4682 := *v - yyh4682, yyl4682 := z.DecSliceHelperStart() - var yyc4682 bool - if yyl4682 == 0 { - if yyv4682 == nil { - yyv4682 = []ServicePort{} - yyc4682 = true - } else if len(yyv4682) != 0 { - yyv4682 = yyv4682[:0] - yyc4682 = true - } - } else if yyl4682 > 0 { - var yyrr4682, yyrl4682 int - var yyrt4682 bool - if yyl4682 > cap(yyv4682) { - - yyrg4682 := len(yyv4682) > 0 - yyv24682 := yyv4682 - yyrl4682, yyrt4682 = z.DecInferLen(yyl4682, z.DecBasicHandle().MaxInitLen, 80) - if yyrt4682 { - if yyrl4682 <= cap(yyv4682) { - yyv4682 = yyv4682[:yyrl4682] - } else { - yyv4682 = make([]ServicePort, yyrl4682) - } - } else { - yyv4682 = make([]ServicePort, yyrl4682) - } - yyc4682 = true - yyrr4682 = len(yyv4682) - if yyrg4682 { - copy(yyv4682, yyv24682) - } - } else if yyl4682 != len(yyv4682) { - yyv4682 = yyv4682[:yyl4682] - yyc4682 = true - } - yyj4682 := 0 - for ; yyj4682 < yyrr4682; yyj4682++ { - yyh4682.ElemContainerState(yyj4682) - if r.TryDecodeAsNil() { - yyv4682[yyj4682] = ServicePort{} - } else { - yyv4683 := &yyv4682[yyj4682] - yyv4683.CodecDecodeSelf(d) - } - - } - if yyrt4682 { - for ; yyj4682 < yyl4682; yyj4682++ { - yyv4682 = append(yyv4682, ServicePort{}) - yyh4682.ElemContainerState(yyj4682) - if r.TryDecodeAsNil() { - yyv4682[yyj4682] = ServicePort{} - } else { - yyv4684 := &yyv4682[yyj4682] - yyv4684.CodecDecodeSelf(d) - } - - } - } - - } else { - yyj4682 := 0 - for ; !r.CheckBreak(); yyj4682++ { - - if yyj4682 >= len(yyv4682) { - yyv4682 = append(yyv4682, ServicePort{}) // var yyz4682 ServicePort - yyc4682 = true - } - yyh4682.ElemContainerState(yyj4682) - if yyj4682 < len(yyv4682) { - if r.TryDecodeAsNil() { - yyv4682[yyj4682] = ServicePort{} - } else { - yyv4685 := &yyv4682[yyj4682] - yyv4685.CodecDecodeSelf(d) - } - - } else { - z.DecSwallow() - } - - } - if yyj4682 < len(yyv4682) { - yyv4682 = yyv4682[:yyj4682] - yyc4682 = true - } else if yyj4682 == 0 && yyv4682 == nil { - yyv4682 = []ServicePort{} - yyc4682 = true - } - } - yyh4682.End() - if yyc4682 { - *v = yyv4682 - } -} - -func (x codecSelfer1234) encSliceObjectReference(v []ObjectReference, e *codec1978.Encoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - r.EncodeArrayStart(len(v)) - for _, yyv4686 := range v { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy4687 := &yyv4686 - yy4687.CodecEncodeSelf(e) - } - z.EncSendContainerState(codecSelfer_containerArrayEnd1234) -} - -func (x codecSelfer1234) decSliceObjectReference(v *[]ObjectReference, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - - yyv4688 := *v - yyh4688, yyl4688 := z.DecSliceHelperStart() - var yyc4688 bool - if yyl4688 == 0 { - if yyv4688 == nil { - yyv4688 = []ObjectReference{} - yyc4688 = true - } else if len(yyv4688) != 0 { - yyv4688 = yyv4688[:0] - yyc4688 = true - } - } else if yyl4688 > 0 { - var yyrr4688, yyrl4688 int - var yyrt4688 bool - if yyl4688 > cap(yyv4688) { - - yyrg4688 := len(yyv4688) > 0 - yyv24688 := yyv4688 - yyrl4688, yyrt4688 = z.DecInferLen(yyl4688, z.DecBasicHandle().MaxInitLen, 112) - if yyrt4688 { - if yyrl4688 <= cap(yyv4688) { - yyv4688 = yyv4688[:yyrl4688] - } else { - yyv4688 = make([]ObjectReference, yyrl4688) - } - } else { - yyv4688 = make([]ObjectReference, yyrl4688) - } - yyc4688 = true - yyrr4688 = len(yyv4688) - if yyrg4688 { - copy(yyv4688, yyv24688) - } - } else if yyl4688 != len(yyv4688) { - yyv4688 = yyv4688[:yyl4688] - yyc4688 = true - } - yyj4688 := 0 - for ; yyj4688 < yyrr4688; yyj4688++ { - yyh4688.ElemContainerState(yyj4688) - if r.TryDecodeAsNil() { - yyv4688[yyj4688] = ObjectReference{} - } else { - yyv4689 := &yyv4688[yyj4688] - yyv4689.CodecDecodeSelf(d) - } - - } - if yyrt4688 { - for ; yyj4688 < yyl4688; yyj4688++ { - yyv4688 = append(yyv4688, ObjectReference{}) - yyh4688.ElemContainerState(yyj4688) - if r.TryDecodeAsNil() { - yyv4688[yyj4688] = ObjectReference{} - } else { - yyv4690 := &yyv4688[yyj4688] - yyv4690.CodecDecodeSelf(d) - } - - } - } - - } else { - yyj4688 := 0 - for ; !r.CheckBreak(); yyj4688++ { - - if yyj4688 >= len(yyv4688) { - yyv4688 = append(yyv4688, ObjectReference{}) // var yyz4688 ObjectReference - yyc4688 = true - } - yyh4688.ElemContainerState(yyj4688) - if yyj4688 < len(yyv4688) { - if r.TryDecodeAsNil() { - yyv4688[yyj4688] = ObjectReference{} - } else { - yyv4691 := &yyv4688[yyj4688] - yyv4691.CodecDecodeSelf(d) - } - - } else { - z.DecSwallow() - } - - } - if yyj4688 < len(yyv4688) { - yyv4688 = yyv4688[:yyj4688] - yyc4688 = true - } else if yyj4688 == 0 && yyv4688 == nil { - yyv4688 = []ObjectReference{} - yyc4688 = true - } - } - yyh4688.End() - if yyc4688 { - *v = yyv4688 - } -} - -func (x codecSelfer1234) encSliceServiceAccount(v []ServiceAccount, e *codec1978.Encoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - r.EncodeArrayStart(len(v)) - for _, yyv4692 := range v { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy4693 := &yyv4692 - yy4693.CodecEncodeSelf(e) - } - z.EncSendContainerState(codecSelfer_containerArrayEnd1234) -} - -func (x codecSelfer1234) decSliceServiceAccount(v *[]ServiceAccount, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - - yyv4694 := *v - yyh4694, yyl4694 := z.DecSliceHelperStart() - var yyc4694 bool - if yyl4694 == 0 { - if yyv4694 == nil { - yyv4694 = []ServiceAccount{} - yyc4694 = true - } else if len(yyv4694) != 0 { - yyv4694 = yyv4694[:0] - yyc4694 = true - } - } else if yyl4694 > 0 { - var yyrr4694, yyrl4694 int - var yyrt4694 bool - if yyl4694 > cap(yyv4694) { - - yyrg4694 := len(yyv4694) > 0 - yyv24694 := yyv4694 - yyrl4694, yyrt4694 = z.DecInferLen(yyl4694, z.DecBasicHandle().MaxInitLen, 304) - if yyrt4694 { - if yyrl4694 <= cap(yyv4694) { - yyv4694 = yyv4694[:yyrl4694] - } else { - yyv4694 = make([]ServiceAccount, yyrl4694) - } - } else { - yyv4694 = make([]ServiceAccount, yyrl4694) - } - yyc4694 = true - yyrr4694 = len(yyv4694) - if yyrg4694 { - copy(yyv4694, yyv24694) - } - } else if yyl4694 != len(yyv4694) { - yyv4694 = yyv4694[:yyl4694] - yyc4694 = true - } - yyj4694 := 0 - for ; yyj4694 < yyrr4694; yyj4694++ { - yyh4694.ElemContainerState(yyj4694) - if r.TryDecodeAsNil() { - yyv4694[yyj4694] = ServiceAccount{} - } else { - yyv4695 := &yyv4694[yyj4694] - yyv4695.CodecDecodeSelf(d) - } - - } - if yyrt4694 { - for ; yyj4694 < yyl4694; yyj4694++ { - yyv4694 = append(yyv4694, ServiceAccount{}) - yyh4694.ElemContainerState(yyj4694) - if r.TryDecodeAsNil() { - yyv4694[yyj4694] = ServiceAccount{} - } else { - yyv4696 := &yyv4694[yyj4694] - yyv4696.CodecDecodeSelf(d) - } - - } - } - - } else { - yyj4694 := 0 - for ; !r.CheckBreak(); yyj4694++ { - - if yyj4694 >= len(yyv4694) { - yyv4694 = append(yyv4694, ServiceAccount{}) // var yyz4694 ServiceAccount - yyc4694 = true - } - yyh4694.ElemContainerState(yyj4694) - if yyj4694 < len(yyv4694) { - if r.TryDecodeAsNil() { - yyv4694[yyj4694] = ServiceAccount{} - } else { - yyv4697 := &yyv4694[yyj4694] - yyv4697.CodecDecodeSelf(d) - } - - } else { - z.DecSwallow() - } - - } - if yyj4694 < len(yyv4694) { - yyv4694 = yyv4694[:yyj4694] - yyc4694 = true - } else if yyj4694 == 0 && yyv4694 == nil { - yyv4694 = []ServiceAccount{} - yyc4694 = true - } - } - yyh4694.End() - if yyc4694 { - *v = yyv4694 - } -} - -func (x codecSelfer1234) encSliceEndpointSubset(v []EndpointSubset, e *codec1978.Encoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - r.EncodeArrayStart(len(v)) - for _, yyv4698 := range v { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy4699 := &yyv4698 - yy4699.CodecEncodeSelf(e) - } - z.EncSendContainerState(codecSelfer_containerArrayEnd1234) -} - -func (x codecSelfer1234) decSliceEndpointSubset(v *[]EndpointSubset, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - - yyv4700 := *v - yyh4700, yyl4700 := z.DecSliceHelperStart() - var yyc4700 bool - if yyl4700 == 0 { - if yyv4700 == nil { - yyv4700 = []EndpointSubset{} - yyc4700 = true - } else if len(yyv4700) != 0 { - yyv4700 = yyv4700[:0] - yyc4700 = true - } - } else if yyl4700 > 0 { - var yyrr4700, yyrl4700 int - var yyrt4700 bool - if yyl4700 > cap(yyv4700) { - - yyrg4700 := len(yyv4700) > 0 - yyv24700 := yyv4700 - yyrl4700, yyrt4700 = z.DecInferLen(yyl4700, z.DecBasicHandle().MaxInitLen, 72) - if yyrt4700 { - if yyrl4700 <= cap(yyv4700) { - yyv4700 = yyv4700[:yyrl4700] - } else { - yyv4700 = make([]EndpointSubset, yyrl4700) - } - } else { - yyv4700 = make([]EndpointSubset, yyrl4700) - } - yyc4700 = true - yyrr4700 = len(yyv4700) - if yyrg4700 { - copy(yyv4700, yyv24700) - } - } else if yyl4700 != len(yyv4700) { - yyv4700 = yyv4700[:yyl4700] - yyc4700 = true - } - yyj4700 := 0 - for ; yyj4700 < yyrr4700; yyj4700++ { - yyh4700.ElemContainerState(yyj4700) - if r.TryDecodeAsNil() { - yyv4700[yyj4700] = EndpointSubset{} - } else { - yyv4701 := &yyv4700[yyj4700] - yyv4701.CodecDecodeSelf(d) - } - - } - if yyrt4700 { - for ; yyj4700 < yyl4700; yyj4700++ { - yyv4700 = append(yyv4700, EndpointSubset{}) - yyh4700.ElemContainerState(yyj4700) - if r.TryDecodeAsNil() { - yyv4700[yyj4700] = EndpointSubset{} - } else { - yyv4702 := &yyv4700[yyj4700] - yyv4702.CodecDecodeSelf(d) - } - - } - } - - } else { - yyj4700 := 0 - for ; !r.CheckBreak(); yyj4700++ { - - if yyj4700 >= len(yyv4700) { - yyv4700 = append(yyv4700, EndpointSubset{}) // var yyz4700 EndpointSubset - yyc4700 = true - } - yyh4700.ElemContainerState(yyj4700) - if yyj4700 < len(yyv4700) { - if r.TryDecodeAsNil() { - yyv4700[yyj4700] = EndpointSubset{} - } else { - yyv4703 := &yyv4700[yyj4700] - yyv4703.CodecDecodeSelf(d) - } - - } else { - z.DecSwallow() - } - - } - if yyj4700 < len(yyv4700) { - yyv4700 = yyv4700[:yyj4700] - yyc4700 = true - } else if yyj4700 == 0 && yyv4700 == nil { - yyv4700 = []EndpointSubset{} - yyc4700 = true - } - } - yyh4700.End() - if yyc4700 { - *v = yyv4700 - } -} - -func (x codecSelfer1234) encSliceEndpointAddress(v []EndpointAddress, e *codec1978.Encoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - r.EncodeArrayStart(len(v)) - for _, yyv4704 := range v { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy4705 := &yyv4704 - yy4705.CodecEncodeSelf(e) - } - z.EncSendContainerState(codecSelfer_containerArrayEnd1234) -} - -func (x codecSelfer1234) decSliceEndpointAddress(v *[]EndpointAddress, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - - yyv4706 := *v - yyh4706, yyl4706 := z.DecSliceHelperStart() - var yyc4706 bool - if yyl4706 == 0 { - if yyv4706 == nil { - yyv4706 = []EndpointAddress{} - yyc4706 = true - } else if len(yyv4706) != 0 { - yyv4706 = yyv4706[:0] - yyc4706 = true - } - } else if yyl4706 > 0 { - var yyrr4706, yyrl4706 int - var yyrt4706 bool - if yyl4706 > cap(yyv4706) { - - yyrg4706 := len(yyv4706) > 0 - yyv24706 := yyv4706 - yyrl4706, yyrt4706 = z.DecInferLen(yyl4706, z.DecBasicHandle().MaxInitLen, 48) - if yyrt4706 { - if yyrl4706 <= cap(yyv4706) { - yyv4706 = yyv4706[:yyrl4706] - } else { - yyv4706 = make([]EndpointAddress, yyrl4706) - } - } else { - yyv4706 = make([]EndpointAddress, yyrl4706) - } - yyc4706 = true - yyrr4706 = len(yyv4706) - if yyrg4706 { - copy(yyv4706, yyv24706) - } - } else if yyl4706 != len(yyv4706) { - yyv4706 = yyv4706[:yyl4706] - yyc4706 = true - } - yyj4706 := 0 - for ; yyj4706 < yyrr4706; yyj4706++ { - yyh4706.ElemContainerState(yyj4706) - if r.TryDecodeAsNil() { - yyv4706[yyj4706] = EndpointAddress{} - } else { - yyv4707 := &yyv4706[yyj4706] - yyv4707.CodecDecodeSelf(d) - } - - } - if yyrt4706 { - for ; yyj4706 < yyl4706; yyj4706++ { - yyv4706 = append(yyv4706, EndpointAddress{}) - yyh4706.ElemContainerState(yyj4706) - if r.TryDecodeAsNil() { - yyv4706[yyj4706] = EndpointAddress{} - } else { - yyv4708 := &yyv4706[yyj4706] - yyv4708.CodecDecodeSelf(d) - } - - } - } - - } else { - yyj4706 := 0 - for ; !r.CheckBreak(); yyj4706++ { - - if yyj4706 >= len(yyv4706) { - yyv4706 = append(yyv4706, EndpointAddress{}) // var yyz4706 EndpointAddress - yyc4706 = true - } - yyh4706.ElemContainerState(yyj4706) - if yyj4706 < len(yyv4706) { - if r.TryDecodeAsNil() { - yyv4706[yyj4706] = EndpointAddress{} - } else { - yyv4709 := &yyv4706[yyj4706] - yyv4709.CodecDecodeSelf(d) - } - - } else { - z.DecSwallow() - } - - } - if yyj4706 < len(yyv4706) { - yyv4706 = yyv4706[:yyj4706] - yyc4706 = true - } else if yyj4706 == 0 && yyv4706 == nil { - yyv4706 = []EndpointAddress{} - yyc4706 = true - } - } - yyh4706.End() - if yyc4706 { - *v = yyv4706 - } -} - -func (x codecSelfer1234) encSliceEndpointPort(v []EndpointPort, e *codec1978.Encoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - r.EncodeArrayStart(len(v)) - for _, yyv4710 := range v { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy4711 := &yyv4710 - yy4711.CodecEncodeSelf(e) - } - z.EncSendContainerState(codecSelfer_containerArrayEnd1234) -} - -func (x codecSelfer1234) decSliceEndpointPort(v *[]EndpointPort, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - - yyv4712 := *v - yyh4712, yyl4712 := z.DecSliceHelperStart() - var yyc4712 bool - if yyl4712 == 0 { - if yyv4712 == nil { - yyv4712 = []EndpointPort{} - yyc4712 = true - } else if len(yyv4712) != 0 { - yyv4712 = yyv4712[:0] - yyc4712 = true - } - } else if yyl4712 > 0 { - var yyrr4712, yyrl4712 int - var yyrt4712 bool - if yyl4712 > cap(yyv4712) { - - yyrg4712 := len(yyv4712) > 0 - yyv24712 := yyv4712 - yyrl4712, yyrt4712 = z.DecInferLen(yyl4712, z.DecBasicHandle().MaxInitLen, 40) - if yyrt4712 { - if yyrl4712 <= cap(yyv4712) { - yyv4712 = yyv4712[:yyrl4712] - } else { - yyv4712 = make([]EndpointPort, yyrl4712) - } - } else { - yyv4712 = make([]EndpointPort, yyrl4712) - } - yyc4712 = true - yyrr4712 = len(yyv4712) - if yyrg4712 { - copy(yyv4712, yyv24712) - } - } else if yyl4712 != len(yyv4712) { - yyv4712 = yyv4712[:yyl4712] - yyc4712 = true - } - yyj4712 := 0 - for ; yyj4712 < yyrr4712; yyj4712++ { - yyh4712.ElemContainerState(yyj4712) - if r.TryDecodeAsNil() { - yyv4712[yyj4712] = EndpointPort{} - } else { - yyv4713 := &yyv4712[yyj4712] - yyv4713.CodecDecodeSelf(d) - } - - } - if yyrt4712 { - for ; yyj4712 < yyl4712; yyj4712++ { - yyv4712 = append(yyv4712, EndpointPort{}) - yyh4712.ElemContainerState(yyj4712) - if r.TryDecodeAsNil() { - yyv4712[yyj4712] = EndpointPort{} - } else { - yyv4714 := &yyv4712[yyj4712] - yyv4714.CodecDecodeSelf(d) - } - - } - } - - } else { - yyj4712 := 0 - for ; !r.CheckBreak(); yyj4712++ { - - if yyj4712 >= len(yyv4712) { - yyv4712 = append(yyv4712, EndpointPort{}) // var yyz4712 EndpointPort - yyc4712 = true - } - yyh4712.ElemContainerState(yyj4712) - if yyj4712 < len(yyv4712) { - if r.TryDecodeAsNil() { - yyv4712[yyj4712] = EndpointPort{} - } else { - yyv4715 := &yyv4712[yyj4712] - yyv4715.CodecDecodeSelf(d) - } - - } else { - z.DecSwallow() - } - - } - if yyj4712 < len(yyv4712) { - yyv4712 = yyv4712[:yyj4712] - yyc4712 = true - } else if yyj4712 == 0 && yyv4712 == nil { - yyv4712 = []EndpointPort{} - yyc4712 = true - } - } - yyh4712.End() - if yyc4712 { - *v = yyv4712 - } -} - -func (x codecSelfer1234) encSliceEndpoints(v []Endpoints, e *codec1978.Encoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - r.EncodeArrayStart(len(v)) - for _, yyv4716 := range v { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy4717 := &yyv4716 - yy4717.CodecEncodeSelf(e) - } - z.EncSendContainerState(codecSelfer_containerArrayEnd1234) -} - -func (x codecSelfer1234) decSliceEndpoints(v *[]Endpoints, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - - yyv4718 := *v - yyh4718, yyl4718 := z.DecSliceHelperStart() - var yyc4718 bool - if yyl4718 == 0 { - if yyv4718 == nil { - yyv4718 = []Endpoints{} - yyc4718 = true - } else if len(yyv4718) != 0 { - yyv4718 = yyv4718[:0] - yyc4718 = true - } - } else if yyl4718 > 0 { - var yyrr4718, yyrl4718 int - var yyrt4718 bool - if yyl4718 > cap(yyv4718) { - - yyrg4718 := len(yyv4718) > 0 - yyv24718 := yyv4718 - yyrl4718, yyrt4718 = z.DecInferLen(yyl4718, z.DecBasicHandle().MaxInitLen, 280) - if yyrt4718 { - if yyrl4718 <= cap(yyv4718) { - yyv4718 = yyv4718[:yyrl4718] - } else { - yyv4718 = make([]Endpoints, yyrl4718) - } - } else { - yyv4718 = make([]Endpoints, yyrl4718) - } - yyc4718 = true - yyrr4718 = len(yyv4718) - if yyrg4718 { - copy(yyv4718, yyv24718) - } - } else if yyl4718 != len(yyv4718) { - yyv4718 = yyv4718[:yyl4718] - yyc4718 = true - } - yyj4718 := 0 - for ; yyj4718 < yyrr4718; yyj4718++ { - yyh4718.ElemContainerState(yyj4718) - if r.TryDecodeAsNil() { - yyv4718[yyj4718] = Endpoints{} - } else { - yyv4719 := &yyv4718[yyj4718] - yyv4719.CodecDecodeSelf(d) - } - - } - if yyrt4718 { - for ; yyj4718 < yyl4718; yyj4718++ { - yyv4718 = append(yyv4718, Endpoints{}) - yyh4718.ElemContainerState(yyj4718) - if r.TryDecodeAsNil() { - yyv4718[yyj4718] = Endpoints{} - } else { - yyv4720 := &yyv4718[yyj4718] - yyv4720.CodecDecodeSelf(d) - } - - } - } - - } else { - yyj4718 := 0 - for ; !r.CheckBreak(); yyj4718++ { - - if yyj4718 >= len(yyv4718) { - yyv4718 = append(yyv4718, Endpoints{}) // var yyz4718 Endpoints - yyc4718 = true - } - yyh4718.ElemContainerState(yyj4718) - if yyj4718 < len(yyv4718) { - if r.TryDecodeAsNil() { - yyv4718[yyj4718] = Endpoints{} - } else { - yyv4721 := &yyv4718[yyj4718] - yyv4721.CodecDecodeSelf(d) - } - - } else { - z.DecSwallow() - } - - } - if yyj4718 < len(yyv4718) { - yyv4718 = yyv4718[:yyj4718] - yyc4718 = true - } else if yyj4718 == 0 && yyv4718 == nil { - yyv4718 = []Endpoints{} - yyc4718 = true - } - } - yyh4718.End() - if yyc4718 { - *v = yyv4718 - } -} - -func (x codecSelfer1234) encSliceNodeCondition(v []NodeCondition, e *codec1978.Encoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - r.EncodeArrayStart(len(v)) - for _, yyv4722 := range v { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy4723 := &yyv4722 - yy4723.CodecEncodeSelf(e) - } - z.EncSendContainerState(codecSelfer_containerArrayEnd1234) -} - -func (x codecSelfer1234) decSliceNodeCondition(v *[]NodeCondition, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - - yyv4724 := *v - yyh4724, yyl4724 := z.DecSliceHelperStart() - var yyc4724 bool - if yyl4724 == 0 { - if yyv4724 == nil { - yyv4724 = []NodeCondition{} - yyc4724 = true - } else if len(yyv4724) != 0 { - yyv4724 = yyv4724[:0] - yyc4724 = true - } - } else if yyl4724 > 0 { - var yyrr4724, yyrl4724 int - var yyrt4724 bool - if yyl4724 > cap(yyv4724) { - - yyrg4724 := len(yyv4724) > 0 - yyv24724 := yyv4724 - yyrl4724, yyrt4724 = z.DecInferLen(yyl4724, z.DecBasicHandle().MaxInitLen, 112) - if yyrt4724 { - if yyrl4724 <= cap(yyv4724) { - yyv4724 = yyv4724[:yyrl4724] - } else { - yyv4724 = make([]NodeCondition, yyrl4724) - } - } else { - yyv4724 = make([]NodeCondition, yyrl4724) - } - yyc4724 = true - yyrr4724 = len(yyv4724) - if yyrg4724 { - copy(yyv4724, yyv24724) - } - } else if yyl4724 != len(yyv4724) { - yyv4724 = yyv4724[:yyl4724] - yyc4724 = true - } - yyj4724 := 0 - for ; yyj4724 < yyrr4724; yyj4724++ { - yyh4724.ElemContainerState(yyj4724) - if r.TryDecodeAsNil() { - yyv4724[yyj4724] = NodeCondition{} - } else { - yyv4725 := &yyv4724[yyj4724] - yyv4725.CodecDecodeSelf(d) - } - - } - if yyrt4724 { - for ; yyj4724 < yyl4724; yyj4724++ { - yyv4724 = append(yyv4724, NodeCondition{}) - yyh4724.ElemContainerState(yyj4724) - if r.TryDecodeAsNil() { - yyv4724[yyj4724] = NodeCondition{} - } else { - yyv4726 := &yyv4724[yyj4724] - yyv4726.CodecDecodeSelf(d) - } - - } - } - - } else { - yyj4724 := 0 - for ; !r.CheckBreak(); yyj4724++ { - - if yyj4724 >= len(yyv4724) { - yyv4724 = append(yyv4724, NodeCondition{}) // var yyz4724 NodeCondition - yyc4724 = true - } - yyh4724.ElemContainerState(yyj4724) - if yyj4724 < len(yyv4724) { - if r.TryDecodeAsNil() { - yyv4724[yyj4724] = NodeCondition{} - } else { - yyv4727 := &yyv4724[yyj4724] - yyv4727.CodecDecodeSelf(d) - } - - } else { - z.DecSwallow() - } - - } - if yyj4724 < len(yyv4724) { - yyv4724 = yyv4724[:yyj4724] - yyc4724 = true - } else if yyj4724 == 0 && yyv4724 == nil { - yyv4724 = []NodeCondition{} - yyc4724 = true - } - } - yyh4724.End() - if yyc4724 { - *v = yyv4724 - } -} - -func (x codecSelfer1234) encSliceNodeAddress(v []NodeAddress, e *codec1978.Encoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - r.EncodeArrayStart(len(v)) - for _, yyv4728 := range v { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy4729 := &yyv4728 - yy4729.CodecEncodeSelf(e) - } - z.EncSendContainerState(codecSelfer_containerArrayEnd1234) -} - -func (x codecSelfer1234) decSliceNodeAddress(v *[]NodeAddress, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - - yyv4730 := *v - yyh4730, yyl4730 := z.DecSliceHelperStart() - var yyc4730 bool - if yyl4730 == 0 { - if yyv4730 == nil { - yyv4730 = []NodeAddress{} - yyc4730 = true - } else if len(yyv4730) != 0 { - yyv4730 = yyv4730[:0] - yyc4730 = true - } - } else if yyl4730 > 0 { - var yyrr4730, yyrl4730 int - var yyrt4730 bool - if yyl4730 > cap(yyv4730) { - - yyrg4730 := len(yyv4730) > 0 - yyv24730 := yyv4730 - yyrl4730, yyrt4730 = z.DecInferLen(yyl4730, z.DecBasicHandle().MaxInitLen, 32) - if yyrt4730 { - if yyrl4730 <= cap(yyv4730) { - yyv4730 = yyv4730[:yyrl4730] - } else { - yyv4730 = make([]NodeAddress, yyrl4730) - } - } else { - yyv4730 = make([]NodeAddress, yyrl4730) - } - yyc4730 = true - yyrr4730 = len(yyv4730) - if yyrg4730 { - copy(yyv4730, yyv24730) - } - } else if yyl4730 != len(yyv4730) { - yyv4730 = yyv4730[:yyl4730] - yyc4730 = true - } - yyj4730 := 0 - for ; yyj4730 < yyrr4730; yyj4730++ { - yyh4730.ElemContainerState(yyj4730) - if r.TryDecodeAsNil() { - yyv4730[yyj4730] = NodeAddress{} - } else { - yyv4731 := &yyv4730[yyj4730] - yyv4731.CodecDecodeSelf(d) - } - - } - if yyrt4730 { - for ; yyj4730 < yyl4730; yyj4730++ { - yyv4730 = append(yyv4730, NodeAddress{}) - yyh4730.ElemContainerState(yyj4730) - if r.TryDecodeAsNil() { - yyv4730[yyj4730] = NodeAddress{} - } else { - yyv4732 := &yyv4730[yyj4730] - yyv4732.CodecDecodeSelf(d) - } - - } - } - - } else { - yyj4730 := 0 - for ; !r.CheckBreak(); yyj4730++ { - - if yyj4730 >= len(yyv4730) { - yyv4730 = append(yyv4730, NodeAddress{}) // var yyz4730 NodeAddress - yyc4730 = true - } - yyh4730.ElemContainerState(yyj4730) - if yyj4730 < len(yyv4730) { - if r.TryDecodeAsNil() { - yyv4730[yyj4730] = NodeAddress{} - } else { - yyv4733 := &yyv4730[yyj4730] - yyv4733.CodecDecodeSelf(d) - } - - } else { - z.DecSwallow() - } - - } - if yyj4730 < len(yyv4730) { - yyv4730 = yyv4730[:yyj4730] - yyc4730 = true - } else if yyj4730 == 0 && yyv4730 == nil { - yyv4730 = []NodeAddress{} - yyc4730 = true - } - } - yyh4730.End() - if yyc4730 { - *v = yyv4730 - } -} - -func (x codecSelfer1234) encSliceContainerImage(v []ContainerImage, e *codec1978.Encoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - r.EncodeArrayStart(len(v)) - for _, yyv4734 := range v { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy4735 := &yyv4734 - yy4735.CodecEncodeSelf(e) - } - z.EncSendContainerState(codecSelfer_containerArrayEnd1234) -} - -func (x codecSelfer1234) decSliceContainerImage(v *[]ContainerImage, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - - yyv4736 := *v - yyh4736, yyl4736 := z.DecSliceHelperStart() - var yyc4736 bool - if yyl4736 == 0 { - if yyv4736 == nil { - yyv4736 = []ContainerImage{} - yyc4736 = true - } else if len(yyv4736) != 0 { - yyv4736 = yyv4736[:0] - yyc4736 = true - } - } else if yyl4736 > 0 { - var yyrr4736, yyrl4736 int - var yyrt4736 bool - if yyl4736 > cap(yyv4736) { - - yyrg4736 := len(yyv4736) > 0 - yyv24736 := yyv4736 - yyrl4736, yyrt4736 = z.DecInferLen(yyl4736, z.DecBasicHandle().MaxInitLen, 32) - if yyrt4736 { - if yyrl4736 <= cap(yyv4736) { - yyv4736 = yyv4736[:yyrl4736] - } else { - yyv4736 = make([]ContainerImage, yyrl4736) - } - } else { - yyv4736 = make([]ContainerImage, yyrl4736) - } - yyc4736 = true - yyrr4736 = len(yyv4736) - if yyrg4736 { - copy(yyv4736, yyv24736) - } - } else if yyl4736 != len(yyv4736) { - yyv4736 = yyv4736[:yyl4736] - yyc4736 = true - } - yyj4736 := 0 - for ; yyj4736 < yyrr4736; yyj4736++ { - yyh4736.ElemContainerState(yyj4736) - if r.TryDecodeAsNil() { - yyv4736[yyj4736] = ContainerImage{} - } else { - yyv4737 := &yyv4736[yyj4736] - yyv4737.CodecDecodeSelf(d) - } - - } - if yyrt4736 { - for ; yyj4736 < yyl4736; yyj4736++ { - yyv4736 = append(yyv4736, ContainerImage{}) - yyh4736.ElemContainerState(yyj4736) - if r.TryDecodeAsNil() { - yyv4736[yyj4736] = ContainerImage{} - } else { - yyv4738 := &yyv4736[yyj4736] - yyv4738.CodecDecodeSelf(d) - } - - } - } - - } else { - yyj4736 := 0 - for ; !r.CheckBreak(); yyj4736++ { - - if yyj4736 >= len(yyv4736) { - yyv4736 = append(yyv4736, ContainerImage{}) // var yyz4736 ContainerImage - yyc4736 = true - } - yyh4736.ElemContainerState(yyj4736) - if yyj4736 < len(yyv4736) { - if r.TryDecodeAsNil() { - yyv4736[yyj4736] = ContainerImage{} - } else { - yyv4739 := &yyv4736[yyj4736] - yyv4739.CodecDecodeSelf(d) - } - - } else { - z.DecSwallow() - } - - } - if yyj4736 < len(yyv4736) { - yyv4736 = yyv4736[:yyj4736] - yyc4736 = true - } else if yyj4736 == 0 && yyv4736 == nil { - yyv4736 = []ContainerImage{} - yyc4736 = true - } - } - yyh4736.End() - if yyc4736 { - *v = yyv4736 - } -} - -func (x codecSelfer1234) encSliceUniqueVolumeName(v []UniqueVolumeName, e *codec1978.Encoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - r.EncodeArrayStart(len(v)) - for _, yyv4740 := range v { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yyv4740.CodecEncodeSelf(e) - } - z.EncSendContainerState(codecSelfer_containerArrayEnd1234) -} - -func (x codecSelfer1234) decSliceUniqueVolumeName(v *[]UniqueVolumeName, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - yyv4741 := *v yyh4741, yyl4741 := z.DecSliceHelperStart() var yyc4741 bool if yyl4741 == 0 { if yyv4741 == nil { - yyv4741 = []UniqueVolumeName{} + yyv4741 = []PodTemplate{} yyc4741 = true } else if len(yyv4741) != 0 { yyv4741 = yyv4741[:0] @@ -60379,18 +59836,23 @@ func (x codecSelfer1234) decSliceUniqueVolumeName(v *[]UniqueVolumeName, d *code var yyrt4741 bool if yyl4741 > cap(yyv4741) { - yyrl4741, yyrt4741 = z.DecInferLen(yyl4741, z.DecBasicHandle().MaxInitLen, 16) + yyrg4741 := len(yyv4741) > 0 + yyv24741 := yyv4741 + yyrl4741, yyrt4741 = z.DecInferLen(yyl4741, z.DecBasicHandle().MaxInitLen, 704) if yyrt4741 { if yyrl4741 <= cap(yyv4741) { yyv4741 = yyv4741[:yyrl4741] } else { - yyv4741 = make([]UniqueVolumeName, yyrl4741) + yyv4741 = make([]PodTemplate, yyrl4741) } } else { - yyv4741 = make([]UniqueVolumeName, yyrl4741) + yyv4741 = make([]PodTemplate, yyrl4741) } yyc4741 = true yyrr4741 = len(yyv4741) + if yyrg4741 { + copy(yyv4741, yyv24741) + } } else if yyl4741 != len(yyv4741) { yyv4741 = yyv4741[:yyl4741] yyc4741 = true @@ -60399,20 +59861,22 @@ func (x codecSelfer1234) decSliceUniqueVolumeName(v *[]UniqueVolumeName, d *code for ; yyj4741 < yyrr4741; yyj4741++ { yyh4741.ElemContainerState(yyj4741) if r.TryDecodeAsNil() { - yyv4741[yyj4741] = "" + yyv4741[yyj4741] = PodTemplate{} } else { - yyv4741[yyj4741] = UniqueVolumeName(r.DecodeString()) + yyv4742 := &yyv4741[yyj4741] + yyv4742.CodecDecodeSelf(d) } } if yyrt4741 { for ; yyj4741 < yyl4741; yyj4741++ { - yyv4741 = append(yyv4741, "") + yyv4741 = append(yyv4741, PodTemplate{}) yyh4741.ElemContainerState(yyj4741) if r.TryDecodeAsNil() { - yyv4741[yyj4741] = "" + yyv4741[yyj4741] = PodTemplate{} } else { - yyv4741[yyj4741] = UniqueVolumeName(r.DecodeString()) + yyv4743 := &yyv4741[yyj4741] + yyv4743.CodecDecodeSelf(d) } } @@ -60423,15 +59887,16 @@ func (x codecSelfer1234) decSliceUniqueVolumeName(v *[]UniqueVolumeName, d *code for ; !r.CheckBreak(); yyj4741++ { if yyj4741 >= len(yyv4741) { - yyv4741 = append(yyv4741, "") // var yyz4741 UniqueVolumeName + yyv4741 = append(yyv4741, PodTemplate{}) // var yyz4741 PodTemplate yyc4741 = true } yyh4741.ElemContainerState(yyj4741) if yyj4741 < len(yyv4741) { if r.TryDecodeAsNil() { - yyv4741[yyj4741] = "" + yyv4741[yyj4741] = PodTemplate{} } else { - yyv4741[yyj4741] = UniqueVolumeName(r.DecodeString()) + yyv4744 := &yyv4741[yyj4741] + yyv4744.CodecDecodeSelf(d) } } else { @@ -60443,7 +59908,7 @@ func (x codecSelfer1234) decSliceUniqueVolumeName(v *[]UniqueVolumeName, d *code yyv4741 = yyv4741[:yyj4741] yyc4741 = true } else if yyj4741 == 0 && yyv4741 == nil { - yyv4741 = []UniqueVolumeName{} + yyv4741 = []PodTemplate{} yyc4741 = true } } @@ -60453,7 +59918,7 @@ func (x codecSelfer1234) decSliceUniqueVolumeName(v *[]UniqueVolumeName, d *code } } -func (x codecSelfer1234) encSliceAttachedVolume(v []AttachedVolume, e *codec1978.Encoder) { +func (x codecSelfer1234) encSliceReplicationControllerCondition(v []ReplicationControllerCondition, e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r @@ -60466,7 +59931,7 @@ func (x codecSelfer1234) encSliceAttachedVolume(v []AttachedVolume, e *codec1978 z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } -func (x codecSelfer1234) decSliceAttachedVolume(v *[]AttachedVolume, d *codec1978.Decoder) { +func (x codecSelfer1234) decSliceReplicationControllerCondition(v *[]ReplicationControllerCondition, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r @@ -60476,7 +59941,7 @@ func (x codecSelfer1234) decSliceAttachedVolume(v *[]AttachedVolume, d *codec197 var yyc4747 bool if yyl4747 == 0 { if yyv4747 == nil { - yyv4747 = []AttachedVolume{} + yyv4747 = []ReplicationControllerCondition{} yyc4747 = true } else if len(yyv4747) != 0 { yyv4747 = yyv4747[:0] @@ -60489,15 +59954,15 @@ func (x codecSelfer1234) decSliceAttachedVolume(v *[]AttachedVolume, d *codec197 yyrg4747 := len(yyv4747) > 0 yyv24747 := yyv4747 - yyrl4747, yyrt4747 = z.DecInferLen(yyl4747, z.DecBasicHandle().MaxInitLen, 32) + yyrl4747, yyrt4747 = z.DecInferLen(yyl4747, z.DecBasicHandle().MaxInitLen, 88) if yyrt4747 { if yyrl4747 <= cap(yyv4747) { yyv4747 = yyv4747[:yyrl4747] } else { - yyv4747 = make([]AttachedVolume, yyrl4747) + yyv4747 = make([]ReplicationControllerCondition, yyrl4747) } } else { - yyv4747 = make([]AttachedVolume, yyrl4747) + yyv4747 = make([]ReplicationControllerCondition, yyrl4747) } yyc4747 = true yyrr4747 = len(yyv4747) @@ -60512,7 +59977,7 @@ func (x codecSelfer1234) decSliceAttachedVolume(v *[]AttachedVolume, d *codec197 for ; yyj4747 < yyrr4747; yyj4747++ { yyh4747.ElemContainerState(yyj4747) if r.TryDecodeAsNil() { - yyv4747[yyj4747] = AttachedVolume{} + yyv4747[yyj4747] = ReplicationControllerCondition{} } else { yyv4748 := &yyv4747[yyj4747] yyv4748.CodecDecodeSelf(d) @@ -60521,10 +59986,10 @@ func (x codecSelfer1234) decSliceAttachedVolume(v *[]AttachedVolume, d *codec197 } if yyrt4747 { for ; yyj4747 < yyl4747; yyj4747++ { - yyv4747 = append(yyv4747, AttachedVolume{}) + yyv4747 = append(yyv4747, ReplicationControllerCondition{}) yyh4747.ElemContainerState(yyj4747) if r.TryDecodeAsNil() { - yyv4747[yyj4747] = AttachedVolume{} + yyv4747[yyj4747] = ReplicationControllerCondition{} } else { yyv4749 := &yyv4747[yyj4747] yyv4749.CodecDecodeSelf(d) @@ -60538,13 +60003,13 @@ func (x codecSelfer1234) decSliceAttachedVolume(v *[]AttachedVolume, d *codec197 for ; !r.CheckBreak(); yyj4747++ { if yyj4747 >= len(yyv4747) { - yyv4747 = append(yyv4747, AttachedVolume{}) // var yyz4747 AttachedVolume + yyv4747 = append(yyv4747, ReplicationControllerCondition{}) // var yyz4747 ReplicationControllerCondition yyc4747 = true } yyh4747.ElemContainerState(yyj4747) if yyj4747 < len(yyv4747) { if r.TryDecodeAsNil() { - yyv4747[yyj4747] = AttachedVolume{} + yyv4747[yyj4747] = ReplicationControllerCondition{} } else { yyv4750 := &yyv4747[yyj4747] yyv4750.CodecDecodeSelf(d) @@ -60559,7 +60024,7 @@ func (x codecSelfer1234) decSliceAttachedVolume(v *[]AttachedVolume, d *codec197 yyv4747 = yyv4747[:yyj4747] yyc4747 = true } else if yyj4747 == 0 && yyv4747 == nil { - yyv4747 = []AttachedVolume{} + yyv4747 = []ReplicationControllerCondition{} yyc4747 = true } } @@ -60569,7 +60034,7 @@ func (x codecSelfer1234) decSliceAttachedVolume(v *[]AttachedVolume, d *codec197 } } -func (x codecSelfer1234) encSlicePreferAvoidPodsEntry(v []PreferAvoidPodsEntry, e *codec1978.Encoder) { +func (x codecSelfer1234) encSliceReplicationController(v []ReplicationController, e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r @@ -60582,7 +60047,7 @@ func (x codecSelfer1234) encSlicePreferAvoidPodsEntry(v []PreferAvoidPodsEntry, z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } -func (x codecSelfer1234) decSlicePreferAvoidPodsEntry(v *[]PreferAvoidPodsEntry, d *codec1978.Decoder) { +func (x codecSelfer1234) decSliceReplicationController(v *[]ReplicationController, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r @@ -60592,7 +60057,7 @@ func (x codecSelfer1234) decSlicePreferAvoidPodsEntry(v *[]PreferAvoidPodsEntry, var yyc4753 bool if yyl4753 == 0 { if yyv4753 == nil { - yyv4753 = []PreferAvoidPodsEntry{} + yyv4753 = []ReplicationController{} yyc4753 = true } else if len(yyv4753) != 0 { yyv4753 = yyv4753[:0] @@ -60605,15 +60070,15 @@ func (x codecSelfer1234) decSlicePreferAvoidPodsEntry(v *[]PreferAvoidPodsEntry, yyrg4753 := len(yyv4753) > 0 yyv24753 := yyv4753 - yyrl4753, yyrt4753 = z.DecInferLen(yyl4753, z.DecBasicHandle().MaxInitLen, 64) + yyrl4753, yyrt4753 = z.DecInferLen(yyl4753, z.DecBasicHandle().MaxInitLen, 328) if yyrt4753 { if yyrl4753 <= cap(yyv4753) { yyv4753 = yyv4753[:yyrl4753] } else { - yyv4753 = make([]PreferAvoidPodsEntry, yyrl4753) + yyv4753 = make([]ReplicationController, yyrl4753) } } else { - yyv4753 = make([]PreferAvoidPodsEntry, yyrl4753) + yyv4753 = make([]ReplicationController, yyrl4753) } yyc4753 = true yyrr4753 = len(yyv4753) @@ -60628,7 +60093,7 @@ func (x codecSelfer1234) decSlicePreferAvoidPodsEntry(v *[]PreferAvoidPodsEntry, for ; yyj4753 < yyrr4753; yyj4753++ { yyh4753.ElemContainerState(yyj4753) if r.TryDecodeAsNil() { - yyv4753[yyj4753] = PreferAvoidPodsEntry{} + yyv4753[yyj4753] = ReplicationController{} } else { yyv4754 := &yyv4753[yyj4753] yyv4754.CodecDecodeSelf(d) @@ -60637,10 +60102,10 @@ func (x codecSelfer1234) decSlicePreferAvoidPodsEntry(v *[]PreferAvoidPodsEntry, } if yyrt4753 { for ; yyj4753 < yyl4753; yyj4753++ { - yyv4753 = append(yyv4753, PreferAvoidPodsEntry{}) + yyv4753 = append(yyv4753, ReplicationController{}) yyh4753.ElemContainerState(yyj4753) if r.TryDecodeAsNil() { - yyv4753[yyj4753] = PreferAvoidPodsEntry{} + yyv4753[yyj4753] = ReplicationController{} } else { yyv4755 := &yyv4753[yyj4753] yyv4755.CodecDecodeSelf(d) @@ -60654,13 +60119,13 @@ func (x codecSelfer1234) decSlicePreferAvoidPodsEntry(v *[]PreferAvoidPodsEntry, for ; !r.CheckBreak(); yyj4753++ { if yyj4753 >= len(yyv4753) { - yyv4753 = append(yyv4753, PreferAvoidPodsEntry{}) // var yyz4753 PreferAvoidPodsEntry + yyv4753 = append(yyv4753, ReplicationController{}) // var yyz4753 ReplicationController yyc4753 = true } yyh4753.ElemContainerState(yyj4753) if yyj4753 < len(yyv4753) { if r.TryDecodeAsNil() { - yyv4753[yyj4753] = PreferAvoidPodsEntry{} + yyv4753[yyj4753] = ReplicationController{} } else { yyv4756 := &yyv4753[yyj4753] yyv4756.CodecDecodeSelf(d) @@ -60675,7 +60140,7 @@ func (x codecSelfer1234) decSlicePreferAvoidPodsEntry(v *[]PreferAvoidPodsEntry, yyv4753 = yyv4753[:yyj4753] yyc4753 = true } else if yyj4753 == 0 && yyv4753 == nil { - yyv4753 = []PreferAvoidPodsEntry{} + yyv4753 = []ReplicationController{} yyc4753 = true } } @@ -60685,215 +60150,101 @@ func (x codecSelfer1234) decSlicePreferAvoidPodsEntry(v *[]PreferAvoidPodsEntry, } } -func (x codecSelfer1234) encResourceList(v ResourceList, e *codec1978.Encoder) { +func (x codecSelfer1234) encSliceService(v []Service, e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r - r.EncodeMapStart(len(v)) - for yyk4757, yyv4757 := range v { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - yyk4757.CodecEncodeSelf(e) - z.EncSendContainerState(codecSelfer_containerMapValue1234) + r.EncodeArrayStart(len(v)) + for _, yyv4757 := range v { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) yy4758 := &yyv4757 - yym4759 := z.EncBinary() - _ = yym4759 - if false { - } else if z.HasExtensions() && z.EncExt(yy4758) { - } else if !yym4759 && z.IsJSONHandle() { - z.EncJSONMarshal(yy4758) - } else { - z.EncFallback(yy4758) - } - } - z.EncSendContainerState(codecSelfer_containerMapEnd1234) -} - -func (x codecSelfer1234) decResourceList(v *ResourceList, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - - yyv4760 := *v - yyl4760 := r.ReadMapStart() - yybh4760 := z.DecBasicHandle() - if yyv4760 == nil { - yyrl4760, _ := z.DecInferLen(yyl4760, yybh4760.MaxInitLen, 72) - yyv4760 = make(map[ResourceName]pkg3_resource.Quantity, yyrl4760) - *v = yyv4760 - } - var yymk4760 ResourceName - var yymv4760 pkg3_resource.Quantity - var yymg4760 bool - if yybh4760.MapValueReset { - yymg4760 = true - } - if yyl4760 > 0 { - for yyj4760 := 0; yyj4760 < yyl4760; yyj4760++ { - z.DecSendContainerState(codecSelfer_containerMapKey1234) - if r.TryDecodeAsNil() { - yymk4760 = "" - } else { - yymk4760 = ResourceName(r.DecodeString()) - } - - if yymg4760 { - yymv4760 = yyv4760[yymk4760] - } else { - yymv4760 = pkg3_resource.Quantity{} - } - z.DecSendContainerState(codecSelfer_containerMapValue1234) - if r.TryDecodeAsNil() { - yymv4760 = pkg3_resource.Quantity{} - } else { - yyv4762 := &yymv4760 - yym4763 := z.DecBinary() - _ = yym4763 - if false { - } else if z.HasExtensions() && z.DecExt(yyv4762) { - } else if !yym4763 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv4762) - } else { - z.DecFallback(yyv4762, false) - } - } - - if yyv4760 != nil { - yyv4760[yymk4760] = yymv4760 - } - } - } else if yyl4760 < 0 { - for yyj4760 := 0; !r.CheckBreak(); yyj4760++ { - z.DecSendContainerState(codecSelfer_containerMapKey1234) - if r.TryDecodeAsNil() { - yymk4760 = "" - } else { - yymk4760 = ResourceName(r.DecodeString()) - } - - if yymg4760 { - yymv4760 = yyv4760[yymk4760] - } else { - yymv4760 = pkg3_resource.Quantity{} - } - z.DecSendContainerState(codecSelfer_containerMapValue1234) - if r.TryDecodeAsNil() { - yymv4760 = pkg3_resource.Quantity{} - } else { - yyv4765 := &yymv4760 - yym4766 := z.DecBinary() - _ = yym4766 - if false { - } else if z.HasExtensions() && z.DecExt(yyv4765) { - } else if !yym4766 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv4765) - } else { - z.DecFallback(yyv4765, false) - } - } - - if yyv4760 != nil { - yyv4760[yymk4760] = yymv4760 - } - } - } // else len==0: TODO: Should we clear map entries? - z.DecSendContainerState(codecSelfer_containerMapEnd1234) -} - -func (x codecSelfer1234) encSliceNode(v []Node, e *codec1978.Encoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - r.EncodeArrayStart(len(v)) - for _, yyv4767 := range v { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy4768 := &yyv4767 - yy4768.CodecEncodeSelf(e) + yy4758.CodecEncodeSelf(e) } z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } -func (x codecSelfer1234) decSliceNode(v *[]Node, d *codec1978.Decoder) { +func (x codecSelfer1234) decSliceService(v *[]Service, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yyv4769 := *v - yyh4769, yyl4769 := z.DecSliceHelperStart() - var yyc4769 bool - if yyl4769 == 0 { - if yyv4769 == nil { - yyv4769 = []Node{} - yyc4769 = true - } else if len(yyv4769) != 0 { - yyv4769 = yyv4769[:0] - yyc4769 = true + yyv4759 := *v + yyh4759, yyl4759 := z.DecSliceHelperStart() + var yyc4759 bool + if yyl4759 == 0 { + if yyv4759 == nil { + yyv4759 = []Service{} + yyc4759 = true + } else if len(yyv4759) != 0 { + yyv4759 = yyv4759[:0] + yyc4759 = true } - } else if yyl4769 > 0 { - var yyrr4769, yyrl4769 int - var yyrt4769 bool - if yyl4769 > cap(yyv4769) { + } else if yyl4759 > 0 { + var yyrr4759, yyrl4759 int + var yyrt4759 bool + if yyl4759 > cap(yyv4759) { - yyrg4769 := len(yyv4769) > 0 - yyv24769 := yyv4769 - yyrl4769, yyrt4769 = z.DecInferLen(yyl4769, z.DecBasicHandle().MaxInitLen, 632) - if yyrt4769 { - if yyrl4769 <= cap(yyv4769) { - yyv4769 = yyv4769[:yyrl4769] + yyrg4759 := len(yyv4759) > 0 + yyv24759 := yyv4759 + yyrl4759, yyrt4759 = z.DecInferLen(yyl4759, z.DecBasicHandle().MaxInitLen, 440) + if yyrt4759 { + if yyrl4759 <= cap(yyv4759) { + yyv4759 = yyv4759[:yyrl4759] } else { - yyv4769 = make([]Node, yyrl4769) + yyv4759 = make([]Service, yyrl4759) } } else { - yyv4769 = make([]Node, yyrl4769) + yyv4759 = make([]Service, yyrl4759) } - yyc4769 = true - yyrr4769 = len(yyv4769) - if yyrg4769 { - copy(yyv4769, yyv24769) + yyc4759 = true + yyrr4759 = len(yyv4759) + if yyrg4759 { + copy(yyv4759, yyv24759) } - } else if yyl4769 != len(yyv4769) { - yyv4769 = yyv4769[:yyl4769] - yyc4769 = true + } else if yyl4759 != len(yyv4759) { + yyv4759 = yyv4759[:yyl4759] + yyc4759 = true } - yyj4769 := 0 - for ; yyj4769 < yyrr4769; yyj4769++ { - yyh4769.ElemContainerState(yyj4769) + yyj4759 := 0 + for ; yyj4759 < yyrr4759; yyj4759++ { + yyh4759.ElemContainerState(yyj4759) if r.TryDecodeAsNil() { - yyv4769[yyj4769] = Node{} + yyv4759[yyj4759] = Service{} } else { - yyv4770 := &yyv4769[yyj4769] - yyv4770.CodecDecodeSelf(d) + yyv4760 := &yyv4759[yyj4759] + yyv4760.CodecDecodeSelf(d) } } - if yyrt4769 { - for ; yyj4769 < yyl4769; yyj4769++ { - yyv4769 = append(yyv4769, Node{}) - yyh4769.ElemContainerState(yyj4769) + if yyrt4759 { + for ; yyj4759 < yyl4759; yyj4759++ { + yyv4759 = append(yyv4759, Service{}) + yyh4759.ElemContainerState(yyj4759) if r.TryDecodeAsNil() { - yyv4769[yyj4769] = Node{} + yyv4759[yyj4759] = Service{} } else { - yyv4771 := &yyv4769[yyj4769] - yyv4771.CodecDecodeSelf(d) + yyv4761 := &yyv4759[yyj4759] + yyv4761.CodecDecodeSelf(d) } } } } else { - yyj4769 := 0 - for ; !r.CheckBreak(); yyj4769++ { + yyj4759 := 0 + for ; !r.CheckBreak(); yyj4759++ { - if yyj4769 >= len(yyv4769) { - yyv4769 = append(yyv4769, Node{}) // var yyz4769 Node - yyc4769 = true + if yyj4759 >= len(yyv4759) { + yyv4759 = append(yyv4759, Service{}) // var yyz4759 Service + yyc4759 = true } - yyh4769.ElemContainerState(yyj4769) - if yyj4769 < len(yyv4769) { + yyh4759.ElemContainerState(yyj4759) + if yyj4759 < len(yyv4759) { if r.TryDecodeAsNil() { - yyv4769[yyj4769] = Node{} + yyv4759[yyj4759] = Service{} } else { - yyv4772 := &yyv4769[yyj4769] - yyv4772.CodecDecodeSelf(d) + yyv4762 := &yyv4759[yyj4759] + yyv4762.CodecDecodeSelf(d) } } else { @@ -60901,106 +60252,115 @@ func (x codecSelfer1234) decSliceNode(v *[]Node, d *codec1978.Decoder) { } } - if yyj4769 < len(yyv4769) { - yyv4769 = yyv4769[:yyj4769] - yyc4769 = true - } else if yyj4769 == 0 && yyv4769 == nil { - yyv4769 = []Node{} - yyc4769 = true + if yyj4759 < len(yyv4759) { + yyv4759 = yyv4759[:yyj4759] + yyc4759 = true + } else if yyj4759 == 0 && yyv4759 == nil { + yyv4759 = []Service{} + yyc4759 = true } } - yyh4769.End() - if yyc4769 { - *v = yyv4769 + yyh4759.End() + if yyc4759 { + *v = yyv4759 } } -func (x codecSelfer1234) encSliceFinalizerName(v []FinalizerName, 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 _, yyv4773 := range v { + for _, yyv4763 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yyv4773.CodecEncodeSelf(e) + yy4764 := &yyv4763 + yy4764.CodecEncodeSelf(e) } z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } -func (x codecSelfer1234) decSliceFinalizerName(v *[]FinalizerName, d *codec1978.Decoder) { +func (x codecSelfer1234) decSliceLoadBalancerIngress(v *[]LoadBalancerIngress, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yyv4774 := *v - yyh4774, yyl4774 := z.DecSliceHelperStart() - var yyc4774 bool - if yyl4774 == 0 { - if yyv4774 == nil { - yyv4774 = []FinalizerName{} - yyc4774 = true - } else if len(yyv4774) != 0 { - yyv4774 = yyv4774[:0] - yyc4774 = true + yyv4765 := *v + yyh4765, yyl4765 := z.DecSliceHelperStart() + var yyc4765 bool + if yyl4765 == 0 { + if yyv4765 == nil { + yyv4765 = []LoadBalancerIngress{} + yyc4765 = true + } else if len(yyv4765) != 0 { + yyv4765 = yyv4765[:0] + yyc4765 = true } - } else if yyl4774 > 0 { - var yyrr4774, yyrl4774 int - var yyrt4774 bool - if yyl4774 > cap(yyv4774) { + } else if yyl4765 > 0 { + var yyrr4765, yyrl4765 int + var yyrt4765 bool + if yyl4765 > cap(yyv4765) { - yyrl4774, yyrt4774 = z.DecInferLen(yyl4774, z.DecBasicHandle().MaxInitLen, 16) - if yyrt4774 { - if yyrl4774 <= cap(yyv4774) { - yyv4774 = yyv4774[:yyrl4774] + yyrg4765 := len(yyv4765) > 0 + yyv24765 := yyv4765 + yyrl4765, yyrt4765 = z.DecInferLen(yyl4765, z.DecBasicHandle().MaxInitLen, 32) + if yyrt4765 { + if yyrl4765 <= cap(yyv4765) { + yyv4765 = yyv4765[:yyrl4765] } else { - yyv4774 = make([]FinalizerName, yyrl4774) + yyv4765 = make([]LoadBalancerIngress, yyrl4765) } } else { - yyv4774 = make([]FinalizerName, yyrl4774) + yyv4765 = make([]LoadBalancerIngress, yyrl4765) } - yyc4774 = true - yyrr4774 = len(yyv4774) - } else if yyl4774 != len(yyv4774) { - yyv4774 = yyv4774[:yyl4774] - yyc4774 = true + yyc4765 = true + yyrr4765 = len(yyv4765) + if yyrg4765 { + copy(yyv4765, yyv24765) + } + } else if yyl4765 != len(yyv4765) { + yyv4765 = yyv4765[:yyl4765] + yyc4765 = true } - yyj4774 := 0 - for ; yyj4774 < yyrr4774; yyj4774++ { - yyh4774.ElemContainerState(yyj4774) + yyj4765 := 0 + for ; yyj4765 < yyrr4765; yyj4765++ { + yyh4765.ElemContainerState(yyj4765) if r.TryDecodeAsNil() { - yyv4774[yyj4774] = "" + yyv4765[yyj4765] = LoadBalancerIngress{} } else { - yyv4774[yyj4774] = FinalizerName(r.DecodeString()) + yyv4766 := &yyv4765[yyj4765] + yyv4766.CodecDecodeSelf(d) } } - if yyrt4774 { - for ; yyj4774 < yyl4774; yyj4774++ { - yyv4774 = append(yyv4774, "") - yyh4774.ElemContainerState(yyj4774) + if yyrt4765 { + for ; yyj4765 < yyl4765; yyj4765++ { + yyv4765 = append(yyv4765, LoadBalancerIngress{}) + yyh4765.ElemContainerState(yyj4765) if r.TryDecodeAsNil() { - yyv4774[yyj4774] = "" + yyv4765[yyj4765] = LoadBalancerIngress{} } else { - yyv4774[yyj4774] = FinalizerName(r.DecodeString()) + yyv4767 := &yyv4765[yyj4765] + yyv4767.CodecDecodeSelf(d) } } } } else { - yyj4774 := 0 - for ; !r.CheckBreak(); yyj4774++ { + yyj4765 := 0 + for ; !r.CheckBreak(); yyj4765++ { - if yyj4774 >= len(yyv4774) { - yyv4774 = append(yyv4774, "") // var yyz4774 FinalizerName - yyc4774 = true + if yyj4765 >= len(yyv4765) { + yyv4765 = append(yyv4765, LoadBalancerIngress{}) // var yyz4765 LoadBalancerIngress + yyc4765 = true } - yyh4774.ElemContainerState(yyj4774) - if yyj4774 < len(yyv4774) { + yyh4765.ElemContainerState(yyj4765) + if yyj4765 < len(yyv4765) { if r.TryDecodeAsNil() { - yyv4774[yyj4774] = "" + yyv4765[yyj4765] = LoadBalancerIngress{} } else { - yyv4774[yyj4774] = FinalizerName(r.DecodeString()) + yyv4768 := &yyv4765[yyj4765] + yyv4768.CodecDecodeSelf(d) } } else { @@ -61008,115 +60368,115 @@ func (x codecSelfer1234) decSliceFinalizerName(v *[]FinalizerName, d *codec1978. } } - if yyj4774 < len(yyv4774) { - yyv4774 = yyv4774[:yyj4774] - yyc4774 = true - } else if yyj4774 == 0 && yyv4774 == nil { - yyv4774 = []FinalizerName{} - yyc4774 = true + if yyj4765 < len(yyv4765) { + yyv4765 = yyv4765[:yyj4765] + yyc4765 = true + } else if yyj4765 == 0 && yyv4765 == nil { + yyv4765 = []LoadBalancerIngress{} + yyc4765 = true } } - yyh4774.End() - if yyc4774 { - *v = yyv4774 + yyh4765.End() + if yyc4765 { + *v = yyv4765 } } -func (x codecSelfer1234) encSliceNamespace(v []Namespace, 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 _, yyv4778 := range v { + for _, yyv4769 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy4779 := &yyv4778 - yy4779.CodecEncodeSelf(e) + yy4770 := &yyv4769 + yy4770.CodecEncodeSelf(e) } z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } -func (x codecSelfer1234) decSliceNamespace(v *[]Namespace, d *codec1978.Decoder) { +func (x codecSelfer1234) decSliceServicePort(v *[]ServicePort, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yyv4780 := *v - yyh4780, yyl4780 := z.DecSliceHelperStart() - var yyc4780 bool - if yyl4780 == 0 { - if yyv4780 == nil { - yyv4780 = []Namespace{} - yyc4780 = true - } else if len(yyv4780) != 0 { - yyv4780 = yyv4780[:0] - yyc4780 = true + yyv4771 := *v + yyh4771, yyl4771 := z.DecSliceHelperStart() + var yyc4771 bool + if yyl4771 == 0 { + if yyv4771 == nil { + yyv4771 = []ServicePort{} + yyc4771 = true + } else if len(yyv4771) != 0 { + yyv4771 = yyv4771[:0] + yyc4771 = true } - } else if yyl4780 > 0 { - var yyrr4780, yyrl4780 int - var yyrt4780 bool - if yyl4780 > cap(yyv4780) { + } else if yyl4771 > 0 { + var yyrr4771, yyrl4771 int + var yyrt4771 bool + if yyl4771 > cap(yyv4771) { - yyrg4780 := len(yyv4780) > 0 - yyv24780 := yyv4780 - yyrl4780, yyrt4780 = z.DecInferLen(yyl4780, z.DecBasicHandle().MaxInitLen, 296) - if yyrt4780 { - if yyrl4780 <= cap(yyv4780) { - yyv4780 = yyv4780[:yyrl4780] + yyrg4771 := len(yyv4771) > 0 + yyv24771 := yyv4771 + yyrl4771, yyrt4771 = z.DecInferLen(yyl4771, z.DecBasicHandle().MaxInitLen, 80) + if yyrt4771 { + if yyrl4771 <= cap(yyv4771) { + yyv4771 = yyv4771[:yyrl4771] } else { - yyv4780 = make([]Namespace, yyrl4780) + yyv4771 = make([]ServicePort, yyrl4771) } } else { - yyv4780 = make([]Namespace, yyrl4780) + yyv4771 = make([]ServicePort, yyrl4771) } - yyc4780 = true - yyrr4780 = len(yyv4780) - if yyrg4780 { - copy(yyv4780, yyv24780) + yyc4771 = true + yyrr4771 = len(yyv4771) + if yyrg4771 { + copy(yyv4771, yyv24771) } - } else if yyl4780 != len(yyv4780) { - yyv4780 = yyv4780[:yyl4780] - yyc4780 = true + } else if yyl4771 != len(yyv4771) { + yyv4771 = yyv4771[:yyl4771] + yyc4771 = true } - yyj4780 := 0 - for ; yyj4780 < yyrr4780; yyj4780++ { - yyh4780.ElemContainerState(yyj4780) + yyj4771 := 0 + for ; yyj4771 < yyrr4771; yyj4771++ { + yyh4771.ElemContainerState(yyj4771) if r.TryDecodeAsNil() { - yyv4780[yyj4780] = Namespace{} + yyv4771[yyj4771] = ServicePort{} } else { - yyv4781 := &yyv4780[yyj4780] - yyv4781.CodecDecodeSelf(d) + yyv4772 := &yyv4771[yyj4771] + yyv4772.CodecDecodeSelf(d) } } - if yyrt4780 { - for ; yyj4780 < yyl4780; yyj4780++ { - yyv4780 = append(yyv4780, Namespace{}) - yyh4780.ElemContainerState(yyj4780) + if yyrt4771 { + for ; yyj4771 < yyl4771; yyj4771++ { + yyv4771 = append(yyv4771, ServicePort{}) + yyh4771.ElemContainerState(yyj4771) if r.TryDecodeAsNil() { - yyv4780[yyj4780] = Namespace{} + yyv4771[yyj4771] = ServicePort{} } else { - yyv4782 := &yyv4780[yyj4780] - yyv4782.CodecDecodeSelf(d) + yyv4773 := &yyv4771[yyj4771] + yyv4773.CodecDecodeSelf(d) } } } } else { - yyj4780 := 0 - for ; !r.CheckBreak(); yyj4780++ { + yyj4771 := 0 + for ; !r.CheckBreak(); yyj4771++ { - if yyj4780 >= len(yyv4780) { - yyv4780 = append(yyv4780, Namespace{}) // var yyz4780 Namespace - yyc4780 = true + if yyj4771 >= len(yyv4771) { + yyv4771 = append(yyv4771, ServicePort{}) // var yyz4771 ServicePort + yyc4771 = true } - yyh4780.ElemContainerState(yyj4780) - if yyj4780 < len(yyv4780) { + yyh4771.ElemContainerState(yyj4771) + if yyj4771 < len(yyv4771) { if r.TryDecodeAsNil() { - yyv4780[yyj4780] = Namespace{} + yyv4771[yyj4771] = ServicePort{} } else { - yyv4783 := &yyv4780[yyj4780] - yyv4783.CodecDecodeSelf(d) + yyv4774 := &yyv4771[yyj4771] + yyv4774.CodecDecodeSelf(d) } } else { @@ -61124,115 +60484,115 @@ func (x codecSelfer1234) decSliceNamespace(v *[]Namespace, d *codec1978.Decoder) } } - if yyj4780 < len(yyv4780) { - yyv4780 = yyv4780[:yyj4780] - yyc4780 = true - } else if yyj4780 == 0 && yyv4780 == nil { - yyv4780 = []Namespace{} - yyc4780 = true + if yyj4771 < len(yyv4771) { + yyv4771 = yyv4771[:yyj4771] + yyc4771 = true + } else if yyj4771 == 0 && yyv4771 == nil { + yyv4771 = []ServicePort{} + yyc4771 = true } } - yyh4780.End() - if yyc4780 { - *v = yyv4780 + yyh4771.End() + if yyc4771 { + *v = yyv4771 } } -func (x codecSelfer1234) encSliceEvent(v []Event, 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 _, yyv4784 := range v { + for _, yyv4775 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy4785 := &yyv4784 - yy4785.CodecEncodeSelf(e) + yy4776 := &yyv4775 + yy4776.CodecEncodeSelf(e) } z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } -func (x codecSelfer1234) decSliceEvent(v *[]Event, d *codec1978.Decoder) { +func (x codecSelfer1234) decSliceObjectReference(v *[]ObjectReference, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yyv4786 := *v - yyh4786, yyl4786 := z.DecSliceHelperStart() - var yyc4786 bool - if yyl4786 == 0 { - if yyv4786 == nil { - yyv4786 = []Event{} - yyc4786 = true - } else if len(yyv4786) != 0 { - yyv4786 = yyv4786[:0] - yyc4786 = true + yyv4777 := *v + yyh4777, yyl4777 := z.DecSliceHelperStart() + var yyc4777 bool + if yyl4777 == 0 { + if yyv4777 == nil { + yyv4777 = []ObjectReference{} + yyc4777 = true + } else if len(yyv4777) != 0 { + yyv4777 = yyv4777[:0] + yyc4777 = true } - } else if yyl4786 > 0 { - var yyrr4786, yyrl4786 int - var yyrt4786 bool - if yyl4786 > cap(yyv4786) { + } else if yyl4777 > 0 { + var yyrr4777, yyrl4777 int + var yyrt4777 bool + if yyl4777 > cap(yyv4777) { - yyrg4786 := len(yyv4786) > 0 - yyv24786 := yyv4786 - yyrl4786, yyrt4786 = z.DecInferLen(yyl4786, z.DecBasicHandle().MaxInitLen, 504) - if yyrt4786 { - if yyrl4786 <= cap(yyv4786) { - yyv4786 = yyv4786[:yyrl4786] + yyrg4777 := len(yyv4777) > 0 + yyv24777 := yyv4777 + yyrl4777, yyrt4777 = z.DecInferLen(yyl4777, z.DecBasicHandle().MaxInitLen, 112) + if yyrt4777 { + if yyrl4777 <= cap(yyv4777) { + yyv4777 = yyv4777[:yyrl4777] } else { - yyv4786 = make([]Event, yyrl4786) + yyv4777 = make([]ObjectReference, yyrl4777) } } else { - yyv4786 = make([]Event, yyrl4786) + yyv4777 = make([]ObjectReference, yyrl4777) } - yyc4786 = true - yyrr4786 = len(yyv4786) - if yyrg4786 { - copy(yyv4786, yyv24786) + yyc4777 = true + yyrr4777 = len(yyv4777) + if yyrg4777 { + copy(yyv4777, yyv24777) } - } else if yyl4786 != len(yyv4786) { - yyv4786 = yyv4786[:yyl4786] - yyc4786 = true + } else if yyl4777 != len(yyv4777) { + yyv4777 = yyv4777[:yyl4777] + yyc4777 = true } - yyj4786 := 0 - for ; yyj4786 < yyrr4786; yyj4786++ { - yyh4786.ElemContainerState(yyj4786) + yyj4777 := 0 + for ; yyj4777 < yyrr4777; yyj4777++ { + yyh4777.ElemContainerState(yyj4777) if r.TryDecodeAsNil() { - yyv4786[yyj4786] = Event{} + yyv4777[yyj4777] = ObjectReference{} } else { - yyv4787 := &yyv4786[yyj4786] - yyv4787.CodecDecodeSelf(d) + yyv4778 := &yyv4777[yyj4777] + yyv4778.CodecDecodeSelf(d) } } - if yyrt4786 { - for ; yyj4786 < yyl4786; yyj4786++ { - yyv4786 = append(yyv4786, Event{}) - yyh4786.ElemContainerState(yyj4786) + if yyrt4777 { + for ; yyj4777 < yyl4777; yyj4777++ { + yyv4777 = append(yyv4777, ObjectReference{}) + yyh4777.ElemContainerState(yyj4777) if r.TryDecodeAsNil() { - yyv4786[yyj4786] = Event{} + yyv4777[yyj4777] = ObjectReference{} } else { - yyv4788 := &yyv4786[yyj4786] - yyv4788.CodecDecodeSelf(d) + yyv4779 := &yyv4777[yyj4777] + yyv4779.CodecDecodeSelf(d) } } } } else { - yyj4786 := 0 - for ; !r.CheckBreak(); yyj4786++ { + yyj4777 := 0 + for ; !r.CheckBreak(); yyj4777++ { - if yyj4786 >= len(yyv4786) { - yyv4786 = append(yyv4786, Event{}) // var yyz4786 Event - yyc4786 = true + if yyj4777 >= len(yyv4777) { + yyv4777 = append(yyv4777, ObjectReference{}) // var yyz4777 ObjectReference + yyc4777 = true } - yyh4786.ElemContainerState(yyj4786) - if yyj4786 < len(yyv4786) { + yyh4777.ElemContainerState(yyj4777) + if yyj4777 < len(yyv4777) { if r.TryDecodeAsNil() { - yyv4786[yyj4786] = Event{} + yyv4777[yyj4777] = ObjectReference{} } else { - yyv4789 := &yyv4786[yyj4786] - yyv4789.CodecDecodeSelf(d) + yyv4780 := &yyv4777[yyj4777] + yyv4780.CodecDecodeSelf(d) } } else { @@ -61240,142 +60600,115 @@ func (x codecSelfer1234) decSliceEvent(v *[]Event, d *codec1978.Decoder) { } } - if yyj4786 < len(yyv4786) { - yyv4786 = yyv4786[:yyj4786] - yyc4786 = true - } else if yyj4786 == 0 && yyv4786 == nil { - yyv4786 = []Event{} - yyc4786 = true + if yyj4777 < len(yyv4777) { + yyv4777 = yyv4777[:yyj4777] + yyc4777 = true + } else if yyj4777 == 0 && yyv4777 == nil { + yyv4777 = []ObjectReference{} + yyc4777 = true } } - yyh4786.End() - if yyc4786 { - *v = yyv4786 + yyh4777.End() + if yyc4777 { + *v = yyv4777 } } -func (x codecSelfer1234) encSliceruntime_Object(v []pkg7_runtime.Object, 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 _, yyv4790 := range v { + for _, yyv4781 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyv4790 == nil { - r.EncodeNil() - } else { - yym4791 := z.EncBinary() - _ = yym4791 - if false { - } else if z.HasExtensions() && z.EncExt(yyv4790) { - } else { - z.EncFallback(yyv4790) - } - } + yy4782 := &yyv4781 + yy4782.CodecEncodeSelf(e) } z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } -func (x codecSelfer1234) decSliceruntime_Object(v *[]pkg7_runtime.Object, d *codec1978.Decoder) { +func (x codecSelfer1234) decSliceServiceAccount(v *[]ServiceAccount, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yyv4792 := *v - yyh4792, yyl4792 := z.DecSliceHelperStart() - var yyc4792 bool - if yyl4792 == 0 { - if yyv4792 == nil { - yyv4792 = []pkg7_runtime.Object{} - yyc4792 = true - } else if len(yyv4792) != 0 { - yyv4792 = yyv4792[:0] - yyc4792 = true + yyv4783 := *v + yyh4783, yyl4783 := z.DecSliceHelperStart() + var yyc4783 bool + if yyl4783 == 0 { + if yyv4783 == nil { + yyv4783 = []ServiceAccount{} + yyc4783 = true + } else if len(yyv4783) != 0 { + yyv4783 = yyv4783[:0] + yyc4783 = true } - } else if yyl4792 > 0 { - var yyrr4792, yyrl4792 int - var yyrt4792 bool - if yyl4792 > cap(yyv4792) { + } else if yyl4783 > 0 { + var yyrr4783, yyrl4783 int + var yyrt4783 bool + if yyl4783 > cap(yyv4783) { - yyrg4792 := len(yyv4792) > 0 - yyv24792 := yyv4792 - yyrl4792, yyrt4792 = z.DecInferLen(yyl4792, z.DecBasicHandle().MaxInitLen, 16) - if yyrt4792 { - if yyrl4792 <= cap(yyv4792) { - yyv4792 = yyv4792[:yyrl4792] + yyrg4783 := len(yyv4783) > 0 + yyv24783 := yyv4783 + yyrl4783, yyrt4783 = z.DecInferLen(yyl4783, z.DecBasicHandle().MaxInitLen, 304) + if yyrt4783 { + if yyrl4783 <= cap(yyv4783) { + yyv4783 = yyv4783[:yyrl4783] } else { - yyv4792 = make([]pkg7_runtime.Object, yyrl4792) + yyv4783 = make([]ServiceAccount, yyrl4783) } } else { - yyv4792 = make([]pkg7_runtime.Object, yyrl4792) + yyv4783 = make([]ServiceAccount, yyrl4783) } - yyc4792 = true - yyrr4792 = len(yyv4792) - if yyrg4792 { - copy(yyv4792, yyv24792) + yyc4783 = true + yyrr4783 = len(yyv4783) + if yyrg4783 { + copy(yyv4783, yyv24783) } - } else if yyl4792 != len(yyv4792) { - yyv4792 = yyv4792[:yyl4792] - yyc4792 = true + } else if yyl4783 != len(yyv4783) { + yyv4783 = yyv4783[:yyl4783] + yyc4783 = true } - yyj4792 := 0 - for ; yyj4792 < yyrr4792; yyj4792++ { - yyh4792.ElemContainerState(yyj4792) + yyj4783 := 0 + for ; yyj4783 < yyrr4783; yyj4783++ { + yyh4783.ElemContainerState(yyj4783) if r.TryDecodeAsNil() { - yyv4792[yyj4792] = nil + yyv4783[yyj4783] = ServiceAccount{} } else { - yyv4793 := &yyv4792[yyj4792] - yym4794 := z.DecBinary() - _ = yym4794 - if false { - } else if z.HasExtensions() && z.DecExt(yyv4793) { - } else { - z.DecFallback(yyv4793, true) - } + yyv4784 := &yyv4783[yyj4783] + yyv4784.CodecDecodeSelf(d) } } - if yyrt4792 { - for ; yyj4792 < yyl4792; yyj4792++ { - yyv4792 = append(yyv4792, nil) - yyh4792.ElemContainerState(yyj4792) + if yyrt4783 { + for ; yyj4783 < yyl4783; yyj4783++ { + yyv4783 = append(yyv4783, ServiceAccount{}) + yyh4783.ElemContainerState(yyj4783) if r.TryDecodeAsNil() { - yyv4792[yyj4792] = nil + yyv4783[yyj4783] = ServiceAccount{} } else { - yyv4795 := &yyv4792[yyj4792] - yym4796 := z.DecBinary() - _ = yym4796 - if false { - } else if z.HasExtensions() && z.DecExt(yyv4795) { - } else { - z.DecFallback(yyv4795, true) - } + yyv4785 := &yyv4783[yyj4783] + yyv4785.CodecDecodeSelf(d) } } } } else { - yyj4792 := 0 - for ; !r.CheckBreak(); yyj4792++ { + yyj4783 := 0 + for ; !r.CheckBreak(); yyj4783++ { - if yyj4792 >= len(yyv4792) { - yyv4792 = append(yyv4792, nil) // var yyz4792 pkg7_runtime.Object - yyc4792 = true + if yyj4783 >= len(yyv4783) { + yyv4783 = append(yyv4783, ServiceAccount{}) // var yyz4783 ServiceAccount + yyc4783 = true } - yyh4792.ElemContainerState(yyj4792) - if yyj4792 < len(yyv4792) { + yyh4783.ElemContainerState(yyj4783) + if yyj4783 < len(yyv4783) { if r.TryDecodeAsNil() { - yyv4792[yyj4792] = nil + yyv4783[yyj4783] = ServiceAccount{} } else { - yyv4797 := &yyv4792[yyj4792] - yym4798 := z.DecBinary() - _ = yym4798 - if false { - } else if z.HasExtensions() && z.DecExt(yyv4797) { - } else { - z.DecFallback(yyv4797, true) - } + yyv4786 := &yyv4783[yyj4783] + yyv4786.CodecDecodeSelf(d) } } else { @@ -61383,21 +60716,253 @@ func (x codecSelfer1234) decSliceruntime_Object(v *[]pkg7_runtime.Object, d *cod } } - if yyj4792 < len(yyv4792) { - yyv4792 = yyv4792[:yyj4792] - yyc4792 = true - } else if yyj4792 == 0 && yyv4792 == nil { - yyv4792 = []pkg7_runtime.Object{} - yyc4792 = true + if yyj4783 < len(yyv4783) { + yyv4783 = yyv4783[:yyj4783] + yyc4783 = true + } else if yyj4783 == 0 && yyv4783 == nil { + yyv4783 = []ServiceAccount{} + yyc4783 = true } } - yyh4792.End() - if yyc4792 { - *v = yyv4792 + yyh4783.End() + if yyc4783 { + *v = yyv4783 } } -func (x codecSelfer1234) encSliceLimitRangeItem(v []LimitRangeItem, 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 _, yyv4787 := range v { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yy4788 := &yyv4787 + yy4788.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 + + yyv4789 := *v + yyh4789, yyl4789 := z.DecSliceHelperStart() + var yyc4789 bool + if yyl4789 == 0 { + if yyv4789 == nil { + yyv4789 = []EndpointSubset{} + yyc4789 = true + } else if len(yyv4789) != 0 { + yyv4789 = yyv4789[:0] + yyc4789 = true + } + } else if yyl4789 > 0 { + var yyrr4789, yyrl4789 int + var yyrt4789 bool + if yyl4789 > cap(yyv4789) { + + yyrg4789 := len(yyv4789) > 0 + yyv24789 := yyv4789 + yyrl4789, yyrt4789 = z.DecInferLen(yyl4789, z.DecBasicHandle().MaxInitLen, 72) + if yyrt4789 { + if yyrl4789 <= cap(yyv4789) { + yyv4789 = yyv4789[:yyrl4789] + } else { + yyv4789 = make([]EndpointSubset, yyrl4789) + } + } else { + yyv4789 = make([]EndpointSubset, yyrl4789) + } + yyc4789 = true + yyrr4789 = len(yyv4789) + if yyrg4789 { + copy(yyv4789, yyv24789) + } + } else if yyl4789 != len(yyv4789) { + yyv4789 = yyv4789[:yyl4789] + yyc4789 = true + } + yyj4789 := 0 + for ; yyj4789 < yyrr4789; yyj4789++ { + yyh4789.ElemContainerState(yyj4789) + if r.TryDecodeAsNil() { + yyv4789[yyj4789] = EndpointSubset{} + } else { + yyv4790 := &yyv4789[yyj4789] + yyv4790.CodecDecodeSelf(d) + } + + } + if yyrt4789 { + for ; yyj4789 < yyl4789; yyj4789++ { + yyv4789 = append(yyv4789, EndpointSubset{}) + yyh4789.ElemContainerState(yyj4789) + if r.TryDecodeAsNil() { + yyv4789[yyj4789] = EndpointSubset{} + } else { + yyv4791 := &yyv4789[yyj4789] + yyv4791.CodecDecodeSelf(d) + } + + } + } + + } else { + yyj4789 := 0 + for ; !r.CheckBreak(); yyj4789++ { + + if yyj4789 >= len(yyv4789) { + yyv4789 = append(yyv4789, EndpointSubset{}) // var yyz4789 EndpointSubset + yyc4789 = true + } + yyh4789.ElemContainerState(yyj4789) + if yyj4789 < len(yyv4789) { + if r.TryDecodeAsNil() { + yyv4789[yyj4789] = EndpointSubset{} + } else { + yyv4792 := &yyv4789[yyj4789] + yyv4792.CodecDecodeSelf(d) + } + + } else { + z.DecSwallow() + } + + } + if yyj4789 < len(yyv4789) { + yyv4789 = yyv4789[:yyj4789] + yyc4789 = true + } else if yyj4789 == 0 && yyv4789 == nil { + yyv4789 = []EndpointSubset{} + yyc4789 = true + } + } + yyh4789.End() + if yyc4789 { + *v = yyv4789 + } +} + +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 _, yyv4793 := range v { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yy4794 := &yyv4793 + yy4794.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 + + yyv4795 := *v + yyh4795, yyl4795 := z.DecSliceHelperStart() + var yyc4795 bool + if yyl4795 == 0 { + if yyv4795 == nil { + yyv4795 = []EndpointAddress{} + yyc4795 = true + } else if len(yyv4795) != 0 { + yyv4795 = yyv4795[:0] + yyc4795 = true + } + } else if yyl4795 > 0 { + var yyrr4795, yyrl4795 int + var yyrt4795 bool + if yyl4795 > cap(yyv4795) { + + yyrg4795 := len(yyv4795) > 0 + yyv24795 := yyv4795 + yyrl4795, yyrt4795 = z.DecInferLen(yyl4795, z.DecBasicHandle().MaxInitLen, 48) + if yyrt4795 { + if yyrl4795 <= cap(yyv4795) { + yyv4795 = yyv4795[:yyrl4795] + } else { + yyv4795 = make([]EndpointAddress, yyrl4795) + } + } else { + yyv4795 = make([]EndpointAddress, yyrl4795) + } + yyc4795 = true + yyrr4795 = len(yyv4795) + if yyrg4795 { + copy(yyv4795, yyv24795) + } + } else if yyl4795 != len(yyv4795) { + yyv4795 = yyv4795[:yyl4795] + yyc4795 = true + } + yyj4795 := 0 + for ; yyj4795 < yyrr4795; yyj4795++ { + yyh4795.ElemContainerState(yyj4795) + if r.TryDecodeAsNil() { + yyv4795[yyj4795] = EndpointAddress{} + } else { + yyv4796 := &yyv4795[yyj4795] + yyv4796.CodecDecodeSelf(d) + } + + } + if yyrt4795 { + for ; yyj4795 < yyl4795; yyj4795++ { + yyv4795 = append(yyv4795, EndpointAddress{}) + yyh4795.ElemContainerState(yyj4795) + if r.TryDecodeAsNil() { + yyv4795[yyj4795] = EndpointAddress{} + } else { + yyv4797 := &yyv4795[yyj4795] + yyv4797.CodecDecodeSelf(d) + } + + } + } + + } else { + yyj4795 := 0 + for ; !r.CheckBreak(); yyj4795++ { + + if yyj4795 >= len(yyv4795) { + yyv4795 = append(yyv4795, EndpointAddress{}) // var yyz4795 EndpointAddress + yyc4795 = true + } + yyh4795.ElemContainerState(yyj4795) + if yyj4795 < len(yyv4795) { + if r.TryDecodeAsNil() { + yyv4795[yyj4795] = EndpointAddress{} + } else { + yyv4798 := &yyv4795[yyj4795] + yyv4798.CodecDecodeSelf(d) + } + + } else { + z.DecSwallow() + } + + } + if yyj4795 < len(yyv4795) { + yyv4795 = yyv4795[:yyj4795] + yyc4795 = true + } else if yyj4795 == 0 && yyv4795 == nil { + yyv4795 = []EndpointAddress{} + yyc4795 = true + } + } + yyh4795.End() + if yyc4795 { + *v = yyv4795 + } +} + +func (x codecSelfer1234) encSliceEndpointPort(v []EndpointPort, e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r @@ -61410,7 +60975,7 @@ func (x codecSelfer1234) encSliceLimitRangeItem(v []LimitRangeItem, e *codec1978 z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } -func (x codecSelfer1234) decSliceLimitRangeItem(v *[]LimitRangeItem, d *codec1978.Decoder) { +func (x codecSelfer1234) decSliceEndpointPort(v *[]EndpointPort, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r @@ -61420,7 +60985,7 @@ func (x codecSelfer1234) decSliceLimitRangeItem(v *[]LimitRangeItem, d *codec197 var yyc4801 bool if yyl4801 == 0 { if yyv4801 == nil { - yyv4801 = []LimitRangeItem{} + yyv4801 = []EndpointPort{} yyc4801 = true } else if len(yyv4801) != 0 { yyv4801 = yyv4801[:0] @@ -61433,15 +60998,15 @@ func (x codecSelfer1234) decSliceLimitRangeItem(v *[]LimitRangeItem, d *codec197 yyrg4801 := len(yyv4801) > 0 yyv24801 := yyv4801 - yyrl4801, yyrt4801 = z.DecInferLen(yyl4801, z.DecBasicHandle().MaxInitLen, 56) + yyrl4801, yyrt4801 = z.DecInferLen(yyl4801, z.DecBasicHandle().MaxInitLen, 40) if yyrt4801 { if yyrl4801 <= cap(yyv4801) { yyv4801 = yyv4801[:yyrl4801] } else { - yyv4801 = make([]LimitRangeItem, yyrl4801) + yyv4801 = make([]EndpointPort, yyrl4801) } } else { - yyv4801 = make([]LimitRangeItem, yyrl4801) + yyv4801 = make([]EndpointPort, yyrl4801) } yyc4801 = true yyrr4801 = len(yyv4801) @@ -61456,7 +61021,7 @@ func (x codecSelfer1234) decSliceLimitRangeItem(v *[]LimitRangeItem, d *codec197 for ; yyj4801 < yyrr4801; yyj4801++ { yyh4801.ElemContainerState(yyj4801) if r.TryDecodeAsNil() { - yyv4801[yyj4801] = LimitRangeItem{} + yyv4801[yyj4801] = EndpointPort{} } else { yyv4802 := &yyv4801[yyj4801] yyv4802.CodecDecodeSelf(d) @@ -61465,10 +61030,10 @@ func (x codecSelfer1234) decSliceLimitRangeItem(v *[]LimitRangeItem, d *codec197 } if yyrt4801 { for ; yyj4801 < yyl4801; yyj4801++ { - yyv4801 = append(yyv4801, LimitRangeItem{}) + yyv4801 = append(yyv4801, EndpointPort{}) yyh4801.ElemContainerState(yyj4801) if r.TryDecodeAsNil() { - yyv4801[yyj4801] = LimitRangeItem{} + yyv4801[yyj4801] = EndpointPort{} } else { yyv4803 := &yyv4801[yyj4801] yyv4803.CodecDecodeSelf(d) @@ -61482,13 +61047,13 @@ func (x codecSelfer1234) decSliceLimitRangeItem(v *[]LimitRangeItem, d *codec197 for ; !r.CheckBreak(); yyj4801++ { if yyj4801 >= len(yyv4801) { - yyv4801 = append(yyv4801, LimitRangeItem{}) // var yyz4801 LimitRangeItem + yyv4801 = append(yyv4801, EndpointPort{}) // var yyz4801 EndpointPort yyc4801 = true } yyh4801.ElemContainerState(yyj4801) if yyj4801 < len(yyv4801) { if r.TryDecodeAsNil() { - yyv4801[yyj4801] = LimitRangeItem{} + yyv4801[yyj4801] = EndpointPort{} } else { yyv4804 := &yyv4801[yyj4801] yyv4804.CodecDecodeSelf(d) @@ -61503,7 +61068,7 @@ func (x codecSelfer1234) decSliceLimitRangeItem(v *[]LimitRangeItem, d *codec197 yyv4801 = yyv4801[:yyj4801] yyc4801 = true } else if yyj4801 == 0 && yyv4801 == nil { - yyv4801 = []LimitRangeItem{} + yyv4801 = []EndpointPort{} yyc4801 = true } } @@ -61513,7 +61078,7 @@ func (x codecSelfer1234) decSliceLimitRangeItem(v *[]LimitRangeItem, d *codec197 } } -func (x codecSelfer1234) encSliceLimitRange(v []LimitRange, e *codec1978.Encoder) { +func (x codecSelfer1234) encSliceEndpoints(v []Endpoints, e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r @@ -61526,7 +61091,7 @@ func (x codecSelfer1234) encSliceLimitRange(v []LimitRange, e *codec1978.Encoder z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } -func (x codecSelfer1234) decSliceLimitRange(v *[]LimitRange, d *codec1978.Decoder) { +func (x codecSelfer1234) decSliceEndpoints(v *[]Endpoints, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r @@ -61536,7 +61101,7 @@ func (x codecSelfer1234) decSliceLimitRange(v *[]LimitRange, d *codec1978.Decode var yyc4807 bool if yyl4807 == 0 { if yyv4807 == nil { - yyv4807 = []LimitRange{} + yyv4807 = []Endpoints{} yyc4807 = true } else if len(yyv4807) != 0 { yyv4807 = yyv4807[:0] @@ -61554,10 +61119,10 @@ func (x codecSelfer1234) decSliceLimitRange(v *[]LimitRange, d *codec1978.Decode if yyrl4807 <= cap(yyv4807) { yyv4807 = yyv4807[:yyrl4807] } else { - yyv4807 = make([]LimitRange, yyrl4807) + yyv4807 = make([]Endpoints, yyrl4807) } } else { - yyv4807 = make([]LimitRange, yyrl4807) + yyv4807 = make([]Endpoints, yyrl4807) } yyc4807 = true yyrr4807 = len(yyv4807) @@ -61572,7 +61137,7 @@ func (x codecSelfer1234) decSliceLimitRange(v *[]LimitRange, d *codec1978.Decode for ; yyj4807 < yyrr4807; yyj4807++ { yyh4807.ElemContainerState(yyj4807) if r.TryDecodeAsNil() { - yyv4807[yyj4807] = LimitRange{} + yyv4807[yyj4807] = Endpoints{} } else { yyv4808 := &yyv4807[yyj4807] yyv4808.CodecDecodeSelf(d) @@ -61581,10 +61146,10 @@ func (x codecSelfer1234) decSliceLimitRange(v *[]LimitRange, d *codec1978.Decode } if yyrt4807 { for ; yyj4807 < yyl4807; yyj4807++ { - yyv4807 = append(yyv4807, LimitRange{}) + yyv4807 = append(yyv4807, Endpoints{}) yyh4807.ElemContainerState(yyj4807) if r.TryDecodeAsNil() { - yyv4807[yyj4807] = LimitRange{} + yyv4807[yyj4807] = Endpoints{} } else { yyv4809 := &yyv4807[yyj4807] yyv4809.CodecDecodeSelf(d) @@ -61598,13 +61163,13 @@ func (x codecSelfer1234) decSliceLimitRange(v *[]LimitRange, d *codec1978.Decode for ; !r.CheckBreak(); yyj4807++ { if yyj4807 >= len(yyv4807) { - yyv4807 = append(yyv4807, LimitRange{}) // var yyz4807 LimitRange + yyv4807 = append(yyv4807, Endpoints{}) // var yyz4807 Endpoints yyc4807 = true } yyh4807.ElemContainerState(yyj4807) if yyj4807 < len(yyv4807) { if r.TryDecodeAsNil() { - yyv4807[yyj4807] = LimitRange{} + yyv4807[yyj4807] = Endpoints{} } else { yyv4810 := &yyv4807[yyj4807] yyv4810.CodecDecodeSelf(d) @@ -61619,7 +61184,7 @@ func (x codecSelfer1234) decSliceLimitRange(v *[]LimitRange, d *codec1978.Decode yyv4807 = yyv4807[:yyj4807] yyc4807 = true } else if yyj4807 == 0 && yyv4807 == nil { - yyv4807 = []LimitRange{} + yyv4807 = []Endpoints{} yyc4807 = true } } @@ -61629,14 +61194,1645 @@ func (x codecSelfer1234) decSliceLimitRange(v *[]LimitRange, d *codec1978.Decode } } -func (x codecSelfer1234) encSliceResourceQuotaScope(v []ResourceQuotaScope, 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 _, yyv4811 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yyv4811.CodecEncodeSelf(e) + yy4812 := &yyv4811 + yy4812.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 + + yyv4813 := *v + yyh4813, yyl4813 := z.DecSliceHelperStart() + var yyc4813 bool + if yyl4813 == 0 { + if yyv4813 == nil { + yyv4813 = []NodeCondition{} + yyc4813 = true + } else if len(yyv4813) != 0 { + yyv4813 = yyv4813[:0] + yyc4813 = true + } + } else if yyl4813 > 0 { + var yyrr4813, yyrl4813 int + var yyrt4813 bool + if yyl4813 > cap(yyv4813) { + + yyrg4813 := len(yyv4813) > 0 + yyv24813 := yyv4813 + yyrl4813, yyrt4813 = z.DecInferLen(yyl4813, z.DecBasicHandle().MaxInitLen, 112) + if yyrt4813 { + if yyrl4813 <= cap(yyv4813) { + yyv4813 = yyv4813[:yyrl4813] + } else { + yyv4813 = make([]NodeCondition, yyrl4813) + } + } else { + yyv4813 = make([]NodeCondition, yyrl4813) + } + yyc4813 = true + yyrr4813 = len(yyv4813) + if yyrg4813 { + copy(yyv4813, yyv24813) + } + } else if yyl4813 != len(yyv4813) { + yyv4813 = yyv4813[:yyl4813] + yyc4813 = true + } + yyj4813 := 0 + for ; yyj4813 < yyrr4813; yyj4813++ { + yyh4813.ElemContainerState(yyj4813) + if r.TryDecodeAsNil() { + yyv4813[yyj4813] = NodeCondition{} + } else { + yyv4814 := &yyv4813[yyj4813] + yyv4814.CodecDecodeSelf(d) + } + + } + if yyrt4813 { + for ; yyj4813 < yyl4813; yyj4813++ { + yyv4813 = append(yyv4813, NodeCondition{}) + yyh4813.ElemContainerState(yyj4813) + if r.TryDecodeAsNil() { + yyv4813[yyj4813] = NodeCondition{} + } else { + yyv4815 := &yyv4813[yyj4813] + yyv4815.CodecDecodeSelf(d) + } + + } + } + + } else { + yyj4813 := 0 + for ; !r.CheckBreak(); yyj4813++ { + + if yyj4813 >= len(yyv4813) { + yyv4813 = append(yyv4813, NodeCondition{}) // var yyz4813 NodeCondition + yyc4813 = true + } + yyh4813.ElemContainerState(yyj4813) + if yyj4813 < len(yyv4813) { + if r.TryDecodeAsNil() { + yyv4813[yyj4813] = NodeCondition{} + } else { + yyv4816 := &yyv4813[yyj4813] + yyv4816.CodecDecodeSelf(d) + } + + } else { + z.DecSwallow() + } + + } + if yyj4813 < len(yyv4813) { + yyv4813 = yyv4813[:yyj4813] + yyc4813 = true + } else if yyj4813 == 0 && yyv4813 == nil { + yyv4813 = []NodeCondition{} + yyc4813 = true + } + } + yyh4813.End() + if yyc4813 { + *v = yyv4813 + } +} + +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 _, yyv4817 := range v { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yy4818 := &yyv4817 + yy4818.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 + + yyv4819 := *v + yyh4819, yyl4819 := z.DecSliceHelperStart() + var yyc4819 bool + if yyl4819 == 0 { + if yyv4819 == nil { + yyv4819 = []NodeAddress{} + yyc4819 = true + } else if len(yyv4819) != 0 { + yyv4819 = yyv4819[:0] + yyc4819 = true + } + } else if yyl4819 > 0 { + var yyrr4819, yyrl4819 int + var yyrt4819 bool + if yyl4819 > cap(yyv4819) { + + yyrg4819 := len(yyv4819) > 0 + yyv24819 := yyv4819 + yyrl4819, yyrt4819 = z.DecInferLen(yyl4819, z.DecBasicHandle().MaxInitLen, 32) + if yyrt4819 { + if yyrl4819 <= cap(yyv4819) { + yyv4819 = yyv4819[:yyrl4819] + } else { + yyv4819 = make([]NodeAddress, yyrl4819) + } + } else { + yyv4819 = make([]NodeAddress, yyrl4819) + } + yyc4819 = true + yyrr4819 = len(yyv4819) + if yyrg4819 { + copy(yyv4819, yyv24819) + } + } else if yyl4819 != len(yyv4819) { + yyv4819 = yyv4819[:yyl4819] + yyc4819 = true + } + yyj4819 := 0 + for ; yyj4819 < yyrr4819; yyj4819++ { + yyh4819.ElemContainerState(yyj4819) + if r.TryDecodeAsNil() { + yyv4819[yyj4819] = NodeAddress{} + } else { + yyv4820 := &yyv4819[yyj4819] + yyv4820.CodecDecodeSelf(d) + } + + } + if yyrt4819 { + for ; yyj4819 < yyl4819; yyj4819++ { + yyv4819 = append(yyv4819, NodeAddress{}) + yyh4819.ElemContainerState(yyj4819) + if r.TryDecodeAsNil() { + yyv4819[yyj4819] = NodeAddress{} + } else { + yyv4821 := &yyv4819[yyj4819] + yyv4821.CodecDecodeSelf(d) + } + + } + } + + } else { + yyj4819 := 0 + for ; !r.CheckBreak(); yyj4819++ { + + if yyj4819 >= len(yyv4819) { + yyv4819 = append(yyv4819, NodeAddress{}) // var yyz4819 NodeAddress + yyc4819 = true + } + yyh4819.ElemContainerState(yyj4819) + if yyj4819 < len(yyv4819) { + if r.TryDecodeAsNil() { + yyv4819[yyj4819] = NodeAddress{} + } else { + yyv4822 := &yyv4819[yyj4819] + yyv4822.CodecDecodeSelf(d) + } + + } else { + z.DecSwallow() + } + + } + if yyj4819 < len(yyv4819) { + yyv4819 = yyv4819[:yyj4819] + yyc4819 = true + } else if yyj4819 == 0 && yyv4819 == nil { + yyv4819 = []NodeAddress{} + yyc4819 = true + } + } + yyh4819.End() + if yyc4819 { + *v = yyv4819 + } +} + +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 _, yyv4823 := range v { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yy4824 := &yyv4823 + yy4824.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 + + yyv4825 := *v + yyh4825, yyl4825 := z.DecSliceHelperStart() + var yyc4825 bool + if yyl4825 == 0 { + if yyv4825 == nil { + yyv4825 = []ContainerImage{} + yyc4825 = true + } else if len(yyv4825) != 0 { + yyv4825 = yyv4825[:0] + yyc4825 = true + } + } else if yyl4825 > 0 { + var yyrr4825, yyrl4825 int + var yyrt4825 bool + if yyl4825 > cap(yyv4825) { + + yyrg4825 := len(yyv4825) > 0 + yyv24825 := yyv4825 + yyrl4825, yyrt4825 = z.DecInferLen(yyl4825, z.DecBasicHandle().MaxInitLen, 32) + if yyrt4825 { + if yyrl4825 <= cap(yyv4825) { + yyv4825 = yyv4825[:yyrl4825] + } else { + yyv4825 = make([]ContainerImage, yyrl4825) + } + } else { + yyv4825 = make([]ContainerImage, yyrl4825) + } + yyc4825 = true + yyrr4825 = len(yyv4825) + if yyrg4825 { + copy(yyv4825, yyv24825) + } + } else if yyl4825 != len(yyv4825) { + yyv4825 = yyv4825[:yyl4825] + yyc4825 = true + } + yyj4825 := 0 + for ; yyj4825 < yyrr4825; yyj4825++ { + yyh4825.ElemContainerState(yyj4825) + if r.TryDecodeAsNil() { + yyv4825[yyj4825] = ContainerImage{} + } else { + yyv4826 := &yyv4825[yyj4825] + yyv4826.CodecDecodeSelf(d) + } + + } + if yyrt4825 { + for ; yyj4825 < yyl4825; yyj4825++ { + yyv4825 = append(yyv4825, ContainerImage{}) + yyh4825.ElemContainerState(yyj4825) + if r.TryDecodeAsNil() { + yyv4825[yyj4825] = ContainerImage{} + } else { + yyv4827 := &yyv4825[yyj4825] + yyv4827.CodecDecodeSelf(d) + } + + } + } + + } else { + yyj4825 := 0 + for ; !r.CheckBreak(); yyj4825++ { + + if yyj4825 >= len(yyv4825) { + yyv4825 = append(yyv4825, ContainerImage{}) // var yyz4825 ContainerImage + yyc4825 = true + } + yyh4825.ElemContainerState(yyj4825) + if yyj4825 < len(yyv4825) { + if r.TryDecodeAsNil() { + yyv4825[yyj4825] = ContainerImage{} + } else { + yyv4828 := &yyv4825[yyj4825] + yyv4828.CodecDecodeSelf(d) + } + + } else { + z.DecSwallow() + } + + } + if yyj4825 < len(yyv4825) { + yyv4825 = yyv4825[:yyj4825] + yyc4825 = true + } else if yyj4825 == 0 && yyv4825 == nil { + yyv4825 = []ContainerImage{} + yyc4825 = true + } + } + yyh4825.End() + if yyc4825 { + *v = yyv4825 + } +} + +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 _, yyv4829 := range v { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yyv4829.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 + + yyv4830 := *v + yyh4830, yyl4830 := z.DecSliceHelperStart() + var yyc4830 bool + if yyl4830 == 0 { + if yyv4830 == nil { + yyv4830 = []UniqueVolumeName{} + yyc4830 = true + } else if len(yyv4830) != 0 { + yyv4830 = yyv4830[:0] + yyc4830 = true + } + } else if yyl4830 > 0 { + var yyrr4830, yyrl4830 int + var yyrt4830 bool + if yyl4830 > cap(yyv4830) { + + yyrl4830, yyrt4830 = z.DecInferLen(yyl4830, z.DecBasicHandle().MaxInitLen, 16) + if yyrt4830 { + if yyrl4830 <= cap(yyv4830) { + yyv4830 = yyv4830[:yyrl4830] + } else { + yyv4830 = make([]UniqueVolumeName, yyrl4830) + } + } else { + yyv4830 = make([]UniqueVolumeName, yyrl4830) + } + yyc4830 = true + yyrr4830 = len(yyv4830) + } else if yyl4830 != len(yyv4830) { + yyv4830 = yyv4830[:yyl4830] + yyc4830 = true + } + yyj4830 := 0 + for ; yyj4830 < yyrr4830; yyj4830++ { + yyh4830.ElemContainerState(yyj4830) + if r.TryDecodeAsNil() { + yyv4830[yyj4830] = "" + } else { + yyv4830[yyj4830] = UniqueVolumeName(r.DecodeString()) + } + + } + if yyrt4830 { + for ; yyj4830 < yyl4830; yyj4830++ { + yyv4830 = append(yyv4830, "") + yyh4830.ElemContainerState(yyj4830) + if r.TryDecodeAsNil() { + yyv4830[yyj4830] = "" + } else { + yyv4830[yyj4830] = UniqueVolumeName(r.DecodeString()) + } + + } + } + + } else { + yyj4830 := 0 + for ; !r.CheckBreak(); yyj4830++ { + + if yyj4830 >= len(yyv4830) { + yyv4830 = append(yyv4830, "") // var yyz4830 UniqueVolumeName + yyc4830 = true + } + yyh4830.ElemContainerState(yyj4830) + if yyj4830 < len(yyv4830) { + if r.TryDecodeAsNil() { + yyv4830[yyj4830] = "" + } else { + yyv4830[yyj4830] = UniqueVolumeName(r.DecodeString()) + } + + } else { + z.DecSwallow() + } + + } + if yyj4830 < len(yyv4830) { + yyv4830 = yyv4830[:yyj4830] + yyc4830 = true + } else if yyj4830 == 0 && yyv4830 == nil { + yyv4830 = []UniqueVolumeName{} + yyc4830 = true + } + } + yyh4830.End() + if yyc4830 { + *v = yyv4830 + } +} + +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 _, yyv4834 := range v { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yy4835 := &yyv4834 + yy4835.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 + + yyv4836 := *v + yyh4836, yyl4836 := z.DecSliceHelperStart() + var yyc4836 bool + if yyl4836 == 0 { + if yyv4836 == nil { + yyv4836 = []AttachedVolume{} + yyc4836 = true + } else if len(yyv4836) != 0 { + yyv4836 = yyv4836[:0] + yyc4836 = true + } + } else if yyl4836 > 0 { + var yyrr4836, yyrl4836 int + var yyrt4836 bool + if yyl4836 > cap(yyv4836) { + + yyrg4836 := len(yyv4836) > 0 + yyv24836 := yyv4836 + yyrl4836, yyrt4836 = z.DecInferLen(yyl4836, z.DecBasicHandle().MaxInitLen, 32) + if yyrt4836 { + if yyrl4836 <= cap(yyv4836) { + yyv4836 = yyv4836[:yyrl4836] + } else { + yyv4836 = make([]AttachedVolume, yyrl4836) + } + } else { + yyv4836 = make([]AttachedVolume, yyrl4836) + } + yyc4836 = true + yyrr4836 = len(yyv4836) + if yyrg4836 { + copy(yyv4836, yyv24836) + } + } else if yyl4836 != len(yyv4836) { + yyv4836 = yyv4836[:yyl4836] + yyc4836 = true + } + yyj4836 := 0 + for ; yyj4836 < yyrr4836; yyj4836++ { + yyh4836.ElemContainerState(yyj4836) + if r.TryDecodeAsNil() { + yyv4836[yyj4836] = AttachedVolume{} + } else { + yyv4837 := &yyv4836[yyj4836] + yyv4837.CodecDecodeSelf(d) + } + + } + if yyrt4836 { + for ; yyj4836 < yyl4836; yyj4836++ { + yyv4836 = append(yyv4836, AttachedVolume{}) + yyh4836.ElemContainerState(yyj4836) + if r.TryDecodeAsNil() { + yyv4836[yyj4836] = AttachedVolume{} + } else { + yyv4838 := &yyv4836[yyj4836] + yyv4838.CodecDecodeSelf(d) + } + + } + } + + } else { + yyj4836 := 0 + for ; !r.CheckBreak(); yyj4836++ { + + if yyj4836 >= len(yyv4836) { + yyv4836 = append(yyv4836, AttachedVolume{}) // var yyz4836 AttachedVolume + yyc4836 = true + } + yyh4836.ElemContainerState(yyj4836) + if yyj4836 < len(yyv4836) { + if r.TryDecodeAsNil() { + yyv4836[yyj4836] = AttachedVolume{} + } else { + yyv4839 := &yyv4836[yyj4836] + yyv4839.CodecDecodeSelf(d) + } + + } else { + z.DecSwallow() + } + + } + if yyj4836 < len(yyv4836) { + yyv4836 = yyv4836[:yyj4836] + yyc4836 = true + } else if yyj4836 == 0 && yyv4836 == nil { + yyv4836 = []AttachedVolume{} + yyc4836 = true + } + } + yyh4836.End() + if yyc4836 { + *v = yyv4836 + } +} + +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 _, yyv4840 := range v { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yy4841 := &yyv4840 + yy4841.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 + + yyv4842 := *v + yyh4842, yyl4842 := z.DecSliceHelperStart() + var yyc4842 bool + if yyl4842 == 0 { + if yyv4842 == nil { + yyv4842 = []PreferAvoidPodsEntry{} + yyc4842 = true + } else if len(yyv4842) != 0 { + yyv4842 = yyv4842[:0] + yyc4842 = true + } + } else if yyl4842 > 0 { + var yyrr4842, yyrl4842 int + var yyrt4842 bool + if yyl4842 > cap(yyv4842) { + + yyrg4842 := len(yyv4842) > 0 + yyv24842 := yyv4842 + yyrl4842, yyrt4842 = z.DecInferLen(yyl4842, z.DecBasicHandle().MaxInitLen, 64) + if yyrt4842 { + if yyrl4842 <= cap(yyv4842) { + yyv4842 = yyv4842[:yyrl4842] + } else { + yyv4842 = make([]PreferAvoidPodsEntry, yyrl4842) + } + } else { + yyv4842 = make([]PreferAvoidPodsEntry, yyrl4842) + } + yyc4842 = true + yyrr4842 = len(yyv4842) + if yyrg4842 { + copy(yyv4842, yyv24842) + } + } else if yyl4842 != len(yyv4842) { + yyv4842 = yyv4842[:yyl4842] + yyc4842 = true + } + yyj4842 := 0 + for ; yyj4842 < yyrr4842; yyj4842++ { + yyh4842.ElemContainerState(yyj4842) + if r.TryDecodeAsNil() { + yyv4842[yyj4842] = PreferAvoidPodsEntry{} + } else { + yyv4843 := &yyv4842[yyj4842] + yyv4843.CodecDecodeSelf(d) + } + + } + if yyrt4842 { + for ; yyj4842 < yyl4842; yyj4842++ { + yyv4842 = append(yyv4842, PreferAvoidPodsEntry{}) + yyh4842.ElemContainerState(yyj4842) + if r.TryDecodeAsNil() { + yyv4842[yyj4842] = PreferAvoidPodsEntry{} + } else { + yyv4844 := &yyv4842[yyj4842] + yyv4844.CodecDecodeSelf(d) + } + + } + } + + } else { + yyj4842 := 0 + for ; !r.CheckBreak(); yyj4842++ { + + if yyj4842 >= len(yyv4842) { + yyv4842 = append(yyv4842, PreferAvoidPodsEntry{}) // var yyz4842 PreferAvoidPodsEntry + yyc4842 = true + } + yyh4842.ElemContainerState(yyj4842) + if yyj4842 < len(yyv4842) { + if r.TryDecodeAsNil() { + yyv4842[yyj4842] = PreferAvoidPodsEntry{} + } else { + yyv4845 := &yyv4842[yyj4842] + yyv4845.CodecDecodeSelf(d) + } + + } else { + z.DecSwallow() + } + + } + if yyj4842 < len(yyv4842) { + yyv4842 = yyv4842[:yyj4842] + yyc4842 = true + } else if yyj4842 == 0 && yyv4842 == nil { + yyv4842 = []PreferAvoidPodsEntry{} + yyc4842 = true + } + } + yyh4842.End() + if yyc4842 { + *v = yyv4842 + } +} + +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 yyk4846, yyv4846 := range v { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + yyk4846.CodecEncodeSelf(e) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yy4847 := &yyv4846 + yym4848 := z.EncBinary() + _ = yym4848 + if false { + } else if z.HasExtensions() && z.EncExt(yy4847) { + } else if !yym4848 && z.IsJSONHandle() { + z.EncJSONMarshal(yy4847) + } else { + z.EncFallback(yy4847) + } + } + z.EncSendContainerState(codecSelfer_containerMapEnd1234) +} + +func (x codecSelfer1234) decResourceList(v *ResourceList, d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + + yyv4849 := *v + yyl4849 := r.ReadMapStart() + yybh4849 := z.DecBasicHandle() + if yyv4849 == nil { + yyrl4849, _ := z.DecInferLen(yyl4849, yybh4849.MaxInitLen, 72) + yyv4849 = make(map[ResourceName]pkg3_resource.Quantity, yyrl4849) + *v = yyv4849 + } + var yymk4849 ResourceName + var yymv4849 pkg3_resource.Quantity + var yymg4849 bool + if yybh4849.MapValueReset { + yymg4849 = true + } + if yyl4849 > 0 { + for yyj4849 := 0; yyj4849 < yyl4849; yyj4849++ { + z.DecSendContainerState(codecSelfer_containerMapKey1234) + if r.TryDecodeAsNil() { + yymk4849 = "" + } else { + yymk4849 = ResourceName(r.DecodeString()) + } + + if yymg4849 { + yymv4849 = yyv4849[yymk4849] + } else { + yymv4849 = pkg3_resource.Quantity{} + } + z.DecSendContainerState(codecSelfer_containerMapValue1234) + if r.TryDecodeAsNil() { + yymv4849 = pkg3_resource.Quantity{} + } else { + yyv4851 := &yymv4849 + yym4852 := z.DecBinary() + _ = yym4852 + if false { + } else if z.HasExtensions() && z.DecExt(yyv4851) { + } else if !yym4852 && z.IsJSONHandle() { + z.DecJSONUnmarshal(yyv4851) + } else { + z.DecFallback(yyv4851, false) + } + } + + if yyv4849 != nil { + yyv4849[yymk4849] = yymv4849 + } + } + } else if yyl4849 < 0 { + for yyj4849 := 0; !r.CheckBreak(); yyj4849++ { + z.DecSendContainerState(codecSelfer_containerMapKey1234) + if r.TryDecodeAsNil() { + yymk4849 = "" + } else { + yymk4849 = ResourceName(r.DecodeString()) + } + + if yymg4849 { + yymv4849 = yyv4849[yymk4849] + } else { + yymv4849 = pkg3_resource.Quantity{} + } + z.DecSendContainerState(codecSelfer_containerMapValue1234) + if r.TryDecodeAsNil() { + yymv4849 = pkg3_resource.Quantity{} + } else { + yyv4854 := &yymv4849 + yym4855 := z.DecBinary() + _ = yym4855 + if false { + } else if z.HasExtensions() && z.DecExt(yyv4854) { + } else if !yym4855 && z.IsJSONHandle() { + z.DecJSONUnmarshal(yyv4854) + } else { + z.DecFallback(yyv4854, false) + } + } + + if yyv4849 != nil { + yyv4849[yymk4849] = yymv4849 + } + } + } // 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 _, yyv4856 := range v { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yy4857 := &yyv4856 + yy4857.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 + + yyv4858 := *v + yyh4858, yyl4858 := z.DecSliceHelperStart() + var yyc4858 bool + if yyl4858 == 0 { + if yyv4858 == nil { + yyv4858 = []Node{} + yyc4858 = true + } else if len(yyv4858) != 0 { + yyv4858 = yyv4858[:0] + yyc4858 = true + } + } else if yyl4858 > 0 { + var yyrr4858, yyrl4858 int + var yyrt4858 bool + if yyl4858 > cap(yyv4858) { + + yyrg4858 := len(yyv4858) > 0 + yyv24858 := yyv4858 + yyrl4858, yyrt4858 = z.DecInferLen(yyl4858, z.DecBasicHandle().MaxInitLen, 632) + if yyrt4858 { + if yyrl4858 <= cap(yyv4858) { + yyv4858 = yyv4858[:yyrl4858] + } else { + yyv4858 = make([]Node, yyrl4858) + } + } else { + yyv4858 = make([]Node, yyrl4858) + } + yyc4858 = true + yyrr4858 = len(yyv4858) + if yyrg4858 { + copy(yyv4858, yyv24858) + } + } else if yyl4858 != len(yyv4858) { + yyv4858 = yyv4858[:yyl4858] + yyc4858 = true + } + yyj4858 := 0 + for ; yyj4858 < yyrr4858; yyj4858++ { + yyh4858.ElemContainerState(yyj4858) + if r.TryDecodeAsNil() { + yyv4858[yyj4858] = Node{} + } else { + yyv4859 := &yyv4858[yyj4858] + yyv4859.CodecDecodeSelf(d) + } + + } + if yyrt4858 { + for ; yyj4858 < yyl4858; yyj4858++ { + yyv4858 = append(yyv4858, Node{}) + yyh4858.ElemContainerState(yyj4858) + if r.TryDecodeAsNil() { + yyv4858[yyj4858] = Node{} + } else { + yyv4860 := &yyv4858[yyj4858] + yyv4860.CodecDecodeSelf(d) + } + + } + } + + } else { + yyj4858 := 0 + for ; !r.CheckBreak(); yyj4858++ { + + if yyj4858 >= len(yyv4858) { + yyv4858 = append(yyv4858, Node{}) // var yyz4858 Node + yyc4858 = true + } + yyh4858.ElemContainerState(yyj4858) + if yyj4858 < len(yyv4858) { + if r.TryDecodeAsNil() { + yyv4858[yyj4858] = Node{} + } else { + yyv4861 := &yyv4858[yyj4858] + yyv4861.CodecDecodeSelf(d) + } + + } else { + z.DecSwallow() + } + + } + if yyj4858 < len(yyv4858) { + yyv4858 = yyv4858[:yyj4858] + yyc4858 = true + } else if yyj4858 == 0 && yyv4858 == nil { + yyv4858 = []Node{} + yyc4858 = true + } + } + yyh4858.End() + if yyc4858 { + *v = yyv4858 + } +} + +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 _, yyv4862 := range v { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yyv4862.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 + + yyv4863 := *v + yyh4863, yyl4863 := z.DecSliceHelperStart() + var yyc4863 bool + if yyl4863 == 0 { + if yyv4863 == nil { + yyv4863 = []FinalizerName{} + yyc4863 = true + } else if len(yyv4863) != 0 { + yyv4863 = yyv4863[:0] + yyc4863 = true + } + } else if yyl4863 > 0 { + var yyrr4863, yyrl4863 int + var yyrt4863 bool + if yyl4863 > cap(yyv4863) { + + yyrl4863, yyrt4863 = z.DecInferLen(yyl4863, z.DecBasicHandle().MaxInitLen, 16) + if yyrt4863 { + if yyrl4863 <= cap(yyv4863) { + yyv4863 = yyv4863[:yyrl4863] + } else { + yyv4863 = make([]FinalizerName, yyrl4863) + } + } else { + yyv4863 = make([]FinalizerName, yyrl4863) + } + yyc4863 = true + yyrr4863 = len(yyv4863) + } else if yyl4863 != len(yyv4863) { + yyv4863 = yyv4863[:yyl4863] + yyc4863 = true + } + yyj4863 := 0 + for ; yyj4863 < yyrr4863; yyj4863++ { + yyh4863.ElemContainerState(yyj4863) + if r.TryDecodeAsNil() { + yyv4863[yyj4863] = "" + } else { + yyv4863[yyj4863] = FinalizerName(r.DecodeString()) + } + + } + if yyrt4863 { + for ; yyj4863 < yyl4863; yyj4863++ { + yyv4863 = append(yyv4863, "") + yyh4863.ElemContainerState(yyj4863) + if r.TryDecodeAsNil() { + yyv4863[yyj4863] = "" + } else { + yyv4863[yyj4863] = FinalizerName(r.DecodeString()) + } + + } + } + + } else { + yyj4863 := 0 + for ; !r.CheckBreak(); yyj4863++ { + + if yyj4863 >= len(yyv4863) { + yyv4863 = append(yyv4863, "") // var yyz4863 FinalizerName + yyc4863 = true + } + yyh4863.ElemContainerState(yyj4863) + if yyj4863 < len(yyv4863) { + if r.TryDecodeAsNil() { + yyv4863[yyj4863] = "" + } else { + yyv4863[yyj4863] = FinalizerName(r.DecodeString()) + } + + } else { + z.DecSwallow() + } + + } + if yyj4863 < len(yyv4863) { + yyv4863 = yyv4863[:yyj4863] + yyc4863 = true + } else if yyj4863 == 0 && yyv4863 == nil { + yyv4863 = []FinalizerName{} + yyc4863 = true + } + } + yyh4863.End() + if yyc4863 { + *v = yyv4863 + } +} + +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 _, yyv4867 := range v { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yy4868 := &yyv4867 + yy4868.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 + + yyv4869 := *v + yyh4869, yyl4869 := z.DecSliceHelperStart() + var yyc4869 bool + if yyl4869 == 0 { + if yyv4869 == nil { + yyv4869 = []Namespace{} + yyc4869 = true + } else if len(yyv4869) != 0 { + yyv4869 = yyv4869[:0] + yyc4869 = true + } + } else if yyl4869 > 0 { + var yyrr4869, yyrl4869 int + var yyrt4869 bool + if yyl4869 > cap(yyv4869) { + + yyrg4869 := len(yyv4869) > 0 + yyv24869 := yyv4869 + yyrl4869, yyrt4869 = z.DecInferLen(yyl4869, z.DecBasicHandle().MaxInitLen, 296) + if yyrt4869 { + if yyrl4869 <= cap(yyv4869) { + yyv4869 = yyv4869[:yyrl4869] + } else { + yyv4869 = make([]Namespace, yyrl4869) + } + } else { + yyv4869 = make([]Namespace, yyrl4869) + } + yyc4869 = true + yyrr4869 = len(yyv4869) + if yyrg4869 { + copy(yyv4869, yyv24869) + } + } else if yyl4869 != len(yyv4869) { + yyv4869 = yyv4869[:yyl4869] + yyc4869 = true + } + yyj4869 := 0 + for ; yyj4869 < yyrr4869; yyj4869++ { + yyh4869.ElemContainerState(yyj4869) + if r.TryDecodeAsNil() { + yyv4869[yyj4869] = Namespace{} + } else { + yyv4870 := &yyv4869[yyj4869] + yyv4870.CodecDecodeSelf(d) + } + + } + if yyrt4869 { + for ; yyj4869 < yyl4869; yyj4869++ { + yyv4869 = append(yyv4869, Namespace{}) + yyh4869.ElemContainerState(yyj4869) + if r.TryDecodeAsNil() { + yyv4869[yyj4869] = Namespace{} + } else { + yyv4871 := &yyv4869[yyj4869] + yyv4871.CodecDecodeSelf(d) + } + + } + } + + } else { + yyj4869 := 0 + for ; !r.CheckBreak(); yyj4869++ { + + if yyj4869 >= len(yyv4869) { + yyv4869 = append(yyv4869, Namespace{}) // var yyz4869 Namespace + yyc4869 = true + } + yyh4869.ElemContainerState(yyj4869) + if yyj4869 < len(yyv4869) { + if r.TryDecodeAsNil() { + yyv4869[yyj4869] = Namespace{} + } else { + yyv4872 := &yyv4869[yyj4869] + yyv4872.CodecDecodeSelf(d) + } + + } else { + z.DecSwallow() + } + + } + if yyj4869 < len(yyv4869) { + yyv4869 = yyv4869[:yyj4869] + yyc4869 = true + } else if yyj4869 == 0 && yyv4869 == nil { + yyv4869 = []Namespace{} + yyc4869 = true + } + } + yyh4869.End() + if yyc4869 { + *v = yyv4869 + } +} + +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 _, yyv4873 := range v { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yy4874 := &yyv4873 + yy4874.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 + + yyv4875 := *v + yyh4875, yyl4875 := z.DecSliceHelperStart() + var yyc4875 bool + if yyl4875 == 0 { + if yyv4875 == nil { + yyv4875 = []Event{} + yyc4875 = true + } else if len(yyv4875) != 0 { + yyv4875 = yyv4875[:0] + yyc4875 = true + } + } else if yyl4875 > 0 { + var yyrr4875, yyrl4875 int + var yyrt4875 bool + if yyl4875 > cap(yyv4875) { + + yyrg4875 := len(yyv4875) > 0 + yyv24875 := yyv4875 + yyrl4875, yyrt4875 = z.DecInferLen(yyl4875, z.DecBasicHandle().MaxInitLen, 504) + if yyrt4875 { + if yyrl4875 <= cap(yyv4875) { + yyv4875 = yyv4875[:yyrl4875] + } else { + yyv4875 = make([]Event, yyrl4875) + } + } else { + yyv4875 = make([]Event, yyrl4875) + } + yyc4875 = true + yyrr4875 = len(yyv4875) + if yyrg4875 { + copy(yyv4875, yyv24875) + } + } else if yyl4875 != len(yyv4875) { + yyv4875 = yyv4875[:yyl4875] + yyc4875 = true + } + yyj4875 := 0 + for ; yyj4875 < yyrr4875; yyj4875++ { + yyh4875.ElemContainerState(yyj4875) + if r.TryDecodeAsNil() { + yyv4875[yyj4875] = Event{} + } else { + yyv4876 := &yyv4875[yyj4875] + yyv4876.CodecDecodeSelf(d) + } + + } + if yyrt4875 { + for ; yyj4875 < yyl4875; yyj4875++ { + yyv4875 = append(yyv4875, Event{}) + yyh4875.ElemContainerState(yyj4875) + if r.TryDecodeAsNil() { + yyv4875[yyj4875] = Event{} + } else { + yyv4877 := &yyv4875[yyj4875] + yyv4877.CodecDecodeSelf(d) + } + + } + } + + } else { + yyj4875 := 0 + for ; !r.CheckBreak(); yyj4875++ { + + if yyj4875 >= len(yyv4875) { + yyv4875 = append(yyv4875, Event{}) // var yyz4875 Event + yyc4875 = true + } + yyh4875.ElemContainerState(yyj4875) + if yyj4875 < len(yyv4875) { + if r.TryDecodeAsNil() { + yyv4875[yyj4875] = Event{} + } else { + yyv4878 := &yyv4875[yyj4875] + yyv4878.CodecDecodeSelf(d) + } + + } else { + z.DecSwallow() + } + + } + if yyj4875 < len(yyv4875) { + yyv4875 = yyv4875[:yyj4875] + yyc4875 = true + } else if yyj4875 == 0 && yyv4875 == nil { + yyv4875 = []Event{} + yyc4875 = true + } + } + yyh4875.End() + if yyc4875 { + *v = yyv4875 + } +} + +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 _, yyv4879 := range v { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyv4879 == nil { + r.EncodeNil() + } else { + yym4880 := z.EncBinary() + _ = yym4880 + if false { + } else if z.HasExtensions() && z.EncExt(yyv4879) { + } else { + z.EncFallback(yyv4879) + } + } + } + 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 + + yyv4881 := *v + yyh4881, yyl4881 := z.DecSliceHelperStart() + var yyc4881 bool + if yyl4881 == 0 { + if yyv4881 == nil { + yyv4881 = []pkg7_runtime.Object{} + yyc4881 = true + } else if len(yyv4881) != 0 { + yyv4881 = yyv4881[:0] + yyc4881 = true + } + } else if yyl4881 > 0 { + var yyrr4881, yyrl4881 int + var yyrt4881 bool + if yyl4881 > cap(yyv4881) { + + yyrg4881 := len(yyv4881) > 0 + yyv24881 := yyv4881 + yyrl4881, yyrt4881 = z.DecInferLen(yyl4881, z.DecBasicHandle().MaxInitLen, 16) + if yyrt4881 { + if yyrl4881 <= cap(yyv4881) { + yyv4881 = yyv4881[:yyrl4881] + } else { + yyv4881 = make([]pkg7_runtime.Object, yyrl4881) + } + } else { + yyv4881 = make([]pkg7_runtime.Object, yyrl4881) + } + yyc4881 = true + yyrr4881 = len(yyv4881) + if yyrg4881 { + copy(yyv4881, yyv24881) + } + } else if yyl4881 != len(yyv4881) { + yyv4881 = yyv4881[:yyl4881] + yyc4881 = true + } + yyj4881 := 0 + for ; yyj4881 < yyrr4881; yyj4881++ { + yyh4881.ElemContainerState(yyj4881) + if r.TryDecodeAsNil() { + yyv4881[yyj4881] = nil + } else { + yyv4882 := &yyv4881[yyj4881] + yym4883 := z.DecBinary() + _ = yym4883 + if false { + } else if z.HasExtensions() && z.DecExt(yyv4882) { + } else { + z.DecFallback(yyv4882, true) + } + } + + } + if yyrt4881 { + for ; yyj4881 < yyl4881; yyj4881++ { + yyv4881 = append(yyv4881, nil) + yyh4881.ElemContainerState(yyj4881) + if r.TryDecodeAsNil() { + yyv4881[yyj4881] = nil + } else { + yyv4884 := &yyv4881[yyj4881] + yym4885 := z.DecBinary() + _ = yym4885 + if false { + } else if z.HasExtensions() && z.DecExt(yyv4884) { + } else { + z.DecFallback(yyv4884, true) + } + } + + } + } + + } else { + yyj4881 := 0 + for ; !r.CheckBreak(); yyj4881++ { + + if yyj4881 >= len(yyv4881) { + yyv4881 = append(yyv4881, nil) // var yyz4881 pkg7_runtime.Object + yyc4881 = true + } + yyh4881.ElemContainerState(yyj4881) + if yyj4881 < len(yyv4881) { + if r.TryDecodeAsNil() { + yyv4881[yyj4881] = nil + } else { + yyv4886 := &yyv4881[yyj4881] + yym4887 := z.DecBinary() + _ = yym4887 + if false { + } else if z.HasExtensions() && z.DecExt(yyv4886) { + } else { + z.DecFallback(yyv4886, true) + } + } + + } else { + z.DecSwallow() + } + + } + if yyj4881 < len(yyv4881) { + yyv4881 = yyv4881[:yyj4881] + yyc4881 = true + } else if yyj4881 == 0 && yyv4881 == nil { + yyv4881 = []pkg7_runtime.Object{} + yyc4881 = true + } + } + yyh4881.End() + if yyc4881 { + *v = yyv4881 + } +} + +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 _, yyv4888 := range v { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yy4889 := &yyv4888 + yy4889.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 + + yyv4890 := *v + yyh4890, yyl4890 := z.DecSliceHelperStart() + var yyc4890 bool + if yyl4890 == 0 { + if yyv4890 == nil { + yyv4890 = []LimitRangeItem{} + yyc4890 = true + } else if len(yyv4890) != 0 { + yyv4890 = yyv4890[:0] + yyc4890 = true + } + } else if yyl4890 > 0 { + var yyrr4890, yyrl4890 int + var yyrt4890 bool + if yyl4890 > cap(yyv4890) { + + yyrg4890 := len(yyv4890) > 0 + yyv24890 := yyv4890 + yyrl4890, yyrt4890 = z.DecInferLen(yyl4890, z.DecBasicHandle().MaxInitLen, 56) + if yyrt4890 { + if yyrl4890 <= cap(yyv4890) { + yyv4890 = yyv4890[:yyrl4890] + } else { + yyv4890 = make([]LimitRangeItem, yyrl4890) + } + } else { + yyv4890 = make([]LimitRangeItem, yyrl4890) + } + yyc4890 = true + yyrr4890 = len(yyv4890) + if yyrg4890 { + copy(yyv4890, yyv24890) + } + } else if yyl4890 != len(yyv4890) { + yyv4890 = yyv4890[:yyl4890] + yyc4890 = true + } + yyj4890 := 0 + for ; yyj4890 < yyrr4890; yyj4890++ { + yyh4890.ElemContainerState(yyj4890) + if r.TryDecodeAsNil() { + yyv4890[yyj4890] = LimitRangeItem{} + } else { + yyv4891 := &yyv4890[yyj4890] + yyv4891.CodecDecodeSelf(d) + } + + } + if yyrt4890 { + for ; yyj4890 < yyl4890; yyj4890++ { + yyv4890 = append(yyv4890, LimitRangeItem{}) + yyh4890.ElemContainerState(yyj4890) + if r.TryDecodeAsNil() { + yyv4890[yyj4890] = LimitRangeItem{} + } else { + yyv4892 := &yyv4890[yyj4890] + yyv4892.CodecDecodeSelf(d) + } + + } + } + + } else { + yyj4890 := 0 + for ; !r.CheckBreak(); yyj4890++ { + + if yyj4890 >= len(yyv4890) { + yyv4890 = append(yyv4890, LimitRangeItem{}) // var yyz4890 LimitRangeItem + yyc4890 = true + } + yyh4890.ElemContainerState(yyj4890) + if yyj4890 < len(yyv4890) { + if r.TryDecodeAsNil() { + yyv4890[yyj4890] = LimitRangeItem{} + } else { + yyv4893 := &yyv4890[yyj4890] + yyv4893.CodecDecodeSelf(d) + } + + } else { + z.DecSwallow() + } + + } + if yyj4890 < len(yyv4890) { + yyv4890 = yyv4890[:yyj4890] + yyc4890 = true + } else if yyj4890 == 0 && yyv4890 == nil { + yyv4890 = []LimitRangeItem{} + yyc4890 = true + } + } + yyh4890.End() + if yyc4890 { + *v = yyv4890 + } +} + +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 _, yyv4894 := range v { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yy4895 := &yyv4894 + yy4895.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 + + yyv4896 := *v + yyh4896, yyl4896 := z.DecSliceHelperStart() + var yyc4896 bool + if yyl4896 == 0 { + if yyv4896 == nil { + yyv4896 = []LimitRange{} + yyc4896 = true + } else if len(yyv4896) != 0 { + yyv4896 = yyv4896[:0] + yyc4896 = true + } + } else if yyl4896 > 0 { + var yyrr4896, yyrl4896 int + var yyrt4896 bool + if yyl4896 > cap(yyv4896) { + + yyrg4896 := len(yyv4896) > 0 + yyv24896 := yyv4896 + yyrl4896, yyrt4896 = z.DecInferLen(yyl4896, z.DecBasicHandle().MaxInitLen, 280) + if yyrt4896 { + if yyrl4896 <= cap(yyv4896) { + yyv4896 = yyv4896[:yyrl4896] + } else { + yyv4896 = make([]LimitRange, yyrl4896) + } + } else { + yyv4896 = make([]LimitRange, yyrl4896) + } + yyc4896 = true + yyrr4896 = len(yyv4896) + if yyrg4896 { + copy(yyv4896, yyv24896) + } + } else if yyl4896 != len(yyv4896) { + yyv4896 = yyv4896[:yyl4896] + yyc4896 = true + } + yyj4896 := 0 + for ; yyj4896 < yyrr4896; yyj4896++ { + yyh4896.ElemContainerState(yyj4896) + if r.TryDecodeAsNil() { + yyv4896[yyj4896] = LimitRange{} + } else { + yyv4897 := &yyv4896[yyj4896] + yyv4897.CodecDecodeSelf(d) + } + + } + if yyrt4896 { + for ; yyj4896 < yyl4896; yyj4896++ { + yyv4896 = append(yyv4896, LimitRange{}) + yyh4896.ElemContainerState(yyj4896) + if r.TryDecodeAsNil() { + yyv4896[yyj4896] = LimitRange{} + } else { + yyv4898 := &yyv4896[yyj4896] + yyv4898.CodecDecodeSelf(d) + } + + } + } + + } else { + yyj4896 := 0 + for ; !r.CheckBreak(); yyj4896++ { + + if yyj4896 >= len(yyv4896) { + yyv4896 = append(yyv4896, LimitRange{}) // var yyz4896 LimitRange + yyc4896 = true + } + yyh4896.ElemContainerState(yyj4896) + if yyj4896 < len(yyv4896) { + if r.TryDecodeAsNil() { + yyv4896[yyj4896] = LimitRange{} + } else { + yyv4899 := &yyv4896[yyj4896] + yyv4899.CodecDecodeSelf(d) + } + + } else { + z.DecSwallow() + } + + } + if yyj4896 < len(yyv4896) { + yyv4896 = yyv4896[:yyj4896] + yyc4896 = true + } else if yyj4896 == 0 && yyv4896 == nil { + yyv4896 = []LimitRange{} + yyc4896 = true + } + } + yyh4896.End() + if yyc4896 { + *v = yyv4896 + } +} + +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 _, yyv4900 := range v { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yyv4900.CodecEncodeSelf(e) } z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -61646,75 +62842,75 @@ func (x codecSelfer1234) decSliceResourceQuotaScope(v *[]ResourceQuotaScope, d * z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yyv4812 := *v - yyh4812, yyl4812 := z.DecSliceHelperStart() - var yyc4812 bool - if yyl4812 == 0 { - if yyv4812 == nil { - yyv4812 = []ResourceQuotaScope{} - yyc4812 = true - } else if len(yyv4812) != 0 { - yyv4812 = yyv4812[:0] - yyc4812 = true + yyv4901 := *v + yyh4901, yyl4901 := z.DecSliceHelperStart() + var yyc4901 bool + if yyl4901 == 0 { + if yyv4901 == nil { + yyv4901 = []ResourceQuotaScope{} + yyc4901 = true + } else if len(yyv4901) != 0 { + yyv4901 = yyv4901[:0] + yyc4901 = true } - } else if yyl4812 > 0 { - var yyrr4812, yyrl4812 int - var yyrt4812 bool - if yyl4812 > cap(yyv4812) { + } else if yyl4901 > 0 { + var yyrr4901, yyrl4901 int + var yyrt4901 bool + if yyl4901 > cap(yyv4901) { - yyrl4812, yyrt4812 = z.DecInferLen(yyl4812, z.DecBasicHandle().MaxInitLen, 16) - if yyrt4812 { - if yyrl4812 <= cap(yyv4812) { - yyv4812 = yyv4812[:yyrl4812] + yyrl4901, yyrt4901 = z.DecInferLen(yyl4901, z.DecBasicHandle().MaxInitLen, 16) + if yyrt4901 { + if yyrl4901 <= cap(yyv4901) { + yyv4901 = yyv4901[:yyrl4901] } else { - yyv4812 = make([]ResourceQuotaScope, yyrl4812) + yyv4901 = make([]ResourceQuotaScope, yyrl4901) } } else { - yyv4812 = make([]ResourceQuotaScope, yyrl4812) + yyv4901 = make([]ResourceQuotaScope, yyrl4901) } - yyc4812 = true - yyrr4812 = len(yyv4812) - } else if yyl4812 != len(yyv4812) { - yyv4812 = yyv4812[:yyl4812] - yyc4812 = true + yyc4901 = true + yyrr4901 = len(yyv4901) + } else if yyl4901 != len(yyv4901) { + yyv4901 = yyv4901[:yyl4901] + yyc4901 = true } - yyj4812 := 0 - for ; yyj4812 < yyrr4812; yyj4812++ { - yyh4812.ElemContainerState(yyj4812) + yyj4901 := 0 + for ; yyj4901 < yyrr4901; yyj4901++ { + yyh4901.ElemContainerState(yyj4901) if r.TryDecodeAsNil() { - yyv4812[yyj4812] = "" + yyv4901[yyj4901] = "" } else { - yyv4812[yyj4812] = ResourceQuotaScope(r.DecodeString()) + yyv4901[yyj4901] = ResourceQuotaScope(r.DecodeString()) } } - if yyrt4812 { - for ; yyj4812 < yyl4812; yyj4812++ { - yyv4812 = append(yyv4812, "") - yyh4812.ElemContainerState(yyj4812) + if yyrt4901 { + for ; yyj4901 < yyl4901; yyj4901++ { + yyv4901 = append(yyv4901, "") + yyh4901.ElemContainerState(yyj4901) if r.TryDecodeAsNil() { - yyv4812[yyj4812] = "" + yyv4901[yyj4901] = "" } else { - yyv4812[yyj4812] = ResourceQuotaScope(r.DecodeString()) + yyv4901[yyj4901] = ResourceQuotaScope(r.DecodeString()) } } } } else { - yyj4812 := 0 - for ; !r.CheckBreak(); yyj4812++ { + yyj4901 := 0 + for ; !r.CheckBreak(); yyj4901++ { - if yyj4812 >= len(yyv4812) { - yyv4812 = append(yyv4812, "") // var yyz4812 ResourceQuotaScope - yyc4812 = true + if yyj4901 >= len(yyv4901) { + yyv4901 = append(yyv4901, "") // var yyz4901 ResourceQuotaScope + yyc4901 = true } - yyh4812.ElemContainerState(yyj4812) - if yyj4812 < len(yyv4812) { + yyh4901.ElemContainerState(yyj4901) + if yyj4901 < len(yyv4901) { if r.TryDecodeAsNil() { - yyv4812[yyj4812] = "" + yyv4901[yyj4901] = "" } else { - yyv4812[yyj4812] = ResourceQuotaScope(r.DecodeString()) + yyv4901[yyj4901] = ResourceQuotaScope(r.DecodeString()) } } else { @@ -61722,17 +62918,17 @@ func (x codecSelfer1234) decSliceResourceQuotaScope(v *[]ResourceQuotaScope, d * } } - if yyj4812 < len(yyv4812) { - yyv4812 = yyv4812[:yyj4812] - yyc4812 = true - } else if yyj4812 == 0 && yyv4812 == nil { - yyv4812 = []ResourceQuotaScope{} - yyc4812 = true + if yyj4901 < len(yyv4901) { + yyv4901 = yyv4901[:yyj4901] + yyc4901 = true + } else if yyj4901 == 0 && yyv4901 == nil { + yyv4901 = []ResourceQuotaScope{} + yyc4901 = true } } - yyh4812.End() - if yyc4812 { - *v = yyv4812 + yyh4901.End() + if yyc4901 { + *v = yyv4901 } } @@ -61741,10 +62937,10 @@ func (x codecSelfer1234) encSliceResourceQuota(v []ResourceQuota, e *codec1978.E z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r r.EncodeArrayStart(len(v)) - for _, yyv4816 := range v { + for _, yyv4905 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy4817 := &yyv4816 - yy4817.CodecEncodeSelf(e) + yy4906 := &yyv4905 + yy4906.CodecEncodeSelf(e) } z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -61754,83 +62950,83 @@ func (x codecSelfer1234) decSliceResourceQuota(v *[]ResourceQuota, d *codec1978. z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yyv4818 := *v - yyh4818, yyl4818 := z.DecSliceHelperStart() - var yyc4818 bool - if yyl4818 == 0 { - if yyv4818 == nil { - yyv4818 = []ResourceQuota{} - yyc4818 = true - } else if len(yyv4818) != 0 { - yyv4818 = yyv4818[:0] - yyc4818 = true + yyv4907 := *v + yyh4907, yyl4907 := z.DecSliceHelperStart() + var yyc4907 bool + if yyl4907 == 0 { + if yyv4907 == nil { + yyv4907 = []ResourceQuota{} + yyc4907 = true + } else if len(yyv4907) != 0 { + yyv4907 = yyv4907[:0] + yyc4907 = true } - } else if yyl4818 > 0 { - var yyrr4818, yyrl4818 int - var yyrt4818 bool - if yyl4818 > cap(yyv4818) { + } else if yyl4907 > 0 { + var yyrr4907, yyrl4907 int + var yyrt4907 bool + if yyl4907 > cap(yyv4907) { - yyrg4818 := len(yyv4818) > 0 - yyv24818 := yyv4818 - yyrl4818, yyrt4818 = z.DecInferLen(yyl4818, z.DecBasicHandle().MaxInitLen, 304) - if yyrt4818 { - if yyrl4818 <= cap(yyv4818) { - yyv4818 = yyv4818[:yyrl4818] + yyrg4907 := len(yyv4907) > 0 + yyv24907 := yyv4907 + yyrl4907, yyrt4907 = z.DecInferLen(yyl4907, z.DecBasicHandle().MaxInitLen, 304) + if yyrt4907 { + if yyrl4907 <= cap(yyv4907) { + yyv4907 = yyv4907[:yyrl4907] } else { - yyv4818 = make([]ResourceQuota, yyrl4818) + yyv4907 = make([]ResourceQuota, yyrl4907) } } else { - yyv4818 = make([]ResourceQuota, yyrl4818) + yyv4907 = make([]ResourceQuota, yyrl4907) } - yyc4818 = true - yyrr4818 = len(yyv4818) - if yyrg4818 { - copy(yyv4818, yyv24818) + yyc4907 = true + yyrr4907 = len(yyv4907) + if yyrg4907 { + copy(yyv4907, yyv24907) } - } else if yyl4818 != len(yyv4818) { - yyv4818 = yyv4818[:yyl4818] - yyc4818 = true + } else if yyl4907 != len(yyv4907) { + yyv4907 = yyv4907[:yyl4907] + yyc4907 = true } - yyj4818 := 0 - for ; yyj4818 < yyrr4818; yyj4818++ { - yyh4818.ElemContainerState(yyj4818) + yyj4907 := 0 + for ; yyj4907 < yyrr4907; yyj4907++ { + yyh4907.ElemContainerState(yyj4907) if r.TryDecodeAsNil() { - yyv4818[yyj4818] = ResourceQuota{} + yyv4907[yyj4907] = ResourceQuota{} } else { - yyv4819 := &yyv4818[yyj4818] - yyv4819.CodecDecodeSelf(d) + yyv4908 := &yyv4907[yyj4907] + yyv4908.CodecDecodeSelf(d) } } - if yyrt4818 { - for ; yyj4818 < yyl4818; yyj4818++ { - yyv4818 = append(yyv4818, ResourceQuota{}) - yyh4818.ElemContainerState(yyj4818) + if yyrt4907 { + for ; yyj4907 < yyl4907; yyj4907++ { + yyv4907 = append(yyv4907, ResourceQuota{}) + yyh4907.ElemContainerState(yyj4907) if r.TryDecodeAsNil() { - yyv4818[yyj4818] = ResourceQuota{} + yyv4907[yyj4907] = ResourceQuota{} } else { - yyv4820 := &yyv4818[yyj4818] - yyv4820.CodecDecodeSelf(d) + yyv4909 := &yyv4907[yyj4907] + yyv4909.CodecDecodeSelf(d) } } } } else { - yyj4818 := 0 - for ; !r.CheckBreak(); yyj4818++ { + yyj4907 := 0 + for ; !r.CheckBreak(); yyj4907++ { - if yyj4818 >= len(yyv4818) { - yyv4818 = append(yyv4818, ResourceQuota{}) // var yyz4818 ResourceQuota - yyc4818 = true + if yyj4907 >= len(yyv4907) { + yyv4907 = append(yyv4907, ResourceQuota{}) // var yyz4907 ResourceQuota + yyc4907 = true } - yyh4818.ElemContainerState(yyj4818) - if yyj4818 < len(yyv4818) { + yyh4907.ElemContainerState(yyj4907) + if yyj4907 < len(yyv4907) { if r.TryDecodeAsNil() { - yyv4818[yyj4818] = ResourceQuota{} + yyv4907[yyj4907] = ResourceQuota{} } else { - yyv4821 := &yyv4818[yyj4818] - yyv4821.CodecDecodeSelf(d) + yyv4910 := &yyv4907[yyj4907] + yyv4910.CodecDecodeSelf(d) } } else { @@ -61838,17 +63034,17 @@ func (x codecSelfer1234) decSliceResourceQuota(v *[]ResourceQuota, d *codec1978. } } - if yyj4818 < len(yyv4818) { - yyv4818 = yyv4818[:yyj4818] - yyc4818 = true - } else if yyj4818 == 0 && yyv4818 == nil { - yyv4818 = []ResourceQuota{} - yyc4818 = true + if yyj4907 < len(yyv4907) { + yyv4907 = yyv4907[:yyj4907] + yyc4907 = true + } else if yyj4907 == 0 && yyv4907 == nil { + yyv4907 = []ResourceQuota{} + yyc4907 = true } } - yyh4818.End() - if yyc4818 { - *v = yyv4818 + yyh4907.End() + if yyc4907 { + *v = yyv4907 } } @@ -61857,23 +63053,23 @@ func (x codecSelfer1234) encMapstringSliceuint8(v map[string][]uint8, e *codec19 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r r.EncodeMapStart(len(v)) - for yyk4822, yyv4822 := range v { + for yyk4911, yyv4911 := range v { z.EncSendContainerState(codecSelfer_containerMapKey1234) - yym4823 := z.EncBinary() - _ = yym4823 + yym4912 := z.EncBinary() + _ = yym4912 if false { } else { - r.EncodeString(codecSelferC_UTF81234, string(yyk4822)) + r.EncodeString(codecSelferC_UTF81234, string(yyk4911)) } z.EncSendContainerState(codecSelfer_containerMapValue1234) - if yyv4822 == nil { + if yyv4911 == nil { r.EncodeNil() } else { - yym4824 := z.EncBinary() - _ = yym4824 + yym4913 := z.EncBinary() + _ = yym4913 if false { } else { - r.EncodeStringBytes(codecSelferC_RAW1234, []byte(yyv4822)) + r.EncodeStringBytes(codecSelferC_RAW1234, []byte(yyv4911)) } } } @@ -61885,80 +63081,80 @@ func (x codecSelfer1234) decMapstringSliceuint8(v *map[string][]uint8, d *codec1 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - 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 + yyv4914 := *v + yyl4914 := r.ReadMapStart() + yybh4914 := z.DecBasicHandle() + if yyv4914 == nil { + yyrl4914, _ := z.DecInferLen(yyl4914, yybh4914.MaxInitLen, 40) + yyv4914 = make(map[string][]uint8, yyrl4914) + *v = yyv4914 } - var yymk4825 string - var yymv4825 []uint8 - var yymg4825 bool - if yybh4825.MapValueReset { - yymg4825 = true + var yymk4914 string + var yymv4914 []uint8 + var yymg4914 bool + if yybh4914.MapValueReset { + yymg4914 = true } - if yyl4825 > 0 { - for yyj4825 := 0; yyj4825 < yyl4825; yyj4825++ { + if yyl4914 > 0 { + for yyj4914 := 0; yyj4914 < yyl4914; yyj4914++ { z.DecSendContainerState(codecSelfer_containerMapKey1234) if r.TryDecodeAsNil() { - yymk4825 = "" + yymk4914 = "" } else { - yymk4825 = string(r.DecodeString()) + yymk4914 = string(r.DecodeString()) } - if yymg4825 { - yymv4825 = yyv4825[yymk4825] + if yymg4914 { + yymv4914 = yyv4914[yymk4914] } else { - yymv4825 = nil + yymv4914 = nil } z.DecSendContainerState(codecSelfer_containerMapValue1234) if r.TryDecodeAsNil() { - yymv4825 = nil + yymv4914 = nil } else { - yyv4827 := &yymv4825 - yym4828 := z.DecBinary() - _ = yym4828 + yyv4916 := &yymv4914 + yym4917 := z.DecBinary() + _ = yym4917 if false { } else { - *yyv4827 = r.DecodeBytes(*(*[]byte)(yyv4827), false, false) + *yyv4916 = r.DecodeBytes(*(*[]byte)(yyv4916), false, false) } } - if yyv4825 != nil { - yyv4825[yymk4825] = yymv4825 + if yyv4914 != nil { + yyv4914[yymk4914] = yymv4914 } } - } else if yyl4825 < 0 { - for yyj4825 := 0; !r.CheckBreak(); yyj4825++ { + } else if yyl4914 < 0 { + for yyj4914 := 0; !r.CheckBreak(); yyj4914++ { z.DecSendContainerState(codecSelfer_containerMapKey1234) if r.TryDecodeAsNil() { - yymk4825 = "" + yymk4914 = "" } else { - yymk4825 = string(r.DecodeString()) + yymk4914 = string(r.DecodeString()) } - if yymg4825 { - yymv4825 = yyv4825[yymk4825] + if yymg4914 { + yymv4914 = yyv4914[yymk4914] } else { - yymv4825 = nil + yymv4914 = nil } z.DecSendContainerState(codecSelfer_containerMapValue1234) if r.TryDecodeAsNil() { - yymv4825 = nil + yymv4914 = nil } else { - yyv4830 := &yymv4825 - yym4831 := z.DecBinary() - _ = yym4831 + yyv4919 := &yymv4914 + yym4920 := z.DecBinary() + _ = yym4920 if false { } else { - *yyv4830 = r.DecodeBytes(*(*[]byte)(yyv4830), false, false) + *yyv4919 = r.DecodeBytes(*(*[]byte)(yyv4919), false, false) } } - if yyv4825 != nil { - yyv4825[yymk4825] = yymv4825 + if yyv4914 != nil { + yyv4914[yymk4914] = yymv4914 } } } // else len==0: TODO: Should we clear map entries? @@ -61970,10 +63166,10 @@ func (x codecSelfer1234) encSliceSecret(v []Secret, e *codec1978.Encoder) { z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r r.EncodeArrayStart(len(v)) - for _, yyv4832 := range v { + for _, yyv4921 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy4833 := &yyv4832 - yy4833.CodecEncodeSelf(e) + yy4922 := &yyv4921 + yy4922.CodecEncodeSelf(e) } z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -61983,83 +63179,83 @@ func (x codecSelfer1234) decSliceSecret(v *[]Secret, d *codec1978.Decoder) { z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - 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 + yyv4923 := *v + yyh4923, yyl4923 := z.DecSliceHelperStart() + var yyc4923 bool + if yyl4923 == 0 { + if yyv4923 == nil { + yyv4923 = []Secret{} + yyc4923 = true + } else if len(yyv4923) != 0 { + yyv4923 = yyv4923[:0] + yyc4923 = true } - } else if yyl4834 > 0 { - var yyrr4834, yyrl4834 int - var yyrt4834 bool - if yyl4834 > cap(yyv4834) { + } else if yyl4923 > 0 { + var yyrr4923, yyrl4923 int + var yyrt4923 bool + if yyl4923 > cap(yyv4923) { - yyrg4834 := len(yyv4834) > 0 - yyv24834 := yyv4834 - yyrl4834, yyrt4834 = z.DecInferLen(yyl4834, z.DecBasicHandle().MaxInitLen, 280) - if yyrt4834 { - if yyrl4834 <= cap(yyv4834) { - yyv4834 = yyv4834[:yyrl4834] + yyrg4923 := len(yyv4923) > 0 + yyv24923 := yyv4923 + yyrl4923, yyrt4923 = z.DecInferLen(yyl4923, z.DecBasicHandle().MaxInitLen, 280) + if yyrt4923 { + if yyrl4923 <= cap(yyv4923) { + yyv4923 = yyv4923[:yyrl4923] } else { - yyv4834 = make([]Secret, yyrl4834) + yyv4923 = make([]Secret, yyrl4923) } } else { - yyv4834 = make([]Secret, yyrl4834) + yyv4923 = make([]Secret, yyrl4923) } - yyc4834 = true - yyrr4834 = len(yyv4834) - if yyrg4834 { - copy(yyv4834, yyv24834) + yyc4923 = true + yyrr4923 = len(yyv4923) + if yyrg4923 { + copy(yyv4923, yyv24923) } - } else if yyl4834 != len(yyv4834) { - yyv4834 = yyv4834[:yyl4834] - yyc4834 = true + } else if yyl4923 != len(yyv4923) { + yyv4923 = yyv4923[:yyl4923] + yyc4923 = true } - yyj4834 := 0 - for ; yyj4834 < yyrr4834; yyj4834++ { - yyh4834.ElemContainerState(yyj4834) + yyj4923 := 0 + for ; yyj4923 < yyrr4923; yyj4923++ { + yyh4923.ElemContainerState(yyj4923) if r.TryDecodeAsNil() { - yyv4834[yyj4834] = Secret{} + yyv4923[yyj4923] = Secret{} } else { - yyv4835 := &yyv4834[yyj4834] - yyv4835.CodecDecodeSelf(d) + yyv4924 := &yyv4923[yyj4923] + yyv4924.CodecDecodeSelf(d) } } - if yyrt4834 { - for ; yyj4834 < yyl4834; yyj4834++ { - yyv4834 = append(yyv4834, Secret{}) - yyh4834.ElemContainerState(yyj4834) + if yyrt4923 { + for ; yyj4923 < yyl4923; yyj4923++ { + yyv4923 = append(yyv4923, Secret{}) + yyh4923.ElemContainerState(yyj4923) if r.TryDecodeAsNil() { - yyv4834[yyj4834] = Secret{} + yyv4923[yyj4923] = Secret{} } else { - yyv4836 := &yyv4834[yyj4834] - yyv4836.CodecDecodeSelf(d) + yyv4925 := &yyv4923[yyj4923] + yyv4925.CodecDecodeSelf(d) } } } } else { - yyj4834 := 0 - for ; !r.CheckBreak(); yyj4834++ { + yyj4923 := 0 + for ; !r.CheckBreak(); yyj4923++ { - if yyj4834 >= len(yyv4834) { - yyv4834 = append(yyv4834, Secret{}) // var yyz4834 Secret - yyc4834 = true + if yyj4923 >= len(yyv4923) { + yyv4923 = append(yyv4923, Secret{}) // var yyz4923 Secret + yyc4923 = true } - yyh4834.ElemContainerState(yyj4834) - if yyj4834 < len(yyv4834) { + yyh4923.ElemContainerState(yyj4923) + if yyj4923 < len(yyv4923) { if r.TryDecodeAsNil() { - yyv4834[yyj4834] = Secret{} + yyv4923[yyj4923] = Secret{} } else { - yyv4837 := &yyv4834[yyj4834] - yyv4837.CodecDecodeSelf(d) + yyv4926 := &yyv4923[yyj4923] + yyv4926.CodecDecodeSelf(d) } } else { @@ -62067,17 +63263,17 @@ func (x codecSelfer1234) decSliceSecret(v *[]Secret, d *codec1978.Decoder) { } } - if yyj4834 < len(yyv4834) { - yyv4834 = yyv4834[:yyj4834] - yyc4834 = true - } else if yyj4834 == 0 && yyv4834 == nil { - yyv4834 = []Secret{} - yyc4834 = true + if yyj4923 < len(yyv4923) { + yyv4923 = yyv4923[:yyj4923] + yyc4923 = true + } else if yyj4923 == 0 && yyv4923 == nil { + yyv4923 = []Secret{} + yyc4923 = true } } - yyh4834.End() - if yyc4834 { - *v = yyv4834 + yyh4923.End() + if yyc4923 { + *v = yyv4923 } } @@ -62086,10 +63282,10 @@ func (x codecSelfer1234) encSliceConfigMap(v []ConfigMap, e *codec1978.Encoder) z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r r.EncodeArrayStart(len(v)) - for _, yyv4838 := range v { + for _, yyv4927 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy4839 := &yyv4838 - yy4839.CodecEncodeSelf(e) + yy4928 := &yyv4927 + yy4928.CodecEncodeSelf(e) } z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -62099,83 +63295,83 @@ func (x codecSelfer1234) decSliceConfigMap(v *[]ConfigMap, d *codec1978.Decoder) z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - 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 + yyv4929 := *v + yyh4929, yyl4929 := z.DecSliceHelperStart() + var yyc4929 bool + if yyl4929 == 0 { + if yyv4929 == nil { + yyv4929 = []ConfigMap{} + yyc4929 = true + } else if len(yyv4929) != 0 { + yyv4929 = yyv4929[:0] + yyc4929 = true } - } else if yyl4840 > 0 { - var yyrr4840, yyrl4840 int - var yyrt4840 bool - if yyl4840 > cap(yyv4840) { + } else if yyl4929 > 0 { + var yyrr4929, yyrl4929 int + var yyrt4929 bool + if yyl4929 > cap(yyv4929) { - yyrg4840 := len(yyv4840) > 0 - yyv24840 := yyv4840 - yyrl4840, yyrt4840 = z.DecInferLen(yyl4840, z.DecBasicHandle().MaxInitLen, 264) - if yyrt4840 { - if yyrl4840 <= cap(yyv4840) { - yyv4840 = yyv4840[:yyrl4840] + yyrg4929 := len(yyv4929) > 0 + yyv24929 := yyv4929 + yyrl4929, yyrt4929 = z.DecInferLen(yyl4929, z.DecBasicHandle().MaxInitLen, 264) + if yyrt4929 { + if yyrl4929 <= cap(yyv4929) { + yyv4929 = yyv4929[:yyrl4929] } else { - yyv4840 = make([]ConfigMap, yyrl4840) + yyv4929 = make([]ConfigMap, yyrl4929) } } else { - yyv4840 = make([]ConfigMap, yyrl4840) + yyv4929 = make([]ConfigMap, yyrl4929) } - yyc4840 = true - yyrr4840 = len(yyv4840) - if yyrg4840 { - copy(yyv4840, yyv24840) + yyc4929 = true + yyrr4929 = len(yyv4929) + if yyrg4929 { + copy(yyv4929, yyv24929) } - } else if yyl4840 != len(yyv4840) { - yyv4840 = yyv4840[:yyl4840] - yyc4840 = true + } else if yyl4929 != len(yyv4929) { + yyv4929 = yyv4929[:yyl4929] + yyc4929 = true } - yyj4840 := 0 - for ; yyj4840 < yyrr4840; yyj4840++ { - yyh4840.ElemContainerState(yyj4840) + yyj4929 := 0 + for ; yyj4929 < yyrr4929; yyj4929++ { + yyh4929.ElemContainerState(yyj4929) if r.TryDecodeAsNil() { - yyv4840[yyj4840] = ConfigMap{} + yyv4929[yyj4929] = ConfigMap{} } else { - yyv4841 := &yyv4840[yyj4840] - yyv4841.CodecDecodeSelf(d) + yyv4930 := &yyv4929[yyj4929] + yyv4930.CodecDecodeSelf(d) } } - if yyrt4840 { - for ; yyj4840 < yyl4840; yyj4840++ { - yyv4840 = append(yyv4840, ConfigMap{}) - yyh4840.ElemContainerState(yyj4840) + if yyrt4929 { + for ; yyj4929 < yyl4929; yyj4929++ { + yyv4929 = append(yyv4929, ConfigMap{}) + yyh4929.ElemContainerState(yyj4929) if r.TryDecodeAsNil() { - yyv4840[yyj4840] = ConfigMap{} + yyv4929[yyj4929] = ConfigMap{} } else { - yyv4842 := &yyv4840[yyj4840] - yyv4842.CodecDecodeSelf(d) + yyv4931 := &yyv4929[yyj4929] + yyv4931.CodecDecodeSelf(d) } } } } else { - yyj4840 := 0 - for ; !r.CheckBreak(); yyj4840++ { + yyj4929 := 0 + for ; !r.CheckBreak(); yyj4929++ { - if yyj4840 >= len(yyv4840) { - yyv4840 = append(yyv4840, ConfigMap{}) // var yyz4840 ConfigMap - yyc4840 = true + if yyj4929 >= len(yyv4929) { + yyv4929 = append(yyv4929, ConfigMap{}) // var yyz4929 ConfigMap + yyc4929 = true } - yyh4840.ElemContainerState(yyj4840) - if yyj4840 < len(yyv4840) { + yyh4929.ElemContainerState(yyj4929) + if yyj4929 < len(yyv4929) { if r.TryDecodeAsNil() { - yyv4840[yyj4840] = ConfigMap{} + yyv4929[yyj4929] = ConfigMap{} } else { - yyv4843 := &yyv4840[yyj4840] - yyv4843.CodecDecodeSelf(d) + yyv4932 := &yyv4929[yyj4929] + yyv4932.CodecDecodeSelf(d) } } else { @@ -62183,17 +63379,17 @@ func (x codecSelfer1234) decSliceConfigMap(v *[]ConfigMap, d *codec1978.Decoder) } } - if yyj4840 < len(yyv4840) { - yyv4840 = yyv4840[:yyj4840] - yyc4840 = true - } else if yyj4840 == 0 && yyv4840 == nil { - yyv4840 = []ConfigMap{} - yyc4840 = true + if yyj4929 < len(yyv4929) { + yyv4929 = yyv4929[:yyj4929] + yyc4929 = true + } else if yyj4929 == 0 && yyv4929 == nil { + yyv4929 = []ConfigMap{} + yyc4929 = true } } - yyh4840.End() - if yyc4840 { - *v = yyv4840 + yyh4929.End() + if yyc4929 { + *v = yyv4929 } } @@ -62202,10 +63398,10 @@ func (x codecSelfer1234) encSliceComponentCondition(v []ComponentCondition, e *c z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r r.EncodeArrayStart(len(v)) - for _, yyv4844 := range v { + for _, yyv4933 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy4845 := &yyv4844 - yy4845.CodecEncodeSelf(e) + yy4934 := &yyv4933 + yy4934.CodecEncodeSelf(e) } z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -62215,83 +63411,83 @@ func (x codecSelfer1234) decSliceComponentCondition(v *[]ComponentCondition, d * z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - 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 + yyv4935 := *v + yyh4935, yyl4935 := z.DecSliceHelperStart() + var yyc4935 bool + if yyl4935 == 0 { + if yyv4935 == nil { + yyv4935 = []ComponentCondition{} + yyc4935 = true + } else if len(yyv4935) != 0 { + yyv4935 = yyv4935[:0] + yyc4935 = true } - } else if yyl4846 > 0 { - var yyrr4846, yyrl4846 int - var yyrt4846 bool - if yyl4846 > cap(yyv4846) { + } else if yyl4935 > 0 { + var yyrr4935, yyrl4935 int + var yyrt4935 bool + if yyl4935 > cap(yyv4935) { - yyrg4846 := len(yyv4846) > 0 - yyv24846 := yyv4846 - yyrl4846, yyrt4846 = z.DecInferLen(yyl4846, z.DecBasicHandle().MaxInitLen, 64) - if yyrt4846 { - if yyrl4846 <= cap(yyv4846) { - yyv4846 = yyv4846[:yyrl4846] + yyrg4935 := len(yyv4935) > 0 + yyv24935 := yyv4935 + yyrl4935, yyrt4935 = z.DecInferLen(yyl4935, z.DecBasicHandle().MaxInitLen, 64) + if yyrt4935 { + if yyrl4935 <= cap(yyv4935) { + yyv4935 = yyv4935[:yyrl4935] } else { - yyv4846 = make([]ComponentCondition, yyrl4846) + yyv4935 = make([]ComponentCondition, yyrl4935) } } else { - yyv4846 = make([]ComponentCondition, yyrl4846) + yyv4935 = make([]ComponentCondition, yyrl4935) } - yyc4846 = true - yyrr4846 = len(yyv4846) - if yyrg4846 { - copy(yyv4846, yyv24846) + yyc4935 = true + yyrr4935 = len(yyv4935) + if yyrg4935 { + copy(yyv4935, yyv24935) } - } else if yyl4846 != len(yyv4846) { - yyv4846 = yyv4846[:yyl4846] - yyc4846 = true + } else if yyl4935 != len(yyv4935) { + yyv4935 = yyv4935[:yyl4935] + yyc4935 = true } - yyj4846 := 0 - for ; yyj4846 < yyrr4846; yyj4846++ { - yyh4846.ElemContainerState(yyj4846) + yyj4935 := 0 + for ; yyj4935 < yyrr4935; yyj4935++ { + yyh4935.ElemContainerState(yyj4935) if r.TryDecodeAsNil() { - yyv4846[yyj4846] = ComponentCondition{} + yyv4935[yyj4935] = ComponentCondition{} } else { - yyv4847 := &yyv4846[yyj4846] - yyv4847.CodecDecodeSelf(d) + yyv4936 := &yyv4935[yyj4935] + yyv4936.CodecDecodeSelf(d) } } - if yyrt4846 { - for ; yyj4846 < yyl4846; yyj4846++ { - yyv4846 = append(yyv4846, ComponentCondition{}) - yyh4846.ElemContainerState(yyj4846) + if yyrt4935 { + for ; yyj4935 < yyl4935; yyj4935++ { + yyv4935 = append(yyv4935, ComponentCondition{}) + yyh4935.ElemContainerState(yyj4935) if r.TryDecodeAsNil() { - yyv4846[yyj4846] = ComponentCondition{} + yyv4935[yyj4935] = ComponentCondition{} } else { - yyv4848 := &yyv4846[yyj4846] - yyv4848.CodecDecodeSelf(d) + yyv4937 := &yyv4935[yyj4935] + yyv4937.CodecDecodeSelf(d) } } } } else { - yyj4846 := 0 - for ; !r.CheckBreak(); yyj4846++ { + yyj4935 := 0 + for ; !r.CheckBreak(); yyj4935++ { - if yyj4846 >= len(yyv4846) { - yyv4846 = append(yyv4846, ComponentCondition{}) // var yyz4846 ComponentCondition - yyc4846 = true + if yyj4935 >= len(yyv4935) { + yyv4935 = append(yyv4935, ComponentCondition{}) // var yyz4935 ComponentCondition + yyc4935 = true } - yyh4846.ElemContainerState(yyj4846) - if yyj4846 < len(yyv4846) { + yyh4935.ElemContainerState(yyj4935) + if yyj4935 < len(yyv4935) { if r.TryDecodeAsNil() { - yyv4846[yyj4846] = ComponentCondition{} + yyv4935[yyj4935] = ComponentCondition{} } else { - yyv4849 := &yyv4846[yyj4846] - yyv4849.CodecDecodeSelf(d) + yyv4938 := &yyv4935[yyj4935] + yyv4938.CodecDecodeSelf(d) } } else { @@ -62299,17 +63495,17 @@ func (x codecSelfer1234) decSliceComponentCondition(v *[]ComponentCondition, d * } } - if yyj4846 < len(yyv4846) { - yyv4846 = yyv4846[:yyj4846] - yyc4846 = true - } else if yyj4846 == 0 && yyv4846 == nil { - yyv4846 = []ComponentCondition{} - yyc4846 = true + if yyj4935 < len(yyv4935) { + yyv4935 = yyv4935[:yyj4935] + yyc4935 = true + } else if yyj4935 == 0 && yyv4935 == nil { + yyv4935 = []ComponentCondition{} + yyc4935 = true } } - yyh4846.End() - if yyc4846 { - *v = yyv4846 + yyh4935.End() + if yyc4935 { + *v = yyv4935 } } @@ -62318,10 +63514,10 @@ func (x codecSelfer1234) encSliceComponentStatus(v []ComponentStatus, e *codec19 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r r.EncodeArrayStart(len(v)) - for _, yyv4850 := range v { + for _, yyv4939 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy4851 := &yyv4850 - yy4851.CodecEncodeSelf(e) + yy4940 := &yyv4939 + yy4940.CodecEncodeSelf(e) } z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -62331,83 +63527,83 @@ func (x codecSelfer1234) decSliceComponentStatus(v *[]ComponentStatus, d *codec1 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - 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 + yyv4941 := *v + yyh4941, yyl4941 := z.DecSliceHelperStart() + var yyc4941 bool + if yyl4941 == 0 { + if yyv4941 == nil { + yyv4941 = []ComponentStatus{} + yyc4941 = true + } else if len(yyv4941) != 0 { + yyv4941 = yyv4941[:0] + yyc4941 = true } - } else if yyl4852 > 0 { - var yyrr4852, yyrl4852 int - var yyrt4852 bool - if yyl4852 > cap(yyv4852) { + } else if yyl4941 > 0 { + var yyrr4941, yyrl4941 int + var yyrt4941 bool + if yyl4941 > cap(yyv4941) { - yyrg4852 := len(yyv4852) > 0 - yyv24852 := yyv4852 - yyrl4852, yyrt4852 = z.DecInferLen(yyl4852, z.DecBasicHandle().MaxInitLen, 280) - if yyrt4852 { - if yyrl4852 <= cap(yyv4852) { - yyv4852 = yyv4852[:yyrl4852] + yyrg4941 := len(yyv4941) > 0 + yyv24941 := yyv4941 + yyrl4941, yyrt4941 = z.DecInferLen(yyl4941, z.DecBasicHandle().MaxInitLen, 280) + if yyrt4941 { + if yyrl4941 <= cap(yyv4941) { + yyv4941 = yyv4941[:yyrl4941] } else { - yyv4852 = make([]ComponentStatus, yyrl4852) + yyv4941 = make([]ComponentStatus, yyrl4941) } } else { - yyv4852 = make([]ComponentStatus, yyrl4852) + yyv4941 = make([]ComponentStatus, yyrl4941) } - yyc4852 = true - yyrr4852 = len(yyv4852) - if yyrg4852 { - copy(yyv4852, yyv24852) + yyc4941 = true + yyrr4941 = len(yyv4941) + if yyrg4941 { + copy(yyv4941, yyv24941) } - } else if yyl4852 != len(yyv4852) { - yyv4852 = yyv4852[:yyl4852] - yyc4852 = true + } else if yyl4941 != len(yyv4941) { + yyv4941 = yyv4941[:yyl4941] + yyc4941 = true } - yyj4852 := 0 - for ; yyj4852 < yyrr4852; yyj4852++ { - yyh4852.ElemContainerState(yyj4852) + yyj4941 := 0 + for ; yyj4941 < yyrr4941; yyj4941++ { + yyh4941.ElemContainerState(yyj4941) if r.TryDecodeAsNil() { - yyv4852[yyj4852] = ComponentStatus{} + yyv4941[yyj4941] = ComponentStatus{} } else { - yyv4853 := &yyv4852[yyj4852] - yyv4853.CodecDecodeSelf(d) + yyv4942 := &yyv4941[yyj4941] + yyv4942.CodecDecodeSelf(d) } } - if yyrt4852 { - for ; yyj4852 < yyl4852; yyj4852++ { - yyv4852 = append(yyv4852, ComponentStatus{}) - yyh4852.ElemContainerState(yyj4852) + if yyrt4941 { + for ; yyj4941 < yyl4941; yyj4941++ { + yyv4941 = append(yyv4941, ComponentStatus{}) + yyh4941.ElemContainerState(yyj4941) if r.TryDecodeAsNil() { - yyv4852[yyj4852] = ComponentStatus{} + yyv4941[yyj4941] = ComponentStatus{} } else { - yyv4854 := &yyv4852[yyj4852] - yyv4854.CodecDecodeSelf(d) + yyv4943 := &yyv4941[yyj4941] + yyv4943.CodecDecodeSelf(d) } } } } else { - yyj4852 := 0 - for ; !r.CheckBreak(); yyj4852++ { + yyj4941 := 0 + for ; !r.CheckBreak(); yyj4941++ { - if yyj4852 >= len(yyv4852) { - yyv4852 = append(yyv4852, ComponentStatus{}) // var yyz4852 ComponentStatus - yyc4852 = true + if yyj4941 >= len(yyv4941) { + yyv4941 = append(yyv4941, ComponentStatus{}) // var yyz4941 ComponentStatus + yyc4941 = true } - yyh4852.ElemContainerState(yyj4852) - if yyj4852 < len(yyv4852) { + yyh4941.ElemContainerState(yyj4941) + if yyj4941 < len(yyv4941) { if r.TryDecodeAsNil() { - yyv4852[yyj4852] = ComponentStatus{} + yyv4941[yyj4941] = ComponentStatus{} } else { - yyv4855 := &yyv4852[yyj4852] - yyv4855.CodecDecodeSelf(d) + yyv4944 := &yyv4941[yyj4941] + yyv4944.CodecDecodeSelf(d) } } else { @@ -62415,16 +63611,16 @@ func (x codecSelfer1234) decSliceComponentStatus(v *[]ComponentStatus, d *codec1 } } - if yyj4852 < len(yyv4852) { - yyv4852 = yyv4852[:yyj4852] - yyc4852 = true - } else if yyj4852 == 0 && yyv4852 == nil { - yyv4852 = []ComponentStatus{} - yyc4852 = true + if yyj4941 < len(yyv4941) { + yyv4941 = yyv4941[:yyj4941] + yyc4941 = true + } else if yyj4941 == 0 && yyv4941 == nil { + yyv4941 = []ComponentStatus{} + yyc4941 = true } } - yyh4852.End() - if yyc4852 { - *v = yyv4852 + yyh4941.End() + if yyc4941 { + *v = yyv4941 } } diff --git a/vendor/k8s.io/client-go/1.5/pkg/api/types.go b/vendor/k8s.io/client-go/pkg/api/types.go similarity index 90% rename from vendor/k8s.io/client-go/1.5/pkg/api/types.go rename to vendor/k8s.io/client-go/pkg/api/types.go index 94ae87d76..a4eaeb9d5 100644 --- a/vendor/k8s.io/client-go/1.5/pkg/api/types.go +++ b/vendor/k8s.io/client-go/pkg/api/types.go @@ -17,13 +17,13 @@ limitations under the License. package api import ( - "k8s.io/client-go/1.5/pkg/api/resource" - "k8s.io/client-go/1.5/pkg/api/unversioned" - "k8s.io/client-go/1.5/pkg/fields" - "k8s.io/client-go/1.5/pkg/labels" - "k8s.io/client-go/1.5/pkg/runtime" - "k8s.io/client-go/1.5/pkg/types" - "k8s.io/client-go/1.5/pkg/util/intstr" + "k8s.io/client-go/pkg/api/resource" + "k8s.io/client-go/pkg/api/unversioned" + "k8s.io/client-go/pkg/fields" + "k8s.io/client-go/pkg/labels" + "k8s.io/client-go/pkg/runtime" + "k8s.io/client-go/pkg/types" + "k8s.io/client-go/pkg/util/intstr" ) // Common string formats @@ -62,6 +62,7 @@ type ObjectMeta struct { // 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. + // +optional Name string `json:"name,omitempty"` // GenerateName indicates that the name should be made unique by the server prior to persisting @@ -75,50 +76,67 @@ type ObjectMeta struct { // 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). + // +optional 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. + // +optional Namespace string `json:"namespace,omitempty"` // SelfLink is a URL representing this object. + // +optional 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. + // +optional 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. + // +optional ResourceVersion string `json:"resourceVersion,omitempty"` // A sequence number representing a specific generation of the desired state. // Populated by the system. Read-only. + // +optional 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. + // +optional CreationTimestamp unversioned.Time `json:"creationTimestamp,omitempty"` - // DeletionTimestamp is the time after which this resource will be deleted. This + // 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 + // directly settable by a client. The resource is expected to 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. + // signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard + // termination signal (SIGKILL) to the container and after cleanup, remove the pod from the + // API. In the presence of network partitions, this object may still exist after this + // timestamp, until an administrator or automated process can determine the resource is + // fully terminated. + // 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 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. + // +optional DeletionGracePeriodSeconds *int64 `json:"deletionGracePeriodSeconds,omitempty"` // Labels are key value pairs that may be used to scope and select individual resources. @@ -130,29 +148,34 @@ 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. + // +optional 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. + // +optional 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. + // +optional 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. + // +optional 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. + // +optional ClusterName string `json:"clusterName,omitempty"` } @@ -177,6 +200,7 @@ type Volume struct { // 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. + // +optional VolumeSource `json:",inline,omitempty"` } @@ -190,59 +214,83 @@ type VolumeSource struct { // --- // TODO(jonesdl) We need to restrict who can use host directory mounts and who can/can not // mount host directories as read/write. + // +optional HostPath *HostPathVolumeSource `json:"hostPath,omitempty"` // EmptyDir represents a temporary directory that shares a pod's lifetime. + // +optional 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. + // +optional 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. + // +optional AWSElasticBlockStore *AWSElasticBlockStoreVolumeSource `json:"awsElasticBlockStore,omitempty"` // GitRepo represents a git repository at a particular revision. + // +optional GitRepo *GitRepoVolumeSource `json:"gitRepo,omitempty"` // Secret represents a secret that should populate this volume. + // +optional Secret *SecretVolumeSource `json:"secret,omitempty"` // NFS represents an NFS mount on the host that shares a pod's lifetime + // +optional 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. + // +optional ISCSI *ISCSIVolumeSource `json:"iscsi,omitempty"` // Glusterfs represents a Glusterfs mount on the host that shares a pod's lifetime + // +optional Glusterfs *GlusterfsVolumeSource `json:"glusterfs,omitempty"` // PersistentVolumeClaimVolumeSource represents a reference to a PersistentVolumeClaim in the same namespace + // +optional PersistentVolumeClaim *PersistentVolumeClaimVolumeSource `json:"persistentVolumeClaim,omitempty"` // RBD represents a Rados Block Device mount on the host that shares a pod's lifetime + // +optional RBD *RBDVolumeSource `json:"rbd,omitempty"` // Quobyte represents a Quobyte mount on the host that shares a pod's lifetime + // +optional Quobyte *QuobyteVolumeSource `json:"quobyte,omitempty"` // FlexVolume represents a generic volume resource that is // provisioned/attached using an exec based plugin. This is an alpha feature and may change in future. + // +optional FlexVolume *FlexVolumeSource `json:"flexVolume,omitempty"` // Cinder represents a cinder volume attached and mounted on kubelets host machine + // +optional Cinder *CinderVolumeSource `json:"cinder,omitempty"` // CephFS represents a Cephfs mount on the host that shares a pod's lifetime + // +optional 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 + // +optional Flocker *FlockerVolumeSource `json:"flocker,omitempty"` // DownwardAPI represents metadata about the pod that should populate this volume + // +optional 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. + // +optional FC *FCVolumeSource `json:"fc,omitempty"` // AzureFile represents an Azure File Service mount on the host and bind mount to the pod. + // +optional AzureFile *AzureFileVolumeSource `json:"azureFile,omitempty"` // ConfigMap represents a configMap that should populate this volume + // +optional ConfigMap *ConfigMapVolumeSource `json:"configMap,omitempty"` // VsphereVolume represents a vSphere volume attached and mounted on kubelets host machine + // +optional VsphereVolume *VsphereVirtualDiskVolumeSource `json:"vsphereVolume,omitempty"` // AzureDisk represents an Azure Data Disk mount on the host and bind mount to the pod. + // +optional AzureDisk *AzureDiskVolumeSource `json:"azureDisk,omitempty"` + // PhotonPersistentDisk represents a Photon Controller persistent disk attached and mounted on kubelets host machine + PhotonPersistentDisk *PhotonPersistentDiskVolumeSource `json:"photonPersistentDisk,omitempty"` } // Similar to VolumeSource but meant for the administrator who creates PVs. @@ -250,43 +298,61 @@ type VolumeSource struct { type PersistentVolumeSource struct { // GCEPersistentDisk represents a GCE Disk resource that is attached to a // kubelet's host machine and then exposed to the pod. + // +optional 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. + // +optional 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. + // +optional HostPath *HostPathVolumeSource `json:"hostPath,omitempty"` // Glusterfs represents a Glusterfs volume that is attached to a host and exposed to the pod + // +optional Glusterfs *GlusterfsVolumeSource `json:"glusterfs,omitempty"` // NFS represents an NFS mount on the host that shares a pod's lifetime + // +optional NFS *NFSVolumeSource `json:"nfs,omitempty"` // RBD represents a Rados Block Device mount on the host that shares a pod's lifetime + // +optional RBD *RBDVolumeSource `json:"rbd,omitempty"` // Quobyte represents a Quobyte mount on the host that shares a pod's lifetime + // +optional 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. + // +optional ISCSI *ISCSIVolumeSource `json:"iscsi,omitempty"` // FlexVolume represents a generic volume resource that is // provisioned/attached using an exec based plugin. This is an alpha feature and may change in future. + // +optional FlexVolume *FlexVolumeSource `json:"flexVolume,omitempty"` // Cinder represents a cinder volume attached and mounted on kubelets host machine + // +optional Cinder *CinderVolumeSource `json:"cinder,omitempty"` // CephFS represents a Ceph FS mount on the host that shares a pod's lifetime + // +optional 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. + // +optional 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 + // +optional Flocker *FlockerVolumeSource `json:"flocker,omitempty"` // AzureFile represents an Azure File Service mount on the host and bind mount to the pod. + // +optional AzureFile *AzureFileVolumeSource `json:"azureFile,omitempty"` // VsphereVolume represents a vSphere volume attached and mounted on kubelets host machine + // +optional VsphereVolume *VsphereVirtualDiskVolumeSource `json:"vsphereVolume,omitempty"` // AzureDisk represents an Azure Data Disk mount on the host and bind mount to the pod. + // +optional AzureDisk *AzureDiskVolumeSource `json:"azureDisk,omitempty"` + // PhotonPersistentDisk represents a Photon Controller persistent disk attached and mounted on kubelets host machine + PhotonPersistentDisk *PhotonPersistentDiskVolumeSource `json:"photonPersistentDisk,omitempty"` } type PersistentVolumeClaimVolumeSource struct { @@ -294,6 +360,7 @@ type PersistentVolumeClaimVolumeSource struct { ClaimName string `json:"claimName"` // Optional: Defaults to false (read/write). ReadOnly here // will force the ReadOnly setting in VolumeMounts + // +optional ReadOnly bool `json:"readOnly,omitempty"` } @@ -302,12 +369,15 @@ type PersistentVolumeClaimVolumeSource struct { type PersistentVolume struct { unversioned.TypeMeta `json:",inline"` - ObjectMeta `json:"metadata,omitempty"` + // +optional + ObjectMeta `json:"metadata,omitempty"` //Spec defines a persistent volume owned by the cluster + // +optional Spec PersistentVolumeSpec `json:"spec,omitempty"` // Status represents the current information about persistent volume. + // +optional Status PersistentVolumeStatus `json:"status,omitempty"` } @@ -317,14 +387,17 @@ type PersistentVolumeSpec struct { // Source represents the location and type of a volume to mount. PersistentVolumeSource `json:",inline"` // AccessModes contains all ways the volume can be mounted + // +optional 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. + // +optional ClaimRef *ObjectReference `json:"claimRef,omitempty"` // Optional: what happens to a persistent volume when released from its claim. + // +optional PersistentVolumeReclaimPolicy PersistentVolumeReclaimPolicy `json:"persistentVolumeReclaimPolicy,omitempty"` } @@ -345,15 +418,19 @@ const ( type PersistentVolumeStatus struct { // Phase indicates if a volume is available, bound to a claim, or released by a claim + // +optional Phase PersistentVolumePhase `json:"phase,omitempty"` // A human-readable message indicating details about why the volume is in this state. + // +optional 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 + // +optional Reason string `json:"reason,omitempty"` } type PersistentVolumeList struct { unversioned.TypeMeta `json:",inline"` + // +optional unversioned.ListMeta `json:"metadata,omitempty"` Items []PersistentVolume `json:"items"` } @@ -363,17 +440,21 @@ type PersistentVolumeList struct { // PersistentVolumeClaim is a user's request for and claim to a persistent volume type PersistentVolumeClaim struct { unversioned.TypeMeta `json:",inline"` - ObjectMeta `json:"metadata,omitempty"` + // +optional + ObjectMeta `json:"metadata,omitempty"` // Spec defines the volume requested by a pod author + // +optional Spec PersistentVolumeClaimSpec `json:"spec,omitempty"` // Status represents the current information about a claim + // +optional Status PersistentVolumeClaimStatus `json:"status,omitempty"` } type PersistentVolumeClaimList struct { unversioned.TypeMeta `json:",inline"` + // +optional unversioned.ListMeta `json:"metadata,omitempty"` Items []PersistentVolumeClaim `json:"items"` } @@ -382,23 +463,30 @@ type PersistentVolumeClaimList struct { // and allows a Source for provider-specific attributes type PersistentVolumeClaimSpec struct { // Contains the types of access modes required + // +optional AccessModes []PersistentVolumeAccessMode `json:"accessModes,omitempty"` // A label query over volumes to consider for binding. This selector is // ignored when VolumeName is set + // +optional Selector *unversioned.LabelSelector `json:"selector,omitempty"` // Resources represents the minimum resources required + // +optional 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 + // +optional VolumeName string `json:"volumeName,omitempty"` } type PersistentVolumeClaimStatus struct { // Phase represents the current phase of PersistentVolumeClaim + // +optional Phase PersistentVolumeClaimPhase `json:"phase,omitempty"` // AccessModes contains all ways the volume backing the PVC can be mounted + // +optional AccessModes []PersistentVolumeAccessMode `json:"accessModes,omitempty"` // Represents the actual resources of the underlying volume + // +optional Capacity ResourceList `json:"capacity,omitempty"` } @@ -459,6 +547,7 @@ type EmptyDirVolumeSource struct { // 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. + // +optional Medium StorageMedium `json:"medium,omitempty"` } @@ -493,13 +582,16 @@ type GCEPersistentDiskVolumeSource struct { // 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 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. + // +optional Partition int32 `json:"partition,omitempty"` // Optional: Defaults to false (read/write). ReadOnly here will force // the ReadOnly setting in VolumeMounts. + // +optional ReadOnly bool `json:"readOnly,omitempty"` } @@ -509,20 +601,26 @@ type GCEPersistentDiskVolumeSource struct { 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) + // +optional TargetPortal string `json:"targetPortal,omitempty"` // Required: target iSCSI Qualified Name + // +optional IQN string `json:"iqn,omitempty"` // Required: iSCSI target lun number + // +optional Lun int32 `json:"lun,omitempty"` // Optional: Defaults to 'default' (tcp). iSCSI interface name that uses an iSCSI transport. + // +optional 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 + // +optional FSType string `json:"fsType,omitempty"` // Optional: Defaults to false (read/write). ReadOnly here will force // the ReadOnly setting in VolumeMounts. + // +optional ReadOnly bool `json:"readOnly,omitempty"` } @@ -538,9 +636,11 @@ type FCVolumeSource struct { // 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 FSType string `json:"fsType,omitempty"` // Optional: Defaults to false (read/write). ReadOnly here will force // the ReadOnly setting in VolumeMounts. + // +optional ReadOnly bool `json:"readOnly,omitempty"` } @@ -552,17 +652,21 @@ type FlexVolumeSource struct { // 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 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. + // +optional SecretRef *LocalObjectReference `json:"secretRef,omitempty"` // Optional: Defaults to false (read/write). ReadOnly here will force // the ReadOnly setting in VolumeMounts. + // +optional ReadOnly bool `json:"readOnly,omitempty"` // Optional: Extra driver options if any. + // +optional Options map[string]string `json:"options,omitempty"` } @@ -579,13 +683,16 @@ type AWSElasticBlockStoreVolumeSource struct { // 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 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. + // +optional Partition int32 `json:"partition,omitempty"` // Optional: Defaults to false (read/write). ReadOnly here will force // the ReadOnly setting in VolumeMounts. + // +optional ReadOnly bool `json:"readOnly,omitempty"` } @@ -596,11 +703,13 @@ type GitRepoVolumeSource struct { // Repository URL Repository string `json:"repository"` // Commit hash, this is optional + // +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. + // +optional Directory string `json:"directory,omitempty"` // TODO: Consider credentials here. } @@ -612,6 +721,7 @@ type GitRepoVolumeSource struct { // Secret volumes support ownership management and SELinux relabeling. type SecretVolumeSource struct { // Name of the secret in the pod's namespace to use. + // +optional 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 @@ -620,12 +730,14 @@ type SecretVolumeSource struct { // 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 '..'. + // +optional 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. + // +optional DefaultMode *int32 `json:"defaultMode,omitempty"` } @@ -640,6 +752,7 @@ type NFSVolumeSource struct { // Optional: Defaults to false (read/write). ReadOnly here will force // the NFS export to be mounted with read-only permissions + // +optional ReadOnly bool `json:"readOnly,omitempty"` } @@ -656,14 +769,17 @@ type QuobyteVolumeSource struct { // Defaults to false (read/write). ReadOnly here will force // the Quobyte to be mounted with read-only permissions + // +optional ReadOnly bool `json:"readOnly,omitempty"` // User to map volume access to // Defaults to the root user + // +optional User string `json:"user,omitempty"` // Group to map volume access to // Default is no group + // +optional Group string `json:"group,omitempty"` } @@ -678,6 +794,7 @@ type GlusterfsVolumeSource struct { // Optional: Defaults to false (read/write). ReadOnly here will force // the Glusterfs to be mounted with read-only permissions + // +optional ReadOnly bool `json:"readOnly,omitempty"` } @@ -692,17 +809,23 @@ type RBDVolumeSource struct { // 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 FSType string `json:"fsType,omitempty"` // Optional: RadosPool is the rados pool name,default is rbd + // +optional RBDPool string `json:"pool,omitempty"` // Optional: RBDUser is the rados user name, default is admin + // +optional RadosUser string `json:"user,omitempty"` // Optional: Keyring is the path to key ring for RBDUser, default is /etc/ceph/keyring + // +optional Keyring string `json:"keyring,omitempty"` // Optional: SecretRef is name of the authentication secret for RBDUser, default is nil. + // +optional SecretRef *LocalObjectReference `json:"secretRef,omitempty"` // Optional: Defaults to false (read/write). ReadOnly here will force // the ReadOnly setting in VolumeMounts. + // +optional ReadOnly bool `json:"readOnly,omitempty"` } @@ -716,9 +839,11 @@ type CinderVolumeSource struct { // 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 FSType string `json:"fsType,omitempty"` // Optional: Defaults to false (read/write). ReadOnly here will force // the ReadOnly setting in VolumeMounts. + // +optional ReadOnly bool `json:"readOnly,omitempty"` } @@ -728,35 +853,48 @@ 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 / + // +optional Path string `json:"path,omitempty"` // Optional: User is the rados user name, default is admin + // +optional User string `json:"user,omitempty"` // Optional: SecretFile is the path to key ring for User, default is /etc/ceph/user.secret + // +optional SecretFile string `json:"secretFile,omitempty"` // Optional: SecretRef is reference to the authentication secret for User, default is empty. + // +optional SecretRef *LocalObjectReference `json:"secretRef,omitempty"` // Optional: Defaults to false (read/write). ReadOnly here will force // the ReadOnly setting in VolumeMounts. + // +optional ReadOnly bool `json:"readOnly,omitempty"` } // Represents a Flocker volume mounted by the Flocker agent. +// One and only one of datasetName and datasetUUID should be set. // 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"` + // Name of the dataset stored as metadata -> name on the dataset for Flocker + // should be considered as deprecated + // +optional + DatasetName string `json:"datasetName,omitempty"` + // UUID of the dataset. This is unique identifier of a Flocker dataset + // +optional + DatasetUUID string `json:"datasetUUID,omitempty"` } // 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 + // +optional 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. + // +optional DefaultMode *int32 `json:"defaultMode,omitempty"` } @@ -765,14 +903,17 @@ 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. + // +optional 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. + // +optional 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. + // +optional Mode *int32 `json:"mode,omitempty"` } @@ -784,6 +925,7 @@ type AzureFileVolumeSource struct { ShareName string `json:"shareName"` // Defaults to false (read/write). ReadOnly here will force // the ReadOnly setting in VolumeMounts. + // +optional ReadOnly bool `json:"readOnly,omitempty"` } @@ -794,6 +936,17 @@ type VsphereVirtualDiskVolumeSource struct { // 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 + FSType string `json:"fsType,omitempty"` +} + +// Represents a Photon Controller persistent disk resource. +type PhotonPersistentDiskVolumeSource struct { + // ID that identifies Photon Controller persistent disk + PdID string `json:"pdID"` + // 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"` } @@ -812,13 +965,16 @@ type AzureDiskVolumeSource struct { // The URI the the data disk in the blob storage DataDiskURI string `json:"diskURI"` // Host Caching mode: None, Read Only, Read Write. + // +optional 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. + // +optional FSType *string `json:"fsType,omitempty"` // Defaults to false (read/write). ReadOnly here will force // the ReadOnly setting in VolumeMounts. + // +optional ReadOnly *bool `json:"readOnly,omitempty"` } @@ -837,12 +993,14 @@ type ConfigMapVolumeSource struct { // 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 '..'. + // +optional 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. + // +optional DefaultMode *int32 `json:"defaultMode,omitempty"` } @@ -860,6 +1018,7 @@ type KeyToPath struct { // 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 Mode *int32 `json:"mode,omitempty"` } @@ -867,15 +1026,19 @@ type KeyToPath struct { type ContainerPort struct { // Optional: If specified, this must be an IANA_SVC_NAME Each named port // in a pod must have a unique name. + // +optional 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. + // +optional 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". + // +optional Protocol Protocol `json:"protocol,omitempty"` // Optional: What host IP to bind the external port to. + // +optional HostIP string `json:"hostIP,omitempty"` } @@ -884,11 +1047,13 @@ type VolumeMount struct { // Required: This must match the Name of a Volume [above]. Name string `json:"name"` // Optional: Defaults to false (read-write). + // +optional 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). + // +optional SubPath string `json:"subPath,omitempty"` } @@ -904,8 +1069,10 @@ type EnvVar struct { // syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped // references will never be expanded, regardless of whether the variable // exists or not. + // +optional Value string `json:"value,omitempty"` // Optional: Specifies a source the value of this var should come from. + // +optional ValueFrom *EnvVarSource `json:"valueFrom,omitempty"` } @@ -914,13 +1081,17 @@ type EnvVar struct { type EnvVarSource struct { // Selects a field of the pod: supports metadata.name, metadata.namespace, metadata.labels, metadata.annotations, // spec.nodeName, spec.serviceAccountName, status.podIP. + // +optional 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. + // +optional ResourceFieldRef *ResourceFieldSelector `json:"resourceFieldRef,omitempty"` // Selects a key of a ConfigMap. + // +optional ConfigMapKeyRef *ConfigMapKeySelector `json:"configMapKeyRef,omitempty"` // Selects a key of a secret in the pod's namespace. + // +optional SecretKeyRef *SecretKeySelector `json:"secretKeyRef,omitempty"` } @@ -937,10 +1108,12 @@ type ObjectFieldSelector struct { // ResourceFieldSelector represents container resources (cpu, memory) and their output format type ResourceFieldSelector struct { // Container name: required for volumes, optional for env vars + // +optional ContainerName string `json:"containerName,omitempty"` // Required: resource to select Resource string `json:"resource"` // Specifies the output format of the exposed resources, defaults to "1" + // +optional Divisor resource.Quantity `json:"divisor,omitempty"` } @@ -971,15 +1144,20 @@ type HTTPHeader struct { // HTTPGetAction describes an action based on HTTP Get requests. type HTTPGetAction struct { // Optional: Path to access on the HTTP server. + // +optional Path string `json:"path,omitempty"` // Required: Name or number of the port to access on the container. + // +optional 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. + // +optional Host string `json:"host,omitempty"` // Optional: Scheme to use for connecting to the host, defaults to HTTP. + // +optional Scheme URIScheme `json:"scheme,omitempty"` // Optional: Custom headers to set in the request. HTTP allows repeated headers. + // +optional HTTPHeaders []HTTPHeader `json:"httpHeaders,omitempty"` } @@ -996,6 +1174,7 @@ const ( // TCPSocketAction describes an action based on opening a socket type TCPSocketAction struct { // Required: Port to connect to. + // +optional Port intstr.IntOrString `json:"port,omitempty"` } @@ -1005,6 +1184,7 @@ type ExecAction struct { // 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. + // +optional Command []string `json:"command,omitempty"` } @@ -1014,15 +1194,20 @@ 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. + // +optional InitialDelaySeconds int32 `json:"initialDelaySeconds,omitempty"` // Length of time before health checking times out. In seconds. + // +optional TimeoutSeconds int32 `json:"timeoutSeconds,omitempty"` // How often (in seconds) to perform the probe. + // +optional PeriodSeconds int32 `json:"periodSeconds,omitempty"` // Minimum consecutive successes for the probe to be considered successful after having failed. // Must be 1 for liveness. + // +optional SuccessThreshold int32 `json:"successThreshold,omitempty"` // Minimum consecutive failures for the probe to be considered failed after having succeeded. + // +optional FailureThreshold int32 `json:"failureThreshold,omitempty"` } @@ -1044,18 +1229,22 @@ type Capability string // Capabilities represent POSIX capabilities that can be added or removed to a running container. type Capabilities struct { // Added capabilities + // +optional Add []Capability `json:"add,omitempty"` // Removed capabilities + // +optional Drop []Capability `json:"drop,omitempty"` } // ResourceRequirements describes the compute resource requirements. type ResourceRequirements struct { // Limits describes the maximum amount of compute resources allowed. + // +optional 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 + // +optional Requests ResourceList `json:"requests,omitempty"` } @@ -1071,36 +1260,51 @@ type Container struct { // 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. + // +optional 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. + // +optional 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"` + // +optional + WorkingDir string `json:"workingDir,omitempty"` + // +optional + Ports []ContainerPort `json:"ports,omitempty"` + // +optional + 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"` + // +optional + Resources ResourceRequirements `json:"resources,omitempty"` + // +optional + VolumeMounts []VolumeMount `json:"volumeMounts,omitempty"` + // +optional + LivenessProbe *Probe `json:"livenessProbe,omitempty"` + // +optional + ReadinessProbe *Probe `json:"readinessProbe,omitempty"` + // +optional + Lifecycle *Lifecycle `json:"lifecycle,omitempty"` // Required. + // +optional 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. + // +optional 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"` + // +optional + Stdin bool `json:"stdin,omitempty"` + // +optional StdinOnce bool `json:"stdinOnce,omitempty"` - TTY bool `json:"tty,omitempty"` + // +optional + TTY bool `json:"tty,omitempty"` } // Handler defines a specific action that should be taken @@ -1108,11 +1312,14 @@ type Container struct { type Handler struct { // One and only one of the following should be specified. // Exec specifies the action to take. + // +optional Exec *ExecAction `json:"exec,omitempty"` // HTTPGet specifies the http request to perform. + // +optional HTTPGet *HTTPGetAction `json:"httpGet,omitempty"` // TCPSocket specifies an action involving a TCP port. // TODO: implement a realistic TCP lifecycle hook + // +optional TCPSocket *TCPSocketAction `json:"tcpSocket,omitempty"` } @@ -1122,9 +1329,11 @@ type Handler struct { type Lifecycle struct { // PostStart is called immediately after a container is created. If the handler fails, the container // is terminated and restarted. + // +optional 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. + // +optional PreStop *Handler `json:"preStop,omitempty"` } @@ -1144,38 +1353,52 @@ const ( type ContainerStateWaiting struct { // A brief CamelCase string indicating details about why the container is in waiting state. + // +optional Reason string `json:"reason,omitempty"` // A human-readable message indicating details about why the container is in waiting state. + // +optional Message string `json:"message,omitempty"` } type ContainerStateRunning struct { + // +optional 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"` + ExitCode int32 `json:"exitCode"` + // +optional + Signal int32 `json:"signal,omitempty"` + // +optional + Reason string `json:"reason,omitempty"` + // +optional + Message string `json:"message,omitempty"` + // +optional + StartedAt unversioned.Time `json:"startedAt,omitempty"` + // +optional + FinishedAt unversioned.Time `json:"finishedAt,omitempty"` + // +optional + 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"` + // +optional + Waiting *ContainerStateWaiting `json:"waiting,omitempty"` + // +optional + Running *ContainerStateRunning `json:"running,omitempty"` + // +optional 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"` + Name string `json:"name"` + // +optional + State ContainerState `json:"state,omitempty"` + // +optional LastTerminationState ContainerState `json:"lastState,omitempty"` // Ready specifies whether the container has passed its readiness check. Ready bool `json:"ready"` @@ -1184,7 +1407,8 @@ type ContainerStatus struct { RestartCount int32 `json:"restartCount"` Image string `json:"image"` ImageID string `json:"imageID"` - ContainerID string `json:"containerID,omitempty"` + // +optional + ContainerID string `json:"containerID,omitempty"` } // PodPhase is a label for the condition of a pod at the current time. @@ -1221,15 +1445,22 @@ const ( PodReady PodConditionType = "Ready" // PodInitialized means that all init containers in the pod have started successfully. PodInitialized PodConditionType = "Initialized" + // PodReasonUnschedulable reason in PodScheduled PodCondition means that the scheduler + // can't schedule the pod right now, for example due to insufficient resources in the cluster. + PodReasonUnschedulable = "Unschedulable" ) type PodCondition struct { - Type PodConditionType `json:"type"` - Status ConditionStatus `json:"status"` - LastProbeTime unversioned.Time `json:"lastProbeTime,omitempty"` + Type PodConditionType `json:"type"` + Status ConditionStatus `json:"status"` + // +optional + LastProbeTime unversioned.Time `json:"lastProbeTime,omitempty"` + // +optional LastTransitionTime unversioned.Time `json:"lastTransitionTime,omitempty"` - Reason string `json:"reason,omitempty"` - Message string `json:"message,omitempty"` + // +optional + Reason string `json:"reason,omitempty"` + // +optional + Message string `json:"message,omitempty"` } // RestartPolicy describes how the container should be restarted. @@ -1247,6 +1478,7 @@ const ( // PodList is a list of Pods. type PodList struct { unversioned.TypeMeta `json:",inline"` + // +optional unversioned.ListMeta `json:"metadata,omitempty"` Items []Pod `json:"items"` @@ -1293,6 +1525,7 @@ type NodeSelectorRequirement struct { // 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. + // +optional Values []string `json:"values,omitempty"` } @@ -1312,10 +1545,13 @@ const ( // Affinity is a group of affinity scheduling rules. type Affinity struct { // Describes node affinity scheduling rules for the pod. + // +optional 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)). + // +optional 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)). + // +optional PodAntiAffinity *PodAntiAffinity `json:"podAntiAffinity,omitempty"` } @@ -1329,6 +1565,7 @@ type PodAffinity struct { // 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. + // +optional // 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. @@ -1337,6 +1574,7 @@ type PodAffinity struct { // 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. + // +optional 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 @@ -1347,6 +1585,7 @@ type PodAffinity struct { // 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. + // +optional PreferredDuringSchedulingIgnoredDuringExecution []WeightedPodAffinityTerm `json:"preferredDuringSchedulingIgnoredDuringExecution,omitempty"` } @@ -1360,6 +1599,7 @@ type PodAntiAffinity struct { // 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. + // +optional // 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. @@ -1368,6 +1608,7 @@ type PodAntiAffinity struct { // 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. + // +optional 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 @@ -1378,6 +1619,7 @@ type PodAntiAffinity struct { // 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. + // +optional PreferredDuringSchedulingIgnoredDuringExecution []WeightedPodAffinityTerm `json:"preferredDuringSchedulingIgnoredDuringExecution,omitempty"` } @@ -1385,7 +1627,7 @@ type PodAntiAffinity struct { type WeightedPodAffinityTerm struct { // weight associated with matching the corresponding podAffinityTerm, // in the range 1-100. - Weight int `json:"weight"` + Weight int32 `json:"weight"` // Required. A pod affinity term, associated with the corresponding weight. PodAffinityTerm PodAffinityTerm `json:"podAffinityTerm"` } @@ -1398,6 +1640,7 @@ type WeightedPodAffinityTerm struct { // a pod of the set of pods is running. type PodAffinityTerm struct { // A label query over a set of resources, in this case pods. + // +optional 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" @@ -1411,6 +1654,7 @@ type PodAffinityTerm struct { // 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 TopologyKey string `json:"topologyKey,omitempty"` } @@ -1422,6 +1666,7 @@ type NodeAffinity struct { // 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. + // +optional // RequiredDuringSchedulingRequiredDuringExecution *NodeSelector `json:"requiredDuringSchedulingRequiredDuringExecution,omitempty"` // If the affinity requirements specified by this field are not met at @@ -1429,6 +1674,7 @@ type NodeAffinity struct { // 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 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 @@ -1439,6 +1685,7 @@ type NodeAffinity struct { // 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. + // +optional PreferredDuringSchedulingIgnoredDuringExecution []PreferredSchedulingTerm `json:"preferredDuringSchedulingIgnoredDuringExecution,omitempty"` } @@ -1457,6 +1704,7 @@ 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. + // +optional Value string `json:"value,omitempty"` // Required. The effect of the taint on pods // that do not tolerate the taint. @@ -1494,17 +1742,21 @@ const ( // the triple using the matching operator . type Toleration struct { // Required. Key is the taint key that the toleration applies to. + // +optional 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. + // +optional 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. + // +optional 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. + // +optional 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. @@ -1524,7 +1776,8 @@ type PodSpec struct { // List of initialization containers belonging to the pod. InitContainers []Container `json:"-"` // List of containers belonging to the pod. - Containers []Container `json:"containers"` + Containers []Container `json:"containers"` + // +optional 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. @@ -1532,13 +1785,17 @@ type PodSpec struct { // 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. + // +optional 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 + // +optional ActiveDeadlineSeconds *int64 `json:"activeDeadlineSeconds,omitempty"` // Required: Set DNS policy. + // +optional DNSPolicy DNSPolicy `json:"dnsPolicy,omitempty"` // NodeSelector is a selector which must be true for the pod to fit on a node + // +optional NodeSelector map[string]string `json:"nodeSelector,omitempty"` // ServiceAccountName is the name of the ServiceAccount to use to run this pod @@ -1548,19 +1805,24 @@ type PodSpec struct { // 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 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. + // +optional 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. + // +optional 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. + // +optional 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. + // +optional Subdomain string `json:"subdomain,omitempty"` } @@ -1580,26 +1842,31 @@ type PodSecurityContext struct { // used must be specified. // Optional: Default to false // +k8s:conversion-gen=false + // +optional HostNetwork bool `json:"hostNetwork,omitempty"` // Use the host's pid namespace. // Optional: Default to false. // +k8s:conversion-gen=false + // +optional HostPID bool `json:"hostPID,omitempty"` // Use the host's ipc namespace. // Optional: Default to false. // +k8s:conversion-gen=false + // +optional 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. + // +optional 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. + // +optional 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 @@ -1607,10 +1874,12 @@ type PodSecurityContext struct { // 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 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. + // +optional 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 @@ -1621,45 +1890,56 @@ type PodSecurityContext struct { // 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 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"` + // +optional + Phase PodPhase `json:"phase,omitempty"` + // +optional Conditions []PodCondition `json:"conditions,omitempty"` // A human readable message indicating details about why the pod is in this state. + // +optional Message string `json:"message,omitempty"` // A brief CamelCase message indicating details about why the pod is in this state. e.g. 'OutOfDisk' + // +optional Reason string `json:"reason,omitempty"` + // +optional HostIP string `json:"hostIP,omitempty"` - PodIP string `json:"podIP,omitempty"` + // +optional + 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. + // +optional 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 + // More info: http://kubernetes.io/docs/user-guide/pod-states#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. + // +optional 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"` + // +optional + ObjectMeta `json:"metadata,omitempty"` // Status represents the current information about a pod. This data may not be up // to date. + // +optional Status PodStatus `json:"status,omitempty"` } @@ -1668,22 +1948,27 @@ type PodStatusResult struct { // 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"` + // +optional + ObjectMeta `json:"metadata,omitempty"` // Spec defines the behavior of a pod. + // +optional Spec PodSpec `json:"spec,omitempty"` // Status represents the current information about a pod. This data may not be up // to date. + // +optional 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. + // +optional ObjectMeta `json:"metadata,omitempty"` // Spec defines the behavior of a pod. + // +optional Spec PodSpec `json:"spec,omitempty"` } @@ -1692,15 +1977,18 @@ type PodTemplateSpec struct { // PodTemplate describes a template for creating copies of a predefined pod. type PodTemplate struct { unversioned.TypeMeta `json:",inline"` - ObjectMeta `json:"metadata,omitempty"` + // +optional + ObjectMeta `json:"metadata,omitempty"` // Template defines the pods that will be created from this pod template + // +optional Template PodTemplateSpec `json:"template,omitempty"` } // PodTemplateList is a list of PodTemplates. type PodTemplateList struct { unversioned.TypeMeta `json:",inline"` + // +optional unversioned.ListMeta `json:"metadata,omitempty"` Items []PodTemplate `json:"items"` @@ -1713,17 +2001,25 @@ type ReplicationControllerSpec struct { // Replicas is the number of desired replicas. Replicas int32 `json:"replicas"` + // 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) + // +optional + MinReadySeconds int32 `json:"minReadySeconds,omitempty"` + // 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 + // +optional //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. + // +optional Template *PodTemplateSpec `json:"template,omitempty"` } @@ -1734,13 +2030,51 @@ type ReplicationControllerStatus struct { Replicas int32 `json:"replicas"` // The number of pods that have labels matching the labels of the pod template of the replication controller. + // +optional FullyLabeledReplicas int32 `json:"fullyLabeledReplicas,omitempty"` // The number of ready replicas for this replication controller. + // +optional ReadyReplicas int32 `json:"readyReplicas,omitempty"` + // The number of available replicas (ready for at least minReadySeconds) for this replication controller. + // +optional + AvailableReplicas int32 `json:"availableReplicas,omitempty"` + // ObservedGeneration is the most recent generation observed by the controller. + // +optional ObservedGeneration int64 `json:"observedGeneration,omitempty"` + + // Represents the latest available observations of a replication controller's current state. + // +optional + Conditions []ReplicationControllerCondition `json:"conditions,omitempty" patchStrategy:"merge" patchMergeKey:"type"` +} + +type ReplicationControllerConditionType string + +// These are valid conditions of a replication controller. +const ( + // ReplicationControllerReplicaFailure is added in a replication controller when one of its pods + // fails to be created due to insufficient quota, limit ranges, pod security policy, node selectors, + // etc. or deleted due to kubelet being down or finalizers are failing. + ReplicationControllerReplicaFailure ReplicationControllerConditionType = "ReplicaFailure" +) + +// ReplicationControllerCondition describes the state of a replication controller at a certain point. +type ReplicationControllerCondition struct { + // Type of replication controller condition. + Type ReplicationControllerConditionType `json:"type"` + // Status of the condition, one of True, False, Unknown. + Status ConditionStatus `json:"status"` + // The last time the condition transitioned from one status to another. + // +optional + LastTransitionTime unversioned.Time `json:"lastTransitionTime,omitempty"` + // The reason for the condition's last transition. + // +optional + Reason string `json:"reason,omitempty"` + // A human readable message indicating details about the transition. + // +optional + Message string `json:"message,omitempty"` } // +genclient=true @@ -1748,19 +2082,23 @@ type ReplicationControllerStatus struct { // ReplicationController represents the configuration of a replication controller. type ReplicationController struct { unversioned.TypeMeta `json:",inline"` - ObjectMeta `json:"metadata,omitempty"` + // +optional + ObjectMeta `json:"metadata,omitempty"` // Spec defines the desired behavior of this replication controller. + // +optional 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. + // +optional Status ReplicationControllerStatus `json:"status,omitempty"` } // ReplicationControllerList is a collection of replication controllers. type ReplicationControllerList struct { unversioned.TypeMeta `json:",inline"` + // +optional unversioned.ListMeta `json:"metadata,omitempty"` Items []ReplicationController `json:"items"` @@ -1775,6 +2113,7 @@ const ( // ServiceList holds a list of services. type ServiceList struct { unversioned.TypeMeta `json:",inline"` + // +optional unversioned.ListMeta `json:"metadata,omitempty"` Items []Service `json:"items"` @@ -1818,6 +2157,7 @@ const ( type ServiceStatus struct { // LoadBalancer contains the current status of the load-balancer, // if one is present. + // +optional LoadBalancer LoadBalancerStatus `json:"loadBalancer,omitempty"` } @@ -1825,6 +2165,7 @@ type ServiceStatus struct { 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. + // +optional Ingress []LoadBalancerIngress `json:"ingress,omitempty"` } @@ -1833,10 +2174,12 @@ type LoadBalancerStatus struct { type LoadBalancerIngress struct { // IP is set for load-balancer ingress points that are IP based // (typically GCE or OpenStack load-balancers) + // +optional IP string `json:"ip,omitempty"` // Hostname is set for load-balancer ingress points that are DNS based // (typically AWS load-balancers) + // +optional Hostname string `json:"hostname,omitempty"` } @@ -1855,7 +2198,8 @@ type ServiceSpec struct { // "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 + // More info: http://kubernetes.io/docs/user-guide/services#overview + // +optional Type ServiceType `json:"type,omitempty"` // Required: The list of ports that are exposed by this service. @@ -1866,7 +2210,7 @@ type ServiceSpec struct { // 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 + // More info: http://kubernetes.io/docs/user-guide/services#overview Selector map[string]string `json:"selector"` // ClusterIP is the IP address of the service and is usually assigned @@ -1877,7 +2221,8 @@ type ServiceSpec struct { // 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 + // More info: http://kubernetes.io/docs/user-guide/services#virtual-ips-and-service-proxies + // +optional ClusterIP string `json:"clusterIP,omitempty"` // ExternalName is the external reference that kubedns or equivalent will @@ -1887,6 +2232,7 @@ type ServiceSpec struct { // ExternalIPs are used by external load balancers, or can be set by // users to handle external traffic that arrives at a node. + // +optional ExternalIPs []string `json:"externalIPs,omitempty"` // Only applies to Service Type: LoadBalancer @@ -1894,14 +2240,17 @@ type ServiceSpec struct { // 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 LoadBalancerIP string `json:"loadBalancerIP,omitempty"` // Optional: Supports "ClientIP" and "None". Used to maintain session affinity. + // +optional 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." + // +optional LoadBalancerSourceRanges []string `json:"loadBalancerSourceRanges,omitempty"` } @@ -1938,12 +2287,15 @@ type ServicePort struct { // will answer requests sent through the proxy. type Service struct { unversioned.TypeMeta `json:",inline"` - ObjectMeta `json:"metadata,omitempty"` + // +optional + ObjectMeta `json:"metadata,omitempty"` // Spec defines the behavior of a service. + // +optional Spec ServiceSpec `json:"spec,omitempty"` // Status represents the current status of a service. + // +optional Status ServiceStatus `json:"status,omitempty"` } @@ -1955,7 +2307,8 @@ type Service struct { // * a set of secrets type ServiceAccount struct { unversioned.TypeMeta `json:",inline"` - ObjectMeta `json:"metadata,omitempty"` + // +optional + ObjectMeta `json:"metadata,omitempty"` // Secrets is the list of secrets allowed to be used by pods running using this ServiceAccount Secrets []ObjectReference `json:"secrets"` @@ -1963,12 +2316,14 @@ type ServiceAccount struct { // 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. + // +optional ImagePullSecrets []LocalObjectReference `json:"imagePullSecrets,omitempty"` } // ServiceAccountList is a list of ServiceAccount objects type ServiceAccountList struct { unversioned.TypeMeta `json:",inline"` + // +optional unversioned.ListMeta `json:"metadata,omitempty"` Items []ServiceAccount `json:"items"` @@ -1990,7 +2345,8 @@ type ServiceAccountList struct { // ] type Endpoints struct { unversioned.TypeMeta `json:",inline"` - ObjectMeta `json:"metadata,omitempty"` + // +optional + ObjectMeta `json:"metadata,omitempty"` // The set of all endpoints is the union of all subsets. Subsets []EndpointSubset @@ -2021,8 +2377,10 @@ type EndpointAddress struct { IP string // Optional: Hostname of this endpoint // Meant to be used by DNS servers etc. + // +optional Hostname string `json:"hostname,omitempty"` // Optional: Node hosting this endpoint. This can be used to determine endpoints local to a node. + // +optional NodeName *string `json:"nodeName,omitempty"` // Optional: The kubernetes object related to the entry point. TargetRef *ObjectReference @@ -2044,6 +2402,7 @@ type EndpointPort struct { // EndpointsList is a list of endpoints. type EndpointsList struct { unversioned.TypeMeta `json:",inline"` + // +optional unversioned.ListMeta `json:"metadata,omitempty"` Items []Endpoints `json:"items"` @@ -2053,16 +2412,20 @@ type EndpointsList struct { 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. + // +optional PodCIDR string `json:"podCIDR,omitempty"` // External ID of the node assigned by some machine database (e.g. a cloud provider) + // +optional ExternalID string `json:"externalID,omitempty"` // ID of the node assigned by the cloud provider // Note: format is "://" + // +optional ProviderID string `json:"providerID,omitempty"` // Unschedulable controls node schedulability of new pods. By default node is schedulable. + // +optional Unschedulable bool `json:"unschedulable,omitempty"` } @@ -2081,6 +2444,7 @@ type DaemonEndpoint struct { // NodeDaemonEndpoints lists ports opened by daemons running on the Node. type NodeDaemonEndpoints struct { // Endpoint on which Kubelet is listening. + // +optional KubeletEndpoint DaemonEndpoint `json:"kubeletEndpoint,omitempty"` } @@ -2115,24 +2479,34 @@ type NodeSystemInfo struct { // NodeStatus is information about the current status of a node. type NodeStatus struct { // Capacity represents the total resources of a node. + // +optional Capacity ResourceList `json:"capacity,omitempty"` // Allocatable represents the resources of a node that are available for scheduling. + // +optional Allocatable ResourceList `json:"allocatable,omitempty"` // NodePhase is the current lifecycle phase of the node. + // +optional Phase NodePhase `json:"phase,omitempty"` // Conditions is an array of current node conditions. + // +optional Conditions []NodeCondition `json:"conditions,omitempty"` // Queried from cloud provider, if available. + // +optional Addresses []NodeAddress `json:"addresses,omitempty"` // Endpoints of daemons running on the Node. + // +optional DaemonEndpoints NodeDaemonEndpoints `json:"daemonEndpoints,omitempty"` // Set of ids/uuids to uniquely identify the node. + // +optional NodeInfo NodeSystemInfo `json:"nodeInfo,omitempty"` // List of container images on this node + // +optional Images []ContainerImage `json:"images,omitempty"` // List of attachable volumes in use (mounted) by the node. + // +optional VolumesInUse []UniqueVolumeName `json:"volumesInUse,omitempty"` // List of volumes that are attached to the node. + // +optional VolumesAttached []AttachedVolume `json:"volumesAttached,omitempty"` } @@ -2153,6 +2527,7 @@ type AttachedVolume struct { 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. + // +optional PreferAvoidPods []PreferAvoidPodsEntry `json:"preferAvoidPods,omitempty"` } @@ -2161,10 +2536,13 @@ type PreferAvoidPodsEntry struct { // The class of pods. PodSignature PodSignature `json:"podSignature"` // Time at which this entry was added to the list. + // +optional EvictionTime unversioned.Time `json:"evictionTime,omitempty"` // (brief) reason why this entry was added to the list. + // +optional Reason string `json:"reason,omitempty"` // Human readable message indicating why this entry was added to the list. + // +optional Message string `json:"message,omitempty"` } @@ -2172,6 +2550,7 @@ type PreferAvoidPodsEntry struct { // Exactly one field should be set. type PodSignature struct { // Reference to controller whose pods should avoid this node. + // +optional PodController *OwnerReference `json:"podController,omitempty"` } @@ -2180,6 +2559,7 @@ type ContainerImage struct { // Names by which this image is known. Names []string `json:"names"` // The size of the image in bytes. + // +optional SizeBytes int64 `json:"sizeBytes,omitempty"` } @@ -2215,12 +2595,16 @@ const ( ) 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 NodeConditionType `json:"type"` + Status ConditionStatus `json:"status"` + // +optional + LastHeartbeatTime unversioned.Time `json:"lastHeartbeatTime,omitempty"` + // +optional + LastTransitionTime unversioned.Time `json:"lastTransitionTime,omitempty"` + // +optional + Reason string `json:"reason,omitempty"` + // +optional + Message string `json:"message,omitempty"` } type NodeAddressType string @@ -2228,6 +2612,7 @@ type NodeAddressType string // These are valid address types of node. NodeLegacyHostIP is used to transit // from out-dated HostIP field to NodeAddress. const ( + // Deprecated: NodeLegacyHostIP will be removed in 1.7. NodeLegacyHostIP NodeAddressType = "LegacyHostIP" NodeHostName NodeAddressType = "Hostname" NodeExternalIP NodeAddressType = "ExternalIP" @@ -2243,6 +2628,7 @@ type NodeAddress struct { // see http://releases.k8s.io/HEAD/docs/design/resources.md for more details. type NodeResources struct { // Capacity represents the available resources of a node + // +optional Capacity ResourceList `json:"capacity,omitempty"` } @@ -2266,6 +2652,11 @@ const ( // Number of Pods that may be running on this Node: see ResourcePods ) +const ( + // Namespace prefix for opaque counted resources (alpha). + ResourceOpaqueIntPrefix = "pod.alpha.kubernetes.io/opaque-int-resource-" +) + // ResourceList is a set of (resource name, quantity) pairs. type ResourceList map[ResourceName]resource.Quantity @@ -2276,18 +2667,22 @@ type ResourceList map[ResourceName]resource.Quantity // The name of the node according to etcd is in ObjectMeta.Name. type Node struct { unversioned.TypeMeta `json:",inline"` - ObjectMeta `json:"metadata,omitempty"` + // +optional + ObjectMeta `json:"metadata,omitempty"` // Spec defines the behavior of a node. + // +optional Spec NodeSpec `json:"spec,omitempty"` // Status describes the current status of a Node + // +optional Status NodeStatus `json:"status,omitempty"` } // NodeList is a list of nodes. type NodeList struct { unversioned.TypeMeta `json:",inline"` + // +optional unversioned.ListMeta `json:"metadata,omitempty"` Items []Node `json:"items"` @@ -2310,6 +2705,7 @@ const ( // NamespaceStatus is information about the current status of a Namespace. type NamespaceStatus struct { // Phase is the current lifecycle phase of the namespace. + // +optional Phase NamespacePhase `json:"phase,omitempty"` } @@ -2330,18 +2726,22 @@ const ( // Use of multiple namespaces is optional type Namespace struct { unversioned.TypeMeta `json:",inline"` - ObjectMeta `json:"metadata,omitempty"` + // +optional + ObjectMeta `json:"metadata,omitempty"` // Spec defines the behavior of the Namespace. + // +optional Spec NamespaceSpec `json:"spec,omitempty"` // Status describes the current status of a Namespace + // +optional Status NamespaceStatus `json:"status,omitempty"` } // NamespaceList is a list of Namespaces. type NamespaceList struct { unversioned.TypeMeta `json:",inline"` + // +optional unversioned.ListMeta `json:"metadata,omitempty"` Items []Namespace `json:"items"` @@ -2351,6 +2751,7 @@ type NamespaceList struct { type Binding struct { unversioned.TypeMeta `json:",inline"` // ObjectMeta describes the object that is being bound. + // +optional ObjectMeta `json:"metadata,omitempty"` // Target is the object to bind to. @@ -2360,6 +2761,7 @@ type Binding struct { // Preconditions must be fulfilled before an operation (update, delete, etc.) is carried out. type Preconditions struct { // Specifies the target UID. + // +optional UID *types.UID `json:"uid,omitempty"` } @@ -2370,14 +2772,17 @@ type DeleteOptions struct { // 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. + // +optional GracePeriodSeconds *int64 `json:"gracePeriodSeconds,omitempty"` // Must be fulfilled before a deletion is carried out. If not possible, a 409 Conflict status will be // returned. + // +optional 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. + // +optional OrphanDependents *bool `json:"orphanDependents,omitempty"` } @@ -2449,18 +2854,23 @@ type PodAttachOptions struct { unversioned.TypeMeta `json:",inline"` // Stdin if true indicates that stdin is to be redirected for the attach call + // +optional Stdin bool `json:"stdin,omitempty"` // Stdout if true indicates that stdout is to be redirected for the attach call + // +optional Stdout bool `json:"stdout,omitempty"` // Stderr if true indicates that stderr is to be redirected for the attach call + // +optional Stderr bool `json:"stderr,omitempty"` // TTY if true indicates that a tty will be allocated for the attach call + // +optional TTY bool `json:"tty,omitempty"` // Container to attach to. + // +optional Container string `json:"container,omitempty"` } @@ -2525,23 +2935,30 @@ type OwnerReference struct { // 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 + // More info: http://kubernetes.io/docs/user-guide/identifiers#names Name string `json:"name"` // UID of the referent. - // More info: http://releases.k8s.io/HEAD/docs/user-guide/identifiers.md#uids + // More info: http://kubernetes.io/docs/user-guide/identifiers#uids UID types.UID `json:"uid"` // If true, this reference points to the managing controller. + // +optional 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 + Kind string `json:"kind,omitempty"` + // +optional + Namespace string `json:"namespace,omitempty"` + // +optional + Name string `json:"name,omitempty"` + // +optional + UID types.UID `json:"uid,omitempty"` + // +optional + APIVersion string `json:"apiVersion,omitempty"` + // +optional + 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 @@ -2551,6 +2968,7 @@ type ObjectReference struct { // 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 FieldPath string `json:"fieldPath,omitempty"` } @@ -2562,13 +2980,16 @@ type LocalObjectReference struct { type SerializedReference struct { unversioned.TypeMeta `json:",inline"` - Reference ObjectReference `json:"reference,omitempty"` + // +optional + Reference ObjectReference `json:"reference,omitempty"` } type EventSource struct { // Component from which the event is generated. + // +optional Component string `json:"component,omitempty"` // Node name on which the event is generated. + // +optional Host string `json:"host,omitempty"` } @@ -2586,40 +3007,50 @@ const ( // 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"` + // +optional + ObjectMeta `json:"metadata,omitempty"` // Required. The object that this event is about. + // +optional 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. + // +optional Reason string `json:"reason,omitempty"` // Optional. A human-readable description of the status of this operation. // TODO: decide on maximum length. + // +optional Message string `json:"message,omitempty"` // Optional. The component reporting this event. Should be a short machine understandable string. + // +optional Source EventSource `json:"source,omitempty"` // The time at which the event was first recorded. (Time of server receipt is in TypeMeta.) + // +optional FirstTimestamp unversioned.Time `json:"firstTimestamp,omitempty"` // The time at which the most recent occurrence of this event was recorded. + // +optional LastTimestamp unversioned.Time `json:"lastTimestamp,omitempty"` // The number of times this event has occurred. + // +optional Count int32 `json:"count,omitempty"` // Type of this event (Normal, Warning), new types could be added in the future. + // +optional Type string `json:"type,omitempty"` } // EventList is a list of events. type EventList struct { unversioned.TypeMeta `json:",inline"` + // +optional unversioned.ListMeta `json:"metadata,omitempty"` Items []Event `json:"items"` @@ -2628,6 +3059,7 @@ type EventList struct { // List holds a list of objects, which may not be known by the server. type List struct { unversioned.TypeMeta `json:",inline"` + // +optional unversioned.ListMeta `json:"metadata,omitempty"` Items []runtime.Object `json:"items"` @@ -2641,21 +3073,29 @@ const ( LimitTypePod LimitType = "Pod" // Limit that applies to all containers in a namespace LimitTypeContainer LimitType = "Container" + // Limit that applies to all persistent volume claims in a namespace + LimitTypePersistentVolumeClaim LimitType = "PersistentVolumeClaim" ) // 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 + // +optional Type LimitType `json:"type,omitempty"` // Max usage constraints on this kind by resource name + // +optional Max ResourceList `json:"max,omitempty"` // Min usage constraints on this kind by resource name + // +optional Min ResourceList `json:"min,omitempty"` // Default resource requirement limit value by resource name. + // +optional Default ResourceList `json:"default,omitempty"` // DefaultRequest resource requirement request value by resource name. + // +optional DefaultRequest ResourceList `json:"defaultRequest,omitempty"` // MaxLimitRequestRatio represents the max burst value for the named resource + // +optional MaxLimitRequestRatio ResourceList `json:"maxLimitRequestRatio,omitempty"` } @@ -2670,15 +3110,18 @@ type LimitRangeSpec struct { // LimitRange sets resource usage limits for each kind of resource in a Namespace type LimitRange struct { unversioned.TypeMeta `json:",inline"` - ObjectMeta `json:"metadata,omitempty"` + // +optional + ObjectMeta `json:"metadata,omitempty"` // Spec defines the limits enforced + // +optional Spec LimitRangeSpec `json:"spec,omitempty"` } // LimitRangeList is a list of LimitRange items. type LimitRangeList struct { unversioned.TypeMeta `json:",inline"` + // +optional unversioned.ListMeta `json:"metadata,omitempty"` // Items is a list of LimitRange objects @@ -2734,17 +3177,21 @@ const ( // 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 + // +optional 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. + // +optional 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 + // +optional Hard ResourceList `json:"hard,omitempty"` // Used is the current observed total usage of the resource in the namespace + // +optional Used ResourceList `json:"used,omitempty"` } @@ -2753,18 +3200,22 @@ type ResourceQuotaStatus struct { // ResourceQuota sets aggregate quota restrictions enforced per namespace type ResourceQuota struct { unversioned.TypeMeta `json:",inline"` - ObjectMeta `json:"metadata,omitempty"` + // +optional + ObjectMeta `json:"metadata,omitempty"` // Spec defines the desired quota + // +optional Spec ResourceQuotaSpec `json:"spec,omitempty"` // Status defines the actual enforced quota and its current usage + // +optional Status ResourceQuotaStatus `json:"status,omitempty"` } // ResourceQuotaList is a list of ResourceQuota items type ResourceQuotaList struct { unversioned.TypeMeta `json:",inline"` + // +optional unversioned.ListMeta `json:"metadata,omitempty"` // Items is a list of ResourceQuota objects @@ -2777,15 +3228,18 @@ type ResourceQuotaList struct { // the Data field must be less than MaxSecretSize bytes. type Secret struct { unversioned.TypeMeta `json:",inline"` - ObjectMeta `json:"metadata,omitempty"` + // +optional + 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. + // +optional Data map[string][]byte `json:"data,omitempty"` // Used to facilitate programmatic handling of secret data. + // +optional Type SecretType `json:"type,omitempty"` } @@ -2875,6 +3329,7 @@ const ( type SecretList struct { unversioned.TypeMeta `json:",inline"` + // +optional unversioned.ListMeta `json:"metadata,omitempty"` Items []Secret `json:"items"` @@ -2885,16 +3340,19 @@ type SecretList struct { // ConfigMap holds configuration data for components or applications to consume. type ConfigMap struct { unversioned.TypeMeta `json:",inline"` - ObjectMeta `json:"metadata,omitempty"` + // +optional + ObjectMeta `json:"metadata,omitempty"` // Data contains the configuration data. // Each key must be a valid DNS_SUBDOMAIN with an optional leading dot. + // +optional Data map[string]string `json:"data,omitempty"` } // ConfigMapList is a resource containing a list of ConfigMap objects. type ConfigMapList struct { unversioned.TypeMeta `json:",inline"` + // +optional unversioned.ListMeta `json:"metadata,omitempty"` // Items is the list of ConfigMaps. @@ -2962,10 +3420,12 @@ const ( ) type ComponentCondition struct { - Type ComponentConditionType `json:"type"` - Status ConditionStatus `json:"status"` - Message string `json:"message,omitempty"` - Error string `json:"error,omitempty"` + Type ComponentConditionType `json:"type"` + Status ConditionStatus `json:"status"` + // +optional + Message string `json:"message,omitempty"` + // +optional + Error string `json:"error,omitempty"` } // +genclient=true @@ -2974,13 +3434,16 @@ type ComponentCondition struct { // ComponentStatus (and ComponentStatusList) holds the cluster validation info. type ComponentStatus struct { unversioned.TypeMeta `json:",inline"` - ObjectMeta `json:"metadata,omitempty"` + // +optional + ObjectMeta `json:"metadata,omitempty"` + // +optional Conditions []ComponentCondition `json:"conditions,omitempty"` } type ComponentStatusList struct { unversioned.TypeMeta `json:",inline"` + // +optional unversioned.ListMeta `json:"metadata,omitempty"` Items []ComponentStatus `json:"items"` @@ -2992,20 +3455,24 @@ type ComponentStatusList struct { type SecurityContext struct { // The capabilities to add/drop when running containers. // Defaults to the default set of capabilities granted by the container runtime. + // +optional 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. + // +optional 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. + // +optional 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. + // +optional 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 @@ -3013,21 +3480,27 @@ type SecurityContext struct { // 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 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. + // +optional ReadOnlyRootFilesystem *bool `json:"readOnlyRootFilesystem,omitempty"` } // SELinuxOptions are the labels to be applied to the container. type SELinuxOptions struct { // SELinux user label + // +optional User string `json:"user,omitempty"` // SELinux role label + // +optional Role string `json:"role,omitempty"` // SELinux type label + // +optional Type string `json:"type,omitempty"` // SELinux level label. + // +optional Level string `json:"level,omitempty"` } @@ -3040,7 +3513,8 @@ type SELinuxOptions struct { // of the cluster, thus the object is less strongly typed than most. type RangeAllocation struct { unversioned.TypeMeta `json:",inline"` - ObjectMeta `json:"metadata,omitempty"` + // +optional + 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. diff --git a/vendor/k8s.io/client-go/1.5/pkg/api/unversioned/doc.go b/vendor/k8s.io/client-go/pkg/api/unversioned/doc.go similarity index 95% rename from vendor/k8s.io/client-go/1.5/pkg/api/unversioned/doc.go rename to vendor/k8s.io/client-go/pkg/api/unversioned/doc.go index 02566d2a5..720c686a9 100644 --- a/vendor/k8s.io/client-go/1.5/pkg/api/unversioned/doc.go +++ b/vendor/k8s.io/client-go/pkg/api/unversioned/doc.go @@ -16,5 +16,6 @@ limitations under the License. // +k8s:deepcopy-gen=package // +k8s:openapi-gen=true +// +k8s:defaulter-gen=TypeMeta package unversioned diff --git a/vendor/k8s.io/client-go/1.5/pkg/api/unversioned/duration.go b/vendor/k8s.io/client-go/pkg/api/unversioned/duration.go similarity index 100% rename from vendor/k8s.io/client-go/1.5/pkg/api/unversioned/duration.go rename to vendor/k8s.io/client-go/pkg/api/unversioned/duration.go diff --git a/vendor/k8s.io/client-go/1.5/pkg/api/unversioned/generated.pb.go b/vendor/k8s.io/client-go/pkg/api/unversioned/generated.pb.go similarity index 90% rename from vendor/k8s.io/client-go/1.5/pkg/api/unversioned/generated.pb.go rename to vendor/k8s.io/client-go/pkg/api/unversioned/generated.pb.go index a119204bc..1d903b065 100644 --- a/vendor/k8s.io/client-go/1.5/pkg/api/unversioned/generated.pb.go +++ b/vendor/k8s.io/client-go/pkg/api/unversioned/generated.pb.go @@ -1,5 +1,5 @@ /* -Copyright 2016 The Kubernetes Authors. +Copyright 2017 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -176,30 +176,30 @@ func (*TypeMeta) ProtoMessage() {} func (*TypeMeta) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{23} } func init() { - proto.RegisterType((*APIGroup)(nil), "k8s.io.client-go.1.5.pkg.api.unversioned.APIGroup") - proto.RegisterType((*APIGroupList)(nil), "k8s.io.client-go.1.5.pkg.api.unversioned.APIGroupList") - proto.RegisterType((*APIResource)(nil), "k8s.io.client-go.1.5.pkg.api.unversioned.APIResource") - proto.RegisterType((*APIResourceList)(nil), "k8s.io.client-go.1.5.pkg.api.unversioned.APIResourceList") - proto.RegisterType((*APIVersions)(nil), "k8s.io.client-go.1.5.pkg.api.unversioned.APIVersions") - proto.RegisterType((*Duration)(nil), "k8s.io.client-go.1.5.pkg.api.unversioned.Duration") - proto.RegisterType((*ExportOptions)(nil), "k8s.io.client-go.1.5.pkg.api.unversioned.ExportOptions") - proto.RegisterType((*GroupKind)(nil), "k8s.io.client-go.1.5.pkg.api.unversioned.GroupKind") - proto.RegisterType((*GroupResource)(nil), "k8s.io.client-go.1.5.pkg.api.unversioned.GroupResource") - proto.RegisterType((*GroupVersion)(nil), "k8s.io.client-go.1.5.pkg.api.unversioned.GroupVersion") - proto.RegisterType((*GroupVersionForDiscovery)(nil), "k8s.io.client-go.1.5.pkg.api.unversioned.GroupVersionForDiscovery") - proto.RegisterType((*GroupVersionKind)(nil), "k8s.io.client-go.1.5.pkg.api.unversioned.GroupVersionKind") - proto.RegisterType((*GroupVersionResource)(nil), "k8s.io.client-go.1.5.pkg.api.unversioned.GroupVersionResource") - proto.RegisterType((*LabelSelector)(nil), "k8s.io.client-go.1.5.pkg.api.unversioned.LabelSelector") - proto.RegisterType((*LabelSelectorRequirement)(nil), "k8s.io.client-go.1.5.pkg.api.unversioned.LabelSelectorRequirement") - proto.RegisterType((*ListMeta)(nil), "k8s.io.client-go.1.5.pkg.api.unversioned.ListMeta") - proto.RegisterType((*RootPaths)(nil), "k8s.io.client-go.1.5.pkg.api.unversioned.RootPaths") - proto.RegisterType((*ServerAddressByClientCIDR)(nil), "k8s.io.client-go.1.5.pkg.api.unversioned.ServerAddressByClientCIDR") - proto.RegisterType((*Status)(nil), "k8s.io.client-go.1.5.pkg.api.unversioned.Status") - proto.RegisterType((*StatusCause)(nil), "k8s.io.client-go.1.5.pkg.api.unversioned.StatusCause") - proto.RegisterType((*StatusDetails)(nil), "k8s.io.client-go.1.5.pkg.api.unversioned.StatusDetails") - proto.RegisterType((*Time)(nil), "k8s.io.client-go.1.5.pkg.api.unversioned.Time") - proto.RegisterType((*Timestamp)(nil), "k8s.io.client-go.1.5.pkg.api.unversioned.Timestamp") - proto.RegisterType((*TypeMeta)(nil), "k8s.io.client-go.1.5.pkg.api.unversioned.TypeMeta") + proto.RegisterType((*APIGroup)(nil), "k8s.io.client-go.pkg.api.unversioned.APIGroup") + proto.RegisterType((*APIGroupList)(nil), "k8s.io.client-go.pkg.api.unversioned.APIGroupList") + proto.RegisterType((*APIResource)(nil), "k8s.io.client-go.pkg.api.unversioned.APIResource") + proto.RegisterType((*APIResourceList)(nil), "k8s.io.client-go.pkg.api.unversioned.APIResourceList") + proto.RegisterType((*APIVersions)(nil), "k8s.io.client-go.pkg.api.unversioned.APIVersions") + proto.RegisterType((*Duration)(nil), "k8s.io.client-go.pkg.api.unversioned.Duration") + proto.RegisterType((*ExportOptions)(nil), "k8s.io.client-go.pkg.api.unversioned.ExportOptions") + proto.RegisterType((*GroupKind)(nil), "k8s.io.client-go.pkg.api.unversioned.GroupKind") + proto.RegisterType((*GroupResource)(nil), "k8s.io.client-go.pkg.api.unversioned.GroupResource") + proto.RegisterType((*GroupVersion)(nil), "k8s.io.client-go.pkg.api.unversioned.GroupVersion") + proto.RegisterType((*GroupVersionForDiscovery)(nil), "k8s.io.client-go.pkg.api.unversioned.GroupVersionForDiscovery") + proto.RegisterType((*GroupVersionKind)(nil), "k8s.io.client-go.pkg.api.unversioned.GroupVersionKind") + proto.RegisterType((*GroupVersionResource)(nil), "k8s.io.client-go.pkg.api.unversioned.GroupVersionResource") + proto.RegisterType((*LabelSelector)(nil), "k8s.io.client-go.pkg.api.unversioned.LabelSelector") + proto.RegisterType((*LabelSelectorRequirement)(nil), "k8s.io.client-go.pkg.api.unversioned.LabelSelectorRequirement") + proto.RegisterType((*ListMeta)(nil), "k8s.io.client-go.pkg.api.unversioned.ListMeta") + proto.RegisterType((*RootPaths)(nil), "k8s.io.client-go.pkg.api.unversioned.RootPaths") + proto.RegisterType((*ServerAddressByClientCIDR)(nil), "k8s.io.client-go.pkg.api.unversioned.ServerAddressByClientCIDR") + proto.RegisterType((*Status)(nil), "k8s.io.client-go.pkg.api.unversioned.Status") + proto.RegisterType((*StatusCause)(nil), "k8s.io.client-go.pkg.api.unversioned.StatusCause") + proto.RegisterType((*StatusDetails)(nil), "k8s.io.client-go.pkg.api.unversioned.StatusDetails") + proto.RegisterType((*Time)(nil), "k8s.io.client-go.pkg.api.unversioned.Time") + proto.RegisterType((*Timestamp)(nil), "k8s.io.client-go.pkg.api.unversioned.Timestamp") + proto.RegisterType((*TypeMeta)(nil), "k8s.io.client-go.pkg.api.unversioned.TypeMeta") } func (m *APIGroup) Marshal() (data []byte, err error) { size := m.Size() @@ -4446,91 +4446,92 @@ var ( ) 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, + // 1390 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x09, 0x6e, 0x88, 0x02, 0xff, 0xcc, 0x57, 0x4f, 0x6f, 0x1b, 0x45, + 0x14, 0xf7, 0xda, 0xb1, 0xbb, 0x7e, 0x8e, 0x49, 0xba, 0xa4, 0x62, 0x1b, 0x09, 0xdb, 0x6c, 0x05, + 0x4a, 0xa5, 0xd6, 0x56, 0x23, 0x40, 0x55, 0x11, 0x7f, 0xe2, 0x24, 0xad, 0xa2, 0x36, 0x6d, 0x34, + 0xa9, 0x8a, 0xd4, 0x16, 0x89, 0x8d, 0x77, 0xe2, 0xac, 0x6c, 0xef, 0x2e, 0x33, 0xb3, 0x51, 0x2d, + 0x90, 0xe8, 0xa5, 0x12, 0x07, 0x84, 0x7a, 0xe4, 0x02, 0x6a, 0xa5, 0x7e, 0x03, 0xbe, 0x44, 0xc5, + 0xa9, 0x17, 0x24, 0x0e, 0xc8, 0xa2, 0xe1, 0xc2, 0x95, 0x6b, 0x4e, 0x68, 0x66, 0x67, 0xd6, 0xbb, + 0x6e, 0x4d, 0x36, 0xd0, 0x03, 0x27, 0xef, 0xfb, 0xff, 0xe6, 0xbd, 0xdf, 0xbc, 0x37, 0x86, 0xf7, + 0x7a, 0x17, 0x69, 0xd3, 0xf5, 0x5b, 0xbd, 0x70, 0x07, 0x13, 0x0f, 0x33, 0x4c, 0x5b, 0x41, 0xaf, + 0xdb, 0xb2, 0x03, 0xb7, 0x15, 0x7a, 0xfb, 0x98, 0x50, 0xd7, 0xf7, 0xb0, 0xd3, 0xea, 0x62, 0x0f, + 0x13, 0x9b, 0x61, 0xa7, 0x19, 0x10, 0x9f, 0xf9, 0xc6, 0xdb, 0x91, 0x59, 0x73, 0x6c, 0xd6, 0x0c, + 0x7a, 0xdd, 0xa6, 0x1d, 0xb8, 0xcd, 0x84, 0xd9, 0xe2, 0xf9, 0xae, 0xcb, 0xf6, 0xc2, 0x9d, 0x66, + 0xc7, 0x1f, 0xb4, 0xba, 0x7e, 0xd7, 0x6f, 0x09, 0xeb, 0x9d, 0x70, 0x57, 0x50, 0x82, 0x10, 0x5f, + 0x91, 0xd7, 0xc5, 0xf3, 0x2f, 0x4f, 0x86, 0x84, 0x1e, 0x73, 0x07, 0x78, 0x32, 0x89, 0xc5, 0x0b, + 0x2f, 0x57, 0x0f, 0x99, 0xdb, 0x6f, 0xb9, 0x1e, 0xa3, 0x8c, 0x4c, 0x9a, 0x58, 0x3f, 0x17, 0x40, + 0x5f, 0xd9, 0xda, 0xb8, 0x42, 0xfc, 0x30, 0x30, 0x1a, 0x30, 0xe3, 0xd9, 0x03, 0x6c, 0x6a, 0x0d, + 0x6d, 0xa9, 0xdc, 0x9e, 0x7d, 0x3a, 0xaa, 0xe7, 0x0e, 0x46, 0xf5, 0x99, 0xeb, 0xf6, 0x00, 0x23, + 0x21, 0x31, 0x06, 0xa0, 0xcb, 0xc3, 0x50, 0x33, 0xdf, 0x28, 0x2c, 0x55, 0x96, 0x3f, 0x6e, 0x66, + 0x3a, 0x79, 0x53, 0x44, 0xb8, 0x15, 0x91, 0x97, 0x7d, 0xb2, 0xe6, 0xd2, 0x8e, 0xbf, 0x8f, 0xc9, + 0xb0, 0x3d, 0x2f, 0xc3, 0xe8, 0x52, 0x48, 0x51, 0x1c, 0xc2, 0x78, 0xa0, 0xc1, 0x7c, 0x40, 0xf0, + 0x2e, 0x26, 0x04, 0x3b, 0x52, 0x6e, 0x16, 0x1a, 0xda, 0xab, 0x88, 0x6b, 0xca, 0xb8, 0xf3, 0x5b, + 0x13, 0x01, 0xd0, 0x0b, 0x21, 0x8d, 0x27, 0x1a, 0x2c, 0x52, 0x4c, 0xf6, 0x31, 0x59, 0x71, 0x1c, + 0x82, 0x29, 0x6d, 0x0f, 0x57, 0xfb, 0x2e, 0xf6, 0xd8, 0xea, 0xc6, 0x1a, 0xa2, 0xe6, 0x8c, 0xa8, + 0xc4, 0x27, 0x19, 0x33, 0xda, 0x9e, 0xe6, 0xa8, 0x6d, 0xc9, 0x94, 0x16, 0xa7, 0xaa, 0x50, 0xf4, + 0x0f, 0x79, 0x58, 0x5d, 0x98, 0x55, 0xbd, 0xbc, 0xe6, 0x52, 0x66, 0x7c, 0x0a, 0xa5, 0x2e, 0x27, + 0xa8, 0xa9, 0x89, 0x0c, 0x5b, 0x19, 0x33, 0x54, 0x4e, 0xda, 0xaf, 0xc9, 0x84, 0x4a, 0x82, 0xa4, + 0x48, 0xba, 0xb3, 0x1e, 0x68, 0x50, 0x59, 0xd9, 0xda, 0x40, 0x98, 0xfa, 0x21, 0xe9, 0xe0, 0x0c, + 0xc0, 0x59, 0x06, 0xe0, 0xbf, 0x34, 0xb0, 0x3b, 0xd8, 0x31, 0xf3, 0x0d, 0x6d, 0x49, 0x6f, 0x1b, + 0x52, 0x0f, 0xae, 0xc7, 0x12, 0x94, 0xd0, 0xe2, 0x5e, 0x7b, 0xae, 0xe7, 0x88, 0x86, 0x27, 0xbc, + 0x5e, 0x75, 0x3d, 0x07, 0x09, 0x89, 0xf5, 0x93, 0x06, 0x73, 0x89, 0x3c, 0xc4, 0xa1, 0x2f, 0xc2, + 0x6c, 0x37, 0xd1, 0x73, 0x99, 0xd3, 0x82, 0xb4, 0x9e, 0x4d, 0xe2, 0x01, 0xa5, 0x34, 0x8d, 0x5d, + 0x28, 0x13, 0xe9, 0x49, 0xa1, 0x7b, 0x39, 0x7b, 0xc5, 0x54, 0x12, 0xe3, 0x50, 0x09, 0x26, 0x45, + 0x63, 0xd7, 0xd6, 0x9f, 0x51, 0xf5, 0x14, 0xde, 0x8d, 0xa5, 0xc4, 0xa5, 0xe2, 0x8d, 0x2a, 0xb7, + 0x67, 0xa7, 0xdc, 0x87, 0x23, 0x70, 0x98, 0xff, 0x7f, 0xe0, 0xf0, 0x92, 0xfe, 0xfd, 0xa3, 0x7a, + 0xee, 0xfe, 0x6f, 0x8d, 0x9c, 0xb5, 0x01, 0xfa, 0x5a, 0x48, 0x6c, 0xc6, 0xcb, 0xfb, 0x21, 0xe8, + 0x8e, 0xfc, 0x16, 0x4d, 0x29, 0xb4, 0xdf, 0x52, 0x57, 0x5f, 0xe9, 0x1c, 0x8e, 0xea, 0x55, 0x3e, + 0xd9, 0x9a, 0x8a, 0x81, 0x62, 0x13, 0xeb, 0x2e, 0x54, 0xd7, 0xef, 0x05, 0x3e, 0x61, 0x37, 0x02, + 0x26, 0x8a, 0xf1, 0x0e, 0x94, 0xb0, 0x60, 0x08, 0x6f, 0xfa, 0x18, 0xac, 0x91, 0x1a, 0x92, 0x52, + 0xe3, 0x0c, 0x14, 0xf1, 0x3d, 0xbb, 0xc3, 0x24, 0xea, 0xaa, 0x52, 0xad, 0xb8, 0xce, 0x99, 0x28, + 0x92, 0x59, 0x77, 0xa1, 0x2c, 0x90, 0xc1, 0xc1, 0xc5, 0x2d, 0x04, 0x30, 0x24, 0x76, 0x62, 0x0b, + 0xa1, 0x81, 0x22, 0x59, 0x8c, 0xce, 0xfc, 0x34, 0x74, 0x26, 0xca, 0xd0, 0x87, 0x6a, 0x64, 0xab, + 0x2e, 0x4c, 0xa6, 0x08, 0xe7, 0x40, 0x57, 0xa0, 0x91, 0x51, 0xe2, 0x59, 0xa9, 0x1c, 0xa1, 0x58, + 0x23, 0x11, 0x6d, 0x0f, 0x52, 0x28, 0xcf, 0x16, 0xec, 0x2c, 0x9c, 0x90, 0xd0, 0x90, 0xb1, 0xe6, + 0xa4, 0xda, 0x09, 0x75, 0x59, 0x94, 0x3c, 0x11, 0xe9, 0x6b, 0x30, 0xa7, 0xcd, 0xd7, 0xff, 0x70, + 0x0f, 0xb3, 0xa7, 0x62, 0x7d, 0xa7, 0xc1, 0x7c, 0xd2, 0x53, 0xf6, 0xf6, 0x65, 0x0f, 0x72, 0xf4, + 0x1c, 0x4a, 0x54, 0xe4, 0x47, 0x0d, 0x16, 0x52, 0x47, 0x3b, 0x56, 0xc7, 0x8f, 0x91, 0x54, 0x12, + 0x1c, 0x85, 0x63, 0x80, 0xe3, 0x97, 0x3c, 0x54, 0xaf, 0xd9, 0x3b, 0xb8, 0xbf, 0x8d, 0xfb, 0xb8, + 0xc3, 0x7c, 0x62, 0x7c, 0x05, 0x95, 0x81, 0xcd, 0x3a, 0x7b, 0x82, 0xab, 0x56, 0xc5, 0x7a, 0xc6, + 0x21, 0x92, 0x72, 0xd5, 0xdc, 0x1c, 0xfb, 0x59, 0xf7, 0x18, 0x19, 0xb6, 0x5f, 0x97, 0x39, 0x55, + 0x12, 0x12, 0x94, 0x0c, 0x27, 0x56, 0xbc, 0xa0, 0xd7, 0xef, 0x05, 0x7c, 0x92, 0xfc, 0x8b, 0xa7, + 0x45, 0x2a, 0x07, 0x84, 0xbf, 0x08, 0x5d, 0x82, 0x07, 0xd8, 0x63, 0xe3, 0x15, 0xbf, 0x39, 0x11, + 0x00, 0xbd, 0x10, 0x72, 0xf1, 0x23, 0x98, 0x9f, 0xcc, 0xde, 0x98, 0x87, 0x42, 0x0f, 0x0f, 0xa3, + 0x8e, 0x21, 0xfe, 0x69, 0x2c, 0x40, 0x71, 0xdf, 0xee, 0x87, 0xf2, 0x3e, 0xa2, 0x88, 0xb8, 0x94, + 0xbf, 0xa8, 0x59, 0x4f, 0x34, 0x30, 0xa7, 0x25, 0x62, 0xbc, 0x99, 0x70, 0xd4, 0xae, 0xc8, 0xac, + 0x0a, 0x57, 0xf1, 0x30, 0xf2, 0xba, 0x0e, 0xba, 0x1f, 0xf0, 0x67, 0x99, 0x4f, 0x64, 0xdf, 0xcf, + 0xaa, 0x5e, 0xde, 0x90, 0xfc, 0xc3, 0x51, 0xfd, 0x54, 0xca, 0xbd, 0x12, 0xa0, 0xd8, 0xd4, 0xb0, + 0xa0, 0x24, 0xf2, 0xa1, 0x66, 0x41, 0x6c, 0x11, 0xe0, 0xc3, 0xf0, 0x96, 0xe0, 0x20, 0x29, 0xb1, + 0xbe, 0x04, 0x9d, 0x6f, 0xc9, 0x4d, 0xcc, 0x6c, 0x0e, 0x21, 0x8a, 0xfb, 0xbb, 0xd7, 0x5c, 0xaf, + 0x27, 0x53, 0x8b, 0x21, 0xb4, 0x2d, 0xf9, 0x28, 0xd6, 0x30, 0x56, 0x60, 0x4e, 0xc1, 0xe9, 0x56, + 0x0a, 0xa3, 0x6f, 0x48, 0xa3, 0x39, 0x94, 0x16, 0xa3, 0x49, 0x7d, 0xeb, 0x1c, 0x94, 0x91, 0xef, + 0xb3, 0x2d, 0x9b, 0xed, 0x51, 0xa3, 0x0e, 0xc5, 0x80, 0x7f, 0xc8, 0x95, 0x57, 0xe6, 0x97, 0x41, + 0x48, 0x50, 0xc4, 0xb7, 0xbe, 0xd5, 0xe0, 0xf4, 0xd4, 0x05, 0xc4, 0x1f, 0x14, 0x9d, 0x98, 0x92, + 0xe9, 0xc7, 0x0f, 0x8a, 0xb1, 0x1e, 0x4a, 0x68, 0x19, 0x1f, 0x40, 0x35, 0xb5, 0xb5, 0xe4, 0x01, + 0x4e, 0x49, 0xb3, 0x6a, 0x2a, 0x1a, 0x4a, 0xeb, 0x5a, 0x7f, 0xe5, 0xa1, 0xb4, 0xcd, 0x6c, 0x16, + 0x52, 0xe3, 0x33, 0xd0, 0x07, 0x98, 0xd9, 0x8e, 0xcd, 0x6c, 0x11, 0x39, 0xfb, 0xcb, 0x4a, 0xd5, + 0x7e, 0x5c, 0x69, 0xc5, 0x41, 0xb1, 0x4b, 0xbe, 0xd8, 0xa8, 0x08, 0x24, 0xf3, 0x8b, 0x17, 0x5b, + 0x14, 0x1e, 0x49, 0x29, 0x9f, 0x16, 0x03, 0x4c, 0xa9, 0xdd, 0x55, 0x13, 0x20, 0x9e, 0x16, 0x9b, + 0x11, 0x1b, 0x29, 0xb9, 0xf1, 0x3e, 0x94, 0x08, 0xb6, 0xa9, 0xef, 0x99, 0x33, 0x42, 0xb3, 0xa6, + 0x5c, 0x22, 0xc1, 0x3d, 0x1c, 0xd5, 0x67, 0xa5, 0x73, 0x41, 0x23, 0xa9, 0x6d, 0xdc, 0x81, 0x13, + 0x0e, 0x66, 0xb6, 0xdb, 0xa7, 0x66, 0x51, 0x1c, 0xf4, 0xdd, 0xac, 0x8f, 0x0b, 0xe1, 0x6d, 0x2d, + 0xb2, 0x6d, 0x57, 0x78, 0x52, 0x92, 0x40, 0xca, 0x23, 0x9f, 0xab, 0x1d, 0xdf, 0xc1, 0x66, 0xa9, + 0xa1, 0x2d, 0x15, 0xc7, 0x73, 0x75, 0xd5, 0x77, 0x30, 0x12, 0x12, 0xeb, 0xa1, 0x06, 0x95, 0xc8, + 0xd3, 0xaa, 0x1d, 0x52, 0x6c, 0x5c, 0x88, 0x8f, 0x11, 0x35, 0xfc, 0xb4, 0xb2, 0xb9, 0x39, 0x0c, + 0xf0, 0xe1, 0xa8, 0x5e, 0x16, 0x6a, 0x9c, 0x88, 0x4f, 0x90, 0x28, 0x52, 0xfe, 0x88, 0x22, 0x9d, + 0x81, 0xe2, 0xae, 0x8b, 0xfb, 0x6a, 0xd0, 0xc7, 0x23, 0xfa, 0x32, 0x67, 0xa2, 0x48, 0x66, 0xfd, + 0x90, 0x87, 0x6a, 0xea, 0x70, 0x19, 0x1e, 0xbf, 0xf1, 0xec, 0xcf, 0x67, 0x78, 0x4f, 0x4c, 0xdd, + 0x32, 0xc6, 0x6d, 0x28, 0x75, 0xf8, 0xf9, 0xd4, 0x1f, 0x8e, 0xe5, 0x63, 0xf5, 0x42, 0x94, 0x66, + 0x8c, 0x25, 0x41, 0x52, 0x24, 0x3d, 0x1a, 0x57, 0xe0, 0x24, 0xc1, 0x8c, 0x0c, 0x57, 0x76, 0x19, + 0x26, 0xdb, 0xb8, 0xe3, 0x7b, 0x4e, 0xd4, 0xf2, 0x62, 0x5c, 0xe4, 0x93, 0x68, 0x52, 0x01, 0xbd, + 0x68, 0x63, 0xf5, 0x61, 0xe6, 0xa6, 0x3b, 0xc0, 0xbc, 0xee, 0x54, 0xba, 0x89, 0x1e, 0x7b, 0x71, + 0xdd, 0x95, 0xb1, 0x92, 0xf3, 0xf2, 0x78, 0xb6, 0xe7, 0x47, 0x70, 0x2f, 0x8e, 0xcb, 0x73, 0x9d, + 0x33, 0x51, 0x24, 0xbb, 0xb4, 0xc0, 0x37, 0xd8, 0x37, 0x8f, 0xeb, 0xb9, 0x87, 0x8f, 0xeb, 0xb9, + 0x47, 0x8f, 0xe5, 0x36, 0xbb, 0x03, 0x65, 0x1e, 0x8d, 0x32, 0x7b, 0x10, 0xbc, 0xea, 0x90, 0xd6, + 0xe7, 0xa0, 0x73, 0x28, 0x89, 0x59, 0xa9, 0xba, 0xa3, 0x4d, 0xed, 0xce, 0x32, 0x80, 0x1d, 0xb8, + 0xe9, 0xd1, 0x18, 0x0f, 0xa4, 0xf1, 0x73, 0x1f, 0x25, 0xb4, 0xda, 0xe7, 0x9f, 0x3e, 0xaf, 0xe5, + 0x9e, 0x3d, 0xaf, 0xe5, 0x7e, 0x7d, 0x5e, 0xcb, 0xdd, 0x3f, 0xa8, 0x69, 0x4f, 0x0f, 0x6a, 0xda, + 0xb3, 0x83, 0x9a, 0xf6, 0xfb, 0x41, 0x4d, 0x7b, 0xf8, 0x47, 0x2d, 0x77, 0xbb, 0x92, 0x68, 0xe4, + 0xdf, 0x01, 0x00, 0x00, 0xff, 0xff, 0x0a, 0x22, 0x00, 0xde, 0x9c, 0x10, 0x00, 0x00, } diff --git a/vendor/k8s.io/client-go/1.5/pkg/api/unversioned/group_version.go b/vendor/k8s.io/client-go/pkg/api/unversioned/group_version.go similarity index 95% rename from vendor/k8s.io/client-go/1.5/pkg/api/unversioned/group_version.go rename to vendor/k8s.io/client-go/pkg/api/unversioned/group_version.go index dfbfe3a32..db842affe 100644 --- a/vendor/k8s.io/client-go/1.5/pkg/api/unversioned/group_version.go +++ b/vendor/k8s.io/client-go/pkg/api/unversioned/group_version.go @@ -268,17 +268,37 @@ 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) { +func (gvs GroupVersions) KindForGroupVersionKinds(kinds []GroupVersionKind) (GroupVersionKind, bool) { + var targets []GroupVersionKind for _, gv := range gvs { target, ok := gv.KindForGroupVersionKinds(kinds) if !ok { continue } - return target, true + targets = append(targets, target) + } + if len(targets) == 1 { + return targets[0], true + } + if len(targets) > 1 { + return bestMatch(kinds, targets), true } return GroupVersionKind{}, false } +// bestMatch tries to pick best matching GroupVersionKind and falls back to the first +// found if no exact match exists. +func bestMatch(kinds []GroupVersionKind, targets []GroupVersionKind) GroupVersionKind { + for _, gvk := range targets { + for _, k := range kinds { + if k == gvk { + return k + } + } + } + return targets[0] +} + // 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/vendor/k8s.io/client-go/1.5/pkg/api/unversioned/helpers.go b/vendor/k8s.io/client-go/pkg/api/unversioned/helpers.go similarity index 95% rename from vendor/k8s.io/client-go/1.5/pkg/api/unversioned/helpers.go rename to vendor/k8s.io/client-go/pkg/api/unversioned/helpers.go index 22f98f174..8ef9b038c 100644 --- a/vendor/k8s.io/client-go/1.5/pkg/api/unversioned/helpers.go +++ b/vendor/k8s.io/client-go/pkg/api/unversioned/helpers.go @@ -19,9 +19,8 @@ package unversioned import ( "fmt" - "k8s.io/client-go/1.5/pkg/labels" - "k8s.io/client-go/1.5/pkg/selection" - "k8s.io/client-go/1.5/pkg/util/sets" + "k8s.io/client-go/pkg/labels" + "k8s.io/client-go/pkg/selection" ) // LabelSelectorAsSelector converts the LabelSelector api type into a struct that implements @@ -36,7 +35,7 @@ func LabelSelectorAsSelector(ps *LabelSelector) (labels.Selector, error) { } selector := labels.NewSelector() for k, v := range ps.MatchLabels { - r, err := labels.NewRequirement(k, selection.Equals, sets.NewString(v)) + r, err := labels.NewRequirement(k, selection.Equals, []string{v}) if err != nil { return nil, err } @@ -56,7 +55,7 @@ func LabelSelectorAsSelector(ps *LabelSelector) (labels.Selector, error) { 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...)) + r, err := labels.NewRequirement(expr.Key, op, append([]string(nil), expr.Values...)) if err != nil { return nil, err } diff --git a/vendor/k8s.io/client-go/1.5/pkg/api/unversioned/meta.go b/vendor/k8s.io/client-go/pkg/api/unversioned/meta.go similarity index 100% rename from vendor/k8s.io/client-go/1.5/pkg/api/unversioned/meta.go rename to vendor/k8s.io/client-go/pkg/api/unversioned/meta.go diff --git a/vendor/k8s.io/client-go/1.5/pkg/api/unversioned/register.go b/vendor/k8s.io/client-go/pkg/api/unversioned/register.go similarity index 100% rename from vendor/k8s.io/client-go/1.5/pkg/api/unversioned/register.go rename to vendor/k8s.io/client-go/pkg/api/unversioned/register.go diff --git a/vendor/k8s.io/client-go/1.5/pkg/api/unversioned/time.go b/vendor/k8s.io/client-go/pkg/api/unversioned/time.go similarity index 98% rename from vendor/k8s.io/client-go/1.5/pkg/api/unversioned/time.go rename to vendor/k8s.io/client-go/pkg/api/unversioned/time.go index aedc119d2..d490f3bb9 100644 --- a/vendor/k8s.io/client-go/1.5/pkg/api/unversioned/time.go +++ b/vendor/k8s.io/client-go/pkg/api/unversioned/time.go @@ -20,7 +20,7 @@ import ( "encoding/json" "time" - "k8s.io/client-go/1.5/pkg/genericapiserver/openapi/common" + "k8s.io/client-go/pkg/genericapiserver/openapi/common" "github.com/go-openapi/spec" "github.com/google/gofuzz" diff --git a/vendor/k8s.io/client-go/1.5/pkg/api/unversioned/time_proto.go b/vendor/k8s.io/client-go/pkg/api/unversioned/time_proto.go similarity index 100% rename from vendor/k8s.io/client-go/1.5/pkg/api/unversioned/time_proto.go rename to vendor/k8s.io/client-go/pkg/api/unversioned/time_proto.go diff --git a/vendor/k8s.io/client-go/1.5/pkg/api/unversioned/types.go b/vendor/k8s.io/client-go/pkg/api/unversioned/types.go similarity index 98% rename from vendor/k8s.io/client-go/1.5/pkg/api/unversioned/types.go rename to vendor/k8s.io/client-go/pkg/api/unversioned/types.go index 7d632b496..6178f199b 100644 --- a/vendor/k8s.io/client-go/1.5/pkg/api/unversioned/types.go +++ b/vendor/k8s.io/client-go/pkg/api/unversioned/types.go @@ -36,12 +36,14 @@ type TypeMeta struct { // Cannot be updated. // In CamelCase. // More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds + // +optional 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 + // +optional APIVersion string `json:"apiVersion,omitempty" protobuf:"bytes,2,opt,name=apiVersion"` } @@ -51,6 +53,7 @@ type ListMeta struct { // SelfLink is a URL representing this object. // Populated by the system. // Read-only. + // +optional SelfLink string `json:"selfLink,omitempty" protobuf:"bytes,1,opt,name=selfLink"` // String that identifies the server's internal version of this object that @@ -59,6 +62,7 @@ type ListMeta struct { // Populated by the system. // Read-only. // More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#concurrency-control-and-consistency + // +optional ResourceVersion string `json:"resourceVersion,omitempty" protobuf:"bytes,2,opt,name=resourceVersion"` } @@ -76,25 +80,31 @@ type Status struct { TypeMeta `json:",inline"` // Standard list metadata. // More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds + // +optional 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 + // +optional Status string `json:"status,omitempty" protobuf:"bytes,2,opt,name=status"` // A human-readable description of the status of this operation. + // +optional 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. + // +optional 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. + // +optional Details *StatusDetails `json:"details,omitempty" protobuf:"bytes,5,opt,name=details"` // Suggested HTTP return code for this status, 0 if not set. + // +optional Code int32 `json:"code,omitempty" protobuf:"varint,6,opt,name=code"` } @@ -107,17 +117,22 @@ type Status struct { type StatusDetails struct { // The name attribute of the resource associated with the status StatusReason // (when there is a single name which can be described). + // +optional Name string `json:"name,omitempty" protobuf:"bytes,1,opt,name=name"` // The group attribute of the resource associated with the status StatusReason. + // +optional 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 + // +optional 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. + // +optional Causes []StatusCause `json:"causes,omitempty" protobuf:"bytes,4,rep,name=causes"` // If specified, the time in seconds before the operation should be retried. + // +optional RetryAfterSeconds int32 `json:"retryAfterSeconds,omitempty" protobuf:"varint,5,opt,name=retryAfterSeconds"` } @@ -257,9 +272,11 @@ const ( type StatusCause struct { // A machine-readable description of the cause of the error. If this value is // empty there is no information available. + // +optional 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. + // +optional 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. @@ -270,6 +287,7 @@ type StatusCause struct { // Examples: // "name" - the field "name" on the current resource // "items[0].name" - the field "name" on the first array entry in "items" + // +optional Field string `json:"field,omitempty" protobuf:"bytes,3,opt,name=field"` } @@ -336,6 +354,7 @@ type APIGroup struct { 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. + // +optional 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. @@ -429,8 +448,10 @@ 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. + // +optional 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. + // +optional MatchExpressions []LabelSelectorRequirement `json:"matchExpressions,omitempty" protobuf:"bytes,2,rep,name=matchExpressions"` } @@ -446,6 +467,7 @@ type LabelSelectorRequirement struct { // 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. + // +optional Values []string `json:"values,omitempty" protobuf:"bytes,3,rep,name=values"` } diff --git a/vendor/k8s.io/client-go/1.5/pkg/api/unversioned/types_swagger_doc_generated.go b/vendor/k8s.io/client-go/pkg/api/unversioned/types_swagger_doc_generated.go similarity index 100% rename from vendor/k8s.io/client-go/1.5/pkg/api/unversioned/types_swagger_doc_generated.go rename to vendor/k8s.io/client-go/pkg/api/unversioned/types_swagger_doc_generated.go diff --git a/vendor/k8s.io/client-go/pkg/api/unversioned/well_known_labels.go b/vendor/k8s.io/client-go/pkg/api/unversioned/well_known_labels.go new file mode 100644 index 000000000..7556181e8 --- /dev/null +++ b/vendor/k8s.io/client-go/pkg/api/unversioned/well_known_labels.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 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" +) + +// Role labels are applied to Nodes to mark their purpose. In particular, we +// usually want to distinguish the master, so that we can isolate privileged +// pods and operations. +// +// Originally we relied on not registering the master, on the fact that the +// master was Unschedulable, and on static manifests for master components. +// But we now do register masters in many environments, are generally moving +// away from static manifests (for better manageability), and working towards +// deprecating the unschedulable field (replacing it with taints & tolerations +// instead). +// +// Even with tainting, a label remains the easiest way of making a positive +// selection, so that pods can schedule only to master nodes for example, and +// thus installations will likely define a label for their master nodes. +// +// So that we can recognize master nodes in consequent places though (such as +// kubectl get nodes), we encourage installations to use the well-known labels. +// We define NodeLabelRole, which is the preferred form, but we will also recognize +// other forms that are known to be in widespread use (NodeLabelKubeadmAlphaRole). + +const ( + // NodeLabelRole is the preferred label applied to a Node as a hint that it has a particular purpose (defined by the value). + NodeLabelRole = "kubernetes.io/role" + + // NodeLabelKubeadmAlphaRole is a label that kubeadm applies to a Node as a hint that it has a particular purpose. + // Use of NodeLabelRole is preferred. + NodeLabelKubeadmAlphaRole = "kubeadm.alpha.kubernetes.io/role" + + // NodeLabelRoleMaster is the value of a NodeLabelRole or NodeLabelKubeadmAlphaRole label, indicating a master node. + // A master node typically runs kubernetes system components and will not typically run user workloads. + NodeLabelRoleMaster = "master" + + // NodeLabelRoleNode is the value of a NodeLabelRole or NodeLabelKubeadmAlphaRole label, indicating a "normal" node, + // as opposed to a RoleMaster node. + NodeLabelRoleNode = "node" +) diff --git a/vendor/k8s.io/client-go/1.5/pkg/api/unversioned/zz_generated.deepcopy.go b/vendor/k8s.io/client-go/pkg/api/unversioned/zz_generated.deepcopy.go similarity index 99% rename from vendor/k8s.io/client-go/1.5/pkg/api/unversioned/zz_generated.deepcopy.go rename to vendor/k8s.io/client-go/pkg/api/unversioned/zz_generated.deepcopy.go index dc98d2a32..b90c7185e 100644 --- a/vendor/k8s.io/client-go/1.5/pkg/api/unversioned/zz_generated.deepcopy.go +++ b/vendor/k8s.io/client-go/pkg/api/unversioned/zz_generated.deepcopy.go @@ -1,7 +1,7 @@ // +build !ignore_autogenerated /* -Copyright 2016 The Kubernetes Authors. +Copyright 2017 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -21,7 +21,7 @@ limitations under the License. package unversioned import ( - conversion "k8s.io/client-go/1.5/pkg/conversion" + conversion "k8s.io/client-go/pkg/conversion" time "time" ) diff --git a/vendor/k8s.io/client-go/1.5/pkg/api/v1/conversion.go b/vendor/k8s.io/client-go/pkg/api/v1/conversion.go similarity index 94% rename from vendor/k8s.io/client-go/1.5/pkg/api/v1/conversion.go rename to vendor/k8s.io/client-go/pkg/api/v1/conversion.go index 2ba5c32b2..dba084a0e 100644 --- a/vendor/k8s.io/client-go/1.5/pkg/api/v1/conversion.go +++ b/vendor/k8s.io/client-go/pkg/api/v1/conversion.go @@ -21,12 +21,12 @@ import ( "fmt" "reflect" - "k8s.io/client-go/1.5/pkg/api" - "k8s.io/client-go/1.5/pkg/apis/extensions" - "k8s.io/client-go/1.5/pkg/conversion" - "k8s.io/client-go/1.5/pkg/runtime" - "k8s.io/client-go/1.5/pkg/util/validation/field" - "k8s.io/client-go/1.5/pkg/watch/versioned" + "k8s.io/client-go/pkg/api" + "k8s.io/client-go/pkg/apis/extensions" + "k8s.io/client-go/pkg/conversion" + "k8s.io/client-go/pkg/runtime" + "k8s.io/client-go/pkg/util/validation/field" + "k8s.io/client-go/pkg/watch/versioned" ) const ( @@ -269,12 +269,6 @@ func addConversionFuncs(scheme *runtime.Scheme) error { } 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 } @@ -288,9 +282,6 @@ func Convert_v1_ReplicationController_to_extensions_ReplicaSet(in *ReplicationCo } 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) @@ -304,22 +295,15 @@ func Convert_v1_ReplicationControllerSpec_to_extensions_ReplicaSetSpec(in *Repli } 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.ReadyReplicas = in.ReadyReplicas + out.AvailableReplicas = in.AvailableReplicas 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 } @@ -340,11 +324,9 @@ func Convert_extensions_ReplicaSet_to_v1_ReplicationController(in *extensions.Re } 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 + out.MinReadySeconds = in.MinReadySeconds var invalidErr error if in.Selector != nil { invalidErr = api.Convert_unversioned_LabelSelector_to_map(in.Selector, &out.Selector, s) @@ -357,17 +339,17 @@ func Convert_extensions_ReplicaSetSpec_to_v1_ReplicationControllerSpec(in *exten } 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.ReadyReplicas = in.ReadyReplicas + out.AvailableReplicas = in.AvailableReplicas 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.MinReadySeconds = in.MinReadySeconds out.Selector = in.Selector if in.Template != nil { out.Template = new(PodTemplateSpec) @@ -381,7 +363,10 @@ 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 + if in.Replicas != nil { + out.Replicas = *in.Replicas + } + out.MinReadySeconds = in.MinReadySeconds out.Selector = in.Selector if in.Template != nil { out.Template = new(api.PodTemplateSpec) @@ -637,6 +622,11 @@ func Convert_v1_Pod_To_api_Pod(in *Pod, out *api.Pod, s conversion.Scope) error // taking responsibility to ensure mutation of in is not exposed // back to the caller. in.Spec.InitContainers = values + // Call defaulters explicitly until annotations are removed + for i := range in.Spec.InitContainers { + c := &in.Spec.InitContainers[i] + SetDefaults_Container(c) + } } // If there is a beta annotation, copy to alpha key. // See commit log for PR #31026 for why we do this. @@ -744,19 +734,20 @@ func Convert_v1_PodSecurityContext_To_api_PodSecurityContext(in *PodSecurityCont return nil } +// +k8s:conversion-fn=copy-only 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 { + // Moved to defaults // 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) + // const milliScale = -3 + // val.RoundUp(milliScale) (*out)[api.ResourceName(key)] = val } diff --git a/vendor/k8s.io/client-go/1.5/pkg/api/v1/defaults.go b/vendor/k8s.io/client-go/pkg/api/v1/defaults.go similarity index 94% rename from vendor/k8s.io/client-go/1.5/pkg/api/v1/defaults.go rename to vendor/k8s.io/client-go/pkg/api/v1/defaults.go index 3864516ff..92ddd3844 100644 --- a/vendor/k8s.io/client-go/1.5/pkg/api/v1/defaults.go +++ b/vendor/k8s.io/client-go/pkg/api/v1/defaults.go @@ -17,13 +17,14 @@ limitations under the License. package v1 import ( - "k8s.io/client-go/1.5/pkg/runtime" - "k8s.io/client-go/1.5/pkg/util" - "k8s.io/client-go/1.5/pkg/util/intstr" - "k8s.io/client-go/1.5/pkg/util/parsers" + "k8s.io/client-go/pkg/runtime" + "k8s.io/client-go/pkg/util" + "k8s.io/client-go/pkg/util/intstr" + "k8s.io/client-go/pkg/util/parsers" ) func addDefaultingFuncs(scheme *runtime.Scheme) error { + RegisterDefaults(scheme) return scheme.AddDefaultingFuncs( SetDefaults_PodExecOptions, SetDefaults_PodAttachOptions, @@ -51,9 +52,21 @@ func addDefaultingFuncs(scheme *runtime.Scheme) error { SetDefaults_LimitRangeItem, SetDefaults_ConfigMap, SetDefaults_RBDVolumeSource, + SetDefaults_ResourceList, ) } +func SetDefaults_ResourceList(obj *ResourceList) { + for key, val := range *obj { + // 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) + + (*obj)[ResourceName(key)] = val + } +} + func SetDefaults_PodExecOptions(obj *PodExecOptions) { obj.Stdout = true obj.Stderr = true diff --git a/vendor/k8s.io/client-go/1.5/pkg/api/v1/doc.go b/vendor/k8s.io/client-go/pkg/api/v1/doc.go similarity index 95% rename from vendor/k8s.io/client-go/1.5/pkg/api/v1/doc.go rename to vendor/k8s.io/client-go/pkg/api/v1/doc.go index 16aa549cb..7c4d49324 100644 --- a/vendor/k8s.io/client-go/1.5/pkg/api/v1/doc.go +++ b/vendor/k8s.io/client-go/pkg/api/v1/doc.go @@ -17,6 +17,7 @@ limitations under the License. // +k8s:deepcopy-gen=package,register // +k8s:conversion-gen=k8s.io/kubernetes/pkg/api // +k8s:openapi-gen=true +// +k8s:defaulter-gen=TypeMeta // Package v1 is the v1 version of the API. package v1 diff --git a/vendor/k8s.io/client-go/1.5/pkg/api/v1/generated.pb.go b/vendor/k8s.io/client-go/pkg/api/v1/generated.pb.go similarity index 90% rename from vendor/k8s.io/client-go/1.5/pkg/api/v1/generated.pb.go rename to vendor/k8s.io/client-go/pkg/api/v1/generated.pb.go index 44c55edd4..136f886b2 100644 --- a/vendor/k8s.io/client-go/1.5/pkg/api/v1/generated.pb.go +++ b/vendor/k8s.io/client-go/pkg/api/v1/generated.pb.go @@ -1,5 +1,5 @@ /* -Copyright 2016 The Kubernetes Authors. +Copyright 2017 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -121,6 +121,7 @@ limitations under the License. PersistentVolumeSource PersistentVolumeSpec PersistentVolumeStatus + PhotonPersistentDiskVolumeSource Pod PodAffinity PodAffinityTerm @@ -147,6 +148,7 @@ limitations under the License. RBDVolumeSource RangeAllocation ReplicationController + ReplicationControllerCondition ReplicationControllerList ReplicationControllerSpec ReplicationControllerStatus @@ -186,11 +188,11 @@ 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.5/pkg/api/resource" -import k8s_io_kubernetes_pkg_api_unversioned "k8s.io/client-go/1.5/pkg/api/unversioned" -import k8s_io_kubernetes_pkg_runtime "k8s.io/client-go/1.5/pkg/runtime" +import k8s_io_kubernetes_pkg_api_resource "k8s.io/client-go/pkg/api/resource" +import k8s_io_kubernetes_pkg_api_unversioned "k8s.io/client-go/pkg/api/unversioned" +import k8s_io_kubernetes_pkg_runtime "k8s.io/client-go/pkg/runtime" -import k8s_io_kubernetes_pkg_types "k8s.io/client-go/1.5/pkg/types" +import k8s_io_kubernetes_pkg_types "k8s.io/client-go/pkg/types" import strings "strings" import reflect "reflect" @@ -609,405 +611,419 @@ func (m *PersistentVolumeStatus) Reset() { *m = PersistentVol func (*PersistentVolumeStatus) ProtoMessage() {} func (*PersistentVolumeStatus) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{95} } +func (m *PhotonPersistentDiskVolumeSource) Reset() { *m = PhotonPersistentDiskVolumeSource{} } +func (*PhotonPersistentDiskVolumeSource) ProtoMessage() {} +func (*PhotonPersistentDiskVolumeSource) Descriptor() ([]byte, []int) { + return fileDescriptorGenerated, []int{96} +} + func (m *Pod) Reset() { *m = Pod{} } func (*Pod) ProtoMessage() {} -func (*Pod) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{96} } +func (*Pod) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{97} } func (m *PodAffinity) Reset() { *m = PodAffinity{} } func (*PodAffinity) ProtoMessage() {} -func (*PodAffinity) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{97} } +func (*PodAffinity) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{98} } func (m *PodAffinityTerm) Reset() { *m = PodAffinityTerm{} } func (*PodAffinityTerm) ProtoMessage() {} -func (*PodAffinityTerm) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{98} } +func (*PodAffinityTerm) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{99} } func (m *PodAntiAffinity) Reset() { *m = PodAntiAffinity{} } func (*PodAntiAffinity) ProtoMessage() {} -func (*PodAntiAffinity) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{99} } +func (*PodAntiAffinity) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{100} } func (m *PodAttachOptions) Reset() { *m = PodAttachOptions{} } func (*PodAttachOptions) ProtoMessage() {} -func (*PodAttachOptions) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{100} } +func (*PodAttachOptions) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{101} } func (m *PodCondition) Reset() { *m = PodCondition{} } func (*PodCondition) ProtoMessage() {} -func (*PodCondition) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{101} } +func (*PodCondition) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{102} } func (m *PodExecOptions) Reset() { *m = PodExecOptions{} } func (*PodExecOptions) ProtoMessage() {} -func (*PodExecOptions) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{102} } +func (*PodExecOptions) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{103} } func (m *PodList) Reset() { *m = PodList{} } func (*PodList) ProtoMessage() {} -func (*PodList) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{103} } +func (*PodList) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{104} } func (m *PodLogOptions) Reset() { *m = PodLogOptions{} } func (*PodLogOptions) ProtoMessage() {} -func (*PodLogOptions) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{104} } +func (*PodLogOptions) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{105} } func (m *PodProxyOptions) Reset() { *m = PodProxyOptions{} } func (*PodProxyOptions) ProtoMessage() {} -func (*PodProxyOptions) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{105} } +func (*PodProxyOptions) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{106} } func (m *PodSecurityContext) Reset() { *m = PodSecurityContext{} } func (*PodSecurityContext) ProtoMessage() {} -func (*PodSecurityContext) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{106} } +func (*PodSecurityContext) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{107} } func (m *PodSignature) Reset() { *m = PodSignature{} } func (*PodSignature) ProtoMessage() {} -func (*PodSignature) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{107} } +func (*PodSignature) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{108} } func (m *PodSpec) Reset() { *m = PodSpec{} } func (*PodSpec) ProtoMessage() {} -func (*PodSpec) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{108} } +func (*PodSpec) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{109} } func (m *PodStatus) Reset() { *m = PodStatus{} } func (*PodStatus) ProtoMessage() {} -func (*PodStatus) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{109} } +func (*PodStatus) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{110} } func (m *PodStatusResult) Reset() { *m = PodStatusResult{} } func (*PodStatusResult) ProtoMessage() {} -func (*PodStatusResult) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{110} } +func (*PodStatusResult) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{111} } func (m *PodTemplate) Reset() { *m = PodTemplate{} } func (*PodTemplate) ProtoMessage() {} -func (*PodTemplate) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{111} } +func (*PodTemplate) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{112} } func (m *PodTemplateList) Reset() { *m = PodTemplateList{} } func (*PodTemplateList) ProtoMessage() {} -func (*PodTemplateList) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{112} } +func (*PodTemplateList) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{113} } func (m *PodTemplateSpec) Reset() { *m = PodTemplateSpec{} } func (*PodTemplateSpec) ProtoMessage() {} -func (*PodTemplateSpec) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{113} } +func (*PodTemplateSpec) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{114} } func (m *Preconditions) Reset() { *m = Preconditions{} } func (*Preconditions) ProtoMessage() {} -func (*Preconditions) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{114} } +func (*Preconditions) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{115} } func (m *PreferAvoidPodsEntry) Reset() { *m = PreferAvoidPodsEntry{} } func (*PreferAvoidPodsEntry) ProtoMessage() {} -func (*PreferAvoidPodsEntry) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{115} } +func (*PreferAvoidPodsEntry) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{116} } func (m *PreferredSchedulingTerm) Reset() { *m = PreferredSchedulingTerm{} } func (*PreferredSchedulingTerm) ProtoMessage() {} func (*PreferredSchedulingTerm) Descriptor() ([]byte, []int) { - return fileDescriptorGenerated, []int{116} + return fileDescriptorGenerated, []int{117} } func (m *Probe) Reset() { *m = Probe{} } func (*Probe) ProtoMessage() {} -func (*Probe) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{117} } +func (*Probe) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{118} } func (m *QuobyteVolumeSource) Reset() { *m = QuobyteVolumeSource{} } func (*QuobyteVolumeSource) ProtoMessage() {} -func (*QuobyteVolumeSource) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{118} } +func (*QuobyteVolumeSource) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{119} } func (m *RBDVolumeSource) Reset() { *m = RBDVolumeSource{} } func (*RBDVolumeSource) ProtoMessage() {} -func (*RBDVolumeSource) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{119} } +func (*RBDVolumeSource) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{120} } func (m *RangeAllocation) Reset() { *m = RangeAllocation{} } func (*RangeAllocation) ProtoMessage() {} -func (*RangeAllocation) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{120} } +func (*RangeAllocation) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{121} } func (m *ReplicationController) Reset() { *m = ReplicationController{} } func (*ReplicationController) ProtoMessage() {} -func (*ReplicationController) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{121} } +func (*ReplicationController) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{122} } + +func (m *ReplicationControllerCondition) Reset() { *m = ReplicationControllerCondition{} } +func (*ReplicationControllerCondition) ProtoMessage() {} +func (*ReplicationControllerCondition) Descriptor() ([]byte, []int) { + return fileDescriptorGenerated, []int{123} +} func (m *ReplicationControllerList) Reset() { *m = ReplicationControllerList{} } func (*ReplicationControllerList) ProtoMessage() {} func (*ReplicationControllerList) Descriptor() ([]byte, []int) { - return fileDescriptorGenerated, []int{122} + return fileDescriptorGenerated, []int{124} } func (m *ReplicationControllerSpec) Reset() { *m = ReplicationControllerSpec{} } func (*ReplicationControllerSpec) ProtoMessage() {} func (*ReplicationControllerSpec) Descriptor() ([]byte, []int) { - return fileDescriptorGenerated, []int{123} + return fileDescriptorGenerated, []int{125} } func (m *ReplicationControllerStatus) Reset() { *m = ReplicationControllerStatus{} } func (*ReplicationControllerStatus) ProtoMessage() {} func (*ReplicationControllerStatus) Descriptor() ([]byte, []int) { - return fileDescriptorGenerated, []int{124} + return fileDescriptorGenerated, []int{126} } func (m *ResourceFieldSelector) Reset() { *m = ResourceFieldSelector{} } func (*ResourceFieldSelector) ProtoMessage() {} -func (*ResourceFieldSelector) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{125} } +func (*ResourceFieldSelector) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{127} } func (m *ResourceQuota) Reset() { *m = ResourceQuota{} } func (*ResourceQuota) ProtoMessage() {} -func (*ResourceQuota) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{126} } +func (*ResourceQuota) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{128} } func (m *ResourceQuotaList) Reset() { *m = ResourceQuotaList{} } func (*ResourceQuotaList) ProtoMessage() {} -func (*ResourceQuotaList) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{127} } +func (*ResourceQuotaList) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{129} } func (m *ResourceQuotaSpec) Reset() { *m = ResourceQuotaSpec{} } func (*ResourceQuotaSpec) ProtoMessage() {} -func (*ResourceQuotaSpec) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{128} } +func (*ResourceQuotaSpec) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{130} } func (m *ResourceQuotaStatus) Reset() { *m = ResourceQuotaStatus{} } func (*ResourceQuotaStatus) ProtoMessage() {} -func (*ResourceQuotaStatus) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{129} } +func (*ResourceQuotaStatus) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{131} } func (m *ResourceRequirements) Reset() { *m = ResourceRequirements{} } func (*ResourceRequirements) ProtoMessage() {} -func (*ResourceRequirements) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{130} } +func (*ResourceRequirements) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{132} } func (m *SELinuxOptions) Reset() { *m = SELinuxOptions{} } func (*SELinuxOptions) ProtoMessage() {} -func (*SELinuxOptions) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{131} } +func (*SELinuxOptions) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{133} } func (m *Secret) Reset() { *m = Secret{} } func (*Secret) ProtoMessage() {} -func (*Secret) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{132} } +func (*Secret) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{134} } func (m *SecretKeySelector) Reset() { *m = SecretKeySelector{} } func (*SecretKeySelector) ProtoMessage() {} -func (*SecretKeySelector) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{133} } +func (*SecretKeySelector) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{135} } func (m *SecretList) Reset() { *m = SecretList{} } func (*SecretList) ProtoMessage() {} -func (*SecretList) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{134} } +func (*SecretList) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{136} } func (m *SecretVolumeSource) Reset() { *m = SecretVolumeSource{} } func (*SecretVolumeSource) ProtoMessage() {} -func (*SecretVolumeSource) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{135} } +func (*SecretVolumeSource) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{137} } func (m *SecurityContext) Reset() { *m = SecurityContext{} } func (*SecurityContext) ProtoMessage() {} -func (*SecurityContext) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{136} } +func (*SecurityContext) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{138} } func (m *SerializedReference) Reset() { *m = SerializedReference{} } func (*SerializedReference) ProtoMessage() {} -func (*SerializedReference) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{137} } +func (*SerializedReference) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{139} } func (m *Service) Reset() { *m = Service{} } func (*Service) ProtoMessage() {} -func (*Service) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{138} } +func (*Service) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{140} } func (m *ServiceAccount) Reset() { *m = ServiceAccount{} } func (*ServiceAccount) ProtoMessage() {} -func (*ServiceAccount) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{139} } +func (*ServiceAccount) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{141} } func (m *ServiceAccountList) Reset() { *m = ServiceAccountList{} } func (*ServiceAccountList) ProtoMessage() {} -func (*ServiceAccountList) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{140} } +func (*ServiceAccountList) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{142} } func (m *ServiceList) Reset() { *m = ServiceList{} } func (*ServiceList) ProtoMessage() {} -func (*ServiceList) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{141} } +func (*ServiceList) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{143} } func (m *ServicePort) Reset() { *m = ServicePort{} } func (*ServicePort) ProtoMessage() {} -func (*ServicePort) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{142} } +func (*ServicePort) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{144} } func (m *ServiceProxyOptions) Reset() { *m = ServiceProxyOptions{} } func (*ServiceProxyOptions) ProtoMessage() {} -func (*ServiceProxyOptions) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{143} } +func (*ServiceProxyOptions) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{145} } func (m *ServiceSpec) Reset() { *m = ServiceSpec{} } func (*ServiceSpec) ProtoMessage() {} -func (*ServiceSpec) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{144} } +func (*ServiceSpec) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{146} } func (m *ServiceStatus) Reset() { *m = ServiceStatus{} } func (*ServiceStatus) ProtoMessage() {} -func (*ServiceStatus) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{145} } +func (*ServiceStatus) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{147} } func (m *TCPSocketAction) Reset() { *m = TCPSocketAction{} } func (*TCPSocketAction) ProtoMessage() {} -func (*TCPSocketAction) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{146} } +func (*TCPSocketAction) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{148} } func (m *Taint) Reset() { *m = Taint{} } func (*Taint) ProtoMessage() {} -func (*Taint) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{147} } +func (*Taint) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{149} } func (m *Toleration) Reset() { *m = Toleration{} } func (*Toleration) ProtoMessage() {} -func (*Toleration) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{148} } +func (*Toleration) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{150} } func (m *Volume) Reset() { *m = Volume{} } func (*Volume) ProtoMessage() {} -func (*Volume) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{149} } +func (*Volume) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{151} } func (m *VolumeMount) Reset() { *m = VolumeMount{} } func (*VolumeMount) ProtoMessage() {} -func (*VolumeMount) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{150} } +func (*VolumeMount) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{152} } func (m *VolumeSource) Reset() { *m = VolumeSource{} } func (*VolumeSource) ProtoMessage() {} -func (*VolumeSource) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{151} } +func (*VolumeSource) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{153} } func (m *VsphereVirtualDiskVolumeSource) Reset() { *m = VsphereVirtualDiskVolumeSource{} } func (*VsphereVirtualDiskVolumeSource) ProtoMessage() {} func (*VsphereVirtualDiskVolumeSource) Descriptor() ([]byte, []int) { - return fileDescriptorGenerated, []int{152} + return fileDescriptorGenerated, []int{154} } func (m *WeightedPodAffinityTerm) Reset() { *m = WeightedPodAffinityTerm{} } func (*WeightedPodAffinityTerm) ProtoMessage() {} func (*WeightedPodAffinityTerm) Descriptor() ([]byte, []int) { - return fileDescriptorGenerated, []int{153} + return fileDescriptorGenerated, []int{155} } func init() { - proto.RegisterType((*AWSElasticBlockStoreVolumeSource)(nil), "k8s.io.client-go.1.5.pkg.api.v1.AWSElasticBlockStoreVolumeSource") - proto.RegisterType((*Affinity)(nil), "k8s.io.client-go.1.5.pkg.api.v1.Affinity") - proto.RegisterType((*AttachedVolume)(nil), "k8s.io.client-go.1.5.pkg.api.v1.AttachedVolume") - proto.RegisterType((*AvoidPods)(nil), "k8s.io.client-go.1.5.pkg.api.v1.AvoidPods") - proto.RegisterType((*AzureDiskVolumeSource)(nil), "k8s.io.client-go.1.5.pkg.api.v1.AzureDiskVolumeSource") - proto.RegisterType((*AzureFileVolumeSource)(nil), "k8s.io.client-go.1.5.pkg.api.v1.AzureFileVolumeSource") - proto.RegisterType((*Binding)(nil), "k8s.io.client-go.1.5.pkg.api.v1.Binding") - proto.RegisterType((*Capabilities)(nil), "k8s.io.client-go.1.5.pkg.api.v1.Capabilities") - proto.RegisterType((*CephFSVolumeSource)(nil), "k8s.io.client-go.1.5.pkg.api.v1.CephFSVolumeSource") - proto.RegisterType((*CinderVolumeSource)(nil), "k8s.io.client-go.1.5.pkg.api.v1.CinderVolumeSource") - proto.RegisterType((*ComponentCondition)(nil), "k8s.io.client-go.1.5.pkg.api.v1.ComponentCondition") - proto.RegisterType((*ComponentStatus)(nil), "k8s.io.client-go.1.5.pkg.api.v1.ComponentStatus") - proto.RegisterType((*ComponentStatusList)(nil), "k8s.io.client-go.1.5.pkg.api.v1.ComponentStatusList") - proto.RegisterType((*ConfigMap)(nil), "k8s.io.client-go.1.5.pkg.api.v1.ConfigMap") - proto.RegisterType((*ConfigMapKeySelector)(nil), "k8s.io.client-go.1.5.pkg.api.v1.ConfigMapKeySelector") - proto.RegisterType((*ConfigMapList)(nil), "k8s.io.client-go.1.5.pkg.api.v1.ConfigMapList") - proto.RegisterType((*ConfigMapVolumeSource)(nil), "k8s.io.client-go.1.5.pkg.api.v1.ConfigMapVolumeSource") - proto.RegisterType((*Container)(nil), "k8s.io.client-go.1.5.pkg.api.v1.Container") - proto.RegisterType((*ContainerImage)(nil), "k8s.io.client-go.1.5.pkg.api.v1.ContainerImage") - proto.RegisterType((*ContainerPort)(nil), "k8s.io.client-go.1.5.pkg.api.v1.ContainerPort") - proto.RegisterType((*ContainerState)(nil), "k8s.io.client-go.1.5.pkg.api.v1.ContainerState") - proto.RegisterType((*ContainerStateRunning)(nil), "k8s.io.client-go.1.5.pkg.api.v1.ContainerStateRunning") - proto.RegisterType((*ContainerStateTerminated)(nil), "k8s.io.client-go.1.5.pkg.api.v1.ContainerStateTerminated") - proto.RegisterType((*ContainerStateWaiting)(nil), "k8s.io.client-go.1.5.pkg.api.v1.ContainerStateWaiting") - proto.RegisterType((*ContainerStatus)(nil), "k8s.io.client-go.1.5.pkg.api.v1.ContainerStatus") - proto.RegisterType((*DaemonEndpoint)(nil), "k8s.io.client-go.1.5.pkg.api.v1.DaemonEndpoint") - proto.RegisterType((*DeleteOptions)(nil), "k8s.io.client-go.1.5.pkg.api.v1.DeleteOptions") - proto.RegisterType((*DownwardAPIVolumeFile)(nil), "k8s.io.client-go.1.5.pkg.api.v1.DownwardAPIVolumeFile") - proto.RegisterType((*DownwardAPIVolumeSource)(nil), "k8s.io.client-go.1.5.pkg.api.v1.DownwardAPIVolumeSource") - proto.RegisterType((*EmptyDirVolumeSource)(nil), "k8s.io.client-go.1.5.pkg.api.v1.EmptyDirVolumeSource") - proto.RegisterType((*EndpointAddress)(nil), "k8s.io.client-go.1.5.pkg.api.v1.EndpointAddress") - proto.RegisterType((*EndpointPort)(nil), "k8s.io.client-go.1.5.pkg.api.v1.EndpointPort") - proto.RegisterType((*EndpointSubset)(nil), "k8s.io.client-go.1.5.pkg.api.v1.EndpointSubset") - proto.RegisterType((*Endpoints)(nil), "k8s.io.client-go.1.5.pkg.api.v1.Endpoints") - proto.RegisterType((*EndpointsList)(nil), "k8s.io.client-go.1.5.pkg.api.v1.EndpointsList") - proto.RegisterType((*EnvVar)(nil), "k8s.io.client-go.1.5.pkg.api.v1.EnvVar") - proto.RegisterType((*EnvVarSource)(nil), "k8s.io.client-go.1.5.pkg.api.v1.EnvVarSource") - proto.RegisterType((*Event)(nil), "k8s.io.client-go.1.5.pkg.api.v1.Event") - proto.RegisterType((*EventList)(nil), "k8s.io.client-go.1.5.pkg.api.v1.EventList") - proto.RegisterType((*EventSource)(nil), "k8s.io.client-go.1.5.pkg.api.v1.EventSource") - proto.RegisterType((*ExecAction)(nil), "k8s.io.client-go.1.5.pkg.api.v1.ExecAction") - proto.RegisterType((*ExportOptions)(nil), "k8s.io.client-go.1.5.pkg.api.v1.ExportOptions") - proto.RegisterType((*FCVolumeSource)(nil), "k8s.io.client-go.1.5.pkg.api.v1.FCVolumeSource") - proto.RegisterType((*FlexVolumeSource)(nil), "k8s.io.client-go.1.5.pkg.api.v1.FlexVolumeSource") - proto.RegisterType((*FlockerVolumeSource)(nil), "k8s.io.client-go.1.5.pkg.api.v1.FlockerVolumeSource") - proto.RegisterType((*GCEPersistentDiskVolumeSource)(nil), "k8s.io.client-go.1.5.pkg.api.v1.GCEPersistentDiskVolumeSource") - proto.RegisterType((*GitRepoVolumeSource)(nil), "k8s.io.client-go.1.5.pkg.api.v1.GitRepoVolumeSource") - proto.RegisterType((*GlusterfsVolumeSource)(nil), "k8s.io.client-go.1.5.pkg.api.v1.GlusterfsVolumeSource") - proto.RegisterType((*HTTPGetAction)(nil), "k8s.io.client-go.1.5.pkg.api.v1.HTTPGetAction") - proto.RegisterType((*HTTPHeader)(nil), "k8s.io.client-go.1.5.pkg.api.v1.HTTPHeader") - proto.RegisterType((*Handler)(nil), "k8s.io.client-go.1.5.pkg.api.v1.Handler") - proto.RegisterType((*HostPathVolumeSource)(nil), "k8s.io.client-go.1.5.pkg.api.v1.HostPathVolumeSource") - proto.RegisterType((*ISCSIVolumeSource)(nil), "k8s.io.client-go.1.5.pkg.api.v1.ISCSIVolumeSource") - proto.RegisterType((*KeyToPath)(nil), "k8s.io.client-go.1.5.pkg.api.v1.KeyToPath") - proto.RegisterType((*Lifecycle)(nil), "k8s.io.client-go.1.5.pkg.api.v1.Lifecycle") - proto.RegisterType((*LimitRange)(nil), "k8s.io.client-go.1.5.pkg.api.v1.LimitRange") - proto.RegisterType((*LimitRangeItem)(nil), "k8s.io.client-go.1.5.pkg.api.v1.LimitRangeItem") - proto.RegisterType((*LimitRangeList)(nil), "k8s.io.client-go.1.5.pkg.api.v1.LimitRangeList") - proto.RegisterType((*LimitRangeSpec)(nil), "k8s.io.client-go.1.5.pkg.api.v1.LimitRangeSpec") - proto.RegisterType((*List)(nil), "k8s.io.client-go.1.5.pkg.api.v1.List") - proto.RegisterType((*ListOptions)(nil), "k8s.io.client-go.1.5.pkg.api.v1.ListOptions") - proto.RegisterType((*LoadBalancerIngress)(nil), "k8s.io.client-go.1.5.pkg.api.v1.LoadBalancerIngress") - proto.RegisterType((*LoadBalancerStatus)(nil), "k8s.io.client-go.1.5.pkg.api.v1.LoadBalancerStatus") - proto.RegisterType((*LocalObjectReference)(nil), "k8s.io.client-go.1.5.pkg.api.v1.LocalObjectReference") - proto.RegisterType((*NFSVolumeSource)(nil), "k8s.io.client-go.1.5.pkg.api.v1.NFSVolumeSource") - proto.RegisterType((*Namespace)(nil), "k8s.io.client-go.1.5.pkg.api.v1.Namespace") - proto.RegisterType((*NamespaceList)(nil), "k8s.io.client-go.1.5.pkg.api.v1.NamespaceList") - proto.RegisterType((*NamespaceSpec)(nil), "k8s.io.client-go.1.5.pkg.api.v1.NamespaceSpec") - proto.RegisterType((*NamespaceStatus)(nil), "k8s.io.client-go.1.5.pkg.api.v1.NamespaceStatus") - proto.RegisterType((*Node)(nil), "k8s.io.client-go.1.5.pkg.api.v1.Node") - proto.RegisterType((*NodeAddress)(nil), "k8s.io.client-go.1.5.pkg.api.v1.NodeAddress") - proto.RegisterType((*NodeAffinity)(nil), "k8s.io.client-go.1.5.pkg.api.v1.NodeAffinity") - proto.RegisterType((*NodeCondition)(nil), "k8s.io.client-go.1.5.pkg.api.v1.NodeCondition") - proto.RegisterType((*NodeDaemonEndpoints)(nil), "k8s.io.client-go.1.5.pkg.api.v1.NodeDaemonEndpoints") - proto.RegisterType((*NodeList)(nil), "k8s.io.client-go.1.5.pkg.api.v1.NodeList") - proto.RegisterType((*NodeProxyOptions)(nil), "k8s.io.client-go.1.5.pkg.api.v1.NodeProxyOptions") - proto.RegisterType((*NodeSelector)(nil), "k8s.io.client-go.1.5.pkg.api.v1.NodeSelector") - proto.RegisterType((*NodeSelectorRequirement)(nil), "k8s.io.client-go.1.5.pkg.api.v1.NodeSelectorRequirement") - proto.RegisterType((*NodeSelectorTerm)(nil), "k8s.io.client-go.1.5.pkg.api.v1.NodeSelectorTerm") - proto.RegisterType((*NodeSpec)(nil), "k8s.io.client-go.1.5.pkg.api.v1.NodeSpec") - proto.RegisterType((*NodeStatus)(nil), "k8s.io.client-go.1.5.pkg.api.v1.NodeStatus") - proto.RegisterType((*NodeSystemInfo)(nil), "k8s.io.client-go.1.5.pkg.api.v1.NodeSystemInfo") - proto.RegisterType((*ObjectFieldSelector)(nil), "k8s.io.client-go.1.5.pkg.api.v1.ObjectFieldSelector") - proto.RegisterType((*ObjectMeta)(nil), "k8s.io.client-go.1.5.pkg.api.v1.ObjectMeta") - proto.RegisterType((*ObjectReference)(nil), "k8s.io.client-go.1.5.pkg.api.v1.ObjectReference") - proto.RegisterType((*OwnerReference)(nil), "k8s.io.client-go.1.5.pkg.api.v1.OwnerReference") - proto.RegisterType((*PersistentVolume)(nil), "k8s.io.client-go.1.5.pkg.api.v1.PersistentVolume") - proto.RegisterType((*PersistentVolumeClaim)(nil), "k8s.io.client-go.1.5.pkg.api.v1.PersistentVolumeClaim") - proto.RegisterType((*PersistentVolumeClaimList)(nil), "k8s.io.client-go.1.5.pkg.api.v1.PersistentVolumeClaimList") - proto.RegisterType((*PersistentVolumeClaimSpec)(nil), "k8s.io.client-go.1.5.pkg.api.v1.PersistentVolumeClaimSpec") - proto.RegisterType((*PersistentVolumeClaimStatus)(nil), "k8s.io.client-go.1.5.pkg.api.v1.PersistentVolumeClaimStatus") - proto.RegisterType((*PersistentVolumeClaimVolumeSource)(nil), "k8s.io.client-go.1.5.pkg.api.v1.PersistentVolumeClaimVolumeSource") - proto.RegisterType((*PersistentVolumeList)(nil), "k8s.io.client-go.1.5.pkg.api.v1.PersistentVolumeList") - proto.RegisterType((*PersistentVolumeSource)(nil), "k8s.io.client-go.1.5.pkg.api.v1.PersistentVolumeSource") - proto.RegisterType((*PersistentVolumeSpec)(nil), "k8s.io.client-go.1.5.pkg.api.v1.PersistentVolumeSpec") - proto.RegisterType((*PersistentVolumeStatus)(nil), "k8s.io.client-go.1.5.pkg.api.v1.PersistentVolumeStatus") - proto.RegisterType((*Pod)(nil), "k8s.io.client-go.1.5.pkg.api.v1.Pod") - proto.RegisterType((*PodAffinity)(nil), "k8s.io.client-go.1.5.pkg.api.v1.PodAffinity") - proto.RegisterType((*PodAffinityTerm)(nil), "k8s.io.client-go.1.5.pkg.api.v1.PodAffinityTerm") - proto.RegisterType((*PodAntiAffinity)(nil), "k8s.io.client-go.1.5.pkg.api.v1.PodAntiAffinity") - proto.RegisterType((*PodAttachOptions)(nil), "k8s.io.client-go.1.5.pkg.api.v1.PodAttachOptions") - proto.RegisterType((*PodCondition)(nil), "k8s.io.client-go.1.5.pkg.api.v1.PodCondition") - proto.RegisterType((*PodExecOptions)(nil), "k8s.io.client-go.1.5.pkg.api.v1.PodExecOptions") - proto.RegisterType((*PodList)(nil), "k8s.io.client-go.1.5.pkg.api.v1.PodList") - proto.RegisterType((*PodLogOptions)(nil), "k8s.io.client-go.1.5.pkg.api.v1.PodLogOptions") - proto.RegisterType((*PodProxyOptions)(nil), "k8s.io.client-go.1.5.pkg.api.v1.PodProxyOptions") - proto.RegisterType((*PodSecurityContext)(nil), "k8s.io.client-go.1.5.pkg.api.v1.PodSecurityContext") - proto.RegisterType((*PodSignature)(nil), "k8s.io.client-go.1.5.pkg.api.v1.PodSignature") - proto.RegisterType((*PodSpec)(nil), "k8s.io.client-go.1.5.pkg.api.v1.PodSpec") - proto.RegisterType((*PodStatus)(nil), "k8s.io.client-go.1.5.pkg.api.v1.PodStatus") - proto.RegisterType((*PodStatusResult)(nil), "k8s.io.client-go.1.5.pkg.api.v1.PodStatusResult") - proto.RegisterType((*PodTemplate)(nil), "k8s.io.client-go.1.5.pkg.api.v1.PodTemplate") - proto.RegisterType((*PodTemplateList)(nil), "k8s.io.client-go.1.5.pkg.api.v1.PodTemplateList") - proto.RegisterType((*PodTemplateSpec)(nil), "k8s.io.client-go.1.5.pkg.api.v1.PodTemplateSpec") - proto.RegisterType((*Preconditions)(nil), "k8s.io.client-go.1.5.pkg.api.v1.Preconditions") - proto.RegisterType((*PreferAvoidPodsEntry)(nil), "k8s.io.client-go.1.5.pkg.api.v1.PreferAvoidPodsEntry") - proto.RegisterType((*PreferredSchedulingTerm)(nil), "k8s.io.client-go.1.5.pkg.api.v1.PreferredSchedulingTerm") - proto.RegisterType((*Probe)(nil), "k8s.io.client-go.1.5.pkg.api.v1.Probe") - proto.RegisterType((*QuobyteVolumeSource)(nil), "k8s.io.client-go.1.5.pkg.api.v1.QuobyteVolumeSource") - proto.RegisterType((*RBDVolumeSource)(nil), "k8s.io.client-go.1.5.pkg.api.v1.RBDVolumeSource") - proto.RegisterType((*RangeAllocation)(nil), "k8s.io.client-go.1.5.pkg.api.v1.RangeAllocation") - proto.RegisterType((*ReplicationController)(nil), "k8s.io.client-go.1.5.pkg.api.v1.ReplicationController") - proto.RegisterType((*ReplicationControllerList)(nil), "k8s.io.client-go.1.5.pkg.api.v1.ReplicationControllerList") - proto.RegisterType((*ReplicationControllerSpec)(nil), "k8s.io.client-go.1.5.pkg.api.v1.ReplicationControllerSpec") - proto.RegisterType((*ReplicationControllerStatus)(nil), "k8s.io.client-go.1.5.pkg.api.v1.ReplicationControllerStatus") - proto.RegisterType((*ResourceFieldSelector)(nil), "k8s.io.client-go.1.5.pkg.api.v1.ResourceFieldSelector") - proto.RegisterType((*ResourceQuota)(nil), "k8s.io.client-go.1.5.pkg.api.v1.ResourceQuota") - proto.RegisterType((*ResourceQuotaList)(nil), "k8s.io.client-go.1.5.pkg.api.v1.ResourceQuotaList") - proto.RegisterType((*ResourceQuotaSpec)(nil), "k8s.io.client-go.1.5.pkg.api.v1.ResourceQuotaSpec") - proto.RegisterType((*ResourceQuotaStatus)(nil), "k8s.io.client-go.1.5.pkg.api.v1.ResourceQuotaStatus") - proto.RegisterType((*ResourceRequirements)(nil), "k8s.io.client-go.1.5.pkg.api.v1.ResourceRequirements") - proto.RegisterType((*SELinuxOptions)(nil), "k8s.io.client-go.1.5.pkg.api.v1.SELinuxOptions") - proto.RegisterType((*Secret)(nil), "k8s.io.client-go.1.5.pkg.api.v1.Secret") - proto.RegisterType((*SecretKeySelector)(nil), "k8s.io.client-go.1.5.pkg.api.v1.SecretKeySelector") - proto.RegisterType((*SecretList)(nil), "k8s.io.client-go.1.5.pkg.api.v1.SecretList") - proto.RegisterType((*SecretVolumeSource)(nil), "k8s.io.client-go.1.5.pkg.api.v1.SecretVolumeSource") - proto.RegisterType((*SecurityContext)(nil), "k8s.io.client-go.1.5.pkg.api.v1.SecurityContext") - proto.RegisterType((*SerializedReference)(nil), "k8s.io.client-go.1.5.pkg.api.v1.SerializedReference") - proto.RegisterType((*Service)(nil), "k8s.io.client-go.1.5.pkg.api.v1.Service") - proto.RegisterType((*ServiceAccount)(nil), "k8s.io.client-go.1.5.pkg.api.v1.ServiceAccount") - proto.RegisterType((*ServiceAccountList)(nil), "k8s.io.client-go.1.5.pkg.api.v1.ServiceAccountList") - proto.RegisterType((*ServiceList)(nil), "k8s.io.client-go.1.5.pkg.api.v1.ServiceList") - proto.RegisterType((*ServicePort)(nil), "k8s.io.client-go.1.5.pkg.api.v1.ServicePort") - proto.RegisterType((*ServiceProxyOptions)(nil), "k8s.io.client-go.1.5.pkg.api.v1.ServiceProxyOptions") - proto.RegisterType((*ServiceSpec)(nil), "k8s.io.client-go.1.5.pkg.api.v1.ServiceSpec") - proto.RegisterType((*ServiceStatus)(nil), "k8s.io.client-go.1.5.pkg.api.v1.ServiceStatus") - proto.RegisterType((*TCPSocketAction)(nil), "k8s.io.client-go.1.5.pkg.api.v1.TCPSocketAction") - proto.RegisterType((*Taint)(nil), "k8s.io.client-go.1.5.pkg.api.v1.Taint") - proto.RegisterType((*Toleration)(nil), "k8s.io.client-go.1.5.pkg.api.v1.Toleration") - proto.RegisterType((*Volume)(nil), "k8s.io.client-go.1.5.pkg.api.v1.Volume") - proto.RegisterType((*VolumeMount)(nil), "k8s.io.client-go.1.5.pkg.api.v1.VolumeMount") - proto.RegisterType((*VolumeSource)(nil), "k8s.io.client-go.1.5.pkg.api.v1.VolumeSource") - proto.RegisterType((*VsphereVirtualDiskVolumeSource)(nil), "k8s.io.client-go.1.5.pkg.api.v1.VsphereVirtualDiskVolumeSource") - proto.RegisterType((*WeightedPodAffinityTerm)(nil), "k8s.io.client-go.1.5.pkg.api.v1.WeightedPodAffinityTerm") + proto.RegisterType((*AWSElasticBlockStoreVolumeSource)(nil), "k8s.io.client-go.pkg.api.v1.AWSElasticBlockStoreVolumeSource") + proto.RegisterType((*Affinity)(nil), "k8s.io.client-go.pkg.api.v1.Affinity") + proto.RegisterType((*AttachedVolume)(nil), "k8s.io.client-go.pkg.api.v1.AttachedVolume") + proto.RegisterType((*AvoidPods)(nil), "k8s.io.client-go.pkg.api.v1.AvoidPods") + proto.RegisterType((*AzureDiskVolumeSource)(nil), "k8s.io.client-go.pkg.api.v1.AzureDiskVolumeSource") + proto.RegisterType((*AzureFileVolumeSource)(nil), "k8s.io.client-go.pkg.api.v1.AzureFileVolumeSource") + proto.RegisterType((*Binding)(nil), "k8s.io.client-go.pkg.api.v1.Binding") + proto.RegisterType((*Capabilities)(nil), "k8s.io.client-go.pkg.api.v1.Capabilities") + proto.RegisterType((*CephFSVolumeSource)(nil), "k8s.io.client-go.pkg.api.v1.CephFSVolumeSource") + proto.RegisterType((*CinderVolumeSource)(nil), "k8s.io.client-go.pkg.api.v1.CinderVolumeSource") + proto.RegisterType((*ComponentCondition)(nil), "k8s.io.client-go.pkg.api.v1.ComponentCondition") + proto.RegisterType((*ComponentStatus)(nil), "k8s.io.client-go.pkg.api.v1.ComponentStatus") + proto.RegisterType((*ComponentStatusList)(nil), "k8s.io.client-go.pkg.api.v1.ComponentStatusList") + proto.RegisterType((*ConfigMap)(nil), "k8s.io.client-go.pkg.api.v1.ConfigMap") + proto.RegisterType((*ConfigMapKeySelector)(nil), "k8s.io.client-go.pkg.api.v1.ConfigMapKeySelector") + proto.RegisterType((*ConfigMapList)(nil), "k8s.io.client-go.pkg.api.v1.ConfigMapList") + proto.RegisterType((*ConfigMapVolumeSource)(nil), "k8s.io.client-go.pkg.api.v1.ConfigMapVolumeSource") + proto.RegisterType((*Container)(nil), "k8s.io.client-go.pkg.api.v1.Container") + proto.RegisterType((*ContainerImage)(nil), "k8s.io.client-go.pkg.api.v1.ContainerImage") + proto.RegisterType((*ContainerPort)(nil), "k8s.io.client-go.pkg.api.v1.ContainerPort") + proto.RegisterType((*ContainerState)(nil), "k8s.io.client-go.pkg.api.v1.ContainerState") + proto.RegisterType((*ContainerStateRunning)(nil), "k8s.io.client-go.pkg.api.v1.ContainerStateRunning") + proto.RegisterType((*ContainerStateTerminated)(nil), "k8s.io.client-go.pkg.api.v1.ContainerStateTerminated") + proto.RegisterType((*ContainerStateWaiting)(nil), "k8s.io.client-go.pkg.api.v1.ContainerStateWaiting") + proto.RegisterType((*ContainerStatus)(nil), "k8s.io.client-go.pkg.api.v1.ContainerStatus") + proto.RegisterType((*DaemonEndpoint)(nil), "k8s.io.client-go.pkg.api.v1.DaemonEndpoint") + proto.RegisterType((*DeleteOptions)(nil), "k8s.io.client-go.pkg.api.v1.DeleteOptions") + proto.RegisterType((*DownwardAPIVolumeFile)(nil), "k8s.io.client-go.pkg.api.v1.DownwardAPIVolumeFile") + proto.RegisterType((*DownwardAPIVolumeSource)(nil), "k8s.io.client-go.pkg.api.v1.DownwardAPIVolumeSource") + proto.RegisterType((*EmptyDirVolumeSource)(nil), "k8s.io.client-go.pkg.api.v1.EmptyDirVolumeSource") + proto.RegisterType((*EndpointAddress)(nil), "k8s.io.client-go.pkg.api.v1.EndpointAddress") + proto.RegisterType((*EndpointPort)(nil), "k8s.io.client-go.pkg.api.v1.EndpointPort") + proto.RegisterType((*EndpointSubset)(nil), "k8s.io.client-go.pkg.api.v1.EndpointSubset") + proto.RegisterType((*Endpoints)(nil), "k8s.io.client-go.pkg.api.v1.Endpoints") + proto.RegisterType((*EndpointsList)(nil), "k8s.io.client-go.pkg.api.v1.EndpointsList") + proto.RegisterType((*EnvVar)(nil), "k8s.io.client-go.pkg.api.v1.EnvVar") + proto.RegisterType((*EnvVarSource)(nil), "k8s.io.client-go.pkg.api.v1.EnvVarSource") + proto.RegisterType((*Event)(nil), "k8s.io.client-go.pkg.api.v1.Event") + proto.RegisterType((*EventList)(nil), "k8s.io.client-go.pkg.api.v1.EventList") + proto.RegisterType((*EventSource)(nil), "k8s.io.client-go.pkg.api.v1.EventSource") + proto.RegisterType((*ExecAction)(nil), "k8s.io.client-go.pkg.api.v1.ExecAction") + proto.RegisterType((*ExportOptions)(nil), "k8s.io.client-go.pkg.api.v1.ExportOptions") + proto.RegisterType((*FCVolumeSource)(nil), "k8s.io.client-go.pkg.api.v1.FCVolumeSource") + proto.RegisterType((*FlexVolumeSource)(nil), "k8s.io.client-go.pkg.api.v1.FlexVolumeSource") + proto.RegisterType((*FlockerVolumeSource)(nil), "k8s.io.client-go.pkg.api.v1.FlockerVolumeSource") + proto.RegisterType((*GCEPersistentDiskVolumeSource)(nil), "k8s.io.client-go.pkg.api.v1.GCEPersistentDiskVolumeSource") + proto.RegisterType((*GitRepoVolumeSource)(nil), "k8s.io.client-go.pkg.api.v1.GitRepoVolumeSource") + proto.RegisterType((*GlusterfsVolumeSource)(nil), "k8s.io.client-go.pkg.api.v1.GlusterfsVolumeSource") + proto.RegisterType((*HTTPGetAction)(nil), "k8s.io.client-go.pkg.api.v1.HTTPGetAction") + proto.RegisterType((*HTTPHeader)(nil), "k8s.io.client-go.pkg.api.v1.HTTPHeader") + proto.RegisterType((*Handler)(nil), "k8s.io.client-go.pkg.api.v1.Handler") + proto.RegisterType((*HostPathVolumeSource)(nil), "k8s.io.client-go.pkg.api.v1.HostPathVolumeSource") + proto.RegisterType((*ISCSIVolumeSource)(nil), "k8s.io.client-go.pkg.api.v1.ISCSIVolumeSource") + proto.RegisterType((*KeyToPath)(nil), "k8s.io.client-go.pkg.api.v1.KeyToPath") + proto.RegisterType((*Lifecycle)(nil), "k8s.io.client-go.pkg.api.v1.Lifecycle") + proto.RegisterType((*LimitRange)(nil), "k8s.io.client-go.pkg.api.v1.LimitRange") + proto.RegisterType((*LimitRangeItem)(nil), "k8s.io.client-go.pkg.api.v1.LimitRangeItem") + proto.RegisterType((*LimitRangeList)(nil), "k8s.io.client-go.pkg.api.v1.LimitRangeList") + proto.RegisterType((*LimitRangeSpec)(nil), "k8s.io.client-go.pkg.api.v1.LimitRangeSpec") + proto.RegisterType((*List)(nil), "k8s.io.client-go.pkg.api.v1.List") + proto.RegisterType((*ListOptions)(nil), "k8s.io.client-go.pkg.api.v1.ListOptions") + proto.RegisterType((*LoadBalancerIngress)(nil), "k8s.io.client-go.pkg.api.v1.LoadBalancerIngress") + proto.RegisterType((*LoadBalancerStatus)(nil), "k8s.io.client-go.pkg.api.v1.LoadBalancerStatus") + proto.RegisterType((*LocalObjectReference)(nil), "k8s.io.client-go.pkg.api.v1.LocalObjectReference") + proto.RegisterType((*NFSVolumeSource)(nil), "k8s.io.client-go.pkg.api.v1.NFSVolumeSource") + proto.RegisterType((*Namespace)(nil), "k8s.io.client-go.pkg.api.v1.Namespace") + proto.RegisterType((*NamespaceList)(nil), "k8s.io.client-go.pkg.api.v1.NamespaceList") + proto.RegisterType((*NamespaceSpec)(nil), "k8s.io.client-go.pkg.api.v1.NamespaceSpec") + proto.RegisterType((*NamespaceStatus)(nil), "k8s.io.client-go.pkg.api.v1.NamespaceStatus") + proto.RegisterType((*Node)(nil), "k8s.io.client-go.pkg.api.v1.Node") + proto.RegisterType((*NodeAddress)(nil), "k8s.io.client-go.pkg.api.v1.NodeAddress") + proto.RegisterType((*NodeAffinity)(nil), "k8s.io.client-go.pkg.api.v1.NodeAffinity") + proto.RegisterType((*NodeCondition)(nil), "k8s.io.client-go.pkg.api.v1.NodeCondition") + proto.RegisterType((*NodeDaemonEndpoints)(nil), "k8s.io.client-go.pkg.api.v1.NodeDaemonEndpoints") + proto.RegisterType((*NodeList)(nil), "k8s.io.client-go.pkg.api.v1.NodeList") + proto.RegisterType((*NodeProxyOptions)(nil), "k8s.io.client-go.pkg.api.v1.NodeProxyOptions") + proto.RegisterType((*NodeSelector)(nil), "k8s.io.client-go.pkg.api.v1.NodeSelector") + proto.RegisterType((*NodeSelectorRequirement)(nil), "k8s.io.client-go.pkg.api.v1.NodeSelectorRequirement") + proto.RegisterType((*NodeSelectorTerm)(nil), "k8s.io.client-go.pkg.api.v1.NodeSelectorTerm") + proto.RegisterType((*NodeSpec)(nil), "k8s.io.client-go.pkg.api.v1.NodeSpec") + proto.RegisterType((*NodeStatus)(nil), "k8s.io.client-go.pkg.api.v1.NodeStatus") + proto.RegisterType((*NodeSystemInfo)(nil), "k8s.io.client-go.pkg.api.v1.NodeSystemInfo") + proto.RegisterType((*ObjectFieldSelector)(nil), "k8s.io.client-go.pkg.api.v1.ObjectFieldSelector") + proto.RegisterType((*ObjectMeta)(nil), "k8s.io.client-go.pkg.api.v1.ObjectMeta") + proto.RegisterType((*ObjectReference)(nil), "k8s.io.client-go.pkg.api.v1.ObjectReference") + proto.RegisterType((*OwnerReference)(nil), "k8s.io.client-go.pkg.api.v1.OwnerReference") + proto.RegisterType((*PersistentVolume)(nil), "k8s.io.client-go.pkg.api.v1.PersistentVolume") + proto.RegisterType((*PersistentVolumeClaim)(nil), "k8s.io.client-go.pkg.api.v1.PersistentVolumeClaim") + proto.RegisterType((*PersistentVolumeClaimList)(nil), "k8s.io.client-go.pkg.api.v1.PersistentVolumeClaimList") + proto.RegisterType((*PersistentVolumeClaimSpec)(nil), "k8s.io.client-go.pkg.api.v1.PersistentVolumeClaimSpec") + proto.RegisterType((*PersistentVolumeClaimStatus)(nil), "k8s.io.client-go.pkg.api.v1.PersistentVolumeClaimStatus") + proto.RegisterType((*PersistentVolumeClaimVolumeSource)(nil), "k8s.io.client-go.pkg.api.v1.PersistentVolumeClaimVolumeSource") + proto.RegisterType((*PersistentVolumeList)(nil), "k8s.io.client-go.pkg.api.v1.PersistentVolumeList") + proto.RegisterType((*PersistentVolumeSource)(nil), "k8s.io.client-go.pkg.api.v1.PersistentVolumeSource") + proto.RegisterType((*PersistentVolumeSpec)(nil), "k8s.io.client-go.pkg.api.v1.PersistentVolumeSpec") + proto.RegisterType((*PersistentVolumeStatus)(nil), "k8s.io.client-go.pkg.api.v1.PersistentVolumeStatus") + proto.RegisterType((*PhotonPersistentDiskVolumeSource)(nil), "k8s.io.client-go.pkg.api.v1.PhotonPersistentDiskVolumeSource") + proto.RegisterType((*Pod)(nil), "k8s.io.client-go.pkg.api.v1.Pod") + proto.RegisterType((*PodAffinity)(nil), "k8s.io.client-go.pkg.api.v1.PodAffinity") + proto.RegisterType((*PodAffinityTerm)(nil), "k8s.io.client-go.pkg.api.v1.PodAffinityTerm") + proto.RegisterType((*PodAntiAffinity)(nil), "k8s.io.client-go.pkg.api.v1.PodAntiAffinity") + proto.RegisterType((*PodAttachOptions)(nil), "k8s.io.client-go.pkg.api.v1.PodAttachOptions") + proto.RegisterType((*PodCondition)(nil), "k8s.io.client-go.pkg.api.v1.PodCondition") + proto.RegisterType((*PodExecOptions)(nil), "k8s.io.client-go.pkg.api.v1.PodExecOptions") + proto.RegisterType((*PodList)(nil), "k8s.io.client-go.pkg.api.v1.PodList") + proto.RegisterType((*PodLogOptions)(nil), "k8s.io.client-go.pkg.api.v1.PodLogOptions") + proto.RegisterType((*PodProxyOptions)(nil), "k8s.io.client-go.pkg.api.v1.PodProxyOptions") + proto.RegisterType((*PodSecurityContext)(nil), "k8s.io.client-go.pkg.api.v1.PodSecurityContext") + proto.RegisterType((*PodSignature)(nil), "k8s.io.client-go.pkg.api.v1.PodSignature") + proto.RegisterType((*PodSpec)(nil), "k8s.io.client-go.pkg.api.v1.PodSpec") + proto.RegisterType((*PodStatus)(nil), "k8s.io.client-go.pkg.api.v1.PodStatus") + proto.RegisterType((*PodStatusResult)(nil), "k8s.io.client-go.pkg.api.v1.PodStatusResult") + proto.RegisterType((*PodTemplate)(nil), "k8s.io.client-go.pkg.api.v1.PodTemplate") + proto.RegisterType((*PodTemplateList)(nil), "k8s.io.client-go.pkg.api.v1.PodTemplateList") + proto.RegisterType((*PodTemplateSpec)(nil), "k8s.io.client-go.pkg.api.v1.PodTemplateSpec") + proto.RegisterType((*Preconditions)(nil), "k8s.io.client-go.pkg.api.v1.Preconditions") + proto.RegisterType((*PreferAvoidPodsEntry)(nil), "k8s.io.client-go.pkg.api.v1.PreferAvoidPodsEntry") + proto.RegisterType((*PreferredSchedulingTerm)(nil), "k8s.io.client-go.pkg.api.v1.PreferredSchedulingTerm") + proto.RegisterType((*Probe)(nil), "k8s.io.client-go.pkg.api.v1.Probe") + proto.RegisterType((*QuobyteVolumeSource)(nil), "k8s.io.client-go.pkg.api.v1.QuobyteVolumeSource") + proto.RegisterType((*RBDVolumeSource)(nil), "k8s.io.client-go.pkg.api.v1.RBDVolumeSource") + proto.RegisterType((*RangeAllocation)(nil), "k8s.io.client-go.pkg.api.v1.RangeAllocation") + proto.RegisterType((*ReplicationController)(nil), "k8s.io.client-go.pkg.api.v1.ReplicationController") + proto.RegisterType((*ReplicationControllerCondition)(nil), "k8s.io.client-go.pkg.api.v1.ReplicationControllerCondition") + proto.RegisterType((*ReplicationControllerList)(nil), "k8s.io.client-go.pkg.api.v1.ReplicationControllerList") + proto.RegisterType((*ReplicationControllerSpec)(nil), "k8s.io.client-go.pkg.api.v1.ReplicationControllerSpec") + proto.RegisterType((*ReplicationControllerStatus)(nil), "k8s.io.client-go.pkg.api.v1.ReplicationControllerStatus") + proto.RegisterType((*ResourceFieldSelector)(nil), "k8s.io.client-go.pkg.api.v1.ResourceFieldSelector") + proto.RegisterType((*ResourceQuota)(nil), "k8s.io.client-go.pkg.api.v1.ResourceQuota") + proto.RegisterType((*ResourceQuotaList)(nil), "k8s.io.client-go.pkg.api.v1.ResourceQuotaList") + proto.RegisterType((*ResourceQuotaSpec)(nil), "k8s.io.client-go.pkg.api.v1.ResourceQuotaSpec") + proto.RegisterType((*ResourceQuotaStatus)(nil), "k8s.io.client-go.pkg.api.v1.ResourceQuotaStatus") + proto.RegisterType((*ResourceRequirements)(nil), "k8s.io.client-go.pkg.api.v1.ResourceRequirements") + proto.RegisterType((*SELinuxOptions)(nil), "k8s.io.client-go.pkg.api.v1.SELinuxOptions") + proto.RegisterType((*Secret)(nil), "k8s.io.client-go.pkg.api.v1.Secret") + proto.RegisterType((*SecretKeySelector)(nil), "k8s.io.client-go.pkg.api.v1.SecretKeySelector") + proto.RegisterType((*SecretList)(nil), "k8s.io.client-go.pkg.api.v1.SecretList") + proto.RegisterType((*SecretVolumeSource)(nil), "k8s.io.client-go.pkg.api.v1.SecretVolumeSource") + proto.RegisterType((*SecurityContext)(nil), "k8s.io.client-go.pkg.api.v1.SecurityContext") + proto.RegisterType((*SerializedReference)(nil), "k8s.io.client-go.pkg.api.v1.SerializedReference") + proto.RegisterType((*Service)(nil), "k8s.io.client-go.pkg.api.v1.Service") + proto.RegisterType((*ServiceAccount)(nil), "k8s.io.client-go.pkg.api.v1.ServiceAccount") + proto.RegisterType((*ServiceAccountList)(nil), "k8s.io.client-go.pkg.api.v1.ServiceAccountList") + proto.RegisterType((*ServiceList)(nil), "k8s.io.client-go.pkg.api.v1.ServiceList") + proto.RegisterType((*ServicePort)(nil), "k8s.io.client-go.pkg.api.v1.ServicePort") + proto.RegisterType((*ServiceProxyOptions)(nil), "k8s.io.client-go.pkg.api.v1.ServiceProxyOptions") + proto.RegisterType((*ServiceSpec)(nil), "k8s.io.client-go.pkg.api.v1.ServiceSpec") + proto.RegisterType((*ServiceStatus)(nil), "k8s.io.client-go.pkg.api.v1.ServiceStatus") + proto.RegisterType((*TCPSocketAction)(nil), "k8s.io.client-go.pkg.api.v1.TCPSocketAction") + proto.RegisterType((*Taint)(nil), "k8s.io.client-go.pkg.api.v1.Taint") + proto.RegisterType((*Toleration)(nil), "k8s.io.client-go.pkg.api.v1.Toleration") + proto.RegisterType((*Volume)(nil), "k8s.io.client-go.pkg.api.v1.Volume") + proto.RegisterType((*VolumeMount)(nil), "k8s.io.client-go.pkg.api.v1.VolumeMount") + proto.RegisterType((*VolumeSource)(nil), "k8s.io.client-go.pkg.api.v1.VolumeSource") + proto.RegisterType((*VsphereVirtualDiskVolumeSource)(nil), "k8s.io.client-go.pkg.api.v1.VsphereVirtualDiskVolumeSource") + proto.RegisterType((*WeightedPodAffinityTerm)(nil), "k8s.io.client-go.pkg.api.v1.WeightedPodAffinityTerm") } func (m *AWSElasticBlockStoreVolumeSource) Marshal() (data []byte, err error) { size := m.Size() @@ -2939,6 +2955,10 @@ func (m *FlockerVolumeSource) MarshalTo(data []byte) (int, error) { i++ i = encodeVarintGenerated(data, i, uint64(len(m.DatasetName))) i += copy(data[i:], m.DatasetName) + data[i] = 0x12 + i++ + i = encodeVarintGenerated(data, i, uint64(len(m.DatasetUUID))) + i += copy(data[i:], m.DatasetUUID) return i, nil } @@ -5181,6 +5201,18 @@ func (m *PersistentVolumeSource) MarshalTo(data []byte) (int, error) { } i += n103 } + if m.PhotonPersistentDisk != nil { + data[i] = 0x8a + i++ + data[i] = 0x1 + i++ + i = encodeVarintGenerated(data, i, uint64(m.PhotonPersistentDisk.Size())) + n104, err := m.PhotonPersistentDisk.MarshalTo(data[i:]) + if err != nil { + return 0, err + } + i += n104 + } return i, nil } @@ -5214,21 +5246,21 @@ func (m *PersistentVolumeSpec) MarshalTo(data []byte) (int, error) { data[i] = 0x12 i++ i = encodeVarintGenerated(data, i, uint64((&v).Size())) - n104, err := (&v).MarshalTo(data[i:]) + n105, err := (&v).MarshalTo(data[i:]) if err != nil { return 0, err } - i += n104 + i += n105 } } data[i] = 0x12 i++ i = encodeVarintGenerated(data, i, uint64(m.PersistentVolumeSource.Size())) - n105, err := m.PersistentVolumeSource.MarshalTo(data[i:]) + n106, err := m.PersistentVolumeSource.MarshalTo(data[i:]) if err != nil { return 0, err } - i += n105 + i += n106 if len(m.AccessModes) > 0 { for _, s := range m.AccessModes { data[i] = 0x1a @@ -5248,11 +5280,11 @@ func (m *PersistentVolumeSpec) MarshalTo(data []byte) (int, error) { data[i] = 0x22 i++ i = encodeVarintGenerated(data, i, uint64(m.ClaimRef.Size())) - n106, err := m.ClaimRef.MarshalTo(data[i:]) + n107, err := m.ClaimRef.MarshalTo(data[i:]) if err != nil { return 0, err } - i += n106 + i += n107 } data[i] = 0x2a i++ @@ -5291,6 +5323,32 @@ func (m *PersistentVolumeStatus) MarshalTo(data []byte) (int, error) { return i, nil } +func (m *PhotonPersistentDiskVolumeSource) Marshal() (data []byte, err error) { + size := m.Size() + data = make([]byte, size) + n, err := m.MarshalTo(data) + if err != nil { + return nil, err + } + return data[:n], nil +} + +func (m *PhotonPersistentDiskVolumeSource) MarshalTo(data []byte) (int, error) { + var i int + _ = i + var l int + _ = l + data[i] = 0xa + i++ + i = encodeVarintGenerated(data, i, uint64(len(m.PdID))) + i += copy(data[i:], m.PdID) + data[i] = 0x12 + i++ + i = encodeVarintGenerated(data, i, uint64(len(m.FSType))) + i += copy(data[i:], m.FSType) + return i, nil +} + func (m *Pod) Marshal() (data []byte, err error) { size := m.Size() data = make([]byte, size) @@ -5309,27 +5367,27 @@ func (m *Pod) MarshalTo(data []byte) (int, error) { data[i] = 0xa i++ i = encodeVarintGenerated(data, i, uint64(m.ObjectMeta.Size())) - n107, err := m.ObjectMeta.MarshalTo(data[i:]) - if err != nil { - return 0, err - } - i += n107 - data[i] = 0x12 - i++ - i = encodeVarintGenerated(data, i, uint64(m.Spec.Size())) - n108, err := m.Spec.MarshalTo(data[i:]) + n108, err := m.ObjectMeta.MarshalTo(data[i:]) if err != nil { return 0, err } i += n108 - data[i] = 0x1a + data[i] = 0x12 i++ - i = encodeVarintGenerated(data, i, uint64(m.Status.Size())) - n109, err := m.Status.MarshalTo(data[i:]) + i = encodeVarintGenerated(data, i, uint64(m.Spec.Size())) + n109, err := m.Spec.MarshalTo(data[i:]) if err != nil { return 0, err } i += n109 + data[i] = 0x1a + i++ + i = encodeVarintGenerated(data, i, uint64(m.Status.Size())) + n110, err := m.Status.MarshalTo(data[i:]) + if err != nil { + return 0, err + } + i += n110 return i, nil } @@ -5394,11 +5452,11 @@ func (m *PodAffinityTerm) MarshalTo(data []byte) (int, error) { data[i] = 0xa i++ i = encodeVarintGenerated(data, i, uint64(m.LabelSelector.Size())) - n110, err := m.LabelSelector.MarshalTo(data[i:]) + n111, err := m.LabelSelector.MarshalTo(data[i:]) if err != nil { return 0, err } - i += n110 + i += n111 } if len(m.Namespaces) > 0 { for _, s := range m.Namespaces { @@ -5544,19 +5602,19 @@ func (m *PodCondition) MarshalTo(data []byte) (int, error) { data[i] = 0x1a i++ i = encodeVarintGenerated(data, i, uint64(m.LastProbeTime.Size())) - n111, err := m.LastProbeTime.MarshalTo(data[i:]) - if err != nil { - return 0, err - } - i += n111 - data[i] = 0x22 - i++ - i = encodeVarintGenerated(data, i, uint64(m.LastTransitionTime.Size())) - n112, err := m.LastTransitionTime.MarshalTo(data[i:]) + n112, err := m.LastProbeTime.MarshalTo(data[i:]) if err != nil { return 0, err } i += n112 + data[i] = 0x22 + i++ + i = encodeVarintGenerated(data, i, uint64(m.LastTransitionTime.Size())) + n113, err := m.LastTransitionTime.MarshalTo(data[i:]) + if err != nil { + return 0, err + } + i += n113 data[i] = 0x2a i++ i = encodeVarintGenerated(data, i, uint64(len(m.Reason))) @@ -5655,11 +5713,11 @@ func (m *PodList) MarshalTo(data []byte) (int, error) { data[i] = 0xa i++ i = encodeVarintGenerated(data, i, uint64(m.ListMeta.Size())) - n113, err := m.ListMeta.MarshalTo(data[i:]) + n114, err := m.ListMeta.MarshalTo(data[i:]) if err != nil { return 0, err } - i += n113 + i += n114 if len(m.Items) > 0 { for _, msg := range m.Items { data[i] = 0x12 @@ -5719,11 +5777,11 @@ func (m *PodLogOptions) MarshalTo(data []byte) (int, error) { data[i] = 0x2a i++ i = encodeVarintGenerated(data, i, uint64(m.SinceTime.Size())) - n114, err := m.SinceTime.MarshalTo(data[i:]) + n115, err := m.SinceTime.MarshalTo(data[i:]) if err != nil { return 0, err } - i += n114 + i += n115 } data[i] = 0x30 i++ @@ -5787,11 +5845,11 @@ func (m *PodSecurityContext) MarshalTo(data []byte) (int, error) { data[i] = 0xa i++ i = encodeVarintGenerated(data, i, uint64(m.SELinuxOptions.Size())) - n115, err := m.SELinuxOptions.MarshalTo(data[i:]) + n116, err := m.SELinuxOptions.MarshalTo(data[i:]) if err != nil { return 0, err } - i += n115 + i += n116 } if m.RunAsUser != nil { data[i] = 0x10 @@ -5842,11 +5900,11 @@ func (m *PodSignature) MarshalTo(data []byte) (int, error) { data[i] = 0xa i++ i = encodeVarintGenerated(data, i, uint64(m.PodController.Size())) - n116, err := m.PodController.MarshalTo(data[i:]) + n117, err := m.PodController.MarshalTo(data[i:]) if err != nil { return 0, err } - i += n116 + i += n117 } return i, nil } @@ -5965,11 +6023,11 @@ func (m *PodSpec) MarshalTo(data []byte) (int, error) { data[i] = 0x72 i++ i = encodeVarintGenerated(data, i, uint64(m.SecurityContext.Size())) - n117, err := m.SecurityContext.MarshalTo(data[i:]) + n118, err := m.SecurityContext.MarshalTo(data[i:]) if err != nil { return 0, err } - i += n117 + i += n118 } if len(m.ImagePullSecrets) > 0 { for _, msg := range m.ImagePullSecrets { @@ -6049,11 +6107,11 @@ func (m *PodStatus) MarshalTo(data []byte) (int, error) { data[i] = 0x3a i++ i = encodeVarintGenerated(data, i, uint64(m.StartTime.Size())) - n118, err := m.StartTime.MarshalTo(data[i:]) + n119, err := m.StartTime.MarshalTo(data[i:]) if err != nil { return 0, err } - i += n118 + i += n119 } if len(m.ContainerStatuses) > 0 { for _, msg := range m.ContainerStatuses { @@ -6088,19 +6146,19 @@ func (m *PodStatusResult) MarshalTo(data []byte) (int, error) { 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.Status.Size())) - n120, err := m.Status.MarshalTo(data[i:]) + n120, err := m.ObjectMeta.MarshalTo(data[i:]) if err != nil { return 0, err } i += n120 + data[i] = 0x12 + i++ + i = encodeVarintGenerated(data, i, uint64(m.Status.Size())) + n121, err := m.Status.MarshalTo(data[i:]) + if err != nil { + return 0, err + } + i += n121 return i, nil } @@ -6122,19 +6180,19 @@ func (m *PodTemplate) MarshalTo(data []byte) (int, error) { data[i] = 0xa i++ i = encodeVarintGenerated(data, i, uint64(m.ObjectMeta.Size())) - n121, err := m.ObjectMeta.MarshalTo(data[i:]) - if err != nil { - return 0, err - } - i += n121 - data[i] = 0x12 - i++ - i = encodeVarintGenerated(data, i, uint64(m.Template.Size())) - n122, err := m.Template.MarshalTo(data[i:]) + 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.Template.Size())) + n123, err := m.Template.MarshalTo(data[i:]) + if err != nil { + return 0, err + } + i += n123 return i, nil } @@ -6156,11 +6214,11 @@ func (m *PodTemplateList) MarshalTo(data []byte) (int, error) { data[i] = 0xa i++ i = encodeVarintGenerated(data, i, uint64(m.ListMeta.Size())) - n123, err := m.ListMeta.MarshalTo(data[i:]) + n124, err := m.ListMeta.MarshalTo(data[i:]) if err != nil { return 0, err } - i += n123 + i += n124 if len(m.Items) > 0 { for _, msg := range m.Items { data[i] = 0x12 @@ -6194,19 +6252,19 @@ func (m *PodTemplateSpec) MarshalTo(data []byte) (int, error) { data[i] = 0xa i++ i = encodeVarintGenerated(data, i, uint64(m.ObjectMeta.Size())) - n124, err := m.ObjectMeta.MarshalTo(data[i:]) - if err != nil { - return 0, err - } - i += n124 - data[i] = 0x12 - i++ - i = encodeVarintGenerated(data, i, uint64(m.Spec.Size())) - n125, err := m.Spec.MarshalTo(data[i:]) + n125, err := m.ObjectMeta.MarshalTo(data[i:]) if err != nil { return 0, err } i += n125 + data[i] = 0x12 + i++ + i = encodeVarintGenerated(data, i, uint64(m.Spec.Size())) + n126, err := m.Spec.MarshalTo(data[i:]) + if err != nil { + return 0, err + } + i += n126 return i, nil } @@ -6252,19 +6310,19 @@ func (m *PreferAvoidPodsEntry) MarshalTo(data []byte) (int, error) { 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:]) + n127, err := m.PodSignature.MarshalTo(data[i:]) if err != nil { return 0, err } i += n127 + data[i] = 0x12 + i++ + i = encodeVarintGenerated(data, i, uint64(m.EvictionTime.Size())) + n128, err := m.EvictionTime.MarshalTo(data[i:]) + if err != nil { + return 0, err + } + i += n128 data[i] = 0x1a i++ i = encodeVarintGenerated(data, i, uint64(len(m.Reason))) @@ -6297,11 +6355,11 @@ func (m *PreferredSchedulingTerm) MarshalTo(data []byte) (int, error) { data[i] = 0x12 i++ i = encodeVarintGenerated(data, i, uint64(m.Preference.Size())) - n128, err := m.Preference.MarshalTo(data[i:]) + n129, err := m.Preference.MarshalTo(data[i:]) if err != nil { return 0, err } - i += n128 + i += n129 return i, nil } @@ -6323,11 +6381,11 @@ func (m *Probe) MarshalTo(data []byte) (int, error) { data[i] = 0xa i++ i = encodeVarintGenerated(data, i, uint64(m.Handler.Size())) - n129, err := m.Handler.MarshalTo(data[i:]) + n130, err := m.Handler.MarshalTo(data[i:]) if err != nil { return 0, err } - i += n129 + i += n130 data[i] = 0x10 i++ i = encodeVarintGenerated(data, i, uint64(m.InitialDelaySeconds)) @@ -6442,11 +6500,11 @@ func (m *RBDVolumeSource) MarshalTo(data []byte) (int, error) { data[i] = 0x3a i++ i = encodeVarintGenerated(data, i, uint64(m.SecretRef.Size())) - n130, err := m.SecretRef.MarshalTo(data[i:]) + n131, err := m.SecretRef.MarshalTo(data[i:]) if err != nil { return 0, err } - i += n130 + i += n131 } data[i] = 0x40 i++ @@ -6477,11 +6535,11 @@ func (m *RangeAllocation) MarshalTo(data []byte) (int, error) { data[i] = 0xa i++ i = encodeVarintGenerated(data, i, uint64(m.ObjectMeta.Size())) - n131, err := m.ObjectMeta.MarshalTo(data[i:]) + n132, err := m.ObjectMeta.MarshalTo(data[i:]) if err != nil { return 0, err } - i += n131 + i += n132 data[i] = 0x12 i++ i = encodeVarintGenerated(data, i, uint64(len(m.Range))) @@ -6513,27 +6571,69 @@ func (m *ReplicationController) MarshalTo(data []byte) (int, error) { data[i] = 0xa i++ i = encodeVarintGenerated(data, i, uint64(m.ObjectMeta.Size())) - n132, err := m.ObjectMeta.MarshalTo(data[i:]) - if err != nil { - return 0, err - } - i += n132 - data[i] = 0x12 - i++ - i = encodeVarintGenerated(data, i, uint64(m.Spec.Size())) - n133, err := m.Spec.MarshalTo(data[i:]) + n133, err := m.ObjectMeta.MarshalTo(data[i:]) if err != nil { return 0, err } i += n133 - data[i] = 0x1a + data[i] = 0x12 i++ - i = encodeVarintGenerated(data, i, uint64(m.Status.Size())) - n134, err := m.Status.MarshalTo(data[i:]) + i = encodeVarintGenerated(data, i, uint64(m.Spec.Size())) + n134, err := m.Spec.MarshalTo(data[i:]) if err != nil { return 0, err } i += n134 + data[i] = 0x1a + i++ + i = encodeVarintGenerated(data, i, uint64(m.Status.Size())) + n135, err := m.Status.MarshalTo(data[i:]) + if err != nil { + return 0, err + } + i += n135 + return i, nil +} + +func (m *ReplicationControllerCondition) Marshal() (data []byte, err error) { + size := m.Size() + data = make([]byte, size) + n, err := m.MarshalTo(data) + if err != nil { + return nil, err + } + return data[:n], nil +} + +func (m *ReplicationControllerCondition) 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.LastTransitionTime.Size())) + n136, err := m.LastTransitionTime.MarshalTo(data[i:]) + if err != nil { + return 0, err + } + i += n136 + 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.Message))) + i += copy(data[i:], m.Message) return i, nil } @@ -6555,11 +6655,11 @@ func (m *ReplicationControllerList) MarshalTo(data []byte) (int, error) { data[i] = 0xa i++ i = encodeVarintGenerated(data, i, uint64(m.ListMeta.Size())) - n135, err := m.ListMeta.MarshalTo(data[i:]) + n137, err := m.ListMeta.MarshalTo(data[i:]) if err != nil { return 0, err } - i += n135 + i += n137 if len(m.Items) > 0 { for _, msg := range m.Items { data[i] = 0x12 @@ -6616,12 +6716,15 @@ func (m *ReplicationControllerSpec) MarshalTo(data []byte) (int, error) { data[i] = 0x1a i++ i = encodeVarintGenerated(data, i, uint64(m.Template.Size())) - n136, err := m.Template.MarshalTo(data[i:]) + n138, err := m.Template.MarshalTo(data[i:]) if err != nil { return 0, err } - i += n136 + i += n138 } + data[i] = 0x20 + i++ + i = encodeVarintGenerated(data, i, uint64(m.MinReadySeconds)) return i, nil } @@ -6652,6 +6755,21 @@ func (m *ReplicationControllerStatus) MarshalTo(data []byte) (int, error) { data[i] = 0x20 i++ i = encodeVarintGenerated(data, i, uint64(m.ReadyReplicas)) + data[i] = 0x28 + i++ + i = encodeVarintGenerated(data, i, uint64(m.AvailableReplicas)) + if len(m.Conditions) > 0 { + for _, msg := range m.Conditions { + 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 + } + } return i, nil } @@ -6681,11 +6799,11 @@ func (m *ResourceFieldSelector) MarshalTo(data []byte) (int, error) { data[i] = 0x1a i++ i = encodeVarintGenerated(data, i, uint64(m.Divisor.Size())) - n137, err := m.Divisor.MarshalTo(data[i:]) + n139, err := m.Divisor.MarshalTo(data[i:]) if err != nil { return 0, err } - i += n137 + i += n139 return i, nil } @@ -6707,27 +6825,27 @@ func (m *ResourceQuota) MarshalTo(data []byte) (int, error) { data[i] = 0xa i++ i = encodeVarintGenerated(data, i, uint64(m.ObjectMeta.Size())) - n138, err := m.ObjectMeta.MarshalTo(data[i:]) - if err != nil { - return 0, err - } - i += n138 - data[i] = 0x12 - i++ - i = encodeVarintGenerated(data, i, uint64(m.Spec.Size())) - n139, err := m.Spec.MarshalTo(data[i:]) - if err != nil { - return 0, err - } - i += n139 - data[i] = 0x1a - i++ - i = encodeVarintGenerated(data, i, uint64(m.Status.Size())) - n140, err := m.Status.MarshalTo(data[i:]) + n140, err := m.ObjectMeta.MarshalTo(data[i:]) if err != nil { return 0, err } i += n140 + data[i] = 0x12 + i++ + i = encodeVarintGenerated(data, i, uint64(m.Spec.Size())) + n141, err := m.Spec.MarshalTo(data[i:]) + if err != nil { + return 0, err + } + i += n141 + data[i] = 0x1a + i++ + i = encodeVarintGenerated(data, i, uint64(m.Status.Size())) + n142, err := m.Status.MarshalTo(data[i:]) + if err != nil { + return 0, err + } + i += n142 return i, nil } @@ -6749,11 +6867,11 @@ func (m *ResourceQuotaList) MarshalTo(data []byte) (int, error) { data[i] = 0xa i++ i = encodeVarintGenerated(data, i, uint64(m.ListMeta.Size())) - n141, err := m.ListMeta.MarshalTo(data[i:]) + n143, err := m.ListMeta.MarshalTo(data[i:]) if err != nil { return 0, err } - i += n141 + i += n143 if len(m.Items) > 0 { for _, msg := range m.Items { data[i] = 0x12 @@ -6799,11 +6917,11 @@ func (m *ResourceQuotaSpec) MarshalTo(data []byte) (int, error) { data[i] = 0x12 i++ i = encodeVarintGenerated(data, i, uint64((&v).Size())) - n142, err := (&v).MarshalTo(data[i:]) + n144, err := (&v).MarshalTo(data[i:]) if err != nil { return 0, err } - i += n142 + i += n144 } } if len(m.Scopes) > 0 { @@ -6854,11 +6972,11 @@ func (m *ResourceQuotaStatus) MarshalTo(data []byte) (int, error) { data[i] = 0x12 i++ i = encodeVarintGenerated(data, i, uint64((&v).Size())) - n143, err := (&v).MarshalTo(data[i:]) + n145, err := (&v).MarshalTo(data[i:]) if err != nil { return 0, err } - i += n143 + i += n145 } } if len(m.Used) > 0 { @@ -6876,11 +6994,11 @@ func (m *ResourceQuotaStatus) MarshalTo(data []byte) (int, error) { data[i] = 0x12 i++ i = encodeVarintGenerated(data, i, uint64((&v).Size())) - n144, err := (&v).MarshalTo(data[i:]) + n146, err := (&v).MarshalTo(data[i:]) if err != nil { return 0, err } - i += n144 + i += n146 } } return i, nil @@ -6916,11 +7034,11 @@ func (m *ResourceRequirements) MarshalTo(data []byte) (int, error) { data[i] = 0x12 i++ i = encodeVarintGenerated(data, i, uint64((&v).Size())) - n145, err := (&v).MarshalTo(data[i:]) + n147, err := (&v).MarshalTo(data[i:]) if err != nil { return 0, err } - i += n145 + i += n147 } } if len(m.Requests) > 0 { @@ -6938,11 +7056,11 @@ func (m *ResourceRequirements) MarshalTo(data []byte) (int, error) { data[i] = 0x12 i++ i = encodeVarintGenerated(data, i, uint64((&v).Size())) - n146, err := (&v).MarshalTo(data[i:]) + n148, err := (&v).MarshalTo(data[i:]) if err != nil { return 0, err } - i += n146 + i += n148 } } return i, nil @@ -7000,11 +7118,11 @@ func (m *Secret) MarshalTo(data []byte) (int, error) { data[i] = 0xa i++ i = encodeVarintGenerated(data, i, uint64(m.ObjectMeta.Size())) - n147, err := m.ObjectMeta.MarshalTo(data[i:]) + n149, err := m.ObjectMeta.MarshalTo(data[i:]) if err != nil { return 0, err } - i += n147 + i += n149 if len(m.Data) > 0 { for k := range m.Data { data[i] = 0x12 @@ -7064,11 +7182,11 @@ func (m *SecretKeySelector) MarshalTo(data []byte) (int, error) { data[i] = 0xa i++ i = encodeVarintGenerated(data, i, uint64(m.LocalObjectReference.Size())) - n148, err := m.LocalObjectReference.MarshalTo(data[i:]) + n150, err := m.LocalObjectReference.MarshalTo(data[i:]) if err != nil { return 0, err } - i += n148 + i += n150 data[i] = 0x12 i++ i = encodeVarintGenerated(data, i, uint64(len(m.Key))) @@ -7094,11 +7212,11 @@ func (m *SecretList) MarshalTo(data []byte) (int, error) { data[i] = 0xa i++ i = encodeVarintGenerated(data, i, uint64(m.ListMeta.Size())) - n149, err := m.ListMeta.MarshalTo(data[i:]) + n151, err := m.ListMeta.MarshalTo(data[i:]) if err != nil { return 0, err } - i += n149 + i += n151 if len(m.Items) > 0 { for _, msg := range m.Items { data[i] = 0x12 @@ -7172,11 +7290,11 @@ func (m *SecurityContext) MarshalTo(data []byte) (int, error) { data[i] = 0xa i++ i = encodeVarintGenerated(data, i, uint64(m.Capabilities.Size())) - n150, err := m.Capabilities.MarshalTo(data[i:]) + n152, err := m.Capabilities.MarshalTo(data[i:]) if err != nil { return 0, err } - i += n150 + i += n152 } if m.Privileged != nil { data[i] = 0x10 @@ -7192,11 +7310,11 @@ func (m *SecurityContext) MarshalTo(data []byte) (int, error) { data[i] = 0x1a i++ i = encodeVarintGenerated(data, i, uint64(m.SELinuxOptions.Size())) - n151, err := m.SELinuxOptions.MarshalTo(data[i:]) + n153, err := m.SELinuxOptions.MarshalTo(data[i:]) if err != nil { return 0, err } - i += n151 + i += n153 } if m.RunAsUser != nil { data[i] = 0x20 @@ -7244,11 +7362,11 @@ func (m *SerializedReference) MarshalTo(data []byte) (int, error) { data[i] = 0xa i++ i = encodeVarintGenerated(data, i, uint64(m.Reference.Size())) - n152, err := m.Reference.MarshalTo(data[i:]) + n154, err := m.Reference.MarshalTo(data[i:]) if err != nil { return 0, err } - i += n152 + i += n154 return i, nil } @@ -7270,27 +7388,27 @@ func (m *Service) MarshalTo(data []byte) (int, error) { data[i] = 0xa i++ i = encodeVarintGenerated(data, i, uint64(m.ObjectMeta.Size())) - n153, err := m.ObjectMeta.MarshalTo(data[i:]) - if err != nil { - return 0, err - } - i += n153 - data[i] = 0x12 - i++ - i = encodeVarintGenerated(data, i, uint64(m.Spec.Size())) - n154, err := m.Spec.MarshalTo(data[i:]) - if err != nil { - return 0, err - } - i += n154 - data[i] = 0x1a - i++ - i = encodeVarintGenerated(data, i, uint64(m.Status.Size())) - n155, err := m.Status.MarshalTo(data[i:]) + n155, err := m.ObjectMeta.MarshalTo(data[i:]) if err != nil { return 0, err } i += n155 + data[i] = 0x12 + i++ + i = encodeVarintGenerated(data, i, uint64(m.Spec.Size())) + n156, err := m.Spec.MarshalTo(data[i:]) + if err != nil { + return 0, err + } + i += n156 + data[i] = 0x1a + i++ + i = encodeVarintGenerated(data, i, uint64(m.Status.Size())) + n157, err := m.Status.MarshalTo(data[i:]) + if err != nil { + return 0, err + } + i += n157 return i, nil } @@ -7312,11 +7430,11 @@ func (m *ServiceAccount) MarshalTo(data []byte) (int, error) { data[i] = 0xa i++ i = encodeVarintGenerated(data, i, uint64(m.ObjectMeta.Size())) - n156, err := m.ObjectMeta.MarshalTo(data[i:]) + n158, err := m.ObjectMeta.MarshalTo(data[i:]) if err != nil { return 0, err } - i += n156 + i += n158 if len(m.Secrets) > 0 { for _, msg := range m.Secrets { data[i] = 0x12 @@ -7362,11 +7480,11 @@ func (m *ServiceAccountList) MarshalTo(data []byte) (int, error) { data[i] = 0xa i++ i = encodeVarintGenerated(data, i, uint64(m.ListMeta.Size())) - n157, err := m.ListMeta.MarshalTo(data[i:]) + n159, err := m.ListMeta.MarshalTo(data[i:]) if err != nil { return 0, err } - i += n157 + i += n159 if len(m.Items) > 0 { for _, msg := range m.Items { data[i] = 0x12 @@ -7400,11 +7518,11 @@ func (m *ServiceList) MarshalTo(data []byte) (int, error) { data[i] = 0xa i++ i = encodeVarintGenerated(data, i, uint64(m.ListMeta.Size())) - n158, err := m.ListMeta.MarshalTo(data[i:]) + n160, err := m.ListMeta.MarshalTo(data[i:]) if err != nil { return 0, err } - i += n158 + i += n160 if len(m.Items) > 0 { for _, msg := range m.Items { data[i] = 0x12 @@ -7449,11 +7567,11 @@ func (m *ServicePort) MarshalTo(data []byte) (int, error) { data[i] = 0x22 i++ i = encodeVarintGenerated(data, i, uint64(m.TargetPort.Size())) - n159, err := m.TargetPort.MarshalTo(data[i:]) + n161, err := m.TargetPort.MarshalTo(data[i:]) if err != nil { return 0, err } - i += n159 + i += n161 data[i] = 0x28 i++ i = encodeVarintGenerated(data, i, uint64(m.NodePort)) @@ -7612,11 +7730,11 @@ func (m *ServiceStatus) MarshalTo(data []byte) (int, error) { data[i] = 0xa i++ i = encodeVarintGenerated(data, i, uint64(m.LoadBalancer.Size())) - n160, err := m.LoadBalancer.MarshalTo(data[i:]) + n162, err := m.LoadBalancer.MarshalTo(data[i:]) if err != nil { return 0, err } - i += n160 + i += n162 return i, nil } @@ -7638,11 +7756,11 @@ func (m *TCPSocketAction) MarshalTo(data []byte) (int, error) { data[i] = 0xa i++ i = encodeVarintGenerated(data, i, uint64(m.Port.Size())) - n161, err := m.Port.MarshalTo(data[i:]) + n163, err := m.Port.MarshalTo(data[i:]) if err != nil { return 0, err } - i += n161 + i += n163 return i, nil } @@ -7732,11 +7850,11 @@ func (m *Volume) MarshalTo(data []byte) (int, error) { data[i] = 0x12 i++ i = encodeVarintGenerated(data, i, uint64(m.VolumeSource.Size())) - n162, err := m.VolumeSource.MarshalTo(data[i:]) + n164, err := m.VolumeSource.MarshalTo(data[i:]) if err != nil { return 0, err } - i += n162 + i += n164 return i, nil } @@ -7797,163 +7915,163 @@ func (m *VolumeSource) MarshalTo(data []byte) (int, error) { data[i] = 0xa i++ i = encodeVarintGenerated(data, i, uint64(m.HostPath.Size())) - n163, err := m.HostPath.MarshalTo(data[i:]) - if err != nil { - return 0, err - } - i += n163 - } - if m.EmptyDir != nil { - data[i] = 0x12 - i++ - i = encodeVarintGenerated(data, i, uint64(m.EmptyDir.Size())) - n164, err := m.EmptyDir.MarshalTo(data[i:]) - if err != nil { - return 0, err - } - i += n164 - } - if m.GCEPersistentDisk != nil { - data[i] = 0x1a - i++ - i = encodeVarintGenerated(data, i, uint64(m.GCEPersistentDisk.Size())) - n165, err := m.GCEPersistentDisk.MarshalTo(data[i:]) + n165, err := m.HostPath.MarshalTo(data[i:]) if err != nil { return 0, err } i += n165 } - if m.AWSElasticBlockStore != nil { - data[i] = 0x22 + if m.EmptyDir != nil { + data[i] = 0x12 i++ - i = encodeVarintGenerated(data, i, uint64(m.AWSElasticBlockStore.Size())) - n166, err := m.AWSElasticBlockStore.MarshalTo(data[i:]) + i = encodeVarintGenerated(data, i, uint64(m.EmptyDir.Size())) + n166, err := m.EmptyDir.MarshalTo(data[i:]) if err != nil { return 0, err } i += n166 } - if m.GitRepo != nil { - data[i] = 0x2a + if m.GCEPersistentDisk != nil { + data[i] = 0x1a i++ - i = encodeVarintGenerated(data, i, uint64(m.GitRepo.Size())) - n167, err := m.GitRepo.MarshalTo(data[i:]) + i = encodeVarintGenerated(data, i, uint64(m.GCEPersistentDisk.Size())) + n167, err := m.GCEPersistentDisk.MarshalTo(data[i:]) if err != nil { return 0, err } i += n167 } - if m.Secret != nil { - data[i] = 0x32 + if m.AWSElasticBlockStore != nil { + data[i] = 0x22 i++ - i = encodeVarintGenerated(data, i, uint64(m.Secret.Size())) - n168, err := m.Secret.MarshalTo(data[i:]) + i = encodeVarintGenerated(data, i, uint64(m.AWSElasticBlockStore.Size())) + n168, err := m.AWSElasticBlockStore.MarshalTo(data[i:]) if err != nil { return 0, err } i += n168 } - if m.NFS != nil { - data[i] = 0x3a + if m.GitRepo != nil { + data[i] = 0x2a i++ - i = encodeVarintGenerated(data, i, uint64(m.NFS.Size())) - n169, err := m.NFS.MarshalTo(data[i:]) + i = encodeVarintGenerated(data, i, uint64(m.GitRepo.Size())) + n169, err := m.GitRepo.MarshalTo(data[i:]) if err != nil { return 0, err } i += n169 } - if m.ISCSI != nil { - data[i] = 0x42 + if m.Secret != nil { + data[i] = 0x32 i++ - i = encodeVarintGenerated(data, i, uint64(m.ISCSI.Size())) - n170, err := m.ISCSI.MarshalTo(data[i:]) + i = encodeVarintGenerated(data, i, uint64(m.Secret.Size())) + n170, err := m.Secret.MarshalTo(data[i:]) if err != nil { return 0, err } i += n170 } - if m.Glusterfs != nil { - data[i] = 0x4a + if m.NFS != nil { + data[i] = 0x3a i++ - i = encodeVarintGenerated(data, i, uint64(m.Glusterfs.Size())) - n171, err := m.Glusterfs.MarshalTo(data[i:]) + i = encodeVarintGenerated(data, i, uint64(m.NFS.Size())) + n171, err := m.NFS.MarshalTo(data[i:]) if err != nil { return 0, err } i += n171 } - if m.PersistentVolumeClaim != nil { - data[i] = 0x52 + if m.ISCSI != nil { + data[i] = 0x42 i++ - i = encodeVarintGenerated(data, i, uint64(m.PersistentVolumeClaim.Size())) - n172, err := m.PersistentVolumeClaim.MarshalTo(data[i:]) + i = encodeVarintGenerated(data, i, uint64(m.ISCSI.Size())) + n172, err := m.ISCSI.MarshalTo(data[i:]) if err != nil { return 0, err } i += n172 } - if m.RBD != nil { - data[i] = 0x5a + if m.Glusterfs != nil { + data[i] = 0x4a i++ - i = encodeVarintGenerated(data, i, uint64(m.RBD.Size())) - n173, err := m.RBD.MarshalTo(data[i:]) + i = encodeVarintGenerated(data, i, uint64(m.Glusterfs.Size())) + n173, err := m.Glusterfs.MarshalTo(data[i:]) if err != nil { return 0, err } i += n173 } - if m.FlexVolume != nil { - data[i] = 0x62 + if m.PersistentVolumeClaim != nil { + data[i] = 0x52 i++ - i = encodeVarintGenerated(data, i, uint64(m.FlexVolume.Size())) - n174, err := m.FlexVolume.MarshalTo(data[i:]) + i = encodeVarintGenerated(data, i, uint64(m.PersistentVolumeClaim.Size())) + n174, err := m.PersistentVolumeClaim.MarshalTo(data[i:]) if err != nil { return 0, err } i += n174 } - if m.Cinder != nil { - data[i] = 0x6a + if m.RBD != nil { + data[i] = 0x5a i++ - i = encodeVarintGenerated(data, i, uint64(m.Cinder.Size())) - n175, err := m.Cinder.MarshalTo(data[i:]) + i = encodeVarintGenerated(data, i, uint64(m.RBD.Size())) + n175, err := m.RBD.MarshalTo(data[i:]) if err != nil { return 0, err } i += n175 } - if m.CephFS != nil { - data[i] = 0x72 + if m.FlexVolume != nil { + data[i] = 0x62 i++ - i = encodeVarintGenerated(data, i, uint64(m.CephFS.Size())) - n176, err := m.CephFS.MarshalTo(data[i:]) + i = encodeVarintGenerated(data, i, uint64(m.FlexVolume.Size())) + n176, err := m.FlexVolume.MarshalTo(data[i:]) if err != nil { return 0, err } i += n176 } - if m.Flocker != nil { - data[i] = 0x7a + if m.Cinder != nil { + data[i] = 0x6a i++ - i = encodeVarintGenerated(data, i, uint64(m.Flocker.Size())) - n177, err := m.Flocker.MarshalTo(data[i:]) + i = encodeVarintGenerated(data, i, uint64(m.Cinder.Size())) + n177, err := m.Cinder.MarshalTo(data[i:]) if err != nil { return 0, err } i += n177 } + if m.CephFS != nil { + data[i] = 0x72 + i++ + i = encodeVarintGenerated(data, i, uint64(m.CephFS.Size())) + n178, err := m.CephFS.MarshalTo(data[i:]) + if err != nil { + return 0, err + } + i += n178 + } + if m.Flocker != nil { + data[i] = 0x7a + i++ + i = encodeVarintGenerated(data, i, uint64(m.Flocker.Size())) + n179, err := m.Flocker.MarshalTo(data[i:]) + if err != nil { + return 0, err + } + i += n179 + } if m.DownwardAPI != nil { data[i] = 0x82 i++ data[i] = 0x1 i++ i = encodeVarintGenerated(data, i, uint64(m.DownwardAPI.Size())) - n178, err := m.DownwardAPI.MarshalTo(data[i:]) + n180, err := m.DownwardAPI.MarshalTo(data[i:]) if err != nil { return 0, err } - i += n178 + i += n180 } if m.FC != nil { data[i] = 0x8a @@ -7961,11 +8079,11 @@ func (m *VolumeSource) MarshalTo(data []byte) (int, error) { data[i] = 0x1 i++ i = encodeVarintGenerated(data, i, uint64(m.FC.Size())) - n179, err := m.FC.MarshalTo(data[i:]) + n181, err := m.FC.MarshalTo(data[i:]) if err != nil { return 0, err } - i += n179 + i += n181 } if m.AzureFile != nil { data[i] = 0x92 @@ -7973,11 +8091,11 @@ func (m *VolumeSource) MarshalTo(data []byte) (int, error) { data[i] = 0x1 i++ i = encodeVarintGenerated(data, i, uint64(m.AzureFile.Size())) - n180, err := m.AzureFile.MarshalTo(data[i:]) + n182, err := m.AzureFile.MarshalTo(data[i:]) if err != nil { return 0, err } - i += n180 + i += n182 } if m.ConfigMap != nil { data[i] = 0x9a @@ -7985,11 +8103,11 @@ func (m *VolumeSource) MarshalTo(data []byte) (int, error) { data[i] = 0x1 i++ i = encodeVarintGenerated(data, i, uint64(m.ConfigMap.Size())) - n181, err := m.ConfigMap.MarshalTo(data[i:]) + n183, err := m.ConfigMap.MarshalTo(data[i:]) if err != nil { return 0, err } - i += n181 + i += n183 } if m.VsphereVolume != nil { data[i] = 0xa2 @@ -7997,11 +8115,11 @@ func (m *VolumeSource) MarshalTo(data []byte) (int, error) { data[i] = 0x1 i++ i = encodeVarintGenerated(data, i, uint64(m.VsphereVolume.Size())) - n182, err := m.VsphereVolume.MarshalTo(data[i:]) + n184, err := m.VsphereVolume.MarshalTo(data[i:]) if err != nil { return 0, err } - i += n182 + i += n184 } if m.Quobyte != nil { data[i] = 0xaa @@ -8009,11 +8127,11 @@ func (m *VolumeSource) MarshalTo(data []byte) (int, error) { data[i] = 0x1 i++ i = encodeVarintGenerated(data, i, uint64(m.Quobyte.Size())) - n183, err := m.Quobyte.MarshalTo(data[i:]) + n185, err := m.Quobyte.MarshalTo(data[i:]) if err != nil { return 0, err } - i += n183 + i += n185 } if m.AzureDisk != nil { data[i] = 0xb2 @@ -8021,11 +8139,23 @@ func (m *VolumeSource) MarshalTo(data []byte) (int, error) { data[i] = 0x1 i++ i = encodeVarintGenerated(data, i, uint64(m.AzureDisk.Size())) - n184, err := m.AzureDisk.MarshalTo(data[i:]) + n186, err := m.AzureDisk.MarshalTo(data[i:]) if err != nil { return 0, err } - i += n184 + i += n186 + } + if m.PhotonPersistentDisk != nil { + data[i] = 0xba + i++ + data[i] = 0x1 + i++ + i = encodeVarintGenerated(data, i, uint64(m.PhotonPersistentDisk.Size())) + n187, err := m.PhotonPersistentDisk.MarshalTo(data[i:]) + if err != nil { + return 0, err + } + i += n187 } return i, nil } @@ -8077,11 +8207,11 @@ func (m *WeightedPodAffinityTerm) MarshalTo(data []byte) (int, error) { data[i] = 0x12 i++ i = encodeVarintGenerated(data, i, uint64(m.PodAffinityTerm.Size())) - n185, err := m.PodAffinityTerm.MarshalTo(data[i:]) + n188, err := m.PodAffinityTerm.MarshalTo(data[i:]) if err != nil { return 0, err } - i += n185 + i += n188 return i, nil } @@ -8820,6 +8950,8 @@ func (m *FlockerVolumeSource) Size() (n int) { _ = l l = len(m.DatasetName) n += 1 + l + sovGenerated(uint64(l)) + l = len(m.DatasetUUID) + n += 1 + l + sovGenerated(uint64(l)) return n } @@ -9664,6 +9796,10 @@ func (m *PersistentVolumeSource) Size() (n int) { l = m.AzureDisk.Size() n += 2 + l + sovGenerated(uint64(l)) } + if m.PhotonPersistentDisk != nil { + l = m.PhotonPersistentDisk.Size() + n += 2 + l + sovGenerated(uint64(l)) + } return n } @@ -9708,6 +9844,16 @@ func (m *PersistentVolumeStatus) Size() (n int) { return n } +func (m *PhotonPersistentDiskVolumeSource) Size() (n int) { + var l int + _ = l + l = len(m.PdID) + n += 1 + l + sovGenerated(uint64(l)) + l = len(m.FSType) + n += 1 + l + sovGenerated(uint64(l)) + return n +} + func (m *Pod) Size() (n int) { var l int _ = l @@ -10151,6 +10297,22 @@ func (m *ReplicationController) Size() (n int) { return n } +func (m *ReplicationControllerCondition) 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.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 *ReplicationControllerList) Size() (n int) { var l int _ = l @@ -10183,6 +10345,7 @@ func (m *ReplicationControllerSpec) Size() (n int) { l = m.Template.Size() n += 1 + l + sovGenerated(uint64(l)) } + n += 1 + sovGenerated(uint64(m.MinReadySeconds)) return n } @@ -10193,6 +10356,13 @@ func (m *ReplicationControllerStatus) Size() (n int) { n += 1 + sovGenerated(uint64(m.FullyLabeledReplicas)) n += 1 + sovGenerated(uint64(m.ObservedGeneration)) n += 1 + sovGenerated(uint64(m.ReadyReplicas)) + n += 1 + sovGenerated(uint64(m.AvailableReplicas)) + if len(m.Conditions) > 0 { + for _, e := range m.Conditions { + l = e.Size() + n += 1 + l + sovGenerated(uint64(l)) + } + } return n } @@ -10704,6 +10874,10 @@ func (m *VolumeSource) Size() (n int) { l = m.AzureDisk.Size() n += 2 + l + sovGenerated(uint64(l)) } + if m.PhotonPersistentDisk != nil { + l = m.PhotonPersistentDisk.Size() + n += 2 + l + sovGenerated(uint64(l)) + } return n } @@ -11312,6 +11486,7 @@ func (this *FlockerVolumeSource) String() string { } s := strings.Join([]string{`&FlockerVolumeSource{`, `DatasetName:` + fmt.Sprintf("%v", this.DatasetName) + `,`, + `DatasetUUID:` + fmt.Sprintf("%v", this.DatasetUUID) + `,`, `}`, }, "") return s @@ -12027,6 +12202,7 @@ func (this *PersistentVolumeSource) String() string { `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) + `,`, + `PhotonPersistentDisk:` + strings.Replace(fmt.Sprintf("%v", this.PhotonPersistentDisk), "PhotonPersistentDiskVolumeSource", "PhotonPersistentDiskVolumeSource", 1) + `,`, `}`, }, "") return s @@ -12067,6 +12243,17 @@ func (this *PersistentVolumeStatus) String() string { }, "") return s } +func (this *PhotonPersistentDiskVolumeSource) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&PhotonPersistentDiskVolumeSource{`, + `PdID:` + fmt.Sprintf("%v", this.PdID) + `,`, + `FSType:` + fmt.Sprintf("%v", this.FSType) + `,`, + `}`, + }, "") + return s +} func (this *Pod) String() string { if this == nil { return "nil" @@ -12420,6 +12607,20 @@ func (this *ReplicationController) String() string { }, "") return s } +func (this *ReplicationControllerCondition) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&ReplicationControllerCondition{`, + `Type:` + fmt.Sprintf("%v", this.Type) + `,`, + `Status:` + fmt.Sprintf("%v", this.Status) + `,`, + `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 *ReplicationControllerList) String() string { if this == nil { return "nil" @@ -12449,6 +12650,7 @@ func (this *ReplicationControllerSpec) String() string { `Replicas:` + valueToStringGenerated(this.Replicas) + `,`, `Selector:` + mapStringForSelector + `,`, `Template:` + strings.Replace(fmt.Sprintf("%v", this.Template), "PodTemplateSpec", "PodTemplateSpec", 1) + `,`, + `MinReadySeconds:` + fmt.Sprintf("%v", this.MinReadySeconds) + `,`, `}`, }, "") return s @@ -12462,6 +12664,8 @@ func (this *ReplicationControllerStatus) String() string { `FullyLabeledReplicas:` + fmt.Sprintf("%v", this.FullyLabeledReplicas) + `,`, `ObservedGeneration:` + fmt.Sprintf("%v", this.ObservedGeneration) + `,`, `ReadyReplicas:` + fmt.Sprintf("%v", this.ReadyReplicas) + `,`, + `AvailableReplicas:` + fmt.Sprintf("%v", this.AvailableReplicas) + `,`, + `Conditions:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.Conditions), "ReplicationControllerCondition", "ReplicationControllerCondition", 1), `&`, ``, 1) + `,`, `}`, }, "") return s @@ -12884,6 +13088,7 @@ func (this *VolumeSource) String() string { `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) + `,`, + `PhotonPersistentDisk:` + strings.Replace(fmt.Sprintf("%v", this.PhotonPersistentDisk), "PhotonPersistentDiskVolumeSource", "PhotonPersistentDiskVolumeSource", 1) + `,`, `}`, }, "") return s @@ -19589,6 +19794,35 @@ func (m *FlockerVolumeSource) Unmarshal(data []byte) error { } m.DatasetName = string(data[iNdEx:postIndex]) iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field DatasetUUID", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + stringLen |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.DatasetUUID = string(data[iNdEx:postIndex]) + iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipGenerated(data[iNdEx:]) @@ -27975,6 +28209,39 @@ func (m *PersistentVolumeSource) Unmarshal(data []byte) error { return err } iNdEx = postIndex + case 17: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field PhotonPersistentDisk", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + 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.PhotonPersistentDisk == nil { + m.PhotonPersistentDisk = &PhotonPersistentDiskVolumeSource{} + } + if err := m.PhotonPersistentDisk.Unmarshal(data[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipGenerated(data[iNdEx:]) @@ -28420,6 +28687,114 @@ func (m *PersistentVolumeStatus) Unmarshal(data []byte) error { } return nil } +func (m *PhotonPersistentDiskVolumeSource) Unmarshal(data []byte) 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: PhotonPersistentDiskVolumeSource: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: PhotonPersistentDiskVolumeSource: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field PdID", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + stringLen |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.PdID = 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 *Pod) Unmarshal(data []byte) error { l := len(data) iNdEx := 0 @@ -32753,6 +33128,202 @@ func (m *ReplicationController) Unmarshal(data []byte) error { } return nil } +func (m *ReplicationControllerCondition) Unmarshal(data []byte) 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: ReplicationControllerCondition: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ReplicationControllerCondition: 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 = ReplicationControllerConditionType(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 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 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 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 *ReplicationControllerList) Unmarshal(data []byte) error { l := len(data) iNdEx := 0 @@ -33057,6 +33628,25 @@ func (m *ReplicationControllerSpec) Unmarshal(data []byte) error { return err } iNdEx = postIndex + case 4: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field MinReadySeconds", wireType) + } + m.MinReadySeconds = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + m.MinReadySeconds |= (int32(b) & 0x7F) << shift + if b < 0x80 { + break + } + } default: iNdEx = preIndex skippy, err := skipGenerated(data[iNdEx:]) @@ -33183,6 +33773,56 @@ func (m *ReplicationControllerStatus) Unmarshal(data []byte) error { break } } + case 5: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field AvailableReplicas", wireType) + } + m.AvailableReplicas = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + m.AvailableReplicas |= (int32(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + case 6: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Conditions", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + 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, ReplicationControllerCondition{}) + 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:]) @@ -38146,6 +38786,39 @@ func (m *VolumeSource) Unmarshal(data []byte) error { return err } iNdEx = postIndex + case 23: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field PhotonPersistentDisk", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + 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.PhotonPersistentDisk == nil { + m.PhotonPersistentDisk = &PhotonPersistentDiskVolumeSource{} + } + if err := m.PhotonPersistentDisk.Unmarshal(data[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipGenerated(data[iNdEx:]) @@ -38480,615 +39153,631 @@ var ( ) 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, + // 10015 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x09, 0x6e, 0x88, 0x02, 0xff, 0xec, 0x7d, 0x6d, 0x6c, 0x25, 0xd7, + 0x75, 0x98, 0xe7, 0x3d, 0x7e, 0xbd, 0xc3, 0xcf, 0xbd, 0xfb, 0x21, 0x8a, 0x91, 0x96, 0xeb, 0x91, + 0xb5, 0x5e, 0x49, 0x2b, 0xae, 0x77, 0x25, 0x45, 0xb2, 0xa5, 0xca, 0x26, 0xf9, 0xc8, 0x5d, 0x7a, + 0x97, 0xbb, 0x4f, 0xf7, 0x71, 0xb5, 0xb2, 0xad, 0x4a, 0x1e, 0xbe, 0xb9, 0x24, 0xc7, 0x3b, 0x9c, + 0x79, 0x9a, 0x99, 0xc7, 0x5d, 0xda, 0x0d, 0x90, 0x3a, 0x6a, 0x8a, 0x22, 0x46, 0xea, 0xa2, 0x35, + 0x5a, 0xa0, 0x2d, 0xea, 0x16, 0x68, 0x91, 0x36, 0x68, 0x1a, 0xa7, 0x6e, 0x62, 0xb7, 0x86, 0x51, + 0xa0, 0xa9, 0xe1, 0x7e, 0xa4, 0x70, 0x80, 0xa0, 0x09, 0x12, 0x80, 0x8d, 0x18, 0x14, 0xfd, 0xd1, + 0x1f, 0x2d, 0xd0, 0x5f, 0x25, 0x82, 0xb6, 0xb8, 0x9f, 0x73, 0xef, 0xbc, 0x79, 0x9c, 0x79, 0xd4, + 0x92, 0x51, 0x82, 0xfe, 0x7b, 0xef, 0x9c, 0x73, 0xcf, 0xfd, 0x98, 0x73, 0xcf, 0x3d, 0xf7, 0xdc, + 0x73, 0xcf, 0x85, 0xcb, 0xf7, 0x5f, 0x89, 0xe7, 0xbc, 0xf0, 0xca, 0xfd, 0xce, 0x3a, 0x89, 0x02, + 0x92, 0x90, 0xf8, 0x4a, 0xfb, 0xfe, 0xe6, 0x15, 0xa7, 0xed, 0x5d, 0xd9, 0xb9, 0x7a, 0x65, 0x93, + 0x04, 0x24, 0x72, 0x12, 0xe2, 0xce, 0xb5, 0xa3, 0x30, 0x09, 0xd1, 0x13, 0x9c, 0x7a, 0x2e, 0xa5, + 0x9e, 0x6b, 0xdf, 0xdf, 0x9c, 0x73, 0xda, 0xde, 0xdc, 0xce, 0xd5, 0x99, 0xe7, 0x37, 0xbd, 0x64, + 0xab, 0xb3, 0x3e, 0xd7, 0x0a, 0xb7, 0xaf, 0x6c, 0x86, 0x9b, 0xe1, 0x15, 0x56, 0x68, 0xbd, 0xb3, + 0xc1, 0xfe, 0xb1, 0x3f, 0xec, 0x17, 0x67, 0x36, 0x73, 0xad, 0x77, 0xd5, 0x11, 0x89, 0xc3, 0x4e, + 0xd4, 0x22, 0xd9, 0x06, 0xcc, 0xbc, 0xd4, 0xbb, 0x4c, 0x27, 0xd8, 0x21, 0x51, 0xec, 0x85, 0x01, + 0x71, 0xbb, 0x8a, 0x3d, 0x9f, 0x5f, 0x2c, 0xea, 0x04, 0x89, 0xb7, 0xdd, 0x5d, 0xcb, 0xd5, 0x7c, + 0xf2, 0x4e, 0xe2, 0xf9, 0x57, 0xbc, 0x20, 0x89, 0x93, 0x28, 0x5b, 0xc4, 0xfe, 0x5d, 0x0b, 0x2e, + 0xcc, 0xdf, 0x6b, 0x2e, 0xf9, 0x4e, 0x9c, 0x78, 0xad, 0x05, 0x3f, 0x6c, 0xdd, 0x6f, 0x26, 0x61, + 0x44, 0xde, 0x0c, 0xfd, 0xce, 0x36, 0x69, 0xb2, 0xde, 0xa0, 0xcb, 0x30, 0xb2, 0xc3, 0xfe, 0xaf, + 0xd4, 0xa7, 0xad, 0x0b, 0xd6, 0xa5, 0xda, 0xc2, 0xd4, 0x8f, 0xf7, 0x66, 0x3f, 0xb6, 0xbf, 0x37, + 0x3b, 0xf2, 0xa6, 0x80, 0x63, 0x45, 0x81, 0x2e, 0xc2, 0xd0, 0x46, 0xbc, 0xb6, 0xdb, 0x26, 0xd3, + 0x15, 0x46, 0x3b, 0x21, 0x68, 0x87, 0x96, 0x9b, 0x14, 0x8a, 0x05, 0x16, 0x5d, 0x81, 0x5a, 0xdb, + 0x89, 0x12, 0x2f, 0xf1, 0xc2, 0x60, 0xba, 0x7a, 0xc1, 0xba, 0x34, 0xb8, 0x70, 0x4a, 0x90, 0xd6, + 0x1a, 0x12, 0x81, 0x53, 0x1a, 0xda, 0x8c, 0x88, 0x38, 0xee, 0x9d, 0xc0, 0xdf, 0x9d, 0x1e, 0xb8, + 0x60, 0x5d, 0x1a, 0x49, 0x9b, 0x81, 0x05, 0x1c, 0x2b, 0x0a, 0xfb, 0x7b, 0x15, 0x18, 0x99, 0xdf, + 0xd8, 0xf0, 0x02, 0x2f, 0xd9, 0x45, 0x5f, 0x86, 0xb1, 0x20, 0x74, 0x89, 0xfc, 0xcf, 0x7a, 0x31, + 0x7a, 0xed, 0xd9, 0xb9, 0xc3, 0xe4, 0x62, 0xee, 0xb6, 0x56, 0x62, 0x61, 0x6a, 0x7f, 0x6f, 0x76, + 0x4c, 0x87, 0x60, 0x83, 0x23, 0x7a, 0x1b, 0x46, 0xdb, 0xa1, 0xab, 0x2a, 0xa8, 0xb0, 0x0a, 0x9e, + 0x39, 0xbc, 0x82, 0x46, 0x5a, 0x60, 0x61, 0x72, 0x7f, 0x6f, 0x76, 0x54, 0x03, 0x60, 0x9d, 0x1d, + 0xf2, 0x61, 0x92, 0xfe, 0x0d, 0x12, 0x4f, 0xd5, 0x50, 0x65, 0x35, 0x3c, 0x5f, 0x5c, 0x83, 0x56, + 0x68, 0xe1, 0xf4, 0xfe, 0xde, 0xec, 0x64, 0x06, 0x88, 0xb3, 0xac, 0xed, 0xaf, 0xc2, 0xc4, 0x7c, + 0x92, 0x38, 0xad, 0x2d, 0xe2, 0xf2, 0xef, 0x8b, 0x5e, 0x84, 0x81, 0xc0, 0xd9, 0x26, 0xe2, 0xeb, + 0x5f, 0x10, 0xc3, 0x3e, 0x70, 0xdb, 0xd9, 0x26, 0x07, 0x7b, 0xb3, 0x53, 0x77, 0x03, 0xef, 0xbd, + 0x8e, 0x90, 0x19, 0x0a, 0xc3, 0x8c, 0x1a, 0x5d, 0x03, 0x70, 0xc9, 0x8e, 0xd7, 0x22, 0x0d, 0x27, + 0xd9, 0x12, 0xd2, 0x80, 0x44, 0x59, 0xa8, 0x2b, 0x0c, 0xd6, 0xa8, 0xec, 0xaf, 0x5b, 0x50, 0x9b, + 0xdf, 0x09, 0x3d, 0xb7, 0x11, 0xba, 0x31, 0xea, 0xc0, 0x64, 0x3b, 0x22, 0x1b, 0x24, 0x52, 0xa0, + 0x69, 0xeb, 0x42, 0xf5, 0xd2, 0xe8, 0xb5, 0x6b, 0x05, 0xfd, 0x36, 0x0b, 0x2d, 0x05, 0x49, 0xb4, + 0xbb, 0xf0, 0x98, 0xa8, 0x7a, 0x32, 0x83, 0xc5, 0xd9, 0x3a, 0xec, 0xbf, 0x56, 0x81, 0xb3, 0xf3, + 0x5f, 0xed, 0x44, 0xa4, 0xee, 0xc5, 0xf7, 0xb3, 0x53, 0xc1, 0xf5, 0xe2, 0xfb, 0xb7, 0xd3, 0xc1, + 0x50, 0x32, 0x58, 0x17, 0x70, 0xac, 0x28, 0xd0, 0xf3, 0x30, 0x4c, 0x7f, 0xdf, 0xc5, 0x2b, 0xa2, + 0xf7, 0xa7, 0x05, 0xf1, 0x68, 0xdd, 0x49, 0x9c, 0x3a, 0x47, 0x61, 0x49, 0x83, 0x56, 0x61, 0xb4, + 0xe5, 0xb4, 0xb6, 0xbc, 0x60, 0x73, 0x35, 0x74, 0x09, 0xfb, 0xc2, 0xb5, 0x85, 0xe7, 0x28, 0xf9, + 0x62, 0x0a, 0x3e, 0xd8, 0x9b, 0x9d, 0xe6, 0x6d, 0x13, 0x2c, 0x34, 0x1c, 0xd6, 0xcb, 0x23, 0x5b, + 0x4d, 0xc4, 0x01, 0xc6, 0x09, 0x72, 0x26, 0xe1, 0x25, 0x6d, 0x4e, 0x0d, 0xb2, 0x39, 0x35, 0xd6, + 0x63, 0x3e, 0xfd, 0x13, 0x4b, 0x8c, 0xc9, 0xb2, 0xe7, 0x9b, 0xea, 0xe1, 0x1a, 0x40, 0x4c, 0x5a, + 0x11, 0x49, 0xb4, 0x51, 0x51, 0x9f, 0xb9, 0xa9, 0x30, 0x58, 0xa3, 0xa2, 0x93, 0x3f, 0xde, 0x72, + 0x22, 0x26, 0x2d, 0x62, 0x6c, 0xd4, 0xe4, 0x6f, 0x4a, 0x04, 0x4e, 0x69, 0x8c, 0xc9, 0x5f, 0x2d, + 0x9c, 0xfc, 0xff, 0xd2, 0x82, 0xe1, 0x05, 0x2f, 0x70, 0xbd, 0x60, 0x13, 0xbd, 0x05, 0x23, 0xdb, + 0x24, 0x71, 0x5c, 0x27, 0x71, 0xc4, 0xbc, 0xbf, 0x74, 0xb8, 0xf0, 0xdc, 0x59, 0xff, 0x0a, 0x69, + 0x25, 0xab, 0x24, 0x71, 0xd2, 0x6e, 0xa4, 0x30, 0xac, 0xb8, 0xa1, 0xbb, 0x30, 0x94, 0x38, 0xd1, + 0x26, 0x49, 0xc4, 0x74, 0x7f, 0xbe, 0x0c, 0x5f, 0x4c, 0x45, 0x8d, 0x04, 0x2d, 0x92, 0x2a, 0xc6, + 0x35, 0xc6, 0x04, 0x0b, 0x66, 0x76, 0x0b, 0xc6, 0x16, 0x9d, 0xb6, 0xb3, 0xee, 0xf9, 0x5e, 0xe2, + 0x91, 0x18, 0x7d, 0x12, 0xaa, 0x8e, 0xeb, 0x32, 0xc1, 0xaf, 0x2d, 0x9c, 0xdd, 0xdf, 0x9b, 0xad, + 0xce, 0xbb, 0xee, 0xc1, 0xde, 0x2c, 0x28, 0xaa, 0x5d, 0x4c, 0x29, 0xd0, 0xb3, 0x30, 0xe0, 0x46, + 0x61, 0x7b, 0xba, 0xc2, 0x28, 0xcf, 0xd1, 0x19, 0x5a, 0x8f, 0xc2, 0x76, 0x86, 0x94, 0xd1, 0xd8, + 0xff, 0xb6, 0x02, 0x68, 0x91, 0xb4, 0xb7, 0x96, 0x9b, 0xc6, 0xb7, 0xbc, 0x04, 0x23, 0xdb, 0x61, + 0xe0, 0x25, 0x61, 0x14, 0x8b, 0x0a, 0x99, 0x3c, 0xac, 0x0a, 0x18, 0x56, 0x58, 0x74, 0x01, 0x06, + 0xda, 0xe9, 0xb4, 0x1e, 0x93, 0x2a, 0x81, 0x4d, 0x68, 0x86, 0xa1, 0x14, 0x9d, 0x98, 0x44, 0x42, + 0x8e, 0x15, 0xc5, 0xdd, 0x98, 0x44, 0x98, 0x61, 0x52, 0xc9, 0xa1, 0x32, 0x25, 0xa4, 0x34, 0x23, + 0x39, 0x14, 0x83, 0x35, 0x2a, 0xf4, 0x2e, 0xd4, 0xf8, 0x3f, 0x4c, 0x36, 0x98, 0xc8, 0x16, 0x2a, + 0x83, 0x5b, 0x61, 0xcb, 0xf1, 0xb3, 0x83, 0x3f, 0xce, 0x24, 0x4d, 0x32, 0xc2, 0x29, 0x4f, 0x43, + 0xd2, 0x86, 0x0a, 0x25, 0xed, 0x6f, 0x59, 0x80, 0x16, 0xbd, 0xc0, 0x25, 0xd1, 0x09, 0x2c, 0x99, + 0xfd, 0x4d, 0x82, 0x3f, 0xa0, 0x4d, 0x0b, 0xb7, 0xdb, 0x61, 0x40, 0x82, 0x64, 0x31, 0x0c, 0x5c, + 0xbe, 0x8c, 0x7e, 0x06, 0x06, 0x12, 0x5a, 0x15, 0x6f, 0xd6, 0x45, 0xf9, 0x59, 0x68, 0x05, 0x07, + 0x7b, 0xb3, 0xe7, 0xba, 0x4b, 0xb0, 0x26, 0xb0, 0x32, 0xe8, 0xd3, 0x30, 0x14, 0x27, 0x4e, 0xd2, + 0x89, 0x45, 0x43, 0x3f, 0x2e, 0x1b, 0xda, 0x64, 0xd0, 0x83, 0xbd, 0xd9, 0x49, 0x55, 0x8c, 0x83, + 0xb0, 0x28, 0x80, 0x9e, 0x81, 0xe1, 0x6d, 0x12, 0xc7, 0xce, 0xa6, 0x54, 0x6c, 0x93, 0xa2, 0xec, + 0xf0, 0x2a, 0x07, 0x63, 0x89, 0x47, 0x4f, 0xc1, 0x20, 0x89, 0xa2, 0x30, 0x12, 0x12, 0x31, 0x2e, + 0x08, 0x07, 0x97, 0x28, 0x10, 0x73, 0x9c, 0xfd, 0xdb, 0x16, 0x4c, 0xaa, 0xb6, 0xf2, 0xba, 0x8e, + 0x71, 0xaa, 0xbb, 0x00, 0x2d, 0xd9, 0xb1, 0x98, 0x4d, 0xb0, 0xd1, 0x6b, 0x9f, 0x3a, 0x9c, 0x77, + 0xf7, 0x40, 0xa6, 0x75, 0x28, 0x50, 0x8c, 0x35, 0xbe, 0xf6, 0x8f, 0x2d, 0x38, 0x9d, 0xe9, 0xd3, + 0x2d, 0x2f, 0x4e, 0xd0, 0x9f, 0xef, 0xea, 0xd7, 0x95, 0x43, 0xea, 0xd6, 0x2c, 0xca, 0x39, 0x5a, + 0x9c, 0x75, 0x4f, 0x09, 0x8a, 0x84, 0x68, 0x9d, 0xc3, 0x30, 0xe8, 0x25, 0x64, 0x5b, 0xf6, 0xeb, + 0xf9, 0x92, 0xfd, 0xe2, 0x0d, 0x4c, 0x3f, 0xcf, 0x0a, 0xe5, 0x81, 0x39, 0x2b, 0xfb, 0x7f, 0x59, + 0x50, 0x5b, 0x0c, 0x83, 0x0d, 0x6f, 0x73, 0xd5, 0x69, 0x1f, 0xe3, 0x87, 0x69, 0xc2, 0x00, 0xe3, + 0xca, 0x9b, 0x7e, 0xb5, 0xa8, 0xe9, 0xa2, 0x41, 0x73, 0x74, 0xf1, 0xe4, 0x56, 0x81, 0xd2, 0x4b, + 0x14, 0x84, 0x19, 0xb3, 0x99, 0x97, 0xa1, 0xa6, 0x08, 0xd0, 0x14, 0x54, 0xef, 0x13, 0x6e, 0x32, + 0xd6, 0x30, 0xfd, 0x89, 0xce, 0xc0, 0xe0, 0x8e, 0xe3, 0x77, 0xc4, 0x6c, 0xc5, 0xfc, 0xcf, 0x67, + 0x2a, 0xaf, 0x58, 0xf6, 0x0f, 0x2c, 0x38, 0xa3, 0x2a, 0xb9, 0x49, 0x76, 0x9b, 0xc4, 0x27, 0xad, + 0x24, 0x8c, 0xd0, 0xfb, 0x16, 0x9c, 0xf1, 0x73, 0xf4, 0x90, 0x18, 0x8d, 0xa3, 0x68, 0xb0, 0x27, + 0x44, 0xc3, 0xcf, 0xe4, 0x61, 0x71, 0x6e, 0x6d, 0xe8, 0x49, 0xde, 0x17, 0x3e, 0x79, 0x47, 0x05, + 0x83, 0xea, 0x4d, 0xb2, 0xcb, 0x3a, 0x46, 0x9b, 0x3f, 0xae, 0x9a, 0x7f, 0x12, 0x92, 0x77, 0xcb, + 0x94, 0xbc, 0x4f, 0x96, 0xfc, 0x7c, 0x3d, 0x64, 0xee, 0xef, 0x55, 0xe0, 0xac, 0xa2, 0x31, 0xd4, + 0xf1, 0x47, 0x64, 0xf8, 0xfb, 0xeb, 0xee, 0x4d, 0xb2, 0xbb, 0x16, 0xd2, 0xf5, 0x34, 0xbf, 0xbb, + 0xe8, 0x2a, 0x8c, 0xba, 0x64, 0xc3, 0xe9, 0xf8, 0x89, 0x32, 0x17, 0x07, 0xf9, 0x3e, 0xa2, 0x9e, + 0x82, 0xb1, 0x4e, 0x63, 0xff, 0x56, 0x8d, 0xcd, 0xca, 0xc4, 0xf1, 0x02, 0x12, 0xd1, 0x05, 0x5a, + 0xb3, 0xea, 0xc7, 0x74, 0xab, 0x5e, 0x58, 0xf0, 0x4f, 0xc1, 0xa0, 0xb7, 0x4d, 0x55, 0x76, 0xc5, + 0xd4, 0xc4, 0x2b, 0x14, 0x88, 0x39, 0x0e, 0x3d, 0x0d, 0xc3, 0xad, 0x70, 0x7b, 0xdb, 0x09, 0xdc, + 0xe9, 0x2a, 0x33, 0x19, 0x46, 0xa9, 0x56, 0x5f, 0xe4, 0x20, 0x2c, 0x71, 0xe8, 0x09, 0x18, 0x70, + 0xa2, 0xcd, 0x78, 0x7a, 0x80, 0xd1, 0x8c, 0xd0, 0x9a, 0xe6, 0xa3, 0xcd, 0x18, 0x33, 0x28, 0x35, + 0x05, 0x1e, 0x84, 0xd1, 0x7d, 0x2f, 0xd8, 0xac, 0x7b, 0x11, 0x5b, 0xd7, 0x35, 0x53, 0xe0, 0x9e, + 0xc2, 0x60, 0x8d, 0x0a, 0x35, 0x60, 0xb0, 0x1d, 0x46, 0x49, 0x3c, 0x3d, 0xc4, 0x86, 0xf3, 0xb9, + 0x42, 0xe9, 0xe1, 0xfd, 0x6e, 0x84, 0x51, 0x92, 0x76, 0x85, 0xfe, 0x8b, 0x31, 0x67, 0x84, 0x16, + 0xa1, 0x4a, 0x82, 0x9d, 0xe9, 0x61, 0xc6, 0xef, 0x13, 0x87, 0xf3, 0x5b, 0x0a, 0x76, 0xde, 0x74, + 0xa2, 0x74, 0x16, 0x2d, 0x05, 0x3b, 0x98, 0x96, 0x46, 0x2d, 0xa8, 0x49, 0x47, 0x40, 0x3c, 0x3d, + 0x52, 0x46, 0xc0, 0xb0, 0x20, 0xc7, 0xe4, 0xbd, 0x8e, 0x17, 0x91, 0x6d, 0x12, 0x24, 0x71, 0x6a, + 0x0f, 0x4b, 0x6c, 0x8c, 0x53, 0xbe, 0xa8, 0x05, 0x63, 0xdc, 0x7c, 0x58, 0x0d, 0x3b, 0x41, 0x12, + 0x4f, 0xd7, 0x58, 0x93, 0x0b, 0x36, 0x9c, 0x6f, 0xa6, 0x25, 0x16, 0xce, 0x08, 0xf6, 0x63, 0x1a, + 0x30, 0xc6, 0x06, 0x53, 0xf4, 0x36, 0x8c, 0xfb, 0xde, 0x0e, 0x09, 0x48, 0x1c, 0x37, 0xa2, 0x70, + 0x9d, 0x4c, 0x03, 0xeb, 0xcd, 0x53, 0x45, 0x9b, 0xaf, 0x70, 0x9d, 0x2c, 0x9c, 0xda, 0xdf, 0x9b, + 0x1d, 0xbf, 0xa5, 0x97, 0xc6, 0x26, 0x33, 0xf4, 0x2e, 0x4c, 0x50, 0x5b, 0xc5, 0x4b, 0xd9, 0x8f, + 0x96, 0x67, 0x8f, 0xf6, 0xf7, 0x66, 0x27, 0xb0, 0x51, 0x1c, 0x67, 0xd8, 0xa1, 0x35, 0xa8, 0xf9, + 0xde, 0x06, 0x69, 0xed, 0xb6, 0x7c, 0x32, 0x3d, 0xc6, 0x78, 0x17, 0x4c, 0xb9, 0x5b, 0x92, 0x9c, + 0xdb, 0x87, 0xea, 0x2f, 0x4e, 0x19, 0xa1, 0x37, 0xe1, 0x5c, 0x42, 0xa2, 0x6d, 0x2f, 0x70, 0xe8, + 0xa2, 0x2d, 0x8c, 0x17, 0xb6, 0xc3, 0x1d, 0x67, 0x52, 0x7b, 0x5e, 0x0c, 0xec, 0xb9, 0xb5, 0x5c, + 0x2a, 0xdc, 0xa3, 0x34, 0xba, 0x03, 0x93, 0x6c, 0x3e, 0x35, 0x3a, 0xbe, 0xdf, 0x08, 0x7d, 0xaf, + 0xb5, 0x3b, 0x3d, 0xc1, 0x18, 0x3e, 0x2d, 0xf7, 0xad, 0x2b, 0x26, 0x9a, 0xda, 0xf5, 0xe9, 0x3f, + 0x9c, 0x2d, 0x8d, 0x7c, 0x98, 0x8c, 0x49, 0xab, 0x13, 0x79, 0xc9, 0x2e, 0x95, 0x7d, 0xf2, 0x30, + 0x99, 0x9e, 0x2c, 0xb3, 0x4f, 0x69, 0x9a, 0x85, 0xb8, 0xd3, 0x20, 0x03, 0xc4, 0x59, 0xd6, 0x54, + 0x55, 0xc4, 0x89, 0xeb, 0x05, 0xd3, 0x53, 0xcc, 0x30, 0x55, 0xf3, 0xab, 0x49, 0x81, 0x98, 0xe3, + 0xd8, 0xb6, 0x8f, 0xfe, 0xb8, 0x43, 0x75, 0xef, 0x29, 0x46, 0x98, 0x6e, 0xfb, 0x24, 0x02, 0xa7, + 0x34, 0x74, 0xc1, 0x4a, 0x92, 0xdd, 0x69, 0xc4, 0x48, 0xd5, 0x54, 0x5b, 0x5b, 0xfb, 0x02, 0xa6, + 0x70, 0x7b, 0x1d, 0x26, 0xd4, 0xb4, 0x66, 0xa3, 0x83, 0x66, 0x61, 0x90, 0x6a, 0x2e, 0xb9, 0x7b, + 0xa9, 0xd1, 0x26, 0x50, 0x85, 0x16, 0x63, 0x0e, 0x67, 0x4d, 0xf0, 0xbe, 0x4a, 0x16, 0x76, 0x13, + 0xc2, 0xad, 0xd8, 0xaa, 0xd6, 0x04, 0x89, 0xc0, 0x29, 0x8d, 0xfd, 0x7f, 0xf8, 0xa2, 0x98, 0xea, + 0x8e, 0x12, 0x7a, 0xf3, 0x32, 0x8c, 0x6c, 0x85, 0x71, 0x42, 0xa9, 0x59, 0x1d, 0x83, 0xe9, 0x2a, + 0x78, 0x43, 0xc0, 0xb1, 0xa2, 0x40, 0xaf, 0xc2, 0x78, 0x4b, 0xaf, 0x40, 0xa8, 0xf2, 0xb3, 0xa2, + 0x88, 0x59, 0x3b, 0x36, 0x69, 0xd1, 0x2b, 0x30, 0xc2, 0x5c, 0x79, 0xad, 0xd0, 0x17, 0xf6, 0xb2, + 0x5c, 0x99, 0x46, 0x1a, 0x02, 0x7e, 0xa0, 0xfd, 0xc6, 0x8a, 0x9a, 0xee, 0x3a, 0x68, 0x13, 0x56, + 0x1a, 0x42, 0xdd, 0xaa, 0x5d, 0xc7, 0x0d, 0x06, 0xc5, 0x02, 0x6b, 0xff, 0x6a, 0x45, 0x1b, 0x65, + 0x6a, 0xf4, 0x11, 0xf4, 0x45, 0x18, 0x7e, 0xe0, 0x78, 0x89, 0x17, 0x6c, 0x8a, 0x15, 0xf4, 0x85, + 0x92, 0xba, 0x97, 0x15, 0xbf, 0xc7, 0x8b, 0xf2, 0x75, 0x42, 0xfc, 0xc1, 0x92, 0x21, 0xe5, 0x1d, + 0x75, 0x82, 0x80, 0xf2, 0xae, 0xf4, 0xcf, 0x1b, 0xf3, 0xa2, 0x9c, 0xb7, 0xf8, 0x83, 0x25, 0x43, + 0xb4, 0x01, 0x20, 0x67, 0x1f, 0x71, 0x85, 0x0b, 0xed, 0xa7, 0xfb, 0x61, 0xbf, 0xa6, 0x4a, 0x2f, + 0x4c, 0xd0, 0x95, 0x29, 0xfd, 0x8f, 0x35, 0xce, 0x76, 0x87, 0x19, 0x22, 0xdd, 0xcd, 0x42, 0x6f, + 0xd3, 0x09, 0xe0, 0x44, 0x09, 0x71, 0xe7, 0x13, 0x31, 0x74, 0xcf, 0x95, 0x34, 0xa8, 0xd6, 0xbc, + 0x6d, 0xa2, 0xcf, 0x16, 0xc1, 0x05, 0xa7, 0x0c, 0xed, 0xef, 0x57, 0x61, 0xba, 0x57, 0x7b, 0xa9, + 0x4c, 0x92, 0x87, 0x5e, 0xb2, 0x48, 0x6d, 0x05, 0xcb, 0x94, 0xc9, 0x25, 0x01, 0xc7, 0x8a, 0x82, + 0x0a, 0x47, 0xec, 0x6d, 0x06, 0x8e, 0x2f, 0xe4, 0x57, 0x09, 0x47, 0x93, 0x41, 0xb1, 0xc0, 0x52, + 0xba, 0x88, 0x38, 0xb1, 0x70, 0xe1, 0x6a, 0x42, 0x84, 0x19, 0x14, 0x0b, 0xac, 0xbe, 0xfd, 0x1b, + 0x28, 0xd8, 0xfe, 0x19, 0x63, 0x34, 0xf8, 0x88, 0xc7, 0x08, 0xbd, 0x0b, 0xb0, 0xe1, 0x05, 0x5e, + 0xbc, 0xc5, 0xd8, 0x0f, 0xf5, 0xcf, 0x5e, 0x59, 0x25, 0xcb, 0x8a, 0x0d, 0xd6, 0x58, 0xa2, 0x97, + 0x60, 0x54, 0xcd, 0xd0, 0x95, 0xfa, 0xf4, 0xb0, 0xe9, 0xf8, 0x4b, 0xd5, 0x55, 0x1d, 0xeb, 0x74, + 0xf6, 0x57, 0xb2, 0x22, 0x23, 0x26, 0x86, 0x36, 0xc2, 0x56, 0xd9, 0x11, 0xae, 0x1c, 0x3e, 0xc2, + 0xf6, 0x7f, 0xae, 0xd2, 0xbd, 0xb3, 0x56, 0x59, 0x27, 0x2e, 0xa1, 0xd4, 0xde, 0xa0, 0x1a, 0xde, + 0x49, 0x88, 0x98, 0x96, 0x97, 0xfb, 0x99, 0x37, 0xfa, 0x7a, 0x40, 0xa7, 0x03, 0xe7, 0x84, 0xb6, + 0xa0, 0xe6, 0x3b, 0x31, 0xdb, 0x49, 0x12, 0x31, 0x1d, 0xfb, 0x63, 0x9b, 0x5a, 0xe1, 0x4e, 0x9c, + 0x68, 0x0b, 0x2e, 0xaf, 0x25, 0x65, 0x4e, 0x97, 0x27, 0x6a, 0x1d, 0xc8, 0x93, 0x03, 0xd5, 0x1c, + 0x6a, 0x42, 0xec, 0x62, 0x8e, 0x43, 0xaf, 0xc0, 0x58, 0x44, 0x98, 0xa8, 0x2c, 0x52, 0x03, 0x88, + 0x09, 0xdf, 0x60, 0x6a, 0x29, 0x61, 0x0d, 0x87, 0x0d, 0xca, 0xd4, 0x50, 0x1e, 0x3a, 0xc4, 0x50, + 0x7e, 0x06, 0x86, 0xd9, 0x0f, 0x25, 0x15, 0xea, 0x0b, 0xad, 0x70, 0x30, 0x96, 0xf8, 0xac, 0x10, + 0x8d, 0x94, 0x14, 0xa2, 0x67, 0x61, 0xa2, 0xee, 0x90, 0xed, 0x30, 0x58, 0x0a, 0xdc, 0x76, 0xe8, + 0x05, 0x09, 0x9a, 0x86, 0x01, 0xb6, 0xa4, 0xf0, 0x19, 0x3f, 0x40, 0x39, 0xe0, 0x01, 0x6a, 0xec, + 0xda, 0xff, 0xd7, 0x82, 0xf1, 0x3a, 0xf1, 0x49, 0x42, 0xee, 0xb4, 0x99, 0xfb, 0x01, 0x2d, 0x03, + 0xda, 0x8c, 0x9c, 0x16, 0x69, 0x90, 0xc8, 0x0b, 0xdd, 0x26, 0x69, 0x85, 0x01, 0x73, 0xb8, 0xd3, + 0x35, 0xf2, 0xdc, 0xfe, 0xde, 0x2c, 0xba, 0xde, 0x85, 0xc5, 0x39, 0x25, 0x90, 0x0b, 0xe3, 0xed, + 0x88, 0x18, 0xfe, 0x12, 0xab, 0xd8, 0x3e, 0x6f, 0xe8, 0x45, 0xb8, 0xf9, 0x68, 0x80, 0xb0, 0xc9, + 0x14, 0x7d, 0x0e, 0xa6, 0xc2, 0xa8, 0xbd, 0xe5, 0x04, 0x75, 0xd2, 0x26, 0x81, 0x4b, 0x6d, 0x66, + 0xe1, 0x14, 0x3b, 0xb3, 0xbf, 0x37, 0x3b, 0x75, 0x27, 0x83, 0xc3, 0x5d, 0xd4, 0xf6, 0x2f, 0x57, + 0xe0, 0x6c, 0x3d, 0x7c, 0x10, 0x3c, 0x70, 0x22, 0x77, 0xbe, 0xb1, 0xc2, 0x0d, 0x61, 0xe6, 0x64, + 0x94, 0xce, 0x4d, 0xab, 0xa7, 0x73, 0xf3, 0x4b, 0x30, 0xb2, 0xe1, 0x11, 0xdf, 0xc5, 0x64, 0x43, + 0x74, 0xef, 0x6a, 0x19, 0x8f, 0xc6, 0x32, 0x2d, 0x23, 0xbd, 0x02, 0xdc, 0xb7, 0xba, 0x2c, 0xd8, + 0x60, 0xc5, 0x10, 0x75, 0x60, 0x4a, 0x5a, 0xfa, 0x12, 0x2b, 0x66, 0xc7, 0x0b, 0xe5, 0x36, 0x12, + 0x66, 0x35, 0x6c, 0x3c, 0x70, 0x86, 0x21, 0xee, 0xaa, 0x82, 0xee, 0xd0, 0xb6, 0xe9, 0xea, 0x30, + 0xc0, 0x64, 0x85, 0xed, 0xd0, 0xd8, 0x16, 0x92, 0x41, 0xed, 0x7f, 0x64, 0xc1, 0x63, 0x5d, 0xa3, + 0x25, 0xf6, 0xd7, 0x6f, 0xc9, 0x8d, 0x2d, 0x3f, 0x9d, 0x29, 0x68, 0x65, 0xee, 0x98, 0x97, 0xdb, + 0xe4, 0x56, 0x4a, 0x6c, 0x72, 0xef, 0xc0, 0x99, 0xa5, 0xed, 0x76, 0xb2, 0x5b, 0xf7, 0x4c, 0x9f, + 0xec, 0xcb, 0x30, 0xb4, 0x4d, 0x5c, 0xaf, 0xb3, 0x2d, 0x3e, 0xeb, 0xac, 0x54, 0xa4, 0xab, 0x0c, + 0x7a, 0xb0, 0x37, 0x3b, 0xde, 0x4c, 0xc2, 0xc8, 0xd9, 0x24, 0x1c, 0x80, 0x05, 0xb9, 0xfd, 0x81, + 0x05, 0x93, 0x72, 0x42, 0xcd, 0xbb, 0x6e, 0x44, 0xe2, 0x18, 0xcd, 0x40, 0xc5, 0x6b, 0x0b, 0x46, + 0x20, 0x18, 0x55, 0x56, 0x1a, 0xb8, 0xe2, 0xb5, 0xd1, 0x17, 0xa1, 0xc6, 0x5d, 0xf9, 0xa9, 0x70, + 0xf4, 0x79, 0x34, 0xc0, 0x76, 0x1f, 0x6b, 0x92, 0x07, 0x4e, 0xd9, 0x49, 0xcb, 0x92, 0xa9, 0xea, + 0xaa, 0xe9, 0x58, 0xbe, 0x21, 0xe0, 0x58, 0x51, 0xa0, 0x4b, 0x30, 0x12, 0x84, 0x2e, 0x3f, 0x65, + 0xe1, 0xcb, 0x2e, 0x13, 0xb9, 0xdb, 0x02, 0x86, 0x15, 0xd6, 0xfe, 0x86, 0x05, 0x63, 0xb2, 0x8f, + 0x25, 0x8d, 0x5c, 0x3a, 0x49, 0x52, 0x03, 0x37, 0x9d, 0x24, 0xd4, 0x48, 0x65, 0x18, 0xc3, 0x36, + 0xad, 0xf6, 0x63, 0x9b, 0xda, 0xdf, 0xaf, 0xc0, 0x84, 0x6c, 0x4e, 0xb3, 0xb3, 0x1e, 0x93, 0x04, + 0xbd, 0x03, 0x35, 0x87, 0x0f, 0x3e, 0x91, 0x72, 0xf6, 0x7c, 0xd1, 0x0e, 0xdd, 0xf8, 0x66, 0xa9, + 0x61, 0x30, 0x2f, 0xf9, 0xe0, 0x94, 0x25, 0xda, 0x81, 0x53, 0x41, 0x98, 0xb0, 0xf5, 0x40, 0xe1, + 0xcb, 0x79, 0x44, 0xb3, 0xf5, 0x3c, 0x2e, 0xea, 0x39, 0x75, 0x3b, 0xcb, 0x0f, 0x77, 0x57, 0x81, + 0xee, 0x48, 0x2f, 0x46, 0x95, 0xd5, 0xf5, 0x6c, 0xb9, 0xba, 0x7a, 0x3b, 0x31, 0xec, 0x1f, 0x5a, + 0x50, 0x93, 0x64, 0xc7, 0xe9, 0x13, 0xbf, 0x07, 0xc3, 0x31, 0xfb, 0x34, 0x72, 0x98, 0x2e, 0x97, + 0x6b, 0x3a, 0xff, 0x9e, 0xe9, 0xe2, 0xc7, 0xff, 0xc7, 0x58, 0x72, 0x63, 0x6e, 0x48, 0xd5, 0x81, + 0x8f, 0x9e, 0x1b, 0x52, 0x35, 0xad, 0x87, 0x1b, 0xf2, 0x97, 0x2c, 0x18, 0xe2, 0xce, 0xa1, 0x72, + 0x1e, 0x36, 0xcd, 0x97, 0x9c, 0x72, 0x7c, 0x93, 0x02, 0x85, 0x6b, 0x19, 0xdd, 0x83, 0x1a, 0xfb, + 0xb1, 0x1c, 0x85, 0xdb, 0x62, 0x21, 0x78, 0xb6, 0x8c, 0x73, 0x8a, 0x2b, 0x3e, 0xae, 0x4d, 0xde, + 0x94, 0x0c, 0x70, 0xca, 0xcb, 0xfe, 0x41, 0x95, 0xce, 0xfa, 0x94, 0xd4, 0x58, 0xd6, 0xac, 0x93, + 0x58, 0xd6, 0x2a, 0xc7, 0xbf, 0xac, 0xbd, 0x07, 0x93, 0x2d, 0xcd, 0x27, 0x9f, 0x2e, 0xa6, 0xd7, + 0x4a, 0xba, 0x9b, 0x35, 0x47, 0x3e, 0x77, 0x86, 0x2c, 0x9a, 0xec, 0x70, 0x96, 0x3f, 0x22, 0x30, + 0xc6, 0x0f, 0x14, 0x45, 0x7d, 0x03, 0x85, 0x32, 0xcb, 0xfd, 0x2e, 0xbc, 0x84, 0xaa, 0x8c, 0x05, + 0x9d, 0x34, 0x35, 0x46, 0xd8, 0x60, 0x6b, 0xff, 0x8d, 0x41, 0x18, 0x5c, 0xda, 0x21, 0x41, 0x72, + 0x8c, 0xb3, 0x7c, 0x1b, 0x26, 0xbc, 0x60, 0x27, 0xf4, 0x77, 0x88, 0xcb, 0xf1, 0x47, 0x5b, 0xd1, + 0xce, 0x89, 0x4a, 0x26, 0x56, 0x0c, 0x66, 0x38, 0xc3, 0xfc, 0x38, 0xf6, 0x93, 0x6f, 0xc0, 0x10, + 0x97, 0x08, 0xb1, 0x99, 0x2c, 0x70, 0x92, 0xb2, 0x01, 0x15, 0x33, 0x27, 0xdd, 0xf5, 0x72, 0xff, + 0xac, 0x60, 0x84, 0xee, 0xc3, 0xc4, 0x86, 0x17, 0xc5, 0x09, 0xdd, 0x10, 0xc6, 0x89, 0xb3, 0xdd, + 0x3e, 0xca, 0x46, 0x52, 0x0d, 0xc9, 0xb2, 0xc1, 0x0a, 0x67, 0x58, 0xa3, 0x2d, 0x18, 0xa7, 0xfb, + 0x98, 0xb4, 0xae, 0xe1, 0xfe, 0xeb, 0x52, 0xbe, 0xa4, 0x5b, 0x3a, 0x27, 0x6c, 0x32, 0xa6, 0xca, + 0xa8, 0xc5, 0x36, 0x3e, 0x23, 0x6c, 0x49, 0x57, 0xca, 0x88, 0xef, 0x78, 0x38, 0x8e, 0xea, 0x34, + 0x76, 0x7e, 0x5c, 0x33, 0x75, 0x5a, 0x7a, 0x4a, 0x6c, 0x7f, 0x97, 0x2e, 0x40, 0x74, 0x14, 0x4f, + 0x42, 0x77, 0xdf, 0x30, 0x75, 0xf7, 0x53, 0x25, 0x3e, 0x6e, 0x0f, 0xbd, 0xfd, 0x65, 0x18, 0xd5, + 0xbe, 0x3d, 0xba, 0x02, 0xb5, 0x96, 0x3c, 0xea, 0x14, 0x0a, 0x5c, 0x19, 0x10, 0xea, 0x0c, 0x14, + 0xa7, 0x34, 0x74, 0x60, 0xa8, 0xe1, 0x95, 0x8d, 0x88, 0xa0, 0x66, 0x19, 0x66, 0x18, 0xfb, 0x05, + 0x80, 0xa5, 0x87, 0xa4, 0x35, 0xdf, 0x62, 0x07, 0xf1, 0xda, 0xb9, 0x89, 0xd5, 0xfb, 0xdc, 0xc4, + 0x7e, 0x1b, 0xc6, 0x97, 0x1e, 0xd2, 0x95, 0x5d, 0x6e, 0xd3, 0x2e, 0xc2, 0x10, 0x61, 0x00, 0xd6, + 0xaa, 0x91, 0x54, 0x48, 0x39, 0x19, 0x16, 0x58, 0x76, 0x8c, 0xfe, 0xd0, 0x11, 0x13, 0x56, 0xdb, + 0xf2, 0x2e, 0x51, 0x20, 0xe6, 0x38, 0xfb, 0x3b, 0x16, 0x4c, 0x2c, 0x2f, 0x1a, 0x76, 0xf2, 0x1c, + 0x00, 0xb7, 0x37, 0xef, 0xdd, 0xbb, 0x2d, 0xfd, 0xa8, 0xdc, 0xd9, 0xa5, 0xa0, 0x58, 0xa3, 0x40, + 0x8f, 0x43, 0xd5, 0xef, 0x04, 0xc2, 0x0c, 0x1c, 0xde, 0xdf, 0x9b, 0xad, 0xde, 0xea, 0x04, 0x98, + 0xc2, 0xb4, 0xc0, 0x86, 0x6a, 0xe9, 0xc0, 0x86, 0xe2, 0xd0, 0xbe, 0x6f, 0x55, 0x61, 0x6a, 0xd9, + 0x27, 0x0f, 0x8d, 0x56, 0x5f, 0x84, 0x21, 0x37, 0xf2, 0x76, 0x48, 0x94, 0x75, 0x93, 0xd4, 0x19, + 0x14, 0x0b, 0x6c, 0xe9, 0x58, 0x0b, 0x23, 0xce, 0xa4, 0x7a, 0xcc, 0x71, 0x26, 0x85, 0x7d, 0x46, + 0x1b, 0x30, 0x1c, 0xf2, 0xef, 0x3f, 0x3d, 0xc8, 0x04, 0xfd, 0xd5, 0xc3, 0x1b, 0x93, 0x1d, 0x9f, + 0x39, 0x21, 0x3d, 0xfc, 0xd0, 0x5b, 0x29, 0x4b, 0x01, 0xc5, 0x92, 0xf9, 0xcc, 0x67, 0x60, 0x4c, + 0xa7, 0xec, 0xeb, 0xf4, 0xfb, 0xe7, 0x2c, 0x38, 0xbd, 0xec, 0x87, 0xad, 0xfb, 0x99, 0x60, 0x98, + 0x97, 0x60, 0x94, 0x4e, 0xd5, 0xd8, 0x88, 0x10, 0x33, 0x42, 0xe1, 0x04, 0x0a, 0xeb, 0x74, 0x5a, + 0xb1, 0xbb, 0x77, 0x57, 0xea, 0x79, 0x11, 0x74, 0x02, 0x85, 0x75, 0x3a, 0xfb, 0x3f, 0x59, 0xf0, + 0xe4, 0xf5, 0xc5, 0xa5, 0x06, 0x55, 0x23, 0x71, 0x42, 0x82, 0xa4, 0x2b, 0x88, 0xef, 0x22, 0x0c, + 0xb5, 0x5d, 0xad, 0x29, 0x4a, 0x04, 0x1a, 0x75, 0xd6, 0x0a, 0x81, 0xfd, 0xa8, 0x44, 0xb2, 0xfe, + 0x92, 0x05, 0xa7, 0xaf, 0x7b, 0x09, 0x26, 0xed, 0x30, 0x1b, 0x77, 0x17, 0x91, 0x76, 0x18, 0x7b, + 0x49, 0x18, 0xed, 0x66, 0xe3, 0xee, 0xb0, 0xc2, 0x60, 0x8d, 0x8a, 0xd7, 0xbc, 0xe3, 0x51, 0x05, + 0x2b, 0x3a, 0xa5, 0xd5, 0xcc, 0xe1, 0x58, 0x51, 0xd0, 0x8e, 0xb9, 0x5e, 0xc4, 0x6c, 0x91, 0x5d, + 0x31, 0x83, 0x55, 0xc7, 0xea, 0x12, 0x81, 0x53, 0x1a, 0xfb, 0xef, 0x58, 0x70, 0xf6, 0xba, 0xdf, + 0x89, 0x13, 0x12, 0x6d, 0xc4, 0x46, 0x63, 0x5f, 0x80, 0x1a, 0x91, 0x76, 0xb3, 0x68, 0xab, 0x5a, + 0x93, 0x94, 0x41, 0xcd, 0x83, 0xfe, 0x14, 0x5d, 0x89, 0x18, 0xb3, 0xfe, 0x22, 0xa2, 0xfe, 0x55, + 0x05, 0xc6, 0x6f, 0xac, 0xad, 0x35, 0xae, 0x93, 0x44, 0xe8, 0xe0, 0x62, 0x47, 0x4f, 0x43, 0xdb, + 0xe5, 0x8e, 0x5e, 0x9b, 0xeb, 0x31, 0xeb, 0x3a, 0x89, 0xe7, 0xcf, 0xf1, 0x18, 0xeb, 0xb9, 0x95, + 0x20, 0xb9, 0x13, 0x35, 0x93, 0xc8, 0x0b, 0x36, 0x73, 0x77, 0xc5, 0x72, 0x9d, 0xa8, 0xf6, 0x5a, + 0x27, 0xd0, 0x0b, 0x30, 0x14, 0xb7, 0xb6, 0x88, 0xda, 0xb4, 0xff, 0x94, 0x32, 0x43, 0x18, 0xf4, + 0x60, 0x6f, 0xb6, 0x76, 0x17, 0xaf, 0xf0, 0x3f, 0x58, 0x90, 0xa2, 0x77, 0x61, 0x74, 0x2b, 0x49, + 0xda, 0x37, 0x88, 0xe3, 0x92, 0x48, 0x6a, 0x89, 0x02, 0x2b, 0x90, 0x0e, 0x06, 0x2f, 0x90, 0x4e, + 0xac, 0x14, 0x16, 0x63, 0x9d, 0xa3, 0xdd, 0x04, 0x48, 0x71, 0x8f, 0x68, 0x6b, 0x63, 0xff, 0xc5, + 0x0a, 0x0c, 0xdf, 0x70, 0x02, 0xd7, 0x27, 0x11, 0x5a, 0x86, 0x01, 0xf2, 0x90, 0xb4, 0xca, 0x19, + 0xb0, 0xe9, 0x42, 0xca, 0x3d, 0x55, 0xf4, 0x3f, 0x66, 0xe5, 0x11, 0x86, 0x61, 0xda, 0xee, 0xeb, + 0x2a, 0x30, 0xf3, 0xb9, 0xe2, 0x51, 0x50, 0x22, 0xc1, 0x57, 0x61, 0x01, 0xc2, 0x92, 0x11, 0xf3, + 0xe9, 0xb4, 0xda, 0x4d, 0xaa, 0xdc, 0x92, 0x72, 0xb1, 0xd7, 0x6b, 0x8b, 0x0d, 0x4e, 0x2e, 0xf8, + 0x72, 0x9f, 0x8e, 0x04, 0xe2, 0x94, 0x9d, 0xfd, 0x0a, 0x9c, 0x61, 0xa7, 0x82, 0x4e, 0xb2, 0x65, + 0xcc, 0x99, 0x42, 0xe1, 0xb4, 0xff, 0x7e, 0x05, 0x4e, 0xad, 0x34, 0x17, 0x9b, 0xa6, 0x37, 0xee, + 0x15, 0x18, 0xe3, 0xcb, 0x33, 0x15, 0x3a, 0xc7, 0x17, 0xe5, 0x95, 0x1b, 0x7b, 0x4d, 0xc3, 0x61, + 0x83, 0x12, 0x3d, 0x09, 0x55, 0xef, 0xbd, 0x20, 0x1b, 0x1f, 0xb4, 0xf2, 0xc6, 0x6d, 0x4c, 0xe1, + 0x14, 0x4d, 0x57, 0x7a, 0xae, 0xe2, 0x14, 0x5a, 0xad, 0xf6, 0xaf, 0xc3, 0x84, 0x17, 0xb7, 0x62, + 0x6f, 0x25, 0xa0, 0xf3, 0xdf, 0x69, 0x49, 0xf1, 0x4d, 0x6d, 0x7f, 0xda, 0x54, 0x85, 0xc5, 0x19, + 0x6a, 0x4d, 0xdf, 0x0e, 0x96, 0xb6, 0x16, 0x8a, 0x23, 0x34, 0xbf, 0x02, 0x35, 0x15, 0x49, 0x23, + 0x03, 0xa0, 0xac, 0xfc, 0x00, 0xa8, 0x12, 0x0a, 0x47, 0xfa, 0x48, 0xab, 0xb9, 0x3e, 0xd2, 0x7f, + 0x6a, 0x41, 0x1a, 0x34, 0x80, 0x30, 0xd4, 0xda, 0x21, 0x3b, 0x80, 0x88, 0xe4, 0x61, 0xdf, 0xd3, + 0x05, 0x92, 0xc8, 0x67, 0x02, 0x97, 0x95, 0x86, 0x2c, 0x8b, 0x53, 0x36, 0xe8, 0x16, 0x0c, 0xb7, + 0x23, 0xd2, 0x4c, 0x58, 0x98, 0x6f, 0x1f, 0x1c, 0x99, 0x54, 0x37, 0x78, 0x49, 0x2c, 0x59, 0xd8, + 0xbf, 0x6e, 0x01, 0xdc, 0xf2, 0xb6, 0xbd, 0x04, 0x3b, 0xc1, 0x26, 0x39, 0xc6, 0x5d, 0xe4, 0x6d, + 0x18, 0x88, 0xdb, 0xa4, 0x55, 0xee, 0xe8, 0x28, 0x6d, 0x51, 0xb3, 0x4d, 0x5a, 0xe9, 0x67, 0xa0, + 0xff, 0x30, 0xe3, 0x63, 0xff, 0x0a, 0xc0, 0x44, 0x4a, 0x46, 0xcd, 0x78, 0xf4, 0xbc, 0x11, 0xd7, + 0xfa, 0x78, 0x26, 0xae, 0xb5, 0xc6, 0xa8, 0xb5, 0x50, 0xd6, 0x04, 0xaa, 0xdb, 0xce, 0x43, 0xb1, + 0x6b, 0x78, 0xa9, 0x6c, 0x83, 0x68, 0x4d, 0x73, 0xab, 0xce, 0x43, 0x6e, 0x46, 0x3d, 0x27, 0x05, + 0x68, 0xd5, 0x79, 0x78, 0xc0, 0x0f, 0x88, 0xd8, 0x0c, 0xa4, 0xdb, 0x94, 0xaf, 0xff, 0x97, 0xf4, + 0x3f, 0x53, 0x8a, 0xb4, 0x3a, 0x56, 0xab, 0x17, 0x08, 0x57, 0x5f, 0x9f, 0xb5, 0x7a, 0x41, 0xb6, + 0x56, 0x2f, 0x28, 0x51, 0xab, 0x17, 0xa0, 0xf7, 0x2d, 0x18, 0x16, 0x1e, 0x72, 0x16, 0x7e, 0x35, + 0x7a, 0xed, 0xd3, 0x7d, 0x55, 0x2d, 0x5c, 0xed, 0xbc, 0xfa, 0x2b, 0xd2, 0x76, 0x14, 0xd0, 0xc2, + 0x26, 0xc8, 0xaa, 0xd1, 0xb7, 0x2d, 0x98, 0x10, 0xbf, 0x31, 0x79, 0xaf, 0x43, 0xe2, 0x44, 0xac, + 0x52, 0x9f, 0x3b, 0x4a, 0x6b, 0x04, 0x0b, 0xde, 0xa8, 0x9f, 0x96, 0x2a, 0xc6, 0x44, 0x16, 0xb6, + 0x2d, 0xd3, 0x1e, 0xf4, 0x3d, 0x0b, 0xce, 0x6c, 0x3b, 0x0f, 0x79, 0x8d, 0x1c, 0x86, 0x9d, 0xc4, + 0x0b, 0x45, 0x88, 0xd9, 0x72, 0xbf, 0x72, 0xd2, 0xc5, 0x88, 0x37, 0xf7, 0x35, 0x79, 0x6c, 0x99, + 0x47, 0x52, 0xd8, 0xe8, 0xdc, 0x16, 0xce, 0xb8, 0x30, 0x22, 0x05, 0x33, 0xc7, 0x6a, 0x5f, 0xd0, + 0x17, 0xe3, 0xc3, 0x67, 0xa0, 0x74, 0xa0, 0xcd, 0xbd, 0xd1, 0x71, 0x82, 0xc4, 0x4b, 0x76, 0x35, + 0x1b, 0x9f, 0xd5, 0x22, 0x04, 0xf1, 0x18, 0x6b, 0xd9, 0x82, 0x31, 0x5d, 0xe6, 0x8e, 0xb1, 0xa6, + 0x10, 0x4e, 0xe7, 0xc8, 0xd3, 0x31, 0x56, 0xd8, 0x81, 0xc7, 0x7b, 0xca, 0xc5, 0xf1, 0x55, 0x6b, + 0xff, 0xd0, 0xd2, 0x15, 0xe6, 0x49, 0x38, 0x66, 0x56, 0x4d, 0xc7, 0xcc, 0xa5, 0xb2, 0x53, 0xa7, + 0x87, 0x77, 0x66, 0x43, 0x6f, 0x3f, 0x5d, 0x09, 0xd0, 0x1a, 0x0c, 0xf9, 0x14, 0x22, 0x4f, 0x83, + 0x2e, 0xf7, 0x33, 0x39, 0x53, 0xe3, 0x82, 0xc1, 0x63, 0x2c, 0x78, 0xd9, 0xbf, 0x61, 0xc1, 0xc0, + 0x49, 0x0c, 0x4f, 0xc3, 0x1c, 0x9e, 0x5e, 0x26, 0xaa, 0xb8, 0xeb, 0x39, 0x87, 0x9d, 0x07, 0x4b, + 0x0f, 0x13, 0x12, 0xc4, 0xcc, 0x94, 0xcc, 0x1d, 0xa1, 0x5f, 0xae, 0xc0, 0x28, 0xad, 0x48, 0xfa, + 0x89, 0x5e, 0x85, 0x71, 0xdf, 0x59, 0x27, 0xbe, 0x74, 0x27, 0x67, 0xb7, 0x5d, 0xb7, 0x74, 0x24, + 0x36, 0x69, 0x69, 0xe1, 0x0d, 0xdd, 0xdb, 0x2e, 0x4c, 0x22, 0x55, 0xd8, 0x70, 0xc5, 0x63, 0x93, + 0x96, 0x5a, 0xfe, 0x0f, 0x9c, 0xa4, 0xb5, 0x25, 0xb6, 0x64, 0xaa, 0xb9, 0xf7, 0x28, 0x10, 0x73, + 0x1c, 0x9a, 0x87, 0x49, 0x29, 0xb1, 0x6f, 0xf2, 0xa1, 0x13, 0xe6, 0xa2, 0xba, 0xa7, 0x87, 0x4d, + 0x34, 0xce, 0xd2, 0xa3, 0xcf, 0xc0, 0x04, 0x1d, 0x9c, 0xb0, 0x93, 0xc8, 0x60, 0x85, 0x41, 0x16, + 0xac, 0xc0, 0x82, 0x43, 0xd7, 0x0c, 0x0c, 0xce, 0x50, 0xda, 0xef, 0xc2, 0xe9, 0x5b, 0xa1, 0xe3, + 0x2e, 0x38, 0xbe, 0x13, 0xb4, 0x48, 0xb4, 0x12, 0x6c, 0x16, 0x9e, 0xeb, 0xea, 0x67, 0xaf, 0x95, + 0xa2, 0xb3, 0x57, 0x3b, 0x02, 0xa4, 0x57, 0x20, 0xc2, 0x6c, 0xde, 0x86, 0x61, 0x8f, 0x57, 0x25, + 0xa4, 0xf6, 0x6a, 0x91, 0x53, 0xa9, 0xab, 0x8d, 0x5a, 0xd8, 0x08, 0x07, 0x60, 0xc9, 0x92, 0xee, + 0x24, 0xf2, 0xbc, 0x50, 0xc5, 0x9b, 0x35, 0xfb, 0xaf, 0x58, 0x30, 0x79, 0x3b, 0x73, 0x19, 0xec, + 0x22, 0x0c, 0xc5, 0x24, 0xca, 0x71, 0xa9, 0x35, 0x19, 0x14, 0x0b, 0xec, 0x23, 0xdf, 0xa6, 0xff, + 0x42, 0x05, 0x6a, 0x2c, 0x66, 0xb3, 0xed, 0xb4, 0x8e, 0xd3, 0x28, 0x5d, 0x35, 0x8c, 0xd2, 0x82, + 0x4d, 0xa2, 0x6a, 0x50, 0x2f, 0x9b, 0x14, 0xdd, 0x55, 0x97, 0xa3, 0x4a, 0xed, 0x0f, 0x53, 0x86, + 0xfc, 0x1e, 0xcd, 0x84, 0x79, 0x97, 0x4a, 0x5e, 0x9c, 0x62, 0xa7, 0xa1, 0x8a, 0xf6, 0xa3, 0x77, + 0x1a, 0xaa, 0x9a, 0xd6, 0x43, 0x2b, 0x35, 0xb4, 0xd6, 0x33, 0xb5, 0xfd, 0x59, 0x16, 0x80, 0xe7, + 0xf8, 0xde, 0x57, 0x89, 0xba, 0x64, 0x38, 0x2b, 0xe2, 0xe9, 0x04, 0xf4, 0x80, 0x29, 0x18, 0xf1, + 0x8f, 0xdf, 0x1d, 0x4d, 0x8b, 0xd8, 0x37, 0x60, 0x32, 0x33, 0x76, 0xe8, 0x25, 0x18, 0x6c, 0x6f, + 0x39, 0x31, 0xc9, 0x44, 0x76, 0x0c, 0x36, 0x28, 0xf0, 0x60, 0x6f, 0x76, 0x42, 0x15, 0x60, 0x10, + 0xcc, 0xa9, 0xed, 0x3f, 0xb6, 0x60, 0xe0, 0x76, 0xe8, 0x1e, 0xa7, 0x8c, 0xdd, 0x30, 0x64, 0xec, + 0x62, 0xf1, 0x8d, 0xf3, 0x9e, 0xe2, 0xd5, 0xc8, 0x88, 0xd7, 0xa5, 0x12, 0xbc, 0x0e, 0x97, 0xac, + 0x6d, 0x18, 0x65, 0x37, 0xda, 0x45, 0x48, 0xcb, 0x0b, 0xc6, 0x06, 0x6a, 0x36, 0xb3, 0x81, 0x9a, + 0xd4, 0x48, 0xb5, 0x6d, 0xd4, 0x33, 0x30, 0x2c, 0x42, 0x28, 0xb2, 0x51, 0x87, 0x82, 0x16, 0x4b, + 0xbc, 0xfd, 0x6b, 0x55, 0x30, 0x6e, 0xd0, 0xa3, 0x1f, 0x59, 0x30, 0x17, 0xf1, 0x2b, 0x0f, 0x6e, + 0xbd, 0x13, 0x79, 0xc1, 0x66, 0xb3, 0xb5, 0x45, 0xdc, 0x8e, 0xef, 0x05, 0x9b, 0x2b, 0x9b, 0x41, + 0xa8, 0xc0, 0x4b, 0x0f, 0x49, 0xab, 0xc3, 0xbc, 0xab, 0xa5, 0x2f, 0xee, 0xab, 0x33, 0xd4, 0x6b, + 0xfb, 0x7b, 0xb3, 0x73, 0xb8, 0xaf, 0x5a, 0x70, 0x9f, 0xad, 0x42, 0xbf, 0x67, 0xc1, 0x15, 0x7e, + 0x87, 0xbc, 0x7c, 0x4f, 0x4a, 0x6d, 0x3c, 0x1b, 0x92, 0x69, 0xca, 0x6e, 0x8d, 0x44, 0xdb, 0x0b, + 0x2f, 0x8b, 0x41, 0xbe, 0xd2, 0xe8, 0xaf, 0x56, 0xdc, 0x6f, 0x33, 0xed, 0x7f, 0x53, 0x85, 0x71, + 0x3a, 0x9e, 0xe9, 0xfd, 0xd1, 0x97, 0x0c, 0x31, 0xf9, 0x78, 0x46, 0x4c, 0x4e, 0x19, 0xc4, 0x8f, + 0xe6, 0xea, 0x68, 0x02, 0xa7, 0x7c, 0x27, 0x4e, 0x6e, 0x10, 0x27, 0x4a, 0xd6, 0x89, 0xc3, 0x0e, + 0x2c, 0xc5, 0x24, 0xe8, 0xeb, 0x10, 0x54, 0xc5, 0xe5, 0xdc, 0xca, 0x72, 0xc3, 0xdd, 0x15, 0xa0, + 0x07, 0x80, 0xd8, 0xe9, 0x68, 0xe4, 0x04, 0x31, 0xef, 0x8c, 0x27, 0x1c, 0xb2, 0x7d, 0x56, 0x3b, + 0x23, 0xaa, 0x45, 0xb7, 0xba, 0xd8, 0xe1, 0x9c, 0x2a, 0xb4, 0x23, 0xf0, 0xc1, 0xb2, 0x47, 0xe0, + 0x43, 0x05, 0x01, 0xbf, 0x3f, 0x6f, 0xc1, 0x69, 0xfa, 0x61, 0xcc, 0xe0, 0xd0, 0x18, 0x85, 0x30, + 0x49, 0x7b, 0xe0, 0x93, 0x44, 0xc2, 0xc4, 0x0c, 0x2b, 0xb0, 0xa5, 0x4d, 0x3e, 0xa9, 0xc5, 0x76, + 0xd3, 0x64, 0x86, 0xb3, 0xdc, 0xed, 0x5f, 0xb3, 0x80, 0x45, 0x9f, 0x9d, 0xc4, 0x3a, 0x76, 0xdd, + 0x5c, 0xc7, 0xec, 0x62, 0xa5, 0xd1, 0x63, 0x09, 0x7b, 0x11, 0xa6, 0x28, 0xb6, 0x11, 0x85, 0x0f, + 0x77, 0xa5, 0x71, 0x5d, 0xec, 0x9b, 0xfd, 0xcb, 0x16, 0x57, 0x77, 0xca, 0x2a, 0x7e, 0x00, 0xa7, + 0x02, 0xed, 0x3f, 0x9d, 0xc8, 0xd2, 0x08, 0x9c, 0x2b, 0xaf, 0xd0, 0xd8, 0xfc, 0xd7, 0x22, 0xcc, + 0x32, 0x0c, 0x71, 0x77, 0x1d, 0xf6, 0x3f, 0xb0, 0xe0, 0x31, 0x9d, 0x50, 0xbb, 0x66, 0x56, 0xe4, + 0x10, 0xad, 0xc3, 0x48, 0xd8, 0x26, 0x91, 0x93, 0xee, 0x00, 0x2e, 0xc9, 0x11, 0xbf, 0x23, 0xe0, + 0x07, 0x7b, 0xb3, 0x67, 0x74, 0xee, 0x12, 0x8e, 0x55, 0x49, 0x64, 0xc3, 0x10, 0xdb, 0x89, 0xc6, + 0xe2, 0x82, 0x20, 0xcb, 0x44, 0xc1, 0x8e, 0x01, 0x62, 0x2c, 0x30, 0xf6, 0x5f, 0xb5, 0xf8, 0x28, + 0xeb, 0x4d, 0x47, 0x5f, 0x83, 0xa9, 0x6d, 0xba, 0x59, 0x58, 0x7a, 0xd8, 0xa6, 0x4b, 0x08, 0x3b, + 0xfe, 0xb4, 0xca, 0x28, 0xce, 0x1e, 0xdd, 0x5d, 0x98, 0x16, 0xad, 0x9f, 0x5a, 0xcd, 0xb0, 0xc5, + 0x5d, 0x15, 0xd9, 0xbf, 0x2f, 0x64, 0x95, 0x59, 0x2d, 0xcf, 0xc0, 0x70, 0x3b, 0x74, 0x17, 0x57, + 0xea, 0x58, 0x8c, 0x95, 0x9a, 0x6c, 0x0d, 0x0e, 0xc6, 0x12, 0x8f, 0xae, 0x01, 0x90, 0x87, 0x09, + 0x89, 0x02, 0xc7, 0x57, 0xc7, 0x96, 0xca, 0x48, 0x58, 0x52, 0x18, 0xac, 0x51, 0xd1, 0x32, 0xed, + 0x28, 0xdc, 0xf1, 0x5c, 0x16, 0xee, 0x5d, 0x35, 0xcb, 0x34, 0x14, 0x06, 0x6b, 0x54, 0x74, 0x8b, + 0xd6, 0x09, 0x62, 0xae, 0xc0, 0x9d, 0x75, 0x91, 0x40, 0x61, 0x24, 0xdd, 0xa2, 0xdd, 0xd5, 0x91, + 0xd8, 0xa4, 0xb5, 0x7f, 0xbb, 0x06, 0x90, 0x9a, 0x08, 0xe8, 0x7d, 0x0b, 0x46, 0x5a, 0x4e, 0xdb, + 0x69, 0xf1, 0xec, 0x38, 0xd5, 0xe2, 0x7b, 0x31, 0x69, 0xe1, 0xb9, 0x45, 0x51, 0x90, 0xfb, 0xb6, + 0x3e, 0x25, 0x05, 0x44, 0x82, 0x0b, 0xfd, 0x59, 0xaa, 0x66, 0xf4, 0x4d, 0x0b, 0x46, 0x1d, 0xdf, + 0x0f, 0x5b, 0x4e, 0xc2, 0x7a, 0x54, 0x29, 0xe3, 0xac, 0xd4, 0x5a, 0x32, 0x9f, 0x96, 0xe5, 0x8d, + 0x79, 0x41, 0x9e, 0x6a, 0x69, 0x98, 0xc2, 0xf6, 0xe8, 0x4d, 0x40, 0x9f, 0x92, 0xa6, 0x25, 0xff, + 0x28, 0x33, 0x59, 0xd3, 0xb2, 0xc6, 0x54, 0x83, 0x66, 0x55, 0xa2, 0x77, 0x8d, 0x5c, 0x01, 0x03, + 0x65, 0xee, 0xa6, 0x1a, 0x8b, 0x66, 0x51, 0x9a, 0x00, 0xf4, 0x45, 0x3d, 0x12, 0x76, 0xb0, 0xcc, + 0xc5, 0x4f, 0xcd, 0x76, 0x2b, 0x88, 0x82, 0x4d, 0x60, 0xd2, 0x35, 0x17, 0x09, 0x11, 0xda, 0x74, + 0xb5, 0xb8, 0x86, 0xcc, 0xea, 0x92, 0x2e, 0x0b, 0x19, 0x04, 0xce, 0x56, 0x81, 0xbe, 0xc8, 0xe3, + 0x94, 0x57, 0x82, 0x8d, 0x50, 0x44, 0x37, 0x5d, 0x2e, 0xf1, 0xcd, 0x77, 0xe3, 0x84, 0x6c, 0xd3, + 0x32, 0xe9, 0x32, 0x70, 0x5b, 0x70, 0xc1, 0x8a, 0x1f, 0x5a, 0x83, 0x21, 0x76, 0xab, 0x22, 0x9e, + 0x1e, 0x29, 0xe3, 0x26, 0x32, 0xef, 0x13, 0xa6, 0x8b, 0x2f, 0xfb, 0x1b, 0x63, 0xc1, 0x0b, 0xdd, + 0x90, 0xf7, 0x6f, 0xe3, 0x95, 0xe0, 0x6e, 0x4c, 0xd8, 0xfd, 0xdb, 0xda, 0xc2, 0x27, 0xd2, 0x0b, + 0xb5, 0x1c, 0x9e, 0x9b, 0x1d, 0xc9, 0x28, 0x49, 0xd7, 0x60, 0xf1, 0x5f, 0x26, 0x5d, 0x9a, 0x86, + 0x32, 0x0d, 0x35, 0x53, 0x34, 0xa5, 0x83, 0xfd, 0xa6, 0xc9, 0x0c, 0x67, 0xb9, 0xcf, 0x78, 0x30, + 0x6e, 0xcc, 0xd8, 0x63, 0x74, 0x76, 0xfa, 0x30, 0x95, 0x9d, 0x92, 0xc7, 0xe8, 0xe3, 0xfc, 0xa3, + 0x01, 0x98, 0x30, 0x05, 0x03, 0x5d, 0x81, 0xda, 0x36, 0x4b, 0x89, 0x94, 0x26, 0x62, 0x51, 0xf2, + 0xbf, 0x2a, 0x11, 0x38, 0xa5, 0x61, 0x29, 0x69, 0x58, 0x71, 0x2d, 0xe6, 0x24, 0x4d, 0x49, 0xa3, + 0x30, 0x58, 0xa3, 0xa2, 0x06, 0xdb, 0x7a, 0x18, 0x26, 0x4a, 0x71, 0x2b, 0x99, 0x59, 0x60, 0x50, + 0x2c, 0xb0, 0x54, 0x61, 0xdf, 0xa7, 0x1d, 0xf2, 0x4d, 0x7f, 0x97, 0x52, 0xd8, 0x37, 0x75, 0x24, + 0x36, 0x69, 0xe9, 0x02, 0x14, 0xc6, 0x4c, 0x08, 0x85, 0x59, 0x98, 0xc6, 0xf0, 0x34, 0xf9, 0x2d, + 0x23, 0x89, 0x47, 0x5f, 0x80, 0xc7, 0xd4, 0xa5, 0x20, 0xcc, 0xfd, 0x87, 0xb2, 0xc6, 0x21, 0x63, + 0x6f, 0xf7, 0xd8, 0x62, 0x3e, 0x19, 0xee, 0x55, 0x1e, 0xbd, 0x0e, 0x13, 0xc2, 0xa4, 0x93, 0x1c, + 0x87, 0xcd, 0x23, 0xde, 0x9b, 0x06, 0x16, 0x67, 0xa8, 0x51, 0x1d, 0xa6, 0x28, 0x84, 0x99, 0x52, + 0x92, 0x03, 0xbf, 0xdc, 0xa4, 0x56, 0xe6, 0x9b, 0x19, 0x3c, 0xee, 0x2a, 0x81, 0xe6, 0x61, 0x92, + 0xdb, 0x16, 0x74, 0x07, 0xc3, 0xbe, 0x83, 0x88, 0x46, 0x54, 0x93, 0xe0, 0x8e, 0x89, 0xc6, 0x59, + 0x7a, 0xf4, 0x0a, 0x8c, 0x39, 0x51, 0x6b, 0xcb, 0x4b, 0x48, 0x2b, 0xe9, 0x44, 0xfc, 0x66, 0xbb, + 0x76, 0x46, 0x3e, 0xaf, 0xe1, 0xb0, 0x41, 0x69, 0x7f, 0x15, 0x4e, 0xe7, 0x04, 0x3d, 0x53, 0xc1, + 0x71, 0xda, 0x9e, 0xec, 0x53, 0x26, 0x1a, 0x67, 0xbe, 0xb1, 0x22, 0x7b, 0xa3, 0x51, 0x51, 0xe9, + 0x64, 0x8e, 0x53, 0x2d, 0x3f, 0x9a, 0x92, 0xce, 0x65, 0x89, 0xc0, 0x29, 0x8d, 0xfd, 0xdf, 0x6b, + 0xa0, 0xb9, 0x19, 0x4a, 0xc4, 0x60, 0xbc, 0x02, 0x63, 0x32, 0xe5, 0x9f, 0x96, 0x6a, 0x4b, 0x75, + 0xf3, 0xba, 0x86, 0xc3, 0x06, 0x25, 0x6d, 0x5b, 0x20, 0x9d, 0x26, 0xd9, 0xd8, 0x1f, 0xe5, 0x4d, + 0xc1, 0x29, 0x0d, 0xba, 0x0c, 0x23, 0x31, 0xf1, 0x37, 0x6e, 0x79, 0xc1, 0x7d, 0x21, 0xd8, 0x4a, + 0x2b, 0x37, 0x05, 0x1c, 0x2b, 0x0a, 0xf4, 0x39, 0xa8, 0x76, 0x3c, 0x57, 0x88, 0xf2, 0x9c, 0xb4, + 0x3b, 0xef, 0xae, 0xd4, 0x0f, 0xf6, 0x66, 0x67, 0xf3, 0xf3, 0x18, 0xd2, 0x6d, 0x64, 0x3c, 0x47, + 0x27, 0x1f, 0x2d, 0x9a, 0xe7, 0x3f, 0x1e, 0xea, 0xd3, 0x7f, 0x7c, 0x0d, 0x40, 0xf4, 0x59, 0x4a, + 0x72, 0x35, 0xfd, 0x66, 0xd7, 0x15, 0x06, 0x6b, 0x54, 0x74, 0x33, 0xda, 0x8a, 0x88, 0x23, 0x77, + 0x6b, 0x3c, 0x22, 0x77, 0xe4, 0x43, 0x6c, 0x46, 0x17, 0xb3, 0xdc, 0x70, 0x77, 0x05, 0xa8, 0x0d, + 0xa7, 0x5c, 0x3a, 0x8f, 0x8c, 0x5a, 0x6b, 0x47, 0x88, 0x03, 0xa6, 0x35, 0xd6, 0xb3, 0x9c, 0x70, + 0x37, 0x73, 0xf4, 0x0e, 0xcc, 0x48, 0x60, 0xf7, 0xb5, 0x3f, 0x36, 0x5d, 0xaa, 0x0b, 0xe7, 0xf7, + 0xf7, 0x66, 0x67, 0xea, 0x3d, 0xa9, 0xf0, 0x21, 0x1c, 0xd0, 0xdb, 0x30, 0xc4, 0x4e, 0x1c, 0xe2, + 0xe9, 0x51, 0xb6, 0xda, 0xbd, 0x58, 0xd6, 0xe1, 0x36, 0xc7, 0xce, 0x2d, 0x44, 0x20, 0x63, 0x7a, + 0x8a, 0xc3, 0x80, 0x58, 0xf0, 0x44, 0x6d, 0x18, 0x75, 0x82, 0x20, 0x4c, 0x1c, 0x6e, 0x84, 0x8d, + 0x95, 0xb1, 0x23, 0xb5, 0x2a, 0xe6, 0xd3, 0xb2, 0xbc, 0x1e, 0x15, 0x1d, 0xa5, 0x61, 0xb0, 0x5e, + 0x05, 0x5d, 0xc6, 0xc3, 0x07, 0x54, 0x61, 0x4a, 0xa7, 0x7b, 0x3c, 0x3d, 0x5e, 0x66, 0x19, 0xbf, + 0x63, 0x14, 0xd2, 0x34, 0x98, 0xc9, 0x0c, 0x67, 0xb9, 0xa3, 0x39, 0xc3, 0x8f, 0x3a, 0x91, 0x86, + 0xe9, 0xa6, 0x7e, 0x54, 0xdd, 0x6d, 0xca, 0xae, 0x94, 0xf2, 0xd0, 0x3c, 0xa6, 0x09, 0x26, 0x33, + 0x57, 0x4a, 0x53, 0x14, 0xd6, 0xe9, 0x66, 0x3e, 0x0d, 0xa3, 0xda, 0x80, 0xf7, 0x13, 0x0f, 0x3a, + 0xf3, 0x3a, 0x4c, 0x65, 0x07, 0xb2, 0xaf, 0x78, 0xd2, 0xff, 0x59, 0x81, 0xc9, 0x9c, 0x93, 0x8c, + 0xfb, 0x1e, 0x8b, 0x98, 0x36, 0x54, 0xde, 0x4d, 0x2f, 0x70, 0x31, 0xc3, 0x98, 0x8a, 0xab, 0x52, + 0x42, 0x71, 0x49, 0x2d, 0x5a, 0xed, 0xa9, 0x45, 0x85, 0xb2, 0x1a, 0x38, 0xba, 0xb2, 0x32, 0x57, + 0x87, 0xc1, 0x52, 0xab, 0xc3, 0x23, 0x50, 0x70, 0xc6, 0x02, 0x33, 0x5c, 0x62, 0x81, 0x39, 0xb0, + 0x60, 0xc2, 0x94, 0xbc, 0x12, 0x23, 0xfe, 0x51, 0x1d, 0xc0, 0x39, 0xb6, 0x11, 0x4b, 0xa2, 0xd0, + 0xf7, 0x49, 0x24, 0x22, 0xc5, 0x26, 0xc4, 0xbe, 0x4a, 0x40, 0xb1, 0x46, 0x61, 0x7f, 0xbb, 0x02, + 0x53, 0x69, 0xd8, 0xb0, 0x48, 0x7d, 0x7a, 0x7c, 0x47, 0x03, 0x6b, 0xc6, 0xd1, 0x40, 0x51, 0x46, + 0xd3, 0x4c, 0xbb, 0x7a, 0x1e, 0x13, 0xbc, 0x9d, 0x39, 0x26, 0x78, 0xb1, 0x4f, 0xbe, 0x87, 0x1f, + 0x19, 0xfc, 0xb3, 0x0a, 0x9c, 0xcd, 0x16, 0x59, 0xf4, 0x1d, 0x6f, 0xfb, 0x18, 0xc7, 0xe9, 0x0b, + 0xc6, 0x38, 0xbd, 0xdc, 0x5f, 0x7f, 0x58, 0xe3, 0x7a, 0x0e, 0x96, 0x93, 0x19, 0xac, 0x4f, 0x1f, + 0x85, 0xf9, 0xe1, 0x23, 0xf6, 0x3b, 0x16, 0x3c, 0x9e, 0x5b, 0xee, 0x24, 0x5c, 0xa0, 0x6f, 0x99, + 0x2e, 0xd0, 0x17, 0x8e, 0xd0, 0xbd, 0x1e, 0x3e, 0xd1, 0xff, 0x5a, 0xe9, 0xd1, 0x2d, 0xe6, 0x2d, + 0xbb, 0x03, 0xa3, 0x4e, 0xab, 0x45, 0xe2, 0x78, 0x35, 0x74, 0x55, 0x2e, 0x9e, 0xe7, 0xd9, 0xfa, + 0x99, 0x82, 0x0f, 0xf6, 0x66, 0x67, 0xb2, 0x2c, 0x52, 0x34, 0xd6, 0x39, 0x98, 0x39, 0xb5, 0x2a, + 0xc7, 0x94, 0x53, 0xeb, 0x1a, 0xc0, 0x8e, 0xda, 0xa5, 0x67, 0x9d, 0x70, 0xda, 0xfe, 0x5d, 0xa3, + 0x42, 0xef, 0x30, 0xab, 0x97, 0x87, 0x48, 0x0c, 0x14, 0x4e, 0x38, 0xe3, 0x03, 0xea, 0xf1, 0x16, + 0xfc, 0xce, 0xa4, 0xf2, 0x58, 0x2a, 0x9e, 0xf6, 0x77, 0xab, 0xf0, 0x53, 0x87, 0x88, 0x1d, 0x9a, + 0x37, 0x4f, 0x3e, 0x9f, 0xcb, 0xba, 0xa7, 0x66, 0x72, 0x0b, 0x1b, 0xfe, 0xaa, 0xcc, 0xc7, 0xaa, + 0x7c, 0xe8, 0x8f, 0xf5, 0x2d, 0xdd, 0x99, 0xc8, 0x43, 0x1d, 0xaf, 0x1f, 0x79, 0x62, 0x3d, 0x3a, + 0xef, 0xe2, 0x09, 0x3a, 0x3e, 0xec, 0xaf, 0x5b, 0xf0, 0xf1, 0xdc, 0x4e, 0x19, 0x01, 0x16, 0x57, + 0xa0, 0xd6, 0xa2, 0x40, 0xed, 0x2e, 0x4a, 0x7a, 0xc5, 0x4c, 0x22, 0x70, 0x4a, 0x63, 0xc4, 0x51, + 0x54, 0x0a, 0xe3, 0x28, 0xfe, 0xbd, 0x05, 0x67, 0xb2, 0x8d, 0x38, 0x09, 0xad, 0xd3, 0x34, 0xb5, + 0xce, 0x5c, 0x7f, 0xdf, 0xbe, 0x87, 0xc2, 0xf9, 0xf6, 0x38, 0x9c, 0xeb, 0x5a, 0xac, 0xf8, 0x30, + 0xfe, 0xac, 0x05, 0xa7, 0x36, 0xd9, 0xfe, 0x42, 0xbb, 0xf1, 0x23, 0x3a, 0x56, 0x70, 0x4d, 0xea, + 0xd0, 0x8b, 0x42, 0x7c, 0xb7, 0xd4, 0x45, 0x82, 0xbb, 0x2b, 0x43, 0xdf, 0xb0, 0xe0, 0x8c, 0xf3, + 0x20, 0xee, 0xca, 0xa3, 0x2f, 0xe4, 0xe8, 0xf5, 0x02, 0x57, 0x5e, 0x41, 0x06, 0xfe, 0x85, 0xe9, + 0xfd, 0xbd, 0xd9, 0x33, 0x79, 0x54, 0x38, 0xb7, 0x56, 0xf4, 0xb6, 0xc8, 0x3f, 0x46, 0xcd, 0xbe, + 0x52, 0x77, 0xd7, 0xf2, 0xee, 0x1f, 0x70, 0x9d, 0x24, 0x31, 0x58, 0x71, 0x44, 0x5f, 0x86, 0xda, + 0xa6, 0xbc, 0xe4, 0x23, 0x94, 0x5e, 0xc1, 0xca, 0x92, 0x7b, 0x27, 0x88, 0x47, 0xb9, 0x2b, 0x14, + 0x4e, 0x99, 0xa2, 0x1b, 0x50, 0x0d, 0x36, 0x62, 0x71, 0x5f, 0xb7, 0x28, 0x8e, 0xc6, 0x8c, 0x5a, + 0xe2, 0x37, 0x10, 0x6f, 0x2f, 0x37, 0x31, 0x65, 0x41, 0x39, 0x45, 0xeb, 0xae, 0xf0, 0x61, 0x17, + 0x70, 0xc2, 0x0b, 0xf5, 0x6e, 0x4e, 0x78, 0xa1, 0x8e, 0x29, 0x0b, 0x16, 0xb0, 0x17, 0xb7, 0x62, + 0x4f, 0x38, 0xa8, 0x0b, 0x2e, 0x73, 0x77, 0xdd, 0xca, 0xe0, 0xa9, 0xe8, 0x18, 0x18, 0x73, 0x46, + 0x68, 0x0d, 0x86, 0x5a, 0x2c, 0x75, 0xb4, 0xf0, 0x1f, 0x14, 0x25, 0x14, 0xee, 0x4a, 0x33, 0xcd, + 0x0f, 0xd2, 0x38, 0x1c, 0x0b, 0x5e, 0x8c, 0x2b, 0x69, 0x6f, 0x6d, 0xc4, 0xc2, 0x3f, 0x50, 0xc4, + 0xb5, 0x2b, 0x09, 0xb8, 0xe0, 0xca, 0xe0, 0x58, 0xf0, 0x42, 0x75, 0xa8, 0x6c, 0xb4, 0x44, 0xfe, + 0xc7, 0x82, 0x1d, 0xad, 0x79, 0x9d, 0x74, 0x61, 0x68, 0x7f, 0x6f, 0xb6, 0xb2, 0xbc, 0x88, 0x2b, + 0x1b, 0x2d, 0xf4, 0x16, 0x0c, 0x6f, 0xf0, 0x0b, 0x82, 0x22, 0xd7, 0xe3, 0xd5, 0xa2, 0x5b, 0x8c, + 0x5d, 0xb7, 0x09, 0xf9, 0x4d, 0x06, 0x81, 0xc0, 0x92, 0x1d, 0x7a, 0x07, 0x60, 0x43, 0x5d, 0x79, + 0x14, 0xc9, 0x1e, 0xe7, 0xfa, 0xbb, 0x22, 0x29, 0x76, 0xcf, 0x0a, 0x8a, 0x35, 0x8e, 0x54, 0xe6, + 0x1d, 0x99, 0xfd, 0x9e, 0x25, 0x7a, 0x2c, 0x94, 0xf9, 0xdc, 0x64, 0xf9, 0x5c, 0xe6, 0x15, 0x0a, + 0xa7, 0x4c, 0x51, 0x07, 0xc6, 0x77, 0xe2, 0xf6, 0x16, 0x91, 0x53, 0x9f, 0x65, 0x7f, 0x1c, 0xbd, + 0xf6, 0x5a, 0x41, 0x4a, 0x4f, 0x51, 0xc4, 0x8b, 0x92, 0x8e, 0xe3, 0x77, 0x69, 0x30, 0x96, 0x46, + 0xe9, 0x4d, 0x9d, 0x2d, 0x36, 0x6b, 0xa1, 0x9f, 0xe4, 0xbd, 0x4e, 0xb8, 0xbe, 0x9b, 0x10, 0x91, + 0x1d, 0xb2, 0xe0, 0x93, 0xbc, 0xc1, 0x89, 0xbb, 0x3f, 0x89, 0x40, 0x60, 0xc9, 0x4e, 0x0d, 0x19, + 0xd3, 0xc6, 0x53, 0xa5, 0x87, 0xac, 0xab, 0x0f, 0xe9, 0x90, 0x31, 0xed, 0x9b, 0x32, 0x65, 0x5a, + 0xb7, 0xbd, 0x15, 0x26, 0x61, 0x90, 0xd1, 0xfd, 0xa7, 0xca, 0x68, 0xdd, 0x46, 0x4e, 0xc9, 0x6e, + 0xad, 0x9b, 0x47, 0x85, 0x73, 0x6b, 0xb5, 0x7f, 0x7f, 0xb0, 0x7b, 0xbd, 0x65, 0xe6, 0xf0, 0x2f, + 0x76, 0x9f, 0xae, 0x7e, 0xae, 0xff, 0xed, 0xde, 0x23, 0x3c, 0x67, 0xfd, 0x86, 0x05, 0xe7, 0xda, + 0xb9, 0x8b, 0xa9, 0x58, 0xb0, 0xfa, 0xdd, 0x35, 0xf2, 0x01, 0x53, 0xa9, 0x4f, 0xf3, 0xf1, 0xb8, + 0x47, 0x9d, 0x59, 0x0b, 0xb4, 0xfa, 0xa1, 0x2d, 0xd0, 0x7b, 0x30, 0xc2, 0x8c, 0xa6, 0x34, 0xf7, + 0x46, 0x9f, 0xe9, 0x2a, 0xd8, 0xd2, 0xb7, 0x28, 0x58, 0x60, 0xc5, 0x8c, 0x0e, 0xdc, 0x93, 0xd9, + 0x4e, 0x60, 0xc2, 0xd0, 0x22, 0x67, 0x2b, 0x77, 0x4d, 0x2c, 0x8b, 0x91, 0x78, 0xb2, 0x71, 0x18, + 0xf1, 0x41, 0x11, 0x01, 0x3e, 0xbc, 0xb2, 0x93, 0xb4, 0x68, 0xff, 0xb1, 0x95, 0x63, 0x7f, 0xf1, + 0x3d, 0xc8, 0x6b, 0xe6, 0x1e, 0xe4, 0x62, 0x76, 0x0f, 0xd2, 0xe5, 0x31, 0x30, 0xb6, 0x1f, 0xe5, + 0xf3, 0x16, 0x96, 0x4d, 0x0e, 0x62, 0xfb, 0x70, 0xa1, 0x68, 0x72, 0xb3, 0x00, 0x1e, 0x57, 0x1d, + 0x0a, 0xa6, 0x01, 0x3c, 0xee, 0x4a, 0x1d, 0x33, 0x4c, 0xd9, 0xeb, 0xdf, 0xf6, 0xff, 0xb6, 0xa0, + 0xda, 0x08, 0xdd, 0x63, 0xf4, 0x80, 0x5c, 0x37, 0x3c, 0x20, 0x4f, 0x17, 0xbe, 0xf9, 0xd3, 0xd3, + 0xdf, 0x71, 0x27, 0xe3, 0xef, 0xf8, 0x64, 0x31, 0xab, 0xc3, 0xbd, 0x1b, 0xdf, 0xab, 0x82, 0xfe, + 0x6a, 0x11, 0xfa, 0xad, 0xa3, 0x84, 0x74, 0x56, 0xcb, 0x3d, 0x64, 0x24, 0xea, 0x60, 0x01, 0x50, + 0xf2, 0xbe, 0xd7, 0x9f, 0xda, 0xc8, 0xce, 0x7b, 0xc4, 0xdb, 0xdc, 0x4a, 0x88, 0x9b, 0xed, 0xd8, + 0xc9, 0x45, 0x76, 0xfe, 0x37, 0x0b, 0x26, 0x33, 0xb5, 0xa3, 0xed, 0xbc, 0x2b, 0x23, 0x47, 0x75, + 0x69, 0x9c, 0x2a, 0xbc, 0x64, 0x32, 0x07, 0xa0, 0xdc, 0xf0, 0xd2, 0xf1, 0xc0, 0x8c, 0x30, 0xe5, + 0xa7, 0x8f, 0xb1, 0x46, 0x81, 0x5e, 0x82, 0xd1, 0x24, 0x6c, 0x87, 0x7e, 0xb8, 0xb9, 0x7b, 0x93, + 0xc8, 0x8c, 0x04, 0xea, 0x08, 0x63, 0x2d, 0x45, 0x61, 0x9d, 0xce, 0xfe, 0x41, 0x15, 0xb2, 0x8f, + 0x5e, 0xfd, 0x7f, 0x41, 0xfd, 0xd3, 0x23, 0xa8, 0xbf, 0x6b, 0xc1, 0x14, 0xad, 0x9d, 0xc5, 0xaf, + 0xc8, 0xf8, 0x4b, 0x95, 0x6e, 0xdc, 0x3a, 0x24, 0xdd, 0xf8, 0x45, 0xaa, 0xee, 0xdc, 0xb0, 0x23, + 0x53, 0xe0, 0x68, 0x5a, 0x8c, 0x42, 0xb1, 0xc0, 0x0a, 0x3a, 0x12, 0x45, 0xe2, 0x72, 0x8a, 0x4e, + 0x47, 0xa2, 0x08, 0x0b, 0xac, 0xcc, 0x46, 0x3e, 0x90, 0x9f, 0x8d, 0x9c, 0x67, 0x0c, 0x12, 0x71, + 0x13, 0xc2, 0x0e, 0xd0, 0x32, 0x06, 0xc9, 0x80, 0x8a, 0x94, 0xc6, 0xfe, 0x17, 0x55, 0x18, 0x6b, + 0x84, 0x6e, 0x1a, 0x5b, 0xfd, 0xa2, 0x11, 0x5b, 0x7d, 0x21, 0x13, 0x5b, 0x3d, 0xa5, 0xd3, 0x3e, + 0x9a, 0xd0, 0x6a, 0x91, 0x5b, 0x8a, 0xe5, 0xcb, 0x3f, 0x6a, 0x58, 0xb5, 0x91, 0x5b, 0x4a, 0x71, + 0xc2, 0x26, 0xe3, 0x3f, 0x53, 0xe1, 0xd4, 0x7f, 0x6c, 0xc1, 0x44, 0x23, 0x74, 0xa9, 0x88, 0xfe, + 0x59, 0x92, 0x47, 0x3d, 0x23, 0xd5, 0xd0, 0x21, 0x19, 0xa9, 0x7e, 0xd5, 0x82, 0xe1, 0x46, 0xe8, + 0x9e, 0x84, 0x2b, 0x71, 0xd9, 0x74, 0x25, 0x7e, 0xbc, 0x50, 0xf9, 0xf6, 0xf0, 0x1e, 0xfe, 0x46, + 0x15, 0xc6, 0x69, 0x93, 0xc3, 0x4d, 0xf9, 0xc1, 0x8c, 0xc1, 0xb1, 0x4a, 0x0c, 0x0e, 0x35, 0x07, + 0x43, 0xdf, 0x0f, 0x1f, 0x64, 0x3f, 0xde, 0x32, 0x83, 0x62, 0x81, 0x45, 0x97, 0x61, 0xa4, 0x1d, + 0x91, 0x1d, 0x2f, 0xec, 0xc4, 0xd9, 0xbb, 0x6e, 0x0d, 0x01, 0xc7, 0x8a, 0x02, 0xbd, 0x08, 0x63, + 0xb1, 0x17, 0xb4, 0x88, 0x0c, 0xac, 0x18, 0x60, 0x81, 0x15, 0x3c, 0xf1, 0x9f, 0x06, 0xc7, 0x06, + 0x15, 0x7a, 0x0b, 0x6a, 0xec, 0x3f, 0x9b, 0x43, 0x47, 0x48, 0x91, 0xce, 0xb3, 0x52, 0x49, 0x0e, + 0x38, 0x65, 0x86, 0xae, 0x01, 0x24, 0x32, 0x06, 0x24, 0x16, 0x67, 0xa6, 0xca, 0x38, 0x55, 0xd1, + 0x21, 0x31, 0xd6, 0xa8, 0xd0, 0x73, 0x50, 0x4b, 0x1c, 0xcf, 0xbf, 0xe5, 0x05, 0x24, 0x16, 0x51, + 0x34, 0x22, 0x81, 0xad, 0x00, 0xe2, 0x14, 0x4f, 0xd7, 0x7c, 0x76, 0xd3, 0x96, 0x3f, 0xc0, 0x30, + 0xc2, 0xa8, 0xd9, 0x9a, 0x7f, 0x4b, 0x41, 0xb1, 0x46, 0x61, 0xbf, 0xc0, 0xd6, 0xee, 0x3e, 0x63, + 0xef, 0x7f, 0x52, 0x01, 0xd4, 0x60, 0xb1, 0x26, 0xc6, 0x1b, 0x15, 0x5b, 0x30, 0x11, 0x93, 0x5b, + 0x5e, 0xd0, 0x79, 0x28, 0x58, 0x95, 0xbb, 0xed, 0xd0, 0x5c, 0xd2, 0xcb, 0xf0, 0xdb, 0xa5, 0x26, + 0x0c, 0x67, 0xf8, 0xd2, 0x21, 0x89, 0x3a, 0xc1, 0x7c, 0x7c, 0x37, 0x26, 0x91, 0x78, 0x65, 0x82, + 0x0d, 0x09, 0x96, 0x40, 0x9c, 0xe2, 0xa9, 0x0c, 0xb0, 0x3f, 0xb7, 0xc3, 0x00, 0x87, 0x61, 0x22, + 0xa5, 0x86, 0xa5, 0x1c, 0xd7, 0xe0, 0xd8, 0xa0, 0x42, 0xcb, 0x80, 0xe2, 0x4e, 0xbb, 0xed, 0xb3, + 0xa3, 0x2d, 0xc7, 0xbf, 0x1e, 0x85, 0x9d, 0x36, 0x0f, 0x37, 0x16, 0xd9, 0xba, 0x9b, 0x5d, 0x58, + 0x9c, 0x53, 0x82, 0x4e, 0xfa, 0x8d, 0x98, 0xfd, 0x16, 0xb7, 0x67, 0xb9, 0x83, 0xad, 0xc9, 0x40, + 0x58, 0xe2, 0xec, 0x0e, 0x5b, 0xaa, 0x58, 0xf6, 0xff, 0xa4, 0x13, 0x11, 0x44, 0x60, 0xbc, 0xcd, + 0x96, 0x23, 0x79, 0xbe, 0x5e, 0x6a, 0x28, 0x33, 0xd1, 0x2e, 0x3c, 0xcb, 0xb7, 0xce, 0x06, 0x9b, + 0x5c, 0xed, 0xff, 0x08, 0x4c, 0xd7, 0x88, 0x53, 0xc5, 0x61, 0x11, 0xcb, 0x2a, 0x6c, 0xb1, 0x4f, + 0x94, 0x79, 0xee, 0x26, 0xd5, 0xe3, 0x22, 0x32, 0x16, 0x4b, 0x2e, 0xe8, 0x4b, 0x3c, 0x40, 0x80, + 0xcd, 0xef, 0xf2, 0x6f, 0x50, 0x71, 0x7a, 0x23, 0x4a, 0x5b, 0xb0, 0xc0, 0x1a, 0x3b, 0x74, 0x0b, + 0xc6, 0x45, 0x8a, 0x78, 0xe1, 0x19, 0xa8, 0x1a, 0xbb, 0xe3, 0x71, 0xac, 0x23, 0x0f, 0xb2, 0x00, + 0x6c, 0x16, 0x46, 0x9b, 0xf0, 0xa4, 0xf6, 0x6e, 0x4c, 0x4e, 0x44, 0x16, 0x57, 0x1c, 0x1f, 0xdf, + 0xdf, 0x9b, 0x7d, 0x72, 0xed, 0x30, 0x42, 0x7c, 0x38, 0x1f, 0x74, 0x07, 0xce, 0x3a, 0xad, 0xc4, + 0xdb, 0x21, 0x75, 0xe2, 0xb8, 0xbe, 0x17, 0x10, 0xf3, 0x6a, 0xf5, 0xe3, 0xfb, 0x7b, 0xb3, 0x67, + 0xe7, 0xf3, 0x08, 0x70, 0x7e, 0x39, 0xf4, 0x1a, 0xd4, 0xdc, 0x20, 0x16, 0x63, 0x30, 0x64, 0x3c, + 0x91, 0x53, 0xab, 0xdf, 0x6e, 0xaa, 0xfe, 0xa7, 0x7f, 0x70, 0x5a, 0x00, 0xbd, 0xc7, 0x5f, 0xee, + 0x55, 0x1b, 0x12, 0xfe, 0x34, 0xd3, 0xcb, 0xa5, 0xb6, 0xc0, 0xc6, 0x2d, 0x10, 0xee, 0x34, 0x53, + 0x91, 0x8f, 0xc6, 0x05, 0x11, 0xa3, 0x0a, 0xf4, 0x79, 0x40, 0x31, 0x89, 0x76, 0xbc, 0x16, 0x99, + 0x6f, 0xb1, 0x94, 0x97, 0xec, 0x78, 0x6e, 0xc4, 0x08, 0xff, 0x47, 0xcd, 0x2e, 0x0a, 0x9c, 0x53, + 0x0a, 0xdd, 0xa0, 0x1a, 0x47, 0x87, 0x8a, 0x40, 0x55, 0x69, 0xda, 0x4d, 0xd7, 0x49, 0x3b, 0x22, + 0x2d, 0x27, 0x21, 0xae, 0xc9, 0x11, 0x67, 0xca, 0xd1, 0x65, 0x45, 0xa5, 0xf2, 0x06, 0x33, 0xbc, + 0xb2, 0x3b, 0x9d, 0x37, 0xdd, 0x29, 0x6d, 0x85, 0x71, 0x72, 0x9b, 0x24, 0x0f, 0xc2, 0xe8, 0x3e, + 0x73, 0xb6, 0x8f, 0x68, 0x29, 0xbe, 0x52, 0x14, 0xd6, 0xe9, 0xa8, 0x0d, 0xc4, 0x4e, 0x79, 0x56, + 0xea, 0xcc, 0x85, 0x3e, 0x92, 0xce, 0x9d, 0x1b, 0x1c, 0x8c, 0x25, 0x5e, 0x92, 0xae, 0x34, 0x16, + 0x99, 0x3b, 0x3c, 0x43, 0xba, 0xd2, 0x58, 0xc4, 0x12, 0x8f, 0xc2, 0xee, 0x87, 0x88, 0x26, 0xca, + 0x1c, 0x4d, 0x74, 0x6b, 0xf0, 0x92, 0x6f, 0x11, 0x3d, 0x84, 0x29, 0xf5, 0x18, 0x12, 0xcf, 0xbd, + 0x18, 0x4f, 0x4f, 0x96, 0x79, 0x37, 0x38, 0x37, 0x85, 0xa3, 0x8a, 0x4c, 0x5e, 0xc9, 0xf0, 0xc4, + 0x5d, 0xb5, 0x18, 0x29, 0x02, 0xa6, 0x0a, 0xd3, 0xb3, 0x5f, 0x81, 0x5a, 0xdc, 0x59, 0x77, 0xc3, + 0x6d, 0xc7, 0x0b, 0x98, 0xcf, 0x5a, 0x7f, 0x05, 0x57, 0x22, 0x70, 0x4a, 0x33, 0xf3, 0x59, 0x38, + 0xd5, 0x25, 0xd3, 0x7d, 0x85, 0xd4, 0xfd, 0xe2, 0x00, 0xd4, 0x94, 0x57, 0x07, 0x5d, 0x31, 0x1d, + 0x77, 0x8f, 0x67, 0x1d, 0x77, 0x23, 0x74, 0xe5, 0xd5, 0x7d, 0x75, 0xef, 0xe4, 0x3c, 0x83, 0xf9, + 0x6c, 0xe1, 0x47, 0x2c, 0x7f, 0xb3, 0xa5, 0x8f, 0x47, 0x42, 0x53, 0xb3, 0x7e, 0xe0, 0x50, 0xb3, + 0xbe, 0xe4, 0x2b, 0x47, 0xd4, 0x80, 0x6f, 0x87, 0xee, 0x4a, 0x23, 0xfb, 0x82, 0x47, 0x83, 0x02, + 0x31, 0xc7, 0x31, 0xbb, 0x8b, 0x2a, 0x65, 0x66, 0x77, 0x0d, 0x1f, 0xd5, 0xee, 0x92, 0x1c, 0x70, + 0xca, 0x0c, 0xed, 0xc0, 0xa9, 0x96, 0xf9, 0x22, 0x8b, 0xba, 0xb0, 0xf2, 0x7c, 0x1f, 0x2f, 0xa2, + 0x74, 0xb4, 0xec, 0xf3, 0x8b, 0x59, 0x7e, 0xb8, 0xbb, 0x0a, 0xfb, 0x07, 0xdc, 0x0b, 0x24, 0xb6, + 0x85, 0x24, 0xee, 0xf8, 0xc7, 0x99, 0x4c, 0xfa, 0x8e, 0xb1, 0x53, 0x7d, 0x04, 0xfe, 0xc7, 0xdf, + 0xb4, 0x98, 0xff, 0x71, 0x8d, 0x6c, 0xb7, 0x7d, 0x27, 0x39, 0xce, 0x68, 0xbd, 0x2f, 0xc1, 0x48, + 0x22, 0x6a, 0x29, 0x97, 0x01, 0x5b, 0x6b, 0x16, 0xf3, 0xc7, 0x2a, 0x45, 0x20, 0xa1, 0x58, 0x31, + 0xb4, 0xff, 0x35, 0xff, 0x0a, 0x12, 0x73, 0x12, 0x3b, 0xab, 0xdb, 0xe6, 0xce, 0xea, 0x99, 0xd2, + 0x9d, 0xe9, 0xb1, 0xc3, 0xfa, 0xae, 0xd9, 0x05, 0x66, 0xb0, 0x7d, 0xf4, 0x3d, 0xe2, 0xf6, 0x2a, + 0x98, 0xaf, 0xcc, 0xa0, 0xd7, 0x78, 0xa8, 0x2a, 0xd7, 0x88, 0xcf, 0xf6, 0x19, 0xa6, 0x6a, 0xff, + 0x7a, 0x05, 0xce, 0xe4, 0x3d, 0x3e, 0x8f, 0x5c, 0x18, 0x6b, 0x6b, 0xe6, 0x73, 0xb9, 0x44, 0x06, + 0xba, 0xc1, 0x9d, 0x9a, 0x2e, 0x3a, 0x14, 0x1b, 0x5c, 0x11, 0x81, 0x31, 0xb2, 0xe3, 0xb5, 0x94, + 0x7b, 0xa5, 0xd2, 0xbf, 0x8a, 0x52, 0xd5, 0x2c, 0x69, 0x8c, 0xb0, 0xc1, 0xf6, 0x18, 0x92, 0xb4, + 0xdb, 0xff, 0xd0, 0x82, 0xc7, 0x7a, 0x64, 0x3b, 0xa0, 0xd5, 0x3d, 0x60, 0x5e, 0x48, 0xf1, 0x8a, + 0x91, 0xaa, 0x8e, 0xfb, 0x26, 0xb1, 0xc0, 0xa2, 0x75, 0x00, 0xee, 0x5b, 0x64, 0x4f, 0xbb, 0x56, + 0xca, 0xc4, 0x00, 0x74, 0xdd, 0xac, 0xd6, 0x2e, 0xdd, 0xaa, 0xc7, 0x5c, 0x35, 0xae, 0xf6, 0x77, + 0xaa, 0x30, 0xc8, 0x5f, 0x97, 0x6c, 0xc0, 0xf0, 0x16, 0x4f, 0xae, 0xd8, 0x5f, 0x6e, 0xc7, 0xd4, + 0x4e, 0xe2, 0x00, 0x2c, 0xd9, 0xa0, 0x55, 0x38, 0xed, 0x05, 0x5e, 0xe2, 0x39, 0x7e, 0x9d, 0xf8, + 0xce, 0xae, 0x34, 0xbc, 0x79, 0x62, 0x6d, 0x99, 0x03, 0xf6, 0xf4, 0x4a, 0x37, 0x09, 0xce, 0x2b, + 0x87, 0x5e, 0xef, 0xca, 0x8e, 0xc4, 0x93, 0x56, 0xaa, 0xbb, 0x5a, 0x87, 0x67, 0x48, 0x42, 0xaf, + 0xc2, 0x78, 0xbb, 0x6b, 0x8b, 0xa1, 0x3d, 0x4b, 0x68, 0x6e, 0x2b, 0x4c, 0x5a, 0x54, 0x87, 0xa9, + 0xb8, 0xc3, 0x4e, 0x64, 0xd7, 0xb6, 0x22, 0x12, 0x6f, 0x85, 0xbe, 0x2b, 0x9e, 0xd3, 0x52, 0xe6, + 0x54, 0x33, 0x83, 0xc7, 0x5d, 0x25, 0x28, 0x97, 0x0d, 0xc7, 0xf3, 0x3b, 0x11, 0x49, 0xb9, 0x0c, + 0x99, 0x5c, 0x96, 0x33, 0x78, 0xdc, 0x55, 0xc2, 0xfe, 0x43, 0x0b, 0x4e, 0xe7, 0x84, 0x2d, 0xf0, + 0x68, 0xba, 0x4d, 0x2f, 0x4e, 0x54, 0xfa, 0x64, 0x2d, 0x9a, 0x8e, 0xc3, 0xb1, 0xa2, 0xa0, 0x52, + 0xc8, 0xf7, 0x8d, 0xd9, 0xe3, 0x40, 0x71, 0x30, 0x2b, 0xb0, 0xfd, 0xe5, 0x3a, 0x52, 0x8f, 0xe4, + 0x0f, 0xf4, 0x7c, 0x24, 0xff, 0x29, 0x18, 0xdc, 0x54, 0xbb, 0x73, 0xcd, 0x30, 0xe1, 0xfb, 0x73, + 0x8e, 0xb3, 0xbf, 0x55, 0x85, 0xc9, 0x4c, 0xf8, 0x12, 0x6d, 0x48, 0xe6, 0x2d, 0x7f, 0xe6, 0x52, + 0x58, 0x24, 0xed, 0xad, 0x9c, 0xf7, 0xfc, 0x2f, 0x9a, 0x4f, 0xfd, 0xa6, 0x6d, 0x5e, 0xa8, 0x1b, + 0x8f, 0x98, 0x95, 0x4d, 0xe9, 0xfe, 0x14, 0x0c, 0xb4, 0x43, 0xf5, 0x26, 0xa5, 0x12, 0x7a, 0xbc, + 0x50, 0x6f, 0x84, 0xa1, 0x8f, 0x19, 0x12, 0x3d, 0x2d, 0x7a, 0x9f, 0x71, 0x4e, 0x62, 0xc7, 0x0d, + 0x63, 0x6d, 0x08, 0x9e, 0x81, 0xe1, 0xfb, 0x64, 0x37, 0xf2, 0x82, 0xcd, 0xac, 0x6b, 0xf6, 0x26, + 0x07, 0x63, 0x89, 0x37, 0xd3, 0xb6, 0x0f, 0x1f, 0x73, 0xda, 0xf6, 0x91, 0xc2, 0x10, 0xcc, 0x5f, + 0xb1, 0x60, 0x92, 0xe5, 0x9c, 0x13, 0xd7, 0x60, 0xbd, 0x30, 0x38, 0xc6, 0x55, 0xf1, 0x29, 0x18, + 0x8c, 0x68, 0x65, 0xd9, 0x8c, 0xcb, 0xac, 0x05, 0x98, 0xe3, 0xd0, 0x13, 0xe2, 0xc5, 0x74, 0xfa, + 0xf9, 0xc6, 0x78, 0x06, 0xdb, 0xf4, 0xe9, 0x73, 0x16, 0xe0, 0x8f, 0x49, 0xdb, 0xf7, 0x78, 0x63, + 0x53, 0x4f, 0xcc, 0x47, 0x25, 0xc0, 0x3f, 0xb7, 0x71, 0x8f, 0x2a, 0xc0, 0x3f, 0x9f, 0xf9, 0xe1, + 0x26, 0xe8, 0xff, 0xa8, 0xc0, 0xf9, 0xdc, 0x72, 0xe9, 0xb1, 0xce, 0xb2, 0x71, 0xac, 0x73, 0x2d, + 0x73, 0xac, 0x63, 0x1f, 0x5e, 0xfa, 0xd1, 0x1c, 0xf4, 0xe4, 0x1f, 0xbf, 0x54, 0x4f, 0xf2, 0xf8, + 0x65, 0xa0, 0xac, 0xad, 0x30, 0x58, 0x60, 0x2b, 0xfc, 0x8e, 0x05, 0x8f, 0xe7, 0x8e, 0xd9, 0x47, + 0xef, 0x4a, 0x45, 0x6e, 0x33, 0x7b, 0x58, 0xd0, 0x7f, 0xbd, 0xda, 0xa3, 0x5b, 0xcc, 0x96, 0xbe, + 0x44, 0xf5, 0x0e, 0x43, 0xc6, 0xc2, 0x0c, 0x1a, 0xe3, 0x3a, 0x87, 0xc3, 0xb0, 0xc2, 0xa2, 0x58, + 0xbb, 0x92, 0xc0, 0x1b, 0xb9, 0x74, 0xc4, 0x29, 0x35, 0x67, 0x3a, 0xcf, 0xf4, 0xfb, 0xbc, 0x99, + 0x7b, 0x0a, 0xe8, 0x9e, 0xb6, 0x3d, 0xaa, 0x1e, 0x65, 0x7b, 0x34, 0x96, 0xbf, 0x35, 0x42, 0xf3, + 0x30, 0xb9, 0xed, 0x05, 0xec, 0xcd, 0x34, 0xd3, 0x0e, 0x51, 0xb7, 0xe0, 0x56, 0x4d, 0x34, 0xce, + 0xd2, 0xcf, 0xbc, 0x0a, 0xe3, 0x47, 0xf7, 0x98, 0x7c, 0x50, 0x85, 0x9f, 0x3a, 0x44, 0x2d, 0xf0, + 0xf5, 0xc0, 0xf8, 0x2e, 0xda, 0x7a, 0xd0, 0xf5, 0x6d, 0x1a, 0x70, 0x66, 0xa3, 0xe3, 0xfb, 0xbb, + 0x2c, 0x2c, 0x82, 0xb8, 0x92, 0x42, 0xd8, 0x78, 0xea, 0x35, 0xd3, 0xe5, 0x1c, 0x1a, 0x9c, 0x5b, + 0x12, 0x7d, 0x1e, 0x50, 0xb8, 0xce, 0x12, 0x31, 0xba, 0xe9, 0x8d, 0x65, 0xf6, 0x09, 0xaa, 0xe9, + 0x5c, 0xbd, 0xd3, 0x45, 0x81, 0x73, 0x4a, 0x51, 0x8b, 0x8f, 0x3d, 0x84, 0xaa, 0x9a, 0x95, 0xb1, + 0xf8, 0xb0, 0x8e, 0xc4, 0x26, 0x2d, 0xba, 0x0e, 0xa7, 0x9c, 0x1d, 0xc7, 0xe3, 0xd9, 0x66, 0x24, + 0x03, 0x6e, 0xf2, 0x29, 0x97, 0xc4, 0x7c, 0x96, 0x00, 0x77, 0x97, 0x41, 0x6d, 0xc3, 0xc9, 0xc4, + 0x13, 0x2f, 0xbf, 0x76, 0x04, 0x09, 0x2e, 0xed, 0x76, 0xb2, 0xff, 0xc0, 0xa2, 0x8b, 0x5e, 0xce, + 0x1b, 0x63, 0xc6, 0xd3, 0xdc, 0xda, 0x2d, 0x8d, 0xee, 0xa7, 0xb9, 0x99, 0xff, 0xd5, 0xa4, 0xe5, + 0xa2, 0x11, 0xa7, 0x61, 0x95, 0x86, 0x7d, 0x29, 0x6e, 0x27, 0x29, 0x0a, 0x74, 0x0f, 0x86, 0x5d, + 0x6f, 0xc7, 0x8b, 0xc3, 0xa8, 0xc4, 0x4b, 0xb8, 0x5d, 0xa1, 0x7a, 0xa9, 0xba, 0xac, 0x73, 0x26, + 0x58, 0x72, 0xb3, 0xff, 0x66, 0x05, 0xc6, 0x65, 0x7d, 0x6f, 0x74, 0x42, 0xa6, 0xc3, 0x8e, 0x6b, + 0x29, 0x7f, 0xc3, 0x58, 0xca, 0xaf, 0x94, 0xbb, 0xa2, 0xc5, 0x1a, 0xd5, 0x73, 0x09, 0xff, 0x42, + 0x66, 0x09, 0xbf, 0xda, 0x0f, 0xd3, 0x42, 0xef, 0xd1, 0x29, 0x83, 0xfe, 0x23, 0x94, 0xf8, 0x37, + 0xaf, 0x3b, 0x3d, 0x16, 0x8e, 0xef, 0x54, 0x32, 0xdd, 0x60, 0x0b, 0xc6, 0xd7, 0x60, 0x60, 0xcb, + 0x89, 0x5c, 0x71, 0x54, 0xf6, 0xe9, 0x3e, 0x3f, 0xc5, 0xdc, 0x0d, 0x27, 0x72, 0xb9, 0xda, 0xbf, + 0xac, 0x5e, 0x28, 0x71, 0x22, 0xb7, 0x30, 0xc8, 0x98, 0x55, 0x8a, 0x5e, 0x81, 0xa1, 0xb8, 0x15, + 0xb6, 0x55, 0x54, 0xd7, 0x05, 0xfe, 0x7a, 0x09, 0x85, 0x1c, 0xec, 0xcd, 0x22, 0xb3, 0x3a, 0x0a, + 0xc6, 0x82, 0x7e, 0x86, 0x40, 0x4d, 0x55, 0x7d, 0x8c, 0xe1, 0xac, 0x1f, 0x54, 0xe1, 0x74, 0x8e, + 0xa8, 0xa0, 0x9f, 0x31, 0x46, 0xed, 0xd5, 0xbe, 0x65, 0xed, 0x43, 0x8e, 0xdb, 0xcf, 0xb0, 0x0d, + 0x91, 0x2b, 0x64, 0xe3, 0x08, 0xd5, 0xdf, 0x8d, 0x49, 0xb6, 0x7a, 0x0a, 0x2a, 0xae, 0x9e, 0x56, + 0x7b, 0x42, 0x83, 0x4f, 0xab, 0x51, 0xed, 0x3c, 0xc6, 0x6f, 0xfc, 0xfe, 0x00, 0x9c, 0xc9, 0xbb, + 0x06, 0x8a, 0x7e, 0xde, 0xca, 0xa4, 0x0e, 0x7f, 0xbd, 0xff, 0xbb, 0xa4, 0x3c, 0x9f, 0xb8, 0x48, + 0x0f, 0x31, 0x67, 0x26, 0x13, 0x2f, 0x1c, 0x6d, 0x51, 0x3b, 0xbb, 0x18, 0x10, 0xf1, 0x2c, 0xf0, + 0x52, 0x1f, 0x7c, 0xee, 0x08, 0x4d, 0x11, 0x89, 0xe4, 0xe3, 0xcc, 0xc5, 0x00, 0x09, 0x2e, 0xbe, + 0x18, 0x20, 0xdb, 0x30, 0xb3, 0x09, 0xa3, 0x5a, 0xbf, 0x8e, 0x51, 0x04, 0x3c, 0xba, 0x26, 0x69, + 0xad, 0x3e, 0x46, 0x31, 0xf8, 0xdb, 0x16, 0x64, 0xc2, 0x35, 0x94, 0xd7, 0xc5, 0xea, 0xe9, 0x75, + 0xb9, 0x00, 0x03, 0x51, 0xe8, 0x93, 0x6c, 0x4e, 0x6b, 0x1c, 0xfa, 0x04, 0x33, 0x8c, 0x7a, 0x07, + 0xb1, 0xda, 0xeb, 0x1d, 0x44, 0xba, 0x1d, 0xf7, 0xc9, 0x0e, 0x91, 0x3e, 0x10, 0xa5, 0xbc, 0x6f, + 0x51, 0x20, 0xe6, 0x38, 0xfb, 0x47, 0x55, 0x18, 0xe2, 0x8e, 0x86, 0x63, 0x5c, 0x96, 0x1b, 0x62, + 0xcf, 0x5f, 0xea, 0x42, 0x26, 0x6f, 0xcd, 0x5c, 0xdd, 0x49, 0x1c, 0x2e, 0x50, 0xaa, 0x6f, 0xa9, + 0x9f, 0x00, 0xcd, 0x19, 0xbd, 0x9f, 0xc9, 0x6c, 0x69, 0x81, 0xf3, 0xd0, 0xc6, 0x62, 0x0b, 0x20, + 0x66, 0x4f, 0x62, 0x51, 0x1e, 0x22, 0x29, 0xde, 0x8b, 0xa5, 0xda, 0xd1, 0x54, 0xc5, 0x78, 0x6b, + 0xd2, 0x6c, 0x5c, 0x0a, 0x81, 0x35, 0xde, 0x33, 0x2f, 0x43, 0x4d, 0x11, 0x17, 0x59, 0xfa, 0x63, + 0xba, 0x48, 0xfe, 0x39, 0x98, 0xcc, 0xd4, 0xd5, 0xd7, 0x46, 0xe1, 0xfb, 0x16, 0x9c, 0xea, 0x7a, + 0xc2, 0x15, 0xbd, 0x6f, 0xc1, 0x19, 0x3f, 0xc7, 0xc3, 0x24, 0x3e, 0xf0, 0x51, 0x7c, 0x53, 0x6a, + 0x97, 0x90, 0x87, 0xc5, 0xb9, 0xb5, 0xc9, 0x34, 0x9f, 0x95, 0xfc, 0x34, 0x9f, 0xec, 0x1d, 0x20, + 0xde, 0xf6, 0x93, 0xb0, 0x80, 0x56, 0x4c, 0x0b, 0xe8, 0x13, 0x65, 0xc4, 0xa0, 0x87, 0xe9, 0xf3, + 0xef, 0x2c, 0x40, 0x9c, 0x20, 0xfb, 0x34, 0x1e, 0xf7, 0xd8, 0x69, 0x36, 0x7b, 0x2a, 0x37, 0x0a, + 0x83, 0x35, 0xaa, 0x3e, 0xd3, 0x9e, 0xab, 0x27, 0xa5, 0xca, 0xbd, 0x5b, 0x5f, 0x2d, 0xf1, 0x6e, + 0xfd, 0x6f, 0x56, 0x21, 0x1b, 0xda, 0x80, 0xbe, 0x0c, 0x63, 0x2d, 0xa7, 0xed, 0xac, 0x7b, 0xbe, + 0x97, 0x78, 0x24, 0x2e, 0x77, 0x6c, 0xb4, 0xa8, 0x95, 0x10, 0x3e, 0x5f, 0x0d, 0x82, 0x0d, 0x8e, + 0x68, 0x0e, 0xa0, 0x1d, 0x79, 0x3b, 0x9e, 0x4f, 0x36, 0x99, 0xdd, 0xa1, 0x92, 0xa4, 0x34, 0x14, + 0x14, 0x6b, 0x14, 0x39, 0x31, 0x74, 0xd5, 0x93, 0x88, 0xa1, 0x1b, 0xe8, 0x33, 0x86, 0x6e, 0xb0, + 0x54, 0x0c, 0x1d, 0x86, 0x73, 0xd2, 0x55, 0x4b, 0xff, 0x2f, 0x7b, 0x3e, 0xe1, 0x79, 0xfd, 0x44, + 0xe4, 0xe3, 0xcc, 0xfe, 0xde, 0xec, 0x39, 0x9c, 0x4b, 0x81, 0x7b, 0x94, 0xb4, 0x3b, 0x70, 0xba, + 0x49, 0x22, 0x8f, 0xa5, 0x5d, 0x72, 0xd3, 0x19, 0xf8, 0x0e, 0xd4, 0xa2, 0xcc, 0xe4, 0xef, 0xf3, + 0x4e, 0x9a, 0x96, 0xbc, 0x42, 0x4e, 0xf6, 0x94, 0xa5, 0xfd, 0x97, 0x2a, 0x30, 0x2c, 0x42, 0x88, + 0x8e, 0x71, 0x21, 0xb9, 0x69, 0xec, 0xef, 0x9e, 0x29, 0x9a, 0xb9, 0xac, 0x39, 0x3d, 0x77, 0x76, + 0xcd, 0xcc, 0xce, 0xee, 0xb9, 0x72, 0xec, 0x0e, 0xdf, 0xd3, 0xfd, 0xb0, 0x02, 0x13, 0x66, 0x28, + 0xd5, 0x31, 0x0e, 0xc7, 0x5b, 0x30, 0x1c, 0x8b, 0xf8, 0xa2, 0x4a, 0x99, 0x58, 0x8d, 0xec, 0x27, + 0x4d, 0xdf, 0xc0, 0x17, 0x11, 0x45, 0x92, 0x5d, 0x6e, 0x08, 0x53, 0xf5, 0x24, 0x42, 0x98, 0xec, + 0x1f, 0x31, 0x95, 0xaa, 0x0f, 0xe0, 0x49, 0xac, 0x09, 0x6f, 0x98, 0xda, 0xf7, 0x72, 0x29, 0x51, + 0x10, 0xed, 0xeb, 0xb1, 0x36, 0x7c, 0xcf, 0x82, 0x51, 0x41, 0x78, 0x12, 0x3d, 0xf8, 0xbc, 0xd9, + 0x83, 0xa7, 0x4b, 0xf5, 0xa0, 0x47, 0xd3, 0xff, 0x6e, 0x45, 0x35, 0xbd, 0x21, 0x9e, 0x0c, 0x2d, + 0x4c, 0xf4, 0x38, 0xd2, 0x8e, 0xc2, 0x24, 0x6c, 0x85, 0xbe, 0x58, 0xe5, 0x9f, 0x48, 0xa3, 0xce, + 0x39, 0xfc, 0x40, 0xfb, 0x8d, 0x15, 0x35, 0x8b, 0xa6, 0x0e, 0xa3, 0x44, 0x2c, 0x51, 0x79, 0x0f, + 0x96, 0xae, 0xcb, 0x07, 0xa1, 0x29, 0x4c, 0x5c, 0xd9, 0xe8, 0xf7, 0x21, 0xd4, 0x34, 0x86, 0x5c, + 0x71, 0xc2, 0x1a, 0x57, 0x19, 0xde, 0xc8, 0x6a, 0x18, 0x34, 0xdd, 0xa8, 0xb7, 0x05, 0x1c, 0x2b, + 0x0a, 0xfb, 0x65, 0xa6, 0x63, 0xd9, 0xf0, 0xf4, 0x17, 0x18, 0xfe, 0x0b, 0x43, 0x6a, 0x60, 0x99, + 0x93, 0xe4, 0x36, 0x0c, 0xd2, 0x2e, 0xca, 0x7d, 0x60, 0x39, 0x85, 0x46, 0x9b, 0xa0, 0x07, 0x88, + 0x45, 0x49, 0x8c, 0x39, 0x1b, 0x44, 0xba, 0x7c, 0xef, 0x2f, 0x97, 0xd6, 0x91, 0x7d, 0x78, 0xdb, + 0x59, 0xe2, 0x18, 0x96, 0x2c, 0x63, 0xa5, 0x91, 0x4d, 0xce, 0xb9, 0x28, 0x11, 0x38, 0xa5, 0x41, + 0x57, 0x84, 0xb9, 0x6e, 0xbe, 0x27, 0x2b, 0xcd, 0x75, 0x39, 0x24, 0x9a, 0xbd, 0x7e, 0x15, 0x46, + 0x55, 0x7a, 0xf2, 0x06, 0xcf, 0x32, 0x5d, 0xe3, 0xf6, 0xcb, 0x52, 0x0a, 0xc6, 0x3a, 0x0d, 0x5a, + 0x81, 0xd3, 0xae, 0x8a, 0x66, 0x6d, 0x74, 0xd6, 0x7d, 0xaf, 0x45, 0x8b, 0xf2, 0x9b, 0x24, 0x8f, + 0xed, 0xef, 0xcd, 0x9e, 0xae, 0x77, 0xa3, 0x71, 0x5e, 0x19, 0xb4, 0x06, 0x93, 0x31, 0x4f, 0xc3, + 0x2e, 0xef, 0x9c, 0x89, 0xec, 0x75, 0xcf, 0x4a, 0xa7, 0x7f, 0xd3, 0x44, 0x1f, 0x30, 0x10, 0x57, + 0x0a, 0x02, 0x84, 0xb3, 0x2c, 0xd0, 0xeb, 0x30, 0xe1, 0xeb, 0xcf, 0x29, 0x35, 0x44, 0x50, 0xaf, + 0x0a, 0x88, 0x30, 0x1e, 0x5b, 0x6a, 0xe0, 0x0c, 0x35, 0x7a, 0x0b, 0xa6, 0x75, 0x88, 0xb8, 0xd4, + 0xee, 0x04, 0x9b, 0x24, 0x16, 0xf9, 0x9f, 0x9f, 0xd8, 0xdf, 0x9b, 0x9d, 0xbe, 0xd5, 0x83, 0x06, + 0xf7, 0x2c, 0x8d, 0x5e, 0x81, 0x31, 0x39, 0x92, 0x5a, 0x80, 0x6f, 0x1a, 0x8a, 0xa3, 0xe1, 0xb0, + 0x41, 0xf9, 0xe1, 0xce, 0x36, 0xbe, 0x46, 0x0b, 0x6b, 0x8b, 0x2a, 0xfa, 0x0a, 0x8c, 0xe9, 0x6d, + 0x14, 0x6a, 0xf2, 0x53, 0xe5, 0x9f, 0xa8, 0x12, 0x8b, 0xb3, 0x6a, 0xb9, 0x8e, 0xc3, 0x06, 0x6f, + 0xbb, 0x05, 0x93, 0x99, 0x27, 0x72, 0xd5, 0x5b, 0xcb, 0xd6, 0xa3, 0x7a, 0x6b, 0xd9, 0xfe, 0xba, + 0x05, 0x83, 0x6b, 0x8e, 0x57, 0xfc, 0xd0, 0x41, 0x99, 0xc7, 0x8a, 0xd1, 0x4b, 0x30, 0x44, 0x36, + 0x36, 0x48, 0x4b, 0xbe, 0xdd, 0xfc, 0xa4, 0x7a, 0x79, 0x9f, 0x41, 0xe9, 0x4c, 0x62, 0x95, 0xf1, + 0xbf, 0x58, 0x10, 0xdb, 0xff, 0xc1, 0x02, 0x58, 0x0b, 0x7d, 0x79, 0xca, 0x52, 0xd0, 0x92, 0x85, + 0xae, 0x27, 0x17, 0x2e, 0xe6, 0x3c, 0xb9, 0x80, 0x52, 0x86, 0x39, 0x0f, 0x2e, 0xa8, 0xde, 0x54, + 0x4b, 0xf5, 0x66, 0xa0, 0x9f, 0xde, 0x7c, 0xd3, 0x02, 0x11, 0xf2, 0x52, 0x62, 0x59, 0x72, 0x65, + 0x9a, 0x74, 0x23, 0xbb, 0xc4, 0xb3, 0x65, 0xee, 0x6d, 0x88, 0x9c, 0x12, 0x4a, 0x94, 0x8c, 0x4c, + 0x12, 0x06, 0x57, 0xba, 0xf5, 0x1e, 0xe5, 0xe8, 0x55, 0x66, 0xf0, 0x15, 0xb7, 0xab, 0xaf, 0x44, + 0x5a, 0x2c, 0x8b, 0x38, 0x65, 0xac, 0xf2, 0x29, 0xe9, 0x59, 0xc4, 0x25, 0x02, 0xa7, 0x34, 0xe8, + 0x19, 0x18, 0x8e, 0x3b, 0xeb, 0x8c, 0x3c, 0x13, 0xff, 0xd2, 0xe4, 0x60, 0x2c, 0xf1, 0xf6, 0xcf, + 0x21, 0x30, 0xba, 0x66, 0xe4, 0x6e, 0xb2, 0x1e, 0x79, 0xee, 0xa6, 0xb7, 0x61, 0x84, 0x6c, 0xb7, + 0x93, 0xdd, 0xba, 0x17, 0x95, 0xcb, 0xa3, 0xb7, 0x24, 0xa8, 0xbb, 0xb9, 0x4b, 0x0c, 0x56, 0x1c, + 0x7b, 0x64, 0xe2, 0xaa, 0x7e, 0x24, 0x32, 0x71, 0x0d, 0xfc, 0x89, 0x64, 0xe2, 0x7a, 0x0b, 0x86, + 0x37, 0xf9, 0xdb, 0xfd, 0xe2, 0x9e, 0x5e, 0xc1, 0xf1, 0x55, 0xce, 0x43, 0xff, 0xfc, 0x42, 0x96, + 0x40, 0x60, 0xc9, 0x0e, 0xad, 0xc1, 0x10, 0xdf, 0x2c, 0x88, 0xe4, 0x56, 0x9f, 0x2a, 0xe3, 0x46, + 0xe9, 0xce, 0xf3, 0x24, 0x82, 0x9c, 0x04, 0x2f, 0x99, 0x79, 0x6b, 0xf8, 0xc3, 0x67, 0xde, 0x52, + 0xf9, 0xb2, 0x46, 0x1e, 0x55, 0xbe, 0x2c, 0x23, 0xef, 0x58, 0xed, 0x38, 0xf2, 0x8e, 0x7d, 0xd3, + 0x82, 0xb3, 0xed, 0xbc, 0xb4, 0x7d, 0x22, 0xf3, 0xd5, 0x67, 0x8f, 0x90, 0xc6, 0xd0, 0xa8, 0x9a, + 0x5d, 0x9f, 0xca, 0x25, 0xc3, 0xf9, 0x15, 0xcb, 0x04, 0x66, 0xa3, 0x1f, 0x3e, 0x81, 0xd9, 0x71, + 0xa7, 0xc8, 0x4a, 0xd3, 0x99, 0x8d, 0x1f, 0x4b, 0x3a, 0xb3, 0x89, 0x47, 0x98, 0xce, 0x4c, 0x4b, + 0x44, 0x36, 0xf9, 0x68, 0x13, 0x91, 0x6d, 0xc1, 0xa8, 0x1b, 0x3e, 0x08, 0x1e, 0x38, 0x91, 0x3b, + 0xdf, 0x58, 0x11, 0x79, 0xaf, 0x0a, 0x72, 0x2c, 0xd4, 0xd3, 0x02, 0x46, 0x0d, 0xdc, 0x5f, 0x98, + 0x22, 0xb1, 0xce, 0x5a, 0xa4, 0x64, 0x3b, 0xf5, 0x21, 0x53, 0xb2, 0x19, 0x89, 0xcd, 0xd0, 0x71, + 0x24, 0x36, 0xfb, 0x32, 0xbb, 0x69, 0xbd, 0xe1, 0x6d, 0xae, 0x3a, 0xed, 0xe9, 0xd3, 0x65, 0x6a, + 0x58, 0x94, 0xe4, 0xdd, 0x35, 0x28, 0x14, 0x4e, 0x99, 0x76, 0xa7, 0x4e, 0x3b, 0x73, 0xd2, 0xa9, + 0xd3, 0xce, 0x1e, 0x63, 0xea, 0xb4, 0x73, 0x27, 0x9a, 0x3a, 0xed, 0xb1, 0x3f, 0x91, 0xd4, 0x69, + 0x7f, 0x01, 0xce, 0x1f, 0xfe, 0x39, 0xd2, 0xe4, 0xbc, 0x8d, 0x74, 0x87, 0x9f, 0x49, 0xce, 0xcb, + 0x4c, 0x1d, 0x8d, 0xaa, 0x74, 0x06, 0xa7, 0x7f, 0x6e, 0xc1, 0x63, 0x3d, 0xf2, 0x9c, 0x94, 0xbe, + 0x7c, 0xd0, 0x86, 0xc9, 0xb6, 0x59, 0xb4, 0xf4, 0x35, 0x21, 0x23, 0xaf, 0x8a, 0x0a, 0x6b, 0xcb, + 0x20, 0x70, 0x96, 0xfd, 0xc2, 0x27, 0x7e, 0xfc, 0xc1, 0xf9, 0x8f, 0xfd, 0xe4, 0x83, 0xf3, 0x1f, + 0xfb, 0xbd, 0x0f, 0xce, 0x7f, 0xec, 0x67, 0xf7, 0xcf, 0x5b, 0x3f, 0xde, 0x3f, 0x6f, 0xfd, 0x64, + 0xff, 0xbc, 0xf5, 0x87, 0xfb, 0xe7, 0xad, 0x6f, 0xfe, 0xd1, 0xf9, 0x8f, 0x7d, 0xb1, 0xb2, 0x73, + 0xf5, 0xff, 0x05, 0x00, 0x00, 0xff, 0xff, 0x70, 0xfd, 0x33, 0x79, 0x2a, 0xb5, 0x00, 0x00, } diff --git a/vendor/k8s.io/client-go/pkg/api/v1/helpers.go b/vendor/k8s.io/client-go/pkg/api/v1/helpers.go new file mode 100644 index 000000000..d33a79c72 --- /dev/null +++ b/vendor/k8s.io/client-go/pkg/api/v1/helpers.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 v1 + +import "k8s.io/client-go/pkg/types" + +// 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 &v1.DeleteOptions{} directly. +func NewDeleteOptions(grace int64) *DeleteOptions { + return &DeleteOptions{GracePeriodSeconds: &grace} +} + +// NewUIDPreconditions returns a Preconditions with UID set. +func NewUIDPreconditions(uid string) *Preconditions { + u := types.UID(uid) + return &Preconditions{UID: &u} +} diff --git a/vendor/k8s.io/client-go/1.5/pkg/api/v1/meta.go b/vendor/k8s.io/client-go/pkg/api/v1/meta.go similarity index 96% rename from vendor/k8s.io/client-go/1.5/pkg/api/v1/meta.go rename to vendor/k8s.io/client-go/pkg/api/v1/meta.go index 3bde633b5..a641eb2b5 100644 --- a/vendor/k8s.io/client-go/1.5/pkg/api/v1/meta.go +++ b/vendor/k8s.io/client-go/pkg/api/v1/meta.go @@ -17,10 +17,10 @@ limitations under the License. package v1 import ( - "k8s.io/client-go/1.5/pkg/api/meta" - "k8s.io/client-go/1.5/pkg/api/meta/metatypes" - "k8s.io/client-go/1.5/pkg/api/unversioned" - "k8s.io/client-go/1.5/pkg/types" + "k8s.io/client-go/pkg/api/meta" + "k8s.io/client-go/pkg/api/meta/metatypes" + "k8s.io/client-go/pkg/api/unversioned" + "k8s.io/client-go/pkg/types" ) func (obj *ObjectMeta) GetObjectMeta() meta.Object { return obj } diff --git a/vendor/k8s.io/client-go/1.5/pkg/api/v1/ref.go b/vendor/k8s.io/client-go/pkg/api/v1/ref.go similarity index 96% rename from vendor/k8s.io/client-go/1.5/pkg/api/v1/ref.go rename to vendor/k8s.io/client-go/pkg/api/v1/ref.go index 93007e8ca..69bed2fa8 100644 --- a/vendor/k8s.io/client-go/1.5/pkg/api/v1/ref.go +++ b/vendor/k8s.io/client-go/pkg/api/v1/ref.go @@ -19,13 +19,13 @@ package v1 import ( "errors" "fmt" - "k8s.io/client-go/1.5/pkg/api" + "k8s.io/client-go/pkg/api" "net/url" "strings" - "k8s.io/client-go/1.5/pkg/api/meta" - "k8s.io/client-go/1.5/pkg/api/unversioned" - "k8s.io/client-go/1.5/pkg/runtime" + "k8s.io/client-go/pkg/api/meta" + "k8s.io/client-go/pkg/api/unversioned" + "k8s.io/client-go/pkg/runtime" ) var ( diff --git a/vendor/k8s.io/client-go/1.5/pkg/api/v1/register.go b/vendor/k8s.io/client-go/pkg/api/v1/register.go similarity index 94% rename from vendor/k8s.io/client-go/1.5/pkg/api/v1/register.go rename to vendor/k8s.io/client-go/pkg/api/v1/register.go index 67a23345d..7f31222fb 100644 --- a/vendor/k8s.io/client-go/1.5/pkg/api/v1/register.go +++ b/vendor/k8s.io/client-go/pkg/api/v1/register.go @@ -17,9 +17,9 @@ limitations under the License. package v1 import ( - "k8s.io/client-go/1.5/pkg/api/unversioned" - "k8s.io/client-go/1.5/pkg/runtime" - versionedwatch "k8s.io/client-go/1.5/pkg/watch/versioned" + "k8s.io/client-go/pkg/api/unversioned" + "k8s.io/client-go/pkg/runtime" + versionedwatch "k8s.io/client-go/pkg/watch/versioned" ) // GroupName is the group name use in this package diff --git a/vendor/k8s.io/client-go/1.5/pkg/api/v1/types.generated.go b/vendor/k8s.io/client-go/pkg/api/v1/types.generated.go similarity index 68% rename from vendor/k8s.io/client-go/1.5/pkg/api/v1/types.generated.go rename to vendor/k8s.io/client-go/pkg/api/v1/types.generated.go index cf9b71261..2c30987d8 100644 --- a/vendor/k8s.io/client-go/1.5/pkg/api/v1/types.generated.go +++ b/vendor/k8s.io/client-go/pkg/api/v1/types.generated.go @@ -25,11 +25,11 @@ import ( "errors" "fmt" codec1978 "github.com/ugorji/go/codec" - pkg3_resource "k8s.io/client-go/1.5/pkg/api/resource" - pkg2_unversioned "k8s.io/client-go/1.5/pkg/api/unversioned" - pkg5_runtime "k8s.io/client-go/1.5/pkg/runtime" - pkg1_types "k8s.io/client-go/1.5/pkg/types" - pkg4_intstr "k8s.io/client-go/1.5/pkg/util/intstr" + pkg3_resource "k8s.io/client-go/pkg/api/resource" + pkg2_unversioned "k8s.io/client-go/pkg/api/unversioned" + pkg5_runtime "k8s.io/client-go/pkg/runtime" + pkg1_types "k8s.io/client-go/pkg/types" + pkg4_intstr "k8s.io/client-go/pkg/util/intstr" "reflect" "runtime" time "time" @@ -1124,7 +1124,7 @@ func (x *Volume) CodecEncodeSelf(e *codec1978.Encoder) { } else { yysep101 := !z.EncBinary() yy2arr101 := z.EncBasicHandle().StructToArray - var yyq101 [23]bool + var yyq101 [24]bool _, _, _ = yysep101, yyq101, yy2arr101 const yyr101 bool = false yyq101[1] = x.VolumeSource.HostPath != nil && x.HostPath != nil @@ -1149,9 +1149,10 @@ func (x *Volume) CodecEncodeSelf(e *codec1978.Encoder) { 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 + yyq101[23] = x.VolumeSource.PhotonPersistentDisk != nil && x.PhotonPersistentDisk != nil var yynn101 int if yyr101 || yy2arr101 { - r.EncodeArrayStart(23) + r.EncodeArrayStart(24) } else { yynn101 = 1 for _, b := range yyq101 { @@ -1995,6 +1996,43 @@ func (x *Volume) CodecEncodeSelf(e *codec1978.Encoder) { } } } + var yyn127 bool + if x.VolumeSource.PhotonPersistentDisk == nil { + yyn127 = true + goto LABEL127 + } + LABEL127: + if yyr101 || yy2arr101 { + if yyn127 { + r.EncodeNil() + } else { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq101[23] { + if x.PhotonPersistentDisk == nil { + r.EncodeNil() + } else { + x.PhotonPersistentDisk.CodecEncodeSelf(e) + } + } else { + r.EncodeNil() + } + } + } else { + if yyq101[23] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("photonPersistentDisk")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + if yyn127 { + r.EncodeNil() + } else { + if x.PhotonPersistentDisk == nil { + r.EncodeNil() + } else { + x.PhotonPersistentDisk.CodecEncodeSelf(e) + } + } + } + } if yyr101 || yy2arr101 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { @@ -2008,25 +2046,25 @@ func (x *Volume) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym127 := z.DecBinary() - _ = yym127 + yym128 := z.DecBinary() + _ = yym128 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct128 := r.ContainerType() - if yyct128 == codecSelferValueTypeMap1234 { - yyl128 := r.ReadMapStart() - if yyl128 == 0 { + yyct129 := r.ContainerType() + if yyct129 == codecSelferValueTypeMap1234 { + yyl129 := r.ReadMapStart() + if yyl129 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl128, d) + x.codecDecodeSelfFromMap(yyl129, d) } - } else if yyct128 == codecSelferValueTypeArray1234 { - yyl128 := r.ReadArrayStart() - if yyl128 == 0 { + } else if yyct129 == codecSelferValueTypeArray1234 { + yyl129 := r.ReadArrayStart() + if yyl129 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl128, d) + x.codecDecodeSelfFromArray(yyl129, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -2038,12 +2076,12 @@ func (x *Volume) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys129Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys129Slc - var yyhl129 bool = l >= 0 - for yyj129 := 0; ; yyj129++ { - if yyhl129 { - if yyj129 >= 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 { @@ -2052,10 +2090,10 @@ func (x *Volume) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys129Slc = r.DecodeBytes(yys129Slc, true, true) - yys129 := string(yys129Slc) + yys130Slc = r.DecodeBytes(yys130Slc, true, true) + yys130 := string(yys130Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys129 { + switch yys130 { case "name": if r.TryDecodeAsNil() { x.Name = "" @@ -2370,10 +2408,24 @@ func (x *Volume) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } x.AzureDisk.CodecDecodeSelf(d) } + case "photonPersistentDisk": + if x.VolumeSource.PhotonPersistentDisk == nil { + x.VolumeSource.PhotonPersistentDisk = new(PhotonPersistentDiskVolumeSource) + } + if r.TryDecodeAsNil() { + if x.PhotonPersistentDisk != nil { + x.PhotonPersistentDisk = nil + } + } else { + if x.PhotonPersistentDisk == nil { + x.PhotonPersistentDisk = new(PhotonPersistentDiskVolumeSource) + } + x.PhotonPersistentDisk.CodecDecodeSelf(d) + } default: - z.DecStructFieldNotFound(-1, yys129) - } // end switch yys129 - } // end for yyj129 + z.DecStructFieldNotFound(-1, yys130) + } // end switch yys130 + } // end for yyj130 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -2381,16 +2433,16 @@ func (x *Volume) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj153 int - var yyb153 bool - var yyhl153 bool = l >= 0 - yyj153++ - if yyhl153 { - yyb153 = yyj153 > l + var yyj155 int + var yyb155 bool + var yyhl155 bool = l >= 0 + yyj155++ + if yyhl155 { + yyb155 = yyj155 > l } else { - yyb153 = r.CheckBreak() + yyb155 = r.CheckBreak() } - if yyb153 { + if yyb155 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -2403,13 +2455,13 @@ func (x *Volume) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if x.VolumeSource.HostPath == nil { x.VolumeSource.HostPath = new(HostPathVolumeSource) } - yyj153++ - if yyhl153 { - yyb153 = yyj153 > l + yyj155++ + if yyhl155 { + yyb155 = yyj155 > l } else { - yyb153 = r.CheckBreak() + yyb155 = r.CheckBreak() } - if yyb153 { + if yyb155 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -2427,13 +2479,13 @@ func (x *Volume) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if x.VolumeSource.EmptyDir == nil { x.VolumeSource.EmptyDir = new(EmptyDirVolumeSource) } - yyj153++ - if yyhl153 { - yyb153 = yyj153 > l + yyj155++ + if yyhl155 { + yyb155 = yyj155 > l } else { - yyb153 = r.CheckBreak() + yyb155 = r.CheckBreak() } - if yyb153 { + if yyb155 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -2451,13 +2503,13 @@ func (x *Volume) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if x.VolumeSource.GCEPersistentDisk == nil { x.VolumeSource.GCEPersistentDisk = new(GCEPersistentDiskVolumeSource) } - yyj153++ - if yyhl153 { - yyb153 = yyj153 > l + yyj155++ + if yyhl155 { + yyb155 = yyj155 > l } else { - yyb153 = r.CheckBreak() + yyb155 = r.CheckBreak() } - if yyb153 { + if yyb155 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -2475,13 +2527,13 @@ func (x *Volume) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if x.VolumeSource.AWSElasticBlockStore == nil { x.VolumeSource.AWSElasticBlockStore = new(AWSElasticBlockStoreVolumeSource) } - yyj153++ - if yyhl153 { - yyb153 = yyj153 > l + yyj155++ + if yyhl155 { + yyb155 = yyj155 > l } else { - yyb153 = r.CheckBreak() + yyb155 = r.CheckBreak() } - if yyb153 { + if yyb155 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -2499,13 +2551,13 @@ func (x *Volume) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if x.VolumeSource.GitRepo == nil { x.VolumeSource.GitRepo = new(GitRepoVolumeSource) } - yyj153++ - if yyhl153 { - yyb153 = yyj153 > l + yyj155++ + if yyhl155 { + yyb155 = yyj155 > l } else { - yyb153 = r.CheckBreak() + yyb155 = r.CheckBreak() } - if yyb153 { + if yyb155 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -2523,13 +2575,13 @@ func (x *Volume) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if x.VolumeSource.Secret == nil { x.VolumeSource.Secret = new(SecretVolumeSource) } - yyj153++ - if yyhl153 { - yyb153 = yyj153 > l + yyj155++ + if yyhl155 { + yyb155 = yyj155 > l } else { - yyb153 = r.CheckBreak() + yyb155 = r.CheckBreak() } - if yyb153 { + if yyb155 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -2547,13 +2599,13 @@ func (x *Volume) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if x.VolumeSource.NFS == nil { x.VolumeSource.NFS = new(NFSVolumeSource) } - yyj153++ - if yyhl153 { - yyb153 = yyj153 > l + yyj155++ + if yyhl155 { + yyb155 = yyj155 > l } else { - yyb153 = r.CheckBreak() + yyb155 = r.CheckBreak() } - if yyb153 { + if yyb155 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -2571,13 +2623,13 @@ func (x *Volume) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if x.VolumeSource.ISCSI == nil { x.VolumeSource.ISCSI = new(ISCSIVolumeSource) } - yyj153++ - if yyhl153 { - yyb153 = yyj153 > l + yyj155++ + if yyhl155 { + yyb155 = yyj155 > l } else { - yyb153 = r.CheckBreak() + yyb155 = r.CheckBreak() } - if yyb153 { + if yyb155 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -2595,13 +2647,13 @@ func (x *Volume) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if x.VolumeSource.Glusterfs == nil { x.VolumeSource.Glusterfs = new(GlusterfsVolumeSource) } - yyj153++ - if yyhl153 { - yyb153 = yyj153 > l + yyj155++ + if yyhl155 { + yyb155 = yyj155 > l } else { - yyb153 = r.CheckBreak() + yyb155 = r.CheckBreak() } - if yyb153 { + if yyb155 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -2619,13 +2671,13 @@ func (x *Volume) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if x.VolumeSource.PersistentVolumeClaim == nil { x.VolumeSource.PersistentVolumeClaim = new(PersistentVolumeClaimVolumeSource) } - yyj153++ - if yyhl153 { - yyb153 = yyj153 > l + yyj155++ + if yyhl155 { + yyb155 = yyj155 > l } else { - yyb153 = r.CheckBreak() + yyb155 = r.CheckBreak() } - if yyb153 { + if yyb155 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -2643,13 +2695,13 @@ func (x *Volume) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if x.VolumeSource.RBD == nil { x.VolumeSource.RBD = new(RBDVolumeSource) } - yyj153++ - if yyhl153 { - yyb153 = yyj153 > l + yyj155++ + if yyhl155 { + yyb155 = yyj155 > l } else { - yyb153 = r.CheckBreak() + yyb155 = r.CheckBreak() } - if yyb153 { + if yyb155 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -2667,13 +2719,13 @@ func (x *Volume) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if x.VolumeSource.FlexVolume == nil { x.VolumeSource.FlexVolume = new(FlexVolumeSource) } - yyj153++ - if yyhl153 { - yyb153 = yyj153 > l + yyj155++ + if yyhl155 { + yyb155 = yyj155 > l } else { - yyb153 = r.CheckBreak() + yyb155 = r.CheckBreak() } - if yyb153 { + if yyb155 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -2691,13 +2743,13 @@ func (x *Volume) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if x.VolumeSource.Cinder == nil { x.VolumeSource.Cinder = new(CinderVolumeSource) } - yyj153++ - if yyhl153 { - yyb153 = yyj153 > l + yyj155++ + if yyhl155 { + yyb155 = yyj155 > l } else { - yyb153 = r.CheckBreak() + yyb155 = r.CheckBreak() } - if yyb153 { + if yyb155 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -2715,13 +2767,13 @@ func (x *Volume) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if x.VolumeSource.CephFS == nil { x.VolumeSource.CephFS = new(CephFSVolumeSource) } - yyj153++ - if yyhl153 { - yyb153 = yyj153 > l + yyj155++ + if yyhl155 { + yyb155 = yyj155 > l } else { - yyb153 = r.CheckBreak() + yyb155 = r.CheckBreak() } - if yyb153 { + if yyb155 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -2739,13 +2791,13 @@ func (x *Volume) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if x.VolumeSource.Flocker == nil { x.VolumeSource.Flocker = new(FlockerVolumeSource) } - yyj153++ - if yyhl153 { - yyb153 = yyj153 > l + yyj155++ + if yyhl155 { + yyb155 = yyj155 > l } else { - yyb153 = r.CheckBreak() + yyb155 = r.CheckBreak() } - if yyb153 { + if yyb155 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -2763,13 +2815,13 @@ func (x *Volume) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if x.VolumeSource.DownwardAPI == nil { x.VolumeSource.DownwardAPI = new(DownwardAPIVolumeSource) } - yyj153++ - if yyhl153 { - yyb153 = yyj153 > l + yyj155++ + if yyhl155 { + yyb155 = yyj155 > l } else { - yyb153 = r.CheckBreak() + yyb155 = r.CheckBreak() } - if yyb153 { + if yyb155 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -2787,13 +2839,13 @@ func (x *Volume) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if x.VolumeSource.FC == nil { x.VolumeSource.FC = new(FCVolumeSource) } - yyj153++ - if yyhl153 { - yyb153 = yyj153 > l + yyj155++ + if yyhl155 { + yyb155 = yyj155 > l } else { - yyb153 = r.CheckBreak() + yyb155 = r.CheckBreak() } - if yyb153 { + if yyb155 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -2811,13 +2863,13 @@ func (x *Volume) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if x.VolumeSource.AzureFile == nil { x.VolumeSource.AzureFile = new(AzureFileVolumeSource) } - yyj153++ - if yyhl153 { - yyb153 = yyj153 > l + yyj155++ + if yyhl155 { + yyb155 = yyj155 > l } else { - yyb153 = r.CheckBreak() + yyb155 = r.CheckBreak() } - if yyb153 { + if yyb155 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -2835,13 +2887,13 @@ func (x *Volume) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if x.VolumeSource.ConfigMap == nil { x.VolumeSource.ConfigMap = new(ConfigMapVolumeSource) } - yyj153++ - if yyhl153 { - yyb153 = yyj153 > l + yyj155++ + if yyhl155 { + yyb155 = yyj155 > l } else { - yyb153 = r.CheckBreak() + yyb155 = r.CheckBreak() } - if yyb153 { + if yyb155 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -2859,13 +2911,13 @@ func (x *Volume) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if x.VolumeSource.VsphereVolume == nil { x.VolumeSource.VsphereVolume = new(VsphereVirtualDiskVolumeSource) } - yyj153++ - if yyhl153 { - yyb153 = yyj153 > l + yyj155++ + if yyhl155 { + yyb155 = yyj155 > l } else { - yyb153 = r.CheckBreak() + yyb155 = r.CheckBreak() } - if yyb153 { + if yyb155 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -2883,13 +2935,13 @@ func (x *Volume) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if x.VolumeSource.Quobyte == nil { x.VolumeSource.Quobyte = new(QuobyteVolumeSource) } - yyj153++ - if yyhl153 { - yyb153 = yyj153 > l + yyj155++ + if yyhl155 { + yyb155 = yyj155 > l } else { - yyb153 = r.CheckBreak() + yyb155 = r.CheckBreak() } - if yyb153 { + if yyb155 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -2907,13 +2959,13 @@ func (x *Volume) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if x.VolumeSource.AzureDisk == nil { x.VolumeSource.AzureDisk = new(AzureDiskVolumeSource) } - yyj153++ - if yyhl153 { - yyb153 = yyj153 > l + yyj155++ + if yyhl155 { + yyb155 = yyj155 > l } else { - yyb153 = r.CheckBreak() + yyb155 = r.CheckBreak() } - if yyb153 { + if yyb155 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -2928,18 +2980,42 @@ func (x *Volume) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } x.AzureDisk.CodecDecodeSelf(d) } - for { - yyj153++ - if yyhl153 { - yyb153 = yyj153 > l - } else { - yyb153 = r.CheckBreak() + if x.VolumeSource.PhotonPersistentDisk == nil { + x.VolumeSource.PhotonPersistentDisk = new(PhotonPersistentDiskVolumeSource) + } + yyj155++ + if yyhl155 { + yyb155 = yyj155 > l + } else { + yyb155 = r.CheckBreak() + } + if yyb155 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + if x.PhotonPersistentDisk != nil { + x.PhotonPersistentDisk = nil } - if yyb153 { + } else { + if x.PhotonPersistentDisk == nil { + x.PhotonPersistentDisk = new(PhotonPersistentDiskVolumeSource) + } + x.PhotonPersistentDisk.CodecDecodeSelf(d) + } + for { + yyj155++ + if yyhl155 { + yyb155 = yyj155 > l + } else { + yyb155 = r.CheckBreak() + } + if yyb155 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj153-1, "") + z.DecStructFieldNotFound(yyj155-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -2951,54 +3027,55 @@ func (x *VolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym177 := z.EncBinary() - _ = yym177 + yym180 := z.EncBinary() + _ = yym180 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - 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) + yysep181 := !z.EncBinary() + yy2arr181 := z.EncBasicHandle().StructToArray + var yyq181 [23]bool + _, _, _ = yysep181, yyq181, yy2arr181 + const yyr181 bool = false + yyq181[0] = x.HostPath != nil + yyq181[1] = x.EmptyDir != nil + yyq181[2] = x.GCEPersistentDisk != nil + yyq181[3] = x.AWSElasticBlockStore != nil + yyq181[4] = x.GitRepo != nil + yyq181[5] = x.Secret != nil + yyq181[6] = x.NFS != nil + yyq181[7] = x.ISCSI != nil + yyq181[8] = x.Glusterfs != nil + yyq181[9] = x.PersistentVolumeClaim != nil + yyq181[10] = x.RBD != nil + yyq181[11] = x.FlexVolume != nil + yyq181[12] = x.Cinder != nil + yyq181[13] = x.CephFS != nil + yyq181[14] = x.Flocker != nil + yyq181[15] = x.DownwardAPI != nil + yyq181[16] = x.FC != nil + yyq181[17] = x.AzureFile != nil + yyq181[18] = x.ConfigMap != nil + yyq181[19] = x.VsphereVolume != nil + yyq181[20] = x.Quobyte != nil + yyq181[21] = x.AzureDisk != nil + yyq181[22] = x.PhotonPersistentDisk != nil + var yynn181 int + if yyr181 || yy2arr181 { + r.EncodeArrayStart(23) } else { - yynn178 = 0 - for _, b := range yyq178 { + yynn181 = 0 + for _, b := range yyq181 { if b { - yynn178++ + yynn181++ } } - r.EncodeMapStart(yynn178) - yynn178 = 0 + r.EncodeMapStart(yynn181) + yynn181 = 0 } - if yyr178 || yy2arr178 { + if yyr181 || yy2arr181 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq178[0] { + if yyq181[0] { if x.HostPath == nil { r.EncodeNil() } else { @@ -3008,7 +3085,7 @@ func (x *VolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq178[0] { + if yyq181[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("hostPath")) z.EncSendContainerState(codecSelfer_containerMapValue1234) @@ -3019,9 +3096,9 @@ func (x *VolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr178 || yy2arr178 { + if yyr181 || yy2arr181 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq178[1] { + if yyq181[1] { if x.EmptyDir == nil { r.EncodeNil() } else { @@ -3031,7 +3108,7 @@ func (x *VolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq178[1] { + if yyq181[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("emptyDir")) z.EncSendContainerState(codecSelfer_containerMapValue1234) @@ -3042,9 +3119,9 @@ func (x *VolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr178 || yy2arr178 { + if yyr181 || yy2arr181 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq178[2] { + if yyq181[2] { if x.GCEPersistentDisk == nil { r.EncodeNil() } else { @@ -3054,7 +3131,7 @@ func (x *VolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq178[2] { + if yyq181[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("gcePersistentDisk")) z.EncSendContainerState(codecSelfer_containerMapValue1234) @@ -3065,9 +3142,9 @@ func (x *VolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr178 || yy2arr178 { + if yyr181 || yy2arr181 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq178[3] { + if yyq181[3] { if x.AWSElasticBlockStore == nil { r.EncodeNil() } else { @@ -3077,7 +3154,7 @@ func (x *VolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq178[3] { + if yyq181[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("awsElasticBlockStore")) z.EncSendContainerState(codecSelfer_containerMapValue1234) @@ -3088,9 +3165,9 @@ func (x *VolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr178 || yy2arr178 { + if yyr181 || yy2arr181 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq178[4] { + if yyq181[4] { if x.GitRepo == nil { r.EncodeNil() } else { @@ -3100,7 +3177,7 @@ func (x *VolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq178[4] { + if yyq181[4] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("gitRepo")) z.EncSendContainerState(codecSelfer_containerMapValue1234) @@ -3111,9 +3188,9 @@ func (x *VolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr178 || yy2arr178 { + if yyr181 || yy2arr181 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq178[5] { + if yyq181[5] { if x.Secret == nil { r.EncodeNil() } else { @@ -3123,7 +3200,7 @@ func (x *VolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq178[5] { + if yyq181[5] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("secret")) z.EncSendContainerState(codecSelfer_containerMapValue1234) @@ -3134,9 +3211,9 @@ func (x *VolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr178 || yy2arr178 { + if yyr181 || yy2arr181 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq178[6] { + if yyq181[6] { if x.NFS == nil { r.EncodeNil() } else { @@ -3146,7 +3223,7 @@ func (x *VolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq178[6] { + if yyq181[6] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("nfs")) z.EncSendContainerState(codecSelfer_containerMapValue1234) @@ -3157,9 +3234,9 @@ func (x *VolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr178 || yy2arr178 { + if yyr181 || yy2arr181 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq178[7] { + if yyq181[7] { if x.ISCSI == nil { r.EncodeNil() } else { @@ -3169,7 +3246,7 @@ func (x *VolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq178[7] { + if yyq181[7] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("iscsi")) z.EncSendContainerState(codecSelfer_containerMapValue1234) @@ -3180,9 +3257,9 @@ func (x *VolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr178 || yy2arr178 { + if yyr181 || yy2arr181 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq178[8] { + if yyq181[8] { if x.Glusterfs == nil { r.EncodeNil() } else { @@ -3192,7 +3269,7 @@ func (x *VolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq178[8] { + if yyq181[8] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("glusterfs")) z.EncSendContainerState(codecSelfer_containerMapValue1234) @@ -3203,9 +3280,9 @@ func (x *VolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr178 || yy2arr178 { + if yyr181 || yy2arr181 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq178[9] { + if yyq181[9] { if x.PersistentVolumeClaim == nil { r.EncodeNil() } else { @@ -3215,7 +3292,7 @@ func (x *VolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq178[9] { + if yyq181[9] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("persistentVolumeClaim")) z.EncSendContainerState(codecSelfer_containerMapValue1234) @@ -3226,9 +3303,9 @@ func (x *VolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr178 || yy2arr178 { + if yyr181 || yy2arr181 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq178[10] { + if yyq181[10] { if x.RBD == nil { r.EncodeNil() } else { @@ -3238,7 +3315,7 @@ func (x *VolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq178[10] { + if yyq181[10] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("rbd")) z.EncSendContainerState(codecSelfer_containerMapValue1234) @@ -3249,9 +3326,9 @@ func (x *VolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr178 || yy2arr178 { + if yyr181 || yy2arr181 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq178[11] { + if yyq181[11] { if x.FlexVolume == nil { r.EncodeNil() } else { @@ -3261,7 +3338,7 @@ func (x *VolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq178[11] { + if yyq181[11] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("flexVolume")) z.EncSendContainerState(codecSelfer_containerMapValue1234) @@ -3272,9 +3349,9 @@ func (x *VolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr178 || yy2arr178 { + if yyr181 || yy2arr181 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq178[12] { + if yyq181[12] { if x.Cinder == nil { r.EncodeNil() } else { @@ -3284,7 +3361,7 @@ func (x *VolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq178[12] { + if yyq181[12] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("cinder")) z.EncSendContainerState(codecSelfer_containerMapValue1234) @@ -3295,9 +3372,9 @@ func (x *VolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr178 || yy2arr178 { + if yyr181 || yy2arr181 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq178[13] { + if yyq181[13] { if x.CephFS == nil { r.EncodeNil() } else { @@ -3307,7 +3384,7 @@ func (x *VolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq178[13] { + if yyq181[13] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("cephfs")) z.EncSendContainerState(codecSelfer_containerMapValue1234) @@ -3318,9 +3395,9 @@ func (x *VolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr178 || yy2arr178 { + if yyr181 || yy2arr181 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq178[14] { + if yyq181[14] { if x.Flocker == nil { r.EncodeNil() } else { @@ -3330,7 +3407,7 @@ func (x *VolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq178[14] { + if yyq181[14] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("flocker")) z.EncSendContainerState(codecSelfer_containerMapValue1234) @@ -3341,9 +3418,9 @@ func (x *VolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr178 || yy2arr178 { + if yyr181 || yy2arr181 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq178[15] { + if yyq181[15] { if x.DownwardAPI == nil { r.EncodeNil() } else { @@ -3353,7 +3430,7 @@ func (x *VolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq178[15] { + if yyq181[15] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("downwardAPI")) z.EncSendContainerState(codecSelfer_containerMapValue1234) @@ -3364,9 +3441,9 @@ func (x *VolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr178 || yy2arr178 { + if yyr181 || yy2arr181 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq178[16] { + if yyq181[16] { if x.FC == nil { r.EncodeNil() } else { @@ -3376,7 +3453,7 @@ func (x *VolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq178[16] { + if yyq181[16] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("fc")) z.EncSendContainerState(codecSelfer_containerMapValue1234) @@ -3387,9 +3464,9 @@ func (x *VolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr178 || yy2arr178 { + if yyr181 || yy2arr181 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq178[17] { + if yyq181[17] { if x.AzureFile == nil { r.EncodeNil() } else { @@ -3399,7 +3476,7 @@ func (x *VolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq178[17] { + if yyq181[17] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("azureFile")) z.EncSendContainerState(codecSelfer_containerMapValue1234) @@ -3410,9 +3487,9 @@ func (x *VolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr178 || yy2arr178 { + if yyr181 || yy2arr181 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq178[18] { + if yyq181[18] { if x.ConfigMap == nil { r.EncodeNil() } else { @@ -3422,7 +3499,7 @@ func (x *VolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq178[18] { + if yyq181[18] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("configMap")) z.EncSendContainerState(codecSelfer_containerMapValue1234) @@ -3433,9 +3510,9 @@ func (x *VolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr178 || yy2arr178 { + if yyr181 || yy2arr181 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq178[19] { + if yyq181[19] { if x.VsphereVolume == nil { r.EncodeNil() } else { @@ -3445,7 +3522,7 @@ func (x *VolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq178[19] { + if yyq181[19] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("vsphereVolume")) z.EncSendContainerState(codecSelfer_containerMapValue1234) @@ -3456,9 +3533,9 @@ func (x *VolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr178 || yy2arr178 { + if yyr181 || yy2arr181 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq178[20] { + if yyq181[20] { if x.Quobyte == nil { r.EncodeNil() } else { @@ -3468,7 +3545,7 @@ func (x *VolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq178[20] { + if yyq181[20] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("quobyte")) z.EncSendContainerState(codecSelfer_containerMapValue1234) @@ -3479,9 +3556,9 @@ func (x *VolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr178 || yy2arr178 { + if yyr181 || yy2arr181 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq178[21] { + if yyq181[21] { if x.AzureDisk == nil { r.EncodeNil() } else { @@ -3491,7 +3568,7 @@ func (x *VolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq178[21] { + if yyq181[21] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("azureDisk")) z.EncSendContainerState(codecSelfer_containerMapValue1234) @@ -3502,7 +3579,30 @@ func (x *VolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr178 || yy2arr178 { + if yyr181 || yy2arr181 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq181[22] { + if x.PhotonPersistentDisk == nil { + r.EncodeNil() + } else { + x.PhotonPersistentDisk.CodecEncodeSelf(e) + } + } else { + r.EncodeNil() + } + } else { + if yyq181[22] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("photonPersistentDisk")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + if x.PhotonPersistentDisk == nil { + r.EncodeNil() + } else { + x.PhotonPersistentDisk.CodecEncodeSelf(e) + } + } + } + if yyr181 || yy2arr181 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -3515,25 +3615,25 @@ func (x *VolumeSource) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym201 := z.DecBinary() - _ = yym201 + yym205 := z.DecBinary() + _ = yym205 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct202 := r.ContainerType() - if yyct202 == codecSelferValueTypeMap1234 { - yyl202 := r.ReadMapStart() - if yyl202 == 0 { + yyct206 := r.ContainerType() + if yyct206 == codecSelferValueTypeMap1234 { + yyl206 := r.ReadMapStart() + if yyl206 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl202, d) + x.codecDecodeSelfFromMap(yyl206, d) } - } else if yyct202 == codecSelferValueTypeArray1234 { - yyl202 := r.ReadArrayStart() - if yyl202 == 0 { + } else if yyct206 == codecSelferValueTypeArray1234 { + yyl206 := r.ReadArrayStart() + if yyl206 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl202, d) + x.codecDecodeSelfFromArray(yyl206, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -3545,12 +3645,12 @@ func (x *VolumeSource) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys203Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys203Slc - var yyhl203 bool = l >= 0 - for yyj203 := 0; ; yyj203++ { - if yyhl203 { - if yyj203 >= l { + var yys207Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys207Slc + var yyhl207 bool = l >= 0 + for yyj207 := 0; ; yyj207++ { + if yyhl207 { + if yyj207 >= l { break } } else { @@ -3559,10 +3659,10 @@ func (x *VolumeSource) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys203Slc = r.DecodeBytes(yys203Slc, true, true) - yys203 := string(yys203Slc) + yys207Slc = r.DecodeBytes(yys207Slc, true, true) + yys207 := string(yys207Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys203 { + switch yys207 { case "hostPath": if r.TryDecodeAsNil() { if x.HostPath != nil { @@ -3805,10 +3905,21 @@ func (x *VolumeSource) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } x.AzureDisk.CodecDecodeSelf(d) } + case "photonPersistentDisk": + if r.TryDecodeAsNil() { + if x.PhotonPersistentDisk != nil { + x.PhotonPersistentDisk = nil + } + } else { + if x.PhotonPersistentDisk == nil { + x.PhotonPersistentDisk = new(PhotonPersistentDiskVolumeSource) + } + x.PhotonPersistentDisk.CodecDecodeSelf(d) + } default: - z.DecStructFieldNotFound(-1, yys203) - } // end switch yys203 - } // end for yyj203 + z.DecStructFieldNotFound(-1, yys207) + } // end switch yys207 + } // end for yyj207 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -3816,16 +3927,16 @@ func (x *VolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj226 int - var yyb226 bool - var yyhl226 bool = l >= 0 - yyj226++ - if yyhl226 { - yyb226 = yyj226 > l + var yyj231 int + var yyb231 bool + var yyhl231 bool = l >= 0 + yyj231++ + if yyhl231 { + yyb231 = yyj231 > l } else { - yyb226 = r.CheckBreak() + yyb231 = r.CheckBreak() } - if yyb226 { + if yyb231 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -3840,13 +3951,13 @@ func (x *VolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } x.HostPath.CodecDecodeSelf(d) } - yyj226++ - if yyhl226 { - yyb226 = yyj226 > l + yyj231++ + if yyhl231 { + yyb231 = yyj231 > l } else { - yyb226 = r.CheckBreak() + yyb231 = r.CheckBreak() } - if yyb226 { + if yyb231 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -3861,13 +3972,13 @@ func (x *VolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } x.EmptyDir.CodecDecodeSelf(d) } - yyj226++ - if yyhl226 { - yyb226 = yyj226 > l + yyj231++ + if yyhl231 { + yyb231 = yyj231 > l } else { - yyb226 = r.CheckBreak() + yyb231 = r.CheckBreak() } - if yyb226 { + if yyb231 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -3882,13 +3993,13 @@ func (x *VolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } x.GCEPersistentDisk.CodecDecodeSelf(d) } - yyj226++ - if yyhl226 { - yyb226 = yyj226 > l + yyj231++ + if yyhl231 { + yyb231 = yyj231 > l } else { - yyb226 = r.CheckBreak() + yyb231 = r.CheckBreak() } - if yyb226 { + if yyb231 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -3903,13 +4014,13 @@ func (x *VolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } x.AWSElasticBlockStore.CodecDecodeSelf(d) } - yyj226++ - if yyhl226 { - yyb226 = yyj226 > l + yyj231++ + if yyhl231 { + yyb231 = yyj231 > l } else { - yyb226 = r.CheckBreak() + yyb231 = r.CheckBreak() } - if yyb226 { + if yyb231 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -3924,13 +4035,13 @@ func (x *VolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } x.GitRepo.CodecDecodeSelf(d) } - yyj226++ - if yyhl226 { - yyb226 = yyj226 > l + yyj231++ + if yyhl231 { + yyb231 = yyj231 > l } else { - yyb226 = r.CheckBreak() + yyb231 = r.CheckBreak() } - if yyb226 { + if yyb231 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -3945,13 +4056,13 @@ func (x *VolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } x.Secret.CodecDecodeSelf(d) } - yyj226++ - if yyhl226 { - yyb226 = yyj226 > l + yyj231++ + if yyhl231 { + yyb231 = yyj231 > l } else { - yyb226 = r.CheckBreak() + yyb231 = r.CheckBreak() } - if yyb226 { + if yyb231 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -3966,13 +4077,13 @@ func (x *VolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } x.NFS.CodecDecodeSelf(d) } - yyj226++ - if yyhl226 { - yyb226 = yyj226 > l + yyj231++ + if yyhl231 { + yyb231 = yyj231 > l } else { - yyb226 = r.CheckBreak() + yyb231 = r.CheckBreak() } - if yyb226 { + if yyb231 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -3987,13 +4098,13 @@ func (x *VolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } x.ISCSI.CodecDecodeSelf(d) } - yyj226++ - if yyhl226 { - yyb226 = yyj226 > l + yyj231++ + if yyhl231 { + yyb231 = yyj231 > l } else { - yyb226 = r.CheckBreak() + yyb231 = r.CheckBreak() } - if yyb226 { + if yyb231 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -4008,13 +4119,13 @@ func (x *VolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } x.Glusterfs.CodecDecodeSelf(d) } - yyj226++ - if yyhl226 { - yyb226 = yyj226 > l + yyj231++ + if yyhl231 { + yyb231 = yyj231 > l } else { - yyb226 = r.CheckBreak() + yyb231 = r.CheckBreak() } - if yyb226 { + if yyb231 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -4029,13 +4140,13 @@ func (x *VolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } x.PersistentVolumeClaim.CodecDecodeSelf(d) } - yyj226++ - if yyhl226 { - yyb226 = yyj226 > l + yyj231++ + if yyhl231 { + yyb231 = yyj231 > l } else { - yyb226 = r.CheckBreak() + yyb231 = r.CheckBreak() } - if yyb226 { + if yyb231 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -4050,13 +4161,13 @@ func (x *VolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } x.RBD.CodecDecodeSelf(d) } - yyj226++ - if yyhl226 { - yyb226 = yyj226 > l + yyj231++ + if yyhl231 { + yyb231 = yyj231 > l } else { - yyb226 = r.CheckBreak() + yyb231 = r.CheckBreak() } - if yyb226 { + if yyb231 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -4071,13 +4182,13 @@ func (x *VolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } x.FlexVolume.CodecDecodeSelf(d) } - yyj226++ - if yyhl226 { - yyb226 = yyj226 > l + yyj231++ + if yyhl231 { + yyb231 = yyj231 > l } else { - yyb226 = r.CheckBreak() + yyb231 = r.CheckBreak() } - if yyb226 { + if yyb231 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -4092,13 +4203,13 @@ func (x *VolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } x.Cinder.CodecDecodeSelf(d) } - yyj226++ - if yyhl226 { - yyb226 = yyj226 > l + yyj231++ + if yyhl231 { + yyb231 = yyj231 > l } else { - yyb226 = r.CheckBreak() + yyb231 = r.CheckBreak() } - if yyb226 { + if yyb231 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -4113,13 +4224,13 @@ func (x *VolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } x.CephFS.CodecDecodeSelf(d) } - yyj226++ - if yyhl226 { - yyb226 = yyj226 > l + yyj231++ + if yyhl231 { + yyb231 = yyj231 > l } else { - yyb226 = r.CheckBreak() + yyb231 = r.CheckBreak() } - if yyb226 { + if yyb231 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -4134,13 +4245,13 @@ func (x *VolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } x.Flocker.CodecDecodeSelf(d) } - yyj226++ - if yyhl226 { - yyb226 = yyj226 > l + yyj231++ + if yyhl231 { + yyb231 = yyj231 > l } else { - yyb226 = r.CheckBreak() + yyb231 = r.CheckBreak() } - if yyb226 { + if yyb231 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -4155,13 +4266,13 @@ func (x *VolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } x.DownwardAPI.CodecDecodeSelf(d) } - yyj226++ - if yyhl226 { - yyb226 = yyj226 > l + yyj231++ + if yyhl231 { + yyb231 = yyj231 > l } else { - yyb226 = r.CheckBreak() + yyb231 = r.CheckBreak() } - if yyb226 { + if yyb231 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -4176,13 +4287,13 @@ func (x *VolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } x.FC.CodecDecodeSelf(d) } - yyj226++ - if yyhl226 { - yyb226 = yyj226 > l + yyj231++ + if yyhl231 { + yyb231 = yyj231 > l } else { - yyb226 = r.CheckBreak() + yyb231 = r.CheckBreak() } - if yyb226 { + if yyb231 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -4197,13 +4308,13 @@ func (x *VolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } x.AzureFile.CodecDecodeSelf(d) } - yyj226++ - if yyhl226 { - yyb226 = yyj226 > l + yyj231++ + if yyhl231 { + yyb231 = yyj231 > l } else { - yyb226 = r.CheckBreak() + yyb231 = r.CheckBreak() } - if yyb226 { + if yyb231 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -4218,13 +4329,13 @@ func (x *VolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } x.ConfigMap.CodecDecodeSelf(d) } - yyj226++ - if yyhl226 { - yyb226 = yyj226 > l + yyj231++ + if yyhl231 { + yyb231 = yyj231 > l } else { - yyb226 = r.CheckBreak() + yyb231 = r.CheckBreak() } - if yyb226 { + if yyb231 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -4239,13 +4350,13 @@ func (x *VolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } x.VsphereVolume.CodecDecodeSelf(d) } - yyj226++ - if yyhl226 { - yyb226 = yyj226 > l + yyj231++ + if yyhl231 { + yyb231 = yyj231 > l } else { - yyb226 = r.CheckBreak() + yyb231 = r.CheckBreak() } - if yyb226 { + if yyb231 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -4260,13 +4371,13 @@ func (x *VolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } x.Quobyte.CodecDecodeSelf(d) } - yyj226++ - if yyhl226 { - yyb226 = yyj226 > l + yyj231++ + if yyhl231 { + yyb231 = yyj231 > l } else { - yyb226 = r.CheckBreak() + yyb231 = r.CheckBreak() } - if yyb226 { + if yyb231 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -4281,18 +4392,39 @@ func (x *VolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } x.AzureDisk.CodecDecodeSelf(d) } - for { - yyj226++ - if yyhl226 { - yyb226 = yyj226 > l - } else { - yyb226 = r.CheckBreak() + yyj231++ + if yyhl231 { + yyb231 = yyj231 > l + } else { + yyb231 = r.CheckBreak() + } + if yyb231 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + if x.PhotonPersistentDisk != nil { + x.PhotonPersistentDisk = nil } - if yyb226 { + } else { + if x.PhotonPersistentDisk == nil { + x.PhotonPersistentDisk = new(PhotonPersistentDiskVolumeSource) + } + x.PhotonPersistentDisk.CodecDecodeSelf(d) + } + for { + yyj231++ + if yyhl231 { + yyb231 = yyj231 > l + } else { + yyb231 = r.CheckBreak() + } + if yyb231 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj226-1, "") + z.DecStructFieldNotFound(yyj231-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -4304,34 +4436,34 @@ func (x *PersistentVolumeClaimVolumeSource) CodecEncodeSelf(e *codec1978.Encoder if x == nil { r.EncodeNil() } else { - yym249 := z.EncBinary() - _ = yym249 + yym255 := z.EncBinary() + _ = yym255 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - 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 { + yysep256 := !z.EncBinary() + yy2arr256 := z.EncBasicHandle().StructToArray + var yyq256 [2]bool + _, _, _ = yysep256, yyq256, yy2arr256 + const yyr256 bool = false + yyq256[1] = x.ReadOnly != false + var yynn256 int + if yyr256 || yy2arr256 { r.EncodeArrayStart(2) } else { - yynn250 = 1 - for _, b := range yyq250 { + yynn256 = 1 + for _, b := range yyq256 { if b { - yynn250++ + yynn256++ } } - r.EncodeMapStart(yynn250) - yynn250 = 0 + r.EncodeMapStart(yynn256) + yynn256 = 0 } - if yyr250 || yy2arr250 { + if yyr256 || yy2arr256 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym252 := z.EncBinary() - _ = yym252 + yym258 := z.EncBinary() + _ = yym258 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.ClaimName)) @@ -4340,18 +4472,18 @@ func (x *PersistentVolumeClaimVolumeSource) CodecEncodeSelf(e *codec1978.Encoder z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("claimName")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym253 := z.EncBinary() - _ = yym253 + yym259 := z.EncBinary() + _ = yym259 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.ClaimName)) } } - if yyr250 || yy2arr250 { + if yyr256 || yy2arr256 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq250[1] { - yym255 := z.EncBinary() - _ = yym255 + if yyq256[1] { + yym261 := z.EncBinary() + _ = yym261 if false { } else { r.EncodeBool(bool(x.ReadOnly)) @@ -4360,19 +4492,19 @@ func (x *PersistentVolumeClaimVolumeSource) CodecEncodeSelf(e *codec1978.Encoder r.EncodeBool(false) } } else { - if yyq250[1] { + if yyq256[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("readOnly")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym256 := z.EncBinary() - _ = yym256 + yym262 := z.EncBinary() + _ = yym262 if false { } else { r.EncodeBool(bool(x.ReadOnly)) } } } - if yyr250 || yy2arr250 { + if yyr256 || yy2arr256 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -4385,25 +4517,25 @@ func (x *PersistentVolumeClaimVolumeSource) CodecDecodeSelf(d *codec1978.Decoder var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym257 := z.DecBinary() - _ = yym257 + yym263 := z.DecBinary() + _ = yym263 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct258 := r.ContainerType() - if yyct258 == codecSelferValueTypeMap1234 { - yyl258 := r.ReadMapStart() - if yyl258 == 0 { + yyct264 := r.ContainerType() + if yyct264 == codecSelferValueTypeMap1234 { + yyl264 := r.ReadMapStart() + if yyl264 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl258, d) + x.codecDecodeSelfFromMap(yyl264, d) } - } else if yyct258 == codecSelferValueTypeArray1234 { - yyl258 := r.ReadArrayStart() - if yyl258 == 0 { + } else if yyct264 == codecSelferValueTypeArray1234 { + yyl264 := r.ReadArrayStart() + if yyl264 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl258, d) + x.codecDecodeSelfFromArray(yyl264, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -4415,12 +4547,12 @@ func (x *PersistentVolumeClaimVolumeSource) codecDecodeSelfFromMap(l int, d *cod var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys259Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys259Slc - var yyhl259 bool = l >= 0 - for yyj259 := 0; ; yyj259++ { - if yyhl259 { - if yyj259 >= 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 { @@ -4429,10 +4561,10 @@ func (x *PersistentVolumeClaimVolumeSource) codecDecodeSelfFromMap(l int, d *cod } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys259Slc = r.DecodeBytes(yys259Slc, true, true) - yys259 := string(yys259Slc) + yys265Slc = r.DecodeBytes(yys265Slc, true, true) + yys265 := string(yys265Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys259 { + switch yys265 { case "claimName": if r.TryDecodeAsNil() { x.ClaimName = "" @@ -4446,9 +4578,9 @@ func (x *PersistentVolumeClaimVolumeSource) codecDecodeSelfFromMap(l int, d *cod x.ReadOnly = bool(r.DecodeBool()) } default: - z.DecStructFieldNotFound(-1, yys259) - } // end switch yys259 - } // end for yyj259 + z.DecStructFieldNotFound(-1, yys265) + } // end switch yys265 + } // end for yyj265 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -4456,16 +4588,16 @@ func (x *PersistentVolumeClaimVolumeSource) codecDecodeSelfFromArray(l int, d *c var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj262 int - var yyb262 bool - var yyhl262 bool = l >= 0 - yyj262++ - if yyhl262 { - yyb262 = yyj262 > l + var yyj268 int + var yyb268 bool + var yyhl268 bool = l >= 0 + yyj268++ + if yyhl268 { + yyb268 = yyj268 > l } else { - yyb262 = r.CheckBreak() + yyb268 = r.CheckBreak() } - if yyb262 { + if yyb268 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -4475,13 +4607,13 @@ func (x *PersistentVolumeClaimVolumeSource) codecDecodeSelfFromArray(l int, d *c } else { x.ClaimName = string(r.DecodeString()) } - yyj262++ - if yyhl262 { - yyb262 = yyj262 > l + yyj268++ + if yyhl268 { + yyb268 = yyj268 > l } else { - yyb262 = r.CheckBreak() + yyb268 = r.CheckBreak() } - if yyb262 { + if yyb268 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -4492,17 +4624,17 @@ func (x *PersistentVolumeClaimVolumeSource) codecDecodeSelfFromArray(l int, d *c x.ReadOnly = bool(r.DecodeBool()) } for { - yyj262++ - if yyhl262 { - yyb262 = yyj262 > l + yyj268++ + if yyhl268 { + yyb268 = yyj268 > l } else { - yyb262 = r.CheckBreak() + yyb268 = r.CheckBreak() } - if yyb262 { + if yyb268 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj262-1, "") + z.DecStructFieldNotFound(yyj268-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -4514,48 +4646,49 @@ func (x *PersistentVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym265 := z.EncBinary() - _ = yym265 + yym271 := z.EncBinary() + _ = yym271 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - 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) + yysep272 := !z.EncBinary() + yy2arr272 := z.EncBasicHandle().StructToArray + var yyq272 [17]bool + _, _, _ = yysep272, yyq272, yy2arr272 + const yyr272 bool = false + yyq272[0] = x.GCEPersistentDisk != nil + yyq272[1] = x.AWSElasticBlockStore != nil + yyq272[2] = x.HostPath != nil + yyq272[3] = x.Glusterfs != nil + yyq272[4] = x.NFS != nil + yyq272[5] = x.RBD != nil + yyq272[6] = x.ISCSI != nil + yyq272[7] = x.Cinder != nil + yyq272[8] = x.CephFS != nil + yyq272[9] = x.FC != nil + yyq272[10] = x.Flocker != nil + yyq272[11] = x.FlexVolume != nil + yyq272[12] = x.AzureFile != nil + yyq272[13] = x.VsphereVolume != nil + yyq272[14] = x.Quobyte != nil + yyq272[15] = x.AzureDisk != nil + yyq272[16] = x.PhotonPersistentDisk != nil + var yynn272 int + if yyr272 || yy2arr272 { + r.EncodeArrayStart(17) } else { - yynn266 = 0 - for _, b := range yyq266 { + yynn272 = 0 + for _, b := range yyq272 { if b { - yynn266++ + yynn272++ } } - r.EncodeMapStart(yynn266) - yynn266 = 0 + r.EncodeMapStart(yynn272) + yynn272 = 0 } - if yyr266 || yy2arr266 { + if yyr272 || yy2arr272 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq266[0] { + if yyq272[0] { if x.GCEPersistentDisk == nil { r.EncodeNil() } else { @@ -4565,7 +4698,7 @@ func (x *PersistentVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq266[0] { + if yyq272[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("gcePersistentDisk")) z.EncSendContainerState(codecSelfer_containerMapValue1234) @@ -4576,9 +4709,9 @@ func (x *PersistentVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr266 || yy2arr266 { + if yyr272 || yy2arr272 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq266[1] { + if yyq272[1] { if x.AWSElasticBlockStore == nil { r.EncodeNil() } else { @@ -4588,7 +4721,7 @@ func (x *PersistentVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq266[1] { + if yyq272[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("awsElasticBlockStore")) z.EncSendContainerState(codecSelfer_containerMapValue1234) @@ -4599,9 +4732,9 @@ func (x *PersistentVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr266 || yy2arr266 { + if yyr272 || yy2arr272 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq266[2] { + if yyq272[2] { if x.HostPath == nil { r.EncodeNil() } else { @@ -4611,7 +4744,7 @@ func (x *PersistentVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq266[2] { + if yyq272[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("hostPath")) z.EncSendContainerState(codecSelfer_containerMapValue1234) @@ -4622,9 +4755,9 @@ func (x *PersistentVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr266 || yy2arr266 { + if yyr272 || yy2arr272 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq266[3] { + if yyq272[3] { if x.Glusterfs == nil { r.EncodeNil() } else { @@ -4634,7 +4767,7 @@ func (x *PersistentVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq266[3] { + if yyq272[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("glusterfs")) z.EncSendContainerState(codecSelfer_containerMapValue1234) @@ -4645,9 +4778,9 @@ func (x *PersistentVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr266 || yy2arr266 { + if yyr272 || yy2arr272 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq266[4] { + if yyq272[4] { if x.NFS == nil { r.EncodeNil() } else { @@ -4657,7 +4790,7 @@ func (x *PersistentVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq266[4] { + if yyq272[4] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("nfs")) z.EncSendContainerState(codecSelfer_containerMapValue1234) @@ -4668,9 +4801,9 @@ func (x *PersistentVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr266 || yy2arr266 { + if yyr272 || yy2arr272 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq266[5] { + if yyq272[5] { if x.RBD == nil { r.EncodeNil() } else { @@ -4680,7 +4813,7 @@ func (x *PersistentVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq266[5] { + if yyq272[5] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("rbd")) z.EncSendContainerState(codecSelfer_containerMapValue1234) @@ -4691,9 +4824,9 @@ func (x *PersistentVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr266 || yy2arr266 { + if yyr272 || yy2arr272 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq266[6] { + if yyq272[6] { if x.ISCSI == nil { r.EncodeNil() } else { @@ -4703,7 +4836,7 @@ func (x *PersistentVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq266[6] { + if yyq272[6] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("iscsi")) z.EncSendContainerState(codecSelfer_containerMapValue1234) @@ -4714,9 +4847,9 @@ func (x *PersistentVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr266 || yy2arr266 { + if yyr272 || yy2arr272 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq266[7] { + if yyq272[7] { if x.Cinder == nil { r.EncodeNil() } else { @@ -4726,7 +4859,7 @@ func (x *PersistentVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq266[7] { + if yyq272[7] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("cinder")) z.EncSendContainerState(codecSelfer_containerMapValue1234) @@ -4737,9 +4870,9 @@ func (x *PersistentVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr266 || yy2arr266 { + if yyr272 || yy2arr272 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq266[8] { + if yyq272[8] { if x.CephFS == nil { r.EncodeNil() } else { @@ -4749,7 +4882,7 @@ func (x *PersistentVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq266[8] { + if yyq272[8] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("cephfs")) z.EncSendContainerState(codecSelfer_containerMapValue1234) @@ -4760,9 +4893,9 @@ func (x *PersistentVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr266 || yy2arr266 { + if yyr272 || yy2arr272 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq266[9] { + if yyq272[9] { if x.FC == nil { r.EncodeNil() } else { @@ -4772,7 +4905,7 @@ func (x *PersistentVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq266[9] { + if yyq272[9] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("fc")) z.EncSendContainerState(codecSelfer_containerMapValue1234) @@ -4783,9 +4916,9 @@ func (x *PersistentVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr266 || yy2arr266 { + if yyr272 || yy2arr272 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq266[10] { + if yyq272[10] { if x.Flocker == nil { r.EncodeNil() } else { @@ -4795,7 +4928,7 @@ func (x *PersistentVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq266[10] { + if yyq272[10] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("flocker")) z.EncSendContainerState(codecSelfer_containerMapValue1234) @@ -4806,9 +4939,9 @@ func (x *PersistentVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr266 || yy2arr266 { + if yyr272 || yy2arr272 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq266[11] { + if yyq272[11] { if x.FlexVolume == nil { r.EncodeNil() } else { @@ -4818,7 +4951,7 @@ func (x *PersistentVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq266[11] { + if yyq272[11] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("flexVolume")) z.EncSendContainerState(codecSelfer_containerMapValue1234) @@ -4829,9 +4962,9 @@ func (x *PersistentVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr266 || yy2arr266 { + if yyr272 || yy2arr272 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq266[12] { + if yyq272[12] { if x.AzureFile == nil { r.EncodeNil() } else { @@ -4841,7 +4974,7 @@ func (x *PersistentVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq266[12] { + if yyq272[12] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("azureFile")) z.EncSendContainerState(codecSelfer_containerMapValue1234) @@ -4852,9 +4985,9 @@ func (x *PersistentVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr266 || yy2arr266 { + if yyr272 || yy2arr272 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq266[13] { + if yyq272[13] { if x.VsphereVolume == nil { r.EncodeNil() } else { @@ -4864,7 +4997,7 @@ func (x *PersistentVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq266[13] { + if yyq272[13] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("vsphereVolume")) z.EncSendContainerState(codecSelfer_containerMapValue1234) @@ -4875,9 +5008,9 @@ func (x *PersistentVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr266 || yy2arr266 { + if yyr272 || yy2arr272 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq266[14] { + if yyq272[14] { if x.Quobyte == nil { r.EncodeNil() } else { @@ -4887,7 +5020,7 @@ func (x *PersistentVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq266[14] { + if yyq272[14] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("quobyte")) z.EncSendContainerState(codecSelfer_containerMapValue1234) @@ -4898,9 +5031,9 @@ func (x *PersistentVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr266 || yy2arr266 { + if yyr272 || yy2arr272 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq266[15] { + if yyq272[15] { if x.AzureDisk == nil { r.EncodeNil() } else { @@ -4910,7 +5043,7 @@ func (x *PersistentVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq266[15] { + if yyq272[15] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("azureDisk")) z.EncSendContainerState(codecSelfer_containerMapValue1234) @@ -4921,7 +5054,30 @@ func (x *PersistentVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr266 || yy2arr266 { + if yyr272 || yy2arr272 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq272[16] { + if x.PhotonPersistentDisk == nil { + r.EncodeNil() + } else { + x.PhotonPersistentDisk.CodecEncodeSelf(e) + } + } else { + r.EncodeNil() + } + } else { + if yyq272[16] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("photonPersistentDisk")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + if x.PhotonPersistentDisk == nil { + r.EncodeNil() + } else { + x.PhotonPersistentDisk.CodecEncodeSelf(e) + } + } + } + if yyr272 || yy2arr272 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -4934,25 +5090,25 @@ func (x *PersistentVolumeSource) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym283 := z.DecBinary() - _ = yym283 + yym290 := z.DecBinary() + _ = yym290 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct284 := r.ContainerType() - if yyct284 == codecSelferValueTypeMap1234 { - yyl284 := r.ReadMapStart() - if yyl284 == 0 { + yyct291 := r.ContainerType() + if yyct291 == codecSelferValueTypeMap1234 { + yyl291 := r.ReadMapStart() + if yyl291 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl284, d) + x.codecDecodeSelfFromMap(yyl291, d) } - } else if yyct284 == codecSelferValueTypeArray1234 { - yyl284 := r.ReadArrayStart() - if yyl284 == 0 { + } else if yyct291 == codecSelferValueTypeArray1234 { + yyl291 := r.ReadArrayStart() + if yyl291 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl284, d) + x.codecDecodeSelfFromArray(yyl291, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -4964,12 +5120,12 @@ func (x *PersistentVolumeSource) codecDecodeSelfFromMap(l int, d *codec1978.Deco var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys285Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys285Slc - var yyhl285 bool = l >= 0 - for yyj285 := 0; ; yyj285++ { - if yyhl285 { - if yyj285 >= l { + var yys292Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys292Slc + var yyhl292 bool = l >= 0 + for yyj292 := 0; ; yyj292++ { + if yyhl292 { + if yyj292 >= l { break } } else { @@ -4978,10 +5134,10 @@ func (x *PersistentVolumeSource) codecDecodeSelfFromMap(l int, d *codec1978.Deco } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys285Slc = r.DecodeBytes(yys285Slc, true, true) - yys285 := string(yys285Slc) + yys292Slc = r.DecodeBytes(yys292Slc, true, true) + yys292 := string(yys292Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys285 { + switch yys292 { case "gcePersistentDisk": if r.TryDecodeAsNil() { if x.GCEPersistentDisk != nil { @@ -5158,10 +5314,21 @@ func (x *PersistentVolumeSource) codecDecodeSelfFromMap(l int, d *codec1978.Deco } x.AzureDisk.CodecDecodeSelf(d) } + case "photonPersistentDisk": + if r.TryDecodeAsNil() { + if x.PhotonPersistentDisk != nil { + x.PhotonPersistentDisk = nil + } + } else { + if x.PhotonPersistentDisk == nil { + x.PhotonPersistentDisk = new(PhotonPersistentDiskVolumeSource) + } + x.PhotonPersistentDisk.CodecDecodeSelf(d) + } default: - z.DecStructFieldNotFound(-1, yys285) - } // end switch yys285 - } // end for yyj285 + z.DecStructFieldNotFound(-1, yys292) + } // end switch yys292 + } // end for yyj292 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -5169,16 +5336,16 @@ func (x *PersistentVolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.De 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 + var yyj310 int + var yyb310 bool + var yyhl310 bool = l >= 0 + yyj310++ + if yyhl310 { + yyb310 = yyj310 > l } else { - yyb302 = r.CheckBreak() + yyb310 = r.CheckBreak() } - if yyb302 { + if yyb310 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -5193,13 +5360,13 @@ func (x *PersistentVolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.De } x.GCEPersistentDisk.CodecDecodeSelf(d) } - yyj302++ - if yyhl302 { - yyb302 = yyj302 > l + yyj310++ + if yyhl310 { + yyb310 = yyj310 > l } else { - yyb302 = r.CheckBreak() + yyb310 = r.CheckBreak() } - if yyb302 { + if yyb310 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -5214,13 +5381,13 @@ func (x *PersistentVolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.De } x.AWSElasticBlockStore.CodecDecodeSelf(d) } - yyj302++ - if yyhl302 { - yyb302 = yyj302 > l + yyj310++ + if yyhl310 { + yyb310 = yyj310 > l } else { - yyb302 = r.CheckBreak() + yyb310 = r.CheckBreak() } - if yyb302 { + if yyb310 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -5235,13 +5402,13 @@ func (x *PersistentVolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.De } x.HostPath.CodecDecodeSelf(d) } - yyj302++ - if yyhl302 { - yyb302 = yyj302 > l + yyj310++ + if yyhl310 { + yyb310 = yyj310 > l } else { - yyb302 = r.CheckBreak() + yyb310 = r.CheckBreak() } - if yyb302 { + if yyb310 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -5256,13 +5423,13 @@ func (x *PersistentVolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.De } x.Glusterfs.CodecDecodeSelf(d) } - yyj302++ - if yyhl302 { - yyb302 = yyj302 > l + yyj310++ + if yyhl310 { + yyb310 = yyj310 > l } else { - yyb302 = r.CheckBreak() + yyb310 = r.CheckBreak() } - if yyb302 { + if yyb310 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -5277,13 +5444,13 @@ func (x *PersistentVolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.De } x.NFS.CodecDecodeSelf(d) } - yyj302++ - if yyhl302 { - yyb302 = yyj302 > l + yyj310++ + if yyhl310 { + yyb310 = yyj310 > l } else { - yyb302 = r.CheckBreak() + yyb310 = r.CheckBreak() } - if yyb302 { + if yyb310 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -5298,13 +5465,13 @@ func (x *PersistentVolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.De } x.RBD.CodecDecodeSelf(d) } - yyj302++ - if yyhl302 { - yyb302 = yyj302 > l + yyj310++ + if yyhl310 { + yyb310 = yyj310 > l } else { - yyb302 = r.CheckBreak() + yyb310 = r.CheckBreak() } - if yyb302 { + if yyb310 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -5319,13 +5486,13 @@ func (x *PersistentVolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.De } x.ISCSI.CodecDecodeSelf(d) } - yyj302++ - if yyhl302 { - yyb302 = yyj302 > l + yyj310++ + if yyhl310 { + yyb310 = yyj310 > l } else { - yyb302 = r.CheckBreak() + yyb310 = r.CheckBreak() } - if yyb302 { + if yyb310 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -5340,13 +5507,13 @@ func (x *PersistentVolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.De } x.Cinder.CodecDecodeSelf(d) } - yyj302++ - if yyhl302 { - yyb302 = yyj302 > l + yyj310++ + if yyhl310 { + yyb310 = yyj310 > l } else { - yyb302 = r.CheckBreak() + yyb310 = r.CheckBreak() } - if yyb302 { + if yyb310 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -5361,13 +5528,13 @@ func (x *PersistentVolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.De } x.CephFS.CodecDecodeSelf(d) } - yyj302++ - if yyhl302 { - yyb302 = yyj302 > l + yyj310++ + if yyhl310 { + yyb310 = yyj310 > l } else { - yyb302 = r.CheckBreak() + yyb310 = r.CheckBreak() } - if yyb302 { + if yyb310 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -5382,13 +5549,13 @@ func (x *PersistentVolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.De } x.FC.CodecDecodeSelf(d) } - yyj302++ - if yyhl302 { - yyb302 = yyj302 > l + yyj310++ + if yyhl310 { + yyb310 = yyj310 > l } else { - yyb302 = r.CheckBreak() + yyb310 = r.CheckBreak() } - if yyb302 { + if yyb310 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -5403,13 +5570,13 @@ func (x *PersistentVolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.De } x.Flocker.CodecDecodeSelf(d) } - yyj302++ - if yyhl302 { - yyb302 = yyj302 > l + yyj310++ + if yyhl310 { + yyb310 = yyj310 > l } else { - yyb302 = r.CheckBreak() + yyb310 = r.CheckBreak() } - if yyb302 { + if yyb310 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -5424,13 +5591,13 @@ func (x *PersistentVolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.De } x.FlexVolume.CodecDecodeSelf(d) } - yyj302++ - if yyhl302 { - yyb302 = yyj302 > l + yyj310++ + if yyhl310 { + yyb310 = yyj310 > l } else { - yyb302 = r.CheckBreak() + yyb310 = r.CheckBreak() } - if yyb302 { + if yyb310 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -5445,13 +5612,13 @@ func (x *PersistentVolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.De } x.AzureFile.CodecDecodeSelf(d) } - yyj302++ - if yyhl302 { - yyb302 = yyj302 > l + yyj310++ + if yyhl310 { + yyb310 = yyj310 > l } else { - yyb302 = r.CheckBreak() + yyb310 = r.CheckBreak() } - if yyb302 { + if yyb310 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -5466,13 +5633,13 @@ func (x *PersistentVolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.De } x.VsphereVolume.CodecDecodeSelf(d) } - yyj302++ - if yyhl302 { - yyb302 = yyj302 > l + yyj310++ + if yyhl310 { + yyb310 = yyj310 > l } else { - yyb302 = r.CheckBreak() + yyb310 = r.CheckBreak() } - if yyb302 { + if yyb310 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -5487,13 +5654,13 @@ func (x *PersistentVolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.De } x.Quobyte.CodecDecodeSelf(d) } - yyj302++ - if yyhl302 { - yyb302 = yyj302 > l + yyj310++ + if yyhl310 { + yyb310 = yyj310 > l } else { - yyb302 = r.CheckBreak() + yyb310 = r.CheckBreak() } - if yyb302 { + if yyb310 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -5508,18 +5675,39 @@ func (x *PersistentVolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.De } x.AzureDisk.CodecDecodeSelf(d) } - for { - yyj302++ - if yyhl302 { - yyb302 = yyj302 > l - } else { - yyb302 = r.CheckBreak() + yyj310++ + if yyhl310 { + yyb310 = yyj310 > l + } else { + yyb310 = r.CheckBreak() + } + if yyb310 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + if x.PhotonPersistentDisk != nil { + x.PhotonPersistentDisk = nil } - if yyb302 { + } else { + if x.PhotonPersistentDisk == nil { + x.PhotonPersistentDisk = new(PhotonPersistentDiskVolumeSource) + } + x.PhotonPersistentDisk.CodecDecodeSelf(d) + } + for { + yyj310++ + if yyhl310 { + yyb310 = yyj310 > l + } else { + yyb310 = r.CheckBreak() + } + if yyb310 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj302-1, "") + z.DecStructFieldNotFound(yyj310-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -5531,39 +5719,39 @@ func (x *PersistentVolume) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym319 := z.EncBinary() - _ = yym319 + yym328 := z.EncBinary() + _ = yym328 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - 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 { + 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[2] = true + yyq329[3] = true + yyq329[4] = true + var yynn329 int + if yyr329 || yy2arr329 { r.EncodeArrayStart(5) } else { - yynn320 = 0 - for _, b := range yyq320 { + yynn329 = 0 + for _, b := range yyq329 { if b { - yynn320++ + yynn329++ } } - r.EncodeMapStart(yynn320) - yynn320 = 0 + r.EncodeMapStart(yynn329) + yynn329 = 0 } - if yyr320 || yy2arr320 { + if yyr329 || yy2arr329 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq320[0] { - yym322 := z.EncBinary() - _ = yym322 + if yyq329[0] { + yym331 := z.EncBinary() + _ = yym331 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) @@ -5572,23 +5760,23 @@ func (x *PersistentVolume) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq320[0] { + if yyq329[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym323 := z.EncBinary() - _ = yym323 + yym332 := z.EncBinary() + _ = yym332 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } - if yyr320 || yy2arr320 { + if yyr329 || yy2arr329 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq320[1] { - yym325 := z.EncBinary() - _ = yym325 + if yyq329[1] { + yym334 := z.EncBinary() + _ = yym334 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) @@ -5597,70 +5785,70 @@ func (x *PersistentVolume) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq320[1] { + if yyq329[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym326 := z.EncBinary() - _ = yym326 + yym335 := z.EncBinary() + _ = yym335 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } - if yyr320 || yy2arr320 { + if yyr329 || yy2arr329 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq320[2] { - yy328 := &x.ObjectMeta - yy328.CodecEncodeSelf(e) + if yyq329[2] { + yy337 := &x.ObjectMeta + yy337.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { - if yyq320[2] { + if yyq329[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy329 := &x.ObjectMeta - yy329.CodecEncodeSelf(e) + yy338 := &x.ObjectMeta + yy338.CodecEncodeSelf(e) } } - if yyr320 || yy2arr320 { + if yyr329 || yy2arr329 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq320[3] { - yy331 := &x.Spec - yy331.CodecEncodeSelf(e) + if yyq329[3] { + yy340 := &x.Spec + yy340.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { - if yyq320[3] { + if yyq329[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("spec")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy332 := &x.Spec - yy332.CodecEncodeSelf(e) + yy341 := &x.Spec + yy341.CodecEncodeSelf(e) } } - if yyr320 || yy2arr320 { + if yyr329 || yy2arr329 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq320[4] { - yy334 := &x.Status - yy334.CodecEncodeSelf(e) + if yyq329[4] { + yy343 := &x.Status + yy343.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { - if yyq320[4] { + if yyq329[4] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("status")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy335 := &x.Status - yy335.CodecEncodeSelf(e) + yy344 := &x.Status + yy344.CodecEncodeSelf(e) } } - if yyr320 || yy2arr320 { + if yyr329 || yy2arr329 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -5673,25 +5861,25 @@ func (x *PersistentVolume) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym336 := z.DecBinary() - _ = yym336 + yym345 := z.DecBinary() + _ = yym345 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct337 := r.ContainerType() - if yyct337 == codecSelferValueTypeMap1234 { - yyl337 := r.ReadMapStart() - if yyl337 == 0 { + yyct346 := r.ContainerType() + if yyct346 == codecSelferValueTypeMap1234 { + yyl346 := r.ReadMapStart() + if yyl346 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl337, d) + x.codecDecodeSelfFromMap(yyl346, d) } - } else if yyct337 == codecSelferValueTypeArray1234 { - yyl337 := r.ReadArrayStart() - if yyl337 == 0 { + } else if yyct346 == codecSelferValueTypeArray1234 { + yyl346 := r.ReadArrayStart() + if yyl346 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl337, d) + x.codecDecodeSelfFromArray(yyl346, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -5703,12 +5891,12 @@ func (x *PersistentVolume) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys338Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys338Slc - var yyhl338 bool = l >= 0 - for yyj338 := 0; ; yyj338++ { - if yyhl338 { - if yyj338 >= 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 { @@ -5717,10 +5905,10 @@ func (x *PersistentVolume) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys338Slc = r.DecodeBytes(yys338Slc, true, true) - yys338 := string(yys338Slc) + yys347Slc = r.DecodeBytes(yys347Slc, true, true) + yys347 := string(yys347Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys338 { + switch yys347 { case "kind": if r.TryDecodeAsNil() { x.Kind = "" @@ -5737,27 +5925,27 @@ func (x *PersistentVolume) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.ObjectMeta = ObjectMeta{} } else { - yyv341 := &x.ObjectMeta - yyv341.CodecDecodeSelf(d) + yyv350 := &x.ObjectMeta + yyv350.CodecDecodeSelf(d) } case "spec": if r.TryDecodeAsNil() { x.Spec = PersistentVolumeSpec{} } else { - yyv342 := &x.Spec - yyv342.CodecDecodeSelf(d) + yyv351 := &x.Spec + yyv351.CodecDecodeSelf(d) } case "status": if r.TryDecodeAsNil() { x.Status = PersistentVolumeStatus{} } else { - yyv343 := &x.Status - yyv343.CodecDecodeSelf(d) + yyv352 := &x.Status + yyv352.CodecDecodeSelf(d) } default: - z.DecStructFieldNotFound(-1, yys338) - } // end switch yys338 - } // end for yyj338 + z.DecStructFieldNotFound(-1, yys347) + } // end switch yys347 + } // end for yyj347 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -5765,16 +5953,16 @@ func (x *PersistentVolume) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj344 int - var yyb344 bool - var yyhl344 bool = l >= 0 - yyj344++ - if yyhl344 { - yyb344 = yyj344 > l + var yyj353 int + var yyb353 bool + var yyhl353 bool = l >= 0 + yyj353++ + if yyhl353 { + yyb353 = yyj353 > l } else { - yyb344 = r.CheckBreak() + yyb353 = r.CheckBreak() } - if yyb344 { + if yyb353 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -5784,13 +5972,13 @@ func (x *PersistentVolume) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) } else { x.Kind = string(r.DecodeString()) } - yyj344++ - if yyhl344 { - yyb344 = yyj344 > l + yyj353++ + if yyhl353 { + yyb353 = yyj353 > l } else { - yyb344 = r.CheckBreak() + yyb353 = r.CheckBreak() } - if yyb344 { + if yyb353 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -5800,13 +5988,13 @@ func (x *PersistentVolume) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) } else { x.APIVersion = string(r.DecodeString()) } - yyj344++ - if yyhl344 { - yyb344 = yyj344 > l + yyj353++ + if yyhl353 { + yyb353 = yyj353 > l } else { - yyb344 = r.CheckBreak() + yyb353 = r.CheckBreak() } - if yyb344 { + if yyb353 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -5814,16 +6002,16 @@ func (x *PersistentVolume) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) if r.TryDecodeAsNil() { x.ObjectMeta = ObjectMeta{} } else { - yyv347 := &x.ObjectMeta - yyv347.CodecDecodeSelf(d) + yyv356 := &x.ObjectMeta + yyv356.CodecDecodeSelf(d) } - yyj344++ - if yyhl344 { - yyb344 = yyj344 > l + yyj353++ + if yyhl353 { + yyb353 = yyj353 > l } else { - yyb344 = r.CheckBreak() + yyb353 = r.CheckBreak() } - if yyb344 { + if yyb353 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -5831,16 +6019,16 @@ func (x *PersistentVolume) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) if r.TryDecodeAsNil() { x.Spec = PersistentVolumeSpec{} } else { - yyv348 := &x.Spec - yyv348.CodecDecodeSelf(d) + yyv357 := &x.Spec + yyv357.CodecDecodeSelf(d) } - yyj344++ - if yyhl344 { - yyb344 = yyj344 > l + yyj353++ + if yyhl353 { + yyb353 = yyj353 > l } else { - yyb344 = r.CheckBreak() + yyb353 = r.CheckBreak() } - if yyb344 { + if yyb353 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -5848,21 +6036,21 @@ func (x *PersistentVolume) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) if r.TryDecodeAsNil() { x.Status = PersistentVolumeStatus{} } else { - yyv349 := &x.Status - yyv349.CodecDecodeSelf(d) + yyv358 := &x.Status + yyv358.CodecDecodeSelf(d) } for { - yyj344++ - if yyhl344 { - yyb344 = yyj344 > l + yyj353++ + if yyhl353 { + yyb353 = yyj353 > l } else { - yyb344 = r.CheckBreak() + yyb353 = r.CheckBreak() } - if yyb344 { + if yyb353 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj344-1, "") + z.DecStructFieldNotFound(yyj353-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -5874,52 +6062,53 @@ func (x *PersistentVolumeSpec) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym350 := z.EncBinary() - _ = yym350 + yym359 := z.EncBinary() + _ = yym359 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - 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) + yysep360 := !z.EncBinary() + yy2arr360 := z.EncBasicHandle().StructToArray + var yyq360 [21]bool + _, _, _ = yysep360, yyq360, yy2arr360 + const yyr360 bool = false + yyq360[0] = len(x.Capacity) != 0 + yyq360[1] = x.PersistentVolumeSource.GCEPersistentDisk != nil && x.GCEPersistentDisk != nil + yyq360[2] = x.PersistentVolumeSource.AWSElasticBlockStore != nil && x.AWSElasticBlockStore != nil + yyq360[3] = x.PersistentVolumeSource.HostPath != nil && x.HostPath != nil + yyq360[4] = x.PersistentVolumeSource.Glusterfs != nil && x.Glusterfs != nil + yyq360[5] = x.PersistentVolumeSource.NFS != nil && x.NFS != nil + yyq360[6] = x.PersistentVolumeSource.RBD != nil && x.RBD != nil + yyq360[7] = x.PersistentVolumeSource.ISCSI != nil && x.ISCSI != nil + yyq360[8] = x.PersistentVolumeSource.Cinder != nil && x.Cinder != nil + yyq360[9] = x.PersistentVolumeSource.CephFS != nil && x.CephFS != nil + yyq360[10] = x.PersistentVolumeSource.FC != nil && x.FC != nil + yyq360[11] = x.PersistentVolumeSource.Flocker != nil && x.Flocker != nil + yyq360[12] = x.PersistentVolumeSource.FlexVolume != nil && x.FlexVolume != nil + yyq360[13] = x.PersistentVolumeSource.AzureFile != nil && x.AzureFile != nil + yyq360[14] = x.PersistentVolumeSource.VsphereVolume != nil && x.VsphereVolume != nil + yyq360[15] = x.PersistentVolumeSource.Quobyte != nil && x.Quobyte != nil + yyq360[16] = x.PersistentVolumeSource.AzureDisk != nil && x.AzureDisk != nil + yyq360[17] = x.PersistentVolumeSource.PhotonPersistentDisk != nil && x.PhotonPersistentDisk != nil + yyq360[18] = len(x.AccessModes) != 0 + yyq360[19] = x.ClaimRef != nil + yyq360[20] = x.PersistentVolumeReclaimPolicy != "" + var yynn360 int + if yyr360 || yy2arr360 { + r.EncodeArrayStart(21) } else { - yynn351 = 0 - for _, b := range yyq351 { + yynn360 = 0 + for _, b := range yyq360 { if b { - yynn351++ + yynn360++ } } - r.EncodeMapStart(yynn351) - yynn351 = 0 + r.EncodeMapStart(yynn360) + yynn360 = 0 } - if yyr351 || yy2arr351 { + if yyr360 || yy2arr360 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq351[0] { + if yyq360[0] { if x.Capacity == nil { r.EncodeNil() } else { @@ -5929,7 +6118,7 @@ func (x *PersistentVolumeSpec) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq351[0] { + if yyq360[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("capacity")) z.EncSendContainerState(codecSelfer_containerMapValue1234) @@ -5940,573 +6129,573 @@ func (x *PersistentVolumeSpec) CodecEncodeSelf(e *codec1978.Encoder) { } } } - var yyn353 bool - if x.PersistentVolumeSource.GCEPersistentDisk == nil { - yyn353 = true - goto LABEL353 - } - LABEL353: - if yyr351 || yy2arr351 { - if yyn353 { - r.EncodeNil() - } else { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq351[1] { - if x.GCEPersistentDisk == nil { - r.EncodeNil() - } else { - x.GCEPersistentDisk.CodecEncodeSelf(e) - } - } else { - r.EncodeNil() - } - } - } else { - if yyq351[1] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("gcePersistentDisk")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - if yyn353 { - r.EncodeNil() - } else { - if x.GCEPersistentDisk == nil { - r.EncodeNil() - } else { - x.GCEPersistentDisk.CodecEncodeSelf(e) - } - } - } - } - var yyn354 bool - if x.PersistentVolumeSource.AWSElasticBlockStore == nil { - yyn354 = true - goto LABEL354 - } - LABEL354: - if yyr351 || yy2arr351 { - if yyn354 { - r.EncodeNil() - } else { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq351[2] { - if x.AWSElasticBlockStore == nil { - r.EncodeNil() - } else { - x.AWSElasticBlockStore.CodecEncodeSelf(e) - } - } else { - r.EncodeNil() - } - } - } else { - if yyq351[2] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("awsElasticBlockStore")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - if yyn354 { - r.EncodeNil() - } else { - if x.AWSElasticBlockStore == nil { - r.EncodeNil() - } else { - x.AWSElasticBlockStore.CodecEncodeSelf(e) - } - } - } - } - var yyn355 bool - if x.PersistentVolumeSource.HostPath == nil { - yyn355 = true - goto LABEL355 - } - LABEL355: - if yyr351 || yy2arr351 { - if yyn355 { - r.EncodeNil() - } else { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq351[3] { - if x.HostPath == nil { - r.EncodeNil() - } else { - x.HostPath.CodecEncodeSelf(e) - } - } else { - r.EncodeNil() - } - } - } else { - if yyq351[3] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("hostPath")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - if yyn355 { - r.EncodeNil() - } else { - if x.HostPath == nil { - r.EncodeNil() - } else { - x.HostPath.CodecEncodeSelf(e) - } - } - } - } - var yyn356 bool - if x.PersistentVolumeSource.Glusterfs == nil { - yyn356 = true - goto LABEL356 - } - LABEL356: - if yyr351 || yy2arr351 { - if yyn356 { - r.EncodeNil() - } else { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq351[4] { - if x.Glusterfs == nil { - r.EncodeNil() - } else { - x.Glusterfs.CodecEncodeSelf(e) - } - } else { - r.EncodeNil() - } - } - } else { - if yyq351[4] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("glusterfs")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - if yyn356 { - r.EncodeNil() - } else { - if x.Glusterfs == nil { - r.EncodeNil() - } else { - x.Glusterfs.CodecEncodeSelf(e) - } - } - } - } - var yyn357 bool - if x.PersistentVolumeSource.NFS == nil { - yyn357 = true - goto LABEL357 - } - LABEL357: - if yyr351 || yy2arr351 { - if yyn357 { - r.EncodeNil() - } else { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq351[5] { - if x.NFS == nil { - r.EncodeNil() - } else { - x.NFS.CodecEncodeSelf(e) - } - } else { - r.EncodeNil() - } - } - } else { - if yyq351[5] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("nfs")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - if yyn357 { - r.EncodeNil() - } else { - if x.NFS == nil { - r.EncodeNil() - } else { - x.NFS.CodecEncodeSelf(e) - } - } - } - } - var yyn358 bool - if x.PersistentVolumeSource.RBD == nil { - yyn358 = true - goto LABEL358 - } - LABEL358: - if yyr351 || yy2arr351 { - if yyn358 { - r.EncodeNil() - } else { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq351[6] { - if x.RBD == nil { - r.EncodeNil() - } else { - x.RBD.CodecEncodeSelf(e) - } - } else { - r.EncodeNil() - } - } - } else { - if yyq351[6] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("rbd")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - if yyn358 { - r.EncodeNil() - } else { - if x.RBD == nil { - r.EncodeNil() - } else { - x.RBD.CodecEncodeSelf(e) - } - } - } - } - var yyn359 bool - if x.PersistentVolumeSource.ISCSI == nil { - yyn359 = true - goto LABEL359 - } - LABEL359: - if yyr351 || yy2arr351 { - if yyn359 { - r.EncodeNil() - } else { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq351[7] { - if x.ISCSI == nil { - r.EncodeNil() - } else { - x.ISCSI.CodecEncodeSelf(e) - } - } else { - r.EncodeNil() - } - } - } else { - if yyq351[7] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("iscsi")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - if yyn359 { - r.EncodeNil() - } else { - if x.ISCSI == nil { - r.EncodeNil() - } else { - x.ISCSI.CodecEncodeSelf(e) - } - } - } - } - var yyn360 bool - if x.PersistentVolumeSource.Cinder == nil { - yyn360 = true - goto LABEL360 - } - LABEL360: - if yyr351 || yy2arr351 { - if yyn360 { - r.EncodeNil() - } else { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq351[8] { - if x.Cinder == nil { - r.EncodeNil() - } else { - x.Cinder.CodecEncodeSelf(e) - } - } else { - r.EncodeNil() - } - } - } else { - if yyq351[8] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("cinder")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - if yyn360 { - r.EncodeNil() - } else { - if x.Cinder == nil { - r.EncodeNil() - } else { - x.Cinder.CodecEncodeSelf(e) - } - } - } - } - var yyn361 bool - if x.PersistentVolumeSource.CephFS == nil { - yyn361 = true - goto LABEL361 - } - LABEL361: - if yyr351 || yy2arr351 { - if yyn361 { - r.EncodeNil() - } else { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq351[9] { - if x.CephFS == nil { - r.EncodeNil() - } else { - x.CephFS.CodecEncodeSelf(e) - } - } else { - r.EncodeNil() - } - } - } else { - if yyq351[9] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("cephfs")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - if yyn361 { - r.EncodeNil() - } else { - if x.CephFS == nil { - r.EncodeNil() - } else { - x.CephFS.CodecEncodeSelf(e) - } - } - } - } var yyn362 bool - if x.PersistentVolumeSource.FC == nil { + if x.PersistentVolumeSource.GCEPersistentDisk == nil { yyn362 = true goto LABEL362 } LABEL362: - if yyr351 || yy2arr351 { + if yyr360 || yy2arr360 { if yyn362 { r.EncodeNil() } else { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq351[10] { - if x.FC == nil { + if yyq360[1] { + if x.GCEPersistentDisk == nil { r.EncodeNil() } else { - x.FC.CodecEncodeSelf(e) + x.GCEPersistentDisk.CodecEncodeSelf(e) } } else { r.EncodeNil() } } } else { - if yyq351[10] { + if yyq360[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("fc")) + r.EncodeString(codecSelferC_UTF81234, string("gcePersistentDisk")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if yyn362 { r.EncodeNil() } else { - if x.FC == nil { + if x.GCEPersistentDisk == nil { r.EncodeNil() } else { - x.FC.CodecEncodeSelf(e) + x.GCEPersistentDisk.CodecEncodeSelf(e) } } } } var yyn363 bool - if x.PersistentVolumeSource.Flocker == nil { + if x.PersistentVolumeSource.AWSElasticBlockStore == nil { yyn363 = true goto LABEL363 } LABEL363: - if yyr351 || yy2arr351 { + if yyr360 || yy2arr360 { if yyn363 { r.EncodeNil() } else { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq351[11] { - if x.Flocker == nil { + if yyq360[2] { + if x.AWSElasticBlockStore == nil { r.EncodeNil() } else { - x.Flocker.CodecEncodeSelf(e) + x.AWSElasticBlockStore.CodecEncodeSelf(e) } } else { r.EncodeNil() } } } else { - if yyq351[11] { + if yyq360[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("flocker")) + r.EncodeString(codecSelferC_UTF81234, string("awsElasticBlockStore")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if yyn363 { r.EncodeNil() } else { - if x.Flocker == nil { + if x.AWSElasticBlockStore == nil { r.EncodeNil() } else { - x.Flocker.CodecEncodeSelf(e) + x.AWSElasticBlockStore.CodecEncodeSelf(e) } } } } var yyn364 bool - if x.PersistentVolumeSource.FlexVolume == nil { + if x.PersistentVolumeSource.HostPath == nil { yyn364 = true goto LABEL364 } LABEL364: - if yyr351 || yy2arr351 { + if yyr360 || yy2arr360 { if yyn364 { r.EncodeNil() } else { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq351[12] { - if x.FlexVolume == nil { + if yyq360[3] { + if x.HostPath == nil { r.EncodeNil() } else { - x.FlexVolume.CodecEncodeSelf(e) + x.HostPath.CodecEncodeSelf(e) } } else { r.EncodeNil() } } } else { - if yyq351[12] { + if yyq360[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("flexVolume")) + r.EncodeString(codecSelferC_UTF81234, string("hostPath")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if yyn364 { r.EncodeNil() } else { - if x.FlexVolume == nil { + if x.HostPath == nil { r.EncodeNil() } else { - x.FlexVolume.CodecEncodeSelf(e) + x.HostPath.CodecEncodeSelf(e) } } } } var yyn365 bool - if x.PersistentVolumeSource.AzureFile == nil { + if x.PersistentVolumeSource.Glusterfs == nil { yyn365 = true goto LABEL365 } LABEL365: - if yyr351 || yy2arr351 { + if yyr360 || yy2arr360 { if yyn365 { r.EncodeNil() } else { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq351[13] { - if x.AzureFile == nil { + if yyq360[4] { + if x.Glusterfs == nil { r.EncodeNil() } else { - x.AzureFile.CodecEncodeSelf(e) + x.Glusterfs.CodecEncodeSelf(e) } } else { r.EncodeNil() } } } else { - if yyq351[13] { + if yyq360[4] { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("azureFile")) + r.EncodeString(codecSelferC_UTF81234, string("glusterfs")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if yyn365 { r.EncodeNil() } else { - if x.AzureFile == nil { + if x.Glusterfs == nil { r.EncodeNil() } else { - x.AzureFile.CodecEncodeSelf(e) + x.Glusterfs.CodecEncodeSelf(e) } } } } var yyn366 bool - if x.PersistentVolumeSource.VsphereVolume == nil { + if x.PersistentVolumeSource.NFS == nil { yyn366 = true goto LABEL366 } LABEL366: - if yyr351 || yy2arr351 { + if yyr360 || yy2arr360 { if yyn366 { r.EncodeNil() } else { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq351[14] { - if x.VsphereVolume == nil { + if yyq360[5] { + if x.NFS == nil { r.EncodeNil() } else { - x.VsphereVolume.CodecEncodeSelf(e) + x.NFS.CodecEncodeSelf(e) } } else { r.EncodeNil() } } } else { - if yyq351[14] { + if yyq360[5] { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("vsphereVolume")) + r.EncodeString(codecSelferC_UTF81234, string("nfs")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if yyn366 { r.EncodeNil() } else { - if x.VsphereVolume == nil { + if x.NFS == nil { r.EncodeNil() } else { - x.VsphereVolume.CodecEncodeSelf(e) + x.NFS.CodecEncodeSelf(e) } } } } var yyn367 bool - if x.PersistentVolumeSource.Quobyte == nil { + if x.PersistentVolumeSource.RBD == nil { yyn367 = true goto LABEL367 } LABEL367: - if yyr351 || yy2arr351 { + if yyr360 || yy2arr360 { if yyn367 { r.EncodeNil() } else { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq351[15] { - if x.Quobyte == nil { + if yyq360[6] { + if x.RBD == nil { r.EncodeNil() } else { - x.Quobyte.CodecEncodeSelf(e) + x.RBD.CodecEncodeSelf(e) } } else { r.EncodeNil() } } } else { - if yyq351[15] { + if yyq360[6] { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("quobyte")) + r.EncodeString(codecSelferC_UTF81234, string("rbd")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if yyn367 { r.EncodeNil() } else { - if x.Quobyte == nil { + if x.RBD == nil { r.EncodeNil() } else { - x.Quobyte.CodecEncodeSelf(e) + x.RBD.CodecEncodeSelf(e) } } } } var yyn368 bool - if x.PersistentVolumeSource.AzureDisk == nil { + if x.PersistentVolumeSource.ISCSI == nil { yyn368 = true goto LABEL368 } LABEL368: - if yyr351 || yy2arr351 { + if yyr360 || yy2arr360 { if yyn368 { r.EncodeNil() } else { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq351[16] { + if yyq360[7] { + if x.ISCSI == nil { + r.EncodeNil() + } else { + x.ISCSI.CodecEncodeSelf(e) + } + } else { + r.EncodeNil() + } + } + } else { + if yyq360[7] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("iscsi")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + if yyn368 { + r.EncodeNil() + } else { + if x.ISCSI == nil { + r.EncodeNil() + } else { + x.ISCSI.CodecEncodeSelf(e) + } + } + } + } + var yyn369 bool + if x.PersistentVolumeSource.Cinder == nil { + yyn369 = true + goto LABEL369 + } + LABEL369: + if yyr360 || yy2arr360 { + if yyn369 { + r.EncodeNil() + } else { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq360[8] { + if x.Cinder == nil { + r.EncodeNil() + } else { + x.Cinder.CodecEncodeSelf(e) + } + } else { + r.EncodeNil() + } + } + } else { + if yyq360[8] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("cinder")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + if yyn369 { + r.EncodeNil() + } else { + if x.Cinder == nil { + r.EncodeNil() + } else { + x.Cinder.CodecEncodeSelf(e) + } + } + } + } + var yyn370 bool + if x.PersistentVolumeSource.CephFS == nil { + yyn370 = true + goto LABEL370 + } + LABEL370: + if yyr360 || yy2arr360 { + if yyn370 { + r.EncodeNil() + } else { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq360[9] { + if x.CephFS == nil { + r.EncodeNil() + } else { + x.CephFS.CodecEncodeSelf(e) + } + } else { + r.EncodeNil() + } + } + } else { + if yyq360[9] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("cephfs")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + if yyn370 { + r.EncodeNil() + } else { + if x.CephFS == nil { + r.EncodeNil() + } else { + x.CephFS.CodecEncodeSelf(e) + } + } + } + } + var yyn371 bool + if x.PersistentVolumeSource.FC == nil { + yyn371 = true + goto LABEL371 + } + LABEL371: + if yyr360 || yy2arr360 { + if yyn371 { + r.EncodeNil() + } else { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq360[10] { + if x.FC == nil { + r.EncodeNil() + } else { + x.FC.CodecEncodeSelf(e) + } + } else { + r.EncodeNil() + } + } + } else { + if yyq360[10] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("fc")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + if yyn371 { + r.EncodeNil() + } else { + if x.FC == nil { + r.EncodeNil() + } else { + x.FC.CodecEncodeSelf(e) + } + } + } + } + var yyn372 bool + if x.PersistentVolumeSource.Flocker == nil { + yyn372 = true + goto LABEL372 + } + LABEL372: + if yyr360 || yy2arr360 { + if yyn372 { + r.EncodeNil() + } else { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq360[11] { + if x.Flocker == nil { + r.EncodeNil() + } else { + x.Flocker.CodecEncodeSelf(e) + } + } else { + r.EncodeNil() + } + } + } else { + if yyq360[11] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("flocker")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + if yyn372 { + r.EncodeNil() + } else { + if x.Flocker == nil { + r.EncodeNil() + } else { + x.Flocker.CodecEncodeSelf(e) + } + } + } + } + var yyn373 bool + if x.PersistentVolumeSource.FlexVolume == nil { + yyn373 = true + goto LABEL373 + } + LABEL373: + if yyr360 || yy2arr360 { + if yyn373 { + r.EncodeNil() + } else { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq360[12] { + if x.FlexVolume == nil { + r.EncodeNil() + } else { + x.FlexVolume.CodecEncodeSelf(e) + } + } else { + r.EncodeNil() + } + } + } else { + if yyq360[12] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("flexVolume")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + if yyn373 { + r.EncodeNil() + } else { + if x.FlexVolume == nil { + r.EncodeNil() + } else { + x.FlexVolume.CodecEncodeSelf(e) + } + } + } + } + var yyn374 bool + if x.PersistentVolumeSource.AzureFile == nil { + yyn374 = true + goto LABEL374 + } + LABEL374: + if yyr360 || yy2arr360 { + if yyn374 { + r.EncodeNil() + } else { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq360[13] { + if x.AzureFile == nil { + r.EncodeNil() + } else { + x.AzureFile.CodecEncodeSelf(e) + } + } else { + r.EncodeNil() + } + } + } else { + if yyq360[13] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("azureFile")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + if yyn374 { + r.EncodeNil() + } else { + if x.AzureFile == nil { + r.EncodeNil() + } else { + x.AzureFile.CodecEncodeSelf(e) + } + } + } + } + var yyn375 bool + if x.PersistentVolumeSource.VsphereVolume == nil { + yyn375 = true + goto LABEL375 + } + LABEL375: + if yyr360 || yy2arr360 { + if yyn375 { + r.EncodeNil() + } else { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq360[14] { + if x.VsphereVolume == nil { + r.EncodeNil() + } else { + x.VsphereVolume.CodecEncodeSelf(e) + } + } else { + r.EncodeNil() + } + } + } else { + if yyq360[14] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("vsphereVolume")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + if yyn375 { + r.EncodeNil() + } else { + if x.VsphereVolume == nil { + r.EncodeNil() + } else { + x.VsphereVolume.CodecEncodeSelf(e) + } + } + } + } + var yyn376 bool + if x.PersistentVolumeSource.Quobyte == nil { + yyn376 = true + goto LABEL376 + } + LABEL376: + if yyr360 || yy2arr360 { + if yyn376 { + r.EncodeNil() + } else { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq360[15] { + if x.Quobyte == nil { + r.EncodeNil() + } else { + x.Quobyte.CodecEncodeSelf(e) + } + } else { + r.EncodeNil() + } + } + } else { + if yyq360[15] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("quobyte")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + if yyn376 { + r.EncodeNil() + } else { + if x.Quobyte == nil { + r.EncodeNil() + } else { + x.Quobyte.CodecEncodeSelf(e) + } + } + } + } + var yyn377 bool + if x.PersistentVolumeSource.AzureDisk == nil { + yyn377 = true + goto LABEL377 + } + LABEL377: + if yyr360 || yy2arr360 { + if yyn377 { + r.EncodeNil() + } else { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq360[16] { if x.AzureDisk == nil { r.EncodeNil() } else { @@ -6517,11 +6706,11 @@ func (x *PersistentVolumeSpec) CodecEncodeSelf(e *codec1978.Encoder) { } } } else { - if yyq351[16] { + if yyq360[16] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("azureDisk")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - if yyn368 { + if yyn377 { r.EncodeNil() } else { if x.AzureDisk == nil { @@ -6532,14 +6721,51 @@ func (x *PersistentVolumeSpec) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr351 || yy2arr351 { + var yyn378 bool + if x.PersistentVolumeSource.PhotonPersistentDisk == nil { + yyn378 = true + goto LABEL378 + } + LABEL378: + if yyr360 || yy2arr360 { + if yyn378 { + r.EncodeNil() + } else { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq360[17] { + if x.PhotonPersistentDisk == nil { + r.EncodeNil() + } else { + x.PhotonPersistentDisk.CodecEncodeSelf(e) + } + } else { + r.EncodeNil() + } + } + } else { + if yyq360[17] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("photonPersistentDisk")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + if yyn378 { + r.EncodeNil() + } else { + if x.PhotonPersistentDisk == nil { + r.EncodeNil() + } else { + x.PhotonPersistentDisk.CodecEncodeSelf(e) + } + } + } + } + if yyr360 || yy2arr360 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq351[17] { + if yyq360[18] { if x.AccessModes == nil { r.EncodeNil() } else { - yym370 := z.EncBinary() - _ = yym370 + yym380 := z.EncBinary() + _ = yym380 if false { } else { h.encSlicePersistentVolumeAccessMode(([]PersistentVolumeAccessMode)(x.AccessModes), e) @@ -6549,15 +6775,15 @@ func (x *PersistentVolumeSpec) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq351[17] { + if yyq360[18] { 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 + yym381 := z.EncBinary() + _ = yym381 if false { } else { h.encSlicePersistentVolumeAccessMode(([]PersistentVolumeAccessMode)(x.AccessModes), e) @@ -6565,9 +6791,9 @@ func (x *PersistentVolumeSpec) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr351 || yy2arr351 { + if yyr360 || yy2arr360 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq351[18] { + if yyq360[19] { if x.ClaimRef == nil { r.EncodeNil() } else { @@ -6577,7 +6803,7 @@ func (x *PersistentVolumeSpec) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq351[18] { + if yyq360[19] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("claimRef")) z.EncSendContainerState(codecSelfer_containerMapValue1234) @@ -6588,22 +6814,22 @@ func (x *PersistentVolumeSpec) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr351 || yy2arr351 { + if yyr360 || yy2arr360 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq351[19] { + if yyq360[20] { x.PersistentVolumeReclaimPolicy.CodecEncodeSelf(e) } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq351[19] { + if yyq360[20] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("persistentVolumeReclaimPolicy")) z.EncSendContainerState(codecSelfer_containerMapValue1234) x.PersistentVolumeReclaimPolicy.CodecEncodeSelf(e) } } - if yyr351 || yy2arr351 { + if yyr360 || yy2arr360 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -6616,25 +6842,25 @@ func (x *PersistentVolumeSpec) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym374 := z.DecBinary() - _ = yym374 + yym384 := z.DecBinary() + _ = yym384 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct375 := r.ContainerType() - if yyct375 == codecSelferValueTypeMap1234 { - yyl375 := r.ReadMapStart() - if yyl375 == 0 { + yyct385 := r.ContainerType() + if yyct385 == codecSelferValueTypeMap1234 { + yyl385 := r.ReadMapStart() + if yyl385 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl375, d) + x.codecDecodeSelfFromMap(yyl385, d) } - } else if yyct375 == codecSelferValueTypeArray1234 { - yyl375 := r.ReadArrayStart() - if yyl375 == 0 { + } else if yyct385 == codecSelferValueTypeArray1234 { + yyl385 := r.ReadArrayStart() + if yyl385 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl375, d) + x.codecDecodeSelfFromArray(yyl385, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -6646,12 +6872,12 @@ func (x *PersistentVolumeSpec) codecDecodeSelfFromMap(l int, d *codec1978.Decode var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys376Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys376Slc - var yyhl376 bool = l >= 0 - for yyj376 := 0; ; yyj376++ { - if yyhl376 { - if yyj376 >= l { + var yys386Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys386Slc + var yyhl386 bool = l >= 0 + for yyj386 := 0; ; yyj386++ { + if yyhl386 { + if yyj386 >= l { break } } else { @@ -6660,16 +6886,16 @@ func (x *PersistentVolumeSpec) codecDecodeSelfFromMap(l int, d *codec1978.Decode } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys376Slc = r.DecodeBytes(yys376Slc, true, true) - yys376 := string(yys376Slc) + yys386Slc = r.DecodeBytes(yys386Slc, true, true) + yys386 := string(yys386Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys376 { + switch yys386 { case "capacity": if r.TryDecodeAsNil() { x.Capacity = nil } else { - yyv377 := &x.Capacity - yyv377.CodecDecodeSelf(d) + yyv387 := &x.Capacity + yyv387.CodecDecodeSelf(d) } case "gcePersistentDisk": if x.PersistentVolumeSource.GCEPersistentDisk == nil { @@ -6895,16 +7121,30 @@ func (x *PersistentVolumeSpec) codecDecodeSelfFromMap(l int, d *codec1978.Decode } x.AzureDisk.CodecDecodeSelf(d) } + case "photonPersistentDisk": + if x.PersistentVolumeSource.PhotonPersistentDisk == nil { + x.PersistentVolumeSource.PhotonPersistentDisk = new(PhotonPersistentDiskVolumeSource) + } + if r.TryDecodeAsNil() { + if x.PhotonPersistentDisk != nil { + x.PhotonPersistentDisk = nil + } + } else { + if x.PhotonPersistentDisk == nil { + x.PhotonPersistentDisk = new(PhotonPersistentDiskVolumeSource) + } + x.PhotonPersistentDisk.CodecDecodeSelf(d) + } case "accessModes": if r.TryDecodeAsNil() { x.AccessModes = nil } else { - yyv394 := &x.AccessModes - yym395 := z.DecBinary() - _ = yym395 + yyv405 := &x.AccessModes + yym406 := z.DecBinary() + _ = yym406 if false { } else { - h.decSlicePersistentVolumeAccessMode((*[]PersistentVolumeAccessMode)(yyv394), d) + h.decSlicePersistentVolumeAccessMode((*[]PersistentVolumeAccessMode)(yyv405), d) } } case "claimRef": @@ -6925,9 +7165,9 @@ func (x *PersistentVolumeSpec) codecDecodeSelfFromMap(l int, d *codec1978.Decode x.PersistentVolumeReclaimPolicy = PersistentVolumeReclaimPolicy(r.DecodeString()) } default: - z.DecStructFieldNotFound(-1, yys376) - } // end switch yys376 - } // end for yyj376 + z.DecStructFieldNotFound(-1, yys386) + } // end switch yys386 + } // end for yyj386 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -6935,16 +7175,16 @@ func (x *PersistentVolumeSpec) codecDecodeSelfFromArray(l int, d *codec1978.Deco var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj398 int - var yyb398 bool - var yyhl398 bool = l >= 0 - yyj398++ - if yyhl398 { - yyb398 = yyj398 > l + var yyj409 int + var yyb409 bool + var yyhl409 bool = l >= 0 + yyj409++ + if yyhl409 { + yyb409 = yyj409 > l } else { - yyb398 = r.CheckBreak() + yyb409 = r.CheckBreak() } - if yyb398 { + if yyb409 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -6952,19 +7192,19 @@ func (x *PersistentVolumeSpec) codecDecodeSelfFromArray(l int, d *codec1978.Deco if r.TryDecodeAsNil() { x.Capacity = nil } else { - yyv399 := &x.Capacity - yyv399.CodecDecodeSelf(d) + yyv410 := &x.Capacity + yyv410.CodecDecodeSelf(d) } if x.PersistentVolumeSource.GCEPersistentDisk == nil { x.PersistentVolumeSource.GCEPersistentDisk = new(GCEPersistentDiskVolumeSource) } - yyj398++ - if yyhl398 { - yyb398 = yyj398 > l + yyj409++ + if yyhl409 { + yyb409 = yyj409 > l } else { - yyb398 = r.CheckBreak() + yyb409 = r.CheckBreak() } - if yyb398 { + if yyb409 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -6982,13 +7222,13 @@ func (x *PersistentVolumeSpec) codecDecodeSelfFromArray(l int, d *codec1978.Deco if x.PersistentVolumeSource.AWSElasticBlockStore == nil { x.PersistentVolumeSource.AWSElasticBlockStore = new(AWSElasticBlockStoreVolumeSource) } - yyj398++ - if yyhl398 { - yyb398 = yyj398 > l + yyj409++ + if yyhl409 { + yyb409 = yyj409 > l } else { - yyb398 = r.CheckBreak() + yyb409 = r.CheckBreak() } - if yyb398 { + if yyb409 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -7006,13 +7246,13 @@ func (x *PersistentVolumeSpec) codecDecodeSelfFromArray(l int, d *codec1978.Deco if x.PersistentVolumeSource.HostPath == nil { x.PersistentVolumeSource.HostPath = new(HostPathVolumeSource) } - yyj398++ - if yyhl398 { - yyb398 = yyj398 > l + yyj409++ + if yyhl409 { + yyb409 = yyj409 > l } else { - yyb398 = r.CheckBreak() + yyb409 = r.CheckBreak() } - if yyb398 { + if yyb409 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -7030,13 +7270,13 @@ func (x *PersistentVolumeSpec) codecDecodeSelfFromArray(l int, d *codec1978.Deco if x.PersistentVolumeSource.Glusterfs == nil { x.PersistentVolumeSource.Glusterfs = new(GlusterfsVolumeSource) } - yyj398++ - if yyhl398 { - yyb398 = yyj398 > l + yyj409++ + if yyhl409 { + yyb409 = yyj409 > l } else { - yyb398 = r.CheckBreak() + yyb409 = r.CheckBreak() } - if yyb398 { + if yyb409 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -7054,13 +7294,13 @@ func (x *PersistentVolumeSpec) codecDecodeSelfFromArray(l int, d *codec1978.Deco if x.PersistentVolumeSource.NFS == nil { x.PersistentVolumeSource.NFS = new(NFSVolumeSource) } - yyj398++ - if yyhl398 { - yyb398 = yyj398 > l + yyj409++ + if yyhl409 { + yyb409 = yyj409 > l } else { - yyb398 = r.CheckBreak() + yyb409 = r.CheckBreak() } - if yyb398 { + if yyb409 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -7078,13 +7318,13 @@ func (x *PersistentVolumeSpec) codecDecodeSelfFromArray(l int, d *codec1978.Deco if x.PersistentVolumeSource.RBD == nil { x.PersistentVolumeSource.RBD = new(RBDVolumeSource) } - yyj398++ - if yyhl398 { - yyb398 = yyj398 > l + yyj409++ + if yyhl409 { + yyb409 = yyj409 > l } else { - yyb398 = r.CheckBreak() + yyb409 = r.CheckBreak() } - if yyb398 { + if yyb409 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -7102,13 +7342,13 @@ func (x *PersistentVolumeSpec) codecDecodeSelfFromArray(l int, d *codec1978.Deco if x.PersistentVolumeSource.ISCSI == nil { x.PersistentVolumeSource.ISCSI = new(ISCSIVolumeSource) } - yyj398++ - if yyhl398 { - yyb398 = yyj398 > l + yyj409++ + if yyhl409 { + yyb409 = yyj409 > l } else { - yyb398 = r.CheckBreak() + yyb409 = r.CheckBreak() } - if yyb398 { + if yyb409 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -7126,13 +7366,13 @@ func (x *PersistentVolumeSpec) codecDecodeSelfFromArray(l int, d *codec1978.Deco if x.PersistentVolumeSource.Cinder == nil { x.PersistentVolumeSource.Cinder = new(CinderVolumeSource) } - yyj398++ - if yyhl398 { - yyb398 = yyj398 > l + yyj409++ + if yyhl409 { + yyb409 = yyj409 > l } else { - yyb398 = r.CheckBreak() + yyb409 = r.CheckBreak() } - if yyb398 { + if yyb409 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -7150,13 +7390,13 @@ func (x *PersistentVolumeSpec) codecDecodeSelfFromArray(l int, d *codec1978.Deco if x.PersistentVolumeSource.CephFS == nil { x.PersistentVolumeSource.CephFS = new(CephFSVolumeSource) } - yyj398++ - if yyhl398 { - yyb398 = yyj398 > l + yyj409++ + if yyhl409 { + yyb409 = yyj409 > l } else { - yyb398 = r.CheckBreak() + yyb409 = r.CheckBreak() } - if yyb398 { + if yyb409 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -7174,13 +7414,13 @@ func (x *PersistentVolumeSpec) codecDecodeSelfFromArray(l int, d *codec1978.Deco if x.PersistentVolumeSource.FC == nil { x.PersistentVolumeSource.FC = new(FCVolumeSource) } - yyj398++ - if yyhl398 { - yyb398 = yyj398 > l + yyj409++ + if yyhl409 { + yyb409 = yyj409 > l } else { - yyb398 = r.CheckBreak() + yyb409 = r.CheckBreak() } - if yyb398 { + if yyb409 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -7198,13 +7438,13 @@ func (x *PersistentVolumeSpec) codecDecodeSelfFromArray(l int, d *codec1978.Deco if x.PersistentVolumeSource.Flocker == nil { x.PersistentVolumeSource.Flocker = new(FlockerVolumeSource) } - yyj398++ - if yyhl398 { - yyb398 = yyj398 > l + yyj409++ + if yyhl409 { + yyb409 = yyj409 > l } else { - yyb398 = r.CheckBreak() + yyb409 = r.CheckBreak() } - if yyb398 { + if yyb409 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -7222,13 +7462,13 @@ func (x *PersistentVolumeSpec) codecDecodeSelfFromArray(l int, d *codec1978.Deco if x.PersistentVolumeSource.FlexVolume == nil { x.PersistentVolumeSource.FlexVolume = new(FlexVolumeSource) } - yyj398++ - if yyhl398 { - yyb398 = yyj398 > l + yyj409++ + if yyhl409 { + yyb409 = yyj409 > l } else { - yyb398 = r.CheckBreak() + yyb409 = r.CheckBreak() } - if yyb398 { + if yyb409 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -7246,13 +7486,13 @@ func (x *PersistentVolumeSpec) codecDecodeSelfFromArray(l int, d *codec1978.Deco if x.PersistentVolumeSource.AzureFile == nil { x.PersistentVolumeSource.AzureFile = new(AzureFileVolumeSource) } - yyj398++ - if yyhl398 { - yyb398 = yyj398 > l + yyj409++ + if yyhl409 { + yyb409 = yyj409 > l } else { - yyb398 = r.CheckBreak() + yyb409 = r.CheckBreak() } - if yyb398 { + if yyb409 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -7270,13 +7510,13 @@ func (x *PersistentVolumeSpec) codecDecodeSelfFromArray(l int, d *codec1978.Deco if x.PersistentVolumeSource.VsphereVolume == nil { x.PersistentVolumeSource.VsphereVolume = new(VsphereVirtualDiskVolumeSource) } - yyj398++ - if yyhl398 { - yyb398 = yyj398 > l + yyj409++ + if yyhl409 { + yyb409 = yyj409 > l } else { - yyb398 = r.CheckBreak() + yyb409 = r.CheckBreak() } - if yyb398 { + if yyb409 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -7294,13 +7534,13 @@ func (x *PersistentVolumeSpec) codecDecodeSelfFromArray(l int, d *codec1978.Deco if x.PersistentVolumeSource.Quobyte == nil { x.PersistentVolumeSource.Quobyte = new(QuobyteVolumeSource) } - yyj398++ - if yyhl398 { - yyb398 = yyj398 > l + yyj409++ + if yyhl409 { + yyb409 = yyj409 > l } else { - yyb398 = r.CheckBreak() + yyb409 = r.CheckBreak() } - if yyb398 { + if yyb409 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -7318,13 +7558,13 @@ func (x *PersistentVolumeSpec) codecDecodeSelfFromArray(l int, d *codec1978.Deco if x.PersistentVolumeSource.AzureDisk == nil { x.PersistentVolumeSource.AzureDisk = new(AzureDiskVolumeSource) } - yyj398++ - if yyhl398 { - yyb398 = yyj398 > l + yyj409++ + if yyhl409 { + yyb409 = yyj409 > l } else { - yyb398 = r.CheckBreak() + yyb409 = r.CheckBreak() } - if yyb398 { + if yyb409 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -7339,13 +7579,37 @@ func (x *PersistentVolumeSpec) codecDecodeSelfFromArray(l int, d *codec1978.Deco } x.AzureDisk.CodecDecodeSelf(d) } - yyj398++ - if yyhl398 { - yyb398 = yyj398 > l - } else { - yyb398 = r.CheckBreak() + if x.PersistentVolumeSource.PhotonPersistentDisk == nil { + x.PersistentVolumeSource.PhotonPersistentDisk = new(PhotonPersistentDiskVolumeSource) } - if yyb398 { + yyj409++ + if yyhl409 { + yyb409 = yyj409 > l + } else { + yyb409 = r.CheckBreak() + } + if yyb409 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + if x.PhotonPersistentDisk != nil { + x.PhotonPersistentDisk = nil + } + } else { + if x.PhotonPersistentDisk == nil { + x.PhotonPersistentDisk = new(PhotonPersistentDiskVolumeSource) + } + x.PhotonPersistentDisk.CodecDecodeSelf(d) + } + yyj409++ + if yyhl409 { + yyb409 = yyj409 > l + } else { + yyb409 = r.CheckBreak() + } + if yyb409 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -7353,21 +7617,21 @@ func (x *PersistentVolumeSpec) codecDecodeSelfFromArray(l int, d *codec1978.Deco if r.TryDecodeAsNil() { x.AccessModes = nil } else { - yyv416 := &x.AccessModes - yym417 := z.DecBinary() - _ = yym417 + yyv428 := &x.AccessModes + yym429 := z.DecBinary() + _ = yym429 if false { } else { - h.decSlicePersistentVolumeAccessMode((*[]PersistentVolumeAccessMode)(yyv416), d) + h.decSlicePersistentVolumeAccessMode((*[]PersistentVolumeAccessMode)(yyv428), d) } } - yyj398++ - if yyhl398 { - yyb398 = yyj398 > l + yyj409++ + if yyhl409 { + yyb409 = yyj409 > l } else { - yyb398 = r.CheckBreak() + yyb409 = r.CheckBreak() } - if yyb398 { + if yyb409 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -7382,13 +7646,13 @@ func (x *PersistentVolumeSpec) codecDecodeSelfFromArray(l int, d *codec1978.Deco } x.ClaimRef.CodecDecodeSelf(d) } - yyj398++ - if yyhl398 { - yyb398 = yyj398 > l + yyj409++ + if yyhl409 { + yyb409 = yyj409 > l } else { - yyb398 = r.CheckBreak() + yyb409 = r.CheckBreak() } - if yyb398 { + if yyb409 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -7399,17 +7663,17 @@ func (x *PersistentVolumeSpec) codecDecodeSelfFromArray(l int, d *codec1978.Deco x.PersistentVolumeReclaimPolicy = PersistentVolumeReclaimPolicy(r.DecodeString()) } for { - yyj398++ - if yyhl398 { - yyb398 = yyj398 > l + yyj409++ + if yyhl409 { + yyb409 = yyj409 > l } else { - yyb398 = r.CheckBreak() + yyb409 = r.CheckBreak() } - if yyb398 { + if yyb409 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj398-1, "") + z.DecStructFieldNotFound(yyj409-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -7418,8 +7682,8 @@ func (x PersistentVolumeReclaimPolicy) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r - yym420 := z.EncBinary() - _ = yym420 + yym432 := z.EncBinary() + _ = yym432 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { @@ -7431,8 +7695,8 @@ func (x *PersistentVolumeReclaimPolicy) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym421 := z.DecBinary() - _ = yym421 + yym433 := z.DecBinary() + _ = yym433 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { @@ -7447,52 +7711,52 @@ func (x *PersistentVolumeStatus) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym422 := z.EncBinary() - _ = yym422 + yym434 := z.EncBinary() + _ = yym434 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - 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 { + yysep435 := !z.EncBinary() + yy2arr435 := z.EncBasicHandle().StructToArray + var yyq435 [3]bool + _, _, _ = yysep435, yyq435, yy2arr435 + const yyr435 bool = false + yyq435[0] = x.Phase != "" + yyq435[1] = x.Message != "" + yyq435[2] = x.Reason != "" + var yynn435 int + if yyr435 || yy2arr435 { r.EncodeArrayStart(3) } else { - yynn423 = 0 - for _, b := range yyq423 { + yynn435 = 0 + for _, b := range yyq435 { if b { - yynn423++ + yynn435++ } } - r.EncodeMapStart(yynn423) - yynn423 = 0 + r.EncodeMapStart(yynn435) + yynn435 = 0 } - if yyr423 || yy2arr423 { + if yyr435 || yy2arr435 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq423[0] { + if yyq435[0] { x.Phase.CodecEncodeSelf(e) } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq423[0] { + if yyq435[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("phase")) z.EncSendContainerState(codecSelfer_containerMapValue1234) x.Phase.CodecEncodeSelf(e) } } - if yyr423 || yy2arr423 { + if yyr435 || yy2arr435 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq423[1] { - yym426 := z.EncBinary() - _ = yym426 + if yyq435[1] { + yym438 := z.EncBinary() + _ = yym438 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Message)) @@ -7501,23 +7765,23 @@ func (x *PersistentVolumeStatus) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq423[1] { + if yyq435[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("message")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym427 := z.EncBinary() - _ = yym427 + yym439 := z.EncBinary() + _ = yym439 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Message)) } } } - if yyr423 || yy2arr423 { + if yyr435 || yy2arr435 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq423[2] { - yym429 := z.EncBinary() - _ = yym429 + if yyq435[2] { + yym441 := z.EncBinary() + _ = yym441 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Reason)) @@ -7526,19 +7790,19 @@ func (x *PersistentVolumeStatus) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq423[2] { + if yyq435[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("reason")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym430 := z.EncBinary() - _ = yym430 + yym442 := z.EncBinary() + _ = yym442 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Reason)) } } } - if yyr423 || yy2arr423 { + if yyr435 || yy2arr435 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -7551,25 +7815,25 @@ func (x *PersistentVolumeStatus) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym431 := z.DecBinary() - _ = yym431 + yym443 := z.DecBinary() + _ = yym443 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct432 := r.ContainerType() - if yyct432 == codecSelferValueTypeMap1234 { - yyl432 := r.ReadMapStart() - if yyl432 == 0 { + yyct444 := r.ContainerType() + if yyct444 == codecSelferValueTypeMap1234 { + yyl444 := r.ReadMapStart() + if yyl444 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl432, d) + x.codecDecodeSelfFromMap(yyl444, d) } - } else if yyct432 == codecSelferValueTypeArray1234 { - yyl432 := r.ReadArrayStart() - if yyl432 == 0 { + } else if yyct444 == codecSelferValueTypeArray1234 { + yyl444 := r.ReadArrayStart() + if yyl444 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl432, d) + x.codecDecodeSelfFromArray(yyl444, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -7581,12 +7845,12 @@ func (x *PersistentVolumeStatus) codecDecodeSelfFromMap(l int, d *codec1978.Deco var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys433Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys433Slc - var yyhl433 bool = l >= 0 - for yyj433 := 0; ; yyj433++ { - if yyhl433 { - if yyj433 >= l { + var yys445Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys445Slc + var yyhl445 bool = l >= 0 + for yyj445 := 0; ; yyj445++ { + if yyhl445 { + if yyj445 >= l { break } } else { @@ -7595,10 +7859,10 @@ func (x *PersistentVolumeStatus) codecDecodeSelfFromMap(l int, d *codec1978.Deco } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys433Slc = r.DecodeBytes(yys433Slc, true, true) - yys433 := string(yys433Slc) + yys445Slc = r.DecodeBytes(yys445Slc, true, true) + yys445 := string(yys445Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys433 { + switch yys445 { case "phase": if r.TryDecodeAsNil() { x.Phase = "" @@ -7618,9 +7882,9 @@ func (x *PersistentVolumeStatus) codecDecodeSelfFromMap(l int, d *codec1978.Deco x.Reason = string(r.DecodeString()) } default: - z.DecStructFieldNotFound(-1, yys433) - } // end switch yys433 - } // end for yyj433 + z.DecStructFieldNotFound(-1, yys445) + } // end switch yys445 + } // end for yyj445 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -7628,16 +7892,16 @@ func (x *PersistentVolumeStatus) codecDecodeSelfFromArray(l int, d *codec1978.De 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 + var yyj449 int + var yyb449 bool + var yyhl449 bool = l >= 0 + yyj449++ + if yyhl449 { + yyb449 = yyj449 > l } else { - yyb437 = r.CheckBreak() + yyb449 = r.CheckBreak() } - if yyb437 { + if yyb449 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -7647,13 +7911,13 @@ func (x *PersistentVolumeStatus) codecDecodeSelfFromArray(l int, d *codec1978.De } else { x.Phase = PersistentVolumePhase(r.DecodeString()) } - yyj437++ - if yyhl437 { - yyb437 = yyj437 > l + yyj449++ + if yyhl449 { + yyb449 = yyj449 > l } else { - yyb437 = r.CheckBreak() + yyb449 = r.CheckBreak() } - if yyb437 { + if yyb449 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -7663,13 +7927,13 @@ func (x *PersistentVolumeStatus) codecDecodeSelfFromArray(l int, d *codec1978.De } else { x.Message = string(r.DecodeString()) } - yyj437++ - if yyhl437 { - yyb437 = yyj437 > l + yyj449++ + if yyhl449 { + yyb449 = yyj449 > l } else { - yyb437 = r.CheckBreak() + yyb449 = r.CheckBreak() } - if yyb437 { + if yyb449 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -7680,17 +7944,17 @@ func (x *PersistentVolumeStatus) codecDecodeSelfFromArray(l int, d *codec1978.De x.Reason = string(r.DecodeString()) } for { - yyj437++ - if yyhl437 { - yyb437 = yyj437 > l + yyj449++ + if yyhl449 { + yyb449 = yyj449 > l } else { - yyb437 = r.CheckBreak() + yyb449 = r.CheckBreak() } - if yyb437 { + if yyb449 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj437-1, "") + z.DecStructFieldNotFound(yyj449-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -7702,37 +7966,37 @@ func (x *PersistentVolumeList) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym441 := z.EncBinary() - _ = yym441 + yym453 := z.EncBinary() + _ = yym453 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 { + yysep454 := !z.EncBinary() + yy2arr454 := z.EncBasicHandle().StructToArray + var yyq454 [4]bool + _, _, _ = yysep454, yyq454, yy2arr454 + const yyr454 bool = false + yyq454[0] = x.Kind != "" + yyq454[1] = x.APIVersion != "" + yyq454[2] = true + var yynn454 int + if yyr454 || yy2arr454 { r.EncodeArrayStart(4) } else { - yynn442 = 1 - for _, b := range yyq442 { + yynn454 = 1 + for _, b := range yyq454 { if b { - yynn442++ + yynn454++ } } - r.EncodeMapStart(yynn442) - yynn442 = 0 + r.EncodeMapStart(yynn454) + yynn454 = 0 } - if yyr442 || yy2arr442 { + if yyr454 || yy2arr454 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq442[0] { - yym444 := z.EncBinary() - _ = yym444 + if yyq454[0] { + yym456 := z.EncBinary() + _ = yym456 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) @@ -7741,23 +8005,23 @@ func (x *PersistentVolumeList) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq442[0] { + if yyq454[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym445 := z.EncBinary() - _ = yym445 + yym457 := z.EncBinary() + _ = yym457 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } - if yyr442 || yy2arr442 { + if yyr454 || yy2arr454 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq442[1] { - yym447 := z.EncBinary() - _ = yym447 + if yyq454[1] { + yym459 := z.EncBinary() + _ = yym459 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) @@ -7766,54 +8030,54 @@ func (x *PersistentVolumeList) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq442[1] { + if yyq454[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym448 := z.EncBinary() - _ = yym448 + yym460 := z.EncBinary() + _ = yym460 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } - if yyr442 || yy2arr442 { + if yyr454 || yy2arr454 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq442[2] { - yy450 := &x.ListMeta - yym451 := z.EncBinary() - _ = yym451 + if yyq454[2] { + yy462 := &x.ListMeta + yym463 := z.EncBinary() + _ = yym463 if false { - } else if z.HasExtensions() && z.EncExt(yy450) { + } else if z.HasExtensions() && z.EncExt(yy462) { } else { - z.EncFallback(yy450) + z.EncFallback(yy462) } } else { r.EncodeNil() } } else { - if yyq442[2] { + if yyq454[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy452 := &x.ListMeta - yym453 := z.EncBinary() - _ = yym453 + yy464 := &x.ListMeta + yym465 := z.EncBinary() + _ = yym465 if false { - } else if z.HasExtensions() && z.EncExt(yy452) { + } else if z.HasExtensions() && z.EncExt(yy464) { } else { - z.EncFallback(yy452) + z.EncFallback(yy464) } } } - if yyr442 || yy2arr442 { + if yyr454 || yy2arr454 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.Items == nil { r.EncodeNil() } else { - yym455 := z.EncBinary() - _ = yym455 + yym467 := z.EncBinary() + _ = yym467 if false { } else { h.encSlicePersistentVolume(([]PersistentVolume)(x.Items), e) @@ -7826,15 +8090,15 @@ func (x *PersistentVolumeList) CodecEncodeSelf(e *codec1978.Encoder) { if x.Items == nil { r.EncodeNil() } else { - yym456 := z.EncBinary() - _ = yym456 + yym468 := z.EncBinary() + _ = yym468 if false { } else { h.encSlicePersistentVolume(([]PersistentVolume)(x.Items), e) } } } - if yyr442 || yy2arr442 { + if yyr454 || yy2arr454 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -7847,25 +8111,25 @@ func (x *PersistentVolumeList) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym457 := z.DecBinary() - _ = yym457 + yym469 := z.DecBinary() + _ = yym469 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct458 := r.ContainerType() - if yyct458 == codecSelferValueTypeMap1234 { - yyl458 := r.ReadMapStart() - if yyl458 == 0 { + yyct470 := r.ContainerType() + if yyct470 == codecSelferValueTypeMap1234 { + yyl470 := r.ReadMapStart() + if yyl470 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl458, d) + x.codecDecodeSelfFromMap(yyl470, d) } - } else if yyct458 == codecSelferValueTypeArray1234 { - yyl458 := r.ReadArrayStart() - if yyl458 == 0 { + } else if yyct470 == codecSelferValueTypeArray1234 { + yyl470 := r.ReadArrayStart() + if yyl470 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl458, d) + x.codecDecodeSelfFromArray(yyl470, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -7877,12 +8141,12 @@ func (x *PersistentVolumeList) codecDecodeSelfFromMap(l int, d *codec1978.Decode 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 { + var yys471Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys471Slc + var yyhl471 bool = l >= 0 + for yyj471 := 0; ; yyj471++ { + if yyhl471 { + if yyj471 >= l { break } } else { @@ -7891,10 +8155,10 @@ func (x *PersistentVolumeList) codecDecodeSelfFromMap(l int, d *codec1978.Decode } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys459Slc = r.DecodeBytes(yys459Slc, true, true) - yys459 := string(yys459Slc) + yys471Slc = r.DecodeBytes(yys471Slc, true, true) + yys471 := string(yys471Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys459 { + switch yys471 { case "kind": if r.TryDecodeAsNil() { x.Kind = "" @@ -7911,31 +8175,31 @@ func (x *PersistentVolumeList) codecDecodeSelfFromMap(l int, d *codec1978.Decode if r.TryDecodeAsNil() { x.ListMeta = pkg2_unversioned.ListMeta{} } else { - yyv462 := &x.ListMeta - yym463 := z.DecBinary() - _ = yym463 + yyv474 := &x.ListMeta + yym475 := z.DecBinary() + _ = yym475 if false { - } else if z.HasExtensions() && z.DecExt(yyv462) { + } else if z.HasExtensions() && z.DecExt(yyv474) { } else { - z.DecFallback(yyv462, false) + z.DecFallback(yyv474, false) } } case "items": if r.TryDecodeAsNil() { x.Items = nil } else { - yyv464 := &x.Items - yym465 := z.DecBinary() - _ = yym465 + yyv476 := &x.Items + yym477 := z.DecBinary() + _ = yym477 if false { } else { - h.decSlicePersistentVolume((*[]PersistentVolume)(yyv464), d) + h.decSlicePersistentVolume((*[]PersistentVolume)(yyv476), d) } } default: - z.DecStructFieldNotFound(-1, yys459) - } // end switch yys459 - } // end for yyj459 + z.DecStructFieldNotFound(-1, yys471) + } // end switch yys471 + } // end for yyj471 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -7943,16 +8207,16 @@ func (x *PersistentVolumeList) codecDecodeSelfFromArray(l int, d *codec1978.Deco 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 + var yyj478 int + var yyb478 bool + var yyhl478 bool = l >= 0 + yyj478++ + if yyhl478 { + yyb478 = yyj478 > l } else { - yyb466 = r.CheckBreak() + yyb478 = r.CheckBreak() } - if yyb466 { + if yyb478 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -7962,13 +8226,13 @@ func (x *PersistentVolumeList) codecDecodeSelfFromArray(l int, d *codec1978.Deco } else { x.Kind = string(r.DecodeString()) } - yyj466++ - if yyhl466 { - yyb466 = yyj466 > l + yyj478++ + if yyhl478 { + yyb478 = yyj478 > l } else { - yyb466 = r.CheckBreak() + yyb478 = r.CheckBreak() } - if yyb466 { + if yyb478 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -7978,13 +8242,13 @@ func (x *PersistentVolumeList) codecDecodeSelfFromArray(l int, d *codec1978.Deco } else { x.APIVersion = string(r.DecodeString()) } - yyj466++ - if yyhl466 { - yyb466 = yyj466 > l + yyj478++ + if yyhl478 { + yyb478 = yyj478 > l } else { - yyb466 = r.CheckBreak() + yyb478 = r.CheckBreak() } - if yyb466 { + if yyb478 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -7992,22 +8256,22 @@ func (x *PersistentVolumeList) codecDecodeSelfFromArray(l int, d *codec1978.Deco if r.TryDecodeAsNil() { x.ListMeta = pkg2_unversioned.ListMeta{} } else { - yyv469 := &x.ListMeta - yym470 := z.DecBinary() - _ = yym470 + yyv481 := &x.ListMeta + yym482 := z.DecBinary() + _ = yym482 if false { - } else if z.HasExtensions() && z.DecExt(yyv469) { + } else if z.HasExtensions() && z.DecExt(yyv481) { } else { - z.DecFallback(yyv469, false) + z.DecFallback(yyv481, false) } } - yyj466++ - if yyhl466 { - yyb466 = yyj466 > l + yyj478++ + if yyhl478 { + yyb478 = yyj478 > l } else { - yyb466 = r.CheckBreak() + yyb478 = r.CheckBreak() } - if yyb466 { + if yyb478 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -8015,26 +8279,26 @@ func (x *PersistentVolumeList) codecDecodeSelfFromArray(l int, d *codec1978.Deco if r.TryDecodeAsNil() { x.Items = nil } else { - yyv471 := &x.Items - yym472 := z.DecBinary() - _ = yym472 + yyv483 := &x.Items + yym484 := z.DecBinary() + _ = yym484 if false { } else { - h.decSlicePersistentVolume((*[]PersistentVolume)(yyv471), d) + h.decSlicePersistentVolume((*[]PersistentVolume)(yyv483), d) } } for { - yyj466++ - if yyhl466 { - yyb466 = yyj466 > l + yyj478++ + if yyhl478 { + yyb478 = yyj478 > l } else { - yyb466 = r.CheckBreak() + yyb478 = r.CheckBreak() } - if yyb466 { + if yyb478 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj466-1, "") + z.DecStructFieldNotFound(yyj478-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -8046,39 +8310,39 @@ func (x *PersistentVolumeClaim) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym473 := z.EncBinary() - _ = yym473 + yym485 := z.EncBinary() + _ = yym485 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep474 := !z.EncBinary() - yy2arr474 := z.EncBasicHandle().StructToArray - var yyq474 [5]bool - _, _, _ = yysep474, yyq474, yy2arr474 - const yyr474 bool = false - yyq474[0] = x.Kind != "" - yyq474[1] = x.APIVersion != "" - yyq474[2] = true - yyq474[3] = true - yyq474[4] = true - var yynn474 int - if yyr474 || yy2arr474 { + yysep486 := !z.EncBinary() + yy2arr486 := z.EncBasicHandle().StructToArray + var yyq486 [5]bool + _, _, _ = yysep486, yyq486, yy2arr486 + const yyr486 bool = false + yyq486[0] = x.Kind != "" + yyq486[1] = x.APIVersion != "" + yyq486[2] = true + yyq486[3] = true + yyq486[4] = true + var yynn486 int + if yyr486 || yy2arr486 { r.EncodeArrayStart(5) } else { - yynn474 = 0 - for _, b := range yyq474 { + yynn486 = 0 + for _, b := range yyq486 { if b { - yynn474++ + yynn486++ } } - r.EncodeMapStart(yynn474) - yynn474 = 0 + r.EncodeMapStart(yynn486) + yynn486 = 0 } - if yyr474 || yy2arr474 { + if yyr486 || yy2arr486 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq474[0] { - yym476 := z.EncBinary() - _ = yym476 + if yyq486[0] { + yym488 := z.EncBinary() + _ = yym488 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) @@ -8087,23 +8351,23 @@ func (x *PersistentVolumeClaim) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq474[0] { + if yyq486[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym477 := z.EncBinary() - _ = yym477 + yym489 := z.EncBinary() + _ = yym489 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } - if yyr474 || yy2arr474 { + if yyr486 || yy2arr486 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq474[1] { - yym479 := z.EncBinary() - _ = yym479 + if yyq486[1] { + yym491 := z.EncBinary() + _ = yym491 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) @@ -8112,70 +8376,70 @@ func (x *PersistentVolumeClaim) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq474[1] { + if yyq486[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym480 := z.EncBinary() - _ = yym480 + yym492 := z.EncBinary() + _ = yym492 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } - if yyr474 || yy2arr474 { + if yyr486 || yy2arr486 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq474[2] { - yy482 := &x.ObjectMeta - yy482.CodecEncodeSelf(e) + if yyq486[2] { + yy494 := &x.ObjectMeta + yy494.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { - if yyq474[2] { + if yyq486[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy483 := &x.ObjectMeta - yy483.CodecEncodeSelf(e) + yy495 := &x.ObjectMeta + yy495.CodecEncodeSelf(e) } } - if yyr474 || yy2arr474 { + if yyr486 || yy2arr486 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq474[3] { - yy485 := &x.Spec - yy485.CodecEncodeSelf(e) + if yyq486[3] { + yy497 := &x.Spec + yy497.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { - if yyq474[3] { + if yyq486[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("spec")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy486 := &x.Spec - yy486.CodecEncodeSelf(e) + yy498 := &x.Spec + yy498.CodecEncodeSelf(e) } } - if yyr474 || yy2arr474 { + if yyr486 || yy2arr486 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq474[4] { - yy488 := &x.Status - yy488.CodecEncodeSelf(e) + if yyq486[4] { + yy500 := &x.Status + yy500.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { - if yyq474[4] { + if yyq486[4] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("status")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy489 := &x.Status - yy489.CodecEncodeSelf(e) + yy501 := &x.Status + yy501.CodecEncodeSelf(e) } } - if yyr474 || yy2arr474 { + if yyr486 || yy2arr486 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -8188,25 +8452,25 @@ func (x *PersistentVolumeClaim) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym490 := z.DecBinary() - _ = yym490 + yym502 := z.DecBinary() + _ = yym502 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct491 := r.ContainerType() - if yyct491 == codecSelferValueTypeMap1234 { - yyl491 := r.ReadMapStart() - if yyl491 == 0 { + yyct503 := r.ContainerType() + if yyct503 == codecSelferValueTypeMap1234 { + yyl503 := r.ReadMapStart() + if yyl503 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl491, d) + x.codecDecodeSelfFromMap(yyl503, d) } - } else if yyct491 == codecSelferValueTypeArray1234 { - yyl491 := r.ReadArrayStart() - if yyl491 == 0 { + } else if yyct503 == codecSelferValueTypeArray1234 { + yyl503 := r.ReadArrayStart() + if yyl503 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl491, d) + x.codecDecodeSelfFromArray(yyl503, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -8218,12 +8482,12 @@ func (x *PersistentVolumeClaim) codecDecodeSelfFromMap(l int, d *codec1978.Decod var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys492Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys492Slc - var yyhl492 bool = l >= 0 - for yyj492 := 0; ; yyj492++ { - if yyhl492 { - if yyj492 >= l { + 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 { @@ -8232,10 +8496,10 @@ func (x *PersistentVolumeClaim) codecDecodeSelfFromMap(l int, d *codec1978.Decod } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys492Slc = r.DecodeBytes(yys492Slc, true, true) - yys492 := string(yys492Slc) + yys504Slc = r.DecodeBytes(yys504Slc, true, true) + yys504 := string(yys504Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys492 { + switch yys504 { case "kind": if r.TryDecodeAsNil() { x.Kind = "" @@ -8252,27 +8516,27 @@ func (x *PersistentVolumeClaim) codecDecodeSelfFromMap(l int, d *codec1978.Decod if r.TryDecodeAsNil() { x.ObjectMeta = ObjectMeta{} } else { - yyv495 := &x.ObjectMeta - yyv495.CodecDecodeSelf(d) + yyv507 := &x.ObjectMeta + yyv507.CodecDecodeSelf(d) } case "spec": if r.TryDecodeAsNil() { x.Spec = PersistentVolumeClaimSpec{} } else { - yyv496 := &x.Spec - yyv496.CodecDecodeSelf(d) + yyv508 := &x.Spec + yyv508.CodecDecodeSelf(d) } case "status": if r.TryDecodeAsNil() { x.Status = PersistentVolumeClaimStatus{} } else { - yyv497 := &x.Status - yyv497.CodecDecodeSelf(d) + yyv509 := &x.Status + yyv509.CodecDecodeSelf(d) } default: - z.DecStructFieldNotFound(-1, yys492) - } // end switch yys492 - } // end for yyj492 + z.DecStructFieldNotFound(-1, yys504) + } // end switch yys504 + } // end for yyj504 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -8280,16 +8544,16 @@ func (x *PersistentVolumeClaim) codecDecodeSelfFromArray(l int, d *codec1978.Dec var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj498 int - var yyb498 bool - var yyhl498 bool = l >= 0 - yyj498++ - if yyhl498 { - yyb498 = yyj498 > l + var yyj510 int + var yyb510 bool + var yyhl510 bool = l >= 0 + yyj510++ + if yyhl510 { + yyb510 = yyj510 > l } else { - yyb498 = r.CheckBreak() + yyb510 = r.CheckBreak() } - if yyb498 { + if yyb510 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -8299,13 +8563,13 @@ func (x *PersistentVolumeClaim) codecDecodeSelfFromArray(l int, d *codec1978.Dec } else { x.Kind = string(r.DecodeString()) } - yyj498++ - if yyhl498 { - yyb498 = yyj498 > l + yyj510++ + if yyhl510 { + yyb510 = yyj510 > l } else { - yyb498 = r.CheckBreak() + yyb510 = r.CheckBreak() } - if yyb498 { + if yyb510 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -8315,13 +8579,13 @@ func (x *PersistentVolumeClaim) codecDecodeSelfFromArray(l int, d *codec1978.Dec } else { x.APIVersion = string(r.DecodeString()) } - yyj498++ - if yyhl498 { - yyb498 = yyj498 > l + yyj510++ + if yyhl510 { + yyb510 = yyj510 > l } else { - yyb498 = r.CheckBreak() + yyb510 = r.CheckBreak() } - if yyb498 { + if yyb510 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -8329,16 +8593,16 @@ func (x *PersistentVolumeClaim) codecDecodeSelfFromArray(l int, d *codec1978.Dec if r.TryDecodeAsNil() { x.ObjectMeta = ObjectMeta{} } else { - yyv501 := &x.ObjectMeta - yyv501.CodecDecodeSelf(d) + yyv513 := &x.ObjectMeta + yyv513.CodecDecodeSelf(d) } - yyj498++ - if yyhl498 { - yyb498 = yyj498 > l + yyj510++ + if yyhl510 { + yyb510 = yyj510 > l } else { - yyb498 = r.CheckBreak() + yyb510 = r.CheckBreak() } - if yyb498 { + if yyb510 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -8346,16 +8610,16 @@ func (x *PersistentVolumeClaim) codecDecodeSelfFromArray(l int, d *codec1978.Dec if r.TryDecodeAsNil() { x.Spec = PersistentVolumeClaimSpec{} } else { - yyv502 := &x.Spec - yyv502.CodecDecodeSelf(d) + yyv514 := &x.Spec + yyv514.CodecDecodeSelf(d) } - yyj498++ - if yyhl498 { - yyb498 = yyj498 > l + yyj510++ + if yyhl510 { + yyb510 = yyj510 > l } else { - yyb498 = r.CheckBreak() + yyb510 = r.CheckBreak() } - if yyb498 { + if yyb510 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -8363,21 +8627,21 @@ func (x *PersistentVolumeClaim) codecDecodeSelfFromArray(l int, d *codec1978.Dec if r.TryDecodeAsNil() { x.Status = PersistentVolumeClaimStatus{} } else { - yyv503 := &x.Status - yyv503.CodecDecodeSelf(d) + yyv515 := &x.Status + yyv515.CodecDecodeSelf(d) } for { - yyj498++ - if yyhl498 { - yyb498 = yyj498 > l + yyj510++ + if yyhl510 { + yyb510 = yyj510 > l } else { - yyb498 = r.CheckBreak() + yyb510 = r.CheckBreak() } - if yyb498 { + if yyb510 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj498-1, "") + z.DecStructFieldNotFound(yyj510-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -8389,37 +8653,37 @@ func (x *PersistentVolumeClaimList) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym504 := z.EncBinary() - _ = yym504 + yym516 := z.EncBinary() + _ = yym516 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep505 := !z.EncBinary() - yy2arr505 := z.EncBasicHandle().StructToArray - var yyq505 [4]bool - _, _, _ = yysep505, yyq505, yy2arr505 - const yyr505 bool = false - yyq505[0] = x.Kind != "" - yyq505[1] = x.APIVersion != "" - yyq505[2] = true - var yynn505 int - if yyr505 || yy2arr505 { + yysep517 := !z.EncBinary() + yy2arr517 := z.EncBasicHandle().StructToArray + var yyq517 [4]bool + _, _, _ = yysep517, yyq517, yy2arr517 + const yyr517 bool = false + yyq517[0] = x.Kind != "" + yyq517[1] = x.APIVersion != "" + yyq517[2] = true + var yynn517 int + if yyr517 || yy2arr517 { r.EncodeArrayStart(4) } else { - yynn505 = 1 - for _, b := range yyq505 { + yynn517 = 1 + for _, b := range yyq517 { if b { - yynn505++ + yynn517++ } } - r.EncodeMapStart(yynn505) - yynn505 = 0 + r.EncodeMapStart(yynn517) + yynn517 = 0 } - if yyr505 || yy2arr505 { + if yyr517 || yy2arr517 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq505[0] { - yym507 := z.EncBinary() - _ = yym507 + if yyq517[0] { + yym519 := z.EncBinary() + _ = yym519 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) @@ -8428,23 +8692,23 @@ func (x *PersistentVolumeClaimList) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq505[0] { + if yyq517[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym508 := z.EncBinary() - _ = yym508 + yym520 := z.EncBinary() + _ = yym520 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } - if yyr505 || yy2arr505 { + if yyr517 || yy2arr517 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq505[1] { - yym510 := z.EncBinary() - _ = yym510 + if yyq517[1] { + yym522 := z.EncBinary() + _ = yym522 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) @@ -8453,54 +8717,54 @@ func (x *PersistentVolumeClaimList) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq505[1] { + if yyq517[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym511 := z.EncBinary() - _ = yym511 + yym523 := z.EncBinary() + _ = yym523 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } - if yyr505 || yy2arr505 { + if yyr517 || yy2arr517 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq505[2] { - yy513 := &x.ListMeta - yym514 := z.EncBinary() - _ = yym514 + if yyq517[2] { + yy525 := &x.ListMeta + yym526 := z.EncBinary() + _ = yym526 if false { - } else if z.HasExtensions() && z.EncExt(yy513) { + } else if z.HasExtensions() && z.EncExt(yy525) { } else { - z.EncFallback(yy513) + z.EncFallback(yy525) } } else { r.EncodeNil() } } else { - if yyq505[2] { + if yyq517[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy515 := &x.ListMeta - yym516 := z.EncBinary() - _ = yym516 + yy527 := &x.ListMeta + yym528 := z.EncBinary() + _ = yym528 if false { - } else if z.HasExtensions() && z.EncExt(yy515) { + } else if z.HasExtensions() && z.EncExt(yy527) { } else { - z.EncFallback(yy515) + z.EncFallback(yy527) } } } - if yyr505 || yy2arr505 { + if yyr517 || yy2arr517 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.Items == nil { r.EncodeNil() } else { - yym518 := z.EncBinary() - _ = yym518 + yym530 := z.EncBinary() + _ = yym530 if false { } else { h.encSlicePersistentVolumeClaim(([]PersistentVolumeClaim)(x.Items), e) @@ -8513,15 +8777,15 @@ func (x *PersistentVolumeClaimList) CodecEncodeSelf(e *codec1978.Encoder) { if x.Items == nil { r.EncodeNil() } else { - yym519 := z.EncBinary() - _ = yym519 + yym531 := z.EncBinary() + _ = yym531 if false { } else { h.encSlicePersistentVolumeClaim(([]PersistentVolumeClaim)(x.Items), e) } } } - if yyr505 || yy2arr505 { + if yyr517 || yy2arr517 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -8534,25 +8798,25 @@ func (x *PersistentVolumeClaimList) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym520 := z.DecBinary() - _ = yym520 + yym532 := z.DecBinary() + _ = yym532 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct521 := r.ContainerType() - if yyct521 == codecSelferValueTypeMap1234 { - yyl521 := r.ReadMapStart() - if yyl521 == 0 { + yyct533 := r.ContainerType() + if yyct533 == codecSelferValueTypeMap1234 { + yyl533 := r.ReadMapStart() + if yyl533 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl521, d) + x.codecDecodeSelfFromMap(yyl533, d) } - } else if yyct521 == codecSelferValueTypeArray1234 { - yyl521 := r.ReadArrayStart() - if yyl521 == 0 { + } else if yyct533 == codecSelferValueTypeArray1234 { + yyl533 := r.ReadArrayStart() + if yyl533 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl521, d) + x.codecDecodeSelfFromArray(yyl533, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -8564,12 +8828,12 @@ func (x *PersistentVolumeClaimList) codecDecodeSelfFromMap(l int, d *codec1978.D var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys522Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys522Slc - var yyhl522 bool = l >= 0 - for yyj522 := 0; ; yyj522++ { - if yyhl522 { - if yyj522 >= l { + var yys534Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys534Slc + var yyhl534 bool = l >= 0 + for yyj534 := 0; ; yyj534++ { + if yyhl534 { + if yyj534 >= l { break } } else { @@ -8578,10 +8842,10 @@ func (x *PersistentVolumeClaimList) codecDecodeSelfFromMap(l int, d *codec1978.D } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys522Slc = r.DecodeBytes(yys522Slc, true, true) - yys522 := string(yys522Slc) + yys534Slc = r.DecodeBytes(yys534Slc, true, true) + yys534 := string(yys534Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys522 { + switch yys534 { case "kind": if r.TryDecodeAsNil() { x.Kind = "" @@ -8598,31 +8862,31 @@ func (x *PersistentVolumeClaimList) codecDecodeSelfFromMap(l int, d *codec1978.D if r.TryDecodeAsNil() { x.ListMeta = pkg2_unversioned.ListMeta{} } else { - yyv525 := &x.ListMeta - yym526 := z.DecBinary() - _ = yym526 + yyv537 := &x.ListMeta + yym538 := z.DecBinary() + _ = yym538 if false { - } else if z.HasExtensions() && z.DecExt(yyv525) { + } else if z.HasExtensions() && z.DecExt(yyv537) { } else { - z.DecFallback(yyv525, false) + z.DecFallback(yyv537, false) } } case "items": if r.TryDecodeAsNil() { x.Items = nil } else { - yyv527 := &x.Items - yym528 := z.DecBinary() - _ = yym528 + yyv539 := &x.Items + yym540 := z.DecBinary() + _ = yym540 if false { } else { - h.decSlicePersistentVolumeClaim((*[]PersistentVolumeClaim)(yyv527), d) + h.decSlicePersistentVolumeClaim((*[]PersistentVolumeClaim)(yyv539), d) } } default: - z.DecStructFieldNotFound(-1, yys522) - } // end switch yys522 - } // end for yyj522 + z.DecStructFieldNotFound(-1, yys534) + } // end switch yys534 + } // end for yyj534 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -8630,16 +8894,16 @@ func (x *PersistentVolumeClaimList) codecDecodeSelfFromArray(l int, d *codec1978 var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj529 int - var yyb529 bool - var yyhl529 bool = l >= 0 - yyj529++ - if yyhl529 { - yyb529 = yyj529 > l + var yyj541 int + var yyb541 bool + var yyhl541 bool = l >= 0 + yyj541++ + if yyhl541 { + yyb541 = yyj541 > l } else { - yyb529 = r.CheckBreak() + yyb541 = r.CheckBreak() } - if yyb529 { + if yyb541 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -8649,13 +8913,13 @@ func (x *PersistentVolumeClaimList) codecDecodeSelfFromArray(l int, d *codec1978 } else { x.Kind = string(r.DecodeString()) } - yyj529++ - if yyhl529 { - yyb529 = yyj529 > l + yyj541++ + if yyhl541 { + yyb541 = yyj541 > l } else { - yyb529 = r.CheckBreak() + yyb541 = r.CheckBreak() } - if yyb529 { + if yyb541 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -8665,13 +8929,13 @@ func (x *PersistentVolumeClaimList) codecDecodeSelfFromArray(l int, d *codec1978 } else { x.APIVersion = string(r.DecodeString()) } - yyj529++ - if yyhl529 { - yyb529 = yyj529 > l + yyj541++ + if yyhl541 { + yyb541 = yyj541 > l } else { - yyb529 = r.CheckBreak() + yyb541 = r.CheckBreak() } - if yyb529 { + if yyb541 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -8679,22 +8943,22 @@ func (x *PersistentVolumeClaimList) codecDecodeSelfFromArray(l int, d *codec1978 if r.TryDecodeAsNil() { x.ListMeta = pkg2_unversioned.ListMeta{} } else { - yyv532 := &x.ListMeta - yym533 := z.DecBinary() - _ = yym533 + yyv544 := &x.ListMeta + yym545 := z.DecBinary() + _ = yym545 if false { - } else if z.HasExtensions() && z.DecExt(yyv532) { + } else if z.HasExtensions() && z.DecExt(yyv544) { } else { - z.DecFallback(yyv532, false) + z.DecFallback(yyv544, false) } } - yyj529++ - if yyhl529 { - yyb529 = yyj529 > l + yyj541++ + if yyhl541 { + yyb541 = yyj541 > l } else { - yyb529 = r.CheckBreak() + yyb541 = r.CheckBreak() } - if yyb529 { + if yyb541 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -8702,26 +8966,26 @@ func (x *PersistentVolumeClaimList) codecDecodeSelfFromArray(l int, d *codec1978 if r.TryDecodeAsNil() { x.Items = nil } else { - yyv534 := &x.Items - yym535 := z.DecBinary() - _ = yym535 + yyv546 := &x.Items + yym547 := z.DecBinary() + _ = yym547 if false { } else { - h.decSlicePersistentVolumeClaim((*[]PersistentVolumeClaim)(yyv534), d) + h.decSlicePersistentVolumeClaim((*[]PersistentVolumeClaim)(yyv546), d) } } for { - yyj529++ - if yyhl529 { - yyb529 = yyj529 > l + yyj541++ + if yyhl541 { + yyb541 = yyj541 > l } else { - yyb529 = r.CheckBreak() + yyb541 = r.CheckBreak() } - if yyb529 { + if yyb541 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj529-1, "") + z.DecStructFieldNotFound(yyj541-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -8733,41 +8997,41 @@ func (x *PersistentVolumeClaimSpec) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym536 := z.EncBinary() - _ = yym536 + yym548 := z.EncBinary() + _ = yym548 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - 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 { + yysep549 := !z.EncBinary() + yy2arr549 := z.EncBasicHandle().StructToArray + var yyq549 [4]bool + _, _, _ = yysep549, yyq549, yy2arr549 + const yyr549 bool = false + yyq549[0] = len(x.AccessModes) != 0 + yyq549[1] = x.Selector != nil + yyq549[2] = true + yyq549[3] = x.VolumeName != "" + var yynn549 int + if yyr549 || yy2arr549 { r.EncodeArrayStart(4) } else { - yynn537 = 0 - for _, b := range yyq537 { + yynn549 = 0 + for _, b := range yyq549 { if b { - yynn537++ + yynn549++ } } - r.EncodeMapStart(yynn537) - yynn537 = 0 + r.EncodeMapStart(yynn549) + yynn549 = 0 } - if yyr537 || yy2arr537 { + if yyr549 || yy2arr549 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq537[0] { + if yyq549[0] { if x.AccessModes == nil { r.EncodeNil() } else { - yym539 := z.EncBinary() - _ = yym539 + yym551 := z.EncBinary() + _ = yym551 if false { } else { h.encSlicePersistentVolumeAccessMode(([]PersistentVolumeAccessMode)(x.AccessModes), e) @@ -8777,15 +9041,15 @@ func (x *PersistentVolumeClaimSpec) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq537[0] { + if yyq549[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("accessModes")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.AccessModes == nil { r.EncodeNil() } else { - yym540 := z.EncBinary() - _ = yym540 + yym552 := z.EncBinary() + _ = yym552 if false { } else { h.encSlicePersistentVolumeAccessMode(([]PersistentVolumeAccessMode)(x.AccessModes), e) @@ -8793,14 +9057,14 @@ func (x *PersistentVolumeClaimSpec) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr537 || yy2arr537 { + if yyr549 || yy2arr549 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq537[1] { + if yyq549[1] { if x.Selector == nil { r.EncodeNil() } else { - yym542 := z.EncBinary() - _ = yym542 + yym554 := z.EncBinary() + _ = yym554 if false { } else if z.HasExtensions() && z.EncExt(x.Selector) { } else { @@ -8811,15 +9075,15 @@ func (x *PersistentVolumeClaimSpec) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq537[1] { + if yyq549[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("selector")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.Selector == nil { r.EncodeNil() } else { - yym543 := z.EncBinary() - _ = yym543 + yym555 := z.EncBinary() + _ = yym555 if false { } else if z.HasExtensions() && z.EncExt(x.Selector) { } else { @@ -8828,28 +9092,28 @@ func (x *PersistentVolumeClaimSpec) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr537 || yy2arr537 { + if yyr549 || yy2arr549 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq537[2] { - yy545 := &x.Resources - yy545.CodecEncodeSelf(e) + if yyq549[2] { + yy557 := &x.Resources + yy557.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { - if yyq537[2] { + if yyq549[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("resources")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy546 := &x.Resources - yy546.CodecEncodeSelf(e) + yy558 := &x.Resources + yy558.CodecEncodeSelf(e) } } - if yyr537 || yy2arr537 { + if yyr549 || yy2arr549 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq537[3] { - yym548 := z.EncBinary() - _ = yym548 + if yyq549[3] { + yym560 := z.EncBinary() + _ = yym560 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.VolumeName)) @@ -8858,19 +9122,19 @@ func (x *PersistentVolumeClaimSpec) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq537[3] { + if yyq549[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("volumeName")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym549 := z.EncBinary() - _ = yym549 + yym561 := z.EncBinary() + _ = yym561 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.VolumeName)) } } } - if yyr537 || yy2arr537 { + if yyr549 || yy2arr549 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -8883,25 +9147,25 @@ func (x *PersistentVolumeClaimSpec) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym550 := z.DecBinary() - _ = yym550 + yym562 := z.DecBinary() + _ = yym562 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct551 := r.ContainerType() - if yyct551 == codecSelferValueTypeMap1234 { - yyl551 := r.ReadMapStart() - if yyl551 == 0 { + yyct563 := r.ContainerType() + if yyct563 == codecSelferValueTypeMap1234 { + yyl563 := r.ReadMapStart() + if yyl563 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl551, d) + x.codecDecodeSelfFromMap(yyl563, d) } - } else if yyct551 == codecSelferValueTypeArray1234 { - yyl551 := r.ReadArrayStart() - if yyl551 == 0 { + } else if yyct563 == codecSelferValueTypeArray1234 { + yyl563 := r.ReadArrayStart() + if yyl563 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl551, d) + x.codecDecodeSelfFromArray(yyl563, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -8913,12 +9177,12 @@ func (x *PersistentVolumeClaimSpec) codecDecodeSelfFromMap(l int, d *codec1978.D var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys552Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys552Slc - var yyhl552 bool = l >= 0 - for yyj552 := 0; ; yyj552++ { - if yyhl552 { - if yyj552 >= l { + var yys564Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys564Slc + var yyhl564 bool = l >= 0 + for yyj564 := 0; ; yyj564++ { + if yyhl564 { + if yyj564 >= l { break } } else { @@ -8927,20 +9191,20 @@ func (x *PersistentVolumeClaimSpec) codecDecodeSelfFromMap(l int, d *codec1978.D } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys552Slc = r.DecodeBytes(yys552Slc, true, true) - yys552 := string(yys552Slc) + yys564Slc = r.DecodeBytes(yys564Slc, true, true) + yys564 := string(yys564Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys552 { + switch yys564 { case "accessModes": if r.TryDecodeAsNil() { x.AccessModes = nil } else { - yyv553 := &x.AccessModes - yym554 := z.DecBinary() - _ = yym554 + yyv565 := &x.AccessModes + yym566 := z.DecBinary() + _ = yym566 if false { } else { - h.decSlicePersistentVolumeAccessMode((*[]PersistentVolumeAccessMode)(yyv553), d) + h.decSlicePersistentVolumeAccessMode((*[]PersistentVolumeAccessMode)(yyv565), d) } } case "selector": @@ -8952,8 +9216,8 @@ func (x *PersistentVolumeClaimSpec) codecDecodeSelfFromMap(l int, d *codec1978.D if x.Selector == nil { x.Selector = new(pkg2_unversioned.LabelSelector) } - yym556 := z.DecBinary() - _ = yym556 + yym568 := z.DecBinary() + _ = yym568 if false { } else if z.HasExtensions() && z.DecExt(x.Selector) { } else { @@ -8964,8 +9228,8 @@ func (x *PersistentVolumeClaimSpec) codecDecodeSelfFromMap(l int, d *codec1978.D if r.TryDecodeAsNil() { x.Resources = ResourceRequirements{} } else { - yyv557 := &x.Resources - yyv557.CodecDecodeSelf(d) + yyv569 := &x.Resources + yyv569.CodecDecodeSelf(d) } case "volumeName": if r.TryDecodeAsNil() { @@ -8974,9 +9238,9 @@ func (x *PersistentVolumeClaimSpec) codecDecodeSelfFromMap(l int, d *codec1978.D x.VolumeName = string(r.DecodeString()) } default: - z.DecStructFieldNotFound(-1, yys552) - } // end switch yys552 - } // end for yyj552 + z.DecStructFieldNotFound(-1, yys564) + } // end switch yys564 + } // end for yyj564 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -8984,16 +9248,16 @@ func (x *PersistentVolumeClaimSpec) codecDecodeSelfFromArray(l int, d *codec1978 var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj559 int - var yyb559 bool - var yyhl559 bool = l >= 0 - yyj559++ - if yyhl559 { - yyb559 = yyj559 > l + var yyj571 int + var yyb571 bool + var yyhl571 bool = l >= 0 + yyj571++ + if yyhl571 { + yyb571 = yyj571 > l } else { - yyb559 = r.CheckBreak() + yyb571 = r.CheckBreak() } - if yyb559 { + if yyb571 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -9001,21 +9265,21 @@ func (x *PersistentVolumeClaimSpec) codecDecodeSelfFromArray(l int, d *codec1978 if r.TryDecodeAsNil() { x.AccessModes = nil } else { - yyv560 := &x.AccessModes - yym561 := z.DecBinary() - _ = yym561 + yyv572 := &x.AccessModes + yym573 := z.DecBinary() + _ = yym573 if false { } else { - h.decSlicePersistentVolumeAccessMode((*[]PersistentVolumeAccessMode)(yyv560), d) + h.decSlicePersistentVolumeAccessMode((*[]PersistentVolumeAccessMode)(yyv572), d) } } - yyj559++ - if yyhl559 { - yyb559 = yyj559 > l + yyj571++ + if yyhl571 { + yyb571 = yyj571 > l } else { - yyb559 = r.CheckBreak() + yyb571 = r.CheckBreak() } - if yyb559 { + if yyb571 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -9028,21 +9292,21 @@ func (x *PersistentVolumeClaimSpec) codecDecodeSelfFromArray(l int, d *codec1978 if x.Selector == nil { x.Selector = new(pkg2_unversioned.LabelSelector) } - yym563 := z.DecBinary() - _ = yym563 + yym575 := z.DecBinary() + _ = yym575 if false { } else if z.HasExtensions() && z.DecExt(x.Selector) { } else { z.DecFallback(x.Selector, false) } } - yyj559++ - if yyhl559 { - yyb559 = yyj559 > l + yyj571++ + if yyhl571 { + yyb571 = yyj571 > l } else { - yyb559 = r.CheckBreak() + yyb571 = r.CheckBreak() } - if yyb559 { + if yyb571 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -9050,16 +9314,16 @@ func (x *PersistentVolumeClaimSpec) codecDecodeSelfFromArray(l int, d *codec1978 if r.TryDecodeAsNil() { x.Resources = ResourceRequirements{} } else { - yyv564 := &x.Resources - yyv564.CodecDecodeSelf(d) + yyv576 := &x.Resources + yyv576.CodecDecodeSelf(d) } - yyj559++ - if yyhl559 { - yyb559 = yyj559 > l + yyj571++ + if yyhl571 { + yyb571 = yyj571 > l } else { - yyb559 = r.CheckBreak() + yyb571 = r.CheckBreak() } - if yyb559 { + if yyb571 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -9070,17 +9334,17 @@ func (x *PersistentVolumeClaimSpec) codecDecodeSelfFromArray(l int, d *codec1978 x.VolumeName = string(r.DecodeString()) } for { - yyj559++ - if yyhl559 { - yyb559 = yyj559 > l + yyj571++ + if yyhl571 { + yyb571 = yyj571 > l } else { - yyb559 = r.CheckBreak() + yyb571 = r.CheckBreak() } - if yyb559 { + if yyb571 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj559-1, "") + z.DecStructFieldNotFound(yyj571-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -9092,55 +9356,55 @@ func (x *PersistentVolumeClaimStatus) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym566 := z.EncBinary() - _ = yym566 + yym578 := z.EncBinary() + _ = yym578 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - 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 { + yysep579 := !z.EncBinary() + yy2arr579 := z.EncBasicHandle().StructToArray + var yyq579 [3]bool + _, _, _ = yysep579, yyq579, yy2arr579 + const yyr579 bool = false + yyq579[0] = x.Phase != "" + yyq579[1] = len(x.AccessModes) != 0 + yyq579[2] = len(x.Capacity) != 0 + var yynn579 int + if yyr579 || yy2arr579 { r.EncodeArrayStart(3) } else { - yynn567 = 0 - for _, b := range yyq567 { + yynn579 = 0 + for _, b := range yyq579 { if b { - yynn567++ + yynn579++ } } - r.EncodeMapStart(yynn567) - yynn567 = 0 + r.EncodeMapStart(yynn579) + yynn579 = 0 } - if yyr567 || yy2arr567 { + if yyr579 || yy2arr579 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq567[0] { + if yyq579[0] { x.Phase.CodecEncodeSelf(e) } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq567[0] { + if yyq579[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("phase")) z.EncSendContainerState(codecSelfer_containerMapValue1234) x.Phase.CodecEncodeSelf(e) } } - if yyr567 || yy2arr567 { + if yyr579 || yy2arr579 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq567[1] { + if yyq579[1] { if x.AccessModes == nil { r.EncodeNil() } else { - yym570 := z.EncBinary() - _ = yym570 + yym582 := z.EncBinary() + _ = yym582 if false { } else { h.encSlicePersistentVolumeAccessMode(([]PersistentVolumeAccessMode)(x.AccessModes), e) @@ -9150,15 +9414,15 @@ func (x *PersistentVolumeClaimStatus) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq567[1] { + if yyq579[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("accessModes")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.AccessModes == nil { r.EncodeNil() } else { - yym571 := z.EncBinary() - _ = yym571 + yym583 := z.EncBinary() + _ = yym583 if false { } else { h.encSlicePersistentVolumeAccessMode(([]PersistentVolumeAccessMode)(x.AccessModes), e) @@ -9166,9 +9430,9 @@ func (x *PersistentVolumeClaimStatus) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr567 || yy2arr567 { + if yyr579 || yy2arr579 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq567[2] { + if yyq579[2] { if x.Capacity == nil { r.EncodeNil() } else { @@ -9178,7 +9442,7 @@ func (x *PersistentVolumeClaimStatus) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq567[2] { + if yyq579[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("capacity")) z.EncSendContainerState(codecSelfer_containerMapValue1234) @@ -9189,7 +9453,7 @@ func (x *PersistentVolumeClaimStatus) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr567 || yy2arr567 { + if yyr579 || yy2arr579 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -9202,25 +9466,25 @@ func (x *PersistentVolumeClaimStatus) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym573 := z.DecBinary() - _ = yym573 + yym585 := z.DecBinary() + _ = yym585 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct574 := r.ContainerType() - if yyct574 == codecSelferValueTypeMap1234 { - yyl574 := r.ReadMapStart() - if yyl574 == 0 { + yyct586 := r.ContainerType() + if yyct586 == codecSelferValueTypeMap1234 { + yyl586 := r.ReadMapStart() + if yyl586 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl574, d) + x.codecDecodeSelfFromMap(yyl586, d) } - } else if yyct574 == codecSelferValueTypeArray1234 { - yyl574 := r.ReadArrayStart() - if yyl574 == 0 { + } else if yyct586 == codecSelferValueTypeArray1234 { + yyl586 := r.ReadArrayStart() + if yyl586 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl574, d) + x.codecDecodeSelfFromArray(yyl586, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -9232,12 +9496,12 @@ func (x *PersistentVolumeClaimStatus) codecDecodeSelfFromMap(l int, d *codec1978 var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys575Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys575Slc - var yyhl575 bool = l >= 0 - for yyj575 := 0; ; yyj575++ { - if yyhl575 { - if yyj575 >= l { + var yys587Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys587Slc + var yyhl587 bool = l >= 0 + for yyj587 := 0; ; yyj587++ { + if yyhl587 { + if yyj587 >= l { break } } else { @@ -9246,10 +9510,10 @@ func (x *PersistentVolumeClaimStatus) codecDecodeSelfFromMap(l int, d *codec1978 } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys575Slc = r.DecodeBytes(yys575Slc, true, true) - yys575 := string(yys575Slc) + yys587Slc = r.DecodeBytes(yys587Slc, true, true) + yys587 := string(yys587Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys575 { + switch yys587 { case "phase": if r.TryDecodeAsNil() { x.Phase = "" @@ -9260,25 +9524,25 @@ func (x *PersistentVolumeClaimStatus) codecDecodeSelfFromMap(l int, d *codec1978 if r.TryDecodeAsNil() { x.AccessModes = nil } else { - yyv577 := &x.AccessModes - yym578 := z.DecBinary() - _ = yym578 + yyv589 := &x.AccessModes + yym590 := z.DecBinary() + _ = yym590 if false { } else { - h.decSlicePersistentVolumeAccessMode((*[]PersistentVolumeAccessMode)(yyv577), d) + h.decSlicePersistentVolumeAccessMode((*[]PersistentVolumeAccessMode)(yyv589), d) } } case "capacity": if r.TryDecodeAsNil() { x.Capacity = nil } else { - yyv579 := &x.Capacity - yyv579.CodecDecodeSelf(d) + yyv591 := &x.Capacity + yyv591.CodecDecodeSelf(d) } default: - z.DecStructFieldNotFound(-1, yys575) - } // end switch yys575 - } // end for yyj575 + z.DecStructFieldNotFound(-1, yys587) + } // end switch yys587 + } // end for yyj587 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -9286,16 +9550,16 @@ func (x *PersistentVolumeClaimStatus) codecDecodeSelfFromArray(l int, d *codec19 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 + var yyj592 int + var yyb592 bool + var yyhl592 bool = l >= 0 + yyj592++ + if yyhl592 { + yyb592 = yyj592 > l } else { - yyb580 = r.CheckBreak() + yyb592 = r.CheckBreak() } - if yyb580 { + if yyb592 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -9305,13 +9569,13 @@ func (x *PersistentVolumeClaimStatus) codecDecodeSelfFromArray(l int, d *codec19 } else { x.Phase = PersistentVolumeClaimPhase(r.DecodeString()) } - yyj580++ - if yyhl580 { - yyb580 = yyj580 > l + yyj592++ + if yyhl592 { + yyb592 = yyj592 > l } else { - yyb580 = r.CheckBreak() + yyb592 = r.CheckBreak() } - if yyb580 { + if yyb592 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -9319,21 +9583,21 @@ func (x *PersistentVolumeClaimStatus) codecDecodeSelfFromArray(l int, d *codec19 if r.TryDecodeAsNil() { x.AccessModes = nil } else { - yyv582 := &x.AccessModes - yym583 := z.DecBinary() - _ = yym583 + yyv594 := &x.AccessModes + yym595 := z.DecBinary() + _ = yym595 if false { } else { - h.decSlicePersistentVolumeAccessMode((*[]PersistentVolumeAccessMode)(yyv582), d) + h.decSlicePersistentVolumeAccessMode((*[]PersistentVolumeAccessMode)(yyv594), d) } } - yyj580++ - if yyhl580 { - yyb580 = yyj580 > l + yyj592++ + if yyhl592 { + yyb592 = yyj592 > l } else { - yyb580 = r.CheckBreak() + yyb592 = r.CheckBreak() } - if yyb580 { + if yyb592 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -9341,21 +9605,21 @@ func (x *PersistentVolumeClaimStatus) codecDecodeSelfFromArray(l int, d *codec19 if r.TryDecodeAsNil() { x.Capacity = nil } else { - yyv584 := &x.Capacity - yyv584.CodecDecodeSelf(d) + yyv596 := &x.Capacity + yyv596.CodecDecodeSelf(d) } for { - yyj580++ - if yyhl580 { - yyb580 = yyj580 > l + yyj592++ + if yyhl592 { + yyb592 = yyj592 > l } else { - yyb580 = r.CheckBreak() + yyb592 = r.CheckBreak() } - if yyb580 { + if yyb592 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj580-1, "") + z.DecStructFieldNotFound(yyj592-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -9364,8 +9628,8 @@ func (x PersistentVolumeAccessMode) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r - yym585 := z.EncBinary() - _ = yym585 + yym597 := z.EncBinary() + _ = yym597 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { @@ -9377,8 +9641,8 @@ func (x *PersistentVolumeAccessMode) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym586 := z.DecBinary() - _ = yym586 + yym598 := z.DecBinary() + _ = yym598 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { @@ -9390,8 +9654,8 @@ func (x PersistentVolumePhase) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r - yym587 := z.EncBinary() - _ = yym587 + yym599 := z.EncBinary() + _ = yym599 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { @@ -9403,8 +9667,8 @@ func (x *PersistentVolumePhase) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym588 := z.DecBinary() - _ = yym588 + yym600 := z.DecBinary() + _ = yym600 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { @@ -9416,8 +9680,8 @@ func (x PersistentVolumeClaimPhase) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r - yym589 := z.EncBinary() - _ = yym589 + yym601 := z.EncBinary() + _ = yym601 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { @@ -9429,8 +9693,8 @@ func (x *PersistentVolumeClaimPhase) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym590 := z.DecBinary() - _ = yym590 + yym602 := z.DecBinary() + _ = yym602 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { @@ -9445,33 +9709,33 @@ func (x *HostPathVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym591 := z.EncBinary() - _ = yym591 + yym603 := z.EncBinary() + _ = yym603 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep592 := !z.EncBinary() - yy2arr592 := z.EncBasicHandle().StructToArray - var yyq592 [1]bool - _, _, _ = yysep592, yyq592, yy2arr592 - const yyr592 bool = false - var yynn592 int - if yyr592 || yy2arr592 { + yysep604 := !z.EncBinary() + yy2arr604 := z.EncBasicHandle().StructToArray + var yyq604 [1]bool + _, _, _ = yysep604, yyq604, yy2arr604 + const yyr604 bool = false + var yynn604 int + if yyr604 || yy2arr604 { r.EncodeArrayStart(1) } else { - yynn592 = 1 - for _, b := range yyq592 { + yynn604 = 1 + for _, b := range yyq604 { if b { - yynn592++ + yynn604++ } } - r.EncodeMapStart(yynn592) - yynn592 = 0 + r.EncodeMapStart(yynn604) + yynn604 = 0 } - if yyr592 || yy2arr592 { + if yyr604 || yy2arr604 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym594 := z.EncBinary() - _ = yym594 + yym606 := z.EncBinary() + _ = yym606 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Path)) @@ -9480,14 +9744,14 @@ func (x *HostPathVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("path")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym595 := z.EncBinary() - _ = yym595 + yym607 := z.EncBinary() + _ = yym607 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Path)) } } - if yyr592 || yy2arr592 { + if yyr604 || yy2arr604 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -9500,25 +9764,25 @@ func (x *HostPathVolumeSource) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym596 := z.DecBinary() - _ = yym596 + yym608 := z.DecBinary() + _ = yym608 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct597 := r.ContainerType() - if yyct597 == codecSelferValueTypeMap1234 { - yyl597 := r.ReadMapStart() - if yyl597 == 0 { + yyct609 := r.ContainerType() + if yyct609 == codecSelferValueTypeMap1234 { + yyl609 := r.ReadMapStart() + if yyl609 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl597, d) + x.codecDecodeSelfFromMap(yyl609, d) } - } else if yyct597 == codecSelferValueTypeArray1234 { - yyl597 := r.ReadArrayStart() - if yyl597 == 0 { + } else if yyct609 == codecSelferValueTypeArray1234 { + yyl609 := r.ReadArrayStart() + if yyl609 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl597, d) + x.codecDecodeSelfFromArray(yyl609, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -9530,12 +9794,12 @@ func (x *HostPathVolumeSource) codecDecodeSelfFromMap(l int, d *codec1978.Decode var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys598Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys598Slc - var yyhl598 bool = l >= 0 - for yyj598 := 0; ; yyj598++ { - if yyhl598 { - if yyj598 >= l { + var yys610Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys610Slc + var yyhl610 bool = l >= 0 + for yyj610 := 0; ; yyj610++ { + if yyhl610 { + if yyj610 >= l { break } } else { @@ -9544,10 +9808,10 @@ func (x *HostPathVolumeSource) codecDecodeSelfFromMap(l int, d *codec1978.Decode } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys598Slc = r.DecodeBytes(yys598Slc, true, true) - yys598 := string(yys598Slc) + yys610Slc = r.DecodeBytes(yys610Slc, true, true) + yys610 := string(yys610Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys598 { + switch yys610 { case "path": if r.TryDecodeAsNil() { x.Path = "" @@ -9555,9 +9819,9 @@ func (x *HostPathVolumeSource) codecDecodeSelfFromMap(l int, d *codec1978.Decode x.Path = string(r.DecodeString()) } default: - z.DecStructFieldNotFound(-1, yys598) - } // end switch yys598 - } // end for yyj598 + z.DecStructFieldNotFound(-1, yys610) + } // end switch yys610 + } // end for yyj610 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -9565,16 +9829,16 @@ func (x *HostPathVolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Deco 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 + var yyj612 int + var yyb612 bool + var yyhl612 bool = l >= 0 + yyj612++ + if yyhl612 { + yyb612 = yyj612 > l } else { - yyb600 = r.CheckBreak() + yyb612 = r.CheckBreak() } - if yyb600 { + if yyb612 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -9585,17 +9849,17 @@ func (x *HostPathVolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Deco x.Path = string(r.DecodeString()) } for { - yyj600++ - if yyhl600 { - yyb600 = yyj600 > l + yyj612++ + if yyhl612 { + yyb612 = yyj612 > l } else { - yyb600 = r.CheckBreak() + yyb612 = r.CheckBreak() } - if yyb600 { + if yyb612 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj600-1, "") + z.DecStructFieldNotFound(yyj612-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -9607,46 +9871,46 @@ func (x *EmptyDirVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym602 := z.EncBinary() - _ = yym602 + yym614 := z.EncBinary() + _ = yym614 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep603 := !z.EncBinary() - yy2arr603 := z.EncBasicHandle().StructToArray - var yyq603 [1]bool - _, _, _ = yysep603, yyq603, yy2arr603 - const yyr603 bool = false - yyq603[0] = x.Medium != "" - var yynn603 int - if yyr603 || yy2arr603 { + yysep615 := !z.EncBinary() + yy2arr615 := z.EncBasicHandle().StructToArray + var yyq615 [1]bool + _, _, _ = yysep615, yyq615, yy2arr615 + const yyr615 bool = false + yyq615[0] = x.Medium != "" + var yynn615 int + if yyr615 || yy2arr615 { r.EncodeArrayStart(1) } else { - yynn603 = 0 - for _, b := range yyq603 { + yynn615 = 0 + for _, b := range yyq615 { if b { - yynn603++ + yynn615++ } } - r.EncodeMapStart(yynn603) - yynn603 = 0 + r.EncodeMapStart(yynn615) + yynn615 = 0 } - if yyr603 || yy2arr603 { + if yyr615 || yy2arr615 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq603[0] { + if yyq615[0] { x.Medium.CodecEncodeSelf(e) } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq603[0] { + if yyq615[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("medium")) z.EncSendContainerState(codecSelfer_containerMapValue1234) x.Medium.CodecEncodeSelf(e) } } - if yyr603 || yy2arr603 { + if yyr615 || yy2arr615 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -9659,25 +9923,25 @@ func (x *EmptyDirVolumeSource) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym605 := z.DecBinary() - _ = yym605 + yym617 := z.DecBinary() + _ = yym617 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct606 := r.ContainerType() - if yyct606 == codecSelferValueTypeMap1234 { - yyl606 := r.ReadMapStart() - if yyl606 == 0 { + yyct618 := r.ContainerType() + if yyct618 == codecSelferValueTypeMap1234 { + yyl618 := r.ReadMapStart() + if yyl618 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl606, d) + x.codecDecodeSelfFromMap(yyl618, d) } - } else if yyct606 == codecSelferValueTypeArray1234 { - yyl606 := r.ReadArrayStart() - if yyl606 == 0 { + } else if yyct618 == codecSelferValueTypeArray1234 { + yyl618 := r.ReadArrayStart() + if yyl618 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl606, d) + x.codecDecodeSelfFromArray(yyl618, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -9689,12 +9953,12 @@ func (x *EmptyDirVolumeSource) codecDecodeSelfFromMap(l int, d *codec1978.Decode var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys607Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys607Slc - var yyhl607 bool = l >= 0 - for yyj607 := 0; ; yyj607++ { - if yyhl607 { - if yyj607 >= l { + var yys619Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys619Slc + var yyhl619 bool = l >= 0 + for yyj619 := 0; ; yyj619++ { + if yyhl619 { + if yyj619 >= l { break } } else { @@ -9703,10 +9967,10 @@ func (x *EmptyDirVolumeSource) codecDecodeSelfFromMap(l int, d *codec1978.Decode } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys607Slc = r.DecodeBytes(yys607Slc, true, true) - yys607 := string(yys607Slc) + yys619Slc = r.DecodeBytes(yys619Slc, true, true) + yys619 := string(yys619Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys607 { + switch yys619 { case "medium": if r.TryDecodeAsNil() { x.Medium = "" @@ -9714,9 +9978,9 @@ func (x *EmptyDirVolumeSource) codecDecodeSelfFromMap(l int, d *codec1978.Decode x.Medium = StorageMedium(r.DecodeString()) } default: - z.DecStructFieldNotFound(-1, yys607) - } // end switch yys607 - } // end for yyj607 + z.DecStructFieldNotFound(-1, yys619) + } // end switch yys619 + } // end for yyj619 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -9724,16 +9988,16 @@ func (x *EmptyDirVolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Deco var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj609 int - var yyb609 bool - var yyhl609 bool = l >= 0 - yyj609++ - if yyhl609 { - yyb609 = yyj609 > l + var yyj621 int + var yyb621 bool + var yyhl621 bool = l >= 0 + yyj621++ + if yyhl621 { + yyb621 = yyj621 > l } else { - yyb609 = r.CheckBreak() + yyb621 = r.CheckBreak() } - if yyb609 { + if yyb621 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -9744,17 +10008,17 @@ func (x *EmptyDirVolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Deco x.Medium = StorageMedium(r.DecodeString()) } for { - yyj609++ - if yyhl609 { - yyb609 = yyj609 > l + yyj621++ + if yyhl621 { + yyb621 = yyj621 > l } else { - yyb609 = r.CheckBreak() + yyb621 = r.CheckBreak() } - if yyb609 { + if yyb621 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj609-1, "") + z.DecStructFieldNotFound(yyj621-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -9766,34 +10030,34 @@ func (x *GlusterfsVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym611 := z.EncBinary() - _ = yym611 + yym623 := z.EncBinary() + _ = yym623 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep612 := !z.EncBinary() - yy2arr612 := z.EncBasicHandle().StructToArray - var yyq612 [3]bool - _, _, _ = yysep612, yyq612, yy2arr612 - const yyr612 bool = false - yyq612[2] = x.ReadOnly != false - var yynn612 int - if yyr612 || yy2arr612 { + yysep624 := !z.EncBinary() + yy2arr624 := z.EncBasicHandle().StructToArray + var yyq624 [3]bool + _, _, _ = yysep624, yyq624, yy2arr624 + const yyr624 bool = false + yyq624[2] = x.ReadOnly != false + var yynn624 int + if yyr624 || yy2arr624 { r.EncodeArrayStart(3) } else { - yynn612 = 2 - for _, b := range yyq612 { + yynn624 = 2 + for _, b := range yyq624 { if b { - yynn612++ + yynn624++ } } - r.EncodeMapStart(yynn612) - yynn612 = 0 + r.EncodeMapStart(yynn624) + yynn624 = 0 } - if yyr612 || yy2arr612 { + if yyr624 || yy2arr624 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym614 := z.EncBinary() - _ = yym614 + yym626 := z.EncBinary() + _ = yym626 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.EndpointsName)) @@ -9802,17 +10066,17 @@ func (x *GlusterfsVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("endpoints")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym615 := z.EncBinary() - _ = yym615 + yym627 := z.EncBinary() + _ = yym627 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.EndpointsName)) } } - if yyr612 || yy2arr612 { + if yyr624 || yy2arr624 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym617 := z.EncBinary() - _ = yym617 + yym629 := z.EncBinary() + _ = yym629 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Path)) @@ -9821,18 +10085,18 @@ func (x *GlusterfsVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("path")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym618 := z.EncBinary() - _ = yym618 + yym630 := z.EncBinary() + _ = yym630 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Path)) } } - if yyr612 || yy2arr612 { + if yyr624 || yy2arr624 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq612[2] { - yym620 := z.EncBinary() - _ = yym620 + if yyq624[2] { + yym632 := z.EncBinary() + _ = yym632 if false { } else { r.EncodeBool(bool(x.ReadOnly)) @@ -9841,19 +10105,19 @@ func (x *GlusterfsVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeBool(false) } } else { - if yyq612[2] { + if yyq624[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("readOnly")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym621 := z.EncBinary() - _ = yym621 + yym633 := z.EncBinary() + _ = yym633 if false { } else { r.EncodeBool(bool(x.ReadOnly)) } } } - if yyr612 || yy2arr612 { + if yyr624 || yy2arr624 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -9866,25 +10130,25 @@ func (x *GlusterfsVolumeSource) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym622 := z.DecBinary() - _ = yym622 + yym634 := z.DecBinary() + _ = yym634 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct623 := r.ContainerType() - if yyct623 == codecSelferValueTypeMap1234 { - yyl623 := r.ReadMapStart() - if yyl623 == 0 { + yyct635 := r.ContainerType() + if yyct635 == codecSelferValueTypeMap1234 { + yyl635 := r.ReadMapStart() + if yyl635 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl623, d) + x.codecDecodeSelfFromMap(yyl635, d) } - } else if yyct623 == codecSelferValueTypeArray1234 { - yyl623 := r.ReadArrayStart() - if yyl623 == 0 { + } else if yyct635 == codecSelferValueTypeArray1234 { + yyl635 := r.ReadArrayStart() + if yyl635 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl623, d) + x.codecDecodeSelfFromArray(yyl635, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -9896,12 +10160,12 @@ func (x *GlusterfsVolumeSource) codecDecodeSelfFromMap(l int, d *codec1978.Decod var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys624Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys624Slc - var yyhl624 bool = l >= 0 - for yyj624 := 0; ; yyj624++ { - if yyhl624 { - if yyj624 >= l { + var yys636Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys636Slc + var yyhl636 bool = l >= 0 + for yyj636 := 0; ; yyj636++ { + if yyhl636 { + if yyj636 >= l { break } } else { @@ -9910,10 +10174,10 @@ func (x *GlusterfsVolumeSource) codecDecodeSelfFromMap(l int, d *codec1978.Decod } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys624Slc = r.DecodeBytes(yys624Slc, true, true) - yys624 := string(yys624Slc) + yys636Slc = r.DecodeBytes(yys636Slc, true, true) + yys636 := string(yys636Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys624 { + switch yys636 { case "endpoints": if r.TryDecodeAsNil() { x.EndpointsName = "" @@ -9933,9 +10197,9 @@ func (x *GlusterfsVolumeSource) codecDecodeSelfFromMap(l int, d *codec1978.Decod x.ReadOnly = bool(r.DecodeBool()) } default: - z.DecStructFieldNotFound(-1, yys624) - } // end switch yys624 - } // end for yyj624 + z.DecStructFieldNotFound(-1, yys636) + } // end switch yys636 + } // end for yyj636 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -9943,16 +10207,16 @@ func (x *GlusterfsVolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Dec var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj628 int - var yyb628 bool - var yyhl628 bool = l >= 0 - yyj628++ - if yyhl628 { - yyb628 = yyj628 > l + var yyj640 int + var yyb640 bool + var yyhl640 bool = l >= 0 + yyj640++ + if yyhl640 { + yyb640 = yyj640 > l } else { - yyb628 = r.CheckBreak() + yyb640 = r.CheckBreak() } - if yyb628 { + if yyb640 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -9962,13 +10226,13 @@ func (x *GlusterfsVolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Dec } else { x.EndpointsName = string(r.DecodeString()) } - yyj628++ - if yyhl628 { - yyb628 = yyj628 > l + yyj640++ + if yyhl640 { + yyb640 = yyj640 > l } else { - yyb628 = r.CheckBreak() + yyb640 = r.CheckBreak() } - if yyb628 { + if yyb640 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -9978,13 +10242,13 @@ func (x *GlusterfsVolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Dec } else { x.Path = string(r.DecodeString()) } - yyj628++ - if yyhl628 { - yyb628 = yyj628 > l + yyj640++ + if yyhl640 { + yyb640 = yyj640 > l } else { - yyb628 = r.CheckBreak() + yyb640 = r.CheckBreak() } - if yyb628 { + if yyb640 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -9995,17 +10259,17 @@ func (x *GlusterfsVolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Dec x.ReadOnly = bool(r.DecodeBool()) } for { - yyj628++ - if yyhl628 { - yyb628 = yyj628 > l + yyj640++ + if yyhl640 { + yyb640 = yyj640 > l } else { - yyb628 = r.CheckBreak() + yyb640 = r.CheckBreak() } - if yyb628 { + if yyb640 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj628-1, "") + z.DecStructFieldNotFound(yyj640-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -10017,42 +10281,42 @@ func (x *RBDVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym632 := z.EncBinary() - _ = yym632 + yym644 := z.EncBinary() + _ = yym644 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - 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 { + yysep645 := !z.EncBinary() + yy2arr645 := z.EncBasicHandle().StructToArray + var yyq645 [8]bool + _, _, _ = yysep645, yyq645, yy2arr645 + const yyr645 bool = false + yyq645[2] = x.FSType != "" + yyq645[3] = x.RBDPool != "" + yyq645[4] = x.RadosUser != "" + yyq645[5] = x.Keyring != "" + yyq645[6] = x.SecretRef != nil + yyq645[7] = x.ReadOnly != false + var yynn645 int + if yyr645 || yy2arr645 { r.EncodeArrayStart(8) } else { - yynn633 = 2 - for _, b := range yyq633 { + yynn645 = 2 + for _, b := range yyq645 { if b { - yynn633++ + yynn645++ } } - r.EncodeMapStart(yynn633) - yynn633 = 0 + r.EncodeMapStart(yynn645) + yynn645 = 0 } - if yyr633 || yy2arr633 { + if yyr645 || yy2arr645 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.CephMonitors == nil { r.EncodeNil() } else { - yym635 := z.EncBinary() - _ = yym635 + yym647 := z.EncBinary() + _ = yym647 if false { } else { z.F.EncSliceStringV(x.CephMonitors, false, e) @@ -10065,18 +10329,18 @@ func (x *RBDVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { if x.CephMonitors == nil { r.EncodeNil() } else { - yym636 := z.EncBinary() - _ = yym636 + yym648 := z.EncBinary() + _ = yym648 if false { } else { z.F.EncSliceStringV(x.CephMonitors, false, e) } } } - if yyr633 || yy2arr633 { + if yyr645 || yy2arr645 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym638 := z.EncBinary() - _ = yym638 + yym650 := z.EncBinary() + _ = yym650 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.RBDImage)) @@ -10085,18 +10349,18 @@ func (x *RBDVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("image")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym639 := z.EncBinary() - _ = yym639 + yym651 := z.EncBinary() + _ = yym651 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.RBDImage)) } } - if yyr633 || yy2arr633 { + if yyr645 || yy2arr645 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq633[2] { - yym641 := z.EncBinary() - _ = yym641 + if yyq645[2] { + yym653 := z.EncBinary() + _ = yym653 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.FSType)) @@ -10105,23 +10369,23 @@ func (x *RBDVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq633[2] { + if yyq645[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("fsType")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym642 := z.EncBinary() - _ = yym642 + yym654 := z.EncBinary() + _ = yym654 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.FSType)) } } } - if yyr633 || yy2arr633 { + if yyr645 || yy2arr645 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq633[3] { - yym644 := z.EncBinary() - _ = yym644 + if yyq645[3] { + yym656 := z.EncBinary() + _ = yym656 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.RBDPool)) @@ -10130,23 +10394,23 @@ func (x *RBDVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq633[3] { + if yyq645[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("pool")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym645 := z.EncBinary() - _ = yym645 + yym657 := z.EncBinary() + _ = yym657 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.RBDPool)) } } } - if yyr633 || yy2arr633 { + if yyr645 || yy2arr645 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq633[4] { - yym647 := z.EncBinary() - _ = yym647 + if yyq645[4] { + yym659 := z.EncBinary() + _ = yym659 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.RadosUser)) @@ -10155,23 +10419,23 @@ func (x *RBDVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq633[4] { + if yyq645[4] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("user")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym648 := z.EncBinary() - _ = yym648 + yym660 := z.EncBinary() + _ = yym660 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.RadosUser)) } } } - if yyr633 || yy2arr633 { + if yyr645 || yy2arr645 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq633[5] { - yym650 := z.EncBinary() - _ = yym650 + if yyq645[5] { + yym662 := z.EncBinary() + _ = yym662 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Keyring)) @@ -10180,21 +10444,21 @@ func (x *RBDVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq633[5] { + if yyq645[5] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("keyring")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym651 := z.EncBinary() - _ = yym651 + yym663 := z.EncBinary() + _ = yym663 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Keyring)) } } } - if yyr633 || yy2arr633 { + if yyr645 || yy2arr645 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq633[6] { + if yyq645[6] { if x.SecretRef == nil { r.EncodeNil() } else { @@ -10204,7 +10468,7 @@ func (x *RBDVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq633[6] { + if yyq645[6] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("secretRef")) z.EncSendContainerState(codecSelfer_containerMapValue1234) @@ -10215,11 +10479,11 @@ func (x *RBDVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr633 || yy2arr633 { + if yyr645 || yy2arr645 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq633[7] { - yym654 := z.EncBinary() - _ = yym654 + if yyq645[7] { + yym666 := z.EncBinary() + _ = yym666 if false { } else { r.EncodeBool(bool(x.ReadOnly)) @@ -10228,19 +10492,19 @@ func (x *RBDVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeBool(false) } } else { - if yyq633[7] { + if yyq645[7] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("readOnly")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym655 := z.EncBinary() - _ = yym655 + yym667 := z.EncBinary() + _ = yym667 if false { } else { r.EncodeBool(bool(x.ReadOnly)) } } } - if yyr633 || yy2arr633 { + if yyr645 || yy2arr645 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -10253,25 +10517,25 @@ func (x *RBDVolumeSource) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym656 := z.DecBinary() - _ = yym656 + yym668 := z.DecBinary() + _ = yym668 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct657 := r.ContainerType() - if yyct657 == codecSelferValueTypeMap1234 { - yyl657 := r.ReadMapStart() - if yyl657 == 0 { + yyct669 := r.ContainerType() + if yyct669 == codecSelferValueTypeMap1234 { + yyl669 := r.ReadMapStart() + if yyl669 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl657, d) + x.codecDecodeSelfFromMap(yyl669, d) } - } else if yyct657 == codecSelferValueTypeArray1234 { - yyl657 := r.ReadArrayStart() - if yyl657 == 0 { + } else if yyct669 == codecSelferValueTypeArray1234 { + yyl669 := r.ReadArrayStart() + if yyl669 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl657, d) + x.codecDecodeSelfFromArray(yyl669, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -10283,12 +10547,12 @@ func (x *RBDVolumeSource) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys658Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys658Slc - var yyhl658 bool = l >= 0 - for yyj658 := 0; ; yyj658++ { - if yyhl658 { - if yyj658 >= 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 { @@ -10297,20 +10561,20 @@ func (x *RBDVolumeSource) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys658Slc = r.DecodeBytes(yys658Slc, true, true) - yys658 := string(yys658Slc) + yys670Slc = r.DecodeBytes(yys670Slc, true, true) + yys670 := string(yys670Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys658 { + switch yys670 { case "monitors": if r.TryDecodeAsNil() { x.CephMonitors = nil } else { - yyv659 := &x.CephMonitors - yym660 := z.DecBinary() - _ = yym660 + yyv671 := &x.CephMonitors + yym672 := z.DecBinary() + _ = yym672 if false { } else { - z.F.DecSliceStringX(yyv659, false, d) + z.F.DecSliceStringX(yyv671, false, d) } } case "image": @@ -10361,9 +10625,9 @@ func (x *RBDVolumeSource) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { x.ReadOnly = bool(r.DecodeBool()) } default: - z.DecStructFieldNotFound(-1, yys658) - } // end switch yys658 - } // end for yyj658 + z.DecStructFieldNotFound(-1, yys670) + } // end switch yys670 + } // end for yyj670 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -10371,16 +10635,16 @@ func (x *RBDVolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj668 int - var yyb668 bool - var yyhl668 bool = l >= 0 - yyj668++ - if yyhl668 { - yyb668 = yyj668 > l + var yyj680 int + var yyb680 bool + var yyhl680 bool = l >= 0 + yyj680++ + if yyhl680 { + yyb680 = yyj680 > l } else { - yyb668 = r.CheckBreak() + yyb680 = r.CheckBreak() } - if yyb668 { + if yyb680 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -10388,21 +10652,21 @@ func (x *RBDVolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) if r.TryDecodeAsNil() { x.CephMonitors = nil } else { - yyv669 := &x.CephMonitors - yym670 := z.DecBinary() - _ = yym670 + yyv681 := &x.CephMonitors + yym682 := z.DecBinary() + _ = yym682 if false { } else { - z.F.DecSliceStringX(yyv669, false, d) + z.F.DecSliceStringX(yyv681, false, d) } } - yyj668++ - if yyhl668 { - yyb668 = yyj668 > l + yyj680++ + if yyhl680 { + yyb680 = yyj680 > l } else { - yyb668 = r.CheckBreak() + yyb680 = r.CheckBreak() } - if yyb668 { + if yyb680 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -10412,13 +10676,13 @@ func (x *RBDVolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) } else { x.RBDImage = string(r.DecodeString()) } - yyj668++ - if yyhl668 { - yyb668 = yyj668 > l + yyj680++ + if yyhl680 { + yyb680 = yyj680 > l } else { - yyb668 = r.CheckBreak() + yyb680 = r.CheckBreak() } - if yyb668 { + if yyb680 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -10428,13 +10692,13 @@ func (x *RBDVolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) } else { x.FSType = string(r.DecodeString()) } - yyj668++ - if yyhl668 { - yyb668 = yyj668 > l + yyj680++ + if yyhl680 { + yyb680 = yyj680 > l } else { - yyb668 = r.CheckBreak() + yyb680 = r.CheckBreak() } - if yyb668 { + if yyb680 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -10444,13 +10708,13 @@ func (x *RBDVolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) } else { x.RBDPool = string(r.DecodeString()) } - yyj668++ - if yyhl668 { - yyb668 = yyj668 > l + yyj680++ + if yyhl680 { + yyb680 = yyj680 > l } else { - yyb668 = r.CheckBreak() + yyb680 = r.CheckBreak() } - if yyb668 { + if yyb680 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -10460,13 +10724,13 @@ func (x *RBDVolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) } else { x.RadosUser = string(r.DecodeString()) } - yyj668++ - if yyhl668 { - yyb668 = yyj668 > l + yyj680++ + if yyhl680 { + yyb680 = yyj680 > l } else { - yyb668 = r.CheckBreak() + yyb680 = r.CheckBreak() } - if yyb668 { + if yyb680 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -10476,13 +10740,13 @@ func (x *RBDVolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) } else { x.Keyring = string(r.DecodeString()) } - yyj668++ - if yyhl668 { - yyb668 = yyj668 > l + yyj680++ + if yyhl680 { + yyb680 = yyj680 > l } else { - yyb668 = r.CheckBreak() + yyb680 = r.CheckBreak() } - if yyb668 { + if yyb680 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -10497,13 +10761,13 @@ func (x *RBDVolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) } x.SecretRef.CodecDecodeSelf(d) } - yyj668++ - if yyhl668 { - yyb668 = yyj668 > l + yyj680++ + if yyhl680 { + yyb680 = yyj680 > l } else { - yyb668 = r.CheckBreak() + yyb680 = r.CheckBreak() } - if yyb668 { + if yyb680 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -10514,17 +10778,17 @@ func (x *RBDVolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) x.ReadOnly = bool(r.DecodeBool()) } for { - yyj668++ - if yyhl668 { - yyb668 = yyj668 > l + yyj680++ + if yyhl680 { + yyb680 = yyj680 > l } else { - yyb668 = r.CheckBreak() + yyb680 = r.CheckBreak() } - if yyb668 { + if yyb680 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj668-1, "") + z.DecStructFieldNotFound(yyj680-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -10536,35 +10800,35 @@ func (x *CinderVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym678 := z.EncBinary() - _ = yym678 + yym690 := z.EncBinary() + _ = yym690 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - 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 { + yysep691 := !z.EncBinary() + yy2arr691 := z.EncBasicHandle().StructToArray + var yyq691 [3]bool + _, _, _ = yysep691, yyq691, yy2arr691 + const yyr691 bool = false + yyq691[1] = x.FSType != "" + yyq691[2] = x.ReadOnly != false + var yynn691 int + if yyr691 || yy2arr691 { r.EncodeArrayStart(3) } else { - yynn679 = 1 - for _, b := range yyq679 { + yynn691 = 1 + for _, b := range yyq691 { if b { - yynn679++ + yynn691++ } } - r.EncodeMapStart(yynn679) - yynn679 = 0 + r.EncodeMapStart(yynn691) + yynn691 = 0 } - if yyr679 || yy2arr679 { + if yyr691 || yy2arr691 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym681 := z.EncBinary() - _ = yym681 + yym693 := z.EncBinary() + _ = yym693 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.VolumeID)) @@ -10573,18 +10837,18 @@ func (x *CinderVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("volumeID")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym682 := z.EncBinary() - _ = yym682 + yym694 := z.EncBinary() + _ = yym694 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.VolumeID)) } } - if yyr679 || yy2arr679 { + if yyr691 || yy2arr691 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq679[1] { - yym684 := z.EncBinary() - _ = yym684 + if yyq691[1] { + yym696 := z.EncBinary() + _ = yym696 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.FSType)) @@ -10593,23 +10857,23 @@ func (x *CinderVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq679[1] { + if yyq691[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("fsType")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym685 := z.EncBinary() - _ = yym685 + yym697 := z.EncBinary() + _ = yym697 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.FSType)) } } } - if yyr679 || yy2arr679 { + if yyr691 || yy2arr691 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq679[2] { - yym687 := z.EncBinary() - _ = yym687 + if yyq691[2] { + yym699 := z.EncBinary() + _ = yym699 if false { } else { r.EncodeBool(bool(x.ReadOnly)) @@ -10618,19 +10882,19 @@ func (x *CinderVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeBool(false) } } else { - if yyq679[2] { + if yyq691[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("readOnly")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym688 := z.EncBinary() - _ = yym688 + yym700 := z.EncBinary() + _ = yym700 if false { } else { r.EncodeBool(bool(x.ReadOnly)) } } } - if yyr679 || yy2arr679 { + if yyr691 || yy2arr691 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -10643,25 +10907,25 @@ func (x *CinderVolumeSource) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym689 := z.DecBinary() - _ = yym689 + yym701 := z.DecBinary() + _ = yym701 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct690 := r.ContainerType() - if yyct690 == codecSelferValueTypeMap1234 { - yyl690 := r.ReadMapStart() - if yyl690 == 0 { + yyct702 := r.ContainerType() + if yyct702 == codecSelferValueTypeMap1234 { + yyl702 := r.ReadMapStart() + if yyl702 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl690, d) + x.codecDecodeSelfFromMap(yyl702, d) } - } else if yyct690 == codecSelferValueTypeArray1234 { - yyl690 := r.ReadArrayStart() - if yyl690 == 0 { + } else if yyct702 == codecSelferValueTypeArray1234 { + yyl702 := r.ReadArrayStart() + if yyl702 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl690, d) + x.codecDecodeSelfFromArray(yyl702, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -10673,12 +10937,12 @@ func (x *CinderVolumeSource) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys691Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys691Slc - var yyhl691 bool = l >= 0 - for yyj691 := 0; ; yyj691++ { - if yyhl691 { - if yyj691 >= 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 { @@ -10687,10 +10951,10 @@ func (x *CinderVolumeSource) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys691Slc = r.DecodeBytes(yys691Slc, true, true) - yys691 := string(yys691Slc) + yys703Slc = r.DecodeBytes(yys703Slc, true, true) + yys703 := string(yys703Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys691 { + switch yys703 { case "volumeID": if r.TryDecodeAsNil() { x.VolumeID = "" @@ -10710,9 +10974,9 @@ func (x *CinderVolumeSource) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) x.ReadOnly = bool(r.DecodeBool()) } default: - z.DecStructFieldNotFound(-1, yys691) - } // end switch yys691 - } // end for yyj691 + z.DecStructFieldNotFound(-1, yys703) + } // end switch yys703 + } // end for yyj703 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -10720,16 +10984,16 @@ func (x *CinderVolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Decode var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj695 int - var yyb695 bool - var yyhl695 bool = l >= 0 - yyj695++ - if yyhl695 { - yyb695 = yyj695 > l + var yyj707 int + var yyb707 bool + var yyhl707 bool = l >= 0 + yyj707++ + if yyhl707 { + yyb707 = yyj707 > l } else { - yyb695 = r.CheckBreak() + yyb707 = r.CheckBreak() } - if yyb695 { + if yyb707 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -10739,13 +11003,13 @@ func (x *CinderVolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Decode } else { x.VolumeID = string(r.DecodeString()) } - yyj695++ - if yyhl695 { - yyb695 = yyj695 > l + yyj707++ + if yyhl707 { + yyb707 = yyj707 > l } else { - yyb695 = r.CheckBreak() + yyb707 = r.CheckBreak() } - if yyb695 { + if yyb707 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -10755,13 +11019,13 @@ func (x *CinderVolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Decode } else { x.FSType = string(r.DecodeString()) } - yyj695++ - if yyhl695 { - yyb695 = yyj695 > l + yyj707++ + if yyhl707 { + yyb707 = yyj707 > l } else { - yyb695 = r.CheckBreak() + yyb707 = r.CheckBreak() } - if yyb695 { + if yyb707 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -10772,17 +11036,17 @@ func (x *CinderVolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Decode x.ReadOnly = bool(r.DecodeBool()) } for { - yyj695++ - if yyhl695 { - yyb695 = yyj695 > l + yyj707++ + if yyhl707 { + yyb707 = yyj707 > l } else { - yyb695 = r.CheckBreak() + yyb707 = r.CheckBreak() } - if yyb695 { + if yyb707 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj695-1, "") + z.DecStructFieldNotFound(yyj707-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -10794,41 +11058,41 @@ func (x *CephFSVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym699 := z.EncBinary() - _ = yym699 + yym711 := z.EncBinary() + _ = yym711 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - 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 { + yysep712 := !z.EncBinary() + yy2arr712 := z.EncBasicHandle().StructToArray + var yyq712 [6]bool + _, _, _ = yysep712, yyq712, yy2arr712 + const yyr712 bool = false + yyq712[1] = x.Path != "" + yyq712[2] = x.User != "" + yyq712[3] = x.SecretFile != "" + yyq712[4] = x.SecretRef != nil + yyq712[5] = x.ReadOnly != false + var yynn712 int + if yyr712 || yy2arr712 { r.EncodeArrayStart(6) } else { - yynn700 = 1 - for _, b := range yyq700 { + yynn712 = 1 + for _, b := range yyq712 { if b { - yynn700++ + yynn712++ } } - r.EncodeMapStart(yynn700) - yynn700 = 0 + r.EncodeMapStart(yynn712) + yynn712 = 0 } - if yyr700 || yy2arr700 { + if yyr712 || yy2arr712 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.Monitors == nil { r.EncodeNil() } else { - yym702 := z.EncBinary() - _ = yym702 + yym714 := z.EncBinary() + _ = yym714 if false { } else { z.F.EncSliceStringV(x.Monitors, false, e) @@ -10841,19 +11105,19 @@ func (x *CephFSVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { if x.Monitors == nil { r.EncodeNil() } else { - yym703 := z.EncBinary() - _ = yym703 + yym715 := z.EncBinary() + _ = yym715 if false { } else { z.F.EncSliceStringV(x.Monitors, false, e) } } } - if yyr700 || yy2arr700 { + if yyr712 || yy2arr712 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq700[1] { - yym705 := z.EncBinary() - _ = yym705 + if yyq712[1] { + yym717 := z.EncBinary() + _ = yym717 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Path)) @@ -10862,23 +11126,23 @@ func (x *CephFSVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq700[1] { + if yyq712[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("path")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym706 := z.EncBinary() - _ = yym706 + yym718 := z.EncBinary() + _ = yym718 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Path)) } } } - if yyr700 || yy2arr700 { + if yyr712 || yy2arr712 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq700[2] { - yym708 := z.EncBinary() - _ = yym708 + if yyq712[2] { + yym720 := z.EncBinary() + _ = yym720 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.User)) @@ -10887,23 +11151,23 @@ func (x *CephFSVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq700[2] { + if yyq712[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("user")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym709 := z.EncBinary() - _ = yym709 + yym721 := z.EncBinary() + _ = yym721 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.User)) } } } - if yyr700 || yy2arr700 { + if yyr712 || yy2arr712 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq700[3] { - yym711 := z.EncBinary() - _ = yym711 + if yyq712[3] { + yym723 := z.EncBinary() + _ = yym723 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.SecretFile)) @@ -10912,21 +11176,21 @@ func (x *CephFSVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq700[3] { + if yyq712[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("secretFile")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym712 := z.EncBinary() - _ = yym712 + yym724 := z.EncBinary() + _ = yym724 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.SecretFile)) } } } - if yyr700 || yy2arr700 { + if yyr712 || yy2arr712 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq700[4] { + if yyq712[4] { if x.SecretRef == nil { r.EncodeNil() } else { @@ -10936,7 +11200,7 @@ func (x *CephFSVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq700[4] { + if yyq712[4] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("secretRef")) z.EncSendContainerState(codecSelfer_containerMapValue1234) @@ -10947,11 +11211,11 @@ func (x *CephFSVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr700 || yy2arr700 { + if yyr712 || yy2arr712 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq700[5] { - yym715 := z.EncBinary() - _ = yym715 + if yyq712[5] { + yym727 := z.EncBinary() + _ = yym727 if false { } else { r.EncodeBool(bool(x.ReadOnly)) @@ -10960,19 +11224,19 @@ func (x *CephFSVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeBool(false) } } else { - if yyq700[5] { + if yyq712[5] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("readOnly")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym716 := z.EncBinary() - _ = yym716 + yym728 := z.EncBinary() + _ = yym728 if false { } else { r.EncodeBool(bool(x.ReadOnly)) } } } - if yyr700 || yy2arr700 { + if yyr712 || yy2arr712 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -10985,25 +11249,25 @@ func (x *CephFSVolumeSource) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym717 := z.DecBinary() - _ = yym717 + yym729 := z.DecBinary() + _ = yym729 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct718 := r.ContainerType() - if yyct718 == codecSelferValueTypeMap1234 { - yyl718 := r.ReadMapStart() - if yyl718 == 0 { + yyct730 := r.ContainerType() + if yyct730 == codecSelferValueTypeMap1234 { + yyl730 := r.ReadMapStart() + if yyl730 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl718, d) + x.codecDecodeSelfFromMap(yyl730, d) } - } else if yyct718 == codecSelferValueTypeArray1234 { - yyl718 := r.ReadArrayStart() - if yyl718 == 0 { + } else if yyct730 == codecSelferValueTypeArray1234 { + yyl730 := r.ReadArrayStart() + if yyl730 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl718, d) + x.codecDecodeSelfFromArray(yyl730, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -11015,12 +11279,12 @@ func (x *CephFSVolumeSource) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys719Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys719Slc - var yyhl719 bool = l >= 0 - for yyj719 := 0; ; yyj719++ { - if yyhl719 { - if yyj719 >= l { + var yys731Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys731Slc + var yyhl731 bool = l >= 0 + for yyj731 := 0; ; yyj731++ { + if yyhl731 { + if yyj731 >= l { break } } else { @@ -11029,20 +11293,20 @@ func (x *CephFSVolumeSource) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys719Slc = r.DecodeBytes(yys719Slc, true, true) - yys719 := string(yys719Slc) + yys731Slc = r.DecodeBytes(yys731Slc, true, true) + yys731 := string(yys731Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys719 { + switch yys731 { case "monitors": if r.TryDecodeAsNil() { x.Monitors = nil } else { - yyv720 := &x.Monitors - yym721 := z.DecBinary() - _ = yym721 + yyv732 := &x.Monitors + yym733 := z.DecBinary() + _ = yym733 if false { } else { - z.F.DecSliceStringX(yyv720, false, d) + z.F.DecSliceStringX(yyv732, false, d) } } case "path": @@ -11081,9 +11345,9 @@ func (x *CephFSVolumeSource) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) x.ReadOnly = bool(r.DecodeBool()) } default: - z.DecStructFieldNotFound(-1, yys719) - } // end switch yys719 - } // end for yyj719 + z.DecStructFieldNotFound(-1, yys731) + } // end switch yys731 + } // end for yyj731 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -11091,16 +11355,16 @@ func (x *CephFSVolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Decode var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj727 int - var yyb727 bool - var yyhl727 bool = l >= 0 - yyj727++ - if yyhl727 { - yyb727 = yyj727 > l + var yyj739 int + var yyb739 bool + var yyhl739 bool = l >= 0 + yyj739++ + if yyhl739 { + yyb739 = yyj739 > l } else { - yyb727 = r.CheckBreak() + yyb739 = r.CheckBreak() } - if yyb727 { + if yyb739 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -11108,21 +11372,21 @@ func (x *CephFSVolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Decode if r.TryDecodeAsNil() { x.Monitors = nil } else { - yyv728 := &x.Monitors - yym729 := z.DecBinary() - _ = yym729 + yyv740 := &x.Monitors + yym741 := z.DecBinary() + _ = yym741 if false { } else { - z.F.DecSliceStringX(yyv728, false, d) + z.F.DecSliceStringX(yyv740, false, d) } } - yyj727++ - if yyhl727 { - yyb727 = yyj727 > l + yyj739++ + if yyhl739 { + yyb739 = yyj739 > l } else { - yyb727 = r.CheckBreak() + yyb739 = r.CheckBreak() } - if yyb727 { + if yyb739 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -11132,13 +11396,13 @@ func (x *CephFSVolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Decode } else { x.Path = string(r.DecodeString()) } - yyj727++ - if yyhl727 { - yyb727 = yyj727 > l + yyj739++ + if yyhl739 { + yyb739 = yyj739 > l } else { - yyb727 = r.CheckBreak() + yyb739 = r.CheckBreak() } - if yyb727 { + if yyb739 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -11148,13 +11412,13 @@ func (x *CephFSVolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Decode } else { x.User = string(r.DecodeString()) } - yyj727++ - if yyhl727 { - yyb727 = yyj727 > l + yyj739++ + if yyhl739 { + yyb739 = yyj739 > l } else { - yyb727 = r.CheckBreak() + yyb739 = r.CheckBreak() } - if yyb727 { + if yyb739 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -11164,13 +11428,13 @@ func (x *CephFSVolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Decode } else { x.SecretFile = string(r.DecodeString()) } - yyj727++ - if yyhl727 { - yyb727 = yyj727 > l + yyj739++ + if yyhl739 { + yyb739 = yyj739 > l } else { - yyb727 = r.CheckBreak() + yyb739 = r.CheckBreak() } - if yyb727 { + if yyb739 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -11185,13 +11449,13 @@ func (x *CephFSVolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Decode } x.SecretRef.CodecDecodeSelf(d) } - yyj727++ - if yyhl727 { - yyb727 = yyj727 > l + yyj739++ + if yyhl739 { + yyb739 = yyj739 > l } else { - yyb727 = r.CheckBreak() + yyb739 = r.CheckBreak() } - if yyb727 { + if yyb739 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -11202,17 +11466,17 @@ func (x *CephFSVolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Decode x.ReadOnly = bool(r.DecodeBool()) } for { - yyj727++ - if yyhl727 { - yyb727 = yyj727 > l + yyj739++ + if yyhl739 { + yyb739 = yyj739 > l } else { - yyb727 = r.CheckBreak() + yyb739 = r.CheckBreak() } - if yyb727 { + if yyb739 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj727-1, "") + z.DecStructFieldNotFound(yyj739-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -11224,49 +11488,82 @@ func (x *FlockerVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym735 := z.EncBinary() - _ = yym735 + yym747 := z.EncBinary() + _ = yym747 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - 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) + yysep748 := !z.EncBinary() + yy2arr748 := z.EncBasicHandle().StructToArray + var yyq748 [2]bool + _, _, _ = yysep748, yyq748, yy2arr748 + const yyr748 bool = false + yyq748[0] = x.DatasetName != "" + yyq748[1] = x.DatasetUUID != "" + var yynn748 int + if yyr748 || yy2arr748 { + r.EncodeArrayStart(2) } else { - yynn736 = 1 - for _, b := range yyq736 { + yynn748 = 0 + for _, b := range yyq748 { if b { - yynn736++ + yynn748++ } } - r.EncodeMapStart(yynn736) - yynn736 = 0 + r.EncodeMapStart(yynn748) + yynn748 = 0 } - if yyr736 || yy2arr736 { + if yyr748 || yy2arr748 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym738 := z.EncBinary() - _ = yym738 - if false { + if yyq748[0] { + yym750 := z.EncBinary() + _ = yym750 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.DatasetName)) + } } else { - r.EncodeString(codecSelferC_UTF81234, string(x.DatasetName)) + r.EncodeString(codecSelferC_UTF81234, "") } } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("datasetName")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym739 := z.EncBinary() - _ = yym739 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.DatasetName)) + if yyq748[0] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("datasetName")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym751 := z.EncBinary() + _ = yym751 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.DatasetName)) + } } } - if yyr736 || yy2arr736 { + if yyr748 || yy2arr748 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq748[1] { + yym753 := z.EncBinary() + _ = yym753 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.DatasetUUID)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq748[1] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("datasetUUID")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym754 := z.EncBinary() + _ = yym754 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.DatasetUUID)) + } + } + } + if yyr748 || yy2arr748 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -11279,25 +11576,25 @@ func (x *FlockerVolumeSource) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym740 := z.DecBinary() - _ = yym740 + yym755 := z.DecBinary() + _ = yym755 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct741 := r.ContainerType() - if yyct741 == codecSelferValueTypeMap1234 { - yyl741 := r.ReadMapStart() - if yyl741 == 0 { + yyct756 := r.ContainerType() + if yyct756 == codecSelferValueTypeMap1234 { + yyl756 := r.ReadMapStart() + if yyl756 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl741, d) + x.codecDecodeSelfFromMap(yyl756, d) } - } else if yyct741 == codecSelferValueTypeArray1234 { - yyl741 := r.ReadArrayStart() - if yyl741 == 0 { + } else if yyct756 == codecSelferValueTypeArray1234 { + yyl756 := r.ReadArrayStart() + if yyl756 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl741, d) + x.codecDecodeSelfFromArray(yyl756, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -11309,12 +11606,12 @@ func (x *FlockerVolumeSource) codecDecodeSelfFromMap(l int, d *codec1978.Decoder var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys742Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys742Slc - var yyhl742 bool = l >= 0 - for yyj742 := 0; ; yyj742++ { - if yyhl742 { - if yyj742 >= l { + var yys757Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys757Slc + var yyhl757 bool = l >= 0 + for yyj757 := 0; ; yyj757++ { + if yyhl757 { + if yyj757 >= l { break } } else { @@ -11323,20 +11620,26 @@ func (x *FlockerVolumeSource) codecDecodeSelfFromMap(l int, d *codec1978.Decoder } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys742Slc = r.DecodeBytes(yys742Slc, true, true) - yys742 := string(yys742Slc) + yys757Slc = r.DecodeBytes(yys757Slc, true, true) + yys757 := string(yys757Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys742 { + switch yys757 { case "datasetName": if r.TryDecodeAsNil() { x.DatasetName = "" } else { x.DatasetName = string(r.DecodeString()) } + case "datasetUUID": + if r.TryDecodeAsNil() { + x.DatasetUUID = "" + } else { + x.DatasetUUID = string(r.DecodeString()) + } default: - z.DecStructFieldNotFound(-1, yys742) - } // end switch yys742 - } // end for yyj742 + z.DecStructFieldNotFound(-1, yys757) + } // end switch yys757 + } // end for yyj757 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -11344,16 +11647,16 @@ func (x *FlockerVolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Decod var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj744 int - var yyb744 bool - var yyhl744 bool = l >= 0 - yyj744++ - if yyhl744 { - yyb744 = yyj744 > l + var yyj760 int + var yyb760 bool + var yyhl760 bool = l >= 0 + yyj760++ + if yyhl760 { + yyb760 = yyj760 > l } else { - yyb744 = r.CheckBreak() + yyb760 = r.CheckBreak() } - if yyb744 { + if yyb760 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -11363,18 +11666,34 @@ func (x *FlockerVolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Decod } else { x.DatasetName = string(r.DecodeString()) } + yyj760++ + if yyhl760 { + yyb760 = yyj760 > l + } else { + yyb760 = r.CheckBreak() + } + if yyb760 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.DatasetUUID = "" + } else { + x.DatasetUUID = string(r.DecodeString()) + } for { - yyj744++ - if yyhl744 { - yyb744 = yyj744 > l + yyj760++ + if yyhl760 { + yyb760 = yyj760 > l } else { - yyb744 = r.CheckBreak() + yyb760 = r.CheckBreak() } - if yyb744 { + if yyb760 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj744-1, "") + z.DecStructFieldNotFound(yyj760-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -11383,8 +11702,8 @@ func (x StorageMedium) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r - yym746 := z.EncBinary() - _ = yym746 + yym763 := z.EncBinary() + _ = yym763 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { @@ -11396,8 +11715,8 @@ func (x *StorageMedium) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym747 := z.DecBinary() - _ = yym747 + yym764 := z.DecBinary() + _ = yym764 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { @@ -11409,8 +11728,8 @@ func (x Protocol) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r - yym748 := z.EncBinary() - _ = yym748 + yym765 := z.EncBinary() + _ = yym765 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { @@ -11422,8 +11741,8 @@ func (x *Protocol) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym749 := z.DecBinary() - _ = yym749 + yym766 := z.DecBinary() + _ = yym766 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { @@ -11438,36 +11757,36 @@ func (x *GCEPersistentDiskVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym750 := z.EncBinary() - _ = yym750 + yym767 := z.EncBinary() + _ = yym767 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - 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 { + yysep768 := !z.EncBinary() + yy2arr768 := z.EncBasicHandle().StructToArray + var yyq768 [4]bool + _, _, _ = yysep768, yyq768, yy2arr768 + const yyr768 bool = false + yyq768[1] = x.FSType != "" + yyq768[2] = x.Partition != 0 + yyq768[3] = x.ReadOnly != false + var yynn768 int + if yyr768 || yy2arr768 { r.EncodeArrayStart(4) } else { - yynn751 = 1 - for _, b := range yyq751 { + yynn768 = 1 + for _, b := range yyq768 { if b { - yynn751++ + yynn768++ } } - r.EncodeMapStart(yynn751) - yynn751 = 0 + r.EncodeMapStart(yynn768) + yynn768 = 0 } - if yyr751 || yy2arr751 { + if yyr768 || yy2arr768 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym753 := z.EncBinary() - _ = yym753 + yym770 := z.EncBinary() + _ = yym770 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.PDName)) @@ -11476,18 +11795,18 @@ func (x *GCEPersistentDiskVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("pdName")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym754 := z.EncBinary() - _ = yym754 + yym771 := z.EncBinary() + _ = yym771 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.PDName)) } } - if yyr751 || yy2arr751 { + if yyr768 || yy2arr768 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq751[1] { - yym756 := z.EncBinary() - _ = yym756 + if yyq768[1] { + yym773 := z.EncBinary() + _ = yym773 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.FSType)) @@ -11496,23 +11815,23 @@ func (x *GCEPersistentDiskVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq751[1] { + if yyq768[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("fsType")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym757 := z.EncBinary() - _ = yym757 + yym774 := z.EncBinary() + _ = yym774 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.FSType)) } } } - if yyr751 || yy2arr751 { + if yyr768 || yy2arr768 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq751[2] { - yym759 := z.EncBinary() - _ = yym759 + if yyq768[2] { + yym776 := z.EncBinary() + _ = yym776 if false { } else { r.EncodeInt(int64(x.Partition)) @@ -11521,23 +11840,23 @@ func (x *GCEPersistentDiskVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeInt(0) } } else { - if yyq751[2] { + if yyq768[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("partition")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym760 := z.EncBinary() - _ = yym760 + yym777 := z.EncBinary() + _ = yym777 if false { } else { r.EncodeInt(int64(x.Partition)) } } } - if yyr751 || yy2arr751 { + if yyr768 || yy2arr768 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq751[3] { - yym762 := z.EncBinary() - _ = yym762 + if yyq768[3] { + yym779 := z.EncBinary() + _ = yym779 if false { } else { r.EncodeBool(bool(x.ReadOnly)) @@ -11546,19 +11865,19 @@ func (x *GCEPersistentDiskVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeBool(false) } } else { - if yyq751[3] { + if yyq768[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("readOnly")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym763 := z.EncBinary() - _ = yym763 + yym780 := z.EncBinary() + _ = yym780 if false { } else { r.EncodeBool(bool(x.ReadOnly)) } } } - if yyr751 || yy2arr751 { + if yyr768 || yy2arr768 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -11571,25 +11890,25 @@ func (x *GCEPersistentDiskVolumeSource) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym764 := z.DecBinary() - _ = yym764 + yym781 := z.DecBinary() + _ = yym781 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct765 := r.ContainerType() - if yyct765 == codecSelferValueTypeMap1234 { - yyl765 := r.ReadMapStart() - if yyl765 == 0 { + yyct782 := r.ContainerType() + if yyct782 == codecSelferValueTypeMap1234 { + yyl782 := r.ReadMapStart() + if yyl782 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl765, d) + x.codecDecodeSelfFromMap(yyl782, d) } - } else if yyct765 == codecSelferValueTypeArray1234 { - yyl765 := r.ReadArrayStart() - if yyl765 == 0 { + } else if yyct782 == codecSelferValueTypeArray1234 { + yyl782 := r.ReadArrayStart() + if yyl782 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl765, d) + x.codecDecodeSelfFromArray(yyl782, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -11601,12 +11920,12 @@ func (x *GCEPersistentDiskVolumeSource) codecDecodeSelfFromMap(l int, d *codec19 var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys766Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys766Slc - var yyhl766 bool = l >= 0 - for yyj766 := 0; ; yyj766++ { - if yyhl766 { - if yyj766 >= l { + var yys783Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys783Slc + var yyhl783 bool = l >= 0 + for yyj783 := 0; ; yyj783++ { + if yyhl783 { + if yyj783 >= l { break } } else { @@ -11615,10 +11934,10 @@ func (x *GCEPersistentDiskVolumeSource) codecDecodeSelfFromMap(l int, d *codec19 } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys766Slc = r.DecodeBytes(yys766Slc, true, true) - yys766 := string(yys766Slc) + yys783Slc = r.DecodeBytes(yys783Slc, true, true) + yys783 := string(yys783Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys766 { + switch yys783 { case "pdName": if r.TryDecodeAsNil() { x.PDName = "" @@ -11644,9 +11963,9 @@ func (x *GCEPersistentDiskVolumeSource) codecDecodeSelfFromMap(l int, d *codec19 x.ReadOnly = bool(r.DecodeBool()) } default: - z.DecStructFieldNotFound(-1, yys766) - } // end switch yys766 - } // end for yyj766 + z.DecStructFieldNotFound(-1, yys783) + } // end switch yys783 + } // end for yyj783 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -11654,16 +11973,16 @@ func (x *GCEPersistentDiskVolumeSource) codecDecodeSelfFromArray(l int, d *codec var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj771 int - var yyb771 bool - var yyhl771 bool = l >= 0 - yyj771++ - if yyhl771 { - yyb771 = yyj771 > l + var yyj788 int + var yyb788 bool + var yyhl788 bool = l >= 0 + yyj788++ + if yyhl788 { + yyb788 = yyj788 > l } else { - yyb771 = r.CheckBreak() + yyb788 = r.CheckBreak() } - if yyb771 { + if yyb788 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -11673,13 +11992,13 @@ func (x *GCEPersistentDiskVolumeSource) codecDecodeSelfFromArray(l int, d *codec } else { x.PDName = string(r.DecodeString()) } - yyj771++ - if yyhl771 { - yyb771 = yyj771 > l + yyj788++ + if yyhl788 { + yyb788 = yyj788 > l } else { - yyb771 = r.CheckBreak() + yyb788 = r.CheckBreak() } - if yyb771 { + if yyb788 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -11689,13 +12008,13 @@ func (x *GCEPersistentDiskVolumeSource) codecDecodeSelfFromArray(l int, d *codec } else { x.FSType = string(r.DecodeString()) } - yyj771++ - if yyhl771 { - yyb771 = yyj771 > l + yyj788++ + if yyhl788 { + yyb788 = yyj788 > l } else { - yyb771 = r.CheckBreak() + yyb788 = r.CheckBreak() } - if yyb771 { + if yyb788 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -11705,13 +12024,13 @@ func (x *GCEPersistentDiskVolumeSource) codecDecodeSelfFromArray(l int, d *codec } else { x.Partition = int32(r.DecodeInt(32)) } - yyj771++ - if yyhl771 { - yyb771 = yyj771 > l + yyj788++ + if yyhl788 { + yyb788 = yyj788 > l } else { - yyb771 = r.CheckBreak() + yyb788 = r.CheckBreak() } - if yyb771 { + if yyb788 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -11722,17 +12041,17 @@ func (x *GCEPersistentDiskVolumeSource) codecDecodeSelfFromArray(l int, d *codec x.ReadOnly = bool(r.DecodeBool()) } for { - yyj771++ - if yyhl771 { - yyb771 = yyj771 > l + yyj788++ + if yyhl788 { + yyb788 = yyj788 > l } else { - yyb771 = r.CheckBreak() + yyb788 = r.CheckBreak() } - if yyb771 { + if yyb788 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj771-1, "") + z.DecStructFieldNotFound(yyj788-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -11744,36 +12063,36 @@ func (x *QuobyteVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym776 := z.EncBinary() - _ = yym776 + yym793 := z.EncBinary() + _ = yym793 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 { + yysep794 := !z.EncBinary() + yy2arr794 := z.EncBasicHandle().StructToArray + var yyq794 [5]bool + _, _, _ = yysep794, yyq794, yy2arr794 + const yyr794 bool = false + yyq794[2] = x.ReadOnly != false + yyq794[3] = x.User != "" + yyq794[4] = x.Group != "" + var yynn794 int + if yyr794 || yy2arr794 { r.EncodeArrayStart(5) } else { - yynn777 = 2 - for _, b := range yyq777 { + yynn794 = 2 + for _, b := range yyq794 { if b { - yynn777++ + yynn794++ } } - r.EncodeMapStart(yynn777) - yynn777 = 0 + r.EncodeMapStart(yynn794) + yynn794 = 0 } - if yyr777 || yy2arr777 { + if yyr794 || yy2arr794 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym779 := z.EncBinary() - _ = yym779 + yym796 := z.EncBinary() + _ = yym796 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Registry)) @@ -11782,17 +12101,17 @@ func (x *QuobyteVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("registry")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym780 := z.EncBinary() - _ = yym780 + yym797 := z.EncBinary() + _ = yym797 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Registry)) } } - if yyr777 || yy2arr777 { + if yyr794 || yy2arr794 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym782 := z.EncBinary() - _ = yym782 + yym799 := z.EncBinary() + _ = yym799 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Volume)) @@ -11801,18 +12120,18 @@ func (x *QuobyteVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("volume")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym783 := z.EncBinary() - _ = yym783 + yym800 := z.EncBinary() + _ = yym800 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Volume)) } } - if yyr777 || yy2arr777 { + if yyr794 || yy2arr794 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq777[2] { - yym785 := z.EncBinary() - _ = yym785 + if yyq794[2] { + yym802 := z.EncBinary() + _ = yym802 if false { } else { r.EncodeBool(bool(x.ReadOnly)) @@ -11821,23 +12140,23 @@ func (x *QuobyteVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeBool(false) } } else { - if yyq777[2] { + if yyq794[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("readOnly")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym786 := z.EncBinary() - _ = yym786 + yym803 := z.EncBinary() + _ = yym803 if false { } else { r.EncodeBool(bool(x.ReadOnly)) } } } - if yyr777 || yy2arr777 { + if yyr794 || yy2arr794 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq777[3] { - yym788 := z.EncBinary() - _ = yym788 + if yyq794[3] { + yym805 := z.EncBinary() + _ = yym805 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.User)) @@ -11846,23 +12165,23 @@ func (x *QuobyteVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq777[3] { + if yyq794[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("user")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym789 := z.EncBinary() - _ = yym789 + yym806 := z.EncBinary() + _ = yym806 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.User)) } } } - if yyr777 || yy2arr777 { + if yyr794 || yy2arr794 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq777[4] { - yym791 := z.EncBinary() - _ = yym791 + if yyq794[4] { + yym808 := z.EncBinary() + _ = yym808 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Group)) @@ -11871,19 +12190,19 @@ func (x *QuobyteVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq777[4] { + if yyq794[4] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("group")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym792 := z.EncBinary() - _ = yym792 + yym809 := z.EncBinary() + _ = yym809 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Group)) } } } - if yyr777 || yy2arr777 { + if yyr794 || yy2arr794 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -11896,25 +12215,25 @@ func (x *QuobyteVolumeSource) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym793 := z.DecBinary() - _ = yym793 + yym810 := z.DecBinary() + _ = yym810 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct794 := r.ContainerType() - if yyct794 == codecSelferValueTypeMap1234 { - yyl794 := r.ReadMapStart() - if yyl794 == 0 { + yyct811 := r.ContainerType() + if yyct811 == codecSelferValueTypeMap1234 { + yyl811 := r.ReadMapStart() + if yyl811 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl794, d) + x.codecDecodeSelfFromMap(yyl811, d) } - } else if yyct794 == codecSelferValueTypeArray1234 { - yyl794 := r.ReadArrayStart() - if yyl794 == 0 { + } else if yyct811 == codecSelferValueTypeArray1234 { + yyl811 := r.ReadArrayStart() + if yyl811 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl794, d) + x.codecDecodeSelfFromArray(yyl811, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -11926,12 +12245,12 @@ 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 { + var yys812Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys812Slc + var yyhl812 bool = l >= 0 + for yyj812 := 0; ; yyj812++ { + if yyhl812 { + if yyj812 >= l { break } } else { @@ -11940,10 +12259,10 @@ func (x *QuobyteVolumeSource) codecDecodeSelfFromMap(l int, d *codec1978.Decoder } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys795Slc = r.DecodeBytes(yys795Slc, true, true) - yys795 := string(yys795Slc) + yys812Slc = r.DecodeBytes(yys812Slc, true, true) + yys812 := string(yys812Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys795 { + switch yys812 { case "registry": if r.TryDecodeAsNil() { x.Registry = "" @@ -11975,9 +12294,9 @@ func (x *QuobyteVolumeSource) codecDecodeSelfFromMap(l int, d *codec1978.Decoder x.Group = string(r.DecodeString()) } default: - z.DecStructFieldNotFound(-1, yys795) - } // end switch yys795 - } // end for yyj795 + z.DecStructFieldNotFound(-1, yys812) + } // end switch yys812 + } // end for yyj812 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -11985,16 +12304,16 @@ func (x *QuobyteVolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Decod 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 + var yyj818 int + var yyb818 bool + var yyhl818 bool = l >= 0 + yyj818++ + if yyhl818 { + yyb818 = yyj818 > l } else { - yyb801 = r.CheckBreak() + yyb818 = r.CheckBreak() } - if yyb801 { + if yyb818 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -12004,13 +12323,13 @@ func (x *QuobyteVolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Decod } else { x.Registry = string(r.DecodeString()) } - yyj801++ - if yyhl801 { - yyb801 = yyj801 > l + yyj818++ + if yyhl818 { + yyb818 = yyj818 > l } else { - yyb801 = r.CheckBreak() + yyb818 = r.CheckBreak() } - if yyb801 { + if yyb818 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -12020,13 +12339,13 @@ func (x *QuobyteVolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Decod } else { x.Volume = string(r.DecodeString()) } - yyj801++ - if yyhl801 { - yyb801 = yyj801 > l + yyj818++ + if yyhl818 { + yyb818 = yyj818 > l } else { - yyb801 = r.CheckBreak() + yyb818 = r.CheckBreak() } - if yyb801 { + if yyb818 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -12036,13 +12355,13 @@ func (x *QuobyteVolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Decod } else { x.ReadOnly = bool(r.DecodeBool()) } - yyj801++ - if yyhl801 { - yyb801 = yyj801 > l + yyj818++ + if yyhl818 { + yyb818 = yyj818 > l } else { - yyb801 = r.CheckBreak() + yyb818 = r.CheckBreak() } - if yyb801 { + if yyb818 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -12052,13 +12371,13 @@ func (x *QuobyteVolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Decod } else { x.User = string(r.DecodeString()) } - yyj801++ - if yyhl801 { - yyb801 = yyj801 > l + yyj818++ + if yyhl818 { + yyb818 = yyj818 > l } else { - yyb801 = r.CheckBreak() + yyb818 = r.CheckBreak() } - if yyb801 { + if yyb818 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -12069,17 +12388,17 @@ func (x *QuobyteVolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Decod x.Group = string(r.DecodeString()) } for { - yyj801++ - if yyhl801 { - yyb801 = yyj801 > l + yyj818++ + if yyhl818 { + yyb818 = yyj818 > l } else { - yyb801 = r.CheckBreak() + yyb818 = r.CheckBreak() } - if yyb801 { + if yyb818 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj801-1, "") + z.DecStructFieldNotFound(yyj818-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -12091,37 +12410,37 @@ func (x *FlexVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym807 := z.EncBinary() - _ = yym807 + yym824 := z.EncBinary() + _ = yym824 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - 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 { + yysep825 := !z.EncBinary() + yy2arr825 := z.EncBasicHandle().StructToArray + var yyq825 [5]bool + _, _, _ = yysep825, yyq825, yy2arr825 + const yyr825 bool = false + yyq825[1] = x.FSType != "" + yyq825[2] = x.SecretRef != nil + yyq825[3] = x.ReadOnly != false + yyq825[4] = len(x.Options) != 0 + var yynn825 int + if yyr825 || yy2arr825 { r.EncodeArrayStart(5) } else { - yynn808 = 1 - for _, b := range yyq808 { + yynn825 = 1 + for _, b := range yyq825 { if b { - yynn808++ + yynn825++ } } - r.EncodeMapStart(yynn808) - yynn808 = 0 + r.EncodeMapStart(yynn825) + yynn825 = 0 } - if yyr808 || yy2arr808 { + if yyr825 || yy2arr825 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym810 := z.EncBinary() - _ = yym810 + yym827 := z.EncBinary() + _ = yym827 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Driver)) @@ -12130,18 +12449,18 @@ func (x *FlexVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("driver")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym811 := z.EncBinary() - _ = yym811 + yym828 := z.EncBinary() + _ = yym828 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Driver)) } } - if yyr808 || yy2arr808 { + if yyr825 || yy2arr825 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq808[1] { - yym813 := z.EncBinary() - _ = yym813 + if yyq825[1] { + yym830 := z.EncBinary() + _ = yym830 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.FSType)) @@ -12150,21 +12469,21 @@ func (x *FlexVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq808[1] { + if yyq825[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("fsType")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym814 := z.EncBinary() - _ = yym814 + yym831 := z.EncBinary() + _ = yym831 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.FSType)) } } } - if yyr808 || yy2arr808 { + if yyr825 || yy2arr825 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq808[2] { + if yyq825[2] { if x.SecretRef == nil { r.EncodeNil() } else { @@ -12174,7 +12493,7 @@ func (x *FlexVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq808[2] { + if yyq825[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("secretRef")) z.EncSendContainerState(codecSelfer_containerMapValue1234) @@ -12185,11 +12504,11 @@ func (x *FlexVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr808 || yy2arr808 { + if yyr825 || yy2arr825 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq808[3] { - yym817 := z.EncBinary() - _ = yym817 + if yyq825[3] { + yym834 := z.EncBinary() + _ = yym834 if false { } else { r.EncodeBool(bool(x.ReadOnly)) @@ -12198,26 +12517,26 @@ func (x *FlexVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeBool(false) } } else { - if yyq808[3] { + if yyq825[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("readOnly")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym818 := z.EncBinary() - _ = yym818 + yym835 := z.EncBinary() + _ = yym835 if false { } else { r.EncodeBool(bool(x.ReadOnly)) } } } - if yyr808 || yy2arr808 { + if yyr825 || yy2arr825 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq808[4] { + if yyq825[4] { if x.Options == nil { r.EncodeNil() } else { - yym820 := z.EncBinary() - _ = yym820 + yym837 := z.EncBinary() + _ = yym837 if false { } else { z.F.EncMapStringStringV(x.Options, false, e) @@ -12227,15 +12546,15 @@ func (x *FlexVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq808[4] { + if yyq825[4] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("options")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.Options == nil { r.EncodeNil() } else { - yym821 := z.EncBinary() - _ = yym821 + yym838 := z.EncBinary() + _ = yym838 if false { } else { z.F.EncMapStringStringV(x.Options, false, e) @@ -12243,7 +12562,7 @@ func (x *FlexVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr808 || yy2arr808 { + if yyr825 || yy2arr825 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -12256,25 +12575,25 @@ func (x *FlexVolumeSource) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym822 := z.DecBinary() - _ = yym822 + yym839 := z.DecBinary() + _ = yym839 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct823 := r.ContainerType() - if yyct823 == codecSelferValueTypeMap1234 { - yyl823 := r.ReadMapStart() - if yyl823 == 0 { + yyct840 := r.ContainerType() + if yyct840 == codecSelferValueTypeMap1234 { + yyl840 := r.ReadMapStart() + if yyl840 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl823, d) + x.codecDecodeSelfFromMap(yyl840, d) } - } else if yyct823 == codecSelferValueTypeArray1234 { - yyl823 := r.ReadArrayStart() - if yyl823 == 0 { + } else if yyct840 == codecSelferValueTypeArray1234 { + yyl840 := r.ReadArrayStart() + if yyl840 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl823, d) + x.codecDecodeSelfFromArray(yyl840, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -12286,12 +12605,12 @@ func (x *FlexVolumeSource) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys824Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys824Slc - var yyhl824 bool = l >= 0 - for yyj824 := 0; ; yyj824++ { - if yyhl824 { - if yyj824 >= l { + var yys841Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys841Slc + var yyhl841 bool = l >= 0 + for yyj841 := 0; ; yyj841++ { + if yyhl841 { + if yyj841 >= l { break } } else { @@ -12300,10 +12619,10 @@ func (x *FlexVolumeSource) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys824Slc = r.DecodeBytes(yys824Slc, true, true) - yys824 := string(yys824Slc) + yys841Slc = r.DecodeBytes(yys841Slc, true, true) + yys841 := string(yys841Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys824 { + switch yys841 { case "driver": if r.TryDecodeAsNil() { x.Driver = "" @@ -12337,18 +12656,18 @@ func (x *FlexVolumeSource) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.Options = nil } else { - yyv829 := &x.Options - yym830 := z.DecBinary() - _ = yym830 + yyv846 := &x.Options + yym847 := z.DecBinary() + _ = yym847 if false { } else { - z.F.DecMapStringStringX(yyv829, false, d) + z.F.DecMapStringStringX(yyv846, false, d) } } default: - z.DecStructFieldNotFound(-1, yys824) - } // end switch yys824 - } // end for yyj824 + z.DecStructFieldNotFound(-1, yys841) + } // end switch yys841 + } // end for yyj841 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -12356,16 +12675,16 @@ func (x *FlexVolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj831 int - var yyb831 bool - var yyhl831 bool = l >= 0 - yyj831++ - if yyhl831 { - yyb831 = yyj831 > l + var yyj848 int + var yyb848 bool + var yyhl848 bool = l >= 0 + yyj848++ + if yyhl848 { + yyb848 = yyj848 > l } else { - yyb831 = r.CheckBreak() + yyb848 = r.CheckBreak() } - if yyb831 { + if yyb848 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -12375,13 +12694,13 @@ func (x *FlexVolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) } else { x.Driver = string(r.DecodeString()) } - yyj831++ - if yyhl831 { - yyb831 = yyj831 > l + yyj848++ + if yyhl848 { + yyb848 = yyj848 > l } else { - yyb831 = r.CheckBreak() + yyb848 = r.CheckBreak() } - if yyb831 { + if yyb848 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -12391,13 +12710,13 @@ func (x *FlexVolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) } else { x.FSType = string(r.DecodeString()) } - yyj831++ - if yyhl831 { - yyb831 = yyj831 > l + yyj848++ + if yyhl848 { + yyb848 = yyj848 > l } else { - yyb831 = r.CheckBreak() + yyb848 = r.CheckBreak() } - if yyb831 { + if yyb848 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -12412,13 +12731,13 @@ func (x *FlexVolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) } x.SecretRef.CodecDecodeSelf(d) } - yyj831++ - if yyhl831 { - yyb831 = yyj831 > l + yyj848++ + if yyhl848 { + yyb848 = yyj848 > l } else { - yyb831 = r.CheckBreak() + yyb848 = r.CheckBreak() } - if yyb831 { + if yyb848 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -12428,13 +12747,13 @@ func (x *FlexVolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) } else { x.ReadOnly = bool(r.DecodeBool()) } - yyj831++ - if yyhl831 { - yyb831 = yyj831 > l + yyj848++ + if yyhl848 { + yyb848 = yyj848 > l } else { - yyb831 = r.CheckBreak() + yyb848 = r.CheckBreak() } - if yyb831 { + if yyb848 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -12442,26 +12761,26 @@ func (x *FlexVolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) if r.TryDecodeAsNil() { x.Options = nil } else { - yyv836 := &x.Options - yym837 := z.DecBinary() - _ = yym837 + yyv853 := &x.Options + yym854 := z.DecBinary() + _ = yym854 if false { } else { - z.F.DecMapStringStringX(yyv836, false, d) + z.F.DecMapStringStringX(yyv853, false, d) } } for { - yyj831++ - if yyhl831 { - yyb831 = yyj831 > l + yyj848++ + if yyhl848 { + yyb848 = yyj848 > l } else { - yyb831 = r.CheckBreak() + yyb848 = r.CheckBreak() } - if yyb831 { + if yyb848 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj831-1, "") + z.DecStructFieldNotFound(yyj848-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -12473,36 +12792,36 @@ func (x *AWSElasticBlockStoreVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) if x == nil { r.EncodeNil() } else { - yym838 := z.EncBinary() - _ = yym838 + yym855 := z.EncBinary() + _ = yym855 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - 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 { + yysep856 := !z.EncBinary() + yy2arr856 := z.EncBasicHandle().StructToArray + var yyq856 [4]bool + _, _, _ = yysep856, yyq856, yy2arr856 + const yyr856 bool = false + yyq856[1] = x.FSType != "" + yyq856[2] = x.Partition != 0 + yyq856[3] = x.ReadOnly != false + var yynn856 int + if yyr856 || yy2arr856 { r.EncodeArrayStart(4) } else { - yynn839 = 1 - for _, b := range yyq839 { + yynn856 = 1 + for _, b := range yyq856 { if b { - yynn839++ + yynn856++ } } - r.EncodeMapStart(yynn839) - yynn839 = 0 + r.EncodeMapStart(yynn856) + yynn856 = 0 } - if yyr839 || yy2arr839 { + if yyr856 || yy2arr856 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym841 := z.EncBinary() - _ = yym841 + yym858 := z.EncBinary() + _ = yym858 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.VolumeID)) @@ -12511,18 +12830,18 @@ func (x *AWSElasticBlockStoreVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("volumeID")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym842 := z.EncBinary() - _ = yym842 + yym859 := z.EncBinary() + _ = yym859 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.VolumeID)) } } - if yyr839 || yy2arr839 { + if yyr856 || yy2arr856 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq839[1] { - yym844 := z.EncBinary() - _ = yym844 + if yyq856[1] { + yym861 := z.EncBinary() + _ = yym861 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.FSType)) @@ -12531,23 +12850,23 @@ func (x *AWSElasticBlockStoreVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq839[1] { + if yyq856[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("fsType")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym845 := z.EncBinary() - _ = yym845 + yym862 := z.EncBinary() + _ = yym862 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.FSType)) } } } - if yyr839 || yy2arr839 { + if yyr856 || yy2arr856 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq839[2] { - yym847 := z.EncBinary() - _ = yym847 + if yyq856[2] { + yym864 := z.EncBinary() + _ = yym864 if false { } else { r.EncodeInt(int64(x.Partition)) @@ -12556,23 +12875,23 @@ func (x *AWSElasticBlockStoreVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) r.EncodeInt(0) } } else { - if yyq839[2] { + if yyq856[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("partition")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym848 := z.EncBinary() - _ = yym848 + yym865 := z.EncBinary() + _ = yym865 if false { } else { r.EncodeInt(int64(x.Partition)) } } } - if yyr839 || yy2arr839 { + if yyr856 || yy2arr856 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq839[3] { - yym850 := z.EncBinary() - _ = yym850 + if yyq856[3] { + yym867 := z.EncBinary() + _ = yym867 if false { } else { r.EncodeBool(bool(x.ReadOnly)) @@ -12581,19 +12900,19 @@ func (x *AWSElasticBlockStoreVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) r.EncodeBool(false) } } else { - if yyq839[3] { + if yyq856[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("readOnly")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym851 := z.EncBinary() - _ = yym851 + yym868 := z.EncBinary() + _ = yym868 if false { } else { r.EncodeBool(bool(x.ReadOnly)) } } } - if yyr839 || yy2arr839 { + if yyr856 || yy2arr856 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -12606,25 +12925,25 @@ func (x *AWSElasticBlockStoreVolumeSource) CodecDecodeSelf(d *codec1978.Decoder) var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym852 := z.DecBinary() - _ = yym852 + yym869 := z.DecBinary() + _ = yym869 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct853 := r.ContainerType() - if yyct853 == codecSelferValueTypeMap1234 { - yyl853 := r.ReadMapStart() - if yyl853 == 0 { + yyct870 := r.ContainerType() + if yyct870 == codecSelferValueTypeMap1234 { + yyl870 := r.ReadMapStart() + if yyl870 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl853, d) + x.codecDecodeSelfFromMap(yyl870, d) } - } else if yyct853 == codecSelferValueTypeArray1234 { - yyl853 := r.ReadArrayStart() - if yyl853 == 0 { + } else if yyct870 == codecSelferValueTypeArray1234 { + yyl870 := r.ReadArrayStart() + if yyl870 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl853, d) + x.codecDecodeSelfFromArray(yyl870, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -12636,12 +12955,12 @@ func (x *AWSElasticBlockStoreVolumeSource) codecDecodeSelfFromMap(l int, d *code 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 { + var yys871Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys871Slc + var yyhl871 bool = l >= 0 + for yyj871 := 0; ; yyj871++ { + if yyhl871 { + if yyj871 >= l { break } } else { @@ -12650,10 +12969,10 @@ func (x *AWSElasticBlockStoreVolumeSource) codecDecodeSelfFromMap(l int, d *code } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys854Slc = r.DecodeBytes(yys854Slc, true, true) - yys854 := string(yys854Slc) + yys871Slc = r.DecodeBytes(yys871Slc, true, true) + yys871 := string(yys871Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys854 { + switch yys871 { case "volumeID": if r.TryDecodeAsNil() { x.VolumeID = "" @@ -12679,9 +12998,9 @@ func (x *AWSElasticBlockStoreVolumeSource) codecDecodeSelfFromMap(l int, d *code x.ReadOnly = bool(r.DecodeBool()) } default: - z.DecStructFieldNotFound(-1, yys854) - } // end switch yys854 - } // end for yyj854 + z.DecStructFieldNotFound(-1, yys871) + } // end switch yys871 + } // end for yyj871 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -12689,16 +13008,16 @@ func (x *AWSElasticBlockStoreVolumeSource) codecDecodeSelfFromArray(l int, d *co var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj859 int - var yyb859 bool - var yyhl859 bool = l >= 0 - yyj859++ - if yyhl859 { - yyb859 = yyj859 > l + var yyj876 int + var yyb876 bool + var yyhl876 bool = l >= 0 + yyj876++ + if yyhl876 { + yyb876 = yyj876 > l } else { - yyb859 = r.CheckBreak() + yyb876 = r.CheckBreak() } - if yyb859 { + if yyb876 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -12708,13 +13027,13 @@ func (x *AWSElasticBlockStoreVolumeSource) codecDecodeSelfFromArray(l int, d *co } else { x.VolumeID = string(r.DecodeString()) } - yyj859++ - if yyhl859 { - yyb859 = yyj859 > l + yyj876++ + if yyhl876 { + yyb876 = yyj876 > l } else { - yyb859 = r.CheckBreak() + yyb876 = r.CheckBreak() } - if yyb859 { + if yyb876 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -12724,13 +13043,13 @@ func (x *AWSElasticBlockStoreVolumeSource) codecDecodeSelfFromArray(l int, d *co } else { x.FSType = string(r.DecodeString()) } - yyj859++ - if yyhl859 { - yyb859 = yyj859 > l + yyj876++ + if yyhl876 { + yyb876 = yyj876 > l } else { - yyb859 = r.CheckBreak() + yyb876 = r.CheckBreak() } - if yyb859 { + if yyb876 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -12740,13 +13059,13 @@ func (x *AWSElasticBlockStoreVolumeSource) codecDecodeSelfFromArray(l int, d *co } else { x.Partition = int32(r.DecodeInt(32)) } - yyj859++ - if yyhl859 { - yyb859 = yyj859 > l + yyj876++ + if yyhl876 { + yyb876 = yyj876 > l } else { - yyb859 = r.CheckBreak() + yyb876 = r.CheckBreak() } - if yyb859 { + if yyb876 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -12757,17 +13076,17 @@ func (x *AWSElasticBlockStoreVolumeSource) codecDecodeSelfFromArray(l int, d *co x.ReadOnly = bool(r.DecodeBool()) } for { - yyj859++ - if yyhl859 { - yyb859 = yyj859 > l + yyj876++ + if yyhl876 { + yyb876 = yyj876 > l } else { - yyb859 = r.CheckBreak() + yyb876 = r.CheckBreak() } - if yyb859 { + if yyb876 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj859-1, "") + z.DecStructFieldNotFound(yyj876-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -12779,35 +13098,35 @@ func (x *GitRepoVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym864 := z.EncBinary() - _ = yym864 + yym881 := z.EncBinary() + _ = yym881 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.Revision != "" - yyq865[2] = x.Directory != "" - var yynn865 int - if yyr865 || yy2arr865 { + yysep882 := !z.EncBinary() + yy2arr882 := z.EncBasicHandle().StructToArray + var yyq882 [3]bool + _, _, _ = yysep882, yyq882, yy2arr882 + const yyr882 bool = false + yyq882[1] = x.Revision != "" + yyq882[2] = x.Directory != "" + var yynn882 int + if yyr882 || yy2arr882 { r.EncodeArrayStart(3) } else { - yynn865 = 1 - for _, b := range yyq865 { + yynn882 = 1 + for _, b := range yyq882 { if b { - yynn865++ + yynn882++ } } - r.EncodeMapStart(yynn865) - yynn865 = 0 + r.EncodeMapStart(yynn882) + yynn882 = 0 } - if yyr865 || yy2arr865 { + if yyr882 || yy2arr882 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym867 := z.EncBinary() - _ = yym867 + yym884 := z.EncBinary() + _ = yym884 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Repository)) @@ -12816,18 +13135,18 @@ func (x *GitRepoVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("repository")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym868 := z.EncBinary() - _ = yym868 + yym885 := z.EncBinary() + _ = yym885 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Repository)) } } - if yyr865 || yy2arr865 { + if yyr882 || yy2arr882 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq865[1] { - yym870 := z.EncBinary() - _ = yym870 + if yyq882[1] { + yym887 := z.EncBinary() + _ = yym887 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Revision)) @@ -12836,23 +13155,23 @@ func (x *GitRepoVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq865[1] { + if yyq882[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("revision")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym871 := z.EncBinary() - _ = yym871 + yym888 := z.EncBinary() + _ = yym888 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Revision)) } } } - if yyr865 || yy2arr865 { + if yyr882 || yy2arr882 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq865[2] { - yym873 := z.EncBinary() - _ = yym873 + if yyq882[2] { + yym890 := z.EncBinary() + _ = yym890 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Directory)) @@ -12861,19 +13180,19 @@ func (x *GitRepoVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq865[2] { + if yyq882[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("directory")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym874 := z.EncBinary() - _ = yym874 + yym891 := z.EncBinary() + _ = yym891 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Directory)) } } } - if yyr865 || yy2arr865 { + if yyr882 || yy2arr882 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -12886,25 +13205,25 @@ func (x *GitRepoVolumeSource) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym875 := z.DecBinary() - _ = yym875 + yym892 := z.DecBinary() + _ = yym892 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct876 := r.ContainerType() - if yyct876 == codecSelferValueTypeMap1234 { - yyl876 := r.ReadMapStart() - if yyl876 == 0 { + yyct893 := r.ContainerType() + if yyct893 == codecSelferValueTypeMap1234 { + yyl893 := r.ReadMapStart() + if yyl893 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl876, d) + x.codecDecodeSelfFromMap(yyl893, d) } - } else if yyct876 == codecSelferValueTypeArray1234 { - yyl876 := r.ReadArrayStart() - if yyl876 == 0 { + } else if yyct893 == codecSelferValueTypeArray1234 { + yyl893 := r.ReadArrayStart() + if yyl893 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl876, d) + x.codecDecodeSelfFromArray(yyl893, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -12916,12 +13235,12 @@ func (x *GitRepoVolumeSource) codecDecodeSelfFromMap(l int, d *codec1978.Decoder var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys877Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys877Slc - var yyhl877 bool = l >= 0 - for yyj877 := 0; ; yyj877++ { - if yyhl877 { - if yyj877 >= l { + var yys894Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys894Slc + var yyhl894 bool = l >= 0 + for yyj894 := 0; ; yyj894++ { + if yyhl894 { + if yyj894 >= l { break } } else { @@ -12930,10 +13249,10 @@ func (x *GitRepoVolumeSource) codecDecodeSelfFromMap(l int, d *codec1978.Decoder } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys877Slc = r.DecodeBytes(yys877Slc, true, true) - yys877 := string(yys877Slc) + yys894Slc = r.DecodeBytes(yys894Slc, true, true) + yys894 := string(yys894Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys877 { + switch yys894 { case "repository": if r.TryDecodeAsNil() { x.Repository = "" @@ -12953,9 +13272,9 @@ func (x *GitRepoVolumeSource) codecDecodeSelfFromMap(l int, d *codec1978.Decoder x.Directory = string(r.DecodeString()) } default: - z.DecStructFieldNotFound(-1, yys877) - } // end switch yys877 - } // end for yyj877 + z.DecStructFieldNotFound(-1, yys894) + } // end switch yys894 + } // end for yyj894 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -12963,16 +13282,16 @@ func (x *GitRepoVolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Decod var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj881 int - var yyb881 bool - var yyhl881 bool = l >= 0 - yyj881++ - if yyhl881 { - yyb881 = yyj881 > l + var yyj898 int + var yyb898 bool + var yyhl898 bool = l >= 0 + yyj898++ + if yyhl898 { + yyb898 = yyj898 > l } else { - yyb881 = r.CheckBreak() + yyb898 = r.CheckBreak() } - if yyb881 { + if yyb898 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -12982,13 +13301,13 @@ func (x *GitRepoVolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Decod } else { x.Repository = string(r.DecodeString()) } - yyj881++ - if yyhl881 { - yyb881 = yyj881 > l + yyj898++ + if yyhl898 { + yyb898 = yyj898 > l } else { - yyb881 = r.CheckBreak() + yyb898 = r.CheckBreak() } - if yyb881 { + if yyb898 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -12998,13 +13317,13 @@ func (x *GitRepoVolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Decod } else { x.Revision = string(r.DecodeString()) } - yyj881++ - if yyhl881 { - yyb881 = yyj881 > l + yyj898++ + if yyhl898 { + yyb898 = yyj898 > l } else { - yyb881 = r.CheckBreak() + yyb898 = r.CheckBreak() } - if yyb881 { + if yyb898 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -13015,17 +13334,17 @@ func (x *GitRepoVolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Decod x.Directory = string(r.DecodeString()) } for { - yyj881++ - if yyhl881 { - yyb881 = yyj881 > l + yyj898++ + if yyhl898 { + yyb898 = yyj898 > l } else { - yyb881 = r.CheckBreak() + yyb898 = r.CheckBreak() } - if yyb881 { + if yyb898 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj881-1, "") + z.DecStructFieldNotFound(yyj898-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -13037,37 +13356,37 @@ func (x *SecretVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym885 := z.EncBinary() - _ = yym885 + yym902 := z.EncBinary() + _ = yym902 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - 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 { + yysep903 := !z.EncBinary() + yy2arr903 := z.EncBasicHandle().StructToArray + var yyq903 [3]bool + _, _, _ = yysep903, yyq903, yy2arr903 + const yyr903 bool = false + yyq903[0] = x.SecretName != "" + yyq903[1] = len(x.Items) != 0 + yyq903[2] = x.DefaultMode != nil + var yynn903 int + if yyr903 || yy2arr903 { r.EncodeArrayStart(3) } else { - yynn886 = 0 - for _, b := range yyq886 { + yynn903 = 0 + for _, b := range yyq903 { if b { - yynn886++ + yynn903++ } } - r.EncodeMapStart(yynn886) - yynn886 = 0 + r.EncodeMapStart(yynn903) + yynn903 = 0 } - if yyr886 || yy2arr886 { + if yyr903 || yy2arr903 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq886[0] { - yym888 := z.EncBinary() - _ = yym888 + if yyq903[0] { + yym905 := z.EncBinary() + _ = yym905 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.SecretName)) @@ -13076,26 +13395,26 @@ func (x *SecretVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq886[0] { + if yyq903[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("secretName")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym889 := z.EncBinary() - _ = yym889 + yym906 := z.EncBinary() + _ = yym906 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.SecretName)) } } } - if yyr886 || yy2arr886 { + if yyr903 || yy2arr903 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq886[1] { + if yyq903[1] { if x.Items == nil { r.EncodeNil() } else { - yym891 := z.EncBinary() - _ = yym891 + yym908 := z.EncBinary() + _ = yym908 if false { } else { h.encSliceKeyToPath(([]KeyToPath)(x.Items), e) @@ -13105,15 +13424,15 @@ func (x *SecretVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq886[1] { + if yyq903[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("items")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.Items == nil { r.EncodeNil() } else { - yym892 := z.EncBinary() - _ = yym892 + yym909 := z.EncBinary() + _ = yym909 if false { } else { h.encSliceKeyToPath(([]KeyToPath)(x.Items), e) @@ -13121,42 +13440,42 @@ func (x *SecretVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr886 || yy2arr886 { + if yyr903 || yy2arr903 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq886[2] { + if yyq903[2] { if x.DefaultMode == nil { r.EncodeNil() } else { - yy894 := *x.DefaultMode - yym895 := z.EncBinary() - _ = yym895 + yy911 := *x.DefaultMode + yym912 := z.EncBinary() + _ = yym912 if false { } else { - r.EncodeInt(int64(yy894)) + r.EncodeInt(int64(yy911)) } } } else { r.EncodeNil() } } else { - if yyq886[2] { + if yyq903[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 + yy913 := *x.DefaultMode + yym914 := z.EncBinary() + _ = yym914 if false { } else { - r.EncodeInt(int64(yy896)) + r.EncodeInt(int64(yy913)) } } } } - if yyr886 || yy2arr886 { + if yyr903 || yy2arr903 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -13169,25 +13488,25 @@ func (x *SecretVolumeSource) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym898 := z.DecBinary() - _ = yym898 + yym915 := z.DecBinary() + _ = yym915 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct899 := r.ContainerType() - if yyct899 == codecSelferValueTypeMap1234 { - yyl899 := r.ReadMapStart() - if yyl899 == 0 { + yyct916 := r.ContainerType() + if yyct916 == codecSelferValueTypeMap1234 { + yyl916 := r.ReadMapStart() + if yyl916 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl899, d) + x.codecDecodeSelfFromMap(yyl916, d) } - } else if yyct899 == codecSelferValueTypeArray1234 { - yyl899 := r.ReadArrayStart() - if yyl899 == 0 { + } else if yyct916 == codecSelferValueTypeArray1234 { + yyl916 := r.ReadArrayStart() + if yyl916 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl899, d) + x.codecDecodeSelfFromArray(yyl916, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -13199,12 +13518,12 @@ func (x *SecretVolumeSource) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys900Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys900Slc - var yyhl900 bool = l >= 0 - for yyj900 := 0; ; yyj900++ { - if yyhl900 { - if yyj900 >= l { + 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 { @@ -13213,10 +13532,10 @@ func (x *SecretVolumeSource) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys900Slc = r.DecodeBytes(yys900Slc, true, true) - yys900 := string(yys900Slc) + yys917Slc = r.DecodeBytes(yys917Slc, true, true) + yys917 := string(yys917Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys900 { + switch yys917 { case "secretName": if r.TryDecodeAsNil() { x.SecretName = "" @@ -13227,12 +13546,12 @@ func (x *SecretVolumeSource) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) if r.TryDecodeAsNil() { x.Items = nil } else { - yyv902 := &x.Items - yym903 := z.DecBinary() - _ = yym903 + yyv919 := &x.Items + yym920 := z.DecBinary() + _ = yym920 if false { } else { - h.decSliceKeyToPath((*[]KeyToPath)(yyv902), d) + h.decSliceKeyToPath((*[]KeyToPath)(yyv919), d) } } case "defaultMode": @@ -13244,17 +13563,17 @@ func (x *SecretVolumeSource) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) if x.DefaultMode == nil { x.DefaultMode = new(int32) } - yym905 := z.DecBinary() - _ = yym905 + yym922 := z.DecBinary() + _ = yym922 if false { } else { *((*int32)(x.DefaultMode)) = int32(r.DecodeInt(32)) } } default: - z.DecStructFieldNotFound(-1, yys900) - } // end switch yys900 - } // end for yyj900 + z.DecStructFieldNotFound(-1, yys917) + } // end switch yys917 + } // end for yyj917 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -13262,16 +13581,16 @@ func (x *SecretVolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Decode var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj906 int - var yyb906 bool - var yyhl906 bool = l >= 0 - yyj906++ - if yyhl906 { - yyb906 = yyj906 > l + var yyj923 int + var yyb923 bool + var yyhl923 bool = l >= 0 + yyj923++ + if yyhl923 { + yyb923 = yyj923 > l } else { - yyb906 = r.CheckBreak() + yyb923 = r.CheckBreak() } - if yyb906 { + if yyb923 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -13281,13 +13600,13 @@ func (x *SecretVolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Decode } else { x.SecretName = string(r.DecodeString()) } - yyj906++ - if yyhl906 { - yyb906 = yyj906 > l + yyj923++ + if yyhl923 { + yyb923 = yyj923 > l } else { - yyb906 = r.CheckBreak() + yyb923 = r.CheckBreak() } - if yyb906 { + if yyb923 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -13295,21 +13614,21 @@ func (x *SecretVolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Decode if r.TryDecodeAsNil() { x.Items = nil } else { - yyv908 := &x.Items - yym909 := z.DecBinary() - _ = yym909 + yyv925 := &x.Items + yym926 := z.DecBinary() + _ = yym926 if false { } else { - h.decSliceKeyToPath((*[]KeyToPath)(yyv908), d) + h.decSliceKeyToPath((*[]KeyToPath)(yyv925), d) } } - yyj906++ - if yyhl906 { - yyb906 = yyj906 > l + yyj923++ + if yyhl923 { + yyb923 = yyj923 > l } else { - yyb906 = r.CheckBreak() + yyb923 = r.CheckBreak() } - if yyb906 { + if yyb923 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -13322,25 +13641,25 @@ func (x *SecretVolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Decode if x.DefaultMode == nil { x.DefaultMode = new(int32) } - yym911 := z.DecBinary() - _ = yym911 + yym928 := z.DecBinary() + _ = yym928 if false { } else { *((*int32)(x.DefaultMode)) = int32(r.DecodeInt(32)) } } for { - yyj906++ - if yyhl906 { - yyb906 = yyj906 > l + yyj923++ + if yyhl923 { + yyb923 = yyj923 > l } else { - yyb906 = r.CheckBreak() + yyb923 = r.CheckBreak() } - if yyb906 { + if yyb923 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj906-1, "") + z.DecStructFieldNotFound(yyj923-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -13352,34 +13671,34 @@ func (x *NFSVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym912 := z.EncBinary() - _ = yym912 + yym929 := z.EncBinary() + _ = yym929 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - 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 { + yysep930 := !z.EncBinary() + yy2arr930 := z.EncBasicHandle().StructToArray + var yyq930 [3]bool + _, _, _ = yysep930, yyq930, yy2arr930 + const yyr930 bool = false + yyq930[2] = x.ReadOnly != false + var yynn930 int + if yyr930 || yy2arr930 { r.EncodeArrayStart(3) } else { - yynn913 = 2 - for _, b := range yyq913 { + yynn930 = 2 + for _, b := range yyq930 { if b { - yynn913++ + yynn930++ } } - r.EncodeMapStart(yynn913) - yynn913 = 0 + r.EncodeMapStart(yynn930) + yynn930 = 0 } - if yyr913 || yy2arr913 { + if yyr930 || yy2arr930 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym915 := z.EncBinary() - _ = yym915 + yym932 := z.EncBinary() + _ = yym932 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Server)) @@ -13388,17 +13707,17 @@ func (x *NFSVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("server")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym916 := z.EncBinary() - _ = yym916 + yym933 := z.EncBinary() + _ = yym933 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Server)) } } - if yyr913 || yy2arr913 { + if yyr930 || yy2arr930 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym918 := z.EncBinary() - _ = yym918 + yym935 := z.EncBinary() + _ = yym935 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Path)) @@ -13407,18 +13726,18 @@ func (x *NFSVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("path")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym919 := z.EncBinary() - _ = yym919 + yym936 := z.EncBinary() + _ = yym936 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Path)) } } - if yyr913 || yy2arr913 { + if yyr930 || yy2arr930 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq913[2] { - yym921 := z.EncBinary() - _ = yym921 + if yyq930[2] { + yym938 := z.EncBinary() + _ = yym938 if false { } else { r.EncodeBool(bool(x.ReadOnly)) @@ -13427,19 +13746,19 @@ func (x *NFSVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeBool(false) } } else { - if yyq913[2] { + if yyq930[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("readOnly")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym922 := z.EncBinary() - _ = yym922 + yym939 := z.EncBinary() + _ = yym939 if false { } else { r.EncodeBool(bool(x.ReadOnly)) } } } - if yyr913 || yy2arr913 { + if yyr930 || yy2arr930 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -13452,25 +13771,25 @@ func (x *NFSVolumeSource) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym923 := z.DecBinary() - _ = yym923 + yym940 := z.DecBinary() + _ = yym940 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct924 := r.ContainerType() - if yyct924 == codecSelferValueTypeMap1234 { - yyl924 := r.ReadMapStart() - if yyl924 == 0 { + yyct941 := r.ContainerType() + if yyct941 == codecSelferValueTypeMap1234 { + yyl941 := r.ReadMapStart() + if yyl941 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl924, d) + x.codecDecodeSelfFromMap(yyl941, d) } - } else if yyct924 == codecSelferValueTypeArray1234 { - yyl924 := r.ReadArrayStart() - if yyl924 == 0 { + } else if yyct941 == codecSelferValueTypeArray1234 { + yyl941 := r.ReadArrayStart() + if yyl941 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl924, d) + x.codecDecodeSelfFromArray(yyl941, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -13482,12 +13801,12 @@ func (x *NFSVolumeSource) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys925Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys925Slc - var yyhl925 bool = l >= 0 - for yyj925 := 0; ; yyj925++ { - if yyhl925 { - if yyj925 >= l { + var yys942Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys942Slc + var yyhl942 bool = l >= 0 + for yyj942 := 0; ; yyj942++ { + if yyhl942 { + if yyj942 >= l { break } } else { @@ -13496,10 +13815,10 @@ func (x *NFSVolumeSource) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys925Slc = r.DecodeBytes(yys925Slc, true, true) - yys925 := string(yys925Slc) + yys942Slc = r.DecodeBytes(yys942Slc, true, true) + yys942 := string(yys942Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys925 { + switch yys942 { case "server": if r.TryDecodeAsNil() { x.Server = "" @@ -13519,9 +13838,9 @@ func (x *NFSVolumeSource) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { x.ReadOnly = bool(r.DecodeBool()) } default: - z.DecStructFieldNotFound(-1, yys925) - } // end switch yys925 - } // end for yyj925 + z.DecStructFieldNotFound(-1, yys942) + } // end switch yys942 + } // end for yyj942 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -13529,16 +13848,16 @@ func (x *NFSVolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj929 int - var yyb929 bool - var yyhl929 bool = l >= 0 - yyj929++ - if yyhl929 { - yyb929 = yyj929 > l + var yyj946 int + var yyb946 bool + var yyhl946 bool = l >= 0 + yyj946++ + if yyhl946 { + yyb946 = yyj946 > l } else { - yyb929 = r.CheckBreak() + yyb946 = r.CheckBreak() } - if yyb929 { + if yyb946 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -13548,13 +13867,13 @@ func (x *NFSVolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) } else { x.Server = string(r.DecodeString()) } - yyj929++ - if yyhl929 { - yyb929 = yyj929 > l + yyj946++ + if yyhl946 { + yyb946 = yyj946 > l } else { - yyb929 = r.CheckBreak() + yyb946 = r.CheckBreak() } - if yyb929 { + if yyb946 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -13564,13 +13883,13 @@ func (x *NFSVolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) } else { x.Path = string(r.DecodeString()) } - yyj929++ - if yyhl929 { - yyb929 = yyj929 > l + yyj946++ + if yyhl946 { + yyb946 = yyj946 > l } else { - yyb929 = r.CheckBreak() + yyb946 = r.CheckBreak() } - if yyb929 { + if yyb946 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -13581,17 +13900,17 @@ func (x *NFSVolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) x.ReadOnly = bool(r.DecodeBool()) } for { - yyj929++ - if yyhl929 { - yyb929 = yyj929 > l + yyj946++ + if yyhl946 { + yyb946 = yyj946 > l } else { - yyb929 = r.CheckBreak() + yyb946 = r.CheckBreak() } - if yyb929 { + if yyb946 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj929-1, "") + z.DecStructFieldNotFound(yyj946-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -13603,36 +13922,36 @@ func (x *ISCSIVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym933 := z.EncBinary() - _ = yym933 + yym950 := z.EncBinary() + _ = yym950 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - 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 { + yysep951 := !z.EncBinary() + yy2arr951 := z.EncBasicHandle().StructToArray + var yyq951 [6]bool + _, _, _ = yysep951, yyq951, yy2arr951 + const yyr951 bool = false + yyq951[3] = x.ISCSIInterface != "" + yyq951[4] = x.FSType != "" + yyq951[5] = x.ReadOnly != false + var yynn951 int + if yyr951 || yy2arr951 { r.EncodeArrayStart(6) } else { - yynn934 = 3 - for _, b := range yyq934 { + yynn951 = 3 + for _, b := range yyq951 { if b { - yynn934++ + yynn951++ } } - r.EncodeMapStart(yynn934) - yynn934 = 0 + r.EncodeMapStart(yynn951) + yynn951 = 0 } - if yyr934 || yy2arr934 { + if yyr951 || yy2arr951 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym936 := z.EncBinary() - _ = yym936 + yym953 := z.EncBinary() + _ = yym953 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.TargetPortal)) @@ -13641,17 +13960,17 @@ func (x *ISCSIVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("targetPortal")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym937 := z.EncBinary() - _ = yym937 + yym954 := z.EncBinary() + _ = yym954 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.TargetPortal)) } } - if yyr934 || yy2arr934 { + if yyr951 || yy2arr951 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym939 := z.EncBinary() - _ = yym939 + yym956 := z.EncBinary() + _ = yym956 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.IQN)) @@ -13660,17 +13979,17 @@ func (x *ISCSIVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("iqn")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym940 := z.EncBinary() - _ = yym940 + yym957 := z.EncBinary() + _ = yym957 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.IQN)) } } - if yyr934 || yy2arr934 { + if yyr951 || yy2arr951 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym942 := z.EncBinary() - _ = yym942 + yym959 := z.EncBinary() + _ = yym959 if false { } else { r.EncodeInt(int64(x.Lun)) @@ -13679,18 +13998,18 @@ func (x *ISCSIVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("lun")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym943 := z.EncBinary() - _ = yym943 + yym960 := z.EncBinary() + _ = yym960 if false { } else { r.EncodeInt(int64(x.Lun)) } } - if yyr934 || yy2arr934 { + if yyr951 || yy2arr951 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq934[3] { - yym945 := z.EncBinary() - _ = yym945 + if yyq951[3] { + yym962 := z.EncBinary() + _ = yym962 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.ISCSIInterface)) @@ -13699,23 +14018,23 @@ func (x *ISCSIVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq934[3] { + if yyq951[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("iscsiInterface")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym946 := z.EncBinary() - _ = yym946 + yym963 := z.EncBinary() + _ = yym963 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.ISCSIInterface)) } } } - if yyr934 || yy2arr934 { + if yyr951 || yy2arr951 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq934[4] { - yym948 := z.EncBinary() - _ = yym948 + if yyq951[4] { + yym965 := z.EncBinary() + _ = yym965 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.FSType)) @@ -13724,23 +14043,23 @@ func (x *ISCSIVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq934[4] { + if yyq951[4] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("fsType")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym949 := z.EncBinary() - _ = yym949 + yym966 := z.EncBinary() + _ = yym966 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.FSType)) } } } - if yyr934 || yy2arr934 { + if yyr951 || yy2arr951 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq934[5] { - yym951 := z.EncBinary() - _ = yym951 + if yyq951[5] { + yym968 := z.EncBinary() + _ = yym968 if false { } else { r.EncodeBool(bool(x.ReadOnly)) @@ -13749,19 +14068,19 @@ func (x *ISCSIVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeBool(false) } } else { - if yyq934[5] { + if yyq951[5] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("readOnly")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym952 := z.EncBinary() - _ = yym952 + yym969 := z.EncBinary() + _ = yym969 if false { } else { r.EncodeBool(bool(x.ReadOnly)) } } } - if yyr934 || yy2arr934 { + if yyr951 || yy2arr951 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -13774,25 +14093,25 @@ func (x *ISCSIVolumeSource) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym953 := z.DecBinary() - _ = yym953 + yym970 := z.DecBinary() + _ = yym970 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct954 := r.ContainerType() - if yyct954 == codecSelferValueTypeMap1234 { - yyl954 := r.ReadMapStart() - if yyl954 == 0 { + yyct971 := r.ContainerType() + if yyct971 == codecSelferValueTypeMap1234 { + yyl971 := r.ReadMapStart() + if yyl971 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl954, d) + x.codecDecodeSelfFromMap(yyl971, d) } - } else if yyct954 == codecSelferValueTypeArray1234 { - yyl954 := r.ReadArrayStart() - if yyl954 == 0 { + } else if yyct971 == codecSelferValueTypeArray1234 { + yyl971 := r.ReadArrayStart() + if yyl971 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl954, d) + x.codecDecodeSelfFromArray(yyl971, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -13804,12 +14123,12 @@ func (x *ISCSIVolumeSource) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys955Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys955Slc - var yyhl955 bool = l >= 0 - for yyj955 := 0; ; yyj955++ { - if yyhl955 { - if yyj955 >= l { + var yys972Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys972Slc + var yyhl972 bool = l >= 0 + for yyj972 := 0; ; yyj972++ { + if yyhl972 { + if yyj972 >= l { break } } else { @@ -13818,10 +14137,10 @@ func (x *ISCSIVolumeSource) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys955Slc = r.DecodeBytes(yys955Slc, true, true) - yys955 := string(yys955Slc) + yys972Slc = r.DecodeBytes(yys972Slc, true, true) + yys972 := string(yys972Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys955 { + switch yys972 { case "targetPortal": if r.TryDecodeAsNil() { x.TargetPortal = "" @@ -13859,9 +14178,9 @@ func (x *ISCSIVolumeSource) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) x.ReadOnly = bool(r.DecodeBool()) } default: - z.DecStructFieldNotFound(-1, yys955) - } // end switch yys955 - } // end for yyj955 + z.DecStructFieldNotFound(-1, yys972) + } // end switch yys972 + } // end for yyj972 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -13869,16 +14188,16 @@ func (x *ISCSIVolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Decoder var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj962 int - var yyb962 bool - var yyhl962 bool = l >= 0 - yyj962++ - if yyhl962 { - yyb962 = yyj962 > l + var yyj979 int + var yyb979 bool + var yyhl979 bool = l >= 0 + yyj979++ + if yyhl979 { + yyb979 = yyj979 > l } else { - yyb962 = r.CheckBreak() + yyb979 = r.CheckBreak() } - if yyb962 { + if yyb979 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -13888,13 +14207,13 @@ func (x *ISCSIVolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Decoder } else { x.TargetPortal = string(r.DecodeString()) } - yyj962++ - if yyhl962 { - yyb962 = yyj962 > l + yyj979++ + if yyhl979 { + yyb979 = yyj979 > l } else { - yyb962 = r.CheckBreak() + yyb979 = r.CheckBreak() } - if yyb962 { + if yyb979 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -13904,13 +14223,13 @@ func (x *ISCSIVolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Decoder } else { x.IQN = string(r.DecodeString()) } - yyj962++ - if yyhl962 { - yyb962 = yyj962 > l + yyj979++ + if yyhl979 { + yyb979 = yyj979 > l } else { - yyb962 = r.CheckBreak() + yyb979 = r.CheckBreak() } - if yyb962 { + if yyb979 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -13920,13 +14239,13 @@ func (x *ISCSIVolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Decoder } else { x.Lun = int32(r.DecodeInt(32)) } - yyj962++ - if yyhl962 { - yyb962 = yyj962 > l + yyj979++ + if yyhl979 { + yyb979 = yyj979 > l } else { - yyb962 = r.CheckBreak() + yyb979 = r.CheckBreak() } - if yyb962 { + if yyb979 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -13936,13 +14255,13 @@ func (x *ISCSIVolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Decoder } else { x.ISCSIInterface = string(r.DecodeString()) } - yyj962++ - if yyhl962 { - yyb962 = yyj962 > l + yyj979++ + if yyhl979 { + yyb979 = yyj979 > l } else { - yyb962 = r.CheckBreak() + yyb979 = r.CheckBreak() } - if yyb962 { + if yyb979 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -13952,13 +14271,13 @@ func (x *ISCSIVolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Decoder } else { x.FSType = string(r.DecodeString()) } - yyj962++ - if yyhl962 { - yyb962 = yyj962 > l + yyj979++ + if yyhl979 { + yyb979 = yyj979 > l } else { - yyb962 = r.CheckBreak() + yyb979 = r.CheckBreak() } - if yyb962 { + if yyb979 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -13969,17 +14288,17 @@ func (x *ISCSIVolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Decoder x.ReadOnly = bool(r.DecodeBool()) } for { - yyj962++ - if yyhl962 { - yyb962 = yyj962 > l + yyj979++ + if yyhl979 { + yyb979 = yyj979 > l } else { - yyb962 = r.CheckBreak() + yyb979 = r.CheckBreak() } - if yyb962 { + if yyb979 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj962-1, "") + z.DecStructFieldNotFound(yyj979-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -13991,38 +14310,38 @@ func (x *FCVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym969 := z.EncBinary() - _ = yym969 + yym986 := z.EncBinary() + _ = yym986 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - 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 { + yysep987 := !z.EncBinary() + yy2arr987 := z.EncBasicHandle().StructToArray + var yyq987 [4]bool + _, _, _ = yysep987, yyq987, yy2arr987 + const yyr987 bool = false + yyq987[2] = x.FSType != "" + yyq987[3] = x.ReadOnly != false + var yynn987 int + if yyr987 || yy2arr987 { r.EncodeArrayStart(4) } else { - yynn970 = 2 - for _, b := range yyq970 { + yynn987 = 2 + for _, b := range yyq987 { if b { - yynn970++ + yynn987++ } } - r.EncodeMapStart(yynn970) - yynn970 = 0 + r.EncodeMapStart(yynn987) + yynn987 = 0 } - if yyr970 || yy2arr970 { + if yyr987 || yy2arr987 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.TargetWWNs == nil { r.EncodeNil() } else { - yym972 := z.EncBinary() - _ = yym972 + yym989 := z.EncBinary() + _ = yym989 if false { } else { z.F.EncSliceStringV(x.TargetWWNs, false, e) @@ -14035,25 +14354,25 @@ func (x *FCVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { if x.TargetWWNs == nil { r.EncodeNil() } else { - yym973 := z.EncBinary() - _ = yym973 + yym990 := z.EncBinary() + _ = yym990 if false { } else { z.F.EncSliceStringV(x.TargetWWNs, false, e) } } } - if yyr970 || yy2arr970 { + if yyr987 || yy2arr987 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.Lun == nil { r.EncodeNil() } else { - yy975 := *x.Lun - yym976 := z.EncBinary() - _ = yym976 + yy992 := *x.Lun + yym993 := z.EncBinary() + _ = yym993 if false { } else { - r.EncodeInt(int64(yy975)) + r.EncodeInt(int64(yy992)) } } } else { @@ -14063,20 +14382,20 @@ func (x *FCVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { if x.Lun == nil { r.EncodeNil() } else { - yy977 := *x.Lun - yym978 := z.EncBinary() - _ = yym978 + yy994 := *x.Lun + yym995 := z.EncBinary() + _ = yym995 if false { } else { - r.EncodeInt(int64(yy977)) + r.EncodeInt(int64(yy994)) } } } - if yyr970 || yy2arr970 { + if yyr987 || yy2arr987 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq970[2] { - yym980 := z.EncBinary() - _ = yym980 + if yyq987[2] { + yym997 := z.EncBinary() + _ = yym997 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.FSType)) @@ -14085,23 +14404,23 @@ func (x *FCVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq970[2] { + if yyq987[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("fsType")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym981 := z.EncBinary() - _ = yym981 + yym998 := z.EncBinary() + _ = yym998 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.FSType)) } } } - if yyr970 || yy2arr970 { + if yyr987 || yy2arr987 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq970[3] { - yym983 := z.EncBinary() - _ = yym983 + if yyq987[3] { + yym1000 := z.EncBinary() + _ = yym1000 if false { } else { r.EncodeBool(bool(x.ReadOnly)) @@ -14110,19 +14429,19 @@ func (x *FCVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeBool(false) } } else { - if yyq970[3] { + if yyq987[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("readOnly")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym984 := z.EncBinary() - _ = yym984 + yym1001 := z.EncBinary() + _ = yym1001 if false { } else { r.EncodeBool(bool(x.ReadOnly)) } } } - if yyr970 || yy2arr970 { + if yyr987 || yy2arr987 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -14135,25 +14454,25 @@ func (x *FCVolumeSource) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym985 := z.DecBinary() - _ = yym985 + yym1002 := z.DecBinary() + _ = yym1002 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct986 := r.ContainerType() - if yyct986 == codecSelferValueTypeMap1234 { - yyl986 := r.ReadMapStart() - if yyl986 == 0 { + yyct1003 := r.ContainerType() + if yyct1003 == codecSelferValueTypeMap1234 { + yyl1003 := r.ReadMapStart() + if yyl1003 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl986, d) + x.codecDecodeSelfFromMap(yyl1003, d) } - } else if yyct986 == codecSelferValueTypeArray1234 { - yyl986 := r.ReadArrayStart() - if yyl986 == 0 { + } else if yyct1003 == codecSelferValueTypeArray1234 { + yyl1003 := r.ReadArrayStart() + if yyl1003 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl986, d) + x.codecDecodeSelfFromArray(yyl1003, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -14165,12 +14484,12 @@ func (x *FCVolumeSource) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys987Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys987Slc - var yyhl987 bool = l >= 0 - for yyj987 := 0; ; yyj987++ { - if yyhl987 { - if yyj987 >= l { + var yys1004Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys1004Slc + var yyhl1004 bool = l >= 0 + for yyj1004 := 0; ; yyj1004++ { + if yyhl1004 { + if yyj1004 >= l { break } } else { @@ -14179,20 +14498,20 @@ func (x *FCVolumeSource) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys987Slc = r.DecodeBytes(yys987Slc, true, true) - yys987 := string(yys987Slc) + yys1004Slc = r.DecodeBytes(yys1004Slc, true, true) + yys1004 := string(yys1004Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys987 { + switch yys1004 { case "targetWWNs": if r.TryDecodeAsNil() { x.TargetWWNs = nil } else { - yyv988 := &x.TargetWWNs - yym989 := z.DecBinary() - _ = yym989 + yyv1005 := &x.TargetWWNs + yym1006 := z.DecBinary() + _ = yym1006 if false { } else { - z.F.DecSliceStringX(yyv988, false, d) + z.F.DecSliceStringX(yyv1005, false, d) } } case "lun": @@ -14204,8 +14523,8 @@ func (x *FCVolumeSource) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { if x.Lun == nil { x.Lun = new(int32) } - yym991 := z.DecBinary() - _ = yym991 + yym1008 := z.DecBinary() + _ = yym1008 if false { } else { *((*int32)(x.Lun)) = int32(r.DecodeInt(32)) @@ -14224,9 +14543,9 @@ func (x *FCVolumeSource) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { x.ReadOnly = bool(r.DecodeBool()) } default: - z.DecStructFieldNotFound(-1, yys987) - } // end switch yys987 - } // end for yyj987 + z.DecStructFieldNotFound(-1, yys1004) + } // end switch yys1004 + } // end for yyj1004 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -14234,16 +14553,16 @@ func (x *FCVolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj994 int - var yyb994 bool - var yyhl994 bool = l >= 0 - yyj994++ - if yyhl994 { - yyb994 = yyj994 > l + var yyj1011 int + var yyb1011 bool + var yyhl1011 bool = l >= 0 + yyj1011++ + if yyhl1011 { + yyb1011 = yyj1011 > l } else { - yyb994 = r.CheckBreak() + yyb1011 = r.CheckBreak() } - if yyb994 { + if yyb1011 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -14251,21 +14570,21 @@ func (x *FCVolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.TargetWWNs = nil } else { - yyv995 := &x.TargetWWNs - yym996 := z.DecBinary() - _ = yym996 + yyv1012 := &x.TargetWWNs + yym1013 := z.DecBinary() + _ = yym1013 if false { } else { - z.F.DecSliceStringX(yyv995, false, d) + z.F.DecSliceStringX(yyv1012, false, d) } } - yyj994++ - if yyhl994 { - yyb994 = yyj994 > l + yyj1011++ + if yyhl1011 { + yyb1011 = yyj1011 > l } else { - yyb994 = r.CheckBreak() + yyb1011 = r.CheckBreak() } - if yyb994 { + if yyb1011 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -14278,20 +14597,20 @@ func (x *FCVolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if x.Lun == nil { x.Lun = new(int32) } - yym998 := z.DecBinary() - _ = yym998 + yym1015 := z.DecBinary() + _ = yym1015 if false { } else { *((*int32)(x.Lun)) = int32(r.DecodeInt(32)) } } - yyj994++ - if yyhl994 { - yyb994 = yyj994 > l + yyj1011++ + if yyhl1011 { + yyb1011 = yyj1011 > l } else { - yyb994 = r.CheckBreak() + yyb1011 = r.CheckBreak() } - if yyb994 { + if yyb1011 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -14301,13 +14620,13 @@ func (x *FCVolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.FSType = string(r.DecodeString()) } - yyj994++ - if yyhl994 { - yyb994 = yyj994 > l + yyj1011++ + if yyhl1011 { + yyb1011 = yyj1011 > l } else { - yyb994 = r.CheckBreak() + yyb1011 = r.CheckBreak() } - if yyb994 { + if yyb1011 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -14318,17 +14637,17 @@ func (x *FCVolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { x.ReadOnly = bool(r.DecodeBool()) } for { - yyj994++ - if yyhl994 { - yyb994 = yyj994 > l + yyj1011++ + if yyhl1011 { + yyb1011 = yyj1011 > l } else { - yyb994 = r.CheckBreak() + yyb1011 = r.CheckBreak() } - if yyb994 { + if yyb1011 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj994-1, "") + z.DecStructFieldNotFound(yyj1011-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -14340,34 +14659,34 @@ func (x *AzureFileVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1001 := z.EncBinary() - _ = yym1001 + yym1018 := z.EncBinary() + _ = yym1018 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - 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 { + yysep1019 := !z.EncBinary() + yy2arr1019 := z.EncBasicHandle().StructToArray + var yyq1019 [3]bool + _, _, _ = yysep1019, yyq1019, yy2arr1019 + const yyr1019 bool = false + yyq1019[2] = x.ReadOnly != false + var yynn1019 int + if yyr1019 || yy2arr1019 { r.EncodeArrayStart(3) } else { - yynn1002 = 2 - for _, b := range yyq1002 { + yynn1019 = 2 + for _, b := range yyq1019 { if b { - yynn1002++ + yynn1019++ } } - r.EncodeMapStart(yynn1002) - yynn1002 = 0 + r.EncodeMapStart(yynn1019) + yynn1019 = 0 } - if yyr1002 || yy2arr1002 { + if yyr1019 || yy2arr1019 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym1004 := z.EncBinary() - _ = yym1004 + yym1021 := z.EncBinary() + _ = yym1021 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.SecretName)) @@ -14376,17 +14695,17 @@ func (x *AzureFileVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("secretName")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym1005 := z.EncBinary() - _ = yym1005 + yym1022 := z.EncBinary() + _ = yym1022 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.SecretName)) } } - if yyr1002 || yy2arr1002 { + if yyr1019 || yy2arr1019 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym1007 := z.EncBinary() - _ = yym1007 + yym1024 := z.EncBinary() + _ = yym1024 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.ShareName)) @@ -14395,18 +14714,18 @@ func (x *AzureFileVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("shareName")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym1008 := z.EncBinary() - _ = yym1008 + yym1025 := z.EncBinary() + _ = yym1025 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.ShareName)) } } - if yyr1002 || yy2arr1002 { + if yyr1019 || yy2arr1019 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1002[2] { - yym1010 := z.EncBinary() - _ = yym1010 + if yyq1019[2] { + yym1027 := z.EncBinary() + _ = yym1027 if false { } else { r.EncodeBool(bool(x.ReadOnly)) @@ -14415,19 +14734,19 @@ func (x *AzureFileVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeBool(false) } } else { - if yyq1002[2] { + if yyq1019[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("readOnly")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym1011 := z.EncBinary() - _ = yym1011 + yym1028 := z.EncBinary() + _ = yym1028 if false { } else { r.EncodeBool(bool(x.ReadOnly)) } } } - if yyr1002 || yy2arr1002 { + if yyr1019 || yy2arr1019 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -14440,25 +14759,25 @@ func (x *AzureFileVolumeSource) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1012 := z.DecBinary() - _ = yym1012 + yym1029 := z.DecBinary() + _ = yym1029 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct1013 := r.ContainerType() - if yyct1013 == codecSelferValueTypeMap1234 { - yyl1013 := r.ReadMapStart() - if yyl1013 == 0 { + yyct1030 := r.ContainerType() + if yyct1030 == codecSelferValueTypeMap1234 { + yyl1030 := r.ReadMapStart() + if yyl1030 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl1013, d) + x.codecDecodeSelfFromMap(yyl1030, d) } - } else if yyct1013 == codecSelferValueTypeArray1234 { - yyl1013 := r.ReadArrayStart() - if yyl1013 == 0 { + } else if yyct1030 == codecSelferValueTypeArray1234 { + yyl1030 := r.ReadArrayStart() + if yyl1030 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl1013, d) + x.codecDecodeSelfFromArray(yyl1030, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -14470,12 +14789,12 @@ func (x *AzureFileVolumeSource) codecDecodeSelfFromMap(l int, d *codec1978.Decod var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys1014Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys1014Slc - var yyhl1014 bool = l >= 0 - for yyj1014 := 0; ; yyj1014++ { - if yyhl1014 { - if yyj1014 >= l { + var yys1031Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys1031Slc + var yyhl1031 bool = l >= 0 + for yyj1031 := 0; ; yyj1031++ { + if yyhl1031 { + if yyj1031 >= l { break } } else { @@ -14484,10 +14803,10 @@ func (x *AzureFileVolumeSource) codecDecodeSelfFromMap(l int, d *codec1978.Decod } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys1014Slc = r.DecodeBytes(yys1014Slc, true, true) - yys1014 := string(yys1014Slc) + yys1031Slc = r.DecodeBytes(yys1031Slc, true, true) + yys1031 := string(yys1031Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys1014 { + switch yys1031 { case "secretName": if r.TryDecodeAsNil() { x.SecretName = "" @@ -14507,239 +14826,13 @@ func (x *AzureFileVolumeSource) codecDecodeSelfFromMap(l int, d *codec1978.Decod x.ReadOnly = bool(r.DecodeBool()) } default: - z.DecStructFieldNotFound(-1, yys1014) - } // end switch yys1014 - } // end for yyj1014 + z.DecStructFieldNotFound(-1, yys1031) + } // end switch yys1031 + } // end for yyj1031 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 yyj1018 int - var yyb1018 bool - var yyhl1018 bool = l >= 0 - yyj1018++ - if yyhl1018 { - yyb1018 = yyj1018 > l - } else { - yyb1018 = r.CheckBreak() - } - if yyb1018 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.SecretName = "" - } else { - x.SecretName = string(r.DecodeString()) - } - yyj1018++ - if yyhl1018 { - yyb1018 = yyj1018 > l - } else { - yyb1018 = r.CheckBreak() - } - if yyb1018 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.ShareName = "" - } else { - x.ShareName = string(r.DecodeString()) - } - yyj1018++ - if yyhl1018 { - yyb1018 = yyj1018 > l - } else { - yyb1018 = r.CheckBreak() - } - if yyb1018 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.ReadOnly = false - } else { - x.ReadOnly = bool(r.DecodeBool()) - } - for { - yyj1018++ - if yyhl1018 { - yyb1018 = yyj1018 > l - } else { - yyb1018 = r.CheckBreak() - } - if yyb1018 { - break - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj1018-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 { - yym1022 := z.EncBinary() - _ = yym1022 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - 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 { - yynn1023 = 1 - for _, b := range yyq1023 { - if b { - yynn1023++ - } - } - r.EncodeMapStart(yynn1023) - yynn1023 = 0 - } - if yyr1023 || yy2arr1023 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym1025 := z.EncBinary() - _ = yym1025 - 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) - yym1026 := z.EncBinary() - _ = yym1026 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.VolumePath)) - } - } - if yyr1023 || yy2arr1023 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1023[1] { - yym1028 := z.EncBinary() - _ = yym1028 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.FSType)) - } - } else { - r.EncodeString(codecSelferC_UTF81234, "") - } - } else { - if yyq1023[1] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("fsType")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym1029 := z.EncBinary() - _ = yym1029 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.FSType)) - } - } - } - if yyr1023 || yy2arr1023 { - 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 - yym1030 := z.DecBinary() - _ = yym1030 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - yyct1031 := r.ContainerType() - if yyct1031 == codecSelferValueTypeMap1234 { - yyl1031 := r.ReadMapStart() - if yyl1031 == 0 { - z.DecSendContainerState(codecSelfer_containerMapEnd1234) - } else { - x.codecDecodeSelfFromMap(yyl1031, d) - } - } else if yyct1031 == codecSelferValueTypeArray1234 { - yyl1031 := r.ReadArrayStart() - if yyl1031 == 0 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - x.codecDecodeSelfFromArray(yyl1031, 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 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 { - if r.CheckBreak() { - break - } - } - z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys1032Slc = r.DecodeBytes(yys1032Slc, true, true) - yys1032 := string(yys1032Slc) - z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys1032 { - 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, yys1032) - } // end switch yys1032 - } // end for yyj1032 - z.DecSendContainerState(codecSelfer_containerMapEnd1234) -} - -func (x *VsphereVirtualDiskVolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r @@ -14758,9 +14851,9 @@ func (x *VsphereVirtualDiskVolumeSource) codecDecodeSelfFromArray(l int, d *code } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.VolumePath = "" + x.SecretName = "" } else { - x.VolumePath = string(r.DecodeString()) + x.SecretName = string(r.DecodeString()) } yyj1035++ if yyhl1035 { @@ -14774,9 +14867,25 @@ func (x *VsphereVirtualDiskVolumeSource) codecDecodeSelfFromArray(l int, d *code } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.FSType = "" + x.ShareName = "" } else { - x.FSType = string(r.DecodeString()) + x.ShareName = string(r.DecodeString()) + } + yyj1035++ + if yyhl1035 { + yyb1035 = yyj1035 > l + } else { + yyb1035 = r.CheckBreak() + } + if yyb1035 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.ReadOnly = false + } else { + x.ReadOnly = bool(r.DecodeBool()) } for { yyj1035++ @@ -14794,12 +14903,432 @@ func (x *VsphereVirtualDiskVolumeSource) codecDecodeSelfFromArray(l int, d *code 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 { + yym1039 := z.EncBinary() + _ = yym1039 + if false { + } else if z.HasExtensions() && z.EncExt(x) { + } else { + yysep1040 := !z.EncBinary() + yy2arr1040 := z.EncBasicHandle().StructToArray + var yyq1040 [2]bool + _, _, _ = yysep1040, yyq1040, yy2arr1040 + const yyr1040 bool = false + yyq1040[1] = x.FSType != "" + var yynn1040 int + if yyr1040 || yy2arr1040 { + r.EncodeArrayStart(2) + } else { + yynn1040 = 1 + for _, b := range yyq1040 { + if b { + yynn1040++ + } + } + r.EncodeMapStart(yynn1040) + yynn1040 = 0 + } + if yyr1040 || yy2arr1040 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yym1042 := z.EncBinary() + _ = yym1042 + 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) + yym1043 := z.EncBinary() + _ = yym1043 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.VolumePath)) + } + } + if yyr1040 || yy2arr1040 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq1040[1] { + yym1045 := z.EncBinary() + _ = yym1045 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.FSType)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq1040[1] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("fsType")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym1046 := z.EncBinary() + _ = yym1046 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.FSType)) + } + } + } + if yyr1040 || yy2arr1040 { + 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 + yym1047 := z.DecBinary() + _ = yym1047 + if false { + } else if z.HasExtensions() && z.DecExt(x) { + } else { + yyct1048 := r.ContainerType() + if yyct1048 == codecSelferValueTypeMap1234 { + yyl1048 := r.ReadMapStart() + if yyl1048 == 0 { + z.DecSendContainerState(codecSelfer_containerMapEnd1234) + } else { + x.codecDecodeSelfFromMap(yyl1048, d) + } + } else if yyct1048 == codecSelferValueTypeArray1234 { + yyl1048 := r.ReadArrayStart() + if yyl1048 == 0 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + x.codecDecodeSelfFromArray(yyl1048, 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 yys1049Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys1049Slc + var yyhl1049 bool = l >= 0 + for yyj1049 := 0; ; yyj1049++ { + if yyhl1049 { + if yyj1049 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + z.DecSendContainerState(codecSelfer_containerMapKey1234) + yys1049Slc = r.DecodeBytes(yys1049Slc, true, true) + yys1049 := string(yys1049Slc) + z.DecSendContainerState(codecSelfer_containerMapValue1234) + switch yys1049 { + 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, yys1049) + } // end switch yys1049 + } // end for yyj1049 + 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 yyj1052 int + var yyb1052 bool + var yyhl1052 bool = l >= 0 + yyj1052++ + if yyhl1052 { + yyb1052 = yyj1052 > l + } else { + yyb1052 = r.CheckBreak() + } + if yyb1052 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.VolumePath = "" + } else { + x.VolumePath = string(r.DecodeString()) + } + yyj1052++ + if yyhl1052 { + yyb1052 = yyj1052 > l + } else { + yyb1052 = r.CheckBreak() + } + if yyb1052 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.FSType = "" + } else { + x.FSType = string(r.DecodeString()) + } + for { + yyj1052++ + if yyhl1052 { + yyb1052 = yyj1052 > l + } else { + yyb1052 = r.CheckBreak() + } + if yyb1052 { + break + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + z.DecStructFieldNotFound(yyj1052-1, "") + } + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) +} + +func (x *PhotonPersistentDiskVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + yym1055 := z.EncBinary() + _ = yym1055 + if false { + } else if z.HasExtensions() && z.EncExt(x) { + } else { + yysep1056 := !z.EncBinary() + yy2arr1056 := z.EncBasicHandle().StructToArray + var yyq1056 [2]bool + _, _, _ = yysep1056, yyq1056, yy2arr1056 + const yyr1056 bool = false + yyq1056[1] = x.FSType != "" + var yynn1056 int + if yyr1056 || yy2arr1056 { + r.EncodeArrayStart(2) + } else { + yynn1056 = 1 + for _, b := range yyq1056 { + if b { + yynn1056++ + } + } + r.EncodeMapStart(yynn1056) + yynn1056 = 0 + } + if yyr1056 || yy2arr1056 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yym1058 := z.EncBinary() + _ = yym1058 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.PdID)) + } + } else { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("pdID")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym1059 := z.EncBinary() + _ = yym1059 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.PdID)) + } + } + if yyr1056 || yy2arr1056 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq1056[1] { + yym1061 := z.EncBinary() + _ = yym1061 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.FSType)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq1056[1] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("fsType")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym1062 := z.EncBinary() + _ = yym1062 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.FSType)) + } + } + } + if yyr1056 || yy2arr1056 { + z.EncSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + z.EncSendContainerState(codecSelfer_containerMapEnd1234) + } + } + } +} + +func (x *PhotonPersistentDiskVolumeSource) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + yym1063 := z.DecBinary() + _ = yym1063 + if false { + } else if z.HasExtensions() && z.DecExt(x) { + } else { + yyct1064 := r.ContainerType() + if yyct1064 == codecSelferValueTypeMap1234 { + yyl1064 := r.ReadMapStart() + if yyl1064 == 0 { + z.DecSendContainerState(codecSelfer_containerMapEnd1234) + } else { + x.codecDecodeSelfFromMap(yyl1064, d) + } + } else if yyct1064 == codecSelferValueTypeArray1234 { + yyl1064 := r.ReadArrayStart() + if yyl1064 == 0 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + x.codecDecodeSelfFromArray(yyl1064, d) + } + } else { + panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) + } + } +} + +func (x *PhotonPersistentDiskVolumeSource) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yys1065Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys1065Slc + var yyhl1065 bool = l >= 0 + for yyj1065 := 0; ; yyj1065++ { + if yyhl1065 { + if yyj1065 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + z.DecSendContainerState(codecSelfer_containerMapKey1234) + yys1065Slc = r.DecodeBytes(yys1065Slc, true, true) + yys1065 := string(yys1065Slc) + z.DecSendContainerState(codecSelfer_containerMapValue1234) + switch yys1065 { + case "pdID": + if r.TryDecodeAsNil() { + x.PdID = "" + } else { + x.PdID = string(r.DecodeString()) + } + case "fsType": + if r.TryDecodeAsNil() { + x.FSType = "" + } else { + x.FSType = string(r.DecodeString()) + } + default: + z.DecStructFieldNotFound(-1, yys1065) + } // end switch yys1065 + } // end for yyj1065 + z.DecSendContainerState(codecSelfer_containerMapEnd1234) +} + +func (x *PhotonPersistentDiskVolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj1068 int + var yyb1068 bool + var yyhl1068 bool = l >= 0 + yyj1068++ + if yyhl1068 { + yyb1068 = yyj1068 > l + } else { + yyb1068 = r.CheckBreak() + } + if yyb1068 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.PdID = "" + } else { + x.PdID = string(r.DecodeString()) + } + yyj1068++ + if yyhl1068 { + yyb1068 = yyj1068 > l + } else { + yyb1068 = r.CheckBreak() + } + if yyb1068 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.FSType = "" + } else { + x.FSType = string(r.DecodeString()) + } + for { + yyj1068++ + if yyhl1068 { + yyb1068 = yyj1068 > l + } else { + yyb1068 = r.CheckBreak() + } + if yyb1068 { + break + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + z.DecStructFieldNotFound(yyj1068-1, "") + } + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) +} + func (x AzureDataDiskCachingMode) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r - yym1038 := z.EncBinary() - _ = yym1038 + yym1071 := z.EncBinary() + _ = yym1071 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { @@ -14811,8 +15340,8 @@ func (x *AzureDataDiskCachingMode) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1039 := z.DecBinary() - _ = yym1039 + yym1072 := z.DecBinary() + _ = yym1072 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { @@ -14827,36 +15356,36 @@ func (x *AzureDiskVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1040 := z.EncBinary() - _ = yym1040 + yym1073 := z.EncBinary() + _ = yym1073 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep1041 := !z.EncBinary() - yy2arr1041 := z.EncBasicHandle().StructToArray - var yyq1041 [5]bool - _, _, _ = yysep1041, yyq1041, yy2arr1041 - const yyr1041 bool = false - yyq1041[2] = x.CachingMode != nil - yyq1041[3] = x.FSType != nil - yyq1041[4] = x.ReadOnly != nil - var yynn1041 int - if yyr1041 || yy2arr1041 { + yysep1074 := !z.EncBinary() + yy2arr1074 := z.EncBasicHandle().StructToArray + var yyq1074 [5]bool + _, _, _ = yysep1074, yyq1074, yy2arr1074 + const yyr1074 bool = false + yyq1074[2] = x.CachingMode != nil + yyq1074[3] = x.FSType != nil + yyq1074[4] = x.ReadOnly != nil + var yynn1074 int + if yyr1074 || yy2arr1074 { r.EncodeArrayStart(5) } else { - yynn1041 = 2 - for _, b := range yyq1041 { + yynn1074 = 2 + for _, b := range yyq1074 { if b { - yynn1041++ + yynn1074++ } } - r.EncodeMapStart(yynn1041) - yynn1041 = 0 + r.EncodeMapStart(yynn1074) + yynn1074 = 0 } - if yyr1041 || yy2arr1041 { + if yyr1074 || yy2arr1074 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym1043 := z.EncBinary() - _ = yym1043 + yym1076 := z.EncBinary() + _ = yym1076 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.DiskName)) @@ -14865,17 +15394,17 @@ func (x *AzureDiskVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("diskName")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym1044 := z.EncBinary() - _ = yym1044 + yym1077 := z.EncBinary() + _ = yym1077 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.DiskName)) } } - if yyr1041 || yy2arr1041 { + if yyr1074 || yy2arr1074 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym1046 := z.EncBinary() - _ = yym1046 + yym1079 := z.EncBinary() + _ = yym1079 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.DataDiskURI)) @@ -14884,109 +15413,109 @@ func (x *AzureDiskVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("diskURI")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym1047 := z.EncBinary() - _ = yym1047 + yym1080 := z.EncBinary() + _ = yym1080 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.DataDiskURI)) } } - if yyr1041 || yy2arr1041 { + if yyr1074 || yy2arr1074 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1041[2] { + if yyq1074[2] { if x.CachingMode == nil { r.EncodeNil() } else { - yy1049 := *x.CachingMode - yy1049.CodecEncodeSelf(e) + yy1082 := *x.CachingMode + yy1082.CodecEncodeSelf(e) } } else { r.EncodeNil() } } else { - if yyq1041[2] { + if yyq1074[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) + yy1083 := *x.CachingMode + yy1083.CodecEncodeSelf(e) } } } - if yyr1041 || yy2arr1041 { + if yyr1074 || yy2arr1074 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1041[3] { + if yyq1074[3] { if x.FSType == nil { r.EncodeNil() } else { - yy1052 := *x.FSType - yym1053 := z.EncBinary() - _ = yym1053 + yy1085 := *x.FSType + yym1086 := z.EncBinary() + _ = yym1086 if false { } else { - r.EncodeString(codecSelferC_UTF81234, string(yy1052)) + r.EncodeString(codecSelferC_UTF81234, string(yy1085)) } } } else { r.EncodeNil() } } else { - if yyq1041[3] { + if yyq1074[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("fsType")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.FSType == nil { r.EncodeNil() } else { - yy1054 := *x.FSType - yym1055 := z.EncBinary() - _ = yym1055 + yy1087 := *x.FSType + yym1088 := z.EncBinary() + _ = yym1088 if false { } else { - r.EncodeString(codecSelferC_UTF81234, string(yy1054)) + r.EncodeString(codecSelferC_UTF81234, string(yy1087)) } } } } - if yyr1041 || yy2arr1041 { + if yyr1074 || yy2arr1074 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1041[4] { + if yyq1074[4] { if x.ReadOnly == nil { r.EncodeNil() } else { - yy1057 := *x.ReadOnly - yym1058 := z.EncBinary() - _ = yym1058 + yy1090 := *x.ReadOnly + yym1091 := z.EncBinary() + _ = yym1091 if false { } else { - r.EncodeBool(bool(yy1057)) + r.EncodeBool(bool(yy1090)) } } } else { r.EncodeNil() } } else { - if yyq1041[4] { + if yyq1074[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 + yy1092 := *x.ReadOnly + yym1093 := z.EncBinary() + _ = yym1093 if false { } else { - r.EncodeBool(bool(yy1059)) + r.EncodeBool(bool(yy1092)) } } } } - if yyr1041 || yy2arr1041 { + if yyr1074 || yy2arr1074 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -14999,25 +15528,25 @@ func (x *AzureDiskVolumeSource) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1061 := z.DecBinary() - _ = yym1061 + yym1094 := z.DecBinary() + _ = yym1094 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct1062 := r.ContainerType() - if yyct1062 == codecSelferValueTypeMap1234 { - yyl1062 := r.ReadMapStart() - if yyl1062 == 0 { + yyct1095 := r.ContainerType() + if yyct1095 == codecSelferValueTypeMap1234 { + yyl1095 := r.ReadMapStart() + if yyl1095 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl1062, d) + x.codecDecodeSelfFromMap(yyl1095, d) } - } else if yyct1062 == codecSelferValueTypeArray1234 { - yyl1062 := r.ReadArrayStart() - if yyl1062 == 0 { + } else if yyct1095 == codecSelferValueTypeArray1234 { + yyl1095 := r.ReadArrayStart() + if yyl1095 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl1062, d) + x.codecDecodeSelfFromArray(yyl1095, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -15029,12 +15558,12 @@ func (x *AzureDiskVolumeSource) codecDecodeSelfFromMap(l int, d *codec1978.Decod 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 { + var yys1096Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys1096Slc + var yyhl1096 bool = l >= 0 + for yyj1096 := 0; ; yyj1096++ { + if yyhl1096 { + if yyj1096 >= l { break } } else { @@ -15043,10 +15572,10 @@ func (x *AzureDiskVolumeSource) codecDecodeSelfFromMap(l int, d *codec1978.Decod } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys1063Slc = r.DecodeBytes(yys1063Slc, true, true) - yys1063 := string(yys1063Slc) + yys1096Slc = r.DecodeBytes(yys1096Slc, true, true) + yys1096 := string(yys1096Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys1063 { + switch yys1096 { case "diskName": if r.TryDecodeAsNil() { x.DiskName = "" @@ -15079,8 +15608,8 @@ func (x *AzureDiskVolumeSource) codecDecodeSelfFromMap(l int, d *codec1978.Decod if x.FSType == nil { x.FSType = new(string) } - yym1068 := z.DecBinary() - _ = yym1068 + yym1101 := z.DecBinary() + _ = yym1101 if false { } else { *((*string)(x.FSType)) = r.DecodeString() @@ -15095,17 +15624,17 @@ func (x *AzureDiskVolumeSource) codecDecodeSelfFromMap(l int, d *codec1978.Decod if x.ReadOnly == nil { x.ReadOnly = new(bool) } - yym1070 := z.DecBinary() - _ = yym1070 + yym1103 := z.DecBinary() + _ = yym1103 if false { } else { *((*bool)(x.ReadOnly)) = r.DecodeBool() } } default: - z.DecStructFieldNotFound(-1, yys1063) - } // end switch yys1063 - } // end for yyj1063 + z.DecStructFieldNotFound(-1, yys1096) + } // end switch yys1096 + } // end for yyj1096 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -15113,16 +15642,16 @@ func (x *AzureDiskVolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Dec 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 + var yyj1104 int + var yyb1104 bool + var yyhl1104 bool = l >= 0 + yyj1104++ + if yyhl1104 { + yyb1104 = yyj1104 > l } else { - yyb1071 = r.CheckBreak() + yyb1104 = r.CheckBreak() } - if yyb1071 { + if yyb1104 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -15132,13 +15661,13 @@ func (x *AzureDiskVolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Dec } else { x.DiskName = string(r.DecodeString()) } - yyj1071++ - if yyhl1071 { - yyb1071 = yyj1071 > l + yyj1104++ + if yyhl1104 { + yyb1104 = yyj1104 > l } else { - yyb1071 = r.CheckBreak() + yyb1104 = r.CheckBreak() } - if yyb1071 { + if yyb1104 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -15148,13 +15677,13 @@ func (x *AzureDiskVolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Dec } else { x.DataDiskURI = string(r.DecodeString()) } - yyj1071++ - if yyhl1071 { - yyb1071 = yyj1071 > l + yyj1104++ + if yyhl1104 { + yyb1104 = yyj1104 > l } else { - yyb1071 = r.CheckBreak() + yyb1104 = r.CheckBreak() } - if yyb1071 { + if yyb1104 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -15169,13 +15698,13 @@ func (x *AzureDiskVolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Dec } x.CachingMode.CodecDecodeSelf(d) } - yyj1071++ - if yyhl1071 { - yyb1071 = yyj1071 > l + yyj1104++ + if yyhl1104 { + yyb1104 = yyj1104 > l } else { - yyb1071 = r.CheckBreak() + yyb1104 = r.CheckBreak() } - if yyb1071 { + if yyb1104 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -15188,20 +15717,20 @@ func (x *AzureDiskVolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Dec if x.FSType == nil { x.FSType = new(string) } - yym1076 := z.DecBinary() - _ = yym1076 + yym1109 := z.DecBinary() + _ = yym1109 if false { } else { *((*string)(x.FSType)) = r.DecodeString() } } - yyj1071++ - if yyhl1071 { - yyb1071 = yyj1071 > l + yyj1104++ + if yyhl1104 { + yyb1104 = yyj1104 > l } else { - yyb1071 = r.CheckBreak() + yyb1104 = r.CheckBreak() } - if yyb1071 { + if yyb1104 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -15214,25 +15743,25 @@ func (x *AzureDiskVolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Dec if x.ReadOnly == nil { x.ReadOnly = new(bool) } - yym1078 := z.DecBinary() - _ = yym1078 + yym1111 := z.DecBinary() + _ = yym1111 if false { } else { *((*bool)(x.ReadOnly)) = r.DecodeBool() } } for { - yyj1071++ - if yyhl1071 { - yyb1071 = yyj1071 > l + yyj1104++ + if yyhl1104 { + yyb1104 = yyj1104 > l } else { - yyb1071 = r.CheckBreak() + yyb1104 = r.CheckBreak() } - if yyb1071 { + if yyb1104 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj1071-1, "") + z.DecStructFieldNotFound(yyj1104-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -15244,37 +15773,37 @@ func (x *ConfigMapVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1079 := z.EncBinary() - _ = yym1079 + yym1112 := z.EncBinary() + _ = yym1112 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 { + yysep1113 := !z.EncBinary() + yy2arr1113 := z.EncBasicHandle().StructToArray + var yyq1113 [3]bool + _, _, _ = yysep1113, yyq1113, yy2arr1113 + const yyr1113 bool = false + yyq1113[0] = x.Name != "" + yyq1113[1] = len(x.Items) != 0 + yyq1113[2] = x.DefaultMode != nil + var yynn1113 int + if yyr1113 || yy2arr1113 { r.EncodeArrayStart(3) } else { - yynn1080 = 0 - for _, b := range yyq1080 { + yynn1113 = 0 + for _, b := range yyq1113 { if b { - yynn1080++ + yynn1113++ } } - r.EncodeMapStart(yynn1080) - yynn1080 = 0 + r.EncodeMapStart(yynn1113) + yynn1113 = 0 } - if yyr1080 || yy2arr1080 { + if yyr1113 || yy2arr1113 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1080[0] { - yym1082 := z.EncBinary() - _ = yym1082 + if yyq1113[0] { + yym1115 := z.EncBinary() + _ = yym1115 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Name)) @@ -15283,26 +15812,26 @@ func (x *ConfigMapVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq1080[0] { + if yyq1113[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("name")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym1083 := z.EncBinary() - _ = yym1083 + yym1116 := z.EncBinary() + _ = yym1116 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Name)) } } } - if yyr1080 || yy2arr1080 { + if yyr1113 || yy2arr1113 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1080[1] { + if yyq1113[1] { if x.Items == nil { r.EncodeNil() } else { - yym1085 := z.EncBinary() - _ = yym1085 + yym1118 := z.EncBinary() + _ = yym1118 if false { } else { h.encSliceKeyToPath(([]KeyToPath)(x.Items), e) @@ -15312,15 +15841,15 @@ func (x *ConfigMapVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq1080[1] { + if yyq1113[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 + yym1119 := z.EncBinary() + _ = yym1119 if false { } else { h.encSliceKeyToPath(([]KeyToPath)(x.Items), e) @@ -15328,42 +15857,42 @@ func (x *ConfigMapVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr1080 || yy2arr1080 { + if yyr1113 || yy2arr1113 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1080[2] { + if yyq1113[2] { if x.DefaultMode == nil { r.EncodeNil() } else { - yy1088 := *x.DefaultMode - yym1089 := z.EncBinary() - _ = yym1089 + yy1121 := *x.DefaultMode + yym1122 := z.EncBinary() + _ = yym1122 if false { } else { - r.EncodeInt(int64(yy1088)) + r.EncodeInt(int64(yy1121)) } } } else { r.EncodeNil() } } else { - if yyq1080[2] { + if yyq1113[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 + yy1123 := *x.DefaultMode + yym1124 := z.EncBinary() + _ = yym1124 if false { } else { - r.EncodeInt(int64(yy1090)) + r.EncodeInt(int64(yy1123)) } } } } - if yyr1080 || yy2arr1080 { + if yyr1113 || yy2arr1113 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -15376,25 +15905,25 @@ func (x *ConfigMapVolumeSource) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1092 := z.DecBinary() - _ = yym1092 + yym1125 := z.DecBinary() + _ = yym1125 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct1093 := r.ContainerType() - if yyct1093 == codecSelferValueTypeMap1234 { - yyl1093 := r.ReadMapStart() - if yyl1093 == 0 { + yyct1126 := r.ContainerType() + if yyct1126 == codecSelferValueTypeMap1234 { + yyl1126 := r.ReadMapStart() + if yyl1126 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl1093, d) + x.codecDecodeSelfFromMap(yyl1126, d) } - } else if yyct1093 == codecSelferValueTypeArray1234 { - yyl1093 := r.ReadArrayStart() - if yyl1093 == 0 { + } else if yyct1126 == codecSelferValueTypeArray1234 { + yyl1126 := r.ReadArrayStart() + if yyl1126 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl1093, d) + x.codecDecodeSelfFromArray(yyl1126, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -15406,12 +15935,12 @@ func (x *ConfigMapVolumeSource) codecDecodeSelfFromMap(l int, d *codec1978.Decod var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys1094Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys1094Slc - var yyhl1094 bool = l >= 0 - for yyj1094 := 0; ; yyj1094++ { - if yyhl1094 { - if yyj1094 >= l { + var yys1127Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys1127Slc + var yyhl1127 bool = l >= 0 + for yyj1127 := 0; ; yyj1127++ { + if yyhl1127 { + if yyj1127 >= l { break } } else { @@ -15420,10 +15949,10 @@ func (x *ConfigMapVolumeSource) codecDecodeSelfFromMap(l int, d *codec1978.Decod } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys1094Slc = r.DecodeBytes(yys1094Slc, true, true) - yys1094 := string(yys1094Slc) + yys1127Slc = r.DecodeBytes(yys1127Slc, true, true) + yys1127 := string(yys1127Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys1094 { + switch yys1127 { case "name": if r.TryDecodeAsNil() { x.Name = "" @@ -15434,12 +15963,12 @@ func (x *ConfigMapVolumeSource) codecDecodeSelfFromMap(l int, d *codec1978.Decod if r.TryDecodeAsNil() { x.Items = nil } else { - yyv1096 := &x.Items - yym1097 := z.DecBinary() - _ = yym1097 + yyv1129 := &x.Items + yym1130 := z.DecBinary() + _ = yym1130 if false { } else { - h.decSliceKeyToPath((*[]KeyToPath)(yyv1096), d) + h.decSliceKeyToPath((*[]KeyToPath)(yyv1129), d) } } case "defaultMode": @@ -15451,17 +15980,17 @@ func (x *ConfigMapVolumeSource) codecDecodeSelfFromMap(l int, d *codec1978.Decod if x.DefaultMode == nil { x.DefaultMode = new(int32) } - yym1099 := z.DecBinary() - _ = yym1099 + yym1132 := z.DecBinary() + _ = yym1132 if false { } else { *((*int32)(x.DefaultMode)) = int32(r.DecodeInt(32)) } } default: - z.DecStructFieldNotFound(-1, yys1094) - } // end switch yys1094 - } // end for yyj1094 + z.DecStructFieldNotFound(-1, yys1127) + } // end switch yys1127 + } // end for yyj1127 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -15469,16 +15998,16 @@ func (x *ConfigMapVolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Dec var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj1100 int - var yyb1100 bool - var yyhl1100 bool = l >= 0 - yyj1100++ - if yyhl1100 { - yyb1100 = yyj1100 > l + var yyj1133 int + var yyb1133 bool + var yyhl1133 bool = l >= 0 + yyj1133++ + if yyhl1133 { + yyb1133 = yyj1133 > l } else { - yyb1100 = r.CheckBreak() + yyb1133 = r.CheckBreak() } - if yyb1100 { + if yyb1133 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -15488,13 +16017,13 @@ func (x *ConfigMapVolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Dec } else { x.Name = string(r.DecodeString()) } - yyj1100++ - if yyhl1100 { - yyb1100 = yyj1100 > l + yyj1133++ + if yyhl1133 { + yyb1133 = yyj1133 > l } else { - yyb1100 = r.CheckBreak() + yyb1133 = r.CheckBreak() } - if yyb1100 { + if yyb1133 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -15502,21 +16031,21 @@ func (x *ConfigMapVolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Dec if r.TryDecodeAsNil() { x.Items = nil } else { - yyv1102 := &x.Items - yym1103 := z.DecBinary() - _ = yym1103 + yyv1135 := &x.Items + yym1136 := z.DecBinary() + _ = yym1136 if false { } else { - h.decSliceKeyToPath((*[]KeyToPath)(yyv1102), d) + h.decSliceKeyToPath((*[]KeyToPath)(yyv1135), d) } } - yyj1100++ - if yyhl1100 { - yyb1100 = yyj1100 > l + yyj1133++ + if yyhl1133 { + yyb1133 = yyj1133 > l } else { - yyb1100 = r.CheckBreak() + yyb1133 = r.CheckBreak() } - if yyb1100 { + if yyb1133 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -15529,25 +16058,25 @@ func (x *ConfigMapVolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Dec if x.DefaultMode == nil { x.DefaultMode = new(int32) } - yym1105 := z.DecBinary() - _ = yym1105 + yym1138 := z.DecBinary() + _ = yym1138 if false { } else { *((*int32)(x.DefaultMode)) = int32(r.DecodeInt(32)) } } for { - yyj1100++ - if yyhl1100 { - yyb1100 = yyj1100 > l + yyj1133++ + if yyhl1133 { + yyb1133 = yyj1133 > l } else { - yyb1100 = r.CheckBreak() + yyb1133 = r.CheckBreak() } - if yyb1100 { + if yyb1133 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj1100-1, "") + z.DecStructFieldNotFound(yyj1133-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -15559,34 +16088,34 @@ func (x *KeyToPath) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1106 := z.EncBinary() - _ = yym1106 + yym1139 := z.EncBinary() + _ = yym1139 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - 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 { + yysep1140 := !z.EncBinary() + yy2arr1140 := z.EncBasicHandle().StructToArray + var yyq1140 [3]bool + _, _, _ = yysep1140, yyq1140, yy2arr1140 + const yyr1140 bool = false + yyq1140[2] = x.Mode != nil + var yynn1140 int + if yyr1140 || yy2arr1140 { r.EncodeArrayStart(3) } else { - yynn1107 = 2 - for _, b := range yyq1107 { + yynn1140 = 2 + for _, b := range yyq1140 { if b { - yynn1107++ + yynn1140++ } } - r.EncodeMapStart(yynn1107) - yynn1107 = 0 + r.EncodeMapStart(yynn1140) + yynn1140 = 0 } - if yyr1107 || yy2arr1107 { + if yyr1140 || yy2arr1140 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym1109 := z.EncBinary() - _ = yym1109 + yym1142 := z.EncBinary() + _ = yym1142 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Key)) @@ -15595,17 +16124,17 @@ func (x *KeyToPath) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("key")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym1110 := z.EncBinary() - _ = yym1110 + yym1143 := z.EncBinary() + _ = yym1143 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Key)) } } - if yyr1107 || yy2arr1107 { + if yyr1140 || yy2arr1140 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym1112 := z.EncBinary() - _ = yym1112 + yym1145 := z.EncBinary() + _ = yym1145 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Path)) @@ -15614,49 +16143,49 @@ func (x *KeyToPath) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("path")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym1113 := z.EncBinary() - _ = yym1113 + yym1146 := z.EncBinary() + _ = yym1146 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Path)) } } - if yyr1107 || yy2arr1107 { + if yyr1140 || yy2arr1140 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1107[2] { + if yyq1140[2] { if x.Mode == nil { r.EncodeNil() } else { - yy1115 := *x.Mode - yym1116 := z.EncBinary() - _ = yym1116 + yy1148 := *x.Mode + yym1149 := z.EncBinary() + _ = yym1149 if false { } else { - r.EncodeInt(int64(yy1115)) + r.EncodeInt(int64(yy1148)) } } } else { r.EncodeNil() } } else { - if yyq1107[2] { + if yyq1140[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 + yy1150 := *x.Mode + yym1151 := z.EncBinary() + _ = yym1151 if false { } else { - r.EncodeInt(int64(yy1117)) + r.EncodeInt(int64(yy1150)) } } } } - if yyr1107 || yy2arr1107 { + if yyr1140 || yy2arr1140 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -15669,25 +16198,25 @@ func (x *KeyToPath) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1119 := z.DecBinary() - _ = yym1119 + yym1152 := z.DecBinary() + _ = yym1152 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct1120 := r.ContainerType() - if yyct1120 == codecSelferValueTypeMap1234 { - yyl1120 := r.ReadMapStart() - if yyl1120 == 0 { + yyct1153 := r.ContainerType() + if yyct1153 == codecSelferValueTypeMap1234 { + yyl1153 := r.ReadMapStart() + if yyl1153 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl1120, d) + x.codecDecodeSelfFromMap(yyl1153, d) } - } else if yyct1120 == codecSelferValueTypeArray1234 { - yyl1120 := r.ReadArrayStart() - if yyl1120 == 0 { + } else if yyct1153 == codecSelferValueTypeArray1234 { + yyl1153 := r.ReadArrayStart() + if yyl1153 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl1120, d) + x.codecDecodeSelfFromArray(yyl1153, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -15699,12 +16228,12 @@ func (x *KeyToPath) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys1121Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys1121Slc - var yyhl1121 bool = l >= 0 - for yyj1121 := 0; ; yyj1121++ { - if yyhl1121 { - if yyj1121 >= l { + var yys1154Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys1154Slc + var yyhl1154 bool = l >= 0 + for yyj1154 := 0; ; yyj1154++ { + if yyhl1154 { + if yyj1154 >= l { break } } else { @@ -15713,10 +16242,10 @@ func (x *KeyToPath) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys1121Slc = r.DecodeBytes(yys1121Slc, true, true) - yys1121 := string(yys1121Slc) + yys1154Slc = r.DecodeBytes(yys1154Slc, true, true) + yys1154 := string(yys1154Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys1121 { + switch yys1154 { case "key": if r.TryDecodeAsNil() { x.Key = "" @@ -15738,17 +16267,17 @@ func (x *KeyToPath) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { if x.Mode == nil { x.Mode = new(int32) } - yym1125 := z.DecBinary() - _ = yym1125 + yym1158 := z.DecBinary() + _ = yym1158 if false { } else { *((*int32)(x.Mode)) = int32(r.DecodeInt(32)) } } default: - z.DecStructFieldNotFound(-1, yys1121) - } // end switch yys1121 - } // end for yyj1121 + z.DecStructFieldNotFound(-1, yys1154) + } // end switch yys1154 + } // end for yyj1154 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -15756,16 +16285,16 @@ func (x *KeyToPath) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj1126 int - var yyb1126 bool - var yyhl1126 bool = l >= 0 - yyj1126++ - if yyhl1126 { - yyb1126 = yyj1126 > l + var yyj1159 int + var yyb1159 bool + var yyhl1159 bool = l >= 0 + yyj1159++ + if yyhl1159 { + yyb1159 = yyj1159 > l } else { - yyb1126 = r.CheckBreak() + yyb1159 = r.CheckBreak() } - if yyb1126 { + if yyb1159 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -15775,13 +16304,13 @@ func (x *KeyToPath) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.Key = string(r.DecodeString()) } - yyj1126++ - if yyhl1126 { - yyb1126 = yyj1126 > l + yyj1159++ + if yyhl1159 { + yyb1159 = yyj1159 > l } else { - yyb1126 = r.CheckBreak() + yyb1159 = r.CheckBreak() } - if yyb1126 { + if yyb1159 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -15791,13 +16320,13 @@ func (x *KeyToPath) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.Path = string(r.DecodeString()) } - yyj1126++ - if yyhl1126 { - yyb1126 = yyj1126 > l + yyj1159++ + if yyhl1159 { + yyb1159 = yyj1159 > l } else { - yyb1126 = r.CheckBreak() + yyb1159 = r.CheckBreak() } - if yyb1126 { + if yyb1159 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -15810,25 +16339,25 @@ func (x *KeyToPath) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if x.Mode == nil { x.Mode = new(int32) } - yym1130 := z.DecBinary() - _ = yym1130 + yym1163 := z.DecBinary() + _ = yym1163 if false { } else { *((*int32)(x.Mode)) = int32(r.DecodeInt(32)) } } for { - yyj1126++ - if yyhl1126 { - yyb1126 = yyj1126 > l + yyj1159++ + if yyhl1159 { + yyb1159 = yyj1159 > l } else { - yyb1126 = r.CheckBreak() + yyb1159 = r.CheckBreak() } - if yyb1126 { + if yyb1159 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj1126-1, "") + z.DecStructFieldNotFound(yyj1159-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -15840,38 +16369,38 @@ func (x *ContainerPort) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1131 := z.EncBinary() - _ = yym1131 + yym1164 := z.EncBinary() + _ = yym1164 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - 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 { + yysep1165 := !z.EncBinary() + yy2arr1165 := z.EncBasicHandle().StructToArray + var yyq1165 [5]bool + _, _, _ = yysep1165, yyq1165, yy2arr1165 + const yyr1165 bool = false + yyq1165[0] = x.Name != "" + yyq1165[1] = x.HostPort != 0 + yyq1165[3] = x.Protocol != "" + yyq1165[4] = x.HostIP != "" + var yynn1165 int + if yyr1165 || yy2arr1165 { r.EncodeArrayStart(5) } else { - yynn1132 = 1 - for _, b := range yyq1132 { + yynn1165 = 1 + for _, b := range yyq1165 { if b { - yynn1132++ + yynn1165++ } } - r.EncodeMapStart(yynn1132) - yynn1132 = 0 + r.EncodeMapStart(yynn1165) + yynn1165 = 0 } - if yyr1132 || yy2arr1132 { + if yyr1165 || yy2arr1165 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1132[0] { - yym1134 := z.EncBinary() - _ = yym1134 + if yyq1165[0] { + yym1167 := z.EncBinary() + _ = yym1167 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Name)) @@ -15880,23 +16409,23 @@ func (x *ContainerPort) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq1132[0] { + if yyq1165[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("name")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym1135 := z.EncBinary() - _ = yym1135 + yym1168 := z.EncBinary() + _ = yym1168 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Name)) } } } - if yyr1132 || yy2arr1132 { + if yyr1165 || yy2arr1165 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1132[1] { - yym1137 := z.EncBinary() - _ = yym1137 + if yyq1165[1] { + yym1170 := z.EncBinary() + _ = yym1170 if false { } else { r.EncodeInt(int64(x.HostPort)) @@ -15905,22 +16434,22 @@ func (x *ContainerPort) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeInt(0) } } else { - if yyq1132[1] { + if yyq1165[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("hostPort")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym1138 := z.EncBinary() - _ = yym1138 + yym1171 := z.EncBinary() + _ = yym1171 if false { } else { r.EncodeInt(int64(x.HostPort)) } } } - if yyr1132 || yy2arr1132 { + if yyr1165 || yy2arr1165 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym1140 := z.EncBinary() - _ = yym1140 + yym1173 := z.EncBinary() + _ = yym1173 if false { } else { r.EncodeInt(int64(x.ContainerPort)) @@ -15929,33 +16458,33 @@ func (x *ContainerPort) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("containerPort")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym1141 := z.EncBinary() - _ = yym1141 + yym1174 := z.EncBinary() + _ = yym1174 if false { } else { r.EncodeInt(int64(x.ContainerPort)) } } - if yyr1132 || yy2arr1132 { + if yyr1165 || yy2arr1165 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1132[3] { + if yyq1165[3] { x.Protocol.CodecEncodeSelf(e) } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq1132[3] { + if yyq1165[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("protocol")) z.EncSendContainerState(codecSelfer_containerMapValue1234) x.Protocol.CodecEncodeSelf(e) } } - if yyr1132 || yy2arr1132 { + if yyr1165 || yy2arr1165 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1132[4] { - yym1144 := z.EncBinary() - _ = yym1144 + if yyq1165[4] { + yym1177 := z.EncBinary() + _ = yym1177 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.HostIP)) @@ -15964,19 +16493,19 @@ func (x *ContainerPort) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq1132[4] { + if yyq1165[4] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("hostIP")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym1145 := z.EncBinary() - _ = yym1145 + yym1178 := z.EncBinary() + _ = yym1178 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.HostIP)) } } } - if yyr1132 || yy2arr1132 { + if yyr1165 || yy2arr1165 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -15989,25 +16518,25 @@ func (x *ContainerPort) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1146 := z.DecBinary() - _ = yym1146 + yym1179 := z.DecBinary() + _ = yym1179 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct1147 := r.ContainerType() - if yyct1147 == codecSelferValueTypeMap1234 { - yyl1147 := r.ReadMapStart() - if yyl1147 == 0 { + yyct1180 := r.ContainerType() + if yyct1180 == codecSelferValueTypeMap1234 { + yyl1180 := r.ReadMapStart() + if yyl1180 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl1147, d) + x.codecDecodeSelfFromMap(yyl1180, d) } - } else if yyct1147 == codecSelferValueTypeArray1234 { - yyl1147 := r.ReadArrayStart() - if yyl1147 == 0 { + } else if yyct1180 == codecSelferValueTypeArray1234 { + yyl1180 := r.ReadArrayStart() + if yyl1180 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl1147, d) + x.codecDecodeSelfFromArray(yyl1180, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -16019,12 +16548,12 @@ func (x *ContainerPort) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys1148Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys1148Slc - var yyhl1148 bool = l >= 0 - for yyj1148 := 0; ; yyj1148++ { - if yyhl1148 { - if yyj1148 >= l { + var yys1181Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys1181Slc + var yyhl1181 bool = l >= 0 + for yyj1181 := 0; ; yyj1181++ { + if yyhl1181 { + if yyj1181 >= l { break } } else { @@ -16033,10 +16562,10 @@ func (x *ContainerPort) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys1148Slc = r.DecodeBytes(yys1148Slc, true, true) - yys1148 := string(yys1148Slc) + yys1181Slc = r.DecodeBytes(yys1181Slc, true, true) + yys1181 := string(yys1181Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys1148 { + switch yys1181 { case "name": if r.TryDecodeAsNil() { x.Name = "" @@ -16068,9 +16597,9 @@ func (x *ContainerPort) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { x.HostIP = string(r.DecodeString()) } default: - z.DecStructFieldNotFound(-1, yys1148) - } // end switch yys1148 - } // end for yyj1148 + z.DecStructFieldNotFound(-1, yys1181) + } // end switch yys1181 + } // end for yyj1181 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -16078,16 +16607,16 @@ func (x *ContainerPort) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj1154 int - var yyb1154 bool - var yyhl1154 bool = l >= 0 - yyj1154++ - if yyhl1154 { - yyb1154 = yyj1154 > l + var yyj1187 int + var yyb1187 bool + var yyhl1187 bool = l >= 0 + yyj1187++ + if yyhl1187 { + yyb1187 = yyj1187 > l } else { - yyb1154 = r.CheckBreak() + yyb1187 = r.CheckBreak() } - if yyb1154 { + if yyb1187 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -16097,13 +16626,13 @@ func (x *ContainerPort) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.Name = string(r.DecodeString()) } - yyj1154++ - if yyhl1154 { - yyb1154 = yyj1154 > l + yyj1187++ + if yyhl1187 { + yyb1187 = yyj1187 > l } else { - yyb1154 = r.CheckBreak() + yyb1187 = r.CheckBreak() } - if yyb1154 { + if yyb1187 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -16113,13 +16642,13 @@ func (x *ContainerPort) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.HostPort = int32(r.DecodeInt(32)) } - yyj1154++ - if yyhl1154 { - yyb1154 = yyj1154 > l + yyj1187++ + if yyhl1187 { + yyb1187 = yyj1187 > l } else { - yyb1154 = r.CheckBreak() + yyb1187 = r.CheckBreak() } - if yyb1154 { + if yyb1187 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -16129,13 +16658,13 @@ func (x *ContainerPort) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.ContainerPort = int32(r.DecodeInt(32)) } - yyj1154++ - if yyhl1154 { - yyb1154 = yyj1154 > l + yyj1187++ + if yyhl1187 { + yyb1187 = yyj1187 > l } else { - yyb1154 = r.CheckBreak() + yyb1187 = r.CheckBreak() } - if yyb1154 { + if yyb1187 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -16145,13 +16674,13 @@ func (x *ContainerPort) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.Protocol = Protocol(r.DecodeString()) } - yyj1154++ - if yyhl1154 { - yyb1154 = yyj1154 > l + yyj1187++ + if yyhl1187 { + yyb1187 = yyj1187 > l } else { - yyb1154 = r.CheckBreak() + yyb1187 = r.CheckBreak() } - if yyb1154 { + if yyb1187 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -16162,17 +16691,17 @@ func (x *ContainerPort) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { x.HostIP = string(r.DecodeString()) } for { - yyj1154++ - if yyhl1154 { - yyb1154 = yyj1154 > l + yyj1187++ + if yyhl1187 { + yyb1187 = yyj1187 > l } else { - yyb1154 = r.CheckBreak() + yyb1187 = r.CheckBreak() } - if yyb1154 { + if yyb1187 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj1154-1, "") + z.DecStructFieldNotFound(yyj1187-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -16184,35 +16713,35 @@ func (x *VolumeMount) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1160 := z.EncBinary() - _ = yym1160 + yym1193 := z.EncBinary() + _ = yym1193 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - 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 { + yysep1194 := !z.EncBinary() + yy2arr1194 := z.EncBasicHandle().StructToArray + var yyq1194 [4]bool + _, _, _ = yysep1194, yyq1194, yy2arr1194 + const yyr1194 bool = false + yyq1194[1] = x.ReadOnly != false + yyq1194[3] = x.SubPath != "" + var yynn1194 int + if yyr1194 || yy2arr1194 { r.EncodeArrayStart(4) } else { - yynn1161 = 2 - for _, b := range yyq1161 { + yynn1194 = 2 + for _, b := range yyq1194 { if b { - yynn1161++ + yynn1194++ } } - r.EncodeMapStart(yynn1161) - yynn1161 = 0 + r.EncodeMapStart(yynn1194) + yynn1194 = 0 } - if yyr1161 || yy2arr1161 { + if yyr1194 || yy2arr1194 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym1163 := z.EncBinary() - _ = yym1163 + yym1196 := z.EncBinary() + _ = yym1196 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Name)) @@ -16221,18 +16750,18 @@ func (x *VolumeMount) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("name")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym1164 := z.EncBinary() - _ = yym1164 + yym1197 := z.EncBinary() + _ = yym1197 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Name)) } } - if yyr1161 || yy2arr1161 { + if yyr1194 || yy2arr1194 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1161[1] { - yym1166 := z.EncBinary() - _ = yym1166 + if yyq1194[1] { + yym1199 := z.EncBinary() + _ = yym1199 if false { } else { r.EncodeBool(bool(x.ReadOnly)) @@ -16241,22 +16770,22 @@ func (x *VolumeMount) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeBool(false) } } else { - if yyq1161[1] { + if yyq1194[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("readOnly")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym1167 := z.EncBinary() - _ = yym1167 + yym1200 := z.EncBinary() + _ = yym1200 if false { } else { r.EncodeBool(bool(x.ReadOnly)) } } } - if yyr1161 || yy2arr1161 { + if yyr1194 || yy2arr1194 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym1169 := z.EncBinary() - _ = yym1169 + yym1202 := z.EncBinary() + _ = yym1202 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.MountPath)) @@ -16265,18 +16794,18 @@ func (x *VolumeMount) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("mountPath")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym1170 := z.EncBinary() - _ = yym1170 + yym1203 := z.EncBinary() + _ = yym1203 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.MountPath)) } } - if yyr1161 || yy2arr1161 { + if yyr1194 || yy2arr1194 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1161[3] { - yym1172 := z.EncBinary() - _ = yym1172 + if yyq1194[3] { + yym1205 := z.EncBinary() + _ = yym1205 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.SubPath)) @@ -16285,19 +16814,19 @@ func (x *VolumeMount) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq1161[3] { + if yyq1194[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("subPath")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym1173 := z.EncBinary() - _ = yym1173 + yym1206 := z.EncBinary() + _ = yym1206 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.SubPath)) } } } - if yyr1161 || yy2arr1161 { + if yyr1194 || yy2arr1194 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -16310,25 +16839,25 @@ func (x *VolumeMount) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1174 := z.DecBinary() - _ = yym1174 + yym1207 := z.DecBinary() + _ = yym1207 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct1175 := r.ContainerType() - if yyct1175 == codecSelferValueTypeMap1234 { - yyl1175 := r.ReadMapStart() - if yyl1175 == 0 { + yyct1208 := r.ContainerType() + if yyct1208 == codecSelferValueTypeMap1234 { + yyl1208 := r.ReadMapStart() + if yyl1208 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl1175, d) + x.codecDecodeSelfFromMap(yyl1208, d) } - } else if yyct1175 == codecSelferValueTypeArray1234 { - yyl1175 := r.ReadArrayStart() - if yyl1175 == 0 { + } else if yyct1208 == codecSelferValueTypeArray1234 { + yyl1208 := r.ReadArrayStart() + if yyl1208 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl1175, d) + x.codecDecodeSelfFromArray(yyl1208, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -16340,12 +16869,12 @@ func (x *VolumeMount) 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 { + var yys1209Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys1209Slc + var yyhl1209 bool = l >= 0 + for yyj1209 := 0; ; yyj1209++ { + if yyhl1209 { + if yyj1209 >= l { break } } else { @@ -16354,10 +16883,10 @@ func (x *VolumeMount) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys1176Slc = r.DecodeBytes(yys1176Slc, true, true) - yys1176 := string(yys1176Slc) + yys1209Slc = r.DecodeBytes(yys1209Slc, true, true) + yys1209 := string(yys1209Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys1176 { + switch yys1209 { case "name": if r.TryDecodeAsNil() { x.Name = "" @@ -16383,9 +16912,9 @@ func (x *VolumeMount) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { x.SubPath = string(r.DecodeString()) } default: - z.DecStructFieldNotFound(-1, yys1176) - } // end switch yys1176 - } // end for yyj1176 + z.DecStructFieldNotFound(-1, yys1209) + } // end switch yys1209 + } // end for yyj1209 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -16393,16 +16922,16 @@ func (x *VolumeMount) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj1181 int - var yyb1181 bool - var yyhl1181 bool = l >= 0 - yyj1181++ - if yyhl1181 { - yyb1181 = yyj1181 > l + var yyj1214 int + var yyb1214 bool + var yyhl1214 bool = l >= 0 + yyj1214++ + if yyhl1214 { + yyb1214 = yyj1214 > l } else { - yyb1181 = r.CheckBreak() + yyb1214 = r.CheckBreak() } - if yyb1181 { + if yyb1214 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -16412,13 +16941,13 @@ func (x *VolumeMount) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.Name = string(r.DecodeString()) } - yyj1181++ - if yyhl1181 { - yyb1181 = yyj1181 > l + yyj1214++ + if yyhl1214 { + yyb1214 = yyj1214 > l } else { - yyb1181 = r.CheckBreak() + yyb1214 = r.CheckBreak() } - if yyb1181 { + if yyb1214 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -16428,13 +16957,13 @@ func (x *VolumeMount) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.ReadOnly = bool(r.DecodeBool()) } - yyj1181++ - if yyhl1181 { - yyb1181 = yyj1181 > l + yyj1214++ + if yyhl1214 { + yyb1214 = yyj1214 > l } else { - yyb1181 = r.CheckBreak() + yyb1214 = r.CheckBreak() } - if yyb1181 { + if yyb1214 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -16444,13 +16973,13 @@ func (x *VolumeMount) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.MountPath = string(r.DecodeString()) } - yyj1181++ - if yyhl1181 { - yyb1181 = yyj1181 > l + yyj1214++ + if yyhl1214 { + yyb1214 = yyj1214 > l } else { - yyb1181 = r.CheckBreak() + yyb1214 = r.CheckBreak() } - if yyb1181 { + if yyb1214 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -16461,17 +16990,17 @@ func (x *VolumeMount) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { x.SubPath = string(r.DecodeString()) } for { - yyj1181++ - if yyhl1181 { - yyb1181 = yyj1181 > l + yyj1214++ + if yyhl1214 { + yyb1214 = yyj1214 > l } else { - yyb1181 = r.CheckBreak() + yyb1214 = r.CheckBreak() } - if yyb1181 { + if yyb1214 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj1181-1, "") + z.DecStructFieldNotFound(yyj1214-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -16483,35 +17012,35 @@ func (x *EnvVar) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1186 := z.EncBinary() - _ = yym1186 + yym1219 := z.EncBinary() + _ = yym1219 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - 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 { + yysep1220 := !z.EncBinary() + yy2arr1220 := z.EncBasicHandle().StructToArray + var yyq1220 [3]bool + _, _, _ = yysep1220, yyq1220, yy2arr1220 + const yyr1220 bool = false + yyq1220[1] = x.Value != "" + yyq1220[2] = x.ValueFrom != nil + var yynn1220 int + if yyr1220 || yy2arr1220 { r.EncodeArrayStart(3) } else { - yynn1187 = 1 - for _, b := range yyq1187 { + yynn1220 = 1 + for _, b := range yyq1220 { if b { - yynn1187++ + yynn1220++ } } - r.EncodeMapStart(yynn1187) - yynn1187 = 0 + r.EncodeMapStart(yynn1220) + yynn1220 = 0 } - if yyr1187 || yy2arr1187 { + if yyr1220 || yy2arr1220 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym1189 := z.EncBinary() - _ = yym1189 + yym1222 := z.EncBinary() + _ = yym1222 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Name)) @@ -16520,18 +17049,18 @@ func (x *EnvVar) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("name")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym1190 := z.EncBinary() - _ = yym1190 + yym1223 := z.EncBinary() + _ = yym1223 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Name)) } } - if yyr1187 || yy2arr1187 { + if yyr1220 || yy2arr1220 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1187[1] { - yym1192 := z.EncBinary() - _ = yym1192 + if yyq1220[1] { + yym1225 := z.EncBinary() + _ = yym1225 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Value)) @@ -16540,21 +17069,21 @@ func (x *EnvVar) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq1187[1] { + if yyq1220[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("value")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym1193 := z.EncBinary() - _ = yym1193 + yym1226 := z.EncBinary() + _ = yym1226 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Value)) } } } - if yyr1187 || yy2arr1187 { + if yyr1220 || yy2arr1220 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1187[2] { + if yyq1220[2] { if x.ValueFrom == nil { r.EncodeNil() } else { @@ -16564,7 +17093,7 @@ func (x *EnvVar) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq1187[2] { + if yyq1220[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("valueFrom")) z.EncSendContainerState(codecSelfer_containerMapValue1234) @@ -16575,7 +17104,7 @@ func (x *EnvVar) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr1187 || yy2arr1187 { + if yyr1220 || yy2arr1220 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -16588,25 +17117,25 @@ func (x *EnvVar) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1195 := z.DecBinary() - _ = yym1195 + yym1228 := z.DecBinary() + _ = yym1228 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct1196 := r.ContainerType() - if yyct1196 == codecSelferValueTypeMap1234 { - yyl1196 := r.ReadMapStart() - if yyl1196 == 0 { + yyct1229 := r.ContainerType() + if yyct1229 == codecSelferValueTypeMap1234 { + yyl1229 := r.ReadMapStart() + if yyl1229 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl1196, d) + x.codecDecodeSelfFromMap(yyl1229, d) } - } else if yyct1196 == codecSelferValueTypeArray1234 { - yyl1196 := r.ReadArrayStart() - if yyl1196 == 0 { + } else if yyct1229 == codecSelferValueTypeArray1234 { + yyl1229 := r.ReadArrayStart() + if yyl1229 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl1196, d) + x.codecDecodeSelfFromArray(yyl1229, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -16618,12 +17147,12 @@ func (x *EnvVar) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys1197Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys1197Slc - var yyhl1197 bool = l >= 0 - for yyj1197 := 0; ; yyj1197++ { - if yyhl1197 { - if yyj1197 >= l { + 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 { @@ -16632,10 +17161,10 @@ func (x *EnvVar) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys1197Slc = r.DecodeBytes(yys1197Slc, true, true) - yys1197 := string(yys1197Slc) + yys1230Slc = r.DecodeBytes(yys1230Slc, true, true) + yys1230 := string(yys1230Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys1197 { + switch yys1230 { case "name": if r.TryDecodeAsNil() { x.Name = "" @@ -16660,9 +17189,9 @@ func (x *EnvVar) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { x.ValueFrom.CodecDecodeSelf(d) } default: - z.DecStructFieldNotFound(-1, yys1197) - } // end switch yys1197 - } // end for yyj1197 + z.DecStructFieldNotFound(-1, yys1230) + } // end switch yys1230 + } // end for yyj1230 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -16670,16 +17199,16 @@ func (x *EnvVar) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj1201 int - var yyb1201 bool - var yyhl1201 bool = l >= 0 - yyj1201++ - if yyhl1201 { - yyb1201 = yyj1201 > l + var yyj1234 int + var yyb1234 bool + var yyhl1234 bool = l >= 0 + yyj1234++ + if yyhl1234 { + yyb1234 = yyj1234 > l } else { - yyb1201 = r.CheckBreak() + yyb1234 = r.CheckBreak() } - if yyb1201 { + if yyb1234 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -16689,13 +17218,13 @@ func (x *EnvVar) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.Name = string(r.DecodeString()) } - yyj1201++ - if yyhl1201 { - yyb1201 = yyj1201 > l + yyj1234++ + if yyhl1234 { + yyb1234 = yyj1234 > l } else { - yyb1201 = r.CheckBreak() + yyb1234 = r.CheckBreak() } - if yyb1201 { + if yyb1234 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -16705,13 +17234,13 @@ func (x *EnvVar) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.Value = string(r.DecodeString()) } - yyj1201++ - if yyhl1201 { - yyb1201 = yyj1201 > l + yyj1234++ + if yyhl1234 { + yyb1234 = yyj1234 > l } else { - yyb1201 = r.CheckBreak() + yyb1234 = r.CheckBreak() } - if yyb1201 { + if yyb1234 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -16727,17 +17256,17 @@ func (x *EnvVar) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { x.ValueFrom.CodecDecodeSelf(d) } for { - yyj1201++ - if yyhl1201 { - yyb1201 = yyj1201 > l + yyj1234++ + if yyhl1234 { + yyb1234 = yyj1234 > l } else { - yyb1201 = r.CheckBreak() + yyb1234 = r.CheckBreak() } - if yyb1201 { + if yyb1234 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj1201-1, "") + z.DecStructFieldNotFound(yyj1234-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -16749,36 +17278,36 @@ func (x *EnvVarSource) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1205 := z.EncBinary() - _ = yym1205 + yym1238 := z.EncBinary() + _ = yym1238 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - 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 { + yysep1239 := !z.EncBinary() + yy2arr1239 := z.EncBasicHandle().StructToArray + var yyq1239 [4]bool + _, _, _ = yysep1239, yyq1239, yy2arr1239 + const yyr1239 bool = false + yyq1239[0] = x.FieldRef != nil + yyq1239[1] = x.ResourceFieldRef != nil + yyq1239[2] = x.ConfigMapKeyRef != nil + yyq1239[3] = x.SecretKeyRef != nil + var yynn1239 int + if yyr1239 || yy2arr1239 { r.EncodeArrayStart(4) } else { - yynn1206 = 0 - for _, b := range yyq1206 { + yynn1239 = 0 + for _, b := range yyq1239 { if b { - yynn1206++ + yynn1239++ } } - r.EncodeMapStart(yynn1206) - yynn1206 = 0 + r.EncodeMapStart(yynn1239) + yynn1239 = 0 } - if yyr1206 || yy2arr1206 { + if yyr1239 || yy2arr1239 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1206[0] { + if yyq1239[0] { if x.FieldRef == nil { r.EncodeNil() } else { @@ -16788,7 +17317,7 @@ func (x *EnvVarSource) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq1206[0] { + if yyq1239[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("fieldRef")) z.EncSendContainerState(codecSelfer_containerMapValue1234) @@ -16799,9 +17328,9 @@ func (x *EnvVarSource) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr1206 || yy2arr1206 { + if yyr1239 || yy2arr1239 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1206[1] { + if yyq1239[1] { if x.ResourceFieldRef == nil { r.EncodeNil() } else { @@ -16811,7 +17340,7 @@ func (x *EnvVarSource) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq1206[1] { + if yyq1239[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("resourceFieldRef")) z.EncSendContainerState(codecSelfer_containerMapValue1234) @@ -16822,9 +17351,9 @@ func (x *EnvVarSource) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr1206 || yy2arr1206 { + if yyr1239 || yy2arr1239 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1206[2] { + if yyq1239[2] { if x.ConfigMapKeyRef == nil { r.EncodeNil() } else { @@ -16834,7 +17363,7 @@ func (x *EnvVarSource) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq1206[2] { + if yyq1239[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("configMapKeyRef")) z.EncSendContainerState(codecSelfer_containerMapValue1234) @@ -16845,9 +17374,9 @@ func (x *EnvVarSource) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr1206 || yy2arr1206 { + if yyr1239 || yy2arr1239 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1206[3] { + if yyq1239[3] { if x.SecretKeyRef == nil { r.EncodeNil() } else { @@ -16857,7 +17386,7 @@ func (x *EnvVarSource) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq1206[3] { + if yyq1239[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("secretKeyRef")) z.EncSendContainerState(codecSelfer_containerMapValue1234) @@ -16868,7 +17397,7 @@ func (x *EnvVarSource) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr1206 || yy2arr1206 { + if yyr1239 || yy2arr1239 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -16881,25 +17410,25 @@ func (x *EnvVarSource) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1211 := z.DecBinary() - _ = yym1211 + yym1244 := z.DecBinary() + _ = yym1244 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct1212 := r.ContainerType() - if yyct1212 == codecSelferValueTypeMap1234 { - yyl1212 := r.ReadMapStart() - if yyl1212 == 0 { + yyct1245 := r.ContainerType() + if yyct1245 == codecSelferValueTypeMap1234 { + yyl1245 := r.ReadMapStart() + if yyl1245 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl1212, d) + x.codecDecodeSelfFromMap(yyl1245, d) } - } else if yyct1212 == codecSelferValueTypeArray1234 { - yyl1212 := r.ReadArrayStart() - if yyl1212 == 0 { + } else if yyct1245 == codecSelferValueTypeArray1234 { + yyl1245 := r.ReadArrayStart() + if yyl1245 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl1212, d) + x.codecDecodeSelfFromArray(yyl1245, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -16911,12 +17440,12 @@ func (x *EnvVarSource) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys1213Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys1213Slc - var yyhl1213 bool = l >= 0 - for yyj1213 := 0; ; yyj1213++ { - if yyhl1213 { - if yyj1213 >= l { + var yys1246Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys1246Slc + var yyhl1246 bool = l >= 0 + for yyj1246 := 0; ; yyj1246++ { + if yyhl1246 { + if yyj1246 >= l { break } } else { @@ -16925,10 +17454,10 @@ func (x *EnvVarSource) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys1213Slc = r.DecodeBytes(yys1213Slc, true, true) - yys1213 := string(yys1213Slc) + yys1246Slc = r.DecodeBytes(yys1246Slc, true, true) + yys1246 := string(yys1246Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys1213 { + switch yys1246 { case "fieldRef": if r.TryDecodeAsNil() { if x.FieldRef != nil { @@ -16974,9 +17503,9 @@ func (x *EnvVarSource) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { x.SecretKeyRef.CodecDecodeSelf(d) } default: - z.DecStructFieldNotFound(-1, yys1213) - } // end switch yys1213 - } // end for yyj1213 + z.DecStructFieldNotFound(-1, yys1246) + } // end switch yys1246 + } // end for yyj1246 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -16984,16 +17513,16 @@ func (x *EnvVarSource) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj1218 int - var yyb1218 bool - var yyhl1218 bool = l >= 0 - yyj1218++ - if yyhl1218 { - yyb1218 = yyj1218 > l + var yyj1251 int + var yyb1251 bool + var yyhl1251 bool = l >= 0 + yyj1251++ + if yyhl1251 { + yyb1251 = yyj1251 > l } else { - yyb1218 = r.CheckBreak() + yyb1251 = r.CheckBreak() } - if yyb1218 { + if yyb1251 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -17008,13 +17537,13 @@ func (x *EnvVarSource) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } x.FieldRef.CodecDecodeSelf(d) } - yyj1218++ - if yyhl1218 { - yyb1218 = yyj1218 > l + yyj1251++ + if yyhl1251 { + yyb1251 = yyj1251 > l } else { - yyb1218 = r.CheckBreak() + yyb1251 = r.CheckBreak() } - if yyb1218 { + if yyb1251 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -17029,13 +17558,13 @@ func (x *EnvVarSource) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } x.ResourceFieldRef.CodecDecodeSelf(d) } - yyj1218++ - if yyhl1218 { - yyb1218 = yyj1218 > l + yyj1251++ + if yyhl1251 { + yyb1251 = yyj1251 > l } else { - yyb1218 = r.CheckBreak() + yyb1251 = r.CheckBreak() } - if yyb1218 { + if yyb1251 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -17050,13 +17579,13 @@ func (x *EnvVarSource) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } x.ConfigMapKeyRef.CodecDecodeSelf(d) } - yyj1218++ - if yyhl1218 { - yyb1218 = yyj1218 > l + yyj1251++ + if yyhl1251 { + yyb1251 = yyj1251 > l } else { - yyb1218 = r.CheckBreak() + yyb1251 = r.CheckBreak() } - if yyb1218 { + if yyb1251 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -17072,17 +17601,17 @@ func (x *EnvVarSource) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { x.SecretKeyRef.CodecDecodeSelf(d) } for { - yyj1218++ - if yyhl1218 { - yyb1218 = yyj1218 > l + yyj1251++ + if yyhl1251 { + yyb1251 = yyj1251 > l } else { - yyb1218 = r.CheckBreak() + yyb1251 = r.CheckBreak() } - if yyb1218 { + if yyb1251 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj1218-1, "") + z.DecStructFieldNotFound(yyj1251-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -17094,35 +17623,35 @@ func (x *ObjectFieldSelector) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1223 := z.EncBinary() - _ = yym1223 + yym1256 := z.EncBinary() + _ = yym1256 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - 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 { + yysep1257 := !z.EncBinary() + yy2arr1257 := z.EncBasicHandle().StructToArray + var yyq1257 [2]bool + _, _, _ = yysep1257, yyq1257, yy2arr1257 + const yyr1257 bool = false + yyq1257[0] = x.APIVersion != "" + var yynn1257 int + if yyr1257 || yy2arr1257 { r.EncodeArrayStart(2) } else { - yynn1224 = 1 - for _, b := range yyq1224 { + yynn1257 = 1 + for _, b := range yyq1257 { if b { - yynn1224++ + yynn1257++ } } - r.EncodeMapStart(yynn1224) - yynn1224 = 0 + r.EncodeMapStart(yynn1257) + yynn1257 = 0 } - if yyr1224 || yy2arr1224 { + if yyr1257 || yy2arr1257 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1224[0] { - yym1226 := z.EncBinary() - _ = yym1226 + if yyq1257[0] { + yym1259 := z.EncBinary() + _ = yym1259 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) @@ -17131,22 +17660,22 @@ func (x *ObjectFieldSelector) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq1224[0] { + if yyq1257[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym1227 := z.EncBinary() - _ = yym1227 + yym1260 := z.EncBinary() + _ = yym1260 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } - if yyr1224 || yy2arr1224 { + if yyr1257 || yy2arr1257 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym1229 := z.EncBinary() - _ = yym1229 + yym1262 := z.EncBinary() + _ = yym1262 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.FieldPath)) @@ -17155,14 +17684,14 @@ func (x *ObjectFieldSelector) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("fieldPath")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym1230 := z.EncBinary() - _ = yym1230 + yym1263 := z.EncBinary() + _ = yym1263 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.FieldPath)) } } - if yyr1224 || yy2arr1224 { + if yyr1257 || yy2arr1257 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -17175,25 +17704,25 @@ func (x *ObjectFieldSelector) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1231 := z.DecBinary() - _ = yym1231 + yym1264 := z.DecBinary() + _ = yym1264 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct1232 := r.ContainerType() - if yyct1232 == codecSelferValueTypeMap1234 { - yyl1232 := r.ReadMapStart() - if yyl1232 == 0 { + yyct1265 := r.ContainerType() + if yyct1265 == codecSelferValueTypeMap1234 { + yyl1265 := r.ReadMapStart() + if yyl1265 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl1232, d) + x.codecDecodeSelfFromMap(yyl1265, d) } - } else if yyct1232 == codecSelferValueTypeArray1234 { - yyl1232 := r.ReadArrayStart() - if yyl1232 == 0 { + } else if yyct1265 == codecSelferValueTypeArray1234 { + yyl1265 := r.ReadArrayStart() + if yyl1265 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl1232, d) + x.codecDecodeSelfFromArray(yyl1265, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -17205,12 +17734,12 @@ func (x *ObjectFieldSelector) codecDecodeSelfFromMap(l int, d *codec1978.Decoder var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys1233Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys1233Slc - var yyhl1233 bool = l >= 0 - for yyj1233 := 0; ; yyj1233++ { - if yyhl1233 { - if yyj1233 >= l { + var yys1266Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys1266Slc + var yyhl1266 bool = l >= 0 + for yyj1266 := 0; ; yyj1266++ { + if yyhl1266 { + if yyj1266 >= l { break } } else { @@ -17219,10 +17748,10 @@ func (x *ObjectFieldSelector) codecDecodeSelfFromMap(l int, d *codec1978.Decoder } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys1233Slc = r.DecodeBytes(yys1233Slc, true, true) - yys1233 := string(yys1233Slc) + yys1266Slc = r.DecodeBytes(yys1266Slc, true, true) + yys1266 := string(yys1266Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys1233 { + switch yys1266 { case "apiVersion": if r.TryDecodeAsNil() { x.APIVersion = "" @@ -17236,9 +17765,9 @@ func (x *ObjectFieldSelector) codecDecodeSelfFromMap(l int, d *codec1978.Decoder x.FieldPath = string(r.DecodeString()) } default: - z.DecStructFieldNotFound(-1, yys1233) - } // end switch yys1233 - } // end for yyj1233 + z.DecStructFieldNotFound(-1, yys1266) + } // end switch yys1266 + } // end for yyj1266 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -17246,16 +17775,16 @@ func (x *ObjectFieldSelector) codecDecodeSelfFromArray(l int, d *codec1978.Decod var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj1236 int - var yyb1236 bool - var yyhl1236 bool = l >= 0 - yyj1236++ - if yyhl1236 { - yyb1236 = yyj1236 > l + var yyj1269 int + var yyb1269 bool + var yyhl1269 bool = l >= 0 + yyj1269++ + if yyhl1269 { + yyb1269 = yyj1269 > l } else { - yyb1236 = r.CheckBreak() + yyb1269 = r.CheckBreak() } - if yyb1236 { + if yyb1269 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -17265,13 +17794,13 @@ func (x *ObjectFieldSelector) codecDecodeSelfFromArray(l int, d *codec1978.Decod } else { x.APIVersion = string(r.DecodeString()) } - yyj1236++ - if yyhl1236 { - yyb1236 = yyj1236 > l + yyj1269++ + if yyhl1269 { + yyb1269 = yyj1269 > l } else { - yyb1236 = r.CheckBreak() + yyb1269 = r.CheckBreak() } - if yyb1236 { + if yyb1269 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -17282,17 +17811,17 @@ func (x *ObjectFieldSelector) codecDecodeSelfFromArray(l int, d *codec1978.Decod x.FieldPath = string(r.DecodeString()) } for { - yyj1236++ - if yyhl1236 { - yyb1236 = yyj1236 > l + yyj1269++ + if yyhl1269 { + yyb1269 = yyj1269 > l } else { - yyb1236 = r.CheckBreak() + yyb1269 = r.CheckBreak() } - if yyb1236 { + if yyb1269 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj1236-1, "") + z.DecStructFieldNotFound(yyj1269-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -17304,36 +17833,36 @@ func (x *ResourceFieldSelector) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1239 := z.EncBinary() - _ = yym1239 + yym1272 := z.EncBinary() + _ = yym1272 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - 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 { + yysep1273 := !z.EncBinary() + yy2arr1273 := z.EncBasicHandle().StructToArray + var yyq1273 [3]bool + _, _, _ = yysep1273, yyq1273, yy2arr1273 + const yyr1273 bool = false + yyq1273[0] = x.ContainerName != "" + yyq1273[2] = true + var yynn1273 int + if yyr1273 || yy2arr1273 { r.EncodeArrayStart(3) } else { - yynn1240 = 1 - for _, b := range yyq1240 { + yynn1273 = 1 + for _, b := range yyq1273 { if b { - yynn1240++ + yynn1273++ } } - r.EncodeMapStart(yynn1240) - yynn1240 = 0 + r.EncodeMapStart(yynn1273) + yynn1273 = 0 } - if yyr1240 || yy2arr1240 { + if yyr1273 || yy2arr1273 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1240[0] { - yym1242 := z.EncBinary() - _ = yym1242 + if yyq1273[0] { + yym1275 := z.EncBinary() + _ = yym1275 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.ContainerName)) @@ -17342,22 +17871,22 @@ func (x *ResourceFieldSelector) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq1240[0] { + if yyq1273[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("containerName")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym1243 := z.EncBinary() - _ = yym1243 + yym1276 := z.EncBinary() + _ = yym1276 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.ContainerName)) } } } - if yyr1240 || yy2arr1240 { + if yyr1273 || yy2arr1273 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym1245 := z.EncBinary() - _ = yym1245 + yym1278 := z.EncBinary() + _ = yym1278 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Resource)) @@ -17366,47 +17895,47 @@ func (x *ResourceFieldSelector) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("resource")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym1246 := z.EncBinary() - _ = yym1246 + yym1279 := z.EncBinary() + _ = yym1279 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Resource)) } } - if yyr1240 || yy2arr1240 { + if yyr1273 || yy2arr1273 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1240[2] { - yy1248 := &x.Divisor - yym1249 := z.EncBinary() - _ = yym1249 + if yyq1273[2] { + yy1281 := &x.Divisor + yym1282 := z.EncBinary() + _ = yym1282 if false { - } else if z.HasExtensions() && z.EncExt(yy1248) { - } else if !yym1249 && z.IsJSONHandle() { - z.EncJSONMarshal(yy1248) + } else if z.HasExtensions() && z.EncExt(yy1281) { + } else if !yym1282 && z.IsJSONHandle() { + z.EncJSONMarshal(yy1281) } else { - z.EncFallback(yy1248) + z.EncFallback(yy1281) } } else { r.EncodeNil() } } else { - if yyq1240[2] { + if yyq1273[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("divisor")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy1250 := &x.Divisor - yym1251 := z.EncBinary() - _ = yym1251 + yy1283 := &x.Divisor + yym1284 := z.EncBinary() + _ = yym1284 if false { - } else if z.HasExtensions() && z.EncExt(yy1250) { - } else if !yym1251 && z.IsJSONHandle() { - z.EncJSONMarshal(yy1250) + } else if z.HasExtensions() && z.EncExt(yy1283) { + } else if !yym1284 && z.IsJSONHandle() { + z.EncJSONMarshal(yy1283) } else { - z.EncFallback(yy1250) + z.EncFallback(yy1283) } } } - if yyr1240 || yy2arr1240 { + if yyr1273 || yy2arr1273 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -17419,25 +17948,25 @@ func (x *ResourceFieldSelector) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1252 := z.DecBinary() - _ = yym1252 + yym1285 := z.DecBinary() + _ = yym1285 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct1253 := r.ContainerType() - if yyct1253 == codecSelferValueTypeMap1234 { - yyl1253 := r.ReadMapStart() - if yyl1253 == 0 { + yyct1286 := r.ContainerType() + if yyct1286 == codecSelferValueTypeMap1234 { + yyl1286 := r.ReadMapStart() + if yyl1286 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl1253, d) + x.codecDecodeSelfFromMap(yyl1286, d) } - } else if yyct1253 == codecSelferValueTypeArray1234 { - yyl1253 := r.ReadArrayStart() - if yyl1253 == 0 { + } else if yyct1286 == codecSelferValueTypeArray1234 { + yyl1286 := r.ReadArrayStart() + if yyl1286 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl1253, d) + x.codecDecodeSelfFromArray(yyl1286, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -17449,12 +17978,12 @@ func (x *ResourceFieldSelector) codecDecodeSelfFromMap(l int, d *codec1978.Decod var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys1254Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys1254Slc - var yyhl1254 bool = l >= 0 - for yyj1254 := 0; ; yyj1254++ { - if yyhl1254 { - if yyj1254 >= l { + var yys1287Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys1287Slc + var yyhl1287 bool = l >= 0 + for yyj1287 := 0; ; yyj1287++ { + if yyhl1287 { + if yyj1287 >= l { break } } else { @@ -17463,10 +17992,10 @@ func (x *ResourceFieldSelector) codecDecodeSelfFromMap(l int, d *codec1978.Decod } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys1254Slc = r.DecodeBytes(yys1254Slc, true, true) - yys1254 := string(yys1254Slc) + yys1287Slc = r.DecodeBytes(yys1287Slc, true, true) + yys1287 := string(yys1287Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys1254 { + switch yys1287 { case "containerName": if r.TryDecodeAsNil() { x.ContainerName = "" @@ -17483,21 +18012,21 @@ func (x *ResourceFieldSelector) codecDecodeSelfFromMap(l int, d *codec1978.Decod if r.TryDecodeAsNil() { x.Divisor = pkg3_resource.Quantity{} } else { - yyv1257 := &x.Divisor - yym1258 := z.DecBinary() - _ = yym1258 + yyv1290 := &x.Divisor + yym1291 := z.DecBinary() + _ = yym1291 if false { - } else if z.HasExtensions() && z.DecExt(yyv1257) { - } else if !yym1258 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv1257) + } else if z.HasExtensions() && z.DecExt(yyv1290) { + } else if !yym1291 && z.IsJSONHandle() { + z.DecJSONUnmarshal(yyv1290) } else { - z.DecFallback(yyv1257, false) + z.DecFallback(yyv1290, false) } } default: - z.DecStructFieldNotFound(-1, yys1254) - } // end switch yys1254 - } // end for yyj1254 + z.DecStructFieldNotFound(-1, yys1287) + } // end switch yys1287 + } // end for yyj1287 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -17505,16 +18034,16 @@ func (x *ResourceFieldSelector) codecDecodeSelfFromArray(l int, d *codec1978.Dec var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj1259 int - var yyb1259 bool - var yyhl1259 bool = l >= 0 - yyj1259++ - if yyhl1259 { - yyb1259 = yyj1259 > l + var yyj1292 int + var yyb1292 bool + var yyhl1292 bool = l >= 0 + yyj1292++ + if yyhl1292 { + yyb1292 = yyj1292 > l } else { - yyb1259 = r.CheckBreak() + yyb1292 = r.CheckBreak() } - if yyb1259 { + if yyb1292 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -17524,13 +18053,13 @@ func (x *ResourceFieldSelector) codecDecodeSelfFromArray(l int, d *codec1978.Dec } else { x.ContainerName = string(r.DecodeString()) } - yyj1259++ - if yyhl1259 { - yyb1259 = yyj1259 > l + yyj1292++ + if yyhl1292 { + yyb1292 = yyj1292 > l } else { - yyb1259 = r.CheckBreak() + yyb1292 = r.CheckBreak() } - if yyb1259 { + if yyb1292 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -17540,13 +18069,13 @@ func (x *ResourceFieldSelector) codecDecodeSelfFromArray(l int, d *codec1978.Dec } else { x.Resource = string(r.DecodeString()) } - yyj1259++ - if yyhl1259 { - yyb1259 = yyj1259 > l + yyj1292++ + if yyhl1292 { + yyb1292 = yyj1292 > l } else { - yyb1259 = r.CheckBreak() + yyb1292 = r.CheckBreak() } - if yyb1259 { + if yyb1292 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -17554,29 +18083,29 @@ func (x *ResourceFieldSelector) codecDecodeSelfFromArray(l int, d *codec1978.Dec if r.TryDecodeAsNil() { x.Divisor = pkg3_resource.Quantity{} } else { - yyv1262 := &x.Divisor - yym1263 := z.DecBinary() - _ = yym1263 + yyv1295 := &x.Divisor + yym1296 := z.DecBinary() + _ = yym1296 if false { - } else if z.HasExtensions() && z.DecExt(yyv1262) { - } else if !yym1263 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv1262) + } else if z.HasExtensions() && z.DecExt(yyv1295) { + } else if !yym1296 && z.IsJSONHandle() { + z.DecJSONUnmarshal(yyv1295) } else { - z.DecFallback(yyv1262, false) + z.DecFallback(yyv1295, false) } } for { - yyj1259++ - if yyhl1259 { - yyb1259 = yyj1259 > l + yyj1292++ + if yyhl1292 { + yyb1292 = yyj1292 > l } else { - yyb1259 = r.CheckBreak() + yyb1292 = r.CheckBreak() } - if yyb1259 { + if yyb1292 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj1259-1, "") + z.DecStructFieldNotFound(yyj1292-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -17588,35 +18117,35 @@ func (x *ConfigMapKeySelector) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1264 := z.EncBinary() - _ = yym1264 + yym1297 := z.EncBinary() + _ = yym1297 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - 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 { + yysep1298 := !z.EncBinary() + yy2arr1298 := z.EncBasicHandle().StructToArray + var yyq1298 [2]bool + _, _, _ = yysep1298, yyq1298, yy2arr1298 + const yyr1298 bool = false + yyq1298[0] = x.Name != "" + var yynn1298 int + if yyr1298 || yy2arr1298 { r.EncodeArrayStart(2) } else { - yynn1265 = 1 - for _, b := range yyq1265 { + yynn1298 = 1 + for _, b := range yyq1298 { if b { - yynn1265++ + yynn1298++ } } - r.EncodeMapStart(yynn1265) - yynn1265 = 0 + r.EncodeMapStart(yynn1298) + yynn1298 = 0 } - if yyr1265 || yy2arr1265 { + if yyr1298 || yy2arr1298 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1265[0] { - yym1267 := z.EncBinary() - _ = yym1267 + if yyq1298[0] { + yym1300 := z.EncBinary() + _ = yym1300 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Name)) @@ -17625,22 +18154,22 @@ func (x *ConfigMapKeySelector) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq1265[0] { + if yyq1298[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("name")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym1268 := z.EncBinary() - _ = yym1268 + yym1301 := z.EncBinary() + _ = yym1301 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Name)) } } } - if yyr1265 || yy2arr1265 { + if yyr1298 || yy2arr1298 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym1270 := z.EncBinary() - _ = yym1270 + yym1303 := z.EncBinary() + _ = yym1303 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Key)) @@ -17649,14 +18178,14 @@ func (x *ConfigMapKeySelector) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("key")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym1271 := z.EncBinary() - _ = yym1271 + yym1304 := z.EncBinary() + _ = yym1304 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Key)) } } - if yyr1265 || yy2arr1265 { + if yyr1298 || yy2arr1298 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -17669,25 +18198,25 @@ func (x *ConfigMapKeySelector) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1272 := z.DecBinary() - _ = yym1272 + yym1305 := z.DecBinary() + _ = yym1305 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct1273 := r.ContainerType() - if yyct1273 == codecSelferValueTypeMap1234 { - yyl1273 := r.ReadMapStart() - if yyl1273 == 0 { + yyct1306 := r.ContainerType() + if yyct1306 == codecSelferValueTypeMap1234 { + yyl1306 := r.ReadMapStart() + if yyl1306 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl1273, d) + x.codecDecodeSelfFromMap(yyl1306, d) } - } else if yyct1273 == codecSelferValueTypeArray1234 { - yyl1273 := r.ReadArrayStart() - if yyl1273 == 0 { + } else if yyct1306 == codecSelferValueTypeArray1234 { + yyl1306 := r.ReadArrayStart() + if yyl1306 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl1273, d) + x.codecDecodeSelfFromArray(yyl1306, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -17699,12 +18228,12 @@ func (x *ConfigMapKeySelector) codecDecodeSelfFromMap(l int, d *codec1978.Decode var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys1274Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys1274Slc - var yyhl1274 bool = l >= 0 - for yyj1274 := 0; ; yyj1274++ { - if yyhl1274 { - if yyj1274 >= l { + var yys1307Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys1307Slc + var yyhl1307 bool = l >= 0 + for yyj1307 := 0; ; yyj1307++ { + if yyhl1307 { + if yyj1307 >= l { break } } else { @@ -17713,10 +18242,10 @@ func (x *ConfigMapKeySelector) codecDecodeSelfFromMap(l int, d *codec1978.Decode } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys1274Slc = r.DecodeBytes(yys1274Slc, true, true) - yys1274 := string(yys1274Slc) + yys1307Slc = r.DecodeBytes(yys1307Slc, true, true) + yys1307 := string(yys1307Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys1274 { + switch yys1307 { case "name": if r.TryDecodeAsNil() { x.Name = "" @@ -17730,9 +18259,9 @@ func (x *ConfigMapKeySelector) codecDecodeSelfFromMap(l int, d *codec1978.Decode x.Key = string(r.DecodeString()) } default: - z.DecStructFieldNotFound(-1, yys1274) - } // end switch yys1274 - } // end for yyj1274 + z.DecStructFieldNotFound(-1, yys1307) + } // end switch yys1307 + } // end for yyj1307 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -17740,16 +18269,16 @@ func (x *ConfigMapKeySelector) codecDecodeSelfFromArray(l int, d *codec1978.Deco var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj1277 int - var yyb1277 bool - var yyhl1277 bool = l >= 0 - yyj1277++ - if yyhl1277 { - yyb1277 = yyj1277 > l + var yyj1310 int + var yyb1310 bool + var yyhl1310 bool = l >= 0 + yyj1310++ + if yyhl1310 { + yyb1310 = yyj1310 > l } else { - yyb1277 = r.CheckBreak() + yyb1310 = r.CheckBreak() } - if yyb1277 { + if yyb1310 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -17759,13 +18288,13 @@ func (x *ConfigMapKeySelector) codecDecodeSelfFromArray(l int, d *codec1978.Deco } else { x.Name = string(r.DecodeString()) } - yyj1277++ - if yyhl1277 { - yyb1277 = yyj1277 > l + yyj1310++ + if yyhl1310 { + yyb1310 = yyj1310 > l } else { - yyb1277 = r.CheckBreak() + yyb1310 = r.CheckBreak() } - if yyb1277 { + if yyb1310 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -17776,17 +18305,17 @@ func (x *ConfigMapKeySelector) codecDecodeSelfFromArray(l int, d *codec1978.Deco x.Key = string(r.DecodeString()) } for { - yyj1277++ - if yyhl1277 { - yyb1277 = yyj1277 > l + yyj1310++ + if yyhl1310 { + yyb1310 = yyj1310 > l } else { - yyb1277 = r.CheckBreak() + yyb1310 = r.CheckBreak() } - if yyb1277 { + if yyb1310 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj1277-1, "") + z.DecStructFieldNotFound(yyj1310-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -17798,35 +18327,35 @@ func (x *SecretKeySelector) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1280 := z.EncBinary() - _ = yym1280 + yym1313 := z.EncBinary() + _ = yym1313 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - 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 { + yysep1314 := !z.EncBinary() + yy2arr1314 := z.EncBasicHandle().StructToArray + var yyq1314 [2]bool + _, _, _ = yysep1314, yyq1314, yy2arr1314 + const yyr1314 bool = false + yyq1314[0] = x.Name != "" + var yynn1314 int + if yyr1314 || yy2arr1314 { r.EncodeArrayStart(2) } else { - yynn1281 = 1 - for _, b := range yyq1281 { + yynn1314 = 1 + for _, b := range yyq1314 { if b { - yynn1281++ + yynn1314++ } } - r.EncodeMapStart(yynn1281) - yynn1281 = 0 + r.EncodeMapStart(yynn1314) + yynn1314 = 0 } - if yyr1281 || yy2arr1281 { + if yyr1314 || yy2arr1314 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1281[0] { - yym1283 := z.EncBinary() - _ = yym1283 + if yyq1314[0] { + yym1316 := z.EncBinary() + _ = yym1316 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Name)) @@ -17835,22 +18364,22 @@ func (x *SecretKeySelector) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq1281[0] { + if yyq1314[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("name")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym1284 := z.EncBinary() - _ = yym1284 + yym1317 := z.EncBinary() + _ = yym1317 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Name)) } } } - if yyr1281 || yy2arr1281 { + if yyr1314 || yy2arr1314 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym1286 := z.EncBinary() - _ = yym1286 + yym1319 := z.EncBinary() + _ = yym1319 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Key)) @@ -17859,14 +18388,14 @@ func (x *SecretKeySelector) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("key")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym1287 := z.EncBinary() - _ = yym1287 + yym1320 := z.EncBinary() + _ = yym1320 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Key)) } } - if yyr1281 || yy2arr1281 { + if yyr1314 || yy2arr1314 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -17879,25 +18408,25 @@ func (x *SecretKeySelector) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1288 := z.DecBinary() - _ = yym1288 + yym1321 := z.DecBinary() + _ = yym1321 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct1289 := r.ContainerType() - if yyct1289 == codecSelferValueTypeMap1234 { - yyl1289 := r.ReadMapStart() - if yyl1289 == 0 { + yyct1322 := r.ContainerType() + if yyct1322 == codecSelferValueTypeMap1234 { + yyl1322 := r.ReadMapStart() + if yyl1322 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl1289, d) + x.codecDecodeSelfFromMap(yyl1322, d) } - } else if yyct1289 == codecSelferValueTypeArray1234 { - yyl1289 := r.ReadArrayStart() - if yyl1289 == 0 { + } else if yyct1322 == codecSelferValueTypeArray1234 { + yyl1322 := r.ReadArrayStart() + if yyl1322 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl1289, d) + x.codecDecodeSelfFromArray(yyl1322, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -17909,12 +18438,12 @@ func (x *SecretKeySelector) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys1290Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys1290Slc - var yyhl1290 bool = l >= 0 - for yyj1290 := 0; ; yyj1290++ { - if yyhl1290 { - if yyj1290 >= l { + var yys1323Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys1323Slc + var yyhl1323 bool = l >= 0 + for yyj1323 := 0; ; yyj1323++ { + if yyhl1323 { + if yyj1323 >= l { break } } else { @@ -17923,10 +18452,10 @@ func (x *SecretKeySelector) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys1290Slc = r.DecodeBytes(yys1290Slc, true, true) - yys1290 := string(yys1290Slc) + yys1323Slc = r.DecodeBytes(yys1323Slc, true, true) + yys1323 := string(yys1323Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys1290 { + switch yys1323 { case "name": if r.TryDecodeAsNil() { x.Name = "" @@ -17940,9 +18469,9 @@ func (x *SecretKeySelector) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) x.Key = string(r.DecodeString()) } default: - z.DecStructFieldNotFound(-1, yys1290) - } // end switch yys1290 - } // end for yyj1290 + z.DecStructFieldNotFound(-1, yys1323) + } // end switch yys1323 + } // end for yyj1323 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -17950,16 +18479,16 @@ func (x *SecretKeySelector) codecDecodeSelfFromArray(l int, d *codec1978.Decoder var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj1293 int - var yyb1293 bool - var yyhl1293 bool = l >= 0 - yyj1293++ - if yyhl1293 { - yyb1293 = yyj1293 > l + var yyj1326 int + var yyb1326 bool + var yyhl1326 bool = l >= 0 + yyj1326++ + if yyhl1326 { + yyb1326 = yyj1326 > l } else { - yyb1293 = r.CheckBreak() + yyb1326 = r.CheckBreak() } - if yyb1293 { + if yyb1326 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -17969,13 +18498,13 @@ func (x *SecretKeySelector) codecDecodeSelfFromArray(l int, d *codec1978.Decoder } else { x.Name = string(r.DecodeString()) } - yyj1293++ - if yyhl1293 { - yyb1293 = yyj1293 > l + yyj1326++ + if yyhl1326 { + yyb1326 = yyj1326 > l } else { - yyb1293 = r.CheckBreak() + yyb1326 = r.CheckBreak() } - if yyb1293 { + if yyb1326 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -17986,17 +18515,17 @@ func (x *SecretKeySelector) codecDecodeSelfFromArray(l int, d *codec1978.Decoder x.Key = string(r.DecodeString()) } for { - yyj1293++ - if yyhl1293 { - yyb1293 = yyj1293 > l + yyj1326++ + if yyhl1326 { + yyb1326 = yyj1326 > l } else { - yyb1293 = r.CheckBreak() + yyb1326 = r.CheckBreak() } - if yyb1293 { + if yyb1326 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj1293-1, "") + z.DecStructFieldNotFound(yyj1326-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -18008,33 +18537,33 @@ func (x *HTTPHeader) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1296 := z.EncBinary() - _ = yym1296 + yym1329 := z.EncBinary() + _ = yym1329 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep1297 := !z.EncBinary() - yy2arr1297 := z.EncBasicHandle().StructToArray - var yyq1297 [2]bool - _, _, _ = yysep1297, yyq1297, yy2arr1297 - const yyr1297 bool = false - var yynn1297 int - if yyr1297 || yy2arr1297 { + yysep1330 := !z.EncBinary() + yy2arr1330 := z.EncBasicHandle().StructToArray + var yyq1330 [2]bool + _, _, _ = yysep1330, yyq1330, yy2arr1330 + const yyr1330 bool = false + var yynn1330 int + if yyr1330 || yy2arr1330 { r.EncodeArrayStart(2) } else { - yynn1297 = 2 - for _, b := range yyq1297 { + yynn1330 = 2 + for _, b := range yyq1330 { if b { - yynn1297++ + yynn1330++ } } - r.EncodeMapStart(yynn1297) - yynn1297 = 0 + r.EncodeMapStart(yynn1330) + yynn1330 = 0 } - if yyr1297 || yy2arr1297 { + if yyr1330 || yy2arr1330 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym1299 := z.EncBinary() - _ = yym1299 + yym1332 := z.EncBinary() + _ = yym1332 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Name)) @@ -18043,17 +18572,17 @@ func (x *HTTPHeader) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("name")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym1300 := z.EncBinary() - _ = yym1300 + yym1333 := z.EncBinary() + _ = yym1333 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Name)) } } - if yyr1297 || yy2arr1297 { + if yyr1330 || yy2arr1330 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym1302 := z.EncBinary() - _ = yym1302 + yym1335 := z.EncBinary() + _ = yym1335 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Value)) @@ -18062,14 +18591,14 @@ func (x *HTTPHeader) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("value")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym1303 := z.EncBinary() - _ = yym1303 + yym1336 := z.EncBinary() + _ = yym1336 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Value)) } } - if yyr1297 || yy2arr1297 { + if yyr1330 || yy2arr1330 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -18082,25 +18611,25 @@ func (x *HTTPHeader) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1304 := z.DecBinary() - _ = yym1304 + yym1337 := z.DecBinary() + _ = yym1337 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct1305 := r.ContainerType() - if yyct1305 == codecSelferValueTypeMap1234 { - yyl1305 := r.ReadMapStart() - if yyl1305 == 0 { + yyct1338 := r.ContainerType() + if yyct1338 == codecSelferValueTypeMap1234 { + yyl1338 := r.ReadMapStart() + if yyl1338 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl1305, d) + x.codecDecodeSelfFromMap(yyl1338, d) } - } else if yyct1305 == codecSelferValueTypeArray1234 { - yyl1305 := r.ReadArrayStart() - if yyl1305 == 0 { + } else if yyct1338 == codecSelferValueTypeArray1234 { + yyl1338 := r.ReadArrayStart() + if yyl1338 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl1305, d) + x.codecDecodeSelfFromArray(yyl1338, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -18112,12 +18641,12 @@ func (x *HTTPHeader) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys1306Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys1306Slc - var yyhl1306 bool = l >= 0 - for yyj1306 := 0; ; yyj1306++ { - if yyhl1306 { - if yyj1306 >= l { + var yys1339Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys1339Slc + var yyhl1339 bool = l >= 0 + for yyj1339 := 0; ; yyj1339++ { + if yyhl1339 { + if yyj1339 >= l { break } } else { @@ -18126,10 +18655,10 @@ func (x *HTTPHeader) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys1306Slc = r.DecodeBytes(yys1306Slc, true, true) - yys1306 := string(yys1306Slc) + yys1339Slc = r.DecodeBytes(yys1339Slc, true, true) + yys1339 := string(yys1339Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys1306 { + switch yys1339 { case "name": if r.TryDecodeAsNil() { x.Name = "" @@ -18143,9 +18672,9 @@ func (x *HTTPHeader) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { x.Value = string(r.DecodeString()) } default: - z.DecStructFieldNotFound(-1, yys1306) - } // end switch yys1306 - } // end for yyj1306 + z.DecStructFieldNotFound(-1, yys1339) + } // end switch yys1339 + } // end for yyj1339 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -18153,16 +18682,16 @@ func (x *HTTPHeader) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj1309 int - var yyb1309 bool - var yyhl1309 bool = l >= 0 - yyj1309++ - if yyhl1309 { - yyb1309 = yyj1309 > l + var yyj1342 int + var yyb1342 bool + var yyhl1342 bool = l >= 0 + yyj1342++ + if yyhl1342 { + yyb1342 = yyj1342 > l } else { - yyb1309 = r.CheckBreak() + yyb1342 = r.CheckBreak() } - if yyb1309 { + if yyb1342 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -18172,13 +18701,13 @@ func (x *HTTPHeader) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.Name = string(r.DecodeString()) } - yyj1309++ - if yyhl1309 { - yyb1309 = yyj1309 > l + yyj1342++ + if yyhl1342 { + yyb1342 = yyj1342 > l } else { - yyb1309 = r.CheckBreak() + yyb1342 = r.CheckBreak() } - if yyb1309 { + if yyb1342 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -18189,17 +18718,17 @@ func (x *HTTPHeader) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { x.Value = string(r.DecodeString()) } for { - yyj1309++ - if yyhl1309 { - yyb1309 = yyj1309 > l + yyj1342++ + if yyhl1342 { + yyb1342 = yyj1342 > l } else { - yyb1309 = r.CheckBreak() + yyb1342 = r.CheckBreak() } - if yyb1309 { + if yyb1342 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj1309-1, "") + z.DecStructFieldNotFound(yyj1342-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -18211,38 +18740,38 @@ func (x *HTTPGetAction) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1312 := z.EncBinary() - _ = yym1312 + yym1345 := z.EncBinary() + _ = yym1345 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - 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 { + yysep1346 := !z.EncBinary() + yy2arr1346 := z.EncBasicHandle().StructToArray + var yyq1346 [5]bool + _, _, _ = yysep1346, yyq1346, yy2arr1346 + const yyr1346 bool = false + yyq1346[0] = x.Path != "" + yyq1346[2] = x.Host != "" + yyq1346[3] = x.Scheme != "" + yyq1346[4] = len(x.HTTPHeaders) != 0 + var yynn1346 int + if yyr1346 || yy2arr1346 { r.EncodeArrayStart(5) } else { - yynn1313 = 1 - for _, b := range yyq1313 { + yynn1346 = 1 + for _, b := range yyq1346 { if b { - yynn1313++ + yynn1346++ } } - r.EncodeMapStart(yynn1313) - yynn1313 = 0 + r.EncodeMapStart(yynn1346) + yynn1346 = 0 } - if yyr1313 || yy2arr1313 { + if yyr1346 || yy2arr1346 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1313[0] { - yym1315 := z.EncBinary() - _ = yym1315 + if yyq1346[0] { + yym1348 := z.EncBinary() + _ = yym1348 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Path)) @@ -18251,50 +18780,50 @@ func (x *HTTPGetAction) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq1313[0] { + if yyq1346[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("path")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym1316 := z.EncBinary() - _ = yym1316 + yym1349 := z.EncBinary() + _ = yym1349 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Path)) } } } - if yyr1313 || yy2arr1313 { + if yyr1346 || yy2arr1346 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy1318 := &x.Port - yym1319 := z.EncBinary() - _ = yym1319 + yy1351 := &x.Port + yym1352 := z.EncBinary() + _ = yym1352 if false { - } else if z.HasExtensions() && z.EncExt(yy1318) { - } else if !yym1319 && z.IsJSONHandle() { - z.EncJSONMarshal(yy1318) + } else if z.HasExtensions() && z.EncExt(yy1351) { + } else if !yym1352 && z.IsJSONHandle() { + z.EncJSONMarshal(yy1351) } else { - z.EncFallback(yy1318) + z.EncFallback(yy1351) } } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("port")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy1320 := &x.Port - yym1321 := z.EncBinary() - _ = yym1321 + yy1353 := &x.Port + yym1354 := z.EncBinary() + _ = yym1354 if false { - } else if z.HasExtensions() && z.EncExt(yy1320) { - } else if !yym1321 && z.IsJSONHandle() { - z.EncJSONMarshal(yy1320) + } else if z.HasExtensions() && z.EncExt(yy1353) { + } else if !yym1354 && z.IsJSONHandle() { + z.EncJSONMarshal(yy1353) } else { - z.EncFallback(yy1320) + z.EncFallback(yy1353) } } - if yyr1313 || yy2arr1313 { + if yyr1346 || yy2arr1346 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1313[2] { - yym1323 := z.EncBinary() - _ = yym1323 + if yyq1346[2] { + yym1356 := z.EncBinary() + _ = yym1356 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Host)) @@ -18303,41 +18832,41 @@ func (x *HTTPGetAction) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq1313[2] { + if yyq1346[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("host")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym1324 := z.EncBinary() - _ = yym1324 + yym1357 := z.EncBinary() + _ = yym1357 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Host)) } } } - if yyr1313 || yy2arr1313 { + if yyr1346 || yy2arr1346 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1313[3] { + if yyq1346[3] { x.Scheme.CodecEncodeSelf(e) } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq1313[3] { + if yyq1346[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("scheme")) z.EncSendContainerState(codecSelfer_containerMapValue1234) x.Scheme.CodecEncodeSelf(e) } } - if yyr1313 || yy2arr1313 { + if yyr1346 || yy2arr1346 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1313[4] { + if yyq1346[4] { if x.HTTPHeaders == nil { r.EncodeNil() } else { - yym1327 := z.EncBinary() - _ = yym1327 + yym1360 := z.EncBinary() + _ = yym1360 if false { } else { h.encSliceHTTPHeader(([]HTTPHeader)(x.HTTPHeaders), e) @@ -18347,15 +18876,15 @@ func (x *HTTPGetAction) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq1313[4] { + if yyq1346[4] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("httpHeaders")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.HTTPHeaders == nil { r.EncodeNil() } else { - yym1328 := z.EncBinary() - _ = yym1328 + yym1361 := z.EncBinary() + _ = yym1361 if false { } else { h.encSliceHTTPHeader(([]HTTPHeader)(x.HTTPHeaders), e) @@ -18363,7 +18892,7 @@ func (x *HTTPGetAction) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr1313 || yy2arr1313 { + if yyr1346 || yy2arr1346 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -18376,25 +18905,25 @@ func (x *HTTPGetAction) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1329 := z.DecBinary() - _ = yym1329 + yym1362 := z.DecBinary() + _ = yym1362 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct1330 := r.ContainerType() - if yyct1330 == codecSelferValueTypeMap1234 { - yyl1330 := r.ReadMapStart() - if yyl1330 == 0 { + yyct1363 := r.ContainerType() + if yyct1363 == codecSelferValueTypeMap1234 { + yyl1363 := r.ReadMapStart() + if yyl1363 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl1330, d) + x.codecDecodeSelfFromMap(yyl1363, d) } - } else if yyct1330 == codecSelferValueTypeArray1234 { - yyl1330 := r.ReadArrayStart() - if yyl1330 == 0 { + } else if yyct1363 == codecSelferValueTypeArray1234 { + yyl1363 := r.ReadArrayStart() + if yyl1363 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl1330, d) + x.codecDecodeSelfFromArray(yyl1363, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -18406,12 +18935,12 @@ func (x *HTTPGetAction) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys1331Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys1331Slc - var yyhl1331 bool = l >= 0 - for yyj1331 := 0; ; yyj1331++ { - if yyhl1331 { - if yyj1331 >= l { + var yys1364Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys1364Slc + var yyhl1364 bool = l >= 0 + for yyj1364 := 0; ; yyj1364++ { + if yyhl1364 { + if yyj1364 >= l { break } } else { @@ -18420,10 +18949,10 @@ func (x *HTTPGetAction) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys1331Slc = r.DecodeBytes(yys1331Slc, true, true) - yys1331 := string(yys1331Slc) + yys1364Slc = r.DecodeBytes(yys1364Slc, true, true) + yys1364 := string(yys1364Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys1331 { + switch yys1364 { case "path": if r.TryDecodeAsNil() { x.Path = "" @@ -18434,15 +18963,15 @@ func (x *HTTPGetAction) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.Port = pkg4_intstr.IntOrString{} } else { - yyv1333 := &x.Port - yym1334 := z.DecBinary() - _ = yym1334 + yyv1366 := &x.Port + yym1367 := z.DecBinary() + _ = yym1367 if false { - } else if z.HasExtensions() && z.DecExt(yyv1333) { - } else if !yym1334 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv1333) + } else if z.HasExtensions() && z.DecExt(yyv1366) { + } else if !yym1367 && z.IsJSONHandle() { + z.DecJSONUnmarshal(yyv1366) } else { - z.DecFallback(yyv1333, false) + z.DecFallback(yyv1366, false) } } case "host": @@ -18461,18 +18990,18 @@ func (x *HTTPGetAction) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.HTTPHeaders = nil } else { - yyv1337 := &x.HTTPHeaders - yym1338 := z.DecBinary() - _ = yym1338 + yyv1370 := &x.HTTPHeaders + yym1371 := z.DecBinary() + _ = yym1371 if false { } else { - h.decSliceHTTPHeader((*[]HTTPHeader)(yyv1337), d) + h.decSliceHTTPHeader((*[]HTTPHeader)(yyv1370), d) } } default: - z.DecStructFieldNotFound(-1, yys1331) - } // end switch yys1331 - } // end for yyj1331 + z.DecStructFieldNotFound(-1, yys1364) + } // end switch yys1364 + } // end for yyj1364 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -18480,16 +19009,16 @@ func (x *HTTPGetAction) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj1339 int - var yyb1339 bool - var yyhl1339 bool = l >= 0 - yyj1339++ - if yyhl1339 { - yyb1339 = yyj1339 > l + var yyj1372 int + var yyb1372 bool + var yyhl1372 bool = l >= 0 + yyj1372++ + if yyhl1372 { + yyb1372 = yyj1372 > l } else { - yyb1339 = r.CheckBreak() + yyb1372 = r.CheckBreak() } - if yyb1339 { + if yyb1372 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -18499,13 +19028,13 @@ func (x *HTTPGetAction) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.Path = string(r.DecodeString()) } - yyj1339++ - if yyhl1339 { - yyb1339 = yyj1339 > l + yyj1372++ + if yyhl1372 { + yyb1372 = yyj1372 > l } else { - yyb1339 = r.CheckBreak() + yyb1372 = r.CheckBreak() } - if yyb1339 { + if yyb1372 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -18513,24 +19042,24 @@ func (x *HTTPGetAction) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.Port = pkg4_intstr.IntOrString{} } else { - yyv1341 := &x.Port - yym1342 := z.DecBinary() - _ = yym1342 + yyv1374 := &x.Port + yym1375 := z.DecBinary() + _ = yym1375 if false { - } else if z.HasExtensions() && z.DecExt(yyv1341) { - } else if !yym1342 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv1341) + } else if z.HasExtensions() && z.DecExt(yyv1374) { + } else if !yym1375 && z.IsJSONHandle() { + z.DecJSONUnmarshal(yyv1374) } else { - z.DecFallback(yyv1341, false) + z.DecFallback(yyv1374, false) } } - yyj1339++ - if yyhl1339 { - yyb1339 = yyj1339 > l + yyj1372++ + if yyhl1372 { + yyb1372 = yyj1372 > l } else { - yyb1339 = r.CheckBreak() + yyb1372 = r.CheckBreak() } - if yyb1339 { + if yyb1372 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -18540,13 +19069,13 @@ func (x *HTTPGetAction) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.Host = string(r.DecodeString()) } - yyj1339++ - if yyhl1339 { - yyb1339 = yyj1339 > l + yyj1372++ + if yyhl1372 { + yyb1372 = yyj1372 > l } else { - yyb1339 = r.CheckBreak() + yyb1372 = r.CheckBreak() } - if yyb1339 { + if yyb1372 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -18556,13 +19085,13 @@ func (x *HTTPGetAction) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.Scheme = URIScheme(r.DecodeString()) } - yyj1339++ - if yyhl1339 { - yyb1339 = yyj1339 > l + yyj1372++ + if yyhl1372 { + yyb1372 = yyj1372 > l } else { - yyb1339 = r.CheckBreak() + yyb1372 = r.CheckBreak() } - if yyb1339 { + if yyb1372 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -18570,26 +19099,26 @@ func (x *HTTPGetAction) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.HTTPHeaders = nil } else { - yyv1345 := &x.HTTPHeaders - yym1346 := z.DecBinary() - _ = yym1346 + yyv1378 := &x.HTTPHeaders + yym1379 := z.DecBinary() + _ = yym1379 if false { } else { - h.decSliceHTTPHeader((*[]HTTPHeader)(yyv1345), d) + h.decSliceHTTPHeader((*[]HTTPHeader)(yyv1378), d) } } for { - yyj1339++ - if yyhl1339 { - yyb1339 = yyj1339 > l + yyj1372++ + if yyhl1372 { + yyb1372 = yyj1372 > l } else { - yyb1339 = r.CheckBreak() + yyb1372 = r.CheckBreak() } - if yyb1339 { + if yyb1372 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj1339-1, "") + z.DecStructFieldNotFound(yyj1372-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -18598,8 +19127,8 @@ func (x URIScheme) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r - yym1347 := z.EncBinary() - _ = yym1347 + yym1380 := z.EncBinary() + _ = yym1380 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { @@ -18611,8 +19140,8 @@ func (x *URIScheme) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1348 := z.DecBinary() - _ = yym1348 + yym1381 := z.DecBinary() + _ = yym1381 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { @@ -18627,57 +19156,57 @@ func (x *TCPSocketAction) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1349 := z.EncBinary() - _ = yym1349 + yym1382 := z.EncBinary() + _ = yym1382 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep1350 := !z.EncBinary() - yy2arr1350 := z.EncBasicHandle().StructToArray - var yyq1350 [1]bool - _, _, _ = yysep1350, yyq1350, yy2arr1350 - const yyr1350 bool = false - var yynn1350 int - if yyr1350 || yy2arr1350 { + yysep1383 := !z.EncBinary() + yy2arr1383 := z.EncBasicHandle().StructToArray + var yyq1383 [1]bool + _, _, _ = yysep1383, yyq1383, yy2arr1383 + const yyr1383 bool = false + var yynn1383 int + if yyr1383 || yy2arr1383 { r.EncodeArrayStart(1) } else { - yynn1350 = 1 - for _, b := range yyq1350 { + yynn1383 = 1 + for _, b := range yyq1383 { if b { - yynn1350++ + yynn1383++ } } - r.EncodeMapStart(yynn1350) - yynn1350 = 0 + r.EncodeMapStart(yynn1383) + yynn1383 = 0 } - if yyr1350 || yy2arr1350 { + if yyr1383 || yy2arr1383 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy1352 := &x.Port - yym1353 := z.EncBinary() - _ = yym1353 + yy1385 := &x.Port + yym1386 := z.EncBinary() + _ = yym1386 if false { - } else if z.HasExtensions() && z.EncExt(yy1352) { - } else if !yym1353 && z.IsJSONHandle() { - z.EncJSONMarshal(yy1352) + } else if z.HasExtensions() && z.EncExt(yy1385) { + } else if !yym1386 && z.IsJSONHandle() { + z.EncJSONMarshal(yy1385) } else { - z.EncFallback(yy1352) + z.EncFallback(yy1385) } } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("port")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy1354 := &x.Port - yym1355 := z.EncBinary() - _ = yym1355 + yy1387 := &x.Port + yym1388 := z.EncBinary() + _ = yym1388 if false { - } else if z.HasExtensions() && z.EncExt(yy1354) { - } else if !yym1355 && z.IsJSONHandle() { - z.EncJSONMarshal(yy1354) + } else if z.HasExtensions() && z.EncExt(yy1387) { + } else if !yym1388 && z.IsJSONHandle() { + z.EncJSONMarshal(yy1387) } else { - z.EncFallback(yy1354) + z.EncFallback(yy1387) } } - if yyr1350 || yy2arr1350 { + if yyr1383 || yy2arr1383 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -18690,25 +19219,25 @@ func (x *TCPSocketAction) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1356 := z.DecBinary() - _ = yym1356 + yym1389 := z.DecBinary() + _ = yym1389 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct1357 := r.ContainerType() - if yyct1357 == codecSelferValueTypeMap1234 { - yyl1357 := r.ReadMapStart() - if yyl1357 == 0 { + yyct1390 := r.ContainerType() + if yyct1390 == codecSelferValueTypeMap1234 { + yyl1390 := r.ReadMapStart() + if yyl1390 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl1357, d) + x.codecDecodeSelfFromMap(yyl1390, d) } - } else if yyct1357 == codecSelferValueTypeArray1234 { - yyl1357 := r.ReadArrayStart() - if yyl1357 == 0 { + } else if yyct1390 == codecSelferValueTypeArray1234 { + yyl1390 := r.ReadArrayStart() + if yyl1390 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl1357, d) + x.codecDecodeSelfFromArray(yyl1390, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -18720,12 +19249,12 @@ func (x *TCPSocketAction) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys1358Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys1358Slc - var yyhl1358 bool = l >= 0 - for yyj1358 := 0; ; yyj1358++ { - if yyhl1358 { - if yyj1358 >= l { + var yys1391Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys1391Slc + var yyhl1391 bool = l >= 0 + for yyj1391 := 0; ; yyj1391++ { + if yyhl1391 { + if yyj1391 >= l { break } } else { @@ -18734,29 +19263,29 @@ func (x *TCPSocketAction) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys1358Slc = r.DecodeBytes(yys1358Slc, true, true) - yys1358 := string(yys1358Slc) + yys1391Slc = r.DecodeBytes(yys1391Slc, true, true) + yys1391 := string(yys1391Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys1358 { + switch yys1391 { case "port": if r.TryDecodeAsNil() { x.Port = pkg4_intstr.IntOrString{} } else { - yyv1359 := &x.Port - yym1360 := z.DecBinary() - _ = yym1360 + yyv1392 := &x.Port + yym1393 := z.DecBinary() + _ = yym1393 if false { - } else if z.HasExtensions() && z.DecExt(yyv1359) { - } else if !yym1360 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv1359) + } else if z.HasExtensions() && z.DecExt(yyv1392) { + } else if !yym1393 && z.IsJSONHandle() { + z.DecJSONUnmarshal(yyv1392) } else { - z.DecFallback(yyv1359, false) + z.DecFallback(yyv1392, false) } } default: - z.DecStructFieldNotFound(-1, yys1358) - } // end switch yys1358 - } // end for yyj1358 + z.DecStructFieldNotFound(-1, yys1391) + } // end switch yys1391 + } // end for yyj1391 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -18764,16 +19293,16 @@ func (x *TCPSocketAction) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj1361 int - var yyb1361 bool - var yyhl1361 bool = l >= 0 - yyj1361++ - if yyhl1361 { - yyb1361 = yyj1361 > l + var yyj1394 int + var yyb1394 bool + var yyhl1394 bool = l >= 0 + yyj1394++ + if yyhl1394 { + yyb1394 = yyj1394 > l } else { - yyb1361 = r.CheckBreak() + yyb1394 = r.CheckBreak() } - if yyb1361 { + if yyb1394 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -18781,29 +19310,29 @@ func (x *TCPSocketAction) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) if r.TryDecodeAsNil() { x.Port = pkg4_intstr.IntOrString{} } else { - yyv1362 := &x.Port - yym1363 := z.DecBinary() - _ = yym1363 + yyv1395 := &x.Port + yym1396 := z.DecBinary() + _ = yym1396 if false { - } else if z.HasExtensions() && z.DecExt(yyv1362) { - } else if !yym1363 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv1362) + } else if z.HasExtensions() && z.DecExt(yyv1395) { + } else if !yym1396 && z.IsJSONHandle() { + z.DecJSONUnmarshal(yyv1395) } else { - z.DecFallback(yyv1362, false) + z.DecFallback(yyv1395, false) } } for { - yyj1361++ - if yyhl1361 { - yyb1361 = yyj1361 > l + yyj1394++ + if yyhl1394 { + yyb1394 = yyj1394 > l } else { - yyb1361 = r.CheckBreak() + yyb1394 = r.CheckBreak() } - if yyb1361 { + if yyb1394 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj1361-1, "") + z.DecStructFieldNotFound(yyj1394-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -18815,38 +19344,38 @@ func (x *ExecAction) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1364 := z.EncBinary() - _ = yym1364 + yym1397 := z.EncBinary() + _ = yym1397 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - 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 { + yysep1398 := !z.EncBinary() + yy2arr1398 := z.EncBasicHandle().StructToArray + var yyq1398 [1]bool + _, _, _ = yysep1398, yyq1398, yy2arr1398 + const yyr1398 bool = false + yyq1398[0] = len(x.Command) != 0 + var yynn1398 int + if yyr1398 || yy2arr1398 { r.EncodeArrayStart(1) } else { - yynn1365 = 0 - for _, b := range yyq1365 { + yynn1398 = 0 + for _, b := range yyq1398 { if b { - yynn1365++ + yynn1398++ } } - r.EncodeMapStart(yynn1365) - yynn1365 = 0 + r.EncodeMapStart(yynn1398) + yynn1398 = 0 } - if yyr1365 || yy2arr1365 { + if yyr1398 || yy2arr1398 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1365[0] { + if yyq1398[0] { if x.Command == nil { r.EncodeNil() } else { - yym1367 := z.EncBinary() - _ = yym1367 + yym1400 := z.EncBinary() + _ = yym1400 if false { } else { z.F.EncSliceStringV(x.Command, false, e) @@ -18856,15 +19385,15 @@ func (x *ExecAction) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq1365[0] { + if yyq1398[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("command")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.Command == nil { r.EncodeNil() } else { - yym1368 := z.EncBinary() - _ = yym1368 + yym1401 := z.EncBinary() + _ = yym1401 if false { } else { z.F.EncSliceStringV(x.Command, false, e) @@ -18872,7 +19401,7 @@ func (x *ExecAction) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr1365 || yy2arr1365 { + if yyr1398 || yy2arr1398 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -18885,25 +19414,25 @@ func (x *ExecAction) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1369 := z.DecBinary() - _ = yym1369 + yym1402 := z.DecBinary() + _ = yym1402 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct1370 := r.ContainerType() - if yyct1370 == codecSelferValueTypeMap1234 { - yyl1370 := r.ReadMapStart() - if yyl1370 == 0 { + yyct1403 := r.ContainerType() + if yyct1403 == codecSelferValueTypeMap1234 { + yyl1403 := r.ReadMapStart() + if yyl1403 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl1370, d) + x.codecDecodeSelfFromMap(yyl1403, d) } - } else if yyct1370 == codecSelferValueTypeArray1234 { - yyl1370 := r.ReadArrayStart() - if yyl1370 == 0 { + } else if yyct1403 == codecSelferValueTypeArray1234 { + yyl1403 := r.ReadArrayStart() + if yyl1403 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl1370, d) + x.codecDecodeSelfFromArray(yyl1403, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -18915,12 +19444,12 @@ func (x *ExecAction) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys1371Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys1371Slc - var yyhl1371 bool = l >= 0 - for yyj1371 := 0; ; yyj1371++ { - if yyhl1371 { - if yyj1371 >= l { + var yys1404Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys1404Slc + var yyhl1404 bool = l >= 0 + for yyj1404 := 0; ; yyj1404++ { + if yyhl1404 { + if yyj1404 >= l { break } } else { @@ -18929,26 +19458,26 @@ func (x *ExecAction) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys1371Slc = r.DecodeBytes(yys1371Slc, true, true) - yys1371 := string(yys1371Slc) + yys1404Slc = r.DecodeBytes(yys1404Slc, true, true) + yys1404 := string(yys1404Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys1371 { + switch yys1404 { case "command": if r.TryDecodeAsNil() { x.Command = nil } else { - yyv1372 := &x.Command - yym1373 := z.DecBinary() - _ = yym1373 + yyv1405 := &x.Command + yym1406 := z.DecBinary() + _ = yym1406 if false { } else { - z.F.DecSliceStringX(yyv1372, false, d) + z.F.DecSliceStringX(yyv1405, false, d) } } default: - z.DecStructFieldNotFound(-1, yys1371) - } // end switch yys1371 - } // end for yyj1371 + z.DecStructFieldNotFound(-1, yys1404) + } // end switch yys1404 + } // end for yyj1404 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -18956,16 +19485,16 @@ func (x *ExecAction) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj1374 int - var yyb1374 bool - var yyhl1374 bool = l >= 0 - yyj1374++ - if yyhl1374 { - yyb1374 = yyj1374 > l + var yyj1407 int + var yyb1407 bool + var yyhl1407 bool = l >= 0 + yyj1407++ + if yyhl1407 { + yyb1407 = yyj1407 > l } else { - yyb1374 = r.CheckBreak() + yyb1407 = r.CheckBreak() } - if yyb1374 { + if yyb1407 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -18973,26 +19502,26 @@ func (x *ExecAction) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.Command = nil } else { - yyv1375 := &x.Command - yym1376 := z.DecBinary() - _ = yym1376 + yyv1408 := &x.Command + yym1409 := z.DecBinary() + _ = yym1409 if false { } else { - z.F.DecSliceStringX(yyv1375, false, d) + z.F.DecSliceStringX(yyv1408, false, d) } } for { - yyj1374++ - if yyhl1374 { - yyb1374 = yyj1374 > l + yyj1407++ + if yyhl1407 { + yyb1407 = yyj1407 > l } else { - yyb1374 = r.CheckBreak() + yyb1407 = r.CheckBreak() } - if yyb1374 { + if yyb1407 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj1374-1, "") + z.DecStructFieldNotFound(yyj1407-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -19004,49 +19533,49 @@ func (x *Probe) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1377 := z.EncBinary() - _ = yym1377 + yym1410 := z.EncBinary() + _ = yym1410 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - 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 { + yysep1411 := !z.EncBinary() + yy2arr1411 := z.EncBasicHandle().StructToArray + var yyq1411 [8]bool + _, _, _ = yysep1411, yyq1411, yy2arr1411 + const yyr1411 bool = false + yyq1411[0] = x.Handler.Exec != nil && x.Exec != nil + yyq1411[1] = x.Handler.HTTPGet != nil && x.HTTPGet != nil + yyq1411[2] = x.Handler.TCPSocket != nil && x.TCPSocket != nil + yyq1411[3] = x.InitialDelaySeconds != 0 + yyq1411[4] = x.TimeoutSeconds != 0 + yyq1411[5] = x.PeriodSeconds != 0 + yyq1411[6] = x.SuccessThreshold != 0 + yyq1411[7] = x.FailureThreshold != 0 + var yynn1411 int + if yyr1411 || yy2arr1411 { r.EncodeArrayStart(8) } else { - yynn1378 = 0 - for _, b := range yyq1378 { + yynn1411 = 0 + for _, b := range yyq1411 { if b { - yynn1378++ + yynn1411++ } } - r.EncodeMapStart(yynn1378) - yynn1378 = 0 + r.EncodeMapStart(yynn1411) + yynn1411 = 0 } - var yyn1379 bool + var yyn1412 bool if x.Handler.Exec == nil { - yyn1379 = true - goto LABEL1379 + yyn1412 = true + goto LABEL1412 } - LABEL1379: - if yyr1378 || yy2arr1378 { - if yyn1379 { + LABEL1412: + if yyr1411 || yy2arr1411 { + if yyn1412 { r.EncodeNil() } else { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1378[0] { + if yyq1411[0] { if x.Exec == nil { r.EncodeNil() } else { @@ -19057,11 +19586,11 @@ func (x *Probe) CodecEncodeSelf(e *codec1978.Encoder) { } } } else { - if yyq1378[0] { + if yyq1411[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("exec")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - if yyn1379 { + if yyn1412 { r.EncodeNil() } else { if x.Exec == nil { @@ -19072,18 +19601,18 @@ func (x *Probe) CodecEncodeSelf(e *codec1978.Encoder) { } } } - var yyn1380 bool + var yyn1413 bool if x.Handler.HTTPGet == nil { - yyn1380 = true - goto LABEL1380 + yyn1413 = true + goto LABEL1413 } - LABEL1380: - if yyr1378 || yy2arr1378 { - if yyn1380 { + LABEL1413: + if yyr1411 || yy2arr1411 { + if yyn1413 { r.EncodeNil() } else { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1378[1] { + if yyq1411[1] { if x.HTTPGet == nil { r.EncodeNil() } else { @@ -19094,11 +19623,11 @@ func (x *Probe) CodecEncodeSelf(e *codec1978.Encoder) { } } } else { - if yyq1378[1] { + if yyq1411[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("httpGet")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - if yyn1380 { + if yyn1413 { r.EncodeNil() } else { if x.HTTPGet == nil { @@ -19109,18 +19638,18 @@ func (x *Probe) CodecEncodeSelf(e *codec1978.Encoder) { } } } - var yyn1381 bool + var yyn1414 bool if x.Handler.TCPSocket == nil { - yyn1381 = true - goto LABEL1381 + yyn1414 = true + goto LABEL1414 } - LABEL1381: - if yyr1378 || yy2arr1378 { - if yyn1381 { + LABEL1414: + if yyr1411 || yy2arr1411 { + if yyn1414 { r.EncodeNil() } else { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1378[2] { + if yyq1411[2] { if x.TCPSocket == nil { r.EncodeNil() } else { @@ -19131,11 +19660,11 @@ func (x *Probe) CodecEncodeSelf(e *codec1978.Encoder) { } } } else { - if yyq1378[2] { + if yyq1411[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("tcpSocket")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - if yyn1381 { + if yyn1414 { r.EncodeNil() } else { if x.TCPSocket == nil { @@ -19146,11 +19675,11 @@ func (x *Probe) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr1378 || yy2arr1378 { + if yyr1411 || yy2arr1411 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1378[3] { - yym1383 := z.EncBinary() - _ = yym1383 + if yyq1411[3] { + yym1416 := z.EncBinary() + _ = yym1416 if false { } else { r.EncodeInt(int64(x.InitialDelaySeconds)) @@ -19159,23 +19688,23 @@ func (x *Probe) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeInt(0) } } else { - if yyq1378[3] { + if yyq1411[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("initialDelaySeconds")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym1384 := z.EncBinary() - _ = yym1384 + yym1417 := z.EncBinary() + _ = yym1417 if false { } else { r.EncodeInt(int64(x.InitialDelaySeconds)) } } } - if yyr1378 || yy2arr1378 { + if yyr1411 || yy2arr1411 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1378[4] { - yym1386 := z.EncBinary() - _ = yym1386 + if yyq1411[4] { + yym1419 := z.EncBinary() + _ = yym1419 if false { } else { r.EncodeInt(int64(x.TimeoutSeconds)) @@ -19184,23 +19713,23 @@ func (x *Probe) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeInt(0) } } else { - if yyq1378[4] { + if yyq1411[4] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("timeoutSeconds")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym1387 := z.EncBinary() - _ = yym1387 + yym1420 := z.EncBinary() + _ = yym1420 if false { } else { r.EncodeInt(int64(x.TimeoutSeconds)) } } } - if yyr1378 || yy2arr1378 { + if yyr1411 || yy2arr1411 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1378[5] { - yym1389 := z.EncBinary() - _ = yym1389 + if yyq1411[5] { + yym1422 := z.EncBinary() + _ = yym1422 if false { } else { r.EncodeInt(int64(x.PeriodSeconds)) @@ -19209,23 +19738,23 @@ func (x *Probe) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeInt(0) } } else { - if yyq1378[5] { + if yyq1411[5] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("periodSeconds")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym1390 := z.EncBinary() - _ = yym1390 + yym1423 := z.EncBinary() + _ = yym1423 if false { } else { r.EncodeInt(int64(x.PeriodSeconds)) } } } - if yyr1378 || yy2arr1378 { + if yyr1411 || yy2arr1411 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1378[6] { - yym1392 := z.EncBinary() - _ = yym1392 + if yyq1411[6] { + yym1425 := z.EncBinary() + _ = yym1425 if false { } else { r.EncodeInt(int64(x.SuccessThreshold)) @@ -19234,23 +19763,23 @@ func (x *Probe) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeInt(0) } } else { - if yyq1378[6] { + if yyq1411[6] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("successThreshold")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym1393 := z.EncBinary() - _ = yym1393 + yym1426 := z.EncBinary() + _ = yym1426 if false { } else { r.EncodeInt(int64(x.SuccessThreshold)) } } } - if yyr1378 || yy2arr1378 { + if yyr1411 || yy2arr1411 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1378[7] { - yym1395 := z.EncBinary() - _ = yym1395 + if yyq1411[7] { + yym1428 := z.EncBinary() + _ = yym1428 if false { } else { r.EncodeInt(int64(x.FailureThreshold)) @@ -19259,19 +19788,19 @@ func (x *Probe) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeInt(0) } } else { - if yyq1378[7] { + if yyq1411[7] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("failureThreshold")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym1396 := z.EncBinary() - _ = yym1396 + yym1429 := z.EncBinary() + _ = yym1429 if false { } else { r.EncodeInt(int64(x.FailureThreshold)) } } } - if yyr1378 || yy2arr1378 { + if yyr1411 || yy2arr1411 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -19284,25 +19813,25 @@ func (x *Probe) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1397 := z.DecBinary() - _ = yym1397 + yym1430 := z.DecBinary() + _ = yym1430 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct1398 := r.ContainerType() - if yyct1398 == codecSelferValueTypeMap1234 { - yyl1398 := r.ReadMapStart() - if yyl1398 == 0 { + yyct1431 := r.ContainerType() + if yyct1431 == codecSelferValueTypeMap1234 { + yyl1431 := r.ReadMapStart() + if yyl1431 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl1398, d) + x.codecDecodeSelfFromMap(yyl1431, d) } - } else if yyct1398 == codecSelferValueTypeArray1234 { - yyl1398 := r.ReadArrayStart() - if yyl1398 == 0 { + } else if yyct1431 == codecSelferValueTypeArray1234 { + yyl1431 := r.ReadArrayStart() + if yyl1431 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl1398, d) + x.codecDecodeSelfFromArray(yyl1431, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -19314,12 +19843,12 @@ func (x *Probe) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys1399Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys1399Slc - var yyhl1399 bool = l >= 0 - for yyj1399 := 0; ; yyj1399++ { - if yyhl1399 { - if yyj1399 >= l { + var yys1432Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys1432Slc + var yyhl1432 bool = l >= 0 + for yyj1432 := 0; ; yyj1432++ { + if yyhl1432 { + if yyj1432 >= l { break } } else { @@ -19328,10 +19857,10 @@ func (x *Probe) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys1399Slc = r.DecodeBytes(yys1399Slc, true, true) - yys1399 := string(yys1399Slc) + yys1432Slc = r.DecodeBytes(yys1432Slc, true, true) + yys1432 := string(yys1432Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys1399 { + switch yys1432 { case "exec": if x.Handler.Exec == nil { x.Handler.Exec = new(ExecAction) @@ -19405,9 +19934,9 @@ func (x *Probe) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { x.FailureThreshold = int32(r.DecodeInt(32)) } default: - z.DecStructFieldNotFound(-1, yys1399) - } // end switch yys1399 - } // end for yyj1399 + z.DecStructFieldNotFound(-1, yys1432) + } // end switch yys1432 + } // end for yyj1432 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -19415,19 +19944,19 @@ func (x *Probe) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj1408 int - var yyb1408 bool - var yyhl1408 bool = l >= 0 + var yyj1441 int + var yyb1441 bool + var yyhl1441 bool = l >= 0 if x.Handler.Exec == nil { x.Handler.Exec = new(ExecAction) } - yyj1408++ - if yyhl1408 { - yyb1408 = yyj1408 > l + yyj1441++ + if yyhl1441 { + yyb1441 = yyj1441 > l } else { - yyb1408 = r.CheckBreak() + yyb1441 = r.CheckBreak() } - if yyb1408 { + if yyb1441 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -19445,13 +19974,13 @@ func (x *Probe) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if x.Handler.HTTPGet == nil { x.Handler.HTTPGet = new(HTTPGetAction) } - yyj1408++ - if yyhl1408 { - yyb1408 = yyj1408 > l + yyj1441++ + if yyhl1441 { + yyb1441 = yyj1441 > l } else { - yyb1408 = r.CheckBreak() + yyb1441 = r.CheckBreak() } - if yyb1408 { + if yyb1441 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -19469,13 +19998,13 @@ func (x *Probe) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if x.Handler.TCPSocket == nil { x.Handler.TCPSocket = new(TCPSocketAction) } - yyj1408++ - if yyhl1408 { - yyb1408 = yyj1408 > l + yyj1441++ + if yyhl1441 { + yyb1441 = yyj1441 > l } else { - yyb1408 = r.CheckBreak() + yyb1441 = r.CheckBreak() } - if yyb1408 { + if yyb1441 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -19490,13 +20019,13 @@ func (x *Probe) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } x.TCPSocket.CodecDecodeSelf(d) } - yyj1408++ - if yyhl1408 { - yyb1408 = yyj1408 > l + yyj1441++ + if yyhl1441 { + yyb1441 = yyj1441 > l } else { - yyb1408 = r.CheckBreak() + yyb1441 = r.CheckBreak() } - if yyb1408 { + if yyb1441 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -19506,13 +20035,13 @@ func (x *Probe) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.InitialDelaySeconds = int32(r.DecodeInt(32)) } - yyj1408++ - if yyhl1408 { - yyb1408 = yyj1408 > l + yyj1441++ + if yyhl1441 { + yyb1441 = yyj1441 > l } else { - yyb1408 = r.CheckBreak() + yyb1441 = r.CheckBreak() } - if yyb1408 { + if yyb1441 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -19522,13 +20051,13 @@ func (x *Probe) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.TimeoutSeconds = int32(r.DecodeInt(32)) } - yyj1408++ - if yyhl1408 { - yyb1408 = yyj1408 > l + yyj1441++ + if yyhl1441 { + yyb1441 = yyj1441 > l } else { - yyb1408 = r.CheckBreak() + yyb1441 = r.CheckBreak() } - if yyb1408 { + if yyb1441 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -19538,13 +20067,13 @@ func (x *Probe) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.PeriodSeconds = int32(r.DecodeInt(32)) } - yyj1408++ - if yyhl1408 { - yyb1408 = yyj1408 > l + yyj1441++ + if yyhl1441 { + yyb1441 = yyj1441 > l } else { - yyb1408 = r.CheckBreak() + yyb1441 = r.CheckBreak() } - if yyb1408 { + if yyb1441 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -19554,13 +20083,13 @@ func (x *Probe) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.SuccessThreshold = int32(r.DecodeInt(32)) } - yyj1408++ - if yyhl1408 { - yyb1408 = yyj1408 > l + yyj1441++ + if yyhl1441 { + yyb1441 = yyj1441 > l } else { - yyb1408 = r.CheckBreak() + yyb1441 = r.CheckBreak() } - if yyb1408 { + if yyb1441 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -19571,17 +20100,17 @@ func (x *Probe) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { x.FailureThreshold = int32(r.DecodeInt(32)) } for { - yyj1408++ - if yyhl1408 { - yyb1408 = yyj1408 > l + yyj1441++ + if yyhl1441 { + yyb1441 = yyj1441 > l } else { - yyb1408 = r.CheckBreak() + yyb1441 = r.CheckBreak() } - if yyb1408 { + if yyb1441 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj1408-1, "") + z.DecStructFieldNotFound(yyj1441-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -19590,8 +20119,8 @@ func (x PullPolicy) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r - yym1417 := z.EncBinary() - _ = yym1417 + yym1450 := z.EncBinary() + _ = yym1450 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { @@ -19603,8 +20132,8 @@ func (x *PullPolicy) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1418 := z.DecBinary() - _ = yym1418 + yym1451 := z.DecBinary() + _ = yym1451 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { @@ -19616,8 +20145,8 @@ func (x Capability) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r - yym1419 := z.EncBinary() - _ = yym1419 + yym1452 := z.EncBinary() + _ = yym1452 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { @@ -19629,8 +20158,8 @@ func (x *Capability) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1420 := z.DecBinary() - _ = yym1420 + yym1453 := z.DecBinary() + _ = yym1453 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { @@ -19645,39 +20174,39 @@ func (x *Capabilities) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1421 := z.EncBinary() - _ = yym1421 + yym1454 := z.EncBinary() + _ = yym1454 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - 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 { + yysep1455 := !z.EncBinary() + yy2arr1455 := z.EncBasicHandle().StructToArray + var yyq1455 [2]bool + _, _, _ = yysep1455, yyq1455, yy2arr1455 + const yyr1455 bool = false + yyq1455[0] = len(x.Add) != 0 + yyq1455[1] = len(x.Drop) != 0 + var yynn1455 int + if yyr1455 || yy2arr1455 { r.EncodeArrayStart(2) } else { - yynn1422 = 0 - for _, b := range yyq1422 { + yynn1455 = 0 + for _, b := range yyq1455 { if b { - yynn1422++ + yynn1455++ } } - r.EncodeMapStart(yynn1422) - yynn1422 = 0 + r.EncodeMapStart(yynn1455) + yynn1455 = 0 } - if yyr1422 || yy2arr1422 { + if yyr1455 || yy2arr1455 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1422[0] { + if yyq1455[0] { if x.Add == nil { r.EncodeNil() } else { - yym1424 := z.EncBinary() - _ = yym1424 + yym1457 := z.EncBinary() + _ = yym1457 if false { } else { h.encSliceCapability(([]Capability)(x.Add), e) @@ -19687,15 +20216,15 @@ func (x *Capabilities) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq1422[0] { + if yyq1455[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("add")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.Add == nil { r.EncodeNil() } else { - yym1425 := z.EncBinary() - _ = yym1425 + yym1458 := z.EncBinary() + _ = yym1458 if false { } else { h.encSliceCapability(([]Capability)(x.Add), e) @@ -19703,14 +20232,14 @@ func (x *Capabilities) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr1422 || yy2arr1422 { + if yyr1455 || yy2arr1455 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1422[1] { + if yyq1455[1] { if x.Drop == nil { r.EncodeNil() } else { - yym1427 := z.EncBinary() - _ = yym1427 + yym1460 := z.EncBinary() + _ = yym1460 if false { } else { h.encSliceCapability(([]Capability)(x.Drop), e) @@ -19720,15 +20249,15 @@ func (x *Capabilities) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq1422[1] { + if yyq1455[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("drop")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.Drop == nil { r.EncodeNil() } else { - yym1428 := z.EncBinary() - _ = yym1428 + yym1461 := z.EncBinary() + _ = yym1461 if false { } else { h.encSliceCapability(([]Capability)(x.Drop), e) @@ -19736,7 +20265,7 @@ func (x *Capabilities) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr1422 || yy2arr1422 { + if yyr1455 || yy2arr1455 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -19749,25 +20278,25 @@ func (x *Capabilities) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1429 := z.DecBinary() - _ = yym1429 + yym1462 := z.DecBinary() + _ = yym1462 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct1430 := r.ContainerType() - if yyct1430 == codecSelferValueTypeMap1234 { - yyl1430 := r.ReadMapStart() - if yyl1430 == 0 { + yyct1463 := r.ContainerType() + if yyct1463 == codecSelferValueTypeMap1234 { + yyl1463 := r.ReadMapStart() + if yyl1463 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl1430, d) + x.codecDecodeSelfFromMap(yyl1463, d) } - } else if yyct1430 == codecSelferValueTypeArray1234 { - yyl1430 := r.ReadArrayStart() - if yyl1430 == 0 { + } else if yyct1463 == codecSelferValueTypeArray1234 { + yyl1463 := r.ReadArrayStart() + if yyl1463 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl1430, d) + x.codecDecodeSelfFromArray(yyl1463, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -19779,12 +20308,12 @@ func (x *Capabilities) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys1431Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys1431Slc - var yyhl1431 bool = l >= 0 - for yyj1431 := 0; ; yyj1431++ { - if yyhl1431 { - if yyj1431 >= l { + var yys1464Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys1464Slc + var yyhl1464 bool = l >= 0 + for yyj1464 := 0; ; yyj1464++ { + if yyhl1464 { + if yyj1464 >= l { break } } else { @@ -19793,38 +20322,38 @@ func (x *Capabilities) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys1431Slc = r.DecodeBytes(yys1431Slc, true, true) - yys1431 := string(yys1431Slc) + yys1464Slc = r.DecodeBytes(yys1464Slc, true, true) + yys1464 := string(yys1464Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys1431 { + switch yys1464 { case "add": if r.TryDecodeAsNil() { x.Add = nil } else { - yyv1432 := &x.Add - yym1433 := z.DecBinary() - _ = yym1433 + yyv1465 := &x.Add + yym1466 := z.DecBinary() + _ = yym1466 if false { } else { - h.decSliceCapability((*[]Capability)(yyv1432), d) + h.decSliceCapability((*[]Capability)(yyv1465), d) } } case "drop": if r.TryDecodeAsNil() { x.Drop = nil } else { - yyv1434 := &x.Drop - yym1435 := z.DecBinary() - _ = yym1435 + yyv1467 := &x.Drop + yym1468 := z.DecBinary() + _ = yym1468 if false { } else { - h.decSliceCapability((*[]Capability)(yyv1434), d) + h.decSliceCapability((*[]Capability)(yyv1467), d) } } default: - z.DecStructFieldNotFound(-1, yys1431) - } // end switch yys1431 - } // end for yyj1431 + z.DecStructFieldNotFound(-1, yys1464) + } // end switch yys1464 + } // end for yyj1464 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -19832,16 +20361,16 @@ func (x *Capabilities) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj1436 int - var yyb1436 bool - var yyhl1436 bool = l >= 0 - yyj1436++ - if yyhl1436 { - yyb1436 = yyj1436 > l + var yyj1469 int + var yyb1469 bool + var yyhl1469 bool = l >= 0 + yyj1469++ + if yyhl1469 { + yyb1469 = yyj1469 > l } else { - yyb1436 = r.CheckBreak() + yyb1469 = r.CheckBreak() } - if yyb1436 { + if yyb1469 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -19849,21 +20378,21 @@ func (x *Capabilities) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.Add = nil } else { - yyv1437 := &x.Add - yym1438 := z.DecBinary() - _ = yym1438 + yyv1470 := &x.Add + yym1471 := z.DecBinary() + _ = yym1471 if false { } else { - h.decSliceCapability((*[]Capability)(yyv1437), d) + h.decSliceCapability((*[]Capability)(yyv1470), d) } } - yyj1436++ - if yyhl1436 { - yyb1436 = yyj1436 > l + yyj1469++ + if yyhl1469 { + yyb1469 = yyj1469 > l } else { - yyb1436 = r.CheckBreak() + yyb1469 = r.CheckBreak() } - if yyb1436 { + if yyb1469 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -19871,26 +20400,26 @@ func (x *Capabilities) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.Drop = nil } else { - yyv1439 := &x.Drop - yym1440 := z.DecBinary() - _ = yym1440 + yyv1472 := &x.Drop + yym1473 := z.DecBinary() + _ = yym1473 if false { } else { - h.decSliceCapability((*[]Capability)(yyv1439), d) + h.decSliceCapability((*[]Capability)(yyv1472), d) } } for { - yyj1436++ - if yyhl1436 { - yyb1436 = yyj1436 > l + yyj1469++ + if yyhl1469 { + yyb1469 = yyj1469 > l } else { - yyb1436 = r.CheckBreak() + yyb1469 = r.CheckBreak() } - if yyb1436 { + if yyb1469 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj1436-1, "") + z.DecStructFieldNotFound(yyj1469-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -19902,34 +20431,34 @@ func (x *ResourceRequirements) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1441 := z.EncBinary() - _ = yym1441 + yym1474 := z.EncBinary() + _ = yym1474 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - 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 { + yysep1475 := !z.EncBinary() + yy2arr1475 := z.EncBasicHandle().StructToArray + var yyq1475 [2]bool + _, _, _ = yysep1475, yyq1475, yy2arr1475 + const yyr1475 bool = false + yyq1475[0] = len(x.Limits) != 0 + yyq1475[1] = len(x.Requests) != 0 + var yynn1475 int + if yyr1475 || yy2arr1475 { r.EncodeArrayStart(2) } else { - yynn1442 = 0 - for _, b := range yyq1442 { + yynn1475 = 0 + for _, b := range yyq1475 { if b { - yynn1442++ + yynn1475++ } } - r.EncodeMapStart(yynn1442) - yynn1442 = 0 + r.EncodeMapStart(yynn1475) + yynn1475 = 0 } - if yyr1442 || yy2arr1442 { + if yyr1475 || yy2arr1475 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1442[0] { + if yyq1475[0] { if x.Limits == nil { r.EncodeNil() } else { @@ -19939,7 +20468,7 @@ func (x *ResourceRequirements) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq1442[0] { + if yyq1475[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("limits")) z.EncSendContainerState(codecSelfer_containerMapValue1234) @@ -19950,9 +20479,9 @@ func (x *ResourceRequirements) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr1442 || yy2arr1442 { + if yyr1475 || yy2arr1475 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1442[1] { + if yyq1475[1] { if x.Requests == nil { r.EncodeNil() } else { @@ -19962,7 +20491,7 @@ func (x *ResourceRequirements) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq1442[1] { + if yyq1475[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("requests")) z.EncSendContainerState(codecSelfer_containerMapValue1234) @@ -19973,7 +20502,7 @@ func (x *ResourceRequirements) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr1442 || yy2arr1442 { + if yyr1475 || yy2arr1475 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -19986,25 +20515,25 @@ func (x *ResourceRequirements) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1445 := z.DecBinary() - _ = yym1445 + yym1478 := z.DecBinary() + _ = yym1478 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct1446 := r.ContainerType() - if yyct1446 == codecSelferValueTypeMap1234 { - yyl1446 := r.ReadMapStart() - if yyl1446 == 0 { + yyct1479 := r.ContainerType() + if yyct1479 == codecSelferValueTypeMap1234 { + yyl1479 := r.ReadMapStart() + if yyl1479 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl1446, d) + x.codecDecodeSelfFromMap(yyl1479, d) } - } else if yyct1446 == codecSelferValueTypeArray1234 { - yyl1446 := r.ReadArrayStart() - if yyl1446 == 0 { + } else if yyct1479 == codecSelferValueTypeArray1234 { + yyl1479 := r.ReadArrayStart() + if yyl1479 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl1446, d) + x.codecDecodeSelfFromArray(yyl1479, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -20016,12 +20545,12 @@ func (x *ResourceRequirements) codecDecodeSelfFromMap(l int, d *codec1978.Decode var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys1447Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys1447Slc - var yyhl1447 bool = l >= 0 - for yyj1447 := 0; ; yyj1447++ { - if yyhl1447 { - if yyj1447 >= l { + var yys1480Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys1480Slc + var yyhl1480 bool = l >= 0 + for yyj1480 := 0; ; yyj1480++ { + if yyhl1480 { + if yyj1480 >= l { break } } else { @@ -20030,28 +20559,28 @@ func (x *ResourceRequirements) codecDecodeSelfFromMap(l int, d *codec1978.Decode } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys1447Slc = r.DecodeBytes(yys1447Slc, true, true) - yys1447 := string(yys1447Slc) + yys1480Slc = r.DecodeBytes(yys1480Slc, true, true) + yys1480 := string(yys1480Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys1447 { + switch yys1480 { case "limits": if r.TryDecodeAsNil() { x.Limits = nil } else { - yyv1448 := &x.Limits - yyv1448.CodecDecodeSelf(d) + yyv1481 := &x.Limits + yyv1481.CodecDecodeSelf(d) } case "requests": if r.TryDecodeAsNil() { x.Requests = nil } else { - yyv1449 := &x.Requests - yyv1449.CodecDecodeSelf(d) + yyv1482 := &x.Requests + yyv1482.CodecDecodeSelf(d) } default: - z.DecStructFieldNotFound(-1, yys1447) - } // end switch yys1447 - } // end for yyj1447 + z.DecStructFieldNotFound(-1, yys1480) + } // end switch yys1480 + } // end for yyj1480 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -20059,16 +20588,16 @@ func (x *ResourceRequirements) codecDecodeSelfFromArray(l int, d *codec1978.Deco var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj1450 int - var yyb1450 bool - var yyhl1450 bool = l >= 0 - yyj1450++ - if yyhl1450 { - yyb1450 = yyj1450 > l + var yyj1483 int + var yyb1483 bool + var yyhl1483 bool = l >= 0 + yyj1483++ + if yyhl1483 { + yyb1483 = yyj1483 > l } else { - yyb1450 = r.CheckBreak() + yyb1483 = r.CheckBreak() } - if yyb1450 { + if yyb1483 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -20076,16 +20605,16 @@ func (x *ResourceRequirements) codecDecodeSelfFromArray(l int, d *codec1978.Deco if r.TryDecodeAsNil() { x.Limits = nil } else { - yyv1451 := &x.Limits - yyv1451.CodecDecodeSelf(d) + yyv1484 := &x.Limits + yyv1484.CodecDecodeSelf(d) } - yyj1450++ - if yyhl1450 { - yyb1450 = yyj1450 > l + yyj1483++ + if yyhl1483 { + yyb1483 = yyj1483 > l } else { - yyb1450 = r.CheckBreak() + yyb1483 = r.CheckBreak() } - if yyb1450 { + if yyb1483 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -20093,21 +20622,21 @@ func (x *ResourceRequirements) codecDecodeSelfFromArray(l int, d *codec1978.Deco if r.TryDecodeAsNil() { x.Requests = nil } else { - yyv1452 := &x.Requests - yyv1452.CodecDecodeSelf(d) + yyv1485 := &x.Requests + yyv1485.CodecDecodeSelf(d) } for { - yyj1450++ - if yyhl1450 { - yyb1450 = yyj1450 > l + yyj1483++ + if yyhl1483 { + yyb1483 = yyj1483 > l } else { - yyb1450 = r.CheckBreak() + yyb1483 = r.CheckBreak() } - if yyb1450 { + if yyb1483 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj1450-1, "") + z.DecStructFieldNotFound(yyj1483-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -20119,50 +20648,50 @@ func (x *Container) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1453 := z.EncBinary() - _ = yym1453 + yym1486 := z.EncBinary() + _ = yym1486 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - 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 { + yysep1487 := !z.EncBinary() + yy2arr1487 := z.EncBasicHandle().StructToArray + var yyq1487 [18]bool + _, _, _ = yysep1487, yyq1487, yy2arr1487 + const yyr1487 bool = false + yyq1487[1] = x.Image != "" + yyq1487[2] = len(x.Command) != 0 + yyq1487[3] = len(x.Args) != 0 + yyq1487[4] = x.WorkingDir != "" + yyq1487[5] = len(x.Ports) != 0 + yyq1487[6] = len(x.Env) != 0 + yyq1487[7] = true + yyq1487[8] = len(x.VolumeMounts) != 0 + yyq1487[9] = x.LivenessProbe != nil + yyq1487[10] = x.ReadinessProbe != nil + yyq1487[11] = x.Lifecycle != nil + yyq1487[12] = x.TerminationMessagePath != "" + yyq1487[13] = x.ImagePullPolicy != "" + yyq1487[14] = x.SecurityContext != nil + yyq1487[15] = x.Stdin != false + yyq1487[16] = x.StdinOnce != false + yyq1487[17] = x.TTY != false + var yynn1487 int + if yyr1487 || yy2arr1487 { r.EncodeArrayStart(18) } else { - yynn1454 = 1 - for _, b := range yyq1454 { + yynn1487 = 1 + for _, b := range yyq1487 { if b { - yynn1454++ + yynn1487++ } } - r.EncodeMapStart(yynn1454) - yynn1454 = 0 + r.EncodeMapStart(yynn1487) + yynn1487 = 0 } - if yyr1454 || yy2arr1454 { + if yyr1487 || yy2arr1487 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym1456 := z.EncBinary() - _ = yym1456 + yym1489 := z.EncBinary() + _ = yym1489 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Name)) @@ -20171,18 +20700,18 @@ func (x *Container) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("name")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym1457 := z.EncBinary() - _ = yym1457 + yym1490 := z.EncBinary() + _ = yym1490 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Name)) } } - if yyr1454 || yy2arr1454 { + if yyr1487 || yy2arr1487 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1454[1] { - yym1459 := z.EncBinary() - _ = yym1459 + if yyq1487[1] { + yym1492 := z.EncBinary() + _ = yym1492 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Image)) @@ -20191,26 +20720,26 @@ func (x *Container) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq1454[1] { + if yyq1487[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("image")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym1460 := z.EncBinary() - _ = yym1460 + yym1493 := z.EncBinary() + _ = yym1493 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Image)) } } } - if yyr1454 || yy2arr1454 { + if yyr1487 || yy2arr1487 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1454[2] { + if yyq1487[2] { if x.Command == nil { r.EncodeNil() } else { - yym1462 := z.EncBinary() - _ = yym1462 + yym1495 := z.EncBinary() + _ = yym1495 if false { } else { z.F.EncSliceStringV(x.Command, false, e) @@ -20220,15 +20749,15 @@ func (x *Container) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq1454[2] { + if yyq1487[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("command")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.Command == nil { r.EncodeNil() } else { - yym1463 := z.EncBinary() - _ = yym1463 + yym1496 := z.EncBinary() + _ = yym1496 if false { } else { z.F.EncSliceStringV(x.Command, false, e) @@ -20236,14 +20765,14 @@ func (x *Container) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr1454 || yy2arr1454 { + if yyr1487 || yy2arr1487 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1454[3] { + if yyq1487[3] { if x.Args == nil { r.EncodeNil() } else { - yym1465 := z.EncBinary() - _ = yym1465 + yym1498 := z.EncBinary() + _ = yym1498 if false { } else { z.F.EncSliceStringV(x.Args, false, e) @@ -20253,15 +20782,15 @@ func (x *Container) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq1454[3] { + if yyq1487[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("args")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.Args == nil { r.EncodeNil() } else { - yym1466 := z.EncBinary() - _ = yym1466 + yym1499 := z.EncBinary() + _ = yym1499 if false { } else { z.F.EncSliceStringV(x.Args, false, e) @@ -20269,11 +20798,11 @@ func (x *Container) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr1454 || yy2arr1454 { + if yyr1487 || yy2arr1487 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1454[4] { - yym1468 := z.EncBinary() - _ = yym1468 + if yyq1487[4] { + yym1501 := z.EncBinary() + _ = yym1501 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.WorkingDir)) @@ -20282,26 +20811,26 @@ func (x *Container) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq1454[4] { + if yyq1487[4] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("workingDir")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym1469 := z.EncBinary() - _ = yym1469 + yym1502 := z.EncBinary() + _ = yym1502 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.WorkingDir)) } } } - if yyr1454 || yy2arr1454 { + if yyr1487 || yy2arr1487 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1454[5] { + if yyq1487[5] { if x.Ports == nil { r.EncodeNil() } else { - yym1471 := z.EncBinary() - _ = yym1471 + yym1504 := z.EncBinary() + _ = yym1504 if false { } else { h.encSliceContainerPort(([]ContainerPort)(x.Ports), e) @@ -20311,15 +20840,15 @@ func (x *Container) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq1454[5] { + if yyq1487[5] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("ports")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.Ports == nil { r.EncodeNil() } else { - yym1472 := z.EncBinary() - _ = yym1472 + yym1505 := z.EncBinary() + _ = yym1505 if false { } else { h.encSliceContainerPort(([]ContainerPort)(x.Ports), e) @@ -20327,14 +20856,14 @@ func (x *Container) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr1454 || yy2arr1454 { + if yyr1487 || yy2arr1487 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1454[6] { + if yyq1487[6] { if x.Env == nil { r.EncodeNil() } else { - yym1474 := z.EncBinary() - _ = yym1474 + yym1507 := z.EncBinary() + _ = yym1507 if false { } else { h.encSliceEnvVar(([]EnvVar)(x.Env), e) @@ -20344,15 +20873,15 @@ func (x *Container) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq1454[6] { + if yyq1487[6] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("env")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.Env == nil { r.EncodeNil() } else { - yym1475 := z.EncBinary() - _ = yym1475 + yym1508 := z.EncBinary() + _ = yym1508 if false { } else { h.encSliceEnvVar(([]EnvVar)(x.Env), e) @@ -20360,31 +20889,31 @@ func (x *Container) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr1454 || yy2arr1454 { + if yyr1487 || yy2arr1487 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1454[7] { - yy1477 := &x.Resources - yy1477.CodecEncodeSelf(e) + if yyq1487[7] { + yy1510 := &x.Resources + yy1510.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { - if yyq1454[7] { + if yyq1487[7] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("resources")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy1478 := &x.Resources - yy1478.CodecEncodeSelf(e) + yy1511 := &x.Resources + yy1511.CodecEncodeSelf(e) } } - if yyr1454 || yy2arr1454 { + if yyr1487 || yy2arr1487 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1454[8] { + if yyq1487[8] { if x.VolumeMounts == nil { r.EncodeNil() } else { - yym1480 := z.EncBinary() - _ = yym1480 + yym1513 := z.EncBinary() + _ = yym1513 if false { } else { h.encSliceVolumeMount(([]VolumeMount)(x.VolumeMounts), e) @@ -20394,15 +20923,15 @@ func (x *Container) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq1454[8] { + if yyq1487[8] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("volumeMounts")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.VolumeMounts == nil { r.EncodeNil() } else { - yym1481 := z.EncBinary() - _ = yym1481 + yym1514 := z.EncBinary() + _ = yym1514 if false { } else { h.encSliceVolumeMount(([]VolumeMount)(x.VolumeMounts), e) @@ -20410,9 +20939,9 @@ func (x *Container) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr1454 || yy2arr1454 { + if yyr1487 || yy2arr1487 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1454[9] { + if yyq1487[9] { if x.LivenessProbe == nil { r.EncodeNil() } else { @@ -20422,7 +20951,7 @@ func (x *Container) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq1454[9] { + if yyq1487[9] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("livenessProbe")) z.EncSendContainerState(codecSelfer_containerMapValue1234) @@ -20433,9 +20962,9 @@ func (x *Container) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr1454 || yy2arr1454 { + if yyr1487 || yy2arr1487 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1454[10] { + if yyq1487[10] { if x.ReadinessProbe == nil { r.EncodeNil() } else { @@ -20445,7 +20974,7 @@ func (x *Container) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq1454[10] { + if yyq1487[10] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("readinessProbe")) z.EncSendContainerState(codecSelfer_containerMapValue1234) @@ -20456,9 +20985,9 @@ func (x *Container) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr1454 || yy2arr1454 { + if yyr1487 || yy2arr1487 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1454[11] { + if yyq1487[11] { if x.Lifecycle == nil { r.EncodeNil() } else { @@ -20468,7 +20997,7 @@ func (x *Container) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq1454[11] { + if yyq1487[11] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("lifecycle")) z.EncSendContainerState(codecSelfer_containerMapValue1234) @@ -20479,11 +21008,11 @@ func (x *Container) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr1454 || yy2arr1454 { + if yyr1487 || yy2arr1487 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1454[12] { - yym1486 := z.EncBinary() - _ = yym1486 + if yyq1487[12] { + yym1519 := z.EncBinary() + _ = yym1519 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.TerminationMessagePath)) @@ -20492,36 +21021,36 @@ func (x *Container) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq1454[12] { + if yyq1487[12] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("terminationMessagePath")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym1487 := z.EncBinary() - _ = yym1487 + yym1520 := z.EncBinary() + _ = yym1520 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.TerminationMessagePath)) } } } - if yyr1454 || yy2arr1454 { + if yyr1487 || yy2arr1487 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1454[13] { + if yyq1487[13] { x.ImagePullPolicy.CodecEncodeSelf(e) } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq1454[13] { + if yyq1487[13] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("imagePullPolicy")) z.EncSendContainerState(codecSelfer_containerMapValue1234) x.ImagePullPolicy.CodecEncodeSelf(e) } } - if yyr1454 || yy2arr1454 { + if yyr1487 || yy2arr1487 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1454[14] { + if yyq1487[14] { if x.SecurityContext == nil { r.EncodeNil() } else { @@ -20531,7 +21060,7 @@ func (x *Container) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq1454[14] { + if yyq1487[14] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("securityContext")) z.EncSendContainerState(codecSelfer_containerMapValue1234) @@ -20542,11 +21071,11 @@ func (x *Container) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr1454 || yy2arr1454 { + if yyr1487 || yy2arr1487 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1454[15] { - yym1491 := z.EncBinary() - _ = yym1491 + if yyq1487[15] { + yym1524 := z.EncBinary() + _ = yym1524 if false { } else { r.EncodeBool(bool(x.Stdin)) @@ -20555,23 +21084,23 @@ func (x *Container) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeBool(false) } } else { - if yyq1454[15] { + if yyq1487[15] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("stdin")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym1492 := z.EncBinary() - _ = yym1492 + yym1525 := z.EncBinary() + _ = yym1525 if false { } else { r.EncodeBool(bool(x.Stdin)) } } } - if yyr1454 || yy2arr1454 { + if yyr1487 || yy2arr1487 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1454[16] { - yym1494 := z.EncBinary() - _ = yym1494 + if yyq1487[16] { + yym1527 := z.EncBinary() + _ = yym1527 if false { } else { r.EncodeBool(bool(x.StdinOnce)) @@ -20580,23 +21109,23 @@ func (x *Container) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeBool(false) } } else { - if yyq1454[16] { + if yyq1487[16] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("stdinOnce")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym1495 := z.EncBinary() - _ = yym1495 + yym1528 := z.EncBinary() + _ = yym1528 if false { } else { r.EncodeBool(bool(x.StdinOnce)) } } } - if yyr1454 || yy2arr1454 { + if yyr1487 || yy2arr1487 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1454[17] { - yym1497 := z.EncBinary() - _ = yym1497 + if yyq1487[17] { + yym1530 := z.EncBinary() + _ = yym1530 if false { } else { r.EncodeBool(bool(x.TTY)) @@ -20605,19 +21134,19 @@ func (x *Container) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeBool(false) } } else { - if yyq1454[17] { + if yyq1487[17] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("tty")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym1498 := z.EncBinary() - _ = yym1498 + yym1531 := z.EncBinary() + _ = yym1531 if false { } else { r.EncodeBool(bool(x.TTY)) } } } - if yyr1454 || yy2arr1454 { + if yyr1487 || yy2arr1487 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -20630,25 +21159,25 @@ func (x *Container) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1499 := z.DecBinary() - _ = yym1499 + yym1532 := z.DecBinary() + _ = yym1532 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct1500 := r.ContainerType() - if yyct1500 == codecSelferValueTypeMap1234 { - yyl1500 := r.ReadMapStart() - if yyl1500 == 0 { + yyct1533 := r.ContainerType() + if yyct1533 == codecSelferValueTypeMap1234 { + yyl1533 := r.ReadMapStart() + if yyl1533 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl1500, d) + x.codecDecodeSelfFromMap(yyl1533, d) } - } else if yyct1500 == codecSelferValueTypeArray1234 { - yyl1500 := r.ReadArrayStart() - if yyl1500 == 0 { + } else if yyct1533 == codecSelferValueTypeArray1234 { + yyl1533 := r.ReadArrayStart() + if yyl1533 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl1500, d) + x.codecDecodeSelfFromArray(yyl1533, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -20660,12 +21189,12 @@ func (x *Container) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys1501Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys1501Slc - var yyhl1501 bool = l >= 0 - for yyj1501 := 0; ; yyj1501++ { - if yyhl1501 { - if yyj1501 >= l { + var yys1534Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys1534Slc + var yyhl1534 bool = l >= 0 + for yyj1534 := 0; ; yyj1534++ { + if yyhl1534 { + if yyj1534 >= l { break } } else { @@ -20674,10 +21203,10 @@ func (x *Container) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys1501Slc = r.DecodeBytes(yys1501Slc, true, true) - yys1501 := string(yys1501Slc) + yys1534Slc = r.DecodeBytes(yys1534Slc, true, true) + yys1534 := string(yys1534Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys1501 { + switch yys1534 { case "name": if r.TryDecodeAsNil() { x.Name = "" @@ -20694,24 +21223,24 @@ func (x *Container) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.Command = nil } else { - yyv1504 := &x.Command - yym1505 := z.DecBinary() - _ = yym1505 + yyv1537 := &x.Command + yym1538 := z.DecBinary() + _ = yym1538 if false { } else { - z.F.DecSliceStringX(yyv1504, false, d) + z.F.DecSliceStringX(yyv1537, false, d) } } case "args": if r.TryDecodeAsNil() { x.Args = nil } else { - yyv1506 := &x.Args - yym1507 := z.DecBinary() - _ = yym1507 + yyv1539 := &x.Args + yym1540 := z.DecBinary() + _ = yym1540 if false { } else { - z.F.DecSliceStringX(yyv1506, false, d) + z.F.DecSliceStringX(yyv1539, false, d) } } case "workingDir": @@ -20724,43 +21253,43 @@ func (x *Container) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.Ports = nil } else { - yyv1509 := &x.Ports - yym1510 := z.DecBinary() - _ = yym1510 + yyv1542 := &x.Ports + yym1543 := z.DecBinary() + _ = yym1543 if false { } else { - h.decSliceContainerPort((*[]ContainerPort)(yyv1509), d) + h.decSliceContainerPort((*[]ContainerPort)(yyv1542), d) } } case "env": if r.TryDecodeAsNil() { x.Env = nil } else { - yyv1511 := &x.Env - yym1512 := z.DecBinary() - _ = yym1512 + yyv1544 := &x.Env + yym1545 := z.DecBinary() + _ = yym1545 if false { } else { - h.decSliceEnvVar((*[]EnvVar)(yyv1511), d) + h.decSliceEnvVar((*[]EnvVar)(yyv1544), d) } } case "resources": if r.TryDecodeAsNil() { x.Resources = ResourceRequirements{} } else { - yyv1513 := &x.Resources - yyv1513.CodecDecodeSelf(d) + yyv1546 := &x.Resources + yyv1546.CodecDecodeSelf(d) } case "volumeMounts": if r.TryDecodeAsNil() { x.VolumeMounts = nil } else { - yyv1514 := &x.VolumeMounts - yym1515 := z.DecBinary() - _ = yym1515 + yyv1547 := &x.VolumeMounts + yym1548 := z.DecBinary() + _ = yym1548 if false { } else { - h.decSliceVolumeMount((*[]VolumeMount)(yyv1514), d) + h.decSliceVolumeMount((*[]VolumeMount)(yyv1547), d) } } case "livenessProbe": @@ -20838,9 +21367,9 @@ func (x *Container) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { x.TTY = bool(r.DecodeBool()) } default: - z.DecStructFieldNotFound(-1, yys1501) - } // end switch yys1501 - } // end for yyj1501 + z.DecStructFieldNotFound(-1, yys1534) + } // end switch yys1534 + } // end for yyj1534 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -20848,16 +21377,16 @@ func (x *Container) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj1525 int - var yyb1525 bool - var yyhl1525 bool = l >= 0 - yyj1525++ - if yyhl1525 { - yyb1525 = yyj1525 > l + var yyj1558 int + var yyb1558 bool + var yyhl1558 bool = l >= 0 + yyj1558++ + if yyhl1558 { + yyb1558 = yyj1558 > l } else { - yyb1525 = r.CheckBreak() + yyb1558 = r.CheckBreak() } - if yyb1525 { + if yyb1558 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -20867,13 +21396,13 @@ func (x *Container) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.Name = string(r.DecodeString()) } - yyj1525++ - if yyhl1525 { - yyb1525 = yyj1525 > l + yyj1558++ + if yyhl1558 { + yyb1558 = yyj1558 > l } else { - yyb1525 = r.CheckBreak() + yyb1558 = r.CheckBreak() } - if yyb1525 { + if yyb1558 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -20883,13 +21412,13 @@ func (x *Container) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.Image = string(r.DecodeString()) } - yyj1525++ - if yyhl1525 { - yyb1525 = yyj1525 > l + yyj1558++ + if yyhl1558 { + yyb1558 = yyj1558 > l } else { - yyb1525 = r.CheckBreak() + yyb1558 = r.CheckBreak() } - if yyb1525 { + if yyb1558 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -20897,21 +21426,21 @@ func (x *Container) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.Command = nil } else { - yyv1528 := &x.Command - yym1529 := z.DecBinary() - _ = yym1529 + yyv1561 := &x.Command + yym1562 := z.DecBinary() + _ = yym1562 if false { } else { - z.F.DecSliceStringX(yyv1528, false, d) + z.F.DecSliceStringX(yyv1561, false, d) } } - yyj1525++ - if yyhl1525 { - yyb1525 = yyj1525 > l + yyj1558++ + if yyhl1558 { + yyb1558 = yyj1558 > l } else { - yyb1525 = r.CheckBreak() + yyb1558 = r.CheckBreak() } - if yyb1525 { + if yyb1558 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -20919,21 +21448,21 @@ func (x *Container) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.Args = nil } else { - yyv1530 := &x.Args - yym1531 := z.DecBinary() - _ = yym1531 + yyv1563 := &x.Args + yym1564 := z.DecBinary() + _ = yym1564 if false { } else { - z.F.DecSliceStringX(yyv1530, false, d) + z.F.DecSliceStringX(yyv1563, false, d) } } - yyj1525++ - if yyhl1525 { - yyb1525 = yyj1525 > l + yyj1558++ + if yyhl1558 { + yyb1558 = yyj1558 > l } else { - yyb1525 = r.CheckBreak() + yyb1558 = r.CheckBreak() } - if yyb1525 { + if yyb1558 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -20943,13 +21472,13 @@ func (x *Container) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.WorkingDir = string(r.DecodeString()) } - yyj1525++ - if yyhl1525 { - yyb1525 = yyj1525 > l + yyj1558++ + if yyhl1558 { + yyb1558 = yyj1558 > l } else { - yyb1525 = r.CheckBreak() + yyb1558 = r.CheckBreak() } - if yyb1525 { + if yyb1558 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -20957,21 +21486,21 @@ func (x *Container) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.Ports = nil } else { - yyv1533 := &x.Ports - yym1534 := z.DecBinary() - _ = yym1534 + yyv1566 := &x.Ports + yym1567 := z.DecBinary() + _ = yym1567 if false { } else { - h.decSliceContainerPort((*[]ContainerPort)(yyv1533), d) + h.decSliceContainerPort((*[]ContainerPort)(yyv1566), d) } } - yyj1525++ - if yyhl1525 { - yyb1525 = yyj1525 > l + yyj1558++ + if yyhl1558 { + yyb1558 = yyj1558 > l } else { - yyb1525 = r.CheckBreak() + yyb1558 = r.CheckBreak() } - if yyb1525 { + if yyb1558 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -20979,21 +21508,21 @@ func (x *Container) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.Env = nil } else { - yyv1535 := &x.Env - yym1536 := z.DecBinary() - _ = yym1536 + yyv1568 := &x.Env + yym1569 := z.DecBinary() + _ = yym1569 if false { } else { - h.decSliceEnvVar((*[]EnvVar)(yyv1535), d) + h.decSliceEnvVar((*[]EnvVar)(yyv1568), d) } } - yyj1525++ - if yyhl1525 { - yyb1525 = yyj1525 > l + yyj1558++ + if yyhl1558 { + yyb1558 = yyj1558 > l } else { - yyb1525 = r.CheckBreak() + yyb1558 = r.CheckBreak() } - if yyb1525 { + if yyb1558 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -21001,16 +21530,16 @@ func (x *Container) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.Resources = ResourceRequirements{} } else { - yyv1537 := &x.Resources - yyv1537.CodecDecodeSelf(d) + yyv1570 := &x.Resources + yyv1570.CodecDecodeSelf(d) } - yyj1525++ - if yyhl1525 { - yyb1525 = yyj1525 > l + yyj1558++ + if yyhl1558 { + yyb1558 = yyj1558 > l } else { - yyb1525 = r.CheckBreak() + yyb1558 = r.CheckBreak() } - if yyb1525 { + if yyb1558 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -21018,21 +21547,21 @@ func (x *Container) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.VolumeMounts = nil } else { - yyv1538 := &x.VolumeMounts - yym1539 := z.DecBinary() - _ = yym1539 + yyv1571 := &x.VolumeMounts + yym1572 := z.DecBinary() + _ = yym1572 if false { } else { - h.decSliceVolumeMount((*[]VolumeMount)(yyv1538), d) + h.decSliceVolumeMount((*[]VolumeMount)(yyv1571), d) } } - yyj1525++ - if yyhl1525 { - yyb1525 = yyj1525 > l + yyj1558++ + if yyhl1558 { + yyb1558 = yyj1558 > l } else { - yyb1525 = r.CheckBreak() + yyb1558 = r.CheckBreak() } - if yyb1525 { + if yyb1558 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -21047,13 +21576,13 @@ func (x *Container) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } x.LivenessProbe.CodecDecodeSelf(d) } - yyj1525++ - if yyhl1525 { - yyb1525 = yyj1525 > l + yyj1558++ + if yyhl1558 { + yyb1558 = yyj1558 > l } else { - yyb1525 = r.CheckBreak() + yyb1558 = r.CheckBreak() } - if yyb1525 { + if yyb1558 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -21068,13 +21597,13 @@ func (x *Container) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } x.ReadinessProbe.CodecDecodeSelf(d) } - yyj1525++ - if yyhl1525 { - yyb1525 = yyj1525 > l + yyj1558++ + if yyhl1558 { + yyb1558 = yyj1558 > l } else { - yyb1525 = r.CheckBreak() + yyb1558 = r.CheckBreak() } - if yyb1525 { + if yyb1558 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -21089,13 +21618,13 @@ func (x *Container) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } x.Lifecycle.CodecDecodeSelf(d) } - yyj1525++ - if yyhl1525 { - yyb1525 = yyj1525 > l + yyj1558++ + if yyhl1558 { + yyb1558 = yyj1558 > l } else { - yyb1525 = r.CheckBreak() + yyb1558 = r.CheckBreak() } - if yyb1525 { + if yyb1558 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -21105,13 +21634,13 @@ func (x *Container) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.TerminationMessagePath = string(r.DecodeString()) } - yyj1525++ - if yyhl1525 { - yyb1525 = yyj1525 > l + yyj1558++ + if yyhl1558 { + yyb1558 = yyj1558 > l } else { - yyb1525 = r.CheckBreak() + yyb1558 = r.CheckBreak() } - if yyb1525 { + if yyb1558 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -21121,13 +21650,13 @@ func (x *Container) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.ImagePullPolicy = PullPolicy(r.DecodeString()) } - yyj1525++ - if yyhl1525 { - yyb1525 = yyj1525 > l + yyj1558++ + if yyhl1558 { + yyb1558 = yyj1558 > l } else { - yyb1525 = r.CheckBreak() + yyb1558 = r.CheckBreak() } - if yyb1525 { + if yyb1558 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -21142,13 +21671,13 @@ func (x *Container) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } x.SecurityContext.CodecDecodeSelf(d) } - yyj1525++ - if yyhl1525 { - yyb1525 = yyj1525 > l + yyj1558++ + if yyhl1558 { + yyb1558 = yyj1558 > l } else { - yyb1525 = r.CheckBreak() + yyb1558 = r.CheckBreak() } - if yyb1525 { + if yyb1558 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -21158,13 +21687,13 @@ func (x *Container) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.Stdin = bool(r.DecodeBool()) } - yyj1525++ - if yyhl1525 { - yyb1525 = yyj1525 > l + yyj1558++ + if yyhl1558 { + yyb1558 = yyj1558 > l } else { - yyb1525 = r.CheckBreak() + yyb1558 = r.CheckBreak() } - if yyb1525 { + if yyb1558 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -21174,13 +21703,13 @@ func (x *Container) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.StdinOnce = bool(r.DecodeBool()) } - yyj1525++ - if yyhl1525 { - yyb1525 = yyj1525 > l + yyj1558++ + if yyhl1558 { + yyb1558 = yyj1558 > l } else { - yyb1525 = r.CheckBreak() + yyb1558 = r.CheckBreak() } - if yyb1525 { + if yyb1558 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -21191,17 +21720,17 @@ func (x *Container) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { x.TTY = bool(r.DecodeBool()) } for { - yyj1525++ - if yyhl1525 { - yyb1525 = yyj1525 > l + yyj1558++ + if yyhl1558 { + yyb1558 = yyj1558 > l } else { - yyb1525 = r.CheckBreak() + yyb1558 = r.CheckBreak() } - if yyb1525 { + if yyb1558 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj1525-1, "") + z.DecStructFieldNotFound(yyj1558-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -21213,35 +21742,35 @@ func (x *Handler) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1549 := z.EncBinary() - _ = yym1549 + yym1582 := z.EncBinary() + _ = yym1582 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - 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 { + yysep1583 := !z.EncBinary() + yy2arr1583 := z.EncBasicHandle().StructToArray + var yyq1583 [3]bool + _, _, _ = yysep1583, yyq1583, yy2arr1583 + const yyr1583 bool = false + yyq1583[0] = x.Exec != nil + yyq1583[1] = x.HTTPGet != nil + yyq1583[2] = x.TCPSocket != nil + var yynn1583 int + if yyr1583 || yy2arr1583 { r.EncodeArrayStart(3) } else { - yynn1550 = 0 - for _, b := range yyq1550 { + yynn1583 = 0 + for _, b := range yyq1583 { if b { - yynn1550++ + yynn1583++ } } - r.EncodeMapStart(yynn1550) - yynn1550 = 0 + r.EncodeMapStart(yynn1583) + yynn1583 = 0 } - if yyr1550 || yy2arr1550 { + if yyr1583 || yy2arr1583 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1550[0] { + if yyq1583[0] { if x.Exec == nil { r.EncodeNil() } else { @@ -21251,7 +21780,7 @@ func (x *Handler) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq1550[0] { + if yyq1583[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("exec")) z.EncSendContainerState(codecSelfer_containerMapValue1234) @@ -21262,9 +21791,9 @@ func (x *Handler) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr1550 || yy2arr1550 { + if yyr1583 || yy2arr1583 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1550[1] { + if yyq1583[1] { if x.HTTPGet == nil { r.EncodeNil() } else { @@ -21274,7 +21803,7 @@ func (x *Handler) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq1550[1] { + if yyq1583[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("httpGet")) z.EncSendContainerState(codecSelfer_containerMapValue1234) @@ -21285,9 +21814,9 @@ func (x *Handler) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr1550 || yy2arr1550 { + if yyr1583 || yy2arr1583 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1550[2] { + if yyq1583[2] { if x.TCPSocket == nil { r.EncodeNil() } else { @@ -21297,7 +21826,7 @@ func (x *Handler) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq1550[2] { + if yyq1583[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("tcpSocket")) z.EncSendContainerState(codecSelfer_containerMapValue1234) @@ -21308,7 +21837,7 @@ func (x *Handler) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr1550 || yy2arr1550 { + if yyr1583 || yy2arr1583 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -21321,25 +21850,25 @@ func (x *Handler) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1554 := z.DecBinary() - _ = yym1554 + yym1587 := z.DecBinary() + _ = yym1587 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct1555 := r.ContainerType() - if yyct1555 == codecSelferValueTypeMap1234 { - yyl1555 := r.ReadMapStart() - if yyl1555 == 0 { + yyct1588 := r.ContainerType() + if yyct1588 == codecSelferValueTypeMap1234 { + yyl1588 := r.ReadMapStart() + if yyl1588 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl1555, d) + x.codecDecodeSelfFromMap(yyl1588, d) } - } else if yyct1555 == codecSelferValueTypeArray1234 { - yyl1555 := r.ReadArrayStart() - if yyl1555 == 0 { + } else if yyct1588 == codecSelferValueTypeArray1234 { + yyl1588 := r.ReadArrayStart() + if yyl1588 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl1555, d) + x.codecDecodeSelfFromArray(yyl1588, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -21351,12 +21880,12 @@ func (x *Handler) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys1556Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys1556Slc - var yyhl1556 bool = l >= 0 - for yyj1556 := 0; ; yyj1556++ { - if yyhl1556 { - if yyj1556 >= 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 { @@ -21365,10 +21894,10 @@ func (x *Handler) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys1556Slc = r.DecodeBytes(yys1556Slc, true, true) - yys1556 := string(yys1556Slc) + yys1589Slc = r.DecodeBytes(yys1589Slc, true, true) + yys1589 := string(yys1589Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys1556 { + switch yys1589 { case "exec": if r.TryDecodeAsNil() { if x.Exec != nil { @@ -21403,9 +21932,9 @@ func (x *Handler) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { x.TCPSocket.CodecDecodeSelf(d) } default: - z.DecStructFieldNotFound(-1, yys1556) - } // end switch yys1556 - } // end for yyj1556 + z.DecStructFieldNotFound(-1, yys1589) + } // end switch yys1589 + } // end for yyj1589 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -21413,16 +21942,16 @@ func (x *Handler) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj1560 int - var yyb1560 bool - var yyhl1560 bool = l >= 0 - yyj1560++ - if yyhl1560 { - yyb1560 = yyj1560 > l + var yyj1593 int + var yyb1593 bool + var yyhl1593 bool = l >= 0 + yyj1593++ + if yyhl1593 { + yyb1593 = yyj1593 > l } else { - yyb1560 = r.CheckBreak() + yyb1593 = r.CheckBreak() } - if yyb1560 { + if yyb1593 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -21437,13 +21966,13 @@ func (x *Handler) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } x.Exec.CodecDecodeSelf(d) } - yyj1560++ - if yyhl1560 { - yyb1560 = yyj1560 > l + yyj1593++ + if yyhl1593 { + yyb1593 = yyj1593 > l } else { - yyb1560 = r.CheckBreak() + yyb1593 = r.CheckBreak() } - if yyb1560 { + if yyb1593 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -21458,13 +21987,13 @@ func (x *Handler) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } x.HTTPGet.CodecDecodeSelf(d) } - yyj1560++ - if yyhl1560 { - yyb1560 = yyj1560 > l + yyj1593++ + if yyhl1593 { + yyb1593 = yyj1593 > l } else { - yyb1560 = r.CheckBreak() + yyb1593 = r.CheckBreak() } - if yyb1560 { + if yyb1593 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -21480,17 +22009,17 @@ func (x *Handler) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { x.TCPSocket.CodecDecodeSelf(d) } for { - yyj1560++ - if yyhl1560 { - yyb1560 = yyj1560 > l + yyj1593++ + if yyhl1593 { + yyb1593 = yyj1593 > l } else { - yyb1560 = r.CheckBreak() + yyb1593 = r.CheckBreak() } - if yyb1560 { + if yyb1593 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj1560-1, "") + z.DecStructFieldNotFound(yyj1593-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -21502,34 +22031,34 @@ func (x *Lifecycle) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1564 := z.EncBinary() - _ = yym1564 + yym1597 := z.EncBinary() + _ = yym1597 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - 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 { + yysep1598 := !z.EncBinary() + yy2arr1598 := z.EncBasicHandle().StructToArray + var yyq1598 [2]bool + _, _, _ = yysep1598, yyq1598, yy2arr1598 + const yyr1598 bool = false + yyq1598[0] = x.PostStart != nil + yyq1598[1] = x.PreStop != nil + var yynn1598 int + if yyr1598 || yy2arr1598 { r.EncodeArrayStart(2) } else { - yynn1565 = 0 - for _, b := range yyq1565 { + yynn1598 = 0 + for _, b := range yyq1598 { if b { - yynn1565++ + yynn1598++ } } - r.EncodeMapStart(yynn1565) - yynn1565 = 0 + r.EncodeMapStart(yynn1598) + yynn1598 = 0 } - if yyr1565 || yy2arr1565 { + if yyr1598 || yy2arr1598 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1565[0] { + if yyq1598[0] { if x.PostStart == nil { r.EncodeNil() } else { @@ -21539,7 +22068,7 @@ func (x *Lifecycle) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq1565[0] { + if yyq1598[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("postStart")) z.EncSendContainerState(codecSelfer_containerMapValue1234) @@ -21550,9 +22079,9 @@ func (x *Lifecycle) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr1565 || yy2arr1565 { + if yyr1598 || yy2arr1598 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1565[1] { + if yyq1598[1] { if x.PreStop == nil { r.EncodeNil() } else { @@ -21562,7 +22091,7 @@ func (x *Lifecycle) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq1565[1] { + if yyq1598[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("preStop")) z.EncSendContainerState(codecSelfer_containerMapValue1234) @@ -21573,7 +22102,7 @@ func (x *Lifecycle) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr1565 || yy2arr1565 { + if yyr1598 || yy2arr1598 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -21583,472 +22112,6 @@ func (x *Lifecycle) CodecEncodeSelf(e *codec1978.Encoder) { } func (x *Lifecycle) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - yym1568 := z.DecBinary() - _ = yym1568 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - yyct1569 := r.ContainerType() - if yyct1569 == codecSelferValueTypeMap1234 { - yyl1569 := r.ReadMapStart() - if yyl1569 == 0 { - z.DecSendContainerState(codecSelfer_containerMapEnd1234) - } else { - x.codecDecodeSelfFromMap(yyl1569, d) - } - } else if yyct1569 == codecSelferValueTypeArray1234 { - yyl1569 := r.ReadArrayStart() - if yyl1569 == 0 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - x.codecDecodeSelfFromArray(yyl1569, 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 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 { - if r.CheckBreak() { - break - } - } - z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys1570Slc = r.DecodeBytes(yys1570Slc, true, true) - yys1570 := string(yys1570Slc) - z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys1570 { - 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, yys1570) - } // end switch yys1570 - } // end for yyj1570 - 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 yyj1573 int - var yyb1573 bool - var yyhl1573 bool = l >= 0 - yyj1573++ - if yyhl1573 { - yyb1573 = yyj1573 > l - } else { - yyb1573 = r.CheckBreak() - } - if yyb1573 { - 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) - } - yyj1573++ - if yyhl1573 { - yyb1573 = yyj1573 > l - } else { - yyb1573 = r.CheckBreak() - } - if yyb1573 { - 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 { - yyj1573++ - if yyhl1573 { - yyb1573 = yyj1573 > l - } else { - yyb1573 = r.CheckBreak() - } - if yyb1573 { - break - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj1573-1, "") - } - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) -} - -func (x ConditionStatus) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - yym1576 := z.EncBinary() - _ = yym1576 - 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 - yym1577 := z.DecBinary() - _ = yym1577 - 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 { - yym1578 := z.EncBinary() - _ = yym1578 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - 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 { - yynn1579 = 0 - for _, b := range yyq1579 { - if b { - yynn1579++ - } - } - r.EncodeMapStart(yynn1579) - yynn1579 = 0 - } - if yyr1579 || yy2arr1579 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1579[0] { - yym1581 := z.EncBinary() - _ = yym1581 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Reason)) - } - } else { - r.EncodeString(codecSelferC_UTF81234, "") - } - } else { - if yyq1579[0] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("reason")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym1582 := z.EncBinary() - _ = yym1582 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Reason)) - } - } - } - if yyr1579 || yy2arr1579 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1579[1] { - yym1584 := z.EncBinary() - _ = yym1584 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Message)) - } - } else { - r.EncodeString(codecSelferC_UTF81234, "") - } - } else { - if yyq1579[1] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("message")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym1585 := z.EncBinary() - _ = yym1585 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Message)) - } - } - } - if yyr1579 || yy2arr1579 { - 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 - yym1586 := z.DecBinary() - _ = yym1586 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - yyct1587 := r.ContainerType() - if yyct1587 == codecSelferValueTypeMap1234 { - yyl1587 := r.ReadMapStart() - if yyl1587 == 0 { - z.DecSendContainerState(codecSelfer_containerMapEnd1234) - } else { - x.codecDecodeSelfFromMap(yyl1587, d) - } - } else if yyct1587 == codecSelferValueTypeArray1234 { - yyl1587 := r.ReadArrayStart() - if yyl1587 == 0 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - x.codecDecodeSelfFromArray(yyl1587, 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 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 { - if r.CheckBreak() { - break - } - } - z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys1588Slc = r.DecodeBytes(yys1588Slc, true, true) - yys1588 := string(yys1588Slc) - z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys1588 { - 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, yys1588) - } // end switch yys1588 - } // end for yyj1588 - 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 yyj1591 int - var yyb1591 bool - var yyhl1591 bool = l >= 0 - yyj1591++ - if yyhl1591 { - yyb1591 = yyj1591 > l - } else { - yyb1591 = r.CheckBreak() - } - if yyb1591 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Reason = "" - } else { - x.Reason = string(r.DecodeString()) - } - yyj1591++ - if yyhl1591 { - yyb1591 = yyj1591 > l - } else { - yyb1591 = r.CheckBreak() - } - if yyb1591 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Message = "" - } else { - x.Message = string(r.DecodeString()) - } - for { - yyj1591++ - if yyhl1591 { - yyb1591 = yyj1591 > l - } else { - yyb1591 = r.CheckBreak() - } - if yyb1591 { - break - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj1591-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 { - yym1594 := z.EncBinary() - _ = yym1594 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - 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 { - yynn1595 = 0 - for _, b := range yyq1595 { - if b { - yynn1595++ - } - } - r.EncodeMapStart(yynn1595) - yynn1595 = 0 - } - if yyr1595 || yy2arr1595 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1595[0] { - yy1597 := &x.StartedAt - yym1598 := z.EncBinary() - _ = yym1598 - if false { - } else if z.HasExtensions() && z.EncExt(yy1597) { - } else if yym1598 { - z.EncBinaryMarshal(yy1597) - } else if !yym1598 && z.IsJSONHandle() { - z.EncJSONMarshal(yy1597) - } else { - z.EncFallback(yy1597) - } - } else { - r.EncodeNil() - } - } else { - if yyq1595[0] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("startedAt")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy1599 := &x.StartedAt - yym1600 := z.EncBinary() - _ = yym1600 - if false { - } else if z.HasExtensions() && z.EncExt(yy1599) { - } else if yym1600 { - z.EncBinaryMarshal(yy1599) - } else if !yym1600 && z.IsJSONHandle() { - z.EncJSONMarshal(yy1599) - } else { - z.EncFallback(yy1599) - } - } - } - if yyr1595 || yy2arr1595 { - 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 @@ -22078,7 +22141,7 @@ func (x *ContainerStateRunning) CodecDecodeSelf(d *codec1978.Decoder) { } } -func (x *ContainerStateRunning) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { +func (x *Lifecycle) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r @@ -22100,22 +22163,27 @@ func (x *ContainerStateRunning) codecDecodeSelfFromMap(l int, d *codec1978.Decod yys1603 := string(yys1603Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys1603 { - case "startedAt": + case "postStart": if r.TryDecodeAsNil() { - x.StartedAt = pkg2_unversioned.Time{} - } else { - yyv1604 := &x.StartedAt - yym1605 := z.DecBinary() - _ = yym1605 - if false { - } else if z.HasExtensions() && z.DecExt(yyv1604) { - } else if yym1605 { - z.DecBinaryUnmarshal(yyv1604) - } else if !yym1605 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv1604) - } else { - z.DecFallback(yyv1604, false) + 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, yys1603) @@ -22124,7 +22192,7 @@ func (x *ContainerStateRunning) codecDecodeSelfFromMap(l int, d *codec1978.Decod z.DecSendContainerState(codecSelfer_containerMapEnd1234) } -func (x *ContainerStateRunning) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { +func (x *Lifecycle) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r @@ -22143,20 +22211,35 @@ func (x *ContainerStateRunning) codecDecodeSelfFromArray(l int, d *codec1978.Dec } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.StartedAt = pkg2_unversioned.Time{} - } else { - yyv1607 := &x.StartedAt - yym1608 := z.DecBinary() - _ = yym1608 - if false { - } else if z.HasExtensions() && z.DecExt(yyv1607) { - } else if yym1608 { - z.DecBinaryUnmarshal(yyv1607) - } else if !yym1608 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv1607) - } else { - z.DecFallback(yyv1607, false) + if x.PostStart != nil { + x.PostStart = nil } + } else { + if x.PostStart == nil { + x.PostStart = new(Handler) + } + x.PostStart.CodecDecodeSelf(d) + } + yyj1606++ + if yyhl1606 { + yyb1606 = yyj1606 > l + } else { + yyb1606 = r.CheckBreak() + } + if yyb1606 { + 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 { yyj1606++ @@ -22174,6 +22257,452 @@ func (x *ContainerStateRunning) codecDecodeSelfFromArray(l int, d *codec1978.Dec z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } +func (x ConditionStatus) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + yym1609 := z.EncBinary() + _ = yym1609 + 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 + yym1610 := z.DecBinary() + _ = yym1610 + 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 { + yym1611 := z.EncBinary() + _ = yym1611 + if false { + } else if z.HasExtensions() && z.EncExt(x) { + } else { + yysep1612 := !z.EncBinary() + yy2arr1612 := z.EncBasicHandle().StructToArray + var yyq1612 [2]bool + _, _, _ = yysep1612, yyq1612, yy2arr1612 + const yyr1612 bool = false + yyq1612[0] = x.Reason != "" + yyq1612[1] = x.Message != "" + var yynn1612 int + if yyr1612 || yy2arr1612 { + r.EncodeArrayStart(2) + } else { + yynn1612 = 0 + for _, b := range yyq1612 { + if b { + yynn1612++ + } + } + r.EncodeMapStart(yynn1612) + yynn1612 = 0 + } + if yyr1612 || yy2arr1612 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq1612[0] { + yym1614 := z.EncBinary() + _ = yym1614 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Reason)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq1612[0] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("reason")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym1615 := z.EncBinary() + _ = yym1615 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Reason)) + } + } + } + if yyr1612 || yy2arr1612 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq1612[1] { + yym1617 := z.EncBinary() + _ = yym1617 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Message)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq1612[1] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("message")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym1618 := z.EncBinary() + _ = yym1618 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Message)) + } + } + } + if yyr1612 || yy2arr1612 { + 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 + yym1619 := z.DecBinary() + _ = yym1619 + if false { + } else if z.HasExtensions() && z.DecExt(x) { + } else { + yyct1620 := r.ContainerType() + if yyct1620 == codecSelferValueTypeMap1234 { + yyl1620 := r.ReadMapStart() + if yyl1620 == 0 { + z.DecSendContainerState(codecSelfer_containerMapEnd1234) + } else { + x.codecDecodeSelfFromMap(yyl1620, d) + } + } else if yyct1620 == codecSelferValueTypeArray1234 { + yyl1620 := r.ReadArrayStart() + if yyl1620 == 0 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + x.codecDecodeSelfFromArray(yyl1620, 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 yys1621Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys1621Slc + var yyhl1621 bool = l >= 0 + for yyj1621 := 0; ; yyj1621++ { + if yyhl1621 { + if yyj1621 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + z.DecSendContainerState(codecSelfer_containerMapKey1234) + yys1621Slc = r.DecodeBytes(yys1621Slc, true, true) + yys1621 := string(yys1621Slc) + z.DecSendContainerState(codecSelfer_containerMapValue1234) + switch yys1621 { + 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, yys1621) + } // end switch yys1621 + } // end for yyj1621 + 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 yyj1624 int + var yyb1624 bool + var yyhl1624 bool = l >= 0 + yyj1624++ + if yyhl1624 { + yyb1624 = yyj1624 > l + } else { + yyb1624 = r.CheckBreak() + } + if yyb1624 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Reason = "" + } else { + x.Reason = string(r.DecodeString()) + } + yyj1624++ + if yyhl1624 { + yyb1624 = yyj1624 > l + } else { + yyb1624 = r.CheckBreak() + } + if yyb1624 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Message = "" + } else { + x.Message = string(r.DecodeString()) + } + for { + yyj1624++ + if yyhl1624 { + yyb1624 = yyj1624 > l + } else { + yyb1624 = r.CheckBreak() + } + if yyb1624 { + break + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + z.DecStructFieldNotFound(yyj1624-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 { + yym1627 := z.EncBinary() + _ = yym1627 + if false { + } else if z.HasExtensions() && z.EncExt(x) { + } else { + yysep1628 := !z.EncBinary() + yy2arr1628 := z.EncBasicHandle().StructToArray + var yyq1628 [1]bool + _, _, _ = yysep1628, yyq1628, yy2arr1628 + const yyr1628 bool = false + yyq1628[0] = true + var yynn1628 int + if yyr1628 || yy2arr1628 { + r.EncodeArrayStart(1) + } else { + yynn1628 = 0 + for _, b := range yyq1628 { + if b { + yynn1628++ + } + } + r.EncodeMapStart(yynn1628) + yynn1628 = 0 + } + if yyr1628 || yy2arr1628 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq1628[0] { + yy1630 := &x.StartedAt + 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 yyq1628[0] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("startedAt")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yy1632 := &x.StartedAt + 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 yyr1628 || yy2arr1628 { + 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 + yym1634 := z.DecBinary() + _ = yym1634 + if false { + } else if z.HasExtensions() && z.DecExt(x) { + } else { + yyct1635 := r.ContainerType() + if yyct1635 == codecSelferValueTypeMap1234 { + yyl1635 := r.ReadMapStart() + if yyl1635 == 0 { + z.DecSendContainerState(codecSelfer_containerMapEnd1234) + } else { + x.codecDecodeSelfFromMap(yyl1635, d) + } + } else if yyct1635 == codecSelferValueTypeArray1234 { + yyl1635 := r.ReadArrayStart() + if yyl1635 == 0 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + x.codecDecodeSelfFromArray(yyl1635, 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 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 { + if r.CheckBreak() { + break + } + } + z.DecSendContainerState(codecSelfer_containerMapKey1234) + yys1636Slc = r.DecodeBytes(yys1636Slc, true, true) + yys1636 := string(yys1636Slc) + z.DecSendContainerState(codecSelfer_containerMapValue1234) + switch yys1636 { + case "startedAt": + if r.TryDecodeAsNil() { + x.StartedAt = pkg2_unversioned.Time{} + } else { + yyv1637 := &x.StartedAt + yym1638 := z.DecBinary() + _ = yym1638 + if false { + } else if z.HasExtensions() && z.DecExt(yyv1637) { + } else if yym1638 { + z.DecBinaryUnmarshal(yyv1637) + } else if !yym1638 && z.IsJSONHandle() { + z.DecJSONUnmarshal(yyv1637) + } else { + z.DecFallback(yyv1637, false) + } + } + default: + z.DecStructFieldNotFound(-1, yys1636) + } // end switch yys1636 + } // end for yyj1636 + 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 yyj1639 int + var yyb1639 bool + var yyhl1639 bool = l >= 0 + yyj1639++ + if yyhl1639 { + yyb1639 = yyj1639 > l + } else { + yyb1639 = r.CheckBreak() + } + if yyb1639 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.StartedAt = pkg2_unversioned.Time{} + } else { + yyv1640 := &x.StartedAt + yym1641 := z.DecBinary() + _ = yym1641 + if false { + } else if z.HasExtensions() && z.DecExt(yyv1640) { + } else if yym1641 { + z.DecBinaryUnmarshal(yyv1640) + } else if !yym1641 && z.IsJSONHandle() { + z.DecJSONUnmarshal(yyv1640) + } else { + z.DecFallback(yyv1640, false) + } + } + for { + yyj1639++ + if yyhl1639 { + yyb1639 = yyj1639 > l + } else { + yyb1639 = r.CheckBreak() + } + if yyb1639 { + break + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + z.DecStructFieldNotFound(yyj1639-1, "") + } + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) +} + func (x *ContainerStateTerminated) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) @@ -22181,39 +22710,39 @@ func (x *ContainerStateTerminated) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1609 := z.EncBinary() - _ = yym1609 + yym1642 := z.EncBinary() + _ = yym1642 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - 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 { + yysep1643 := !z.EncBinary() + yy2arr1643 := z.EncBasicHandle().StructToArray + var yyq1643 [7]bool + _, _, _ = yysep1643, yyq1643, yy2arr1643 + const yyr1643 bool = false + yyq1643[1] = x.Signal != 0 + yyq1643[2] = x.Reason != "" + yyq1643[3] = x.Message != "" + yyq1643[4] = true + yyq1643[5] = true + yyq1643[6] = x.ContainerID != "" + var yynn1643 int + if yyr1643 || yy2arr1643 { r.EncodeArrayStart(7) } else { - yynn1610 = 1 - for _, b := range yyq1610 { + yynn1643 = 1 + for _, b := range yyq1643 { if b { - yynn1610++ + yynn1643++ } } - r.EncodeMapStart(yynn1610) - yynn1610 = 0 + r.EncodeMapStart(yynn1643) + yynn1643 = 0 } - if yyr1610 || yy2arr1610 { + if yyr1643 || yy2arr1643 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym1612 := z.EncBinary() - _ = yym1612 + yym1645 := z.EncBinary() + _ = yym1645 if false { } else { r.EncodeInt(int64(x.ExitCode)) @@ -22222,18 +22751,18 @@ func (x *ContainerStateTerminated) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("exitCode")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym1613 := z.EncBinary() - _ = yym1613 + yym1646 := z.EncBinary() + _ = yym1646 if false { } else { r.EncodeInt(int64(x.ExitCode)) } } - if yyr1610 || yy2arr1610 { + if yyr1643 || yy2arr1643 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1610[1] { - yym1615 := z.EncBinary() - _ = yym1615 + if yyq1643[1] { + yym1648 := z.EncBinary() + _ = yym1648 if false { } else { r.EncodeInt(int64(x.Signal)) @@ -22242,23 +22771,23 @@ func (x *ContainerStateTerminated) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeInt(0) } } else { - if yyq1610[1] { + if yyq1643[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("signal")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym1616 := z.EncBinary() - _ = yym1616 + yym1649 := z.EncBinary() + _ = yym1649 if false { } else { r.EncodeInt(int64(x.Signal)) } } } - if yyr1610 || yy2arr1610 { + if yyr1643 || yy2arr1643 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1610[2] { - yym1618 := z.EncBinary() - _ = yym1618 + if yyq1643[2] { + yym1651 := z.EncBinary() + _ = yym1651 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Reason)) @@ -22267,23 +22796,23 @@ func (x *ContainerStateTerminated) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq1610[2] { + if yyq1643[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("reason")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym1619 := z.EncBinary() - _ = yym1619 + yym1652 := z.EncBinary() + _ = yym1652 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Reason)) } } } - if yyr1610 || yy2arr1610 { + if yyr1643 || yy2arr1643 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1610[3] { - yym1621 := z.EncBinary() - _ = yym1621 + if yyq1643[3] { + yym1654 := z.EncBinary() + _ = yym1654 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Message)) @@ -22292,97 +22821,97 @@ func (x *ContainerStateTerminated) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq1610[3] { + if yyq1643[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("message")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym1622 := z.EncBinary() - _ = yym1622 + yym1655 := z.EncBinary() + _ = yym1655 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Message)) } } } - if yyr1610 || yy2arr1610 { + if yyr1643 || yy2arr1643 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1610[4] { - yy1624 := &x.StartedAt - yym1625 := z.EncBinary() - _ = yym1625 + if yyq1643[4] { + yy1657 := &x.StartedAt + yym1658 := z.EncBinary() + _ = yym1658 if false { - } else if z.HasExtensions() && z.EncExt(yy1624) { - } else if yym1625 { - z.EncBinaryMarshal(yy1624) - } else if !yym1625 && z.IsJSONHandle() { - z.EncJSONMarshal(yy1624) + } else if z.HasExtensions() && z.EncExt(yy1657) { + } else if yym1658 { + z.EncBinaryMarshal(yy1657) + } else if !yym1658 && z.IsJSONHandle() { + z.EncJSONMarshal(yy1657) } else { - z.EncFallback(yy1624) + z.EncFallback(yy1657) } } else { r.EncodeNil() } } else { - if yyq1610[4] { + if yyq1643[4] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("startedAt")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy1626 := &x.StartedAt - yym1627 := z.EncBinary() - _ = yym1627 + yy1659 := &x.StartedAt + yym1660 := z.EncBinary() + _ = yym1660 if false { - } else if z.HasExtensions() && z.EncExt(yy1626) { - } else if yym1627 { - z.EncBinaryMarshal(yy1626) - } else if !yym1627 && z.IsJSONHandle() { - z.EncJSONMarshal(yy1626) + } else if z.HasExtensions() && z.EncExt(yy1659) { + } else if yym1660 { + z.EncBinaryMarshal(yy1659) + } else if !yym1660 && z.IsJSONHandle() { + z.EncJSONMarshal(yy1659) } else { - z.EncFallback(yy1626) + z.EncFallback(yy1659) } } } - if yyr1610 || yy2arr1610 { + if yyr1643 || yy2arr1643 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1610[5] { - yy1629 := &x.FinishedAt - yym1630 := z.EncBinary() - _ = yym1630 + if yyq1643[5] { + yy1662 := &x.FinishedAt + yym1663 := z.EncBinary() + _ = yym1663 if false { - } else if z.HasExtensions() && z.EncExt(yy1629) { - } else if yym1630 { - z.EncBinaryMarshal(yy1629) - } else if !yym1630 && z.IsJSONHandle() { - z.EncJSONMarshal(yy1629) + } else if z.HasExtensions() && z.EncExt(yy1662) { + } else if yym1663 { + z.EncBinaryMarshal(yy1662) + } else if !yym1663 && z.IsJSONHandle() { + z.EncJSONMarshal(yy1662) } else { - z.EncFallback(yy1629) + z.EncFallback(yy1662) } } else { r.EncodeNil() } } else { - if yyq1610[5] { + if yyq1643[5] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("finishedAt")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy1631 := &x.FinishedAt - yym1632 := z.EncBinary() - _ = yym1632 + yy1664 := &x.FinishedAt + yym1665 := z.EncBinary() + _ = yym1665 if false { - } else if z.HasExtensions() && z.EncExt(yy1631) { - } else if yym1632 { - z.EncBinaryMarshal(yy1631) - } else if !yym1632 && z.IsJSONHandle() { - z.EncJSONMarshal(yy1631) + } else if z.HasExtensions() && z.EncExt(yy1664) { + } else if yym1665 { + z.EncBinaryMarshal(yy1664) + } else if !yym1665 && z.IsJSONHandle() { + z.EncJSONMarshal(yy1664) } else { - z.EncFallback(yy1631) + z.EncFallback(yy1664) } } } - if yyr1610 || yy2arr1610 { + if yyr1643 || yy2arr1643 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1610[6] { - yym1634 := z.EncBinary() - _ = yym1634 + if yyq1643[6] { + yym1667 := z.EncBinary() + _ = yym1667 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.ContainerID)) @@ -22391,19 +22920,19 @@ func (x *ContainerStateTerminated) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq1610[6] { + if yyq1643[6] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("containerID")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym1635 := z.EncBinary() - _ = yym1635 + yym1668 := z.EncBinary() + _ = yym1668 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.ContainerID)) } } } - if yyr1610 || yy2arr1610 { + if yyr1643 || yy2arr1643 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -22416,25 +22945,25 @@ func (x *ContainerStateTerminated) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1636 := z.DecBinary() - _ = yym1636 + yym1669 := z.DecBinary() + _ = yym1669 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct1637 := r.ContainerType() - if yyct1637 == codecSelferValueTypeMap1234 { - yyl1637 := r.ReadMapStart() - if yyl1637 == 0 { + yyct1670 := r.ContainerType() + if yyct1670 == codecSelferValueTypeMap1234 { + yyl1670 := r.ReadMapStart() + if yyl1670 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl1637, d) + x.codecDecodeSelfFromMap(yyl1670, d) } - } else if yyct1637 == codecSelferValueTypeArray1234 { - yyl1637 := r.ReadArrayStart() - if yyl1637 == 0 { + } else if yyct1670 == codecSelferValueTypeArray1234 { + yyl1670 := r.ReadArrayStart() + if yyl1670 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl1637, d) + x.codecDecodeSelfFromArray(yyl1670, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -22446,12 +22975,12 @@ func (x *ContainerStateTerminated) codecDecodeSelfFromMap(l int, d *codec1978.De var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys1638Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys1638Slc - var yyhl1638 bool = l >= 0 - for yyj1638 := 0; ; yyj1638++ { - if yyhl1638 { - if yyj1638 >= l { + var yys1671Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys1671Slc + var yyhl1671 bool = l >= 0 + for yyj1671 := 0; ; yyj1671++ { + if yyhl1671 { + if yyj1671 >= l { break } } else { @@ -22460,10 +22989,10 @@ func (x *ContainerStateTerminated) codecDecodeSelfFromMap(l int, d *codec1978.De } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys1638Slc = r.DecodeBytes(yys1638Slc, true, true) - yys1638 := string(yys1638Slc) + yys1671Slc = r.DecodeBytes(yys1671Slc, true, true) + yys1671 := string(yys1671Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys1638 { + switch yys1671 { case "exitCode": if r.TryDecodeAsNil() { x.ExitCode = 0 @@ -22492,34 +23021,34 @@ func (x *ContainerStateTerminated) codecDecodeSelfFromMap(l int, d *codec1978.De if r.TryDecodeAsNil() { x.StartedAt = pkg2_unversioned.Time{} } else { - yyv1643 := &x.StartedAt - yym1644 := z.DecBinary() - _ = yym1644 + yyv1676 := &x.StartedAt + yym1677 := z.DecBinary() + _ = yym1677 if false { - } else if z.HasExtensions() && z.DecExt(yyv1643) { - } else if yym1644 { - z.DecBinaryUnmarshal(yyv1643) - } else if !yym1644 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv1643) + } else if z.HasExtensions() && z.DecExt(yyv1676) { + } else if yym1677 { + z.DecBinaryUnmarshal(yyv1676) + } else if !yym1677 && z.IsJSONHandle() { + z.DecJSONUnmarshal(yyv1676) } else { - z.DecFallback(yyv1643, false) + z.DecFallback(yyv1676, false) } } case "finishedAt": if r.TryDecodeAsNil() { x.FinishedAt = pkg2_unversioned.Time{} } else { - yyv1645 := &x.FinishedAt - yym1646 := z.DecBinary() - _ = yym1646 + yyv1678 := &x.FinishedAt + yym1679 := z.DecBinary() + _ = yym1679 if false { - } else if z.HasExtensions() && z.DecExt(yyv1645) { - } else if yym1646 { - z.DecBinaryUnmarshal(yyv1645) - } else if !yym1646 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv1645) + } else if z.HasExtensions() && z.DecExt(yyv1678) { + } else if yym1679 { + z.DecBinaryUnmarshal(yyv1678) + } else if !yym1679 && z.IsJSONHandle() { + z.DecJSONUnmarshal(yyv1678) } else { - z.DecFallback(yyv1645, false) + z.DecFallback(yyv1678, false) } } case "containerID": @@ -22529,9 +23058,9 @@ func (x *ContainerStateTerminated) codecDecodeSelfFromMap(l int, d *codec1978.De x.ContainerID = string(r.DecodeString()) } default: - z.DecStructFieldNotFound(-1, yys1638) - } // end switch yys1638 - } // end for yyj1638 + z.DecStructFieldNotFound(-1, yys1671) + } // end switch yys1671 + } // end for yyj1671 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -22539,16 +23068,16 @@ func (x *ContainerStateTerminated) codecDecodeSelfFromArray(l int, d *codec1978. var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj1648 int - var yyb1648 bool - var yyhl1648 bool = l >= 0 - yyj1648++ - if yyhl1648 { - yyb1648 = yyj1648 > l + var yyj1681 int + var yyb1681 bool + var yyhl1681 bool = l >= 0 + yyj1681++ + if yyhl1681 { + yyb1681 = yyj1681 > l } else { - yyb1648 = r.CheckBreak() + yyb1681 = r.CheckBreak() } - if yyb1648 { + if yyb1681 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -22558,13 +23087,13 @@ func (x *ContainerStateTerminated) codecDecodeSelfFromArray(l int, d *codec1978. } else { x.ExitCode = int32(r.DecodeInt(32)) } - yyj1648++ - if yyhl1648 { - yyb1648 = yyj1648 > l + yyj1681++ + if yyhl1681 { + yyb1681 = yyj1681 > l } else { - yyb1648 = r.CheckBreak() + yyb1681 = r.CheckBreak() } - if yyb1648 { + if yyb1681 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -22574,13 +23103,13 @@ func (x *ContainerStateTerminated) codecDecodeSelfFromArray(l int, d *codec1978. } else { x.Signal = int32(r.DecodeInt(32)) } - yyj1648++ - if yyhl1648 { - yyb1648 = yyj1648 > l + yyj1681++ + if yyhl1681 { + yyb1681 = yyj1681 > l } else { - yyb1648 = r.CheckBreak() + yyb1681 = r.CheckBreak() } - if yyb1648 { + if yyb1681 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -22590,13 +23119,13 @@ func (x *ContainerStateTerminated) codecDecodeSelfFromArray(l int, d *codec1978. } else { x.Reason = string(r.DecodeString()) } - yyj1648++ - if yyhl1648 { - yyb1648 = yyj1648 > l + yyj1681++ + if yyhl1681 { + yyb1681 = yyj1681 > l } else { - yyb1648 = r.CheckBreak() + yyb1681 = r.CheckBreak() } - if yyb1648 { + if yyb1681 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -22606,13 +23135,13 @@ func (x *ContainerStateTerminated) codecDecodeSelfFromArray(l int, d *codec1978. } else { x.Message = string(r.DecodeString()) } - yyj1648++ - if yyhl1648 { - yyb1648 = yyj1648 > l + yyj1681++ + if yyhl1681 { + yyb1681 = yyj1681 > l } else { - yyb1648 = r.CheckBreak() + yyb1681 = r.CheckBreak() } - if yyb1648 { + if yyb1681 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -22620,26 +23149,26 @@ func (x *ContainerStateTerminated) codecDecodeSelfFromArray(l int, d *codec1978. if r.TryDecodeAsNil() { x.StartedAt = pkg2_unversioned.Time{} } else { - yyv1653 := &x.StartedAt - yym1654 := z.DecBinary() - _ = yym1654 + yyv1686 := &x.StartedAt + yym1687 := z.DecBinary() + _ = yym1687 if false { - } else if z.HasExtensions() && z.DecExt(yyv1653) { - } else if yym1654 { - z.DecBinaryUnmarshal(yyv1653) - } else if !yym1654 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv1653) + } else if z.HasExtensions() && z.DecExt(yyv1686) { + } else if yym1687 { + z.DecBinaryUnmarshal(yyv1686) + } else if !yym1687 && z.IsJSONHandle() { + z.DecJSONUnmarshal(yyv1686) } else { - z.DecFallback(yyv1653, false) + z.DecFallback(yyv1686, false) } } - yyj1648++ - if yyhl1648 { - yyb1648 = yyj1648 > l + yyj1681++ + if yyhl1681 { + yyb1681 = yyj1681 > l } else { - yyb1648 = r.CheckBreak() + yyb1681 = r.CheckBreak() } - if yyb1648 { + if yyb1681 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -22647,26 +23176,26 @@ func (x *ContainerStateTerminated) codecDecodeSelfFromArray(l int, d *codec1978. if r.TryDecodeAsNil() { x.FinishedAt = pkg2_unversioned.Time{} } else { - yyv1655 := &x.FinishedAt - yym1656 := z.DecBinary() - _ = yym1656 + yyv1688 := &x.FinishedAt + yym1689 := z.DecBinary() + _ = yym1689 if false { - } else if z.HasExtensions() && z.DecExt(yyv1655) { - } else if yym1656 { - z.DecBinaryUnmarshal(yyv1655) - } else if !yym1656 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv1655) + } else if z.HasExtensions() && z.DecExt(yyv1688) { + } else if yym1689 { + z.DecBinaryUnmarshal(yyv1688) + } else if !yym1689 && z.IsJSONHandle() { + z.DecJSONUnmarshal(yyv1688) } else { - z.DecFallback(yyv1655, false) + z.DecFallback(yyv1688, false) } } - yyj1648++ - if yyhl1648 { - yyb1648 = yyj1648 > l + yyj1681++ + if yyhl1681 { + yyb1681 = yyj1681 > l } else { - yyb1648 = r.CheckBreak() + yyb1681 = r.CheckBreak() } - if yyb1648 { + if yyb1681 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -22677,17 +23206,17 @@ func (x *ContainerStateTerminated) codecDecodeSelfFromArray(l int, d *codec1978. x.ContainerID = string(r.DecodeString()) } for { - yyj1648++ - if yyhl1648 { - yyb1648 = yyj1648 > l + yyj1681++ + if yyhl1681 { + yyb1681 = yyj1681 > l } else { - yyb1648 = r.CheckBreak() + yyb1681 = r.CheckBreak() } - if yyb1648 { + if yyb1681 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj1648-1, "") + z.DecStructFieldNotFound(yyj1681-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -22699,35 +23228,35 @@ func (x *ContainerState) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1658 := z.EncBinary() - _ = yym1658 + yym1691 := z.EncBinary() + _ = yym1691 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - 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 { + yysep1692 := !z.EncBinary() + yy2arr1692 := z.EncBasicHandle().StructToArray + var yyq1692 [3]bool + _, _, _ = yysep1692, yyq1692, yy2arr1692 + const yyr1692 bool = false + yyq1692[0] = x.Waiting != nil + yyq1692[1] = x.Running != nil + yyq1692[2] = x.Terminated != nil + var yynn1692 int + if yyr1692 || yy2arr1692 { r.EncodeArrayStart(3) } else { - yynn1659 = 0 - for _, b := range yyq1659 { + yynn1692 = 0 + for _, b := range yyq1692 { if b { - yynn1659++ + yynn1692++ } } - r.EncodeMapStart(yynn1659) - yynn1659 = 0 + r.EncodeMapStart(yynn1692) + yynn1692 = 0 } - if yyr1659 || yy2arr1659 { + if yyr1692 || yy2arr1692 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1659[0] { + if yyq1692[0] { if x.Waiting == nil { r.EncodeNil() } else { @@ -22737,7 +23266,7 @@ func (x *ContainerState) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq1659[0] { + if yyq1692[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("waiting")) z.EncSendContainerState(codecSelfer_containerMapValue1234) @@ -22748,9 +23277,9 @@ func (x *ContainerState) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr1659 || yy2arr1659 { + if yyr1692 || yy2arr1692 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1659[1] { + if yyq1692[1] { if x.Running == nil { r.EncodeNil() } else { @@ -22760,7 +23289,7 @@ func (x *ContainerState) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq1659[1] { + if yyq1692[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("running")) z.EncSendContainerState(codecSelfer_containerMapValue1234) @@ -22771,9 +23300,9 @@ func (x *ContainerState) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr1659 || yy2arr1659 { + if yyr1692 || yy2arr1692 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1659[2] { + if yyq1692[2] { if x.Terminated == nil { r.EncodeNil() } else { @@ -22783,7 +23312,7 @@ func (x *ContainerState) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq1659[2] { + if yyq1692[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("terminated")) z.EncSendContainerState(codecSelfer_containerMapValue1234) @@ -22794,7 +23323,7 @@ func (x *ContainerState) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr1659 || yy2arr1659 { + if yyr1692 || yy2arr1692 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -22807,25 +23336,25 @@ func (x *ContainerState) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1663 := z.DecBinary() - _ = yym1663 + yym1696 := z.DecBinary() + _ = yym1696 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct1664 := r.ContainerType() - if yyct1664 == codecSelferValueTypeMap1234 { - yyl1664 := r.ReadMapStart() - if yyl1664 == 0 { + yyct1697 := r.ContainerType() + if yyct1697 == codecSelferValueTypeMap1234 { + yyl1697 := r.ReadMapStart() + if yyl1697 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl1664, d) + x.codecDecodeSelfFromMap(yyl1697, d) } - } else if yyct1664 == codecSelferValueTypeArray1234 { - yyl1664 := r.ReadArrayStart() - if yyl1664 == 0 { + } else if yyct1697 == codecSelferValueTypeArray1234 { + yyl1697 := r.ReadArrayStart() + if yyl1697 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl1664, d) + x.codecDecodeSelfFromArray(yyl1697, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -22837,12 +23366,12 @@ func (x *ContainerState) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys1665Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys1665Slc - var yyhl1665 bool = l >= 0 - for yyj1665 := 0; ; yyj1665++ { - if yyhl1665 { - if yyj1665 >= l { + var yys1698Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys1698Slc + var yyhl1698 bool = l >= 0 + for yyj1698 := 0; ; yyj1698++ { + if yyhl1698 { + if yyj1698 >= l { break } } else { @@ -22851,10 +23380,10 @@ func (x *ContainerState) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys1665Slc = r.DecodeBytes(yys1665Slc, true, true) - yys1665 := string(yys1665Slc) + yys1698Slc = r.DecodeBytes(yys1698Slc, true, true) + yys1698 := string(yys1698Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys1665 { + switch yys1698 { case "waiting": if r.TryDecodeAsNil() { if x.Waiting != nil { @@ -22889,9 +23418,9 @@ func (x *ContainerState) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { x.Terminated.CodecDecodeSelf(d) } default: - z.DecStructFieldNotFound(-1, yys1665) - } // end switch yys1665 - } // end for yyj1665 + z.DecStructFieldNotFound(-1, yys1698) + } // end switch yys1698 + } // end for yyj1698 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -22899,16 +23428,16 @@ func (x *ContainerState) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj1669 int - var yyb1669 bool - var yyhl1669 bool = l >= 0 - yyj1669++ - if yyhl1669 { - yyb1669 = yyj1669 > l + var yyj1702 int + var yyb1702 bool + var yyhl1702 bool = l >= 0 + yyj1702++ + if yyhl1702 { + yyb1702 = yyj1702 > l } else { - yyb1669 = r.CheckBreak() + yyb1702 = r.CheckBreak() } - if yyb1669 { + if yyb1702 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -22923,13 +23452,13 @@ func (x *ContainerState) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } x.Waiting.CodecDecodeSelf(d) } - yyj1669++ - if yyhl1669 { - yyb1669 = yyj1669 > l + yyj1702++ + if yyhl1702 { + yyb1702 = yyj1702 > l } else { - yyb1669 = r.CheckBreak() + yyb1702 = r.CheckBreak() } - if yyb1669 { + if yyb1702 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -22944,13 +23473,13 @@ func (x *ContainerState) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } x.Running.CodecDecodeSelf(d) } - yyj1669++ - if yyhl1669 { - yyb1669 = yyj1669 > l + yyj1702++ + if yyhl1702 { + yyb1702 = yyj1702 > l } else { - yyb1669 = r.CheckBreak() + yyb1702 = r.CheckBreak() } - if yyb1669 { + if yyb1702 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -22966,17 +23495,17 @@ func (x *ContainerState) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { x.Terminated.CodecDecodeSelf(d) } for { - yyj1669++ - if yyhl1669 { - yyb1669 = yyj1669 > l + yyj1702++ + if yyhl1702 { + yyb1702 = yyj1702 > l } else { - yyb1669 = r.CheckBreak() + yyb1702 = r.CheckBreak() } - if yyb1669 { + if yyb1702 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj1669-1, "") + z.DecStructFieldNotFound(yyj1702-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -22988,36 +23517,36 @@ func (x *ContainerStatus) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1673 := z.EncBinary() - _ = yym1673 + yym1706 := z.EncBinary() + _ = yym1706 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - 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 { + yysep1707 := !z.EncBinary() + yy2arr1707 := z.EncBasicHandle().StructToArray + var yyq1707 [8]bool + _, _, _ = yysep1707, yyq1707, yy2arr1707 + const yyr1707 bool = false + yyq1707[1] = true + yyq1707[2] = true + yyq1707[7] = x.ContainerID != "" + var yynn1707 int + if yyr1707 || yy2arr1707 { r.EncodeArrayStart(8) } else { - yynn1674 = 5 - for _, b := range yyq1674 { + yynn1707 = 5 + for _, b := range yyq1707 { if b { - yynn1674++ + yynn1707++ } } - r.EncodeMapStart(yynn1674) - yynn1674 = 0 + r.EncodeMapStart(yynn1707) + yynn1707 = 0 } - if yyr1674 || yy2arr1674 { + if yyr1707 || yy2arr1707 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym1676 := z.EncBinary() - _ = yym1676 + yym1709 := z.EncBinary() + _ = yym1709 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Name)) @@ -23026,51 +23555,51 @@ func (x *ContainerStatus) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("name")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym1677 := z.EncBinary() - _ = yym1677 + yym1710 := z.EncBinary() + _ = yym1710 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Name)) } } - if yyr1674 || yy2arr1674 { + if yyr1707 || yy2arr1707 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1674[1] { - yy1679 := &x.State - yy1679.CodecEncodeSelf(e) + if yyq1707[1] { + yy1712 := &x.State + yy1712.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { - if yyq1674[1] { + if yyq1707[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("state")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy1680 := &x.State - yy1680.CodecEncodeSelf(e) + yy1713 := &x.State + yy1713.CodecEncodeSelf(e) } } - if yyr1674 || yy2arr1674 { + if yyr1707 || yy2arr1707 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1674[2] { - yy1682 := &x.LastTerminationState - yy1682.CodecEncodeSelf(e) + if yyq1707[2] { + yy1715 := &x.LastTerminationState + yy1715.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { - if yyq1674[2] { + if yyq1707[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("lastState")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy1683 := &x.LastTerminationState - yy1683.CodecEncodeSelf(e) + yy1716 := &x.LastTerminationState + yy1716.CodecEncodeSelf(e) } } - if yyr1674 || yy2arr1674 { + if yyr1707 || yy2arr1707 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym1685 := z.EncBinary() - _ = yym1685 + yym1718 := z.EncBinary() + _ = yym1718 if false { } else { r.EncodeBool(bool(x.Ready)) @@ -23079,17 +23608,17 @@ func (x *ContainerStatus) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("ready")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym1686 := z.EncBinary() - _ = yym1686 + yym1719 := z.EncBinary() + _ = yym1719 if false { } else { r.EncodeBool(bool(x.Ready)) } } - if yyr1674 || yy2arr1674 { + if yyr1707 || yy2arr1707 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym1688 := z.EncBinary() - _ = yym1688 + yym1721 := z.EncBinary() + _ = yym1721 if false { } else { r.EncodeInt(int64(x.RestartCount)) @@ -23098,17 +23627,17 @@ func (x *ContainerStatus) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("restartCount")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym1689 := z.EncBinary() - _ = yym1689 + yym1722 := z.EncBinary() + _ = yym1722 if false { } else { r.EncodeInt(int64(x.RestartCount)) } } - if yyr1674 || yy2arr1674 { + if yyr1707 || yy2arr1707 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym1691 := z.EncBinary() - _ = yym1691 + yym1724 := z.EncBinary() + _ = yym1724 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Image)) @@ -23117,17 +23646,17 @@ func (x *ContainerStatus) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("image")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym1692 := z.EncBinary() - _ = yym1692 + yym1725 := z.EncBinary() + _ = yym1725 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Image)) } } - if yyr1674 || yy2arr1674 { + if yyr1707 || yy2arr1707 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym1694 := z.EncBinary() - _ = yym1694 + yym1727 := z.EncBinary() + _ = yym1727 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.ImageID)) @@ -23136,18 +23665,18 @@ func (x *ContainerStatus) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("imageID")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym1695 := z.EncBinary() - _ = yym1695 + yym1728 := z.EncBinary() + _ = yym1728 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.ImageID)) } } - if yyr1674 || yy2arr1674 { + if yyr1707 || yy2arr1707 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1674[7] { - yym1697 := z.EncBinary() - _ = yym1697 + if yyq1707[7] { + yym1730 := z.EncBinary() + _ = yym1730 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.ContainerID)) @@ -23156,19 +23685,19 @@ func (x *ContainerStatus) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq1674[7] { + if yyq1707[7] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("containerID")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym1698 := z.EncBinary() - _ = yym1698 + yym1731 := z.EncBinary() + _ = yym1731 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.ContainerID)) } } } - if yyr1674 || yy2arr1674 { + if yyr1707 || yy2arr1707 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -23181,25 +23710,25 @@ func (x *ContainerStatus) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1699 := z.DecBinary() - _ = yym1699 + yym1732 := z.DecBinary() + _ = yym1732 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct1700 := r.ContainerType() - if yyct1700 == codecSelferValueTypeMap1234 { - yyl1700 := r.ReadMapStart() - if yyl1700 == 0 { + yyct1733 := r.ContainerType() + if yyct1733 == codecSelferValueTypeMap1234 { + yyl1733 := r.ReadMapStart() + if yyl1733 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl1700, d) + x.codecDecodeSelfFromMap(yyl1733, d) } - } else if yyct1700 == codecSelferValueTypeArray1234 { - yyl1700 := r.ReadArrayStart() - if yyl1700 == 0 { + } else if yyct1733 == codecSelferValueTypeArray1234 { + yyl1733 := r.ReadArrayStart() + if yyl1733 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl1700, d) + x.codecDecodeSelfFromArray(yyl1733, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -23211,12 +23740,12 @@ func (x *ContainerStatus) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys1701Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys1701Slc - var yyhl1701 bool = l >= 0 - for yyj1701 := 0; ; yyj1701++ { - if yyhl1701 { - if yyj1701 >= l { + var yys1734Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys1734Slc + var yyhl1734 bool = l >= 0 + for yyj1734 := 0; ; yyj1734++ { + if yyhl1734 { + if yyj1734 >= l { break } } else { @@ -23225,10 +23754,10 @@ func (x *ContainerStatus) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys1701Slc = r.DecodeBytes(yys1701Slc, true, true) - yys1701 := string(yys1701Slc) + yys1734Slc = r.DecodeBytes(yys1734Slc, true, true) + yys1734 := string(yys1734Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys1701 { + switch yys1734 { case "name": if r.TryDecodeAsNil() { x.Name = "" @@ -23239,15 +23768,15 @@ func (x *ContainerStatus) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.State = ContainerState{} } else { - yyv1703 := &x.State - yyv1703.CodecDecodeSelf(d) + yyv1736 := &x.State + yyv1736.CodecDecodeSelf(d) } case "lastState": if r.TryDecodeAsNil() { x.LastTerminationState = ContainerState{} } else { - yyv1704 := &x.LastTerminationState - yyv1704.CodecDecodeSelf(d) + yyv1737 := &x.LastTerminationState + yyv1737.CodecDecodeSelf(d) } case "ready": if r.TryDecodeAsNil() { @@ -23280,9 +23809,9 @@ func (x *ContainerStatus) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { x.ContainerID = string(r.DecodeString()) } default: - z.DecStructFieldNotFound(-1, yys1701) - } // end switch yys1701 - } // end for yyj1701 + z.DecStructFieldNotFound(-1, yys1734) + } // end switch yys1734 + } // end for yyj1734 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -23290,16 +23819,16 @@ func (x *ContainerStatus) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj1710 int - var yyb1710 bool - var yyhl1710 bool = l >= 0 - yyj1710++ - if yyhl1710 { - yyb1710 = yyj1710 > l + var yyj1743 int + var yyb1743 bool + var yyhl1743 bool = l >= 0 + yyj1743++ + if yyhl1743 { + yyb1743 = yyj1743 > l } else { - yyb1710 = r.CheckBreak() + yyb1743 = r.CheckBreak() } - if yyb1710 { + if yyb1743 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -23309,13 +23838,13 @@ func (x *ContainerStatus) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) } else { x.Name = string(r.DecodeString()) } - yyj1710++ - if yyhl1710 { - yyb1710 = yyj1710 > l + yyj1743++ + if yyhl1743 { + yyb1743 = yyj1743 > l } else { - yyb1710 = r.CheckBreak() + yyb1743 = r.CheckBreak() } - if yyb1710 { + if yyb1743 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -23323,16 +23852,16 @@ func (x *ContainerStatus) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) if r.TryDecodeAsNil() { x.State = ContainerState{} } else { - yyv1712 := &x.State - yyv1712.CodecDecodeSelf(d) + yyv1745 := &x.State + yyv1745.CodecDecodeSelf(d) } - yyj1710++ - if yyhl1710 { - yyb1710 = yyj1710 > l + yyj1743++ + if yyhl1743 { + yyb1743 = yyj1743 > l } else { - yyb1710 = r.CheckBreak() + yyb1743 = r.CheckBreak() } - if yyb1710 { + if yyb1743 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -23340,16 +23869,16 @@ func (x *ContainerStatus) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) if r.TryDecodeAsNil() { x.LastTerminationState = ContainerState{} } else { - yyv1713 := &x.LastTerminationState - yyv1713.CodecDecodeSelf(d) + yyv1746 := &x.LastTerminationState + yyv1746.CodecDecodeSelf(d) } - yyj1710++ - if yyhl1710 { - yyb1710 = yyj1710 > l + yyj1743++ + if yyhl1743 { + yyb1743 = yyj1743 > l } else { - yyb1710 = r.CheckBreak() + yyb1743 = r.CheckBreak() } - if yyb1710 { + if yyb1743 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -23359,13 +23888,13 @@ func (x *ContainerStatus) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) } else { x.Ready = bool(r.DecodeBool()) } - yyj1710++ - if yyhl1710 { - yyb1710 = yyj1710 > l + yyj1743++ + if yyhl1743 { + yyb1743 = yyj1743 > l } else { - yyb1710 = r.CheckBreak() + yyb1743 = r.CheckBreak() } - if yyb1710 { + if yyb1743 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -23375,13 +23904,13 @@ func (x *ContainerStatus) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) } else { x.RestartCount = int32(r.DecodeInt(32)) } - yyj1710++ - if yyhl1710 { - yyb1710 = yyj1710 > l + yyj1743++ + if yyhl1743 { + yyb1743 = yyj1743 > l } else { - yyb1710 = r.CheckBreak() + yyb1743 = r.CheckBreak() } - if yyb1710 { + if yyb1743 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -23391,13 +23920,13 @@ func (x *ContainerStatus) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) } else { x.Image = string(r.DecodeString()) } - yyj1710++ - if yyhl1710 { - yyb1710 = yyj1710 > l + yyj1743++ + if yyhl1743 { + yyb1743 = yyj1743 > l } else { - yyb1710 = r.CheckBreak() + yyb1743 = r.CheckBreak() } - if yyb1710 { + if yyb1743 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -23407,13 +23936,13 @@ func (x *ContainerStatus) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) } else { x.ImageID = string(r.DecodeString()) } - yyj1710++ - if yyhl1710 { - yyb1710 = yyj1710 > l + yyj1743++ + if yyhl1743 { + yyb1743 = yyj1743 > l } else { - yyb1710 = r.CheckBreak() + yyb1743 = r.CheckBreak() } - if yyb1710 { + if yyb1743 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -23424,17 +23953,17 @@ func (x *ContainerStatus) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) x.ContainerID = string(r.DecodeString()) } for { - yyj1710++ - if yyhl1710 { - yyb1710 = yyj1710 > l + yyj1743++ + if yyhl1743 { + yyb1743 = yyj1743 > l } else { - yyb1710 = r.CheckBreak() + yyb1743 = r.CheckBreak() } - if yyb1710 { + if yyb1743 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj1710-1, "") + z.DecStructFieldNotFound(yyj1743-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -23443,8 +23972,8 @@ func (x PodPhase) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r - yym1719 := z.EncBinary() - _ = yym1719 + yym1752 := z.EncBinary() + _ = yym1752 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { @@ -23456,8 +23985,8 @@ func (x *PodPhase) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1720 := z.DecBinary() - _ = yym1720 + yym1753 := z.DecBinary() + _ = yym1753 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { @@ -23469,8 +23998,8 @@ func (x PodConditionType) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r - yym1721 := z.EncBinary() - _ = yym1721 + yym1754 := z.EncBinary() + _ = yym1754 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { @@ -23482,8 +24011,8 @@ func (x *PodConditionType) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1722 := z.DecBinary() - _ = yym1722 + yym1755 := z.DecBinary() + _ = yym1755 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { @@ -23498,34 +24027,34 @@ func (x *PodCondition) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1723 := z.EncBinary() - _ = yym1723 + yym1756 := z.EncBinary() + _ = yym1756 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - 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 { + yysep1757 := !z.EncBinary() + yy2arr1757 := z.EncBasicHandle().StructToArray + var yyq1757 [6]bool + _, _, _ = yysep1757, yyq1757, yy2arr1757 + const yyr1757 bool = false + yyq1757[2] = true + yyq1757[3] = true + yyq1757[4] = x.Reason != "" + yyq1757[5] = x.Message != "" + var yynn1757 int + if yyr1757 || yy2arr1757 { r.EncodeArrayStart(6) } else { - yynn1724 = 2 - for _, b := range yyq1724 { + yynn1757 = 2 + for _, b := range yyq1757 { if b { - yynn1724++ + yynn1757++ } } - r.EncodeMapStart(yynn1724) - yynn1724 = 0 + r.EncodeMapStart(yynn1757) + yynn1757 = 0 } - if yyr1724 || yy2arr1724 { + if yyr1757 || yy2arr1757 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) x.Type.CodecEncodeSelf(e) } else { @@ -23534,7 +24063,7 @@ func (x *PodCondition) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapValue1234) x.Type.CodecEncodeSelf(e) } - if yyr1724 || yy2arr1724 { + if yyr1757 || yy2arr1757 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) x.Status.CodecEncodeSelf(e) } else { @@ -23543,85 +24072,85 @@ func (x *PodCondition) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapValue1234) x.Status.CodecEncodeSelf(e) } - if yyr1724 || yy2arr1724 { + if yyr1757 || yy2arr1757 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1724[2] { - yy1728 := &x.LastProbeTime - yym1729 := z.EncBinary() - _ = yym1729 + if yyq1757[2] { + yy1761 := &x.LastProbeTime + yym1762 := z.EncBinary() + _ = yym1762 if false { - } else if z.HasExtensions() && z.EncExt(yy1728) { - } else if yym1729 { - z.EncBinaryMarshal(yy1728) - } else if !yym1729 && z.IsJSONHandle() { - z.EncJSONMarshal(yy1728) + } else if z.HasExtensions() && z.EncExt(yy1761) { + } else if yym1762 { + z.EncBinaryMarshal(yy1761) + } else if !yym1762 && z.IsJSONHandle() { + z.EncJSONMarshal(yy1761) } else { - z.EncFallback(yy1728) + z.EncFallback(yy1761) } } else { r.EncodeNil() } } else { - if yyq1724[2] { + if yyq1757[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("lastProbeTime")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy1730 := &x.LastProbeTime - yym1731 := z.EncBinary() - _ = yym1731 + yy1763 := &x.LastProbeTime + yym1764 := z.EncBinary() + _ = yym1764 if false { - } else if z.HasExtensions() && z.EncExt(yy1730) { - } else if yym1731 { - z.EncBinaryMarshal(yy1730) - } else if !yym1731 && z.IsJSONHandle() { - z.EncJSONMarshal(yy1730) + } else if z.HasExtensions() && z.EncExt(yy1763) { + } else if yym1764 { + z.EncBinaryMarshal(yy1763) + } else if !yym1764 && z.IsJSONHandle() { + z.EncJSONMarshal(yy1763) } else { - z.EncFallback(yy1730) + z.EncFallback(yy1763) } } } - if yyr1724 || yy2arr1724 { + if yyr1757 || yy2arr1757 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1724[3] { - yy1733 := &x.LastTransitionTime - yym1734 := z.EncBinary() - _ = yym1734 + if yyq1757[3] { + yy1766 := &x.LastTransitionTime + yym1767 := z.EncBinary() + _ = yym1767 if false { - } else if z.HasExtensions() && z.EncExt(yy1733) { - } else if yym1734 { - z.EncBinaryMarshal(yy1733) - } else if !yym1734 && z.IsJSONHandle() { - z.EncJSONMarshal(yy1733) + } else if z.HasExtensions() && z.EncExt(yy1766) { + } else if yym1767 { + z.EncBinaryMarshal(yy1766) + } else if !yym1767 && z.IsJSONHandle() { + z.EncJSONMarshal(yy1766) } else { - z.EncFallback(yy1733) + z.EncFallback(yy1766) } } else { r.EncodeNil() } } else { - if yyq1724[3] { + if yyq1757[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("lastTransitionTime")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy1735 := &x.LastTransitionTime - yym1736 := z.EncBinary() - _ = yym1736 + yy1768 := &x.LastTransitionTime + yym1769 := z.EncBinary() + _ = yym1769 if false { - } else if z.HasExtensions() && z.EncExt(yy1735) { - } else if yym1736 { - z.EncBinaryMarshal(yy1735) - } else if !yym1736 && z.IsJSONHandle() { - z.EncJSONMarshal(yy1735) + } else if z.HasExtensions() && z.EncExt(yy1768) { + } else if yym1769 { + z.EncBinaryMarshal(yy1768) + } else if !yym1769 && z.IsJSONHandle() { + z.EncJSONMarshal(yy1768) } else { - z.EncFallback(yy1735) + z.EncFallback(yy1768) } } } - if yyr1724 || yy2arr1724 { + if yyr1757 || yy2arr1757 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1724[4] { - yym1738 := z.EncBinary() - _ = yym1738 + if yyq1757[4] { + yym1771 := z.EncBinary() + _ = yym1771 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Reason)) @@ -23630,23 +24159,23 @@ func (x *PodCondition) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq1724[4] { + if yyq1757[4] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("reason")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym1739 := z.EncBinary() - _ = yym1739 + yym1772 := z.EncBinary() + _ = yym1772 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Reason)) } } } - if yyr1724 || yy2arr1724 { + if yyr1757 || yy2arr1757 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1724[5] { - yym1741 := z.EncBinary() - _ = yym1741 + if yyq1757[5] { + yym1774 := z.EncBinary() + _ = yym1774 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Message)) @@ -23655,19 +24184,19 @@ func (x *PodCondition) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq1724[5] { + if yyq1757[5] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("message")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym1742 := z.EncBinary() - _ = yym1742 + yym1775 := z.EncBinary() + _ = yym1775 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Message)) } } } - if yyr1724 || yy2arr1724 { + if yyr1757 || yy2arr1757 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -23680,25 +24209,25 @@ func (x *PodCondition) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1743 := z.DecBinary() - _ = yym1743 + yym1776 := z.DecBinary() + _ = yym1776 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct1744 := r.ContainerType() - if yyct1744 == codecSelferValueTypeMap1234 { - yyl1744 := r.ReadMapStart() - if yyl1744 == 0 { + yyct1777 := r.ContainerType() + if yyct1777 == codecSelferValueTypeMap1234 { + yyl1777 := r.ReadMapStart() + if yyl1777 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl1744, d) + x.codecDecodeSelfFromMap(yyl1777, d) } - } else if yyct1744 == codecSelferValueTypeArray1234 { - yyl1744 := r.ReadArrayStart() - if yyl1744 == 0 { + } else if yyct1777 == codecSelferValueTypeArray1234 { + yyl1777 := r.ReadArrayStart() + if yyl1777 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl1744, d) + x.codecDecodeSelfFromArray(yyl1777, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -23710,12 +24239,12 @@ func (x *PodCondition) 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 { + 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 { @@ -23724,10 +24253,10 @@ func (x *PodCondition) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys1745Slc = r.DecodeBytes(yys1745Slc, true, true) - yys1745 := string(yys1745Slc) + yys1778Slc = r.DecodeBytes(yys1778Slc, true, true) + yys1778 := string(yys1778Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys1745 { + switch yys1778 { case "type": if r.TryDecodeAsNil() { x.Type = "" @@ -23744,34 +24273,34 @@ func (x *PodCondition) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.LastProbeTime = pkg2_unversioned.Time{} } else { - yyv1748 := &x.LastProbeTime - yym1749 := z.DecBinary() - _ = yym1749 + yyv1781 := &x.LastProbeTime + yym1782 := z.DecBinary() + _ = yym1782 if false { - } else if z.HasExtensions() && z.DecExt(yyv1748) { - } else if yym1749 { - z.DecBinaryUnmarshal(yyv1748) - } else if !yym1749 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv1748) + } else if z.HasExtensions() && z.DecExt(yyv1781) { + } else if yym1782 { + z.DecBinaryUnmarshal(yyv1781) + } else if !yym1782 && z.IsJSONHandle() { + z.DecJSONUnmarshal(yyv1781) } else { - z.DecFallback(yyv1748, false) + z.DecFallback(yyv1781, false) } } case "lastTransitionTime": if r.TryDecodeAsNil() { x.LastTransitionTime = pkg2_unversioned.Time{} } else { - yyv1750 := &x.LastTransitionTime - yym1751 := z.DecBinary() - _ = yym1751 + yyv1783 := &x.LastTransitionTime + yym1784 := z.DecBinary() + _ = yym1784 if false { - } else if z.HasExtensions() && z.DecExt(yyv1750) { - } else if yym1751 { - z.DecBinaryUnmarshal(yyv1750) - } else if !yym1751 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv1750) + } else if z.HasExtensions() && z.DecExt(yyv1783) { + } else if yym1784 { + z.DecBinaryUnmarshal(yyv1783) + } else if !yym1784 && z.IsJSONHandle() { + z.DecJSONUnmarshal(yyv1783) } else { - z.DecFallback(yyv1750, false) + z.DecFallback(yyv1783, false) } } case "reason": @@ -23787,9 +24316,9 @@ func (x *PodCondition) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { x.Message = string(r.DecodeString()) } default: - z.DecStructFieldNotFound(-1, yys1745) - } // end switch yys1745 - } // end for yyj1745 + z.DecStructFieldNotFound(-1, yys1778) + } // end switch yys1778 + } // end for yyj1778 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -23797,16 +24326,16 @@ func (x *PodCondition) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj1754 int - var yyb1754 bool - var yyhl1754 bool = l >= 0 - yyj1754++ - if yyhl1754 { - yyb1754 = yyj1754 > l + var yyj1787 int + var yyb1787 bool + var yyhl1787 bool = l >= 0 + yyj1787++ + if yyhl1787 { + yyb1787 = yyj1787 > l } else { - yyb1754 = r.CheckBreak() + yyb1787 = r.CheckBreak() } - if yyb1754 { + if yyb1787 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -23816,13 +24345,13 @@ func (x *PodCondition) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.Type = PodConditionType(r.DecodeString()) } - yyj1754++ - if yyhl1754 { - yyb1754 = yyj1754 > l + yyj1787++ + if yyhl1787 { + yyb1787 = yyj1787 > l } else { - yyb1754 = r.CheckBreak() + yyb1787 = r.CheckBreak() } - if yyb1754 { + if yyb1787 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -23832,13 +24361,13 @@ func (x *PodCondition) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.Status = ConditionStatus(r.DecodeString()) } - yyj1754++ - if yyhl1754 { - yyb1754 = yyj1754 > l + yyj1787++ + if yyhl1787 { + yyb1787 = yyj1787 > l } else { - yyb1754 = r.CheckBreak() + yyb1787 = r.CheckBreak() } - if yyb1754 { + if yyb1787 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -23846,26 +24375,26 @@ func (x *PodCondition) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.LastProbeTime = pkg2_unversioned.Time{} } else { - yyv1757 := &x.LastProbeTime - yym1758 := z.DecBinary() - _ = yym1758 + yyv1790 := &x.LastProbeTime + yym1791 := z.DecBinary() + _ = yym1791 if false { - } else if z.HasExtensions() && z.DecExt(yyv1757) { - } else if yym1758 { - z.DecBinaryUnmarshal(yyv1757) - } else if !yym1758 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv1757) + } else if z.HasExtensions() && z.DecExt(yyv1790) { + } else if yym1791 { + z.DecBinaryUnmarshal(yyv1790) + } else if !yym1791 && z.IsJSONHandle() { + z.DecJSONUnmarshal(yyv1790) } else { - z.DecFallback(yyv1757, false) + z.DecFallback(yyv1790, false) } } - yyj1754++ - if yyhl1754 { - yyb1754 = yyj1754 > l + yyj1787++ + if yyhl1787 { + yyb1787 = yyj1787 > l } else { - yyb1754 = r.CheckBreak() + yyb1787 = r.CheckBreak() } - if yyb1754 { + if yyb1787 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -23873,26 +24402,26 @@ func (x *PodCondition) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.LastTransitionTime = pkg2_unversioned.Time{} } else { - yyv1759 := &x.LastTransitionTime - yym1760 := z.DecBinary() - _ = yym1760 + yyv1792 := &x.LastTransitionTime + yym1793 := z.DecBinary() + _ = yym1793 if false { - } else if z.HasExtensions() && z.DecExt(yyv1759) { - } else if yym1760 { - z.DecBinaryUnmarshal(yyv1759) - } else if !yym1760 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv1759) + } else if z.HasExtensions() && z.DecExt(yyv1792) { + } else if yym1793 { + z.DecBinaryUnmarshal(yyv1792) + } else if !yym1793 && z.IsJSONHandle() { + z.DecJSONUnmarshal(yyv1792) } else { - z.DecFallback(yyv1759, false) + z.DecFallback(yyv1792, false) } } - yyj1754++ - if yyhl1754 { - yyb1754 = yyj1754 > l + yyj1787++ + if yyhl1787 { + yyb1787 = yyj1787 > l } else { - yyb1754 = r.CheckBreak() + yyb1787 = r.CheckBreak() } - if yyb1754 { + if yyb1787 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -23902,13 +24431,13 @@ func (x *PodCondition) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.Reason = string(r.DecodeString()) } - yyj1754++ - if yyhl1754 { - yyb1754 = yyj1754 > l + yyj1787++ + if yyhl1787 { + yyb1787 = yyj1787 > l } else { - yyb1754 = r.CheckBreak() + yyb1787 = r.CheckBreak() } - if yyb1754 { + if yyb1787 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -23919,17 +24448,17 @@ func (x *PodCondition) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { x.Message = string(r.DecodeString()) } for { - yyj1754++ - if yyhl1754 { - yyb1754 = yyj1754 > l + yyj1787++ + if yyhl1787 { + yyb1787 = yyj1787 > l } else { - yyb1754 = r.CheckBreak() + yyb1787 = r.CheckBreak() } - if yyb1754 { + if yyb1787 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj1754-1, "") + z.DecStructFieldNotFound(yyj1787-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -23938,8 +24467,8 @@ func (x RestartPolicy) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r - yym1763 := z.EncBinary() - _ = yym1763 + yym1796 := z.EncBinary() + _ = yym1796 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { @@ -23951,8 +24480,8 @@ func (x *RestartPolicy) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1764 := z.DecBinary() - _ = yym1764 + yym1797 := z.DecBinary() + _ = yym1797 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { @@ -23964,8 +24493,8 @@ func (x DNSPolicy) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r - yym1765 := z.EncBinary() - _ = yym1765 + yym1798 := z.EncBinary() + _ = yym1798 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { @@ -23977,8 +24506,8 @@ func (x *DNSPolicy) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1766 := z.DecBinary() - _ = yym1766 + yym1799 := z.DecBinary() + _ = yym1799 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { @@ -23993,36 +24522,36 @@ func (x *NodeSelector) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1767 := z.EncBinary() - _ = yym1767 + yym1800 := z.EncBinary() + _ = yym1800 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep1768 := !z.EncBinary() - yy2arr1768 := z.EncBasicHandle().StructToArray - var yyq1768 [1]bool - _, _, _ = yysep1768, yyq1768, yy2arr1768 - const yyr1768 bool = false - var yynn1768 int - if yyr1768 || yy2arr1768 { + yysep1801 := !z.EncBinary() + yy2arr1801 := z.EncBasicHandle().StructToArray + var yyq1801 [1]bool + _, _, _ = yysep1801, yyq1801, yy2arr1801 + const yyr1801 bool = false + var yynn1801 int + if yyr1801 || yy2arr1801 { r.EncodeArrayStart(1) } else { - yynn1768 = 1 - for _, b := range yyq1768 { + yynn1801 = 1 + for _, b := range yyq1801 { if b { - yynn1768++ + yynn1801++ } } - r.EncodeMapStart(yynn1768) - yynn1768 = 0 + r.EncodeMapStart(yynn1801) + yynn1801 = 0 } - if yyr1768 || yy2arr1768 { + if yyr1801 || yy2arr1801 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.NodeSelectorTerms == nil { r.EncodeNil() } else { - yym1770 := z.EncBinary() - _ = yym1770 + yym1803 := z.EncBinary() + _ = yym1803 if false { } else { h.encSliceNodeSelectorTerm(([]NodeSelectorTerm)(x.NodeSelectorTerms), e) @@ -24035,15 +24564,15 @@ func (x *NodeSelector) CodecEncodeSelf(e *codec1978.Encoder) { if x.NodeSelectorTerms == nil { r.EncodeNil() } else { - yym1771 := z.EncBinary() - _ = yym1771 + yym1804 := z.EncBinary() + _ = yym1804 if false { } else { h.encSliceNodeSelectorTerm(([]NodeSelectorTerm)(x.NodeSelectorTerms), e) } } } - if yyr1768 || yy2arr1768 { + if yyr1801 || yy2arr1801 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -24056,25 +24585,25 @@ func (x *NodeSelector) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1772 := z.DecBinary() - _ = yym1772 + yym1805 := z.DecBinary() + _ = yym1805 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct1773 := r.ContainerType() - if yyct1773 == codecSelferValueTypeMap1234 { - yyl1773 := r.ReadMapStart() - if yyl1773 == 0 { + yyct1806 := r.ContainerType() + if yyct1806 == codecSelferValueTypeMap1234 { + yyl1806 := r.ReadMapStart() + if yyl1806 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl1773, d) + x.codecDecodeSelfFromMap(yyl1806, d) } - } else if yyct1773 == codecSelferValueTypeArray1234 { - yyl1773 := r.ReadArrayStart() - if yyl1773 == 0 { + } else if yyct1806 == codecSelferValueTypeArray1234 { + yyl1806 := r.ReadArrayStart() + if yyl1806 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl1773, d) + x.codecDecodeSelfFromArray(yyl1806, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -24086,12 +24615,12 @@ func (x *NodeSelector) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys1774Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys1774Slc - var yyhl1774 bool = l >= 0 - for yyj1774 := 0; ; yyj1774++ { - if yyhl1774 { - if yyj1774 >= l { + var yys1807Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys1807Slc + var yyhl1807 bool = l >= 0 + for yyj1807 := 0; ; yyj1807++ { + if yyhl1807 { + if yyj1807 >= l { break } } else { @@ -24100,26 +24629,26 @@ func (x *NodeSelector) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys1774Slc = r.DecodeBytes(yys1774Slc, true, true) - yys1774 := string(yys1774Slc) + yys1807Slc = r.DecodeBytes(yys1807Slc, true, true) + yys1807 := string(yys1807Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys1774 { + switch yys1807 { case "nodeSelectorTerms": if r.TryDecodeAsNil() { x.NodeSelectorTerms = nil } else { - yyv1775 := &x.NodeSelectorTerms - yym1776 := z.DecBinary() - _ = yym1776 + yyv1808 := &x.NodeSelectorTerms + yym1809 := z.DecBinary() + _ = yym1809 if false { } else { - h.decSliceNodeSelectorTerm((*[]NodeSelectorTerm)(yyv1775), d) + h.decSliceNodeSelectorTerm((*[]NodeSelectorTerm)(yyv1808), d) } } default: - z.DecStructFieldNotFound(-1, yys1774) - } // end switch yys1774 - } // end for yyj1774 + z.DecStructFieldNotFound(-1, yys1807) + } // end switch yys1807 + } // end for yyj1807 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -24127,16 +24656,16 @@ func (x *NodeSelector) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj1777 int - var yyb1777 bool - var yyhl1777 bool = l >= 0 - yyj1777++ - if yyhl1777 { - yyb1777 = yyj1777 > l + var yyj1810 int + var yyb1810 bool + var yyhl1810 bool = l >= 0 + yyj1810++ + if yyhl1810 { + yyb1810 = yyj1810 > l } else { - yyb1777 = r.CheckBreak() + yyb1810 = r.CheckBreak() } - if yyb1777 { + if yyb1810 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -24144,26 +24673,26 @@ func (x *NodeSelector) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.NodeSelectorTerms = nil } else { - yyv1778 := &x.NodeSelectorTerms - yym1779 := z.DecBinary() - _ = yym1779 + yyv1811 := &x.NodeSelectorTerms + yym1812 := z.DecBinary() + _ = yym1812 if false { } else { - h.decSliceNodeSelectorTerm((*[]NodeSelectorTerm)(yyv1778), d) + h.decSliceNodeSelectorTerm((*[]NodeSelectorTerm)(yyv1811), d) } } for { - yyj1777++ - if yyhl1777 { - yyb1777 = yyj1777 > l + yyj1810++ + if yyhl1810 { + yyb1810 = yyj1810 > l } else { - yyb1777 = r.CheckBreak() + yyb1810 = r.CheckBreak() } - if yyb1777 { + if yyb1810 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj1777-1, "") + z.DecStructFieldNotFound(yyj1810-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -24175,36 +24704,36 @@ func (x *NodeSelectorTerm) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1780 := z.EncBinary() - _ = yym1780 + yym1813 := z.EncBinary() + _ = yym1813 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep1781 := !z.EncBinary() - yy2arr1781 := z.EncBasicHandle().StructToArray - var yyq1781 [1]bool - _, _, _ = yysep1781, yyq1781, yy2arr1781 - const yyr1781 bool = false - var yynn1781 int - if yyr1781 || yy2arr1781 { + yysep1814 := !z.EncBinary() + yy2arr1814 := z.EncBasicHandle().StructToArray + var yyq1814 [1]bool + _, _, _ = yysep1814, yyq1814, yy2arr1814 + const yyr1814 bool = false + var yynn1814 int + if yyr1814 || yy2arr1814 { r.EncodeArrayStart(1) } else { - yynn1781 = 1 - for _, b := range yyq1781 { + yynn1814 = 1 + for _, b := range yyq1814 { if b { - yynn1781++ + yynn1814++ } } - r.EncodeMapStart(yynn1781) - yynn1781 = 0 + r.EncodeMapStart(yynn1814) + yynn1814 = 0 } - if yyr1781 || yy2arr1781 { + if yyr1814 || yy2arr1814 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.MatchExpressions == nil { r.EncodeNil() } else { - yym1783 := z.EncBinary() - _ = yym1783 + yym1816 := z.EncBinary() + _ = yym1816 if false { } else { h.encSliceNodeSelectorRequirement(([]NodeSelectorRequirement)(x.MatchExpressions), e) @@ -24217,15 +24746,15 @@ func (x *NodeSelectorTerm) CodecEncodeSelf(e *codec1978.Encoder) { if x.MatchExpressions == nil { r.EncodeNil() } else { - yym1784 := z.EncBinary() - _ = yym1784 + yym1817 := z.EncBinary() + _ = yym1817 if false { } else { h.encSliceNodeSelectorRequirement(([]NodeSelectorRequirement)(x.MatchExpressions), e) } } } - if yyr1781 || yy2arr1781 { + if yyr1814 || yy2arr1814 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -24238,25 +24767,25 @@ func (x *NodeSelectorTerm) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1785 := z.DecBinary() - _ = yym1785 + yym1818 := z.DecBinary() + _ = yym1818 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct1786 := r.ContainerType() - if yyct1786 == codecSelferValueTypeMap1234 { - yyl1786 := r.ReadMapStart() - if yyl1786 == 0 { + yyct1819 := r.ContainerType() + if yyct1819 == codecSelferValueTypeMap1234 { + yyl1819 := r.ReadMapStart() + if yyl1819 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl1786, d) + x.codecDecodeSelfFromMap(yyl1819, d) } - } else if yyct1786 == codecSelferValueTypeArray1234 { - yyl1786 := r.ReadArrayStart() - if yyl1786 == 0 { + } else if yyct1819 == codecSelferValueTypeArray1234 { + yyl1819 := r.ReadArrayStart() + if yyl1819 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl1786, d) + x.codecDecodeSelfFromArray(yyl1819, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -24268,12 +24797,12 @@ func (x *NodeSelectorTerm) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys1787Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys1787Slc - var yyhl1787 bool = l >= 0 - for yyj1787 := 0; ; yyj1787++ { - if yyhl1787 { - if yyj1787 >= l { + var yys1820Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys1820Slc + var yyhl1820 bool = l >= 0 + for yyj1820 := 0; ; yyj1820++ { + if yyhl1820 { + if yyj1820 >= l { break } } else { @@ -24282,26 +24811,26 @@ func (x *NodeSelectorTerm) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys1787Slc = r.DecodeBytes(yys1787Slc, true, true) - yys1787 := string(yys1787Slc) + yys1820Slc = r.DecodeBytes(yys1820Slc, true, true) + yys1820 := string(yys1820Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys1787 { + switch yys1820 { case "matchExpressions": if r.TryDecodeAsNil() { x.MatchExpressions = nil } else { - yyv1788 := &x.MatchExpressions - yym1789 := z.DecBinary() - _ = yym1789 + yyv1821 := &x.MatchExpressions + yym1822 := z.DecBinary() + _ = yym1822 if false { } else { - h.decSliceNodeSelectorRequirement((*[]NodeSelectorRequirement)(yyv1788), d) + h.decSliceNodeSelectorRequirement((*[]NodeSelectorRequirement)(yyv1821), d) } } default: - z.DecStructFieldNotFound(-1, yys1787) - } // end switch yys1787 - } // end for yyj1787 + z.DecStructFieldNotFound(-1, yys1820) + } // end switch yys1820 + } // end for yyj1820 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -24309,16 +24838,16 @@ func (x *NodeSelectorTerm) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj1790 int - var yyb1790 bool - var yyhl1790 bool = l >= 0 - yyj1790++ - if yyhl1790 { - yyb1790 = yyj1790 > l + var yyj1823 int + var yyb1823 bool + var yyhl1823 bool = l >= 0 + yyj1823++ + if yyhl1823 { + yyb1823 = yyj1823 > l } else { - yyb1790 = r.CheckBreak() + yyb1823 = r.CheckBreak() } - if yyb1790 { + if yyb1823 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -24326,26 +24855,26 @@ func (x *NodeSelectorTerm) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) if r.TryDecodeAsNil() { x.MatchExpressions = nil } else { - yyv1791 := &x.MatchExpressions - yym1792 := z.DecBinary() - _ = yym1792 + yyv1824 := &x.MatchExpressions + yym1825 := z.DecBinary() + _ = yym1825 if false { } else { - h.decSliceNodeSelectorRequirement((*[]NodeSelectorRequirement)(yyv1791), d) + h.decSliceNodeSelectorRequirement((*[]NodeSelectorRequirement)(yyv1824), d) } } for { - yyj1790++ - if yyhl1790 { - yyb1790 = yyj1790 > l + yyj1823++ + if yyhl1823 { + yyb1823 = yyj1823 > l } else { - yyb1790 = r.CheckBreak() + yyb1823 = r.CheckBreak() } - if yyb1790 { + if yyb1823 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj1790-1, "") + z.DecStructFieldNotFound(yyj1823-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -24357,34 +24886,34 @@ func (x *NodeSelectorRequirement) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1793 := z.EncBinary() - _ = yym1793 + yym1826 := z.EncBinary() + _ = yym1826 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - 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 { + yysep1827 := !z.EncBinary() + yy2arr1827 := z.EncBasicHandle().StructToArray + var yyq1827 [3]bool + _, _, _ = yysep1827, yyq1827, yy2arr1827 + const yyr1827 bool = false + yyq1827[2] = len(x.Values) != 0 + var yynn1827 int + if yyr1827 || yy2arr1827 { r.EncodeArrayStart(3) } else { - yynn1794 = 2 - for _, b := range yyq1794 { + yynn1827 = 2 + for _, b := range yyq1827 { if b { - yynn1794++ + yynn1827++ } } - r.EncodeMapStart(yynn1794) - yynn1794 = 0 + r.EncodeMapStart(yynn1827) + yynn1827 = 0 } - if yyr1794 || yy2arr1794 { + if yyr1827 || yy2arr1827 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym1796 := z.EncBinary() - _ = yym1796 + yym1829 := z.EncBinary() + _ = yym1829 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Key)) @@ -24393,14 +24922,14 @@ func (x *NodeSelectorRequirement) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("key")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym1797 := z.EncBinary() - _ = yym1797 + yym1830 := z.EncBinary() + _ = yym1830 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Key)) } } - if yyr1794 || yy2arr1794 { + if yyr1827 || yy2arr1827 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) x.Operator.CodecEncodeSelf(e) } else { @@ -24409,14 +24938,14 @@ func (x *NodeSelectorRequirement) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapValue1234) x.Operator.CodecEncodeSelf(e) } - if yyr1794 || yy2arr1794 { + if yyr1827 || yy2arr1827 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1794[2] { + if yyq1827[2] { if x.Values == nil { r.EncodeNil() } else { - yym1800 := z.EncBinary() - _ = yym1800 + yym1833 := z.EncBinary() + _ = yym1833 if false { } else { z.F.EncSliceStringV(x.Values, false, e) @@ -24426,15 +24955,15 @@ func (x *NodeSelectorRequirement) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq1794[2] { + if yyq1827[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("values")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.Values == nil { r.EncodeNil() } else { - yym1801 := z.EncBinary() - _ = yym1801 + yym1834 := z.EncBinary() + _ = yym1834 if false { } else { z.F.EncSliceStringV(x.Values, false, e) @@ -24442,7 +24971,7 @@ func (x *NodeSelectorRequirement) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr1794 || yy2arr1794 { + if yyr1827 || yy2arr1827 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -24455,25 +24984,25 @@ func (x *NodeSelectorRequirement) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1802 := z.DecBinary() - _ = yym1802 + yym1835 := z.DecBinary() + _ = yym1835 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct1803 := r.ContainerType() - if yyct1803 == codecSelferValueTypeMap1234 { - yyl1803 := r.ReadMapStart() - if yyl1803 == 0 { + yyct1836 := r.ContainerType() + if yyct1836 == codecSelferValueTypeMap1234 { + yyl1836 := r.ReadMapStart() + if yyl1836 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl1803, d) + x.codecDecodeSelfFromMap(yyl1836, d) } - } else if yyct1803 == codecSelferValueTypeArray1234 { - yyl1803 := r.ReadArrayStart() - if yyl1803 == 0 { + } else if yyct1836 == codecSelferValueTypeArray1234 { + yyl1836 := r.ReadArrayStart() + if yyl1836 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl1803, d) + x.codecDecodeSelfFromArray(yyl1836, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -24485,12 +25014,12 @@ func (x *NodeSelectorRequirement) codecDecodeSelfFromMap(l int, d *codec1978.Dec var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys1804Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys1804Slc - var yyhl1804 bool = l >= 0 - for yyj1804 := 0; ; yyj1804++ { - if yyhl1804 { - if yyj1804 >= l { + var yys1837Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys1837Slc + var yyhl1837 bool = l >= 0 + for yyj1837 := 0; ; yyj1837++ { + if yyhl1837 { + if yyj1837 >= l { break } } else { @@ -24499,10 +25028,10 @@ func (x *NodeSelectorRequirement) codecDecodeSelfFromMap(l int, d *codec1978.Dec } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys1804Slc = r.DecodeBytes(yys1804Slc, true, true) - yys1804 := string(yys1804Slc) + yys1837Slc = r.DecodeBytes(yys1837Slc, true, true) + yys1837 := string(yys1837Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys1804 { + switch yys1837 { case "key": if r.TryDecodeAsNil() { x.Key = "" @@ -24519,18 +25048,18 @@ func (x *NodeSelectorRequirement) codecDecodeSelfFromMap(l int, d *codec1978.Dec if r.TryDecodeAsNil() { x.Values = nil } else { - yyv1807 := &x.Values - yym1808 := z.DecBinary() - _ = yym1808 + yyv1840 := &x.Values + yym1841 := z.DecBinary() + _ = yym1841 if false { } else { - z.F.DecSliceStringX(yyv1807, false, d) + z.F.DecSliceStringX(yyv1840, false, d) } } default: - z.DecStructFieldNotFound(-1, yys1804) - } // end switch yys1804 - } // end for yyj1804 + z.DecStructFieldNotFound(-1, yys1837) + } // end switch yys1837 + } // end for yyj1837 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -24538,16 +25067,16 @@ func (x *NodeSelectorRequirement) codecDecodeSelfFromArray(l int, d *codec1978.D var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj1809 int - var yyb1809 bool - var yyhl1809 bool = l >= 0 - yyj1809++ - if yyhl1809 { - yyb1809 = yyj1809 > l + var yyj1842 int + var yyb1842 bool + var yyhl1842 bool = l >= 0 + yyj1842++ + if yyhl1842 { + yyb1842 = yyj1842 > l } else { - yyb1809 = r.CheckBreak() + yyb1842 = r.CheckBreak() } - if yyb1809 { + if yyb1842 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -24557,13 +25086,13 @@ func (x *NodeSelectorRequirement) codecDecodeSelfFromArray(l int, d *codec1978.D } else { x.Key = string(r.DecodeString()) } - yyj1809++ - if yyhl1809 { - yyb1809 = yyj1809 > l + yyj1842++ + if yyhl1842 { + yyb1842 = yyj1842 > l } else { - yyb1809 = r.CheckBreak() + yyb1842 = r.CheckBreak() } - if yyb1809 { + if yyb1842 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -24573,13 +25102,13 @@ func (x *NodeSelectorRequirement) codecDecodeSelfFromArray(l int, d *codec1978.D } else { x.Operator = NodeSelectorOperator(r.DecodeString()) } - yyj1809++ - if yyhl1809 { - yyb1809 = yyj1809 > l + yyj1842++ + if yyhl1842 { + yyb1842 = yyj1842 > l } else { - yyb1809 = r.CheckBreak() + yyb1842 = r.CheckBreak() } - if yyb1809 { + if yyb1842 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -24587,26 +25116,26 @@ func (x *NodeSelectorRequirement) codecDecodeSelfFromArray(l int, d *codec1978.D if r.TryDecodeAsNil() { x.Values = nil } else { - yyv1812 := &x.Values - yym1813 := z.DecBinary() - _ = yym1813 + yyv1845 := &x.Values + yym1846 := z.DecBinary() + _ = yym1846 if false { } else { - z.F.DecSliceStringX(yyv1812, false, d) + z.F.DecSliceStringX(yyv1845, false, d) } } for { - yyj1809++ - if yyhl1809 { - yyb1809 = yyj1809 > l + yyj1842++ + if yyhl1842 { + yyb1842 = yyj1842 > l } else { - yyb1809 = r.CheckBreak() + yyb1842 = r.CheckBreak() } - if yyb1809 { + if yyb1842 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj1809-1, "") + z.DecStructFieldNotFound(yyj1842-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -24615,8 +25144,8 @@ func (x NodeSelectorOperator) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r - yym1814 := z.EncBinary() - _ = yym1814 + yym1847 := z.EncBinary() + _ = yym1847 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { @@ -24628,8 +25157,8 @@ func (x *NodeSelectorOperator) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1815 := z.DecBinary() - _ = yym1815 + yym1848 := z.DecBinary() + _ = yym1848 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { @@ -24644,35 +25173,35 @@ func (x *Affinity) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1816 := z.EncBinary() - _ = yym1816 + yym1849 := z.EncBinary() + _ = yym1849 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[0] = x.NodeAffinity != nil - yyq1817[1] = x.PodAffinity != nil - yyq1817[2] = x.PodAntiAffinity != nil - var yynn1817 int - if yyr1817 || yy2arr1817 { + yysep1850 := !z.EncBinary() + yy2arr1850 := z.EncBasicHandle().StructToArray + var yyq1850 [3]bool + _, _, _ = yysep1850, yyq1850, yy2arr1850 + const yyr1850 bool = false + yyq1850[0] = x.NodeAffinity != nil + yyq1850[1] = x.PodAffinity != nil + yyq1850[2] = x.PodAntiAffinity != nil + var yynn1850 int + if yyr1850 || yy2arr1850 { r.EncodeArrayStart(3) } else { - yynn1817 = 0 - for _, b := range yyq1817 { + yynn1850 = 0 + for _, b := range yyq1850 { if b { - yynn1817++ + yynn1850++ } } - r.EncodeMapStart(yynn1817) - yynn1817 = 0 + r.EncodeMapStart(yynn1850) + yynn1850 = 0 } - if yyr1817 || yy2arr1817 { + if yyr1850 || yy2arr1850 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1817[0] { + if yyq1850[0] { if x.NodeAffinity == nil { r.EncodeNil() } else { @@ -24682,7 +25211,7 @@ func (x *Affinity) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq1817[0] { + if yyq1850[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("nodeAffinity")) z.EncSendContainerState(codecSelfer_containerMapValue1234) @@ -24693,9 +25222,9 @@ func (x *Affinity) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr1817 || yy2arr1817 { + if yyr1850 || yy2arr1850 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1817[1] { + if yyq1850[1] { if x.PodAffinity == nil { r.EncodeNil() } else { @@ -24705,7 +25234,7 @@ func (x *Affinity) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq1817[1] { + if yyq1850[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("podAffinity")) z.EncSendContainerState(codecSelfer_containerMapValue1234) @@ -24716,9 +25245,9 @@ func (x *Affinity) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr1817 || yy2arr1817 { + if yyr1850 || yy2arr1850 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1817[2] { + if yyq1850[2] { if x.PodAntiAffinity == nil { r.EncodeNil() } else { @@ -24728,7 +25257,7 @@ func (x *Affinity) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq1817[2] { + if yyq1850[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("podAntiAffinity")) z.EncSendContainerState(codecSelfer_containerMapValue1234) @@ -24739,7 +25268,7 @@ func (x *Affinity) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr1817 || yy2arr1817 { + if yyr1850 || yy2arr1850 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -24752,25 +25281,25 @@ func (x *Affinity) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1821 := z.DecBinary() - _ = yym1821 + yym1854 := z.DecBinary() + _ = yym1854 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct1822 := r.ContainerType() - if yyct1822 == codecSelferValueTypeMap1234 { - yyl1822 := r.ReadMapStart() - if yyl1822 == 0 { + yyct1855 := r.ContainerType() + if yyct1855 == codecSelferValueTypeMap1234 { + yyl1855 := r.ReadMapStart() + if yyl1855 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl1822, d) + x.codecDecodeSelfFromMap(yyl1855, d) } - } else if yyct1822 == codecSelferValueTypeArray1234 { - yyl1822 := r.ReadArrayStart() - if yyl1822 == 0 { + } else if yyct1855 == codecSelferValueTypeArray1234 { + yyl1855 := r.ReadArrayStart() + if yyl1855 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl1822, d) + x.codecDecodeSelfFromArray(yyl1855, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -24782,12 +25311,12 @@ func (x *Affinity) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys1823Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys1823Slc - var yyhl1823 bool = l >= 0 - for yyj1823 := 0; ; yyj1823++ { - if yyhl1823 { - if yyj1823 >= l { + var yys1856Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys1856Slc + var yyhl1856 bool = l >= 0 + for yyj1856 := 0; ; yyj1856++ { + if yyhl1856 { + if yyj1856 >= l { break } } else { @@ -24796,10 +25325,10 @@ func (x *Affinity) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys1823Slc = r.DecodeBytes(yys1823Slc, true, true) - yys1823 := string(yys1823Slc) + yys1856Slc = r.DecodeBytes(yys1856Slc, true, true) + yys1856 := string(yys1856Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys1823 { + switch yys1856 { case "nodeAffinity": if r.TryDecodeAsNil() { if x.NodeAffinity != nil { @@ -24834,9 +25363,9 @@ func (x *Affinity) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { x.PodAntiAffinity.CodecDecodeSelf(d) } default: - z.DecStructFieldNotFound(-1, yys1823) - } // end switch yys1823 - } // end for yyj1823 + z.DecStructFieldNotFound(-1, yys1856) + } // end switch yys1856 + } // end for yyj1856 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -24844,16 +25373,16 @@ func (x *Affinity) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj1827 int - var yyb1827 bool - var yyhl1827 bool = l >= 0 - yyj1827++ - if yyhl1827 { - yyb1827 = yyj1827 > l + var yyj1860 int + var yyb1860 bool + var yyhl1860 bool = l >= 0 + yyj1860++ + if yyhl1860 { + yyb1860 = yyj1860 > l } else { - yyb1827 = r.CheckBreak() + yyb1860 = r.CheckBreak() } - if yyb1827 { + if yyb1860 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -24868,13 +25397,13 @@ func (x *Affinity) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } x.NodeAffinity.CodecDecodeSelf(d) } - yyj1827++ - if yyhl1827 { - yyb1827 = yyj1827 > l + yyj1860++ + if yyhl1860 { + yyb1860 = yyj1860 > l } else { - yyb1827 = r.CheckBreak() + yyb1860 = r.CheckBreak() } - if yyb1827 { + if yyb1860 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -24889,13 +25418,13 @@ func (x *Affinity) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } x.PodAffinity.CodecDecodeSelf(d) } - yyj1827++ - if yyhl1827 { - yyb1827 = yyj1827 > l + yyj1860++ + if yyhl1860 { + yyb1860 = yyj1860 > l } else { - yyb1827 = r.CheckBreak() + yyb1860 = r.CheckBreak() } - if yyb1827 { + if yyb1860 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -24911,17 +25440,17 @@ func (x *Affinity) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { x.PodAntiAffinity.CodecDecodeSelf(d) } for { - yyj1827++ - if yyhl1827 { - yyb1827 = yyj1827 > l + yyj1860++ + if yyhl1860 { + yyb1860 = yyj1860 > l } else { - yyb1827 = r.CheckBreak() + yyb1860 = r.CheckBreak() } - if yyb1827 { + if yyb1860 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj1827-1, "") + z.DecStructFieldNotFound(yyj1860-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -24933,39 +25462,39 @@ func (x *PodAffinity) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1831 := z.EncBinary() - _ = yym1831 + yym1864 := z.EncBinary() + _ = yym1864 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - 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 { + yysep1865 := !z.EncBinary() + yy2arr1865 := z.EncBasicHandle().StructToArray + var yyq1865 [2]bool + _, _, _ = yysep1865, yyq1865, yy2arr1865 + const yyr1865 bool = false + yyq1865[0] = len(x.RequiredDuringSchedulingIgnoredDuringExecution) != 0 + yyq1865[1] = len(x.PreferredDuringSchedulingIgnoredDuringExecution) != 0 + var yynn1865 int + if yyr1865 || yy2arr1865 { r.EncodeArrayStart(2) } else { - yynn1832 = 0 - for _, b := range yyq1832 { + yynn1865 = 0 + for _, b := range yyq1865 { if b { - yynn1832++ + yynn1865++ } } - r.EncodeMapStart(yynn1832) - yynn1832 = 0 + r.EncodeMapStart(yynn1865) + yynn1865 = 0 } - if yyr1832 || yy2arr1832 { + if yyr1865 || yy2arr1865 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1832[0] { + if yyq1865[0] { if x.RequiredDuringSchedulingIgnoredDuringExecution == nil { r.EncodeNil() } else { - yym1834 := z.EncBinary() - _ = yym1834 + yym1867 := z.EncBinary() + _ = yym1867 if false { } else { h.encSlicePodAffinityTerm(([]PodAffinityTerm)(x.RequiredDuringSchedulingIgnoredDuringExecution), e) @@ -24975,15 +25504,15 @@ func (x *PodAffinity) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq1832[0] { + if yyq1865[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("requiredDuringSchedulingIgnoredDuringExecution")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.RequiredDuringSchedulingIgnoredDuringExecution == nil { r.EncodeNil() } else { - yym1835 := z.EncBinary() - _ = yym1835 + yym1868 := z.EncBinary() + _ = yym1868 if false { } else { h.encSlicePodAffinityTerm(([]PodAffinityTerm)(x.RequiredDuringSchedulingIgnoredDuringExecution), e) @@ -24991,14 +25520,14 @@ func (x *PodAffinity) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr1832 || yy2arr1832 { + if yyr1865 || yy2arr1865 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1832[1] { + if yyq1865[1] { if x.PreferredDuringSchedulingIgnoredDuringExecution == nil { r.EncodeNil() } else { - yym1837 := z.EncBinary() - _ = yym1837 + yym1870 := z.EncBinary() + _ = yym1870 if false { } else { h.encSliceWeightedPodAffinityTerm(([]WeightedPodAffinityTerm)(x.PreferredDuringSchedulingIgnoredDuringExecution), e) @@ -25008,15 +25537,15 @@ func (x *PodAffinity) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq1832[1] { + if yyq1865[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("preferredDuringSchedulingIgnoredDuringExecution")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.PreferredDuringSchedulingIgnoredDuringExecution == nil { r.EncodeNil() } else { - yym1838 := z.EncBinary() - _ = yym1838 + yym1871 := z.EncBinary() + _ = yym1871 if false { } else { h.encSliceWeightedPodAffinityTerm(([]WeightedPodAffinityTerm)(x.PreferredDuringSchedulingIgnoredDuringExecution), e) @@ -25024,7 +25553,7 @@ func (x *PodAffinity) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr1832 || yy2arr1832 { + if yyr1865 || yy2arr1865 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -25037,25 +25566,25 @@ func (x *PodAffinity) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1839 := z.DecBinary() - _ = yym1839 + yym1872 := z.DecBinary() + _ = yym1872 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct1840 := r.ContainerType() - if yyct1840 == codecSelferValueTypeMap1234 { - yyl1840 := r.ReadMapStart() - if yyl1840 == 0 { + yyct1873 := r.ContainerType() + if yyct1873 == codecSelferValueTypeMap1234 { + yyl1873 := r.ReadMapStart() + if yyl1873 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl1840, d) + x.codecDecodeSelfFromMap(yyl1873, d) } - } else if yyct1840 == codecSelferValueTypeArray1234 { - yyl1840 := r.ReadArrayStart() - if yyl1840 == 0 { + } else if yyct1873 == codecSelferValueTypeArray1234 { + yyl1873 := r.ReadArrayStart() + if yyl1873 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl1840, d) + x.codecDecodeSelfFromArray(yyl1873, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -25067,12 +25596,12 @@ func (x *PodAffinity) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys1841Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys1841Slc - var yyhl1841 bool = l >= 0 - for yyj1841 := 0; ; yyj1841++ { - if yyhl1841 { - if yyj1841 >= l { + var yys1874Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys1874Slc + var yyhl1874 bool = l >= 0 + for yyj1874 := 0; ; yyj1874++ { + if yyhl1874 { + if yyj1874 >= l { break } } else { @@ -25081,38 +25610,38 @@ func (x *PodAffinity) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys1841Slc = r.DecodeBytes(yys1841Slc, true, true) - yys1841 := string(yys1841Slc) + yys1874Slc = r.DecodeBytes(yys1874Slc, true, true) + yys1874 := string(yys1874Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys1841 { + switch yys1874 { case "requiredDuringSchedulingIgnoredDuringExecution": if r.TryDecodeAsNil() { x.RequiredDuringSchedulingIgnoredDuringExecution = nil } else { - yyv1842 := &x.RequiredDuringSchedulingIgnoredDuringExecution - yym1843 := z.DecBinary() - _ = yym1843 + yyv1875 := &x.RequiredDuringSchedulingIgnoredDuringExecution + yym1876 := z.DecBinary() + _ = yym1876 if false { } else { - h.decSlicePodAffinityTerm((*[]PodAffinityTerm)(yyv1842), d) + h.decSlicePodAffinityTerm((*[]PodAffinityTerm)(yyv1875), d) } } case "preferredDuringSchedulingIgnoredDuringExecution": if r.TryDecodeAsNil() { x.PreferredDuringSchedulingIgnoredDuringExecution = nil } else { - yyv1844 := &x.PreferredDuringSchedulingIgnoredDuringExecution - yym1845 := z.DecBinary() - _ = yym1845 + yyv1877 := &x.PreferredDuringSchedulingIgnoredDuringExecution + yym1878 := z.DecBinary() + _ = yym1878 if false { } else { - h.decSliceWeightedPodAffinityTerm((*[]WeightedPodAffinityTerm)(yyv1844), d) + h.decSliceWeightedPodAffinityTerm((*[]WeightedPodAffinityTerm)(yyv1877), d) } } default: - z.DecStructFieldNotFound(-1, yys1841) - } // end switch yys1841 - } // end for yyj1841 + z.DecStructFieldNotFound(-1, yys1874) + } // end switch yys1874 + } // end for yyj1874 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -25120,16 +25649,16 @@ func (x *PodAffinity) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj1846 int - var yyb1846 bool - var yyhl1846 bool = l >= 0 - yyj1846++ - if yyhl1846 { - yyb1846 = yyj1846 > l + var yyj1879 int + var yyb1879 bool + var yyhl1879 bool = l >= 0 + yyj1879++ + if yyhl1879 { + yyb1879 = yyj1879 > l } else { - yyb1846 = r.CheckBreak() + yyb1879 = r.CheckBreak() } - if yyb1846 { + if yyb1879 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -25137,21 +25666,21 @@ func (x *PodAffinity) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.RequiredDuringSchedulingIgnoredDuringExecution = nil } else { - yyv1847 := &x.RequiredDuringSchedulingIgnoredDuringExecution - yym1848 := z.DecBinary() - _ = yym1848 + yyv1880 := &x.RequiredDuringSchedulingIgnoredDuringExecution + yym1881 := z.DecBinary() + _ = yym1881 if false { } else { - h.decSlicePodAffinityTerm((*[]PodAffinityTerm)(yyv1847), d) + h.decSlicePodAffinityTerm((*[]PodAffinityTerm)(yyv1880), d) } } - yyj1846++ - if yyhl1846 { - yyb1846 = yyj1846 > l + yyj1879++ + if yyhl1879 { + yyb1879 = yyj1879 > l } else { - yyb1846 = r.CheckBreak() + yyb1879 = r.CheckBreak() } - if yyb1846 { + if yyb1879 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -25159,26 +25688,26 @@ func (x *PodAffinity) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.PreferredDuringSchedulingIgnoredDuringExecution = nil } else { - yyv1849 := &x.PreferredDuringSchedulingIgnoredDuringExecution - yym1850 := z.DecBinary() - _ = yym1850 + yyv1882 := &x.PreferredDuringSchedulingIgnoredDuringExecution + yym1883 := z.DecBinary() + _ = yym1883 if false { } else { - h.decSliceWeightedPodAffinityTerm((*[]WeightedPodAffinityTerm)(yyv1849), d) + h.decSliceWeightedPodAffinityTerm((*[]WeightedPodAffinityTerm)(yyv1882), d) } } for { - yyj1846++ - if yyhl1846 { - yyb1846 = yyj1846 > l + yyj1879++ + if yyhl1879 { + yyb1879 = yyj1879 > l } else { - yyb1846 = r.CheckBreak() + yyb1879 = r.CheckBreak() } - if yyb1846 { + if yyb1879 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj1846-1, "") + z.DecStructFieldNotFound(yyj1879-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -25190,39 +25719,39 @@ func (x *PodAntiAffinity) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1851 := z.EncBinary() - _ = yym1851 + yym1884 := z.EncBinary() + _ = yym1884 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - 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 { + yysep1885 := !z.EncBinary() + yy2arr1885 := z.EncBasicHandle().StructToArray + var yyq1885 [2]bool + _, _, _ = yysep1885, yyq1885, yy2arr1885 + const yyr1885 bool = false + yyq1885[0] = len(x.RequiredDuringSchedulingIgnoredDuringExecution) != 0 + yyq1885[1] = len(x.PreferredDuringSchedulingIgnoredDuringExecution) != 0 + var yynn1885 int + if yyr1885 || yy2arr1885 { r.EncodeArrayStart(2) } else { - yynn1852 = 0 - for _, b := range yyq1852 { + yynn1885 = 0 + for _, b := range yyq1885 { if b { - yynn1852++ + yynn1885++ } } - r.EncodeMapStart(yynn1852) - yynn1852 = 0 + r.EncodeMapStart(yynn1885) + yynn1885 = 0 } - if yyr1852 || yy2arr1852 { + if yyr1885 || yy2arr1885 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1852[0] { + if yyq1885[0] { if x.RequiredDuringSchedulingIgnoredDuringExecution == nil { r.EncodeNil() } else { - yym1854 := z.EncBinary() - _ = yym1854 + yym1887 := z.EncBinary() + _ = yym1887 if false { } else { h.encSlicePodAffinityTerm(([]PodAffinityTerm)(x.RequiredDuringSchedulingIgnoredDuringExecution), e) @@ -25232,15 +25761,15 @@ func (x *PodAntiAffinity) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq1852[0] { + if yyq1885[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("requiredDuringSchedulingIgnoredDuringExecution")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.RequiredDuringSchedulingIgnoredDuringExecution == nil { r.EncodeNil() } else { - yym1855 := z.EncBinary() - _ = yym1855 + yym1888 := z.EncBinary() + _ = yym1888 if false { } else { h.encSlicePodAffinityTerm(([]PodAffinityTerm)(x.RequiredDuringSchedulingIgnoredDuringExecution), e) @@ -25248,14 +25777,14 @@ func (x *PodAntiAffinity) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr1852 || yy2arr1852 { + if yyr1885 || yy2arr1885 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1852[1] { + if yyq1885[1] { if x.PreferredDuringSchedulingIgnoredDuringExecution == nil { r.EncodeNil() } else { - yym1857 := z.EncBinary() - _ = yym1857 + yym1890 := z.EncBinary() + _ = yym1890 if false { } else { h.encSliceWeightedPodAffinityTerm(([]WeightedPodAffinityTerm)(x.PreferredDuringSchedulingIgnoredDuringExecution), e) @@ -25265,15 +25794,15 @@ func (x *PodAntiAffinity) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq1852[1] { + if yyq1885[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("preferredDuringSchedulingIgnoredDuringExecution")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.PreferredDuringSchedulingIgnoredDuringExecution == nil { r.EncodeNil() } else { - yym1858 := z.EncBinary() - _ = yym1858 + yym1891 := z.EncBinary() + _ = yym1891 if false { } else { h.encSliceWeightedPodAffinityTerm(([]WeightedPodAffinityTerm)(x.PreferredDuringSchedulingIgnoredDuringExecution), e) @@ -25281,7 +25810,7 @@ func (x *PodAntiAffinity) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr1852 || yy2arr1852 { + if yyr1885 || yy2arr1885 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -25294,25 +25823,25 @@ func (x *PodAntiAffinity) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1859 := z.DecBinary() - _ = yym1859 + yym1892 := z.DecBinary() + _ = yym1892 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct1860 := r.ContainerType() - if yyct1860 == codecSelferValueTypeMap1234 { - yyl1860 := r.ReadMapStart() - if yyl1860 == 0 { + yyct1893 := r.ContainerType() + if yyct1893 == codecSelferValueTypeMap1234 { + yyl1893 := r.ReadMapStart() + if yyl1893 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl1860, d) + x.codecDecodeSelfFromMap(yyl1893, d) } - } else if yyct1860 == codecSelferValueTypeArray1234 { - yyl1860 := r.ReadArrayStart() - if yyl1860 == 0 { + } else if yyct1893 == codecSelferValueTypeArray1234 { + yyl1893 := r.ReadArrayStart() + if yyl1893 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl1860, d) + x.codecDecodeSelfFromArray(yyl1893, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -25324,12 +25853,12 @@ func (x *PodAntiAffinity) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys1861Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys1861Slc - var yyhl1861 bool = l >= 0 - for yyj1861 := 0; ; yyj1861++ { - if yyhl1861 { - if yyj1861 >= l { + var yys1894Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys1894Slc + var yyhl1894 bool = l >= 0 + for yyj1894 := 0; ; yyj1894++ { + if yyhl1894 { + if yyj1894 >= l { break } } else { @@ -25338,38 +25867,38 @@ func (x *PodAntiAffinity) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys1861Slc = r.DecodeBytes(yys1861Slc, true, true) - yys1861 := string(yys1861Slc) + yys1894Slc = r.DecodeBytes(yys1894Slc, true, true) + yys1894 := string(yys1894Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys1861 { + switch yys1894 { case "requiredDuringSchedulingIgnoredDuringExecution": if r.TryDecodeAsNil() { x.RequiredDuringSchedulingIgnoredDuringExecution = nil } else { - yyv1862 := &x.RequiredDuringSchedulingIgnoredDuringExecution - yym1863 := z.DecBinary() - _ = yym1863 + yyv1895 := &x.RequiredDuringSchedulingIgnoredDuringExecution + yym1896 := z.DecBinary() + _ = yym1896 if false { } else { - h.decSlicePodAffinityTerm((*[]PodAffinityTerm)(yyv1862), d) + h.decSlicePodAffinityTerm((*[]PodAffinityTerm)(yyv1895), d) } } case "preferredDuringSchedulingIgnoredDuringExecution": if r.TryDecodeAsNil() { x.PreferredDuringSchedulingIgnoredDuringExecution = nil } else { - yyv1864 := &x.PreferredDuringSchedulingIgnoredDuringExecution - yym1865 := z.DecBinary() - _ = yym1865 + yyv1897 := &x.PreferredDuringSchedulingIgnoredDuringExecution + yym1898 := z.DecBinary() + _ = yym1898 if false { } else { - h.decSliceWeightedPodAffinityTerm((*[]WeightedPodAffinityTerm)(yyv1864), d) + h.decSliceWeightedPodAffinityTerm((*[]WeightedPodAffinityTerm)(yyv1897), d) } } default: - z.DecStructFieldNotFound(-1, yys1861) - } // end switch yys1861 - } // end for yyj1861 + z.DecStructFieldNotFound(-1, yys1894) + } // end switch yys1894 + } // end for yyj1894 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -25377,16 +25906,16 @@ func (x *PodAntiAffinity) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj1866 int - var yyb1866 bool - var yyhl1866 bool = l >= 0 - yyj1866++ - if yyhl1866 { - yyb1866 = yyj1866 > l + var yyj1899 int + var yyb1899 bool + var yyhl1899 bool = l >= 0 + yyj1899++ + if yyhl1899 { + yyb1899 = yyj1899 > l } else { - yyb1866 = r.CheckBreak() + yyb1899 = r.CheckBreak() } - if yyb1866 { + if yyb1899 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -25394,21 +25923,21 @@ func (x *PodAntiAffinity) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) if r.TryDecodeAsNil() { x.RequiredDuringSchedulingIgnoredDuringExecution = nil } else { - yyv1867 := &x.RequiredDuringSchedulingIgnoredDuringExecution - yym1868 := z.DecBinary() - _ = yym1868 + yyv1900 := &x.RequiredDuringSchedulingIgnoredDuringExecution + yym1901 := z.DecBinary() + _ = yym1901 if false { } else { - h.decSlicePodAffinityTerm((*[]PodAffinityTerm)(yyv1867), d) + h.decSlicePodAffinityTerm((*[]PodAffinityTerm)(yyv1900), d) } } - yyj1866++ - if yyhl1866 { - yyb1866 = yyj1866 > l + yyj1899++ + if yyhl1899 { + yyb1899 = yyj1899 > l } else { - yyb1866 = r.CheckBreak() + yyb1899 = r.CheckBreak() } - if yyb1866 { + if yyb1899 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -25416,26 +25945,26 @@ func (x *PodAntiAffinity) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) if r.TryDecodeAsNil() { x.PreferredDuringSchedulingIgnoredDuringExecution = nil } else { - yyv1869 := &x.PreferredDuringSchedulingIgnoredDuringExecution - yym1870 := z.DecBinary() - _ = yym1870 + yyv1902 := &x.PreferredDuringSchedulingIgnoredDuringExecution + yym1903 := z.DecBinary() + _ = yym1903 if false { } else { - h.decSliceWeightedPodAffinityTerm((*[]WeightedPodAffinityTerm)(yyv1869), d) + h.decSliceWeightedPodAffinityTerm((*[]WeightedPodAffinityTerm)(yyv1902), d) } } for { - yyj1866++ - if yyhl1866 { - yyb1866 = yyj1866 > l + yyj1899++ + if yyhl1899 { + yyb1899 = yyj1899 > l } else { - yyb1866 = r.CheckBreak() + yyb1899 = r.CheckBreak() } - if yyb1866 { + if yyb1899 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj1866-1, "") + z.DecStructFieldNotFound(yyj1899-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -25447,33 +25976,33 @@ func (x *WeightedPodAffinityTerm) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1871 := z.EncBinary() - _ = yym1871 + yym1904 := z.EncBinary() + _ = yym1904 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep1872 := !z.EncBinary() - yy2arr1872 := z.EncBasicHandle().StructToArray - var yyq1872 [2]bool - _, _, _ = yysep1872, yyq1872, yy2arr1872 - const yyr1872 bool = false - var yynn1872 int - if yyr1872 || yy2arr1872 { + yysep1905 := !z.EncBinary() + yy2arr1905 := z.EncBasicHandle().StructToArray + var yyq1905 [2]bool + _, _, _ = yysep1905, yyq1905, yy2arr1905 + const yyr1905 bool = false + var yynn1905 int + if yyr1905 || yy2arr1905 { r.EncodeArrayStart(2) } else { - yynn1872 = 2 - for _, b := range yyq1872 { + yynn1905 = 2 + for _, b := range yyq1905 { if b { - yynn1872++ + yynn1905++ } } - r.EncodeMapStart(yynn1872) - yynn1872 = 0 + r.EncodeMapStart(yynn1905) + yynn1905 = 0 } - if yyr1872 || yy2arr1872 { + if yyr1905 || yy2arr1905 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym1874 := z.EncBinary() - _ = yym1874 + yym1907 := z.EncBinary() + _ = yym1907 if false { } else { r.EncodeInt(int64(x.Weight)) @@ -25482,25 +26011,25 @@ func (x *WeightedPodAffinityTerm) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("weight")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym1875 := z.EncBinary() - _ = yym1875 + yym1908 := z.EncBinary() + _ = yym1908 if false { } else { r.EncodeInt(int64(x.Weight)) } } - if yyr1872 || yy2arr1872 { + if yyr1905 || yy2arr1905 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy1877 := &x.PodAffinityTerm - yy1877.CodecEncodeSelf(e) + yy1910 := &x.PodAffinityTerm + yy1910.CodecEncodeSelf(e) } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("podAffinityTerm")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy1878 := &x.PodAffinityTerm - yy1878.CodecEncodeSelf(e) + yy1911 := &x.PodAffinityTerm + yy1911.CodecEncodeSelf(e) } - if yyr1872 || yy2arr1872 { + if yyr1905 || yy2arr1905 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -25513,25 +26042,25 @@ func (x *WeightedPodAffinityTerm) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1879 := z.DecBinary() - _ = yym1879 + yym1912 := z.DecBinary() + _ = yym1912 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct1880 := r.ContainerType() - if yyct1880 == codecSelferValueTypeMap1234 { - yyl1880 := r.ReadMapStart() - if yyl1880 == 0 { + yyct1913 := r.ContainerType() + if yyct1913 == codecSelferValueTypeMap1234 { + yyl1913 := r.ReadMapStart() + if yyl1913 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl1880, d) + x.codecDecodeSelfFromMap(yyl1913, d) } - } else if yyct1880 == codecSelferValueTypeArray1234 { - yyl1880 := r.ReadArrayStart() - if yyl1880 == 0 { + } else if yyct1913 == codecSelferValueTypeArray1234 { + yyl1913 := r.ReadArrayStart() + if yyl1913 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl1880, d) + x.codecDecodeSelfFromArray(yyl1913, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -25543,12 +26072,12 @@ func (x *WeightedPodAffinityTerm) codecDecodeSelfFromMap(l int, d *codec1978.Dec var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys1881Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys1881Slc - var yyhl1881 bool = l >= 0 - for yyj1881 := 0; ; yyj1881++ { - if yyhl1881 { - if yyj1881 >= l { + 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 { @@ -25557,10 +26086,10 @@ func (x *WeightedPodAffinityTerm) codecDecodeSelfFromMap(l int, d *codec1978.Dec } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys1881Slc = r.DecodeBytes(yys1881Slc, true, true) - yys1881 := string(yys1881Slc) + yys1914Slc = r.DecodeBytes(yys1914Slc, true, true) + yys1914 := string(yys1914Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys1881 { + switch yys1914 { case "weight": if r.TryDecodeAsNil() { x.Weight = 0 @@ -25571,13 +26100,13 @@ func (x *WeightedPodAffinityTerm) codecDecodeSelfFromMap(l int, d *codec1978.Dec if r.TryDecodeAsNil() { x.PodAffinityTerm = PodAffinityTerm{} } else { - yyv1883 := &x.PodAffinityTerm - yyv1883.CodecDecodeSelf(d) + yyv1916 := &x.PodAffinityTerm + yyv1916.CodecDecodeSelf(d) } default: - z.DecStructFieldNotFound(-1, yys1881) - } // end switch yys1881 - } // end for yyj1881 + z.DecStructFieldNotFound(-1, yys1914) + } // end switch yys1914 + } // end for yyj1914 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -25585,16 +26114,16 @@ func (x *WeightedPodAffinityTerm) codecDecodeSelfFromArray(l int, d *codec1978.D var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj1884 int - var yyb1884 bool - var yyhl1884 bool = l >= 0 - yyj1884++ - if yyhl1884 { - yyb1884 = yyj1884 > l + var yyj1917 int + var yyb1917 bool + var yyhl1917 bool = l >= 0 + yyj1917++ + if yyhl1917 { + yyb1917 = yyj1917 > l } else { - yyb1884 = r.CheckBreak() + yyb1917 = r.CheckBreak() } - if yyb1884 { + if yyb1917 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -25604,13 +26133,13 @@ func (x *WeightedPodAffinityTerm) codecDecodeSelfFromArray(l int, d *codec1978.D } else { x.Weight = int32(r.DecodeInt(32)) } - yyj1884++ - if yyhl1884 { - yyb1884 = yyj1884 > l + yyj1917++ + if yyhl1917 { + yyb1917 = yyj1917 > l } else { - yyb1884 = r.CheckBreak() + yyb1917 = r.CheckBreak() } - if yyb1884 { + if yyb1917 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -25618,21 +26147,21 @@ func (x *WeightedPodAffinityTerm) codecDecodeSelfFromArray(l int, d *codec1978.D if r.TryDecodeAsNil() { x.PodAffinityTerm = PodAffinityTerm{} } else { - yyv1886 := &x.PodAffinityTerm - yyv1886.CodecDecodeSelf(d) + yyv1919 := &x.PodAffinityTerm + yyv1919.CodecDecodeSelf(d) } for { - yyj1884++ - if yyhl1884 { - yyb1884 = yyj1884 > l + yyj1917++ + if yyhl1917 { + yyb1917 = yyj1917 > l } else { - yyb1884 = r.CheckBreak() + yyb1917 = r.CheckBreak() } - if yyb1884 { + if yyb1917 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj1884-1, "") + z.DecStructFieldNotFound(yyj1917-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -25644,39 +26173,39 @@ func (x *PodAffinityTerm) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1887 := z.EncBinary() - _ = yym1887 + yym1920 := z.EncBinary() + _ = yym1920 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - 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 { + yysep1921 := !z.EncBinary() + yy2arr1921 := z.EncBasicHandle().StructToArray + var yyq1921 [3]bool + _, _, _ = yysep1921, yyq1921, yy2arr1921 + const yyr1921 bool = false + yyq1921[0] = x.LabelSelector != nil + yyq1921[2] = x.TopologyKey != "" + var yynn1921 int + if yyr1921 || yy2arr1921 { r.EncodeArrayStart(3) } else { - yynn1888 = 1 - for _, b := range yyq1888 { + yynn1921 = 1 + for _, b := range yyq1921 { if b { - yynn1888++ + yynn1921++ } } - r.EncodeMapStart(yynn1888) - yynn1888 = 0 + r.EncodeMapStart(yynn1921) + yynn1921 = 0 } - if yyr1888 || yy2arr1888 { + if yyr1921 || yy2arr1921 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1888[0] { + if yyq1921[0] { if x.LabelSelector == nil { r.EncodeNil() } else { - yym1890 := z.EncBinary() - _ = yym1890 + yym1923 := z.EncBinary() + _ = yym1923 if false { } else if z.HasExtensions() && z.EncExt(x.LabelSelector) { } else { @@ -25687,15 +26216,15 @@ func (x *PodAffinityTerm) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq1888[0] { + if yyq1921[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("labelSelector")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.LabelSelector == nil { r.EncodeNil() } else { - yym1891 := z.EncBinary() - _ = yym1891 + yym1924 := z.EncBinary() + _ = yym1924 if false { } else if z.HasExtensions() && z.EncExt(x.LabelSelector) { } else { @@ -25704,13 +26233,13 @@ func (x *PodAffinityTerm) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr1888 || yy2arr1888 { + if yyr1921 || yy2arr1921 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.Namespaces == nil { r.EncodeNil() } else { - yym1893 := z.EncBinary() - _ = yym1893 + yym1926 := z.EncBinary() + _ = yym1926 if false { } else { z.F.EncSliceStringV(x.Namespaces, false, e) @@ -25723,19 +26252,19 @@ func (x *PodAffinityTerm) CodecEncodeSelf(e *codec1978.Encoder) { if x.Namespaces == nil { r.EncodeNil() } else { - yym1894 := z.EncBinary() - _ = yym1894 + yym1927 := z.EncBinary() + _ = yym1927 if false { } else { z.F.EncSliceStringV(x.Namespaces, false, e) } } } - if yyr1888 || yy2arr1888 { + if yyr1921 || yy2arr1921 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1888[2] { - yym1896 := z.EncBinary() - _ = yym1896 + if yyq1921[2] { + yym1929 := z.EncBinary() + _ = yym1929 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.TopologyKey)) @@ -25744,19 +26273,19 @@ func (x *PodAffinityTerm) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq1888[2] { + if yyq1921[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("topologyKey")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym1897 := z.EncBinary() - _ = yym1897 + yym1930 := z.EncBinary() + _ = yym1930 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.TopologyKey)) } } } - if yyr1888 || yy2arr1888 { + if yyr1921 || yy2arr1921 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -25769,25 +26298,25 @@ func (x *PodAffinityTerm) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1898 := z.DecBinary() - _ = yym1898 + yym1931 := z.DecBinary() + _ = yym1931 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct1899 := r.ContainerType() - if yyct1899 == codecSelferValueTypeMap1234 { - yyl1899 := r.ReadMapStart() - if yyl1899 == 0 { + yyct1932 := r.ContainerType() + if yyct1932 == codecSelferValueTypeMap1234 { + yyl1932 := r.ReadMapStart() + if yyl1932 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl1899, d) + x.codecDecodeSelfFromMap(yyl1932, d) } - } else if yyct1899 == codecSelferValueTypeArray1234 { - yyl1899 := r.ReadArrayStart() - if yyl1899 == 0 { + } else if yyct1932 == codecSelferValueTypeArray1234 { + yyl1932 := r.ReadArrayStart() + if yyl1932 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl1899, d) + x.codecDecodeSelfFromArray(yyl1932, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -25799,12 +26328,12 @@ func (x *PodAffinityTerm) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys1900Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys1900Slc - var yyhl1900 bool = l >= 0 - for yyj1900 := 0; ; yyj1900++ { - if yyhl1900 { - if yyj1900 >= l { + var yys1933Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys1933Slc + var yyhl1933 bool = l >= 0 + for yyj1933 := 0; ; yyj1933++ { + if yyhl1933 { + if yyj1933 >= l { break } } else { @@ -25813,10 +26342,10 @@ func (x *PodAffinityTerm) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys1900Slc = r.DecodeBytes(yys1900Slc, true, true) - yys1900 := string(yys1900Slc) + yys1933Slc = r.DecodeBytes(yys1933Slc, true, true) + yys1933 := string(yys1933Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys1900 { + switch yys1933 { case "labelSelector": if r.TryDecodeAsNil() { if x.LabelSelector != nil { @@ -25826,8 +26355,8 @@ func (x *PodAffinityTerm) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { if x.LabelSelector == nil { x.LabelSelector = new(pkg2_unversioned.LabelSelector) } - yym1902 := z.DecBinary() - _ = yym1902 + yym1935 := z.DecBinary() + _ = yym1935 if false { } else if z.HasExtensions() && z.DecExt(x.LabelSelector) { } else { @@ -25838,12 +26367,12 @@ func (x *PodAffinityTerm) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.Namespaces = nil } else { - yyv1903 := &x.Namespaces - yym1904 := z.DecBinary() - _ = yym1904 + yyv1936 := &x.Namespaces + yym1937 := z.DecBinary() + _ = yym1937 if false { } else { - z.F.DecSliceStringX(yyv1903, false, d) + z.F.DecSliceStringX(yyv1936, false, d) } } case "topologyKey": @@ -25853,9 +26382,9 @@ func (x *PodAffinityTerm) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { x.TopologyKey = string(r.DecodeString()) } default: - z.DecStructFieldNotFound(-1, yys1900) - } // end switch yys1900 - } // end for yyj1900 + z.DecStructFieldNotFound(-1, yys1933) + } // end switch yys1933 + } // end for yyj1933 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -25863,16 +26392,16 @@ func (x *PodAffinityTerm) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj1906 int - var yyb1906 bool - var yyhl1906 bool = l >= 0 - yyj1906++ - if yyhl1906 { - yyb1906 = yyj1906 > l + var yyj1939 int + var yyb1939 bool + var yyhl1939 bool = l >= 0 + yyj1939++ + if yyhl1939 { + yyb1939 = yyj1939 > l } else { - yyb1906 = r.CheckBreak() + yyb1939 = r.CheckBreak() } - if yyb1906 { + if yyb1939 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -25885,21 +26414,21 @@ func (x *PodAffinityTerm) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) if x.LabelSelector == nil { x.LabelSelector = new(pkg2_unversioned.LabelSelector) } - yym1908 := z.DecBinary() - _ = yym1908 + yym1941 := z.DecBinary() + _ = yym1941 if false { } else if z.HasExtensions() && z.DecExt(x.LabelSelector) { } else { z.DecFallback(x.LabelSelector, false) } } - yyj1906++ - if yyhl1906 { - yyb1906 = yyj1906 > l + yyj1939++ + if yyhl1939 { + yyb1939 = yyj1939 > l } else { - yyb1906 = r.CheckBreak() + yyb1939 = r.CheckBreak() } - if yyb1906 { + if yyb1939 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -25907,21 +26436,21 @@ func (x *PodAffinityTerm) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) if r.TryDecodeAsNil() { x.Namespaces = nil } else { - yyv1909 := &x.Namespaces - yym1910 := z.DecBinary() - _ = yym1910 + yyv1942 := &x.Namespaces + yym1943 := z.DecBinary() + _ = yym1943 if false { } else { - z.F.DecSliceStringX(yyv1909, false, d) + z.F.DecSliceStringX(yyv1942, false, d) } } - yyj1906++ - if yyhl1906 { - yyb1906 = yyj1906 > l + yyj1939++ + if yyhl1939 { + yyb1939 = yyj1939 > l } else { - yyb1906 = r.CheckBreak() + yyb1939 = r.CheckBreak() } - if yyb1906 { + if yyb1939 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -25932,17 +26461,17 @@ func (x *PodAffinityTerm) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) x.TopologyKey = string(r.DecodeString()) } for { - yyj1906++ - if yyhl1906 { - yyb1906 = yyj1906 > l + yyj1939++ + if yyhl1939 { + yyb1939 = yyj1939 > l } else { - yyb1906 = r.CheckBreak() + yyb1939 = r.CheckBreak() } - if yyb1906 { + if yyb1939 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj1906-1, "") + z.DecStructFieldNotFound(yyj1939-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -25954,34 +26483,34 @@ func (x *NodeAffinity) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1912 := z.EncBinary() - _ = yym1912 + yym1945 := z.EncBinary() + _ = yym1945 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - 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 { + yysep1946 := !z.EncBinary() + yy2arr1946 := z.EncBasicHandle().StructToArray + var yyq1946 [2]bool + _, _, _ = yysep1946, yyq1946, yy2arr1946 + const yyr1946 bool = false + yyq1946[0] = x.RequiredDuringSchedulingIgnoredDuringExecution != nil + yyq1946[1] = len(x.PreferredDuringSchedulingIgnoredDuringExecution) != 0 + var yynn1946 int + if yyr1946 || yy2arr1946 { r.EncodeArrayStart(2) } else { - yynn1913 = 0 - for _, b := range yyq1913 { + yynn1946 = 0 + for _, b := range yyq1946 { if b { - yynn1913++ + yynn1946++ } } - r.EncodeMapStart(yynn1913) - yynn1913 = 0 + r.EncodeMapStart(yynn1946) + yynn1946 = 0 } - if yyr1913 || yy2arr1913 { + if yyr1946 || yy2arr1946 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1913[0] { + if yyq1946[0] { if x.RequiredDuringSchedulingIgnoredDuringExecution == nil { r.EncodeNil() } else { @@ -25991,7 +26520,7 @@ func (x *NodeAffinity) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq1913[0] { + if yyq1946[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("requiredDuringSchedulingIgnoredDuringExecution")) z.EncSendContainerState(codecSelfer_containerMapValue1234) @@ -26002,14 +26531,14 @@ func (x *NodeAffinity) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr1913 || yy2arr1913 { + if yyr1946 || yy2arr1946 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1913[1] { + if yyq1946[1] { if x.PreferredDuringSchedulingIgnoredDuringExecution == nil { r.EncodeNil() } else { - yym1916 := z.EncBinary() - _ = yym1916 + yym1949 := z.EncBinary() + _ = yym1949 if false { } else { h.encSlicePreferredSchedulingTerm(([]PreferredSchedulingTerm)(x.PreferredDuringSchedulingIgnoredDuringExecution), e) @@ -26019,15 +26548,15 @@ func (x *NodeAffinity) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq1913[1] { + if yyq1946[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("preferredDuringSchedulingIgnoredDuringExecution")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.PreferredDuringSchedulingIgnoredDuringExecution == nil { r.EncodeNil() } else { - yym1917 := z.EncBinary() - _ = yym1917 + yym1950 := z.EncBinary() + _ = yym1950 if false { } else { h.encSlicePreferredSchedulingTerm(([]PreferredSchedulingTerm)(x.PreferredDuringSchedulingIgnoredDuringExecution), e) @@ -26035,7 +26564,7 @@ func (x *NodeAffinity) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr1913 || yy2arr1913 { + if yyr1946 || yy2arr1946 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -26048,25 +26577,25 @@ func (x *NodeAffinity) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1918 := z.DecBinary() - _ = yym1918 + yym1951 := z.DecBinary() + _ = yym1951 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct1919 := r.ContainerType() - if yyct1919 == codecSelferValueTypeMap1234 { - yyl1919 := r.ReadMapStart() - if yyl1919 == 0 { + yyct1952 := r.ContainerType() + if yyct1952 == codecSelferValueTypeMap1234 { + yyl1952 := r.ReadMapStart() + if yyl1952 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl1919, d) + x.codecDecodeSelfFromMap(yyl1952, d) } - } else if yyct1919 == codecSelferValueTypeArray1234 { - yyl1919 := r.ReadArrayStart() - if yyl1919 == 0 { + } else if yyct1952 == codecSelferValueTypeArray1234 { + yyl1952 := r.ReadArrayStart() + if yyl1952 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl1919, d) + x.codecDecodeSelfFromArray(yyl1952, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -26078,12 +26607,12 @@ func (x *NodeAffinity) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys1920Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys1920Slc - var yyhl1920 bool = l >= 0 - for yyj1920 := 0; ; yyj1920++ { - if yyhl1920 { - if yyj1920 >= l { + var yys1953Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys1953Slc + var yyhl1953 bool = l >= 0 + for yyj1953 := 0; ; yyj1953++ { + if yyhl1953 { + if yyj1953 >= l { break } } else { @@ -26092,10 +26621,10 @@ func (x *NodeAffinity) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys1920Slc = r.DecodeBytes(yys1920Slc, true, true) - yys1920 := string(yys1920Slc) + yys1953Slc = r.DecodeBytes(yys1953Slc, true, true) + yys1953 := string(yys1953Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys1920 { + switch yys1953 { case "requiredDuringSchedulingIgnoredDuringExecution": if r.TryDecodeAsNil() { if x.RequiredDuringSchedulingIgnoredDuringExecution != nil { @@ -26111,18 +26640,18 @@ func (x *NodeAffinity) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.PreferredDuringSchedulingIgnoredDuringExecution = nil } else { - yyv1922 := &x.PreferredDuringSchedulingIgnoredDuringExecution - yym1923 := z.DecBinary() - _ = yym1923 + yyv1955 := &x.PreferredDuringSchedulingIgnoredDuringExecution + yym1956 := z.DecBinary() + _ = yym1956 if false { } else { - h.decSlicePreferredSchedulingTerm((*[]PreferredSchedulingTerm)(yyv1922), d) + h.decSlicePreferredSchedulingTerm((*[]PreferredSchedulingTerm)(yyv1955), d) } } default: - z.DecStructFieldNotFound(-1, yys1920) - } // end switch yys1920 - } // end for yyj1920 + z.DecStructFieldNotFound(-1, yys1953) + } // end switch yys1953 + } // end for yyj1953 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -26130,16 +26659,16 @@ func (x *NodeAffinity) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj1924 int - var yyb1924 bool - var yyhl1924 bool = l >= 0 - yyj1924++ - if yyhl1924 { - yyb1924 = yyj1924 > l + var yyj1957 int + var yyb1957 bool + var yyhl1957 bool = l >= 0 + yyj1957++ + if yyhl1957 { + yyb1957 = yyj1957 > l } else { - yyb1924 = r.CheckBreak() + yyb1957 = r.CheckBreak() } - if yyb1924 { + if yyb1957 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -26154,13 +26683,13 @@ func (x *NodeAffinity) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } x.RequiredDuringSchedulingIgnoredDuringExecution.CodecDecodeSelf(d) } - yyj1924++ - if yyhl1924 { - yyb1924 = yyj1924 > l + yyj1957++ + if yyhl1957 { + yyb1957 = yyj1957 > l } else { - yyb1924 = r.CheckBreak() + yyb1957 = r.CheckBreak() } - if yyb1924 { + if yyb1957 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -26168,26 +26697,26 @@ func (x *NodeAffinity) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.PreferredDuringSchedulingIgnoredDuringExecution = nil } else { - yyv1926 := &x.PreferredDuringSchedulingIgnoredDuringExecution - yym1927 := z.DecBinary() - _ = yym1927 + yyv1959 := &x.PreferredDuringSchedulingIgnoredDuringExecution + yym1960 := z.DecBinary() + _ = yym1960 if false { } else { - h.decSlicePreferredSchedulingTerm((*[]PreferredSchedulingTerm)(yyv1926), d) + h.decSlicePreferredSchedulingTerm((*[]PreferredSchedulingTerm)(yyv1959), d) } } for { - yyj1924++ - if yyhl1924 { - yyb1924 = yyj1924 > l + yyj1957++ + if yyhl1957 { + yyb1957 = yyj1957 > l } else { - yyb1924 = r.CheckBreak() + yyb1957 = r.CheckBreak() } - if yyb1924 { + if yyb1957 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj1924-1, "") + z.DecStructFieldNotFound(yyj1957-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -26199,33 +26728,33 @@ func (x *PreferredSchedulingTerm) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1928 := z.EncBinary() - _ = yym1928 + yym1961 := z.EncBinary() + _ = yym1961 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep1929 := !z.EncBinary() - yy2arr1929 := z.EncBasicHandle().StructToArray - var yyq1929 [2]bool - _, _, _ = yysep1929, yyq1929, yy2arr1929 - const yyr1929 bool = false - var yynn1929 int - if yyr1929 || yy2arr1929 { + yysep1962 := !z.EncBinary() + yy2arr1962 := z.EncBasicHandle().StructToArray + var yyq1962 [2]bool + _, _, _ = yysep1962, yyq1962, yy2arr1962 + const yyr1962 bool = false + var yynn1962 int + if yyr1962 || yy2arr1962 { r.EncodeArrayStart(2) } else { - yynn1929 = 2 - for _, b := range yyq1929 { + yynn1962 = 2 + for _, b := range yyq1962 { if b { - yynn1929++ + yynn1962++ } } - r.EncodeMapStart(yynn1929) - yynn1929 = 0 + r.EncodeMapStart(yynn1962) + yynn1962 = 0 } - if yyr1929 || yy2arr1929 { + if yyr1962 || yy2arr1962 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym1931 := z.EncBinary() - _ = yym1931 + yym1964 := z.EncBinary() + _ = yym1964 if false { } else { r.EncodeInt(int64(x.Weight)) @@ -26234,25 +26763,25 @@ func (x *PreferredSchedulingTerm) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("weight")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym1932 := z.EncBinary() - _ = yym1932 + yym1965 := z.EncBinary() + _ = yym1965 if false { } else { r.EncodeInt(int64(x.Weight)) } } - if yyr1929 || yy2arr1929 { + if yyr1962 || yy2arr1962 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy1934 := &x.Preference - yy1934.CodecEncodeSelf(e) + yy1967 := &x.Preference + yy1967.CodecEncodeSelf(e) } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("preference")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy1935 := &x.Preference - yy1935.CodecEncodeSelf(e) + yy1968 := &x.Preference + yy1968.CodecEncodeSelf(e) } - if yyr1929 || yy2arr1929 { + if yyr1962 || yy2arr1962 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -26265,25 +26794,25 @@ func (x *PreferredSchedulingTerm) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1936 := z.DecBinary() - _ = yym1936 + yym1969 := z.DecBinary() + _ = yym1969 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct1937 := r.ContainerType() - if yyct1937 == codecSelferValueTypeMap1234 { - yyl1937 := r.ReadMapStart() - if yyl1937 == 0 { + yyct1970 := r.ContainerType() + if yyct1970 == codecSelferValueTypeMap1234 { + yyl1970 := r.ReadMapStart() + if yyl1970 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl1937, d) + x.codecDecodeSelfFromMap(yyl1970, d) } - } else if yyct1937 == codecSelferValueTypeArray1234 { - yyl1937 := r.ReadArrayStart() - if yyl1937 == 0 { + } else if yyct1970 == codecSelferValueTypeArray1234 { + yyl1970 := r.ReadArrayStart() + if yyl1970 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl1937, d) + x.codecDecodeSelfFromArray(yyl1970, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -26295,12 +26824,12 @@ func (x *PreferredSchedulingTerm) codecDecodeSelfFromMap(l int, d *codec1978.Dec var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys1938Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys1938Slc - var yyhl1938 bool = l >= 0 - for yyj1938 := 0; ; yyj1938++ { - if yyhl1938 { - if yyj1938 >= l { + var yys1971Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys1971Slc + var yyhl1971 bool = l >= 0 + for yyj1971 := 0; ; yyj1971++ { + if yyhl1971 { + if yyj1971 >= l { break } } else { @@ -26309,10 +26838,10 @@ func (x *PreferredSchedulingTerm) codecDecodeSelfFromMap(l int, d *codec1978.Dec } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys1938Slc = r.DecodeBytes(yys1938Slc, true, true) - yys1938 := string(yys1938Slc) + yys1971Slc = r.DecodeBytes(yys1971Slc, true, true) + yys1971 := string(yys1971Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys1938 { + switch yys1971 { case "weight": if r.TryDecodeAsNil() { x.Weight = 0 @@ -26323,13 +26852,13 @@ func (x *PreferredSchedulingTerm) codecDecodeSelfFromMap(l int, d *codec1978.Dec if r.TryDecodeAsNil() { x.Preference = NodeSelectorTerm{} } else { - yyv1940 := &x.Preference - yyv1940.CodecDecodeSelf(d) + yyv1973 := &x.Preference + yyv1973.CodecDecodeSelf(d) } default: - z.DecStructFieldNotFound(-1, yys1938) - } // end switch yys1938 - } // end for yyj1938 + z.DecStructFieldNotFound(-1, yys1971) + } // end switch yys1971 + } // end for yyj1971 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -26337,16 +26866,16 @@ func (x *PreferredSchedulingTerm) codecDecodeSelfFromArray(l int, d *codec1978.D var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj1941 int - var yyb1941 bool - var yyhl1941 bool = l >= 0 - yyj1941++ - if yyhl1941 { - yyb1941 = yyj1941 > l + var yyj1974 int + var yyb1974 bool + var yyhl1974 bool = l >= 0 + yyj1974++ + if yyhl1974 { + yyb1974 = yyj1974 > l } else { - yyb1941 = r.CheckBreak() + yyb1974 = r.CheckBreak() } - if yyb1941 { + if yyb1974 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -26356,13 +26885,13 @@ func (x *PreferredSchedulingTerm) codecDecodeSelfFromArray(l int, d *codec1978.D } else { x.Weight = int32(r.DecodeInt(32)) } - yyj1941++ - if yyhl1941 { - yyb1941 = yyj1941 > l + yyj1974++ + if yyhl1974 { + yyb1974 = yyj1974 > l } else { - yyb1941 = r.CheckBreak() + yyb1974 = r.CheckBreak() } - if yyb1941 { + if yyb1974 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -26370,21 +26899,21 @@ func (x *PreferredSchedulingTerm) codecDecodeSelfFromArray(l int, d *codec1978.D if r.TryDecodeAsNil() { x.Preference = NodeSelectorTerm{} } else { - yyv1943 := &x.Preference - yyv1943.CodecDecodeSelf(d) + yyv1976 := &x.Preference + yyv1976.CodecDecodeSelf(d) } for { - yyj1941++ - if yyhl1941 { - yyb1941 = yyj1941 > l + yyj1974++ + if yyhl1974 { + yyb1974 = yyj1974 > l } else { - yyb1941 = r.CheckBreak() + yyb1974 = r.CheckBreak() } - if yyb1941 { + if yyb1974 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj1941-1, "") + z.DecStructFieldNotFound(yyj1974-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -26396,34 +26925,34 @@ func (x *Taint) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1944 := z.EncBinary() - _ = yym1944 + yym1977 := z.EncBinary() + _ = yym1977 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - 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 { + yysep1978 := !z.EncBinary() + yy2arr1978 := z.EncBasicHandle().StructToArray + var yyq1978 [3]bool + _, _, _ = yysep1978, yyq1978, yy2arr1978 + const yyr1978 bool = false + yyq1978[1] = x.Value != "" + var yynn1978 int + if yyr1978 || yy2arr1978 { r.EncodeArrayStart(3) } else { - yynn1945 = 2 - for _, b := range yyq1945 { + yynn1978 = 2 + for _, b := range yyq1978 { if b { - yynn1945++ + yynn1978++ } } - r.EncodeMapStart(yynn1945) - yynn1945 = 0 + r.EncodeMapStart(yynn1978) + yynn1978 = 0 } - if yyr1945 || yy2arr1945 { + if yyr1978 || yy2arr1978 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym1947 := z.EncBinary() - _ = yym1947 + yym1980 := z.EncBinary() + _ = yym1980 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Key)) @@ -26432,18 +26961,18 @@ func (x *Taint) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("key")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym1948 := z.EncBinary() - _ = yym1948 + yym1981 := z.EncBinary() + _ = yym1981 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Key)) } } - if yyr1945 || yy2arr1945 { + if yyr1978 || yy2arr1978 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1945[1] { - yym1950 := z.EncBinary() - _ = yym1950 + if yyq1978[1] { + yym1983 := z.EncBinary() + _ = yym1983 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Value)) @@ -26452,19 +26981,19 @@ func (x *Taint) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq1945[1] { + if yyq1978[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("value")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym1951 := z.EncBinary() - _ = yym1951 + yym1984 := z.EncBinary() + _ = yym1984 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Value)) } } } - if yyr1945 || yy2arr1945 { + if yyr1978 || yy2arr1978 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) x.Effect.CodecEncodeSelf(e) } else { @@ -26473,7 +27002,7 @@ func (x *Taint) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapValue1234) x.Effect.CodecEncodeSelf(e) } - if yyr1945 || yy2arr1945 { + if yyr1978 || yy2arr1978 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -26486,25 +27015,25 @@ func (x *Taint) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1953 := z.DecBinary() - _ = yym1953 + yym1986 := z.DecBinary() + _ = yym1986 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct1954 := r.ContainerType() - if yyct1954 == codecSelferValueTypeMap1234 { - yyl1954 := r.ReadMapStart() - if yyl1954 == 0 { + yyct1987 := r.ContainerType() + if yyct1987 == codecSelferValueTypeMap1234 { + yyl1987 := r.ReadMapStart() + if yyl1987 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl1954, d) + x.codecDecodeSelfFromMap(yyl1987, d) } - } else if yyct1954 == codecSelferValueTypeArray1234 { - yyl1954 := r.ReadArrayStart() - if yyl1954 == 0 { + } else if yyct1987 == codecSelferValueTypeArray1234 { + yyl1987 := r.ReadArrayStart() + if yyl1987 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl1954, d) + x.codecDecodeSelfFromArray(yyl1987, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -26516,12 +27045,12 @@ func (x *Taint) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys1955Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys1955Slc - var yyhl1955 bool = l >= 0 - for yyj1955 := 0; ; yyj1955++ { - if yyhl1955 { - if yyj1955 >= l { + var yys1988Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys1988Slc + var yyhl1988 bool = l >= 0 + for yyj1988 := 0; ; yyj1988++ { + if yyhl1988 { + if yyj1988 >= l { break } } else { @@ -26530,10 +27059,10 @@ func (x *Taint) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys1955Slc = r.DecodeBytes(yys1955Slc, true, true) - yys1955 := string(yys1955Slc) + yys1988Slc = r.DecodeBytes(yys1988Slc, true, true) + yys1988 := string(yys1988Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys1955 { + switch yys1988 { case "key": if r.TryDecodeAsNil() { x.Key = "" @@ -26553,9 +27082,9 @@ func (x *Taint) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { x.Effect = TaintEffect(r.DecodeString()) } default: - z.DecStructFieldNotFound(-1, yys1955) - } // end switch yys1955 - } // end for yyj1955 + z.DecStructFieldNotFound(-1, yys1988) + } // end switch yys1988 + } // end for yyj1988 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -26563,16 +27092,16 @@ func (x *Taint) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj1959 int - var yyb1959 bool - var yyhl1959 bool = l >= 0 - yyj1959++ - if yyhl1959 { - yyb1959 = yyj1959 > l + var yyj1992 int + var yyb1992 bool + var yyhl1992 bool = l >= 0 + yyj1992++ + if yyhl1992 { + yyb1992 = yyj1992 > l } else { - yyb1959 = r.CheckBreak() + yyb1992 = r.CheckBreak() } - if yyb1959 { + if yyb1992 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -26582,13 +27111,13 @@ func (x *Taint) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.Key = string(r.DecodeString()) } - yyj1959++ - if yyhl1959 { - yyb1959 = yyj1959 > l + yyj1992++ + if yyhl1992 { + yyb1992 = yyj1992 > l } else { - yyb1959 = r.CheckBreak() + yyb1992 = r.CheckBreak() } - if yyb1959 { + if yyb1992 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -26598,13 +27127,13 @@ func (x *Taint) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.Value = string(r.DecodeString()) } - yyj1959++ - if yyhl1959 { - yyb1959 = yyj1959 > l + yyj1992++ + if yyhl1992 { + yyb1992 = yyj1992 > l } else { - yyb1959 = r.CheckBreak() + yyb1992 = r.CheckBreak() } - if yyb1959 { + if yyb1992 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -26615,17 +27144,17 @@ func (x *Taint) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { x.Effect = TaintEffect(r.DecodeString()) } for { - yyj1959++ - if yyhl1959 { - yyb1959 = yyj1959 > l + yyj1992++ + if yyhl1992 { + yyb1992 = yyj1992 > l } else { - yyb1959 = r.CheckBreak() + yyb1992 = r.CheckBreak() } - if yyb1959 { + if yyb1992 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj1959-1, "") + z.DecStructFieldNotFound(yyj1992-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -26634,8 +27163,8 @@ func (x TaintEffect) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r - yym1963 := z.EncBinary() - _ = yym1963 + yym1996 := z.EncBinary() + _ = yym1996 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { @@ -26647,8 +27176,8 @@ func (x *TaintEffect) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1964 := z.DecBinary() - _ = yym1964 + yym1997 := z.DecBinary() + _ = yym1997 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { @@ -26663,38 +27192,38 @@ func (x *Toleration) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1965 := z.EncBinary() - _ = yym1965 + yym1998 := z.EncBinary() + _ = yym1998 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - 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 { + yysep1999 := !z.EncBinary() + yy2arr1999 := z.EncBasicHandle().StructToArray + var yyq1999 [4]bool + _, _, _ = yysep1999, yyq1999, yy2arr1999 + const yyr1999 bool = false + yyq1999[0] = x.Key != "" + yyq1999[1] = x.Operator != "" + yyq1999[2] = x.Value != "" + yyq1999[3] = x.Effect != "" + var yynn1999 int + if yyr1999 || yy2arr1999 { r.EncodeArrayStart(4) } else { - yynn1966 = 0 - for _, b := range yyq1966 { + yynn1999 = 0 + for _, b := range yyq1999 { if b { - yynn1966++ + yynn1999++ } } - r.EncodeMapStart(yynn1966) - yynn1966 = 0 + r.EncodeMapStart(yynn1999) + yynn1999 = 0 } - if yyr1966 || yy2arr1966 { + if yyr1999 || yy2arr1999 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1966[0] { - yym1968 := z.EncBinary() - _ = yym1968 + if yyq1999[0] { + yym2001 := z.EncBinary() + _ = yym2001 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Key)) @@ -26703,38 +27232,38 @@ func (x *Toleration) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq1966[0] { + if yyq1999[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("key")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym1969 := z.EncBinary() - _ = yym1969 + yym2002 := z.EncBinary() + _ = yym2002 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Key)) } } } - if yyr1966 || yy2arr1966 { + if yyr1999 || yy2arr1999 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1966[1] { + if yyq1999[1] { x.Operator.CodecEncodeSelf(e) } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq1966[1] { + if yyq1999[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("operator")) z.EncSendContainerState(codecSelfer_containerMapValue1234) x.Operator.CodecEncodeSelf(e) } } - if yyr1966 || yy2arr1966 { + if yyr1999 || yy2arr1999 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1966[2] { - yym1972 := z.EncBinary() - _ = yym1972 + if yyq1999[2] { + yym2005 := z.EncBinary() + _ = yym2005 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Value)) @@ -26743,34 +27272,34 @@ func (x *Toleration) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq1966[2] { + if yyq1999[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("value")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym1973 := z.EncBinary() - _ = yym1973 + yym2006 := z.EncBinary() + _ = yym2006 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Value)) } } } - if yyr1966 || yy2arr1966 { + if yyr1999 || yy2arr1999 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1966[3] { + if yyq1999[3] { x.Effect.CodecEncodeSelf(e) } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq1966[3] { + if yyq1999[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("effect")) z.EncSendContainerState(codecSelfer_containerMapValue1234) x.Effect.CodecEncodeSelf(e) } } - if yyr1966 || yy2arr1966 { + if yyr1999 || yy2arr1999 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -26783,25 +27312,25 @@ func (x *Toleration) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1975 := z.DecBinary() - _ = yym1975 + yym2008 := z.DecBinary() + _ = yym2008 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct1976 := r.ContainerType() - if yyct1976 == codecSelferValueTypeMap1234 { - yyl1976 := r.ReadMapStart() - if yyl1976 == 0 { + yyct2009 := r.ContainerType() + if yyct2009 == codecSelferValueTypeMap1234 { + yyl2009 := r.ReadMapStart() + if yyl2009 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl1976, d) + x.codecDecodeSelfFromMap(yyl2009, d) } - } else if yyct1976 == codecSelferValueTypeArray1234 { - yyl1976 := r.ReadArrayStart() - if yyl1976 == 0 { + } else if yyct2009 == codecSelferValueTypeArray1234 { + yyl2009 := r.ReadArrayStart() + if yyl2009 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl1976, d) + x.codecDecodeSelfFromArray(yyl2009, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -26813,12 +27342,12 @@ func (x *Toleration) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys1977Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys1977Slc - var yyhl1977 bool = l >= 0 - for yyj1977 := 0; ; yyj1977++ { - if yyhl1977 { - if yyj1977 >= l { + var yys2010Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys2010Slc + var yyhl2010 bool = l >= 0 + for yyj2010 := 0; ; yyj2010++ { + if yyhl2010 { + if yyj2010 >= l { break } } else { @@ -26827,10 +27356,10 @@ func (x *Toleration) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys1977Slc = r.DecodeBytes(yys1977Slc, true, true) - yys1977 := string(yys1977Slc) + yys2010Slc = r.DecodeBytes(yys2010Slc, true, true) + yys2010 := string(yys2010Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys1977 { + switch yys2010 { case "key": if r.TryDecodeAsNil() { x.Key = "" @@ -26856,9 +27385,9 @@ func (x *Toleration) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { x.Effect = TaintEffect(r.DecodeString()) } default: - z.DecStructFieldNotFound(-1, yys1977) - } // end switch yys1977 - } // end for yyj1977 + z.DecStructFieldNotFound(-1, yys2010) + } // end switch yys2010 + } // end for yyj2010 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -26866,16 +27395,16 @@ func (x *Toleration) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj1982 int - var yyb1982 bool - var yyhl1982 bool = l >= 0 - yyj1982++ - if yyhl1982 { - yyb1982 = yyj1982 > l + var yyj2015 int + var yyb2015 bool + var yyhl2015 bool = l >= 0 + yyj2015++ + if yyhl2015 { + yyb2015 = yyj2015 > l } else { - yyb1982 = r.CheckBreak() + yyb2015 = r.CheckBreak() } - if yyb1982 { + if yyb2015 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -26885,13 +27414,13 @@ func (x *Toleration) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.Key = string(r.DecodeString()) } - yyj1982++ - if yyhl1982 { - yyb1982 = yyj1982 > l + yyj2015++ + if yyhl2015 { + yyb2015 = yyj2015 > l } else { - yyb1982 = r.CheckBreak() + yyb2015 = r.CheckBreak() } - if yyb1982 { + if yyb2015 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -26901,13 +27430,13 @@ func (x *Toleration) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.Operator = TolerationOperator(r.DecodeString()) } - yyj1982++ - if yyhl1982 { - yyb1982 = yyj1982 > l + yyj2015++ + if yyhl2015 { + yyb2015 = yyj2015 > l } else { - yyb1982 = r.CheckBreak() + yyb2015 = r.CheckBreak() } - if yyb1982 { + if yyb2015 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -26917,13 +27446,13 @@ func (x *Toleration) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.Value = string(r.DecodeString()) } - yyj1982++ - if yyhl1982 { - yyb1982 = yyj1982 > l + yyj2015++ + if yyhl2015 { + yyb2015 = yyj2015 > l } else { - yyb1982 = r.CheckBreak() + yyb2015 = r.CheckBreak() } - if yyb1982 { + if yyb2015 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -26934,17 +27463,17 @@ func (x *Toleration) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { x.Effect = TaintEffect(r.DecodeString()) } for { - yyj1982++ - if yyhl1982 { - yyb1982 = yyj1982 > l + yyj2015++ + if yyhl2015 { + yyb2015 = yyj2015 > l } else { - yyb1982 = r.CheckBreak() + yyb2015 = r.CheckBreak() } - if yyb1982 { + if yyb2015 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj1982-1, "") + z.DecStructFieldNotFound(yyj2015-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -26953,8 +27482,8 @@ func (x TolerationOperator) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r - yym1987 := z.EncBinary() - _ = yym1987 + yym2020 := z.EncBinary() + _ = yym2020 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { @@ -26966,8 +27495,8 @@ func (x *TolerationOperator) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1988 := z.DecBinary() - _ = yym1988 + yym2021 := z.DecBinary() + _ = yym2021 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { @@ -26982,53 +27511,53 @@ func (x *PodSpec) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1989 := z.EncBinary() - _ = yym1989 + yym2022 := z.EncBinary() + _ = yym2022 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - 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 { + yysep2023 := !z.EncBinary() + yy2arr2023 := z.EncBasicHandle().StructToArray + var yyq2023 [17]bool + _, _, _ = yysep2023, yyq2023, yy2arr2023 + const yyr2023 bool = false + yyq2023[0] = len(x.Volumes) != 0 + yyq2023[2] = x.RestartPolicy != "" + yyq2023[3] = x.TerminationGracePeriodSeconds != nil + yyq2023[4] = x.ActiveDeadlineSeconds != nil + yyq2023[5] = x.DNSPolicy != "" + yyq2023[6] = len(x.NodeSelector) != 0 + yyq2023[7] = x.ServiceAccountName != "" + yyq2023[8] = x.DeprecatedServiceAccount != "" + yyq2023[9] = x.NodeName != "" + yyq2023[10] = x.HostNetwork != false + yyq2023[11] = x.HostPID != false + yyq2023[12] = x.HostIPC != false + yyq2023[13] = x.SecurityContext != nil + yyq2023[14] = len(x.ImagePullSecrets) != 0 + yyq2023[15] = x.Hostname != "" + yyq2023[16] = x.Subdomain != "" + var yynn2023 int + if yyr2023 || yy2arr2023 { r.EncodeArrayStart(17) } else { - yynn1990 = 1 - for _, b := range yyq1990 { + yynn2023 = 1 + for _, b := range yyq2023 { if b { - yynn1990++ + yynn2023++ } } - r.EncodeMapStart(yynn1990) - yynn1990 = 0 + r.EncodeMapStart(yynn2023) + yynn2023 = 0 } - if yyr1990 || yy2arr1990 { + if yyr2023 || yy2arr2023 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1990[0] { + if yyq2023[0] { if x.Volumes == nil { r.EncodeNil() } else { - yym1992 := z.EncBinary() - _ = yym1992 + yym2025 := z.EncBinary() + _ = yym2025 if false { } else { h.encSliceVolume(([]Volume)(x.Volumes), e) @@ -27038,15 +27567,15 @@ func (x *PodSpec) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq1990[0] { + if yyq2023[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("volumes")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.Volumes == nil { r.EncodeNil() } else { - yym1993 := z.EncBinary() - _ = yym1993 + yym2026 := z.EncBinary() + _ = yym2026 if false { } else { h.encSliceVolume(([]Volume)(x.Volumes), e) @@ -27054,13 +27583,13 @@ func (x *PodSpec) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr1990 || yy2arr1990 { + if yyr2023 || yy2arr2023 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.Containers == nil { r.EncodeNil() } else { - yym1995 := z.EncBinary() - _ = yym1995 + yym2028 := z.EncBinary() + _ = yym2028 if false { } else { h.encSliceContainer(([]Container)(x.Containers), e) @@ -27073,122 +27602,122 @@ func (x *PodSpec) CodecEncodeSelf(e *codec1978.Encoder) { if x.Containers == nil { r.EncodeNil() } else { - yym1996 := z.EncBinary() - _ = yym1996 + yym2029 := z.EncBinary() + _ = yym2029 if false { } else { h.encSliceContainer(([]Container)(x.Containers), e) } } } - if yyr1990 || yy2arr1990 { + if yyr2023 || yy2arr2023 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1990[2] { + if yyq2023[2] { x.RestartPolicy.CodecEncodeSelf(e) } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq1990[2] { + if yyq2023[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("restartPolicy")) z.EncSendContainerState(codecSelfer_containerMapValue1234) x.RestartPolicy.CodecEncodeSelf(e) } } - if yyr1990 || yy2arr1990 { + if yyr2023 || yy2arr2023 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1990[3] { + if yyq2023[3] { if x.TerminationGracePeriodSeconds == nil { r.EncodeNil() } else { - yy1999 := *x.TerminationGracePeriodSeconds - yym2000 := z.EncBinary() - _ = yym2000 + yy2032 := *x.TerminationGracePeriodSeconds + yym2033 := z.EncBinary() + _ = yym2033 if false { } else { - r.EncodeInt(int64(yy1999)) + r.EncodeInt(int64(yy2032)) } } } else { r.EncodeNil() } } else { - if yyq1990[3] { + if yyq2023[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("terminationGracePeriodSeconds")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.TerminationGracePeriodSeconds == nil { r.EncodeNil() } else { - yy2001 := *x.TerminationGracePeriodSeconds - yym2002 := z.EncBinary() - _ = yym2002 + yy2034 := *x.TerminationGracePeriodSeconds + yym2035 := z.EncBinary() + _ = yym2035 if false { } else { - r.EncodeInt(int64(yy2001)) + r.EncodeInt(int64(yy2034)) } } } } - if yyr1990 || yy2arr1990 { + if yyr2023 || yy2arr2023 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1990[4] { + if yyq2023[4] { if x.ActiveDeadlineSeconds == nil { r.EncodeNil() } else { - yy2004 := *x.ActiveDeadlineSeconds - yym2005 := z.EncBinary() - _ = yym2005 + yy2037 := *x.ActiveDeadlineSeconds + yym2038 := z.EncBinary() + _ = yym2038 if false { } else { - r.EncodeInt(int64(yy2004)) + r.EncodeInt(int64(yy2037)) } } } else { r.EncodeNil() } } else { - if yyq1990[4] { + if yyq2023[4] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("activeDeadlineSeconds")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.ActiveDeadlineSeconds == nil { r.EncodeNil() } else { - yy2006 := *x.ActiveDeadlineSeconds - yym2007 := z.EncBinary() - _ = yym2007 + yy2039 := *x.ActiveDeadlineSeconds + yym2040 := z.EncBinary() + _ = yym2040 if false { } else { - r.EncodeInt(int64(yy2006)) + r.EncodeInt(int64(yy2039)) } } } } - if yyr1990 || yy2arr1990 { + if yyr2023 || yy2arr2023 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1990[5] { + if yyq2023[5] { x.DNSPolicy.CodecEncodeSelf(e) } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq1990[5] { + if yyq2023[5] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("dnsPolicy")) z.EncSendContainerState(codecSelfer_containerMapValue1234) x.DNSPolicy.CodecEncodeSelf(e) } } - if yyr1990 || yy2arr1990 { + if yyr2023 || yy2arr2023 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1990[6] { + if yyq2023[6] { if x.NodeSelector == nil { r.EncodeNil() } else { - yym2010 := z.EncBinary() - _ = yym2010 + yym2043 := z.EncBinary() + _ = yym2043 if false { } else { z.F.EncMapStringStringV(x.NodeSelector, false, e) @@ -27198,15 +27727,15 @@ func (x *PodSpec) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq1990[6] { + if yyq2023[6] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("nodeSelector")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.NodeSelector == nil { r.EncodeNil() } else { - yym2011 := z.EncBinary() - _ = yym2011 + yym2044 := z.EncBinary() + _ = yym2044 if false { } else { z.F.EncMapStringStringV(x.NodeSelector, false, e) @@ -27214,11 +27743,11 @@ func (x *PodSpec) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr1990 || yy2arr1990 { + if yyr2023 || yy2arr2023 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1990[7] { - yym2013 := z.EncBinary() - _ = yym2013 + if yyq2023[7] { + yym2046 := z.EncBinary() + _ = yym2046 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.ServiceAccountName)) @@ -27227,23 +27756,23 @@ func (x *PodSpec) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq1990[7] { + if yyq2023[7] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("serviceAccountName")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym2014 := z.EncBinary() - _ = yym2014 + yym2047 := z.EncBinary() + _ = yym2047 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.ServiceAccountName)) } } } - if yyr1990 || yy2arr1990 { + if yyr2023 || yy2arr2023 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1990[8] { - yym2016 := z.EncBinary() - _ = yym2016 + if yyq2023[8] { + yym2049 := z.EncBinary() + _ = yym2049 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.DeprecatedServiceAccount)) @@ -27252,23 +27781,23 @@ func (x *PodSpec) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq1990[8] { + if yyq2023[8] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("serviceAccount")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym2017 := z.EncBinary() - _ = yym2017 + yym2050 := z.EncBinary() + _ = yym2050 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.DeprecatedServiceAccount)) } } } - if yyr1990 || yy2arr1990 { + if yyr2023 || yy2arr2023 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1990[9] { - yym2019 := z.EncBinary() - _ = yym2019 + if yyq2023[9] { + yym2052 := z.EncBinary() + _ = yym2052 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.NodeName)) @@ -27277,23 +27806,23 @@ func (x *PodSpec) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq1990[9] { + if yyq2023[9] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("nodeName")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym2020 := z.EncBinary() - _ = yym2020 + yym2053 := z.EncBinary() + _ = yym2053 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.NodeName)) } } } - if yyr1990 || yy2arr1990 { + if yyr2023 || yy2arr2023 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1990[10] { - yym2022 := z.EncBinary() - _ = yym2022 + if yyq2023[10] { + yym2055 := z.EncBinary() + _ = yym2055 if false { } else { r.EncodeBool(bool(x.HostNetwork)) @@ -27302,23 +27831,23 @@ func (x *PodSpec) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeBool(false) } } else { - if yyq1990[10] { + if yyq2023[10] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("hostNetwork")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym2023 := z.EncBinary() - _ = yym2023 + yym2056 := z.EncBinary() + _ = yym2056 if false { } else { r.EncodeBool(bool(x.HostNetwork)) } } } - if yyr1990 || yy2arr1990 { + if yyr2023 || yy2arr2023 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1990[11] { - yym2025 := z.EncBinary() - _ = yym2025 + if yyq2023[11] { + yym2058 := z.EncBinary() + _ = yym2058 if false { } else { r.EncodeBool(bool(x.HostPID)) @@ -27327,23 +27856,23 @@ func (x *PodSpec) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeBool(false) } } else { - if yyq1990[11] { + if yyq2023[11] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("hostPID")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym2026 := z.EncBinary() - _ = yym2026 + yym2059 := z.EncBinary() + _ = yym2059 if false { } else { r.EncodeBool(bool(x.HostPID)) } } } - if yyr1990 || yy2arr1990 { + if yyr2023 || yy2arr2023 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1990[12] { - yym2028 := z.EncBinary() - _ = yym2028 + if yyq2023[12] { + yym2061 := z.EncBinary() + _ = yym2061 if false { } else { r.EncodeBool(bool(x.HostIPC)) @@ -27352,21 +27881,21 @@ func (x *PodSpec) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeBool(false) } } else { - if yyq1990[12] { + if yyq2023[12] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("hostIPC")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym2029 := z.EncBinary() - _ = yym2029 + yym2062 := z.EncBinary() + _ = yym2062 if false { } else { r.EncodeBool(bool(x.HostIPC)) } } } - if yyr1990 || yy2arr1990 { + if yyr2023 || yy2arr2023 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1990[13] { + if yyq2023[13] { if x.SecurityContext == nil { r.EncodeNil() } else { @@ -27376,7 +27905,7 @@ func (x *PodSpec) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq1990[13] { + if yyq2023[13] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("securityContext")) z.EncSendContainerState(codecSelfer_containerMapValue1234) @@ -27387,14 +27916,14 @@ func (x *PodSpec) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr1990 || yy2arr1990 { + if yyr2023 || yy2arr2023 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1990[14] { + if yyq2023[14] { if x.ImagePullSecrets == nil { r.EncodeNil() } else { - yym2032 := z.EncBinary() - _ = yym2032 + yym2065 := z.EncBinary() + _ = yym2065 if false { } else { h.encSliceLocalObjectReference(([]LocalObjectReference)(x.ImagePullSecrets), e) @@ -27404,15 +27933,15 @@ func (x *PodSpec) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq1990[14] { + if yyq2023[14] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("imagePullSecrets")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.ImagePullSecrets == nil { r.EncodeNil() } else { - yym2033 := z.EncBinary() - _ = yym2033 + yym2066 := z.EncBinary() + _ = yym2066 if false { } else { h.encSliceLocalObjectReference(([]LocalObjectReference)(x.ImagePullSecrets), e) @@ -27420,11 +27949,11 @@ func (x *PodSpec) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr1990 || yy2arr1990 { + if yyr2023 || yy2arr2023 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1990[15] { - yym2035 := z.EncBinary() - _ = yym2035 + if yyq2023[15] { + yym2068 := z.EncBinary() + _ = yym2068 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Hostname)) @@ -27433,23 +27962,23 @@ func (x *PodSpec) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq1990[15] { + if yyq2023[15] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("hostname")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym2036 := z.EncBinary() - _ = yym2036 + yym2069 := z.EncBinary() + _ = yym2069 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Hostname)) } } } - if yyr1990 || yy2arr1990 { + if yyr2023 || yy2arr2023 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1990[16] { - yym2038 := z.EncBinary() - _ = yym2038 + if yyq2023[16] { + yym2071 := z.EncBinary() + _ = yym2071 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Subdomain)) @@ -27458,19 +27987,19 @@ func (x *PodSpec) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq1990[16] { + if yyq2023[16] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("subdomain")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym2039 := z.EncBinary() - _ = yym2039 + yym2072 := z.EncBinary() + _ = yym2072 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Subdomain)) } } } - if yyr1990 || yy2arr1990 { + if yyr2023 || yy2arr2023 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -27483,25 +28012,25 @@ func (x *PodSpec) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym2040 := z.DecBinary() - _ = yym2040 + yym2073 := z.DecBinary() + _ = yym2073 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2041 := r.ContainerType() - if yyct2041 == codecSelferValueTypeMap1234 { - yyl2041 := r.ReadMapStart() - if yyl2041 == 0 { + yyct2074 := r.ContainerType() + if yyct2074 == codecSelferValueTypeMap1234 { + yyl2074 := r.ReadMapStart() + if yyl2074 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2041, d) + x.codecDecodeSelfFromMap(yyl2074, d) } - } else if yyct2041 == codecSelferValueTypeArray1234 { - yyl2041 := r.ReadArrayStart() - if yyl2041 == 0 { + } else if yyct2074 == codecSelferValueTypeArray1234 { + yyl2074 := r.ReadArrayStart() + if yyl2074 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2041, d) + x.codecDecodeSelfFromArray(yyl2074, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -27513,12 +28042,12 @@ func (x *PodSpec) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys2042Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys2042Slc - var yyhl2042 bool = l >= 0 - for yyj2042 := 0; ; yyj2042++ { - if yyhl2042 { - if yyj2042 >= l { + var yys2075Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys2075Slc + var yyhl2075 bool = l >= 0 + for yyj2075 := 0; ; yyj2075++ { + if yyhl2075 { + if yyj2075 >= l { break } } else { @@ -27527,32 +28056,32 @@ func (x *PodSpec) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys2042Slc = r.DecodeBytes(yys2042Slc, true, true) - yys2042 := string(yys2042Slc) + yys2075Slc = r.DecodeBytes(yys2075Slc, true, true) + yys2075 := string(yys2075Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys2042 { + switch yys2075 { case "volumes": if r.TryDecodeAsNil() { x.Volumes = nil } else { - yyv2043 := &x.Volumes - yym2044 := z.DecBinary() - _ = yym2044 + yyv2076 := &x.Volumes + yym2077 := z.DecBinary() + _ = yym2077 if false { } else { - h.decSliceVolume((*[]Volume)(yyv2043), d) + h.decSliceVolume((*[]Volume)(yyv2076), d) } } case "containers": if r.TryDecodeAsNil() { x.Containers = nil } else { - yyv2045 := &x.Containers - yym2046 := z.DecBinary() - _ = yym2046 + yyv2078 := &x.Containers + yym2079 := z.DecBinary() + _ = yym2079 if false { } else { - h.decSliceContainer((*[]Container)(yyv2045), d) + h.decSliceContainer((*[]Container)(yyv2078), d) } } case "restartPolicy": @@ -27570,8 +28099,8 @@ func (x *PodSpec) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { if x.TerminationGracePeriodSeconds == nil { x.TerminationGracePeriodSeconds = new(int64) } - yym2049 := z.DecBinary() - _ = yym2049 + yym2082 := z.DecBinary() + _ = yym2082 if false { } else { *((*int64)(x.TerminationGracePeriodSeconds)) = int64(r.DecodeInt(64)) @@ -27586,8 +28115,8 @@ func (x *PodSpec) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { if x.ActiveDeadlineSeconds == nil { x.ActiveDeadlineSeconds = new(int64) } - yym2051 := z.DecBinary() - _ = yym2051 + yym2084 := z.DecBinary() + _ = yym2084 if false { } else { *((*int64)(x.ActiveDeadlineSeconds)) = int64(r.DecodeInt(64)) @@ -27603,12 +28132,12 @@ func (x *PodSpec) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.NodeSelector = nil } else { - yyv2053 := &x.NodeSelector - yym2054 := z.DecBinary() - _ = yym2054 + yyv2086 := &x.NodeSelector + yym2087 := z.DecBinary() + _ = yym2087 if false { } else { - z.F.DecMapStringStringX(yyv2053, false, d) + z.F.DecMapStringStringX(yyv2086, false, d) } } case "serviceAccountName": @@ -27662,12 +28191,12 @@ func (x *PodSpec) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.ImagePullSecrets = nil } else { - yyv2062 := &x.ImagePullSecrets - yym2063 := z.DecBinary() - _ = yym2063 + yyv2095 := &x.ImagePullSecrets + yym2096 := z.DecBinary() + _ = yym2096 if false { } else { - h.decSliceLocalObjectReference((*[]LocalObjectReference)(yyv2062), d) + h.decSliceLocalObjectReference((*[]LocalObjectReference)(yyv2095), d) } } case "hostname": @@ -27683,9 +28212,9 @@ func (x *PodSpec) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { x.Subdomain = string(r.DecodeString()) } default: - z.DecStructFieldNotFound(-1, yys2042) - } // end switch yys2042 - } // end for yyj2042 + z.DecStructFieldNotFound(-1, yys2075) + } // end switch yys2075 + } // end for yyj2075 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -27693,16 +28222,16 @@ func (x *PodSpec) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj2066 int - var yyb2066 bool - var yyhl2066 bool = l >= 0 - yyj2066++ - if yyhl2066 { - yyb2066 = yyj2066 > l + var yyj2099 int + var yyb2099 bool + var yyhl2099 bool = l >= 0 + yyj2099++ + if yyhl2099 { + yyb2099 = yyj2099 > l } else { - yyb2066 = r.CheckBreak() + yyb2099 = r.CheckBreak() } - if yyb2066 { + if yyb2099 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -27710,21 +28239,21 @@ func (x *PodSpec) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.Volumes = nil } else { - yyv2067 := &x.Volumes - yym2068 := z.DecBinary() - _ = yym2068 + yyv2100 := &x.Volumes + yym2101 := z.DecBinary() + _ = yym2101 if false { } else { - h.decSliceVolume((*[]Volume)(yyv2067), d) + h.decSliceVolume((*[]Volume)(yyv2100), d) } } - yyj2066++ - if yyhl2066 { - yyb2066 = yyj2066 > l + yyj2099++ + if yyhl2099 { + yyb2099 = yyj2099 > l } else { - yyb2066 = r.CheckBreak() + yyb2099 = r.CheckBreak() } - if yyb2066 { + if yyb2099 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -27732,21 +28261,21 @@ func (x *PodSpec) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.Containers = nil } else { - yyv2069 := &x.Containers - yym2070 := z.DecBinary() - _ = yym2070 + yyv2102 := &x.Containers + yym2103 := z.DecBinary() + _ = yym2103 if false { } else { - h.decSliceContainer((*[]Container)(yyv2069), d) + h.decSliceContainer((*[]Container)(yyv2102), d) } } - yyj2066++ - if yyhl2066 { - yyb2066 = yyj2066 > l + yyj2099++ + if yyhl2099 { + yyb2099 = yyj2099 > l } else { - yyb2066 = r.CheckBreak() + yyb2099 = r.CheckBreak() } - if yyb2066 { + if yyb2099 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -27756,13 +28285,13 @@ func (x *PodSpec) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.RestartPolicy = RestartPolicy(r.DecodeString()) } - yyj2066++ - if yyhl2066 { - yyb2066 = yyj2066 > l + yyj2099++ + if yyhl2099 { + yyb2099 = yyj2099 > l } else { - yyb2066 = r.CheckBreak() + yyb2099 = r.CheckBreak() } - if yyb2066 { + if yyb2099 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -27775,20 +28304,20 @@ func (x *PodSpec) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if x.TerminationGracePeriodSeconds == nil { x.TerminationGracePeriodSeconds = new(int64) } - yym2073 := z.DecBinary() - _ = yym2073 + yym2106 := z.DecBinary() + _ = yym2106 if false { } else { *((*int64)(x.TerminationGracePeriodSeconds)) = int64(r.DecodeInt(64)) } } - yyj2066++ - if yyhl2066 { - yyb2066 = yyj2066 > l + yyj2099++ + if yyhl2099 { + yyb2099 = yyj2099 > l } else { - yyb2066 = r.CheckBreak() + yyb2099 = r.CheckBreak() } - if yyb2066 { + if yyb2099 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -27801,20 +28330,20 @@ func (x *PodSpec) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if x.ActiveDeadlineSeconds == nil { x.ActiveDeadlineSeconds = new(int64) } - yym2075 := z.DecBinary() - _ = yym2075 + yym2108 := z.DecBinary() + _ = yym2108 if false { } else { *((*int64)(x.ActiveDeadlineSeconds)) = int64(r.DecodeInt(64)) } } - yyj2066++ - if yyhl2066 { - yyb2066 = yyj2066 > l + yyj2099++ + if yyhl2099 { + yyb2099 = yyj2099 > l } else { - yyb2066 = r.CheckBreak() + yyb2099 = r.CheckBreak() } - if yyb2066 { + if yyb2099 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -27824,13 +28353,13 @@ func (x *PodSpec) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.DNSPolicy = DNSPolicy(r.DecodeString()) } - yyj2066++ - if yyhl2066 { - yyb2066 = yyj2066 > l + yyj2099++ + if yyhl2099 { + yyb2099 = yyj2099 > l } else { - yyb2066 = r.CheckBreak() + yyb2099 = r.CheckBreak() } - if yyb2066 { + if yyb2099 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -27838,21 +28367,21 @@ func (x *PodSpec) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.NodeSelector = nil } else { - yyv2077 := &x.NodeSelector - yym2078 := z.DecBinary() - _ = yym2078 + yyv2110 := &x.NodeSelector + yym2111 := z.DecBinary() + _ = yym2111 if false { } else { - z.F.DecMapStringStringX(yyv2077, false, d) + z.F.DecMapStringStringX(yyv2110, false, d) } } - yyj2066++ - if yyhl2066 { - yyb2066 = yyj2066 > l + yyj2099++ + if yyhl2099 { + yyb2099 = yyj2099 > l } else { - yyb2066 = r.CheckBreak() + yyb2099 = r.CheckBreak() } - if yyb2066 { + if yyb2099 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -27862,13 +28391,13 @@ func (x *PodSpec) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.ServiceAccountName = string(r.DecodeString()) } - yyj2066++ - if yyhl2066 { - yyb2066 = yyj2066 > l + yyj2099++ + if yyhl2099 { + yyb2099 = yyj2099 > l } else { - yyb2066 = r.CheckBreak() + yyb2099 = r.CheckBreak() } - if yyb2066 { + if yyb2099 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -27878,13 +28407,13 @@ func (x *PodSpec) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.DeprecatedServiceAccount = string(r.DecodeString()) } - yyj2066++ - if yyhl2066 { - yyb2066 = yyj2066 > l + yyj2099++ + if yyhl2099 { + yyb2099 = yyj2099 > l } else { - yyb2066 = r.CheckBreak() + yyb2099 = r.CheckBreak() } - if yyb2066 { + if yyb2099 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -27894,13 +28423,13 @@ func (x *PodSpec) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.NodeName = string(r.DecodeString()) } - yyj2066++ - if yyhl2066 { - yyb2066 = yyj2066 > l + yyj2099++ + if yyhl2099 { + yyb2099 = yyj2099 > l } else { - yyb2066 = r.CheckBreak() + yyb2099 = r.CheckBreak() } - if yyb2066 { + if yyb2099 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -27910,13 +28439,13 @@ func (x *PodSpec) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.HostNetwork = bool(r.DecodeBool()) } - yyj2066++ - if yyhl2066 { - yyb2066 = yyj2066 > l + yyj2099++ + if yyhl2099 { + yyb2099 = yyj2099 > l } else { - yyb2066 = r.CheckBreak() + yyb2099 = r.CheckBreak() } - if yyb2066 { + if yyb2099 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -27926,13 +28455,13 @@ func (x *PodSpec) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.HostPID = bool(r.DecodeBool()) } - yyj2066++ - if yyhl2066 { - yyb2066 = yyj2066 > l + yyj2099++ + if yyhl2099 { + yyb2099 = yyj2099 > l } else { - yyb2066 = r.CheckBreak() + yyb2099 = r.CheckBreak() } - if yyb2066 { + if yyb2099 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -27942,13 +28471,13 @@ func (x *PodSpec) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.HostIPC = bool(r.DecodeBool()) } - yyj2066++ - if yyhl2066 { - yyb2066 = yyj2066 > l + yyj2099++ + if yyhl2099 { + yyb2099 = yyj2099 > l } else { - yyb2066 = r.CheckBreak() + yyb2099 = r.CheckBreak() } - if yyb2066 { + if yyb2099 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -27963,13 +28492,13 @@ func (x *PodSpec) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } x.SecurityContext.CodecDecodeSelf(d) } - yyj2066++ - if yyhl2066 { - yyb2066 = yyj2066 > l + yyj2099++ + if yyhl2099 { + yyb2099 = yyj2099 > l } else { - yyb2066 = r.CheckBreak() + yyb2099 = r.CheckBreak() } - if yyb2066 { + if yyb2099 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -27977,21 +28506,21 @@ func (x *PodSpec) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.ImagePullSecrets = nil } else { - yyv2086 := &x.ImagePullSecrets - yym2087 := z.DecBinary() - _ = yym2087 + yyv2119 := &x.ImagePullSecrets + yym2120 := z.DecBinary() + _ = yym2120 if false { } else { - h.decSliceLocalObjectReference((*[]LocalObjectReference)(yyv2086), d) + h.decSliceLocalObjectReference((*[]LocalObjectReference)(yyv2119), d) } } - yyj2066++ - if yyhl2066 { - yyb2066 = yyj2066 > l + yyj2099++ + if yyhl2099 { + yyb2099 = yyj2099 > l } else { - yyb2066 = r.CheckBreak() + yyb2099 = r.CheckBreak() } - if yyb2066 { + if yyb2099 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -28001,13 +28530,13 @@ func (x *PodSpec) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.Hostname = string(r.DecodeString()) } - yyj2066++ - if yyhl2066 { - yyb2066 = yyj2066 > l + yyj2099++ + if yyhl2099 { + yyb2099 = yyj2099 > l } else { - yyb2066 = r.CheckBreak() + yyb2099 = r.CheckBreak() } - if yyb2066 { + if yyb2099 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -28018,17 +28547,17 @@ func (x *PodSpec) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { x.Subdomain = string(r.DecodeString()) } for { - yyj2066++ - if yyhl2066 { - yyb2066 = yyj2066 > l + yyj2099++ + if yyhl2099 { + yyb2099 = yyj2099 > l } else { - yyb2066 = r.CheckBreak() + yyb2099 = r.CheckBreak() } - if yyb2066 { + if yyb2099 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj2066-1, "") + z.DecStructFieldNotFound(yyj2099-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -28040,37 +28569,37 @@ func (x *PodSecurityContext) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym2090 := z.EncBinary() - _ = yym2090 + yym2123 := z.EncBinary() + _ = yym2123 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - 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 { + yysep2124 := !z.EncBinary() + yy2arr2124 := z.EncBasicHandle().StructToArray + var yyq2124 [5]bool + _, _, _ = yysep2124, yyq2124, yy2arr2124 + const yyr2124 bool = false + yyq2124[0] = x.SELinuxOptions != nil + yyq2124[1] = x.RunAsUser != nil + yyq2124[2] = x.RunAsNonRoot != nil + yyq2124[3] = len(x.SupplementalGroups) != 0 + yyq2124[4] = x.FSGroup != nil + var yynn2124 int + if yyr2124 || yy2arr2124 { r.EncodeArrayStart(5) } else { - yynn2091 = 0 - for _, b := range yyq2091 { + yynn2124 = 0 + for _, b := range yyq2124 { if b { - yynn2091++ + yynn2124++ } } - r.EncodeMapStart(yynn2091) - yynn2091 = 0 + r.EncodeMapStart(yynn2124) + yynn2124 = 0 } - if yyr2091 || yy2arr2091 { + if yyr2124 || yy2arr2124 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2091[0] { + if yyq2124[0] { if x.SELinuxOptions == nil { r.EncodeNil() } else { @@ -28080,7 +28609,7 @@ func (x *PodSecurityContext) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq2091[0] { + if yyq2124[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("seLinuxOptions")) z.EncSendContainerState(codecSelfer_containerMapValue1234) @@ -28091,84 +28620,84 @@ func (x *PodSecurityContext) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr2091 || yy2arr2091 { + if yyr2124 || yy2arr2124 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2091[1] { + if yyq2124[1] { if x.RunAsUser == nil { r.EncodeNil() } else { - yy2094 := *x.RunAsUser - yym2095 := z.EncBinary() - _ = yym2095 + yy2127 := *x.RunAsUser + yym2128 := z.EncBinary() + _ = yym2128 if false { } else { - r.EncodeInt(int64(yy2094)) + r.EncodeInt(int64(yy2127)) } } } else { r.EncodeNil() } } else { - if yyq2091[1] { + if yyq2124[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("runAsUser")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.RunAsUser == nil { r.EncodeNil() } else { - yy2096 := *x.RunAsUser - yym2097 := z.EncBinary() - _ = yym2097 + yy2129 := *x.RunAsUser + yym2130 := z.EncBinary() + _ = yym2130 if false { } else { - r.EncodeInt(int64(yy2096)) + r.EncodeInt(int64(yy2129)) } } } } - if yyr2091 || yy2arr2091 { + if yyr2124 || yy2arr2124 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2091[2] { + if yyq2124[2] { if x.RunAsNonRoot == nil { r.EncodeNil() } else { - yy2099 := *x.RunAsNonRoot - yym2100 := z.EncBinary() - _ = yym2100 + yy2132 := *x.RunAsNonRoot + yym2133 := z.EncBinary() + _ = yym2133 if false { } else { - r.EncodeBool(bool(yy2099)) + r.EncodeBool(bool(yy2132)) } } } else { r.EncodeNil() } } else { - if yyq2091[2] { + if yyq2124[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("runAsNonRoot")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.RunAsNonRoot == nil { r.EncodeNil() } else { - yy2101 := *x.RunAsNonRoot - yym2102 := z.EncBinary() - _ = yym2102 + yy2134 := *x.RunAsNonRoot + yym2135 := z.EncBinary() + _ = yym2135 if false { } else { - r.EncodeBool(bool(yy2101)) + r.EncodeBool(bool(yy2134)) } } } } - if yyr2091 || yy2arr2091 { + if yyr2124 || yy2arr2124 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2091[3] { + if yyq2124[3] { if x.SupplementalGroups == nil { r.EncodeNil() } else { - yym2104 := z.EncBinary() - _ = yym2104 + yym2137 := z.EncBinary() + _ = yym2137 if false { } else { z.F.EncSliceInt64V(x.SupplementalGroups, false, e) @@ -28178,15 +28707,15 @@ func (x *PodSecurityContext) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq2091[3] { + if yyq2124[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("supplementalGroups")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.SupplementalGroups == nil { r.EncodeNil() } else { - yym2105 := z.EncBinary() - _ = yym2105 + yym2138 := z.EncBinary() + _ = yym2138 if false { } else { z.F.EncSliceInt64V(x.SupplementalGroups, false, e) @@ -28194,42 +28723,42 @@ func (x *PodSecurityContext) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr2091 || yy2arr2091 { + if yyr2124 || yy2arr2124 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2091[4] { + if yyq2124[4] { if x.FSGroup == nil { r.EncodeNil() } else { - yy2107 := *x.FSGroup - yym2108 := z.EncBinary() - _ = yym2108 + yy2140 := *x.FSGroup + yym2141 := z.EncBinary() + _ = yym2141 if false { } else { - r.EncodeInt(int64(yy2107)) + r.EncodeInt(int64(yy2140)) } } } else { r.EncodeNil() } } else { - if yyq2091[4] { + if yyq2124[4] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("fsGroup")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.FSGroup == nil { r.EncodeNil() } else { - yy2109 := *x.FSGroup - yym2110 := z.EncBinary() - _ = yym2110 + yy2142 := *x.FSGroup + yym2143 := z.EncBinary() + _ = yym2143 if false { } else { - r.EncodeInt(int64(yy2109)) + r.EncodeInt(int64(yy2142)) } } } } - if yyr2091 || yy2arr2091 { + if yyr2124 || yy2arr2124 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -28242,25 +28771,25 @@ func (x *PodSecurityContext) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym2111 := z.DecBinary() - _ = yym2111 + yym2144 := z.DecBinary() + _ = yym2144 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2112 := r.ContainerType() - if yyct2112 == codecSelferValueTypeMap1234 { - yyl2112 := r.ReadMapStart() - if yyl2112 == 0 { + yyct2145 := r.ContainerType() + if yyct2145 == codecSelferValueTypeMap1234 { + yyl2145 := r.ReadMapStart() + if yyl2145 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2112, d) + x.codecDecodeSelfFromMap(yyl2145, d) } - } else if yyct2112 == codecSelferValueTypeArray1234 { - yyl2112 := r.ReadArrayStart() - if yyl2112 == 0 { + } else if yyct2145 == codecSelferValueTypeArray1234 { + yyl2145 := r.ReadArrayStart() + if yyl2145 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2112, d) + x.codecDecodeSelfFromArray(yyl2145, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -28272,12 +28801,12 @@ func (x *PodSecurityContext) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys2113Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys2113Slc - var yyhl2113 bool = l >= 0 - for yyj2113 := 0; ; yyj2113++ { - if yyhl2113 { - if yyj2113 >= l { + var yys2146Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys2146Slc + var yyhl2146 bool = l >= 0 + for yyj2146 := 0; ; yyj2146++ { + if yyhl2146 { + if yyj2146 >= l { break } } else { @@ -28286,10 +28815,10 @@ func (x *PodSecurityContext) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys2113Slc = r.DecodeBytes(yys2113Slc, true, true) - yys2113 := string(yys2113Slc) + yys2146Slc = r.DecodeBytes(yys2146Slc, true, true) + yys2146 := string(yys2146Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys2113 { + switch yys2146 { case "seLinuxOptions": if r.TryDecodeAsNil() { if x.SELinuxOptions != nil { @@ -28310,8 +28839,8 @@ func (x *PodSecurityContext) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) if x.RunAsUser == nil { x.RunAsUser = new(int64) } - yym2116 := z.DecBinary() - _ = yym2116 + yym2149 := z.DecBinary() + _ = yym2149 if false { } else { *((*int64)(x.RunAsUser)) = int64(r.DecodeInt(64)) @@ -28326,8 +28855,8 @@ func (x *PodSecurityContext) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) if x.RunAsNonRoot == nil { x.RunAsNonRoot = new(bool) } - yym2118 := z.DecBinary() - _ = yym2118 + yym2151 := z.DecBinary() + _ = yym2151 if false { } else { *((*bool)(x.RunAsNonRoot)) = r.DecodeBool() @@ -28337,12 +28866,12 @@ func (x *PodSecurityContext) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) if r.TryDecodeAsNil() { x.SupplementalGroups = nil } else { - yyv2119 := &x.SupplementalGroups - yym2120 := z.DecBinary() - _ = yym2120 + yyv2152 := &x.SupplementalGroups + yym2153 := z.DecBinary() + _ = yym2153 if false { } else { - z.F.DecSliceInt64X(yyv2119, false, d) + z.F.DecSliceInt64X(yyv2152, false, d) } } case "fsGroup": @@ -28354,17 +28883,17 @@ func (x *PodSecurityContext) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) if x.FSGroup == nil { x.FSGroup = new(int64) } - yym2122 := z.DecBinary() - _ = yym2122 + yym2155 := z.DecBinary() + _ = yym2155 if false { } else { *((*int64)(x.FSGroup)) = int64(r.DecodeInt(64)) } } default: - z.DecStructFieldNotFound(-1, yys2113) - } // end switch yys2113 - } // end for yyj2113 + z.DecStructFieldNotFound(-1, yys2146) + } // end switch yys2146 + } // end for yyj2146 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -28372,16 +28901,16 @@ func (x *PodSecurityContext) codecDecodeSelfFromArray(l int, d *codec1978.Decode var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj2123 int - var yyb2123 bool - var yyhl2123 bool = l >= 0 - yyj2123++ - if yyhl2123 { - yyb2123 = yyj2123 > l + var yyj2156 int + var yyb2156 bool + var yyhl2156 bool = l >= 0 + yyj2156++ + if yyhl2156 { + yyb2156 = yyj2156 > l } else { - yyb2123 = r.CheckBreak() + yyb2156 = r.CheckBreak() } - if yyb2123 { + if yyb2156 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -28396,13 +28925,13 @@ func (x *PodSecurityContext) codecDecodeSelfFromArray(l int, d *codec1978.Decode } x.SELinuxOptions.CodecDecodeSelf(d) } - yyj2123++ - if yyhl2123 { - yyb2123 = yyj2123 > l + yyj2156++ + if yyhl2156 { + yyb2156 = yyj2156 > l } else { - yyb2123 = r.CheckBreak() + yyb2156 = r.CheckBreak() } - if yyb2123 { + if yyb2156 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -28415,20 +28944,20 @@ func (x *PodSecurityContext) codecDecodeSelfFromArray(l int, d *codec1978.Decode if x.RunAsUser == nil { x.RunAsUser = new(int64) } - yym2126 := z.DecBinary() - _ = yym2126 + yym2159 := z.DecBinary() + _ = yym2159 if false { } else { *((*int64)(x.RunAsUser)) = int64(r.DecodeInt(64)) } } - yyj2123++ - if yyhl2123 { - yyb2123 = yyj2123 > l + yyj2156++ + if yyhl2156 { + yyb2156 = yyj2156 > l } else { - yyb2123 = r.CheckBreak() + yyb2156 = r.CheckBreak() } - if yyb2123 { + if yyb2156 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -28441,20 +28970,20 @@ func (x *PodSecurityContext) codecDecodeSelfFromArray(l int, d *codec1978.Decode if x.RunAsNonRoot == nil { x.RunAsNonRoot = new(bool) } - yym2128 := z.DecBinary() - _ = yym2128 + yym2161 := z.DecBinary() + _ = yym2161 if false { } else { *((*bool)(x.RunAsNonRoot)) = r.DecodeBool() } } - yyj2123++ - if yyhl2123 { - yyb2123 = yyj2123 > l + yyj2156++ + if yyhl2156 { + yyb2156 = yyj2156 > l } else { - yyb2123 = r.CheckBreak() + yyb2156 = r.CheckBreak() } - if yyb2123 { + if yyb2156 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -28462,21 +28991,21 @@ func (x *PodSecurityContext) codecDecodeSelfFromArray(l int, d *codec1978.Decode if r.TryDecodeAsNil() { x.SupplementalGroups = nil } else { - yyv2129 := &x.SupplementalGroups - yym2130 := z.DecBinary() - _ = yym2130 + yyv2162 := &x.SupplementalGroups + yym2163 := z.DecBinary() + _ = yym2163 if false { } else { - z.F.DecSliceInt64X(yyv2129, false, d) + z.F.DecSliceInt64X(yyv2162, false, d) } } - yyj2123++ - if yyhl2123 { - yyb2123 = yyj2123 > l + yyj2156++ + if yyhl2156 { + yyb2156 = yyj2156 > l } else { - yyb2123 = r.CheckBreak() + yyb2156 = r.CheckBreak() } - if yyb2123 { + if yyb2156 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -28489,25 +29018,25 @@ func (x *PodSecurityContext) codecDecodeSelfFromArray(l int, d *codec1978.Decode if x.FSGroup == nil { x.FSGroup = new(int64) } - yym2132 := z.DecBinary() - _ = yym2132 + yym2165 := z.DecBinary() + _ = yym2165 if false { } else { *((*int64)(x.FSGroup)) = int64(r.DecodeInt(64)) } } for { - yyj2123++ - if yyhl2123 { - yyb2123 = yyj2123 > l + yyj2156++ + if yyhl2156 { + yyb2156 = yyj2156 > l } else { - yyb2123 = r.CheckBreak() + yyb2156 = r.CheckBreak() } - if yyb2123 { + if yyb2156 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj2123-1, "") + z.DecStructFieldNotFound(yyj2156-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -28519,60 +29048,60 @@ func (x *PodStatus) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym2133 := z.EncBinary() - _ = yym2133 + yym2166 := z.EncBinary() + _ = yym2166 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - 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 { + yysep2167 := !z.EncBinary() + yy2arr2167 := z.EncBasicHandle().StructToArray + var yyq2167 [8]bool + _, _, _ = yysep2167, yyq2167, yy2arr2167 + const yyr2167 bool = false + yyq2167[0] = x.Phase != "" + yyq2167[1] = len(x.Conditions) != 0 + yyq2167[2] = x.Message != "" + yyq2167[3] = x.Reason != "" + yyq2167[4] = x.HostIP != "" + yyq2167[5] = x.PodIP != "" + yyq2167[6] = x.StartTime != nil + yyq2167[7] = len(x.ContainerStatuses) != 0 + var yynn2167 int + if yyr2167 || yy2arr2167 { r.EncodeArrayStart(8) } else { - yynn2134 = 0 - for _, b := range yyq2134 { + yynn2167 = 0 + for _, b := range yyq2167 { if b { - yynn2134++ + yynn2167++ } } - r.EncodeMapStart(yynn2134) - yynn2134 = 0 + r.EncodeMapStart(yynn2167) + yynn2167 = 0 } - if yyr2134 || yy2arr2134 { + if yyr2167 || yy2arr2167 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2134[0] { + if yyq2167[0] { x.Phase.CodecEncodeSelf(e) } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2134[0] { + if yyq2167[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("phase")) z.EncSendContainerState(codecSelfer_containerMapValue1234) x.Phase.CodecEncodeSelf(e) } } - if yyr2134 || yy2arr2134 { + if yyr2167 || yy2arr2167 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2134[1] { + if yyq2167[1] { if x.Conditions == nil { r.EncodeNil() } else { - yym2137 := z.EncBinary() - _ = yym2137 + yym2170 := z.EncBinary() + _ = yym2170 if false { } else { h.encSlicePodCondition(([]PodCondition)(x.Conditions), e) @@ -28582,15 +29111,15 @@ func (x *PodStatus) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq2134[1] { + if yyq2167[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("conditions")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.Conditions == nil { r.EncodeNil() } else { - yym2138 := z.EncBinary() - _ = yym2138 + yym2171 := z.EncBinary() + _ = yym2171 if false { } else { h.encSlicePodCondition(([]PodCondition)(x.Conditions), e) @@ -28598,11 +29127,11 @@ func (x *PodStatus) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr2134 || yy2arr2134 { + if yyr2167 || yy2arr2167 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2134[2] { - yym2140 := z.EncBinary() - _ = yym2140 + if yyq2167[2] { + yym2173 := z.EncBinary() + _ = yym2173 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Message)) @@ -28611,23 +29140,23 @@ func (x *PodStatus) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2134[2] { + if yyq2167[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("message")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym2141 := z.EncBinary() - _ = yym2141 + yym2174 := z.EncBinary() + _ = yym2174 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Message)) } } } - if yyr2134 || yy2arr2134 { + if yyr2167 || yy2arr2167 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2134[3] { - yym2143 := z.EncBinary() - _ = yym2143 + if yyq2167[3] { + yym2176 := z.EncBinary() + _ = yym2176 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Reason)) @@ -28636,23 +29165,23 @@ func (x *PodStatus) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2134[3] { + if yyq2167[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("reason")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym2144 := z.EncBinary() - _ = yym2144 + yym2177 := z.EncBinary() + _ = yym2177 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Reason)) } } } - if yyr2134 || yy2arr2134 { + if yyr2167 || yy2arr2167 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2134[4] { - yym2146 := z.EncBinary() - _ = yym2146 + if yyq2167[4] { + yym2179 := z.EncBinary() + _ = yym2179 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.HostIP)) @@ -28661,23 +29190,23 @@ func (x *PodStatus) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2134[4] { + if yyq2167[4] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("hostIP")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym2147 := z.EncBinary() - _ = yym2147 + yym2180 := z.EncBinary() + _ = yym2180 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.HostIP)) } } } - if yyr2134 || yy2arr2134 { + if yyr2167 || yy2arr2167 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2134[5] { - yym2149 := z.EncBinary() - _ = yym2149 + if yyq2167[5] { + yym2182 := z.EncBinary() + _ = yym2182 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.PodIP)) @@ -28686,31 +29215,31 @@ func (x *PodStatus) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2134[5] { + if yyq2167[5] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("podIP")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym2150 := z.EncBinary() - _ = yym2150 + yym2183 := z.EncBinary() + _ = yym2183 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.PodIP)) } } } - if yyr2134 || yy2arr2134 { + if yyr2167 || yy2arr2167 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2134[6] { + if yyq2167[6] { if x.StartTime == nil { r.EncodeNil() } else { - yym2152 := z.EncBinary() - _ = yym2152 + yym2185 := z.EncBinary() + _ = yym2185 if false { } else if z.HasExtensions() && z.EncExt(x.StartTime) { - } else if yym2152 { + } else if yym2185 { z.EncBinaryMarshal(x.StartTime) - } else if !yym2152 && z.IsJSONHandle() { + } else if !yym2185 && z.IsJSONHandle() { z.EncJSONMarshal(x.StartTime) } else { z.EncFallback(x.StartTime) @@ -28720,20 +29249,20 @@ func (x *PodStatus) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq2134[6] { + if yyq2167[6] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("startTime")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.StartTime == nil { r.EncodeNil() } else { - yym2153 := z.EncBinary() - _ = yym2153 + yym2186 := z.EncBinary() + _ = yym2186 if false { } else if z.HasExtensions() && z.EncExt(x.StartTime) { - } else if yym2153 { + } else if yym2186 { z.EncBinaryMarshal(x.StartTime) - } else if !yym2153 && z.IsJSONHandle() { + } else if !yym2186 && z.IsJSONHandle() { z.EncJSONMarshal(x.StartTime) } else { z.EncFallback(x.StartTime) @@ -28741,14 +29270,14 @@ func (x *PodStatus) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr2134 || yy2arr2134 { + if yyr2167 || yy2arr2167 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2134[7] { + if yyq2167[7] { if x.ContainerStatuses == nil { r.EncodeNil() } else { - yym2155 := z.EncBinary() - _ = yym2155 + yym2188 := z.EncBinary() + _ = yym2188 if false { } else { h.encSliceContainerStatus(([]ContainerStatus)(x.ContainerStatuses), e) @@ -28758,15 +29287,15 @@ func (x *PodStatus) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq2134[7] { + if yyq2167[7] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("containerStatuses")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.ContainerStatuses == nil { r.EncodeNil() } else { - yym2156 := z.EncBinary() - _ = yym2156 + yym2189 := z.EncBinary() + _ = yym2189 if false { } else { h.encSliceContainerStatus(([]ContainerStatus)(x.ContainerStatuses), e) @@ -28774,7 +29303,7 @@ func (x *PodStatus) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr2134 || yy2arr2134 { + if yyr2167 || yy2arr2167 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -28787,25 +29316,25 @@ func (x *PodStatus) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym2157 := z.DecBinary() - _ = yym2157 + yym2190 := z.DecBinary() + _ = yym2190 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2158 := r.ContainerType() - if yyct2158 == codecSelferValueTypeMap1234 { - yyl2158 := r.ReadMapStart() - if yyl2158 == 0 { + yyct2191 := r.ContainerType() + if yyct2191 == codecSelferValueTypeMap1234 { + yyl2191 := r.ReadMapStart() + if yyl2191 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2158, d) + x.codecDecodeSelfFromMap(yyl2191, d) } - } else if yyct2158 == codecSelferValueTypeArray1234 { - yyl2158 := r.ReadArrayStart() - if yyl2158 == 0 { + } else if yyct2191 == codecSelferValueTypeArray1234 { + yyl2191 := r.ReadArrayStart() + if yyl2191 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2158, d) + x.codecDecodeSelfFromArray(yyl2191, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -28817,12 +29346,12 @@ func (x *PodStatus) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys2159Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys2159Slc - var yyhl2159 bool = l >= 0 - for yyj2159 := 0; ; yyj2159++ { - if yyhl2159 { - if yyj2159 >= l { + var yys2192Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys2192Slc + var yyhl2192 bool = l >= 0 + for yyj2192 := 0; ; yyj2192++ { + if yyhl2192 { + if yyj2192 >= l { break } } else { @@ -28831,10 +29360,10 @@ func (x *PodStatus) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys2159Slc = r.DecodeBytes(yys2159Slc, true, true) - yys2159 := string(yys2159Slc) + yys2192Slc = r.DecodeBytes(yys2192Slc, true, true) + yys2192 := string(yys2192Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys2159 { + switch yys2192 { case "phase": if r.TryDecodeAsNil() { x.Phase = "" @@ -28845,12 +29374,12 @@ func (x *PodStatus) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.Conditions = nil } else { - yyv2161 := &x.Conditions - yym2162 := z.DecBinary() - _ = yym2162 + yyv2194 := &x.Conditions + yym2195 := z.DecBinary() + _ = yym2195 if false { } else { - h.decSlicePodCondition((*[]PodCondition)(yyv2161), d) + h.decSlicePodCondition((*[]PodCondition)(yyv2194), d) } } case "message": @@ -28886,13 +29415,13 @@ func (x *PodStatus) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { if x.StartTime == nil { x.StartTime = new(pkg2_unversioned.Time) } - yym2168 := z.DecBinary() - _ = yym2168 + yym2201 := z.DecBinary() + _ = yym2201 if false { } else if z.HasExtensions() && z.DecExt(x.StartTime) { - } else if yym2168 { + } else if yym2201 { z.DecBinaryUnmarshal(x.StartTime) - } else if !yym2168 && z.IsJSONHandle() { + } else if !yym2201 && z.IsJSONHandle() { z.DecJSONUnmarshal(x.StartTime) } else { z.DecFallback(x.StartTime, false) @@ -28902,412 +29431,22 @@ func (x *PodStatus) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.ContainerStatuses = nil } else { - yyv2169 := &x.ContainerStatuses - yym2170 := z.DecBinary() - _ = yym2170 + yyv2202 := &x.ContainerStatuses + yym2203 := z.DecBinary() + _ = yym2203 if false { } else { - h.decSliceContainerStatus((*[]ContainerStatus)(yyv2169), d) + h.decSliceContainerStatus((*[]ContainerStatus)(yyv2202), d) } } default: - z.DecStructFieldNotFound(-1, yys2159) - } // end switch yys2159 - } // end for yyj2159 + z.DecStructFieldNotFound(-1, yys2192) + } // end switch yys2192 + } // end for yyj2192 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 yyj2171 int - var yyb2171 bool - var yyhl2171 bool = l >= 0 - yyj2171++ - if yyhl2171 { - yyb2171 = yyj2171 > l - } else { - yyb2171 = r.CheckBreak() - } - if yyb2171 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Phase = "" - } else { - x.Phase = PodPhase(r.DecodeString()) - } - yyj2171++ - if yyhl2171 { - yyb2171 = yyj2171 > l - } else { - yyb2171 = r.CheckBreak() - } - if yyb2171 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Conditions = nil - } else { - yyv2173 := &x.Conditions - yym2174 := z.DecBinary() - _ = yym2174 - if false { - } else { - h.decSlicePodCondition((*[]PodCondition)(yyv2173), d) - } - } - yyj2171++ - if yyhl2171 { - yyb2171 = yyj2171 > l - } else { - yyb2171 = r.CheckBreak() - } - if yyb2171 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Message = "" - } else { - x.Message = string(r.DecodeString()) - } - yyj2171++ - if yyhl2171 { - yyb2171 = yyj2171 > l - } else { - yyb2171 = r.CheckBreak() - } - if yyb2171 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Reason = "" - } else { - x.Reason = string(r.DecodeString()) - } - yyj2171++ - if yyhl2171 { - yyb2171 = yyj2171 > l - } else { - yyb2171 = r.CheckBreak() - } - if yyb2171 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.HostIP = "" - } else { - x.HostIP = string(r.DecodeString()) - } - yyj2171++ - if yyhl2171 { - yyb2171 = yyj2171 > l - } else { - yyb2171 = r.CheckBreak() - } - if yyb2171 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.PodIP = "" - } else { - x.PodIP = string(r.DecodeString()) - } - yyj2171++ - if yyhl2171 { - yyb2171 = yyj2171 > l - } else { - yyb2171 = r.CheckBreak() - } - if yyb2171 { - 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) - } - yym2180 := z.DecBinary() - _ = yym2180 - if false { - } else if z.HasExtensions() && z.DecExt(x.StartTime) { - } else if yym2180 { - z.DecBinaryUnmarshal(x.StartTime) - } else if !yym2180 && z.IsJSONHandle() { - z.DecJSONUnmarshal(x.StartTime) - } else { - z.DecFallback(x.StartTime, false) - } - } - yyj2171++ - if yyhl2171 { - yyb2171 = yyj2171 > l - } else { - yyb2171 = r.CheckBreak() - } - if yyb2171 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.ContainerStatuses = nil - } else { - yyv2181 := &x.ContainerStatuses - yym2182 := z.DecBinary() - _ = yym2182 - if false { - } else { - h.decSliceContainerStatus((*[]ContainerStatus)(yyv2181), d) - } - } - for { - yyj2171++ - if yyhl2171 { - yyb2171 = yyj2171 > l - } else { - yyb2171 = r.CheckBreak() - } - if yyb2171 { - break - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj2171-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 { - yym2183 := z.EncBinary() - _ = yym2183 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - 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 { - yynn2184 = 0 - for _, b := range yyq2184 { - if b { - yynn2184++ - } - } - r.EncodeMapStart(yynn2184) - yynn2184 = 0 - } - if yyr2184 || yy2arr2184 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2184[0] { - yym2186 := z.EncBinary() - _ = yym2186 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) - } - } else { - r.EncodeString(codecSelferC_UTF81234, "") - } - } else { - if yyq2184[0] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("kind")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym2187 := z.EncBinary() - _ = yym2187 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) - } - } - } - if yyr2184 || yy2arr2184 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2184[1] { - yym2189 := z.EncBinary() - _ = yym2189 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) - } - } else { - r.EncodeString(codecSelferC_UTF81234, "") - } - } else { - if yyq2184[1] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym2190 := z.EncBinary() - _ = yym2190 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) - } - } - } - 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) - } - } - } -} - -func (x *PodStatusResult) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - yym2197 := z.DecBinary() - _ = yym2197 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - yyct2198 := r.ContainerType() - if yyct2198 == codecSelferValueTypeMap1234 { - yyl2198 := r.ReadMapStart() - if yyl2198 == 0 { - z.DecSendContainerState(codecSelfer_containerMapEnd1234) - } else { - x.codecDecodeSelfFromMap(yyl2198, d) - } - } else if yyct2198 == codecSelferValueTypeArray1234 { - yyl2198 := r.ReadArrayStart() - if yyl2198 == 0 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - x.codecDecodeSelfFromArray(yyl2198, 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 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 { - if r.CheckBreak() { - break - } - } - z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys2199Slc = r.DecodeBytes(yys2199Slc, true, true) - yys2199 := string(yys2199Slc) - z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys2199 { - case "kind": - if 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 { - 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, yys2199) - } // end switch yys2199 - } // end for yyj2199 - z.DecSendContainerState(codecSelfer_containerMapEnd1234) -} - -func (x *PodStatusResult) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r @@ -29326,9 +29465,9 @@ func (x *PodStatusResult) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.Kind = "" + x.Phase = "" } else { - x.Kind = string(r.DecodeString()) + x.Phase = PodPhase(r.DecodeString()) } yyj2204++ if yyhl2204 { @@ -29342,9 +29481,15 @@ func (x *PodStatusResult) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.APIVersion = "" + x.Conditions = nil } else { - x.APIVersion = string(r.DecodeString()) + yyv2206 := &x.Conditions + yym2207 := z.DecBinary() + _ = yym2207 + if false { + } else { + h.decSlicePodCondition((*[]PodCondition)(yyv2206), d) + } } yyj2204++ if yyhl2204 { @@ -29358,10 +29503,9 @@ func (x *PodStatusResult) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.ObjectMeta = ObjectMeta{} + x.Message = "" } else { - yyv2207 := &x.ObjectMeta - yyv2207.CodecDecodeSelf(d) + x.Message = string(r.DecodeString()) } yyj2204++ if yyhl2204 { @@ -29375,10 +29519,94 @@ func (x *PodStatusResult) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.Status = PodStatus{} + x.Reason = "" } else { - yyv2208 := &x.Status - yyv2208.CodecDecodeSelf(d) + x.Reason = string(r.DecodeString()) + } + yyj2204++ + if yyhl2204 { + yyb2204 = yyj2204 > l + } else { + yyb2204 = r.CheckBreak() + } + if yyb2204 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.HostIP = "" + } else { + x.HostIP = string(r.DecodeString()) + } + yyj2204++ + if yyhl2204 { + yyb2204 = yyj2204 > l + } else { + yyb2204 = r.CheckBreak() + } + if yyb2204 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.PodIP = "" + } else { + x.PodIP = string(r.DecodeString()) + } + yyj2204++ + if yyhl2204 { + yyb2204 = yyj2204 > l + } else { + yyb2204 = r.CheckBreak() + } + if yyb2204 { + 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) + } + yym2213 := z.DecBinary() + _ = yym2213 + if false { + } else if z.HasExtensions() && z.DecExt(x.StartTime) { + } else if yym2213 { + z.DecBinaryUnmarshal(x.StartTime) + } else if !yym2213 && z.IsJSONHandle() { + z.DecJSONUnmarshal(x.StartTime) + } else { + z.DecFallback(x.StartTime, false) + } + } + yyj2204++ + if yyhl2204 { + yyb2204 = yyj2204 > l + } else { + yyb2204 = r.CheckBreak() + } + if yyb2204 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.ContainerStatuses = nil + } else { + yyv2214 := &x.ContainerStatuses + yym2215 := z.DecBinary() + _ = yym2215 + if false { + } else { + h.decSliceContainerStatus((*[]ContainerStatus)(yyv2214), d) + } } for { yyj2204++ @@ -29396,6 +29624,307 @@ func (x *PodStatusResult) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) 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 { + yym2216 := z.EncBinary() + _ = yym2216 + if false { + } else if z.HasExtensions() && z.EncExt(x) { + } else { + yysep2217 := !z.EncBinary() + yy2arr2217 := z.EncBasicHandle().StructToArray + var yyq2217 [4]bool + _, _, _ = yysep2217, yyq2217, yy2arr2217 + const yyr2217 bool = false + yyq2217[0] = x.Kind != "" + yyq2217[1] = x.APIVersion != "" + yyq2217[2] = true + yyq2217[3] = true + var yynn2217 int + if yyr2217 || yy2arr2217 { + r.EncodeArrayStart(4) + } else { + yynn2217 = 0 + for _, b := range yyq2217 { + if b { + yynn2217++ + } + } + r.EncodeMapStart(yynn2217) + yynn2217 = 0 + } + if yyr2217 || yy2arr2217 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq2217[0] { + yym2219 := z.EncBinary() + _ = yym2219 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq2217[0] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("kind")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym2220 := z.EncBinary() + _ = yym2220 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + } + } + } + if yyr2217 || yy2arr2217 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq2217[1] { + yym2222 := z.EncBinary() + _ = yym2222 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq2217[1] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym2223 := z.EncBinary() + _ = yym2223 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + } + } + } + if yyr2217 || yy2arr2217 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq2217[2] { + yy2225 := &x.ObjectMeta + yy2225.CodecEncodeSelf(e) + } else { + r.EncodeNil() + } + } else { + if yyq2217[2] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("metadata")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yy2226 := &x.ObjectMeta + yy2226.CodecEncodeSelf(e) + } + } + if yyr2217 || yy2arr2217 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq2217[3] { + yy2228 := &x.Status + yy2228.CodecEncodeSelf(e) + } else { + r.EncodeNil() + } + } else { + if yyq2217[3] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("status")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yy2229 := &x.Status + yy2229.CodecEncodeSelf(e) + } + } + if yyr2217 || yy2arr2217 { + 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 + yym2230 := z.DecBinary() + _ = yym2230 + if false { + } else if z.HasExtensions() && z.DecExt(x) { + } else { + yyct2231 := r.ContainerType() + if yyct2231 == codecSelferValueTypeMap1234 { + yyl2231 := r.ReadMapStart() + if yyl2231 == 0 { + z.DecSendContainerState(codecSelfer_containerMapEnd1234) + } else { + x.codecDecodeSelfFromMap(yyl2231, d) + } + } else if yyct2231 == codecSelferValueTypeArray1234 { + yyl2231 := r.ReadArrayStart() + if yyl2231 == 0 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + x.codecDecodeSelfFromArray(yyl2231, 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 yys2232Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys2232Slc + var yyhl2232 bool = l >= 0 + for yyj2232 := 0; ; yyj2232++ { + if yyhl2232 { + if yyj2232 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + z.DecSendContainerState(codecSelfer_containerMapKey1234) + yys2232Slc = r.DecodeBytes(yys2232Slc, true, true) + yys2232 := string(yys2232Slc) + z.DecSendContainerState(codecSelfer_containerMapValue1234) + switch yys2232 { + case "kind": + if 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 { + yyv2235 := &x.ObjectMeta + yyv2235.CodecDecodeSelf(d) + } + case "status": + if r.TryDecodeAsNil() { + x.Status = PodStatus{} + } else { + yyv2236 := &x.Status + yyv2236.CodecDecodeSelf(d) + } + default: + z.DecStructFieldNotFound(-1, yys2232) + } // end switch yys2232 + } // end for yyj2232 + 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 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() { + x.Kind = "" + } else { + x.Kind = string(r.DecodeString()) + } + 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.APIVersion = "" + } else { + x.APIVersion = string(r.DecodeString()) + } + 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.ObjectMeta = ObjectMeta{} + } else { + yyv2240 := &x.ObjectMeta + yyv2240.CodecDecodeSelf(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() { + x.Status = PodStatus{} + } else { + yyv2241 := &x.Status + yyv2241.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 *Pod) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) @@ -29403,39 +29932,39 @@ func (x *Pod) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym2209 := z.EncBinary() - _ = yym2209 + yym2242 := z.EncBinary() + _ = yym2242 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - 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 { + yysep2243 := !z.EncBinary() + yy2arr2243 := z.EncBasicHandle().StructToArray + var yyq2243 [5]bool + _, _, _ = yysep2243, yyq2243, yy2arr2243 + const yyr2243 bool = false + yyq2243[0] = x.Kind != "" + yyq2243[1] = x.APIVersion != "" + yyq2243[2] = true + yyq2243[3] = true + yyq2243[4] = true + var yynn2243 int + if yyr2243 || yy2arr2243 { r.EncodeArrayStart(5) } else { - yynn2210 = 0 - for _, b := range yyq2210 { + yynn2243 = 0 + for _, b := range yyq2243 { if b { - yynn2210++ + yynn2243++ } } - r.EncodeMapStart(yynn2210) - yynn2210 = 0 + r.EncodeMapStart(yynn2243) + yynn2243 = 0 } - if yyr2210 || yy2arr2210 { + if yyr2243 || yy2arr2243 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2210[0] { - yym2212 := z.EncBinary() - _ = yym2212 + if yyq2243[0] { + yym2245 := z.EncBinary() + _ = yym2245 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) @@ -29444,23 +29973,23 @@ func (x *Pod) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2210[0] { + if yyq2243[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym2213 := z.EncBinary() - _ = yym2213 + yym2246 := z.EncBinary() + _ = yym2246 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } - if yyr2210 || yy2arr2210 { + if yyr2243 || yy2arr2243 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2210[1] { - yym2215 := z.EncBinary() - _ = yym2215 + if yyq2243[1] { + yym2248 := z.EncBinary() + _ = yym2248 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) @@ -29469,70 +29998,70 @@ func (x *Pod) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2210[1] { + if yyq2243[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym2216 := z.EncBinary() - _ = yym2216 + yym2249 := z.EncBinary() + _ = yym2249 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } - if yyr2210 || yy2arr2210 { + if yyr2243 || yy2arr2243 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2210[2] { - yy2218 := &x.ObjectMeta - yy2218.CodecEncodeSelf(e) + if yyq2243[2] { + yy2251 := &x.ObjectMeta + yy2251.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { - if yyq2210[2] { + if yyq2243[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy2219 := &x.ObjectMeta - yy2219.CodecEncodeSelf(e) + yy2252 := &x.ObjectMeta + yy2252.CodecEncodeSelf(e) } } - if yyr2210 || yy2arr2210 { + if yyr2243 || yy2arr2243 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2210[3] { - yy2221 := &x.Spec - yy2221.CodecEncodeSelf(e) + if yyq2243[3] { + yy2254 := &x.Spec + yy2254.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { - if yyq2210[3] { + if yyq2243[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("spec")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy2222 := &x.Spec - yy2222.CodecEncodeSelf(e) + yy2255 := &x.Spec + yy2255.CodecEncodeSelf(e) } } - if yyr2210 || yy2arr2210 { + if yyr2243 || yy2arr2243 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2210[4] { - yy2224 := &x.Status - yy2224.CodecEncodeSelf(e) + if yyq2243[4] { + yy2257 := &x.Status + yy2257.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { - if yyq2210[4] { + if yyq2243[4] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("status")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy2225 := &x.Status - yy2225.CodecEncodeSelf(e) + yy2258 := &x.Status + yy2258.CodecEncodeSelf(e) } } - if yyr2210 || yy2arr2210 { + if yyr2243 || yy2arr2243 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -29545,25 +30074,25 @@ func (x *Pod) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym2226 := z.DecBinary() - _ = yym2226 + yym2259 := z.DecBinary() + _ = yym2259 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2227 := r.ContainerType() - if yyct2227 == codecSelferValueTypeMap1234 { - yyl2227 := r.ReadMapStart() - if yyl2227 == 0 { + yyct2260 := r.ContainerType() + if yyct2260 == codecSelferValueTypeMap1234 { + yyl2260 := r.ReadMapStart() + if yyl2260 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2227, d) + x.codecDecodeSelfFromMap(yyl2260, d) } - } else if yyct2227 == codecSelferValueTypeArray1234 { - yyl2227 := r.ReadArrayStart() - if yyl2227 == 0 { + } else if yyct2260 == codecSelferValueTypeArray1234 { + yyl2260 := r.ReadArrayStart() + if yyl2260 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2227, d) + x.codecDecodeSelfFromArray(yyl2260, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -29575,12 +30104,12 @@ func (x *Pod) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys2228Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys2228Slc - var yyhl2228 bool = l >= 0 - for yyj2228 := 0; ; yyj2228++ { - if yyhl2228 { - if yyj2228 >= l { + var yys2261Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys2261Slc + var yyhl2261 bool = l >= 0 + for yyj2261 := 0; ; yyj2261++ { + if yyhl2261 { + if yyj2261 >= l { break } } else { @@ -29589,10 +30118,10 @@ func (x *Pod) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys2228Slc = r.DecodeBytes(yys2228Slc, true, true) - yys2228 := string(yys2228Slc) + yys2261Slc = r.DecodeBytes(yys2261Slc, true, true) + yys2261 := string(yys2261Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys2228 { + switch yys2261 { case "kind": if r.TryDecodeAsNil() { x.Kind = "" @@ -29609,27 +30138,27 @@ func (x *Pod) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.ObjectMeta = ObjectMeta{} } else { - yyv2231 := &x.ObjectMeta - yyv2231.CodecDecodeSelf(d) + yyv2264 := &x.ObjectMeta + yyv2264.CodecDecodeSelf(d) } case "spec": if r.TryDecodeAsNil() { x.Spec = PodSpec{} } else { - yyv2232 := &x.Spec - yyv2232.CodecDecodeSelf(d) + yyv2265 := &x.Spec + yyv2265.CodecDecodeSelf(d) } case "status": if r.TryDecodeAsNil() { x.Status = PodStatus{} } else { - yyv2233 := &x.Status - yyv2233.CodecDecodeSelf(d) + yyv2266 := &x.Status + yyv2266.CodecDecodeSelf(d) } default: - z.DecStructFieldNotFound(-1, yys2228) - } // end switch yys2228 - } // end for yyj2228 + z.DecStructFieldNotFound(-1, yys2261) + } // end switch yys2261 + } // end for yyj2261 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -29637,16 +30166,16 @@ func (x *Pod) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj2234 int - var yyb2234 bool - var yyhl2234 bool = l >= 0 - yyj2234++ - if yyhl2234 { - yyb2234 = yyj2234 > l + var yyj2267 int + var yyb2267 bool + var yyhl2267 bool = l >= 0 + yyj2267++ + if yyhl2267 { + yyb2267 = yyj2267 > l } else { - yyb2234 = r.CheckBreak() + yyb2267 = r.CheckBreak() } - if yyb2234 { + if yyb2267 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -29656,13 +30185,13 @@ func (x *Pod) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.Kind = string(r.DecodeString()) } - yyj2234++ - if yyhl2234 { - yyb2234 = yyj2234 > l + yyj2267++ + if yyhl2267 { + yyb2267 = yyj2267 > l } else { - yyb2234 = r.CheckBreak() + yyb2267 = r.CheckBreak() } - if yyb2234 { + if yyb2267 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -29672,13 +30201,13 @@ func (x *Pod) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.APIVersion = string(r.DecodeString()) } - yyj2234++ - if yyhl2234 { - yyb2234 = yyj2234 > l + yyj2267++ + if yyhl2267 { + yyb2267 = yyj2267 > l } else { - yyb2234 = r.CheckBreak() + yyb2267 = r.CheckBreak() } - if yyb2234 { + if yyb2267 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -29686,16 +30215,16 @@ func (x *Pod) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.ObjectMeta = ObjectMeta{} } else { - yyv2237 := &x.ObjectMeta - yyv2237.CodecDecodeSelf(d) + yyv2270 := &x.ObjectMeta + yyv2270.CodecDecodeSelf(d) } - yyj2234++ - if yyhl2234 { - yyb2234 = yyj2234 > l + yyj2267++ + if yyhl2267 { + yyb2267 = yyj2267 > l } else { - yyb2234 = r.CheckBreak() + yyb2267 = r.CheckBreak() } - if yyb2234 { + if yyb2267 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -29703,16 +30232,16 @@ func (x *Pod) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.Spec = PodSpec{} } else { - yyv2238 := &x.Spec - yyv2238.CodecDecodeSelf(d) + yyv2271 := &x.Spec + yyv2271.CodecDecodeSelf(d) } - yyj2234++ - if yyhl2234 { - yyb2234 = yyj2234 > l + yyj2267++ + if yyhl2267 { + yyb2267 = yyj2267 > l } else { - yyb2234 = r.CheckBreak() + yyb2267 = r.CheckBreak() } - if yyb2234 { + if yyb2267 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -29720,21 +30249,21 @@ func (x *Pod) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.Status = PodStatus{} } else { - yyv2239 := &x.Status - yyv2239.CodecDecodeSelf(d) + yyv2272 := &x.Status + yyv2272.CodecDecodeSelf(d) } for { - yyj2234++ - if yyhl2234 { - yyb2234 = yyj2234 > l + yyj2267++ + if yyhl2267 { + yyb2267 = yyj2267 > l } else { - yyb2234 = r.CheckBreak() + yyb2267 = r.CheckBreak() } - if yyb2234 { + if yyb2267 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj2234-1, "") + z.DecStructFieldNotFound(yyj2267-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -29746,37 +30275,37 @@ func (x *PodList) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym2240 := z.EncBinary() - _ = yym2240 + yym2273 := z.EncBinary() + _ = yym2273 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - 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 { + yysep2274 := !z.EncBinary() + yy2arr2274 := z.EncBasicHandle().StructToArray + var yyq2274 [4]bool + _, _, _ = yysep2274, yyq2274, yy2arr2274 + const yyr2274 bool = false + yyq2274[0] = x.Kind != "" + yyq2274[1] = x.APIVersion != "" + yyq2274[2] = true + var yynn2274 int + if yyr2274 || yy2arr2274 { r.EncodeArrayStart(4) } else { - yynn2241 = 1 - for _, b := range yyq2241 { + yynn2274 = 1 + for _, b := range yyq2274 { if b { - yynn2241++ + yynn2274++ } } - r.EncodeMapStart(yynn2241) - yynn2241 = 0 + r.EncodeMapStart(yynn2274) + yynn2274 = 0 } - if yyr2241 || yy2arr2241 { + if yyr2274 || yy2arr2274 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2241[0] { - yym2243 := z.EncBinary() - _ = yym2243 + if yyq2274[0] { + yym2276 := z.EncBinary() + _ = yym2276 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) @@ -29785,23 +30314,23 @@ func (x *PodList) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2241[0] { + if yyq2274[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym2244 := z.EncBinary() - _ = yym2244 + yym2277 := z.EncBinary() + _ = yym2277 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } - if yyr2241 || yy2arr2241 { + if yyr2274 || yy2arr2274 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2241[1] { - yym2246 := z.EncBinary() - _ = yym2246 + if yyq2274[1] { + yym2279 := z.EncBinary() + _ = yym2279 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) @@ -29810,54 +30339,54 @@ func (x *PodList) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2241[1] { + if yyq2274[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym2247 := z.EncBinary() - _ = yym2247 + yym2280 := z.EncBinary() + _ = yym2280 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } - if yyr2241 || yy2arr2241 { + if yyr2274 || yy2arr2274 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2241[2] { - yy2249 := &x.ListMeta - yym2250 := z.EncBinary() - _ = yym2250 + if yyq2274[2] { + yy2282 := &x.ListMeta + yym2283 := z.EncBinary() + _ = yym2283 if false { - } else if z.HasExtensions() && z.EncExt(yy2249) { + } else if z.HasExtensions() && z.EncExt(yy2282) { } else { - z.EncFallback(yy2249) + z.EncFallback(yy2282) } } else { r.EncodeNil() } } else { - if yyq2241[2] { + if yyq2274[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy2251 := &x.ListMeta - yym2252 := z.EncBinary() - _ = yym2252 + yy2284 := &x.ListMeta + yym2285 := z.EncBinary() + _ = yym2285 if false { - } else if z.HasExtensions() && z.EncExt(yy2251) { + } else if z.HasExtensions() && z.EncExt(yy2284) { } else { - z.EncFallback(yy2251) + z.EncFallback(yy2284) } } } - if yyr2241 || yy2arr2241 { + if yyr2274 || yy2arr2274 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.Items == nil { r.EncodeNil() } else { - yym2254 := z.EncBinary() - _ = yym2254 + yym2287 := z.EncBinary() + _ = yym2287 if false { } else { h.encSlicePod(([]Pod)(x.Items), e) @@ -29870,15 +30399,15 @@ func (x *PodList) CodecEncodeSelf(e *codec1978.Encoder) { if x.Items == nil { r.EncodeNil() } else { - yym2255 := z.EncBinary() - _ = yym2255 + yym2288 := z.EncBinary() + _ = yym2288 if false { } else { h.encSlicePod(([]Pod)(x.Items), e) } } } - if yyr2241 || yy2arr2241 { + if yyr2274 || yy2arr2274 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -29891,25 +30420,25 @@ func (x *PodList) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym2256 := z.DecBinary() - _ = yym2256 + yym2289 := z.DecBinary() + _ = yym2289 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2257 := r.ContainerType() - if yyct2257 == codecSelferValueTypeMap1234 { - yyl2257 := r.ReadMapStart() - if yyl2257 == 0 { + yyct2290 := r.ContainerType() + if yyct2290 == codecSelferValueTypeMap1234 { + yyl2290 := r.ReadMapStart() + if yyl2290 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2257, d) + x.codecDecodeSelfFromMap(yyl2290, d) } - } else if yyct2257 == codecSelferValueTypeArray1234 { - yyl2257 := r.ReadArrayStart() - if yyl2257 == 0 { + } else if yyct2290 == codecSelferValueTypeArray1234 { + yyl2290 := r.ReadArrayStart() + if yyl2290 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2257, d) + x.codecDecodeSelfFromArray(yyl2290, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -29921,12 +30450,12 @@ func (x *PodList) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys2258Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys2258Slc - var yyhl2258 bool = l >= 0 - for yyj2258 := 0; ; yyj2258++ { - if yyhl2258 { - if yyj2258 >= l { + var yys2291Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys2291Slc + var yyhl2291 bool = l >= 0 + for yyj2291 := 0; ; yyj2291++ { + if yyhl2291 { + if yyj2291 >= l { break } } else { @@ -29935,10 +30464,10 @@ func (x *PodList) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys2258Slc = r.DecodeBytes(yys2258Slc, true, true) - yys2258 := string(yys2258Slc) + yys2291Slc = r.DecodeBytes(yys2291Slc, true, true) + yys2291 := string(yys2291Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys2258 { + switch yys2291 { case "kind": if r.TryDecodeAsNil() { x.Kind = "" @@ -29955,31 +30484,31 @@ func (x *PodList) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.ListMeta = pkg2_unversioned.ListMeta{} } else { - yyv2261 := &x.ListMeta - yym2262 := z.DecBinary() - _ = yym2262 + yyv2294 := &x.ListMeta + yym2295 := z.DecBinary() + _ = yym2295 if false { - } else if z.HasExtensions() && z.DecExt(yyv2261) { + } else if z.HasExtensions() && z.DecExt(yyv2294) { } else { - z.DecFallback(yyv2261, false) + z.DecFallback(yyv2294, false) } } case "items": if r.TryDecodeAsNil() { x.Items = nil } else { - yyv2263 := &x.Items - yym2264 := z.DecBinary() - _ = yym2264 + yyv2296 := &x.Items + yym2297 := z.DecBinary() + _ = yym2297 if false { } else { - h.decSlicePod((*[]Pod)(yyv2263), d) + h.decSlicePod((*[]Pod)(yyv2296), d) } } default: - z.DecStructFieldNotFound(-1, yys2258) - } // end switch yys2258 - } // end for yyj2258 + z.DecStructFieldNotFound(-1, yys2291) + } // end switch yys2291 + } // end for yyj2291 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -29987,16 +30516,16 @@ func (x *PodList) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj2265 int - var yyb2265 bool - var yyhl2265 bool = l >= 0 - yyj2265++ - if yyhl2265 { - yyb2265 = yyj2265 > l + var yyj2298 int + var yyb2298 bool + var yyhl2298 bool = l >= 0 + yyj2298++ + if yyhl2298 { + yyb2298 = yyj2298 > l } else { - yyb2265 = r.CheckBreak() + yyb2298 = r.CheckBreak() } - if yyb2265 { + if yyb2298 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -30006,13 +30535,13 @@ func (x *PodList) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.Kind = string(r.DecodeString()) } - yyj2265++ - if yyhl2265 { - yyb2265 = yyj2265 > l + yyj2298++ + if yyhl2298 { + yyb2298 = yyj2298 > l } else { - yyb2265 = r.CheckBreak() + yyb2298 = r.CheckBreak() } - if yyb2265 { + if yyb2298 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -30022,13 +30551,13 @@ func (x *PodList) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.APIVersion = string(r.DecodeString()) } - yyj2265++ - if yyhl2265 { - yyb2265 = yyj2265 > l + yyj2298++ + if yyhl2298 { + yyb2298 = yyj2298 > l } else { - yyb2265 = r.CheckBreak() + yyb2298 = r.CheckBreak() } - if yyb2265 { + if yyb2298 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -30036,22 +30565,22 @@ func (x *PodList) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.ListMeta = pkg2_unversioned.ListMeta{} } else { - yyv2268 := &x.ListMeta - yym2269 := z.DecBinary() - _ = yym2269 + yyv2301 := &x.ListMeta + yym2302 := z.DecBinary() + _ = yym2302 if false { - } else if z.HasExtensions() && z.DecExt(yyv2268) { + } else if z.HasExtensions() && z.DecExt(yyv2301) { } else { - z.DecFallback(yyv2268, false) + z.DecFallback(yyv2301, false) } } - yyj2265++ - if yyhl2265 { - yyb2265 = yyj2265 > l + yyj2298++ + if yyhl2298 { + yyb2298 = yyj2298 > l } else { - yyb2265 = r.CheckBreak() + yyb2298 = r.CheckBreak() } - if yyb2265 { + if yyb2298 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -30059,26 +30588,26 @@ func (x *PodList) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.Items = nil } else { - yyv2270 := &x.Items - yym2271 := z.DecBinary() - _ = yym2271 + yyv2303 := &x.Items + yym2304 := z.DecBinary() + _ = yym2304 if false { } else { - h.decSlicePod((*[]Pod)(yyv2270), d) + h.decSlicePod((*[]Pod)(yyv2303), d) } } for { - yyj2265++ - if yyhl2265 { - yyb2265 = yyj2265 > l + yyj2298++ + if yyhl2298 { + yyb2298 = yyj2298 > l } else { - yyb2265 = r.CheckBreak() + yyb2298 = r.CheckBreak() } - if yyb2265 { + if yyb2298 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj2265-1, "") + z.DecStructFieldNotFound(yyj2298-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -30090,66 +30619,66 @@ func (x *PodTemplateSpec) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym2272 := z.EncBinary() - _ = yym2272 + yym2305 := z.EncBinary() + _ = yym2305 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - 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 { + yysep2306 := !z.EncBinary() + yy2arr2306 := z.EncBasicHandle().StructToArray + var yyq2306 [2]bool + _, _, _ = yysep2306, yyq2306, yy2arr2306 + const yyr2306 bool = false + yyq2306[0] = true + yyq2306[1] = true + var yynn2306 int + if yyr2306 || yy2arr2306 { r.EncodeArrayStart(2) } else { - yynn2273 = 0 - for _, b := range yyq2273 { + yynn2306 = 0 + for _, b := range yyq2306 { if b { - yynn2273++ + yynn2306++ } } - r.EncodeMapStart(yynn2273) - yynn2273 = 0 + r.EncodeMapStart(yynn2306) + yynn2306 = 0 } - if yyr2273 || yy2arr2273 { + if yyr2306 || yy2arr2306 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2273[0] { - yy2275 := &x.ObjectMeta - yy2275.CodecEncodeSelf(e) + if yyq2306[0] { + yy2308 := &x.ObjectMeta + yy2308.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { - if yyq2273[0] { + if yyq2306[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy2276 := &x.ObjectMeta - yy2276.CodecEncodeSelf(e) + yy2309 := &x.ObjectMeta + yy2309.CodecEncodeSelf(e) } } - if yyr2273 || yy2arr2273 { + if yyr2306 || yy2arr2306 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2273[1] { - yy2278 := &x.Spec - yy2278.CodecEncodeSelf(e) + if yyq2306[1] { + yy2311 := &x.Spec + yy2311.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { - if yyq2273[1] { + if yyq2306[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("spec")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy2279 := &x.Spec - yy2279.CodecEncodeSelf(e) + yy2312 := &x.Spec + yy2312.CodecEncodeSelf(e) } } - if yyr2273 || yy2arr2273 { + if yyr2306 || yy2arr2306 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -30162,25 +30691,25 @@ func (x *PodTemplateSpec) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym2280 := z.DecBinary() - _ = yym2280 + yym2313 := z.DecBinary() + _ = yym2313 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2281 := r.ContainerType() - if yyct2281 == codecSelferValueTypeMap1234 { - yyl2281 := r.ReadMapStart() - if yyl2281 == 0 { + yyct2314 := r.ContainerType() + if yyct2314 == codecSelferValueTypeMap1234 { + yyl2314 := r.ReadMapStart() + if yyl2314 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2281, d) + x.codecDecodeSelfFromMap(yyl2314, d) } - } else if yyct2281 == codecSelferValueTypeArray1234 { - yyl2281 := r.ReadArrayStart() - if yyl2281 == 0 { + } else if yyct2314 == codecSelferValueTypeArray1234 { + yyl2314 := r.ReadArrayStart() + if yyl2314 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2281, d) + x.codecDecodeSelfFromArray(yyl2314, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -30192,12 +30721,12 @@ func (x *PodTemplateSpec) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys2282Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys2282Slc - var yyhl2282 bool = l >= 0 - for yyj2282 := 0; ; yyj2282++ { - if yyhl2282 { - if yyj2282 >= l { + var yys2315Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys2315Slc + var yyhl2315 bool = l >= 0 + for yyj2315 := 0; ; yyj2315++ { + if yyhl2315 { + if yyj2315 >= l { break } } else { @@ -30206,28 +30735,28 @@ func (x *PodTemplateSpec) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys2282Slc = r.DecodeBytes(yys2282Slc, true, true) - yys2282 := string(yys2282Slc) + yys2315Slc = r.DecodeBytes(yys2315Slc, true, true) + yys2315 := string(yys2315Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys2282 { + switch yys2315 { case "metadata": if r.TryDecodeAsNil() { x.ObjectMeta = ObjectMeta{} } else { - yyv2283 := &x.ObjectMeta - yyv2283.CodecDecodeSelf(d) + yyv2316 := &x.ObjectMeta + yyv2316.CodecDecodeSelf(d) } case "spec": if r.TryDecodeAsNil() { x.Spec = PodSpec{} } else { - yyv2284 := &x.Spec - yyv2284.CodecDecodeSelf(d) + yyv2317 := &x.Spec + yyv2317.CodecDecodeSelf(d) } default: - z.DecStructFieldNotFound(-1, yys2282) - } // end switch yys2282 - } // end for yyj2282 + z.DecStructFieldNotFound(-1, yys2315) + } // end switch yys2315 + } // end for yyj2315 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -30235,16 +30764,16 @@ func (x *PodTemplateSpec) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj2285 int - var yyb2285 bool - var yyhl2285 bool = l >= 0 - yyj2285++ - if yyhl2285 { - yyb2285 = yyj2285 > l + var yyj2318 int + var yyb2318 bool + var yyhl2318 bool = l >= 0 + yyj2318++ + if yyhl2318 { + yyb2318 = yyj2318 > l } else { - yyb2285 = r.CheckBreak() + yyb2318 = r.CheckBreak() } - if yyb2285 { + if yyb2318 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -30252,16 +30781,16 @@ func (x *PodTemplateSpec) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) if r.TryDecodeAsNil() { x.ObjectMeta = ObjectMeta{} } else { - yyv2286 := &x.ObjectMeta - yyv2286.CodecDecodeSelf(d) + yyv2319 := &x.ObjectMeta + yyv2319.CodecDecodeSelf(d) } - yyj2285++ - if yyhl2285 { - yyb2285 = yyj2285 > l + yyj2318++ + if yyhl2318 { + yyb2318 = yyj2318 > l } else { - yyb2285 = r.CheckBreak() + yyb2318 = r.CheckBreak() } - if yyb2285 { + if yyb2318 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -30269,21 +30798,21 @@ func (x *PodTemplateSpec) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) if r.TryDecodeAsNil() { x.Spec = PodSpec{} } else { - yyv2287 := &x.Spec - yyv2287.CodecDecodeSelf(d) + yyv2320 := &x.Spec + yyv2320.CodecDecodeSelf(d) } for { - yyj2285++ - if yyhl2285 { - yyb2285 = yyj2285 > l + yyj2318++ + if yyhl2318 { + yyb2318 = yyj2318 > l } else { - yyb2285 = r.CheckBreak() + yyb2318 = r.CheckBreak() } - if yyb2285 { + if yyb2318 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj2285-1, "") + z.DecStructFieldNotFound(yyj2318-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -30295,38 +30824,38 @@ func (x *PodTemplate) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym2288 := z.EncBinary() - _ = yym2288 + yym2321 := z.EncBinary() + _ = yym2321 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - 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 { + yysep2322 := !z.EncBinary() + yy2arr2322 := z.EncBasicHandle().StructToArray + var yyq2322 [4]bool + _, _, _ = yysep2322, yyq2322, yy2arr2322 + const yyr2322 bool = false + yyq2322[0] = x.Kind != "" + yyq2322[1] = x.APIVersion != "" + yyq2322[2] = true + yyq2322[3] = true + var yynn2322 int + if yyr2322 || yy2arr2322 { r.EncodeArrayStart(4) } else { - yynn2289 = 0 - for _, b := range yyq2289 { + yynn2322 = 0 + for _, b := range yyq2322 { if b { - yynn2289++ + yynn2322++ } } - r.EncodeMapStart(yynn2289) - yynn2289 = 0 + r.EncodeMapStart(yynn2322) + yynn2322 = 0 } - if yyr2289 || yy2arr2289 { + if yyr2322 || yy2arr2322 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2289[0] { - yym2291 := z.EncBinary() - _ = yym2291 + if yyq2322[0] { + yym2324 := z.EncBinary() + _ = yym2324 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) @@ -30335,23 +30864,23 @@ func (x *PodTemplate) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2289[0] { + if yyq2322[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym2292 := z.EncBinary() - _ = yym2292 + yym2325 := z.EncBinary() + _ = yym2325 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } - if yyr2289 || yy2arr2289 { + if yyr2322 || yy2arr2322 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2289[1] { - yym2294 := z.EncBinary() - _ = yym2294 + if yyq2322[1] { + yym2327 := z.EncBinary() + _ = yym2327 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) @@ -30360,53 +30889,53 @@ func (x *PodTemplate) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2289[1] { + if yyq2322[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym2295 := z.EncBinary() - _ = yym2295 + yym2328 := z.EncBinary() + _ = yym2328 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } - if yyr2289 || yy2arr2289 { + if yyr2322 || yy2arr2322 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2289[2] { - yy2297 := &x.ObjectMeta - yy2297.CodecEncodeSelf(e) + if yyq2322[2] { + yy2330 := &x.ObjectMeta + yy2330.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { - if yyq2289[2] { + if yyq2322[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy2298 := &x.ObjectMeta - yy2298.CodecEncodeSelf(e) + yy2331 := &x.ObjectMeta + yy2331.CodecEncodeSelf(e) } } - if yyr2289 || yy2arr2289 { + if yyr2322 || yy2arr2322 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2289[3] { - yy2300 := &x.Template - yy2300.CodecEncodeSelf(e) + if yyq2322[3] { + yy2333 := &x.Template + yy2333.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { - if yyq2289[3] { + if yyq2322[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("template")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy2301 := &x.Template - yy2301.CodecEncodeSelf(e) + yy2334 := &x.Template + yy2334.CodecEncodeSelf(e) } } - if yyr2289 || yy2arr2289 { + if yyr2322 || yy2arr2322 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -30419,25 +30948,25 @@ func (x *PodTemplate) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym2302 := z.DecBinary() - _ = yym2302 + yym2335 := z.DecBinary() + _ = yym2335 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2303 := r.ContainerType() - if yyct2303 == codecSelferValueTypeMap1234 { - yyl2303 := r.ReadMapStart() - if yyl2303 == 0 { + yyct2336 := r.ContainerType() + if yyct2336 == codecSelferValueTypeMap1234 { + yyl2336 := r.ReadMapStart() + if yyl2336 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2303, d) + x.codecDecodeSelfFromMap(yyl2336, d) } - } else if yyct2303 == codecSelferValueTypeArray1234 { - yyl2303 := r.ReadArrayStart() - if yyl2303 == 0 { + } else if yyct2336 == codecSelferValueTypeArray1234 { + yyl2336 := r.ReadArrayStart() + if yyl2336 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2303, d) + x.codecDecodeSelfFromArray(yyl2336, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -30449,12 +30978,12 @@ func (x *PodTemplate) 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 { + var yys2337Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys2337Slc + var yyhl2337 bool = l >= 0 + for yyj2337 := 0; ; yyj2337++ { + if yyhl2337 { + if yyj2337 >= l { break } } else { @@ -30463,10 +30992,10 @@ func (x *PodTemplate) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys2304Slc = r.DecodeBytes(yys2304Slc, true, true) - yys2304 := string(yys2304Slc) + yys2337Slc = r.DecodeBytes(yys2337Slc, true, true) + yys2337 := string(yys2337Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys2304 { + switch yys2337 { case "kind": if r.TryDecodeAsNil() { x.Kind = "" @@ -30483,20 +31012,20 @@ func (x *PodTemplate) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.ObjectMeta = ObjectMeta{} } else { - yyv2307 := &x.ObjectMeta - yyv2307.CodecDecodeSelf(d) + yyv2340 := &x.ObjectMeta + yyv2340.CodecDecodeSelf(d) } case "template": if r.TryDecodeAsNil() { x.Template = PodTemplateSpec{} } else { - yyv2308 := &x.Template - yyv2308.CodecDecodeSelf(d) + yyv2341 := &x.Template + yyv2341.CodecDecodeSelf(d) } default: - z.DecStructFieldNotFound(-1, yys2304) - } // end switch yys2304 - } // end for yyj2304 + z.DecStructFieldNotFound(-1, yys2337) + } // end switch yys2337 + } // end for yyj2337 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -30504,16 +31033,16 @@ func (x *PodTemplate) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj2309 int - var yyb2309 bool - var yyhl2309 bool = l >= 0 - yyj2309++ - if yyhl2309 { - yyb2309 = yyj2309 > l + var yyj2342 int + var yyb2342 bool + var yyhl2342 bool = l >= 0 + yyj2342++ + if yyhl2342 { + yyb2342 = yyj2342 > l } else { - yyb2309 = r.CheckBreak() + yyb2342 = r.CheckBreak() } - if yyb2309 { + if yyb2342 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -30523,13 +31052,13 @@ func (x *PodTemplate) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.Kind = string(r.DecodeString()) } - yyj2309++ - if yyhl2309 { - yyb2309 = yyj2309 > l + yyj2342++ + if yyhl2342 { + yyb2342 = yyj2342 > l } else { - yyb2309 = r.CheckBreak() + yyb2342 = r.CheckBreak() } - if yyb2309 { + if yyb2342 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -30539,13 +31068,13 @@ func (x *PodTemplate) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.APIVersion = string(r.DecodeString()) } - yyj2309++ - if yyhl2309 { - yyb2309 = yyj2309 > l + yyj2342++ + if yyhl2342 { + yyb2342 = yyj2342 > l } else { - yyb2309 = r.CheckBreak() + yyb2342 = r.CheckBreak() } - if yyb2309 { + if yyb2342 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -30553,16 +31082,16 @@ func (x *PodTemplate) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.ObjectMeta = ObjectMeta{} } else { - yyv2312 := &x.ObjectMeta - yyv2312.CodecDecodeSelf(d) + yyv2345 := &x.ObjectMeta + yyv2345.CodecDecodeSelf(d) } - yyj2309++ - if yyhl2309 { - yyb2309 = yyj2309 > l + yyj2342++ + if yyhl2342 { + yyb2342 = yyj2342 > l } else { - yyb2309 = r.CheckBreak() + yyb2342 = r.CheckBreak() } - if yyb2309 { + if yyb2342 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -30570,21 +31099,21 @@ func (x *PodTemplate) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.Template = PodTemplateSpec{} } else { - yyv2313 := &x.Template - yyv2313.CodecDecodeSelf(d) + yyv2346 := &x.Template + yyv2346.CodecDecodeSelf(d) } for { - yyj2309++ - if yyhl2309 { - yyb2309 = yyj2309 > l + yyj2342++ + if yyhl2342 { + yyb2342 = yyj2342 > l } else { - yyb2309 = r.CheckBreak() + yyb2342 = r.CheckBreak() } - if yyb2309 { + if yyb2342 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj2309-1, "") + z.DecStructFieldNotFound(yyj2342-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -30596,37 +31125,37 @@ func (x *PodTemplateList) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym2314 := z.EncBinary() - _ = yym2314 + yym2347 := z.EncBinary() + _ = yym2347 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - 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 { + 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 + var yynn2348 int + if yyr2348 || yy2arr2348 { r.EncodeArrayStart(4) } else { - yynn2315 = 1 - for _, b := range yyq2315 { + yynn2348 = 1 + for _, b := range yyq2348 { if b { - yynn2315++ + yynn2348++ } } - r.EncodeMapStart(yynn2315) - yynn2315 = 0 + r.EncodeMapStart(yynn2348) + yynn2348 = 0 } - if yyr2315 || yy2arr2315 { + if yyr2348 || yy2arr2348 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2315[0] { - yym2317 := z.EncBinary() - _ = yym2317 + if yyq2348[0] { + yym2350 := z.EncBinary() + _ = yym2350 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) @@ -30635,23 +31164,23 @@ func (x *PodTemplateList) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2315[0] { + if yyq2348[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym2318 := z.EncBinary() - _ = yym2318 + yym2351 := z.EncBinary() + _ = yym2351 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } - if yyr2315 || yy2arr2315 { + if yyr2348 || yy2arr2348 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2315[1] { - yym2320 := z.EncBinary() - _ = yym2320 + if yyq2348[1] { + yym2353 := z.EncBinary() + _ = yym2353 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) @@ -30660,54 +31189,54 @@ func (x *PodTemplateList) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2315[1] { + if yyq2348[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym2321 := z.EncBinary() - _ = yym2321 + yym2354 := z.EncBinary() + _ = yym2354 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } - if yyr2315 || yy2arr2315 { + if yyr2348 || yy2arr2348 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2315[2] { - yy2323 := &x.ListMeta - yym2324 := z.EncBinary() - _ = yym2324 + if yyq2348[2] { + yy2356 := &x.ListMeta + yym2357 := z.EncBinary() + _ = yym2357 if false { - } else if z.HasExtensions() && z.EncExt(yy2323) { + } else if z.HasExtensions() && z.EncExt(yy2356) { } else { - z.EncFallback(yy2323) + z.EncFallback(yy2356) } } else { r.EncodeNil() } } else { - if yyq2315[2] { + if yyq2348[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy2325 := &x.ListMeta - yym2326 := z.EncBinary() - _ = yym2326 + yy2358 := &x.ListMeta + yym2359 := z.EncBinary() + _ = yym2359 if false { - } else if z.HasExtensions() && z.EncExt(yy2325) { + } else if z.HasExtensions() && z.EncExt(yy2358) { } else { - z.EncFallback(yy2325) + z.EncFallback(yy2358) } } } - if yyr2315 || yy2arr2315 { + if yyr2348 || yy2arr2348 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.Items == nil { r.EncodeNil() } else { - yym2328 := z.EncBinary() - _ = yym2328 + yym2361 := z.EncBinary() + _ = yym2361 if false { } else { h.encSlicePodTemplate(([]PodTemplate)(x.Items), e) @@ -30720,15 +31249,15 @@ func (x *PodTemplateList) CodecEncodeSelf(e *codec1978.Encoder) { if x.Items == nil { r.EncodeNil() } else { - yym2329 := z.EncBinary() - _ = yym2329 + yym2362 := z.EncBinary() + _ = yym2362 if false { } else { h.encSlicePodTemplate(([]PodTemplate)(x.Items), e) } } } - if yyr2315 || yy2arr2315 { + if yyr2348 || yy2arr2348 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -30741,25 +31270,25 @@ func (x *PodTemplateList) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym2330 := z.DecBinary() - _ = yym2330 + yym2363 := z.DecBinary() + _ = yym2363 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2331 := r.ContainerType() - if yyct2331 == codecSelferValueTypeMap1234 { - yyl2331 := r.ReadMapStart() - if yyl2331 == 0 { + yyct2364 := r.ContainerType() + if yyct2364 == codecSelferValueTypeMap1234 { + yyl2364 := r.ReadMapStart() + if yyl2364 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2331, d) + x.codecDecodeSelfFromMap(yyl2364, d) } - } else if yyct2331 == codecSelferValueTypeArray1234 { - yyl2331 := r.ReadArrayStart() - if yyl2331 == 0 { + } else if yyct2364 == codecSelferValueTypeArray1234 { + yyl2364 := r.ReadArrayStart() + if yyl2364 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2331, d) + x.codecDecodeSelfFromArray(yyl2364, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -30771,12 +31300,12 @@ func (x *PodTemplateList) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys2332Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys2332Slc - var yyhl2332 bool = l >= 0 - for yyj2332 := 0; ; yyj2332++ { - if yyhl2332 { - if yyj2332 >= l { + 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 { @@ -30785,10 +31314,10 @@ func (x *PodTemplateList) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys2332Slc = r.DecodeBytes(yys2332Slc, true, true) - yys2332 := string(yys2332Slc) + yys2365Slc = r.DecodeBytes(yys2365Slc, true, true) + yys2365 := string(yys2365Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys2332 { + switch yys2365 { case "kind": if r.TryDecodeAsNil() { x.Kind = "" @@ -30805,31 +31334,31 @@ func (x *PodTemplateList) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.ListMeta = pkg2_unversioned.ListMeta{} } else { - yyv2335 := &x.ListMeta - yym2336 := z.DecBinary() - _ = yym2336 + yyv2368 := &x.ListMeta + yym2369 := z.DecBinary() + _ = yym2369 if false { - } else if z.HasExtensions() && z.DecExt(yyv2335) { + } else if z.HasExtensions() && z.DecExt(yyv2368) { } else { - z.DecFallback(yyv2335, false) + z.DecFallback(yyv2368, false) } } case "items": if r.TryDecodeAsNil() { x.Items = nil } else { - yyv2337 := &x.Items - yym2338 := z.DecBinary() - _ = yym2338 + yyv2370 := &x.Items + yym2371 := z.DecBinary() + _ = yym2371 if false { } else { - h.decSlicePodTemplate((*[]PodTemplate)(yyv2337), d) + h.decSlicePodTemplate((*[]PodTemplate)(yyv2370), d) } } default: - z.DecStructFieldNotFound(-1, yys2332) - } // end switch yys2332 - } // end for yyj2332 + z.DecStructFieldNotFound(-1, yys2365) + } // end switch yys2365 + } // end for yyj2365 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -30837,16 +31366,16 @@ func (x *PodTemplateList) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj2339 int - var yyb2339 bool - var yyhl2339 bool = l >= 0 - yyj2339++ - if yyhl2339 { - yyb2339 = yyj2339 > l + var yyj2372 int + var yyb2372 bool + var yyhl2372 bool = l >= 0 + yyj2372++ + if yyhl2372 { + yyb2372 = yyj2372 > l } else { - yyb2339 = r.CheckBreak() + yyb2372 = r.CheckBreak() } - if yyb2339 { + if yyb2372 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -30856,13 +31385,13 @@ func (x *PodTemplateList) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) } else { x.Kind = string(r.DecodeString()) } - yyj2339++ - if yyhl2339 { - yyb2339 = yyj2339 > l + yyj2372++ + if yyhl2372 { + yyb2372 = yyj2372 > l } else { - yyb2339 = r.CheckBreak() + yyb2372 = r.CheckBreak() } - if yyb2339 { + if yyb2372 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -30872,13 +31401,13 @@ func (x *PodTemplateList) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) } else { x.APIVersion = string(r.DecodeString()) } - yyj2339++ - if yyhl2339 { - yyb2339 = yyj2339 > l + yyj2372++ + if yyhl2372 { + yyb2372 = yyj2372 > l } else { - yyb2339 = r.CheckBreak() + yyb2372 = r.CheckBreak() } - if yyb2339 { + if yyb2372 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -30886,22 +31415,22 @@ func (x *PodTemplateList) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) if r.TryDecodeAsNil() { x.ListMeta = pkg2_unversioned.ListMeta{} } else { - yyv2342 := &x.ListMeta - yym2343 := z.DecBinary() - _ = yym2343 + yyv2375 := &x.ListMeta + yym2376 := z.DecBinary() + _ = yym2376 if false { - } else if z.HasExtensions() && z.DecExt(yyv2342) { + } else if z.HasExtensions() && z.DecExt(yyv2375) { } else { - z.DecFallback(yyv2342, false) + z.DecFallback(yyv2375, false) } } - yyj2339++ - if yyhl2339 { - yyb2339 = yyj2339 > l + yyj2372++ + if yyhl2372 { + yyb2372 = yyj2372 > l } else { - yyb2339 = r.CheckBreak() + yyb2372 = r.CheckBreak() } - if yyb2339 { + if yyb2372 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -30909,26 +31438,26 @@ func (x *PodTemplateList) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) if r.TryDecodeAsNil() { x.Items = nil } else { - yyv2344 := &x.Items - yym2345 := z.DecBinary() - _ = yym2345 + yyv2377 := &x.Items + yym2378 := z.DecBinary() + _ = yym2378 if false { } else { - h.decSlicePodTemplate((*[]PodTemplate)(yyv2344), d) + h.decSlicePodTemplate((*[]PodTemplate)(yyv2377), d) } } for { - yyj2339++ - if yyhl2339 { - yyb2339 = yyj2339 > l + yyj2372++ + if yyhl2372 { + yyb2372 = yyj2372 > l } else { - yyb2339 = r.CheckBreak() + yyb2372 = r.CheckBreak() } - if yyb2339 { + if yyb2372 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj2339-1, "") + z.DecStructFieldNotFound(yyj2372-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -30940,75 +31469,101 @@ func (x *ReplicationControllerSpec) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym2346 := z.EncBinary() - _ = yym2346 + yym2379 := z.EncBinary() + _ = yym2379 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - 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) + yysep2380 := !z.EncBinary() + yy2arr2380 := z.EncBasicHandle().StructToArray + var yyq2380 [4]bool + _, _, _ = yysep2380, yyq2380, yy2arr2380 + const yyr2380 bool = false + yyq2380[0] = x.Replicas != nil + yyq2380[1] = x.MinReadySeconds != 0 + yyq2380[2] = len(x.Selector) != 0 + yyq2380[3] = x.Template != nil + var yynn2380 int + if yyr2380 || yy2arr2380 { + r.EncodeArrayStart(4) } else { - yynn2347 = 0 - for _, b := range yyq2347 { + yynn2380 = 0 + for _, b := range yyq2380 { if b { - yynn2347++ + yynn2380++ } } - r.EncodeMapStart(yynn2347) - yynn2347 = 0 + r.EncodeMapStart(yynn2380) + yynn2380 = 0 } - if yyr2347 || yy2arr2347 { + if yyr2380 || yy2arr2380 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2347[0] { + if yyq2380[0] { if x.Replicas == nil { r.EncodeNil() } else { - yy2349 := *x.Replicas - yym2350 := z.EncBinary() - _ = yym2350 + yy2382 := *x.Replicas + yym2383 := z.EncBinary() + _ = yym2383 if false { } else { - r.EncodeInt(int64(yy2349)) + r.EncodeInt(int64(yy2382)) } } } else { r.EncodeNil() } } else { - if yyq2347[0] { + if yyq2380[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("replicas")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.Replicas == nil { r.EncodeNil() } else { - yy2351 := *x.Replicas - yym2352 := z.EncBinary() - _ = yym2352 + yy2384 := *x.Replicas + yym2385 := z.EncBinary() + _ = yym2385 if false { } else { - r.EncodeInt(int64(yy2351)) + r.EncodeInt(int64(yy2384)) } } } } - if yyr2347 || yy2arr2347 { + if yyr2380 || yy2arr2380 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2347[1] { + if yyq2380[1] { + yym2387 := z.EncBinary() + _ = yym2387 + if false { + } else { + r.EncodeInt(int64(x.MinReadySeconds)) + } + } else { + r.EncodeInt(0) + } + } else { + if yyq2380[1] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("minReadySeconds")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym2388 := z.EncBinary() + _ = yym2388 + if false { + } else { + r.EncodeInt(int64(x.MinReadySeconds)) + } + } + } + if yyr2380 || yy2arr2380 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq2380[2] { if x.Selector == nil { r.EncodeNil() } else { - yym2354 := z.EncBinary() - _ = yym2354 + yym2390 := z.EncBinary() + _ = yym2390 if false { } else { z.F.EncMapStringStringV(x.Selector, false, e) @@ -31018,15 +31573,15 @@ func (x *ReplicationControllerSpec) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq2347[1] { + if yyq2380[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("selector")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.Selector == nil { r.EncodeNil() } else { - yym2355 := z.EncBinary() - _ = yym2355 + yym2391 := z.EncBinary() + _ = yym2391 if false { } else { z.F.EncMapStringStringV(x.Selector, false, e) @@ -31034,9 +31589,9 @@ func (x *ReplicationControllerSpec) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr2347 || yy2arr2347 { + if yyr2380 || yy2arr2380 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2347[2] { + if yyq2380[3] { if x.Template == nil { r.EncodeNil() } else { @@ -31046,7 +31601,7 @@ func (x *ReplicationControllerSpec) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq2347[2] { + if yyq2380[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("template")) z.EncSendContainerState(codecSelfer_containerMapValue1234) @@ -31057,7 +31612,7 @@ func (x *ReplicationControllerSpec) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr2347 || yy2arr2347 { + if yyr2380 || yy2arr2380 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -31070,25 +31625,25 @@ func (x *ReplicationControllerSpec) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym2357 := z.DecBinary() - _ = yym2357 + yym2393 := z.DecBinary() + _ = yym2393 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2358 := r.ContainerType() - if yyct2358 == codecSelferValueTypeMap1234 { - yyl2358 := r.ReadMapStart() - if yyl2358 == 0 { + yyct2394 := r.ContainerType() + if yyct2394 == codecSelferValueTypeMap1234 { + yyl2394 := r.ReadMapStart() + if yyl2394 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2358, d) + x.codecDecodeSelfFromMap(yyl2394, d) } - } else if yyct2358 == codecSelferValueTypeArray1234 { - yyl2358 := r.ReadArrayStart() - if yyl2358 == 0 { + } else if yyct2394 == codecSelferValueTypeArray1234 { + yyl2394 := r.ReadArrayStart() + if yyl2394 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2358, d) + x.codecDecodeSelfFromArray(yyl2394, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -31100,12 +31655,12 @@ func (x *ReplicationControllerSpec) codecDecodeSelfFromMap(l int, d *codec1978.D var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys2359Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys2359Slc - var yyhl2359 bool = l >= 0 - for yyj2359 := 0; ; yyj2359++ { - if yyhl2359 { - if yyj2359 >= l { + var yys2395Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys2395Slc + var yyhl2395 bool = l >= 0 + for yyj2395 := 0; ; yyj2395++ { + if yyhl2395 { + if yyj2395 >= l { break } } else { @@ -31114,10 +31669,10 @@ func (x *ReplicationControllerSpec) codecDecodeSelfFromMap(l int, d *codec1978.D } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys2359Slc = r.DecodeBytes(yys2359Slc, true, true) - yys2359 := string(yys2359Slc) + yys2395Slc = r.DecodeBytes(yys2395Slc, true, true) + yys2395 := string(yys2395Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys2359 { + switch yys2395 { case "replicas": if r.TryDecodeAsNil() { if x.Replicas != nil { @@ -31127,23 +31682,29 @@ func (x *ReplicationControllerSpec) codecDecodeSelfFromMap(l int, d *codec1978.D if x.Replicas == nil { x.Replicas = new(int32) } - yym2361 := z.DecBinary() - _ = yym2361 + yym2397 := z.DecBinary() + _ = yym2397 if false { } else { *((*int32)(x.Replicas)) = int32(r.DecodeInt(32)) } } + case "minReadySeconds": + if r.TryDecodeAsNil() { + x.MinReadySeconds = 0 + } else { + x.MinReadySeconds = int32(r.DecodeInt(32)) + } case "selector": if r.TryDecodeAsNil() { x.Selector = nil } else { - yyv2362 := &x.Selector - yym2363 := z.DecBinary() - _ = yym2363 + yyv2399 := &x.Selector + yym2400 := z.DecBinary() + _ = yym2400 if false { } else { - z.F.DecMapStringStringX(yyv2362, false, d) + z.F.DecMapStringStringX(yyv2399, false, d) } } case "template": @@ -31158,9 +31719,9 @@ func (x *ReplicationControllerSpec) codecDecodeSelfFromMap(l int, d *codec1978.D x.Template.CodecDecodeSelf(d) } default: - z.DecStructFieldNotFound(-1, yys2359) - } // end switch yys2359 - } // end for yyj2359 + z.DecStructFieldNotFound(-1, yys2395) + } // end switch yys2395 + } // end for yyj2395 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -31168,16 +31729,16 @@ func (x *ReplicationControllerSpec) codecDecodeSelfFromArray(l int, d *codec1978 var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj2365 int - var yyb2365 bool - var yyhl2365 bool = l >= 0 - yyj2365++ - if yyhl2365 { - yyb2365 = yyj2365 > l + var yyj2402 int + var yyb2402 bool + var yyhl2402 bool = l >= 0 + yyj2402++ + if yyhl2402 { + yyb2402 = yyj2402 > l } else { - yyb2365 = r.CheckBreak() + yyb2402 = r.CheckBreak() } - if yyb2365 { + if yyb2402 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -31190,20 +31751,36 @@ func (x *ReplicationControllerSpec) codecDecodeSelfFromArray(l int, d *codec1978 if x.Replicas == nil { x.Replicas = new(int32) } - yym2367 := z.DecBinary() - _ = yym2367 + yym2404 := z.DecBinary() + _ = yym2404 if false { } else { *((*int32)(x.Replicas)) = int32(r.DecodeInt(32)) } } - yyj2365++ - if yyhl2365 { - yyb2365 = yyj2365 > l + yyj2402++ + if yyhl2402 { + yyb2402 = yyj2402 > l } else { - yyb2365 = r.CheckBreak() + yyb2402 = r.CheckBreak() } - if yyb2365 { + if yyb2402 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.MinReadySeconds = 0 + } else { + x.MinReadySeconds = int32(r.DecodeInt(32)) + } + yyj2402++ + if yyhl2402 { + yyb2402 = yyj2402 > l + } else { + yyb2402 = r.CheckBreak() + } + if yyb2402 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -31211,21 +31788,21 @@ func (x *ReplicationControllerSpec) codecDecodeSelfFromArray(l int, d *codec1978 if r.TryDecodeAsNil() { x.Selector = nil } else { - yyv2368 := &x.Selector - yym2369 := z.DecBinary() - _ = yym2369 + yyv2406 := &x.Selector + yym2407 := z.DecBinary() + _ = yym2407 if false { } else { - z.F.DecMapStringStringX(yyv2368, false, d) + z.F.DecMapStringStringX(yyv2406, false, d) } } - yyj2365++ - if yyhl2365 { - yyb2365 = yyj2365 > l + yyj2402++ + if yyhl2402 { + yyb2402 = yyj2402 > l } else { - yyb2365 = r.CheckBreak() + yyb2402 = r.CheckBreak() } - if yyb2365 { + if yyb2402 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -31241,17 +31818,17 @@ func (x *ReplicationControllerSpec) codecDecodeSelfFromArray(l int, d *codec1978 x.Template.CodecDecodeSelf(d) } for { - yyj2365++ - if yyhl2365 { - yyb2365 = yyj2365 > l + yyj2402++ + if yyhl2402 { + yyb2402 = yyj2402 > l } else { - yyb2365 = r.CheckBreak() + yyb2402 = r.CheckBreak() } - if yyb2365 { + if yyb2402 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj2365-1, "") + z.DecStructFieldNotFound(yyj2402-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -31263,36 +31840,38 @@ func (x *ReplicationControllerStatus) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym2371 := z.EncBinary() - _ = yym2371 + yym2409 := z.EncBinary() + _ = yym2409 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - 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) + yysep2410 := !z.EncBinary() + yy2arr2410 := z.EncBasicHandle().StructToArray + var yyq2410 [6]bool + _, _, _ = yysep2410, yyq2410, yy2arr2410 + const yyr2410 bool = false + yyq2410[1] = x.FullyLabeledReplicas != 0 + yyq2410[2] = x.ReadyReplicas != 0 + yyq2410[3] = x.AvailableReplicas != 0 + yyq2410[4] = x.ObservedGeneration != 0 + yyq2410[5] = len(x.Conditions) != 0 + var yynn2410 int + if yyr2410 || yy2arr2410 { + r.EncodeArrayStart(6) } else { - yynn2372 = 1 - for _, b := range yyq2372 { + yynn2410 = 1 + for _, b := range yyq2410 { if b { - yynn2372++ + yynn2410++ } } - r.EncodeMapStart(yynn2372) - yynn2372 = 0 + r.EncodeMapStart(yynn2410) + yynn2410 = 0 } - if yyr2372 || yy2arr2372 { + if yyr2410 || yy2arr2410 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym2374 := z.EncBinary() - _ = yym2374 + yym2412 := z.EncBinary() + _ = yym2412 if false { } else { r.EncodeInt(int64(x.Replicas)) @@ -31301,18 +31880,18 @@ func (x *ReplicationControllerStatus) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("replicas")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym2375 := z.EncBinary() - _ = yym2375 + yym2413 := z.EncBinary() + _ = yym2413 if false { } else { r.EncodeInt(int64(x.Replicas)) } } - if yyr2372 || yy2arr2372 { + if yyr2410 || yy2arr2410 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2372[1] { - yym2377 := z.EncBinary() - _ = yym2377 + if yyq2410[1] { + yym2415 := z.EncBinary() + _ = yym2415 if false { } else { r.EncodeInt(int64(x.FullyLabeledReplicas)) @@ -31321,23 +31900,23 @@ func (x *ReplicationControllerStatus) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeInt(0) } } else { - if yyq2372[1] { + if yyq2410[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("fullyLabeledReplicas")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym2378 := z.EncBinary() - _ = yym2378 + yym2416 := z.EncBinary() + _ = yym2416 if false { } else { r.EncodeInt(int64(x.FullyLabeledReplicas)) } } } - if yyr2372 || yy2arr2372 { + if yyr2410 || yy2arr2410 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2372[2] { - yym2380 := z.EncBinary() - _ = yym2380 + if yyq2410[2] { + yym2418 := z.EncBinary() + _ = yym2418 if false { } else { r.EncodeInt(int64(x.ReadyReplicas)) @@ -31346,23 +31925,48 @@ func (x *ReplicationControllerStatus) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeInt(0) } } else { - if yyq2372[2] { + if yyq2410[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("readyReplicas")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym2381 := z.EncBinary() - _ = yym2381 + yym2419 := z.EncBinary() + _ = yym2419 if false { } else { r.EncodeInt(int64(x.ReadyReplicas)) } } } - if yyr2372 || yy2arr2372 { + if yyr2410 || yy2arr2410 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2372[3] { - yym2383 := z.EncBinary() - _ = yym2383 + if yyq2410[3] { + yym2421 := z.EncBinary() + _ = yym2421 + if false { + } else { + r.EncodeInt(int64(x.AvailableReplicas)) + } + } else { + r.EncodeInt(0) + } + } else { + if yyq2410[3] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("availableReplicas")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym2422 := z.EncBinary() + _ = yym2422 + if false { + } else { + r.EncodeInt(int64(x.AvailableReplicas)) + } + } + } + if yyr2410 || yy2arr2410 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq2410[4] { + yym2424 := z.EncBinary() + _ = yym2424 if false { } else { r.EncodeInt(int64(x.ObservedGeneration)) @@ -31371,19 +31975,52 @@ func (x *ReplicationControllerStatus) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeInt(0) } } else { - if yyq2372[3] { + if yyq2410[4] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("observedGeneration")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym2384 := z.EncBinary() - _ = yym2384 + yym2425 := z.EncBinary() + _ = yym2425 if false { } else { r.EncodeInt(int64(x.ObservedGeneration)) } } } - if yyr2372 || yy2arr2372 { + if yyr2410 || yy2arr2410 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq2410[5] { + if x.Conditions == nil { + r.EncodeNil() + } else { + yym2427 := z.EncBinary() + _ = yym2427 + if false { + } else { + h.encSliceReplicationControllerCondition(([]ReplicationControllerCondition)(x.Conditions), e) + } + } + } else { + r.EncodeNil() + } + } else { + if yyq2410[5] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("conditions")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + if x.Conditions == nil { + r.EncodeNil() + } else { + yym2428 := z.EncBinary() + _ = yym2428 + if false { + } else { + h.encSliceReplicationControllerCondition(([]ReplicationControllerCondition)(x.Conditions), e) + } + } + } + } + if yyr2410 || yy2arr2410 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -31396,25 +32033,25 @@ func (x *ReplicationControllerStatus) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym2385 := z.DecBinary() - _ = yym2385 + yym2429 := z.DecBinary() + _ = yym2429 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2386 := r.ContainerType() - if yyct2386 == codecSelferValueTypeMap1234 { - yyl2386 := r.ReadMapStart() - if yyl2386 == 0 { + yyct2430 := r.ContainerType() + if yyct2430 == codecSelferValueTypeMap1234 { + yyl2430 := r.ReadMapStart() + if yyl2430 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2386, d) + x.codecDecodeSelfFromMap(yyl2430, d) } - } else if yyct2386 == codecSelferValueTypeArray1234 { - yyl2386 := r.ReadArrayStart() - if yyl2386 == 0 { + } else if yyct2430 == codecSelferValueTypeArray1234 { + yyl2430 := r.ReadArrayStart() + if yyl2430 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2386, d) + x.codecDecodeSelfFromArray(yyl2430, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -31426,12 +32063,12 @@ func (x *ReplicationControllerStatus) codecDecodeSelfFromMap(l int, d *codec1978 var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys2387Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys2387Slc - var yyhl2387 bool = l >= 0 - for yyj2387 := 0; ; yyj2387++ { - if yyhl2387 { - if yyj2387 >= l { + var yys2431Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys2431Slc + var yyhl2431 bool = l >= 0 + for yyj2431 := 0; ; yyj2431++ { + if yyhl2431 { + if yyj2431 >= l { break } } else { @@ -31440,10 +32077,10 @@ func (x *ReplicationControllerStatus) codecDecodeSelfFromMap(l int, d *codec1978 } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys2387Slc = r.DecodeBytes(yys2387Slc, true, true) - yys2387 := string(yys2387Slc) + yys2431Slc = r.DecodeBytes(yys2431Slc, true, true) + yys2431 := string(yys2431Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys2387 { + switch yys2431 { case "replicas": if r.TryDecodeAsNil() { x.Replicas = 0 @@ -31462,16 +32099,34 @@ func (x *ReplicationControllerStatus) codecDecodeSelfFromMap(l int, d *codec1978 } else { x.ReadyReplicas = int32(r.DecodeInt(32)) } + case "availableReplicas": + if r.TryDecodeAsNil() { + x.AvailableReplicas = 0 + } else { + x.AvailableReplicas = int32(r.DecodeInt(32)) + } case "observedGeneration": if r.TryDecodeAsNil() { x.ObservedGeneration = 0 } else { x.ObservedGeneration = int64(r.DecodeInt(64)) } + case "conditions": + if r.TryDecodeAsNil() { + x.Conditions = nil + } else { + yyv2437 := &x.Conditions + yym2438 := z.DecBinary() + _ = yym2438 + if false { + } else { + h.decSliceReplicationControllerCondition((*[]ReplicationControllerCondition)(yyv2437), d) + } + } default: - z.DecStructFieldNotFound(-1, yys2387) - } // end switch yys2387 - } // end for yyj2387 + z.DecStructFieldNotFound(-1, yys2431) + } // end switch yys2431 + } // end for yyj2431 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -31479,16 +32134,16 @@ func (x *ReplicationControllerStatus) codecDecodeSelfFromArray(l int, d *codec19 var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj2392 int - var yyb2392 bool - var yyhl2392 bool = l >= 0 - yyj2392++ - if yyhl2392 { - yyb2392 = yyj2392 > l + var yyj2439 int + var yyb2439 bool + var yyhl2439 bool = l >= 0 + yyj2439++ + if yyhl2439 { + yyb2439 = yyj2439 > l } else { - yyb2392 = r.CheckBreak() + yyb2439 = r.CheckBreak() } - if yyb2392 { + if yyb2439 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -31498,13 +32153,13 @@ func (x *ReplicationControllerStatus) codecDecodeSelfFromArray(l int, d *codec19 } else { x.Replicas = int32(r.DecodeInt(32)) } - yyj2392++ - if yyhl2392 { - yyb2392 = yyj2392 > l + yyj2439++ + if yyhl2439 { + yyb2439 = yyj2439 > l } else { - yyb2392 = r.CheckBreak() + yyb2439 = r.CheckBreak() } - if yyb2392 { + if yyb2439 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -31514,13 +32169,13 @@ func (x *ReplicationControllerStatus) codecDecodeSelfFromArray(l int, d *codec19 } else { x.FullyLabeledReplicas = int32(r.DecodeInt(32)) } - yyj2392++ - if yyhl2392 { - yyb2392 = yyj2392 > l + yyj2439++ + if yyhl2439 { + yyb2439 = yyj2439 > l } else { - yyb2392 = r.CheckBreak() + yyb2439 = r.CheckBreak() } - if yyb2392 { + if yyb2439 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -31530,13 +32185,29 @@ func (x *ReplicationControllerStatus) codecDecodeSelfFromArray(l int, d *codec19 } else { x.ReadyReplicas = int32(r.DecodeInt(32)) } - yyj2392++ - if yyhl2392 { - yyb2392 = yyj2392 > l + yyj2439++ + if yyhl2439 { + yyb2439 = yyj2439 > l } else { - yyb2392 = r.CheckBreak() + yyb2439 = r.CheckBreak() } - if yyb2392 { + if yyb2439 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.AvailableReplicas = 0 + } else { + x.AvailableReplicas = int32(r.DecodeInt(32)) + } + yyj2439++ + if yyhl2439 { + yyb2439 = yyj2439 > l + } else { + yyb2439 = r.CheckBreak() + } + if yyb2439 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -31546,159 +32217,209 @@ func (x *ReplicationControllerStatus) codecDecodeSelfFromArray(l int, d *codec19 } else { x.ObservedGeneration = int64(r.DecodeInt(64)) } - for { - yyj2392++ - if yyhl2392 { - yyb2392 = yyj2392 > l + yyj2439++ + if yyhl2439 { + yyb2439 = yyj2439 > l + } else { + yyb2439 = r.CheckBreak() + } + if yyb2439 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Conditions = nil + } else { + yyv2445 := &x.Conditions + yym2446 := z.DecBinary() + _ = yym2446 + if false { } else { - yyb2392 = r.CheckBreak() + h.decSliceReplicationControllerCondition((*[]ReplicationControllerCondition)(yyv2445), d) } - if yyb2392 { + } + for { + yyj2439++ + if yyhl2439 { + yyb2439 = yyj2439 > l + } else { + yyb2439 = r.CheckBreak() + } + if yyb2439 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj2392-1, "") + z.DecStructFieldNotFound(yyj2439-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } -func (x *ReplicationController) CodecEncodeSelf(e *codec1978.Encoder) { +func (x ReplicationControllerConditionType) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + yym2447 := z.EncBinary() + _ = yym2447 + if false { + } else if z.HasExtensions() && z.EncExt(x) { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x)) + } +} + +func (x *ReplicationControllerConditionType) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + yym2448 := z.DecBinary() + _ = yym2448 + if false { + } else if z.HasExtensions() && z.DecExt(x) { + } else { + *((*string)(x)) = r.DecodeString() + } +} + +func (x *ReplicationControllerCondition) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { - yym2397 := z.EncBinary() - _ = yym2397 + yym2449 := z.EncBinary() + _ = yym2449 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - 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 { + yysep2450 := !z.EncBinary() + yy2arr2450 := z.EncBasicHandle().StructToArray + var yyq2450 [5]bool + _, _, _ = yysep2450, yyq2450, yy2arr2450 + const yyr2450 bool = false + yyq2450[2] = true + yyq2450[3] = x.Reason != "" + yyq2450[4] = x.Message != "" + var yynn2450 int + if yyr2450 || yy2arr2450 { r.EncodeArrayStart(5) } else { - yynn2398 = 0 - for _, b := range yyq2398 { + yynn2450 = 2 + for _, b := range yyq2450 { if b { - yynn2398++ + yynn2450++ } } - r.EncodeMapStart(yynn2398) - yynn2398 = 0 + r.EncodeMapStart(yynn2450) + yynn2450 = 0 } - if yyr2398 || yy2arr2398 { + if yyr2450 || yy2arr2450 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2398[0] { - yym2400 := z.EncBinary() - _ = yym2400 + x.Type.CodecEncodeSelf(e) + } else { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("type")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + x.Type.CodecEncodeSelf(e) + } + if yyr2450 || yy2arr2450 { + 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 yyr2450 || yy2arr2450 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq2450[2] { + yy2454 := &x.LastTransitionTime + yym2455 := z.EncBinary() + _ = yym2455 + if false { + } else if z.HasExtensions() && z.EncExt(yy2454) { + } else if yym2455 { + z.EncBinaryMarshal(yy2454) + } else if !yym2455 && z.IsJSONHandle() { + z.EncJSONMarshal(yy2454) + } else { + z.EncFallback(yy2454) + } + } else { + r.EncodeNil() + } + } else { + if yyq2450[2] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("lastTransitionTime")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yy2456 := &x.LastTransitionTime + yym2457 := z.EncBinary() + _ = yym2457 + if false { + } else if z.HasExtensions() && z.EncExt(yy2456) { + } else if yym2457 { + z.EncBinaryMarshal(yy2456) + } else if !yym2457 && z.IsJSONHandle() { + z.EncJSONMarshal(yy2456) + } else { + z.EncFallback(yy2456) + } + } + } + if yyr2450 || yy2arr2450 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq2450[3] { + yym2459 := z.EncBinary() + _ = yym2459 if false { } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + r.EncodeString(codecSelferC_UTF81234, string(x.Reason)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2398[0] { + if yyq2450[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("kind")) + r.EncodeString(codecSelferC_UTF81234, string("reason")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym2401 := z.EncBinary() - _ = yym2401 + yym2460 := z.EncBinary() + _ = yym2460 if false { } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + r.EncodeString(codecSelferC_UTF81234, string(x.Reason)) } } } - if yyr2398 || yy2arr2398 { + if yyr2450 || yy2arr2450 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2398[1] { - yym2403 := z.EncBinary() - _ = yym2403 + if yyq2450[4] { + yym2462 := z.EncBinary() + _ = yym2462 if false { } else { - r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + r.EncodeString(codecSelferC_UTF81234, string(x.Message)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2398[1] { + if yyq2450[4] { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) + r.EncodeString(codecSelferC_UTF81234, string("message")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym2404 := z.EncBinary() - _ = yym2404 + yym2463 := z.EncBinary() + _ = yym2463 if false { } else { - r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + r.EncodeString(codecSelferC_UTF81234, string(x.Message)) } } } - if yyr2398 || yy2arr2398 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2398[2] { - yy2406 := &x.ObjectMeta - yy2406.CodecEncodeSelf(e) - } else { - r.EncodeNil() - } - } else { - if yyq2398[2] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("metadata")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy2407 := &x.ObjectMeta - yy2407.CodecEncodeSelf(e) - } - } - if yyr2398 || yy2arr2398 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2398[3] { - yy2409 := &x.Spec - yy2409.CodecEncodeSelf(e) - } else { - r.EncodeNil() - } - } else { - if yyq2398[3] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("spec")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy2410 := &x.Spec - yy2410.CodecEncodeSelf(e) - } - } - if yyr2398 || yy2arr2398 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2398[4] { - yy2412 := &x.Status - yy2412.CodecEncodeSelf(e) - } else { - r.EncodeNil() - } - } else { - if yyq2398[4] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("status")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy2413 := &x.Status - yy2413.CodecEncodeSelf(e) - } - } - if yyr2398 || yy2arr2398 { + if yyr2450 || yy2arr2450 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -31707,29 +32428,29 @@ func (x *ReplicationController) CodecEncodeSelf(e *codec1978.Encoder) { } } -func (x *ReplicationController) CodecDecodeSelf(d *codec1978.Decoder) { +func (x *ReplicationControllerCondition) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym2414 := z.DecBinary() - _ = yym2414 + yym2464 := z.DecBinary() + _ = yym2464 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2415 := r.ContainerType() - if yyct2415 == codecSelferValueTypeMap1234 { - yyl2415 := r.ReadMapStart() - if yyl2415 == 0 { + yyct2465 := r.ContainerType() + if yyct2465 == codecSelferValueTypeMap1234 { + yyl2465 := r.ReadMapStart() + if yyl2465 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2415, d) + x.codecDecodeSelfFromMap(yyl2465, d) } - } else if yyct2415 == codecSelferValueTypeArray1234 { - yyl2415 := r.ReadArrayStart() - if yyl2415 == 0 { + } else if yyct2465 == codecSelferValueTypeArray1234 { + yyl2465 := r.ReadArrayStart() + if yyl2465 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2415, d) + x.codecDecodeSelfFromArray(yyl2465, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -31737,16 +32458,16 @@ func (x *ReplicationController) CodecDecodeSelf(d *codec1978.Decoder) { } } -func (x *ReplicationController) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { +func (x *ReplicationControllerCondition) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys2416Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys2416Slc - var yyhl2416 bool = l >= 0 - for yyj2416 := 0; ; yyj2416++ { - if yyhl2416 { - if yyj2416 >= l { + var yys2466Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys2466Slc + var yyhl2466 bool = l >= 0 + for yyj2466 := 0; ; yyj2466++ { + if yyhl2466 { + if yyj2466 >= l { break } } else { @@ -31755,676 +32476,59 @@ func (x *ReplicationController) codecDecodeSelfFromMap(l int, d *codec1978.Decod } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys2416Slc = r.DecodeBytes(yys2416Slc, true, true) - yys2416 := string(yys2416Slc) + yys2466Slc = r.DecodeBytes(yys2466Slc, true, true) + yys2466 := string(yys2466Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys2416 { - case "kind": + switch yys2466 { + case "type": if r.TryDecodeAsNil() { - x.Kind = "" + x.Type = "" } 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 { - yyv2419 := &x.ObjectMeta - yyv2419.CodecDecodeSelf(d) - } - case "spec": - if r.TryDecodeAsNil() { - x.Spec = ReplicationControllerSpec{} - } else { - yyv2420 := &x.Spec - yyv2420.CodecDecodeSelf(d) + x.Type = ReplicationControllerConditionType(r.DecodeString()) } case "status": if r.TryDecodeAsNil() { - x.Status = ReplicationControllerStatus{} + x.Status = "" } else { - yyv2421 := &x.Status - yyv2421.CodecDecodeSelf(d) + x.Status = ConditionStatus(r.DecodeString()) } - default: - z.DecStructFieldNotFound(-1, yys2416) - } // end switch yys2416 - } // end for yyj2416 - 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 yyj2422 int - var yyb2422 bool - var yyhl2422 bool = l >= 0 - yyj2422++ - if yyhl2422 { - yyb2422 = yyj2422 > l - } else { - yyb2422 = r.CheckBreak() - } - if yyb2422 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Kind = "" - } else { - x.Kind = string(r.DecodeString()) - } - yyj2422++ - if yyhl2422 { - yyb2422 = yyj2422 > l - } else { - yyb2422 = r.CheckBreak() - } - if yyb2422 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.APIVersion = "" - } else { - x.APIVersion = string(r.DecodeString()) - } - yyj2422++ - if yyhl2422 { - yyb2422 = yyj2422 > l - } else { - yyb2422 = r.CheckBreak() - } - if yyb2422 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.ObjectMeta = ObjectMeta{} - } else { - yyv2425 := &x.ObjectMeta - yyv2425.CodecDecodeSelf(d) - } - yyj2422++ - if yyhl2422 { - yyb2422 = yyj2422 > l - } else { - yyb2422 = r.CheckBreak() - } - if yyb2422 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Spec = ReplicationControllerSpec{} - } else { - yyv2426 := &x.Spec - yyv2426.CodecDecodeSelf(d) - } - yyj2422++ - if yyhl2422 { - yyb2422 = yyj2422 > l - } else { - yyb2422 = r.CheckBreak() - } - if yyb2422 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Status = ReplicationControllerStatus{} - } else { - yyv2427 := &x.Status - yyv2427.CodecDecodeSelf(d) - } - for { - yyj2422++ - if yyhl2422 { - yyb2422 = yyj2422 > l - } else { - yyb2422 = r.CheckBreak() - } - if yyb2422 { - break - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj2422-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 { - yym2428 := z.EncBinary() - _ = yym2428 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - 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 { - 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.Kind)) - } - } else { - r.EncodeString(codecSelferC_UTF81234, "") - } - } else { - if yyq2429[0] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("kind")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym2432 := z.EncBinary() - _ = yym2432 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) - } - } - } - if yyr2429 || yy2arr2429 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2429[1] { - yym2434 := z.EncBinary() - _ = yym2434 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) - } - } else { - r.EncodeString(codecSelferC_UTF81234, "") - } - } else { - if yyq2429[1] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym2435 := z.EncBinary() - _ = yym2435 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) - } - } - } - if yyr2429 || yy2arr2429 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2429[2] { - yy2437 := &x.ListMeta - yym2438 := z.EncBinary() - _ = yym2438 - if false { - } else if z.HasExtensions() && z.EncExt(yy2437) { - } else { - z.EncFallback(yy2437) - } - } else { - r.EncodeNil() - } - } else { - if yyq2429[2] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("metadata")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy2439 := &x.ListMeta - yym2440 := z.EncBinary() - _ = yym2440 - if false { - } else if z.HasExtensions() && z.EncExt(yy2439) { - } else { - z.EncFallback(yy2439) - } - } - } - if yyr2429 || yy2arr2429 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if x.Items == nil { - r.EncodeNil() - } else { - yym2442 := z.EncBinary() - _ = yym2442 - 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 { - yym2443 := z.EncBinary() - _ = yym2443 - if false { - } else { - h.encSliceReplicationController(([]ReplicationController)(x.Items), e) - } - } - } - if yyr2429 || yy2arr2429 { - 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 - yym2444 := z.DecBinary() - _ = yym2444 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - yyct2445 := r.ContainerType() - if yyct2445 == codecSelferValueTypeMap1234 { - yyl2445 := r.ReadMapStart() - if yyl2445 == 0 { - z.DecSendContainerState(codecSelfer_containerMapEnd1234) - } else { - x.codecDecodeSelfFromMap(yyl2445, d) - } - } else if yyct2445 == codecSelferValueTypeArray1234 { - yyl2445 := r.ReadArrayStart() - if yyl2445 == 0 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - x.codecDecodeSelfFromArray(yyl2445, 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 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 { - if r.CheckBreak() { - break - } - } - z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys2446Slc = r.DecodeBytes(yys2446Slc, true, true) - yys2446 := string(yys2446Slc) - z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys2446 { - case "kind": + case "lastTransitionTime": if r.TryDecodeAsNil() { - x.Kind = "" + x.LastTransitionTime = pkg2_unversioned.Time{} } 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 { - yyv2449 := &x.ListMeta - yym2450 := z.DecBinary() - _ = yym2450 + yyv2469 := &x.LastTransitionTime + yym2470 := z.DecBinary() + _ = yym2470 if false { - } else if z.HasExtensions() && z.DecExt(yyv2449) { + } else if z.HasExtensions() && z.DecExt(yyv2469) { + } else if yym2470 { + z.DecBinaryUnmarshal(yyv2469) + } else if !yym2470 && z.IsJSONHandle() { + z.DecJSONUnmarshal(yyv2469) } else { - z.DecFallback(yyv2449, false) + z.DecFallback(yyv2469, false) } } - case "items": + case "reason": if r.TryDecodeAsNil() { - x.Items = nil + x.Reason = "" } else { - yyv2451 := &x.Items - yym2452 := z.DecBinary() - _ = yym2452 - if false { - } else { - h.decSliceReplicationController((*[]ReplicationController)(yyv2451), d) - } + x.Reason = string(r.DecodeString()) + } + case "message": + if r.TryDecodeAsNil() { + x.Message = "" + } else { + x.Message = string(r.DecodeString()) } default: - z.DecStructFieldNotFound(-1, yys2446) - } // end switch yys2446 - } // end for yyj2446 + z.DecStructFieldNotFound(-1, yys2466) + } // end switch yys2466 + } // end for yyj2466 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 yyj2453 int - var yyb2453 bool - var yyhl2453 bool = l >= 0 - yyj2453++ - if yyhl2453 { - yyb2453 = yyj2453 > l - } else { - yyb2453 = r.CheckBreak() - } - if yyb2453 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Kind = "" - } else { - x.Kind = string(r.DecodeString()) - } - yyj2453++ - if yyhl2453 { - yyb2453 = yyj2453 > l - } else { - yyb2453 = r.CheckBreak() - } - if yyb2453 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.APIVersion = "" - } else { - x.APIVersion = string(r.DecodeString()) - } - yyj2453++ - if yyhl2453 { - yyb2453 = yyj2453 > l - } else { - yyb2453 = r.CheckBreak() - } - if yyb2453 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.ListMeta = pkg2_unversioned.ListMeta{} - } else { - yyv2456 := &x.ListMeta - yym2457 := z.DecBinary() - _ = yym2457 - if false { - } else if z.HasExtensions() && z.DecExt(yyv2456) { - } else { - z.DecFallback(yyv2456, false) - } - } - yyj2453++ - if yyhl2453 { - yyb2453 = yyj2453 > l - } else { - yyb2453 = r.CheckBreak() - } - if yyb2453 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Items = nil - } else { - yyv2458 := &x.Items - yym2459 := z.DecBinary() - _ = yym2459 - if false { - } else { - h.decSliceReplicationController((*[]ReplicationController)(yyv2458), d) - } - } - for { - yyj2453++ - if yyhl2453 { - yyb2453 = yyj2453 > l - } else { - yyb2453 = r.CheckBreak() - } - if yyb2453 { - break - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj2453-1, "") - } - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) -} - -func (x ServiceAffinity) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - yym2460 := z.EncBinary() - _ = yym2460 - 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 - yym2461 := z.DecBinary() - _ = yym2461 - 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 - yym2462 := z.EncBinary() - _ = yym2462 - 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 - yym2463 := z.DecBinary() - _ = yym2463 - 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 { - yym2464 := z.EncBinary() - _ = yym2464 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - 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 { - yynn2465 = 0 - for _, b := range yyq2465 { - if b { - yynn2465++ - } - } - r.EncodeMapStart(yynn2465) - yynn2465 = 0 - } - if yyr2465 || yy2arr2465 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2465[0] { - yy2467 := &x.LoadBalancer - yy2467.CodecEncodeSelf(e) - } else { - r.EncodeNil() - } - } else { - if yyq2465[0] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("loadBalancer")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy2468 := &x.LoadBalancer - yy2468.CodecEncodeSelf(e) - } - } - if yyr2465 || yy2arr2465 { - 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 - yym2469 := z.DecBinary() - _ = yym2469 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - yyct2470 := r.ContainerType() - if yyct2470 == codecSelferValueTypeMap1234 { - yyl2470 := r.ReadMapStart() - if yyl2470 == 0 { - z.DecSendContainerState(codecSelfer_containerMapEnd1234) - } else { - x.codecDecodeSelfFromMap(yyl2470, d) - } - } else if yyct2470 == codecSelferValueTypeArray1234 { - yyl2470 := r.ReadArrayStart() - if yyl2470 == 0 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - x.codecDecodeSelfFromArray(yyl2470, d) - } - } else { - panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) - } - } -} - -func (x *ServiceStatus) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yys2471Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys2471Slc - var yyhl2471 bool = l >= 0 - for yyj2471 := 0; ; yyj2471++ { - if yyhl2471 { - if yyj2471 >= l { - break - } - } else { - if r.CheckBreak() { - break - } - } - z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys2471Slc = r.DecodeBytes(yys2471Slc, true, true) - yys2471 := string(yys2471Slc) - z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys2471 { - case "loadBalancer": - if r.TryDecodeAsNil() { - x.LoadBalancer = LoadBalancerStatus{} - } else { - yyv2472 := &x.LoadBalancer - yyv2472.CodecDecodeSelf(d) - } - default: - z.DecStructFieldNotFound(-1, yys2471) - } // end switch yys2471 - } // end for yyj2471 - z.DecSendContainerState(codecSelfer_containerMapEnd1234) -} - -func (x *ServiceStatus) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { +func (x *ReplicationControllerCondition) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r @@ -32443,10 +32547,84 @@ func (x *ServiceStatus) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.LoadBalancer = LoadBalancerStatus{} + x.Type = "" } else { - yyv2474 := &x.LoadBalancer - yyv2474.CodecDecodeSelf(d) + x.Type = ReplicationControllerConditionType(r.DecodeString()) + } + yyj2473++ + if yyhl2473 { + yyb2473 = yyj2473 > l + } else { + yyb2473 = r.CheckBreak() + } + if yyb2473 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Status = "" + } else { + x.Status = ConditionStatus(r.DecodeString()) + } + yyj2473++ + if yyhl2473 { + yyb2473 = yyj2473 > l + } else { + yyb2473 = r.CheckBreak() + } + if yyb2473 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.LastTransitionTime = pkg2_unversioned.Time{} + } else { + yyv2476 := &x.LastTransitionTime + yym2477 := z.DecBinary() + _ = yym2477 + if false { + } else if z.HasExtensions() && z.DecExt(yyv2476) { + } else if yym2477 { + z.DecBinaryUnmarshal(yyv2476) + } else if !yym2477 && z.IsJSONHandle() { + z.DecJSONUnmarshal(yyv2476) + } else { + z.DecFallback(yyv2476, false) + } + } + yyj2473++ + if yyhl2473 { + yyb2473 = yyj2473 > l + } else { + yyb2473 = r.CheckBreak() + } + if yyb2473 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Reason = "" + } else { + x.Reason = string(r.DecodeString()) + } + yyj2473++ + if yyhl2473 { + yyb2473 = yyj2473 > l + } else { + yyb2473 = r.CheckBreak() + } + if yyb2473 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Message = "" + } else { + x.Message = string(r.DecodeString()) } for { yyj2473++ @@ -32464,6 +32642,908 @@ func (x *ServiceStatus) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { 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 { + yym2480 := z.EncBinary() + _ = yym2480 + if false { + } else if z.HasExtensions() && z.EncExt(x) { + } else { + yysep2481 := !z.EncBinary() + yy2arr2481 := z.EncBasicHandle().StructToArray + var yyq2481 [5]bool + _, _, _ = yysep2481, yyq2481, yy2arr2481 + const yyr2481 bool = false + yyq2481[0] = x.Kind != "" + yyq2481[1] = x.APIVersion != "" + yyq2481[2] = true + yyq2481[3] = true + yyq2481[4] = true + var yynn2481 int + if yyr2481 || yy2arr2481 { + r.EncodeArrayStart(5) + } else { + yynn2481 = 0 + for _, b := range yyq2481 { + if b { + yynn2481++ + } + } + r.EncodeMapStart(yynn2481) + yynn2481 = 0 + } + if yyr2481 || yy2arr2481 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq2481[0] { + yym2483 := z.EncBinary() + _ = yym2483 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq2481[0] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("kind")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym2484 := z.EncBinary() + _ = yym2484 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + } + } + } + if yyr2481 || yy2arr2481 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq2481[1] { + yym2486 := z.EncBinary() + _ = yym2486 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq2481[1] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym2487 := z.EncBinary() + _ = yym2487 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + } + } + } + if yyr2481 || yy2arr2481 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq2481[2] { + yy2489 := &x.ObjectMeta + yy2489.CodecEncodeSelf(e) + } else { + r.EncodeNil() + } + } else { + if yyq2481[2] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("metadata")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yy2490 := &x.ObjectMeta + yy2490.CodecEncodeSelf(e) + } + } + if yyr2481 || yy2arr2481 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq2481[3] { + yy2492 := &x.Spec + yy2492.CodecEncodeSelf(e) + } else { + r.EncodeNil() + } + } else { + if yyq2481[3] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("spec")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yy2493 := &x.Spec + yy2493.CodecEncodeSelf(e) + } + } + if yyr2481 || yy2arr2481 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq2481[4] { + yy2495 := &x.Status + yy2495.CodecEncodeSelf(e) + } else { + r.EncodeNil() + } + } else { + if yyq2481[4] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("status")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yy2496 := &x.Status + yy2496.CodecEncodeSelf(e) + } + } + if yyr2481 || yy2arr2481 { + 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 + yym2497 := z.DecBinary() + _ = yym2497 + if false { + } else if z.HasExtensions() && z.DecExt(x) { + } else { + yyct2498 := r.ContainerType() + if yyct2498 == codecSelferValueTypeMap1234 { + yyl2498 := r.ReadMapStart() + if yyl2498 == 0 { + z.DecSendContainerState(codecSelfer_containerMapEnd1234) + } else { + x.codecDecodeSelfFromMap(yyl2498, d) + } + } else if yyct2498 == codecSelferValueTypeArray1234 { + yyl2498 := r.ReadArrayStart() + if yyl2498 == 0 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + x.codecDecodeSelfFromArray(yyl2498, 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 yys2499Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys2499Slc + var yyhl2499 bool = l >= 0 + for yyj2499 := 0; ; yyj2499++ { + if yyhl2499 { + if yyj2499 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + z.DecSendContainerState(codecSelfer_containerMapKey1234) + yys2499Slc = r.DecodeBytes(yys2499Slc, true, true) + yys2499 := string(yys2499Slc) + z.DecSendContainerState(codecSelfer_containerMapValue1234) + switch yys2499 { + case "kind": + if 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 { + yyv2502 := &x.ObjectMeta + yyv2502.CodecDecodeSelf(d) + } + case "spec": + if r.TryDecodeAsNil() { + x.Spec = ReplicationControllerSpec{} + } else { + yyv2503 := &x.Spec + yyv2503.CodecDecodeSelf(d) + } + case "status": + if r.TryDecodeAsNil() { + x.Status = ReplicationControllerStatus{} + } else { + yyv2504 := &x.Status + yyv2504.CodecDecodeSelf(d) + } + default: + z.DecStructFieldNotFound(-1, yys2499) + } // end switch yys2499 + } // end for yyj2499 + 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 yyj2505 int + var yyb2505 bool + var yyhl2505 bool = l >= 0 + yyj2505++ + if yyhl2505 { + yyb2505 = yyj2505 > l + } else { + yyb2505 = r.CheckBreak() + } + if yyb2505 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Kind = "" + } else { + x.Kind = string(r.DecodeString()) + } + yyj2505++ + if yyhl2505 { + yyb2505 = yyj2505 > l + } else { + yyb2505 = r.CheckBreak() + } + if yyb2505 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.APIVersion = "" + } else { + x.APIVersion = string(r.DecodeString()) + } + yyj2505++ + if yyhl2505 { + yyb2505 = yyj2505 > l + } else { + yyb2505 = r.CheckBreak() + } + if yyb2505 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.ObjectMeta = ObjectMeta{} + } else { + yyv2508 := &x.ObjectMeta + yyv2508.CodecDecodeSelf(d) + } + yyj2505++ + if yyhl2505 { + yyb2505 = yyj2505 > l + } else { + yyb2505 = r.CheckBreak() + } + if yyb2505 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Spec = ReplicationControllerSpec{} + } else { + yyv2509 := &x.Spec + yyv2509.CodecDecodeSelf(d) + } + yyj2505++ + if yyhl2505 { + yyb2505 = yyj2505 > l + } else { + yyb2505 = r.CheckBreak() + } + if yyb2505 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Status = ReplicationControllerStatus{} + } else { + yyv2510 := &x.Status + yyv2510.CodecDecodeSelf(d) + } + for { + yyj2505++ + if yyhl2505 { + yyb2505 = yyj2505 > l + } else { + yyb2505 = r.CheckBreak() + } + if yyb2505 { + break + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + z.DecStructFieldNotFound(yyj2505-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 { + yym2511 := z.EncBinary() + _ = yym2511 + if false { + } else if z.HasExtensions() && z.EncExt(x) { + } else { + yysep2512 := !z.EncBinary() + yy2arr2512 := z.EncBasicHandle().StructToArray + var yyq2512 [4]bool + _, _, _ = yysep2512, yyq2512, yy2arr2512 + const yyr2512 bool = false + yyq2512[0] = x.Kind != "" + yyq2512[1] = x.APIVersion != "" + yyq2512[2] = true + var yynn2512 int + if yyr2512 || yy2arr2512 { + r.EncodeArrayStart(4) + } else { + yynn2512 = 1 + for _, b := range yyq2512 { + if b { + yynn2512++ + } + } + r.EncodeMapStart(yynn2512) + yynn2512 = 0 + } + if yyr2512 || yy2arr2512 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq2512[0] { + yym2514 := z.EncBinary() + _ = yym2514 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq2512[0] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("kind")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym2515 := z.EncBinary() + _ = yym2515 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + } + } + } + if yyr2512 || yy2arr2512 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq2512[1] { + yym2517 := z.EncBinary() + _ = yym2517 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq2512[1] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym2518 := z.EncBinary() + _ = yym2518 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + } + } + } + if yyr2512 || yy2arr2512 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq2512[2] { + yy2520 := &x.ListMeta + yym2521 := z.EncBinary() + _ = yym2521 + if false { + } else if z.HasExtensions() && z.EncExt(yy2520) { + } else { + z.EncFallback(yy2520) + } + } else { + r.EncodeNil() + } + } else { + if yyq2512[2] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("metadata")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yy2522 := &x.ListMeta + yym2523 := z.EncBinary() + _ = yym2523 + if false { + } else if z.HasExtensions() && z.EncExt(yy2522) { + } else { + z.EncFallback(yy2522) + } + } + } + if yyr2512 || yy2arr2512 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if x.Items == nil { + r.EncodeNil() + } else { + yym2525 := z.EncBinary() + _ = yym2525 + 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 { + yym2526 := z.EncBinary() + _ = yym2526 + if false { + } else { + h.encSliceReplicationController(([]ReplicationController)(x.Items), e) + } + } + } + if yyr2512 || yy2arr2512 { + 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 + yym2527 := z.DecBinary() + _ = yym2527 + if false { + } else if z.HasExtensions() && z.DecExt(x) { + } else { + yyct2528 := r.ContainerType() + if yyct2528 == codecSelferValueTypeMap1234 { + yyl2528 := r.ReadMapStart() + if yyl2528 == 0 { + z.DecSendContainerState(codecSelfer_containerMapEnd1234) + } else { + x.codecDecodeSelfFromMap(yyl2528, d) + } + } else if yyct2528 == codecSelferValueTypeArray1234 { + yyl2528 := r.ReadArrayStart() + if yyl2528 == 0 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + x.codecDecodeSelfFromArray(yyl2528, 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 yys2529Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys2529Slc + var yyhl2529 bool = l >= 0 + for yyj2529 := 0; ; yyj2529++ { + if yyhl2529 { + if yyj2529 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + z.DecSendContainerState(codecSelfer_containerMapKey1234) + yys2529Slc = r.DecodeBytes(yys2529Slc, true, true) + yys2529 := string(yys2529Slc) + z.DecSendContainerState(codecSelfer_containerMapValue1234) + switch yys2529 { + case "kind": + if 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 { + yyv2532 := &x.ListMeta + yym2533 := z.DecBinary() + _ = yym2533 + if false { + } else if z.HasExtensions() && z.DecExt(yyv2532) { + } else { + z.DecFallback(yyv2532, false) + } + } + case "items": + if r.TryDecodeAsNil() { + x.Items = nil + } else { + yyv2534 := &x.Items + yym2535 := z.DecBinary() + _ = yym2535 + if false { + } else { + h.decSliceReplicationController((*[]ReplicationController)(yyv2534), d) + } + } + default: + z.DecStructFieldNotFound(-1, yys2529) + } // end switch yys2529 + } // end for yyj2529 + 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 yyj2536 int + var yyb2536 bool + var yyhl2536 bool = l >= 0 + yyj2536++ + if yyhl2536 { + yyb2536 = yyj2536 > l + } else { + yyb2536 = r.CheckBreak() + } + if yyb2536 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Kind = "" + } else { + x.Kind = string(r.DecodeString()) + } + yyj2536++ + if yyhl2536 { + yyb2536 = yyj2536 > l + } else { + yyb2536 = r.CheckBreak() + } + if yyb2536 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.APIVersion = "" + } else { + x.APIVersion = string(r.DecodeString()) + } + yyj2536++ + if yyhl2536 { + yyb2536 = yyj2536 > l + } else { + yyb2536 = r.CheckBreak() + } + if yyb2536 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.ListMeta = pkg2_unversioned.ListMeta{} + } else { + yyv2539 := &x.ListMeta + yym2540 := z.DecBinary() + _ = yym2540 + if false { + } else if z.HasExtensions() && z.DecExt(yyv2539) { + } else { + z.DecFallback(yyv2539, false) + } + } + yyj2536++ + if yyhl2536 { + yyb2536 = yyj2536 > l + } else { + yyb2536 = r.CheckBreak() + } + if yyb2536 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Items = nil + } else { + yyv2541 := &x.Items + yym2542 := z.DecBinary() + _ = yym2542 + if false { + } else { + h.decSliceReplicationController((*[]ReplicationController)(yyv2541), d) + } + } + for { + yyj2536++ + if yyhl2536 { + yyb2536 = yyj2536 > l + } else { + yyb2536 = r.CheckBreak() + } + if yyb2536 { + break + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + z.DecStructFieldNotFound(yyj2536-1, "") + } + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) +} + +func (x ServiceAffinity) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + yym2543 := z.EncBinary() + _ = yym2543 + 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 + yym2544 := z.DecBinary() + _ = yym2544 + 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 + yym2545 := z.EncBinary() + _ = yym2545 + 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 + yym2546 := z.DecBinary() + _ = yym2546 + 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 { + yym2547 := z.EncBinary() + _ = yym2547 + if false { + } else if z.HasExtensions() && z.EncExt(x) { + } else { + yysep2548 := !z.EncBinary() + yy2arr2548 := z.EncBasicHandle().StructToArray + var yyq2548 [1]bool + _, _, _ = yysep2548, yyq2548, yy2arr2548 + const yyr2548 bool = false + yyq2548[0] = true + var yynn2548 int + if yyr2548 || yy2arr2548 { + r.EncodeArrayStart(1) + } else { + yynn2548 = 0 + for _, b := range yyq2548 { + if b { + yynn2548++ + } + } + r.EncodeMapStart(yynn2548) + yynn2548 = 0 + } + if yyr2548 || yy2arr2548 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq2548[0] { + yy2550 := &x.LoadBalancer + yy2550.CodecEncodeSelf(e) + } else { + r.EncodeNil() + } + } else { + if yyq2548[0] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("loadBalancer")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yy2551 := &x.LoadBalancer + yy2551.CodecEncodeSelf(e) + } + } + if yyr2548 || yy2arr2548 { + 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 + yym2552 := z.DecBinary() + _ = yym2552 + if false { + } else if z.HasExtensions() && z.DecExt(x) { + } else { + yyct2553 := r.ContainerType() + if yyct2553 == codecSelferValueTypeMap1234 { + yyl2553 := r.ReadMapStart() + if yyl2553 == 0 { + z.DecSendContainerState(codecSelfer_containerMapEnd1234) + } else { + x.codecDecodeSelfFromMap(yyl2553, d) + } + } else if yyct2553 == codecSelferValueTypeArray1234 { + yyl2553 := r.ReadArrayStart() + if yyl2553 == 0 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + x.codecDecodeSelfFromArray(yyl2553, 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 yys2554Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys2554Slc + var yyhl2554 bool = l >= 0 + for yyj2554 := 0; ; yyj2554++ { + if yyhl2554 { + if yyj2554 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + z.DecSendContainerState(codecSelfer_containerMapKey1234) + yys2554Slc = r.DecodeBytes(yys2554Slc, true, true) + yys2554 := string(yys2554Slc) + z.DecSendContainerState(codecSelfer_containerMapValue1234) + switch yys2554 { + case "loadBalancer": + if r.TryDecodeAsNil() { + x.LoadBalancer = LoadBalancerStatus{} + } else { + yyv2555 := &x.LoadBalancer + yyv2555.CodecDecodeSelf(d) + } + default: + z.DecStructFieldNotFound(-1, yys2554) + } // end switch yys2554 + } // end for yyj2554 + 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 yyj2556 int + var yyb2556 bool + var yyhl2556 bool = l >= 0 + yyj2556++ + if yyhl2556 { + yyb2556 = yyj2556 > l + } else { + yyb2556 = r.CheckBreak() + } + if yyb2556 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.LoadBalancer = LoadBalancerStatus{} + } else { + yyv2557 := &x.LoadBalancer + yyv2557.CodecDecodeSelf(d) + } + for { + yyj2556++ + if yyhl2556 { + yyb2556 = yyj2556 > l + } else { + yyb2556 = r.CheckBreak() + } + if yyb2556 { + break + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + z.DecStructFieldNotFound(yyj2556-1, "") + } + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) +} + func (x *LoadBalancerStatus) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) @@ -32471,38 +33551,38 @@ func (x *LoadBalancerStatus) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym2475 := z.EncBinary() - _ = yym2475 + yym2558 := z.EncBinary() + _ = yym2558 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - 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 { + yysep2559 := !z.EncBinary() + yy2arr2559 := z.EncBasicHandle().StructToArray + var yyq2559 [1]bool + _, _, _ = yysep2559, yyq2559, yy2arr2559 + const yyr2559 bool = false + yyq2559[0] = len(x.Ingress) != 0 + var yynn2559 int + if yyr2559 || yy2arr2559 { r.EncodeArrayStart(1) } else { - yynn2476 = 0 - for _, b := range yyq2476 { + yynn2559 = 0 + for _, b := range yyq2559 { if b { - yynn2476++ + yynn2559++ } } - r.EncodeMapStart(yynn2476) - yynn2476 = 0 + r.EncodeMapStart(yynn2559) + yynn2559 = 0 } - if yyr2476 || yy2arr2476 { + if yyr2559 || yy2arr2559 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2476[0] { + if yyq2559[0] { if x.Ingress == nil { r.EncodeNil() } else { - yym2478 := z.EncBinary() - _ = yym2478 + yym2561 := z.EncBinary() + _ = yym2561 if false { } else { h.encSliceLoadBalancerIngress(([]LoadBalancerIngress)(x.Ingress), e) @@ -32512,15 +33592,15 @@ func (x *LoadBalancerStatus) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq2476[0] { + if yyq2559[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("ingress")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.Ingress == nil { r.EncodeNil() } else { - yym2479 := z.EncBinary() - _ = yym2479 + yym2562 := z.EncBinary() + _ = yym2562 if false { } else { h.encSliceLoadBalancerIngress(([]LoadBalancerIngress)(x.Ingress), e) @@ -32528,7 +33608,7 @@ func (x *LoadBalancerStatus) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr2476 || yy2arr2476 { + if yyr2559 || yy2arr2559 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -32541,25 +33621,25 @@ func (x *LoadBalancerStatus) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym2480 := z.DecBinary() - _ = yym2480 + yym2563 := z.DecBinary() + _ = yym2563 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2481 := r.ContainerType() - if yyct2481 == codecSelferValueTypeMap1234 { - yyl2481 := r.ReadMapStart() - if yyl2481 == 0 { + yyct2564 := r.ContainerType() + if yyct2564 == codecSelferValueTypeMap1234 { + yyl2564 := r.ReadMapStart() + if yyl2564 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2481, d) + x.codecDecodeSelfFromMap(yyl2564, d) } - } else if yyct2481 == codecSelferValueTypeArray1234 { - yyl2481 := r.ReadArrayStart() - if yyl2481 == 0 { + } else if yyct2564 == codecSelferValueTypeArray1234 { + yyl2564 := r.ReadArrayStart() + if yyl2564 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2481, d) + x.codecDecodeSelfFromArray(yyl2564, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -32571,12 +33651,12 @@ func (x *LoadBalancerStatus) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys2482Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys2482Slc - var yyhl2482 bool = l >= 0 - for yyj2482 := 0; ; yyj2482++ { - if yyhl2482 { - if yyj2482 >= l { + var yys2565Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys2565Slc + var yyhl2565 bool = l >= 0 + for yyj2565 := 0; ; yyj2565++ { + if yyhl2565 { + if yyj2565 >= l { break } } else { @@ -32585,26 +33665,26 @@ func (x *LoadBalancerStatus) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys2482Slc = r.DecodeBytes(yys2482Slc, true, true) - yys2482 := string(yys2482Slc) + yys2565Slc = r.DecodeBytes(yys2565Slc, true, true) + yys2565 := string(yys2565Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys2482 { + switch yys2565 { case "ingress": if r.TryDecodeAsNil() { x.Ingress = nil } else { - yyv2483 := &x.Ingress - yym2484 := z.DecBinary() - _ = yym2484 + yyv2566 := &x.Ingress + yym2567 := z.DecBinary() + _ = yym2567 if false { } else { - h.decSliceLoadBalancerIngress((*[]LoadBalancerIngress)(yyv2483), d) + h.decSliceLoadBalancerIngress((*[]LoadBalancerIngress)(yyv2566), d) } } default: - z.DecStructFieldNotFound(-1, yys2482) - } // end switch yys2482 - } // end for yyj2482 + z.DecStructFieldNotFound(-1, yys2565) + } // end switch yys2565 + } // end for yyj2565 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -32612,16 +33692,16 @@ func (x *LoadBalancerStatus) codecDecodeSelfFromArray(l int, d *codec1978.Decode var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj2485 int - var yyb2485 bool - var yyhl2485 bool = l >= 0 - yyj2485++ - if yyhl2485 { - yyb2485 = yyj2485 > l + var yyj2568 int + var yyb2568 bool + var yyhl2568 bool = l >= 0 + yyj2568++ + if yyhl2568 { + yyb2568 = yyj2568 > l } else { - yyb2485 = r.CheckBreak() + yyb2568 = r.CheckBreak() } - if yyb2485 { + if yyb2568 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -32629,26 +33709,26 @@ func (x *LoadBalancerStatus) codecDecodeSelfFromArray(l int, d *codec1978.Decode if r.TryDecodeAsNil() { x.Ingress = nil } else { - yyv2486 := &x.Ingress - yym2487 := z.DecBinary() - _ = yym2487 + yyv2569 := &x.Ingress + yym2570 := z.DecBinary() + _ = yym2570 if false { } else { - h.decSliceLoadBalancerIngress((*[]LoadBalancerIngress)(yyv2486), d) + h.decSliceLoadBalancerIngress((*[]LoadBalancerIngress)(yyv2569), d) } } for { - yyj2485++ - if yyhl2485 { - yyb2485 = yyj2485 > l + yyj2568++ + if yyhl2568 { + yyb2568 = yyj2568 > l } else { - yyb2485 = r.CheckBreak() + yyb2568 = r.CheckBreak() } - if yyb2485 { + if yyb2568 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj2485-1, "") + z.DecStructFieldNotFound(yyj2568-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -32660,36 +33740,36 @@ func (x *LoadBalancerIngress) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym2488 := z.EncBinary() - _ = yym2488 + yym2571 := z.EncBinary() + _ = yym2571 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - 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 { + yysep2572 := !z.EncBinary() + yy2arr2572 := z.EncBasicHandle().StructToArray + var yyq2572 [2]bool + _, _, _ = yysep2572, yyq2572, yy2arr2572 + const yyr2572 bool = false + yyq2572[0] = x.IP != "" + yyq2572[1] = x.Hostname != "" + var yynn2572 int + if yyr2572 || yy2arr2572 { r.EncodeArrayStart(2) } else { - yynn2489 = 0 - for _, b := range yyq2489 { + yynn2572 = 0 + for _, b := range yyq2572 { if b { - yynn2489++ + yynn2572++ } } - r.EncodeMapStart(yynn2489) - yynn2489 = 0 + r.EncodeMapStart(yynn2572) + yynn2572 = 0 } - if yyr2489 || yy2arr2489 { + if yyr2572 || yy2arr2572 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2489[0] { - yym2491 := z.EncBinary() - _ = yym2491 + if yyq2572[0] { + yym2574 := z.EncBinary() + _ = yym2574 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.IP)) @@ -32698,23 +33778,23 @@ func (x *LoadBalancerIngress) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2489[0] { + if yyq2572[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("ip")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym2492 := z.EncBinary() - _ = yym2492 + yym2575 := z.EncBinary() + _ = yym2575 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.IP)) } } } - if yyr2489 || yy2arr2489 { + if yyr2572 || yy2arr2572 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2489[1] { - yym2494 := z.EncBinary() - _ = yym2494 + if yyq2572[1] { + yym2577 := z.EncBinary() + _ = yym2577 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Hostname)) @@ -32723,19 +33803,19 @@ func (x *LoadBalancerIngress) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2489[1] { + if yyq2572[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("hostname")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym2495 := z.EncBinary() - _ = yym2495 + yym2578 := z.EncBinary() + _ = yym2578 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Hostname)) } } } - if yyr2489 || yy2arr2489 { + if yyr2572 || yy2arr2572 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -32748,25 +33828,25 @@ func (x *LoadBalancerIngress) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym2496 := z.DecBinary() - _ = yym2496 + yym2579 := z.DecBinary() + _ = yym2579 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2497 := r.ContainerType() - if yyct2497 == codecSelferValueTypeMap1234 { - yyl2497 := r.ReadMapStart() - if yyl2497 == 0 { + yyct2580 := r.ContainerType() + if yyct2580 == codecSelferValueTypeMap1234 { + yyl2580 := r.ReadMapStart() + if yyl2580 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2497, d) + x.codecDecodeSelfFromMap(yyl2580, d) } - } else if yyct2497 == codecSelferValueTypeArray1234 { - yyl2497 := r.ReadArrayStart() - if yyl2497 == 0 { + } else if yyct2580 == codecSelferValueTypeArray1234 { + yyl2580 := r.ReadArrayStart() + if yyl2580 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2497, d) + x.codecDecodeSelfFromArray(yyl2580, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -32778,12 +33858,12 @@ func (x *LoadBalancerIngress) codecDecodeSelfFromMap(l int, d *codec1978.Decoder var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys2498Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys2498Slc - var yyhl2498 bool = l >= 0 - for yyj2498 := 0; ; yyj2498++ { - if yyhl2498 { - if yyj2498 >= l { + var yys2581Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys2581Slc + var yyhl2581 bool = l >= 0 + for yyj2581 := 0; ; yyj2581++ { + if yyhl2581 { + if yyj2581 >= l { break } } else { @@ -32792,10 +33872,10 @@ func (x *LoadBalancerIngress) codecDecodeSelfFromMap(l int, d *codec1978.Decoder } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys2498Slc = r.DecodeBytes(yys2498Slc, true, true) - yys2498 := string(yys2498Slc) + yys2581Slc = r.DecodeBytes(yys2581Slc, true, true) + yys2581 := string(yys2581Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys2498 { + switch yys2581 { case "ip": if r.TryDecodeAsNil() { x.IP = "" @@ -32809,9 +33889,9 @@ func (x *LoadBalancerIngress) codecDecodeSelfFromMap(l int, d *codec1978.Decoder x.Hostname = string(r.DecodeString()) } default: - z.DecStructFieldNotFound(-1, yys2498) - } // end switch yys2498 - } // end for yyj2498 + z.DecStructFieldNotFound(-1, yys2581) + } // end switch yys2581 + } // end for yyj2581 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -32819,16 +33899,16 @@ func (x *LoadBalancerIngress) codecDecodeSelfFromArray(l int, d *codec1978.Decod var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj2501 int - var yyb2501 bool - var yyhl2501 bool = l >= 0 - yyj2501++ - if yyhl2501 { - yyb2501 = yyj2501 > l + var yyj2584 int + var yyb2584 bool + var yyhl2584 bool = l >= 0 + yyj2584++ + if yyhl2584 { + yyb2584 = yyj2584 > l } else { - yyb2501 = r.CheckBreak() + yyb2584 = r.CheckBreak() } - if yyb2501 { + if yyb2584 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -32838,13 +33918,13 @@ func (x *LoadBalancerIngress) codecDecodeSelfFromArray(l int, d *codec1978.Decod } else { x.IP = string(r.DecodeString()) } - yyj2501++ - if yyhl2501 { - yyb2501 = yyj2501 > l + yyj2584++ + if yyhl2584 { + yyb2584 = yyj2584 > l } else { - yyb2501 = r.CheckBreak() + yyb2584 = r.CheckBreak() } - if yyb2501 { + if yyb2584 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -32855,17 +33935,17 @@ func (x *LoadBalancerIngress) codecDecodeSelfFromArray(l int, d *codec1978.Decod x.Hostname = string(r.DecodeString()) } for { - yyj2501++ - if yyhl2501 { - yyb2501 = yyj2501 > l + yyj2584++ + if yyhl2584 { + yyb2584 = yyj2584 > l } else { - yyb2501 = r.CheckBreak() + yyb2584 = r.CheckBreak() } - if yyb2501 { + if yyb2584 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj2501-1, "") + z.DecStructFieldNotFound(yyj2584-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -32877,45 +33957,45 @@ func (x *ServiceSpec) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym2504 := z.EncBinary() - _ = yym2504 + yym2587 := z.EncBinary() + _ = yym2587 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - 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 { + yysep2588 := !z.EncBinary() + yy2arr2588 := z.EncBasicHandle().StructToArray + var yyq2588 [10]bool + _, _, _ = yysep2588, yyq2588, yy2arr2588 + const yyr2588 bool = false + yyq2588[1] = len(x.Selector) != 0 + yyq2588[2] = x.ClusterIP != "" + yyq2588[3] = x.Type != "" + yyq2588[4] = len(x.ExternalIPs) != 0 + yyq2588[5] = len(x.DeprecatedPublicIPs) != 0 + yyq2588[6] = x.SessionAffinity != "" + yyq2588[7] = x.LoadBalancerIP != "" + yyq2588[8] = len(x.LoadBalancerSourceRanges) != 0 + yyq2588[9] = x.ExternalName != "" + var yynn2588 int + if yyr2588 || yy2arr2588 { r.EncodeArrayStart(10) } else { - yynn2505 = 1 - for _, b := range yyq2505 { + yynn2588 = 1 + for _, b := range yyq2588 { if b { - yynn2505++ + yynn2588++ } } - r.EncodeMapStart(yynn2505) - yynn2505 = 0 + r.EncodeMapStart(yynn2588) + yynn2588 = 0 } - if yyr2505 || yy2arr2505 { + if yyr2588 || yy2arr2588 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.Ports == nil { r.EncodeNil() } else { - yym2507 := z.EncBinary() - _ = yym2507 + yym2590 := z.EncBinary() + _ = yym2590 if false { } else { h.encSliceServicePort(([]ServicePort)(x.Ports), e) @@ -32928,22 +34008,22 @@ func (x *ServiceSpec) CodecEncodeSelf(e *codec1978.Encoder) { if x.Ports == nil { r.EncodeNil() } else { - yym2508 := z.EncBinary() - _ = yym2508 + yym2591 := z.EncBinary() + _ = yym2591 if false { } else { h.encSliceServicePort(([]ServicePort)(x.Ports), e) } } } - if yyr2505 || yy2arr2505 { + if yyr2588 || yy2arr2588 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2505[1] { + if yyq2588[1] { if x.Selector == nil { r.EncodeNil() } else { - yym2510 := z.EncBinary() - _ = yym2510 + yym2593 := z.EncBinary() + _ = yym2593 if false { } else { z.F.EncMapStringStringV(x.Selector, false, e) @@ -32953,15 +34033,15 @@ func (x *ServiceSpec) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq2505[1] { + if yyq2588[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("selector")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.Selector == nil { r.EncodeNil() } else { - yym2511 := z.EncBinary() - _ = yym2511 + yym2594 := z.EncBinary() + _ = yym2594 if false { } else { z.F.EncMapStringStringV(x.Selector, false, e) @@ -32969,11 +34049,11 @@ func (x *ServiceSpec) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr2505 || yy2arr2505 { + if yyr2588 || yy2arr2588 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2505[2] { - yym2513 := z.EncBinary() - _ = yym2513 + if yyq2588[2] { + yym2596 := z.EncBinary() + _ = yym2596 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.ClusterIP)) @@ -32982,41 +34062,41 @@ func (x *ServiceSpec) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2505[2] { + if yyq2588[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("clusterIP")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym2514 := z.EncBinary() - _ = yym2514 + yym2597 := z.EncBinary() + _ = yym2597 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.ClusterIP)) } } } - if yyr2505 || yy2arr2505 { + if yyr2588 || yy2arr2588 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2505[3] { + if yyq2588[3] { x.Type.CodecEncodeSelf(e) } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2505[3] { + if yyq2588[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("type")) z.EncSendContainerState(codecSelfer_containerMapValue1234) x.Type.CodecEncodeSelf(e) } } - if yyr2505 || yy2arr2505 { + if yyr2588 || yy2arr2588 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2505[4] { + if yyq2588[4] { if x.ExternalIPs == nil { r.EncodeNil() } else { - yym2517 := z.EncBinary() - _ = yym2517 + yym2600 := z.EncBinary() + _ = yym2600 if false { } else { z.F.EncSliceStringV(x.ExternalIPs, false, e) @@ -33026,15 +34106,15 @@ func (x *ServiceSpec) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq2505[4] { + if yyq2588[4] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("externalIPs")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.ExternalIPs == nil { r.EncodeNil() } else { - yym2518 := z.EncBinary() - _ = yym2518 + yym2601 := z.EncBinary() + _ = yym2601 if false { } else { z.F.EncSliceStringV(x.ExternalIPs, false, e) @@ -33042,14 +34122,14 @@ func (x *ServiceSpec) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr2505 || yy2arr2505 { + if yyr2588 || yy2arr2588 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2505[5] { + if yyq2588[5] { if x.DeprecatedPublicIPs == nil { r.EncodeNil() } else { - yym2520 := z.EncBinary() - _ = yym2520 + yym2603 := z.EncBinary() + _ = yym2603 if false { } else { z.F.EncSliceStringV(x.DeprecatedPublicIPs, false, e) @@ -33059,15 +34139,15 @@ func (x *ServiceSpec) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq2505[5] { + if yyq2588[5] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("deprecatedPublicIPs")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.DeprecatedPublicIPs == nil { r.EncodeNil() } else { - yym2521 := z.EncBinary() - _ = yym2521 + yym2604 := z.EncBinary() + _ = yym2604 if false { } else { z.F.EncSliceStringV(x.DeprecatedPublicIPs, false, e) @@ -33075,26 +34155,26 @@ func (x *ServiceSpec) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr2505 || yy2arr2505 { + if yyr2588 || yy2arr2588 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2505[6] { + if yyq2588[6] { x.SessionAffinity.CodecEncodeSelf(e) } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2505[6] { + if yyq2588[6] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("sessionAffinity")) z.EncSendContainerState(codecSelfer_containerMapValue1234) x.SessionAffinity.CodecEncodeSelf(e) } } - if yyr2505 || yy2arr2505 { + if yyr2588 || yy2arr2588 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2505[7] { - yym2524 := z.EncBinary() - _ = yym2524 + if yyq2588[7] { + yym2607 := z.EncBinary() + _ = yym2607 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.LoadBalancerIP)) @@ -33103,26 +34183,26 @@ func (x *ServiceSpec) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2505[7] { + if yyq2588[7] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("loadBalancerIP")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym2525 := z.EncBinary() - _ = yym2525 + yym2608 := z.EncBinary() + _ = yym2608 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.LoadBalancerIP)) } } } - if yyr2505 || yy2arr2505 { + if yyr2588 || yy2arr2588 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2505[8] { + if yyq2588[8] { if x.LoadBalancerSourceRanges == nil { r.EncodeNil() } else { - yym2527 := z.EncBinary() - _ = yym2527 + yym2610 := z.EncBinary() + _ = yym2610 if false { } else { z.F.EncSliceStringV(x.LoadBalancerSourceRanges, false, e) @@ -33132,15 +34212,15 @@ func (x *ServiceSpec) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq2505[8] { + if yyq2588[8] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("loadBalancerSourceRanges")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.LoadBalancerSourceRanges == nil { r.EncodeNil() } else { - yym2528 := z.EncBinary() - _ = yym2528 + yym2611 := z.EncBinary() + _ = yym2611 if false { } else { z.F.EncSliceStringV(x.LoadBalancerSourceRanges, false, e) @@ -33148,11 +34228,11 @@ func (x *ServiceSpec) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr2505 || yy2arr2505 { + if yyr2588 || yy2arr2588 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2505[9] { - yym2530 := z.EncBinary() - _ = yym2530 + if yyq2588[9] { + yym2613 := z.EncBinary() + _ = yym2613 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.ExternalName)) @@ -33161,19 +34241,19 @@ func (x *ServiceSpec) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2505[9] { + if yyq2588[9] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("externalName")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym2531 := z.EncBinary() - _ = yym2531 + yym2614 := z.EncBinary() + _ = yym2614 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.ExternalName)) } } } - if yyr2505 || yy2arr2505 { + if yyr2588 || yy2arr2588 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -33186,25 +34266,25 @@ func (x *ServiceSpec) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym2532 := z.DecBinary() - _ = yym2532 + yym2615 := z.DecBinary() + _ = yym2615 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2533 := r.ContainerType() - if yyct2533 == codecSelferValueTypeMap1234 { - yyl2533 := r.ReadMapStart() - if yyl2533 == 0 { + yyct2616 := r.ContainerType() + if yyct2616 == codecSelferValueTypeMap1234 { + yyl2616 := r.ReadMapStart() + if yyl2616 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2533, d) + x.codecDecodeSelfFromMap(yyl2616, d) } - } else if yyct2533 == codecSelferValueTypeArray1234 { - yyl2533 := r.ReadArrayStart() - if yyl2533 == 0 { + } else if yyct2616 == codecSelferValueTypeArray1234 { + yyl2616 := r.ReadArrayStart() + if yyl2616 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2533, d) + x.codecDecodeSelfFromArray(yyl2616, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -33216,12 +34296,12 @@ func (x *ServiceSpec) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys2534Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys2534Slc - var yyhl2534 bool = l >= 0 - for yyj2534 := 0; ; yyj2534++ { - if yyhl2534 { - if yyj2534 >= l { + var yys2617Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys2617Slc + var yyhl2617 bool = l >= 0 + for yyj2617 := 0; ; yyj2617++ { + if yyhl2617 { + if yyj2617 >= l { break } } else { @@ -33230,32 +34310,32 @@ func (x *ServiceSpec) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys2534Slc = r.DecodeBytes(yys2534Slc, true, true) - yys2534 := string(yys2534Slc) + yys2617Slc = r.DecodeBytes(yys2617Slc, true, true) + yys2617 := string(yys2617Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys2534 { + switch yys2617 { case "ports": if r.TryDecodeAsNil() { x.Ports = nil } else { - yyv2535 := &x.Ports - yym2536 := z.DecBinary() - _ = yym2536 + yyv2618 := &x.Ports + yym2619 := z.DecBinary() + _ = yym2619 if false { } else { - h.decSliceServicePort((*[]ServicePort)(yyv2535), d) + h.decSliceServicePort((*[]ServicePort)(yyv2618), d) } } case "selector": if r.TryDecodeAsNil() { x.Selector = nil } else { - yyv2537 := &x.Selector - yym2538 := z.DecBinary() - _ = yym2538 + yyv2620 := &x.Selector + yym2621 := z.DecBinary() + _ = yym2621 if false { } else { - z.F.DecMapStringStringX(yyv2537, false, d) + z.F.DecMapStringStringX(yyv2620, false, d) } } case "clusterIP": @@ -33274,24 +34354,24 @@ func (x *ServiceSpec) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.ExternalIPs = nil } else { - yyv2541 := &x.ExternalIPs - yym2542 := z.DecBinary() - _ = yym2542 + yyv2624 := &x.ExternalIPs + yym2625 := z.DecBinary() + _ = yym2625 if false { } else { - z.F.DecSliceStringX(yyv2541, false, d) + z.F.DecSliceStringX(yyv2624, false, d) } } case "deprecatedPublicIPs": if r.TryDecodeAsNil() { x.DeprecatedPublicIPs = nil } else { - yyv2543 := &x.DeprecatedPublicIPs - yym2544 := z.DecBinary() - _ = yym2544 + yyv2626 := &x.DeprecatedPublicIPs + yym2627 := z.DecBinary() + _ = yym2627 if false { } else { - z.F.DecSliceStringX(yyv2543, false, d) + z.F.DecSliceStringX(yyv2626, false, d) } } case "sessionAffinity": @@ -33310,12 +34390,12 @@ func (x *ServiceSpec) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.LoadBalancerSourceRanges = nil } else { - yyv2547 := &x.LoadBalancerSourceRanges - yym2548 := z.DecBinary() - _ = yym2548 + yyv2630 := &x.LoadBalancerSourceRanges + yym2631 := z.DecBinary() + _ = yym2631 if false { } else { - z.F.DecSliceStringX(yyv2547, false, d) + z.F.DecSliceStringX(yyv2630, false, d) } } case "externalName": @@ -33325,9 +34405,9 @@ func (x *ServiceSpec) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { x.ExternalName = string(r.DecodeString()) } default: - z.DecStructFieldNotFound(-1, yys2534) - } // end switch yys2534 - } // end for yyj2534 + z.DecStructFieldNotFound(-1, yys2617) + } // end switch yys2617 + } // end for yyj2617 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -33335,16 +34415,16 @@ func (x *ServiceSpec) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj2550 int - var yyb2550 bool - var yyhl2550 bool = l >= 0 - yyj2550++ - if yyhl2550 { - yyb2550 = yyj2550 > l + var yyj2633 int + var yyb2633 bool + var yyhl2633 bool = l >= 0 + yyj2633++ + if yyhl2633 { + yyb2633 = yyj2633 > l } else { - yyb2550 = r.CheckBreak() + yyb2633 = r.CheckBreak() } - if yyb2550 { + if yyb2633 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -33352,21 +34432,21 @@ func (x *ServiceSpec) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.Ports = nil } else { - yyv2551 := &x.Ports - yym2552 := z.DecBinary() - _ = yym2552 + yyv2634 := &x.Ports + yym2635 := z.DecBinary() + _ = yym2635 if false { } else { - h.decSliceServicePort((*[]ServicePort)(yyv2551), d) + h.decSliceServicePort((*[]ServicePort)(yyv2634), d) } } - yyj2550++ - if yyhl2550 { - yyb2550 = yyj2550 > l + yyj2633++ + if yyhl2633 { + yyb2633 = yyj2633 > l } else { - yyb2550 = r.CheckBreak() + yyb2633 = r.CheckBreak() } - if yyb2550 { + if yyb2633 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -33374,21 +34454,21 @@ func (x *ServiceSpec) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.Selector = nil } else { - yyv2553 := &x.Selector - yym2554 := z.DecBinary() - _ = yym2554 + yyv2636 := &x.Selector + yym2637 := z.DecBinary() + _ = yym2637 if false { } else { - z.F.DecMapStringStringX(yyv2553, false, d) + z.F.DecMapStringStringX(yyv2636, false, d) } } - yyj2550++ - if yyhl2550 { - yyb2550 = yyj2550 > l + yyj2633++ + if yyhl2633 { + yyb2633 = yyj2633 > l } else { - yyb2550 = r.CheckBreak() + yyb2633 = r.CheckBreak() } - if yyb2550 { + if yyb2633 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -33398,13 +34478,13 @@ func (x *ServiceSpec) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.ClusterIP = string(r.DecodeString()) } - yyj2550++ - if yyhl2550 { - yyb2550 = yyj2550 > l + yyj2633++ + if yyhl2633 { + yyb2633 = yyj2633 > l } else { - yyb2550 = r.CheckBreak() + yyb2633 = r.CheckBreak() } - if yyb2550 { + if yyb2633 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -33414,13 +34494,13 @@ func (x *ServiceSpec) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.Type = ServiceType(r.DecodeString()) } - yyj2550++ - if yyhl2550 { - yyb2550 = yyj2550 > l + yyj2633++ + if yyhl2633 { + yyb2633 = yyj2633 > l } else { - yyb2550 = r.CheckBreak() + yyb2633 = r.CheckBreak() } - if yyb2550 { + if yyb2633 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -33428,21 +34508,21 @@ func (x *ServiceSpec) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.ExternalIPs = nil } else { - yyv2557 := &x.ExternalIPs - yym2558 := z.DecBinary() - _ = yym2558 + yyv2640 := &x.ExternalIPs + yym2641 := z.DecBinary() + _ = yym2641 if false { } else { - z.F.DecSliceStringX(yyv2557, false, d) + z.F.DecSliceStringX(yyv2640, false, d) } } - yyj2550++ - if yyhl2550 { - yyb2550 = yyj2550 > l + yyj2633++ + if yyhl2633 { + yyb2633 = yyj2633 > l } else { - yyb2550 = r.CheckBreak() + yyb2633 = r.CheckBreak() } - if yyb2550 { + if yyb2633 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -33450,21 +34530,21 @@ func (x *ServiceSpec) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.DeprecatedPublicIPs = nil } else { - yyv2559 := &x.DeprecatedPublicIPs - yym2560 := z.DecBinary() - _ = yym2560 + yyv2642 := &x.DeprecatedPublicIPs + yym2643 := z.DecBinary() + _ = yym2643 if false { } else { - z.F.DecSliceStringX(yyv2559, false, d) + z.F.DecSliceStringX(yyv2642, false, d) } } - yyj2550++ - if yyhl2550 { - yyb2550 = yyj2550 > l + yyj2633++ + if yyhl2633 { + yyb2633 = yyj2633 > l } else { - yyb2550 = r.CheckBreak() + yyb2633 = r.CheckBreak() } - if yyb2550 { + if yyb2633 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -33474,13 +34554,13 @@ func (x *ServiceSpec) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.SessionAffinity = ServiceAffinity(r.DecodeString()) } - yyj2550++ - if yyhl2550 { - yyb2550 = yyj2550 > l + yyj2633++ + if yyhl2633 { + yyb2633 = yyj2633 > l } else { - yyb2550 = r.CheckBreak() + yyb2633 = r.CheckBreak() } - if yyb2550 { + if yyb2633 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -33490,13 +34570,13 @@ func (x *ServiceSpec) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.LoadBalancerIP = string(r.DecodeString()) } - yyj2550++ - if yyhl2550 { - yyb2550 = yyj2550 > l + yyj2633++ + if yyhl2633 { + yyb2633 = yyj2633 > l } else { - yyb2550 = r.CheckBreak() + yyb2633 = r.CheckBreak() } - if yyb2550 { + if yyb2633 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -33504,21 +34584,21 @@ func (x *ServiceSpec) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.LoadBalancerSourceRanges = nil } else { - yyv2563 := &x.LoadBalancerSourceRanges - yym2564 := z.DecBinary() - _ = yym2564 + yyv2646 := &x.LoadBalancerSourceRanges + yym2647 := z.DecBinary() + _ = yym2647 if false { } else { - z.F.DecSliceStringX(yyv2563, false, d) + z.F.DecSliceStringX(yyv2646, false, d) } } - yyj2550++ - if yyhl2550 { - yyb2550 = yyj2550 > l + yyj2633++ + if yyhl2633 { + yyb2633 = yyj2633 > l } else { - yyb2550 = r.CheckBreak() + yyb2633 = r.CheckBreak() } - if yyb2550 { + if yyb2633 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -33529,17 +34609,17 @@ func (x *ServiceSpec) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { x.ExternalName = string(r.DecodeString()) } for { - yyj2550++ - if yyhl2550 { - yyb2550 = yyj2550 > l + yyj2633++ + if yyhl2633 { + yyb2633 = yyj2633 > l } else { - yyb2550 = r.CheckBreak() + yyb2633 = r.CheckBreak() } - if yyb2550 { + if yyb2633 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj2550-1, "") + z.DecStructFieldNotFound(yyj2633-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -33551,38 +34631,38 @@ func (x *ServicePort) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym2566 := z.EncBinary() - _ = yym2566 + yym2649 := z.EncBinary() + _ = yym2649 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - 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 { + yysep2650 := !z.EncBinary() + yy2arr2650 := z.EncBasicHandle().StructToArray + var yyq2650 [5]bool + _, _, _ = yysep2650, yyq2650, yy2arr2650 + const yyr2650 bool = false + yyq2650[0] = x.Name != "" + yyq2650[1] = x.Protocol != "" + yyq2650[3] = true + yyq2650[4] = x.NodePort != 0 + var yynn2650 int + if yyr2650 || yy2arr2650 { r.EncodeArrayStart(5) } else { - yynn2567 = 1 - for _, b := range yyq2567 { + yynn2650 = 1 + for _, b := range yyq2650 { if b { - yynn2567++ + yynn2650++ } } - r.EncodeMapStart(yynn2567) - yynn2567 = 0 + r.EncodeMapStart(yynn2650) + yynn2650 = 0 } - if yyr2567 || yy2arr2567 { + if yyr2650 || yy2arr2650 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2567[0] { - yym2569 := z.EncBinary() - _ = yym2569 + if yyq2650[0] { + yym2652 := z.EncBinary() + _ = yym2652 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Name)) @@ -33591,37 +34671,37 @@ func (x *ServicePort) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2567[0] { + if yyq2650[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("name")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym2570 := z.EncBinary() - _ = yym2570 + yym2653 := z.EncBinary() + _ = yym2653 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Name)) } } } - if yyr2567 || yy2arr2567 { + if yyr2650 || yy2arr2650 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2567[1] { + if yyq2650[1] { x.Protocol.CodecEncodeSelf(e) } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2567[1] { + if yyq2650[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("protocol")) z.EncSendContainerState(codecSelfer_containerMapValue1234) x.Protocol.CodecEncodeSelf(e) } } - if yyr2567 || yy2arr2567 { + if yyr2650 || yy2arr2650 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym2573 := z.EncBinary() - _ = yym2573 + yym2656 := z.EncBinary() + _ = yym2656 if false { } else { r.EncodeInt(int64(x.Port)) @@ -33630,51 +34710,51 @@ func (x *ServicePort) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("port")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym2574 := z.EncBinary() - _ = yym2574 + yym2657 := z.EncBinary() + _ = yym2657 if false { } else { r.EncodeInt(int64(x.Port)) } } - if yyr2567 || yy2arr2567 { + if yyr2650 || yy2arr2650 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2567[3] { - yy2576 := &x.TargetPort - yym2577 := z.EncBinary() - _ = yym2577 + if yyq2650[3] { + yy2659 := &x.TargetPort + yym2660 := z.EncBinary() + _ = yym2660 if false { - } else if z.HasExtensions() && z.EncExt(yy2576) { - } else if !yym2577 && z.IsJSONHandle() { - z.EncJSONMarshal(yy2576) + } else if z.HasExtensions() && z.EncExt(yy2659) { + } else if !yym2660 && z.IsJSONHandle() { + z.EncJSONMarshal(yy2659) } else { - z.EncFallback(yy2576) + z.EncFallback(yy2659) } } else { r.EncodeNil() } } else { - if yyq2567[3] { + if yyq2650[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("targetPort")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy2578 := &x.TargetPort - yym2579 := z.EncBinary() - _ = yym2579 + yy2661 := &x.TargetPort + yym2662 := z.EncBinary() + _ = yym2662 if false { - } else if z.HasExtensions() && z.EncExt(yy2578) { - } else if !yym2579 && z.IsJSONHandle() { - z.EncJSONMarshal(yy2578) + } else if z.HasExtensions() && z.EncExt(yy2661) { + } else if !yym2662 && z.IsJSONHandle() { + z.EncJSONMarshal(yy2661) } else { - z.EncFallback(yy2578) + z.EncFallback(yy2661) } } } - if yyr2567 || yy2arr2567 { + if yyr2650 || yy2arr2650 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2567[4] { - yym2581 := z.EncBinary() - _ = yym2581 + if yyq2650[4] { + yym2664 := z.EncBinary() + _ = yym2664 if false { } else { r.EncodeInt(int64(x.NodePort)) @@ -33683,19 +34763,19 @@ func (x *ServicePort) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeInt(0) } } else { - if yyq2567[4] { + if yyq2650[4] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("nodePort")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym2582 := z.EncBinary() - _ = yym2582 + yym2665 := z.EncBinary() + _ = yym2665 if false { } else { r.EncodeInt(int64(x.NodePort)) } } } - if yyr2567 || yy2arr2567 { + if yyr2650 || yy2arr2650 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -33708,25 +34788,25 @@ func (x *ServicePort) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym2583 := z.DecBinary() - _ = yym2583 + yym2666 := z.DecBinary() + _ = yym2666 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2584 := r.ContainerType() - if yyct2584 == codecSelferValueTypeMap1234 { - yyl2584 := r.ReadMapStart() - if yyl2584 == 0 { + yyct2667 := r.ContainerType() + if yyct2667 == codecSelferValueTypeMap1234 { + yyl2667 := r.ReadMapStart() + if yyl2667 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2584, d) + x.codecDecodeSelfFromMap(yyl2667, d) } - } else if yyct2584 == codecSelferValueTypeArray1234 { - yyl2584 := r.ReadArrayStart() - if yyl2584 == 0 { + } else if yyct2667 == codecSelferValueTypeArray1234 { + yyl2667 := r.ReadArrayStart() + if yyl2667 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2584, d) + x.codecDecodeSelfFromArray(yyl2667, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -33738,12 +34818,12 @@ func (x *ServicePort) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys2585Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys2585Slc - var yyhl2585 bool = l >= 0 - for yyj2585 := 0; ; yyj2585++ { - if yyhl2585 { - if yyj2585 >= l { + var yys2668Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys2668Slc + var yyhl2668 bool = l >= 0 + for yyj2668 := 0; ; yyj2668++ { + if yyhl2668 { + if yyj2668 >= l { break } } else { @@ -33752,10 +34832,10 @@ func (x *ServicePort) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys2585Slc = r.DecodeBytes(yys2585Slc, true, true) - yys2585 := string(yys2585Slc) + yys2668Slc = r.DecodeBytes(yys2668Slc, true, true) + yys2668 := string(yys2668Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys2585 { + switch yys2668 { case "name": if r.TryDecodeAsNil() { x.Name = "" @@ -33778,15 +34858,15 @@ func (x *ServicePort) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.TargetPort = pkg4_intstr.IntOrString{} } else { - yyv2589 := &x.TargetPort - yym2590 := z.DecBinary() - _ = yym2590 + yyv2672 := &x.TargetPort + yym2673 := z.DecBinary() + _ = yym2673 if false { - } else if z.HasExtensions() && z.DecExt(yyv2589) { - } else if !yym2590 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv2589) + } else if z.HasExtensions() && z.DecExt(yyv2672) { + } else if !yym2673 && z.IsJSONHandle() { + z.DecJSONUnmarshal(yyv2672) } else { - z.DecFallback(yyv2589, false) + z.DecFallback(yyv2672, false) } } case "nodePort": @@ -33796,9 +34876,9 @@ func (x *ServicePort) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { x.NodePort = int32(r.DecodeInt(32)) } default: - z.DecStructFieldNotFound(-1, yys2585) - } // end switch yys2585 - } // end for yyj2585 + z.DecStructFieldNotFound(-1, yys2668) + } // end switch yys2668 + } // end for yyj2668 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -33806,16 +34886,16 @@ func (x *ServicePort) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj2592 int - var yyb2592 bool - var yyhl2592 bool = l >= 0 - yyj2592++ - if yyhl2592 { - yyb2592 = yyj2592 > l + var yyj2675 int + var yyb2675 bool + var yyhl2675 bool = l >= 0 + yyj2675++ + if yyhl2675 { + yyb2675 = yyj2675 > l } else { - yyb2592 = r.CheckBreak() + yyb2675 = r.CheckBreak() } - if yyb2592 { + if yyb2675 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -33825,13 +34905,13 @@ func (x *ServicePort) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.Name = string(r.DecodeString()) } - yyj2592++ - if yyhl2592 { - yyb2592 = yyj2592 > l + yyj2675++ + if yyhl2675 { + yyb2675 = yyj2675 > l } else { - yyb2592 = r.CheckBreak() + yyb2675 = r.CheckBreak() } - if yyb2592 { + if yyb2675 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -33841,13 +34921,13 @@ func (x *ServicePort) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.Protocol = Protocol(r.DecodeString()) } - yyj2592++ - if yyhl2592 { - yyb2592 = yyj2592 > l + yyj2675++ + if yyhl2675 { + yyb2675 = yyj2675 > l } else { - yyb2592 = r.CheckBreak() + yyb2675 = r.CheckBreak() } - if yyb2592 { + if yyb2675 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -33857,13 +34937,13 @@ func (x *ServicePort) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.Port = int32(r.DecodeInt(32)) } - yyj2592++ - if yyhl2592 { - yyb2592 = yyj2592 > l + yyj2675++ + if yyhl2675 { + yyb2675 = yyj2675 > l } else { - yyb2592 = r.CheckBreak() + yyb2675 = r.CheckBreak() } - if yyb2592 { + if yyb2675 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -33871,24 +34951,24 @@ func (x *ServicePort) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.TargetPort = pkg4_intstr.IntOrString{} } else { - yyv2596 := &x.TargetPort - yym2597 := z.DecBinary() - _ = yym2597 + yyv2679 := &x.TargetPort + yym2680 := z.DecBinary() + _ = yym2680 if false { - } else if z.HasExtensions() && z.DecExt(yyv2596) { - } else if !yym2597 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv2596) + } else if z.HasExtensions() && z.DecExt(yyv2679) { + } else if !yym2680 && z.IsJSONHandle() { + z.DecJSONUnmarshal(yyv2679) } else { - z.DecFallback(yyv2596, false) + z.DecFallback(yyv2679, false) } } - yyj2592++ - if yyhl2592 { - yyb2592 = yyj2592 > l + yyj2675++ + if yyhl2675 { + yyb2675 = yyj2675 > l } else { - yyb2592 = r.CheckBreak() + yyb2675 = r.CheckBreak() } - if yyb2592 { + if yyb2675 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -33899,17 +34979,17 @@ func (x *ServicePort) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { x.NodePort = int32(r.DecodeInt(32)) } for { - yyj2592++ - if yyhl2592 { - yyb2592 = yyj2592 > l + yyj2675++ + if yyhl2675 { + yyb2675 = yyj2675 > l } else { - yyb2592 = r.CheckBreak() + yyb2675 = r.CheckBreak() } - if yyb2592 { + if yyb2675 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj2592-1, "") + z.DecStructFieldNotFound(yyj2675-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -33921,39 +35001,39 @@ func (x *Service) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym2599 := z.EncBinary() - _ = yym2599 + yym2682 := z.EncBinary() + _ = yym2682 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - 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 { + yysep2683 := !z.EncBinary() + yy2arr2683 := z.EncBasicHandle().StructToArray + var yyq2683 [5]bool + _, _, _ = yysep2683, yyq2683, yy2arr2683 + const yyr2683 bool = false + yyq2683[0] = x.Kind != "" + yyq2683[1] = x.APIVersion != "" + yyq2683[2] = true + yyq2683[3] = true + yyq2683[4] = true + var yynn2683 int + if yyr2683 || yy2arr2683 { r.EncodeArrayStart(5) } else { - yynn2600 = 0 - for _, b := range yyq2600 { + yynn2683 = 0 + for _, b := range yyq2683 { if b { - yynn2600++ + yynn2683++ } } - r.EncodeMapStart(yynn2600) - yynn2600 = 0 + r.EncodeMapStart(yynn2683) + yynn2683 = 0 } - if yyr2600 || yy2arr2600 { + if yyr2683 || yy2arr2683 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2600[0] { - yym2602 := z.EncBinary() - _ = yym2602 + if yyq2683[0] { + yym2685 := z.EncBinary() + _ = yym2685 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) @@ -33962,23 +35042,23 @@ func (x *Service) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2600[0] { + if yyq2683[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym2603 := z.EncBinary() - _ = yym2603 + yym2686 := z.EncBinary() + _ = yym2686 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } - if yyr2600 || yy2arr2600 { + if yyr2683 || yy2arr2683 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2600[1] { - yym2605 := z.EncBinary() - _ = yym2605 + if yyq2683[1] { + yym2688 := z.EncBinary() + _ = yym2688 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) @@ -33987,70 +35067,70 @@ func (x *Service) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2600[1] { + if yyq2683[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym2606 := z.EncBinary() - _ = yym2606 + yym2689 := z.EncBinary() + _ = yym2689 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } - if yyr2600 || yy2arr2600 { + if yyr2683 || yy2arr2683 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2600[2] { - yy2608 := &x.ObjectMeta - yy2608.CodecEncodeSelf(e) + if yyq2683[2] { + yy2691 := &x.ObjectMeta + yy2691.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { - if yyq2600[2] { + if yyq2683[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy2609 := &x.ObjectMeta - yy2609.CodecEncodeSelf(e) + yy2692 := &x.ObjectMeta + yy2692.CodecEncodeSelf(e) } } - if yyr2600 || yy2arr2600 { + if yyr2683 || yy2arr2683 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2600[3] { - yy2611 := &x.Spec - yy2611.CodecEncodeSelf(e) + if yyq2683[3] { + yy2694 := &x.Spec + yy2694.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { - if yyq2600[3] { + if yyq2683[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("spec")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy2612 := &x.Spec - yy2612.CodecEncodeSelf(e) + yy2695 := &x.Spec + yy2695.CodecEncodeSelf(e) } } - if yyr2600 || yy2arr2600 { + if yyr2683 || yy2arr2683 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2600[4] { - yy2614 := &x.Status - yy2614.CodecEncodeSelf(e) + if yyq2683[4] { + yy2697 := &x.Status + yy2697.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { - if yyq2600[4] { + if yyq2683[4] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("status")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy2615 := &x.Status - yy2615.CodecEncodeSelf(e) + yy2698 := &x.Status + yy2698.CodecEncodeSelf(e) } } - if yyr2600 || yy2arr2600 { + if yyr2683 || yy2arr2683 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -34063,25 +35143,25 @@ func (x *Service) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym2616 := z.DecBinary() - _ = yym2616 + yym2699 := z.DecBinary() + _ = yym2699 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2617 := r.ContainerType() - if yyct2617 == codecSelferValueTypeMap1234 { - yyl2617 := r.ReadMapStart() - if yyl2617 == 0 { + yyct2700 := r.ContainerType() + if yyct2700 == codecSelferValueTypeMap1234 { + yyl2700 := r.ReadMapStart() + if yyl2700 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2617, d) + x.codecDecodeSelfFromMap(yyl2700, d) } - } else if yyct2617 == codecSelferValueTypeArray1234 { - yyl2617 := r.ReadArrayStart() - if yyl2617 == 0 { + } else if yyct2700 == codecSelferValueTypeArray1234 { + yyl2700 := r.ReadArrayStart() + if yyl2700 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2617, d) + x.codecDecodeSelfFromArray(yyl2700, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -34093,12 +35173,12 @@ func (x *Service) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys2618Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys2618Slc - var yyhl2618 bool = l >= 0 - for yyj2618 := 0; ; yyj2618++ { - if yyhl2618 { - if yyj2618 >= l { + var yys2701Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys2701Slc + var yyhl2701 bool = l >= 0 + for yyj2701 := 0; ; yyj2701++ { + if yyhl2701 { + if yyj2701 >= l { break } } else { @@ -34107,10 +35187,10 @@ func (x *Service) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys2618Slc = r.DecodeBytes(yys2618Slc, true, true) - yys2618 := string(yys2618Slc) + yys2701Slc = r.DecodeBytes(yys2701Slc, true, true) + yys2701 := string(yys2701Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys2618 { + switch yys2701 { case "kind": if r.TryDecodeAsNil() { x.Kind = "" @@ -34127,27 +35207,27 @@ func (x *Service) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.ObjectMeta = ObjectMeta{} } else { - yyv2621 := &x.ObjectMeta - yyv2621.CodecDecodeSelf(d) + yyv2704 := &x.ObjectMeta + yyv2704.CodecDecodeSelf(d) } case "spec": if r.TryDecodeAsNil() { x.Spec = ServiceSpec{} } else { - yyv2622 := &x.Spec - yyv2622.CodecDecodeSelf(d) + yyv2705 := &x.Spec + yyv2705.CodecDecodeSelf(d) } case "status": if r.TryDecodeAsNil() { x.Status = ServiceStatus{} } else { - yyv2623 := &x.Status - yyv2623.CodecDecodeSelf(d) + yyv2706 := &x.Status + yyv2706.CodecDecodeSelf(d) } default: - z.DecStructFieldNotFound(-1, yys2618) - } // end switch yys2618 - } // end for yyj2618 + z.DecStructFieldNotFound(-1, yys2701) + } // end switch yys2701 + } // end for yyj2701 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -34155,16 +35235,16 @@ func (x *Service) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj2624 int - var yyb2624 bool - var yyhl2624 bool = l >= 0 - yyj2624++ - if yyhl2624 { - yyb2624 = yyj2624 > l + var yyj2707 int + var yyb2707 bool + var yyhl2707 bool = l >= 0 + yyj2707++ + if yyhl2707 { + yyb2707 = yyj2707 > l } else { - yyb2624 = r.CheckBreak() + yyb2707 = r.CheckBreak() } - if yyb2624 { + if yyb2707 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -34174,13 +35254,13 @@ func (x *Service) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.Kind = string(r.DecodeString()) } - yyj2624++ - if yyhl2624 { - yyb2624 = yyj2624 > l + yyj2707++ + if yyhl2707 { + yyb2707 = yyj2707 > l } else { - yyb2624 = r.CheckBreak() + yyb2707 = r.CheckBreak() } - if yyb2624 { + if yyb2707 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -34190,13 +35270,13 @@ func (x *Service) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.APIVersion = string(r.DecodeString()) } - yyj2624++ - if yyhl2624 { - yyb2624 = yyj2624 > l + yyj2707++ + if yyhl2707 { + yyb2707 = yyj2707 > l } else { - yyb2624 = r.CheckBreak() + yyb2707 = r.CheckBreak() } - if yyb2624 { + if yyb2707 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -34204,16 +35284,16 @@ func (x *Service) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.ObjectMeta = ObjectMeta{} } else { - yyv2627 := &x.ObjectMeta - yyv2627.CodecDecodeSelf(d) + yyv2710 := &x.ObjectMeta + yyv2710.CodecDecodeSelf(d) } - yyj2624++ - if yyhl2624 { - yyb2624 = yyj2624 > l + yyj2707++ + if yyhl2707 { + yyb2707 = yyj2707 > l } else { - yyb2624 = r.CheckBreak() + yyb2707 = r.CheckBreak() } - if yyb2624 { + if yyb2707 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -34221,16 +35301,16 @@ func (x *Service) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.Spec = ServiceSpec{} } else { - yyv2628 := &x.Spec - yyv2628.CodecDecodeSelf(d) + yyv2711 := &x.Spec + yyv2711.CodecDecodeSelf(d) } - yyj2624++ - if yyhl2624 { - yyb2624 = yyj2624 > l + yyj2707++ + if yyhl2707 { + yyb2707 = yyj2707 > l } else { - yyb2624 = r.CheckBreak() + yyb2707 = r.CheckBreak() } - if yyb2624 { + if yyb2707 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -34238,21 +35318,21 @@ func (x *Service) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.Status = ServiceStatus{} } else { - yyv2629 := &x.Status - yyv2629.CodecDecodeSelf(d) + yyv2712 := &x.Status + yyv2712.CodecDecodeSelf(d) } for { - yyj2624++ - if yyhl2624 { - yyb2624 = yyj2624 > l + yyj2707++ + if yyhl2707 { + yyb2707 = yyj2707 > l } else { - yyb2624 = r.CheckBreak() + yyb2707 = r.CheckBreak() } - if yyb2624 { + if yyb2707 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj2624-1, "") + z.DecStructFieldNotFound(yyj2707-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -34264,37 +35344,37 @@ func (x *ServiceList) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym2630 := z.EncBinary() - _ = yym2630 + yym2713 := z.EncBinary() + _ = yym2713 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - 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 { + yysep2714 := !z.EncBinary() + yy2arr2714 := z.EncBasicHandle().StructToArray + var yyq2714 [4]bool + _, _, _ = yysep2714, yyq2714, yy2arr2714 + const yyr2714 bool = false + yyq2714[0] = x.Kind != "" + yyq2714[1] = x.APIVersion != "" + yyq2714[2] = true + var yynn2714 int + if yyr2714 || yy2arr2714 { r.EncodeArrayStart(4) } else { - yynn2631 = 1 - for _, b := range yyq2631 { + yynn2714 = 1 + for _, b := range yyq2714 { if b { - yynn2631++ + yynn2714++ } } - r.EncodeMapStart(yynn2631) - yynn2631 = 0 + r.EncodeMapStart(yynn2714) + yynn2714 = 0 } - if yyr2631 || yy2arr2631 { + if yyr2714 || yy2arr2714 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2631[0] { - yym2633 := z.EncBinary() - _ = yym2633 + if yyq2714[0] { + yym2716 := z.EncBinary() + _ = yym2716 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) @@ -34303,23 +35383,23 @@ func (x *ServiceList) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2631[0] { + if yyq2714[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym2634 := z.EncBinary() - _ = yym2634 + yym2717 := z.EncBinary() + _ = yym2717 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } - if yyr2631 || yy2arr2631 { + if yyr2714 || yy2arr2714 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2631[1] { - yym2636 := z.EncBinary() - _ = yym2636 + if yyq2714[1] { + yym2719 := z.EncBinary() + _ = yym2719 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) @@ -34328,54 +35408,54 @@ func (x *ServiceList) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2631[1] { + if yyq2714[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym2637 := z.EncBinary() - _ = yym2637 + yym2720 := z.EncBinary() + _ = yym2720 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } - if yyr2631 || yy2arr2631 { + if yyr2714 || yy2arr2714 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2631[2] { - yy2639 := &x.ListMeta - yym2640 := z.EncBinary() - _ = yym2640 + if yyq2714[2] { + yy2722 := &x.ListMeta + yym2723 := z.EncBinary() + _ = yym2723 if false { - } else if z.HasExtensions() && z.EncExt(yy2639) { + } else if z.HasExtensions() && z.EncExt(yy2722) { } else { - z.EncFallback(yy2639) + z.EncFallback(yy2722) } } else { r.EncodeNil() } } else { - if yyq2631[2] { + if yyq2714[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy2641 := &x.ListMeta - yym2642 := z.EncBinary() - _ = yym2642 + yy2724 := &x.ListMeta + yym2725 := z.EncBinary() + _ = yym2725 if false { - } else if z.HasExtensions() && z.EncExt(yy2641) { + } else if z.HasExtensions() && z.EncExt(yy2724) { } else { - z.EncFallback(yy2641) + z.EncFallback(yy2724) } } } - if yyr2631 || yy2arr2631 { + if yyr2714 || yy2arr2714 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.Items == nil { r.EncodeNil() } else { - yym2644 := z.EncBinary() - _ = yym2644 + yym2727 := z.EncBinary() + _ = yym2727 if false { } else { h.encSliceService(([]Service)(x.Items), e) @@ -34388,15 +35468,15 @@ func (x *ServiceList) CodecEncodeSelf(e *codec1978.Encoder) { if x.Items == nil { r.EncodeNil() } else { - yym2645 := z.EncBinary() - _ = yym2645 + yym2728 := z.EncBinary() + _ = yym2728 if false { } else { h.encSliceService(([]Service)(x.Items), e) } } } - if yyr2631 || yy2arr2631 { + if yyr2714 || yy2arr2714 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -34409,25 +35489,25 @@ func (x *ServiceList) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym2646 := z.DecBinary() - _ = yym2646 + yym2729 := z.DecBinary() + _ = yym2729 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2647 := r.ContainerType() - if yyct2647 == codecSelferValueTypeMap1234 { - yyl2647 := r.ReadMapStart() - if yyl2647 == 0 { + yyct2730 := r.ContainerType() + if yyct2730 == codecSelferValueTypeMap1234 { + yyl2730 := r.ReadMapStart() + if yyl2730 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2647, d) + x.codecDecodeSelfFromMap(yyl2730, d) } - } else if yyct2647 == codecSelferValueTypeArray1234 { - yyl2647 := r.ReadArrayStart() - if yyl2647 == 0 { + } else if yyct2730 == codecSelferValueTypeArray1234 { + yyl2730 := r.ReadArrayStart() + if yyl2730 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2647, d) + x.codecDecodeSelfFromArray(yyl2730, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -34439,12 +35519,12 @@ func (x *ServiceList) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys2648Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys2648Slc - var yyhl2648 bool = l >= 0 - for yyj2648 := 0; ; yyj2648++ { - if yyhl2648 { - if yyj2648 >= l { + var yys2731Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys2731Slc + var yyhl2731 bool = l >= 0 + for yyj2731 := 0; ; yyj2731++ { + if yyhl2731 { + if yyj2731 >= l { break } } else { @@ -34453,10 +35533,10 @@ func (x *ServiceList) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys2648Slc = r.DecodeBytes(yys2648Slc, true, true) - yys2648 := string(yys2648Slc) + yys2731Slc = r.DecodeBytes(yys2731Slc, true, true) + yys2731 := string(yys2731Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys2648 { + switch yys2731 { case "kind": if r.TryDecodeAsNil() { x.Kind = "" @@ -34473,31 +35553,31 @@ func (x *ServiceList) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.ListMeta = pkg2_unversioned.ListMeta{} } else { - yyv2651 := &x.ListMeta - yym2652 := z.DecBinary() - _ = yym2652 + yyv2734 := &x.ListMeta + yym2735 := z.DecBinary() + _ = yym2735 if false { - } else if z.HasExtensions() && z.DecExt(yyv2651) { + } else if z.HasExtensions() && z.DecExt(yyv2734) { } else { - z.DecFallback(yyv2651, false) + z.DecFallback(yyv2734, false) } } case "items": if r.TryDecodeAsNil() { x.Items = nil } else { - yyv2653 := &x.Items - yym2654 := z.DecBinary() - _ = yym2654 + yyv2736 := &x.Items + yym2737 := z.DecBinary() + _ = yym2737 if false { } else { - h.decSliceService((*[]Service)(yyv2653), d) + h.decSliceService((*[]Service)(yyv2736), d) } } default: - z.DecStructFieldNotFound(-1, yys2648) - } // end switch yys2648 - } // end for yyj2648 + z.DecStructFieldNotFound(-1, yys2731) + } // end switch yys2731 + } // end for yyj2731 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -34505,16 +35585,16 @@ func (x *ServiceList) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj2655 int - var yyb2655 bool - var yyhl2655 bool = l >= 0 - yyj2655++ - if yyhl2655 { - yyb2655 = yyj2655 > l + var yyj2738 int + var yyb2738 bool + var yyhl2738 bool = l >= 0 + yyj2738++ + if yyhl2738 { + yyb2738 = yyj2738 > l } else { - yyb2655 = r.CheckBreak() + yyb2738 = r.CheckBreak() } - if yyb2655 { + if yyb2738 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -34524,13 +35604,13 @@ func (x *ServiceList) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.Kind = string(r.DecodeString()) } - yyj2655++ - if yyhl2655 { - yyb2655 = yyj2655 > l + yyj2738++ + if yyhl2738 { + yyb2738 = yyj2738 > l } else { - yyb2655 = r.CheckBreak() + yyb2738 = r.CheckBreak() } - if yyb2655 { + if yyb2738 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -34540,13 +35620,13 @@ func (x *ServiceList) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.APIVersion = string(r.DecodeString()) } - yyj2655++ - if yyhl2655 { - yyb2655 = yyj2655 > l + yyj2738++ + if yyhl2738 { + yyb2738 = yyj2738 > l } else { - yyb2655 = r.CheckBreak() + yyb2738 = r.CheckBreak() } - if yyb2655 { + if yyb2738 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -34554,22 +35634,22 @@ func (x *ServiceList) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.ListMeta = pkg2_unversioned.ListMeta{} } else { - yyv2658 := &x.ListMeta - yym2659 := z.DecBinary() - _ = yym2659 + yyv2741 := &x.ListMeta + yym2742 := z.DecBinary() + _ = yym2742 if false { - } else if z.HasExtensions() && z.DecExt(yyv2658) { + } else if z.HasExtensions() && z.DecExt(yyv2741) { } else { - z.DecFallback(yyv2658, false) + z.DecFallback(yyv2741, false) } } - yyj2655++ - if yyhl2655 { - yyb2655 = yyj2655 > l + yyj2738++ + if yyhl2738 { + yyb2738 = yyj2738 > l } else { - yyb2655 = r.CheckBreak() + yyb2738 = r.CheckBreak() } - if yyb2655 { + if yyb2738 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -34577,26 +35657,26 @@ func (x *ServiceList) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.Items = nil } else { - yyv2660 := &x.Items - yym2661 := z.DecBinary() - _ = yym2661 + yyv2743 := &x.Items + yym2744 := z.DecBinary() + _ = yym2744 if false { } else { - h.decSliceService((*[]Service)(yyv2660), d) + h.decSliceService((*[]Service)(yyv2743), d) } } for { - yyj2655++ - if yyhl2655 { - yyb2655 = yyj2655 > l + yyj2738++ + if yyhl2738 { + yyb2738 = yyj2738 > l } else { - yyb2655 = r.CheckBreak() + yyb2738 = r.CheckBreak() } - if yyb2655 { + if yyb2738 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj2655-1, "") + z.DecStructFieldNotFound(yyj2738-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -34608,39 +35688,39 @@ func (x *ServiceAccount) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym2662 := z.EncBinary() - _ = yym2662 + yym2745 := z.EncBinary() + _ = yym2745 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - 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 { + yysep2746 := !z.EncBinary() + yy2arr2746 := z.EncBasicHandle().StructToArray + var yyq2746 [5]bool + _, _, _ = yysep2746, yyq2746, yy2arr2746 + const yyr2746 bool = false + yyq2746[0] = x.Kind != "" + yyq2746[1] = x.APIVersion != "" + yyq2746[2] = true + yyq2746[3] = len(x.Secrets) != 0 + yyq2746[4] = len(x.ImagePullSecrets) != 0 + var yynn2746 int + if yyr2746 || yy2arr2746 { r.EncodeArrayStart(5) } else { - yynn2663 = 0 - for _, b := range yyq2663 { + yynn2746 = 0 + for _, b := range yyq2746 { if b { - yynn2663++ + yynn2746++ } } - r.EncodeMapStart(yynn2663) - yynn2663 = 0 + r.EncodeMapStart(yynn2746) + yynn2746 = 0 } - if yyr2663 || yy2arr2663 { + if yyr2746 || yy2arr2746 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2663[0] { - yym2665 := z.EncBinary() - _ = yym2665 + if yyq2746[0] { + yym2748 := z.EncBinary() + _ = yym2748 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) @@ -34649,23 +35729,23 @@ func (x *ServiceAccount) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2663[0] { + if yyq2746[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym2666 := z.EncBinary() - _ = yym2666 + yym2749 := z.EncBinary() + _ = yym2749 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } - if yyr2663 || yy2arr2663 { + if yyr2746 || yy2arr2746 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2663[1] { - yym2668 := z.EncBinary() - _ = yym2668 + if yyq2746[1] { + yym2751 := z.EncBinary() + _ = yym2751 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) @@ -34674,43 +35754,43 @@ func (x *ServiceAccount) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2663[1] { + if yyq2746[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym2669 := z.EncBinary() - _ = yym2669 + yym2752 := z.EncBinary() + _ = yym2752 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } - if yyr2663 || yy2arr2663 { + if yyr2746 || yy2arr2746 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2663[2] { - yy2671 := &x.ObjectMeta - yy2671.CodecEncodeSelf(e) + if yyq2746[2] { + yy2754 := &x.ObjectMeta + yy2754.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { - if yyq2663[2] { + if yyq2746[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy2672 := &x.ObjectMeta - yy2672.CodecEncodeSelf(e) + yy2755 := &x.ObjectMeta + yy2755.CodecEncodeSelf(e) } } - if yyr2663 || yy2arr2663 { + if yyr2746 || yy2arr2746 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2663[3] { + if yyq2746[3] { if x.Secrets == nil { r.EncodeNil() } else { - yym2674 := z.EncBinary() - _ = yym2674 + yym2757 := z.EncBinary() + _ = yym2757 if false { } else { h.encSliceObjectReference(([]ObjectReference)(x.Secrets), e) @@ -34720,15 +35800,15 @@ func (x *ServiceAccount) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq2663[3] { + if yyq2746[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("secrets")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.Secrets == nil { r.EncodeNil() } else { - yym2675 := z.EncBinary() - _ = yym2675 + yym2758 := z.EncBinary() + _ = yym2758 if false { } else { h.encSliceObjectReference(([]ObjectReference)(x.Secrets), e) @@ -34736,14 +35816,14 @@ func (x *ServiceAccount) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr2663 || yy2arr2663 { + if yyr2746 || yy2arr2746 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2663[4] { + if yyq2746[4] { if x.ImagePullSecrets == nil { r.EncodeNil() } else { - yym2677 := z.EncBinary() - _ = yym2677 + yym2760 := z.EncBinary() + _ = yym2760 if false { } else { h.encSliceLocalObjectReference(([]LocalObjectReference)(x.ImagePullSecrets), e) @@ -34753,15 +35833,15 @@ func (x *ServiceAccount) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq2663[4] { + if yyq2746[4] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("imagePullSecrets")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.ImagePullSecrets == nil { r.EncodeNil() } else { - yym2678 := z.EncBinary() - _ = yym2678 + yym2761 := z.EncBinary() + _ = yym2761 if false { } else { h.encSliceLocalObjectReference(([]LocalObjectReference)(x.ImagePullSecrets), e) @@ -34769,7 +35849,7 @@ func (x *ServiceAccount) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr2663 || yy2arr2663 { + if yyr2746 || yy2arr2746 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -34782,25 +35862,25 @@ func (x *ServiceAccount) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym2679 := z.DecBinary() - _ = yym2679 + yym2762 := z.DecBinary() + _ = yym2762 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2680 := r.ContainerType() - if yyct2680 == codecSelferValueTypeMap1234 { - yyl2680 := r.ReadMapStart() - if yyl2680 == 0 { + yyct2763 := r.ContainerType() + if yyct2763 == codecSelferValueTypeMap1234 { + yyl2763 := r.ReadMapStart() + if yyl2763 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2680, d) + x.codecDecodeSelfFromMap(yyl2763, d) } - } else if yyct2680 == codecSelferValueTypeArray1234 { - yyl2680 := r.ReadArrayStart() - if yyl2680 == 0 { + } else if yyct2763 == codecSelferValueTypeArray1234 { + yyl2763 := r.ReadArrayStart() + if yyl2763 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2680, d) + x.codecDecodeSelfFromArray(yyl2763, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -34812,12 +35892,12 @@ func (x *ServiceAccount) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys2681Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys2681Slc - var yyhl2681 bool = l >= 0 - for yyj2681 := 0; ; yyj2681++ { - if yyhl2681 { - if yyj2681 >= l { + var yys2764Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys2764Slc + var yyhl2764 bool = l >= 0 + for yyj2764 := 0; ; yyj2764++ { + if yyhl2764 { + if yyj2764 >= l { break } } else { @@ -34826,10 +35906,10 @@ func (x *ServiceAccount) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys2681Slc = r.DecodeBytes(yys2681Slc, true, true) - yys2681 := string(yys2681Slc) + yys2764Slc = r.DecodeBytes(yys2764Slc, true, true) + yys2764 := string(yys2764Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys2681 { + switch yys2764 { case "kind": if r.TryDecodeAsNil() { x.Kind = "" @@ -34846,37 +35926,37 @@ func (x *ServiceAccount) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.ObjectMeta = ObjectMeta{} } else { - yyv2684 := &x.ObjectMeta - yyv2684.CodecDecodeSelf(d) + yyv2767 := &x.ObjectMeta + yyv2767.CodecDecodeSelf(d) } case "secrets": if r.TryDecodeAsNil() { x.Secrets = nil } else { - yyv2685 := &x.Secrets - yym2686 := z.DecBinary() - _ = yym2686 + yyv2768 := &x.Secrets + yym2769 := z.DecBinary() + _ = yym2769 if false { } else { - h.decSliceObjectReference((*[]ObjectReference)(yyv2685), d) + h.decSliceObjectReference((*[]ObjectReference)(yyv2768), d) } } case "imagePullSecrets": if r.TryDecodeAsNil() { x.ImagePullSecrets = nil } else { - yyv2687 := &x.ImagePullSecrets - yym2688 := z.DecBinary() - _ = yym2688 + yyv2770 := &x.ImagePullSecrets + yym2771 := z.DecBinary() + _ = yym2771 if false { } else { - h.decSliceLocalObjectReference((*[]LocalObjectReference)(yyv2687), d) + h.decSliceLocalObjectReference((*[]LocalObjectReference)(yyv2770), d) } } default: - z.DecStructFieldNotFound(-1, yys2681) - } // end switch yys2681 - } // end for yyj2681 + z.DecStructFieldNotFound(-1, yys2764) + } // end switch yys2764 + } // end for yyj2764 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -34884,16 +35964,16 @@ func (x *ServiceAccount) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj2689 int - var yyb2689 bool - var yyhl2689 bool = l >= 0 - yyj2689++ - if yyhl2689 { - yyb2689 = yyj2689 > l + var yyj2772 int + var yyb2772 bool + var yyhl2772 bool = l >= 0 + yyj2772++ + if yyhl2772 { + yyb2772 = yyj2772 > l } else { - yyb2689 = r.CheckBreak() + yyb2772 = r.CheckBreak() } - if yyb2689 { + if yyb2772 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -34903,13 +35983,13 @@ func (x *ServiceAccount) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.Kind = string(r.DecodeString()) } - yyj2689++ - if yyhl2689 { - yyb2689 = yyj2689 > l + yyj2772++ + if yyhl2772 { + yyb2772 = yyj2772 > l } else { - yyb2689 = r.CheckBreak() + yyb2772 = r.CheckBreak() } - if yyb2689 { + if yyb2772 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -34919,13 +35999,13 @@ func (x *ServiceAccount) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.APIVersion = string(r.DecodeString()) } - yyj2689++ - if yyhl2689 { - yyb2689 = yyj2689 > l + yyj2772++ + if yyhl2772 { + yyb2772 = yyj2772 > l } else { - yyb2689 = r.CheckBreak() + yyb2772 = r.CheckBreak() } - if yyb2689 { + if yyb2772 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -34933,16 +36013,16 @@ func (x *ServiceAccount) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.ObjectMeta = ObjectMeta{} } else { - yyv2692 := &x.ObjectMeta - yyv2692.CodecDecodeSelf(d) + yyv2775 := &x.ObjectMeta + yyv2775.CodecDecodeSelf(d) } - yyj2689++ - if yyhl2689 { - yyb2689 = yyj2689 > l + yyj2772++ + if yyhl2772 { + yyb2772 = yyj2772 > l } else { - yyb2689 = r.CheckBreak() + yyb2772 = r.CheckBreak() } - if yyb2689 { + if yyb2772 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -34950,21 +36030,21 @@ func (x *ServiceAccount) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.Secrets = nil } else { - yyv2693 := &x.Secrets - yym2694 := z.DecBinary() - _ = yym2694 + yyv2776 := &x.Secrets + yym2777 := z.DecBinary() + _ = yym2777 if false { } else { - h.decSliceObjectReference((*[]ObjectReference)(yyv2693), d) + h.decSliceObjectReference((*[]ObjectReference)(yyv2776), d) } } - yyj2689++ - if yyhl2689 { - yyb2689 = yyj2689 > l + yyj2772++ + if yyhl2772 { + yyb2772 = yyj2772 > l } else { - yyb2689 = r.CheckBreak() + yyb2772 = r.CheckBreak() } - if yyb2689 { + if yyb2772 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -34972,26 +36052,26 @@ func (x *ServiceAccount) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.ImagePullSecrets = nil } else { - yyv2695 := &x.ImagePullSecrets - yym2696 := z.DecBinary() - _ = yym2696 + yyv2778 := &x.ImagePullSecrets + yym2779 := z.DecBinary() + _ = yym2779 if false { } else { - h.decSliceLocalObjectReference((*[]LocalObjectReference)(yyv2695), d) + h.decSliceLocalObjectReference((*[]LocalObjectReference)(yyv2778), d) } } for { - yyj2689++ - if yyhl2689 { - yyb2689 = yyj2689 > l + yyj2772++ + if yyhl2772 { + yyb2772 = yyj2772 > l } else { - yyb2689 = r.CheckBreak() + yyb2772 = r.CheckBreak() } - if yyb2689 { + if yyb2772 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj2689-1, "") + z.DecStructFieldNotFound(yyj2772-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -35003,37 +36083,37 @@ func (x *ServiceAccountList) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym2697 := z.EncBinary() - _ = yym2697 + yym2780 := z.EncBinary() + _ = yym2780 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - 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 { + yysep2781 := !z.EncBinary() + yy2arr2781 := z.EncBasicHandle().StructToArray + var yyq2781 [4]bool + _, _, _ = yysep2781, yyq2781, yy2arr2781 + const yyr2781 bool = false + yyq2781[0] = x.Kind != "" + yyq2781[1] = x.APIVersion != "" + yyq2781[2] = true + var yynn2781 int + if yyr2781 || yy2arr2781 { r.EncodeArrayStart(4) } else { - yynn2698 = 1 - for _, b := range yyq2698 { + yynn2781 = 1 + for _, b := range yyq2781 { if b { - yynn2698++ + yynn2781++ } } - r.EncodeMapStart(yynn2698) - yynn2698 = 0 + r.EncodeMapStart(yynn2781) + yynn2781 = 0 } - if yyr2698 || yy2arr2698 { + if yyr2781 || yy2arr2781 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2698[0] { - yym2700 := z.EncBinary() - _ = yym2700 + if yyq2781[0] { + yym2783 := z.EncBinary() + _ = yym2783 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) @@ -35042,23 +36122,23 @@ func (x *ServiceAccountList) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2698[0] { + if yyq2781[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym2701 := z.EncBinary() - _ = yym2701 + yym2784 := z.EncBinary() + _ = yym2784 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } - if yyr2698 || yy2arr2698 { + if yyr2781 || yy2arr2781 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2698[1] { - yym2703 := z.EncBinary() - _ = yym2703 + if yyq2781[1] { + yym2786 := z.EncBinary() + _ = yym2786 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) @@ -35067,54 +36147,54 @@ func (x *ServiceAccountList) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2698[1] { + if yyq2781[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym2704 := z.EncBinary() - _ = yym2704 + yym2787 := z.EncBinary() + _ = yym2787 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } - if yyr2698 || yy2arr2698 { + if yyr2781 || yy2arr2781 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2698[2] { - yy2706 := &x.ListMeta - yym2707 := z.EncBinary() - _ = yym2707 + if yyq2781[2] { + yy2789 := &x.ListMeta + yym2790 := z.EncBinary() + _ = yym2790 if false { - } else if z.HasExtensions() && z.EncExt(yy2706) { + } else if z.HasExtensions() && z.EncExt(yy2789) { } else { - z.EncFallback(yy2706) + z.EncFallback(yy2789) } } else { r.EncodeNil() } } else { - if yyq2698[2] { + if yyq2781[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy2708 := &x.ListMeta - yym2709 := z.EncBinary() - _ = yym2709 + yy2791 := &x.ListMeta + yym2792 := z.EncBinary() + _ = yym2792 if false { - } else if z.HasExtensions() && z.EncExt(yy2708) { + } else if z.HasExtensions() && z.EncExt(yy2791) { } else { - z.EncFallback(yy2708) + z.EncFallback(yy2791) } } } - if yyr2698 || yy2arr2698 { + if yyr2781 || yy2arr2781 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.Items == nil { r.EncodeNil() } else { - yym2711 := z.EncBinary() - _ = yym2711 + yym2794 := z.EncBinary() + _ = yym2794 if false { } else { h.encSliceServiceAccount(([]ServiceAccount)(x.Items), e) @@ -35127,15 +36207,15 @@ func (x *ServiceAccountList) CodecEncodeSelf(e *codec1978.Encoder) { if x.Items == nil { r.EncodeNil() } else { - yym2712 := z.EncBinary() - _ = yym2712 + yym2795 := z.EncBinary() + _ = yym2795 if false { } else { h.encSliceServiceAccount(([]ServiceAccount)(x.Items), e) } } } - if yyr2698 || yy2arr2698 { + if yyr2781 || yy2arr2781 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -35148,25 +36228,25 @@ func (x *ServiceAccountList) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym2713 := z.DecBinary() - _ = yym2713 + yym2796 := z.DecBinary() + _ = yym2796 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2714 := r.ContainerType() - if yyct2714 == codecSelferValueTypeMap1234 { - yyl2714 := r.ReadMapStart() - if yyl2714 == 0 { + yyct2797 := r.ContainerType() + if yyct2797 == codecSelferValueTypeMap1234 { + yyl2797 := r.ReadMapStart() + if yyl2797 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2714, d) + x.codecDecodeSelfFromMap(yyl2797, d) } - } else if yyct2714 == codecSelferValueTypeArray1234 { - yyl2714 := r.ReadArrayStart() - if yyl2714 == 0 { + } else if yyct2797 == codecSelferValueTypeArray1234 { + yyl2797 := r.ReadArrayStart() + if yyl2797 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2714, d) + x.codecDecodeSelfFromArray(yyl2797, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -35178,12 +36258,12 @@ func (x *ServiceAccountList) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys2715Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys2715Slc - var yyhl2715 bool = l >= 0 - for yyj2715 := 0; ; yyj2715++ { - if yyhl2715 { - if yyj2715 >= l { + 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 { @@ -35192,10 +36272,10 @@ func (x *ServiceAccountList) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys2715Slc = r.DecodeBytes(yys2715Slc, true, true) - yys2715 := string(yys2715Slc) + yys2798Slc = r.DecodeBytes(yys2798Slc, true, true) + yys2798 := string(yys2798Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys2715 { + switch yys2798 { case "kind": if r.TryDecodeAsNil() { x.Kind = "" @@ -35212,31 +36292,31 @@ func (x *ServiceAccountList) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) if r.TryDecodeAsNil() { x.ListMeta = pkg2_unversioned.ListMeta{} } else { - yyv2718 := &x.ListMeta - yym2719 := z.DecBinary() - _ = yym2719 + yyv2801 := &x.ListMeta + yym2802 := z.DecBinary() + _ = yym2802 if false { - } else if z.HasExtensions() && z.DecExt(yyv2718) { + } else if z.HasExtensions() && z.DecExt(yyv2801) { } else { - z.DecFallback(yyv2718, false) + z.DecFallback(yyv2801, false) } } case "items": if r.TryDecodeAsNil() { x.Items = nil } else { - yyv2720 := &x.Items - yym2721 := z.DecBinary() - _ = yym2721 + yyv2803 := &x.Items + yym2804 := z.DecBinary() + _ = yym2804 if false { } else { - h.decSliceServiceAccount((*[]ServiceAccount)(yyv2720), d) + h.decSliceServiceAccount((*[]ServiceAccount)(yyv2803), d) } } default: - z.DecStructFieldNotFound(-1, yys2715) - } // end switch yys2715 - } // end for yyj2715 + z.DecStructFieldNotFound(-1, yys2798) + } // end switch yys2798 + } // end for yyj2798 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -35244,16 +36324,16 @@ func (x *ServiceAccountList) codecDecodeSelfFromArray(l int, d *codec1978.Decode var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj2722 int - var yyb2722 bool - var yyhl2722 bool = l >= 0 - yyj2722++ - if yyhl2722 { - yyb2722 = yyj2722 > l + var yyj2805 int + var yyb2805 bool + var yyhl2805 bool = l >= 0 + yyj2805++ + if yyhl2805 { + yyb2805 = yyj2805 > l } else { - yyb2722 = r.CheckBreak() + yyb2805 = r.CheckBreak() } - if yyb2722 { + if yyb2805 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -35263,13 +36343,13 @@ func (x *ServiceAccountList) codecDecodeSelfFromArray(l int, d *codec1978.Decode } else { x.Kind = string(r.DecodeString()) } - yyj2722++ - if yyhl2722 { - yyb2722 = yyj2722 > l + yyj2805++ + if yyhl2805 { + yyb2805 = yyj2805 > l } else { - yyb2722 = r.CheckBreak() + yyb2805 = r.CheckBreak() } - if yyb2722 { + if yyb2805 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -35279,13 +36359,13 @@ func (x *ServiceAccountList) codecDecodeSelfFromArray(l int, d *codec1978.Decode } else { x.APIVersion = string(r.DecodeString()) } - yyj2722++ - if yyhl2722 { - yyb2722 = yyj2722 > l + yyj2805++ + if yyhl2805 { + yyb2805 = yyj2805 > l } else { - yyb2722 = r.CheckBreak() + yyb2805 = r.CheckBreak() } - if yyb2722 { + if yyb2805 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -35293,22 +36373,22 @@ func (x *ServiceAccountList) codecDecodeSelfFromArray(l int, d *codec1978.Decode if r.TryDecodeAsNil() { x.ListMeta = pkg2_unversioned.ListMeta{} } else { - yyv2725 := &x.ListMeta - yym2726 := z.DecBinary() - _ = yym2726 + yyv2808 := &x.ListMeta + yym2809 := z.DecBinary() + _ = yym2809 if false { - } else if z.HasExtensions() && z.DecExt(yyv2725) { + } else if z.HasExtensions() && z.DecExt(yyv2808) { } else { - z.DecFallback(yyv2725, false) + z.DecFallback(yyv2808, false) } } - yyj2722++ - if yyhl2722 { - yyb2722 = yyj2722 > l + yyj2805++ + if yyhl2805 { + yyb2805 = yyj2805 > l } else { - yyb2722 = r.CheckBreak() + yyb2805 = r.CheckBreak() } - if yyb2722 { + if yyb2805 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -35316,26 +36396,26 @@ func (x *ServiceAccountList) codecDecodeSelfFromArray(l int, d *codec1978.Decode if r.TryDecodeAsNil() { x.Items = nil } else { - yyv2727 := &x.Items - yym2728 := z.DecBinary() - _ = yym2728 + yyv2810 := &x.Items + yym2811 := z.DecBinary() + _ = yym2811 if false { } else { - h.decSliceServiceAccount((*[]ServiceAccount)(yyv2727), d) + h.decSliceServiceAccount((*[]ServiceAccount)(yyv2810), d) } } for { - yyj2722++ - if yyhl2722 { - yyb2722 = yyj2722 > l + yyj2805++ + if yyhl2805 { + yyb2805 = yyj2805 > l } else { - yyb2722 = r.CheckBreak() + yyb2805 = r.CheckBreak() } - if yyb2722 { + if yyb2805 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj2722-1, "") + z.DecStructFieldNotFound(yyj2805-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -35347,37 +36427,37 @@ func (x *Endpoints) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym2729 := z.EncBinary() - _ = yym2729 + yym2812 := z.EncBinary() + _ = yym2812 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - 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 { + yysep2813 := !z.EncBinary() + yy2arr2813 := z.EncBasicHandle().StructToArray + var yyq2813 [4]bool + _, _, _ = yysep2813, yyq2813, yy2arr2813 + const yyr2813 bool = false + yyq2813[0] = x.Kind != "" + yyq2813[1] = x.APIVersion != "" + yyq2813[2] = true + var yynn2813 int + if yyr2813 || yy2arr2813 { r.EncodeArrayStart(4) } else { - yynn2730 = 1 - for _, b := range yyq2730 { + yynn2813 = 1 + for _, b := range yyq2813 { if b { - yynn2730++ + yynn2813++ } } - r.EncodeMapStart(yynn2730) - yynn2730 = 0 + r.EncodeMapStart(yynn2813) + yynn2813 = 0 } - if yyr2730 || yy2arr2730 { + if yyr2813 || yy2arr2813 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2730[0] { - yym2732 := z.EncBinary() - _ = yym2732 + if yyq2813[0] { + yym2815 := z.EncBinary() + _ = yym2815 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) @@ -35386,23 +36466,23 @@ func (x *Endpoints) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2730[0] { + if yyq2813[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym2733 := z.EncBinary() - _ = yym2733 + yym2816 := z.EncBinary() + _ = yym2816 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } - if yyr2730 || yy2arr2730 { + if yyr2813 || yy2arr2813 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2730[1] { - yym2735 := z.EncBinary() - _ = yym2735 + if yyq2813[1] { + yym2818 := z.EncBinary() + _ = yym2818 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) @@ -35411,42 +36491,42 @@ func (x *Endpoints) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2730[1] { + if yyq2813[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym2736 := z.EncBinary() - _ = yym2736 + yym2819 := z.EncBinary() + _ = yym2819 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } - if yyr2730 || yy2arr2730 { + if yyr2813 || yy2arr2813 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2730[2] { - yy2738 := &x.ObjectMeta - yy2738.CodecEncodeSelf(e) + if yyq2813[2] { + yy2821 := &x.ObjectMeta + yy2821.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { - if yyq2730[2] { + if yyq2813[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy2739 := &x.ObjectMeta - yy2739.CodecEncodeSelf(e) + yy2822 := &x.ObjectMeta + yy2822.CodecEncodeSelf(e) } } - if yyr2730 || yy2arr2730 { + if yyr2813 || yy2arr2813 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.Subsets == nil { r.EncodeNil() } else { - yym2741 := z.EncBinary() - _ = yym2741 + yym2824 := z.EncBinary() + _ = yym2824 if false { } else { h.encSliceEndpointSubset(([]EndpointSubset)(x.Subsets), e) @@ -35459,15 +36539,15 @@ func (x *Endpoints) CodecEncodeSelf(e *codec1978.Encoder) { if x.Subsets == nil { r.EncodeNil() } else { - yym2742 := z.EncBinary() - _ = yym2742 + yym2825 := z.EncBinary() + _ = yym2825 if false { } else { h.encSliceEndpointSubset(([]EndpointSubset)(x.Subsets), e) } } } - if yyr2730 || yy2arr2730 { + if yyr2813 || yy2arr2813 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -35480,25 +36560,25 @@ func (x *Endpoints) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym2743 := z.DecBinary() - _ = yym2743 + yym2826 := z.DecBinary() + _ = yym2826 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2744 := r.ContainerType() - if yyct2744 == codecSelferValueTypeMap1234 { - yyl2744 := r.ReadMapStart() - if yyl2744 == 0 { + yyct2827 := r.ContainerType() + if yyct2827 == codecSelferValueTypeMap1234 { + yyl2827 := r.ReadMapStart() + if yyl2827 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2744, d) + x.codecDecodeSelfFromMap(yyl2827, d) } - } else if yyct2744 == codecSelferValueTypeArray1234 { - yyl2744 := r.ReadArrayStart() - if yyl2744 == 0 { + } else if yyct2827 == codecSelferValueTypeArray1234 { + yyl2827 := r.ReadArrayStart() + if yyl2827 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2744, d) + x.codecDecodeSelfFromArray(yyl2827, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -35510,12 +36590,12 @@ func (x *Endpoints) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys2745Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys2745Slc - var yyhl2745 bool = l >= 0 - for yyj2745 := 0; ; yyj2745++ { - if yyhl2745 { - if yyj2745 >= l { + var yys2828Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys2828Slc + var yyhl2828 bool = l >= 0 + for yyj2828 := 0; ; yyj2828++ { + if yyhl2828 { + if yyj2828 >= l { break } } else { @@ -35524,10 +36604,10 @@ func (x *Endpoints) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys2745Slc = r.DecodeBytes(yys2745Slc, true, true) - yys2745 := string(yys2745Slc) + yys2828Slc = r.DecodeBytes(yys2828Slc, true, true) + yys2828 := string(yys2828Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys2745 { + switch yys2828 { case "kind": if r.TryDecodeAsNil() { x.Kind = "" @@ -35544,25 +36624,25 @@ func (x *Endpoints) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.ObjectMeta = ObjectMeta{} } else { - yyv2748 := &x.ObjectMeta - yyv2748.CodecDecodeSelf(d) + yyv2831 := &x.ObjectMeta + yyv2831.CodecDecodeSelf(d) } case "subsets": if r.TryDecodeAsNil() { x.Subsets = nil } else { - yyv2749 := &x.Subsets - yym2750 := z.DecBinary() - _ = yym2750 + yyv2832 := &x.Subsets + yym2833 := z.DecBinary() + _ = yym2833 if false { } else { - h.decSliceEndpointSubset((*[]EndpointSubset)(yyv2749), d) + h.decSliceEndpointSubset((*[]EndpointSubset)(yyv2832), d) } } default: - z.DecStructFieldNotFound(-1, yys2745) - } // end switch yys2745 - } // end for yyj2745 + z.DecStructFieldNotFound(-1, yys2828) + } // end switch yys2828 + } // end for yyj2828 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -35570,16 +36650,16 @@ func (x *Endpoints) 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 + var yyj2834 int + var yyb2834 bool + var yyhl2834 bool = l >= 0 + yyj2834++ + if yyhl2834 { + yyb2834 = yyj2834 > l } else { - yyb2751 = r.CheckBreak() + yyb2834 = r.CheckBreak() } - if yyb2751 { + if yyb2834 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -35589,13 +36669,13 @@ func (x *Endpoints) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.Kind = string(r.DecodeString()) } - yyj2751++ - if yyhl2751 { - yyb2751 = yyj2751 > l + yyj2834++ + if yyhl2834 { + yyb2834 = yyj2834 > l } else { - yyb2751 = r.CheckBreak() + yyb2834 = r.CheckBreak() } - if yyb2751 { + if yyb2834 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -35605,13 +36685,13 @@ func (x *Endpoints) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.APIVersion = string(r.DecodeString()) } - yyj2751++ - if yyhl2751 { - yyb2751 = yyj2751 > l + yyj2834++ + if yyhl2834 { + yyb2834 = yyj2834 > l } else { - yyb2751 = r.CheckBreak() + yyb2834 = r.CheckBreak() } - if yyb2751 { + if yyb2834 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -35619,16 +36699,16 @@ func (x *Endpoints) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.ObjectMeta = ObjectMeta{} } else { - yyv2754 := &x.ObjectMeta - yyv2754.CodecDecodeSelf(d) + yyv2837 := &x.ObjectMeta + yyv2837.CodecDecodeSelf(d) } - yyj2751++ - if yyhl2751 { - yyb2751 = yyj2751 > l + yyj2834++ + if yyhl2834 { + yyb2834 = yyj2834 > l } else { - yyb2751 = r.CheckBreak() + yyb2834 = r.CheckBreak() } - if yyb2751 { + if yyb2834 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -35636,26 +36716,26 @@ func (x *Endpoints) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.Subsets = nil } else { - yyv2755 := &x.Subsets - yym2756 := z.DecBinary() - _ = yym2756 + yyv2838 := &x.Subsets + yym2839 := z.DecBinary() + _ = yym2839 if false { } else { - h.decSliceEndpointSubset((*[]EndpointSubset)(yyv2755), d) + h.decSliceEndpointSubset((*[]EndpointSubset)(yyv2838), d) } } for { - yyj2751++ - if yyhl2751 { - yyb2751 = yyj2751 > l + yyj2834++ + if yyhl2834 { + yyb2834 = yyj2834 > l } else { - yyb2751 = r.CheckBreak() + yyb2834 = r.CheckBreak() } - if yyb2751 { + if yyb2834 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj2751-1, "") + z.DecStructFieldNotFound(yyj2834-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -35667,40 +36747,40 @@ func (x *EndpointSubset) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym2757 := z.EncBinary() - _ = yym2757 + yym2840 := z.EncBinary() + _ = yym2840 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - 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 { + yysep2841 := !z.EncBinary() + yy2arr2841 := z.EncBasicHandle().StructToArray + var yyq2841 [3]bool + _, _, _ = yysep2841, yyq2841, yy2arr2841 + const yyr2841 bool = false + yyq2841[0] = len(x.Addresses) != 0 + yyq2841[1] = len(x.NotReadyAddresses) != 0 + yyq2841[2] = len(x.Ports) != 0 + var yynn2841 int + if yyr2841 || yy2arr2841 { r.EncodeArrayStart(3) } else { - yynn2758 = 0 - for _, b := range yyq2758 { + yynn2841 = 0 + for _, b := range yyq2841 { if b { - yynn2758++ + yynn2841++ } } - r.EncodeMapStart(yynn2758) - yynn2758 = 0 + r.EncodeMapStart(yynn2841) + yynn2841 = 0 } - if yyr2758 || yy2arr2758 { + if yyr2841 || yy2arr2841 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2758[0] { + if yyq2841[0] { if x.Addresses == nil { r.EncodeNil() } else { - yym2760 := z.EncBinary() - _ = yym2760 + yym2843 := z.EncBinary() + _ = yym2843 if false { } else { h.encSliceEndpointAddress(([]EndpointAddress)(x.Addresses), e) @@ -35710,15 +36790,15 @@ func (x *EndpointSubset) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq2758[0] { + if yyq2841[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("addresses")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.Addresses == nil { r.EncodeNil() } else { - yym2761 := z.EncBinary() - _ = yym2761 + yym2844 := z.EncBinary() + _ = yym2844 if false { } else { h.encSliceEndpointAddress(([]EndpointAddress)(x.Addresses), e) @@ -35726,14 +36806,14 @@ func (x *EndpointSubset) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr2758 || yy2arr2758 { + if yyr2841 || yy2arr2841 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2758[1] { + if yyq2841[1] { if x.NotReadyAddresses == nil { r.EncodeNil() } else { - yym2763 := z.EncBinary() - _ = yym2763 + yym2846 := z.EncBinary() + _ = yym2846 if false { } else { h.encSliceEndpointAddress(([]EndpointAddress)(x.NotReadyAddresses), e) @@ -35743,15 +36823,15 @@ func (x *EndpointSubset) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq2758[1] { + if yyq2841[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("notReadyAddresses")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.NotReadyAddresses == nil { r.EncodeNil() } else { - yym2764 := z.EncBinary() - _ = yym2764 + yym2847 := z.EncBinary() + _ = yym2847 if false { } else { h.encSliceEndpointAddress(([]EndpointAddress)(x.NotReadyAddresses), e) @@ -35759,14 +36839,14 @@ func (x *EndpointSubset) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr2758 || yy2arr2758 { + if yyr2841 || yy2arr2841 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2758[2] { + if yyq2841[2] { if x.Ports == nil { r.EncodeNil() } else { - yym2766 := z.EncBinary() - _ = yym2766 + yym2849 := z.EncBinary() + _ = yym2849 if false { } else { h.encSliceEndpointPort(([]EndpointPort)(x.Ports), e) @@ -35776,15 +36856,15 @@ func (x *EndpointSubset) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq2758[2] { + if yyq2841[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("ports")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.Ports == nil { r.EncodeNil() } else { - yym2767 := z.EncBinary() - _ = yym2767 + yym2850 := z.EncBinary() + _ = yym2850 if false { } else { h.encSliceEndpointPort(([]EndpointPort)(x.Ports), e) @@ -35792,7 +36872,7 @@ func (x *EndpointSubset) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr2758 || yy2arr2758 { + if yyr2841 || yy2arr2841 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -35805,25 +36885,25 @@ func (x *EndpointSubset) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym2768 := z.DecBinary() - _ = yym2768 + yym2851 := z.DecBinary() + _ = yym2851 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2769 := r.ContainerType() - if yyct2769 == codecSelferValueTypeMap1234 { - yyl2769 := r.ReadMapStart() - if yyl2769 == 0 { + yyct2852 := r.ContainerType() + if yyct2852 == codecSelferValueTypeMap1234 { + yyl2852 := r.ReadMapStart() + if yyl2852 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2769, d) + x.codecDecodeSelfFromMap(yyl2852, d) } - } else if yyct2769 == codecSelferValueTypeArray1234 { - yyl2769 := r.ReadArrayStart() - if yyl2769 == 0 { + } else if yyct2852 == codecSelferValueTypeArray1234 { + yyl2852 := r.ReadArrayStart() + if yyl2852 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2769, d) + x.codecDecodeSelfFromArray(yyl2852, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -35835,12 +36915,12 @@ func (x *EndpointSubset) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys2770Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys2770Slc - var yyhl2770 bool = l >= 0 - for yyj2770 := 0; ; yyj2770++ { - if yyhl2770 { - if yyj2770 >= l { + var yys2853Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys2853Slc + var yyhl2853 bool = l >= 0 + for yyj2853 := 0; ; yyj2853++ { + if yyhl2853 { + if yyj2853 >= l { break } } else { @@ -35849,50 +36929,50 @@ func (x *EndpointSubset) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys2770Slc = r.DecodeBytes(yys2770Slc, true, true) - yys2770 := string(yys2770Slc) + yys2853Slc = r.DecodeBytes(yys2853Slc, true, true) + yys2853 := string(yys2853Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys2770 { + switch yys2853 { case "addresses": if r.TryDecodeAsNil() { x.Addresses = nil } else { - yyv2771 := &x.Addresses - yym2772 := z.DecBinary() - _ = yym2772 + yyv2854 := &x.Addresses + yym2855 := z.DecBinary() + _ = yym2855 if false { } else { - h.decSliceEndpointAddress((*[]EndpointAddress)(yyv2771), d) + h.decSliceEndpointAddress((*[]EndpointAddress)(yyv2854), d) } } case "notReadyAddresses": if r.TryDecodeAsNil() { x.NotReadyAddresses = nil } else { - yyv2773 := &x.NotReadyAddresses - yym2774 := z.DecBinary() - _ = yym2774 + yyv2856 := &x.NotReadyAddresses + yym2857 := z.DecBinary() + _ = yym2857 if false { } else { - h.decSliceEndpointAddress((*[]EndpointAddress)(yyv2773), d) + h.decSliceEndpointAddress((*[]EndpointAddress)(yyv2856), d) } } case "ports": if r.TryDecodeAsNil() { x.Ports = nil } else { - yyv2775 := &x.Ports - yym2776 := z.DecBinary() - _ = yym2776 + yyv2858 := &x.Ports + yym2859 := z.DecBinary() + _ = yym2859 if false { } else { - h.decSliceEndpointPort((*[]EndpointPort)(yyv2775), d) + h.decSliceEndpointPort((*[]EndpointPort)(yyv2858), d) } } default: - z.DecStructFieldNotFound(-1, yys2770) - } // end switch yys2770 - } // end for yyj2770 + z.DecStructFieldNotFound(-1, yys2853) + } // end switch yys2853 + } // end for yyj2853 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -35900,16 +36980,16 @@ func (x *EndpointSubset) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj2777 int - var yyb2777 bool - var yyhl2777 bool = l >= 0 - yyj2777++ - if yyhl2777 { - yyb2777 = yyj2777 > l + var yyj2860 int + var yyb2860 bool + var yyhl2860 bool = l >= 0 + yyj2860++ + if yyhl2860 { + yyb2860 = yyj2860 > l } else { - yyb2777 = r.CheckBreak() + yyb2860 = r.CheckBreak() } - if yyb2777 { + if yyb2860 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -35917,21 +36997,21 @@ func (x *EndpointSubset) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.Addresses = nil } else { - yyv2778 := &x.Addresses - yym2779 := z.DecBinary() - _ = yym2779 + yyv2861 := &x.Addresses + yym2862 := z.DecBinary() + _ = yym2862 if false { } else { - h.decSliceEndpointAddress((*[]EndpointAddress)(yyv2778), d) + h.decSliceEndpointAddress((*[]EndpointAddress)(yyv2861), d) } } - yyj2777++ - if yyhl2777 { - yyb2777 = yyj2777 > l + yyj2860++ + if yyhl2860 { + yyb2860 = yyj2860 > l } else { - yyb2777 = r.CheckBreak() + yyb2860 = r.CheckBreak() } - if yyb2777 { + if yyb2860 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -35939,21 +37019,21 @@ func (x *EndpointSubset) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.NotReadyAddresses = nil } else { - yyv2780 := &x.NotReadyAddresses - yym2781 := z.DecBinary() - _ = yym2781 + yyv2863 := &x.NotReadyAddresses + yym2864 := z.DecBinary() + _ = yym2864 if false { } else { - h.decSliceEndpointAddress((*[]EndpointAddress)(yyv2780), d) + h.decSliceEndpointAddress((*[]EndpointAddress)(yyv2863), d) } } - yyj2777++ - if yyhl2777 { - yyb2777 = yyj2777 > l + yyj2860++ + if yyhl2860 { + yyb2860 = yyj2860 > l } else { - yyb2777 = r.CheckBreak() + yyb2860 = r.CheckBreak() } - if yyb2777 { + if yyb2860 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -35961,26 +37041,26 @@ func (x *EndpointSubset) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.Ports = nil } else { - yyv2782 := &x.Ports - yym2783 := z.DecBinary() - _ = yym2783 + yyv2865 := &x.Ports + yym2866 := z.DecBinary() + _ = yym2866 if false { } else { - h.decSliceEndpointPort((*[]EndpointPort)(yyv2782), d) + h.decSliceEndpointPort((*[]EndpointPort)(yyv2865), d) } } for { - yyj2777++ - if yyhl2777 { - yyb2777 = yyj2777 > l + yyj2860++ + if yyhl2860 { + yyb2860 = yyj2860 > l } else { - yyb2777 = r.CheckBreak() + yyb2860 = r.CheckBreak() } - if yyb2777 { + if yyb2860 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj2777-1, "") + z.DecStructFieldNotFound(yyj2860-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -35992,36 +37072,36 @@ func (x *EndpointAddress) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym2784 := z.EncBinary() - _ = yym2784 + yym2867 := z.EncBinary() + _ = yym2867 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - 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 { + yysep2868 := !z.EncBinary() + yy2arr2868 := z.EncBasicHandle().StructToArray + var yyq2868 [4]bool + _, _, _ = yysep2868, yyq2868, yy2arr2868 + const yyr2868 bool = false + yyq2868[1] = x.Hostname != "" + yyq2868[2] = x.NodeName != nil + yyq2868[3] = x.TargetRef != nil + var yynn2868 int + if yyr2868 || yy2arr2868 { r.EncodeArrayStart(4) } else { - yynn2785 = 1 - for _, b := range yyq2785 { + yynn2868 = 1 + for _, b := range yyq2868 { if b { - yynn2785++ + yynn2868++ } } - r.EncodeMapStart(yynn2785) - yynn2785 = 0 + r.EncodeMapStart(yynn2868) + yynn2868 = 0 } - if yyr2785 || yy2arr2785 { + if yyr2868 || yy2arr2868 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym2787 := z.EncBinary() - _ = yym2787 + yym2870 := z.EncBinary() + _ = yym2870 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.IP)) @@ -36030,18 +37110,18 @@ func (x *EndpointAddress) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("ip")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym2788 := z.EncBinary() - _ = yym2788 + yym2871 := z.EncBinary() + _ = yym2871 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.IP)) } } - if yyr2785 || yy2arr2785 { + if yyr2868 || yy2arr2868 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2785[1] { - yym2790 := z.EncBinary() - _ = yym2790 + if yyq2868[1] { + yym2873 := z.EncBinary() + _ = yym2873 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Hostname)) @@ -36050,56 +37130,56 @@ func (x *EndpointAddress) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2785[1] { + if yyq2868[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("hostname")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym2791 := z.EncBinary() - _ = yym2791 + yym2874 := z.EncBinary() + _ = yym2874 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Hostname)) } } } - if yyr2785 || yy2arr2785 { + if yyr2868 || yy2arr2868 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2785[2] { + if yyq2868[2] { if x.NodeName == nil { r.EncodeNil() } else { - yy2793 := *x.NodeName - yym2794 := z.EncBinary() - _ = yym2794 + yy2876 := *x.NodeName + yym2877 := z.EncBinary() + _ = yym2877 if false { } else { - r.EncodeString(codecSelferC_UTF81234, string(yy2793)) + r.EncodeString(codecSelferC_UTF81234, string(yy2876)) } } } else { r.EncodeNil() } } else { - if yyq2785[2] { + if yyq2868[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 + yy2878 := *x.NodeName + yym2879 := z.EncBinary() + _ = yym2879 if false { } else { - r.EncodeString(codecSelferC_UTF81234, string(yy2795)) + r.EncodeString(codecSelferC_UTF81234, string(yy2878)) } } } } - if yyr2785 || yy2arr2785 { + if yyr2868 || yy2arr2868 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2785[3] { + if yyq2868[3] { if x.TargetRef == nil { r.EncodeNil() } else { @@ -36109,7 +37189,7 @@ func (x *EndpointAddress) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq2785[3] { + if yyq2868[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("targetRef")) z.EncSendContainerState(codecSelfer_containerMapValue1234) @@ -36120,7 +37200,7 @@ func (x *EndpointAddress) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr2785 || yy2arr2785 { + if yyr2868 || yy2arr2868 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -36133,25 +37213,25 @@ func (x *EndpointAddress) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym2798 := z.DecBinary() - _ = yym2798 + yym2881 := z.DecBinary() + _ = yym2881 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2799 := r.ContainerType() - if yyct2799 == codecSelferValueTypeMap1234 { - yyl2799 := r.ReadMapStart() - if yyl2799 == 0 { + yyct2882 := r.ContainerType() + if yyct2882 == codecSelferValueTypeMap1234 { + yyl2882 := r.ReadMapStart() + if yyl2882 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2799, d) + x.codecDecodeSelfFromMap(yyl2882, d) } - } else if yyct2799 == codecSelferValueTypeArray1234 { - yyl2799 := r.ReadArrayStart() - if yyl2799 == 0 { + } else if yyct2882 == codecSelferValueTypeArray1234 { + yyl2882 := r.ReadArrayStart() + if yyl2882 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2799, d) + x.codecDecodeSelfFromArray(yyl2882, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -36163,12 +37243,12 @@ func (x *EndpointAddress) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys2800Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys2800Slc - var yyhl2800 bool = l >= 0 - for yyj2800 := 0; ; yyj2800++ { - if yyhl2800 { - if yyj2800 >= l { + var yys2883Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys2883Slc + var yyhl2883 bool = l >= 0 + for yyj2883 := 0; ; yyj2883++ { + if yyhl2883 { + if yyj2883 >= l { break } } else { @@ -36177,10 +37257,10 @@ func (x *EndpointAddress) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys2800Slc = r.DecodeBytes(yys2800Slc, true, true) - yys2800 := string(yys2800Slc) + yys2883Slc = r.DecodeBytes(yys2883Slc, true, true) + yys2883 := string(yys2883Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys2800 { + switch yys2883 { case "ip": if r.TryDecodeAsNil() { x.IP = "" @@ -36202,8 +37282,8 @@ func (x *EndpointAddress) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { if x.NodeName == nil { x.NodeName = new(string) } - yym2804 := z.DecBinary() - _ = yym2804 + yym2887 := z.DecBinary() + _ = yym2887 if false { } else { *((*string)(x.NodeName)) = r.DecodeString() @@ -36221,9 +37301,9 @@ func (x *EndpointAddress) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { x.TargetRef.CodecDecodeSelf(d) } default: - z.DecStructFieldNotFound(-1, yys2800) - } // end switch yys2800 - } // end for yyj2800 + z.DecStructFieldNotFound(-1, yys2883) + } // end switch yys2883 + } // end for yyj2883 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -36231,16 +37311,16 @@ func (x *EndpointAddress) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj2806 int - var yyb2806 bool - var yyhl2806 bool = l >= 0 - yyj2806++ - if yyhl2806 { - yyb2806 = yyj2806 > l + var yyj2889 int + var yyb2889 bool + var yyhl2889 bool = l >= 0 + yyj2889++ + if yyhl2889 { + yyb2889 = yyj2889 > l } else { - yyb2806 = r.CheckBreak() + yyb2889 = r.CheckBreak() } - if yyb2806 { + if yyb2889 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -36250,13 +37330,13 @@ func (x *EndpointAddress) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) } else { x.IP = string(r.DecodeString()) } - yyj2806++ - if yyhl2806 { - yyb2806 = yyj2806 > l + yyj2889++ + if yyhl2889 { + yyb2889 = yyj2889 > l } else { - yyb2806 = r.CheckBreak() + yyb2889 = r.CheckBreak() } - if yyb2806 { + if yyb2889 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -36266,13 +37346,13 @@ func (x *EndpointAddress) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) } else { x.Hostname = string(r.DecodeString()) } - yyj2806++ - if yyhl2806 { - yyb2806 = yyj2806 > l + yyj2889++ + if yyhl2889 { + yyb2889 = yyj2889 > l } else { - yyb2806 = r.CheckBreak() + yyb2889 = r.CheckBreak() } - if yyb2806 { + if yyb2889 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -36285,20 +37365,20 @@ func (x *EndpointAddress) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) if x.NodeName == nil { x.NodeName = new(string) } - yym2810 := z.DecBinary() - _ = yym2810 + yym2893 := z.DecBinary() + _ = yym2893 if false { } else { *((*string)(x.NodeName)) = r.DecodeString() } } - yyj2806++ - if yyhl2806 { - yyb2806 = yyj2806 > l + yyj2889++ + if yyhl2889 { + yyb2889 = yyj2889 > l } else { - yyb2806 = r.CheckBreak() + yyb2889 = r.CheckBreak() } - if yyb2806 { + if yyb2889 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -36314,17 +37394,17 @@ func (x *EndpointAddress) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) x.TargetRef.CodecDecodeSelf(d) } for { - yyj2806++ - if yyhl2806 { - yyb2806 = yyj2806 > l + yyj2889++ + if yyhl2889 { + yyb2889 = yyj2889 > l } else { - yyb2806 = r.CheckBreak() + yyb2889 = r.CheckBreak() } - if yyb2806 { + if yyb2889 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj2806-1, "") + z.DecStructFieldNotFound(yyj2889-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -36336,36 +37416,36 @@ func (x *EndpointPort) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym2812 := z.EncBinary() - _ = yym2812 + yym2895 := z.EncBinary() + _ = yym2895 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - 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 { + yysep2896 := !z.EncBinary() + yy2arr2896 := z.EncBasicHandle().StructToArray + var yyq2896 [3]bool + _, _, _ = yysep2896, yyq2896, yy2arr2896 + const yyr2896 bool = false + yyq2896[0] = x.Name != "" + yyq2896[2] = x.Protocol != "" + var yynn2896 int + if yyr2896 || yy2arr2896 { r.EncodeArrayStart(3) } else { - yynn2813 = 1 - for _, b := range yyq2813 { + yynn2896 = 1 + for _, b := range yyq2896 { if b { - yynn2813++ + yynn2896++ } } - r.EncodeMapStart(yynn2813) - yynn2813 = 0 + r.EncodeMapStart(yynn2896) + yynn2896 = 0 } - if yyr2813 || yy2arr2813 { + if yyr2896 || yy2arr2896 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2813[0] { - yym2815 := z.EncBinary() - _ = yym2815 + if yyq2896[0] { + yym2898 := z.EncBinary() + _ = yym2898 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Name)) @@ -36374,22 +37454,22 @@ func (x *EndpointPort) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2813[0] { + if yyq2896[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("name")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym2816 := z.EncBinary() - _ = yym2816 + yym2899 := z.EncBinary() + _ = yym2899 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Name)) } } } - if yyr2813 || yy2arr2813 { + if yyr2896 || yy2arr2896 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym2818 := z.EncBinary() - _ = yym2818 + yym2901 := z.EncBinary() + _ = yym2901 if false { } else { r.EncodeInt(int64(x.Port)) @@ -36398,29 +37478,29 @@ func (x *EndpointPort) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("port")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym2819 := z.EncBinary() - _ = yym2819 + yym2902 := z.EncBinary() + _ = yym2902 if false { } else { r.EncodeInt(int64(x.Port)) } } - if yyr2813 || yy2arr2813 { + if yyr2896 || yy2arr2896 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2813[2] { + if yyq2896[2] { x.Protocol.CodecEncodeSelf(e) } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2813[2] { + if yyq2896[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("protocol")) z.EncSendContainerState(codecSelfer_containerMapValue1234) x.Protocol.CodecEncodeSelf(e) } } - if yyr2813 || yy2arr2813 { + if yyr2896 || yy2arr2896 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -36433,25 +37513,25 @@ func (x *EndpointPort) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym2821 := z.DecBinary() - _ = yym2821 + yym2904 := z.DecBinary() + _ = yym2904 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2822 := r.ContainerType() - if yyct2822 == codecSelferValueTypeMap1234 { - yyl2822 := r.ReadMapStart() - if yyl2822 == 0 { + yyct2905 := r.ContainerType() + if yyct2905 == codecSelferValueTypeMap1234 { + yyl2905 := r.ReadMapStart() + if yyl2905 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2822, d) + x.codecDecodeSelfFromMap(yyl2905, d) } - } else if yyct2822 == codecSelferValueTypeArray1234 { - yyl2822 := r.ReadArrayStart() - if yyl2822 == 0 { + } else if yyct2905 == codecSelferValueTypeArray1234 { + yyl2905 := r.ReadArrayStart() + if yyl2905 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2822, d) + x.codecDecodeSelfFromArray(yyl2905, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -36463,12 +37543,12 @@ func (x *EndpointPort) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys2823Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys2823Slc - var yyhl2823 bool = l >= 0 - for yyj2823 := 0; ; yyj2823++ { - if yyhl2823 { - if yyj2823 >= l { + var yys2906Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys2906Slc + var yyhl2906 bool = l >= 0 + for yyj2906 := 0; ; yyj2906++ { + if yyhl2906 { + if yyj2906 >= l { break } } else { @@ -36477,10 +37557,10 @@ func (x *EndpointPort) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys2823Slc = r.DecodeBytes(yys2823Slc, true, true) - yys2823 := string(yys2823Slc) + yys2906Slc = r.DecodeBytes(yys2906Slc, true, true) + yys2906 := string(yys2906Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys2823 { + switch yys2906 { case "name": if r.TryDecodeAsNil() { x.Name = "" @@ -36500,9 +37580,9 @@ func (x *EndpointPort) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { x.Protocol = Protocol(r.DecodeString()) } default: - z.DecStructFieldNotFound(-1, yys2823) - } // end switch yys2823 - } // end for yyj2823 + z.DecStructFieldNotFound(-1, yys2906) + } // end switch yys2906 + } // end for yyj2906 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -36510,16 +37590,16 @@ func (x *EndpointPort) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj2827 int - var yyb2827 bool - var yyhl2827 bool = l >= 0 - yyj2827++ - if yyhl2827 { - yyb2827 = yyj2827 > l + var yyj2910 int + var yyb2910 bool + var yyhl2910 bool = l >= 0 + yyj2910++ + if yyhl2910 { + yyb2910 = yyj2910 > l } else { - yyb2827 = r.CheckBreak() + yyb2910 = r.CheckBreak() } - if yyb2827 { + if yyb2910 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -36529,13 +37609,13 @@ func (x *EndpointPort) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.Name = string(r.DecodeString()) } - yyj2827++ - if yyhl2827 { - yyb2827 = yyj2827 > l + yyj2910++ + if yyhl2910 { + yyb2910 = yyj2910 > l } else { - yyb2827 = r.CheckBreak() + yyb2910 = r.CheckBreak() } - if yyb2827 { + if yyb2910 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -36545,13 +37625,13 @@ func (x *EndpointPort) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.Port = int32(r.DecodeInt(32)) } - yyj2827++ - if yyhl2827 { - yyb2827 = yyj2827 > l + yyj2910++ + if yyhl2910 { + yyb2910 = yyj2910 > l } else { - yyb2827 = r.CheckBreak() + yyb2910 = r.CheckBreak() } - if yyb2827 { + if yyb2910 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -36562,17 +37642,17 @@ func (x *EndpointPort) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { x.Protocol = Protocol(r.DecodeString()) } for { - yyj2827++ - if yyhl2827 { - yyb2827 = yyj2827 > l + yyj2910++ + if yyhl2910 { + yyb2910 = yyj2910 > l } else { - yyb2827 = r.CheckBreak() + yyb2910 = r.CheckBreak() } - if yyb2827 { + if yyb2910 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj2827-1, "") + z.DecStructFieldNotFound(yyj2910-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -36584,37 +37664,37 @@ func (x *EndpointsList) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym2831 := z.EncBinary() - _ = yym2831 + yym2914 := z.EncBinary() + _ = yym2914 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - 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 { + yysep2915 := !z.EncBinary() + yy2arr2915 := z.EncBasicHandle().StructToArray + var yyq2915 [4]bool + _, _, _ = yysep2915, yyq2915, yy2arr2915 + const yyr2915 bool = false + yyq2915[0] = x.Kind != "" + yyq2915[1] = x.APIVersion != "" + yyq2915[2] = true + var yynn2915 int + if yyr2915 || yy2arr2915 { r.EncodeArrayStart(4) } else { - yynn2832 = 1 - for _, b := range yyq2832 { + yynn2915 = 1 + for _, b := range yyq2915 { if b { - yynn2832++ + yynn2915++ } } - r.EncodeMapStart(yynn2832) - yynn2832 = 0 + r.EncodeMapStart(yynn2915) + yynn2915 = 0 } - if yyr2832 || yy2arr2832 { + if yyr2915 || yy2arr2915 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2832[0] { - yym2834 := z.EncBinary() - _ = yym2834 + if yyq2915[0] { + yym2917 := z.EncBinary() + _ = yym2917 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) @@ -36623,23 +37703,23 @@ func (x *EndpointsList) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2832[0] { + if yyq2915[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym2835 := z.EncBinary() - _ = yym2835 + yym2918 := z.EncBinary() + _ = yym2918 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } - if yyr2832 || yy2arr2832 { + if yyr2915 || yy2arr2915 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2832[1] { - yym2837 := z.EncBinary() - _ = yym2837 + if yyq2915[1] { + yym2920 := z.EncBinary() + _ = yym2920 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) @@ -36648,54 +37728,54 @@ func (x *EndpointsList) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2832[1] { + if yyq2915[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym2838 := z.EncBinary() - _ = yym2838 + yym2921 := z.EncBinary() + _ = yym2921 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } - if yyr2832 || yy2arr2832 { + if yyr2915 || yy2arr2915 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2832[2] { - yy2840 := &x.ListMeta - yym2841 := z.EncBinary() - _ = yym2841 + if yyq2915[2] { + yy2923 := &x.ListMeta + yym2924 := z.EncBinary() + _ = yym2924 if false { - } else if z.HasExtensions() && z.EncExt(yy2840) { + } else if z.HasExtensions() && z.EncExt(yy2923) { } else { - z.EncFallback(yy2840) + z.EncFallback(yy2923) } } else { r.EncodeNil() } } else { - if yyq2832[2] { + if yyq2915[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy2842 := &x.ListMeta - yym2843 := z.EncBinary() - _ = yym2843 + yy2925 := &x.ListMeta + yym2926 := z.EncBinary() + _ = yym2926 if false { - } else if z.HasExtensions() && z.EncExt(yy2842) { + } else if z.HasExtensions() && z.EncExt(yy2925) { } else { - z.EncFallback(yy2842) + z.EncFallback(yy2925) } } } - if yyr2832 || yy2arr2832 { + if yyr2915 || yy2arr2915 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.Items == nil { r.EncodeNil() } else { - yym2845 := z.EncBinary() - _ = yym2845 + yym2928 := z.EncBinary() + _ = yym2928 if false { } else { h.encSliceEndpoints(([]Endpoints)(x.Items), e) @@ -36708,15 +37788,15 @@ func (x *EndpointsList) CodecEncodeSelf(e *codec1978.Encoder) { if x.Items == nil { r.EncodeNil() } else { - yym2846 := z.EncBinary() - _ = yym2846 + yym2929 := z.EncBinary() + _ = yym2929 if false { } else { h.encSliceEndpoints(([]Endpoints)(x.Items), e) } } } - if yyr2832 || yy2arr2832 { + if yyr2915 || yy2arr2915 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -36729,25 +37809,25 @@ func (x *EndpointsList) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym2847 := z.DecBinary() - _ = yym2847 + yym2930 := z.DecBinary() + _ = yym2930 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2848 := r.ContainerType() - if yyct2848 == codecSelferValueTypeMap1234 { - yyl2848 := r.ReadMapStart() - if yyl2848 == 0 { + yyct2931 := r.ContainerType() + if yyct2931 == codecSelferValueTypeMap1234 { + yyl2931 := r.ReadMapStart() + if yyl2931 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2848, d) + x.codecDecodeSelfFromMap(yyl2931, d) } - } else if yyct2848 == codecSelferValueTypeArray1234 { - yyl2848 := r.ReadArrayStart() - if yyl2848 == 0 { + } else if yyct2931 == codecSelferValueTypeArray1234 { + yyl2931 := r.ReadArrayStart() + if yyl2931 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2848, d) + x.codecDecodeSelfFromArray(yyl2931, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -36759,12 +37839,12 @@ func (x *EndpointsList) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys2849Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys2849Slc - var yyhl2849 bool = l >= 0 - for yyj2849 := 0; ; yyj2849++ { - if yyhl2849 { - if yyj2849 >= l { + var yys2932Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys2932Slc + var yyhl2932 bool = l >= 0 + for yyj2932 := 0; ; yyj2932++ { + if yyhl2932 { + if yyj2932 >= l { break } } else { @@ -36773,10 +37853,10 @@ func (x *EndpointsList) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys2849Slc = r.DecodeBytes(yys2849Slc, true, true) - yys2849 := string(yys2849Slc) + yys2932Slc = r.DecodeBytes(yys2932Slc, true, true) + yys2932 := string(yys2932Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys2849 { + switch yys2932 { case "kind": if r.TryDecodeAsNil() { x.Kind = "" @@ -36793,31 +37873,31 @@ func (x *EndpointsList) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.ListMeta = pkg2_unversioned.ListMeta{} } else { - yyv2852 := &x.ListMeta - yym2853 := z.DecBinary() - _ = yym2853 + yyv2935 := &x.ListMeta + yym2936 := z.DecBinary() + _ = yym2936 if false { - } else if z.HasExtensions() && z.DecExt(yyv2852) { + } else if z.HasExtensions() && z.DecExt(yyv2935) { } else { - z.DecFallback(yyv2852, false) + z.DecFallback(yyv2935, false) } } case "items": if r.TryDecodeAsNil() { x.Items = nil } else { - yyv2854 := &x.Items - yym2855 := z.DecBinary() - _ = yym2855 + yyv2937 := &x.Items + yym2938 := z.DecBinary() + _ = yym2938 if false { } else { - h.decSliceEndpoints((*[]Endpoints)(yyv2854), d) + h.decSliceEndpoints((*[]Endpoints)(yyv2937), d) } } default: - z.DecStructFieldNotFound(-1, yys2849) - } // end switch yys2849 - } // end for yyj2849 + z.DecStructFieldNotFound(-1, yys2932) + } // end switch yys2932 + } // end for yyj2932 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -36825,16 +37905,16 @@ func (x *EndpointsList) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj2856 int - var yyb2856 bool - var yyhl2856 bool = l >= 0 - yyj2856++ - if yyhl2856 { - yyb2856 = yyj2856 > l + var yyj2939 int + var yyb2939 bool + var yyhl2939 bool = l >= 0 + yyj2939++ + if yyhl2939 { + yyb2939 = yyj2939 > l } else { - yyb2856 = r.CheckBreak() + yyb2939 = r.CheckBreak() } - if yyb2856 { + if yyb2939 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -36844,13 +37924,13 @@ func (x *EndpointsList) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.Kind = string(r.DecodeString()) } - yyj2856++ - if yyhl2856 { - yyb2856 = yyj2856 > l + yyj2939++ + if yyhl2939 { + yyb2939 = yyj2939 > l } else { - yyb2856 = r.CheckBreak() + yyb2939 = r.CheckBreak() } - if yyb2856 { + if yyb2939 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -36860,13 +37940,13 @@ func (x *EndpointsList) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.APIVersion = string(r.DecodeString()) } - yyj2856++ - if yyhl2856 { - yyb2856 = yyj2856 > l + yyj2939++ + if yyhl2939 { + yyb2939 = yyj2939 > l } else { - yyb2856 = r.CheckBreak() + yyb2939 = r.CheckBreak() } - if yyb2856 { + if yyb2939 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -36874,22 +37954,22 @@ func (x *EndpointsList) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.ListMeta = pkg2_unversioned.ListMeta{} } else { - yyv2859 := &x.ListMeta - yym2860 := z.DecBinary() - _ = yym2860 + yyv2942 := &x.ListMeta + yym2943 := z.DecBinary() + _ = yym2943 if false { - } else if z.HasExtensions() && z.DecExt(yyv2859) { + } else if z.HasExtensions() && z.DecExt(yyv2942) { } else { - z.DecFallback(yyv2859, false) + z.DecFallback(yyv2942, false) } } - yyj2856++ - if yyhl2856 { - yyb2856 = yyj2856 > l + yyj2939++ + if yyhl2939 { + yyb2939 = yyj2939 > l } else { - yyb2856 = r.CheckBreak() + yyb2939 = r.CheckBreak() } - if yyb2856 { + if yyb2939 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -36897,26 +37977,26 @@ func (x *EndpointsList) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.Items = nil } else { - yyv2861 := &x.Items - yym2862 := z.DecBinary() - _ = yym2862 + yyv2944 := &x.Items + yym2945 := z.DecBinary() + _ = yym2945 if false { } else { - h.decSliceEndpoints((*[]Endpoints)(yyv2861), d) + h.decSliceEndpoints((*[]Endpoints)(yyv2944), d) } } for { - yyj2856++ - if yyhl2856 { - yyb2856 = yyj2856 > l + yyj2939++ + if yyhl2939 { + yyb2939 = yyj2939 > l } else { - yyb2856 = r.CheckBreak() + yyb2939 = r.CheckBreak() } - if yyb2856 { + if yyb2939 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj2856-1, "") + z.DecStructFieldNotFound(yyj2939-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -36928,38 +38008,38 @@ func (x *NodeSpec) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym2863 := z.EncBinary() - _ = yym2863 + yym2946 := z.EncBinary() + _ = yym2946 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - 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 { + yysep2947 := !z.EncBinary() + yy2arr2947 := z.EncBasicHandle().StructToArray + var yyq2947 [4]bool + _, _, _ = yysep2947, yyq2947, yy2arr2947 + const yyr2947 bool = false + yyq2947[0] = x.PodCIDR != "" + yyq2947[1] = x.ExternalID != "" + yyq2947[2] = x.ProviderID != "" + yyq2947[3] = x.Unschedulable != false + var yynn2947 int + if yyr2947 || yy2arr2947 { r.EncodeArrayStart(4) } else { - yynn2864 = 0 - for _, b := range yyq2864 { + yynn2947 = 0 + for _, b := range yyq2947 { if b { - yynn2864++ + yynn2947++ } } - r.EncodeMapStart(yynn2864) - yynn2864 = 0 + r.EncodeMapStart(yynn2947) + yynn2947 = 0 } - if yyr2864 || yy2arr2864 { + if yyr2947 || yy2arr2947 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2864[0] { - yym2866 := z.EncBinary() - _ = yym2866 + if yyq2947[0] { + yym2949 := z.EncBinary() + _ = yym2949 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.PodCIDR)) @@ -36968,23 +38048,23 @@ func (x *NodeSpec) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2864[0] { + if yyq2947[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("podCIDR")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym2867 := z.EncBinary() - _ = yym2867 + yym2950 := z.EncBinary() + _ = yym2950 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.PodCIDR)) } } } - if yyr2864 || yy2arr2864 { + if yyr2947 || yy2arr2947 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2864[1] { - yym2869 := z.EncBinary() - _ = yym2869 + if yyq2947[1] { + yym2952 := z.EncBinary() + _ = yym2952 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.ExternalID)) @@ -36993,23 +38073,23 @@ func (x *NodeSpec) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2864[1] { + if yyq2947[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("externalID")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym2870 := z.EncBinary() - _ = yym2870 + yym2953 := z.EncBinary() + _ = yym2953 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.ExternalID)) } } } - if yyr2864 || yy2arr2864 { + if yyr2947 || yy2arr2947 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2864[2] { - yym2872 := z.EncBinary() - _ = yym2872 + if yyq2947[2] { + yym2955 := z.EncBinary() + _ = yym2955 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.ProviderID)) @@ -37018,23 +38098,23 @@ func (x *NodeSpec) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2864[2] { + if yyq2947[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("providerID")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym2873 := z.EncBinary() - _ = yym2873 + yym2956 := z.EncBinary() + _ = yym2956 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.ProviderID)) } } } - if yyr2864 || yy2arr2864 { + if yyr2947 || yy2arr2947 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2864[3] { - yym2875 := z.EncBinary() - _ = yym2875 + if yyq2947[3] { + yym2958 := z.EncBinary() + _ = yym2958 if false { } else { r.EncodeBool(bool(x.Unschedulable)) @@ -37043,19 +38123,19 @@ func (x *NodeSpec) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeBool(false) } } else { - if yyq2864[3] { + if yyq2947[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("unschedulable")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym2876 := z.EncBinary() - _ = yym2876 + yym2959 := z.EncBinary() + _ = yym2959 if false { } else { r.EncodeBool(bool(x.Unschedulable)) } } } - if yyr2864 || yy2arr2864 { + if yyr2947 || yy2arr2947 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -37068,25 +38148,25 @@ func (x *NodeSpec) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym2877 := z.DecBinary() - _ = yym2877 + yym2960 := z.DecBinary() + _ = yym2960 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2878 := r.ContainerType() - if yyct2878 == codecSelferValueTypeMap1234 { - yyl2878 := r.ReadMapStart() - if yyl2878 == 0 { + yyct2961 := r.ContainerType() + if yyct2961 == codecSelferValueTypeMap1234 { + yyl2961 := r.ReadMapStart() + if yyl2961 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2878, d) + x.codecDecodeSelfFromMap(yyl2961, d) } - } else if yyct2878 == codecSelferValueTypeArray1234 { - yyl2878 := r.ReadArrayStart() - if yyl2878 == 0 { + } else if yyct2961 == codecSelferValueTypeArray1234 { + yyl2961 := r.ReadArrayStart() + if yyl2961 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2878, d) + x.codecDecodeSelfFromArray(yyl2961, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -37098,12 +38178,12 @@ func (x *NodeSpec) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys2879Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys2879Slc - var yyhl2879 bool = l >= 0 - for yyj2879 := 0; ; yyj2879++ { - if yyhl2879 { - if yyj2879 >= l { + var yys2962Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys2962Slc + var yyhl2962 bool = l >= 0 + for yyj2962 := 0; ; yyj2962++ { + if yyhl2962 { + if yyj2962 >= l { break } } else { @@ -37112,10 +38192,10 @@ func (x *NodeSpec) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys2879Slc = r.DecodeBytes(yys2879Slc, true, true) - yys2879 := string(yys2879Slc) + yys2962Slc = r.DecodeBytes(yys2962Slc, true, true) + yys2962 := string(yys2962Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys2879 { + switch yys2962 { case "podCIDR": if r.TryDecodeAsNil() { x.PodCIDR = "" @@ -37141,9 +38221,9 @@ func (x *NodeSpec) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { x.Unschedulable = bool(r.DecodeBool()) } default: - z.DecStructFieldNotFound(-1, yys2879) - } // end switch yys2879 - } // end for yyj2879 + z.DecStructFieldNotFound(-1, yys2962) + } // end switch yys2962 + } // end for yyj2962 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -37151,16 +38231,16 @@ func (x *NodeSpec) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj2884 int - var yyb2884 bool - var yyhl2884 bool = l >= 0 - yyj2884++ - if yyhl2884 { - yyb2884 = yyj2884 > l + var yyj2967 int + var yyb2967 bool + var yyhl2967 bool = l >= 0 + yyj2967++ + if yyhl2967 { + yyb2967 = yyj2967 > l } else { - yyb2884 = r.CheckBreak() + yyb2967 = r.CheckBreak() } - if yyb2884 { + if yyb2967 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -37170,13 +38250,13 @@ func (x *NodeSpec) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.PodCIDR = string(r.DecodeString()) } - yyj2884++ - if yyhl2884 { - yyb2884 = yyj2884 > l + yyj2967++ + if yyhl2967 { + yyb2967 = yyj2967 > l } else { - yyb2884 = r.CheckBreak() + yyb2967 = r.CheckBreak() } - if yyb2884 { + if yyb2967 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -37186,13 +38266,13 @@ func (x *NodeSpec) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.ExternalID = string(r.DecodeString()) } - yyj2884++ - if yyhl2884 { - yyb2884 = yyj2884 > l + yyj2967++ + if yyhl2967 { + yyb2967 = yyj2967 > l } else { - yyb2884 = r.CheckBreak() + yyb2967 = r.CheckBreak() } - if yyb2884 { + if yyb2967 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -37202,13 +38282,13 @@ func (x *NodeSpec) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.ProviderID = string(r.DecodeString()) } - yyj2884++ - if yyhl2884 { - yyb2884 = yyj2884 > l + yyj2967++ + if yyhl2967 { + yyb2967 = yyj2967 > l } else { - yyb2884 = r.CheckBreak() + yyb2967 = r.CheckBreak() } - if yyb2884 { + if yyb2967 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -37219,17 +38299,17 @@ func (x *NodeSpec) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { x.Unschedulable = bool(r.DecodeBool()) } for { - yyj2884++ - if yyhl2884 { - yyb2884 = yyj2884 > l + yyj2967++ + if yyhl2967 { + yyb2967 = yyj2967 > l } else { - yyb2884 = r.CheckBreak() + yyb2967 = r.CheckBreak() } - if yyb2884 { + if yyb2967 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj2884-1, "") + z.DecStructFieldNotFound(yyj2967-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -37241,33 +38321,33 @@ func (x *DaemonEndpoint) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym2889 := z.EncBinary() - _ = yym2889 + yym2972 := z.EncBinary() + _ = yym2972 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep2890 := !z.EncBinary() - yy2arr2890 := z.EncBasicHandle().StructToArray - var yyq2890 [1]bool - _, _, _ = yysep2890, yyq2890, yy2arr2890 - const yyr2890 bool = false - var yynn2890 int - if yyr2890 || yy2arr2890 { + yysep2973 := !z.EncBinary() + yy2arr2973 := z.EncBasicHandle().StructToArray + var yyq2973 [1]bool + _, _, _ = yysep2973, yyq2973, yy2arr2973 + const yyr2973 bool = false + var yynn2973 int + if yyr2973 || yy2arr2973 { r.EncodeArrayStart(1) } else { - yynn2890 = 1 - for _, b := range yyq2890 { + yynn2973 = 1 + for _, b := range yyq2973 { if b { - yynn2890++ + yynn2973++ } } - r.EncodeMapStart(yynn2890) - yynn2890 = 0 + r.EncodeMapStart(yynn2973) + yynn2973 = 0 } - if yyr2890 || yy2arr2890 { + if yyr2973 || yy2arr2973 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym2892 := z.EncBinary() - _ = yym2892 + yym2975 := z.EncBinary() + _ = yym2975 if false { } else { r.EncodeInt(int64(x.Port)) @@ -37276,14 +38356,14 @@ func (x *DaemonEndpoint) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("Port")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym2893 := z.EncBinary() - _ = yym2893 + yym2976 := z.EncBinary() + _ = yym2976 if false { } else { r.EncodeInt(int64(x.Port)) } } - if yyr2890 || yy2arr2890 { + if yyr2973 || yy2arr2973 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -37296,25 +38376,25 @@ func (x *DaemonEndpoint) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym2894 := z.DecBinary() - _ = yym2894 + yym2977 := z.DecBinary() + _ = yym2977 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2895 := r.ContainerType() - if yyct2895 == codecSelferValueTypeMap1234 { - yyl2895 := r.ReadMapStart() - if yyl2895 == 0 { + yyct2978 := r.ContainerType() + if yyct2978 == codecSelferValueTypeMap1234 { + yyl2978 := r.ReadMapStart() + if yyl2978 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2895, d) + x.codecDecodeSelfFromMap(yyl2978, d) } - } else if yyct2895 == codecSelferValueTypeArray1234 { - yyl2895 := r.ReadArrayStart() - if yyl2895 == 0 { + } else if yyct2978 == codecSelferValueTypeArray1234 { + yyl2978 := r.ReadArrayStart() + if yyl2978 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2895, d) + x.codecDecodeSelfFromArray(yyl2978, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -37326,12 +38406,12 @@ func (x *DaemonEndpoint) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys2896Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys2896Slc - var yyhl2896 bool = l >= 0 - for yyj2896 := 0; ; yyj2896++ { - if yyhl2896 { - if yyj2896 >= l { + var yys2979Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys2979Slc + var yyhl2979 bool = l >= 0 + for yyj2979 := 0; ; yyj2979++ { + if yyhl2979 { + if yyj2979 >= l { break } } else { @@ -37340,10 +38420,10 @@ func (x *DaemonEndpoint) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys2896Slc = r.DecodeBytes(yys2896Slc, true, true) - yys2896 := string(yys2896Slc) + yys2979Slc = r.DecodeBytes(yys2979Slc, true, true) + yys2979 := string(yys2979Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys2896 { + switch yys2979 { case "Port": if r.TryDecodeAsNil() { x.Port = 0 @@ -37351,9 +38431,9 @@ func (x *DaemonEndpoint) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { x.Port = int32(r.DecodeInt(32)) } default: - z.DecStructFieldNotFound(-1, yys2896) - } // end switch yys2896 - } // end for yyj2896 + z.DecStructFieldNotFound(-1, yys2979) + } // end switch yys2979 + } // end for yyj2979 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -37361,16 +38441,16 @@ func (x *DaemonEndpoint) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj2898 int - var yyb2898 bool - var yyhl2898 bool = l >= 0 - yyj2898++ - if yyhl2898 { - yyb2898 = yyj2898 > l + var yyj2981 int + var yyb2981 bool + var yyhl2981 bool = l >= 0 + yyj2981++ + if yyhl2981 { + yyb2981 = yyj2981 > l } else { - yyb2898 = r.CheckBreak() + yyb2981 = r.CheckBreak() } - if yyb2898 { + if yyb2981 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -37381,17 +38461,17 @@ func (x *DaemonEndpoint) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { x.Port = int32(r.DecodeInt(32)) } for { - yyj2898++ - if yyhl2898 { - yyb2898 = yyj2898 > l + yyj2981++ + if yyhl2981 { + yyb2981 = yyj2981 > l } else { - yyb2898 = r.CheckBreak() + yyb2981 = r.CheckBreak() } - if yyb2898 { + if yyb2981 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj2898-1, "") + z.DecStructFieldNotFound(yyj2981-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -37403,48 +38483,48 @@ func (x *NodeDaemonEndpoints) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym2900 := z.EncBinary() - _ = yym2900 + yym2983 := z.EncBinary() + _ = yym2983 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - 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 { + yysep2984 := !z.EncBinary() + yy2arr2984 := z.EncBasicHandle().StructToArray + var yyq2984 [1]bool + _, _, _ = yysep2984, yyq2984, yy2arr2984 + const yyr2984 bool = false + yyq2984[0] = true + var yynn2984 int + if yyr2984 || yy2arr2984 { r.EncodeArrayStart(1) } else { - yynn2901 = 0 - for _, b := range yyq2901 { + yynn2984 = 0 + for _, b := range yyq2984 { if b { - yynn2901++ + yynn2984++ } } - r.EncodeMapStart(yynn2901) - yynn2901 = 0 + r.EncodeMapStart(yynn2984) + yynn2984 = 0 } - if yyr2901 || yy2arr2901 { + if yyr2984 || yy2arr2984 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2901[0] { - yy2903 := &x.KubeletEndpoint - yy2903.CodecEncodeSelf(e) + if yyq2984[0] { + yy2986 := &x.KubeletEndpoint + yy2986.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { - if yyq2901[0] { + if yyq2984[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kubeletEndpoint")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy2904 := &x.KubeletEndpoint - yy2904.CodecEncodeSelf(e) + yy2987 := &x.KubeletEndpoint + yy2987.CodecEncodeSelf(e) } } - if yyr2901 || yy2arr2901 { + if yyr2984 || yy2arr2984 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -37457,25 +38537,25 @@ func (x *NodeDaemonEndpoints) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym2905 := z.DecBinary() - _ = yym2905 + yym2988 := z.DecBinary() + _ = yym2988 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2906 := r.ContainerType() - if yyct2906 == codecSelferValueTypeMap1234 { - yyl2906 := r.ReadMapStart() - if yyl2906 == 0 { + yyct2989 := r.ContainerType() + if yyct2989 == codecSelferValueTypeMap1234 { + yyl2989 := r.ReadMapStart() + if yyl2989 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2906, d) + x.codecDecodeSelfFromMap(yyl2989, d) } - } else if yyct2906 == codecSelferValueTypeArray1234 { - yyl2906 := r.ReadArrayStart() - if yyl2906 == 0 { + } else if yyct2989 == codecSelferValueTypeArray1234 { + yyl2989 := r.ReadArrayStart() + if yyl2989 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2906, d) + x.codecDecodeSelfFromArray(yyl2989, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -37487,12 +38567,12 @@ func (x *NodeDaemonEndpoints) codecDecodeSelfFromMap(l int, d *codec1978.Decoder var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys2907Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys2907Slc - var yyhl2907 bool = l >= 0 - for yyj2907 := 0; ; yyj2907++ { - if yyhl2907 { - if yyj2907 >= l { + var yys2990Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys2990Slc + var yyhl2990 bool = l >= 0 + for yyj2990 := 0; ; yyj2990++ { + if yyhl2990 { + if yyj2990 >= l { break } } else { @@ -37501,21 +38581,21 @@ func (x *NodeDaemonEndpoints) codecDecodeSelfFromMap(l int, d *codec1978.Decoder } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys2907Slc = r.DecodeBytes(yys2907Slc, true, true) - yys2907 := string(yys2907Slc) + yys2990Slc = r.DecodeBytes(yys2990Slc, true, true) + yys2990 := string(yys2990Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys2907 { + switch yys2990 { case "kubeletEndpoint": if r.TryDecodeAsNil() { x.KubeletEndpoint = DaemonEndpoint{} } else { - yyv2908 := &x.KubeletEndpoint - yyv2908.CodecDecodeSelf(d) + yyv2991 := &x.KubeletEndpoint + yyv2991.CodecDecodeSelf(d) } default: - z.DecStructFieldNotFound(-1, yys2907) - } // end switch yys2907 - } // end for yyj2907 + z.DecStructFieldNotFound(-1, yys2990) + } // end switch yys2990 + } // end for yyj2990 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -37523,16 +38603,16 @@ func (x *NodeDaemonEndpoints) codecDecodeSelfFromArray(l int, d *codec1978.Decod var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj2909 int - var yyb2909 bool - var yyhl2909 bool = l >= 0 - yyj2909++ - if yyhl2909 { - yyb2909 = yyj2909 > l + var yyj2992 int + var yyb2992 bool + var yyhl2992 bool = l >= 0 + yyj2992++ + if yyhl2992 { + yyb2992 = yyj2992 > l } else { - yyb2909 = r.CheckBreak() + yyb2992 = r.CheckBreak() } - if yyb2909 { + if yyb2992 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -37540,21 +38620,21 @@ func (x *NodeDaemonEndpoints) codecDecodeSelfFromArray(l int, d *codec1978.Decod if r.TryDecodeAsNil() { x.KubeletEndpoint = DaemonEndpoint{} } else { - yyv2910 := &x.KubeletEndpoint - yyv2910.CodecDecodeSelf(d) + yyv2993 := &x.KubeletEndpoint + yyv2993.CodecDecodeSelf(d) } for { - yyj2909++ - if yyhl2909 { - yyb2909 = yyj2909 > l + yyj2992++ + if yyhl2992 { + yyb2992 = yyj2992 > l } else { - yyb2909 = r.CheckBreak() + yyb2992 = r.CheckBreak() } - if yyb2909 { + if yyb2992 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj2909-1, "") + z.DecStructFieldNotFound(yyj2992-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -37566,33 +38646,33 @@ func (x *NodeSystemInfo) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym2911 := z.EncBinary() - _ = yym2911 + yym2994 := z.EncBinary() + _ = yym2994 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep2912 := !z.EncBinary() - yy2arr2912 := z.EncBasicHandle().StructToArray - var yyq2912 [10]bool - _, _, _ = yysep2912, yyq2912, yy2arr2912 - const yyr2912 bool = false - var yynn2912 int - if yyr2912 || yy2arr2912 { + yysep2995 := !z.EncBinary() + yy2arr2995 := z.EncBasicHandle().StructToArray + var yyq2995 [10]bool + _, _, _ = yysep2995, yyq2995, yy2arr2995 + const yyr2995 bool = false + var yynn2995 int + if yyr2995 || yy2arr2995 { r.EncodeArrayStart(10) } else { - yynn2912 = 10 - for _, b := range yyq2912 { + yynn2995 = 10 + for _, b := range yyq2995 { if b { - yynn2912++ + yynn2995++ } } - r.EncodeMapStart(yynn2912) - yynn2912 = 0 + r.EncodeMapStart(yynn2995) + yynn2995 = 0 } - if yyr2912 || yy2arr2912 { + if yyr2995 || yy2arr2995 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym2914 := z.EncBinary() - _ = yym2914 + yym2997 := z.EncBinary() + _ = yym2997 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.MachineID)) @@ -37601,17 +38681,17 @@ func (x *NodeSystemInfo) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("machineID")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym2915 := z.EncBinary() - _ = yym2915 + yym2998 := z.EncBinary() + _ = yym2998 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.MachineID)) } } - if yyr2912 || yy2arr2912 { + if yyr2995 || yy2arr2995 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym2917 := z.EncBinary() - _ = yym2917 + yym3000 := z.EncBinary() + _ = yym3000 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.SystemUUID)) @@ -37620,17 +38700,17 @@ func (x *NodeSystemInfo) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("systemUUID")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym2918 := z.EncBinary() - _ = yym2918 + yym3001 := z.EncBinary() + _ = yym3001 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.SystemUUID)) } } - if yyr2912 || yy2arr2912 { + if yyr2995 || yy2arr2995 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym2920 := z.EncBinary() - _ = yym2920 + yym3003 := z.EncBinary() + _ = yym3003 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.BootID)) @@ -37639,17 +38719,17 @@ func (x *NodeSystemInfo) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("bootID")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym2921 := z.EncBinary() - _ = yym2921 + yym3004 := z.EncBinary() + _ = yym3004 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.BootID)) } } - if yyr2912 || yy2arr2912 { + if yyr2995 || yy2arr2995 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym2923 := z.EncBinary() - _ = yym2923 + yym3006 := z.EncBinary() + _ = yym3006 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.KernelVersion)) @@ -37658,17 +38738,17 @@ func (x *NodeSystemInfo) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kernelVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym2924 := z.EncBinary() - _ = yym2924 + yym3007 := z.EncBinary() + _ = yym3007 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.KernelVersion)) } } - if yyr2912 || yy2arr2912 { + if yyr2995 || yy2arr2995 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym2926 := z.EncBinary() - _ = yym2926 + yym3009 := z.EncBinary() + _ = yym3009 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.OSImage)) @@ -37677,17 +38757,17 @@ func (x *NodeSystemInfo) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("osImage")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym2927 := z.EncBinary() - _ = yym2927 + yym3010 := z.EncBinary() + _ = yym3010 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.OSImage)) } } - if yyr2912 || yy2arr2912 { + if yyr2995 || yy2arr2995 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym2929 := z.EncBinary() - _ = yym2929 + yym3012 := z.EncBinary() + _ = yym3012 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.ContainerRuntimeVersion)) @@ -37696,17 +38776,17 @@ func (x *NodeSystemInfo) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("containerRuntimeVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym2930 := z.EncBinary() - _ = yym2930 + yym3013 := z.EncBinary() + _ = yym3013 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.ContainerRuntimeVersion)) } } - if yyr2912 || yy2arr2912 { + if yyr2995 || yy2arr2995 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym2932 := z.EncBinary() - _ = yym2932 + yym3015 := z.EncBinary() + _ = yym3015 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.KubeletVersion)) @@ -37715,17 +38795,17 @@ func (x *NodeSystemInfo) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kubeletVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym2933 := z.EncBinary() - _ = yym2933 + yym3016 := z.EncBinary() + _ = yym3016 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.KubeletVersion)) } } - if yyr2912 || yy2arr2912 { + if yyr2995 || yy2arr2995 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym2935 := z.EncBinary() - _ = yym2935 + yym3018 := z.EncBinary() + _ = yym3018 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.KubeProxyVersion)) @@ -37734,17 +38814,17 @@ func (x *NodeSystemInfo) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kubeProxyVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym2936 := z.EncBinary() - _ = yym2936 + yym3019 := z.EncBinary() + _ = yym3019 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.KubeProxyVersion)) } } - if yyr2912 || yy2arr2912 { + if yyr2995 || yy2arr2995 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym2938 := z.EncBinary() - _ = yym2938 + yym3021 := z.EncBinary() + _ = yym3021 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.OperatingSystem)) @@ -37753,17 +38833,17 @@ func (x *NodeSystemInfo) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("operatingSystem")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym2939 := z.EncBinary() - _ = yym2939 + yym3022 := z.EncBinary() + _ = yym3022 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.OperatingSystem)) } } - if yyr2912 || yy2arr2912 { + if yyr2995 || yy2arr2995 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym2941 := z.EncBinary() - _ = yym2941 + yym3024 := z.EncBinary() + _ = yym3024 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Architecture)) @@ -37772,14 +38852,14 @@ func (x *NodeSystemInfo) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("architecture")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym2942 := z.EncBinary() - _ = yym2942 + yym3025 := z.EncBinary() + _ = yym3025 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Architecture)) } } - if yyr2912 || yy2arr2912 { + if yyr2995 || yy2arr2995 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -37792,25 +38872,25 @@ func (x *NodeSystemInfo) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym2943 := z.DecBinary() - _ = yym2943 + yym3026 := z.DecBinary() + _ = yym3026 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2944 := r.ContainerType() - if yyct2944 == codecSelferValueTypeMap1234 { - yyl2944 := r.ReadMapStart() - if yyl2944 == 0 { + yyct3027 := r.ContainerType() + if yyct3027 == codecSelferValueTypeMap1234 { + yyl3027 := r.ReadMapStart() + if yyl3027 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2944, d) + x.codecDecodeSelfFromMap(yyl3027, d) } - } else if yyct2944 == codecSelferValueTypeArray1234 { - yyl2944 := r.ReadArrayStart() - if yyl2944 == 0 { + } else if yyct3027 == codecSelferValueTypeArray1234 { + yyl3027 := r.ReadArrayStart() + if yyl3027 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2944, d) + x.codecDecodeSelfFromArray(yyl3027, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -37822,12 +38902,12 @@ func (x *NodeSystemInfo) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys2945Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys2945Slc - var yyhl2945 bool = l >= 0 - for yyj2945 := 0; ; yyj2945++ { - if yyhl2945 { - if yyj2945 >= l { + var yys3028Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys3028Slc + var yyhl3028 bool = l >= 0 + for yyj3028 := 0; ; yyj3028++ { + if yyhl3028 { + if yyj3028 >= l { break } } else { @@ -37836,10 +38916,10 @@ func (x *NodeSystemInfo) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys2945Slc = r.DecodeBytes(yys2945Slc, true, true) - yys2945 := string(yys2945Slc) + yys3028Slc = r.DecodeBytes(yys3028Slc, true, true) + yys3028 := string(yys3028Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys2945 { + switch yys3028 { case "machineID": if r.TryDecodeAsNil() { x.MachineID = "" @@ -37901,9 +38981,9 @@ func (x *NodeSystemInfo) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { x.Architecture = string(r.DecodeString()) } default: - z.DecStructFieldNotFound(-1, yys2945) - } // end switch yys2945 - } // end for yyj2945 + z.DecStructFieldNotFound(-1, yys3028) + } // end switch yys3028 + } // end for yyj3028 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -37911,16 +38991,16 @@ func (x *NodeSystemInfo) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj2956 int - var yyb2956 bool - var yyhl2956 bool = l >= 0 - yyj2956++ - if yyhl2956 { - yyb2956 = yyj2956 > l + var yyj3039 int + var yyb3039 bool + var yyhl3039 bool = l >= 0 + yyj3039++ + if yyhl3039 { + yyb3039 = yyj3039 > l } else { - yyb2956 = r.CheckBreak() + yyb3039 = r.CheckBreak() } - if yyb2956 { + if yyb3039 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -37930,13 +39010,13 @@ func (x *NodeSystemInfo) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.MachineID = string(r.DecodeString()) } - yyj2956++ - if yyhl2956 { - yyb2956 = yyj2956 > l + yyj3039++ + if yyhl3039 { + yyb3039 = yyj3039 > l } else { - yyb2956 = r.CheckBreak() + yyb3039 = r.CheckBreak() } - if yyb2956 { + if yyb3039 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -37946,13 +39026,13 @@ func (x *NodeSystemInfo) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.SystemUUID = string(r.DecodeString()) } - yyj2956++ - if yyhl2956 { - yyb2956 = yyj2956 > l + yyj3039++ + if yyhl3039 { + yyb3039 = yyj3039 > l } else { - yyb2956 = r.CheckBreak() + yyb3039 = r.CheckBreak() } - if yyb2956 { + if yyb3039 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -37962,13 +39042,13 @@ func (x *NodeSystemInfo) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.BootID = string(r.DecodeString()) } - yyj2956++ - if yyhl2956 { - yyb2956 = yyj2956 > l + yyj3039++ + if yyhl3039 { + yyb3039 = yyj3039 > l } else { - yyb2956 = r.CheckBreak() + yyb3039 = r.CheckBreak() } - if yyb2956 { + if yyb3039 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -37978,13 +39058,13 @@ func (x *NodeSystemInfo) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.KernelVersion = string(r.DecodeString()) } - yyj2956++ - if yyhl2956 { - yyb2956 = yyj2956 > l + yyj3039++ + if yyhl3039 { + yyb3039 = yyj3039 > l } else { - yyb2956 = r.CheckBreak() + yyb3039 = r.CheckBreak() } - if yyb2956 { + if yyb3039 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -37994,13 +39074,13 @@ func (x *NodeSystemInfo) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.OSImage = string(r.DecodeString()) } - yyj2956++ - if yyhl2956 { - yyb2956 = yyj2956 > l + yyj3039++ + if yyhl3039 { + yyb3039 = yyj3039 > l } else { - yyb2956 = r.CheckBreak() + yyb3039 = r.CheckBreak() } - if yyb2956 { + if yyb3039 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -38010,13 +39090,13 @@ func (x *NodeSystemInfo) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.ContainerRuntimeVersion = string(r.DecodeString()) } - yyj2956++ - if yyhl2956 { - yyb2956 = yyj2956 > l + yyj3039++ + if yyhl3039 { + yyb3039 = yyj3039 > l } else { - yyb2956 = r.CheckBreak() + yyb3039 = r.CheckBreak() } - if yyb2956 { + if yyb3039 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -38026,13 +39106,13 @@ func (x *NodeSystemInfo) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.KubeletVersion = string(r.DecodeString()) } - yyj2956++ - if yyhl2956 { - yyb2956 = yyj2956 > l + yyj3039++ + if yyhl3039 { + yyb3039 = yyj3039 > l } else { - yyb2956 = r.CheckBreak() + yyb3039 = r.CheckBreak() } - if yyb2956 { + if yyb3039 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -38042,13 +39122,13 @@ func (x *NodeSystemInfo) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.KubeProxyVersion = string(r.DecodeString()) } - yyj2956++ - if yyhl2956 { - yyb2956 = yyj2956 > l + yyj3039++ + if yyhl3039 { + yyb3039 = yyj3039 > l } else { - yyb2956 = r.CheckBreak() + yyb3039 = r.CheckBreak() } - if yyb2956 { + if yyb3039 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -38058,13 +39138,13 @@ func (x *NodeSystemInfo) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.OperatingSystem = string(r.DecodeString()) } - yyj2956++ - if yyhl2956 { - yyb2956 = yyj2956 > l + yyj3039++ + if yyhl3039 { + yyb3039 = yyj3039 > l } else { - yyb2956 = r.CheckBreak() + yyb3039 = r.CheckBreak() } - if yyb2956 { + if yyb3039 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -38075,17 +39155,17 @@ func (x *NodeSystemInfo) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { x.Architecture = string(r.DecodeString()) } for { - yyj2956++ - if yyhl2956 { - yyb2956 = yyj2956 > l + yyj3039++ + if yyhl3039 { + yyb3039 = yyj3039 > l } else { - yyb2956 = r.CheckBreak() + yyb3039 = r.CheckBreak() } - if yyb2956 { + if yyb3039 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj2956-1, "") + z.DecStructFieldNotFound(yyj3039-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -38097,42 +39177,42 @@ func (x *NodeStatus) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym2967 := z.EncBinary() - _ = yym2967 + yym3050 := z.EncBinary() + _ = yym3050 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - 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 { + yysep3051 := !z.EncBinary() + yy2arr3051 := z.EncBasicHandle().StructToArray + var yyq3051 [10]bool + _, _, _ = yysep3051, yyq3051, yy2arr3051 + const yyr3051 bool = false + yyq3051[0] = len(x.Capacity) != 0 + yyq3051[1] = len(x.Allocatable) != 0 + yyq3051[2] = x.Phase != "" + yyq3051[3] = len(x.Conditions) != 0 + yyq3051[4] = len(x.Addresses) != 0 + yyq3051[5] = true + yyq3051[6] = true + yyq3051[7] = len(x.Images) != 0 + yyq3051[8] = len(x.VolumesInUse) != 0 + yyq3051[9] = len(x.VolumesAttached) != 0 + var yynn3051 int + if yyr3051 || yy2arr3051 { r.EncodeArrayStart(10) } else { - yynn2968 = 0 - for _, b := range yyq2968 { + yynn3051 = 0 + for _, b := range yyq3051 { if b { - yynn2968++ + yynn3051++ } } - r.EncodeMapStart(yynn2968) - yynn2968 = 0 + r.EncodeMapStart(yynn3051) + yynn3051 = 0 } - if yyr2968 || yy2arr2968 { + if yyr3051 || yy2arr3051 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2968[0] { + if yyq3051[0] { if x.Capacity == nil { r.EncodeNil() } else { @@ -38142,7 +39222,7 @@ func (x *NodeStatus) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq2968[0] { + if yyq3051[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("capacity")) z.EncSendContainerState(codecSelfer_containerMapValue1234) @@ -38153,9 +39233,9 @@ func (x *NodeStatus) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr2968 || yy2arr2968 { + if yyr3051 || yy2arr3051 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2968[1] { + if yyq3051[1] { if x.Allocatable == nil { r.EncodeNil() } else { @@ -38165,7 +39245,7 @@ func (x *NodeStatus) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq2968[1] { + if yyq3051[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("allocatable")) z.EncSendContainerState(codecSelfer_containerMapValue1234) @@ -38176,29 +39256,29 @@ func (x *NodeStatus) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr2968 || yy2arr2968 { + if yyr3051 || yy2arr3051 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2968[2] { + if yyq3051[2] { x.Phase.CodecEncodeSelf(e) } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2968[2] { + if yyq3051[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("phase")) z.EncSendContainerState(codecSelfer_containerMapValue1234) x.Phase.CodecEncodeSelf(e) } } - if yyr2968 || yy2arr2968 { + if yyr3051 || yy2arr3051 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2968[3] { + if yyq3051[3] { if x.Conditions == nil { r.EncodeNil() } else { - yym2973 := z.EncBinary() - _ = yym2973 + yym3056 := z.EncBinary() + _ = yym3056 if false { } else { h.encSliceNodeCondition(([]NodeCondition)(x.Conditions), e) @@ -38208,15 +39288,15 @@ func (x *NodeStatus) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq2968[3] { + if yyq3051[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("conditions")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.Conditions == nil { r.EncodeNil() } else { - yym2974 := z.EncBinary() - _ = yym2974 + yym3057 := z.EncBinary() + _ = yym3057 if false { } else { h.encSliceNodeCondition(([]NodeCondition)(x.Conditions), e) @@ -38224,14 +39304,14 @@ func (x *NodeStatus) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr2968 || yy2arr2968 { + if yyr3051 || yy2arr3051 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2968[4] { + if yyq3051[4] { if x.Addresses == nil { r.EncodeNil() } else { - yym2976 := z.EncBinary() - _ = yym2976 + yym3059 := z.EncBinary() + _ = yym3059 if false { } else { h.encSliceNodeAddress(([]NodeAddress)(x.Addresses), e) @@ -38241,15 +39321,15 @@ func (x *NodeStatus) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq2968[4] { + if yyq3051[4] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("addresses")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.Addresses == nil { r.EncodeNil() } else { - yym2977 := z.EncBinary() - _ = yym2977 + yym3060 := z.EncBinary() + _ = yym3060 if false { } else { h.encSliceNodeAddress(([]NodeAddress)(x.Addresses), e) @@ -38257,48 +39337,48 @@ func (x *NodeStatus) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr2968 || yy2arr2968 { + if yyr3051 || yy2arr3051 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2968[5] { - yy2979 := &x.DaemonEndpoints - yy2979.CodecEncodeSelf(e) + if yyq3051[5] { + yy3062 := &x.DaemonEndpoints + yy3062.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { - if yyq2968[5] { + if yyq3051[5] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("daemonEndpoints")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy2980 := &x.DaemonEndpoints - yy2980.CodecEncodeSelf(e) + yy3063 := &x.DaemonEndpoints + yy3063.CodecEncodeSelf(e) } } - if yyr2968 || yy2arr2968 { + if yyr3051 || yy2arr3051 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2968[6] { - yy2982 := &x.NodeInfo - yy2982.CodecEncodeSelf(e) + if yyq3051[6] { + yy3065 := &x.NodeInfo + yy3065.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { - if yyq2968[6] { + if yyq3051[6] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("nodeInfo")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy2983 := &x.NodeInfo - yy2983.CodecEncodeSelf(e) + yy3066 := &x.NodeInfo + yy3066.CodecEncodeSelf(e) } } - if yyr2968 || yy2arr2968 { + if yyr3051 || yy2arr3051 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2968[7] { + if yyq3051[7] { if x.Images == nil { r.EncodeNil() } else { - yym2985 := z.EncBinary() - _ = yym2985 + yym3068 := z.EncBinary() + _ = yym3068 if false { } else { h.encSliceContainerImage(([]ContainerImage)(x.Images), e) @@ -38308,15 +39388,15 @@ func (x *NodeStatus) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq2968[7] { + if yyq3051[7] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("images")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.Images == nil { r.EncodeNil() } else { - yym2986 := z.EncBinary() - _ = yym2986 + yym3069 := z.EncBinary() + _ = yym3069 if false { } else { h.encSliceContainerImage(([]ContainerImage)(x.Images), e) @@ -38324,14 +39404,14 @@ func (x *NodeStatus) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr2968 || yy2arr2968 { + if yyr3051 || yy2arr3051 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2968[8] { + if yyq3051[8] { if x.VolumesInUse == nil { r.EncodeNil() } else { - yym2988 := z.EncBinary() - _ = yym2988 + yym3071 := z.EncBinary() + _ = yym3071 if false { } else { h.encSliceUniqueVolumeName(([]UniqueVolumeName)(x.VolumesInUse), e) @@ -38341,15 +39421,15 @@ func (x *NodeStatus) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq2968[8] { + if yyq3051[8] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("volumesInUse")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.VolumesInUse == nil { r.EncodeNil() } else { - yym2989 := z.EncBinary() - _ = yym2989 + yym3072 := z.EncBinary() + _ = yym3072 if false { } else { h.encSliceUniqueVolumeName(([]UniqueVolumeName)(x.VolumesInUse), e) @@ -38357,14 +39437,14 @@ func (x *NodeStatus) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr2968 || yy2arr2968 { + if yyr3051 || yy2arr3051 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2968[9] { + if yyq3051[9] { if x.VolumesAttached == nil { r.EncodeNil() } else { - yym2991 := z.EncBinary() - _ = yym2991 + yym3074 := z.EncBinary() + _ = yym3074 if false { } else { h.encSliceAttachedVolume(([]AttachedVolume)(x.VolumesAttached), e) @@ -38374,15 +39454,15 @@ func (x *NodeStatus) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq2968[9] { + if yyq3051[9] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("volumesAttached")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.VolumesAttached == nil { r.EncodeNil() } else { - yym2992 := z.EncBinary() - _ = yym2992 + yym3075 := z.EncBinary() + _ = yym3075 if false { } else { h.encSliceAttachedVolume(([]AttachedVolume)(x.VolumesAttached), e) @@ -38390,7 +39470,7 @@ func (x *NodeStatus) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr2968 || yy2arr2968 { + if yyr3051 || yy2arr3051 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -38403,25 +39483,25 @@ func (x *NodeStatus) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym2993 := z.DecBinary() - _ = yym2993 + yym3076 := z.DecBinary() + _ = yym3076 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2994 := r.ContainerType() - if yyct2994 == codecSelferValueTypeMap1234 { - yyl2994 := r.ReadMapStart() - if yyl2994 == 0 { + yyct3077 := r.ContainerType() + if yyct3077 == codecSelferValueTypeMap1234 { + yyl3077 := r.ReadMapStart() + if yyl3077 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2994, d) + x.codecDecodeSelfFromMap(yyl3077, d) } - } else if yyct2994 == codecSelferValueTypeArray1234 { - yyl2994 := r.ReadArrayStart() - if yyl2994 == 0 { + } else if yyct3077 == codecSelferValueTypeArray1234 { + yyl3077 := r.ReadArrayStart() + if yyl3077 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2994, d) + x.codecDecodeSelfFromArray(yyl3077, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -38433,12 +39513,12 @@ func (x *NodeStatus) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys2995Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys2995Slc - var yyhl2995 bool = l >= 0 - for yyj2995 := 0; ; yyj2995++ { - if yyhl2995 { - if yyj2995 >= l { + var yys3078Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys3078Slc + var yyhl3078 bool = l >= 0 + for yyj3078 := 0; ; yyj3078++ { + if yyhl3078 { + if yyj3078 >= l { break } } else { @@ -38447,23 +39527,23 @@ func (x *NodeStatus) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys2995Slc = r.DecodeBytes(yys2995Slc, true, true) - yys2995 := string(yys2995Slc) + yys3078Slc = r.DecodeBytes(yys3078Slc, true, true) + yys3078 := string(yys3078Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys2995 { + switch yys3078 { case "capacity": if r.TryDecodeAsNil() { x.Capacity = nil } else { - yyv2996 := &x.Capacity - yyv2996.CodecDecodeSelf(d) + yyv3079 := &x.Capacity + yyv3079.CodecDecodeSelf(d) } case "allocatable": if r.TryDecodeAsNil() { x.Allocatable = nil } else { - yyv2997 := &x.Allocatable - yyv2997.CodecDecodeSelf(d) + yyv3080 := &x.Allocatable + yyv3080.CodecDecodeSelf(d) } case "phase": if r.TryDecodeAsNil() { @@ -38475,80 +39555,80 @@ func (x *NodeStatus) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.Conditions = nil } else { - yyv2999 := &x.Conditions - yym3000 := z.DecBinary() - _ = yym3000 + yyv3082 := &x.Conditions + yym3083 := z.DecBinary() + _ = yym3083 if false { } else { - h.decSliceNodeCondition((*[]NodeCondition)(yyv2999), d) + h.decSliceNodeCondition((*[]NodeCondition)(yyv3082), d) } } case "addresses": if r.TryDecodeAsNil() { x.Addresses = nil } else { - yyv3001 := &x.Addresses - yym3002 := z.DecBinary() - _ = yym3002 + yyv3084 := &x.Addresses + yym3085 := z.DecBinary() + _ = yym3085 if false { } else { - h.decSliceNodeAddress((*[]NodeAddress)(yyv3001), d) + h.decSliceNodeAddress((*[]NodeAddress)(yyv3084), d) } } case "daemonEndpoints": if r.TryDecodeAsNil() { x.DaemonEndpoints = NodeDaemonEndpoints{} } else { - yyv3003 := &x.DaemonEndpoints - yyv3003.CodecDecodeSelf(d) + yyv3086 := &x.DaemonEndpoints + yyv3086.CodecDecodeSelf(d) } case "nodeInfo": if r.TryDecodeAsNil() { x.NodeInfo = NodeSystemInfo{} } else { - yyv3004 := &x.NodeInfo - yyv3004.CodecDecodeSelf(d) + yyv3087 := &x.NodeInfo + yyv3087.CodecDecodeSelf(d) } case "images": if r.TryDecodeAsNil() { x.Images = nil } else { - yyv3005 := &x.Images - yym3006 := z.DecBinary() - _ = yym3006 + yyv3088 := &x.Images + yym3089 := z.DecBinary() + _ = yym3089 if false { } else { - h.decSliceContainerImage((*[]ContainerImage)(yyv3005), d) + h.decSliceContainerImage((*[]ContainerImage)(yyv3088), d) } } case "volumesInUse": if r.TryDecodeAsNil() { x.VolumesInUse = nil } else { - yyv3007 := &x.VolumesInUse - yym3008 := z.DecBinary() - _ = yym3008 + yyv3090 := &x.VolumesInUse + yym3091 := z.DecBinary() + _ = yym3091 if false { } else { - h.decSliceUniqueVolumeName((*[]UniqueVolumeName)(yyv3007), d) + h.decSliceUniqueVolumeName((*[]UniqueVolumeName)(yyv3090), d) } } case "volumesAttached": if r.TryDecodeAsNil() { x.VolumesAttached = nil } else { - yyv3009 := &x.VolumesAttached - yym3010 := z.DecBinary() - _ = yym3010 + yyv3092 := &x.VolumesAttached + yym3093 := z.DecBinary() + _ = yym3093 if false { } else { - h.decSliceAttachedVolume((*[]AttachedVolume)(yyv3009), d) + h.decSliceAttachedVolume((*[]AttachedVolume)(yyv3092), d) } } default: - z.DecStructFieldNotFound(-1, yys2995) - } // end switch yys2995 - } // end for yyj2995 + z.DecStructFieldNotFound(-1, yys3078) + } // end switch yys3078 + } // end for yyj3078 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -38556,16 +39636,16 @@ func (x *NodeStatus) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj3011 int - var yyb3011 bool - var yyhl3011 bool = l >= 0 - yyj3011++ - if yyhl3011 { - yyb3011 = yyj3011 > l + var yyj3094 int + var yyb3094 bool + var yyhl3094 bool = l >= 0 + yyj3094++ + if yyhl3094 { + yyb3094 = yyj3094 > l } else { - yyb3011 = r.CheckBreak() + yyb3094 = r.CheckBreak() } - if yyb3011 { + if yyb3094 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -38573,16 +39653,16 @@ func (x *NodeStatus) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.Capacity = nil } else { - yyv3012 := &x.Capacity - yyv3012.CodecDecodeSelf(d) + yyv3095 := &x.Capacity + yyv3095.CodecDecodeSelf(d) } - yyj3011++ - if yyhl3011 { - yyb3011 = yyj3011 > l + yyj3094++ + if yyhl3094 { + yyb3094 = yyj3094 > l } else { - yyb3011 = r.CheckBreak() + yyb3094 = r.CheckBreak() } - if yyb3011 { + if yyb3094 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -38590,16 +39670,16 @@ func (x *NodeStatus) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.Allocatable = nil } else { - yyv3013 := &x.Allocatable - yyv3013.CodecDecodeSelf(d) + yyv3096 := &x.Allocatable + yyv3096.CodecDecodeSelf(d) } - yyj3011++ - if yyhl3011 { - yyb3011 = yyj3011 > l + yyj3094++ + if yyhl3094 { + yyb3094 = yyj3094 > l } else { - yyb3011 = r.CheckBreak() + yyb3094 = r.CheckBreak() } - if yyb3011 { + if yyb3094 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -38609,13 +39689,13 @@ func (x *NodeStatus) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.Phase = NodePhase(r.DecodeString()) } - yyj3011++ - if yyhl3011 { - yyb3011 = yyj3011 > l + yyj3094++ + if yyhl3094 { + yyb3094 = yyj3094 > l } else { - yyb3011 = r.CheckBreak() + yyb3094 = r.CheckBreak() } - if yyb3011 { + if yyb3094 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -38623,21 +39703,21 @@ func (x *NodeStatus) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.Conditions = nil } else { - yyv3015 := &x.Conditions - yym3016 := z.DecBinary() - _ = yym3016 + yyv3098 := &x.Conditions + yym3099 := z.DecBinary() + _ = yym3099 if false { } else { - h.decSliceNodeCondition((*[]NodeCondition)(yyv3015), d) + h.decSliceNodeCondition((*[]NodeCondition)(yyv3098), d) } } - yyj3011++ - if yyhl3011 { - yyb3011 = yyj3011 > l + yyj3094++ + if yyhl3094 { + yyb3094 = yyj3094 > l } else { - yyb3011 = r.CheckBreak() + yyb3094 = r.CheckBreak() } - if yyb3011 { + if yyb3094 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -38645,21 +39725,21 @@ func (x *NodeStatus) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.Addresses = nil } else { - yyv3017 := &x.Addresses - yym3018 := z.DecBinary() - _ = yym3018 + yyv3100 := &x.Addresses + yym3101 := z.DecBinary() + _ = yym3101 if false { } else { - h.decSliceNodeAddress((*[]NodeAddress)(yyv3017), d) + h.decSliceNodeAddress((*[]NodeAddress)(yyv3100), d) } } - yyj3011++ - if yyhl3011 { - yyb3011 = yyj3011 > l + yyj3094++ + if yyhl3094 { + yyb3094 = yyj3094 > l } else { - yyb3011 = r.CheckBreak() + yyb3094 = r.CheckBreak() } - if yyb3011 { + if yyb3094 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -38667,16 +39747,16 @@ func (x *NodeStatus) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.DaemonEndpoints = NodeDaemonEndpoints{} } else { - yyv3019 := &x.DaemonEndpoints - yyv3019.CodecDecodeSelf(d) + yyv3102 := &x.DaemonEndpoints + yyv3102.CodecDecodeSelf(d) } - yyj3011++ - if yyhl3011 { - yyb3011 = yyj3011 > l + yyj3094++ + if yyhl3094 { + yyb3094 = yyj3094 > l } else { - yyb3011 = r.CheckBreak() + yyb3094 = r.CheckBreak() } - if yyb3011 { + if yyb3094 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -38684,16 +39764,16 @@ func (x *NodeStatus) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.NodeInfo = NodeSystemInfo{} } else { - yyv3020 := &x.NodeInfo - yyv3020.CodecDecodeSelf(d) + yyv3103 := &x.NodeInfo + yyv3103.CodecDecodeSelf(d) } - yyj3011++ - if yyhl3011 { - yyb3011 = yyj3011 > l + yyj3094++ + if yyhl3094 { + yyb3094 = yyj3094 > l } else { - yyb3011 = r.CheckBreak() + yyb3094 = r.CheckBreak() } - if yyb3011 { + if yyb3094 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -38701,21 +39781,21 @@ func (x *NodeStatus) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.Images = nil } else { - yyv3021 := &x.Images - yym3022 := z.DecBinary() - _ = yym3022 + yyv3104 := &x.Images + yym3105 := z.DecBinary() + _ = yym3105 if false { } else { - h.decSliceContainerImage((*[]ContainerImage)(yyv3021), d) + h.decSliceContainerImage((*[]ContainerImage)(yyv3104), d) } } - yyj3011++ - if yyhl3011 { - yyb3011 = yyj3011 > l + yyj3094++ + if yyhl3094 { + yyb3094 = yyj3094 > l } else { - yyb3011 = r.CheckBreak() + yyb3094 = r.CheckBreak() } - if yyb3011 { + if yyb3094 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -38723,21 +39803,21 @@ func (x *NodeStatus) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.VolumesInUse = nil } else { - yyv3023 := &x.VolumesInUse - yym3024 := z.DecBinary() - _ = yym3024 + yyv3106 := &x.VolumesInUse + yym3107 := z.DecBinary() + _ = yym3107 if false { } else { - h.decSliceUniqueVolumeName((*[]UniqueVolumeName)(yyv3023), d) + h.decSliceUniqueVolumeName((*[]UniqueVolumeName)(yyv3106), d) } } - yyj3011++ - if yyhl3011 { - yyb3011 = yyj3011 > l + yyj3094++ + if yyhl3094 { + yyb3094 = yyj3094 > l } else { - yyb3011 = r.CheckBreak() + yyb3094 = r.CheckBreak() } - if yyb3011 { + if yyb3094 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -38745,26 +39825,26 @@ func (x *NodeStatus) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.VolumesAttached = nil } else { - yyv3025 := &x.VolumesAttached - yym3026 := z.DecBinary() - _ = yym3026 + yyv3108 := &x.VolumesAttached + yym3109 := z.DecBinary() + _ = yym3109 if false { } else { - h.decSliceAttachedVolume((*[]AttachedVolume)(yyv3025), d) + h.decSliceAttachedVolume((*[]AttachedVolume)(yyv3108), d) } } for { - yyj3011++ - if yyhl3011 { - yyb3011 = yyj3011 > l + yyj3094++ + if yyhl3094 { + yyb3094 = yyj3094 > l } else { - yyb3011 = r.CheckBreak() + yyb3094 = r.CheckBreak() } - if yyb3011 { + if yyb3094 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj3011-1, "") + z.DecStructFieldNotFound(yyj3094-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -38773,8 +39853,8 @@ func (x UniqueVolumeName) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r - yym3027 := z.EncBinary() - _ = yym3027 + yym3110 := z.EncBinary() + _ = yym3110 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { @@ -38786,8 +39866,8 @@ func (x *UniqueVolumeName) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym3028 := z.DecBinary() - _ = yym3028 + yym3111 := z.DecBinary() + _ = yym3111 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { @@ -38802,30 +39882,30 @@ func (x *AttachedVolume) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym3029 := z.EncBinary() - _ = yym3029 + yym3112 := z.EncBinary() + _ = yym3112 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep3030 := !z.EncBinary() - yy2arr3030 := z.EncBasicHandle().StructToArray - var yyq3030 [2]bool - _, _, _ = yysep3030, yyq3030, yy2arr3030 - const yyr3030 bool = false - var yynn3030 int - if yyr3030 || yy2arr3030 { + yysep3113 := !z.EncBinary() + yy2arr3113 := z.EncBasicHandle().StructToArray + var yyq3113 [2]bool + _, _, _ = yysep3113, yyq3113, yy2arr3113 + const yyr3113 bool = false + var yynn3113 int + if yyr3113 || yy2arr3113 { r.EncodeArrayStart(2) } else { - yynn3030 = 2 - for _, b := range yyq3030 { + yynn3113 = 2 + for _, b := range yyq3113 { if b { - yynn3030++ + yynn3113++ } } - r.EncodeMapStart(yynn3030) - yynn3030 = 0 + r.EncodeMapStart(yynn3113) + yynn3113 = 0 } - if yyr3030 || yy2arr3030 { + if yyr3113 || yy2arr3113 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) x.Name.CodecEncodeSelf(e) } else { @@ -38834,10 +39914,10 @@ func (x *AttachedVolume) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapValue1234) x.Name.CodecEncodeSelf(e) } - if yyr3030 || yy2arr3030 { + if yyr3113 || yy2arr3113 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym3033 := z.EncBinary() - _ = yym3033 + yym3116 := z.EncBinary() + _ = yym3116 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.DevicePath)) @@ -38846,14 +39926,14 @@ func (x *AttachedVolume) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("devicePath")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym3034 := z.EncBinary() - _ = yym3034 + yym3117 := z.EncBinary() + _ = yym3117 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.DevicePath)) } } - if yyr3030 || yy2arr3030 { + if yyr3113 || yy2arr3113 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -38866,25 +39946,25 @@ func (x *AttachedVolume) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym3035 := z.DecBinary() - _ = yym3035 + yym3118 := z.DecBinary() + _ = yym3118 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct3036 := r.ContainerType() - if yyct3036 == codecSelferValueTypeMap1234 { - yyl3036 := r.ReadMapStart() - if yyl3036 == 0 { + yyct3119 := r.ContainerType() + if yyct3119 == codecSelferValueTypeMap1234 { + yyl3119 := r.ReadMapStart() + if yyl3119 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl3036, d) + x.codecDecodeSelfFromMap(yyl3119, d) } - } else if yyct3036 == codecSelferValueTypeArray1234 { - yyl3036 := r.ReadArrayStart() - if yyl3036 == 0 { + } else if yyct3119 == codecSelferValueTypeArray1234 { + yyl3119 := r.ReadArrayStart() + if yyl3119 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl3036, d) + x.codecDecodeSelfFromArray(yyl3119, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -38896,12 +39976,12 @@ func (x *AttachedVolume) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys3037Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3037Slc - var yyhl3037 bool = l >= 0 - for yyj3037 := 0; ; yyj3037++ { - if yyhl3037 { - if yyj3037 >= l { + var yys3120Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys3120Slc + var yyhl3120 bool = l >= 0 + for yyj3120 := 0; ; yyj3120++ { + if yyhl3120 { + if yyj3120 >= l { break } } else { @@ -38910,10 +39990,10 @@ func (x *AttachedVolume) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3037Slc = r.DecodeBytes(yys3037Slc, true, true) - yys3037 := string(yys3037Slc) + yys3120Slc = r.DecodeBytes(yys3120Slc, true, true) + yys3120 := string(yys3120Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3037 { + switch yys3120 { case "name": if r.TryDecodeAsNil() { x.Name = "" @@ -38927,9 +40007,9 @@ func (x *AttachedVolume) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { x.DevicePath = string(r.DecodeString()) } default: - z.DecStructFieldNotFound(-1, yys3037) - } // end switch yys3037 - } // end for yyj3037 + z.DecStructFieldNotFound(-1, yys3120) + } // end switch yys3120 + } // end for yyj3120 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -38937,16 +40017,16 @@ func (x *AttachedVolume) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj3040 int - var yyb3040 bool - var yyhl3040 bool = l >= 0 - yyj3040++ - if yyhl3040 { - yyb3040 = yyj3040 > l + var yyj3123 int + var yyb3123 bool + var yyhl3123 bool = l >= 0 + yyj3123++ + if yyhl3123 { + yyb3123 = yyj3123 > l } else { - yyb3040 = r.CheckBreak() + yyb3123 = r.CheckBreak() } - if yyb3040 { + if yyb3123 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -38956,13 +40036,13 @@ func (x *AttachedVolume) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.Name = UniqueVolumeName(r.DecodeString()) } - yyj3040++ - if yyhl3040 { - yyb3040 = yyj3040 > l + yyj3123++ + if yyhl3123 { + yyb3123 = yyj3123 > l } else { - yyb3040 = r.CheckBreak() + yyb3123 = r.CheckBreak() } - if yyb3040 { + if yyb3123 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -38973,17 +40053,17 @@ func (x *AttachedVolume) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { x.DevicePath = string(r.DecodeString()) } for { - yyj3040++ - if yyhl3040 { - yyb3040 = yyj3040 > l + yyj3123++ + if yyhl3123 { + yyb3123 = yyj3123 > l } else { - yyb3040 = r.CheckBreak() + yyb3123 = r.CheckBreak() } - if yyb3040 { + if yyb3123 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj3040-1, "") + z.DecStructFieldNotFound(yyj3123-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -38995,38 +40075,38 @@ func (x *AvoidPods) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym3043 := z.EncBinary() - _ = yym3043 + yym3126 := z.EncBinary() + _ = yym3126 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - 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 { + yysep3127 := !z.EncBinary() + yy2arr3127 := z.EncBasicHandle().StructToArray + var yyq3127 [1]bool + _, _, _ = yysep3127, yyq3127, yy2arr3127 + const yyr3127 bool = false + yyq3127[0] = len(x.PreferAvoidPods) != 0 + var yynn3127 int + if yyr3127 || yy2arr3127 { r.EncodeArrayStart(1) } else { - yynn3044 = 0 - for _, b := range yyq3044 { + yynn3127 = 0 + for _, b := range yyq3127 { if b { - yynn3044++ + yynn3127++ } } - r.EncodeMapStart(yynn3044) - yynn3044 = 0 + r.EncodeMapStart(yynn3127) + yynn3127 = 0 } - if yyr3044 || yy2arr3044 { + if yyr3127 || yy2arr3127 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3044[0] { + if yyq3127[0] { if x.PreferAvoidPods == nil { r.EncodeNil() } else { - yym3046 := z.EncBinary() - _ = yym3046 + yym3129 := z.EncBinary() + _ = yym3129 if false { } else { h.encSlicePreferAvoidPodsEntry(([]PreferAvoidPodsEntry)(x.PreferAvoidPods), e) @@ -39036,15 +40116,15 @@ func (x *AvoidPods) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq3044[0] { + if yyq3127[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("preferAvoidPods")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.PreferAvoidPods == nil { r.EncodeNil() } else { - yym3047 := z.EncBinary() - _ = yym3047 + yym3130 := z.EncBinary() + _ = yym3130 if false { } else { h.encSlicePreferAvoidPodsEntry(([]PreferAvoidPodsEntry)(x.PreferAvoidPods), e) @@ -39052,7 +40132,7 @@ func (x *AvoidPods) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr3044 || yy2arr3044 { + if yyr3127 || yy2arr3127 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -39065,25 +40145,25 @@ func (x *AvoidPods) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym3048 := z.DecBinary() - _ = yym3048 + yym3131 := z.DecBinary() + _ = yym3131 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct3049 := r.ContainerType() - if yyct3049 == codecSelferValueTypeMap1234 { - yyl3049 := r.ReadMapStart() - if yyl3049 == 0 { + yyct3132 := r.ContainerType() + if yyct3132 == codecSelferValueTypeMap1234 { + yyl3132 := r.ReadMapStart() + if yyl3132 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl3049, d) + x.codecDecodeSelfFromMap(yyl3132, d) } - } else if yyct3049 == codecSelferValueTypeArray1234 { - yyl3049 := r.ReadArrayStart() - if yyl3049 == 0 { + } else if yyct3132 == codecSelferValueTypeArray1234 { + yyl3132 := r.ReadArrayStart() + if yyl3132 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl3049, d) + x.codecDecodeSelfFromArray(yyl3132, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -39095,12 +40175,12 @@ func (x *AvoidPods) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys3050Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3050Slc - var yyhl3050 bool = l >= 0 - for yyj3050 := 0; ; yyj3050++ { - if yyhl3050 { - if yyj3050 >= l { + var yys3133Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys3133Slc + var yyhl3133 bool = l >= 0 + for yyj3133 := 0; ; yyj3133++ { + if yyhl3133 { + if yyj3133 >= l { break } } else { @@ -39109,26 +40189,26 @@ func (x *AvoidPods) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3050Slc = r.DecodeBytes(yys3050Slc, true, true) - yys3050 := string(yys3050Slc) + yys3133Slc = r.DecodeBytes(yys3133Slc, true, true) + yys3133 := string(yys3133Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3050 { + switch yys3133 { case "preferAvoidPods": if r.TryDecodeAsNil() { x.PreferAvoidPods = nil } else { - yyv3051 := &x.PreferAvoidPods - yym3052 := z.DecBinary() - _ = yym3052 + yyv3134 := &x.PreferAvoidPods + yym3135 := z.DecBinary() + _ = yym3135 if false { } else { - h.decSlicePreferAvoidPodsEntry((*[]PreferAvoidPodsEntry)(yyv3051), d) + h.decSlicePreferAvoidPodsEntry((*[]PreferAvoidPodsEntry)(yyv3134), d) } } default: - z.DecStructFieldNotFound(-1, yys3050) - } // end switch yys3050 - } // end for yyj3050 + z.DecStructFieldNotFound(-1, yys3133) + } // end switch yys3133 + } // end for yyj3133 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -39136,16 +40216,16 @@ func (x *AvoidPods) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj3053 int - var yyb3053 bool - var yyhl3053 bool = l >= 0 - yyj3053++ - if yyhl3053 { - yyb3053 = yyj3053 > l + var yyj3136 int + var yyb3136 bool + var yyhl3136 bool = l >= 0 + yyj3136++ + if yyhl3136 { + yyb3136 = yyj3136 > l } else { - yyb3053 = r.CheckBreak() + yyb3136 = r.CheckBreak() } - if yyb3053 { + if yyb3136 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -39153,26 +40233,26 @@ func (x *AvoidPods) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.PreferAvoidPods = nil } else { - yyv3054 := &x.PreferAvoidPods - yym3055 := z.DecBinary() - _ = yym3055 + yyv3137 := &x.PreferAvoidPods + yym3138 := z.DecBinary() + _ = yym3138 if false { } else { - h.decSlicePreferAvoidPodsEntry((*[]PreferAvoidPodsEntry)(yyv3054), d) + h.decSlicePreferAvoidPodsEntry((*[]PreferAvoidPodsEntry)(yyv3137), d) } } for { - yyj3053++ - if yyhl3053 { - yyb3053 = yyj3053 > l + yyj3136++ + if yyhl3136 { + yyb3136 = yyj3136 > l } else { - yyb3053 = r.CheckBreak() + yyb3136 = r.CheckBreak() } - if yyb3053 { + if yyb3136 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj3053-1, "") + z.DecStructFieldNotFound(yyj3136-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -39184,85 +40264,85 @@ func (x *PreferAvoidPodsEntry) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym3056 := z.EncBinary() - _ = yym3056 + yym3139 := z.EncBinary() + _ = yym3139 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - 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 { + yysep3140 := !z.EncBinary() + yy2arr3140 := z.EncBasicHandle().StructToArray + var yyq3140 [4]bool + _, _, _ = yysep3140, yyq3140, yy2arr3140 + const yyr3140 bool = false + yyq3140[1] = true + yyq3140[2] = x.Reason != "" + yyq3140[3] = x.Message != "" + var yynn3140 int + if yyr3140 || yy2arr3140 { r.EncodeArrayStart(4) } else { - yynn3057 = 1 - for _, b := range yyq3057 { + yynn3140 = 1 + for _, b := range yyq3140 { if b { - yynn3057++ + yynn3140++ } } - r.EncodeMapStart(yynn3057) - yynn3057 = 0 + r.EncodeMapStart(yynn3140) + yynn3140 = 0 } - if yyr3057 || yy2arr3057 { + if yyr3140 || yy2arr3140 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy3059 := &x.PodSignature - yy3059.CodecEncodeSelf(e) + yy3142 := &x.PodSignature + yy3142.CodecEncodeSelf(e) } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("podSignature")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy3060 := &x.PodSignature - yy3060.CodecEncodeSelf(e) + yy3143 := &x.PodSignature + yy3143.CodecEncodeSelf(e) } - if yyr3057 || yy2arr3057 { + if yyr3140 || yy2arr3140 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3057[1] { - yy3062 := &x.EvictionTime - yym3063 := z.EncBinary() - _ = yym3063 + if yyq3140[1] { + yy3145 := &x.EvictionTime + yym3146 := z.EncBinary() + _ = yym3146 if false { - } else if z.HasExtensions() && z.EncExt(yy3062) { - } else if yym3063 { - z.EncBinaryMarshal(yy3062) - } else if !yym3063 && z.IsJSONHandle() { - z.EncJSONMarshal(yy3062) + } else if z.HasExtensions() && z.EncExt(yy3145) { + } else if yym3146 { + z.EncBinaryMarshal(yy3145) + } else if !yym3146 && z.IsJSONHandle() { + z.EncJSONMarshal(yy3145) } else { - z.EncFallback(yy3062) + z.EncFallback(yy3145) } } else { r.EncodeNil() } } else { - if yyq3057[1] { + if yyq3140[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("evictionTime")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy3064 := &x.EvictionTime - yym3065 := z.EncBinary() - _ = yym3065 + yy3147 := &x.EvictionTime + yym3148 := z.EncBinary() + _ = yym3148 if false { - } else if z.HasExtensions() && z.EncExt(yy3064) { - } else if yym3065 { - z.EncBinaryMarshal(yy3064) - } else if !yym3065 && z.IsJSONHandle() { - z.EncJSONMarshal(yy3064) + } else if z.HasExtensions() && z.EncExt(yy3147) { + } else if yym3148 { + z.EncBinaryMarshal(yy3147) + } else if !yym3148 && z.IsJSONHandle() { + z.EncJSONMarshal(yy3147) } else { - z.EncFallback(yy3064) + z.EncFallback(yy3147) } } } - if yyr3057 || yy2arr3057 { + if yyr3140 || yy2arr3140 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3057[2] { - yym3067 := z.EncBinary() - _ = yym3067 + if yyq3140[2] { + yym3150 := z.EncBinary() + _ = yym3150 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Reason)) @@ -39271,23 +40351,23 @@ func (x *PreferAvoidPodsEntry) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq3057[2] { + if yyq3140[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("reason")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym3068 := z.EncBinary() - _ = yym3068 + yym3151 := z.EncBinary() + _ = yym3151 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Reason)) } } } - if yyr3057 || yy2arr3057 { + if yyr3140 || yy2arr3140 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3057[3] { - yym3070 := z.EncBinary() - _ = yym3070 + if yyq3140[3] { + yym3153 := z.EncBinary() + _ = yym3153 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Message)) @@ -39296,19 +40376,19 @@ func (x *PreferAvoidPodsEntry) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq3057[3] { + if yyq3140[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("message")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym3071 := z.EncBinary() - _ = yym3071 + yym3154 := z.EncBinary() + _ = yym3154 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Message)) } } } - if yyr3057 || yy2arr3057 { + if yyr3140 || yy2arr3140 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -39321,25 +40401,25 @@ func (x *PreferAvoidPodsEntry) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym3072 := z.DecBinary() - _ = yym3072 + yym3155 := z.DecBinary() + _ = yym3155 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct3073 := r.ContainerType() - if yyct3073 == codecSelferValueTypeMap1234 { - yyl3073 := r.ReadMapStart() - if yyl3073 == 0 { + yyct3156 := r.ContainerType() + if yyct3156 == codecSelferValueTypeMap1234 { + yyl3156 := r.ReadMapStart() + if yyl3156 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl3073, d) + x.codecDecodeSelfFromMap(yyl3156, d) } - } else if yyct3073 == codecSelferValueTypeArray1234 { - yyl3073 := r.ReadArrayStart() - if yyl3073 == 0 { + } else if yyct3156 == codecSelferValueTypeArray1234 { + yyl3156 := r.ReadArrayStart() + if yyl3156 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl3073, d) + x.codecDecodeSelfFromArray(yyl3156, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -39351,12 +40431,12 @@ func (x *PreferAvoidPodsEntry) codecDecodeSelfFromMap(l int, d *codec1978.Decode var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys3074Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3074Slc - var yyhl3074 bool = l >= 0 - for yyj3074 := 0; ; yyj3074++ { - if yyhl3074 { - if yyj3074 >= l { + var yys3157Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys3157Slc + var yyhl3157 bool = l >= 0 + for yyj3157 := 0; ; yyj3157++ { + if yyhl3157 { + if yyj3157 >= l { break } } else { @@ -39365,32 +40445,32 @@ func (x *PreferAvoidPodsEntry) codecDecodeSelfFromMap(l int, d *codec1978.Decode } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3074Slc = r.DecodeBytes(yys3074Slc, true, true) - yys3074 := string(yys3074Slc) + yys3157Slc = r.DecodeBytes(yys3157Slc, true, true) + yys3157 := string(yys3157Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3074 { + switch yys3157 { case "podSignature": if r.TryDecodeAsNil() { x.PodSignature = PodSignature{} } else { - yyv3075 := &x.PodSignature - yyv3075.CodecDecodeSelf(d) + yyv3158 := &x.PodSignature + yyv3158.CodecDecodeSelf(d) } case "evictionTime": if r.TryDecodeAsNil() { x.EvictionTime = pkg2_unversioned.Time{} } else { - yyv3076 := &x.EvictionTime - yym3077 := z.DecBinary() - _ = yym3077 + yyv3159 := &x.EvictionTime + yym3160 := z.DecBinary() + _ = yym3160 if false { - } else if z.HasExtensions() && z.DecExt(yyv3076) { - } else if yym3077 { - z.DecBinaryUnmarshal(yyv3076) - } else if !yym3077 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv3076) + } else if z.HasExtensions() && z.DecExt(yyv3159) { + } else if yym3160 { + z.DecBinaryUnmarshal(yyv3159) + } else if !yym3160 && z.IsJSONHandle() { + z.DecJSONUnmarshal(yyv3159) } else { - z.DecFallback(yyv3076, false) + z.DecFallback(yyv3159, false) } } case "reason": @@ -39406,9 +40486,9 @@ func (x *PreferAvoidPodsEntry) codecDecodeSelfFromMap(l int, d *codec1978.Decode x.Message = string(r.DecodeString()) } default: - z.DecStructFieldNotFound(-1, yys3074) - } // end switch yys3074 - } // end for yyj3074 + z.DecStructFieldNotFound(-1, yys3157) + } // end switch yys3157 + } // end for yyj3157 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -39416,16 +40496,16 @@ func (x *PreferAvoidPodsEntry) codecDecodeSelfFromArray(l int, d *codec1978.Deco var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj3080 int - var yyb3080 bool - var yyhl3080 bool = l >= 0 - yyj3080++ - if yyhl3080 { - yyb3080 = yyj3080 > l + var yyj3163 int + var yyb3163 bool + var yyhl3163 bool = l >= 0 + yyj3163++ + if yyhl3163 { + yyb3163 = yyj3163 > l } else { - yyb3080 = r.CheckBreak() + yyb3163 = r.CheckBreak() } - if yyb3080 { + if yyb3163 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -39433,16 +40513,16 @@ func (x *PreferAvoidPodsEntry) codecDecodeSelfFromArray(l int, d *codec1978.Deco if r.TryDecodeAsNil() { x.PodSignature = PodSignature{} } else { - yyv3081 := &x.PodSignature - yyv3081.CodecDecodeSelf(d) + yyv3164 := &x.PodSignature + yyv3164.CodecDecodeSelf(d) } - yyj3080++ - if yyhl3080 { - yyb3080 = yyj3080 > l + yyj3163++ + if yyhl3163 { + yyb3163 = yyj3163 > l } else { - yyb3080 = r.CheckBreak() + yyb3163 = r.CheckBreak() } - if yyb3080 { + if yyb3163 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -39450,26 +40530,26 @@ func (x *PreferAvoidPodsEntry) codecDecodeSelfFromArray(l int, d *codec1978.Deco if r.TryDecodeAsNil() { x.EvictionTime = pkg2_unversioned.Time{} } else { - yyv3082 := &x.EvictionTime - yym3083 := z.DecBinary() - _ = yym3083 + yyv3165 := &x.EvictionTime + yym3166 := z.DecBinary() + _ = yym3166 if false { - } else if z.HasExtensions() && z.DecExt(yyv3082) { - } else if yym3083 { - z.DecBinaryUnmarshal(yyv3082) - } else if !yym3083 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv3082) + } else if z.HasExtensions() && z.DecExt(yyv3165) { + } else if yym3166 { + z.DecBinaryUnmarshal(yyv3165) + } else if !yym3166 && z.IsJSONHandle() { + z.DecJSONUnmarshal(yyv3165) } else { - z.DecFallback(yyv3082, false) + z.DecFallback(yyv3165, false) } } - yyj3080++ - if yyhl3080 { - yyb3080 = yyj3080 > l + yyj3163++ + if yyhl3163 { + yyb3163 = yyj3163 > l } else { - yyb3080 = r.CheckBreak() + yyb3163 = r.CheckBreak() } - if yyb3080 { + if yyb3163 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -39479,13 +40559,13 @@ func (x *PreferAvoidPodsEntry) codecDecodeSelfFromArray(l int, d *codec1978.Deco } else { x.Reason = string(r.DecodeString()) } - yyj3080++ - if yyhl3080 { - yyb3080 = yyj3080 > l + yyj3163++ + if yyhl3163 { + yyb3163 = yyj3163 > l } else { - yyb3080 = r.CheckBreak() + yyb3163 = r.CheckBreak() } - if yyb3080 { + if yyb3163 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -39496,17 +40576,17 @@ func (x *PreferAvoidPodsEntry) codecDecodeSelfFromArray(l int, d *codec1978.Deco x.Message = string(r.DecodeString()) } for { - yyj3080++ - if yyhl3080 { - yyb3080 = yyj3080 > l + yyj3163++ + if yyhl3163 { + yyb3163 = yyj3163 > l } else { - yyb3080 = r.CheckBreak() + yyb3163 = r.CheckBreak() } - if yyb3080 { + if yyb3163 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj3080-1, "") + z.DecStructFieldNotFound(yyj3163-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -39518,33 +40598,33 @@ func (x *PodSignature) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym3086 := z.EncBinary() - _ = yym3086 + yym3169 := z.EncBinary() + _ = yym3169 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 { + yysep3170 := !z.EncBinary() + yy2arr3170 := z.EncBasicHandle().StructToArray + var yyq3170 [1]bool + _, _, _ = yysep3170, yyq3170, yy2arr3170 + const yyr3170 bool = false + yyq3170[0] = x.PodController != nil + var yynn3170 int + if yyr3170 || yy2arr3170 { r.EncodeArrayStart(1) } else { - yynn3087 = 0 - for _, b := range yyq3087 { + yynn3170 = 0 + for _, b := range yyq3170 { if b { - yynn3087++ + yynn3170++ } } - r.EncodeMapStart(yynn3087) - yynn3087 = 0 + r.EncodeMapStart(yynn3170) + yynn3170 = 0 } - if yyr3087 || yy2arr3087 { + if yyr3170 || yy2arr3170 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3087[0] { + if yyq3170[0] { if x.PodController == nil { r.EncodeNil() } else { @@ -39554,7 +40634,7 @@ func (x *PodSignature) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq3087[0] { + if yyq3170[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("podController")) z.EncSendContainerState(codecSelfer_containerMapValue1234) @@ -39565,7 +40645,7 @@ func (x *PodSignature) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr3087 || yy2arr3087 { + if yyr3170 || yy2arr3170 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -39578,25 +40658,25 @@ func (x *PodSignature) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym3089 := z.DecBinary() - _ = yym3089 + yym3172 := z.DecBinary() + _ = yym3172 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct3090 := r.ContainerType() - if yyct3090 == codecSelferValueTypeMap1234 { - yyl3090 := r.ReadMapStart() - if yyl3090 == 0 { + yyct3173 := r.ContainerType() + if yyct3173 == codecSelferValueTypeMap1234 { + yyl3173 := r.ReadMapStart() + if yyl3173 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl3090, d) + x.codecDecodeSelfFromMap(yyl3173, d) } - } else if yyct3090 == codecSelferValueTypeArray1234 { - yyl3090 := r.ReadArrayStart() - if yyl3090 == 0 { + } else if yyct3173 == codecSelferValueTypeArray1234 { + yyl3173 := r.ReadArrayStart() + if yyl3173 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl3090, d) + x.codecDecodeSelfFromArray(yyl3173, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -39608,12 +40688,12 @@ 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 { + var yys3174Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys3174Slc + var yyhl3174 bool = l >= 0 + for yyj3174 := 0; ; yyj3174++ { + if yyhl3174 { + if yyj3174 >= l { break } } else { @@ -39622,10 +40702,10 @@ func (x *PodSignature) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3091Slc = r.DecodeBytes(yys3091Slc, true, true) - yys3091 := string(yys3091Slc) + yys3174Slc = r.DecodeBytes(yys3174Slc, true, true) + yys3174 := string(yys3174Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3091 { + switch yys3174 { case "podController": if r.TryDecodeAsNil() { if x.PodController != nil { @@ -39638,9 +40718,9 @@ func (x *PodSignature) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { x.PodController.CodecDecodeSelf(d) } default: - z.DecStructFieldNotFound(-1, yys3091) - } // end switch yys3091 - } // end for yyj3091 + z.DecStructFieldNotFound(-1, yys3174) + } // end switch yys3174 + } // end for yyj3174 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -39648,16 +40728,16 @@ 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 + var yyj3176 int + var yyb3176 bool + var yyhl3176 bool = l >= 0 + yyj3176++ + if yyhl3176 { + yyb3176 = yyj3176 > l } else { - yyb3093 = r.CheckBreak() + yyb3176 = r.CheckBreak() } - if yyb3093 { + if yyb3176 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -39673,17 +40753,17 @@ func (x *PodSignature) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { x.PodController.CodecDecodeSelf(d) } for { - yyj3093++ - if yyhl3093 { - yyb3093 = yyj3093 > l + yyj3176++ + if yyhl3176 { + yyb3176 = yyj3176 > l } else { - yyb3093 = r.CheckBreak() + yyb3176 = r.CheckBreak() } - if yyb3093 { + if yyb3176 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj3093-1, "") + z.DecStructFieldNotFound(yyj3176-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -39695,37 +40775,37 @@ func (x *ContainerImage) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym3095 := z.EncBinary() - _ = yym3095 + yym3178 := z.EncBinary() + _ = yym3178 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 { + yysep3179 := !z.EncBinary() + yy2arr3179 := z.EncBasicHandle().StructToArray + var yyq3179 [2]bool + _, _, _ = yysep3179, yyq3179, yy2arr3179 + const yyr3179 bool = false + yyq3179[1] = x.SizeBytes != 0 + var yynn3179 int + if yyr3179 || yy2arr3179 { r.EncodeArrayStart(2) } else { - yynn3096 = 1 - for _, b := range yyq3096 { + yynn3179 = 1 + for _, b := range yyq3179 { if b { - yynn3096++ + yynn3179++ } } - r.EncodeMapStart(yynn3096) - yynn3096 = 0 + r.EncodeMapStart(yynn3179) + yynn3179 = 0 } - if yyr3096 || yy2arr3096 { + if yyr3179 || yy2arr3179 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.Names == nil { r.EncodeNil() } else { - yym3098 := z.EncBinary() - _ = yym3098 + yym3181 := z.EncBinary() + _ = yym3181 if false { } else { z.F.EncSliceStringV(x.Names, false, e) @@ -39738,19 +40818,19 @@ func (x *ContainerImage) CodecEncodeSelf(e *codec1978.Encoder) { if x.Names == nil { r.EncodeNil() } else { - yym3099 := z.EncBinary() - _ = yym3099 + yym3182 := z.EncBinary() + _ = yym3182 if false { } else { z.F.EncSliceStringV(x.Names, false, e) } } } - if yyr3096 || yy2arr3096 { + if yyr3179 || yy2arr3179 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3096[1] { - yym3101 := z.EncBinary() - _ = yym3101 + if yyq3179[1] { + yym3184 := z.EncBinary() + _ = yym3184 if false { } else { r.EncodeInt(int64(x.SizeBytes)) @@ -39759,19 +40839,19 @@ func (x *ContainerImage) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeInt(0) } } else { - if yyq3096[1] { + if yyq3179[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("sizeBytes")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym3102 := z.EncBinary() - _ = yym3102 + yym3185 := z.EncBinary() + _ = yym3185 if false { } else { r.EncodeInt(int64(x.SizeBytes)) } } } - if yyr3096 || yy2arr3096 { + if yyr3179 || yy2arr3179 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -39784,25 +40864,25 @@ func (x *ContainerImage) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym3103 := z.DecBinary() - _ = yym3103 + yym3186 := z.DecBinary() + _ = yym3186 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct3104 := r.ContainerType() - if yyct3104 == codecSelferValueTypeMap1234 { - yyl3104 := r.ReadMapStart() - if yyl3104 == 0 { + yyct3187 := r.ContainerType() + if yyct3187 == codecSelferValueTypeMap1234 { + yyl3187 := r.ReadMapStart() + if yyl3187 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl3104, d) + x.codecDecodeSelfFromMap(yyl3187, d) } - } else if yyct3104 == codecSelferValueTypeArray1234 { - yyl3104 := r.ReadArrayStart() - if yyl3104 == 0 { + } else if yyct3187 == codecSelferValueTypeArray1234 { + yyl3187 := r.ReadArrayStart() + if yyl3187 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl3104, d) + x.codecDecodeSelfFromArray(yyl3187, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -39814,12 +40894,12 @@ 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 { + var yys3188Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys3188Slc + var yyhl3188 bool = l >= 0 + for yyj3188 := 0; ; yyj3188++ { + if yyhl3188 { + if yyj3188 >= l { break } } else { @@ -39828,20 +40908,20 @@ func (x *ContainerImage) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3105Slc = r.DecodeBytes(yys3105Slc, true, true) - yys3105 := string(yys3105Slc) + yys3188Slc = r.DecodeBytes(yys3188Slc, true, true) + yys3188 := string(yys3188Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3105 { + switch yys3188 { case "names": if r.TryDecodeAsNil() { x.Names = nil } else { - yyv3106 := &x.Names - yym3107 := z.DecBinary() - _ = yym3107 + yyv3189 := &x.Names + yym3190 := z.DecBinary() + _ = yym3190 if false { } else { - z.F.DecSliceStringX(yyv3106, false, d) + z.F.DecSliceStringX(yyv3189, false, d) } } case "sizeBytes": @@ -39851,9 +40931,9 @@ func (x *ContainerImage) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { x.SizeBytes = int64(r.DecodeInt(64)) } default: - z.DecStructFieldNotFound(-1, yys3105) - } // end switch yys3105 - } // end for yyj3105 + z.DecStructFieldNotFound(-1, yys3188) + } // end switch yys3188 + } // end for yyj3188 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -39861,16 +40941,16 @@ 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 + var yyj3192 int + var yyb3192 bool + var yyhl3192 bool = l >= 0 + yyj3192++ + if yyhl3192 { + yyb3192 = yyj3192 > l } else { - yyb3109 = r.CheckBreak() + yyb3192 = r.CheckBreak() } - if yyb3109 { + if yyb3192 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -39878,21 +40958,21 @@ func (x *ContainerImage) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.Names = nil } else { - yyv3110 := &x.Names - yym3111 := z.DecBinary() - _ = yym3111 + yyv3193 := &x.Names + yym3194 := z.DecBinary() + _ = yym3194 if false { } else { - z.F.DecSliceStringX(yyv3110, false, d) + z.F.DecSliceStringX(yyv3193, false, d) } } - yyj3109++ - if yyhl3109 { - yyb3109 = yyj3109 > l + yyj3192++ + if yyhl3192 { + yyb3192 = yyj3192 > l } else { - yyb3109 = r.CheckBreak() + yyb3192 = r.CheckBreak() } - if yyb3109 { + if yyb3192 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -39903,17 +40983,17 @@ func (x *ContainerImage) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { x.SizeBytes = int64(r.DecodeInt(64)) } for { - yyj3109++ - if yyhl3109 { - yyb3109 = yyj3109 > l + yyj3192++ + if yyhl3192 { + yyb3192 = yyj3192 > l } else { - yyb3109 = r.CheckBreak() + yyb3192 = r.CheckBreak() } - if yyb3109 { + if yyb3192 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj3109-1, "") + z.DecStructFieldNotFound(yyj3192-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -39922,8 +41002,8 @@ func (x NodePhase) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r - yym3113 := z.EncBinary() - _ = yym3113 + yym3196 := z.EncBinary() + _ = yym3196 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { @@ -39935,8 +41015,8 @@ func (x *NodePhase) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym3114 := z.DecBinary() - _ = yym3114 + yym3197 := z.DecBinary() + _ = yym3197 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { @@ -39948,8 +41028,8 @@ func (x NodeConditionType) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r - yym3115 := z.EncBinary() - _ = yym3115 + yym3198 := z.EncBinary() + _ = yym3198 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { @@ -39961,8 +41041,8 @@ func (x *NodeConditionType) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym3116 := z.DecBinary() - _ = yym3116 + yym3199 := z.DecBinary() + _ = yym3199 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { @@ -39977,34 +41057,34 @@ func (x *NodeCondition) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym3117 := z.EncBinary() - _ = yym3117 + yym3200 := z.EncBinary() + _ = yym3200 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 { + yysep3201 := !z.EncBinary() + yy2arr3201 := z.EncBasicHandle().StructToArray + var yyq3201 [6]bool + _, _, _ = yysep3201, yyq3201, yy2arr3201 + const yyr3201 bool = false + yyq3201[2] = true + yyq3201[3] = true + yyq3201[4] = x.Reason != "" + yyq3201[5] = x.Message != "" + var yynn3201 int + if yyr3201 || yy2arr3201 { r.EncodeArrayStart(6) } else { - yynn3118 = 2 - for _, b := range yyq3118 { + yynn3201 = 2 + for _, b := range yyq3201 { if b { - yynn3118++ + yynn3201++ } } - r.EncodeMapStart(yynn3118) - yynn3118 = 0 + r.EncodeMapStart(yynn3201) + yynn3201 = 0 } - if yyr3118 || yy2arr3118 { + if yyr3201 || yy2arr3201 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) x.Type.CodecEncodeSelf(e) } else { @@ -40013,7 +41093,7 @@ func (x *NodeCondition) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapValue1234) x.Type.CodecEncodeSelf(e) } - if yyr3118 || yy2arr3118 { + if yyr3201 || yy2arr3201 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) x.Status.CodecEncodeSelf(e) } else { @@ -40022,85 +41102,85 @@ func (x *NodeCondition) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapValue1234) x.Status.CodecEncodeSelf(e) } - if yyr3118 || yy2arr3118 { + if yyr3201 || yy2arr3201 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3118[2] { - yy3122 := &x.LastHeartbeatTime - yym3123 := z.EncBinary() - _ = yym3123 + if yyq3201[2] { + yy3205 := &x.LastHeartbeatTime + yym3206 := z.EncBinary() + _ = yym3206 if false { - } else if z.HasExtensions() && z.EncExt(yy3122) { - } else if yym3123 { - z.EncBinaryMarshal(yy3122) - } else if !yym3123 && z.IsJSONHandle() { - z.EncJSONMarshal(yy3122) + } else if z.HasExtensions() && z.EncExt(yy3205) { + } else if yym3206 { + z.EncBinaryMarshal(yy3205) + } else if !yym3206 && z.IsJSONHandle() { + z.EncJSONMarshal(yy3205) } else { - z.EncFallback(yy3122) + z.EncFallback(yy3205) } } else { r.EncodeNil() } } else { - if yyq3118[2] { + if yyq3201[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("lastHeartbeatTime")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy3124 := &x.LastHeartbeatTime - yym3125 := z.EncBinary() - _ = yym3125 + yy3207 := &x.LastHeartbeatTime + yym3208 := z.EncBinary() + _ = yym3208 if false { - } else if z.HasExtensions() && z.EncExt(yy3124) { - } else if yym3125 { - z.EncBinaryMarshal(yy3124) - } else if !yym3125 && z.IsJSONHandle() { - z.EncJSONMarshal(yy3124) + } else if z.HasExtensions() && z.EncExt(yy3207) { + } else if yym3208 { + z.EncBinaryMarshal(yy3207) + } else if !yym3208 && z.IsJSONHandle() { + z.EncJSONMarshal(yy3207) } else { - z.EncFallback(yy3124) + z.EncFallback(yy3207) } } } - if yyr3118 || yy2arr3118 { + if yyr3201 || yy2arr3201 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3118[3] { - yy3127 := &x.LastTransitionTime - yym3128 := z.EncBinary() - _ = yym3128 + if yyq3201[3] { + yy3210 := &x.LastTransitionTime + yym3211 := z.EncBinary() + _ = yym3211 if false { - } else if z.HasExtensions() && z.EncExt(yy3127) { - } else if yym3128 { - z.EncBinaryMarshal(yy3127) - } else if !yym3128 && z.IsJSONHandle() { - z.EncJSONMarshal(yy3127) + } else if z.HasExtensions() && z.EncExt(yy3210) { + } else if yym3211 { + z.EncBinaryMarshal(yy3210) + } else if !yym3211 && z.IsJSONHandle() { + z.EncJSONMarshal(yy3210) } else { - z.EncFallback(yy3127) + z.EncFallback(yy3210) } } else { r.EncodeNil() } } else { - if yyq3118[3] { + if yyq3201[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("lastTransitionTime")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy3129 := &x.LastTransitionTime - yym3130 := z.EncBinary() - _ = yym3130 + yy3212 := &x.LastTransitionTime + yym3213 := z.EncBinary() + _ = yym3213 if false { - } else if z.HasExtensions() && z.EncExt(yy3129) { - } else if yym3130 { - z.EncBinaryMarshal(yy3129) - } else if !yym3130 && z.IsJSONHandle() { - z.EncJSONMarshal(yy3129) + } else if z.HasExtensions() && z.EncExt(yy3212) { + } else if yym3213 { + z.EncBinaryMarshal(yy3212) + } else if !yym3213 && z.IsJSONHandle() { + z.EncJSONMarshal(yy3212) } else { - z.EncFallback(yy3129) + z.EncFallback(yy3212) } } } - if yyr3118 || yy2arr3118 { + if yyr3201 || yy2arr3201 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3118[4] { - yym3132 := z.EncBinary() - _ = yym3132 + if yyq3201[4] { + yym3215 := z.EncBinary() + _ = yym3215 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Reason)) @@ -40109,23 +41189,23 @@ func (x *NodeCondition) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq3118[4] { + if yyq3201[4] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("reason")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym3133 := z.EncBinary() - _ = yym3133 + yym3216 := z.EncBinary() + _ = yym3216 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Reason)) } } } - if yyr3118 || yy2arr3118 { + if yyr3201 || yy2arr3201 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3118[5] { - yym3135 := z.EncBinary() - _ = yym3135 + if yyq3201[5] { + yym3218 := z.EncBinary() + _ = yym3218 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Message)) @@ -40134,19 +41214,19 @@ func (x *NodeCondition) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq3118[5] { + if yyq3201[5] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("message")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym3136 := z.EncBinary() - _ = yym3136 + yym3219 := z.EncBinary() + _ = yym3219 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Message)) } } } - if yyr3118 || yy2arr3118 { + if yyr3201 || yy2arr3201 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -40159,25 +41239,25 @@ func (x *NodeCondition) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym3137 := z.DecBinary() - _ = yym3137 + yym3220 := z.DecBinary() + _ = yym3220 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct3138 := r.ContainerType() - if yyct3138 == codecSelferValueTypeMap1234 { - yyl3138 := r.ReadMapStart() - if yyl3138 == 0 { + yyct3221 := r.ContainerType() + if yyct3221 == codecSelferValueTypeMap1234 { + yyl3221 := r.ReadMapStart() + if yyl3221 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl3138, d) + x.codecDecodeSelfFromMap(yyl3221, d) } - } else if yyct3138 == codecSelferValueTypeArray1234 { - yyl3138 := r.ReadArrayStart() - if yyl3138 == 0 { + } else if yyct3221 == codecSelferValueTypeArray1234 { + yyl3221 := r.ReadArrayStart() + if yyl3221 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl3138, d) + x.codecDecodeSelfFromArray(yyl3221, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -40189,12 +41269,12 @@ 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 { + var yys3222Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys3222Slc + var yyhl3222 bool = l >= 0 + for yyj3222 := 0; ; yyj3222++ { + if yyhl3222 { + if yyj3222 >= l { break } } else { @@ -40203,10 +41283,10 @@ func (x *NodeCondition) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3139Slc = r.DecodeBytes(yys3139Slc, true, true) - yys3139 := string(yys3139Slc) + yys3222Slc = r.DecodeBytes(yys3222Slc, true, true) + yys3222 := string(yys3222Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3139 { + switch yys3222 { case "type": if r.TryDecodeAsNil() { x.Type = "" @@ -40223,34 +41303,34 @@ func (x *NodeCondition) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.LastHeartbeatTime = pkg2_unversioned.Time{} } else { - yyv3142 := &x.LastHeartbeatTime - yym3143 := z.DecBinary() - _ = yym3143 + yyv3225 := &x.LastHeartbeatTime + yym3226 := z.DecBinary() + _ = yym3226 if false { - } else if z.HasExtensions() && z.DecExt(yyv3142) { - } else if yym3143 { - z.DecBinaryUnmarshal(yyv3142) - } else if !yym3143 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv3142) + } else if z.HasExtensions() && z.DecExt(yyv3225) { + } else if yym3226 { + z.DecBinaryUnmarshal(yyv3225) + } else if !yym3226 && z.IsJSONHandle() { + z.DecJSONUnmarshal(yyv3225) } else { - z.DecFallback(yyv3142, false) + z.DecFallback(yyv3225, false) } } case "lastTransitionTime": if r.TryDecodeAsNil() { x.LastTransitionTime = pkg2_unversioned.Time{} } else { - yyv3144 := &x.LastTransitionTime - yym3145 := z.DecBinary() - _ = yym3145 + yyv3227 := &x.LastTransitionTime + yym3228 := z.DecBinary() + _ = yym3228 if false { - } else if z.HasExtensions() && z.DecExt(yyv3144) { - } else if yym3145 { - z.DecBinaryUnmarshal(yyv3144) - } else if !yym3145 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv3144) + } else if z.HasExtensions() && z.DecExt(yyv3227) { + } else if yym3228 { + z.DecBinaryUnmarshal(yyv3227) + } else if !yym3228 && z.IsJSONHandle() { + z.DecJSONUnmarshal(yyv3227) } else { - z.DecFallback(yyv3144, false) + z.DecFallback(yyv3227, false) } } case "reason": @@ -40266,9 +41346,9 @@ func (x *NodeCondition) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { x.Message = string(r.DecodeString()) } default: - z.DecStructFieldNotFound(-1, yys3139) - } // end switch yys3139 - } // end for yyj3139 + z.DecStructFieldNotFound(-1, yys3222) + } // end switch yys3222 + } // end for yyj3222 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -40276,16 +41356,16 @@ 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 + var yyj3231 int + var yyb3231 bool + var yyhl3231 bool = l >= 0 + yyj3231++ + if yyhl3231 { + yyb3231 = yyj3231 > l } else { - yyb3148 = r.CheckBreak() + yyb3231 = r.CheckBreak() } - if yyb3148 { + if yyb3231 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -40295,13 +41375,13 @@ func (x *NodeCondition) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.Type = NodeConditionType(r.DecodeString()) } - yyj3148++ - if yyhl3148 { - yyb3148 = yyj3148 > l + yyj3231++ + if yyhl3231 { + yyb3231 = yyj3231 > l } else { - yyb3148 = r.CheckBreak() + yyb3231 = r.CheckBreak() } - if yyb3148 { + if yyb3231 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -40311,13 +41391,13 @@ func (x *NodeCondition) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.Status = ConditionStatus(r.DecodeString()) } - yyj3148++ - if yyhl3148 { - yyb3148 = yyj3148 > l + yyj3231++ + if yyhl3231 { + yyb3231 = yyj3231 > l } else { - yyb3148 = r.CheckBreak() + yyb3231 = r.CheckBreak() } - if yyb3148 { + if yyb3231 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -40325,26 +41405,26 @@ func (x *NodeCondition) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.LastHeartbeatTime = pkg2_unversioned.Time{} } else { - yyv3151 := &x.LastHeartbeatTime - yym3152 := z.DecBinary() - _ = yym3152 + yyv3234 := &x.LastHeartbeatTime + yym3235 := z.DecBinary() + _ = yym3235 if false { - } else if z.HasExtensions() && z.DecExt(yyv3151) { - } else if yym3152 { - z.DecBinaryUnmarshal(yyv3151) - } else if !yym3152 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv3151) + } else if z.HasExtensions() && z.DecExt(yyv3234) { + } else if yym3235 { + z.DecBinaryUnmarshal(yyv3234) + } else if !yym3235 && z.IsJSONHandle() { + z.DecJSONUnmarshal(yyv3234) } else { - z.DecFallback(yyv3151, false) + z.DecFallback(yyv3234, false) } } - yyj3148++ - if yyhl3148 { - yyb3148 = yyj3148 > l + yyj3231++ + if yyhl3231 { + yyb3231 = yyj3231 > l } else { - yyb3148 = r.CheckBreak() + yyb3231 = r.CheckBreak() } - if yyb3148 { + if yyb3231 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -40352,26 +41432,26 @@ func (x *NodeCondition) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.LastTransitionTime = pkg2_unversioned.Time{} } else { - yyv3153 := &x.LastTransitionTime - yym3154 := z.DecBinary() - _ = yym3154 + yyv3236 := &x.LastTransitionTime + yym3237 := z.DecBinary() + _ = yym3237 if false { - } else if z.HasExtensions() && z.DecExt(yyv3153) { - } else if yym3154 { - z.DecBinaryUnmarshal(yyv3153) - } else if !yym3154 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv3153) + } else if z.HasExtensions() && z.DecExt(yyv3236) { + } else if yym3237 { + z.DecBinaryUnmarshal(yyv3236) + } else if !yym3237 && z.IsJSONHandle() { + z.DecJSONUnmarshal(yyv3236) } else { - z.DecFallback(yyv3153, false) + z.DecFallback(yyv3236, false) } } - yyj3148++ - if yyhl3148 { - yyb3148 = yyj3148 > l + yyj3231++ + if yyhl3231 { + yyb3231 = yyj3231 > l } else { - yyb3148 = r.CheckBreak() + yyb3231 = r.CheckBreak() } - if yyb3148 { + if yyb3231 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -40381,13 +41461,13 @@ func (x *NodeCondition) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.Reason = string(r.DecodeString()) } - yyj3148++ - if yyhl3148 { - yyb3148 = yyj3148 > l + yyj3231++ + if yyhl3231 { + yyb3231 = yyj3231 > l } else { - yyb3148 = r.CheckBreak() + yyb3231 = r.CheckBreak() } - if yyb3148 { + if yyb3231 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -40398,17 +41478,17 @@ func (x *NodeCondition) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { x.Message = string(r.DecodeString()) } for { - yyj3148++ - if yyhl3148 { - yyb3148 = yyj3148 > l + yyj3231++ + if yyhl3231 { + yyb3231 = yyj3231 > l } else { - yyb3148 = r.CheckBreak() + yyb3231 = r.CheckBreak() } - if yyb3148 { + if yyb3231 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj3148-1, "") + z.DecStructFieldNotFound(yyj3231-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -40417,8 +41497,8 @@ func (x NodeAddressType) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r - yym3157 := z.EncBinary() - _ = yym3157 + yym3240 := z.EncBinary() + _ = yym3240 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { @@ -40430,8 +41510,8 @@ func (x *NodeAddressType) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym3158 := z.DecBinary() - _ = yym3158 + yym3241 := z.DecBinary() + _ = yym3241 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { @@ -40446,30 +41526,30 @@ func (x *NodeAddress) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym3159 := z.EncBinary() - _ = yym3159 + yym3242 := z.EncBinary() + _ = yym3242 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep3160 := !z.EncBinary() - yy2arr3160 := z.EncBasicHandle().StructToArray - var yyq3160 [2]bool - _, _, _ = yysep3160, yyq3160, yy2arr3160 - const yyr3160 bool = false - var yynn3160 int - if yyr3160 || yy2arr3160 { + yysep3243 := !z.EncBinary() + yy2arr3243 := z.EncBasicHandle().StructToArray + var yyq3243 [2]bool + _, _, _ = yysep3243, yyq3243, yy2arr3243 + const yyr3243 bool = false + var yynn3243 int + if yyr3243 || yy2arr3243 { r.EncodeArrayStart(2) } else { - yynn3160 = 2 - for _, b := range yyq3160 { + yynn3243 = 2 + for _, b := range yyq3243 { if b { - yynn3160++ + yynn3243++ } } - r.EncodeMapStart(yynn3160) - yynn3160 = 0 + r.EncodeMapStart(yynn3243) + yynn3243 = 0 } - if yyr3160 || yy2arr3160 { + if yyr3243 || yy2arr3243 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) x.Type.CodecEncodeSelf(e) } else { @@ -40478,10 +41558,10 @@ func (x *NodeAddress) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapValue1234) x.Type.CodecEncodeSelf(e) } - if yyr3160 || yy2arr3160 { + if yyr3243 || yy2arr3243 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym3163 := z.EncBinary() - _ = yym3163 + yym3246 := z.EncBinary() + _ = yym3246 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Address)) @@ -40490,14 +41570,14 @@ func (x *NodeAddress) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("address")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym3164 := z.EncBinary() - _ = yym3164 + yym3247 := z.EncBinary() + _ = yym3247 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Address)) } } - if yyr3160 || yy2arr3160 { + if yyr3243 || yy2arr3243 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -40510,25 +41590,25 @@ func (x *NodeAddress) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym3165 := z.DecBinary() - _ = yym3165 + yym3248 := z.DecBinary() + _ = yym3248 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct3166 := r.ContainerType() - if yyct3166 == codecSelferValueTypeMap1234 { - yyl3166 := r.ReadMapStart() - if yyl3166 == 0 { + yyct3249 := r.ContainerType() + if yyct3249 == codecSelferValueTypeMap1234 { + yyl3249 := r.ReadMapStart() + if yyl3249 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl3166, d) + x.codecDecodeSelfFromMap(yyl3249, d) } - } else if yyct3166 == codecSelferValueTypeArray1234 { - yyl3166 := r.ReadArrayStart() - if yyl3166 == 0 { + } else if yyct3249 == codecSelferValueTypeArray1234 { + yyl3249 := r.ReadArrayStart() + if yyl3249 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl3166, d) + x.codecDecodeSelfFromArray(yyl3249, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -40540,12 +41620,12 @@ func (x *NodeAddress) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys3167Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3167Slc - var yyhl3167 bool = l >= 0 - for yyj3167 := 0; ; yyj3167++ { - if yyhl3167 { - if yyj3167 >= l { + var yys3250Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys3250Slc + var yyhl3250 bool = l >= 0 + for yyj3250 := 0; ; yyj3250++ { + if yyhl3250 { + if yyj3250 >= l { break } } else { @@ -40554,10 +41634,10 @@ func (x *NodeAddress) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3167Slc = r.DecodeBytes(yys3167Slc, true, true) - yys3167 := string(yys3167Slc) + yys3250Slc = r.DecodeBytes(yys3250Slc, true, true) + yys3250 := string(yys3250Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3167 { + switch yys3250 { case "type": if r.TryDecodeAsNil() { x.Type = "" @@ -40571,9 +41651,9 @@ func (x *NodeAddress) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { x.Address = string(r.DecodeString()) } default: - z.DecStructFieldNotFound(-1, yys3167) - } // end switch yys3167 - } // end for yyj3167 + z.DecStructFieldNotFound(-1, yys3250) + } // end switch yys3250 + } // end for yyj3250 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -40581,16 +41661,16 @@ func (x *NodeAddress) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj3170 int - var yyb3170 bool - var yyhl3170 bool = l >= 0 - yyj3170++ - if yyhl3170 { - yyb3170 = yyj3170 > l + var yyj3253 int + var yyb3253 bool + var yyhl3253 bool = l >= 0 + yyj3253++ + if yyhl3253 { + yyb3253 = yyj3253 > l } else { - yyb3170 = r.CheckBreak() + yyb3253 = r.CheckBreak() } - if yyb3170 { + if yyb3253 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -40600,13 +41680,13 @@ func (x *NodeAddress) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.Type = NodeAddressType(r.DecodeString()) } - yyj3170++ - if yyhl3170 { - yyb3170 = yyj3170 > l + yyj3253++ + if yyhl3253 { + yyb3253 = yyj3253 > l } else { - yyb3170 = r.CheckBreak() + yyb3253 = r.CheckBreak() } - if yyb3170 { + if yyb3253 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -40617,17 +41697,17 @@ func (x *NodeAddress) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { x.Address = string(r.DecodeString()) } for { - yyj3170++ - if yyhl3170 { - yyb3170 = yyj3170 > l + yyj3253++ + if yyhl3253 { + yyb3253 = yyj3253 > l } else { - yyb3170 = r.CheckBreak() + yyb3253 = r.CheckBreak() } - if yyb3170 { + if yyb3253 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj3170-1, "") + z.DecStructFieldNotFound(yyj3253-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -40636,8 +41716,8 @@ func (x ResourceName) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r - yym3173 := z.EncBinary() - _ = yym3173 + yym3256 := z.EncBinary() + _ = yym3256 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { @@ -40649,8 +41729,8 @@ func (x *ResourceName) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym3174 := z.DecBinary() - _ = yym3174 + yym3257 := z.DecBinary() + _ = yym3257 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { @@ -40665,8 +41745,8 @@ func (x ResourceList) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym3175 := z.EncBinary() - _ = yym3175 + yym3258 := z.EncBinary() + _ = yym3258 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { @@ -40679,8 +41759,8 @@ func (x *ResourceList) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym3176 := z.DecBinary() - _ = yym3176 + yym3259 := z.DecBinary() + _ = yym3259 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { @@ -40695,39 +41775,39 @@ func (x *Node) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym3177 := z.EncBinary() - _ = yym3177 + yym3260 := z.EncBinary() + _ = yym3260 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - 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 { + yysep3261 := !z.EncBinary() + yy2arr3261 := z.EncBasicHandle().StructToArray + var yyq3261 [5]bool + _, _, _ = yysep3261, yyq3261, yy2arr3261 + const yyr3261 bool = false + yyq3261[0] = x.Kind != "" + yyq3261[1] = x.APIVersion != "" + yyq3261[2] = true + yyq3261[3] = true + yyq3261[4] = true + var yynn3261 int + if yyr3261 || yy2arr3261 { r.EncodeArrayStart(5) } else { - yynn3178 = 0 - for _, b := range yyq3178 { + yynn3261 = 0 + for _, b := range yyq3261 { if b { - yynn3178++ + yynn3261++ } } - r.EncodeMapStart(yynn3178) - yynn3178 = 0 + r.EncodeMapStart(yynn3261) + yynn3261 = 0 } - if yyr3178 || yy2arr3178 { + if yyr3261 || yy2arr3261 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3178[0] { - yym3180 := z.EncBinary() - _ = yym3180 + if yyq3261[0] { + yym3263 := z.EncBinary() + _ = yym3263 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) @@ -40736,23 +41816,23 @@ func (x *Node) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq3178[0] { + if yyq3261[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym3181 := z.EncBinary() - _ = yym3181 + yym3264 := z.EncBinary() + _ = yym3264 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } - if yyr3178 || yy2arr3178 { + if yyr3261 || yy2arr3261 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3178[1] { - yym3183 := z.EncBinary() - _ = yym3183 + if yyq3261[1] { + yym3266 := z.EncBinary() + _ = yym3266 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) @@ -40761,70 +41841,70 @@ func (x *Node) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq3178[1] { + if yyq3261[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym3184 := z.EncBinary() - _ = yym3184 + yym3267 := z.EncBinary() + _ = yym3267 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } - if yyr3178 || yy2arr3178 { + if yyr3261 || yy2arr3261 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3178[2] { - yy3186 := &x.ObjectMeta - yy3186.CodecEncodeSelf(e) + if yyq3261[2] { + yy3269 := &x.ObjectMeta + yy3269.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { - if yyq3178[2] { + if yyq3261[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy3187 := &x.ObjectMeta - yy3187.CodecEncodeSelf(e) + yy3270 := &x.ObjectMeta + yy3270.CodecEncodeSelf(e) } } - if yyr3178 || yy2arr3178 { + if yyr3261 || yy2arr3261 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3178[3] { - yy3189 := &x.Spec - yy3189.CodecEncodeSelf(e) + if yyq3261[3] { + yy3272 := &x.Spec + yy3272.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { - if yyq3178[3] { + if yyq3261[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("spec")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy3190 := &x.Spec - yy3190.CodecEncodeSelf(e) + yy3273 := &x.Spec + yy3273.CodecEncodeSelf(e) } } - if yyr3178 || yy2arr3178 { + if yyr3261 || yy2arr3261 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3178[4] { - yy3192 := &x.Status - yy3192.CodecEncodeSelf(e) + if yyq3261[4] { + yy3275 := &x.Status + yy3275.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { - if yyq3178[4] { + if yyq3261[4] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("status")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy3193 := &x.Status - yy3193.CodecEncodeSelf(e) + yy3276 := &x.Status + yy3276.CodecEncodeSelf(e) } } - if yyr3178 || yy2arr3178 { + if yyr3261 || yy2arr3261 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -40837,25 +41917,25 @@ func (x *Node) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym3194 := z.DecBinary() - _ = yym3194 + yym3277 := z.DecBinary() + _ = yym3277 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct3195 := r.ContainerType() - if yyct3195 == codecSelferValueTypeMap1234 { - yyl3195 := r.ReadMapStart() - if yyl3195 == 0 { + yyct3278 := r.ContainerType() + if yyct3278 == codecSelferValueTypeMap1234 { + yyl3278 := r.ReadMapStart() + if yyl3278 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl3195, d) + x.codecDecodeSelfFromMap(yyl3278, d) } - } else if yyct3195 == codecSelferValueTypeArray1234 { - yyl3195 := r.ReadArrayStart() - if yyl3195 == 0 { + } else if yyct3278 == codecSelferValueTypeArray1234 { + yyl3278 := r.ReadArrayStart() + if yyl3278 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl3195, d) + x.codecDecodeSelfFromArray(yyl3278, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -40867,12 +41947,12 @@ func (x *Node) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys3196Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3196Slc - var yyhl3196 bool = l >= 0 - for yyj3196 := 0; ; yyj3196++ { - if yyhl3196 { - if yyj3196 >= l { + var yys3279Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys3279Slc + var yyhl3279 bool = l >= 0 + for yyj3279 := 0; ; yyj3279++ { + if yyhl3279 { + if yyj3279 >= l { break } } else { @@ -40881,10 +41961,10 @@ func (x *Node) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3196Slc = r.DecodeBytes(yys3196Slc, true, true) - yys3196 := string(yys3196Slc) + yys3279Slc = r.DecodeBytes(yys3279Slc, true, true) + yys3279 := string(yys3279Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3196 { + switch yys3279 { case "kind": if r.TryDecodeAsNil() { x.Kind = "" @@ -40901,27 +41981,27 @@ func (x *Node) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.ObjectMeta = ObjectMeta{} } else { - yyv3199 := &x.ObjectMeta - yyv3199.CodecDecodeSelf(d) + yyv3282 := &x.ObjectMeta + yyv3282.CodecDecodeSelf(d) } case "spec": if r.TryDecodeAsNil() { x.Spec = NodeSpec{} } else { - yyv3200 := &x.Spec - yyv3200.CodecDecodeSelf(d) + yyv3283 := &x.Spec + yyv3283.CodecDecodeSelf(d) } case "status": if r.TryDecodeAsNil() { x.Status = NodeStatus{} } else { - yyv3201 := &x.Status - yyv3201.CodecDecodeSelf(d) + yyv3284 := &x.Status + yyv3284.CodecDecodeSelf(d) } default: - z.DecStructFieldNotFound(-1, yys3196) - } // end switch yys3196 - } // end for yyj3196 + z.DecStructFieldNotFound(-1, yys3279) + } // end switch yys3279 + } // end for yyj3279 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -40929,16 +42009,16 @@ func (x *Node) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj3202 int - var yyb3202 bool - var yyhl3202 bool = l >= 0 - yyj3202++ - if yyhl3202 { - yyb3202 = yyj3202 > l + var yyj3285 int + var yyb3285 bool + var yyhl3285 bool = l >= 0 + yyj3285++ + if yyhl3285 { + yyb3285 = yyj3285 > l } else { - yyb3202 = r.CheckBreak() + yyb3285 = r.CheckBreak() } - if yyb3202 { + if yyb3285 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -40948,13 +42028,13 @@ func (x *Node) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.Kind = string(r.DecodeString()) } - yyj3202++ - if yyhl3202 { - yyb3202 = yyj3202 > l + yyj3285++ + if yyhl3285 { + yyb3285 = yyj3285 > l } else { - yyb3202 = r.CheckBreak() + yyb3285 = r.CheckBreak() } - if yyb3202 { + if yyb3285 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -40964,13 +42044,13 @@ func (x *Node) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.APIVersion = string(r.DecodeString()) } - yyj3202++ - if yyhl3202 { - yyb3202 = yyj3202 > l + yyj3285++ + if yyhl3285 { + yyb3285 = yyj3285 > l } else { - yyb3202 = r.CheckBreak() + yyb3285 = r.CheckBreak() } - if yyb3202 { + if yyb3285 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -40978,16 +42058,16 @@ func (x *Node) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.ObjectMeta = ObjectMeta{} } else { - yyv3205 := &x.ObjectMeta - yyv3205.CodecDecodeSelf(d) + yyv3288 := &x.ObjectMeta + yyv3288.CodecDecodeSelf(d) } - yyj3202++ - if yyhl3202 { - yyb3202 = yyj3202 > l + yyj3285++ + if yyhl3285 { + yyb3285 = yyj3285 > l } else { - yyb3202 = r.CheckBreak() + yyb3285 = r.CheckBreak() } - if yyb3202 { + if yyb3285 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -40995,16 +42075,16 @@ func (x *Node) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.Spec = NodeSpec{} } else { - yyv3206 := &x.Spec - yyv3206.CodecDecodeSelf(d) + yyv3289 := &x.Spec + yyv3289.CodecDecodeSelf(d) } - yyj3202++ - if yyhl3202 { - yyb3202 = yyj3202 > l + yyj3285++ + if yyhl3285 { + yyb3285 = yyj3285 > l } else { - yyb3202 = r.CheckBreak() + yyb3285 = r.CheckBreak() } - if yyb3202 { + if yyb3285 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -41012,21 +42092,21 @@ func (x *Node) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.Status = NodeStatus{} } else { - yyv3207 := &x.Status - yyv3207.CodecDecodeSelf(d) + yyv3290 := &x.Status + yyv3290.CodecDecodeSelf(d) } for { - yyj3202++ - if yyhl3202 { - yyb3202 = yyj3202 > l + yyj3285++ + if yyhl3285 { + yyb3285 = yyj3285 > l } else { - yyb3202 = r.CheckBreak() + yyb3285 = r.CheckBreak() } - if yyb3202 { + if yyb3285 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj3202-1, "") + z.DecStructFieldNotFound(yyj3285-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -41038,37 +42118,37 @@ func (x *NodeList) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym3208 := z.EncBinary() - _ = yym3208 + yym3291 := z.EncBinary() + _ = yym3291 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - 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 { + yysep3292 := !z.EncBinary() + yy2arr3292 := z.EncBasicHandle().StructToArray + var yyq3292 [4]bool + _, _, _ = yysep3292, yyq3292, yy2arr3292 + const yyr3292 bool = false + yyq3292[0] = x.Kind != "" + yyq3292[1] = x.APIVersion != "" + yyq3292[2] = true + var yynn3292 int + if yyr3292 || yy2arr3292 { r.EncodeArrayStart(4) } else { - yynn3209 = 1 - for _, b := range yyq3209 { + yynn3292 = 1 + for _, b := range yyq3292 { if b { - yynn3209++ + yynn3292++ } } - r.EncodeMapStart(yynn3209) - yynn3209 = 0 + r.EncodeMapStart(yynn3292) + yynn3292 = 0 } - if yyr3209 || yy2arr3209 { + if yyr3292 || yy2arr3292 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3209[0] { - yym3211 := z.EncBinary() - _ = yym3211 + if yyq3292[0] { + yym3294 := z.EncBinary() + _ = yym3294 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) @@ -41077,23 +42157,23 @@ func (x *NodeList) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq3209[0] { + if yyq3292[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym3212 := z.EncBinary() - _ = yym3212 + yym3295 := z.EncBinary() + _ = yym3295 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } - if yyr3209 || yy2arr3209 { + if yyr3292 || yy2arr3292 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3209[1] { - yym3214 := z.EncBinary() - _ = yym3214 + if yyq3292[1] { + yym3297 := z.EncBinary() + _ = yym3297 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) @@ -41102,54 +42182,54 @@ func (x *NodeList) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq3209[1] { + if yyq3292[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym3215 := z.EncBinary() - _ = yym3215 + yym3298 := z.EncBinary() + _ = yym3298 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } - if yyr3209 || yy2arr3209 { + if yyr3292 || yy2arr3292 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3209[2] { - yy3217 := &x.ListMeta - yym3218 := z.EncBinary() - _ = yym3218 + if yyq3292[2] { + yy3300 := &x.ListMeta + yym3301 := z.EncBinary() + _ = yym3301 if false { - } else if z.HasExtensions() && z.EncExt(yy3217) { + } else if z.HasExtensions() && z.EncExt(yy3300) { } else { - z.EncFallback(yy3217) + z.EncFallback(yy3300) } } else { r.EncodeNil() } } else { - if yyq3209[2] { + if yyq3292[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy3219 := &x.ListMeta - yym3220 := z.EncBinary() - _ = yym3220 + yy3302 := &x.ListMeta + yym3303 := z.EncBinary() + _ = yym3303 if false { - } else if z.HasExtensions() && z.EncExt(yy3219) { + } else if z.HasExtensions() && z.EncExt(yy3302) { } else { - z.EncFallback(yy3219) + z.EncFallback(yy3302) } } } - if yyr3209 || yy2arr3209 { + if yyr3292 || yy2arr3292 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.Items == nil { r.EncodeNil() } else { - yym3222 := z.EncBinary() - _ = yym3222 + yym3305 := z.EncBinary() + _ = yym3305 if false { } else { h.encSliceNode(([]Node)(x.Items), e) @@ -41162,15 +42242,15 @@ func (x *NodeList) CodecEncodeSelf(e *codec1978.Encoder) { if x.Items == nil { r.EncodeNil() } else { - yym3223 := z.EncBinary() - _ = yym3223 + yym3306 := z.EncBinary() + _ = yym3306 if false { } else { h.encSliceNode(([]Node)(x.Items), e) } } } - if yyr3209 || yy2arr3209 { + if yyr3292 || yy2arr3292 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -41183,25 +42263,25 @@ func (x *NodeList) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym3224 := z.DecBinary() - _ = yym3224 + yym3307 := z.DecBinary() + _ = yym3307 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct3225 := r.ContainerType() - if yyct3225 == codecSelferValueTypeMap1234 { - yyl3225 := r.ReadMapStart() - if yyl3225 == 0 { + yyct3308 := r.ContainerType() + if yyct3308 == codecSelferValueTypeMap1234 { + yyl3308 := r.ReadMapStart() + if yyl3308 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl3225, d) + x.codecDecodeSelfFromMap(yyl3308, d) } - } else if yyct3225 == codecSelferValueTypeArray1234 { - yyl3225 := r.ReadArrayStart() - if yyl3225 == 0 { + } else if yyct3308 == codecSelferValueTypeArray1234 { + yyl3308 := r.ReadArrayStart() + if yyl3308 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl3225, d) + x.codecDecodeSelfFromArray(yyl3308, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -41213,12 +42293,12 @@ func (x *NodeList) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys3226Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3226Slc - var yyhl3226 bool = l >= 0 - for yyj3226 := 0; ; yyj3226++ { - if yyhl3226 { - if yyj3226 >= l { + var yys3309Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys3309Slc + var yyhl3309 bool = l >= 0 + for yyj3309 := 0; ; yyj3309++ { + if yyhl3309 { + if yyj3309 >= l { break } } else { @@ -41227,10 +42307,10 @@ func (x *NodeList) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3226Slc = r.DecodeBytes(yys3226Slc, true, true) - yys3226 := string(yys3226Slc) + yys3309Slc = r.DecodeBytes(yys3309Slc, true, true) + yys3309 := string(yys3309Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3226 { + switch yys3309 { case "kind": if r.TryDecodeAsNil() { x.Kind = "" @@ -41247,31 +42327,31 @@ func (x *NodeList) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.ListMeta = pkg2_unversioned.ListMeta{} } else { - yyv3229 := &x.ListMeta - yym3230 := z.DecBinary() - _ = yym3230 + yyv3312 := &x.ListMeta + yym3313 := z.DecBinary() + _ = yym3313 if false { - } else if z.HasExtensions() && z.DecExt(yyv3229) { + } else if z.HasExtensions() && z.DecExt(yyv3312) { } else { - z.DecFallback(yyv3229, false) + z.DecFallback(yyv3312, false) } } case "items": if r.TryDecodeAsNil() { x.Items = nil } else { - yyv3231 := &x.Items - yym3232 := z.DecBinary() - _ = yym3232 + yyv3314 := &x.Items + yym3315 := z.DecBinary() + _ = yym3315 if false { } else { - h.decSliceNode((*[]Node)(yyv3231), d) + h.decSliceNode((*[]Node)(yyv3314), d) } } default: - z.DecStructFieldNotFound(-1, yys3226) - } // end switch yys3226 - } // end for yyj3226 + z.DecStructFieldNotFound(-1, yys3309) + } // end switch yys3309 + } // end for yyj3309 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -41279,16 +42359,16 @@ func (x *NodeList) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj3233 int - var yyb3233 bool - var yyhl3233 bool = l >= 0 - yyj3233++ - if yyhl3233 { - yyb3233 = yyj3233 > l + var yyj3316 int + var yyb3316 bool + var yyhl3316 bool = l >= 0 + yyj3316++ + if yyhl3316 { + yyb3316 = yyj3316 > l } else { - yyb3233 = r.CheckBreak() + yyb3316 = r.CheckBreak() } - if yyb3233 { + if yyb3316 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -41298,13 +42378,13 @@ func (x *NodeList) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.Kind = string(r.DecodeString()) } - yyj3233++ - if yyhl3233 { - yyb3233 = yyj3233 > l + yyj3316++ + if yyhl3316 { + yyb3316 = yyj3316 > l } else { - yyb3233 = r.CheckBreak() + yyb3316 = r.CheckBreak() } - if yyb3233 { + if yyb3316 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -41314,13 +42394,13 @@ func (x *NodeList) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.APIVersion = string(r.DecodeString()) } - yyj3233++ - if yyhl3233 { - yyb3233 = yyj3233 > l + yyj3316++ + if yyhl3316 { + yyb3316 = yyj3316 > l } else { - yyb3233 = r.CheckBreak() + yyb3316 = r.CheckBreak() } - if yyb3233 { + if yyb3316 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -41328,22 +42408,22 @@ func (x *NodeList) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.ListMeta = pkg2_unversioned.ListMeta{} } else { - yyv3236 := &x.ListMeta - yym3237 := z.DecBinary() - _ = yym3237 + yyv3319 := &x.ListMeta + yym3320 := z.DecBinary() + _ = yym3320 if false { - } else if z.HasExtensions() && z.DecExt(yyv3236) { + } else if z.HasExtensions() && z.DecExt(yyv3319) { } else { - z.DecFallback(yyv3236, false) + z.DecFallback(yyv3319, false) } } - yyj3233++ - if yyhl3233 { - yyb3233 = yyj3233 > l + yyj3316++ + if yyhl3316 { + yyb3316 = yyj3316 > l } else { - yyb3233 = r.CheckBreak() + yyb3316 = r.CheckBreak() } - if yyb3233 { + if yyb3316 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -41351,26 +42431,26 @@ func (x *NodeList) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.Items = nil } else { - yyv3238 := &x.Items - yym3239 := z.DecBinary() - _ = yym3239 + yyv3321 := &x.Items + yym3322 := z.DecBinary() + _ = yym3322 if false { } else { - h.decSliceNode((*[]Node)(yyv3238), d) + h.decSliceNode((*[]Node)(yyv3321), d) } } for { - yyj3233++ - if yyhl3233 { - yyb3233 = yyj3233 > l + yyj3316++ + if yyhl3316 { + yyb3316 = yyj3316 > l } else { - yyb3233 = r.CheckBreak() + yyb3316 = r.CheckBreak() } - if yyb3233 { + if yyb3316 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj3233-1, "") + z.DecStructFieldNotFound(yyj3316-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -41379,8 +42459,8 @@ func (x FinalizerName) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r - yym3240 := z.EncBinary() - _ = yym3240 + yym3323 := z.EncBinary() + _ = yym3323 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { @@ -41392,8 +42472,8 @@ func (x *FinalizerName) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym3241 := z.DecBinary() - _ = yym3241 + yym3324 := z.DecBinary() + _ = yym3324 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { @@ -41408,38 +42488,38 @@ func (x *NamespaceSpec) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym3242 := z.EncBinary() - _ = yym3242 + yym3325 := z.EncBinary() + _ = yym3325 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - 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 { + yysep3326 := !z.EncBinary() + yy2arr3326 := z.EncBasicHandle().StructToArray + var yyq3326 [1]bool + _, _, _ = yysep3326, yyq3326, yy2arr3326 + const yyr3326 bool = false + yyq3326[0] = len(x.Finalizers) != 0 + var yynn3326 int + if yyr3326 || yy2arr3326 { r.EncodeArrayStart(1) } else { - yynn3243 = 0 - for _, b := range yyq3243 { + yynn3326 = 0 + for _, b := range yyq3326 { if b { - yynn3243++ + yynn3326++ } } - r.EncodeMapStart(yynn3243) - yynn3243 = 0 + r.EncodeMapStart(yynn3326) + yynn3326 = 0 } - if yyr3243 || yy2arr3243 { + if yyr3326 || yy2arr3326 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3243[0] { + if yyq3326[0] { if x.Finalizers == nil { r.EncodeNil() } else { - yym3245 := z.EncBinary() - _ = yym3245 + yym3328 := z.EncBinary() + _ = yym3328 if false { } else { h.encSliceFinalizerName(([]FinalizerName)(x.Finalizers), e) @@ -41449,15 +42529,15 @@ func (x *NamespaceSpec) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq3243[0] { + if yyq3326[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("finalizers")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.Finalizers == nil { r.EncodeNil() } else { - yym3246 := z.EncBinary() - _ = yym3246 + yym3329 := z.EncBinary() + _ = yym3329 if false { } else { h.encSliceFinalizerName(([]FinalizerName)(x.Finalizers), e) @@ -41465,7 +42545,7 @@ func (x *NamespaceSpec) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr3243 || yy2arr3243 { + if yyr3326 || yy2arr3326 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -41478,25 +42558,25 @@ func (x *NamespaceSpec) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym3247 := z.DecBinary() - _ = yym3247 + yym3330 := z.DecBinary() + _ = yym3330 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct3248 := r.ContainerType() - if yyct3248 == codecSelferValueTypeMap1234 { - yyl3248 := r.ReadMapStart() - if yyl3248 == 0 { + yyct3331 := r.ContainerType() + if yyct3331 == codecSelferValueTypeMap1234 { + yyl3331 := r.ReadMapStart() + if yyl3331 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl3248, d) + x.codecDecodeSelfFromMap(yyl3331, d) } - } else if yyct3248 == codecSelferValueTypeArray1234 { - yyl3248 := r.ReadArrayStart() - if yyl3248 == 0 { + } else if yyct3331 == codecSelferValueTypeArray1234 { + yyl3331 := r.ReadArrayStart() + if yyl3331 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl3248, d) + x.codecDecodeSelfFromArray(yyl3331, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -41508,12 +42588,12 @@ func (x *NamespaceSpec) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys3249Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3249Slc - var yyhl3249 bool = l >= 0 - for yyj3249 := 0; ; yyj3249++ { - if yyhl3249 { - if yyj3249 >= l { + var yys3332Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys3332Slc + var yyhl3332 bool = l >= 0 + for yyj3332 := 0; ; yyj3332++ { + if yyhl3332 { + if yyj3332 >= l { break } } else { @@ -41522,26 +42602,26 @@ func (x *NamespaceSpec) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3249Slc = r.DecodeBytes(yys3249Slc, true, true) - yys3249 := string(yys3249Slc) + yys3332Slc = r.DecodeBytes(yys3332Slc, true, true) + yys3332 := string(yys3332Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3249 { + switch yys3332 { case "finalizers": if r.TryDecodeAsNil() { x.Finalizers = nil } else { - yyv3250 := &x.Finalizers - yym3251 := z.DecBinary() - _ = yym3251 + yyv3333 := &x.Finalizers + yym3334 := z.DecBinary() + _ = yym3334 if false { } else { - h.decSliceFinalizerName((*[]FinalizerName)(yyv3250), d) + h.decSliceFinalizerName((*[]FinalizerName)(yyv3333), d) } } default: - z.DecStructFieldNotFound(-1, yys3249) - } // end switch yys3249 - } // end for yyj3249 + z.DecStructFieldNotFound(-1, yys3332) + } // end switch yys3332 + } // end for yyj3332 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -41549,16 +42629,16 @@ func (x *NamespaceSpec) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj3252 int - var yyb3252 bool - var yyhl3252 bool = l >= 0 - yyj3252++ - if yyhl3252 { - yyb3252 = yyj3252 > l + var yyj3335 int + var yyb3335 bool + var yyhl3335 bool = l >= 0 + yyj3335++ + if yyhl3335 { + yyb3335 = yyj3335 > l } else { - yyb3252 = r.CheckBreak() + yyb3335 = r.CheckBreak() } - if yyb3252 { + if yyb3335 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -41566,26 +42646,26 @@ func (x *NamespaceSpec) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.Finalizers = nil } else { - yyv3253 := &x.Finalizers - yym3254 := z.DecBinary() - _ = yym3254 + yyv3336 := &x.Finalizers + yym3337 := z.DecBinary() + _ = yym3337 if false { } else { - h.decSliceFinalizerName((*[]FinalizerName)(yyv3253), d) + h.decSliceFinalizerName((*[]FinalizerName)(yyv3336), d) } } for { - yyj3252++ - if yyhl3252 { - yyb3252 = yyj3252 > l + yyj3335++ + if yyhl3335 { + yyb3335 = yyj3335 > l } else { - yyb3252 = r.CheckBreak() + yyb3335 = r.CheckBreak() } - if yyb3252 { + if yyb3335 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj3252-1, "") + z.DecStructFieldNotFound(yyj3335-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -41597,46 +42677,46 @@ func (x *NamespaceStatus) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym3255 := z.EncBinary() - _ = yym3255 + yym3338 := z.EncBinary() + _ = yym3338 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep3256 := !z.EncBinary() - yy2arr3256 := z.EncBasicHandle().StructToArray - var yyq3256 [1]bool - _, _, _ = yysep3256, yyq3256, yy2arr3256 - const yyr3256 bool = false - yyq3256[0] = x.Phase != "" - var yynn3256 int - if yyr3256 || yy2arr3256 { + yysep3339 := !z.EncBinary() + yy2arr3339 := z.EncBasicHandle().StructToArray + var yyq3339 [1]bool + _, _, _ = yysep3339, yyq3339, yy2arr3339 + const yyr3339 bool = false + yyq3339[0] = x.Phase != "" + var yynn3339 int + if yyr3339 || yy2arr3339 { r.EncodeArrayStart(1) } else { - yynn3256 = 0 - for _, b := range yyq3256 { + yynn3339 = 0 + for _, b := range yyq3339 { if b { - yynn3256++ + yynn3339++ } } - r.EncodeMapStart(yynn3256) - yynn3256 = 0 + r.EncodeMapStart(yynn3339) + yynn3339 = 0 } - if yyr3256 || yy2arr3256 { + if yyr3339 || yy2arr3339 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3256[0] { + if yyq3339[0] { x.Phase.CodecEncodeSelf(e) } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq3256[0] { + if yyq3339[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("phase")) z.EncSendContainerState(codecSelfer_containerMapValue1234) x.Phase.CodecEncodeSelf(e) } } - if yyr3256 || yy2arr3256 { + if yyr3339 || yy2arr3339 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -41649,25 +42729,25 @@ func (x *NamespaceStatus) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym3258 := z.DecBinary() - _ = yym3258 + yym3341 := z.DecBinary() + _ = yym3341 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct3259 := r.ContainerType() - if yyct3259 == codecSelferValueTypeMap1234 { - yyl3259 := r.ReadMapStart() - if yyl3259 == 0 { + yyct3342 := r.ContainerType() + if yyct3342 == codecSelferValueTypeMap1234 { + yyl3342 := r.ReadMapStart() + if yyl3342 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl3259, d) + x.codecDecodeSelfFromMap(yyl3342, d) } - } else if yyct3259 == codecSelferValueTypeArray1234 { - yyl3259 := r.ReadArrayStart() - if yyl3259 == 0 { + } else if yyct3342 == codecSelferValueTypeArray1234 { + yyl3342 := r.ReadArrayStart() + if yyl3342 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl3259, d) + x.codecDecodeSelfFromArray(yyl3342, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -41679,12 +42759,12 @@ func (x *NamespaceStatus) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys3260Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3260Slc - var yyhl3260 bool = l >= 0 - for yyj3260 := 0; ; yyj3260++ { - if yyhl3260 { - if yyj3260 >= l { + var yys3343Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys3343Slc + var yyhl3343 bool = l >= 0 + for yyj3343 := 0; ; yyj3343++ { + if yyhl3343 { + if yyj3343 >= l { break } } else { @@ -41693,10 +42773,10 @@ func (x *NamespaceStatus) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3260Slc = r.DecodeBytes(yys3260Slc, true, true) - yys3260 := string(yys3260Slc) + yys3343Slc = r.DecodeBytes(yys3343Slc, true, true) + yys3343 := string(yys3343Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3260 { + switch yys3343 { case "phase": if r.TryDecodeAsNil() { x.Phase = "" @@ -41704,9 +42784,9 @@ func (x *NamespaceStatus) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { x.Phase = NamespacePhase(r.DecodeString()) } default: - z.DecStructFieldNotFound(-1, yys3260) - } // end switch yys3260 - } // end for yyj3260 + z.DecStructFieldNotFound(-1, yys3343) + } // end switch yys3343 + } // end for yyj3343 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -41714,16 +42794,16 @@ func (x *NamespaceStatus) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj3262 int - var yyb3262 bool - var yyhl3262 bool = l >= 0 - yyj3262++ - if yyhl3262 { - yyb3262 = yyj3262 > l + var yyj3345 int + var yyb3345 bool + var yyhl3345 bool = l >= 0 + yyj3345++ + if yyhl3345 { + yyb3345 = yyj3345 > l } else { - yyb3262 = r.CheckBreak() + yyb3345 = r.CheckBreak() } - if yyb3262 { + if yyb3345 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -41734,17 +42814,17 @@ func (x *NamespaceStatus) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) x.Phase = NamespacePhase(r.DecodeString()) } for { - yyj3262++ - if yyhl3262 { - yyb3262 = yyj3262 > l + yyj3345++ + if yyhl3345 { + yyb3345 = yyj3345 > l } else { - yyb3262 = r.CheckBreak() + yyb3345 = r.CheckBreak() } - if yyb3262 { + if yyb3345 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj3262-1, "") + z.DecStructFieldNotFound(yyj3345-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -41753,8 +42833,8 @@ func (x NamespacePhase) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r - yym3264 := z.EncBinary() - _ = yym3264 + yym3347 := z.EncBinary() + _ = yym3347 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { @@ -41766,8 +42846,8 @@ func (x *NamespacePhase) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym3265 := z.DecBinary() - _ = yym3265 + yym3348 := z.DecBinary() + _ = yym3348 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { @@ -41782,39 +42862,39 @@ func (x *Namespace) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym3266 := z.EncBinary() - _ = yym3266 + yym3349 := z.EncBinary() + _ = yym3349 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep3267 := !z.EncBinary() - yy2arr3267 := z.EncBasicHandle().StructToArray - var yyq3267 [5]bool - _, _, _ = yysep3267, yyq3267, yy2arr3267 - const yyr3267 bool = false - yyq3267[0] = x.Kind != "" - yyq3267[1] = x.APIVersion != "" - yyq3267[2] = true - yyq3267[3] = true - yyq3267[4] = true - var yynn3267 int - if yyr3267 || yy2arr3267 { + yysep3350 := !z.EncBinary() + yy2arr3350 := z.EncBasicHandle().StructToArray + var yyq3350 [5]bool + _, _, _ = yysep3350, yyq3350, yy2arr3350 + const yyr3350 bool = false + yyq3350[0] = x.Kind != "" + yyq3350[1] = x.APIVersion != "" + yyq3350[2] = true + yyq3350[3] = true + yyq3350[4] = true + var yynn3350 int + if yyr3350 || yy2arr3350 { r.EncodeArrayStart(5) } else { - yynn3267 = 0 - for _, b := range yyq3267 { + yynn3350 = 0 + for _, b := range yyq3350 { if b { - yynn3267++ + yynn3350++ } } - r.EncodeMapStart(yynn3267) - yynn3267 = 0 + r.EncodeMapStart(yynn3350) + yynn3350 = 0 } - if yyr3267 || yy2arr3267 { + if yyr3350 || yy2arr3350 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3267[0] { - yym3269 := z.EncBinary() - _ = yym3269 + if yyq3350[0] { + yym3352 := z.EncBinary() + _ = yym3352 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) @@ -41823,23 +42903,23 @@ func (x *Namespace) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq3267[0] { + if yyq3350[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym3270 := z.EncBinary() - _ = yym3270 + yym3353 := z.EncBinary() + _ = yym3353 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } - if yyr3267 || yy2arr3267 { + if yyr3350 || yy2arr3350 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3267[1] { - yym3272 := z.EncBinary() - _ = yym3272 + if yyq3350[1] { + yym3355 := z.EncBinary() + _ = yym3355 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) @@ -41848,70 +42928,70 @@ func (x *Namespace) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq3267[1] { + if yyq3350[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym3273 := z.EncBinary() - _ = yym3273 + yym3356 := z.EncBinary() + _ = yym3356 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } - if yyr3267 || yy2arr3267 { + if yyr3350 || yy2arr3350 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3267[2] { - yy3275 := &x.ObjectMeta - yy3275.CodecEncodeSelf(e) + if yyq3350[2] { + yy3358 := &x.ObjectMeta + yy3358.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { - if yyq3267[2] { + if yyq3350[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy3276 := &x.ObjectMeta - yy3276.CodecEncodeSelf(e) + yy3359 := &x.ObjectMeta + yy3359.CodecEncodeSelf(e) } } - if yyr3267 || yy2arr3267 { + if yyr3350 || yy2arr3350 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3267[3] { - yy3278 := &x.Spec - yy3278.CodecEncodeSelf(e) + if yyq3350[3] { + yy3361 := &x.Spec + yy3361.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { - if yyq3267[3] { + if yyq3350[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("spec")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy3279 := &x.Spec - yy3279.CodecEncodeSelf(e) + yy3362 := &x.Spec + yy3362.CodecEncodeSelf(e) } } - if yyr3267 || yy2arr3267 { + if yyr3350 || yy2arr3350 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3267[4] { - yy3281 := &x.Status - yy3281.CodecEncodeSelf(e) + if yyq3350[4] { + yy3364 := &x.Status + yy3364.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { - if yyq3267[4] { + if yyq3350[4] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("status")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy3282 := &x.Status - yy3282.CodecEncodeSelf(e) + yy3365 := &x.Status + yy3365.CodecEncodeSelf(e) } } - if yyr3267 || yy2arr3267 { + if yyr3350 || yy2arr3350 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -41924,25 +43004,25 @@ func (x *Namespace) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym3283 := z.DecBinary() - _ = yym3283 + yym3366 := z.DecBinary() + _ = yym3366 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct3284 := r.ContainerType() - if yyct3284 == codecSelferValueTypeMap1234 { - yyl3284 := r.ReadMapStart() - if yyl3284 == 0 { + yyct3367 := r.ContainerType() + if yyct3367 == codecSelferValueTypeMap1234 { + yyl3367 := r.ReadMapStart() + if yyl3367 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl3284, d) + x.codecDecodeSelfFromMap(yyl3367, d) } - } else if yyct3284 == codecSelferValueTypeArray1234 { - yyl3284 := r.ReadArrayStart() - if yyl3284 == 0 { + } else if yyct3367 == codecSelferValueTypeArray1234 { + yyl3367 := r.ReadArrayStart() + if yyl3367 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl3284, d) + x.codecDecodeSelfFromArray(yyl3367, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -41954,12 +43034,12 @@ func (x *Namespace) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys3285Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3285Slc - var yyhl3285 bool = l >= 0 - for yyj3285 := 0; ; yyj3285++ { - if yyhl3285 { - if yyj3285 >= l { + var yys3368Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys3368Slc + var yyhl3368 bool = l >= 0 + for yyj3368 := 0; ; yyj3368++ { + if yyhl3368 { + if yyj3368 >= l { break } } else { @@ -41968,10 +43048,10 @@ func (x *Namespace) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3285Slc = r.DecodeBytes(yys3285Slc, true, true) - yys3285 := string(yys3285Slc) + yys3368Slc = r.DecodeBytes(yys3368Slc, true, true) + yys3368 := string(yys3368Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3285 { + switch yys3368 { case "kind": if r.TryDecodeAsNil() { x.Kind = "" @@ -41988,27 +43068,27 @@ func (x *Namespace) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.ObjectMeta = ObjectMeta{} } else { - yyv3288 := &x.ObjectMeta - yyv3288.CodecDecodeSelf(d) + yyv3371 := &x.ObjectMeta + yyv3371.CodecDecodeSelf(d) } case "spec": if r.TryDecodeAsNil() { x.Spec = NamespaceSpec{} } else { - yyv3289 := &x.Spec - yyv3289.CodecDecodeSelf(d) + yyv3372 := &x.Spec + yyv3372.CodecDecodeSelf(d) } case "status": if r.TryDecodeAsNil() { x.Status = NamespaceStatus{} } else { - yyv3290 := &x.Status - yyv3290.CodecDecodeSelf(d) + yyv3373 := &x.Status + yyv3373.CodecDecodeSelf(d) } default: - z.DecStructFieldNotFound(-1, yys3285) - } // end switch yys3285 - } // end for yyj3285 + z.DecStructFieldNotFound(-1, yys3368) + } // end switch yys3368 + } // end for yyj3368 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -42016,16 +43096,16 @@ func (x *Namespace) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj3291 int - var yyb3291 bool - var yyhl3291 bool = l >= 0 - yyj3291++ - if yyhl3291 { - yyb3291 = yyj3291 > l + var yyj3374 int + var yyb3374 bool + var yyhl3374 bool = l >= 0 + yyj3374++ + if yyhl3374 { + yyb3374 = yyj3374 > l } else { - yyb3291 = r.CheckBreak() + yyb3374 = r.CheckBreak() } - if yyb3291 { + if yyb3374 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -42035,13 +43115,13 @@ func (x *Namespace) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.Kind = string(r.DecodeString()) } - yyj3291++ - if yyhl3291 { - yyb3291 = yyj3291 > l + yyj3374++ + if yyhl3374 { + yyb3374 = yyj3374 > l } else { - yyb3291 = r.CheckBreak() + yyb3374 = r.CheckBreak() } - if yyb3291 { + if yyb3374 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -42051,13 +43131,13 @@ func (x *Namespace) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.APIVersion = string(r.DecodeString()) } - yyj3291++ - if yyhl3291 { - yyb3291 = yyj3291 > l + yyj3374++ + if yyhl3374 { + yyb3374 = yyj3374 > l } else { - yyb3291 = r.CheckBreak() + yyb3374 = r.CheckBreak() } - if yyb3291 { + if yyb3374 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -42065,16 +43145,16 @@ func (x *Namespace) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.ObjectMeta = ObjectMeta{} } else { - yyv3294 := &x.ObjectMeta - yyv3294.CodecDecodeSelf(d) + yyv3377 := &x.ObjectMeta + yyv3377.CodecDecodeSelf(d) } - yyj3291++ - if yyhl3291 { - yyb3291 = yyj3291 > l + yyj3374++ + if yyhl3374 { + yyb3374 = yyj3374 > l } else { - yyb3291 = r.CheckBreak() + yyb3374 = r.CheckBreak() } - if yyb3291 { + if yyb3374 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -42082,16 +43162,16 @@ func (x *Namespace) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.Spec = NamespaceSpec{} } else { - yyv3295 := &x.Spec - yyv3295.CodecDecodeSelf(d) + yyv3378 := &x.Spec + yyv3378.CodecDecodeSelf(d) } - yyj3291++ - if yyhl3291 { - yyb3291 = yyj3291 > l + yyj3374++ + if yyhl3374 { + yyb3374 = yyj3374 > l } else { - yyb3291 = r.CheckBreak() + yyb3374 = r.CheckBreak() } - if yyb3291 { + if yyb3374 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -42099,21 +43179,21 @@ func (x *Namespace) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.Status = NamespaceStatus{} } else { - yyv3296 := &x.Status - yyv3296.CodecDecodeSelf(d) + yyv3379 := &x.Status + yyv3379.CodecDecodeSelf(d) } for { - yyj3291++ - if yyhl3291 { - yyb3291 = yyj3291 > l + yyj3374++ + if yyhl3374 { + yyb3374 = yyj3374 > l } else { - yyb3291 = r.CheckBreak() + yyb3374 = r.CheckBreak() } - if yyb3291 { + if yyb3374 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj3291-1, "") + z.DecStructFieldNotFound(yyj3374-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -42125,37 +43205,37 @@ func (x *NamespaceList) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym3297 := z.EncBinary() - _ = yym3297 + yym3380 := z.EncBinary() + _ = yym3380 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep3298 := !z.EncBinary() - yy2arr3298 := z.EncBasicHandle().StructToArray - var yyq3298 [4]bool - _, _, _ = yysep3298, yyq3298, yy2arr3298 - const yyr3298 bool = false - yyq3298[0] = x.Kind != "" - yyq3298[1] = x.APIVersion != "" - yyq3298[2] = true - var yynn3298 int - if yyr3298 || yy2arr3298 { + yysep3381 := !z.EncBinary() + yy2arr3381 := z.EncBasicHandle().StructToArray + var yyq3381 [4]bool + _, _, _ = yysep3381, yyq3381, yy2arr3381 + const yyr3381 bool = false + yyq3381[0] = x.Kind != "" + yyq3381[1] = x.APIVersion != "" + yyq3381[2] = true + var yynn3381 int + if yyr3381 || yy2arr3381 { r.EncodeArrayStart(4) } else { - yynn3298 = 1 - for _, b := range yyq3298 { + yynn3381 = 1 + for _, b := range yyq3381 { if b { - yynn3298++ + yynn3381++ } } - r.EncodeMapStart(yynn3298) - yynn3298 = 0 + r.EncodeMapStart(yynn3381) + yynn3381 = 0 } - if yyr3298 || yy2arr3298 { + if yyr3381 || yy2arr3381 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3298[0] { - yym3300 := z.EncBinary() - _ = yym3300 + if yyq3381[0] { + yym3383 := z.EncBinary() + _ = yym3383 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) @@ -42164,23 +43244,23 @@ func (x *NamespaceList) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq3298[0] { + if yyq3381[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym3301 := z.EncBinary() - _ = yym3301 + yym3384 := z.EncBinary() + _ = yym3384 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } - if yyr3298 || yy2arr3298 { + if yyr3381 || yy2arr3381 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3298[1] { - yym3303 := z.EncBinary() - _ = yym3303 + if yyq3381[1] { + yym3386 := z.EncBinary() + _ = yym3386 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) @@ -42189,54 +43269,54 @@ func (x *NamespaceList) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq3298[1] { + if yyq3381[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym3304 := z.EncBinary() - _ = yym3304 + yym3387 := z.EncBinary() + _ = yym3387 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } - if yyr3298 || yy2arr3298 { + if yyr3381 || yy2arr3381 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3298[2] { - yy3306 := &x.ListMeta - yym3307 := z.EncBinary() - _ = yym3307 + if yyq3381[2] { + yy3389 := &x.ListMeta + yym3390 := z.EncBinary() + _ = yym3390 if false { - } else if z.HasExtensions() && z.EncExt(yy3306) { + } else if z.HasExtensions() && z.EncExt(yy3389) { } else { - z.EncFallback(yy3306) + z.EncFallback(yy3389) } } else { r.EncodeNil() } } else { - if yyq3298[2] { + if yyq3381[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy3308 := &x.ListMeta - yym3309 := z.EncBinary() - _ = yym3309 + yy3391 := &x.ListMeta + yym3392 := z.EncBinary() + _ = yym3392 if false { - } else if z.HasExtensions() && z.EncExt(yy3308) { + } else if z.HasExtensions() && z.EncExt(yy3391) { } else { - z.EncFallback(yy3308) + z.EncFallback(yy3391) } } } - if yyr3298 || yy2arr3298 { + if yyr3381 || yy2arr3381 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.Items == nil { r.EncodeNil() } else { - yym3311 := z.EncBinary() - _ = yym3311 + yym3394 := z.EncBinary() + _ = yym3394 if false { } else { h.encSliceNamespace(([]Namespace)(x.Items), e) @@ -42249,15 +43329,15 @@ func (x *NamespaceList) CodecEncodeSelf(e *codec1978.Encoder) { if x.Items == nil { r.EncodeNil() } else { - yym3312 := z.EncBinary() - _ = yym3312 + yym3395 := z.EncBinary() + _ = yym3395 if false { } else { h.encSliceNamespace(([]Namespace)(x.Items), e) } } } - if yyr3298 || yy2arr3298 { + if yyr3381 || yy2arr3381 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -42270,25 +43350,25 @@ func (x *NamespaceList) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym3313 := z.DecBinary() - _ = yym3313 + yym3396 := z.DecBinary() + _ = yym3396 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct3314 := r.ContainerType() - if yyct3314 == codecSelferValueTypeMap1234 { - yyl3314 := r.ReadMapStart() - if yyl3314 == 0 { + yyct3397 := r.ContainerType() + if yyct3397 == codecSelferValueTypeMap1234 { + yyl3397 := r.ReadMapStart() + if yyl3397 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl3314, d) + x.codecDecodeSelfFromMap(yyl3397, d) } - } else if yyct3314 == codecSelferValueTypeArray1234 { - yyl3314 := r.ReadArrayStart() - if yyl3314 == 0 { + } else if yyct3397 == codecSelferValueTypeArray1234 { + yyl3397 := r.ReadArrayStart() + if yyl3397 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl3314, d) + x.codecDecodeSelfFromArray(yyl3397, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -42300,12 +43380,12 @@ func (x *NamespaceList) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys3315Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3315Slc - var yyhl3315 bool = l >= 0 - for yyj3315 := 0; ; yyj3315++ { - if yyhl3315 { - if yyj3315 >= l { + 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 { @@ -42314,10 +43394,10 @@ func (x *NamespaceList) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3315Slc = r.DecodeBytes(yys3315Slc, true, true) - yys3315 := string(yys3315Slc) + yys3398Slc = r.DecodeBytes(yys3398Slc, true, true) + yys3398 := string(yys3398Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3315 { + switch yys3398 { case "kind": if r.TryDecodeAsNil() { x.Kind = "" @@ -42334,31 +43414,31 @@ func (x *NamespaceList) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.ListMeta = pkg2_unversioned.ListMeta{} } else { - yyv3318 := &x.ListMeta - yym3319 := z.DecBinary() - _ = yym3319 + yyv3401 := &x.ListMeta + yym3402 := z.DecBinary() + _ = yym3402 if false { - } else if z.HasExtensions() && z.DecExt(yyv3318) { + } else if z.HasExtensions() && z.DecExt(yyv3401) { } else { - z.DecFallback(yyv3318, false) + z.DecFallback(yyv3401, false) } } case "items": if r.TryDecodeAsNil() { x.Items = nil } else { - yyv3320 := &x.Items - yym3321 := z.DecBinary() - _ = yym3321 + yyv3403 := &x.Items + yym3404 := z.DecBinary() + _ = yym3404 if false { } else { - h.decSliceNamespace((*[]Namespace)(yyv3320), d) + h.decSliceNamespace((*[]Namespace)(yyv3403), d) } } default: - z.DecStructFieldNotFound(-1, yys3315) - } // end switch yys3315 - } // end for yyj3315 + z.DecStructFieldNotFound(-1, yys3398) + } // end switch yys3398 + } // end for yyj3398 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -42366,16 +43446,16 @@ func (x *NamespaceList) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj3322 int - var yyb3322 bool - var yyhl3322 bool = l >= 0 - yyj3322++ - if yyhl3322 { - yyb3322 = yyj3322 > l + var yyj3405 int + var yyb3405 bool + var yyhl3405 bool = l >= 0 + yyj3405++ + if yyhl3405 { + yyb3405 = yyj3405 > l } else { - yyb3322 = r.CheckBreak() + yyb3405 = r.CheckBreak() } - if yyb3322 { + if yyb3405 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -42385,13 +43465,13 @@ func (x *NamespaceList) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.Kind = string(r.DecodeString()) } - yyj3322++ - if yyhl3322 { - yyb3322 = yyj3322 > l + yyj3405++ + if yyhl3405 { + yyb3405 = yyj3405 > l } else { - yyb3322 = r.CheckBreak() + yyb3405 = r.CheckBreak() } - if yyb3322 { + if yyb3405 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -42401,13 +43481,13 @@ func (x *NamespaceList) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.APIVersion = string(r.DecodeString()) } - yyj3322++ - if yyhl3322 { - yyb3322 = yyj3322 > l + yyj3405++ + if yyhl3405 { + yyb3405 = yyj3405 > l } else { - yyb3322 = r.CheckBreak() + yyb3405 = r.CheckBreak() } - if yyb3322 { + if yyb3405 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -42415,22 +43495,22 @@ func (x *NamespaceList) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.ListMeta = pkg2_unversioned.ListMeta{} } else { - yyv3325 := &x.ListMeta - yym3326 := z.DecBinary() - _ = yym3326 + yyv3408 := &x.ListMeta + yym3409 := z.DecBinary() + _ = yym3409 if false { - } else if z.HasExtensions() && z.DecExt(yyv3325) { + } else if z.HasExtensions() && z.DecExt(yyv3408) { } else { - z.DecFallback(yyv3325, false) + z.DecFallback(yyv3408, false) } } - yyj3322++ - if yyhl3322 { - yyb3322 = yyj3322 > l + yyj3405++ + if yyhl3405 { + yyb3405 = yyj3405 > l } else { - yyb3322 = r.CheckBreak() + yyb3405 = r.CheckBreak() } - if yyb3322 { + if yyb3405 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -42438,26 +43518,26 @@ func (x *NamespaceList) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.Items = nil } else { - yyv3327 := &x.Items - yym3328 := z.DecBinary() - _ = yym3328 + yyv3410 := &x.Items + yym3411 := z.DecBinary() + _ = yym3411 if false { } else { - h.decSliceNamespace((*[]Namespace)(yyv3327), d) + h.decSliceNamespace((*[]Namespace)(yyv3410), d) } } for { - yyj3322++ - if yyhl3322 { - yyb3322 = yyj3322 > l + yyj3405++ + if yyhl3405 { + yyb3405 = yyj3405 > l } else { - yyb3322 = r.CheckBreak() + yyb3405 = r.CheckBreak() } - if yyb3322 { + if yyb3405 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj3322-1, "") + z.DecStructFieldNotFound(yyj3405-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -42469,37 +43549,37 @@ func (x *Binding) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym3329 := z.EncBinary() - _ = yym3329 + yym3412 := z.EncBinary() + _ = yym3412 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep3330 := !z.EncBinary() - yy2arr3330 := z.EncBasicHandle().StructToArray - var yyq3330 [4]bool - _, _, _ = yysep3330, yyq3330, yy2arr3330 - const yyr3330 bool = false - yyq3330[0] = x.Kind != "" - yyq3330[1] = x.APIVersion != "" - yyq3330[2] = true - var yynn3330 int - if yyr3330 || yy2arr3330 { + yysep3413 := !z.EncBinary() + yy2arr3413 := z.EncBasicHandle().StructToArray + var yyq3413 [4]bool + _, _, _ = yysep3413, yyq3413, yy2arr3413 + const yyr3413 bool = false + yyq3413[0] = x.Kind != "" + yyq3413[1] = x.APIVersion != "" + yyq3413[2] = true + var yynn3413 int + if yyr3413 || yy2arr3413 { r.EncodeArrayStart(4) } else { - yynn3330 = 1 - for _, b := range yyq3330 { + yynn3413 = 1 + for _, b := range yyq3413 { if b { - yynn3330++ + yynn3413++ } } - r.EncodeMapStart(yynn3330) - yynn3330 = 0 + r.EncodeMapStart(yynn3413) + yynn3413 = 0 } - if yyr3330 || yy2arr3330 { + if yyr3413 || yy2arr3413 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3330[0] { - yym3332 := z.EncBinary() - _ = yym3332 + if yyq3413[0] { + yym3415 := z.EncBinary() + _ = yym3415 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) @@ -42508,23 +43588,23 @@ func (x *Binding) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq3330[0] { + if yyq3413[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym3333 := z.EncBinary() - _ = yym3333 + yym3416 := z.EncBinary() + _ = yym3416 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } - if yyr3330 || yy2arr3330 { + if yyr3413 || yy2arr3413 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3330[1] { - yym3335 := z.EncBinary() - _ = yym3335 + if yyq3413[1] { + yym3418 := z.EncBinary() + _ = yym3418 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) @@ -42533,47 +43613,47 @@ func (x *Binding) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq3330[1] { + if yyq3413[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym3336 := z.EncBinary() - _ = yym3336 + yym3419 := z.EncBinary() + _ = yym3419 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } - if yyr3330 || yy2arr3330 { + if yyr3413 || yy2arr3413 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3330[2] { - yy3338 := &x.ObjectMeta - yy3338.CodecEncodeSelf(e) + if yyq3413[2] { + yy3421 := &x.ObjectMeta + yy3421.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { - if yyq3330[2] { + if yyq3413[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy3339 := &x.ObjectMeta - yy3339.CodecEncodeSelf(e) + yy3422 := &x.ObjectMeta + yy3422.CodecEncodeSelf(e) } } - if yyr3330 || yy2arr3330 { + if yyr3413 || yy2arr3413 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy3341 := &x.Target - yy3341.CodecEncodeSelf(e) + yy3424 := &x.Target + yy3424.CodecEncodeSelf(e) } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("target")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy3342 := &x.Target - yy3342.CodecEncodeSelf(e) + yy3425 := &x.Target + yy3425.CodecEncodeSelf(e) } - if yyr3330 || yy2arr3330 { + if yyr3413 || yy2arr3413 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -42586,25 +43666,25 @@ func (x *Binding) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym3343 := z.DecBinary() - _ = yym3343 + yym3426 := z.DecBinary() + _ = yym3426 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct3344 := r.ContainerType() - if yyct3344 == codecSelferValueTypeMap1234 { - yyl3344 := r.ReadMapStart() - if yyl3344 == 0 { + yyct3427 := r.ContainerType() + if yyct3427 == codecSelferValueTypeMap1234 { + yyl3427 := r.ReadMapStart() + if yyl3427 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl3344, d) + x.codecDecodeSelfFromMap(yyl3427, d) } - } else if yyct3344 == codecSelferValueTypeArray1234 { - yyl3344 := r.ReadArrayStart() - if yyl3344 == 0 { + } else if yyct3427 == codecSelferValueTypeArray1234 { + yyl3427 := r.ReadArrayStart() + if yyl3427 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl3344, d) + x.codecDecodeSelfFromArray(yyl3427, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -42616,12 +43696,12 @@ func (x *Binding) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys3345Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3345Slc - var yyhl3345 bool = l >= 0 - for yyj3345 := 0; ; yyj3345++ { - if yyhl3345 { - if yyj3345 >= l { + var yys3428Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys3428Slc + var yyhl3428 bool = l >= 0 + for yyj3428 := 0; ; yyj3428++ { + if yyhl3428 { + if yyj3428 >= l { break } } else { @@ -42630,10 +43710,10 @@ func (x *Binding) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3345Slc = r.DecodeBytes(yys3345Slc, true, true) - yys3345 := string(yys3345Slc) + yys3428Slc = r.DecodeBytes(yys3428Slc, true, true) + yys3428 := string(yys3428Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3345 { + switch yys3428 { case "kind": if r.TryDecodeAsNil() { x.Kind = "" @@ -42650,20 +43730,20 @@ func (x *Binding) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.ObjectMeta = ObjectMeta{} } else { - yyv3348 := &x.ObjectMeta - yyv3348.CodecDecodeSelf(d) + yyv3431 := &x.ObjectMeta + yyv3431.CodecDecodeSelf(d) } case "target": if r.TryDecodeAsNil() { x.Target = ObjectReference{} } else { - yyv3349 := &x.Target - yyv3349.CodecDecodeSelf(d) + yyv3432 := &x.Target + yyv3432.CodecDecodeSelf(d) } default: - z.DecStructFieldNotFound(-1, yys3345) - } // end switch yys3345 - } // end for yyj3345 + z.DecStructFieldNotFound(-1, yys3428) + } // end switch yys3428 + } // end for yyj3428 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -42671,16 +43751,16 @@ func (x *Binding) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj3350 int - var yyb3350 bool - var yyhl3350 bool = l >= 0 - yyj3350++ - if yyhl3350 { - yyb3350 = yyj3350 > l + var yyj3433 int + var yyb3433 bool + var yyhl3433 bool = l >= 0 + yyj3433++ + if yyhl3433 { + yyb3433 = yyj3433 > l } else { - yyb3350 = r.CheckBreak() + yyb3433 = r.CheckBreak() } - if yyb3350 { + if yyb3433 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -42690,13 +43770,13 @@ func (x *Binding) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.Kind = string(r.DecodeString()) } - yyj3350++ - if yyhl3350 { - yyb3350 = yyj3350 > l + yyj3433++ + if yyhl3433 { + yyb3433 = yyj3433 > l } else { - yyb3350 = r.CheckBreak() + yyb3433 = r.CheckBreak() } - if yyb3350 { + if yyb3433 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -42706,13 +43786,13 @@ func (x *Binding) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.APIVersion = string(r.DecodeString()) } - yyj3350++ - if yyhl3350 { - yyb3350 = yyj3350 > l + yyj3433++ + if yyhl3433 { + yyb3433 = yyj3433 > l } else { - yyb3350 = r.CheckBreak() + yyb3433 = r.CheckBreak() } - if yyb3350 { + if yyb3433 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -42720,16 +43800,16 @@ func (x *Binding) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.ObjectMeta = ObjectMeta{} } else { - yyv3353 := &x.ObjectMeta - yyv3353.CodecDecodeSelf(d) + yyv3436 := &x.ObjectMeta + yyv3436.CodecDecodeSelf(d) } - yyj3350++ - if yyhl3350 { - yyb3350 = yyj3350 > l + yyj3433++ + if yyhl3433 { + yyb3433 = yyj3433 > l } else { - yyb3350 = r.CheckBreak() + yyb3433 = r.CheckBreak() } - if yyb3350 { + if yyb3433 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -42737,21 +43817,21 @@ func (x *Binding) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.Target = ObjectReference{} } else { - yyv3354 := &x.Target - yyv3354.CodecDecodeSelf(d) + yyv3437 := &x.Target + yyv3437.CodecDecodeSelf(d) } for { - yyj3350++ - if yyhl3350 { - yyb3350 = yyj3350 > l + yyj3433++ + if yyhl3433 { + yyb3433 = yyj3433 > l } else { - yyb3350 = r.CheckBreak() + yyb3433 = r.CheckBreak() } - if yyb3350 { + if yyb3433 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj3350-1, "") + z.DecStructFieldNotFound(yyj3433-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -42763,68 +43843,68 @@ func (x *Preconditions) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym3355 := z.EncBinary() - _ = yym3355 + yym3438 := z.EncBinary() + _ = yym3438 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep3356 := !z.EncBinary() - yy2arr3356 := z.EncBasicHandle().StructToArray - var yyq3356 [1]bool - _, _, _ = yysep3356, yyq3356, yy2arr3356 - const yyr3356 bool = false - yyq3356[0] = x.UID != nil - var yynn3356 int - if yyr3356 || yy2arr3356 { + yysep3439 := !z.EncBinary() + yy2arr3439 := z.EncBasicHandle().StructToArray + var yyq3439 [1]bool + _, _, _ = yysep3439, yyq3439, yy2arr3439 + const yyr3439 bool = false + yyq3439[0] = x.UID != nil + var yynn3439 int + if yyr3439 || yy2arr3439 { r.EncodeArrayStart(1) } else { - yynn3356 = 0 - for _, b := range yyq3356 { + yynn3439 = 0 + for _, b := range yyq3439 { if b { - yynn3356++ + yynn3439++ } } - r.EncodeMapStart(yynn3356) - yynn3356 = 0 + r.EncodeMapStart(yynn3439) + yynn3439 = 0 } - if yyr3356 || yy2arr3356 { + if yyr3439 || yy2arr3439 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3356[0] { + if yyq3439[0] { if x.UID == nil { r.EncodeNil() } else { - yy3358 := *x.UID - yym3359 := z.EncBinary() - _ = yym3359 + yy3441 := *x.UID + yym3442 := z.EncBinary() + _ = yym3442 if false { - } else if z.HasExtensions() && z.EncExt(yy3358) { + } else if z.HasExtensions() && z.EncExt(yy3441) { } else { - r.EncodeString(codecSelferC_UTF81234, string(yy3358)) + r.EncodeString(codecSelferC_UTF81234, string(yy3441)) } } } else { r.EncodeNil() } } else { - if yyq3356[0] { + if yyq3439[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("uid")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.UID == nil { r.EncodeNil() } else { - yy3360 := *x.UID - yym3361 := z.EncBinary() - _ = yym3361 + yy3443 := *x.UID + yym3444 := z.EncBinary() + _ = yym3444 if false { - } else if z.HasExtensions() && z.EncExt(yy3360) { + } else if z.HasExtensions() && z.EncExt(yy3443) { } else { - r.EncodeString(codecSelferC_UTF81234, string(yy3360)) + r.EncodeString(codecSelferC_UTF81234, string(yy3443)) } } } } - if yyr3356 || yy2arr3356 { + if yyr3439 || yy2arr3439 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -42837,25 +43917,25 @@ func (x *Preconditions) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym3362 := z.DecBinary() - _ = yym3362 + yym3445 := z.DecBinary() + _ = yym3445 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct3363 := r.ContainerType() - if yyct3363 == codecSelferValueTypeMap1234 { - yyl3363 := r.ReadMapStart() - if yyl3363 == 0 { + yyct3446 := r.ContainerType() + if yyct3446 == codecSelferValueTypeMap1234 { + yyl3446 := r.ReadMapStart() + if yyl3446 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl3363, d) + x.codecDecodeSelfFromMap(yyl3446, d) } - } else if yyct3363 == codecSelferValueTypeArray1234 { - yyl3363 := r.ReadArrayStart() - if yyl3363 == 0 { + } else if yyct3446 == codecSelferValueTypeArray1234 { + yyl3446 := r.ReadArrayStart() + if yyl3446 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl3363, d) + x.codecDecodeSelfFromArray(yyl3446, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -42867,12 +43947,12 @@ func (x *Preconditions) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys3364Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3364Slc - var yyhl3364 bool = l >= 0 - for yyj3364 := 0; ; yyj3364++ { - if yyhl3364 { - if yyj3364 >= l { + var yys3447Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys3447Slc + var yyhl3447 bool = l >= 0 + for yyj3447 := 0; ; yyj3447++ { + if yyhl3447 { + if yyj3447 >= l { break } } else { @@ -42881,10 +43961,10 @@ func (x *Preconditions) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3364Slc = r.DecodeBytes(yys3364Slc, true, true) - yys3364 := string(yys3364Slc) + yys3447Slc = r.DecodeBytes(yys3447Slc, true, true) + yys3447 := string(yys3447Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3364 { + switch yys3447 { case "uid": if r.TryDecodeAsNil() { if x.UID != nil { @@ -42894,8 +43974,8 @@ func (x *Preconditions) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { if x.UID == nil { x.UID = new(pkg1_types.UID) } - yym3366 := z.DecBinary() - _ = yym3366 + yym3449 := z.DecBinary() + _ = yym3449 if false { } else if z.HasExtensions() && z.DecExt(x.UID) { } else { @@ -42903,9 +43983,9 @@ func (x *Preconditions) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } default: - z.DecStructFieldNotFound(-1, yys3364) - } // end switch yys3364 - } // end for yyj3364 + z.DecStructFieldNotFound(-1, yys3447) + } // end switch yys3447 + } // end for yyj3447 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -42913,16 +43993,16 @@ func (x *Preconditions) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj3367 int - var yyb3367 bool - var yyhl3367 bool = l >= 0 - yyj3367++ - if yyhl3367 { - yyb3367 = yyj3367 > l + var yyj3450 int + var yyb3450 bool + var yyhl3450 bool = l >= 0 + yyj3450++ + if yyhl3450 { + yyb3450 = yyj3450 > l } else { - yyb3367 = r.CheckBreak() + yyb3450 = r.CheckBreak() } - if yyb3367 { + if yyb3450 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -42935,8 +44015,8 @@ func (x *Preconditions) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if x.UID == nil { x.UID = new(pkg1_types.UID) } - yym3369 := z.DecBinary() - _ = yym3369 + yym3452 := z.DecBinary() + _ = yym3452 if false { } else if z.HasExtensions() && z.DecExt(x.UID) { } else { @@ -42944,17 +44024,17 @@ func (x *Preconditions) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } } for { - yyj3367++ - if yyhl3367 { - yyb3367 = yyj3367 > l + yyj3450++ + if yyhl3450 { + yyb3450 = yyj3450 > l } else { - yyb3367 = r.CheckBreak() + yyb3450 = r.CheckBreak() } - if yyb3367 { + if yyb3450 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj3367-1, "") + z.DecStructFieldNotFound(yyj3450-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -42966,39 +44046,39 @@ func (x *DeleteOptions) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym3370 := z.EncBinary() - _ = yym3370 + yym3453 := z.EncBinary() + _ = yym3453 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep3371 := !z.EncBinary() - yy2arr3371 := z.EncBasicHandle().StructToArray - var yyq3371 [5]bool - _, _, _ = yysep3371, yyq3371, yy2arr3371 - const yyr3371 bool = false - yyq3371[0] = x.Kind != "" - yyq3371[1] = x.APIVersion != "" - yyq3371[2] = x.GracePeriodSeconds != nil - yyq3371[3] = x.Preconditions != nil - yyq3371[4] = x.OrphanDependents != nil - var yynn3371 int - if yyr3371 || yy2arr3371 { + yysep3454 := !z.EncBinary() + yy2arr3454 := z.EncBasicHandle().StructToArray + var yyq3454 [5]bool + _, _, _ = yysep3454, yyq3454, yy2arr3454 + const yyr3454 bool = false + yyq3454[0] = x.Kind != "" + yyq3454[1] = x.APIVersion != "" + yyq3454[2] = x.GracePeriodSeconds != nil + yyq3454[3] = x.Preconditions != nil + yyq3454[4] = x.OrphanDependents != nil + var yynn3454 int + if yyr3454 || yy2arr3454 { r.EncodeArrayStart(5) } else { - yynn3371 = 0 - for _, b := range yyq3371 { + yynn3454 = 0 + for _, b := range yyq3454 { if b { - yynn3371++ + yynn3454++ } } - r.EncodeMapStart(yynn3371) - yynn3371 = 0 + r.EncodeMapStart(yynn3454) + yynn3454 = 0 } - if yyr3371 || yy2arr3371 { + if yyr3454 || yy2arr3454 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3371[0] { - yym3373 := z.EncBinary() - _ = yym3373 + if yyq3454[0] { + yym3456 := z.EncBinary() + _ = yym3456 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) @@ -43007,23 +44087,23 @@ func (x *DeleteOptions) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq3371[0] { + if yyq3454[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym3374 := z.EncBinary() - _ = yym3374 + yym3457 := z.EncBinary() + _ = yym3457 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } - if yyr3371 || yy2arr3371 { + if yyr3454 || yy2arr3454 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3371[1] { - yym3376 := z.EncBinary() - _ = yym3376 + if yyq3454[1] { + yym3459 := z.EncBinary() + _ = yym3459 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) @@ -43032,56 +44112,56 @@ func (x *DeleteOptions) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq3371[1] { + if yyq3454[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym3377 := z.EncBinary() - _ = yym3377 + yym3460 := z.EncBinary() + _ = yym3460 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } - if yyr3371 || yy2arr3371 { + if yyr3454 || yy2arr3454 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3371[2] { + if yyq3454[2] { if x.GracePeriodSeconds == nil { r.EncodeNil() } else { - yy3379 := *x.GracePeriodSeconds - yym3380 := z.EncBinary() - _ = yym3380 + yy3462 := *x.GracePeriodSeconds + yym3463 := z.EncBinary() + _ = yym3463 if false { } else { - r.EncodeInt(int64(yy3379)) + r.EncodeInt(int64(yy3462)) } } } else { r.EncodeNil() } } else { - if yyq3371[2] { + if yyq3454[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("gracePeriodSeconds")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.GracePeriodSeconds == nil { r.EncodeNil() } else { - yy3381 := *x.GracePeriodSeconds - yym3382 := z.EncBinary() - _ = yym3382 + yy3464 := *x.GracePeriodSeconds + yym3465 := z.EncBinary() + _ = yym3465 if false { } else { - r.EncodeInt(int64(yy3381)) + r.EncodeInt(int64(yy3464)) } } } } - if yyr3371 || yy2arr3371 { + if yyr3454 || yy2arr3454 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3371[3] { + if yyq3454[3] { if x.Preconditions == nil { r.EncodeNil() } else { @@ -43091,7 +44171,7 @@ func (x *DeleteOptions) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq3371[3] { + if yyq3454[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("preconditions")) z.EncSendContainerState(codecSelfer_containerMapValue1234) @@ -43102,42 +44182,42 @@ func (x *DeleteOptions) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr3371 || yy2arr3371 { + if yyr3454 || yy2arr3454 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3371[4] { + if yyq3454[4] { if x.OrphanDependents == nil { r.EncodeNil() } else { - yy3385 := *x.OrphanDependents - yym3386 := z.EncBinary() - _ = yym3386 + yy3468 := *x.OrphanDependents + yym3469 := z.EncBinary() + _ = yym3469 if false { } else { - r.EncodeBool(bool(yy3385)) + r.EncodeBool(bool(yy3468)) } } } else { r.EncodeNil() } } else { - if yyq3371[4] { + if yyq3454[4] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("orphanDependents")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.OrphanDependents == nil { r.EncodeNil() } else { - yy3387 := *x.OrphanDependents - yym3388 := z.EncBinary() - _ = yym3388 + yy3470 := *x.OrphanDependents + yym3471 := z.EncBinary() + _ = yym3471 if false { } else { - r.EncodeBool(bool(yy3387)) + r.EncodeBool(bool(yy3470)) } } } } - if yyr3371 || yy2arr3371 { + if yyr3454 || yy2arr3454 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -43150,25 +44230,25 @@ func (x *DeleteOptions) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym3389 := z.DecBinary() - _ = yym3389 + yym3472 := z.DecBinary() + _ = yym3472 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct3390 := r.ContainerType() - if yyct3390 == codecSelferValueTypeMap1234 { - yyl3390 := r.ReadMapStart() - if yyl3390 == 0 { + yyct3473 := r.ContainerType() + if yyct3473 == codecSelferValueTypeMap1234 { + yyl3473 := r.ReadMapStart() + if yyl3473 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl3390, d) + x.codecDecodeSelfFromMap(yyl3473, d) } - } else if yyct3390 == codecSelferValueTypeArray1234 { - yyl3390 := r.ReadArrayStart() - if yyl3390 == 0 { + } else if yyct3473 == codecSelferValueTypeArray1234 { + yyl3473 := r.ReadArrayStart() + if yyl3473 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl3390, d) + x.codecDecodeSelfFromArray(yyl3473, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -43180,12 +44260,12 @@ func (x *DeleteOptions) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys3391Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3391Slc - var yyhl3391 bool = l >= 0 - for yyj3391 := 0; ; yyj3391++ { - if yyhl3391 { - if yyj3391 >= l { + var yys3474Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys3474Slc + var yyhl3474 bool = l >= 0 + for yyj3474 := 0; ; yyj3474++ { + if yyhl3474 { + if yyj3474 >= l { break } } else { @@ -43194,10 +44274,10 @@ func (x *DeleteOptions) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3391Slc = r.DecodeBytes(yys3391Slc, true, true) - yys3391 := string(yys3391Slc) + yys3474Slc = r.DecodeBytes(yys3474Slc, true, true) + yys3474 := string(yys3474Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3391 { + switch yys3474 { case "kind": if r.TryDecodeAsNil() { x.Kind = "" @@ -43219,8 +44299,8 @@ func (x *DeleteOptions) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { if x.GracePeriodSeconds == nil { x.GracePeriodSeconds = new(int64) } - yym3395 := z.DecBinary() - _ = yym3395 + yym3478 := z.DecBinary() + _ = yym3478 if false { } else { *((*int64)(x.GracePeriodSeconds)) = int64(r.DecodeInt(64)) @@ -43246,17 +44326,17 @@ func (x *DeleteOptions) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { if x.OrphanDependents == nil { x.OrphanDependents = new(bool) } - yym3398 := z.DecBinary() - _ = yym3398 + yym3481 := z.DecBinary() + _ = yym3481 if false { } else { *((*bool)(x.OrphanDependents)) = r.DecodeBool() } } default: - z.DecStructFieldNotFound(-1, yys3391) - } // end switch yys3391 - } // end for yyj3391 + z.DecStructFieldNotFound(-1, yys3474) + } // end switch yys3474 + } // end for yyj3474 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -43264,16 +44344,16 @@ func (x *DeleteOptions) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj3399 int - var yyb3399 bool - var yyhl3399 bool = l >= 0 - yyj3399++ - if yyhl3399 { - yyb3399 = yyj3399 > l + var yyj3482 int + var yyb3482 bool + var yyhl3482 bool = l >= 0 + yyj3482++ + if yyhl3482 { + yyb3482 = yyj3482 > l } else { - yyb3399 = r.CheckBreak() + yyb3482 = r.CheckBreak() } - if yyb3399 { + if yyb3482 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -43283,13 +44363,13 @@ func (x *DeleteOptions) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.Kind = string(r.DecodeString()) } - yyj3399++ - if yyhl3399 { - yyb3399 = yyj3399 > l + yyj3482++ + if yyhl3482 { + yyb3482 = yyj3482 > l } else { - yyb3399 = r.CheckBreak() + yyb3482 = r.CheckBreak() } - if yyb3399 { + if yyb3482 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -43299,13 +44379,13 @@ func (x *DeleteOptions) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.APIVersion = string(r.DecodeString()) } - yyj3399++ - if yyhl3399 { - yyb3399 = yyj3399 > l + yyj3482++ + if yyhl3482 { + yyb3482 = yyj3482 > l } else { - yyb3399 = r.CheckBreak() + yyb3482 = r.CheckBreak() } - if yyb3399 { + if yyb3482 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -43318,20 +44398,20 @@ func (x *DeleteOptions) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if x.GracePeriodSeconds == nil { x.GracePeriodSeconds = new(int64) } - yym3403 := z.DecBinary() - _ = yym3403 + yym3486 := z.DecBinary() + _ = yym3486 if false { } else { *((*int64)(x.GracePeriodSeconds)) = int64(r.DecodeInt(64)) } } - yyj3399++ - if yyhl3399 { - yyb3399 = yyj3399 > l + yyj3482++ + if yyhl3482 { + yyb3482 = yyj3482 > l } else { - yyb3399 = r.CheckBreak() + yyb3482 = r.CheckBreak() } - if yyb3399 { + if yyb3482 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -43346,13 +44426,13 @@ func (x *DeleteOptions) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } x.Preconditions.CodecDecodeSelf(d) } - yyj3399++ - if yyhl3399 { - yyb3399 = yyj3399 > l + yyj3482++ + if yyhl3482 { + yyb3482 = yyj3482 > l } else { - yyb3399 = r.CheckBreak() + yyb3482 = r.CheckBreak() } - if yyb3399 { + if yyb3482 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -43365,25 +44445,25 @@ func (x *DeleteOptions) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if x.OrphanDependents == nil { x.OrphanDependents = new(bool) } - yym3406 := z.DecBinary() - _ = yym3406 + yym3489 := z.DecBinary() + _ = yym3489 if false { } else { *((*bool)(x.OrphanDependents)) = r.DecodeBool() } } for { - yyj3399++ - if yyhl3399 { - yyb3399 = yyj3399 > l + yyj3482++ + if yyhl3482 { + yyb3482 = yyj3482 > l } else { - yyb3399 = r.CheckBreak() + yyb3482 = r.CheckBreak() } - if yyb3399 { + if yyb3482 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj3399-1, "") + z.DecStructFieldNotFound(yyj3482-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -43395,36 +44475,36 @@ func (x *ExportOptions) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym3407 := z.EncBinary() - _ = yym3407 + yym3490 := z.EncBinary() + _ = yym3490 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep3408 := !z.EncBinary() - yy2arr3408 := z.EncBasicHandle().StructToArray - var yyq3408 [4]bool - _, _, _ = yysep3408, yyq3408, yy2arr3408 - const yyr3408 bool = false - yyq3408[0] = x.Kind != "" - yyq3408[1] = x.APIVersion != "" - var yynn3408 int - if yyr3408 || yy2arr3408 { + yysep3491 := !z.EncBinary() + yy2arr3491 := z.EncBasicHandle().StructToArray + var yyq3491 [4]bool + _, _, _ = yysep3491, yyq3491, yy2arr3491 + const yyr3491 bool = false + yyq3491[0] = x.Kind != "" + yyq3491[1] = x.APIVersion != "" + var yynn3491 int + if yyr3491 || yy2arr3491 { r.EncodeArrayStart(4) } else { - yynn3408 = 2 - for _, b := range yyq3408 { + yynn3491 = 2 + for _, b := range yyq3491 { if b { - yynn3408++ + yynn3491++ } } - r.EncodeMapStart(yynn3408) - yynn3408 = 0 + r.EncodeMapStart(yynn3491) + yynn3491 = 0 } - if yyr3408 || yy2arr3408 { + if yyr3491 || yy2arr3491 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3408[0] { - yym3410 := z.EncBinary() - _ = yym3410 + if yyq3491[0] { + yym3493 := z.EncBinary() + _ = yym3493 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) @@ -43433,23 +44513,23 @@ func (x *ExportOptions) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq3408[0] { + if yyq3491[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym3411 := z.EncBinary() - _ = yym3411 + yym3494 := z.EncBinary() + _ = yym3494 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } - if yyr3408 || yy2arr3408 { + if yyr3491 || yy2arr3491 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3408[1] { - yym3413 := z.EncBinary() - _ = yym3413 + if yyq3491[1] { + yym3496 := z.EncBinary() + _ = yym3496 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) @@ -43458,22 +44538,22 @@ func (x *ExportOptions) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq3408[1] { + if yyq3491[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym3414 := z.EncBinary() - _ = yym3414 + yym3497 := z.EncBinary() + _ = yym3497 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } - if yyr3408 || yy2arr3408 { + if yyr3491 || yy2arr3491 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym3416 := z.EncBinary() - _ = yym3416 + yym3499 := z.EncBinary() + _ = yym3499 if false { } else { r.EncodeBool(bool(x.Export)) @@ -43482,17 +44562,17 @@ func (x *ExportOptions) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("export")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym3417 := z.EncBinary() - _ = yym3417 + yym3500 := z.EncBinary() + _ = yym3500 if false { } else { r.EncodeBool(bool(x.Export)) } } - if yyr3408 || yy2arr3408 { + if yyr3491 || yy2arr3491 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym3419 := z.EncBinary() - _ = yym3419 + yym3502 := z.EncBinary() + _ = yym3502 if false { } else { r.EncodeBool(bool(x.Exact)) @@ -43501,14 +44581,14 @@ func (x *ExportOptions) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("exact")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym3420 := z.EncBinary() - _ = yym3420 + yym3503 := z.EncBinary() + _ = yym3503 if false { } else { r.EncodeBool(bool(x.Exact)) } } - if yyr3408 || yy2arr3408 { + if yyr3491 || yy2arr3491 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -43521,25 +44601,25 @@ func (x *ExportOptions) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym3421 := z.DecBinary() - _ = yym3421 + yym3504 := z.DecBinary() + _ = yym3504 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct3422 := r.ContainerType() - if yyct3422 == codecSelferValueTypeMap1234 { - yyl3422 := r.ReadMapStart() - if yyl3422 == 0 { + yyct3505 := r.ContainerType() + if yyct3505 == codecSelferValueTypeMap1234 { + yyl3505 := r.ReadMapStart() + if yyl3505 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl3422, d) + x.codecDecodeSelfFromMap(yyl3505, d) } - } else if yyct3422 == codecSelferValueTypeArray1234 { - yyl3422 := r.ReadArrayStart() - if yyl3422 == 0 { + } else if yyct3505 == codecSelferValueTypeArray1234 { + yyl3505 := r.ReadArrayStart() + if yyl3505 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl3422, d) + x.codecDecodeSelfFromArray(yyl3505, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -43551,12 +44631,12 @@ func (x *ExportOptions) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys3423Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3423Slc - var yyhl3423 bool = l >= 0 - for yyj3423 := 0; ; yyj3423++ { - if yyhl3423 { - if yyj3423 >= l { + var yys3506Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys3506Slc + var yyhl3506 bool = l >= 0 + for yyj3506 := 0; ; yyj3506++ { + if yyhl3506 { + if yyj3506 >= l { break } } else { @@ -43565,10 +44645,10 @@ func (x *ExportOptions) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3423Slc = r.DecodeBytes(yys3423Slc, true, true) - yys3423 := string(yys3423Slc) + yys3506Slc = r.DecodeBytes(yys3506Slc, true, true) + yys3506 := string(yys3506Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3423 { + switch yys3506 { case "kind": if r.TryDecodeAsNil() { x.Kind = "" @@ -43594,9 +44674,9 @@ func (x *ExportOptions) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { x.Exact = bool(r.DecodeBool()) } default: - z.DecStructFieldNotFound(-1, yys3423) - } // end switch yys3423 - } // end for yyj3423 + z.DecStructFieldNotFound(-1, yys3506) + } // end switch yys3506 + } // end for yyj3506 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -43604,16 +44684,16 @@ func (x *ExportOptions) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj3428 int - var yyb3428 bool - var yyhl3428 bool = l >= 0 - yyj3428++ - if yyhl3428 { - yyb3428 = yyj3428 > l + var yyj3511 int + var yyb3511 bool + var yyhl3511 bool = l >= 0 + yyj3511++ + if yyhl3511 { + yyb3511 = yyj3511 > l } else { - yyb3428 = r.CheckBreak() + yyb3511 = r.CheckBreak() } - if yyb3428 { + if yyb3511 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -43623,13 +44703,13 @@ func (x *ExportOptions) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.Kind = string(r.DecodeString()) } - yyj3428++ - if yyhl3428 { - yyb3428 = yyj3428 > l + yyj3511++ + if yyhl3511 { + yyb3511 = yyj3511 > l } else { - yyb3428 = r.CheckBreak() + yyb3511 = r.CheckBreak() } - if yyb3428 { + if yyb3511 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -43639,13 +44719,13 @@ func (x *ExportOptions) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.APIVersion = string(r.DecodeString()) } - yyj3428++ - if yyhl3428 { - yyb3428 = yyj3428 > l + yyj3511++ + if yyhl3511 { + yyb3511 = yyj3511 > l } else { - yyb3428 = r.CheckBreak() + yyb3511 = r.CheckBreak() } - if yyb3428 { + if yyb3511 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -43655,13 +44735,13 @@ func (x *ExportOptions) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.Export = bool(r.DecodeBool()) } - yyj3428++ - if yyhl3428 { - yyb3428 = yyj3428 > l + yyj3511++ + if yyhl3511 { + yyb3511 = yyj3511 > l } else { - yyb3428 = r.CheckBreak() + yyb3511 = r.CheckBreak() } - if yyb3428 { + if yyb3511 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -43672,17 +44752,17 @@ func (x *ExportOptions) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { x.Exact = bool(r.DecodeBool()) } for { - yyj3428++ - if yyhl3428 { - yyb3428 = yyj3428 > l + yyj3511++ + if yyhl3511 { + yyb3511 = yyj3511 > l } else { - yyb3428 = r.CheckBreak() + yyb3511 = r.CheckBreak() } - if yyb3428 { + if yyb3511 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj3428-1, "") + z.DecStructFieldNotFound(yyj3511-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -43694,41 +44774,41 @@ func (x *ListOptions) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym3433 := z.EncBinary() - _ = yym3433 + yym3516 := z.EncBinary() + _ = yym3516 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - 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 { + yysep3517 := !z.EncBinary() + yy2arr3517 := z.EncBasicHandle().StructToArray + var yyq3517 [7]bool + _, _, _ = yysep3517, yyq3517, yy2arr3517 + const yyr3517 bool = false + yyq3517[0] = x.Kind != "" + yyq3517[1] = x.APIVersion != "" + yyq3517[2] = x.LabelSelector != "" + yyq3517[3] = x.FieldSelector != "" + yyq3517[4] = x.Watch != false + yyq3517[5] = x.ResourceVersion != "" + yyq3517[6] = x.TimeoutSeconds != nil + var yynn3517 int + if yyr3517 || yy2arr3517 { r.EncodeArrayStart(7) } else { - yynn3434 = 0 - for _, b := range yyq3434 { + yynn3517 = 0 + for _, b := range yyq3517 { if b { - yynn3434++ + yynn3517++ } } - r.EncodeMapStart(yynn3434) - yynn3434 = 0 + r.EncodeMapStart(yynn3517) + yynn3517 = 0 } - if yyr3434 || yy2arr3434 { + if yyr3517 || yy2arr3517 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3434[0] { - yym3436 := z.EncBinary() - _ = yym3436 + if yyq3517[0] { + yym3519 := z.EncBinary() + _ = yym3519 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) @@ -43737,23 +44817,23 @@ func (x *ListOptions) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq3434[0] { + if yyq3517[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym3437 := z.EncBinary() - _ = yym3437 + yym3520 := z.EncBinary() + _ = yym3520 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } - if yyr3434 || yy2arr3434 { + if yyr3517 || yy2arr3517 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3434[1] { - yym3439 := z.EncBinary() - _ = yym3439 + if yyq3517[1] { + yym3522 := z.EncBinary() + _ = yym3522 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) @@ -43762,23 +44842,23 @@ func (x *ListOptions) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq3434[1] { + if yyq3517[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym3440 := z.EncBinary() - _ = yym3440 + yym3523 := z.EncBinary() + _ = yym3523 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } - if yyr3434 || yy2arr3434 { + if yyr3517 || yy2arr3517 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3434[2] { - yym3442 := z.EncBinary() - _ = yym3442 + if yyq3517[2] { + yym3525 := z.EncBinary() + _ = yym3525 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.LabelSelector)) @@ -43787,23 +44867,23 @@ func (x *ListOptions) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq3434[2] { + if yyq3517[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("labelSelector")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym3443 := z.EncBinary() - _ = yym3443 + yym3526 := z.EncBinary() + _ = yym3526 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.LabelSelector)) } } } - if yyr3434 || yy2arr3434 { + if yyr3517 || yy2arr3517 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3434[3] { - yym3445 := z.EncBinary() - _ = yym3445 + if yyq3517[3] { + yym3528 := z.EncBinary() + _ = yym3528 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.FieldSelector)) @@ -43812,23 +44892,23 @@ func (x *ListOptions) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq3434[3] { + if yyq3517[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("fieldSelector")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym3446 := z.EncBinary() - _ = yym3446 + yym3529 := z.EncBinary() + _ = yym3529 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.FieldSelector)) } } } - if yyr3434 || yy2arr3434 { + if yyr3517 || yy2arr3517 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3434[4] { - yym3448 := z.EncBinary() - _ = yym3448 + if yyq3517[4] { + yym3531 := z.EncBinary() + _ = yym3531 if false { } else { r.EncodeBool(bool(x.Watch)) @@ -43837,23 +44917,23 @@ func (x *ListOptions) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeBool(false) } } else { - if yyq3434[4] { + if yyq3517[4] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("watch")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym3449 := z.EncBinary() - _ = yym3449 + yym3532 := z.EncBinary() + _ = yym3532 if false { } else { r.EncodeBool(bool(x.Watch)) } } } - if yyr3434 || yy2arr3434 { + if yyr3517 || yy2arr3517 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3434[5] { - yym3451 := z.EncBinary() - _ = yym3451 + if yyq3517[5] { + yym3534 := z.EncBinary() + _ = yym3534 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.ResourceVersion)) @@ -43862,54 +44942,54 @@ func (x *ListOptions) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq3434[5] { + if yyq3517[5] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("resourceVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym3452 := z.EncBinary() - _ = yym3452 + yym3535 := z.EncBinary() + _ = yym3535 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.ResourceVersion)) } } } - if yyr3434 || yy2arr3434 { + if yyr3517 || yy2arr3517 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3434[6] { + if yyq3517[6] { if x.TimeoutSeconds == nil { r.EncodeNil() } else { - yy3454 := *x.TimeoutSeconds - yym3455 := z.EncBinary() - _ = yym3455 + yy3537 := *x.TimeoutSeconds + yym3538 := z.EncBinary() + _ = yym3538 if false { } else { - r.EncodeInt(int64(yy3454)) + r.EncodeInt(int64(yy3537)) } } } else { r.EncodeNil() } } else { - if yyq3434[6] { + if yyq3517[6] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("timeoutSeconds")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.TimeoutSeconds == nil { r.EncodeNil() } else { - yy3456 := *x.TimeoutSeconds - yym3457 := z.EncBinary() - _ = yym3457 + yy3539 := *x.TimeoutSeconds + yym3540 := z.EncBinary() + _ = yym3540 if false { } else { - r.EncodeInt(int64(yy3456)) + r.EncodeInt(int64(yy3539)) } } } } - if yyr3434 || yy2arr3434 { + if yyr3517 || yy2arr3517 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -43922,25 +45002,25 @@ func (x *ListOptions) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym3458 := z.DecBinary() - _ = yym3458 + yym3541 := z.DecBinary() + _ = yym3541 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct3459 := r.ContainerType() - if yyct3459 == codecSelferValueTypeMap1234 { - yyl3459 := r.ReadMapStart() - if yyl3459 == 0 { + yyct3542 := r.ContainerType() + if yyct3542 == codecSelferValueTypeMap1234 { + yyl3542 := r.ReadMapStart() + if yyl3542 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl3459, d) + x.codecDecodeSelfFromMap(yyl3542, d) } - } else if yyct3459 == codecSelferValueTypeArray1234 { - yyl3459 := r.ReadArrayStart() - if yyl3459 == 0 { + } else if yyct3542 == codecSelferValueTypeArray1234 { + yyl3542 := r.ReadArrayStart() + if yyl3542 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl3459, d) + x.codecDecodeSelfFromArray(yyl3542, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -43952,12 +45032,12 @@ func (x *ListOptions) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys3460Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3460Slc - var yyhl3460 bool = l >= 0 - for yyj3460 := 0; ; yyj3460++ { - if yyhl3460 { - if yyj3460 >= l { + var yys3543Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys3543Slc + var yyhl3543 bool = l >= 0 + for yyj3543 := 0; ; yyj3543++ { + if yyhl3543 { + if yyj3543 >= l { break } } else { @@ -43966,10 +45046,10 @@ func (x *ListOptions) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3460Slc = r.DecodeBytes(yys3460Slc, true, true) - yys3460 := string(yys3460Slc) + yys3543Slc = r.DecodeBytes(yys3543Slc, true, true) + yys3543 := string(yys3543Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3460 { + switch yys3543 { case "kind": if r.TryDecodeAsNil() { x.Kind = "" @@ -44015,17 +45095,17 @@ func (x *ListOptions) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { if x.TimeoutSeconds == nil { x.TimeoutSeconds = new(int64) } - yym3468 := z.DecBinary() - _ = yym3468 + yym3551 := z.DecBinary() + _ = yym3551 if false { } else { *((*int64)(x.TimeoutSeconds)) = int64(r.DecodeInt(64)) } } default: - z.DecStructFieldNotFound(-1, yys3460) - } // end switch yys3460 - } // end for yyj3460 + z.DecStructFieldNotFound(-1, yys3543) + } // end switch yys3543 + } // end for yyj3543 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -44033,16 +45113,16 @@ func (x *ListOptions) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj3469 int - var yyb3469 bool - var yyhl3469 bool = l >= 0 - yyj3469++ - if yyhl3469 { - yyb3469 = yyj3469 > l + var yyj3552 int + var yyb3552 bool + var yyhl3552 bool = l >= 0 + yyj3552++ + if yyhl3552 { + yyb3552 = yyj3552 > l } else { - yyb3469 = r.CheckBreak() + yyb3552 = r.CheckBreak() } - if yyb3469 { + if yyb3552 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -44052,13 +45132,13 @@ func (x *ListOptions) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.Kind = string(r.DecodeString()) } - yyj3469++ - if yyhl3469 { - yyb3469 = yyj3469 > l + yyj3552++ + if yyhl3552 { + yyb3552 = yyj3552 > l } else { - yyb3469 = r.CheckBreak() + yyb3552 = r.CheckBreak() } - if yyb3469 { + if yyb3552 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -44068,13 +45148,13 @@ func (x *ListOptions) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.APIVersion = string(r.DecodeString()) } - yyj3469++ - if yyhl3469 { - yyb3469 = yyj3469 > l + yyj3552++ + if yyhl3552 { + yyb3552 = yyj3552 > l } else { - yyb3469 = r.CheckBreak() + yyb3552 = r.CheckBreak() } - if yyb3469 { + if yyb3552 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -44084,13 +45164,13 @@ func (x *ListOptions) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.LabelSelector = string(r.DecodeString()) } - yyj3469++ - if yyhl3469 { - yyb3469 = yyj3469 > l + yyj3552++ + if yyhl3552 { + yyb3552 = yyj3552 > l } else { - yyb3469 = r.CheckBreak() + yyb3552 = r.CheckBreak() } - if yyb3469 { + if yyb3552 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -44100,13 +45180,13 @@ func (x *ListOptions) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.FieldSelector = string(r.DecodeString()) } - yyj3469++ - if yyhl3469 { - yyb3469 = yyj3469 > l + yyj3552++ + if yyhl3552 { + yyb3552 = yyj3552 > l } else { - yyb3469 = r.CheckBreak() + yyb3552 = r.CheckBreak() } - if yyb3469 { + if yyb3552 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -44116,13 +45196,13 @@ func (x *ListOptions) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.Watch = bool(r.DecodeBool()) } - yyj3469++ - if yyhl3469 { - yyb3469 = yyj3469 > l + yyj3552++ + if yyhl3552 { + yyb3552 = yyj3552 > l } else { - yyb3469 = r.CheckBreak() + yyb3552 = r.CheckBreak() } - if yyb3469 { + if yyb3552 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -44132,13 +45212,13 @@ func (x *ListOptions) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.ResourceVersion = string(r.DecodeString()) } - yyj3469++ - if yyhl3469 { - yyb3469 = yyj3469 > l + yyj3552++ + if yyhl3552 { + yyb3552 = yyj3552 > l } else { - yyb3469 = r.CheckBreak() + yyb3552 = r.CheckBreak() } - if yyb3469 { + if yyb3552 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -44151,25 +45231,25 @@ func (x *ListOptions) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if x.TimeoutSeconds == nil { x.TimeoutSeconds = new(int64) } - yym3477 := z.DecBinary() - _ = yym3477 + yym3560 := z.DecBinary() + _ = yym3560 if false { } else { *((*int64)(x.TimeoutSeconds)) = int64(r.DecodeInt(64)) } } for { - yyj3469++ - if yyhl3469 { - yyb3469 = yyj3469 > l + yyj3552++ + if yyhl3552 { + yyb3552 = yyj3552 > l } else { - yyb3469 = r.CheckBreak() + yyb3552 = r.CheckBreak() } - if yyb3469 { + if yyb3552 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj3469-1, "") + z.DecStructFieldNotFound(yyj3552-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -44181,44 +45261,44 @@ func (x *PodLogOptions) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym3478 := z.EncBinary() - _ = yym3478 + yym3561 := z.EncBinary() + _ = yym3561 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - 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 { + yysep3562 := !z.EncBinary() + yy2arr3562 := z.EncBasicHandle().StructToArray + var yyq3562 [10]bool + _, _, _ = yysep3562, yyq3562, yy2arr3562 + const yyr3562 bool = false + yyq3562[0] = x.Kind != "" + yyq3562[1] = x.APIVersion != "" + yyq3562[2] = x.Container != "" + yyq3562[3] = x.Follow != false + yyq3562[4] = x.Previous != false + yyq3562[5] = x.SinceSeconds != nil + yyq3562[6] = x.SinceTime != nil + yyq3562[7] = x.Timestamps != false + yyq3562[8] = x.TailLines != nil + yyq3562[9] = x.LimitBytes != nil + var yynn3562 int + if yyr3562 || yy2arr3562 { r.EncodeArrayStart(10) } else { - yynn3479 = 0 - for _, b := range yyq3479 { + yynn3562 = 0 + for _, b := range yyq3562 { if b { - yynn3479++ + yynn3562++ } } - r.EncodeMapStart(yynn3479) - yynn3479 = 0 + r.EncodeMapStart(yynn3562) + yynn3562 = 0 } - if yyr3479 || yy2arr3479 { + if yyr3562 || yy2arr3562 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3479[0] { - yym3481 := z.EncBinary() - _ = yym3481 + if yyq3562[0] { + yym3564 := z.EncBinary() + _ = yym3564 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) @@ -44227,23 +45307,23 @@ func (x *PodLogOptions) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq3479[0] { + if yyq3562[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym3482 := z.EncBinary() - _ = yym3482 + yym3565 := z.EncBinary() + _ = yym3565 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } - if yyr3479 || yy2arr3479 { + if yyr3562 || yy2arr3562 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3479[1] { - yym3484 := z.EncBinary() - _ = yym3484 + if yyq3562[1] { + yym3567 := z.EncBinary() + _ = yym3567 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) @@ -44252,23 +45332,23 @@ func (x *PodLogOptions) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq3479[1] { + if yyq3562[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym3485 := z.EncBinary() - _ = yym3485 + yym3568 := z.EncBinary() + _ = yym3568 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } - if yyr3479 || yy2arr3479 { + if yyr3562 || yy2arr3562 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3479[2] { - yym3487 := z.EncBinary() - _ = yym3487 + if yyq3562[2] { + yym3570 := z.EncBinary() + _ = yym3570 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Container)) @@ -44277,23 +45357,23 @@ func (x *PodLogOptions) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq3479[2] { + if yyq3562[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("container")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym3488 := z.EncBinary() - _ = yym3488 + yym3571 := z.EncBinary() + _ = yym3571 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Container)) } } } - if yyr3479 || yy2arr3479 { + if yyr3562 || yy2arr3562 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3479[3] { - yym3490 := z.EncBinary() - _ = yym3490 + if yyq3562[3] { + yym3573 := z.EncBinary() + _ = yym3573 if false { } else { r.EncodeBool(bool(x.Follow)) @@ -44302,23 +45382,23 @@ func (x *PodLogOptions) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeBool(false) } } else { - if yyq3479[3] { + if yyq3562[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("follow")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym3491 := z.EncBinary() - _ = yym3491 + yym3574 := z.EncBinary() + _ = yym3574 if false { } else { r.EncodeBool(bool(x.Follow)) } } } - if yyr3479 || yy2arr3479 { + if yyr3562 || yy2arr3562 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3479[4] { - yym3493 := z.EncBinary() - _ = yym3493 + if yyq3562[4] { + yym3576 := z.EncBinary() + _ = yym3576 if false { } else { r.EncodeBool(bool(x.Previous)) @@ -44327,66 +45407,66 @@ func (x *PodLogOptions) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeBool(false) } } else { - if yyq3479[4] { + if yyq3562[4] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("previous")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym3494 := z.EncBinary() - _ = yym3494 + yym3577 := z.EncBinary() + _ = yym3577 if false { } else { r.EncodeBool(bool(x.Previous)) } } } - if yyr3479 || yy2arr3479 { + if yyr3562 || yy2arr3562 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3479[5] { + if yyq3562[5] { if x.SinceSeconds == nil { r.EncodeNil() } else { - yy3496 := *x.SinceSeconds - yym3497 := z.EncBinary() - _ = yym3497 + yy3579 := *x.SinceSeconds + yym3580 := z.EncBinary() + _ = yym3580 if false { } else { - r.EncodeInt(int64(yy3496)) + r.EncodeInt(int64(yy3579)) } } } else { r.EncodeNil() } } else { - if yyq3479[5] { + if yyq3562[5] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("sinceSeconds")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.SinceSeconds == nil { r.EncodeNil() } else { - yy3498 := *x.SinceSeconds - yym3499 := z.EncBinary() - _ = yym3499 + yy3581 := *x.SinceSeconds + yym3582 := z.EncBinary() + _ = yym3582 if false { } else { - r.EncodeInt(int64(yy3498)) + r.EncodeInt(int64(yy3581)) } } } } - if yyr3479 || yy2arr3479 { + if yyr3562 || yy2arr3562 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3479[6] { + if yyq3562[6] { if x.SinceTime == nil { r.EncodeNil() } else { - yym3501 := z.EncBinary() - _ = yym3501 + yym3584 := z.EncBinary() + _ = yym3584 if false { } else if z.HasExtensions() && z.EncExt(x.SinceTime) { - } else if yym3501 { + } else if yym3584 { z.EncBinaryMarshal(x.SinceTime) - } else if !yym3501 && z.IsJSONHandle() { + } else if !yym3584 && z.IsJSONHandle() { z.EncJSONMarshal(x.SinceTime) } else { z.EncFallback(x.SinceTime) @@ -44396,20 +45476,20 @@ func (x *PodLogOptions) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq3479[6] { + if yyq3562[6] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("sinceTime")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.SinceTime == nil { r.EncodeNil() } else { - yym3502 := z.EncBinary() - _ = yym3502 + yym3585 := z.EncBinary() + _ = yym3585 if false { } else if z.HasExtensions() && z.EncExt(x.SinceTime) { - } else if yym3502 { + } else if yym3585 { z.EncBinaryMarshal(x.SinceTime) - } else if !yym3502 && z.IsJSONHandle() { + } else if !yym3585 && z.IsJSONHandle() { z.EncJSONMarshal(x.SinceTime) } else { z.EncFallback(x.SinceTime) @@ -44417,11 +45497,11 @@ func (x *PodLogOptions) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr3479 || yy2arr3479 { + if yyr3562 || yy2arr3562 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3479[7] { - yym3504 := z.EncBinary() - _ = yym3504 + if yyq3562[7] { + yym3587 := z.EncBinary() + _ = yym3587 if false { } else { r.EncodeBool(bool(x.Timestamps)) @@ -44430,89 +45510,89 @@ func (x *PodLogOptions) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeBool(false) } } else { - if yyq3479[7] { + if yyq3562[7] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("timestamps")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym3505 := z.EncBinary() - _ = yym3505 + yym3588 := z.EncBinary() + _ = yym3588 if false { } else { r.EncodeBool(bool(x.Timestamps)) } } } - if yyr3479 || yy2arr3479 { + if yyr3562 || yy2arr3562 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3479[8] { + if yyq3562[8] { if x.TailLines == nil { r.EncodeNil() } else { - yy3507 := *x.TailLines - yym3508 := z.EncBinary() - _ = yym3508 + yy3590 := *x.TailLines + yym3591 := z.EncBinary() + _ = yym3591 if false { } else { - r.EncodeInt(int64(yy3507)) + r.EncodeInt(int64(yy3590)) } } } else { r.EncodeNil() } } else { - if yyq3479[8] { + if yyq3562[8] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("tailLines")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.TailLines == nil { r.EncodeNil() } else { - yy3509 := *x.TailLines - yym3510 := z.EncBinary() - _ = yym3510 + yy3592 := *x.TailLines + yym3593 := z.EncBinary() + _ = yym3593 if false { } else { - r.EncodeInt(int64(yy3509)) + r.EncodeInt(int64(yy3592)) } } } } - if yyr3479 || yy2arr3479 { + if yyr3562 || yy2arr3562 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3479[9] { + if yyq3562[9] { if x.LimitBytes == nil { r.EncodeNil() } else { - yy3512 := *x.LimitBytes - yym3513 := z.EncBinary() - _ = yym3513 + yy3595 := *x.LimitBytes + yym3596 := z.EncBinary() + _ = yym3596 if false { } else { - r.EncodeInt(int64(yy3512)) + r.EncodeInt(int64(yy3595)) } } } else { r.EncodeNil() } } else { - if yyq3479[9] { + if yyq3562[9] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("limitBytes")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.LimitBytes == nil { r.EncodeNil() } else { - yy3514 := *x.LimitBytes - yym3515 := z.EncBinary() - _ = yym3515 + yy3597 := *x.LimitBytes + yym3598 := z.EncBinary() + _ = yym3598 if false { } else { - r.EncodeInt(int64(yy3514)) + r.EncodeInt(int64(yy3597)) } } } } - if yyr3479 || yy2arr3479 { + if yyr3562 || yy2arr3562 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -44525,25 +45605,25 @@ func (x *PodLogOptions) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym3516 := z.DecBinary() - _ = yym3516 + yym3599 := z.DecBinary() + _ = yym3599 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct3517 := r.ContainerType() - if yyct3517 == codecSelferValueTypeMap1234 { - yyl3517 := r.ReadMapStart() - if yyl3517 == 0 { + yyct3600 := r.ContainerType() + if yyct3600 == codecSelferValueTypeMap1234 { + yyl3600 := r.ReadMapStart() + if yyl3600 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl3517, d) + x.codecDecodeSelfFromMap(yyl3600, d) } - } else if yyct3517 == codecSelferValueTypeArray1234 { - yyl3517 := r.ReadArrayStart() - if yyl3517 == 0 { + } else if yyct3600 == codecSelferValueTypeArray1234 { + yyl3600 := r.ReadArrayStart() + if yyl3600 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl3517, d) + x.codecDecodeSelfFromArray(yyl3600, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -44555,12 +45635,12 @@ func (x *PodLogOptions) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys3518Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3518Slc - var yyhl3518 bool = l >= 0 - for yyj3518 := 0; ; yyj3518++ { - if yyhl3518 { - if yyj3518 >= l { + 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 { @@ -44569,10 +45649,10 @@ func (x *PodLogOptions) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3518Slc = r.DecodeBytes(yys3518Slc, true, true) - yys3518 := string(yys3518Slc) + yys3601Slc = r.DecodeBytes(yys3601Slc, true, true) + yys3601 := string(yys3601Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3518 { + switch yys3601 { case "kind": if r.TryDecodeAsNil() { x.Kind = "" @@ -44612,8 +45692,8 @@ func (x *PodLogOptions) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { if x.SinceSeconds == nil { x.SinceSeconds = new(int64) } - yym3525 := z.DecBinary() - _ = yym3525 + yym3608 := z.DecBinary() + _ = yym3608 if false { } else { *((*int64)(x.SinceSeconds)) = int64(r.DecodeInt(64)) @@ -44628,13 +45708,13 @@ func (x *PodLogOptions) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { if x.SinceTime == nil { x.SinceTime = new(pkg2_unversioned.Time) } - yym3527 := z.DecBinary() - _ = yym3527 + yym3610 := z.DecBinary() + _ = yym3610 if false { } else if z.HasExtensions() && z.DecExt(x.SinceTime) { - } else if yym3527 { + } else if yym3610 { z.DecBinaryUnmarshal(x.SinceTime) - } else if !yym3527 && z.IsJSONHandle() { + } else if !yym3610 && z.IsJSONHandle() { z.DecJSONUnmarshal(x.SinceTime) } else { z.DecFallback(x.SinceTime, false) @@ -44655,8 +45735,8 @@ func (x *PodLogOptions) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { if x.TailLines == nil { x.TailLines = new(int64) } - yym3530 := z.DecBinary() - _ = yym3530 + yym3613 := z.DecBinary() + _ = yym3613 if false { } else { *((*int64)(x.TailLines)) = int64(r.DecodeInt(64)) @@ -44671,17 +45751,17 @@ func (x *PodLogOptions) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { if x.LimitBytes == nil { x.LimitBytes = new(int64) } - yym3532 := z.DecBinary() - _ = yym3532 + yym3615 := z.DecBinary() + _ = yym3615 if false { } else { *((*int64)(x.LimitBytes)) = int64(r.DecodeInt(64)) } } default: - z.DecStructFieldNotFound(-1, yys3518) - } // end switch yys3518 - } // end for yyj3518 + z.DecStructFieldNotFound(-1, yys3601) + } // end switch yys3601 + } // end for yyj3601 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -44689,16 +45769,16 @@ func (x *PodLogOptions) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj3533 int - var yyb3533 bool - var yyhl3533 bool = l >= 0 - yyj3533++ - if yyhl3533 { - yyb3533 = yyj3533 > l + var yyj3616 int + var yyb3616 bool + var yyhl3616 bool = l >= 0 + yyj3616++ + if yyhl3616 { + yyb3616 = yyj3616 > l } else { - yyb3533 = r.CheckBreak() + yyb3616 = r.CheckBreak() } - if yyb3533 { + if yyb3616 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -44708,13 +45788,13 @@ func (x *PodLogOptions) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.Kind = string(r.DecodeString()) } - yyj3533++ - if yyhl3533 { - yyb3533 = yyj3533 > l + yyj3616++ + if yyhl3616 { + yyb3616 = yyj3616 > l } else { - yyb3533 = r.CheckBreak() + yyb3616 = r.CheckBreak() } - if yyb3533 { + if yyb3616 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -44724,13 +45804,13 @@ func (x *PodLogOptions) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.APIVersion = string(r.DecodeString()) } - yyj3533++ - if yyhl3533 { - yyb3533 = yyj3533 > l + yyj3616++ + if yyhl3616 { + yyb3616 = yyj3616 > l } else { - yyb3533 = r.CheckBreak() + yyb3616 = r.CheckBreak() } - if yyb3533 { + if yyb3616 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -44740,13 +45820,13 @@ func (x *PodLogOptions) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.Container = string(r.DecodeString()) } - yyj3533++ - if yyhl3533 { - yyb3533 = yyj3533 > l + yyj3616++ + if yyhl3616 { + yyb3616 = yyj3616 > l } else { - yyb3533 = r.CheckBreak() + yyb3616 = r.CheckBreak() } - if yyb3533 { + if yyb3616 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -44756,13 +45836,13 @@ func (x *PodLogOptions) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.Follow = bool(r.DecodeBool()) } - yyj3533++ - if yyhl3533 { - yyb3533 = yyj3533 > l + yyj3616++ + if yyhl3616 { + yyb3616 = yyj3616 > l } else { - yyb3533 = r.CheckBreak() + yyb3616 = r.CheckBreak() } - if yyb3533 { + if yyb3616 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -44772,13 +45852,13 @@ func (x *PodLogOptions) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.Previous = bool(r.DecodeBool()) } - yyj3533++ - if yyhl3533 { - yyb3533 = yyj3533 > l + yyj3616++ + if yyhl3616 { + yyb3616 = yyj3616 > l } else { - yyb3533 = r.CheckBreak() + yyb3616 = r.CheckBreak() } - if yyb3533 { + if yyb3616 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -44791,20 +45871,20 @@ func (x *PodLogOptions) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if x.SinceSeconds == nil { x.SinceSeconds = new(int64) } - yym3540 := z.DecBinary() - _ = yym3540 + yym3623 := z.DecBinary() + _ = yym3623 if false { } else { *((*int64)(x.SinceSeconds)) = int64(r.DecodeInt(64)) } } - yyj3533++ - if yyhl3533 { - yyb3533 = yyj3533 > l + yyj3616++ + if yyhl3616 { + yyb3616 = yyj3616 > l } else { - yyb3533 = r.CheckBreak() + yyb3616 = r.CheckBreak() } - if yyb3533 { + if yyb3616 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -44817,25 +45897,25 @@ func (x *PodLogOptions) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if x.SinceTime == nil { x.SinceTime = new(pkg2_unversioned.Time) } - yym3542 := z.DecBinary() - _ = yym3542 + yym3625 := z.DecBinary() + _ = yym3625 if false { } else if z.HasExtensions() && z.DecExt(x.SinceTime) { - } else if yym3542 { + } else if yym3625 { z.DecBinaryUnmarshal(x.SinceTime) - } else if !yym3542 && z.IsJSONHandle() { + } else if !yym3625 && z.IsJSONHandle() { z.DecJSONUnmarshal(x.SinceTime) } else { z.DecFallback(x.SinceTime, false) } } - yyj3533++ - if yyhl3533 { - yyb3533 = yyj3533 > l + yyj3616++ + if yyhl3616 { + yyb3616 = yyj3616 > l } else { - yyb3533 = r.CheckBreak() + yyb3616 = r.CheckBreak() } - if yyb3533 { + if yyb3616 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -44845,13 +45925,13 @@ func (x *PodLogOptions) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.Timestamps = bool(r.DecodeBool()) } - yyj3533++ - if yyhl3533 { - yyb3533 = yyj3533 > l + yyj3616++ + if yyhl3616 { + yyb3616 = yyj3616 > l } else { - yyb3533 = r.CheckBreak() + yyb3616 = r.CheckBreak() } - if yyb3533 { + if yyb3616 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -44864,20 +45944,20 @@ func (x *PodLogOptions) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if x.TailLines == nil { x.TailLines = new(int64) } - yym3545 := z.DecBinary() - _ = yym3545 + yym3628 := z.DecBinary() + _ = yym3628 if false { } else { *((*int64)(x.TailLines)) = int64(r.DecodeInt(64)) } } - yyj3533++ - if yyhl3533 { - yyb3533 = yyj3533 > l + yyj3616++ + if yyhl3616 { + yyb3616 = yyj3616 > l } else { - yyb3533 = r.CheckBreak() + yyb3616 = r.CheckBreak() } - if yyb3533 { + if yyb3616 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -44890,25 +45970,25 @@ func (x *PodLogOptions) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if x.LimitBytes == nil { x.LimitBytes = new(int64) } - yym3547 := z.DecBinary() - _ = yym3547 + yym3630 := z.DecBinary() + _ = yym3630 if false { } else { *((*int64)(x.LimitBytes)) = int64(r.DecodeInt(64)) } } for { - yyj3533++ - if yyhl3533 { - yyb3533 = yyj3533 > l + yyj3616++ + if yyhl3616 { + yyb3616 = yyj3616 > l } else { - yyb3533 = r.CheckBreak() + yyb3616 = r.CheckBreak() } - if yyb3533 { + if yyb3616 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj3533-1, "") + z.DecStructFieldNotFound(yyj3616-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -44920,41 +46000,41 @@ func (x *PodAttachOptions) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym3548 := z.EncBinary() - _ = yym3548 + yym3631 := z.EncBinary() + _ = yym3631 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - 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 { + yysep3632 := !z.EncBinary() + yy2arr3632 := z.EncBasicHandle().StructToArray + var yyq3632 [7]bool + _, _, _ = yysep3632, yyq3632, yy2arr3632 + const yyr3632 bool = false + yyq3632[0] = x.Kind != "" + yyq3632[1] = x.APIVersion != "" + yyq3632[2] = x.Stdin != false + yyq3632[3] = x.Stdout != false + yyq3632[4] = x.Stderr != false + yyq3632[5] = x.TTY != false + yyq3632[6] = x.Container != "" + var yynn3632 int + if yyr3632 || yy2arr3632 { r.EncodeArrayStart(7) } else { - yynn3549 = 0 - for _, b := range yyq3549 { + yynn3632 = 0 + for _, b := range yyq3632 { if b { - yynn3549++ + yynn3632++ } } - r.EncodeMapStart(yynn3549) - yynn3549 = 0 + r.EncodeMapStart(yynn3632) + yynn3632 = 0 } - if yyr3549 || yy2arr3549 { + if yyr3632 || yy2arr3632 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3549[0] { - yym3551 := z.EncBinary() - _ = yym3551 + if yyq3632[0] { + yym3634 := z.EncBinary() + _ = yym3634 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) @@ -44963,23 +46043,23 @@ func (x *PodAttachOptions) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq3549[0] { + if yyq3632[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym3552 := z.EncBinary() - _ = yym3552 + yym3635 := z.EncBinary() + _ = yym3635 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } - if yyr3549 || yy2arr3549 { + if yyr3632 || yy2arr3632 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3549[1] { - yym3554 := z.EncBinary() - _ = yym3554 + if yyq3632[1] { + yym3637 := z.EncBinary() + _ = yym3637 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) @@ -44988,23 +46068,23 @@ func (x *PodAttachOptions) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq3549[1] { + if yyq3632[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym3555 := z.EncBinary() - _ = yym3555 + yym3638 := z.EncBinary() + _ = yym3638 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } - if yyr3549 || yy2arr3549 { + if yyr3632 || yy2arr3632 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3549[2] { - yym3557 := z.EncBinary() - _ = yym3557 + if yyq3632[2] { + yym3640 := z.EncBinary() + _ = yym3640 if false { } else { r.EncodeBool(bool(x.Stdin)) @@ -45013,23 +46093,23 @@ func (x *PodAttachOptions) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeBool(false) } } else { - if yyq3549[2] { + if yyq3632[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("stdin")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym3558 := z.EncBinary() - _ = yym3558 + yym3641 := z.EncBinary() + _ = yym3641 if false { } else { r.EncodeBool(bool(x.Stdin)) } } } - if yyr3549 || yy2arr3549 { + if yyr3632 || yy2arr3632 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3549[3] { - yym3560 := z.EncBinary() - _ = yym3560 + if yyq3632[3] { + yym3643 := z.EncBinary() + _ = yym3643 if false { } else { r.EncodeBool(bool(x.Stdout)) @@ -45038,23 +46118,23 @@ func (x *PodAttachOptions) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeBool(false) } } else { - if yyq3549[3] { + if yyq3632[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("stdout")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym3561 := z.EncBinary() - _ = yym3561 + yym3644 := z.EncBinary() + _ = yym3644 if false { } else { r.EncodeBool(bool(x.Stdout)) } } } - if yyr3549 || yy2arr3549 { + if yyr3632 || yy2arr3632 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3549[4] { - yym3563 := z.EncBinary() - _ = yym3563 + if yyq3632[4] { + yym3646 := z.EncBinary() + _ = yym3646 if false { } else { r.EncodeBool(bool(x.Stderr)) @@ -45063,23 +46143,23 @@ func (x *PodAttachOptions) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeBool(false) } } else { - if yyq3549[4] { + if yyq3632[4] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("stderr")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym3564 := z.EncBinary() - _ = yym3564 + yym3647 := z.EncBinary() + _ = yym3647 if false { } else { r.EncodeBool(bool(x.Stderr)) } } } - if yyr3549 || yy2arr3549 { + if yyr3632 || yy2arr3632 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3549[5] { - yym3566 := z.EncBinary() - _ = yym3566 + if yyq3632[5] { + yym3649 := z.EncBinary() + _ = yym3649 if false { } else { r.EncodeBool(bool(x.TTY)) @@ -45088,23 +46168,23 @@ func (x *PodAttachOptions) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeBool(false) } } else { - if yyq3549[5] { + if yyq3632[5] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("tty")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym3567 := z.EncBinary() - _ = yym3567 + yym3650 := z.EncBinary() + _ = yym3650 if false { } else { r.EncodeBool(bool(x.TTY)) } } } - if yyr3549 || yy2arr3549 { + if yyr3632 || yy2arr3632 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3549[6] { - yym3569 := z.EncBinary() - _ = yym3569 + if yyq3632[6] { + yym3652 := z.EncBinary() + _ = yym3652 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Container)) @@ -45113,19 +46193,19 @@ func (x *PodAttachOptions) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq3549[6] { + if yyq3632[6] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("container")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym3570 := z.EncBinary() - _ = yym3570 + yym3653 := z.EncBinary() + _ = yym3653 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Container)) } } } - if yyr3549 || yy2arr3549 { + if yyr3632 || yy2arr3632 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -45138,25 +46218,25 @@ func (x *PodAttachOptions) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym3571 := z.DecBinary() - _ = yym3571 + yym3654 := z.DecBinary() + _ = yym3654 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct3572 := r.ContainerType() - if yyct3572 == codecSelferValueTypeMap1234 { - yyl3572 := r.ReadMapStart() - if yyl3572 == 0 { + yyct3655 := r.ContainerType() + if yyct3655 == codecSelferValueTypeMap1234 { + yyl3655 := r.ReadMapStart() + if yyl3655 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl3572, d) + x.codecDecodeSelfFromMap(yyl3655, d) } - } else if yyct3572 == codecSelferValueTypeArray1234 { - yyl3572 := r.ReadArrayStart() - if yyl3572 == 0 { + } else if yyct3655 == codecSelferValueTypeArray1234 { + yyl3655 := r.ReadArrayStart() + if yyl3655 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl3572, d) + x.codecDecodeSelfFromArray(yyl3655, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -45168,12 +46248,12 @@ func (x *PodAttachOptions) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys3573Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3573Slc - var yyhl3573 bool = l >= 0 - for yyj3573 := 0; ; yyj3573++ { - if yyhl3573 { - if yyj3573 >= l { + var yys3656Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys3656Slc + var yyhl3656 bool = l >= 0 + for yyj3656 := 0; ; yyj3656++ { + if yyhl3656 { + if yyj3656 >= l { break } } else { @@ -45182,10 +46262,10 @@ func (x *PodAttachOptions) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3573Slc = r.DecodeBytes(yys3573Slc, true, true) - yys3573 := string(yys3573Slc) + yys3656Slc = r.DecodeBytes(yys3656Slc, true, true) + yys3656 := string(yys3656Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3573 { + switch yys3656 { case "kind": if r.TryDecodeAsNil() { x.Kind = "" @@ -45229,9 +46309,9 @@ func (x *PodAttachOptions) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { x.Container = string(r.DecodeString()) } default: - z.DecStructFieldNotFound(-1, yys3573) - } // end switch yys3573 - } // end for yyj3573 + z.DecStructFieldNotFound(-1, yys3656) + } // end switch yys3656 + } // end for yyj3656 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -45239,16 +46319,16 @@ func (x *PodAttachOptions) 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 + var yyj3664 int + var yyb3664 bool + var yyhl3664 bool = l >= 0 + yyj3664++ + if yyhl3664 { + yyb3664 = yyj3664 > l } else { - yyb3581 = r.CheckBreak() + yyb3664 = r.CheckBreak() } - if yyb3581 { + if yyb3664 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -45258,13 +46338,13 @@ func (x *PodAttachOptions) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) } else { x.Kind = string(r.DecodeString()) } - yyj3581++ - if yyhl3581 { - yyb3581 = yyj3581 > l + yyj3664++ + if yyhl3664 { + yyb3664 = yyj3664 > l } else { - yyb3581 = r.CheckBreak() + yyb3664 = r.CheckBreak() } - if yyb3581 { + if yyb3664 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -45274,13 +46354,13 @@ func (x *PodAttachOptions) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) } else { x.APIVersion = string(r.DecodeString()) } - yyj3581++ - if yyhl3581 { - yyb3581 = yyj3581 > l + yyj3664++ + if yyhl3664 { + yyb3664 = yyj3664 > l } else { - yyb3581 = r.CheckBreak() + yyb3664 = r.CheckBreak() } - if yyb3581 { + if yyb3664 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -45290,13 +46370,13 @@ func (x *PodAttachOptions) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) } else { x.Stdin = bool(r.DecodeBool()) } - yyj3581++ - if yyhl3581 { - yyb3581 = yyj3581 > l + yyj3664++ + if yyhl3664 { + yyb3664 = yyj3664 > l } else { - yyb3581 = r.CheckBreak() + yyb3664 = r.CheckBreak() } - if yyb3581 { + if yyb3664 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -45306,13 +46386,13 @@ func (x *PodAttachOptions) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) } else { x.Stdout = bool(r.DecodeBool()) } - yyj3581++ - if yyhl3581 { - yyb3581 = yyj3581 > l + yyj3664++ + if yyhl3664 { + yyb3664 = yyj3664 > l } else { - yyb3581 = r.CheckBreak() + yyb3664 = r.CheckBreak() } - if yyb3581 { + if yyb3664 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -45322,13 +46402,13 @@ func (x *PodAttachOptions) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) } else { x.Stderr = bool(r.DecodeBool()) } - yyj3581++ - if yyhl3581 { - yyb3581 = yyj3581 > l + yyj3664++ + if yyhl3664 { + yyb3664 = yyj3664 > l } else { - yyb3581 = r.CheckBreak() + yyb3664 = r.CheckBreak() } - if yyb3581 { + if yyb3664 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -45338,13 +46418,13 @@ func (x *PodAttachOptions) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) } else { x.TTY = bool(r.DecodeBool()) } - yyj3581++ - if yyhl3581 { - yyb3581 = yyj3581 > l + yyj3664++ + if yyhl3664 { + yyb3664 = yyj3664 > l } else { - yyb3581 = r.CheckBreak() + yyb3664 = r.CheckBreak() } - if yyb3581 { + if yyb3664 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -45355,17 +46435,17 @@ func (x *PodAttachOptions) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) x.Container = string(r.DecodeString()) } for { - yyj3581++ - if yyhl3581 { - yyb3581 = yyj3581 > l + yyj3664++ + if yyhl3664 { + yyb3664 = yyj3664 > l } else { - yyb3581 = r.CheckBreak() + yyb3664 = r.CheckBreak() } - if yyb3581 { + if yyb3664 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj3581-1, "") + z.DecStructFieldNotFound(yyj3664-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -45377,41 +46457,41 @@ func (x *PodExecOptions) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym3589 := z.EncBinary() - _ = yym3589 + yym3672 := z.EncBinary() + _ = yym3672 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - 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 { + yysep3673 := !z.EncBinary() + yy2arr3673 := z.EncBasicHandle().StructToArray + var yyq3673 [8]bool + _, _, _ = yysep3673, yyq3673, yy2arr3673 + const yyr3673 bool = false + yyq3673[0] = x.Kind != "" + yyq3673[1] = x.APIVersion != "" + yyq3673[2] = x.Stdin != false + yyq3673[3] = x.Stdout != false + yyq3673[4] = x.Stderr != false + yyq3673[5] = x.TTY != false + yyq3673[6] = x.Container != "" + var yynn3673 int + if yyr3673 || yy2arr3673 { r.EncodeArrayStart(8) } else { - yynn3590 = 1 - for _, b := range yyq3590 { + yynn3673 = 1 + for _, b := range yyq3673 { if b { - yynn3590++ + yynn3673++ } } - r.EncodeMapStart(yynn3590) - yynn3590 = 0 + r.EncodeMapStart(yynn3673) + yynn3673 = 0 } - if yyr3590 || yy2arr3590 { + if yyr3673 || yy2arr3673 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3590[0] { - yym3592 := z.EncBinary() - _ = yym3592 + if yyq3673[0] { + yym3675 := z.EncBinary() + _ = yym3675 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) @@ -45420,23 +46500,23 @@ func (x *PodExecOptions) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq3590[0] { + if yyq3673[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym3593 := z.EncBinary() - _ = yym3593 + yym3676 := z.EncBinary() + _ = yym3676 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } - if yyr3590 || yy2arr3590 { + if yyr3673 || yy2arr3673 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3590[1] { - yym3595 := z.EncBinary() - _ = yym3595 + if yyq3673[1] { + yym3678 := z.EncBinary() + _ = yym3678 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) @@ -45445,23 +46525,23 @@ func (x *PodExecOptions) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq3590[1] { + if yyq3673[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym3596 := z.EncBinary() - _ = yym3596 + yym3679 := z.EncBinary() + _ = yym3679 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } - if yyr3590 || yy2arr3590 { + if yyr3673 || yy2arr3673 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3590[2] { - yym3598 := z.EncBinary() - _ = yym3598 + if yyq3673[2] { + yym3681 := z.EncBinary() + _ = yym3681 if false { } else { r.EncodeBool(bool(x.Stdin)) @@ -45470,23 +46550,23 @@ func (x *PodExecOptions) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeBool(false) } } else { - if yyq3590[2] { + if yyq3673[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("stdin")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym3599 := z.EncBinary() - _ = yym3599 + yym3682 := z.EncBinary() + _ = yym3682 if false { } else { r.EncodeBool(bool(x.Stdin)) } } } - if yyr3590 || yy2arr3590 { + if yyr3673 || yy2arr3673 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3590[3] { - yym3601 := z.EncBinary() - _ = yym3601 + if yyq3673[3] { + yym3684 := z.EncBinary() + _ = yym3684 if false { } else { r.EncodeBool(bool(x.Stdout)) @@ -45495,23 +46575,23 @@ func (x *PodExecOptions) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeBool(false) } } else { - if yyq3590[3] { + if yyq3673[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("stdout")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym3602 := z.EncBinary() - _ = yym3602 + yym3685 := z.EncBinary() + _ = yym3685 if false { } else { r.EncodeBool(bool(x.Stdout)) } } } - if yyr3590 || yy2arr3590 { + if yyr3673 || yy2arr3673 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3590[4] { - yym3604 := z.EncBinary() - _ = yym3604 + if yyq3673[4] { + yym3687 := z.EncBinary() + _ = yym3687 if false { } else { r.EncodeBool(bool(x.Stderr)) @@ -45520,23 +46600,23 @@ func (x *PodExecOptions) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeBool(false) } } else { - if yyq3590[4] { + if yyq3673[4] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("stderr")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym3605 := z.EncBinary() - _ = yym3605 + yym3688 := z.EncBinary() + _ = yym3688 if false { } else { r.EncodeBool(bool(x.Stderr)) } } } - if yyr3590 || yy2arr3590 { + if yyr3673 || yy2arr3673 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3590[5] { - yym3607 := z.EncBinary() - _ = yym3607 + if yyq3673[5] { + yym3690 := z.EncBinary() + _ = yym3690 if false { } else { r.EncodeBool(bool(x.TTY)) @@ -45545,23 +46625,23 @@ func (x *PodExecOptions) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeBool(false) } } else { - if yyq3590[5] { + if yyq3673[5] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("tty")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym3608 := z.EncBinary() - _ = yym3608 + yym3691 := z.EncBinary() + _ = yym3691 if false { } else { r.EncodeBool(bool(x.TTY)) } } } - if yyr3590 || yy2arr3590 { + if yyr3673 || yy2arr3673 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3590[6] { - yym3610 := z.EncBinary() - _ = yym3610 + if yyq3673[6] { + yym3693 := z.EncBinary() + _ = yym3693 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Container)) @@ -45570,25 +46650,25 @@ func (x *PodExecOptions) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq3590[6] { + if yyq3673[6] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("container")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym3611 := z.EncBinary() - _ = yym3611 + yym3694 := z.EncBinary() + _ = yym3694 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Container)) } } } - if yyr3590 || yy2arr3590 { + if yyr3673 || yy2arr3673 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.Command == nil { r.EncodeNil() } else { - yym3613 := z.EncBinary() - _ = yym3613 + yym3696 := z.EncBinary() + _ = yym3696 if false { } else { z.F.EncSliceStringV(x.Command, false, e) @@ -45601,15 +46681,15 @@ func (x *PodExecOptions) CodecEncodeSelf(e *codec1978.Encoder) { if x.Command == nil { r.EncodeNil() } else { - yym3614 := z.EncBinary() - _ = yym3614 + yym3697 := z.EncBinary() + _ = yym3697 if false { } else { z.F.EncSliceStringV(x.Command, false, e) } } } - if yyr3590 || yy2arr3590 { + if yyr3673 || yy2arr3673 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -45622,25 +46702,25 @@ func (x *PodExecOptions) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym3615 := z.DecBinary() - _ = yym3615 + yym3698 := z.DecBinary() + _ = yym3698 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct3616 := r.ContainerType() - if yyct3616 == codecSelferValueTypeMap1234 { - yyl3616 := r.ReadMapStart() - if yyl3616 == 0 { + yyct3699 := r.ContainerType() + if yyct3699 == codecSelferValueTypeMap1234 { + yyl3699 := r.ReadMapStart() + if yyl3699 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl3616, d) + x.codecDecodeSelfFromMap(yyl3699, d) } - } else if yyct3616 == codecSelferValueTypeArray1234 { - yyl3616 := r.ReadArrayStart() - if yyl3616 == 0 { + } else if yyct3699 == codecSelferValueTypeArray1234 { + yyl3699 := r.ReadArrayStart() + if yyl3699 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl3616, d) + x.codecDecodeSelfFromArray(yyl3699, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -45652,12 +46732,12 @@ func (x *PodExecOptions) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys3617Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3617Slc - var yyhl3617 bool = l >= 0 - for yyj3617 := 0; ; yyj3617++ { - if yyhl3617 { - if yyj3617 >= l { + var yys3700Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys3700Slc + var yyhl3700 bool = l >= 0 + for yyj3700 := 0; ; yyj3700++ { + if yyhl3700 { + if yyj3700 >= l { break } } else { @@ -45666,10 +46746,10 @@ func (x *PodExecOptions) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3617Slc = r.DecodeBytes(yys3617Slc, true, true) - yys3617 := string(yys3617Slc) + yys3700Slc = r.DecodeBytes(yys3700Slc, true, true) + yys3700 := string(yys3700Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3617 { + switch yys3700 { case "kind": if r.TryDecodeAsNil() { x.Kind = "" @@ -45716,18 +46796,18 @@ func (x *PodExecOptions) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.Command = nil } else { - yyv3625 := &x.Command - yym3626 := z.DecBinary() - _ = yym3626 + yyv3708 := &x.Command + yym3709 := z.DecBinary() + _ = yym3709 if false { } else { - z.F.DecSliceStringX(yyv3625, false, d) + z.F.DecSliceStringX(yyv3708, false, d) } } default: - z.DecStructFieldNotFound(-1, yys3617) - } // end switch yys3617 - } // end for yyj3617 + z.DecStructFieldNotFound(-1, yys3700) + } // end switch yys3700 + } // end for yyj3700 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -45735,16 +46815,16 @@ func (x *PodExecOptions) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj3627 int - var yyb3627 bool - var yyhl3627 bool = l >= 0 - yyj3627++ - if yyhl3627 { - yyb3627 = yyj3627 > l + var yyj3710 int + var yyb3710 bool + var yyhl3710 bool = l >= 0 + yyj3710++ + if yyhl3710 { + yyb3710 = yyj3710 > l } else { - yyb3627 = r.CheckBreak() + yyb3710 = r.CheckBreak() } - if yyb3627 { + if yyb3710 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -45754,13 +46834,13 @@ func (x *PodExecOptions) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.Kind = string(r.DecodeString()) } - yyj3627++ - if yyhl3627 { - yyb3627 = yyj3627 > l + yyj3710++ + if yyhl3710 { + yyb3710 = yyj3710 > l } else { - yyb3627 = r.CheckBreak() + yyb3710 = r.CheckBreak() } - if yyb3627 { + if yyb3710 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -45770,13 +46850,13 @@ func (x *PodExecOptions) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.APIVersion = string(r.DecodeString()) } - yyj3627++ - if yyhl3627 { - yyb3627 = yyj3627 > l + yyj3710++ + if yyhl3710 { + yyb3710 = yyj3710 > l } else { - yyb3627 = r.CheckBreak() + yyb3710 = r.CheckBreak() } - if yyb3627 { + if yyb3710 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -45786,13 +46866,13 @@ func (x *PodExecOptions) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.Stdin = bool(r.DecodeBool()) } - yyj3627++ - if yyhl3627 { - yyb3627 = yyj3627 > l + yyj3710++ + if yyhl3710 { + yyb3710 = yyj3710 > l } else { - yyb3627 = r.CheckBreak() + yyb3710 = r.CheckBreak() } - if yyb3627 { + if yyb3710 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -45802,13 +46882,13 @@ func (x *PodExecOptions) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.Stdout = bool(r.DecodeBool()) } - yyj3627++ - if yyhl3627 { - yyb3627 = yyj3627 > l + yyj3710++ + if yyhl3710 { + yyb3710 = yyj3710 > l } else { - yyb3627 = r.CheckBreak() + yyb3710 = r.CheckBreak() } - if yyb3627 { + if yyb3710 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -45818,13 +46898,13 @@ func (x *PodExecOptions) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.Stderr = bool(r.DecodeBool()) } - yyj3627++ - if yyhl3627 { - yyb3627 = yyj3627 > l + yyj3710++ + if yyhl3710 { + yyb3710 = yyj3710 > l } else { - yyb3627 = r.CheckBreak() + yyb3710 = r.CheckBreak() } - if yyb3627 { + if yyb3710 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -45834,13 +46914,13 @@ func (x *PodExecOptions) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.TTY = bool(r.DecodeBool()) } - yyj3627++ - if yyhl3627 { - yyb3627 = yyj3627 > l + yyj3710++ + if yyhl3710 { + yyb3710 = yyj3710 > l } else { - yyb3627 = r.CheckBreak() + yyb3710 = r.CheckBreak() } - if yyb3627 { + if yyb3710 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -45850,13 +46930,13 @@ func (x *PodExecOptions) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.Container = string(r.DecodeString()) } - yyj3627++ - if yyhl3627 { - yyb3627 = yyj3627 > l + yyj3710++ + if yyhl3710 { + yyb3710 = yyj3710 > l } else { - yyb3627 = r.CheckBreak() + yyb3710 = r.CheckBreak() } - if yyb3627 { + if yyb3710 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -45864,26 +46944,26 @@ func (x *PodExecOptions) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.Command = nil } else { - yyv3635 := &x.Command - yym3636 := z.DecBinary() - _ = yym3636 + yyv3718 := &x.Command + yym3719 := z.DecBinary() + _ = yym3719 if false { } else { - z.F.DecSliceStringX(yyv3635, false, d) + z.F.DecSliceStringX(yyv3718, false, d) } } for { - yyj3627++ - if yyhl3627 { - yyb3627 = yyj3627 > l + yyj3710++ + if yyhl3710 { + yyb3710 = yyj3710 > l } else { - yyb3627 = r.CheckBreak() + yyb3710 = r.CheckBreak() } - if yyb3627 { + if yyb3710 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj3627-1, "") + z.DecStructFieldNotFound(yyj3710-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -45895,37 +46975,37 @@ func (x *PodProxyOptions) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym3637 := z.EncBinary() - _ = yym3637 + yym3720 := z.EncBinary() + _ = yym3720 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - 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 { + yysep3721 := !z.EncBinary() + yy2arr3721 := z.EncBasicHandle().StructToArray + var yyq3721 [3]bool + _, _, _ = yysep3721, yyq3721, yy2arr3721 + const yyr3721 bool = false + yyq3721[0] = x.Kind != "" + yyq3721[1] = x.APIVersion != "" + yyq3721[2] = x.Path != "" + var yynn3721 int + if yyr3721 || yy2arr3721 { r.EncodeArrayStart(3) } else { - yynn3638 = 0 - for _, b := range yyq3638 { + yynn3721 = 0 + for _, b := range yyq3721 { if b { - yynn3638++ + yynn3721++ } } - r.EncodeMapStart(yynn3638) - yynn3638 = 0 + r.EncodeMapStart(yynn3721) + yynn3721 = 0 } - if yyr3638 || yy2arr3638 { + if yyr3721 || yy2arr3721 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3638[0] { - yym3640 := z.EncBinary() - _ = yym3640 + if yyq3721[0] { + yym3723 := z.EncBinary() + _ = yym3723 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) @@ -45934,23 +47014,23 @@ func (x *PodProxyOptions) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq3638[0] { + if yyq3721[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym3641 := z.EncBinary() - _ = yym3641 + yym3724 := z.EncBinary() + _ = yym3724 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } - if yyr3638 || yy2arr3638 { + if yyr3721 || yy2arr3721 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3638[1] { - yym3643 := z.EncBinary() - _ = yym3643 + if yyq3721[1] { + yym3726 := z.EncBinary() + _ = yym3726 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) @@ -45959,23 +47039,23 @@ func (x *PodProxyOptions) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq3638[1] { + if yyq3721[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym3644 := z.EncBinary() - _ = yym3644 + yym3727 := z.EncBinary() + _ = yym3727 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } - if yyr3638 || yy2arr3638 { + if yyr3721 || yy2arr3721 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3638[2] { - yym3646 := z.EncBinary() - _ = yym3646 + if yyq3721[2] { + yym3729 := z.EncBinary() + _ = yym3729 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Path)) @@ -45984,19 +47064,19 @@ func (x *PodProxyOptions) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq3638[2] { + if yyq3721[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("path")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym3647 := z.EncBinary() - _ = yym3647 + yym3730 := z.EncBinary() + _ = yym3730 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Path)) } } } - if yyr3638 || yy2arr3638 { + if yyr3721 || yy2arr3721 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -46009,25 +47089,25 @@ func (x *PodProxyOptions) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym3648 := z.DecBinary() - _ = yym3648 + yym3731 := z.DecBinary() + _ = yym3731 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct3649 := r.ContainerType() - if yyct3649 == codecSelferValueTypeMap1234 { - yyl3649 := r.ReadMapStart() - if yyl3649 == 0 { + yyct3732 := r.ContainerType() + if yyct3732 == codecSelferValueTypeMap1234 { + yyl3732 := r.ReadMapStart() + if yyl3732 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl3649, d) + x.codecDecodeSelfFromMap(yyl3732, d) } - } else if yyct3649 == codecSelferValueTypeArray1234 { - yyl3649 := r.ReadArrayStart() - if yyl3649 == 0 { + } else if yyct3732 == codecSelferValueTypeArray1234 { + yyl3732 := r.ReadArrayStart() + if yyl3732 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl3649, d) + x.codecDecodeSelfFromArray(yyl3732, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -46039,12 +47119,12 @@ func (x *PodProxyOptions) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys3650Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3650Slc - var yyhl3650 bool = l >= 0 - for yyj3650 := 0; ; yyj3650++ { - if yyhl3650 { - if yyj3650 >= l { + var yys3733Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys3733Slc + var yyhl3733 bool = l >= 0 + for yyj3733 := 0; ; yyj3733++ { + if yyhl3733 { + if yyj3733 >= l { break } } else { @@ -46053,10 +47133,10 @@ func (x *PodProxyOptions) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3650Slc = r.DecodeBytes(yys3650Slc, true, true) - yys3650 := string(yys3650Slc) + yys3733Slc = r.DecodeBytes(yys3733Slc, true, true) + yys3733 := string(yys3733Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3650 { + switch yys3733 { case "kind": if r.TryDecodeAsNil() { x.Kind = "" @@ -46076,9 +47156,9 @@ func (x *PodProxyOptions) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { x.Path = string(r.DecodeString()) } default: - z.DecStructFieldNotFound(-1, yys3650) - } // end switch yys3650 - } // end for yyj3650 + z.DecStructFieldNotFound(-1, yys3733) + } // end switch yys3733 + } // end for yyj3733 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -46086,16 +47166,16 @@ func (x *PodProxyOptions) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj3654 int - var yyb3654 bool - var yyhl3654 bool = l >= 0 - yyj3654++ - if yyhl3654 { - yyb3654 = yyj3654 > l + var yyj3737 int + var yyb3737 bool + var yyhl3737 bool = l >= 0 + yyj3737++ + if yyhl3737 { + yyb3737 = yyj3737 > l } else { - yyb3654 = r.CheckBreak() + yyb3737 = r.CheckBreak() } - if yyb3654 { + if yyb3737 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -46105,13 +47185,13 @@ func (x *PodProxyOptions) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) } else { x.Kind = string(r.DecodeString()) } - yyj3654++ - if yyhl3654 { - yyb3654 = yyj3654 > l + yyj3737++ + if yyhl3737 { + yyb3737 = yyj3737 > l } else { - yyb3654 = r.CheckBreak() + yyb3737 = r.CheckBreak() } - if yyb3654 { + if yyb3737 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -46121,13 +47201,13 @@ func (x *PodProxyOptions) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) } else { x.APIVersion = string(r.DecodeString()) } - yyj3654++ - if yyhl3654 { - yyb3654 = yyj3654 > l + yyj3737++ + if yyhl3737 { + yyb3737 = yyj3737 > l } else { - yyb3654 = r.CheckBreak() + yyb3737 = r.CheckBreak() } - if yyb3654 { + if yyb3737 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -46138,17 +47218,17 @@ func (x *PodProxyOptions) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) x.Path = string(r.DecodeString()) } for { - yyj3654++ - if yyhl3654 { - yyb3654 = yyj3654 > l + yyj3737++ + if yyhl3737 { + yyb3737 = yyj3737 > l } else { - yyb3654 = r.CheckBreak() + yyb3737 = r.CheckBreak() } - if yyb3654 { + if yyb3737 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj3654-1, "") + z.DecStructFieldNotFound(yyj3737-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -46160,37 +47240,37 @@ func (x *NodeProxyOptions) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym3658 := z.EncBinary() - _ = yym3658 + yym3741 := z.EncBinary() + _ = yym3741 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - 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 { + yysep3742 := !z.EncBinary() + yy2arr3742 := z.EncBasicHandle().StructToArray + var yyq3742 [3]bool + _, _, _ = yysep3742, yyq3742, yy2arr3742 + const yyr3742 bool = false + yyq3742[0] = x.Kind != "" + yyq3742[1] = x.APIVersion != "" + yyq3742[2] = x.Path != "" + var yynn3742 int + if yyr3742 || yy2arr3742 { r.EncodeArrayStart(3) } else { - yynn3659 = 0 - for _, b := range yyq3659 { + yynn3742 = 0 + for _, b := range yyq3742 { if b { - yynn3659++ + yynn3742++ } } - r.EncodeMapStart(yynn3659) - yynn3659 = 0 + r.EncodeMapStart(yynn3742) + yynn3742 = 0 } - if yyr3659 || yy2arr3659 { + if yyr3742 || yy2arr3742 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3659[0] { - yym3661 := z.EncBinary() - _ = yym3661 + if yyq3742[0] { + yym3744 := z.EncBinary() + _ = yym3744 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) @@ -46199,23 +47279,23 @@ func (x *NodeProxyOptions) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq3659[0] { + if yyq3742[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym3662 := z.EncBinary() - _ = yym3662 + yym3745 := z.EncBinary() + _ = yym3745 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } - if yyr3659 || yy2arr3659 { + if yyr3742 || yy2arr3742 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3659[1] { - yym3664 := z.EncBinary() - _ = yym3664 + if yyq3742[1] { + yym3747 := z.EncBinary() + _ = yym3747 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) @@ -46224,23 +47304,23 @@ func (x *NodeProxyOptions) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq3659[1] { + if yyq3742[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym3665 := z.EncBinary() - _ = yym3665 + yym3748 := z.EncBinary() + _ = yym3748 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } - if yyr3659 || yy2arr3659 { + if yyr3742 || yy2arr3742 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3659[2] { - yym3667 := z.EncBinary() - _ = yym3667 + if yyq3742[2] { + yym3750 := z.EncBinary() + _ = yym3750 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Path)) @@ -46249,19 +47329,19 @@ func (x *NodeProxyOptions) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq3659[2] { + if yyq3742[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("path")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym3668 := z.EncBinary() - _ = yym3668 + yym3751 := z.EncBinary() + _ = yym3751 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Path)) } } } - if yyr3659 || yy2arr3659 { + if yyr3742 || yy2arr3742 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -46274,25 +47354,25 @@ func (x *NodeProxyOptions) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym3669 := z.DecBinary() - _ = yym3669 + yym3752 := z.DecBinary() + _ = yym3752 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct3670 := r.ContainerType() - if yyct3670 == codecSelferValueTypeMap1234 { - yyl3670 := r.ReadMapStart() - if yyl3670 == 0 { + yyct3753 := r.ContainerType() + if yyct3753 == codecSelferValueTypeMap1234 { + yyl3753 := r.ReadMapStart() + if yyl3753 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl3670, d) + x.codecDecodeSelfFromMap(yyl3753, d) } - } else if yyct3670 == codecSelferValueTypeArray1234 { - yyl3670 := r.ReadArrayStart() - if yyl3670 == 0 { + } else if yyct3753 == codecSelferValueTypeArray1234 { + yyl3753 := r.ReadArrayStart() + if yyl3753 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl3670, d) + x.codecDecodeSelfFromArray(yyl3753, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -46304,12 +47384,12 @@ func (x *NodeProxyOptions) 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 { + var yys3754Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys3754Slc + var yyhl3754 bool = l >= 0 + for yyj3754 := 0; ; yyj3754++ { + if yyhl3754 { + if yyj3754 >= l { break } } else { @@ -46318,10 +47398,10 @@ func (x *NodeProxyOptions) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3671Slc = r.DecodeBytes(yys3671Slc, true, true) - yys3671 := string(yys3671Slc) + yys3754Slc = r.DecodeBytes(yys3754Slc, true, true) + yys3754 := string(yys3754Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3671 { + switch yys3754 { case "kind": if r.TryDecodeAsNil() { x.Kind = "" @@ -46341,9 +47421,9 @@ func (x *NodeProxyOptions) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { x.Path = string(r.DecodeString()) } default: - z.DecStructFieldNotFound(-1, yys3671) - } // end switch yys3671 - } // end for yyj3671 + z.DecStructFieldNotFound(-1, yys3754) + } // end switch yys3754 + } // end for yyj3754 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -46351,16 +47431,16 @@ func (x *NodeProxyOptions) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj3675 int - var yyb3675 bool - var yyhl3675 bool = l >= 0 - yyj3675++ - if yyhl3675 { - yyb3675 = yyj3675 > l + var yyj3758 int + var yyb3758 bool + var yyhl3758 bool = l >= 0 + yyj3758++ + if yyhl3758 { + yyb3758 = yyj3758 > l } else { - yyb3675 = r.CheckBreak() + yyb3758 = r.CheckBreak() } - if yyb3675 { + if yyb3758 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -46370,13 +47450,13 @@ func (x *NodeProxyOptions) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) } else { x.Kind = string(r.DecodeString()) } - yyj3675++ - if yyhl3675 { - yyb3675 = yyj3675 > l + yyj3758++ + if yyhl3758 { + yyb3758 = yyj3758 > l } else { - yyb3675 = r.CheckBreak() + yyb3758 = r.CheckBreak() } - if yyb3675 { + if yyb3758 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -46386,13 +47466,13 @@ func (x *NodeProxyOptions) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) } else { x.APIVersion = string(r.DecodeString()) } - yyj3675++ - if yyhl3675 { - yyb3675 = yyj3675 > l + yyj3758++ + if yyhl3758 { + yyb3758 = yyj3758 > l } else { - yyb3675 = r.CheckBreak() + yyb3758 = r.CheckBreak() } - if yyb3675 { + if yyb3758 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -46403,17 +47483,17 @@ func (x *NodeProxyOptions) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) x.Path = string(r.DecodeString()) } for { - yyj3675++ - if yyhl3675 { - yyb3675 = yyj3675 > l + yyj3758++ + if yyhl3758 { + yyb3758 = yyj3758 > l } else { - yyb3675 = r.CheckBreak() + yyb3758 = r.CheckBreak() } - if yyb3675 { + if yyb3758 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj3675-1, "") + z.DecStructFieldNotFound(yyj3758-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -46425,37 +47505,37 @@ func (x *ServiceProxyOptions) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym3679 := z.EncBinary() - _ = yym3679 + yym3762 := z.EncBinary() + _ = yym3762 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - 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 { + yysep3763 := !z.EncBinary() + yy2arr3763 := z.EncBasicHandle().StructToArray + var yyq3763 [3]bool + _, _, _ = yysep3763, yyq3763, yy2arr3763 + const yyr3763 bool = false + yyq3763[0] = x.Kind != "" + yyq3763[1] = x.APIVersion != "" + yyq3763[2] = x.Path != "" + var yynn3763 int + if yyr3763 || yy2arr3763 { r.EncodeArrayStart(3) } else { - yynn3680 = 0 - for _, b := range yyq3680 { + yynn3763 = 0 + for _, b := range yyq3763 { if b { - yynn3680++ + yynn3763++ } } - r.EncodeMapStart(yynn3680) - yynn3680 = 0 + r.EncodeMapStart(yynn3763) + yynn3763 = 0 } - if yyr3680 || yy2arr3680 { + if yyr3763 || yy2arr3763 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3680[0] { - yym3682 := z.EncBinary() - _ = yym3682 + if yyq3763[0] { + yym3765 := z.EncBinary() + _ = yym3765 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) @@ -46464,23 +47544,23 @@ func (x *ServiceProxyOptions) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq3680[0] { + if yyq3763[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym3683 := z.EncBinary() - _ = yym3683 + yym3766 := z.EncBinary() + _ = yym3766 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } - if yyr3680 || yy2arr3680 { + if yyr3763 || yy2arr3763 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3680[1] { - yym3685 := z.EncBinary() - _ = yym3685 + if yyq3763[1] { + yym3768 := z.EncBinary() + _ = yym3768 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) @@ -46489,23 +47569,23 @@ func (x *ServiceProxyOptions) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq3680[1] { + if yyq3763[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym3686 := z.EncBinary() - _ = yym3686 + yym3769 := z.EncBinary() + _ = yym3769 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } - if yyr3680 || yy2arr3680 { + if yyr3763 || yy2arr3763 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3680[2] { - yym3688 := z.EncBinary() - _ = yym3688 + if yyq3763[2] { + yym3771 := z.EncBinary() + _ = yym3771 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Path)) @@ -46514,19 +47594,19 @@ func (x *ServiceProxyOptions) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq3680[2] { + if yyq3763[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("path")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym3689 := z.EncBinary() - _ = yym3689 + yym3772 := z.EncBinary() + _ = yym3772 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Path)) } } } - if yyr3680 || yy2arr3680 { + if yyr3763 || yy2arr3763 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -46539,25 +47619,25 @@ func (x *ServiceProxyOptions) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym3690 := z.DecBinary() - _ = yym3690 + yym3773 := z.DecBinary() + _ = yym3773 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct3691 := r.ContainerType() - if yyct3691 == codecSelferValueTypeMap1234 { - yyl3691 := r.ReadMapStart() - if yyl3691 == 0 { + yyct3774 := r.ContainerType() + if yyct3774 == codecSelferValueTypeMap1234 { + yyl3774 := r.ReadMapStart() + if yyl3774 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl3691, d) + x.codecDecodeSelfFromMap(yyl3774, d) } - } else if yyct3691 == codecSelferValueTypeArray1234 { - yyl3691 := r.ReadArrayStart() - if yyl3691 == 0 { + } else if yyct3774 == codecSelferValueTypeArray1234 { + yyl3774 := r.ReadArrayStart() + if yyl3774 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl3691, d) + x.codecDecodeSelfFromArray(yyl3774, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -46569,12 +47649,12 @@ func (x *ServiceProxyOptions) codecDecodeSelfFromMap(l int, d *codec1978.Decoder var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys3692Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3692Slc - var yyhl3692 bool = l >= 0 - for yyj3692 := 0; ; yyj3692++ { - if yyhl3692 { - if yyj3692 >= l { + var yys3775Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys3775Slc + var yyhl3775 bool = l >= 0 + for yyj3775 := 0; ; yyj3775++ { + if yyhl3775 { + if yyj3775 >= l { break } } else { @@ -46583,10 +47663,10 @@ func (x *ServiceProxyOptions) codecDecodeSelfFromMap(l int, d *codec1978.Decoder } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3692Slc = r.DecodeBytes(yys3692Slc, true, true) - yys3692 := string(yys3692Slc) + yys3775Slc = r.DecodeBytes(yys3775Slc, true, true) + yys3775 := string(yys3775Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3692 { + switch yys3775 { case "kind": if r.TryDecodeAsNil() { x.Kind = "" @@ -46606,9 +47686,9 @@ func (x *ServiceProxyOptions) codecDecodeSelfFromMap(l int, d *codec1978.Decoder x.Path = string(r.DecodeString()) } default: - z.DecStructFieldNotFound(-1, yys3692) - } // end switch yys3692 - } // end for yyj3692 + z.DecStructFieldNotFound(-1, yys3775) + } // end switch yys3775 + } // end for yyj3775 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -46616,16 +47696,16 @@ func (x *ServiceProxyOptions) codecDecodeSelfFromArray(l int, d *codec1978.Decod var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj3696 int - var yyb3696 bool - var yyhl3696 bool = l >= 0 - yyj3696++ - if yyhl3696 { - yyb3696 = yyj3696 > l + var yyj3779 int + var yyb3779 bool + var yyhl3779 bool = l >= 0 + yyj3779++ + if yyhl3779 { + yyb3779 = yyj3779 > l } else { - yyb3696 = r.CheckBreak() + yyb3779 = r.CheckBreak() } - if yyb3696 { + if yyb3779 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -46635,13 +47715,13 @@ func (x *ServiceProxyOptions) codecDecodeSelfFromArray(l int, d *codec1978.Decod } else { x.Kind = string(r.DecodeString()) } - yyj3696++ - if yyhl3696 { - yyb3696 = yyj3696 > l + yyj3779++ + if yyhl3779 { + yyb3779 = yyj3779 > l } else { - yyb3696 = r.CheckBreak() + yyb3779 = r.CheckBreak() } - if yyb3696 { + if yyb3779 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -46651,13 +47731,13 @@ func (x *ServiceProxyOptions) codecDecodeSelfFromArray(l int, d *codec1978.Decod } else { x.APIVersion = string(r.DecodeString()) } - yyj3696++ - if yyhl3696 { - yyb3696 = yyj3696 > l + yyj3779++ + if yyhl3779 { + yyb3779 = yyj3779 > l } else { - yyb3696 = r.CheckBreak() + yyb3779 = r.CheckBreak() } - if yyb3696 { + if yyb3779 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -46668,17 +47748,17 @@ func (x *ServiceProxyOptions) codecDecodeSelfFromArray(l int, d *codec1978.Decod x.Path = string(r.DecodeString()) } for { - yyj3696++ - if yyhl3696 { - yyb3696 = yyj3696 > l + yyj3779++ + if yyhl3779 { + yyb3779 = yyj3779 > l } else { - yyb3696 = r.CheckBreak() + yyb3779 = r.CheckBreak() } - if yyb3696 { + if yyb3779 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj3696-1, "") + z.DecStructFieldNotFound(yyj3779-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -46690,34 +47770,34 @@ func (x *OwnerReference) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym3700 := z.EncBinary() - _ = yym3700 + yym3783 := z.EncBinary() + _ = yym3783 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - 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 { + yysep3784 := !z.EncBinary() + yy2arr3784 := z.EncBasicHandle().StructToArray + var yyq3784 [5]bool + _, _, _ = yysep3784, yyq3784, yy2arr3784 + const yyr3784 bool = false + yyq3784[4] = x.Controller != nil + var yynn3784 int + if yyr3784 || yy2arr3784 { r.EncodeArrayStart(5) } else { - yynn3701 = 4 - for _, b := range yyq3701 { + yynn3784 = 4 + for _, b := range yyq3784 { if b { - yynn3701++ + yynn3784++ } } - r.EncodeMapStart(yynn3701) - yynn3701 = 0 + r.EncodeMapStart(yynn3784) + yynn3784 = 0 } - if yyr3701 || yy2arr3701 { + if yyr3784 || yy2arr3784 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym3703 := z.EncBinary() - _ = yym3703 + yym3786 := z.EncBinary() + _ = yym3786 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) @@ -46726,17 +47806,17 @@ func (x *OwnerReference) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym3704 := z.EncBinary() - _ = yym3704 + yym3787 := z.EncBinary() + _ = yym3787 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } - if yyr3701 || yy2arr3701 { + if yyr3784 || yy2arr3784 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym3706 := z.EncBinary() - _ = yym3706 + yym3789 := z.EncBinary() + _ = yym3789 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) @@ -46745,17 +47825,17 @@ func (x *OwnerReference) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym3707 := z.EncBinary() - _ = yym3707 + yym3790 := z.EncBinary() + _ = yym3790 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } - if yyr3701 || yy2arr3701 { + if yyr3784 || yy2arr3784 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym3709 := z.EncBinary() - _ = yym3709 + yym3792 := z.EncBinary() + _ = yym3792 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Name)) @@ -46764,17 +47844,17 @@ func (x *OwnerReference) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("name")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym3710 := z.EncBinary() - _ = yym3710 + yym3793 := z.EncBinary() + _ = yym3793 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Name)) } } - if yyr3701 || yy2arr3701 { + if yyr3784 || yy2arr3784 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym3712 := z.EncBinary() - _ = yym3712 + yym3795 := z.EncBinary() + _ = yym3795 if false { } else if z.HasExtensions() && z.EncExt(x.UID) { } else { @@ -46784,50 +47864,50 @@ func (x *OwnerReference) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("uid")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym3713 := z.EncBinary() - _ = yym3713 + yym3796 := z.EncBinary() + _ = yym3796 if false { } else if z.HasExtensions() && z.EncExt(x.UID) { } else { r.EncodeString(codecSelferC_UTF81234, string(x.UID)) } } - if yyr3701 || yy2arr3701 { + if yyr3784 || yy2arr3784 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3701[4] { + if yyq3784[4] { if x.Controller == nil { r.EncodeNil() } else { - yy3715 := *x.Controller - yym3716 := z.EncBinary() - _ = yym3716 + yy3798 := *x.Controller + yym3799 := z.EncBinary() + _ = yym3799 if false { } else { - r.EncodeBool(bool(yy3715)) + r.EncodeBool(bool(yy3798)) } } } else { r.EncodeNil() } } else { - if yyq3701[4] { + if yyq3784[4] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("controller")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.Controller == nil { r.EncodeNil() } else { - yy3717 := *x.Controller - yym3718 := z.EncBinary() - _ = yym3718 + yy3800 := *x.Controller + yym3801 := z.EncBinary() + _ = yym3801 if false { } else { - r.EncodeBool(bool(yy3717)) + r.EncodeBool(bool(yy3800)) } } } } - if yyr3701 || yy2arr3701 { + if yyr3784 || yy2arr3784 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -46840,25 +47920,25 @@ func (x *OwnerReference) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym3719 := z.DecBinary() - _ = yym3719 + yym3802 := z.DecBinary() + _ = yym3802 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct3720 := r.ContainerType() - if yyct3720 == codecSelferValueTypeMap1234 { - yyl3720 := r.ReadMapStart() - if yyl3720 == 0 { + yyct3803 := r.ContainerType() + if yyct3803 == codecSelferValueTypeMap1234 { + yyl3803 := r.ReadMapStart() + if yyl3803 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl3720, d) + x.codecDecodeSelfFromMap(yyl3803, d) } - } else if yyct3720 == codecSelferValueTypeArray1234 { - yyl3720 := r.ReadArrayStart() - if yyl3720 == 0 { + } else if yyct3803 == codecSelferValueTypeArray1234 { + yyl3803 := r.ReadArrayStart() + if yyl3803 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl3720, d) + x.codecDecodeSelfFromArray(yyl3803, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -46870,12 +47950,12 @@ func (x *OwnerReference) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys3721Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3721Slc - var yyhl3721 bool = l >= 0 - for yyj3721 := 0; ; yyj3721++ { - if yyhl3721 { - if yyj3721 >= l { + var yys3804Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys3804Slc + var yyhl3804 bool = l >= 0 + for yyj3804 := 0; ; yyj3804++ { + if yyhl3804 { + if yyj3804 >= l { break } } else { @@ -46884,10 +47964,10 @@ func (x *OwnerReference) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3721Slc = r.DecodeBytes(yys3721Slc, true, true) - yys3721 := string(yys3721Slc) + yys3804Slc = r.DecodeBytes(yys3804Slc, true, true) + yys3804 := string(yys3804Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3721 { + switch yys3804 { case "apiVersion": if r.TryDecodeAsNil() { x.APIVersion = "" @@ -46921,17 +48001,17 @@ func (x *OwnerReference) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { if x.Controller == nil { x.Controller = new(bool) } - yym3727 := z.DecBinary() - _ = yym3727 + yym3810 := z.DecBinary() + _ = yym3810 if false { } else { *((*bool)(x.Controller)) = r.DecodeBool() } } default: - z.DecStructFieldNotFound(-1, yys3721) - } // end switch yys3721 - } // end for yyj3721 + z.DecStructFieldNotFound(-1, yys3804) + } // end switch yys3804 + } // end for yyj3804 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -46939,16 +48019,16 @@ func (x *OwnerReference) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj3728 int - var yyb3728 bool - var yyhl3728 bool = l >= 0 - yyj3728++ - if yyhl3728 { - yyb3728 = yyj3728 > l + var yyj3811 int + var yyb3811 bool + var yyhl3811 bool = l >= 0 + yyj3811++ + if yyhl3811 { + yyb3811 = yyj3811 > l } else { - yyb3728 = r.CheckBreak() + yyb3811 = r.CheckBreak() } - if yyb3728 { + if yyb3811 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -46958,13 +48038,13 @@ func (x *OwnerReference) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.APIVersion = string(r.DecodeString()) } - yyj3728++ - if yyhl3728 { - yyb3728 = yyj3728 > l + yyj3811++ + if yyhl3811 { + yyb3811 = yyj3811 > l } else { - yyb3728 = r.CheckBreak() + yyb3811 = r.CheckBreak() } - if yyb3728 { + if yyb3811 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -46974,13 +48054,13 @@ func (x *OwnerReference) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.Kind = string(r.DecodeString()) } - yyj3728++ - if yyhl3728 { - yyb3728 = yyj3728 > l + yyj3811++ + if yyhl3811 { + yyb3811 = yyj3811 > l } else { - yyb3728 = r.CheckBreak() + yyb3811 = r.CheckBreak() } - if yyb3728 { + if yyb3811 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -46990,13 +48070,13 @@ func (x *OwnerReference) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.Name = string(r.DecodeString()) } - yyj3728++ - if yyhl3728 { - yyb3728 = yyj3728 > l + yyj3811++ + if yyhl3811 { + yyb3811 = yyj3811 > l } else { - yyb3728 = r.CheckBreak() + yyb3811 = r.CheckBreak() } - if yyb3728 { + if yyb3811 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -47006,13 +48086,13 @@ func (x *OwnerReference) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.UID = pkg1_types.UID(r.DecodeString()) } - yyj3728++ - if yyhl3728 { - yyb3728 = yyj3728 > l + yyj3811++ + if yyhl3811 { + yyb3811 = yyj3811 > l } else { - yyb3728 = r.CheckBreak() + yyb3811 = r.CheckBreak() } - if yyb3728 { + if yyb3811 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -47025,25 +48105,25 @@ func (x *OwnerReference) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if x.Controller == nil { x.Controller = new(bool) } - yym3734 := z.DecBinary() - _ = yym3734 + yym3817 := z.DecBinary() + _ = yym3817 if false { } else { *((*bool)(x.Controller)) = r.DecodeBool() } } for { - yyj3728++ - if yyhl3728 { - yyb3728 = yyj3728 > l + yyj3811++ + if yyhl3811 { + yyb3811 = yyj3811 > l } else { - yyb3728 = r.CheckBreak() + yyb3811 = r.CheckBreak() } - if yyb3728 { + if yyb3811 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj3728-1, "") + z.DecStructFieldNotFound(yyj3811-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -47055,41 +48135,41 @@ func (x *ObjectReference) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym3735 := z.EncBinary() - _ = yym3735 + yym3818 := z.EncBinary() + _ = yym3818 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - 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 { + yysep3819 := !z.EncBinary() + yy2arr3819 := z.EncBasicHandle().StructToArray + var yyq3819 [7]bool + _, _, _ = yysep3819, yyq3819, yy2arr3819 + const yyr3819 bool = false + yyq3819[0] = x.Kind != "" + yyq3819[1] = x.Namespace != "" + yyq3819[2] = x.Name != "" + yyq3819[3] = x.UID != "" + yyq3819[4] = x.APIVersion != "" + yyq3819[5] = x.ResourceVersion != "" + yyq3819[6] = x.FieldPath != "" + var yynn3819 int + if yyr3819 || yy2arr3819 { r.EncodeArrayStart(7) } else { - yynn3736 = 0 - for _, b := range yyq3736 { + yynn3819 = 0 + for _, b := range yyq3819 { if b { - yynn3736++ + yynn3819++ } } - r.EncodeMapStart(yynn3736) - yynn3736 = 0 + r.EncodeMapStart(yynn3819) + yynn3819 = 0 } - if yyr3736 || yy2arr3736 { + if yyr3819 || yy2arr3819 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3736[0] { - yym3738 := z.EncBinary() - _ = yym3738 + if yyq3819[0] { + yym3821 := z.EncBinary() + _ = yym3821 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) @@ -47098,23 +48178,23 @@ func (x *ObjectReference) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq3736[0] { + if yyq3819[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym3739 := z.EncBinary() - _ = yym3739 + yym3822 := z.EncBinary() + _ = yym3822 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } - if yyr3736 || yy2arr3736 { + if yyr3819 || yy2arr3819 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3736[1] { - yym3741 := z.EncBinary() - _ = yym3741 + if yyq3819[1] { + yym3824 := z.EncBinary() + _ = yym3824 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Namespace)) @@ -47123,23 +48203,23 @@ func (x *ObjectReference) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq3736[1] { + if yyq3819[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("namespace")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym3742 := z.EncBinary() - _ = yym3742 + yym3825 := z.EncBinary() + _ = yym3825 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Namespace)) } } } - if yyr3736 || yy2arr3736 { + if yyr3819 || yy2arr3819 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3736[2] { - yym3744 := z.EncBinary() - _ = yym3744 + if yyq3819[2] { + yym3827 := z.EncBinary() + _ = yym3827 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Name)) @@ -47148,23 +48228,23 @@ func (x *ObjectReference) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq3736[2] { + if yyq3819[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("name")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym3745 := z.EncBinary() - _ = yym3745 + yym3828 := z.EncBinary() + _ = yym3828 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Name)) } } } - if yyr3736 || yy2arr3736 { + if yyr3819 || yy2arr3819 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3736[3] { - yym3747 := z.EncBinary() - _ = yym3747 + if yyq3819[3] { + yym3830 := z.EncBinary() + _ = yym3830 if false { } else if z.HasExtensions() && z.EncExt(x.UID) { } else { @@ -47174,12 +48254,12 @@ func (x *ObjectReference) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq3736[3] { + if yyq3819[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("uid")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym3748 := z.EncBinary() - _ = yym3748 + yym3831 := z.EncBinary() + _ = yym3831 if false { } else if z.HasExtensions() && z.EncExt(x.UID) { } else { @@ -47187,11 +48267,11 @@ func (x *ObjectReference) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr3736 || yy2arr3736 { + if yyr3819 || yy2arr3819 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3736[4] { - yym3750 := z.EncBinary() - _ = yym3750 + if yyq3819[4] { + yym3833 := z.EncBinary() + _ = yym3833 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) @@ -47200,23 +48280,23 @@ func (x *ObjectReference) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq3736[4] { + if yyq3819[4] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym3751 := z.EncBinary() - _ = yym3751 + yym3834 := z.EncBinary() + _ = yym3834 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } - if yyr3736 || yy2arr3736 { + if yyr3819 || yy2arr3819 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3736[5] { - yym3753 := z.EncBinary() - _ = yym3753 + if yyq3819[5] { + yym3836 := z.EncBinary() + _ = yym3836 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.ResourceVersion)) @@ -47225,23 +48305,23 @@ func (x *ObjectReference) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq3736[5] { + if yyq3819[5] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("resourceVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym3754 := z.EncBinary() - _ = yym3754 + yym3837 := z.EncBinary() + _ = yym3837 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.ResourceVersion)) } } } - if yyr3736 || yy2arr3736 { + if yyr3819 || yy2arr3819 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3736[6] { - yym3756 := z.EncBinary() - _ = yym3756 + if yyq3819[6] { + yym3839 := z.EncBinary() + _ = yym3839 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.FieldPath)) @@ -47250,19 +48330,19 @@ func (x *ObjectReference) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq3736[6] { + if yyq3819[6] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("fieldPath")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym3757 := z.EncBinary() - _ = yym3757 + yym3840 := z.EncBinary() + _ = yym3840 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.FieldPath)) } } } - if yyr3736 || yy2arr3736 { + if yyr3819 || yy2arr3819 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -47275,25 +48355,25 @@ func (x *ObjectReference) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym3758 := z.DecBinary() - _ = yym3758 + yym3841 := z.DecBinary() + _ = yym3841 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct3759 := r.ContainerType() - if yyct3759 == codecSelferValueTypeMap1234 { - yyl3759 := r.ReadMapStart() - if yyl3759 == 0 { + yyct3842 := r.ContainerType() + if yyct3842 == codecSelferValueTypeMap1234 { + yyl3842 := r.ReadMapStart() + if yyl3842 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl3759, d) + x.codecDecodeSelfFromMap(yyl3842, d) } - } else if yyct3759 == codecSelferValueTypeArray1234 { - yyl3759 := r.ReadArrayStart() - if yyl3759 == 0 { + } else if yyct3842 == codecSelferValueTypeArray1234 { + yyl3842 := r.ReadArrayStart() + if yyl3842 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl3759, d) + x.codecDecodeSelfFromArray(yyl3842, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -47305,12 +48385,12 @@ func (x *ObjectReference) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys3760Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3760Slc - var yyhl3760 bool = l >= 0 - for yyj3760 := 0; ; yyj3760++ { - if yyhl3760 { - if yyj3760 >= l { + 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 { @@ -47319,10 +48399,10 @@ func (x *ObjectReference) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3760Slc = r.DecodeBytes(yys3760Slc, true, true) - yys3760 := string(yys3760Slc) + yys3843Slc = r.DecodeBytes(yys3843Slc, true, true) + yys3843 := string(yys3843Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3760 { + switch yys3843 { case "kind": if r.TryDecodeAsNil() { x.Kind = "" @@ -47366,9 +48446,9 @@ func (x *ObjectReference) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { x.FieldPath = string(r.DecodeString()) } default: - z.DecStructFieldNotFound(-1, yys3760) - } // end switch yys3760 - } // end for yyj3760 + z.DecStructFieldNotFound(-1, yys3843) + } // end switch yys3843 + } // end for yyj3843 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -47376,16 +48456,16 @@ func (x *ObjectReference) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj3768 int - var yyb3768 bool - var yyhl3768 bool = l >= 0 - yyj3768++ - if yyhl3768 { - yyb3768 = yyj3768 > l + var yyj3851 int + var yyb3851 bool + var yyhl3851 bool = l >= 0 + yyj3851++ + if yyhl3851 { + yyb3851 = yyj3851 > l } else { - yyb3768 = r.CheckBreak() + yyb3851 = r.CheckBreak() } - if yyb3768 { + if yyb3851 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -47395,13 +48475,13 @@ func (x *ObjectReference) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) } else { x.Kind = string(r.DecodeString()) } - yyj3768++ - if yyhl3768 { - yyb3768 = yyj3768 > l + yyj3851++ + if yyhl3851 { + yyb3851 = yyj3851 > l } else { - yyb3768 = r.CheckBreak() + yyb3851 = r.CheckBreak() } - if yyb3768 { + if yyb3851 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -47411,13 +48491,13 @@ func (x *ObjectReference) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) } else { x.Namespace = string(r.DecodeString()) } - yyj3768++ - if yyhl3768 { - yyb3768 = yyj3768 > l + yyj3851++ + if yyhl3851 { + yyb3851 = yyj3851 > l } else { - yyb3768 = r.CheckBreak() + yyb3851 = r.CheckBreak() } - if yyb3768 { + if yyb3851 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -47427,13 +48507,13 @@ func (x *ObjectReference) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) } else { x.Name = string(r.DecodeString()) } - yyj3768++ - if yyhl3768 { - yyb3768 = yyj3768 > l + yyj3851++ + if yyhl3851 { + yyb3851 = yyj3851 > l } else { - yyb3768 = r.CheckBreak() + yyb3851 = r.CheckBreak() } - if yyb3768 { + if yyb3851 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -47443,13 +48523,13 @@ func (x *ObjectReference) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) } else { x.UID = pkg1_types.UID(r.DecodeString()) } - yyj3768++ - if yyhl3768 { - yyb3768 = yyj3768 > l + yyj3851++ + if yyhl3851 { + yyb3851 = yyj3851 > l } else { - yyb3768 = r.CheckBreak() + yyb3851 = r.CheckBreak() } - if yyb3768 { + if yyb3851 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -47459,13 +48539,13 @@ func (x *ObjectReference) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) } else { x.APIVersion = string(r.DecodeString()) } - yyj3768++ - if yyhl3768 { - yyb3768 = yyj3768 > l + yyj3851++ + if yyhl3851 { + yyb3851 = yyj3851 > l } else { - yyb3768 = r.CheckBreak() + yyb3851 = r.CheckBreak() } - if yyb3768 { + if yyb3851 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -47475,13 +48555,13 @@ func (x *ObjectReference) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) } else { x.ResourceVersion = string(r.DecodeString()) } - yyj3768++ - if yyhl3768 { - yyb3768 = yyj3768 > l + yyj3851++ + if yyhl3851 { + yyb3851 = yyj3851 > l } else { - yyb3768 = r.CheckBreak() + yyb3851 = r.CheckBreak() } - if yyb3768 { + if yyb3851 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -47492,17 +48572,17 @@ func (x *ObjectReference) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) x.FieldPath = string(r.DecodeString()) } for { - yyj3768++ - if yyhl3768 { - yyb3768 = yyj3768 > l + yyj3851++ + if yyhl3851 { + yyb3851 = yyj3851 > l } else { - yyb3768 = r.CheckBreak() + yyb3851 = r.CheckBreak() } - if yyb3768 { + if yyb3851 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj3768-1, "") + z.DecStructFieldNotFound(yyj3851-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -47514,35 +48594,35 @@ func (x *LocalObjectReference) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym3776 := z.EncBinary() - _ = yym3776 + yym3859 := z.EncBinary() + _ = yym3859 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - 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 { + yysep3860 := !z.EncBinary() + yy2arr3860 := z.EncBasicHandle().StructToArray + var yyq3860 [1]bool + _, _, _ = yysep3860, yyq3860, yy2arr3860 + const yyr3860 bool = false + yyq3860[0] = x.Name != "" + var yynn3860 int + if yyr3860 || yy2arr3860 { r.EncodeArrayStart(1) } else { - yynn3777 = 0 - for _, b := range yyq3777 { + yynn3860 = 0 + for _, b := range yyq3860 { if b { - yynn3777++ + yynn3860++ } } - r.EncodeMapStart(yynn3777) - yynn3777 = 0 + r.EncodeMapStart(yynn3860) + yynn3860 = 0 } - if yyr3777 || yy2arr3777 { + if yyr3860 || yy2arr3860 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3777[0] { - yym3779 := z.EncBinary() - _ = yym3779 + if yyq3860[0] { + yym3862 := z.EncBinary() + _ = yym3862 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Name)) @@ -47551,19 +48631,19 @@ func (x *LocalObjectReference) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq3777[0] { + if yyq3860[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("name")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym3780 := z.EncBinary() - _ = yym3780 + yym3863 := z.EncBinary() + _ = yym3863 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Name)) } } } - if yyr3777 || yy2arr3777 { + if yyr3860 || yy2arr3860 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -47576,25 +48656,25 @@ func (x *LocalObjectReference) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym3781 := z.DecBinary() - _ = yym3781 + yym3864 := z.DecBinary() + _ = yym3864 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct3782 := r.ContainerType() - if yyct3782 == codecSelferValueTypeMap1234 { - yyl3782 := r.ReadMapStart() - if yyl3782 == 0 { + yyct3865 := r.ContainerType() + if yyct3865 == codecSelferValueTypeMap1234 { + yyl3865 := r.ReadMapStart() + if yyl3865 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl3782, d) + x.codecDecodeSelfFromMap(yyl3865, d) } - } else if yyct3782 == codecSelferValueTypeArray1234 { - yyl3782 := r.ReadArrayStart() - if yyl3782 == 0 { + } else if yyct3865 == codecSelferValueTypeArray1234 { + yyl3865 := r.ReadArrayStart() + if yyl3865 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl3782, d) + x.codecDecodeSelfFromArray(yyl3865, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -47606,12 +48686,12 @@ func (x *LocalObjectReference) codecDecodeSelfFromMap(l int, d *codec1978.Decode var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys3783Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3783Slc - var yyhl3783 bool = l >= 0 - for yyj3783 := 0; ; yyj3783++ { - if yyhl3783 { - if yyj3783 >= l { + var yys3866Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys3866Slc + var yyhl3866 bool = l >= 0 + for yyj3866 := 0; ; yyj3866++ { + if yyhl3866 { + if yyj3866 >= l { break } } else { @@ -47620,10 +48700,10 @@ func (x *LocalObjectReference) codecDecodeSelfFromMap(l int, d *codec1978.Decode } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3783Slc = r.DecodeBytes(yys3783Slc, true, true) - yys3783 := string(yys3783Slc) + yys3866Slc = r.DecodeBytes(yys3866Slc, true, true) + yys3866 := string(yys3866Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3783 { + switch yys3866 { case "name": if r.TryDecodeAsNil() { x.Name = "" @@ -47631,9 +48711,9 @@ func (x *LocalObjectReference) codecDecodeSelfFromMap(l int, d *codec1978.Decode x.Name = string(r.DecodeString()) } default: - z.DecStructFieldNotFound(-1, yys3783) - } // end switch yys3783 - } // end for yyj3783 + z.DecStructFieldNotFound(-1, yys3866) + } // end switch yys3866 + } // end for yyj3866 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -47641,16 +48721,16 @@ func (x *LocalObjectReference) codecDecodeSelfFromArray(l int, d *codec1978.Deco var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj3785 int - var yyb3785 bool - var yyhl3785 bool = l >= 0 - yyj3785++ - if yyhl3785 { - yyb3785 = yyj3785 > l + var yyj3868 int + var yyb3868 bool + var yyhl3868 bool = l >= 0 + yyj3868++ + if yyhl3868 { + yyb3868 = yyj3868 > l } else { - yyb3785 = r.CheckBreak() + yyb3868 = r.CheckBreak() } - if yyb3785 { + if yyb3868 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -47661,17 +48741,17 @@ func (x *LocalObjectReference) codecDecodeSelfFromArray(l int, d *codec1978.Deco x.Name = string(r.DecodeString()) } for { - yyj3785++ - if yyhl3785 { - yyb3785 = yyj3785 > l + yyj3868++ + if yyhl3868 { + yyb3868 = yyj3868 > l } else { - yyb3785 = r.CheckBreak() + yyb3868 = r.CheckBreak() } - if yyb3785 { + if yyb3868 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj3785-1, "") + z.DecStructFieldNotFound(yyj3868-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -47683,37 +48763,37 @@ func (x *SerializedReference) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym3787 := z.EncBinary() - _ = yym3787 + yym3870 := z.EncBinary() + _ = yym3870 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - 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 { + yysep3871 := !z.EncBinary() + yy2arr3871 := z.EncBasicHandle().StructToArray + var yyq3871 [3]bool + _, _, _ = yysep3871, yyq3871, yy2arr3871 + const yyr3871 bool = false + yyq3871[0] = x.Kind != "" + yyq3871[1] = x.APIVersion != "" + yyq3871[2] = true + var yynn3871 int + if yyr3871 || yy2arr3871 { r.EncodeArrayStart(3) } else { - yynn3788 = 0 - for _, b := range yyq3788 { + yynn3871 = 0 + for _, b := range yyq3871 { if b { - yynn3788++ + yynn3871++ } } - r.EncodeMapStart(yynn3788) - yynn3788 = 0 + r.EncodeMapStart(yynn3871) + yynn3871 = 0 } - if yyr3788 || yy2arr3788 { + if yyr3871 || yy2arr3871 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3788[0] { - yym3790 := z.EncBinary() - _ = yym3790 + if yyq3871[0] { + yym3873 := z.EncBinary() + _ = yym3873 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) @@ -47722,23 +48802,23 @@ func (x *SerializedReference) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq3788[0] { + if yyq3871[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym3791 := z.EncBinary() - _ = yym3791 + yym3874 := z.EncBinary() + _ = yym3874 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } - if yyr3788 || yy2arr3788 { + if yyr3871 || yy2arr3871 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3788[1] { - yym3793 := z.EncBinary() - _ = yym3793 + if yyq3871[1] { + yym3876 := z.EncBinary() + _ = yym3876 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) @@ -47747,36 +48827,36 @@ func (x *SerializedReference) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq3788[1] { + if yyq3871[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym3794 := z.EncBinary() - _ = yym3794 + yym3877 := z.EncBinary() + _ = yym3877 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } - if yyr3788 || yy2arr3788 { + if yyr3871 || yy2arr3871 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3788[2] { - yy3796 := &x.Reference - yy3796.CodecEncodeSelf(e) + if yyq3871[2] { + yy3879 := &x.Reference + yy3879.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { - if yyq3788[2] { + if yyq3871[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("reference")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy3797 := &x.Reference - yy3797.CodecEncodeSelf(e) + yy3880 := &x.Reference + yy3880.CodecEncodeSelf(e) } } - if yyr3788 || yy2arr3788 { + if yyr3871 || yy2arr3871 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -47789,25 +48869,25 @@ func (x *SerializedReference) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym3798 := z.DecBinary() - _ = yym3798 + yym3881 := z.DecBinary() + _ = yym3881 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct3799 := r.ContainerType() - if yyct3799 == codecSelferValueTypeMap1234 { - yyl3799 := r.ReadMapStart() - if yyl3799 == 0 { + yyct3882 := r.ContainerType() + if yyct3882 == codecSelferValueTypeMap1234 { + yyl3882 := r.ReadMapStart() + if yyl3882 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl3799, d) + x.codecDecodeSelfFromMap(yyl3882, d) } - } else if yyct3799 == codecSelferValueTypeArray1234 { - yyl3799 := r.ReadArrayStart() - if yyl3799 == 0 { + } else if yyct3882 == codecSelferValueTypeArray1234 { + yyl3882 := r.ReadArrayStart() + if yyl3882 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl3799, d) + x.codecDecodeSelfFromArray(yyl3882, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -47819,12 +48899,12 @@ func (x *SerializedReference) codecDecodeSelfFromMap(l int, d *codec1978.Decoder var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys3800Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3800Slc - var yyhl3800 bool = l >= 0 - for yyj3800 := 0; ; yyj3800++ { - if yyhl3800 { - if yyj3800 >= l { + var yys3883Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys3883Slc + var yyhl3883 bool = l >= 0 + for yyj3883 := 0; ; yyj3883++ { + if yyhl3883 { + if yyj3883 >= l { break } } else { @@ -47833,10 +48913,10 @@ func (x *SerializedReference) codecDecodeSelfFromMap(l int, d *codec1978.Decoder } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3800Slc = r.DecodeBytes(yys3800Slc, true, true) - yys3800 := string(yys3800Slc) + yys3883Slc = r.DecodeBytes(yys3883Slc, true, true) + yys3883 := string(yys3883Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3800 { + switch yys3883 { case "kind": if r.TryDecodeAsNil() { x.Kind = "" @@ -47853,13 +48933,13 @@ func (x *SerializedReference) codecDecodeSelfFromMap(l int, d *codec1978.Decoder if r.TryDecodeAsNil() { x.Reference = ObjectReference{} } else { - yyv3803 := &x.Reference - yyv3803.CodecDecodeSelf(d) + yyv3886 := &x.Reference + yyv3886.CodecDecodeSelf(d) } default: - z.DecStructFieldNotFound(-1, yys3800) - } // end switch yys3800 - } // end for yyj3800 + z.DecStructFieldNotFound(-1, yys3883) + } // end switch yys3883 + } // end for yyj3883 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -47867,16 +48947,16 @@ func (x *SerializedReference) codecDecodeSelfFromArray(l int, d *codec1978.Decod var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj3804 int - var yyb3804 bool - var yyhl3804 bool = l >= 0 - yyj3804++ - if yyhl3804 { - yyb3804 = yyj3804 > l + var yyj3887 int + var yyb3887 bool + var yyhl3887 bool = l >= 0 + yyj3887++ + if yyhl3887 { + yyb3887 = yyj3887 > l } else { - yyb3804 = r.CheckBreak() + yyb3887 = r.CheckBreak() } - if yyb3804 { + if yyb3887 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -47886,13 +48966,13 @@ func (x *SerializedReference) codecDecodeSelfFromArray(l int, d *codec1978.Decod } else { x.Kind = string(r.DecodeString()) } - yyj3804++ - if yyhl3804 { - yyb3804 = yyj3804 > l + yyj3887++ + if yyhl3887 { + yyb3887 = yyj3887 > l } else { - yyb3804 = r.CheckBreak() + yyb3887 = r.CheckBreak() } - if yyb3804 { + if yyb3887 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -47902,13 +48982,13 @@ func (x *SerializedReference) codecDecodeSelfFromArray(l int, d *codec1978.Decod } else { x.APIVersion = string(r.DecodeString()) } - yyj3804++ - if yyhl3804 { - yyb3804 = yyj3804 > l + yyj3887++ + if yyhl3887 { + yyb3887 = yyj3887 > l } else { - yyb3804 = r.CheckBreak() + yyb3887 = r.CheckBreak() } - if yyb3804 { + if yyb3887 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -47916,21 +48996,21 @@ func (x *SerializedReference) codecDecodeSelfFromArray(l int, d *codec1978.Decod if r.TryDecodeAsNil() { x.Reference = ObjectReference{} } else { - yyv3807 := &x.Reference - yyv3807.CodecDecodeSelf(d) + yyv3890 := &x.Reference + yyv3890.CodecDecodeSelf(d) } for { - yyj3804++ - if yyhl3804 { - yyb3804 = yyj3804 > l + yyj3887++ + if yyhl3887 { + yyb3887 = yyj3887 > l } else { - yyb3804 = r.CheckBreak() + yyb3887 = r.CheckBreak() } - if yyb3804 { + if yyb3887 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj3804-1, "") + z.DecStructFieldNotFound(yyj3887-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -47942,36 +49022,36 @@ func (x *EventSource) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym3808 := z.EncBinary() - _ = yym3808 + yym3891 := z.EncBinary() + _ = yym3891 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - 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 { + yysep3892 := !z.EncBinary() + yy2arr3892 := z.EncBasicHandle().StructToArray + var yyq3892 [2]bool + _, _, _ = yysep3892, yyq3892, yy2arr3892 + const yyr3892 bool = false + yyq3892[0] = x.Component != "" + yyq3892[1] = x.Host != "" + var yynn3892 int + if yyr3892 || yy2arr3892 { r.EncodeArrayStart(2) } else { - yynn3809 = 0 - for _, b := range yyq3809 { + yynn3892 = 0 + for _, b := range yyq3892 { if b { - yynn3809++ + yynn3892++ } } - r.EncodeMapStart(yynn3809) - yynn3809 = 0 + r.EncodeMapStart(yynn3892) + yynn3892 = 0 } - if yyr3809 || yy2arr3809 { + if yyr3892 || yy2arr3892 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3809[0] { - yym3811 := z.EncBinary() - _ = yym3811 + if yyq3892[0] { + yym3894 := z.EncBinary() + _ = yym3894 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Component)) @@ -47980,23 +49060,23 @@ func (x *EventSource) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq3809[0] { + if yyq3892[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("component")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym3812 := z.EncBinary() - _ = yym3812 + yym3895 := z.EncBinary() + _ = yym3895 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Component)) } } } - if yyr3809 || yy2arr3809 { + if yyr3892 || yy2arr3892 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3809[1] { - yym3814 := z.EncBinary() - _ = yym3814 + if yyq3892[1] { + yym3897 := z.EncBinary() + _ = yym3897 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Host)) @@ -48005,19 +49085,19 @@ func (x *EventSource) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq3809[1] { + if yyq3892[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("host")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym3815 := z.EncBinary() - _ = yym3815 + yym3898 := z.EncBinary() + _ = yym3898 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Host)) } } } - if yyr3809 || yy2arr3809 { + if yyr3892 || yy2arr3892 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -48030,25 +49110,25 @@ func (x *EventSource) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym3816 := z.DecBinary() - _ = yym3816 + yym3899 := z.DecBinary() + _ = yym3899 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct3817 := r.ContainerType() - if yyct3817 == codecSelferValueTypeMap1234 { - yyl3817 := r.ReadMapStart() - if yyl3817 == 0 { + yyct3900 := r.ContainerType() + if yyct3900 == codecSelferValueTypeMap1234 { + yyl3900 := r.ReadMapStart() + if yyl3900 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl3817, d) + x.codecDecodeSelfFromMap(yyl3900, d) } - } else if yyct3817 == codecSelferValueTypeArray1234 { - yyl3817 := r.ReadArrayStart() - if yyl3817 == 0 { + } else if yyct3900 == codecSelferValueTypeArray1234 { + yyl3900 := r.ReadArrayStart() + if yyl3900 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl3817, d) + x.codecDecodeSelfFromArray(yyl3900, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -48060,12 +49140,12 @@ func (x *EventSource) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys3818Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3818Slc - var yyhl3818 bool = l >= 0 - for yyj3818 := 0; ; yyj3818++ { - if yyhl3818 { - if yyj3818 >= l { + var yys3901Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys3901Slc + var yyhl3901 bool = l >= 0 + for yyj3901 := 0; ; yyj3901++ { + if yyhl3901 { + if yyj3901 >= l { break } } else { @@ -48074,10 +49154,10 @@ func (x *EventSource) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3818Slc = r.DecodeBytes(yys3818Slc, true, true) - yys3818 := string(yys3818Slc) + yys3901Slc = r.DecodeBytes(yys3901Slc, true, true) + yys3901 := string(yys3901Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3818 { + switch yys3901 { case "component": if r.TryDecodeAsNil() { x.Component = "" @@ -48091,9 +49171,9 @@ func (x *EventSource) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { x.Host = string(r.DecodeString()) } default: - z.DecStructFieldNotFound(-1, yys3818) - } // end switch yys3818 - } // end for yyj3818 + z.DecStructFieldNotFound(-1, yys3901) + } // end switch yys3901 + } // end for yyj3901 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -48101,16 +49181,16 @@ func (x *EventSource) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj3821 int - var yyb3821 bool - var yyhl3821 bool = l >= 0 - yyj3821++ - if yyhl3821 { - yyb3821 = yyj3821 > l + var yyj3904 int + var yyb3904 bool + var yyhl3904 bool = l >= 0 + yyj3904++ + if yyhl3904 { + yyb3904 = yyj3904 > l } else { - yyb3821 = r.CheckBreak() + yyb3904 = r.CheckBreak() } - if yyb3821 { + if yyb3904 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -48120,13 +49200,13 @@ func (x *EventSource) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.Component = string(r.DecodeString()) } - yyj3821++ - if yyhl3821 { - yyb3821 = yyj3821 > l + yyj3904++ + if yyhl3904 { + yyb3904 = yyj3904 > l } else { - yyb3821 = r.CheckBreak() + yyb3904 = r.CheckBreak() } - if yyb3821 { + if yyb3904 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -48137,17 +49217,17 @@ func (x *EventSource) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { x.Host = string(r.DecodeString()) } for { - yyj3821++ - if yyhl3821 { - yyb3821 = yyj3821 > l + yyj3904++ + if yyhl3904 { + yyb3904 = yyj3904 > l } else { - yyb3821 = r.CheckBreak() + yyb3904 = r.CheckBreak() } - if yyb3821 { + if yyb3904 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj3821-1, "") + z.DecStructFieldNotFound(yyj3904-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -48159,43 +49239,43 @@ func (x *Event) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym3824 := z.EncBinary() - _ = yym3824 + yym3907 := z.EncBinary() + _ = yym3907 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - 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 { + yysep3908 := !z.EncBinary() + yy2arr3908 := z.EncBasicHandle().StructToArray + var yyq3908 [11]bool + _, _, _ = yysep3908, yyq3908, yy2arr3908 + const yyr3908 bool = false + yyq3908[0] = x.Kind != "" + yyq3908[1] = x.APIVersion != "" + yyq3908[4] = x.Reason != "" + yyq3908[5] = x.Message != "" + yyq3908[6] = true + yyq3908[7] = true + yyq3908[8] = true + yyq3908[9] = x.Count != 0 + yyq3908[10] = x.Type != "" + var yynn3908 int + if yyr3908 || yy2arr3908 { r.EncodeArrayStart(11) } else { - yynn3825 = 2 - for _, b := range yyq3825 { + yynn3908 = 2 + for _, b := range yyq3908 { if b { - yynn3825++ + yynn3908++ } } - r.EncodeMapStart(yynn3825) - yynn3825 = 0 + r.EncodeMapStart(yynn3908) + yynn3908 = 0 } - if yyr3825 || yy2arr3825 { + if yyr3908 || yy2arr3908 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3825[0] { - yym3827 := z.EncBinary() - _ = yym3827 + if yyq3908[0] { + yym3910 := z.EncBinary() + _ = yym3910 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) @@ -48204,23 +49284,23 @@ func (x *Event) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq3825[0] { + if yyq3908[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym3828 := z.EncBinary() - _ = yym3828 + yym3911 := z.EncBinary() + _ = yym3911 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } - if yyr3825 || yy2arr3825 { + if yyr3908 || yy2arr3908 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3825[1] { - yym3830 := z.EncBinary() - _ = yym3830 + if yyq3908[1] { + yym3913 := z.EncBinary() + _ = yym3913 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) @@ -48229,45 +49309,45 @@ func (x *Event) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq3825[1] { + if yyq3908[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym3831 := z.EncBinary() - _ = yym3831 + yym3914 := z.EncBinary() + _ = yym3914 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } - if yyr3825 || yy2arr3825 { + if yyr3908 || yy2arr3908 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy3833 := &x.ObjectMeta - yy3833.CodecEncodeSelf(e) + yy3916 := &x.ObjectMeta + yy3916.CodecEncodeSelf(e) } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy3834 := &x.ObjectMeta - yy3834.CodecEncodeSelf(e) + yy3917 := &x.ObjectMeta + yy3917.CodecEncodeSelf(e) } - if yyr3825 || yy2arr3825 { + if yyr3908 || yy2arr3908 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy3836 := &x.InvolvedObject - yy3836.CodecEncodeSelf(e) + yy3919 := &x.InvolvedObject + yy3919.CodecEncodeSelf(e) } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("involvedObject")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy3837 := &x.InvolvedObject - yy3837.CodecEncodeSelf(e) + yy3920 := &x.InvolvedObject + yy3920.CodecEncodeSelf(e) } - if yyr3825 || yy2arr3825 { + if yyr3908 || yy2arr3908 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3825[4] { - yym3839 := z.EncBinary() - _ = yym3839 + if yyq3908[4] { + yym3922 := z.EncBinary() + _ = yym3922 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Reason)) @@ -48276,23 +49356,23 @@ func (x *Event) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq3825[4] { + if yyq3908[4] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("reason")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym3840 := z.EncBinary() - _ = yym3840 + yym3923 := z.EncBinary() + _ = yym3923 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Reason)) } } } - if yyr3825 || yy2arr3825 { + if yyr3908 || yy2arr3908 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3825[5] { - yym3842 := z.EncBinary() - _ = yym3842 + if yyq3908[5] { + yym3925 := z.EncBinary() + _ = yym3925 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Message)) @@ -48301,114 +49381,114 @@ func (x *Event) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq3825[5] { + if yyq3908[5] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("message")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym3843 := z.EncBinary() - _ = yym3843 + yym3926 := z.EncBinary() + _ = yym3926 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Message)) } } } - if yyr3825 || yy2arr3825 { + if yyr3908 || yy2arr3908 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3825[6] { - yy3845 := &x.Source - yy3845.CodecEncodeSelf(e) + if yyq3908[6] { + yy3928 := &x.Source + yy3928.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { - if yyq3825[6] { + if yyq3908[6] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("source")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy3846 := &x.Source - yy3846.CodecEncodeSelf(e) + yy3929 := &x.Source + yy3929.CodecEncodeSelf(e) } } - if yyr3825 || yy2arr3825 { + if yyr3908 || yy2arr3908 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3825[7] { - yy3848 := &x.FirstTimestamp - yym3849 := z.EncBinary() - _ = yym3849 + if yyq3908[7] { + yy3931 := &x.FirstTimestamp + yym3932 := z.EncBinary() + _ = yym3932 if false { - } else if z.HasExtensions() && z.EncExt(yy3848) { - } else if yym3849 { - z.EncBinaryMarshal(yy3848) - } else if !yym3849 && z.IsJSONHandle() { - z.EncJSONMarshal(yy3848) + } else if z.HasExtensions() && z.EncExt(yy3931) { + } else if yym3932 { + z.EncBinaryMarshal(yy3931) + } else if !yym3932 && z.IsJSONHandle() { + z.EncJSONMarshal(yy3931) } else { - z.EncFallback(yy3848) + z.EncFallback(yy3931) } } else { r.EncodeNil() } } else { - if yyq3825[7] { + if yyq3908[7] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("firstTimestamp")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy3850 := &x.FirstTimestamp - yym3851 := z.EncBinary() - _ = yym3851 + yy3933 := &x.FirstTimestamp + yym3934 := z.EncBinary() + _ = yym3934 if false { - } else if z.HasExtensions() && z.EncExt(yy3850) { - } else if yym3851 { - z.EncBinaryMarshal(yy3850) - } else if !yym3851 && z.IsJSONHandle() { - z.EncJSONMarshal(yy3850) + } else if z.HasExtensions() && z.EncExt(yy3933) { + } else if yym3934 { + z.EncBinaryMarshal(yy3933) + } else if !yym3934 && z.IsJSONHandle() { + z.EncJSONMarshal(yy3933) } else { - z.EncFallback(yy3850) + z.EncFallback(yy3933) } } } - if yyr3825 || yy2arr3825 { + if yyr3908 || yy2arr3908 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3825[8] { - yy3853 := &x.LastTimestamp - yym3854 := z.EncBinary() - _ = yym3854 + if yyq3908[8] { + yy3936 := &x.LastTimestamp + yym3937 := z.EncBinary() + _ = yym3937 if false { - } else if z.HasExtensions() && z.EncExt(yy3853) { - } else if yym3854 { - z.EncBinaryMarshal(yy3853) - } else if !yym3854 && z.IsJSONHandle() { - z.EncJSONMarshal(yy3853) + } else if z.HasExtensions() && z.EncExt(yy3936) { + } else if yym3937 { + z.EncBinaryMarshal(yy3936) + } else if !yym3937 && z.IsJSONHandle() { + z.EncJSONMarshal(yy3936) } else { - z.EncFallback(yy3853) + z.EncFallback(yy3936) } } else { r.EncodeNil() } } else { - if yyq3825[8] { + if yyq3908[8] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("lastTimestamp")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy3855 := &x.LastTimestamp - yym3856 := z.EncBinary() - _ = yym3856 + yy3938 := &x.LastTimestamp + yym3939 := z.EncBinary() + _ = yym3939 if false { - } else if z.HasExtensions() && z.EncExt(yy3855) { - } else if yym3856 { - z.EncBinaryMarshal(yy3855) - } else if !yym3856 && z.IsJSONHandle() { - z.EncJSONMarshal(yy3855) + } else if z.HasExtensions() && z.EncExt(yy3938) { + } else if yym3939 { + z.EncBinaryMarshal(yy3938) + } else if !yym3939 && z.IsJSONHandle() { + z.EncJSONMarshal(yy3938) } else { - z.EncFallback(yy3855) + z.EncFallback(yy3938) } } } - if yyr3825 || yy2arr3825 { + if yyr3908 || yy2arr3908 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3825[9] { - yym3858 := z.EncBinary() - _ = yym3858 + if yyq3908[9] { + yym3941 := z.EncBinary() + _ = yym3941 if false { } else { r.EncodeInt(int64(x.Count)) @@ -48417,23 +49497,23 @@ func (x *Event) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeInt(0) } } else { - if yyq3825[9] { + if yyq3908[9] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("count")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym3859 := z.EncBinary() - _ = yym3859 + yym3942 := z.EncBinary() + _ = yym3942 if false { } else { r.EncodeInt(int64(x.Count)) } } } - if yyr3825 || yy2arr3825 { + if yyr3908 || yy2arr3908 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3825[10] { - yym3861 := z.EncBinary() - _ = yym3861 + if yyq3908[10] { + yym3944 := z.EncBinary() + _ = yym3944 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Type)) @@ -48442,19 +49522,19 @@ func (x *Event) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq3825[10] { + if yyq3908[10] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("type")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym3862 := z.EncBinary() - _ = yym3862 + yym3945 := z.EncBinary() + _ = yym3945 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Type)) } } } - if yyr3825 || yy2arr3825 { + if yyr3908 || yy2arr3908 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -48467,25 +49547,25 @@ func (x *Event) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym3863 := z.DecBinary() - _ = yym3863 + yym3946 := z.DecBinary() + _ = yym3946 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct3864 := r.ContainerType() - if yyct3864 == codecSelferValueTypeMap1234 { - yyl3864 := r.ReadMapStart() - if yyl3864 == 0 { + yyct3947 := r.ContainerType() + if yyct3947 == codecSelferValueTypeMap1234 { + yyl3947 := r.ReadMapStart() + if yyl3947 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl3864, d) + x.codecDecodeSelfFromMap(yyl3947, d) } - } else if yyct3864 == codecSelferValueTypeArray1234 { - yyl3864 := r.ReadArrayStart() - if yyl3864 == 0 { + } else if yyct3947 == codecSelferValueTypeArray1234 { + yyl3947 := r.ReadArrayStart() + if yyl3947 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl3864, d) + x.codecDecodeSelfFromArray(yyl3947, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -48497,12 +49577,12 @@ func (x *Event) 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 { + var yys3948Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys3948Slc + var yyhl3948 bool = l >= 0 + for yyj3948 := 0; ; yyj3948++ { + if yyhl3948 { + if yyj3948 >= l { break } } else { @@ -48511,10 +49591,10 @@ func (x *Event) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3865Slc = r.DecodeBytes(yys3865Slc, true, true) - yys3865 := string(yys3865Slc) + yys3948Slc = r.DecodeBytes(yys3948Slc, true, true) + yys3948 := string(yys3948Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3865 { + switch yys3948 { case "kind": if r.TryDecodeAsNil() { x.Kind = "" @@ -48531,15 +49611,15 @@ func (x *Event) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.ObjectMeta = ObjectMeta{} } else { - yyv3868 := &x.ObjectMeta - yyv3868.CodecDecodeSelf(d) + yyv3951 := &x.ObjectMeta + yyv3951.CodecDecodeSelf(d) } case "involvedObject": if r.TryDecodeAsNil() { x.InvolvedObject = ObjectReference{} } else { - yyv3869 := &x.InvolvedObject - yyv3869.CodecDecodeSelf(d) + yyv3952 := &x.InvolvedObject + yyv3952.CodecDecodeSelf(d) } case "reason": if r.TryDecodeAsNil() { @@ -48557,41 +49637,41 @@ func (x *Event) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.Source = EventSource{} } else { - yyv3872 := &x.Source - yyv3872.CodecDecodeSelf(d) + yyv3955 := &x.Source + yyv3955.CodecDecodeSelf(d) } case "firstTimestamp": if r.TryDecodeAsNil() { x.FirstTimestamp = pkg2_unversioned.Time{} } else { - yyv3873 := &x.FirstTimestamp - yym3874 := z.DecBinary() - _ = yym3874 + yyv3956 := &x.FirstTimestamp + yym3957 := z.DecBinary() + _ = yym3957 if false { - } else if z.HasExtensions() && z.DecExt(yyv3873) { - } else if yym3874 { - z.DecBinaryUnmarshal(yyv3873) - } else if !yym3874 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv3873) + } else if z.HasExtensions() && z.DecExt(yyv3956) { + } else if yym3957 { + z.DecBinaryUnmarshal(yyv3956) + } else if !yym3957 && z.IsJSONHandle() { + z.DecJSONUnmarshal(yyv3956) } else { - z.DecFallback(yyv3873, false) + z.DecFallback(yyv3956, false) } } case "lastTimestamp": if r.TryDecodeAsNil() { x.LastTimestamp = pkg2_unversioned.Time{} } else { - yyv3875 := &x.LastTimestamp - yym3876 := z.DecBinary() - _ = yym3876 + yyv3958 := &x.LastTimestamp + yym3959 := z.DecBinary() + _ = yym3959 if false { - } else if z.HasExtensions() && z.DecExt(yyv3875) { - } else if yym3876 { - z.DecBinaryUnmarshal(yyv3875) - } else if !yym3876 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv3875) + } else if z.HasExtensions() && z.DecExt(yyv3958) { + } else if yym3959 { + z.DecBinaryUnmarshal(yyv3958) + } else if !yym3959 && z.IsJSONHandle() { + z.DecJSONUnmarshal(yyv3958) } else { - z.DecFallback(yyv3875, false) + z.DecFallback(yyv3958, false) } } case "count": @@ -48607,9 +49687,9 @@ func (x *Event) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { x.Type = string(r.DecodeString()) } default: - z.DecStructFieldNotFound(-1, yys3865) - } // end switch yys3865 - } // end for yyj3865 + z.DecStructFieldNotFound(-1, yys3948) + } // end switch yys3948 + } // end for yyj3948 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -48617,16 +49697,16 @@ func (x *Event) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj3879 int - var yyb3879 bool - var yyhl3879 bool = l >= 0 - yyj3879++ - if yyhl3879 { - yyb3879 = yyj3879 > l + var yyj3962 int + var yyb3962 bool + var yyhl3962 bool = l >= 0 + yyj3962++ + if yyhl3962 { + yyb3962 = yyj3962 > l } else { - yyb3879 = r.CheckBreak() + yyb3962 = r.CheckBreak() } - if yyb3879 { + if yyb3962 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -48636,13 +49716,13 @@ func (x *Event) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.Kind = string(r.DecodeString()) } - yyj3879++ - if yyhl3879 { - yyb3879 = yyj3879 > l + yyj3962++ + if yyhl3962 { + yyb3962 = yyj3962 > l } else { - yyb3879 = r.CheckBreak() + yyb3962 = r.CheckBreak() } - if yyb3879 { + if yyb3962 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -48652,13 +49732,13 @@ func (x *Event) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.APIVersion = string(r.DecodeString()) } - yyj3879++ - if yyhl3879 { - yyb3879 = yyj3879 > l + yyj3962++ + if yyhl3962 { + yyb3962 = yyj3962 > l } else { - yyb3879 = r.CheckBreak() + yyb3962 = r.CheckBreak() } - if yyb3879 { + if yyb3962 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -48666,16 +49746,16 @@ func (x *Event) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.ObjectMeta = ObjectMeta{} } else { - yyv3882 := &x.ObjectMeta - yyv3882.CodecDecodeSelf(d) + yyv3965 := &x.ObjectMeta + yyv3965.CodecDecodeSelf(d) } - yyj3879++ - if yyhl3879 { - yyb3879 = yyj3879 > l + yyj3962++ + if yyhl3962 { + yyb3962 = yyj3962 > l } else { - yyb3879 = r.CheckBreak() + yyb3962 = r.CheckBreak() } - if yyb3879 { + if yyb3962 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -48683,16 +49763,16 @@ func (x *Event) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.InvolvedObject = ObjectReference{} } else { - yyv3883 := &x.InvolvedObject - yyv3883.CodecDecodeSelf(d) + yyv3966 := &x.InvolvedObject + yyv3966.CodecDecodeSelf(d) } - yyj3879++ - if yyhl3879 { - yyb3879 = yyj3879 > l + yyj3962++ + if yyhl3962 { + yyb3962 = yyj3962 > l } else { - yyb3879 = r.CheckBreak() + yyb3962 = r.CheckBreak() } - if yyb3879 { + if yyb3962 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -48702,13 +49782,13 @@ func (x *Event) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.Reason = string(r.DecodeString()) } - yyj3879++ - if yyhl3879 { - yyb3879 = yyj3879 > l + yyj3962++ + if yyhl3962 { + yyb3962 = yyj3962 > l } else { - yyb3879 = r.CheckBreak() + yyb3962 = r.CheckBreak() } - if yyb3879 { + if yyb3962 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -48718,13 +49798,13 @@ func (x *Event) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.Message = string(r.DecodeString()) } - yyj3879++ - if yyhl3879 { - yyb3879 = yyj3879 > l + yyj3962++ + if yyhl3962 { + yyb3962 = yyj3962 > l } else { - yyb3879 = r.CheckBreak() + yyb3962 = r.CheckBreak() } - if yyb3879 { + if yyb3962 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -48732,16 +49812,16 @@ func (x *Event) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.Source = EventSource{} } else { - yyv3886 := &x.Source - yyv3886.CodecDecodeSelf(d) + yyv3969 := &x.Source + yyv3969.CodecDecodeSelf(d) } - yyj3879++ - if yyhl3879 { - yyb3879 = yyj3879 > l + yyj3962++ + if yyhl3962 { + yyb3962 = yyj3962 > l } else { - yyb3879 = r.CheckBreak() + yyb3962 = r.CheckBreak() } - if yyb3879 { + if yyb3962 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -48749,26 +49829,26 @@ func (x *Event) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.FirstTimestamp = pkg2_unversioned.Time{} } else { - yyv3887 := &x.FirstTimestamp - yym3888 := z.DecBinary() - _ = yym3888 + yyv3970 := &x.FirstTimestamp + yym3971 := z.DecBinary() + _ = yym3971 if false { - } else if z.HasExtensions() && z.DecExt(yyv3887) { - } else if yym3888 { - z.DecBinaryUnmarshal(yyv3887) - } else if !yym3888 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv3887) + } else if z.HasExtensions() && z.DecExt(yyv3970) { + } else if yym3971 { + z.DecBinaryUnmarshal(yyv3970) + } else if !yym3971 && z.IsJSONHandle() { + z.DecJSONUnmarshal(yyv3970) } else { - z.DecFallback(yyv3887, false) + z.DecFallback(yyv3970, false) } } - yyj3879++ - if yyhl3879 { - yyb3879 = yyj3879 > l + yyj3962++ + if yyhl3962 { + yyb3962 = yyj3962 > l } else { - yyb3879 = r.CheckBreak() + yyb3962 = r.CheckBreak() } - if yyb3879 { + if yyb3962 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -48776,26 +49856,26 @@ func (x *Event) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.LastTimestamp = pkg2_unversioned.Time{} } else { - yyv3889 := &x.LastTimestamp - yym3890 := z.DecBinary() - _ = yym3890 + yyv3972 := &x.LastTimestamp + yym3973 := z.DecBinary() + _ = yym3973 if false { - } else if z.HasExtensions() && z.DecExt(yyv3889) { - } else if yym3890 { - z.DecBinaryUnmarshal(yyv3889) - } else if !yym3890 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv3889) + } else if z.HasExtensions() && z.DecExt(yyv3972) { + } else if yym3973 { + z.DecBinaryUnmarshal(yyv3972) + } else if !yym3973 && z.IsJSONHandle() { + z.DecJSONUnmarshal(yyv3972) } else { - z.DecFallback(yyv3889, false) + z.DecFallback(yyv3972, false) } } - yyj3879++ - if yyhl3879 { - yyb3879 = yyj3879 > l + yyj3962++ + if yyhl3962 { + yyb3962 = yyj3962 > l } else { - yyb3879 = r.CheckBreak() + yyb3962 = r.CheckBreak() } - if yyb3879 { + if yyb3962 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -48805,13 +49885,13 @@ func (x *Event) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.Count = int32(r.DecodeInt(32)) } - yyj3879++ - if yyhl3879 { - yyb3879 = yyj3879 > l + yyj3962++ + if yyhl3962 { + yyb3962 = yyj3962 > l } else { - yyb3879 = r.CheckBreak() + yyb3962 = r.CheckBreak() } - if yyb3879 { + if yyb3962 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -48822,17 +49902,17 @@ func (x *Event) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { x.Type = string(r.DecodeString()) } for { - yyj3879++ - if yyhl3879 { - yyb3879 = yyj3879 > l + yyj3962++ + if yyhl3962 { + yyb3962 = yyj3962 > l } else { - yyb3879 = r.CheckBreak() + yyb3962 = r.CheckBreak() } - if yyb3879 { + if yyb3962 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj3879-1, "") + z.DecStructFieldNotFound(yyj3962-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -48844,37 +49924,37 @@ func (x *EventList) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym3893 := z.EncBinary() - _ = yym3893 + yym3976 := z.EncBinary() + _ = yym3976 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - 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 { + yysep3977 := !z.EncBinary() + yy2arr3977 := z.EncBasicHandle().StructToArray + var yyq3977 [4]bool + _, _, _ = yysep3977, yyq3977, yy2arr3977 + const yyr3977 bool = false + yyq3977[0] = x.Kind != "" + yyq3977[1] = x.APIVersion != "" + yyq3977[2] = true + var yynn3977 int + if yyr3977 || yy2arr3977 { r.EncodeArrayStart(4) } else { - yynn3894 = 1 - for _, b := range yyq3894 { + yynn3977 = 1 + for _, b := range yyq3977 { if b { - yynn3894++ + yynn3977++ } } - r.EncodeMapStart(yynn3894) - yynn3894 = 0 + r.EncodeMapStart(yynn3977) + yynn3977 = 0 } - if yyr3894 || yy2arr3894 { + if yyr3977 || yy2arr3977 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3894[0] { - yym3896 := z.EncBinary() - _ = yym3896 + if yyq3977[0] { + yym3979 := z.EncBinary() + _ = yym3979 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) @@ -48883,23 +49963,23 @@ func (x *EventList) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq3894[0] { + if yyq3977[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym3897 := z.EncBinary() - _ = yym3897 + yym3980 := z.EncBinary() + _ = yym3980 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } - if yyr3894 || yy2arr3894 { + if yyr3977 || yy2arr3977 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3894[1] { - yym3899 := z.EncBinary() - _ = yym3899 + if yyq3977[1] { + yym3982 := z.EncBinary() + _ = yym3982 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) @@ -48908,54 +49988,54 @@ func (x *EventList) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq3894[1] { + if yyq3977[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym3900 := z.EncBinary() - _ = yym3900 + yym3983 := z.EncBinary() + _ = yym3983 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } - if yyr3894 || yy2arr3894 { + if yyr3977 || yy2arr3977 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3894[2] { - yy3902 := &x.ListMeta - yym3903 := z.EncBinary() - _ = yym3903 + if yyq3977[2] { + yy3985 := &x.ListMeta + yym3986 := z.EncBinary() + _ = yym3986 if false { - } else if z.HasExtensions() && z.EncExt(yy3902) { + } else if z.HasExtensions() && z.EncExt(yy3985) { } else { - z.EncFallback(yy3902) + z.EncFallback(yy3985) } } else { r.EncodeNil() } } else { - if yyq3894[2] { + if yyq3977[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy3904 := &x.ListMeta - yym3905 := z.EncBinary() - _ = yym3905 + yy3987 := &x.ListMeta + yym3988 := z.EncBinary() + _ = yym3988 if false { - } else if z.HasExtensions() && z.EncExt(yy3904) { + } else if z.HasExtensions() && z.EncExt(yy3987) { } else { - z.EncFallback(yy3904) + z.EncFallback(yy3987) } } } - if yyr3894 || yy2arr3894 { + if yyr3977 || yy2arr3977 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.Items == nil { r.EncodeNil() } else { - yym3907 := z.EncBinary() - _ = yym3907 + yym3990 := z.EncBinary() + _ = yym3990 if false { } else { h.encSliceEvent(([]Event)(x.Items), e) @@ -48968,15 +50048,15 @@ func (x *EventList) CodecEncodeSelf(e *codec1978.Encoder) { if x.Items == nil { r.EncodeNil() } else { - yym3908 := z.EncBinary() - _ = yym3908 + yym3991 := z.EncBinary() + _ = yym3991 if false { } else { h.encSliceEvent(([]Event)(x.Items), e) } } } - if yyr3894 || yy2arr3894 { + if yyr3977 || yy2arr3977 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -48989,25 +50069,25 @@ func (x *EventList) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym3909 := z.DecBinary() - _ = yym3909 + yym3992 := z.DecBinary() + _ = yym3992 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct3910 := r.ContainerType() - if yyct3910 == codecSelferValueTypeMap1234 { - yyl3910 := r.ReadMapStart() - if yyl3910 == 0 { + yyct3993 := r.ContainerType() + if yyct3993 == codecSelferValueTypeMap1234 { + yyl3993 := r.ReadMapStart() + if yyl3993 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl3910, d) + x.codecDecodeSelfFromMap(yyl3993, d) } - } else if yyct3910 == codecSelferValueTypeArray1234 { - yyl3910 := r.ReadArrayStart() - if yyl3910 == 0 { + } else if yyct3993 == codecSelferValueTypeArray1234 { + yyl3993 := r.ReadArrayStart() + if yyl3993 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl3910, d) + x.codecDecodeSelfFromArray(yyl3993, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -49019,12 +50099,12 @@ func (x *EventList) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys3911Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3911Slc - var yyhl3911 bool = l >= 0 - for yyj3911 := 0; ; yyj3911++ { - if yyhl3911 { - if yyj3911 >= l { + var yys3994Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys3994Slc + var yyhl3994 bool = l >= 0 + for yyj3994 := 0; ; yyj3994++ { + if yyhl3994 { + if yyj3994 >= l { break } } else { @@ -49033,10 +50113,10 @@ func (x *EventList) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3911Slc = r.DecodeBytes(yys3911Slc, true, true) - yys3911 := string(yys3911Slc) + yys3994Slc = r.DecodeBytes(yys3994Slc, true, true) + yys3994 := string(yys3994Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3911 { + switch yys3994 { case "kind": if r.TryDecodeAsNil() { x.Kind = "" @@ -49053,31 +50133,31 @@ func (x *EventList) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.ListMeta = pkg2_unversioned.ListMeta{} } else { - yyv3914 := &x.ListMeta - yym3915 := z.DecBinary() - _ = yym3915 + yyv3997 := &x.ListMeta + yym3998 := z.DecBinary() + _ = yym3998 if false { - } else if z.HasExtensions() && z.DecExt(yyv3914) { + } else if z.HasExtensions() && z.DecExt(yyv3997) { } else { - z.DecFallback(yyv3914, false) + z.DecFallback(yyv3997, false) } } case "items": if r.TryDecodeAsNil() { x.Items = nil } else { - yyv3916 := &x.Items - yym3917 := z.DecBinary() - _ = yym3917 + yyv3999 := &x.Items + yym4000 := z.DecBinary() + _ = yym4000 if false { } else { - h.decSliceEvent((*[]Event)(yyv3916), d) + h.decSliceEvent((*[]Event)(yyv3999), d) } } default: - z.DecStructFieldNotFound(-1, yys3911) - } // end switch yys3911 - } // end for yyj3911 + z.DecStructFieldNotFound(-1, yys3994) + } // end switch yys3994 + } // end for yyj3994 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -49085,16 +50165,16 @@ func (x *EventList) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj3918 int - var yyb3918 bool - var yyhl3918 bool = l >= 0 - yyj3918++ - if yyhl3918 { - yyb3918 = yyj3918 > l + var yyj4001 int + var yyb4001 bool + var yyhl4001 bool = l >= 0 + yyj4001++ + if yyhl4001 { + yyb4001 = yyj4001 > l } else { - yyb3918 = r.CheckBreak() + yyb4001 = r.CheckBreak() } - if yyb3918 { + if yyb4001 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -49104,13 +50184,13 @@ func (x *EventList) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.Kind = string(r.DecodeString()) } - yyj3918++ - if yyhl3918 { - yyb3918 = yyj3918 > l + yyj4001++ + if yyhl4001 { + yyb4001 = yyj4001 > l } else { - yyb3918 = r.CheckBreak() + yyb4001 = r.CheckBreak() } - if yyb3918 { + if yyb4001 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -49120,13 +50200,13 @@ func (x *EventList) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.APIVersion = string(r.DecodeString()) } - yyj3918++ - if yyhl3918 { - yyb3918 = yyj3918 > l + yyj4001++ + if yyhl4001 { + yyb4001 = yyj4001 > l } else { - yyb3918 = r.CheckBreak() + yyb4001 = r.CheckBreak() } - if yyb3918 { + if yyb4001 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -49134,22 +50214,22 @@ func (x *EventList) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.ListMeta = pkg2_unversioned.ListMeta{} } else { - yyv3921 := &x.ListMeta - yym3922 := z.DecBinary() - _ = yym3922 + yyv4004 := &x.ListMeta + yym4005 := z.DecBinary() + _ = yym4005 if false { - } else if z.HasExtensions() && z.DecExt(yyv3921) { + } else if z.HasExtensions() && z.DecExt(yyv4004) { } else { - z.DecFallback(yyv3921, false) + z.DecFallback(yyv4004, false) } } - yyj3918++ - if yyhl3918 { - yyb3918 = yyj3918 > l + yyj4001++ + if yyhl4001 { + yyb4001 = yyj4001 > l } else { - yyb3918 = r.CheckBreak() + yyb4001 = r.CheckBreak() } - if yyb3918 { + if yyb4001 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -49157,26 +50237,26 @@ func (x *EventList) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.Items = nil } else { - yyv3923 := &x.Items - yym3924 := z.DecBinary() - _ = yym3924 + yyv4006 := &x.Items + yym4007 := z.DecBinary() + _ = yym4007 if false { } else { - h.decSliceEvent((*[]Event)(yyv3923), d) + h.decSliceEvent((*[]Event)(yyv4006), d) } } for { - yyj3918++ - if yyhl3918 { - yyb3918 = yyj3918 > l + yyj4001++ + if yyhl4001 { + yyb4001 = yyj4001 > l } else { - yyb3918 = r.CheckBreak() + yyb4001 = r.CheckBreak() } - if yyb3918 { + if yyb4001 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj3918-1, "") + z.DecStructFieldNotFound(yyj4001-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -49188,37 +50268,37 @@ func (x *List) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym3925 := z.EncBinary() - _ = yym3925 + yym4008 := z.EncBinary() + _ = yym4008 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep3926 := !z.EncBinary() - yy2arr3926 := z.EncBasicHandle().StructToArray - var yyq3926 [4]bool - _, _, _ = yysep3926, yyq3926, yy2arr3926 - const yyr3926 bool = false - yyq3926[0] = x.Kind != "" - yyq3926[1] = x.APIVersion != "" - yyq3926[2] = true - var yynn3926 int - if yyr3926 || yy2arr3926 { + yysep4009 := !z.EncBinary() + yy2arr4009 := z.EncBasicHandle().StructToArray + var yyq4009 [4]bool + _, _, _ = yysep4009, yyq4009, yy2arr4009 + const yyr4009 bool = false + yyq4009[0] = x.Kind != "" + yyq4009[1] = x.APIVersion != "" + yyq4009[2] = true + var yynn4009 int + if yyr4009 || yy2arr4009 { r.EncodeArrayStart(4) } else { - yynn3926 = 1 - for _, b := range yyq3926 { + yynn4009 = 1 + for _, b := range yyq4009 { if b { - yynn3926++ + yynn4009++ } } - r.EncodeMapStart(yynn3926) - yynn3926 = 0 + r.EncodeMapStart(yynn4009) + yynn4009 = 0 } - if yyr3926 || yy2arr3926 { + if yyr4009 || yy2arr4009 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3926[0] { - yym3928 := z.EncBinary() - _ = yym3928 + if yyq4009[0] { + yym4011 := z.EncBinary() + _ = yym4011 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) @@ -49227,23 +50307,23 @@ func (x *List) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq3926[0] { + if yyq4009[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym3929 := z.EncBinary() - _ = yym3929 + yym4012 := z.EncBinary() + _ = yym4012 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } - if yyr3926 || yy2arr3926 { + if yyr4009 || yy2arr4009 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3926[1] { - yym3931 := z.EncBinary() - _ = yym3931 + if yyq4009[1] { + yym4014 := z.EncBinary() + _ = yym4014 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) @@ -49252,54 +50332,54 @@ func (x *List) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq3926[1] { + if yyq4009[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym3932 := z.EncBinary() - _ = yym3932 + yym4015 := z.EncBinary() + _ = yym4015 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } - if yyr3926 || yy2arr3926 { + if yyr4009 || yy2arr4009 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3926[2] { - yy3934 := &x.ListMeta - yym3935 := z.EncBinary() - _ = yym3935 + if yyq4009[2] { + yy4017 := &x.ListMeta + yym4018 := z.EncBinary() + _ = yym4018 if false { - } else if z.HasExtensions() && z.EncExt(yy3934) { + } else if z.HasExtensions() && z.EncExt(yy4017) { } else { - z.EncFallback(yy3934) + z.EncFallback(yy4017) } } else { r.EncodeNil() } } else { - if yyq3926[2] { + if yyq4009[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy3936 := &x.ListMeta - yym3937 := z.EncBinary() - _ = yym3937 + yy4019 := &x.ListMeta + yym4020 := z.EncBinary() + _ = yym4020 if false { - } else if z.HasExtensions() && z.EncExt(yy3936) { + } else if z.HasExtensions() && z.EncExt(yy4019) { } else { - z.EncFallback(yy3936) + z.EncFallback(yy4019) } } } - if yyr3926 || yy2arr3926 { + if yyr4009 || yy2arr4009 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.Items == nil { r.EncodeNil() } else { - yym3939 := z.EncBinary() - _ = yym3939 + yym4022 := z.EncBinary() + _ = yym4022 if false { } else { h.encSliceruntime_RawExtension(([]pkg5_runtime.RawExtension)(x.Items), e) @@ -49312,15 +50392,15 @@ func (x *List) CodecEncodeSelf(e *codec1978.Encoder) { if x.Items == nil { r.EncodeNil() } else { - yym3940 := z.EncBinary() - _ = yym3940 + yym4023 := z.EncBinary() + _ = yym4023 if false { } else { h.encSliceruntime_RawExtension(([]pkg5_runtime.RawExtension)(x.Items), e) } } } - if yyr3926 || yy2arr3926 { + if yyr4009 || yy2arr4009 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -49333,25 +50413,25 @@ func (x *List) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym3941 := z.DecBinary() - _ = yym3941 + yym4024 := z.DecBinary() + _ = yym4024 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct3942 := r.ContainerType() - if yyct3942 == codecSelferValueTypeMap1234 { - yyl3942 := r.ReadMapStart() - if yyl3942 == 0 { + yyct4025 := r.ContainerType() + if yyct4025 == codecSelferValueTypeMap1234 { + yyl4025 := r.ReadMapStart() + if yyl4025 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl3942, d) + x.codecDecodeSelfFromMap(yyl4025, d) } - } else if yyct3942 == codecSelferValueTypeArray1234 { - yyl3942 := r.ReadArrayStart() - if yyl3942 == 0 { + } else if yyct4025 == codecSelferValueTypeArray1234 { + yyl4025 := r.ReadArrayStart() + if yyl4025 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl3942, d) + x.codecDecodeSelfFromArray(yyl4025, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -49363,12 +50443,12 @@ func (x *List) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys3943Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3943Slc - var yyhl3943 bool = l >= 0 - for yyj3943 := 0; ; yyj3943++ { - if yyhl3943 { - if yyj3943 >= l { + var yys4026Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys4026Slc + var yyhl4026 bool = l >= 0 + for yyj4026 := 0; ; yyj4026++ { + if yyhl4026 { + if yyj4026 >= l { break } } else { @@ -49377,10 +50457,10 @@ func (x *List) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3943Slc = r.DecodeBytes(yys3943Slc, true, true) - yys3943 := string(yys3943Slc) + yys4026Slc = r.DecodeBytes(yys4026Slc, true, true) + yys4026 := string(yys4026Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3943 { + switch yys4026 { case "kind": if r.TryDecodeAsNil() { x.Kind = "" @@ -49397,31 +50477,31 @@ func (x *List) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.ListMeta = pkg2_unversioned.ListMeta{} } else { - yyv3946 := &x.ListMeta - yym3947 := z.DecBinary() - _ = yym3947 + yyv4029 := &x.ListMeta + yym4030 := z.DecBinary() + _ = yym4030 if false { - } else if z.HasExtensions() && z.DecExt(yyv3946) { + } else if z.HasExtensions() && z.DecExt(yyv4029) { } else { - z.DecFallback(yyv3946, false) + z.DecFallback(yyv4029, false) } } case "items": if r.TryDecodeAsNil() { x.Items = nil } else { - yyv3948 := &x.Items - yym3949 := z.DecBinary() - _ = yym3949 + yyv4031 := &x.Items + yym4032 := z.DecBinary() + _ = yym4032 if false { } else { - h.decSliceruntime_RawExtension((*[]pkg5_runtime.RawExtension)(yyv3948), d) + h.decSliceruntime_RawExtension((*[]pkg5_runtime.RawExtension)(yyv4031), d) } } default: - z.DecStructFieldNotFound(-1, yys3943) - } // end switch yys3943 - } // end for yyj3943 + z.DecStructFieldNotFound(-1, yys4026) + } // end switch yys4026 + } // end for yyj4026 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -49429,16 +50509,16 @@ func (x *List) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj3950 int - var yyb3950 bool - var yyhl3950 bool = l >= 0 - yyj3950++ - if yyhl3950 { - yyb3950 = yyj3950 > l + var yyj4033 int + var yyb4033 bool + var yyhl4033 bool = l >= 0 + yyj4033++ + if yyhl4033 { + yyb4033 = yyj4033 > l } else { - yyb3950 = r.CheckBreak() + yyb4033 = r.CheckBreak() } - if yyb3950 { + if yyb4033 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -49448,13 +50528,13 @@ func (x *List) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.Kind = string(r.DecodeString()) } - yyj3950++ - if yyhl3950 { - yyb3950 = yyj3950 > l + yyj4033++ + if yyhl4033 { + yyb4033 = yyj4033 > l } else { - yyb3950 = r.CheckBreak() + yyb4033 = r.CheckBreak() } - if yyb3950 { + if yyb4033 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -49464,13 +50544,13 @@ func (x *List) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.APIVersion = string(r.DecodeString()) } - yyj3950++ - if yyhl3950 { - yyb3950 = yyj3950 > l + yyj4033++ + if yyhl4033 { + yyb4033 = yyj4033 > l } else { - yyb3950 = r.CheckBreak() + yyb4033 = r.CheckBreak() } - if yyb3950 { + if yyb4033 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -49478,22 +50558,22 @@ func (x *List) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.ListMeta = pkg2_unversioned.ListMeta{} } else { - yyv3953 := &x.ListMeta - yym3954 := z.DecBinary() - _ = yym3954 + yyv4036 := &x.ListMeta + yym4037 := z.DecBinary() + _ = yym4037 if false { - } else if z.HasExtensions() && z.DecExt(yyv3953) { + } else if z.HasExtensions() && z.DecExt(yyv4036) { } else { - z.DecFallback(yyv3953, false) + z.DecFallback(yyv4036, false) } } - yyj3950++ - if yyhl3950 { - yyb3950 = yyj3950 > l + yyj4033++ + if yyhl4033 { + yyb4033 = yyj4033 > l } else { - yyb3950 = r.CheckBreak() + yyb4033 = r.CheckBreak() } - if yyb3950 { + if yyb4033 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -49501,26 +50581,26 @@ func (x *List) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.Items = nil } else { - yyv3955 := &x.Items - yym3956 := z.DecBinary() - _ = yym3956 + yyv4038 := &x.Items + yym4039 := z.DecBinary() + _ = yym4039 if false { } else { - h.decSliceruntime_RawExtension((*[]pkg5_runtime.RawExtension)(yyv3955), d) + h.decSliceruntime_RawExtension((*[]pkg5_runtime.RawExtension)(yyv4038), d) } } for { - yyj3950++ - if yyhl3950 { - yyb3950 = yyj3950 > l + yyj4033++ + if yyhl4033 { + yyb4033 = yyj4033 > l } else { - yyb3950 = r.CheckBreak() + yyb4033 = r.CheckBreak() } - if yyb3950 { + if yyb4033 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj3950-1, "") + z.DecStructFieldNotFound(yyj4033-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -49529,8 +50609,8 @@ func (x LimitType) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r - yym3957 := z.EncBinary() - _ = yym3957 + yym4040 := z.EncBinary() + _ = yym4040 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { @@ -49542,8 +50622,8 @@ func (x *LimitType) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym3958 := z.DecBinary() - _ = yym3958 + yym4041 := z.DecBinary() + _ = yym4041 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { @@ -49558,53 +50638,53 @@ func (x *LimitRangeItem) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym3959 := z.EncBinary() - _ = yym3959 + yym4042 := z.EncBinary() + _ = yym4042 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep3960 := !z.EncBinary() - yy2arr3960 := z.EncBasicHandle().StructToArray - var yyq3960 [6]bool - _, _, _ = yysep3960, yyq3960, yy2arr3960 - const yyr3960 bool = false - yyq3960[0] = x.Type != "" - yyq3960[1] = len(x.Max) != 0 - yyq3960[2] = len(x.Min) != 0 - yyq3960[3] = len(x.Default) != 0 - yyq3960[4] = len(x.DefaultRequest) != 0 - yyq3960[5] = len(x.MaxLimitRequestRatio) != 0 - var yynn3960 int - if yyr3960 || yy2arr3960 { + yysep4043 := !z.EncBinary() + yy2arr4043 := z.EncBasicHandle().StructToArray + var yyq4043 [6]bool + _, _, _ = yysep4043, yyq4043, yy2arr4043 + const yyr4043 bool = false + yyq4043[0] = x.Type != "" + yyq4043[1] = len(x.Max) != 0 + yyq4043[2] = len(x.Min) != 0 + yyq4043[3] = len(x.Default) != 0 + yyq4043[4] = len(x.DefaultRequest) != 0 + yyq4043[5] = len(x.MaxLimitRequestRatio) != 0 + var yynn4043 int + if yyr4043 || yy2arr4043 { r.EncodeArrayStart(6) } else { - yynn3960 = 0 - for _, b := range yyq3960 { + yynn4043 = 0 + for _, b := range yyq4043 { if b { - yynn3960++ + yynn4043++ } } - r.EncodeMapStart(yynn3960) - yynn3960 = 0 + r.EncodeMapStart(yynn4043) + yynn4043 = 0 } - if yyr3960 || yy2arr3960 { + if yyr4043 || yy2arr4043 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3960[0] { + if yyq4043[0] { x.Type.CodecEncodeSelf(e) } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq3960[0] { + if yyq4043[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("type")) z.EncSendContainerState(codecSelfer_containerMapValue1234) x.Type.CodecEncodeSelf(e) } } - if yyr3960 || yy2arr3960 { + if yyr4043 || yy2arr4043 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3960[1] { + if yyq4043[1] { if x.Max == nil { r.EncodeNil() } else { @@ -49614,7 +50694,7 @@ func (x *LimitRangeItem) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq3960[1] { + if yyq4043[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("max")) z.EncSendContainerState(codecSelfer_containerMapValue1234) @@ -49625,9 +50705,9 @@ func (x *LimitRangeItem) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr3960 || yy2arr3960 { + if yyr4043 || yy2arr4043 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3960[2] { + if yyq4043[2] { if x.Min == nil { r.EncodeNil() } else { @@ -49637,7 +50717,7 @@ func (x *LimitRangeItem) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq3960[2] { + if yyq4043[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("min")) z.EncSendContainerState(codecSelfer_containerMapValue1234) @@ -49648,9 +50728,9 @@ func (x *LimitRangeItem) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr3960 || yy2arr3960 { + if yyr4043 || yy2arr4043 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3960[3] { + if yyq4043[3] { if x.Default == nil { r.EncodeNil() } else { @@ -49660,7 +50740,7 @@ func (x *LimitRangeItem) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq3960[3] { + if yyq4043[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("default")) z.EncSendContainerState(codecSelfer_containerMapValue1234) @@ -49671,9 +50751,9 @@ func (x *LimitRangeItem) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr3960 || yy2arr3960 { + if yyr4043 || yy2arr4043 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3960[4] { + if yyq4043[4] { if x.DefaultRequest == nil { r.EncodeNil() } else { @@ -49683,7 +50763,7 @@ func (x *LimitRangeItem) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq3960[4] { + if yyq4043[4] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("defaultRequest")) z.EncSendContainerState(codecSelfer_containerMapValue1234) @@ -49694,9 +50774,9 @@ func (x *LimitRangeItem) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr3960 || yy2arr3960 { + if yyr4043 || yy2arr4043 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3960[5] { + if yyq4043[5] { if x.MaxLimitRequestRatio == nil { r.EncodeNil() } else { @@ -49706,7 +50786,7 @@ func (x *LimitRangeItem) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq3960[5] { + if yyq4043[5] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("maxLimitRequestRatio")) z.EncSendContainerState(codecSelfer_containerMapValue1234) @@ -49717,7 +50797,7 @@ func (x *LimitRangeItem) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr3960 || yy2arr3960 { + if yyr4043 || yy2arr4043 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -49730,25 +50810,25 @@ func (x *LimitRangeItem) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym3967 := z.DecBinary() - _ = yym3967 + yym4050 := z.DecBinary() + _ = yym4050 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct3968 := r.ContainerType() - if yyct3968 == codecSelferValueTypeMap1234 { - yyl3968 := r.ReadMapStart() - if yyl3968 == 0 { + yyct4051 := r.ContainerType() + if yyct4051 == codecSelferValueTypeMap1234 { + yyl4051 := r.ReadMapStart() + if yyl4051 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl3968, d) + x.codecDecodeSelfFromMap(yyl4051, d) } - } else if yyct3968 == codecSelferValueTypeArray1234 { - yyl3968 := r.ReadArrayStart() - if yyl3968 == 0 { + } else if yyct4051 == codecSelferValueTypeArray1234 { + yyl4051 := r.ReadArrayStart() + if yyl4051 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl3968, d) + x.codecDecodeSelfFromArray(yyl4051, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -49760,12 +50840,12 @@ func (x *LimitRangeItem) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys3969Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3969Slc - var yyhl3969 bool = l >= 0 - for yyj3969 := 0; ; yyj3969++ { - if yyhl3969 { - if yyj3969 >= l { + var yys4052Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys4052Slc + var yyhl4052 bool = l >= 0 + for yyj4052 := 0; ; yyj4052++ { + if yyhl4052 { + if yyj4052 >= l { break } } else { @@ -49774,10 +50854,10 @@ func (x *LimitRangeItem) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3969Slc = r.DecodeBytes(yys3969Slc, true, true) - yys3969 := string(yys3969Slc) + yys4052Slc = r.DecodeBytes(yys4052Slc, true, true) + yys4052 := string(yys4052Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3969 { + switch yys4052 { case "type": if r.TryDecodeAsNil() { x.Type = "" @@ -49788,41 +50868,41 @@ func (x *LimitRangeItem) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.Max = nil } else { - yyv3971 := &x.Max - yyv3971.CodecDecodeSelf(d) + yyv4054 := &x.Max + yyv4054.CodecDecodeSelf(d) } case "min": if r.TryDecodeAsNil() { x.Min = nil } else { - yyv3972 := &x.Min - yyv3972.CodecDecodeSelf(d) + yyv4055 := &x.Min + yyv4055.CodecDecodeSelf(d) } case "default": if r.TryDecodeAsNil() { x.Default = nil } else { - yyv3973 := &x.Default - yyv3973.CodecDecodeSelf(d) + yyv4056 := &x.Default + yyv4056.CodecDecodeSelf(d) } case "defaultRequest": if r.TryDecodeAsNil() { x.DefaultRequest = nil } else { - yyv3974 := &x.DefaultRequest - yyv3974.CodecDecodeSelf(d) + yyv4057 := &x.DefaultRequest + yyv4057.CodecDecodeSelf(d) } case "maxLimitRequestRatio": if r.TryDecodeAsNil() { x.MaxLimitRequestRatio = nil } else { - yyv3975 := &x.MaxLimitRequestRatio - yyv3975.CodecDecodeSelf(d) + yyv4058 := &x.MaxLimitRequestRatio + yyv4058.CodecDecodeSelf(d) } default: - z.DecStructFieldNotFound(-1, yys3969) - } // end switch yys3969 - } // end for yyj3969 + z.DecStructFieldNotFound(-1, yys4052) + } // end switch yys4052 + } // end for yyj4052 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -49830,16 +50910,16 @@ func (x *LimitRangeItem) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj3976 int - var yyb3976 bool - var yyhl3976 bool = l >= 0 - yyj3976++ - if yyhl3976 { - yyb3976 = yyj3976 > l + var yyj4059 int + var yyb4059 bool + var yyhl4059 bool = l >= 0 + yyj4059++ + if yyhl4059 { + yyb4059 = yyj4059 > l } else { - yyb3976 = r.CheckBreak() + yyb4059 = r.CheckBreak() } - if yyb3976 { + if yyb4059 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -49849,13 +50929,13 @@ func (x *LimitRangeItem) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.Type = LimitType(r.DecodeString()) } - yyj3976++ - if yyhl3976 { - yyb3976 = yyj3976 > l + yyj4059++ + if yyhl4059 { + yyb4059 = yyj4059 > l } else { - yyb3976 = r.CheckBreak() + yyb4059 = r.CheckBreak() } - if yyb3976 { + if yyb4059 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -49863,16 +50943,16 @@ func (x *LimitRangeItem) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.Max = nil } else { - yyv3978 := &x.Max - yyv3978.CodecDecodeSelf(d) + yyv4061 := &x.Max + yyv4061.CodecDecodeSelf(d) } - yyj3976++ - if yyhl3976 { - yyb3976 = yyj3976 > l + yyj4059++ + if yyhl4059 { + yyb4059 = yyj4059 > l } else { - yyb3976 = r.CheckBreak() + yyb4059 = r.CheckBreak() } - if yyb3976 { + if yyb4059 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -49880,16 +50960,16 @@ func (x *LimitRangeItem) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.Min = nil } else { - yyv3979 := &x.Min - yyv3979.CodecDecodeSelf(d) + yyv4062 := &x.Min + yyv4062.CodecDecodeSelf(d) } - yyj3976++ - if yyhl3976 { - yyb3976 = yyj3976 > l + yyj4059++ + if yyhl4059 { + yyb4059 = yyj4059 > l } else { - yyb3976 = r.CheckBreak() + yyb4059 = r.CheckBreak() } - if yyb3976 { + if yyb4059 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -49897,16 +50977,16 @@ func (x *LimitRangeItem) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.Default = nil } else { - yyv3980 := &x.Default - yyv3980.CodecDecodeSelf(d) + yyv4063 := &x.Default + yyv4063.CodecDecodeSelf(d) } - yyj3976++ - if yyhl3976 { - yyb3976 = yyj3976 > l + yyj4059++ + if yyhl4059 { + yyb4059 = yyj4059 > l } else { - yyb3976 = r.CheckBreak() + yyb4059 = r.CheckBreak() } - if yyb3976 { + if yyb4059 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -49914,16 +50994,16 @@ func (x *LimitRangeItem) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.DefaultRequest = nil } else { - yyv3981 := &x.DefaultRequest - yyv3981.CodecDecodeSelf(d) + yyv4064 := &x.DefaultRequest + yyv4064.CodecDecodeSelf(d) } - yyj3976++ - if yyhl3976 { - yyb3976 = yyj3976 > l + yyj4059++ + if yyhl4059 { + yyb4059 = yyj4059 > l } else { - yyb3976 = r.CheckBreak() + yyb4059 = r.CheckBreak() } - if yyb3976 { + if yyb4059 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -49931,21 +51011,21 @@ func (x *LimitRangeItem) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.MaxLimitRequestRatio = nil } else { - yyv3982 := &x.MaxLimitRequestRatio - yyv3982.CodecDecodeSelf(d) + yyv4065 := &x.MaxLimitRequestRatio + yyv4065.CodecDecodeSelf(d) } for { - yyj3976++ - if yyhl3976 { - yyb3976 = yyj3976 > l + yyj4059++ + if yyhl4059 { + yyb4059 = yyj4059 > l } else { - yyb3976 = r.CheckBreak() + yyb4059 = r.CheckBreak() } - if yyb3976 { + if yyb4059 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj3976-1, "") + z.DecStructFieldNotFound(yyj4059-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -49957,36 +51037,36 @@ func (x *LimitRangeSpec) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym3983 := z.EncBinary() - _ = yym3983 + yym4066 := z.EncBinary() + _ = yym4066 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep3984 := !z.EncBinary() - yy2arr3984 := z.EncBasicHandle().StructToArray - var yyq3984 [1]bool - _, _, _ = yysep3984, yyq3984, yy2arr3984 - const yyr3984 bool = false - var yynn3984 int - if yyr3984 || yy2arr3984 { + yysep4067 := !z.EncBinary() + yy2arr4067 := z.EncBasicHandle().StructToArray + var yyq4067 [1]bool + _, _, _ = yysep4067, yyq4067, yy2arr4067 + const yyr4067 bool = false + var yynn4067 int + if yyr4067 || yy2arr4067 { r.EncodeArrayStart(1) } else { - yynn3984 = 1 - for _, b := range yyq3984 { + yynn4067 = 1 + for _, b := range yyq4067 { if b { - yynn3984++ + yynn4067++ } } - r.EncodeMapStart(yynn3984) - yynn3984 = 0 + r.EncodeMapStart(yynn4067) + yynn4067 = 0 } - if yyr3984 || yy2arr3984 { + if yyr4067 || yy2arr4067 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.Limits == nil { r.EncodeNil() } else { - yym3986 := z.EncBinary() - _ = yym3986 + yym4069 := z.EncBinary() + _ = yym4069 if false { } else { h.encSliceLimitRangeItem(([]LimitRangeItem)(x.Limits), e) @@ -49999,15 +51079,15 @@ func (x *LimitRangeSpec) CodecEncodeSelf(e *codec1978.Encoder) { if x.Limits == nil { r.EncodeNil() } else { - yym3987 := z.EncBinary() - _ = yym3987 + yym4070 := z.EncBinary() + _ = yym4070 if false { } else { h.encSliceLimitRangeItem(([]LimitRangeItem)(x.Limits), e) } } } - if yyr3984 || yy2arr3984 { + if yyr4067 || yy2arr4067 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -50020,25 +51100,25 @@ func (x *LimitRangeSpec) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym3988 := z.DecBinary() - _ = yym3988 + yym4071 := z.DecBinary() + _ = yym4071 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct3989 := r.ContainerType() - if yyct3989 == codecSelferValueTypeMap1234 { - yyl3989 := r.ReadMapStart() - if yyl3989 == 0 { + yyct4072 := r.ContainerType() + if yyct4072 == codecSelferValueTypeMap1234 { + yyl4072 := r.ReadMapStart() + if yyl4072 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl3989, d) + x.codecDecodeSelfFromMap(yyl4072, d) } - } else if yyct3989 == codecSelferValueTypeArray1234 { - yyl3989 := r.ReadArrayStart() - if yyl3989 == 0 { + } else if yyct4072 == codecSelferValueTypeArray1234 { + yyl4072 := r.ReadArrayStart() + if yyl4072 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl3989, d) + x.codecDecodeSelfFromArray(yyl4072, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -50050,12 +51130,12 @@ func (x *LimitRangeSpec) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys3990Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3990Slc - var yyhl3990 bool = l >= 0 - for yyj3990 := 0; ; yyj3990++ { - if yyhl3990 { - if yyj3990 >= l { + 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 { @@ -50064,26 +51144,26 @@ func (x *LimitRangeSpec) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3990Slc = r.DecodeBytes(yys3990Slc, true, true) - yys3990 := string(yys3990Slc) + yys4073Slc = r.DecodeBytes(yys4073Slc, true, true) + yys4073 := string(yys4073Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3990 { + switch yys4073 { case "limits": if r.TryDecodeAsNil() { x.Limits = nil } else { - yyv3991 := &x.Limits - yym3992 := z.DecBinary() - _ = yym3992 + yyv4074 := &x.Limits + yym4075 := z.DecBinary() + _ = yym4075 if false { } else { - h.decSliceLimitRangeItem((*[]LimitRangeItem)(yyv3991), d) + h.decSliceLimitRangeItem((*[]LimitRangeItem)(yyv4074), d) } } default: - z.DecStructFieldNotFound(-1, yys3990) - } // end switch yys3990 - } // end for yyj3990 + z.DecStructFieldNotFound(-1, yys4073) + } // end switch yys4073 + } // end for yyj4073 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -50091,16 +51171,16 @@ func (x *LimitRangeSpec) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj3993 int - var yyb3993 bool - var yyhl3993 bool = l >= 0 - yyj3993++ - if yyhl3993 { - yyb3993 = yyj3993 > l + var yyj4076 int + var yyb4076 bool + var yyhl4076 bool = l >= 0 + yyj4076++ + if yyhl4076 { + yyb4076 = yyj4076 > l } else { - yyb3993 = r.CheckBreak() + yyb4076 = r.CheckBreak() } - if yyb3993 { + if yyb4076 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -50108,26 +51188,26 @@ func (x *LimitRangeSpec) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.Limits = nil } else { - yyv3994 := &x.Limits - yym3995 := z.DecBinary() - _ = yym3995 + yyv4077 := &x.Limits + yym4078 := z.DecBinary() + _ = yym4078 if false { } else { - h.decSliceLimitRangeItem((*[]LimitRangeItem)(yyv3994), d) + h.decSliceLimitRangeItem((*[]LimitRangeItem)(yyv4077), d) } } for { - yyj3993++ - if yyhl3993 { - yyb3993 = yyj3993 > l + yyj4076++ + if yyhl4076 { + yyb4076 = yyj4076 > l } else { - yyb3993 = r.CheckBreak() + yyb4076 = r.CheckBreak() } - if yyb3993 { + if yyb4076 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj3993-1, "") + z.DecStructFieldNotFound(yyj4076-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -50139,38 +51219,38 @@ func (x *LimitRange) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym3996 := z.EncBinary() - _ = yym3996 + yym4079 := z.EncBinary() + _ = yym4079 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep3997 := !z.EncBinary() - yy2arr3997 := z.EncBasicHandle().StructToArray - var yyq3997 [4]bool - _, _, _ = yysep3997, yyq3997, yy2arr3997 - const yyr3997 bool = false - yyq3997[0] = x.Kind != "" - yyq3997[1] = x.APIVersion != "" - yyq3997[2] = true - yyq3997[3] = true - var yynn3997 int - if yyr3997 || yy2arr3997 { + yysep4080 := !z.EncBinary() + yy2arr4080 := z.EncBasicHandle().StructToArray + var yyq4080 [4]bool + _, _, _ = yysep4080, yyq4080, yy2arr4080 + const yyr4080 bool = false + yyq4080[0] = x.Kind != "" + yyq4080[1] = x.APIVersion != "" + yyq4080[2] = true + yyq4080[3] = true + var yynn4080 int + if yyr4080 || yy2arr4080 { r.EncodeArrayStart(4) } else { - yynn3997 = 0 - for _, b := range yyq3997 { + yynn4080 = 0 + for _, b := range yyq4080 { if b { - yynn3997++ + yynn4080++ } } - r.EncodeMapStart(yynn3997) - yynn3997 = 0 + r.EncodeMapStart(yynn4080) + yynn4080 = 0 } - if yyr3997 || yy2arr3997 { + if yyr4080 || yy2arr4080 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3997[0] { - yym3999 := z.EncBinary() - _ = yym3999 + if yyq4080[0] { + yym4082 := z.EncBinary() + _ = yym4082 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) @@ -50179,23 +51259,23 @@ func (x *LimitRange) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq3997[0] { + if yyq4080[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym4000 := z.EncBinary() - _ = yym4000 + yym4083 := z.EncBinary() + _ = yym4083 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } - if yyr3997 || yy2arr3997 { + if yyr4080 || yy2arr4080 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3997[1] { - yym4002 := z.EncBinary() - _ = yym4002 + if yyq4080[1] { + yym4085 := z.EncBinary() + _ = yym4085 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) @@ -50204,53 +51284,53 @@ func (x *LimitRange) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq3997[1] { + if yyq4080[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym4003 := z.EncBinary() - _ = yym4003 + yym4086 := z.EncBinary() + _ = yym4086 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } - if yyr3997 || yy2arr3997 { + if yyr4080 || yy2arr4080 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3997[2] { - yy4005 := &x.ObjectMeta - yy4005.CodecEncodeSelf(e) + if yyq4080[2] { + yy4088 := &x.ObjectMeta + yy4088.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { - if yyq3997[2] { + if yyq4080[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy4006 := &x.ObjectMeta - yy4006.CodecEncodeSelf(e) + yy4089 := &x.ObjectMeta + yy4089.CodecEncodeSelf(e) } } - if yyr3997 || yy2arr3997 { + if yyr4080 || yy2arr4080 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3997[3] { - yy4008 := &x.Spec - yy4008.CodecEncodeSelf(e) + if yyq4080[3] { + yy4091 := &x.Spec + yy4091.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { - if yyq3997[3] { + if yyq4080[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("spec")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy4009 := &x.Spec - yy4009.CodecEncodeSelf(e) + yy4092 := &x.Spec + yy4092.CodecEncodeSelf(e) } } - if yyr3997 || yy2arr3997 { + if yyr4080 || yy2arr4080 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -50263,25 +51343,25 @@ func (x *LimitRange) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym4010 := z.DecBinary() - _ = yym4010 + yym4093 := z.DecBinary() + _ = yym4093 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct4011 := r.ContainerType() - if yyct4011 == codecSelferValueTypeMap1234 { - yyl4011 := r.ReadMapStart() - if yyl4011 == 0 { + yyct4094 := r.ContainerType() + if yyct4094 == codecSelferValueTypeMap1234 { + yyl4094 := r.ReadMapStart() + if yyl4094 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl4011, d) + x.codecDecodeSelfFromMap(yyl4094, d) } - } else if yyct4011 == codecSelferValueTypeArray1234 { - yyl4011 := r.ReadArrayStart() - if yyl4011 == 0 { + } else if yyct4094 == codecSelferValueTypeArray1234 { + yyl4094 := r.ReadArrayStart() + if yyl4094 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl4011, d) + x.codecDecodeSelfFromArray(yyl4094, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -50293,12 +51373,12 @@ func (x *LimitRange) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys4012Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys4012Slc - var yyhl4012 bool = l >= 0 - for yyj4012 := 0; ; yyj4012++ { - if yyhl4012 { - if yyj4012 >= l { + var yys4095Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys4095Slc + var yyhl4095 bool = l >= 0 + for yyj4095 := 0; ; yyj4095++ { + if yyhl4095 { + if yyj4095 >= l { break } } else { @@ -50307,10 +51387,10 @@ func (x *LimitRange) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys4012Slc = r.DecodeBytes(yys4012Slc, true, true) - yys4012 := string(yys4012Slc) + yys4095Slc = r.DecodeBytes(yys4095Slc, true, true) + yys4095 := string(yys4095Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys4012 { + switch yys4095 { case "kind": if r.TryDecodeAsNil() { x.Kind = "" @@ -50327,20 +51407,20 @@ func (x *LimitRange) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.ObjectMeta = ObjectMeta{} } else { - yyv4015 := &x.ObjectMeta - yyv4015.CodecDecodeSelf(d) + yyv4098 := &x.ObjectMeta + yyv4098.CodecDecodeSelf(d) } case "spec": if r.TryDecodeAsNil() { x.Spec = LimitRangeSpec{} } else { - yyv4016 := &x.Spec - yyv4016.CodecDecodeSelf(d) + yyv4099 := &x.Spec + yyv4099.CodecDecodeSelf(d) } default: - z.DecStructFieldNotFound(-1, yys4012) - } // end switch yys4012 - } // end for yyj4012 + z.DecStructFieldNotFound(-1, yys4095) + } // end switch yys4095 + } // end for yyj4095 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -50348,16 +51428,16 @@ func (x *LimitRange) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj4017 int - var yyb4017 bool - var yyhl4017 bool = l >= 0 - yyj4017++ - if yyhl4017 { - yyb4017 = yyj4017 > l + var yyj4100 int + var yyb4100 bool + var yyhl4100 bool = l >= 0 + yyj4100++ + if yyhl4100 { + yyb4100 = yyj4100 > l } else { - yyb4017 = r.CheckBreak() + yyb4100 = r.CheckBreak() } - if yyb4017 { + if yyb4100 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -50367,13 +51447,13 @@ func (x *LimitRange) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.Kind = string(r.DecodeString()) } - yyj4017++ - if yyhl4017 { - yyb4017 = yyj4017 > l + yyj4100++ + if yyhl4100 { + yyb4100 = yyj4100 > l } else { - yyb4017 = r.CheckBreak() + yyb4100 = r.CheckBreak() } - if yyb4017 { + if yyb4100 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -50383,13 +51463,13 @@ func (x *LimitRange) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.APIVersion = string(r.DecodeString()) } - yyj4017++ - if yyhl4017 { - yyb4017 = yyj4017 > l + yyj4100++ + if yyhl4100 { + yyb4100 = yyj4100 > l } else { - yyb4017 = r.CheckBreak() + yyb4100 = r.CheckBreak() } - if yyb4017 { + if yyb4100 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -50397,16 +51477,16 @@ func (x *LimitRange) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.ObjectMeta = ObjectMeta{} } else { - yyv4020 := &x.ObjectMeta - yyv4020.CodecDecodeSelf(d) + yyv4103 := &x.ObjectMeta + yyv4103.CodecDecodeSelf(d) } - yyj4017++ - if yyhl4017 { - yyb4017 = yyj4017 > l + yyj4100++ + if yyhl4100 { + yyb4100 = yyj4100 > l } else { - yyb4017 = r.CheckBreak() + yyb4100 = r.CheckBreak() } - if yyb4017 { + if yyb4100 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -50414,21 +51494,21 @@ func (x *LimitRange) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.Spec = LimitRangeSpec{} } else { - yyv4021 := &x.Spec - yyv4021.CodecDecodeSelf(d) + yyv4104 := &x.Spec + yyv4104.CodecDecodeSelf(d) } for { - yyj4017++ - if yyhl4017 { - yyb4017 = yyj4017 > l + yyj4100++ + if yyhl4100 { + yyb4100 = yyj4100 > l } else { - yyb4017 = r.CheckBreak() + yyb4100 = r.CheckBreak() } - if yyb4017 { + if yyb4100 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj4017-1, "") + z.DecStructFieldNotFound(yyj4100-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -50440,37 +51520,37 @@ func (x *LimitRangeList) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym4022 := z.EncBinary() - _ = yym4022 + yym4105 := z.EncBinary() + _ = yym4105 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep4023 := !z.EncBinary() - yy2arr4023 := z.EncBasicHandle().StructToArray - var yyq4023 [4]bool - _, _, _ = yysep4023, yyq4023, yy2arr4023 - const yyr4023 bool = false - yyq4023[0] = x.Kind != "" - yyq4023[1] = x.APIVersion != "" - yyq4023[2] = true - var yynn4023 int - if yyr4023 || yy2arr4023 { + yysep4106 := !z.EncBinary() + yy2arr4106 := z.EncBasicHandle().StructToArray + var yyq4106 [4]bool + _, _, _ = yysep4106, yyq4106, yy2arr4106 + const yyr4106 bool = false + yyq4106[0] = x.Kind != "" + yyq4106[1] = x.APIVersion != "" + yyq4106[2] = true + var yynn4106 int + if yyr4106 || yy2arr4106 { r.EncodeArrayStart(4) } else { - yynn4023 = 1 - for _, b := range yyq4023 { + yynn4106 = 1 + for _, b := range yyq4106 { if b { - yynn4023++ + yynn4106++ } } - r.EncodeMapStart(yynn4023) - yynn4023 = 0 + r.EncodeMapStart(yynn4106) + yynn4106 = 0 } - if yyr4023 || yy2arr4023 { + if yyr4106 || yy2arr4106 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq4023[0] { - yym4025 := z.EncBinary() - _ = yym4025 + if yyq4106[0] { + yym4108 := z.EncBinary() + _ = yym4108 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) @@ -50479,23 +51559,23 @@ func (x *LimitRangeList) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq4023[0] { + if yyq4106[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym4026 := z.EncBinary() - _ = yym4026 + yym4109 := z.EncBinary() + _ = yym4109 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } - if yyr4023 || yy2arr4023 { + if yyr4106 || yy2arr4106 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq4023[1] { - yym4028 := z.EncBinary() - _ = yym4028 + if yyq4106[1] { + yym4111 := z.EncBinary() + _ = yym4111 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) @@ -50504,54 +51584,54 @@ func (x *LimitRangeList) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq4023[1] { + if yyq4106[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym4029 := z.EncBinary() - _ = yym4029 + yym4112 := z.EncBinary() + _ = yym4112 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } - if yyr4023 || yy2arr4023 { + if yyr4106 || yy2arr4106 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq4023[2] { - yy4031 := &x.ListMeta - yym4032 := z.EncBinary() - _ = yym4032 + if yyq4106[2] { + yy4114 := &x.ListMeta + yym4115 := z.EncBinary() + _ = yym4115 if false { - } else if z.HasExtensions() && z.EncExt(yy4031) { + } else if z.HasExtensions() && z.EncExt(yy4114) { } else { - z.EncFallback(yy4031) + z.EncFallback(yy4114) } } else { r.EncodeNil() } } else { - if yyq4023[2] { + if yyq4106[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy4033 := &x.ListMeta - yym4034 := z.EncBinary() - _ = yym4034 + yy4116 := &x.ListMeta + yym4117 := z.EncBinary() + _ = yym4117 if false { - } else if z.HasExtensions() && z.EncExt(yy4033) { + } else if z.HasExtensions() && z.EncExt(yy4116) { } else { - z.EncFallback(yy4033) + z.EncFallback(yy4116) } } } - if yyr4023 || yy2arr4023 { + if yyr4106 || yy2arr4106 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.Items == nil { r.EncodeNil() } else { - yym4036 := z.EncBinary() - _ = yym4036 + yym4119 := z.EncBinary() + _ = yym4119 if false { } else { h.encSliceLimitRange(([]LimitRange)(x.Items), e) @@ -50564,15 +51644,15 @@ func (x *LimitRangeList) CodecEncodeSelf(e *codec1978.Encoder) { if x.Items == nil { r.EncodeNil() } else { - yym4037 := z.EncBinary() - _ = yym4037 + yym4120 := z.EncBinary() + _ = yym4120 if false { } else { h.encSliceLimitRange(([]LimitRange)(x.Items), e) } } } - if yyr4023 || yy2arr4023 { + if yyr4106 || yy2arr4106 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -50585,25 +51665,25 @@ func (x *LimitRangeList) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym4038 := z.DecBinary() - _ = yym4038 + yym4121 := z.DecBinary() + _ = yym4121 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct4039 := r.ContainerType() - if yyct4039 == codecSelferValueTypeMap1234 { - yyl4039 := r.ReadMapStart() - if yyl4039 == 0 { + yyct4122 := r.ContainerType() + if yyct4122 == codecSelferValueTypeMap1234 { + yyl4122 := r.ReadMapStart() + if yyl4122 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl4039, d) + x.codecDecodeSelfFromMap(yyl4122, d) } - } else if yyct4039 == codecSelferValueTypeArray1234 { - yyl4039 := r.ReadArrayStart() - if yyl4039 == 0 { + } else if yyct4122 == codecSelferValueTypeArray1234 { + yyl4122 := r.ReadArrayStart() + if yyl4122 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl4039, d) + x.codecDecodeSelfFromArray(yyl4122, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -50615,12 +51695,12 @@ func (x *LimitRangeList) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys4040Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys4040Slc - var yyhl4040 bool = l >= 0 - for yyj4040 := 0; ; yyj4040++ { - if yyhl4040 { - if yyj4040 >= l { + var yys4123Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys4123Slc + var yyhl4123 bool = l >= 0 + for yyj4123 := 0; ; yyj4123++ { + if yyhl4123 { + if yyj4123 >= l { break } } else { @@ -50629,10 +51709,10 @@ func (x *LimitRangeList) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys4040Slc = r.DecodeBytes(yys4040Slc, true, true) - yys4040 := string(yys4040Slc) + yys4123Slc = r.DecodeBytes(yys4123Slc, true, true) + yys4123 := string(yys4123Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys4040 { + switch yys4123 { case "kind": if r.TryDecodeAsNil() { x.Kind = "" @@ -50649,31 +51729,31 @@ func (x *LimitRangeList) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.ListMeta = pkg2_unversioned.ListMeta{} } else { - yyv4043 := &x.ListMeta - yym4044 := z.DecBinary() - _ = yym4044 + yyv4126 := &x.ListMeta + yym4127 := z.DecBinary() + _ = yym4127 if false { - } else if z.HasExtensions() && z.DecExt(yyv4043) { + } else if z.HasExtensions() && z.DecExt(yyv4126) { } else { - z.DecFallback(yyv4043, false) + z.DecFallback(yyv4126, false) } } case "items": if r.TryDecodeAsNil() { x.Items = nil } else { - yyv4045 := &x.Items - yym4046 := z.DecBinary() - _ = yym4046 + yyv4128 := &x.Items + yym4129 := z.DecBinary() + _ = yym4129 if false { } else { - h.decSliceLimitRange((*[]LimitRange)(yyv4045), d) + h.decSliceLimitRange((*[]LimitRange)(yyv4128), d) } } default: - z.DecStructFieldNotFound(-1, yys4040) - } // end switch yys4040 - } // end for yyj4040 + z.DecStructFieldNotFound(-1, yys4123) + } // end switch yys4123 + } // end for yyj4123 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -50681,16 +51761,16 @@ func (x *LimitRangeList) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj4047 int - var yyb4047 bool - var yyhl4047 bool = l >= 0 - yyj4047++ - if yyhl4047 { - yyb4047 = yyj4047 > l + var yyj4130 int + var yyb4130 bool + var yyhl4130 bool = l >= 0 + yyj4130++ + if yyhl4130 { + yyb4130 = yyj4130 > l } else { - yyb4047 = r.CheckBreak() + yyb4130 = r.CheckBreak() } - if yyb4047 { + if yyb4130 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -50700,13 +51780,13 @@ func (x *LimitRangeList) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.Kind = string(r.DecodeString()) } - yyj4047++ - if yyhl4047 { - yyb4047 = yyj4047 > l + yyj4130++ + if yyhl4130 { + yyb4130 = yyj4130 > l } else { - yyb4047 = r.CheckBreak() + yyb4130 = r.CheckBreak() } - if yyb4047 { + if yyb4130 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -50716,13 +51796,13 @@ func (x *LimitRangeList) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.APIVersion = string(r.DecodeString()) } - yyj4047++ - if yyhl4047 { - yyb4047 = yyj4047 > l + yyj4130++ + if yyhl4130 { + yyb4130 = yyj4130 > l } else { - yyb4047 = r.CheckBreak() + yyb4130 = r.CheckBreak() } - if yyb4047 { + if yyb4130 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -50730,22 +51810,22 @@ func (x *LimitRangeList) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.ListMeta = pkg2_unversioned.ListMeta{} } else { - yyv4050 := &x.ListMeta - yym4051 := z.DecBinary() - _ = yym4051 + yyv4133 := &x.ListMeta + yym4134 := z.DecBinary() + _ = yym4134 if false { - } else if z.HasExtensions() && z.DecExt(yyv4050) { + } else if z.HasExtensions() && z.DecExt(yyv4133) { } else { - z.DecFallback(yyv4050, false) + z.DecFallback(yyv4133, false) } } - yyj4047++ - if yyhl4047 { - yyb4047 = yyj4047 > l + yyj4130++ + if yyhl4130 { + yyb4130 = yyj4130 > l } else { - yyb4047 = r.CheckBreak() + yyb4130 = r.CheckBreak() } - if yyb4047 { + if yyb4130 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -50753,26 +51833,26 @@ func (x *LimitRangeList) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.Items = nil } else { - yyv4052 := &x.Items - yym4053 := z.DecBinary() - _ = yym4053 + yyv4135 := &x.Items + yym4136 := z.DecBinary() + _ = yym4136 if false { } else { - h.decSliceLimitRange((*[]LimitRange)(yyv4052), d) + h.decSliceLimitRange((*[]LimitRange)(yyv4135), d) } } for { - yyj4047++ - if yyhl4047 { - yyb4047 = yyj4047 > l + yyj4130++ + if yyhl4130 { + yyb4130 = yyj4130 > l } else { - yyb4047 = r.CheckBreak() + yyb4130 = r.CheckBreak() } - if yyb4047 { + if yyb4130 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj4047-1, "") + z.DecStructFieldNotFound(yyj4130-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -50781,8 +51861,8 @@ func (x ResourceQuotaScope) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r - yym4054 := z.EncBinary() - _ = yym4054 + yym4137 := z.EncBinary() + _ = yym4137 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { @@ -50794,8 +51874,8 @@ func (x *ResourceQuotaScope) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym4055 := z.DecBinary() - _ = yym4055 + yym4138 := z.DecBinary() + _ = yym4138 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { @@ -50810,34 +51890,34 @@ func (x *ResourceQuotaSpec) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym4056 := z.EncBinary() - _ = yym4056 + yym4139 := z.EncBinary() + _ = yym4139 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - 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 { + yysep4140 := !z.EncBinary() + yy2arr4140 := z.EncBasicHandle().StructToArray + var yyq4140 [2]bool + _, _, _ = yysep4140, yyq4140, yy2arr4140 + const yyr4140 bool = false + yyq4140[0] = len(x.Hard) != 0 + yyq4140[1] = len(x.Scopes) != 0 + var yynn4140 int + if yyr4140 || yy2arr4140 { r.EncodeArrayStart(2) } else { - yynn4057 = 0 - for _, b := range yyq4057 { + yynn4140 = 0 + for _, b := range yyq4140 { if b { - yynn4057++ + yynn4140++ } } - r.EncodeMapStart(yynn4057) - yynn4057 = 0 + r.EncodeMapStart(yynn4140) + yynn4140 = 0 } - if yyr4057 || yy2arr4057 { + if yyr4140 || yy2arr4140 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq4057[0] { + if yyq4140[0] { if x.Hard == nil { r.EncodeNil() } else { @@ -50847,7 +51927,7 @@ func (x *ResourceQuotaSpec) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq4057[0] { + if yyq4140[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("hard")) z.EncSendContainerState(codecSelfer_containerMapValue1234) @@ -50858,14 +51938,14 @@ func (x *ResourceQuotaSpec) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr4057 || yy2arr4057 { + if yyr4140 || yy2arr4140 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq4057[1] { + if yyq4140[1] { if x.Scopes == nil { r.EncodeNil() } else { - yym4060 := z.EncBinary() - _ = yym4060 + yym4143 := z.EncBinary() + _ = yym4143 if false { } else { h.encSliceResourceQuotaScope(([]ResourceQuotaScope)(x.Scopes), e) @@ -50875,15 +51955,15 @@ func (x *ResourceQuotaSpec) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq4057[1] { + if yyq4140[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("scopes")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.Scopes == nil { r.EncodeNil() } else { - yym4061 := z.EncBinary() - _ = yym4061 + yym4144 := z.EncBinary() + _ = yym4144 if false { } else { h.encSliceResourceQuotaScope(([]ResourceQuotaScope)(x.Scopes), e) @@ -50891,7 +51971,7 @@ func (x *ResourceQuotaSpec) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr4057 || yy2arr4057 { + if yyr4140 || yy2arr4140 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -50904,25 +51984,25 @@ func (x *ResourceQuotaSpec) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym4062 := z.DecBinary() - _ = yym4062 + yym4145 := z.DecBinary() + _ = yym4145 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct4063 := r.ContainerType() - if yyct4063 == codecSelferValueTypeMap1234 { - yyl4063 := r.ReadMapStart() - if yyl4063 == 0 { + yyct4146 := r.ContainerType() + if yyct4146 == codecSelferValueTypeMap1234 { + yyl4146 := r.ReadMapStart() + if yyl4146 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl4063, d) + x.codecDecodeSelfFromMap(yyl4146, d) } - } else if yyct4063 == codecSelferValueTypeArray1234 { - yyl4063 := r.ReadArrayStart() - if yyl4063 == 0 { + } else if yyct4146 == codecSelferValueTypeArray1234 { + yyl4146 := r.ReadArrayStart() + if yyl4146 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl4063, d) + x.codecDecodeSelfFromArray(yyl4146, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -50934,12 +52014,12 @@ func (x *ResourceQuotaSpec) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys4064Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys4064Slc - var yyhl4064 bool = l >= 0 - for yyj4064 := 0; ; yyj4064++ { - if yyhl4064 { - if yyj4064 >= l { + var yys4147Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys4147Slc + var yyhl4147 bool = l >= 0 + for yyj4147 := 0; ; yyj4147++ { + if yyhl4147 { + if yyj4147 >= l { break } } else { @@ -50948,33 +52028,33 @@ func (x *ResourceQuotaSpec) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys4064Slc = r.DecodeBytes(yys4064Slc, true, true) - yys4064 := string(yys4064Slc) + yys4147Slc = r.DecodeBytes(yys4147Slc, true, true) + yys4147 := string(yys4147Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys4064 { + switch yys4147 { case "hard": if r.TryDecodeAsNil() { x.Hard = nil } else { - yyv4065 := &x.Hard - yyv4065.CodecDecodeSelf(d) + yyv4148 := &x.Hard + yyv4148.CodecDecodeSelf(d) } case "scopes": if r.TryDecodeAsNil() { x.Scopes = nil } else { - yyv4066 := &x.Scopes - yym4067 := z.DecBinary() - _ = yym4067 + yyv4149 := &x.Scopes + yym4150 := z.DecBinary() + _ = yym4150 if false { } else { - h.decSliceResourceQuotaScope((*[]ResourceQuotaScope)(yyv4066), d) + h.decSliceResourceQuotaScope((*[]ResourceQuotaScope)(yyv4149), d) } } default: - z.DecStructFieldNotFound(-1, yys4064) - } // end switch yys4064 - } // end for yyj4064 + z.DecStructFieldNotFound(-1, yys4147) + } // end switch yys4147 + } // end for yyj4147 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -50982,16 +52062,16 @@ func (x *ResourceQuotaSpec) codecDecodeSelfFromArray(l int, d *codec1978.Decoder var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj4068 int - var yyb4068 bool - var yyhl4068 bool = l >= 0 - yyj4068++ - if yyhl4068 { - yyb4068 = yyj4068 > l + var yyj4151 int + var yyb4151 bool + var yyhl4151 bool = l >= 0 + yyj4151++ + if yyhl4151 { + yyb4151 = yyj4151 > l } else { - yyb4068 = r.CheckBreak() + yyb4151 = r.CheckBreak() } - if yyb4068 { + if yyb4151 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -50999,16 +52079,16 @@ func (x *ResourceQuotaSpec) codecDecodeSelfFromArray(l int, d *codec1978.Decoder if r.TryDecodeAsNil() { x.Hard = nil } else { - yyv4069 := &x.Hard - yyv4069.CodecDecodeSelf(d) + yyv4152 := &x.Hard + yyv4152.CodecDecodeSelf(d) } - yyj4068++ - if yyhl4068 { - yyb4068 = yyj4068 > l + yyj4151++ + if yyhl4151 { + yyb4151 = yyj4151 > l } else { - yyb4068 = r.CheckBreak() + yyb4151 = r.CheckBreak() } - if yyb4068 { + if yyb4151 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -51016,26 +52096,26 @@ func (x *ResourceQuotaSpec) codecDecodeSelfFromArray(l int, d *codec1978.Decoder if r.TryDecodeAsNil() { x.Scopes = nil } else { - yyv4070 := &x.Scopes - yym4071 := z.DecBinary() - _ = yym4071 + yyv4153 := &x.Scopes + yym4154 := z.DecBinary() + _ = yym4154 if false { } else { - h.decSliceResourceQuotaScope((*[]ResourceQuotaScope)(yyv4070), d) + h.decSliceResourceQuotaScope((*[]ResourceQuotaScope)(yyv4153), d) } } for { - yyj4068++ - if yyhl4068 { - yyb4068 = yyj4068 > l + yyj4151++ + if yyhl4151 { + yyb4151 = yyj4151 > l } else { - yyb4068 = r.CheckBreak() + yyb4151 = r.CheckBreak() } - if yyb4068 { + if yyb4151 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj4068-1, "") + z.DecStructFieldNotFound(yyj4151-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -51047,34 +52127,34 @@ func (x *ResourceQuotaStatus) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym4072 := z.EncBinary() - _ = yym4072 + yym4155 := z.EncBinary() + _ = yym4155 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - 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 { + yysep4156 := !z.EncBinary() + yy2arr4156 := z.EncBasicHandle().StructToArray + var yyq4156 [2]bool + _, _, _ = yysep4156, yyq4156, yy2arr4156 + const yyr4156 bool = false + yyq4156[0] = len(x.Hard) != 0 + yyq4156[1] = len(x.Used) != 0 + var yynn4156 int + if yyr4156 || yy2arr4156 { r.EncodeArrayStart(2) } else { - yynn4073 = 0 - for _, b := range yyq4073 { + yynn4156 = 0 + for _, b := range yyq4156 { if b { - yynn4073++ + yynn4156++ } } - r.EncodeMapStart(yynn4073) - yynn4073 = 0 + r.EncodeMapStart(yynn4156) + yynn4156 = 0 } - if yyr4073 || yy2arr4073 { + if yyr4156 || yy2arr4156 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq4073[0] { + if yyq4156[0] { if x.Hard == nil { r.EncodeNil() } else { @@ -51084,7 +52164,7 @@ func (x *ResourceQuotaStatus) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq4073[0] { + if yyq4156[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("hard")) z.EncSendContainerState(codecSelfer_containerMapValue1234) @@ -51095,9 +52175,9 @@ func (x *ResourceQuotaStatus) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr4073 || yy2arr4073 { + if yyr4156 || yy2arr4156 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq4073[1] { + if yyq4156[1] { if x.Used == nil { r.EncodeNil() } else { @@ -51107,7 +52187,7 @@ func (x *ResourceQuotaStatus) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq4073[1] { + if yyq4156[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("used")) z.EncSendContainerState(codecSelfer_containerMapValue1234) @@ -51118,7 +52198,7 @@ func (x *ResourceQuotaStatus) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr4073 || yy2arr4073 { + if yyr4156 || yy2arr4156 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -51131,25 +52211,25 @@ func (x *ResourceQuotaStatus) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym4076 := z.DecBinary() - _ = yym4076 + yym4159 := z.DecBinary() + _ = yym4159 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct4077 := r.ContainerType() - if yyct4077 == codecSelferValueTypeMap1234 { - yyl4077 := r.ReadMapStart() - if yyl4077 == 0 { + yyct4160 := r.ContainerType() + if yyct4160 == codecSelferValueTypeMap1234 { + yyl4160 := r.ReadMapStart() + if yyl4160 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl4077, d) + x.codecDecodeSelfFromMap(yyl4160, d) } - } else if yyct4077 == codecSelferValueTypeArray1234 { - yyl4077 := r.ReadArrayStart() - if yyl4077 == 0 { + } else if yyct4160 == codecSelferValueTypeArray1234 { + yyl4160 := r.ReadArrayStart() + if yyl4160 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl4077, d) + x.codecDecodeSelfFromArray(yyl4160, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -51161,12 +52241,12 @@ func (x *ResourceQuotaStatus) 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 { + var yys4161Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys4161Slc + var yyhl4161 bool = l >= 0 + for yyj4161 := 0; ; yyj4161++ { + if yyhl4161 { + if yyj4161 >= l { break } } else { @@ -51175,28 +52255,28 @@ func (x *ResourceQuotaStatus) codecDecodeSelfFromMap(l int, d *codec1978.Decoder } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys4078Slc = r.DecodeBytes(yys4078Slc, true, true) - yys4078 := string(yys4078Slc) + yys4161Slc = r.DecodeBytes(yys4161Slc, true, true) + yys4161 := string(yys4161Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys4078 { + switch yys4161 { case "hard": if r.TryDecodeAsNil() { x.Hard = nil } else { - yyv4079 := &x.Hard - yyv4079.CodecDecodeSelf(d) + yyv4162 := &x.Hard + yyv4162.CodecDecodeSelf(d) } case "used": if r.TryDecodeAsNil() { x.Used = nil } else { - yyv4080 := &x.Used - yyv4080.CodecDecodeSelf(d) + yyv4163 := &x.Used + yyv4163.CodecDecodeSelf(d) } default: - z.DecStructFieldNotFound(-1, yys4078) - } // end switch yys4078 - } // end for yyj4078 + z.DecStructFieldNotFound(-1, yys4161) + } // end switch yys4161 + } // end for yyj4161 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -51204,16 +52284,16 @@ func (x *ResourceQuotaStatus) codecDecodeSelfFromArray(l int, d *codec1978.Decod var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj4081 int - var yyb4081 bool - var yyhl4081 bool = l >= 0 - yyj4081++ - if yyhl4081 { - yyb4081 = yyj4081 > l + var yyj4164 int + var yyb4164 bool + var yyhl4164 bool = l >= 0 + yyj4164++ + if yyhl4164 { + yyb4164 = yyj4164 > l } else { - yyb4081 = r.CheckBreak() + yyb4164 = r.CheckBreak() } - if yyb4081 { + if yyb4164 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -51221,16 +52301,16 @@ func (x *ResourceQuotaStatus) codecDecodeSelfFromArray(l int, d *codec1978.Decod if r.TryDecodeAsNil() { x.Hard = nil } else { - yyv4082 := &x.Hard - yyv4082.CodecDecodeSelf(d) + yyv4165 := &x.Hard + yyv4165.CodecDecodeSelf(d) } - yyj4081++ - if yyhl4081 { - yyb4081 = yyj4081 > l + yyj4164++ + if yyhl4164 { + yyb4164 = yyj4164 > l } else { - yyb4081 = r.CheckBreak() + yyb4164 = r.CheckBreak() } - if yyb4081 { + if yyb4164 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -51238,21 +52318,21 @@ func (x *ResourceQuotaStatus) codecDecodeSelfFromArray(l int, d *codec1978.Decod if r.TryDecodeAsNil() { x.Used = nil } else { - yyv4083 := &x.Used - yyv4083.CodecDecodeSelf(d) + yyv4166 := &x.Used + yyv4166.CodecDecodeSelf(d) } for { - yyj4081++ - if yyhl4081 { - yyb4081 = yyj4081 > l + yyj4164++ + if yyhl4164 { + yyb4164 = yyj4164 > l } else { - yyb4081 = r.CheckBreak() + yyb4164 = r.CheckBreak() } - if yyb4081 { + if yyb4164 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj4081-1, "") + z.DecStructFieldNotFound(yyj4164-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -51264,39 +52344,39 @@ func (x *ResourceQuota) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym4084 := z.EncBinary() - _ = yym4084 + yym4167 := z.EncBinary() + _ = yym4167 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - 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 { + yysep4168 := !z.EncBinary() + yy2arr4168 := z.EncBasicHandle().StructToArray + var yyq4168 [5]bool + _, _, _ = yysep4168, yyq4168, yy2arr4168 + const yyr4168 bool = false + yyq4168[0] = x.Kind != "" + yyq4168[1] = x.APIVersion != "" + yyq4168[2] = true + yyq4168[3] = true + yyq4168[4] = true + var yynn4168 int + if yyr4168 || yy2arr4168 { r.EncodeArrayStart(5) } else { - yynn4085 = 0 - for _, b := range yyq4085 { + yynn4168 = 0 + for _, b := range yyq4168 { if b { - yynn4085++ + yynn4168++ } } - r.EncodeMapStart(yynn4085) - yynn4085 = 0 + r.EncodeMapStart(yynn4168) + yynn4168 = 0 } - if yyr4085 || yy2arr4085 { + if yyr4168 || yy2arr4168 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq4085[0] { - yym4087 := z.EncBinary() - _ = yym4087 + if yyq4168[0] { + yym4170 := z.EncBinary() + _ = yym4170 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) @@ -51305,23 +52385,23 @@ func (x *ResourceQuota) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq4085[0] { + if yyq4168[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym4088 := z.EncBinary() - _ = yym4088 + yym4171 := z.EncBinary() + _ = yym4171 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } - if yyr4085 || yy2arr4085 { + if yyr4168 || yy2arr4168 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq4085[1] { - yym4090 := z.EncBinary() - _ = yym4090 + if yyq4168[1] { + yym4173 := z.EncBinary() + _ = yym4173 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) @@ -51330,70 +52410,70 @@ func (x *ResourceQuota) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq4085[1] { + if yyq4168[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym4091 := z.EncBinary() - _ = yym4091 + yym4174 := z.EncBinary() + _ = yym4174 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } - if yyr4085 || yy2arr4085 { + if yyr4168 || yy2arr4168 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq4085[2] { - yy4093 := &x.ObjectMeta - yy4093.CodecEncodeSelf(e) + if yyq4168[2] { + yy4176 := &x.ObjectMeta + yy4176.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { - if yyq4085[2] { + if yyq4168[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy4094 := &x.ObjectMeta - yy4094.CodecEncodeSelf(e) + yy4177 := &x.ObjectMeta + yy4177.CodecEncodeSelf(e) } } - if yyr4085 || yy2arr4085 { + if yyr4168 || yy2arr4168 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq4085[3] { - yy4096 := &x.Spec - yy4096.CodecEncodeSelf(e) + if yyq4168[3] { + yy4179 := &x.Spec + yy4179.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { - if yyq4085[3] { + if yyq4168[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("spec")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy4097 := &x.Spec - yy4097.CodecEncodeSelf(e) + yy4180 := &x.Spec + yy4180.CodecEncodeSelf(e) } } - if yyr4085 || yy2arr4085 { + if yyr4168 || yy2arr4168 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq4085[4] { - yy4099 := &x.Status - yy4099.CodecEncodeSelf(e) + if yyq4168[4] { + yy4182 := &x.Status + yy4182.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { - if yyq4085[4] { + if yyq4168[4] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("status")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy4100 := &x.Status - yy4100.CodecEncodeSelf(e) + yy4183 := &x.Status + yy4183.CodecEncodeSelf(e) } } - if yyr4085 || yy2arr4085 { + if yyr4168 || yy2arr4168 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -51406,25 +52486,25 @@ func (x *ResourceQuota) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym4101 := z.DecBinary() - _ = yym4101 + yym4184 := z.DecBinary() + _ = yym4184 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct4102 := r.ContainerType() - if yyct4102 == codecSelferValueTypeMap1234 { - yyl4102 := r.ReadMapStart() - if yyl4102 == 0 { + yyct4185 := r.ContainerType() + if yyct4185 == codecSelferValueTypeMap1234 { + yyl4185 := r.ReadMapStart() + if yyl4185 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl4102, d) + x.codecDecodeSelfFromMap(yyl4185, d) } - } else if yyct4102 == codecSelferValueTypeArray1234 { - yyl4102 := r.ReadArrayStart() - if yyl4102 == 0 { + } else if yyct4185 == codecSelferValueTypeArray1234 { + yyl4185 := r.ReadArrayStart() + if yyl4185 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl4102, d) + x.codecDecodeSelfFromArray(yyl4185, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -51436,12 +52516,12 @@ func (x *ResourceQuota) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys4103Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys4103Slc - var yyhl4103 bool = l >= 0 - for yyj4103 := 0; ; yyj4103++ { - if yyhl4103 { - if yyj4103 >= l { + var yys4186Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys4186Slc + var yyhl4186 bool = l >= 0 + for yyj4186 := 0; ; yyj4186++ { + if yyhl4186 { + if yyj4186 >= l { break } } else { @@ -51450,10 +52530,10 @@ func (x *ResourceQuota) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys4103Slc = r.DecodeBytes(yys4103Slc, true, true) - yys4103 := string(yys4103Slc) + yys4186Slc = r.DecodeBytes(yys4186Slc, true, true) + yys4186 := string(yys4186Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys4103 { + switch yys4186 { case "kind": if r.TryDecodeAsNil() { x.Kind = "" @@ -51470,27 +52550,27 @@ func (x *ResourceQuota) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.ObjectMeta = ObjectMeta{} } else { - yyv4106 := &x.ObjectMeta - yyv4106.CodecDecodeSelf(d) + yyv4189 := &x.ObjectMeta + yyv4189.CodecDecodeSelf(d) } case "spec": if r.TryDecodeAsNil() { x.Spec = ResourceQuotaSpec{} } else { - yyv4107 := &x.Spec - yyv4107.CodecDecodeSelf(d) + yyv4190 := &x.Spec + yyv4190.CodecDecodeSelf(d) } case "status": if r.TryDecodeAsNil() { x.Status = ResourceQuotaStatus{} } else { - yyv4108 := &x.Status - yyv4108.CodecDecodeSelf(d) + yyv4191 := &x.Status + yyv4191.CodecDecodeSelf(d) } default: - z.DecStructFieldNotFound(-1, yys4103) - } // end switch yys4103 - } // end for yyj4103 + z.DecStructFieldNotFound(-1, yys4186) + } // end switch yys4186 + } // end for yyj4186 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -51498,16 +52578,16 @@ func (x *ResourceQuota) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj4109 int - var yyb4109 bool - var yyhl4109 bool = l >= 0 - yyj4109++ - if yyhl4109 { - yyb4109 = yyj4109 > l + var yyj4192 int + var yyb4192 bool + var yyhl4192 bool = l >= 0 + yyj4192++ + if yyhl4192 { + yyb4192 = yyj4192 > l } else { - yyb4109 = r.CheckBreak() + yyb4192 = r.CheckBreak() } - if yyb4109 { + if yyb4192 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -51517,13 +52597,13 @@ func (x *ResourceQuota) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.Kind = string(r.DecodeString()) } - yyj4109++ - if yyhl4109 { - yyb4109 = yyj4109 > l + yyj4192++ + if yyhl4192 { + yyb4192 = yyj4192 > l } else { - yyb4109 = r.CheckBreak() + yyb4192 = r.CheckBreak() } - if yyb4109 { + if yyb4192 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -51533,13 +52613,13 @@ func (x *ResourceQuota) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.APIVersion = string(r.DecodeString()) } - yyj4109++ - if yyhl4109 { - yyb4109 = yyj4109 > l + yyj4192++ + if yyhl4192 { + yyb4192 = yyj4192 > l } else { - yyb4109 = r.CheckBreak() + yyb4192 = r.CheckBreak() } - if yyb4109 { + if yyb4192 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -51547,16 +52627,16 @@ func (x *ResourceQuota) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.ObjectMeta = ObjectMeta{} } else { - yyv4112 := &x.ObjectMeta - yyv4112.CodecDecodeSelf(d) + yyv4195 := &x.ObjectMeta + yyv4195.CodecDecodeSelf(d) } - yyj4109++ - if yyhl4109 { - yyb4109 = yyj4109 > l + yyj4192++ + if yyhl4192 { + yyb4192 = yyj4192 > l } else { - yyb4109 = r.CheckBreak() + yyb4192 = r.CheckBreak() } - if yyb4109 { + if yyb4192 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -51564,16 +52644,16 @@ func (x *ResourceQuota) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.Spec = ResourceQuotaSpec{} } else { - yyv4113 := &x.Spec - yyv4113.CodecDecodeSelf(d) + yyv4196 := &x.Spec + yyv4196.CodecDecodeSelf(d) } - yyj4109++ - if yyhl4109 { - yyb4109 = yyj4109 > l + yyj4192++ + if yyhl4192 { + yyb4192 = yyj4192 > l } else { - yyb4109 = r.CheckBreak() + yyb4192 = r.CheckBreak() } - if yyb4109 { + if yyb4192 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -51581,21 +52661,21 @@ func (x *ResourceQuota) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.Status = ResourceQuotaStatus{} } else { - yyv4114 := &x.Status - yyv4114.CodecDecodeSelf(d) + yyv4197 := &x.Status + yyv4197.CodecDecodeSelf(d) } for { - yyj4109++ - if yyhl4109 { - yyb4109 = yyj4109 > l + yyj4192++ + if yyhl4192 { + yyb4192 = yyj4192 > l } else { - yyb4109 = r.CheckBreak() + yyb4192 = r.CheckBreak() } - if yyb4109 { + if yyb4192 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj4109-1, "") + z.DecStructFieldNotFound(yyj4192-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -51607,37 +52687,37 @@ func (x *ResourceQuotaList) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym4115 := z.EncBinary() - _ = yym4115 + yym4198 := z.EncBinary() + _ = yym4198 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - 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 { + yysep4199 := !z.EncBinary() + yy2arr4199 := z.EncBasicHandle().StructToArray + var yyq4199 [4]bool + _, _, _ = yysep4199, yyq4199, yy2arr4199 + const yyr4199 bool = false + yyq4199[0] = x.Kind != "" + yyq4199[1] = x.APIVersion != "" + yyq4199[2] = true + var yynn4199 int + if yyr4199 || yy2arr4199 { r.EncodeArrayStart(4) } else { - yynn4116 = 1 - for _, b := range yyq4116 { + yynn4199 = 1 + for _, b := range yyq4199 { if b { - yynn4116++ + yynn4199++ } } - r.EncodeMapStart(yynn4116) - yynn4116 = 0 + r.EncodeMapStart(yynn4199) + yynn4199 = 0 } - if yyr4116 || yy2arr4116 { + if yyr4199 || yy2arr4199 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq4116[0] { - yym4118 := z.EncBinary() - _ = yym4118 + if yyq4199[0] { + yym4201 := z.EncBinary() + _ = yym4201 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) @@ -51646,23 +52726,23 @@ func (x *ResourceQuotaList) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq4116[0] { + if yyq4199[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym4119 := z.EncBinary() - _ = yym4119 + yym4202 := z.EncBinary() + _ = yym4202 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } - if yyr4116 || yy2arr4116 { + if yyr4199 || yy2arr4199 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq4116[1] { - yym4121 := z.EncBinary() - _ = yym4121 + if yyq4199[1] { + yym4204 := z.EncBinary() + _ = yym4204 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) @@ -51671,54 +52751,54 @@ func (x *ResourceQuotaList) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq4116[1] { + if yyq4199[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym4122 := z.EncBinary() - _ = yym4122 + yym4205 := z.EncBinary() + _ = yym4205 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } - if yyr4116 || yy2arr4116 { + if yyr4199 || yy2arr4199 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq4116[2] { - yy4124 := &x.ListMeta - yym4125 := z.EncBinary() - _ = yym4125 + if yyq4199[2] { + yy4207 := &x.ListMeta + yym4208 := z.EncBinary() + _ = yym4208 if false { - } else if z.HasExtensions() && z.EncExt(yy4124) { + } else if z.HasExtensions() && z.EncExt(yy4207) { } else { - z.EncFallback(yy4124) + z.EncFallback(yy4207) } } else { r.EncodeNil() } } else { - if yyq4116[2] { + if yyq4199[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy4126 := &x.ListMeta - yym4127 := z.EncBinary() - _ = yym4127 + yy4209 := &x.ListMeta + yym4210 := z.EncBinary() + _ = yym4210 if false { - } else if z.HasExtensions() && z.EncExt(yy4126) { + } else if z.HasExtensions() && z.EncExt(yy4209) { } else { - z.EncFallback(yy4126) + z.EncFallback(yy4209) } } } - if yyr4116 || yy2arr4116 { + if yyr4199 || yy2arr4199 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.Items == nil { r.EncodeNil() } else { - yym4129 := z.EncBinary() - _ = yym4129 + yym4212 := z.EncBinary() + _ = yym4212 if false { } else { h.encSliceResourceQuota(([]ResourceQuota)(x.Items), e) @@ -51731,15 +52811,15 @@ func (x *ResourceQuotaList) CodecEncodeSelf(e *codec1978.Encoder) { if x.Items == nil { r.EncodeNil() } else { - yym4130 := z.EncBinary() - _ = yym4130 + yym4213 := z.EncBinary() + _ = yym4213 if false { } else { h.encSliceResourceQuota(([]ResourceQuota)(x.Items), e) } } } - if yyr4116 || yy2arr4116 { + if yyr4199 || yy2arr4199 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -51752,25 +52832,25 @@ func (x *ResourceQuotaList) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym4131 := z.DecBinary() - _ = yym4131 + yym4214 := z.DecBinary() + _ = yym4214 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct4132 := r.ContainerType() - if yyct4132 == codecSelferValueTypeMap1234 { - yyl4132 := r.ReadMapStart() - if yyl4132 == 0 { + yyct4215 := r.ContainerType() + if yyct4215 == codecSelferValueTypeMap1234 { + yyl4215 := r.ReadMapStart() + if yyl4215 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl4132, d) + x.codecDecodeSelfFromMap(yyl4215, d) } - } else if yyct4132 == codecSelferValueTypeArray1234 { - yyl4132 := r.ReadArrayStart() - if yyl4132 == 0 { + } else if yyct4215 == codecSelferValueTypeArray1234 { + yyl4215 := r.ReadArrayStart() + if yyl4215 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl4132, d) + x.codecDecodeSelfFromArray(yyl4215, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -51782,12 +52862,12 @@ func (x *ResourceQuotaList) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys4133Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys4133Slc - var yyhl4133 bool = l >= 0 - for yyj4133 := 0; ; yyj4133++ { - if yyhl4133 { - if yyj4133 >= l { + var yys4216Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys4216Slc + var yyhl4216 bool = l >= 0 + for yyj4216 := 0; ; yyj4216++ { + if yyhl4216 { + if yyj4216 >= l { break } } else { @@ -51796,10 +52876,10 @@ func (x *ResourceQuotaList) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys4133Slc = r.DecodeBytes(yys4133Slc, true, true) - yys4133 := string(yys4133Slc) + yys4216Slc = r.DecodeBytes(yys4216Slc, true, true) + yys4216 := string(yys4216Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys4133 { + switch yys4216 { case "kind": if r.TryDecodeAsNil() { x.Kind = "" @@ -51816,31 +52896,31 @@ func (x *ResourceQuotaList) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) if r.TryDecodeAsNil() { x.ListMeta = pkg2_unversioned.ListMeta{} } else { - yyv4136 := &x.ListMeta - yym4137 := z.DecBinary() - _ = yym4137 + yyv4219 := &x.ListMeta + yym4220 := z.DecBinary() + _ = yym4220 if false { - } else if z.HasExtensions() && z.DecExt(yyv4136) { + } else if z.HasExtensions() && z.DecExt(yyv4219) { } else { - z.DecFallback(yyv4136, false) + z.DecFallback(yyv4219, false) } } case "items": if r.TryDecodeAsNil() { x.Items = nil } else { - yyv4138 := &x.Items - yym4139 := z.DecBinary() - _ = yym4139 + yyv4221 := &x.Items + yym4222 := z.DecBinary() + _ = yym4222 if false { } else { - h.decSliceResourceQuota((*[]ResourceQuota)(yyv4138), d) + h.decSliceResourceQuota((*[]ResourceQuota)(yyv4221), d) } } default: - z.DecStructFieldNotFound(-1, yys4133) - } // end switch yys4133 - } // end for yyj4133 + z.DecStructFieldNotFound(-1, yys4216) + } // end switch yys4216 + } // end for yyj4216 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -51848,16 +52928,16 @@ func (x *ResourceQuotaList) codecDecodeSelfFromArray(l int, d *codec1978.Decoder var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj4140 int - var yyb4140 bool - var yyhl4140 bool = l >= 0 - yyj4140++ - if yyhl4140 { - yyb4140 = yyj4140 > l + var yyj4223 int + var yyb4223 bool + var yyhl4223 bool = l >= 0 + yyj4223++ + if yyhl4223 { + yyb4223 = yyj4223 > l } else { - yyb4140 = r.CheckBreak() + yyb4223 = r.CheckBreak() } - if yyb4140 { + if yyb4223 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -51867,13 +52947,13 @@ func (x *ResourceQuotaList) codecDecodeSelfFromArray(l int, d *codec1978.Decoder } else { x.Kind = string(r.DecodeString()) } - yyj4140++ - if yyhl4140 { - yyb4140 = yyj4140 > l + yyj4223++ + if yyhl4223 { + yyb4223 = yyj4223 > l } else { - yyb4140 = r.CheckBreak() + yyb4223 = r.CheckBreak() } - if yyb4140 { + if yyb4223 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -51883,13 +52963,13 @@ func (x *ResourceQuotaList) codecDecodeSelfFromArray(l int, d *codec1978.Decoder } else { x.APIVersion = string(r.DecodeString()) } - yyj4140++ - if yyhl4140 { - yyb4140 = yyj4140 > l + yyj4223++ + if yyhl4223 { + yyb4223 = yyj4223 > l } else { - yyb4140 = r.CheckBreak() + yyb4223 = r.CheckBreak() } - if yyb4140 { + if yyb4223 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -51897,22 +52977,22 @@ func (x *ResourceQuotaList) codecDecodeSelfFromArray(l int, d *codec1978.Decoder if r.TryDecodeAsNil() { x.ListMeta = pkg2_unversioned.ListMeta{} } else { - yyv4143 := &x.ListMeta - yym4144 := z.DecBinary() - _ = yym4144 + yyv4226 := &x.ListMeta + yym4227 := z.DecBinary() + _ = yym4227 if false { - } else if z.HasExtensions() && z.DecExt(yyv4143) { + } else if z.HasExtensions() && z.DecExt(yyv4226) { } else { - z.DecFallback(yyv4143, false) + z.DecFallback(yyv4226, false) } } - yyj4140++ - if yyhl4140 { - yyb4140 = yyj4140 > l + yyj4223++ + if yyhl4223 { + yyb4223 = yyj4223 > l } else { - yyb4140 = r.CheckBreak() + yyb4223 = r.CheckBreak() } - if yyb4140 { + if yyb4223 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -51920,26 +53000,26 @@ func (x *ResourceQuotaList) codecDecodeSelfFromArray(l int, d *codec1978.Decoder if r.TryDecodeAsNil() { x.Items = nil } else { - yyv4145 := &x.Items - yym4146 := z.DecBinary() - _ = yym4146 + yyv4228 := &x.Items + yym4229 := z.DecBinary() + _ = yym4229 if false { } else { - h.decSliceResourceQuota((*[]ResourceQuota)(yyv4145), d) + h.decSliceResourceQuota((*[]ResourceQuota)(yyv4228), d) } } for { - yyj4140++ - if yyhl4140 { - yyb4140 = yyj4140 > l + yyj4223++ + if yyhl4223 { + yyb4223 = yyj4223 > l } else { - yyb4140 = r.CheckBreak() + yyb4223 = r.CheckBreak() } - if yyb4140 { + if yyb4223 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj4140-1, "") + z.DecStructFieldNotFound(yyj4223-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -51951,40 +53031,40 @@ func (x *Secret) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym4147 := z.EncBinary() - _ = yym4147 + yym4230 := z.EncBinary() + _ = yym4230 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - 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 { + yysep4231 := !z.EncBinary() + yy2arr4231 := z.EncBasicHandle().StructToArray + var yyq4231 [6]bool + _, _, _ = yysep4231, yyq4231, yy2arr4231 + const yyr4231 bool = false + yyq4231[0] = x.Kind != "" + yyq4231[1] = x.APIVersion != "" + yyq4231[2] = true + yyq4231[3] = len(x.Data) != 0 + yyq4231[4] = len(x.StringData) != 0 + yyq4231[5] = x.Type != "" + var yynn4231 int + if yyr4231 || yy2arr4231 { r.EncodeArrayStart(6) } else { - yynn4148 = 0 - for _, b := range yyq4148 { + yynn4231 = 0 + for _, b := range yyq4231 { if b { - yynn4148++ + yynn4231++ } } - r.EncodeMapStart(yynn4148) - yynn4148 = 0 + r.EncodeMapStart(yynn4231) + yynn4231 = 0 } - if yyr4148 || yy2arr4148 { + if yyr4231 || yy2arr4231 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq4148[0] { - yym4150 := z.EncBinary() - _ = yym4150 + if yyq4231[0] { + yym4233 := z.EncBinary() + _ = yym4233 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) @@ -51993,23 +53073,23 @@ func (x *Secret) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq4148[0] { + if yyq4231[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym4151 := z.EncBinary() - _ = yym4151 + yym4234 := z.EncBinary() + _ = yym4234 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } - if yyr4148 || yy2arr4148 { + if yyr4231 || yy2arr4231 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq4148[1] { - yym4153 := z.EncBinary() - _ = yym4153 + if yyq4231[1] { + yym4236 := z.EncBinary() + _ = yym4236 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) @@ -52018,43 +53098,43 @@ func (x *Secret) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq4148[1] { + if yyq4231[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym4154 := z.EncBinary() - _ = yym4154 + yym4237 := z.EncBinary() + _ = yym4237 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } - if yyr4148 || yy2arr4148 { + if yyr4231 || yy2arr4231 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq4148[2] { - yy4156 := &x.ObjectMeta - yy4156.CodecEncodeSelf(e) + if yyq4231[2] { + yy4239 := &x.ObjectMeta + yy4239.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { - if yyq4148[2] { + if yyq4231[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy4157 := &x.ObjectMeta - yy4157.CodecEncodeSelf(e) + yy4240 := &x.ObjectMeta + yy4240.CodecEncodeSelf(e) } } - if yyr4148 || yy2arr4148 { + if yyr4231 || yy2arr4231 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq4148[3] { + if yyq4231[3] { if x.Data == nil { r.EncodeNil() } else { - yym4159 := z.EncBinary() - _ = yym4159 + yym4242 := z.EncBinary() + _ = yym4242 if false { } else { h.encMapstringSliceuint8((map[string][]uint8)(x.Data), e) @@ -52064,15 +53144,15 @@ func (x *Secret) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq4148[3] { + if yyq4231[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("data")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.Data == nil { r.EncodeNil() } else { - yym4160 := z.EncBinary() - _ = yym4160 + yym4243 := z.EncBinary() + _ = yym4243 if false { } else { h.encMapstringSliceuint8((map[string][]uint8)(x.Data), e) @@ -52080,14 +53160,14 @@ func (x *Secret) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr4148 || yy2arr4148 { + if yyr4231 || yy2arr4231 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq4148[4] { + if yyq4231[4] { if x.StringData == nil { r.EncodeNil() } else { - yym4162 := z.EncBinary() - _ = yym4162 + yym4245 := z.EncBinary() + _ = yym4245 if false { } else { z.F.EncMapStringStringV(x.StringData, false, e) @@ -52097,15 +53177,15 @@ func (x *Secret) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq4148[4] { + if yyq4231[4] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("stringData")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.StringData == nil { r.EncodeNil() } else { - yym4163 := z.EncBinary() - _ = yym4163 + yym4246 := z.EncBinary() + _ = yym4246 if false { } else { z.F.EncMapStringStringV(x.StringData, false, e) @@ -52113,22 +53193,22 @@ func (x *Secret) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr4148 || yy2arr4148 { + if yyr4231 || yy2arr4231 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq4148[5] { + if yyq4231[5] { x.Type.CodecEncodeSelf(e) } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq4148[5] { + if yyq4231[5] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("type")) z.EncSendContainerState(codecSelfer_containerMapValue1234) x.Type.CodecEncodeSelf(e) } } - if yyr4148 || yy2arr4148 { + if yyr4231 || yy2arr4231 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -52141,25 +53221,25 @@ func (x *Secret) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym4165 := z.DecBinary() - _ = yym4165 + yym4248 := z.DecBinary() + _ = yym4248 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct4166 := r.ContainerType() - if yyct4166 == codecSelferValueTypeMap1234 { - yyl4166 := r.ReadMapStart() - if yyl4166 == 0 { + yyct4249 := r.ContainerType() + if yyct4249 == codecSelferValueTypeMap1234 { + yyl4249 := r.ReadMapStart() + if yyl4249 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl4166, d) + x.codecDecodeSelfFromMap(yyl4249, d) } - } else if yyct4166 == codecSelferValueTypeArray1234 { - yyl4166 := r.ReadArrayStart() - if yyl4166 == 0 { + } else if yyct4249 == codecSelferValueTypeArray1234 { + yyl4249 := r.ReadArrayStart() + if yyl4249 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl4166, d) + x.codecDecodeSelfFromArray(yyl4249, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -52171,12 +53251,12 @@ func (x *Secret) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys4167Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys4167Slc - var yyhl4167 bool = l >= 0 - for yyj4167 := 0; ; yyj4167++ { - if yyhl4167 { - if yyj4167 >= l { + var yys4250Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys4250Slc + var yyhl4250 bool = l >= 0 + for yyj4250 := 0; ; yyj4250++ { + if yyhl4250 { + if yyj4250 >= l { break } } else { @@ -52185,10 +53265,10 @@ func (x *Secret) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys4167Slc = r.DecodeBytes(yys4167Slc, true, true) - yys4167 := string(yys4167Slc) + yys4250Slc = r.DecodeBytes(yys4250Slc, true, true) + yys4250 := string(yys4250Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys4167 { + switch yys4250 { case "kind": if r.TryDecodeAsNil() { x.Kind = "" @@ -52205,31 +53285,31 @@ func (x *Secret) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.ObjectMeta = ObjectMeta{} } else { - yyv4170 := &x.ObjectMeta - yyv4170.CodecDecodeSelf(d) + yyv4253 := &x.ObjectMeta + yyv4253.CodecDecodeSelf(d) } case "data": if r.TryDecodeAsNil() { x.Data = nil } else { - yyv4171 := &x.Data - yym4172 := z.DecBinary() - _ = yym4172 + yyv4254 := &x.Data + yym4255 := z.DecBinary() + _ = yym4255 if false { } else { - h.decMapstringSliceuint8((*map[string][]uint8)(yyv4171), d) + h.decMapstringSliceuint8((*map[string][]uint8)(yyv4254), d) } } case "stringData": if r.TryDecodeAsNil() { x.StringData = nil } else { - yyv4173 := &x.StringData - yym4174 := z.DecBinary() - _ = yym4174 + yyv4256 := &x.StringData + yym4257 := z.DecBinary() + _ = yym4257 if false { } else { - z.F.DecMapStringStringX(yyv4173, false, d) + z.F.DecMapStringStringX(yyv4256, false, d) } } case "type": @@ -52239,9 +53319,9 @@ func (x *Secret) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { x.Type = SecretType(r.DecodeString()) } default: - z.DecStructFieldNotFound(-1, yys4167) - } // end switch yys4167 - } // end for yyj4167 + z.DecStructFieldNotFound(-1, yys4250) + } // end switch yys4250 + } // end for yyj4250 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -52249,16 +53329,16 @@ func (x *Secret) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj4176 int - var yyb4176 bool - var yyhl4176 bool = l >= 0 - yyj4176++ - if yyhl4176 { - yyb4176 = yyj4176 > l + var yyj4259 int + var yyb4259 bool + var yyhl4259 bool = l >= 0 + yyj4259++ + if yyhl4259 { + yyb4259 = yyj4259 > l } else { - yyb4176 = r.CheckBreak() + yyb4259 = r.CheckBreak() } - if yyb4176 { + if yyb4259 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -52268,13 +53348,13 @@ func (x *Secret) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.Kind = string(r.DecodeString()) } - yyj4176++ - if yyhl4176 { - yyb4176 = yyj4176 > l + yyj4259++ + if yyhl4259 { + yyb4259 = yyj4259 > l } else { - yyb4176 = r.CheckBreak() + yyb4259 = r.CheckBreak() } - if yyb4176 { + if yyb4259 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -52284,13 +53364,13 @@ func (x *Secret) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.APIVersion = string(r.DecodeString()) } - yyj4176++ - if yyhl4176 { - yyb4176 = yyj4176 > l + yyj4259++ + if yyhl4259 { + yyb4259 = yyj4259 > l } else { - yyb4176 = r.CheckBreak() + yyb4259 = r.CheckBreak() } - if yyb4176 { + if yyb4259 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -52298,16 +53378,16 @@ func (x *Secret) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.ObjectMeta = ObjectMeta{} } else { - yyv4179 := &x.ObjectMeta - yyv4179.CodecDecodeSelf(d) + yyv4262 := &x.ObjectMeta + yyv4262.CodecDecodeSelf(d) } - yyj4176++ - if yyhl4176 { - yyb4176 = yyj4176 > l + yyj4259++ + if yyhl4259 { + yyb4259 = yyj4259 > l } else { - yyb4176 = r.CheckBreak() + yyb4259 = r.CheckBreak() } - if yyb4176 { + if yyb4259 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -52315,21 +53395,21 @@ func (x *Secret) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.Data = nil } else { - yyv4180 := &x.Data - yym4181 := z.DecBinary() - _ = yym4181 + yyv4263 := &x.Data + yym4264 := z.DecBinary() + _ = yym4264 if false { } else { - h.decMapstringSliceuint8((*map[string][]uint8)(yyv4180), d) + h.decMapstringSliceuint8((*map[string][]uint8)(yyv4263), d) } } - yyj4176++ - if yyhl4176 { - yyb4176 = yyj4176 > l + yyj4259++ + if yyhl4259 { + yyb4259 = yyj4259 > l } else { - yyb4176 = r.CheckBreak() + yyb4259 = r.CheckBreak() } - if yyb4176 { + if yyb4259 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -52337,21 +53417,21 @@ func (x *Secret) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.StringData = nil } else { - yyv4182 := &x.StringData - yym4183 := z.DecBinary() - _ = yym4183 + yyv4265 := &x.StringData + yym4266 := z.DecBinary() + _ = yym4266 if false { } else { - z.F.DecMapStringStringX(yyv4182, false, d) + z.F.DecMapStringStringX(yyv4265, false, d) } } - yyj4176++ - if yyhl4176 { - yyb4176 = yyj4176 > l + yyj4259++ + if yyhl4259 { + yyb4259 = yyj4259 > l } else { - yyb4176 = r.CheckBreak() + yyb4259 = r.CheckBreak() } - if yyb4176 { + if yyb4259 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -52362,17 +53442,17 @@ func (x *Secret) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { x.Type = SecretType(r.DecodeString()) } for { - yyj4176++ - if yyhl4176 { - yyb4176 = yyj4176 > l + yyj4259++ + if yyhl4259 { + yyb4259 = yyj4259 > l } else { - yyb4176 = r.CheckBreak() + yyb4259 = r.CheckBreak() } - if yyb4176 { + if yyb4259 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj4176-1, "") + z.DecStructFieldNotFound(yyj4259-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -52381,8 +53461,8 @@ func (x SecretType) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r - yym4185 := z.EncBinary() - _ = yym4185 + yym4268 := z.EncBinary() + _ = yym4268 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { @@ -52394,8 +53474,8 @@ func (x *SecretType) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym4186 := z.DecBinary() - _ = yym4186 + yym4269 := z.DecBinary() + _ = yym4269 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { @@ -52410,37 +53490,37 @@ func (x *SecretList) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym4187 := z.EncBinary() - _ = yym4187 + yym4270 := z.EncBinary() + _ = yym4270 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep4188 := !z.EncBinary() - yy2arr4188 := z.EncBasicHandle().StructToArray - var yyq4188 [4]bool - _, _, _ = yysep4188, yyq4188, yy2arr4188 - const yyr4188 bool = false - yyq4188[0] = x.Kind != "" - yyq4188[1] = x.APIVersion != "" - yyq4188[2] = true - var yynn4188 int - if yyr4188 || yy2arr4188 { + yysep4271 := !z.EncBinary() + yy2arr4271 := z.EncBasicHandle().StructToArray + var yyq4271 [4]bool + _, _, _ = yysep4271, yyq4271, yy2arr4271 + const yyr4271 bool = false + yyq4271[0] = x.Kind != "" + yyq4271[1] = x.APIVersion != "" + yyq4271[2] = true + var yynn4271 int + if yyr4271 || yy2arr4271 { r.EncodeArrayStart(4) } else { - yynn4188 = 1 - for _, b := range yyq4188 { + yynn4271 = 1 + for _, b := range yyq4271 { if b { - yynn4188++ + yynn4271++ } } - r.EncodeMapStart(yynn4188) - yynn4188 = 0 + r.EncodeMapStart(yynn4271) + yynn4271 = 0 } - if yyr4188 || yy2arr4188 { + if yyr4271 || yy2arr4271 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq4188[0] { - yym4190 := z.EncBinary() - _ = yym4190 + if yyq4271[0] { + yym4273 := z.EncBinary() + _ = yym4273 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) @@ -52449,23 +53529,23 @@ func (x *SecretList) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq4188[0] { + if yyq4271[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym4191 := z.EncBinary() - _ = yym4191 + yym4274 := z.EncBinary() + _ = yym4274 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } - if yyr4188 || yy2arr4188 { + if yyr4271 || yy2arr4271 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq4188[1] { - yym4193 := z.EncBinary() - _ = yym4193 + if yyq4271[1] { + yym4276 := z.EncBinary() + _ = yym4276 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) @@ -52474,54 +53554,54 @@ func (x *SecretList) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq4188[1] { + if yyq4271[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym4194 := z.EncBinary() - _ = yym4194 + yym4277 := z.EncBinary() + _ = yym4277 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } - if yyr4188 || yy2arr4188 { + if yyr4271 || yy2arr4271 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq4188[2] { - yy4196 := &x.ListMeta - yym4197 := z.EncBinary() - _ = yym4197 + if yyq4271[2] { + yy4279 := &x.ListMeta + yym4280 := z.EncBinary() + _ = yym4280 if false { - } else if z.HasExtensions() && z.EncExt(yy4196) { + } else if z.HasExtensions() && z.EncExt(yy4279) { } else { - z.EncFallback(yy4196) + z.EncFallback(yy4279) } } else { r.EncodeNil() } } else { - if yyq4188[2] { + if yyq4271[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy4198 := &x.ListMeta - yym4199 := z.EncBinary() - _ = yym4199 + yy4281 := &x.ListMeta + yym4282 := z.EncBinary() + _ = yym4282 if false { - } else if z.HasExtensions() && z.EncExt(yy4198) { + } else if z.HasExtensions() && z.EncExt(yy4281) { } else { - z.EncFallback(yy4198) + z.EncFallback(yy4281) } } } - if yyr4188 || yy2arr4188 { + if yyr4271 || yy2arr4271 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.Items == nil { r.EncodeNil() } else { - yym4201 := z.EncBinary() - _ = yym4201 + yym4284 := z.EncBinary() + _ = yym4284 if false { } else { h.encSliceSecret(([]Secret)(x.Items), e) @@ -52534,15 +53614,15 @@ func (x *SecretList) CodecEncodeSelf(e *codec1978.Encoder) { if x.Items == nil { r.EncodeNil() } else { - yym4202 := z.EncBinary() - _ = yym4202 + yym4285 := z.EncBinary() + _ = yym4285 if false { } else { h.encSliceSecret(([]Secret)(x.Items), e) } } } - if yyr4188 || yy2arr4188 { + if yyr4271 || yy2arr4271 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -52555,25 +53635,25 @@ func (x *SecretList) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym4203 := z.DecBinary() - _ = yym4203 + yym4286 := z.DecBinary() + _ = yym4286 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct4204 := r.ContainerType() - if yyct4204 == codecSelferValueTypeMap1234 { - yyl4204 := r.ReadMapStart() - if yyl4204 == 0 { + yyct4287 := r.ContainerType() + if yyct4287 == codecSelferValueTypeMap1234 { + yyl4287 := r.ReadMapStart() + if yyl4287 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl4204, d) + x.codecDecodeSelfFromMap(yyl4287, d) } - } else if yyct4204 == codecSelferValueTypeArray1234 { - yyl4204 := r.ReadArrayStart() - if yyl4204 == 0 { + } else if yyct4287 == codecSelferValueTypeArray1234 { + yyl4287 := r.ReadArrayStart() + if yyl4287 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl4204, d) + x.codecDecodeSelfFromArray(yyl4287, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -52585,12 +53665,12 @@ func (x *SecretList) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys4205Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys4205Slc - var yyhl4205 bool = l >= 0 - for yyj4205 := 0; ; yyj4205++ { - if yyhl4205 { - if yyj4205 >= l { + var yys4288Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys4288Slc + var yyhl4288 bool = l >= 0 + for yyj4288 := 0; ; yyj4288++ { + if yyhl4288 { + if yyj4288 >= l { break } } else { @@ -52599,10 +53679,10 @@ func (x *SecretList) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys4205Slc = r.DecodeBytes(yys4205Slc, true, true) - yys4205 := string(yys4205Slc) + yys4288Slc = r.DecodeBytes(yys4288Slc, true, true) + yys4288 := string(yys4288Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys4205 { + switch yys4288 { case "kind": if r.TryDecodeAsNil() { x.Kind = "" @@ -52619,31 +53699,31 @@ func (x *SecretList) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.ListMeta = pkg2_unversioned.ListMeta{} } else { - yyv4208 := &x.ListMeta - yym4209 := z.DecBinary() - _ = yym4209 + yyv4291 := &x.ListMeta + yym4292 := z.DecBinary() + _ = yym4292 if false { - } else if z.HasExtensions() && z.DecExt(yyv4208) { + } else if z.HasExtensions() && z.DecExt(yyv4291) { } else { - z.DecFallback(yyv4208, false) + z.DecFallback(yyv4291, false) } } case "items": if r.TryDecodeAsNil() { x.Items = nil } else { - yyv4210 := &x.Items - yym4211 := z.DecBinary() - _ = yym4211 + yyv4293 := &x.Items + yym4294 := z.DecBinary() + _ = yym4294 if false { } else { - h.decSliceSecret((*[]Secret)(yyv4210), d) + h.decSliceSecret((*[]Secret)(yyv4293), d) } } default: - z.DecStructFieldNotFound(-1, yys4205) - } // end switch yys4205 - } // end for yyj4205 + z.DecStructFieldNotFound(-1, yys4288) + } // end switch yys4288 + } // end for yyj4288 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -52651,16 +53731,16 @@ func (x *SecretList) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj4212 int - var yyb4212 bool - var yyhl4212 bool = l >= 0 - yyj4212++ - if yyhl4212 { - yyb4212 = yyj4212 > l + var yyj4295 int + var yyb4295 bool + var yyhl4295 bool = l >= 0 + yyj4295++ + if yyhl4295 { + yyb4295 = yyj4295 > l } else { - yyb4212 = r.CheckBreak() + yyb4295 = r.CheckBreak() } - if yyb4212 { + if yyb4295 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -52670,13 +53750,13 @@ func (x *SecretList) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.Kind = string(r.DecodeString()) } - yyj4212++ - if yyhl4212 { - yyb4212 = yyj4212 > l + yyj4295++ + if yyhl4295 { + yyb4295 = yyj4295 > l } else { - yyb4212 = r.CheckBreak() + yyb4295 = r.CheckBreak() } - if yyb4212 { + if yyb4295 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -52686,13 +53766,13 @@ func (x *SecretList) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.APIVersion = string(r.DecodeString()) } - yyj4212++ - if yyhl4212 { - yyb4212 = yyj4212 > l + yyj4295++ + if yyhl4295 { + yyb4295 = yyj4295 > l } else { - yyb4212 = r.CheckBreak() + yyb4295 = r.CheckBreak() } - if yyb4212 { + if yyb4295 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -52700,22 +53780,22 @@ func (x *SecretList) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.ListMeta = pkg2_unversioned.ListMeta{} } else { - yyv4215 := &x.ListMeta - yym4216 := z.DecBinary() - _ = yym4216 + yyv4298 := &x.ListMeta + yym4299 := z.DecBinary() + _ = yym4299 if false { - } else if z.HasExtensions() && z.DecExt(yyv4215) { + } else if z.HasExtensions() && z.DecExt(yyv4298) { } else { - z.DecFallback(yyv4215, false) + z.DecFallback(yyv4298, false) } } - yyj4212++ - if yyhl4212 { - yyb4212 = yyj4212 > l + yyj4295++ + if yyhl4295 { + yyb4295 = yyj4295 > l } else { - yyb4212 = r.CheckBreak() + yyb4295 = r.CheckBreak() } - if yyb4212 { + if yyb4295 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -52723,26 +53803,26 @@ func (x *SecretList) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.Items = nil } else { - yyv4217 := &x.Items - yym4218 := z.DecBinary() - _ = yym4218 + yyv4300 := &x.Items + yym4301 := z.DecBinary() + _ = yym4301 if false { } else { - h.decSliceSecret((*[]Secret)(yyv4217), d) + h.decSliceSecret((*[]Secret)(yyv4300), d) } } for { - yyj4212++ - if yyhl4212 { - yyb4212 = yyj4212 > l + yyj4295++ + if yyhl4295 { + yyb4295 = yyj4295 > l } else { - yyb4212 = r.CheckBreak() + yyb4295 = r.CheckBreak() } - if yyb4212 { + if yyb4295 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj4212-1, "") + z.DecStructFieldNotFound(yyj4295-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -52754,38 +53834,38 @@ func (x *ConfigMap) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym4219 := z.EncBinary() - _ = yym4219 + yym4302 := z.EncBinary() + _ = yym4302 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - 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 { + yysep4303 := !z.EncBinary() + yy2arr4303 := z.EncBasicHandle().StructToArray + var yyq4303 [4]bool + _, _, _ = yysep4303, yyq4303, yy2arr4303 + const yyr4303 bool = false + yyq4303[0] = x.Kind != "" + yyq4303[1] = x.APIVersion != "" + yyq4303[2] = true + yyq4303[3] = len(x.Data) != 0 + var yynn4303 int + if yyr4303 || yy2arr4303 { r.EncodeArrayStart(4) } else { - yynn4220 = 0 - for _, b := range yyq4220 { + yynn4303 = 0 + for _, b := range yyq4303 { if b { - yynn4220++ + yynn4303++ } } - r.EncodeMapStart(yynn4220) - yynn4220 = 0 + r.EncodeMapStart(yynn4303) + yynn4303 = 0 } - if yyr4220 || yy2arr4220 { + if yyr4303 || yy2arr4303 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq4220[0] { - yym4222 := z.EncBinary() - _ = yym4222 + if yyq4303[0] { + yym4305 := z.EncBinary() + _ = yym4305 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) @@ -52794,23 +53874,23 @@ func (x *ConfigMap) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq4220[0] { + if yyq4303[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym4223 := z.EncBinary() - _ = yym4223 + yym4306 := z.EncBinary() + _ = yym4306 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } - if yyr4220 || yy2arr4220 { + if yyr4303 || yy2arr4303 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq4220[1] { - yym4225 := z.EncBinary() - _ = yym4225 + if yyq4303[1] { + yym4308 := z.EncBinary() + _ = yym4308 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) @@ -52819,43 +53899,43 @@ func (x *ConfigMap) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq4220[1] { + if yyq4303[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym4226 := z.EncBinary() - _ = yym4226 + yym4309 := z.EncBinary() + _ = yym4309 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } - if yyr4220 || yy2arr4220 { + if yyr4303 || yy2arr4303 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq4220[2] { - yy4228 := &x.ObjectMeta - yy4228.CodecEncodeSelf(e) + if yyq4303[2] { + yy4311 := &x.ObjectMeta + yy4311.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { - if yyq4220[2] { + if yyq4303[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy4229 := &x.ObjectMeta - yy4229.CodecEncodeSelf(e) + yy4312 := &x.ObjectMeta + yy4312.CodecEncodeSelf(e) } } - if yyr4220 || yy2arr4220 { + if yyr4303 || yy2arr4303 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq4220[3] { + if yyq4303[3] { if x.Data == nil { r.EncodeNil() } else { - yym4231 := z.EncBinary() - _ = yym4231 + yym4314 := z.EncBinary() + _ = yym4314 if false { } else { z.F.EncMapStringStringV(x.Data, false, e) @@ -52865,15 +53945,15 @@ func (x *ConfigMap) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq4220[3] { + if yyq4303[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("data")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.Data == nil { r.EncodeNil() } else { - yym4232 := z.EncBinary() - _ = yym4232 + yym4315 := z.EncBinary() + _ = yym4315 if false { } else { z.F.EncMapStringStringV(x.Data, false, e) @@ -52881,7 +53961,7 @@ func (x *ConfigMap) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr4220 || yy2arr4220 { + if yyr4303 || yy2arr4303 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -52894,25 +53974,25 @@ func (x *ConfigMap) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym4233 := z.DecBinary() - _ = yym4233 + yym4316 := z.DecBinary() + _ = yym4316 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct4234 := r.ContainerType() - if yyct4234 == codecSelferValueTypeMap1234 { - yyl4234 := r.ReadMapStart() - if yyl4234 == 0 { + yyct4317 := r.ContainerType() + if yyct4317 == codecSelferValueTypeMap1234 { + yyl4317 := r.ReadMapStart() + if yyl4317 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl4234, d) + x.codecDecodeSelfFromMap(yyl4317, d) } - } else if yyct4234 == codecSelferValueTypeArray1234 { - yyl4234 := r.ReadArrayStart() - if yyl4234 == 0 { + } else if yyct4317 == codecSelferValueTypeArray1234 { + yyl4317 := r.ReadArrayStart() + if yyl4317 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl4234, d) + x.codecDecodeSelfFromArray(yyl4317, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -52924,12 +54004,12 @@ func (x *ConfigMap) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys4235Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys4235Slc - var yyhl4235 bool = l >= 0 - for yyj4235 := 0; ; yyj4235++ { - if yyhl4235 { - if yyj4235 >= l { + var yys4318Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys4318Slc + var yyhl4318 bool = l >= 0 + for yyj4318 := 0; ; yyj4318++ { + if yyhl4318 { + if yyj4318 >= l { break } } else { @@ -52938,10 +54018,10 @@ func (x *ConfigMap) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys4235Slc = r.DecodeBytes(yys4235Slc, true, true) - yys4235 := string(yys4235Slc) + yys4318Slc = r.DecodeBytes(yys4318Slc, true, true) + yys4318 := string(yys4318Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys4235 { + switch yys4318 { case "kind": if r.TryDecodeAsNil() { x.Kind = "" @@ -52958,25 +54038,25 @@ func (x *ConfigMap) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.ObjectMeta = ObjectMeta{} } else { - yyv4238 := &x.ObjectMeta - yyv4238.CodecDecodeSelf(d) + yyv4321 := &x.ObjectMeta + yyv4321.CodecDecodeSelf(d) } case "data": if r.TryDecodeAsNil() { x.Data = nil } else { - yyv4239 := &x.Data - yym4240 := z.DecBinary() - _ = yym4240 + yyv4322 := &x.Data + yym4323 := z.DecBinary() + _ = yym4323 if false { } else { - z.F.DecMapStringStringX(yyv4239, false, d) + z.F.DecMapStringStringX(yyv4322, false, d) } } default: - z.DecStructFieldNotFound(-1, yys4235) - } // end switch yys4235 - } // end for yyj4235 + z.DecStructFieldNotFound(-1, yys4318) + } // end switch yys4318 + } // end for yyj4318 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -52984,16 +54064,16 @@ func (x *ConfigMap) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj4241 int - var yyb4241 bool - var yyhl4241 bool = l >= 0 - yyj4241++ - if yyhl4241 { - yyb4241 = yyj4241 > l + var yyj4324 int + var yyb4324 bool + var yyhl4324 bool = l >= 0 + yyj4324++ + if yyhl4324 { + yyb4324 = yyj4324 > l } else { - yyb4241 = r.CheckBreak() + yyb4324 = r.CheckBreak() } - if yyb4241 { + if yyb4324 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -53003,13 +54083,13 @@ func (x *ConfigMap) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.Kind = string(r.DecodeString()) } - yyj4241++ - if yyhl4241 { - yyb4241 = yyj4241 > l + yyj4324++ + if yyhl4324 { + yyb4324 = yyj4324 > l } else { - yyb4241 = r.CheckBreak() + yyb4324 = r.CheckBreak() } - if yyb4241 { + if yyb4324 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -53019,13 +54099,13 @@ func (x *ConfigMap) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.APIVersion = string(r.DecodeString()) } - yyj4241++ - if yyhl4241 { - yyb4241 = yyj4241 > l + yyj4324++ + if yyhl4324 { + yyb4324 = yyj4324 > l } else { - yyb4241 = r.CheckBreak() + yyb4324 = r.CheckBreak() } - if yyb4241 { + if yyb4324 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -53033,16 +54113,16 @@ func (x *ConfigMap) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.ObjectMeta = ObjectMeta{} } else { - yyv4244 := &x.ObjectMeta - yyv4244.CodecDecodeSelf(d) + yyv4327 := &x.ObjectMeta + yyv4327.CodecDecodeSelf(d) } - yyj4241++ - if yyhl4241 { - yyb4241 = yyj4241 > l + yyj4324++ + if yyhl4324 { + yyb4324 = yyj4324 > l } else { - yyb4241 = r.CheckBreak() + yyb4324 = r.CheckBreak() } - if yyb4241 { + if yyb4324 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -53050,26 +54130,26 @@ func (x *ConfigMap) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.Data = nil } else { - yyv4245 := &x.Data - yym4246 := z.DecBinary() - _ = yym4246 + yyv4328 := &x.Data + yym4329 := z.DecBinary() + _ = yym4329 if false { } else { - z.F.DecMapStringStringX(yyv4245, false, d) + z.F.DecMapStringStringX(yyv4328, false, d) } } for { - yyj4241++ - if yyhl4241 { - yyb4241 = yyj4241 > l + yyj4324++ + if yyhl4324 { + yyb4324 = yyj4324 > l } else { - yyb4241 = r.CheckBreak() + yyb4324 = r.CheckBreak() } - if yyb4241 { + if yyb4324 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj4241-1, "") + z.DecStructFieldNotFound(yyj4324-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -53081,37 +54161,37 @@ func (x *ConfigMapList) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym4247 := z.EncBinary() - _ = yym4247 + yym4330 := z.EncBinary() + _ = yym4330 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - 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 { + yysep4331 := !z.EncBinary() + yy2arr4331 := z.EncBasicHandle().StructToArray + var yyq4331 [4]bool + _, _, _ = yysep4331, yyq4331, yy2arr4331 + const yyr4331 bool = false + yyq4331[0] = x.Kind != "" + yyq4331[1] = x.APIVersion != "" + yyq4331[2] = true + var yynn4331 int + if yyr4331 || yy2arr4331 { r.EncodeArrayStart(4) } else { - yynn4248 = 1 - for _, b := range yyq4248 { + yynn4331 = 1 + for _, b := range yyq4331 { if b { - yynn4248++ + yynn4331++ } } - r.EncodeMapStart(yynn4248) - yynn4248 = 0 + r.EncodeMapStart(yynn4331) + yynn4331 = 0 } - if yyr4248 || yy2arr4248 { + if yyr4331 || yy2arr4331 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq4248[0] { - yym4250 := z.EncBinary() - _ = yym4250 + if yyq4331[0] { + yym4333 := z.EncBinary() + _ = yym4333 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) @@ -53120,23 +54200,23 @@ func (x *ConfigMapList) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq4248[0] { + if yyq4331[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym4251 := z.EncBinary() - _ = yym4251 + yym4334 := z.EncBinary() + _ = yym4334 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } - if yyr4248 || yy2arr4248 { + if yyr4331 || yy2arr4331 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq4248[1] { - yym4253 := z.EncBinary() - _ = yym4253 + if yyq4331[1] { + yym4336 := z.EncBinary() + _ = yym4336 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) @@ -53145,54 +54225,54 @@ func (x *ConfigMapList) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq4248[1] { + if yyq4331[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym4254 := z.EncBinary() - _ = yym4254 + yym4337 := z.EncBinary() + _ = yym4337 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } - if yyr4248 || yy2arr4248 { + if yyr4331 || yy2arr4331 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq4248[2] { - yy4256 := &x.ListMeta - yym4257 := z.EncBinary() - _ = yym4257 + if yyq4331[2] { + yy4339 := &x.ListMeta + yym4340 := z.EncBinary() + _ = yym4340 if false { - } else if z.HasExtensions() && z.EncExt(yy4256) { + } else if z.HasExtensions() && z.EncExt(yy4339) { } else { - z.EncFallback(yy4256) + z.EncFallback(yy4339) } } else { r.EncodeNil() } } else { - if yyq4248[2] { + if yyq4331[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy4258 := &x.ListMeta - yym4259 := z.EncBinary() - _ = yym4259 + yy4341 := &x.ListMeta + yym4342 := z.EncBinary() + _ = yym4342 if false { - } else if z.HasExtensions() && z.EncExt(yy4258) { + } else if z.HasExtensions() && z.EncExt(yy4341) { } else { - z.EncFallback(yy4258) + z.EncFallback(yy4341) } } } - if yyr4248 || yy2arr4248 { + if yyr4331 || yy2arr4331 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.Items == nil { r.EncodeNil() } else { - yym4261 := z.EncBinary() - _ = yym4261 + yym4344 := z.EncBinary() + _ = yym4344 if false { } else { h.encSliceConfigMap(([]ConfigMap)(x.Items), e) @@ -53205,15 +54285,15 @@ func (x *ConfigMapList) CodecEncodeSelf(e *codec1978.Encoder) { if x.Items == nil { r.EncodeNil() } else { - yym4262 := z.EncBinary() - _ = yym4262 + yym4345 := z.EncBinary() + _ = yym4345 if false { } else { h.encSliceConfigMap(([]ConfigMap)(x.Items), e) } } } - if yyr4248 || yy2arr4248 { + if yyr4331 || yy2arr4331 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -53226,25 +54306,25 @@ func (x *ConfigMapList) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym4263 := z.DecBinary() - _ = yym4263 + yym4346 := z.DecBinary() + _ = yym4346 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct4264 := r.ContainerType() - if yyct4264 == codecSelferValueTypeMap1234 { - yyl4264 := r.ReadMapStart() - if yyl4264 == 0 { + yyct4347 := r.ContainerType() + if yyct4347 == codecSelferValueTypeMap1234 { + yyl4347 := r.ReadMapStart() + if yyl4347 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl4264, d) + x.codecDecodeSelfFromMap(yyl4347, d) } - } else if yyct4264 == codecSelferValueTypeArray1234 { - yyl4264 := r.ReadArrayStart() - if yyl4264 == 0 { + } else if yyct4347 == codecSelferValueTypeArray1234 { + yyl4347 := r.ReadArrayStart() + if yyl4347 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl4264, d) + x.codecDecodeSelfFromArray(yyl4347, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -53256,12 +54336,12 @@ func (x *ConfigMapList) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys4265Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys4265Slc - var yyhl4265 bool = l >= 0 - for yyj4265 := 0; ; yyj4265++ { - if yyhl4265 { - if yyj4265 >= l { + var yys4348Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys4348Slc + var yyhl4348 bool = l >= 0 + for yyj4348 := 0; ; yyj4348++ { + if yyhl4348 { + if yyj4348 >= l { break } } else { @@ -53270,10 +54350,10 @@ func (x *ConfigMapList) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys4265Slc = r.DecodeBytes(yys4265Slc, true, true) - yys4265 := string(yys4265Slc) + yys4348Slc = r.DecodeBytes(yys4348Slc, true, true) + yys4348 := string(yys4348Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys4265 { + switch yys4348 { case "kind": if r.TryDecodeAsNil() { x.Kind = "" @@ -53290,31 +54370,31 @@ func (x *ConfigMapList) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.ListMeta = pkg2_unversioned.ListMeta{} } else { - yyv4268 := &x.ListMeta - yym4269 := z.DecBinary() - _ = yym4269 + yyv4351 := &x.ListMeta + yym4352 := z.DecBinary() + _ = yym4352 if false { - } else if z.HasExtensions() && z.DecExt(yyv4268) { + } else if z.HasExtensions() && z.DecExt(yyv4351) { } else { - z.DecFallback(yyv4268, false) + z.DecFallback(yyv4351, false) } } case "items": if r.TryDecodeAsNil() { x.Items = nil } else { - yyv4270 := &x.Items - yym4271 := z.DecBinary() - _ = yym4271 + yyv4353 := &x.Items + yym4354 := z.DecBinary() + _ = yym4354 if false { } else { - h.decSliceConfigMap((*[]ConfigMap)(yyv4270), d) + h.decSliceConfigMap((*[]ConfigMap)(yyv4353), d) } } default: - z.DecStructFieldNotFound(-1, yys4265) - } // end switch yys4265 - } // end for yyj4265 + z.DecStructFieldNotFound(-1, yys4348) + } // end switch yys4348 + } // end for yyj4348 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -53322,16 +54402,16 @@ func (x *ConfigMapList) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj4272 int - var yyb4272 bool - var yyhl4272 bool = l >= 0 - yyj4272++ - if yyhl4272 { - yyb4272 = yyj4272 > l + var yyj4355 int + var yyb4355 bool + var yyhl4355 bool = l >= 0 + yyj4355++ + if yyhl4355 { + yyb4355 = yyj4355 > l } else { - yyb4272 = r.CheckBreak() + yyb4355 = r.CheckBreak() } - if yyb4272 { + if yyb4355 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -53341,13 +54421,13 @@ func (x *ConfigMapList) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.Kind = string(r.DecodeString()) } - yyj4272++ - if yyhl4272 { - yyb4272 = yyj4272 > l + yyj4355++ + if yyhl4355 { + yyb4355 = yyj4355 > l } else { - yyb4272 = r.CheckBreak() + yyb4355 = r.CheckBreak() } - if yyb4272 { + if yyb4355 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -53357,13 +54437,13 @@ func (x *ConfigMapList) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.APIVersion = string(r.DecodeString()) } - yyj4272++ - if yyhl4272 { - yyb4272 = yyj4272 > l + yyj4355++ + if yyhl4355 { + yyb4355 = yyj4355 > l } else { - yyb4272 = r.CheckBreak() + yyb4355 = r.CheckBreak() } - if yyb4272 { + if yyb4355 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -53371,22 +54451,22 @@ func (x *ConfigMapList) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.ListMeta = pkg2_unversioned.ListMeta{} } else { - yyv4275 := &x.ListMeta - yym4276 := z.DecBinary() - _ = yym4276 + yyv4358 := &x.ListMeta + yym4359 := z.DecBinary() + _ = yym4359 if false { - } else if z.HasExtensions() && z.DecExt(yyv4275) { + } else if z.HasExtensions() && z.DecExt(yyv4358) { } else { - z.DecFallback(yyv4275, false) + z.DecFallback(yyv4358, false) } } - yyj4272++ - if yyhl4272 { - yyb4272 = yyj4272 > l + yyj4355++ + if yyhl4355 { + yyb4355 = yyj4355 > l } else { - yyb4272 = r.CheckBreak() + yyb4355 = r.CheckBreak() } - if yyb4272 { + if yyb4355 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -53394,26 +54474,26 @@ func (x *ConfigMapList) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.Items = nil } else { - yyv4277 := &x.Items - yym4278 := z.DecBinary() - _ = yym4278 + yyv4360 := &x.Items + yym4361 := z.DecBinary() + _ = yym4361 if false { } else { - h.decSliceConfigMap((*[]ConfigMap)(yyv4277), d) + h.decSliceConfigMap((*[]ConfigMap)(yyv4360), d) } } for { - yyj4272++ - if yyhl4272 { - yyb4272 = yyj4272 > l + yyj4355++ + if yyhl4355 { + yyb4355 = yyj4355 > l } else { - yyb4272 = r.CheckBreak() + yyb4355 = r.CheckBreak() } - if yyb4272 { + if yyb4355 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj4272-1, "") + z.DecStructFieldNotFound(yyj4355-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -53422,8 +54502,8 @@ func (x ComponentConditionType) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r - yym4279 := z.EncBinary() - _ = yym4279 + yym4362 := z.EncBinary() + _ = yym4362 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { @@ -53435,8 +54515,8 @@ func (x *ComponentConditionType) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym4280 := z.DecBinary() - _ = yym4280 + yym4363 := z.DecBinary() + _ = yym4363 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { @@ -53451,32 +54531,32 @@ func (x *ComponentCondition) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym4281 := z.EncBinary() - _ = yym4281 + yym4364 := z.EncBinary() + _ = yym4364 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - 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 { + yysep4365 := !z.EncBinary() + yy2arr4365 := z.EncBasicHandle().StructToArray + var yyq4365 [4]bool + _, _, _ = yysep4365, yyq4365, yy2arr4365 + const yyr4365 bool = false + yyq4365[2] = x.Message != "" + yyq4365[3] = x.Error != "" + var yynn4365 int + if yyr4365 || yy2arr4365 { r.EncodeArrayStart(4) } else { - yynn4282 = 2 - for _, b := range yyq4282 { + yynn4365 = 2 + for _, b := range yyq4365 { if b { - yynn4282++ + yynn4365++ } } - r.EncodeMapStart(yynn4282) - yynn4282 = 0 + r.EncodeMapStart(yynn4365) + yynn4365 = 0 } - if yyr4282 || yy2arr4282 { + if yyr4365 || yy2arr4365 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) x.Type.CodecEncodeSelf(e) } else { @@ -53485,7 +54565,7 @@ func (x *ComponentCondition) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapValue1234) x.Type.CodecEncodeSelf(e) } - if yyr4282 || yy2arr4282 { + if yyr4365 || yy2arr4365 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) x.Status.CodecEncodeSelf(e) } else { @@ -53494,11 +54574,11 @@ func (x *ComponentCondition) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapValue1234) x.Status.CodecEncodeSelf(e) } - if yyr4282 || yy2arr4282 { + if yyr4365 || yy2arr4365 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq4282[2] { - yym4286 := z.EncBinary() - _ = yym4286 + if yyq4365[2] { + yym4369 := z.EncBinary() + _ = yym4369 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Message)) @@ -53507,23 +54587,23 @@ func (x *ComponentCondition) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq4282[2] { + if yyq4365[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("message")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym4287 := z.EncBinary() - _ = yym4287 + yym4370 := z.EncBinary() + _ = yym4370 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Message)) } } } - if yyr4282 || yy2arr4282 { + if yyr4365 || yy2arr4365 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq4282[3] { - yym4289 := z.EncBinary() - _ = yym4289 + if yyq4365[3] { + yym4372 := z.EncBinary() + _ = yym4372 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Error)) @@ -53532,19 +54612,19 @@ func (x *ComponentCondition) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq4282[3] { + if yyq4365[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("error")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym4290 := z.EncBinary() - _ = yym4290 + yym4373 := z.EncBinary() + _ = yym4373 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Error)) } } } - if yyr4282 || yy2arr4282 { + if yyr4365 || yy2arr4365 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -53557,25 +54637,25 @@ func (x *ComponentCondition) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym4291 := z.DecBinary() - _ = yym4291 + yym4374 := z.DecBinary() + _ = yym4374 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct4292 := r.ContainerType() - if yyct4292 == codecSelferValueTypeMap1234 { - yyl4292 := r.ReadMapStart() - if yyl4292 == 0 { + yyct4375 := r.ContainerType() + if yyct4375 == codecSelferValueTypeMap1234 { + yyl4375 := r.ReadMapStart() + if yyl4375 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl4292, d) + x.codecDecodeSelfFromMap(yyl4375, d) } - } else if yyct4292 == codecSelferValueTypeArray1234 { - yyl4292 := r.ReadArrayStart() - if yyl4292 == 0 { + } else if yyct4375 == codecSelferValueTypeArray1234 { + yyl4375 := r.ReadArrayStart() + if yyl4375 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl4292, d) + x.codecDecodeSelfFromArray(yyl4375, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -53587,12 +54667,12 @@ func (x *ComponentCondition) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys4293Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys4293Slc - var yyhl4293 bool = l >= 0 - for yyj4293 := 0; ; yyj4293++ { - if yyhl4293 { - if yyj4293 >= l { + var yys4376Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys4376Slc + var yyhl4376 bool = l >= 0 + for yyj4376 := 0; ; yyj4376++ { + if yyhl4376 { + if yyj4376 >= l { break } } else { @@ -53601,10 +54681,10 @@ func (x *ComponentCondition) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys4293Slc = r.DecodeBytes(yys4293Slc, true, true) - yys4293 := string(yys4293Slc) + yys4376Slc = r.DecodeBytes(yys4376Slc, true, true) + yys4376 := string(yys4376Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys4293 { + switch yys4376 { case "type": if r.TryDecodeAsNil() { x.Type = "" @@ -53630,9 +54710,9 @@ func (x *ComponentCondition) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) x.Error = string(r.DecodeString()) } default: - z.DecStructFieldNotFound(-1, yys4293) - } // end switch yys4293 - } // end for yyj4293 + z.DecStructFieldNotFound(-1, yys4376) + } // end switch yys4376 + } // end for yyj4376 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -53640,16 +54720,16 @@ func (x *ComponentCondition) codecDecodeSelfFromArray(l int, d *codec1978.Decode var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj4298 int - var yyb4298 bool - var yyhl4298 bool = l >= 0 - yyj4298++ - if yyhl4298 { - yyb4298 = yyj4298 > l + var yyj4381 int + var yyb4381 bool + var yyhl4381 bool = l >= 0 + yyj4381++ + if yyhl4381 { + yyb4381 = yyj4381 > l } else { - yyb4298 = r.CheckBreak() + yyb4381 = r.CheckBreak() } - if yyb4298 { + if yyb4381 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -53659,13 +54739,13 @@ func (x *ComponentCondition) codecDecodeSelfFromArray(l int, d *codec1978.Decode } else { x.Type = ComponentConditionType(r.DecodeString()) } - yyj4298++ - if yyhl4298 { - yyb4298 = yyj4298 > l + yyj4381++ + if yyhl4381 { + yyb4381 = yyj4381 > l } else { - yyb4298 = r.CheckBreak() + yyb4381 = r.CheckBreak() } - if yyb4298 { + if yyb4381 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -53675,13 +54755,13 @@ func (x *ComponentCondition) codecDecodeSelfFromArray(l int, d *codec1978.Decode } else { x.Status = ConditionStatus(r.DecodeString()) } - yyj4298++ - if yyhl4298 { - yyb4298 = yyj4298 > l + yyj4381++ + if yyhl4381 { + yyb4381 = yyj4381 > l } else { - yyb4298 = r.CheckBreak() + yyb4381 = r.CheckBreak() } - if yyb4298 { + if yyb4381 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -53691,13 +54771,13 @@ func (x *ComponentCondition) codecDecodeSelfFromArray(l int, d *codec1978.Decode } else { x.Message = string(r.DecodeString()) } - yyj4298++ - if yyhl4298 { - yyb4298 = yyj4298 > l + yyj4381++ + if yyhl4381 { + yyb4381 = yyj4381 > l } else { - yyb4298 = r.CheckBreak() + yyb4381 = r.CheckBreak() } - if yyb4298 { + if yyb4381 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -53708,17 +54788,17 @@ func (x *ComponentCondition) codecDecodeSelfFromArray(l int, d *codec1978.Decode x.Error = string(r.DecodeString()) } for { - yyj4298++ - if yyhl4298 { - yyb4298 = yyj4298 > l + yyj4381++ + if yyhl4381 { + yyb4381 = yyj4381 > l } else { - yyb4298 = r.CheckBreak() + yyb4381 = r.CheckBreak() } - if yyb4298 { + if yyb4381 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj4298-1, "") + z.DecStructFieldNotFound(yyj4381-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -53730,38 +54810,38 @@ func (x *ComponentStatus) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym4303 := z.EncBinary() - _ = yym4303 + yym4386 := z.EncBinary() + _ = yym4386 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - 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 { + yysep4387 := !z.EncBinary() + yy2arr4387 := z.EncBasicHandle().StructToArray + var yyq4387 [4]bool + _, _, _ = yysep4387, yyq4387, yy2arr4387 + const yyr4387 bool = false + yyq4387[0] = x.Kind != "" + yyq4387[1] = x.APIVersion != "" + yyq4387[2] = true + yyq4387[3] = len(x.Conditions) != 0 + var yynn4387 int + if yyr4387 || yy2arr4387 { r.EncodeArrayStart(4) } else { - yynn4304 = 0 - for _, b := range yyq4304 { + yynn4387 = 0 + for _, b := range yyq4387 { if b { - yynn4304++ + yynn4387++ } } - r.EncodeMapStart(yynn4304) - yynn4304 = 0 + r.EncodeMapStart(yynn4387) + yynn4387 = 0 } - if yyr4304 || yy2arr4304 { + if yyr4387 || yy2arr4387 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq4304[0] { - yym4306 := z.EncBinary() - _ = yym4306 + if yyq4387[0] { + yym4389 := z.EncBinary() + _ = yym4389 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) @@ -53770,23 +54850,23 @@ func (x *ComponentStatus) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq4304[0] { + if yyq4387[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym4307 := z.EncBinary() - _ = yym4307 + yym4390 := z.EncBinary() + _ = yym4390 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } - if yyr4304 || yy2arr4304 { + if yyr4387 || yy2arr4387 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq4304[1] { - yym4309 := z.EncBinary() - _ = yym4309 + if yyq4387[1] { + yym4392 := z.EncBinary() + _ = yym4392 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) @@ -53795,43 +54875,43 @@ func (x *ComponentStatus) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq4304[1] { + if yyq4387[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym4310 := z.EncBinary() - _ = yym4310 + yym4393 := z.EncBinary() + _ = yym4393 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } - if yyr4304 || yy2arr4304 { + if yyr4387 || yy2arr4387 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq4304[2] { - yy4312 := &x.ObjectMeta - yy4312.CodecEncodeSelf(e) + if yyq4387[2] { + yy4395 := &x.ObjectMeta + yy4395.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { - if yyq4304[2] { + if yyq4387[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy4313 := &x.ObjectMeta - yy4313.CodecEncodeSelf(e) + yy4396 := &x.ObjectMeta + yy4396.CodecEncodeSelf(e) } } - if yyr4304 || yy2arr4304 { + if yyr4387 || yy2arr4387 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq4304[3] { + if yyq4387[3] { if x.Conditions == nil { r.EncodeNil() } else { - yym4315 := z.EncBinary() - _ = yym4315 + yym4398 := z.EncBinary() + _ = yym4398 if false { } else { h.encSliceComponentCondition(([]ComponentCondition)(x.Conditions), e) @@ -53841,15 +54921,15 @@ func (x *ComponentStatus) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq4304[3] { + if yyq4387[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("conditions")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.Conditions == nil { r.EncodeNil() } else { - yym4316 := z.EncBinary() - _ = yym4316 + yym4399 := z.EncBinary() + _ = yym4399 if false { } else { h.encSliceComponentCondition(([]ComponentCondition)(x.Conditions), e) @@ -53857,7 +54937,7 @@ func (x *ComponentStatus) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr4304 || yy2arr4304 { + if yyr4387 || yy2arr4387 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -53870,25 +54950,25 @@ func (x *ComponentStatus) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym4317 := z.DecBinary() - _ = yym4317 + yym4400 := z.DecBinary() + _ = yym4400 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct4318 := r.ContainerType() - if yyct4318 == codecSelferValueTypeMap1234 { - yyl4318 := r.ReadMapStart() - if yyl4318 == 0 { + yyct4401 := r.ContainerType() + if yyct4401 == codecSelferValueTypeMap1234 { + yyl4401 := r.ReadMapStart() + if yyl4401 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl4318, d) + x.codecDecodeSelfFromMap(yyl4401, d) } - } else if yyct4318 == codecSelferValueTypeArray1234 { - yyl4318 := r.ReadArrayStart() - if yyl4318 == 0 { + } else if yyct4401 == codecSelferValueTypeArray1234 { + yyl4401 := r.ReadArrayStart() + if yyl4401 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl4318, d) + x.codecDecodeSelfFromArray(yyl4401, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -53900,12 +54980,12 @@ func (x *ComponentStatus) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys4319Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys4319Slc - var yyhl4319 bool = l >= 0 - for yyj4319 := 0; ; yyj4319++ { - if yyhl4319 { - if yyj4319 >= l { + var yys4402Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys4402Slc + var yyhl4402 bool = l >= 0 + for yyj4402 := 0; ; yyj4402++ { + if yyhl4402 { + if yyj4402 >= l { break } } else { @@ -53914,10 +54994,10 @@ func (x *ComponentStatus) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys4319Slc = r.DecodeBytes(yys4319Slc, true, true) - yys4319 := string(yys4319Slc) + yys4402Slc = r.DecodeBytes(yys4402Slc, true, true) + yys4402 := string(yys4402Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys4319 { + switch yys4402 { case "kind": if r.TryDecodeAsNil() { x.Kind = "" @@ -53934,25 +55014,25 @@ func (x *ComponentStatus) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.ObjectMeta = ObjectMeta{} } else { - yyv4322 := &x.ObjectMeta - yyv4322.CodecDecodeSelf(d) + yyv4405 := &x.ObjectMeta + yyv4405.CodecDecodeSelf(d) } case "conditions": if r.TryDecodeAsNil() { x.Conditions = nil } else { - yyv4323 := &x.Conditions - yym4324 := z.DecBinary() - _ = yym4324 + yyv4406 := &x.Conditions + yym4407 := z.DecBinary() + _ = yym4407 if false { } else { - h.decSliceComponentCondition((*[]ComponentCondition)(yyv4323), d) + h.decSliceComponentCondition((*[]ComponentCondition)(yyv4406), d) } } default: - z.DecStructFieldNotFound(-1, yys4319) - } // end switch yys4319 - } // end for yyj4319 + z.DecStructFieldNotFound(-1, yys4402) + } // end switch yys4402 + } // end for yyj4402 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -53960,16 +55040,16 @@ func (x *ComponentStatus) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj4325 int - var yyb4325 bool - var yyhl4325 bool = l >= 0 - yyj4325++ - if yyhl4325 { - yyb4325 = yyj4325 > l + var yyj4408 int + var yyb4408 bool + var yyhl4408 bool = l >= 0 + yyj4408++ + if yyhl4408 { + yyb4408 = yyj4408 > l } else { - yyb4325 = r.CheckBreak() + yyb4408 = r.CheckBreak() } - if yyb4325 { + if yyb4408 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -53979,13 +55059,13 @@ func (x *ComponentStatus) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) } else { x.Kind = string(r.DecodeString()) } - yyj4325++ - if yyhl4325 { - yyb4325 = yyj4325 > l + yyj4408++ + if yyhl4408 { + yyb4408 = yyj4408 > l } else { - yyb4325 = r.CheckBreak() + yyb4408 = r.CheckBreak() } - if yyb4325 { + if yyb4408 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -53995,13 +55075,13 @@ func (x *ComponentStatus) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) } else { x.APIVersion = string(r.DecodeString()) } - yyj4325++ - if yyhl4325 { - yyb4325 = yyj4325 > l + yyj4408++ + if yyhl4408 { + yyb4408 = yyj4408 > l } else { - yyb4325 = r.CheckBreak() + yyb4408 = r.CheckBreak() } - if yyb4325 { + if yyb4408 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -54009,16 +55089,16 @@ func (x *ComponentStatus) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) if r.TryDecodeAsNil() { x.ObjectMeta = ObjectMeta{} } else { - yyv4328 := &x.ObjectMeta - yyv4328.CodecDecodeSelf(d) + yyv4411 := &x.ObjectMeta + yyv4411.CodecDecodeSelf(d) } - yyj4325++ - if yyhl4325 { - yyb4325 = yyj4325 > l + yyj4408++ + if yyhl4408 { + yyb4408 = yyj4408 > l } else { - yyb4325 = r.CheckBreak() + yyb4408 = r.CheckBreak() } - if yyb4325 { + if yyb4408 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -54026,26 +55106,26 @@ func (x *ComponentStatus) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) if r.TryDecodeAsNil() { x.Conditions = nil } else { - yyv4329 := &x.Conditions - yym4330 := z.DecBinary() - _ = yym4330 + yyv4412 := &x.Conditions + yym4413 := z.DecBinary() + _ = yym4413 if false { } else { - h.decSliceComponentCondition((*[]ComponentCondition)(yyv4329), d) + h.decSliceComponentCondition((*[]ComponentCondition)(yyv4412), d) } } for { - yyj4325++ - if yyhl4325 { - yyb4325 = yyj4325 > l + yyj4408++ + if yyhl4408 { + yyb4408 = yyj4408 > l } else { - yyb4325 = r.CheckBreak() + yyb4408 = r.CheckBreak() } - if yyb4325 { + if yyb4408 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj4325-1, "") + z.DecStructFieldNotFound(yyj4408-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -54057,37 +55137,37 @@ func (x *ComponentStatusList) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym4331 := z.EncBinary() - _ = yym4331 + yym4414 := z.EncBinary() + _ = yym4414 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep4332 := !z.EncBinary() - yy2arr4332 := z.EncBasicHandle().StructToArray - var yyq4332 [4]bool - _, _, _ = yysep4332, yyq4332, yy2arr4332 - const yyr4332 bool = false - yyq4332[0] = x.Kind != "" - yyq4332[1] = x.APIVersion != "" - yyq4332[2] = true - var yynn4332 int - if yyr4332 || yy2arr4332 { + yysep4415 := !z.EncBinary() + yy2arr4415 := z.EncBasicHandle().StructToArray + var yyq4415 [4]bool + _, _, _ = yysep4415, yyq4415, yy2arr4415 + const yyr4415 bool = false + yyq4415[0] = x.Kind != "" + yyq4415[1] = x.APIVersion != "" + yyq4415[2] = true + var yynn4415 int + if yyr4415 || yy2arr4415 { r.EncodeArrayStart(4) } else { - yynn4332 = 1 - for _, b := range yyq4332 { + yynn4415 = 1 + for _, b := range yyq4415 { if b { - yynn4332++ + yynn4415++ } } - r.EncodeMapStart(yynn4332) - yynn4332 = 0 + r.EncodeMapStart(yynn4415) + yynn4415 = 0 } - if yyr4332 || yy2arr4332 { + if yyr4415 || yy2arr4415 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq4332[0] { - yym4334 := z.EncBinary() - _ = yym4334 + if yyq4415[0] { + yym4417 := z.EncBinary() + _ = yym4417 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) @@ -54096,23 +55176,23 @@ func (x *ComponentStatusList) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq4332[0] { + if yyq4415[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym4335 := z.EncBinary() - _ = yym4335 + yym4418 := z.EncBinary() + _ = yym4418 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } - if yyr4332 || yy2arr4332 { + if yyr4415 || yy2arr4415 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq4332[1] { - yym4337 := z.EncBinary() - _ = yym4337 + if yyq4415[1] { + yym4420 := z.EncBinary() + _ = yym4420 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) @@ -54121,54 +55201,54 @@ func (x *ComponentStatusList) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq4332[1] { + if yyq4415[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym4338 := z.EncBinary() - _ = yym4338 + yym4421 := z.EncBinary() + _ = yym4421 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } - if yyr4332 || yy2arr4332 { + if yyr4415 || yy2arr4415 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq4332[2] { - yy4340 := &x.ListMeta - yym4341 := z.EncBinary() - _ = yym4341 + if yyq4415[2] { + yy4423 := &x.ListMeta + yym4424 := z.EncBinary() + _ = yym4424 if false { - } else if z.HasExtensions() && z.EncExt(yy4340) { + } else if z.HasExtensions() && z.EncExt(yy4423) { } else { - z.EncFallback(yy4340) + z.EncFallback(yy4423) } } else { r.EncodeNil() } } else { - if yyq4332[2] { + if yyq4415[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy4342 := &x.ListMeta - yym4343 := z.EncBinary() - _ = yym4343 + yy4425 := &x.ListMeta + yym4426 := z.EncBinary() + _ = yym4426 if false { - } else if z.HasExtensions() && z.EncExt(yy4342) { + } else if z.HasExtensions() && z.EncExt(yy4425) { } else { - z.EncFallback(yy4342) + z.EncFallback(yy4425) } } } - if yyr4332 || yy2arr4332 { + if yyr4415 || yy2arr4415 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.Items == nil { r.EncodeNil() } else { - yym4345 := z.EncBinary() - _ = yym4345 + yym4428 := z.EncBinary() + _ = yym4428 if false { } else { h.encSliceComponentStatus(([]ComponentStatus)(x.Items), e) @@ -54181,15 +55261,15 @@ func (x *ComponentStatusList) CodecEncodeSelf(e *codec1978.Encoder) { if x.Items == nil { r.EncodeNil() } else { - yym4346 := z.EncBinary() - _ = yym4346 + yym4429 := z.EncBinary() + _ = yym4429 if false { } else { h.encSliceComponentStatus(([]ComponentStatus)(x.Items), e) } } } - if yyr4332 || yy2arr4332 { + if yyr4415 || yy2arr4415 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -54202,25 +55282,25 @@ func (x *ComponentStatusList) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym4347 := z.DecBinary() - _ = yym4347 + yym4430 := z.DecBinary() + _ = yym4430 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct4348 := r.ContainerType() - if yyct4348 == codecSelferValueTypeMap1234 { - yyl4348 := r.ReadMapStart() - if yyl4348 == 0 { + yyct4431 := r.ContainerType() + if yyct4431 == codecSelferValueTypeMap1234 { + yyl4431 := r.ReadMapStart() + if yyl4431 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl4348, d) + x.codecDecodeSelfFromMap(yyl4431, d) } - } else if yyct4348 == codecSelferValueTypeArray1234 { - yyl4348 := r.ReadArrayStart() - if yyl4348 == 0 { + } else if yyct4431 == codecSelferValueTypeArray1234 { + yyl4431 := r.ReadArrayStart() + if yyl4431 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl4348, d) + x.codecDecodeSelfFromArray(yyl4431, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -54232,12 +55312,12 @@ func (x *ComponentStatusList) codecDecodeSelfFromMap(l int, d *codec1978.Decoder var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys4349Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys4349Slc - var yyhl4349 bool = l >= 0 - for yyj4349 := 0; ; yyj4349++ { - if yyhl4349 { - if yyj4349 >= l { + var yys4432Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys4432Slc + var yyhl4432 bool = l >= 0 + for yyj4432 := 0; ; yyj4432++ { + if yyhl4432 { + if yyj4432 >= l { break } } else { @@ -54246,10 +55326,10 @@ func (x *ComponentStatusList) codecDecodeSelfFromMap(l int, d *codec1978.Decoder } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys4349Slc = r.DecodeBytes(yys4349Slc, true, true) - yys4349 := string(yys4349Slc) + yys4432Slc = r.DecodeBytes(yys4432Slc, true, true) + yys4432 := string(yys4432Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys4349 { + switch yys4432 { case "kind": if r.TryDecodeAsNil() { x.Kind = "" @@ -54266,31 +55346,31 @@ func (x *ComponentStatusList) codecDecodeSelfFromMap(l int, d *codec1978.Decoder if r.TryDecodeAsNil() { x.ListMeta = pkg2_unversioned.ListMeta{} } else { - yyv4352 := &x.ListMeta - yym4353 := z.DecBinary() - _ = yym4353 + yyv4435 := &x.ListMeta + yym4436 := z.DecBinary() + _ = yym4436 if false { - } else if z.HasExtensions() && z.DecExt(yyv4352) { + } else if z.HasExtensions() && z.DecExt(yyv4435) { } else { - z.DecFallback(yyv4352, false) + z.DecFallback(yyv4435, false) } } case "items": if r.TryDecodeAsNil() { x.Items = nil } else { - yyv4354 := &x.Items - yym4355 := z.DecBinary() - _ = yym4355 + yyv4437 := &x.Items + yym4438 := z.DecBinary() + _ = yym4438 if false { } else { - h.decSliceComponentStatus((*[]ComponentStatus)(yyv4354), d) + h.decSliceComponentStatus((*[]ComponentStatus)(yyv4437), d) } } default: - z.DecStructFieldNotFound(-1, yys4349) - } // end switch yys4349 - } // end for yyj4349 + z.DecStructFieldNotFound(-1, yys4432) + } // end switch yys4432 + } // end for yyj4432 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -54298,16 +55378,16 @@ func (x *ComponentStatusList) codecDecodeSelfFromArray(l int, d *codec1978.Decod var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj4356 int - var yyb4356 bool - var yyhl4356 bool = l >= 0 - yyj4356++ - if yyhl4356 { - yyb4356 = yyj4356 > l + var yyj4439 int + var yyb4439 bool + var yyhl4439 bool = l >= 0 + yyj4439++ + if yyhl4439 { + yyb4439 = yyj4439 > l } else { - yyb4356 = r.CheckBreak() + yyb4439 = r.CheckBreak() } - if yyb4356 { + if yyb4439 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -54317,13 +55397,13 @@ func (x *ComponentStatusList) codecDecodeSelfFromArray(l int, d *codec1978.Decod } else { x.Kind = string(r.DecodeString()) } - yyj4356++ - if yyhl4356 { - yyb4356 = yyj4356 > l + yyj4439++ + if yyhl4439 { + yyb4439 = yyj4439 > l } else { - yyb4356 = r.CheckBreak() + yyb4439 = r.CheckBreak() } - if yyb4356 { + if yyb4439 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -54333,13 +55413,13 @@ func (x *ComponentStatusList) codecDecodeSelfFromArray(l int, d *codec1978.Decod } else { x.APIVersion = string(r.DecodeString()) } - yyj4356++ - if yyhl4356 { - yyb4356 = yyj4356 > l + yyj4439++ + if yyhl4439 { + yyb4439 = yyj4439 > l } else { - yyb4356 = r.CheckBreak() + yyb4439 = r.CheckBreak() } - if yyb4356 { + if yyb4439 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -54347,22 +55427,22 @@ func (x *ComponentStatusList) codecDecodeSelfFromArray(l int, d *codec1978.Decod if r.TryDecodeAsNil() { x.ListMeta = pkg2_unversioned.ListMeta{} } else { - yyv4359 := &x.ListMeta - yym4360 := z.DecBinary() - _ = yym4360 + yyv4442 := &x.ListMeta + yym4443 := z.DecBinary() + _ = yym4443 if false { - } else if z.HasExtensions() && z.DecExt(yyv4359) { + } else if z.HasExtensions() && z.DecExt(yyv4442) { } else { - z.DecFallback(yyv4359, false) + z.DecFallback(yyv4442, false) } } - yyj4356++ - if yyhl4356 { - yyb4356 = yyj4356 > l + yyj4439++ + if yyhl4439 { + yyb4439 = yyj4439 > l } else { - yyb4356 = r.CheckBreak() + yyb4439 = r.CheckBreak() } - if yyb4356 { + if yyb4439 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -54370,26 +55450,26 @@ func (x *ComponentStatusList) codecDecodeSelfFromArray(l int, d *codec1978.Decod if r.TryDecodeAsNil() { x.Items = nil } else { - yyv4361 := &x.Items - yym4362 := z.DecBinary() - _ = yym4362 + yyv4444 := &x.Items + yym4445 := z.DecBinary() + _ = yym4445 if false { } else { - h.decSliceComponentStatus((*[]ComponentStatus)(yyv4361), d) + h.decSliceComponentStatus((*[]ComponentStatus)(yyv4444), d) } } for { - yyj4356++ - if yyhl4356 { - yyb4356 = yyj4356 > l + yyj4439++ + if yyhl4439 { + yyb4439 = yyj4439 > l } else { - yyb4356 = r.CheckBreak() + yyb4439 = r.CheckBreak() } - if yyb4356 { + if yyb4439 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj4356-1, "") + z.DecStructFieldNotFound(yyj4439-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -54401,39 +55481,39 @@ func (x *DownwardAPIVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym4363 := z.EncBinary() - _ = yym4363 + yym4446 := z.EncBinary() + _ = yym4446 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep4364 := !z.EncBinary() - yy2arr4364 := z.EncBasicHandle().StructToArray - var yyq4364 [2]bool - _, _, _ = yysep4364, yyq4364, yy2arr4364 - const yyr4364 bool = false - yyq4364[0] = len(x.Items) != 0 - yyq4364[1] = x.DefaultMode != nil - var yynn4364 int - if yyr4364 || yy2arr4364 { + yysep4447 := !z.EncBinary() + yy2arr4447 := z.EncBasicHandle().StructToArray + var yyq4447 [2]bool + _, _, _ = yysep4447, yyq4447, yy2arr4447 + const yyr4447 bool = false + yyq4447[0] = len(x.Items) != 0 + yyq4447[1] = x.DefaultMode != nil + var yynn4447 int + if yyr4447 || yy2arr4447 { r.EncodeArrayStart(2) } else { - yynn4364 = 0 - for _, b := range yyq4364 { + yynn4447 = 0 + for _, b := range yyq4447 { if b { - yynn4364++ + yynn4447++ } } - r.EncodeMapStart(yynn4364) - yynn4364 = 0 + r.EncodeMapStart(yynn4447) + yynn4447 = 0 } - if yyr4364 || yy2arr4364 { + if yyr4447 || yy2arr4447 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq4364[0] { + if yyq4447[0] { if x.Items == nil { r.EncodeNil() } else { - yym4366 := z.EncBinary() - _ = yym4366 + yym4449 := z.EncBinary() + _ = yym4449 if false { } else { h.encSliceDownwardAPIVolumeFile(([]DownwardAPIVolumeFile)(x.Items), e) @@ -54443,15 +55523,15 @@ func (x *DownwardAPIVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq4364[0] { + if yyq4447[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("items")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.Items == nil { r.EncodeNil() } else { - yym4367 := z.EncBinary() - _ = yym4367 + yym4450 := z.EncBinary() + _ = yym4450 if false { } else { h.encSliceDownwardAPIVolumeFile(([]DownwardAPIVolumeFile)(x.Items), e) @@ -54459,42 +55539,42 @@ func (x *DownwardAPIVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr4364 || yy2arr4364 { + if yyr4447 || yy2arr4447 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq4364[1] { + if yyq4447[1] { if x.DefaultMode == nil { r.EncodeNil() } else { - yy4369 := *x.DefaultMode - yym4370 := z.EncBinary() - _ = yym4370 + yy4452 := *x.DefaultMode + yym4453 := z.EncBinary() + _ = yym4453 if false { } else { - r.EncodeInt(int64(yy4369)) + r.EncodeInt(int64(yy4452)) } } } else { r.EncodeNil() } } else { - if yyq4364[1] { + if yyq4447[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 + yy4454 := *x.DefaultMode + yym4455 := z.EncBinary() + _ = yym4455 if false { } else { - r.EncodeInt(int64(yy4371)) + r.EncodeInt(int64(yy4454)) } } } } - if yyr4364 || yy2arr4364 { + if yyr4447 || yy2arr4447 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -54507,25 +55587,25 @@ func (x *DownwardAPIVolumeSource) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym4373 := z.DecBinary() - _ = yym4373 + yym4456 := z.DecBinary() + _ = yym4456 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct4374 := r.ContainerType() - if yyct4374 == codecSelferValueTypeMap1234 { - yyl4374 := r.ReadMapStart() - if yyl4374 == 0 { + yyct4457 := r.ContainerType() + if yyct4457 == codecSelferValueTypeMap1234 { + yyl4457 := r.ReadMapStart() + if yyl4457 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl4374, d) + x.codecDecodeSelfFromMap(yyl4457, d) } - } else if yyct4374 == codecSelferValueTypeArray1234 { - yyl4374 := r.ReadArrayStart() - if yyl4374 == 0 { + } else if yyct4457 == codecSelferValueTypeArray1234 { + yyl4457 := r.ReadArrayStart() + if yyl4457 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl4374, d) + x.codecDecodeSelfFromArray(yyl4457, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -54537,12 +55617,12 @@ func (x *DownwardAPIVolumeSource) codecDecodeSelfFromMap(l int, d *codec1978.Dec var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys4375Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys4375Slc - var yyhl4375 bool = l >= 0 - for yyj4375 := 0; ; yyj4375++ { - if yyhl4375 { - if yyj4375 >= l { + var yys4458Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys4458Slc + var yyhl4458 bool = l >= 0 + for yyj4458 := 0; ; yyj4458++ { + if yyhl4458 { + if yyj4458 >= l { break } } else { @@ -54551,20 +55631,20 @@ func (x *DownwardAPIVolumeSource) codecDecodeSelfFromMap(l int, d *codec1978.Dec } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys4375Slc = r.DecodeBytes(yys4375Slc, true, true) - yys4375 := string(yys4375Slc) + yys4458Slc = r.DecodeBytes(yys4458Slc, true, true) + yys4458 := string(yys4458Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys4375 { + switch yys4458 { case "items": if r.TryDecodeAsNil() { x.Items = nil } else { - yyv4376 := &x.Items - yym4377 := z.DecBinary() - _ = yym4377 + yyv4459 := &x.Items + yym4460 := z.DecBinary() + _ = yym4460 if false { } else { - h.decSliceDownwardAPIVolumeFile((*[]DownwardAPIVolumeFile)(yyv4376), d) + h.decSliceDownwardAPIVolumeFile((*[]DownwardAPIVolumeFile)(yyv4459), d) } } case "defaultMode": @@ -54576,17 +55656,17 @@ func (x *DownwardAPIVolumeSource) codecDecodeSelfFromMap(l int, d *codec1978.Dec if x.DefaultMode == nil { x.DefaultMode = new(int32) } - yym4379 := z.DecBinary() - _ = yym4379 + yym4462 := z.DecBinary() + _ = yym4462 if false { } else { *((*int32)(x.DefaultMode)) = int32(r.DecodeInt(32)) } } default: - z.DecStructFieldNotFound(-1, yys4375) - } // end switch yys4375 - } // end for yyj4375 + z.DecStructFieldNotFound(-1, yys4458) + } // end switch yys4458 + } // end for yyj4458 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -54594,16 +55674,16 @@ func (x *DownwardAPIVolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.D var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj4380 int - var yyb4380 bool - var yyhl4380 bool = l >= 0 - yyj4380++ - if yyhl4380 { - yyb4380 = yyj4380 > l + var yyj4463 int + var yyb4463 bool + var yyhl4463 bool = l >= 0 + yyj4463++ + if yyhl4463 { + yyb4463 = yyj4463 > l } else { - yyb4380 = r.CheckBreak() + yyb4463 = r.CheckBreak() } - if yyb4380 { + if yyb4463 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -54611,21 +55691,21 @@ func (x *DownwardAPIVolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.D if r.TryDecodeAsNil() { x.Items = nil } else { - yyv4381 := &x.Items - yym4382 := z.DecBinary() - _ = yym4382 + yyv4464 := &x.Items + yym4465 := z.DecBinary() + _ = yym4465 if false { } else { - h.decSliceDownwardAPIVolumeFile((*[]DownwardAPIVolumeFile)(yyv4381), d) + h.decSliceDownwardAPIVolumeFile((*[]DownwardAPIVolumeFile)(yyv4464), d) } } - yyj4380++ - if yyhl4380 { - yyb4380 = yyj4380 > l + yyj4463++ + if yyhl4463 { + yyb4463 = yyj4463 > l } else { - yyb4380 = r.CheckBreak() + yyb4463 = r.CheckBreak() } - if yyb4380 { + if yyb4463 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -54638,25 +55718,25 @@ func (x *DownwardAPIVolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.D if x.DefaultMode == nil { x.DefaultMode = new(int32) } - yym4384 := z.DecBinary() - _ = yym4384 + yym4467 := z.DecBinary() + _ = yym4467 if false { } else { *((*int32)(x.DefaultMode)) = int32(r.DecodeInt(32)) } } for { - yyj4380++ - if yyhl4380 { - yyb4380 = yyj4380 > l + yyj4463++ + if yyhl4463 { + yyb4463 = yyj4463 > l } else { - yyb4380 = r.CheckBreak() + yyb4463 = r.CheckBreak() } - if yyb4380 { + if yyb4463 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj4380-1, "") + z.DecStructFieldNotFound(yyj4463-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -54668,36 +55748,36 @@ func (x *DownwardAPIVolumeFile) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym4385 := z.EncBinary() - _ = yym4385 + yym4468 := z.EncBinary() + _ = yym4468 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep4386 := !z.EncBinary() - yy2arr4386 := z.EncBasicHandle().StructToArray - var yyq4386 [4]bool - _, _, _ = yysep4386, yyq4386, yy2arr4386 - const yyr4386 bool = false - yyq4386[1] = x.FieldRef != nil - yyq4386[2] = x.ResourceFieldRef != nil - yyq4386[3] = x.Mode != nil - var yynn4386 int - if yyr4386 || yy2arr4386 { + yysep4469 := !z.EncBinary() + yy2arr4469 := z.EncBasicHandle().StructToArray + var yyq4469 [4]bool + _, _, _ = yysep4469, yyq4469, yy2arr4469 + const yyr4469 bool = false + yyq4469[1] = x.FieldRef != nil + yyq4469[2] = x.ResourceFieldRef != nil + yyq4469[3] = x.Mode != nil + var yynn4469 int + if yyr4469 || yy2arr4469 { r.EncodeArrayStart(4) } else { - yynn4386 = 1 - for _, b := range yyq4386 { + yynn4469 = 1 + for _, b := range yyq4469 { if b { - yynn4386++ + yynn4469++ } } - r.EncodeMapStart(yynn4386) - yynn4386 = 0 + r.EncodeMapStart(yynn4469) + yynn4469 = 0 } - if yyr4386 || yy2arr4386 { + if yyr4469 || yy2arr4469 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym4388 := z.EncBinary() - _ = yym4388 + yym4471 := z.EncBinary() + _ = yym4471 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Path)) @@ -54706,16 +55786,16 @@ func (x *DownwardAPIVolumeFile) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("path")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym4389 := z.EncBinary() - _ = yym4389 + yym4472 := z.EncBinary() + _ = yym4472 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Path)) } } - if yyr4386 || yy2arr4386 { + if yyr4469 || yy2arr4469 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq4386[1] { + if yyq4469[1] { if x.FieldRef == nil { r.EncodeNil() } else { @@ -54725,7 +55805,7 @@ func (x *DownwardAPIVolumeFile) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq4386[1] { + if yyq4469[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("fieldRef")) z.EncSendContainerState(codecSelfer_containerMapValue1234) @@ -54736,9 +55816,9 @@ func (x *DownwardAPIVolumeFile) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr4386 || yy2arr4386 { + if yyr4469 || yy2arr4469 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq4386[2] { + if yyq4469[2] { if x.ResourceFieldRef == nil { r.EncodeNil() } else { @@ -54748,7 +55828,7 @@ func (x *DownwardAPIVolumeFile) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq4386[2] { + if yyq4469[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("resourceFieldRef")) z.EncSendContainerState(codecSelfer_containerMapValue1234) @@ -54759,42 +55839,42 @@ func (x *DownwardAPIVolumeFile) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr4386 || yy2arr4386 { + if yyr4469 || yy2arr4469 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq4386[3] { + if yyq4469[3] { if x.Mode == nil { r.EncodeNil() } else { - yy4393 := *x.Mode - yym4394 := z.EncBinary() - _ = yym4394 + yy4476 := *x.Mode + yym4477 := z.EncBinary() + _ = yym4477 if false { } else { - r.EncodeInt(int64(yy4393)) + r.EncodeInt(int64(yy4476)) } } } else { r.EncodeNil() } } else { - if yyq4386[3] { + if yyq4469[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 + yy4478 := *x.Mode + yym4479 := z.EncBinary() + _ = yym4479 if false { } else { - r.EncodeInt(int64(yy4395)) + r.EncodeInt(int64(yy4478)) } } } } - if yyr4386 || yy2arr4386 { + if yyr4469 || yy2arr4469 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -54807,25 +55887,25 @@ func (x *DownwardAPIVolumeFile) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym4397 := z.DecBinary() - _ = yym4397 + yym4480 := z.DecBinary() + _ = yym4480 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct4398 := r.ContainerType() - if yyct4398 == codecSelferValueTypeMap1234 { - yyl4398 := r.ReadMapStart() - if yyl4398 == 0 { + yyct4481 := r.ContainerType() + if yyct4481 == codecSelferValueTypeMap1234 { + yyl4481 := r.ReadMapStart() + if yyl4481 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl4398, d) + x.codecDecodeSelfFromMap(yyl4481, d) } - } else if yyct4398 == codecSelferValueTypeArray1234 { - yyl4398 := r.ReadArrayStart() - if yyl4398 == 0 { + } else if yyct4481 == codecSelferValueTypeArray1234 { + yyl4481 := r.ReadArrayStart() + if yyl4481 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl4398, d) + x.codecDecodeSelfFromArray(yyl4481, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -54837,12 +55917,12 @@ func (x *DownwardAPIVolumeFile) codecDecodeSelfFromMap(l int, d *codec1978.Decod var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys4399Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys4399Slc - var yyhl4399 bool = l >= 0 - for yyj4399 := 0; ; yyj4399++ { - if yyhl4399 { - if yyj4399 >= l { + var yys4482Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys4482Slc + var yyhl4482 bool = l >= 0 + for yyj4482 := 0; ; yyj4482++ { + if yyhl4482 { + if yyj4482 >= l { break } } else { @@ -54851,10 +55931,10 @@ func (x *DownwardAPIVolumeFile) codecDecodeSelfFromMap(l int, d *codec1978.Decod } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys4399Slc = r.DecodeBytes(yys4399Slc, true, true) - yys4399 := string(yys4399Slc) + yys4482Slc = r.DecodeBytes(yys4482Slc, true, true) + yys4482 := string(yys4482Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys4399 { + switch yys4482 { case "path": if r.TryDecodeAsNil() { x.Path = "" @@ -54892,17 +55972,17 @@ func (x *DownwardAPIVolumeFile) codecDecodeSelfFromMap(l int, d *codec1978.Decod if x.Mode == nil { x.Mode = new(int32) } - yym4404 := z.DecBinary() - _ = yym4404 + yym4487 := z.DecBinary() + _ = yym4487 if false { } else { *((*int32)(x.Mode)) = int32(r.DecodeInt(32)) } } default: - z.DecStructFieldNotFound(-1, yys4399) - } // end switch yys4399 - } // end for yyj4399 + z.DecStructFieldNotFound(-1, yys4482) + } // end switch yys4482 + } // end for yyj4482 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -54910,16 +55990,16 @@ func (x *DownwardAPIVolumeFile) codecDecodeSelfFromArray(l int, d *codec1978.Dec var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj4405 int - var yyb4405 bool - var yyhl4405 bool = l >= 0 - yyj4405++ - if yyhl4405 { - yyb4405 = yyj4405 > l + var yyj4488 int + var yyb4488 bool + var yyhl4488 bool = l >= 0 + yyj4488++ + if yyhl4488 { + yyb4488 = yyj4488 > l } else { - yyb4405 = r.CheckBreak() + yyb4488 = r.CheckBreak() } - if yyb4405 { + if yyb4488 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -54929,13 +56009,13 @@ func (x *DownwardAPIVolumeFile) codecDecodeSelfFromArray(l int, d *codec1978.Dec } else { x.Path = string(r.DecodeString()) } - yyj4405++ - if yyhl4405 { - yyb4405 = yyj4405 > l + yyj4488++ + if yyhl4488 { + yyb4488 = yyj4488 > l } else { - yyb4405 = r.CheckBreak() + yyb4488 = r.CheckBreak() } - if yyb4405 { + if yyb4488 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -54950,13 +56030,13 @@ func (x *DownwardAPIVolumeFile) codecDecodeSelfFromArray(l int, d *codec1978.Dec } x.FieldRef.CodecDecodeSelf(d) } - yyj4405++ - if yyhl4405 { - yyb4405 = yyj4405 > l + yyj4488++ + if yyhl4488 { + yyb4488 = yyj4488 > l } else { - yyb4405 = r.CheckBreak() + yyb4488 = r.CheckBreak() } - if yyb4405 { + if yyb4488 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -54971,13 +56051,13 @@ func (x *DownwardAPIVolumeFile) codecDecodeSelfFromArray(l int, d *codec1978.Dec } x.ResourceFieldRef.CodecDecodeSelf(d) } - yyj4405++ - if yyhl4405 { - yyb4405 = yyj4405 > l + yyj4488++ + if yyhl4488 { + yyb4488 = yyj4488 > l } else { - yyb4405 = r.CheckBreak() + yyb4488 = r.CheckBreak() } - if yyb4405 { + if yyb4488 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -54990,25 +56070,25 @@ func (x *DownwardAPIVolumeFile) codecDecodeSelfFromArray(l int, d *codec1978.Dec if x.Mode == nil { x.Mode = new(int32) } - yym4410 := z.DecBinary() - _ = yym4410 + yym4493 := z.DecBinary() + _ = yym4493 if false { } else { *((*int32)(x.Mode)) = int32(r.DecodeInt(32)) } } for { - yyj4405++ - if yyhl4405 { - yyb4405 = yyj4405 > l + yyj4488++ + if yyhl4488 { + yyb4488 = yyj4488 > l } else { - yyb4405 = r.CheckBreak() + yyb4488 = r.CheckBreak() } - if yyb4405 { + if yyb4488 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj4405-1, "") + z.DecStructFieldNotFound(yyj4488-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -55020,38 +56100,38 @@ func (x *SecurityContext) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym4411 := z.EncBinary() - _ = yym4411 + yym4494 := z.EncBinary() + _ = yym4494 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep4412 := !z.EncBinary() - yy2arr4412 := z.EncBasicHandle().StructToArray - var yyq4412 [6]bool - _, _, _ = yysep4412, yyq4412, yy2arr4412 - const yyr4412 bool = false - yyq4412[0] = x.Capabilities != nil - yyq4412[1] = x.Privileged != nil - yyq4412[2] = x.SELinuxOptions != nil - yyq4412[3] = x.RunAsUser != nil - yyq4412[4] = x.RunAsNonRoot != nil - yyq4412[5] = x.ReadOnlyRootFilesystem != nil - var yynn4412 int - if yyr4412 || yy2arr4412 { + yysep4495 := !z.EncBinary() + yy2arr4495 := z.EncBasicHandle().StructToArray + var yyq4495 [6]bool + _, _, _ = yysep4495, yyq4495, yy2arr4495 + const yyr4495 bool = false + yyq4495[0] = x.Capabilities != nil + yyq4495[1] = x.Privileged != nil + yyq4495[2] = x.SELinuxOptions != nil + yyq4495[3] = x.RunAsUser != nil + yyq4495[4] = x.RunAsNonRoot != nil + yyq4495[5] = x.ReadOnlyRootFilesystem != nil + var yynn4495 int + if yyr4495 || yy2arr4495 { r.EncodeArrayStart(6) } else { - yynn4412 = 0 - for _, b := range yyq4412 { + yynn4495 = 0 + for _, b := range yyq4495 { if b { - yynn4412++ + yynn4495++ } } - r.EncodeMapStart(yynn4412) - yynn4412 = 0 + r.EncodeMapStart(yynn4495) + yynn4495 = 0 } - if yyr4412 || yy2arr4412 { + if yyr4495 || yy2arr4495 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq4412[0] { + if yyq4495[0] { if x.Capabilities == nil { r.EncodeNil() } else { @@ -55061,7 +56141,7 @@ func (x *SecurityContext) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq4412[0] { + if yyq4495[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("capabilities")) z.EncSendContainerState(codecSelfer_containerMapValue1234) @@ -55072,44 +56152,44 @@ func (x *SecurityContext) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr4412 || yy2arr4412 { + if yyr4495 || yy2arr4495 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq4412[1] { + if yyq4495[1] { if x.Privileged == nil { r.EncodeNil() } else { - yy4415 := *x.Privileged - yym4416 := z.EncBinary() - _ = yym4416 + yy4498 := *x.Privileged + yym4499 := z.EncBinary() + _ = yym4499 if false { } else { - r.EncodeBool(bool(yy4415)) + r.EncodeBool(bool(yy4498)) } } } else { r.EncodeNil() } } else { - if yyq4412[1] { + if yyq4495[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("privileged")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.Privileged == nil { r.EncodeNil() } else { - yy4417 := *x.Privileged - yym4418 := z.EncBinary() - _ = yym4418 + yy4500 := *x.Privileged + yym4501 := z.EncBinary() + _ = yym4501 if false { } else { - r.EncodeBool(bool(yy4417)) + r.EncodeBool(bool(yy4500)) } } } } - if yyr4412 || yy2arr4412 { + if yyr4495 || yy2arr4495 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq4412[2] { + if yyq4495[2] { if x.SELinuxOptions == nil { r.EncodeNil() } else { @@ -55119,7 +56199,7 @@ func (x *SecurityContext) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq4412[2] { + if yyq4495[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("seLinuxOptions")) z.EncSendContainerState(codecSelfer_containerMapValue1234) @@ -55130,112 +56210,112 @@ func (x *SecurityContext) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr4412 || yy2arr4412 { + if yyr4495 || yy2arr4495 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq4412[3] { + if yyq4495[3] { if x.RunAsUser == nil { r.EncodeNil() } else { - yy4421 := *x.RunAsUser - yym4422 := z.EncBinary() - _ = yym4422 + yy4504 := *x.RunAsUser + yym4505 := z.EncBinary() + _ = yym4505 if false { } else { - r.EncodeInt(int64(yy4421)) + r.EncodeInt(int64(yy4504)) } } } else { r.EncodeNil() } } else { - if yyq4412[3] { + if yyq4495[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("runAsUser")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.RunAsUser == nil { r.EncodeNil() } else { - yy4423 := *x.RunAsUser - yym4424 := z.EncBinary() - _ = yym4424 + yy4506 := *x.RunAsUser + yym4507 := z.EncBinary() + _ = yym4507 if false { } else { - r.EncodeInt(int64(yy4423)) + r.EncodeInt(int64(yy4506)) } } } } - if yyr4412 || yy2arr4412 { + if yyr4495 || yy2arr4495 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq4412[4] { + if yyq4495[4] { if x.RunAsNonRoot == nil { r.EncodeNil() } else { - yy4426 := *x.RunAsNonRoot - yym4427 := z.EncBinary() - _ = yym4427 + yy4509 := *x.RunAsNonRoot + yym4510 := z.EncBinary() + _ = yym4510 if false { } else { - r.EncodeBool(bool(yy4426)) + r.EncodeBool(bool(yy4509)) } } } else { r.EncodeNil() } } else { - if yyq4412[4] { + if yyq4495[4] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("runAsNonRoot")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.RunAsNonRoot == nil { r.EncodeNil() } else { - yy4428 := *x.RunAsNonRoot - yym4429 := z.EncBinary() - _ = yym4429 + yy4511 := *x.RunAsNonRoot + yym4512 := z.EncBinary() + _ = yym4512 if false { } else { - r.EncodeBool(bool(yy4428)) + r.EncodeBool(bool(yy4511)) } } } } - if yyr4412 || yy2arr4412 { + if yyr4495 || yy2arr4495 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq4412[5] { + if yyq4495[5] { if x.ReadOnlyRootFilesystem == nil { r.EncodeNil() } else { - yy4431 := *x.ReadOnlyRootFilesystem - yym4432 := z.EncBinary() - _ = yym4432 + yy4514 := *x.ReadOnlyRootFilesystem + yym4515 := z.EncBinary() + _ = yym4515 if false { } else { - r.EncodeBool(bool(yy4431)) + r.EncodeBool(bool(yy4514)) } } } else { r.EncodeNil() } } else { - if yyq4412[5] { + if yyq4495[5] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("readOnlyRootFilesystem")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.ReadOnlyRootFilesystem == nil { r.EncodeNil() } else { - yy4433 := *x.ReadOnlyRootFilesystem - yym4434 := z.EncBinary() - _ = yym4434 + yy4516 := *x.ReadOnlyRootFilesystem + yym4517 := z.EncBinary() + _ = yym4517 if false { } else { - r.EncodeBool(bool(yy4433)) + r.EncodeBool(bool(yy4516)) } } } } - if yyr4412 || yy2arr4412 { + if yyr4495 || yy2arr4495 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -55248,25 +56328,25 @@ func (x *SecurityContext) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym4435 := z.DecBinary() - _ = yym4435 + yym4518 := z.DecBinary() + _ = yym4518 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct4436 := r.ContainerType() - if yyct4436 == codecSelferValueTypeMap1234 { - yyl4436 := r.ReadMapStart() - if yyl4436 == 0 { + yyct4519 := r.ContainerType() + if yyct4519 == codecSelferValueTypeMap1234 { + yyl4519 := r.ReadMapStart() + if yyl4519 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl4436, d) + x.codecDecodeSelfFromMap(yyl4519, d) } - } else if yyct4436 == codecSelferValueTypeArray1234 { - yyl4436 := r.ReadArrayStart() - if yyl4436 == 0 { + } else if yyct4519 == codecSelferValueTypeArray1234 { + yyl4519 := r.ReadArrayStart() + if yyl4519 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl4436, d) + x.codecDecodeSelfFromArray(yyl4519, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -55278,12 +56358,12 @@ func (x *SecurityContext) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys4437Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys4437Slc - var yyhl4437 bool = l >= 0 - for yyj4437 := 0; ; yyj4437++ { - if yyhl4437 { - if yyj4437 >= l { + var yys4520Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys4520Slc + var yyhl4520 bool = l >= 0 + for yyj4520 := 0; ; yyj4520++ { + if yyhl4520 { + if yyj4520 >= l { break } } else { @@ -55292,10 +56372,10 @@ func (x *SecurityContext) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys4437Slc = r.DecodeBytes(yys4437Slc, true, true) - yys4437 := string(yys4437Slc) + yys4520Slc = r.DecodeBytes(yys4520Slc, true, true) + yys4520 := string(yys4520Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys4437 { + switch yys4520 { case "capabilities": if r.TryDecodeAsNil() { if x.Capabilities != nil { @@ -55316,8 +56396,8 @@ func (x *SecurityContext) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { if x.Privileged == nil { x.Privileged = new(bool) } - yym4440 := z.DecBinary() - _ = yym4440 + yym4523 := z.DecBinary() + _ = yym4523 if false { } else { *((*bool)(x.Privileged)) = r.DecodeBool() @@ -55343,8 +56423,8 @@ func (x *SecurityContext) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { if x.RunAsUser == nil { x.RunAsUser = new(int64) } - yym4443 := z.DecBinary() - _ = yym4443 + yym4526 := z.DecBinary() + _ = yym4526 if false { } else { *((*int64)(x.RunAsUser)) = int64(r.DecodeInt(64)) @@ -55359,8 +56439,8 @@ func (x *SecurityContext) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { if x.RunAsNonRoot == nil { x.RunAsNonRoot = new(bool) } - yym4445 := z.DecBinary() - _ = yym4445 + yym4528 := z.DecBinary() + _ = yym4528 if false { } else { *((*bool)(x.RunAsNonRoot)) = r.DecodeBool() @@ -55375,17 +56455,17 @@ func (x *SecurityContext) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { if x.ReadOnlyRootFilesystem == nil { x.ReadOnlyRootFilesystem = new(bool) } - yym4447 := z.DecBinary() - _ = yym4447 + yym4530 := z.DecBinary() + _ = yym4530 if false { } else { *((*bool)(x.ReadOnlyRootFilesystem)) = r.DecodeBool() } } default: - z.DecStructFieldNotFound(-1, yys4437) - } // end switch yys4437 - } // end for yyj4437 + z.DecStructFieldNotFound(-1, yys4520) + } // end switch yys4520 + } // end for yyj4520 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -55393,16 +56473,16 @@ func (x *SecurityContext) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj4448 int - var yyb4448 bool - var yyhl4448 bool = l >= 0 - yyj4448++ - if yyhl4448 { - yyb4448 = yyj4448 > l + var yyj4531 int + var yyb4531 bool + var yyhl4531 bool = l >= 0 + yyj4531++ + if yyhl4531 { + yyb4531 = yyj4531 > l } else { - yyb4448 = r.CheckBreak() + yyb4531 = r.CheckBreak() } - if yyb4448 { + if yyb4531 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -55417,13 +56497,13 @@ func (x *SecurityContext) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) } x.Capabilities.CodecDecodeSelf(d) } - yyj4448++ - if yyhl4448 { - yyb4448 = yyj4448 > l + yyj4531++ + if yyhl4531 { + yyb4531 = yyj4531 > l } else { - yyb4448 = r.CheckBreak() + yyb4531 = r.CheckBreak() } - if yyb4448 { + if yyb4531 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -55436,20 +56516,20 @@ func (x *SecurityContext) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) if x.Privileged == nil { x.Privileged = new(bool) } - yym4451 := z.DecBinary() - _ = yym4451 + yym4534 := z.DecBinary() + _ = yym4534 if false { } else { *((*bool)(x.Privileged)) = r.DecodeBool() } } - yyj4448++ - if yyhl4448 { - yyb4448 = yyj4448 > l + yyj4531++ + if yyhl4531 { + yyb4531 = yyj4531 > l } else { - yyb4448 = r.CheckBreak() + yyb4531 = r.CheckBreak() } - if yyb4448 { + if yyb4531 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -55464,13 +56544,13 @@ func (x *SecurityContext) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) } x.SELinuxOptions.CodecDecodeSelf(d) } - yyj4448++ - if yyhl4448 { - yyb4448 = yyj4448 > l + yyj4531++ + if yyhl4531 { + yyb4531 = yyj4531 > l } else { - yyb4448 = r.CheckBreak() + yyb4531 = r.CheckBreak() } - if yyb4448 { + if yyb4531 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -55483,20 +56563,20 @@ func (x *SecurityContext) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) if x.RunAsUser == nil { x.RunAsUser = new(int64) } - yym4454 := z.DecBinary() - _ = yym4454 + yym4537 := z.DecBinary() + _ = yym4537 if false { } else { *((*int64)(x.RunAsUser)) = int64(r.DecodeInt(64)) } } - yyj4448++ - if yyhl4448 { - yyb4448 = yyj4448 > l + yyj4531++ + if yyhl4531 { + yyb4531 = yyj4531 > l } else { - yyb4448 = r.CheckBreak() + yyb4531 = r.CheckBreak() } - if yyb4448 { + if yyb4531 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -55509,20 +56589,20 @@ func (x *SecurityContext) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) if x.RunAsNonRoot == nil { x.RunAsNonRoot = new(bool) } - yym4456 := z.DecBinary() - _ = yym4456 + yym4539 := z.DecBinary() + _ = yym4539 if false { } else { *((*bool)(x.RunAsNonRoot)) = r.DecodeBool() } } - yyj4448++ - if yyhl4448 { - yyb4448 = yyj4448 > l + yyj4531++ + if yyhl4531 { + yyb4531 = yyj4531 > l } else { - yyb4448 = r.CheckBreak() + yyb4531 = r.CheckBreak() } - if yyb4448 { + if yyb4531 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -55535,25 +56615,25 @@ func (x *SecurityContext) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) if x.ReadOnlyRootFilesystem == nil { x.ReadOnlyRootFilesystem = new(bool) } - yym4458 := z.DecBinary() - _ = yym4458 + yym4541 := z.DecBinary() + _ = yym4541 if false { } else { *((*bool)(x.ReadOnlyRootFilesystem)) = r.DecodeBool() } } for { - yyj4448++ - if yyhl4448 { - yyb4448 = yyj4448 > l + yyj4531++ + if yyhl4531 { + yyb4531 = yyj4531 > l } else { - yyb4448 = r.CheckBreak() + yyb4531 = r.CheckBreak() } - if yyb4448 { + if yyb4531 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj4448-1, "") + z.DecStructFieldNotFound(yyj4531-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -55565,38 +56645,38 @@ func (x *SELinuxOptions) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym4459 := z.EncBinary() - _ = yym4459 + yym4542 := z.EncBinary() + _ = yym4542 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep4460 := !z.EncBinary() - yy2arr4460 := z.EncBasicHandle().StructToArray - var yyq4460 [4]bool - _, _, _ = yysep4460, yyq4460, yy2arr4460 - const yyr4460 bool = false - yyq4460[0] = x.User != "" - yyq4460[1] = x.Role != "" - yyq4460[2] = x.Type != "" - yyq4460[3] = x.Level != "" - var yynn4460 int - if yyr4460 || yy2arr4460 { + yysep4543 := !z.EncBinary() + yy2arr4543 := z.EncBasicHandle().StructToArray + var yyq4543 [4]bool + _, _, _ = yysep4543, yyq4543, yy2arr4543 + const yyr4543 bool = false + yyq4543[0] = x.User != "" + yyq4543[1] = x.Role != "" + yyq4543[2] = x.Type != "" + yyq4543[3] = x.Level != "" + var yynn4543 int + if yyr4543 || yy2arr4543 { r.EncodeArrayStart(4) } else { - yynn4460 = 0 - for _, b := range yyq4460 { + yynn4543 = 0 + for _, b := range yyq4543 { if b { - yynn4460++ + yynn4543++ } } - r.EncodeMapStart(yynn4460) - yynn4460 = 0 + r.EncodeMapStart(yynn4543) + yynn4543 = 0 } - if yyr4460 || yy2arr4460 { + if yyr4543 || yy2arr4543 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq4460[0] { - yym4462 := z.EncBinary() - _ = yym4462 + if yyq4543[0] { + yym4545 := z.EncBinary() + _ = yym4545 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.User)) @@ -55605,23 +56685,23 @@ func (x *SELinuxOptions) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq4460[0] { + if yyq4543[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("user")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym4463 := z.EncBinary() - _ = yym4463 + yym4546 := z.EncBinary() + _ = yym4546 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.User)) } } } - if yyr4460 || yy2arr4460 { + if yyr4543 || yy2arr4543 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq4460[1] { - yym4465 := z.EncBinary() - _ = yym4465 + if yyq4543[1] { + yym4548 := z.EncBinary() + _ = yym4548 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Role)) @@ -55630,23 +56710,23 @@ func (x *SELinuxOptions) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq4460[1] { + if yyq4543[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("role")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym4466 := z.EncBinary() - _ = yym4466 + yym4549 := z.EncBinary() + _ = yym4549 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Role)) } } } - if yyr4460 || yy2arr4460 { + if yyr4543 || yy2arr4543 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq4460[2] { - yym4468 := z.EncBinary() - _ = yym4468 + if yyq4543[2] { + yym4551 := z.EncBinary() + _ = yym4551 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Type)) @@ -55655,23 +56735,23 @@ func (x *SELinuxOptions) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq4460[2] { + if yyq4543[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("type")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym4469 := z.EncBinary() - _ = yym4469 + yym4552 := z.EncBinary() + _ = yym4552 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Type)) } } } - if yyr4460 || yy2arr4460 { + if yyr4543 || yy2arr4543 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq4460[3] { - yym4471 := z.EncBinary() - _ = yym4471 + if yyq4543[3] { + yym4554 := z.EncBinary() + _ = yym4554 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Level)) @@ -55680,19 +56760,19 @@ func (x *SELinuxOptions) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq4460[3] { + if yyq4543[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("level")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym4472 := z.EncBinary() - _ = yym4472 + yym4555 := z.EncBinary() + _ = yym4555 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Level)) } } } - if yyr4460 || yy2arr4460 { + if yyr4543 || yy2arr4543 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -55705,25 +56785,25 @@ func (x *SELinuxOptions) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym4473 := z.DecBinary() - _ = yym4473 + yym4556 := z.DecBinary() + _ = yym4556 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct4474 := r.ContainerType() - if yyct4474 == codecSelferValueTypeMap1234 { - yyl4474 := r.ReadMapStart() - if yyl4474 == 0 { + yyct4557 := r.ContainerType() + if yyct4557 == codecSelferValueTypeMap1234 { + yyl4557 := r.ReadMapStart() + if yyl4557 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl4474, d) + x.codecDecodeSelfFromMap(yyl4557, d) } - } else if yyct4474 == codecSelferValueTypeArray1234 { - yyl4474 := r.ReadArrayStart() - if yyl4474 == 0 { + } else if yyct4557 == codecSelferValueTypeArray1234 { + yyl4557 := r.ReadArrayStart() + if yyl4557 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl4474, d) + x.codecDecodeSelfFromArray(yyl4557, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -55735,12 +56815,12 @@ func (x *SELinuxOptions) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys4475Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys4475Slc - var yyhl4475 bool = l >= 0 - for yyj4475 := 0; ; yyj4475++ { - if yyhl4475 { - if yyj4475 >= l { + var yys4558Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys4558Slc + var yyhl4558 bool = l >= 0 + for yyj4558 := 0; ; yyj4558++ { + if yyhl4558 { + if yyj4558 >= l { break } } else { @@ -55749,10 +56829,10 @@ func (x *SELinuxOptions) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys4475Slc = r.DecodeBytes(yys4475Slc, true, true) - yys4475 := string(yys4475Slc) + yys4558Slc = r.DecodeBytes(yys4558Slc, true, true) + yys4558 := string(yys4558Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys4475 { + switch yys4558 { case "user": if r.TryDecodeAsNil() { x.User = "" @@ -55778,9 +56858,9 @@ func (x *SELinuxOptions) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { x.Level = string(r.DecodeString()) } default: - z.DecStructFieldNotFound(-1, yys4475) - } // end switch yys4475 - } // end for yyj4475 + z.DecStructFieldNotFound(-1, yys4558) + } // end switch yys4558 + } // end for yyj4558 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -55788,16 +56868,16 @@ func (x *SELinuxOptions) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj4480 int - var yyb4480 bool - var yyhl4480 bool = l >= 0 - yyj4480++ - if yyhl4480 { - yyb4480 = yyj4480 > l + var yyj4563 int + var yyb4563 bool + var yyhl4563 bool = l >= 0 + yyj4563++ + if yyhl4563 { + yyb4563 = yyj4563 > l } else { - yyb4480 = r.CheckBreak() + yyb4563 = r.CheckBreak() } - if yyb4480 { + if yyb4563 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -55807,13 +56887,13 @@ func (x *SELinuxOptions) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.User = string(r.DecodeString()) } - yyj4480++ - if yyhl4480 { - yyb4480 = yyj4480 > l + yyj4563++ + if yyhl4563 { + yyb4563 = yyj4563 > l } else { - yyb4480 = r.CheckBreak() + yyb4563 = r.CheckBreak() } - if yyb4480 { + if yyb4563 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -55823,13 +56903,13 @@ func (x *SELinuxOptions) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.Role = string(r.DecodeString()) } - yyj4480++ - if yyhl4480 { - yyb4480 = yyj4480 > l + yyj4563++ + if yyhl4563 { + yyb4563 = yyj4563 > l } else { - yyb4480 = r.CheckBreak() + yyb4563 = r.CheckBreak() } - if yyb4480 { + if yyb4563 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -55839,13 +56919,13 @@ func (x *SELinuxOptions) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.Type = string(r.DecodeString()) } - yyj4480++ - if yyhl4480 { - yyb4480 = yyj4480 > l + yyj4563++ + if yyhl4563 { + yyb4563 = yyj4563 > l } else { - yyb4480 = r.CheckBreak() + yyb4563 = r.CheckBreak() } - if yyb4480 { + if yyb4563 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -55856,17 +56936,17 @@ func (x *SELinuxOptions) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { x.Level = string(r.DecodeString()) } for { - yyj4480++ - if yyhl4480 { - yyb4480 = yyj4480 > l + yyj4563++ + if yyhl4563 { + yyb4563 = yyj4563 > l } else { - yyb4480 = r.CheckBreak() + yyb4563 = r.CheckBreak() } - if yyb4480 { + if yyb4563 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj4480-1, "") + z.DecStructFieldNotFound(yyj4563-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -55878,37 +56958,37 @@ func (x *RangeAllocation) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym4485 := z.EncBinary() - _ = yym4485 + yym4568 := z.EncBinary() + _ = yym4568 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - 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 { + yysep4569 := !z.EncBinary() + yy2arr4569 := z.EncBasicHandle().StructToArray + var yyq4569 [5]bool + _, _, _ = yysep4569, yyq4569, yy2arr4569 + const yyr4569 bool = false + yyq4569[0] = x.Kind != "" + yyq4569[1] = x.APIVersion != "" + yyq4569[2] = true + var yynn4569 int + if yyr4569 || yy2arr4569 { r.EncodeArrayStart(5) } else { - yynn4486 = 2 - for _, b := range yyq4486 { + yynn4569 = 2 + for _, b := range yyq4569 { if b { - yynn4486++ + yynn4569++ } } - r.EncodeMapStart(yynn4486) - yynn4486 = 0 + r.EncodeMapStart(yynn4569) + yynn4569 = 0 } - if yyr4486 || yy2arr4486 { + if yyr4569 || yy2arr4569 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq4486[0] { - yym4488 := z.EncBinary() - _ = yym4488 + if yyq4569[0] { + yym4571 := z.EncBinary() + _ = yym4571 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) @@ -55917,23 +56997,23 @@ func (x *RangeAllocation) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq4486[0] { + if yyq4569[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym4489 := z.EncBinary() - _ = yym4489 + yym4572 := z.EncBinary() + _ = yym4572 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } - if yyr4486 || yy2arr4486 { + if yyr4569 || yy2arr4569 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq4486[1] { - yym4491 := z.EncBinary() - _ = yym4491 + if yyq4569[1] { + yym4574 := z.EncBinary() + _ = yym4574 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) @@ -55942,39 +57022,39 @@ func (x *RangeAllocation) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq4486[1] { + if yyq4569[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym4492 := z.EncBinary() - _ = yym4492 + yym4575 := z.EncBinary() + _ = yym4575 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } - if yyr4486 || yy2arr4486 { + if yyr4569 || yy2arr4569 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq4486[2] { - yy4494 := &x.ObjectMeta - yy4494.CodecEncodeSelf(e) + if yyq4569[2] { + yy4577 := &x.ObjectMeta + yy4577.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { - if yyq4486[2] { + if yyq4569[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy4495 := &x.ObjectMeta - yy4495.CodecEncodeSelf(e) + yy4578 := &x.ObjectMeta + yy4578.CodecEncodeSelf(e) } } - if yyr4486 || yy2arr4486 { + if yyr4569 || yy2arr4569 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym4497 := z.EncBinary() - _ = yym4497 + yym4580 := z.EncBinary() + _ = yym4580 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Range)) @@ -55983,20 +57063,20 @@ func (x *RangeAllocation) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("range")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym4498 := z.EncBinary() - _ = yym4498 + yym4581 := z.EncBinary() + _ = yym4581 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Range)) } } - if yyr4486 || yy2arr4486 { + if yyr4569 || yy2arr4569 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.Data == nil { r.EncodeNil() } else { - yym4500 := z.EncBinary() - _ = yym4500 + yym4583 := z.EncBinary() + _ = yym4583 if false { } else { r.EncodeStringBytes(codecSelferC_RAW1234, []byte(x.Data)) @@ -56009,15 +57089,15 @@ func (x *RangeAllocation) CodecEncodeSelf(e *codec1978.Encoder) { if x.Data == nil { r.EncodeNil() } else { - yym4501 := z.EncBinary() - _ = yym4501 + yym4584 := z.EncBinary() + _ = yym4584 if false { } else { r.EncodeStringBytes(codecSelferC_RAW1234, []byte(x.Data)) } } } - if yyr4486 || yy2arr4486 { + if yyr4569 || yy2arr4569 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -56030,25 +57110,25 @@ func (x *RangeAllocation) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym4502 := z.DecBinary() - _ = yym4502 + yym4585 := z.DecBinary() + _ = yym4585 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct4503 := r.ContainerType() - if yyct4503 == codecSelferValueTypeMap1234 { - yyl4503 := r.ReadMapStart() - if yyl4503 == 0 { + yyct4586 := r.ContainerType() + if yyct4586 == codecSelferValueTypeMap1234 { + yyl4586 := r.ReadMapStart() + if yyl4586 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl4503, d) + x.codecDecodeSelfFromMap(yyl4586, d) } - } else if yyct4503 == codecSelferValueTypeArray1234 { - yyl4503 := r.ReadArrayStart() - if yyl4503 == 0 { + } else if yyct4586 == codecSelferValueTypeArray1234 { + yyl4586 := r.ReadArrayStart() + if yyl4586 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl4503, d) + x.codecDecodeSelfFromArray(yyl4586, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -56060,12 +57140,12 @@ func (x *RangeAllocation) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys4504Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys4504Slc - var yyhl4504 bool = l >= 0 - for yyj4504 := 0; ; yyj4504++ { - if yyhl4504 { - if yyj4504 >= l { + var yys4587Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys4587Slc + var yyhl4587 bool = l >= 0 + for yyj4587 := 0; ; yyj4587++ { + if yyhl4587 { + if yyj4587 >= l { break } } else { @@ -56074,10 +57154,10 @@ func (x *RangeAllocation) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys4504Slc = r.DecodeBytes(yys4504Slc, true, true) - yys4504 := string(yys4504Slc) + yys4587Slc = r.DecodeBytes(yys4587Slc, true, true) + yys4587 := string(yys4587Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys4504 { + switch yys4587 { case "kind": if r.TryDecodeAsNil() { x.Kind = "" @@ -56094,8 +57174,8 @@ func (x *RangeAllocation) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.ObjectMeta = ObjectMeta{} } else { - yyv4507 := &x.ObjectMeta - yyv4507.CodecDecodeSelf(d) + yyv4590 := &x.ObjectMeta + yyv4590.CodecDecodeSelf(d) } case "range": if r.TryDecodeAsNil() { @@ -56107,18 +57187,18 @@ func (x *RangeAllocation) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.Data = nil } else { - yyv4509 := &x.Data - yym4510 := z.DecBinary() - _ = yym4510 + yyv4592 := &x.Data + yym4593 := z.DecBinary() + _ = yym4593 if false { } else { - *yyv4509 = r.DecodeBytes(*(*[]byte)(yyv4509), false, false) + *yyv4592 = r.DecodeBytes(*(*[]byte)(yyv4592), false, false) } } default: - z.DecStructFieldNotFound(-1, yys4504) - } // end switch yys4504 - } // end for yyj4504 + z.DecStructFieldNotFound(-1, yys4587) + } // end switch yys4587 + } // end for yyj4587 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -56126,16 +57206,16 @@ func (x *RangeAllocation) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj4511 int - var yyb4511 bool - var yyhl4511 bool = l >= 0 - yyj4511++ - if yyhl4511 { - yyb4511 = yyj4511 > l + var yyj4594 int + var yyb4594 bool + var yyhl4594 bool = l >= 0 + yyj4594++ + if yyhl4594 { + yyb4594 = yyj4594 > l } else { - yyb4511 = r.CheckBreak() + yyb4594 = r.CheckBreak() } - if yyb4511 { + if yyb4594 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -56145,13 +57225,13 @@ func (x *RangeAllocation) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) } else { x.Kind = string(r.DecodeString()) } - yyj4511++ - if yyhl4511 { - yyb4511 = yyj4511 > l + yyj4594++ + if yyhl4594 { + yyb4594 = yyj4594 > l } else { - yyb4511 = r.CheckBreak() + yyb4594 = r.CheckBreak() } - if yyb4511 { + if yyb4594 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -56161,13 +57241,13 @@ func (x *RangeAllocation) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) } else { x.APIVersion = string(r.DecodeString()) } - yyj4511++ - if yyhl4511 { - yyb4511 = yyj4511 > l + yyj4594++ + if yyhl4594 { + yyb4594 = yyj4594 > l } else { - yyb4511 = r.CheckBreak() + yyb4594 = r.CheckBreak() } - if yyb4511 { + if yyb4594 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -56175,16 +57255,16 @@ func (x *RangeAllocation) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) if r.TryDecodeAsNil() { x.ObjectMeta = ObjectMeta{} } else { - yyv4514 := &x.ObjectMeta - yyv4514.CodecDecodeSelf(d) + yyv4597 := &x.ObjectMeta + yyv4597.CodecDecodeSelf(d) } - yyj4511++ - if yyhl4511 { - yyb4511 = yyj4511 > l + yyj4594++ + if yyhl4594 { + yyb4594 = yyj4594 > l } else { - yyb4511 = r.CheckBreak() + yyb4594 = r.CheckBreak() } - if yyb4511 { + if yyb4594 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -56194,13 +57274,13 @@ func (x *RangeAllocation) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) } else { x.Range = string(r.DecodeString()) } - yyj4511++ - if yyhl4511 { - yyb4511 = yyj4511 > l + yyj4594++ + if yyhl4594 { + yyb4594 = yyj4594 > l } else { - yyb4511 = r.CheckBreak() + yyb4594 = r.CheckBreak() } - if yyb4511 { + if yyb4594 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -56208,26 +57288,26 @@ func (x *RangeAllocation) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) if r.TryDecodeAsNil() { x.Data = nil } else { - yyv4516 := &x.Data - yym4517 := z.DecBinary() - _ = yym4517 + yyv4599 := &x.Data + yym4600 := z.DecBinary() + _ = yym4600 if false { } else { - *yyv4516 = r.DecodeBytes(*(*[]byte)(yyv4516), false, false) + *yyv4599 = r.DecodeBytes(*(*[]byte)(yyv4599), false, false) } } for { - yyj4511++ - if yyhl4511 { - yyb4511 = yyj4511 > l + yyj4594++ + if yyhl4594 { + yyb4594 = yyj4594 > l } else { - yyb4511 = r.CheckBreak() + yyb4594 = r.CheckBreak() } - if yyb4511 { + if yyb4594 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj4511-1, "") + z.DecStructFieldNotFound(yyj4594-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -56237,10 +57317,10 @@ func (x codecSelfer1234) encSliceOwnerReference(v []OwnerReference, e *codec1978 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r r.EncodeArrayStart(len(v)) - for _, yyv4518 := range v { + for _, yyv4601 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy4519 := &yyv4518 - yy4519.CodecEncodeSelf(e) + yy4602 := &yyv4601 + yy4602.CodecEncodeSelf(e) } z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -56250,83 +57330,83 @@ func (x codecSelfer1234) decSliceOwnerReference(v *[]OwnerReference, d *codec197 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - 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 + yyv4603 := *v + yyh4603, yyl4603 := z.DecSliceHelperStart() + var yyc4603 bool + if yyl4603 == 0 { + if yyv4603 == nil { + yyv4603 = []OwnerReference{} + yyc4603 = true + } else if len(yyv4603) != 0 { + yyv4603 = yyv4603[:0] + yyc4603 = true } - } else if yyl4520 > 0 { - var yyrr4520, yyrl4520 int - var yyrt4520 bool - if yyl4520 > cap(yyv4520) { + } else if yyl4603 > 0 { + var yyrr4603, yyrl4603 int + var yyrt4603 bool + if yyl4603 > cap(yyv4603) { - yyrg4520 := len(yyv4520) > 0 - yyv24520 := yyv4520 - yyrl4520, yyrt4520 = z.DecInferLen(yyl4520, z.DecBasicHandle().MaxInitLen, 72) - if yyrt4520 { - if yyrl4520 <= cap(yyv4520) { - yyv4520 = yyv4520[:yyrl4520] + yyrg4603 := len(yyv4603) > 0 + yyv24603 := yyv4603 + yyrl4603, yyrt4603 = z.DecInferLen(yyl4603, z.DecBasicHandle().MaxInitLen, 72) + if yyrt4603 { + if yyrl4603 <= cap(yyv4603) { + yyv4603 = yyv4603[:yyrl4603] } else { - yyv4520 = make([]OwnerReference, yyrl4520) + yyv4603 = make([]OwnerReference, yyrl4603) } } else { - yyv4520 = make([]OwnerReference, yyrl4520) + yyv4603 = make([]OwnerReference, yyrl4603) } - yyc4520 = true - yyrr4520 = len(yyv4520) - if yyrg4520 { - copy(yyv4520, yyv24520) + yyc4603 = true + yyrr4603 = len(yyv4603) + if yyrg4603 { + copy(yyv4603, yyv24603) } - } else if yyl4520 != len(yyv4520) { - yyv4520 = yyv4520[:yyl4520] - yyc4520 = true + } else if yyl4603 != len(yyv4603) { + yyv4603 = yyv4603[:yyl4603] + yyc4603 = true } - yyj4520 := 0 - for ; yyj4520 < yyrr4520; yyj4520++ { - yyh4520.ElemContainerState(yyj4520) + yyj4603 := 0 + for ; yyj4603 < yyrr4603; yyj4603++ { + yyh4603.ElemContainerState(yyj4603) if r.TryDecodeAsNil() { - yyv4520[yyj4520] = OwnerReference{} + yyv4603[yyj4603] = OwnerReference{} } else { - yyv4521 := &yyv4520[yyj4520] - yyv4521.CodecDecodeSelf(d) + yyv4604 := &yyv4603[yyj4603] + yyv4604.CodecDecodeSelf(d) } } - if yyrt4520 { - for ; yyj4520 < yyl4520; yyj4520++ { - yyv4520 = append(yyv4520, OwnerReference{}) - yyh4520.ElemContainerState(yyj4520) + if yyrt4603 { + for ; yyj4603 < yyl4603; yyj4603++ { + yyv4603 = append(yyv4603, OwnerReference{}) + yyh4603.ElemContainerState(yyj4603) if r.TryDecodeAsNil() { - yyv4520[yyj4520] = OwnerReference{} + yyv4603[yyj4603] = OwnerReference{} } else { - yyv4522 := &yyv4520[yyj4520] - yyv4522.CodecDecodeSelf(d) + yyv4605 := &yyv4603[yyj4603] + yyv4605.CodecDecodeSelf(d) } } } } else { - yyj4520 := 0 - for ; !r.CheckBreak(); yyj4520++ { + yyj4603 := 0 + for ; !r.CheckBreak(); yyj4603++ { - if yyj4520 >= len(yyv4520) { - yyv4520 = append(yyv4520, OwnerReference{}) // var yyz4520 OwnerReference - yyc4520 = true + if yyj4603 >= len(yyv4603) { + yyv4603 = append(yyv4603, OwnerReference{}) // var yyz4603 OwnerReference + yyc4603 = true } - yyh4520.ElemContainerState(yyj4520) - if yyj4520 < len(yyv4520) { + yyh4603.ElemContainerState(yyj4603) + if yyj4603 < len(yyv4603) { if r.TryDecodeAsNil() { - yyv4520[yyj4520] = OwnerReference{} + yyv4603[yyj4603] = OwnerReference{} } else { - yyv4523 := &yyv4520[yyj4520] - yyv4523.CodecDecodeSelf(d) + yyv4606 := &yyv4603[yyj4603] + yyv4606.CodecDecodeSelf(d) } } else { @@ -56334,17 +57414,17 @@ func (x codecSelfer1234) decSliceOwnerReference(v *[]OwnerReference, d *codec197 } } - if yyj4520 < len(yyv4520) { - yyv4520 = yyv4520[:yyj4520] - yyc4520 = true - } else if yyj4520 == 0 && yyv4520 == nil { - yyv4520 = []OwnerReference{} - yyc4520 = true + if yyj4603 < len(yyv4603) { + yyv4603 = yyv4603[:yyj4603] + yyc4603 = true + } else if yyj4603 == 0 && yyv4603 == nil { + yyv4603 = []OwnerReference{} + yyc4603 = true } } - yyh4520.End() - if yyc4520 { - *v = yyv4520 + yyh4603.End() + if yyc4603 { + *v = yyv4603 } } @@ -56353,9 +57433,9 @@ func (x codecSelfer1234) encSlicePersistentVolumeAccessMode(v []PersistentVolume z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r r.EncodeArrayStart(len(v)) - for _, yyv4524 := range v { + for _, yyv4607 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yyv4524.CodecEncodeSelf(e) + yyv4607.CodecEncodeSelf(e) } z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -56365,1619 +57445,12 @@ func (x codecSelfer1234) decSlicePersistentVolumeAccessMode(v *[]PersistentVolum z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - 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 yyl4525 > 0 { - var yyrr4525, yyrl4525 int - var yyrt4525 bool - if yyl4525 > cap(yyv4525) { - - yyrl4525, yyrt4525 = z.DecInferLen(yyl4525, z.DecBasicHandle().MaxInitLen, 16) - if yyrt4525 { - if yyrl4525 <= cap(yyv4525) { - yyv4525 = yyv4525[:yyrl4525] - } else { - yyv4525 = make([]PersistentVolumeAccessMode, yyrl4525) - } - } else { - yyv4525 = make([]PersistentVolumeAccessMode, yyrl4525) - } - yyc4525 = true - yyrr4525 = len(yyv4525) - } else if yyl4525 != len(yyv4525) { - yyv4525 = yyv4525[:yyl4525] - yyc4525 = true - } - yyj4525 := 0 - for ; yyj4525 < yyrr4525; yyj4525++ { - yyh4525.ElemContainerState(yyj4525) - if r.TryDecodeAsNil() { - yyv4525[yyj4525] = "" - } else { - yyv4525[yyj4525] = PersistentVolumeAccessMode(r.DecodeString()) - } - - } - if yyrt4525 { - for ; yyj4525 < yyl4525; yyj4525++ { - yyv4525 = append(yyv4525, "") - yyh4525.ElemContainerState(yyj4525) - if r.TryDecodeAsNil() { - yyv4525[yyj4525] = "" - } else { - yyv4525[yyj4525] = PersistentVolumeAccessMode(r.DecodeString()) - } - - } - } - - } else { - yyj4525 := 0 - for ; !r.CheckBreak(); yyj4525++ { - - if yyj4525 >= len(yyv4525) { - yyv4525 = append(yyv4525, "") // var yyz4525 PersistentVolumeAccessMode - yyc4525 = true - } - yyh4525.ElemContainerState(yyj4525) - if yyj4525 < len(yyv4525) { - if r.TryDecodeAsNil() { - yyv4525[yyj4525] = "" - } else { - yyv4525[yyj4525] = PersistentVolumeAccessMode(r.DecodeString()) - } - - } else { - z.DecSwallow() - } - - } - if yyj4525 < len(yyv4525) { - yyv4525 = yyv4525[:yyj4525] - yyc4525 = true - } else if yyj4525 == 0 && yyv4525 == nil { - yyv4525 = []PersistentVolumeAccessMode{} - yyc4525 = true - } - } - yyh4525.End() - if yyc4525 { - *v = yyv4525 - } -} - -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 _, yyv4529 := range v { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy4530 := &yyv4529 - yy4530.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 - - 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 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, 488) - if yyrt4531 { - if yyrl4531 <= cap(yyv4531) { - yyv4531 = yyv4531[:yyrl4531] - } else { - yyv4531 = make([]PersistentVolume, yyrl4531) - } - } else { - yyv4531 = make([]PersistentVolume, 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] = PersistentVolume{} - } else { - yyv4532 := &yyv4531[yyj4531] - yyv4532.CodecDecodeSelf(d) - } - - } - if yyrt4531 { - for ; yyj4531 < yyl4531; yyj4531++ { - yyv4531 = append(yyv4531, PersistentVolume{}) - yyh4531.ElemContainerState(yyj4531) - if r.TryDecodeAsNil() { - yyv4531[yyj4531] = PersistentVolume{} - } else { - yyv4533 := &yyv4531[yyj4531] - yyv4533.CodecDecodeSelf(d) - } - - } - } - - } else { - yyj4531 := 0 - for ; !r.CheckBreak(); yyj4531++ { - - if yyj4531 >= len(yyv4531) { - yyv4531 = append(yyv4531, PersistentVolume{}) // var yyz4531 PersistentVolume - yyc4531 = true - } - yyh4531.ElemContainerState(yyj4531) - if yyj4531 < len(yyv4531) { - if r.TryDecodeAsNil() { - yyv4531[yyj4531] = PersistentVolume{} - } 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 = []PersistentVolume{} - yyc4531 = true - } - } - yyh4531.End() - if yyc4531 { - *v = yyv4531 - } -} - -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 _, yyv4535 := range v { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy4536 := &yyv4535 - yy4536.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 - - 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 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, 368) - if yyrt4537 { - if yyrl4537 <= cap(yyv4537) { - yyv4537 = yyv4537[:yyrl4537] - } else { - yyv4537 = make([]PersistentVolumeClaim, yyrl4537) - } - } else { - yyv4537 = make([]PersistentVolumeClaim, 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] = PersistentVolumeClaim{} - } else { - yyv4538 := &yyv4537[yyj4537] - yyv4538.CodecDecodeSelf(d) - } - - } - if yyrt4537 { - for ; yyj4537 < yyl4537; yyj4537++ { - yyv4537 = append(yyv4537, PersistentVolumeClaim{}) - yyh4537.ElemContainerState(yyj4537) - if r.TryDecodeAsNil() { - yyv4537[yyj4537] = PersistentVolumeClaim{} - } else { - yyv4539 := &yyv4537[yyj4537] - yyv4539.CodecDecodeSelf(d) - } - - } - } - - } else { - yyj4537 := 0 - for ; !r.CheckBreak(); yyj4537++ { - - if yyj4537 >= len(yyv4537) { - yyv4537 = append(yyv4537, PersistentVolumeClaim{}) // var yyz4537 PersistentVolumeClaim - yyc4537 = true - } - yyh4537.ElemContainerState(yyj4537) - if yyj4537 < len(yyv4537) { - if r.TryDecodeAsNil() { - yyv4537[yyj4537] = PersistentVolumeClaim{} - } 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 = []PersistentVolumeClaim{} - yyc4537 = true - } - } - yyh4537.End() - if yyc4537 { - *v = yyv4537 - } -} - -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 _, yyv4541 := range v { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy4542 := &yyv4541 - yy4542.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 - - 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 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, 40) - if yyrt4543 { - if yyrl4543 <= cap(yyv4543) { - yyv4543 = yyv4543[:yyrl4543] - } else { - yyv4543 = make([]KeyToPath, yyrl4543) - } - } else { - yyv4543 = make([]KeyToPath, 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] = KeyToPath{} - } else { - yyv4544 := &yyv4543[yyj4543] - yyv4544.CodecDecodeSelf(d) - } - - } - if yyrt4543 { - for ; yyj4543 < yyl4543; yyj4543++ { - yyv4543 = append(yyv4543, KeyToPath{}) - yyh4543.ElemContainerState(yyj4543) - if r.TryDecodeAsNil() { - yyv4543[yyj4543] = KeyToPath{} - } else { - yyv4545 := &yyv4543[yyj4543] - yyv4545.CodecDecodeSelf(d) - } - - } - } - - } else { - yyj4543 := 0 - for ; !r.CheckBreak(); yyj4543++ { - - if yyj4543 >= len(yyv4543) { - yyv4543 = append(yyv4543, KeyToPath{}) // var yyz4543 KeyToPath - yyc4543 = true - } - yyh4543.ElemContainerState(yyj4543) - if yyj4543 < len(yyv4543) { - if r.TryDecodeAsNil() { - yyv4543[yyj4543] = KeyToPath{} - } 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 = []KeyToPath{} - yyc4543 = true - } - } - yyh4543.End() - if yyc4543 { - *v = yyv4543 - } -} - -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 _, yyv4547 := range v { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy4548 := &yyv4547 - yy4548.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 - - 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 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([]HTTPHeader, yyrl4549) - } - } else { - yyv4549 = make([]HTTPHeader, 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] = HTTPHeader{} - } else { - yyv4550 := &yyv4549[yyj4549] - yyv4550.CodecDecodeSelf(d) - } - - } - if yyrt4549 { - for ; yyj4549 < yyl4549; yyj4549++ { - yyv4549 = append(yyv4549, HTTPHeader{}) - yyh4549.ElemContainerState(yyj4549) - if r.TryDecodeAsNil() { - yyv4549[yyj4549] = HTTPHeader{} - } else { - yyv4551 := &yyv4549[yyj4549] - yyv4551.CodecDecodeSelf(d) - } - - } - } - - } else { - yyj4549 := 0 - for ; !r.CheckBreak(); yyj4549++ { - - if yyj4549 >= len(yyv4549) { - yyv4549 = append(yyv4549, HTTPHeader{}) // var yyz4549 HTTPHeader - yyc4549 = true - } - yyh4549.ElemContainerState(yyj4549) - if yyj4549 < len(yyv4549) { - if r.TryDecodeAsNil() { - yyv4549[yyj4549] = HTTPHeader{} - } 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 = []HTTPHeader{} - yyc4549 = true - } - } - yyh4549.End() - if yyc4549 { - *v = yyv4549 - } -} - -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 _, yyv4553 := range v { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yyv4553.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 - - 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 yyl4554 > 0 { - var yyrr4554, yyrl4554 int - var yyrt4554 bool - if yyl4554 > cap(yyv4554) { - - yyrl4554, yyrt4554 = z.DecInferLen(yyl4554, z.DecBasicHandle().MaxInitLen, 16) - if yyrt4554 { - if yyrl4554 <= cap(yyv4554) { - yyv4554 = yyv4554[:yyrl4554] - } else { - yyv4554 = make([]Capability, yyrl4554) - } - } else { - yyv4554 = make([]Capability, yyrl4554) - } - yyc4554 = true - yyrr4554 = len(yyv4554) - } else if yyl4554 != len(yyv4554) { - yyv4554 = yyv4554[:yyl4554] - yyc4554 = true - } - yyj4554 := 0 - for ; yyj4554 < yyrr4554; yyj4554++ { - yyh4554.ElemContainerState(yyj4554) - if r.TryDecodeAsNil() { - yyv4554[yyj4554] = "" - } else { - yyv4554[yyj4554] = Capability(r.DecodeString()) - } - - } - if yyrt4554 { - for ; yyj4554 < yyl4554; yyj4554++ { - yyv4554 = append(yyv4554, "") - yyh4554.ElemContainerState(yyj4554) - if r.TryDecodeAsNil() { - yyv4554[yyj4554] = "" - } else { - yyv4554[yyj4554] = Capability(r.DecodeString()) - } - - } - } - - } else { - yyj4554 := 0 - for ; !r.CheckBreak(); yyj4554++ { - - if yyj4554 >= len(yyv4554) { - yyv4554 = append(yyv4554, "") // var yyz4554 Capability - yyc4554 = true - } - yyh4554.ElemContainerState(yyj4554) - if yyj4554 < len(yyv4554) { - if r.TryDecodeAsNil() { - yyv4554[yyj4554] = "" - } else { - yyv4554[yyj4554] = Capability(r.DecodeString()) - } - - } else { - z.DecSwallow() - } - - } - if yyj4554 < len(yyv4554) { - yyv4554 = yyv4554[:yyj4554] - yyc4554 = true - } else if yyj4554 == 0 && yyv4554 == nil { - yyv4554 = []Capability{} - yyc4554 = true - } - } - yyh4554.End() - if yyc4554 { - *v = yyv4554 - } -} - -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 _, yyv4558 := range v { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy4559 := &yyv4558 - yy4559.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 - - 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 yyl4560 > 0 { - var yyrr4560, yyrl4560 int - var yyrt4560 bool - if yyl4560 > cap(yyv4560) { - - 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 { - yyv4560 = make([]ContainerPort, yyrl4560) - } - } else { - yyv4560 = make([]ContainerPort, yyrl4560) - } - yyc4560 = true - yyrr4560 = len(yyv4560) - if yyrg4560 { - copy(yyv4560, yyv24560) - } - } else if yyl4560 != len(yyv4560) { - yyv4560 = yyv4560[:yyl4560] - yyc4560 = true - } - yyj4560 := 0 - for ; yyj4560 < yyrr4560; yyj4560++ { - yyh4560.ElemContainerState(yyj4560) - if r.TryDecodeAsNil() { - yyv4560[yyj4560] = ContainerPort{} - } else { - yyv4561 := &yyv4560[yyj4560] - yyv4561.CodecDecodeSelf(d) - } - - } - if yyrt4560 { - for ; yyj4560 < yyl4560; yyj4560++ { - yyv4560 = append(yyv4560, ContainerPort{}) - yyh4560.ElemContainerState(yyj4560) - if r.TryDecodeAsNil() { - yyv4560[yyj4560] = ContainerPort{} - } else { - yyv4562 := &yyv4560[yyj4560] - yyv4562.CodecDecodeSelf(d) - } - - } - } - - } else { - yyj4560 := 0 - for ; !r.CheckBreak(); yyj4560++ { - - if yyj4560 >= len(yyv4560) { - yyv4560 = append(yyv4560, ContainerPort{}) // var yyz4560 ContainerPort - yyc4560 = true - } - yyh4560.ElemContainerState(yyj4560) - if yyj4560 < len(yyv4560) { - if r.TryDecodeAsNil() { - yyv4560[yyj4560] = ContainerPort{} - } else { - yyv4563 := &yyv4560[yyj4560] - yyv4563.CodecDecodeSelf(d) - } - - } else { - z.DecSwallow() - } - - } - if yyj4560 < len(yyv4560) { - yyv4560 = yyv4560[:yyj4560] - yyc4560 = true - } else if yyj4560 == 0 && yyv4560 == nil { - yyv4560 = []ContainerPort{} - yyc4560 = true - } - } - yyh4560.End() - if yyc4560 { - *v = yyv4560 - } -} - -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 _, yyv4564 := range v { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy4565 := &yyv4564 - yy4565.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 - - 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 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, 40) - if yyrt4566 { - if yyrl4566 <= cap(yyv4566) { - yyv4566 = yyv4566[:yyrl4566] - } else { - yyv4566 = make([]EnvVar, yyrl4566) - } - } else { - yyv4566 = make([]EnvVar, 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] = EnvVar{} - } else { - yyv4567 := &yyv4566[yyj4566] - yyv4567.CodecDecodeSelf(d) - } - - } - if yyrt4566 { - for ; yyj4566 < yyl4566; yyj4566++ { - yyv4566 = append(yyv4566, EnvVar{}) - yyh4566.ElemContainerState(yyj4566) - if r.TryDecodeAsNil() { - yyv4566[yyj4566] = EnvVar{} - } else { - yyv4568 := &yyv4566[yyj4566] - yyv4568.CodecDecodeSelf(d) - } - - } - } - - } else { - yyj4566 := 0 - for ; !r.CheckBreak(); yyj4566++ { - - if yyj4566 >= len(yyv4566) { - yyv4566 = append(yyv4566, EnvVar{}) // var yyz4566 EnvVar - yyc4566 = true - } - yyh4566.ElemContainerState(yyj4566) - if yyj4566 < len(yyv4566) { - if r.TryDecodeAsNil() { - yyv4566[yyj4566] = EnvVar{} - } 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 = []EnvVar{} - yyc4566 = true - } - } - yyh4566.End() - if yyc4566 { - *v = yyv4566 - } -} - -func (x codecSelfer1234) encSliceVolumeMount(v []VolumeMount, e *codec1978.Encoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - r.EncodeArrayStart(len(v)) - for _, yyv4570 := range v { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy4571 := &yyv4570 - yy4571.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 - - 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 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, 56) - if yyrt4572 { - if yyrl4572 <= cap(yyv4572) { - yyv4572 = yyv4572[:yyrl4572] - } else { - yyv4572 = make([]VolumeMount, yyrl4572) - } - } else { - yyv4572 = make([]VolumeMount, 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] = VolumeMount{} - } else { - yyv4573 := &yyv4572[yyj4572] - yyv4573.CodecDecodeSelf(d) - } - - } - if yyrt4572 { - for ; yyj4572 < yyl4572; yyj4572++ { - yyv4572 = append(yyv4572, VolumeMount{}) - yyh4572.ElemContainerState(yyj4572) - if r.TryDecodeAsNil() { - yyv4572[yyj4572] = VolumeMount{} - } else { - yyv4574 := &yyv4572[yyj4572] - yyv4574.CodecDecodeSelf(d) - } - - } - } - - } else { - yyj4572 := 0 - for ; !r.CheckBreak(); yyj4572++ { - - if yyj4572 >= len(yyv4572) { - yyv4572 = append(yyv4572, VolumeMount{}) // var yyz4572 VolumeMount - yyc4572 = true - } - yyh4572.ElemContainerState(yyj4572) - if yyj4572 < len(yyv4572) { - if r.TryDecodeAsNil() { - yyv4572[yyj4572] = VolumeMount{} - } 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 = []VolumeMount{} - yyc4572 = true - } - } - yyh4572.End() - if yyc4572 { - *v = yyv4572 - } -} - -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 _, yyv4576 := range v { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy4577 := &yyv4576 - yy4577.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 - - 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 yyl4578 > 0 { - var yyrr4578, yyrl4578 int - var yyrt4578 bool - if yyl4578 > cap(yyv4578) { - - 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 { - yyv4578 = make([]NodeSelectorTerm, yyrl4578) - } - } else { - yyv4578 = make([]NodeSelectorTerm, yyrl4578) - } - yyc4578 = true - yyrr4578 = len(yyv4578) - if yyrg4578 { - copy(yyv4578, yyv24578) - } - } else if yyl4578 != len(yyv4578) { - yyv4578 = yyv4578[:yyl4578] - yyc4578 = true - } - yyj4578 := 0 - for ; yyj4578 < yyrr4578; yyj4578++ { - yyh4578.ElemContainerState(yyj4578) - if r.TryDecodeAsNil() { - yyv4578[yyj4578] = NodeSelectorTerm{} - } else { - yyv4579 := &yyv4578[yyj4578] - yyv4579.CodecDecodeSelf(d) - } - - } - if yyrt4578 { - for ; yyj4578 < yyl4578; yyj4578++ { - yyv4578 = append(yyv4578, NodeSelectorTerm{}) - yyh4578.ElemContainerState(yyj4578) - if r.TryDecodeAsNil() { - yyv4578[yyj4578] = NodeSelectorTerm{} - } else { - yyv4580 := &yyv4578[yyj4578] - yyv4580.CodecDecodeSelf(d) - } - - } - } - - } else { - yyj4578 := 0 - for ; !r.CheckBreak(); yyj4578++ { - - if yyj4578 >= len(yyv4578) { - yyv4578 = append(yyv4578, NodeSelectorTerm{}) // var yyz4578 NodeSelectorTerm - yyc4578 = true - } - yyh4578.ElemContainerState(yyj4578) - if yyj4578 < len(yyv4578) { - if r.TryDecodeAsNil() { - yyv4578[yyj4578] = NodeSelectorTerm{} - } else { - yyv4581 := &yyv4578[yyj4578] - yyv4581.CodecDecodeSelf(d) - } - - } else { - z.DecSwallow() - } - - } - if yyj4578 < len(yyv4578) { - yyv4578 = yyv4578[:yyj4578] - yyc4578 = true - } else if yyj4578 == 0 && yyv4578 == nil { - yyv4578 = []NodeSelectorTerm{} - yyc4578 = true - } - } - yyh4578.End() - if yyc4578 { - *v = yyv4578 - } -} - -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 _, yyv4582 := range v { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy4583 := &yyv4582 - yy4583.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 - - 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 yyl4584 > 0 { - var yyrr4584, yyrl4584 int - var yyrt4584 bool - if yyl4584 > cap(yyv4584) { - - 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 { - yyv4584 = make([]NodeSelectorRequirement, yyrl4584) - } - } else { - yyv4584 = make([]NodeSelectorRequirement, yyrl4584) - } - yyc4584 = true - yyrr4584 = len(yyv4584) - if yyrg4584 { - copy(yyv4584, yyv24584) - } - } else if yyl4584 != len(yyv4584) { - yyv4584 = yyv4584[:yyl4584] - yyc4584 = true - } - yyj4584 := 0 - for ; yyj4584 < yyrr4584; yyj4584++ { - yyh4584.ElemContainerState(yyj4584) - if r.TryDecodeAsNil() { - yyv4584[yyj4584] = NodeSelectorRequirement{} - } else { - yyv4585 := &yyv4584[yyj4584] - yyv4585.CodecDecodeSelf(d) - } - - } - if yyrt4584 { - for ; yyj4584 < yyl4584; yyj4584++ { - yyv4584 = append(yyv4584, NodeSelectorRequirement{}) - yyh4584.ElemContainerState(yyj4584) - if r.TryDecodeAsNil() { - yyv4584[yyj4584] = NodeSelectorRequirement{} - } else { - yyv4586 := &yyv4584[yyj4584] - yyv4586.CodecDecodeSelf(d) - } - - } - } - - } else { - yyj4584 := 0 - for ; !r.CheckBreak(); yyj4584++ { - - if yyj4584 >= len(yyv4584) { - yyv4584 = append(yyv4584, NodeSelectorRequirement{}) // var yyz4584 NodeSelectorRequirement - yyc4584 = true - } - yyh4584.ElemContainerState(yyj4584) - if yyj4584 < len(yyv4584) { - if r.TryDecodeAsNil() { - yyv4584[yyj4584] = NodeSelectorRequirement{} - } else { - yyv4587 := &yyv4584[yyj4584] - yyv4587.CodecDecodeSelf(d) - } - - } else { - z.DecSwallow() - } - - } - if yyj4584 < len(yyv4584) { - yyv4584 = yyv4584[:yyj4584] - yyc4584 = true - } else if yyj4584 == 0 && yyv4584 == nil { - yyv4584 = []NodeSelectorRequirement{} - yyc4584 = true - } - } - yyh4584.End() - if yyc4584 { - *v = yyv4584 - } -} - -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 _, yyv4588 := range v { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy4589 := &yyv4588 - yy4589.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 - - 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 yyl4590 > 0 { - var yyrr4590, yyrl4590 int - var yyrt4590 bool - if yyl4590 > cap(yyv4590) { - - yyrg4590 := len(yyv4590) > 0 - yyv24590 := yyv4590 - yyrl4590, yyrt4590 = z.DecInferLen(yyl4590, z.DecBasicHandle().MaxInitLen, 48) - if yyrt4590 { - if yyrl4590 <= cap(yyv4590) { - yyv4590 = yyv4590[:yyrl4590] - } else { - yyv4590 = make([]PodAffinityTerm, yyrl4590) - } - } else { - yyv4590 = make([]PodAffinityTerm, yyrl4590) - } - yyc4590 = true - yyrr4590 = len(yyv4590) - if yyrg4590 { - copy(yyv4590, yyv24590) - } - } else if yyl4590 != len(yyv4590) { - yyv4590 = yyv4590[:yyl4590] - yyc4590 = true - } - yyj4590 := 0 - for ; yyj4590 < yyrr4590; yyj4590++ { - yyh4590.ElemContainerState(yyj4590) - if r.TryDecodeAsNil() { - yyv4590[yyj4590] = PodAffinityTerm{} - } else { - yyv4591 := &yyv4590[yyj4590] - yyv4591.CodecDecodeSelf(d) - } - - } - if yyrt4590 { - for ; yyj4590 < yyl4590; yyj4590++ { - yyv4590 = append(yyv4590, PodAffinityTerm{}) - yyh4590.ElemContainerState(yyj4590) - if r.TryDecodeAsNil() { - yyv4590[yyj4590] = PodAffinityTerm{} - } else { - yyv4592 := &yyv4590[yyj4590] - yyv4592.CodecDecodeSelf(d) - } - - } - } - - } else { - yyj4590 := 0 - for ; !r.CheckBreak(); yyj4590++ { - - if yyj4590 >= len(yyv4590) { - yyv4590 = append(yyv4590, PodAffinityTerm{}) // var yyz4590 PodAffinityTerm - yyc4590 = true - } - yyh4590.ElemContainerState(yyj4590) - if yyj4590 < len(yyv4590) { - if r.TryDecodeAsNil() { - yyv4590[yyj4590] = PodAffinityTerm{} - } else { - yyv4593 := &yyv4590[yyj4590] - yyv4593.CodecDecodeSelf(d) - } - - } else { - z.DecSwallow() - } - - } - if yyj4590 < len(yyv4590) { - yyv4590 = yyv4590[:yyj4590] - yyc4590 = true - } else if yyj4590 == 0 && yyv4590 == nil { - yyv4590 = []PodAffinityTerm{} - yyc4590 = true - } - } - yyh4590.End() - if yyc4590 { - *v = yyv4590 - } -} - -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 _, yyv4594 := range v { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy4595 := &yyv4594 - yy4595.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 - - 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 yyl4596 > 0 { - var yyrr4596, yyrl4596 int - var yyrt4596 bool - if yyl4596 > cap(yyv4596) { - - 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 { - yyv4596 = make([]WeightedPodAffinityTerm, yyrl4596) - } - } else { - yyv4596 = make([]WeightedPodAffinityTerm, yyrl4596) - } - yyc4596 = true - yyrr4596 = len(yyv4596) - if yyrg4596 { - copy(yyv4596, yyv24596) - } - } else if yyl4596 != len(yyv4596) { - yyv4596 = yyv4596[:yyl4596] - yyc4596 = true - } - yyj4596 := 0 - for ; yyj4596 < yyrr4596; yyj4596++ { - yyh4596.ElemContainerState(yyj4596) - if r.TryDecodeAsNil() { - yyv4596[yyj4596] = WeightedPodAffinityTerm{} - } else { - yyv4597 := &yyv4596[yyj4596] - yyv4597.CodecDecodeSelf(d) - } - - } - if yyrt4596 { - for ; yyj4596 < yyl4596; yyj4596++ { - yyv4596 = append(yyv4596, WeightedPodAffinityTerm{}) - yyh4596.ElemContainerState(yyj4596) - if r.TryDecodeAsNil() { - yyv4596[yyj4596] = WeightedPodAffinityTerm{} - } else { - yyv4598 := &yyv4596[yyj4596] - yyv4598.CodecDecodeSelf(d) - } - - } - } - - } else { - yyj4596 := 0 - for ; !r.CheckBreak(); yyj4596++ { - - if yyj4596 >= len(yyv4596) { - yyv4596 = append(yyv4596, WeightedPodAffinityTerm{}) // var yyz4596 WeightedPodAffinityTerm - yyc4596 = true - } - yyh4596.ElemContainerState(yyj4596) - if yyj4596 < len(yyv4596) { - if r.TryDecodeAsNil() { - yyv4596[yyj4596] = WeightedPodAffinityTerm{} - } else { - yyv4599 := &yyv4596[yyj4596] - yyv4599.CodecDecodeSelf(d) - } - - } else { - z.DecSwallow() - } - - } - if yyj4596 < len(yyv4596) { - yyv4596 = yyv4596[:yyj4596] - yyc4596 = true - } else if yyj4596 == 0 && yyv4596 == nil { - yyv4596 = []WeightedPodAffinityTerm{} - yyc4596 = true - } - } - yyh4596.End() - if yyc4596 { - *v = yyv4596 - } -} - -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 _, yyv4600 := range v { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy4601 := &yyv4600 - yy4601.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 - - 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 yyl4602 > 0 { - var yyrr4602, yyrl4602 int - var yyrt4602 bool - if yyl4602 > cap(yyv4602) { - - 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 { - yyv4602 = make([]PreferredSchedulingTerm, yyrl4602) - } - } else { - yyv4602 = make([]PreferredSchedulingTerm, yyrl4602) - } - yyc4602 = true - yyrr4602 = len(yyv4602) - if yyrg4602 { - copy(yyv4602, yyv24602) - } - } else if yyl4602 != len(yyv4602) { - yyv4602 = yyv4602[:yyl4602] - yyc4602 = true - } - yyj4602 := 0 - for ; yyj4602 < yyrr4602; yyj4602++ { - yyh4602.ElemContainerState(yyj4602) - if r.TryDecodeAsNil() { - yyv4602[yyj4602] = PreferredSchedulingTerm{} - } else { - yyv4603 := &yyv4602[yyj4602] - yyv4603.CodecDecodeSelf(d) - } - - } - if yyrt4602 { - for ; yyj4602 < yyl4602; yyj4602++ { - yyv4602 = append(yyv4602, PreferredSchedulingTerm{}) - yyh4602.ElemContainerState(yyj4602) - if r.TryDecodeAsNil() { - yyv4602[yyj4602] = PreferredSchedulingTerm{} - } else { - yyv4604 := &yyv4602[yyj4602] - yyv4604.CodecDecodeSelf(d) - } - - } - } - - } else { - yyj4602 := 0 - for ; !r.CheckBreak(); yyj4602++ { - - if yyj4602 >= len(yyv4602) { - yyv4602 = append(yyv4602, PreferredSchedulingTerm{}) // var yyz4602 PreferredSchedulingTerm - yyc4602 = true - } - yyh4602.ElemContainerState(yyj4602) - if yyj4602 < len(yyv4602) { - if r.TryDecodeAsNil() { - yyv4602[yyj4602] = PreferredSchedulingTerm{} - } else { - yyv4605 := &yyv4602[yyj4602] - yyv4605.CodecDecodeSelf(d) - } - - } else { - z.DecSwallow() - } - - } - if yyj4602 < len(yyv4602) { - yyv4602 = yyv4602[:yyj4602] - yyc4602 = true - } else if yyj4602 == 0 && yyv4602 == nil { - yyv4602 = []PreferredSchedulingTerm{} - yyc4602 = true - } - } - yyh4602.End() - if yyc4602 { - *v = yyv4602 - } -} - -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 _, yyv4606 := range v { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy4607 := &yyv4606 - yy4607.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 - yyv4608 := *v yyh4608, yyl4608 := z.DecSliceHelperStart() var yyc4608 bool if yyl4608 == 0 { if yyv4608 == nil { - yyv4608 = []Volume{} + yyv4608 = []PersistentVolumeAccessMode{} yyc4608 = true } else if len(yyv4608) != 0 { yyv4608 = yyv4608[:0] @@ -57988,23 +57461,18 @@ func (x codecSelfer1234) decSliceVolume(v *[]Volume, d *codec1978.Decoder) { var yyrt4608 bool if yyl4608 > cap(yyv4608) { - yyrg4608 := len(yyv4608) > 0 - yyv24608 := yyv4608 - yyrl4608, yyrt4608 = z.DecInferLen(yyl4608, z.DecBasicHandle().MaxInitLen, 192) + yyrl4608, yyrt4608 = z.DecInferLen(yyl4608, z.DecBasicHandle().MaxInitLen, 16) if yyrt4608 { if yyrl4608 <= cap(yyv4608) { yyv4608 = yyv4608[:yyrl4608] } else { - yyv4608 = make([]Volume, yyrl4608) + yyv4608 = make([]PersistentVolumeAccessMode, yyrl4608) } } else { - yyv4608 = make([]Volume, yyrl4608) + yyv4608 = make([]PersistentVolumeAccessMode, yyrl4608) } yyc4608 = true yyrr4608 = len(yyv4608) - if yyrg4608 { - copy(yyv4608, yyv24608) - } } else if yyl4608 != len(yyv4608) { yyv4608 = yyv4608[:yyl4608] yyc4608 = true @@ -58013,22 +57481,20 @@ func (x codecSelfer1234) decSliceVolume(v *[]Volume, d *codec1978.Decoder) { for ; yyj4608 < yyrr4608; yyj4608++ { yyh4608.ElemContainerState(yyj4608) if r.TryDecodeAsNil() { - yyv4608[yyj4608] = Volume{} + yyv4608[yyj4608] = "" } else { - yyv4609 := &yyv4608[yyj4608] - yyv4609.CodecDecodeSelf(d) + yyv4608[yyj4608] = PersistentVolumeAccessMode(r.DecodeString()) } } if yyrt4608 { for ; yyj4608 < yyl4608; yyj4608++ { - yyv4608 = append(yyv4608, Volume{}) + yyv4608 = append(yyv4608, "") yyh4608.ElemContainerState(yyj4608) if r.TryDecodeAsNil() { - yyv4608[yyj4608] = Volume{} + yyv4608[yyj4608] = "" } else { - yyv4610 := &yyv4608[yyj4608] - yyv4610.CodecDecodeSelf(d) + yyv4608[yyj4608] = PersistentVolumeAccessMode(r.DecodeString()) } } @@ -58039,16 +57505,15 @@ func (x codecSelfer1234) decSliceVolume(v *[]Volume, d *codec1978.Decoder) { for ; !r.CheckBreak(); yyj4608++ { if yyj4608 >= len(yyv4608) { - yyv4608 = append(yyv4608, Volume{}) // var yyz4608 Volume + yyv4608 = append(yyv4608, "") // var yyz4608 PersistentVolumeAccessMode yyc4608 = true } yyh4608.ElemContainerState(yyj4608) if yyj4608 < len(yyv4608) { if r.TryDecodeAsNil() { - yyv4608[yyj4608] = Volume{} + yyv4608[yyj4608] = "" } else { - yyv4611 := &yyv4608[yyj4608] - yyv4611.CodecDecodeSelf(d) + yyv4608[yyj4608] = PersistentVolumeAccessMode(r.DecodeString()) } } else { @@ -58060,7 +57525,7 @@ func (x codecSelfer1234) decSliceVolume(v *[]Volume, d *codec1978.Decoder) { yyv4608 = yyv4608[:yyj4608] yyc4608 = true } else if yyj4608 == 0 && yyv4608 == nil { - yyv4608 = []Volume{} + yyv4608 = []PersistentVolumeAccessMode{} yyc4608 = true } } @@ -58070,7 +57535,7 @@ func (x codecSelfer1234) decSliceVolume(v *[]Volume, d *codec1978.Decoder) { } } -func (x codecSelfer1234) encSliceContainer(v []Container, e *codec1978.Encoder) { +func (x codecSelfer1234) encSlicePersistentVolume(v []PersistentVolume, e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r @@ -58083,7 +57548,7 @@ func (x codecSelfer1234) encSliceContainer(v []Container, e *codec1978.Encoder) z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } -func (x codecSelfer1234) decSliceContainer(v *[]Container, d *codec1978.Decoder) { +func (x codecSelfer1234) decSlicePersistentVolume(v *[]PersistentVolume, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r @@ -58093,7 +57558,7 @@ func (x codecSelfer1234) decSliceContainer(v *[]Container, d *codec1978.Decoder) var yyc4614 bool if yyl4614 == 0 { if yyv4614 == nil { - yyv4614 = []Container{} + yyv4614 = []PersistentVolume{} yyc4614 = true } else if len(yyv4614) != 0 { yyv4614 = yyv4614[:0] @@ -58106,15 +57571,15 @@ func (x codecSelfer1234) decSliceContainer(v *[]Container, d *codec1978.Decoder) yyrg4614 := len(yyv4614) > 0 yyv24614 := yyv4614 - yyrl4614, yyrt4614 = z.DecInferLen(yyl4614, z.DecBasicHandle().MaxInitLen, 256) + yyrl4614, yyrt4614 = z.DecInferLen(yyl4614, z.DecBasicHandle().MaxInitLen, 496) if yyrt4614 { if yyrl4614 <= cap(yyv4614) { yyv4614 = yyv4614[:yyrl4614] } else { - yyv4614 = make([]Container, yyrl4614) + yyv4614 = make([]PersistentVolume, yyrl4614) } } else { - yyv4614 = make([]Container, yyrl4614) + yyv4614 = make([]PersistentVolume, yyrl4614) } yyc4614 = true yyrr4614 = len(yyv4614) @@ -58129,7 +57594,7 @@ func (x codecSelfer1234) decSliceContainer(v *[]Container, d *codec1978.Decoder) for ; yyj4614 < yyrr4614; yyj4614++ { yyh4614.ElemContainerState(yyj4614) if r.TryDecodeAsNil() { - yyv4614[yyj4614] = Container{} + yyv4614[yyj4614] = PersistentVolume{} } else { yyv4615 := &yyv4614[yyj4614] yyv4615.CodecDecodeSelf(d) @@ -58138,10 +57603,10 @@ func (x codecSelfer1234) decSliceContainer(v *[]Container, d *codec1978.Decoder) } if yyrt4614 { for ; yyj4614 < yyl4614; yyj4614++ { - yyv4614 = append(yyv4614, Container{}) + yyv4614 = append(yyv4614, PersistentVolume{}) yyh4614.ElemContainerState(yyj4614) if r.TryDecodeAsNil() { - yyv4614[yyj4614] = Container{} + yyv4614[yyj4614] = PersistentVolume{} } else { yyv4616 := &yyv4614[yyj4614] yyv4616.CodecDecodeSelf(d) @@ -58155,13 +57620,13 @@ func (x codecSelfer1234) decSliceContainer(v *[]Container, d *codec1978.Decoder) for ; !r.CheckBreak(); yyj4614++ { if yyj4614 >= len(yyv4614) { - yyv4614 = append(yyv4614, Container{}) // var yyz4614 Container + yyv4614 = append(yyv4614, PersistentVolume{}) // var yyz4614 PersistentVolume yyc4614 = true } yyh4614.ElemContainerState(yyj4614) if yyj4614 < len(yyv4614) { if r.TryDecodeAsNil() { - yyv4614[yyj4614] = Container{} + yyv4614[yyj4614] = PersistentVolume{} } else { yyv4617 := &yyv4614[yyj4614] yyv4617.CodecDecodeSelf(d) @@ -58176,7 +57641,7 @@ func (x codecSelfer1234) decSliceContainer(v *[]Container, d *codec1978.Decoder) yyv4614 = yyv4614[:yyj4614] yyc4614 = true } else if yyj4614 == 0 && yyv4614 == nil { - yyv4614 = []Container{} + yyv4614 = []PersistentVolume{} yyc4614 = true } } @@ -58186,7 +57651,7 @@ func (x codecSelfer1234) decSliceContainer(v *[]Container, d *codec1978.Decoder) } } -func (x codecSelfer1234) encSliceLocalObjectReference(v []LocalObjectReference, e *codec1978.Encoder) { +func (x codecSelfer1234) encSlicePersistentVolumeClaim(v []PersistentVolumeClaim, e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r @@ -58199,7 +57664,7 @@ func (x codecSelfer1234) encSliceLocalObjectReference(v []LocalObjectReference, z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } -func (x codecSelfer1234) decSliceLocalObjectReference(v *[]LocalObjectReference, d *codec1978.Decoder) { +func (x codecSelfer1234) decSlicePersistentVolumeClaim(v *[]PersistentVolumeClaim, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r @@ -58209,7 +57674,7 @@ func (x codecSelfer1234) decSliceLocalObjectReference(v *[]LocalObjectReference, var yyc4620 bool if yyl4620 == 0 { if yyv4620 == nil { - yyv4620 = []LocalObjectReference{} + yyv4620 = []PersistentVolumeClaim{} yyc4620 = true } else if len(yyv4620) != 0 { yyv4620 = yyv4620[:0] @@ -58222,15 +57687,15 @@ func (x codecSelfer1234) decSliceLocalObjectReference(v *[]LocalObjectReference, yyrg4620 := len(yyv4620) > 0 yyv24620 := yyv4620 - yyrl4620, yyrt4620 = z.DecInferLen(yyl4620, z.DecBasicHandle().MaxInitLen, 16) + yyrl4620, yyrt4620 = z.DecInferLen(yyl4620, z.DecBasicHandle().MaxInitLen, 368) if yyrt4620 { if yyrl4620 <= cap(yyv4620) { yyv4620 = yyv4620[:yyrl4620] } else { - yyv4620 = make([]LocalObjectReference, yyrl4620) + yyv4620 = make([]PersistentVolumeClaim, yyrl4620) } } else { - yyv4620 = make([]LocalObjectReference, yyrl4620) + yyv4620 = make([]PersistentVolumeClaim, yyrl4620) } yyc4620 = true yyrr4620 = len(yyv4620) @@ -58245,7 +57710,7 @@ func (x codecSelfer1234) decSliceLocalObjectReference(v *[]LocalObjectReference, for ; yyj4620 < yyrr4620; yyj4620++ { yyh4620.ElemContainerState(yyj4620) if r.TryDecodeAsNil() { - yyv4620[yyj4620] = LocalObjectReference{} + yyv4620[yyj4620] = PersistentVolumeClaim{} } else { yyv4621 := &yyv4620[yyj4620] yyv4621.CodecDecodeSelf(d) @@ -58254,10 +57719,10 @@ func (x codecSelfer1234) decSliceLocalObjectReference(v *[]LocalObjectReference, } if yyrt4620 { for ; yyj4620 < yyl4620; yyj4620++ { - yyv4620 = append(yyv4620, LocalObjectReference{}) + yyv4620 = append(yyv4620, PersistentVolumeClaim{}) yyh4620.ElemContainerState(yyj4620) if r.TryDecodeAsNil() { - yyv4620[yyj4620] = LocalObjectReference{} + yyv4620[yyj4620] = PersistentVolumeClaim{} } else { yyv4622 := &yyv4620[yyj4620] yyv4622.CodecDecodeSelf(d) @@ -58271,13 +57736,13 @@ func (x codecSelfer1234) decSliceLocalObjectReference(v *[]LocalObjectReference, for ; !r.CheckBreak(); yyj4620++ { if yyj4620 >= len(yyv4620) { - yyv4620 = append(yyv4620, LocalObjectReference{}) // var yyz4620 LocalObjectReference + yyv4620 = append(yyv4620, PersistentVolumeClaim{}) // var yyz4620 PersistentVolumeClaim yyc4620 = true } yyh4620.ElemContainerState(yyj4620) if yyj4620 < len(yyv4620) { if r.TryDecodeAsNil() { - yyv4620[yyj4620] = LocalObjectReference{} + yyv4620[yyj4620] = PersistentVolumeClaim{} } else { yyv4623 := &yyv4620[yyj4620] yyv4623.CodecDecodeSelf(d) @@ -58292,7 +57757,7 @@ func (x codecSelfer1234) decSliceLocalObjectReference(v *[]LocalObjectReference, yyv4620 = yyv4620[:yyj4620] yyc4620 = true } else if yyj4620 == 0 && yyv4620 == nil { - yyv4620 = []LocalObjectReference{} + yyv4620 = []PersistentVolumeClaim{} yyc4620 = true } } @@ -58302,7 +57767,7 @@ func (x codecSelfer1234) decSliceLocalObjectReference(v *[]LocalObjectReference, } } -func (x codecSelfer1234) encSlicePodCondition(v []PodCondition, e *codec1978.Encoder) { +func (x codecSelfer1234) encSliceKeyToPath(v []KeyToPath, e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r @@ -58315,7 +57780,7 @@ func (x codecSelfer1234) encSlicePodCondition(v []PodCondition, e *codec1978.Enc z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } -func (x codecSelfer1234) decSlicePodCondition(v *[]PodCondition, d *codec1978.Decoder) { +func (x codecSelfer1234) decSliceKeyToPath(v *[]KeyToPath, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r @@ -58325,7 +57790,7 @@ func (x codecSelfer1234) decSlicePodCondition(v *[]PodCondition, d *codec1978.De var yyc4626 bool if yyl4626 == 0 { if yyv4626 == nil { - yyv4626 = []PodCondition{} + yyv4626 = []KeyToPath{} yyc4626 = true } else if len(yyv4626) != 0 { yyv4626 = yyv4626[:0] @@ -58338,15 +57803,15 @@ func (x codecSelfer1234) decSlicePodCondition(v *[]PodCondition, d *codec1978.De yyrg4626 := len(yyv4626) > 0 yyv24626 := yyv4626 - yyrl4626, yyrt4626 = z.DecInferLen(yyl4626, z.DecBasicHandle().MaxInitLen, 112) + yyrl4626, yyrt4626 = z.DecInferLen(yyl4626, z.DecBasicHandle().MaxInitLen, 40) if yyrt4626 { if yyrl4626 <= cap(yyv4626) { yyv4626 = yyv4626[:yyrl4626] } else { - yyv4626 = make([]PodCondition, yyrl4626) + yyv4626 = make([]KeyToPath, yyrl4626) } } else { - yyv4626 = make([]PodCondition, yyrl4626) + yyv4626 = make([]KeyToPath, yyrl4626) } yyc4626 = true yyrr4626 = len(yyv4626) @@ -58361,7 +57826,7 @@ func (x codecSelfer1234) decSlicePodCondition(v *[]PodCondition, d *codec1978.De for ; yyj4626 < yyrr4626; yyj4626++ { yyh4626.ElemContainerState(yyj4626) if r.TryDecodeAsNil() { - yyv4626[yyj4626] = PodCondition{} + yyv4626[yyj4626] = KeyToPath{} } else { yyv4627 := &yyv4626[yyj4626] yyv4627.CodecDecodeSelf(d) @@ -58370,10 +57835,10 @@ func (x codecSelfer1234) decSlicePodCondition(v *[]PodCondition, d *codec1978.De } if yyrt4626 { for ; yyj4626 < yyl4626; yyj4626++ { - yyv4626 = append(yyv4626, PodCondition{}) + yyv4626 = append(yyv4626, KeyToPath{}) yyh4626.ElemContainerState(yyj4626) if r.TryDecodeAsNil() { - yyv4626[yyj4626] = PodCondition{} + yyv4626[yyj4626] = KeyToPath{} } else { yyv4628 := &yyv4626[yyj4626] yyv4628.CodecDecodeSelf(d) @@ -58387,13 +57852,13 @@ func (x codecSelfer1234) decSlicePodCondition(v *[]PodCondition, d *codec1978.De for ; !r.CheckBreak(); yyj4626++ { if yyj4626 >= len(yyv4626) { - yyv4626 = append(yyv4626, PodCondition{}) // var yyz4626 PodCondition + yyv4626 = append(yyv4626, KeyToPath{}) // var yyz4626 KeyToPath yyc4626 = true } yyh4626.ElemContainerState(yyj4626) if yyj4626 < len(yyv4626) { if r.TryDecodeAsNil() { - yyv4626[yyj4626] = PodCondition{} + yyv4626[yyj4626] = KeyToPath{} } else { yyv4629 := &yyv4626[yyj4626] yyv4629.CodecDecodeSelf(d) @@ -58408,7 +57873,7 @@ func (x codecSelfer1234) decSlicePodCondition(v *[]PodCondition, d *codec1978.De yyv4626 = yyv4626[:yyj4626] yyc4626 = true } else if yyj4626 == 0 && yyv4626 == nil { - yyv4626 = []PodCondition{} + yyv4626 = []KeyToPath{} yyc4626 = true } } @@ -58418,7 +57883,7 @@ func (x codecSelfer1234) decSlicePodCondition(v *[]PodCondition, d *codec1978.De } } -func (x codecSelfer1234) encSliceContainerStatus(v []ContainerStatus, e *codec1978.Encoder) { +func (x codecSelfer1234) encSliceHTTPHeader(v []HTTPHeader, e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r @@ -58431,7 +57896,7 @@ func (x codecSelfer1234) encSliceContainerStatus(v []ContainerStatus, e *codec19 z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } -func (x codecSelfer1234) decSliceContainerStatus(v *[]ContainerStatus, d *codec1978.Decoder) { +func (x codecSelfer1234) decSliceHTTPHeader(v *[]HTTPHeader, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r @@ -58441,7 +57906,7 @@ func (x codecSelfer1234) decSliceContainerStatus(v *[]ContainerStatus, d *codec1 var yyc4632 bool if yyl4632 == 0 { if yyv4632 == nil { - yyv4632 = []ContainerStatus{} + yyv4632 = []HTTPHeader{} yyc4632 = true } else if len(yyv4632) != 0 { yyv4632 = yyv4632[:0] @@ -58454,15 +57919,15 @@ func (x codecSelfer1234) decSliceContainerStatus(v *[]ContainerStatus, d *codec1 yyrg4632 := len(yyv4632) > 0 yyv24632 := yyv4632 - yyrl4632, yyrt4632 = z.DecInferLen(yyl4632, z.DecBasicHandle().MaxInitLen, 120) + yyrl4632, yyrt4632 = z.DecInferLen(yyl4632, z.DecBasicHandle().MaxInitLen, 32) if yyrt4632 { if yyrl4632 <= cap(yyv4632) { yyv4632 = yyv4632[:yyrl4632] } else { - yyv4632 = make([]ContainerStatus, yyrl4632) + yyv4632 = make([]HTTPHeader, yyrl4632) } } else { - yyv4632 = make([]ContainerStatus, yyrl4632) + yyv4632 = make([]HTTPHeader, yyrl4632) } yyc4632 = true yyrr4632 = len(yyv4632) @@ -58477,7 +57942,7 @@ func (x codecSelfer1234) decSliceContainerStatus(v *[]ContainerStatus, d *codec1 for ; yyj4632 < yyrr4632; yyj4632++ { yyh4632.ElemContainerState(yyj4632) if r.TryDecodeAsNil() { - yyv4632[yyj4632] = ContainerStatus{} + yyv4632[yyj4632] = HTTPHeader{} } else { yyv4633 := &yyv4632[yyj4632] yyv4633.CodecDecodeSelf(d) @@ -58486,10 +57951,10 @@ func (x codecSelfer1234) decSliceContainerStatus(v *[]ContainerStatus, d *codec1 } if yyrt4632 { for ; yyj4632 < yyl4632; yyj4632++ { - yyv4632 = append(yyv4632, ContainerStatus{}) + yyv4632 = append(yyv4632, HTTPHeader{}) yyh4632.ElemContainerState(yyj4632) if r.TryDecodeAsNil() { - yyv4632[yyj4632] = ContainerStatus{} + yyv4632[yyj4632] = HTTPHeader{} } else { yyv4634 := &yyv4632[yyj4632] yyv4634.CodecDecodeSelf(d) @@ -58503,13 +57968,13 @@ func (x codecSelfer1234) decSliceContainerStatus(v *[]ContainerStatus, d *codec1 for ; !r.CheckBreak(); yyj4632++ { if yyj4632 >= len(yyv4632) { - yyv4632 = append(yyv4632, ContainerStatus{}) // var yyz4632 ContainerStatus + yyv4632 = append(yyv4632, HTTPHeader{}) // var yyz4632 HTTPHeader yyc4632 = true } yyh4632.ElemContainerState(yyj4632) if yyj4632 < len(yyv4632) { if r.TryDecodeAsNil() { - yyv4632[yyj4632] = ContainerStatus{} + yyv4632[yyj4632] = HTTPHeader{} } else { yyv4635 := &yyv4632[yyj4632] yyv4635.CodecDecodeSelf(d) @@ -58524,7 +57989,7 @@ func (x codecSelfer1234) decSliceContainerStatus(v *[]ContainerStatus, d *codec1 yyv4632 = yyv4632[:yyj4632] yyc4632 = true } else if yyj4632 == 0 && yyv4632 == nil { - yyv4632 = []ContainerStatus{} + yyv4632 = []HTTPHeader{} yyc4632 = true } } @@ -58534,15 +57999,1630 @@ func (x codecSelfer1234) decSliceContainerStatus(v *[]ContainerStatus, d *codec1 } } -func (x codecSelfer1234) encSlicePod(v []Pod, e *codec1978.Encoder) { +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 _, yyv4636 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy4637 := &yyv4636 - yy4637.CodecEncodeSelf(e) + yyv4636.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 + + yyv4637 := *v + yyh4637, yyl4637 := z.DecSliceHelperStart() + var yyc4637 bool + if yyl4637 == 0 { + if yyv4637 == nil { + yyv4637 = []Capability{} + 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) { + + yyrl4637, yyrt4637 = z.DecInferLen(yyl4637, z.DecBasicHandle().MaxInitLen, 16) + if yyrt4637 { + if yyrl4637 <= cap(yyv4637) { + yyv4637 = yyv4637[:yyrl4637] + } else { + yyv4637 = make([]Capability, yyrl4637) + } + } else { + yyv4637 = make([]Capability, yyrl4637) + } + yyc4637 = true + yyrr4637 = len(yyv4637) + } else if yyl4637 != len(yyv4637) { + yyv4637 = yyv4637[:yyl4637] + yyc4637 = true + } + yyj4637 := 0 + for ; yyj4637 < yyrr4637; yyj4637++ { + yyh4637.ElemContainerState(yyj4637) + if r.TryDecodeAsNil() { + yyv4637[yyj4637] = "" + } else { + yyv4637[yyj4637] = Capability(r.DecodeString()) + } + + } + if yyrt4637 { + for ; yyj4637 < yyl4637; yyj4637++ { + yyv4637 = append(yyv4637, "") + yyh4637.ElemContainerState(yyj4637) + if r.TryDecodeAsNil() { + yyv4637[yyj4637] = "" + } else { + yyv4637[yyj4637] = Capability(r.DecodeString()) + } + + } + } + + } else { + yyj4637 := 0 + for ; !r.CheckBreak(); yyj4637++ { + + if yyj4637 >= len(yyv4637) { + yyv4637 = append(yyv4637, "") // var yyz4637 Capability + yyc4637 = true + } + yyh4637.ElemContainerState(yyj4637) + if yyj4637 < len(yyv4637) { + if r.TryDecodeAsNil() { + yyv4637[yyj4637] = "" + } else { + yyv4637[yyj4637] = Capability(r.DecodeString()) + } + + } else { + z.DecSwallow() + } + + } + if yyj4637 < len(yyv4637) { + yyv4637 = yyv4637[:yyj4637] + yyc4637 = true + } else if yyj4637 == 0 && yyv4637 == nil { + yyv4637 = []Capability{} + yyc4637 = true + } + } + yyh4637.End() + if yyc4637 { + *v = yyv4637 + } +} + +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 _, yyv4641 := range v { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yy4642 := &yyv4641 + yy4642.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 + + yyv4643 := *v + yyh4643, yyl4643 := z.DecSliceHelperStart() + var yyc4643 bool + if yyl4643 == 0 { + if yyv4643 == nil { + yyv4643 = []ContainerPort{} + yyc4643 = true + } else if len(yyv4643) != 0 { + yyv4643 = yyv4643[:0] + yyc4643 = true + } + } else if yyl4643 > 0 { + var yyrr4643, yyrl4643 int + var yyrt4643 bool + if yyl4643 > cap(yyv4643) { + + yyrg4643 := len(yyv4643) > 0 + yyv24643 := yyv4643 + yyrl4643, yyrt4643 = z.DecInferLen(yyl4643, z.DecBasicHandle().MaxInitLen, 56) + if yyrt4643 { + if yyrl4643 <= cap(yyv4643) { + yyv4643 = yyv4643[:yyrl4643] + } else { + yyv4643 = make([]ContainerPort, yyrl4643) + } + } else { + yyv4643 = make([]ContainerPort, yyrl4643) + } + yyc4643 = true + yyrr4643 = len(yyv4643) + if yyrg4643 { + copy(yyv4643, yyv24643) + } + } else if yyl4643 != len(yyv4643) { + yyv4643 = yyv4643[:yyl4643] + yyc4643 = true + } + yyj4643 := 0 + for ; yyj4643 < yyrr4643; yyj4643++ { + yyh4643.ElemContainerState(yyj4643) + if r.TryDecodeAsNil() { + yyv4643[yyj4643] = ContainerPort{} + } else { + yyv4644 := &yyv4643[yyj4643] + yyv4644.CodecDecodeSelf(d) + } + + } + if yyrt4643 { + for ; yyj4643 < yyl4643; yyj4643++ { + yyv4643 = append(yyv4643, ContainerPort{}) + yyh4643.ElemContainerState(yyj4643) + if r.TryDecodeAsNil() { + yyv4643[yyj4643] = ContainerPort{} + } else { + yyv4645 := &yyv4643[yyj4643] + yyv4645.CodecDecodeSelf(d) + } + + } + } + + } else { + yyj4643 := 0 + for ; !r.CheckBreak(); yyj4643++ { + + if yyj4643 >= len(yyv4643) { + yyv4643 = append(yyv4643, ContainerPort{}) // var yyz4643 ContainerPort + yyc4643 = true + } + yyh4643.ElemContainerState(yyj4643) + if yyj4643 < len(yyv4643) { + if r.TryDecodeAsNil() { + yyv4643[yyj4643] = ContainerPort{} + } else { + yyv4646 := &yyv4643[yyj4643] + yyv4646.CodecDecodeSelf(d) + } + + } else { + z.DecSwallow() + } + + } + if yyj4643 < len(yyv4643) { + yyv4643 = yyv4643[:yyj4643] + yyc4643 = true + } else if yyj4643 == 0 && yyv4643 == nil { + yyv4643 = []ContainerPort{} + yyc4643 = true + } + } + yyh4643.End() + if yyc4643 { + *v = yyv4643 + } +} + +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 _, yyv4647 := range v { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yy4648 := &yyv4647 + yy4648.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 + + yyv4649 := *v + yyh4649, yyl4649 := z.DecSliceHelperStart() + var yyc4649 bool + if yyl4649 == 0 { + if yyv4649 == nil { + yyv4649 = []EnvVar{} + yyc4649 = true + } else if len(yyv4649) != 0 { + yyv4649 = yyv4649[:0] + yyc4649 = true + } + } else if yyl4649 > 0 { + var yyrr4649, yyrl4649 int + var yyrt4649 bool + if yyl4649 > cap(yyv4649) { + + yyrg4649 := len(yyv4649) > 0 + yyv24649 := yyv4649 + yyrl4649, yyrt4649 = z.DecInferLen(yyl4649, z.DecBasicHandle().MaxInitLen, 40) + if yyrt4649 { + if yyrl4649 <= cap(yyv4649) { + yyv4649 = yyv4649[:yyrl4649] + } else { + yyv4649 = make([]EnvVar, yyrl4649) + } + } else { + yyv4649 = make([]EnvVar, yyrl4649) + } + yyc4649 = true + yyrr4649 = len(yyv4649) + if yyrg4649 { + copy(yyv4649, yyv24649) + } + } else if yyl4649 != len(yyv4649) { + yyv4649 = yyv4649[:yyl4649] + yyc4649 = true + } + yyj4649 := 0 + for ; yyj4649 < yyrr4649; yyj4649++ { + yyh4649.ElemContainerState(yyj4649) + if r.TryDecodeAsNil() { + yyv4649[yyj4649] = EnvVar{} + } else { + yyv4650 := &yyv4649[yyj4649] + yyv4650.CodecDecodeSelf(d) + } + + } + if yyrt4649 { + for ; yyj4649 < yyl4649; yyj4649++ { + yyv4649 = append(yyv4649, EnvVar{}) + yyh4649.ElemContainerState(yyj4649) + if r.TryDecodeAsNil() { + yyv4649[yyj4649] = EnvVar{} + } else { + yyv4651 := &yyv4649[yyj4649] + yyv4651.CodecDecodeSelf(d) + } + + } + } + + } else { + yyj4649 := 0 + for ; !r.CheckBreak(); yyj4649++ { + + if yyj4649 >= len(yyv4649) { + yyv4649 = append(yyv4649, EnvVar{}) // var yyz4649 EnvVar + yyc4649 = true + } + yyh4649.ElemContainerState(yyj4649) + if yyj4649 < len(yyv4649) { + if r.TryDecodeAsNil() { + yyv4649[yyj4649] = EnvVar{} + } else { + yyv4652 := &yyv4649[yyj4649] + yyv4652.CodecDecodeSelf(d) + } + + } else { + z.DecSwallow() + } + + } + if yyj4649 < len(yyv4649) { + yyv4649 = yyv4649[:yyj4649] + yyc4649 = true + } else if yyj4649 == 0 && yyv4649 == nil { + yyv4649 = []EnvVar{} + yyc4649 = true + } + } + yyh4649.End() + if yyc4649 { + *v = yyv4649 + } +} + +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 _, yyv4653 := range v { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yy4654 := &yyv4653 + yy4654.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 + + yyv4655 := *v + yyh4655, yyl4655 := z.DecSliceHelperStart() + var yyc4655 bool + if yyl4655 == 0 { + if yyv4655 == nil { + yyv4655 = []VolumeMount{} + yyc4655 = true + } else if len(yyv4655) != 0 { + yyv4655 = yyv4655[:0] + yyc4655 = true + } + } else if yyl4655 > 0 { + var yyrr4655, yyrl4655 int + var yyrt4655 bool + if yyl4655 > cap(yyv4655) { + + yyrg4655 := len(yyv4655) > 0 + yyv24655 := yyv4655 + yyrl4655, yyrt4655 = z.DecInferLen(yyl4655, z.DecBasicHandle().MaxInitLen, 56) + if yyrt4655 { + if yyrl4655 <= cap(yyv4655) { + yyv4655 = yyv4655[:yyrl4655] + } else { + yyv4655 = make([]VolumeMount, yyrl4655) + } + } else { + yyv4655 = make([]VolumeMount, yyrl4655) + } + yyc4655 = true + yyrr4655 = len(yyv4655) + if yyrg4655 { + copy(yyv4655, yyv24655) + } + } else if yyl4655 != len(yyv4655) { + yyv4655 = yyv4655[:yyl4655] + yyc4655 = true + } + yyj4655 := 0 + for ; yyj4655 < yyrr4655; yyj4655++ { + yyh4655.ElemContainerState(yyj4655) + if r.TryDecodeAsNil() { + yyv4655[yyj4655] = VolumeMount{} + } else { + yyv4656 := &yyv4655[yyj4655] + yyv4656.CodecDecodeSelf(d) + } + + } + if yyrt4655 { + for ; yyj4655 < yyl4655; yyj4655++ { + yyv4655 = append(yyv4655, VolumeMount{}) + yyh4655.ElemContainerState(yyj4655) + if r.TryDecodeAsNil() { + yyv4655[yyj4655] = VolumeMount{} + } else { + yyv4657 := &yyv4655[yyj4655] + yyv4657.CodecDecodeSelf(d) + } + + } + } + + } else { + yyj4655 := 0 + for ; !r.CheckBreak(); yyj4655++ { + + if yyj4655 >= len(yyv4655) { + yyv4655 = append(yyv4655, VolumeMount{}) // var yyz4655 VolumeMount + yyc4655 = true + } + yyh4655.ElemContainerState(yyj4655) + if yyj4655 < len(yyv4655) { + if r.TryDecodeAsNil() { + yyv4655[yyj4655] = VolumeMount{} + } else { + yyv4658 := &yyv4655[yyj4655] + yyv4658.CodecDecodeSelf(d) + } + + } else { + z.DecSwallow() + } + + } + if yyj4655 < len(yyv4655) { + yyv4655 = yyv4655[:yyj4655] + yyc4655 = true + } else if yyj4655 == 0 && yyv4655 == nil { + yyv4655 = []VolumeMount{} + yyc4655 = true + } + } + yyh4655.End() + if yyc4655 { + *v = yyv4655 + } +} + +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 _, yyv4659 := range v { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yy4660 := &yyv4659 + yy4660.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 + + yyv4661 := *v + yyh4661, yyl4661 := z.DecSliceHelperStart() + var yyc4661 bool + if yyl4661 == 0 { + if yyv4661 == nil { + yyv4661 = []NodeSelectorTerm{} + yyc4661 = true + } else if len(yyv4661) != 0 { + yyv4661 = yyv4661[:0] + yyc4661 = true + } + } else if yyl4661 > 0 { + var yyrr4661, yyrl4661 int + var yyrt4661 bool + if yyl4661 > cap(yyv4661) { + + yyrg4661 := len(yyv4661) > 0 + yyv24661 := yyv4661 + yyrl4661, yyrt4661 = z.DecInferLen(yyl4661, z.DecBasicHandle().MaxInitLen, 24) + if yyrt4661 { + if yyrl4661 <= cap(yyv4661) { + yyv4661 = yyv4661[:yyrl4661] + } else { + yyv4661 = make([]NodeSelectorTerm, yyrl4661) + } + } else { + yyv4661 = make([]NodeSelectorTerm, yyrl4661) + } + yyc4661 = true + yyrr4661 = len(yyv4661) + if yyrg4661 { + copy(yyv4661, yyv24661) + } + } else if yyl4661 != len(yyv4661) { + yyv4661 = yyv4661[:yyl4661] + yyc4661 = true + } + yyj4661 := 0 + for ; yyj4661 < yyrr4661; yyj4661++ { + yyh4661.ElemContainerState(yyj4661) + if r.TryDecodeAsNil() { + yyv4661[yyj4661] = NodeSelectorTerm{} + } else { + yyv4662 := &yyv4661[yyj4661] + yyv4662.CodecDecodeSelf(d) + } + + } + if yyrt4661 { + for ; yyj4661 < yyl4661; yyj4661++ { + yyv4661 = append(yyv4661, NodeSelectorTerm{}) + yyh4661.ElemContainerState(yyj4661) + if r.TryDecodeAsNil() { + yyv4661[yyj4661] = NodeSelectorTerm{} + } else { + yyv4663 := &yyv4661[yyj4661] + yyv4663.CodecDecodeSelf(d) + } + + } + } + + } else { + yyj4661 := 0 + for ; !r.CheckBreak(); yyj4661++ { + + if yyj4661 >= len(yyv4661) { + yyv4661 = append(yyv4661, NodeSelectorTerm{}) // var yyz4661 NodeSelectorTerm + yyc4661 = true + } + yyh4661.ElemContainerState(yyj4661) + if yyj4661 < len(yyv4661) { + if r.TryDecodeAsNil() { + yyv4661[yyj4661] = NodeSelectorTerm{} + } else { + yyv4664 := &yyv4661[yyj4661] + yyv4664.CodecDecodeSelf(d) + } + + } else { + z.DecSwallow() + } + + } + if yyj4661 < len(yyv4661) { + yyv4661 = yyv4661[:yyj4661] + yyc4661 = true + } else if yyj4661 == 0 && yyv4661 == nil { + yyv4661 = []NodeSelectorTerm{} + yyc4661 = true + } + } + yyh4661.End() + if yyc4661 { + *v = yyv4661 + } +} + +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 _, yyv4665 := range v { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yy4666 := &yyv4665 + yy4666.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 + + yyv4667 := *v + yyh4667, yyl4667 := z.DecSliceHelperStart() + var yyc4667 bool + if yyl4667 == 0 { + if yyv4667 == nil { + yyv4667 = []NodeSelectorRequirement{} + yyc4667 = true + } else if len(yyv4667) != 0 { + yyv4667 = yyv4667[:0] + yyc4667 = true + } + } else if yyl4667 > 0 { + var yyrr4667, yyrl4667 int + var yyrt4667 bool + if yyl4667 > cap(yyv4667) { + + yyrg4667 := len(yyv4667) > 0 + yyv24667 := yyv4667 + yyrl4667, yyrt4667 = z.DecInferLen(yyl4667, z.DecBasicHandle().MaxInitLen, 56) + if yyrt4667 { + if yyrl4667 <= cap(yyv4667) { + yyv4667 = yyv4667[:yyrl4667] + } else { + yyv4667 = make([]NodeSelectorRequirement, yyrl4667) + } + } else { + yyv4667 = make([]NodeSelectorRequirement, yyrl4667) + } + yyc4667 = true + yyrr4667 = len(yyv4667) + if yyrg4667 { + copy(yyv4667, yyv24667) + } + } else if yyl4667 != len(yyv4667) { + yyv4667 = yyv4667[:yyl4667] + yyc4667 = true + } + yyj4667 := 0 + for ; yyj4667 < yyrr4667; yyj4667++ { + yyh4667.ElemContainerState(yyj4667) + if r.TryDecodeAsNil() { + yyv4667[yyj4667] = NodeSelectorRequirement{} + } else { + yyv4668 := &yyv4667[yyj4667] + yyv4668.CodecDecodeSelf(d) + } + + } + if yyrt4667 { + for ; yyj4667 < yyl4667; yyj4667++ { + yyv4667 = append(yyv4667, NodeSelectorRequirement{}) + yyh4667.ElemContainerState(yyj4667) + if r.TryDecodeAsNil() { + yyv4667[yyj4667] = NodeSelectorRequirement{} + } else { + yyv4669 := &yyv4667[yyj4667] + yyv4669.CodecDecodeSelf(d) + } + + } + } + + } else { + yyj4667 := 0 + for ; !r.CheckBreak(); yyj4667++ { + + if yyj4667 >= len(yyv4667) { + yyv4667 = append(yyv4667, NodeSelectorRequirement{}) // var yyz4667 NodeSelectorRequirement + yyc4667 = true + } + yyh4667.ElemContainerState(yyj4667) + if yyj4667 < len(yyv4667) { + if r.TryDecodeAsNil() { + yyv4667[yyj4667] = NodeSelectorRequirement{} + } else { + yyv4670 := &yyv4667[yyj4667] + yyv4670.CodecDecodeSelf(d) + } + + } else { + z.DecSwallow() + } + + } + if yyj4667 < len(yyv4667) { + yyv4667 = yyv4667[:yyj4667] + yyc4667 = true + } else if yyj4667 == 0 && yyv4667 == nil { + yyv4667 = []NodeSelectorRequirement{} + yyc4667 = true + } + } + yyh4667.End() + if yyc4667 { + *v = yyv4667 + } +} + +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 _, yyv4671 := range v { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yy4672 := &yyv4671 + yy4672.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 + + yyv4673 := *v + yyh4673, yyl4673 := z.DecSliceHelperStart() + var yyc4673 bool + if yyl4673 == 0 { + if yyv4673 == nil { + yyv4673 = []PodAffinityTerm{} + yyc4673 = true + } else if len(yyv4673) != 0 { + yyv4673 = yyv4673[:0] + yyc4673 = true + } + } else if yyl4673 > 0 { + var yyrr4673, yyrl4673 int + var yyrt4673 bool + if yyl4673 > cap(yyv4673) { + + yyrg4673 := len(yyv4673) > 0 + yyv24673 := yyv4673 + yyrl4673, yyrt4673 = z.DecInferLen(yyl4673, z.DecBasicHandle().MaxInitLen, 48) + if yyrt4673 { + if yyrl4673 <= cap(yyv4673) { + yyv4673 = yyv4673[:yyrl4673] + } else { + yyv4673 = make([]PodAffinityTerm, yyrl4673) + } + } else { + yyv4673 = make([]PodAffinityTerm, yyrl4673) + } + yyc4673 = true + yyrr4673 = len(yyv4673) + if yyrg4673 { + copy(yyv4673, yyv24673) + } + } else if yyl4673 != len(yyv4673) { + yyv4673 = yyv4673[:yyl4673] + yyc4673 = true + } + yyj4673 := 0 + for ; yyj4673 < yyrr4673; yyj4673++ { + yyh4673.ElemContainerState(yyj4673) + if r.TryDecodeAsNil() { + yyv4673[yyj4673] = PodAffinityTerm{} + } else { + yyv4674 := &yyv4673[yyj4673] + yyv4674.CodecDecodeSelf(d) + } + + } + if yyrt4673 { + for ; yyj4673 < yyl4673; yyj4673++ { + yyv4673 = append(yyv4673, PodAffinityTerm{}) + yyh4673.ElemContainerState(yyj4673) + if r.TryDecodeAsNil() { + yyv4673[yyj4673] = PodAffinityTerm{} + } else { + yyv4675 := &yyv4673[yyj4673] + yyv4675.CodecDecodeSelf(d) + } + + } + } + + } else { + yyj4673 := 0 + for ; !r.CheckBreak(); yyj4673++ { + + if yyj4673 >= len(yyv4673) { + yyv4673 = append(yyv4673, PodAffinityTerm{}) // var yyz4673 PodAffinityTerm + yyc4673 = true + } + yyh4673.ElemContainerState(yyj4673) + if yyj4673 < len(yyv4673) { + if r.TryDecodeAsNil() { + yyv4673[yyj4673] = PodAffinityTerm{} + } else { + yyv4676 := &yyv4673[yyj4673] + yyv4676.CodecDecodeSelf(d) + } + + } else { + z.DecSwallow() + } + + } + if yyj4673 < len(yyv4673) { + yyv4673 = yyv4673[:yyj4673] + yyc4673 = true + } else if yyj4673 == 0 && yyv4673 == nil { + yyv4673 = []PodAffinityTerm{} + yyc4673 = true + } + } + yyh4673.End() + if yyc4673 { + *v = yyv4673 + } +} + +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 _, yyv4677 := range v { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yy4678 := &yyv4677 + yy4678.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 + + yyv4679 := *v + yyh4679, yyl4679 := z.DecSliceHelperStart() + var yyc4679 bool + if yyl4679 == 0 { + if yyv4679 == nil { + yyv4679 = []WeightedPodAffinityTerm{} + yyc4679 = true + } else if len(yyv4679) != 0 { + yyv4679 = yyv4679[:0] + yyc4679 = true + } + } else if yyl4679 > 0 { + var yyrr4679, yyrl4679 int + var yyrt4679 bool + if yyl4679 > cap(yyv4679) { + + yyrg4679 := len(yyv4679) > 0 + yyv24679 := yyv4679 + yyrl4679, yyrt4679 = z.DecInferLen(yyl4679, z.DecBasicHandle().MaxInitLen, 56) + if yyrt4679 { + if yyrl4679 <= cap(yyv4679) { + yyv4679 = yyv4679[:yyrl4679] + } else { + yyv4679 = make([]WeightedPodAffinityTerm, yyrl4679) + } + } else { + yyv4679 = make([]WeightedPodAffinityTerm, yyrl4679) + } + yyc4679 = true + yyrr4679 = len(yyv4679) + if yyrg4679 { + copy(yyv4679, yyv24679) + } + } else if yyl4679 != len(yyv4679) { + yyv4679 = yyv4679[:yyl4679] + yyc4679 = true + } + yyj4679 := 0 + for ; yyj4679 < yyrr4679; yyj4679++ { + yyh4679.ElemContainerState(yyj4679) + if r.TryDecodeAsNil() { + yyv4679[yyj4679] = WeightedPodAffinityTerm{} + } else { + yyv4680 := &yyv4679[yyj4679] + yyv4680.CodecDecodeSelf(d) + } + + } + if yyrt4679 { + for ; yyj4679 < yyl4679; yyj4679++ { + yyv4679 = append(yyv4679, WeightedPodAffinityTerm{}) + yyh4679.ElemContainerState(yyj4679) + if r.TryDecodeAsNil() { + yyv4679[yyj4679] = WeightedPodAffinityTerm{} + } else { + yyv4681 := &yyv4679[yyj4679] + yyv4681.CodecDecodeSelf(d) + } + + } + } + + } else { + yyj4679 := 0 + for ; !r.CheckBreak(); yyj4679++ { + + if yyj4679 >= len(yyv4679) { + yyv4679 = append(yyv4679, WeightedPodAffinityTerm{}) // var yyz4679 WeightedPodAffinityTerm + yyc4679 = true + } + yyh4679.ElemContainerState(yyj4679) + if yyj4679 < len(yyv4679) { + if r.TryDecodeAsNil() { + yyv4679[yyj4679] = WeightedPodAffinityTerm{} + } else { + yyv4682 := &yyv4679[yyj4679] + yyv4682.CodecDecodeSelf(d) + } + + } else { + z.DecSwallow() + } + + } + if yyj4679 < len(yyv4679) { + yyv4679 = yyv4679[:yyj4679] + yyc4679 = true + } else if yyj4679 == 0 && yyv4679 == nil { + yyv4679 = []WeightedPodAffinityTerm{} + yyc4679 = true + } + } + yyh4679.End() + if yyc4679 { + *v = yyv4679 + } +} + +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 _, yyv4683 := range v { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yy4684 := &yyv4683 + yy4684.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 + + yyv4685 := *v + yyh4685, yyl4685 := z.DecSliceHelperStart() + var yyc4685 bool + if yyl4685 == 0 { + if yyv4685 == nil { + yyv4685 = []PreferredSchedulingTerm{} + yyc4685 = true + } else if len(yyv4685) != 0 { + yyv4685 = yyv4685[:0] + yyc4685 = true + } + } else if yyl4685 > 0 { + var yyrr4685, yyrl4685 int + var yyrt4685 bool + if yyl4685 > cap(yyv4685) { + + yyrg4685 := len(yyv4685) > 0 + yyv24685 := yyv4685 + yyrl4685, yyrt4685 = z.DecInferLen(yyl4685, z.DecBasicHandle().MaxInitLen, 32) + if yyrt4685 { + if yyrl4685 <= cap(yyv4685) { + yyv4685 = yyv4685[:yyrl4685] + } else { + yyv4685 = make([]PreferredSchedulingTerm, yyrl4685) + } + } else { + yyv4685 = make([]PreferredSchedulingTerm, yyrl4685) + } + yyc4685 = true + yyrr4685 = len(yyv4685) + if yyrg4685 { + copy(yyv4685, yyv24685) + } + } else if yyl4685 != len(yyv4685) { + yyv4685 = yyv4685[:yyl4685] + yyc4685 = true + } + yyj4685 := 0 + for ; yyj4685 < yyrr4685; yyj4685++ { + yyh4685.ElemContainerState(yyj4685) + if r.TryDecodeAsNil() { + yyv4685[yyj4685] = PreferredSchedulingTerm{} + } else { + yyv4686 := &yyv4685[yyj4685] + yyv4686.CodecDecodeSelf(d) + } + + } + if yyrt4685 { + for ; yyj4685 < yyl4685; yyj4685++ { + yyv4685 = append(yyv4685, PreferredSchedulingTerm{}) + yyh4685.ElemContainerState(yyj4685) + if r.TryDecodeAsNil() { + yyv4685[yyj4685] = PreferredSchedulingTerm{} + } else { + yyv4687 := &yyv4685[yyj4685] + yyv4687.CodecDecodeSelf(d) + } + + } + } + + } else { + yyj4685 := 0 + for ; !r.CheckBreak(); yyj4685++ { + + if yyj4685 >= len(yyv4685) { + yyv4685 = append(yyv4685, PreferredSchedulingTerm{}) // var yyz4685 PreferredSchedulingTerm + yyc4685 = true + } + yyh4685.ElemContainerState(yyj4685) + if yyj4685 < len(yyv4685) { + if r.TryDecodeAsNil() { + yyv4685[yyj4685] = PreferredSchedulingTerm{} + } else { + yyv4688 := &yyv4685[yyj4685] + yyv4688.CodecDecodeSelf(d) + } + + } else { + z.DecSwallow() + } + + } + if yyj4685 < len(yyv4685) { + yyv4685 = yyv4685[:yyj4685] + yyc4685 = true + } else if yyj4685 == 0 && yyv4685 == nil { + yyv4685 = []PreferredSchedulingTerm{} + yyc4685 = true + } + } + yyh4685.End() + if yyc4685 { + *v = yyv4685 + } +} + +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 _, yyv4689 := range v { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yy4690 := &yyv4689 + yy4690.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 + + yyv4691 := *v + yyh4691, yyl4691 := z.DecSliceHelperStart() + var yyc4691 bool + if yyl4691 == 0 { + if yyv4691 == nil { + yyv4691 = []Volume{} + yyc4691 = true + } else if len(yyv4691) != 0 { + yyv4691 = yyv4691[:0] + yyc4691 = true + } + } else if yyl4691 > 0 { + var yyrr4691, yyrl4691 int + var yyrt4691 bool + if yyl4691 > cap(yyv4691) { + + yyrg4691 := len(yyv4691) > 0 + yyv24691 := yyv4691 + yyrl4691, yyrt4691 = z.DecInferLen(yyl4691, z.DecBasicHandle().MaxInitLen, 200) + if yyrt4691 { + if yyrl4691 <= cap(yyv4691) { + yyv4691 = yyv4691[:yyrl4691] + } else { + yyv4691 = make([]Volume, yyrl4691) + } + } else { + yyv4691 = make([]Volume, yyrl4691) + } + yyc4691 = true + yyrr4691 = len(yyv4691) + if yyrg4691 { + copy(yyv4691, yyv24691) + } + } else if yyl4691 != len(yyv4691) { + yyv4691 = yyv4691[:yyl4691] + yyc4691 = true + } + yyj4691 := 0 + for ; yyj4691 < yyrr4691; yyj4691++ { + yyh4691.ElemContainerState(yyj4691) + if r.TryDecodeAsNil() { + yyv4691[yyj4691] = Volume{} + } else { + yyv4692 := &yyv4691[yyj4691] + yyv4692.CodecDecodeSelf(d) + } + + } + if yyrt4691 { + for ; yyj4691 < yyl4691; yyj4691++ { + yyv4691 = append(yyv4691, Volume{}) + yyh4691.ElemContainerState(yyj4691) + if r.TryDecodeAsNil() { + yyv4691[yyj4691] = Volume{} + } else { + yyv4693 := &yyv4691[yyj4691] + yyv4693.CodecDecodeSelf(d) + } + + } + } + + } else { + yyj4691 := 0 + for ; !r.CheckBreak(); yyj4691++ { + + if yyj4691 >= len(yyv4691) { + yyv4691 = append(yyv4691, Volume{}) // var yyz4691 Volume + yyc4691 = true + } + yyh4691.ElemContainerState(yyj4691) + if yyj4691 < len(yyv4691) { + if r.TryDecodeAsNil() { + yyv4691[yyj4691] = Volume{} + } else { + yyv4694 := &yyv4691[yyj4691] + yyv4694.CodecDecodeSelf(d) + } + + } else { + z.DecSwallow() + } + + } + if yyj4691 < len(yyv4691) { + yyv4691 = yyv4691[:yyj4691] + yyc4691 = true + } else if yyj4691 == 0 && yyv4691 == nil { + yyv4691 = []Volume{} + yyc4691 = true + } + } + yyh4691.End() + if yyc4691 { + *v = yyv4691 + } +} + +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 _, yyv4695 := range v { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yy4696 := &yyv4695 + yy4696.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 + + yyv4697 := *v + yyh4697, yyl4697 := z.DecSliceHelperStart() + var yyc4697 bool + if yyl4697 == 0 { + if yyv4697 == nil { + yyv4697 = []Container{} + yyc4697 = true + } else if len(yyv4697) != 0 { + yyv4697 = yyv4697[:0] + yyc4697 = true + } + } else if yyl4697 > 0 { + var yyrr4697, yyrl4697 int + var yyrt4697 bool + if yyl4697 > cap(yyv4697) { + + yyrg4697 := len(yyv4697) > 0 + yyv24697 := yyv4697 + yyrl4697, yyrt4697 = z.DecInferLen(yyl4697, z.DecBasicHandle().MaxInitLen, 256) + if yyrt4697 { + if yyrl4697 <= cap(yyv4697) { + yyv4697 = yyv4697[:yyrl4697] + } else { + yyv4697 = make([]Container, yyrl4697) + } + } else { + yyv4697 = make([]Container, yyrl4697) + } + yyc4697 = true + yyrr4697 = len(yyv4697) + if yyrg4697 { + copy(yyv4697, yyv24697) + } + } else if yyl4697 != len(yyv4697) { + yyv4697 = yyv4697[:yyl4697] + yyc4697 = true + } + yyj4697 := 0 + for ; yyj4697 < yyrr4697; yyj4697++ { + yyh4697.ElemContainerState(yyj4697) + if r.TryDecodeAsNil() { + yyv4697[yyj4697] = Container{} + } else { + yyv4698 := &yyv4697[yyj4697] + yyv4698.CodecDecodeSelf(d) + } + + } + if yyrt4697 { + for ; yyj4697 < yyl4697; yyj4697++ { + yyv4697 = append(yyv4697, Container{}) + yyh4697.ElemContainerState(yyj4697) + if r.TryDecodeAsNil() { + yyv4697[yyj4697] = Container{} + } else { + yyv4699 := &yyv4697[yyj4697] + yyv4699.CodecDecodeSelf(d) + } + + } + } + + } else { + yyj4697 := 0 + for ; !r.CheckBreak(); yyj4697++ { + + if yyj4697 >= len(yyv4697) { + yyv4697 = append(yyv4697, Container{}) // var yyz4697 Container + yyc4697 = true + } + yyh4697.ElemContainerState(yyj4697) + if yyj4697 < len(yyv4697) { + if r.TryDecodeAsNil() { + yyv4697[yyj4697] = Container{} + } else { + yyv4700 := &yyv4697[yyj4697] + yyv4700.CodecDecodeSelf(d) + } + + } else { + z.DecSwallow() + } + + } + if yyj4697 < len(yyv4697) { + yyv4697 = yyv4697[:yyj4697] + yyc4697 = true + } else if yyj4697 == 0 && yyv4697 == nil { + yyv4697 = []Container{} + yyc4697 = true + } + } + yyh4697.End() + if yyc4697 { + *v = yyv4697 + } +} + +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 _, yyv4701 := range v { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yy4702 := &yyv4701 + yy4702.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 + + yyv4703 := *v + yyh4703, yyl4703 := z.DecSliceHelperStart() + var yyc4703 bool + if yyl4703 == 0 { + if yyv4703 == nil { + yyv4703 = []LocalObjectReference{} + yyc4703 = true + } else if len(yyv4703) != 0 { + yyv4703 = yyv4703[:0] + yyc4703 = true + } + } else if yyl4703 > 0 { + var yyrr4703, yyrl4703 int + var yyrt4703 bool + if yyl4703 > cap(yyv4703) { + + yyrg4703 := len(yyv4703) > 0 + yyv24703 := yyv4703 + yyrl4703, yyrt4703 = z.DecInferLen(yyl4703, z.DecBasicHandle().MaxInitLen, 16) + if yyrt4703 { + if yyrl4703 <= cap(yyv4703) { + yyv4703 = yyv4703[:yyrl4703] + } else { + yyv4703 = make([]LocalObjectReference, yyrl4703) + } + } else { + yyv4703 = make([]LocalObjectReference, yyrl4703) + } + yyc4703 = true + yyrr4703 = len(yyv4703) + if yyrg4703 { + copy(yyv4703, yyv24703) + } + } else if yyl4703 != len(yyv4703) { + yyv4703 = yyv4703[:yyl4703] + yyc4703 = true + } + yyj4703 := 0 + for ; yyj4703 < yyrr4703; yyj4703++ { + yyh4703.ElemContainerState(yyj4703) + if r.TryDecodeAsNil() { + yyv4703[yyj4703] = LocalObjectReference{} + } else { + yyv4704 := &yyv4703[yyj4703] + yyv4704.CodecDecodeSelf(d) + } + + } + if yyrt4703 { + for ; yyj4703 < yyl4703; yyj4703++ { + yyv4703 = append(yyv4703, LocalObjectReference{}) + yyh4703.ElemContainerState(yyj4703) + if r.TryDecodeAsNil() { + yyv4703[yyj4703] = LocalObjectReference{} + } else { + yyv4705 := &yyv4703[yyj4703] + yyv4705.CodecDecodeSelf(d) + } + + } + } + + } else { + yyj4703 := 0 + for ; !r.CheckBreak(); yyj4703++ { + + if yyj4703 >= len(yyv4703) { + yyv4703 = append(yyv4703, LocalObjectReference{}) // var yyz4703 LocalObjectReference + yyc4703 = true + } + yyh4703.ElemContainerState(yyj4703) + if yyj4703 < len(yyv4703) { + if r.TryDecodeAsNil() { + yyv4703[yyj4703] = LocalObjectReference{} + } else { + yyv4706 := &yyv4703[yyj4703] + yyv4706.CodecDecodeSelf(d) + } + + } else { + z.DecSwallow() + } + + } + if yyj4703 < len(yyv4703) { + yyv4703 = yyv4703[:yyj4703] + yyc4703 = true + } else if yyj4703 == 0 && yyv4703 == nil { + yyv4703 = []LocalObjectReference{} + yyc4703 = true + } + } + yyh4703.End() + if yyc4703 { + *v = yyv4703 + } +} + +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 _, yyv4707 := range v { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yy4708 := &yyv4707 + yy4708.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 + + yyv4709 := *v + yyh4709, yyl4709 := z.DecSliceHelperStart() + var yyc4709 bool + if yyl4709 == 0 { + if yyv4709 == nil { + yyv4709 = []PodCondition{} + yyc4709 = true + } else if len(yyv4709) != 0 { + yyv4709 = yyv4709[:0] + yyc4709 = true + } + } else if yyl4709 > 0 { + var yyrr4709, yyrl4709 int + var yyrt4709 bool + if yyl4709 > cap(yyv4709) { + + yyrg4709 := len(yyv4709) > 0 + yyv24709 := yyv4709 + yyrl4709, yyrt4709 = z.DecInferLen(yyl4709, z.DecBasicHandle().MaxInitLen, 112) + if yyrt4709 { + if yyrl4709 <= cap(yyv4709) { + yyv4709 = yyv4709[:yyrl4709] + } else { + yyv4709 = make([]PodCondition, yyrl4709) + } + } else { + yyv4709 = make([]PodCondition, yyrl4709) + } + yyc4709 = true + yyrr4709 = len(yyv4709) + if yyrg4709 { + copy(yyv4709, yyv24709) + } + } else if yyl4709 != len(yyv4709) { + yyv4709 = yyv4709[:yyl4709] + yyc4709 = true + } + yyj4709 := 0 + for ; yyj4709 < yyrr4709; yyj4709++ { + yyh4709.ElemContainerState(yyj4709) + if r.TryDecodeAsNil() { + yyv4709[yyj4709] = PodCondition{} + } else { + yyv4710 := &yyv4709[yyj4709] + yyv4710.CodecDecodeSelf(d) + } + + } + if yyrt4709 { + for ; yyj4709 < yyl4709; yyj4709++ { + yyv4709 = append(yyv4709, PodCondition{}) + yyh4709.ElemContainerState(yyj4709) + if r.TryDecodeAsNil() { + yyv4709[yyj4709] = PodCondition{} + } else { + yyv4711 := &yyv4709[yyj4709] + yyv4711.CodecDecodeSelf(d) + } + + } + } + + } else { + yyj4709 := 0 + for ; !r.CheckBreak(); yyj4709++ { + + if yyj4709 >= len(yyv4709) { + yyv4709 = append(yyv4709, PodCondition{}) // var yyz4709 PodCondition + yyc4709 = true + } + yyh4709.ElemContainerState(yyj4709) + if yyj4709 < len(yyv4709) { + if r.TryDecodeAsNil() { + yyv4709[yyj4709] = PodCondition{} + } else { + yyv4712 := &yyv4709[yyj4709] + yyv4712.CodecDecodeSelf(d) + } + + } else { + z.DecSwallow() + } + + } + if yyj4709 < len(yyv4709) { + yyv4709 = yyv4709[:yyj4709] + yyc4709 = true + } else if yyj4709 == 0 && yyv4709 == nil { + yyv4709 = []PodCondition{} + yyc4709 = true + } + } + yyh4709.End() + if yyc4709 { + *v = yyv4709 + } +} + +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 _, yyv4713 := range v { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yy4714 := &yyv4713 + yy4714.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 + + yyv4715 := *v + yyh4715, yyl4715 := z.DecSliceHelperStart() + var yyc4715 bool + if yyl4715 == 0 { + if yyv4715 == nil { + yyv4715 = []ContainerStatus{} + yyc4715 = true + } else if len(yyv4715) != 0 { + yyv4715 = yyv4715[:0] + yyc4715 = true + } + } else if yyl4715 > 0 { + var yyrr4715, yyrl4715 int + var yyrt4715 bool + if yyl4715 > cap(yyv4715) { + + yyrg4715 := len(yyv4715) > 0 + yyv24715 := yyv4715 + yyrl4715, yyrt4715 = z.DecInferLen(yyl4715, z.DecBasicHandle().MaxInitLen, 120) + if yyrt4715 { + if yyrl4715 <= cap(yyv4715) { + yyv4715 = yyv4715[:yyrl4715] + } else { + yyv4715 = make([]ContainerStatus, yyrl4715) + } + } else { + yyv4715 = make([]ContainerStatus, yyrl4715) + } + yyc4715 = true + yyrr4715 = len(yyv4715) + if yyrg4715 { + copy(yyv4715, yyv24715) + } + } else if yyl4715 != len(yyv4715) { + yyv4715 = yyv4715[:yyl4715] + yyc4715 = true + } + yyj4715 := 0 + for ; yyj4715 < yyrr4715; yyj4715++ { + yyh4715.ElemContainerState(yyj4715) + if r.TryDecodeAsNil() { + yyv4715[yyj4715] = ContainerStatus{} + } else { + yyv4716 := &yyv4715[yyj4715] + yyv4716.CodecDecodeSelf(d) + } + + } + if yyrt4715 { + for ; yyj4715 < yyl4715; yyj4715++ { + yyv4715 = append(yyv4715, ContainerStatus{}) + yyh4715.ElemContainerState(yyj4715) + if r.TryDecodeAsNil() { + yyv4715[yyj4715] = ContainerStatus{} + } else { + yyv4717 := &yyv4715[yyj4715] + yyv4717.CodecDecodeSelf(d) + } + + } + } + + } else { + yyj4715 := 0 + for ; !r.CheckBreak(); yyj4715++ { + + if yyj4715 >= len(yyv4715) { + yyv4715 = append(yyv4715, ContainerStatus{}) // var yyz4715 ContainerStatus + yyc4715 = true + } + yyh4715.ElemContainerState(yyj4715) + if yyj4715 < len(yyv4715) { + if r.TryDecodeAsNil() { + yyv4715[yyj4715] = ContainerStatus{} + } else { + yyv4718 := &yyv4715[yyj4715] + yyv4718.CodecDecodeSelf(d) + } + + } else { + z.DecSwallow() + } + + } + if yyj4715 < len(yyv4715) { + yyv4715 = yyv4715[:yyj4715] + yyc4715 = true + } else if yyj4715 == 0 && yyv4715 == nil { + yyv4715 = []ContainerStatus{} + yyc4715 = true + } + } + yyh4715.End() + if yyc4715 { + *v = yyv4715 + } +} + +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 _, yyv4719 := range v { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yy4720 := &yyv4719 + yy4720.CodecEncodeSelf(e) } z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -58552,83 +59632,83 @@ func (x codecSelfer1234) decSlicePod(v *[]Pod, d *codec1978.Decoder) { 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 + yyv4721 := *v + yyh4721, yyl4721 := z.DecSliceHelperStart() + var yyc4721 bool + if yyl4721 == 0 { + if yyv4721 == nil { + yyv4721 = []Pod{} + yyc4721 = true + } else if len(yyv4721) != 0 { + yyv4721 = yyv4721[:0] + yyc4721 = true } - } else if yyl4638 > 0 { - var yyrr4638, yyrl4638 int - var yyrt4638 bool - if yyl4638 > cap(yyv4638) { + } else if yyl4721 > 0 { + var yyrr4721, yyrl4721 int + var yyrt4721 bool + if yyl4721 > cap(yyv4721) { - yyrg4638 := len(yyv4638) > 0 - yyv24638 := yyv4638 - yyrl4638, yyrt4638 = z.DecInferLen(yyl4638, z.DecBasicHandle().MaxInitLen, 664) - if yyrt4638 { - if yyrl4638 <= cap(yyv4638) { - yyv4638 = yyv4638[:yyrl4638] + yyrg4721 := len(yyv4721) > 0 + yyv24721 := yyv4721 + yyrl4721, yyrt4721 = z.DecInferLen(yyl4721, z.DecBasicHandle().MaxInitLen, 664) + if yyrt4721 { + if yyrl4721 <= cap(yyv4721) { + yyv4721 = yyv4721[:yyrl4721] } else { - yyv4638 = make([]Pod, yyrl4638) + yyv4721 = make([]Pod, yyrl4721) } } else { - yyv4638 = make([]Pod, yyrl4638) + yyv4721 = make([]Pod, yyrl4721) } - yyc4638 = true - yyrr4638 = len(yyv4638) - if yyrg4638 { - copy(yyv4638, yyv24638) + yyc4721 = true + yyrr4721 = len(yyv4721) + if yyrg4721 { + copy(yyv4721, yyv24721) } - } else if yyl4638 != len(yyv4638) { - yyv4638 = yyv4638[:yyl4638] - yyc4638 = true + } else if yyl4721 != len(yyv4721) { + yyv4721 = yyv4721[:yyl4721] + yyc4721 = true } - yyj4638 := 0 - for ; yyj4638 < yyrr4638; yyj4638++ { - yyh4638.ElemContainerState(yyj4638) + yyj4721 := 0 + for ; yyj4721 < yyrr4721; yyj4721++ { + yyh4721.ElemContainerState(yyj4721) if r.TryDecodeAsNil() { - yyv4638[yyj4638] = Pod{} + yyv4721[yyj4721] = Pod{} } else { - yyv4639 := &yyv4638[yyj4638] - yyv4639.CodecDecodeSelf(d) + yyv4722 := &yyv4721[yyj4721] + yyv4722.CodecDecodeSelf(d) } } - if yyrt4638 { - for ; yyj4638 < yyl4638; yyj4638++ { - yyv4638 = append(yyv4638, Pod{}) - yyh4638.ElemContainerState(yyj4638) + if yyrt4721 { + for ; yyj4721 < yyl4721; yyj4721++ { + yyv4721 = append(yyv4721, Pod{}) + yyh4721.ElemContainerState(yyj4721) if r.TryDecodeAsNil() { - yyv4638[yyj4638] = Pod{} + yyv4721[yyj4721] = Pod{} } else { - yyv4640 := &yyv4638[yyj4638] - yyv4640.CodecDecodeSelf(d) + yyv4723 := &yyv4721[yyj4721] + yyv4723.CodecDecodeSelf(d) } } } } else { - yyj4638 := 0 - for ; !r.CheckBreak(); yyj4638++ { + yyj4721 := 0 + for ; !r.CheckBreak(); yyj4721++ { - if yyj4638 >= len(yyv4638) { - yyv4638 = append(yyv4638, Pod{}) // var yyz4638 Pod - yyc4638 = true + if yyj4721 >= len(yyv4721) { + yyv4721 = append(yyv4721, Pod{}) // var yyz4721 Pod + yyc4721 = true } - yyh4638.ElemContainerState(yyj4638) - if yyj4638 < len(yyv4638) { + yyh4721.ElemContainerState(yyj4721) + if yyj4721 < len(yyv4721) { if r.TryDecodeAsNil() { - yyv4638[yyj4638] = Pod{} + yyv4721[yyj4721] = Pod{} } else { - yyv4641 := &yyv4638[yyj4638] - yyv4641.CodecDecodeSelf(d) + yyv4724 := &yyv4721[yyj4721] + yyv4724.CodecDecodeSelf(d) } } else { @@ -58636,17 +59716,17 @@ func (x codecSelfer1234) decSlicePod(v *[]Pod, d *codec1978.Decoder) { } } - if yyj4638 < len(yyv4638) { - yyv4638 = yyv4638[:yyj4638] - yyc4638 = true - } else if yyj4638 == 0 && yyv4638 == nil { - yyv4638 = []Pod{} - yyc4638 = true + if yyj4721 < len(yyv4721) { + yyv4721 = yyv4721[:yyj4721] + yyc4721 = true + } else if yyj4721 == 0 && yyv4721 == nil { + yyv4721 = []Pod{} + yyc4721 = true } } - yyh4638.End() - if yyc4638 { - *v = yyv4638 + yyh4721.End() + if yyc4721 { + *v = yyv4721 } } @@ -58655,10 +59735,10 @@ func (x codecSelfer1234) encSlicePodTemplate(v []PodTemplate, e *codec1978.Encod z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r r.EncodeArrayStart(len(v)) - for _, yyv4642 := range v { + for _, yyv4725 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy4643 := &yyv4642 - yy4643.CodecEncodeSelf(e) + yy4726 := &yyv4725 + yy4726.CodecEncodeSelf(e) } z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -58668,1635 +59748,12 @@ func (x codecSelfer1234) decSlicePodTemplate(v *[]PodTemplate, d *codec1978.Deco z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yyv4644 := *v - yyh4644, yyl4644 := z.DecSliceHelperStart() - var yyc4644 bool - if yyl4644 == 0 { - if yyv4644 == nil { - yyv4644 = []PodTemplate{} - yyc4644 = true - } else if len(yyv4644) != 0 { - yyv4644 = yyv4644[:0] - yyc4644 = true - } - } else if yyl4644 > 0 { - var yyrr4644, yyrl4644 int - var yyrt4644 bool - if yyl4644 > cap(yyv4644) { - - yyrg4644 := len(yyv4644) > 0 - yyv24644 := yyv4644 - yyrl4644, yyrt4644 = z.DecInferLen(yyl4644, z.DecBasicHandle().MaxInitLen, 728) - if yyrt4644 { - if yyrl4644 <= cap(yyv4644) { - yyv4644 = yyv4644[:yyrl4644] - } else { - yyv4644 = make([]PodTemplate, yyrl4644) - } - } else { - yyv4644 = make([]PodTemplate, yyrl4644) - } - yyc4644 = true - yyrr4644 = len(yyv4644) - if yyrg4644 { - copy(yyv4644, yyv24644) - } - } else if yyl4644 != len(yyv4644) { - yyv4644 = yyv4644[:yyl4644] - yyc4644 = true - } - yyj4644 := 0 - for ; yyj4644 < yyrr4644; yyj4644++ { - yyh4644.ElemContainerState(yyj4644) - if r.TryDecodeAsNil() { - yyv4644[yyj4644] = PodTemplate{} - } else { - yyv4645 := &yyv4644[yyj4644] - yyv4645.CodecDecodeSelf(d) - } - - } - if yyrt4644 { - for ; yyj4644 < yyl4644; yyj4644++ { - yyv4644 = append(yyv4644, PodTemplate{}) - yyh4644.ElemContainerState(yyj4644) - if r.TryDecodeAsNil() { - yyv4644[yyj4644] = PodTemplate{} - } else { - yyv4646 := &yyv4644[yyj4644] - yyv4646.CodecDecodeSelf(d) - } - - } - } - - } else { - yyj4644 := 0 - for ; !r.CheckBreak(); yyj4644++ { - - if yyj4644 >= len(yyv4644) { - yyv4644 = append(yyv4644, PodTemplate{}) // var yyz4644 PodTemplate - yyc4644 = true - } - yyh4644.ElemContainerState(yyj4644) - if yyj4644 < len(yyv4644) { - if r.TryDecodeAsNil() { - yyv4644[yyj4644] = PodTemplate{} - } else { - yyv4647 := &yyv4644[yyj4644] - yyv4647.CodecDecodeSelf(d) - } - - } else { - z.DecSwallow() - } - - } - if yyj4644 < len(yyv4644) { - yyv4644 = yyv4644[:yyj4644] - yyc4644 = true - } else if yyj4644 == 0 && yyv4644 == nil { - yyv4644 = []PodTemplate{} - yyc4644 = true - } - } - yyh4644.End() - if yyc4644 { - *v = yyv4644 - } -} - -func (x codecSelfer1234) encSliceReplicationController(v []ReplicationController, e *codec1978.Encoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - r.EncodeArrayStart(len(v)) - for _, yyv4648 := range v { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy4649 := &yyv4648 - yy4649.CodecEncodeSelf(e) - } - z.EncSendContainerState(codecSelfer_containerArrayEnd1234) -} - -func (x codecSelfer1234) decSliceReplicationController(v *[]ReplicationController, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - - yyv4650 := *v - yyh4650, yyl4650 := z.DecSliceHelperStart() - var yyc4650 bool - if yyl4650 == 0 { - if yyv4650 == nil { - yyv4650 = []ReplicationController{} - yyc4650 = true - } else if len(yyv4650) != 0 { - yyv4650 = yyv4650[:0] - yyc4650 = true - } - } else if yyl4650 > 0 { - var yyrr4650, yyrl4650 int - var yyrt4650 bool - if yyl4650 > cap(yyv4650) { - - yyrg4650 := len(yyv4650) > 0 - yyv24650 := yyv4650 - yyrl4650, yyrt4650 = z.DecInferLen(yyl4650, z.DecBasicHandle().MaxInitLen, 304) - if yyrt4650 { - if yyrl4650 <= cap(yyv4650) { - yyv4650 = yyv4650[:yyrl4650] - } else { - yyv4650 = make([]ReplicationController, yyrl4650) - } - } else { - yyv4650 = make([]ReplicationController, yyrl4650) - } - yyc4650 = true - yyrr4650 = len(yyv4650) - if yyrg4650 { - copy(yyv4650, yyv24650) - } - } else if yyl4650 != len(yyv4650) { - yyv4650 = yyv4650[:yyl4650] - yyc4650 = true - } - yyj4650 := 0 - for ; yyj4650 < yyrr4650; yyj4650++ { - yyh4650.ElemContainerState(yyj4650) - if r.TryDecodeAsNil() { - yyv4650[yyj4650] = ReplicationController{} - } else { - yyv4651 := &yyv4650[yyj4650] - yyv4651.CodecDecodeSelf(d) - } - - } - if yyrt4650 { - for ; yyj4650 < yyl4650; yyj4650++ { - yyv4650 = append(yyv4650, ReplicationController{}) - yyh4650.ElemContainerState(yyj4650) - if r.TryDecodeAsNil() { - yyv4650[yyj4650] = ReplicationController{} - } else { - yyv4652 := &yyv4650[yyj4650] - yyv4652.CodecDecodeSelf(d) - } - - } - } - - } else { - yyj4650 := 0 - for ; !r.CheckBreak(); yyj4650++ { - - if yyj4650 >= len(yyv4650) { - yyv4650 = append(yyv4650, ReplicationController{}) // var yyz4650 ReplicationController - yyc4650 = true - } - yyh4650.ElemContainerState(yyj4650) - if yyj4650 < len(yyv4650) { - if r.TryDecodeAsNil() { - yyv4650[yyj4650] = ReplicationController{} - } else { - yyv4653 := &yyv4650[yyj4650] - yyv4653.CodecDecodeSelf(d) - } - - } else { - z.DecSwallow() - } - - } - if yyj4650 < len(yyv4650) { - yyv4650 = yyv4650[:yyj4650] - yyc4650 = true - } else if yyj4650 == 0 && yyv4650 == nil { - yyv4650 = []ReplicationController{} - yyc4650 = true - } - } - yyh4650.End() - if yyc4650 { - *v = yyv4650 - } -} - -func (x codecSelfer1234) encSliceLoadBalancerIngress(v []LoadBalancerIngress, e *codec1978.Encoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - r.EncodeArrayStart(len(v)) - for _, yyv4654 := range v { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy4655 := &yyv4654 - yy4655.CodecEncodeSelf(e) - } - z.EncSendContainerState(codecSelfer_containerArrayEnd1234) -} - -func (x codecSelfer1234) decSliceLoadBalancerIngress(v *[]LoadBalancerIngress, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - - yyv4656 := *v - yyh4656, yyl4656 := z.DecSliceHelperStart() - var yyc4656 bool - if yyl4656 == 0 { - if yyv4656 == nil { - yyv4656 = []LoadBalancerIngress{} - yyc4656 = true - } else if len(yyv4656) != 0 { - yyv4656 = yyv4656[:0] - yyc4656 = true - } - } else if yyl4656 > 0 { - var yyrr4656, yyrl4656 int - var yyrt4656 bool - if yyl4656 > cap(yyv4656) { - - yyrg4656 := len(yyv4656) > 0 - yyv24656 := yyv4656 - yyrl4656, yyrt4656 = z.DecInferLen(yyl4656, z.DecBasicHandle().MaxInitLen, 32) - if yyrt4656 { - if yyrl4656 <= cap(yyv4656) { - yyv4656 = yyv4656[:yyrl4656] - } else { - yyv4656 = make([]LoadBalancerIngress, yyrl4656) - } - } else { - yyv4656 = make([]LoadBalancerIngress, yyrl4656) - } - yyc4656 = true - yyrr4656 = len(yyv4656) - if yyrg4656 { - copy(yyv4656, yyv24656) - } - } else if yyl4656 != len(yyv4656) { - yyv4656 = yyv4656[:yyl4656] - yyc4656 = true - } - yyj4656 := 0 - for ; yyj4656 < yyrr4656; yyj4656++ { - yyh4656.ElemContainerState(yyj4656) - if r.TryDecodeAsNil() { - yyv4656[yyj4656] = LoadBalancerIngress{} - } else { - yyv4657 := &yyv4656[yyj4656] - yyv4657.CodecDecodeSelf(d) - } - - } - if yyrt4656 { - for ; yyj4656 < yyl4656; yyj4656++ { - yyv4656 = append(yyv4656, LoadBalancerIngress{}) - yyh4656.ElemContainerState(yyj4656) - if r.TryDecodeAsNil() { - yyv4656[yyj4656] = LoadBalancerIngress{} - } else { - yyv4658 := &yyv4656[yyj4656] - yyv4658.CodecDecodeSelf(d) - } - - } - } - - } else { - yyj4656 := 0 - for ; !r.CheckBreak(); yyj4656++ { - - if yyj4656 >= len(yyv4656) { - yyv4656 = append(yyv4656, LoadBalancerIngress{}) // var yyz4656 LoadBalancerIngress - yyc4656 = true - } - yyh4656.ElemContainerState(yyj4656) - if yyj4656 < len(yyv4656) { - if r.TryDecodeAsNil() { - yyv4656[yyj4656] = LoadBalancerIngress{} - } else { - yyv4659 := &yyv4656[yyj4656] - yyv4659.CodecDecodeSelf(d) - } - - } else { - z.DecSwallow() - } - - } - if yyj4656 < len(yyv4656) { - yyv4656 = yyv4656[:yyj4656] - yyc4656 = true - } else if yyj4656 == 0 && yyv4656 == nil { - yyv4656 = []LoadBalancerIngress{} - yyc4656 = true - } - } - yyh4656.End() - if yyc4656 { - *v = yyv4656 - } -} - -func (x codecSelfer1234) encSliceServicePort(v []ServicePort, e *codec1978.Encoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - r.EncodeArrayStart(len(v)) - for _, yyv4660 := range v { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy4661 := &yyv4660 - yy4661.CodecEncodeSelf(e) - } - z.EncSendContainerState(codecSelfer_containerArrayEnd1234) -} - -func (x codecSelfer1234) decSliceServicePort(v *[]ServicePort, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - - yyv4662 := *v - yyh4662, yyl4662 := z.DecSliceHelperStart() - var yyc4662 bool - if yyl4662 == 0 { - if yyv4662 == nil { - yyv4662 = []ServicePort{} - yyc4662 = true - } else if len(yyv4662) != 0 { - yyv4662 = yyv4662[:0] - yyc4662 = true - } - } else if yyl4662 > 0 { - var yyrr4662, yyrl4662 int - var yyrt4662 bool - if yyl4662 > cap(yyv4662) { - - yyrg4662 := len(yyv4662) > 0 - yyv24662 := yyv4662 - yyrl4662, yyrt4662 = z.DecInferLen(yyl4662, z.DecBasicHandle().MaxInitLen, 80) - if yyrt4662 { - if yyrl4662 <= cap(yyv4662) { - yyv4662 = yyv4662[:yyrl4662] - } else { - yyv4662 = make([]ServicePort, yyrl4662) - } - } else { - yyv4662 = make([]ServicePort, yyrl4662) - } - yyc4662 = true - yyrr4662 = len(yyv4662) - if yyrg4662 { - copy(yyv4662, yyv24662) - } - } else if yyl4662 != len(yyv4662) { - yyv4662 = yyv4662[:yyl4662] - yyc4662 = true - } - yyj4662 := 0 - for ; yyj4662 < yyrr4662; yyj4662++ { - yyh4662.ElemContainerState(yyj4662) - if r.TryDecodeAsNil() { - yyv4662[yyj4662] = ServicePort{} - } else { - yyv4663 := &yyv4662[yyj4662] - yyv4663.CodecDecodeSelf(d) - } - - } - if yyrt4662 { - for ; yyj4662 < yyl4662; yyj4662++ { - yyv4662 = append(yyv4662, ServicePort{}) - yyh4662.ElemContainerState(yyj4662) - if r.TryDecodeAsNil() { - yyv4662[yyj4662] = ServicePort{} - } else { - yyv4664 := &yyv4662[yyj4662] - yyv4664.CodecDecodeSelf(d) - } - - } - } - - } else { - yyj4662 := 0 - for ; !r.CheckBreak(); yyj4662++ { - - if yyj4662 >= len(yyv4662) { - yyv4662 = append(yyv4662, ServicePort{}) // var yyz4662 ServicePort - yyc4662 = true - } - yyh4662.ElemContainerState(yyj4662) - if yyj4662 < len(yyv4662) { - if r.TryDecodeAsNil() { - yyv4662[yyj4662] = ServicePort{} - } else { - yyv4665 := &yyv4662[yyj4662] - yyv4665.CodecDecodeSelf(d) - } - - } else { - z.DecSwallow() - } - - } - if yyj4662 < len(yyv4662) { - yyv4662 = yyv4662[:yyj4662] - yyc4662 = true - } else if yyj4662 == 0 && yyv4662 == nil { - yyv4662 = []ServicePort{} - yyc4662 = true - } - } - yyh4662.End() - if yyc4662 { - *v = yyv4662 - } -} - -func (x codecSelfer1234) encSliceService(v []Service, e *codec1978.Encoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - r.EncodeArrayStart(len(v)) - for _, yyv4666 := range v { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy4667 := &yyv4666 - yy4667.CodecEncodeSelf(e) - } - z.EncSendContainerState(codecSelfer_containerArrayEnd1234) -} - -func (x codecSelfer1234) decSliceService(v *[]Service, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - - yyv4668 := *v - yyh4668, yyl4668 := z.DecSliceHelperStart() - var yyc4668 bool - if yyl4668 == 0 { - if yyv4668 == nil { - yyv4668 = []Service{} - yyc4668 = true - } else if len(yyv4668) != 0 { - yyv4668 = yyv4668[:0] - yyc4668 = true - } - } else if yyl4668 > 0 { - var yyrr4668, yyrl4668 int - var yyrt4668 bool - if yyl4668 > cap(yyv4668) { - - yyrg4668 := len(yyv4668) > 0 - yyv24668 := yyv4668 - yyrl4668, yyrt4668 = z.DecInferLen(yyl4668, z.DecBasicHandle().MaxInitLen, 464) - if yyrt4668 { - if yyrl4668 <= cap(yyv4668) { - yyv4668 = yyv4668[:yyrl4668] - } else { - yyv4668 = make([]Service, yyrl4668) - } - } else { - yyv4668 = make([]Service, yyrl4668) - } - yyc4668 = true - yyrr4668 = len(yyv4668) - if yyrg4668 { - copy(yyv4668, yyv24668) - } - } else if yyl4668 != len(yyv4668) { - yyv4668 = yyv4668[:yyl4668] - yyc4668 = true - } - yyj4668 := 0 - for ; yyj4668 < yyrr4668; yyj4668++ { - yyh4668.ElemContainerState(yyj4668) - if r.TryDecodeAsNil() { - yyv4668[yyj4668] = Service{} - } else { - yyv4669 := &yyv4668[yyj4668] - yyv4669.CodecDecodeSelf(d) - } - - } - if yyrt4668 { - for ; yyj4668 < yyl4668; yyj4668++ { - yyv4668 = append(yyv4668, Service{}) - yyh4668.ElemContainerState(yyj4668) - if r.TryDecodeAsNil() { - yyv4668[yyj4668] = Service{} - } else { - yyv4670 := &yyv4668[yyj4668] - yyv4670.CodecDecodeSelf(d) - } - - } - } - - } else { - yyj4668 := 0 - for ; !r.CheckBreak(); yyj4668++ { - - if yyj4668 >= len(yyv4668) { - yyv4668 = append(yyv4668, Service{}) // var yyz4668 Service - yyc4668 = true - } - yyh4668.ElemContainerState(yyj4668) - if yyj4668 < len(yyv4668) { - if r.TryDecodeAsNil() { - yyv4668[yyj4668] = Service{} - } else { - yyv4671 := &yyv4668[yyj4668] - yyv4671.CodecDecodeSelf(d) - } - - } else { - z.DecSwallow() - } - - } - if yyj4668 < len(yyv4668) { - yyv4668 = yyv4668[:yyj4668] - yyc4668 = true - } else if yyj4668 == 0 && yyv4668 == nil { - yyv4668 = []Service{} - yyc4668 = true - } - } - yyh4668.End() - if yyc4668 { - *v = yyv4668 - } -} - -func (x codecSelfer1234) encSliceObjectReference(v []ObjectReference, e *codec1978.Encoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - r.EncodeArrayStart(len(v)) - for _, yyv4672 := range v { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy4673 := &yyv4672 - yy4673.CodecEncodeSelf(e) - } - z.EncSendContainerState(codecSelfer_containerArrayEnd1234) -} - -func (x codecSelfer1234) decSliceObjectReference(v *[]ObjectReference, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - - yyv4674 := *v - yyh4674, yyl4674 := z.DecSliceHelperStart() - var yyc4674 bool - if yyl4674 == 0 { - if yyv4674 == nil { - yyv4674 = []ObjectReference{} - yyc4674 = true - } else if len(yyv4674) != 0 { - yyv4674 = yyv4674[:0] - yyc4674 = true - } - } else if yyl4674 > 0 { - var yyrr4674, yyrl4674 int - var yyrt4674 bool - if yyl4674 > cap(yyv4674) { - - yyrg4674 := len(yyv4674) > 0 - yyv24674 := yyv4674 - yyrl4674, yyrt4674 = z.DecInferLen(yyl4674, z.DecBasicHandle().MaxInitLen, 112) - if yyrt4674 { - if yyrl4674 <= cap(yyv4674) { - yyv4674 = yyv4674[:yyrl4674] - } else { - yyv4674 = make([]ObjectReference, yyrl4674) - } - } else { - yyv4674 = make([]ObjectReference, yyrl4674) - } - yyc4674 = true - yyrr4674 = len(yyv4674) - if yyrg4674 { - copy(yyv4674, yyv24674) - } - } else if yyl4674 != len(yyv4674) { - yyv4674 = yyv4674[:yyl4674] - yyc4674 = true - } - yyj4674 := 0 - for ; yyj4674 < yyrr4674; yyj4674++ { - yyh4674.ElemContainerState(yyj4674) - if r.TryDecodeAsNil() { - yyv4674[yyj4674] = ObjectReference{} - } else { - yyv4675 := &yyv4674[yyj4674] - yyv4675.CodecDecodeSelf(d) - } - - } - if yyrt4674 { - for ; yyj4674 < yyl4674; yyj4674++ { - yyv4674 = append(yyv4674, ObjectReference{}) - yyh4674.ElemContainerState(yyj4674) - if r.TryDecodeAsNil() { - yyv4674[yyj4674] = ObjectReference{} - } else { - yyv4676 := &yyv4674[yyj4674] - yyv4676.CodecDecodeSelf(d) - } - - } - } - - } else { - yyj4674 := 0 - for ; !r.CheckBreak(); yyj4674++ { - - if yyj4674 >= len(yyv4674) { - yyv4674 = append(yyv4674, ObjectReference{}) // var yyz4674 ObjectReference - yyc4674 = true - } - yyh4674.ElemContainerState(yyj4674) - if yyj4674 < len(yyv4674) { - if r.TryDecodeAsNil() { - yyv4674[yyj4674] = ObjectReference{} - } else { - yyv4677 := &yyv4674[yyj4674] - yyv4677.CodecDecodeSelf(d) - } - - } else { - z.DecSwallow() - } - - } - if yyj4674 < len(yyv4674) { - yyv4674 = yyv4674[:yyj4674] - yyc4674 = true - } else if yyj4674 == 0 && yyv4674 == nil { - yyv4674 = []ObjectReference{} - yyc4674 = true - } - } - yyh4674.End() - if yyc4674 { - *v = yyv4674 - } -} - -func (x codecSelfer1234) encSliceServiceAccount(v []ServiceAccount, e *codec1978.Encoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - r.EncodeArrayStart(len(v)) - for _, yyv4678 := range v { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy4679 := &yyv4678 - yy4679.CodecEncodeSelf(e) - } - z.EncSendContainerState(codecSelfer_containerArrayEnd1234) -} - -func (x codecSelfer1234) decSliceServiceAccount(v *[]ServiceAccount, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - - yyv4680 := *v - yyh4680, yyl4680 := z.DecSliceHelperStart() - var yyc4680 bool - if yyl4680 == 0 { - if yyv4680 == nil { - yyv4680 = []ServiceAccount{} - yyc4680 = true - } else if len(yyv4680) != 0 { - yyv4680 = yyv4680[:0] - yyc4680 = true - } - } else if yyl4680 > 0 { - var yyrr4680, yyrl4680 int - var yyrt4680 bool - if yyl4680 > cap(yyv4680) { - - yyrg4680 := len(yyv4680) > 0 - yyv24680 := yyv4680 - yyrl4680, yyrt4680 = z.DecInferLen(yyl4680, z.DecBasicHandle().MaxInitLen, 304) - if yyrt4680 { - if yyrl4680 <= cap(yyv4680) { - yyv4680 = yyv4680[:yyrl4680] - } else { - yyv4680 = make([]ServiceAccount, yyrl4680) - } - } else { - yyv4680 = make([]ServiceAccount, yyrl4680) - } - yyc4680 = true - yyrr4680 = len(yyv4680) - if yyrg4680 { - copy(yyv4680, yyv24680) - } - } else if yyl4680 != len(yyv4680) { - yyv4680 = yyv4680[:yyl4680] - yyc4680 = true - } - yyj4680 := 0 - for ; yyj4680 < yyrr4680; yyj4680++ { - yyh4680.ElemContainerState(yyj4680) - if r.TryDecodeAsNil() { - yyv4680[yyj4680] = ServiceAccount{} - } else { - yyv4681 := &yyv4680[yyj4680] - yyv4681.CodecDecodeSelf(d) - } - - } - if yyrt4680 { - for ; yyj4680 < yyl4680; yyj4680++ { - yyv4680 = append(yyv4680, ServiceAccount{}) - yyh4680.ElemContainerState(yyj4680) - if r.TryDecodeAsNil() { - yyv4680[yyj4680] = ServiceAccount{} - } else { - yyv4682 := &yyv4680[yyj4680] - yyv4682.CodecDecodeSelf(d) - } - - } - } - - } else { - yyj4680 := 0 - for ; !r.CheckBreak(); yyj4680++ { - - if yyj4680 >= len(yyv4680) { - yyv4680 = append(yyv4680, ServiceAccount{}) // var yyz4680 ServiceAccount - yyc4680 = true - } - yyh4680.ElemContainerState(yyj4680) - if yyj4680 < len(yyv4680) { - if r.TryDecodeAsNil() { - yyv4680[yyj4680] = ServiceAccount{} - } else { - yyv4683 := &yyv4680[yyj4680] - yyv4683.CodecDecodeSelf(d) - } - - } else { - z.DecSwallow() - } - - } - if yyj4680 < len(yyv4680) { - yyv4680 = yyv4680[:yyj4680] - yyc4680 = true - } else if yyj4680 == 0 && yyv4680 == nil { - yyv4680 = []ServiceAccount{} - yyc4680 = true - } - } - yyh4680.End() - if yyc4680 { - *v = yyv4680 - } -} - -func (x codecSelfer1234) encSliceEndpointSubset(v []EndpointSubset, e *codec1978.Encoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - r.EncodeArrayStart(len(v)) - for _, yyv4684 := range v { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy4685 := &yyv4684 - yy4685.CodecEncodeSelf(e) - } - z.EncSendContainerState(codecSelfer_containerArrayEnd1234) -} - -func (x codecSelfer1234) decSliceEndpointSubset(v *[]EndpointSubset, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - - yyv4686 := *v - yyh4686, yyl4686 := z.DecSliceHelperStart() - var yyc4686 bool - if yyl4686 == 0 { - if yyv4686 == nil { - yyv4686 = []EndpointSubset{} - yyc4686 = true - } else if len(yyv4686) != 0 { - yyv4686 = yyv4686[:0] - yyc4686 = true - } - } else if yyl4686 > 0 { - var yyrr4686, yyrl4686 int - var yyrt4686 bool - if yyl4686 > cap(yyv4686) { - - yyrg4686 := len(yyv4686) > 0 - yyv24686 := yyv4686 - yyrl4686, yyrt4686 = z.DecInferLen(yyl4686, z.DecBasicHandle().MaxInitLen, 72) - if yyrt4686 { - if yyrl4686 <= cap(yyv4686) { - yyv4686 = yyv4686[:yyrl4686] - } else { - yyv4686 = make([]EndpointSubset, yyrl4686) - } - } else { - yyv4686 = make([]EndpointSubset, yyrl4686) - } - yyc4686 = true - yyrr4686 = len(yyv4686) - if yyrg4686 { - copy(yyv4686, yyv24686) - } - } else if yyl4686 != len(yyv4686) { - yyv4686 = yyv4686[:yyl4686] - yyc4686 = true - } - yyj4686 := 0 - for ; yyj4686 < yyrr4686; yyj4686++ { - yyh4686.ElemContainerState(yyj4686) - if r.TryDecodeAsNil() { - yyv4686[yyj4686] = EndpointSubset{} - } else { - yyv4687 := &yyv4686[yyj4686] - yyv4687.CodecDecodeSelf(d) - } - - } - if yyrt4686 { - for ; yyj4686 < yyl4686; yyj4686++ { - yyv4686 = append(yyv4686, EndpointSubset{}) - yyh4686.ElemContainerState(yyj4686) - if r.TryDecodeAsNil() { - yyv4686[yyj4686] = EndpointSubset{} - } else { - yyv4688 := &yyv4686[yyj4686] - yyv4688.CodecDecodeSelf(d) - } - - } - } - - } else { - yyj4686 := 0 - for ; !r.CheckBreak(); yyj4686++ { - - if yyj4686 >= len(yyv4686) { - yyv4686 = append(yyv4686, EndpointSubset{}) // var yyz4686 EndpointSubset - yyc4686 = true - } - yyh4686.ElemContainerState(yyj4686) - if yyj4686 < len(yyv4686) { - if r.TryDecodeAsNil() { - yyv4686[yyj4686] = EndpointSubset{} - } else { - yyv4689 := &yyv4686[yyj4686] - yyv4689.CodecDecodeSelf(d) - } - - } else { - z.DecSwallow() - } - - } - if yyj4686 < len(yyv4686) { - yyv4686 = yyv4686[:yyj4686] - yyc4686 = true - } else if yyj4686 == 0 && yyv4686 == nil { - yyv4686 = []EndpointSubset{} - yyc4686 = true - } - } - yyh4686.End() - if yyc4686 { - *v = yyv4686 - } -} - -func (x codecSelfer1234) encSliceEndpointAddress(v []EndpointAddress, e *codec1978.Encoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - r.EncodeArrayStart(len(v)) - for _, yyv4690 := range v { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy4691 := &yyv4690 - yy4691.CodecEncodeSelf(e) - } - z.EncSendContainerState(codecSelfer_containerArrayEnd1234) -} - -func (x codecSelfer1234) decSliceEndpointAddress(v *[]EndpointAddress, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - - yyv4692 := *v - yyh4692, yyl4692 := z.DecSliceHelperStart() - var yyc4692 bool - if yyl4692 == 0 { - if yyv4692 == nil { - yyv4692 = []EndpointAddress{} - yyc4692 = true - } else if len(yyv4692) != 0 { - yyv4692 = yyv4692[:0] - yyc4692 = true - } - } else if yyl4692 > 0 { - var yyrr4692, yyrl4692 int - var yyrt4692 bool - if yyl4692 > cap(yyv4692) { - - yyrg4692 := len(yyv4692) > 0 - yyv24692 := yyv4692 - yyrl4692, yyrt4692 = z.DecInferLen(yyl4692, z.DecBasicHandle().MaxInitLen, 48) - if yyrt4692 { - if yyrl4692 <= cap(yyv4692) { - yyv4692 = yyv4692[:yyrl4692] - } else { - yyv4692 = make([]EndpointAddress, yyrl4692) - } - } else { - yyv4692 = make([]EndpointAddress, yyrl4692) - } - yyc4692 = true - yyrr4692 = len(yyv4692) - if yyrg4692 { - copy(yyv4692, yyv24692) - } - } else if yyl4692 != len(yyv4692) { - yyv4692 = yyv4692[:yyl4692] - yyc4692 = true - } - yyj4692 := 0 - for ; yyj4692 < yyrr4692; yyj4692++ { - yyh4692.ElemContainerState(yyj4692) - if r.TryDecodeAsNil() { - yyv4692[yyj4692] = EndpointAddress{} - } else { - yyv4693 := &yyv4692[yyj4692] - yyv4693.CodecDecodeSelf(d) - } - - } - if yyrt4692 { - for ; yyj4692 < yyl4692; yyj4692++ { - yyv4692 = append(yyv4692, EndpointAddress{}) - yyh4692.ElemContainerState(yyj4692) - if r.TryDecodeAsNil() { - yyv4692[yyj4692] = EndpointAddress{} - } else { - yyv4694 := &yyv4692[yyj4692] - yyv4694.CodecDecodeSelf(d) - } - - } - } - - } else { - yyj4692 := 0 - for ; !r.CheckBreak(); yyj4692++ { - - if yyj4692 >= len(yyv4692) { - yyv4692 = append(yyv4692, EndpointAddress{}) // var yyz4692 EndpointAddress - yyc4692 = true - } - yyh4692.ElemContainerState(yyj4692) - if yyj4692 < len(yyv4692) { - if r.TryDecodeAsNil() { - yyv4692[yyj4692] = EndpointAddress{} - } else { - yyv4695 := &yyv4692[yyj4692] - yyv4695.CodecDecodeSelf(d) - } - - } else { - z.DecSwallow() - } - - } - if yyj4692 < len(yyv4692) { - yyv4692 = yyv4692[:yyj4692] - yyc4692 = true - } else if yyj4692 == 0 && yyv4692 == nil { - yyv4692 = []EndpointAddress{} - yyc4692 = true - } - } - yyh4692.End() - if yyc4692 { - *v = yyv4692 - } -} - -func (x codecSelfer1234) encSliceEndpointPort(v []EndpointPort, e *codec1978.Encoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - r.EncodeArrayStart(len(v)) - for _, yyv4696 := range v { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy4697 := &yyv4696 - yy4697.CodecEncodeSelf(e) - } - z.EncSendContainerState(codecSelfer_containerArrayEnd1234) -} - -func (x codecSelfer1234) decSliceEndpointPort(v *[]EndpointPort, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - - yyv4698 := *v - yyh4698, yyl4698 := z.DecSliceHelperStart() - var yyc4698 bool - if yyl4698 == 0 { - if yyv4698 == nil { - yyv4698 = []EndpointPort{} - yyc4698 = true - } else if len(yyv4698) != 0 { - yyv4698 = yyv4698[:0] - yyc4698 = true - } - } else if yyl4698 > 0 { - var yyrr4698, yyrl4698 int - var yyrt4698 bool - if yyl4698 > cap(yyv4698) { - - yyrg4698 := len(yyv4698) > 0 - yyv24698 := yyv4698 - yyrl4698, yyrt4698 = z.DecInferLen(yyl4698, z.DecBasicHandle().MaxInitLen, 40) - if yyrt4698 { - if yyrl4698 <= cap(yyv4698) { - yyv4698 = yyv4698[:yyrl4698] - } else { - yyv4698 = make([]EndpointPort, yyrl4698) - } - } else { - yyv4698 = make([]EndpointPort, yyrl4698) - } - yyc4698 = true - yyrr4698 = len(yyv4698) - if yyrg4698 { - copy(yyv4698, yyv24698) - } - } else if yyl4698 != len(yyv4698) { - yyv4698 = yyv4698[:yyl4698] - yyc4698 = true - } - yyj4698 := 0 - for ; yyj4698 < yyrr4698; yyj4698++ { - yyh4698.ElemContainerState(yyj4698) - if r.TryDecodeAsNil() { - yyv4698[yyj4698] = EndpointPort{} - } else { - yyv4699 := &yyv4698[yyj4698] - yyv4699.CodecDecodeSelf(d) - } - - } - if yyrt4698 { - for ; yyj4698 < yyl4698; yyj4698++ { - yyv4698 = append(yyv4698, EndpointPort{}) - yyh4698.ElemContainerState(yyj4698) - if r.TryDecodeAsNil() { - yyv4698[yyj4698] = EndpointPort{} - } else { - yyv4700 := &yyv4698[yyj4698] - yyv4700.CodecDecodeSelf(d) - } - - } - } - - } else { - yyj4698 := 0 - for ; !r.CheckBreak(); yyj4698++ { - - if yyj4698 >= len(yyv4698) { - yyv4698 = append(yyv4698, EndpointPort{}) // var yyz4698 EndpointPort - yyc4698 = true - } - yyh4698.ElemContainerState(yyj4698) - if yyj4698 < len(yyv4698) { - if r.TryDecodeAsNil() { - yyv4698[yyj4698] = EndpointPort{} - } else { - yyv4701 := &yyv4698[yyj4698] - yyv4701.CodecDecodeSelf(d) - } - - } else { - z.DecSwallow() - } - - } - if yyj4698 < len(yyv4698) { - yyv4698 = yyv4698[:yyj4698] - yyc4698 = true - } else if yyj4698 == 0 && yyv4698 == nil { - yyv4698 = []EndpointPort{} - yyc4698 = true - } - } - yyh4698.End() - if yyc4698 { - *v = yyv4698 - } -} - -func (x codecSelfer1234) encSliceEndpoints(v []Endpoints, e *codec1978.Encoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - r.EncodeArrayStart(len(v)) - for _, yyv4702 := range v { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy4703 := &yyv4702 - yy4703.CodecEncodeSelf(e) - } - z.EncSendContainerState(codecSelfer_containerArrayEnd1234) -} - -func (x codecSelfer1234) decSliceEndpoints(v *[]Endpoints, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - - yyv4704 := *v - yyh4704, yyl4704 := z.DecSliceHelperStart() - var yyc4704 bool - if yyl4704 == 0 { - if yyv4704 == nil { - yyv4704 = []Endpoints{} - yyc4704 = true - } else if len(yyv4704) != 0 { - yyv4704 = yyv4704[:0] - yyc4704 = true - } - } else if yyl4704 > 0 { - var yyrr4704, yyrl4704 int - var yyrt4704 bool - if yyl4704 > cap(yyv4704) { - - yyrg4704 := len(yyv4704) > 0 - yyv24704 := yyv4704 - yyrl4704, yyrt4704 = z.DecInferLen(yyl4704, z.DecBasicHandle().MaxInitLen, 280) - if yyrt4704 { - if yyrl4704 <= cap(yyv4704) { - yyv4704 = yyv4704[:yyrl4704] - } else { - yyv4704 = make([]Endpoints, yyrl4704) - } - } else { - yyv4704 = make([]Endpoints, yyrl4704) - } - yyc4704 = true - yyrr4704 = len(yyv4704) - if yyrg4704 { - copy(yyv4704, yyv24704) - } - } else if yyl4704 != len(yyv4704) { - yyv4704 = yyv4704[:yyl4704] - yyc4704 = true - } - yyj4704 := 0 - for ; yyj4704 < yyrr4704; yyj4704++ { - yyh4704.ElemContainerState(yyj4704) - if r.TryDecodeAsNil() { - yyv4704[yyj4704] = Endpoints{} - } else { - yyv4705 := &yyv4704[yyj4704] - yyv4705.CodecDecodeSelf(d) - } - - } - if yyrt4704 { - for ; yyj4704 < yyl4704; yyj4704++ { - yyv4704 = append(yyv4704, Endpoints{}) - yyh4704.ElemContainerState(yyj4704) - if r.TryDecodeAsNil() { - yyv4704[yyj4704] = Endpoints{} - } else { - yyv4706 := &yyv4704[yyj4704] - yyv4706.CodecDecodeSelf(d) - } - - } - } - - } else { - yyj4704 := 0 - for ; !r.CheckBreak(); yyj4704++ { - - if yyj4704 >= len(yyv4704) { - yyv4704 = append(yyv4704, Endpoints{}) // var yyz4704 Endpoints - yyc4704 = true - } - yyh4704.ElemContainerState(yyj4704) - if yyj4704 < len(yyv4704) { - if r.TryDecodeAsNil() { - yyv4704[yyj4704] = Endpoints{} - } else { - yyv4707 := &yyv4704[yyj4704] - yyv4707.CodecDecodeSelf(d) - } - - } else { - z.DecSwallow() - } - - } - if yyj4704 < len(yyv4704) { - yyv4704 = yyv4704[:yyj4704] - yyc4704 = true - } else if yyj4704 == 0 && yyv4704 == nil { - yyv4704 = []Endpoints{} - yyc4704 = true - } - } - yyh4704.End() - if yyc4704 { - *v = yyv4704 - } -} - -func (x codecSelfer1234) encSliceNodeCondition(v []NodeCondition, e *codec1978.Encoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - r.EncodeArrayStart(len(v)) - for _, yyv4708 := range v { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy4709 := &yyv4708 - yy4709.CodecEncodeSelf(e) - } - z.EncSendContainerState(codecSelfer_containerArrayEnd1234) -} - -func (x codecSelfer1234) decSliceNodeCondition(v *[]NodeCondition, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - - yyv4710 := *v - yyh4710, yyl4710 := z.DecSliceHelperStart() - var yyc4710 bool - if yyl4710 == 0 { - if yyv4710 == nil { - yyv4710 = []NodeCondition{} - yyc4710 = true - } else if len(yyv4710) != 0 { - yyv4710 = yyv4710[:0] - yyc4710 = true - } - } else if yyl4710 > 0 { - var yyrr4710, yyrl4710 int - var yyrt4710 bool - if yyl4710 > cap(yyv4710) { - - yyrg4710 := len(yyv4710) > 0 - yyv24710 := yyv4710 - yyrl4710, yyrt4710 = z.DecInferLen(yyl4710, z.DecBasicHandle().MaxInitLen, 112) - if yyrt4710 { - if yyrl4710 <= cap(yyv4710) { - yyv4710 = yyv4710[:yyrl4710] - } else { - yyv4710 = make([]NodeCondition, yyrl4710) - } - } else { - yyv4710 = make([]NodeCondition, yyrl4710) - } - yyc4710 = true - yyrr4710 = len(yyv4710) - if yyrg4710 { - copy(yyv4710, yyv24710) - } - } else if yyl4710 != len(yyv4710) { - yyv4710 = yyv4710[:yyl4710] - yyc4710 = true - } - yyj4710 := 0 - for ; yyj4710 < yyrr4710; yyj4710++ { - yyh4710.ElemContainerState(yyj4710) - if r.TryDecodeAsNil() { - yyv4710[yyj4710] = NodeCondition{} - } else { - yyv4711 := &yyv4710[yyj4710] - yyv4711.CodecDecodeSelf(d) - } - - } - if yyrt4710 { - for ; yyj4710 < yyl4710; yyj4710++ { - yyv4710 = append(yyv4710, NodeCondition{}) - yyh4710.ElemContainerState(yyj4710) - if r.TryDecodeAsNil() { - yyv4710[yyj4710] = NodeCondition{} - } else { - yyv4712 := &yyv4710[yyj4710] - yyv4712.CodecDecodeSelf(d) - } - - } - } - - } else { - yyj4710 := 0 - for ; !r.CheckBreak(); yyj4710++ { - - if yyj4710 >= len(yyv4710) { - yyv4710 = append(yyv4710, NodeCondition{}) // var yyz4710 NodeCondition - yyc4710 = true - } - yyh4710.ElemContainerState(yyj4710) - if yyj4710 < len(yyv4710) { - if r.TryDecodeAsNil() { - yyv4710[yyj4710] = NodeCondition{} - } else { - yyv4713 := &yyv4710[yyj4710] - yyv4713.CodecDecodeSelf(d) - } - - } else { - z.DecSwallow() - } - - } - if yyj4710 < len(yyv4710) { - yyv4710 = yyv4710[:yyj4710] - yyc4710 = true - } else if yyj4710 == 0 && yyv4710 == nil { - yyv4710 = []NodeCondition{} - yyc4710 = true - } - } - yyh4710.End() - if yyc4710 { - *v = yyv4710 - } -} - -func (x codecSelfer1234) encSliceNodeAddress(v []NodeAddress, e *codec1978.Encoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - r.EncodeArrayStart(len(v)) - for _, yyv4714 := range v { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy4715 := &yyv4714 - yy4715.CodecEncodeSelf(e) - } - z.EncSendContainerState(codecSelfer_containerArrayEnd1234) -} - -func (x codecSelfer1234) decSliceNodeAddress(v *[]NodeAddress, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - - yyv4716 := *v - yyh4716, yyl4716 := z.DecSliceHelperStart() - var yyc4716 bool - if yyl4716 == 0 { - if yyv4716 == nil { - yyv4716 = []NodeAddress{} - yyc4716 = true - } else if len(yyv4716) != 0 { - yyv4716 = yyv4716[:0] - yyc4716 = true - } - } else if yyl4716 > 0 { - var yyrr4716, yyrl4716 int - var yyrt4716 bool - if yyl4716 > cap(yyv4716) { - - yyrg4716 := len(yyv4716) > 0 - yyv24716 := yyv4716 - yyrl4716, yyrt4716 = z.DecInferLen(yyl4716, z.DecBasicHandle().MaxInitLen, 32) - if yyrt4716 { - if yyrl4716 <= cap(yyv4716) { - yyv4716 = yyv4716[:yyrl4716] - } else { - yyv4716 = make([]NodeAddress, yyrl4716) - } - } else { - yyv4716 = make([]NodeAddress, yyrl4716) - } - yyc4716 = true - yyrr4716 = len(yyv4716) - if yyrg4716 { - copy(yyv4716, yyv24716) - } - } else if yyl4716 != len(yyv4716) { - yyv4716 = yyv4716[:yyl4716] - yyc4716 = true - } - yyj4716 := 0 - for ; yyj4716 < yyrr4716; yyj4716++ { - yyh4716.ElemContainerState(yyj4716) - if r.TryDecodeAsNil() { - yyv4716[yyj4716] = NodeAddress{} - } else { - yyv4717 := &yyv4716[yyj4716] - yyv4717.CodecDecodeSelf(d) - } - - } - if yyrt4716 { - for ; yyj4716 < yyl4716; yyj4716++ { - yyv4716 = append(yyv4716, NodeAddress{}) - yyh4716.ElemContainerState(yyj4716) - if r.TryDecodeAsNil() { - yyv4716[yyj4716] = NodeAddress{} - } else { - yyv4718 := &yyv4716[yyj4716] - yyv4718.CodecDecodeSelf(d) - } - - } - } - - } else { - yyj4716 := 0 - for ; !r.CheckBreak(); yyj4716++ { - - if yyj4716 >= len(yyv4716) { - yyv4716 = append(yyv4716, NodeAddress{}) // var yyz4716 NodeAddress - yyc4716 = true - } - yyh4716.ElemContainerState(yyj4716) - if yyj4716 < len(yyv4716) { - if r.TryDecodeAsNil() { - yyv4716[yyj4716] = NodeAddress{} - } else { - yyv4719 := &yyv4716[yyj4716] - yyv4719.CodecDecodeSelf(d) - } - - } else { - z.DecSwallow() - } - - } - if yyj4716 < len(yyv4716) { - yyv4716 = yyv4716[:yyj4716] - yyc4716 = true - } else if yyj4716 == 0 && yyv4716 == nil { - yyv4716 = []NodeAddress{} - yyc4716 = true - } - } - yyh4716.End() - if yyc4716 { - *v = yyv4716 - } -} - -func (x codecSelfer1234) encSliceContainerImage(v []ContainerImage, e *codec1978.Encoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - r.EncodeArrayStart(len(v)) - for _, yyv4720 := range v { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy4721 := &yyv4720 - yy4721.CodecEncodeSelf(e) - } - z.EncSendContainerState(codecSelfer_containerArrayEnd1234) -} - -func (x codecSelfer1234) decSliceContainerImage(v *[]ContainerImage, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - - yyv4722 := *v - yyh4722, yyl4722 := z.DecSliceHelperStart() - var yyc4722 bool - if yyl4722 == 0 { - if yyv4722 == nil { - yyv4722 = []ContainerImage{} - yyc4722 = true - } else if len(yyv4722) != 0 { - yyv4722 = yyv4722[:0] - yyc4722 = true - } - } else if yyl4722 > 0 { - var yyrr4722, yyrl4722 int - var yyrt4722 bool - if yyl4722 > cap(yyv4722) { - - yyrg4722 := len(yyv4722) > 0 - yyv24722 := yyv4722 - yyrl4722, yyrt4722 = z.DecInferLen(yyl4722, z.DecBasicHandle().MaxInitLen, 32) - if yyrt4722 { - if yyrl4722 <= cap(yyv4722) { - yyv4722 = yyv4722[:yyrl4722] - } else { - yyv4722 = make([]ContainerImage, yyrl4722) - } - } else { - yyv4722 = make([]ContainerImage, yyrl4722) - } - yyc4722 = true - yyrr4722 = len(yyv4722) - if yyrg4722 { - copy(yyv4722, yyv24722) - } - } else if yyl4722 != len(yyv4722) { - yyv4722 = yyv4722[:yyl4722] - yyc4722 = true - } - yyj4722 := 0 - for ; yyj4722 < yyrr4722; yyj4722++ { - yyh4722.ElemContainerState(yyj4722) - if r.TryDecodeAsNil() { - yyv4722[yyj4722] = ContainerImage{} - } else { - yyv4723 := &yyv4722[yyj4722] - yyv4723.CodecDecodeSelf(d) - } - - } - if yyrt4722 { - for ; yyj4722 < yyl4722; yyj4722++ { - yyv4722 = append(yyv4722, ContainerImage{}) - yyh4722.ElemContainerState(yyj4722) - if r.TryDecodeAsNil() { - yyv4722[yyj4722] = ContainerImage{} - } else { - yyv4724 := &yyv4722[yyj4722] - yyv4724.CodecDecodeSelf(d) - } - - } - } - - } else { - yyj4722 := 0 - for ; !r.CheckBreak(); yyj4722++ { - - if yyj4722 >= len(yyv4722) { - yyv4722 = append(yyv4722, ContainerImage{}) // var yyz4722 ContainerImage - yyc4722 = true - } - yyh4722.ElemContainerState(yyj4722) - if yyj4722 < len(yyv4722) { - if r.TryDecodeAsNil() { - yyv4722[yyj4722] = ContainerImage{} - } else { - yyv4725 := &yyv4722[yyj4722] - yyv4725.CodecDecodeSelf(d) - } - - } else { - z.DecSwallow() - } - - } - if yyj4722 < len(yyv4722) { - yyv4722 = yyv4722[:yyj4722] - yyc4722 = true - } else if yyj4722 == 0 && yyv4722 == nil { - yyv4722 = []ContainerImage{} - yyc4722 = true - } - } - yyh4722.End() - if yyc4722 { - *v = yyv4722 - } -} - -func (x codecSelfer1234) encSliceUniqueVolumeName(v []UniqueVolumeName, e *codec1978.Encoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - r.EncodeArrayStart(len(v)) - for _, yyv4726 := range v { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yyv4726.CodecEncodeSelf(e) - } - z.EncSendContainerState(codecSelfer_containerArrayEnd1234) -} - -func (x codecSelfer1234) decSliceUniqueVolumeName(v *[]UniqueVolumeName, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - yyv4727 := *v yyh4727, yyl4727 := z.DecSliceHelperStart() var yyc4727 bool if yyl4727 == 0 { if yyv4727 == nil { - yyv4727 = []UniqueVolumeName{} + yyv4727 = []PodTemplate{} yyc4727 = true } else if len(yyv4727) != 0 { yyv4727 = yyv4727[:0] @@ -60307,18 +59764,23 @@ func (x codecSelfer1234) decSliceUniqueVolumeName(v *[]UniqueVolumeName, d *code var yyrt4727 bool if yyl4727 > cap(yyv4727) { - yyrl4727, yyrt4727 = z.DecInferLen(yyl4727, z.DecBasicHandle().MaxInitLen, 16) + yyrg4727 := len(yyv4727) > 0 + yyv24727 := yyv4727 + yyrl4727, yyrt4727 = z.DecInferLen(yyl4727, z.DecBasicHandle().MaxInitLen, 728) if yyrt4727 { if yyrl4727 <= cap(yyv4727) { yyv4727 = yyv4727[:yyrl4727] } else { - yyv4727 = make([]UniqueVolumeName, yyrl4727) + yyv4727 = make([]PodTemplate, yyrl4727) } } else { - yyv4727 = make([]UniqueVolumeName, yyrl4727) + yyv4727 = make([]PodTemplate, yyrl4727) } yyc4727 = true yyrr4727 = len(yyv4727) + if yyrg4727 { + copy(yyv4727, yyv24727) + } } else if yyl4727 != len(yyv4727) { yyv4727 = yyv4727[:yyl4727] yyc4727 = true @@ -60327,20 +59789,22 @@ func (x codecSelfer1234) decSliceUniqueVolumeName(v *[]UniqueVolumeName, d *code for ; yyj4727 < yyrr4727; yyj4727++ { yyh4727.ElemContainerState(yyj4727) if r.TryDecodeAsNil() { - yyv4727[yyj4727] = "" + yyv4727[yyj4727] = PodTemplate{} } else { - yyv4727[yyj4727] = UniqueVolumeName(r.DecodeString()) + yyv4728 := &yyv4727[yyj4727] + yyv4728.CodecDecodeSelf(d) } } if yyrt4727 { for ; yyj4727 < yyl4727; yyj4727++ { - yyv4727 = append(yyv4727, "") + yyv4727 = append(yyv4727, PodTemplate{}) yyh4727.ElemContainerState(yyj4727) if r.TryDecodeAsNil() { - yyv4727[yyj4727] = "" + yyv4727[yyj4727] = PodTemplate{} } else { - yyv4727[yyj4727] = UniqueVolumeName(r.DecodeString()) + yyv4729 := &yyv4727[yyj4727] + yyv4729.CodecDecodeSelf(d) } } @@ -60351,15 +59815,16 @@ func (x codecSelfer1234) decSliceUniqueVolumeName(v *[]UniqueVolumeName, d *code for ; !r.CheckBreak(); yyj4727++ { if yyj4727 >= len(yyv4727) { - yyv4727 = append(yyv4727, "") // var yyz4727 UniqueVolumeName + yyv4727 = append(yyv4727, PodTemplate{}) // var yyz4727 PodTemplate yyc4727 = true } yyh4727.ElemContainerState(yyj4727) if yyj4727 < len(yyv4727) { if r.TryDecodeAsNil() { - yyv4727[yyj4727] = "" + yyv4727[yyj4727] = PodTemplate{} } else { - yyv4727[yyj4727] = UniqueVolumeName(r.DecodeString()) + yyv4730 := &yyv4727[yyj4727] + yyv4730.CodecDecodeSelf(d) } } else { @@ -60371,7 +59836,7 @@ func (x codecSelfer1234) decSliceUniqueVolumeName(v *[]UniqueVolumeName, d *code yyv4727 = yyv4727[:yyj4727] yyc4727 = true } else if yyj4727 == 0 && yyv4727 == nil { - yyv4727 = []UniqueVolumeName{} + yyv4727 = []PodTemplate{} yyc4727 = true } } @@ -60381,7 +59846,7 @@ func (x codecSelfer1234) decSliceUniqueVolumeName(v *[]UniqueVolumeName, d *code } } -func (x codecSelfer1234) encSliceAttachedVolume(v []AttachedVolume, e *codec1978.Encoder) { +func (x codecSelfer1234) encSliceReplicationControllerCondition(v []ReplicationControllerCondition, e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r @@ -60394,7 +59859,7 @@ func (x codecSelfer1234) encSliceAttachedVolume(v []AttachedVolume, e *codec1978 z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } -func (x codecSelfer1234) decSliceAttachedVolume(v *[]AttachedVolume, d *codec1978.Decoder) { +func (x codecSelfer1234) decSliceReplicationControllerCondition(v *[]ReplicationControllerCondition, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r @@ -60404,7 +59869,7 @@ func (x codecSelfer1234) decSliceAttachedVolume(v *[]AttachedVolume, d *codec197 var yyc4733 bool if yyl4733 == 0 { if yyv4733 == nil { - yyv4733 = []AttachedVolume{} + yyv4733 = []ReplicationControllerCondition{} yyc4733 = true } else if len(yyv4733) != 0 { yyv4733 = yyv4733[:0] @@ -60417,15 +59882,15 @@ func (x codecSelfer1234) decSliceAttachedVolume(v *[]AttachedVolume, d *codec197 yyrg4733 := len(yyv4733) > 0 yyv24733 := yyv4733 - yyrl4733, yyrt4733 = z.DecInferLen(yyl4733, z.DecBasicHandle().MaxInitLen, 32) + yyrl4733, yyrt4733 = z.DecInferLen(yyl4733, z.DecBasicHandle().MaxInitLen, 88) if yyrt4733 { if yyrl4733 <= cap(yyv4733) { yyv4733 = yyv4733[:yyrl4733] } else { - yyv4733 = make([]AttachedVolume, yyrl4733) + yyv4733 = make([]ReplicationControllerCondition, yyrl4733) } } else { - yyv4733 = make([]AttachedVolume, yyrl4733) + yyv4733 = make([]ReplicationControllerCondition, yyrl4733) } yyc4733 = true yyrr4733 = len(yyv4733) @@ -60440,7 +59905,7 @@ func (x codecSelfer1234) decSliceAttachedVolume(v *[]AttachedVolume, d *codec197 for ; yyj4733 < yyrr4733; yyj4733++ { yyh4733.ElemContainerState(yyj4733) if r.TryDecodeAsNil() { - yyv4733[yyj4733] = AttachedVolume{} + yyv4733[yyj4733] = ReplicationControllerCondition{} } else { yyv4734 := &yyv4733[yyj4733] yyv4734.CodecDecodeSelf(d) @@ -60449,10 +59914,10 @@ func (x codecSelfer1234) decSliceAttachedVolume(v *[]AttachedVolume, d *codec197 } if yyrt4733 { for ; yyj4733 < yyl4733; yyj4733++ { - yyv4733 = append(yyv4733, AttachedVolume{}) + yyv4733 = append(yyv4733, ReplicationControllerCondition{}) yyh4733.ElemContainerState(yyj4733) if r.TryDecodeAsNil() { - yyv4733[yyj4733] = AttachedVolume{} + yyv4733[yyj4733] = ReplicationControllerCondition{} } else { yyv4735 := &yyv4733[yyj4733] yyv4735.CodecDecodeSelf(d) @@ -60466,13 +59931,13 @@ func (x codecSelfer1234) decSliceAttachedVolume(v *[]AttachedVolume, d *codec197 for ; !r.CheckBreak(); yyj4733++ { if yyj4733 >= len(yyv4733) { - yyv4733 = append(yyv4733, AttachedVolume{}) // var yyz4733 AttachedVolume + yyv4733 = append(yyv4733, ReplicationControllerCondition{}) // var yyz4733 ReplicationControllerCondition yyc4733 = true } yyh4733.ElemContainerState(yyj4733) if yyj4733 < len(yyv4733) { if r.TryDecodeAsNil() { - yyv4733[yyj4733] = AttachedVolume{} + yyv4733[yyj4733] = ReplicationControllerCondition{} } else { yyv4736 := &yyv4733[yyj4733] yyv4736.CodecDecodeSelf(d) @@ -60487,7 +59952,7 @@ func (x codecSelfer1234) decSliceAttachedVolume(v *[]AttachedVolume, d *codec197 yyv4733 = yyv4733[:yyj4733] yyc4733 = true } else if yyj4733 == 0 && yyv4733 == nil { - yyv4733 = []AttachedVolume{} + yyv4733 = []ReplicationControllerCondition{} yyc4733 = true } } @@ -60497,7 +59962,7 @@ func (x codecSelfer1234) decSliceAttachedVolume(v *[]AttachedVolume, d *codec197 } } -func (x codecSelfer1234) encSlicePreferAvoidPodsEntry(v []PreferAvoidPodsEntry, e *codec1978.Encoder) { +func (x codecSelfer1234) encSliceReplicationController(v []ReplicationController, e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r @@ -60510,7 +59975,7 @@ func (x codecSelfer1234) encSlicePreferAvoidPodsEntry(v []PreferAvoidPodsEntry, z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } -func (x codecSelfer1234) decSlicePreferAvoidPodsEntry(v *[]PreferAvoidPodsEntry, d *codec1978.Decoder) { +func (x codecSelfer1234) decSliceReplicationController(v *[]ReplicationController, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r @@ -60520,7 +59985,7 @@ func (x codecSelfer1234) decSlicePreferAvoidPodsEntry(v *[]PreferAvoidPodsEntry, var yyc4739 bool if yyl4739 == 0 { if yyv4739 == nil { - yyv4739 = []PreferAvoidPodsEntry{} + yyv4739 = []ReplicationController{} yyc4739 = true } else if len(yyv4739) != 0 { yyv4739 = yyv4739[:0] @@ -60533,15 +59998,15 @@ func (x codecSelfer1234) decSlicePreferAvoidPodsEntry(v *[]PreferAvoidPodsEntry, yyrg4739 := len(yyv4739) > 0 yyv24739 := yyv4739 - yyrl4739, yyrt4739 = z.DecInferLen(yyl4739, z.DecBasicHandle().MaxInitLen, 64) + yyrl4739, yyrt4739 = z.DecInferLen(yyl4739, z.DecBasicHandle().MaxInitLen, 336) if yyrt4739 { if yyrl4739 <= cap(yyv4739) { yyv4739 = yyv4739[:yyrl4739] } else { - yyv4739 = make([]PreferAvoidPodsEntry, yyrl4739) + yyv4739 = make([]ReplicationController, yyrl4739) } } else { - yyv4739 = make([]PreferAvoidPodsEntry, yyrl4739) + yyv4739 = make([]ReplicationController, yyrl4739) } yyc4739 = true yyrr4739 = len(yyv4739) @@ -60556,7 +60021,7 @@ func (x codecSelfer1234) decSlicePreferAvoidPodsEntry(v *[]PreferAvoidPodsEntry, for ; yyj4739 < yyrr4739; yyj4739++ { yyh4739.ElemContainerState(yyj4739) if r.TryDecodeAsNil() { - yyv4739[yyj4739] = PreferAvoidPodsEntry{} + yyv4739[yyj4739] = ReplicationController{} } else { yyv4740 := &yyv4739[yyj4739] yyv4740.CodecDecodeSelf(d) @@ -60565,10 +60030,10 @@ func (x codecSelfer1234) decSlicePreferAvoidPodsEntry(v *[]PreferAvoidPodsEntry, } if yyrt4739 { for ; yyj4739 < yyl4739; yyj4739++ { - yyv4739 = append(yyv4739, PreferAvoidPodsEntry{}) + yyv4739 = append(yyv4739, ReplicationController{}) yyh4739.ElemContainerState(yyj4739) if r.TryDecodeAsNil() { - yyv4739[yyj4739] = PreferAvoidPodsEntry{} + yyv4739[yyj4739] = ReplicationController{} } else { yyv4741 := &yyv4739[yyj4739] yyv4741.CodecDecodeSelf(d) @@ -60582,13 +60047,13 @@ func (x codecSelfer1234) decSlicePreferAvoidPodsEntry(v *[]PreferAvoidPodsEntry, for ; !r.CheckBreak(); yyj4739++ { if yyj4739 >= len(yyv4739) { - yyv4739 = append(yyv4739, PreferAvoidPodsEntry{}) // var yyz4739 PreferAvoidPodsEntry + yyv4739 = append(yyv4739, ReplicationController{}) // var yyz4739 ReplicationController yyc4739 = true } yyh4739.ElemContainerState(yyj4739) if yyj4739 < len(yyv4739) { if r.TryDecodeAsNil() { - yyv4739[yyj4739] = PreferAvoidPodsEntry{} + yyv4739[yyj4739] = ReplicationController{} } else { yyv4742 := &yyv4739[yyj4739] yyv4742.CodecDecodeSelf(d) @@ -60603,7 +60068,7 @@ func (x codecSelfer1234) decSlicePreferAvoidPodsEntry(v *[]PreferAvoidPodsEntry, yyv4739 = yyv4739[:yyj4739] yyc4739 = true } else if yyj4739 == 0 && yyv4739 == nil { - yyv4739 = []PreferAvoidPodsEntry{} + yyv4739 = []ReplicationController{} yyc4739 = true } } @@ -60613,215 +60078,101 @@ func (x codecSelfer1234) decSlicePreferAvoidPodsEntry(v *[]PreferAvoidPodsEntry, } } -func (x codecSelfer1234) encResourceList(v ResourceList, e *codec1978.Encoder) { +func (x codecSelfer1234) encSliceLoadBalancerIngress(v []LoadBalancerIngress, e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r - r.EncodeMapStart(len(v)) - for yyk4743, yyv4743 := range v { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - yyk4743.CodecEncodeSelf(e) - z.EncSendContainerState(codecSelfer_containerMapValue1234) + r.EncodeArrayStart(len(v)) + for _, yyv4743 := range v { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) yy4744 := &yyv4743 - yym4745 := z.EncBinary() - _ = yym4745 - if false { - } else if z.HasExtensions() && z.EncExt(yy4744) { - } else if !yym4745 && z.IsJSONHandle() { - z.EncJSONMarshal(yy4744) - } else { - z.EncFallback(yy4744) - } - } - z.EncSendContainerState(codecSelfer_containerMapEnd1234) -} - -func (x codecSelfer1234) decResourceList(v *ResourceList, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - - yyv4746 := *v - yyl4746 := r.ReadMapStart() - yybh4746 := z.DecBasicHandle() - if yyv4746 == nil { - yyrl4746, _ := z.DecInferLen(yyl4746, yybh4746.MaxInitLen, 72) - yyv4746 = make(map[ResourceName]pkg3_resource.Quantity, yyrl4746) - *v = yyv4746 - } - var yymk4746 ResourceName - var yymv4746 pkg3_resource.Quantity - var yymg4746 bool - if yybh4746.MapValueReset { - yymg4746 = true - } - if yyl4746 > 0 { - for yyj4746 := 0; yyj4746 < yyl4746; yyj4746++ { - z.DecSendContainerState(codecSelfer_containerMapKey1234) - if r.TryDecodeAsNil() { - yymk4746 = "" - } else { - yymk4746 = ResourceName(r.DecodeString()) - } - - if yymg4746 { - yymv4746 = yyv4746[yymk4746] - } else { - yymv4746 = pkg3_resource.Quantity{} - } - z.DecSendContainerState(codecSelfer_containerMapValue1234) - if r.TryDecodeAsNil() { - yymv4746 = pkg3_resource.Quantity{} - } else { - yyv4748 := &yymv4746 - yym4749 := z.DecBinary() - _ = yym4749 - if false { - } else if z.HasExtensions() && z.DecExt(yyv4748) { - } else if !yym4749 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv4748) - } else { - z.DecFallback(yyv4748, false) - } - } - - if yyv4746 != nil { - yyv4746[yymk4746] = yymv4746 - } - } - } else if yyl4746 < 0 { - for yyj4746 := 0; !r.CheckBreak(); yyj4746++ { - z.DecSendContainerState(codecSelfer_containerMapKey1234) - if r.TryDecodeAsNil() { - yymk4746 = "" - } else { - yymk4746 = ResourceName(r.DecodeString()) - } - - if yymg4746 { - yymv4746 = yyv4746[yymk4746] - } else { - yymv4746 = pkg3_resource.Quantity{} - } - z.DecSendContainerState(codecSelfer_containerMapValue1234) - if r.TryDecodeAsNil() { - yymv4746 = pkg3_resource.Quantity{} - } else { - yyv4751 := &yymv4746 - yym4752 := z.DecBinary() - _ = yym4752 - if false { - } else if z.HasExtensions() && z.DecExt(yyv4751) { - } else if !yym4752 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv4751) - } else { - z.DecFallback(yyv4751, false) - } - } - - if yyv4746 != nil { - yyv4746[yymk4746] = yymv4746 - } - } - } // else len==0: TODO: Should we clear map entries? - z.DecSendContainerState(codecSelfer_containerMapEnd1234) -} - -func (x codecSelfer1234) encSliceNode(v []Node, e *codec1978.Encoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - r.EncodeArrayStart(len(v)) - for _, yyv4753 := range v { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy4754 := &yyv4753 - yy4754.CodecEncodeSelf(e) + yy4744.CodecEncodeSelf(e) } z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } -func (x codecSelfer1234) decSliceNode(v *[]Node, d *codec1978.Decoder) { +func (x codecSelfer1234) decSliceLoadBalancerIngress(v *[]LoadBalancerIngress, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yyv4755 := *v - yyh4755, yyl4755 := z.DecSliceHelperStart() - var yyc4755 bool - if yyl4755 == 0 { - if yyv4755 == nil { - yyv4755 = []Node{} - yyc4755 = true - } else if len(yyv4755) != 0 { - yyv4755 = yyv4755[:0] - yyc4755 = true + yyv4745 := *v + yyh4745, yyl4745 := z.DecSliceHelperStart() + var yyc4745 bool + if yyl4745 == 0 { + if yyv4745 == nil { + yyv4745 = []LoadBalancerIngress{} + yyc4745 = true + } else if len(yyv4745) != 0 { + yyv4745 = yyv4745[:0] + yyc4745 = true } - } else if yyl4755 > 0 { - var yyrr4755, yyrl4755 int - var yyrt4755 bool - if yyl4755 > cap(yyv4755) { + } else if yyl4745 > 0 { + var yyrr4745, yyrl4745 int + var yyrt4745 bool + if yyl4745 > cap(yyv4745) { - yyrg4755 := len(yyv4755) > 0 - yyv24755 := yyv4755 - yyrl4755, yyrt4755 = z.DecInferLen(yyl4755, z.DecBasicHandle().MaxInitLen, 632) - if yyrt4755 { - if yyrl4755 <= cap(yyv4755) { - yyv4755 = yyv4755[:yyrl4755] + yyrg4745 := len(yyv4745) > 0 + yyv24745 := yyv4745 + yyrl4745, yyrt4745 = z.DecInferLen(yyl4745, z.DecBasicHandle().MaxInitLen, 32) + if yyrt4745 { + if yyrl4745 <= cap(yyv4745) { + yyv4745 = yyv4745[:yyrl4745] } else { - yyv4755 = make([]Node, yyrl4755) + yyv4745 = make([]LoadBalancerIngress, yyrl4745) } } else { - yyv4755 = make([]Node, yyrl4755) + yyv4745 = make([]LoadBalancerIngress, yyrl4745) } - yyc4755 = true - yyrr4755 = len(yyv4755) - if yyrg4755 { - copy(yyv4755, yyv24755) + yyc4745 = true + yyrr4745 = len(yyv4745) + if yyrg4745 { + copy(yyv4745, yyv24745) } - } else if yyl4755 != len(yyv4755) { - yyv4755 = yyv4755[:yyl4755] - yyc4755 = true + } else if yyl4745 != len(yyv4745) { + yyv4745 = yyv4745[:yyl4745] + yyc4745 = true } - yyj4755 := 0 - for ; yyj4755 < yyrr4755; yyj4755++ { - yyh4755.ElemContainerState(yyj4755) + yyj4745 := 0 + for ; yyj4745 < yyrr4745; yyj4745++ { + yyh4745.ElemContainerState(yyj4745) if r.TryDecodeAsNil() { - yyv4755[yyj4755] = Node{} + yyv4745[yyj4745] = LoadBalancerIngress{} } else { - yyv4756 := &yyv4755[yyj4755] - yyv4756.CodecDecodeSelf(d) + yyv4746 := &yyv4745[yyj4745] + yyv4746.CodecDecodeSelf(d) } } - if yyrt4755 { - for ; yyj4755 < yyl4755; yyj4755++ { - yyv4755 = append(yyv4755, Node{}) - yyh4755.ElemContainerState(yyj4755) + if yyrt4745 { + for ; yyj4745 < yyl4745; yyj4745++ { + yyv4745 = append(yyv4745, LoadBalancerIngress{}) + yyh4745.ElemContainerState(yyj4745) if r.TryDecodeAsNil() { - yyv4755[yyj4755] = Node{} + yyv4745[yyj4745] = LoadBalancerIngress{} } else { - yyv4757 := &yyv4755[yyj4755] - yyv4757.CodecDecodeSelf(d) + yyv4747 := &yyv4745[yyj4745] + yyv4747.CodecDecodeSelf(d) } } } } else { - yyj4755 := 0 - for ; !r.CheckBreak(); yyj4755++ { + yyj4745 := 0 + for ; !r.CheckBreak(); yyj4745++ { - if yyj4755 >= len(yyv4755) { - yyv4755 = append(yyv4755, Node{}) // var yyz4755 Node - yyc4755 = true + if yyj4745 >= len(yyv4745) { + yyv4745 = append(yyv4745, LoadBalancerIngress{}) // var yyz4745 LoadBalancerIngress + yyc4745 = true } - yyh4755.ElemContainerState(yyj4755) - if yyj4755 < len(yyv4755) { + yyh4745.ElemContainerState(yyj4745) + if yyj4745 < len(yyv4745) { if r.TryDecodeAsNil() { - yyv4755[yyj4755] = Node{} + yyv4745[yyj4745] = LoadBalancerIngress{} } else { - yyv4758 := &yyv4755[yyj4755] - yyv4758.CodecDecodeSelf(d) + yyv4748 := &yyv4745[yyj4745] + yyv4748.CodecDecodeSelf(d) } } else { @@ -60829,106 +60180,115 @@ func (x codecSelfer1234) decSliceNode(v *[]Node, d *codec1978.Decoder) { } } - if yyj4755 < len(yyv4755) { - yyv4755 = yyv4755[:yyj4755] - yyc4755 = true - } else if yyj4755 == 0 && yyv4755 == nil { - yyv4755 = []Node{} - yyc4755 = true + if yyj4745 < len(yyv4745) { + yyv4745 = yyv4745[:yyj4745] + yyc4745 = true + } else if yyj4745 == 0 && yyv4745 == nil { + yyv4745 = []LoadBalancerIngress{} + yyc4745 = true } } - yyh4755.End() - if yyc4755 { - *v = yyv4755 + yyh4745.End() + if yyc4745 { + *v = yyv4745 } } -func (x codecSelfer1234) encSliceFinalizerName(v []FinalizerName, 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 _, yyv4759 := range v { + for _, yyv4749 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yyv4759.CodecEncodeSelf(e) + yy4750 := &yyv4749 + yy4750.CodecEncodeSelf(e) } z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } -func (x codecSelfer1234) decSliceFinalizerName(v *[]FinalizerName, d *codec1978.Decoder) { +func (x codecSelfer1234) decSliceServicePort(v *[]ServicePort, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yyv4760 := *v - yyh4760, yyl4760 := z.DecSliceHelperStart() - var yyc4760 bool - if yyl4760 == 0 { - if yyv4760 == nil { - yyv4760 = []FinalizerName{} - yyc4760 = true - } else if len(yyv4760) != 0 { - yyv4760 = yyv4760[:0] - yyc4760 = true + yyv4751 := *v + yyh4751, yyl4751 := z.DecSliceHelperStart() + var yyc4751 bool + if yyl4751 == 0 { + if yyv4751 == nil { + yyv4751 = []ServicePort{} + yyc4751 = true + } else if len(yyv4751) != 0 { + yyv4751 = yyv4751[:0] + yyc4751 = true } - } else if yyl4760 > 0 { - var yyrr4760, yyrl4760 int - var yyrt4760 bool - if yyl4760 > cap(yyv4760) { + } else if yyl4751 > 0 { + var yyrr4751, yyrl4751 int + var yyrt4751 bool + if yyl4751 > cap(yyv4751) { - yyrl4760, yyrt4760 = z.DecInferLen(yyl4760, z.DecBasicHandle().MaxInitLen, 16) - if yyrt4760 { - if yyrl4760 <= cap(yyv4760) { - yyv4760 = yyv4760[:yyrl4760] + yyrg4751 := len(yyv4751) > 0 + yyv24751 := yyv4751 + yyrl4751, yyrt4751 = z.DecInferLen(yyl4751, z.DecBasicHandle().MaxInitLen, 80) + if yyrt4751 { + if yyrl4751 <= cap(yyv4751) { + yyv4751 = yyv4751[:yyrl4751] } else { - yyv4760 = make([]FinalizerName, yyrl4760) + yyv4751 = make([]ServicePort, yyrl4751) } } else { - yyv4760 = make([]FinalizerName, yyrl4760) + yyv4751 = make([]ServicePort, yyrl4751) } - yyc4760 = true - yyrr4760 = len(yyv4760) - } else if yyl4760 != len(yyv4760) { - yyv4760 = yyv4760[:yyl4760] - yyc4760 = true + yyc4751 = true + yyrr4751 = len(yyv4751) + if yyrg4751 { + copy(yyv4751, yyv24751) + } + } else if yyl4751 != len(yyv4751) { + yyv4751 = yyv4751[:yyl4751] + yyc4751 = true } - yyj4760 := 0 - for ; yyj4760 < yyrr4760; yyj4760++ { - yyh4760.ElemContainerState(yyj4760) + yyj4751 := 0 + for ; yyj4751 < yyrr4751; yyj4751++ { + yyh4751.ElemContainerState(yyj4751) if r.TryDecodeAsNil() { - yyv4760[yyj4760] = "" + yyv4751[yyj4751] = ServicePort{} } else { - yyv4760[yyj4760] = FinalizerName(r.DecodeString()) + yyv4752 := &yyv4751[yyj4751] + yyv4752.CodecDecodeSelf(d) } } - if yyrt4760 { - for ; yyj4760 < yyl4760; yyj4760++ { - yyv4760 = append(yyv4760, "") - yyh4760.ElemContainerState(yyj4760) + if yyrt4751 { + for ; yyj4751 < yyl4751; yyj4751++ { + yyv4751 = append(yyv4751, ServicePort{}) + yyh4751.ElemContainerState(yyj4751) if r.TryDecodeAsNil() { - yyv4760[yyj4760] = "" + yyv4751[yyj4751] = ServicePort{} } else { - yyv4760[yyj4760] = FinalizerName(r.DecodeString()) + yyv4753 := &yyv4751[yyj4751] + yyv4753.CodecDecodeSelf(d) } } } } else { - yyj4760 := 0 - for ; !r.CheckBreak(); yyj4760++ { + yyj4751 := 0 + for ; !r.CheckBreak(); yyj4751++ { - if yyj4760 >= len(yyv4760) { - yyv4760 = append(yyv4760, "") // var yyz4760 FinalizerName - yyc4760 = true + if yyj4751 >= len(yyv4751) { + yyv4751 = append(yyv4751, ServicePort{}) // var yyz4751 ServicePort + yyc4751 = true } - yyh4760.ElemContainerState(yyj4760) - if yyj4760 < len(yyv4760) { + yyh4751.ElemContainerState(yyj4751) + if yyj4751 < len(yyv4751) { if r.TryDecodeAsNil() { - yyv4760[yyj4760] = "" + yyv4751[yyj4751] = ServicePort{} } else { - yyv4760[yyj4760] = FinalizerName(r.DecodeString()) + yyv4754 := &yyv4751[yyj4751] + yyv4754.CodecDecodeSelf(d) } } else { @@ -60936,115 +60296,115 @@ func (x codecSelfer1234) decSliceFinalizerName(v *[]FinalizerName, d *codec1978. } } - if yyj4760 < len(yyv4760) { - yyv4760 = yyv4760[:yyj4760] - yyc4760 = true - } else if yyj4760 == 0 && yyv4760 == nil { - yyv4760 = []FinalizerName{} - yyc4760 = true + if yyj4751 < len(yyv4751) { + yyv4751 = yyv4751[:yyj4751] + yyc4751 = true + } else if yyj4751 == 0 && yyv4751 == nil { + yyv4751 = []ServicePort{} + yyc4751 = true } } - yyh4760.End() - if yyc4760 { - *v = yyv4760 + yyh4751.End() + if yyc4751 { + *v = yyv4751 } } -func (x codecSelfer1234) encSliceNamespace(v []Namespace, 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 _, yyv4764 := range v { + for _, yyv4755 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy4765 := &yyv4764 - yy4765.CodecEncodeSelf(e) + yy4756 := &yyv4755 + yy4756.CodecEncodeSelf(e) } z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } -func (x codecSelfer1234) decSliceNamespace(v *[]Namespace, d *codec1978.Decoder) { +func (x codecSelfer1234) decSliceService(v *[]Service, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yyv4766 := *v - yyh4766, yyl4766 := z.DecSliceHelperStart() - var yyc4766 bool - if yyl4766 == 0 { - if yyv4766 == nil { - yyv4766 = []Namespace{} - yyc4766 = true - } else if len(yyv4766) != 0 { - yyv4766 = yyv4766[:0] - yyc4766 = true + yyv4757 := *v + yyh4757, yyl4757 := z.DecSliceHelperStart() + var yyc4757 bool + if yyl4757 == 0 { + if yyv4757 == nil { + yyv4757 = []Service{} + yyc4757 = true + } else if len(yyv4757) != 0 { + yyv4757 = yyv4757[:0] + yyc4757 = true } - } else if yyl4766 > 0 { - var yyrr4766, yyrl4766 int - var yyrt4766 bool - if yyl4766 > cap(yyv4766) { + } else if yyl4757 > 0 { + var yyrr4757, yyrl4757 int + var yyrt4757 bool + if yyl4757 > cap(yyv4757) { - yyrg4766 := len(yyv4766) > 0 - yyv24766 := yyv4766 - yyrl4766, yyrt4766 = z.DecInferLen(yyl4766, z.DecBasicHandle().MaxInitLen, 296) - if yyrt4766 { - if yyrl4766 <= cap(yyv4766) { - yyv4766 = yyv4766[:yyrl4766] + yyrg4757 := len(yyv4757) > 0 + yyv24757 := yyv4757 + yyrl4757, yyrt4757 = z.DecInferLen(yyl4757, z.DecBasicHandle().MaxInitLen, 464) + if yyrt4757 { + if yyrl4757 <= cap(yyv4757) { + yyv4757 = yyv4757[:yyrl4757] } else { - yyv4766 = make([]Namespace, yyrl4766) + yyv4757 = make([]Service, yyrl4757) } } else { - yyv4766 = make([]Namespace, yyrl4766) + yyv4757 = make([]Service, yyrl4757) } - yyc4766 = true - yyrr4766 = len(yyv4766) - if yyrg4766 { - copy(yyv4766, yyv24766) + yyc4757 = true + yyrr4757 = len(yyv4757) + if yyrg4757 { + copy(yyv4757, yyv24757) } - } else if yyl4766 != len(yyv4766) { - yyv4766 = yyv4766[:yyl4766] - yyc4766 = true + } else if yyl4757 != len(yyv4757) { + yyv4757 = yyv4757[:yyl4757] + yyc4757 = true } - yyj4766 := 0 - for ; yyj4766 < yyrr4766; yyj4766++ { - yyh4766.ElemContainerState(yyj4766) + yyj4757 := 0 + for ; yyj4757 < yyrr4757; yyj4757++ { + yyh4757.ElemContainerState(yyj4757) if r.TryDecodeAsNil() { - yyv4766[yyj4766] = Namespace{} + yyv4757[yyj4757] = Service{} } else { - yyv4767 := &yyv4766[yyj4766] - yyv4767.CodecDecodeSelf(d) + yyv4758 := &yyv4757[yyj4757] + yyv4758.CodecDecodeSelf(d) } } - if yyrt4766 { - for ; yyj4766 < yyl4766; yyj4766++ { - yyv4766 = append(yyv4766, Namespace{}) - yyh4766.ElemContainerState(yyj4766) + if yyrt4757 { + for ; yyj4757 < yyl4757; yyj4757++ { + yyv4757 = append(yyv4757, Service{}) + yyh4757.ElemContainerState(yyj4757) if r.TryDecodeAsNil() { - yyv4766[yyj4766] = Namespace{} + yyv4757[yyj4757] = Service{} } else { - yyv4768 := &yyv4766[yyj4766] - yyv4768.CodecDecodeSelf(d) + yyv4759 := &yyv4757[yyj4757] + yyv4759.CodecDecodeSelf(d) } } } } else { - yyj4766 := 0 - for ; !r.CheckBreak(); yyj4766++ { + yyj4757 := 0 + for ; !r.CheckBreak(); yyj4757++ { - if yyj4766 >= len(yyv4766) { - yyv4766 = append(yyv4766, Namespace{}) // var yyz4766 Namespace - yyc4766 = true + if yyj4757 >= len(yyv4757) { + yyv4757 = append(yyv4757, Service{}) // var yyz4757 Service + yyc4757 = true } - yyh4766.ElemContainerState(yyj4766) - if yyj4766 < len(yyv4766) { + yyh4757.ElemContainerState(yyj4757) + if yyj4757 < len(yyv4757) { if r.TryDecodeAsNil() { - yyv4766[yyj4766] = Namespace{} + yyv4757[yyj4757] = Service{} } else { - yyv4769 := &yyv4766[yyj4766] - yyv4769.CodecDecodeSelf(d) + yyv4760 := &yyv4757[yyj4757] + yyv4760.CodecDecodeSelf(d) } } else { @@ -61052,115 +60412,115 @@ func (x codecSelfer1234) decSliceNamespace(v *[]Namespace, d *codec1978.Decoder) } } - if yyj4766 < len(yyv4766) { - yyv4766 = yyv4766[:yyj4766] - yyc4766 = true - } else if yyj4766 == 0 && yyv4766 == nil { - yyv4766 = []Namespace{} - yyc4766 = true + if yyj4757 < len(yyv4757) { + yyv4757 = yyv4757[:yyj4757] + yyc4757 = true + } else if yyj4757 == 0 && yyv4757 == nil { + yyv4757 = []Service{} + yyc4757 = true } } - yyh4766.End() - if yyc4766 { - *v = yyv4766 + yyh4757.End() + if yyc4757 { + *v = yyv4757 } } -func (x codecSelfer1234) encSliceEvent(v []Event, 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 _, yyv4770 := range v { + for _, yyv4761 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy4771 := &yyv4770 - yy4771.CodecEncodeSelf(e) + yy4762 := &yyv4761 + yy4762.CodecEncodeSelf(e) } z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } -func (x codecSelfer1234) decSliceEvent(v *[]Event, d *codec1978.Decoder) { +func (x codecSelfer1234) decSliceObjectReference(v *[]ObjectReference, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yyv4772 := *v - yyh4772, yyl4772 := z.DecSliceHelperStart() - var yyc4772 bool - if yyl4772 == 0 { - if yyv4772 == nil { - yyv4772 = []Event{} - yyc4772 = true - } else if len(yyv4772) != 0 { - yyv4772 = yyv4772[:0] - yyc4772 = true + yyv4763 := *v + yyh4763, yyl4763 := z.DecSliceHelperStart() + var yyc4763 bool + if yyl4763 == 0 { + if yyv4763 == nil { + yyv4763 = []ObjectReference{} + yyc4763 = true + } else if len(yyv4763) != 0 { + yyv4763 = yyv4763[:0] + yyc4763 = true } - } else if yyl4772 > 0 { - var yyrr4772, yyrl4772 int - var yyrt4772 bool - if yyl4772 > cap(yyv4772) { + } else if yyl4763 > 0 { + var yyrr4763, yyrl4763 int + var yyrt4763 bool + if yyl4763 > cap(yyv4763) { - yyrg4772 := len(yyv4772) > 0 - yyv24772 := yyv4772 - yyrl4772, yyrt4772 = z.DecInferLen(yyl4772, z.DecBasicHandle().MaxInitLen, 504) - if yyrt4772 { - if yyrl4772 <= cap(yyv4772) { - yyv4772 = yyv4772[:yyrl4772] + yyrg4763 := len(yyv4763) > 0 + yyv24763 := yyv4763 + yyrl4763, yyrt4763 = z.DecInferLen(yyl4763, z.DecBasicHandle().MaxInitLen, 112) + if yyrt4763 { + if yyrl4763 <= cap(yyv4763) { + yyv4763 = yyv4763[:yyrl4763] } else { - yyv4772 = make([]Event, yyrl4772) + yyv4763 = make([]ObjectReference, yyrl4763) } } else { - yyv4772 = make([]Event, yyrl4772) + yyv4763 = make([]ObjectReference, yyrl4763) } - yyc4772 = true - yyrr4772 = len(yyv4772) - if yyrg4772 { - copy(yyv4772, yyv24772) + yyc4763 = true + yyrr4763 = len(yyv4763) + if yyrg4763 { + copy(yyv4763, yyv24763) } - } else if yyl4772 != len(yyv4772) { - yyv4772 = yyv4772[:yyl4772] - yyc4772 = true + } else if yyl4763 != len(yyv4763) { + yyv4763 = yyv4763[:yyl4763] + yyc4763 = true } - yyj4772 := 0 - for ; yyj4772 < yyrr4772; yyj4772++ { - yyh4772.ElemContainerState(yyj4772) + yyj4763 := 0 + for ; yyj4763 < yyrr4763; yyj4763++ { + yyh4763.ElemContainerState(yyj4763) if r.TryDecodeAsNil() { - yyv4772[yyj4772] = Event{} + yyv4763[yyj4763] = ObjectReference{} } else { - yyv4773 := &yyv4772[yyj4772] - yyv4773.CodecDecodeSelf(d) + yyv4764 := &yyv4763[yyj4763] + yyv4764.CodecDecodeSelf(d) } } - if yyrt4772 { - for ; yyj4772 < yyl4772; yyj4772++ { - yyv4772 = append(yyv4772, Event{}) - yyh4772.ElemContainerState(yyj4772) + if yyrt4763 { + for ; yyj4763 < yyl4763; yyj4763++ { + yyv4763 = append(yyv4763, ObjectReference{}) + yyh4763.ElemContainerState(yyj4763) if r.TryDecodeAsNil() { - yyv4772[yyj4772] = Event{} + yyv4763[yyj4763] = ObjectReference{} } else { - yyv4774 := &yyv4772[yyj4772] - yyv4774.CodecDecodeSelf(d) + yyv4765 := &yyv4763[yyj4763] + yyv4765.CodecDecodeSelf(d) } } } } else { - yyj4772 := 0 - for ; !r.CheckBreak(); yyj4772++ { + yyj4763 := 0 + for ; !r.CheckBreak(); yyj4763++ { - if yyj4772 >= len(yyv4772) { - yyv4772 = append(yyv4772, Event{}) // var yyz4772 Event - yyc4772 = true + if yyj4763 >= len(yyv4763) { + yyv4763 = append(yyv4763, ObjectReference{}) // var yyz4763 ObjectReference + yyc4763 = true } - yyh4772.ElemContainerState(yyj4772) - if yyj4772 < len(yyv4772) { + yyh4763.ElemContainerState(yyj4763) + if yyj4763 < len(yyv4763) { if r.TryDecodeAsNil() { - yyv4772[yyj4772] = Event{} + yyv4763[yyj4763] = ObjectReference{} } else { - yyv4775 := &yyv4772[yyj4772] - yyv4775.CodecDecodeSelf(d) + yyv4766 := &yyv4763[yyj4763] + yyv4766.CodecDecodeSelf(d) } } else { @@ -61168,147 +60528,115 @@ func (x codecSelfer1234) decSliceEvent(v *[]Event, d *codec1978.Decoder) { } } - if yyj4772 < len(yyv4772) { - yyv4772 = yyv4772[:yyj4772] - yyc4772 = true - } else if yyj4772 == 0 && yyv4772 == nil { - yyv4772 = []Event{} - yyc4772 = true + if yyj4763 < len(yyv4763) { + yyv4763 = yyv4763[:yyj4763] + yyc4763 = true + } else if yyj4763 == 0 && yyv4763 == nil { + yyv4763 = []ObjectReference{} + yyc4763 = true } } - yyh4772.End() - if yyc4772 { - *v = yyv4772 + yyh4763.End() + if yyc4763 { + *v = yyv4763 } } -func (x codecSelfer1234) encSliceruntime_RawExtension(v []pkg5_runtime.RawExtension, 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 _, yyv4776 := range v { + for _, yyv4767 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy4777 := &yyv4776 - yym4778 := z.EncBinary() - _ = yym4778 - if false { - } else if z.HasExtensions() && z.EncExt(yy4777) { - } else if !yym4778 && z.IsJSONHandle() { - z.EncJSONMarshal(yy4777) - } else { - z.EncFallback(yy4777) - } + yy4768 := &yyv4767 + yy4768.CodecEncodeSelf(e) } z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } -func (x codecSelfer1234) decSliceruntime_RawExtension(v *[]pkg5_runtime.RawExtension, d *codec1978.Decoder) { +func (x codecSelfer1234) decSliceServiceAccount(v *[]ServiceAccount, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yyv4779 := *v - yyh4779, yyl4779 := z.DecSliceHelperStart() - var yyc4779 bool - if yyl4779 == 0 { - if yyv4779 == nil { - yyv4779 = []pkg5_runtime.RawExtension{} - yyc4779 = true - } else if len(yyv4779) != 0 { - yyv4779 = yyv4779[:0] - yyc4779 = true + yyv4769 := *v + yyh4769, yyl4769 := z.DecSliceHelperStart() + var yyc4769 bool + if yyl4769 == 0 { + if yyv4769 == nil { + yyv4769 = []ServiceAccount{} + yyc4769 = true + } else if len(yyv4769) != 0 { + yyv4769 = yyv4769[:0] + yyc4769 = true } - } else if yyl4779 > 0 { - var yyrr4779, yyrl4779 int - var yyrt4779 bool - if yyl4779 > cap(yyv4779) { + } else if yyl4769 > 0 { + var yyrr4769, yyrl4769 int + var yyrt4769 bool + if yyl4769 > cap(yyv4769) { - yyrg4779 := len(yyv4779) > 0 - yyv24779 := yyv4779 - yyrl4779, yyrt4779 = z.DecInferLen(yyl4779, z.DecBasicHandle().MaxInitLen, 40) - if yyrt4779 { - if yyrl4779 <= cap(yyv4779) { - yyv4779 = yyv4779[:yyrl4779] + yyrg4769 := len(yyv4769) > 0 + yyv24769 := yyv4769 + yyrl4769, yyrt4769 = z.DecInferLen(yyl4769, z.DecBasicHandle().MaxInitLen, 304) + if yyrt4769 { + if yyrl4769 <= cap(yyv4769) { + yyv4769 = yyv4769[:yyrl4769] } else { - yyv4779 = make([]pkg5_runtime.RawExtension, yyrl4779) + yyv4769 = make([]ServiceAccount, yyrl4769) } } else { - yyv4779 = make([]pkg5_runtime.RawExtension, yyrl4779) + yyv4769 = make([]ServiceAccount, yyrl4769) } - yyc4779 = true - yyrr4779 = len(yyv4779) - if yyrg4779 { - copy(yyv4779, yyv24779) + yyc4769 = true + yyrr4769 = len(yyv4769) + if yyrg4769 { + copy(yyv4769, yyv24769) } - } else if yyl4779 != len(yyv4779) { - yyv4779 = yyv4779[:yyl4779] - yyc4779 = true + } else if yyl4769 != len(yyv4769) { + yyv4769 = yyv4769[:yyl4769] + yyc4769 = true } - yyj4779 := 0 - for ; yyj4779 < yyrr4779; yyj4779++ { - yyh4779.ElemContainerState(yyj4779) + yyj4769 := 0 + for ; yyj4769 < yyrr4769; yyj4769++ { + yyh4769.ElemContainerState(yyj4769) if r.TryDecodeAsNil() { - yyv4779[yyj4779] = pkg5_runtime.RawExtension{} + yyv4769[yyj4769] = ServiceAccount{} } else { - yyv4780 := &yyv4779[yyj4779] - yym4781 := z.DecBinary() - _ = yym4781 - if false { - } else if z.HasExtensions() && z.DecExt(yyv4780) { - } else if !yym4781 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv4780) - } else { - z.DecFallback(yyv4780, false) - } + yyv4770 := &yyv4769[yyj4769] + yyv4770.CodecDecodeSelf(d) } } - if yyrt4779 { - for ; yyj4779 < yyl4779; yyj4779++ { - yyv4779 = append(yyv4779, pkg5_runtime.RawExtension{}) - yyh4779.ElemContainerState(yyj4779) + if yyrt4769 { + for ; yyj4769 < yyl4769; yyj4769++ { + yyv4769 = append(yyv4769, ServiceAccount{}) + yyh4769.ElemContainerState(yyj4769) if r.TryDecodeAsNil() { - yyv4779[yyj4779] = pkg5_runtime.RawExtension{} + yyv4769[yyj4769] = ServiceAccount{} } else { - yyv4782 := &yyv4779[yyj4779] - yym4783 := z.DecBinary() - _ = yym4783 - if false { - } else if z.HasExtensions() && z.DecExt(yyv4782) { - } else if !yym4783 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv4782) - } else { - z.DecFallback(yyv4782, false) - } + yyv4771 := &yyv4769[yyj4769] + yyv4771.CodecDecodeSelf(d) } } } } else { - yyj4779 := 0 - for ; !r.CheckBreak(); yyj4779++ { + yyj4769 := 0 + for ; !r.CheckBreak(); yyj4769++ { - if yyj4779 >= len(yyv4779) { - yyv4779 = append(yyv4779, pkg5_runtime.RawExtension{}) // var yyz4779 pkg5_runtime.RawExtension - yyc4779 = true + if yyj4769 >= len(yyv4769) { + yyv4769 = append(yyv4769, ServiceAccount{}) // var yyz4769 ServiceAccount + yyc4769 = true } - yyh4779.ElemContainerState(yyj4779) - if yyj4779 < len(yyv4779) { + yyh4769.ElemContainerState(yyj4769) + if yyj4769 < len(yyv4769) { if r.TryDecodeAsNil() { - yyv4779[yyj4779] = pkg5_runtime.RawExtension{} + yyv4769[yyj4769] = ServiceAccount{} } else { - yyv4784 := &yyv4779[yyj4779] - yym4785 := z.DecBinary() - _ = yym4785 - if false { - } else if z.HasExtensions() && z.DecExt(yyv4784) { - } else if !yym4785 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv4784) - } else { - z.DecFallback(yyv4784, false) - } + yyv4772 := &yyv4769[yyj4769] + yyv4772.CodecDecodeSelf(d) } } else { @@ -61316,231 +60644,463 @@ func (x codecSelfer1234) decSliceruntime_RawExtension(v *[]pkg5_runtime.RawExten } } - if yyj4779 < len(yyv4779) { - yyv4779 = yyv4779[:yyj4779] - yyc4779 = true - } else if yyj4779 == 0 && yyv4779 == nil { - yyv4779 = []pkg5_runtime.RawExtension{} - yyc4779 = true + if yyj4769 < len(yyv4769) { + yyv4769 = yyv4769[:yyj4769] + yyc4769 = true + } else if yyj4769 == 0 && yyv4769 == nil { + yyv4769 = []ServiceAccount{} + yyc4769 = true } } - yyh4779.End() - if yyc4779 { - *v = yyv4779 + yyh4769.End() + if yyc4769 { + *v = yyv4769 } } -func (x codecSelfer1234) encSliceLimitRangeItem(v []LimitRangeItem, 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 _, yyv4786 := range v { + for _, yyv4773 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy4787 := &yyv4786 - yy4787.CodecEncodeSelf(e) + yy4774 := &yyv4773 + yy4774.CodecEncodeSelf(e) } z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } -func (x codecSelfer1234) decSliceLimitRangeItem(v *[]LimitRangeItem, d *codec1978.Decoder) { +func (x codecSelfer1234) decSliceEndpointSubset(v *[]EndpointSubset, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yyv4788 := *v - yyh4788, yyl4788 := z.DecSliceHelperStart() - var yyc4788 bool - if yyl4788 == 0 { - if yyv4788 == nil { - yyv4788 = []LimitRangeItem{} - yyc4788 = true - } else if len(yyv4788) != 0 { - yyv4788 = yyv4788[:0] - yyc4788 = true + yyv4775 := *v + yyh4775, yyl4775 := z.DecSliceHelperStart() + var yyc4775 bool + if yyl4775 == 0 { + if yyv4775 == nil { + yyv4775 = []EndpointSubset{} + yyc4775 = true + } else if len(yyv4775) != 0 { + yyv4775 = yyv4775[:0] + yyc4775 = true } - } else if yyl4788 > 0 { - var yyrr4788, yyrl4788 int - var yyrt4788 bool - if yyl4788 > cap(yyv4788) { + } else if yyl4775 > 0 { + var yyrr4775, yyrl4775 int + var yyrt4775 bool + if yyl4775 > cap(yyv4775) { - yyrg4788 := len(yyv4788) > 0 - yyv24788 := yyv4788 - yyrl4788, yyrt4788 = z.DecInferLen(yyl4788, z.DecBasicHandle().MaxInitLen, 56) - if yyrt4788 { - if yyrl4788 <= cap(yyv4788) { - yyv4788 = yyv4788[:yyrl4788] + yyrg4775 := len(yyv4775) > 0 + yyv24775 := yyv4775 + yyrl4775, yyrt4775 = z.DecInferLen(yyl4775, z.DecBasicHandle().MaxInitLen, 72) + if yyrt4775 { + if yyrl4775 <= cap(yyv4775) { + yyv4775 = yyv4775[:yyrl4775] } else { - yyv4788 = make([]LimitRangeItem, yyrl4788) + yyv4775 = make([]EndpointSubset, yyrl4775) } } else { - yyv4788 = make([]LimitRangeItem, yyrl4788) + yyv4775 = make([]EndpointSubset, yyrl4775) } - yyc4788 = true - yyrr4788 = len(yyv4788) - if yyrg4788 { - copy(yyv4788, yyv24788) + yyc4775 = true + yyrr4775 = len(yyv4775) + if yyrg4775 { + copy(yyv4775, yyv24775) } - } else if yyl4788 != len(yyv4788) { - yyv4788 = yyv4788[:yyl4788] - yyc4788 = true + } else if yyl4775 != len(yyv4775) { + yyv4775 = yyv4775[:yyl4775] + yyc4775 = true } - yyj4788 := 0 - for ; yyj4788 < yyrr4788; yyj4788++ { - yyh4788.ElemContainerState(yyj4788) + yyj4775 := 0 + for ; yyj4775 < yyrr4775; yyj4775++ { + yyh4775.ElemContainerState(yyj4775) if r.TryDecodeAsNil() { - yyv4788[yyj4788] = LimitRangeItem{} + yyv4775[yyj4775] = EndpointSubset{} } else { - yyv4789 := &yyv4788[yyj4788] - yyv4789.CodecDecodeSelf(d) + yyv4776 := &yyv4775[yyj4775] + yyv4776.CodecDecodeSelf(d) } } - if yyrt4788 { - for ; yyj4788 < yyl4788; yyj4788++ { - yyv4788 = append(yyv4788, LimitRangeItem{}) - yyh4788.ElemContainerState(yyj4788) + if yyrt4775 { + for ; yyj4775 < yyl4775; yyj4775++ { + yyv4775 = append(yyv4775, EndpointSubset{}) + yyh4775.ElemContainerState(yyj4775) if r.TryDecodeAsNil() { - yyv4788[yyj4788] = LimitRangeItem{} + yyv4775[yyj4775] = EndpointSubset{} } else { - yyv4790 := &yyv4788[yyj4788] + yyv4777 := &yyv4775[yyj4775] + yyv4777.CodecDecodeSelf(d) + } + + } + } + + } else { + yyj4775 := 0 + for ; !r.CheckBreak(); yyj4775++ { + + if yyj4775 >= len(yyv4775) { + yyv4775 = append(yyv4775, EndpointSubset{}) // var yyz4775 EndpointSubset + yyc4775 = true + } + yyh4775.ElemContainerState(yyj4775) + if yyj4775 < len(yyv4775) { + if r.TryDecodeAsNil() { + yyv4775[yyj4775] = EndpointSubset{} + } else { + yyv4778 := &yyv4775[yyj4775] + yyv4778.CodecDecodeSelf(d) + } + + } else { + z.DecSwallow() + } + + } + if yyj4775 < len(yyv4775) { + yyv4775 = yyv4775[:yyj4775] + yyc4775 = true + } else if yyj4775 == 0 && yyv4775 == nil { + yyv4775 = []EndpointSubset{} + yyc4775 = true + } + } + yyh4775.End() + if yyc4775 { + *v = yyv4775 + } +} + +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 _, yyv4779 := range v { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yy4780 := &yyv4779 + yy4780.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 + + yyv4781 := *v + yyh4781, yyl4781 := z.DecSliceHelperStart() + var yyc4781 bool + if yyl4781 == 0 { + if yyv4781 == nil { + yyv4781 = []EndpointAddress{} + yyc4781 = true + } else if len(yyv4781) != 0 { + yyv4781 = yyv4781[:0] + yyc4781 = true + } + } else if yyl4781 > 0 { + var yyrr4781, yyrl4781 int + var yyrt4781 bool + if yyl4781 > cap(yyv4781) { + + yyrg4781 := len(yyv4781) > 0 + yyv24781 := yyv4781 + yyrl4781, yyrt4781 = z.DecInferLen(yyl4781, z.DecBasicHandle().MaxInitLen, 48) + if yyrt4781 { + if yyrl4781 <= cap(yyv4781) { + yyv4781 = yyv4781[:yyrl4781] + } else { + yyv4781 = make([]EndpointAddress, yyrl4781) + } + } else { + yyv4781 = make([]EndpointAddress, yyrl4781) + } + yyc4781 = true + yyrr4781 = len(yyv4781) + if yyrg4781 { + copy(yyv4781, yyv24781) + } + } else if yyl4781 != len(yyv4781) { + yyv4781 = yyv4781[:yyl4781] + yyc4781 = true + } + yyj4781 := 0 + for ; yyj4781 < yyrr4781; yyj4781++ { + yyh4781.ElemContainerState(yyj4781) + if r.TryDecodeAsNil() { + yyv4781[yyj4781] = EndpointAddress{} + } else { + yyv4782 := &yyv4781[yyj4781] + yyv4782.CodecDecodeSelf(d) + } + + } + if yyrt4781 { + for ; yyj4781 < yyl4781; yyj4781++ { + yyv4781 = append(yyv4781, EndpointAddress{}) + yyh4781.ElemContainerState(yyj4781) + if r.TryDecodeAsNil() { + yyv4781[yyj4781] = EndpointAddress{} + } else { + yyv4783 := &yyv4781[yyj4781] + yyv4783.CodecDecodeSelf(d) + } + + } + } + + } else { + yyj4781 := 0 + for ; !r.CheckBreak(); yyj4781++ { + + if yyj4781 >= len(yyv4781) { + yyv4781 = append(yyv4781, EndpointAddress{}) // var yyz4781 EndpointAddress + yyc4781 = true + } + yyh4781.ElemContainerState(yyj4781) + if yyj4781 < len(yyv4781) { + if r.TryDecodeAsNil() { + yyv4781[yyj4781] = EndpointAddress{} + } else { + yyv4784 := &yyv4781[yyj4781] + yyv4784.CodecDecodeSelf(d) + } + + } else { + z.DecSwallow() + } + + } + if yyj4781 < len(yyv4781) { + yyv4781 = yyv4781[:yyj4781] + yyc4781 = true + } else if yyj4781 == 0 && yyv4781 == nil { + yyv4781 = []EndpointAddress{} + yyc4781 = true + } + } + yyh4781.End() + if yyc4781 { + *v = yyv4781 + } +} + +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 _, yyv4785 := range v { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yy4786 := &yyv4785 + yy4786.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 + + yyv4787 := *v + yyh4787, yyl4787 := z.DecSliceHelperStart() + var yyc4787 bool + if yyl4787 == 0 { + if yyv4787 == nil { + yyv4787 = []EndpointPort{} + yyc4787 = true + } else if len(yyv4787) != 0 { + yyv4787 = yyv4787[:0] + yyc4787 = true + } + } else if yyl4787 > 0 { + var yyrr4787, yyrl4787 int + var yyrt4787 bool + if yyl4787 > cap(yyv4787) { + + yyrg4787 := len(yyv4787) > 0 + yyv24787 := yyv4787 + yyrl4787, yyrt4787 = z.DecInferLen(yyl4787, z.DecBasicHandle().MaxInitLen, 40) + if yyrt4787 { + if yyrl4787 <= cap(yyv4787) { + yyv4787 = yyv4787[:yyrl4787] + } else { + yyv4787 = make([]EndpointPort, yyrl4787) + } + } else { + yyv4787 = make([]EndpointPort, yyrl4787) + } + yyc4787 = true + yyrr4787 = len(yyv4787) + if yyrg4787 { + copy(yyv4787, yyv24787) + } + } else if yyl4787 != len(yyv4787) { + yyv4787 = yyv4787[:yyl4787] + yyc4787 = true + } + yyj4787 := 0 + for ; yyj4787 < yyrr4787; yyj4787++ { + yyh4787.ElemContainerState(yyj4787) + if r.TryDecodeAsNil() { + yyv4787[yyj4787] = EndpointPort{} + } else { + yyv4788 := &yyv4787[yyj4787] + yyv4788.CodecDecodeSelf(d) + } + + } + if yyrt4787 { + for ; yyj4787 < yyl4787; yyj4787++ { + yyv4787 = append(yyv4787, EndpointPort{}) + yyh4787.ElemContainerState(yyj4787) + if r.TryDecodeAsNil() { + yyv4787[yyj4787] = EndpointPort{} + } else { + yyv4789 := &yyv4787[yyj4787] + yyv4789.CodecDecodeSelf(d) + } + + } + } + + } else { + yyj4787 := 0 + for ; !r.CheckBreak(); yyj4787++ { + + if yyj4787 >= len(yyv4787) { + yyv4787 = append(yyv4787, EndpointPort{}) // var yyz4787 EndpointPort + yyc4787 = true + } + yyh4787.ElemContainerState(yyj4787) + if yyj4787 < len(yyv4787) { + if r.TryDecodeAsNil() { + yyv4787[yyj4787] = EndpointPort{} + } else { + yyv4790 := &yyv4787[yyj4787] yyv4790.CodecDecodeSelf(d) } - } - } - - } else { - yyj4788 := 0 - for ; !r.CheckBreak(); yyj4788++ { - - if yyj4788 >= len(yyv4788) { - yyv4788 = append(yyv4788, LimitRangeItem{}) // var yyz4788 LimitRangeItem - yyc4788 = true - } - yyh4788.ElemContainerState(yyj4788) - if yyj4788 < len(yyv4788) { - if r.TryDecodeAsNil() { - yyv4788[yyj4788] = LimitRangeItem{} - } else { - yyv4791 := &yyv4788[yyj4788] - yyv4791.CodecDecodeSelf(d) - } - } else { z.DecSwallow() } } - if yyj4788 < len(yyv4788) { - yyv4788 = yyv4788[:yyj4788] - yyc4788 = true - } else if yyj4788 == 0 && yyv4788 == nil { - yyv4788 = []LimitRangeItem{} - yyc4788 = true + if yyj4787 < len(yyv4787) { + yyv4787 = yyv4787[:yyj4787] + yyc4787 = true + } else if yyj4787 == 0 && yyv4787 == nil { + yyv4787 = []EndpointPort{} + yyc4787 = true } } - yyh4788.End() - if yyc4788 { - *v = yyv4788 + yyh4787.End() + if yyc4787 { + *v = yyv4787 } } -func (x codecSelfer1234) encSliceLimitRange(v []LimitRange, 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 _, yyv4792 := range v { + for _, yyv4791 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy4793 := &yyv4792 - yy4793.CodecEncodeSelf(e) + yy4792 := &yyv4791 + yy4792.CodecEncodeSelf(e) } z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } -func (x codecSelfer1234) decSliceLimitRange(v *[]LimitRange, d *codec1978.Decoder) { +func (x codecSelfer1234) decSliceEndpoints(v *[]Endpoints, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yyv4794 := *v - yyh4794, yyl4794 := z.DecSliceHelperStart() - var yyc4794 bool - if yyl4794 == 0 { - if yyv4794 == nil { - yyv4794 = []LimitRange{} - yyc4794 = true - } else if len(yyv4794) != 0 { - yyv4794 = yyv4794[:0] - yyc4794 = true + yyv4793 := *v + yyh4793, yyl4793 := z.DecSliceHelperStart() + var yyc4793 bool + if yyl4793 == 0 { + if yyv4793 == nil { + yyv4793 = []Endpoints{} + yyc4793 = true + } else if len(yyv4793) != 0 { + yyv4793 = yyv4793[:0] + yyc4793 = true } - } else if yyl4794 > 0 { - var yyrr4794, yyrl4794 int - var yyrt4794 bool - if yyl4794 > cap(yyv4794) { + } else if yyl4793 > 0 { + var yyrr4793, yyrl4793 int + var yyrt4793 bool + if yyl4793 > cap(yyv4793) { - yyrg4794 := len(yyv4794) > 0 - yyv24794 := yyv4794 - yyrl4794, yyrt4794 = z.DecInferLen(yyl4794, z.DecBasicHandle().MaxInitLen, 280) - if yyrt4794 { - if yyrl4794 <= cap(yyv4794) { - yyv4794 = yyv4794[:yyrl4794] + yyrg4793 := len(yyv4793) > 0 + yyv24793 := yyv4793 + yyrl4793, yyrt4793 = z.DecInferLen(yyl4793, z.DecBasicHandle().MaxInitLen, 280) + if yyrt4793 { + if yyrl4793 <= cap(yyv4793) { + yyv4793 = yyv4793[:yyrl4793] } else { - yyv4794 = make([]LimitRange, yyrl4794) + yyv4793 = make([]Endpoints, yyrl4793) } } else { - yyv4794 = make([]LimitRange, yyrl4794) + yyv4793 = make([]Endpoints, yyrl4793) } - yyc4794 = true - yyrr4794 = len(yyv4794) - if yyrg4794 { - copy(yyv4794, yyv24794) + yyc4793 = true + yyrr4793 = len(yyv4793) + if yyrg4793 { + copy(yyv4793, yyv24793) } - } else if yyl4794 != len(yyv4794) { - yyv4794 = yyv4794[:yyl4794] - yyc4794 = true + } else if yyl4793 != len(yyv4793) { + yyv4793 = yyv4793[:yyl4793] + yyc4793 = true } - yyj4794 := 0 - for ; yyj4794 < yyrr4794; yyj4794++ { - yyh4794.ElemContainerState(yyj4794) + yyj4793 := 0 + for ; yyj4793 < yyrr4793; yyj4793++ { + yyh4793.ElemContainerState(yyj4793) if r.TryDecodeAsNil() { - yyv4794[yyj4794] = LimitRange{} + yyv4793[yyj4793] = Endpoints{} } else { - yyv4795 := &yyv4794[yyj4794] - yyv4795.CodecDecodeSelf(d) + yyv4794 := &yyv4793[yyj4793] + yyv4794.CodecDecodeSelf(d) } } - if yyrt4794 { - for ; yyj4794 < yyl4794; yyj4794++ { - yyv4794 = append(yyv4794, LimitRange{}) - yyh4794.ElemContainerState(yyj4794) + if yyrt4793 { + for ; yyj4793 < yyl4793; yyj4793++ { + yyv4793 = append(yyv4793, Endpoints{}) + yyh4793.ElemContainerState(yyj4793) if r.TryDecodeAsNil() { - yyv4794[yyj4794] = LimitRange{} + yyv4793[yyj4793] = Endpoints{} } else { - yyv4796 := &yyv4794[yyj4794] - yyv4796.CodecDecodeSelf(d) + yyv4795 := &yyv4793[yyj4793] + yyv4795.CodecDecodeSelf(d) } } } } else { - yyj4794 := 0 - for ; !r.CheckBreak(); yyj4794++ { + yyj4793 := 0 + for ; !r.CheckBreak(); yyj4793++ { - if yyj4794 >= len(yyv4794) { - yyv4794 = append(yyv4794, LimitRange{}) // var yyz4794 LimitRange - yyc4794 = true + if yyj4793 >= len(yyv4793) { + yyv4793 = append(yyv4793, Endpoints{}) // var yyz4793 Endpoints + yyc4793 = true } - yyh4794.ElemContainerState(yyj4794) - if yyj4794 < len(yyv4794) { + yyh4793.ElemContainerState(yyj4793) + if yyj4793 < len(yyv4793) { if r.TryDecodeAsNil() { - yyv4794[yyj4794] = LimitRange{} + yyv4793[yyj4793] = Endpoints{} } else { - yyv4797 := &yyv4794[yyj4794] - yyv4797.CodecDecodeSelf(d) + yyv4796 := &yyv4793[yyj4793] + yyv4796.CodecDecodeSelf(d) } } else { @@ -61548,33 +61108,34 @@ func (x codecSelfer1234) decSliceLimitRange(v *[]LimitRange, d *codec1978.Decode } } - if yyj4794 < len(yyv4794) { - yyv4794 = yyv4794[:yyj4794] - yyc4794 = true - } else if yyj4794 == 0 && yyv4794 == nil { - yyv4794 = []LimitRange{} - yyc4794 = true + if yyj4793 < len(yyv4793) { + yyv4793 = yyv4793[:yyj4793] + yyc4793 = true + } else if yyj4793 == 0 && yyv4793 == nil { + yyv4793 = []Endpoints{} + yyc4793 = true } } - yyh4794.End() - if yyc4794 { - *v = yyv4794 + yyh4793.End() + if yyc4793 { + *v = yyv4793 } } -func (x codecSelfer1234) encSliceResourceQuotaScope(v []ResourceQuotaScope, 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 _, yyv4798 := range v { + for _, yyv4797 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yyv4798.CodecEncodeSelf(e) + yy4798 := &yyv4797 + yy4798.CodecEncodeSelf(e) } z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } -func (x codecSelfer1234) decSliceResourceQuotaScope(v *[]ResourceQuotaScope, d *codec1978.Decoder) { +func (x codecSelfer1234) decSliceNodeCondition(v *[]NodeCondition, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r @@ -61584,7 +61145,7 @@ func (x codecSelfer1234) decSliceResourceQuotaScope(v *[]ResourceQuotaScope, d * var yyc4799 bool if yyl4799 == 0 { if yyv4799 == nil { - yyv4799 = []ResourceQuotaScope{} + yyv4799 = []NodeCondition{} yyc4799 = true } else if len(yyv4799) != 0 { yyv4799 = yyv4799[:0] @@ -61595,18 +61156,23 @@ func (x codecSelfer1234) decSliceResourceQuotaScope(v *[]ResourceQuotaScope, d * var yyrt4799 bool if yyl4799 > cap(yyv4799) { - yyrl4799, yyrt4799 = z.DecInferLen(yyl4799, z.DecBasicHandle().MaxInitLen, 16) + yyrg4799 := len(yyv4799) > 0 + yyv24799 := yyv4799 + yyrl4799, yyrt4799 = z.DecInferLen(yyl4799, z.DecBasicHandle().MaxInitLen, 112) if yyrt4799 { if yyrl4799 <= cap(yyv4799) { yyv4799 = yyv4799[:yyrl4799] } else { - yyv4799 = make([]ResourceQuotaScope, yyrl4799) + yyv4799 = make([]NodeCondition, yyrl4799) } } else { - yyv4799 = make([]ResourceQuotaScope, yyrl4799) + yyv4799 = make([]NodeCondition, yyrl4799) } yyc4799 = true yyrr4799 = len(yyv4799) + if yyrg4799 { + copy(yyv4799, yyv24799) + } } else if yyl4799 != len(yyv4799) { yyv4799 = yyv4799[:yyl4799] yyc4799 = true @@ -61615,20 +61181,22 @@ func (x codecSelfer1234) decSliceResourceQuotaScope(v *[]ResourceQuotaScope, d * for ; yyj4799 < yyrr4799; yyj4799++ { yyh4799.ElemContainerState(yyj4799) if r.TryDecodeAsNil() { - yyv4799[yyj4799] = "" + yyv4799[yyj4799] = NodeCondition{} } else { - yyv4799[yyj4799] = ResourceQuotaScope(r.DecodeString()) + yyv4800 := &yyv4799[yyj4799] + yyv4800.CodecDecodeSelf(d) } } if yyrt4799 { for ; yyj4799 < yyl4799; yyj4799++ { - yyv4799 = append(yyv4799, "") + yyv4799 = append(yyv4799, NodeCondition{}) yyh4799.ElemContainerState(yyj4799) if r.TryDecodeAsNil() { - yyv4799[yyj4799] = "" + yyv4799[yyj4799] = NodeCondition{} } else { - yyv4799[yyj4799] = ResourceQuotaScope(r.DecodeString()) + yyv4801 := &yyv4799[yyj4799] + yyv4801.CodecDecodeSelf(d) } } @@ -61639,15 +61207,16 @@ func (x codecSelfer1234) decSliceResourceQuotaScope(v *[]ResourceQuotaScope, d * for ; !r.CheckBreak(); yyj4799++ { if yyj4799 >= len(yyv4799) { - yyv4799 = append(yyv4799, "") // var yyz4799 ResourceQuotaScope + yyv4799 = append(yyv4799, NodeCondition{}) // var yyz4799 NodeCondition yyc4799 = true } yyh4799.ElemContainerState(yyj4799) if yyj4799 < len(yyv4799) { if r.TryDecodeAsNil() { - yyv4799[yyj4799] = "" + yyv4799[yyj4799] = NodeCondition{} } else { - yyv4799[yyj4799] = ResourceQuotaScope(r.DecodeString()) + yyv4802 := &yyv4799[yyj4799] + yyv4802.CodecDecodeSelf(d) } } else { @@ -61659,7 +61228,7 @@ func (x codecSelfer1234) decSliceResourceQuotaScope(v *[]ResourceQuotaScope, d * yyv4799 = yyv4799[:yyj4799] yyc4799 = true } else if yyj4799 == 0 && yyv4799 == nil { - yyv4799 = []ResourceQuotaScope{} + yyv4799 = []NodeCondition{} yyc4799 = true } } @@ -61669,7 +61238,7 @@ func (x codecSelfer1234) decSliceResourceQuotaScope(v *[]ResourceQuotaScope, d * } } -func (x codecSelfer1234) encSliceResourceQuota(v []ResourceQuota, e *codec1978.Encoder) { +func (x codecSelfer1234) encSliceNodeAddress(v []NodeAddress, e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r @@ -61682,7 +61251,7 @@ func (x codecSelfer1234) encSliceResourceQuota(v []ResourceQuota, e *codec1978.E z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } -func (x codecSelfer1234) decSliceResourceQuota(v *[]ResourceQuota, d *codec1978.Decoder) { +func (x codecSelfer1234) decSliceNodeAddress(v *[]NodeAddress, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r @@ -61692,7 +61261,7 @@ func (x codecSelfer1234) decSliceResourceQuota(v *[]ResourceQuota, d *codec1978. var yyc4805 bool if yyl4805 == 0 { if yyv4805 == nil { - yyv4805 = []ResourceQuota{} + yyv4805 = []NodeAddress{} yyc4805 = true } else if len(yyv4805) != 0 { yyv4805 = yyv4805[:0] @@ -61705,15 +61274,15 @@ func (x codecSelfer1234) decSliceResourceQuota(v *[]ResourceQuota, d *codec1978. yyrg4805 := len(yyv4805) > 0 yyv24805 := yyv4805 - yyrl4805, yyrt4805 = z.DecInferLen(yyl4805, z.DecBasicHandle().MaxInitLen, 304) + yyrl4805, yyrt4805 = z.DecInferLen(yyl4805, z.DecBasicHandle().MaxInitLen, 32) if yyrt4805 { if yyrl4805 <= cap(yyv4805) { yyv4805 = yyv4805[:yyrl4805] } else { - yyv4805 = make([]ResourceQuota, yyrl4805) + yyv4805 = make([]NodeAddress, yyrl4805) } } else { - yyv4805 = make([]ResourceQuota, yyrl4805) + yyv4805 = make([]NodeAddress, yyrl4805) } yyc4805 = true yyrr4805 = len(yyv4805) @@ -61728,7 +61297,7 @@ func (x codecSelfer1234) decSliceResourceQuota(v *[]ResourceQuota, d *codec1978. for ; yyj4805 < yyrr4805; yyj4805++ { yyh4805.ElemContainerState(yyj4805) if r.TryDecodeAsNil() { - yyv4805[yyj4805] = ResourceQuota{} + yyv4805[yyj4805] = NodeAddress{} } else { yyv4806 := &yyv4805[yyj4805] yyv4806.CodecDecodeSelf(d) @@ -61737,10 +61306,10 @@ func (x codecSelfer1234) decSliceResourceQuota(v *[]ResourceQuota, d *codec1978. } if yyrt4805 { for ; yyj4805 < yyl4805; yyj4805++ { - yyv4805 = append(yyv4805, ResourceQuota{}) + yyv4805 = append(yyv4805, NodeAddress{}) yyh4805.ElemContainerState(yyj4805) if r.TryDecodeAsNil() { - yyv4805[yyj4805] = ResourceQuota{} + yyv4805[yyj4805] = NodeAddress{} } else { yyv4807 := &yyv4805[yyj4805] yyv4807.CodecDecodeSelf(d) @@ -61754,13 +61323,13 @@ func (x codecSelfer1234) decSliceResourceQuota(v *[]ResourceQuota, d *codec1978. for ; !r.CheckBreak(); yyj4805++ { if yyj4805 >= len(yyv4805) { - yyv4805 = append(yyv4805, ResourceQuota{}) // var yyz4805 ResourceQuota + yyv4805 = append(yyv4805, NodeAddress{}) // var yyz4805 NodeAddress yyc4805 = true } yyh4805.ElemContainerState(yyj4805) if yyj4805 < len(yyv4805) { if r.TryDecodeAsNil() { - yyv4805[yyj4805] = ResourceQuota{} + yyv4805[yyj4805] = NodeAddress{} } else { yyv4808 := &yyv4805[yyj4805] yyv4808.CodecDecodeSelf(d) @@ -61775,7 +61344,7 @@ func (x codecSelfer1234) decSliceResourceQuota(v *[]ResourceQuota, d *codec1978. yyv4805 = yyv4805[:yyj4805] yyc4805 = true } else if yyj4805 == 0 && yyv4805 == nil { - yyv4805 = []ResourceQuota{} + yyv4805 = []NodeAddress{} yyc4805 = true } } @@ -61785,28 +61354,1655 @@ func (x codecSelfer1234) decSliceResourceQuota(v *[]ResourceQuota, d *codec1978. } } +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 _, yyv4809 := range v { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yy4810 := &yyv4809 + yy4810.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 + + yyv4811 := *v + yyh4811, yyl4811 := z.DecSliceHelperStart() + var yyc4811 bool + if yyl4811 == 0 { + if yyv4811 == nil { + yyv4811 = []ContainerImage{} + yyc4811 = true + } else if len(yyv4811) != 0 { + yyv4811 = yyv4811[:0] + yyc4811 = true + } + } else if yyl4811 > 0 { + var yyrr4811, yyrl4811 int + var yyrt4811 bool + if yyl4811 > cap(yyv4811) { + + yyrg4811 := len(yyv4811) > 0 + yyv24811 := yyv4811 + yyrl4811, yyrt4811 = z.DecInferLen(yyl4811, z.DecBasicHandle().MaxInitLen, 32) + if yyrt4811 { + if yyrl4811 <= cap(yyv4811) { + yyv4811 = yyv4811[:yyrl4811] + } else { + yyv4811 = make([]ContainerImage, yyrl4811) + } + } else { + yyv4811 = make([]ContainerImage, yyrl4811) + } + yyc4811 = true + yyrr4811 = len(yyv4811) + if yyrg4811 { + copy(yyv4811, yyv24811) + } + } else if yyl4811 != len(yyv4811) { + yyv4811 = yyv4811[:yyl4811] + yyc4811 = true + } + yyj4811 := 0 + for ; yyj4811 < yyrr4811; yyj4811++ { + yyh4811.ElemContainerState(yyj4811) + if r.TryDecodeAsNil() { + yyv4811[yyj4811] = ContainerImage{} + } else { + yyv4812 := &yyv4811[yyj4811] + yyv4812.CodecDecodeSelf(d) + } + + } + if yyrt4811 { + for ; yyj4811 < yyl4811; yyj4811++ { + yyv4811 = append(yyv4811, ContainerImage{}) + yyh4811.ElemContainerState(yyj4811) + if r.TryDecodeAsNil() { + yyv4811[yyj4811] = ContainerImage{} + } else { + yyv4813 := &yyv4811[yyj4811] + yyv4813.CodecDecodeSelf(d) + } + + } + } + + } else { + yyj4811 := 0 + for ; !r.CheckBreak(); yyj4811++ { + + if yyj4811 >= len(yyv4811) { + yyv4811 = append(yyv4811, ContainerImage{}) // var yyz4811 ContainerImage + yyc4811 = true + } + yyh4811.ElemContainerState(yyj4811) + if yyj4811 < len(yyv4811) { + if r.TryDecodeAsNil() { + yyv4811[yyj4811] = ContainerImage{} + } else { + yyv4814 := &yyv4811[yyj4811] + yyv4814.CodecDecodeSelf(d) + } + + } else { + z.DecSwallow() + } + + } + if yyj4811 < len(yyv4811) { + yyv4811 = yyv4811[:yyj4811] + yyc4811 = true + } else if yyj4811 == 0 && yyv4811 == nil { + yyv4811 = []ContainerImage{} + yyc4811 = true + } + } + yyh4811.End() + if yyc4811 { + *v = yyv4811 + } +} + +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 _, yyv4815 := range v { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yyv4815.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 + + yyv4816 := *v + yyh4816, yyl4816 := z.DecSliceHelperStart() + var yyc4816 bool + if yyl4816 == 0 { + if yyv4816 == nil { + yyv4816 = []UniqueVolumeName{} + yyc4816 = true + } else if len(yyv4816) != 0 { + yyv4816 = yyv4816[:0] + yyc4816 = true + } + } else if yyl4816 > 0 { + var yyrr4816, yyrl4816 int + var yyrt4816 bool + if yyl4816 > cap(yyv4816) { + + yyrl4816, yyrt4816 = z.DecInferLen(yyl4816, z.DecBasicHandle().MaxInitLen, 16) + if yyrt4816 { + if yyrl4816 <= cap(yyv4816) { + yyv4816 = yyv4816[:yyrl4816] + } else { + yyv4816 = make([]UniqueVolumeName, yyrl4816) + } + } else { + yyv4816 = make([]UniqueVolumeName, yyrl4816) + } + yyc4816 = true + yyrr4816 = len(yyv4816) + } else if yyl4816 != len(yyv4816) { + yyv4816 = yyv4816[:yyl4816] + yyc4816 = true + } + yyj4816 := 0 + for ; yyj4816 < yyrr4816; yyj4816++ { + yyh4816.ElemContainerState(yyj4816) + if r.TryDecodeAsNil() { + yyv4816[yyj4816] = "" + } else { + yyv4816[yyj4816] = UniqueVolumeName(r.DecodeString()) + } + + } + if yyrt4816 { + for ; yyj4816 < yyl4816; yyj4816++ { + yyv4816 = append(yyv4816, "") + yyh4816.ElemContainerState(yyj4816) + if r.TryDecodeAsNil() { + yyv4816[yyj4816] = "" + } else { + yyv4816[yyj4816] = UniqueVolumeName(r.DecodeString()) + } + + } + } + + } else { + yyj4816 := 0 + for ; !r.CheckBreak(); yyj4816++ { + + if yyj4816 >= len(yyv4816) { + yyv4816 = append(yyv4816, "") // var yyz4816 UniqueVolumeName + yyc4816 = true + } + yyh4816.ElemContainerState(yyj4816) + if yyj4816 < len(yyv4816) { + if r.TryDecodeAsNil() { + yyv4816[yyj4816] = "" + } else { + yyv4816[yyj4816] = UniqueVolumeName(r.DecodeString()) + } + + } else { + z.DecSwallow() + } + + } + if yyj4816 < len(yyv4816) { + yyv4816 = yyv4816[:yyj4816] + yyc4816 = true + } else if yyj4816 == 0 && yyv4816 == nil { + yyv4816 = []UniqueVolumeName{} + yyc4816 = true + } + } + yyh4816.End() + if yyc4816 { + *v = yyv4816 + } +} + +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 _, yyv4820 := range v { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yy4821 := &yyv4820 + yy4821.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 + + yyv4822 := *v + yyh4822, yyl4822 := z.DecSliceHelperStart() + var yyc4822 bool + if yyl4822 == 0 { + if yyv4822 == nil { + yyv4822 = []AttachedVolume{} + yyc4822 = true + } else if len(yyv4822) != 0 { + yyv4822 = yyv4822[:0] + yyc4822 = true + } + } else if yyl4822 > 0 { + var yyrr4822, yyrl4822 int + var yyrt4822 bool + if yyl4822 > cap(yyv4822) { + + yyrg4822 := len(yyv4822) > 0 + yyv24822 := yyv4822 + yyrl4822, yyrt4822 = z.DecInferLen(yyl4822, z.DecBasicHandle().MaxInitLen, 32) + if yyrt4822 { + if yyrl4822 <= cap(yyv4822) { + yyv4822 = yyv4822[:yyrl4822] + } else { + yyv4822 = make([]AttachedVolume, yyrl4822) + } + } else { + yyv4822 = make([]AttachedVolume, yyrl4822) + } + yyc4822 = true + yyrr4822 = len(yyv4822) + if yyrg4822 { + copy(yyv4822, yyv24822) + } + } else if yyl4822 != len(yyv4822) { + yyv4822 = yyv4822[:yyl4822] + yyc4822 = true + } + yyj4822 := 0 + for ; yyj4822 < yyrr4822; yyj4822++ { + yyh4822.ElemContainerState(yyj4822) + if r.TryDecodeAsNil() { + yyv4822[yyj4822] = AttachedVolume{} + } else { + yyv4823 := &yyv4822[yyj4822] + yyv4823.CodecDecodeSelf(d) + } + + } + if yyrt4822 { + for ; yyj4822 < yyl4822; yyj4822++ { + yyv4822 = append(yyv4822, AttachedVolume{}) + yyh4822.ElemContainerState(yyj4822) + if r.TryDecodeAsNil() { + yyv4822[yyj4822] = AttachedVolume{} + } else { + yyv4824 := &yyv4822[yyj4822] + yyv4824.CodecDecodeSelf(d) + } + + } + } + + } else { + yyj4822 := 0 + for ; !r.CheckBreak(); yyj4822++ { + + if yyj4822 >= len(yyv4822) { + yyv4822 = append(yyv4822, AttachedVolume{}) // var yyz4822 AttachedVolume + yyc4822 = true + } + yyh4822.ElemContainerState(yyj4822) + if yyj4822 < len(yyv4822) { + if r.TryDecodeAsNil() { + yyv4822[yyj4822] = AttachedVolume{} + } else { + yyv4825 := &yyv4822[yyj4822] + yyv4825.CodecDecodeSelf(d) + } + + } else { + z.DecSwallow() + } + + } + if yyj4822 < len(yyv4822) { + yyv4822 = yyv4822[:yyj4822] + yyc4822 = true + } else if yyj4822 == 0 && yyv4822 == nil { + yyv4822 = []AttachedVolume{} + yyc4822 = true + } + } + yyh4822.End() + if yyc4822 { + *v = yyv4822 + } +} + +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 _, yyv4826 := range v { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yy4827 := &yyv4826 + yy4827.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 + + yyv4828 := *v + yyh4828, yyl4828 := z.DecSliceHelperStart() + var yyc4828 bool + if yyl4828 == 0 { + if yyv4828 == nil { + yyv4828 = []PreferAvoidPodsEntry{} + yyc4828 = true + } else if len(yyv4828) != 0 { + yyv4828 = yyv4828[:0] + yyc4828 = true + } + } else if yyl4828 > 0 { + var yyrr4828, yyrl4828 int + var yyrt4828 bool + if yyl4828 > cap(yyv4828) { + + yyrg4828 := len(yyv4828) > 0 + yyv24828 := yyv4828 + yyrl4828, yyrt4828 = z.DecInferLen(yyl4828, z.DecBasicHandle().MaxInitLen, 64) + if yyrt4828 { + if yyrl4828 <= cap(yyv4828) { + yyv4828 = yyv4828[:yyrl4828] + } else { + yyv4828 = make([]PreferAvoidPodsEntry, yyrl4828) + } + } else { + yyv4828 = make([]PreferAvoidPodsEntry, yyrl4828) + } + yyc4828 = true + yyrr4828 = len(yyv4828) + if yyrg4828 { + copy(yyv4828, yyv24828) + } + } else if yyl4828 != len(yyv4828) { + yyv4828 = yyv4828[:yyl4828] + yyc4828 = true + } + yyj4828 := 0 + for ; yyj4828 < yyrr4828; yyj4828++ { + yyh4828.ElemContainerState(yyj4828) + if r.TryDecodeAsNil() { + yyv4828[yyj4828] = PreferAvoidPodsEntry{} + } else { + yyv4829 := &yyv4828[yyj4828] + yyv4829.CodecDecodeSelf(d) + } + + } + if yyrt4828 { + for ; yyj4828 < yyl4828; yyj4828++ { + yyv4828 = append(yyv4828, PreferAvoidPodsEntry{}) + yyh4828.ElemContainerState(yyj4828) + if r.TryDecodeAsNil() { + yyv4828[yyj4828] = PreferAvoidPodsEntry{} + } else { + yyv4830 := &yyv4828[yyj4828] + yyv4830.CodecDecodeSelf(d) + } + + } + } + + } else { + yyj4828 := 0 + for ; !r.CheckBreak(); yyj4828++ { + + if yyj4828 >= len(yyv4828) { + yyv4828 = append(yyv4828, PreferAvoidPodsEntry{}) // var yyz4828 PreferAvoidPodsEntry + yyc4828 = true + } + yyh4828.ElemContainerState(yyj4828) + if yyj4828 < len(yyv4828) { + if r.TryDecodeAsNil() { + yyv4828[yyj4828] = PreferAvoidPodsEntry{} + } else { + yyv4831 := &yyv4828[yyj4828] + yyv4831.CodecDecodeSelf(d) + } + + } else { + z.DecSwallow() + } + + } + if yyj4828 < len(yyv4828) { + yyv4828 = yyv4828[:yyj4828] + yyc4828 = true + } else if yyj4828 == 0 && yyv4828 == nil { + yyv4828 = []PreferAvoidPodsEntry{} + yyc4828 = true + } + } + yyh4828.End() + if yyc4828 { + *v = yyv4828 + } +} + +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 yyk4832, yyv4832 := range v { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + yyk4832.CodecEncodeSelf(e) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yy4833 := &yyv4832 + yym4834 := z.EncBinary() + _ = yym4834 + if false { + } else if z.HasExtensions() && z.EncExt(yy4833) { + } else if !yym4834 && z.IsJSONHandle() { + z.EncJSONMarshal(yy4833) + } else { + z.EncFallback(yy4833) + } + } + z.EncSendContainerState(codecSelfer_containerMapEnd1234) +} + +func (x codecSelfer1234) decResourceList(v *ResourceList, d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + + yyv4835 := *v + yyl4835 := r.ReadMapStart() + yybh4835 := z.DecBasicHandle() + if yyv4835 == nil { + yyrl4835, _ := z.DecInferLen(yyl4835, yybh4835.MaxInitLen, 72) + yyv4835 = make(map[ResourceName]pkg3_resource.Quantity, yyrl4835) + *v = yyv4835 + } + var yymk4835 ResourceName + var yymv4835 pkg3_resource.Quantity + var yymg4835 bool + if yybh4835.MapValueReset { + yymg4835 = true + } + if yyl4835 > 0 { + for yyj4835 := 0; yyj4835 < yyl4835; yyj4835++ { + z.DecSendContainerState(codecSelfer_containerMapKey1234) + if r.TryDecodeAsNil() { + yymk4835 = "" + } else { + yymk4835 = ResourceName(r.DecodeString()) + } + + if yymg4835 { + yymv4835 = yyv4835[yymk4835] + } else { + yymv4835 = pkg3_resource.Quantity{} + } + z.DecSendContainerState(codecSelfer_containerMapValue1234) + if r.TryDecodeAsNil() { + yymv4835 = pkg3_resource.Quantity{} + } else { + yyv4837 := &yymv4835 + yym4838 := z.DecBinary() + _ = yym4838 + if false { + } else if z.HasExtensions() && z.DecExt(yyv4837) { + } else if !yym4838 && z.IsJSONHandle() { + z.DecJSONUnmarshal(yyv4837) + } else { + z.DecFallback(yyv4837, false) + } + } + + if yyv4835 != nil { + yyv4835[yymk4835] = yymv4835 + } + } + } else if yyl4835 < 0 { + for yyj4835 := 0; !r.CheckBreak(); yyj4835++ { + z.DecSendContainerState(codecSelfer_containerMapKey1234) + if r.TryDecodeAsNil() { + yymk4835 = "" + } else { + yymk4835 = ResourceName(r.DecodeString()) + } + + if yymg4835 { + yymv4835 = yyv4835[yymk4835] + } else { + yymv4835 = pkg3_resource.Quantity{} + } + z.DecSendContainerState(codecSelfer_containerMapValue1234) + if r.TryDecodeAsNil() { + yymv4835 = pkg3_resource.Quantity{} + } else { + yyv4840 := &yymv4835 + yym4841 := z.DecBinary() + _ = yym4841 + if false { + } else if z.HasExtensions() && z.DecExt(yyv4840) { + } else if !yym4841 && z.IsJSONHandle() { + z.DecJSONUnmarshal(yyv4840) + } else { + z.DecFallback(yyv4840, false) + } + } + + if yyv4835 != nil { + yyv4835[yymk4835] = yymv4835 + } + } + } // 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 _, yyv4842 := range v { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yy4843 := &yyv4842 + yy4843.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 + + yyv4844 := *v + yyh4844, yyl4844 := z.DecSliceHelperStart() + var yyc4844 bool + if yyl4844 == 0 { + if yyv4844 == nil { + yyv4844 = []Node{} + yyc4844 = true + } else if len(yyv4844) != 0 { + yyv4844 = yyv4844[:0] + yyc4844 = true + } + } else if yyl4844 > 0 { + var yyrr4844, yyrl4844 int + var yyrt4844 bool + if yyl4844 > cap(yyv4844) { + + yyrg4844 := len(yyv4844) > 0 + yyv24844 := yyv4844 + yyrl4844, yyrt4844 = z.DecInferLen(yyl4844, z.DecBasicHandle().MaxInitLen, 632) + if yyrt4844 { + if yyrl4844 <= cap(yyv4844) { + yyv4844 = yyv4844[:yyrl4844] + } else { + yyv4844 = make([]Node, yyrl4844) + } + } else { + yyv4844 = make([]Node, yyrl4844) + } + yyc4844 = true + yyrr4844 = len(yyv4844) + if yyrg4844 { + copy(yyv4844, yyv24844) + } + } else if yyl4844 != len(yyv4844) { + yyv4844 = yyv4844[:yyl4844] + yyc4844 = true + } + yyj4844 := 0 + for ; yyj4844 < yyrr4844; yyj4844++ { + yyh4844.ElemContainerState(yyj4844) + if r.TryDecodeAsNil() { + yyv4844[yyj4844] = Node{} + } else { + yyv4845 := &yyv4844[yyj4844] + yyv4845.CodecDecodeSelf(d) + } + + } + if yyrt4844 { + for ; yyj4844 < yyl4844; yyj4844++ { + yyv4844 = append(yyv4844, Node{}) + yyh4844.ElemContainerState(yyj4844) + if r.TryDecodeAsNil() { + yyv4844[yyj4844] = Node{} + } else { + yyv4846 := &yyv4844[yyj4844] + yyv4846.CodecDecodeSelf(d) + } + + } + } + + } else { + yyj4844 := 0 + for ; !r.CheckBreak(); yyj4844++ { + + if yyj4844 >= len(yyv4844) { + yyv4844 = append(yyv4844, Node{}) // var yyz4844 Node + yyc4844 = true + } + yyh4844.ElemContainerState(yyj4844) + if yyj4844 < len(yyv4844) { + if r.TryDecodeAsNil() { + yyv4844[yyj4844] = Node{} + } else { + yyv4847 := &yyv4844[yyj4844] + yyv4847.CodecDecodeSelf(d) + } + + } else { + z.DecSwallow() + } + + } + if yyj4844 < len(yyv4844) { + yyv4844 = yyv4844[:yyj4844] + yyc4844 = true + } else if yyj4844 == 0 && yyv4844 == nil { + yyv4844 = []Node{} + yyc4844 = true + } + } + yyh4844.End() + if yyc4844 { + *v = yyv4844 + } +} + +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 _, yyv4848 := range v { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yyv4848.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 + + yyv4849 := *v + yyh4849, yyl4849 := z.DecSliceHelperStart() + var yyc4849 bool + if yyl4849 == 0 { + if yyv4849 == nil { + yyv4849 = []FinalizerName{} + yyc4849 = true + } else if len(yyv4849) != 0 { + yyv4849 = yyv4849[:0] + yyc4849 = true + } + } else if yyl4849 > 0 { + var yyrr4849, yyrl4849 int + var yyrt4849 bool + if yyl4849 > cap(yyv4849) { + + yyrl4849, yyrt4849 = z.DecInferLen(yyl4849, z.DecBasicHandle().MaxInitLen, 16) + if yyrt4849 { + if yyrl4849 <= cap(yyv4849) { + yyv4849 = yyv4849[:yyrl4849] + } else { + yyv4849 = make([]FinalizerName, yyrl4849) + } + } else { + yyv4849 = make([]FinalizerName, yyrl4849) + } + yyc4849 = true + yyrr4849 = len(yyv4849) + } else if yyl4849 != len(yyv4849) { + yyv4849 = yyv4849[:yyl4849] + yyc4849 = true + } + yyj4849 := 0 + for ; yyj4849 < yyrr4849; yyj4849++ { + yyh4849.ElemContainerState(yyj4849) + if r.TryDecodeAsNil() { + yyv4849[yyj4849] = "" + } else { + yyv4849[yyj4849] = FinalizerName(r.DecodeString()) + } + + } + if yyrt4849 { + for ; yyj4849 < yyl4849; yyj4849++ { + yyv4849 = append(yyv4849, "") + yyh4849.ElemContainerState(yyj4849) + if r.TryDecodeAsNil() { + yyv4849[yyj4849] = "" + } else { + yyv4849[yyj4849] = FinalizerName(r.DecodeString()) + } + + } + } + + } else { + yyj4849 := 0 + for ; !r.CheckBreak(); yyj4849++ { + + if yyj4849 >= len(yyv4849) { + yyv4849 = append(yyv4849, "") // var yyz4849 FinalizerName + yyc4849 = true + } + yyh4849.ElemContainerState(yyj4849) + if yyj4849 < len(yyv4849) { + if r.TryDecodeAsNil() { + yyv4849[yyj4849] = "" + } else { + yyv4849[yyj4849] = FinalizerName(r.DecodeString()) + } + + } else { + z.DecSwallow() + } + + } + if yyj4849 < len(yyv4849) { + yyv4849 = yyv4849[:yyj4849] + yyc4849 = true + } else if yyj4849 == 0 && yyv4849 == nil { + yyv4849 = []FinalizerName{} + yyc4849 = true + } + } + yyh4849.End() + if yyc4849 { + *v = yyv4849 + } +} + +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 _, yyv4853 := range v { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yy4854 := &yyv4853 + yy4854.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 + + yyv4855 := *v + yyh4855, yyl4855 := z.DecSliceHelperStart() + var yyc4855 bool + if yyl4855 == 0 { + if yyv4855 == nil { + yyv4855 = []Namespace{} + yyc4855 = true + } else if len(yyv4855) != 0 { + yyv4855 = yyv4855[:0] + yyc4855 = true + } + } else if yyl4855 > 0 { + var yyrr4855, yyrl4855 int + var yyrt4855 bool + if yyl4855 > cap(yyv4855) { + + yyrg4855 := len(yyv4855) > 0 + yyv24855 := yyv4855 + yyrl4855, yyrt4855 = z.DecInferLen(yyl4855, z.DecBasicHandle().MaxInitLen, 296) + if yyrt4855 { + if yyrl4855 <= cap(yyv4855) { + yyv4855 = yyv4855[:yyrl4855] + } else { + yyv4855 = make([]Namespace, yyrl4855) + } + } else { + yyv4855 = make([]Namespace, yyrl4855) + } + yyc4855 = true + yyrr4855 = len(yyv4855) + if yyrg4855 { + copy(yyv4855, yyv24855) + } + } else if yyl4855 != len(yyv4855) { + yyv4855 = yyv4855[:yyl4855] + yyc4855 = true + } + yyj4855 := 0 + for ; yyj4855 < yyrr4855; yyj4855++ { + yyh4855.ElemContainerState(yyj4855) + if r.TryDecodeAsNil() { + yyv4855[yyj4855] = Namespace{} + } else { + yyv4856 := &yyv4855[yyj4855] + yyv4856.CodecDecodeSelf(d) + } + + } + if yyrt4855 { + for ; yyj4855 < yyl4855; yyj4855++ { + yyv4855 = append(yyv4855, Namespace{}) + yyh4855.ElemContainerState(yyj4855) + if r.TryDecodeAsNil() { + yyv4855[yyj4855] = Namespace{} + } else { + yyv4857 := &yyv4855[yyj4855] + yyv4857.CodecDecodeSelf(d) + } + + } + } + + } else { + yyj4855 := 0 + for ; !r.CheckBreak(); yyj4855++ { + + if yyj4855 >= len(yyv4855) { + yyv4855 = append(yyv4855, Namespace{}) // var yyz4855 Namespace + yyc4855 = true + } + yyh4855.ElemContainerState(yyj4855) + if yyj4855 < len(yyv4855) { + if r.TryDecodeAsNil() { + yyv4855[yyj4855] = Namespace{} + } else { + yyv4858 := &yyv4855[yyj4855] + yyv4858.CodecDecodeSelf(d) + } + + } else { + z.DecSwallow() + } + + } + if yyj4855 < len(yyv4855) { + yyv4855 = yyv4855[:yyj4855] + yyc4855 = true + } else if yyj4855 == 0 && yyv4855 == nil { + yyv4855 = []Namespace{} + yyc4855 = true + } + } + yyh4855.End() + if yyc4855 { + *v = yyv4855 + } +} + +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 _, yyv4859 := range v { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yy4860 := &yyv4859 + yy4860.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 + + yyv4861 := *v + yyh4861, yyl4861 := z.DecSliceHelperStart() + var yyc4861 bool + if yyl4861 == 0 { + if yyv4861 == nil { + yyv4861 = []Event{} + yyc4861 = true + } else if len(yyv4861) != 0 { + yyv4861 = yyv4861[:0] + yyc4861 = true + } + } else if yyl4861 > 0 { + var yyrr4861, yyrl4861 int + var yyrt4861 bool + if yyl4861 > cap(yyv4861) { + + yyrg4861 := len(yyv4861) > 0 + yyv24861 := yyv4861 + yyrl4861, yyrt4861 = z.DecInferLen(yyl4861, z.DecBasicHandle().MaxInitLen, 504) + if yyrt4861 { + if yyrl4861 <= cap(yyv4861) { + yyv4861 = yyv4861[:yyrl4861] + } else { + yyv4861 = make([]Event, yyrl4861) + } + } else { + yyv4861 = make([]Event, yyrl4861) + } + yyc4861 = true + yyrr4861 = len(yyv4861) + if yyrg4861 { + copy(yyv4861, yyv24861) + } + } else if yyl4861 != len(yyv4861) { + yyv4861 = yyv4861[:yyl4861] + yyc4861 = true + } + yyj4861 := 0 + for ; yyj4861 < yyrr4861; yyj4861++ { + yyh4861.ElemContainerState(yyj4861) + if r.TryDecodeAsNil() { + yyv4861[yyj4861] = Event{} + } else { + yyv4862 := &yyv4861[yyj4861] + yyv4862.CodecDecodeSelf(d) + } + + } + if yyrt4861 { + for ; yyj4861 < yyl4861; yyj4861++ { + yyv4861 = append(yyv4861, Event{}) + yyh4861.ElemContainerState(yyj4861) + if r.TryDecodeAsNil() { + yyv4861[yyj4861] = Event{} + } else { + yyv4863 := &yyv4861[yyj4861] + yyv4863.CodecDecodeSelf(d) + } + + } + } + + } else { + yyj4861 := 0 + for ; !r.CheckBreak(); yyj4861++ { + + if yyj4861 >= len(yyv4861) { + yyv4861 = append(yyv4861, Event{}) // var yyz4861 Event + yyc4861 = true + } + yyh4861.ElemContainerState(yyj4861) + if yyj4861 < len(yyv4861) { + if r.TryDecodeAsNil() { + yyv4861[yyj4861] = Event{} + } else { + yyv4864 := &yyv4861[yyj4861] + yyv4864.CodecDecodeSelf(d) + } + + } else { + z.DecSwallow() + } + + } + if yyj4861 < len(yyv4861) { + yyv4861 = yyv4861[:yyj4861] + yyc4861 = true + } else if yyj4861 == 0 && yyv4861 == nil { + yyv4861 = []Event{} + yyc4861 = true + } + } + yyh4861.End() + if yyc4861 { + *v = yyv4861 + } +} + +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 _, yyv4865 := range v { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yy4866 := &yyv4865 + yym4867 := z.EncBinary() + _ = yym4867 + if false { + } else if z.HasExtensions() && z.EncExt(yy4866) { + } else if !yym4867 && z.IsJSONHandle() { + z.EncJSONMarshal(yy4866) + } else { + z.EncFallback(yy4866) + } + } + 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 + + yyv4868 := *v + yyh4868, yyl4868 := z.DecSliceHelperStart() + var yyc4868 bool + if yyl4868 == 0 { + if yyv4868 == nil { + yyv4868 = []pkg5_runtime.RawExtension{} + yyc4868 = true + } else if len(yyv4868) != 0 { + yyv4868 = yyv4868[:0] + yyc4868 = true + } + } else if yyl4868 > 0 { + var yyrr4868, yyrl4868 int + var yyrt4868 bool + if yyl4868 > cap(yyv4868) { + + yyrg4868 := len(yyv4868) > 0 + yyv24868 := yyv4868 + yyrl4868, yyrt4868 = z.DecInferLen(yyl4868, z.DecBasicHandle().MaxInitLen, 40) + if yyrt4868 { + if yyrl4868 <= cap(yyv4868) { + yyv4868 = yyv4868[:yyrl4868] + } else { + yyv4868 = make([]pkg5_runtime.RawExtension, yyrl4868) + } + } else { + yyv4868 = make([]pkg5_runtime.RawExtension, yyrl4868) + } + yyc4868 = true + yyrr4868 = len(yyv4868) + if yyrg4868 { + copy(yyv4868, yyv24868) + } + } else if yyl4868 != len(yyv4868) { + yyv4868 = yyv4868[:yyl4868] + yyc4868 = true + } + yyj4868 := 0 + for ; yyj4868 < yyrr4868; yyj4868++ { + yyh4868.ElemContainerState(yyj4868) + if r.TryDecodeAsNil() { + yyv4868[yyj4868] = pkg5_runtime.RawExtension{} + } else { + yyv4869 := &yyv4868[yyj4868] + yym4870 := z.DecBinary() + _ = yym4870 + if false { + } else if z.HasExtensions() && z.DecExt(yyv4869) { + } else if !yym4870 && z.IsJSONHandle() { + z.DecJSONUnmarshal(yyv4869) + } else { + z.DecFallback(yyv4869, false) + } + } + + } + if yyrt4868 { + for ; yyj4868 < yyl4868; yyj4868++ { + yyv4868 = append(yyv4868, pkg5_runtime.RawExtension{}) + yyh4868.ElemContainerState(yyj4868) + if r.TryDecodeAsNil() { + yyv4868[yyj4868] = pkg5_runtime.RawExtension{} + } else { + yyv4871 := &yyv4868[yyj4868] + yym4872 := z.DecBinary() + _ = yym4872 + if false { + } else if z.HasExtensions() && z.DecExt(yyv4871) { + } else if !yym4872 && z.IsJSONHandle() { + z.DecJSONUnmarshal(yyv4871) + } else { + z.DecFallback(yyv4871, false) + } + } + + } + } + + } else { + yyj4868 := 0 + for ; !r.CheckBreak(); yyj4868++ { + + if yyj4868 >= len(yyv4868) { + yyv4868 = append(yyv4868, pkg5_runtime.RawExtension{}) // var yyz4868 pkg5_runtime.RawExtension + yyc4868 = true + } + yyh4868.ElemContainerState(yyj4868) + if yyj4868 < len(yyv4868) { + if r.TryDecodeAsNil() { + yyv4868[yyj4868] = pkg5_runtime.RawExtension{} + } else { + yyv4873 := &yyv4868[yyj4868] + yym4874 := z.DecBinary() + _ = yym4874 + if false { + } else if z.HasExtensions() && z.DecExt(yyv4873) { + } else if !yym4874 && z.IsJSONHandle() { + z.DecJSONUnmarshal(yyv4873) + } else { + z.DecFallback(yyv4873, false) + } + } + + } else { + z.DecSwallow() + } + + } + if yyj4868 < len(yyv4868) { + yyv4868 = yyv4868[:yyj4868] + yyc4868 = true + } else if yyj4868 == 0 && yyv4868 == nil { + yyv4868 = []pkg5_runtime.RawExtension{} + yyc4868 = true + } + } + yyh4868.End() + if yyc4868 { + *v = yyv4868 + } +} + +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 _, yyv4875 := range v { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yy4876 := &yyv4875 + yy4876.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 + + yyv4877 := *v + yyh4877, yyl4877 := z.DecSliceHelperStart() + var yyc4877 bool + if yyl4877 == 0 { + if yyv4877 == nil { + yyv4877 = []LimitRangeItem{} + yyc4877 = true + } else if len(yyv4877) != 0 { + yyv4877 = yyv4877[:0] + yyc4877 = true + } + } else if yyl4877 > 0 { + var yyrr4877, yyrl4877 int + var yyrt4877 bool + if yyl4877 > cap(yyv4877) { + + yyrg4877 := len(yyv4877) > 0 + yyv24877 := yyv4877 + yyrl4877, yyrt4877 = z.DecInferLen(yyl4877, z.DecBasicHandle().MaxInitLen, 56) + if yyrt4877 { + if yyrl4877 <= cap(yyv4877) { + yyv4877 = yyv4877[:yyrl4877] + } else { + yyv4877 = make([]LimitRangeItem, yyrl4877) + } + } else { + yyv4877 = make([]LimitRangeItem, yyrl4877) + } + yyc4877 = true + yyrr4877 = len(yyv4877) + if yyrg4877 { + copy(yyv4877, yyv24877) + } + } else if yyl4877 != len(yyv4877) { + yyv4877 = yyv4877[:yyl4877] + yyc4877 = true + } + yyj4877 := 0 + for ; yyj4877 < yyrr4877; yyj4877++ { + yyh4877.ElemContainerState(yyj4877) + if r.TryDecodeAsNil() { + yyv4877[yyj4877] = LimitRangeItem{} + } else { + yyv4878 := &yyv4877[yyj4877] + yyv4878.CodecDecodeSelf(d) + } + + } + if yyrt4877 { + for ; yyj4877 < yyl4877; yyj4877++ { + yyv4877 = append(yyv4877, LimitRangeItem{}) + yyh4877.ElemContainerState(yyj4877) + if r.TryDecodeAsNil() { + yyv4877[yyj4877] = LimitRangeItem{} + } else { + yyv4879 := &yyv4877[yyj4877] + yyv4879.CodecDecodeSelf(d) + } + + } + } + + } else { + yyj4877 := 0 + for ; !r.CheckBreak(); yyj4877++ { + + if yyj4877 >= len(yyv4877) { + yyv4877 = append(yyv4877, LimitRangeItem{}) // var yyz4877 LimitRangeItem + yyc4877 = true + } + yyh4877.ElemContainerState(yyj4877) + if yyj4877 < len(yyv4877) { + if r.TryDecodeAsNil() { + yyv4877[yyj4877] = LimitRangeItem{} + } else { + yyv4880 := &yyv4877[yyj4877] + yyv4880.CodecDecodeSelf(d) + } + + } else { + z.DecSwallow() + } + + } + if yyj4877 < len(yyv4877) { + yyv4877 = yyv4877[:yyj4877] + yyc4877 = true + } else if yyj4877 == 0 && yyv4877 == nil { + yyv4877 = []LimitRangeItem{} + yyc4877 = true + } + } + yyh4877.End() + if yyc4877 { + *v = yyv4877 + } +} + +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 _, yyv4881 := range v { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yy4882 := &yyv4881 + yy4882.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 + + yyv4883 := *v + yyh4883, yyl4883 := z.DecSliceHelperStart() + var yyc4883 bool + if yyl4883 == 0 { + if yyv4883 == nil { + yyv4883 = []LimitRange{} + yyc4883 = true + } else if len(yyv4883) != 0 { + yyv4883 = yyv4883[:0] + yyc4883 = true + } + } else if yyl4883 > 0 { + var yyrr4883, yyrl4883 int + var yyrt4883 bool + if yyl4883 > cap(yyv4883) { + + yyrg4883 := len(yyv4883) > 0 + yyv24883 := yyv4883 + yyrl4883, yyrt4883 = z.DecInferLen(yyl4883, z.DecBasicHandle().MaxInitLen, 280) + if yyrt4883 { + if yyrl4883 <= cap(yyv4883) { + yyv4883 = yyv4883[:yyrl4883] + } else { + yyv4883 = make([]LimitRange, yyrl4883) + } + } else { + yyv4883 = make([]LimitRange, yyrl4883) + } + yyc4883 = true + yyrr4883 = len(yyv4883) + if yyrg4883 { + copy(yyv4883, yyv24883) + } + } else if yyl4883 != len(yyv4883) { + yyv4883 = yyv4883[:yyl4883] + yyc4883 = true + } + yyj4883 := 0 + for ; yyj4883 < yyrr4883; yyj4883++ { + yyh4883.ElemContainerState(yyj4883) + if r.TryDecodeAsNil() { + yyv4883[yyj4883] = LimitRange{} + } else { + yyv4884 := &yyv4883[yyj4883] + yyv4884.CodecDecodeSelf(d) + } + + } + if yyrt4883 { + for ; yyj4883 < yyl4883; yyj4883++ { + yyv4883 = append(yyv4883, LimitRange{}) + yyh4883.ElemContainerState(yyj4883) + if r.TryDecodeAsNil() { + yyv4883[yyj4883] = LimitRange{} + } else { + yyv4885 := &yyv4883[yyj4883] + yyv4885.CodecDecodeSelf(d) + } + + } + } + + } else { + yyj4883 := 0 + for ; !r.CheckBreak(); yyj4883++ { + + if yyj4883 >= len(yyv4883) { + yyv4883 = append(yyv4883, LimitRange{}) // var yyz4883 LimitRange + yyc4883 = true + } + yyh4883.ElemContainerState(yyj4883) + if yyj4883 < len(yyv4883) { + if r.TryDecodeAsNil() { + yyv4883[yyj4883] = LimitRange{} + } else { + yyv4886 := &yyv4883[yyj4883] + yyv4886.CodecDecodeSelf(d) + } + + } else { + z.DecSwallow() + } + + } + if yyj4883 < len(yyv4883) { + yyv4883 = yyv4883[:yyj4883] + yyc4883 = true + } else if yyj4883 == 0 && yyv4883 == nil { + yyv4883 = []LimitRange{} + yyc4883 = true + } + } + yyh4883.End() + if yyc4883 { + *v = yyv4883 + } +} + +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 _, yyv4887 := range v { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yyv4887.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 + + yyv4888 := *v + yyh4888, yyl4888 := z.DecSliceHelperStart() + var yyc4888 bool + if yyl4888 == 0 { + if yyv4888 == nil { + yyv4888 = []ResourceQuotaScope{} + yyc4888 = true + } else if len(yyv4888) != 0 { + yyv4888 = yyv4888[:0] + yyc4888 = true + } + } else if yyl4888 > 0 { + var yyrr4888, yyrl4888 int + var yyrt4888 bool + if yyl4888 > cap(yyv4888) { + + yyrl4888, yyrt4888 = z.DecInferLen(yyl4888, z.DecBasicHandle().MaxInitLen, 16) + if yyrt4888 { + if yyrl4888 <= cap(yyv4888) { + yyv4888 = yyv4888[:yyrl4888] + } else { + yyv4888 = make([]ResourceQuotaScope, yyrl4888) + } + } else { + yyv4888 = make([]ResourceQuotaScope, yyrl4888) + } + yyc4888 = true + yyrr4888 = len(yyv4888) + } else if yyl4888 != len(yyv4888) { + yyv4888 = yyv4888[:yyl4888] + yyc4888 = true + } + yyj4888 := 0 + for ; yyj4888 < yyrr4888; yyj4888++ { + yyh4888.ElemContainerState(yyj4888) + if r.TryDecodeAsNil() { + yyv4888[yyj4888] = "" + } else { + yyv4888[yyj4888] = ResourceQuotaScope(r.DecodeString()) + } + + } + if yyrt4888 { + for ; yyj4888 < yyl4888; yyj4888++ { + yyv4888 = append(yyv4888, "") + yyh4888.ElemContainerState(yyj4888) + if r.TryDecodeAsNil() { + yyv4888[yyj4888] = "" + } else { + yyv4888[yyj4888] = ResourceQuotaScope(r.DecodeString()) + } + + } + } + + } else { + yyj4888 := 0 + for ; !r.CheckBreak(); yyj4888++ { + + if yyj4888 >= len(yyv4888) { + yyv4888 = append(yyv4888, "") // var yyz4888 ResourceQuotaScope + yyc4888 = true + } + yyh4888.ElemContainerState(yyj4888) + if yyj4888 < len(yyv4888) { + if r.TryDecodeAsNil() { + yyv4888[yyj4888] = "" + } else { + yyv4888[yyj4888] = ResourceQuotaScope(r.DecodeString()) + } + + } else { + z.DecSwallow() + } + + } + if yyj4888 < len(yyv4888) { + yyv4888 = yyv4888[:yyj4888] + yyc4888 = true + } else if yyj4888 == 0 && yyv4888 == nil { + yyv4888 = []ResourceQuotaScope{} + yyc4888 = true + } + } + yyh4888.End() + if yyc4888 { + *v = yyv4888 + } +} + +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 _, yyv4892 := range v { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yy4893 := &yyv4892 + yy4893.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 + + yyv4894 := *v + yyh4894, yyl4894 := z.DecSliceHelperStart() + var yyc4894 bool + if yyl4894 == 0 { + if yyv4894 == nil { + yyv4894 = []ResourceQuota{} + yyc4894 = true + } else if len(yyv4894) != 0 { + yyv4894 = yyv4894[:0] + yyc4894 = true + } + } else if yyl4894 > 0 { + var yyrr4894, yyrl4894 int + var yyrt4894 bool + if yyl4894 > cap(yyv4894) { + + yyrg4894 := len(yyv4894) > 0 + yyv24894 := yyv4894 + yyrl4894, yyrt4894 = z.DecInferLen(yyl4894, z.DecBasicHandle().MaxInitLen, 304) + if yyrt4894 { + if yyrl4894 <= cap(yyv4894) { + yyv4894 = yyv4894[:yyrl4894] + } else { + yyv4894 = make([]ResourceQuota, yyrl4894) + } + } else { + yyv4894 = make([]ResourceQuota, yyrl4894) + } + yyc4894 = true + yyrr4894 = len(yyv4894) + if yyrg4894 { + copy(yyv4894, yyv24894) + } + } else if yyl4894 != len(yyv4894) { + yyv4894 = yyv4894[:yyl4894] + yyc4894 = true + } + yyj4894 := 0 + for ; yyj4894 < yyrr4894; yyj4894++ { + yyh4894.ElemContainerState(yyj4894) + if r.TryDecodeAsNil() { + yyv4894[yyj4894] = ResourceQuota{} + } else { + yyv4895 := &yyv4894[yyj4894] + yyv4895.CodecDecodeSelf(d) + } + + } + if yyrt4894 { + for ; yyj4894 < yyl4894; yyj4894++ { + yyv4894 = append(yyv4894, ResourceQuota{}) + yyh4894.ElemContainerState(yyj4894) + if r.TryDecodeAsNil() { + yyv4894[yyj4894] = ResourceQuota{} + } else { + yyv4896 := &yyv4894[yyj4894] + yyv4896.CodecDecodeSelf(d) + } + + } + } + + } else { + yyj4894 := 0 + for ; !r.CheckBreak(); yyj4894++ { + + if yyj4894 >= len(yyv4894) { + yyv4894 = append(yyv4894, ResourceQuota{}) // var yyz4894 ResourceQuota + yyc4894 = true + } + yyh4894.ElemContainerState(yyj4894) + if yyj4894 < len(yyv4894) { + if r.TryDecodeAsNil() { + yyv4894[yyj4894] = ResourceQuota{} + } else { + yyv4897 := &yyv4894[yyj4894] + yyv4897.CodecDecodeSelf(d) + } + + } else { + z.DecSwallow() + } + + } + if yyj4894 < len(yyv4894) { + yyv4894 = yyv4894[:yyj4894] + yyc4894 = true + } else if yyj4894 == 0 && yyv4894 == nil { + yyv4894 = []ResourceQuota{} + yyc4894 = true + } + } + yyh4894.End() + if yyc4894 { + *v = yyv4894 + } +} + 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 yyk4809, yyv4809 := range v { + for yyk4898, yyv4898 := range v { z.EncSendContainerState(codecSelfer_containerMapKey1234) - yym4810 := z.EncBinary() - _ = yym4810 + yym4899 := z.EncBinary() + _ = yym4899 if false { } else { - r.EncodeString(codecSelferC_UTF81234, string(yyk4809)) + r.EncodeString(codecSelferC_UTF81234, string(yyk4898)) } z.EncSendContainerState(codecSelfer_containerMapValue1234) - if yyv4809 == nil { + if yyv4898 == nil { r.EncodeNil() } else { - yym4811 := z.EncBinary() - _ = yym4811 + yym4900 := z.EncBinary() + _ = yym4900 if false { } else { - r.EncodeStringBytes(codecSelferC_RAW1234, []byte(yyv4809)) + r.EncodeStringBytes(codecSelferC_RAW1234, []byte(yyv4898)) } } } @@ -61818,80 +63014,80 @@ func (x codecSelfer1234) decMapstringSliceuint8(v *map[string][]uint8, d *codec1 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - 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 + yyv4901 := *v + yyl4901 := r.ReadMapStart() + yybh4901 := z.DecBasicHandle() + if yyv4901 == nil { + yyrl4901, _ := z.DecInferLen(yyl4901, yybh4901.MaxInitLen, 40) + yyv4901 = make(map[string][]uint8, yyrl4901) + *v = yyv4901 } - var yymk4812 string - var yymv4812 []uint8 - var yymg4812 bool - if yybh4812.MapValueReset { - yymg4812 = true + var yymk4901 string + var yymv4901 []uint8 + var yymg4901 bool + if yybh4901.MapValueReset { + yymg4901 = true } - if yyl4812 > 0 { - for yyj4812 := 0; yyj4812 < yyl4812; yyj4812++ { + if yyl4901 > 0 { + for yyj4901 := 0; yyj4901 < yyl4901; yyj4901++ { z.DecSendContainerState(codecSelfer_containerMapKey1234) if r.TryDecodeAsNil() { - yymk4812 = "" + yymk4901 = "" } else { - yymk4812 = string(r.DecodeString()) + yymk4901 = string(r.DecodeString()) } - if yymg4812 { - yymv4812 = yyv4812[yymk4812] + if yymg4901 { + yymv4901 = yyv4901[yymk4901] } else { - yymv4812 = nil + yymv4901 = nil } z.DecSendContainerState(codecSelfer_containerMapValue1234) if r.TryDecodeAsNil() { - yymv4812 = nil + yymv4901 = nil } else { - yyv4814 := &yymv4812 - yym4815 := z.DecBinary() - _ = yym4815 + yyv4903 := &yymv4901 + yym4904 := z.DecBinary() + _ = yym4904 if false { } else { - *yyv4814 = r.DecodeBytes(*(*[]byte)(yyv4814), false, false) + *yyv4903 = r.DecodeBytes(*(*[]byte)(yyv4903), false, false) } } - if yyv4812 != nil { - yyv4812[yymk4812] = yymv4812 + if yyv4901 != nil { + yyv4901[yymk4901] = yymv4901 } } - } else if yyl4812 < 0 { - for yyj4812 := 0; !r.CheckBreak(); yyj4812++ { + } else if yyl4901 < 0 { + for yyj4901 := 0; !r.CheckBreak(); yyj4901++ { z.DecSendContainerState(codecSelfer_containerMapKey1234) if r.TryDecodeAsNil() { - yymk4812 = "" + yymk4901 = "" } else { - yymk4812 = string(r.DecodeString()) + yymk4901 = string(r.DecodeString()) } - if yymg4812 { - yymv4812 = yyv4812[yymk4812] + if yymg4901 { + yymv4901 = yyv4901[yymk4901] } else { - yymv4812 = nil + yymv4901 = nil } z.DecSendContainerState(codecSelfer_containerMapValue1234) if r.TryDecodeAsNil() { - yymv4812 = nil + yymv4901 = nil } else { - yyv4817 := &yymv4812 - yym4818 := z.DecBinary() - _ = yym4818 + yyv4906 := &yymv4901 + yym4907 := z.DecBinary() + _ = yym4907 if false { } else { - *yyv4817 = r.DecodeBytes(*(*[]byte)(yyv4817), false, false) + *yyv4906 = r.DecodeBytes(*(*[]byte)(yyv4906), false, false) } } - if yyv4812 != nil { - yyv4812[yymk4812] = yymv4812 + if yyv4901 != nil { + yyv4901[yymk4901] = yymv4901 } } } // else len==0: TODO: Should we clear map entries? @@ -61903,10 +63099,10 @@ func (x codecSelfer1234) encSliceSecret(v []Secret, e *codec1978.Encoder) { z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r r.EncodeArrayStart(len(v)) - for _, yyv4819 := range v { + for _, yyv4908 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy4820 := &yyv4819 - yy4820.CodecEncodeSelf(e) + yy4909 := &yyv4908 + yy4909.CodecEncodeSelf(e) } z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -61916,83 +63112,83 @@ func (x codecSelfer1234) decSliceSecret(v *[]Secret, d *codec1978.Decoder) { z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - 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 + yyv4910 := *v + yyh4910, yyl4910 := z.DecSliceHelperStart() + var yyc4910 bool + if yyl4910 == 0 { + if yyv4910 == nil { + yyv4910 = []Secret{} + yyc4910 = true + } else if len(yyv4910) != 0 { + yyv4910 = yyv4910[:0] + yyc4910 = true } - } else if yyl4821 > 0 { - var yyrr4821, yyrl4821 int - var yyrt4821 bool - if yyl4821 > cap(yyv4821) { + } else if yyl4910 > 0 { + var yyrr4910, yyrl4910 int + var yyrt4910 bool + if yyl4910 > cap(yyv4910) { - yyrg4821 := len(yyv4821) > 0 - yyv24821 := yyv4821 - yyrl4821, yyrt4821 = z.DecInferLen(yyl4821, z.DecBasicHandle().MaxInitLen, 288) - if yyrt4821 { - if yyrl4821 <= cap(yyv4821) { - yyv4821 = yyv4821[:yyrl4821] + yyrg4910 := len(yyv4910) > 0 + yyv24910 := yyv4910 + yyrl4910, yyrt4910 = z.DecInferLen(yyl4910, z.DecBasicHandle().MaxInitLen, 288) + if yyrt4910 { + if yyrl4910 <= cap(yyv4910) { + yyv4910 = yyv4910[:yyrl4910] } else { - yyv4821 = make([]Secret, yyrl4821) + yyv4910 = make([]Secret, yyrl4910) } } else { - yyv4821 = make([]Secret, yyrl4821) + yyv4910 = make([]Secret, yyrl4910) } - yyc4821 = true - yyrr4821 = len(yyv4821) - if yyrg4821 { - copy(yyv4821, yyv24821) + yyc4910 = true + yyrr4910 = len(yyv4910) + if yyrg4910 { + copy(yyv4910, yyv24910) } - } else if yyl4821 != len(yyv4821) { - yyv4821 = yyv4821[:yyl4821] - yyc4821 = true + } else if yyl4910 != len(yyv4910) { + yyv4910 = yyv4910[:yyl4910] + yyc4910 = true } - yyj4821 := 0 - for ; yyj4821 < yyrr4821; yyj4821++ { - yyh4821.ElemContainerState(yyj4821) + yyj4910 := 0 + for ; yyj4910 < yyrr4910; yyj4910++ { + yyh4910.ElemContainerState(yyj4910) if r.TryDecodeAsNil() { - yyv4821[yyj4821] = Secret{} + yyv4910[yyj4910] = Secret{} } else { - yyv4822 := &yyv4821[yyj4821] - yyv4822.CodecDecodeSelf(d) + yyv4911 := &yyv4910[yyj4910] + yyv4911.CodecDecodeSelf(d) } } - if yyrt4821 { - for ; yyj4821 < yyl4821; yyj4821++ { - yyv4821 = append(yyv4821, Secret{}) - yyh4821.ElemContainerState(yyj4821) + if yyrt4910 { + for ; yyj4910 < yyl4910; yyj4910++ { + yyv4910 = append(yyv4910, Secret{}) + yyh4910.ElemContainerState(yyj4910) if r.TryDecodeAsNil() { - yyv4821[yyj4821] = Secret{} + yyv4910[yyj4910] = Secret{} } else { - yyv4823 := &yyv4821[yyj4821] - yyv4823.CodecDecodeSelf(d) + yyv4912 := &yyv4910[yyj4910] + yyv4912.CodecDecodeSelf(d) } } } } else { - yyj4821 := 0 - for ; !r.CheckBreak(); yyj4821++ { + yyj4910 := 0 + for ; !r.CheckBreak(); yyj4910++ { - if yyj4821 >= len(yyv4821) { - yyv4821 = append(yyv4821, Secret{}) // var yyz4821 Secret - yyc4821 = true + if yyj4910 >= len(yyv4910) { + yyv4910 = append(yyv4910, Secret{}) // var yyz4910 Secret + yyc4910 = true } - yyh4821.ElemContainerState(yyj4821) - if yyj4821 < len(yyv4821) { + yyh4910.ElemContainerState(yyj4910) + if yyj4910 < len(yyv4910) { if r.TryDecodeAsNil() { - yyv4821[yyj4821] = Secret{} + yyv4910[yyj4910] = Secret{} } else { - yyv4824 := &yyv4821[yyj4821] - yyv4824.CodecDecodeSelf(d) + yyv4913 := &yyv4910[yyj4910] + yyv4913.CodecDecodeSelf(d) } } else { @@ -62000,17 +63196,17 @@ func (x codecSelfer1234) decSliceSecret(v *[]Secret, d *codec1978.Decoder) { } } - if yyj4821 < len(yyv4821) { - yyv4821 = yyv4821[:yyj4821] - yyc4821 = true - } else if yyj4821 == 0 && yyv4821 == nil { - yyv4821 = []Secret{} - yyc4821 = true + if yyj4910 < len(yyv4910) { + yyv4910 = yyv4910[:yyj4910] + yyc4910 = true + } else if yyj4910 == 0 && yyv4910 == nil { + yyv4910 = []Secret{} + yyc4910 = true } } - yyh4821.End() - if yyc4821 { - *v = yyv4821 + yyh4910.End() + if yyc4910 { + *v = yyv4910 } } @@ -62019,10 +63215,10 @@ func (x codecSelfer1234) encSliceConfigMap(v []ConfigMap, e *codec1978.Encoder) z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r r.EncodeArrayStart(len(v)) - for _, yyv4825 := range v { + for _, yyv4914 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy4826 := &yyv4825 - yy4826.CodecEncodeSelf(e) + yy4915 := &yyv4914 + yy4915.CodecEncodeSelf(e) } z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -62032,83 +63228,83 @@ func (x codecSelfer1234) decSliceConfigMap(v *[]ConfigMap, d *codec1978.Decoder) z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - 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 + yyv4916 := *v + yyh4916, yyl4916 := z.DecSliceHelperStart() + var yyc4916 bool + if yyl4916 == 0 { + if yyv4916 == nil { + yyv4916 = []ConfigMap{} + yyc4916 = true + } else if len(yyv4916) != 0 { + yyv4916 = yyv4916[:0] + yyc4916 = true } - } else if yyl4827 > 0 { - var yyrr4827, yyrl4827 int - var yyrt4827 bool - if yyl4827 > cap(yyv4827) { + } else if yyl4916 > 0 { + var yyrr4916, yyrl4916 int + var yyrt4916 bool + if yyl4916 > cap(yyv4916) { - yyrg4827 := len(yyv4827) > 0 - yyv24827 := yyv4827 - yyrl4827, yyrt4827 = z.DecInferLen(yyl4827, z.DecBasicHandle().MaxInitLen, 264) - if yyrt4827 { - if yyrl4827 <= cap(yyv4827) { - yyv4827 = yyv4827[:yyrl4827] + yyrg4916 := len(yyv4916) > 0 + yyv24916 := yyv4916 + yyrl4916, yyrt4916 = z.DecInferLen(yyl4916, z.DecBasicHandle().MaxInitLen, 264) + if yyrt4916 { + if yyrl4916 <= cap(yyv4916) { + yyv4916 = yyv4916[:yyrl4916] } else { - yyv4827 = make([]ConfigMap, yyrl4827) + yyv4916 = make([]ConfigMap, yyrl4916) } } else { - yyv4827 = make([]ConfigMap, yyrl4827) + yyv4916 = make([]ConfigMap, yyrl4916) } - yyc4827 = true - yyrr4827 = len(yyv4827) - if yyrg4827 { - copy(yyv4827, yyv24827) + yyc4916 = true + yyrr4916 = len(yyv4916) + if yyrg4916 { + copy(yyv4916, yyv24916) } - } else if yyl4827 != len(yyv4827) { - yyv4827 = yyv4827[:yyl4827] - yyc4827 = true + } else if yyl4916 != len(yyv4916) { + yyv4916 = yyv4916[:yyl4916] + yyc4916 = true } - yyj4827 := 0 - for ; yyj4827 < yyrr4827; yyj4827++ { - yyh4827.ElemContainerState(yyj4827) + yyj4916 := 0 + for ; yyj4916 < yyrr4916; yyj4916++ { + yyh4916.ElemContainerState(yyj4916) if r.TryDecodeAsNil() { - yyv4827[yyj4827] = ConfigMap{} + yyv4916[yyj4916] = ConfigMap{} } else { - yyv4828 := &yyv4827[yyj4827] - yyv4828.CodecDecodeSelf(d) + yyv4917 := &yyv4916[yyj4916] + yyv4917.CodecDecodeSelf(d) } } - if yyrt4827 { - for ; yyj4827 < yyl4827; yyj4827++ { - yyv4827 = append(yyv4827, ConfigMap{}) - yyh4827.ElemContainerState(yyj4827) + if yyrt4916 { + for ; yyj4916 < yyl4916; yyj4916++ { + yyv4916 = append(yyv4916, ConfigMap{}) + yyh4916.ElemContainerState(yyj4916) if r.TryDecodeAsNil() { - yyv4827[yyj4827] = ConfigMap{} + yyv4916[yyj4916] = ConfigMap{} } else { - yyv4829 := &yyv4827[yyj4827] - yyv4829.CodecDecodeSelf(d) + yyv4918 := &yyv4916[yyj4916] + yyv4918.CodecDecodeSelf(d) } } } } else { - yyj4827 := 0 - for ; !r.CheckBreak(); yyj4827++ { + yyj4916 := 0 + for ; !r.CheckBreak(); yyj4916++ { - if yyj4827 >= len(yyv4827) { - yyv4827 = append(yyv4827, ConfigMap{}) // var yyz4827 ConfigMap - yyc4827 = true + if yyj4916 >= len(yyv4916) { + yyv4916 = append(yyv4916, ConfigMap{}) // var yyz4916 ConfigMap + yyc4916 = true } - yyh4827.ElemContainerState(yyj4827) - if yyj4827 < len(yyv4827) { + yyh4916.ElemContainerState(yyj4916) + if yyj4916 < len(yyv4916) { if r.TryDecodeAsNil() { - yyv4827[yyj4827] = ConfigMap{} + yyv4916[yyj4916] = ConfigMap{} } else { - yyv4830 := &yyv4827[yyj4827] - yyv4830.CodecDecodeSelf(d) + yyv4919 := &yyv4916[yyj4916] + yyv4919.CodecDecodeSelf(d) } } else { @@ -62116,17 +63312,17 @@ func (x codecSelfer1234) decSliceConfigMap(v *[]ConfigMap, d *codec1978.Decoder) } } - if yyj4827 < len(yyv4827) { - yyv4827 = yyv4827[:yyj4827] - yyc4827 = true - } else if yyj4827 == 0 && yyv4827 == nil { - yyv4827 = []ConfigMap{} - yyc4827 = true + if yyj4916 < len(yyv4916) { + yyv4916 = yyv4916[:yyj4916] + yyc4916 = true + } else if yyj4916 == 0 && yyv4916 == nil { + yyv4916 = []ConfigMap{} + yyc4916 = true } } - yyh4827.End() - if yyc4827 { - *v = yyv4827 + yyh4916.End() + if yyc4916 { + *v = yyv4916 } } @@ -62135,10 +63331,10 @@ func (x codecSelfer1234) encSliceComponentCondition(v []ComponentCondition, e *c z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r r.EncodeArrayStart(len(v)) - for _, yyv4831 := range v { + for _, yyv4920 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy4832 := &yyv4831 - yy4832.CodecEncodeSelf(e) + yy4921 := &yyv4920 + yy4921.CodecEncodeSelf(e) } z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -62148,83 +63344,83 @@ func (x codecSelfer1234) decSliceComponentCondition(v *[]ComponentCondition, d * z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - 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 + yyv4922 := *v + yyh4922, yyl4922 := z.DecSliceHelperStart() + var yyc4922 bool + if yyl4922 == 0 { + if yyv4922 == nil { + yyv4922 = []ComponentCondition{} + yyc4922 = true + } else if len(yyv4922) != 0 { + yyv4922 = yyv4922[:0] + yyc4922 = true } - } else if yyl4833 > 0 { - var yyrr4833, yyrl4833 int - var yyrt4833 bool - if yyl4833 > cap(yyv4833) { + } else if yyl4922 > 0 { + var yyrr4922, yyrl4922 int + var yyrt4922 bool + if yyl4922 > cap(yyv4922) { - yyrg4833 := len(yyv4833) > 0 - yyv24833 := yyv4833 - yyrl4833, yyrt4833 = z.DecInferLen(yyl4833, z.DecBasicHandle().MaxInitLen, 64) - if yyrt4833 { - if yyrl4833 <= cap(yyv4833) { - yyv4833 = yyv4833[:yyrl4833] + yyrg4922 := len(yyv4922) > 0 + yyv24922 := yyv4922 + yyrl4922, yyrt4922 = z.DecInferLen(yyl4922, z.DecBasicHandle().MaxInitLen, 64) + if yyrt4922 { + if yyrl4922 <= cap(yyv4922) { + yyv4922 = yyv4922[:yyrl4922] } else { - yyv4833 = make([]ComponentCondition, yyrl4833) + yyv4922 = make([]ComponentCondition, yyrl4922) } } else { - yyv4833 = make([]ComponentCondition, yyrl4833) + yyv4922 = make([]ComponentCondition, yyrl4922) } - yyc4833 = true - yyrr4833 = len(yyv4833) - if yyrg4833 { - copy(yyv4833, yyv24833) + yyc4922 = true + yyrr4922 = len(yyv4922) + if yyrg4922 { + copy(yyv4922, yyv24922) } - } else if yyl4833 != len(yyv4833) { - yyv4833 = yyv4833[:yyl4833] - yyc4833 = true + } else if yyl4922 != len(yyv4922) { + yyv4922 = yyv4922[:yyl4922] + yyc4922 = true } - yyj4833 := 0 - for ; yyj4833 < yyrr4833; yyj4833++ { - yyh4833.ElemContainerState(yyj4833) + yyj4922 := 0 + for ; yyj4922 < yyrr4922; yyj4922++ { + yyh4922.ElemContainerState(yyj4922) if r.TryDecodeAsNil() { - yyv4833[yyj4833] = ComponentCondition{} + yyv4922[yyj4922] = ComponentCondition{} } else { - yyv4834 := &yyv4833[yyj4833] - yyv4834.CodecDecodeSelf(d) + yyv4923 := &yyv4922[yyj4922] + yyv4923.CodecDecodeSelf(d) } } - if yyrt4833 { - for ; yyj4833 < yyl4833; yyj4833++ { - yyv4833 = append(yyv4833, ComponentCondition{}) - yyh4833.ElemContainerState(yyj4833) + if yyrt4922 { + for ; yyj4922 < yyl4922; yyj4922++ { + yyv4922 = append(yyv4922, ComponentCondition{}) + yyh4922.ElemContainerState(yyj4922) if r.TryDecodeAsNil() { - yyv4833[yyj4833] = ComponentCondition{} + yyv4922[yyj4922] = ComponentCondition{} } else { - yyv4835 := &yyv4833[yyj4833] - yyv4835.CodecDecodeSelf(d) + yyv4924 := &yyv4922[yyj4922] + yyv4924.CodecDecodeSelf(d) } } } } else { - yyj4833 := 0 - for ; !r.CheckBreak(); yyj4833++ { + yyj4922 := 0 + for ; !r.CheckBreak(); yyj4922++ { - if yyj4833 >= len(yyv4833) { - yyv4833 = append(yyv4833, ComponentCondition{}) // var yyz4833 ComponentCondition - yyc4833 = true + if yyj4922 >= len(yyv4922) { + yyv4922 = append(yyv4922, ComponentCondition{}) // var yyz4922 ComponentCondition + yyc4922 = true } - yyh4833.ElemContainerState(yyj4833) - if yyj4833 < len(yyv4833) { + yyh4922.ElemContainerState(yyj4922) + if yyj4922 < len(yyv4922) { if r.TryDecodeAsNil() { - yyv4833[yyj4833] = ComponentCondition{} + yyv4922[yyj4922] = ComponentCondition{} } else { - yyv4836 := &yyv4833[yyj4833] - yyv4836.CodecDecodeSelf(d) + yyv4925 := &yyv4922[yyj4922] + yyv4925.CodecDecodeSelf(d) } } else { @@ -62232,17 +63428,17 @@ func (x codecSelfer1234) decSliceComponentCondition(v *[]ComponentCondition, d * } } - if yyj4833 < len(yyv4833) { - yyv4833 = yyv4833[:yyj4833] - yyc4833 = true - } else if yyj4833 == 0 && yyv4833 == nil { - yyv4833 = []ComponentCondition{} - yyc4833 = true + if yyj4922 < len(yyv4922) { + yyv4922 = yyv4922[:yyj4922] + yyc4922 = true + } else if yyj4922 == 0 && yyv4922 == nil { + yyv4922 = []ComponentCondition{} + yyc4922 = true } } - yyh4833.End() - if yyc4833 { - *v = yyv4833 + yyh4922.End() + if yyc4922 { + *v = yyv4922 } } @@ -62251,10 +63447,10 @@ func (x codecSelfer1234) encSliceComponentStatus(v []ComponentStatus, e *codec19 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r r.EncodeArrayStart(len(v)) - for _, yyv4837 := range v { + for _, yyv4926 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy4838 := &yyv4837 - yy4838.CodecEncodeSelf(e) + yy4927 := &yyv4926 + yy4927.CodecEncodeSelf(e) } z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -62264,83 +63460,83 @@ func (x codecSelfer1234) decSliceComponentStatus(v *[]ComponentStatus, d *codec1 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - 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 + yyv4928 := *v + yyh4928, yyl4928 := z.DecSliceHelperStart() + var yyc4928 bool + if yyl4928 == 0 { + if yyv4928 == nil { + yyv4928 = []ComponentStatus{} + yyc4928 = true + } else if len(yyv4928) != 0 { + yyv4928 = yyv4928[:0] + yyc4928 = true } - } else if yyl4839 > 0 { - var yyrr4839, yyrl4839 int - var yyrt4839 bool - if yyl4839 > cap(yyv4839) { + } else if yyl4928 > 0 { + var yyrr4928, yyrl4928 int + var yyrt4928 bool + if yyl4928 > cap(yyv4928) { - yyrg4839 := len(yyv4839) > 0 - yyv24839 := yyv4839 - yyrl4839, yyrt4839 = z.DecInferLen(yyl4839, z.DecBasicHandle().MaxInitLen, 280) - if yyrt4839 { - if yyrl4839 <= cap(yyv4839) { - yyv4839 = yyv4839[:yyrl4839] + yyrg4928 := len(yyv4928) > 0 + yyv24928 := yyv4928 + yyrl4928, yyrt4928 = z.DecInferLen(yyl4928, z.DecBasicHandle().MaxInitLen, 280) + if yyrt4928 { + if yyrl4928 <= cap(yyv4928) { + yyv4928 = yyv4928[:yyrl4928] } else { - yyv4839 = make([]ComponentStatus, yyrl4839) + yyv4928 = make([]ComponentStatus, yyrl4928) } } else { - yyv4839 = make([]ComponentStatus, yyrl4839) + yyv4928 = make([]ComponentStatus, yyrl4928) } - yyc4839 = true - yyrr4839 = len(yyv4839) - if yyrg4839 { - copy(yyv4839, yyv24839) + yyc4928 = true + yyrr4928 = len(yyv4928) + if yyrg4928 { + copy(yyv4928, yyv24928) } - } else if yyl4839 != len(yyv4839) { - yyv4839 = yyv4839[:yyl4839] - yyc4839 = true + } else if yyl4928 != len(yyv4928) { + yyv4928 = yyv4928[:yyl4928] + yyc4928 = true } - yyj4839 := 0 - for ; yyj4839 < yyrr4839; yyj4839++ { - yyh4839.ElemContainerState(yyj4839) + yyj4928 := 0 + for ; yyj4928 < yyrr4928; yyj4928++ { + yyh4928.ElemContainerState(yyj4928) if r.TryDecodeAsNil() { - yyv4839[yyj4839] = ComponentStatus{} + yyv4928[yyj4928] = ComponentStatus{} } else { - yyv4840 := &yyv4839[yyj4839] - yyv4840.CodecDecodeSelf(d) + yyv4929 := &yyv4928[yyj4928] + yyv4929.CodecDecodeSelf(d) } } - if yyrt4839 { - for ; yyj4839 < yyl4839; yyj4839++ { - yyv4839 = append(yyv4839, ComponentStatus{}) - yyh4839.ElemContainerState(yyj4839) + if yyrt4928 { + for ; yyj4928 < yyl4928; yyj4928++ { + yyv4928 = append(yyv4928, ComponentStatus{}) + yyh4928.ElemContainerState(yyj4928) if r.TryDecodeAsNil() { - yyv4839[yyj4839] = ComponentStatus{} + yyv4928[yyj4928] = ComponentStatus{} } else { - yyv4841 := &yyv4839[yyj4839] - yyv4841.CodecDecodeSelf(d) + yyv4930 := &yyv4928[yyj4928] + yyv4930.CodecDecodeSelf(d) } } } } else { - yyj4839 := 0 - for ; !r.CheckBreak(); yyj4839++ { + yyj4928 := 0 + for ; !r.CheckBreak(); yyj4928++ { - if yyj4839 >= len(yyv4839) { - yyv4839 = append(yyv4839, ComponentStatus{}) // var yyz4839 ComponentStatus - yyc4839 = true + if yyj4928 >= len(yyv4928) { + yyv4928 = append(yyv4928, ComponentStatus{}) // var yyz4928 ComponentStatus + yyc4928 = true } - yyh4839.ElemContainerState(yyj4839) - if yyj4839 < len(yyv4839) { + yyh4928.ElemContainerState(yyj4928) + if yyj4928 < len(yyv4928) { if r.TryDecodeAsNil() { - yyv4839[yyj4839] = ComponentStatus{} + yyv4928[yyj4928] = ComponentStatus{} } else { - yyv4842 := &yyv4839[yyj4839] - yyv4842.CodecDecodeSelf(d) + yyv4931 := &yyv4928[yyj4928] + yyv4931.CodecDecodeSelf(d) } } else { @@ -62348,17 +63544,17 @@ func (x codecSelfer1234) decSliceComponentStatus(v *[]ComponentStatus, d *codec1 } } - if yyj4839 < len(yyv4839) { - yyv4839 = yyv4839[:yyj4839] - yyc4839 = true - } else if yyj4839 == 0 && yyv4839 == nil { - yyv4839 = []ComponentStatus{} - yyc4839 = true + if yyj4928 < len(yyv4928) { + yyv4928 = yyv4928[:yyj4928] + yyc4928 = true + } else if yyj4928 == 0 && yyv4928 == nil { + yyv4928 = []ComponentStatus{} + yyc4928 = true } } - yyh4839.End() - if yyc4839 { - *v = yyv4839 + yyh4928.End() + if yyc4928 { + *v = yyv4928 } } @@ -62367,10 +63563,10 @@ func (x codecSelfer1234) encSliceDownwardAPIVolumeFile(v []DownwardAPIVolumeFile z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r r.EncodeArrayStart(len(v)) - for _, yyv4843 := range v { + for _, yyv4932 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy4844 := &yyv4843 - yy4844.CodecEncodeSelf(e) + yy4933 := &yyv4932 + yy4933.CodecEncodeSelf(e) } z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -62380,83 +63576,83 @@ func (x codecSelfer1234) decSliceDownwardAPIVolumeFile(v *[]DownwardAPIVolumeFil z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - 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 + yyv4934 := *v + yyh4934, yyl4934 := z.DecSliceHelperStart() + var yyc4934 bool + if yyl4934 == 0 { + if yyv4934 == nil { + yyv4934 = []DownwardAPIVolumeFile{} + yyc4934 = true + } else if len(yyv4934) != 0 { + yyv4934 = yyv4934[:0] + yyc4934 = true } - } else if yyl4845 > 0 { - var yyrr4845, yyrl4845 int - var yyrt4845 bool - if yyl4845 > cap(yyv4845) { + } else if yyl4934 > 0 { + var yyrr4934, yyrl4934 int + var yyrt4934 bool + if yyl4934 > cap(yyv4934) { - yyrg4845 := len(yyv4845) > 0 - yyv24845 := yyv4845 - yyrl4845, yyrt4845 = z.DecInferLen(yyl4845, z.DecBasicHandle().MaxInitLen, 40) - if yyrt4845 { - if yyrl4845 <= cap(yyv4845) { - yyv4845 = yyv4845[:yyrl4845] + yyrg4934 := len(yyv4934) > 0 + yyv24934 := yyv4934 + yyrl4934, yyrt4934 = z.DecInferLen(yyl4934, z.DecBasicHandle().MaxInitLen, 40) + if yyrt4934 { + if yyrl4934 <= cap(yyv4934) { + yyv4934 = yyv4934[:yyrl4934] } else { - yyv4845 = make([]DownwardAPIVolumeFile, yyrl4845) + yyv4934 = make([]DownwardAPIVolumeFile, yyrl4934) } } else { - yyv4845 = make([]DownwardAPIVolumeFile, yyrl4845) + yyv4934 = make([]DownwardAPIVolumeFile, yyrl4934) } - yyc4845 = true - yyrr4845 = len(yyv4845) - if yyrg4845 { - copy(yyv4845, yyv24845) + yyc4934 = true + yyrr4934 = len(yyv4934) + if yyrg4934 { + copy(yyv4934, yyv24934) } - } else if yyl4845 != len(yyv4845) { - yyv4845 = yyv4845[:yyl4845] - yyc4845 = true + } else if yyl4934 != len(yyv4934) { + yyv4934 = yyv4934[:yyl4934] + yyc4934 = true } - yyj4845 := 0 - for ; yyj4845 < yyrr4845; yyj4845++ { - yyh4845.ElemContainerState(yyj4845) + yyj4934 := 0 + for ; yyj4934 < yyrr4934; yyj4934++ { + yyh4934.ElemContainerState(yyj4934) if r.TryDecodeAsNil() { - yyv4845[yyj4845] = DownwardAPIVolumeFile{} + yyv4934[yyj4934] = DownwardAPIVolumeFile{} } else { - yyv4846 := &yyv4845[yyj4845] - yyv4846.CodecDecodeSelf(d) + yyv4935 := &yyv4934[yyj4934] + yyv4935.CodecDecodeSelf(d) } } - if yyrt4845 { - for ; yyj4845 < yyl4845; yyj4845++ { - yyv4845 = append(yyv4845, DownwardAPIVolumeFile{}) - yyh4845.ElemContainerState(yyj4845) + if yyrt4934 { + for ; yyj4934 < yyl4934; yyj4934++ { + yyv4934 = append(yyv4934, DownwardAPIVolumeFile{}) + yyh4934.ElemContainerState(yyj4934) if r.TryDecodeAsNil() { - yyv4845[yyj4845] = DownwardAPIVolumeFile{} + yyv4934[yyj4934] = DownwardAPIVolumeFile{} } else { - yyv4847 := &yyv4845[yyj4845] - yyv4847.CodecDecodeSelf(d) + yyv4936 := &yyv4934[yyj4934] + yyv4936.CodecDecodeSelf(d) } } } } else { - yyj4845 := 0 - for ; !r.CheckBreak(); yyj4845++ { + yyj4934 := 0 + for ; !r.CheckBreak(); yyj4934++ { - if yyj4845 >= len(yyv4845) { - yyv4845 = append(yyv4845, DownwardAPIVolumeFile{}) // var yyz4845 DownwardAPIVolumeFile - yyc4845 = true + if yyj4934 >= len(yyv4934) { + yyv4934 = append(yyv4934, DownwardAPIVolumeFile{}) // var yyz4934 DownwardAPIVolumeFile + yyc4934 = true } - yyh4845.ElemContainerState(yyj4845) - if yyj4845 < len(yyv4845) { + yyh4934.ElemContainerState(yyj4934) + if yyj4934 < len(yyv4934) { if r.TryDecodeAsNil() { - yyv4845[yyj4845] = DownwardAPIVolumeFile{} + yyv4934[yyj4934] = DownwardAPIVolumeFile{} } else { - yyv4848 := &yyv4845[yyj4845] - yyv4848.CodecDecodeSelf(d) + yyv4937 := &yyv4934[yyj4934] + yyv4937.CodecDecodeSelf(d) } } else { @@ -62464,16 +63660,16 @@ func (x codecSelfer1234) decSliceDownwardAPIVolumeFile(v *[]DownwardAPIVolumeFil } } - if yyj4845 < len(yyv4845) { - yyv4845 = yyv4845[:yyj4845] - yyc4845 = true - } else if yyj4845 == 0 && yyv4845 == nil { - yyv4845 = []DownwardAPIVolumeFile{} - yyc4845 = true + if yyj4934 < len(yyv4934) { + yyv4934 = yyv4934[:yyj4934] + yyc4934 = true + } else if yyj4934 == 0 && yyv4934 == nil { + yyv4934 = []DownwardAPIVolumeFile{} + yyc4934 = true } } - yyh4845.End() - if yyc4845 { - *v = yyv4845 + yyh4934.End() + if yyc4934 { + *v = yyv4934 } } diff --git a/vendor/k8s.io/client-go/1.5/pkg/api/v1/types.go b/vendor/k8s.io/client-go/pkg/api/v1/types.go similarity index 90% rename from vendor/k8s.io/client-go/1.5/pkg/api/v1/types.go rename to vendor/k8s.io/client-go/pkg/api/v1/types.go index 94d8c56f3..7dcce3078 100644 --- a/vendor/k8s.io/client-go/1.5/pkg/api/v1/types.go +++ b/vendor/k8s.io/client-go/pkg/api/v1/types.go @@ -17,11 +17,11 @@ limitations under the License. package v1 import ( - "k8s.io/client-go/1.5/pkg/api/resource" - "k8s.io/client-go/1.5/pkg/api/unversioned" - "k8s.io/client-go/1.5/pkg/runtime" - "k8s.io/client-go/1.5/pkg/types" - "k8s.io/client-go/1.5/pkg/util/intstr" + "k8s.io/client-go/pkg/api/resource" + "k8s.io/client-go/pkg/api/unversioned" + "k8s.io/client-go/pkg/runtime" + "k8s.io/client-go/pkg/types" + "k8s.io/client-go/pkg/util/intstr" ) // The comments for the structs and fields can be used from go-restful to @@ -71,7 +71,8 @@ type ObjectMeta struct { // 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 + // More info: http://kubernetes.io/docs/user-guide/identifiers#names + // +optional Name string `json:"name,omitempty" protobuf:"bytes,1,opt,name=name"` // GenerateName is an optional prefix, used by the server, to generate a unique @@ -89,6 +90,7 @@ type ObjectMeta struct { // // Applied only if Name is not specified. // More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#idempotency + // +optional 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 @@ -98,12 +100,14 @@ type ObjectMeta struct { // // Must be a DNS_LABEL. // Cannot be updated. - // More info: http://releases.k8s.io/HEAD/docs/user-guide/namespaces.md + // More info: http://kubernetes.io/docs/user-guide/namespaces + // +optional Namespace string `json:"namespace,omitempty" protobuf:"bytes,3,opt,name=namespace"` // SelfLink is a URL representing this object. // Populated by the system. // Read-only. + // +optional 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 @@ -112,7 +116,8 @@ type ObjectMeta struct { // // Populated by the system. // Read-only. - // More info: http://releases.k8s.io/HEAD/docs/user-guide/identifiers.md#uids + // More info: http://kubernetes.io/docs/user-guide/identifiers#uids + // +optional 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 @@ -125,10 +130,12 @@ type ObjectMeta struct { // 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 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. + // +optional Generation int64 `json:"generation,omitempty" protobuf:"varint,7,opt,name=generation"` // CreationTimestamp is a timestamp representing the server time when this object was @@ -139,57 +146,68 @@ type ObjectMeta struct { // Read-only. // Null for lists. // More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata + // +optional 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 + // directly settable by a client. The resource is expected to 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. + // signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard + // termination signal (SIGKILL) to the container and after cleanup, remove the pod from the + // API. In the presence of network partitions, this object may still exist after this + // timestamp, until an administrator or automated process can determine the resource is + // fully terminated. // 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 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. + // +optional 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 + // More info: http://kubernetes.io/docs/user-guide/labels + // +optional 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 + // More info: http://kubernetes.io/docs/user-guide/annotations + // +optional 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. + // +optional 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. + // +optional 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. + // +optional ClusterName string `json:"clusterName,omitempty" protobuf:"bytes,15,opt,name=clusterName"` } @@ -204,7 +222,7 @@ const ( 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 + // More info: http://kubernetes.io/docs/user-guide/identifiers#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. @@ -219,69 +237,93 @@ type VolumeSource struct { // 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 + // More info: http://kubernetes.io/docs/user-guide/volumes#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 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 + // More info: http://kubernetes.io/docs/user-guide/volumes#emptydir + // +optional 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 + // More info: http://kubernetes.io/docs/user-guide/volumes#gcepersistentdisk + // +optional 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 + // More info: http://kubernetes.io/docs/user-guide/volumes#awselasticblockstore + // +optional AWSElasticBlockStore *AWSElasticBlockStoreVolumeSource `json:"awsElasticBlockStore,omitempty" protobuf:"bytes,4,opt,name=awsElasticBlockStore"` // GitRepo represents a git repository at a particular revision. + // +optional 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 + // More info: http://kubernetes.io/docs/user-guide/volumes#secrets + // +optional 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 + // More info: http://kubernetes.io/docs/user-guide/volumes#nfs + // +optional 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 + // +optional 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 + // +optional 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 + // More info: http://kubernetes.io/docs/user-guide/persistent-volumes#persistentvolumeclaims + // +optional 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 + // +optional RBD *RBDVolumeSource `json:"rbd,omitempty" protobuf:"bytes,11,opt,name=rbd"` // FlexVolume represents a generic volume resource that is // provisioned/attached using an exec based plugin. This is an // alpha feature and may change in future. + // +optional 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 + // +optional 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 + // +optional 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 + // +optional Flocker *FlockerVolumeSource `json:"flocker,omitempty" protobuf:"bytes,15,opt,name=flocker"` // DownwardAPI represents downward API about the pod that should populate this volume + // +optional 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. + // +optional 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. + // +optional AzureFile *AzureFileVolumeSource `json:"azureFile,omitempty" protobuf:"bytes,18,opt,name=azureFile"` // ConfigMap represents a configMap that should populate this volume + // +optional ConfigMap *ConfigMapVolumeSource `json:"configMap,omitempty" protobuf:"bytes,19,opt,name=configMap"` // VsphereVolume represents a vSphere volume attached and mounted on kubelets host machine + // +optional 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 + // +optional 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. + // +optional AzureDisk *AzureDiskVolumeSource `json:"azureDisk,omitempty" protobuf:"bytes,22,opt,name=azureDisk"` + // PhotonPersistentDisk represents a PhotonController persistent disk attached and mounted on kubelets host machine + PhotonPersistentDisk *PhotonPersistentDiskVolumeSource `json:"photonPersistentDisk,omitempty" protobuf:"bytes,23,opt,name=photonPersistentDisk"` } // PersistentVolumeClaimVolumeSource references the user's PVC in the same namespace. @@ -290,10 +332,11 @@ type VolumeSource struct { // 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 + // More info: http://kubernetes.io/docs/user-guide/persistent-volumes#persistentvolumeclaims ClaimName string `json:"claimName" protobuf:"bytes,1,opt,name=claimName"` // Will force the ReadOnly setting in VolumeMounts. // Default false. + // +optional ReadOnly bool `json:"readOnly,omitempty" protobuf:"varint,2,opt,name=readOnly"` } @@ -302,52 +345,70 @@ type PersistentVolumeClaimVolumeSource struct { 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 + // More info: http://kubernetes.io/docs/user-guide/volumes#gcepersistentdisk + // +optional 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 + // More info: http://kubernetes.io/docs/user-guide/volumes#awselasticblockstore + // +optional 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 + // More info: http://kubernetes.io/docs/user-guide/volumes#hostpath + // +optional 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 + // +optional 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 + // More info: http://kubernetes.io/docs/user-guide/volumes#nfs + // +optional 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 + // +optional 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. + // +optional 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 + // +optional 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 + // +optional 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. + // +optional 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 + // +optional Flocker *FlockerVolumeSource `json:"flocker,omitempty" protobuf:"bytes,11,opt,name=flocker"` // FlexVolume represents a generic volume resource that is // provisioned/attached using an exec based plugin. This is an // alpha feature and may change in future. + // +optional 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. + // +optional AzureFile *AzureFileVolumeSource `json:"azureFile,omitempty" protobuf:"bytes,13,opt,name=azureFile"` // VsphereVolume represents a vSphere volume attached and mounted on kubelets host machine + // +optional 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 + // +optional 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. + // +optional AzureDisk *AzureDiskVolumeSource `json:"azureDisk,omitempty" protobuf:"bytes,16,opt,name=azureDisk"` + // PhotonPersistentDisk represents a PhotonController persistent disk attached and mounted on kubelets host machine + PhotonPersistentDisk *PhotonPersistentDiskVolumeSource `json:"photonPersistentDisk,omitempty" protobuf:"bytes,17,opt,name=photonPersistentDisk"` } // +genclient=true @@ -355,44 +416,51 @@ type PersistentVolumeSource struct { // 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 +// More info: http://kubernetes.io/docs/user-guide/persistent-volumes type PersistentVolume struct { unversioned.TypeMeta `json:",inline"` // Standard object's metadata. // More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata + // +optional 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 + // More info: http://kubernetes.io/docs/user-guide/persistent-volumes#persistent-volumes + // +optional 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 + // More info: http://kubernetes.io/docs/user-guide/persistent-volumes#persistent-volumes + // +optional 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 + // More info: http://kubernetes.io/docs/user-guide/persistent-volumes#capacity + // +optional 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 + // More info: http://kubernetes.io/docs/user-guide/persistent-volumes#access-modes + // +optional 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 + // More info: http://kubernetes.io/docs/user-guide/persistent-volumes#binding + // +optional 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. // Recycling 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 + // More info: http://kubernetes.io/docs/user-guide/persistent-volumes#recycling-policy + // +optional PersistentVolumeReclaimPolicy PersistentVolumeReclaimPolicy `json:"persistentVolumeReclaimPolicy,omitempty" protobuf:"bytes,5,opt,name=persistentVolumeReclaimPolicy,casttype=PersistentVolumeReclaimPolicy"` } @@ -414,12 +482,15 @@ const ( // 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 + // More info: http://kubernetes.io/docs/user-guide/persistent-volumes#phase + // +optional 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. + // +optional 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. + // +optional Reason string `json:"reason,omitempty" protobuf:"bytes,3,opt,name=reason"` } @@ -428,9 +499,10 @@ type PersistentVolumeList struct { unversioned.TypeMeta `json:",inline"` // Standard list metadata. // More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds + // +optional 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 + // More info: http://kubernetes.io/docs/user-guide/persistent-volumes Items []PersistentVolume `json:"items" protobuf:"bytes,2,rep,name=items"` } @@ -441,15 +513,18 @@ type PersistentVolumeClaim struct { unversioned.TypeMeta `json:",inline"` // Standard object's metadata. // More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata + // +optional 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 + // More info: http://kubernetes.io/docs/user-guide/persistent-volumes#persistentvolumeclaims + // +optional 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 + // More info: http://kubernetes.io/docs/user-guide/persistent-volumes#persistentvolumeclaims + // +optional Status PersistentVolumeClaimStatus `json:"status,omitempty" protobuf:"bytes,3,opt,name=status"` } @@ -458,9 +533,10 @@ type PersistentVolumeClaimList struct { unversioned.TypeMeta `json:",inline"` // Standard list metadata. // More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds + // +optional 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 + // More info: http://kubernetes.io/docs/user-guide/persistent-volumes#persistentvolumeclaims Items []PersistentVolumeClaim `json:"items" protobuf:"bytes,2,rep,name=items"` } @@ -468,25 +544,32 @@ type PersistentVolumeClaimList struct { // 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 + // More info: http://kubernetes.io/docs/user-guide/persistent-volumes#access-modes-1 + // +optional AccessModes []PersistentVolumeAccessMode `json:"accessModes,omitempty" protobuf:"bytes,1,rep,name=accessModes,casttype=PersistentVolumeAccessMode"` // A label query over volumes to consider for binding. + // +optional 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 + // More info: http://kubernetes.io/docs/user-guide/persistent-volumes#resources + // +optional Resources ResourceRequirements `json:"resources,omitempty" protobuf:"bytes,2,opt,name=resources"` // VolumeName is the binding reference to the PersistentVolume backing this claim. + // +optional 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. + // +optional 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 + // More info: http://kubernetes.io/docs/user-guide/persistent-volumes#access-modes-1 + // +optional AccessModes []PersistentVolumeAccessMode `json:"accessModes,omitempty" protobuf:"bytes,2,rep,name=accessModes,casttype=PersistentVolumeAccessMode"` // Represents the actual resources of the underlying volume. + // +optional Capacity ResourceList `json:"capacity,omitempty" protobuf:"bytes,3,rep,name=capacity,casttype=ResourceList,castkey=ResourceName"` } @@ -536,7 +619,7 @@ const ( // 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 + // More info: http://kubernetes.io/docs/user-guide/volumes#hostpath Path string `json:"path" protobuf:"bytes,1,opt,name=path"` } @@ -546,7 +629,8 @@ 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 + // More info: http://kubernetes.io/docs/user-guide/volumes#emptydir + // +optional Medium StorageMedium `json:"medium,omitempty" protobuf:"bytes,1,opt,name=medium,casttype=StorageMedium"` } @@ -564,6 +648,7 @@ type GlusterfsVolumeSource struct { // 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 ReadOnly bool `json:"readOnly,omitempty" protobuf:"varint,3,opt,name=readOnly"` } @@ -579,29 +664,35 @@ type RBDVolumeSource struct { // 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 + // More info: http://kubernetes.io/docs/user-guide/volumes#rbd // TODO: how do we prevent errors in the filesystem from compromising the machine + // +optional 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. + // +optional 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 + // +optional 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 + // +optional 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 + // +optional 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 + // +optional ReadOnly bool `json:"readOnly,omitempty" protobuf:"varint,8,opt,name=readOnly"` } @@ -617,10 +708,12 @@ type CinderVolumeSource struct { // 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 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 + // +optional ReadOnly bool `json:"readOnly,omitempty" protobuf:"varint,3,opt,name=readOnly"` } @@ -631,27 +724,38 @@ type CephFSVolumeSource struct { // 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 / + // +optional 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 + // +optional 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 + // +optional 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 + // +optional 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 + // +optional ReadOnly bool `json:"readOnly,omitempty" protobuf:"varint,6,opt,name=readOnly"` } // Represents a Flocker volume mounted by the Flocker agent. +// One and only one of datasetName and datasetUUID should be set. // 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"` + // Name of the dataset stored as metadata -> name on the dataset for Flocker + // should be considered as deprecated + // +optional + DatasetName string `json:"datasetName,omitempty" protobuf:"bytes,1,opt,name=datasetName"` + // UUID of the dataset. This is unique identifier of a Flocker dataset + // +optional + DatasetUUID string `json:"datasetUUID,omitempty" protobuf:"bytes,2,opt,name=datasetUUID"` } // StorageMedium defines ways that storage can be allocated to a volume. @@ -680,23 +784,26 @@ const ( // 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 + // More info: http://kubernetes.io/docs/user-guide/volumes#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 + // More info: http://kubernetes.io/docs/user-guide/volumes#gcepersistentdisk // TODO: how do we prevent errors in the filesystem from compromising the machine + // +optional 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 + // More info: http://kubernetes.io/docs/user-guide/volumes#gcepersistentdisk + // +optional 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 + // More info: http://kubernetes.io/docs/user-guide/volumes#gcepersistentdisk + // +optional ReadOnly bool `json:"readOnly,omitempty" protobuf:"varint,4,opt,name=readOnly"` } @@ -713,14 +820,17 @@ type QuobyteVolumeSource struct { // ReadOnly here will force the Quobyte volume to be mounted with read-only permissions. // Defaults to false. + // +optional ReadOnly bool `json:"readOnly,omitempty" protobuf:"varint,3,opt,name=readOnly"` // User to map volume access to // Defaults to serivceaccount user + // +optional User string `json:"user,omitempty" protobuf:"bytes,4,opt,name=user"` // Group to map volume access to // Default is no group + // +optional Group string `json:"group,omitempty" protobuf:"bytes,5,opt,name=group"` } @@ -732,17 +842,21 @@ type FlexVolumeSource struct { // 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 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. + // +optional 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. + // +optional ReadOnly bool `json:"readOnly,omitempty" protobuf:"varint,4,opt,name=readOnly"` // Optional: Extra command options if any. + // +optional Options map[string]string `json:"options,omitempty" protobuf:"bytes,5,rep,name=options"` } @@ -754,22 +868,25 @@ type FlexVolumeSource struct { // 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 + // More info: http://kubernetes.io/docs/user-guide/volumes#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 + // More info: http://kubernetes.io/docs/user-guide/volumes#awselasticblockstore // TODO: how do we prevent errors in the filesystem from compromising the machine + // +optional 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). + // +optional 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 + // More info: http://kubernetes.io/docs/user-guide/volumes#awselasticblockstore + // +optional ReadOnly bool `json:"readOnly,omitempty" protobuf:"varint,4,opt,name=readOnly"` } @@ -780,11 +897,13 @@ type GitRepoVolumeSource struct { // Repository URL Repository string `json:"repository" protobuf:"bytes,1,opt,name=repository"` // Commit hash for the specified revision. + // +optional 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. + // +optional Directory string `json:"directory,omitempty" protobuf:"bytes,3,opt,name=directory"` } @@ -795,7 +914,8 @@ type GitRepoVolumeSource struct { // 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 + // More info: http://kubernetes.io/docs/user-guide/volumes#secrets + // +optional 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 @@ -804,12 +924,14 @@ type SecretVolumeSource struct { // 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 '..'. + // +optional 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. + // +optional DefaultMode *int32 `json:"defaultMode,omitempty" protobuf:"bytes,3,opt,name=defaultMode"` } @@ -821,17 +943,18 @@ const ( // 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 + // More info: http://kubernetes.io/docs/user-guide/volumes#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 + // More info: http://kubernetes.io/docs/user-guide/volumes#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 + // More info: http://kubernetes.io/docs/user-guide/volumes#nfs + // +optional ReadOnly bool `json:"readOnly,omitempty" protobuf:"varint,3,opt,name=readOnly"` } @@ -847,15 +970,18 @@ type ISCSIVolumeSource struct { // 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. + // +optional 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 + // More info: http://kubernetes.io/docs/user-guide/volumes#iscsi // TODO: how do we prevent errors in the filesystem from compromising the machine + // +optional FSType string `json:"fsType,omitempty" protobuf:"bytes,5,opt,name=fsType"` // ReadOnly here will force the ReadOnly setting in VolumeMounts. // Defaults to false. + // +optional ReadOnly bool `json:"readOnly,omitempty" protobuf:"varint,6,opt,name=readOnly"` } @@ -871,9 +997,11 @@ type FCVolumeSource struct { // 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 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. + // +optional ReadOnly bool `json:"readOnly,omitempty" protobuf:"varint,4,opt,name=readOnly"` } @@ -885,6 +1013,7 @@ type AzureFileVolumeSource struct { ShareName string `json:"shareName" protobuf:"bytes,2,opt,name=shareName"` // Defaults to false (read/write). ReadOnly here will force // the ReadOnly setting in VolumeMounts. + // +optional ReadOnly bool `json:"readOnly,omitempty" protobuf:"varint,3,opt,name=readOnly"` } @@ -895,8 +1024,20 @@ type VsphereVirtualDiskVolumeSource struct { // 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 FSType string `json:"fsType,omitempty" protobuf:"bytes,2,opt,name=fsType"` } + +// Represents a Photon Controller persistent disk resource. +type PhotonPersistentDiskVolumeSource struct { + // ID that identifies Photon Controller persistent disk + PdID string `json:"pdID" protobuf:"bytes,1,opt,name=pdID"` + // 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"` +} + type AzureDataDiskCachingMode string const ( @@ -912,13 +1053,16 @@ type AzureDiskVolumeSource struct { // 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. + // +optional 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. + // +optional 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. + // +optional ReadOnly *bool `json:"readOnly,omitempty" protobuf:"varint,5,opt,name=readOnly"` } @@ -937,12 +1081,14 @@ type ConfigMapVolumeSource struct { // 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 '..'. + // +optional 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. + // +optional DefaultMode *int32 `json:"defaultMode,omitempty" protobuf:"varint,3,opt,name=defaultMode"` } @@ -964,6 +1110,7 @@ type KeyToPath struct { // 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 Mode *int32 `json:"mode,omitempty" protobuf:"varint,3,opt,name=mode"` } @@ -972,19 +1119,23 @@ 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. + // +optional 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. + // +optional 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". + // +optional Protocol Protocol `json:"protocol,omitempty" protobuf:"bytes,4,opt,name=protocol,casttype=Protocol"` // What host IP to bind the external port to. + // +optional HostIP string `json:"hostIP,omitempty" protobuf:"bytes,5,opt,name=hostIP"` } @@ -994,12 +1145,14 @@ type VolumeMount struct { Name string `json:"name" protobuf:"bytes,1,opt,name=name"` // Mounted read-only if true, read-write otherwise (false or unspecified). // Defaults to false. + // +optional 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). + // +optional SubPath string `json:"subPath,omitempty" protobuf:"bytes,4,opt,name=subPath"` } @@ -1018,8 +1171,10 @@ type EnvVar struct { // references will never be expanded, regardless of whether the variable // exists or not. // Defaults to "". + // +optional 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. + // +optional ValueFrom *EnvVarSource `json:"valueFrom,omitempty" protobuf:"bytes,3,opt,name=valueFrom"` } @@ -1027,19 +1182,24 @@ type EnvVar struct { type EnvVarSource struct { // Selects a field of the pod: supports metadata.name, metadata.namespace, metadata.labels, metadata.annotations, // spec.nodeName, spec.serviceAccountName, status.podIP. + // +optional 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. + // +optional ResourceFieldRef *ResourceFieldSelector `json:"resourceFieldRef,omitempty" protobuf:"bytes,2,opt,name=resourceFieldRef"` // Selects a key of a ConfigMap. + // +optional ConfigMapKeyRef *ConfigMapKeySelector `json:"configMapKeyRef,omitempty" protobuf:"bytes,3,opt,name=configMapKeyRef"` // Selects a key of a secret in the pod's namespace + // +optional 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". + // +optional 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"` @@ -1048,10 +1208,12 @@ type ObjectFieldSelector struct { // ResourceFieldSelector represents container resources (cpu, memory) and their output format type ResourceFieldSelector struct { // Container name: required for volumes, optional for env vars + // +optional 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" + // +optional Divisor resource.Quantity `json:"divisor,omitempty" protobuf:"bytes,3,opt,name=divisor"` } @@ -1082,6 +1244,7 @@ type HTTPHeader struct { // HTTPGetAction describes an action based on HTTP Get requests. type HTTPGetAction struct { // Path to access on the HTTP server. + // +optional 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. @@ -1089,11 +1252,14 @@ type HTTPGetAction struct { 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. + // +optional Host string `json:"host,omitempty" protobuf:"bytes,3,opt,name=host"` // Scheme to use for connecting to the host. // Defaults to HTTP. + // +optional Scheme URIScheme `json:"scheme,omitempty" protobuf:"bytes,4,opt,name=scheme,casttype=URIScheme"` // Custom headers to set in the request. HTTP allows repeated headers. + // +optional HTTPHeaders []HTTPHeader `json:"httpHeaders,omitempty" protobuf:"bytes,5,rep,name=httpHeaders"` } @@ -1122,6 +1288,7 @@ type ExecAction struct { // 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. + // +optional Command []string `json:"command,omitempty" protobuf:"bytes,1,rep,name=command"` } @@ -1131,20 +1298,25 @@ 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 + // More info: http://kubernetes.io/docs/user-guide/pod-states#container-probes + // +optional 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 + // More info: http://kubernetes.io/docs/user-guide/pod-states#container-probes + // +optional 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. + // +optional 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. + // +optional 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. + // +optional FailureThreshold int32 `json:"failureThreshold,omitempty" protobuf:"varint,6,opt,name=failureThreshold"` } @@ -1166,8 +1338,10 @@ type Capability string // Adds and removes POSIX capabilities from running containers. type Capabilities struct { // Added capabilities + // +optional Add []Capability `json:"add,omitempty" protobuf:"bytes,1,rep,name=add,casttype=Capability"` // Removed capabilities + // +optional Drop []Capability `json:"drop,omitempty" protobuf:"bytes,2,rep,name=drop,casttype=Capability"` } @@ -1175,11 +1349,13 @@ type Capabilities struct { type ResourceRequirements struct { // Limits describes the maximum amount of compute resources allowed. // More info: http://kubernetes.io/docs/user-guide/compute-resources/ + // +optional 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://kubernetes.io/docs/user-guide/compute-resources/ + // +optional Requests ResourceList `json:"requests,omitempty" protobuf:"bytes,2,rep,name=requests,casttype=ResourceList,castkey=ResourceName"` } @@ -1195,7 +1371,8 @@ type Container struct { // 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 + // More info: http://kubernetes.io/docs/user-guide/images + // +optional 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. @@ -1204,7 +1381,8 @@ type Container struct { // 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 + // More info: http://kubernetes.io/docs/user-guide/containers#containers-and-commands + // +optional 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. @@ -1213,12 +1391,14 @@ type Container struct { // 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 + // More info: http://kubernetes.io/docs/user-guide/containers#containers-and-commands + // +optional 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. + // +optional 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 @@ -1227,44 +1407,54 @@ type Container struct { // listening on the default "0.0.0.0" address inside a container will be // accessible from the network. // Cannot be updated. + // +optional 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. + // +optional 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 + // More info: http://kubernetes.io/docs/user-guide/persistent-volumes#resources + // +optional 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"` + // +optional + VolumeMounts []VolumeMount `json:"volumeMounts,omitempty" patchStrategy:"merge" patchMergeKey:"mountPath" 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 + // More info: http://kubernetes.io/docs/user-guide/pod-states#container-probes + // +optional 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 + // More info: http://kubernetes.io/docs/user-guide/pod-states#container-probes + // +optional 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. + // +optional 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. + // +optional 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 + // More info: http://kubernetes.io/docs/user-guide/images#updating-images + // +optional 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 + // +optional SecurityContext *SecurityContext `json:"securityContext,omitempty" protobuf:"bytes,15,opt,name=securityContext"` // Variables for interactive containers, these have very specialized use-cases (e.g. debugging) @@ -1273,6 +1463,7 @@ type Container struct { // 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 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 @@ -1281,9 +1472,11 @@ type Container struct { // 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 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. + // +optional TTY bool `json:"tty,omitempty" protobuf:"varint,18,opt,name=tty"` } @@ -1292,12 +1485,15 @@ type Container struct { type Handler struct { // One and only one of the following should be specified. // Exec specifies the action to take. + // +optional Exec *ExecAction `json:"exec,omitempty" protobuf:"bytes,1,opt,name=exec"` // HTTPGet specifies the http request to perform. + // +optional 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 + // +optional TCPSocket *TCPSocketAction `json:"tcpSocket,omitempty" protobuf:"bytes,3,opt,name=tcpSocket"` } @@ -1308,14 +1504,16 @@ 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 + // More info: http://kubernetes.io/docs/user-guide/container-environment#hook-details + // +optional 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 + // More info: http://kubernetes.io/docs/user-guide/container-environment#hook-details + // +optional PreStop *Handler `json:"preStop,omitempty" protobuf:"bytes,2,opt,name=preStop"` } @@ -1334,14 +1532,17 @@ const ( // ContainerStateWaiting is a waiting state of a container. type ContainerStateWaiting struct { // (brief) reason the container is not yet running. + // +optional Reason string `json:"reason,omitempty" protobuf:"bytes,1,opt,name=reason"` // Message regarding why the container is not yet running. + // +optional 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 + // +optional StartedAt unversioned.Time `json:"startedAt,omitempty" protobuf:"bytes,1,opt,name=startedAt"` } @@ -1350,16 +1551,22 @@ 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 + // +optional Signal int32 `json:"signal,omitempty" protobuf:"varint,2,opt,name=signal"` // (brief) reason from the last termination of the container + // +optional Reason string `json:"reason,omitempty" protobuf:"bytes,3,opt,name=reason"` // Message regarding the last termination of the container + // +optional Message string `json:"message,omitempty" protobuf:"bytes,4,opt,name=message"` // Time at which previous execution of the container started + // +optional StartedAt unversioned.Time `json:"startedAt,omitempty" protobuf:"bytes,5,opt,name=startedAt"` // Time at which the container last terminated + // +optional FinishedAt unversioned.Time `json:"finishedAt,omitempty" protobuf:"bytes,6,opt,name=finishedAt"` // Container's ID in the format 'docker://' + // +optional ContainerID string `json:"containerID,omitempty" protobuf:"bytes,7,opt,name=containerID"` } @@ -1368,10 +1575,13 @@ type ContainerStateTerminated struct { // If none of them is specified, the default one is ContainerStateWaiting. type ContainerState struct { // Details about a waiting container + // +optional Waiting *ContainerStateWaiting `json:"waiting,omitempty" protobuf:"bytes,1,opt,name=waiting"` // Details about a running container + // +optional Running *ContainerStateRunning `json:"running,omitempty" protobuf:"bytes,2,opt,name=running"` // Details about a terminated container + // +optional Terminated *ContainerStateTerminated `json:"terminated,omitempty" protobuf:"bytes,3,opt,name=terminated"` } @@ -1381,8 +1591,10 @@ type ContainerStatus struct { // Cannot be updated. Name string `json:"name" protobuf:"bytes,1,opt,name=name"` // Details about the container's current condition. + // +optional State ContainerState `json:"state,omitempty" protobuf:"bytes,2,opt,name=state"` // Details about the container's last termination condition. + // +optional 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"` @@ -1392,13 +1604,14 @@ type ContainerStatus struct { // 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 + // More info: http://kubernetes.io/docs/user-guide/images // 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 + // More info: http://kubernetes.io/docs/user-guide/container-environment#container-information + // +optional ContainerID string `json:"containerID,omitempty" protobuf:"bytes,8,opt,name=containerID"` } @@ -1435,25 +1648,34 @@ const ( // 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" + // PodReasonUnschedulable reason in PodScheduled PodCondition means that the scheduler + // can't schedule the pod right now, for example due to insufficient resources in the cluster. + PodReasonUnschedulable = "Unschedulable" ) // 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 + // More info: http://kubernetes.io/docs/user-guide/pod-states#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 + // More info: http://kubernetes.io/docs/user-guide/pod-states#pod-conditions Status ConditionStatus `json:"status" protobuf:"bytes,2,opt,name=status,casttype=ConditionStatus"` // Last time we probed the condition. + // +optional LastProbeTime unversioned.Time `json:"lastProbeTime,omitempty" protobuf:"bytes,3,opt,name=lastProbeTime"` // Last time the condition transitioned from one status to another. + // +optional LastTransitionTime unversioned.Time `json:"lastTransitionTime,omitempty" protobuf:"bytes,4,opt,name=lastTransitionTime"` // Unique, one-word, CamelCase reason for the condition's last transition. + // +optional Reason string `json:"reason,omitempty" protobuf:"bytes,5,opt,name=reason"` // Human-readable message indicating details about last transition. + // +optional Message string `json:"message,omitempty" protobuf:"bytes,6,opt,name=message"` } @@ -1512,6 +1734,7 @@ type NodeSelectorRequirement struct { // 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. + // +optional Values []string `json:"values,omitempty" protobuf:"bytes,3,rep,name=values"` } @@ -1531,10 +1754,13 @@ const ( // Affinity is a group of affinity scheduling rules. type Affinity struct { // Describes node affinity scheduling rules for the pod. + // +optional 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)). + // +optional 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)). + // +optional PodAntiAffinity *PodAntiAffinity `json:"podAntiAffinity,omitempty" protobuf:"bytes,3,opt,name=podAntiAffinity"` } @@ -1548,6 +1774,7 @@ type PodAffinity struct { // 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. + // +optional // 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. @@ -1556,6 +1783,7 @@ type PodAffinity struct { // 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. + // +optional 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 @@ -1566,6 +1794,7 @@ type PodAffinity struct { // 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. + // +optional PreferredDuringSchedulingIgnoredDuringExecution []WeightedPodAffinityTerm `json:"preferredDuringSchedulingIgnoredDuringExecution,omitempty" protobuf:"bytes,2,rep,name=preferredDuringSchedulingIgnoredDuringExecution"` } @@ -1579,6 +1808,7 @@ type PodAntiAffinity struct { // 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. + // +optional // 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. @@ -1587,6 +1817,7 @@ type PodAntiAffinity struct { // 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. + // +optional 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 @@ -1597,6 +1828,7 @@ type PodAntiAffinity struct { // 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. + // +optional PreferredDuringSchedulingIgnoredDuringExecution []WeightedPodAffinityTerm `json:"preferredDuringSchedulingIgnoredDuringExecution,omitempty" protobuf:"bytes,2,rep,name=preferredDuringSchedulingIgnoredDuringExecution"` } @@ -1617,6 +1849,7 @@ type WeightedPodAffinityTerm struct { // a pod of the set of pods is running type PodAffinityTerm struct { // A label query over a set of resources, in this case pods. + // +optional 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" @@ -1630,6 +1863,7 @@ type PodAffinityTerm struct { // 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 TopologyKey string `json:"topologyKey,omitempty" protobuf:"bytes,3,opt,name=topologyKey"` } @@ -1641,6 +1875,7 @@ type NodeAffinity struct { // 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. + // +optional // RequiredDuringSchedulingRequiredDuringExecution *NodeSelector `json:"requiredDuringSchedulingRequiredDuringExecution,omitempty"` // If the affinity requirements specified by this field are not met at @@ -1648,6 +1883,7 @@ type NodeAffinity struct { // 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 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 @@ -1658,6 +1894,7 @@ type NodeAffinity struct { // 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. + // +optional PreferredDuringSchedulingIgnoredDuringExecution []PreferredSchedulingTerm `json:"preferredDuringSchedulingIgnoredDuringExecution,omitempty" protobuf:"bytes,2,rep,name=preferredDuringSchedulingIgnoredDuringExecution"` } @@ -1676,6 +1913,7 @@ 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. + // +optional 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. @@ -1713,17 +1951,21 @@ const ( // the triple using the matching operator . type Toleration struct { // Required. Key is the taint key that the toleration applies to. + // +optional 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. + // +optional 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. + // +optional 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. + // +optional 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. @@ -1761,7 +2003,8 @@ const ( // 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 + // More info: http://kubernetes.io/docs/user-guide/volumes + // +optional 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 @@ -1776,18 +2019,19 @@ type PodSpec struct { // 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 + // More info: http://kubernetes.io/docs/user-guide/containers 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 + // More info: http://kubernetes.io/docs/user-guide/containers 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 + // More info: http://kubernetes.io/docs/user-guide/pod-states#restartpolicy + // +optional 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. @@ -1796,58 +2040,72 @@ type PodSpec struct { // 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 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. + // +optional 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". + // +optional 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 + // More info: http://kubernetes.io/docs/user-guide/node-selection/README + // +optional 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 + // +optional 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 + // +optional 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. + // +optional 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 + // +optional 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 + // +optional 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 + // +optional 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. + // +optional 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 + // More info: http://kubernetes.io/docs/user-guide/images#specifying-imagepullsecrets-on-a-pod + // +optional 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. + // +optional 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. + // +optional Subdomain string `json:"subdomain,omitempty" protobuf:"bytes,17,opt,name=subdomain"` } @@ -1860,12 +2118,14 @@ type PodSecurityContext struct { // 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 `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. + // +optional 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 @@ -1873,10 +2133,12 @@ type PodSecurityContext struct { // 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 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. + // +optional 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 @@ -1887,6 +2149,7 @@ type PodSecurityContext struct { // 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 FSGroup *int64 `json:"fsGroup,omitempty" protobuf:"varint,5,opt,name=fsGroup"` } @@ -1894,36 +2157,44 @@ type PodSecurityContext struct { // 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 + // More info: http://kubernetes.io/docs/user-guide/pod-states#pod-phase + // +optional 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 + // More info: http://kubernetes.io/docs/user-guide/pod-states#pod-conditions + // +optional 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. + // +optional 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' + // +optional 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. + // +optional 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. + // +optional 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. + // +optional 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 + // More info: http://kubernetes.io/docs/user-guide/pod-states#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 + // More info: http://kubernetes.io/docs/user-guide/pod-states#container-statuses + // +optional ContainerStatuses []ContainerStatus `json:"containerStatuses,omitempty" protobuf:"bytes,8,rep,name=containerStatuses"` } @@ -1932,12 +2203,14 @@ type PodStatusResult struct { unversioned.TypeMeta `json:",inline"` // Standard object's metadata. // More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata + // +optional 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 + // +optional Status PodStatus `json:"status,omitempty" protobuf:"bytes,2,opt,name=status"` } @@ -1949,10 +2222,12 @@ type Pod struct { unversioned.TypeMeta `json:",inline"` // Standard object's metadata. // More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata + // +optional 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 + // +optional Spec PodSpec `json:"spec,omitempty" protobuf:"bytes,2,opt,name=spec"` // Most recently observed status of the pod. @@ -1960,6 +2235,7 @@ type Pod struct { // Populated by the system. // Read-only. // More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status + // +optional Status PodStatus `json:"status,omitempty" protobuf:"bytes,3,opt,name=status"` } @@ -1968,10 +2244,11 @@ type PodList struct { unversioned.TypeMeta `json:",inline"` // Standard list metadata. // More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds + // +optional 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 + // More info: http://kubernetes.io/docs/user-guide/pods Items []Pod `json:"items" protobuf:"bytes,2,rep,name=items"` } @@ -1979,10 +2256,12 @@ type PodList struct { type PodTemplateSpec struct { // Standard object's metadata. // More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata + // +optional 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 + // +optional Spec PodSpec `json:"spec,omitempty" protobuf:"bytes,2,opt,name=spec"` } @@ -1993,10 +2272,12 @@ type PodTemplate struct { unversioned.TypeMeta `json:",inline"` // Standard object's metadata. // More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata + // +optional 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 + // +optional Template PodTemplateSpec `json:"template,omitempty" protobuf:"bytes,2,opt,name=template"` } @@ -2005,6 +2286,7 @@ type PodTemplateList struct { unversioned.TypeMeta `json:",inline"` // Standard list metadata. // More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds + // +optional unversioned.ListMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"` // List of pod templates @@ -2016,24 +2298,34 @@ 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 + // More info: http://kubernetes.io/docs/user-guide/replication-controller#what-is-a-replication-controller + // +optional Replicas *int32 `json:"replicas,omitempty" protobuf:"varint,1,opt,name=replicas"` + // 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) + // +optional + MinReadySeconds int32 `json:"minReadySeconds,omitempty" protobuf:"varint,4,opt,name=minReadySeconds"` + // 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 + // More info: http://kubernetes.io/docs/user-guide/labels#label-selectors + // +optional 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. + // +optional // 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 + // More info: http://kubernetes.io/docs/user-guide/replication-controller#pod-template + // +optional Template *PodTemplateSpec `json:"template,omitempty" protobuf:"bytes,3,opt,name=template"` } @@ -2041,17 +2333,55 @@ type ReplicationControllerSpec struct { // 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 + // More info: http://kubernetes.io/docs/user-guide/replication-controller#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. + // +optional FullyLabeledReplicas int32 `json:"fullyLabeledReplicas,omitempty" protobuf:"varint,2,opt,name=fullyLabeledReplicas"` // The number of ready replicas for this replication controller. + // +optional ReadyReplicas int32 `json:"readyReplicas,omitempty" protobuf:"varint,4,opt,name=readyReplicas"` + // The number of available replicas (ready for at least minReadySeconds) for this replication controller. + // +optional + AvailableReplicas int32 `json:"availableReplicas,omitempty" protobuf:"varint,5,opt,name=availableReplicas"` + // ObservedGeneration reflects the generation of the most recently observed replication controller. + // +optional ObservedGeneration int64 `json:"observedGeneration,omitempty" protobuf:"varint,3,opt,name=observedGeneration"` + + // Represents the latest available observations of a replication controller's current state. + // +optional + Conditions []ReplicationControllerCondition `json:"conditions,omitempty" patchStrategy:"merge" patchMergeKey:"type" protobuf:"bytes,6,rep,name=conditions"` +} + +type ReplicationControllerConditionType string + +// These are valid conditions of a replication controller. +const ( + // ReplicationControllerReplicaFailure is added in a replication controller when one of its pods + // fails to be created due to insufficient quota, limit ranges, pod security policy, node selectors, + // etc. or deleted due to kubelet being down or finalizers are failing. + ReplicationControllerReplicaFailure ReplicationControllerConditionType = "ReplicaFailure" +) + +// ReplicationControllerCondition describes the state of a replication controller at a certain point. +type ReplicationControllerCondition struct { + // Type of replication controller condition. + Type ReplicationControllerConditionType `json:"type" protobuf:"bytes,1,opt,name=type,casttype=ReplicationControllerConditionType"` + // Status of the condition, one of True, False, Unknown. + Status ConditionStatus `json:"status" protobuf:"bytes,2,opt,name=status,casttype=ConditionStatus"` + // The last time the condition transitioned from one status to another. + // +optional + LastTransitionTime unversioned.Time `json:"lastTransitionTime,omitempty" protobuf:"bytes,3,opt,name=lastTransitionTime"` + // The reason for the condition's last transition. + // +optional + Reason string `json:"reason,omitempty" protobuf:"bytes,4,opt,name=reason"` + // A human readable message indicating details about the transition. + // +optional + Message string `json:"message,omitempty" protobuf:"bytes,5,opt,name=message"` } // +genclient=true @@ -2063,10 +2393,12 @@ type ReplicationController struct { // 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 `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 + // +optional Spec ReplicationControllerSpec `json:"spec,omitempty" protobuf:"bytes,2,opt,name=spec"` // Status is the most recently observed status of the replication controller. @@ -2074,6 +2406,7 @@ type ReplicationController struct { // Populated by the system. // Read-only. // More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status + // +optional Status ReplicationControllerStatus `json:"status,omitempty" protobuf:"bytes,3,opt,name=status"` } @@ -2082,10 +2415,11 @@ type ReplicationControllerList struct { unversioned.TypeMeta `json:",inline"` // Standard list metadata. // More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds + // +optional 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 + // More info: http://kubernetes.io/docs/user-guide/replication-controller Items []ReplicationController `json:"items" protobuf:"bytes,2,rep,name=items"` } @@ -2127,6 +2461,7 @@ const ( type ServiceStatus struct { // LoadBalancer contains the current status of the load-balancer, // if one is present. + // +optional LoadBalancer LoadBalancerStatus `json:"loadBalancer,omitempty" protobuf:"bytes,1,opt,name=loadBalancer"` } @@ -2134,6 +2469,7 @@ type ServiceStatus struct { 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. + // +optional Ingress []LoadBalancerIngress `json:"ingress,omitempty" protobuf:"bytes,1,rep,name=ingress"` } @@ -2142,17 +2478,19 @@ type LoadBalancerStatus struct { type LoadBalancerIngress struct { // IP is set for load-balancer ingress points that are IP based // (typically GCE or OpenStack load-balancers) + // +optional 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) + // +optional 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 + // More info: http://kubernetes.io/docs/user-guide/services#virtual-ips-and-service-proxies Ports []ServicePort `json:"ports" patchStrategy:"merge" patchMergeKey:"port" protobuf:"bytes,1,rep,name=ports"` // Route service traffic to pods with label keys and values matching this @@ -2160,7 +2498,8 @@ type ServiceSpec struct { // 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 + // More info: http://kubernetes.io/docs/user-guide/services#overview + // +optional Selector map[string]string `json:"selector,omitempty" protobuf:"bytes,2,rep,name=selector"` // clusterIP is the IP address of the service and is usually assigned @@ -2171,7 +2510,8 @@ type ServiceSpec struct { // 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 + // More info: http://kubernetes.io/docs/user-guide/services#virtual-ips-and-service-proxies + // +optional ClusterIP string `json:"clusterIP,omitempty" protobuf:"bytes,3,opt,name=clusterIP"` // type determines how the Service is exposed. Defaults to ClusterIP. Valid @@ -2187,7 +2527,8 @@ type ServiceSpec struct { // "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 + // More info: http://kubernetes.io/docs/user-guide/services#overview + // +optional 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 @@ -2197,6 +2538,7 @@ type ServiceSpec struct { // 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. + // +optional ExternalIPs []string `json:"externalIPs,omitempty" protobuf:"bytes,5,rep,name=externalIPs"` // deprecatedPublicIPs is deprecated and replaced by the externalIPs field @@ -2205,13 +2547,15 @@ type ServiceSpec struct { // any new API revisions. If both deprecatedPublicIPs *and* externalIPs are // set, deprecatedPublicIPs is used. // +k8s:conversion-gen=false + // +optional 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 + // More info: http://kubernetes.io/docs/user-guide/services#virtual-ips-and-service-proxies + // +optional SessionAffinity ServiceAffinity `json:"sessionAffinity,omitempty" protobuf:"bytes,7,opt,name=sessionAffinity,casttype=ServiceAffinity"` // Only applies to Service Type: LoadBalancer @@ -2219,17 +2563,20 @@ type ServiceSpec struct { // 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 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 + // More info: http://kubernetes.io/docs/user-guide/services-firewalls + // +optional 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. + // +optional ExternalName string `json:"externalName,omitempty" protobuf:"bytes,10,opt,name=externalName"` } @@ -2239,10 +2586,12 @@ type ServicePort struct { // 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 Name string `json:"name,omitempty" protobuf:"bytes,1,opt,name=name"` // The IP protocol for this port. Supports "TCP" and "UDP". // Default is TCP. + // +optional Protocol Protocol `json:"protocol,omitempty" protobuf:"bytes,2,opt,name=protocol,casttype=Protocol"` // The port that will be exposed by this service. @@ -2255,14 +2604,16 @@ type ServicePort struct { // 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 + // More info: http://kubernetes.io/docs/user-guide/services#defining-a-service + // +optional 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 + // More info: http://kubernetes.io/docs/user-guide/services#type--nodeport + // +optional NodePort int32 `json:"nodePort,omitempty" protobuf:"varint,5,opt,name=nodePort"` } @@ -2275,16 +2626,19 @@ type Service struct { unversioned.TypeMeta `json:",inline"` // Standard object's metadata. // More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata + // +optional 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 + // +optional 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 + // +optional Status ServiceStatus `json:"status,omitempty" protobuf:"bytes,3,opt,name=status"` } @@ -2299,6 +2653,7 @@ type ServiceList struct { unversioned.TypeMeta `json:",inline"` // Standard list metadata. // More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds + // +optional unversioned.ListMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"` // List of services @@ -2315,16 +2670,19 @@ type ServiceAccount struct { unversioned.TypeMeta `json:",inline"` // Standard object's metadata. // More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata + // +optional 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 + // More info: http://kubernetes.io/docs/user-guide/secrets + // +optional 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 + // More info: http://kubernetes.io/docs/user-guide/secrets#manually-specifying-an-imagepullsecret + // +optional ImagePullSecrets []LocalObjectReference `json:"imagePullSecrets,omitempty" protobuf:"bytes,3,rep,name=imagePullSecrets"` } @@ -2333,6 +2691,7 @@ type ServiceAccountList struct { unversioned.TypeMeta `json:",inline"` // Standard list metadata. // More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds + // +optional unversioned.ListMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"` // List of ServiceAccounts. @@ -2358,6 +2717,7 @@ type Endpoints struct { unversioned.TypeMeta `json:",inline"` // Standard object's metadata. // More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata + // +optional 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 @@ -2383,12 +2743,15 @@ type Endpoints struct { 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. + // +optional 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. + // +optional NotReadyAddresses []EndpointAddress `json:"notReadyAddresses,omitempty" protobuf:"bytes,2,rep,name=notReadyAddresses"` // Port numbers available on the related IP addresses. + // +optional Ports []EndpointPort `json:"ports,omitempty" protobuf:"bytes,3,rep,name=ports"` } @@ -2402,10 +2765,13 @@ type EndpointAddress struct { // TODO: This should allow hostname or IP, See #4447. IP string `json:"ip" protobuf:"bytes,1,opt,name=ip"` // The Hostname of this endpoint + // +optional 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. + // +optional NodeName *string `json:"nodeName,omitempty" protobuf:"bytes,4,opt,name=nodeName"` // Reference to object providing the endpoint. + // +optional TargetRef *ObjectReference `json:"targetRef,omitempty" protobuf:"bytes,2,opt,name=targetRef"` } @@ -2414,6 +2780,7 @@ type EndpointPort struct { // The name of this port (corresponds to ServicePort.Name). // Must be a DNS_LABEL. // Optional only if one port is defined. + // +optional Name string `json:"name,omitempty" protobuf:"bytes,1,opt,name=name"` // The port number of the endpoint. @@ -2422,6 +2789,7 @@ type EndpointPort struct { // The IP protocol for this port. // Must be UDP or TCP. // Default is TCP. + // +optional Protocol Protocol `json:"protocol,omitempty" protobuf:"bytes,3,opt,name=protocol,casttype=Protocol"` } @@ -2430,6 +2798,7 @@ type EndpointsList struct { unversioned.TypeMeta `json:",inline"` // Standard list metadata. // More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds + // +optional unversioned.ListMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"` // List of endpoints. @@ -2439,14 +2808,18 @@ type EndpointsList struct { // NodeSpec describes the attributes that a node is created with. type NodeSpec struct { // PodCIDR represents the pod IP range assigned to the node. + // +optional 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. + // +optional ExternalID string `json:"externalID,omitempty" protobuf:"bytes,2,opt,name=externalID"` // ID of the node assigned by the cloud provider in the format: :// + // +optional 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"` + // More info: http://releases.k8s.io/HEAD/docs/admin/node.md#manual-node-administration" + // +optional Unschedulable bool `json:"unschedulable,omitempty" protobuf:"varint,4,opt,name=unschedulable"` } @@ -2465,6 +2838,7 @@ type DaemonEndpoint struct { // NodeDaemonEndpoints lists ports opened by daemons running on the Node. type NodeDaemonEndpoints struct { // Endpoint on which Kubelet is listening. + // +optional KubeletEndpoint DaemonEndpoint `json:"kubeletEndpoint,omitempty" protobuf:"bytes,1,opt,name=kubeletEndpoint"` } @@ -2499,32 +2873,42 @@ type NodeSystemInfo struct { // 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. + // More info: http://kubernetes.io/docs/user-guide/persistent-volumes#capacity for more details. + // +optional 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. + // +optional 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. + // +optional 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 + // +optional 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 + // +optional Addresses []NodeAddress `json:"addresses,omitempty" patchStrategy:"merge" patchMergeKey:"type" protobuf:"bytes,5,rep,name=addresses"` // Endpoints of daemons running on the Node. + // +optional 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 + // +optional NodeInfo NodeSystemInfo `json:"nodeInfo,omitempty" protobuf:"bytes,7,opt,name=nodeInfo"` // List of container images on this node + // +optional Images []ContainerImage `json:"images,omitempty" protobuf:"bytes,8,rep,name=images"` // List of attachable volumes in use (mounted) by the node. + // +optional VolumesInUse []UniqueVolumeName `json:"volumesInUse,omitempty" protobuf:"bytes,9,rep,name=volumesInUse"` // List of volumes that are attached to the node. + // +optional VolumesAttached []AttachedVolume `json:"volumesAttached,omitempty" protobuf:"bytes,10,rep,name=volumesAttached"` } @@ -2535,7 +2919,7 @@ 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 represents the device path where the volume should be available DevicePath string `json:"devicePath" protobuf:"bytes,2,rep,name=devicePath"` } @@ -2545,6 +2929,7 @@ type AttachedVolume struct { 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. + // +optional PreferAvoidPods []PreferAvoidPodsEntry `json:"preferAvoidPods,omitempty" protobuf:"bytes,1,rep,name=preferAvoidPods"` } @@ -2553,10 +2938,13 @@ 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. + // +optional EvictionTime unversioned.Time `json:"evictionTime,omitempty" protobuf:"bytes,2,opt,name=evictionTime"` // (brief) reason why this entry was added to the list. + // +optional Reason string `json:"reason,omitempty" protobuf:"bytes,3,opt,name=reason"` // Human readable message indicating why this entry was added to the list. + // +optional Message string `json:"message,omitempty" protobuf:"bytes,4,opt,name=message"` } @@ -2564,6 +2952,7 @@ type PreferAvoidPodsEntry struct { // Exactly one field should be set. type PodSignature struct { // Reference to controller whose pods should avoid this node. + // +optional PodController *OwnerReference `json:"podController,omitempty" protobuf:"bytes,1,opt,name=podController"` } @@ -2573,6 +2962,7 @@ type ContainerImage struct { // 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. + // +optional SizeBytes int64 `json:"sizeBytes,omitempty" protobuf:"varint,2,opt,name=sizeBytes"` } @@ -2614,12 +3004,16 @@ type NodeCondition struct { // 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. + // +optional LastHeartbeatTime unversioned.Time `json:"lastHeartbeatTime,omitempty" protobuf:"bytes,3,opt,name=lastHeartbeatTime"` // Last time the condition transit from one status to another. + // +optional LastTransitionTime unversioned.Time `json:"lastTransitionTime,omitempty" protobuf:"bytes,4,opt,name=lastTransitionTime"` // (brief) reason for the condition's last transition. + // +optional Reason string `json:"reason,omitempty" protobuf:"bytes,5,opt,name=reason"` // Human readable message indicating details about last transition. + // +optional Message string `json:"message,omitempty" protobuf:"bytes,6,opt,name=message"` } @@ -2627,9 +3021,11 @@ type NodeAddressType string // These are valid address type of node. const ( - NodeHostName NodeAddressType = "Hostname" - NodeExternalIP NodeAddressType = "ExternalIP" - NodeInternalIP NodeAddressType = "InternalIP" + // Deprecated: NodeLegacyHostIP will be removed in 1.7. + NodeLegacyHostIP NodeAddressType = "LegacyHostIP" + NodeHostName NodeAddressType = "Hostname" + NodeExternalIP NodeAddressType = "ExternalIP" + NodeInternalIP NodeAddressType = "InternalIP" ) // NodeAddress contains information for the node's address. @@ -2672,16 +3068,19 @@ type Node struct { unversioned.TypeMeta `json:",inline"` // Standard object's metadata. // More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata + // +optional 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 + // +optional 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 + // +optional Status NodeStatus `json:"status,omitempty" protobuf:"bytes,3,opt,name=status"` } @@ -2690,6 +3089,7 @@ type NodeList struct { unversioned.TypeMeta `json:",inline"` // Standard list metadata. // More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds + // +optional unversioned.ListMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"` // List of nodes @@ -2701,12 +3101,14 @@ type FinalizerName string // These are internal finalizer values to Kubernetes, must be qualified name unless defined here const ( FinalizerKubernetes FinalizerName = "kubernetes" + FinalizerOrphan string = "orphan" ) // 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 + // +optional Finalizers []FinalizerName `json:"finalizers,omitempty" protobuf:"bytes,1,rep,name=finalizers,casttype=FinalizerName"` } @@ -2714,6 +3116,7 @@ type NamespaceSpec struct { type NamespaceStatus struct { // Phase is the current lifecycle phase of the namespace. // More info: http://releases.k8s.io/HEAD/docs/design/namespaces.md#phases + // +optional Phase NamespacePhase `json:"phase,omitempty" protobuf:"bytes,1,opt,name=phase,casttype=NamespacePhase"` } @@ -2736,14 +3139,17 @@ type Namespace struct { unversioned.TypeMeta `json:",inline"` // Standard object's metadata. // More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata + // +optional 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 + // +optional 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 + // +optional Status NamespaceStatus `json:"status,omitempty" protobuf:"bytes,3,opt,name=status"` } @@ -2752,10 +3158,11 @@ type NamespaceList struct { unversioned.TypeMeta `json:",inline"` // Standard list metadata. // More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds + // +optional 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 + // More info: http://kubernetes.io/docs/user-guide/namespaces Items []Namespace `json:"items" protobuf:"bytes,2,rep,name=items"` } @@ -2765,6 +3172,7 @@ type Binding struct { unversioned.TypeMeta `json:",inline"` // Standard object's metadata. // More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata + // +optional ObjectMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"` // The target object that you want to bind to the standard object. @@ -2774,6 +3182,7 @@ type Binding struct { // Preconditions must be fulfilled before an operation (update, delete, etc.) is carried out. type Preconditions struct { // Specifies the target UID. + // +optional UID *types.UID `json:"uid,omitempty" protobuf:"bytes,1,opt,name=uid,casttype=k8s.io/kubernetes/pkg/types.UID"` } @@ -2785,14 +3194,17 @@ type DeleteOptions struct { // 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 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. + // +optional 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. + // +optional OrphanDependents *bool `json:"orphanDependents,omitempty" protobuf:"varint,3,opt,name=orphanDependents"` } @@ -2812,17 +3224,22 @@ type ListOptions struct { // A selector to restrict the list of returned objects by their labels. // Defaults to everything. + // +optional 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. + // +optional 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. + // +optional 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. + // +optional ResourceVersion string `json:"resourceVersion,omitempty" protobuf:"bytes,4,opt,name=resourceVersion"` // Timeout for the list/watch call. + // +optional TimeoutSeconds *int64 `json:"timeoutSeconds,omitempty" protobuf:"varint,5,opt,name=timeoutSeconds"` } @@ -2831,30 +3248,38 @@ 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. + // +optional Container string `json:"container,omitempty" protobuf:"bytes,1,opt,name=container"` // Follow the log stream of the pod. Defaults to false. + // +optional Follow bool `json:"follow,omitempty" protobuf:"varint,2,opt,name=follow"` // Return previous terminated container logs. Defaults to false. + // +optional 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. + // +optional 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. + // +optional 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. + // +optional 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 + // +optional 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. + // +optional LimitBytes *int64 `json:"limitBytes,omitempty" protobuf:"varint,8,opt,name=limitBytes"` } @@ -2867,24 +3292,29 @@ type PodAttachOptions struct { // Stdin if true, redirects the standard input stream of the pod for this call. // Defaults to false. + // +optional 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. + // +optional 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. + // +optional 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. + // +optional 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. + // +optional Container string `json:"container,omitempty" protobuf:"bytes,5,opt,name=container"` } @@ -2897,22 +3327,27 @@ type PodExecOptions struct { // Redirect the standard input stream of the pod for this call. // Defaults to false. + // +optional 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. + // +optional 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. + // +optional 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. + // +optional 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. + // +optional 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. @@ -2924,6 +3359,7 @@ type PodProxyOptions struct { unversioned.TypeMeta `json:",inline"` // Path is the URL path to use for the current proxy request to pod. + // +optional Path string `json:"path,omitempty" protobuf:"bytes,1,opt,name=path"` } @@ -2932,6 +3368,7 @@ type NodeProxyOptions struct { unversioned.TypeMeta `json:",inline"` // Path is the URL path to use for the current proxy request to node. + // +optional Path string `json:"path,omitempty" protobuf:"bytes,1,opt,name=path"` } @@ -2944,6 +3381,7 @@ type ServiceProxyOptions struct { // 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 Path string `json:"path,omitempty" protobuf:"bytes,1,opt,name=path"` } @@ -2957,12 +3395,13 @@ type OwnerReference struct { // 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 + // More info: http://kubernetes.io/docs/user-guide/identifiers#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 + // More info: http://kubernetes.io/docs/user-guide/identifiers#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. + // +optional Controller *bool `json:"controller,omitempty" protobuf:"varint,6,opt,name=controller"` } @@ -2970,20 +3409,26 @@ type OwnerReference struct { type ObjectReference struct { // Kind of the referent. // More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds + // +optional 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 + // More info: http://kubernetes.io/docs/user-guide/namespaces + // +optional 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 + // More info: http://kubernetes.io/docs/user-guide/identifiers#names + // +optional 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 + // More info: http://kubernetes.io/docs/user-guide/identifiers#uids + // +optional UID types.UID `json:"uid,omitempty" protobuf:"bytes,4,opt,name=uid,casttype=k8s.io/kubernetes/pkg/types.UID"` // API version of the referent. + // +optional 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 + // +optional 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 @@ -2994,6 +3439,7 @@ type ObjectReference struct { // 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 FieldPath string `json:"fieldPath,omitempty" protobuf:"bytes,7,opt,name=fieldPath"` } @@ -3001,8 +3447,9 @@ type ObjectReference struct { // 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 + // More info: http://kubernetes.io/docs/user-guide/identifiers#names // TODO: Add other useful fields. apiVersion, kind, uid? + // +optional Name string `json:"name,omitempty" protobuf:"bytes,1,opt,name=name"` } @@ -3010,14 +3457,17 @@ type LocalObjectReference struct { type SerializedReference struct { unversioned.TypeMeta `json:",inline"` // The reference to an object in the system. + // +optional 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. + // +optional Component string `json:"component,omitempty" protobuf:"bytes,1,opt,name=component"` // Node name on which the event is generated. + // +optional Host string `json:"host,omitempty" protobuf:"bytes,2,opt,name=host"` } @@ -3045,25 +3495,32 @@ type Event struct { // 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 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. + // +optional Message string `json:"message,omitempty" protobuf:"bytes,4,opt,name=message"` // The component reporting this event. Should be a short machine understandable string. + // +optional 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.) + // +optional 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. + // +optional LastTimestamp unversioned.Time `json:"lastTimestamp,omitempty" protobuf:"bytes,7,opt,name=lastTimestamp"` // The number of times this event has occurred. + // +optional 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 + // +optional Type string `json:"type,omitempty" protobuf:"bytes,9,opt,name=type"` } @@ -3072,6 +3529,7 @@ type EventList struct { unversioned.TypeMeta `json:",inline"` // Standard list metadata. // More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds + // +optional unversioned.ListMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"` // List of events @@ -3083,6 +3541,7 @@ type List struct { unversioned.TypeMeta `json:",inline"` // Standard list metadata. // More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds + // +optional unversioned.ListMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"` // List of objects @@ -3097,21 +3556,29 @@ const ( LimitTypePod LimitType = "Pod" // Limit that applies to all containers in a namespace LimitTypeContainer LimitType = "Container" + // Limit that applies to all persistent volume claims in a namespace + LimitTypePersistentVolumeClaim LimitType = "PersistentVolumeClaim" ) // 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. + // +optional Type LimitType `json:"type,omitempty" protobuf:"bytes,1,opt,name=type,casttype=LimitType"` // Max usage constraints on this kind by resource name. + // +optional Max ResourceList `json:"max,omitempty" protobuf:"bytes,2,rep,name=max,casttype=ResourceList,castkey=ResourceName"` // Min usage constraints on this kind by resource name. + // +optional 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. + // +optional 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. + // +optional 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. + // +optional MaxLimitRequestRatio ResourceList `json:"maxLimitRequestRatio,omitempty" protobuf:"bytes,6,rep,name=maxLimitRequestRatio,casttype=ResourceList,castkey=ResourceName"` } @@ -3128,10 +3595,12 @@ type LimitRange struct { unversioned.TypeMeta `json:",inline"` // Standard object's metadata. // More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata + // +optional 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 + // +optional Spec LimitRangeSpec `json:"spec,omitempty" protobuf:"bytes,2,opt,name=spec"` } @@ -3140,6 +3609,7 @@ type LimitRangeList struct { unversioned.TypeMeta `json:",inline"` // Standard list metadata. // More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds + // +optional unversioned.ListMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"` // Items is a list of LimitRange objects. @@ -3197,9 +3667,11 @@ const ( 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 + // +optional 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. + // +optional Scopes []ResourceQuotaScope `json:"scopes,omitempty" protobuf:"bytes,2,rep,name=scopes,casttype=ResourceQuotaScope"` } @@ -3207,8 +3679,10 @@ type ResourceQuotaSpec struct { 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 + // +optional 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. + // +optional Used ResourceList `json:"used,omitempty" protobuf:"bytes,2,rep,name=used,casttype=ResourceList,castkey=ResourceName"` } @@ -3219,14 +3693,17 @@ type ResourceQuota struct { unversioned.TypeMeta `json:",inline"` // Standard object's metadata. // More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata + // +optional 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 + // +optional 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 + // +optional Status ResourceQuotaStatus `json:"status,omitempty" protobuf:"bytes,3,opt,name=status"` } @@ -3235,6 +3712,7 @@ type ResourceQuotaList struct { unversioned.TypeMeta `json:",inline"` // Standard list metadata. // More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds + // +optional unversioned.ListMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"` // Items is a list of ResourceQuota objects. @@ -3250,6 +3728,7 @@ type Secret struct { unversioned.TypeMeta `json:",inline"` // Standard object's metadata. // More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata + // +optional ObjectMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"` // Data contains the secret data. Each key must be a valid DNS_SUBDOMAIN @@ -3257,6 +3736,7 @@ type Secret struct { // 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 + // +optional Data map[string][]byte `json:"data,omitempty" protobuf:"bytes,2,rep,name=data"` // stringData allows specifying non-binary secret data in string form. @@ -3264,9 +3744,11 @@ type Secret struct { // 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 + // +optional StringData map[string]string `json:"stringData,omitempty" protobuf:"bytes,4,rep,name=stringData"` // Used to facilitate programmatic handling of secret data. + // +optional Type SecretType `json:"type,omitempty" protobuf:"bytes,3,opt,name=type,casttype=SecretType"` } @@ -3329,10 +3811,11 @@ type SecretList struct { unversioned.TypeMeta `json:",inline"` // Standard list metadata. // More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds + // +optional 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 + // More info: http://kubernetes.io/docs/user-guide/secrets Items []Secret `json:"items" protobuf:"bytes,2,rep,name=items"` } @@ -3343,10 +3826,12 @@ type ConfigMap struct { unversioned.TypeMeta `json:",inline"` // Standard object's metadata. // More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata + // +optional 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. + // +optional Data map[string]string `json:"data,omitempty" protobuf:"bytes,2,rep,name=data"` } @@ -3355,6 +3840,7 @@ type ConfigMapList struct { unversioned.TypeMeta `json:",inline"` // More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata + // +optional unversioned.ListMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"` // Items is the list of ConfigMaps. @@ -3379,9 +3865,11 @@ type ComponentCondition struct { 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. + // +optional Message string `json:"message,omitempty" protobuf:"bytes,3,opt,name=message"` // Condition error code for a component. // For example, a health check error code. + // +optional Error string `json:"error,omitempty" protobuf:"bytes,4,opt,name=error"` } @@ -3393,9 +3881,11 @@ type ComponentStatus struct { unversioned.TypeMeta `json:",inline"` // Standard object's metadata. // More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata + // +optional ObjectMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"` // List of component conditions observed + // +optional Conditions []ComponentCondition `json:"conditions,omitempty" patchStrategy:"merge" patchMergeKey:"type" protobuf:"bytes,2,rep,name=conditions"` } @@ -3404,6 +3894,7 @@ type ComponentStatusList struct { unversioned.TypeMeta `json:",inline"` // Standard list metadata. // More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds + // +optional unversioned.ListMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"` // List of ComponentStatus objects. @@ -3414,12 +3905,14 @@ type ComponentStatusList struct { // Downward API volumes support ownership management and SELinux relabeling. type DownwardAPIVolumeSource struct { // Items is a list of downward API volume file + // +optional 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. + // +optional DefaultMode *int32 `json:"defaultMode,omitempty" protobuf:"varint,2,opt,name=defaultMode"` } @@ -3432,14 +3925,17 @@ 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. + // +optional 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. + // +optional 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. + // +optional Mode *int32 `json:"mode,omitempty" protobuf:"varint,4,opt,name=mode"` } @@ -3449,20 +3945,24 @@ type DownwardAPIVolumeFile struct { type SecurityContext struct { // The capabilities to add/drop when running containers. // Defaults to the default set of capabilities granted by the container runtime. + // +optional 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. + // +optional 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. + // +optional 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. + // +optional 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 @@ -3470,21 +3970,27 @@ type SecurityContext struct { // 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 RunAsNonRoot *bool `json:"runAsNonRoot,omitempty" protobuf:"varint,5,opt,name=runAsNonRoot"` // Whether this container has a read-only root filesystem. // Default is false. + // +optional 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. + // +optional User string `json:"user,omitempty" protobuf:"bytes,1,opt,name=user"` // Role is a SELinux role label that applies to the container. + // +optional Role string `json:"role,omitempty" protobuf:"bytes,2,opt,name=role"` // Type is a SELinux type label that applies to the container. + // +optional Type string `json:"type,omitempty" protobuf:"bytes,3,opt,name=type"` // Level is SELinux level label that applies to the container. + // +optional Level string `json:"level,omitempty" protobuf:"bytes,4,opt,name=level"` } @@ -3493,6 +3999,7 @@ type RangeAllocation struct { unversioned.TypeMeta `json:",inline"` // Standard object's metadata. // More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata + // +optional ObjectMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"` // Range is string that identifies the range represented by 'data'. diff --git a/vendor/k8s.io/client-go/1.5/pkg/api/v1/types_swagger_doc_generated.go b/vendor/k8s.io/client-go/pkg/api/v1/types_swagger_doc_generated.go similarity index 89% rename from vendor/k8s.io/client-go/1.5/pkg/api/v1/types_swagger_doc_generated.go rename to vendor/k8s.io/client-go/pkg/api/v1/types_swagger_doc_generated.go index d9180625e..7322cea87 100644 --- a/vendor/k8s.io/client-go/1.5/pkg/api/v1/types_swagger_doc_generated.go +++ b/vendor/k8s.io/client-go/pkg/api/v1/types_swagger_doc_generated.go @@ -29,10 +29,10 @@ package v1 // 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", + "volumeID": "Unique ID of the persistent disk resource in AWS (Amazon EBS volume). More info: http://kubernetes.io/docs/user-guide/volumes#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://kubernetes.io/docs/user-guide/volumes#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", + "readOnly": "Specify \"true\" to force and set the ReadOnly property in VolumeMounts to \"true\". If omitted, the default is \"false\". More info: http://kubernetes.io/docs/user-guide/volumes#awselasticblockstore", } func (AWSElasticBlockStoreVolumeSource) SwaggerDoc() map[string]string { @@ -53,7 +53,7 @@ func (Affinity) SwaggerDoc() map[string]string { 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", + "devicePath": "DevicePath represents the device path where the volume should be available", } func (AttachedVolume) SwaggerDoc() map[string]string { @@ -212,19 +212,19 @@ func (ConfigMapVolumeSource) SwaggerDoc() map[string]string { 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", + "image": "Docker image name. More info: http://kubernetes.io/docs/user-guide/images", + "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://kubernetes.io/docs/user-guide/containers#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://kubernetes.io/docs/user-guide/containers#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", + "resources": "Compute Resources required by this container. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/persistent-volumes#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", + "livenessProbe": "Periodic probe of container liveness. Container will be restarted if the probe fails. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/pod-states#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://kubernetes.io/docs/user-guide/pod-states#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", + "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://kubernetes.io/docs/user-guide/images#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", @@ -310,9 +310,9 @@ var map_ContainerStatus = map[string]string{ "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", + "image": "The image the container is running. More info: http://kubernetes.io/docs/user-guide/images", "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", + "containerID": "Container's ID in the format 'docker://'. More info: http://kubernetes.io/docs/user-guide/container-environment#container-information", } func (ContainerStatus) SwaggerDoc() map[string]string { @@ -363,7 +363,7 @@ func (DownwardAPIVolumeSource) SwaggerDoc() map[string]string { 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", + "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://kubernetes.io/docs/user-guide/volumes#emptydir", } func (EmptyDirVolumeSource) SwaggerDoc() map[string]string { @@ -529,8 +529,9 @@ func (FlexVolumeSource) SwaggerDoc() map[string]string { } 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", + "": "Represents a Flocker volume mounted by the Flocker agent. One and only one of datasetName and datasetUUID should be set. Flocker volumes do not support ownership management or SELinux relabeling.", + "datasetName": "Name of the dataset stored as metadata -> name on the dataset for Flocker should be considered as deprecated", + "datasetUUID": "UUID of the dataset. This is unique identifier of a Flocker dataset", } func (FlockerVolumeSource) SwaggerDoc() map[string]string { @@ -539,10 +540,10 @@ func (FlockerVolumeSource) SwaggerDoc() map[string]string { 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", + "pdName": "Unique name of the PD resource in GCE. Used to identify the disk in GCE. More info: http://kubernetes.io/docs/user-guide/volumes#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://kubernetes.io/docs/user-guide/volumes#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://kubernetes.io/docs/user-guide/volumes#gcepersistentdisk", + "readOnly": "ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. More info: http://kubernetes.io/docs/user-guide/volumes#gcepersistentdisk", } func (GCEPersistentDiskVolumeSource) SwaggerDoc() map[string]string { @@ -607,7 +608,7 @@ func (Handler) SwaggerDoc() map[string]string { 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", + "path": "Path of the directory on the host. More info: http://kubernetes.io/docs/user-guide/volumes#hostpath", } func (HostPathVolumeSource) SwaggerDoc() map[string]string { @@ -620,7 +621,7 @@ var map_ISCSIVolumeSource = map[string]string{ "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", + "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://kubernetes.io/docs/user-guide/volumes#iscsi", "readOnly": "ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false.", } @@ -641,8 +642,8 @@ func (KeyToPath) SwaggerDoc() map[string]string { 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", + "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://kubernetes.io/docs/user-guide/container-environment#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://kubernetes.io/docs/user-guide/container-environment#hook-details", } func (Lifecycle) SwaggerDoc() map[string]string { @@ -736,7 +737,7 @@ func (LoadBalancerStatus) SwaggerDoc() map[string]string { 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", + "name": "Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names", } func (LocalObjectReference) SwaggerDoc() map[string]string { @@ -745,9 +746,9 @@ func (LocalObjectReference) SwaggerDoc() map[string]string { 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", + "server": "Server is the hostname or IP address of the NFS server. More info: http://kubernetes.io/docs/user-guide/volumes#nfs", + "path": "Path that is exported by the NFS server. More info: http://kubernetes.io/docs/user-guide/volumes#nfs", + "readOnly": "ReadOnly here will force the NFS export to be mounted with read-only permissions. Defaults to false. More info: http://kubernetes.io/docs/user-guide/volumes#nfs", } func (NFSVolumeSource) SwaggerDoc() map[string]string { @@ -768,7 +769,7 @@ func (Namespace) SwaggerDoc() map[string]string { 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", + "items": "Items is the list of Namespace objects in the list. More info: http://kubernetes.io/docs/user-guide/namespaces", } func (NamespaceList) SwaggerDoc() map[string]string { @@ -794,7 +795,7 @@ func (NamespaceStatus) SwaggerDoc() map[string]string { } var map_Node = map[string]string{ - "": "Node is a worker node in Kubernetes.", + "": "Node is a worker node in Kubernetes. 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", @@ -900,7 +901,7 @@ var map_NodeSpec = map[string]string{ "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\"`", + "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 { @@ -909,7 +910,7 @@ func (NodeSpec) SwaggerDoc() map[string]string { 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.", + "capacity": "Capacity represents the total resources of a node. More info: http://kubernetes.io/docs/user-guide/persistent-volumes#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 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", @@ -955,18 +956,18 @@ func (ObjectFieldSelector) SwaggerDoc() map[string]string { 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", + "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://kubernetes.io/docs/user-guide/identifiers#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", + "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://kubernetes.io/docs/user-guide/namespaces", "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", + "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://kubernetes.io/docs/user-guide/identifiers#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", + "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 is expected to 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. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. 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", + "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://kubernetes.io/docs/user-guide/labels", + "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://kubernetes.io/docs/user-guide/annotations", "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.", @@ -979,9 +980,9 @@ func (ObjectMeta) SwaggerDoc() map[string]string { 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", + "namespace": "Namespace of the referent. More info: http://kubernetes.io/docs/user-guide/namespaces", + "name": "Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names", + "uid": "UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#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.", @@ -995,8 +996,8 @@ 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", + "name": "Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names", + "uid": "UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids", "controller": "If true, this reference points to the managing controller.", } @@ -1005,10 +1006,10 @@ func (OwnerReference) SwaggerDoc() map[string]string { } 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", + "": "PersistentVolume (PV) is a storage resource provisioned by an administrator. It is analogous to a node. More info: http://kubernetes.io/docs/user-guide/persistent-volumes", "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", + "spec": "Spec defines a specification of a persistent volume owned by the cluster. Provisioned by an administrator. More info: http://kubernetes.io/docs/user-guide/persistent-volumes#persistent-volumes", + "status": "Status represents the current information/status for the persistent volume. Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/persistent-volumes#persistent-volumes", } func (PersistentVolume) SwaggerDoc() map[string]string { @@ -1018,8 +1019,8 @@ func (PersistentVolume) SwaggerDoc() map[string]string { 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", + "spec": "Spec defines the desired characteristics of a volume requested by a pod author. More info: http://kubernetes.io/docs/user-guide/persistent-volumes#persistentvolumeclaims", + "status": "Status represents the current information/status of a persistent volume claim. Read-only. More info: http://kubernetes.io/docs/user-guide/persistent-volumes#persistentvolumeclaims", } func (PersistentVolumeClaim) SwaggerDoc() map[string]string { @@ -1029,7 +1030,7 @@ func (PersistentVolumeClaim) SwaggerDoc() map[string]string { 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", + "items": "A list of persistent volume claims. More info: http://kubernetes.io/docs/user-guide/persistent-volumes#persistentvolumeclaims", } func (PersistentVolumeClaimList) SwaggerDoc() map[string]string { @@ -1038,9 +1039,9 @@ func (PersistentVolumeClaimList) SwaggerDoc() map[string]string { 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", + "accessModes": "AccessModes contains the desired access modes the volume should have. More info: http://kubernetes.io/docs/user-guide/persistent-volumes#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", + "resources": "Resources represents the minimum resources the volume should have. More info: http://kubernetes.io/docs/user-guide/persistent-volumes#resources", "volumeName": "VolumeName is the binding reference to the PersistentVolume backing this claim.", } @@ -1051,7 +1052,7 @@ func (PersistentVolumeClaimSpec) SwaggerDoc() map[string]string { 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", + "accessModes": "AccessModes contains the actual access modes the volume backing the PVC has. More info: http://kubernetes.io/docs/user-guide/persistent-volumes#access-modes-1", "capacity": "Represents the actual resources of the underlying volume.", } @@ -1061,7 +1062,7 @@ func (PersistentVolumeClaimStatus) SwaggerDoc() map[string]string { 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", + "claimName": "ClaimName is the name of a PersistentVolumeClaim in the same namespace as the pod using this volume. More info: http://kubernetes.io/docs/user-guide/persistent-volumes#persistentvolumeclaims", "readOnly": "Will force the ReadOnly setting in VolumeMounts. Default false.", } @@ -1072,7 +1073,7 @@ func (PersistentVolumeClaimVolumeSource) SwaggerDoc() map[string]string { 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", + "items": "List of persistent volumes. More info: http://kubernetes.io/docs/user-guide/persistent-volumes", } func (PersistentVolumeList) SwaggerDoc() map[string]string { @@ -1081,11 +1082,11 @@ func (PersistentVolumeList) SwaggerDoc() map[string]string { 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", + "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://kubernetes.io/docs/user-guide/volumes#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://kubernetes.io/docs/user-guide/volumes#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://kubernetes.io/docs/user-guide/volumes#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", + "nfs": "NFS represents an NFS mount on the host. Provisioned by an admin. More info: http://kubernetes.io/docs/user-guide/volumes#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", @@ -1097,6 +1098,7 @@ var map_PersistentVolumeSource = map[string]string{ "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.", + "photonPersistentDisk": "PhotonPersistentDisk represents a PhotonController persistent disk attached and mounted on kubelets host machine", } func (PersistentVolumeSource) SwaggerDoc() map[string]string { @@ -1105,10 +1107,10 @@ func (PersistentVolumeSource) SwaggerDoc() map[string]string { 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. Recycling 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", + "capacity": "A description of the persistent volume's resources and capacity. More info: http://kubernetes.io/docs/user-guide/persistent-volumes#capacity", + "accessModes": "AccessModes contains all ways the volume can be mounted. More info: http://kubernetes.io/docs/user-guide/persistent-volumes#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://kubernetes.io/docs/user-guide/persistent-volumes#binding", + "persistentVolumeReclaimPolicy": "What happens to a persistent volume when released from its claim. Valid options are Retain (default) and Recycle. Recycling must be supported by the volume plugin underlying this persistent volume. More info: http://kubernetes.io/docs/user-guide/persistent-volumes#recycling-policy", } func (PersistentVolumeSpec) SwaggerDoc() map[string]string { @@ -1117,7 +1119,7 @@ func (PersistentVolumeSpec) SwaggerDoc() map[string]string { 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", + "phase": "Phase indicates if a volume is available, bound to a claim, or released by a claim. More info: http://kubernetes.io/docs/user-guide/persistent-volumes#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.", } @@ -1126,6 +1128,16 @@ func (PersistentVolumeStatus) SwaggerDoc() map[string]string { return map_PersistentVolumeStatus } +var map_PhotonPersistentDiskVolumeSource = map[string]string{ + "": "Represents a Photon Controller persistent disk resource.", + "pdID": "ID that identifies Photon Controller persistent disk", + "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 (PhotonPersistentDiskVolumeSource) SwaggerDoc() map[string]string { + return map_PhotonPersistentDiskVolumeSource +} + 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", @@ -1183,8 +1195,8 @@ func (PodAttachOptions) SwaggerDoc() map[string]string { 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", + "type": "Type is the type of the condition. Currently only Ready. More info: http://kubernetes.io/docs/user-guide/pod-states#pod-conditions", + "status": "Status is the status of the condition. Can be True, False, Unknown. More info: http://kubernetes.io/docs/user-guide/pod-states#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.", @@ -1212,7 +1224,7 @@ func (PodExecOptions) SwaggerDoc() map[string]string { 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", + "items": "List of pods. More info: http://kubernetes.io/docs/user-guide/pods", } func (PodList) SwaggerDoc() map[string]string { @@ -1268,13 +1280,13 @@ func (PodSignature) SwaggerDoc() map[string]string { 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", + "volumes": "List of volumes that can be mounted by containers belonging to the pod. More info: http://kubernetes.io/docs/user-guide/volumes", + "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://kubernetes.io/docs/user-guide/containers", + "restartPolicy": "Restart policy for all containers within the pod. One of Always, OnFailure, Never. Default to Always. More info: http://kubernetes.io/docs/user-guide/pod-states#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", + "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://kubernetes.io/docs/user-guide/node-selection/README", "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.", @@ -1282,7 +1294,7 @@ var map_PodSpec = map[string]string{ "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", + "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://kubernetes.io/docs/user-guide/images#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.", } @@ -1293,14 +1305,14 @@ func (PodSpec) SwaggerDoc() map[string]string { 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", + "phase": "Current condition of the pod. More info: http://kubernetes.io/docs/user-guide/pod-states#pod-phase", + "conditions": "Current service state of pod. More info: http://kubernetes.io/docs/user-guide/pod-states#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", + "containerStatuses": "The list has one entry per container in the manifest. Each entry is currently the output of `docker inspect`. More info: http://kubernetes.io/docs/user-guide/pod-states#container-statuses", } func (PodStatus) SwaggerDoc() map[string]string { @@ -1380,8 +1392,8 @@ func (PreferredSchedulingTerm) SwaggerDoc() map[string]string { 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", + "initialDelaySeconds": "Number of seconds after the container has started before liveness probes are initiated. More info: http://kubernetes.io/docs/user-guide/pod-states#container-probes", + "timeoutSeconds": "Number of seconds after which the probe times out. Defaults to 1 second. Minimum value is 1. More info: http://kubernetes.io/docs/user-guide/pod-states#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.", @@ -1408,7 +1420,7 @@ 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", + "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://kubernetes.io/docs/user-guide/volumes#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", @@ -1442,10 +1454,23 @@ func (ReplicationController) SwaggerDoc() map[string]string { return map_ReplicationController } +var map_ReplicationControllerCondition = map[string]string{ + "": "ReplicationControllerCondition describes the state of a replication controller at a certain point.", + "type": "Type of replication controller condition.", + "status": "Status of the condition, one of True, False, Unknown.", + "lastTransitionTime": "The last time the condition transitioned from one status to another.", + "reason": "The reason for the condition's last transition.", + "message": "A human readable message indicating details about the transition.", +} + +func (ReplicationControllerCondition) SwaggerDoc() map[string]string { + return map_ReplicationControllerCondition +} + 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", + "items": "List of replication controllers. More info: http://kubernetes.io/docs/user-guide/replication-controller", } func (ReplicationControllerList) SwaggerDoc() map[string]string { @@ -1453,10 +1478,11 @@ func (ReplicationControllerList) SwaggerDoc() map[string]string { } 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", + "": "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://kubernetes.io/docs/user-guide/replication-controller#what-is-a-replication-controller", + "minReadySeconds": "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)", + "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://kubernetes.io/docs/user-guide/labels#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://kubernetes.io/docs/user-guide/replication-controller#pod-template", } func (ReplicationControllerSpec) SwaggerDoc() map[string]string { @@ -1465,10 +1491,12 @@ func (ReplicationControllerSpec) SwaggerDoc() map[string]string { 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", + "replicas": "Replicas is the most recently oberved number of replicas. More info: http://kubernetes.io/docs/user-guide/replication-controller#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.", + "availableReplicas": "The number of available replicas (ready for at least minReadySeconds) for this replication controller.", "observedGeneration": "ObservedGeneration reflects the generation of the most recently observed replication controller.", + "conditions": "Represents the latest available observations of a replication controller's current state.", } func (ReplicationControllerStatus) SwaggerDoc() map[string]string { @@ -1573,7 +1601,7 @@ func (SecretKeySelector) SwaggerDoc() map[string]string { 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", + "items": "Items is a list of secret objects. More info: http://kubernetes.io/docs/user-guide/secrets", } func (SecretList) SwaggerDoc() map[string]string { @@ -1582,7 +1610,7 @@ 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", + "secretName": "Name of the secret in the pod's namespace to use. More info: http://kubernetes.io/docs/user-guide/volumes#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.", } @@ -1628,8 +1656,8 @@ func (Service) SwaggerDoc() map[string]string { 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", + "secrets": "Secrets is the list of secrets allowed to be used by pods running using this ServiceAccount. More info: http://kubernetes.io/docs/user-guide/secrets", + "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://kubernetes.io/docs/user-guide/secrets#manually-specifying-an-imagepullsecret", } func (ServiceAccount) SwaggerDoc() map[string]string { @@ -1661,8 +1689,8 @@ var map_ServicePort = map[string]string{ "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", + "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://kubernetes.io/docs/user-guide/services#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://kubernetes.io/docs/user-guide/services#type--nodeport", } func (ServicePort) SwaggerDoc() map[string]string { @@ -1680,15 +1708,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": "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", + "ports": "The list of ports that are exposed by this service. More info: http://kubernetes.io/docs/user-guide/services#virtual-ips-and-service-proxies", + "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://kubernetes.io/docs/user-guide/services#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://kubernetes.io/docs/user-guide/services#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://kubernetes.io/docs/user-guide/services#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", + "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://kubernetes.io/docs/user-guide/services#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", + "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://kubernetes.io/docs/user-guide/services-firewalls", "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.", } @@ -1739,7 +1767,7 @@ func (Toleration) SwaggerDoc() map[string]string { 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", + "name": "Volume's name. Must be a DNS_LABEL and unique within the pod. More info: http://kubernetes.io/docs/user-guide/identifiers#names", } func (Volume) SwaggerDoc() map[string]string { @@ -1760,28 +1788,29 @@ func (VolumeMount) SwaggerDoc() map[string]string { 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", + "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://kubernetes.io/docs/user-guide/volumes#hostpath", + "emptyDir": "EmptyDir represents a temporary directory that shares a pod's lifetime. More info: http://kubernetes.io/docs/user-guide/volumes#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://kubernetes.io/docs/user-guide/volumes#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://kubernetes.io/docs/user-guide/volumes#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", + "secret": "Secret represents a secret that should populate this volume. More info: http://kubernetes.io/docs/user-guide/volumes#secrets", + "nfs": "NFS represents an NFS mount on the host that shares a pod's lifetime More info: http://kubernetes.io/docs/user-guide/volumes#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 an 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", - "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.", + "persistentVolumeClaim": "PersistentVolumeClaimVolumeSource represents a reference to a PersistentVolumeClaim in the same namespace. More info: http://kubernetes.io/docs/user-guide/persistent-volumes#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 an 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", + "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.", + "photonPersistentDisk": "PhotonPersistentDisk represents a PhotonController persistent disk attached and mounted on kubelets host machine", } func (VolumeSource) SwaggerDoc() map[string]string { diff --git a/vendor/k8s.io/client-go/1.5/pkg/api/v1/zz_generated.conversion.go b/vendor/k8s.io/client-go/pkg/api/v1/zz_generated.conversion.go similarity index 61% rename from vendor/k8s.io/client-go/1.5/pkg/api/v1/zz_generated.conversion.go rename to vendor/k8s.io/client-go/pkg/api/v1/zz_generated.conversion.go index 7936a9421..6916ae96c 100644 --- a/vendor/k8s.io/client-go/1.5/pkg/api/v1/zz_generated.conversion.go +++ b/vendor/k8s.io/client-go/pkg/api/v1/zz_generated.conversion.go @@ -1,7 +1,7 @@ // +build !ignore_autogenerated /* -Copyright 2016 The Kubernetes Authors. +Copyright 2017 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -21,11 +21,12 @@ limitations under the License. package v1 import ( - api "k8s.io/client-go/1.5/pkg/api" - resource "k8s.io/client-go/1.5/pkg/api/resource" - conversion "k8s.io/client-go/1.5/pkg/conversion" - runtime "k8s.io/client-go/1.5/pkg/runtime" - types "k8s.io/client-go/1.5/pkg/types" + api "k8s.io/client-go/pkg/api" + unversioned "k8s.io/client-go/pkg/api/unversioned" + conversion "k8s.io/client-go/pkg/conversion" + runtime "k8s.io/client-go/pkg/runtime" + types "k8s.io/client-go/pkg/types" + unsafe "unsafe" ) func init() { @@ -228,6 +229,8 @@ func RegisterConversions(scheme *runtime.Scheme) error { Convert_api_PersistentVolumeSpec_To_v1_PersistentVolumeSpec, Convert_v1_PersistentVolumeStatus_To_api_PersistentVolumeStatus, Convert_api_PersistentVolumeStatus_To_v1_PersistentVolumeStatus, + Convert_v1_PhotonPersistentDiskVolumeSource_To_api_PhotonPersistentDiskVolumeSource, + Convert_api_PhotonPersistentDiskVolumeSource_To_v1_PhotonPersistentDiskVolumeSource, Convert_v1_Pod_To_api_Pod, Convert_api_Pod_To_v1_Pod, Convert_v1_PodAffinity_To_api_PodAffinity, @@ -280,6 +283,8 @@ func RegisterConversions(scheme *runtime.Scheme) error { Convert_api_RangeAllocation_To_v1_RangeAllocation, Convert_v1_ReplicationController_To_api_ReplicationController, Convert_api_ReplicationController_To_v1_ReplicationController, + Convert_v1_ReplicationControllerCondition_To_api_ReplicationControllerCondition, + Convert_api_ReplicationControllerCondition_To_v1_ReplicationControllerCondition, Convert_v1_ReplicationControllerList_To_api_ReplicationControllerList, Convert_api_ReplicationControllerList_To_v1_ReplicationControllerList, Convert_v1_ReplicationControllerSpec_To_api_ReplicationControllerSpec, @@ -372,33 +377,9 @@ func Convert_api_AWSElasticBlockStoreVolumeSource_To_v1_AWSElasticBlockStoreVolu } 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 - } + out.NodeAffinity = (*api.NodeAffinity)(unsafe.Pointer(in.NodeAffinity)) + out.PodAffinity = (*api.PodAffinity)(unsafe.Pointer(in.PodAffinity)) + out.PodAntiAffinity = (*api.PodAntiAffinity)(unsafe.Pointer(in.PodAntiAffinity)) return nil } @@ -407,33 +388,9 @@ func Convert_v1_Affinity_To_api_Affinity(in *Affinity, out *api.Affinity, s conv } 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 - } + out.NodeAffinity = (*NodeAffinity)(unsafe.Pointer(in.NodeAffinity)) + out.PodAffinity = (*PodAffinity)(unsafe.Pointer(in.PodAffinity)) + out.PodAntiAffinity = (*PodAntiAffinity)(unsafe.Pointer(in.PodAntiAffinity)) return nil } @@ -462,17 +419,7 @@ func Convert_api_AttachedVolume_To_v1_AttachedVolume(in *api.AttachedVolume, out } 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 - } + out.PreferAvoidPods = *(*[]api.PreferAvoidPodsEntry)(unsafe.Pointer(&in.PreferAvoidPods)) return nil } @@ -481,17 +428,7 @@ func Convert_v1_AvoidPods_To_api_AvoidPods(in *AvoidPods, out *api.AvoidPods, 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 - } + out.PreferAvoidPods = *(*[]PreferAvoidPodsEntry)(unsafe.Pointer(&in.PreferAvoidPods)) return nil } @@ -500,18 +437,11 @@ func Convert_api_AvoidPods_To_v1_AvoidPods(in *api.AvoidPods, out *AvoidPods, 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 + out.CachingMode = (*api.AzureDataDiskCachingMode)(unsafe.Pointer(in.CachingMode)) + out.FSType = (*string)(unsafe.Pointer(in.FSType)) + out.ReadOnly = (*bool)(unsafe.Pointer(in.ReadOnly)) return nil } @@ -522,15 +452,9 @@ func Convert_v1_AzureDiskVolumeSource_To_api_AzureDiskVolumeSource(in *AzureDisk 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 + out.CachingMode = (*AzureDataDiskCachingMode)(unsafe.Pointer(in.CachingMode)) + out.FSType = (*string)(unsafe.Pointer(in.FSType)) + out.ReadOnly = (*bool)(unsafe.Pointer(in.ReadOnly)) return nil } @@ -561,9 +485,6 @@ func Convert_api_AzureFileVolumeSource_To_v1_AzureFileVolumeSource(in *api.Azure } 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 } @@ -578,9 +499,6 @@ func Convert_v1_Binding_To_api_Binding(in *Binding, out *api.Binding, s conversi } 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 } @@ -595,24 +513,8 @@ func Convert_api_Binding_To_v1_Binding(in *api.Binding, out *Binding, s conversi } 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 - } + out.Add = *(*[]api.Capability)(unsafe.Pointer(&in.Add)) + out.Drop = *(*[]api.Capability)(unsafe.Pointer(&in.Drop)) return nil } @@ -621,24 +523,8 @@ func Convert_v1_Capabilities_To_api_Capabilities(in *Capabilities, out *api.Capa } 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 - } + out.Add = *(*[]Capability)(unsafe.Pointer(&in.Add)) + out.Drop = *(*[]Capability)(unsafe.Pointer(&in.Drop)) return nil } @@ -647,19 +533,11 @@ func Convert_api_Capabilities_To_v1_Capabilities(in *api.Capabilities, out *Capa } func autoConvert_v1_CephFSVolumeSource_To_api_CephFSVolumeSource(in *CephFSVolumeSource, out *api.CephFSVolumeSource, s conversion.Scope) error { - out.Monitors = in.Monitors + out.Monitors = *(*[]string)(unsafe.Pointer(&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.SecretRef = (*api.LocalObjectReference)(unsafe.Pointer(in.SecretRef)) out.ReadOnly = in.ReadOnly return nil } @@ -669,19 +547,11 @@ func Convert_v1_CephFSVolumeSource_To_api_CephFSVolumeSource(in *CephFSVolumeSou } func autoConvert_api_CephFSVolumeSource_To_v1_CephFSVolumeSource(in *api.CephFSVolumeSource, out *CephFSVolumeSource, s conversion.Scope) error { - out.Monitors = in.Monitors + out.Monitors = *(*[]string)(unsafe.Pointer(&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.SecretRef = (*LocalObjectReference)(unsafe.Pointer(in.SecretRef)) out.ReadOnly = in.ReadOnly return nil } @@ -737,23 +607,10 @@ func Convert_api_ComponentCondition_To_v1_ComponentCondition(in *api.ComponentCo } 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 - } + out.Conditions = *(*[]api.ComponentCondition)(unsafe.Pointer(&in.Conditions)) return nil } @@ -762,23 +619,10 @@ func Convert_v1_ComponentStatus_To_api_ComponentStatus(in *ComponentStatus, out } 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 - } + out.Conditions = *(*[]ComponentCondition)(unsafe.Pointer(&in.Conditions)) return nil } @@ -787,23 +631,8 @@ func Convert_api_ComponentStatus_To_v1_ComponentStatus(in *api.ComponentStatus, } 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 - } + out.ListMeta = in.ListMeta + out.Items = *(*[]api.ComponentStatus)(unsafe.Pointer(&in.Items)) return nil } @@ -812,23 +641,8 @@ func Convert_v1_ComponentStatusList_To_api_ComponentStatusList(in *ComponentStat } 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 - } + out.ListMeta = in.ListMeta + out.Items = *(*[]ComponentStatus)(unsafe.Pointer(&in.Items)) return nil } @@ -837,14 +651,10 @@ func Convert_api_ComponentStatusList_To_v1_ComponentStatusList(in *api.Component } 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 + out.Data = *(*map[string]string)(unsafe.Pointer(&in.Data)) return nil } @@ -853,13 +663,10 @@ func Convert_v1_ConfigMap_To_api_ConfigMap(in *ConfigMap, out *api.ConfigMap, 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 + out.Data = *(*map[string]string)(unsafe.Pointer(&in.Data)) return nil } @@ -892,23 +699,8 @@ func Convert_api_ConfigMapKeySelector_To_v1_ConfigMapKeySelector(in *api.ConfigM } 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 - } + out.ListMeta = in.ListMeta + out.Items = *(*[]api.ConfigMap)(unsafe.Pointer(&in.Items)) return nil } @@ -917,23 +709,8 @@ func Convert_v1_ConfigMapList_To_api_ConfigMapList(in *ConfigMapList, out *api.C } 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 - } + out.ListMeta = in.ListMeta + out.Items = *(*[]ConfigMap)(unsafe.Pointer(&in.Items)) return nil } @@ -942,22 +719,11 @@ func Convert_api_ConfigMapList_To_v1_ConfigMapList(in *api.ConfigMapList, out *C } func autoConvert_v1_ConfigMapVolumeSource_To_api_ConfigMapVolumeSource(in *ConfigMapVolumeSource, out *api.ConfigMapVolumeSource, s conversion.Scope) error { - SetDefaults_ConfigMapVolumeSource(in) if err := Convert_v1_LocalObjectReference_To_api_LocalObjectReference(&in.LocalObjectReference, &out.LocalObjectReference, s); err != nil { return err } - 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 + out.Items = *(*[]api.KeyToPath)(unsafe.Pointer(&in.Items)) + out.DefaultMode = (*int32)(unsafe.Pointer(in.DefaultMode)) return nil } @@ -969,18 +735,8 @@ func autoConvert_api_ConfigMapVolumeSource_To_v1_ConfigMapVolumeSource(in *api.C 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 + out.Items = *(*[]KeyToPath)(unsafe.Pointer(&in.Items)) + out.DefaultMode = (*int32)(unsafe.Pointer(in.DefaultMode)) return nil } @@ -989,86 +745,23 @@ func Convert_api_ConfigMapVolumeSource_To_v1_ConfigMapVolumeSource(in *api.Confi } 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.Command = *(*[]string)(unsafe.Pointer(&in.Command)) + out.Args = *(*[]string)(unsafe.Pointer(&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 - } + out.Ports = *(*[]api.ContainerPort)(unsafe.Pointer(&in.Ports)) + out.Env = *(*[]api.EnvVar)(unsafe.Pointer(&in.Env)) 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.VolumeMounts = *(*[]api.VolumeMount)(unsafe.Pointer(&in.VolumeMounts)) + out.LivenessProbe = (*api.Probe)(unsafe.Pointer(in.LivenessProbe)) + out.ReadinessProbe = (*api.Probe)(unsafe.Pointer(in.ReadinessProbe)) + out.Lifecycle = (*api.Lifecycle)(unsafe.Pointer(in.Lifecycle)) 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.SecurityContext = (*api.SecurityContext)(unsafe.Pointer(in.SecurityContext)) out.Stdin = in.Stdin out.StdinOnce = in.StdinOnce out.TTY = in.TTY @@ -1082,83 +775,21 @@ func Convert_v1_Container_To_api_Container(in *Container, out *api.Container, 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.Command = *(*[]string)(unsafe.Pointer(&in.Command)) + out.Args = *(*[]string)(unsafe.Pointer(&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 - } + out.Ports = *(*[]ContainerPort)(unsafe.Pointer(&in.Ports)) + out.Env = *(*[]EnvVar)(unsafe.Pointer(&in.Env)) 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.VolumeMounts = *(*[]VolumeMount)(unsafe.Pointer(&in.VolumeMounts)) + out.LivenessProbe = (*Probe)(unsafe.Pointer(in.LivenessProbe)) + out.ReadinessProbe = (*Probe)(unsafe.Pointer(in.ReadinessProbe)) + out.Lifecycle = (*Lifecycle)(unsafe.Pointer(in.Lifecycle)) 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.SecurityContext = (*SecurityContext)(unsafe.Pointer(in.SecurityContext)) out.Stdin = in.Stdin out.StdinOnce = in.StdinOnce out.TTY = in.TTY @@ -1170,7 +801,7 @@ func Convert_api_Container_To_v1_Container(in *api.Container, out *Container, s } func autoConvert_v1_ContainerImage_To_api_ContainerImage(in *ContainerImage, out *api.ContainerImage, s conversion.Scope) error { - out.Names = in.Names + out.Names = *(*[]string)(unsafe.Pointer(&in.Names)) out.SizeBytes = in.SizeBytes return nil } @@ -1180,7 +811,7 @@ func Convert_v1_ContainerImage_To_api_ContainerImage(in *ContainerImage, out *ap } func autoConvert_api_ContainerImage_To_v1_ContainerImage(in *api.ContainerImage, out *ContainerImage, s conversion.Scope) error { - out.Names = in.Names + out.Names = *(*[]string)(unsafe.Pointer(&in.Names)) out.SizeBytes = in.SizeBytes return nil } @@ -1190,7 +821,6 @@ func Convert_api_ContainerImage_To_v1_ContainerImage(in *api.ContainerImage, out } 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 @@ -1217,33 +847,9 @@ func Convert_api_ContainerPort_To_v1_ContainerPort(in *api.ContainerPort, out *C } 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 - } + out.Waiting = (*api.ContainerStateWaiting)(unsafe.Pointer(in.Waiting)) + out.Running = (*api.ContainerStateRunning)(unsafe.Pointer(in.Running)) + out.Terminated = (*api.ContainerStateTerminated)(unsafe.Pointer(in.Terminated)) return nil } @@ -1252,33 +858,9 @@ func Convert_v1_ContainerState_To_api_ContainerState(in *ContainerState, out *ap } 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 - } + out.Waiting = (*ContainerStateWaiting)(unsafe.Pointer(in.Waiting)) + out.Running = (*ContainerStateRunning)(unsafe.Pointer(in.Running)) + out.Terminated = (*ContainerStateTerminated)(unsafe.Pointer(in.Terminated)) return nil } @@ -1287,9 +869,7 @@ func Convert_api_ContainerState_To_v1_ContainerState(in *api.ContainerState, out } 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 - } + out.StartedAt = in.StartedAt return nil } @@ -1298,9 +878,7 @@ func Convert_v1_ContainerStateRunning_To_api_ContainerStateRunning(in *Container } 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 - } + out.StartedAt = in.StartedAt return nil } @@ -1313,12 +891,8 @@ func autoConvert_v1_ContainerStateTerminated_To_api_ContainerStateTerminated(in 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.StartedAt = in.StartedAt + out.FinishedAt = in.FinishedAt out.ContainerID = in.ContainerID return nil } @@ -1332,12 +906,8 @@ func autoConvert_api_ContainerStateTerminated_To_v1_ContainerStateTerminated(in 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.StartedAt = in.StartedAt + out.FinishedAt = in.FinishedAt out.ContainerID = in.ContainerID return nil } @@ -1425,20 +995,9 @@ func Convert_api_DaemonEndpoint_To_v1_DaemonEndpoint(in *api.DaemonEndpoint, out } 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 + out.GracePeriodSeconds = (*int64)(unsafe.Pointer(in.GracePeriodSeconds)) + out.Preconditions = (*api.Preconditions)(unsafe.Pointer(in.Preconditions)) + out.OrphanDependents = (*bool)(unsafe.Pointer(in.OrphanDependents)) return nil } @@ -1447,20 +1006,9 @@ func Convert_v1_DeleteOptions_To_api_DeleteOptions(in *DeleteOptions, out *api.D } 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 + out.GracePeriodSeconds = (*int64)(unsafe.Pointer(in.GracePeriodSeconds)) + out.Preconditions = (*Preconditions)(unsafe.Pointer(in.Preconditions)) + out.OrphanDependents = (*bool)(unsafe.Pointer(in.OrphanDependents)) return nil } @@ -1470,25 +1018,9 @@ func Convert_api_DeleteOptions_To_v1_DeleteOptions(in *api.DeleteOptions, out *D 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 + out.FieldRef = (*api.ObjectFieldSelector)(unsafe.Pointer(in.FieldRef)) + out.ResourceFieldRef = (*api.ResourceFieldSelector)(unsafe.Pointer(in.ResourceFieldRef)) + out.Mode = (*int32)(unsafe.Pointer(in.Mode)) return nil } @@ -1498,25 +1030,9 @@ func Convert_v1_DownwardAPIVolumeFile_To_api_DownwardAPIVolumeFile(in *DownwardA 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 + out.FieldRef = (*ObjectFieldSelector)(unsafe.Pointer(in.FieldRef)) + out.ResourceFieldRef = (*ResourceFieldSelector)(unsafe.Pointer(in.ResourceFieldRef)) + out.Mode = (*int32)(unsafe.Pointer(in.Mode)) return nil } @@ -1525,19 +1041,8 @@ func Convert_api_DownwardAPIVolumeFile_To_v1_DownwardAPIVolumeFile(in *api.Downw } func autoConvert_v1_DownwardAPIVolumeSource_To_api_DownwardAPIVolumeSource(in *DownwardAPIVolumeSource, out *api.DownwardAPIVolumeSource, s conversion.Scope) error { - SetDefaults_DownwardAPIVolumeSource(in) - if in.Items != nil { - in, out := &in.Items, &out.Items - *out = make([]api.DownwardAPIVolumeFile, len(*in)) - 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 + out.Items = *(*[]api.DownwardAPIVolumeFile)(unsafe.Pointer(&in.Items)) + out.DefaultMode = (*int32)(unsafe.Pointer(in.DefaultMode)) return nil } @@ -1546,18 +1051,8 @@ func Convert_v1_DownwardAPIVolumeSource_To_api_DownwardAPIVolumeSource(in *Downw } 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 + out.Items = *(*[]DownwardAPIVolumeFile)(unsafe.Pointer(&in.Items)) + out.DefaultMode = (*int32)(unsafe.Pointer(in.DefaultMode)) return nil } @@ -1586,16 +1081,8 @@ func Convert_api_EmptyDirVolumeSource_To_v1_EmptyDirVolumeSource(in *api.EmptyDi 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 - } + out.NodeName = (*string)(unsafe.Pointer(in.NodeName)) + out.TargetRef = (*api.ObjectReference)(unsafe.Pointer(in.TargetRef)) return nil } @@ -1606,16 +1093,8 @@ func Convert_v1_EndpointAddress_To_api_EndpointAddress(in *EndpointAddress, out 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 - } + out.NodeName = (*string)(unsafe.Pointer(in.NodeName)) + out.TargetRef = (*ObjectReference)(unsafe.Pointer(in.TargetRef)) return nil } @@ -1646,39 +1125,9 @@ func Convert_api_EndpointPort_To_v1_EndpointPort(in *api.EndpointPort, out *Endp } 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 - } + out.Addresses = *(*[]api.EndpointAddress)(unsafe.Pointer(&in.Addresses)) + out.NotReadyAddresses = *(*[]api.EndpointAddress)(unsafe.Pointer(&in.NotReadyAddresses)) + out.Ports = *(*[]api.EndpointPort)(unsafe.Pointer(&in.Ports)) return nil } @@ -1687,39 +1136,9 @@ func Convert_v1_EndpointSubset_To_api_EndpointSubset(in *EndpointSubset, out *ap } 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 - } + out.Addresses = *(*[]EndpointAddress)(unsafe.Pointer(&in.Addresses)) + out.NotReadyAddresses = *(*[]EndpointAddress)(unsafe.Pointer(&in.NotReadyAddresses)) + out.Ports = *(*[]EndpointPort)(unsafe.Pointer(&in.Ports)) return nil } @@ -1728,24 +1147,10 @@ func Convert_api_EndpointSubset_To_v1_EndpointSubset(in *api.EndpointSubset, out } 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 - } + out.Subsets = *(*[]api.EndpointSubset)(unsafe.Pointer(&in.Subsets)) return nil } @@ -1754,23 +1159,10 @@ func Convert_v1_Endpoints_To_api_Endpoints(in *Endpoints, out *api.Endpoints, 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 - } + out.Subsets = *(*[]EndpointSubset)(unsafe.Pointer(&in.Subsets)) return nil } @@ -1779,23 +1171,8 @@ func Convert_api_Endpoints_To_v1_Endpoints(in *api.Endpoints, out *Endpoints, 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 - } + out.ListMeta = in.ListMeta + out.Items = *(*[]api.Endpoints)(unsafe.Pointer(&in.Items)) return nil } @@ -1804,23 +1181,8 @@ func Convert_v1_EndpointsList_To_api_EndpointsList(in *EndpointsList, out *api.E } 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 - } + out.ListMeta = in.ListMeta + out.Items = *(*[]Endpoints)(unsafe.Pointer(&in.Items)) return nil } @@ -1831,15 +1193,7 @@ func Convert_api_EndpointsList_To_v1_EndpointsList(in *api.EndpointsList, out *E 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 - } + out.ValueFrom = (*api.EnvVarSource)(unsafe.Pointer(in.ValueFrom)) return nil } @@ -1850,15 +1204,7 @@ func Convert_v1_EnvVar_To_api_EnvVar(in *EnvVar, out *api.EnvVar, s conversion.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 - } + out.ValueFrom = (*EnvVarSource)(unsafe.Pointer(in.ValueFrom)) return nil } @@ -1867,42 +1213,10 @@ func Convert_api_EnvVar_To_v1_EnvVar(in *api.EnvVar, out *EnvVar, s conversion.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 - } + out.FieldRef = (*api.ObjectFieldSelector)(unsafe.Pointer(in.FieldRef)) + out.ResourceFieldRef = (*api.ResourceFieldSelector)(unsafe.Pointer(in.ResourceFieldRef)) + out.ConfigMapKeyRef = (*api.ConfigMapKeySelector)(unsafe.Pointer(in.ConfigMapKeyRef)) + out.SecretKeyRef = (*api.SecretKeySelector)(unsafe.Pointer(in.SecretKeyRef)) return nil } @@ -1911,42 +1225,10 @@ func Convert_v1_EnvVarSource_To_api_EnvVarSource(in *EnvVarSource, out *api.EnvV } 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 - } + out.FieldRef = (*ObjectFieldSelector)(unsafe.Pointer(in.FieldRef)) + out.ResourceFieldRef = (*ResourceFieldSelector)(unsafe.Pointer(in.ResourceFieldRef)) + out.ConfigMapKeyRef = (*ConfigMapKeySelector)(unsafe.Pointer(in.ConfigMapKeyRef)) + out.SecretKeyRef = (*SecretKeySelector)(unsafe.Pointer(in.SecretKeyRef)) return nil } @@ -1955,9 +1237,6 @@ func Convert_api_EnvVarSource_To_v1_EnvVarSource(in *api.EnvVarSource, out *EnvV } 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 } @@ -1969,12 +1248,8 @@ func autoConvert_v1_Event_To_api_Event(in *Event, out *api.Event, s conversion.S 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.FirstTimestamp = in.FirstTimestamp + out.LastTimestamp = in.LastTimestamp out.Count = in.Count out.Type = in.Type return nil @@ -1985,9 +1260,6 @@ func Convert_v1_Event_To_api_Event(in *Event, out *api.Event, s conversion.Scope } 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 } @@ -1999,12 +1271,8 @@ func autoConvert_api_Event_To_v1_Event(in *api.Event, out *Event, s conversion.S 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.FirstTimestamp = in.FirstTimestamp + out.LastTimestamp = in.LastTimestamp out.Count = in.Count out.Type = in.Type return nil @@ -2015,23 +1283,8 @@ func Convert_api_Event_To_v1_Event(in *api.Event, out *Event, s conversion.Scope } 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 - } + out.ListMeta = in.ListMeta + out.Items = *(*[]api.Event)(unsafe.Pointer(&in.Items)) return nil } @@ -2040,23 +1293,8 @@ func Convert_v1_EventList_To_api_EventList(in *EventList, out *api.EventList, 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 - } + out.ListMeta = in.ListMeta + out.Items = *(*[]Event)(unsafe.Pointer(&in.Items)) return nil } @@ -2085,7 +1323,7 @@ func Convert_api_EventSource_To_v1_EventSource(in *api.EventSource, out *EventSo } func autoConvert_v1_ExecAction_To_api_ExecAction(in *ExecAction, out *api.ExecAction, s conversion.Scope) error { - out.Command = in.Command + out.Command = *(*[]string)(unsafe.Pointer(&in.Command)) return nil } @@ -2094,7 +1332,7 @@ func Convert_v1_ExecAction_To_api_ExecAction(in *ExecAction, out *api.ExecAction } func autoConvert_api_ExecAction_To_v1_ExecAction(in *api.ExecAction, out *ExecAction, s conversion.Scope) error { - out.Command = in.Command + out.Command = *(*[]string)(unsafe.Pointer(&in.Command)) return nil } @@ -2103,9 +1341,6 @@ func Convert_api_ExecAction_To_v1_ExecAction(in *api.ExecAction, out *ExecAction } 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 @@ -2116,9 +1351,6 @@ func Convert_v1_ExportOptions_To_api_ExportOptions(in *ExportOptions, out *api.E } 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 @@ -2129,8 +1361,8 @@ func Convert_api_ExportOptions_To_v1_ExportOptions(in *api.ExportOptions, out *E } 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.TargetWWNs = *(*[]string)(unsafe.Pointer(&in.TargetWWNs)) + out.Lun = (*int32)(unsafe.Pointer(in.Lun)) out.FSType = in.FSType out.ReadOnly = in.ReadOnly return nil @@ -2141,8 +1373,8 @@ func Convert_v1_FCVolumeSource_To_api_FCVolumeSource(in *FCVolumeSource, out *ap } 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.TargetWWNs = *(*[]string)(unsafe.Pointer(&in.TargetWWNs)) + out.Lun = (*int32)(unsafe.Pointer(in.Lun)) out.FSType = in.FSType out.ReadOnly = in.ReadOnly return nil @@ -2155,17 +1387,9 @@ func Convert_api_FCVolumeSource_To_v1_FCVolumeSource(in *api.FCVolumeSource, out 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.SecretRef = (*api.LocalObjectReference)(unsafe.Pointer(in.SecretRef)) out.ReadOnly = in.ReadOnly - out.Options = in.Options + out.Options = *(*map[string]string)(unsafe.Pointer(&in.Options)) return nil } @@ -2176,17 +1400,9 @@ func Convert_v1_FlexVolumeSource_To_api_FlexVolumeSource(in *FlexVolumeSource, o 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.SecretRef = (*LocalObjectReference)(unsafe.Pointer(in.SecretRef)) out.ReadOnly = in.ReadOnly - out.Options = in.Options + out.Options = *(*map[string]string)(unsafe.Pointer(&in.Options)) return nil } @@ -2196,6 +1412,7 @@ func Convert_api_FlexVolumeSource_To_v1_FlexVolumeSource(in *api.FlexVolumeSourc func autoConvert_v1_FlockerVolumeSource_To_api_FlockerVolumeSource(in *FlockerVolumeSource, out *api.FlockerVolumeSource, s conversion.Scope) error { out.DatasetName = in.DatasetName + out.DatasetUUID = in.DatasetUUID return nil } @@ -2205,6 +1422,7 @@ func Convert_v1_FlockerVolumeSource_To_api_FlockerVolumeSource(in *FlockerVolume func autoConvert_api_FlockerVolumeSource_To_v1_FlockerVolumeSource(in *api.FlockerVolumeSource, out *FlockerVolumeSource, s conversion.Scope) error { out.DatasetName = in.DatasetName + out.DatasetUUID = in.DatasetUUID return nil } @@ -2281,24 +1499,11 @@ func Convert_api_GlusterfsVolumeSource_To_v1_GlusterfsVolumeSource(in *api.Glust } 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.Port = in.Port 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 - } + out.HTTPHeaders = *(*[]api.HTTPHeader)(unsafe.Pointer(&in.HTTPHeaders)) return nil } @@ -2308,22 +1513,10 @@ func Convert_v1_HTTPGetAction_To_api_HTTPGetAction(in *HTTPGetAction, out *api.H 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.Port = in.Port 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 - } + out.HTTPHeaders = *(*[]HTTPHeader)(unsafe.Pointer(&in.HTTPHeaders)) return nil } @@ -2352,33 +1545,9 @@ func Convert_api_HTTPHeader_To_v1_HTTPHeader(in *api.HTTPHeader, out *HTTPHeader } 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 - } + out.Exec = (*api.ExecAction)(unsafe.Pointer(in.Exec)) + out.HTTPGet = (*api.HTTPGetAction)(unsafe.Pointer(in.HTTPGet)) + out.TCPSocket = (*api.TCPSocketAction)(unsafe.Pointer(in.TCPSocket)) return nil } @@ -2387,33 +1556,9 @@ func Convert_v1_Handler_To_api_Handler(in *Handler, out *api.Handler, s conversi } 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 - } + out.Exec = (*ExecAction)(unsafe.Pointer(in.Exec)) + out.HTTPGet = (*HTTPGetAction)(unsafe.Pointer(in.HTTPGet)) + out.TCPSocket = (*TCPSocketAction)(unsafe.Pointer(in.TCPSocket)) return nil } @@ -2440,7 +1585,6 @@ func Convert_api_HostPathVolumeSource_To_v1_HostPathVolumeSource(in *api.HostPat } 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 @@ -2471,7 +1615,7 @@ func Convert_api_ISCSIVolumeSource_To_v1_ISCSIVolumeSource(in *api.ISCSIVolumeSo func autoConvert_v1_KeyToPath_To_api_KeyToPath(in *KeyToPath, out *api.KeyToPath, s conversion.Scope) error { out.Key = in.Key out.Path = in.Path - out.Mode = in.Mode + out.Mode = (*int32)(unsafe.Pointer(in.Mode)) return nil } @@ -2482,7 +1626,7 @@ func Convert_v1_KeyToPath_To_api_KeyToPath(in *KeyToPath, out *api.KeyToPath, s func autoConvert_api_KeyToPath_To_v1_KeyToPath(in *api.KeyToPath, out *KeyToPath, s conversion.Scope) error { out.Key = in.Key out.Path = in.Path - out.Mode = in.Mode + out.Mode = (*int32)(unsafe.Pointer(in.Mode)) return nil } @@ -2491,24 +1635,8 @@ func Convert_api_KeyToPath_To_v1_KeyToPath(in *api.KeyToPath, out *KeyToPath, 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 - } + out.PostStart = (*api.Handler)(unsafe.Pointer(in.PostStart)) + out.PreStop = (*api.Handler)(unsafe.Pointer(in.PreStop)) return nil } @@ -2517,24 +1645,8 @@ func Convert_v1_Lifecycle_To_api_Lifecycle(in *Lifecycle, out *api.Lifecycle, 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 - } + out.PostStart = (*Handler)(unsafe.Pointer(in.PostStart)) + out.PreStop = (*Handler)(unsafe.Pointer(in.PreStop)) return nil } @@ -2543,9 +1655,6 @@ func Convert_api_Lifecycle_To_v1_Lifecycle(in *api.Lifecycle, out *Lifecycle, 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 } @@ -2560,9 +1669,6 @@ func Convert_v1_LimitRange_To_api_LimitRange(in *LimitRange, out *api.LimitRange } 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 } @@ -2577,23 +1683,12 @@ func Convert_api_LimitRange_To_v1_LimitRange(in *api.LimitRange, out *LimitRange } 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 - } + out.Max = *(*api.ResourceList)(unsafe.Pointer(&in.Max)) + out.Min = *(*api.ResourceList)(unsafe.Pointer(&in.Min)) + out.Default = *(*api.ResourceList)(unsafe.Pointer(&in.Default)) + out.DefaultRequest = *(*api.ResourceList)(unsafe.Pointer(&in.DefaultRequest)) + out.MaxLimitRequestRatio = *(*api.ResourceList)(unsafe.Pointer(&in.MaxLimitRequestRatio)) return nil } @@ -2603,71 +1698,11 @@ func Convert_v1_LimitRangeItem_To_api_LimitRangeItem(in *LimitRangeItem, out *ap 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 - } + out.Max = *(*ResourceList)(unsafe.Pointer(&in.Max)) + out.Min = *(*ResourceList)(unsafe.Pointer(&in.Min)) + out.Default = *(*ResourceList)(unsafe.Pointer(&in.Default)) + out.DefaultRequest = *(*ResourceList)(unsafe.Pointer(&in.DefaultRequest)) + out.MaxLimitRequestRatio = *(*ResourceList)(unsafe.Pointer(&in.MaxLimitRequestRatio)) return nil } @@ -2676,23 +1711,8 @@ func Convert_api_LimitRangeItem_To_v1_LimitRangeItem(in *api.LimitRangeItem, out } 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 - } + out.ListMeta = in.ListMeta + out.Items = *(*[]api.LimitRange)(unsafe.Pointer(&in.Items)) return nil } @@ -2701,23 +1721,8 @@ func Convert_v1_LimitRangeList_To_api_LimitRangeList(in *LimitRangeList, out *ap } 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 - } + out.ListMeta = in.ListMeta + out.Items = *(*[]LimitRange)(unsafe.Pointer(&in.Items)) return nil } @@ -2726,17 +1731,7 @@ func Convert_api_LimitRangeList_To_v1_LimitRangeList(in *api.LimitRangeList, out } 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 - } + out.Limits = *(*[]api.LimitRangeItem)(unsafe.Pointer(&in.Limits)) return nil } @@ -2745,17 +1740,7 @@ func Convert_v1_LimitRangeSpec_To_api_LimitRangeSpec(in *LimitRangeSpec, out *ap } 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 - } + out.Limits = *(*[]LimitRangeItem)(unsafe.Pointer(&in.Limits)) return nil } @@ -2764,12 +1749,7 @@ func Convert_api_LimitRangeSpec_To_v1_LimitRangeSpec(in *api.LimitRangeSpec, out } 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 - } + out.ListMeta = in.ListMeta if in.Items != nil { in, out := &in.Items, &out.Items *out = make([]runtime.Object, len(*in)) @@ -2789,12 +1769,7 @@ func Convert_v1_List_To_api_List(in *List, out *api.List, s conversion.Scope) er } 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 - } + out.ListMeta = in.ListMeta if in.Items != nil { in, out := &in.Items, &out.Items *out = make([]runtime.RawExtension, len(*in)) @@ -2814,9 +1789,6 @@ func Convert_api_List_To_v1_List(in *api.List, out *List, s conversion.Scope) er } 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 } @@ -2825,7 +1797,7 @@ func autoConvert_v1_ListOptions_To_api_ListOptions(in *ListOptions, out *api.Lis } out.Watch = in.Watch out.ResourceVersion = in.ResourceVersion - out.TimeoutSeconds = in.TimeoutSeconds + out.TimeoutSeconds = (*int64)(unsafe.Pointer(in.TimeoutSeconds)) return nil } @@ -2834,9 +1806,6 @@ func Convert_v1_ListOptions_To_api_ListOptions(in *ListOptions, out *api.ListOpt } 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 } @@ -2845,7 +1814,7 @@ func autoConvert_api_ListOptions_To_v1_ListOptions(in *api.ListOptions, out *Lis } out.Watch = in.Watch out.ResourceVersion = in.ResourceVersion - out.TimeoutSeconds = in.TimeoutSeconds + out.TimeoutSeconds = (*int64)(unsafe.Pointer(in.TimeoutSeconds)) return nil } @@ -2874,17 +1843,7 @@ func Convert_api_LoadBalancerIngress_To_v1_LoadBalancerIngress(in *api.LoadBalan } 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 - } + out.Ingress = *(*[]api.LoadBalancerIngress)(unsafe.Pointer(&in.Ingress)) return nil } @@ -2893,17 +1852,7 @@ func Convert_v1_LoadBalancerStatus_To_api_LoadBalancerStatus(in *LoadBalancerSta } 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 - } + out.Ingress = *(*[]LoadBalancerIngress)(unsafe.Pointer(&in.Ingress)) return nil } @@ -2952,9 +1901,6 @@ func Convert_api_NFSVolumeSource_To_v1_NFSVolumeSource(in *api.NFSVolumeSource, } 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 } @@ -2972,9 +1918,6 @@ func Convert_v1_Namespace_To_api_Namespace(in *Namespace, out *api.Namespace, 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 } @@ -2992,23 +1935,8 @@ func Convert_api_Namespace_To_v1_Namespace(in *api.Namespace, out *Namespace, 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 - } + out.ListMeta = in.ListMeta + out.Items = *(*[]api.Namespace)(unsafe.Pointer(&in.Items)) return nil } @@ -3017,23 +1945,8 @@ func Convert_v1_NamespaceList_To_api_NamespaceList(in *NamespaceList, out *api.N } 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 - } + out.ListMeta = in.ListMeta + out.Items = *(*[]Namespace)(unsafe.Pointer(&in.Items)) return nil } @@ -3042,15 +1955,7 @@ func Convert_api_NamespaceList_To_v1_NamespaceList(in *api.NamespaceList, out *N } 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 - } + out.Finalizers = *(*[]api.FinalizerName)(unsafe.Pointer(&in.Finalizers)) return nil } @@ -3059,15 +1964,7 @@ func Convert_v1_NamespaceSpec_To_api_NamespaceSpec(in *NamespaceSpec, out *api.N } 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 - } + out.Finalizers = *(*[]FinalizerName)(unsafe.Pointer(&in.Finalizers)) return nil } @@ -3076,7 +1973,6 @@ func Convert_api_NamespaceSpec_To_v1_NamespaceSpec(in *api.NamespaceSpec, out *N } 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 } @@ -3095,10 +1991,6 @@ func Convert_api_NamespaceStatus_To_v1_NamespaceStatus(in *api.NamespaceStatus, } 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 } @@ -3116,9 +2008,6 @@ func Convert_v1_Node_To_api_Node(in *Node, out *api.Node, s conversion.Scope) er } 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 } @@ -3156,26 +2045,8 @@ func Convert_api_NodeAddress_To_v1_NodeAddress(in *api.NodeAddress, out *NodeAdd } 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 - } + out.RequiredDuringSchedulingIgnoredDuringExecution = (*api.NodeSelector)(unsafe.Pointer(in.RequiredDuringSchedulingIgnoredDuringExecution)) + out.PreferredDuringSchedulingIgnoredDuringExecution = *(*[]api.PreferredSchedulingTerm)(unsafe.Pointer(&in.PreferredDuringSchedulingIgnoredDuringExecution)) return nil } @@ -3184,26 +2055,8 @@ func Convert_v1_NodeAffinity_To_api_NodeAffinity(in *NodeAffinity, out *api.Node } 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 - } + out.RequiredDuringSchedulingIgnoredDuringExecution = (*NodeSelector)(unsafe.Pointer(in.RequiredDuringSchedulingIgnoredDuringExecution)) + out.PreferredDuringSchedulingIgnoredDuringExecution = *(*[]PreferredSchedulingTerm)(unsafe.Pointer(&in.PreferredDuringSchedulingIgnoredDuringExecution)) return nil } @@ -3214,12 +2067,8 @@ func Convert_api_NodeAffinity_To_v1_NodeAffinity(in *api.NodeAffinity, out *Node 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.LastHeartbeatTime = in.LastHeartbeatTime + out.LastTransitionTime = in.LastTransitionTime out.Reason = in.Reason out.Message = in.Message return nil @@ -3232,12 +2081,8 @@ func Convert_v1_NodeCondition_To_api_NodeCondition(in *NodeCondition, out *api.N 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.LastHeartbeatTime = in.LastHeartbeatTime + out.LastTransitionTime = in.LastTransitionTime out.Reason = in.Reason out.Message = in.Message return nil @@ -3270,23 +2115,8 @@ func Convert_api_NodeDaemonEndpoints_To_v1_NodeDaemonEndpoints(in *api.NodeDaemo } 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 - } + out.ListMeta = in.ListMeta + out.Items = *(*[]api.Node)(unsafe.Pointer(&in.Items)) return nil } @@ -3295,23 +2125,8 @@ func Convert_v1_NodeList_To_api_NodeList(in *NodeList, out *api.NodeList, s conv } 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 - } + out.ListMeta = in.ListMeta + out.Items = *(*[]Node)(unsafe.Pointer(&in.Items)) return nil } @@ -3320,9 +2135,6 @@ func Convert_api_NodeList_To_v1_NodeList(in *api.NodeList, out *NodeList, s conv } 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 } @@ -3332,9 +2144,6 @@ func Convert_v1_NodeProxyOptions_To_api_NodeProxyOptions(in *NodeProxyOptions, o } 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 } @@ -3344,17 +2153,7 @@ func Convert_api_NodeProxyOptions_To_v1_NodeProxyOptions(in *api.NodeProxyOption } 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 - } + out.NodeSelectorTerms = *(*[]api.NodeSelectorTerm)(unsafe.Pointer(&in.NodeSelectorTerms)) return nil } @@ -3363,17 +2162,7 @@ func Convert_v1_NodeSelector_To_api_NodeSelector(in *NodeSelector, out *api.Node } 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 - } + out.NodeSelectorTerms = *(*[]NodeSelectorTerm)(unsafe.Pointer(&in.NodeSelectorTerms)) return nil } @@ -3384,7 +2173,7 @@ func Convert_api_NodeSelector_To_v1_NodeSelector(in *api.NodeSelector, out *Node 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 + out.Values = *(*[]string)(unsafe.Pointer(&in.Values)) return nil } @@ -3395,7 +2184,7 @@ func Convert_v1_NodeSelectorRequirement_To_api_NodeSelectorRequirement(in *NodeS 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 + out.Values = *(*[]string)(unsafe.Pointer(&in.Values)) return nil } @@ -3404,17 +2193,7 @@ func Convert_api_NodeSelectorRequirement_To_v1_NodeSelectorRequirement(in *api.N } 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 - } + out.MatchExpressions = *(*[]api.NodeSelectorRequirement)(unsafe.Pointer(&in.MatchExpressions)) return nil } @@ -3423,17 +2202,7 @@ func Convert_v1_NodeSelectorTerm_To_api_NodeSelectorTerm(in *NodeSelectorTerm, o } 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 - } + out.MatchExpressions = *(*[]NodeSelectorRequirement)(unsafe.Pointer(&in.MatchExpressions)) return nil } @@ -3466,73 +2235,20 @@ func Convert_api_NodeSpec_To_v1_NodeSpec(in *api.NodeSpec, out *NodeSpec, s conv } 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.Capacity = *(*api.ResourceList)(unsafe.Pointer(&in.Capacity)) + out.Allocatable = *(*api.ResourceList)(unsafe.Pointer(&in.Allocatable)) 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 - } + out.Conditions = *(*[]api.NodeCondition)(unsafe.Pointer(&in.Conditions)) + out.Addresses = *(*[]api.NodeAddress)(unsafe.Pointer(&in.Addresses)) 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 - } + out.Images = *(*[]api.ContainerImage)(unsafe.Pointer(&in.Images)) + out.VolumesInUse = *(*[]api.UniqueVolumeName)(unsafe.Pointer(&in.VolumesInUse)) + out.VolumesAttached = *(*[]api.AttachedVolume)(unsafe.Pointer(&in.VolumesAttached)) return nil } @@ -3541,92 +2257,20 @@ func Convert_v1_NodeStatus_To_api_NodeStatus(in *NodeStatus, out *api.NodeStatus } 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.Capacity = *(*ResourceList)(unsafe.Pointer(&in.Capacity)) + out.Allocatable = *(*ResourceList)(unsafe.Pointer(&in.Allocatable)) 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 - } + out.Conditions = *(*[]NodeCondition)(unsafe.Pointer(&in.Conditions)) + out.Addresses = *(*[]NodeAddress)(unsafe.Pointer(&in.Addresses)) 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 - } + out.Images = *(*[]ContainerImage)(unsafe.Pointer(&in.Images)) + out.VolumesInUse = *(*[]UniqueVolumeName)(unsafe.Pointer(&in.VolumesInUse)) + out.VolumesAttached = *(*[]AttachedVolume)(unsafe.Pointer(&in.VolumesAttached)) return nil } @@ -3671,7 +2315,6 @@ func Convert_api_NodeSystemInfo_To_v1_NodeSystemInfo(in *api.NodeSystemInfo, out } 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 @@ -3699,25 +2342,13 @@ func autoConvert_v1_ObjectMeta_To_api_ObjectMeta(in *ObjectMeta, out *api.Object 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.CreationTimestamp = in.CreationTimestamp + out.DeletionTimestamp = (*unversioned.Time)(unsafe.Pointer(in.DeletionTimestamp)) + out.DeletionGracePeriodSeconds = (*int64)(unsafe.Pointer(in.DeletionGracePeriodSeconds)) + out.Labels = *(*map[string]string)(unsafe.Pointer(&in.Labels)) + out.Annotations = *(*map[string]string)(unsafe.Pointer(&in.Annotations)) + out.OwnerReferences = *(*[]api.OwnerReference)(unsafe.Pointer(&in.OwnerReferences)) + out.Finalizers = *(*[]string)(unsafe.Pointer(&in.Finalizers)) out.ClusterName = in.ClusterName return nil } @@ -3734,25 +2365,13 @@ func autoConvert_api_ObjectMeta_To_v1_ObjectMeta(in *api.ObjectMeta, out *Object 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.CreationTimestamp = in.CreationTimestamp + out.DeletionTimestamp = (*unversioned.Time)(unsafe.Pointer(in.DeletionTimestamp)) + out.DeletionGracePeriodSeconds = (*int64)(unsafe.Pointer(in.DeletionGracePeriodSeconds)) + out.Labels = *(*map[string]string)(unsafe.Pointer(&in.Labels)) + out.Annotations = *(*map[string]string)(unsafe.Pointer(&in.Annotations)) + out.OwnerReferences = *(*[]OwnerReference)(unsafe.Pointer(&in.OwnerReferences)) + out.Finalizers = *(*[]string)(unsafe.Pointer(&in.Finalizers)) out.ClusterName = in.ClusterName return nil } @@ -3796,7 +2415,7 @@ func autoConvert_v1_OwnerReference_To_api_OwnerReference(in *OwnerReference, out out.Kind = in.Kind out.Name = in.Name out.UID = types.UID(in.UID) - out.Controller = in.Controller + out.Controller = (*bool)(unsafe.Pointer(in.Controller)) return nil } @@ -3809,7 +2428,7 @@ func autoConvert_api_OwnerReference_To_v1_OwnerReference(in *api.OwnerReference, out.Kind = in.Kind out.Name = in.Name out.UID = types.UID(in.UID) - out.Controller = in.Controller + out.Controller = (*bool)(unsafe.Pointer(in.Controller)) return nil } @@ -3818,10 +2437,6 @@ func Convert_api_OwnerReference_To_v1_OwnerReference(in *api.OwnerReference, out } 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 } @@ -3839,9 +2454,6 @@ func Convert_v1_PersistentVolume_To_api_PersistentVolume(in *PersistentVolume, o } 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 } @@ -3859,10 +2471,6 @@ func Convert_api_PersistentVolume_To_v1_PersistentVolume(in *api.PersistentVolum } 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 } @@ -3880,9 +2488,6 @@ func Convert_v1_PersistentVolumeClaim_To_api_PersistentVolumeClaim(in *Persisten } 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 } @@ -3900,23 +2505,8 @@ func Convert_api_PersistentVolumeClaim_To_v1_PersistentVolumeClaim(in *api.Persi } 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 - } + out.ListMeta = in.ListMeta + out.Items = *(*[]api.PersistentVolumeClaim)(unsafe.Pointer(&in.Items)) return nil } @@ -3925,23 +2515,8 @@ func Convert_v1_PersistentVolumeClaimList_To_api_PersistentVolumeClaimList(in *P } 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 - } + out.ListMeta = in.ListMeta + out.Items = *(*[]PersistentVolumeClaim)(unsafe.Pointer(&in.Items)) return nil } @@ -3950,16 +2525,8 @@ func Convert_api_PersistentVolumeClaimList_To_v1_PersistentVolumeClaimList(in *a } 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 + out.AccessModes = *(*[]api.PersistentVolumeAccessMode)(unsafe.Pointer(&in.AccessModes)) + out.Selector = (*unversioned.LabelSelector)(unsafe.Pointer(in.Selector)) if err := Convert_v1_ResourceRequirements_To_api_ResourceRequirements(&in.Resources, &out.Resources, s); err != nil { return err } @@ -3972,16 +2539,8 @@ func Convert_v1_PersistentVolumeClaimSpec_To_api_PersistentVolumeClaimSpec(in *P } 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 + out.AccessModes = *(*[]PersistentVolumeAccessMode)(unsafe.Pointer(&in.AccessModes)) + out.Selector = (*unversioned.LabelSelector)(unsafe.Pointer(in.Selector)) if err := Convert_api_ResourceRequirements_To_v1_ResourceRequirements(&in.Resources, &out.Resources, s); err != nil { return err } @@ -3995,18 +2554,8 @@ func Convert_api_PersistentVolumeClaimSpec_To_v1_PersistentVolumeClaimSpec(in *a 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 - } + out.AccessModes = *(*[]api.PersistentVolumeAccessMode)(unsafe.Pointer(&in.AccessModes)) + out.Capacity = *(*api.ResourceList)(unsafe.Pointer(&in.Capacity)) return nil } @@ -4016,28 +2565,8 @@ func Convert_v1_PersistentVolumeClaimStatus_To_api_PersistentVolumeClaimStatus(i 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 - } + out.AccessModes = *(*[]PersistentVolumeAccessMode)(unsafe.Pointer(&in.AccessModes)) + out.Capacity = *(*ResourceList)(unsafe.Pointer(&in.Capacity)) return nil } @@ -4066,12 +2595,7 @@ func Convert_api_PersistentVolumeClaimVolumeSource_To_v1_PersistentVolumeClaimVo } 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 - } + out.ListMeta = in.ListMeta if in.Items != nil { in, out := &in.Items, &out.Items *out = make([]api.PersistentVolume, len(*in)) @@ -4091,12 +2615,7 @@ func Convert_v1_PersistentVolumeList_To_api_PersistentVolumeList(in *PersistentV } 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 - } + out.ListMeta = in.ListMeta if in.Items != nil { in, out := &in.Items, &out.Items *out = make([]PersistentVolume, len(*in)) @@ -4116,150 +2635,23 @@ func Convert_api_PersistentVolumeList_To_v1_PersistentVolumeList(in *api.Persist } 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 - } + out.GCEPersistentDisk = (*api.GCEPersistentDiskVolumeSource)(unsafe.Pointer(in.GCEPersistentDisk)) + out.AWSElasticBlockStore = (*api.AWSElasticBlockStoreVolumeSource)(unsafe.Pointer(in.AWSElasticBlockStore)) + out.HostPath = (*api.HostPathVolumeSource)(unsafe.Pointer(in.HostPath)) + out.Glusterfs = (*api.GlusterfsVolumeSource)(unsafe.Pointer(in.Glusterfs)) + out.NFS = (*api.NFSVolumeSource)(unsafe.Pointer(in.NFS)) + out.RBD = (*api.RBDVolumeSource)(unsafe.Pointer(in.RBD)) + out.ISCSI = (*api.ISCSIVolumeSource)(unsafe.Pointer(in.ISCSI)) + out.Cinder = (*api.CinderVolumeSource)(unsafe.Pointer(in.Cinder)) + out.CephFS = (*api.CephFSVolumeSource)(unsafe.Pointer(in.CephFS)) + out.FC = (*api.FCVolumeSource)(unsafe.Pointer(in.FC)) + out.Flocker = (*api.FlockerVolumeSource)(unsafe.Pointer(in.Flocker)) + out.FlexVolume = (*api.FlexVolumeSource)(unsafe.Pointer(in.FlexVolume)) + out.AzureFile = (*api.AzureFileVolumeSource)(unsafe.Pointer(in.AzureFile)) + out.VsphereVolume = (*api.VsphereVirtualDiskVolumeSource)(unsafe.Pointer(in.VsphereVolume)) + out.Quobyte = (*api.QuobyteVolumeSource)(unsafe.Pointer(in.Quobyte)) + out.AzureDisk = (*api.AzureDiskVolumeSource)(unsafe.Pointer(in.AzureDisk)) + out.PhotonPersistentDisk = (*api.PhotonPersistentDiskVolumeSource)(unsafe.Pointer(in.PhotonPersistentDisk)) return nil } @@ -4268,150 +2660,23 @@ func Convert_v1_PersistentVolumeSource_To_api_PersistentVolumeSource(in *Persist } 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 - } + out.GCEPersistentDisk = (*GCEPersistentDiskVolumeSource)(unsafe.Pointer(in.GCEPersistentDisk)) + out.AWSElasticBlockStore = (*AWSElasticBlockStoreVolumeSource)(unsafe.Pointer(in.AWSElasticBlockStore)) + out.HostPath = (*HostPathVolumeSource)(unsafe.Pointer(in.HostPath)) + out.Glusterfs = (*GlusterfsVolumeSource)(unsafe.Pointer(in.Glusterfs)) + out.NFS = (*NFSVolumeSource)(unsafe.Pointer(in.NFS)) + out.RBD = (*RBDVolumeSource)(unsafe.Pointer(in.RBD)) + out.Quobyte = (*QuobyteVolumeSource)(unsafe.Pointer(in.Quobyte)) + out.ISCSI = (*ISCSIVolumeSource)(unsafe.Pointer(in.ISCSI)) + out.FlexVolume = (*FlexVolumeSource)(unsafe.Pointer(in.FlexVolume)) + out.Cinder = (*CinderVolumeSource)(unsafe.Pointer(in.Cinder)) + out.CephFS = (*CephFSVolumeSource)(unsafe.Pointer(in.CephFS)) + out.FC = (*FCVolumeSource)(unsafe.Pointer(in.FC)) + out.Flocker = (*FlockerVolumeSource)(unsafe.Pointer(in.Flocker)) + out.AzureFile = (*AzureFileVolumeSource)(unsafe.Pointer(in.AzureFile)) + out.VsphereVolume = (*VsphereVirtualDiskVolumeSource)(unsafe.Pointer(in.VsphereVolume)) + out.AzureDisk = (*AzureDiskVolumeSource)(unsafe.Pointer(in.AzureDisk)) + out.PhotonPersistentDisk = (*PhotonPersistentDiskVolumeSource)(unsafe.Pointer(in.PhotonPersistentDisk)) return nil } @@ -4420,30 +2685,12 @@ func Convert_api_PersistentVolumeSource_To_v1_PersistentVolumeSource(in *api.Per } 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 - } + out.Capacity = *(*api.ResourceList)(unsafe.Pointer(&in.Capacity)) 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.AccessModes = *(*[]api.PersistentVolumeAccessMode)(unsafe.Pointer(&in.AccessModes)) + out.ClaimRef = (*api.ObjectReference)(unsafe.Pointer(in.ClaimRef)) out.PersistentVolumeReclaimPolicy = api.PersistentVolumeReclaimPolicy(in.PersistentVolumeReclaimPolicy) return nil } @@ -4453,40 +2700,12 @@ func Convert_v1_PersistentVolumeSpec_To_api_PersistentVolumeSpec(in *PersistentV } 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 - } + out.Capacity = *(*ResourceList)(unsafe.Pointer(&in.Capacity)) 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.AccessModes = *(*[]PersistentVolumeAccessMode)(unsafe.Pointer(&in.AccessModes)) + out.ClaimRef = (*ObjectReference)(unsafe.Pointer(in.ClaimRef)) out.PersistentVolumeReclaimPolicy = PersistentVolumeReclaimPolicy(in.PersistentVolumeReclaimPolicy) return nil } @@ -4517,11 +2736,27 @@ func Convert_api_PersistentVolumeStatus_To_v1_PersistentVolumeStatus(in *api.Per return autoConvert_api_PersistentVolumeStatus_To_v1_PersistentVolumeStatus(in, out, s) } +func autoConvert_v1_PhotonPersistentDiskVolumeSource_To_api_PhotonPersistentDiskVolumeSource(in *PhotonPersistentDiskVolumeSource, out *api.PhotonPersistentDiskVolumeSource, s conversion.Scope) error { + out.PdID = in.PdID + out.FSType = in.FSType + return nil +} + +func Convert_v1_PhotonPersistentDiskVolumeSource_To_api_PhotonPersistentDiskVolumeSource(in *PhotonPersistentDiskVolumeSource, out *api.PhotonPersistentDiskVolumeSource, s conversion.Scope) error { + return autoConvert_v1_PhotonPersistentDiskVolumeSource_To_api_PhotonPersistentDiskVolumeSource(in, out, s) +} + +func autoConvert_api_PhotonPersistentDiskVolumeSource_To_v1_PhotonPersistentDiskVolumeSource(in *api.PhotonPersistentDiskVolumeSource, out *PhotonPersistentDiskVolumeSource, s conversion.Scope) error { + out.PdID = in.PdID + out.FSType = in.FSType + return nil +} + +func Convert_api_PhotonPersistentDiskVolumeSource_To_v1_PhotonPersistentDiskVolumeSource(in *api.PhotonPersistentDiskVolumeSource, out *PhotonPersistentDiskVolumeSource, s conversion.Scope) error { + return autoConvert_api_PhotonPersistentDiskVolumeSource_To_v1_PhotonPersistentDiskVolumeSource(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 } @@ -4535,9 +2770,6 @@ func autoConvert_v1_Pod_To_api_Pod(in *Pod, out *api.Pod, s conversion.Scope) er } 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 } @@ -4551,28 +2783,8 @@ func autoConvert_api_Pod_To_v1_Pod(in *api.Pod, out *Pod, s conversion.Scope) er } 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 - } + out.RequiredDuringSchedulingIgnoredDuringExecution = *(*[]api.PodAffinityTerm)(unsafe.Pointer(&in.RequiredDuringSchedulingIgnoredDuringExecution)) + out.PreferredDuringSchedulingIgnoredDuringExecution = *(*[]api.WeightedPodAffinityTerm)(unsafe.Pointer(&in.PreferredDuringSchedulingIgnoredDuringExecution)) return nil } @@ -4581,28 +2793,8 @@ func Convert_v1_PodAffinity_To_api_PodAffinity(in *PodAffinity, out *api.PodAffi } 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 - } + out.RequiredDuringSchedulingIgnoredDuringExecution = *(*[]PodAffinityTerm)(unsafe.Pointer(&in.RequiredDuringSchedulingIgnoredDuringExecution)) + out.PreferredDuringSchedulingIgnoredDuringExecution = *(*[]WeightedPodAffinityTerm)(unsafe.Pointer(&in.PreferredDuringSchedulingIgnoredDuringExecution)) return nil } @@ -4611,8 +2803,8 @@ func Convert_api_PodAffinity_To_v1_PodAffinity(in *api.PodAffinity, out *PodAffi } 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.LabelSelector = (*unversioned.LabelSelector)(unsafe.Pointer(in.LabelSelector)) + out.Namespaces = *(*[]string)(unsafe.Pointer(&in.Namespaces)) out.TopologyKey = in.TopologyKey return nil } @@ -4622,8 +2814,8 @@ func Convert_v1_PodAffinityTerm_To_api_PodAffinityTerm(in *PodAffinityTerm, out } 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.LabelSelector = (*unversioned.LabelSelector)(unsafe.Pointer(in.LabelSelector)) + out.Namespaces = *(*[]string)(unsafe.Pointer(&in.Namespaces)) out.TopologyKey = in.TopologyKey return nil } @@ -4633,28 +2825,8 @@ func Convert_api_PodAffinityTerm_To_v1_PodAffinityTerm(in *api.PodAffinityTerm, } 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 - } + out.RequiredDuringSchedulingIgnoredDuringExecution = *(*[]api.PodAffinityTerm)(unsafe.Pointer(&in.RequiredDuringSchedulingIgnoredDuringExecution)) + out.PreferredDuringSchedulingIgnoredDuringExecution = *(*[]api.WeightedPodAffinityTerm)(unsafe.Pointer(&in.PreferredDuringSchedulingIgnoredDuringExecution)) return nil } @@ -4663,28 +2835,8 @@ func Convert_v1_PodAntiAffinity_To_api_PodAntiAffinity(in *PodAntiAffinity, out } 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 - } + out.RequiredDuringSchedulingIgnoredDuringExecution = *(*[]PodAffinityTerm)(unsafe.Pointer(&in.RequiredDuringSchedulingIgnoredDuringExecution)) + out.PreferredDuringSchedulingIgnoredDuringExecution = *(*[]WeightedPodAffinityTerm)(unsafe.Pointer(&in.PreferredDuringSchedulingIgnoredDuringExecution)) return nil } @@ -4693,10 +2845,6 @@ func Convert_api_PodAntiAffinity_To_v1_PodAntiAffinity(in *api.PodAntiAffinity, } 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 @@ -4710,9 +2858,6 @@ func Convert_v1_PodAttachOptions_To_api_PodAttachOptions(in *PodAttachOptions, o } 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 @@ -4728,12 +2873,8 @@ func Convert_api_PodAttachOptions_To_v1_PodAttachOptions(in *api.PodAttachOption 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.LastProbeTime = in.LastProbeTime + out.LastTransitionTime = in.LastTransitionTime out.Reason = in.Reason out.Message = in.Message return nil @@ -4746,12 +2887,8 @@ func Convert_v1_PodCondition_To_api_PodCondition(in *PodCondition, out *api.PodC 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.LastProbeTime = in.LastProbeTime + out.LastTransitionTime = in.LastTransitionTime out.Reason = in.Reason out.Message = in.Message return nil @@ -4762,16 +2899,12 @@ func Convert_api_PodCondition_To_v1_PodCondition(in *api.PodCondition, out *PodC } 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 + out.Command = *(*[]string)(unsafe.Pointer(&in.Command)) return nil } @@ -4780,15 +2913,12 @@ func Convert_v1_PodExecOptions_To_api_PodExecOptions(in *PodExecOptions, out *ap } 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 + out.Command = *(*[]string)(unsafe.Pointer(&in.Command)) return nil } @@ -4797,12 +2927,7 @@ func Convert_api_PodExecOptions_To_v1_PodExecOptions(in *api.PodExecOptions, out } 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 - } + out.ListMeta = in.ListMeta if in.Items != nil { in, out := &in.Items, &out.Items *out = make([]api.Pod, len(*in)) @@ -4822,12 +2947,7 @@ func Convert_v1_PodList_To_api_PodList(in *PodList, out *api.PodList, s conversi } 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 - } + out.ListMeta = in.ListMeta if in.Items != nil { in, out := &in.Items, &out.Items *out = make([]Pod, len(*in)) @@ -4847,17 +2967,14 @@ func Convert_api_PodList_To_v1_PodList(in *api.PodList, out *PodList, s conversi } 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.SinceSeconds = (*int64)(unsafe.Pointer(in.SinceSeconds)) + out.SinceTime = (*unversioned.Time)(unsafe.Pointer(in.SinceTime)) out.Timestamps = in.Timestamps - out.TailLines = in.TailLines - out.LimitBytes = in.LimitBytes + out.TailLines = (*int64)(unsafe.Pointer(in.TailLines)) + out.LimitBytes = (*int64)(unsafe.Pointer(in.LimitBytes)) return nil } @@ -4866,17 +2983,14 @@ func Convert_v1_PodLogOptions_To_api_PodLogOptions(in *PodLogOptions, out *api.P } 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.SinceSeconds = (*int64)(unsafe.Pointer(in.SinceSeconds)) + out.SinceTime = (*unversioned.Time)(unsafe.Pointer(in.SinceTime)) out.Timestamps = in.Timestamps - out.TailLines = in.TailLines - out.LimitBytes = in.LimitBytes + out.TailLines = (*int64)(unsafe.Pointer(in.TailLines)) + out.LimitBytes = (*int64)(unsafe.Pointer(in.LimitBytes)) return nil } @@ -4885,9 +2999,6 @@ func Convert_api_PodLogOptions_To_v1_PodLogOptions(in *api.PodLogOptions, out *P } 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 } @@ -4897,9 +3008,6 @@ func Convert_v1_PodProxyOptions_To_api_PodProxyOptions(in *PodProxyOptions, out } 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 } @@ -4909,19 +3017,11 @@ func Convert_api_PodProxyOptions_To_v1_PodProxyOptions(in *api.PodProxyOptions, } 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 + out.SELinuxOptions = (*api.SELinuxOptions)(unsafe.Pointer(in.SELinuxOptions)) + out.RunAsUser = (*int64)(unsafe.Pointer(in.RunAsUser)) + out.RunAsNonRoot = (*bool)(unsafe.Pointer(in.RunAsNonRoot)) + out.SupplementalGroups = *(*[]int64)(unsafe.Pointer(&in.SupplementalGroups)) + out.FSGroup = (*int64)(unsafe.Pointer(in.FSGroup)) return nil } @@ -4929,32 +3029,16 @@ func autoConvert_api_PodSecurityContext_To_v1_PodSecurityContext(in *api.PodSecu // INFO: in.HostNetwork opted out of conversion generation // INFO: in.HostPID opted out of conversion generation // INFO: in.HostIPC opted out of conversion generation - 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 + out.SELinuxOptions = (*SELinuxOptions)(unsafe.Pointer(in.SELinuxOptions)) + out.RunAsUser = (*int64)(unsafe.Pointer(in.RunAsUser)) + out.RunAsNonRoot = (*bool)(unsafe.Pointer(in.RunAsNonRoot)) + out.SupplementalGroups = *(*[]int64)(unsafe.Pointer(&in.SupplementalGroups)) + out.FSGroup = (*int64)(unsafe.Pointer(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 - } + out.PodController = (*api.OwnerReference)(unsafe.Pointer(in.PodController)) return nil } @@ -4963,15 +3047,7 @@ func Convert_v1_PodSignature_To_api_PodSignature(in *PodSignature, out *api.PodS } 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 - } + out.PodController = (*OwnerReference)(unsafe.Pointer(in.PodController)) return nil } @@ -4980,7 +3056,6 @@ func Convert_api_PodSignature_To_v1_PodSignature(in *api.PodSignature, out *PodS } 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)) @@ -4992,33 +3067,13 @@ func autoConvert_v1_PodSpec_To_api_PodSpec(in *PodSpec, out *api.PodSpec, s conv } 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.InitContainers = *(*[]api.Container)(unsafe.Pointer(&in.InitContainers)) + out.Containers = *(*[]api.Container)(unsafe.Pointer(&in.Containers)) out.RestartPolicy = api.RestartPolicy(in.RestartPolicy) - out.TerminationGracePeriodSeconds = in.TerminationGracePeriodSeconds - out.ActiveDeadlineSeconds = in.ActiveDeadlineSeconds + out.TerminationGracePeriodSeconds = (*int64)(unsafe.Pointer(in.TerminationGracePeriodSeconds)) + out.ActiveDeadlineSeconds = (*int64)(unsafe.Pointer(in.ActiveDeadlineSeconds)) out.DNSPolicy = api.DNSPolicy(in.DNSPolicy) - out.NodeSelector = in.NodeSelector + out.NodeSelector = *(*map[string]string)(unsafe.Pointer(&in.NodeSelector)) out.ServiceAccountName = in.ServiceAccountName // INFO: in.DeprecatedServiceAccount opted out of conversion generation out.NodeName = in.NodeName @@ -5034,17 +3089,7 @@ func autoConvert_v1_PodSpec_To_api_PodSpec(in *PodSpec, out *api.PodSpec, s conv } 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.ImagePullSecrets = *(*[]api.LocalObjectReference)(unsafe.Pointer(&in.ImagePullSecrets)) out.Hostname = in.Hostname out.Subdomain = in.Subdomain return nil @@ -5062,33 +3107,13 @@ func autoConvert_api_PodSpec_To_v1_PodSpec(in *api.PodSpec, out *PodSpec, s conv } 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.InitContainers = *(*[]Container)(unsafe.Pointer(&in.InitContainers)) + out.Containers = *(*[]Container)(unsafe.Pointer(&in.Containers)) out.RestartPolicy = RestartPolicy(in.RestartPolicy) - out.TerminationGracePeriodSeconds = in.TerminationGracePeriodSeconds - out.ActiveDeadlineSeconds = in.ActiveDeadlineSeconds + out.TerminationGracePeriodSeconds = (*int64)(unsafe.Pointer(in.TerminationGracePeriodSeconds)) + out.ActiveDeadlineSeconds = (*int64)(unsafe.Pointer(in.ActiveDeadlineSeconds)) out.DNSPolicy = DNSPolicy(in.DNSPolicy) - out.NodeSelector = in.NodeSelector + out.NodeSelector = *(*map[string]string)(unsafe.Pointer(&in.NodeSelector)) out.ServiceAccountName = in.ServiceAccountName out.NodeName = in.NodeName if in.SecurityContext != nil { @@ -5100,17 +3125,7 @@ func autoConvert_api_PodSpec_To_v1_PodSpec(in *api.PodSpec, out *PodSpec, s conv } 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.ImagePullSecrets = *(*[]LocalObjectReference)(unsafe.Pointer(&in.ImagePullSecrets)) out.Hostname = in.Hostname out.Subdomain = in.Subdomain return nil @@ -5118,44 +3133,14 @@ func autoConvert_api_PodSpec_To_v1_PodSpec(in *api.PodSpec, out *PodSpec, s conv 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.Conditions = *(*[]api.PodCondition)(unsafe.Pointer(&in.Conditions)) 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 - } + out.StartTime = (*unversioned.Time)(unsafe.Pointer(in.StartTime)) + out.InitContainerStatuses = *(*[]api.ContainerStatus)(unsafe.Pointer(&in.InitContainerStatuses)) + out.ContainerStatuses = *(*[]api.ContainerStatus)(unsafe.Pointer(&in.ContainerStatuses)) return nil } @@ -5165,44 +3150,14 @@ func Convert_v1_PodStatus_To_api_PodStatus(in *PodStatus, out *api.PodStatus, 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.Conditions = *(*[]PodCondition)(unsafe.Pointer(&in.Conditions)) 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 - } + out.StartTime = (*unversioned.Time)(unsafe.Pointer(in.StartTime)) + out.InitContainerStatuses = *(*[]ContainerStatus)(unsafe.Pointer(&in.InitContainerStatuses)) + out.ContainerStatuses = *(*[]ContainerStatus)(unsafe.Pointer(&in.ContainerStatuses)) return nil } @@ -5211,9 +3166,6 @@ func Convert_api_PodStatus_To_v1_PodStatus(in *api.PodStatus, out *PodStatus, 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 } @@ -5224,9 +3176,6 @@ func autoConvert_v1_PodStatusResult_To_api_PodStatusResult(in *PodStatusResult, } 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 } @@ -5237,9 +3186,6 @@ func autoConvert_api_PodStatusResult_To_v1_PodStatusResult(in *api.PodStatusResu } 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 } @@ -5254,9 +3200,6 @@ func Convert_v1_PodTemplate_To_api_PodTemplate(in *PodTemplate, out *api.PodTemp } 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 } @@ -5271,12 +3214,7 @@ func Convert_api_PodTemplate_To_v1_PodTemplate(in *api.PodTemplate, out *PodTemp } 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 - } + out.ListMeta = in.ListMeta if in.Items != nil { in, out := &in.Items, &out.Items *out = make([]api.PodTemplate, len(*in)) @@ -5296,12 +3234,7 @@ func Convert_v1_PodTemplateList_To_api_PodTemplateList(in *PodTemplateList, out } 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 - } + out.ListMeta = in.ListMeta if in.Items != nil { in, out := &in.Items, &out.Items *out = make([]PodTemplate, len(*in)) @@ -5341,7 +3274,7 @@ func autoConvert_api_PodTemplateSpec_To_v1_PodTemplateSpec(in *api.PodTemplateSp } func autoConvert_v1_Preconditions_To_api_Preconditions(in *Preconditions, out *api.Preconditions, s conversion.Scope) error { - out.UID = in.UID + out.UID = (*types.UID)(unsafe.Pointer(in.UID)) return nil } @@ -5350,7 +3283,7 @@ func Convert_v1_Preconditions_To_api_Preconditions(in *Preconditions, out *api.P } func autoConvert_api_Preconditions_To_v1_Preconditions(in *api.Preconditions, out *Preconditions, s conversion.Scope) error { - out.UID = in.UID + out.UID = (*types.UID)(unsafe.Pointer(in.UID)) return nil } @@ -5362,9 +3295,7 @@ func autoConvert_v1_PreferAvoidPodsEntry_To_api_PreferAvoidPodsEntry(in *PreferA 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.EvictionTime = in.EvictionTime out.Reason = in.Reason out.Message = in.Message return nil @@ -5378,9 +3309,7 @@ func autoConvert_api_PreferAvoidPodsEntry_To_v1_PreferAvoidPodsEntry(in *api.Pre 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.EvictionTime = in.EvictionTime out.Reason = in.Reason out.Message = in.Message return nil @@ -5415,7 +3344,6 @@ func Convert_api_PreferredSchedulingTerm_To_v1_PreferredSchedulingTerm(in *api.P } 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 } @@ -5474,22 +3402,13 @@ func Convert_api_QuobyteVolumeSource_To_v1_QuobyteVolumeSource(in *api.QuobyteVo } func autoConvert_v1_RBDVolumeSource_To_api_RBDVolumeSource(in *RBDVolumeSource, out *api.RBDVolumeSource, s conversion.Scope) error { - SetDefaults_RBDVolumeSource(in) - out.CephMonitors = in.CephMonitors + out.CephMonitors = *(*[]string)(unsafe.Pointer(&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.SecretRef = (*api.LocalObjectReference)(unsafe.Pointer(in.SecretRef)) out.ReadOnly = in.ReadOnly return nil } @@ -5499,21 +3418,13 @@ func Convert_v1_RBDVolumeSource_To_api_RBDVolumeSource(in *RBDVolumeSource, out } func autoConvert_api_RBDVolumeSource_To_v1_RBDVolumeSource(in *api.RBDVolumeSource, out *RBDVolumeSource, s conversion.Scope) error { - out.CephMonitors = in.CephMonitors + out.CephMonitors = *(*[]string)(unsafe.Pointer(&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.SecretRef = (*LocalObjectReference)(unsafe.Pointer(in.SecretRef)) out.ReadOnly = in.ReadOnly return nil } @@ -5523,16 +3434,11 @@ func Convert_api_RBDVolumeSource_To_v1_RBDVolumeSource(in *api.RBDVolumeSource, } 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 - } + out.Data = *(*[]byte)(unsafe.Pointer(&in.Data)) return nil } @@ -5541,16 +3447,11 @@ func Convert_v1_RangeAllocation_To_api_RangeAllocation(in *RangeAllocation, out } 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 - } + out.Data = *(*[]byte)(unsafe.Pointer(&in.Data)) return nil } @@ -5559,10 +3460,6 @@ func Convert_api_RangeAllocation_To_v1_RangeAllocation(in *api.RangeAllocation, } 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 } @@ -5580,9 +3477,6 @@ func Convert_v1_ReplicationController_To_api_ReplicationController(in *Replicati } 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 } @@ -5599,13 +3493,34 @@ func Convert_api_ReplicationController_To_v1_ReplicationController(in *api.Repli return autoConvert_api_ReplicationController_To_v1_ReplicationController(in, out, s) } +func autoConvert_v1_ReplicationControllerCondition_To_api_ReplicationControllerCondition(in *ReplicationControllerCondition, out *api.ReplicationControllerCondition, s conversion.Scope) error { + out.Type = api.ReplicationControllerConditionType(in.Type) + out.Status = api.ConditionStatus(in.Status) + out.LastTransitionTime = in.LastTransitionTime + out.Reason = in.Reason + out.Message = in.Message + return nil +} + +func Convert_v1_ReplicationControllerCondition_To_api_ReplicationControllerCondition(in *ReplicationControllerCondition, out *api.ReplicationControllerCondition, s conversion.Scope) error { + return autoConvert_v1_ReplicationControllerCondition_To_api_ReplicationControllerCondition(in, out, s) +} + +func autoConvert_api_ReplicationControllerCondition_To_v1_ReplicationControllerCondition(in *api.ReplicationControllerCondition, out *ReplicationControllerCondition, s conversion.Scope) error { + out.Type = ReplicationControllerConditionType(in.Type) + out.Status = ConditionStatus(in.Status) + out.LastTransitionTime = in.LastTransitionTime + out.Reason = in.Reason + out.Message = in.Message + return nil +} + +func Convert_api_ReplicationControllerCondition_To_v1_ReplicationControllerCondition(in *api.ReplicationControllerCondition, out *ReplicationControllerCondition, s conversion.Scope) error { + return autoConvert_api_ReplicationControllerCondition_To_v1_ReplicationControllerCondition(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 - } + out.ListMeta = in.ListMeta if in.Items != nil { in, out := &in.Items, &out.Items *out = make([]api.ReplicationController, len(*in)) @@ -5625,12 +3540,7 @@ func Convert_v1_ReplicationControllerList_To_api_ReplicationControllerList(in *R } 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 - } + out.ListMeta = in.ListMeta if in.Items != nil { in, out := &in.Items, &out.Items *out = make([]ReplicationController, len(*in)) @@ -5653,7 +3563,8 @@ func autoConvert_v1_ReplicationControllerSpec_To_api_ReplicationControllerSpec(i if err := api.Convert_Pointer_int32_To_int32(&in.Replicas, &out.Replicas, s); err != nil { return err } - out.Selector = in.Selector + out.MinReadySeconds = in.MinReadySeconds + out.Selector = *(*map[string]string)(unsafe.Pointer(&in.Selector)) if in.Template != nil { in, out := &in.Template, &out.Template *out = new(api.PodTemplateSpec) @@ -5670,7 +3581,8 @@ func autoConvert_api_ReplicationControllerSpec_To_v1_ReplicationControllerSpec(i if err := api.Convert_int32_To_Pointer_int32(&in.Replicas, &out.Replicas, s); err != nil { return err } - out.Selector = in.Selector + out.MinReadySeconds = in.MinReadySeconds + out.Selector = *(*map[string]string)(unsafe.Pointer(&in.Selector)) if in.Template != nil { in, out := &in.Template, &out.Template *out = new(PodTemplateSpec) @@ -5687,7 +3599,9 @@ func autoConvert_v1_ReplicationControllerStatus_To_api_ReplicationControllerStat out.Replicas = in.Replicas out.FullyLabeledReplicas = in.FullyLabeledReplicas out.ReadyReplicas = in.ReadyReplicas + out.AvailableReplicas = in.AvailableReplicas out.ObservedGeneration = in.ObservedGeneration + out.Conditions = *(*[]api.ReplicationControllerCondition)(unsafe.Pointer(&in.Conditions)) return nil } @@ -5699,7 +3613,9 @@ func autoConvert_api_ReplicationControllerStatus_To_v1_ReplicationControllerStat out.Replicas = in.Replicas out.FullyLabeledReplicas = in.FullyLabeledReplicas out.ReadyReplicas = in.ReadyReplicas + out.AvailableReplicas = in.AvailableReplicas out.ObservedGeneration = in.ObservedGeneration + out.Conditions = *(*[]ReplicationControllerCondition)(unsafe.Pointer(&in.Conditions)) return nil } @@ -5710,9 +3626,7 @@ func Convert_api_ReplicationControllerStatus_To_v1_ReplicationControllerStatus(i 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 - } + out.Divisor = in.Divisor return nil } @@ -5723,9 +3637,7 @@ func Convert_v1_ResourceFieldSelector_To_api_ResourceFieldSelector(in *ResourceF 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 - } + out.Divisor = in.Divisor return nil } @@ -5734,9 +3646,6 @@ func Convert_api_ResourceFieldSelector_To_v1_ResourceFieldSelector(in *api.Resou } 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 } @@ -5754,9 +3663,6 @@ func Convert_v1_ResourceQuota_To_api_ResourceQuota(in *ResourceQuota, out *api.R } 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 } @@ -5774,23 +3680,8 @@ func Convert_api_ResourceQuota_To_v1_ResourceQuota(in *api.ResourceQuota, out *R } 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 - } + out.ListMeta = in.ListMeta + out.Items = *(*[]api.ResourceQuota)(unsafe.Pointer(&in.Items)) return nil } @@ -5799,23 +3690,8 @@ func Convert_v1_ResourceQuotaList_To_api_ResourceQuotaList(in *ResourceQuotaList } 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 - } + out.ListMeta = in.ListMeta + out.Items = *(*[]ResourceQuota)(unsafe.Pointer(&in.Items)) return nil } @@ -5824,18 +3700,8 @@ func Convert_api_ResourceQuotaList_To_v1_ResourceQuotaList(in *api.ResourceQuota } 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 - } + out.Hard = *(*api.ResourceList)(unsafe.Pointer(&in.Hard)) + out.Scopes = *(*[]api.ResourceQuotaScope)(unsafe.Pointer(&in.Scopes)) return nil } @@ -5844,28 +3710,8 @@ func Convert_v1_ResourceQuotaSpec_To_api_ResourceQuotaSpec(in *ResourceQuotaSpec } 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 - } + out.Hard = *(*ResourceList)(unsafe.Pointer(&in.Hard)) + out.Scopes = *(*[]ResourceQuotaScope)(unsafe.Pointer(&in.Scopes)) return nil } @@ -5874,12 +3720,8 @@ func Convert_api_ResourceQuotaSpec_To_v1_ResourceQuotaSpec(in *api.ResourceQuota } 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 - } + out.Hard = *(*api.ResourceList)(unsafe.Pointer(&in.Hard)) + out.Used = *(*api.ResourceList)(unsafe.Pointer(&in.Used)) return nil } @@ -5888,32 +3730,8 @@ func Convert_v1_ResourceQuotaStatus_To_api_ResourceQuotaStatus(in *ResourceQuota } 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 - } + out.Hard = *(*ResourceList)(unsafe.Pointer(&in.Hard)) + out.Used = *(*ResourceList)(unsafe.Pointer(&in.Used)) return nil } @@ -5922,12 +3740,8 @@ func Convert_api_ResourceQuotaStatus_To_v1_ResourceQuotaStatus(in *api.ResourceQ } 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 - } + out.Limits = *(*api.ResourceList)(unsafe.Pointer(&in.Limits)) + out.Requests = *(*api.ResourceList)(unsafe.Pointer(&in.Requests)) return nil } @@ -5936,32 +3750,8 @@ func Convert_v1_ResourceRequirements_To_api_ResourceRequirements(in *ResourceReq } 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 - } + out.Limits = *(*ResourceList)(unsafe.Pointer(&in.Limits)) + out.Requests = *(*ResourceList)(unsafe.Pointer(&in.Requests)) return nil } @@ -5994,27 +3784,20 @@ func Convert_api_SELinuxOptions_To_v1_SELinuxOptions(in *api.SELinuxOptions, out } 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.Data = *(*map[string][]byte)(unsafe.Pointer(&in.Data)) // INFO: in.StringData opted out of conversion generation 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.Data = *(*map[string][]byte)(unsafe.Pointer(&in.Data)) out.Type = SecretType(in.Type) return nil } @@ -6048,12 +3831,7 @@ func Convert_api_SecretKeySelector_To_v1_SecretKeySelector(in *api.SecretKeySele } 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 - } + out.ListMeta = in.ListMeta if in.Items != nil { in, out := &in.Items, &out.Items *out = make([]api.Secret, len(*in)) @@ -6073,12 +3851,7 @@ func Convert_v1_SecretList_To_api_SecretList(in *SecretList, out *api.SecretList } 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 - } + out.ListMeta = in.ListMeta if in.Items != nil { in, out := &in.Items, &out.Items *out = make([]Secret, len(*in)) @@ -6098,20 +3871,9 @@ func Convert_api_SecretList_To_v1_SecretList(in *api.SecretList, out *SecretList } func autoConvert_v1_SecretVolumeSource_To_api_SecretVolumeSource(in *SecretVolumeSource, out *api.SecretVolumeSource, s conversion.Scope) error { - SetDefaults_SecretVolumeSource(in) out.SecretName = in.SecretName - if in.Items != nil { - in, out := &in.Items, &out.Items - *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 + out.Items = *(*[]api.KeyToPath)(unsafe.Pointer(&in.Items)) + out.DefaultMode = (*int32)(unsafe.Pointer(in.DefaultMode)) return nil } @@ -6121,18 +3883,8 @@ func Convert_v1_SecretVolumeSource_To_api_SecretVolumeSource(in *SecretVolumeSou 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 + out.Items = *(*[]KeyToPath)(unsafe.Pointer(&in.Items)) + out.DefaultMode = (*int32)(unsafe.Pointer(in.DefaultMode)) return nil } @@ -6141,28 +3893,12 @@ func Convert_api_SecretVolumeSource_To_v1_SecretVolumeSource(in *api.SecretVolum } 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 + out.Capabilities = (*api.Capabilities)(unsafe.Pointer(in.Capabilities)) + out.Privileged = (*bool)(unsafe.Pointer(in.Privileged)) + out.SELinuxOptions = (*api.SELinuxOptions)(unsafe.Pointer(in.SELinuxOptions)) + out.RunAsUser = (*int64)(unsafe.Pointer(in.RunAsUser)) + out.RunAsNonRoot = (*bool)(unsafe.Pointer(in.RunAsNonRoot)) + out.ReadOnlyRootFilesystem = (*bool)(unsafe.Pointer(in.ReadOnlyRootFilesystem)) return nil } @@ -6171,28 +3907,12 @@ func Convert_v1_SecurityContext_To_api_SecurityContext(in *SecurityContext, out } 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 + out.Capabilities = (*Capabilities)(unsafe.Pointer(in.Capabilities)) + out.Privileged = (*bool)(unsafe.Pointer(in.Privileged)) + out.SELinuxOptions = (*SELinuxOptions)(unsafe.Pointer(in.SELinuxOptions)) + out.RunAsUser = (*int64)(unsafe.Pointer(in.RunAsUser)) + out.RunAsNonRoot = (*bool)(unsafe.Pointer(in.RunAsNonRoot)) + out.ReadOnlyRootFilesystem = (*bool)(unsafe.Pointer(in.ReadOnlyRootFilesystem)) return nil } @@ -6201,9 +3921,6 @@ func Convert_api_SecurityContext_To_v1_SecurityContext(in *api.SecurityContext, } 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 } @@ -6215,9 +3932,6 @@ func Convert_v1_SerializedReference_To_api_SerializedReference(in *SerializedRef } 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 } @@ -6229,9 +3943,6 @@ func Convert_api_SerializedReference_To_v1_SerializedReference(in *api.Serialize } 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 } @@ -6249,9 +3960,6 @@ func Convert_v1_Service_To_api_Service(in *Service, out *api.Service, s conversi } 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 } @@ -6269,34 +3977,11 @@ func Convert_api_Service_To_v1_Service(in *api.Service, out *Service, s conversi } 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 - } + out.Secrets = *(*[]api.ObjectReference)(unsafe.Pointer(&in.Secrets)) + out.ImagePullSecrets = *(*[]api.LocalObjectReference)(unsafe.Pointer(&in.ImagePullSecrets)) return nil } @@ -6305,34 +3990,11 @@ func Convert_v1_ServiceAccount_To_api_ServiceAccount(in *ServiceAccount, out *ap } 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 - } + out.Secrets = *(*[]ObjectReference)(unsafe.Pointer(&in.Secrets)) + out.ImagePullSecrets = *(*[]LocalObjectReference)(unsafe.Pointer(&in.ImagePullSecrets)) return nil } @@ -6341,23 +4003,8 @@ func Convert_api_ServiceAccount_To_v1_ServiceAccount(in *api.ServiceAccount, out } 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 - } + out.ListMeta = in.ListMeta + out.Items = *(*[]api.ServiceAccount)(unsafe.Pointer(&in.Items)) return nil } @@ -6366,23 +4013,8 @@ func Convert_v1_ServiceAccountList_To_api_ServiceAccountList(in *ServiceAccountL } 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 - } + out.ListMeta = in.ListMeta + out.Items = *(*[]ServiceAccount)(unsafe.Pointer(&in.Items)) return nil } @@ -6391,12 +4023,7 @@ func Convert_api_ServiceAccountList_To_v1_ServiceAccountList(in *api.ServiceAcco } 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 - } + out.ListMeta = in.ListMeta if in.Items != nil { in, out := &in.Items, &out.Items *out = make([]api.Service, len(*in)) @@ -6416,12 +4043,7 @@ func Convert_v1_ServiceList_To_api_ServiceList(in *ServiceList, out *api.Service } 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 - } + out.ListMeta = in.ListMeta if in.Items != nil { in, out := &in.Items, &out.Items *out = make([]Service, len(*in)) @@ -6444,9 +4066,7 @@ func autoConvert_v1_ServicePort_To_api_ServicePort(in *ServicePort, out *api.Ser 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.TargetPort = in.TargetPort out.NodePort = in.NodePort return nil } @@ -6459,9 +4079,7 @@ func autoConvert_api_ServicePort_To_v1_ServicePort(in *api.ServicePort, out *Ser 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.TargetPort = in.TargetPort out.NodePort = in.NodePort return nil } @@ -6471,9 +4089,6 @@ func Convert_api_ServicePort_To_v1_ServicePort(in *api.ServicePort, out *Service } 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 } @@ -6483,9 +4098,6 @@ func Convert_v1_ServiceProxyOptions_To_api_ServiceProxyOptions(in *ServiceProxyO } 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 } @@ -6495,50 +4107,29 @@ func Convert_api_ServiceProxyOptions_To_v1_ServiceProxyOptions(in *api.ServicePr } 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.Ports = *(*[]api.ServicePort)(unsafe.Pointer(&in.Ports)) + out.Selector = *(*map[string]string)(unsafe.Pointer(&in.Selector)) out.ClusterIP = in.ClusterIP out.Type = api.ServiceType(in.Type) - out.ExternalIPs = in.ExternalIPs + out.ExternalIPs = *(*[]string)(unsafe.Pointer(&in.ExternalIPs)) // INFO: in.DeprecatedPublicIPs opted out of conversion generation out.SessionAffinity = api.ServiceAffinity(in.SessionAffinity) out.LoadBalancerIP = in.LoadBalancerIP - out.LoadBalancerSourceRanges = in.LoadBalancerSourceRanges + out.LoadBalancerSourceRanges = *(*[]string)(unsafe.Pointer(&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.Ports = *(*[]ServicePort)(unsafe.Pointer(&in.Ports)) + out.Selector = *(*map[string]string)(unsafe.Pointer(&in.Selector)) out.ClusterIP = in.ClusterIP out.ExternalName = in.ExternalName - out.ExternalIPs = in.ExternalIPs + out.ExternalIPs = *(*[]string)(unsafe.Pointer(&in.ExternalIPs)) out.LoadBalancerIP = in.LoadBalancerIP out.SessionAffinity = ServiceAffinity(in.SessionAffinity) - out.LoadBalancerSourceRanges = in.LoadBalancerSourceRanges + out.LoadBalancerSourceRanges = *(*[]string)(unsafe.Pointer(&in.LoadBalancerSourceRanges)) return nil } @@ -6565,9 +4156,7 @@ func Convert_api_ServiceStatus_To_v1_ServiceStatus(in *api.ServiceStatus, 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 - } + out.Port = in.Port return nil } @@ -6576,9 +4165,7 @@ func Convert_v1_TCPSocketAction_To_api_TCPSocketAction(in *TCPSocketAction, out } 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 - } + out.Port = in.Port return nil } @@ -6633,7 +4220,6 @@ func Convert_api_Toleration_To_v1_Toleration(in *api.Toleration, out *Toleration } 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 @@ -6682,204 +4268,29 @@ func Convert_api_VolumeMount_To_v1_VolumeMount(in *api.VolumeMount, out *VolumeM } 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 - } + out.HostPath = (*api.HostPathVolumeSource)(unsafe.Pointer(in.HostPath)) + out.EmptyDir = (*api.EmptyDirVolumeSource)(unsafe.Pointer(in.EmptyDir)) + out.GCEPersistentDisk = (*api.GCEPersistentDiskVolumeSource)(unsafe.Pointer(in.GCEPersistentDisk)) + out.AWSElasticBlockStore = (*api.AWSElasticBlockStoreVolumeSource)(unsafe.Pointer(in.AWSElasticBlockStore)) + out.GitRepo = (*api.GitRepoVolumeSource)(unsafe.Pointer(in.GitRepo)) + out.Secret = (*api.SecretVolumeSource)(unsafe.Pointer(in.Secret)) + out.NFS = (*api.NFSVolumeSource)(unsafe.Pointer(in.NFS)) + out.ISCSI = (*api.ISCSIVolumeSource)(unsafe.Pointer(in.ISCSI)) + out.Glusterfs = (*api.GlusterfsVolumeSource)(unsafe.Pointer(in.Glusterfs)) + out.PersistentVolumeClaim = (*api.PersistentVolumeClaimVolumeSource)(unsafe.Pointer(in.PersistentVolumeClaim)) + out.RBD = (*api.RBDVolumeSource)(unsafe.Pointer(in.RBD)) + out.FlexVolume = (*api.FlexVolumeSource)(unsafe.Pointer(in.FlexVolume)) + out.Cinder = (*api.CinderVolumeSource)(unsafe.Pointer(in.Cinder)) + out.CephFS = (*api.CephFSVolumeSource)(unsafe.Pointer(in.CephFS)) + out.Flocker = (*api.FlockerVolumeSource)(unsafe.Pointer(in.Flocker)) + out.DownwardAPI = (*api.DownwardAPIVolumeSource)(unsafe.Pointer(in.DownwardAPI)) + out.FC = (*api.FCVolumeSource)(unsafe.Pointer(in.FC)) + out.AzureFile = (*api.AzureFileVolumeSource)(unsafe.Pointer(in.AzureFile)) + out.ConfigMap = (*api.ConfigMapVolumeSource)(unsafe.Pointer(in.ConfigMap)) + out.VsphereVolume = (*api.VsphereVirtualDiskVolumeSource)(unsafe.Pointer(in.VsphereVolume)) + out.Quobyte = (*api.QuobyteVolumeSource)(unsafe.Pointer(in.Quobyte)) + out.AzureDisk = (*api.AzureDiskVolumeSource)(unsafe.Pointer(in.AzureDisk)) + out.PhotonPersistentDisk = (*api.PhotonPersistentDiskVolumeSource)(unsafe.Pointer(in.PhotonPersistentDisk)) return nil } @@ -6888,204 +4299,29 @@ func Convert_v1_VolumeSource_To_api_VolumeSource(in *VolumeSource, out *api.Volu } 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 - } + out.HostPath = (*HostPathVolumeSource)(unsafe.Pointer(in.HostPath)) + out.EmptyDir = (*EmptyDirVolumeSource)(unsafe.Pointer(in.EmptyDir)) + out.GCEPersistentDisk = (*GCEPersistentDiskVolumeSource)(unsafe.Pointer(in.GCEPersistentDisk)) + out.AWSElasticBlockStore = (*AWSElasticBlockStoreVolumeSource)(unsafe.Pointer(in.AWSElasticBlockStore)) + out.GitRepo = (*GitRepoVolumeSource)(unsafe.Pointer(in.GitRepo)) + out.Secret = (*SecretVolumeSource)(unsafe.Pointer(in.Secret)) + out.NFS = (*NFSVolumeSource)(unsafe.Pointer(in.NFS)) + out.ISCSI = (*ISCSIVolumeSource)(unsafe.Pointer(in.ISCSI)) + out.Glusterfs = (*GlusterfsVolumeSource)(unsafe.Pointer(in.Glusterfs)) + out.PersistentVolumeClaim = (*PersistentVolumeClaimVolumeSource)(unsafe.Pointer(in.PersistentVolumeClaim)) + out.RBD = (*RBDVolumeSource)(unsafe.Pointer(in.RBD)) + out.Quobyte = (*QuobyteVolumeSource)(unsafe.Pointer(in.Quobyte)) + out.FlexVolume = (*FlexVolumeSource)(unsafe.Pointer(in.FlexVolume)) + out.Cinder = (*CinderVolumeSource)(unsafe.Pointer(in.Cinder)) + out.CephFS = (*CephFSVolumeSource)(unsafe.Pointer(in.CephFS)) + out.Flocker = (*FlockerVolumeSource)(unsafe.Pointer(in.Flocker)) + out.DownwardAPI = (*DownwardAPIVolumeSource)(unsafe.Pointer(in.DownwardAPI)) + out.FC = (*FCVolumeSource)(unsafe.Pointer(in.FC)) + out.AzureFile = (*AzureFileVolumeSource)(unsafe.Pointer(in.AzureFile)) + out.ConfigMap = (*ConfigMapVolumeSource)(unsafe.Pointer(in.ConfigMap)) + out.VsphereVolume = (*VsphereVirtualDiskVolumeSource)(unsafe.Pointer(in.VsphereVolume)) + out.AzureDisk = (*AzureDiskVolumeSource)(unsafe.Pointer(in.AzureDisk)) + out.PhotonPersistentDisk = (*PhotonPersistentDiskVolumeSource)(unsafe.Pointer(in.PhotonPersistentDisk)) return nil } @@ -7114,7 +4350,7 @@ func Convert_api_VsphereVirtualDiskVolumeSource_To_v1_VsphereVirtualDiskVolumeSo } func autoConvert_v1_WeightedPodAffinityTerm_To_api_WeightedPodAffinityTerm(in *WeightedPodAffinityTerm, out *api.WeightedPodAffinityTerm, s conversion.Scope) error { - out.Weight = int(in.Weight) + out.Weight = in.Weight if err := Convert_v1_PodAffinityTerm_To_api_PodAffinityTerm(&in.PodAffinityTerm, &out.PodAffinityTerm, s); err != nil { return err } @@ -7126,7 +4362,7 @@ func Convert_v1_WeightedPodAffinityTerm_To_api_WeightedPodAffinityTerm(in *Weigh } func autoConvert_api_WeightedPodAffinityTerm_To_v1_WeightedPodAffinityTerm(in *api.WeightedPodAffinityTerm, out *WeightedPodAffinityTerm, s conversion.Scope) error { - out.Weight = int32(in.Weight) + out.Weight = in.Weight if err := Convert_api_PodAffinityTerm_To_v1_PodAffinityTerm(&in.PodAffinityTerm, &out.PodAffinityTerm, s); err != nil { return err } diff --git a/vendor/k8s.io/client-go/1.5/pkg/api/v1/zz_generated.deepcopy.go b/vendor/k8s.io/client-go/pkg/api/v1/zz_generated.deepcopy.go similarity index 98% rename from vendor/k8s.io/client-go/1.5/pkg/api/v1/zz_generated.deepcopy.go rename to vendor/k8s.io/client-go/pkg/api/v1/zz_generated.deepcopy.go index d25a36fe1..3f3c9422c 100644 --- a/vendor/k8s.io/client-go/1.5/pkg/api/v1/zz_generated.deepcopy.go +++ b/vendor/k8s.io/client-go/pkg/api/v1/zz_generated.deepcopy.go @@ -1,7 +1,7 @@ // +build !ignore_autogenerated /* -Copyright 2016 The Kubernetes Authors. +Copyright 2017 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -21,10 +21,10 @@ limitations under the License. package v1 import ( - unversioned "k8s.io/client-go/1.5/pkg/api/unversioned" - conversion "k8s.io/client-go/1.5/pkg/conversion" - runtime "k8s.io/client-go/1.5/pkg/runtime" - types "k8s.io/client-go/1.5/pkg/types" + unversioned "k8s.io/client-go/pkg/api/unversioned" + conversion "k8s.io/client-go/pkg/conversion" + runtime "k8s.io/client-go/pkg/runtime" + types "k8s.io/client-go/pkg/types" reflect "reflect" ) @@ -132,6 +132,7 @@ func RegisterDeepCopies(scheme *runtime.Scheme) error { 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_PhotonPersistentDiskVolumeSource, InType: reflect.TypeOf(&PhotonPersistentDiskVolumeSource{})}, 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{})}, @@ -158,6 +159,7 @@ func RegisterDeepCopies(scheme *runtime.Scheme) error { 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_ReplicationControllerCondition, InType: reflect.TypeOf(&ReplicationControllerCondition{})}, 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{})}, @@ -1150,6 +1152,7 @@ func DeepCopy_v1_FlockerVolumeSource(in interface{}, out interface{}, c *convers in := in.(*FlockerVolumeSource) out := out.(*FlockerVolumeSource) out.DatasetName = in.DatasetName + out.DatasetUUID = in.DatasetUUID return nil } } @@ -2229,6 +2232,13 @@ func DeepCopy_v1_PersistentVolumeSource(in interface{}, out interface{}, c *conv } else { out.AzureDisk = nil } + if in.PhotonPersistentDisk != nil { + in, out := &in.PhotonPersistentDisk, &out.PhotonPersistentDisk + *out = new(PhotonPersistentDiskVolumeSource) + **out = **in + } else { + out.PhotonPersistentDisk = nil + } return nil } } @@ -2281,6 +2291,16 @@ func DeepCopy_v1_PersistentVolumeStatus(in interface{}, out interface{}, c *conv } } +func DeepCopy_v1_PhotonPersistentDiskVolumeSource(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*PhotonPersistentDiskVolumeSource) + out := out.(*PhotonPersistentDiskVolumeSource) + out.PdID = in.PdID + out.FSType = in.FSType + return nil + } +} + func DeepCopy_v1_Pod(in interface{}, out interface{}, c *conversion.Cloner) error { { in := in.(*Pod) @@ -2904,7 +2924,22 @@ func DeepCopy_v1_ReplicationController(in interface{}, out interface{}, c *conve if err := DeepCopy_v1_ReplicationControllerSpec(&in.Spec, &out.Spec, c); err != nil { return err } + if err := DeepCopy_v1_ReplicationControllerStatus(&in.Status, &out.Status, c); err != nil { + return err + } + return nil + } +} + +func DeepCopy_v1_ReplicationControllerCondition(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*ReplicationControllerCondition) + out := out.(*ReplicationControllerCondition) + out.Type = in.Type out.Status = in.Status + out.LastTransitionTime = in.LastTransitionTime.DeepCopy() + out.Reason = in.Reason + out.Message = in.Message return nil } } @@ -2941,6 +2976,7 @@ func DeepCopy_v1_ReplicationControllerSpec(in interface{}, out interface{}, c *c } else { out.Replicas = nil } + out.MinReadySeconds = in.MinReadySeconds if in.Selector != nil { in, out := &in.Selector, &out.Selector *out = make(map[string]string) @@ -2970,7 +3006,19 @@ func DeepCopy_v1_ReplicationControllerStatus(in interface{}, out interface{}, c out.Replicas = in.Replicas out.FullyLabeledReplicas = in.FullyLabeledReplicas out.ReadyReplicas = in.ReadyReplicas + out.AvailableReplicas = in.AvailableReplicas out.ObservedGeneration = in.ObservedGeneration + if in.Conditions != nil { + in, out := &in.Conditions, &out.Conditions + *out = make([]ReplicationControllerCondition, len(*in)) + for i := range *in { + if err := DeepCopy_v1_ReplicationControllerCondition(&(*in)[i], &(*out)[i], c); err != nil { + return err + } + } + } else { + out.Conditions = nil + } return nil } } @@ -3676,6 +3724,13 @@ func DeepCopy_v1_VolumeSource(in interface{}, out interface{}, c *conversion.Clo } else { out.AzureDisk = nil } + if in.PhotonPersistentDisk != nil { + in, out := &in.PhotonPersistentDisk, &out.PhotonPersistentDisk + *out = new(PhotonPersistentDiskVolumeSource) + **out = **in + } else { + out.PhotonPersistentDisk = nil + } return nil } } diff --git a/vendor/k8s.io/client-go/pkg/api/v1/zz_generated.defaults.go b/vendor/k8s.io/client-go/pkg/api/v1/zz_generated.defaults.go new file mode 100644 index 000000000..5a56a19d0 --- /dev/null +++ b/vendor/k8s.io/client-go/pkg/api/v1/zz_generated.defaults.go @@ -0,0 +1,577 @@ +// +build !ignore_autogenerated + +/* +Copyright 2017 The Kubernetes Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT 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 defaulter-gen. Do not edit it manually! + +package v1 + +import ( + runtime "k8s.io/client-go/pkg/runtime" +) + +// RegisterDefaults adds defaulters functions to the given scheme. +// Public to allow building arbitrary schemes. +// All generated defaulters are covering - they call all nested defaulters. +func RegisterDefaults(scheme *runtime.Scheme) error { + scheme.AddTypeDefaultingFunc(&ConfigMap{}, func(obj interface{}) { SetObjectDefaults_ConfigMap(obj.(*ConfigMap)) }) + scheme.AddTypeDefaultingFunc(&ConfigMapList{}, func(obj interface{}) { SetObjectDefaults_ConfigMapList(obj.(*ConfigMapList)) }) + scheme.AddTypeDefaultingFunc(&Endpoints{}, func(obj interface{}) { SetObjectDefaults_Endpoints(obj.(*Endpoints)) }) + scheme.AddTypeDefaultingFunc(&EndpointsList{}, func(obj interface{}) { SetObjectDefaults_EndpointsList(obj.(*EndpointsList)) }) + scheme.AddTypeDefaultingFunc(&LimitRange{}, func(obj interface{}) { SetObjectDefaults_LimitRange(obj.(*LimitRange)) }) + scheme.AddTypeDefaultingFunc(&LimitRangeList{}, func(obj interface{}) { SetObjectDefaults_LimitRangeList(obj.(*LimitRangeList)) }) + scheme.AddTypeDefaultingFunc(&Namespace{}, func(obj interface{}) { SetObjectDefaults_Namespace(obj.(*Namespace)) }) + scheme.AddTypeDefaultingFunc(&NamespaceList{}, func(obj interface{}) { SetObjectDefaults_NamespaceList(obj.(*NamespaceList)) }) + scheme.AddTypeDefaultingFunc(&Node{}, func(obj interface{}) { SetObjectDefaults_Node(obj.(*Node)) }) + scheme.AddTypeDefaultingFunc(&NodeList{}, func(obj interface{}) { SetObjectDefaults_NodeList(obj.(*NodeList)) }) + scheme.AddTypeDefaultingFunc(&PersistentVolume{}, func(obj interface{}) { SetObjectDefaults_PersistentVolume(obj.(*PersistentVolume)) }) + scheme.AddTypeDefaultingFunc(&PersistentVolumeClaim{}, func(obj interface{}) { SetObjectDefaults_PersistentVolumeClaim(obj.(*PersistentVolumeClaim)) }) + scheme.AddTypeDefaultingFunc(&PersistentVolumeClaimList{}, func(obj interface{}) { SetObjectDefaults_PersistentVolumeClaimList(obj.(*PersistentVolumeClaimList)) }) + scheme.AddTypeDefaultingFunc(&PersistentVolumeList{}, func(obj interface{}) { SetObjectDefaults_PersistentVolumeList(obj.(*PersistentVolumeList)) }) + scheme.AddTypeDefaultingFunc(&Pod{}, func(obj interface{}) { SetObjectDefaults_Pod(obj.(*Pod)) }) + scheme.AddTypeDefaultingFunc(&PodAttachOptions{}, func(obj interface{}) { SetObjectDefaults_PodAttachOptions(obj.(*PodAttachOptions)) }) + scheme.AddTypeDefaultingFunc(&PodExecOptions{}, func(obj interface{}) { SetObjectDefaults_PodExecOptions(obj.(*PodExecOptions)) }) + scheme.AddTypeDefaultingFunc(&PodList{}, func(obj interface{}) { SetObjectDefaults_PodList(obj.(*PodList)) }) + scheme.AddTypeDefaultingFunc(&PodTemplate{}, func(obj interface{}) { SetObjectDefaults_PodTemplate(obj.(*PodTemplate)) }) + scheme.AddTypeDefaultingFunc(&PodTemplateList{}, func(obj interface{}) { SetObjectDefaults_PodTemplateList(obj.(*PodTemplateList)) }) + scheme.AddTypeDefaultingFunc(&ReplicationController{}, func(obj interface{}) { SetObjectDefaults_ReplicationController(obj.(*ReplicationController)) }) + scheme.AddTypeDefaultingFunc(&ReplicationControllerList{}, func(obj interface{}) { SetObjectDefaults_ReplicationControllerList(obj.(*ReplicationControllerList)) }) + scheme.AddTypeDefaultingFunc(&ResourceQuota{}, func(obj interface{}) { SetObjectDefaults_ResourceQuota(obj.(*ResourceQuota)) }) + scheme.AddTypeDefaultingFunc(&ResourceQuotaList{}, func(obj interface{}) { SetObjectDefaults_ResourceQuotaList(obj.(*ResourceQuotaList)) }) + scheme.AddTypeDefaultingFunc(&Secret{}, func(obj interface{}) { SetObjectDefaults_Secret(obj.(*Secret)) }) + scheme.AddTypeDefaultingFunc(&SecretList{}, func(obj interface{}) { SetObjectDefaults_SecretList(obj.(*SecretList)) }) + scheme.AddTypeDefaultingFunc(&Service{}, func(obj interface{}) { SetObjectDefaults_Service(obj.(*Service)) }) + scheme.AddTypeDefaultingFunc(&ServiceList{}, func(obj interface{}) { SetObjectDefaults_ServiceList(obj.(*ServiceList)) }) + return nil +} + +func SetObjectDefaults_ConfigMap(in *ConfigMap) { + SetDefaults_ConfigMap(in) +} + +func SetObjectDefaults_ConfigMapList(in *ConfigMapList) { + for i := range in.Items { + a := &in.Items[i] + SetObjectDefaults_ConfigMap(a) + } +} + +func SetObjectDefaults_Endpoints(in *Endpoints) { + SetDefaults_Endpoints(in) +} + +func SetObjectDefaults_EndpointsList(in *EndpointsList) { + for i := range in.Items { + a := &in.Items[i] + SetObjectDefaults_Endpoints(a) + } +} + +func SetObjectDefaults_LimitRange(in *LimitRange) { + for i := range in.Spec.Limits { + a := &in.Spec.Limits[i] + SetDefaults_LimitRangeItem(a) + SetDefaults_ResourceList(&a.Max) + SetDefaults_ResourceList(&a.Min) + SetDefaults_ResourceList(&a.Default) + SetDefaults_ResourceList(&a.DefaultRequest) + SetDefaults_ResourceList(&a.MaxLimitRequestRatio) + } +} + +func SetObjectDefaults_LimitRangeList(in *LimitRangeList) { + for i := range in.Items { + a := &in.Items[i] + SetObjectDefaults_LimitRange(a) + } +} + +func SetObjectDefaults_Namespace(in *Namespace) { + SetDefaults_NamespaceStatus(&in.Status) +} + +func SetObjectDefaults_NamespaceList(in *NamespaceList) { + for i := range in.Items { + a := &in.Items[i] + SetObjectDefaults_Namespace(a) + } +} + +func SetObjectDefaults_Node(in *Node) { + SetDefaults_Node(in) + SetDefaults_NodeStatus(&in.Status) + SetDefaults_ResourceList(&in.Status.Capacity) + SetDefaults_ResourceList(&in.Status.Allocatable) +} + +func SetObjectDefaults_NodeList(in *NodeList) { + for i := range in.Items { + a := &in.Items[i] + SetObjectDefaults_Node(a) + } +} + +func SetObjectDefaults_PersistentVolume(in *PersistentVolume) { + SetDefaults_PersistentVolume(in) + SetDefaults_ResourceList(&in.Spec.Capacity) + if in.Spec.PersistentVolumeSource.RBD != nil { + SetDefaults_RBDVolumeSource(in.Spec.PersistentVolumeSource.RBD) + } + if in.Spec.PersistentVolumeSource.ISCSI != nil { + SetDefaults_ISCSIVolumeSource(in.Spec.PersistentVolumeSource.ISCSI) + } + if in.Spec.PersistentVolumeSource.AzureDisk != nil { + SetDefaults_AzureDiskVolumeSource(in.Spec.PersistentVolumeSource.AzureDisk) + } +} + +func SetObjectDefaults_PersistentVolumeClaim(in *PersistentVolumeClaim) { + SetDefaults_PersistentVolumeClaim(in) + SetDefaults_ResourceList(&in.Spec.Resources.Limits) + SetDefaults_ResourceList(&in.Spec.Resources.Requests) + SetDefaults_ResourceList(&in.Status.Capacity) +} + +func SetObjectDefaults_PersistentVolumeClaimList(in *PersistentVolumeClaimList) { + for i := range in.Items { + a := &in.Items[i] + SetObjectDefaults_PersistentVolumeClaim(a) + } +} + +func SetObjectDefaults_PersistentVolumeList(in *PersistentVolumeList) { + for i := range in.Items { + a := &in.Items[i] + SetObjectDefaults_PersistentVolume(a) + } +} + +func SetObjectDefaults_Pod(in *Pod) { + SetDefaults_Pod(in) + SetDefaults_PodSpec(&in.Spec) + for i := range in.Spec.Volumes { + a := &in.Spec.Volumes[i] + SetDefaults_Volume(a) + if a.VolumeSource.Secret != nil { + SetDefaults_SecretVolumeSource(a.VolumeSource.Secret) + } + if a.VolumeSource.ISCSI != nil { + SetDefaults_ISCSIVolumeSource(a.VolumeSource.ISCSI) + } + if a.VolumeSource.RBD != nil { + SetDefaults_RBDVolumeSource(a.VolumeSource.RBD) + } + if a.VolumeSource.DownwardAPI != nil { + SetDefaults_DownwardAPIVolumeSource(a.VolumeSource.DownwardAPI) + for j := range a.VolumeSource.DownwardAPI.Items { + b := &a.VolumeSource.DownwardAPI.Items[j] + if b.FieldRef != nil { + SetDefaults_ObjectFieldSelector(b.FieldRef) + } + } + } + if a.VolumeSource.ConfigMap != nil { + SetDefaults_ConfigMapVolumeSource(a.VolumeSource.ConfigMap) + } + if a.VolumeSource.AzureDisk != nil { + SetDefaults_AzureDiskVolumeSource(a.VolumeSource.AzureDisk) + } + } + for i := range in.Spec.InitContainers { + a := &in.Spec.InitContainers[i] + SetDefaults_Container(a) + for j := range a.Ports { + b := &a.Ports[j] + SetDefaults_ContainerPort(b) + } + for j := range a.Env { + b := &a.Env[j] + if b.ValueFrom != nil { + if b.ValueFrom.FieldRef != nil { + SetDefaults_ObjectFieldSelector(b.ValueFrom.FieldRef) + } + } + } + SetDefaults_ResourceList(&a.Resources.Limits) + SetDefaults_ResourceList(&a.Resources.Requests) + if a.LivenessProbe != nil { + SetDefaults_Probe(a.LivenessProbe) + if a.LivenessProbe.Handler.HTTPGet != nil { + SetDefaults_HTTPGetAction(a.LivenessProbe.Handler.HTTPGet) + } + } + if a.ReadinessProbe != nil { + SetDefaults_Probe(a.ReadinessProbe) + if a.ReadinessProbe.Handler.HTTPGet != nil { + SetDefaults_HTTPGetAction(a.ReadinessProbe.Handler.HTTPGet) + } + } + if a.Lifecycle != nil { + if a.Lifecycle.PostStart != nil { + if a.Lifecycle.PostStart.HTTPGet != nil { + SetDefaults_HTTPGetAction(a.Lifecycle.PostStart.HTTPGet) + } + } + if a.Lifecycle.PreStop != nil { + if a.Lifecycle.PreStop.HTTPGet != nil { + SetDefaults_HTTPGetAction(a.Lifecycle.PreStop.HTTPGet) + } + } + } + } + for i := range in.Spec.Containers { + a := &in.Spec.Containers[i] + SetDefaults_Container(a) + for j := range a.Ports { + b := &a.Ports[j] + SetDefaults_ContainerPort(b) + } + for j := range a.Env { + b := &a.Env[j] + if b.ValueFrom != nil { + if b.ValueFrom.FieldRef != nil { + SetDefaults_ObjectFieldSelector(b.ValueFrom.FieldRef) + } + } + } + SetDefaults_ResourceList(&a.Resources.Limits) + SetDefaults_ResourceList(&a.Resources.Requests) + if a.LivenessProbe != nil { + SetDefaults_Probe(a.LivenessProbe) + if a.LivenessProbe.Handler.HTTPGet != nil { + SetDefaults_HTTPGetAction(a.LivenessProbe.Handler.HTTPGet) + } + } + if a.ReadinessProbe != nil { + SetDefaults_Probe(a.ReadinessProbe) + if a.ReadinessProbe.Handler.HTTPGet != nil { + SetDefaults_HTTPGetAction(a.ReadinessProbe.Handler.HTTPGet) + } + } + if a.Lifecycle != nil { + if a.Lifecycle.PostStart != nil { + if a.Lifecycle.PostStart.HTTPGet != nil { + SetDefaults_HTTPGetAction(a.Lifecycle.PostStart.HTTPGet) + } + } + if a.Lifecycle.PreStop != nil { + if a.Lifecycle.PreStop.HTTPGet != nil { + SetDefaults_HTTPGetAction(a.Lifecycle.PreStop.HTTPGet) + } + } + } + } +} + +func SetObjectDefaults_PodAttachOptions(in *PodAttachOptions) { + SetDefaults_PodAttachOptions(in) +} + +func SetObjectDefaults_PodExecOptions(in *PodExecOptions) { + SetDefaults_PodExecOptions(in) +} + +func SetObjectDefaults_PodList(in *PodList) { + for i := range in.Items { + a := &in.Items[i] + SetObjectDefaults_Pod(a) + } +} + +func SetObjectDefaults_PodTemplate(in *PodTemplate) { + SetDefaults_PodSpec(&in.Template.Spec) + for i := range in.Template.Spec.Volumes { + a := &in.Template.Spec.Volumes[i] + SetDefaults_Volume(a) + if a.VolumeSource.Secret != nil { + SetDefaults_SecretVolumeSource(a.VolumeSource.Secret) + } + if a.VolumeSource.ISCSI != nil { + SetDefaults_ISCSIVolumeSource(a.VolumeSource.ISCSI) + } + if a.VolumeSource.RBD != nil { + SetDefaults_RBDVolumeSource(a.VolumeSource.RBD) + } + if a.VolumeSource.DownwardAPI != nil { + SetDefaults_DownwardAPIVolumeSource(a.VolumeSource.DownwardAPI) + for j := range a.VolumeSource.DownwardAPI.Items { + b := &a.VolumeSource.DownwardAPI.Items[j] + if b.FieldRef != nil { + SetDefaults_ObjectFieldSelector(b.FieldRef) + } + } + } + if a.VolumeSource.ConfigMap != nil { + SetDefaults_ConfigMapVolumeSource(a.VolumeSource.ConfigMap) + } + if a.VolumeSource.AzureDisk != nil { + SetDefaults_AzureDiskVolumeSource(a.VolumeSource.AzureDisk) + } + } + for i := range in.Template.Spec.InitContainers { + a := &in.Template.Spec.InitContainers[i] + SetDefaults_Container(a) + for j := range a.Ports { + b := &a.Ports[j] + SetDefaults_ContainerPort(b) + } + for j := range a.Env { + b := &a.Env[j] + if b.ValueFrom != nil { + if b.ValueFrom.FieldRef != nil { + SetDefaults_ObjectFieldSelector(b.ValueFrom.FieldRef) + } + } + } + SetDefaults_ResourceList(&a.Resources.Limits) + SetDefaults_ResourceList(&a.Resources.Requests) + if a.LivenessProbe != nil { + SetDefaults_Probe(a.LivenessProbe) + if a.LivenessProbe.Handler.HTTPGet != nil { + SetDefaults_HTTPGetAction(a.LivenessProbe.Handler.HTTPGet) + } + } + if a.ReadinessProbe != nil { + SetDefaults_Probe(a.ReadinessProbe) + if a.ReadinessProbe.Handler.HTTPGet != nil { + SetDefaults_HTTPGetAction(a.ReadinessProbe.Handler.HTTPGet) + } + } + if a.Lifecycle != nil { + if a.Lifecycle.PostStart != nil { + if a.Lifecycle.PostStart.HTTPGet != nil { + SetDefaults_HTTPGetAction(a.Lifecycle.PostStart.HTTPGet) + } + } + if a.Lifecycle.PreStop != nil { + if a.Lifecycle.PreStop.HTTPGet != nil { + SetDefaults_HTTPGetAction(a.Lifecycle.PreStop.HTTPGet) + } + } + } + } + for i := range in.Template.Spec.Containers { + a := &in.Template.Spec.Containers[i] + SetDefaults_Container(a) + for j := range a.Ports { + b := &a.Ports[j] + SetDefaults_ContainerPort(b) + } + for j := range a.Env { + b := &a.Env[j] + if b.ValueFrom != nil { + if b.ValueFrom.FieldRef != nil { + SetDefaults_ObjectFieldSelector(b.ValueFrom.FieldRef) + } + } + } + SetDefaults_ResourceList(&a.Resources.Limits) + SetDefaults_ResourceList(&a.Resources.Requests) + if a.LivenessProbe != nil { + SetDefaults_Probe(a.LivenessProbe) + if a.LivenessProbe.Handler.HTTPGet != nil { + SetDefaults_HTTPGetAction(a.LivenessProbe.Handler.HTTPGet) + } + } + if a.ReadinessProbe != nil { + SetDefaults_Probe(a.ReadinessProbe) + if a.ReadinessProbe.Handler.HTTPGet != nil { + SetDefaults_HTTPGetAction(a.ReadinessProbe.Handler.HTTPGet) + } + } + if a.Lifecycle != nil { + if a.Lifecycle.PostStart != nil { + if a.Lifecycle.PostStart.HTTPGet != nil { + SetDefaults_HTTPGetAction(a.Lifecycle.PostStart.HTTPGet) + } + } + if a.Lifecycle.PreStop != nil { + if a.Lifecycle.PreStop.HTTPGet != nil { + SetDefaults_HTTPGetAction(a.Lifecycle.PreStop.HTTPGet) + } + } + } + } +} + +func SetObjectDefaults_PodTemplateList(in *PodTemplateList) { + for i := range in.Items { + a := &in.Items[i] + SetObjectDefaults_PodTemplate(a) + } +} + +func SetObjectDefaults_ReplicationController(in *ReplicationController) { + SetDefaults_ReplicationController(in) + if in.Spec.Template != nil { + SetDefaults_PodSpec(&in.Spec.Template.Spec) + for i := range in.Spec.Template.Spec.Volumes { + a := &in.Spec.Template.Spec.Volumes[i] + SetDefaults_Volume(a) + if a.VolumeSource.Secret != nil { + SetDefaults_SecretVolumeSource(a.VolumeSource.Secret) + } + if a.VolumeSource.ISCSI != nil { + SetDefaults_ISCSIVolumeSource(a.VolumeSource.ISCSI) + } + if a.VolumeSource.RBD != nil { + SetDefaults_RBDVolumeSource(a.VolumeSource.RBD) + } + if a.VolumeSource.DownwardAPI != nil { + SetDefaults_DownwardAPIVolumeSource(a.VolumeSource.DownwardAPI) + for j := range a.VolumeSource.DownwardAPI.Items { + b := &a.VolumeSource.DownwardAPI.Items[j] + if b.FieldRef != nil { + SetDefaults_ObjectFieldSelector(b.FieldRef) + } + } + } + if a.VolumeSource.ConfigMap != nil { + SetDefaults_ConfigMapVolumeSource(a.VolumeSource.ConfigMap) + } + if a.VolumeSource.AzureDisk != nil { + SetDefaults_AzureDiskVolumeSource(a.VolumeSource.AzureDisk) + } + } + for i := range in.Spec.Template.Spec.InitContainers { + a := &in.Spec.Template.Spec.InitContainers[i] + SetDefaults_Container(a) + for j := range a.Ports { + b := &a.Ports[j] + SetDefaults_ContainerPort(b) + } + for j := range a.Env { + b := &a.Env[j] + if b.ValueFrom != nil { + if b.ValueFrom.FieldRef != nil { + SetDefaults_ObjectFieldSelector(b.ValueFrom.FieldRef) + } + } + } + SetDefaults_ResourceList(&a.Resources.Limits) + SetDefaults_ResourceList(&a.Resources.Requests) + if a.LivenessProbe != nil { + SetDefaults_Probe(a.LivenessProbe) + if a.LivenessProbe.Handler.HTTPGet != nil { + SetDefaults_HTTPGetAction(a.LivenessProbe.Handler.HTTPGet) + } + } + if a.ReadinessProbe != nil { + SetDefaults_Probe(a.ReadinessProbe) + if a.ReadinessProbe.Handler.HTTPGet != nil { + SetDefaults_HTTPGetAction(a.ReadinessProbe.Handler.HTTPGet) + } + } + if a.Lifecycle != nil { + if a.Lifecycle.PostStart != nil { + if a.Lifecycle.PostStart.HTTPGet != nil { + SetDefaults_HTTPGetAction(a.Lifecycle.PostStart.HTTPGet) + } + } + if a.Lifecycle.PreStop != nil { + if a.Lifecycle.PreStop.HTTPGet != nil { + SetDefaults_HTTPGetAction(a.Lifecycle.PreStop.HTTPGet) + } + } + } + } + for i := range in.Spec.Template.Spec.Containers { + a := &in.Spec.Template.Spec.Containers[i] + SetDefaults_Container(a) + for j := range a.Ports { + b := &a.Ports[j] + SetDefaults_ContainerPort(b) + } + for j := range a.Env { + b := &a.Env[j] + if b.ValueFrom != nil { + if b.ValueFrom.FieldRef != nil { + SetDefaults_ObjectFieldSelector(b.ValueFrom.FieldRef) + } + } + } + SetDefaults_ResourceList(&a.Resources.Limits) + SetDefaults_ResourceList(&a.Resources.Requests) + if a.LivenessProbe != nil { + SetDefaults_Probe(a.LivenessProbe) + if a.LivenessProbe.Handler.HTTPGet != nil { + SetDefaults_HTTPGetAction(a.LivenessProbe.Handler.HTTPGet) + } + } + if a.ReadinessProbe != nil { + SetDefaults_Probe(a.ReadinessProbe) + if a.ReadinessProbe.Handler.HTTPGet != nil { + SetDefaults_HTTPGetAction(a.ReadinessProbe.Handler.HTTPGet) + } + } + if a.Lifecycle != nil { + if a.Lifecycle.PostStart != nil { + if a.Lifecycle.PostStart.HTTPGet != nil { + SetDefaults_HTTPGetAction(a.Lifecycle.PostStart.HTTPGet) + } + } + if a.Lifecycle.PreStop != nil { + if a.Lifecycle.PreStop.HTTPGet != nil { + SetDefaults_HTTPGetAction(a.Lifecycle.PreStop.HTTPGet) + } + } + } + } + } +} + +func SetObjectDefaults_ReplicationControllerList(in *ReplicationControllerList) { + for i := range in.Items { + a := &in.Items[i] + SetObjectDefaults_ReplicationController(a) + } +} + +func SetObjectDefaults_ResourceQuota(in *ResourceQuota) { + SetDefaults_ResourceList(&in.Spec.Hard) + SetDefaults_ResourceList(&in.Status.Hard) + SetDefaults_ResourceList(&in.Status.Used) +} + +func SetObjectDefaults_ResourceQuotaList(in *ResourceQuotaList) { + for i := range in.Items { + a := &in.Items[i] + SetObjectDefaults_ResourceQuota(a) + } +} + +func SetObjectDefaults_Secret(in *Secret) { + SetDefaults_Secret(in) +} + +func SetObjectDefaults_SecretList(in *SecretList) { + for i := range in.Items { + a := &in.Items[i] + SetObjectDefaults_Secret(a) + } +} + +func SetObjectDefaults_Service(in *Service) { + SetDefaults_ServiceSpec(&in.Spec) +} + +func SetObjectDefaults_ServiceList(in *ServiceList) { + for i := range in.Items { + a := &in.Items[i] + SetObjectDefaults_Service(a) + } +} diff --git a/vendor/k8s.io/client-go/1.5/pkg/api/validation/path/name.go b/vendor/k8s.io/client-go/pkg/api/validation/path/name.go similarity index 100% rename from vendor/k8s.io/client-go/1.5/pkg/api/validation/path/name.go rename to vendor/k8s.io/client-go/pkg/api/validation/path/name.go diff --git a/vendor/k8s.io/client-go/1.5/pkg/api/zz_generated.deepcopy.go b/vendor/k8s.io/client-go/pkg/api/zz_generated.deepcopy.go similarity index 97% rename from vendor/k8s.io/client-go/1.5/pkg/api/zz_generated.deepcopy.go rename to vendor/k8s.io/client-go/pkg/api/zz_generated.deepcopy.go index 699f073d1..89eeacfdc 100644 --- a/vendor/k8s.io/client-go/1.5/pkg/api/zz_generated.deepcopy.go +++ b/vendor/k8s.io/client-go/pkg/api/zz_generated.deepcopy.go @@ -1,7 +1,7 @@ // +build !ignore_autogenerated /* -Copyright 2016 The Kubernetes Authors. +Copyright 2017 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -21,12 +21,12 @@ limitations under the License. package api import ( - unversioned "k8s.io/client-go/1.5/pkg/api/unversioned" - conversion "k8s.io/client-go/1.5/pkg/conversion" - fields "k8s.io/client-go/1.5/pkg/fields" - labels "k8s.io/client-go/1.5/pkg/labels" - runtime "k8s.io/client-go/1.5/pkg/runtime" - types "k8s.io/client-go/1.5/pkg/types" + unversioned "k8s.io/client-go/pkg/api/unversioned" + conversion "k8s.io/client-go/pkg/conversion" + fields "k8s.io/client-go/pkg/fields" + labels "k8s.io/client-go/pkg/labels" + runtime "k8s.io/client-go/pkg/runtime" + types "k8s.io/client-go/pkg/types" reflect "reflect" ) @@ -136,6 +136,7 @@ func RegisterDeepCopies(scheme *runtime.Scheme) error { 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_PhotonPersistentDiskVolumeSource, InType: reflect.TypeOf(&PhotonPersistentDiskVolumeSource{})}, 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{})}, @@ -162,6 +163,7 @@ func RegisterDeepCopies(scheme *runtime.Scheme) error { 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_ReplicationControllerCondition, InType: reflect.TypeOf(&ReplicationControllerCondition{})}, 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{})}, @@ -1178,6 +1180,7 @@ func DeepCopy_api_FlockerVolumeSource(in interface{}, out interface{}, c *conver in := in.(*FlockerVolumeSource) out := out.(*FlockerVolumeSource) out.DatasetName = in.DatasetName + out.DatasetUUID = in.DatasetUUID return nil } } @@ -2288,6 +2291,13 @@ func DeepCopy_api_PersistentVolumeSource(in interface{}, out interface{}, c *con } else { out.AzureDisk = nil } + if in.PhotonPersistentDisk != nil { + in, out := &in.PhotonPersistentDisk, &out.PhotonPersistentDisk + *out = new(PhotonPersistentDiskVolumeSource) + **out = **in + } else { + out.PhotonPersistentDisk = nil + } return nil } } @@ -2340,6 +2350,16 @@ func DeepCopy_api_PersistentVolumeStatus(in interface{}, out interface{}, c *con } } +func DeepCopy_api_PhotonPersistentDiskVolumeSource(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*PhotonPersistentDiskVolumeSource) + out := out.(*PhotonPersistentDiskVolumeSource) + out.PdID = in.PdID + out.FSType = in.FSType + return nil + } +} + func DeepCopy_api_Pod(in interface{}, out interface{}, c *conversion.Cloner) error { { in := in.(*Pod) @@ -2962,7 +2982,22 @@ func DeepCopy_api_ReplicationController(in interface{}, out interface{}, c *conv if err := DeepCopy_api_ReplicationControllerSpec(&in.Spec, &out.Spec, c); err != nil { return err } + if err := DeepCopy_api_ReplicationControllerStatus(&in.Status, &out.Status, c); err != nil { + return err + } + return nil + } +} + +func DeepCopy_api_ReplicationControllerCondition(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*ReplicationControllerCondition) + out := out.(*ReplicationControllerCondition) + out.Type = in.Type out.Status = in.Status + out.LastTransitionTime = in.LastTransitionTime.DeepCopy() + out.Reason = in.Reason + out.Message = in.Message return nil } } @@ -2993,6 +3028,7 @@ func DeepCopy_api_ReplicationControllerSpec(in interface{}, out interface{}, c * in := in.(*ReplicationControllerSpec) out := out.(*ReplicationControllerSpec) out.Replicas = in.Replicas + out.MinReadySeconds = in.MinReadySeconds if in.Selector != nil { in, out := &in.Selector, &out.Selector *out = make(map[string]string) @@ -3022,7 +3058,19 @@ func DeepCopy_api_ReplicationControllerStatus(in interface{}, out interface{}, c out.Replicas = in.Replicas out.FullyLabeledReplicas = in.FullyLabeledReplicas out.ReadyReplicas = in.ReadyReplicas + out.AvailableReplicas = in.AvailableReplicas out.ObservedGeneration = in.ObservedGeneration + if in.Conditions != nil { + in, out := &in.Conditions, &out.Conditions + *out = make([]ReplicationControllerCondition, len(*in)) + for i := range *in { + if err := DeepCopy_api_ReplicationControllerCondition(&(*in)[i], &(*out)[i], c); err != nil { + return err + } + } + } else { + out.Conditions = nil + } return nil } } @@ -3722,6 +3770,13 @@ func DeepCopy_api_VolumeSource(in interface{}, out interface{}, c *conversion.Cl } else { out.AzureDisk = nil } + if in.PhotonPersistentDisk != nil { + in, out := &in.PhotonPersistentDisk, &out.PhotonPersistentDisk + *out = new(PhotonPersistentDiskVolumeSource) + **out = **in + } else { + out.PhotonPersistentDisk = nil + } return nil } } diff --git a/vendor/k8s.io/client-go/1.5/pkg/apimachinery/announced/announced.go b/vendor/k8s.io/client-go/pkg/apimachinery/announced/announced.go similarity index 97% rename from vendor/k8s.io/client-go/1.5/pkg/apimachinery/announced/announced.go rename to vendor/k8s.io/client-go/pkg/apimachinery/announced/announced.go index 18195480b..90bc10050 100644 --- a/vendor/k8s.io/client-go/1.5/pkg/apimachinery/announced/announced.go +++ b/vendor/k8s.io/client-go/pkg/apimachinery/announced/announced.go @@ -24,8 +24,8 @@ package announced import ( "fmt" - "k8s.io/client-go/1.5/pkg/apimachinery/registered" - "k8s.io/client-go/1.5/pkg/runtime" + "k8s.io/client-go/pkg/apimachinery/registered" + "k8s.io/client-go/pkg/runtime" ) var ( diff --git a/vendor/k8s.io/client-go/1.5/pkg/apimachinery/announced/group_factory.go b/vendor/k8s.io/client-go/pkg/apimachinery/announced/group_factory.go similarity index 96% rename from vendor/k8s.io/client-go/1.5/pkg/apimachinery/announced/group_factory.go rename to vendor/k8s.io/client-go/pkg/apimachinery/announced/group_factory.go index 2895b15c2..9473ee569 100644 --- a/vendor/k8s.io/client-go/1.5/pkg/apimachinery/announced/group_factory.go +++ b/vendor/k8s.io/client-go/pkg/apimachinery/announced/group_factory.go @@ -21,13 +21,13 @@ import ( "github.com/golang/glog" - "k8s.io/client-go/1.5/pkg/api" - "k8s.io/client-go/1.5/pkg/api/meta" - "k8s.io/client-go/1.5/pkg/api/unversioned" - "k8s.io/client-go/1.5/pkg/apimachinery" - "k8s.io/client-go/1.5/pkg/apimachinery/registered" - "k8s.io/client-go/1.5/pkg/runtime" - "k8s.io/client-go/1.5/pkg/util/sets" + "k8s.io/client-go/pkg/api" + "k8s.io/client-go/pkg/api/meta" + "k8s.io/client-go/pkg/api/unversioned" + "k8s.io/client-go/pkg/apimachinery" + "k8s.io/client-go/pkg/apimachinery/registered" + "k8s.io/client-go/pkg/runtime" + "k8s.io/client-go/pkg/util/sets" ) type SchemeFunc func(*runtime.Scheme) error diff --git a/vendor/k8s.io/client-go/1.5/pkg/apimachinery/doc.go b/vendor/k8s.io/client-go/pkg/apimachinery/doc.go similarity index 100% rename from vendor/k8s.io/client-go/1.5/pkg/apimachinery/doc.go rename to vendor/k8s.io/client-go/pkg/apimachinery/doc.go diff --git a/vendor/k8s.io/client-go/1.5/pkg/apimachinery/registered/registered.go b/vendor/k8s.io/client-go/pkg/apimachinery/registered/registered.go similarity index 99% rename from vendor/k8s.io/client-go/1.5/pkg/apimachinery/registered/registered.go rename to vendor/k8s.io/client-go/pkg/apimachinery/registered/registered.go index 5ca48f514..887980ea8 100644 --- a/vendor/k8s.io/client-go/1.5/pkg/apimachinery/registered/registered.go +++ b/vendor/k8s.io/client-go/pkg/apimachinery/registered/registered.go @@ -25,10 +25,10 @@ import ( "github.com/golang/glog" - "k8s.io/client-go/1.5/pkg/api/meta" - "k8s.io/client-go/1.5/pkg/api/unversioned" - "k8s.io/client-go/1.5/pkg/apimachinery" - "k8s.io/client-go/1.5/pkg/util/sets" + "k8s.io/client-go/pkg/api/meta" + "k8s.io/client-go/pkg/api/unversioned" + "k8s.io/client-go/pkg/apimachinery" + "k8s.io/client-go/pkg/util/sets" ) var ( diff --git a/vendor/k8s.io/client-go/1.5/pkg/apimachinery/types.go b/vendor/k8s.io/client-go/pkg/apimachinery/types.go similarity index 96% rename from vendor/k8s.io/client-go/1.5/pkg/apimachinery/types.go rename to vendor/k8s.io/client-go/pkg/apimachinery/types.go index b3fc7b834..f520a1572 100644 --- a/vendor/k8s.io/client-go/1.5/pkg/apimachinery/types.go +++ b/vendor/k8s.io/client-go/pkg/apimachinery/types.go @@ -19,9 +19,9 @@ package apimachinery import ( "fmt" - "k8s.io/client-go/1.5/pkg/api/meta" - "k8s.io/client-go/1.5/pkg/api/unversioned" - "k8s.io/client-go/1.5/pkg/runtime" + "k8s.io/client-go/pkg/api/meta" + "k8s.io/client-go/pkg/api/unversioned" + "k8s.io/client-go/pkg/runtime" ) // GroupMeta stores the metadata of a group. diff --git a/vendor/k8s.io/client-go/1.5/pkg/apis/apps/doc.go b/vendor/k8s.io/client-go/pkg/apis/apps/doc.go similarity index 96% rename from vendor/k8s.io/client-go/1.5/pkg/apis/apps/doc.go rename to vendor/k8s.io/client-go/pkg/apis/apps/doc.go index 23aa5a09b..2f123702e 100644 --- a/vendor/k8s.io/client-go/1.5/pkg/apis/apps/doc.go +++ b/vendor/k8s.io/client-go/pkg/apis/apps/doc.go @@ -16,5 +16,6 @@ limitations under the License. // +k8s:deepcopy-gen=package,register // +k8s:openapi-gen=true +// +groupName=apps.k8s.io package apps diff --git a/vendor/k8s.io/client-go/1.5/pkg/apis/apps/install/install.go b/vendor/k8s.io/client-go/pkg/apis/apps/install/install.go similarity index 74% rename from vendor/k8s.io/client-go/1.5/pkg/apis/apps/install/install.go rename to vendor/k8s.io/client-go/pkg/apis/apps/install/install.go index ef8f7e7ad..3a9263d60 100644 --- a/vendor/k8s.io/client-go/1.5/pkg/apis/apps/install/install.go +++ b/vendor/k8s.io/client-go/pkg/apis/apps/install/install.go @@ -19,21 +19,21 @@ limitations under the License. package install import ( - "k8s.io/client-go/1.5/pkg/apimachinery/announced" - "k8s.io/client-go/1.5/pkg/apis/apps" - "k8s.io/client-go/1.5/pkg/apis/apps/v1alpha1" + "k8s.io/client-go/pkg/apimachinery/announced" + "k8s.io/client-go/pkg/apis/apps" + "k8s.io/client-go/pkg/apis/apps/v1beta1" ) func init() { if err := announced.NewGroupMetaFactory( &announced.GroupMetaFactoryArgs{ GroupName: apps.GroupName, - VersionPreferenceOrder: []string{v1alpha1.SchemeGroupVersion.Version}, - ImportPrefix: "k8s.io/client-go/1.5/pkg/apis/apps", + VersionPreferenceOrder: []string{v1beta1.SchemeGroupVersion.Version}, + ImportPrefix: "k8s.io/client-go/pkg/apis/apps", AddInternalObjectsToScheme: apps.AddToScheme, }, announced.VersionToSchemeFunc{ - v1alpha1.SchemeGroupVersion.Version: v1alpha1.AddToScheme, + v1beta1.SchemeGroupVersion.Version: v1beta1.AddToScheme, }, ).Announce().RegisterAndEnable(); err != nil { panic(err) diff --git a/vendor/k8s.io/client-go/1.5/pkg/apis/apps/register.go b/vendor/k8s.io/client-go/pkg/apis/apps/register.go similarity index 91% rename from vendor/k8s.io/client-go/1.5/pkg/apis/apps/register.go rename to vendor/k8s.io/client-go/pkg/apis/apps/register.go index 26305ac46..f79102229 100644 --- a/vendor/k8s.io/client-go/1.5/pkg/apis/apps/register.go +++ b/vendor/k8s.io/client-go/pkg/apis/apps/register.go @@ -17,9 +17,9 @@ limitations under the License. package apps import ( - "k8s.io/client-go/1.5/pkg/api" - "k8s.io/client-go/1.5/pkg/api/unversioned" - "k8s.io/client-go/1.5/pkg/runtime" + "k8s.io/client-go/pkg/api" + "k8s.io/client-go/pkg/api/unversioned" + "k8s.io/client-go/pkg/runtime" ) var ( @@ -47,8 +47,8 @@ func Resource(resource string) unversioned.GroupResource { func addKnownTypes(scheme *runtime.Scheme) error { // TODO this will get cleaned up with the scheme types are fixed scheme.AddKnownTypes(SchemeGroupVersion, - &PetSet{}, - &PetSetList{}, + &StatefulSet{}, + &StatefulSetList{}, &api.ListOptions{}, &api.DeleteOptions{}, ) diff --git a/vendor/k8s.io/client-go/1.5/pkg/apis/apps/types.generated.go b/vendor/k8s.io/client-go/pkg/apis/apps/types.generated.go similarity index 93% rename from vendor/k8s.io/client-go/1.5/pkg/apis/apps/types.generated.go rename to vendor/k8s.io/client-go/pkg/apis/apps/types.generated.go index 6e910b944..391d2345b 100644 --- a/vendor/k8s.io/client-go/1.5/pkg/apis/apps/types.generated.go +++ b/vendor/k8s.io/client-go/pkg/apis/apps/types.generated.go @@ -25,11 +25,11 @@ import ( "errors" "fmt" codec1978 "github.com/ugorji/go/codec" - pkg2_api "k8s.io/client-go/1.5/pkg/api" - pkg4_resource "k8s.io/client-go/1.5/pkg/api/resource" - pkg1_unversioned "k8s.io/client-go/1.5/pkg/api/unversioned" - pkg3_types "k8s.io/client-go/1.5/pkg/types" - pkg5_intstr "k8s.io/client-go/1.5/pkg/util/intstr" + pkg2_api "k8s.io/client-go/pkg/api" + pkg4_resource "k8s.io/client-go/pkg/api/resource" + pkg1_unversioned "k8s.io/client-go/pkg/api/unversioned" + pkg3_types "k8s.io/client-go/pkg/types" + pkg5_intstr "k8s.io/client-go/pkg/util/intstr" "reflect" "runtime" time "time" @@ -75,7 +75,7 @@ func init() { } } -func (x *PetSet) CodecEncodeSelf(e *codec1978.Encoder) { +func (x *StatefulSet) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r @@ -220,7 +220,7 @@ func (x *PetSet) CodecEncodeSelf(e *codec1978.Encoder) { } } -func (x *PetSet) CodecDecodeSelf(d *codec1978.Decoder) { +func (x *StatefulSet) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r @@ -250,7 +250,7 @@ func (x *PetSet) CodecDecodeSelf(d *codec1978.Decoder) { } } -func (x *PetSet) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { +func (x *StatefulSet) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r @@ -293,14 +293,14 @@ func (x *PetSet) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } case "spec": if r.TryDecodeAsNil() { - x.Spec = PetSetSpec{} + x.Spec = StatefulSetSpec{} } else { yyv24 := &x.Spec yyv24.CodecDecodeSelf(d) } case "status": if r.TryDecodeAsNil() { - x.Status = PetSetStatus{} + x.Status = StatefulSetStatus{} } else { yyv25 := &x.Status yyv25.CodecDecodeSelf(d) @@ -312,7 +312,7 @@ func (x *PetSet) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } -func (x *PetSet) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { +func (x *StatefulSet) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r @@ -380,7 +380,7 @@ func (x *PetSet) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.Spec = PetSetSpec{} + x.Spec = StatefulSetSpec{} } else { yyv30 := &x.Spec yyv30.CodecDecodeSelf(d) @@ -397,7 +397,7 @@ func (x *PetSet) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.Status = PetSetStatus{} + x.Status = StatefulSetStatus{} } else { yyv31 := &x.Status yyv31.CodecDecodeSelf(d) @@ -418,7 +418,7 @@ func (x *PetSet) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } -func (x *PetSetSpec) CodecEncodeSelf(e *codec1978.Encoder) { +func (x *StatefulSetSpec) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r @@ -583,7 +583,7 @@ func (x *PetSetSpec) CodecEncodeSelf(e *codec1978.Encoder) { } } -func (x *PetSetSpec) CodecDecodeSelf(d *codec1978.Decoder) { +func (x *StatefulSetSpec) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r @@ -613,7 +613,7 @@ func (x *PetSetSpec) CodecDecodeSelf(d *codec1978.Decoder) { } } -func (x *PetSetSpec) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { +func (x *StatefulSetSpec) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r @@ -639,7 +639,7 @@ func (x *PetSetSpec) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.Replicas = 0 } else { - x.Replicas = int(r.DecodeInt(codecSelferBitsize1234)) + x.Replicas = int32(r.DecodeInt(32)) } case "selector": if r.TryDecodeAsNil() { @@ -690,7 +690,7 @@ func (x *PetSetSpec) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } -func (x *PetSetSpec) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { +func (x *StatefulSetSpec) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r @@ -711,7 +711,7 @@ func (x *PetSetSpec) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.Replicas = 0 } else { - x.Replicas = int(r.DecodeInt(codecSelferBitsize1234)) + x.Replicas = int32(r.DecodeInt(32)) } yyj59++ if yyhl59 { @@ -811,7 +811,7 @@ func (x *PetSetSpec) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } -func (x *PetSetStatus) CodecEncodeSelf(e *codec1978.Encoder) { +func (x *StatefulSetStatus) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r @@ -905,7 +905,7 @@ func (x *PetSetStatus) CodecEncodeSelf(e *codec1978.Encoder) { } } -func (x *PetSetStatus) CodecDecodeSelf(d *codec1978.Decoder) { +func (x *StatefulSetStatus) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r @@ -935,7 +935,7 @@ func (x *PetSetStatus) CodecDecodeSelf(d *codec1978.Decoder) { } } -func (x *PetSetStatus) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { +func (x *StatefulSetStatus) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r @@ -977,7 +977,7 @@ func (x *PetSetStatus) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.Replicas = 0 } else { - x.Replicas = int(r.DecodeInt(codecSelferBitsize1234)) + x.Replicas = int32(r.DecodeInt(32)) } default: z.DecStructFieldNotFound(-1, yys79) @@ -986,7 +986,7 @@ func (x *PetSetStatus) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } -func (x *PetSetStatus) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { +func (x *StatefulSetStatus) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r @@ -1033,7 +1033,7 @@ func (x *PetSetStatus) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.Replicas = 0 } else { - x.Replicas = int(r.DecodeInt(codecSelferBitsize1234)) + x.Replicas = int32(r.DecodeInt(32)) } for { yyj83++ @@ -1051,7 +1051,7 @@ func (x *PetSetStatus) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } -func (x *PetSetList) CodecEncodeSelf(e *codec1978.Encoder) { +func (x *StatefulSetList) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r @@ -1172,7 +1172,7 @@ func (x *PetSetList) CodecEncodeSelf(e *codec1978.Encoder) { _ = yym101 if false { } else { - h.encSlicePetSet(([]PetSet)(x.Items), e) + h.encSliceStatefulSet(([]StatefulSet)(x.Items), e) } } } else { @@ -1186,7 +1186,7 @@ func (x *PetSetList) CodecEncodeSelf(e *codec1978.Encoder) { _ = yym102 if false { } else { - h.encSlicePetSet(([]PetSet)(x.Items), e) + h.encSliceStatefulSet(([]StatefulSet)(x.Items), e) } } } @@ -1199,7 +1199,7 @@ func (x *PetSetList) CodecEncodeSelf(e *codec1978.Encoder) { } } -func (x *PetSetList) CodecDecodeSelf(d *codec1978.Decoder) { +func (x *StatefulSetList) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r @@ -1229,7 +1229,7 @@ func (x *PetSetList) CodecDecodeSelf(d *codec1978.Decoder) { } } -func (x *PetSetList) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { +func (x *StatefulSetList) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r @@ -1285,7 +1285,7 @@ func (x *PetSetList) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { _ = yym111 if false { } else { - h.decSlicePetSet((*[]PetSet)(yyv110), d) + h.decSliceStatefulSet((*[]StatefulSet)(yyv110), d) } } default: @@ -1295,7 +1295,7 @@ func (x *PetSetList) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } -func (x *PetSetList) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { +func (x *StatefulSetList) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r @@ -1376,7 +1376,7 @@ func (x *PetSetList) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { _ = yym118 if false { } else { - h.decSlicePetSet((*[]PetSet)(yyv117), d) + h.decSliceStatefulSet((*[]StatefulSet)(yyv117), d) } } for { @@ -1511,7 +1511,7 @@ func (x codecSelfer1234) decSliceapi_PersistentVolumeClaim(v *[]pkg2_api.Persist } } -func (x codecSelfer1234) encSlicePetSet(v []PetSet, e *codec1978.Encoder) { +func (x codecSelfer1234) encSliceStatefulSet(v []StatefulSet, e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r @@ -1524,7 +1524,7 @@ func (x codecSelfer1234) encSlicePetSet(v []PetSet, e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } -func (x codecSelfer1234) decSlicePetSet(v *[]PetSet, d *codec1978.Decoder) { +func (x codecSelfer1234) decSliceStatefulSet(v *[]StatefulSet, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r @@ -1534,7 +1534,7 @@ func (x codecSelfer1234) decSlicePetSet(v *[]PetSet, d *codec1978.Decoder) { var yyc127 bool if yyl127 == 0 { if yyv127 == nil { - yyv127 = []PetSet{} + yyv127 = []StatefulSet{} yyc127 = true } else if len(yyv127) != 0 { yyv127 = yyv127[:0] @@ -1552,10 +1552,10 @@ func (x codecSelfer1234) decSlicePetSet(v *[]PetSet, d *codec1978.Decoder) { if yyrl127 <= cap(yyv127) { yyv127 = yyv127[:yyrl127] } else { - yyv127 = make([]PetSet, yyrl127) + yyv127 = make([]StatefulSet, yyrl127) } } else { - yyv127 = make([]PetSet, yyrl127) + yyv127 = make([]StatefulSet, yyrl127) } yyc127 = true yyrr127 = len(yyv127) @@ -1570,7 +1570,7 @@ func (x codecSelfer1234) decSlicePetSet(v *[]PetSet, d *codec1978.Decoder) { for ; yyj127 < yyrr127; yyj127++ { yyh127.ElemContainerState(yyj127) if r.TryDecodeAsNil() { - yyv127[yyj127] = PetSet{} + yyv127[yyj127] = StatefulSet{} } else { yyv128 := &yyv127[yyj127] yyv128.CodecDecodeSelf(d) @@ -1579,10 +1579,10 @@ func (x codecSelfer1234) decSlicePetSet(v *[]PetSet, d *codec1978.Decoder) { } if yyrt127 { for ; yyj127 < yyl127; yyj127++ { - yyv127 = append(yyv127, PetSet{}) + yyv127 = append(yyv127, StatefulSet{}) yyh127.ElemContainerState(yyj127) if r.TryDecodeAsNil() { - yyv127[yyj127] = PetSet{} + yyv127[yyj127] = StatefulSet{} } else { yyv129 := &yyv127[yyj127] yyv129.CodecDecodeSelf(d) @@ -1596,13 +1596,13 @@ func (x codecSelfer1234) decSlicePetSet(v *[]PetSet, d *codec1978.Decoder) { for ; !r.CheckBreak(); yyj127++ { if yyj127 >= len(yyv127) { - yyv127 = append(yyv127, PetSet{}) // var yyz127 PetSet + yyv127 = append(yyv127, StatefulSet{}) // var yyz127 StatefulSet yyc127 = true } yyh127.ElemContainerState(yyj127) if yyj127 < len(yyv127) { if r.TryDecodeAsNil() { - yyv127[yyj127] = PetSet{} + yyv127[yyj127] = StatefulSet{} } else { yyv130 := &yyv127[yyj127] yyv130.CodecDecodeSelf(d) @@ -1617,7 +1617,7 @@ func (x codecSelfer1234) decSlicePetSet(v *[]PetSet, d *codec1978.Decoder) { yyv127 = yyv127[:yyj127] yyc127 = true } else if yyj127 == 0 && yyv127 == nil { - yyv127 = []PetSet{} + yyv127 = []StatefulSet{} yyc127 = true } } diff --git a/vendor/k8s.io/client-go/1.5/pkg/apis/apps/types.go b/vendor/k8s.io/client-go/pkg/apis/apps/types.go similarity index 57% rename from vendor/k8s.io/client-go/1.5/pkg/apis/apps/types.go rename to vendor/k8s.io/client-go/pkg/apis/apps/types.go index 19c114edd..14b129fe4 100644 --- a/vendor/k8s.io/client-go/1.5/pkg/apis/apps/types.go +++ b/vendor/k8s.io/client-go/pkg/apis/apps/types.go @@ -17,80 +17,87 @@ limitations under the License. package apps import ( - "k8s.io/client-go/1.5/pkg/api" - "k8s.io/client-go/1.5/pkg/api/unversioned" + "k8s.io/client-go/pkg/api" + "k8s.io/client-go/pkg/api/unversioned" ) // +genclient=true -// PetSet represents a set of pods with consistent identities. +// StatefulSet represents a set of pods with consistent identities. // Identities are defined as: // - Network: A single stable DNS and hostname. // - Storage: As many VolumeClaims as requested. -// The PetSet guarantees that a given network identity will always -// map to the same storage identity. PetSet is currently in alpha and -// and subject to change without notice. -type PetSet struct { +// The StatefulSet guarantees that a given network identity will always +// map to the same storage identity. +type StatefulSet struct { unversioned.TypeMeta `json:",inline"` - api.ObjectMeta `json:"metadata,omitempty"` + // +optional + api.ObjectMeta `json:"metadata,omitempty"` - // Spec defines the desired identities of pets in this set. - Spec PetSetSpec `json:"spec,omitempty"` + // Spec defines the desired identities of pods in this set. + // +optional + Spec StatefulSetSpec `json:"spec,omitempty"` - // Status is the current status of Pets in this PetSet. This data + // Status is the current status of Pods in this StatefulSet. This data // may be out of date by some window of time. - Status PetSetStatus `json:"status,omitempty"` + // +optional + Status StatefulSetStatus `json:"status,omitempty"` } -// A PetSetSpec is the specification of a PetSet. -type PetSetSpec struct { +// A StatefulSetSpec is the specification of a StatefulSet. +type StatefulSetSpec struct { // Replicas is the desired number of replicas of the given Template. // These are replicas in the sense that they are instantiations of the // same Template, but individual replicas also have a consistent identity. // If unspecified, defaults to 1. // TODO: Consider a rename of this field. - Replicas int `json:"replicas,omitempty"` + // +optional + Replicas int32 `json:"replicas,omitempty"` // Selector is a label query over pods that should match the replica count. // If empty, defaulted to labels on the pod template. - // More info: http://releases.k8s.io/HEAD/docs/user-guide/labels.md#label-selectors + // More info: http://kubernetes.io/docs/user-guide/labels#label-selectors + // +optional Selector *unversioned.LabelSelector `json:"selector,omitempty"` // Template is the object that describes the pod that will be created if - // insufficient replicas are detected. Each pod stamped out by the PetSet + // insufficient replicas are detected. Each pod stamped out by the StatefulSet // will fulfill this Template, but have a unique identity from the rest - // of the PetSet. + // of the StatefulSet. Template api.PodTemplateSpec `json:"template"` - // VolumeClaimTemplates is a list of claims that pets are allowed to reference. - // The PetSet controller is responsible for mapping network identities to - // claims in a way that maintains the identity of a pet. Every claim in + // VolumeClaimTemplates is a list of claims that pods are allowed to reference. + // The StatefulSet controller is responsible for mapping network identities to + // claims in a way that maintains the identity of a pod. Every claim in // this list must have at least one matching (by name) volumeMount in one // container in the template. A claim in this list takes precedence over // any volumes in the template, with the same name. // TODO: Define the behavior if a claim already exists with the same name. + // +optional VolumeClaimTemplates []api.PersistentVolumeClaim `json:"volumeClaimTemplates,omitempty"` - // ServiceName is the name of the service that governs this PetSet. - // This service must exist before the PetSet, and is responsible for - // the network identity of the set. Pets get DNS/hostnames that follow the - // pattern: pet-specific-string.serviceName.default.svc.cluster.local - // where "pet-specific-string" is managed by the PetSet controller. + // ServiceName is the name of the service that governs this StatefulSet. + // This service must exist before the StatefulSet, and is responsible for + // the network identity of the set. Pods get DNS/hostnames that follow the + // pattern: pod-specific-string.serviceName.default.svc.cluster.local + // where "pod-specific-string" is managed by the StatefulSet controller. ServiceName string `json:"serviceName"` } -// PetSetStatus represents the current state of a PetSet. -type PetSetStatus struct { +// StatefulSetStatus represents the current state of a StatefulSet. +type StatefulSetStatus struct { // most recent generation observed by this autoscaler. + // +optional ObservedGeneration *int64 `json:"observedGeneration,omitempty"` // Replicas is the number of actual replicas. - Replicas int `json:"replicas"` + Replicas int32 `json:"replicas"` } -// PetSetList is a collection of PetSets. -type PetSetList struct { +// StatefulSetList is a collection of StatefulSets. +type StatefulSetList struct { unversioned.TypeMeta `json:",inline"` + // +optional unversioned.ListMeta `json:"metadata,omitempty"` - Items []PetSet `json:"items"` + Items []StatefulSet `json:"items"` } diff --git a/vendor/k8s.io/client-go/1.5/pkg/apis/apps/v1alpha1/conversion.go b/vendor/k8s.io/client-go/pkg/apis/apps/v1beta1/conversion.go similarity index 77% rename from vendor/k8s.io/client-go/1.5/pkg/apis/apps/v1alpha1/conversion.go rename to vendor/k8s.io/client-go/pkg/apis/apps/v1beta1/conversion.go index 04c6f44b1..caef334f1 100644 --- a/vendor/k8s.io/client-go/1.5/pkg/apis/apps/v1alpha1/conversion.go +++ b/vendor/k8s.io/client-go/pkg/apis/apps/v1beta1/conversion.go @@ -14,33 +14,33 @@ See the License for the specific language governing permissions and limitations under the License. */ -package v1alpha1 +package v1beta1 import ( "fmt" - "k8s.io/client-go/1.5/pkg/api" - "k8s.io/client-go/1.5/pkg/api/unversioned" - v1 "k8s.io/client-go/1.5/pkg/api/v1" - "k8s.io/client-go/1.5/pkg/apis/apps" - "k8s.io/client-go/1.5/pkg/conversion" - "k8s.io/client-go/1.5/pkg/runtime" + "k8s.io/client-go/pkg/api" + "k8s.io/client-go/pkg/api/unversioned" + v1 "k8s.io/client-go/pkg/api/v1" + "k8s.io/client-go/pkg/apis/apps" + "k8s.io/client-go/pkg/conversion" + "k8s.io/client-go/pkg/runtime" ) func addConversionFuncs(scheme *runtime.Scheme) error { - // Add non-generated conversion functions to handle the *int32 -> int + // Add non-generated conversion functions to handle the *int32 -> int32 // 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 // functions are the same as the autogenerated ones in every other way. err := scheme.AddConversionFuncs( - Convert_v1alpha1_PetSetSpec_To_apps_PetSetSpec, - Convert_apps_PetSetSpec_To_v1alpha1_PetSetSpec, + Convert_v1beta1_StatefulSetSpec_To_apps_StatefulSetSpec, + Convert_apps_StatefulSetSpec_To_v1beta1_StatefulSetSpec, ) if err != nil { return err } - return api.Scheme.AddFieldLabelConversionFunc("apps/v1alpha1", "PetSet", + return api.Scheme.AddFieldLabelConversionFunc("apps/v1beta1", "StatefulSet", func(label, value string) (string, string, error) { switch label { case "metadata.name", "metadata.namespace", "status.successful": @@ -52,9 +52,9 @@ func addConversionFuncs(scheme *runtime.Scheme) error { ) } -func Convert_v1alpha1_PetSetSpec_To_apps_PetSetSpec(in *PetSetSpec, out *apps.PetSetSpec, s conversion.Scope) error { +func Convert_v1beta1_StatefulSetSpec_To_apps_StatefulSetSpec(in *StatefulSetSpec, out *apps.StatefulSetSpec, s conversion.Scope) error { if in.Replicas != nil { - out.Replicas = int(*in.Replicas) + out.Replicas = *in.Replicas } if in.Selector != nil { in, out := &in.Selector, &out.Selector @@ -83,9 +83,9 @@ func Convert_v1alpha1_PetSetSpec_To_apps_PetSetSpec(in *PetSetSpec, out *apps.Pe return nil } -func Convert_apps_PetSetSpec_To_v1alpha1_PetSetSpec(in *apps.PetSetSpec, out *PetSetSpec, s conversion.Scope) error { +func Convert_apps_StatefulSetSpec_To_v1beta1_StatefulSetSpec(in *apps.StatefulSetSpec, out *StatefulSetSpec, s conversion.Scope) error { out.Replicas = new(int32) - *out.Replicas = int32(in.Replicas) + *out.Replicas = in.Replicas if in.Selector != nil { in, out := &in.Selector, &out.Selector *out = new(unversioned.LabelSelector) diff --git a/vendor/k8s.io/client-go/1.5/pkg/apis/apps/v1alpha1/defaults.go b/vendor/k8s.io/client-go/pkg/apis/apps/v1beta1/defaults.go similarity index 84% rename from vendor/k8s.io/client-go/1.5/pkg/apis/apps/v1alpha1/defaults.go rename to vendor/k8s.io/client-go/pkg/apis/apps/v1beta1/defaults.go index a9bb781ab..cfe7fed0d 100644 --- a/vendor/k8s.io/client-go/1.5/pkg/apis/apps/v1alpha1/defaults.go +++ b/vendor/k8s.io/client-go/pkg/apis/apps/v1beta1/defaults.go @@ -14,20 +14,21 @@ See the License for the specific language governing permissions and limitations under the License. */ -package v1alpha1 +package v1beta1 import ( - "k8s.io/client-go/1.5/pkg/api/unversioned" - "k8s.io/client-go/1.5/pkg/runtime" + "k8s.io/client-go/pkg/api/unversioned" + "k8s.io/client-go/pkg/runtime" ) func addDefaultingFuncs(scheme *runtime.Scheme) error { + RegisterDefaults(scheme) return scheme.AddDefaultingFuncs( - SetDefaults_PetSet, + SetDefaults_StatefulSet, ) } -func SetDefaults_PetSet(obj *PetSet) { +func SetDefaults_StatefulSet(obj *StatefulSet) { labels := obj.Spec.Template.Labels if labels != nil { if obj.Spec.Selector == nil { diff --git a/vendor/k8s.io/client-go/1.5/pkg/apis/apps/v1alpha1/doc.go b/vendor/k8s.io/client-go/pkg/apis/apps/v1beta1/doc.go similarity index 90% rename from vendor/k8s.io/client-go/1.5/pkg/apis/apps/v1alpha1/doc.go rename to vendor/k8s.io/client-go/pkg/apis/apps/v1beta1/doc.go index 5e6926dfa..6e3d41761 100644 --- a/vendor/k8s.io/client-go/1.5/pkg/apis/apps/v1alpha1/doc.go +++ b/vendor/k8s.io/client-go/pkg/apis/apps/v1beta1/doc.go @@ -17,5 +17,7 @@ limitations under the License. // +k8s:deepcopy-gen=package,register // +k8s:conversion-gen=k8s.io/kubernetes/pkg/apis/apps // +k8s:openapi-gen=true +// +k8s:defaulter-gen=TypeMeta +// +groupName=apps.k8s.io -package v1alpha1 +package v1beta1 diff --git a/vendor/k8s.io/client-go/1.5/pkg/apis/apps/v1alpha1/generated.pb.go b/vendor/k8s.io/client-go/pkg/apis/apps/v1beta1/generated.pb.go similarity index 72% rename from vendor/k8s.io/client-go/1.5/pkg/apis/apps/v1alpha1/generated.pb.go rename to vendor/k8s.io/client-go/pkg/apis/apps/v1beta1/generated.pb.go index 8164d9105..399da59ff 100644 --- a/vendor/k8s.io/client-go/1.5/pkg/apis/apps/v1alpha1/generated.pb.go +++ b/vendor/k8s.io/client-go/pkg/apis/apps/v1beta1/generated.pb.go @@ -1,5 +1,5 @@ /* -Copyright 2016 The Kubernetes Authors. +Copyright 2017 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -15,29 +15,29 @@ limitations under the License. */ // Code generated by protoc-gen-gogo. -// source: k8s.io/kubernetes/pkg/apis/apps/v1alpha1/generated.proto +// source: k8s.io/kubernetes/pkg/apis/apps/v1beta1/generated.proto // DO NOT EDIT! /* - Package v1alpha1 is a generated protocol buffer package. + Package v1beta1 is a generated protocol buffer package. It is generated from these files: - k8s.io/kubernetes/pkg/apis/apps/v1alpha1/generated.proto + k8s.io/kubernetes/pkg/apis/apps/v1beta1/generated.proto It has these top-level messages: - PetSet - PetSetList - PetSetSpec - PetSetStatus + StatefulSet + StatefulSetList + StatefulSetSpec + StatefulSetStatus */ -package v1alpha1 +package v1beta1 import proto "github.com/gogo/protobuf/proto" import fmt "fmt" import math "math" -import k8s_io_kubernetes_pkg_api_unversioned "k8s.io/client-go/1.5/pkg/api/unversioned" -import k8s_io_kubernetes_pkg_api_v1 "k8s.io/client-go/1.5/pkg/api/v1" +import k8s_io_kubernetes_pkg_api_unversioned "k8s.io/client-go/pkg/api/unversioned" +import k8s_io_kubernetes_pkg_api_v1 "k8s.io/client-go/pkg/api/v1" import strings "strings" import reflect "reflect" @@ -53,29 +53,29 @@ var _ = math.Inf // 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 *StatefulSet) Reset() { *m = StatefulSet{} } +func (*StatefulSet) ProtoMessage() {} +func (*StatefulSet) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{0} } -func (m *PetSetList) Reset() { *m = PetSetList{} } -func (*PetSetList) ProtoMessage() {} -func (*PetSetList) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{1} } +func (m *StatefulSetList) Reset() { *m = StatefulSetList{} } +func (*StatefulSetList) ProtoMessage() {} +func (*StatefulSetList) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{1} } -func (m *PetSetSpec) Reset() { *m = PetSetSpec{} } -func (*PetSetSpec) ProtoMessage() {} -func (*PetSetSpec) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{2} } +func (m *StatefulSetSpec) Reset() { *m = StatefulSetSpec{} } +func (*StatefulSetSpec) ProtoMessage() {} +func (*StatefulSetSpec) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{2} } -func (m *PetSetStatus) Reset() { *m = PetSetStatus{} } -func (*PetSetStatus) ProtoMessage() {} -func (*PetSetStatus) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{3} } +func (m *StatefulSetStatus) Reset() { *m = StatefulSetStatus{} } +func (*StatefulSetStatus) ProtoMessage() {} +func (*StatefulSetStatus) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{3} } func init() { - proto.RegisterType((*PetSet)(nil), "k8s.io.client-go.1.5.pkg.apis.apps.v1alpha1.PetSet") - proto.RegisterType((*PetSetList)(nil), "k8s.io.client-go.1.5.pkg.apis.apps.v1alpha1.PetSetList") - proto.RegisterType((*PetSetSpec)(nil), "k8s.io.client-go.1.5.pkg.apis.apps.v1alpha1.PetSetSpec") - proto.RegisterType((*PetSetStatus)(nil), "k8s.io.client-go.1.5.pkg.apis.apps.v1alpha1.PetSetStatus") + proto.RegisterType((*StatefulSet)(nil), "k8s.io.client-go.pkg.apis.apps.v1beta1.StatefulSet") + proto.RegisterType((*StatefulSetList)(nil), "k8s.io.client-go.pkg.apis.apps.v1beta1.StatefulSetList") + proto.RegisterType((*StatefulSetSpec)(nil), "k8s.io.client-go.pkg.apis.apps.v1beta1.StatefulSetSpec") + proto.RegisterType((*StatefulSetStatus)(nil), "k8s.io.client-go.pkg.apis.apps.v1beta1.StatefulSetStatus") } -func (m *PetSet) Marshal() (data []byte, err error) { +func (m *StatefulSet) Marshal() (data []byte, err error) { size := m.Size() data = make([]byte, size) n, err := m.MarshalTo(data) @@ -85,7 +85,7 @@ func (m *PetSet) Marshal() (data []byte, err error) { return data[:n], nil } -func (m *PetSet) MarshalTo(data []byte) (int, error) { +func (m *StatefulSet) MarshalTo(data []byte) (int, error) { var i int _ = i var l int @@ -117,7 +117,7 @@ func (m *PetSet) MarshalTo(data []byte) (int, error) { return i, nil } -func (m *PetSetList) Marshal() (data []byte, err error) { +func (m *StatefulSetList) Marshal() (data []byte, err error) { size := m.Size() data = make([]byte, size) n, err := m.MarshalTo(data) @@ -127,7 +127,7 @@ func (m *PetSetList) Marshal() (data []byte, err error) { return data[:n], nil } -func (m *PetSetList) MarshalTo(data []byte) (int, error) { +func (m *StatefulSetList) MarshalTo(data []byte) (int, error) { var i int _ = i var l int @@ -155,7 +155,7 @@ func (m *PetSetList) MarshalTo(data []byte) (int, error) { return i, nil } -func (m *PetSetSpec) Marshal() (data []byte, err error) { +func (m *StatefulSetSpec) Marshal() (data []byte, err error) { size := m.Size() data = make([]byte, size) n, err := m.MarshalTo(data) @@ -165,7 +165,7 @@ func (m *PetSetSpec) Marshal() (data []byte, err error) { return data[:n], nil } -func (m *PetSetSpec) MarshalTo(data []byte) (int, error) { +func (m *StatefulSetSpec) MarshalTo(data []byte) (int, error) { var i int _ = i var l int @@ -212,7 +212,7 @@ func (m *PetSetSpec) MarshalTo(data []byte) (int, error) { return i, nil } -func (m *PetSetStatus) Marshal() (data []byte, err error) { +func (m *StatefulSetStatus) Marshal() (data []byte, err error) { size := m.Size() data = make([]byte, size) n, err := m.MarshalTo(data) @@ -222,7 +222,7 @@ func (m *PetSetStatus) Marshal() (data []byte, err error) { return data[:n], nil } -func (m *PetSetStatus) MarshalTo(data []byte) (int, error) { +func (m *StatefulSetStatus) MarshalTo(data []byte) (int, error) { var i int _ = i var l int @@ -265,7 +265,7 @@ func encodeVarintGenerated(data []byte, offset int, v uint64) int { data[offset] = uint8(v) return offset + 1 } -func (m *PetSet) Size() (n int) { +func (m *StatefulSet) Size() (n int) { var l int _ = l l = m.ObjectMeta.Size() @@ -277,7 +277,7 @@ func (m *PetSet) Size() (n int) { return n } -func (m *PetSetList) Size() (n int) { +func (m *StatefulSetList) Size() (n int) { var l int _ = l l = m.ListMeta.Size() @@ -291,7 +291,7 @@ func (m *PetSetList) Size() (n int) { return n } -func (m *PetSetSpec) Size() (n int) { +func (m *StatefulSetSpec) Size() (n int) { var l int _ = l if m.Replicas != nil { @@ -314,7 +314,7 @@ func (m *PetSetSpec) Size() (n int) { return n } -func (m *PetSetStatus) Size() (n int) { +func (m *StatefulSetStatus) Size() (n int) { var l int _ = l if m.ObservedGeneration != nil { @@ -337,34 +337,34 @@ 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 { +func (this *StatefulSet) String() string { if this == nil { return "nil" } - s := strings.Join([]string{`&PetSet{`, + s := strings.Join([]string{`&StatefulSet{`, `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) + `,`, + `Spec:` + strings.Replace(strings.Replace(this.Spec.String(), "StatefulSetSpec", "StatefulSetSpec", 1), `&`, ``, 1) + `,`, + `Status:` + strings.Replace(strings.Replace(this.Status.String(), "StatefulSetStatus", "StatefulSetStatus", 1), `&`, ``, 1) + `,`, `}`, }, "") return s } -func (this *PetSetList) String() string { +func (this *StatefulSetList) String() string { if this == nil { return "nil" } - s := strings.Join([]string{`&PetSetList{`, + s := strings.Join([]string{`&StatefulSetList{`, `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) + `,`, + `Items:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.Items), "StatefulSet", "StatefulSet", 1), `&`, ``, 1) + `,`, `}`, }, "") return s } -func (this *PetSetSpec) String() string { +func (this *StatefulSetSpec) String() string { if this == nil { return "nil" } - s := strings.Join([]string{`&PetSetSpec{`, + s := strings.Join([]string{`&StatefulSetSpec{`, `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) + `,`, @@ -374,11 +374,11 @@ func (this *PetSetSpec) String() string { }, "") return s } -func (this *PetSetStatus) String() string { +func (this *StatefulSetStatus) String() string { if this == nil { return "nil" } - s := strings.Join([]string{`&PetSetStatus{`, + s := strings.Join([]string{`&StatefulSetStatus{`, `ObservedGeneration:` + valueToStringGenerated(this.ObservedGeneration) + `,`, `Replicas:` + fmt.Sprintf("%v", this.Replicas) + `,`, `}`, @@ -393,7 +393,7 @@ func valueToStringGenerated(v interface{}) string { pv := reflect.Indirect(rv).Interface() return fmt.Sprintf("*%v", pv) } -func (m *PetSet) Unmarshal(data []byte) error { +func (m *StatefulSet) Unmarshal(data []byte) error { l := len(data) iNdEx := 0 for iNdEx < l { @@ -416,10 +416,10 @@ func (m *PetSet) Unmarshal(data []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: PetSet: wiretype end group for non-group") + return fmt.Errorf("proto: StatefulSet: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: PetSet: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: StatefulSet: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -533,7 +533,7 @@ func (m *PetSet) Unmarshal(data []byte) error { } return nil } -func (m *PetSetList) Unmarshal(data []byte) error { +func (m *StatefulSetList) Unmarshal(data []byte) error { l := len(data) iNdEx := 0 for iNdEx < l { @@ -556,10 +556,10 @@ func (m *PetSetList) Unmarshal(data []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: PetSetList: wiretype end group for non-group") + return fmt.Errorf("proto: StatefulSetList: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: PetSetList: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: StatefulSetList: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -618,7 +618,7 @@ func (m *PetSetList) Unmarshal(data []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.Items = append(m.Items, PetSet{}) + m.Items = append(m.Items, StatefulSet{}) if err := m.Items[len(m.Items)-1].Unmarshal(data[iNdEx:postIndex]); err != nil { return err } @@ -644,7 +644,7 @@ func (m *PetSetList) Unmarshal(data []byte) error { } return nil } -func (m *PetSetSpec) Unmarshal(data []byte) error { +func (m *StatefulSetSpec) Unmarshal(data []byte) error { l := len(data) iNdEx := 0 for iNdEx < l { @@ -667,10 +667,10 @@ func (m *PetSetSpec) Unmarshal(data []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: PetSetSpec: wiretype end group for non-group") + return fmt.Errorf("proto: StatefulSetSpec: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: PetSetSpec: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: StatefulSetSpec: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -837,7 +837,7 @@ func (m *PetSetSpec) Unmarshal(data []byte) error { } return nil } -func (m *PetSetStatus) Unmarshal(data []byte) error { +func (m *StatefulSetStatus) Unmarshal(data []byte) error { l := len(data) iNdEx := 0 for iNdEx < l { @@ -860,10 +860,10 @@ func (m *PetSetStatus) Unmarshal(data []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: PetSetStatus: wiretype end group for non-group") + return fmt.Errorf("proto: StatefulSetStatus: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: PetSetStatus: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: StatefulSetStatus: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -1032,44 +1032,45 @@ var ( ) 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, + // 627 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x09, 0x6e, 0x88, 0x02, 0xff, 0x9c, 0x93, 0xcd, 0x6e, 0xd3, 0x40, + 0x10, 0xc7, 0xe3, 0xa4, 0x29, 0x61, 0x53, 0xbe, 0x96, 0x0a, 0x45, 0x11, 0x72, 0xab, 0x5c, 0x08, + 0x52, 0xbb, 0x56, 0x4a, 0x2b, 0x2a, 0x8e, 0x46, 0x02, 0x21, 0x01, 0x45, 0x0e, 0xaa, 0xa0, 0x08, + 0xa4, 0xb5, 0x33, 0x0d, 0x4b, 0x6c, 0xaf, 0xe5, 0x1d, 0xe7, 0xcc, 0x85, 0x03, 0x37, 0xde, 0x82, + 0x47, 0xe0, 0x15, 0x2a, 0x71, 0xe9, 0x91, 0x53, 0x45, 0xc3, 0x8b, 0x20, 0x6f, 0x36, 0x1f, 0x34, + 0x49, 0xa9, 0x7a, 0xf3, 0xec, 0xce, 0xff, 0x37, 0x33, 0xff, 0x1d, 0x93, 0x87, 0xbd, 0x5d, 0xc5, + 0x84, 0x74, 0x7a, 0x99, 0x0f, 0x69, 0x0c, 0x08, 0xca, 0x49, 0x7a, 0x5d, 0x87, 0x27, 0x42, 0x39, + 0x3c, 0x49, 0x94, 0xd3, 0x6f, 0xf9, 0x80, 0xbc, 0xe5, 0x74, 0x21, 0x86, 0x94, 0x23, 0x74, 0x58, + 0x92, 0x4a, 0x94, 0xf4, 0xde, 0x50, 0xc8, 0x26, 0x42, 0x96, 0xf4, 0xba, 0x2c, 0x17, 0xb2, 0x5c, + 0xc8, 0x8c, 0xb0, 0xbe, 0xd9, 0x15, 0xf8, 0x31, 0xf3, 0x59, 0x20, 0x23, 0xa7, 0x2b, 0xbb, 0xd2, + 0xd1, 0x7a, 0x3f, 0x3b, 0xd4, 0x91, 0x0e, 0xf4, 0xd7, 0x90, 0x5b, 0xdf, 0x5a, 0xd8, 0x90, 0x93, + 0x82, 0x92, 0x59, 0x1a, 0xc0, 0xd9, 0x5e, 0xea, 0x3b, 0x8b, 0x35, 0x59, 0xdc, 0x87, 0x54, 0x09, + 0x19, 0x43, 0x67, 0x46, 0xb6, 0xb1, 0x58, 0xd6, 0x9f, 0x19, 0xb8, 0xbe, 0x39, 0x3f, 0x3b, 0xcd, + 0x62, 0x14, 0xd1, 0x6c, 0x4f, 0xad, 0xf9, 0xe9, 0x19, 0x8a, 0xd0, 0x11, 0x31, 0x2a, 0x4c, 0xcf, + 0x4a, 0x1a, 0xdf, 0x8b, 0xa4, 0xda, 0x46, 0x8e, 0x70, 0x98, 0x85, 0x6d, 0x40, 0xfa, 0x86, 0x54, + 0x22, 0x40, 0xde, 0xe1, 0xc8, 0x6b, 0xd6, 0xba, 0xd5, 0xac, 0x6e, 0x35, 0xd9, 0x42, 0xd7, 0x59, + 0xbf, 0xc5, 0xf6, 0xfc, 0x4f, 0x10, 0xe0, 0x0b, 0x40, 0xee, 0xd2, 0xa3, 0x93, 0xb5, 0xc2, 0xe0, + 0x64, 0x8d, 0x4c, 0xce, 0xbc, 0x31, 0x8d, 0x1e, 0x90, 0x25, 0x95, 0x40, 0x50, 0x2b, 0x6a, 0xea, + 0x2e, 0xbb, 0xe0, 0x5b, 0xb2, 0xa9, 0xee, 0xda, 0x09, 0x04, 0xee, 0x8a, 0xa9, 0xb2, 0x94, 0x47, + 0x9e, 0x66, 0x52, 0x9f, 0x2c, 0x2b, 0xe4, 0x98, 0xa9, 0x5a, 0x49, 0xd3, 0x1f, 0x5d, 0x8a, 0xae, + 0x09, 0xee, 0x75, 0xc3, 0x5f, 0x1e, 0xc6, 0x9e, 0x21, 0x37, 0x7e, 0x5a, 0xe4, 0xc6, 0x54, 0xf6, + 0x73, 0xa1, 0x90, 0xbe, 0x9f, 0x71, 0xcb, 0x39, 0xc7, 0xad, 0xa9, 0xbd, 0x60, 0xb9, 0x5c, 0x9b, + 0x76, 0xd3, 0x94, 0xab, 0x8c, 0x4e, 0xa6, 0x2c, 0x7b, 0x4b, 0xca, 0x02, 0x21, 0x52, 0xb5, 0xe2, + 0x7a, 0xa9, 0x59, 0xdd, 0xda, 0xbe, 0xcc, 0x54, 0xee, 0x35, 0x53, 0xa0, 0xfc, 0x2c, 0x47, 0x79, + 0x43, 0x62, 0xe3, 0x47, 0xe9, 0x9f, 0x69, 0x72, 0x2f, 0x69, 0x93, 0x54, 0x52, 0x48, 0x42, 0x11, + 0x70, 0xa5, 0xa7, 0x29, 0xbb, 0x2b, 0x79, 0x63, 0x9e, 0x39, 0xf3, 0xc6, 0xb7, 0xf4, 0x03, 0xa9, + 0x28, 0x08, 0x21, 0x40, 0x99, 0x9a, 0xf7, 0xdc, 0xbe, 0xe8, 0xdc, 0xdc, 0x87, 0xb0, 0x6d, 0xb4, + 0x43, 0xfe, 0x28, 0xf2, 0xc6, 0x4c, 0xfa, 0x8e, 0x54, 0x10, 0xa2, 0x24, 0xe4, 0x08, 0xe6, 0x45, + 0x37, 0xcf, 0xdf, 0xc2, 0x57, 0xb2, 0xf3, 0xda, 0x08, 0xf4, 0x92, 0x8c, 0x5d, 0x1d, 0x9d, 0x7a, + 0x63, 0x20, 0xfd, 0x62, 0x91, 0xd5, 0xbe, 0x0c, 0xb3, 0x08, 0x1e, 0x87, 0x5c, 0x44, 0xa3, 0x0c, + 0x55, 0x5b, 0xd2, 0x2e, 0x3f, 0xf8, 0x4f, 0xa5, 0x7c, 0x14, 0x85, 0x10, 0xe3, 0xfe, 0x84, 0xe1, + 0xde, 0x35, 0xf5, 0x56, 0xf7, 0xe7, 0x80, 0xbd, 0xb9, 0xe5, 0xe8, 0x0e, 0xa9, 0x2a, 0x48, 0xfb, + 0x22, 0x80, 0x97, 0x3c, 0x82, 0x5a, 0x79, 0xdd, 0x6a, 0x5e, 0x75, 0x6f, 0x1b, 0x50, 0xb5, 0x3d, + 0xb9, 0xf2, 0xa6, 0xf3, 0x1a, 0x5f, 0x2d, 0x72, 0x6b, 0x66, 0x6b, 0xe9, 0x13, 0x42, 0xa5, 0x9f, + 0xa7, 0x41, 0xe7, 0xe9, 0xf0, 0x17, 0x17, 0x32, 0xd6, 0xaf, 0x58, 0x72, 0xef, 0x0c, 0x4e, 0xd6, + 0xe8, 0xde, 0xcc, 0xad, 0x37, 0x47, 0x41, 0x37, 0xa6, 0x76, 0xa0, 0xa8, 0x77, 0x60, 0x6c, 0xe5, + 0xec, 0x1e, 0xb8, 0xf7, 0x8f, 0x4e, 0xed, 0xc2, 0xf1, 0xa9, 0x5d, 0xf8, 0x75, 0x6a, 0x17, 0x3e, + 0x0f, 0x6c, 0xeb, 0x68, 0x60, 0x5b, 0xc7, 0x03, 0xdb, 0xfa, 0x3d, 0xb0, 0xad, 0x6f, 0x7f, 0xec, + 0xc2, 0xc1, 0x15, 0xb3, 0x92, 0x7f, 0x03, 0x00, 0x00, 0xff, 0xff, 0x28, 0x58, 0x61, 0xec, 0xf5, 0x05, 0x00, 0x00, } diff --git a/vendor/k8s.io/client-go/1.5/pkg/apis/apps/v1alpha1/register.go b/vendor/k8s.io/client-go/pkg/apis/apps/v1beta1/register.go similarity index 73% rename from vendor/k8s.io/client-go/1.5/pkg/apis/apps/v1alpha1/register.go rename to vendor/k8s.io/client-go/pkg/apis/apps/v1beta1/register.go index 9a6bb3803..3ab76cf6a 100644 --- a/vendor/k8s.io/client-go/1.5/pkg/apis/apps/v1alpha1/register.go +++ b/vendor/k8s.io/client-go/pkg/apis/apps/v1beta1/register.go @@ -14,20 +14,20 @@ See the License for the specific language governing permissions and limitations under the License. */ -package v1alpha1 +package v1beta1 import ( - "k8s.io/client-go/1.5/pkg/api/unversioned" - "k8s.io/client-go/1.5/pkg/api/v1" - "k8s.io/client-go/1.5/pkg/runtime" - versionedwatch "k8s.io/client-go/1.5/pkg/watch/versioned" + "k8s.io/client-go/pkg/api/unversioned" + "k8s.io/client-go/pkg/api/v1" + "k8s.io/client-go/pkg/runtime" + versionedwatch "k8s.io/client-go/pkg/watch/versioned" ) // GroupName is the group name use in this package const GroupName = "apps" // SchemeGroupVersion is group version used to register these objects -var SchemeGroupVersion = unversioned.GroupVersion{Group: GroupName, Version: "v1alpha1"} +var SchemeGroupVersion = unversioned.GroupVersion{Group: GroupName, Version: "v1beta1"} var ( SchemeBuilder = runtime.NewSchemeBuilder(addKnownTypes, addDefaultingFuncs, addConversionFuncs) @@ -37,14 +37,15 @@ var ( // Adds the list of known types to api.Scheme. func addKnownTypes(scheme *runtime.Scheme) error { scheme.AddKnownTypes(SchemeGroupVersion, - &PetSet{}, - &PetSetList{}, + &StatefulSet{}, + &StatefulSetList{}, &v1.ListOptions{}, &v1.DeleteOptions{}, + &v1.ExportOptions{}, ) versionedwatch.AddToGroupVersion(scheme, SchemeGroupVersion) return nil } -func (obj *PetSet) GetObjectKind() unversioned.ObjectKind { return &obj.TypeMeta } -func (obj *PetSetList) GetObjectKind() unversioned.ObjectKind { return &obj.TypeMeta } +func (obj *StatefulSet) GetObjectKind() unversioned.ObjectKind { return &obj.TypeMeta } +func (obj *StatefulSetList) GetObjectKind() unversioned.ObjectKind { return &obj.TypeMeta } diff --git a/vendor/k8s.io/client-go/1.5/pkg/apis/apps/v1alpha1/types.generated.go b/vendor/k8s.io/client-go/pkg/apis/apps/v1beta1/types.generated.go similarity index 94% rename from vendor/k8s.io/client-go/1.5/pkg/apis/apps/v1alpha1/types.generated.go rename to vendor/k8s.io/client-go/pkg/apis/apps/v1beta1/types.generated.go index 2bea91f51..6436d90a8 100644 --- a/vendor/k8s.io/client-go/1.5/pkg/apis/apps/v1alpha1/types.generated.go +++ b/vendor/k8s.io/client-go/pkg/apis/apps/v1beta1/types.generated.go @@ -19,17 +19,17 @@ limitations under the License. // THIS FILE IS AUTO-GENERATED BY codecgen. // ************************************************************ -package v1alpha1 +package v1beta1 import ( "errors" "fmt" codec1978 "github.com/ugorji/go/codec" - pkg4_resource "k8s.io/client-go/1.5/pkg/api/resource" - pkg1_unversioned "k8s.io/client-go/1.5/pkg/api/unversioned" - pkg2_v1 "k8s.io/client-go/1.5/pkg/api/v1" - pkg3_types "k8s.io/client-go/1.5/pkg/types" - pkg5_intstr "k8s.io/client-go/1.5/pkg/util/intstr" + pkg4_resource "k8s.io/client-go/pkg/api/resource" + pkg1_unversioned "k8s.io/client-go/pkg/api/unversioned" + pkg2_v1 "k8s.io/client-go/pkg/api/v1" + pkg3_types "k8s.io/client-go/pkg/types" + pkg5_intstr "k8s.io/client-go/pkg/util/intstr" "reflect" "runtime" time "time" @@ -75,7 +75,7 @@ func init() { } } -func (x *PetSet) CodecEncodeSelf(e *codec1978.Encoder) { +func (x *StatefulSet) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r @@ -220,7 +220,7 @@ func (x *PetSet) CodecEncodeSelf(e *codec1978.Encoder) { } } -func (x *PetSet) CodecDecodeSelf(d *codec1978.Decoder) { +func (x *StatefulSet) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r @@ -250,7 +250,7 @@ func (x *PetSet) CodecDecodeSelf(d *codec1978.Decoder) { } } -func (x *PetSet) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { +func (x *StatefulSet) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r @@ -293,14 +293,14 @@ func (x *PetSet) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } case "spec": if r.TryDecodeAsNil() { - x.Spec = PetSetSpec{} + x.Spec = StatefulSetSpec{} } else { yyv24 := &x.Spec yyv24.CodecDecodeSelf(d) } case "status": if r.TryDecodeAsNil() { - x.Status = PetSetStatus{} + x.Status = StatefulSetStatus{} } else { yyv25 := &x.Status yyv25.CodecDecodeSelf(d) @@ -312,7 +312,7 @@ func (x *PetSet) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } -func (x *PetSet) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { +func (x *StatefulSet) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r @@ -380,7 +380,7 @@ func (x *PetSet) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.Spec = PetSetSpec{} + x.Spec = StatefulSetSpec{} } else { yyv30 := &x.Spec yyv30.CodecDecodeSelf(d) @@ -397,7 +397,7 @@ func (x *PetSet) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.Status = PetSetStatus{} + x.Status = StatefulSetStatus{} } else { yyv31 := &x.Status yyv31.CodecDecodeSelf(d) @@ -418,7 +418,7 @@ func (x *PetSet) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } -func (x *PetSetSpec) CodecEncodeSelf(e *codec1978.Encoder) { +func (x *StatefulSetSpec) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r @@ -593,7 +593,7 @@ func (x *PetSetSpec) CodecEncodeSelf(e *codec1978.Encoder) { } } -func (x *PetSetSpec) CodecDecodeSelf(d *codec1978.Decoder) { +func (x *StatefulSetSpec) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r @@ -623,7 +623,7 @@ func (x *PetSetSpec) CodecDecodeSelf(d *codec1978.Decoder) { } } -func (x *PetSetSpec) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { +func (x *StatefulSetSpec) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r @@ -710,7 +710,7 @@ func (x *PetSetSpec) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } -func (x *PetSetSpec) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { +func (x *StatefulSetSpec) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r @@ -841,7 +841,7 @@ func (x *PetSetSpec) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } -func (x *PetSetStatus) CodecEncodeSelf(e *codec1978.Encoder) { +func (x *StatefulSetStatus) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r @@ -935,7 +935,7 @@ func (x *PetSetStatus) CodecEncodeSelf(e *codec1978.Encoder) { } } -func (x *PetSetStatus) CodecDecodeSelf(d *codec1978.Decoder) { +func (x *StatefulSetStatus) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r @@ -965,7 +965,7 @@ func (x *PetSetStatus) CodecDecodeSelf(d *codec1978.Decoder) { } } -func (x *PetSetStatus) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { +func (x *StatefulSetStatus) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r @@ -1016,7 +1016,7 @@ func (x *PetSetStatus) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } -func (x *PetSetStatus) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { +func (x *StatefulSetStatus) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r @@ -1081,7 +1081,7 @@ func (x *PetSetStatus) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } -func (x *PetSetList) CodecEncodeSelf(e *codec1978.Encoder) { +func (x *StatefulSetList) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r @@ -1202,7 +1202,7 @@ func (x *PetSetList) CodecEncodeSelf(e *codec1978.Encoder) { _ = yym105 if false { } else { - h.encSlicePetSet(([]PetSet)(x.Items), e) + h.encSliceStatefulSet(([]StatefulSet)(x.Items), e) } } } else { @@ -1216,7 +1216,7 @@ func (x *PetSetList) CodecEncodeSelf(e *codec1978.Encoder) { _ = yym106 if false { } else { - h.encSlicePetSet(([]PetSet)(x.Items), e) + h.encSliceStatefulSet(([]StatefulSet)(x.Items), e) } } } @@ -1229,7 +1229,7 @@ func (x *PetSetList) CodecEncodeSelf(e *codec1978.Encoder) { } } -func (x *PetSetList) CodecDecodeSelf(d *codec1978.Decoder) { +func (x *StatefulSetList) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r @@ -1259,7 +1259,7 @@ func (x *PetSetList) CodecDecodeSelf(d *codec1978.Decoder) { } } -func (x *PetSetList) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { +func (x *StatefulSetList) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r @@ -1315,7 +1315,7 @@ func (x *PetSetList) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { _ = yym115 if false { } else { - h.decSlicePetSet((*[]PetSet)(yyv114), d) + h.decSliceStatefulSet((*[]StatefulSet)(yyv114), d) } } default: @@ -1325,7 +1325,7 @@ func (x *PetSetList) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } -func (x *PetSetList) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { +func (x *StatefulSetList) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r @@ -1406,7 +1406,7 @@ func (x *PetSetList) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { _ = yym122 if false { } else { - h.decSlicePetSet((*[]PetSet)(yyv121), d) + h.decSliceStatefulSet((*[]StatefulSet)(yyv121), d) } } for { @@ -1541,7 +1541,7 @@ func (x codecSelfer1234) decSlicev1_PersistentVolumeClaim(v *[]pkg2_v1.Persisten } } -func (x codecSelfer1234) encSlicePetSet(v []PetSet, e *codec1978.Encoder) { +func (x codecSelfer1234) encSliceStatefulSet(v []StatefulSet, e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r @@ -1554,7 +1554,7 @@ func (x codecSelfer1234) encSlicePetSet(v []PetSet, e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } -func (x codecSelfer1234) decSlicePetSet(v *[]PetSet, d *codec1978.Decoder) { +func (x codecSelfer1234) decSliceStatefulSet(v *[]StatefulSet, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r @@ -1564,7 +1564,7 @@ func (x codecSelfer1234) decSlicePetSet(v *[]PetSet, d *codec1978.Decoder) { var yyc131 bool if yyl131 == 0 { if yyv131 == nil { - yyv131 = []PetSet{} + yyv131 = []StatefulSet{} yyc131 = true } else if len(yyv131) != 0 { yyv131 = yyv131[:0] @@ -1582,10 +1582,10 @@ func (x codecSelfer1234) decSlicePetSet(v *[]PetSet, d *codec1978.Decoder) { if yyrl131 <= cap(yyv131) { yyv131 = yyv131[:yyrl131] } else { - yyv131 = make([]PetSet, yyrl131) + yyv131 = make([]StatefulSet, yyrl131) } } else { - yyv131 = make([]PetSet, yyrl131) + yyv131 = make([]StatefulSet, yyrl131) } yyc131 = true yyrr131 = len(yyv131) @@ -1600,7 +1600,7 @@ func (x codecSelfer1234) decSlicePetSet(v *[]PetSet, d *codec1978.Decoder) { for ; yyj131 < yyrr131; yyj131++ { yyh131.ElemContainerState(yyj131) if r.TryDecodeAsNil() { - yyv131[yyj131] = PetSet{} + yyv131[yyj131] = StatefulSet{} } else { yyv132 := &yyv131[yyj131] yyv132.CodecDecodeSelf(d) @@ -1609,10 +1609,10 @@ func (x codecSelfer1234) decSlicePetSet(v *[]PetSet, d *codec1978.Decoder) { } if yyrt131 { for ; yyj131 < yyl131; yyj131++ { - yyv131 = append(yyv131, PetSet{}) + yyv131 = append(yyv131, StatefulSet{}) yyh131.ElemContainerState(yyj131) if r.TryDecodeAsNil() { - yyv131[yyj131] = PetSet{} + yyv131[yyj131] = StatefulSet{} } else { yyv133 := &yyv131[yyj131] yyv133.CodecDecodeSelf(d) @@ -1626,13 +1626,13 @@ func (x codecSelfer1234) decSlicePetSet(v *[]PetSet, d *codec1978.Decoder) { for ; !r.CheckBreak(); yyj131++ { if yyj131 >= len(yyv131) { - yyv131 = append(yyv131, PetSet{}) // var yyz131 PetSet + yyv131 = append(yyv131, StatefulSet{}) // var yyz131 StatefulSet yyc131 = true } yyh131.ElemContainerState(yyj131) if yyj131 < len(yyv131) { if r.TryDecodeAsNil() { - yyv131[yyj131] = PetSet{} + yyv131[yyj131] = StatefulSet{} } else { yyv134 := &yyv131[yyj131] yyv134.CodecDecodeSelf(d) @@ -1647,7 +1647,7 @@ func (x codecSelfer1234) decSlicePetSet(v *[]PetSet, d *codec1978.Decoder) { yyv131 = yyv131[:yyj131] yyc131 = true } else if yyj131 == 0 && yyv131 == nil { - yyv131 = []PetSet{} + yyv131 = []StatefulSet{} yyc131 = true } } diff --git a/vendor/k8s.io/client-go/1.5/pkg/apis/apps/v1alpha1/types.go b/vendor/k8s.io/client-go/pkg/apis/apps/v1beta1/types.go similarity index 59% rename from vendor/k8s.io/client-go/1.5/pkg/apis/apps/v1alpha1/types.go rename to vendor/k8s.io/client-go/pkg/apis/apps/v1beta1/types.go index 7502cc192..0db244ecc 100644 --- a/vendor/k8s.io/client-go/1.5/pkg/apis/apps/v1alpha1/types.go +++ b/vendor/k8s.io/client-go/pkg/apis/apps/v1beta1/types.go @@ -14,83 +14,90 @@ See the License for the specific language governing permissions and limitations under the License. */ -package v1alpha1 +package v1beta1 import ( - "k8s.io/client-go/1.5/pkg/api/unversioned" - "k8s.io/client-go/1.5/pkg/api/v1" + "k8s.io/client-go/pkg/api/unversioned" + "k8s.io/client-go/pkg/api/v1" ) // +genclient=true -// PetSet represents a set of pods with consistent identities. +// StatefulSet represents a set of pods with consistent identities. // Identities are defined as: // - Network: A single stable DNS and hostname. // - Storage: As many VolumeClaims as requested. -// The PetSet guarantees that a given network identity will always -// map to the same storage identity. PetSet is currently in alpha -// and subject to change without notice. -type PetSet struct { +// The StatefulSet guarantees that a given network identity will always +// map to the same storage identity. +type StatefulSet struct { unversioned.TypeMeta `json:",inline"` - v1.ObjectMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"` + // +optional + v1.ObjectMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"` - // Spec defines the desired identities of pets in this set. - Spec PetSetSpec `json:"spec,omitempty" protobuf:"bytes,2,opt,name=spec"` + // Spec defines the desired identities of pods in this set. + // +optional + Spec StatefulSetSpec `json:"spec,omitempty" protobuf:"bytes,2,opt,name=spec"` - // Status is the current status of Pets in this PetSet. This data + // Status is the current status of Pods in this StatefulSet. This data // may be out of date by some window of time. - Status PetSetStatus `json:"status,omitempty" protobuf:"bytes,3,opt,name=status"` + // +optional + Status StatefulSetStatus `json:"status,omitempty" protobuf:"bytes,3,opt,name=status"` } -// A PetSetSpec is the specification of a PetSet. -type PetSetSpec struct { +// A StatefulSetSpec is the specification of a StatefulSet. +type StatefulSetSpec struct { // Replicas is the desired number of replicas of the given Template. // These are replicas in the sense that they are instantiations of the // same Template, but individual replicas also have a consistent identity. // If unspecified, defaults to 1. // TODO: Consider a rename of this field. + // +optional Replicas *int32 `json:"replicas,omitempty" protobuf:"varint,1,opt,name=replicas"` // Selector is a label query over pods that should match the replica count. // If empty, defaulted to labels on the pod template. - // More info: http://releases.k8s.io/HEAD/docs/user-guide/labels.md#label-selectors + // More info: http://kubernetes.io/docs/user-guide/labels#label-selectors + // +optional Selector *unversioned.LabelSelector `json:"selector,omitempty" protobuf:"bytes,2,opt,name=selector"` // Template is the object that describes the pod that will be created if - // insufficient replicas are detected. Each pod stamped out by the PetSet + // insufficient replicas are detected. Each pod stamped out by the StatefulSet // will fulfill this Template, but have a unique identity from the rest - // of the PetSet. + // of the StatefulSet. Template v1.PodTemplateSpec `json:"template" protobuf:"bytes,3,opt,name=template"` - // VolumeClaimTemplates is a list of claims that pets are allowed to reference. - // The PetSet controller is responsible for mapping network identities to - // claims in a way that maintains the identity of a pet. Every claim in + // VolumeClaimTemplates is a list of claims that pods are allowed to reference. + // The StatefulSet controller is responsible for mapping network identities to + // claims in a way that maintains the identity of a pod. Every claim in // this list must have at least one matching (by name) volumeMount in one // container in the template. A claim in this list takes precedence over // any volumes in the template, with the same name. // TODO: Define the behavior if a claim already exists with the same name. + // +optional VolumeClaimTemplates []v1.PersistentVolumeClaim `json:"volumeClaimTemplates,omitempty" protobuf:"bytes,4,rep,name=volumeClaimTemplates"` - // ServiceName is the name of the service that governs this PetSet. - // This service must exist before the PetSet, and is responsible for - // the network identity of the set. Pets get DNS/hostnames that follow the - // pattern: pet-specific-string.serviceName.default.svc.cluster.local - // where "pet-specific-string" is managed by the PetSet controller. + // ServiceName is the name of the service that governs this StatefulSet. + // This service must exist before the StatefulSet, and is responsible for + // the network identity of the set. Pods get DNS/hostnames that follow the + // pattern: pod-specific-string.serviceName.default.svc.cluster.local + // where "pod-specific-string" is managed by the StatefulSet controller. ServiceName string `json:"serviceName" protobuf:"bytes,5,opt,name=serviceName"` } -// PetSetStatus represents the current state of a PetSet. -type PetSetStatus struct { +// StatefulSetStatus represents the current state of a StatefulSet. +type StatefulSetStatus struct { // most recent generation observed by this autoscaler. + // +optional ObservedGeneration *int64 `json:"observedGeneration,omitempty" protobuf:"varint,1,opt,name=observedGeneration"` // Replicas is the number of actual replicas. Replicas int32 `json:"replicas" protobuf:"varint,2,opt,name=replicas"` } -// PetSetList is a collection of PetSets. -type PetSetList struct { +// StatefulSetList is a collection of StatefulSets. +type StatefulSetList struct { unversioned.TypeMeta `json:",inline"` + // +optional unversioned.ListMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"` - Items []PetSet `json:"items" protobuf:"bytes,2,rep,name=items"` + Items []StatefulSet `json:"items" protobuf:"bytes,2,rep,name=items"` } diff --git a/vendor/k8s.io/client-go/pkg/apis/apps/v1beta1/types_swagger_doc_generated.go b/vendor/k8s.io/client-go/pkg/apis/apps/v1beta1/types_swagger_doc_generated.go new file mode 100644 index 000000000..837181c1c --- /dev/null +++ b/vendor/k8s.io/client-go/pkg/apis/apps/v1beta1/types_swagger_doc_generated.go @@ -0,0 +1,71 @@ +/* +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_StatefulSet = map[string]string{ + "": "StatefulSet represents a set of pods with consistent identities. Identities are defined as:\n - Network: A single stable DNS and hostname.\n - Storage: As many VolumeClaims as requested.\nThe StatefulSet guarantees that a given network identity will always map to the same storage identity.", + "spec": "Spec defines the desired identities of pods in this set.", + "status": "Status is the current status of Pods in this StatefulSet. This data may be out of date by some window of time.", +} + +func (StatefulSet) SwaggerDoc() map[string]string { + return map_StatefulSet +} + +var map_StatefulSetList = map[string]string{ + "": "StatefulSetList is a collection of StatefulSets.", +} + +func (StatefulSetList) SwaggerDoc() map[string]string { + return map_StatefulSetList +} + +var map_StatefulSetSpec = map[string]string{ + "": "A StatefulSetSpec is the specification of a StatefulSet.", + "replicas": "Replicas is the desired number of replicas of the given Template. These are replicas in the sense that they are instantiations of the same Template, but individual replicas also have a consistent identity. If unspecified, defaults to 1.", + "selector": "Selector is a label query over pods that should match the replica count. If empty, defaulted to labels on the pod template. More info: http://kubernetes.io/docs/user-guide/labels#label-selectors", + "template": "Template is the object that describes the pod that will be created if insufficient replicas are detected. Each pod stamped out by the StatefulSet will fulfill this Template, but have a unique identity from the rest of the StatefulSet.", + "volumeClaimTemplates": "VolumeClaimTemplates is a list of claims that pods are allowed to reference. The StatefulSet controller is responsible for mapping network identities to claims in a way that maintains the identity of a pod. Every claim in this list must have at least one matching (by name) volumeMount in one container in the template. A claim in this list takes precedence over any volumes in the template, with the same name.", + "serviceName": "ServiceName is the name of the service that governs this StatefulSet. This service must exist before the StatefulSet, and is responsible for the network identity of the set. Pods get DNS/hostnames that follow the pattern: pod-specific-string.serviceName.default.svc.cluster.local where \"pod-specific-string\" is managed by the StatefulSet controller.", +} + +func (StatefulSetSpec) SwaggerDoc() map[string]string { + return map_StatefulSetSpec +} + +var map_StatefulSetStatus = map[string]string{ + "": "StatefulSetStatus represents the current state of a StatefulSet.", + "observedGeneration": "most recent generation observed by this autoscaler.", + "replicas": "Replicas is the number of actual replicas.", +} + +func (StatefulSetStatus) SwaggerDoc() map[string]string { + return map_StatefulSetStatus +} + +// AUTO-GENERATED FUNCTIONS END HERE diff --git a/vendor/k8s.io/client-go/pkg/apis/apps/v1beta1/zz_generated.conversion.go b/vendor/k8s.io/client-go/pkg/apis/apps/v1beta1/zz_generated.conversion.go new file mode 100644 index 000000000..8e4afe926 --- /dev/null +++ b/vendor/k8s.io/client-go/pkg/apis/apps/v1beta1/zz_generated.conversion.go @@ -0,0 +1,172 @@ +// +build !ignore_autogenerated + +/* +Copyright 2017 The Kubernetes Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT 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/client-go/pkg/api" + unversioned "k8s.io/client-go/pkg/api/unversioned" + v1 "k8s.io/client-go/pkg/api/v1" + apps "k8s.io/client-go/pkg/apis/apps" + conversion "k8s.io/client-go/pkg/conversion" + runtime "k8s.io/client-go/pkg/runtime" + unsafe "unsafe" +) + +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_StatefulSet_To_apps_StatefulSet, + Convert_apps_StatefulSet_To_v1beta1_StatefulSet, + Convert_v1beta1_StatefulSetList_To_apps_StatefulSetList, + Convert_apps_StatefulSetList_To_v1beta1_StatefulSetList, + Convert_v1beta1_StatefulSetSpec_To_apps_StatefulSetSpec, + Convert_apps_StatefulSetSpec_To_v1beta1_StatefulSetSpec, + Convert_v1beta1_StatefulSetStatus_To_apps_StatefulSetStatus, + Convert_apps_StatefulSetStatus_To_v1beta1_StatefulSetStatus, + ) +} + +func autoConvert_v1beta1_StatefulSet_To_apps_StatefulSet(in *StatefulSet, out *apps.StatefulSet, s conversion.Scope) error { + // TODO: Inefficient conversion - can we improve it? + if err := s.Convert(&in.ObjectMeta, &out.ObjectMeta, 0); err != nil { + return err + } + if err := Convert_v1beta1_StatefulSetSpec_To_apps_StatefulSetSpec(&in.Spec, &out.Spec, s); err != nil { + return err + } + if err := Convert_v1beta1_StatefulSetStatus_To_apps_StatefulSetStatus(&in.Status, &out.Status, s); err != nil { + return err + } + return nil +} + +func Convert_v1beta1_StatefulSet_To_apps_StatefulSet(in *StatefulSet, out *apps.StatefulSet, s conversion.Scope) error { + return autoConvert_v1beta1_StatefulSet_To_apps_StatefulSet(in, out, s) +} + +func autoConvert_apps_StatefulSet_To_v1beta1_StatefulSet(in *apps.StatefulSet, out *StatefulSet, s conversion.Scope) error { + // TODO: Inefficient conversion - can we improve it? + if err := s.Convert(&in.ObjectMeta, &out.ObjectMeta, 0); err != nil { + return err + } + if err := Convert_apps_StatefulSetSpec_To_v1beta1_StatefulSetSpec(&in.Spec, &out.Spec, s); err != nil { + return err + } + if err := Convert_apps_StatefulSetStatus_To_v1beta1_StatefulSetStatus(&in.Status, &out.Status, s); err != nil { + return err + } + return nil +} + +func Convert_apps_StatefulSet_To_v1beta1_StatefulSet(in *apps.StatefulSet, out *StatefulSet, s conversion.Scope) error { + return autoConvert_apps_StatefulSet_To_v1beta1_StatefulSet(in, out, s) +} + +func autoConvert_v1beta1_StatefulSetList_To_apps_StatefulSetList(in *StatefulSetList, out *apps.StatefulSetList, s conversion.Scope) error { + out.ListMeta = in.ListMeta + if in.Items != nil { + in, out := &in.Items, &out.Items + *out = make([]apps.StatefulSet, len(*in)) + for i := range *in { + if err := Convert_v1beta1_StatefulSet_To_apps_StatefulSet(&(*in)[i], &(*out)[i], s); err != nil { + return err + } + } + } else { + out.Items = nil + } + return nil +} + +func Convert_v1beta1_StatefulSetList_To_apps_StatefulSetList(in *StatefulSetList, out *apps.StatefulSetList, s conversion.Scope) error { + return autoConvert_v1beta1_StatefulSetList_To_apps_StatefulSetList(in, out, s) +} + +func autoConvert_apps_StatefulSetList_To_v1beta1_StatefulSetList(in *apps.StatefulSetList, out *StatefulSetList, s conversion.Scope) error { + out.ListMeta = in.ListMeta + if in.Items != nil { + in, out := &in.Items, &out.Items + *out = make([]StatefulSet, len(*in)) + for i := range *in { + if err := Convert_apps_StatefulSet_To_v1beta1_StatefulSet(&(*in)[i], &(*out)[i], s); err != nil { + return err + } + } + } else { + out.Items = nil + } + return nil +} + +func Convert_apps_StatefulSetList_To_v1beta1_StatefulSetList(in *apps.StatefulSetList, out *StatefulSetList, s conversion.Scope) error { + return autoConvert_apps_StatefulSetList_To_v1beta1_StatefulSetList(in, out, s) +} + +func autoConvert_v1beta1_StatefulSetSpec_To_apps_StatefulSetSpec(in *StatefulSetSpec, out *apps.StatefulSetSpec, s conversion.Scope) error { + if err := api.Convert_Pointer_int32_To_int32(&in.Replicas, &out.Replicas, s); err != nil { + return err + } + out.Selector = (*unversioned.LabelSelector)(unsafe.Pointer(in.Selector)) + if err := v1.Convert_v1_PodTemplateSpec_To_api_PodTemplateSpec(&in.Template, &out.Template, s); err != nil { + return err + } + out.VolumeClaimTemplates = *(*[]api.PersistentVolumeClaim)(unsafe.Pointer(&in.VolumeClaimTemplates)) + out.ServiceName = in.ServiceName + return nil +} + +func autoConvert_apps_StatefulSetSpec_To_v1beta1_StatefulSetSpec(in *apps.StatefulSetSpec, out *StatefulSetSpec, s conversion.Scope) error { + if err := api.Convert_int32_To_Pointer_int32(&in.Replicas, &out.Replicas, s); err != nil { + return err + } + out.Selector = (*unversioned.LabelSelector)(unsafe.Pointer(in.Selector)) + if err := v1.Convert_api_PodTemplateSpec_To_v1_PodTemplateSpec(&in.Template, &out.Template, s); err != nil { + return err + } + out.VolumeClaimTemplates = *(*[]v1.PersistentVolumeClaim)(unsafe.Pointer(&in.VolumeClaimTemplates)) + out.ServiceName = in.ServiceName + return nil +} + +func autoConvert_v1beta1_StatefulSetStatus_To_apps_StatefulSetStatus(in *StatefulSetStatus, out *apps.StatefulSetStatus, s conversion.Scope) error { + out.ObservedGeneration = (*int64)(unsafe.Pointer(in.ObservedGeneration)) + out.Replicas = in.Replicas + return nil +} + +func Convert_v1beta1_StatefulSetStatus_To_apps_StatefulSetStatus(in *StatefulSetStatus, out *apps.StatefulSetStatus, s conversion.Scope) error { + return autoConvert_v1beta1_StatefulSetStatus_To_apps_StatefulSetStatus(in, out, s) +} + +func autoConvert_apps_StatefulSetStatus_To_v1beta1_StatefulSetStatus(in *apps.StatefulSetStatus, out *StatefulSetStatus, s conversion.Scope) error { + out.ObservedGeneration = (*int64)(unsafe.Pointer(in.ObservedGeneration)) + out.Replicas = in.Replicas + return nil +} + +func Convert_apps_StatefulSetStatus_To_v1beta1_StatefulSetStatus(in *apps.StatefulSetStatus, out *StatefulSetStatus, s conversion.Scope) error { + return autoConvert_apps_StatefulSetStatus_To_v1beta1_StatefulSetStatus(in, out, s) +} diff --git a/vendor/k8s.io/client-go/1.5/pkg/apis/apps/v1alpha1/zz_generated.deepcopy.go b/vendor/k8s.io/client-go/pkg/apis/apps/v1beta1/zz_generated.deepcopy.go similarity index 61% rename from vendor/k8s.io/client-go/1.5/pkg/apis/apps/v1alpha1/zz_generated.deepcopy.go rename to vendor/k8s.io/client-go/pkg/apis/apps/v1beta1/zz_generated.deepcopy.go index 5c36b9e40..79a0709ba 100644 --- a/vendor/k8s.io/client-go/1.5/pkg/apis/apps/v1alpha1/zz_generated.deepcopy.go +++ b/vendor/k8s.io/client-go/pkg/apis/apps/v1beta1/zz_generated.deepcopy.go @@ -1,7 +1,7 @@ // +build !ignore_autogenerated /* -Copyright 2016 The Kubernetes Authors. +Copyright 2017 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -18,13 +18,13 @@ limitations under the License. // This file was autogenerated by deepcopy-gen. Do not edit it manually! -package v1alpha1 +package v1beta1 import ( - unversioned "k8s.io/client-go/1.5/pkg/api/unversioned" - v1 "k8s.io/client-go/1.5/pkg/api/v1" - conversion "k8s.io/client-go/1.5/pkg/conversion" - runtime "k8s.io/client-go/1.5/pkg/runtime" + unversioned "k8s.io/client-go/pkg/api/unversioned" + v1 "k8s.io/client-go/pkg/api/v1" + conversion "k8s.io/client-go/pkg/conversion" + runtime "k8s.io/client-go/pkg/runtime" reflect "reflect" ) @@ -36,42 +36,42 @@ func init() { // 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{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_v1beta1_StatefulSet, InType: reflect.TypeOf(&StatefulSet{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_v1beta1_StatefulSetList, InType: reflect.TypeOf(&StatefulSetList{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_v1beta1_StatefulSetSpec, InType: reflect.TypeOf(&StatefulSetSpec{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_v1beta1_StatefulSetStatus, InType: reflect.TypeOf(&StatefulSetStatus{})}, ) } -func DeepCopy_v1alpha1_PetSet(in interface{}, out interface{}, c *conversion.Cloner) error { +func DeepCopy_v1beta1_StatefulSet(in interface{}, out interface{}, c *conversion.Cloner) error { { - in := in.(*PetSet) - out := out.(*PetSet) + in := in.(*StatefulSet) + out := out.(*StatefulSet) 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 { + if err := DeepCopy_v1beta1_StatefulSetSpec(&in.Spec, &out.Spec, c); err != nil { return err } - if err := DeepCopy_v1alpha1_PetSetStatus(&in.Status, &out.Status, c); err != nil { + if err := DeepCopy_v1beta1_StatefulSetStatus(&in.Status, &out.Status, c); err != nil { return err } return nil } } -func DeepCopy_v1alpha1_PetSetList(in interface{}, out interface{}, c *conversion.Cloner) error { +func DeepCopy_v1beta1_StatefulSetList(in interface{}, out interface{}, c *conversion.Cloner) error { { - in := in.(*PetSetList) - out := out.(*PetSetList) + in := in.(*StatefulSetList) + out := out.(*StatefulSetList) out.TypeMeta = in.TypeMeta out.ListMeta = in.ListMeta if in.Items != nil { in, out := &in.Items, &out.Items - *out = make([]PetSet, len(*in)) + *out = make([]StatefulSet, len(*in)) for i := range *in { - if err := DeepCopy_v1alpha1_PetSet(&(*in)[i], &(*out)[i], c); err != nil { + if err := DeepCopy_v1beta1_StatefulSet(&(*in)[i], &(*out)[i], c); err != nil { return err } } @@ -82,10 +82,10 @@ func DeepCopy_v1alpha1_PetSetList(in interface{}, out interface{}, c *conversion } } -func DeepCopy_v1alpha1_PetSetSpec(in interface{}, out interface{}, c *conversion.Cloner) error { +func DeepCopy_v1beta1_StatefulSetSpec(in interface{}, out interface{}, c *conversion.Cloner) error { { - in := in.(*PetSetSpec) - out := out.(*PetSetSpec) + in := in.(*StatefulSetSpec) + out := out.(*StatefulSetSpec) if in.Replicas != nil { in, out := &in.Replicas, &out.Replicas *out = new(int32) @@ -121,10 +121,10 @@ func DeepCopy_v1alpha1_PetSetSpec(in interface{}, out interface{}, c *conversion } } -func DeepCopy_v1alpha1_PetSetStatus(in interface{}, out interface{}, c *conversion.Cloner) error { +func DeepCopy_v1beta1_StatefulSetStatus(in interface{}, out interface{}, c *conversion.Cloner) error { { - in := in.(*PetSetStatus) - out := out.(*PetSetStatus) + in := in.(*StatefulSetStatus) + out := out.(*StatefulSetStatus) if in.ObservedGeneration != nil { in, out := &in.ObservedGeneration, &out.ObservedGeneration *out = new(int64) diff --git a/vendor/k8s.io/client-go/pkg/apis/apps/v1beta1/zz_generated.defaults.go b/vendor/k8s.io/client-go/pkg/apis/apps/v1beta1/zz_generated.defaults.go new file mode 100644 index 000000000..ca26a1b3b --- /dev/null +++ b/vendor/k8s.io/client-go/pkg/apis/apps/v1beta1/zz_generated.defaults.go @@ -0,0 +1,166 @@ +// +build !ignore_autogenerated + +/* +Copyright 2017 The Kubernetes Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT 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 defaulter-gen. Do not edit it manually! + +package v1beta1 + +import ( + v1 "k8s.io/client-go/pkg/api/v1" + runtime "k8s.io/client-go/pkg/runtime" +) + +// RegisterDefaults adds defaulters functions to the given scheme. +// Public to allow building arbitrary schemes. +// All generated defaulters are covering - they call all nested defaulters. +func RegisterDefaults(scheme *runtime.Scheme) error { + scheme.AddTypeDefaultingFunc(&StatefulSet{}, func(obj interface{}) { SetObjectDefaults_StatefulSet(obj.(*StatefulSet)) }) + scheme.AddTypeDefaultingFunc(&StatefulSetList{}, func(obj interface{}) { SetObjectDefaults_StatefulSetList(obj.(*StatefulSetList)) }) + return nil +} + +func SetObjectDefaults_StatefulSet(in *StatefulSet) { + SetDefaults_StatefulSet(in) + v1.SetDefaults_PodSpec(&in.Spec.Template.Spec) + for i := range in.Spec.Template.Spec.Volumes { + a := &in.Spec.Template.Spec.Volumes[i] + v1.SetDefaults_Volume(a) + if a.VolumeSource.Secret != nil { + v1.SetDefaults_SecretVolumeSource(a.VolumeSource.Secret) + } + if a.VolumeSource.ISCSI != nil { + v1.SetDefaults_ISCSIVolumeSource(a.VolumeSource.ISCSI) + } + if a.VolumeSource.RBD != nil { + v1.SetDefaults_RBDVolumeSource(a.VolumeSource.RBD) + } + if a.VolumeSource.DownwardAPI != nil { + v1.SetDefaults_DownwardAPIVolumeSource(a.VolumeSource.DownwardAPI) + for j := range a.VolumeSource.DownwardAPI.Items { + b := &a.VolumeSource.DownwardAPI.Items[j] + if b.FieldRef != nil { + v1.SetDefaults_ObjectFieldSelector(b.FieldRef) + } + } + } + if a.VolumeSource.ConfigMap != nil { + v1.SetDefaults_ConfigMapVolumeSource(a.VolumeSource.ConfigMap) + } + if a.VolumeSource.AzureDisk != nil { + v1.SetDefaults_AzureDiskVolumeSource(a.VolumeSource.AzureDisk) + } + } + for i := range in.Spec.Template.Spec.InitContainers { + a := &in.Spec.Template.Spec.InitContainers[i] + v1.SetDefaults_Container(a) + for j := range a.Ports { + b := &a.Ports[j] + v1.SetDefaults_ContainerPort(b) + } + for j := range a.Env { + b := &a.Env[j] + if b.ValueFrom != nil { + if b.ValueFrom.FieldRef != nil { + v1.SetDefaults_ObjectFieldSelector(b.ValueFrom.FieldRef) + } + } + } + v1.SetDefaults_ResourceList(&a.Resources.Limits) + v1.SetDefaults_ResourceList(&a.Resources.Requests) + if a.LivenessProbe != nil { + v1.SetDefaults_Probe(a.LivenessProbe) + if a.LivenessProbe.Handler.HTTPGet != nil { + v1.SetDefaults_HTTPGetAction(a.LivenessProbe.Handler.HTTPGet) + } + } + if a.ReadinessProbe != nil { + v1.SetDefaults_Probe(a.ReadinessProbe) + if a.ReadinessProbe.Handler.HTTPGet != nil { + v1.SetDefaults_HTTPGetAction(a.ReadinessProbe.Handler.HTTPGet) + } + } + if a.Lifecycle != nil { + if a.Lifecycle.PostStart != nil { + if a.Lifecycle.PostStart.HTTPGet != nil { + v1.SetDefaults_HTTPGetAction(a.Lifecycle.PostStart.HTTPGet) + } + } + if a.Lifecycle.PreStop != nil { + if a.Lifecycle.PreStop.HTTPGet != nil { + v1.SetDefaults_HTTPGetAction(a.Lifecycle.PreStop.HTTPGet) + } + } + } + } + for i := range in.Spec.Template.Spec.Containers { + a := &in.Spec.Template.Spec.Containers[i] + v1.SetDefaults_Container(a) + for j := range a.Ports { + b := &a.Ports[j] + v1.SetDefaults_ContainerPort(b) + } + for j := range a.Env { + b := &a.Env[j] + if b.ValueFrom != nil { + if b.ValueFrom.FieldRef != nil { + v1.SetDefaults_ObjectFieldSelector(b.ValueFrom.FieldRef) + } + } + } + v1.SetDefaults_ResourceList(&a.Resources.Limits) + v1.SetDefaults_ResourceList(&a.Resources.Requests) + if a.LivenessProbe != nil { + v1.SetDefaults_Probe(a.LivenessProbe) + if a.LivenessProbe.Handler.HTTPGet != nil { + v1.SetDefaults_HTTPGetAction(a.LivenessProbe.Handler.HTTPGet) + } + } + if a.ReadinessProbe != nil { + v1.SetDefaults_Probe(a.ReadinessProbe) + if a.ReadinessProbe.Handler.HTTPGet != nil { + v1.SetDefaults_HTTPGetAction(a.ReadinessProbe.Handler.HTTPGet) + } + } + if a.Lifecycle != nil { + if a.Lifecycle.PostStart != nil { + if a.Lifecycle.PostStart.HTTPGet != nil { + v1.SetDefaults_HTTPGetAction(a.Lifecycle.PostStart.HTTPGet) + } + } + if a.Lifecycle.PreStop != nil { + if a.Lifecycle.PreStop.HTTPGet != nil { + v1.SetDefaults_HTTPGetAction(a.Lifecycle.PreStop.HTTPGet) + } + } + } + } + for i := range in.Spec.VolumeClaimTemplates { + a := &in.Spec.VolumeClaimTemplates[i] + v1.SetDefaults_PersistentVolumeClaim(a) + v1.SetDefaults_ResourceList(&a.Spec.Resources.Limits) + v1.SetDefaults_ResourceList(&a.Spec.Resources.Requests) + v1.SetDefaults_ResourceList(&a.Status.Capacity) + } +} + +func SetObjectDefaults_StatefulSetList(in *StatefulSetList) { + for i := range in.Items { + a := &in.Items[i] + SetObjectDefaults_StatefulSet(a) + } +} diff --git a/vendor/k8s.io/client-go/1.5/pkg/apis/apps/zz_generated.deepcopy.go b/vendor/k8s.io/client-go/pkg/apis/apps/zz_generated.deepcopy.go similarity index 60% rename from vendor/k8s.io/client-go/1.5/pkg/apis/apps/zz_generated.deepcopy.go rename to vendor/k8s.io/client-go/pkg/apis/apps/zz_generated.deepcopy.go index adf473b27..780ce7822 100644 --- a/vendor/k8s.io/client-go/1.5/pkg/apis/apps/zz_generated.deepcopy.go +++ b/vendor/k8s.io/client-go/pkg/apis/apps/zz_generated.deepcopy.go @@ -1,7 +1,7 @@ // +build !ignore_autogenerated /* -Copyright 2016 The Kubernetes Authors. +Copyright 2017 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -21,10 +21,10 @@ limitations under the License. package apps import ( - api "k8s.io/client-go/1.5/pkg/api" - unversioned "k8s.io/client-go/1.5/pkg/api/unversioned" - conversion "k8s.io/client-go/1.5/pkg/conversion" - runtime "k8s.io/client-go/1.5/pkg/runtime" + api "k8s.io/client-go/pkg/api" + unversioned "k8s.io/client-go/pkg/api/unversioned" + conversion "k8s.io/client-go/pkg/conversion" + runtime "k8s.io/client-go/pkg/runtime" reflect "reflect" ) @@ -36,42 +36,42 @@ func init() { // 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{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_apps_StatefulSet, InType: reflect.TypeOf(&StatefulSet{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_apps_StatefulSetList, InType: reflect.TypeOf(&StatefulSetList{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_apps_StatefulSetSpec, InType: reflect.TypeOf(&StatefulSetSpec{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_apps_StatefulSetStatus, InType: reflect.TypeOf(&StatefulSetStatus{})}, ) } -func DeepCopy_apps_PetSet(in interface{}, out interface{}, c *conversion.Cloner) error { +func DeepCopy_apps_StatefulSet(in interface{}, out interface{}, c *conversion.Cloner) error { { - in := in.(*PetSet) - out := out.(*PetSet) + in := in.(*StatefulSet) + out := out.(*StatefulSet) 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 { + if err := DeepCopy_apps_StatefulSetSpec(&in.Spec, &out.Spec, c); err != nil { return err } - if err := DeepCopy_apps_PetSetStatus(&in.Status, &out.Status, c); err != nil { + if err := DeepCopy_apps_StatefulSetStatus(&in.Status, &out.Status, c); err != nil { return err } return nil } } -func DeepCopy_apps_PetSetList(in interface{}, out interface{}, c *conversion.Cloner) error { +func DeepCopy_apps_StatefulSetList(in interface{}, out interface{}, c *conversion.Cloner) error { { - in := in.(*PetSetList) - out := out.(*PetSetList) + in := in.(*StatefulSetList) + out := out.(*StatefulSetList) out.TypeMeta = in.TypeMeta out.ListMeta = in.ListMeta if in.Items != nil { in, out := &in.Items, &out.Items - *out = make([]PetSet, len(*in)) + *out = make([]StatefulSet, len(*in)) for i := range *in { - if err := DeepCopy_apps_PetSet(&(*in)[i], &(*out)[i], c); err != nil { + if err := DeepCopy_apps_StatefulSet(&(*in)[i], &(*out)[i], c); err != nil { return err } } @@ -82,10 +82,10 @@ func DeepCopy_apps_PetSetList(in interface{}, out interface{}, c *conversion.Clo } } -func DeepCopy_apps_PetSetSpec(in interface{}, out interface{}, c *conversion.Cloner) error { +func DeepCopy_apps_StatefulSetSpec(in interface{}, out interface{}, c *conversion.Cloner) error { { - in := in.(*PetSetSpec) - out := out.(*PetSetSpec) + in := in.(*StatefulSetSpec) + out := out.(*StatefulSetSpec) out.Replicas = in.Replicas if in.Selector != nil { in, out := &in.Selector, &out.Selector @@ -115,10 +115,10 @@ func DeepCopy_apps_PetSetSpec(in interface{}, out interface{}, c *conversion.Clo } } -func DeepCopy_apps_PetSetStatus(in interface{}, out interface{}, c *conversion.Cloner) error { +func DeepCopy_apps_StatefulSetStatus(in interface{}, out interface{}, c *conversion.Cloner) error { { - in := in.(*PetSetStatus) - out := out.(*PetSetStatus) + in := in.(*StatefulSetStatus) + out := out.(*StatefulSetStatus) if in.ObservedGeneration != nil { in, out := &in.ObservedGeneration, &out.ObservedGeneration *out = new(int64) diff --git a/vendor/k8s.io/client-go/1.5/pkg/apis/authentication/doc.go b/vendor/k8s.io/client-go/pkg/apis/authentication/doc.go similarity index 100% rename from vendor/k8s.io/client-go/1.5/pkg/apis/authentication/doc.go rename to vendor/k8s.io/client-go/pkg/apis/authentication/doc.go diff --git a/vendor/k8s.io/client-go/1.5/pkg/apis/authentication/install/install.go b/vendor/k8s.io/client-go/pkg/apis/authentication/install/install.go similarity index 82% rename from vendor/k8s.io/client-go/1.5/pkg/apis/authentication/install/install.go rename to vendor/k8s.io/client-go/pkg/apis/authentication/install/install.go index e4caa753d..c045d7c58 100644 --- a/vendor/k8s.io/client-go/1.5/pkg/apis/authentication/install/install.go +++ b/vendor/k8s.io/client-go/pkg/apis/authentication/install/install.go @@ -19,10 +19,10 @@ limitations under the License. package install import ( - "k8s.io/client-go/1.5/pkg/apimachinery/announced" - "k8s.io/client-go/1.5/pkg/apis/authentication" - "k8s.io/client-go/1.5/pkg/apis/authentication/v1beta1" - "k8s.io/client-go/1.5/pkg/util/sets" + "k8s.io/client-go/pkg/apimachinery/announced" + "k8s.io/client-go/pkg/apis/authentication" + "k8s.io/client-go/pkg/apis/authentication/v1beta1" + "k8s.io/client-go/pkg/util/sets" ) func init() { @@ -30,7 +30,7 @@ func init() { &announced.GroupMetaFactoryArgs{ GroupName: authentication.GroupName, VersionPreferenceOrder: []string{v1beta1.SchemeGroupVersion.Version}, - ImportPrefix: "k8s.io/client-go/1.5/pkg/apis/authentication", + ImportPrefix: "k8s.io/client-go/pkg/apis/authentication", RootScopedKinds: sets.NewString("TokenReview"), AddInternalObjectsToScheme: authentication.AddToScheme, }, diff --git a/vendor/k8s.io/client-go/1.5/pkg/apis/authentication/register.go b/vendor/k8s.io/client-go/pkg/apis/authentication/register.go similarity index 93% rename from vendor/k8s.io/client-go/1.5/pkg/apis/authentication/register.go rename to vendor/k8s.io/client-go/pkg/apis/authentication/register.go index ffef35f18..4759c011b 100644 --- a/vendor/k8s.io/client-go/1.5/pkg/apis/authentication/register.go +++ b/vendor/k8s.io/client-go/pkg/apis/authentication/register.go @@ -17,9 +17,9 @@ limitations under the License. package authentication import ( - "k8s.io/client-go/1.5/pkg/api" - "k8s.io/client-go/1.5/pkg/api/unversioned" - "k8s.io/client-go/1.5/pkg/runtime" + "k8s.io/client-go/pkg/api" + "k8s.io/client-go/pkg/api/unversioned" + "k8s.io/client-go/pkg/runtime" ) // GroupName is the group name use in this package diff --git a/vendor/k8s.io/client-go/1.5/pkg/apis/authentication/types.generated.go b/vendor/k8s.io/client-go/pkg/apis/authentication/types.generated.go similarity index 99% rename from vendor/k8s.io/client-go/1.5/pkg/apis/authentication/types.generated.go rename to vendor/k8s.io/client-go/pkg/apis/authentication/types.generated.go index 09842eeb1..b2c9ceb6d 100644 --- a/vendor/k8s.io/client-go/1.5/pkg/apis/authentication/types.generated.go +++ b/vendor/k8s.io/client-go/pkg/apis/authentication/types.generated.go @@ -25,9 +25,9 @@ import ( "errors" "fmt" codec1978 "github.com/ugorji/go/codec" - pkg2_api "k8s.io/client-go/1.5/pkg/api" - pkg1_unversioned "k8s.io/client-go/1.5/pkg/api/unversioned" - pkg3_types "k8s.io/client-go/1.5/pkg/types" + pkg2_api "k8s.io/client-go/pkg/api" + pkg1_unversioned "k8s.io/client-go/pkg/api/unversioned" + pkg3_types "k8s.io/client-go/pkg/types" "reflect" "runtime" time "time" diff --git a/vendor/k8s.io/client-go/1.5/pkg/apis/authentication/types.go b/vendor/k8s.io/client-go/pkg/apis/authentication/types.go similarity index 97% rename from vendor/k8s.io/client-go/1.5/pkg/apis/authentication/types.go rename to vendor/k8s.io/client-go/pkg/apis/authentication/types.go index 16be10210..84edf83d9 100644 --- a/vendor/k8s.io/client-go/1.5/pkg/apis/authentication/types.go +++ b/vendor/k8s.io/client-go/pkg/apis/authentication/types.go @@ -17,8 +17,8 @@ limitations under the License. package authentication import ( - "k8s.io/client-go/1.5/pkg/api" - "k8s.io/client-go/1.5/pkg/api/unversioned" + "k8s.io/client-go/pkg/api" + "k8s.io/client-go/pkg/api/unversioned" ) const ( diff --git a/vendor/k8s.io/client-go/1.5/pkg/apis/authentication/v1beta1/conversion.go b/vendor/k8s.io/client-go/pkg/apis/authentication/v1beta1/conversion.go similarity index 95% rename from vendor/k8s.io/client-go/1.5/pkg/apis/authentication/v1beta1/conversion.go rename to vendor/k8s.io/client-go/pkg/apis/authentication/v1beta1/conversion.go index 1f0001498..93cccc5bc 100644 --- a/vendor/k8s.io/client-go/1.5/pkg/apis/authentication/v1beta1/conversion.go +++ b/vendor/k8s.io/client-go/pkg/apis/authentication/v1beta1/conversion.go @@ -17,7 +17,7 @@ limitations under the License. package v1beta1 import ( - "k8s.io/client-go/1.5/pkg/runtime" + "k8s.io/client-go/pkg/runtime" ) func addConversionFuncs(scheme *runtime.Scheme) error { diff --git a/vendor/k8s.io/client-go/1.5/pkg/apis/authentication/v1beta1/defaults.go b/vendor/k8s.io/client-go/pkg/apis/authentication/v1beta1/defaults.go similarity index 95% rename from vendor/k8s.io/client-go/1.5/pkg/apis/authentication/v1beta1/defaults.go rename to vendor/k8s.io/client-go/pkg/apis/authentication/v1beta1/defaults.go index d80bd84c0..f3b22e956 100644 --- a/vendor/k8s.io/client-go/1.5/pkg/apis/authentication/v1beta1/defaults.go +++ b/vendor/k8s.io/client-go/pkg/apis/authentication/v1beta1/defaults.go @@ -17,7 +17,7 @@ limitations under the License. package v1beta1 import ( - "k8s.io/client-go/1.5/pkg/runtime" + "k8s.io/client-go/pkg/runtime" ) func addDefaultingFuncs(scheme *runtime.Scheme) error { diff --git a/vendor/k8s.io/client-go/1.5/pkg/apis/authentication/v1beta1/doc.go b/vendor/k8s.io/client-go/pkg/apis/authentication/v1beta1/doc.go similarity index 96% rename from vendor/k8s.io/client-go/1.5/pkg/apis/authentication/v1beta1/doc.go rename to vendor/k8s.io/client-go/pkg/apis/authentication/v1beta1/doc.go index e6530b529..528723cfb 100644 --- a/vendor/k8s.io/client-go/1.5/pkg/apis/authentication/v1beta1/doc.go +++ b/vendor/k8s.io/client-go/pkg/apis/authentication/v1beta1/doc.go @@ -18,4 +18,5 @@ limitations under the License. // +k8s:conversion-gen=k8s.io/kubernetes/pkg/apis/authentication // +groupName=authentication.k8s.io // +k8s:openapi-gen=true +// +k8s:defaulter-gen=TypeMeta package v1beta1 diff --git a/vendor/k8s.io/client-go/1.5/pkg/apis/authentication/v1beta1/generated.pb.go b/vendor/k8s.io/client-go/pkg/apis/authentication/v1beta1/generated.pb.go similarity index 86% rename from vendor/k8s.io/client-go/1.5/pkg/apis/authentication/v1beta1/generated.pb.go rename to vendor/k8s.io/client-go/pkg/apis/authentication/v1beta1/generated.pb.go index 096d95586..20d34ec09 100644 --- a/vendor/k8s.io/client-go/1.5/pkg/apis/authentication/v1beta1/generated.pb.go +++ b/vendor/k8s.io/client-go/pkg/apis/authentication/v1beta1/generated.pb.go @@ -1,5 +1,5 @@ /* -Copyright 2016 The Kubernetes Authors. +Copyright 2017 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -73,11 +73,11 @@ func (*UserInfo) ProtoMessage() {} func (*UserInfo) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{4} } func init() { - proto.RegisterType((*ExtraValue)(nil), "k8s.io.client-go.1.5.pkg.apis.authentication.v1beta1.ExtraValue") - proto.RegisterType((*TokenReview)(nil), "k8s.io.client-go.1.5.pkg.apis.authentication.v1beta1.TokenReview") - proto.RegisterType((*TokenReviewSpec)(nil), "k8s.io.client-go.1.5.pkg.apis.authentication.v1beta1.TokenReviewSpec") - proto.RegisterType((*TokenReviewStatus)(nil), "k8s.io.client-go.1.5.pkg.apis.authentication.v1beta1.TokenReviewStatus") - proto.RegisterType((*UserInfo)(nil), "k8s.io.client-go.1.5.pkg.apis.authentication.v1beta1.UserInfo") + proto.RegisterType((*ExtraValue)(nil), "k8s.io.client-go.pkg.apis.authentication.v1beta1.ExtraValue") + proto.RegisterType((*TokenReview)(nil), "k8s.io.client-go.pkg.apis.authentication.v1beta1.TokenReview") + proto.RegisterType((*TokenReviewSpec)(nil), "k8s.io.client-go.pkg.apis.authentication.v1beta1.TokenReviewSpec") + proto.RegisterType((*TokenReviewStatus)(nil), "k8s.io.client-go.pkg.apis.authentication.v1beta1.TokenReviewStatus") + proto.RegisterType((*UserInfo)(nil), "k8s.io.client-go.pkg.apis.authentication.v1beta1.UserInfo") } func (m ExtraValue) Marshal() (data []byte, err error) { size := m.Size() @@ -1236,45 +1236,46 @@ var ( ) 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, + // 642 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x09, 0x6e, 0x88, 0x02, 0xff, 0xa4, 0x93, 0xcf, 0x6e, 0x13, 0x31, + 0x10, 0xc6, 0xb3, 0xf9, 0x53, 0x12, 0x87, 0x42, 0xb1, 0x84, 0x14, 0x45, 0x62, 0x13, 0x85, 0x4b, + 0x90, 0x5a, 0xaf, 0x52, 0x09, 0xa8, 0x5a, 0x71, 0xe8, 0xaa, 0x05, 0xf5, 0x80, 0x90, 0x5c, 0x8a, + 0x10, 0x12, 0x07, 0x27, 0x99, 0x6e, 0x97, 0x6d, 0xd6, 0x2b, 0xaf, 0x9d, 0xd2, 0x5b, 0x1f, 0x81, + 0x23, 0x47, 0xde, 0x83, 0x17, 0xe8, 0xb1, 0x07, 0x0e, 0x1c, 0x50, 0x45, 0xc2, 0x8b, 0x20, 0x7b, + 0x4d, 0x93, 0x36, 0xcd, 0x81, 0xf6, 0xb6, 0xfe, 0x3c, 0xf3, 0x9b, 0x6f, 0xc6, 0x3b, 0x68, 0x33, + 0x5a, 0x4b, 0x49, 0xc8, 0xbd, 0x48, 0x75, 0x41, 0xc4, 0x20, 0x21, 0xf5, 0x92, 0x28, 0xf0, 0x58, + 0x12, 0xa6, 0x1e, 0x53, 0xf2, 0x00, 0x62, 0x19, 0xf6, 0x98, 0x0c, 0x79, 0xec, 0x0d, 0x3b, 0x5d, + 0x90, 0xac, 0xe3, 0x05, 0x10, 0x83, 0x60, 0x12, 0xfa, 0x24, 0x11, 0x5c, 0x72, 0xdc, 0xc9, 0x10, + 0x64, 0x82, 0x20, 0x49, 0x14, 0x10, 0x8d, 0x20, 0x97, 0x11, 0xc4, 0x22, 0xea, 0x2b, 0x41, 0x28, + 0x0f, 0x54, 0x97, 0xf4, 0xf8, 0xc0, 0x0b, 0x78, 0xc0, 0x3d, 0x43, 0xea, 0xaa, 0x7d, 0x73, 0x32, + 0x07, 0xf3, 0x95, 0x55, 0xa8, 0xaf, 0xce, 0x35, 0xe9, 0x09, 0x48, 0xb9, 0x12, 0x3d, 0xb8, 0xea, + 0xaa, 0xfe, 0x74, 0x7e, 0x8e, 0x8a, 0x87, 0x20, 0xd2, 0x90, 0xc7, 0xd0, 0x9f, 0x49, 0x5b, 0x9e, + 0x9f, 0x36, 0x9c, 0x69, 0xbd, 0xbe, 0x72, 0x7d, 0xb4, 0x50, 0xb1, 0x0c, 0x07, 0xb3, 0x9e, 0x3a, + 0xd7, 0x87, 0x2b, 0x19, 0x1e, 0x7a, 0x61, 0x2c, 0x53, 0x29, 0xae, 0xa6, 0xb4, 0x9e, 0x23, 0xb4, + 0xfd, 0x59, 0x0a, 0xf6, 0x8e, 0x1d, 0x2a, 0xc0, 0x0d, 0x54, 0x0a, 0x25, 0x0c, 0xd2, 0x9a, 0xd3, + 0x2c, 0xb4, 0x2b, 0x7e, 0x65, 0x7c, 0xde, 0x28, 0xed, 0x68, 0x81, 0x66, 0xfa, 0x7a, 0xf9, 0xeb, + 0xb7, 0x46, 0xee, 0xe4, 0x57, 0x33, 0xd7, 0xfa, 0x9e, 0x47, 0xd5, 0xb7, 0x3c, 0x82, 0x98, 0xc2, + 0x30, 0x84, 0x23, 0xfc, 0x1e, 0x95, 0x07, 0x20, 0x59, 0x9f, 0x49, 0x56, 0x73, 0x9a, 0x4e, 0xbb, + 0xba, 0xda, 0x26, 0x73, 0x1f, 0x8e, 0x0c, 0x3b, 0xe4, 0x4d, 0xf7, 0x13, 0xf4, 0xe4, 0x6b, 0x90, + 0xcc, 0xc7, 0xa7, 0xe7, 0x8d, 0xdc, 0xf8, 0xbc, 0x81, 0x26, 0x1a, 0xbd, 0xa0, 0xe1, 0x3e, 0x2a, + 0xa6, 0x09, 0xf4, 0x6a, 0x79, 0x43, 0xf5, 0xc9, 0x7f, 0xff, 0x0e, 0x64, 0xca, 0xe7, 0x6e, 0x02, + 0x3d, 0xff, 0xae, 0xad, 0x57, 0xd4, 0x27, 0x6a, 0xe8, 0xf8, 0x10, 0x2d, 0xa4, 0x92, 0x49, 0x95, + 0xd6, 0x0a, 0xa6, 0xce, 0xd6, 0x2d, 0xeb, 0x18, 0x96, 0x7f, 0xcf, 0x56, 0x5a, 0xc8, 0xce, 0xd4, + 0xd6, 0x68, 0x3d, 0x43, 0xf7, 0xaf, 0x98, 0xc2, 0x8f, 0x51, 0x49, 0x6a, 0xc9, 0x4c, 0xaf, 0xe2, + 0x2f, 0xda, 0xcc, 0x52, 0x16, 0x97, 0xdd, 0xb5, 0x7e, 0x38, 0xe8, 0xc1, 0x4c, 0x15, 0xbc, 0x81, + 0x16, 0xa7, 0x1c, 0x41, 0xdf, 0x20, 0xca, 0xfe, 0x43, 0x8b, 0x58, 0xdc, 0x9c, 0xbe, 0xa4, 0x97, + 0x63, 0xf1, 0x47, 0x54, 0x54, 0x29, 0x08, 0x3b, 0xde, 0x8d, 0x1b, 0xb4, 0xbd, 0x97, 0x82, 0xd8, + 0x89, 0xf7, 0xf9, 0x64, 0xae, 0x5a, 0xa1, 0x06, 0xab, 0xdb, 0x02, 0x21, 0xb8, 0x30, 0x63, 0x9d, + 0x6a, 0x6b, 0x5b, 0x8b, 0x34, 0xbb, 0x6b, 0x8d, 0xf2, 0xa8, 0xfc, 0x8f, 0x82, 0x97, 0x51, 0x59, + 0x67, 0xc6, 0x6c, 0x00, 0x76, 0x16, 0x4b, 0x36, 0xc9, 0xc4, 0x68, 0x9d, 0x5e, 0x44, 0xe0, 0x47, + 0xa8, 0xa0, 0xc2, 0xbe, 0x71, 0x5f, 0xf1, 0xab, 0x36, 0xb0, 0xb0, 0xb7, 0xb3, 0x45, 0xb5, 0x8e, + 0x5b, 0x68, 0x21, 0x10, 0x5c, 0x25, 0xfa, 0x59, 0xf5, 0x2f, 0x8d, 0xf4, 0x63, 0xbc, 0x32, 0x0a, + 0xb5, 0x37, 0x38, 0x42, 0x25, 0xd0, 0x3b, 0x50, 0x2b, 0x36, 0x0b, 0xed, 0xea, 0xea, 0xcb, 0x5b, + 0x8c, 0x80, 0x98, 0x65, 0xda, 0x8e, 0xa5, 0x38, 0x9e, 0x6a, 0x55, 0x6b, 0x34, 0xab, 0x51, 0x3f, + 0xb2, 0x0b, 0x67, 0x62, 0xf0, 0x12, 0x2a, 0x44, 0x70, 0x9c, 0xb5, 0x49, 0xf5, 0x27, 0xde, 0x45, + 0xa5, 0xa1, 0xde, 0x45, 0xfb, 0x1e, 0x2f, 0x6e, 0x60, 0x66, 0xb2, 0xd0, 0x34, 0x63, 0xad, 0xe7, + 0xd7, 0x1c, 0xff, 0xc9, 0xe9, 0xc8, 0xcd, 0x9d, 0x8d, 0xdc, 0xdc, 0xcf, 0x91, 0x9b, 0x3b, 0x19, + 0xbb, 0xce, 0xe9, 0xd8, 0x75, 0xce, 0xc6, 0xae, 0xf3, 0x7b, 0xec, 0x3a, 0x5f, 0xfe, 0xb8, 0xb9, + 0x0f, 0x77, 0x2c, 0xe0, 0x6f, 0x00, 0x00, 0x00, 0xff, 0xff, 0xca, 0xd0, 0x35, 0x8c, 0xb5, 0x05, + 0x00, 0x00, } diff --git a/vendor/k8s.io/client-go/1.5/pkg/apis/authentication/v1beta1/register.go b/vendor/k8s.io/client-go/pkg/apis/authentication/v1beta1/register.go similarity index 91% rename from vendor/k8s.io/client-go/1.5/pkg/apis/authentication/v1beta1/register.go rename to vendor/k8s.io/client-go/pkg/apis/authentication/v1beta1/register.go index 430ff0527..472e53d1e 100644 --- a/vendor/k8s.io/client-go/1.5/pkg/apis/authentication/v1beta1/register.go +++ b/vendor/k8s.io/client-go/pkg/apis/authentication/v1beta1/register.go @@ -17,9 +17,9 @@ limitations under the License. package v1beta1 import ( - "k8s.io/client-go/1.5/pkg/api/unversioned" - "k8s.io/client-go/1.5/pkg/api/v1" - "k8s.io/client-go/1.5/pkg/runtime" + "k8s.io/client-go/pkg/api/unversioned" + "k8s.io/client-go/pkg/api/v1" + "k8s.io/client-go/pkg/runtime" ) // GroupName is the group name use in this package diff --git a/vendor/k8s.io/client-go/1.5/pkg/apis/authentication/v1beta1/types.generated.go b/vendor/k8s.io/client-go/pkg/apis/authentication/v1beta1/types.generated.go similarity index 99% rename from vendor/k8s.io/client-go/1.5/pkg/apis/authentication/v1beta1/types.generated.go rename to vendor/k8s.io/client-go/pkg/apis/authentication/v1beta1/types.generated.go index 8076b845c..32f15d31b 100644 --- a/vendor/k8s.io/client-go/1.5/pkg/apis/authentication/v1beta1/types.generated.go +++ b/vendor/k8s.io/client-go/pkg/apis/authentication/v1beta1/types.generated.go @@ -25,9 +25,9 @@ import ( "errors" "fmt" codec1978 "github.com/ugorji/go/codec" - pkg1_unversioned "k8s.io/client-go/1.5/pkg/api/unversioned" - pkg2_v1 "k8s.io/client-go/1.5/pkg/api/v1" - pkg3_types "k8s.io/client-go/1.5/pkg/types" + pkg1_unversioned "k8s.io/client-go/pkg/api/unversioned" + pkg2_v1 "k8s.io/client-go/pkg/api/v1" + pkg3_types "k8s.io/client-go/pkg/types" "reflect" "runtime" time "time" diff --git a/vendor/k8s.io/client-go/1.5/pkg/apis/authentication/v1beta1/types.go b/vendor/k8s.io/client-go/pkg/apis/authentication/v1beta1/types.go similarity index 91% rename from vendor/k8s.io/client-go/1.5/pkg/apis/authentication/v1beta1/types.go rename to vendor/k8s.io/client-go/pkg/apis/authentication/v1beta1/types.go index aa5943bcd..033890206 100644 --- a/vendor/k8s.io/client-go/1.5/pkg/apis/authentication/v1beta1/types.go +++ b/vendor/k8s.io/client-go/pkg/apis/authentication/v1beta1/types.go @@ -19,8 +19,8 @@ package v1beta1 import ( "fmt" - "k8s.io/client-go/1.5/pkg/api/unversioned" - "k8s.io/client-go/1.5/pkg/api/v1" + "k8s.io/client-go/pkg/api/unversioned" + "k8s.io/client-go/pkg/api/v1" ) // +genclient=true @@ -32,28 +32,34 @@ import ( // plugin in the kube-apiserver. type TokenReview struct { unversioned.TypeMeta `json:",inline"` - v1.ObjectMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"` + // +optional + v1.ObjectMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"` // Spec holds information about the request being evaluated 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. + // +optional 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. + // +optional 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. + // +optional Authenticated bool `json:"authenticated,omitempty" protobuf:"varint,1,opt,name=authenticated"` // User is the UserInfo associated with the provided token. + // +optional User UserInfo `json:"user,omitempty" protobuf:"bytes,2,opt,name=user"` // Error indicates that the token couldn't be checked + // +optional Error string `json:"error,omitempty" protobuf:"bytes,3,opt,name=error"` } @@ -61,14 +67,18 @@ type TokenReviewStatus struct { // user.Info interface. type UserInfo struct { // The name that uniquely identifies this user among all active users. + // +optional 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. + // +optional UID string `json:"uid,omitempty" protobuf:"bytes,2,opt,name=uid"` // The names of groups this user is a part of. + // +optional Groups []string `json:"groups,omitempty" protobuf:"bytes,3,rep,name=groups"` // Any additional information provided by the authenticator. + // +optional Extra map[string]ExtraValue `json:"extra,omitempty" protobuf:"bytes,4,rep,name=extra"` } diff --git a/vendor/k8s.io/client-go/1.5/pkg/apis/authentication/v1beta1/types_swagger_doc_generated.go b/vendor/k8s.io/client-go/pkg/apis/authentication/v1beta1/types_swagger_doc_generated.go similarity index 100% rename from vendor/k8s.io/client-go/1.5/pkg/apis/authentication/v1beta1/types_swagger_doc_generated.go rename to vendor/k8s.io/client-go/pkg/apis/authentication/v1beta1/types_swagger_doc_generated.go diff --git a/vendor/k8s.io/client-go/1.5/pkg/apis/authentication/v1beta1/zz_generated.conversion.go b/vendor/k8s.io/client-go/pkg/apis/authentication/v1beta1/zz_generated.conversion.go similarity index 82% rename from vendor/k8s.io/client-go/1.5/pkg/apis/authentication/v1beta1/zz_generated.conversion.go rename to vendor/k8s.io/client-go/pkg/apis/authentication/v1beta1/zz_generated.conversion.go index 9c952e0a1..91dfdcfe9 100644 --- a/vendor/k8s.io/client-go/1.5/pkg/apis/authentication/v1beta1/zz_generated.conversion.go +++ b/vendor/k8s.io/client-go/pkg/apis/authentication/v1beta1/zz_generated.conversion.go @@ -1,7 +1,7 @@ // +build !ignore_autogenerated /* -Copyright 2016 The Kubernetes Authors. +Copyright 2017 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -21,10 +21,10 @@ limitations under the License. package v1beta1 import ( - api "k8s.io/client-go/1.5/pkg/api" - authentication "k8s.io/client-go/1.5/pkg/apis/authentication" - conversion "k8s.io/client-go/1.5/pkg/conversion" - runtime "k8s.io/client-go/1.5/pkg/runtime" + authentication "k8s.io/client-go/pkg/apis/authentication" + conversion "k8s.io/client-go/pkg/conversion" + runtime "k8s.io/client-go/pkg/runtime" + unsafe "unsafe" ) func init() { @@ -47,9 +47,6 @@ func RegisterConversions(scheme *runtime.Scheme) error { } 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 @@ -68,9 +65,6 @@ func Convert_v1beta1_TokenReview_To_authentication_TokenReview(in *TokenReview, } 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 @@ -135,21 +129,8 @@ func Convert_authentication_TokenReviewStatus_To_v1beta1_TokenReviewStatus(in *a 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 - } + out.Groups = *(*[]string)(unsafe.Pointer(&in.Groups)) + out.Extra = *(*map[string]authentication.ExtraValue)(unsafe.Pointer(&in.Extra)) return nil } @@ -160,21 +141,8 @@ func Convert_v1beta1_UserInfo_To_authentication_UserInfo(in *UserInfo, out *auth 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 - } + out.Groups = *(*[]string)(unsafe.Pointer(&in.Groups)) + out.Extra = *(*map[string]ExtraValue)(unsafe.Pointer(&in.Extra)) return nil } diff --git a/vendor/k8s.io/client-go/1.5/pkg/apis/authentication/v1beta1/zz_generated.deepcopy.go b/vendor/k8s.io/client-go/pkg/apis/authentication/v1beta1/zz_generated.deepcopy.go similarity index 94% rename from vendor/k8s.io/client-go/1.5/pkg/apis/authentication/v1beta1/zz_generated.deepcopy.go rename to vendor/k8s.io/client-go/pkg/apis/authentication/v1beta1/zz_generated.deepcopy.go index 9f5281766..fdc2540d3 100644 --- a/vendor/k8s.io/client-go/1.5/pkg/apis/authentication/v1beta1/zz_generated.deepcopy.go +++ b/vendor/k8s.io/client-go/pkg/apis/authentication/v1beta1/zz_generated.deepcopy.go @@ -1,7 +1,7 @@ // +build !ignore_autogenerated /* -Copyright 2016 The Kubernetes Authors. +Copyright 2017 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -21,9 +21,9 @@ limitations under the License. package v1beta1 import ( - v1 "k8s.io/client-go/1.5/pkg/api/v1" - conversion "k8s.io/client-go/1.5/pkg/conversion" - runtime "k8s.io/client-go/1.5/pkg/runtime" + v1 "k8s.io/client-go/pkg/api/v1" + conversion "k8s.io/client-go/pkg/conversion" + runtime "k8s.io/client-go/pkg/runtime" reflect "reflect" ) diff --git a/vendor/k8s.io/client-go/1.5/pkg/apis/authentication/zz_generated.deepcopy.go b/vendor/k8s.io/client-go/pkg/apis/authentication/zz_generated.deepcopy.go similarity index 94% rename from vendor/k8s.io/client-go/1.5/pkg/apis/authentication/zz_generated.deepcopy.go rename to vendor/k8s.io/client-go/pkg/apis/authentication/zz_generated.deepcopy.go index 8b1b0a728..902b8510a 100644 --- a/vendor/k8s.io/client-go/1.5/pkg/apis/authentication/zz_generated.deepcopy.go +++ b/vendor/k8s.io/client-go/pkg/apis/authentication/zz_generated.deepcopy.go @@ -1,7 +1,7 @@ // +build !ignore_autogenerated /* -Copyright 2016 The Kubernetes Authors. +Copyright 2017 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -21,9 +21,9 @@ limitations under the License. package authentication import ( - api "k8s.io/client-go/1.5/pkg/api" - conversion "k8s.io/client-go/1.5/pkg/conversion" - runtime "k8s.io/client-go/1.5/pkg/runtime" + api "k8s.io/client-go/pkg/api" + conversion "k8s.io/client-go/pkg/conversion" + runtime "k8s.io/client-go/pkg/runtime" reflect "reflect" ) diff --git a/vendor/k8s.io/client-go/1.5/pkg/apis/authorization/doc.go b/vendor/k8s.io/client-go/pkg/apis/authorization/doc.go similarity index 100% rename from vendor/k8s.io/client-go/1.5/pkg/apis/authorization/doc.go rename to vendor/k8s.io/client-go/pkg/apis/authorization/doc.go diff --git a/vendor/k8s.io/client-go/1.5/pkg/apis/authorization/install/install.go b/vendor/k8s.io/client-go/pkg/apis/authorization/install/install.go similarity index 82% rename from vendor/k8s.io/client-go/1.5/pkg/apis/authorization/install/install.go rename to vendor/k8s.io/client-go/pkg/apis/authorization/install/install.go index 49667c72f..b758df572 100644 --- a/vendor/k8s.io/client-go/1.5/pkg/apis/authorization/install/install.go +++ b/vendor/k8s.io/client-go/pkg/apis/authorization/install/install.go @@ -19,10 +19,10 @@ limitations under the License. package install import ( - "k8s.io/client-go/1.5/pkg/apimachinery/announced" - "k8s.io/client-go/1.5/pkg/apis/authorization" - "k8s.io/client-go/1.5/pkg/apis/authorization/v1beta1" - "k8s.io/client-go/1.5/pkg/util/sets" + "k8s.io/client-go/pkg/apimachinery/announced" + "k8s.io/client-go/pkg/apis/authorization" + "k8s.io/client-go/pkg/apis/authorization/v1beta1" + "k8s.io/client-go/pkg/util/sets" ) func init() { @@ -30,7 +30,7 @@ func init() { &announced.GroupMetaFactoryArgs{ GroupName: authorization.GroupName, VersionPreferenceOrder: []string{v1beta1.SchemeGroupVersion.Version}, - ImportPrefix: "k8s.io/client-go/1.5/pkg/apis/authorization", + ImportPrefix: "k8s.io/client-go/pkg/apis/authorization", RootScopedKinds: sets.NewString("SubjectAccessReview", "SelfSubjectAccessReview"), AddInternalObjectsToScheme: authorization.AddToScheme, }, diff --git a/vendor/k8s.io/client-go/1.5/pkg/apis/authorization/register.go b/vendor/k8s.io/client-go/pkg/apis/authorization/register.go similarity index 95% rename from vendor/k8s.io/client-go/1.5/pkg/apis/authorization/register.go rename to vendor/k8s.io/client-go/pkg/apis/authorization/register.go index b911d49bd..55ae357d3 100644 --- a/vendor/k8s.io/client-go/1.5/pkg/apis/authorization/register.go +++ b/vendor/k8s.io/client-go/pkg/apis/authorization/register.go @@ -17,8 +17,8 @@ limitations under the License. package authorization import ( - "k8s.io/client-go/1.5/pkg/api/unversioned" - "k8s.io/client-go/1.5/pkg/runtime" + "k8s.io/client-go/pkg/api/unversioned" + "k8s.io/client-go/pkg/runtime" ) // GroupName is the group name use in this package diff --git a/vendor/k8s.io/client-go/1.5/pkg/apis/authorization/types.generated.go b/vendor/k8s.io/client-go/pkg/apis/authorization/types.generated.go similarity index 99% rename from vendor/k8s.io/client-go/1.5/pkg/apis/authorization/types.generated.go rename to vendor/k8s.io/client-go/pkg/apis/authorization/types.generated.go index 8625d4b6c..49bd9cfec 100644 --- a/vendor/k8s.io/client-go/1.5/pkg/apis/authorization/types.generated.go +++ b/vendor/k8s.io/client-go/pkg/apis/authorization/types.generated.go @@ -25,9 +25,9 @@ import ( "errors" "fmt" codec1978 "github.com/ugorji/go/codec" - pkg2_api "k8s.io/client-go/1.5/pkg/api" - pkg1_unversioned "k8s.io/client-go/1.5/pkg/api/unversioned" - pkg3_types "k8s.io/client-go/1.5/pkg/types" + pkg2_api "k8s.io/client-go/pkg/api" + pkg1_unversioned "k8s.io/client-go/pkg/api/unversioned" + pkg3_types "k8s.io/client-go/pkg/types" "reflect" "runtime" time "time" diff --git a/vendor/k8s.io/client-go/1.5/pkg/apis/authorization/types.go b/vendor/k8s.io/client-go/pkg/apis/authorization/types.go similarity index 98% rename from vendor/k8s.io/client-go/1.5/pkg/apis/authorization/types.go rename to vendor/k8s.io/client-go/pkg/apis/authorization/types.go index 81070c7e8..2ac05589d 100644 --- a/vendor/k8s.io/client-go/1.5/pkg/apis/authorization/types.go +++ b/vendor/k8s.io/client-go/pkg/apis/authorization/types.go @@ -17,8 +17,8 @@ limitations under the License. package authorization import ( - "k8s.io/client-go/1.5/pkg/api" - "k8s.io/client-go/1.5/pkg/api/unversioned" + "k8s.io/client-go/pkg/api" + "k8s.io/client-go/pkg/api/unversioned" ) // +genclient=true diff --git a/vendor/k8s.io/client-go/1.5/pkg/apis/authorization/v1beta1/conversion.go b/vendor/k8s.io/client-go/pkg/apis/authorization/v1beta1/conversion.go similarity index 95% rename from vendor/k8s.io/client-go/1.5/pkg/apis/authorization/v1beta1/conversion.go rename to vendor/k8s.io/client-go/pkg/apis/authorization/v1beta1/conversion.go index 842907613..090160a56 100644 --- a/vendor/k8s.io/client-go/1.5/pkg/apis/authorization/v1beta1/conversion.go +++ b/vendor/k8s.io/client-go/pkg/apis/authorization/v1beta1/conversion.go @@ -17,7 +17,7 @@ limitations under the License. package v1beta1 import ( - "k8s.io/client-go/1.5/pkg/runtime" + "k8s.io/client-go/pkg/runtime" ) func addConversionFuncs(scheme *runtime.Scheme) error { diff --git a/vendor/k8s.io/client-go/1.5/pkg/apis/authorization/v1beta1/defaults.go b/vendor/k8s.io/client-go/pkg/apis/authorization/v1beta1/defaults.go similarity index 95% rename from vendor/k8s.io/client-go/1.5/pkg/apis/authorization/v1beta1/defaults.go rename to vendor/k8s.io/client-go/pkg/apis/authorization/v1beta1/defaults.go index 3ea53fa49..bcbcbfaf3 100644 --- a/vendor/k8s.io/client-go/1.5/pkg/apis/authorization/v1beta1/defaults.go +++ b/vendor/k8s.io/client-go/pkg/apis/authorization/v1beta1/defaults.go @@ -17,7 +17,7 @@ limitations under the License. package v1beta1 import ( - "k8s.io/client-go/1.5/pkg/runtime" + "k8s.io/client-go/pkg/runtime" ) func addDefaultingFuncs(scheme *runtime.Scheme) error { diff --git a/vendor/k8s.io/client-go/1.5/pkg/apis/authorization/v1beta1/doc.go b/vendor/k8s.io/client-go/pkg/apis/authorization/v1beta1/doc.go similarity index 96% rename from vendor/k8s.io/client-go/1.5/pkg/apis/authorization/v1beta1/doc.go rename to vendor/k8s.io/client-go/pkg/apis/authorization/v1beta1/doc.go index 392ee4999..e11cea1c4 100644 --- a/vendor/k8s.io/client-go/1.5/pkg/apis/authorization/v1beta1/doc.go +++ b/vendor/k8s.io/client-go/pkg/apis/authorization/v1beta1/doc.go @@ -17,6 +17,7 @@ limitations under the License. // +k8s:deepcopy-gen=package,register // +k8s:conversion-gen=k8s.io/kubernetes/pkg/apis/authorization // +k8s:openapi-gen=true +// +k8s:defaulter-gen=TypeMeta // +groupName=authorization.k8s.io package v1beta1 diff --git a/vendor/k8s.io/client-go/1.5/pkg/apis/authorization/v1beta1/generated.pb.go b/vendor/k8s.io/client-go/pkg/apis/authorization/v1beta1/generated.pb.go similarity index 90% rename from vendor/k8s.io/client-go/1.5/pkg/apis/authorization/v1beta1/generated.pb.go rename to vendor/k8s.io/client-go/pkg/apis/authorization/v1beta1/generated.pb.go index 47aa73598..59fe03332 100644 --- a/vendor/k8s.io/client-go/1.5/pkg/apis/authorization/v1beta1/generated.pb.go +++ b/vendor/k8s.io/client-go/pkg/apis/authorization/v1beta1/generated.pb.go @@ -1,5 +1,5 @@ /* -Copyright 2016 The Kubernetes Authors. +Copyright 2017 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -99,15 +99,15 @@ func (*SubjectAccessReviewStatus) Descriptor() ([]byte, []int) { } func init() { - proto.RegisterType((*ExtraValue)(nil), "k8s.io.client-go.1.5.pkg.apis.authorization.v1beta1.ExtraValue") - proto.RegisterType((*LocalSubjectAccessReview)(nil), "k8s.io.client-go.1.5.pkg.apis.authorization.v1beta1.LocalSubjectAccessReview") - proto.RegisterType((*NonResourceAttributes)(nil), "k8s.io.client-go.1.5.pkg.apis.authorization.v1beta1.NonResourceAttributes") - proto.RegisterType((*ResourceAttributes)(nil), "k8s.io.client-go.1.5.pkg.apis.authorization.v1beta1.ResourceAttributes") - proto.RegisterType((*SelfSubjectAccessReview)(nil), "k8s.io.client-go.1.5.pkg.apis.authorization.v1beta1.SelfSubjectAccessReview") - proto.RegisterType((*SelfSubjectAccessReviewSpec)(nil), "k8s.io.client-go.1.5.pkg.apis.authorization.v1beta1.SelfSubjectAccessReviewSpec") - proto.RegisterType((*SubjectAccessReview)(nil), "k8s.io.client-go.1.5.pkg.apis.authorization.v1beta1.SubjectAccessReview") - proto.RegisterType((*SubjectAccessReviewSpec)(nil), "k8s.io.client-go.1.5.pkg.apis.authorization.v1beta1.SubjectAccessReviewSpec") - proto.RegisterType((*SubjectAccessReviewStatus)(nil), "k8s.io.client-go.1.5.pkg.apis.authorization.v1beta1.SubjectAccessReviewStatus") + proto.RegisterType((*ExtraValue)(nil), "k8s.io.client-go.pkg.apis.authorization.v1beta1.ExtraValue") + proto.RegisterType((*LocalSubjectAccessReview)(nil), "k8s.io.client-go.pkg.apis.authorization.v1beta1.LocalSubjectAccessReview") + proto.RegisterType((*NonResourceAttributes)(nil), "k8s.io.client-go.pkg.apis.authorization.v1beta1.NonResourceAttributes") + proto.RegisterType((*ResourceAttributes)(nil), "k8s.io.client-go.pkg.apis.authorization.v1beta1.ResourceAttributes") + proto.RegisterType((*SelfSubjectAccessReview)(nil), "k8s.io.client-go.pkg.apis.authorization.v1beta1.SelfSubjectAccessReview") + proto.RegisterType((*SelfSubjectAccessReviewSpec)(nil), "k8s.io.client-go.pkg.apis.authorization.v1beta1.SelfSubjectAccessReviewSpec") + proto.RegisterType((*SubjectAccessReview)(nil), "k8s.io.client-go.pkg.apis.authorization.v1beta1.SubjectAccessReview") + proto.RegisterType((*SubjectAccessReviewSpec)(nil), "k8s.io.client-go.pkg.apis.authorization.v1beta1.SubjectAccessReviewSpec") + proto.RegisterType((*SubjectAccessReviewStatus)(nil), "k8s.io.client-go.pkg.apis.authorization.v1beta1.SubjectAccessReviewStatus") } func (m ExtraValue) Marshal() (data []byte, err error) { size := m.Size() @@ -2283,59 +2283,60 @@ var ( ) 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, + // 874 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x09, 0x6e, 0x88, 0x02, 0xff, 0xec, 0x56, 0x41, 0x8f, 0xdb, 0x44, + 0x14, 0x8e, 0x93, 0x78, 0x37, 0x99, 0x05, 0xb6, 0x4c, 0x55, 0xd6, 0x0d, 0x92, 0x13, 0x05, 0x09, + 0x6d, 0xa5, 0xd6, 0x66, 0x57, 0xaa, 0xa8, 0x2a, 0x0e, 0xac, 0xc5, 0xaa, 0xaa, 0xa0, 0x05, 0xcd, + 0xc2, 0x0a, 0xc1, 0x69, 0xec, 0x7d, 0x4d, 0x4c, 0x12, 0x8f, 0x35, 0x33, 0x76, 0x59, 0x4e, 0xfd, + 0x01, 0x1c, 0x38, 0xf6, 0xc8, 0x5f, 0xe0, 0x0f, 0x70, 0x65, 0x8f, 0xe5, 0x82, 0x40, 0x42, 0x11, + 0x6b, 0xfe, 0x05, 0x27, 0xe4, 0xf1, 0x24, 0x6e, 0x36, 0x0e, 0x28, 0xb0, 0x42, 0x1c, 0x7a, 0xf3, + 0xbc, 0xf7, 0xbd, 0xf7, 0xbe, 0x99, 0xf9, 0xc6, 0xef, 0xa1, 0x77, 0x47, 0x77, 0x84, 0x13, 0x32, + 0x77, 0x94, 0xf8, 0xc0, 0x23, 0x90, 0x20, 0xdc, 0x78, 0x34, 0x70, 0x69, 0x1c, 0x0a, 0x97, 0x26, + 0x72, 0xc8, 0x78, 0xf8, 0x15, 0x95, 0x21, 0x8b, 0xdc, 0x74, 0xcf, 0x07, 0x49, 0xf7, 0xdc, 0x01, + 0x44, 0xc0, 0xa9, 0x84, 0x13, 0x27, 0xe6, 0x4c, 0x32, 0xfc, 0x56, 0x91, 0xc1, 0x29, 0x33, 0x38, + 0xf1, 0x68, 0xe0, 0xe4, 0x19, 0x9c, 0x85, 0x0c, 0x8e, 0xce, 0xd0, 0xb9, 0x35, 0x08, 0xe5, 0x30, + 0xf1, 0x9d, 0x80, 0x4d, 0xdc, 0x01, 0x1b, 0x30, 0x57, 0x25, 0xf2, 0x93, 0x47, 0x6a, 0xa5, 0x16, + 0xea, 0xab, 0x28, 0xd0, 0xd9, 0x5f, 0x49, 0xd1, 0xe5, 0x20, 0x58, 0xc2, 0x03, 0xb8, 0x48, 0xaa, + 0x73, 0x7b, 0x75, 0x4c, 0x12, 0xa5, 0xc0, 0x45, 0xc8, 0x22, 0x38, 0x59, 0x0a, 0xbb, 0xb9, 0x3a, + 0x2c, 0x5d, 0xda, 0x79, 0xe7, 0x56, 0x35, 0x9a, 0x27, 0x91, 0x0c, 0x27, 0xcb, 0x9c, 0xf6, 0xaa, + 0xe1, 0x89, 0x0c, 0xc7, 0x6e, 0x18, 0x49, 0x21, 0xf9, 0xc5, 0x90, 0xfe, 0xdb, 0x08, 0x1d, 0x7e, + 0x29, 0x39, 0x3d, 0xa6, 0xe3, 0x04, 0x70, 0x17, 0x99, 0xa1, 0x84, 0x89, 0xb0, 0x8c, 0x5e, 0x63, + 0xb7, 0xed, 0xb5, 0xb3, 0x69, 0xd7, 0xbc, 0x9f, 0x1b, 0x48, 0x61, 0xbf, 0xdb, 0x7a, 0xfa, 0x6d, + 0xb7, 0xf6, 0xe4, 0xd7, 0x5e, 0xad, 0xff, 0x53, 0x1d, 0x59, 0x1f, 0xb0, 0x80, 0x8e, 0x8f, 0x12, + 0xff, 0x0b, 0x08, 0xe4, 0x41, 0x10, 0x80, 0x10, 0x04, 0xd2, 0x10, 0x1e, 0xe3, 0x4f, 0x51, 0x6b, + 0x02, 0x92, 0x9e, 0x50, 0x49, 0x2d, 0xa3, 0x67, 0xec, 0x6e, 0xed, 0xef, 0x3a, 0x2b, 0x2f, 0xd1, + 0x49, 0xf7, 0x9c, 0x0f, 0x55, 0x8e, 0x07, 0x20, 0xa9, 0x87, 0xcf, 0xa6, 0xdd, 0x5a, 0x36, 0xed, + 0xa2, 0xd2, 0x46, 0xe6, 0xd9, 0xf0, 0x08, 0x35, 0x45, 0x0c, 0x81, 0x55, 0x57, 0x59, 0xef, 0x3b, + 0xeb, 0x4a, 0xc3, 0xa9, 0xa0, 0x7b, 0x14, 0x43, 0xe0, 0xbd, 0xa4, 0xcb, 0x36, 0xf3, 0x15, 0x51, + 0x45, 0xb0, 0x40, 0x1b, 0x42, 0x52, 0x99, 0x08, 0xab, 0xa1, 0xca, 0xbd, 0x7f, 0x39, 0xe5, 0x54, + 0x4a, 0xef, 0x15, 0x5d, 0x70, 0xa3, 0x58, 0x13, 0x5d, 0xaa, 0xff, 0x39, 0xba, 0xf6, 0x90, 0x45, + 0x44, 0xeb, 0xee, 0x40, 0x4a, 0x1e, 0xfa, 0x89, 0x04, 0x81, 0x7b, 0xa8, 0x19, 0x53, 0x39, 0x54, + 0x07, 0xda, 0x2e, 0xf9, 0x7e, 0x44, 0xe5, 0x90, 0x28, 0x4f, 0x8e, 0x48, 0x81, 0xfb, 0xea, 0x70, + 0x9e, 0x43, 0x1c, 0x03, 0xf7, 0x89, 0xf2, 0xf4, 0xbf, 0xaf, 0x23, 0x5c, 0x91, 0xda, 0x45, 0xed, + 0x88, 0x4e, 0x40, 0xc4, 0x34, 0x00, 0x9d, 0xff, 0x55, 0x1d, 0xdd, 0x7e, 0x38, 0x73, 0x90, 0x12, + 0xf3, 0xf7, 0x95, 0xf0, 0x1b, 0xc8, 0x1c, 0x70, 0x96, 0xc4, 0xea, 0xe8, 0xda, 0xde, 0xcb, 0x1a, + 0x62, 0xde, 0xcb, 0x8d, 0xa4, 0xf0, 0xe1, 0x1b, 0x68, 0x53, 0x3f, 0x15, 0xab, 0xa9, 0x60, 0xdb, + 0x1a, 0xb6, 0x79, 0x5c, 0x98, 0xc9, 0xcc, 0x8f, 0x6f, 0xa2, 0xd6, 0xec, 0x2d, 0x5a, 0xa6, 0xc2, + 0x5e, 0xd1, 0xd8, 0xd6, 0x6c, 0x43, 0x64, 0x8e, 0xc0, 0xb7, 0xd1, 0x96, 0x48, 0xfc, 0x79, 0xc0, + 0x86, 0x0a, 0xb8, 0xaa, 0x03, 0xb6, 0x8e, 0x4a, 0x17, 0x79, 0x1e, 0x97, 0x6f, 0x2b, 0xdf, 0xa3, + 0xb5, 0xb9, 0xb8, 0xad, 0xfc, 0x08, 0x88, 0xf2, 0xf4, 0x7f, 0xa9, 0xa3, 0x9d, 0x23, 0x18, 0x3f, + 0xfa, 0x6f, 0x55, 0xcf, 0x16, 0x54, 0xff, 0xe0, 0x1f, 0xc8, 0xb0, 0x9a, 0xf2, 0xff, 0x4b, 0xf9, + 0x3f, 0xd4, 0xd1, 0xeb, 0x7f, 0x41, 0x14, 0x7f, 0x6d, 0x20, 0xcc, 0x97, 0xc4, 0xab, 0x8f, 0xfa, + 0xbd, 0xf5, 0x19, 0x2e, 0x3f, 0x04, 0xef, 0xb5, 0x6c, 0xda, 0xad, 0x78, 0x20, 0xa4, 0xa2, 0x2e, + 0x7e, 0x6a, 0xa0, 0x6b, 0x51, 0xd5, 0x4b, 0xd5, 0xd7, 0x74, 0x6f, 0x7d, 0x46, 0x95, 0x0f, 0xdf, + 0xbb, 0x9e, 0x4d, 0xbb, 0xd5, 0xff, 0x04, 0x52, 0x4d, 0xa0, 0xff, 0x63, 0x1d, 0x5d, 0x7d, 0xf1, + 0x5f, 0xbe, 0x5c, 0x75, 0xfe, 0xd1, 0x44, 0x3b, 0x2f, 0x94, 0xf9, 0x2f, 0x95, 0x39, 0x6f, 0x1c, + 0x8d, 0xc5, 0x3f, 0xec, 0x27, 0x02, 0xb8, 0x6e, 0x1c, 0xbd, 0x59, 0xe3, 0x68, 0xaa, 0x19, 0x04, + 0xe5, 0x57, 0xa1, 0x9a, 0x86, 0x98, 0x75, 0x8d, 0x53, 0x64, 0x42, 0x3e, 0xb3, 0x58, 0x66, 0xaf, + 0xb1, 0xbb, 0xb5, 0xff, 0xf1, 0xa5, 0x89, 0xcd, 0x51, 0xa3, 0xd0, 0x61, 0x24, 0xf9, 0x69, 0xd9, + 0xb0, 0x94, 0x8d, 0x14, 0x15, 0x3b, 0xa9, 0x1e, 0x97, 0x14, 0x06, 0x5f, 0x41, 0x8d, 0x11, 0x9c, + 0x16, 0x0d, 0x93, 0xe4, 0x9f, 0x98, 0x20, 0x33, 0xcd, 0x27, 0x29, 0x7d, 0xd0, 0xef, 0xac, 0x4f, + 0xad, 0x9c, 0xc6, 0x48, 0x91, 0xea, 0x6e, 0xfd, 0x8e, 0xd1, 0xff, 0xce, 0x40, 0xd7, 0x57, 0x4a, + 0x36, 0x6f, 0xa3, 0x74, 0x3c, 0x66, 0x8f, 0xe1, 0x44, 0x71, 0x69, 0x95, 0x6d, 0xf4, 0xa0, 0x30, + 0x93, 0x99, 0x1f, 0xbf, 0x89, 0x36, 0x38, 0x50, 0xc1, 0x22, 0xdd, 0xba, 0xe7, 0x6a, 0x27, 0xca, + 0x4a, 0xb4, 0x17, 0x1f, 0xa0, 0x6d, 0xc8, 0xcb, 0x2b, 0x72, 0x87, 0x9c, 0x33, 0xae, 0xaf, 0x6c, + 0x47, 0x07, 0x6c, 0x1f, 0x2e, 0xba, 0xc9, 0x45, 0xbc, 0x77, 0xe3, 0xec, 0xdc, 0xae, 0x3d, 0x3b, + 0xb7, 0x6b, 0x3f, 0x9f, 0xdb, 0xb5, 0x27, 0x99, 0x6d, 0x9c, 0x65, 0xb6, 0xf1, 0x2c, 0xb3, 0x8d, + 0xdf, 0x32, 0xdb, 0xf8, 0xe6, 0x77, 0xbb, 0xf6, 0xd9, 0xa6, 0xde, 0xf4, 0x9f, 0x01, 0x00, 0x00, + 0xff, 0xff, 0x0c, 0xa4, 0x8c, 0xef, 0x24, 0x0c, 0x00, 0x00, } diff --git a/vendor/k8s.io/client-go/1.5/pkg/apis/authorization/v1beta1/register.go b/vendor/k8s.io/client-go/pkg/apis/authorization/v1beta1/register.go similarity index 90% rename from vendor/k8s.io/client-go/1.5/pkg/apis/authorization/v1beta1/register.go rename to vendor/k8s.io/client-go/pkg/apis/authorization/v1beta1/register.go index d809d7c9b..6ae38ec85 100644 --- a/vendor/k8s.io/client-go/1.5/pkg/apis/authorization/v1beta1/register.go +++ b/vendor/k8s.io/client-go/pkg/apis/authorization/v1beta1/register.go @@ -17,10 +17,10 @@ limitations under the License. package v1beta1 import ( - "k8s.io/client-go/1.5/pkg/api/unversioned" - "k8s.io/client-go/1.5/pkg/api/v1" - "k8s.io/client-go/1.5/pkg/runtime" - versionedwatch "k8s.io/client-go/1.5/pkg/watch/versioned" + "k8s.io/client-go/pkg/api/unversioned" + "k8s.io/client-go/pkg/api/v1" + "k8s.io/client-go/pkg/runtime" + versionedwatch "k8s.io/client-go/pkg/watch/versioned" ) // GroupName is the group name use in this package @@ -39,6 +39,7 @@ func addKnownTypes(scheme *runtime.Scheme) error { scheme.AddKnownTypes(SchemeGroupVersion, &v1.ListOptions{}, &v1.DeleteOptions{}, + &v1.ExportOptions{}, &SelfSubjectAccessReview{}, &SubjectAccessReview{}, diff --git a/vendor/k8s.io/client-go/1.5/pkg/apis/authorization/v1beta1/types.generated.go b/vendor/k8s.io/client-go/pkg/apis/authorization/v1beta1/types.generated.go similarity index 99% rename from vendor/k8s.io/client-go/1.5/pkg/apis/authorization/v1beta1/types.generated.go rename to vendor/k8s.io/client-go/pkg/apis/authorization/v1beta1/types.generated.go index 90178f2d7..011c08fca 100644 --- a/vendor/k8s.io/client-go/1.5/pkg/apis/authorization/v1beta1/types.generated.go +++ b/vendor/k8s.io/client-go/pkg/apis/authorization/v1beta1/types.generated.go @@ -25,9 +25,9 @@ import ( "errors" "fmt" codec1978 "github.com/ugorji/go/codec" - pkg1_unversioned "k8s.io/client-go/1.5/pkg/api/unversioned" - pkg2_v1 "k8s.io/client-go/1.5/pkg/api/v1" - pkg3_types "k8s.io/client-go/1.5/pkg/types" + pkg1_unversioned "k8s.io/client-go/pkg/api/unversioned" + pkg2_v1 "k8s.io/client-go/pkg/api/v1" + pkg3_types "k8s.io/client-go/pkg/types" "reflect" "runtime" time "time" diff --git a/vendor/k8s.io/client-go/1.5/pkg/apis/authorization/v1beta1/types.go b/vendor/k8s.io/client-go/pkg/apis/authorization/v1beta1/types.go similarity index 92% rename from vendor/k8s.io/client-go/1.5/pkg/apis/authorization/v1beta1/types.go rename to vendor/k8s.io/client-go/pkg/apis/authorization/v1beta1/types.go index 43e931d4b..b254b3b02 100644 --- a/vendor/k8s.io/client-go/1.5/pkg/apis/authorization/v1beta1/types.go +++ b/vendor/k8s.io/client-go/pkg/apis/authorization/v1beta1/types.go @@ -19,8 +19,8 @@ package v1beta1 import ( "fmt" - "k8s.io/client-go/1.5/pkg/api/unversioned" - "k8s.io/client-go/1.5/pkg/api/v1" + "k8s.io/client-go/pkg/api/unversioned" + "k8s.io/client-go/pkg/api/v1" ) // +genclient=true @@ -30,12 +30,14 @@ import ( // 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"` + // +optional + v1.ObjectMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"` // Spec holds information about the request being evaluated 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 + // +optional Status SubjectAccessReviewStatus `json:"status,omitempty" protobuf:"bytes,3,opt,name=status"` } @@ -48,12 +50,14 @@ 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"` + // +optional + 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" protobuf:"bytes,2,opt,name=spec"` // Status is filled in by the server and indicates whether the request is allowed or not + // +optional Status SubjectAccessReviewStatus `json:"status,omitempty" protobuf:"bytes,3,opt,name=status"` } @@ -65,13 +69,15 @@ type SelfSubjectAccessReview struct { // checking. type LocalSubjectAccessReview struct { unversioned.TypeMeta `json:",inline"` - v1.ObjectMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"` + // +optional + 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" protobuf:"bytes,2,opt,name=spec"` // Status is filled in by the server and indicates whether the request is allowed or not + // +optional Status SubjectAccessReviewStatus `json:"status,omitempty" protobuf:"bytes,3,opt,name=status"` } @@ -81,26 +87,35 @@ 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 + // +optional 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. + // +optional Verb string `json:"verb,omitempty" protobuf:"bytes,2,opt,name=verb"` // Group is the API Group of the Resource. "*" means all. + // +optional Group string `json:"group,omitempty" protobuf:"bytes,3,opt,name=group"` // Version is the API Version of the Resource. "*" means all. + // +optional Version string `json:"version,omitempty" protobuf:"bytes,4,opt,name=version"` // Resource is one of the existing resource types. "*" means all. + // +optional Resource string `json:"resource,omitempty" protobuf:"bytes,5,opt,name=resource"` // Subresource is one of the existing resource types. "" means none. + // +optional 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. + // +optional 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 + // +optional Path string `json:"path,omitempty" protobuf:"bytes,1,opt,name=path"` // Verb is the standard HTTP verb + // +optional Verb string `json:"verb,omitempty" protobuf:"bytes,2,opt,name=verb"` } @@ -108,17 +123,22 @@ type NonResourceAttributes struct { // and NonResourceAuthorizationAttributes must be set type SubjectAccessReviewSpec struct { // ResourceAuthorizationAttributes describes information for a resource access request + // +optional ResourceAttributes *ResourceAttributes `json:"resourceAttributes,omitempty" protobuf:"bytes,1,opt,name=resourceAttributes"` // NonResourceAttributes describes information for a non-resource access request + // +optional 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 + // +optional User string `json:"user,omitempty" protobuf:"bytes,3,opt,name=verb"` // Groups is the groups you're testing for. + // +optional 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. + // +optional Extra map[string]ExtraValue `json:"extra,omitempty" protobuf:"bytes,5,rep,name=extra"` } @@ -135,8 +155,10 @@ func (t ExtraValue) String() string { // and NonResourceAuthorizationAttributes must be set type SelfSubjectAccessReviewSpec struct { // ResourceAuthorizationAttributes describes information for a resource access request + // +optional ResourceAttributes *ResourceAttributes `json:"resourceAttributes,omitempty" protobuf:"bytes,1,opt,name=resourceAttributes"` // NonResourceAttributes describes information for a non-resource access request + // +optional NonResourceAttributes *NonResourceAttributes `json:"nonResourceAttributes,omitempty" protobuf:"bytes,2,opt,name=nonResourceAttributes"` } @@ -145,9 +167,11 @@ type SubjectAccessReviewStatus struct { // Allowed is required. True if the action would be allowed, false otherwise. Allowed bool `json:"allowed" protobuf:"varint,1,opt,name=allowed"` // Reason is optional. It indicates why a request was allowed or denied. + // +optional 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. + // +optional EvaluationError string `json:"evaluationError,omitempty" protobuf:"bytes,3,opt,name=evaluationError"` } diff --git a/vendor/k8s.io/client-go/1.5/pkg/apis/authorization/v1beta1/types_swagger_doc_generated.go b/vendor/k8s.io/client-go/pkg/apis/authorization/v1beta1/types_swagger_doc_generated.go similarity index 100% rename from vendor/k8s.io/client-go/1.5/pkg/apis/authorization/v1beta1/types_swagger_doc_generated.go rename to vendor/k8s.io/client-go/pkg/apis/authorization/v1beta1/types_swagger_doc_generated.go diff --git a/vendor/k8s.io/client-go/1.5/pkg/apis/authorization/v1beta1/zz_generated.conversion.go b/vendor/k8s.io/client-go/pkg/apis/authorization/v1beta1/zz_generated.conversion.go similarity index 75% rename from vendor/k8s.io/client-go/1.5/pkg/apis/authorization/v1beta1/zz_generated.conversion.go rename to vendor/k8s.io/client-go/pkg/apis/authorization/v1beta1/zz_generated.conversion.go index b7da21988..91ba65767 100644 --- a/vendor/k8s.io/client-go/1.5/pkg/apis/authorization/v1beta1/zz_generated.conversion.go +++ b/vendor/k8s.io/client-go/pkg/apis/authorization/v1beta1/zz_generated.conversion.go @@ -1,7 +1,7 @@ // +build !ignore_autogenerated /* -Copyright 2016 The Kubernetes Authors. +Copyright 2017 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -21,10 +21,10 @@ limitations under the License. package v1beta1 import ( - api "k8s.io/client-go/1.5/pkg/api" - authorization "k8s.io/client-go/1.5/pkg/apis/authorization" - conversion "k8s.io/client-go/1.5/pkg/conversion" - runtime "k8s.io/client-go/1.5/pkg/runtime" + authorization "k8s.io/client-go/pkg/apis/authorization" + conversion "k8s.io/client-go/pkg/conversion" + runtime "k8s.io/client-go/pkg/runtime" + unsafe "unsafe" ) func init() { @@ -55,9 +55,6 @@ func RegisterConversions(scheme *runtime.Scheme) error { } 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 @@ -76,9 +73,6 @@ func Convert_v1beta1_LocalSubjectAccessReview_To_authorization_LocalSubjectAcces } func autoConvert_authorization_LocalSubjectAccessReview_To_v1beta1_LocalSubjectAccessReview(in *authorization.LocalSubjectAccessReview, out *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 @@ -147,9 +141,6 @@ func Convert_authorization_ResourceAttributes_To_v1beta1_ResourceAttributes(in * } func autoConvert_v1beta1_SelfSubjectAccessReview_To_authorization_SelfSubjectAccessReview(in *SelfSubjectAccessReview, out *authorization.SelfSubjectAccessReview, 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 @@ -168,9 +159,6 @@ func Convert_v1beta1_SelfSubjectAccessReview_To_authorization_SelfSubjectAccessR } func autoConvert_authorization_SelfSubjectAccessReview_To_v1beta1_SelfSubjectAccessReview(in *authorization.SelfSubjectAccessReview, out *SelfSubjectAccessReview, 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 @@ -189,24 +177,8 @@ func Convert_authorization_SelfSubjectAccessReview_To_v1beta1_SelfSubjectAccessR } func autoConvert_v1beta1_SelfSubjectAccessReviewSpec_To_authorization_SelfSubjectAccessReviewSpec(in *SelfSubjectAccessReviewSpec, out *authorization.SelfSubjectAccessReviewSpec, s conversion.Scope) error { - if in.ResourceAttributes != nil { - in, out := &in.ResourceAttributes, &out.ResourceAttributes - *out = new(authorization.ResourceAttributes) - if err := Convert_v1beta1_ResourceAttributes_To_authorization_ResourceAttributes(*in, *out, s); err != nil { - return err - } - } else { - out.ResourceAttributes = nil - } - if in.NonResourceAttributes != nil { - in, out := &in.NonResourceAttributes, &out.NonResourceAttributes - *out = new(authorization.NonResourceAttributes) - if err := Convert_v1beta1_NonResourceAttributes_To_authorization_NonResourceAttributes(*in, *out, s); err != nil { - return err - } - } else { - out.NonResourceAttributes = nil - } + out.ResourceAttributes = (*authorization.ResourceAttributes)(unsafe.Pointer(in.ResourceAttributes)) + out.NonResourceAttributes = (*authorization.NonResourceAttributes)(unsafe.Pointer(in.NonResourceAttributes)) return nil } @@ -215,24 +187,8 @@ func Convert_v1beta1_SelfSubjectAccessReviewSpec_To_authorization_SelfSubjectAcc } func autoConvert_authorization_SelfSubjectAccessReviewSpec_To_v1beta1_SelfSubjectAccessReviewSpec(in *authorization.SelfSubjectAccessReviewSpec, out *SelfSubjectAccessReviewSpec, s conversion.Scope) error { - if in.ResourceAttributes != nil { - in, out := &in.ResourceAttributes, &out.ResourceAttributes - *out = new(ResourceAttributes) - if err := Convert_authorization_ResourceAttributes_To_v1beta1_ResourceAttributes(*in, *out, s); err != nil { - return err - } - } else { - out.ResourceAttributes = nil - } - if in.NonResourceAttributes != nil { - in, out := &in.NonResourceAttributes, &out.NonResourceAttributes - *out = new(NonResourceAttributes) - if err := Convert_authorization_NonResourceAttributes_To_v1beta1_NonResourceAttributes(*in, *out, s); err != nil { - return err - } - } else { - out.NonResourceAttributes = nil - } + out.ResourceAttributes = (*ResourceAttributes)(unsafe.Pointer(in.ResourceAttributes)) + out.NonResourceAttributes = (*NonResourceAttributes)(unsafe.Pointer(in.NonResourceAttributes)) return nil } @@ -241,9 +197,6 @@ func Convert_authorization_SelfSubjectAccessReviewSpec_To_v1beta1_SelfSubjectAcc } func autoConvert_v1beta1_SubjectAccessReview_To_authorization_SubjectAccessReview(in *SubjectAccessReview, out *authorization.SubjectAccessReview, 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 @@ -262,9 +215,6 @@ func Convert_v1beta1_SubjectAccessReview_To_authorization_SubjectAccessReview(in } func autoConvert_authorization_SubjectAccessReview_To_v1beta1_SubjectAccessReview(in *authorization.SubjectAccessReview, out *SubjectAccessReview, 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 @@ -283,40 +233,11 @@ func Convert_authorization_SubjectAccessReview_To_v1beta1_SubjectAccessReview(in } func autoConvert_v1beta1_SubjectAccessReviewSpec_To_authorization_SubjectAccessReviewSpec(in *SubjectAccessReviewSpec, out *authorization.SubjectAccessReviewSpec, s conversion.Scope) error { - if in.ResourceAttributes != nil { - in, out := &in.ResourceAttributes, &out.ResourceAttributes - *out = new(authorization.ResourceAttributes) - if err := Convert_v1beta1_ResourceAttributes_To_authorization_ResourceAttributes(*in, *out, s); err != nil { - return err - } - } else { - out.ResourceAttributes = nil - } - if in.NonResourceAttributes != nil { - in, out := &in.NonResourceAttributes, &out.NonResourceAttributes - *out = new(authorization.NonResourceAttributes) - if err := Convert_v1beta1_NonResourceAttributes_To_authorization_NonResourceAttributes(*in, *out, s); err != nil { - return err - } - } else { - out.NonResourceAttributes = nil - } + out.ResourceAttributes = (*authorization.ResourceAttributes)(unsafe.Pointer(in.ResourceAttributes)) + out.NonResourceAttributes = (*authorization.NonResourceAttributes)(unsafe.Pointer(in.NonResourceAttributes)) out.User = in.User - out.Groups = in.Groups - 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 - } + out.Groups = *(*[]string)(unsafe.Pointer(&in.Groups)) + out.Extra = *(*map[string]authorization.ExtraValue)(unsafe.Pointer(&in.Extra)) return nil } @@ -325,40 +246,11 @@ func Convert_v1beta1_SubjectAccessReviewSpec_To_authorization_SubjectAccessRevie } func autoConvert_authorization_SubjectAccessReviewSpec_To_v1beta1_SubjectAccessReviewSpec(in *authorization.SubjectAccessReviewSpec, out *SubjectAccessReviewSpec, s conversion.Scope) error { - if in.ResourceAttributes != nil { - in, out := &in.ResourceAttributes, &out.ResourceAttributes - *out = new(ResourceAttributes) - if err := Convert_authorization_ResourceAttributes_To_v1beta1_ResourceAttributes(*in, *out, s); err != nil { - return err - } - } else { - out.ResourceAttributes = nil - } - if in.NonResourceAttributes != nil { - in, out := &in.NonResourceAttributes, &out.NonResourceAttributes - *out = new(NonResourceAttributes) - if err := Convert_authorization_NonResourceAttributes_To_v1beta1_NonResourceAttributes(*in, *out, s); err != nil { - return err - } - } else { - out.NonResourceAttributes = nil - } + out.ResourceAttributes = (*ResourceAttributes)(unsafe.Pointer(in.ResourceAttributes)) + out.NonResourceAttributes = (*NonResourceAttributes)(unsafe.Pointer(in.NonResourceAttributes)) out.User = in.User - 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 - } + out.Groups = *(*[]string)(unsafe.Pointer(&in.Groups)) + out.Extra = *(*map[string]ExtraValue)(unsafe.Pointer(&in.Extra)) return nil } diff --git a/vendor/k8s.io/client-go/1.5/pkg/apis/authorization/v1beta1/zz_generated.deepcopy.go b/vendor/k8s.io/client-go/pkg/apis/authorization/v1beta1/zz_generated.deepcopy.go similarity index 97% rename from vendor/k8s.io/client-go/1.5/pkg/apis/authorization/v1beta1/zz_generated.deepcopy.go rename to vendor/k8s.io/client-go/pkg/apis/authorization/v1beta1/zz_generated.deepcopy.go index 62f1fef48..1ebf67586 100644 --- a/vendor/k8s.io/client-go/1.5/pkg/apis/authorization/v1beta1/zz_generated.deepcopy.go +++ b/vendor/k8s.io/client-go/pkg/apis/authorization/v1beta1/zz_generated.deepcopy.go @@ -1,7 +1,7 @@ // +build !ignore_autogenerated /* -Copyright 2016 The Kubernetes Authors. +Copyright 2017 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -21,9 +21,9 @@ limitations under the License. package v1beta1 import ( - v1 "k8s.io/client-go/1.5/pkg/api/v1" - conversion "k8s.io/client-go/1.5/pkg/conversion" - runtime "k8s.io/client-go/1.5/pkg/runtime" + v1 "k8s.io/client-go/pkg/api/v1" + conversion "k8s.io/client-go/pkg/conversion" + runtime "k8s.io/client-go/pkg/runtime" reflect "reflect" ) diff --git a/vendor/k8s.io/client-go/1.5/pkg/apis/authorization/zz_generated.deepcopy.go b/vendor/k8s.io/client-go/pkg/apis/authorization/zz_generated.deepcopy.go similarity index 97% rename from vendor/k8s.io/client-go/1.5/pkg/apis/authorization/zz_generated.deepcopy.go rename to vendor/k8s.io/client-go/pkg/apis/authorization/zz_generated.deepcopy.go index 48da2b495..f97e894d3 100644 --- a/vendor/k8s.io/client-go/1.5/pkg/apis/authorization/zz_generated.deepcopy.go +++ b/vendor/k8s.io/client-go/pkg/apis/authorization/zz_generated.deepcopy.go @@ -1,7 +1,7 @@ // +build !ignore_autogenerated /* -Copyright 2016 The Kubernetes Authors. +Copyright 2017 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -21,9 +21,9 @@ limitations under the License. package authorization import ( - api "k8s.io/client-go/1.5/pkg/api" - conversion "k8s.io/client-go/1.5/pkg/conversion" - runtime "k8s.io/client-go/1.5/pkg/runtime" + api "k8s.io/client-go/pkg/api" + conversion "k8s.io/client-go/pkg/conversion" + runtime "k8s.io/client-go/pkg/runtime" reflect "reflect" ) diff --git a/vendor/k8s.io/client-go/1.5/pkg/apis/autoscaling/doc.go b/vendor/k8s.io/client-go/pkg/apis/autoscaling/doc.go similarity index 100% rename from vendor/k8s.io/client-go/1.5/pkg/apis/autoscaling/doc.go rename to vendor/k8s.io/client-go/pkg/apis/autoscaling/doc.go diff --git a/vendor/k8s.io/client-go/1.5/pkg/apis/autoscaling/install/install.go b/vendor/k8s.io/client-go/pkg/apis/autoscaling/install/install.go similarity index 84% rename from vendor/k8s.io/client-go/1.5/pkg/apis/autoscaling/install/install.go rename to vendor/k8s.io/client-go/pkg/apis/autoscaling/install/install.go index bf0f08f41..060aa0774 100644 --- a/vendor/k8s.io/client-go/1.5/pkg/apis/autoscaling/install/install.go +++ b/vendor/k8s.io/client-go/pkg/apis/autoscaling/install/install.go @@ -19,9 +19,9 @@ limitations under the License. package install import ( - "k8s.io/client-go/1.5/pkg/apimachinery/announced" - "k8s.io/client-go/1.5/pkg/apis/autoscaling" - "k8s.io/client-go/1.5/pkg/apis/autoscaling/v1" + "k8s.io/client-go/pkg/apimachinery/announced" + "k8s.io/client-go/pkg/apis/autoscaling" + "k8s.io/client-go/pkg/apis/autoscaling/v1" ) func init() { @@ -29,7 +29,7 @@ func init() { &announced.GroupMetaFactoryArgs{ GroupName: autoscaling.GroupName, VersionPreferenceOrder: []string{v1.SchemeGroupVersion.Version}, - ImportPrefix: "k8s.io/client-go/1.5/pkg/apis/autoscaling", + ImportPrefix: "k8s.io/client-go/pkg/apis/autoscaling", AddInternalObjectsToScheme: autoscaling.AddToScheme, }, announced.VersionToSchemeFunc{ diff --git a/vendor/k8s.io/client-go/1.5/pkg/apis/autoscaling/register.go b/vendor/k8s.io/client-go/pkg/apis/autoscaling/register.go similarity index 92% rename from vendor/k8s.io/client-go/1.5/pkg/apis/autoscaling/register.go rename to vendor/k8s.io/client-go/pkg/apis/autoscaling/register.go index 9f2e3ccca..41e7e0074 100644 --- a/vendor/k8s.io/client-go/1.5/pkg/apis/autoscaling/register.go +++ b/vendor/k8s.io/client-go/pkg/apis/autoscaling/register.go @@ -17,9 +17,9 @@ limitations under the License. package autoscaling import ( - "k8s.io/client-go/1.5/pkg/api" - "k8s.io/client-go/1.5/pkg/api/unversioned" - "k8s.io/client-go/1.5/pkg/runtime" + "k8s.io/client-go/pkg/api" + "k8s.io/client-go/pkg/api/unversioned" + "k8s.io/client-go/pkg/runtime" ) // GroupName is the group name use in this package @@ -50,6 +50,7 @@ func addKnownTypes(scheme *runtime.Scheme) error { &HorizontalPodAutoscaler{}, &HorizontalPodAutoscalerList{}, &api.ListOptions{}, + &api.DeleteOptions{}, ) return nil } diff --git a/vendor/k8s.io/client-go/1.5/pkg/apis/autoscaling/types.generated.go b/vendor/k8s.io/client-go/pkg/apis/autoscaling/types.generated.go similarity index 99% rename from vendor/k8s.io/client-go/1.5/pkg/apis/autoscaling/types.generated.go rename to vendor/k8s.io/client-go/pkg/apis/autoscaling/types.generated.go index d9c9c3fa0..89e5ff87e 100644 --- a/vendor/k8s.io/client-go/1.5/pkg/apis/autoscaling/types.generated.go +++ b/vendor/k8s.io/client-go/pkg/apis/autoscaling/types.generated.go @@ -25,9 +25,9 @@ import ( "errors" "fmt" codec1978 "github.com/ugorji/go/codec" - pkg2_api "k8s.io/client-go/1.5/pkg/api" - pkg1_unversioned "k8s.io/client-go/1.5/pkg/api/unversioned" - pkg3_types "k8s.io/client-go/1.5/pkg/types" + pkg2_api "k8s.io/client-go/pkg/api" + pkg1_unversioned "k8s.io/client-go/pkg/api/unversioned" + pkg3_types "k8s.io/client-go/pkg/types" "reflect" "runtime" time "time" diff --git a/vendor/k8s.io/client-go/1.5/pkg/apis/autoscaling/types.go b/vendor/k8s.io/client-go/pkg/apis/autoscaling/types.go similarity index 90% rename from vendor/k8s.io/client-go/1.5/pkg/apis/autoscaling/types.go rename to vendor/k8s.io/client-go/pkg/apis/autoscaling/types.go index 183ca4934..438d82b42 100644 --- a/vendor/k8s.io/client-go/1.5/pkg/apis/autoscaling/types.go +++ b/vendor/k8s.io/client-go/pkg/apis/autoscaling/types.go @@ -17,26 +17,30 @@ limitations under the License. package autoscaling import ( - "k8s.io/client-go/1.5/pkg/api" - "k8s.io/client-go/1.5/pkg/api/unversioned" + "k8s.io/client-go/pkg/api" + "k8s.io/client-go/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. + // +optional 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. + // +optional 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. + // +optional Status ScaleStatus `json:"status,omitempty"` } // ScaleSpec describes the attributes of a scale subresource. type ScaleSpec struct { // desired number of instances for the scaled object. + // +optional Replicas int32 `json:"replicas,omitempty"` } @@ -48,7 +52,8 @@ type ScaleStatus struct { // 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 + // More info: http://kubernetes.io/docs/user-guide/labels#label-selectors + // +optional Selector string `json:"selector,omitempty"` } @@ -56,9 +61,10 @@ type ScaleStatus struct { 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 of the referent; More info: http://kubernetes.io/docs/user-guide/identifiers#names Name string `json:"name" protobuf:"bytes,2,opt,name=name"` // API version of the referent + // +optional APIVersion string `json:"apiVersion,omitempty" protobuf:"bytes,3,opt,name=apiVersion"` } @@ -68,21 +74,25 @@ type HorizontalPodAutoscalerSpec struct { // 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. + // +optional 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. + // +optional TargetCPUUtilizationPercentage *int32 `json:"targetCPUUtilizationPercentage,omitempty"` } // current status of a horizontal pod autoscaler type HorizontalPodAutoscalerStatus struct { // most recent generation observed by this autoscaler. + // +optional 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. + // +optional LastScaleTime *unversioned.Time `json:"lastScaleTime,omitempty"` // current number of replicas of pods managed by this autoscaler. @@ -93,6 +103,7 @@ type HorizontalPodAutoscalerStatus struct { // 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. + // +optional CurrentCPUUtilizationPercentage *int32 `json:"currentCPUUtilizationPercentage,omitempty"` } @@ -101,18 +112,22 @@ type HorizontalPodAutoscalerStatus struct { // configuration of a horizontal pod autoscaler. type HorizontalPodAutoscaler struct { unversioned.TypeMeta `json:",inline"` - api.ObjectMeta `json:"metadata,omitempty"` + // +optional + api.ObjectMeta `json:"metadata,omitempty"` // behaviour of autoscaler. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status. + // +optional Spec HorizontalPodAutoscalerSpec `json:"spec,omitempty"` // current information about the autoscaler. + // +optional Status HorizontalPodAutoscalerStatus `json:"status,omitempty"` } // list of horizontal pod autoscaler objects. type HorizontalPodAutoscalerList struct { unversioned.TypeMeta `json:",inline"` + // +optional unversioned.ListMeta `json:"metadata,omitempty"` // list of horizontal pod autoscaler objects. diff --git a/vendor/k8s.io/client-go/1.5/pkg/apis/autoscaling/v1/defaults.go b/vendor/k8s.io/client-go/pkg/apis/autoscaling/v1/defaults.go similarity index 93% rename from vendor/k8s.io/client-go/1.5/pkg/apis/autoscaling/v1/defaults.go rename to vendor/k8s.io/client-go/pkg/apis/autoscaling/v1/defaults.go index 38ee1b1de..dc0c90c2e 100644 --- a/vendor/k8s.io/client-go/1.5/pkg/apis/autoscaling/v1/defaults.go +++ b/vendor/k8s.io/client-go/pkg/apis/autoscaling/v1/defaults.go @@ -17,10 +17,11 @@ limitations under the License. package v1 import ( - "k8s.io/client-go/1.5/pkg/runtime" + "k8s.io/client-go/pkg/runtime" ) func addDefaultingFuncs(scheme *runtime.Scheme) error { + RegisterDefaults(scheme) return scheme.AddDefaultingFuncs( SetDefaults_HorizontalPodAutoscaler, ) diff --git a/vendor/k8s.io/client-go/1.5/pkg/apis/autoscaling/v1/doc.go b/vendor/k8s.io/client-go/pkg/apis/autoscaling/v1/doc.go similarity index 95% rename from vendor/k8s.io/client-go/1.5/pkg/apis/autoscaling/v1/doc.go rename to vendor/k8s.io/client-go/pkg/apis/autoscaling/v1/doc.go index f89c5c89c..105a57ace 100644 --- a/vendor/k8s.io/client-go/1.5/pkg/apis/autoscaling/v1/doc.go +++ b/vendor/k8s.io/client-go/pkg/apis/autoscaling/v1/doc.go @@ -17,5 +17,6 @@ limitations under the License. // +k8s:deepcopy-gen=package,register // +k8s:conversion-gen=k8s.io/kubernetes/pkg/apis/autoscaling // +k8s:openapi-gen=true +// +k8s:defaulter-gen=TypeMeta package v1 diff --git a/vendor/k8s.io/client-go/1.5/pkg/apis/autoscaling/v1/generated.pb.go b/vendor/k8s.io/client-go/pkg/apis/autoscaling/v1/generated.pb.go similarity index 87% rename from vendor/k8s.io/client-go/1.5/pkg/apis/autoscaling/v1/generated.pb.go rename to vendor/k8s.io/client-go/pkg/apis/autoscaling/v1/generated.pb.go index 04f08e993..ab6c61bc7 100644 --- a/vendor/k8s.io/client-go/1.5/pkg/apis/autoscaling/v1/generated.pb.go +++ b/vendor/k8s.io/client-go/pkg/apis/autoscaling/v1/generated.pb.go @@ -1,5 +1,5 @@ /* -Copyright 2016 The Kubernetes Authors. +Copyright 2017 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -40,7 +40,7 @@ import proto "github.com/gogo/protobuf/proto" import fmt "fmt" import math "math" -import k8s_io_kubernetes_pkg_api_unversioned "k8s.io/client-go/1.5/pkg/api/unversioned" +import k8s_io_kubernetes_pkg_api_unversioned "k8s.io/client-go/pkg/api/unversioned" import strings "strings" import reflect "reflect" @@ -97,14 +97,14 @@ func (*ScaleStatus) ProtoMessage() {} func (*ScaleStatus) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{7} } func init() { - proto.RegisterType((*CrossVersionObjectReference)(nil), "k8s.io.client-go.1.5.pkg.apis.autoscaling.v1.CrossVersionObjectReference") - proto.RegisterType((*HorizontalPodAutoscaler)(nil), "k8s.io.client-go.1.5.pkg.apis.autoscaling.v1.HorizontalPodAutoscaler") - proto.RegisterType((*HorizontalPodAutoscalerList)(nil), "k8s.io.client-go.1.5.pkg.apis.autoscaling.v1.HorizontalPodAutoscalerList") - proto.RegisterType((*HorizontalPodAutoscalerSpec)(nil), "k8s.io.client-go.1.5.pkg.apis.autoscaling.v1.HorizontalPodAutoscalerSpec") - proto.RegisterType((*HorizontalPodAutoscalerStatus)(nil), "k8s.io.client-go.1.5.pkg.apis.autoscaling.v1.HorizontalPodAutoscalerStatus") - proto.RegisterType((*Scale)(nil), "k8s.io.client-go.1.5.pkg.apis.autoscaling.v1.Scale") - proto.RegisterType((*ScaleSpec)(nil), "k8s.io.client-go.1.5.pkg.apis.autoscaling.v1.ScaleSpec") - proto.RegisterType((*ScaleStatus)(nil), "k8s.io.client-go.1.5.pkg.apis.autoscaling.v1.ScaleStatus") + proto.RegisterType((*CrossVersionObjectReference)(nil), "k8s.io.client-go.pkg.apis.autoscaling.v1.CrossVersionObjectReference") + proto.RegisterType((*HorizontalPodAutoscaler)(nil), "k8s.io.client-go.pkg.apis.autoscaling.v1.HorizontalPodAutoscaler") + proto.RegisterType((*HorizontalPodAutoscalerList)(nil), "k8s.io.client-go.pkg.apis.autoscaling.v1.HorizontalPodAutoscalerList") + proto.RegisterType((*HorizontalPodAutoscalerSpec)(nil), "k8s.io.client-go.pkg.apis.autoscaling.v1.HorizontalPodAutoscalerSpec") + proto.RegisterType((*HorizontalPodAutoscalerStatus)(nil), "k8s.io.client-go.pkg.apis.autoscaling.v1.HorizontalPodAutoscalerStatus") + proto.RegisterType((*Scale)(nil), "k8s.io.client-go.pkg.apis.autoscaling.v1.Scale") + proto.RegisterType((*ScaleSpec)(nil), "k8s.io.client-go.pkg.apis.autoscaling.v1.ScaleSpec") + proto.RegisterType((*ScaleStatus)(nil), "k8s.io.client-go.pkg.apis.autoscaling.v1.ScaleStatus") } func (m *CrossVersionObjectReference) Marshal() (data []byte, err error) { size := m.Size() @@ -1730,57 +1730,58 @@ var ( ) 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, + // 835 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x09, 0x6e, 0x88, 0x02, 0xff, 0xb4, 0x55, 0xcd, 0x6f, 0xdc, 0x44, + 0x14, 0x5f, 0xef, 0x47, 0x95, 0x8e, 0x49, 0x02, 0x83, 0xd4, 0xae, 0x52, 0x61, 0x47, 0x0b, 0x87, + 0x20, 0x5a, 0x5b, 0xbb, 0xa2, 0x88, 0x1e, 0xe3, 0xa0, 0xd2, 0x8a, 0x86, 0x46, 0x93, 0xb6, 0x42, + 0x48, 0x20, 0xcd, 0xda, 0xaf, 0xee, 0x74, 0xd7, 0x1e, 0x6b, 0x66, 0xbc, 0x42, 0x3d, 0x71, 0xe2, + 0xcc, 0x85, 0x03, 0xff, 0x0e, 0xa7, 0xdc, 0xe8, 0x91, 0xd3, 0x8a, 0x18, 0xf1, 0x5f, 0x70, 0x40, + 0x9e, 0x9d, 0x7a, 0xbf, 0xe2, 0x6d, 0x23, 0xe8, 0x6d, 0x67, 0xde, 0xef, 0xe3, 0xcd, 0x7b, 0xcf, + 0x6f, 0xd1, 0x9d, 0xd1, 0xe7, 0xd2, 0x63, 0xdc, 0x1f, 0xe5, 0x43, 0x10, 0x29, 0x28, 0x90, 0x7e, + 0x36, 0x8a, 0x7d, 0x9a, 0x31, 0xe9, 0xd3, 0x5c, 0x71, 0x19, 0xd2, 0x31, 0x4b, 0x63, 0x7f, 0xd2, + 0xf7, 0x63, 0x48, 0x41, 0x50, 0x05, 0x91, 0x97, 0x09, 0xae, 0x38, 0xfe, 0x78, 0x46, 0xf5, 0xe6, + 0x54, 0x2f, 0x1b, 0xc5, 0x5e, 0x49, 0xf5, 0x16, 0xa8, 0xde, 0xa4, 0xbf, 0x77, 0x2b, 0x66, 0xea, + 0x59, 0x3e, 0xf4, 0x42, 0x9e, 0xf8, 0x31, 0x8f, 0xb9, 0xaf, 0x15, 0x86, 0xf9, 0x53, 0x7d, 0xd2, + 0x07, 0xfd, 0x6b, 0xa6, 0xbc, 0x37, 0xa8, 0x4d, 0xca, 0x17, 0x20, 0x79, 0x2e, 0x42, 0x58, 0xcd, + 0x66, 0xef, 0x76, 0x3d, 0x27, 0x4f, 0x27, 0x20, 0x24, 0xe3, 0x29, 0x44, 0x6b, 0xb4, 0x9b, 0xf5, + 0xb4, 0xf5, 0x27, 0xef, 0xdd, 0xba, 0x18, 0x2d, 0xf2, 0x54, 0xb1, 0x64, 0x3d, 0xa7, 0xfe, 0xc5, + 0xf0, 0x5c, 0xb1, 0xb1, 0xcf, 0x52, 0x25, 0x95, 0x58, 0xa5, 0xf4, 0x7e, 0xb1, 0xd0, 0x8d, 0x23, + 0xc1, 0xa5, 0x7c, 0x32, 0x4b, 0xf9, 0xe1, 0xf0, 0x39, 0x84, 0x8a, 0xc0, 0x53, 0x10, 0x90, 0x86, + 0x80, 0xf7, 0x51, 0x7b, 0xc4, 0xd2, 0xa8, 0x6b, 0xed, 0x5b, 0x07, 0x57, 0x83, 0x77, 0xce, 0xa6, + 0x6e, 0xa3, 0x98, 0xba, 0xed, 0xaf, 0x58, 0x1a, 0x11, 0x1d, 0x29, 0x11, 0x29, 0x4d, 0xa0, 0xdb, + 0x5c, 0x46, 0x7c, 0x4d, 0x13, 0x20, 0x3a, 0x82, 0x07, 0x08, 0xd1, 0x8c, 0x19, 0x83, 0x6e, 0x4b, + 0xe3, 0xb0, 0xc1, 0xa1, 0xc3, 0x93, 0xfb, 0x26, 0x42, 0x16, 0x50, 0xbd, 0xdf, 0x9b, 0xe8, 0xfa, + 0x3d, 0x2e, 0xd8, 0x0b, 0x9e, 0x2a, 0x3a, 0x3e, 0xe1, 0xd1, 0xa1, 0xe9, 0x30, 0x08, 0xfc, 0x0d, + 0xda, 0x4a, 0x40, 0xd1, 0x88, 0x2a, 0xaa, 0xf3, 0xb2, 0x07, 0x07, 0x5e, 0xed, 0x6c, 0x78, 0x93, + 0xbe, 0x37, 0x7b, 0xd4, 0x31, 0x28, 0x3a, 0xf7, 0x9d, 0xdf, 0x91, 0x4a, 0x0d, 0x3f, 0x43, 0x6d, + 0x99, 0x41, 0xa8, 0xdf, 0x62, 0x0f, 0xee, 0x7a, 0x6f, 0x3c, 0x71, 0x5e, 0x4d, 0xae, 0xa7, 0x19, + 0x84, 0xf3, 0x9a, 0x94, 0x27, 0xa2, 0x1d, 0x70, 0x86, 0xae, 0x48, 0x45, 0x55, 0x2e, 0x75, 0x3d, + 0xec, 0xc1, 0xbd, 0xff, 0xc1, 0x4b, 0xeb, 0x05, 0x3b, 0xc6, 0xed, 0xca, 0xec, 0x4c, 0x8c, 0x4f, + 0xef, 0x6f, 0x0b, 0xdd, 0xa8, 0x61, 0x3e, 0x60, 0x52, 0xe1, 0xef, 0xd6, 0xaa, 0xea, 0x6f, 0xa8, + 0xea, 0xc2, 0x8c, 0x7b, 0x25, 0x5d, 0x17, 0xf7, 0x5d, 0x63, 0xbd, 0xf5, 0xea, 0x66, 0xa1, 0xb4, + 0x31, 0xea, 0x30, 0x05, 0x89, 0xec, 0x36, 0xf7, 0x5b, 0x07, 0xf6, 0x20, 0xf8, 0xef, 0xef, 0x0d, + 0xb6, 0x8d, 0x5d, 0xe7, 0x7e, 0x29, 0x4c, 0x66, 0xfa, 0xbd, 0x7f, 0x9a, 0xb5, 0xef, 0x2c, 0xeb, + 0x8f, 0x7f, 0xb2, 0xd0, 0x8e, 0x3e, 0x3e, 0xa2, 0x22, 0x86, 0x72, 0xd4, 0xcd, 0x73, 0x2f, 0xd3, + 0xee, 0x0d, 0x9f, 0x4c, 0x70, 0xcd, 0xa4, 0xb5, 0x73, 0xba, 0xe4, 0x42, 0x56, 0x5c, 0x71, 0x1f, + 0xd9, 0x09, 0x4b, 0x09, 0x64, 0x63, 0x16, 0x52, 0xa9, 0x67, 0xae, 0x13, 0xec, 0x16, 0x53, 0xd7, + 0x3e, 0x9e, 0x5f, 0x93, 0x45, 0x0c, 0xbe, 0x8d, 0xec, 0x84, 0xfe, 0x50, 0x51, 0x5a, 0x9a, 0xf2, + 0xbe, 0xf1, 0xb3, 0x8f, 0xe7, 0x21, 0xb2, 0x88, 0xc3, 0xcf, 0x91, 0xa3, 0xb4, 0xed, 0xd1, 0xc9, + 0xe3, 0xc7, 0x8a, 0x8d, 0xd9, 0x0b, 0xaa, 0x18, 0x4f, 0x4f, 0x40, 0x84, 0x90, 0x2a, 0x1a, 0x43, + 0xb7, 0xad, 0x95, 0x7a, 0xc5, 0xd4, 0x75, 0x1e, 0x6d, 0x44, 0x92, 0xd7, 0x28, 0xf5, 0x7e, 0x6b, + 0xa1, 0x0f, 0x36, 0x0e, 0x28, 0xbe, 0x8b, 0x30, 0x1f, 0x4a, 0x10, 0x13, 0x88, 0xbe, 0x9c, 0x6d, + 0xa3, 0x72, 0x2d, 0x94, 0x3d, 0x68, 0x05, 0xd7, 0x8a, 0xa9, 0x8b, 0x1f, 0xae, 0x45, 0xc9, 0x05, + 0x0c, 0x1c, 0xa1, 0xed, 0x31, 0x95, 0x6a, 0x56, 0x65, 0x66, 0x36, 0x90, 0x3d, 0xf8, 0xe4, 0x0d, + 0xa7, 0xb6, 0xa4, 0x04, 0xef, 0x15, 0x53, 0x77, 0xfb, 0xc1, 0xa2, 0x0a, 0x59, 0x16, 0xc5, 0x87, + 0x68, 0x37, 0xcc, 0x85, 0x80, 0x54, 0xad, 0x94, 0xfd, 0xba, 0x29, 0xfb, 0xee, 0xd1, 0x72, 0x98, + 0xac, 0xe2, 0x4b, 0x89, 0x08, 0x24, 0x13, 0x10, 0x55, 0x12, 0xed, 0x65, 0x89, 0x2f, 0x96, 0xc3, + 0x64, 0x15, 0x8f, 0x13, 0xe4, 0x1a, 0xd5, 0xda, 0x16, 0x76, 0xb4, 0xe4, 0x87, 0xc5, 0xd4, 0x75, + 0x8f, 0x36, 0x43, 0xc9, 0xeb, 0xb4, 0x7a, 0xbf, 0x36, 0x51, 0x47, 0x97, 0xe0, 0x2d, 0xee, 0xda, + 0x27, 0x4b, 0xbb, 0xf6, 0xd3, 0x4b, 0x7c, 0x7c, 0x3a, 0xb3, 0xda, 0xcd, 0xfa, 0xfd, 0xca, 0x66, + 0xfd, 0xec, 0xd2, 0xca, 0x9b, 0xf7, 0xe8, 0x1d, 0x74, 0xb5, 0x4a, 0x00, 0xdf, 0x44, 0x5b, 0xe2, + 0x55, 0x4f, 0x2d, 0xdd, 0x80, 0x6a, 0x07, 0x56, 0xcd, 0xac, 0x10, 0x3d, 0x86, 0xec, 0x05, 0x87, + 0xcb, 0x91, 0x4b, 0xb4, 0x84, 0x31, 0x84, 0x8a, 0x0b, 0xf3, 0x5f, 0x5b, 0xa1, 0x4f, 0xcd, 0x3d, + 0xa9, 0x10, 0xc1, 0x47, 0x67, 0xe7, 0x4e, 0xe3, 0xe5, 0xb9, 0xd3, 0xf8, 0xe3, 0xdc, 0x69, 0xfc, + 0x58, 0x38, 0xd6, 0x59, 0xe1, 0x58, 0x2f, 0x0b, 0xc7, 0xfa, 0xb3, 0x70, 0xac, 0x9f, 0xff, 0x72, + 0x1a, 0xdf, 0x36, 0x27, 0xfd, 0x7f, 0x03, 0x00, 0x00, 0xff, 0xff, 0x45, 0xec, 0x9a, 0x15, 0x8e, + 0x09, 0x00, 0x00, } diff --git a/vendor/k8s.io/client-go/1.5/pkg/apis/autoscaling/v1/register.go b/vendor/k8s.io/client-go/pkg/apis/autoscaling/v1/register.go similarity index 87% rename from vendor/k8s.io/client-go/1.5/pkg/apis/autoscaling/v1/register.go rename to vendor/k8s.io/client-go/pkg/apis/autoscaling/v1/register.go index c32e44b6e..c0f83dedd 100644 --- a/vendor/k8s.io/client-go/1.5/pkg/apis/autoscaling/v1/register.go +++ b/vendor/k8s.io/client-go/pkg/apis/autoscaling/v1/register.go @@ -17,10 +17,10 @@ limitations under the License. package v1 import ( - "k8s.io/client-go/1.5/pkg/api/unversioned" - "k8s.io/client-go/1.5/pkg/api/v1" - "k8s.io/client-go/1.5/pkg/runtime" - versionedwatch "k8s.io/client-go/1.5/pkg/watch/versioned" + "k8s.io/client-go/pkg/api/unversioned" + "k8s.io/client-go/pkg/api/v1" + "k8s.io/client-go/pkg/runtime" + versionedwatch "k8s.io/client-go/pkg/watch/versioned" ) // GroupName is the group name use in this package @@ -42,6 +42,7 @@ func addKnownTypes(scheme *runtime.Scheme) error { &Scale{}, &v1.ListOptions{}, &v1.DeleteOptions{}, + &v1.ExportOptions{}, ) versionedwatch.AddToGroupVersion(scheme, SchemeGroupVersion) return nil diff --git a/vendor/k8s.io/client-go/1.5/pkg/apis/autoscaling/v1/types.generated.go b/vendor/k8s.io/client-go/pkg/apis/autoscaling/v1/types.generated.go similarity index 99% rename from vendor/k8s.io/client-go/1.5/pkg/apis/autoscaling/v1/types.generated.go rename to vendor/k8s.io/client-go/pkg/apis/autoscaling/v1/types.generated.go index ef0d82d5c..9ffaf6b65 100644 --- a/vendor/k8s.io/client-go/1.5/pkg/apis/autoscaling/v1/types.generated.go +++ b/vendor/k8s.io/client-go/pkg/apis/autoscaling/v1/types.generated.go @@ -25,9 +25,9 @@ import ( "errors" "fmt" codec1978 "github.com/ugorji/go/codec" - pkg1_unversioned "k8s.io/client-go/1.5/pkg/api/unversioned" - pkg2_v1 "k8s.io/client-go/1.5/pkg/api/v1" - pkg3_types "k8s.io/client-go/1.5/pkg/types" + pkg1_unversioned "k8s.io/client-go/pkg/api/unversioned" + pkg2_v1 "k8s.io/client-go/pkg/api/v1" + pkg3_types "k8s.io/client-go/pkg/types" "reflect" "runtime" time "time" diff --git a/vendor/k8s.io/client-go/1.5/pkg/apis/autoscaling/v1/types.go b/vendor/k8s.io/client-go/pkg/apis/autoscaling/v1/types.go similarity index 92% rename from vendor/k8s.io/client-go/1.5/pkg/apis/autoscaling/v1/types.go rename to vendor/k8s.io/client-go/pkg/apis/autoscaling/v1/types.go index de8985857..444124aea 100644 --- a/vendor/k8s.io/client-go/1.5/pkg/apis/autoscaling/v1/types.go +++ b/vendor/k8s.io/client-go/pkg/apis/autoscaling/v1/types.go @@ -17,17 +17,18 @@ limitations under the License. package v1 import ( - "k8s.io/client-go/1.5/pkg/api/unversioned" - "k8s.io/client-go/1.5/pkg/api/v1" + "k8s.io/client-go/pkg/api/unversioned" + "k8s.io/client-go/pkg/api/v1" ) // 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 of the referent; More info: http://kubernetes.io/docs/user-guide/identifiers#names Name string `json:"name" protobuf:"bytes,2,opt,name=name"` // API version of the referent + // +optional APIVersion string `json:"apiVersion,omitempty" protobuf:"bytes,3,opt,name=apiVersion"` } @@ -37,21 +38,25 @@ type HorizontalPodAutoscalerSpec struct { // and will set the desired number of pods by using its Scale subresource. ScaleTargetRef CrossVersionObjectReference `json:"scaleTargetRef" protobuf:"bytes,1,opt,name=scaleTargetRef"` // lower limit for the number of pods that can be set by the autoscaler, default 1. + // +optional MinReplicas *int32 `json:"minReplicas,omitempty" protobuf:"varint,2,opt,name=minReplicas"` // upper limit for the number of pods that can be set by the autoscaler; cannot be smaller than MinReplicas. MaxReplicas int32 `json:"maxReplicas" protobuf:"varint,3,opt,name=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. + // +optional TargetCPUUtilizationPercentage *int32 `json:"targetCPUUtilizationPercentage,omitempty" protobuf:"varint,4,opt,name=targetCPUUtilizationPercentage"` } // current status of a horizontal pod autoscaler type HorizontalPodAutoscalerStatus struct { // most recent generation observed by this autoscaler. + // +optional ObservedGeneration *int64 `json:"observedGeneration,omitempty" protobuf:"varint,1,opt,name=observedGeneration"` // last time the HorizontalPodAutoscaler scaled the number of pods; // used by the autoscaler to control how often the number of pods is changed. + // +optional LastScaleTime *unversioned.Time `json:"lastScaleTime,omitempty" protobuf:"bytes,2,opt,name=lastScaleTime"` // current number of replicas of pods managed by this autoscaler. @@ -62,6 +67,7 @@ type HorizontalPodAutoscalerStatus struct { // 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. + // +optional CurrentCPUUtilizationPercentage *int32 `json:"currentCPUUtilizationPercentage,omitempty" protobuf:"varint,5,opt,name=currentCPUUtilizationPercentage"` } @@ -71,12 +77,15 @@ type HorizontalPodAutoscalerStatus struct { type HorizontalPodAutoscaler struct { unversioned.TypeMeta `json:",inline"` // Standard object metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata + // +optional v1.ObjectMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"` // behaviour of autoscaler. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status. + // +optional Spec HorizontalPodAutoscalerSpec `json:"spec,omitempty" protobuf:"bytes,2,opt,name=spec"` // current information about the autoscaler. + // +optional Status HorizontalPodAutoscalerStatus `json:"status,omitempty" protobuf:"bytes,3,opt,name=status"` } @@ -84,6 +93,7 @@ type HorizontalPodAutoscaler struct { type HorizontalPodAutoscalerList struct { unversioned.TypeMeta `json:",inline"` // Standard list metadata. + // +optional unversioned.ListMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"` // list of horizontal pod autoscaler objects. @@ -94,18 +104,22 @@ type HorizontalPodAutoscalerList struct { type Scale struct { unversioned.TypeMeta `json:",inline"` // Standard object metadata; More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata. + // +optional v1.ObjectMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"` // defines the behavior of the scale. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status. + // +optional Spec ScaleSpec `json:"spec,omitempty" protobuf:"bytes,2,opt,name=spec"` // current status of the scale. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status. Read-only. + // +optional Status ScaleStatus `json:"status,omitempty" protobuf:"bytes,3,opt,name=status"` } // ScaleSpec describes the attributes of a scale subresource. type ScaleSpec struct { // desired number of instances for the scaled object. + // +optional Replicas int32 `json:"replicas,omitempty" protobuf:"varint,1,opt,name=replicas"` } @@ -117,6 +131,7 @@ type ScaleStatus struct { // 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 about label selectors: http://releases.k8s.io/HEAD/docs/user-guide/labels.md#label-selectors + // More info about label selectors: http://kubernetes.io/docs/user-guide/labels#label-selectors + // +optional Selector string `json:"selector,omitempty" protobuf:"bytes,2,opt,name=selector"` } diff --git a/vendor/k8s.io/client-go/1.5/pkg/apis/autoscaling/v1/types_swagger_doc_generated.go b/vendor/k8s.io/client-go/pkg/apis/autoscaling/v1/types_swagger_doc_generated.go similarity index 96% rename from vendor/k8s.io/client-go/1.5/pkg/apis/autoscaling/v1/types_swagger_doc_generated.go rename to vendor/k8s.io/client-go/pkg/apis/autoscaling/v1/types_swagger_doc_generated.go index 6b9bcf47e..91b3f041c 100644 --- a/vendor/k8s.io/client-go/1.5/pkg/apis/autoscaling/v1/types_swagger_doc_generated.go +++ b/vendor/k8s.io/client-go/pkg/apis/autoscaling/v1/types_swagger_doc_generated.go @@ -30,7 +30,7 @@ package v1 var map_CrossVersionObjectReference = map[string]string{ "": "CrossVersionObjectReference contains enough information to let you identify the referred resource.", "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", + "name": "Name of the referent; More info: http://kubernetes.io/docs/user-guide/identifiers#names", "apiVersion": "API version of the referent", } @@ -107,7 +107,7 @@ func (ScaleSpec) SwaggerDoc() map[string]string { var map_ScaleStatus = map[string]string{ "": "ScaleStatus represents the current status of a scale subresource.", "replicas": "actual number of observed instances of the scaled object.", - "selector": "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 about label selectors: http://releases.k8s.io/HEAD/docs/user-guide/labels.md#label-selectors", + "selector": "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 about label selectors: http://kubernetes.io/docs/user-guide/labels#label-selectors", } func (ScaleStatus) SwaggerDoc() map[string]string { diff --git a/vendor/k8s.io/client-go/1.5/pkg/apis/autoscaling/v1/zz_generated.conversion.go b/vendor/k8s.io/client-go/pkg/apis/autoscaling/v1/zz_generated.conversion.go similarity index 82% rename from vendor/k8s.io/client-go/1.5/pkg/apis/autoscaling/v1/zz_generated.conversion.go rename to vendor/k8s.io/client-go/pkg/apis/autoscaling/v1/zz_generated.conversion.go index cc51da305..9e825dea7 100644 --- a/vendor/k8s.io/client-go/1.5/pkg/apis/autoscaling/v1/zz_generated.conversion.go +++ b/vendor/k8s.io/client-go/pkg/apis/autoscaling/v1/zz_generated.conversion.go @@ -1,7 +1,7 @@ // +build !ignore_autogenerated /* -Copyright 2016 The Kubernetes Authors. +Copyright 2017 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -21,10 +21,11 @@ limitations under the License. package v1 import ( - api "k8s.io/client-go/1.5/pkg/api" - autoscaling "k8s.io/client-go/1.5/pkg/apis/autoscaling" - conversion "k8s.io/client-go/1.5/pkg/conversion" - runtime "k8s.io/client-go/1.5/pkg/runtime" + unversioned "k8s.io/client-go/pkg/api/unversioned" + autoscaling "k8s.io/client-go/pkg/apis/autoscaling" + conversion "k8s.io/client-go/pkg/conversion" + runtime "k8s.io/client-go/pkg/runtime" + unsafe "unsafe" ) func init() { @@ -77,10 +78,6 @@ func Convert_autoscaling_CrossVersionObjectReference_To_v1_CrossVersionObjectRef } func autoConvert_v1_HorizontalPodAutoscaler_To_autoscaling_HorizontalPodAutoscaler(in *HorizontalPodAutoscaler, out *autoscaling.HorizontalPodAutoscaler, s conversion.Scope) error { - SetDefaults_HorizontalPodAutoscaler(in) - 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 @@ -99,9 +96,6 @@ func Convert_v1_HorizontalPodAutoscaler_To_autoscaling_HorizontalPodAutoscaler(i } func autoConvert_autoscaling_HorizontalPodAutoscaler_To_v1_HorizontalPodAutoscaler(in *autoscaling.HorizontalPodAutoscaler, out *HorizontalPodAutoscaler, 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 @@ -120,23 +114,8 @@ func Convert_autoscaling_HorizontalPodAutoscaler_To_v1_HorizontalPodAutoscaler(i } func autoConvert_v1_HorizontalPodAutoscalerList_To_autoscaling_HorizontalPodAutoscalerList(in *HorizontalPodAutoscalerList, out *autoscaling.HorizontalPodAutoscalerList, 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([]autoscaling.HorizontalPodAutoscaler, len(*in)) - for i := range *in { - if err := Convert_v1_HorizontalPodAutoscaler_To_autoscaling_HorizontalPodAutoscaler(&(*in)[i], &(*out)[i], s); err != nil { - return err - } - } - } else { - out.Items = nil - } + out.ListMeta = in.ListMeta + out.Items = *(*[]autoscaling.HorizontalPodAutoscaler)(unsafe.Pointer(&in.Items)) return nil } @@ -145,23 +124,8 @@ func Convert_v1_HorizontalPodAutoscalerList_To_autoscaling_HorizontalPodAutoscal } func autoConvert_autoscaling_HorizontalPodAutoscalerList_To_v1_HorizontalPodAutoscalerList(in *autoscaling.HorizontalPodAutoscalerList, out *HorizontalPodAutoscalerList, 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([]HorizontalPodAutoscaler, len(*in)) - for i := range *in { - if err := Convert_autoscaling_HorizontalPodAutoscaler_To_v1_HorizontalPodAutoscaler(&(*in)[i], &(*out)[i], s); err != nil { - return err - } - } - } else { - out.Items = nil - } + out.ListMeta = in.ListMeta + out.Items = *(*[]HorizontalPodAutoscaler)(unsafe.Pointer(&in.Items)) return nil } @@ -173,9 +137,9 @@ func autoConvert_v1_HorizontalPodAutoscalerSpec_To_autoscaling_HorizontalPodAuto if err := Convert_v1_CrossVersionObjectReference_To_autoscaling_CrossVersionObjectReference(&in.ScaleTargetRef, &out.ScaleTargetRef, s); err != nil { return err } - out.MinReplicas = in.MinReplicas + out.MinReplicas = (*int32)(unsafe.Pointer(in.MinReplicas)) out.MaxReplicas = in.MaxReplicas - out.TargetCPUUtilizationPercentage = in.TargetCPUUtilizationPercentage + out.TargetCPUUtilizationPercentage = (*int32)(unsafe.Pointer(in.TargetCPUUtilizationPercentage)) return nil } @@ -187,9 +151,9 @@ func autoConvert_autoscaling_HorizontalPodAutoscalerSpec_To_v1_HorizontalPodAuto if err := Convert_autoscaling_CrossVersionObjectReference_To_v1_CrossVersionObjectReference(&in.ScaleTargetRef, &out.ScaleTargetRef, s); err != nil { return err } - out.MinReplicas = in.MinReplicas + out.MinReplicas = (*int32)(unsafe.Pointer(in.MinReplicas)) out.MaxReplicas = in.MaxReplicas - out.TargetCPUUtilizationPercentage = in.TargetCPUUtilizationPercentage + out.TargetCPUUtilizationPercentage = (*int32)(unsafe.Pointer(in.TargetCPUUtilizationPercentage)) return nil } @@ -198,11 +162,11 @@ func Convert_autoscaling_HorizontalPodAutoscalerSpec_To_v1_HorizontalPodAutoscal } func autoConvert_v1_HorizontalPodAutoscalerStatus_To_autoscaling_HorizontalPodAutoscalerStatus(in *HorizontalPodAutoscalerStatus, out *autoscaling.HorizontalPodAutoscalerStatus, s conversion.Scope) error { - out.ObservedGeneration = in.ObservedGeneration - out.LastScaleTime = in.LastScaleTime + out.ObservedGeneration = (*int64)(unsafe.Pointer(in.ObservedGeneration)) + out.LastScaleTime = (*unversioned.Time)(unsafe.Pointer(in.LastScaleTime)) out.CurrentReplicas = in.CurrentReplicas out.DesiredReplicas = in.DesiredReplicas - out.CurrentCPUUtilizationPercentage = in.CurrentCPUUtilizationPercentage + out.CurrentCPUUtilizationPercentage = (*int32)(unsafe.Pointer(in.CurrentCPUUtilizationPercentage)) return nil } @@ -211,11 +175,11 @@ func Convert_v1_HorizontalPodAutoscalerStatus_To_autoscaling_HorizontalPodAutosc } func autoConvert_autoscaling_HorizontalPodAutoscalerStatus_To_v1_HorizontalPodAutoscalerStatus(in *autoscaling.HorizontalPodAutoscalerStatus, out *HorizontalPodAutoscalerStatus, s conversion.Scope) error { - out.ObservedGeneration = in.ObservedGeneration - out.LastScaleTime = in.LastScaleTime + out.ObservedGeneration = (*int64)(unsafe.Pointer(in.ObservedGeneration)) + out.LastScaleTime = (*unversioned.Time)(unsafe.Pointer(in.LastScaleTime)) out.CurrentReplicas = in.CurrentReplicas out.DesiredReplicas = in.DesiredReplicas - out.CurrentCPUUtilizationPercentage = in.CurrentCPUUtilizationPercentage + out.CurrentCPUUtilizationPercentage = (*int32)(unsafe.Pointer(in.CurrentCPUUtilizationPercentage)) return nil } @@ -224,9 +188,6 @@ func Convert_autoscaling_HorizontalPodAutoscalerStatus_To_v1_HorizontalPodAutosc } func autoConvert_v1_Scale_To_autoscaling_Scale(in *Scale, out *autoscaling.Scale, 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 @@ -245,9 +206,6 @@ func Convert_v1_Scale_To_autoscaling_Scale(in *Scale, out *autoscaling.Scale, s } func autoConvert_autoscaling_Scale_To_v1_Scale(in *autoscaling.Scale, out *Scale, 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 diff --git a/vendor/k8s.io/client-go/1.5/pkg/apis/autoscaling/v1/zz_generated.deepcopy.go b/vendor/k8s.io/client-go/pkg/apis/autoscaling/v1/zz_generated.deepcopy.go similarity index 96% rename from vendor/k8s.io/client-go/1.5/pkg/apis/autoscaling/v1/zz_generated.deepcopy.go rename to vendor/k8s.io/client-go/pkg/apis/autoscaling/v1/zz_generated.deepcopy.go index 9146f3925..fa9bc76b9 100644 --- a/vendor/k8s.io/client-go/1.5/pkg/apis/autoscaling/v1/zz_generated.deepcopy.go +++ b/vendor/k8s.io/client-go/pkg/apis/autoscaling/v1/zz_generated.deepcopy.go @@ -1,7 +1,7 @@ // +build !ignore_autogenerated /* -Copyright 2016 The Kubernetes Authors. +Copyright 2017 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -21,10 +21,10 @@ limitations under the License. package v1 import ( - unversioned "k8s.io/client-go/1.5/pkg/api/unversioned" - api_v1 "k8s.io/client-go/1.5/pkg/api/v1" - conversion "k8s.io/client-go/1.5/pkg/conversion" - runtime "k8s.io/client-go/1.5/pkg/runtime" + unversioned "k8s.io/client-go/pkg/api/unversioned" + api_v1 "k8s.io/client-go/pkg/api/v1" + conversion "k8s.io/client-go/pkg/conversion" + runtime "k8s.io/client-go/pkg/runtime" reflect "reflect" ) diff --git a/vendor/k8s.io/client-go/pkg/apis/autoscaling/v1/zz_generated.defaults.go b/vendor/k8s.io/client-go/pkg/apis/autoscaling/v1/zz_generated.defaults.go new file mode 100644 index 000000000..928971852 --- /dev/null +++ b/vendor/k8s.io/client-go/pkg/apis/autoscaling/v1/zz_generated.defaults.go @@ -0,0 +1,47 @@ +// +build !ignore_autogenerated + +/* +Copyright 2017 The Kubernetes Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT 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 defaulter-gen. Do not edit it manually! + +package v1 + +import ( + runtime "k8s.io/client-go/pkg/runtime" +) + +// RegisterDefaults adds defaulters functions to the given scheme. +// Public to allow building arbitrary schemes. +// All generated defaulters are covering - they call all nested defaulters. +func RegisterDefaults(scheme *runtime.Scheme) error { + scheme.AddTypeDefaultingFunc(&HorizontalPodAutoscaler{}, func(obj interface{}) { SetObjectDefaults_HorizontalPodAutoscaler(obj.(*HorizontalPodAutoscaler)) }) + scheme.AddTypeDefaultingFunc(&HorizontalPodAutoscalerList{}, func(obj interface{}) { + SetObjectDefaults_HorizontalPodAutoscalerList(obj.(*HorizontalPodAutoscalerList)) + }) + return nil +} + +func SetObjectDefaults_HorizontalPodAutoscaler(in *HorizontalPodAutoscaler) { + SetDefaults_HorizontalPodAutoscaler(in) +} + +func SetObjectDefaults_HorizontalPodAutoscalerList(in *HorizontalPodAutoscalerList) { + for i := range in.Items { + a := &in.Items[i] + SetObjectDefaults_HorizontalPodAutoscaler(a) + } +} diff --git a/vendor/k8s.io/client-go/1.5/pkg/apis/autoscaling/zz_generated.deepcopy.go b/vendor/k8s.io/client-go/pkg/apis/autoscaling/zz_generated.deepcopy.go similarity index 96% rename from vendor/k8s.io/client-go/1.5/pkg/apis/autoscaling/zz_generated.deepcopy.go rename to vendor/k8s.io/client-go/pkg/apis/autoscaling/zz_generated.deepcopy.go index 1f367bf37..9c4e51468 100644 --- a/vendor/k8s.io/client-go/1.5/pkg/apis/autoscaling/zz_generated.deepcopy.go +++ b/vendor/k8s.io/client-go/pkg/apis/autoscaling/zz_generated.deepcopy.go @@ -1,7 +1,7 @@ // +build !ignore_autogenerated /* -Copyright 2016 The Kubernetes Authors. +Copyright 2017 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -21,10 +21,10 @@ limitations under the License. package autoscaling import ( - api "k8s.io/client-go/1.5/pkg/api" - unversioned "k8s.io/client-go/1.5/pkg/api/unversioned" - conversion "k8s.io/client-go/1.5/pkg/conversion" - runtime "k8s.io/client-go/1.5/pkg/runtime" + api "k8s.io/client-go/pkg/api" + unversioned "k8s.io/client-go/pkg/api/unversioned" + conversion "k8s.io/client-go/pkg/conversion" + runtime "k8s.io/client-go/pkg/runtime" reflect "reflect" ) diff --git a/vendor/k8s.io/client-go/1.5/pkg/apis/batch/doc.go b/vendor/k8s.io/client-go/pkg/apis/batch/doc.go similarity index 100% rename from vendor/k8s.io/client-go/1.5/pkg/apis/batch/doc.go rename to vendor/k8s.io/client-go/pkg/apis/batch/doc.go diff --git a/vendor/k8s.io/client-go/1.5/pkg/apis/batch/install/install.go b/vendor/k8s.io/client-go/pkg/apis/batch/install/install.go similarity index 83% rename from vendor/k8s.io/client-go/1.5/pkg/apis/batch/install/install.go rename to vendor/k8s.io/client-go/pkg/apis/batch/install/install.go index 9e511cea8..6d511f6d5 100644 --- a/vendor/k8s.io/client-go/1.5/pkg/apis/batch/install/install.go +++ b/vendor/k8s.io/client-go/pkg/apis/batch/install/install.go @@ -19,10 +19,10 @@ limitations under the License. package install import ( - "k8s.io/client-go/1.5/pkg/apimachinery/announced" - "k8s.io/client-go/1.5/pkg/apis/batch" - "k8s.io/client-go/1.5/pkg/apis/batch/v1" - "k8s.io/client-go/1.5/pkg/apis/batch/v2alpha1" + "k8s.io/client-go/pkg/apimachinery/announced" + "k8s.io/client-go/pkg/apis/batch" + "k8s.io/client-go/pkg/apis/batch/v1" + "k8s.io/client-go/pkg/apis/batch/v2alpha1" ) func init() { @@ -30,7 +30,7 @@ func init() { &announced.GroupMetaFactoryArgs{ GroupName: batch.GroupName, VersionPreferenceOrder: []string{v1.SchemeGroupVersion.Version, v2alpha1.SchemeGroupVersion.Version}, - ImportPrefix: "k8s.io/client-go/1.5/pkg/apis/batch", + ImportPrefix: "k8s.io/client-go/pkg/apis/batch", AddInternalObjectsToScheme: batch.AddToScheme, }, announced.VersionToSchemeFunc{ diff --git a/vendor/k8s.io/client-go/1.5/pkg/apis/batch/register.go b/vendor/k8s.io/client-go/pkg/apis/batch/register.go similarity index 82% rename from vendor/k8s.io/client-go/1.5/pkg/apis/batch/register.go rename to vendor/k8s.io/client-go/pkg/apis/batch/register.go index 19f8e72ae..4cf2b0aa0 100644 --- a/vendor/k8s.io/client-go/1.5/pkg/apis/batch/register.go +++ b/vendor/k8s.io/client-go/pkg/apis/batch/register.go @@ -17,9 +17,9 @@ limitations under the License. package batch import ( - "k8s.io/client-go/1.5/pkg/api" - "k8s.io/client-go/1.5/pkg/api/unversioned" - "k8s.io/client-go/1.5/pkg/runtime" + "k8s.io/client-go/pkg/api" + "k8s.io/client-go/pkg/api/unversioned" + "k8s.io/client-go/pkg/runtime" ) // GroupName is the group name use in this package @@ -49,9 +49,12 @@ func addKnownTypes(scheme *runtime.Scheme) error { &Job{}, &JobList{}, &JobTemplate{}, - &ScheduledJob{}, - &ScheduledJobList{}, + &CronJob{}, + &CronJobList{}, &api.ListOptions{}, + &api.DeleteOptions{}, ) + scheme.AddKnownTypeWithName(SchemeGroupVersion.WithKind("ScheduledJob"), &CronJob{}) + scheme.AddKnownTypeWithName(SchemeGroupVersion.WithKind("ScheduledJobList"), &CronJobList{}) return nil } diff --git a/vendor/k8s.io/client-go/1.5/pkg/apis/batch/types.generated.go b/vendor/k8s.io/client-go/pkg/apis/batch/types.generated.go similarity index 97% rename from vendor/k8s.io/client-go/1.5/pkg/apis/batch/types.generated.go rename to vendor/k8s.io/client-go/pkg/apis/batch/types.generated.go index cd09a3c7f..35a82920f 100644 --- a/vendor/k8s.io/client-go/1.5/pkg/apis/batch/types.generated.go +++ b/vendor/k8s.io/client-go/pkg/apis/batch/types.generated.go @@ -25,11 +25,11 @@ import ( "errors" "fmt" codec1978 "github.com/ugorji/go/codec" - pkg2_api "k8s.io/client-go/1.5/pkg/api" - pkg4_resource "k8s.io/client-go/1.5/pkg/api/resource" - pkg1_unversioned "k8s.io/client-go/1.5/pkg/api/unversioned" - pkg3_types "k8s.io/client-go/1.5/pkg/types" - pkg5_intstr "k8s.io/client-go/1.5/pkg/util/intstr" + pkg2_api "k8s.io/client-go/pkg/api" + pkg4_resource "k8s.io/client-go/pkg/api/resource" + pkg1_unversioned "k8s.io/client-go/pkg/api/unversioned" + pkg3_types "k8s.io/client-go/pkg/types" + pkg5_intstr "k8s.io/client-go/pkg/util/intstr" "reflect" "runtime" time "time" @@ -2822,7 +2822,7 @@ func (x *JobCondition) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } -func (x *ScheduledJob) CodecEncodeSelf(e *codec1978.Encoder) { +func (x *CronJob) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r @@ -2967,7 +2967,7 @@ func (x *ScheduledJob) CodecEncodeSelf(e *codec1978.Encoder) { } } -func (x *ScheduledJob) CodecDecodeSelf(d *codec1978.Decoder) { +func (x *CronJob) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r @@ -2997,7 +2997,7 @@ func (x *ScheduledJob) CodecDecodeSelf(d *codec1978.Decoder) { } } -func (x *ScheduledJob) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { +func (x *CronJob) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r @@ -3040,14 +3040,14 @@ func (x *ScheduledJob) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } case "spec": if r.TryDecodeAsNil() { - x.Spec = ScheduledJobSpec{} + x.Spec = CronJobSpec{} } else { yyv269 := &x.Spec yyv269.CodecDecodeSelf(d) } case "status": if r.TryDecodeAsNil() { - x.Status = ScheduledJobStatus{} + x.Status = CronJobStatus{} } else { yyv270 := &x.Status yyv270.CodecDecodeSelf(d) @@ -3059,7 +3059,7 @@ func (x *ScheduledJob) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } -func (x *ScheduledJob) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { +func (x *CronJob) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r @@ -3127,7 +3127,7 @@ func (x *ScheduledJob) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.Spec = ScheduledJobSpec{} + x.Spec = CronJobSpec{} } else { yyv275 := &x.Spec yyv275.CodecDecodeSelf(d) @@ -3144,7 +3144,7 @@ func (x *ScheduledJob) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.Status = ScheduledJobStatus{} + x.Status = CronJobStatus{} } else { yyv276 := &x.Status yyv276.CodecDecodeSelf(d) @@ -3165,7 +3165,7 @@ func (x *ScheduledJob) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } -func (x *ScheduledJobList) CodecEncodeSelf(e *codec1978.Encoder) { +func (x *CronJobList) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r @@ -3286,7 +3286,7 @@ func (x *ScheduledJobList) CodecEncodeSelf(e *codec1978.Encoder) { _ = yym291 if false { } else { - h.encSliceScheduledJob(([]ScheduledJob)(x.Items), e) + h.encSliceCronJob(([]CronJob)(x.Items), e) } } } else { @@ -3300,7 +3300,7 @@ func (x *ScheduledJobList) CodecEncodeSelf(e *codec1978.Encoder) { _ = yym292 if false { } else { - h.encSliceScheduledJob(([]ScheduledJob)(x.Items), e) + h.encSliceCronJob(([]CronJob)(x.Items), e) } } } @@ -3313,7 +3313,7 @@ func (x *ScheduledJobList) CodecEncodeSelf(e *codec1978.Encoder) { } } -func (x *ScheduledJobList) CodecDecodeSelf(d *codec1978.Decoder) { +func (x *CronJobList) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r @@ -3343,7 +3343,7 @@ func (x *ScheduledJobList) CodecDecodeSelf(d *codec1978.Decoder) { } } -func (x *ScheduledJobList) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { +func (x *CronJobList) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r @@ -3399,7 +3399,7 @@ func (x *ScheduledJobList) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { _ = yym301 if false { } else { - h.decSliceScheduledJob((*[]ScheduledJob)(yyv300), d) + h.decSliceCronJob((*[]CronJob)(yyv300), d) } } default: @@ -3409,7 +3409,7 @@ func (x *ScheduledJobList) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } -func (x *ScheduledJobList) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { +func (x *CronJobList) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r @@ -3490,7 +3490,7 @@ func (x *ScheduledJobList) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) _ = yym308 if false { } else { - h.decSliceScheduledJob((*[]ScheduledJob)(yyv307), d) + h.decSliceCronJob((*[]CronJob)(yyv307), d) } } for { @@ -3509,7 +3509,7 @@ func (x *ScheduledJobList) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } -func (x *ScheduledJobSpec) CodecEncodeSelf(e *codec1978.Encoder) { +func (x *CronJobSpec) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r @@ -3666,7 +3666,7 @@ func (x *ScheduledJobSpec) CodecEncodeSelf(e *codec1978.Encoder) { } } -func (x *ScheduledJobSpec) CodecDecodeSelf(d *codec1978.Decoder) { +func (x *CronJobSpec) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r @@ -3696,7 +3696,7 @@ func (x *ScheduledJobSpec) CodecDecodeSelf(d *codec1978.Decoder) { } } -func (x *ScheduledJobSpec) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { +func (x *CronJobSpec) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r @@ -3776,7 +3776,7 @@ func (x *ScheduledJobSpec) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } -func (x *ScheduledJobSpec) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { +func (x *CronJobSpec) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r @@ -3926,7 +3926,7 @@ func (x *ConcurrencyPolicy) CodecDecodeSelf(d *codec1978.Decoder) { } } -func (x *ScheduledJobStatus) CodecEncodeSelf(e *codec1978.Encoder) { +func (x *CronJobStatus) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r @@ -4043,7 +4043,7 @@ func (x *ScheduledJobStatus) CodecEncodeSelf(e *codec1978.Encoder) { } } -func (x *ScheduledJobStatus) CodecDecodeSelf(d *codec1978.Decoder) { +func (x *CronJobStatus) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r @@ -4073,7 +4073,7 @@ func (x *ScheduledJobStatus) CodecDecodeSelf(d *codec1978.Decoder) { } } -func (x *ScheduledJobStatus) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { +func (x *CronJobStatus) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r @@ -4135,7 +4135,7 @@ func (x *ScheduledJobStatus) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) z.DecSendContainerState(codecSelfer_containerMapEnd1234) } -func (x *ScheduledJobStatus) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { +func (x *CronJobStatus) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r @@ -4443,7 +4443,7 @@ func (x codecSelfer1234) decSliceJobCondition(v *[]JobCondition, d *codec1978.De } } -func (x codecSelfer1234) encSliceScheduledJob(v []ScheduledJob, e *codec1978.Encoder) { +func (x codecSelfer1234) encSliceCronJob(v []CronJob, e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r @@ -4456,7 +4456,7 @@ func (x codecSelfer1234) encSliceScheduledJob(v []ScheduledJob, e *codec1978.Enc z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } -func (x codecSelfer1234) decSliceScheduledJob(v *[]ScheduledJob, d *codec1978.Decoder) { +func (x codecSelfer1234) decSliceCronJob(v *[]CronJob, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r @@ -4466,7 +4466,7 @@ func (x codecSelfer1234) decSliceScheduledJob(v *[]ScheduledJob, d *codec1978.De var yyc382 bool if yyl382 == 0 { if yyv382 == nil { - yyv382 = []ScheduledJob{} + yyv382 = []CronJob{} yyc382 = true } else if len(yyv382) != 0 { yyv382 = yyv382[:0] @@ -4484,10 +4484,10 @@ func (x codecSelfer1234) decSliceScheduledJob(v *[]ScheduledJob, d *codec1978.De if yyrl382 <= cap(yyv382) { yyv382 = yyv382[:yyrl382] } else { - yyv382 = make([]ScheduledJob, yyrl382) + yyv382 = make([]CronJob, yyrl382) } } else { - yyv382 = make([]ScheduledJob, yyrl382) + yyv382 = make([]CronJob, yyrl382) } yyc382 = true yyrr382 = len(yyv382) @@ -4502,7 +4502,7 @@ func (x codecSelfer1234) decSliceScheduledJob(v *[]ScheduledJob, d *codec1978.De for ; yyj382 < yyrr382; yyj382++ { yyh382.ElemContainerState(yyj382) if r.TryDecodeAsNil() { - yyv382[yyj382] = ScheduledJob{} + yyv382[yyj382] = CronJob{} } else { yyv383 := &yyv382[yyj382] yyv383.CodecDecodeSelf(d) @@ -4511,10 +4511,10 @@ func (x codecSelfer1234) decSliceScheduledJob(v *[]ScheduledJob, d *codec1978.De } if yyrt382 { for ; yyj382 < yyl382; yyj382++ { - yyv382 = append(yyv382, ScheduledJob{}) + yyv382 = append(yyv382, CronJob{}) yyh382.ElemContainerState(yyj382) if r.TryDecodeAsNil() { - yyv382[yyj382] = ScheduledJob{} + yyv382[yyj382] = CronJob{} } else { yyv384 := &yyv382[yyj382] yyv384.CodecDecodeSelf(d) @@ -4528,13 +4528,13 @@ func (x codecSelfer1234) decSliceScheduledJob(v *[]ScheduledJob, d *codec1978.De for ; !r.CheckBreak(); yyj382++ { if yyj382 >= len(yyv382) { - yyv382 = append(yyv382, ScheduledJob{}) // var yyz382 ScheduledJob + yyv382 = append(yyv382, CronJob{}) // var yyz382 CronJob yyc382 = true } yyh382.ElemContainerState(yyj382) if yyj382 < len(yyv382) { if r.TryDecodeAsNil() { - yyv382[yyj382] = ScheduledJob{} + yyv382[yyj382] = CronJob{} } else { yyv385 := &yyv382[yyj382] yyv385.CodecDecodeSelf(d) @@ -4549,7 +4549,7 @@ func (x codecSelfer1234) decSliceScheduledJob(v *[]ScheduledJob, d *codec1978.De yyv382 = yyv382[:yyj382] yyc382 = true } else if yyj382 == 0 && yyv382 == nil { - yyv382 = []ScheduledJob{} + yyv382 = []CronJob{} yyc382 = true } } diff --git a/vendor/k8s.io/client-go/1.5/pkg/apis/batch/types.go b/vendor/k8s.io/client-go/pkg/apis/batch/types.go similarity index 89% rename from vendor/k8s.io/client-go/1.5/pkg/apis/batch/types.go rename to vendor/k8s.io/client-go/pkg/apis/batch/types.go index 3c8aec5a1..6015361a5 100644 --- a/vendor/k8s.io/client-go/1.5/pkg/apis/batch/types.go +++ b/vendor/k8s.io/client-go/pkg/apis/batch/types.go @@ -17,8 +17,8 @@ limitations under the License. package batch import ( - "k8s.io/client-go/1.5/pkg/api" - "k8s.io/client-go/1.5/pkg/api/unversioned" + "k8s.io/client-go/pkg/api" + "k8s.io/client-go/pkg/api/unversioned" ) // +genclient=true @@ -28,14 +28,17 @@ type Job struct { unversioned.TypeMeta `json:",inline"` // Standard object's metadata. // More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata + // +optional 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 + // +optional 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 + // +optional Status JobStatus `json:"status,omitempty"` } @@ -44,6 +47,7 @@ type JobList struct { unversioned.TypeMeta `json:",inline"` // Standard list metadata // More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata + // +optional unversioned.ListMeta `json:"metadata,omitempty"` // Items is the list of Job. @@ -55,10 +59,12 @@ type JobTemplate struct { unversioned.TypeMeta `json:",inline"` // Standard object's metadata. // More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata + // +optional 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 + // +optional Template JobTemplateSpec `json:"template,omitempty"` } @@ -66,10 +72,12 @@ type JobTemplate struct { 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 + // +optional 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 + // +optional Spec JobSpec `json:"spec,omitempty"` } @@ -80,6 +88,7 @@ type JobSpec struct { // 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. + // +optional Parallelism *int32 `json:"parallelism,omitempty"` // Completions specifies the desired number of successfully finished pods the @@ -87,14 +96,17 @@ type JobSpec struct { // 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. + // +optional 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 + // +optional 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. + // +optional Selector *unversioned.LabelSelector `json:"selector,omitempty"` // ManualSelector controls generation of pod labels and pod selectors. @@ -106,6 +118,7 @@ type JobSpec struct { // and other jobs to not function correctly. However, You may see // `manualSelector=true` in jobs that were created with the old `extensions/v1beta1` // API. + // +optional ManualSelector *bool `json:"manualSelector,omitempty"` // Template is the object that describes the pod that will be created when @@ -117,25 +130,31 @@ type JobSpec struct { type JobStatus struct { // Conditions represent the latest available observations of an object's current state. + // +optional 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. + // +optional 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. + // +optional CompletionTime *unversioned.Time `json:"completionTime,omitempty"` // Active is the number of actively running pods. + // +optional Active int32 `json:"active,omitempty"` // Succeeded is the number of pods which reached Phase Succeeded. + // +optional Succeeded int32 `json:"succeeded,omitempty"` // Failed is the number of pods which reached Phase Failed. + // +optional Failed int32 `json:"failed,omitempty"` } @@ -156,63 +175,74 @@ type JobCondition struct { // Status of the condition, one of True, False, Unknown. Status api.ConditionStatus `json:"status"` // Last time the condition was checked. + // +optional LastProbeTime unversioned.Time `json:"lastProbeTime,omitempty"` // Last time the condition transit from one status to another. + // +optional LastTransitionTime unversioned.Time `json:"lastTransitionTime,omitempty"` // (brief) reason for the condition's last transition. + // +optional Reason string `json:"reason,omitempty"` // Human readable message indicating details about last transition. + // +optional Message string `json:"message,omitempty"` } // +genclient=true -// ScheduledJob represents the configuration of a single scheduled job. -type ScheduledJob struct { +// CronJob represents the configuration of a single cron job. +type CronJob struct { unversioned.TypeMeta `json:",inline"` // Standard object's metadata. // More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata + // +optional 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"` + // +optional + Spec CronJobSpec `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"` + // +optional + Status CronJobStatus `json:"status,omitempty"` } -// ScheduledJobList is a collection of scheduled jobs. -type ScheduledJobList struct { +// CronJobList is a collection of cron jobs. +type CronJobList struct { unversioned.TypeMeta `json:",inline"` // Standard list metadata // More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata + // +optional unversioned.ListMeta `json:"metadata,omitempty"` - // Items is the list of ScheduledJob. - Items []ScheduledJob `json:"items"` + // Items is the list of CronJob. + Items []CronJob `json:"items"` } -// ScheduledJobSpec describes how the job execution will look like and when it will actually run. -type ScheduledJobSpec struct { +// CronJobSpec describes how the job execution will look like and when it will actually run. +type CronJobSpec 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. + // +optional StartingDeadlineSeconds *int64 `json:"startingDeadlineSeconds,omitempty"` // ConcurrencyPolicy specifies how to treat concurrent executions of a Job. + // +optional 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. + // +optional Suspend *bool `json:"suspend,omitempty"` // JobTemplate is the object that describes the job that will be created when - // executing a ScheduledJob. + // executing a CronJob. JobTemplate JobTemplateSpec `json:"jobTemplate"` } @@ -223,7 +253,7 @@ type ScheduledJobSpec struct { type ConcurrencyPolicy string const ( - // AllowConcurrent allows ScheduledJobs to run concurrently. + // AllowConcurrent allows CronJobs to run concurrently. AllowConcurrent ConcurrencyPolicy = "Allow" // ForbidConcurrent forbids concurrent runs, skipping next run if previous @@ -234,11 +264,13 @@ const ( ReplaceConcurrent ConcurrencyPolicy = "Replace" ) -// ScheduledJobStatus represents the current state of a Job. -type ScheduledJobStatus struct { +// CronJobStatus represents the current state of a cron job. +type CronJobStatus struct { // Active holds pointers to currently running jobs. + // +optional Active []api.ObjectReference `json:"active,omitempty"` // LastScheduleTime keeps information of when was the last time the job was successfully scheduled. + // +optional LastScheduleTime *unversioned.Time `json:"lastScheduleTime,omitempty"` } diff --git a/vendor/k8s.io/client-go/1.5/pkg/apis/batch/v1/conversion.go b/vendor/k8s.io/client-go/pkg/apis/batch/v1/conversion.go similarity index 71% rename from vendor/k8s.io/client-go/1.5/pkg/apis/batch/v1/conversion.go rename to vendor/k8s.io/client-go/pkg/apis/batch/v1/conversion.go index 30bcf44a6..17024769d 100644 --- a/vendor/k8s.io/client-go/1.5/pkg/apis/batch/v1/conversion.go +++ b/vendor/k8s.io/client-go/pkg/apis/batch/v1/conversion.go @@ -19,12 +19,11 @@ package v1 import ( "fmt" - "k8s.io/client-go/1.5/pkg/api" - "k8s.io/client-go/1.5/pkg/api/unversioned" - v1 "k8s.io/client-go/1.5/pkg/api/v1" - "k8s.io/client-go/1.5/pkg/apis/batch" - "k8s.io/client-go/1.5/pkg/conversion" - "k8s.io/client-go/1.5/pkg/runtime" + "k8s.io/client-go/pkg/api" + v1 "k8s.io/client-go/pkg/api/v1" + "k8s.io/client-go/pkg/apis/batch" + "k8s.io/client-go/pkg/conversion" + "k8s.io/client-go/pkg/runtime" ) func addConversionFuncs(scheme *runtime.Scheme) error { @@ -53,15 +52,7 @@ func Convert_batch_JobSpec_To_v1_JobSpec(in *batch.JobSpec, out *JobSpec, s conv out.Parallelism = in.Parallelism out.Completions = in.Completions out.ActiveDeadlineSeconds = in.ActiveDeadlineSeconds - // unable to generate simple pointer conversion for unversioned.LabelSelector -> v1.LabelSelector - if in.Selector != nil { - out.Selector = new(LabelSelector) - if err := Convert_unversioned_LabelSelector_To_v1_LabelSelector(in.Selector, out.Selector, s); err != nil { - return err - } - } else { - out.Selector = nil - } + out.Selector = in.Selector if in.ManualSelector != nil { out.ManualSelector = new(bool) *out.ManualSelector = *in.ManualSelector @@ -79,15 +70,7 @@ func Convert_v1_JobSpec_To_batch_JobSpec(in *JobSpec, out *batch.JobSpec, s conv out.Parallelism = in.Parallelism out.Completions = in.Completions out.ActiveDeadlineSeconds = in.ActiveDeadlineSeconds - // unable to generate simple pointer conversion for v1.LabelSelector -> unversioned.LabelSelector - if in.Selector != nil { - out.Selector = new(unversioned.LabelSelector) - if err := Convert_v1_LabelSelector_To_unversioned_LabelSelector(in.Selector, out.Selector, s); err != nil { - return err - } - } else { - out.Selector = nil - } + out.Selector = in.Selector if in.ManualSelector != nil { out.ManualSelector = new(bool) *out.ManualSelector = *in.ManualSelector diff --git a/vendor/k8s.io/client-go/1.5/pkg/apis/batch/v1/defaults.go b/vendor/k8s.io/client-go/pkg/apis/batch/v1/defaults.go similarity index 95% rename from vendor/k8s.io/client-go/1.5/pkg/apis/batch/v1/defaults.go rename to vendor/k8s.io/client-go/pkg/apis/batch/v1/defaults.go index bc05051f1..3fcb01b0c 100644 --- a/vendor/k8s.io/client-go/1.5/pkg/apis/batch/v1/defaults.go +++ b/vendor/k8s.io/client-go/pkg/apis/batch/v1/defaults.go @@ -17,10 +17,11 @@ limitations under the License. package v1 import ( - "k8s.io/client-go/1.5/pkg/runtime" + "k8s.io/client-go/pkg/runtime" ) func addDefaultingFuncs(scheme *runtime.Scheme) error { + RegisterDefaults(scheme) return scheme.AddDefaultingFuncs( SetDefaults_Job, ) diff --git a/vendor/k8s.io/client-go/1.5/pkg/apis/batch/v1/doc.go b/vendor/k8s.io/client-go/pkg/apis/batch/v1/doc.go similarity index 95% rename from vendor/k8s.io/client-go/1.5/pkg/apis/batch/v1/doc.go rename to vendor/k8s.io/client-go/pkg/apis/batch/v1/doc.go index 608c03bdd..7ae7265b0 100644 --- a/vendor/k8s.io/client-go/1.5/pkg/apis/batch/v1/doc.go +++ b/vendor/k8s.io/client-go/pkg/apis/batch/v1/doc.go @@ -17,5 +17,6 @@ limitations under the License. // +k8s:deepcopy-gen=package,register // +k8s:conversion-gen=k8s.io/kubernetes/pkg/apis/batch // +k8s:openapi-gen=true +// +k8s:defaulter-gen=TypeMeta package v1 diff --git a/vendor/k8s.io/client-go/1.5/pkg/apis/batch/v1/generated.pb.go b/vendor/k8s.io/client-go/pkg/apis/batch/v1/generated.pb.go similarity index 64% rename from vendor/k8s.io/client-go/1.5/pkg/apis/batch/v1/generated.pb.go rename to vendor/k8s.io/client-go/pkg/apis/batch/v1/generated.pb.go index 427fc2492..75d94b107 100644 --- a/vendor/k8s.io/client-go/1.5/pkg/apis/batch/v1/generated.pb.go +++ b/vendor/k8s.io/client-go/pkg/apis/batch/v1/generated.pb.go @@ -1,5 +1,5 @@ /* -Copyright 2016 The Kubernetes Authors. +Copyright 2017 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -30,8 +30,6 @@ limitations under the License. JobList JobSpec JobStatus - LabelSelector - LabelSelectorRequirement */ package v1 @@ -39,12 +37,11 @@ import proto "github.com/gogo/protobuf/proto" import fmt "fmt" import math "math" -import k8s_io_kubernetes_pkg_api_unversioned "k8s.io/client-go/1.5/pkg/api/unversioned" -import k8s_io_kubernetes_pkg_api_v1 "k8s.io/client-go/1.5/pkg/api/v1" +import k8s_io_kubernetes_pkg_api_unversioned "k8s.io/client-go/pkg/api/unversioned" +import k8s_io_kubernetes_pkg_api_v1 "k8s.io/client-go/pkg/api/v1" import strings "strings" import reflect "reflect" -import github_com_gogo_protobuf_sortkeys "github.com/gogo/protobuf/sortkeys" import io "io" @@ -77,24 +74,12 @@ 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 (*LabelSelector) ProtoMessage() {} -func (*LabelSelector) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{5} } - -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.client-go.1.5.pkg.apis.batch.v1.Job") - proto.RegisterType((*JobCondition)(nil), "k8s.io.client-go.1.5.pkg.apis.batch.v1.JobCondition") - proto.RegisterType((*JobList)(nil), "k8s.io.client-go.1.5.pkg.apis.batch.v1.JobList") - proto.RegisterType((*JobSpec)(nil), "k8s.io.client-go.1.5.pkg.apis.batch.v1.JobSpec") - proto.RegisterType((*JobStatus)(nil), "k8s.io.client-go.1.5.pkg.apis.batch.v1.JobStatus") - proto.RegisterType((*LabelSelector)(nil), "k8s.io.client-go.1.5.pkg.apis.batch.v1.LabelSelector") - proto.RegisterType((*LabelSelectorRequirement)(nil), "k8s.io.client-go.1.5.pkg.apis.batch.v1.LabelSelectorRequirement") + proto.RegisterType((*Job)(nil), "k8s.io.client-go.pkg.apis.batch.v1.Job") + proto.RegisterType((*JobCondition)(nil), "k8s.io.client-go.pkg.apis.batch.v1.JobCondition") + proto.RegisterType((*JobList)(nil), "k8s.io.client-go.pkg.apis.batch.v1.JobList") + proto.RegisterType((*JobSpec)(nil), "k8s.io.client-go.pkg.apis.batch.v1.JobSpec") + proto.RegisterType((*JobStatus)(nil), "k8s.io.client-go.pkg.apis.batch.v1.JobStatus") } func (m *Job) Marshal() (data []byte, err error) { size := m.Size() @@ -346,94 +331,6 @@ func (m *JobStatus) MarshalTo(data []byte) (int, error) { 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 encodeFixed64Generated(data []byte, offset int, v uint64) int { data[offset] = uint8(v) data[offset+1] = uint8(v >> 8) @@ -552,42 +449,6 @@ func (m *JobStatus) Size() (n int) { 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 sovGenerated(x uint64) (n int) { for { n++ @@ -647,7 +508,7 @@ func (this *JobSpec) String() string { `Parallelism:` + valueToStringGenerated(this.Parallelism) + `,`, `Completions:` + valueToStringGenerated(this.Completions) + `,`, `ActiveDeadlineSeconds:` + valueToStringGenerated(this.ActiveDeadlineSeconds) + `,`, - `Selector:` + strings.Replace(fmt.Sprintf("%v", this.Selector), "LabelSelector", "LabelSelector", 1) + `,`, + `Selector:` + strings.Replace(fmt.Sprintf("%v", this.Selector), "LabelSelector", "k8s_io_kubernetes_pkg_api_unversioned.LabelSelector", 1) + `,`, `ManualSelector:` + valueToStringGenerated(this.ManualSelector) + `,`, `Template:` + strings.Replace(strings.Replace(this.Template.String(), "PodTemplateSpec", "k8s_io_kubernetes_pkg_api_v1.PodTemplateSpec", 1), `&`, ``, 1) + `,`, `}`, @@ -669,39 +530,6 @@ func (this *JobStatus) String() string { }, "") 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() { @@ -1303,7 +1131,7 @@ func (m *JobSpec) Unmarshal(data []byte) error { return io.ErrUnexpectedEOF } if m.Selector == nil { - m.Selector = &LabelSelector{} + m.Selector = &k8s_io_kubernetes_pkg_api_unversioned.LabelSelector{} } if err := m.Selector.Unmarshal(data[iNdEx:postIndex]); err != nil { return err @@ -1585,335 +1413,6 @@ func (m *JobStatus) Unmarshal(data []byte) error { } 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 skipGenerated(data []byte) (n int, err error) { l := len(data) iNdEx := 0 @@ -2020,70 +1519,59 @@ var ( ) 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, + // 863 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x09, 0x6e, 0x88, 0x02, 0xff, 0x9c, 0x54, 0xcf, 0x6f, 0xe3, 0x44, + 0x14, 0xce, 0x8f, 0xa6, 0x4d, 0xa6, 0x3f, 0x76, 0x19, 0xa9, 0x52, 0xc8, 0x21, 0x59, 0x05, 0x84, + 0x16, 0xb1, 0x1d, 0x2b, 0x65, 0x91, 0x10, 0x07, 0x24, 0x5c, 0x84, 0x44, 0xd5, 0xb2, 0xd5, 0xa4, + 0x42, 0x2b, 0x10, 0x48, 0x63, 0xfb, 0x6d, 0x3a, 0xd4, 0xf6, 0x58, 0x9e, 0x71, 0xd0, 0xde, 0xb8, + 0x71, 0xe5, 0xaf, 0x01, 0xf1, 0x1f, 0xf4, 0xb8, 0xe2, 0xc4, 0x29, 0xa2, 0xe6, 0xbf, 0xd8, 0x13, + 0xf2, 0x78, 0x62, 0x3b, 0x4d, 0x1a, 0xa5, 0xdc, 0x3c, 0x6f, 0xbe, 0xef, 0x7b, 0xcf, 0xef, 0x7d, + 0xf3, 0xd0, 0xc7, 0xd7, 0x9f, 0x4a, 0xc2, 0x85, 0x75, 0x9d, 0x38, 0x10, 0x87, 0xa0, 0x40, 0x5a, + 0xd1, 0xf5, 0xc4, 0x62, 0x11, 0x97, 0x96, 0xc3, 0x94, 0x7b, 0x65, 0x4d, 0x47, 0xd6, 0x04, 0x42, + 0x88, 0x99, 0x02, 0x8f, 0x44, 0xb1, 0x50, 0x02, 0xbf, 0x97, 0x93, 0x48, 0x49, 0x22, 0xd1, 0xf5, + 0x84, 0x64, 0x24, 0xa2, 0x49, 0x64, 0x3a, 0xea, 0x1d, 0x4d, 0xb8, 0xba, 0x4a, 0x1c, 0xe2, 0x8a, + 0xc0, 0x9a, 0x88, 0x89, 0xb0, 0x34, 0xd7, 0x49, 0x5e, 0xe9, 0x93, 0x3e, 0xe8, 0xaf, 0x5c, 0xb3, + 0x77, 0x7c, 0x6f, 0x21, 0x56, 0x0c, 0x52, 0x24, 0xb1, 0x0b, 0x77, 0xeb, 0xe8, 0x7d, 0x72, 0x3f, + 0x27, 0x09, 0xa7, 0x10, 0x4b, 0x2e, 0x42, 0xf0, 0x96, 0x68, 0xcf, 0xee, 0xa7, 0x2d, 0xff, 0x6c, + 0xef, 0x68, 0x35, 0x3a, 0x4e, 0x42, 0xc5, 0x83, 0xe5, 0x9a, 0x46, 0xab, 0xe1, 0x89, 0xe2, 0xbe, + 0xc5, 0x43, 0x25, 0x55, 0x7c, 0x97, 0x32, 0xfc, 0xb5, 0x81, 0x9a, 0xa7, 0xc2, 0xc1, 0x2f, 0x51, + 0x3b, 0x00, 0xc5, 0x3c, 0xa6, 0x58, 0xb7, 0xfe, 0xa4, 0xfe, 0x74, 0xf7, 0xf8, 0x29, 0xb9, 0xb7, + 0xd3, 0x64, 0x3a, 0x22, 0x2f, 0x9c, 0x9f, 0xc0, 0x55, 0xe7, 0xa0, 0x98, 0x8d, 0x6f, 0x66, 0x83, + 0x5a, 0x3a, 0x1b, 0xa0, 0x32, 0x46, 0x0b, 0x35, 0xfc, 0x0d, 0xda, 0x92, 0x11, 0xb8, 0xdd, 0x86, + 0x56, 0x7d, 0x46, 0x36, 0x98, 0x1f, 0x39, 0x15, 0xce, 0x38, 0x02, 0xd7, 0xde, 0x33, 0xca, 0x5b, + 0xd9, 0x89, 0x6a, 0x1d, 0xfc, 0x2d, 0xda, 0x96, 0x8a, 0xa9, 0x44, 0x76, 0x9b, 0x5a, 0x91, 0x6c, + 0xac, 0xa8, 0x59, 0xf6, 0x81, 0xd1, 0xdc, 0xce, 0xcf, 0xd4, 0xa8, 0x0d, 0xff, 0x6a, 0xa2, 0xbd, + 0x53, 0xe1, 0x9c, 0x88, 0xd0, 0xe3, 0x8a, 0x8b, 0x10, 0x3f, 0x47, 0x5b, 0xea, 0x75, 0x04, 0xba, + 0x1d, 0x1d, 0xfb, 0xc9, 0xbc, 0x94, 0xcb, 0xd7, 0x11, 0xbc, 0x9d, 0x0d, 0x1e, 0x57, 0xb1, 0x59, + 0x8c, 0x6a, 0x74, 0xa5, 0xbc, 0x86, 0xe6, 0x7d, 0xbe, 0x98, 0xee, 0xed, 0x6c, 0xb0, 0xd6, 0x02, + 0xa4, 0xd0, 0x5c, 0x2c, 0x0f, 0x5f, 0xa1, 0x7d, 0x9f, 0x49, 0x75, 0x11, 0x0b, 0x07, 0x2e, 0x79, + 0x00, 0xe6, 0xef, 0x3f, 0x5a, 0x33, 0xa5, 0x8a, 0x0f, 0x49, 0x46, 0xb1, 0x0f, 0x4d, 0x2d, 0xfb, + 0x67, 0x55, 0x25, 0xba, 0x28, 0x8c, 0x7f, 0x46, 0x38, 0x0b, 0x5c, 0xc6, 0x2c, 0x94, 0xf9, 0xdf, + 0x65, 0xe9, 0xb6, 0x1e, 0x9e, 0xae, 0x67, 0xd2, 0xe1, 0xb3, 0x25, 0x39, 0xba, 0x22, 0x05, 0xfe, + 0x00, 0x6d, 0xc7, 0xc0, 0xa4, 0x08, 0xbb, 0x2d, 0xdd, 0xba, 0x62, 0x52, 0x54, 0x47, 0xa9, 0xb9, + 0xc5, 0x1f, 0xa2, 0x9d, 0x00, 0xa4, 0x64, 0x13, 0xe8, 0x6e, 0x6b, 0xe0, 0x23, 0x03, 0xdc, 0x39, + 0xcf, 0xc3, 0x74, 0x7e, 0x3f, 0xfc, 0xa3, 0x8e, 0x76, 0x4e, 0x85, 0x73, 0xc6, 0xa5, 0xc2, 0x3f, + 0x2c, 0x59, 0xdc, 0xda, 0xf0, 0x6f, 0x32, 0xba, 0x76, 0xfa, 0x63, 0x93, 0xa8, 0x3d, 0x8f, 0x54, + 0x7c, 0x7e, 0x8e, 0x5a, 0x5c, 0x41, 0x90, 0xcd, 0xbd, 0xb9, 0xfe, 0xf9, 0x2c, 0xda, 0xd2, 0xde, + 0x37, 0xa2, 0xad, 0xaf, 0x33, 0x3a, 0xcd, 0x55, 0x86, 0x7f, 0x36, 0x75, 0xe5, 0x99, 0xf1, 0xf1, + 0x08, 0xed, 0x46, 0x2c, 0x66, 0xbe, 0x0f, 0x3e, 0x97, 0x81, 0x2e, 0xbe, 0x65, 0x3f, 0x4a, 0x67, + 0x83, 0xdd, 0x8b, 0x32, 0x4c, 0xab, 0x98, 0x8c, 0xe2, 0x8a, 0x20, 0xf2, 0x21, 0xeb, 0x6e, 0xee, + 0x45, 0x43, 0x39, 0x29, 0xc3, 0xb4, 0x8a, 0xc1, 0x2f, 0xd0, 0x21, 0x73, 0x15, 0x9f, 0xc2, 0x97, + 0xc0, 0x3c, 0x9f, 0x87, 0x30, 0x06, 0x57, 0x84, 0x5e, 0xfe, 0xce, 0x9a, 0xf6, 0xbb, 0xe9, 0x6c, + 0x70, 0xf8, 0xc5, 0x2a, 0x00, 0x5d, 0xcd, 0xc3, 0x3f, 0xa2, 0xb6, 0x04, 0x1f, 0x5c, 0x25, 0x62, + 0x63, 0x9f, 0xe7, 0x9b, 0x36, 0x9c, 0x39, 0xe0, 0x8f, 0x0d, 0xd7, 0xde, 0xcb, 0x3a, 0x3e, 0x3f, + 0xd1, 0x42, 0x13, 0x7f, 0x86, 0x0e, 0x02, 0x16, 0x26, 0xac, 0x40, 0x6a, 0xdf, 0xb4, 0x6d, 0x9c, + 0xce, 0x06, 0x07, 0xe7, 0x0b, 0x37, 0xf4, 0x0e, 0x12, 0x7f, 0x8f, 0xda, 0x0a, 0x82, 0xc8, 0x67, + 0x2a, 0x37, 0xd1, 0xee, 0xf1, 0xd1, 0xfa, 0x7d, 0x77, 0x21, 0xbc, 0x4b, 0x43, 0xd0, 0xab, 0xa9, + 0xb0, 0xc2, 0x3c, 0x4a, 0x0b, 0xc1, 0xe1, 0xef, 0x4d, 0xd4, 0x29, 0x16, 0x0e, 0x06, 0x84, 0xdc, + 0xf9, 0xa3, 0x96, 0xdd, 0xba, 0x76, 0xc7, 0x68, 0x53, 0x77, 0x14, 0xeb, 0xa0, 0xdc, 0xb2, 0x45, + 0x48, 0xd2, 0x8a, 0x30, 0x7e, 0x89, 0x3a, 0x52, 0xb1, 0x58, 0xe9, 0xd7, 0xda, 0x78, 0xf8, 0x6b, + 0xdd, 0x4f, 0x67, 0x83, 0xce, 0x78, 0xae, 0x40, 0x4b, 0x31, 0x3c, 0x41, 0x07, 0xa5, 0x4f, 0xfe, + 0xef, 0xee, 0xd1, 0x43, 0x39, 0x59, 0x90, 0xa1, 0x77, 0x64, 0xb3, 0x05, 0x90, 0x3b, 0x49, 0xdb, + 0xa5, 0x55, 0x2e, 0x80, 0xdc, 0x76, 0xd4, 0xdc, 0x62, 0x0b, 0x75, 0x64, 0xe2, 0xba, 0x00, 0x1e, + 0x78, 0x7a, 0xe6, 0x2d, 0xfb, 0x1d, 0x03, 0xed, 0x8c, 0xe7, 0x17, 0xb4, 0xc4, 0x64, 0xc2, 0xaf, + 0x18, 0xf7, 0xc1, 0xd3, 0xb3, 0xae, 0x08, 0x7f, 0xa5, 0xa3, 0xd4, 0xdc, 0xda, 0xef, 0xdf, 0xdc, + 0xf6, 0x6b, 0x6f, 0x6e, 0xfb, 0xb5, 0xbf, 0x6f, 0xfb, 0xb5, 0x5f, 0xd2, 0x7e, 0xfd, 0x26, 0xed, + 0xd7, 0xdf, 0xa4, 0xfd, 0xfa, 0x3f, 0x69, 0xbf, 0xfe, 0xdb, 0xbf, 0xfd, 0xda, 0x77, 0x8d, 0xe9, + 0xe8, 0xbf, 0x00, 0x00, 0x00, 0xff, 0xff, 0x9a, 0x45, 0x86, 0xd9, 0xb8, 0x08, 0x00, 0x00, } diff --git a/vendor/k8s.io/client-go/1.5/pkg/apis/batch/v1/register.go b/vendor/k8s.io/client-go/pkg/apis/batch/v1/register.go similarity index 87% rename from vendor/k8s.io/client-go/1.5/pkg/apis/batch/v1/register.go rename to vendor/k8s.io/client-go/pkg/apis/batch/v1/register.go index b9b0c12aa..543bce11a 100644 --- a/vendor/k8s.io/client-go/1.5/pkg/apis/batch/v1/register.go +++ b/vendor/k8s.io/client-go/pkg/apis/batch/v1/register.go @@ -17,10 +17,10 @@ limitations under the License. package v1 import ( - "k8s.io/client-go/1.5/pkg/api/unversioned" - "k8s.io/client-go/1.5/pkg/api/v1" - "k8s.io/client-go/1.5/pkg/runtime" - versionedwatch "k8s.io/client-go/1.5/pkg/watch/versioned" + "k8s.io/client-go/pkg/api/unversioned" + "k8s.io/client-go/pkg/api/v1" + "k8s.io/client-go/pkg/runtime" + versionedwatch "k8s.io/client-go/pkg/watch/versioned" ) // GroupName is the group name use in this package @@ -41,6 +41,7 @@ func addKnownTypes(scheme *runtime.Scheme) error { &JobList{}, &v1.ListOptions{}, &v1.DeleteOptions{}, + &v1.ExportOptions{}, ) versionedwatch.AddToGroupVersion(scheme, SchemeGroupVersion) return nil diff --git a/vendor/k8s.io/client-go/1.5/pkg/apis/batch/v1/types.generated.go b/vendor/k8s.io/client-go/pkg/apis/batch/v1/types.generated.go similarity index 60% rename from vendor/k8s.io/client-go/1.5/pkg/apis/batch/v1/types.generated.go rename to vendor/k8s.io/client-go/pkg/apis/batch/v1/types.generated.go index 14607fc4b..b6c6658d6 100644 --- a/vendor/k8s.io/client-go/1.5/pkg/apis/batch/v1/types.generated.go +++ b/vendor/k8s.io/client-go/pkg/apis/batch/v1/types.generated.go @@ -25,11 +25,11 @@ import ( "errors" "fmt" codec1978 "github.com/ugorji/go/codec" - pkg4_resource "k8s.io/client-go/1.5/pkg/api/resource" - pkg1_unversioned "k8s.io/client-go/1.5/pkg/api/unversioned" - pkg2_v1 "k8s.io/client-go/1.5/pkg/api/v1" - pkg3_types "k8s.io/client-go/1.5/pkg/types" - pkg5_intstr "k8s.io/client-go/1.5/pkg/util/intstr" + pkg4_resource "k8s.io/client-go/pkg/api/resource" + pkg1_unversioned "k8s.io/client-go/pkg/api/unversioned" + pkg2_v1 "k8s.io/client-go/pkg/api/v1" + pkg3_types "k8s.io/client-go/pkg/types" + pkg5_intstr "k8s.io/client-go/pkg/util/intstr" "reflect" "runtime" time "time" @@ -908,7 +908,13 @@ func (x *JobSpec) CodecEncodeSelf(e *codec1978.Encoder) { if x.Selector == nil { r.EncodeNil() } else { - x.Selector.CodecEncodeSelf(e) + yym82 := z.EncBinary() + _ = yym82 + if false { + } else if z.HasExtensions() && z.EncExt(x.Selector) { + } else { + z.EncFallback(x.Selector) + } } } else { r.EncodeNil() @@ -921,7 +927,13 @@ func (x *JobSpec) CodecEncodeSelf(e *codec1978.Encoder) { if x.Selector == nil { r.EncodeNil() } else { - x.Selector.CodecEncodeSelf(e) + yym83 := z.EncBinary() + _ = yym83 + if false { + } else if z.HasExtensions() && z.EncExt(x.Selector) { + } else { + z.EncFallback(x.Selector) + } } } } @@ -931,12 +943,12 @@ func (x *JobSpec) CodecEncodeSelf(e *codec1978.Encoder) { if x.ManualSelector == nil { r.EncodeNil() } else { - yy83 := *x.ManualSelector - yym84 := z.EncBinary() - _ = yym84 + yy85 := *x.ManualSelector + yym86 := z.EncBinary() + _ = yym86 if false { } else { - r.EncodeBool(bool(yy83)) + r.EncodeBool(bool(yy85)) } } } else { @@ -950,26 +962,26 @@ func (x *JobSpec) CodecEncodeSelf(e *codec1978.Encoder) { if x.ManualSelector == nil { r.EncodeNil() } else { - yy85 := *x.ManualSelector - yym86 := z.EncBinary() - _ = yym86 + yy87 := *x.ManualSelector + yym88 := z.EncBinary() + _ = yym88 if false { } else { - r.EncodeBool(bool(yy85)) + r.EncodeBool(bool(yy87)) } } } } if yyr65 || yy2arr65 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy88 := &x.Template - yy88.CodecEncodeSelf(e) + yy90 := &x.Template + yy90.CodecEncodeSelf(e) } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("template")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy89 := &x.Template - yy89.CodecEncodeSelf(e) + yy91 := &x.Template + yy91.CodecEncodeSelf(e) } if yyr65 || yy2arr65 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) @@ -984,25 +996,25 @@ func (x *JobSpec) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym90 := z.DecBinary() - _ = yym90 + yym92 := z.DecBinary() + _ = yym92 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct91 := r.ContainerType() - if yyct91 == codecSelferValueTypeMap1234 { - yyl91 := r.ReadMapStart() - if yyl91 == 0 { + yyct93 := r.ContainerType() + if yyct93 == codecSelferValueTypeMap1234 { + yyl93 := r.ReadMapStart() + if yyl93 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl91, d) + x.codecDecodeSelfFromMap(yyl93, d) } - } else if yyct91 == codecSelferValueTypeArray1234 { - yyl91 := r.ReadArrayStart() - if yyl91 == 0 { + } else if yyct93 == codecSelferValueTypeArray1234 { + yyl93 := r.ReadArrayStart() + if yyl93 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl91, d) + x.codecDecodeSelfFromArray(yyl93, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -1014,12 +1026,12 @@ func (x *JobSpec) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys92Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys92Slc - var yyhl92 bool = l >= 0 - for yyj92 := 0; ; yyj92++ { - if yyhl92 { - if yyj92 >= l { + var yys94Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys94Slc + var yyhl94 bool = l >= 0 + for yyj94 := 0; ; yyj94++ { + if yyhl94 { + if yyj94 >= l { break } } else { @@ -1028,10 +1040,10 @@ func (x *JobSpec) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys92Slc = r.DecodeBytes(yys92Slc, true, true) - yys92 := string(yys92Slc) + yys94Slc = r.DecodeBytes(yys94Slc, true, true) + yys94 := string(yys94Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys92 { + switch yys94 { case "parallelism": if r.TryDecodeAsNil() { if x.Parallelism != nil { @@ -1041,8 +1053,8 @@ func (x *JobSpec) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { if x.Parallelism == nil { x.Parallelism = new(int32) } - yym94 := z.DecBinary() - _ = yym94 + yym96 := z.DecBinary() + _ = yym96 if false { } else { *((*int32)(x.Parallelism)) = int32(r.DecodeInt(32)) @@ -1057,8 +1069,8 @@ func (x *JobSpec) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { if x.Completions == nil { x.Completions = new(int32) } - yym96 := z.DecBinary() - _ = yym96 + yym98 := z.DecBinary() + _ = yym98 if false { } else { *((*int32)(x.Completions)) = int32(r.DecodeInt(32)) @@ -1073,8 +1085,8 @@ func (x *JobSpec) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { if x.ActiveDeadlineSeconds == nil { x.ActiveDeadlineSeconds = new(int64) } - yym98 := z.DecBinary() - _ = yym98 + yym100 := z.DecBinary() + _ = yym100 if false { } else { *((*int64)(x.ActiveDeadlineSeconds)) = int64(r.DecodeInt(64)) @@ -1087,9 +1099,15 @@ func (x *JobSpec) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } else { if x.Selector == nil { - x.Selector = new(LabelSelector) + x.Selector = new(pkg1_unversioned.LabelSelector) + } + yym102 := z.DecBinary() + _ = yym102 + if false { + } else if z.HasExtensions() && z.DecExt(x.Selector) { + } else { + z.DecFallback(x.Selector, false) } - x.Selector.CodecDecodeSelf(d) } case "manualSelector": if r.TryDecodeAsNil() { @@ -1100,8 +1118,8 @@ func (x *JobSpec) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { if x.ManualSelector == nil { x.ManualSelector = new(bool) } - yym101 := z.DecBinary() - _ = yym101 + yym104 := z.DecBinary() + _ = yym104 if false { } else { *((*bool)(x.ManualSelector)) = r.DecodeBool() @@ -1111,13 +1129,13 @@ func (x *JobSpec) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.Template = pkg2_v1.PodTemplateSpec{} } else { - yyv102 := &x.Template - yyv102.CodecDecodeSelf(d) + yyv105 := &x.Template + yyv105.CodecDecodeSelf(d) } default: - z.DecStructFieldNotFound(-1, yys92) - } // end switch yys92 - } // end for yyj92 + z.DecStructFieldNotFound(-1, yys94) + } // end switch yys94 + } // end for yyj94 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -1125,16 +1143,16 @@ func (x *JobSpec) 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 + var yyj106 int + var yyb106 bool + var yyhl106 bool = l >= 0 + yyj106++ + if yyhl106 { + yyb106 = yyj106 > l } else { - yyb103 = r.CheckBreak() + yyb106 = r.CheckBreak() } - if yyb103 { + if yyb106 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -1147,20 +1165,20 @@ func (x *JobSpec) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if x.Parallelism == nil { x.Parallelism = new(int32) } - yym105 := z.DecBinary() - _ = yym105 + yym108 := z.DecBinary() + _ = yym108 if false { } else { *((*int32)(x.Parallelism)) = int32(r.DecodeInt(32)) } } - yyj103++ - if yyhl103 { - yyb103 = yyj103 > l + yyj106++ + if yyhl106 { + yyb106 = yyj106 > l } else { - yyb103 = r.CheckBreak() + yyb106 = r.CheckBreak() } - if yyb103 { + if yyb106 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -1173,20 +1191,20 @@ func (x *JobSpec) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if x.Completions == nil { x.Completions = new(int32) } - yym107 := z.DecBinary() - _ = yym107 + yym110 := z.DecBinary() + _ = yym110 if false { } else { *((*int32)(x.Completions)) = int32(r.DecodeInt(32)) } } - yyj103++ - if yyhl103 { - yyb103 = yyj103 > l + yyj106++ + if yyhl106 { + yyb106 = yyj106 > l } else { - yyb103 = r.CheckBreak() + yyb106 = r.CheckBreak() } - if yyb103 { + if yyb106 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -1199,20 +1217,20 @@ func (x *JobSpec) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if x.ActiveDeadlineSeconds == nil { x.ActiveDeadlineSeconds = new(int64) } - yym109 := z.DecBinary() - _ = yym109 + yym112 := z.DecBinary() + _ = yym112 if false { } else { *((*int64)(x.ActiveDeadlineSeconds)) = int64(r.DecodeInt(64)) } } - yyj103++ - if yyhl103 { - yyb103 = yyj103 > l + yyj106++ + if yyhl106 { + yyb106 = yyj106 > l } else { - yyb103 = r.CheckBreak() + yyb106 = r.CheckBreak() } - if yyb103 { + if yyb106 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -1223,17 +1241,23 @@ func (x *JobSpec) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } } else { if x.Selector == nil { - x.Selector = new(LabelSelector) + x.Selector = new(pkg1_unversioned.LabelSelector) + } + yym114 := z.DecBinary() + _ = yym114 + if false { + } else if z.HasExtensions() && z.DecExt(x.Selector) { + } else { + z.DecFallback(x.Selector, false) } - x.Selector.CodecDecodeSelf(d) } - yyj103++ - if yyhl103 { - yyb103 = yyj103 > l + yyj106++ + if yyhl106 { + yyb106 = yyj106 > l } else { - yyb103 = r.CheckBreak() + yyb106 = r.CheckBreak() } - if yyb103 { + if yyb106 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -1246,20 +1270,20 @@ func (x *JobSpec) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if x.ManualSelector == nil { x.ManualSelector = new(bool) } - yym112 := z.DecBinary() - _ = yym112 + yym116 := z.DecBinary() + _ = yym116 if false { } else { *((*bool)(x.ManualSelector)) = r.DecodeBool() } } - yyj103++ - if yyhl103 { - yyb103 = yyj103 > l + yyj106++ + if yyhl106 { + yyb106 = yyj106 > l } else { - yyb103 = r.CheckBreak() + yyb106 = r.CheckBreak() } - if yyb103 { + if yyb106 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -1267,21 +1291,21 @@ func (x *JobSpec) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.Template = pkg2_v1.PodTemplateSpec{} } else { - yyv113 := &x.Template - yyv113.CodecDecodeSelf(d) + yyv117 := &x.Template + yyv117.CodecDecodeSelf(d) } for { - yyj103++ - if yyhl103 { - yyb103 = yyj103 > l + yyj106++ + if yyhl106 { + yyb106 = yyj106 > l } else { - yyb103 = r.CheckBreak() + yyb106 = r.CheckBreak() } - if yyb103 { + if yyb106 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj103-1, "") + z.DecStructFieldNotFound(yyj106-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -1293,43 +1317,43 @@ func (x *JobStatus) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym114 := z.EncBinary() - _ = yym114 + yym118 := z.EncBinary() + _ = yym118 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - 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 { + yysep119 := !z.EncBinary() + yy2arr119 := z.EncBasicHandle().StructToArray + var yyq119 [6]bool + _, _, _ = yysep119, yyq119, yy2arr119 + const yyr119 bool = false + yyq119[0] = len(x.Conditions) != 0 + yyq119[1] = x.StartTime != nil + yyq119[2] = x.CompletionTime != nil + yyq119[3] = x.Active != 0 + yyq119[4] = x.Succeeded != 0 + yyq119[5] = x.Failed != 0 + var yynn119 int + if yyr119 || yy2arr119 { r.EncodeArrayStart(6) } else { - yynn115 = 0 - for _, b := range yyq115 { + yynn119 = 0 + for _, b := range yyq119 { if b { - yynn115++ + yynn119++ } } - r.EncodeMapStart(yynn115) - yynn115 = 0 + r.EncodeMapStart(yynn119) + yynn119 = 0 } - if yyr115 || yy2arr115 { + if yyr119 || yy2arr119 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq115[0] { + if yyq119[0] { if x.Conditions == nil { r.EncodeNil() } else { - yym117 := z.EncBinary() - _ = yym117 + yym121 := z.EncBinary() + _ = yym121 if false { } else { h.encSliceJobCondition(([]JobCondition)(x.Conditions), e) @@ -1339,15 +1363,15 @@ func (x *JobStatus) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq115[0] { + if yyq119[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("conditions")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.Conditions == nil { r.EncodeNil() } else { - yym118 := z.EncBinary() - _ = yym118 + yym122 := z.EncBinary() + _ = yym122 if false { } else { h.encSliceJobCondition(([]JobCondition)(x.Conditions), e) @@ -1355,19 +1379,19 @@ func (x *JobStatus) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr115 || yy2arr115 { + if yyr119 || yy2arr119 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq115[1] { + if yyq119[1] { if x.StartTime == nil { r.EncodeNil() } else { - yym120 := z.EncBinary() - _ = yym120 + yym124 := z.EncBinary() + _ = yym124 if false { } else if z.HasExtensions() && z.EncExt(x.StartTime) { - } else if yym120 { + } else if yym124 { z.EncBinaryMarshal(x.StartTime) - } else if !yym120 && z.IsJSONHandle() { + } else if !yym124 && z.IsJSONHandle() { z.EncJSONMarshal(x.StartTime) } else { z.EncFallback(x.StartTime) @@ -1377,20 +1401,20 @@ func (x *JobStatus) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq115[1] { + if yyq119[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("startTime")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.StartTime == nil { r.EncodeNil() } else { - yym121 := z.EncBinary() - _ = yym121 + yym125 := z.EncBinary() + _ = yym125 if false { } else if z.HasExtensions() && z.EncExt(x.StartTime) { - } else if yym121 { + } else if yym125 { z.EncBinaryMarshal(x.StartTime) - } else if !yym121 && z.IsJSONHandle() { + } else if !yym125 && z.IsJSONHandle() { z.EncJSONMarshal(x.StartTime) } else { z.EncFallback(x.StartTime) @@ -1398,19 +1422,19 @@ func (x *JobStatus) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr115 || yy2arr115 { + if yyr119 || yy2arr119 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq115[2] { + if yyq119[2] { if x.CompletionTime == nil { r.EncodeNil() } else { - yym123 := z.EncBinary() - _ = yym123 + yym127 := z.EncBinary() + _ = yym127 if false { } else if z.HasExtensions() && z.EncExt(x.CompletionTime) { - } else if yym123 { + } else if yym127 { z.EncBinaryMarshal(x.CompletionTime) - } else if !yym123 && z.IsJSONHandle() { + } else if !yym127 && z.IsJSONHandle() { z.EncJSONMarshal(x.CompletionTime) } else { z.EncFallback(x.CompletionTime) @@ -1420,20 +1444,20 @@ func (x *JobStatus) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq115[2] { + if yyq119[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("completionTime")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.CompletionTime == nil { r.EncodeNil() } else { - yym124 := z.EncBinary() - _ = yym124 + yym128 := z.EncBinary() + _ = yym128 if false { } else if z.HasExtensions() && z.EncExt(x.CompletionTime) { - } else if yym124 { + } else if yym128 { z.EncBinaryMarshal(x.CompletionTime) - } else if !yym124 && z.IsJSONHandle() { + } else if !yym128 && z.IsJSONHandle() { z.EncJSONMarshal(x.CompletionTime) } else { z.EncFallback(x.CompletionTime) @@ -1441,61 +1465,61 @@ func (x *JobStatus) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr115 || yy2arr115 { + if yyr119 || yy2arr119 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq115[3] { - yym126 := z.EncBinary() - _ = yym126 - if false { - } else { - r.EncodeInt(int64(x.Active)) - } - } else { - r.EncodeInt(0) - } - } else { - if yyq115[3] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("active")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym127 := z.EncBinary() - _ = yym127 - if false { - } else { - r.EncodeInt(int64(x.Active)) - } - } - } - if yyr115 || yy2arr115 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq115[4] { - yym129 := z.EncBinary() - _ = yym129 - if false { - } else { - r.EncodeInt(int64(x.Succeeded)) - } - } else { - r.EncodeInt(0) - } - } else { - if yyq115[4] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("succeeded")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) + if yyq119[3] { yym130 := z.EncBinary() _ = yym130 if false { + } else { + r.EncodeInt(int64(x.Active)) + } + } else { + r.EncodeInt(0) + } + } else { + if yyq119[3] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("active")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym131 := z.EncBinary() + _ = yym131 + if false { + } else { + r.EncodeInt(int64(x.Active)) + } + } + } + if yyr119 || yy2arr119 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq119[4] { + yym133 := z.EncBinary() + _ = yym133 + if false { + } else { + r.EncodeInt(int64(x.Succeeded)) + } + } else { + r.EncodeInt(0) + } + } else { + if yyq119[4] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("succeeded")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym134 := z.EncBinary() + _ = yym134 + if false { } else { r.EncodeInt(int64(x.Succeeded)) } } } - if yyr115 || yy2arr115 { + if yyr119 || yy2arr119 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq115[5] { - yym132 := z.EncBinary() - _ = yym132 + if yyq119[5] { + yym136 := z.EncBinary() + _ = yym136 if false { } else { r.EncodeInt(int64(x.Failed)) @@ -1504,19 +1528,19 @@ func (x *JobStatus) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeInt(0) } } else { - if yyq115[5] { + if yyq119[5] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("failed")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym133 := z.EncBinary() - _ = yym133 + yym137 := z.EncBinary() + _ = yym137 if false { } else { r.EncodeInt(int64(x.Failed)) } } } - if yyr115 || yy2arr115 { + if yyr119 || yy2arr119 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -1529,25 +1553,25 @@ func (x *JobStatus) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym134 := z.DecBinary() - _ = yym134 + yym138 := z.DecBinary() + _ = yym138 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct135 := r.ContainerType() - if yyct135 == codecSelferValueTypeMap1234 { - yyl135 := r.ReadMapStart() - if yyl135 == 0 { + yyct139 := r.ContainerType() + if yyct139 == codecSelferValueTypeMap1234 { + yyl139 := r.ReadMapStart() + if yyl139 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl135, d) + x.codecDecodeSelfFromMap(yyl139, d) } - } else if yyct135 == codecSelferValueTypeArray1234 { - yyl135 := r.ReadArrayStart() - if yyl135 == 0 { + } else if yyct139 == codecSelferValueTypeArray1234 { + yyl139 := r.ReadArrayStart() + if yyl139 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl135, d) + x.codecDecodeSelfFromArray(yyl139, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -1559,12 +1583,12 @@ func (x *JobStatus) 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 { + var yys140Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys140Slc + var yyhl140 bool = l >= 0 + for yyj140 := 0; ; yyj140++ { + if yyhl140 { + if yyj140 >= l { break } } else { @@ -1573,20 +1597,20 @@ func (x *JobStatus) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys136Slc = r.DecodeBytes(yys136Slc, true, true) - yys136 := string(yys136Slc) + yys140Slc = r.DecodeBytes(yys140Slc, true, true) + yys140 := string(yys140Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys136 { + switch yys140 { case "conditions": if r.TryDecodeAsNil() { x.Conditions = nil } else { - yyv137 := &x.Conditions - yym138 := z.DecBinary() - _ = yym138 + yyv141 := &x.Conditions + yym142 := z.DecBinary() + _ = yym142 if false { } else { - h.decSliceJobCondition((*[]JobCondition)(yyv137), d) + h.decSliceJobCondition((*[]JobCondition)(yyv141), d) } } case "startTime": @@ -1598,13 +1622,13 @@ func (x *JobStatus) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { if x.StartTime == nil { x.StartTime = new(pkg1_unversioned.Time) } - yym140 := z.DecBinary() - _ = yym140 + yym144 := z.DecBinary() + _ = yym144 if false { } else if z.HasExtensions() && z.DecExt(x.StartTime) { - } else if yym140 { + } else if yym144 { z.DecBinaryUnmarshal(x.StartTime) - } else if !yym140 && z.IsJSONHandle() { + } else if !yym144 && z.IsJSONHandle() { z.DecJSONUnmarshal(x.StartTime) } else { z.DecFallback(x.StartTime, false) @@ -1619,13 +1643,13 @@ func (x *JobStatus) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { if x.CompletionTime == nil { x.CompletionTime = new(pkg1_unversioned.Time) } - yym142 := z.DecBinary() - _ = yym142 + yym146 := z.DecBinary() + _ = yym146 if false { } else if z.HasExtensions() && z.DecExt(x.CompletionTime) { - } else if yym142 { + } else if yym146 { z.DecBinaryUnmarshal(x.CompletionTime) - } else if !yym142 && z.IsJSONHandle() { + } else if !yym146 && z.IsJSONHandle() { z.DecJSONUnmarshal(x.CompletionTime) } else { z.DecFallback(x.CompletionTime, false) @@ -1650,9 +1674,9 @@ func (x *JobStatus) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { x.Failed = int32(r.DecodeInt(32)) } default: - z.DecStructFieldNotFound(-1, yys136) - } // end switch yys136 - } // end for yyj136 + z.DecStructFieldNotFound(-1, yys140) + } // end switch yys140 + } // end for yyj140 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -1660,16 +1684,16 @@ func (x *JobStatus) 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 + var yyj150 int + var yyb150 bool + var yyhl150 bool = l >= 0 + yyj150++ + if yyhl150 { + yyb150 = yyj150 > l } else { - yyb146 = r.CheckBreak() + yyb150 = r.CheckBreak() } - if yyb146 { + if yyb150 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -1677,21 +1701,21 @@ func (x *JobStatus) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.Conditions = nil } else { - yyv147 := &x.Conditions - yym148 := z.DecBinary() - _ = yym148 + yyv151 := &x.Conditions + yym152 := z.DecBinary() + _ = yym152 if false { } else { - h.decSliceJobCondition((*[]JobCondition)(yyv147), d) + h.decSliceJobCondition((*[]JobCondition)(yyv151), d) } } - yyj146++ - if yyhl146 { - yyb146 = yyj146 > l + yyj150++ + if yyhl150 { + yyb150 = yyj150 > l } else { - yyb146 = r.CheckBreak() + yyb150 = r.CheckBreak() } - if yyb146 { + if yyb150 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -1704,25 +1728,25 @@ func (x *JobStatus) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if x.StartTime == nil { x.StartTime = new(pkg1_unversioned.Time) } - yym150 := z.DecBinary() - _ = yym150 + yym154 := z.DecBinary() + _ = yym154 if false { } else if z.HasExtensions() && z.DecExt(x.StartTime) { - } else if yym150 { + } else if yym154 { z.DecBinaryUnmarshal(x.StartTime) - } else if !yym150 && z.IsJSONHandle() { + } else if !yym154 && z.IsJSONHandle() { z.DecJSONUnmarshal(x.StartTime) } else { z.DecFallback(x.StartTime, false) } } - yyj146++ - if yyhl146 { - yyb146 = yyj146 > l + yyj150++ + if yyhl150 { + yyb150 = yyj150 > l } else { - yyb146 = r.CheckBreak() + yyb150 = r.CheckBreak() } - if yyb146 { + if yyb150 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -1735,25 +1759,25 @@ func (x *JobStatus) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if x.CompletionTime == nil { x.CompletionTime = new(pkg1_unversioned.Time) } - yym152 := z.DecBinary() - _ = yym152 + yym156 := z.DecBinary() + _ = yym156 if false { } else if z.HasExtensions() && z.DecExt(x.CompletionTime) { - } else if yym152 { + } else if yym156 { z.DecBinaryUnmarshal(x.CompletionTime) - } else if !yym152 && z.IsJSONHandle() { + } else if !yym156 && z.IsJSONHandle() { z.DecJSONUnmarshal(x.CompletionTime) } else { z.DecFallback(x.CompletionTime, false) } } - yyj146++ - if yyhl146 { - yyb146 = yyj146 > l + yyj150++ + if yyhl150 { + yyb150 = yyj150 > l } else { - yyb146 = r.CheckBreak() + yyb150 = r.CheckBreak() } - if yyb146 { + if yyb150 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -1763,13 +1787,13 @@ func (x *JobStatus) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.Active = int32(r.DecodeInt(32)) } - yyj146++ - if yyhl146 { - yyb146 = yyj146 > l + yyj150++ + if yyhl150 { + yyb150 = yyj150 > l } else { - yyb146 = r.CheckBreak() + yyb150 = r.CheckBreak() } - if yyb146 { + if yyb150 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -1779,13 +1803,13 @@ func (x *JobStatus) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.Succeeded = int32(r.DecodeInt(32)) } - yyj146++ - if yyhl146 { - yyb146 = yyj146 > l + yyj150++ + if yyhl150 { + yyb150 = yyj150 > l } else { - yyb146 = r.CheckBreak() + yyb150 = r.CheckBreak() } - if yyb146 { + if yyb150 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -1796,17 +1820,17 @@ func (x *JobStatus) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { x.Failed = int32(r.DecodeInt(32)) } for { - yyj146++ - if yyhl146 { - yyb146 = yyj146 > l + yyj150++ + if yyhl150 { + yyb150 = yyj150 > l } else { - yyb146 = r.CheckBreak() + yyb150 = r.CheckBreak() } - if yyb146 { + if yyb150 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj146-1, "") + z.DecStructFieldNotFound(yyj150-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -1815,8 +1839,8 @@ func (x JobConditionType) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r - yym156 := z.EncBinary() - _ = yym156 + yym160 := z.EncBinary() + _ = yym160 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { @@ -1828,8 +1852,8 @@ func (x *JobConditionType) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym157 := z.DecBinary() - _ = yym157 + yym161 := z.DecBinary() + _ = yym161 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { @@ -1844,34 +1868,34 @@ func (x *JobCondition) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym158 := z.EncBinary() - _ = yym158 + yym162 := z.EncBinary() + _ = yym162 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - 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 { + yysep163 := !z.EncBinary() + yy2arr163 := z.EncBasicHandle().StructToArray + var yyq163 [6]bool + _, _, _ = yysep163, yyq163, yy2arr163 + const yyr163 bool = false + yyq163[2] = true + yyq163[3] = true + yyq163[4] = x.Reason != "" + yyq163[5] = x.Message != "" + var yynn163 int + if yyr163 || yy2arr163 { r.EncodeArrayStart(6) } else { - yynn159 = 2 - for _, b := range yyq159 { + yynn163 = 2 + for _, b := range yyq163 { if b { - yynn159++ + yynn163++ } } - r.EncodeMapStart(yynn159) - yynn159 = 0 + r.EncodeMapStart(yynn163) + yynn163 = 0 } - if yyr159 || yy2arr159 { + if yyr163 || yy2arr163 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) x.Type.CodecEncodeSelf(e) } else { @@ -1880,10 +1904,10 @@ func (x *JobCondition) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapValue1234) x.Type.CodecEncodeSelf(e) } - if yyr159 || yy2arr159 { + if yyr163 || yy2arr163 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym162 := z.EncBinary() - _ = yym162 + yym166 := z.EncBinary() + _ = yym166 if false { } else if z.HasExtensions() && z.EncExt(x.Status) { } else { @@ -1893,139 +1917,139 @@ func (x *JobCondition) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("status")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym163 := z.EncBinary() - _ = yym163 + yym167 := z.EncBinary() + _ = yym167 if false { } else if z.HasExtensions() && z.EncExt(x.Status) { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Status)) } } - if yyr159 || yy2arr159 { + if yyr163 || yy2arr163 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq159[2] { - yy165 := &x.LastProbeTime - yym166 := z.EncBinary() - _ = yym166 + if yyq163[2] { + yy169 := &x.LastProbeTime + yym170 := z.EncBinary() + _ = yym170 if false { - } else if z.HasExtensions() && z.EncExt(yy165) { - } else if yym166 { - z.EncBinaryMarshal(yy165) - } else if !yym166 && z.IsJSONHandle() { - z.EncJSONMarshal(yy165) + } else if z.HasExtensions() && z.EncExt(yy169) { + } else if yym170 { + z.EncBinaryMarshal(yy169) + } else if !yym170 && z.IsJSONHandle() { + z.EncJSONMarshal(yy169) } else { - z.EncFallback(yy165) + z.EncFallback(yy169) } } else { r.EncodeNil() } } else { - if yyq159[2] { + if yyq163[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("lastProbeTime")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy167 := &x.LastProbeTime - yym168 := z.EncBinary() - _ = yym168 + yy171 := &x.LastProbeTime + yym172 := z.EncBinary() + _ = yym172 if false { - } else if z.HasExtensions() && z.EncExt(yy167) { - } else if yym168 { - z.EncBinaryMarshal(yy167) - } else if !yym168 && z.IsJSONHandle() { - z.EncJSONMarshal(yy167) + } else if z.HasExtensions() && z.EncExt(yy171) { + } else if yym172 { + z.EncBinaryMarshal(yy171) + } else if !yym172 && z.IsJSONHandle() { + z.EncJSONMarshal(yy171) } else { - z.EncFallback(yy167) + z.EncFallback(yy171) } } } - if yyr159 || yy2arr159 { + if yyr163 || yy2arr163 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq159[3] { - yy170 := &x.LastTransitionTime - yym171 := z.EncBinary() - _ = yym171 + if yyq163[3] { + yy174 := &x.LastTransitionTime + yym175 := z.EncBinary() + _ = yym175 if false { - } else if z.HasExtensions() && z.EncExt(yy170) { - } else if yym171 { - z.EncBinaryMarshal(yy170) - } else if !yym171 && z.IsJSONHandle() { - z.EncJSONMarshal(yy170) + } else if z.HasExtensions() && z.EncExt(yy174) { + } else if yym175 { + z.EncBinaryMarshal(yy174) + } else if !yym175 && z.IsJSONHandle() { + z.EncJSONMarshal(yy174) } else { - z.EncFallback(yy170) + z.EncFallback(yy174) } } else { r.EncodeNil() } } else { - if yyq159[3] { + if yyq163[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("lastTransitionTime")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy172 := &x.LastTransitionTime - yym173 := z.EncBinary() - _ = yym173 + yy176 := &x.LastTransitionTime + yym177 := z.EncBinary() + _ = yym177 if false { - } else if z.HasExtensions() && z.EncExt(yy172) { - } else if yym173 { - z.EncBinaryMarshal(yy172) - } else if !yym173 && z.IsJSONHandle() { - z.EncJSONMarshal(yy172) + } else if z.HasExtensions() && z.EncExt(yy176) { + } else if yym177 { + z.EncBinaryMarshal(yy176) + } else if !yym177 && z.IsJSONHandle() { + z.EncJSONMarshal(yy176) } else { - z.EncFallback(yy172) + z.EncFallback(yy176) } } } - if yyr159 || yy2arr159 { + if yyr163 || yy2arr163 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq159[4] { - yym175 := z.EncBinary() - _ = yym175 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Reason)) - } - } else { - r.EncodeString(codecSelferC_UTF81234, "") - } - } else { - if yyq159[4] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("reason")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym176 := z.EncBinary() - _ = yym176 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Reason)) - } - } - } - if yyr159 || yy2arr159 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq159[5] { - yym178 := z.EncBinary() - _ = yym178 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Message)) - } - } else { - r.EncodeString(codecSelferC_UTF81234, "") - } - } else { - if yyq159[5] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("message")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) + if yyq163[4] { yym179 := z.EncBinary() _ = yym179 if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Reason)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq163[4] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("reason")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym180 := z.EncBinary() + _ = yym180 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Reason)) + } + } + } + if yyr163 || yy2arr163 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq163[5] { + yym182 := z.EncBinary() + _ = yym182 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Message)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq163[5] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("message")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym183 := z.EncBinary() + _ = yym183 + if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Message)) } } } - if yyr159 || yy2arr159 { + if yyr163 || yy2arr163 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -2038,25 +2062,25 @@ func (x *JobCondition) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym180 := z.DecBinary() - _ = yym180 + yym184 := z.DecBinary() + _ = yym184 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct181 := r.ContainerType() - if yyct181 == codecSelferValueTypeMap1234 { - yyl181 := r.ReadMapStart() - if yyl181 == 0 { + yyct185 := r.ContainerType() + if yyct185 == codecSelferValueTypeMap1234 { + yyl185 := r.ReadMapStart() + if yyl185 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl181, d) + x.codecDecodeSelfFromMap(yyl185, d) } - } else if yyct181 == codecSelferValueTypeArray1234 { - yyl181 := r.ReadArrayStart() - if yyl181 == 0 { + } else if yyct185 == codecSelferValueTypeArray1234 { + yyl185 := r.ReadArrayStart() + if yyl185 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl181, d) + x.codecDecodeSelfFromArray(yyl185, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -2068,12 +2092,12 @@ func (x *JobCondition) 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 { + var yys186Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys186Slc + var yyhl186 bool = l >= 0 + for yyj186 := 0; ; yyj186++ { + if yyhl186 { + if yyj186 >= l { break } } else { @@ -2082,10 +2106,10 @@ func (x *JobCondition) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys182Slc = r.DecodeBytes(yys182Slc, true, true) - yys182 := string(yys182Slc) + yys186Slc = r.DecodeBytes(yys186Slc, true, true) + yys186 := string(yys186Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys182 { + switch yys186 { case "type": if r.TryDecodeAsNil() { x.Type = "" @@ -2102,34 +2126,34 @@ func (x *JobCondition) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.LastProbeTime = pkg1_unversioned.Time{} } else { - yyv185 := &x.LastProbeTime - yym186 := z.DecBinary() - _ = yym186 + yyv189 := &x.LastProbeTime + yym190 := z.DecBinary() + _ = yym190 if false { - } else if z.HasExtensions() && z.DecExt(yyv185) { - } else if yym186 { - z.DecBinaryUnmarshal(yyv185) - } else if !yym186 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv185) + } else if z.HasExtensions() && z.DecExt(yyv189) { + } else if yym190 { + z.DecBinaryUnmarshal(yyv189) + } else if !yym190 && z.IsJSONHandle() { + z.DecJSONUnmarshal(yyv189) } else { - z.DecFallback(yyv185, false) + z.DecFallback(yyv189, false) } } case "lastTransitionTime": if r.TryDecodeAsNil() { x.LastTransitionTime = pkg1_unversioned.Time{} } else { - yyv187 := &x.LastTransitionTime - yym188 := z.DecBinary() - _ = yym188 + yyv191 := &x.LastTransitionTime + yym192 := z.DecBinary() + _ = yym192 if false { - } else if z.HasExtensions() && z.DecExt(yyv187) { - } else if yym188 { - z.DecBinaryUnmarshal(yyv187) - } else if !yym188 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv187) + } else if z.HasExtensions() && z.DecExt(yyv191) { + } else if yym192 { + z.DecBinaryUnmarshal(yyv191) + } else if !yym192 && z.IsJSONHandle() { + z.DecJSONUnmarshal(yyv191) } else { - z.DecFallback(yyv187, false) + z.DecFallback(yyv191, false) } } case "reason": @@ -2145,9 +2169,9 @@ func (x *JobCondition) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { x.Message = string(r.DecodeString()) } default: - z.DecStructFieldNotFound(-1, yys182) - } // end switch yys182 - } // end for yyj182 + z.DecStructFieldNotFound(-1, yys186) + } // end switch yys186 + } // end for yyj186 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -2155,16 +2179,16 @@ func (x *JobCondition) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj191 int - var yyb191 bool - var yyhl191 bool = l >= 0 - yyj191++ - if yyhl191 { - yyb191 = yyj191 > l + var yyj195 int + var yyb195 bool + var yyhl195 bool = l >= 0 + yyj195++ + if yyhl195 { + yyb195 = yyj195 > l } else { - yyb191 = r.CheckBreak() + yyb195 = r.CheckBreak() } - if yyb191 { + if yyb195 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -2174,13 +2198,13 @@ func (x *JobCondition) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.Type = JobConditionType(r.DecodeString()) } - yyj191++ - if yyhl191 { - yyb191 = yyj191 > l + yyj195++ + if yyhl195 { + yyb195 = yyj195 > l } else { - yyb191 = r.CheckBreak() + yyb195 = r.CheckBreak() } - if yyb191 { + if yyb195 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -2190,13 +2214,13 @@ func (x *JobCondition) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.Status = pkg2_v1.ConditionStatus(r.DecodeString()) } - yyj191++ - if yyhl191 { - yyb191 = yyj191 > l + yyj195++ + if yyhl195 { + yyb195 = yyj195 > l } else { - yyb191 = r.CheckBreak() + yyb195 = r.CheckBreak() } - if yyb191 { + if yyb195 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -2204,26 +2228,26 @@ func (x *JobCondition) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.LastProbeTime = pkg1_unversioned.Time{} } else { - yyv194 := &x.LastProbeTime - yym195 := z.DecBinary() - _ = yym195 + yyv198 := &x.LastProbeTime + yym199 := z.DecBinary() + _ = yym199 if false { - } else if z.HasExtensions() && z.DecExt(yyv194) { - } else if yym195 { - z.DecBinaryUnmarshal(yyv194) - } else if !yym195 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv194) + } else if z.HasExtensions() && z.DecExt(yyv198) { + } else if yym199 { + z.DecBinaryUnmarshal(yyv198) + } else if !yym199 && z.IsJSONHandle() { + z.DecJSONUnmarshal(yyv198) } else { - z.DecFallback(yyv194, false) + z.DecFallback(yyv198, false) } } - yyj191++ - if yyhl191 { - yyb191 = yyj191 > l + yyj195++ + if yyhl195 { + yyb195 = yyj195 > l } else { - yyb191 = r.CheckBreak() + yyb195 = r.CheckBreak() } - if yyb191 { + if yyb195 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -2231,26 +2255,26 @@ func (x *JobCondition) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.LastTransitionTime = pkg1_unversioned.Time{} } else { - yyv196 := &x.LastTransitionTime - yym197 := z.DecBinary() - _ = yym197 + yyv200 := &x.LastTransitionTime + yym201 := z.DecBinary() + _ = yym201 if false { - } else if z.HasExtensions() && z.DecExt(yyv196) { - } else if yym197 { - z.DecBinaryUnmarshal(yyv196) - } else if !yym197 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv196) + } else if z.HasExtensions() && z.DecExt(yyv200) { + } else if yym201 { + z.DecBinaryUnmarshal(yyv200) + } else if !yym201 && z.IsJSONHandle() { + z.DecJSONUnmarshal(yyv200) } else { - z.DecFallback(yyv196, false) + z.DecFallback(yyv200, false) } } - yyj191++ - if yyhl191 { - yyb191 = yyj191 > l + yyj195++ + if yyhl195 { + yyb195 = yyj195 > l } else { - yyb191 = r.CheckBreak() + yyb195 = r.CheckBreak() } - if yyb191 { + if yyb195 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -2260,13 +2284,13 @@ func (x *JobCondition) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.Reason = string(r.DecodeString()) } - yyj191++ - if yyhl191 { - yyb191 = yyj191 > l + yyj195++ + if yyhl195 { + yyb195 = yyj195 > l } else { - yyb191 = r.CheckBreak() + yyb195 = r.CheckBreak() } - if yyb191 { + if yyb195 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -2277,574 +2301,30 @@ func (x *JobCondition) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { x.Message = string(r.DecodeString()) } for { - yyj191++ - if yyhl191 { - yyb191 = yyj191 > l + yyj195++ + if yyhl195 { + yyb195 = yyj195 > l } else { - yyb191 = r.CheckBreak() + yyb195 = r.CheckBreak() } - if yyb191 { + if yyb195 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj191-1, "") + z.DecStructFieldNotFound(yyj195-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } -func (x *LabelSelector) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - if x == nil { - r.EncodeNil() - } else { - yym200 := z.EncBinary() - _ = yym200 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - 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 { - yynn201 = 0 - for _, b := range yyq201 { - if b { - yynn201++ - } - } - r.EncodeMapStart(yynn201) - yynn201 = 0 - } - if yyr201 || yy2arr201 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq201[0] { - if x.MatchLabels == nil { - r.EncodeNil() - } else { - yym203 := z.EncBinary() - _ = yym203 - if false { - } else { - z.F.EncMapStringStringV(x.MatchLabels, false, e) - } - } - } else { - r.EncodeNil() - } - } else { - if yyq201[0] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("matchLabels")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - if x.MatchLabels == nil { - r.EncodeNil() - } else { - yym204 := z.EncBinary() - _ = yym204 - if false { - } else { - z.F.EncMapStringStringV(x.MatchLabels, false, e) - } - } - } - } - if yyr201 || yy2arr201 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq201[1] { - if x.MatchExpressions == nil { - r.EncodeNil() - } else { - yym206 := z.EncBinary() - _ = yym206 - if false { - } else { - h.encSliceLabelSelectorRequirement(([]LabelSelectorRequirement)(x.MatchExpressions), e) - } - } - } else { - r.EncodeNil() - } - } else { - if yyq201[1] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("matchExpressions")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - if x.MatchExpressions == nil { - r.EncodeNil() - } else { - yym207 := z.EncBinary() - _ = yym207 - if false { - } else { - h.encSliceLabelSelectorRequirement(([]LabelSelectorRequirement)(x.MatchExpressions), e) - } - } - } - } - if yyr201 || yy2arr201 { - z.EncSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - z.EncSendContainerState(codecSelfer_containerMapEnd1234) - } - } - } -} - -func (x *LabelSelector) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - yym208 := z.DecBinary() - _ = yym208 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - yyct209 := r.ContainerType() - if yyct209 == codecSelferValueTypeMap1234 { - yyl209 := r.ReadMapStart() - if yyl209 == 0 { - z.DecSendContainerState(codecSelfer_containerMapEnd1234) - } else { - x.codecDecodeSelfFromMap(yyl209, d) - } - } else if yyct209 == codecSelferValueTypeArray1234 { - yyl209 := r.ReadArrayStart() - if yyl209 == 0 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - x.codecDecodeSelfFromArray(yyl209, d) - } - } else { - panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) - } - } -} - -func (x *LabelSelector) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - 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 { - if r.CheckBreak() { - break - } - } - z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys210Slc = r.DecodeBytes(yys210Slc, true, true) - yys210 := string(yys210Slc) - z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys210 { - case "matchLabels": - if r.TryDecodeAsNil() { - x.MatchLabels = nil - } else { - yyv211 := &x.MatchLabels - yym212 := z.DecBinary() - _ = yym212 - if false { - } else { - z.F.DecMapStringStringX(yyv211, false, d) - } - } - case "matchExpressions": - if r.TryDecodeAsNil() { - x.MatchExpressions = nil - } else { - yyv213 := &x.MatchExpressions - yym214 := z.DecBinary() - _ = yym214 - if false { - } else { - h.decSliceLabelSelectorRequirement((*[]LabelSelectorRequirement)(yyv213), d) - } - } - default: - z.DecStructFieldNotFound(-1, yys210) - } // end switch yys210 - } // end for yyj210 - z.DecSendContainerState(codecSelfer_containerMapEnd1234) -} - -func (x *LabelSelector) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yyj215 int - var yyb215 bool - var yyhl215 bool = l >= 0 - yyj215++ - if yyhl215 { - yyb215 = yyj215 > l - } else { - yyb215 = r.CheckBreak() - } - if yyb215 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.MatchLabels = nil - } else { - yyv216 := &x.MatchLabels - yym217 := z.DecBinary() - _ = yym217 - if false { - } else { - z.F.DecMapStringStringX(yyv216, false, d) - } - } - yyj215++ - if yyhl215 { - yyb215 = yyj215 > l - } else { - yyb215 = r.CheckBreak() - } - if yyb215 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.MatchExpressions = nil - } else { - yyv218 := &x.MatchExpressions - yym219 := z.DecBinary() - _ = yym219 - if false { - } else { - h.decSliceLabelSelectorRequirement((*[]LabelSelectorRequirement)(yyv218), d) - } - } - for { - yyj215++ - if yyhl215 { - yyb215 = yyj215 > l - } else { - yyb215 = r.CheckBreak() - } - if yyb215 { - break - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj215-1, "") - } - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) -} - -func (x *LabelSelectorRequirement) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - if x == nil { - r.EncodeNil() - } else { - yym220 := z.EncBinary() - _ = yym220 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - 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 { - yynn221 = 2 - for _, b := range yyq221 { - if b { - yynn221++ - } - } - r.EncodeMapStart(yynn221) - yynn221 = 0 - } - if yyr221 || yy2arr221 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym223 := z.EncBinary() - _ = yym223 - 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) - yym224 := z.EncBinary() - _ = yym224 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Key)) - } - } - if yyr221 || yy2arr221 { - 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 yyr221 || yy2arr221 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq221[2] { - if x.Values == nil { - r.EncodeNil() - } else { - yym227 := z.EncBinary() - _ = yym227 - if false { - } else { - z.F.EncSliceStringV(x.Values, false, e) - } - } - } else { - r.EncodeNil() - } - } else { - if yyq221[2] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("values")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - if x.Values == nil { - r.EncodeNil() - } else { - yym228 := z.EncBinary() - _ = yym228 - if false { - } else { - z.F.EncSliceStringV(x.Values, false, e) - } - } - } - } - if yyr221 || yy2arr221 { - z.EncSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - z.EncSendContainerState(codecSelfer_containerMapEnd1234) - } - } - } -} - -func (x *LabelSelectorRequirement) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - yym229 := z.DecBinary() - _ = yym229 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - yyct230 := r.ContainerType() - if yyct230 == codecSelferValueTypeMap1234 { - yyl230 := r.ReadMapStart() - if yyl230 == 0 { - z.DecSendContainerState(codecSelfer_containerMapEnd1234) - } else { - x.codecDecodeSelfFromMap(yyl230, d) - } - } else if yyct230 == codecSelferValueTypeArray1234 { - yyl230 := r.ReadArrayStart() - if yyl230 == 0 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - x.codecDecodeSelfFromArray(yyl230, d) - } - } else { - panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) - } - } -} - -func (x *LabelSelectorRequirement) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - 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 { - if r.CheckBreak() { - break - } - } - z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys231Slc = r.DecodeBytes(yys231Slc, true, true) - yys231 := string(yys231Slc) - z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys231 { - case "key": - if r.TryDecodeAsNil() { - x.Key = "" - } else { - x.Key = string(r.DecodeString()) - } - case "operator": - if r.TryDecodeAsNil() { - x.Operator = "" - } else { - x.Operator = LabelSelectorOperator(r.DecodeString()) - } - case "values": - if r.TryDecodeAsNil() { - x.Values = nil - } else { - yyv234 := &x.Values - yym235 := z.DecBinary() - _ = yym235 - if false { - } else { - z.F.DecSliceStringX(yyv234, false, d) - } - } - default: - z.DecStructFieldNotFound(-1, yys231) - } // end switch yys231 - } // end for yyj231 - z.DecSendContainerState(codecSelfer_containerMapEnd1234) -} - -func (x *LabelSelectorRequirement) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yyj236 int - var yyb236 bool - var yyhl236 bool = l >= 0 - yyj236++ - if yyhl236 { - yyb236 = yyj236 > l - } else { - yyb236 = r.CheckBreak() - } - if yyb236 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Key = "" - } else { - x.Key = string(r.DecodeString()) - } - yyj236++ - if yyhl236 { - yyb236 = yyj236 > l - } else { - yyb236 = r.CheckBreak() - } - if yyb236 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Operator = "" - } else { - x.Operator = LabelSelectorOperator(r.DecodeString()) - } - yyj236++ - if yyhl236 { - yyb236 = yyj236 > l - } else { - yyb236 = r.CheckBreak() - } - if yyb236 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Values = nil - } else { - yyv239 := &x.Values - yym240 := z.DecBinary() - _ = yym240 - if false { - } else { - z.F.DecSliceStringX(yyv239, false, d) - } - } - for { - yyj236++ - if yyhl236 { - yyb236 = yyj236 > l - } else { - yyb236 = r.CheckBreak() - } - if yyb236 { - break - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj236-1, "") - } - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) -} - -func (x LabelSelectorOperator) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - yym241 := z.EncBinary() - _ = yym241 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x)) - } -} - -func (x *LabelSelectorOperator) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - yym242 := z.DecBinary() - _ = yym242 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - *((*string)(x)) = r.DecodeString() - } -} - 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 _, yyv243 := range v { + for _, yyv204 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy244 := &yyv243 - yy244.CodecEncodeSelf(e) + yy205 := &yyv204 + yy205.CodecEncodeSelf(e) } z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -2854,83 +2334,83 @@ func (x codecSelfer1234) decSliceJob(v *[]Job, d *codec1978.Decoder) { z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - 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 + yyv206 := *v + yyh206, yyl206 := z.DecSliceHelperStart() + var yyc206 bool + if yyl206 == 0 { + if yyv206 == nil { + yyv206 = []Job{} + yyc206 = true + } else if len(yyv206) != 0 { + yyv206 = yyv206[:0] + yyc206 = true } - } else if yyl245 > 0 { - var yyrr245, yyrl245 int - var yyrt245 bool - if yyl245 > cap(yyv245) { + } else if yyl206 > 0 { + var yyrr206, yyrl206 int + var yyrt206 bool + if yyl206 > cap(yyv206) { - yyrg245 := len(yyv245) > 0 - yyv2245 := yyv245 - yyrl245, yyrt245 = z.DecInferLen(yyl245, z.DecBasicHandle().MaxInitLen, 824) - if yyrt245 { - if yyrl245 <= cap(yyv245) { - yyv245 = yyv245[:yyrl245] + yyrg206 := len(yyv206) > 0 + yyv2206 := yyv206 + yyrl206, yyrt206 = z.DecInferLen(yyl206, z.DecBasicHandle().MaxInitLen, 824) + if yyrt206 { + if yyrl206 <= cap(yyv206) { + yyv206 = yyv206[:yyrl206] } else { - yyv245 = make([]Job, yyrl245) + yyv206 = make([]Job, yyrl206) } } else { - yyv245 = make([]Job, yyrl245) + yyv206 = make([]Job, yyrl206) } - yyc245 = true - yyrr245 = len(yyv245) - if yyrg245 { - copy(yyv245, yyv2245) + yyc206 = true + yyrr206 = len(yyv206) + if yyrg206 { + copy(yyv206, yyv2206) } - } else if yyl245 != len(yyv245) { - yyv245 = yyv245[:yyl245] - yyc245 = true + } else if yyl206 != len(yyv206) { + yyv206 = yyv206[:yyl206] + yyc206 = true } - yyj245 := 0 - for ; yyj245 < yyrr245; yyj245++ { - yyh245.ElemContainerState(yyj245) + yyj206 := 0 + for ; yyj206 < yyrr206; yyj206++ { + yyh206.ElemContainerState(yyj206) if r.TryDecodeAsNil() { - yyv245[yyj245] = Job{} + yyv206[yyj206] = Job{} } else { - yyv246 := &yyv245[yyj245] - yyv246.CodecDecodeSelf(d) + yyv207 := &yyv206[yyj206] + yyv207.CodecDecodeSelf(d) } } - if yyrt245 { - for ; yyj245 < yyl245; yyj245++ { - yyv245 = append(yyv245, Job{}) - yyh245.ElemContainerState(yyj245) + if yyrt206 { + for ; yyj206 < yyl206; yyj206++ { + yyv206 = append(yyv206, Job{}) + yyh206.ElemContainerState(yyj206) if r.TryDecodeAsNil() { - yyv245[yyj245] = Job{} + yyv206[yyj206] = Job{} } else { - yyv247 := &yyv245[yyj245] - yyv247.CodecDecodeSelf(d) + yyv208 := &yyv206[yyj206] + yyv208.CodecDecodeSelf(d) } } } } else { - yyj245 := 0 - for ; !r.CheckBreak(); yyj245++ { + yyj206 := 0 + for ; !r.CheckBreak(); yyj206++ { - if yyj245 >= len(yyv245) { - yyv245 = append(yyv245, Job{}) // var yyz245 Job - yyc245 = true + if yyj206 >= len(yyv206) { + yyv206 = append(yyv206, Job{}) // var yyz206 Job + yyc206 = true } - yyh245.ElemContainerState(yyj245) - if yyj245 < len(yyv245) { + yyh206.ElemContainerState(yyj206) + if yyj206 < len(yyv206) { if r.TryDecodeAsNil() { - yyv245[yyj245] = Job{} + yyv206[yyj206] = Job{} } else { - yyv248 := &yyv245[yyj245] - yyv248.CodecDecodeSelf(d) + yyv209 := &yyv206[yyj206] + yyv209.CodecDecodeSelf(d) } } else { @@ -2938,17 +2418,17 @@ func (x codecSelfer1234) decSliceJob(v *[]Job, d *codec1978.Decoder) { } } - if yyj245 < len(yyv245) { - yyv245 = yyv245[:yyj245] - yyc245 = true - } else if yyj245 == 0 && yyv245 == nil { - yyv245 = []Job{} - yyc245 = true + if yyj206 < len(yyv206) { + yyv206 = yyv206[:yyj206] + yyc206 = true + } else if yyj206 == 0 && yyv206 == nil { + yyv206 = []Job{} + yyc206 = true } } - yyh245.End() - if yyc245 { - *v = yyv245 + yyh206.End() + if yyc206 { + *v = yyv206 } } @@ -2957,10 +2437,10 @@ func (x codecSelfer1234) encSliceJobCondition(v []JobCondition, e *codec1978.Enc z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r r.EncodeArrayStart(len(v)) - for _, yyv249 := range v { + for _, yyv210 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy250 := &yyv249 - yy250.CodecEncodeSelf(e) + yy211 := &yyv210 + yy211.CodecEncodeSelf(e) } z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -2970,83 +2450,83 @@ func (x codecSelfer1234) decSliceJobCondition(v *[]JobCondition, d *codec1978.De z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - 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 + yyv212 := *v + yyh212, yyl212 := z.DecSliceHelperStart() + var yyc212 bool + if yyl212 == 0 { + if yyv212 == nil { + yyv212 = []JobCondition{} + yyc212 = true + } else if len(yyv212) != 0 { + yyv212 = yyv212[:0] + yyc212 = true } - } else if yyl251 > 0 { - var yyrr251, yyrl251 int - var yyrt251 bool - if yyl251 > cap(yyv251) { + } else if yyl212 > 0 { + var yyrr212, yyrl212 int + var yyrt212 bool + if yyl212 > cap(yyv212) { - yyrg251 := len(yyv251) > 0 - yyv2251 := yyv251 - yyrl251, yyrt251 = z.DecInferLen(yyl251, z.DecBasicHandle().MaxInitLen, 112) - if yyrt251 { - if yyrl251 <= cap(yyv251) { - yyv251 = yyv251[:yyrl251] + yyrg212 := len(yyv212) > 0 + yyv2212 := yyv212 + yyrl212, yyrt212 = z.DecInferLen(yyl212, z.DecBasicHandle().MaxInitLen, 112) + if yyrt212 { + if yyrl212 <= cap(yyv212) { + yyv212 = yyv212[:yyrl212] } else { - yyv251 = make([]JobCondition, yyrl251) + yyv212 = make([]JobCondition, yyrl212) } } else { - yyv251 = make([]JobCondition, yyrl251) + yyv212 = make([]JobCondition, yyrl212) } - yyc251 = true - yyrr251 = len(yyv251) - if yyrg251 { - copy(yyv251, yyv2251) + yyc212 = true + yyrr212 = len(yyv212) + if yyrg212 { + copy(yyv212, yyv2212) } - } else if yyl251 != len(yyv251) { - yyv251 = yyv251[:yyl251] - yyc251 = true + } else if yyl212 != len(yyv212) { + yyv212 = yyv212[:yyl212] + yyc212 = true } - yyj251 := 0 - for ; yyj251 < yyrr251; yyj251++ { - yyh251.ElemContainerState(yyj251) + yyj212 := 0 + for ; yyj212 < yyrr212; yyj212++ { + yyh212.ElemContainerState(yyj212) if r.TryDecodeAsNil() { - yyv251[yyj251] = JobCondition{} + yyv212[yyj212] = JobCondition{} } else { - yyv252 := &yyv251[yyj251] - yyv252.CodecDecodeSelf(d) + yyv213 := &yyv212[yyj212] + yyv213.CodecDecodeSelf(d) } } - if yyrt251 { - for ; yyj251 < yyl251; yyj251++ { - yyv251 = append(yyv251, JobCondition{}) - yyh251.ElemContainerState(yyj251) + if yyrt212 { + for ; yyj212 < yyl212; yyj212++ { + yyv212 = append(yyv212, JobCondition{}) + yyh212.ElemContainerState(yyj212) if r.TryDecodeAsNil() { - yyv251[yyj251] = JobCondition{} + yyv212[yyj212] = JobCondition{} } else { - yyv253 := &yyv251[yyj251] - yyv253.CodecDecodeSelf(d) + yyv214 := &yyv212[yyj212] + yyv214.CodecDecodeSelf(d) } } } } else { - yyj251 := 0 - for ; !r.CheckBreak(); yyj251++ { + yyj212 := 0 + for ; !r.CheckBreak(); yyj212++ { - if yyj251 >= len(yyv251) { - yyv251 = append(yyv251, JobCondition{}) // var yyz251 JobCondition - yyc251 = true + if yyj212 >= len(yyv212) { + yyv212 = append(yyv212, JobCondition{}) // var yyz212 JobCondition + yyc212 = true } - yyh251.ElemContainerState(yyj251) - if yyj251 < len(yyv251) { + yyh212.ElemContainerState(yyj212) + if yyj212 < len(yyv212) { if r.TryDecodeAsNil() { - yyv251[yyj251] = JobCondition{} + yyv212[yyj212] = JobCondition{} } else { - yyv254 := &yyv251[yyj251] - yyv254.CodecDecodeSelf(d) + yyv215 := &yyv212[yyj212] + yyv215.CodecDecodeSelf(d) } } else { @@ -3054,132 +2534,16 @@ func (x codecSelfer1234) decSliceJobCondition(v *[]JobCondition, d *codec1978.De } } - if yyj251 < len(yyv251) { - yyv251 = yyv251[:yyj251] - yyc251 = true - } else if yyj251 == 0 && yyv251 == nil { - yyv251 = []JobCondition{} - yyc251 = true + if yyj212 < len(yyv212) { + yyv212 = yyv212[:yyj212] + yyc212 = true + } else if yyj212 == 0 && yyv212 == nil { + yyv212 = []JobCondition{} + yyc212 = true } } - yyh251.End() - if yyc251 { - *v = yyv251 - } -} - -func (x codecSelfer1234) encSliceLabelSelectorRequirement(v []LabelSelectorRequirement, e *codec1978.Encoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - r.EncodeArrayStart(len(v)) - for _, yyv255 := range v { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy256 := &yyv255 - yy256.CodecEncodeSelf(e) - } - z.EncSendContainerState(codecSelfer_containerArrayEnd1234) -} - -func (x codecSelfer1234) decSliceLabelSelectorRequirement(v *[]LabelSelectorRequirement, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - - 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 { - yyv257 = make([]LabelSelectorRequirement, yyrl257) - } - } else { - yyv257 = make([]LabelSelectorRequirement, yyrl257) - } - yyc257 = true - yyrr257 = len(yyv257) - if yyrg257 { - copy(yyv257, yyv2257) - } - } else if yyl257 != len(yyv257) { - yyv257 = yyv257[:yyl257] - yyc257 = true - } - yyj257 := 0 - for ; yyj257 < yyrr257; yyj257++ { - yyh257.ElemContainerState(yyj257) - if r.TryDecodeAsNil() { - yyv257[yyj257] = LabelSelectorRequirement{} - } else { - yyv258 := &yyv257[yyj257] - yyv258.CodecDecodeSelf(d) - } - - } - if yyrt257 { - for ; yyj257 < yyl257; yyj257++ { - yyv257 = append(yyv257, LabelSelectorRequirement{}) - yyh257.ElemContainerState(yyj257) - if r.TryDecodeAsNil() { - yyv257[yyj257] = LabelSelectorRequirement{} - } else { - yyv259 := &yyv257[yyj257] - yyv259.CodecDecodeSelf(d) - } - - } - } - - } else { - yyj257 := 0 - for ; !r.CheckBreak(); yyj257++ { - - if yyj257 >= len(yyv257) { - yyv257 = append(yyv257, LabelSelectorRequirement{}) // var yyz257 LabelSelectorRequirement - yyc257 = true - } - yyh257.ElemContainerState(yyj257) - if yyj257 < len(yyv257) { - if r.TryDecodeAsNil() { - yyv257[yyj257] = LabelSelectorRequirement{} - } else { - yyv260 := &yyv257[yyj257] - yyv260.CodecDecodeSelf(d) - } - - } else { - z.DecSwallow() - } - - } - if yyj257 < len(yyv257) { - yyv257 = yyv257[:yyj257] - yyc257 = true - } else if yyj257 == 0 && yyv257 == nil { - yyv257 = []LabelSelectorRequirement{} - yyc257 = true - } - } - yyh257.End() - if yyc257 { - *v = yyv257 + yyh212.End() + if yyc212 { + *v = yyv212 } } diff --git a/vendor/k8s.io/client-go/1.5/pkg/apis/batch/v1/types.go b/vendor/k8s.io/client-go/pkg/apis/batch/v1/types.go similarity index 71% rename from vendor/k8s.io/client-go/1.5/pkg/apis/batch/v1/types.go rename to vendor/k8s.io/client-go/pkg/apis/batch/v1/types.go index e47873747..ec44c4e4b 100644 --- a/vendor/k8s.io/client-go/1.5/pkg/apis/batch/v1/types.go +++ b/vendor/k8s.io/client-go/pkg/apis/batch/v1/types.go @@ -17,8 +17,8 @@ limitations under the License. package v1 import ( - "k8s.io/client-go/1.5/pkg/api/unversioned" - "k8s.io/client-go/1.5/pkg/api/v1" + "k8s.io/client-go/pkg/api/unversioned" + "k8s.io/client-go/pkg/api/v1" ) // +genclient=true @@ -28,14 +28,17 @@ type Job struct { unversioned.TypeMeta `json:",inline"` // Standard object's metadata. // More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata + // +optional v1.ObjectMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"` // 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 + // +optional Spec JobSpec `json:"spec,omitempty" protobuf:"bytes,2,opt,name=spec"` // 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 + // +optional Status JobStatus `json:"status,omitempty" protobuf:"bytes,3,opt,name=status"` } @@ -44,6 +47,7 @@ type JobList struct { unversioned.TypeMeta `json:",inline"` // Standard list metadata // More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata + // +optional unversioned.ListMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"` // Items is the list of Job. @@ -57,7 +61,8 @@ type JobSpec struct { // 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. - // More info: http://releases.k8s.io/HEAD/docs/user-guide/jobs.md + // More info: http://kubernetes.io/docs/user-guide/jobs + // +optional Parallelism *int32 `json:"parallelism,omitempty" protobuf:"varint,1,opt,name=parallelism"` // Completions specifies the desired number of successfully finished pods the @@ -65,17 +70,20 @@ type JobSpec struct { // 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. - // More info: http://releases.k8s.io/HEAD/docs/user-guide/jobs.md + // More info: http://kubernetes.io/docs/user-guide/jobs + // +optional Completions *int32 `json:"completions,omitempty" protobuf:"varint,2,opt,name=completions"` // 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 + // +optional ActiveDeadlineSeconds *int64 `json:"activeDeadlineSeconds,omitempty" protobuf:"varint,3,opt,name=activeDeadlineSeconds"` // Selector is a label query over pods that should match the pod count. // Normally, the system sets this field for you. - // More info: http://releases.k8s.io/HEAD/docs/user-guide/labels.md#label-selectors - Selector *LabelSelector `json:"selector,omitempty" protobuf:"bytes,4,opt,name=selector"` + // More info: http://kubernetes.io/docs/user-guide/labels#label-selectors + // +optional + Selector *unversioned.LabelSelector `json:"selector,omitempty" protobuf:"bytes,4,opt,name=selector"` // ManualSelector controls generation of pod labels and pod selectors. // Leave `manualSelector` unset unless you are certain what you are doing. @@ -87,11 +95,12 @@ type JobSpec struct { // `manualSelector=true` in jobs that were created with the old `extensions/v1beta1` // API. // More info: http://releases.k8s.io/HEAD/docs/design/selector-generation.md + // +optional ManualSelector *bool `json:"manualSelector,omitempty" protobuf:"varint,5,opt,name=manualSelector"` // Template is the object that describes the pod that will be created when // executing a job. - // More info: http://releases.k8s.io/HEAD/docs/user-guide/jobs.md + // More info: http://kubernetes.io/docs/user-guide/jobs Template v1.PodTemplateSpec `json:"template" protobuf:"bytes,6,opt,name=template"` } @@ -99,26 +108,32 @@ type JobSpec struct { type JobStatus struct { // Conditions represent the latest available observations of an object's current state. - // More info: http://releases.k8s.io/HEAD/docs/user-guide/jobs.md + // More info: http://kubernetes.io/docs/user-guide/jobs + // +optional Conditions []JobCondition `json:"conditions,omitempty" patchStrategy:"merge" patchMergeKey:"type" protobuf:"bytes,1,rep,name=conditions"` // 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. + // +optional StartTime *unversioned.Time `json:"startTime,omitempty" protobuf:"bytes,2,opt,name=startTime"` // 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. + // +optional CompletionTime *unversioned.Time `json:"completionTime,omitempty" protobuf:"bytes,3,opt,name=completionTime"` // Active is the number of actively running pods. + // +optional Active int32 `json:"active,omitempty" protobuf:"varint,4,opt,name=active"` // Succeeded is the number of pods which reached Phase Succeeded. + // +optional Succeeded int32 `json:"succeeded,omitempty" protobuf:"varint,5,opt,name=succeeded"` // Failed is the number of pods which reached Phase Failed. + // +optional Failed int32 `json:"failed,omitempty" protobuf:"varint,6,opt,name=failed"` } @@ -139,48 +154,15 @@ type JobCondition struct { // Status of the condition, one of True, False, Unknown. Status v1.ConditionStatus `json:"status" protobuf:"bytes,2,opt,name=status,casttype=k8s.io/kubernetes/pkg/api/v1.ConditionStatus"` // Last time the condition was checked. + // +optional LastProbeTime unversioned.Time `json:"lastProbeTime,omitempty" protobuf:"bytes,3,opt,name=lastProbeTime"` // Last time the condition transit from one status to another. + // +optional LastTransitionTime unversioned.Time `json:"lastTransitionTime,omitempty" protobuf:"bytes,4,opt,name=lastTransitionTime"` // (brief) reason for the condition's last transition. + // +optional Reason string `json:"reason,omitempty" protobuf:"bytes,5,opt,name=reason"` // Human readable message indicating details about last transition. + // +optional Message string `json:"message,omitempty" protobuf:"bytes,6,opt,name=message"` } - -// 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/vendor/k8s.io/client-go/1.5/pkg/apis/batch/v1/types_swagger_doc_generated.go b/vendor/k8s.io/client-go/pkg/apis/batch/v1/types_swagger_doc_generated.go similarity index 75% rename from vendor/k8s.io/client-go/1.5/pkg/apis/batch/v1/types_swagger_doc_generated.go rename to vendor/k8s.io/client-go/pkg/apis/batch/v1/types_swagger_doc_generated.go index aa0dbcc2f..3d224e703 100644 --- a/vendor/k8s.io/client-go/1.5/pkg/apis/batch/v1/types_swagger_doc_generated.go +++ b/vendor/k8s.io/client-go/pkg/apis/batch/v1/types_swagger_doc_generated.go @@ -64,12 +64,12 @@ func (JobList) SwaggerDoc() map[string]string { var map_JobSpec = map[string]string{ "": "JobSpec describes how the job execution will look like.", - "parallelism": "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. More info: http://releases.k8s.io/HEAD/docs/user-guide/jobs.md", - "completions": "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. More info: http://releases.k8s.io/HEAD/docs/user-guide/jobs.md", + "parallelism": "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. More info: http://kubernetes.io/docs/user-guide/jobs", + "completions": "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. More info: http://kubernetes.io/docs/user-guide/jobs", "activeDeadlineSeconds": "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", - "selector": "Selector is a label query over pods that should match the pod count. Normally, the system sets this field for you. More info: http://releases.k8s.io/HEAD/docs/user-guide/labels.md#label-selectors", + "selector": "Selector is a label query over pods that should match the pod count. Normally, the system sets this field for you. More info: http://kubernetes.io/docs/user-guide/labels#label-selectors", "manualSelector": "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. More info: http://releases.k8s.io/HEAD/docs/design/selector-generation.md", - "template": "Template is the object that describes the pod that will be created when executing a job. More info: http://releases.k8s.io/HEAD/docs/user-guide/jobs.md", + "template": "Template is the object that describes the pod that will be created when executing a job. More info: http://kubernetes.io/docs/user-guide/jobs", } func (JobSpec) SwaggerDoc() map[string]string { @@ -78,7 +78,7 @@ func (JobSpec) SwaggerDoc() map[string]string { var map_JobStatus = map[string]string{ "": "JobStatus represents the current state of a Job.", - "conditions": "Conditions represent the latest available observations of an object's current state. More info: http://releases.k8s.io/HEAD/docs/user-guide/jobs.md", + "conditions": "Conditions represent the latest available observations of an object's current state. More info: http://kubernetes.io/docs/user-guide/jobs", "startTime": "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.", "completionTime": "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.", "active": "Active is the number of actively running pods.", @@ -90,25 +90,4 @@ func (JobStatus) SwaggerDoc() map[string]string { return map_JobStatus } -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 -} - // AUTO-GENERATED FUNCTIONS END HERE diff --git a/vendor/k8s.io/client-go/pkg/apis/batch/v1/zz_generated.conversion.go b/vendor/k8s.io/client-go/pkg/apis/batch/v1/zz_generated.conversion.go new file mode 100644 index 000000000..f414252fe --- /dev/null +++ b/vendor/k8s.io/client-go/pkg/apis/batch/v1/zz_generated.conversion.go @@ -0,0 +1,208 @@ +// +build !ignore_autogenerated + +/* +Copyright 2017 The Kubernetes Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT 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/client-go/pkg/api" + unversioned "k8s.io/client-go/pkg/api/unversioned" + api_v1 "k8s.io/client-go/pkg/api/v1" + batch "k8s.io/client-go/pkg/apis/batch" + conversion "k8s.io/client-go/pkg/conversion" + runtime "k8s.io/client-go/pkg/runtime" + unsafe "unsafe" +) + +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_Job_To_batch_Job, + Convert_batch_Job_To_v1_Job, + Convert_v1_JobCondition_To_batch_JobCondition, + Convert_batch_JobCondition_To_v1_JobCondition, + Convert_v1_JobList_To_batch_JobList, + Convert_batch_JobList_To_v1_JobList, + Convert_v1_JobSpec_To_batch_JobSpec, + Convert_batch_JobSpec_To_v1_JobSpec, + Convert_v1_JobStatus_To_batch_JobStatus, + Convert_batch_JobStatus_To_v1_JobStatus, + ) +} + +func autoConvert_v1_Job_To_batch_Job(in *Job, out *batch.Job, s conversion.Scope) error { + // TODO: Inefficient conversion - can we improve it? + if err := s.Convert(&in.ObjectMeta, &out.ObjectMeta, 0); err != nil { + return err + } + if err := Convert_v1_JobSpec_To_batch_JobSpec(&in.Spec, &out.Spec, s); err != nil { + return err + } + if err := Convert_v1_JobStatus_To_batch_JobStatus(&in.Status, &out.Status, s); err != nil { + return err + } + return nil +} + +func Convert_v1_Job_To_batch_Job(in *Job, out *batch.Job, s conversion.Scope) error { + return autoConvert_v1_Job_To_batch_Job(in, out, s) +} + +func autoConvert_batch_Job_To_v1_Job(in *batch.Job, out *Job, s conversion.Scope) error { + // TODO: Inefficient conversion - can we improve it? + if err := s.Convert(&in.ObjectMeta, &out.ObjectMeta, 0); err != nil { + return err + } + if err := Convert_batch_JobSpec_To_v1_JobSpec(&in.Spec, &out.Spec, s); err != nil { + return err + } + if err := Convert_batch_JobStatus_To_v1_JobStatus(&in.Status, &out.Status, s); err != nil { + return err + } + return nil +} + +func Convert_batch_Job_To_v1_Job(in *batch.Job, out *Job, s conversion.Scope) error { + return autoConvert_batch_Job_To_v1_Job(in, out, s) +} + +func autoConvert_v1_JobCondition_To_batch_JobCondition(in *JobCondition, out *batch.JobCondition, s conversion.Scope) error { + out.Type = batch.JobConditionType(in.Type) + out.Status = api.ConditionStatus(in.Status) + out.LastProbeTime = in.LastProbeTime + out.LastTransitionTime = in.LastTransitionTime + out.Reason = in.Reason + out.Message = in.Message + return nil +} + +func Convert_v1_JobCondition_To_batch_JobCondition(in *JobCondition, out *batch.JobCondition, s conversion.Scope) error { + return autoConvert_v1_JobCondition_To_batch_JobCondition(in, out, s) +} + +func autoConvert_batch_JobCondition_To_v1_JobCondition(in *batch.JobCondition, out *JobCondition, s conversion.Scope) error { + out.Type = JobConditionType(in.Type) + out.Status = api_v1.ConditionStatus(in.Status) + out.LastProbeTime = in.LastProbeTime + out.LastTransitionTime = in.LastTransitionTime + out.Reason = in.Reason + out.Message = in.Message + return nil +} + +func Convert_batch_JobCondition_To_v1_JobCondition(in *batch.JobCondition, out *JobCondition, s conversion.Scope) error { + return autoConvert_batch_JobCondition_To_v1_JobCondition(in, out, s) +} + +func autoConvert_v1_JobList_To_batch_JobList(in *JobList, out *batch.JobList, s conversion.Scope) error { + out.ListMeta = in.ListMeta + if in.Items != nil { + in, out := &in.Items, &out.Items + *out = make([]batch.Job, len(*in)) + for i := range *in { + if err := Convert_v1_Job_To_batch_Job(&(*in)[i], &(*out)[i], s); err != nil { + return err + } + } + } else { + out.Items = nil + } + return nil +} + +func Convert_v1_JobList_To_batch_JobList(in *JobList, out *batch.JobList, s conversion.Scope) error { + return autoConvert_v1_JobList_To_batch_JobList(in, out, s) +} + +func autoConvert_batch_JobList_To_v1_JobList(in *batch.JobList, out *JobList, s conversion.Scope) error { + 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 := Convert_batch_Job_To_v1_Job(&(*in)[i], &(*out)[i], s); err != nil { + return err + } + } + } else { + out.Items = nil + } + return nil +} + +func Convert_batch_JobList_To_v1_JobList(in *batch.JobList, out *JobList, s conversion.Scope) error { + return autoConvert_batch_JobList_To_v1_JobList(in, out, s) +} + +func autoConvert_v1_JobSpec_To_batch_JobSpec(in *JobSpec, out *batch.JobSpec, s conversion.Scope) error { + out.Parallelism = (*int32)(unsafe.Pointer(in.Parallelism)) + out.Completions = (*int32)(unsafe.Pointer(in.Completions)) + out.ActiveDeadlineSeconds = (*int64)(unsafe.Pointer(in.ActiveDeadlineSeconds)) + out.Selector = (*unversioned.LabelSelector)(unsafe.Pointer(in.Selector)) + out.ManualSelector = (*bool)(unsafe.Pointer(in.ManualSelector)) + if err := api_v1.Convert_v1_PodTemplateSpec_To_api_PodTemplateSpec(&in.Template, &out.Template, s); err != nil { + return err + } + return nil +} + +func autoConvert_batch_JobSpec_To_v1_JobSpec(in *batch.JobSpec, out *JobSpec, s conversion.Scope) error { + out.Parallelism = (*int32)(unsafe.Pointer(in.Parallelism)) + out.Completions = (*int32)(unsafe.Pointer(in.Completions)) + out.ActiveDeadlineSeconds = (*int64)(unsafe.Pointer(in.ActiveDeadlineSeconds)) + out.Selector = (*unversioned.LabelSelector)(unsafe.Pointer(in.Selector)) + out.ManualSelector = (*bool)(unsafe.Pointer(in.ManualSelector)) + if err := api_v1.Convert_api_PodTemplateSpec_To_v1_PodTemplateSpec(&in.Template, &out.Template, s); err != nil { + return err + } + return nil +} + +func autoConvert_v1_JobStatus_To_batch_JobStatus(in *JobStatus, out *batch.JobStatus, s conversion.Scope) error { + out.Conditions = *(*[]batch.JobCondition)(unsafe.Pointer(&in.Conditions)) + out.StartTime = (*unversioned.Time)(unsafe.Pointer(in.StartTime)) + out.CompletionTime = (*unversioned.Time)(unsafe.Pointer(in.CompletionTime)) + out.Active = in.Active + out.Succeeded = in.Succeeded + out.Failed = in.Failed + return nil +} + +func Convert_v1_JobStatus_To_batch_JobStatus(in *JobStatus, out *batch.JobStatus, s conversion.Scope) error { + return autoConvert_v1_JobStatus_To_batch_JobStatus(in, out, s) +} + +func autoConvert_batch_JobStatus_To_v1_JobStatus(in *batch.JobStatus, out *JobStatus, s conversion.Scope) error { + out.Conditions = *(*[]JobCondition)(unsafe.Pointer(&in.Conditions)) + out.StartTime = (*unversioned.Time)(unsafe.Pointer(in.StartTime)) + out.CompletionTime = (*unversioned.Time)(unsafe.Pointer(in.CompletionTime)) + out.Active = in.Active + out.Succeeded = in.Succeeded + out.Failed = in.Failed + return nil +} + +func Convert_batch_JobStatus_To_v1_JobStatus(in *batch.JobStatus, out *JobStatus, s conversion.Scope) error { + return autoConvert_batch_JobStatus_To_v1_JobStatus(in, out, s) +} diff --git a/vendor/k8s.io/client-go/1.5/pkg/apis/batch/v1/zz_generated.deepcopy.go b/vendor/k8s.io/client-go/pkg/apis/batch/v1/zz_generated.deepcopy.go similarity index 73% rename from vendor/k8s.io/client-go/1.5/pkg/apis/batch/v1/zz_generated.deepcopy.go rename to vendor/k8s.io/client-go/pkg/apis/batch/v1/zz_generated.deepcopy.go index 7655a5cc5..6b89a13b0 100644 --- a/vendor/k8s.io/client-go/1.5/pkg/apis/batch/v1/zz_generated.deepcopy.go +++ b/vendor/k8s.io/client-go/pkg/apis/batch/v1/zz_generated.deepcopy.go @@ -1,7 +1,7 @@ // +build !ignore_autogenerated /* -Copyright 2016 The Kubernetes Authors. +Copyright 2017 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -21,10 +21,10 @@ limitations under the License. package v1 import ( - unversioned "k8s.io/client-go/1.5/pkg/api/unversioned" - api_v1 "k8s.io/client-go/1.5/pkg/api/v1" - conversion "k8s.io/client-go/1.5/pkg/conversion" - runtime "k8s.io/client-go/1.5/pkg/runtime" + unversioned "k8s.io/client-go/pkg/api/unversioned" + api_v1 "k8s.io/client-go/pkg/api/v1" + conversion "k8s.io/client-go/pkg/conversion" + runtime "k8s.io/client-go/pkg/runtime" reflect "reflect" ) @@ -41,8 +41,6 @@ func RegisterDeepCopies(scheme *runtime.Scheme) error { 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{})}, ) } @@ -126,8 +124,8 @@ func DeepCopy_v1_JobSpec(in interface{}, out interface{}, c *conversion.Cloner) } if in.Selector != nil { in, out := &in.Selector, &out.Selector - *out = new(LabelSelector) - if err := DeepCopy_v1_LabelSelector(*in, *out, c); err != nil { + *out = new(unversioned.LabelSelector) + if err := unversioned.DeepCopy_unversioned_LabelSelector(*in, *out, c); err != nil { return err } } else { @@ -182,48 +180,3 @@ func DeepCopy_v1_JobStatus(in interface{}, out interface{}, c *conversion.Cloner 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/vendor/k8s.io/client-go/pkg/apis/batch/v1/zz_generated.defaults.go b/vendor/k8s.io/client-go/pkg/apis/batch/v1/zz_generated.defaults.go new file mode 100644 index 000000000..1df065568 --- /dev/null +++ b/vendor/k8s.io/client-go/pkg/apis/batch/v1/zz_generated.defaults.go @@ -0,0 +1,159 @@ +// +build !ignore_autogenerated + +/* +Copyright 2017 The Kubernetes Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT 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 defaulter-gen. Do not edit it manually! + +package v1 + +import ( + api_v1 "k8s.io/client-go/pkg/api/v1" + runtime "k8s.io/client-go/pkg/runtime" +) + +// RegisterDefaults adds defaulters functions to the given scheme. +// Public to allow building arbitrary schemes. +// All generated defaulters are covering - they call all nested defaulters. +func RegisterDefaults(scheme *runtime.Scheme) error { + scheme.AddTypeDefaultingFunc(&Job{}, func(obj interface{}) { SetObjectDefaults_Job(obj.(*Job)) }) + scheme.AddTypeDefaultingFunc(&JobList{}, func(obj interface{}) { SetObjectDefaults_JobList(obj.(*JobList)) }) + return nil +} + +func SetObjectDefaults_Job(in *Job) { + SetDefaults_Job(in) + api_v1.SetDefaults_PodSpec(&in.Spec.Template.Spec) + for i := range in.Spec.Template.Spec.Volumes { + a := &in.Spec.Template.Spec.Volumes[i] + api_v1.SetDefaults_Volume(a) + if a.VolumeSource.Secret != nil { + api_v1.SetDefaults_SecretVolumeSource(a.VolumeSource.Secret) + } + if a.VolumeSource.ISCSI != nil { + api_v1.SetDefaults_ISCSIVolumeSource(a.VolumeSource.ISCSI) + } + if a.VolumeSource.RBD != nil { + api_v1.SetDefaults_RBDVolumeSource(a.VolumeSource.RBD) + } + if a.VolumeSource.DownwardAPI != nil { + api_v1.SetDefaults_DownwardAPIVolumeSource(a.VolumeSource.DownwardAPI) + for j := range a.VolumeSource.DownwardAPI.Items { + b := &a.VolumeSource.DownwardAPI.Items[j] + if b.FieldRef != nil { + api_v1.SetDefaults_ObjectFieldSelector(b.FieldRef) + } + } + } + if a.VolumeSource.ConfigMap != nil { + api_v1.SetDefaults_ConfigMapVolumeSource(a.VolumeSource.ConfigMap) + } + if a.VolumeSource.AzureDisk != nil { + api_v1.SetDefaults_AzureDiskVolumeSource(a.VolumeSource.AzureDisk) + } + } + for i := range in.Spec.Template.Spec.InitContainers { + a := &in.Spec.Template.Spec.InitContainers[i] + api_v1.SetDefaults_Container(a) + for j := range a.Ports { + b := &a.Ports[j] + api_v1.SetDefaults_ContainerPort(b) + } + for j := range a.Env { + b := &a.Env[j] + if b.ValueFrom != nil { + if b.ValueFrom.FieldRef != nil { + api_v1.SetDefaults_ObjectFieldSelector(b.ValueFrom.FieldRef) + } + } + } + api_v1.SetDefaults_ResourceList(&a.Resources.Limits) + api_v1.SetDefaults_ResourceList(&a.Resources.Requests) + if a.LivenessProbe != nil { + api_v1.SetDefaults_Probe(a.LivenessProbe) + if a.LivenessProbe.Handler.HTTPGet != nil { + api_v1.SetDefaults_HTTPGetAction(a.LivenessProbe.Handler.HTTPGet) + } + } + if a.ReadinessProbe != nil { + api_v1.SetDefaults_Probe(a.ReadinessProbe) + if a.ReadinessProbe.Handler.HTTPGet != nil { + api_v1.SetDefaults_HTTPGetAction(a.ReadinessProbe.Handler.HTTPGet) + } + } + if a.Lifecycle != nil { + if a.Lifecycle.PostStart != nil { + if a.Lifecycle.PostStart.HTTPGet != nil { + api_v1.SetDefaults_HTTPGetAction(a.Lifecycle.PostStart.HTTPGet) + } + } + if a.Lifecycle.PreStop != nil { + if a.Lifecycle.PreStop.HTTPGet != nil { + api_v1.SetDefaults_HTTPGetAction(a.Lifecycle.PreStop.HTTPGet) + } + } + } + } + for i := range in.Spec.Template.Spec.Containers { + a := &in.Spec.Template.Spec.Containers[i] + api_v1.SetDefaults_Container(a) + for j := range a.Ports { + b := &a.Ports[j] + api_v1.SetDefaults_ContainerPort(b) + } + for j := range a.Env { + b := &a.Env[j] + if b.ValueFrom != nil { + if b.ValueFrom.FieldRef != nil { + api_v1.SetDefaults_ObjectFieldSelector(b.ValueFrom.FieldRef) + } + } + } + api_v1.SetDefaults_ResourceList(&a.Resources.Limits) + api_v1.SetDefaults_ResourceList(&a.Resources.Requests) + if a.LivenessProbe != nil { + api_v1.SetDefaults_Probe(a.LivenessProbe) + if a.LivenessProbe.Handler.HTTPGet != nil { + api_v1.SetDefaults_HTTPGetAction(a.LivenessProbe.Handler.HTTPGet) + } + } + if a.ReadinessProbe != nil { + api_v1.SetDefaults_Probe(a.ReadinessProbe) + if a.ReadinessProbe.Handler.HTTPGet != nil { + api_v1.SetDefaults_HTTPGetAction(a.ReadinessProbe.Handler.HTTPGet) + } + } + if a.Lifecycle != nil { + if a.Lifecycle.PostStart != nil { + if a.Lifecycle.PostStart.HTTPGet != nil { + api_v1.SetDefaults_HTTPGetAction(a.Lifecycle.PostStart.HTTPGet) + } + } + if a.Lifecycle.PreStop != nil { + if a.Lifecycle.PreStop.HTTPGet != nil { + api_v1.SetDefaults_HTTPGetAction(a.Lifecycle.PreStop.HTTPGet) + } + } + } + } +} + +func SetObjectDefaults_JobList(in *JobList) { + for i := range in.Items { + a := &in.Items[i] + SetObjectDefaults_Job(a) + } +} diff --git a/vendor/k8s.io/client-go/1.5/pkg/apis/batch/v2alpha1/conversion.go b/vendor/k8s.io/client-go/pkg/apis/batch/v2alpha1/conversion.go similarity index 66% rename from vendor/k8s.io/client-go/1.5/pkg/apis/batch/v2alpha1/conversion.go rename to vendor/k8s.io/client-go/pkg/apis/batch/v2alpha1/conversion.go index 5e78d1f62..e9a88b117 100644 --- a/vendor/k8s.io/client-go/1.5/pkg/apis/batch/v2alpha1/conversion.go +++ b/vendor/k8s.io/client-go/pkg/apis/batch/v2alpha1/conversion.go @@ -18,14 +18,12 @@ package v2alpha1 import ( "fmt" - "reflect" - "k8s.io/client-go/1.5/pkg/api" - "k8s.io/client-go/1.5/pkg/api/unversioned" - v1 "k8s.io/client-go/1.5/pkg/api/v1" - "k8s.io/client-go/1.5/pkg/apis/batch" - "k8s.io/client-go/1.5/pkg/conversion" - "k8s.io/client-go/1.5/pkg/runtime" + "k8s.io/client-go/pkg/api" + v1 "k8s.io/client-go/pkg/api/v1" + "k8s.io/client-go/pkg/apis/batch" + "k8s.io/client-go/pkg/conversion" + "k8s.io/client-go/pkg/runtime" ) func addConversionFuncs(scheme *runtime.Scheme) error { @@ -39,7 +37,7 @@ func addConversionFuncs(scheme *runtime.Scheme) error { } // Add field label conversions for kinds having selectable nothing but ObjectMeta fields. - for _, kind := range []string{"Job", "JobTemplate", "ScheduledJob"} { + for _, kind := range []string{"Job", "JobTemplate", "CronJob"} { err = api.Scheme.AddFieldLabelConversionFunc("batch/v2alpha1", kind, func(label, value string) (string, string, error) { switch label { @@ -57,21 +55,10 @@ func addConversionFuncs(scheme *runtime.Scheme) error { } func Convert_batch_JobSpec_To_v2alpha1_JobSpec(in *batch.JobSpec, out *JobSpec, s conversion.Scope) error { - if defaulting, found := s.DefaultingInterface(reflect.TypeOf(*in)); found { - defaulting.(func(*batch.JobSpec))(in) - } out.Parallelism = in.Parallelism out.Completions = in.Completions out.ActiveDeadlineSeconds = in.ActiveDeadlineSeconds - // unable to generate simple pointer conversion for unversioned.LabelSelector -> v1.LabelSelector - if in.Selector != nil { - out.Selector = new(LabelSelector) - if err := Convert_unversioned_LabelSelector_To_v2alpha1_LabelSelector(in.Selector, out.Selector, s); err != nil { - return err - } - } else { - out.Selector = nil - } + out.Selector = in.Selector if in.ManualSelector != nil { out.ManualSelector = new(bool) *out.ManualSelector = *in.ManualSelector @@ -86,21 +73,10 @@ func Convert_batch_JobSpec_To_v2alpha1_JobSpec(in *batch.JobSpec, out *JobSpec, } func Convert_v2alpha1_JobSpec_To_batch_JobSpec(in *JobSpec, out *batch.JobSpec, s conversion.Scope) error { - if defaulting, found := s.DefaultingInterface(reflect.TypeOf(*in)); found { - defaulting.(func(*JobSpec))(in) - } out.Parallelism = in.Parallelism out.Completions = in.Completions out.ActiveDeadlineSeconds = in.ActiveDeadlineSeconds - // unable to generate simple pointer conversion for unversioned.LabelSelector -> v1.LabelSelector - if in.Selector != nil { - out.Selector = new(unversioned.LabelSelector) - if err := Convert_v2alpha1_LabelSelector_To_unversioned_LabelSelector(in.Selector, out.Selector, s); err != nil { - return err - } - } else { - out.Selector = nil - } + out.Selector = in.Selector if in.ManualSelector != nil { out.ManualSelector = new(bool) *out.ManualSelector = *in.ManualSelector diff --git a/vendor/k8s.io/client-go/1.5/pkg/apis/batch/v2alpha1/defaults.go b/vendor/k8s.io/client-go/pkg/apis/batch/v2alpha1/defaults.go similarity index 92% rename from vendor/k8s.io/client-go/1.5/pkg/apis/batch/v2alpha1/defaults.go rename to vendor/k8s.io/client-go/pkg/apis/batch/v2alpha1/defaults.go index 0350f8815..d0c1d634c 100644 --- a/vendor/k8s.io/client-go/1.5/pkg/apis/batch/v2alpha1/defaults.go +++ b/vendor/k8s.io/client-go/pkg/apis/batch/v2alpha1/defaults.go @@ -17,13 +17,14 @@ limitations under the License. package v2alpha1 import ( - "k8s.io/client-go/1.5/pkg/runtime" + "k8s.io/client-go/pkg/runtime" ) func addDefaultingFuncs(scheme *runtime.Scheme) error { + RegisterDefaults(scheme) return scheme.AddDefaultingFuncs( SetDefaults_Job, - SetDefaults_ScheduledJob, + SetDefaults_CronJob, ) } @@ -46,7 +47,7 @@ func SetDefaults_Job(obj *Job) { } } -func SetDefaults_ScheduledJob(obj *ScheduledJob) { +func SetDefaults_CronJob(obj *CronJob) { if obj.Spec.ConcurrencyPolicy == "" { obj.Spec.ConcurrencyPolicy = AllowConcurrent } diff --git a/vendor/k8s.io/client-go/1.5/pkg/apis/batch/v2alpha1/doc.go b/vendor/k8s.io/client-go/pkg/apis/batch/v2alpha1/doc.go similarity index 95% rename from vendor/k8s.io/client-go/1.5/pkg/apis/batch/v2alpha1/doc.go rename to vendor/k8s.io/client-go/pkg/apis/batch/v2alpha1/doc.go index 087b478c9..8fb2e2e62 100644 --- a/vendor/k8s.io/client-go/1.5/pkg/apis/batch/v2alpha1/doc.go +++ b/vendor/k8s.io/client-go/pkg/apis/batch/v2alpha1/doc.go @@ -17,5 +17,6 @@ limitations under the License. // +k8s:deepcopy-gen=package,register // +k8s:conversion-gen=k8s.io/kubernetes/pkg/apis/batch // +k8s:openapi-gen=true +// +k8s:defaulter-gen=TypeMeta package v2alpha1 diff --git a/vendor/k8s.io/client-go/1.5/pkg/apis/batch/v2alpha1/generated.pb.go b/vendor/k8s.io/client-go/pkg/apis/batch/v2alpha1/generated.pb.go similarity index 69% rename from vendor/k8s.io/client-go/1.5/pkg/apis/batch/v2alpha1/generated.pb.go rename to vendor/k8s.io/client-go/pkg/apis/batch/v2alpha1/generated.pb.go index c395bb5f5..c58075262 100644 --- a/vendor/k8s.io/client-go/1.5/pkg/apis/batch/v2alpha1/generated.pb.go +++ b/vendor/k8s.io/client-go/pkg/apis/batch/v2alpha1/generated.pb.go @@ -1,5 +1,5 @@ /* -Copyright 2016 The Kubernetes Authors. +Copyright 2017 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -25,6 +25,10 @@ limitations under the License. k8s.io/kubernetes/pkg/apis/batch/v2alpha1/generated.proto It has these top-level messages: + CronJob + CronJobList + CronJobSpec + CronJobStatus Job JobCondition JobList @@ -32,12 +36,6 @@ limitations under the License. JobStatus JobTemplate JobTemplateSpec - LabelSelector - LabelSelectorRequirement - ScheduledJob - ScheduledJobList - ScheduledJobSpec - ScheduledJobStatus */ package v2alpha1 @@ -45,12 +43,11 @@ import proto "github.com/gogo/protobuf/proto" import fmt "fmt" import math "math" -import k8s_io_kubernetes_pkg_api_unversioned "k8s.io/client-go/1.5/pkg/api/unversioned" -import k8s_io_kubernetes_pkg_api_v1 "k8s.io/client-go/1.5/pkg/api/v1" +import k8s_io_kubernetes_pkg_api_unversioned "k8s.io/client-go/pkg/api/unversioned" +import k8s_io_kubernetes_pkg_api_v1 "k8s.io/client-go/pkg/api/v1" import strings "strings" import reflect "reflect" -import github_com_gogo_protobuf_sortkeys "github.com/gogo/protobuf/sortkeys" import io "io" @@ -63,76 +60,64 @@ var _ = math.Inf // is compatible with the proto package it is being compiled against. const _ = proto.GoGoProtoPackageIsVersion1 +func (m *CronJob) Reset() { *m = CronJob{} } +func (*CronJob) ProtoMessage() {} +func (*CronJob) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{0} } + +func (m *CronJobList) Reset() { *m = CronJobList{} } +func (*CronJobList) ProtoMessage() {} +func (*CronJobList) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{1} } + +func (m *CronJobSpec) Reset() { *m = CronJobSpec{} } +func (*CronJobSpec) ProtoMessage() {} +func (*CronJobSpec) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{2} } + +func (m *CronJobStatus) Reset() { *m = CronJobStatus{} } +func (*CronJobStatus) ProtoMessage() {} +func (*CronJobStatus) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{3} } + func (m *Job) Reset() { *m = Job{} } func (*Job) ProtoMessage() {} -func (*Job) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{0} } +func (*Job) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{4} } func (m *JobCondition) Reset() { *m = JobCondition{} } func (*JobCondition) ProtoMessage() {} -func (*JobCondition) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{1} } +func (*JobCondition) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{5} } func (m *JobList) Reset() { *m = JobList{} } func (*JobList) ProtoMessage() {} -func (*JobList) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{2} } +func (*JobList) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{6} } func (m *JobSpec) Reset() { *m = JobSpec{} } func (*JobSpec) ProtoMessage() {} -func (*JobSpec) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{3} } +func (*JobSpec) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{7} } func (m *JobStatus) Reset() { *m = JobStatus{} } func (*JobStatus) ProtoMessage() {} -func (*JobStatus) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{4} } +func (*JobStatus) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{8} } func (m *JobTemplate) Reset() { *m = JobTemplate{} } func (*JobTemplate) ProtoMessage() {} -func (*JobTemplate) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{5} } +func (*JobTemplate) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{9} } 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 (*LabelSelector) ProtoMessage() {} -func (*LabelSelector) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{7} } - -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 (*ScheduledJob) ProtoMessage() {} -func (*ScheduledJob) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{9} } - -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 (*ScheduledJobSpec) ProtoMessage() {} -func (*ScheduledJobSpec) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{11} } - -func (m *ScheduledJobStatus) Reset() { *m = ScheduledJobStatus{} } -func (*ScheduledJobStatus) ProtoMessage() {} -func (*ScheduledJobStatus) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{12} } +func (*JobTemplateSpec) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{10} } func init() { - proto.RegisterType((*Job)(nil), "k8s.io.client-go.1.5.pkg.apis.batch.v2alpha1.Job") - proto.RegisterType((*JobCondition)(nil), "k8s.io.client-go.1.5.pkg.apis.batch.v2alpha1.JobCondition") - proto.RegisterType((*JobList)(nil), "k8s.io.client-go.1.5.pkg.apis.batch.v2alpha1.JobList") - proto.RegisterType((*JobSpec)(nil), "k8s.io.client-go.1.5.pkg.apis.batch.v2alpha1.JobSpec") - proto.RegisterType((*JobStatus)(nil), "k8s.io.client-go.1.5.pkg.apis.batch.v2alpha1.JobStatus") - proto.RegisterType((*JobTemplate)(nil), "k8s.io.client-go.1.5.pkg.apis.batch.v2alpha1.JobTemplate") - proto.RegisterType((*JobTemplateSpec)(nil), "k8s.io.client-go.1.5.pkg.apis.batch.v2alpha1.JobTemplateSpec") - proto.RegisterType((*LabelSelector)(nil), "k8s.io.client-go.1.5.pkg.apis.batch.v2alpha1.LabelSelector") - proto.RegisterType((*LabelSelectorRequirement)(nil), "k8s.io.client-go.1.5.pkg.apis.batch.v2alpha1.LabelSelectorRequirement") - proto.RegisterType((*ScheduledJob)(nil), "k8s.io.client-go.1.5.pkg.apis.batch.v2alpha1.ScheduledJob") - proto.RegisterType((*ScheduledJobList)(nil), "k8s.io.client-go.1.5.pkg.apis.batch.v2alpha1.ScheduledJobList") - proto.RegisterType((*ScheduledJobSpec)(nil), "k8s.io.client-go.1.5.pkg.apis.batch.v2alpha1.ScheduledJobSpec") - proto.RegisterType((*ScheduledJobStatus)(nil), "k8s.io.client-go.1.5.pkg.apis.batch.v2alpha1.ScheduledJobStatus") + proto.RegisterType((*CronJob)(nil), "k8s.io.client-go.pkg.apis.batch.v2alpha1.CronJob") + proto.RegisterType((*CronJobList)(nil), "k8s.io.client-go.pkg.apis.batch.v2alpha1.CronJobList") + proto.RegisterType((*CronJobSpec)(nil), "k8s.io.client-go.pkg.apis.batch.v2alpha1.CronJobSpec") + proto.RegisterType((*CronJobStatus)(nil), "k8s.io.client-go.pkg.apis.batch.v2alpha1.CronJobStatus") + proto.RegisterType((*Job)(nil), "k8s.io.client-go.pkg.apis.batch.v2alpha1.Job") + proto.RegisterType((*JobCondition)(nil), "k8s.io.client-go.pkg.apis.batch.v2alpha1.JobCondition") + proto.RegisterType((*JobList)(nil), "k8s.io.client-go.pkg.apis.batch.v2alpha1.JobList") + proto.RegisterType((*JobSpec)(nil), "k8s.io.client-go.pkg.apis.batch.v2alpha1.JobSpec") + proto.RegisterType((*JobStatus)(nil), "k8s.io.client-go.pkg.apis.batch.v2alpha1.JobStatus") + proto.RegisterType((*JobTemplate)(nil), "k8s.io.client-go.pkg.apis.batch.v2alpha1.JobTemplate") + proto.RegisterType((*JobTemplateSpec)(nil), "k8s.io.client-go.pkg.apis.batch.v2alpha1.JobTemplateSpec") } -func (m *Job) Marshal() (data []byte, err error) { +func (m *CronJob) Marshal() (data []byte, err error) { size := m.Size() data = make([]byte, size) n, err := m.MarshalTo(data) @@ -142,7 +127,7 @@ func (m *Job) Marshal() (data []byte, err error) { return data[:n], nil } -func (m *Job) MarshalTo(data []byte) (int, error) { +func (m *CronJob) MarshalTo(data []byte) (int, error) { var i int _ = i var l int @@ -174,6 +159,175 @@ func (m *Job) MarshalTo(data []byte) (int, error) { return i, nil } +func (m *CronJobList) Marshal() (data []byte, err error) { + size := m.Size() + data = make([]byte, size) + n, err := m.MarshalTo(data) + if err != nil { + return nil, err + } + return data[:n], nil +} + +func (m *CronJobList) 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())) + n4, err := m.ListMeta.MarshalTo(data[i:]) + if err != nil { + return 0, err + } + i += n4 + 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 *CronJobSpec) Marshal() (data []byte, err error) { + size := m.Size() + data = make([]byte, size) + n, err := m.MarshalTo(data) + if err != nil { + return nil, err + } + return data[:n], nil +} + +func (m *CronJobSpec) MarshalTo(data []byte) (int, error) { + var i int + _ = i + var l int + _ = l + data[i] = 0xa + i++ + i = encodeVarintGenerated(data, i, uint64(len(m.Schedule))) + i += copy(data[i:], m.Schedule) + if m.StartingDeadlineSeconds != nil { + data[i] = 0x10 + i++ + i = encodeVarintGenerated(data, i, uint64(*m.StartingDeadlineSeconds)) + } + data[i] = 0x1a + i++ + i = encodeVarintGenerated(data, i, uint64(len(m.ConcurrencyPolicy))) + i += copy(data[i:], m.ConcurrencyPolicy) + if m.Suspend != nil { + data[i] = 0x20 + i++ + if *m.Suspend { + data[i] = 1 + } else { + data[i] = 0 + } + i++ + } + data[i] = 0x2a + i++ + i = encodeVarintGenerated(data, i, uint64(m.JobTemplate.Size())) + n5, err := m.JobTemplate.MarshalTo(data[i:]) + if err != nil { + return 0, err + } + i += n5 + return i, nil +} + +func (m *CronJobStatus) Marshal() (data []byte, err error) { + size := m.Size() + data = make([]byte, size) + n, err := m.MarshalTo(data) + if err != nil { + return nil, err + } + return data[:n], nil +} + +func (m *CronJobStatus) MarshalTo(data []byte) (int, error) { + var i int + _ = i + var l int + _ = l + if len(m.Active) > 0 { + for _, msg := range m.Active { + 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 m.LastScheduleTime != nil { + data[i] = 0x22 + i++ + i = encodeVarintGenerated(data, i, uint64(m.LastScheduleTime.Size())) + n6, err := m.LastScheduleTime.MarshalTo(data[i:]) + if err != nil { + return 0, err + } + i += n6 + } + return i, nil +} + +func (m *Job) Marshal() (data []byte, err error) { + size := m.Size() + data = make([]byte, size) + n, err := m.MarshalTo(data) + if err != nil { + return nil, err + } + return data[:n], nil +} + +func (m *Job) 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 + data[i] = 0x12 + i++ + i = encodeVarintGenerated(data, i, uint64(m.Spec.Size())) + n8, err := m.Spec.MarshalTo(data[i:]) + if err != nil { + return 0, err + } + i += n8 + data[i] = 0x1a + i++ + i = encodeVarintGenerated(data, i, uint64(m.Status.Size())) + n9, err := m.Status.MarshalTo(data[i:]) + if err != nil { + return 0, err + } + i += n9 + return i, nil +} + func (m *JobCondition) Marshal() (data []byte, err error) { size := m.Size() data = make([]byte, size) @@ -200,19 +354,19 @@ func (m *JobCondition) MarshalTo(data []byte) (int, error) { data[i] = 0x1a i++ i = encodeVarintGenerated(data, i, uint64(m.LastProbeTime.Size())) - n4, err := m.LastProbeTime.MarshalTo(data[i:]) + n10, err := m.LastProbeTime.MarshalTo(data[i:]) if err != nil { return 0, err } - i += n4 + i += n10 data[i] = 0x22 i++ i = encodeVarintGenerated(data, i, uint64(m.LastTransitionTime.Size())) - n5, err := m.LastTransitionTime.MarshalTo(data[i:]) + n11, err := m.LastTransitionTime.MarshalTo(data[i:]) if err != nil { return 0, err } - i += n5 + i += n11 data[i] = 0x2a i++ i = encodeVarintGenerated(data, i, uint64(len(m.Reason))) @@ -242,11 +396,11 @@ func (m *JobList) MarshalTo(data []byte) (int, error) { data[i] = 0xa i++ i = encodeVarintGenerated(data, i, uint64(m.ListMeta.Size())) - n6, err := m.ListMeta.MarshalTo(data[i:]) + n12, err := m.ListMeta.MarshalTo(data[i:]) if err != nil { return 0, err } - i += n6 + i += n12 if len(m.Items) > 0 { for _, msg := range m.Items { data[i] = 0x12 @@ -296,11 +450,11 @@ func (m *JobSpec) MarshalTo(data []byte) (int, error) { data[i] = 0x22 i++ i = encodeVarintGenerated(data, i, uint64(m.Selector.Size())) - n7, err := m.Selector.MarshalTo(data[i:]) + n13, err := m.Selector.MarshalTo(data[i:]) if err != nil { return 0, err } - i += n7 + i += n13 } if m.ManualSelector != nil { data[i] = 0x28 @@ -315,11 +469,11 @@ func (m *JobSpec) MarshalTo(data []byte) (int, error) { data[i] = 0x32 i++ i = encodeVarintGenerated(data, i, uint64(m.Template.Size())) - n8, err := m.Template.MarshalTo(data[i:]) + n14, err := m.Template.MarshalTo(data[i:]) if err != nil { return 0, err } - i += n8 + i += n14 return i, nil } @@ -354,21 +508,21 @@ func (m *JobStatus) MarshalTo(data []byte) (int, error) { data[i] = 0x12 i++ i = encodeVarintGenerated(data, i, uint64(m.StartTime.Size())) - n9, err := m.StartTime.MarshalTo(data[i:]) + n15, err := m.StartTime.MarshalTo(data[i:]) if err != nil { return 0, err } - i += n9 + i += n15 } if m.CompletionTime != nil { data[i] = 0x1a i++ i = encodeVarintGenerated(data, i, uint64(m.CompletionTime.Size())) - n10, err := m.CompletionTime.MarshalTo(data[i:]) + n16, err := m.CompletionTime.MarshalTo(data[i:]) if err != nil { return 0, err } - i += n10 + i += n16 } data[i] = 0x20 i++ @@ -400,19 +554,19 @@ func (m *JobTemplate) MarshalTo(data []byte) (int, error) { data[i] = 0xa i++ i = encodeVarintGenerated(data, i, uint64(m.ObjectMeta.Size())) - n11, err := m.ObjectMeta.MarshalTo(data[i:]) + n17, err := m.ObjectMeta.MarshalTo(data[i:]) if err != nil { return 0, err } - i += n11 + i += n17 data[i] = 0x12 i++ i = encodeVarintGenerated(data, i, uint64(m.Template.Size())) - n12, err := m.Template.MarshalTo(data[i:]) + n18, err := m.Template.MarshalTo(data[i:]) if err != nil { return 0, err } - i += n12 + i += n18 return i, nil } @@ -434,276 +588,19 @@ func (m *JobTemplateSpec) MarshalTo(data []byte) (int, error) { data[i] = 0xa i++ i = encodeVarintGenerated(data, i, uint64(m.ObjectMeta.Size())) - n13, err := m.ObjectMeta.MarshalTo(data[i:]) - if err != nil { - return 0, err - } - i += n13 - data[i] = 0x12 - i++ - i = encodeVarintGenerated(data, i, uint64(m.Spec.Size())) - n14, err := m.Spec.MarshalTo(data[i:]) - if err != nil { - return 0, err - } - i += n14 - 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 *ScheduledJob) Marshal() (data []byte, err error) { - size := m.Size() - data = make([]byte, size) - n, err := m.MarshalTo(data) - if err != nil { - return nil, err - } - return data[:n], nil -} - -func (m *ScheduledJob) 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())) - n15, err := m.ObjectMeta.MarshalTo(data[i:]) - if err != nil { - return 0, err - } - i += n15 - data[i] = 0x12 - i++ - i = encodeVarintGenerated(data, i, uint64(m.Spec.Size())) - n16, err := m.Spec.MarshalTo(data[i:]) - if err != nil { - return 0, err - } - i += n16 - data[i] = 0x1a - i++ - i = encodeVarintGenerated(data, i, uint64(m.Status.Size())) - n17, err := m.Status.MarshalTo(data[i:]) - if err != nil { - return 0, err - } - i += n17 - return i, nil -} - -func (m *ScheduledJobList) Marshal() (data []byte, err error) { - size := m.Size() - data = make([]byte, size) - n, err := m.MarshalTo(data) - if err != nil { - return nil, err - } - return data[:n], nil -} - -func (m *ScheduledJobList) 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())) - n18, err := m.ListMeta.MarshalTo(data[i:]) - if err != nil { - return 0, err - } - i += n18 - 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 *ScheduledJobSpec) Marshal() (data []byte, err error) { - size := m.Size() - data = make([]byte, size) - n, err := m.MarshalTo(data) - if err != nil { - return nil, err - } - return data[:n], nil -} - -func (m *ScheduledJobSpec) MarshalTo(data []byte) (int, error) { - var i int - _ = i - var l int - _ = l - data[i] = 0xa - i++ - i = encodeVarintGenerated(data, i, uint64(len(m.Schedule))) - i += copy(data[i:], m.Schedule) - if m.StartingDeadlineSeconds != nil { - data[i] = 0x10 - i++ - i = encodeVarintGenerated(data, i, uint64(*m.StartingDeadlineSeconds)) - } - data[i] = 0x1a - i++ - i = encodeVarintGenerated(data, i, uint64(len(m.ConcurrencyPolicy))) - i += copy(data[i:], m.ConcurrencyPolicy) - if m.Suspend != nil { - data[i] = 0x20 - i++ - if *m.Suspend { - data[i] = 1 - } else { - data[i] = 0 - } - i++ - } - data[i] = 0x2a - i++ - i = encodeVarintGenerated(data, i, uint64(m.JobTemplate.Size())) - n19, err := m.JobTemplate.MarshalTo(data[i:]) + n19, err := m.ObjectMeta.MarshalTo(data[i:]) if err != nil { return 0, err } i += n19 - return i, nil -} - -func (m *ScheduledJobStatus) Marshal() (data []byte, err error) { - size := m.Size() - data = make([]byte, size) - n, err := m.MarshalTo(data) + data[i] = 0x12 + i++ + i = encodeVarintGenerated(data, i, uint64(m.Spec.Size())) + n20, err := m.Spec.MarshalTo(data[i:]) if err != nil { - return nil, err - } - return data[:n], nil -} - -func (m *ScheduledJobStatus) MarshalTo(data []byte) (int, error) { - var i int - _ = i - var l int - _ = l - if len(m.Active) > 0 { - for _, msg := range m.Active { - 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 m.LastScheduleTime != nil { - data[i] = 0x22 - i++ - i = encodeVarintGenerated(data, i, uint64(m.LastScheduleTime.Size())) - n20, err := m.LastScheduleTime.MarshalTo(data[i:]) - if err != nil { - return 0, err - } - i += n20 + return 0, err } + i += n20 return i, nil } @@ -734,6 +631,66 @@ func encodeVarintGenerated(data []byte, offset int, v uint64) int { data[offset] = uint8(v) return offset + 1 } +func (m *CronJob) 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 *CronJobList) 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 *CronJobSpec) Size() (n int) { + var l int + _ = l + l = len(m.Schedule) + n += 1 + l + sovGenerated(uint64(l)) + if m.StartingDeadlineSeconds != nil { + n += 1 + sovGenerated(uint64(*m.StartingDeadlineSeconds)) + } + l = len(m.ConcurrencyPolicy) + n += 1 + l + sovGenerated(uint64(l)) + if m.Suspend != nil { + n += 2 + } + l = m.JobTemplate.Size() + n += 1 + l + sovGenerated(uint64(l)) + return n +} + +func (m *CronJobStatus) Size() (n int) { + var l int + _ = l + if len(m.Active) > 0 { + for _, e := range m.Active { + l = e.Size() + n += 1 + l + sovGenerated(uint64(l)) + } + } + if m.LastScheduleTime != nil { + l = m.LastScheduleTime.Size() + n += 1 + l + sovGenerated(uint64(l)) + } + return n +} + func (m *Job) Size() (n int) { var l int _ = l @@ -845,102 +802,6 @@ func (m *JobTemplateSpec) Size() (n int) { 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 *ScheduledJob) 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 *ScheduledJobList) 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 *ScheduledJobSpec) Size() (n int) { - var l int - _ = l - l = len(m.Schedule) - n += 1 + l + sovGenerated(uint64(l)) - if m.StartingDeadlineSeconds != nil { - n += 1 + sovGenerated(uint64(*m.StartingDeadlineSeconds)) - } - l = len(m.ConcurrencyPolicy) - n += 1 + l + sovGenerated(uint64(l)) - if m.Suspend != nil { - n += 2 - } - l = m.JobTemplate.Size() - n += 1 + l + sovGenerated(uint64(l)) - return n -} - -func (m *ScheduledJobStatus) Size() (n int) { - var l int - _ = l - if len(m.Active) > 0 { - for _, e := range m.Active { - l = e.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - } - if m.LastScheduleTime != nil { - l = m.LastScheduleTime.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - return n -} - func sovGenerated(x uint64) (n int) { for { n++ @@ -954,6 +815,54 @@ func sovGenerated(x uint64) (n int) { func sozGenerated(x uint64) (n int) { return sovGenerated(uint64((x << 1) ^ uint64((int64(x) >> 63)))) } +func (this *CronJob) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&CronJob{`, + `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(), "CronJobSpec", "CronJobSpec", 1), `&`, ``, 1) + `,`, + `Status:` + strings.Replace(strings.Replace(this.Status.String(), "CronJobStatus", "CronJobStatus", 1), `&`, ``, 1) + `,`, + `}`, + }, "") + return s +} +func (this *CronJobList) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&CronJobList{`, + `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), "CronJob", "CronJob", 1), `&`, ``, 1) + `,`, + `}`, + }, "") + return s +} +func (this *CronJobSpec) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&CronJobSpec{`, + `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 *CronJobStatus) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&CronJobStatus{`, + `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 (this *Job) String() string { if this == nil { return "nil" @@ -1000,7 +909,7 @@ func (this *JobSpec) String() string { `Parallelism:` + valueToStringGenerated(this.Parallelism) + `,`, `Completions:` + valueToStringGenerated(this.Completions) + `,`, `ActiveDeadlineSeconds:` + valueToStringGenerated(this.ActiveDeadlineSeconds) + `,`, - `Selector:` + strings.Replace(fmt.Sprintf("%v", this.Selector), "LabelSelector", "LabelSelector", 1) + `,`, + `Selector:` + strings.Replace(fmt.Sprintf("%v", this.Selector), "LabelSelector", "k8s_io_kubernetes_pkg_api_unversioned.LabelSelector", 1) + `,`, `ManualSelector:` + valueToStringGenerated(this.ManualSelector) + `,`, `Template:` + strings.Replace(strings.Replace(this.Template.String(), "PodTemplateSpec", "k8s_io_kubernetes_pkg_api_v1.PodTemplateSpec", 1), `&`, ``, 1) + `,`, `}`, @@ -1044,87 +953,6 @@ func (this *JobTemplateSpec) String() string { }, "") 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() { @@ -1133,6 +961,550 @@ func valueToStringGenerated(v interface{}) string { pv := reflect.Indirect(rv).Interface() return fmt.Sprintf("*%v", pv) } +func (m *CronJob) Unmarshal(data []byte) 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: CronJob: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: CronJob: 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 *CronJobList) Unmarshal(data []byte) 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: CronJobList: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: CronJobList: 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, CronJob{}) + 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 *CronJobSpec) Unmarshal(data []byte) 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: CronJobSpec: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: CronJobSpec: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Schedule", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + stringLen |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Schedule = string(data[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field StartingDeadlineSeconds", 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.StartingDeadlineSeconds = &v + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ConcurrencyPolicy", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + stringLen |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ConcurrencyPolicy = ConcurrencyPolicy(data[iNdEx:postIndex]) + iNdEx = postIndex + case 4: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Suspend", 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.Suspend = &b + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field JobTemplate", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + 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.JobTemplate.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 *CronJobStatus) Unmarshal(data []byte) 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: CronJobStatus: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: CronJobStatus: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Active", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + 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.Active = append(m.Active, k8s_io_kubernetes_pkg_api_v1.ObjectReference{}) + if err := m.Active[len(m.Active)-1].Unmarshal(data[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field LastScheduleTime", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + 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.LastScheduleTime == nil { + m.LastScheduleTime = &k8s_io_kubernetes_pkg_api_unversioned.Time{} + } + if err := m.LastScheduleTime.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 *Job) Unmarshal(data []byte) error { l := len(data) iNdEx := 0 @@ -1726,7 +2098,7 @@ func (m *JobSpec) Unmarshal(data []byte) error { return io.ErrUnexpectedEOF } if m.Selector == nil { - m.Selector = &LabelSelector{} + m.Selector = &k8s_io_kubernetes_pkg_api_unversioned.LabelSelector{} } if err := m.Selector.Unmarshal(data[iNdEx:postIndex]); err != nil { return err @@ -2228,879 +2600,6 @@ func (m *JobTemplateSpec) Unmarshal(data []byte) error { } 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 *ScheduledJob) Unmarshal(data []byte) 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: ScheduledJob: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: ScheduledJob: 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 *ScheduledJobList) Unmarshal(data []byte) 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: ScheduledJobList: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: ScheduledJobList: 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, ScheduledJob{}) - 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 *ScheduledJobSpec) Unmarshal(data []byte) 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: ScheduledJobSpec: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: ScheduledJobSpec: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Schedule", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Schedule = string(data[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field StartingDeadlineSeconds", 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.StartingDeadlineSeconds = &v - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ConcurrencyPolicy", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.ConcurrencyPolicy = ConcurrencyPolicy(data[iNdEx:postIndex]) - iNdEx = postIndex - case 4: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Suspend", 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.Suspend = &b - case 5: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field JobTemplate", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - 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.JobTemplate.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 *ScheduledJobStatus) Unmarshal(data []byte) 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: ScheduledJobStatus: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: ScheduledJobStatus: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Active", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - 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.Active = append(m.Active, k8s_io_kubernetes_pkg_api_v1.ObjectReference{}) - if err := m.Active[len(m.Active)-1].Unmarshal(data[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field LastScheduleTime", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - 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.LastScheduleTime == nil { - m.LastScheduleTime = &k8s_io_kubernetes_pkg_api_unversioned.Time{} - } - if err := m.LastScheduleTime.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 @@ -3207,87 +2706,77 @@ var ( ) 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, + // 1141 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x09, 0x6e, 0x88, 0x02, 0xff, 0xd4, 0x56, 0x4b, 0x6f, 0xe4, 0x44, + 0x10, 0x8e, 0x67, 0x92, 0x79, 0xf4, 0x6c, 0x5e, 0x0d, 0xd1, 0x0e, 0x41, 0x9a, 0x89, 0x46, 0x02, + 0x65, 0x61, 0x63, 0x2b, 0xa3, 0x00, 0xcb, 0x1e, 0x90, 0xd6, 0x41, 0x48, 0x44, 0x89, 0x36, 0xea, + 0xc9, 0x42, 0x04, 0x0b, 0xa2, 0xc7, 0xee, 0xcc, 0x78, 0x63, 0xbb, 0x8d, 0xbb, 0x1d, 0x94, 0x1b, + 0x67, 0x4e, 0x48, 0xfc, 0x00, 0x7e, 0x07, 0x12, 0x1c, 0x38, 0x20, 0xe5, 0xb8, 0x20, 0x21, 0x71, + 0x1a, 0x11, 0xf3, 0x2f, 0x72, 0x42, 0x6e, 0xb7, 0x1f, 0xf3, 0x0a, 0x99, 0xa0, 0x45, 0xe2, 0xe6, + 0xae, 0xae, 0xef, 0xeb, 0xea, 0xaa, 0xaf, 0xab, 0x0c, 0xde, 0x3d, 0x7d, 0xc0, 0x54, 0x8b, 0x6a, + 0xa7, 0x41, 0x97, 0xf8, 0x2e, 0xe1, 0x84, 0x69, 0xde, 0x69, 0x4f, 0xc3, 0x9e, 0xc5, 0xb4, 0x2e, + 0xe6, 0x46, 0x5f, 0x3b, 0x6b, 0x63, 0xdb, 0xeb, 0xe3, 0x6d, 0xad, 0x47, 0x5c, 0xe2, 0x63, 0x4e, + 0x4c, 0xd5, 0xf3, 0x29, 0xa7, 0xf0, 0x5e, 0x0c, 0x55, 0x33, 0xa8, 0xea, 0x9d, 0xf6, 0xd4, 0x08, + 0xaa, 0x0a, 0xa8, 0x9a, 0x40, 0xd7, 0xb7, 0x7a, 0x16, 0xef, 0x07, 0x5d, 0xd5, 0xa0, 0x8e, 0xd6, + 0xa3, 0x3d, 0xaa, 0x09, 0x86, 0x6e, 0x70, 0x22, 0x56, 0x62, 0x21, 0xbe, 0x62, 0xe6, 0xf5, 0xf6, + 0xd4, 0xa0, 0x34, 0x9f, 0x30, 0x1a, 0xf8, 0x06, 0x19, 0x8d, 0x66, 0xfd, 0xad, 0xe9, 0x98, 0xc0, + 0x3d, 0x23, 0x3e, 0xb3, 0xa8, 0x4b, 0xcc, 0x31, 0xd8, 0xfd, 0xe9, 0xb0, 0xb3, 0xb1, 0x2b, 0xaf, + 0x6f, 0x4d, 0xf6, 0xf6, 0x03, 0x97, 0x5b, 0xce, 0x78, 0x4c, 0xdb, 0x93, 0xdd, 0x03, 0x6e, 0xd9, + 0x9a, 0xe5, 0x72, 0xc6, 0xfd, 0x51, 0x48, 0xeb, 0xfb, 0x02, 0x28, 0xef, 0xfa, 0xd4, 0xdd, 0xa3, + 0x5d, 0x78, 0x0c, 0x2a, 0x0e, 0xe1, 0xd8, 0xc4, 0x1c, 0xd7, 0x95, 0x0d, 0x65, 0xb3, 0xd6, 0xde, + 0x54, 0xa7, 0xe6, 0x5c, 0x3d, 0xdb, 0x56, 0x1f, 0x77, 0x9f, 0x11, 0x83, 0x1f, 0x10, 0x8e, 0x75, + 0x78, 0x31, 0x68, 0xce, 0x85, 0x83, 0x26, 0xc8, 0x6c, 0x28, 0x65, 0x83, 0xc7, 0x60, 0x9e, 0x79, + 0xc4, 0xa8, 0x17, 0x04, 0xeb, 0xdb, 0xea, 0x8d, 0x2b, 0xa9, 0xca, 0xd8, 0x3a, 0x1e, 0x31, 0xf4, + 0x3b, 0xf2, 0x8c, 0xf9, 0x68, 0x85, 0x04, 0x23, 0xfc, 0x02, 0x94, 0x18, 0xc7, 0x3c, 0x60, 0xf5, + 0xa2, 0xe0, 0x7e, 0x70, 0x0b, 0x6e, 0x81, 0xd7, 0x97, 0x24, 0x7b, 0x29, 0x5e, 0x23, 0xc9, 0xdb, + 0xfa, 0x45, 0x01, 0x35, 0xe9, 0xb9, 0x6f, 0x31, 0x0e, 0x3f, 0x1b, 0xcb, 0x92, 0x76, 0x4d, 0x96, + 0x72, 0x5a, 0x50, 0x23, 0xb8, 0x48, 0xd6, 0x8a, 0x3c, 0xaa, 0x92, 0x58, 0x72, 0xa9, 0xfa, 0x18, + 0x2c, 0x58, 0x9c, 0x38, 0xac, 0x5e, 0xd8, 0x28, 0x6e, 0xd6, 0xda, 0xed, 0xd9, 0xef, 0xa3, 0x2f, + 0x4a, 0xfa, 0x85, 0x0f, 0x23, 0x22, 0x14, 0xf3, 0xb5, 0xbe, 0x29, 0xa6, 0xf7, 0x88, 0xf2, 0x07, + 0xef, 0x83, 0x0a, 0x33, 0xfa, 0xc4, 0x0c, 0x6c, 0x22, 0xee, 0x51, 0xcd, 0xc2, 0xea, 0x48, 0x3b, + 0x4a, 0x3d, 0xe0, 0x13, 0x70, 0x97, 0x71, 0xec, 0x73, 0xcb, 0xed, 0xbd, 0x4f, 0xb0, 0x69, 0x5b, + 0x2e, 0xe9, 0x10, 0x83, 0xba, 0x26, 0x13, 0x45, 0x2d, 0xea, 0xaf, 0x86, 0x83, 0xe6, 0xdd, 0xce, + 0x64, 0x17, 0x34, 0x0d, 0x0b, 0x9f, 0x82, 0x55, 0x83, 0xba, 0x46, 0xe0, 0xfb, 0xc4, 0x35, 0xce, + 0x0f, 0xa9, 0x6d, 0x19, 0xe7, 0xa2, 0x92, 0x55, 0x5d, 0x95, 0xd1, 0xac, 0xee, 0x8e, 0x3a, 0x5c, + 0x4d, 0x32, 0xa2, 0x71, 0x22, 0xf8, 0x1a, 0x28, 0xb3, 0x80, 0x79, 0xc4, 0x35, 0xeb, 0xf3, 0x1b, + 0xca, 0x66, 0x45, 0xaf, 0x85, 0x83, 0x66, 0xb9, 0x13, 0x9b, 0x50, 0xb2, 0x07, 0xbf, 0x04, 0xb5, + 0x67, 0xb4, 0x7b, 0x44, 0x1c, 0xcf, 0xc6, 0x9c, 0xd4, 0x17, 0x44, 0x51, 0x1f, 0xce, 0x90, 0xf8, + 0xbd, 0x0c, 0x2d, 0x84, 0xfa, 0x92, 0x0c, 0xbd, 0x96, 0xdb, 0x40, 0xf9, 0x33, 0x5a, 0xbf, 0x2b, + 0x60, 0x71, 0x48, 0x7e, 0xf0, 0x09, 0x28, 0x61, 0x83, 0x5b, 0x67, 0x51, 0x31, 0xa2, 0xc2, 0x6f, + 0xdd, 0xe4, 0xe9, 0x21, 0x72, 0x42, 0xa2, 0x0b, 0x93, 0x4c, 0xbd, 0x8f, 0x04, 0x09, 0x92, 0x64, + 0xd0, 0x01, 0x2b, 0x36, 0x66, 0x3c, 0xa9, 0xe8, 0x91, 0xe5, 0x10, 0x91, 0x8b, 0x5a, 0xfb, 0xcd, + 0x1b, 0xaa, 0x36, 0x82, 0xe8, 0x2f, 0x87, 0x83, 0xe6, 0xca, 0xfe, 0x08, 0x11, 0x1a, 0xa3, 0x6e, + 0x7d, 0x57, 0x00, 0xc5, 0x17, 0xdb, 0x4a, 0x8e, 0x86, 0x5a, 0x49, 0x7b, 0xb6, 0x2a, 0x4d, 0x6d, + 0x23, 0x4f, 0x47, 0xda, 0xc8, 0xce, 0x8c, 0xbc, 0xd7, 0xb7, 0x90, 0xdf, 0x8a, 0xe0, 0xce, 0x1e, + 0xed, 0xee, 0x52, 0xd7, 0xb4, 0xb8, 0x45, 0x5d, 0xb8, 0x03, 0xe6, 0xf9, 0xb9, 0x97, 0xbc, 0xbb, + 0x8d, 0x24, 0xa0, 0xa3, 0x73, 0x8f, 0x5c, 0x0d, 0x9a, 0x2b, 0x79, 0xdf, 0xc8, 0x86, 0x84, 0x37, + 0xfc, 0x28, 0x0d, 0xb2, 0x20, 0x70, 0xef, 0x0d, 0x1f, 0x77, 0x35, 0x68, 0x5e, 0x3b, 0x5d, 0xd4, + 0x94, 0x73, 0x38, 0x3c, 0xd8, 0x07, 0x8b, 0x51, 0x21, 0x0f, 0x7d, 0xda, 0x8d, 0x05, 0x52, 0x9c, + 0x5d, 0x20, 0x6b, 0x32, 0x96, 0xc5, 0xfd, 0x3c, 0x13, 0x1a, 0x26, 0x86, 0x5f, 0x01, 0x18, 0x19, + 0x8e, 0x7c, 0xec, 0xb2, 0xf8, 0x76, 0xb7, 0xd4, 0xe3, 0xba, 0x3c, 0x0e, 0xee, 0x8f, 0xd1, 0xa1, + 0x09, 0x47, 0xc0, 0xd7, 0x41, 0xc9, 0x27, 0x98, 0x51, 0x57, 0xbc, 0xee, 0x6a, 0x56, 0x29, 0x24, + 0xac, 0x48, 0xee, 0xc2, 0x7b, 0xa0, 0xec, 0x10, 0xc6, 0x70, 0x8f, 0xd4, 0x4b, 0xc2, 0x71, 0x59, + 0x3a, 0x96, 0x0f, 0x62, 0x33, 0x4a, 0xf6, 0x5b, 0x3f, 0x29, 0xa0, 0xfc, 0x1f, 0xcd, 0x84, 0xce, + 0xf0, 0x4c, 0x50, 0x67, 0x13, 0xe7, 0x94, 0x79, 0xf0, 0x43, 0x51, 0xc4, 0x2f, 0x66, 0xc1, 0x36, + 0xa8, 0x79, 0xd8, 0xc7, 0xb6, 0x4d, 0x6c, 0x8b, 0x39, 0xe2, 0x0a, 0x0b, 0xfa, 0x72, 0xd4, 0xc1, + 0x0e, 0x33, 0x33, 0xca, 0xfb, 0x44, 0x10, 0x83, 0x3a, 0x9e, 0x4d, 0xa2, 0x1c, 0xc7, 0x8a, 0x94, + 0x90, 0xdd, 0xcc, 0x8c, 0xf2, 0x3e, 0xf0, 0x31, 0x58, 0x8b, 0xbb, 0xd2, 0xe8, 0x04, 0x29, 0x8a, + 0x09, 0xf2, 0x4a, 0x38, 0x68, 0xae, 0x3d, 0x9a, 0xe4, 0x80, 0x26, 0xe3, 0xe0, 0xe7, 0xa0, 0xc2, + 0x88, 0x4d, 0x0c, 0x4e, 0x7d, 0x29, 0xa2, 0x9d, 0x9b, 0xa6, 0x1d, 0x77, 0x89, 0xdd, 0x91, 0x58, + 0xfd, 0x8e, 0x18, 0x7a, 0x72, 0x85, 0x52, 0x4e, 0xf8, 0x10, 0x2c, 0x39, 0xd8, 0x0d, 0x70, 0xea, + 0x29, 0xd4, 0x53, 0xd1, 0x61, 0x38, 0x68, 0x2e, 0x1d, 0x0c, 0xed, 0xa0, 0x11, 0x4f, 0xf8, 0x29, + 0xa8, 0xf0, 0x64, 0xa2, 0x94, 0x44, 0x6c, 0xff, 0xd0, 0xd1, 0x0f, 0xa9, 0x39, 0x34, 0x44, 0x52, + 0x41, 0xa4, 0x13, 0x24, 0x25, 0x6c, 0xfd, 0x58, 0x04, 0xd5, 0x6c, 0x74, 0x9c, 0x02, 0x60, 0x24, + 0x4f, 0x9b, 0xc9, 0xf1, 0xf1, 0xce, 0x6c, 0x1a, 0x49, 0x5b, 0x43, 0xd6, 0x7d, 0x53, 0x13, 0x43, + 0x39, 0x7a, 0x78, 0x0c, 0xaa, 0x62, 0x98, 0x8b, 0x97, 0x5b, 0x98, 0xfd, 0xe5, 0x2e, 0x86, 0x83, + 0x66, 0xb5, 0x93, 0x30, 0xa0, 0x8c, 0x0c, 0xf6, 0xc0, 0x52, 0xa6, 0x96, 0xdb, 0xf6, 0x21, 0x51, + 0x9a, 0xdd, 0x21, 0x1a, 0x34, 0x42, 0x1b, 0x35, 0x03, 0x39, 0x6a, 0xe7, 0x85, 0x6a, 0xa7, 0xcd, + 0x4e, 0x0d, 0x54, 0x59, 0x60, 0x18, 0x84, 0x98, 0xc4, 0x14, 0x95, 0x5f, 0xd0, 0x57, 0xa5, 0x6b, + 0xb5, 0x93, 0x6c, 0xa0, 0xcc, 0x27, 0x22, 0x3e, 0xc1, 0x96, 0x4d, 0x4c, 0x51, 0xf1, 0x1c, 0xf1, + 0x07, 0xc2, 0x8a, 0xe4, 0x6e, 0xeb, 0x57, 0x05, 0xe4, 0x7f, 0x0d, 0x5e, 0xe0, 0xb4, 0xec, 0xe7, + 0x54, 0x58, 0xf8, 0xd7, 0xff, 0x35, 0xd7, 0x49, 0xf2, 0x67, 0x05, 0x2c, 0x8f, 0xf8, 0xff, 0xdf, + 0xfe, 0x02, 0xf4, 0x37, 0x2e, 0x2e, 0x1b, 0x73, 0xcf, 0x2f, 0x1b, 0x73, 0x7f, 0x5c, 0x36, 0xe6, + 0xbe, 0x0e, 0x1b, 0xca, 0x45, 0xd8, 0x50, 0x9e, 0x87, 0x0d, 0xe5, 0xcf, 0xb0, 0xa1, 0x7c, 0xfb, + 0x57, 0x63, 0xee, 0x93, 0x4a, 0xc2, 0xf3, 0x77, 0x00, 0x00, 0x00, 0xff, 0xff, 0x63, 0x4c, 0xf3, + 0xee, 0xc9, 0x0e, 0x00, 0x00, } diff --git a/vendor/k8s.io/client-go/1.5/pkg/apis/batch/v2alpha1/register.go b/vendor/k8s.io/client-go/pkg/apis/batch/v2alpha1/register.go similarity index 77% rename from vendor/k8s.io/client-go/1.5/pkg/apis/batch/v2alpha1/register.go rename to vendor/k8s.io/client-go/pkg/apis/batch/v2alpha1/register.go index 4cf8e85a0..5bb82b5bb 100644 --- a/vendor/k8s.io/client-go/1.5/pkg/apis/batch/v2alpha1/register.go +++ b/vendor/k8s.io/client-go/pkg/apis/batch/v2alpha1/register.go @@ -17,10 +17,10 @@ limitations under the License. package v2alpha1 import ( - "k8s.io/client-go/1.5/pkg/api/unversioned" - "k8s.io/client-go/1.5/pkg/api/v1" - "k8s.io/client-go/1.5/pkg/runtime" - versionedwatch "k8s.io/client-go/1.5/pkg/watch/versioned" + "k8s.io/client-go/pkg/api/unversioned" + "k8s.io/client-go/pkg/api/v1" + "k8s.io/client-go/pkg/runtime" + versionedwatch "k8s.io/client-go/pkg/watch/versioned" ) // GroupName is the group name use in this package @@ -40,11 +40,13 @@ func addKnownTypes(scheme *runtime.Scheme) error { &Job{}, &JobList{}, &JobTemplate{}, - &ScheduledJob{}, - &ScheduledJobList{}, + &CronJob{}, + &CronJobList{}, &v1.ListOptions{}, &v1.DeleteOptions{}, ) + scheme.AddKnownTypeWithName(SchemeGroupVersion.WithKind("ScheduledJob"), &CronJob{}) + scheme.AddKnownTypeWithName(SchemeGroupVersion.WithKind("ScheduledJobList"), &CronJobList{}) versionedwatch.AddToGroupVersion(scheme, SchemeGroupVersion) return nil } diff --git a/vendor/k8s.io/client-go/1.5/pkg/apis/batch/v2alpha1/types.generated.go b/vendor/k8s.io/client-go/pkg/apis/batch/v2alpha1/types.generated.go similarity index 63% rename from vendor/k8s.io/client-go/1.5/pkg/apis/batch/v2alpha1/types.generated.go rename to vendor/k8s.io/client-go/pkg/apis/batch/v2alpha1/types.generated.go index e0e4ad058..f2fa2a6b5 100644 --- a/vendor/k8s.io/client-go/1.5/pkg/apis/batch/v2alpha1/types.generated.go +++ b/vendor/k8s.io/client-go/pkg/apis/batch/v2alpha1/types.generated.go @@ -25,11 +25,11 @@ import ( "errors" "fmt" codec1978 "github.com/ugorji/go/codec" - pkg4_resource "k8s.io/client-go/1.5/pkg/api/resource" - pkg1_unversioned "k8s.io/client-go/1.5/pkg/api/unversioned" - pkg2_v1 "k8s.io/client-go/1.5/pkg/api/v1" - pkg3_types "k8s.io/client-go/1.5/pkg/types" - pkg5_intstr "k8s.io/client-go/1.5/pkg/util/intstr" + pkg4_resource "k8s.io/client-go/pkg/api/resource" + pkg1_unversioned "k8s.io/client-go/pkg/api/unversioned" + pkg2_v1 "k8s.io/client-go/pkg/api/v1" + pkg3_types "k8s.io/client-go/pkg/types" + pkg5_intstr "k8s.io/client-go/pkg/util/intstr" "reflect" "runtime" time "time" @@ -1414,7 +1414,13 @@ func (x *JobSpec) CodecEncodeSelf(e *codec1978.Encoder) { if x.Selector == nil { r.EncodeNil() } else { - x.Selector.CodecEncodeSelf(e) + yym124 := z.EncBinary() + _ = yym124 + if false { + } else if z.HasExtensions() && z.EncExt(x.Selector) { + } else { + z.EncFallback(x.Selector) + } } } else { r.EncodeNil() @@ -1427,7 +1433,13 @@ func (x *JobSpec) CodecEncodeSelf(e *codec1978.Encoder) { if x.Selector == nil { r.EncodeNil() } else { - x.Selector.CodecEncodeSelf(e) + yym125 := z.EncBinary() + _ = yym125 + if false { + } else if z.HasExtensions() && z.EncExt(x.Selector) { + } else { + z.EncFallback(x.Selector) + } } } } @@ -1437,12 +1449,12 @@ func (x *JobSpec) CodecEncodeSelf(e *codec1978.Encoder) { if x.ManualSelector == nil { r.EncodeNil() } else { - yy125 := *x.ManualSelector - yym126 := z.EncBinary() - _ = yym126 + yy127 := *x.ManualSelector + yym128 := z.EncBinary() + _ = yym128 if false { } else { - r.EncodeBool(bool(yy125)) + r.EncodeBool(bool(yy127)) } } } else { @@ -1456,26 +1468,26 @@ func (x *JobSpec) CodecEncodeSelf(e *codec1978.Encoder) { if x.ManualSelector == nil { r.EncodeNil() } else { - yy127 := *x.ManualSelector - yym128 := z.EncBinary() - _ = yym128 + yy129 := *x.ManualSelector + yym130 := z.EncBinary() + _ = yym130 if false { } else { - r.EncodeBool(bool(yy127)) + r.EncodeBool(bool(yy129)) } } } } if yyr107 || yy2arr107 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy130 := &x.Template - yy130.CodecEncodeSelf(e) + yy132 := &x.Template + yy132.CodecEncodeSelf(e) } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("template")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy131 := &x.Template - yy131.CodecEncodeSelf(e) + yy133 := &x.Template + yy133.CodecEncodeSelf(e) } if yyr107 || yy2arr107 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) @@ -1490,25 +1502,25 @@ func (x *JobSpec) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym132 := z.DecBinary() - _ = yym132 + yym134 := z.DecBinary() + _ = yym134 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct133 := r.ContainerType() - if yyct133 == codecSelferValueTypeMap1234 { - yyl133 := r.ReadMapStart() - if yyl133 == 0 { + yyct135 := r.ContainerType() + if yyct135 == codecSelferValueTypeMap1234 { + yyl135 := r.ReadMapStart() + if yyl135 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl133, d) + x.codecDecodeSelfFromMap(yyl135, d) } - } else if yyct133 == codecSelferValueTypeArray1234 { - yyl133 := r.ReadArrayStart() - if yyl133 == 0 { + } else if yyct135 == codecSelferValueTypeArray1234 { + yyl135 := r.ReadArrayStart() + if yyl135 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl133, d) + x.codecDecodeSelfFromArray(yyl135, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -1520,12 +1532,12 @@ func (x *JobSpec) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys134Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys134Slc - var yyhl134 bool = l >= 0 - for yyj134 := 0; ; yyj134++ { - if yyhl134 { - if yyj134 >= 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 { @@ -1534,10 +1546,10 @@ func (x *JobSpec) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys134Slc = r.DecodeBytes(yys134Slc, true, true) - yys134 := string(yys134Slc) + yys136Slc = r.DecodeBytes(yys136Slc, true, true) + yys136 := string(yys136Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys134 { + switch yys136 { case "parallelism": if r.TryDecodeAsNil() { if x.Parallelism != nil { @@ -1547,8 +1559,8 @@ func (x *JobSpec) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { if x.Parallelism == nil { x.Parallelism = new(int32) } - yym136 := z.DecBinary() - _ = yym136 + yym138 := z.DecBinary() + _ = yym138 if false { } else { *((*int32)(x.Parallelism)) = int32(r.DecodeInt(32)) @@ -1563,8 +1575,8 @@ func (x *JobSpec) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { if x.Completions == nil { x.Completions = new(int32) } - yym138 := z.DecBinary() - _ = yym138 + yym140 := z.DecBinary() + _ = yym140 if false { } else { *((*int32)(x.Completions)) = int32(r.DecodeInt(32)) @@ -1579,8 +1591,8 @@ func (x *JobSpec) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { if x.ActiveDeadlineSeconds == nil { x.ActiveDeadlineSeconds = new(int64) } - yym140 := z.DecBinary() - _ = yym140 + yym142 := z.DecBinary() + _ = yym142 if false { } else { *((*int64)(x.ActiveDeadlineSeconds)) = int64(r.DecodeInt(64)) @@ -1593,9 +1605,15 @@ func (x *JobSpec) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } else { if x.Selector == nil { - x.Selector = new(LabelSelector) + 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) } - x.Selector.CodecDecodeSelf(d) } case "manualSelector": if r.TryDecodeAsNil() { @@ -1606,8 +1624,8 @@ func (x *JobSpec) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { if x.ManualSelector == nil { x.ManualSelector = new(bool) } - yym143 := z.DecBinary() - _ = yym143 + yym146 := z.DecBinary() + _ = yym146 if false { } else { *((*bool)(x.ManualSelector)) = r.DecodeBool() @@ -1617,13 +1635,13 @@ func (x *JobSpec) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.Template = pkg2_v1.PodTemplateSpec{} } else { - yyv144 := &x.Template - yyv144.CodecDecodeSelf(d) + yyv147 := &x.Template + yyv147.CodecDecodeSelf(d) } default: - z.DecStructFieldNotFound(-1, yys134) - } // end switch yys134 - } // end for yyj134 + z.DecStructFieldNotFound(-1, yys136) + } // end switch yys136 + } // end for yyj136 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -1631,16 +1649,16 @@ func (x *JobSpec) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj145 int - var yyb145 bool - var yyhl145 bool = l >= 0 - yyj145++ - if yyhl145 { - yyb145 = yyj145 > l + var yyj148 int + var yyb148 bool + var yyhl148 bool = l >= 0 + yyj148++ + if yyhl148 { + yyb148 = yyj148 > l } else { - yyb145 = r.CheckBreak() + yyb148 = r.CheckBreak() } - if yyb145 { + if yyb148 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -1653,20 +1671,20 @@ func (x *JobSpec) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if x.Parallelism == nil { x.Parallelism = new(int32) } - yym147 := z.DecBinary() - _ = yym147 + yym150 := z.DecBinary() + _ = yym150 if false { } else { *((*int32)(x.Parallelism)) = int32(r.DecodeInt(32)) } } - yyj145++ - if yyhl145 { - yyb145 = yyj145 > l + yyj148++ + if yyhl148 { + yyb148 = yyj148 > l } else { - yyb145 = r.CheckBreak() + yyb148 = r.CheckBreak() } - if yyb145 { + if yyb148 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -1679,20 +1697,20 @@ func (x *JobSpec) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if x.Completions == nil { x.Completions = new(int32) } - yym149 := z.DecBinary() - _ = yym149 + yym152 := z.DecBinary() + _ = yym152 if false { } else { *((*int32)(x.Completions)) = int32(r.DecodeInt(32)) } } - yyj145++ - if yyhl145 { - yyb145 = yyj145 > l + yyj148++ + if yyhl148 { + yyb148 = yyj148 > l } else { - yyb145 = r.CheckBreak() + yyb148 = r.CheckBreak() } - if yyb145 { + if yyb148 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -1705,20 +1723,20 @@ func (x *JobSpec) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if x.ActiveDeadlineSeconds == nil { x.ActiveDeadlineSeconds = new(int64) } - yym151 := z.DecBinary() - _ = yym151 + yym154 := z.DecBinary() + _ = yym154 if false { } else { *((*int64)(x.ActiveDeadlineSeconds)) = int64(r.DecodeInt(64)) } } - yyj145++ - if yyhl145 { - yyb145 = yyj145 > l + yyj148++ + if yyhl148 { + yyb148 = yyj148 > l } else { - yyb145 = r.CheckBreak() + yyb148 = r.CheckBreak() } - if yyb145 { + if yyb148 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -1729,17 +1747,23 @@ func (x *JobSpec) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } } else { if x.Selector == nil { - x.Selector = new(LabelSelector) + 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) } - x.Selector.CodecDecodeSelf(d) } - yyj145++ - if yyhl145 { - yyb145 = yyj145 > l + yyj148++ + if yyhl148 { + yyb148 = yyj148 > l } else { - yyb145 = r.CheckBreak() + yyb148 = r.CheckBreak() } - if yyb145 { + if yyb148 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -1752,20 +1776,20 @@ func (x *JobSpec) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if x.ManualSelector == nil { x.ManualSelector = new(bool) } - yym154 := z.DecBinary() - _ = yym154 + yym158 := z.DecBinary() + _ = yym158 if false { } else { *((*bool)(x.ManualSelector)) = r.DecodeBool() } } - yyj145++ - if yyhl145 { - yyb145 = yyj145 > l + yyj148++ + if yyhl148 { + yyb148 = yyj148 > l } else { - yyb145 = r.CheckBreak() + yyb148 = r.CheckBreak() } - if yyb145 { + if yyb148 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -1773,21 +1797,21 @@ func (x *JobSpec) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.Template = pkg2_v1.PodTemplateSpec{} } else { - yyv155 := &x.Template - yyv155.CodecDecodeSelf(d) + yyv159 := &x.Template + yyv159.CodecDecodeSelf(d) } for { - yyj145++ - if yyhl145 { - yyb145 = yyj145 > l + yyj148++ + if yyhl148 { + yyb148 = yyj148 > l } else { - yyb145 = r.CheckBreak() + yyb148 = r.CheckBreak() } - if yyb145 { + if yyb148 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj145-1, "") + z.DecStructFieldNotFound(yyj148-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -1799,43 +1823,43 @@ func (x *JobStatus) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym156 := z.EncBinary() - _ = yym156 + yym160 := z.EncBinary() + _ = yym160 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - 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 { + 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 { - yynn157 = 0 - for _, b := range yyq157 { + yynn161 = 0 + for _, b := range yyq161 { if b { - yynn157++ + yynn161++ } } - r.EncodeMapStart(yynn157) - yynn157 = 0 + r.EncodeMapStart(yynn161) + yynn161 = 0 } - if yyr157 || yy2arr157 { + if yyr161 || yy2arr161 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq157[0] { + if yyq161[0] { if x.Conditions == nil { r.EncodeNil() } else { - yym159 := z.EncBinary() - _ = yym159 + yym163 := z.EncBinary() + _ = yym163 if false { } else { h.encSliceJobCondition(([]JobCondition)(x.Conditions), e) @@ -1845,15 +1869,15 @@ func (x *JobStatus) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq157[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 { - yym160 := z.EncBinary() - _ = yym160 + yym164 := z.EncBinary() + _ = yym164 if false { } else { h.encSliceJobCondition(([]JobCondition)(x.Conditions), e) @@ -1861,19 +1885,19 @@ func (x *JobStatus) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr157 || yy2arr157 { + if yyr161 || yy2arr161 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq157[1] { + if yyq161[1] { if x.StartTime == nil { r.EncodeNil() } else { - yym162 := z.EncBinary() - _ = yym162 + yym166 := z.EncBinary() + _ = yym166 if false { } else if z.HasExtensions() && z.EncExt(x.StartTime) { - } else if yym162 { + } else if yym166 { z.EncBinaryMarshal(x.StartTime) - } else if !yym162 && z.IsJSONHandle() { + } else if !yym166 && z.IsJSONHandle() { z.EncJSONMarshal(x.StartTime) } else { z.EncFallback(x.StartTime) @@ -1883,20 +1907,20 @@ func (x *JobStatus) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq157[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 { - yym163 := z.EncBinary() - _ = yym163 + yym167 := z.EncBinary() + _ = yym167 if false { } else if z.HasExtensions() && z.EncExt(x.StartTime) { - } else if yym163 { + } else if yym167 { z.EncBinaryMarshal(x.StartTime) - } else if !yym163 && z.IsJSONHandle() { + } else if !yym167 && z.IsJSONHandle() { z.EncJSONMarshal(x.StartTime) } else { z.EncFallback(x.StartTime) @@ -1904,19 +1928,19 @@ func (x *JobStatus) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr157 || yy2arr157 { + if yyr161 || yy2arr161 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq157[2] { + if yyq161[2] { if x.CompletionTime == nil { r.EncodeNil() } else { - yym165 := z.EncBinary() - _ = yym165 + yym169 := z.EncBinary() + _ = yym169 if false { } else if z.HasExtensions() && z.EncExt(x.CompletionTime) { - } else if yym165 { + } else if yym169 { z.EncBinaryMarshal(x.CompletionTime) - } else if !yym165 && z.IsJSONHandle() { + } else if !yym169 && z.IsJSONHandle() { z.EncJSONMarshal(x.CompletionTime) } else { z.EncFallback(x.CompletionTime) @@ -1926,20 +1950,20 @@ func (x *JobStatus) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq157[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 { - yym166 := z.EncBinary() - _ = yym166 + yym170 := z.EncBinary() + _ = yym170 if false { } else if z.HasExtensions() && z.EncExt(x.CompletionTime) { - } else if yym166 { + } else if yym170 { z.EncBinaryMarshal(x.CompletionTime) - } else if !yym166 && z.IsJSONHandle() { + } else if !yym170 && z.IsJSONHandle() { z.EncJSONMarshal(x.CompletionTime) } else { z.EncFallback(x.CompletionTime) @@ -1947,61 +1971,61 @@ func (x *JobStatus) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr157 || yy2arr157 { + if yyr161 || yy2arr161 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq157[3] { - yym168 := z.EncBinary() - _ = yym168 - if false { - } else { - r.EncodeInt(int64(x.Active)) - } - } else { - r.EncodeInt(0) - } - } else { - if yyq157[3] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("active")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym169 := z.EncBinary() - _ = yym169 - if false { - } else { - r.EncodeInt(int64(x.Active)) - } - } - } - if yyr157 || yy2arr157 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq157[4] { - yym171 := z.EncBinary() - _ = yym171 - if false { - } else { - r.EncodeInt(int64(x.Succeeded)) - } - } else { - r.EncodeInt(0) - } - } else { - if yyq157[4] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("succeeded")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) + 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 yyr157 || yy2arr157 { + if yyr161 || yy2arr161 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq157[5] { - yym174 := z.EncBinary() - _ = yym174 + if yyq161[5] { + yym178 := z.EncBinary() + _ = yym178 if false { } else { r.EncodeInt(int64(x.Failed)) @@ -2010,19 +2034,19 @@ func (x *JobStatus) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeInt(0) } } else { - if yyq157[5] { + if yyq161[5] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("failed")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym175 := z.EncBinary() - _ = yym175 + yym179 := z.EncBinary() + _ = yym179 if false { } else { r.EncodeInt(int64(x.Failed)) } } } - if yyr157 || yy2arr157 { + if yyr161 || yy2arr161 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -2035,25 +2059,25 @@ func (x *JobStatus) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym176 := z.DecBinary() - _ = yym176 + yym180 := z.DecBinary() + _ = yym180 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct177 := r.ContainerType() - if yyct177 == codecSelferValueTypeMap1234 { - yyl177 := r.ReadMapStart() - if yyl177 == 0 { + yyct181 := r.ContainerType() + if yyct181 == codecSelferValueTypeMap1234 { + yyl181 := r.ReadMapStart() + if yyl181 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl177, d) + x.codecDecodeSelfFromMap(yyl181, d) } - } else if yyct177 == codecSelferValueTypeArray1234 { - yyl177 := r.ReadArrayStart() - if yyl177 == 0 { + } else if yyct181 == codecSelferValueTypeArray1234 { + yyl181 := r.ReadArrayStart() + if yyl181 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl177, d) + x.codecDecodeSelfFromArray(yyl181, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -2065,12 +2089,12 @@ func (x *JobStatus) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys178Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys178Slc - var yyhl178 bool = l >= 0 - for yyj178 := 0; ; yyj178++ { - if yyhl178 { - if yyj178 >= 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 { @@ -2079,20 +2103,20 @@ func (x *JobStatus) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys178Slc = r.DecodeBytes(yys178Slc, true, true) - yys178 := string(yys178Slc) + yys182Slc = r.DecodeBytes(yys182Slc, true, true) + yys182 := string(yys182Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys178 { + switch yys182 { case "conditions": if r.TryDecodeAsNil() { x.Conditions = nil } else { - yyv179 := &x.Conditions - yym180 := z.DecBinary() - _ = yym180 + yyv183 := &x.Conditions + yym184 := z.DecBinary() + _ = yym184 if false { } else { - h.decSliceJobCondition((*[]JobCondition)(yyv179), d) + h.decSliceJobCondition((*[]JobCondition)(yyv183), d) } } case "startTime": @@ -2104,13 +2128,13 @@ func (x *JobStatus) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { if x.StartTime == nil { x.StartTime = new(pkg1_unversioned.Time) } - yym182 := z.DecBinary() - _ = yym182 + yym186 := z.DecBinary() + _ = yym186 if false { } else if z.HasExtensions() && z.DecExt(x.StartTime) { - } else if yym182 { + } else if yym186 { z.DecBinaryUnmarshal(x.StartTime) - } else if !yym182 && z.IsJSONHandle() { + } else if !yym186 && z.IsJSONHandle() { z.DecJSONUnmarshal(x.StartTime) } else { z.DecFallback(x.StartTime, false) @@ -2125,13 +2149,13 @@ func (x *JobStatus) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { if x.CompletionTime == nil { x.CompletionTime = new(pkg1_unversioned.Time) } - yym184 := z.DecBinary() - _ = yym184 + yym188 := z.DecBinary() + _ = yym188 if false { } else if z.HasExtensions() && z.DecExt(x.CompletionTime) { - } else if yym184 { + } else if yym188 { z.DecBinaryUnmarshal(x.CompletionTime) - } else if !yym184 && z.IsJSONHandle() { + } else if !yym188 && z.IsJSONHandle() { z.DecJSONUnmarshal(x.CompletionTime) } else { z.DecFallback(x.CompletionTime, false) @@ -2156,9 +2180,9 @@ func (x *JobStatus) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { x.Failed = int32(r.DecodeInt(32)) } default: - z.DecStructFieldNotFound(-1, yys178) - } // end switch yys178 - } // end for yyj178 + z.DecStructFieldNotFound(-1, yys182) + } // end switch yys182 + } // end for yyj182 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -2166,16 +2190,16 @@ func (x *JobStatus) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj188 int - var yyb188 bool - var yyhl188 bool = l >= 0 - yyj188++ - if yyhl188 { - yyb188 = yyj188 > l + var yyj192 int + var yyb192 bool + var yyhl192 bool = l >= 0 + yyj192++ + if yyhl192 { + yyb192 = yyj192 > l } else { - yyb188 = r.CheckBreak() + yyb192 = r.CheckBreak() } - if yyb188 { + if yyb192 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -2183,21 +2207,21 @@ func (x *JobStatus) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.Conditions = nil } else { - yyv189 := &x.Conditions - yym190 := z.DecBinary() - _ = yym190 + yyv193 := &x.Conditions + yym194 := z.DecBinary() + _ = yym194 if false { } else { - h.decSliceJobCondition((*[]JobCondition)(yyv189), d) + h.decSliceJobCondition((*[]JobCondition)(yyv193), d) } } - yyj188++ - if yyhl188 { - yyb188 = yyj188 > l + yyj192++ + if yyhl192 { + yyb192 = yyj192 > l } else { - yyb188 = r.CheckBreak() + yyb192 = r.CheckBreak() } - if yyb188 { + if yyb192 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -2210,25 +2234,25 @@ func (x *JobStatus) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if x.StartTime == nil { x.StartTime = new(pkg1_unversioned.Time) } - yym192 := z.DecBinary() - _ = yym192 + yym196 := z.DecBinary() + _ = yym196 if false { } else if z.HasExtensions() && z.DecExt(x.StartTime) { - } else if yym192 { + } else if yym196 { z.DecBinaryUnmarshal(x.StartTime) - } else if !yym192 && z.IsJSONHandle() { + } else if !yym196 && z.IsJSONHandle() { z.DecJSONUnmarshal(x.StartTime) } else { z.DecFallback(x.StartTime, false) } } - yyj188++ - if yyhl188 { - yyb188 = yyj188 > l + yyj192++ + if yyhl192 { + yyb192 = yyj192 > l } else { - yyb188 = r.CheckBreak() + yyb192 = r.CheckBreak() } - if yyb188 { + if yyb192 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -2241,25 +2265,25 @@ func (x *JobStatus) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if x.CompletionTime == nil { x.CompletionTime = new(pkg1_unversioned.Time) } - yym194 := z.DecBinary() - _ = yym194 + yym198 := z.DecBinary() + _ = yym198 if false { } else if z.HasExtensions() && z.DecExt(x.CompletionTime) { - } else if yym194 { + } else if yym198 { z.DecBinaryUnmarshal(x.CompletionTime) - } else if !yym194 && z.IsJSONHandle() { + } else if !yym198 && z.IsJSONHandle() { z.DecJSONUnmarshal(x.CompletionTime) } else { z.DecFallback(x.CompletionTime, false) } } - yyj188++ - if yyhl188 { - yyb188 = yyj188 > l + yyj192++ + if yyhl192 { + yyb192 = yyj192 > l } else { - yyb188 = r.CheckBreak() + yyb192 = r.CheckBreak() } - if yyb188 { + if yyb192 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -2269,13 +2293,13 @@ func (x *JobStatus) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.Active = int32(r.DecodeInt(32)) } - yyj188++ - if yyhl188 { - yyb188 = yyj188 > l + yyj192++ + if yyhl192 { + yyb192 = yyj192 > l } else { - yyb188 = r.CheckBreak() + yyb192 = r.CheckBreak() } - if yyb188 { + if yyb192 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -2285,13 +2309,13 @@ func (x *JobStatus) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.Succeeded = int32(r.DecodeInt(32)) } - yyj188++ - if yyhl188 { - yyb188 = yyj188 > l + yyj192++ + if yyhl192 { + yyb192 = yyj192 > l } else { - yyb188 = r.CheckBreak() + yyb192 = r.CheckBreak() } - if yyb188 { + if yyb192 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -2302,17 +2326,17 @@ func (x *JobStatus) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { x.Failed = int32(r.DecodeInt(32)) } for { - yyj188++ - if yyhl188 { - yyb188 = yyj188 > l + yyj192++ + if yyhl192 { + yyb192 = yyj192 > l } else { - yyb188 = r.CheckBreak() + yyb192 = r.CheckBreak() } - if yyb188 { + if yyb192 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj188-1, "") + z.DecStructFieldNotFound(yyj192-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -2321,8 +2345,8 @@ func (x JobConditionType) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r - yym198 := z.EncBinary() - _ = yym198 + yym202 := z.EncBinary() + _ = yym202 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { @@ -2334,8 +2358,8 @@ func (x *JobConditionType) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym199 := z.DecBinary() - _ = yym199 + yym203 := z.DecBinary() + _ = yym203 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { @@ -2350,34 +2374,34 @@ func (x *JobCondition) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym200 := z.EncBinary() - _ = yym200 + yym204 := z.EncBinary() + _ = yym204 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - 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 { + 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 { - yynn201 = 2 - for _, b := range yyq201 { + yynn205 = 2 + for _, b := range yyq205 { if b { - yynn201++ + yynn205++ } } - r.EncodeMapStart(yynn201) - yynn201 = 0 + r.EncodeMapStart(yynn205) + yynn205 = 0 } - if yyr201 || yy2arr201 { + if yyr205 || yy2arr205 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) x.Type.CodecEncodeSelf(e) } else { @@ -2386,10 +2410,10 @@ func (x *JobCondition) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapValue1234) x.Type.CodecEncodeSelf(e) } - if yyr201 || yy2arr201 { + if yyr205 || yy2arr205 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym204 := z.EncBinary() - _ = yym204 + yym208 := z.EncBinary() + _ = yym208 if false { } else if z.HasExtensions() && z.EncExt(x.Status) { } else { @@ -2399,139 +2423,139 @@ func (x *JobCondition) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("status")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym205 := z.EncBinary() - _ = yym205 + yym209 := z.EncBinary() + _ = yym209 if false { } else if z.HasExtensions() && z.EncExt(x.Status) { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Status)) } } - if yyr201 || yy2arr201 { + if yyr205 || yy2arr205 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq201[2] { - yy207 := &x.LastProbeTime - yym208 := z.EncBinary() - _ = yym208 + if yyq205[2] { + yy211 := &x.LastProbeTime + yym212 := z.EncBinary() + _ = yym212 if false { - } else if z.HasExtensions() && z.EncExt(yy207) { - } else if yym208 { - z.EncBinaryMarshal(yy207) - } else if !yym208 && z.IsJSONHandle() { - z.EncJSONMarshal(yy207) + } else if z.HasExtensions() && z.EncExt(yy211) { + } else if yym212 { + z.EncBinaryMarshal(yy211) + } else if !yym212 && z.IsJSONHandle() { + z.EncJSONMarshal(yy211) } else { - z.EncFallback(yy207) + z.EncFallback(yy211) } } else { r.EncodeNil() } } else { - if yyq201[2] { + if yyq205[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("lastProbeTime")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy209 := &x.LastProbeTime - yym210 := z.EncBinary() - _ = yym210 + yy213 := &x.LastProbeTime + yym214 := z.EncBinary() + _ = yym214 if false { - } else if z.HasExtensions() && z.EncExt(yy209) { - } else if yym210 { - z.EncBinaryMarshal(yy209) - } else if !yym210 && z.IsJSONHandle() { - z.EncJSONMarshal(yy209) + } else if z.HasExtensions() && z.EncExt(yy213) { + } else if yym214 { + z.EncBinaryMarshal(yy213) + } else if !yym214 && z.IsJSONHandle() { + z.EncJSONMarshal(yy213) } else { - z.EncFallback(yy209) + z.EncFallback(yy213) } } } - if yyr201 || yy2arr201 { + if yyr205 || yy2arr205 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq201[3] { - yy212 := &x.LastTransitionTime - yym213 := z.EncBinary() - _ = yym213 + if yyq205[3] { + yy216 := &x.LastTransitionTime + yym217 := z.EncBinary() + _ = yym217 if false { - } else if z.HasExtensions() && z.EncExt(yy212) { - } else if yym213 { - z.EncBinaryMarshal(yy212) - } else if !yym213 && z.IsJSONHandle() { - z.EncJSONMarshal(yy212) + } else if z.HasExtensions() && z.EncExt(yy216) { + } else if yym217 { + z.EncBinaryMarshal(yy216) + } else if !yym217 && z.IsJSONHandle() { + z.EncJSONMarshal(yy216) } else { - z.EncFallback(yy212) + z.EncFallback(yy216) } } else { r.EncodeNil() } } else { - if yyq201[3] { + if yyq205[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("lastTransitionTime")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy214 := &x.LastTransitionTime - yym215 := z.EncBinary() - _ = yym215 + yy218 := &x.LastTransitionTime + yym219 := z.EncBinary() + _ = yym219 if false { - } else if z.HasExtensions() && z.EncExt(yy214) { - } else if yym215 { - z.EncBinaryMarshal(yy214) - } else if !yym215 && z.IsJSONHandle() { - z.EncJSONMarshal(yy214) + } else if z.HasExtensions() && z.EncExt(yy218) { + } else if yym219 { + z.EncBinaryMarshal(yy218) + } else if !yym219 && z.IsJSONHandle() { + z.EncJSONMarshal(yy218) } else { - z.EncFallback(yy214) + z.EncFallback(yy218) } } } - if yyr201 || yy2arr201 { + if yyr205 || yy2arr205 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq201[4] { - yym217 := z.EncBinary() - _ = yym217 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Reason)) - } - } else { - r.EncodeString(codecSelferC_UTF81234, "") - } - } else { - if yyq201[4] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("reason")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym218 := z.EncBinary() - _ = yym218 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Reason)) - } - } - } - if yyr201 || yy2arr201 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq201[5] { - yym220 := z.EncBinary() - _ = yym220 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Message)) - } - } else { - r.EncodeString(codecSelferC_UTF81234, "") - } - } else { - if yyq201[5] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("message")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) + 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 yyr201 || yy2arr201 { + if yyr205 || yy2arr205 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -2544,25 +2568,25 @@ func (x *JobCondition) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym222 := z.DecBinary() - _ = yym222 + yym226 := z.DecBinary() + _ = yym226 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct223 := r.ContainerType() - if yyct223 == codecSelferValueTypeMap1234 { - yyl223 := r.ReadMapStart() - if yyl223 == 0 { + yyct227 := r.ContainerType() + if yyct227 == codecSelferValueTypeMap1234 { + yyl227 := r.ReadMapStart() + if yyl227 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl223, d) + x.codecDecodeSelfFromMap(yyl227, d) } - } else if yyct223 == codecSelferValueTypeArray1234 { - yyl223 := r.ReadArrayStart() - if yyl223 == 0 { + } else if yyct227 == codecSelferValueTypeArray1234 { + yyl227 := r.ReadArrayStart() + if yyl227 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl223, d) + x.codecDecodeSelfFromArray(yyl227, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -2574,12 +2598,12 @@ func (x *JobCondition) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys224Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys224Slc - var yyhl224 bool = l >= 0 - for yyj224 := 0; ; yyj224++ { - if yyhl224 { - if yyj224 >= 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 { @@ -2588,10 +2612,10 @@ func (x *JobCondition) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys224Slc = r.DecodeBytes(yys224Slc, true, true) - yys224 := string(yys224Slc) + yys228Slc = r.DecodeBytes(yys228Slc, true, true) + yys228 := string(yys228Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys224 { + switch yys228 { case "type": if r.TryDecodeAsNil() { x.Type = "" @@ -2608,34 +2632,34 @@ func (x *JobCondition) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.LastProbeTime = pkg1_unversioned.Time{} } else { - yyv227 := &x.LastProbeTime - yym228 := z.DecBinary() - _ = yym228 + yyv231 := &x.LastProbeTime + yym232 := z.DecBinary() + _ = yym232 if false { - } else if z.HasExtensions() && z.DecExt(yyv227) { - } else if yym228 { - z.DecBinaryUnmarshal(yyv227) - } else if !yym228 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv227) + } else if z.HasExtensions() && z.DecExt(yyv231) { + } else if yym232 { + z.DecBinaryUnmarshal(yyv231) + } else if !yym232 && z.IsJSONHandle() { + z.DecJSONUnmarshal(yyv231) } else { - z.DecFallback(yyv227, false) + z.DecFallback(yyv231, false) } } case "lastTransitionTime": if r.TryDecodeAsNil() { x.LastTransitionTime = pkg1_unversioned.Time{} } else { - yyv229 := &x.LastTransitionTime - yym230 := z.DecBinary() - _ = yym230 + yyv233 := &x.LastTransitionTime + yym234 := z.DecBinary() + _ = yym234 if false { - } else if z.HasExtensions() && z.DecExt(yyv229) { - } else if yym230 { - z.DecBinaryUnmarshal(yyv229) - } else if !yym230 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv229) + } else if z.HasExtensions() && z.DecExt(yyv233) { + } else if yym234 { + z.DecBinaryUnmarshal(yyv233) + } else if !yym234 && z.IsJSONHandle() { + z.DecJSONUnmarshal(yyv233) } else { - z.DecFallback(yyv229, false) + z.DecFallback(yyv233, false) } } case "reason": @@ -2651,9 +2675,9 @@ func (x *JobCondition) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { x.Message = string(r.DecodeString()) } default: - z.DecStructFieldNotFound(-1, yys224) - } // end switch yys224 - } // end for yyj224 + z.DecStructFieldNotFound(-1, yys228) + } // end switch yys228 + } // end for yyj228 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -2661,16 +2685,16 @@ func (x *JobCondition) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj233 int - var yyb233 bool - var yyhl233 bool = l >= 0 - yyj233++ - if yyhl233 { - yyb233 = yyj233 > l + var yyj237 int + var yyb237 bool + var yyhl237 bool = l >= 0 + yyj237++ + if yyhl237 { + yyb237 = yyj237 > l } else { - yyb233 = r.CheckBreak() + yyb237 = r.CheckBreak() } - if yyb233 { + if yyb237 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -2680,13 +2704,13 @@ func (x *JobCondition) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.Type = JobConditionType(r.DecodeString()) } - yyj233++ - if yyhl233 { - yyb233 = yyj233 > l + yyj237++ + if yyhl237 { + yyb237 = yyj237 > l } else { - yyb233 = r.CheckBreak() + yyb237 = r.CheckBreak() } - if yyb233 { + if yyb237 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -2696,13 +2720,13 @@ func (x *JobCondition) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.Status = pkg2_v1.ConditionStatus(r.DecodeString()) } - yyj233++ - if yyhl233 { - yyb233 = yyj233 > l + yyj237++ + if yyhl237 { + yyb237 = yyj237 > l } else { - yyb233 = r.CheckBreak() + yyb237 = r.CheckBreak() } - if yyb233 { + if yyb237 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -2710,26 +2734,26 @@ func (x *JobCondition) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.LastProbeTime = pkg1_unversioned.Time{} } else { - yyv236 := &x.LastProbeTime - yym237 := z.DecBinary() - _ = yym237 + yyv240 := &x.LastProbeTime + yym241 := z.DecBinary() + _ = yym241 if false { - } else if z.HasExtensions() && z.DecExt(yyv236) { - } else if yym237 { - z.DecBinaryUnmarshal(yyv236) - } else if !yym237 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv236) + } else if z.HasExtensions() && z.DecExt(yyv240) { + } else if yym241 { + z.DecBinaryUnmarshal(yyv240) + } else if !yym241 && z.IsJSONHandle() { + z.DecJSONUnmarshal(yyv240) } else { - z.DecFallback(yyv236, false) + z.DecFallback(yyv240, false) } } - yyj233++ - if yyhl233 { - yyb233 = yyj233 > l + yyj237++ + if yyhl237 { + yyb237 = yyj237 > l } else { - yyb233 = r.CheckBreak() + yyb237 = r.CheckBreak() } - if yyb233 { + if yyb237 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -2737,26 +2761,26 @@ func (x *JobCondition) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.LastTransitionTime = pkg1_unversioned.Time{} } else { - yyv238 := &x.LastTransitionTime - yym239 := z.DecBinary() - _ = yym239 + yyv242 := &x.LastTransitionTime + yym243 := z.DecBinary() + _ = yym243 if false { - } else if z.HasExtensions() && z.DecExt(yyv238) { - } else if yym239 { - z.DecBinaryUnmarshal(yyv238) - } else if !yym239 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv238) + } else if z.HasExtensions() && z.DecExt(yyv242) { + } else if yym243 { + z.DecBinaryUnmarshal(yyv242) + } else if !yym243 && z.IsJSONHandle() { + z.DecJSONUnmarshal(yyv242) } else { - z.DecFallback(yyv238, false) + z.DecFallback(yyv242, false) } } - yyj233++ - if yyhl233 { - yyb233 = yyj233 > l + yyj237++ + if yyhl237 { + yyb237 = yyj237 > l } else { - yyb233 = r.CheckBreak() + yyb237 = r.CheckBreak() } - if yyb233 { + if yyb237 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -2766,13 +2790,13 @@ func (x *JobCondition) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.Reason = string(r.DecodeString()) } - yyj233++ - if yyhl233 { - yyb233 = yyj233 > l + yyj237++ + if yyhl237 { + yyb237 = yyj237 > l } else { - yyb233 = r.CheckBreak() + yyb237 = r.CheckBreak() } - if yyb233 { + if yyb237 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -2783,158 +2807,158 @@ func (x *JobCondition) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { x.Message = string(r.DecodeString()) } for { - yyj233++ - if yyhl233 { - yyb233 = yyj233 > l + yyj237++ + if yyhl237 { + yyb237 = yyj237 > l } else { - yyb233 = r.CheckBreak() + yyb237 = r.CheckBreak() } - if yyb233 { + if yyb237 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj233-1, "") + z.DecStructFieldNotFound(yyj237-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } -func (x *ScheduledJob) CodecEncodeSelf(e *codec1978.Encoder) { +func (x *CronJob) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { - yym242 := z.EncBinary() - _ = yym242 + yym246 := z.EncBinary() + _ = yym246 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - 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 { + 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 { - yynn243 = 0 - for _, b := range yyq243 { + yynn247 = 0 + for _, b := range yyq247 { if b { - yynn243++ + yynn247++ } } - r.EncodeMapStart(yynn243) - yynn243 = 0 + r.EncodeMapStart(yynn247) + yynn247 = 0 } - if yyr243 || yy2arr243 { + if yyr247 || yy2arr247 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq243[0] { - yym245 := z.EncBinary() - _ = yym245 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) - } - } else { - r.EncodeString(codecSelferC_UTF81234, "") - } - } else { - if yyq243[0] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("kind")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym246 := z.EncBinary() - _ = yym246 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) - } - } - } - if yyr243 || yy2arr243 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq243[1] { - yym248 := z.EncBinary() - _ = yym248 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) - } - } else { - r.EncodeString(codecSelferC_UTF81234, "") - } - } else { - if yyq243[1] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) + 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 yyr243 || yy2arr243 { + if yyr247 || yy2arr247 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq243[2] { - yy251 := &x.ObjectMeta - yy251.CodecEncodeSelf(e) + if yyq247[2] { + yy255 := &x.ObjectMeta + yy255.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { - if yyq243[2] { + if yyq247[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy252 := &x.ObjectMeta - yy252.CodecEncodeSelf(e) + yy256 := &x.ObjectMeta + yy256.CodecEncodeSelf(e) } } - if yyr243 || yy2arr243 { + if yyr247 || yy2arr247 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq243[3] { - yy254 := &x.Spec - yy254.CodecEncodeSelf(e) + if yyq247[3] { + yy258 := &x.Spec + yy258.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { - if yyq243[3] { + if yyq247[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("spec")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy255 := &x.Spec - yy255.CodecEncodeSelf(e) + yy259 := &x.Spec + yy259.CodecEncodeSelf(e) } } - if yyr243 || yy2arr243 { + if yyr247 || yy2arr247 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq243[4] { - yy257 := &x.Status - yy257.CodecEncodeSelf(e) + if yyq247[4] { + yy261 := &x.Status + yy261.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { - if yyq243[4] { + if yyq247[4] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("status")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy258 := &x.Status - yy258.CodecEncodeSelf(e) + yy262 := &x.Status + yy262.CodecEncodeSelf(e) } } - if yyr243 || yy2arr243 { + if yyr247 || yy2arr247 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -2943,29 +2967,29 @@ func (x *ScheduledJob) CodecEncodeSelf(e *codec1978.Encoder) { } } -func (x *ScheduledJob) CodecDecodeSelf(d *codec1978.Decoder) { +func (x *CronJob) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym259 := z.DecBinary() - _ = yym259 + yym263 := z.DecBinary() + _ = yym263 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct260 := r.ContainerType() - if yyct260 == codecSelferValueTypeMap1234 { - yyl260 := r.ReadMapStart() - if yyl260 == 0 { + yyct264 := r.ContainerType() + if yyct264 == codecSelferValueTypeMap1234 { + yyl264 := r.ReadMapStart() + if yyl264 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl260, d) + x.codecDecodeSelfFromMap(yyl264, d) } - } else if yyct260 == codecSelferValueTypeArray1234 { - yyl260 := r.ReadArrayStart() - if yyl260 == 0 { + } else if yyct264 == codecSelferValueTypeArray1234 { + yyl264 := r.ReadArrayStart() + if yyl264 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl260, d) + x.codecDecodeSelfFromArray(yyl264, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -2973,16 +2997,16 @@ func (x *ScheduledJob) CodecDecodeSelf(d *codec1978.Decoder) { } } -func (x *ScheduledJob) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { +func (x *CronJob) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys261Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys261Slc - var yyhl261 bool = l >= 0 - for yyj261 := 0; ; yyj261++ { - if yyhl261 { - if yyj261 >= 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 { @@ -2991,10 +3015,10 @@ func (x *ScheduledJob) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys261Slc = r.DecodeBytes(yys261Slc, true, true) - yys261 := string(yys261Slc) + yys265Slc = r.DecodeBytes(yys265Slc, true, true) + yys265 := string(yys265Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys261 { + switch yys265 { case "kind": if r.TryDecodeAsNil() { x.Kind = "" @@ -3011,44 +3035,44 @@ func (x *ScheduledJob) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.ObjectMeta = pkg2_v1.ObjectMeta{} } else { - yyv264 := &x.ObjectMeta - yyv264.CodecDecodeSelf(d) + yyv268 := &x.ObjectMeta + yyv268.CodecDecodeSelf(d) } case "spec": if r.TryDecodeAsNil() { - x.Spec = ScheduledJobSpec{} + x.Spec = CronJobSpec{} } else { - yyv265 := &x.Spec - yyv265.CodecDecodeSelf(d) + yyv269 := &x.Spec + yyv269.CodecDecodeSelf(d) } case "status": if r.TryDecodeAsNil() { - x.Status = ScheduledJobStatus{} + x.Status = CronJobStatus{} } else { - yyv266 := &x.Status - yyv266.CodecDecodeSelf(d) + yyv270 := &x.Status + yyv270.CodecDecodeSelf(d) } default: - z.DecStructFieldNotFound(-1, yys261) - } // end switch yys261 - } // end for yyj261 + z.DecStructFieldNotFound(-1, yys265) + } // end switch yys265 + } // end for yyj265 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } -func (x *ScheduledJob) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { +func (x *CronJob) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj267 int - var yyb267 bool - var yyhl267 bool = l >= 0 - yyj267++ - if yyhl267 { - yyb267 = yyj267 > l + var yyj271 int + var yyb271 bool + var yyhl271 bool = l >= 0 + yyj271++ + if yyhl271 { + yyb271 = yyj271 > l } else { - yyb267 = r.CheckBreak() + yyb271 = r.CheckBreak() } - if yyb267 { + if yyb271 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -3058,13 +3082,13 @@ func (x *ScheduledJob) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.Kind = string(r.DecodeString()) } - yyj267++ - if yyhl267 { - yyb267 = yyj267 > l + yyj271++ + if yyhl271 { + yyb271 = yyj271 > l } else { - yyb267 = r.CheckBreak() + yyb271 = r.CheckBreak() } - if yyb267 { + if yyb271 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -3074,13 +3098,13 @@ func (x *ScheduledJob) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.APIVersion = string(r.DecodeString()) } - yyj267++ - if yyhl267 { - yyb267 = yyj267 > l + yyj271++ + if yyhl271 { + yyb271 = yyj271 > l } else { - yyb267 = r.CheckBreak() + yyb271 = r.CheckBreak() } - if yyb267 { + if yyb271 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -3088,181 +3112,181 @@ func (x *ScheduledJob) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.ObjectMeta = pkg2_v1.ObjectMeta{} } else { - yyv270 := &x.ObjectMeta - yyv270.CodecDecodeSelf(d) + yyv274 := &x.ObjectMeta + yyv274.CodecDecodeSelf(d) } - yyj267++ - if yyhl267 { - yyb267 = yyj267 > l + yyj271++ + if yyhl271 { + yyb271 = yyj271 > l } else { - yyb267 = r.CheckBreak() + yyb271 = r.CheckBreak() } - if yyb267 { + if yyb271 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.Spec = ScheduledJobSpec{} + x.Spec = CronJobSpec{} } else { - yyv271 := &x.Spec - yyv271.CodecDecodeSelf(d) + yyv275 := &x.Spec + yyv275.CodecDecodeSelf(d) } - yyj267++ - if yyhl267 { - yyb267 = yyj267 > l + yyj271++ + if yyhl271 { + yyb271 = yyj271 > l } else { - yyb267 = r.CheckBreak() + yyb271 = r.CheckBreak() } - if yyb267 { + if yyb271 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.Status = ScheduledJobStatus{} + x.Status = CronJobStatus{} } else { - yyv272 := &x.Status - yyv272.CodecDecodeSelf(d) + yyv276 := &x.Status + yyv276.CodecDecodeSelf(d) } for { - yyj267++ - if yyhl267 { - yyb267 = yyj267 > l + yyj271++ + if yyhl271 { + yyb271 = yyj271 > l } else { - yyb267 = r.CheckBreak() + yyb271 = r.CheckBreak() } - if yyb267 { + if yyb271 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj267-1, "") + z.DecStructFieldNotFound(yyj271-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } -func (x *ScheduledJobList) CodecEncodeSelf(e *codec1978.Encoder) { +func (x *CronJobList) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { - yym273 := z.EncBinary() - _ = yym273 + yym277 := z.EncBinary() + _ = yym277 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - 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 { + 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 { - yynn274 = 1 - for _, b := range yyq274 { + yynn278 = 1 + for _, b := range yyq278 { if b { - yynn274++ + yynn278++ } } - r.EncodeMapStart(yynn274) - yynn274 = 0 + r.EncodeMapStart(yynn278) + yynn278 = 0 } - if yyr274 || yy2arr274 { + if yyr278 || yy2arr278 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq274[0] { - yym276 := z.EncBinary() - _ = yym276 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) - } - } else { - r.EncodeString(codecSelferC_UTF81234, "") - } - } else { - if yyq274[0] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("kind")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym277 := z.EncBinary() - _ = yym277 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) - } - } - } - if yyr274 || yy2arr274 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq274[1] { - yym279 := z.EncBinary() - _ = yym279 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) - } - } else { - r.EncodeString(codecSelferC_UTF81234, "") - } - } else { - if yyq274[1] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) + 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 yyr274 || yy2arr274 { + if yyr278 || yy2arr278 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq274[2] { - yy282 := &x.ListMeta - yym283 := z.EncBinary() - _ = yym283 + if yyq278[2] { + yy286 := &x.ListMeta + yym287 := z.EncBinary() + _ = yym287 if false { - } else if z.HasExtensions() && z.EncExt(yy282) { + } else if z.HasExtensions() && z.EncExt(yy286) { } else { - z.EncFallback(yy282) + z.EncFallback(yy286) } } else { r.EncodeNil() } } else { - if yyq274[2] { + if yyq278[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy284 := &x.ListMeta - yym285 := z.EncBinary() - _ = yym285 + yy288 := &x.ListMeta + yym289 := z.EncBinary() + _ = yym289 if false { - } else if z.HasExtensions() && z.EncExt(yy284) { + } else if z.HasExtensions() && z.EncExt(yy288) { } else { - z.EncFallback(yy284) + z.EncFallback(yy288) } } } - if yyr274 || yy2arr274 { + if yyr278 || yy2arr278 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.Items == nil { r.EncodeNil() } else { - yym287 := z.EncBinary() - _ = yym287 + yym291 := z.EncBinary() + _ = yym291 if false { } else { - h.encSliceScheduledJob(([]ScheduledJob)(x.Items), e) + h.encSliceCronJob(([]CronJob)(x.Items), e) } } } else { @@ -3272,15 +3296,15 @@ func (x *ScheduledJobList) CodecEncodeSelf(e *codec1978.Encoder) { if x.Items == nil { r.EncodeNil() } else { - yym288 := z.EncBinary() - _ = yym288 + yym292 := z.EncBinary() + _ = yym292 if false { } else { - h.encSliceScheduledJob(([]ScheduledJob)(x.Items), e) + h.encSliceCronJob(([]CronJob)(x.Items), e) } } } - if yyr274 || yy2arr274 { + if yyr278 || yy2arr278 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -3289,29 +3313,29 @@ func (x *ScheduledJobList) CodecEncodeSelf(e *codec1978.Encoder) { } } -func (x *ScheduledJobList) CodecDecodeSelf(d *codec1978.Decoder) { +func (x *CronJobList) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym289 := z.DecBinary() - _ = yym289 + yym293 := z.DecBinary() + _ = yym293 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct290 := r.ContainerType() - if yyct290 == codecSelferValueTypeMap1234 { - yyl290 := r.ReadMapStart() - if yyl290 == 0 { + yyct294 := r.ContainerType() + if yyct294 == codecSelferValueTypeMap1234 { + yyl294 := r.ReadMapStart() + if yyl294 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl290, d) + x.codecDecodeSelfFromMap(yyl294, d) } - } else if yyct290 == codecSelferValueTypeArray1234 { - yyl290 := r.ReadArrayStart() - if yyl290 == 0 { + } else if yyct294 == codecSelferValueTypeArray1234 { + yyl294 := r.ReadArrayStart() + if yyl294 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl290, d) + x.codecDecodeSelfFromArray(yyl294, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -3319,16 +3343,16 @@ func (x *ScheduledJobList) CodecDecodeSelf(d *codec1978.Decoder) { } } -func (x *ScheduledJobList) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { +func (x *CronJobList) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys291Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys291Slc - var yyhl291 bool = l >= 0 - for yyj291 := 0; ; yyj291++ { - if yyhl291 { - if yyj291 >= l { + var 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 { @@ -3337,10 +3361,10 @@ func (x *ScheduledJobList) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys291Slc = r.DecodeBytes(yys291Slc, true, true) - yys291 := string(yys291Slc) + yys295Slc = r.DecodeBytes(yys295Slc, true, true) + yys295 := string(yys295Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys291 { + switch yys295 { case "kind": if r.TryDecodeAsNil() { x.Kind = "" @@ -3357,48 +3381,48 @@ func (x *ScheduledJobList) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.ListMeta = pkg1_unversioned.ListMeta{} } else { - yyv294 := &x.ListMeta - yym295 := z.DecBinary() - _ = yym295 + yyv298 := &x.ListMeta + yym299 := z.DecBinary() + _ = yym299 if false { - } else if z.HasExtensions() && z.DecExt(yyv294) { + } else if z.HasExtensions() && z.DecExt(yyv298) { } else { - z.DecFallback(yyv294, false) + z.DecFallback(yyv298, false) } } case "items": if r.TryDecodeAsNil() { x.Items = nil } else { - yyv296 := &x.Items - yym297 := z.DecBinary() - _ = yym297 + yyv300 := &x.Items + yym301 := z.DecBinary() + _ = yym301 if false { } else { - h.decSliceScheduledJob((*[]ScheduledJob)(yyv296), d) + h.decSliceCronJob((*[]CronJob)(yyv300), d) } } default: - z.DecStructFieldNotFound(-1, yys291) - } // end switch yys291 - } // end for yyj291 + z.DecStructFieldNotFound(-1, yys295) + } // end switch yys295 + } // end for yyj295 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } -func (x *ScheduledJobList) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { +func (x *CronJobList) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj298 int - var yyb298 bool - var yyhl298 bool = l >= 0 - yyj298++ - if yyhl298 { - yyb298 = yyj298 > l + var yyj302 int + var yyb302 bool + var yyhl302 bool = l >= 0 + yyj302++ + if yyhl302 { + yyb302 = yyj302 > l } else { - yyb298 = r.CheckBreak() + yyb302 = r.CheckBreak() } - if yyb298 { + if yyb302 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -3408,13 +3432,13 @@ func (x *ScheduledJobList) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) } else { x.Kind = string(r.DecodeString()) } - yyj298++ - if yyhl298 { - yyb298 = yyj298 > l + yyj302++ + if yyhl302 { + yyb302 = yyj302 > l } else { - yyb298 = r.CheckBreak() + yyb302 = r.CheckBreak() } - if yyb298 { + if yyb302 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -3424,13 +3448,13 @@ func (x *ScheduledJobList) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) } else { x.APIVersion = string(r.DecodeString()) } - yyj298++ - if yyhl298 { - yyb298 = yyj298 > l + yyj302++ + if yyhl302 { + yyb302 = yyj302 > l } else { - yyb298 = r.CheckBreak() + yyb302 = r.CheckBreak() } - if yyb298 { + if yyb302 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -3438,22 +3462,22 @@ func (x *ScheduledJobList) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) if r.TryDecodeAsNil() { x.ListMeta = pkg1_unversioned.ListMeta{} } else { - yyv301 := &x.ListMeta - yym302 := z.DecBinary() - _ = yym302 + yyv305 := &x.ListMeta + yym306 := z.DecBinary() + _ = yym306 if false { - } else if z.HasExtensions() && z.DecExt(yyv301) { + } else if z.HasExtensions() && z.DecExt(yyv305) { } else { - z.DecFallback(yyv301, false) + z.DecFallback(yyv305, false) } } - yyj298++ - if yyhl298 { - yyb298 = yyj298 > l + yyj302++ + if yyhl302 { + yyb302 = yyj302 > l } else { - yyb298 = r.CheckBreak() + yyb302 = r.CheckBreak() } - if yyb298 { + if yyb302 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -3461,67 +3485,67 @@ func (x *ScheduledJobList) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) if r.TryDecodeAsNil() { x.Items = nil } else { - yyv303 := &x.Items - yym304 := z.DecBinary() - _ = yym304 + yyv307 := &x.Items + yym308 := z.DecBinary() + _ = yym308 if false { } else { - h.decSliceScheduledJob((*[]ScheduledJob)(yyv303), d) + h.decSliceCronJob((*[]CronJob)(yyv307), d) } } for { - yyj298++ - if yyhl298 { - yyb298 = yyj298 > l + yyj302++ + if yyhl302 { + yyb302 = yyj302 > l } else { - yyb298 = r.CheckBreak() + yyb302 = r.CheckBreak() } - if yyb298 { + if yyb302 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj298-1, "") + z.DecStructFieldNotFound(yyj302-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } -func (x *ScheduledJobSpec) CodecEncodeSelf(e *codec1978.Encoder) { +func (x *CronJobSpec) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { - yym305 := z.EncBinary() - _ = yym305 + yym309 := z.EncBinary() + _ = yym309 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - 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 { + 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 { - yynn306 = 2 - for _, b := range yyq306 { + yynn310 = 2 + for _, b := range yyq310 { if b { - yynn306++ + yynn310++ } } - r.EncodeMapStart(yynn306) - yynn306 = 0 + r.EncodeMapStart(yynn310) + yynn310 = 0 } - if yyr306 || yy2arr306 { + if yyr310 || yy2arr310 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym308 := z.EncBinary() - _ = yym308 + yym312 := z.EncBinary() + _ = yym312 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Schedule)) @@ -3530,110 +3554,110 @@ func (x *ScheduledJobSpec) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("schedule")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym309 := z.EncBinary() - _ = yym309 + yym313 := z.EncBinary() + _ = yym313 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Schedule)) } } - if yyr306 || yy2arr306 { + if yyr310 || yy2arr310 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq306[1] { + if yyq310[1] { if x.StartingDeadlineSeconds == nil { r.EncodeNil() } else { - yy311 := *x.StartingDeadlineSeconds - yym312 := z.EncBinary() - _ = yym312 + yy315 := *x.StartingDeadlineSeconds + yym316 := z.EncBinary() + _ = yym316 if false { } else { - r.EncodeInt(int64(yy311)) + r.EncodeInt(int64(yy315)) } } } else { r.EncodeNil() } } else { - if yyq306[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 { - yy313 := *x.StartingDeadlineSeconds - yym314 := z.EncBinary() - _ = yym314 + yy317 := *x.StartingDeadlineSeconds + yym318 := z.EncBinary() + _ = yym318 if false { } else { - r.EncodeInt(int64(yy313)) + r.EncodeInt(int64(yy317)) } } } } - if yyr306 || yy2arr306 { + if yyr310 || yy2arr310 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq306[2] { + if yyq310[2] { x.ConcurrencyPolicy.CodecEncodeSelf(e) } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq306[2] { + if yyq310[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("concurrencyPolicy")) z.EncSendContainerState(codecSelfer_containerMapValue1234) x.ConcurrencyPolicy.CodecEncodeSelf(e) } } - if yyr306 || yy2arr306 { + if yyr310 || yy2arr310 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq306[3] { + if yyq310[3] { if x.Suspend == nil { r.EncodeNil() } else { - yy317 := *x.Suspend - yym318 := z.EncBinary() - _ = yym318 + yy321 := *x.Suspend + yym322 := z.EncBinary() + _ = yym322 if false { } else { - r.EncodeBool(bool(yy317)) + r.EncodeBool(bool(yy321)) } } } else { r.EncodeNil() } } else { - if yyq306[3] { + if yyq310[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("suspend")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.Suspend == nil { r.EncodeNil() } else { - yy319 := *x.Suspend - yym320 := z.EncBinary() - _ = yym320 + yy323 := *x.Suspend + yym324 := z.EncBinary() + _ = yym324 if false { } else { - r.EncodeBool(bool(yy319)) + r.EncodeBool(bool(yy323)) } } } } - if yyr306 || yy2arr306 { + if yyr310 || yy2arr310 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy322 := &x.JobTemplate - yy322.CodecEncodeSelf(e) + yy326 := &x.JobTemplate + yy326.CodecEncodeSelf(e) } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("jobTemplate")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy323 := &x.JobTemplate - yy323.CodecEncodeSelf(e) + yy327 := &x.JobTemplate + yy327.CodecEncodeSelf(e) } - if yyr306 || yy2arr306 { + if yyr310 || yy2arr310 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -3642,29 +3666,29 @@ func (x *ScheduledJobSpec) CodecEncodeSelf(e *codec1978.Encoder) { } } -func (x *ScheduledJobSpec) CodecDecodeSelf(d *codec1978.Decoder) { +func (x *CronJobSpec) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym324 := z.DecBinary() - _ = yym324 + yym328 := z.DecBinary() + _ = yym328 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct325 := r.ContainerType() - if yyct325 == codecSelferValueTypeMap1234 { - yyl325 := r.ReadMapStart() - if yyl325 == 0 { + yyct329 := r.ContainerType() + if yyct329 == codecSelferValueTypeMap1234 { + yyl329 := r.ReadMapStart() + if yyl329 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl325, d) + x.codecDecodeSelfFromMap(yyl329, d) } - } else if yyct325 == codecSelferValueTypeArray1234 { - yyl325 := r.ReadArrayStart() - if yyl325 == 0 { + } else if yyct329 == codecSelferValueTypeArray1234 { + yyl329 := r.ReadArrayStart() + if yyl329 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl325, d) + x.codecDecodeSelfFromArray(yyl329, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -3672,16 +3696,16 @@ func (x *ScheduledJobSpec) CodecDecodeSelf(d *codec1978.Decoder) { } } -func (x *ScheduledJobSpec) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { +func (x *CronJobSpec) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys326Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys326Slc - var yyhl326 bool = l >= 0 - for yyj326 := 0; ; yyj326++ { - if yyhl326 { - if yyj326 >= 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 { @@ -3690,10 +3714,10 @@ func (x *ScheduledJobSpec) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys326Slc = r.DecodeBytes(yys326Slc, true, true) - yys326 := string(yys326Slc) + yys330Slc = r.DecodeBytes(yys330Slc, true, true) + yys330 := string(yys330Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys326 { + switch yys330 { case "schedule": if r.TryDecodeAsNil() { x.Schedule = "" @@ -3709,8 +3733,8 @@ func (x *ScheduledJobSpec) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { if x.StartingDeadlineSeconds == nil { x.StartingDeadlineSeconds = new(int64) } - yym329 := z.DecBinary() - _ = yym329 + yym333 := z.DecBinary() + _ = yym333 if false { } else { *((*int64)(x.StartingDeadlineSeconds)) = int64(r.DecodeInt(64)) @@ -3731,8 +3755,8 @@ func (x *ScheduledJobSpec) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { if x.Suspend == nil { x.Suspend = new(bool) } - yym332 := z.DecBinary() - _ = yym332 + yym336 := z.DecBinary() + _ = yym336 if false { } else { *((*bool)(x.Suspend)) = r.DecodeBool() @@ -3742,30 +3766,30 @@ func (x *ScheduledJobSpec) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.JobTemplate = JobTemplateSpec{} } else { - yyv333 := &x.JobTemplate - yyv333.CodecDecodeSelf(d) + yyv337 := &x.JobTemplate + yyv337.CodecDecodeSelf(d) } default: - z.DecStructFieldNotFound(-1, yys326) - } // end switch yys326 - } // end for yyj326 + z.DecStructFieldNotFound(-1, yys330) + } // end switch yys330 + } // end for yyj330 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } -func (x *ScheduledJobSpec) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { +func (x *CronJobSpec) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj334 int - var yyb334 bool - var yyhl334 bool = l >= 0 - yyj334++ - if yyhl334 { - yyb334 = yyj334 > l + var yyj338 int + var yyb338 bool + var yyhl338 bool = l >= 0 + yyj338++ + if yyhl338 { + yyb338 = yyj338 > l } else { - yyb334 = r.CheckBreak() + yyb338 = r.CheckBreak() } - if yyb334 { + if yyb338 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -3775,13 +3799,13 @@ func (x *ScheduledJobSpec) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) } else { x.Schedule = string(r.DecodeString()) } - yyj334++ - if yyhl334 { - yyb334 = yyj334 > l + yyj338++ + if yyhl338 { + yyb338 = yyj338 > l } else { - yyb334 = r.CheckBreak() + yyb338 = r.CheckBreak() } - if yyb334 { + if yyb338 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -3794,20 +3818,20 @@ func (x *ScheduledJobSpec) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) if x.StartingDeadlineSeconds == nil { x.StartingDeadlineSeconds = new(int64) } - yym337 := z.DecBinary() - _ = yym337 + yym341 := z.DecBinary() + _ = yym341 if false { } else { *((*int64)(x.StartingDeadlineSeconds)) = int64(r.DecodeInt(64)) } } - yyj334++ - if yyhl334 { - yyb334 = yyj334 > l + yyj338++ + if yyhl338 { + yyb338 = yyj338 > l } else { - yyb334 = r.CheckBreak() + yyb338 = r.CheckBreak() } - if yyb334 { + if yyb338 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -3817,13 +3841,13 @@ func (x *ScheduledJobSpec) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) } else { x.ConcurrencyPolicy = ConcurrencyPolicy(r.DecodeString()) } - yyj334++ - if yyhl334 { - yyb334 = yyj334 > l + yyj338++ + if yyhl338 { + yyb338 = yyj338 > l } else { - yyb334 = r.CheckBreak() + yyb338 = r.CheckBreak() } - if yyb334 { + if yyb338 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -3836,20 +3860,20 @@ func (x *ScheduledJobSpec) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) if x.Suspend == nil { x.Suspend = new(bool) } - yym340 := z.DecBinary() - _ = yym340 + yym344 := z.DecBinary() + _ = yym344 if false { } else { *((*bool)(x.Suspend)) = r.DecodeBool() } } - yyj334++ - if yyhl334 { - yyb334 = yyj334 > l + yyj338++ + if yyhl338 { + yyb338 = yyj338 > l } else { - yyb334 = r.CheckBreak() + yyb338 = r.CheckBreak() } - if yyb334 { + if yyb338 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -3857,21 +3881,21 @@ func (x *ScheduledJobSpec) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) if r.TryDecodeAsNil() { x.JobTemplate = JobTemplateSpec{} } else { - yyv341 := &x.JobTemplate - yyv341.CodecDecodeSelf(d) + yyv345 := &x.JobTemplate + yyv345.CodecDecodeSelf(d) } for { - yyj334++ - if yyhl334 { - yyb334 = yyj334 > l + yyj338++ + if yyhl338 { + yyb338 = yyj338 > l } else { - yyb334 = r.CheckBreak() + yyb338 = r.CheckBreak() } - if yyb334 { + if yyb338 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj334-1, "") + z.DecStructFieldNotFound(yyj338-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -3880,8 +3904,8 @@ func (x ConcurrencyPolicy) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r - yym342 := z.EncBinary() - _ = yym342 + yym346 := z.EncBinary() + _ = yym346 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { @@ -3893,8 +3917,8 @@ func (x *ConcurrencyPolicy) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym343 := z.DecBinary() - _ = yym343 + yym347 := z.DecBinary() + _ = yym347 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { @@ -3902,46 +3926,46 @@ func (x *ConcurrencyPolicy) CodecDecodeSelf(d *codec1978.Decoder) { } } -func (x *ScheduledJobStatus) CodecEncodeSelf(e *codec1978.Encoder) { +func (x *CronJobStatus) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { - yym344 := z.EncBinary() - _ = yym344 + yym348 := z.EncBinary() + _ = yym348 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - 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 { + 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 { - yynn345 = 0 - for _, b := range yyq345 { + yynn349 = 0 + for _, b := range yyq349 { if b { - yynn345++ + yynn349++ } } - r.EncodeMapStart(yynn345) - yynn345 = 0 + r.EncodeMapStart(yynn349) + yynn349 = 0 } - if yyr345 || yy2arr345 { + if yyr349 || yy2arr349 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq345[0] { + if yyq349[0] { if x.Active == nil { r.EncodeNil() } else { - yym347 := z.EncBinary() - _ = yym347 + yym351 := z.EncBinary() + _ = yym351 if false { } else { h.encSlicev1_ObjectReference(([]pkg2_v1.ObjectReference)(x.Active), e) @@ -3951,15 +3975,15 @@ func (x *ScheduledJobStatus) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq345[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 { - yym348 := z.EncBinary() - _ = yym348 + yym352 := z.EncBinary() + _ = yym352 if false { } else { h.encSlicev1_ObjectReference(([]pkg2_v1.ObjectReference)(x.Active), e) @@ -3967,19 +3991,19 @@ func (x *ScheduledJobStatus) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr345 || yy2arr345 { + if yyr349 || yy2arr349 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq345[1] { + if yyq349[1] { if x.LastScheduleTime == nil { r.EncodeNil() } else { - yym350 := z.EncBinary() - _ = yym350 + yym354 := z.EncBinary() + _ = yym354 if false { } else if z.HasExtensions() && z.EncExt(x.LastScheduleTime) { - } else if yym350 { + } else if yym354 { z.EncBinaryMarshal(x.LastScheduleTime) - } else if !yym350 && z.IsJSONHandle() { + } else if !yym354 && z.IsJSONHandle() { z.EncJSONMarshal(x.LastScheduleTime) } else { z.EncFallback(x.LastScheduleTime) @@ -3989,20 +4013,20 @@ func (x *ScheduledJobStatus) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq345[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 { - yym351 := z.EncBinary() - _ = yym351 + yym355 := z.EncBinary() + _ = yym355 if false { } else if z.HasExtensions() && z.EncExt(x.LastScheduleTime) { - } else if yym351 { + } else if yym355 { z.EncBinaryMarshal(x.LastScheduleTime) - } else if !yym351 && z.IsJSONHandle() { + } else if !yym355 && z.IsJSONHandle() { z.EncJSONMarshal(x.LastScheduleTime) } else { z.EncFallback(x.LastScheduleTime) @@ -4010,7 +4034,7 @@ func (x *ScheduledJobStatus) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr345 || yy2arr345 { + if yyr349 || yy2arr349 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -4019,29 +4043,29 @@ func (x *ScheduledJobStatus) CodecEncodeSelf(e *codec1978.Encoder) { } } -func (x *ScheduledJobStatus) CodecDecodeSelf(d *codec1978.Decoder) { +func (x *CronJobStatus) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym352 := z.DecBinary() - _ = yym352 + yym356 := z.DecBinary() + _ = yym356 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct353 := r.ContainerType() - if yyct353 == codecSelferValueTypeMap1234 { - yyl353 := r.ReadMapStart() - if yyl353 == 0 { + yyct357 := r.ContainerType() + if yyct357 == codecSelferValueTypeMap1234 { + yyl357 := r.ReadMapStart() + if yyl357 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl353, d) + x.codecDecodeSelfFromMap(yyl357, d) } - } else if yyct353 == codecSelferValueTypeArray1234 { - yyl353 := r.ReadArrayStart() - if yyl353 == 0 { + } else if yyct357 == codecSelferValueTypeArray1234 { + yyl357 := r.ReadArrayStart() + if yyl357 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl353, d) + x.codecDecodeSelfFromArray(yyl357, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -4049,16 +4073,16 @@ func (x *ScheduledJobStatus) CodecDecodeSelf(d *codec1978.Decoder) { } } -func (x *ScheduledJobStatus) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { +func (x *CronJobStatus) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys354Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys354Slc - var yyhl354 bool = l >= 0 - for yyj354 := 0; ; yyj354++ { - if yyhl354 { - if yyj354 >= 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 { @@ -4067,20 +4091,20 @@ func (x *ScheduledJobStatus) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys354Slc = r.DecodeBytes(yys354Slc, true, true) - yys354 := string(yys354Slc) + yys358Slc = r.DecodeBytes(yys358Slc, true, true) + yys358 := string(yys358Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys354 { + switch yys358 { case "active": if r.TryDecodeAsNil() { x.Active = nil } else { - yyv355 := &x.Active - yym356 := z.DecBinary() - _ = yym356 + yyv359 := &x.Active + yym360 := z.DecBinary() + _ = yym360 if false { } else { - h.decSlicev1_ObjectReference((*[]pkg2_v1.ObjectReference)(yyv355), d) + h.decSlicev1_ObjectReference((*[]pkg2_v1.ObjectReference)(yyv359), d) } } case "lastScheduleTime": @@ -4092,39 +4116,39 @@ func (x *ScheduledJobStatus) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) if x.LastScheduleTime == nil { x.LastScheduleTime = new(pkg1_unversioned.Time) } - yym358 := z.DecBinary() - _ = yym358 + yym362 := z.DecBinary() + _ = yym362 if false { } else if z.HasExtensions() && z.DecExt(x.LastScheduleTime) { - } else if yym358 { + } else if yym362 { z.DecBinaryUnmarshal(x.LastScheduleTime) - } else if !yym358 && z.IsJSONHandle() { + } else if !yym362 && z.IsJSONHandle() { z.DecJSONUnmarshal(x.LastScheduleTime) } else { z.DecFallback(x.LastScheduleTime, false) } } default: - z.DecStructFieldNotFound(-1, yys354) - } // end switch yys354 - } // end for yyj354 + z.DecStructFieldNotFound(-1, yys358) + } // end switch yys358 + } // end for yyj358 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } -func (x *ScheduledJobStatus) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { +func (x *CronJobStatus) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj359 int - var yyb359 bool - var yyhl359 bool = l >= 0 - yyj359++ - if yyhl359 { - yyb359 = yyj359 > l + var yyj363 int + var yyb363 bool + var yyhl363 bool = l >= 0 + yyj363++ + if yyhl363 { + yyb363 = yyj363 > l } else { - yyb359 = r.CheckBreak() + yyb363 = r.CheckBreak() } - if yyb359 { + if yyb363 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -4132,21 +4156,21 @@ func (x *ScheduledJobStatus) codecDecodeSelfFromArray(l int, d *codec1978.Decode if r.TryDecodeAsNil() { x.Active = nil } else { - yyv360 := &x.Active - yym361 := z.DecBinary() - _ = yym361 + yyv364 := &x.Active + yym365 := z.DecBinary() + _ = yym365 if false { } else { - h.decSlicev1_ObjectReference((*[]pkg2_v1.ObjectReference)(yyv360), d) + h.decSlicev1_ObjectReference((*[]pkg2_v1.ObjectReference)(yyv364), d) } } - yyj359++ - if yyhl359 { - yyb359 = yyj359 > l + yyj363++ + if yyhl363 { + yyb363 = yyj363 > l } else { - yyb359 = r.CheckBreak() + yyb363 = r.CheckBreak() } - if yyb359 { + if yyb363 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -4159,587 +4183,43 @@ func (x *ScheduledJobStatus) codecDecodeSelfFromArray(l int, d *codec1978.Decode if x.LastScheduleTime == nil { x.LastScheduleTime = new(pkg1_unversioned.Time) } - yym363 := z.DecBinary() - _ = yym363 + yym367 := z.DecBinary() + _ = yym367 if false { } else if z.HasExtensions() && z.DecExt(x.LastScheduleTime) { - } else if yym363 { + } else if yym367 { z.DecBinaryUnmarshal(x.LastScheduleTime) - } else if !yym363 && z.IsJSONHandle() { + } else if !yym367 && z.IsJSONHandle() { z.DecJSONUnmarshal(x.LastScheduleTime) } else { z.DecFallback(x.LastScheduleTime, false) } } for { - yyj359++ - if yyhl359 { - yyb359 = yyj359 > l + yyj363++ + if yyhl363 { + yyb363 = yyj363 > l } else { - yyb359 = r.CheckBreak() + yyb363 = r.CheckBreak() } - if yyb359 { + if yyb363 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj359-1, "") + z.DecStructFieldNotFound(yyj363-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } -func (x *LabelSelector) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - if x == nil { - r.EncodeNil() - } else { - yym364 := z.EncBinary() - _ = yym364 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - 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 { - yynn365 = 0 - for _, b := range yyq365 { - if b { - yynn365++ - } - } - r.EncodeMapStart(yynn365) - yynn365 = 0 - } - if yyr365 || yy2arr365 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq365[0] { - if x.MatchLabels == nil { - r.EncodeNil() - } else { - yym367 := z.EncBinary() - _ = yym367 - if false { - } else { - z.F.EncMapStringStringV(x.MatchLabels, false, e) - } - } - } else { - r.EncodeNil() - } - } else { - if yyq365[0] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("matchLabels")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - if x.MatchLabels == nil { - r.EncodeNil() - } else { - yym368 := z.EncBinary() - _ = yym368 - if false { - } else { - z.F.EncMapStringStringV(x.MatchLabels, false, e) - } - } - } - } - if yyr365 || yy2arr365 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq365[1] { - if x.MatchExpressions == nil { - r.EncodeNil() - } else { - yym370 := z.EncBinary() - _ = yym370 - if false { - } else { - h.encSliceLabelSelectorRequirement(([]LabelSelectorRequirement)(x.MatchExpressions), e) - } - } - } else { - r.EncodeNil() - } - } else { - if yyq365[1] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("matchExpressions")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - if x.MatchExpressions == nil { - r.EncodeNil() - } else { - yym371 := z.EncBinary() - _ = yym371 - if false { - } else { - h.encSliceLabelSelectorRequirement(([]LabelSelectorRequirement)(x.MatchExpressions), e) - } - } - } - } - if yyr365 || yy2arr365 { - z.EncSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - z.EncSendContainerState(codecSelfer_containerMapEnd1234) - } - } - } -} - -func (x *LabelSelector) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - yym372 := z.DecBinary() - _ = yym372 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - yyct373 := r.ContainerType() - if yyct373 == codecSelferValueTypeMap1234 { - yyl373 := r.ReadMapStart() - if yyl373 == 0 { - z.DecSendContainerState(codecSelfer_containerMapEnd1234) - } else { - x.codecDecodeSelfFromMap(yyl373, d) - } - } else if yyct373 == codecSelferValueTypeArray1234 { - yyl373 := r.ReadArrayStart() - if yyl373 == 0 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - x.codecDecodeSelfFromArray(yyl373, d) - } - } else { - panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) - } - } -} - -func (x *LabelSelector) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - 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 { - if r.CheckBreak() { - break - } - } - z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys374Slc = r.DecodeBytes(yys374Slc, true, true) - yys374 := string(yys374Slc) - z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys374 { - case "matchLabels": - if r.TryDecodeAsNil() { - x.MatchLabels = nil - } else { - yyv375 := &x.MatchLabels - yym376 := z.DecBinary() - _ = yym376 - if false { - } else { - z.F.DecMapStringStringX(yyv375, false, d) - } - } - case "matchExpressions": - if r.TryDecodeAsNil() { - x.MatchExpressions = nil - } else { - yyv377 := &x.MatchExpressions - yym378 := z.DecBinary() - _ = yym378 - if false { - } else { - h.decSliceLabelSelectorRequirement((*[]LabelSelectorRequirement)(yyv377), d) - } - } - default: - z.DecStructFieldNotFound(-1, yys374) - } // end switch yys374 - } // end for yyj374 - z.DecSendContainerState(codecSelfer_containerMapEnd1234) -} - -func (x *LabelSelector) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yyj379 int - var yyb379 bool - var yyhl379 bool = l >= 0 - yyj379++ - if yyhl379 { - yyb379 = yyj379 > l - } else { - yyb379 = r.CheckBreak() - } - if yyb379 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.MatchLabels = nil - } else { - yyv380 := &x.MatchLabels - yym381 := z.DecBinary() - _ = yym381 - if false { - } else { - z.F.DecMapStringStringX(yyv380, false, d) - } - } - yyj379++ - if yyhl379 { - yyb379 = yyj379 > l - } else { - yyb379 = r.CheckBreak() - } - if yyb379 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.MatchExpressions = nil - } else { - yyv382 := &x.MatchExpressions - yym383 := z.DecBinary() - _ = yym383 - if false { - } else { - h.decSliceLabelSelectorRequirement((*[]LabelSelectorRequirement)(yyv382), d) - } - } - for { - yyj379++ - if yyhl379 { - yyb379 = yyj379 > l - } else { - yyb379 = r.CheckBreak() - } - if yyb379 { - break - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj379-1, "") - } - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) -} - -func (x *LabelSelectorRequirement) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - if x == nil { - r.EncodeNil() - } else { - yym384 := z.EncBinary() - _ = yym384 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - 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 { - yynn385 = 2 - for _, b := range yyq385 { - if b { - yynn385++ - } - } - r.EncodeMapStart(yynn385) - yynn385 = 0 - } - if yyr385 || yy2arr385 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym387 := z.EncBinary() - _ = yym387 - 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) - yym388 := z.EncBinary() - _ = yym388 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Key)) - } - } - if yyr385 || yy2arr385 { - 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 yyr385 || yy2arr385 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq385[2] { - if x.Values == nil { - r.EncodeNil() - } else { - yym391 := z.EncBinary() - _ = yym391 - if false { - } else { - z.F.EncSliceStringV(x.Values, false, e) - } - } - } else { - r.EncodeNil() - } - } else { - if yyq385[2] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("values")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - if x.Values == nil { - r.EncodeNil() - } else { - yym392 := z.EncBinary() - _ = yym392 - if false { - } else { - z.F.EncSliceStringV(x.Values, false, e) - } - } - } - } - if yyr385 || yy2arr385 { - z.EncSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - z.EncSendContainerState(codecSelfer_containerMapEnd1234) - } - } - } -} - -func (x *LabelSelectorRequirement) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - yym393 := z.DecBinary() - _ = yym393 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - yyct394 := r.ContainerType() - if yyct394 == codecSelferValueTypeMap1234 { - yyl394 := r.ReadMapStart() - if yyl394 == 0 { - z.DecSendContainerState(codecSelfer_containerMapEnd1234) - } else { - x.codecDecodeSelfFromMap(yyl394, d) - } - } else if yyct394 == codecSelferValueTypeArray1234 { - yyl394 := r.ReadArrayStart() - if yyl394 == 0 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - x.codecDecodeSelfFromArray(yyl394, d) - } - } else { - panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) - } - } -} - -func (x *LabelSelectorRequirement) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - 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 { - if r.CheckBreak() { - break - } - } - z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys395Slc = r.DecodeBytes(yys395Slc, true, true) - yys395 := string(yys395Slc) - z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys395 { - case "key": - if r.TryDecodeAsNil() { - x.Key = "" - } else { - x.Key = string(r.DecodeString()) - } - case "operator": - if r.TryDecodeAsNil() { - x.Operator = "" - } else { - x.Operator = LabelSelectorOperator(r.DecodeString()) - } - case "values": - if r.TryDecodeAsNil() { - x.Values = nil - } else { - yyv398 := &x.Values - yym399 := z.DecBinary() - _ = yym399 - if false { - } else { - z.F.DecSliceStringX(yyv398, false, d) - } - } - default: - z.DecStructFieldNotFound(-1, yys395) - } // end switch yys395 - } // end for yyj395 - z.DecSendContainerState(codecSelfer_containerMapEnd1234) -} - -func (x *LabelSelectorRequirement) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yyj400 int - var yyb400 bool - var yyhl400 bool = l >= 0 - yyj400++ - if yyhl400 { - yyb400 = yyj400 > l - } else { - yyb400 = r.CheckBreak() - } - if yyb400 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Key = "" - } else { - x.Key = string(r.DecodeString()) - } - yyj400++ - if yyhl400 { - yyb400 = yyj400 > l - } else { - yyb400 = r.CheckBreak() - } - if yyb400 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Operator = "" - } else { - x.Operator = LabelSelectorOperator(r.DecodeString()) - } - yyj400++ - if yyhl400 { - yyb400 = yyj400 > l - } else { - yyb400 = r.CheckBreak() - } - if yyb400 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Values = nil - } else { - yyv403 := &x.Values - yym404 := z.DecBinary() - _ = yym404 - if false { - } else { - z.F.DecSliceStringX(yyv403, false, d) - } - } - for { - yyj400++ - if yyhl400 { - yyb400 = yyj400 > l - } else { - yyb400 = r.CheckBreak() - } - if yyb400 { - break - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj400-1, "") - } - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) -} - -func (x LabelSelectorOperator) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - yym405 := z.EncBinary() - _ = yym405 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x)) - } -} - -func (x *LabelSelectorOperator) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - yym406 := z.DecBinary() - _ = yym406 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - *((*string)(x)) = r.DecodeString() - } -} - 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 _, yyv407 := range v { + for _, yyv368 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy408 := &yyv407 - yy408.CodecEncodeSelf(e) + yy369 := &yyv368 + yy369.CodecEncodeSelf(e) } z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -4749,83 +4229,83 @@ func (x codecSelfer1234) decSliceJob(v *[]Job, d *codec1978.Decoder) { z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - 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 + 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 yyl409 > 0 { - var yyrr409, yyrl409 int - var yyrt409 bool - if yyl409 > cap(yyv409) { + } else if yyl370 > 0 { + var yyrr370, yyrl370 int + var yyrt370 bool + if yyl370 > cap(yyv370) { - yyrg409 := len(yyv409) > 0 - yyv2409 := yyv409 - yyrl409, yyrt409 = z.DecInferLen(yyl409, z.DecBasicHandle().MaxInitLen, 824) - if yyrt409 { - if yyrl409 <= cap(yyv409) { - yyv409 = yyv409[:yyrl409] + yyrg370 := len(yyv370) > 0 + yyv2370 := yyv370 + yyrl370, yyrt370 = z.DecInferLen(yyl370, z.DecBasicHandle().MaxInitLen, 824) + if yyrt370 { + if yyrl370 <= cap(yyv370) { + yyv370 = yyv370[:yyrl370] } else { - yyv409 = make([]Job, yyrl409) + yyv370 = make([]Job, yyrl370) } } else { - yyv409 = make([]Job, yyrl409) + yyv370 = make([]Job, yyrl370) } - yyc409 = true - yyrr409 = len(yyv409) - if yyrg409 { - copy(yyv409, yyv2409) + yyc370 = true + yyrr370 = len(yyv370) + if yyrg370 { + copy(yyv370, yyv2370) } - } else if yyl409 != len(yyv409) { - yyv409 = yyv409[:yyl409] - yyc409 = true + } else if yyl370 != len(yyv370) { + yyv370 = yyv370[:yyl370] + yyc370 = true } - yyj409 := 0 - for ; yyj409 < yyrr409; yyj409++ { - yyh409.ElemContainerState(yyj409) + yyj370 := 0 + for ; yyj370 < yyrr370; yyj370++ { + yyh370.ElemContainerState(yyj370) if r.TryDecodeAsNil() { - yyv409[yyj409] = Job{} + yyv370[yyj370] = Job{} } else { - yyv410 := &yyv409[yyj409] - yyv410.CodecDecodeSelf(d) + yyv371 := &yyv370[yyj370] + yyv371.CodecDecodeSelf(d) } } - if yyrt409 { - for ; yyj409 < yyl409; yyj409++ { - yyv409 = append(yyv409, Job{}) - yyh409.ElemContainerState(yyj409) + if yyrt370 { + for ; yyj370 < yyl370; yyj370++ { + yyv370 = append(yyv370, Job{}) + yyh370.ElemContainerState(yyj370) if r.TryDecodeAsNil() { - yyv409[yyj409] = Job{} + yyv370[yyj370] = Job{} } else { - yyv411 := &yyv409[yyj409] - yyv411.CodecDecodeSelf(d) + yyv372 := &yyv370[yyj370] + yyv372.CodecDecodeSelf(d) } } } } else { - yyj409 := 0 - for ; !r.CheckBreak(); yyj409++ { + yyj370 := 0 + for ; !r.CheckBreak(); yyj370++ { - if yyj409 >= len(yyv409) { - yyv409 = append(yyv409, Job{}) // var yyz409 Job - yyc409 = true + if yyj370 >= len(yyv370) { + yyv370 = append(yyv370, Job{}) // var yyz370 Job + yyc370 = true } - yyh409.ElemContainerState(yyj409) - if yyj409 < len(yyv409) { + yyh370.ElemContainerState(yyj370) + if yyj370 < len(yyv370) { if r.TryDecodeAsNil() { - yyv409[yyj409] = Job{} + yyv370[yyj370] = Job{} } else { - yyv412 := &yyv409[yyj409] - yyv412.CodecDecodeSelf(d) + yyv373 := &yyv370[yyj370] + yyv373.CodecDecodeSelf(d) } } else { @@ -4833,17 +4313,17 @@ func (x codecSelfer1234) decSliceJob(v *[]Job, d *codec1978.Decoder) { } } - if yyj409 < len(yyv409) { - yyv409 = yyv409[:yyj409] - yyc409 = true - } else if yyj409 == 0 && yyv409 == nil { - yyv409 = []Job{} - yyc409 = true + if yyj370 < len(yyv370) { + yyv370 = yyv370[:yyj370] + yyc370 = true + } else if yyj370 == 0 && yyv370 == nil { + yyv370 = []Job{} + yyc370 = true } } - yyh409.End() - if yyc409 { - *v = yyv409 + yyh370.End() + if yyc370 { + *v = yyv370 } } @@ -4852,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 _, yyv413 := range v { + for _, yyv374 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy414 := &yyv413 - yy414.CodecEncodeSelf(e) + yy375 := &yyv374 + yy375.CodecEncodeSelf(e) } z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -4865,83 +4345,83 @@ func (x codecSelfer1234) decSliceJobCondition(v *[]JobCondition, d *codec1978.De z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - 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 + 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 yyl415 > 0 { - var yyrr415, yyrl415 int - var yyrt415 bool - if yyl415 > cap(yyv415) { + } else if yyl376 > 0 { + var yyrr376, yyrl376 int + var yyrt376 bool + if yyl376 > cap(yyv376) { - yyrg415 := len(yyv415) > 0 - yyv2415 := yyv415 - yyrl415, yyrt415 = z.DecInferLen(yyl415, z.DecBasicHandle().MaxInitLen, 112) - if yyrt415 { - if yyrl415 <= cap(yyv415) { - yyv415 = yyv415[:yyrl415] + 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 { - yyv415 = make([]JobCondition, yyrl415) + yyv376 = make([]JobCondition, yyrl376) } } else { - yyv415 = make([]JobCondition, yyrl415) + yyv376 = make([]JobCondition, yyrl376) } - yyc415 = true - yyrr415 = len(yyv415) - if yyrg415 { - copy(yyv415, yyv2415) + yyc376 = true + yyrr376 = len(yyv376) + if yyrg376 { + copy(yyv376, yyv2376) } - } else if yyl415 != len(yyv415) { - yyv415 = yyv415[:yyl415] - yyc415 = true + } else if yyl376 != len(yyv376) { + yyv376 = yyv376[:yyl376] + yyc376 = true } - yyj415 := 0 - for ; yyj415 < yyrr415; yyj415++ { - yyh415.ElemContainerState(yyj415) + yyj376 := 0 + for ; yyj376 < yyrr376; yyj376++ { + yyh376.ElemContainerState(yyj376) if r.TryDecodeAsNil() { - yyv415[yyj415] = JobCondition{} + yyv376[yyj376] = JobCondition{} } else { - yyv416 := &yyv415[yyj415] - yyv416.CodecDecodeSelf(d) + yyv377 := &yyv376[yyj376] + yyv377.CodecDecodeSelf(d) } } - if yyrt415 { - for ; yyj415 < yyl415; yyj415++ { - yyv415 = append(yyv415, JobCondition{}) - yyh415.ElemContainerState(yyj415) + if yyrt376 { + for ; yyj376 < yyl376; yyj376++ { + yyv376 = append(yyv376, JobCondition{}) + yyh376.ElemContainerState(yyj376) if r.TryDecodeAsNil() { - yyv415[yyj415] = JobCondition{} + yyv376[yyj376] = JobCondition{} } else { - yyv417 := &yyv415[yyj415] - yyv417.CodecDecodeSelf(d) + yyv378 := &yyv376[yyj376] + yyv378.CodecDecodeSelf(d) } } } } else { - yyj415 := 0 - for ; !r.CheckBreak(); yyj415++ { + yyj376 := 0 + for ; !r.CheckBreak(); yyj376++ { - if yyj415 >= len(yyv415) { - yyv415 = append(yyv415, JobCondition{}) // var yyz415 JobCondition - yyc415 = true + if yyj376 >= len(yyv376) { + yyv376 = append(yyv376, JobCondition{}) // var yyz376 JobCondition + yyc376 = true } - yyh415.ElemContainerState(yyj415) - if yyj415 < len(yyv415) { + yyh376.ElemContainerState(yyj376) + if yyj376 < len(yyv376) { if r.TryDecodeAsNil() { - yyv415[yyj415] = JobCondition{} + yyv376[yyj376] = JobCondition{} } else { - yyv418 := &yyv415[yyj415] - yyv418.CodecDecodeSelf(d) + yyv379 := &yyv376[yyj376] + yyv379.CodecDecodeSelf(d) } } else { @@ -4949,115 +4429,115 @@ func (x codecSelfer1234) decSliceJobCondition(v *[]JobCondition, d *codec1978.De } } - if yyj415 < len(yyv415) { - yyv415 = yyv415[:yyj415] - yyc415 = true - } else if yyj415 == 0 && yyv415 == nil { - yyv415 = []JobCondition{} - yyc415 = true + if yyj376 < len(yyv376) { + yyv376 = yyv376[:yyj376] + yyc376 = true + } else if yyj376 == 0 && yyv376 == nil { + yyv376 = []JobCondition{} + yyc376 = true } } - yyh415.End() - if yyc415 { - *v = yyv415 + yyh376.End() + if yyc376 { + *v = yyv376 } } -func (x codecSelfer1234) encSliceScheduledJob(v []ScheduledJob, e *codec1978.Encoder) { +func (x codecSelfer1234) encSliceCronJob(v []CronJob, e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r r.EncodeArrayStart(len(v)) - for _, yyv419 := range v { + for _, yyv380 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy420 := &yyv419 - yy420.CodecEncodeSelf(e) + yy381 := &yyv380 + yy381.CodecEncodeSelf(e) } z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } -func (x codecSelfer1234) decSliceScheduledJob(v *[]ScheduledJob, d *codec1978.Decoder) { +func (x codecSelfer1234) decSliceCronJob(v *[]CronJob, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - 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 + yyv382 := *v + yyh382, yyl382 := z.DecSliceHelperStart() + var yyc382 bool + if yyl382 == 0 { + if yyv382 == nil { + yyv382 = []CronJob{} + yyc382 = true + } else if len(yyv382) != 0 { + yyv382 = yyv382[:0] + yyc382 = true } - } else if yyl421 > 0 { - var yyrr421, yyrl421 int - var yyrt421 bool - if yyl421 > cap(yyv421) { + } else if yyl382 > 0 { + var yyrr382, yyrl382 int + var yyrt382 bool + if yyl382 > cap(yyv382) { - yyrg421 := len(yyv421) > 0 - yyv2421 := yyv421 - yyrl421, yyrt421 = z.DecInferLen(yyl421, z.DecBasicHandle().MaxInitLen, 1072) - if yyrt421 { - if yyrl421 <= cap(yyv421) { - yyv421 = yyv421[:yyrl421] + yyrg382 := len(yyv382) > 0 + yyv2382 := yyv382 + yyrl382, yyrt382 = z.DecInferLen(yyl382, z.DecBasicHandle().MaxInitLen, 1072) + if yyrt382 { + if yyrl382 <= cap(yyv382) { + yyv382 = yyv382[:yyrl382] } else { - yyv421 = make([]ScheduledJob, yyrl421) + yyv382 = make([]CronJob, yyrl382) } } else { - yyv421 = make([]ScheduledJob, yyrl421) + yyv382 = make([]CronJob, yyrl382) } - yyc421 = true - yyrr421 = len(yyv421) - if yyrg421 { - copy(yyv421, yyv2421) + yyc382 = true + yyrr382 = len(yyv382) + if yyrg382 { + copy(yyv382, yyv2382) } - } else if yyl421 != len(yyv421) { - yyv421 = yyv421[:yyl421] - yyc421 = true + } else if yyl382 != len(yyv382) { + yyv382 = yyv382[:yyl382] + yyc382 = true } - yyj421 := 0 - for ; yyj421 < yyrr421; yyj421++ { - yyh421.ElemContainerState(yyj421) + yyj382 := 0 + for ; yyj382 < yyrr382; yyj382++ { + yyh382.ElemContainerState(yyj382) if r.TryDecodeAsNil() { - yyv421[yyj421] = ScheduledJob{} + yyv382[yyj382] = CronJob{} } else { - yyv422 := &yyv421[yyj421] - yyv422.CodecDecodeSelf(d) + yyv383 := &yyv382[yyj382] + yyv383.CodecDecodeSelf(d) } } - if yyrt421 { - for ; yyj421 < yyl421; yyj421++ { - yyv421 = append(yyv421, ScheduledJob{}) - yyh421.ElemContainerState(yyj421) + if yyrt382 { + for ; yyj382 < yyl382; yyj382++ { + yyv382 = append(yyv382, CronJob{}) + yyh382.ElemContainerState(yyj382) if r.TryDecodeAsNil() { - yyv421[yyj421] = ScheduledJob{} + yyv382[yyj382] = CronJob{} } else { - yyv423 := &yyv421[yyj421] - yyv423.CodecDecodeSelf(d) + yyv384 := &yyv382[yyj382] + yyv384.CodecDecodeSelf(d) } } } } else { - yyj421 := 0 - for ; !r.CheckBreak(); yyj421++ { + yyj382 := 0 + for ; !r.CheckBreak(); yyj382++ { - if yyj421 >= len(yyv421) { - yyv421 = append(yyv421, ScheduledJob{}) // var yyz421 ScheduledJob - yyc421 = true + if yyj382 >= len(yyv382) { + yyv382 = append(yyv382, CronJob{}) // var yyz382 CronJob + yyc382 = true } - yyh421.ElemContainerState(yyj421) - if yyj421 < len(yyv421) { + yyh382.ElemContainerState(yyj382) + if yyj382 < len(yyv382) { if r.TryDecodeAsNil() { - yyv421[yyj421] = ScheduledJob{} + yyv382[yyj382] = CronJob{} } else { - yyv424 := &yyv421[yyj421] - yyv424.CodecDecodeSelf(d) + yyv385 := &yyv382[yyj382] + yyv385.CodecDecodeSelf(d) } } else { @@ -5065,17 +4545,17 @@ func (x codecSelfer1234) decSliceScheduledJob(v *[]ScheduledJob, d *codec1978.De } } - if yyj421 < len(yyv421) { - yyv421 = yyv421[:yyj421] - yyc421 = true - } else if yyj421 == 0 && yyv421 == nil { - yyv421 = []ScheduledJob{} - yyc421 = true + if yyj382 < len(yyv382) { + yyv382 = yyv382[:yyj382] + yyc382 = true + } else if yyj382 == 0 && yyv382 == nil { + yyv382 = []CronJob{} + yyc382 = true } } - yyh421.End() - if yyc421 { - *v = yyv421 + yyh382.End() + if yyc382 { + *v = yyv382 } } @@ -5084,10 +4564,10 @@ func (x codecSelfer1234) encSlicev1_ObjectReference(v []pkg2_v1.ObjectReference, z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r r.EncodeArrayStart(len(v)) - for _, yyv425 := range v { + for _, yyv386 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy426 := &yyv425 - yy426.CodecEncodeSelf(e) + yy387 := &yyv386 + yy387.CodecEncodeSelf(e) } z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -5097,83 +4577,83 @@ func (x codecSelfer1234) decSlicev1_ObjectReference(v *[]pkg2_v1.ObjectReference z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - 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 + yyv388 := *v + yyh388, yyl388 := z.DecSliceHelperStart() + var yyc388 bool + if yyl388 == 0 { + if yyv388 == nil { + yyv388 = []pkg2_v1.ObjectReference{} + yyc388 = true + } else if len(yyv388) != 0 { + yyv388 = yyv388[:0] + yyc388 = true } - } else if yyl427 > 0 { - var yyrr427, yyrl427 int - var yyrt427 bool - if yyl427 > cap(yyv427) { + } else if yyl388 > 0 { + var yyrr388, yyrl388 int + var yyrt388 bool + if yyl388 > cap(yyv388) { - yyrg427 := len(yyv427) > 0 - yyv2427 := yyv427 - yyrl427, yyrt427 = z.DecInferLen(yyl427, z.DecBasicHandle().MaxInitLen, 112) - if yyrt427 { - if yyrl427 <= cap(yyv427) { - yyv427 = yyv427[:yyrl427] + 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 { - yyv427 = make([]pkg2_v1.ObjectReference, yyrl427) + yyv388 = make([]pkg2_v1.ObjectReference, yyrl388) } } else { - yyv427 = make([]pkg2_v1.ObjectReference, yyrl427) + yyv388 = make([]pkg2_v1.ObjectReference, yyrl388) } - yyc427 = true - yyrr427 = len(yyv427) - if yyrg427 { - copy(yyv427, yyv2427) + yyc388 = true + yyrr388 = len(yyv388) + if yyrg388 { + copy(yyv388, yyv2388) } - } else if yyl427 != len(yyv427) { - yyv427 = yyv427[:yyl427] - yyc427 = true + } else if yyl388 != len(yyv388) { + yyv388 = yyv388[:yyl388] + yyc388 = true } - yyj427 := 0 - for ; yyj427 < yyrr427; yyj427++ { - yyh427.ElemContainerState(yyj427) + yyj388 := 0 + for ; yyj388 < yyrr388; yyj388++ { + yyh388.ElemContainerState(yyj388) if r.TryDecodeAsNil() { - yyv427[yyj427] = pkg2_v1.ObjectReference{} + yyv388[yyj388] = pkg2_v1.ObjectReference{} } else { - yyv428 := &yyv427[yyj427] - yyv428.CodecDecodeSelf(d) + yyv389 := &yyv388[yyj388] + yyv389.CodecDecodeSelf(d) } } - if yyrt427 { - for ; yyj427 < yyl427; yyj427++ { - yyv427 = append(yyv427, pkg2_v1.ObjectReference{}) - yyh427.ElemContainerState(yyj427) + if yyrt388 { + for ; yyj388 < yyl388; yyj388++ { + yyv388 = append(yyv388, pkg2_v1.ObjectReference{}) + yyh388.ElemContainerState(yyj388) if r.TryDecodeAsNil() { - yyv427[yyj427] = pkg2_v1.ObjectReference{} + yyv388[yyj388] = pkg2_v1.ObjectReference{} } else { - yyv429 := &yyv427[yyj427] - yyv429.CodecDecodeSelf(d) + yyv390 := &yyv388[yyj388] + yyv390.CodecDecodeSelf(d) } } } } else { - yyj427 := 0 - for ; !r.CheckBreak(); yyj427++ { + yyj388 := 0 + for ; !r.CheckBreak(); yyj388++ { - if yyj427 >= len(yyv427) { - yyv427 = append(yyv427, pkg2_v1.ObjectReference{}) // var yyz427 pkg2_v1.ObjectReference - yyc427 = true + if yyj388 >= len(yyv388) { + yyv388 = append(yyv388, pkg2_v1.ObjectReference{}) // var yyz388 pkg2_v1.ObjectReference + yyc388 = true } - yyh427.ElemContainerState(yyj427) - if yyj427 < len(yyv427) { + yyh388.ElemContainerState(yyj388) + if yyj388 < len(yyv388) { if r.TryDecodeAsNil() { - yyv427[yyj427] = pkg2_v1.ObjectReference{} + yyv388[yyj388] = pkg2_v1.ObjectReference{} } else { - yyv430 := &yyv427[yyj427] - yyv430.CodecDecodeSelf(d) + yyv391 := &yyv388[yyj388] + yyv391.CodecDecodeSelf(d) } } else { @@ -5181,132 +4661,16 @@ func (x codecSelfer1234) decSlicev1_ObjectReference(v *[]pkg2_v1.ObjectReference } } - if yyj427 < len(yyv427) { - yyv427 = yyv427[:yyj427] - yyc427 = true - } else if yyj427 == 0 && yyv427 == nil { - yyv427 = []pkg2_v1.ObjectReference{} - yyc427 = true + if yyj388 < len(yyv388) { + yyv388 = yyv388[:yyj388] + yyc388 = true + } else if yyj388 == 0 && yyv388 == nil { + yyv388 = []pkg2_v1.ObjectReference{} + yyc388 = true } } - yyh427.End() - if yyc427 { - *v = yyv427 - } -} - -func (x codecSelfer1234) encSliceLabelSelectorRequirement(v []LabelSelectorRequirement, e *codec1978.Encoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - r.EncodeArrayStart(len(v)) - for _, yyv431 := range v { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy432 := &yyv431 - yy432.CodecEncodeSelf(e) - } - z.EncSendContainerState(codecSelfer_containerArrayEnd1234) -} - -func (x codecSelfer1234) decSliceLabelSelectorRequirement(v *[]LabelSelectorRequirement, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - - 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) { - - 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 { - yyv433 = make([]LabelSelectorRequirement, yyrl433) - } - } else { - yyv433 = make([]LabelSelectorRequirement, yyrl433) - } - yyc433 = true - yyrr433 = len(yyv433) - if yyrg433 { - copy(yyv433, yyv2433) - } - } else if yyl433 != len(yyv433) { - yyv433 = yyv433[:yyl433] - yyc433 = true - } - yyj433 := 0 - for ; yyj433 < yyrr433; yyj433++ { - yyh433.ElemContainerState(yyj433) - if r.TryDecodeAsNil() { - yyv433[yyj433] = LabelSelectorRequirement{} - } else { - yyv434 := &yyv433[yyj433] - yyv434.CodecDecodeSelf(d) - } - - } - if yyrt433 { - for ; yyj433 < yyl433; yyj433++ { - yyv433 = append(yyv433, LabelSelectorRequirement{}) - yyh433.ElemContainerState(yyj433) - if r.TryDecodeAsNil() { - yyv433[yyj433] = LabelSelectorRequirement{} - } else { - yyv435 := &yyv433[yyj433] - yyv435.CodecDecodeSelf(d) - } - - } - } - - } else { - yyj433 := 0 - for ; !r.CheckBreak(); yyj433++ { - - if yyj433 >= len(yyv433) { - yyv433 = append(yyv433, LabelSelectorRequirement{}) // var yyz433 LabelSelectorRequirement - yyc433 = true - } - yyh433.ElemContainerState(yyj433) - if yyj433 < len(yyv433) { - if r.TryDecodeAsNil() { - yyv433[yyj433] = LabelSelectorRequirement{} - } else { - yyv436 := &yyv433[yyj433] - yyv436.CodecDecodeSelf(d) - } - - } else { - z.DecSwallow() - } - - } - if yyj433 < len(yyv433) { - yyv433 = yyv433[:yyj433] - yyc433 = true - } else if yyj433 == 0 && yyv433 == nil { - yyv433 = []LabelSelectorRequirement{} - yyc433 = true - } - } - yyh433.End() - if yyc433 { - *v = yyv433 + yyh388.End() + if yyc388 { + *v = yyv388 } } diff --git a/vendor/k8s.io/client-go/1.5/pkg/apis/batch/v2alpha1/types.go b/vendor/k8s.io/client-go/pkg/apis/batch/v2alpha1/types.go similarity index 75% rename from vendor/k8s.io/client-go/1.5/pkg/apis/batch/v2alpha1/types.go rename to vendor/k8s.io/client-go/pkg/apis/batch/v2alpha1/types.go index c8c6025c3..a610272e3 100644 --- a/vendor/k8s.io/client-go/1.5/pkg/apis/batch/v2alpha1/types.go +++ b/vendor/k8s.io/client-go/pkg/apis/batch/v2alpha1/types.go @@ -17,23 +17,28 @@ limitations under the License. package v2alpha1 import ( - "k8s.io/client-go/1.5/pkg/api/unversioned" - "k8s.io/client-go/1.5/pkg/api/v1" + "k8s.io/client-go/pkg/api/unversioned" + "k8s.io/client-go/pkg/api/v1" ) +// +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 + // +optional v1.ObjectMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"` // 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 + // +optional Spec JobSpec `json:"spec,omitempty" protobuf:"bytes,2,opt,name=spec"` // 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 + // +optional Status JobStatus `json:"status,omitempty" protobuf:"bytes,3,opt,name=status"` } @@ -42,6 +47,7 @@ type JobList struct { unversioned.TypeMeta `json:",inline"` // Standard list metadata // More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata + // +optional unversioned.ListMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"` // Items is the list of Job. @@ -53,10 +59,12 @@ type JobTemplate struct { unversioned.TypeMeta `json:",inline"` // Standard object's metadata. // More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata + // +optional v1.ObjectMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"` // Template defines jobs that will be created from this template // http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status + // +optional Template JobTemplateSpec `json:"template,omitempty" protobuf:"bytes,2,opt,name=template"` } @@ -64,10 +72,12 @@ type JobTemplate struct { 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 + // +optional v1.ObjectMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"` // Specification of the desired behavior of the job. // More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status + // +optional Spec JobSpec `json:"spec,omitempty" protobuf:"bytes,2,opt,name=spec"` } @@ -78,7 +88,8 @@ type JobSpec struct { // 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. - // More info: http://releases.k8s.io/HEAD/docs/user-guide/jobs.md + // More info: http://kubernetes.io/docs/user-guide/jobs + // +optional Parallelism *int32 `json:"parallelism,omitempty" protobuf:"varint,1,opt,name=parallelism"` // Completions specifies the desired number of successfully finished pods the @@ -86,17 +97,20 @@ type JobSpec struct { // 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. - // More info: http://releases.k8s.io/HEAD/docs/user-guide/jobs.md + // More info: http://kubernetes.io/docs/user-guide/jobs + // +optional Completions *int32 `json:"completions,omitempty" protobuf:"varint,2,opt,name=completions"` // 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 + // +optional ActiveDeadlineSeconds *int64 `json:"activeDeadlineSeconds,omitempty" protobuf:"varint,3,opt,name=activeDeadlineSeconds"` // Selector is a label query over pods that should match the pod count. // Normally, the system sets this field for you. - // More info: http://releases.k8s.io/HEAD/docs/user-guide/labels.md#label-selectors - Selector *LabelSelector `json:"selector,omitempty" protobuf:"bytes,4,opt,name=selector"` + // More info: http://kubernetes.io/docs/user-guide/labels#label-selectors + // +optional + Selector *unversioned.LabelSelector `json:"selector,omitempty" protobuf:"bytes,4,opt,name=selector"` // ManualSelector controls generation of pod labels and pod selectors. // Leave `manualSelector` unset unless you are certain what you are doing. @@ -108,11 +122,12 @@ type JobSpec struct { // `manualSelector=true` in jobs that were created with the old `extensions/v1beta1` // API. // More info: http://releases.k8s.io/HEAD/docs/design/selector-generation.md + // +optional ManualSelector *bool `json:"manualSelector,omitempty" protobuf:"varint,5,opt,name=manualSelector"` // Template is the object that describes the pod that will be created when // executing a job. - // More info: http://releases.k8s.io/HEAD/docs/user-guide/jobs.md + // More info: http://kubernetes.io/docs/user-guide/jobs Template v1.PodTemplateSpec `json:"template" protobuf:"bytes,6,opt,name=template"` } @@ -120,26 +135,32 @@ type JobSpec struct { type JobStatus struct { // Conditions represent the latest available observations of an object's current state. - // More info: http://releases.k8s.io/HEAD/docs/user-guide/jobs.md + // More info: http://kubernetes.io/docs/user-guide/jobs + // +optional Conditions []JobCondition `json:"conditions,omitempty" patchStrategy:"merge" patchMergeKey:"type" protobuf:"bytes,1,rep,name=conditions"` // 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. + // +optional StartTime *unversioned.Time `json:"startTime,omitempty" protobuf:"bytes,2,opt,name=startTime"` // 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. + // +optional CompletionTime *unversioned.Time `json:"completionTime,omitempty" protobuf:"bytes,3,opt,name=completionTime"` // Active is the number of actively running pods. + // +optional Active int32 `json:"active,omitempty" protobuf:"varint,4,opt,name=active"` // Succeeded is the number of pods which reached Phase Succeeded. + // +optional Succeeded int32 `json:"succeeded,omitempty" protobuf:"varint,5,opt,name=succeeded"` // Failed is the number of pods which reached Phase Failed. + // +optional Failed int32 `json:"failed,omitempty" protobuf:"varint,6,opt,name=failed"` } @@ -160,61 +181,74 @@ type JobCondition struct { // Status of the condition, one of True, False, Unknown. Status v1.ConditionStatus `json:"status" protobuf:"bytes,2,opt,name=status,casttype=k8s.io/kubernetes/pkg/api/v1.ConditionStatus"` // Last time the condition was checked. + // +optional LastProbeTime unversioned.Time `json:"lastProbeTime,omitempty" protobuf:"bytes,3,opt,name=lastProbeTime"` // Last time the condition transit from one status to another. + // +optional LastTransitionTime unversioned.Time `json:"lastTransitionTime,omitempty" protobuf:"bytes,4,opt,name=lastTransitionTime"` // (brief) reason for the condition's last transition. + // +optional Reason string `json:"reason,omitempty" protobuf:"bytes,5,opt,name=reason"` // Human readable message indicating details about last transition. + // +optional Message string `json:"message,omitempty" protobuf:"bytes,6,opt,name=message"` } -// ScheduledJob represents the configuration of a single scheduled job. -type ScheduledJob struct { +// +genclient=true + +// CronJob represents the configuration of a single cron job. +type CronJob struct { unversioned.TypeMeta `json:",inline"` // Standard object's metadata. // More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata + // +optional v1.ObjectMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"` // 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" protobuf:"bytes,2,opt,name=spec"` + // +optional + Spec CronJobSpec `json:"spec,omitempty" protobuf:"bytes,2,opt,name=spec"` // 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" protobuf:"bytes,3,opt,name=status"` + // +optional + Status CronJobStatus `json:"status,omitempty" protobuf:"bytes,3,opt,name=status"` } -// ScheduledJobList is a collection of scheduled jobs. -type ScheduledJobList struct { +// CronJobList is a collection of cron jobs. +type CronJobList struct { unversioned.TypeMeta `json:",inline"` // Standard list metadata // More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata + // +optional unversioned.ListMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"` - // Items is the list of ScheduledJob. - Items []ScheduledJob `json:"items" protobuf:"bytes,2,rep,name=items"` + // Items is the list of CronJob. + Items []CronJob `json:"items" protobuf:"bytes,2,rep,name=items"` } -// ScheduledJobSpec describes how the job execution will look like and when it will actually run. -type ScheduledJobSpec struct { +// CronJobSpec describes how the job execution will look like and when it will actually run. +type CronJobSpec struct { // Schedule contains the schedule in Cron format, see https://en.wikipedia.org/wiki/Cron. Schedule string `json:"schedule" protobuf:"bytes,1,opt,name=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. + // +optional StartingDeadlineSeconds *int64 `json:"startingDeadlineSeconds,omitempty" protobuf:"varint,2,opt,name=startingDeadlineSeconds"` // ConcurrencyPolicy specifies how to treat concurrent executions of a Job. + // +optional ConcurrencyPolicy ConcurrencyPolicy `json:"concurrencyPolicy,omitempty" protobuf:"bytes,3,opt,name=concurrencyPolicy,casttype=ConcurrencyPolicy"` // Suspend flag tells the controller to suspend subsequent executions, it does // not apply to already started executions. Defaults to false. + // +optional 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. + // executing a CronJob. JobTemplate JobTemplateSpec `json:"jobTemplate" protobuf:"bytes,5,opt,name=jobTemplate"` } @@ -225,7 +259,7 @@ type ScheduledJobSpec struct { type ConcurrencyPolicy string const ( - // AllowConcurrent allows ScheduledJobs to run concurrently. + // AllowConcurrent allows CronJobs to run concurrently. AllowConcurrent ConcurrencyPolicy = "Allow" // ForbidConcurrent forbids concurrent runs, skipping next run if previous @@ -236,48 +270,13 @@ const ( ReplaceConcurrent ConcurrencyPolicy = "Replace" ) -// ScheduledJobStatus represents the current state of a Job. -type ScheduledJobStatus struct { +// CronJobStatus represents the current state of a cron job. +type CronJobStatus struct { // Active holds pointers to currently running jobs. + // +optional Active []v1.ObjectReference `json:"active,omitempty" protobuf:"bytes,1,rep,name=active"` // LastScheduleTime keeps information of when was the last time the job was successfully scheduled. + // +optional LastScheduleTime *unversioned.Time `json:"lastScheduleTime,omitempty" protobuf:"bytes,4,opt,name=lastScheduleTime"` } - -// 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/vendor/k8s.io/client-go/1.5/pkg/apis/batch/v2alpha1/types_swagger_doc_generated.go b/vendor/k8s.io/client-go/pkg/apis/batch/v2alpha1/types_swagger_doc_generated.go similarity index 73% rename from vendor/k8s.io/client-go/1.5/pkg/apis/batch/v2alpha1/types_swagger_doc_generated.go rename to vendor/k8s.io/client-go/pkg/apis/batch/v2alpha1/types_swagger_doc_generated.go index 17d43318d..6e8c40a0f 100644 --- a/vendor/k8s.io/client-go/1.5/pkg/apis/batch/v2alpha1/types_swagger_doc_generated.go +++ b/vendor/k8s.io/client-go/pkg/apis/batch/v2alpha1/types_swagger_doc_generated.go @@ -27,6 +27,50 @@ package v2alpha1 // Those methods can be generated by using hack/update-generated-swagger-docs.sh // AUTO-GENERATED FUNCTIONS START HERE +var map_CronJob = map[string]string{ + "": "CronJob represents the configuration of a single cron job.", + "metadata": "Standard object's metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata", + "spec": "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", + "status": "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", +} + +func (CronJob) SwaggerDoc() map[string]string { + return map_CronJob +} + +var map_CronJobList = map[string]string{ + "": "CronJobList is a collection of cron jobs.", + "metadata": "Standard list metadata More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata", + "items": "Items is the list of CronJob.", +} + +func (CronJobList) SwaggerDoc() map[string]string { + return map_CronJobList +} + +var map_CronJobSpec = map[string]string{ + "": "CronJobSpec describes how the job execution will look like and when it will actually run.", + "schedule": "Schedule contains the schedule in Cron format, see https://en.wikipedia.org/wiki/Cron.", + "startingDeadlineSeconds": "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.", + "concurrencyPolicy": "ConcurrencyPolicy specifies how to treat concurrent executions of a Job.", + "suspend": "Suspend flag tells the controller to suspend subsequent executions, it does not apply to already started executions. Defaults to false.", + "jobTemplate": "JobTemplate is the object that describes the job that will be created when executing a CronJob.", +} + +func (CronJobSpec) SwaggerDoc() map[string]string { + return map_CronJobSpec +} + +var map_CronJobStatus = map[string]string{ + "": "CronJobStatus represents the current state of a cron job.", + "active": "Active holds pointers to currently running jobs.", + "lastScheduleTime": "LastScheduleTime keeps information of when was the last time the job was successfully scheduled.", +} + +func (CronJobStatus) SwaggerDoc() map[string]string { + return map_CronJobStatus +} + var map_Job = map[string]string{ "": "Job represents the configuration of a single job.", "metadata": "Standard object's metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata", @@ -64,12 +108,12 @@ func (JobList) SwaggerDoc() map[string]string { var map_JobSpec = map[string]string{ "": "JobSpec describes how the job execution will look like.", - "parallelism": "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. More info: http://releases.k8s.io/HEAD/docs/user-guide/jobs.md", - "completions": "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. More info: http://releases.k8s.io/HEAD/docs/user-guide/jobs.md", + "parallelism": "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. More info: http://kubernetes.io/docs/user-guide/jobs", + "completions": "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. More info: http://kubernetes.io/docs/user-guide/jobs", "activeDeadlineSeconds": "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", - "selector": "Selector is a label query over pods that should match the pod count. Normally, the system sets this field for you. More info: http://releases.k8s.io/HEAD/docs/user-guide/labels.md#label-selectors", + "selector": "Selector is a label query over pods that should match the pod count. Normally, the system sets this field for you. More info: http://kubernetes.io/docs/user-guide/labels#label-selectors", "manualSelector": "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. More info: http://releases.k8s.io/HEAD/docs/design/selector-generation.md", - "template": "Template is the object that describes the pod that will be created when executing a job. More info: http://releases.k8s.io/HEAD/docs/user-guide/jobs.md", + "template": "Template is the object that describes the pod that will be created when executing a job. More info: http://kubernetes.io/docs/user-guide/jobs", } func (JobSpec) SwaggerDoc() map[string]string { @@ -78,7 +122,7 @@ func (JobSpec) SwaggerDoc() map[string]string { var map_JobStatus = map[string]string{ "": "JobStatus represents the current state of a Job.", - "conditions": "Conditions represent the latest available observations of an object's current state. More info: http://releases.k8s.io/HEAD/docs/user-guide/jobs.md", + "conditions": "Conditions represent the latest available observations of an object's current state. More info: http://kubernetes.io/docs/user-guide/jobs", "startTime": "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.", "completionTime": "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.", "active": "Active is the number of actively running pods.", @@ -110,69 +154,4 @@ func (JobTemplateSpec) SwaggerDoc() map[string]string { return map_JobTemplateSpec } -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_ScheduledJob = map[string]string{ - "": "ScheduledJob represents the configuration of a single scheduled job.", - "metadata": "Standard object's metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata", - "spec": "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", - "status": "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", -} - -func (ScheduledJob) SwaggerDoc() map[string]string { - return map_ScheduledJob -} - -var map_ScheduledJobList = map[string]string{ - "": "ScheduledJobList is a collection of scheduled jobs.", - "metadata": "Standard list metadata More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata", - "items": "Items is the list of ScheduledJob.", -} - -func (ScheduledJobList) SwaggerDoc() map[string]string { - return map_ScheduledJobList -} - -var map_ScheduledJobSpec = map[string]string{ - "": "ScheduledJobSpec describes how the job execution will look like and when it will actually run.", - "schedule": "Schedule contains the schedule in Cron format, see https://en.wikipedia.org/wiki/Cron.", - "startingDeadlineSeconds": "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.", - "concurrencyPolicy": "ConcurrencyPolicy specifies how to treat concurrent executions of a Job.", - "suspend": "Suspend flag tells the controller to suspend subsequent executions, it does not apply to already started executions. Defaults to false.", - "jobTemplate": "JobTemplate is the object that describes the job that will be created when executing a ScheduledJob.", -} - -func (ScheduledJobSpec) SwaggerDoc() map[string]string { - return map_ScheduledJobSpec -} - -var map_ScheduledJobStatus = map[string]string{ - "": "ScheduledJobStatus represents the current state of a Job.", - "active": "Active holds pointers to currently running jobs.", - "lastScheduleTime": "LastScheduleTime keeps information of when was the last time the job was successfully scheduled.", -} - -func (ScheduledJobStatus) SwaggerDoc() map[string]string { - return map_ScheduledJobStatus -} - // AUTO-GENERATED FUNCTIONS END HERE diff --git a/vendor/k8s.io/client-go/pkg/apis/batch/v2alpha1/zz_generated.conversion.go b/vendor/k8s.io/client-go/pkg/apis/batch/v2alpha1/zz_generated.conversion.go new file mode 100644 index 000000000..fd7027181 --- /dev/null +++ b/vendor/k8s.io/client-go/pkg/apis/batch/v2alpha1/zz_generated.conversion.go @@ -0,0 +1,406 @@ +// +build !ignore_autogenerated + +/* +Copyright 2017 The Kubernetes Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT 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 v2alpha1 + +import ( + api "k8s.io/client-go/pkg/api" + unversioned "k8s.io/client-go/pkg/api/unversioned" + v1 "k8s.io/client-go/pkg/api/v1" + batch "k8s.io/client-go/pkg/apis/batch" + conversion "k8s.io/client-go/pkg/conversion" + runtime "k8s.io/client-go/pkg/runtime" + unsafe "unsafe" +) + +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_v2alpha1_CronJob_To_batch_CronJob, + Convert_batch_CronJob_To_v2alpha1_CronJob, + Convert_v2alpha1_CronJobList_To_batch_CronJobList, + Convert_batch_CronJobList_To_v2alpha1_CronJobList, + Convert_v2alpha1_CronJobSpec_To_batch_CronJobSpec, + Convert_batch_CronJobSpec_To_v2alpha1_CronJobSpec, + Convert_v2alpha1_CronJobStatus_To_batch_CronJobStatus, + Convert_batch_CronJobStatus_To_v2alpha1_CronJobStatus, + Convert_v2alpha1_Job_To_batch_Job, + Convert_batch_Job_To_v2alpha1_Job, + Convert_v2alpha1_JobCondition_To_batch_JobCondition, + Convert_batch_JobCondition_To_v2alpha1_JobCondition, + Convert_v2alpha1_JobList_To_batch_JobList, + Convert_batch_JobList_To_v2alpha1_JobList, + Convert_v2alpha1_JobSpec_To_batch_JobSpec, + Convert_batch_JobSpec_To_v2alpha1_JobSpec, + Convert_v2alpha1_JobStatus_To_batch_JobStatus, + Convert_batch_JobStatus_To_v2alpha1_JobStatus, + Convert_v2alpha1_JobTemplate_To_batch_JobTemplate, + Convert_batch_JobTemplate_To_v2alpha1_JobTemplate, + Convert_v2alpha1_JobTemplateSpec_To_batch_JobTemplateSpec, + Convert_batch_JobTemplateSpec_To_v2alpha1_JobTemplateSpec, + ) +} + +func autoConvert_v2alpha1_CronJob_To_batch_CronJob(in *CronJob, out *batch.CronJob, s conversion.Scope) error { + // TODO: Inefficient conversion - can we improve it? + if err := s.Convert(&in.ObjectMeta, &out.ObjectMeta, 0); err != nil { + return err + } + if err := Convert_v2alpha1_CronJobSpec_To_batch_CronJobSpec(&in.Spec, &out.Spec, s); err != nil { + return err + } + if err := Convert_v2alpha1_CronJobStatus_To_batch_CronJobStatus(&in.Status, &out.Status, s); err != nil { + return err + } + return nil +} + +func Convert_v2alpha1_CronJob_To_batch_CronJob(in *CronJob, out *batch.CronJob, s conversion.Scope) error { + return autoConvert_v2alpha1_CronJob_To_batch_CronJob(in, out, s) +} + +func autoConvert_batch_CronJob_To_v2alpha1_CronJob(in *batch.CronJob, out *CronJob, s conversion.Scope) error { + // TODO: Inefficient conversion - can we improve it? + if err := s.Convert(&in.ObjectMeta, &out.ObjectMeta, 0); err != nil { + return err + } + if err := Convert_batch_CronJobSpec_To_v2alpha1_CronJobSpec(&in.Spec, &out.Spec, s); err != nil { + return err + } + if err := Convert_batch_CronJobStatus_To_v2alpha1_CronJobStatus(&in.Status, &out.Status, s); err != nil { + return err + } + return nil +} + +func Convert_batch_CronJob_To_v2alpha1_CronJob(in *batch.CronJob, out *CronJob, s conversion.Scope) error { + return autoConvert_batch_CronJob_To_v2alpha1_CronJob(in, out, s) +} + +func autoConvert_v2alpha1_CronJobList_To_batch_CronJobList(in *CronJobList, out *batch.CronJobList, s conversion.Scope) error { + out.ListMeta = in.ListMeta + if in.Items != nil { + in, out := &in.Items, &out.Items + *out = make([]batch.CronJob, len(*in)) + for i := range *in { + if err := Convert_v2alpha1_CronJob_To_batch_CronJob(&(*in)[i], &(*out)[i], s); err != nil { + return err + } + } + } else { + out.Items = nil + } + return nil +} + +func Convert_v2alpha1_CronJobList_To_batch_CronJobList(in *CronJobList, out *batch.CronJobList, s conversion.Scope) error { + return autoConvert_v2alpha1_CronJobList_To_batch_CronJobList(in, out, s) +} + +func autoConvert_batch_CronJobList_To_v2alpha1_CronJobList(in *batch.CronJobList, out *CronJobList, s conversion.Scope) error { + out.ListMeta = in.ListMeta + if in.Items != nil { + in, out := &in.Items, &out.Items + *out = make([]CronJob, len(*in)) + for i := range *in { + if err := Convert_batch_CronJob_To_v2alpha1_CronJob(&(*in)[i], &(*out)[i], s); err != nil { + return err + } + } + } else { + out.Items = nil + } + return nil +} + +func Convert_batch_CronJobList_To_v2alpha1_CronJobList(in *batch.CronJobList, out *CronJobList, s conversion.Scope) error { + return autoConvert_batch_CronJobList_To_v2alpha1_CronJobList(in, out, s) +} + +func autoConvert_v2alpha1_CronJobSpec_To_batch_CronJobSpec(in *CronJobSpec, out *batch.CronJobSpec, s conversion.Scope) error { + out.Schedule = in.Schedule + out.StartingDeadlineSeconds = (*int64)(unsafe.Pointer(in.StartingDeadlineSeconds)) + out.ConcurrencyPolicy = batch.ConcurrencyPolicy(in.ConcurrencyPolicy) + out.Suspend = (*bool)(unsafe.Pointer(in.Suspend)) + if err := Convert_v2alpha1_JobTemplateSpec_To_batch_JobTemplateSpec(&in.JobTemplate, &out.JobTemplate, s); err != nil { + return err + } + return nil +} + +func Convert_v2alpha1_CronJobSpec_To_batch_CronJobSpec(in *CronJobSpec, out *batch.CronJobSpec, s conversion.Scope) error { + return autoConvert_v2alpha1_CronJobSpec_To_batch_CronJobSpec(in, out, s) +} + +func autoConvert_batch_CronJobSpec_To_v2alpha1_CronJobSpec(in *batch.CronJobSpec, out *CronJobSpec, s conversion.Scope) error { + out.Schedule = in.Schedule + out.StartingDeadlineSeconds = (*int64)(unsafe.Pointer(in.StartingDeadlineSeconds)) + out.ConcurrencyPolicy = ConcurrencyPolicy(in.ConcurrencyPolicy) + out.Suspend = (*bool)(unsafe.Pointer(in.Suspend)) + if err := Convert_batch_JobTemplateSpec_To_v2alpha1_JobTemplateSpec(&in.JobTemplate, &out.JobTemplate, s); err != nil { + return err + } + return nil +} + +func Convert_batch_CronJobSpec_To_v2alpha1_CronJobSpec(in *batch.CronJobSpec, out *CronJobSpec, s conversion.Scope) error { + return autoConvert_batch_CronJobSpec_To_v2alpha1_CronJobSpec(in, out, s) +} + +func autoConvert_v2alpha1_CronJobStatus_To_batch_CronJobStatus(in *CronJobStatus, out *batch.CronJobStatus, s conversion.Scope) error { + out.Active = *(*[]api.ObjectReference)(unsafe.Pointer(&in.Active)) + out.LastScheduleTime = (*unversioned.Time)(unsafe.Pointer(in.LastScheduleTime)) + return nil +} + +func Convert_v2alpha1_CronJobStatus_To_batch_CronJobStatus(in *CronJobStatus, out *batch.CronJobStatus, s conversion.Scope) error { + return autoConvert_v2alpha1_CronJobStatus_To_batch_CronJobStatus(in, out, s) +} + +func autoConvert_batch_CronJobStatus_To_v2alpha1_CronJobStatus(in *batch.CronJobStatus, out *CronJobStatus, s conversion.Scope) error { + out.Active = *(*[]v1.ObjectReference)(unsafe.Pointer(&in.Active)) + out.LastScheduleTime = (*unversioned.Time)(unsafe.Pointer(in.LastScheduleTime)) + return nil +} + +func Convert_batch_CronJobStatus_To_v2alpha1_CronJobStatus(in *batch.CronJobStatus, out *CronJobStatus, s conversion.Scope) error { + return autoConvert_batch_CronJobStatus_To_v2alpha1_CronJobStatus(in, out, s) +} + +func autoConvert_v2alpha1_Job_To_batch_Job(in *Job, out *batch.Job, s conversion.Scope) error { + // TODO: Inefficient conversion - can we improve it? + if err := s.Convert(&in.ObjectMeta, &out.ObjectMeta, 0); err != nil { + return err + } + if err := Convert_v2alpha1_JobSpec_To_batch_JobSpec(&in.Spec, &out.Spec, s); err != nil { + return err + } + if err := Convert_v2alpha1_JobStatus_To_batch_JobStatus(&in.Status, &out.Status, s); err != nil { + return err + } + return nil +} + +func Convert_v2alpha1_Job_To_batch_Job(in *Job, out *batch.Job, s conversion.Scope) error { + return autoConvert_v2alpha1_Job_To_batch_Job(in, out, s) +} + +func autoConvert_batch_Job_To_v2alpha1_Job(in *batch.Job, out *Job, s conversion.Scope) error { + // TODO: Inefficient conversion - can we improve it? + if err := s.Convert(&in.ObjectMeta, &out.ObjectMeta, 0); err != nil { + return err + } + if err := Convert_batch_JobSpec_To_v2alpha1_JobSpec(&in.Spec, &out.Spec, s); err != nil { + return err + } + if err := Convert_batch_JobStatus_To_v2alpha1_JobStatus(&in.Status, &out.Status, s); err != nil { + return err + } + return nil +} + +func Convert_batch_Job_To_v2alpha1_Job(in *batch.Job, out *Job, s conversion.Scope) error { + return autoConvert_batch_Job_To_v2alpha1_Job(in, out, s) +} + +func autoConvert_v2alpha1_JobCondition_To_batch_JobCondition(in *JobCondition, out *batch.JobCondition, s conversion.Scope) error { + out.Type = batch.JobConditionType(in.Type) + out.Status = api.ConditionStatus(in.Status) + out.LastProbeTime = in.LastProbeTime + out.LastTransitionTime = in.LastTransitionTime + out.Reason = in.Reason + out.Message = in.Message + return nil +} + +func Convert_v2alpha1_JobCondition_To_batch_JobCondition(in *JobCondition, out *batch.JobCondition, s conversion.Scope) error { + return autoConvert_v2alpha1_JobCondition_To_batch_JobCondition(in, out, s) +} + +func autoConvert_batch_JobCondition_To_v2alpha1_JobCondition(in *batch.JobCondition, out *JobCondition, s conversion.Scope) error { + out.Type = JobConditionType(in.Type) + out.Status = v1.ConditionStatus(in.Status) + out.LastProbeTime = in.LastProbeTime + out.LastTransitionTime = in.LastTransitionTime + out.Reason = in.Reason + out.Message = in.Message + return nil +} + +func Convert_batch_JobCondition_To_v2alpha1_JobCondition(in *batch.JobCondition, out *JobCondition, s conversion.Scope) error { + return autoConvert_batch_JobCondition_To_v2alpha1_JobCondition(in, out, s) +} + +func autoConvert_v2alpha1_JobList_To_batch_JobList(in *JobList, out *batch.JobList, s conversion.Scope) error { + out.ListMeta = in.ListMeta + if in.Items != nil { + in, out := &in.Items, &out.Items + *out = make([]batch.Job, len(*in)) + for i := range *in { + if err := Convert_v2alpha1_Job_To_batch_Job(&(*in)[i], &(*out)[i], s); err != nil { + return err + } + } + } else { + out.Items = nil + } + return nil +} + +func Convert_v2alpha1_JobList_To_batch_JobList(in *JobList, out *batch.JobList, s conversion.Scope) error { + return autoConvert_v2alpha1_JobList_To_batch_JobList(in, out, s) +} + +func autoConvert_batch_JobList_To_v2alpha1_JobList(in *batch.JobList, out *JobList, s conversion.Scope) error { + 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 := Convert_batch_Job_To_v2alpha1_Job(&(*in)[i], &(*out)[i], s); err != nil { + return err + } + } + } else { + out.Items = nil + } + return nil +} + +func Convert_batch_JobList_To_v2alpha1_JobList(in *batch.JobList, out *JobList, s conversion.Scope) error { + return autoConvert_batch_JobList_To_v2alpha1_JobList(in, out, s) +} + +func autoConvert_v2alpha1_JobSpec_To_batch_JobSpec(in *JobSpec, out *batch.JobSpec, s conversion.Scope) error { + out.Parallelism = (*int32)(unsafe.Pointer(in.Parallelism)) + out.Completions = (*int32)(unsafe.Pointer(in.Completions)) + out.ActiveDeadlineSeconds = (*int64)(unsafe.Pointer(in.ActiveDeadlineSeconds)) + out.Selector = (*unversioned.LabelSelector)(unsafe.Pointer(in.Selector)) + out.ManualSelector = (*bool)(unsafe.Pointer(in.ManualSelector)) + if err := v1.Convert_v1_PodTemplateSpec_To_api_PodTemplateSpec(&in.Template, &out.Template, s); err != nil { + return err + } + return nil +} + +func autoConvert_batch_JobSpec_To_v2alpha1_JobSpec(in *batch.JobSpec, out *JobSpec, s conversion.Scope) error { + out.Parallelism = (*int32)(unsafe.Pointer(in.Parallelism)) + out.Completions = (*int32)(unsafe.Pointer(in.Completions)) + out.ActiveDeadlineSeconds = (*int64)(unsafe.Pointer(in.ActiveDeadlineSeconds)) + out.Selector = (*unversioned.LabelSelector)(unsafe.Pointer(in.Selector)) + out.ManualSelector = (*bool)(unsafe.Pointer(in.ManualSelector)) + if err := v1.Convert_api_PodTemplateSpec_To_v1_PodTemplateSpec(&in.Template, &out.Template, s); err != nil { + return err + } + return nil +} + +func autoConvert_v2alpha1_JobStatus_To_batch_JobStatus(in *JobStatus, out *batch.JobStatus, s conversion.Scope) error { + out.Conditions = *(*[]batch.JobCondition)(unsafe.Pointer(&in.Conditions)) + out.StartTime = (*unversioned.Time)(unsafe.Pointer(in.StartTime)) + out.CompletionTime = (*unversioned.Time)(unsafe.Pointer(in.CompletionTime)) + out.Active = in.Active + out.Succeeded = in.Succeeded + out.Failed = in.Failed + return nil +} + +func Convert_v2alpha1_JobStatus_To_batch_JobStatus(in *JobStatus, out *batch.JobStatus, s conversion.Scope) error { + return autoConvert_v2alpha1_JobStatus_To_batch_JobStatus(in, out, s) +} + +func autoConvert_batch_JobStatus_To_v2alpha1_JobStatus(in *batch.JobStatus, out *JobStatus, s conversion.Scope) error { + out.Conditions = *(*[]JobCondition)(unsafe.Pointer(&in.Conditions)) + out.StartTime = (*unversioned.Time)(unsafe.Pointer(in.StartTime)) + out.CompletionTime = (*unversioned.Time)(unsafe.Pointer(in.CompletionTime)) + out.Active = in.Active + out.Succeeded = in.Succeeded + out.Failed = in.Failed + return nil +} + +func Convert_batch_JobStatus_To_v2alpha1_JobStatus(in *batch.JobStatus, out *JobStatus, s conversion.Scope) error { + return autoConvert_batch_JobStatus_To_v2alpha1_JobStatus(in, out, s) +} + +func autoConvert_v2alpha1_JobTemplate_To_batch_JobTemplate(in *JobTemplate, out *batch.JobTemplate, s conversion.Scope) error { + // TODO: Inefficient conversion - can we improve it? + if err := s.Convert(&in.ObjectMeta, &out.ObjectMeta, 0); err != nil { + return err + } + if err := Convert_v2alpha1_JobTemplateSpec_To_batch_JobTemplateSpec(&in.Template, &out.Template, s); err != nil { + return err + } + return nil +} + +func Convert_v2alpha1_JobTemplate_To_batch_JobTemplate(in *JobTemplate, out *batch.JobTemplate, s conversion.Scope) error { + return autoConvert_v2alpha1_JobTemplate_To_batch_JobTemplate(in, out, s) +} + +func autoConvert_batch_JobTemplate_To_v2alpha1_JobTemplate(in *batch.JobTemplate, out *JobTemplate, s conversion.Scope) error { + // TODO: Inefficient conversion - can we improve it? + if err := s.Convert(&in.ObjectMeta, &out.ObjectMeta, 0); err != nil { + return err + } + if err := Convert_batch_JobTemplateSpec_To_v2alpha1_JobTemplateSpec(&in.Template, &out.Template, s); err != nil { + return err + } + return nil +} + +func Convert_batch_JobTemplate_To_v2alpha1_JobTemplate(in *batch.JobTemplate, out *JobTemplate, s conversion.Scope) error { + return autoConvert_batch_JobTemplate_To_v2alpha1_JobTemplate(in, out, s) +} + +func autoConvert_v2alpha1_JobTemplateSpec_To_batch_JobTemplateSpec(in *JobTemplateSpec, out *batch.JobTemplateSpec, s conversion.Scope) error { + // TODO: Inefficient conversion - can we improve it? + if err := s.Convert(&in.ObjectMeta, &out.ObjectMeta, 0); err != nil { + return err + } + if err := Convert_v2alpha1_JobSpec_To_batch_JobSpec(&in.Spec, &out.Spec, s); err != nil { + return err + } + return nil +} + +func Convert_v2alpha1_JobTemplateSpec_To_batch_JobTemplateSpec(in *JobTemplateSpec, out *batch.JobTemplateSpec, s conversion.Scope) error { + return autoConvert_v2alpha1_JobTemplateSpec_To_batch_JobTemplateSpec(in, out, s) +} + +func autoConvert_batch_JobTemplateSpec_To_v2alpha1_JobTemplateSpec(in *batch.JobTemplateSpec, out *JobTemplateSpec, s conversion.Scope) error { + // TODO: Inefficient conversion - can we improve it? + if err := s.Convert(&in.ObjectMeta, &out.ObjectMeta, 0); err != nil { + return err + } + if err := Convert_batch_JobSpec_To_v2alpha1_JobSpec(&in.Spec, &out.Spec, s); err != nil { + return err + } + return nil +} + +func Convert_batch_JobTemplateSpec_To_v2alpha1_JobTemplateSpec(in *batch.JobTemplateSpec, out *JobTemplateSpec, s conversion.Scope) error { + return autoConvert_batch_JobTemplateSpec_To_v2alpha1_JobTemplateSpec(in, out, s) +} diff --git a/vendor/k8s.io/client-go/1.5/pkg/apis/batch/v2alpha1/zz_generated.deepcopy.go b/vendor/k8s.io/client-go/pkg/apis/batch/v2alpha1/zz_generated.deepcopy.go similarity index 69% rename from vendor/k8s.io/client-go/1.5/pkg/apis/batch/v2alpha1/zz_generated.deepcopy.go rename to vendor/k8s.io/client-go/pkg/apis/batch/v2alpha1/zz_generated.deepcopy.go index 6d9dd9b2b..04272c304 100644 --- a/vendor/k8s.io/client-go/1.5/pkg/apis/batch/v2alpha1/zz_generated.deepcopy.go +++ b/vendor/k8s.io/client-go/pkg/apis/batch/v2alpha1/zz_generated.deepcopy.go @@ -1,7 +1,7 @@ // +build !ignore_autogenerated /* -Copyright 2016 The Kubernetes Authors. +Copyright 2017 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -21,10 +21,10 @@ limitations under the License. package v2alpha1 import ( - unversioned "k8s.io/client-go/1.5/pkg/api/unversioned" - v1 "k8s.io/client-go/1.5/pkg/api/v1" - conversion "k8s.io/client-go/1.5/pkg/conversion" - runtime "k8s.io/client-go/1.5/pkg/runtime" + unversioned "k8s.io/client-go/pkg/api/unversioned" + v1 "k8s.io/client-go/pkg/api/v1" + conversion "k8s.io/client-go/pkg/conversion" + runtime "k8s.io/client-go/pkg/runtime" reflect "reflect" ) @@ -36,6 +36,10 @@ func init() { // to allow building arbitrary schemes. func RegisterDeepCopies(scheme *runtime.Scheme) error { return scheme.AddGeneratedDeepCopyFuncs( + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_v2alpha1_CronJob, InType: reflect.TypeOf(&CronJob{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_v2alpha1_CronJobList, InType: reflect.TypeOf(&CronJobList{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_v2alpha1_CronJobSpec, InType: reflect.TypeOf(&CronJobSpec{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_v2alpha1_CronJobStatus, InType: reflect.TypeOf(&CronJobStatus{})}, 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{})}, @@ -43,15 +47,99 @@ func RegisterDeepCopies(scheme *runtime.Scheme) error { 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_CronJob(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*CronJob) + out := out.(*CronJob) + out.TypeMeta = in.TypeMeta + if err := v1.DeepCopy_v1_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, c); err != nil { + return err + } + if err := DeepCopy_v2alpha1_CronJobSpec(&in.Spec, &out.Spec, c); err != nil { + return err + } + if err := DeepCopy_v2alpha1_CronJobStatus(&in.Status, &out.Status, c); err != nil { + return err + } + return nil + } +} + +func DeepCopy_v2alpha1_CronJobList(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*CronJobList) + out := out.(*CronJobList) + out.TypeMeta = in.TypeMeta + out.ListMeta = in.ListMeta + if in.Items != nil { + in, out := &in.Items, &out.Items + *out = make([]CronJob, len(*in)) + for i := range *in { + if err := DeepCopy_v2alpha1_CronJob(&(*in)[i], &(*out)[i], c); err != nil { + return err + } + } + } else { + out.Items = nil + } + return nil + } +} + +func DeepCopy_v2alpha1_CronJobSpec(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*CronJobSpec) + out := out.(*CronJobSpec) + 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_CronJobStatus(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*CronJobStatus) + out := out.(*CronJobStatus) + 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 + } +} + func DeepCopy_v2alpha1_Job(in interface{}, out interface{}, c *conversion.Cloner) error { { in := in.(*Job) @@ -132,8 +220,8 @@ func DeepCopy_v2alpha1_JobSpec(in interface{}, out interface{}, c *conversion.Cl } if in.Selector != nil { in, out := &in.Selector, &out.Selector - *out = new(LabelSelector) - if err := DeepCopy_v2alpha1_LabelSelector(*in, *out, c); err != nil { + *out = new(unversioned.LabelSelector) + if err := unversioned.DeepCopy_unversioned_LabelSelector(*in, *out, c); err != nil { return err } } else { @@ -217,138 +305,3 @@ func DeepCopy_v2alpha1_JobTemplateSpec(in interface{}, out interface{}, c *conve 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/vendor/k8s.io/client-go/pkg/apis/batch/v2alpha1/zz_generated.defaults.go b/vendor/k8s.io/client-go/pkg/apis/batch/v2alpha1/zz_generated.defaults.go new file mode 100644 index 000000000..81552b703 --- /dev/null +++ b/vendor/k8s.io/client-go/pkg/apis/batch/v2alpha1/zz_generated.defaults.go @@ -0,0 +1,402 @@ +// +build !ignore_autogenerated + +/* +Copyright 2017 The Kubernetes Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT 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 defaulter-gen. Do not edit it manually! + +package v2alpha1 + +import ( + v1 "k8s.io/client-go/pkg/api/v1" + runtime "k8s.io/client-go/pkg/runtime" +) + +// RegisterDefaults adds defaulters functions to the given scheme. +// Public to allow building arbitrary schemes. +// All generated defaulters are covering - they call all nested defaulters. +func RegisterDefaults(scheme *runtime.Scheme) error { + scheme.AddTypeDefaultingFunc(&CronJob{}, func(obj interface{}) { SetObjectDefaults_CronJob(obj.(*CronJob)) }) + scheme.AddTypeDefaultingFunc(&CronJobList{}, func(obj interface{}) { SetObjectDefaults_CronJobList(obj.(*CronJobList)) }) + scheme.AddTypeDefaultingFunc(&Job{}, func(obj interface{}) { SetObjectDefaults_Job(obj.(*Job)) }) + scheme.AddTypeDefaultingFunc(&JobList{}, func(obj interface{}) { SetObjectDefaults_JobList(obj.(*JobList)) }) + scheme.AddTypeDefaultingFunc(&JobTemplate{}, func(obj interface{}) { SetObjectDefaults_JobTemplate(obj.(*JobTemplate)) }) + return nil +} + +func SetObjectDefaults_CronJob(in *CronJob) { + SetDefaults_CronJob(in) + v1.SetDefaults_PodSpec(&in.Spec.JobTemplate.Spec.Template.Spec) + for i := range in.Spec.JobTemplate.Spec.Template.Spec.Volumes { + a := &in.Spec.JobTemplate.Spec.Template.Spec.Volumes[i] + v1.SetDefaults_Volume(a) + if a.VolumeSource.Secret != nil { + v1.SetDefaults_SecretVolumeSource(a.VolumeSource.Secret) + } + if a.VolumeSource.ISCSI != nil { + v1.SetDefaults_ISCSIVolumeSource(a.VolumeSource.ISCSI) + } + if a.VolumeSource.RBD != nil { + v1.SetDefaults_RBDVolumeSource(a.VolumeSource.RBD) + } + if a.VolumeSource.DownwardAPI != nil { + v1.SetDefaults_DownwardAPIVolumeSource(a.VolumeSource.DownwardAPI) + for j := range a.VolumeSource.DownwardAPI.Items { + b := &a.VolumeSource.DownwardAPI.Items[j] + if b.FieldRef != nil { + v1.SetDefaults_ObjectFieldSelector(b.FieldRef) + } + } + } + if a.VolumeSource.ConfigMap != nil { + v1.SetDefaults_ConfigMapVolumeSource(a.VolumeSource.ConfigMap) + } + if a.VolumeSource.AzureDisk != nil { + v1.SetDefaults_AzureDiskVolumeSource(a.VolumeSource.AzureDisk) + } + } + for i := range in.Spec.JobTemplate.Spec.Template.Spec.InitContainers { + a := &in.Spec.JobTemplate.Spec.Template.Spec.InitContainers[i] + v1.SetDefaults_Container(a) + for j := range a.Ports { + b := &a.Ports[j] + v1.SetDefaults_ContainerPort(b) + } + for j := range a.Env { + b := &a.Env[j] + if b.ValueFrom != nil { + if b.ValueFrom.FieldRef != nil { + v1.SetDefaults_ObjectFieldSelector(b.ValueFrom.FieldRef) + } + } + } + v1.SetDefaults_ResourceList(&a.Resources.Limits) + v1.SetDefaults_ResourceList(&a.Resources.Requests) + if a.LivenessProbe != nil { + v1.SetDefaults_Probe(a.LivenessProbe) + if a.LivenessProbe.Handler.HTTPGet != nil { + v1.SetDefaults_HTTPGetAction(a.LivenessProbe.Handler.HTTPGet) + } + } + if a.ReadinessProbe != nil { + v1.SetDefaults_Probe(a.ReadinessProbe) + if a.ReadinessProbe.Handler.HTTPGet != nil { + v1.SetDefaults_HTTPGetAction(a.ReadinessProbe.Handler.HTTPGet) + } + } + if a.Lifecycle != nil { + if a.Lifecycle.PostStart != nil { + if a.Lifecycle.PostStart.HTTPGet != nil { + v1.SetDefaults_HTTPGetAction(a.Lifecycle.PostStart.HTTPGet) + } + } + if a.Lifecycle.PreStop != nil { + if a.Lifecycle.PreStop.HTTPGet != nil { + v1.SetDefaults_HTTPGetAction(a.Lifecycle.PreStop.HTTPGet) + } + } + } + } + for i := range in.Spec.JobTemplate.Spec.Template.Spec.Containers { + a := &in.Spec.JobTemplate.Spec.Template.Spec.Containers[i] + v1.SetDefaults_Container(a) + for j := range a.Ports { + b := &a.Ports[j] + v1.SetDefaults_ContainerPort(b) + } + for j := range a.Env { + b := &a.Env[j] + if b.ValueFrom != nil { + if b.ValueFrom.FieldRef != nil { + v1.SetDefaults_ObjectFieldSelector(b.ValueFrom.FieldRef) + } + } + } + v1.SetDefaults_ResourceList(&a.Resources.Limits) + v1.SetDefaults_ResourceList(&a.Resources.Requests) + if a.LivenessProbe != nil { + v1.SetDefaults_Probe(a.LivenessProbe) + if a.LivenessProbe.Handler.HTTPGet != nil { + v1.SetDefaults_HTTPGetAction(a.LivenessProbe.Handler.HTTPGet) + } + } + if a.ReadinessProbe != nil { + v1.SetDefaults_Probe(a.ReadinessProbe) + if a.ReadinessProbe.Handler.HTTPGet != nil { + v1.SetDefaults_HTTPGetAction(a.ReadinessProbe.Handler.HTTPGet) + } + } + if a.Lifecycle != nil { + if a.Lifecycle.PostStart != nil { + if a.Lifecycle.PostStart.HTTPGet != nil { + v1.SetDefaults_HTTPGetAction(a.Lifecycle.PostStart.HTTPGet) + } + } + if a.Lifecycle.PreStop != nil { + if a.Lifecycle.PreStop.HTTPGet != nil { + v1.SetDefaults_HTTPGetAction(a.Lifecycle.PreStop.HTTPGet) + } + } + } + } +} + +func SetObjectDefaults_CronJobList(in *CronJobList) { + for i := range in.Items { + a := &in.Items[i] + SetObjectDefaults_CronJob(a) + } +} + +func SetObjectDefaults_Job(in *Job) { + SetDefaults_Job(in) + v1.SetDefaults_PodSpec(&in.Spec.Template.Spec) + for i := range in.Spec.Template.Spec.Volumes { + a := &in.Spec.Template.Spec.Volumes[i] + v1.SetDefaults_Volume(a) + if a.VolumeSource.Secret != nil { + v1.SetDefaults_SecretVolumeSource(a.VolumeSource.Secret) + } + if a.VolumeSource.ISCSI != nil { + v1.SetDefaults_ISCSIVolumeSource(a.VolumeSource.ISCSI) + } + if a.VolumeSource.RBD != nil { + v1.SetDefaults_RBDVolumeSource(a.VolumeSource.RBD) + } + if a.VolumeSource.DownwardAPI != nil { + v1.SetDefaults_DownwardAPIVolumeSource(a.VolumeSource.DownwardAPI) + for j := range a.VolumeSource.DownwardAPI.Items { + b := &a.VolumeSource.DownwardAPI.Items[j] + if b.FieldRef != nil { + v1.SetDefaults_ObjectFieldSelector(b.FieldRef) + } + } + } + if a.VolumeSource.ConfigMap != nil { + v1.SetDefaults_ConfigMapVolumeSource(a.VolumeSource.ConfigMap) + } + if a.VolumeSource.AzureDisk != nil { + v1.SetDefaults_AzureDiskVolumeSource(a.VolumeSource.AzureDisk) + } + } + for i := range in.Spec.Template.Spec.InitContainers { + a := &in.Spec.Template.Spec.InitContainers[i] + v1.SetDefaults_Container(a) + for j := range a.Ports { + b := &a.Ports[j] + v1.SetDefaults_ContainerPort(b) + } + for j := range a.Env { + b := &a.Env[j] + if b.ValueFrom != nil { + if b.ValueFrom.FieldRef != nil { + v1.SetDefaults_ObjectFieldSelector(b.ValueFrom.FieldRef) + } + } + } + v1.SetDefaults_ResourceList(&a.Resources.Limits) + v1.SetDefaults_ResourceList(&a.Resources.Requests) + if a.LivenessProbe != nil { + v1.SetDefaults_Probe(a.LivenessProbe) + if a.LivenessProbe.Handler.HTTPGet != nil { + v1.SetDefaults_HTTPGetAction(a.LivenessProbe.Handler.HTTPGet) + } + } + if a.ReadinessProbe != nil { + v1.SetDefaults_Probe(a.ReadinessProbe) + if a.ReadinessProbe.Handler.HTTPGet != nil { + v1.SetDefaults_HTTPGetAction(a.ReadinessProbe.Handler.HTTPGet) + } + } + if a.Lifecycle != nil { + if a.Lifecycle.PostStart != nil { + if a.Lifecycle.PostStart.HTTPGet != nil { + v1.SetDefaults_HTTPGetAction(a.Lifecycle.PostStart.HTTPGet) + } + } + if a.Lifecycle.PreStop != nil { + if a.Lifecycle.PreStop.HTTPGet != nil { + v1.SetDefaults_HTTPGetAction(a.Lifecycle.PreStop.HTTPGet) + } + } + } + } + for i := range in.Spec.Template.Spec.Containers { + a := &in.Spec.Template.Spec.Containers[i] + v1.SetDefaults_Container(a) + for j := range a.Ports { + b := &a.Ports[j] + v1.SetDefaults_ContainerPort(b) + } + for j := range a.Env { + b := &a.Env[j] + if b.ValueFrom != nil { + if b.ValueFrom.FieldRef != nil { + v1.SetDefaults_ObjectFieldSelector(b.ValueFrom.FieldRef) + } + } + } + v1.SetDefaults_ResourceList(&a.Resources.Limits) + v1.SetDefaults_ResourceList(&a.Resources.Requests) + if a.LivenessProbe != nil { + v1.SetDefaults_Probe(a.LivenessProbe) + if a.LivenessProbe.Handler.HTTPGet != nil { + v1.SetDefaults_HTTPGetAction(a.LivenessProbe.Handler.HTTPGet) + } + } + if a.ReadinessProbe != nil { + v1.SetDefaults_Probe(a.ReadinessProbe) + if a.ReadinessProbe.Handler.HTTPGet != nil { + v1.SetDefaults_HTTPGetAction(a.ReadinessProbe.Handler.HTTPGet) + } + } + if a.Lifecycle != nil { + if a.Lifecycle.PostStart != nil { + if a.Lifecycle.PostStart.HTTPGet != nil { + v1.SetDefaults_HTTPGetAction(a.Lifecycle.PostStart.HTTPGet) + } + } + if a.Lifecycle.PreStop != nil { + if a.Lifecycle.PreStop.HTTPGet != nil { + v1.SetDefaults_HTTPGetAction(a.Lifecycle.PreStop.HTTPGet) + } + } + } + } +} + +func SetObjectDefaults_JobList(in *JobList) { + for i := range in.Items { + a := &in.Items[i] + SetObjectDefaults_Job(a) + } +} + +func SetObjectDefaults_JobTemplate(in *JobTemplate) { + v1.SetDefaults_PodSpec(&in.Template.Spec.Template.Spec) + for i := range in.Template.Spec.Template.Spec.Volumes { + a := &in.Template.Spec.Template.Spec.Volumes[i] + v1.SetDefaults_Volume(a) + if a.VolumeSource.Secret != nil { + v1.SetDefaults_SecretVolumeSource(a.VolumeSource.Secret) + } + if a.VolumeSource.ISCSI != nil { + v1.SetDefaults_ISCSIVolumeSource(a.VolumeSource.ISCSI) + } + if a.VolumeSource.RBD != nil { + v1.SetDefaults_RBDVolumeSource(a.VolumeSource.RBD) + } + if a.VolumeSource.DownwardAPI != nil { + v1.SetDefaults_DownwardAPIVolumeSource(a.VolumeSource.DownwardAPI) + for j := range a.VolumeSource.DownwardAPI.Items { + b := &a.VolumeSource.DownwardAPI.Items[j] + if b.FieldRef != nil { + v1.SetDefaults_ObjectFieldSelector(b.FieldRef) + } + } + } + if a.VolumeSource.ConfigMap != nil { + v1.SetDefaults_ConfigMapVolumeSource(a.VolumeSource.ConfigMap) + } + if a.VolumeSource.AzureDisk != nil { + v1.SetDefaults_AzureDiskVolumeSource(a.VolumeSource.AzureDisk) + } + } + for i := range in.Template.Spec.Template.Spec.InitContainers { + a := &in.Template.Spec.Template.Spec.InitContainers[i] + v1.SetDefaults_Container(a) + for j := range a.Ports { + b := &a.Ports[j] + v1.SetDefaults_ContainerPort(b) + } + for j := range a.Env { + b := &a.Env[j] + if b.ValueFrom != nil { + if b.ValueFrom.FieldRef != nil { + v1.SetDefaults_ObjectFieldSelector(b.ValueFrom.FieldRef) + } + } + } + v1.SetDefaults_ResourceList(&a.Resources.Limits) + v1.SetDefaults_ResourceList(&a.Resources.Requests) + if a.LivenessProbe != nil { + v1.SetDefaults_Probe(a.LivenessProbe) + if a.LivenessProbe.Handler.HTTPGet != nil { + v1.SetDefaults_HTTPGetAction(a.LivenessProbe.Handler.HTTPGet) + } + } + if a.ReadinessProbe != nil { + v1.SetDefaults_Probe(a.ReadinessProbe) + if a.ReadinessProbe.Handler.HTTPGet != nil { + v1.SetDefaults_HTTPGetAction(a.ReadinessProbe.Handler.HTTPGet) + } + } + if a.Lifecycle != nil { + if a.Lifecycle.PostStart != nil { + if a.Lifecycle.PostStart.HTTPGet != nil { + v1.SetDefaults_HTTPGetAction(a.Lifecycle.PostStart.HTTPGet) + } + } + if a.Lifecycle.PreStop != nil { + if a.Lifecycle.PreStop.HTTPGet != nil { + v1.SetDefaults_HTTPGetAction(a.Lifecycle.PreStop.HTTPGet) + } + } + } + } + for i := range in.Template.Spec.Template.Spec.Containers { + a := &in.Template.Spec.Template.Spec.Containers[i] + v1.SetDefaults_Container(a) + for j := range a.Ports { + b := &a.Ports[j] + v1.SetDefaults_ContainerPort(b) + } + for j := range a.Env { + b := &a.Env[j] + if b.ValueFrom != nil { + if b.ValueFrom.FieldRef != nil { + v1.SetDefaults_ObjectFieldSelector(b.ValueFrom.FieldRef) + } + } + } + v1.SetDefaults_ResourceList(&a.Resources.Limits) + v1.SetDefaults_ResourceList(&a.Resources.Requests) + if a.LivenessProbe != nil { + v1.SetDefaults_Probe(a.LivenessProbe) + if a.LivenessProbe.Handler.HTTPGet != nil { + v1.SetDefaults_HTTPGetAction(a.LivenessProbe.Handler.HTTPGet) + } + } + if a.ReadinessProbe != nil { + v1.SetDefaults_Probe(a.ReadinessProbe) + if a.ReadinessProbe.Handler.HTTPGet != nil { + v1.SetDefaults_HTTPGetAction(a.ReadinessProbe.Handler.HTTPGet) + } + } + if a.Lifecycle != nil { + if a.Lifecycle.PostStart != nil { + if a.Lifecycle.PostStart.HTTPGet != nil { + v1.SetDefaults_HTTPGetAction(a.Lifecycle.PostStart.HTTPGet) + } + } + if a.Lifecycle.PreStop != nil { + if a.Lifecycle.PreStop.HTTPGet != nil { + v1.SetDefaults_HTTPGetAction(a.Lifecycle.PreStop.HTTPGet) + } + } + } + } +} diff --git a/vendor/k8s.io/client-go/1.5/pkg/apis/batch/zz_generated.deepcopy.go b/vendor/k8s.io/client-go/pkg/apis/batch/zz_generated.deepcopy.go similarity index 81% rename from vendor/k8s.io/client-go/1.5/pkg/apis/batch/zz_generated.deepcopy.go rename to vendor/k8s.io/client-go/pkg/apis/batch/zz_generated.deepcopy.go index ef66e4412..8815a2477 100644 --- a/vendor/k8s.io/client-go/1.5/pkg/apis/batch/zz_generated.deepcopy.go +++ b/vendor/k8s.io/client-go/pkg/apis/batch/zz_generated.deepcopy.go @@ -1,7 +1,7 @@ // +build !ignore_autogenerated /* -Copyright 2016 The Kubernetes Authors. +Copyright 2017 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -21,10 +21,10 @@ limitations under the License. package batch import ( - api "k8s.io/client-go/1.5/pkg/api" - unversioned "k8s.io/client-go/1.5/pkg/api/unversioned" - conversion "k8s.io/client-go/1.5/pkg/conversion" - runtime "k8s.io/client-go/1.5/pkg/runtime" + api "k8s.io/client-go/pkg/api" + unversioned "k8s.io/client-go/pkg/api/unversioned" + conversion "k8s.io/client-go/pkg/conversion" + runtime "k8s.io/client-go/pkg/runtime" reflect "reflect" ) @@ -36,6 +36,10 @@ func init() { // to allow building arbitrary schemes. func RegisterDeepCopies(scheme *runtime.Scheme) error { return scheme.AddGeneratedDeepCopyFuncs( + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_batch_CronJob, InType: reflect.TypeOf(&CronJob{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_batch_CronJobList, InType: reflect.TypeOf(&CronJobList{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_batch_CronJobSpec, InType: reflect.TypeOf(&CronJobSpec{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_batch_CronJobStatus, InType: reflect.TypeOf(&CronJobStatus{})}, 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{})}, @@ -43,13 +47,99 @@ func RegisterDeepCopies(scheme *runtime.Scheme) error { 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_CronJob(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*CronJob) + out := out.(*CronJob) + out.TypeMeta = in.TypeMeta + if err := api.DeepCopy_api_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, c); err != nil { + return err + } + if err := DeepCopy_batch_CronJobSpec(&in.Spec, &out.Spec, c); err != nil { + return err + } + if err := DeepCopy_batch_CronJobStatus(&in.Status, &out.Status, c); err != nil { + return err + } + return nil + } +} + +func DeepCopy_batch_CronJobList(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*CronJobList) + out := out.(*CronJobList) + out.TypeMeta = in.TypeMeta + out.ListMeta = in.ListMeta + if in.Items != nil { + in, out := &in.Items, &out.Items + *out = make([]CronJob, len(*in)) + for i := range *in { + if err := DeepCopy_batch_CronJob(&(*in)[i], &(*out)[i], c); err != nil { + return err + } + } + } else { + out.Items = nil + } + return nil + } +} + +func DeepCopy_batch_CronJobSpec(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*CronJobSpec) + out := out.(*CronJobSpec) + 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_CronJobStatus(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*CronJobStatus) + out := out.(*CronJobStatus) + 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 + } +} + func DeepCopy_batch_Job(in interface{}, out interface{}, c *conversion.Cloner) error { { in := in.(*Job) @@ -215,93 +305,3 @@ func DeepCopy_batch_JobTemplateSpec(in interface{}, out interface{}, c *conversi 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/vendor/k8s.io/client-go/1.5/pkg/apis/certificates/doc.go b/vendor/k8s.io/client-go/pkg/apis/certificates/doc.go similarity index 100% rename from vendor/k8s.io/client-go/1.5/pkg/apis/certificates/doc.go rename to vendor/k8s.io/client-go/pkg/apis/certificates/doc.go diff --git a/vendor/k8s.io/client-go/1.5/pkg/apis/certificates/install/install.go b/vendor/k8s.io/client-go/pkg/apis/certificates/install/install.go similarity index 82% rename from vendor/k8s.io/client-go/1.5/pkg/apis/certificates/install/install.go rename to vendor/k8s.io/client-go/pkg/apis/certificates/install/install.go index 6ae040157..6abe6656a 100644 --- a/vendor/k8s.io/client-go/1.5/pkg/apis/certificates/install/install.go +++ b/vendor/k8s.io/client-go/pkg/apis/certificates/install/install.go @@ -19,10 +19,10 @@ limitations under the License. package install import ( - "k8s.io/client-go/1.5/pkg/apimachinery/announced" - "k8s.io/client-go/1.5/pkg/apis/certificates" - "k8s.io/client-go/1.5/pkg/apis/certificates/v1alpha1" - "k8s.io/client-go/1.5/pkg/util/sets" + "k8s.io/client-go/pkg/apimachinery/announced" + "k8s.io/client-go/pkg/apis/certificates" + "k8s.io/client-go/pkg/apis/certificates/v1alpha1" + "k8s.io/client-go/pkg/util/sets" ) func init() { @@ -30,7 +30,7 @@ func init() { &announced.GroupMetaFactoryArgs{ GroupName: certificates.GroupName, VersionPreferenceOrder: []string{v1alpha1.SchemeGroupVersion.Version}, - ImportPrefix: "k8s.io/client-go/1.5/pkg/apis/certificates", + ImportPrefix: "k8s.io/client-go/pkg/apis/certificates", RootScopedKinds: sets.NewString("CertificateSigningRequest"), AddInternalObjectsToScheme: certificates.AddToScheme, }, diff --git a/vendor/k8s.io/client-go/1.5/pkg/apis/certificates/register.go b/vendor/k8s.io/client-go/pkg/apis/certificates/register.go similarity index 94% rename from vendor/k8s.io/client-go/1.5/pkg/apis/certificates/register.go rename to vendor/k8s.io/client-go/pkg/apis/certificates/register.go index eeac015ab..e3f45969e 100644 --- a/vendor/k8s.io/client-go/1.5/pkg/apis/certificates/register.go +++ b/vendor/k8s.io/client-go/pkg/apis/certificates/register.go @@ -17,9 +17,9 @@ limitations under the License. package certificates import ( - "k8s.io/client-go/1.5/pkg/api" - "k8s.io/client-go/1.5/pkg/api/unversioned" - "k8s.io/client-go/1.5/pkg/runtime" + "k8s.io/client-go/pkg/api" + "k8s.io/client-go/pkg/api/unversioned" + "k8s.io/client-go/pkg/runtime" ) var ( diff --git a/vendor/k8s.io/client-go/1.5/pkg/apis/certificates/types.generated.go b/vendor/k8s.io/client-go/pkg/apis/certificates/types.generated.go similarity index 99% rename from vendor/k8s.io/client-go/1.5/pkg/apis/certificates/types.generated.go rename to vendor/k8s.io/client-go/pkg/apis/certificates/types.generated.go index b377c9ac8..5c17d300f 100644 --- a/vendor/k8s.io/client-go/1.5/pkg/apis/certificates/types.generated.go +++ b/vendor/k8s.io/client-go/pkg/apis/certificates/types.generated.go @@ -25,9 +25,9 @@ import ( "errors" "fmt" codec1978 "github.com/ugorji/go/codec" - pkg2_api "k8s.io/client-go/1.5/pkg/api" - pkg1_unversioned "k8s.io/client-go/1.5/pkg/api/unversioned" - pkg3_types "k8s.io/client-go/1.5/pkg/types" + pkg2_api "k8s.io/client-go/pkg/api" + pkg1_unversioned "k8s.io/client-go/pkg/api/unversioned" + pkg3_types "k8s.io/client-go/pkg/types" "reflect" "runtime" time "time" diff --git a/vendor/k8s.io/client-go/1.5/pkg/apis/certificates/types.go b/vendor/k8s.io/client-go/pkg/apis/certificates/types.go similarity index 86% rename from vendor/k8s.io/client-go/1.5/pkg/apis/certificates/types.go rename to vendor/k8s.io/client-go/pkg/apis/certificates/types.go index 43105fbc6..4fb5b01fa 100644 --- a/vendor/k8s.io/client-go/1.5/pkg/apis/certificates/types.go +++ b/vendor/k8s.io/client-go/pkg/apis/certificates/types.go @@ -17,8 +17,8 @@ limitations under the License. package certificates import ( - "k8s.io/client-go/1.5/pkg/api" - "k8s.io/client-go/1.5/pkg/api/unversioned" + "k8s.io/client-go/pkg/api" + "k8s.io/client-go/pkg/api/unversioned" ) // +genclient=true @@ -27,12 +27,15 @@ import ( // Describes a certificate signing request type CertificateSigningRequest struct { unversioned.TypeMeta `json:",inline"` - api.ObjectMeta `json:"metadata,omitempty"` + // +optional + api.ObjectMeta `json:"metadata,omitempty"` // The certificate request itself and any additional information. + // +optional Spec CertificateSigningRequestSpec `json:"spec,omitempty"` // Derived information about the request. + // +optional Status CertificateSigningRequestStatus `json:"status,omitempty"` } @@ -45,16 +48,21 @@ type CertificateSigningRequestSpec struct { // Information about the requesting user (if relevant) // See user.Info interface for details - Username string `json:"username,omitempty"` - UID string `json:"uid,omitempty"` - Groups []string `json:"groups,omitempty"` + // +optional + Username string `json:"username,omitempty"` + // +optional + UID string `json:"uid,omitempty"` + // +optional + Groups []string `json:"groups,omitempty"` } type CertificateSigningRequestStatus struct { // Conditions applied to the request, such as approval or denial. + // +optional Conditions []CertificateSigningRequestCondition `json:"conditions,omitempty"` // If request was approved, the controller will place the issued certificate here. + // +optional Certificate []byte `json:"certificate,omitempty"` } @@ -70,16 +78,21 @@ type CertificateSigningRequestCondition struct { // request approval state, currently Approved or Denied. Type RequestConditionType `json:"type"` // brief reason for the request state + // +optional Reason string `json:"reason,omitempty"` // human readable message with details about the request state + // +optional Message string `json:"message,omitempty"` // timestamp for the last update to this condition + // +optional LastUpdateTime unversioned.Time `json:"lastUpdateTime,omitempty"` } type CertificateSigningRequestList struct { unversioned.TypeMeta `json:",inline"` + // +optional unversioned.ListMeta `json:"metadata,omitempty"` + // +optional Items []CertificateSigningRequest `json:"items,omitempty"` } diff --git a/vendor/k8s.io/client-go/1.5/pkg/apis/certificates/v1alpha1/conversion.go b/vendor/k8s.io/client-go/pkg/apis/certificates/v1alpha1/conversion.go similarity index 94% rename from vendor/k8s.io/client-go/1.5/pkg/apis/certificates/v1alpha1/conversion.go rename to vendor/k8s.io/client-go/pkg/apis/certificates/v1alpha1/conversion.go index 171c4cbcf..e8e4a2974 100644 --- a/vendor/k8s.io/client-go/1.5/pkg/apis/certificates/v1alpha1/conversion.go +++ b/vendor/k8s.io/client-go/pkg/apis/certificates/v1alpha1/conversion.go @@ -19,8 +19,8 @@ package v1alpha1 import ( "fmt" - "k8s.io/client-go/1.5/pkg/api" - "k8s.io/client-go/1.5/pkg/runtime" + "k8s.io/client-go/pkg/api" + "k8s.io/client-go/pkg/runtime" ) func addConversionFuncs(scheme *runtime.Scheme) error { diff --git a/vendor/k8s.io/client-go/1.5/pkg/apis/certificates/v1alpha1/doc.go b/vendor/k8s.io/client-go/pkg/apis/certificates/v1alpha1/doc.go similarity index 96% rename from vendor/k8s.io/client-go/1.5/pkg/apis/certificates/v1alpha1/doc.go rename to vendor/k8s.io/client-go/pkg/apis/certificates/v1alpha1/doc.go index 08eb64597..0e0b1ceab 100644 --- a/vendor/k8s.io/client-go/1.5/pkg/apis/certificates/v1alpha1/doc.go +++ b/vendor/k8s.io/client-go/pkg/apis/certificates/v1alpha1/doc.go @@ -17,6 +17,7 @@ limitations under the License. // +k8s:deepcopy-gen=package,register // +k8s:conversion-gen=k8s.io/kubernetes/pkg/apis/certificates // +k8s:openapi-gen=true +// +k8s:defaulter-gen=TypeMeta // +groupName=certificates.k8s.io package v1alpha1 diff --git a/vendor/k8s.io/client-go/1.5/pkg/apis/certificates/v1alpha1/generated.pb.go b/vendor/k8s.io/client-go/pkg/apis/certificates/v1alpha1/generated.pb.go similarity index 86% rename from vendor/k8s.io/client-go/1.5/pkg/apis/certificates/v1alpha1/generated.pb.go rename to vendor/k8s.io/client-go/pkg/apis/certificates/v1alpha1/generated.pb.go index 3124b3d60..88a297500 100644 --- a/vendor/k8s.io/client-go/1.5/pkg/apis/certificates/v1alpha1/generated.pb.go +++ b/vendor/k8s.io/client-go/pkg/apis/certificates/v1alpha1/generated.pb.go @@ -1,5 +1,5 @@ /* -Copyright 2016 The Kubernetes Authors. +Copyright 2017 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -82,11 +82,11 @@ func (*CertificateSigningRequestStatus) Descriptor() ([]byte, []int) { } func init() { - proto.RegisterType((*CertificateSigningRequest)(nil), "k8s.io.client-go.1.5.pkg.apis.certificates.v1alpha1.CertificateSigningRequest") - proto.RegisterType((*CertificateSigningRequestCondition)(nil), "k8s.io.client-go.1.5.pkg.apis.certificates.v1alpha1.CertificateSigningRequestCondition") - proto.RegisterType((*CertificateSigningRequestList)(nil), "k8s.io.client-go.1.5.pkg.apis.certificates.v1alpha1.CertificateSigningRequestList") - proto.RegisterType((*CertificateSigningRequestSpec)(nil), "k8s.io.client-go.1.5.pkg.apis.certificates.v1alpha1.CertificateSigningRequestSpec") - proto.RegisterType((*CertificateSigningRequestStatus)(nil), "k8s.io.client-go.1.5.pkg.apis.certificates.v1alpha1.CertificateSigningRequestStatus") + proto.RegisterType((*CertificateSigningRequest)(nil), "k8s.io.client-go.pkg.apis.certificates.v1alpha1.CertificateSigningRequest") + proto.RegisterType((*CertificateSigningRequestCondition)(nil), "k8s.io.client-go.pkg.apis.certificates.v1alpha1.CertificateSigningRequestCondition") + proto.RegisterType((*CertificateSigningRequestList)(nil), "k8s.io.client-go.pkg.apis.certificates.v1alpha1.CertificateSigningRequestList") + proto.RegisterType((*CertificateSigningRequestSpec)(nil), "k8s.io.client-go.pkg.apis.certificates.v1alpha1.CertificateSigningRequestSpec") + proto.RegisterType((*CertificateSigningRequestStatus)(nil), "k8s.io.client-go.pkg.apis.certificates.v1alpha1.CertificateSigningRequestStatus") } func (m *CertificateSigningRequest) Marshal() (data []byte, err error) { size := m.Size() @@ -1277,48 +1277,49 @@ var ( ) 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, + // 692 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x09, 0x6e, 0x88, 0x02, 0xff, 0xac, 0x54, 0xcd, 0x6e, 0xd3, 0x4a, + 0x14, 0x8e, 0x93, 0x34, 0x4d, 0x26, 0xbd, 0xed, 0xd5, 0xe8, 0xea, 0x2a, 0x37, 0x52, 0x9d, 0x2a, + 0xba, 0xa0, 0x00, 0xed, 0x98, 0x54, 0x42, 0xea, 0x12, 0xb9, 0x48, 0xa8, 0xa2, 0x55, 0xc5, 0xb4, + 0x95, 0x10, 0x12, 0x8b, 0x89, 0x73, 0xea, 0x0e, 0x69, 0x6c, 0xd7, 0x33, 0x8e, 0xd4, 0x1d, 0x4b, + 0x96, 0x3c, 0x01, 0xaf, 0xc1, 0x2b, 0x74, 0xd9, 0x25, 0xab, 0x40, 0xd3, 0x17, 0x60, 0xcd, 0x0a, + 0x79, 0x32, 0x4e, 0x4c, 0x52, 0x17, 0x90, 0xba, 0xcb, 0xf9, 0xe6, 0x9c, 0xef, 0x3b, 0x3f, 0x9f, + 0x83, 0x9e, 0xf6, 0xb6, 0x04, 0xe1, 0xbe, 0xd5, 0x8b, 0x3a, 0x10, 0x7a, 0x20, 0x41, 0x58, 0x41, + 0xcf, 0xb5, 0x58, 0xc0, 0x85, 0xe5, 0x40, 0x28, 0xf9, 0x31, 0x77, 0x58, 0x8c, 0x0e, 0xda, 0xec, + 0x34, 0x38, 0x61, 0x6d, 0xcb, 0x05, 0x0f, 0x42, 0x26, 0xa1, 0x4b, 0x82, 0xd0, 0x97, 0x3e, 0x7e, + 0x3c, 0x66, 0x20, 0x53, 0x06, 0x12, 0xf4, 0x5c, 0x12, 0x33, 0x90, 0x34, 0x03, 0x49, 0x18, 0xea, + 0x1b, 0x2e, 0x97, 0x27, 0x51, 0x87, 0x38, 0x7e, 0xdf, 0x72, 0x7d, 0xd7, 0xb7, 0x14, 0x51, 0x27, + 0x3a, 0x56, 0x91, 0x0a, 0xd4, 0xaf, 0xb1, 0x40, 0x7d, 0x33, 0xb3, 0x45, 0x2b, 0x04, 0xe1, 0x47, + 0xa1, 0x03, 0xb3, 0x4d, 0xd5, 0x9f, 0x64, 0xd7, 0x44, 0xde, 0x00, 0x42, 0xc1, 0x7d, 0x0f, 0xba, + 0x73, 0x65, 0xeb, 0xd9, 0x65, 0x83, 0xb9, 0xc9, 0xeb, 0x1b, 0x37, 0x67, 0x87, 0x91, 0x27, 0x79, + 0x7f, 0xbe, 0xa7, 0xf6, 0xcd, 0xe9, 0x91, 0xe4, 0xa7, 0x16, 0xf7, 0xa4, 0x90, 0xe1, 0x6c, 0x49, + 0xf3, 0x3a, 0x8f, 0xfe, 0xdb, 0x9e, 0xee, 0xf0, 0x80, 0xbb, 0x1e, 0xf7, 0x5c, 0x0a, 0x67, 0x11, + 0x08, 0x89, 0x5f, 0xa1, 0x72, 0x1f, 0x24, 0xeb, 0x32, 0xc9, 0x6a, 0xc6, 0x9a, 0xd1, 0xaa, 0x6e, + 0xb6, 0x48, 0xe6, 0x31, 0xc8, 0xa0, 0x4d, 0xf6, 0x3b, 0x6f, 0xc1, 0x91, 0x7b, 0x20, 0x99, 0x8d, + 0x2f, 0x86, 0x8d, 0xdc, 0x68, 0xd8, 0x40, 0x53, 0x8c, 0x4e, 0xd8, 0xf0, 0x19, 0x2a, 0x8a, 0x00, + 0x9c, 0x5a, 0x5e, 0xb1, 0xee, 0x93, 0x3f, 0x3d, 0x31, 0xc9, 0x6c, 0xfa, 0x20, 0x00, 0xc7, 0x5e, + 0xd2, 0xe2, 0xc5, 0x38, 0xa2, 0x4a, 0x0a, 0x9f, 0xa3, 0x92, 0x90, 0x4c, 0x46, 0xa2, 0x56, 0x50, + 0xa2, 0x2f, 0xef, 0x52, 0x54, 0x11, 0xdb, 0xcb, 0x5a, 0xb6, 0x34, 0x8e, 0xa9, 0x16, 0x6c, 0x7e, + 0xcc, 0xa3, 0x66, 0x66, 0xed, 0xb6, 0xef, 0x75, 0xb9, 0xe4, 0xbe, 0x87, 0xb7, 0x50, 0x51, 0x9e, + 0x07, 0xa0, 0x56, 0x5d, 0xb1, 0xff, 0x4f, 0x66, 0x38, 0x3c, 0x0f, 0xe0, 0xfb, 0xb0, 0xf1, 0xcf, + 0x6c, 0x7e, 0x8c, 0x53, 0x55, 0x81, 0xef, 0xa3, 0x52, 0x08, 0x4c, 0xf8, 0x9e, 0x5a, 0x68, 0x65, + 0xda, 0x08, 0x55, 0x28, 0xd5, 0xaf, 0xf8, 0x01, 0x5a, 0xec, 0x83, 0x10, 0xcc, 0x05, 0xb5, 0x84, + 0x8a, 0xbd, 0xa2, 0x13, 0x17, 0xf7, 0xc6, 0x30, 0x4d, 0xde, 0x71, 0x0f, 0x2d, 0x9f, 0x32, 0x21, + 0x8f, 0x82, 0x2e, 0x93, 0x70, 0xc8, 0xfb, 0x50, 0x2b, 0xaa, 0xb5, 0x3d, 0xba, 0xc5, 0x01, 0x29, + 0xe7, 0x93, 0xb8, 0xc4, 0xfe, 0x57, 0xd3, 0x2f, 0xef, 0xfe, 0x44, 0x45, 0x67, 0xa8, 0x9b, 0xdf, + 0x0c, 0xb4, 0x9a, 0xb9, 0xa0, 0x5d, 0x2e, 0x24, 0x7e, 0x33, 0x67, 0x45, 0xeb, 0x37, 0x1b, 0x89, + 0xcb, 0x95, 0x23, 0xff, 0xd6, 0xcd, 0x94, 0x13, 0x24, 0xe5, 0xc7, 0x00, 0x2d, 0x70, 0x09, 0x7d, + 0x51, 0xcb, 0xaf, 0x15, 0x5a, 0xd5, 0xcd, 0x17, 0x77, 0xe8, 0x0d, 0xfb, 0x2f, 0xad, 0xbb, 0xb0, + 0x13, 0x2b, 0xd0, 0xb1, 0x50, 0xf3, 0xd3, 0x6d, 0x23, 0xc7, 0xb6, 0xc5, 0xf7, 0xd0, 0x62, 0x38, + 0x0e, 0xd5, 0xc4, 0x4b, 0x76, 0x35, 0x3e, 0x94, 0xce, 0xa0, 0xc9, 0x1b, 0x5e, 0x47, 0xe5, 0x48, + 0x40, 0xe8, 0xb1, 0x3e, 0xe8, 0xeb, 0x4f, 0x06, 0x3d, 0xd2, 0x38, 0x9d, 0x64, 0xe0, 0x55, 0x54, + 0x88, 0x78, 0x57, 0x5f, 0xbf, 0xaa, 0x13, 0x0b, 0x47, 0x3b, 0xcf, 0x68, 0x8c, 0xe3, 0x26, 0x2a, + 0xb9, 0xa1, 0x1f, 0x05, 0xa2, 0x56, 0x5c, 0x2b, 0xb4, 0x2a, 0x36, 0x8a, 0x4d, 0xf4, 0x5c, 0x21, + 0x54, 0xbf, 0x34, 0xbf, 0x18, 0xa8, 0xf1, 0x8b, 0x2f, 0x01, 0xbf, 0x37, 0x10, 0x72, 0x12, 0xa3, + 0x8a, 0x9a, 0xa1, 0xb6, 0x7a, 0x78, 0x87, 0x5b, 0x9d, 0x7c, 0x05, 0xd3, 0x3f, 0x9a, 0x09, 0x24, + 0x68, 0x4a, 0x1b, 0xb7, 0x51, 0x35, 0xc5, 0xad, 0x56, 0xb4, 0x64, 0xaf, 0x8c, 0x86, 0x8d, 0x6a, + 0x8a, 0x9c, 0xa6, 0x73, 0xec, 0x87, 0x17, 0x57, 0x66, 0xee, 0xf2, 0xca, 0xcc, 0x7d, 0xbe, 0x32, + 0x73, 0xef, 0x46, 0xa6, 0x71, 0x31, 0x32, 0x8d, 0xcb, 0x91, 0x69, 0x7c, 0x1d, 0x99, 0xc6, 0x87, + 0x6b, 0x33, 0xf7, 0xba, 0x9c, 0x74, 0xf8, 0x23, 0x00, 0x00, 0xff, 0xff, 0x29, 0x0b, 0xef, 0x6d, + 0xe0, 0x06, 0x00, 0x00, } diff --git a/vendor/k8s.io/client-go/1.5/pkg/apis/certificates/v1alpha1/register.go b/vendor/k8s.io/client-go/pkg/apis/certificates/v1alpha1/register.go similarity index 91% rename from vendor/k8s.io/client-go/1.5/pkg/apis/certificates/v1alpha1/register.go rename to vendor/k8s.io/client-go/pkg/apis/certificates/v1alpha1/register.go index d93141b36..5cf65b965 100644 --- a/vendor/k8s.io/client-go/1.5/pkg/apis/certificates/v1alpha1/register.go +++ b/vendor/k8s.io/client-go/pkg/apis/certificates/v1alpha1/register.go @@ -17,10 +17,10 @@ limitations under the License. package v1alpha1 import ( - "k8s.io/client-go/1.5/pkg/api/unversioned" - "k8s.io/client-go/1.5/pkg/api/v1" - "k8s.io/client-go/1.5/pkg/runtime" - versionedwatch "k8s.io/client-go/1.5/pkg/watch/versioned" + "k8s.io/client-go/pkg/api/unversioned" + "k8s.io/client-go/pkg/api/v1" + "k8s.io/client-go/pkg/runtime" + versionedwatch "k8s.io/client-go/pkg/watch/versioned" ) // GroupName is the group name use in this package @@ -51,6 +51,7 @@ func addKnownTypes(scheme *runtime.Scheme) error { &CertificateSigningRequestList{}, &v1.ListOptions{}, &v1.DeleteOptions{}, + &v1.ExportOptions{}, ) // Add the watch version that applies diff --git a/vendor/k8s.io/client-go/1.5/pkg/apis/certificates/v1alpha1/types.generated.go b/vendor/k8s.io/client-go/pkg/apis/certificates/v1alpha1/types.generated.go similarity index 99% rename from vendor/k8s.io/client-go/1.5/pkg/apis/certificates/v1alpha1/types.generated.go rename to vendor/k8s.io/client-go/pkg/apis/certificates/v1alpha1/types.generated.go index 96527c188..78f2d6086 100644 --- a/vendor/k8s.io/client-go/1.5/pkg/apis/certificates/v1alpha1/types.generated.go +++ b/vendor/k8s.io/client-go/pkg/apis/certificates/v1alpha1/types.generated.go @@ -25,9 +25,9 @@ import ( "errors" "fmt" codec1978 "github.com/ugorji/go/codec" - pkg1_unversioned "k8s.io/client-go/1.5/pkg/api/unversioned" - pkg2_v1 "k8s.io/client-go/1.5/pkg/api/v1" - pkg3_types "k8s.io/client-go/1.5/pkg/types" + pkg1_unversioned "k8s.io/client-go/pkg/api/unversioned" + pkg2_v1 "k8s.io/client-go/pkg/api/v1" + pkg3_types "k8s.io/client-go/pkg/types" "reflect" "runtime" time "time" diff --git a/vendor/k8s.io/client-go/1.5/pkg/apis/certificates/v1alpha1/types.go b/vendor/k8s.io/client-go/pkg/apis/certificates/v1alpha1/types.go similarity index 84% rename from vendor/k8s.io/client-go/1.5/pkg/apis/certificates/v1alpha1/types.go rename to vendor/k8s.io/client-go/pkg/apis/certificates/v1alpha1/types.go index b1d2b1844..fb1a4d341 100644 --- a/vendor/k8s.io/client-go/1.5/pkg/apis/certificates/v1alpha1/types.go +++ b/vendor/k8s.io/client-go/pkg/apis/certificates/v1alpha1/types.go @@ -17,8 +17,8 @@ limitations under the License. package v1alpha1 import ( - "k8s.io/client-go/1.5/pkg/api/unversioned" - "k8s.io/client-go/1.5/pkg/api/v1" + "k8s.io/client-go/pkg/api/unversioned" + "k8s.io/client-go/pkg/api/v1" ) // +genclient=true @@ -27,12 +27,15 @@ import ( // Describes a certificate signing request type CertificateSigningRequest struct { unversioned.TypeMeta `json:",inline"` - v1.ObjectMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"` + // +optional + v1.ObjectMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"` // The certificate request itself and any additional information. + // +optional Spec CertificateSigningRequestSpec `json:"spec,omitempty" protobuf:"bytes,2,opt,name=spec"` // Derived information about the request. + // +optional Status CertificateSigningRequestStatus `json:"status,omitempty" protobuf:"bytes,3,opt,name=status"` } @@ -45,16 +48,21 @@ type CertificateSigningRequestSpec struct { // Information about the requesting user (if relevant) // See user.Info interface for details - Username string `json:"username,omitempty" protobuf:"bytes,2,opt,name=username"` - UID string `json:"uid,omitempty" protobuf:"bytes,3,opt,name=uid"` - Groups []string `json:"groups,omitempty" protobuf:"bytes,4,rep,name=groups"` + // +optional + Username string `json:"username,omitempty" protobuf:"bytes,2,opt,name=username"` + // +optional + UID string `json:"uid,omitempty" protobuf:"bytes,3,opt,name=uid"` + // +optional + Groups []string `json:"groups,omitempty" protobuf:"bytes,4,rep,name=groups"` } type CertificateSigningRequestStatus struct { // Conditions applied to the request, such as approval or denial. + // +optional Conditions []CertificateSigningRequestCondition `json:"conditions,omitempty" protobuf:"bytes,1,rep,name=conditions"` // If request was approved, the controller will place the issued certificate here. + // +optional Certificate []byte `json:"certificate,omitempty" protobuf:"bytes,2,opt,name=certificate"` } @@ -70,15 +78,19 @@ type CertificateSigningRequestCondition struct { // request approval state, currently Approved or Denied. Type RequestConditionType `json:"type" protobuf:"bytes,1,opt,name=type,casttype=RequestConditionType"` // brief reason for the request state + // +optional Reason string `json:"reason,omitempty" protobuf:"bytes,2,opt,name=reason"` // human readable message with details about the request state + // +optional Message string `json:"message,omitempty" protobuf:"bytes,3,opt,name=message"` // timestamp for the last update to this condition + // +optional LastUpdateTime unversioned.Time `json:"lastUpdateTime,omitempty" protobuf:"bytes,4,opt,name=lastUpdateTime"` } type CertificateSigningRequestList struct { unversioned.TypeMeta `json:",inline"` + // +optional unversioned.ListMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"` Items []CertificateSigningRequest `json:"items" protobuf:"bytes,2,rep,name=items"` diff --git a/vendor/k8s.io/client-go/1.5/pkg/apis/certificates/v1alpha1/types_swagger_doc_generated.go b/vendor/k8s.io/client-go/pkg/apis/certificates/v1alpha1/types_swagger_doc_generated.go similarity index 100% rename from vendor/k8s.io/client-go/1.5/pkg/apis/certificates/v1alpha1/types_swagger_doc_generated.go rename to vendor/k8s.io/client-go/pkg/apis/certificates/v1alpha1/types_swagger_doc_generated.go diff --git a/vendor/k8s.io/client-go/1.5/pkg/apis/certificates/v1alpha1/zz_generated.conversion.go b/vendor/k8s.io/client-go/pkg/apis/certificates/v1alpha1/zz_generated.conversion.go similarity index 73% rename from vendor/k8s.io/client-go/1.5/pkg/apis/certificates/v1alpha1/zz_generated.conversion.go rename to vendor/k8s.io/client-go/pkg/apis/certificates/v1alpha1/zz_generated.conversion.go index 75b3e55cd..4c1759595 100644 --- a/vendor/k8s.io/client-go/1.5/pkg/apis/certificates/v1alpha1/zz_generated.conversion.go +++ b/vendor/k8s.io/client-go/pkg/apis/certificates/v1alpha1/zz_generated.conversion.go @@ -1,7 +1,7 @@ // +build !ignore_autogenerated /* -Copyright 2016 The Kubernetes Authors. +Copyright 2017 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -21,10 +21,10 @@ limitations under the License. package v1alpha1 import ( - api "k8s.io/client-go/1.5/pkg/api" - certificates "k8s.io/client-go/1.5/pkg/apis/certificates" - conversion "k8s.io/client-go/1.5/pkg/conversion" - runtime "k8s.io/client-go/1.5/pkg/runtime" + certificates "k8s.io/client-go/pkg/apis/certificates" + conversion "k8s.io/client-go/pkg/conversion" + runtime "k8s.io/client-go/pkg/runtime" + unsafe "unsafe" ) func init() { @@ -49,9 +49,6 @@ func RegisterConversions(scheme *runtime.Scheme) error { } func autoConvert_v1alpha1_CertificateSigningRequest_To_certificates_CertificateSigningRequest(in *CertificateSigningRequest, out *certificates.CertificateSigningRequest, 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 @@ -70,9 +67,6 @@ func Convert_v1alpha1_CertificateSigningRequest_To_certificates_CertificateSigni } func autoConvert_certificates_CertificateSigningRequest_To_v1alpha1_CertificateSigningRequest(in *certificates.CertificateSigningRequest, out *CertificateSigningRequest, 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 @@ -94,9 +88,7 @@ func autoConvert_v1alpha1_CertificateSigningRequestCondition_To_certificates_Cer out.Type = certificates.RequestConditionType(in.Type) out.Reason = in.Reason out.Message = in.Message - if err := api.Convert_unversioned_Time_To_unversioned_Time(&in.LastUpdateTime, &out.LastUpdateTime, s); err != nil { - return err - } + out.LastUpdateTime = in.LastUpdateTime return nil } @@ -108,9 +100,7 @@ func autoConvert_certificates_CertificateSigningRequestCondition_To_v1alpha1_Cer out.Type = RequestConditionType(in.Type) out.Reason = in.Reason out.Message = in.Message - if err := api.Convert_unversioned_Time_To_unversioned_Time(&in.LastUpdateTime, &out.LastUpdateTime, s); err != nil { - return err - } + out.LastUpdateTime = in.LastUpdateTime return nil } @@ -119,23 +109,8 @@ func Convert_certificates_CertificateSigningRequestCondition_To_v1alpha1_Certifi } func autoConvert_v1alpha1_CertificateSigningRequestList_To_certificates_CertificateSigningRequestList(in *CertificateSigningRequestList, out *certificates.CertificateSigningRequestList, 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([]certificates.CertificateSigningRequest, len(*in)) - for i := range *in { - if err := Convert_v1alpha1_CertificateSigningRequest_To_certificates_CertificateSigningRequest(&(*in)[i], &(*out)[i], s); err != nil { - return err - } - } - } else { - out.Items = nil - } + out.ListMeta = in.ListMeta + out.Items = *(*[]certificates.CertificateSigningRequest)(unsafe.Pointer(&in.Items)) return nil } @@ -144,23 +119,8 @@ func Convert_v1alpha1_CertificateSigningRequestList_To_certificates_CertificateS } func autoConvert_certificates_CertificateSigningRequestList_To_v1alpha1_CertificateSigningRequestList(in *certificates.CertificateSigningRequestList, out *CertificateSigningRequestList, 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([]CertificateSigningRequest, len(*in)) - for i := range *in { - if err := Convert_certificates_CertificateSigningRequest_To_v1alpha1_CertificateSigningRequest(&(*in)[i], &(*out)[i], s); err != nil { - return err - } - } - } else { - out.Items = nil - } + out.ListMeta = in.ListMeta + out.Items = *(*[]CertificateSigningRequest)(unsafe.Pointer(&in.Items)) return nil } @@ -169,12 +129,10 @@ func Convert_certificates_CertificateSigningRequestList_To_v1alpha1_CertificateS } func autoConvert_v1alpha1_CertificateSigningRequestSpec_To_certificates_CertificateSigningRequestSpec(in *CertificateSigningRequestSpec, out *certificates.CertificateSigningRequestSpec, s conversion.Scope) error { - if err := conversion.Convert_Slice_byte_To_Slice_byte(&in.Request, &out.Request, s); err != nil { - return err - } + out.Request = *(*[]byte)(unsafe.Pointer(&in.Request)) out.Username = in.Username out.UID = in.UID - out.Groups = in.Groups + out.Groups = *(*[]string)(unsafe.Pointer(&in.Groups)) return nil } @@ -183,12 +141,10 @@ func Convert_v1alpha1_CertificateSigningRequestSpec_To_certificates_CertificateS } func autoConvert_certificates_CertificateSigningRequestSpec_To_v1alpha1_CertificateSigningRequestSpec(in *certificates.CertificateSigningRequestSpec, out *CertificateSigningRequestSpec, s conversion.Scope) error { - if err := conversion.Convert_Slice_byte_To_Slice_byte(&in.Request, &out.Request, s); err != nil { - return err - } + out.Request = *(*[]byte)(unsafe.Pointer(&in.Request)) out.Username = in.Username out.UID = in.UID - out.Groups = in.Groups + out.Groups = *(*[]string)(unsafe.Pointer(&in.Groups)) return nil } @@ -197,20 +153,8 @@ func Convert_certificates_CertificateSigningRequestSpec_To_v1alpha1_CertificateS } func autoConvert_v1alpha1_CertificateSigningRequestStatus_To_certificates_CertificateSigningRequestStatus(in *CertificateSigningRequestStatus, out *certificates.CertificateSigningRequestStatus, s conversion.Scope) error { - if in.Conditions != nil { - in, out := &in.Conditions, &out.Conditions - *out = make([]certificates.CertificateSigningRequestCondition, len(*in)) - for i := range *in { - if err := Convert_v1alpha1_CertificateSigningRequestCondition_To_certificates_CertificateSigningRequestCondition(&(*in)[i], &(*out)[i], s); err != nil { - return err - } - } - } else { - out.Conditions = nil - } - if err := conversion.Convert_Slice_byte_To_Slice_byte(&in.Certificate, &out.Certificate, s); err != nil { - return err - } + out.Conditions = *(*[]certificates.CertificateSigningRequestCondition)(unsafe.Pointer(&in.Conditions)) + out.Certificate = *(*[]byte)(unsafe.Pointer(&in.Certificate)) return nil } @@ -219,20 +163,8 @@ func Convert_v1alpha1_CertificateSigningRequestStatus_To_certificates_Certificat } func autoConvert_certificates_CertificateSigningRequestStatus_To_v1alpha1_CertificateSigningRequestStatus(in *certificates.CertificateSigningRequestStatus, out *CertificateSigningRequestStatus, s conversion.Scope) error { - if in.Conditions != nil { - in, out := &in.Conditions, &out.Conditions - *out = make([]CertificateSigningRequestCondition, len(*in)) - for i := range *in { - if err := Convert_certificates_CertificateSigningRequestCondition_To_v1alpha1_CertificateSigningRequestCondition(&(*in)[i], &(*out)[i], s); err != nil { - return err - } - } - } else { - out.Conditions = nil - } - if err := conversion.Convert_Slice_byte_To_Slice_byte(&in.Certificate, &out.Certificate, s); err != nil { - return err - } + out.Conditions = *(*[]CertificateSigningRequestCondition)(unsafe.Pointer(&in.Conditions)) + out.Certificate = *(*[]byte)(unsafe.Pointer(&in.Certificate)) return nil } diff --git a/vendor/k8s.io/client-go/1.5/pkg/apis/certificates/v1alpha1/zz_generated.deepcopy.go b/vendor/k8s.io/client-go/pkg/apis/certificates/v1alpha1/zz_generated.deepcopy.go similarity index 96% rename from vendor/k8s.io/client-go/1.5/pkg/apis/certificates/v1alpha1/zz_generated.deepcopy.go rename to vendor/k8s.io/client-go/pkg/apis/certificates/v1alpha1/zz_generated.deepcopy.go index 3f6b90991..2da39acb5 100644 --- a/vendor/k8s.io/client-go/1.5/pkg/apis/certificates/v1alpha1/zz_generated.deepcopy.go +++ b/vendor/k8s.io/client-go/pkg/apis/certificates/v1alpha1/zz_generated.deepcopy.go @@ -1,7 +1,7 @@ // +build !ignore_autogenerated /* -Copyright 2016 The Kubernetes Authors. +Copyright 2017 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -21,9 +21,9 @@ limitations under the License. package v1alpha1 import ( - v1 "k8s.io/client-go/1.5/pkg/api/v1" - conversion "k8s.io/client-go/1.5/pkg/conversion" - runtime "k8s.io/client-go/1.5/pkg/runtime" + v1 "k8s.io/client-go/pkg/api/v1" + conversion "k8s.io/client-go/pkg/conversion" + runtime "k8s.io/client-go/pkg/runtime" reflect "reflect" ) diff --git a/vendor/k8s.io/client-go/1.5/pkg/apis/certificates/zz_generated.deepcopy.go b/vendor/k8s.io/client-go/pkg/apis/certificates/zz_generated.deepcopy.go similarity index 96% rename from vendor/k8s.io/client-go/1.5/pkg/apis/certificates/zz_generated.deepcopy.go rename to vendor/k8s.io/client-go/pkg/apis/certificates/zz_generated.deepcopy.go index 347ea2990..b75a4aaca 100644 --- a/vendor/k8s.io/client-go/1.5/pkg/apis/certificates/zz_generated.deepcopy.go +++ b/vendor/k8s.io/client-go/pkg/apis/certificates/zz_generated.deepcopy.go @@ -1,7 +1,7 @@ // +build !ignore_autogenerated /* -Copyright 2016 The Kubernetes Authors. +Copyright 2017 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -21,9 +21,9 @@ limitations under the License. package certificates import ( - api "k8s.io/client-go/1.5/pkg/api" - conversion "k8s.io/client-go/1.5/pkg/conversion" - runtime "k8s.io/client-go/1.5/pkg/runtime" + api "k8s.io/client-go/pkg/api" + conversion "k8s.io/client-go/pkg/conversion" + runtime "k8s.io/client-go/pkg/runtime" reflect "reflect" ) diff --git a/vendor/k8s.io/client-go/1.5/pkg/apis/extensions/doc.go b/vendor/k8s.io/client-go/pkg/apis/extensions/doc.go similarity index 100% rename from vendor/k8s.io/client-go/1.5/pkg/apis/extensions/doc.go rename to vendor/k8s.io/client-go/pkg/apis/extensions/doc.go diff --git a/vendor/k8s.io/client-go/1.5/pkg/apis/extensions/helpers.go b/vendor/k8s.io/client-go/pkg/apis/extensions/helpers.go similarity index 100% rename from vendor/k8s.io/client-go/1.5/pkg/apis/extensions/helpers.go rename to vendor/k8s.io/client-go/pkg/apis/extensions/helpers.go diff --git a/vendor/k8s.io/client-go/1.5/pkg/apis/extensions/install/install.go b/vendor/k8s.io/client-go/pkg/apis/extensions/install/install.go similarity index 83% rename from vendor/k8s.io/client-go/1.5/pkg/apis/extensions/install/install.go rename to vendor/k8s.io/client-go/pkg/apis/extensions/install/install.go index 4d1d1cdc9..f774a2b81 100644 --- a/vendor/k8s.io/client-go/1.5/pkg/apis/extensions/install/install.go +++ b/vendor/k8s.io/client-go/pkg/apis/extensions/install/install.go @@ -19,10 +19,10 @@ limitations under the License. package install import ( - "k8s.io/client-go/1.5/pkg/apimachinery/announced" - "k8s.io/client-go/1.5/pkg/apis/extensions" - "k8s.io/client-go/1.5/pkg/apis/extensions/v1beta1" - "k8s.io/client-go/1.5/pkg/util/sets" + "k8s.io/client-go/pkg/apimachinery/announced" + "k8s.io/client-go/pkg/apis/extensions" + "k8s.io/client-go/pkg/apis/extensions/v1beta1" + "k8s.io/client-go/pkg/util/sets" ) func init() { @@ -30,7 +30,7 @@ func init() { &announced.GroupMetaFactoryArgs{ GroupName: extensions.GroupName, VersionPreferenceOrder: []string{v1beta1.SchemeGroupVersion.Version}, - ImportPrefix: "k8s.io/client-go/1.5/pkg/apis/extensions", + ImportPrefix: "k8s.io/client-go/pkg/apis/extensions", RootScopedKinds: sets.NewString("PodSecurityPolicy", "ThirdPartyResource"), AddInternalObjectsToScheme: extensions.AddToScheme, }, diff --git a/vendor/k8s.io/client-go/1.5/pkg/apis/extensions/register.go b/vendor/k8s.io/client-go/pkg/apis/extensions/register.go similarity index 91% rename from vendor/k8s.io/client-go/1.5/pkg/apis/extensions/register.go rename to vendor/k8s.io/client-go/pkg/apis/extensions/register.go index 35ad88d1c..074a7f74d 100644 --- a/vendor/k8s.io/client-go/1.5/pkg/apis/extensions/register.go +++ b/vendor/k8s.io/client-go/pkg/apis/extensions/register.go @@ -17,11 +17,11 @@ limitations under the License. package extensions import ( - "k8s.io/client-go/1.5/pkg/api" - "k8s.io/client-go/1.5/pkg/api/unversioned" - "k8s.io/client-go/1.5/pkg/apis/autoscaling" - "k8s.io/client-go/1.5/pkg/apis/batch" - "k8s.io/client-go/1.5/pkg/runtime" + "k8s.io/client-go/pkg/api" + "k8s.io/client-go/pkg/api/unversioned" + "k8s.io/client-go/pkg/apis/autoscaling" + "k8s.io/client-go/pkg/apis/batch" + "k8s.io/client-go/pkg/runtime" ) // GroupName is the group name use in this package diff --git a/vendor/k8s.io/client-go/1.5/pkg/apis/extensions/types.generated.go b/vendor/k8s.io/client-go/pkg/apis/extensions/types.generated.go similarity index 63% rename from vendor/k8s.io/client-go/1.5/pkg/apis/extensions/types.generated.go rename to vendor/k8s.io/client-go/pkg/apis/extensions/types.generated.go index a2fd0549d..7f5ab2396 100644 --- a/vendor/k8s.io/client-go/1.5/pkg/apis/extensions/types.generated.go +++ b/vendor/k8s.io/client-go/pkg/apis/extensions/types.generated.go @@ -25,11 +25,11 @@ import ( "errors" "fmt" codec1978 "github.com/ugorji/go/codec" - pkg2_api "k8s.io/client-go/1.5/pkg/api" - pkg4_resource "k8s.io/client-go/1.5/pkg/api/resource" - pkg1_unversioned "k8s.io/client-go/1.5/pkg/api/unversioned" - pkg3_types "k8s.io/client-go/1.5/pkg/types" - pkg5_intstr "k8s.io/client-go/1.5/pkg/util/intstr" + pkg2_api "k8s.io/client-go/pkg/api" + pkg4_resource "k8s.io/client-go/pkg/api/resource" + pkg1_unversioned "k8s.io/client-go/pkg/api/unversioned" + pkg3_types "k8s.io/client-go/pkg/types" + pkg5_intstr "k8s.io/client-go/pkg/util/intstr" "reflect" "runtime" time "time" @@ -3440,7 +3440,7 @@ func (x *DeploymentSpec) CodecEncodeSelf(e *codec1978.Encoder) { } else { yysep279 := !z.EncBinary() yy2arr279 := z.EncBasicHandle().StructToArray - var yyq279 [8]bool + var yyq279 [9]bool _, _, _ = yysep279, yyq279, yy2arr279 const yyr279 bool = false yyq279[0] = x.Replicas != 0 @@ -3450,9 +3450,10 @@ func (x *DeploymentSpec) CodecEncodeSelf(e *codec1978.Encoder) { yyq279[5] = x.RevisionHistoryLimit != nil yyq279[6] = x.Paused != false yyq279[7] = x.RollbackTo != nil + yyq279[8] = x.ProgressDeadlineSeconds != nil var yynn279 int if yyr279 || yy2arr279 { - r.EncodeArrayStart(8) + r.EncodeArrayStart(9) } else { yynn279 = 1 for _, b := range yyq279 { @@ -3659,6 +3660,41 @@ func (x *DeploymentSpec) CodecEncodeSelf(e *codec1978.Encoder) { } } } + if yyr279 || yy2arr279 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq279[8] { + if x.ProgressDeadlineSeconds == nil { + r.EncodeNil() + } else { + yy305 := *x.ProgressDeadlineSeconds + yym306 := z.EncBinary() + _ = yym306 + if false { + } else { + r.EncodeInt(int64(yy305)) + } + } + } else { + r.EncodeNil() + } + } else { + if yyq279[8] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("progressDeadlineSeconds")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + if x.ProgressDeadlineSeconds == nil { + r.EncodeNil() + } else { + yy307 := *x.ProgressDeadlineSeconds + yym308 := z.EncBinary() + _ = yym308 + if false { + } else { + r.EncodeInt(int64(yy307)) + } + } + } + } if yyr279 || yy2arr279 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { @@ -3672,25 +3708,25 @@ func (x *DeploymentSpec) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym304 := z.DecBinary() - _ = yym304 + yym309 := z.DecBinary() + _ = yym309 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct305 := r.ContainerType() - if yyct305 == codecSelferValueTypeMap1234 { - yyl305 := r.ReadMapStart() - if yyl305 == 0 { + yyct310 := r.ContainerType() + if yyct310 == codecSelferValueTypeMap1234 { + yyl310 := r.ReadMapStart() + if yyl310 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl305, d) + x.codecDecodeSelfFromMap(yyl310, d) } - } else if yyct305 == codecSelferValueTypeArray1234 { - yyl305 := r.ReadArrayStart() - if yyl305 == 0 { + } else if yyct310 == codecSelferValueTypeArray1234 { + yyl310 := r.ReadArrayStart() + if yyl310 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl305, d) + x.codecDecodeSelfFromArray(yyl310, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -3702,12 +3738,12 @@ 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 { + var yys311Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys311Slc + var yyhl311 bool = l >= 0 + for yyj311 := 0; ; yyj311++ { + if yyhl311 { + if yyj311 >= l { break } } else { @@ -3716,10 +3752,10 @@ func (x *DeploymentSpec) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys306Slc = r.DecodeBytes(yys306Slc, true, true) - yys306 := string(yys306Slc) + yys311Slc = r.DecodeBytes(yys311Slc, true, true) + yys311 := string(yys311Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys306 { + switch yys311 { case "replicas": if r.TryDecodeAsNil() { x.Replicas = 0 @@ -3735,8 +3771,8 @@ func (x *DeploymentSpec) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { if x.Selector == nil { x.Selector = new(pkg1_unversioned.LabelSelector) } - yym309 := z.DecBinary() - _ = yym309 + yym314 := z.DecBinary() + _ = yym314 if false { } else if z.HasExtensions() && z.DecExt(x.Selector) { } else { @@ -3747,15 +3783,15 @@ func (x *DeploymentSpec) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.Template = pkg2_api.PodTemplateSpec{} } else { - yyv310 := &x.Template - yyv310.CodecDecodeSelf(d) + yyv315 := &x.Template + yyv315.CodecDecodeSelf(d) } case "strategy": if r.TryDecodeAsNil() { x.Strategy = DeploymentStrategy{} } else { - yyv311 := &x.Strategy - yyv311.CodecDecodeSelf(d) + yyv316 := &x.Strategy + yyv316.CodecDecodeSelf(d) } case "minReadySeconds": if r.TryDecodeAsNil() { @@ -3772,8 +3808,8 @@ func (x *DeploymentSpec) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { if x.RevisionHistoryLimit == nil { x.RevisionHistoryLimit = new(int32) } - yym314 := z.DecBinary() - _ = yym314 + yym319 := z.DecBinary() + _ = yym319 if false { } else { *((*int32)(x.RevisionHistoryLimit)) = int32(r.DecodeInt(32)) @@ -3796,10 +3832,26 @@ func (x *DeploymentSpec) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } x.RollbackTo.CodecDecodeSelf(d) } + case "progressDeadlineSeconds": + if r.TryDecodeAsNil() { + if x.ProgressDeadlineSeconds != nil { + x.ProgressDeadlineSeconds = nil + } + } else { + if x.ProgressDeadlineSeconds == nil { + x.ProgressDeadlineSeconds = new(int32) + } + yym323 := z.DecBinary() + _ = yym323 + if false { + } else { + *((*int32)(x.ProgressDeadlineSeconds)) = int32(r.DecodeInt(32)) + } + } default: - z.DecStructFieldNotFound(-1, yys306) - } // end switch yys306 - } // end for yyj306 + z.DecStructFieldNotFound(-1, yys311) + } // end switch yys311 + } // end for yyj311 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -3807,16 +3859,16 @@ 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 + var yyj324 int + var yyb324 bool + var yyhl324 bool = l >= 0 + yyj324++ + if yyhl324 { + yyb324 = yyj324 > l } else { - yyb317 = r.CheckBreak() + yyb324 = r.CheckBreak() } - if yyb317 { + if yyb324 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -3826,13 +3878,13 @@ func (x *DeploymentSpec) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.Replicas = int32(r.DecodeInt(32)) } - yyj317++ - if yyhl317 { - yyb317 = yyj317 > l + yyj324++ + if yyhl324 { + yyb324 = yyj324 > l } else { - yyb317 = r.CheckBreak() + yyb324 = r.CheckBreak() } - if yyb317 { + if yyb324 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -3845,21 +3897,21 @@ func (x *DeploymentSpec) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if x.Selector == nil { x.Selector = new(pkg1_unversioned.LabelSelector) } - yym320 := z.DecBinary() - _ = yym320 + yym327 := z.DecBinary() + _ = yym327 if false { } else if z.HasExtensions() && z.DecExt(x.Selector) { } else { z.DecFallback(x.Selector, false) } } - yyj317++ - if yyhl317 { - yyb317 = yyj317 > l + yyj324++ + if yyhl324 { + yyb324 = yyj324 > l } else { - yyb317 = r.CheckBreak() + yyb324 = r.CheckBreak() } - if yyb317 { + if yyb324 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -3867,16 +3919,16 @@ func (x *DeploymentSpec) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.Template = pkg2_api.PodTemplateSpec{} } else { - yyv321 := &x.Template - yyv321.CodecDecodeSelf(d) + yyv328 := &x.Template + yyv328.CodecDecodeSelf(d) } - yyj317++ - if yyhl317 { - yyb317 = yyj317 > l + yyj324++ + if yyhl324 { + yyb324 = yyj324 > l } else { - yyb317 = r.CheckBreak() + yyb324 = r.CheckBreak() } - if yyb317 { + if yyb324 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -3884,16 +3936,16 @@ func (x *DeploymentSpec) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.Strategy = DeploymentStrategy{} } else { - yyv322 := &x.Strategy - yyv322.CodecDecodeSelf(d) + yyv329 := &x.Strategy + yyv329.CodecDecodeSelf(d) } - yyj317++ - if yyhl317 { - yyb317 = yyj317 > l + yyj324++ + if yyhl324 { + yyb324 = yyj324 > l } else { - yyb317 = r.CheckBreak() + yyb324 = r.CheckBreak() } - if yyb317 { + if yyb324 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -3903,13 +3955,13 @@ func (x *DeploymentSpec) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.MinReadySeconds = int32(r.DecodeInt(32)) } - yyj317++ - if yyhl317 { - yyb317 = yyj317 > l + yyj324++ + if yyhl324 { + yyb324 = yyj324 > l } else { - yyb317 = r.CheckBreak() + yyb324 = r.CheckBreak() } - if yyb317 { + if yyb324 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -3922,20 +3974,20 @@ func (x *DeploymentSpec) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if x.RevisionHistoryLimit == nil { x.RevisionHistoryLimit = new(int32) } - yym325 := z.DecBinary() - _ = yym325 + yym332 := z.DecBinary() + _ = yym332 if false { } else { *((*int32)(x.RevisionHistoryLimit)) = int32(r.DecodeInt(32)) } } - yyj317++ - if yyhl317 { - yyb317 = yyj317 > l + yyj324++ + if yyhl324 { + yyb324 = yyj324 > l } else { - yyb317 = r.CheckBreak() + yyb324 = r.CheckBreak() } - if yyb317 { + if yyb324 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -3945,13 +3997,13 @@ func (x *DeploymentSpec) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.Paused = bool(r.DecodeBool()) } - yyj317++ - if yyhl317 { - yyb317 = yyj317 > l + yyj324++ + if yyhl324 { + yyb324 = yyj324 > l } else { - yyb317 = r.CheckBreak() + yyb324 = r.CheckBreak() } - if yyb317 { + if yyb324 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -3966,18 +4018,44 @@ func (x *DeploymentSpec) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } x.RollbackTo.CodecDecodeSelf(d) } - for { - yyj317++ - if yyhl317 { - yyb317 = yyj317 > l - } else { - yyb317 = r.CheckBreak() + yyj324++ + if yyhl324 { + yyb324 = yyj324 > l + } else { + yyb324 = r.CheckBreak() + } + if yyb324 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + if x.ProgressDeadlineSeconds != nil { + x.ProgressDeadlineSeconds = nil } - if yyb317 { + } else { + if x.ProgressDeadlineSeconds == nil { + x.ProgressDeadlineSeconds = new(int32) + } + yym336 := z.DecBinary() + _ = yym336 + if false { + } else { + *((*int32)(x.ProgressDeadlineSeconds)) = int32(r.DecodeInt(32)) + } + } + for { + yyj324++ + if yyhl324 { + yyb324 = yyj324 > l + } else { + yyb324 = r.CheckBreak() + } + if yyb324 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj317-1, "") + z.DecStructFieldNotFound(yyj324-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -3989,37 +4067,37 @@ func (x *DeploymentRollback) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym328 := z.EncBinary() - _ = yym328 + yym337 := z.EncBinary() + _ = yym337 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 { + yysep338 := !z.EncBinary() + yy2arr338 := z.EncBasicHandle().StructToArray + var yyq338 [5]bool + _, _, _ = yysep338, yyq338, yy2arr338 + const yyr338 bool = false + yyq338[0] = x.Kind != "" + yyq338[1] = x.APIVersion != "" + yyq338[3] = len(x.UpdatedAnnotations) != 0 + var yynn338 int + if yyr338 || yy2arr338 { r.EncodeArrayStart(5) } else { - yynn329 = 2 - for _, b := range yyq329 { + yynn338 = 2 + for _, b := range yyq338 { if b { - yynn329++ + yynn338++ } } - r.EncodeMapStart(yynn329) - yynn329 = 0 + r.EncodeMapStart(yynn338) + yynn338 = 0 } - if yyr329 || yy2arr329 { + if yyr338 || yy2arr338 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq329[0] { - yym331 := z.EncBinary() - _ = yym331 + if yyq338[0] { + yym340 := z.EncBinary() + _ = yym340 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) @@ -4028,23 +4106,23 @@ func (x *DeploymentRollback) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq329[0] { + if yyq338[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym332 := z.EncBinary() - _ = yym332 + yym341 := z.EncBinary() + _ = yym341 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } - if yyr329 || yy2arr329 { + if yyr338 || yy2arr338 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq329[1] { - yym334 := z.EncBinary() - _ = yym334 + if yyq338[1] { + yym343 := z.EncBinary() + _ = yym343 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) @@ -4053,22 +4131,22 @@ func (x *DeploymentRollback) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq329[1] { + if yyq338[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym335 := z.EncBinary() - _ = yym335 + yym344 := z.EncBinary() + _ = yym344 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } - if yyr329 || yy2arr329 { + if yyr338 || yy2arr338 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym337 := z.EncBinary() - _ = yym337 + yym346 := z.EncBinary() + _ = yym346 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Name)) @@ -4077,21 +4155,21 @@ func (x *DeploymentRollback) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("name")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym338 := z.EncBinary() - _ = yym338 + yym347 := z.EncBinary() + _ = yym347 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Name)) } } - if yyr329 || yy2arr329 { + if yyr338 || yy2arr338 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq329[3] { + if yyq338[3] { if x.UpdatedAnnotations == nil { r.EncodeNil() } else { - yym340 := z.EncBinary() - _ = yym340 + yym349 := z.EncBinary() + _ = yym349 if false { } else { z.F.EncMapStringStringV(x.UpdatedAnnotations, false, e) @@ -4101,15 +4179,15 @@ func (x *DeploymentRollback) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq329[3] { + if yyq338[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 + yym350 := z.EncBinary() + _ = yym350 if false { } else { z.F.EncMapStringStringV(x.UpdatedAnnotations, false, e) @@ -4117,18 +4195,18 @@ func (x *DeploymentRollback) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr329 || yy2arr329 { + if yyr338 || yy2arr338 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy343 := &x.RollbackTo - yy343.CodecEncodeSelf(e) + yy352 := &x.RollbackTo + yy352.CodecEncodeSelf(e) } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("rollbackTo")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy344 := &x.RollbackTo - yy344.CodecEncodeSelf(e) + yy353 := &x.RollbackTo + yy353.CodecEncodeSelf(e) } - if yyr329 || yy2arr329 { + if yyr338 || yy2arr338 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -4141,25 +4219,25 @@ func (x *DeploymentRollback) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym345 := z.DecBinary() - _ = yym345 + yym354 := z.DecBinary() + _ = yym354 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct346 := r.ContainerType() - if yyct346 == codecSelferValueTypeMap1234 { - yyl346 := r.ReadMapStart() - if yyl346 == 0 { + yyct355 := r.ContainerType() + if yyct355 == codecSelferValueTypeMap1234 { + yyl355 := r.ReadMapStart() + if yyl355 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl346, d) + x.codecDecodeSelfFromMap(yyl355, d) } - } else if yyct346 == codecSelferValueTypeArray1234 { - yyl346 := r.ReadArrayStart() - if yyl346 == 0 { + } else if yyct355 == codecSelferValueTypeArray1234 { + yyl355 := r.ReadArrayStart() + if yyl355 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl346, d) + x.codecDecodeSelfFromArray(yyl355, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -4171,12 +4249,12 @@ 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 { + var yys356Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys356Slc + var yyhl356 bool = l >= 0 + for yyj356 := 0; ; yyj356++ { + if yyhl356 { + if yyj356 >= l { break } } else { @@ -4185,10 +4263,10 @@ func (x *DeploymentRollback) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys347Slc = r.DecodeBytes(yys347Slc, true, true) - yys347 := string(yys347Slc) + yys356Slc = r.DecodeBytes(yys356Slc, true, true) + yys356 := string(yys356Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys347 { + switch yys356 { case "kind": if r.TryDecodeAsNil() { x.Kind = "" @@ -4211,25 +4289,25 @@ func (x *DeploymentRollback) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) if r.TryDecodeAsNil() { x.UpdatedAnnotations = nil } else { - yyv351 := &x.UpdatedAnnotations - yym352 := z.DecBinary() - _ = yym352 + yyv360 := &x.UpdatedAnnotations + yym361 := z.DecBinary() + _ = yym361 if false { } else { - z.F.DecMapStringStringX(yyv351, false, d) + z.F.DecMapStringStringX(yyv360, false, d) } } case "rollbackTo": if r.TryDecodeAsNil() { x.RollbackTo = RollbackConfig{} } else { - yyv353 := &x.RollbackTo - yyv353.CodecDecodeSelf(d) + yyv362 := &x.RollbackTo + yyv362.CodecDecodeSelf(d) } default: - z.DecStructFieldNotFound(-1, yys347) - } // end switch yys347 - } // end for yyj347 + z.DecStructFieldNotFound(-1, yys356) + } // end switch yys356 + } // end for yyj356 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -4237,16 +4315,16 @@ func (x *DeploymentRollback) codecDecodeSelfFromArray(l int, d *codec1978.Decode 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 + var yyj363 int + var yyb363 bool + var yyhl363 bool = l >= 0 + yyj363++ + if yyhl363 { + yyb363 = yyj363 > l } else { - yyb354 = r.CheckBreak() + yyb363 = r.CheckBreak() } - if yyb354 { + if yyb363 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -4256,13 +4334,13 @@ func (x *DeploymentRollback) codecDecodeSelfFromArray(l int, d *codec1978.Decode } else { x.Kind = string(r.DecodeString()) } - yyj354++ - if yyhl354 { - yyb354 = yyj354 > l + yyj363++ + if yyhl363 { + yyb363 = yyj363 > l } else { - yyb354 = r.CheckBreak() + yyb363 = r.CheckBreak() } - if yyb354 { + if yyb363 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -4272,13 +4350,13 @@ func (x *DeploymentRollback) codecDecodeSelfFromArray(l int, d *codec1978.Decode } else { x.APIVersion = string(r.DecodeString()) } - yyj354++ - if yyhl354 { - yyb354 = yyj354 > l + yyj363++ + if yyhl363 { + yyb363 = yyj363 > l } else { - yyb354 = r.CheckBreak() + yyb363 = r.CheckBreak() } - if yyb354 { + if yyb363 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -4288,13 +4366,13 @@ func (x *DeploymentRollback) codecDecodeSelfFromArray(l int, d *codec1978.Decode } else { x.Name = string(r.DecodeString()) } - yyj354++ - if yyhl354 { - yyb354 = yyj354 > l + yyj363++ + if yyhl363 { + yyb363 = yyj363 > l } else { - yyb354 = r.CheckBreak() + yyb363 = r.CheckBreak() } - if yyb354 { + if yyb363 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -4302,21 +4380,21 @@ func (x *DeploymentRollback) codecDecodeSelfFromArray(l int, d *codec1978.Decode if r.TryDecodeAsNil() { x.UpdatedAnnotations = nil } else { - yyv358 := &x.UpdatedAnnotations - yym359 := z.DecBinary() - _ = yym359 + yyv367 := &x.UpdatedAnnotations + yym368 := z.DecBinary() + _ = yym368 if false { } else { - z.F.DecMapStringStringX(yyv358, false, d) + z.F.DecMapStringStringX(yyv367, false, d) } } - yyj354++ - if yyhl354 { - yyb354 = yyj354 > l + yyj363++ + if yyhl363 { + yyb363 = yyj363 > l } else { - yyb354 = r.CheckBreak() + yyb363 = r.CheckBreak() } - if yyb354 { + if yyb363 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -4324,21 +4402,21 @@ func (x *DeploymentRollback) codecDecodeSelfFromArray(l int, d *codec1978.Decode if r.TryDecodeAsNil() { x.RollbackTo = RollbackConfig{} } else { - yyv360 := &x.RollbackTo - yyv360.CodecDecodeSelf(d) + yyv369 := &x.RollbackTo + yyv369.CodecDecodeSelf(d) } for { - yyj354++ - if yyhl354 { - yyb354 = yyj354 > l + yyj363++ + if yyhl363 { + yyb363 = yyj363 > l } else { - yyb354 = r.CheckBreak() + yyb363 = r.CheckBreak() } - if yyb354 { + if yyb363 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj354-1, "") + z.DecStructFieldNotFound(yyj363-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -4350,35 +4428,35 @@ func (x *RollbackConfig) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym361 := z.EncBinary() - _ = yym361 + yym370 := z.EncBinary() + _ = yym370 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 { + yysep371 := !z.EncBinary() + yy2arr371 := z.EncBasicHandle().StructToArray + var yyq371 [1]bool + _, _, _ = yysep371, yyq371, yy2arr371 + const yyr371 bool = false + yyq371[0] = x.Revision != 0 + var yynn371 int + if yyr371 || yy2arr371 { r.EncodeArrayStart(1) } else { - yynn362 = 0 - for _, b := range yyq362 { + yynn371 = 0 + for _, b := range yyq371 { if b { - yynn362++ + yynn371++ } } - r.EncodeMapStart(yynn362) - yynn362 = 0 + r.EncodeMapStart(yynn371) + yynn371 = 0 } - if yyr362 || yy2arr362 { + if yyr371 || yy2arr371 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq362[0] { - yym364 := z.EncBinary() - _ = yym364 + if yyq371[0] { + yym373 := z.EncBinary() + _ = yym373 if false { } else { r.EncodeInt(int64(x.Revision)) @@ -4387,19 +4465,19 @@ func (x *RollbackConfig) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeInt(0) } } else { - if yyq362[0] { + if yyq371[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("revision")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym365 := z.EncBinary() - _ = yym365 + yym374 := z.EncBinary() + _ = yym374 if false { } else { r.EncodeInt(int64(x.Revision)) } } } - if yyr362 || yy2arr362 { + if yyr371 || yy2arr371 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -4412,25 +4490,25 @@ func (x *RollbackConfig) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym366 := z.DecBinary() - _ = yym366 + yym375 := z.DecBinary() + _ = yym375 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct367 := r.ContainerType() - if yyct367 == codecSelferValueTypeMap1234 { - yyl367 := r.ReadMapStart() - if yyl367 == 0 { + yyct376 := r.ContainerType() + if yyct376 == codecSelferValueTypeMap1234 { + yyl376 := r.ReadMapStart() + if yyl376 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl367, d) + x.codecDecodeSelfFromMap(yyl376, d) } - } else if yyct367 == codecSelferValueTypeArray1234 { - yyl367 := r.ReadArrayStart() - if yyl367 == 0 { + } else if yyct376 == codecSelferValueTypeArray1234 { + yyl376 := r.ReadArrayStart() + if yyl376 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl367, d) + x.codecDecodeSelfFromArray(yyl376, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -4442,12 +4520,12 @@ 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 { + var yys377Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys377Slc + var yyhl377 bool = l >= 0 + for yyj377 := 0; ; yyj377++ { + if yyhl377 { + if yyj377 >= l { break } } else { @@ -4456,10 +4534,10 @@ func (x *RollbackConfig) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys368Slc = r.DecodeBytes(yys368Slc, true, true) - yys368 := string(yys368Slc) + yys377Slc = r.DecodeBytes(yys377Slc, true, true) + yys377 := string(yys377Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys368 { + switch yys377 { case "revision": if r.TryDecodeAsNil() { x.Revision = 0 @@ -4467,9 +4545,9 @@ func (x *RollbackConfig) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { x.Revision = int64(r.DecodeInt(64)) } default: - z.DecStructFieldNotFound(-1, yys368) - } // end switch yys368 - } // end for yyj368 + z.DecStructFieldNotFound(-1, yys377) + } // end switch yys377 + } // end for yyj377 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -4477,16 +4555,16 @@ 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 + var yyj379 int + var yyb379 bool + var yyhl379 bool = l >= 0 + yyj379++ + if yyhl379 { + yyb379 = yyj379 > l } else { - yyb370 = r.CheckBreak() + yyb379 = r.CheckBreak() } - if yyb370 { + if yyb379 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -4497,17 +4575,17 @@ func (x *RollbackConfig) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { x.Revision = int64(r.DecodeInt(64)) } for { - yyj370++ - if yyhl370 { - yyb370 = yyj370 > l + yyj379++ + if yyhl379 { + yyb379 = yyj379 > l } else { - yyb370 = r.CheckBreak() + yyb379 = r.CheckBreak() } - if yyb370 { + if yyb379 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj370-1, "") + z.DecStructFieldNotFound(yyj379-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -4519,49 +4597,49 @@ func (x *DeploymentStrategy) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym372 := z.EncBinary() - _ = yym372 + yym381 := z.EncBinary() + _ = yym381 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 { + yysep382 := !z.EncBinary() + yy2arr382 := z.EncBasicHandle().StructToArray + var yyq382 [2]bool + _, _, _ = yysep382, yyq382, yy2arr382 + const yyr382 bool = false + yyq382[0] = x.Type != "" + yyq382[1] = x.RollingUpdate != nil + var yynn382 int + if yyr382 || yy2arr382 { r.EncodeArrayStart(2) } else { - yynn373 = 0 - for _, b := range yyq373 { + yynn382 = 0 + for _, b := range yyq382 { if b { - yynn373++ + yynn382++ } } - r.EncodeMapStart(yynn373) - yynn373 = 0 + r.EncodeMapStart(yynn382) + yynn382 = 0 } - if yyr373 || yy2arr373 { + if yyr382 || yy2arr382 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq373[0] { + if yyq382[0] { x.Type.CodecEncodeSelf(e) } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq373[0] { + if yyq382[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("type")) z.EncSendContainerState(codecSelfer_containerMapValue1234) x.Type.CodecEncodeSelf(e) } } - if yyr373 || yy2arr373 { + if yyr382 || yy2arr382 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq373[1] { + if yyq382[1] { if x.RollingUpdate == nil { r.EncodeNil() } else { @@ -4571,7 +4649,7 @@ func (x *DeploymentStrategy) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq373[1] { + if yyq382[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("rollingUpdate")) z.EncSendContainerState(codecSelfer_containerMapValue1234) @@ -4582,7 +4660,7 @@ func (x *DeploymentStrategy) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr373 || yy2arr373 { + if yyr382 || yy2arr382 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -4595,25 +4673,25 @@ func (x *DeploymentStrategy) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym376 := z.DecBinary() - _ = yym376 + yym385 := z.DecBinary() + _ = yym385 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct377 := r.ContainerType() - if yyct377 == codecSelferValueTypeMap1234 { - yyl377 := r.ReadMapStart() - if yyl377 == 0 { + yyct386 := r.ContainerType() + if yyct386 == codecSelferValueTypeMap1234 { + yyl386 := r.ReadMapStart() + if yyl386 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl377, d) + x.codecDecodeSelfFromMap(yyl386, d) } - } else if yyct377 == codecSelferValueTypeArray1234 { - yyl377 := r.ReadArrayStart() - if yyl377 == 0 { + } else if yyct386 == codecSelferValueTypeArray1234 { + yyl386 := r.ReadArrayStart() + if yyl386 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl377, d) + x.codecDecodeSelfFromArray(yyl386, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -4625,12 +4703,12 @@ 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 { + var yys387Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys387Slc + var yyhl387 bool = l >= 0 + for yyj387 := 0; ; yyj387++ { + if yyhl387 { + if yyj387 >= l { break } } else { @@ -4639,10 +4717,10 @@ func (x *DeploymentStrategy) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys378Slc = r.DecodeBytes(yys378Slc, true, true) - yys378 := string(yys378Slc) + yys387Slc = r.DecodeBytes(yys387Slc, true, true) + yys387 := string(yys387Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys378 { + switch yys387 { case "type": if r.TryDecodeAsNil() { x.Type = "" @@ -4661,9 +4739,9 @@ func (x *DeploymentStrategy) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) x.RollingUpdate.CodecDecodeSelf(d) } default: - z.DecStructFieldNotFound(-1, yys378) - } // end switch yys378 - } // end for yyj378 + z.DecStructFieldNotFound(-1, yys387) + } // end switch yys387 + } // end for yyj387 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -4671,16 +4749,16 @@ func (x *DeploymentStrategy) codecDecodeSelfFromArray(l int, d *codec1978.Decode 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 + var yyj390 int + var yyb390 bool + var yyhl390 bool = l >= 0 + yyj390++ + if yyhl390 { + yyb390 = yyj390 > l } else { - yyb381 = r.CheckBreak() + yyb390 = r.CheckBreak() } - if yyb381 { + if yyb390 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -4690,13 +4768,13 @@ func (x *DeploymentStrategy) codecDecodeSelfFromArray(l int, d *codec1978.Decode } else { x.Type = DeploymentStrategyType(r.DecodeString()) } - yyj381++ - if yyhl381 { - yyb381 = yyj381 > l + yyj390++ + if yyhl390 { + yyb390 = yyj390 > l } else { - yyb381 = r.CheckBreak() + yyb390 = r.CheckBreak() } - if yyb381 { + if yyb390 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -4712,17 +4790,17 @@ func (x *DeploymentStrategy) codecDecodeSelfFromArray(l int, d *codec1978.Decode x.RollingUpdate.CodecDecodeSelf(d) } for { - yyj381++ - if yyhl381 { - yyb381 = yyj381 > l + yyj390++ + if yyhl390 { + yyb390 = yyj390 > l } else { - yyb381 = r.CheckBreak() + yyb390 = r.CheckBreak() } - if yyb381 { + if yyb390 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj381-1, "") + z.DecStructFieldNotFound(yyj390-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -4731,8 +4809,8 @@ func (x DeploymentStrategyType) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r - yym384 := z.EncBinary() - _ = yym384 + yym393 := z.EncBinary() + _ = yym393 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { @@ -4744,8 +4822,8 @@ func (x *DeploymentStrategyType) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym385 := z.DecBinary() - _ = yym385 + yym394 := z.DecBinary() + _ = yym394 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { @@ -4760,98 +4838,98 @@ func (x *RollingUpdateDeployment) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym386 := z.EncBinary() - _ = yym386 + yym395 := z.EncBinary() + _ = yym395 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 { + yysep396 := !z.EncBinary() + yy2arr396 := z.EncBasicHandle().StructToArray + var yyq396 [2]bool + _, _, _ = yysep396, yyq396, yy2arr396 + const yyr396 bool = false + yyq396[0] = true + yyq396[1] = true + var yynn396 int + if yyr396 || yy2arr396 { r.EncodeArrayStart(2) } else { - yynn387 = 0 - for _, b := range yyq387 { + yynn396 = 0 + for _, b := range yyq396 { if b { - yynn387++ + yynn396++ } } - r.EncodeMapStart(yynn387) - yynn387 = 0 + r.EncodeMapStart(yynn396) + yynn396 = 0 } - if yyr387 || yy2arr387 { + if yyr396 || yy2arr396 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq387[0] { - yy389 := &x.MaxUnavailable - yym390 := z.EncBinary() - _ = yym390 + if yyq396[0] { + yy398 := &x.MaxUnavailable + yym399 := z.EncBinary() + _ = yym399 if false { - } else if z.HasExtensions() && z.EncExt(yy389) { - } else if !yym390 && z.IsJSONHandle() { - z.EncJSONMarshal(yy389) + } else if z.HasExtensions() && z.EncExt(yy398) { + } else if !yym399 && z.IsJSONHandle() { + z.EncJSONMarshal(yy398) } else { - z.EncFallback(yy389) + z.EncFallback(yy398) } } else { r.EncodeNil() } } else { - if yyq387[0] { + if yyq396[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("maxUnavailable")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy391 := &x.MaxUnavailable - yym392 := z.EncBinary() - _ = yym392 + yy400 := &x.MaxUnavailable + yym401 := z.EncBinary() + _ = yym401 if false { - } else if z.HasExtensions() && z.EncExt(yy391) { - } else if !yym392 && z.IsJSONHandle() { - z.EncJSONMarshal(yy391) + } else if z.HasExtensions() && z.EncExt(yy400) { + } else if !yym401 && z.IsJSONHandle() { + z.EncJSONMarshal(yy400) } else { - z.EncFallback(yy391) + z.EncFallback(yy400) } } } - if yyr387 || yy2arr387 { + if yyr396 || yy2arr396 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq387[1] { - yy394 := &x.MaxSurge - yym395 := z.EncBinary() - _ = yym395 + if yyq396[1] { + yy403 := &x.MaxSurge + yym404 := z.EncBinary() + _ = yym404 if false { - } else if z.HasExtensions() && z.EncExt(yy394) { - } else if !yym395 && z.IsJSONHandle() { - z.EncJSONMarshal(yy394) + } else if z.HasExtensions() && z.EncExt(yy403) { + } else if !yym404 && z.IsJSONHandle() { + z.EncJSONMarshal(yy403) } else { - z.EncFallback(yy394) + z.EncFallback(yy403) } } else { r.EncodeNil() } } else { - if yyq387[1] { + if yyq396[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("maxSurge")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy396 := &x.MaxSurge - yym397 := z.EncBinary() - _ = yym397 + yy405 := &x.MaxSurge + yym406 := z.EncBinary() + _ = yym406 if false { - } else if z.HasExtensions() && z.EncExt(yy396) { - } else if !yym397 && z.IsJSONHandle() { - z.EncJSONMarshal(yy396) + } else if z.HasExtensions() && z.EncExt(yy405) { + } else if !yym406 && z.IsJSONHandle() { + z.EncJSONMarshal(yy405) } else { - z.EncFallback(yy396) + z.EncFallback(yy405) } } } - if yyr387 || yy2arr387 { + if yyr396 || yy2arr396 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -4864,25 +4942,25 @@ func (x *RollingUpdateDeployment) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym398 := z.DecBinary() - _ = yym398 + yym407 := z.DecBinary() + _ = yym407 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct399 := r.ContainerType() - if yyct399 == codecSelferValueTypeMap1234 { - yyl399 := r.ReadMapStart() - if yyl399 == 0 { + yyct408 := r.ContainerType() + if yyct408 == codecSelferValueTypeMap1234 { + yyl408 := r.ReadMapStart() + if yyl408 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl399, d) + x.codecDecodeSelfFromMap(yyl408, d) } - } else if yyct399 == codecSelferValueTypeArray1234 { - yyl399 := r.ReadArrayStart() - if yyl399 == 0 { + } else if yyct408 == codecSelferValueTypeArray1234 { + yyl408 := r.ReadArrayStart() + if yyl408 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl399, d) + x.codecDecodeSelfFromArray(yyl408, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -4894,12 +4972,12 @@ func (x *RollingUpdateDeployment) codecDecodeSelfFromMap(l int, d *codec1978.Dec 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 { + 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 { @@ -4908,44 +4986,44 @@ func (x *RollingUpdateDeployment) codecDecodeSelfFromMap(l int, d *codec1978.Dec } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys400Slc = r.DecodeBytes(yys400Slc, true, true) - yys400 := string(yys400Slc) + yys409Slc = r.DecodeBytes(yys409Slc, true, true) + yys409 := string(yys409Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys400 { + switch yys409 { case "maxUnavailable": if r.TryDecodeAsNil() { x.MaxUnavailable = pkg5_intstr.IntOrString{} } else { - yyv401 := &x.MaxUnavailable - yym402 := z.DecBinary() - _ = yym402 + yyv410 := &x.MaxUnavailable + yym411 := z.DecBinary() + _ = yym411 if false { - } else if z.HasExtensions() && z.DecExt(yyv401) { - } else if !yym402 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv401) + } else if z.HasExtensions() && z.DecExt(yyv410) { + } else if !yym411 && z.IsJSONHandle() { + z.DecJSONUnmarshal(yyv410) } else { - z.DecFallback(yyv401, false) + z.DecFallback(yyv410, false) } } case "maxSurge": if r.TryDecodeAsNil() { x.MaxSurge = pkg5_intstr.IntOrString{} } else { - yyv403 := &x.MaxSurge - yym404 := z.DecBinary() - _ = yym404 + yyv412 := &x.MaxSurge + yym413 := z.DecBinary() + _ = yym413 if false { - } else if z.HasExtensions() && z.DecExt(yyv403) { - } else if !yym404 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv403) + } else if z.HasExtensions() && z.DecExt(yyv412) { + } else if !yym413 && z.IsJSONHandle() { + z.DecJSONUnmarshal(yyv412) } else { - z.DecFallback(yyv403, false) + z.DecFallback(yyv412, false) } } default: - z.DecStructFieldNotFound(-1, yys400) - } // end switch yys400 - } // end for yyj400 + z.DecStructFieldNotFound(-1, yys409) + } // end switch yys409 + } // end for yyj409 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -4953,16 +5031,16 @@ func (x *RollingUpdateDeployment) codecDecodeSelfFromArray(l int, d *codec1978.D 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 + var yyj414 int + var yyb414 bool + var yyhl414 bool = l >= 0 + yyj414++ + if yyhl414 { + yyb414 = yyj414 > l } else { - yyb405 = r.CheckBreak() + yyb414 = r.CheckBreak() } - if yyb405 { + if yyb414 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -4970,24 +5048,24 @@ func (x *RollingUpdateDeployment) codecDecodeSelfFromArray(l int, d *codec1978.D if r.TryDecodeAsNil() { x.MaxUnavailable = pkg5_intstr.IntOrString{} } else { - yyv406 := &x.MaxUnavailable - yym407 := z.DecBinary() - _ = yym407 + yyv415 := &x.MaxUnavailable + yym416 := z.DecBinary() + _ = yym416 if false { - } else if z.HasExtensions() && z.DecExt(yyv406) { - } else if !yym407 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv406) + } else if z.HasExtensions() && z.DecExt(yyv415) { + } else if !yym416 && z.IsJSONHandle() { + z.DecJSONUnmarshal(yyv415) } else { - z.DecFallback(yyv406, false) + z.DecFallback(yyv415, false) } } - yyj405++ - if yyhl405 { - yyb405 = yyj405 > l + yyj414++ + if yyhl414 { + yyb414 = yyj414 > l } else { - yyb405 = r.CheckBreak() + yyb414 = r.CheckBreak() } - if yyb405 { + if yyb414 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -4995,29 +5073,29 @@ func (x *RollingUpdateDeployment) codecDecodeSelfFromArray(l int, d *codec1978.D if r.TryDecodeAsNil() { x.MaxSurge = pkg5_intstr.IntOrString{} } else { - yyv408 := &x.MaxSurge - yym409 := z.DecBinary() - _ = yym409 + yyv417 := &x.MaxSurge + yym418 := z.DecBinary() + _ = yym418 if false { - } else if z.HasExtensions() && z.DecExt(yyv408) { - } else if !yym409 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv408) + } else if z.HasExtensions() && z.DecExt(yyv417) { + } else if !yym418 && z.IsJSONHandle() { + z.DecJSONUnmarshal(yyv417) } else { - z.DecFallback(yyv408, false) + z.DecFallback(yyv417, false) } } for { - yyj405++ - if yyhl405 { - yyb405 = yyj405 > l + yyj414++ + if yyhl414 { + yyb414 = yyj414 > l } else { - yyb405 = r.CheckBreak() + yyb414 = r.CheckBreak() } - if yyb405 { + if yyb414 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj405-1, "") + z.DecStructFieldNotFound(yyj414-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -5029,139 +5107,140 @@ func (x *DeploymentStatus) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym410 := z.EncBinary() - _ = yym410 + yym419 := z.EncBinary() + _ = yym419 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) + yysep420 := !z.EncBinary() + yy2arr420 := z.EncBasicHandle().StructToArray + var yyq420 [6]bool + _, _, _ = yysep420, yyq420, yy2arr420 + const yyr420 bool = false + yyq420[0] = x.ObservedGeneration != 0 + yyq420[1] = x.Replicas != 0 + yyq420[2] = x.UpdatedReplicas != 0 + yyq420[3] = x.AvailableReplicas != 0 + yyq420[4] = x.UnavailableReplicas != 0 + yyq420[5] = len(x.Conditions) != 0 + var yynn420 int + if yyr420 || yy2arr420 { + r.EncodeArrayStart(6) } else { - yynn411 = 0 - for _, b := range yyq411 { + yynn420 = 0 + for _, b := range yyq420 { if b { - yynn411++ + yynn420++ } } - r.EncodeMapStart(yynn411) - yynn411 = 0 + r.EncodeMapStart(yynn420) + yynn420 = 0 } - if yyr411 || yy2arr411 { + if yyr420 || yy2arr420 { 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] { + if yyq420[0] { yym422 := z.EncBinary() _ = yym422 if false { } else { - r.EncodeInt(int64(x.AvailableReplicas)) + r.EncodeInt(int64(x.ObservedGeneration)) } } else { r.EncodeInt(0) } } else { - if yyq411[3] { + if yyq420[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("availableReplicas")) + r.EncodeString(codecSelferC_UTF81234, string("observedGeneration")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym423 := z.EncBinary() _ = yym423 if false { + } else { + r.EncodeInt(int64(x.ObservedGeneration)) + } + } + } + if yyr420 || yy2arr420 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq420[1] { + yym425 := z.EncBinary() + _ = yym425 + if false { + } else { + r.EncodeInt(int64(x.Replicas)) + } + } else { + r.EncodeInt(0) + } + } else { + if yyq420[1] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("replicas")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym426 := z.EncBinary() + _ = yym426 + if false { + } else { + r.EncodeInt(int64(x.Replicas)) + } + } + } + if yyr420 || yy2arr420 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq420[2] { + yym428 := z.EncBinary() + _ = yym428 + if false { + } else { + r.EncodeInt(int64(x.UpdatedReplicas)) + } + } else { + r.EncodeInt(0) + } + } else { + if yyq420[2] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("updatedReplicas")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym429 := z.EncBinary() + _ = yym429 + if false { + } else { + r.EncodeInt(int64(x.UpdatedReplicas)) + } + } + } + if yyr420 || yy2arr420 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq420[3] { + yym431 := z.EncBinary() + _ = yym431 + if false { + } else { + r.EncodeInt(int64(x.AvailableReplicas)) + } + } else { + r.EncodeInt(0) + } + } else { + if yyq420[3] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("availableReplicas")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym432 := z.EncBinary() + _ = yym432 + if false { } else { r.EncodeInt(int64(x.AvailableReplicas)) } } } - if yyr411 || yy2arr411 { + if yyr420 || yy2arr420 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq411[4] { - yym425 := z.EncBinary() - _ = yym425 + if yyq420[4] { + yym434 := z.EncBinary() + _ = yym434 if false { } else { r.EncodeInt(int64(x.UnavailableReplicas)) @@ -5170,19 +5249,52 @@ func (x *DeploymentStatus) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeInt(0) } } else { - if yyq411[4] { + if yyq420[4] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("unavailableReplicas")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym426 := z.EncBinary() - _ = yym426 + yym435 := z.EncBinary() + _ = yym435 if false { } else { r.EncodeInt(int64(x.UnavailableReplicas)) } } } - if yyr411 || yy2arr411 { + if yyr420 || yy2arr420 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq420[5] { + if x.Conditions == nil { + r.EncodeNil() + } else { + yym437 := z.EncBinary() + _ = yym437 + if false { + } else { + h.encSliceDeploymentCondition(([]DeploymentCondition)(x.Conditions), e) + } + } + } else { + r.EncodeNil() + } + } else { + if yyq420[5] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("conditions")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + if x.Conditions == nil { + r.EncodeNil() + } else { + yym438 := z.EncBinary() + _ = yym438 + if false { + } else { + h.encSliceDeploymentCondition(([]DeploymentCondition)(x.Conditions), e) + } + } + } + } + if yyr420 || yy2arr420 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -5195,25 +5307,25 @@ func (x *DeploymentStatus) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym427 := z.DecBinary() - _ = yym427 + yym439 := z.DecBinary() + _ = yym439 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct428 := r.ContainerType() - if yyct428 == codecSelferValueTypeMap1234 { - yyl428 := r.ReadMapStart() - if yyl428 == 0 { + yyct440 := r.ContainerType() + if yyct440 == codecSelferValueTypeMap1234 { + yyl440 := r.ReadMapStart() + if yyl440 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl428, d) + x.codecDecodeSelfFromMap(yyl440, d) } - } else if yyct428 == codecSelferValueTypeArray1234 { - yyl428 := r.ReadArrayStart() - if yyl428 == 0 { + } else if yyct440 == codecSelferValueTypeArray1234 { + yyl440 := r.ReadArrayStart() + if yyl440 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl428, d) + x.codecDecodeSelfFromArray(yyl440, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -5225,12 +5337,12 @@ 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 { + var yys441Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys441Slc + var yyhl441 bool = l >= 0 + for yyj441 := 0; ; yyj441++ { + if yyhl441 { + if yyj441 >= l { break } } else { @@ -5239,10 +5351,10 @@ func (x *DeploymentStatus) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys429Slc = r.DecodeBytes(yys429Slc, true, true) - yys429 := string(yys429Slc) + yys441Slc = r.DecodeBytes(yys441Slc, true, true) + yys441 := string(yys441Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys429 { + switch yys441 { case "observedGeneration": if r.TryDecodeAsNil() { x.ObservedGeneration = 0 @@ -5273,10 +5385,22 @@ func (x *DeploymentStatus) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } else { x.UnavailableReplicas = int32(r.DecodeInt(32)) } + case "conditions": + if r.TryDecodeAsNil() { + x.Conditions = nil + } else { + yyv447 := &x.Conditions + yym448 := z.DecBinary() + _ = yym448 + if false { + } else { + h.decSliceDeploymentCondition((*[]DeploymentCondition)(yyv447), d) + } + } default: - z.DecStructFieldNotFound(-1, yys429) - } // end switch yys429 - } // end for yyj429 + z.DecStructFieldNotFound(-1, yys441) + } // end switch yys441 + } // end for yyj441 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -5284,16 +5408,16 @@ 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 + var yyj449 int + var yyb449 bool + var yyhl449 bool = l >= 0 + yyj449++ + if yyhl449 { + yyb449 = yyj449 > l } else { - yyb435 = r.CheckBreak() + yyb449 = r.CheckBreak() } - if yyb435 { + if yyb449 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -5303,13 +5427,13 @@ func (x *DeploymentStatus) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) } else { x.ObservedGeneration = int64(r.DecodeInt(64)) } - yyj435++ - if yyhl435 { - yyb435 = yyj435 > l + yyj449++ + if yyhl449 { + yyb449 = yyj449 > l } else { - yyb435 = r.CheckBreak() + yyb449 = r.CheckBreak() } - if yyb435 { + if yyb449 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -5319,13 +5443,13 @@ func (x *DeploymentStatus) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) } else { x.Replicas = int32(r.DecodeInt(32)) } - yyj435++ - if yyhl435 { - yyb435 = yyj435 > l + yyj449++ + if yyhl449 { + yyb449 = yyj449 > l } else { - yyb435 = r.CheckBreak() + yyb449 = r.CheckBreak() } - if yyb435 { + if yyb449 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -5335,13 +5459,13 @@ func (x *DeploymentStatus) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) } else { x.UpdatedReplicas = int32(r.DecodeInt(32)) } - yyj435++ - if yyhl435 { - yyb435 = yyj435 > l + yyj449++ + if yyhl449 { + yyb449 = yyj449 > l } else { - yyb435 = r.CheckBreak() + yyb449 = r.CheckBreak() } - if yyb435 { + if yyb449 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -5351,13 +5475,13 @@ func (x *DeploymentStatus) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) } else { x.AvailableReplicas = int32(r.DecodeInt(32)) } - yyj435++ - if yyhl435 { - yyb435 = yyj435 > l + yyj449++ + if yyhl449 { + yyb449 = yyj449 > l } else { - yyb435 = r.CheckBreak() + yyb449 = r.CheckBreak() } - if yyb435 { + if yyb449 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -5367,444 +5491,259 @@ func (x *DeploymentStatus) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) } else { x.UnavailableReplicas = int32(r.DecodeInt(32)) } - for { - yyj435++ - if yyhl435 { - yyb435 = yyj435 > l + yyj449++ + if yyhl449 { + yyb449 = yyj449 > l + } else { + yyb449 = r.CheckBreak() + } + if yyb449 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Conditions = nil + } else { + yyv455 := &x.Conditions + yym456 := z.DecBinary() + _ = yym456 + if false { } else { - yyb435 = r.CheckBreak() + h.decSliceDeploymentCondition((*[]DeploymentCondition)(yyv455), d) } - if yyb435 { + } + for { + yyj449++ + if yyhl449 { + yyb449 = yyj449 > l + } else { + yyb449 = r.CheckBreak() + } + if yyb449 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj435-1, "") + z.DecStructFieldNotFound(yyj449-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } -func (x *DeploymentList) CodecEncodeSelf(e *codec1978.Encoder) { +func (x DeploymentConditionType) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r - if x == nil { - r.EncodeNil() + yym457 := z.EncBinary() + _ = yym457 + if false { + } else if z.HasExtensions() && z.EncExt(x) { } 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) - } - } + r.EncodeString(codecSelferC_UTF81234, string(x)) } } -func (x *DeploymentList) CodecDecodeSelf(d *codec1978.Decoder) { +func (x *DeploymentConditionType) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym457 := z.DecBinary() - _ = yym457 + yym458 := z.DecBinary() + _ = yym458 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) - } + *((*string)(x)) = r.DecodeString() } } -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) { +func (x *DeploymentCondition) 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 + yym459 := z.EncBinary() + _ = yym459 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) + yysep460 := !z.EncBinary() + yy2arr460 := z.EncBasicHandle().StructToArray + var yyq460 [6]bool + _, _, _ = yysep460, yyq460, yy2arr460 + const yyr460 bool = false + yyq460[2] = true + yyq460[3] = true + yyq460[4] = x.Reason != "" + yyq460[5] = x.Message != "" + var yynn460 int + if yyr460 || yy2arr460 { + r.EncodeArrayStart(6) } else { - yynn474 = 1 - for _, b := range yyq474 { + yynn460 = 2 + for _, b := range yyq460 { if b { - yynn474++ + yynn460++ } } - r.EncodeMapStart(yynn474) - yynn474 = 0 + r.EncodeMapStart(yynn460) + yynn460 = 0 } - if yyr474 || yy2arr474 { + if yyr460 || yy2arr460 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq474[0] { - if x.Selector == nil { - r.EncodeNil() + x.Type.CodecEncodeSelf(e) + } else { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("type")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + x.Type.CodecEncodeSelf(e) + } + if yyr460 || yy2arr460 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yym463 := z.EncBinary() + _ = yym463 + 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) + yym464 := z.EncBinary() + _ = yym464 + if false { + } else if z.HasExtensions() && z.EncExt(x.Status) { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Status)) + } + } + if yyr460 || yy2arr460 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq460[2] { + yy466 := &x.LastUpdateTime + yym467 := z.EncBinary() + _ = yym467 + if false { + } else if z.HasExtensions() && z.EncExt(yy466) { + } else if yym467 { + z.EncBinaryMarshal(yy466) + } else if !yym467 && z.IsJSONHandle() { + z.EncJSONMarshal(yy466) } else { - yym476 := z.EncBinary() - _ = yym476 - if false { - } else if z.HasExtensions() && z.EncExt(x.Selector) { - } else { - z.EncFallback(x.Selector) - } + z.EncFallback(yy466) } } else { r.EncodeNil() } } else { - if yyq474[0] { + if yyq460[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("selector")) + r.EncodeString(codecSelferC_UTF81234, string("lastUpdateTime")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - if x.Selector == nil { - r.EncodeNil() + yy468 := &x.LastUpdateTime + yym469 := z.EncBinary() + _ = yym469 + if false { + } else if z.HasExtensions() && z.EncExt(yy468) { + } else if yym469 { + z.EncBinaryMarshal(yy468) + } else if !yym469 && z.IsJSONHandle() { + z.EncJSONMarshal(yy468) } else { - yym477 := z.EncBinary() - _ = yym477 - if false { - } else if z.HasExtensions() && z.EncExt(x.Selector) { - } else { - z.EncFallback(x.Selector) - } + z.EncFallback(yy468) } } } - if yyr474 || yy2arr474 { + if yyr460 || yy2arr460 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy479 := &x.Template - yy479.CodecEncodeSelf(e) + if yyq460[3] { + yy471 := &x.LastTransitionTime + yym472 := z.EncBinary() + _ = yym472 + if false { + } else if z.HasExtensions() && z.EncExt(yy471) { + } else if yym472 { + z.EncBinaryMarshal(yy471) + } else if !yym472 && z.IsJSONHandle() { + z.EncJSONMarshal(yy471) + } else { + z.EncFallback(yy471) + } + } else { + r.EncodeNil() + } } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("template")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy480 := &x.Template - yy480.CodecEncodeSelf(e) + if yyq460[3] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("lastTransitionTime")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yy473 := &x.LastTransitionTime + yym474 := z.EncBinary() + _ = yym474 + if false { + } else if z.HasExtensions() && z.EncExt(yy473) { + } else if yym474 { + z.EncBinaryMarshal(yy473) + } else if !yym474 && z.IsJSONHandle() { + z.EncJSONMarshal(yy473) + } else { + z.EncFallback(yy473) + } + } } - if yyr474 || yy2arr474 { + if yyr460 || yy2arr460 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq460[4] { + yym476 := z.EncBinary() + _ = yym476 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Reason)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq460[4] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("reason")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym477 := z.EncBinary() + _ = yym477 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Reason)) + } + } + } + if yyr460 || yy2arr460 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq460[5] { + yym479 := z.EncBinary() + _ = yym479 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Message)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq460[5] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("message")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym480 := z.EncBinary() + _ = yym480 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Message)) + } + } + } + if yyr460 || yy2arr460 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -5813,7 +5752,7 @@ func (x *DaemonSetSpec) CodecEncodeSelf(e *codec1978.Encoder) { } } -func (x *DaemonSetSpec) CodecDecodeSelf(d *codec1978.Decoder) { +func (x *DeploymentCondition) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r @@ -5843,7 +5782,7 @@ func (x *DaemonSetSpec) CodecDecodeSelf(d *codec1978.Decoder) { } } -func (x *DaemonSetSpec) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { +func (x *DeploymentCondition) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r @@ -5865,6 +5804,694 @@ func (x *DaemonSetSpec) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { yys483 := string(yys483Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys483 { + case "type": + if r.TryDecodeAsNil() { + x.Type = "" + } else { + x.Type = DeploymentConditionType(r.DecodeString()) + } + case "status": + if r.TryDecodeAsNil() { + x.Status = "" + } else { + x.Status = pkg2_api.ConditionStatus(r.DecodeString()) + } + case "lastUpdateTime": + if r.TryDecodeAsNil() { + x.LastUpdateTime = pkg1_unversioned.Time{} + } else { + yyv486 := &x.LastUpdateTime + yym487 := z.DecBinary() + _ = yym487 + if false { + } else if z.HasExtensions() && z.DecExt(yyv486) { + } else if yym487 { + z.DecBinaryUnmarshal(yyv486) + } else if !yym487 && z.IsJSONHandle() { + z.DecJSONUnmarshal(yyv486) + } else { + z.DecFallback(yyv486, false) + } + } + case "lastTransitionTime": + if r.TryDecodeAsNil() { + x.LastTransitionTime = pkg1_unversioned.Time{} + } else { + yyv488 := &x.LastTransitionTime + yym489 := z.DecBinary() + _ = yym489 + if false { + } else if z.HasExtensions() && z.DecExt(yyv488) { + } else if yym489 { + z.DecBinaryUnmarshal(yyv488) + } else if !yym489 && z.IsJSONHandle() { + z.DecJSONUnmarshal(yyv488) + } else { + z.DecFallback(yyv488, 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, yys483) + } // end switch yys483 + } // end for yyj483 + z.DecSendContainerState(codecSelfer_containerMapEnd1234) +} + +func (x *DeploymentCondition) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj492 int + var yyb492 bool + var yyhl492 bool = l >= 0 + yyj492++ + if yyhl492 { + yyb492 = yyj492 > l + } else { + yyb492 = r.CheckBreak() + } + if yyb492 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Type = "" + } else { + x.Type = DeploymentConditionType(r.DecodeString()) + } + yyj492++ + if yyhl492 { + yyb492 = yyj492 > l + } else { + yyb492 = r.CheckBreak() + } + if yyb492 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Status = "" + } else { + x.Status = pkg2_api.ConditionStatus(r.DecodeString()) + } + yyj492++ + if yyhl492 { + yyb492 = yyj492 > l + } else { + yyb492 = r.CheckBreak() + } + if yyb492 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.LastUpdateTime = pkg1_unversioned.Time{} + } else { + yyv495 := &x.LastUpdateTime + yym496 := z.DecBinary() + _ = yym496 + if false { + } else if z.HasExtensions() && z.DecExt(yyv495) { + } else if yym496 { + z.DecBinaryUnmarshal(yyv495) + } else if !yym496 && z.IsJSONHandle() { + z.DecJSONUnmarshal(yyv495) + } else { + z.DecFallback(yyv495, false) + } + } + yyj492++ + if yyhl492 { + yyb492 = yyj492 > l + } else { + yyb492 = r.CheckBreak() + } + if yyb492 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.LastTransitionTime = pkg1_unversioned.Time{} + } else { + yyv497 := &x.LastTransitionTime + yym498 := z.DecBinary() + _ = yym498 + if false { + } else if z.HasExtensions() && z.DecExt(yyv497) { + } else if yym498 { + z.DecBinaryUnmarshal(yyv497) + } else if !yym498 && z.IsJSONHandle() { + z.DecJSONUnmarshal(yyv497) + } else { + z.DecFallback(yyv497, false) + } + } + yyj492++ + if yyhl492 { + yyb492 = yyj492 > l + } else { + yyb492 = r.CheckBreak() + } + if yyb492 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Reason = "" + } else { + x.Reason = string(r.DecodeString()) + } + yyj492++ + if yyhl492 { + yyb492 = yyj492 > l + } else { + yyb492 = r.CheckBreak() + } + if yyb492 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Message = "" + } else { + x.Message = string(r.DecodeString()) + } + for { + yyj492++ + if yyhl492 { + yyb492 = yyj492 > l + } else { + yyb492 = r.CheckBreak() + } + if yyb492 { + break + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + z.DecStructFieldNotFound(yyj492-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 { + yym501 := z.EncBinary() + _ = yym501 + if false { + } else if z.HasExtensions() && z.EncExt(x) { + } else { + yysep502 := !z.EncBinary() + yy2arr502 := z.EncBasicHandle().StructToArray + var yyq502 [4]bool + _, _, _ = yysep502, yyq502, yy2arr502 + const yyr502 bool = false + yyq502[0] = x.Kind != "" + yyq502[1] = x.APIVersion != "" + yyq502[2] = true + var yynn502 int + if yyr502 || yy2arr502 { + r.EncodeArrayStart(4) + } else { + yynn502 = 1 + for _, b := range yyq502 { + if b { + yynn502++ + } + } + r.EncodeMapStart(yynn502) + yynn502 = 0 + } + if yyr502 || yy2arr502 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq502[0] { + yym504 := z.EncBinary() + _ = yym504 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq502[0] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("kind")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym505 := z.EncBinary() + _ = yym505 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + } + } + } + if yyr502 || yy2arr502 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq502[1] { + yym507 := z.EncBinary() + _ = yym507 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq502[1] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym508 := z.EncBinary() + _ = yym508 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + } + } + } + if yyr502 || yy2arr502 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq502[2] { + yy510 := &x.ListMeta + yym511 := z.EncBinary() + _ = yym511 + if false { + } else if z.HasExtensions() && z.EncExt(yy510) { + } else { + z.EncFallback(yy510) + } + } else { + r.EncodeNil() + } + } else { + if yyq502[2] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("metadata")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yy512 := &x.ListMeta + yym513 := z.EncBinary() + _ = yym513 + if false { + } else if z.HasExtensions() && z.EncExt(yy512) { + } else { + z.EncFallback(yy512) + } + } + } + if yyr502 || yy2arr502 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if x.Items == nil { + r.EncodeNil() + } else { + yym515 := z.EncBinary() + _ = yym515 + 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 { + yym516 := z.EncBinary() + _ = yym516 + if false { + } else { + h.encSliceDeployment(([]Deployment)(x.Items), e) + } + } + } + if yyr502 || yy2arr502 { + 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 + yym517 := z.DecBinary() + _ = yym517 + if false { + } else if z.HasExtensions() && z.DecExt(x) { + } else { + yyct518 := r.ContainerType() + if yyct518 == codecSelferValueTypeMap1234 { + yyl518 := r.ReadMapStart() + if yyl518 == 0 { + z.DecSendContainerState(codecSelfer_containerMapEnd1234) + } else { + x.codecDecodeSelfFromMap(yyl518, d) + } + } else if yyct518 == codecSelferValueTypeArray1234 { + yyl518 := r.ReadArrayStart() + if yyl518 == 0 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + x.codecDecodeSelfFromArray(yyl518, 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 yys519Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys519Slc + var yyhl519 bool = l >= 0 + for yyj519 := 0; ; yyj519++ { + if yyhl519 { + if yyj519 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + z.DecSendContainerState(codecSelfer_containerMapKey1234) + yys519Slc = r.DecodeBytes(yys519Slc, true, true) + yys519 := string(yys519Slc) + z.DecSendContainerState(codecSelfer_containerMapValue1234) + switch yys519 { + case "kind": + if 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 { + yyv522 := &x.ListMeta + yym523 := z.DecBinary() + _ = yym523 + if false { + } else if z.HasExtensions() && z.DecExt(yyv522) { + } else { + z.DecFallback(yyv522, false) + } + } + case "items": + if r.TryDecodeAsNil() { + x.Items = nil + } else { + yyv524 := &x.Items + yym525 := z.DecBinary() + _ = yym525 + if false { + } else { + h.decSliceDeployment((*[]Deployment)(yyv524), d) + } + } + default: + z.DecStructFieldNotFound(-1, yys519) + } // end switch yys519 + } // end for yyj519 + 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 yyj526 int + var yyb526 bool + var yyhl526 bool = l >= 0 + yyj526++ + if yyhl526 { + yyb526 = yyj526 > l + } else { + yyb526 = r.CheckBreak() + } + if yyb526 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Kind = "" + } else { + x.Kind = string(r.DecodeString()) + } + yyj526++ + if yyhl526 { + yyb526 = yyj526 > l + } else { + yyb526 = r.CheckBreak() + } + if yyb526 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.APIVersion = "" + } else { + x.APIVersion = string(r.DecodeString()) + } + yyj526++ + if yyhl526 { + yyb526 = yyj526 > l + } else { + yyb526 = r.CheckBreak() + } + if yyb526 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.ListMeta = pkg1_unversioned.ListMeta{} + } else { + yyv529 := &x.ListMeta + yym530 := z.DecBinary() + _ = yym530 + if false { + } else if z.HasExtensions() && z.DecExt(yyv529) { + } else { + z.DecFallback(yyv529, false) + } + } + yyj526++ + if yyhl526 { + yyb526 = yyj526 > l + } else { + yyb526 = r.CheckBreak() + } + if yyb526 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Items = nil + } else { + yyv531 := &x.Items + yym532 := z.DecBinary() + _ = yym532 + if false { + } else { + h.decSliceDeployment((*[]Deployment)(yyv531), d) + } + } + for { + yyj526++ + if yyhl526 { + yyb526 = yyj526 > l + } else { + yyb526 = r.CheckBreak() + } + if yyb526 { + break + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + z.DecStructFieldNotFound(yyj526-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 { + yym533 := z.EncBinary() + _ = yym533 + if false { + } else if z.HasExtensions() && z.EncExt(x) { + } else { + yysep534 := !z.EncBinary() + yy2arr534 := z.EncBasicHandle().StructToArray + var yyq534 [2]bool + _, _, _ = yysep534, yyq534, yy2arr534 + const yyr534 bool = false + yyq534[0] = x.Selector != nil + var yynn534 int + if yyr534 || yy2arr534 { + r.EncodeArrayStart(2) + } else { + yynn534 = 1 + for _, b := range yyq534 { + if b { + yynn534++ + } + } + r.EncodeMapStart(yynn534) + yynn534 = 0 + } + if yyr534 || yy2arr534 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq534[0] { + if x.Selector == nil { + r.EncodeNil() + } else { + yym536 := z.EncBinary() + _ = yym536 + if false { + } else if z.HasExtensions() && z.EncExt(x.Selector) { + } else { + z.EncFallback(x.Selector) + } + } + } else { + r.EncodeNil() + } + } else { + if yyq534[0] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("selector")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + if x.Selector == nil { + r.EncodeNil() + } else { + yym537 := z.EncBinary() + _ = yym537 + if false { + } else if z.HasExtensions() && z.EncExt(x.Selector) { + } else { + z.EncFallback(x.Selector) + } + } + } + } + if yyr534 || yy2arr534 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yy539 := &x.Template + yy539.CodecEncodeSelf(e) + } else { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("template")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yy540 := &x.Template + yy540.CodecEncodeSelf(e) + } + if yyr534 || yy2arr534 { + 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 + yym541 := z.DecBinary() + _ = yym541 + if false { + } else if z.HasExtensions() && z.DecExt(x) { + } else { + yyct542 := r.ContainerType() + if yyct542 == codecSelferValueTypeMap1234 { + yyl542 := r.ReadMapStart() + if yyl542 == 0 { + z.DecSendContainerState(codecSelfer_containerMapEnd1234) + } else { + x.codecDecodeSelfFromMap(yyl542, d) + } + } else if yyct542 == codecSelferValueTypeArray1234 { + yyl542 := r.ReadArrayStart() + if yyl542 == 0 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + x.codecDecodeSelfFromArray(yyl542, 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 yys543Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys543Slc + var yyhl543 bool = l >= 0 + for yyj543 := 0; ; yyj543++ { + if yyhl543 { + if yyj543 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + z.DecSendContainerState(codecSelfer_containerMapKey1234) + yys543Slc = r.DecodeBytes(yys543Slc, true, true) + yys543 := string(yys543Slc) + z.DecSendContainerState(codecSelfer_containerMapValue1234) + switch yys543 { case "selector": if r.TryDecodeAsNil() { if x.Selector != nil { @@ -5874,8 +6501,8 @@ func (x *DaemonSetSpec) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { if x.Selector == nil { x.Selector = new(pkg1_unversioned.LabelSelector) } - yym485 := z.DecBinary() - _ = yym485 + yym545 := z.DecBinary() + _ = yym545 if false { } else if z.HasExtensions() && z.DecExt(x.Selector) { } else { @@ -5886,13 +6513,13 @@ func (x *DaemonSetSpec) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.Template = pkg2_api.PodTemplateSpec{} } else { - yyv486 := &x.Template - yyv486.CodecDecodeSelf(d) + yyv546 := &x.Template + yyv546.CodecDecodeSelf(d) } default: - z.DecStructFieldNotFound(-1, yys483) - } // end switch yys483 - } // end for yyj483 + z.DecStructFieldNotFound(-1, yys543) + } // end switch yys543 + } // end for yyj543 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -5900,16 +6527,16 @@ 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 + var yyj547 int + var yyb547 bool + var yyhl547 bool = l >= 0 + yyj547++ + if yyhl547 { + yyb547 = yyj547 > l } else { - yyb487 = r.CheckBreak() + yyb547 = r.CheckBreak() } - if yyb487 { + if yyb547 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -5922,21 +6549,21 @@ func (x *DaemonSetSpec) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if x.Selector == nil { x.Selector = new(pkg1_unversioned.LabelSelector) } - yym489 := z.DecBinary() - _ = yym489 + yym549 := z.DecBinary() + _ = yym549 if false { } else if z.HasExtensions() && z.DecExt(x.Selector) { } else { z.DecFallback(x.Selector, false) } } - yyj487++ - if yyhl487 { - yyb487 = yyj487 > l + yyj547++ + if yyhl547 { + yyb547 = yyj547 > l } else { - yyb487 = r.CheckBreak() + yyb547 = r.CheckBreak() } - if yyb487 { + if yyb547 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -5944,21 +6571,21 @@ func (x *DaemonSetSpec) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.Template = pkg2_api.PodTemplateSpec{} } else { - yyv490 := &x.Template - yyv490.CodecDecodeSelf(d) + yyv550 := &x.Template + yyv550.CodecDecodeSelf(d) } for { - yyj487++ - if yyhl487 { - yyb487 = yyj487 > l + yyj547++ + if yyhl547 { + yyb547 = yyj547 > l } else { - yyb487 = r.CheckBreak() + yyb547 = r.CheckBreak() } - if yyb487 { + if yyb547 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj487-1, "") + z.DecStructFieldNotFound(yyj547-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -5970,33 +6597,33 @@ func (x *DaemonSetStatus) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym491 := z.EncBinary() - _ = yym491 + yym551 := z.EncBinary() + _ = yym551 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) + yysep552 := !z.EncBinary() + yy2arr552 := z.EncBasicHandle().StructToArray + var yyq552 [4]bool + _, _, _ = yysep552, yyq552, yy2arr552 + const yyr552 bool = false + var yynn552 int + if yyr552 || yy2arr552 { + r.EncodeArrayStart(4) } else { - yynn492 = 3 - for _, b := range yyq492 { + yynn552 = 4 + for _, b := range yyq552 { if b { - yynn492++ + yynn552++ } } - r.EncodeMapStart(yynn492) - yynn492 = 0 + r.EncodeMapStart(yynn552) + yynn552 = 0 } - if yyr492 || yy2arr492 { + if yyr552 || yy2arr552 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym494 := z.EncBinary() - _ = yym494 + yym554 := z.EncBinary() + _ = yym554 if false { } else { r.EncodeInt(int64(x.CurrentNumberScheduled)) @@ -6005,17 +6632,17 @@ func (x *DaemonSetStatus) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("currentNumberScheduled")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym495 := z.EncBinary() - _ = yym495 + yym555 := z.EncBinary() + _ = yym555 if false { } else { r.EncodeInt(int64(x.CurrentNumberScheduled)) } } - if yyr492 || yy2arr492 { + if yyr552 || yy2arr552 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym497 := z.EncBinary() - _ = yym497 + yym557 := z.EncBinary() + _ = yym557 if false { } else { r.EncodeInt(int64(x.NumberMisscheduled)) @@ -6024,17 +6651,17 @@ func (x *DaemonSetStatus) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("numberMisscheduled")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym498 := z.EncBinary() - _ = yym498 + yym558 := z.EncBinary() + _ = yym558 if false { } else { r.EncodeInt(int64(x.NumberMisscheduled)) } } - if yyr492 || yy2arr492 { + if yyr552 || yy2arr552 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym500 := z.EncBinary() - _ = yym500 + yym560 := z.EncBinary() + _ = yym560 if false { } else { r.EncodeInt(int64(x.DesiredNumberScheduled)) @@ -6043,14 +6670,33 @@ func (x *DaemonSetStatus) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("desiredNumberScheduled")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym501 := z.EncBinary() - _ = yym501 + yym561 := z.EncBinary() + _ = yym561 if false { } else { r.EncodeInt(int64(x.DesiredNumberScheduled)) } } - if yyr492 || yy2arr492 { + if yyr552 || yy2arr552 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yym563 := z.EncBinary() + _ = yym563 + if false { + } else { + r.EncodeInt(int64(x.NumberReady)) + } + } else { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("numberReady")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym564 := z.EncBinary() + _ = yym564 + if false { + } else { + r.EncodeInt(int64(x.NumberReady)) + } + } + if yyr552 || yy2arr552 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -6063,25 +6709,25 @@ func (x *DaemonSetStatus) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym502 := z.DecBinary() - _ = yym502 + yym565 := z.DecBinary() + _ = yym565 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct503 := r.ContainerType() - if yyct503 == codecSelferValueTypeMap1234 { - yyl503 := r.ReadMapStart() - if yyl503 == 0 { + yyct566 := r.ContainerType() + if yyct566 == codecSelferValueTypeMap1234 { + yyl566 := r.ReadMapStart() + if yyl566 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl503, d) + x.codecDecodeSelfFromMap(yyl566, d) } - } else if yyct503 == codecSelferValueTypeArray1234 { - yyl503 := r.ReadArrayStart() - if yyl503 == 0 { + } else if yyct566 == codecSelferValueTypeArray1234 { + yyl566 := r.ReadArrayStart() + if yyl566 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl503, d) + x.codecDecodeSelfFromArray(yyl566, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -6093,12 +6739,12 @@ 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 { + var yys567Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys567Slc + var yyhl567 bool = l >= 0 + for yyj567 := 0; ; yyj567++ { + if yyhl567 { + if yyj567 >= l { break } } else { @@ -6107,10 +6753,10 @@ func (x *DaemonSetStatus) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys504Slc = r.DecodeBytes(yys504Slc, true, true) - yys504 := string(yys504Slc) + yys567Slc = r.DecodeBytes(yys567Slc, true, true) + yys567 := string(yys567Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys504 { + switch yys567 { case "currentNumberScheduled": if r.TryDecodeAsNil() { x.CurrentNumberScheduled = 0 @@ -6129,10 +6775,16 @@ func (x *DaemonSetStatus) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } else { x.DesiredNumberScheduled = int32(r.DecodeInt(32)) } + case "numberReady": + if r.TryDecodeAsNil() { + x.NumberReady = 0 + } else { + x.NumberReady = int32(r.DecodeInt(32)) + } default: - z.DecStructFieldNotFound(-1, yys504) - } // end switch yys504 - } // end for yyj504 + z.DecStructFieldNotFound(-1, yys567) + } // end switch yys567 + } // end for yyj567 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -6140,16 +6792,16 @@ 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 + var yyj572 int + var yyb572 bool + var yyhl572 bool = l >= 0 + yyj572++ + if yyhl572 { + yyb572 = yyj572 > l } else { - yyb508 = r.CheckBreak() + yyb572 = r.CheckBreak() } - if yyb508 { + if yyb572 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -6159,13 +6811,13 @@ func (x *DaemonSetStatus) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) } else { x.CurrentNumberScheduled = int32(r.DecodeInt(32)) } - yyj508++ - if yyhl508 { - yyb508 = yyj508 > l + yyj572++ + if yyhl572 { + yyb572 = yyj572 > l } else { - yyb508 = r.CheckBreak() + yyb572 = r.CheckBreak() } - if yyb508 { + if yyb572 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -6175,13 +6827,13 @@ func (x *DaemonSetStatus) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) } else { x.NumberMisscheduled = int32(r.DecodeInt(32)) } - yyj508++ - if yyhl508 { - yyb508 = yyj508 > l + yyj572++ + if yyhl572 { + yyb572 = yyj572 > l } else { - yyb508 = r.CheckBreak() + yyb572 = r.CheckBreak() } - if yyb508 { + if yyb572 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -6191,18 +6843,34 @@ func (x *DaemonSetStatus) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) } else { x.DesiredNumberScheduled = int32(r.DecodeInt(32)) } + yyj572++ + if yyhl572 { + yyb572 = yyj572 > l + } else { + yyb572 = r.CheckBreak() + } + if yyb572 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.NumberReady = 0 + } else { + x.NumberReady = int32(r.DecodeInt(32)) + } for { - yyj508++ - if yyhl508 { - yyb508 = yyj508 > l + yyj572++ + if yyhl572 { + yyb572 = yyj572 > l } else { - yyb508 = r.CheckBreak() + yyb572 = r.CheckBreak() } - if yyb508 { + if yyb572 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj508-1, "") + z.DecStructFieldNotFound(yyj572-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -6214,39 +6882,39 @@ func (x *DaemonSet) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym512 := z.EncBinary() - _ = yym512 + yym577 := z.EncBinary() + _ = yym577 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 { + yysep578 := !z.EncBinary() + yy2arr578 := z.EncBasicHandle().StructToArray + var yyq578 [5]bool + _, _, _ = yysep578, yyq578, yy2arr578 + const yyr578 bool = false + yyq578[0] = x.Kind != "" + yyq578[1] = x.APIVersion != "" + yyq578[2] = true + yyq578[3] = true + yyq578[4] = true + var yynn578 int + if yyr578 || yy2arr578 { r.EncodeArrayStart(5) } else { - yynn513 = 0 - for _, b := range yyq513 { + yynn578 = 0 + for _, b := range yyq578 { if b { - yynn513++ + yynn578++ } } - r.EncodeMapStart(yynn513) - yynn513 = 0 + r.EncodeMapStart(yynn578) + yynn578 = 0 } - if yyr513 || yy2arr513 { + if yyr578 || yy2arr578 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq513[0] { - yym515 := z.EncBinary() - _ = yym515 + if yyq578[0] { + yym580 := z.EncBinary() + _ = yym580 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) @@ -6255,23 +6923,23 @@ func (x *DaemonSet) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq513[0] { + if yyq578[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym516 := z.EncBinary() - _ = yym516 + yym581 := z.EncBinary() + _ = yym581 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } - if yyr513 || yy2arr513 { + if yyr578 || yy2arr578 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq513[1] { - yym518 := z.EncBinary() - _ = yym518 + if yyq578[1] { + yym583 := z.EncBinary() + _ = yym583 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) @@ -6280,70 +6948,70 @@ func (x *DaemonSet) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq513[1] { + if yyq578[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym519 := z.EncBinary() - _ = yym519 + yym584 := z.EncBinary() + _ = yym584 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } - if yyr513 || yy2arr513 { + if yyr578 || yy2arr578 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq513[2] { - yy521 := &x.ObjectMeta - yy521.CodecEncodeSelf(e) + if yyq578[2] { + yy586 := &x.ObjectMeta + yy586.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { - if yyq513[2] { + if yyq578[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy522 := &x.ObjectMeta - yy522.CodecEncodeSelf(e) + yy587 := &x.ObjectMeta + yy587.CodecEncodeSelf(e) } } - if yyr513 || yy2arr513 { + if yyr578 || yy2arr578 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq513[3] { - yy524 := &x.Spec - yy524.CodecEncodeSelf(e) + if yyq578[3] { + yy589 := &x.Spec + yy589.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { - if yyq513[3] { + if yyq578[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("spec")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy525 := &x.Spec - yy525.CodecEncodeSelf(e) + yy590 := &x.Spec + yy590.CodecEncodeSelf(e) } } - if yyr513 || yy2arr513 { + if yyr578 || yy2arr578 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq513[4] { - yy527 := &x.Status - yy527.CodecEncodeSelf(e) + if yyq578[4] { + yy592 := &x.Status + yy592.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { - if yyq513[4] { + if yyq578[4] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("status")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy528 := &x.Status - yy528.CodecEncodeSelf(e) + yy593 := &x.Status + yy593.CodecEncodeSelf(e) } } - if yyr513 || yy2arr513 { + if yyr578 || yy2arr578 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -6356,25 +7024,25 @@ func (x *DaemonSet) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym529 := z.DecBinary() - _ = yym529 + yym594 := z.DecBinary() + _ = yym594 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct530 := r.ContainerType() - if yyct530 == codecSelferValueTypeMap1234 { - yyl530 := r.ReadMapStart() - if yyl530 == 0 { + yyct595 := r.ContainerType() + if yyct595 == codecSelferValueTypeMap1234 { + yyl595 := r.ReadMapStart() + if yyl595 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl530, d) + x.codecDecodeSelfFromMap(yyl595, d) } - } else if yyct530 == codecSelferValueTypeArray1234 { - yyl530 := r.ReadArrayStart() - if yyl530 == 0 { + } else if yyct595 == codecSelferValueTypeArray1234 { + yyl595 := r.ReadArrayStart() + if yyl595 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl530, d) + x.codecDecodeSelfFromArray(yyl595, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -6386,12 +7054,12 @@ 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 { + var yys596Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys596Slc + var yyhl596 bool = l >= 0 + for yyj596 := 0; ; yyj596++ { + if yyhl596 { + if yyj596 >= l { break } } else { @@ -6400,10 +7068,10 @@ func (x *DaemonSet) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys531Slc = r.DecodeBytes(yys531Slc, true, true) - yys531 := string(yys531Slc) + yys596Slc = r.DecodeBytes(yys596Slc, true, true) + yys596 := string(yys596Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys531 { + switch yys596 { case "kind": if r.TryDecodeAsNil() { x.Kind = "" @@ -6420,27 +7088,27 @@ func (x *DaemonSet) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.ObjectMeta = pkg2_api.ObjectMeta{} } else { - yyv534 := &x.ObjectMeta - yyv534.CodecDecodeSelf(d) + yyv599 := &x.ObjectMeta + yyv599.CodecDecodeSelf(d) } case "spec": if r.TryDecodeAsNil() { x.Spec = DaemonSetSpec{} } else { - yyv535 := &x.Spec - yyv535.CodecDecodeSelf(d) + yyv600 := &x.Spec + yyv600.CodecDecodeSelf(d) } case "status": if r.TryDecodeAsNil() { x.Status = DaemonSetStatus{} } else { - yyv536 := &x.Status - yyv536.CodecDecodeSelf(d) + yyv601 := &x.Status + yyv601.CodecDecodeSelf(d) } default: - z.DecStructFieldNotFound(-1, yys531) - } // end switch yys531 - } // end for yyj531 + z.DecStructFieldNotFound(-1, yys596) + } // end switch yys596 + } // end for yyj596 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -6448,16 +7116,16 @@ 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 + var yyj602 int + var yyb602 bool + var yyhl602 bool = l >= 0 + yyj602++ + if yyhl602 { + yyb602 = yyj602 > l } else { - yyb537 = r.CheckBreak() + yyb602 = r.CheckBreak() } - if yyb537 { + if yyb602 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -6467,13 +7135,13 @@ func (x *DaemonSet) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.Kind = string(r.DecodeString()) } - yyj537++ - if yyhl537 { - yyb537 = yyj537 > l + yyj602++ + if yyhl602 { + yyb602 = yyj602 > l } else { - yyb537 = r.CheckBreak() + yyb602 = r.CheckBreak() } - if yyb537 { + if yyb602 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -6483,13 +7151,13 @@ func (x *DaemonSet) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.APIVersion = string(r.DecodeString()) } - yyj537++ - if yyhl537 { - yyb537 = yyj537 > l + yyj602++ + if yyhl602 { + yyb602 = yyj602 > l } else { - yyb537 = r.CheckBreak() + yyb602 = r.CheckBreak() } - if yyb537 { + if yyb602 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -6497,16 +7165,16 @@ func (x *DaemonSet) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.ObjectMeta = pkg2_api.ObjectMeta{} } else { - yyv540 := &x.ObjectMeta - yyv540.CodecDecodeSelf(d) + yyv605 := &x.ObjectMeta + yyv605.CodecDecodeSelf(d) } - yyj537++ - if yyhl537 { - yyb537 = yyj537 > l + yyj602++ + if yyhl602 { + yyb602 = yyj602 > l } else { - yyb537 = r.CheckBreak() + yyb602 = r.CheckBreak() } - if yyb537 { + if yyb602 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -6514,16 +7182,16 @@ func (x *DaemonSet) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.Spec = DaemonSetSpec{} } else { - yyv541 := &x.Spec - yyv541.CodecDecodeSelf(d) + yyv606 := &x.Spec + yyv606.CodecDecodeSelf(d) } - yyj537++ - if yyhl537 { - yyb537 = yyj537 > l + yyj602++ + if yyhl602 { + yyb602 = yyj602 > l } else { - yyb537 = r.CheckBreak() + yyb602 = r.CheckBreak() } - if yyb537 { + if yyb602 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -6531,21 +7199,21 @@ func (x *DaemonSet) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.Status = DaemonSetStatus{} } else { - yyv542 := &x.Status - yyv542.CodecDecodeSelf(d) + yyv607 := &x.Status + yyv607.CodecDecodeSelf(d) } for { - yyj537++ - if yyhl537 { - yyb537 = yyj537 > l + yyj602++ + if yyhl602 { + yyb602 = yyj602 > l } else { - yyb537 = r.CheckBreak() + yyb602 = r.CheckBreak() } - if yyb537 { + if yyb602 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj537-1, "") + z.DecStructFieldNotFound(yyj602-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -6557,37 +7225,37 @@ func (x *DaemonSetList) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym543 := z.EncBinary() - _ = yym543 + yym608 := z.EncBinary() + _ = yym608 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 { + yysep609 := !z.EncBinary() + yy2arr609 := z.EncBasicHandle().StructToArray + var yyq609 [4]bool + _, _, _ = yysep609, yyq609, yy2arr609 + const yyr609 bool = false + yyq609[0] = x.Kind != "" + yyq609[1] = x.APIVersion != "" + yyq609[2] = true + var yynn609 int + if yyr609 || yy2arr609 { r.EncodeArrayStart(4) } else { - yynn544 = 1 - for _, b := range yyq544 { + yynn609 = 1 + for _, b := range yyq609 { if b { - yynn544++ + yynn609++ } } - r.EncodeMapStart(yynn544) - yynn544 = 0 + r.EncodeMapStart(yynn609) + yynn609 = 0 } - if yyr544 || yy2arr544 { + if yyr609 || yy2arr609 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq544[0] { - yym546 := z.EncBinary() - _ = yym546 + if yyq609[0] { + yym611 := z.EncBinary() + _ = yym611 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) @@ -6596,23 +7264,23 @@ func (x *DaemonSetList) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq544[0] { + if yyq609[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym547 := z.EncBinary() - _ = yym547 + yym612 := z.EncBinary() + _ = yym612 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } - if yyr544 || yy2arr544 { + if yyr609 || yy2arr609 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq544[1] { - yym549 := z.EncBinary() - _ = yym549 + if yyq609[1] { + yym614 := z.EncBinary() + _ = yym614 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) @@ -6621,54 +7289,54 @@ func (x *DaemonSetList) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq544[1] { + if yyq609[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym550 := z.EncBinary() - _ = yym550 + yym615 := z.EncBinary() + _ = yym615 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } - if yyr544 || yy2arr544 { + if yyr609 || yy2arr609 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq544[2] { - yy552 := &x.ListMeta - yym553 := z.EncBinary() - _ = yym553 + if yyq609[2] { + yy617 := &x.ListMeta + yym618 := z.EncBinary() + _ = yym618 if false { - } else if z.HasExtensions() && z.EncExt(yy552) { + } else if z.HasExtensions() && z.EncExt(yy617) { } else { - z.EncFallback(yy552) + z.EncFallback(yy617) } } else { r.EncodeNil() } } else { - if yyq544[2] { + if yyq609[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy554 := &x.ListMeta - yym555 := z.EncBinary() - _ = yym555 + yy619 := &x.ListMeta + yym620 := z.EncBinary() + _ = yym620 if false { - } else if z.HasExtensions() && z.EncExt(yy554) { + } else if z.HasExtensions() && z.EncExt(yy619) { } else { - z.EncFallback(yy554) + z.EncFallback(yy619) } } } - if yyr544 || yy2arr544 { + if yyr609 || yy2arr609 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.Items == nil { r.EncodeNil() } else { - yym557 := z.EncBinary() - _ = yym557 + yym622 := z.EncBinary() + _ = yym622 if false { } else { h.encSliceDaemonSet(([]DaemonSet)(x.Items), e) @@ -6681,15 +7349,15 @@ func (x *DaemonSetList) CodecEncodeSelf(e *codec1978.Encoder) { if x.Items == nil { r.EncodeNil() } else { - yym558 := z.EncBinary() - _ = yym558 + yym623 := z.EncBinary() + _ = yym623 if false { } else { h.encSliceDaemonSet(([]DaemonSet)(x.Items), e) } } } - if yyr544 || yy2arr544 { + if yyr609 || yy2arr609 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -6699,691 +7367,6 @@ func (x *DaemonSetList) CodecEncodeSelf(e *codec1978.Encoder) { } 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 @@ -7413,7 +7396,7 @@ func (x *Ingress) CodecDecodeSelf(d *codec1978.Decoder) { } } -func (x *Ingress) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { +func (x *DaemonSetList) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r @@ -7449,24 +7432,28 @@ func (x *Ingress) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } case "metadata": if r.TryDecodeAsNil() { - x.ObjectMeta = pkg2_api.ObjectMeta{} + x.ListMeta = pkg1_unversioned.ListMeta{} } else { - yyv629 := &x.ObjectMeta - yyv629.CodecDecodeSelf(d) + yyv629 := &x.ListMeta + yym630 := z.DecBinary() + _ = yym630 + if false { + } else if z.HasExtensions() && z.DecExt(yyv629) { + } else { + z.DecFallback(yyv629, false) + } } - case "spec": + case "items": if r.TryDecodeAsNil() { - x.Spec = IngressSpec{} + x.Items = nil } else { - yyv630 := &x.Spec - yyv630.CodecDecodeSelf(d) - } - case "status": - if r.TryDecodeAsNil() { - x.Status = IngressStatus{} - } else { - yyv631 := &x.Status - yyv631.CodecDecodeSelf(d) + yyv631 := &x.Items + yym632 := z.DecBinary() + _ = yym632 + if false { + } else { + h.decSliceDaemonSet((*[]DaemonSet)(yyv631), d) + } } default: z.DecStructFieldNotFound(-1, yys626) @@ -7475,20 +7462,20 @@ func (x *Ingress) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } -func (x *Ingress) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { +func (x *DaemonSetList) 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 + var yyj633 int + var yyb633 bool + var yyhl633 bool = l >= 0 + yyj633++ + if yyhl633 { + yyb633 = yyj633 > l } else { - yyb632 = r.CheckBreak() + yyb633 = r.CheckBreak() } - if yyb632 { + if yyb633 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -7498,13 +7485,13 @@ func (x *Ingress) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.Kind = string(r.DecodeString()) } - yyj632++ - if yyhl632 { - yyb632 = yyj632 > l + yyj633++ + if yyhl633 { + yyb633 = yyj633 > l } else { - yyb632 = r.CheckBreak() + yyb633 = r.CheckBreak() } - if yyb632 { + if yyb633 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -7514,111 +7501,105 @@ func (x *Ingress) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.APIVersion = string(r.DecodeString()) } - yyj632++ - if yyhl632 { - yyb632 = yyj632 > l + yyj633++ + if yyhl633 { + yyb633 = yyj633 > l } else { - yyb632 = r.CheckBreak() + yyb633 = r.CheckBreak() } - if yyb632 { + if yyb633 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.ObjectMeta = pkg2_api.ObjectMeta{} + x.ListMeta = pkg1_unversioned.ListMeta{} } else { - yyv635 := &x.ObjectMeta - yyv635.CodecDecodeSelf(d) + yyv636 := &x.ListMeta + yym637 := z.DecBinary() + _ = yym637 + if false { + } else if z.HasExtensions() && z.DecExt(yyv636) { + } else { + z.DecFallback(yyv636, false) + } } - yyj632++ - if yyhl632 { - yyb632 = yyj632 > l + yyj633++ + if yyhl633 { + yyb633 = yyj633 > l } else { - yyb632 = r.CheckBreak() + yyb633 = r.CheckBreak() } - if yyb632 { + if yyb633 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.Spec = IngressSpec{} + x.Items = nil } 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) + yyv638 := &x.Items + yym639 := z.DecBinary() + _ = yym639 + if false { + } else { + h.decSliceDaemonSet((*[]DaemonSet)(yyv638), d) + } } for { - yyj632++ - if yyhl632 { - yyb632 = yyj632 > l + yyj633++ + if yyhl633 { + yyb633 = yyj633 > l } else { - yyb632 = r.CheckBreak() + yyb633 = r.CheckBreak() } - if yyb632 { + if yyb633 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj632-1, "") + z.DecStructFieldNotFound(yyj633-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } -func (x *IngressList) CodecEncodeSelf(e *codec1978.Encoder) { +func (x *ThirdPartyResourceDataList) 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 + yym640 := z.EncBinary() + _ = yym640 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 { + yysep641 := !z.EncBinary() + yy2arr641 := z.EncBasicHandle().StructToArray + var yyq641 [4]bool + _, _, _ = yysep641, yyq641, yy2arr641 + const yyr641 bool = false + yyq641[0] = x.Kind != "" + yyq641[1] = x.APIVersion != "" + yyq641[2] = true + var yynn641 int + if yyr641 || yy2arr641 { r.EncodeArrayStart(4) } else { - yynn639 = 1 - for _, b := range yyq639 { + yynn641 = 1 + for _, b := range yyq641 { if b { - yynn639++ + yynn641++ } } - r.EncodeMapStart(yynn639) - yynn639 = 0 + r.EncodeMapStart(yynn641) + yynn641 = 0 } - if yyr639 || yy2arr639 { + if yyr641 || yy2arr641 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq639[0] { - yym641 := z.EncBinary() - _ = yym641 + if yyq641[0] { + yym643 := z.EncBinary() + _ = yym643 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) @@ -7627,24 +7608,24 @@ func (x *IngressList) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq639[0] { + if yyq641[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.Kind)) + } + } + } + if yyr641 || yy2arr641 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq641[1] { + yym646 := z.EncBinary() + _ = yym646 + if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } @@ -7652,37 +7633,21 @@ func (x *IngressList) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq639[1] { + if yyq641[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym645 := z.EncBinary() - _ = yym645 + yym647 := z.EncBinary() + _ = yym647 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } - if yyr639 || yy2arr639 { + if yyr641 || yy2arr641 { 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) + if yyq641[2] { yy649 := &x.ListMeta yym650 := z.EncBinary() _ = yym650 @@ -7691,18 +7656,34 @@ func (x *IngressList) CodecEncodeSelf(e *codec1978.Encoder) { } else { z.EncFallback(yy649) } + } else { + r.EncodeNil() + } + } else { + if yyq641[2] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("metadata")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yy651 := &x.ListMeta + yym652 := z.EncBinary() + _ = yym652 + if false { + } else if z.HasExtensions() && z.EncExt(yy651) { + } else { + z.EncFallback(yy651) + } } } - if yyr639 || yy2arr639 { + if yyr641 || yy2arr641 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.Items == nil { r.EncodeNil() } else { - yym652 := z.EncBinary() - _ = yym652 + yym654 := z.EncBinary() + _ = yym654 if false { } else { - h.encSliceIngress(([]Ingress)(x.Items), e) + h.encSliceThirdPartyResourceData(([]ThirdPartyResourceData)(x.Items), e) } } } else { @@ -7712,15 +7693,15 @@ func (x *IngressList) CodecEncodeSelf(e *codec1978.Encoder) { if x.Items == nil { r.EncodeNil() } else { - yym653 := z.EncBinary() - _ = yym653 + yym655 := z.EncBinary() + _ = yym655 if false { } else { - h.encSliceIngress(([]Ingress)(x.Items), e) + h.encSliceThirdPartyResourceData(([]ThirdPartyResourceData)(x.Items), e) } } } - if yyr639 || yy2arr639 { + if yyr641 || yy2arr641 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -7729,29 +7710,29 @@ func (x *IngressList) CodecEncodeSelf(e *codec1978.Encoder) { } } -func (x *IngressList) CodecDecodeSelf(d *codec1978.Decoder) { +func (x *ThirdPartyResourceDataList) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym654 := z.DecBinary() - _ = yym654 + yym656 := z.DecBinary() + _ = yym656 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct655 := r.ContainerType() - if yyct655 == codecSelferValueTypeMap1234 { - yyl655 := r.ReadMapStart() - if yyl655 == 0 { + yyct657 := r.ContainerType() + if yyct657 == codecSelferValueTypeMap1234 { + yyl657 := r.ReadMapStart() + if yyl657 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl655, d) + x.codecDecodeSelfFromMap(yyl657, d) } - } else if yyct655 == codecSelferValueTypeArray1234 { - yyl655 := r.ReadArrayStart() - if yyl655 == 0 { + } else if yyct657 == codecSelferValueTypeArray1234 { + yyl657 := r.ReadArrayStart() + if yyl657 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl655, d) + x.codecDecodeSelfFromArray(yyl657, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -7759,16 +7740,16 @@ func (x *IngressList) CodecDecodeSelf(d *codec1978.Decoder) { } } -func (x *IngressList) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { +func (x *ThirdPartyResourceDataList) 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 { + 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 { @@ -7777,10 +7758,10 @@ func (x *IngressList) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys656Slc = r.DecodeBytes(yys656Slc, true, true) - yys656 := string(yys656Slc) + yys658Slc = r.DecodeBytes(yys658Slc, true, true) + yys658 := string(yys658Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys656 { + switch yys658 { case "kind": if r.TryDecodeAsNil() { x.Kind = "" @@ -7797,48 +7778,48 @@ func (x *IngressList) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.ListMeta = pkg1_unversioned.ListMeta{} } else { - yyv659 := &x.ListMeta - yym660 := z.DecBinary() - _ = yym660 + yyv661 := &x.ListMeta + yym662 := z.DecBinary() + _ = yym662 if false { - } else if z.HasExtensions() && z.DecExt(yyv659) { + } else if z.HasExtensions() && z.DecExt(yyv661) { } else { - z.DecFallback(yyv659, false) + z.DecFallback(yyv661, false) } } case "items": if r.TryDecodeAsNil() { x.Items = nil } else { - yyv661 := &x.Items - yym662 := z.DecBinary() - _ = yym662 + yyv663 := &x.Items + yym664 := z.DecBinary() + _ = yym664 if false { } else { - h.decSliceIngress((*[]Ingress)(yyv661), d) + h.decSliceThirdPartyResourceData((*[]ThirdPartyResourceData)(yyv663), d) } } default: - z.DecStructFieldNotFound(-1, yys656) - } // end switch yys656 - } // end for yyj656 + z.DecStructFieldNotFound(-1, yys658) + } // end switch yys658 + } // end for yyj658 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } -func (x *IngressList) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { +func (x *ThirdPartyResourceDataList) 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 + var yyj665 int + var yyb665 bool + var yyhl665 bool = l >= 0 + yyj665++ + if yyhl665 { + yyb665 = yyj665 > l } else { - yyb663 = r.CheckBreak() + yyb665 = r.CheckBreak() } - if yyb663 { + if yyb665 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -7848,13 +7829,13 @@ func (x *IngressList) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.Kind = string(r.DecodeString()) } - yyj663++ - if yyhl663 { - yyb663 = yyj663 > l + yyj665++ + if yyhl665 { + yyb665 = yyj665 > l } else { - yyb663 = r.CheckBreak() + yyb665 = r.CheckBreak() } - if yyb663 { + if yyb665 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -7864,13 +7845,13 @@ func (x *IngressList) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.APIVersion = string(r.DecodeString()) } - yyj663++ - if yyhl663 { - yyb663 = yyj663 > l + yyj665++ + if yyhl665 { + yyb665 = yyj665 > l } else { - yyb663 = r.CheckBreak() + yyb665 = r.CheckBreak() } - if yyb663 { + if yyb665 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -7878,22 +7859,22 @@ func (x *IngressList) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.ListMeta = pkg1_unversioned.ListMeta{} } else { - yyv666 := &x.ListMeta - yym667 := z.DecBinary() - _ = yym667 + yyv668 := &x.ListMeta + yym669 := z.DecBinary() + _ = yym669 if false { - } else if z.HasExtensions() && z.DecExt(yyv666) { + } else if z.HasExtensions() && z.DecExt(yyv668) { } else { - z.DecFallback(yyv666, false) + z.DecFallback(yyv668, false) } } - yyj663++ - if yyhl663 { - yyb663 = yyj663 > l + yyj665++ + if yyhl665 { + yyb665 = yyj665 > l } else { - yyb663 = r.CheckBreak() + yyb665 = r.CheckBreak() } - if yyb663 { + if yyb665 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -7901,26 +7882,713 @@ func (x *IngressList) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.Items = nil } else { - yyv668 := &x.Items - yym669 := z.DecBinary() - _ = yym669 + yyv670 := &x.Items + yym671 := z.DecBinary() + _ = yym671 if false { } else { - h.decSliceIngress((*[]Ingress)(yyv668), d) + h.decSliceThirdPartyResourceData((*[]ThirdPartyResourceData)(yyv670), d) } } for { - yyj663++ - if yyhl663 { - yyb663 = yyj663 > l + yyj665++ + if yyhl665 { + yyb665 = yyj665 > l } else { - yyb663 = r.CheckBreak() + yyb665 = r.CheckBreak() } - if yyb663 { + if yyb665 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj663-1, "") + z.DecStructFieldNotFound(yyj665-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 { + yym672 := z.EncBinary() + _ = yym672 + if false { + } else if z.HasExtensions() && z.EncExt(x) { + } else { + yysep673 := !z.EncBinary() + yy2arr673 := z.EncBasicHandle().StructToArray + var yyq673 [5]bool + _, _, _ = yysep673, yyq673, yy2arr673 + const yyr673 bool = false + yyq673[0] = x.Kind != "" + yyq673[1] = x.APIVersion != "" + yyq673[2] = true + yyq673[3] = true + yyq673[4] = true + var yynn673 int + if yyr673 || yy2arr673 { + r.EncodeArrayStart(5) + } else { + yynn673 = 0 + for _, b := range yyq673 { + if b { + yynn673++ + } + } + r.EncodeMapStart(yynn673) + yynn673 = 0 + } + if yyr673 || yy2arr673 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq673[0] { + yym675 := z.EncBinary() + _ = yym675 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq673[0] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("kind")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym676 := z.EncBinary() + _ = yym676 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + } + } + } + if yyr673 || yy2arr673 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq673[1] { + yym678 := z.EncBinary() + _ = yym678 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq673[1] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym679 := z.EncBinary() + _ = yym679 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + } + } + } + if yyr673 || yy2arr673 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq673[2] { + yy681 := &x.ObjectMeta + yy681.CodecEncodeSelf(e) + } else { + r.EncodeNil() + } + } else { + if yyq673[2] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("metadata")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yy682 := &x.ObjectMeta + yy682.CodecEncodeSelf(e) + } + } + if yyr673 || yy2arr673 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq673[3] { + yy684 := &x.Spec + yy684.CodecEncodeSelf(e) + } else { + r.EncodeNil() + } + } else { + if yyq673[3] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("spec")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yy685 := &x.Spec + yy685.CodecEncodeSelf(e) + } + } + if yyr673 || yy2arr673 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq673[4] { + yy687 := &x.Status + yy687.CodecEncodeSelf(e) + } else { + r.EncodeNil() + } + } else { + if yyq673[4] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("status")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yy688 := &x.Status + yy688.CodecEncodeSelf(e) + } + } + if yyr673 || yy2arr673 { + 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 + yym689 := z.DecBinary() + _ = yym689 + if false { + } else if z.HasExtensions() && z.DecExt(x) { + } else { + yyct690 := r.ContainerType() + if yyct690 == codecSelferValueTypeMap1234 { + yyl690 := r.ReadMapStart() + if yyl690 == 0 { + z.DecSendContainerState(codecSelfer_containerMapEnd1234) + } else { + x.codecDecodeSelfFromMap(yyl690, d) + } + } else if yyct690 == codecSelferValueTypeArray1234 { + yyl690 := r.ReadArrayStart() + if yyl690 == 0 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + x.codecDecodeSelfFromArray(yyl690, 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 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 { + if r.CheckBreak() { + break + } + } + z.DecSendContainerState(codecSelfer_containerMapKey1234) + yys691Slc = r.DecodeBytes(yys691Slc, true, true) + yys691 := string(yys691Slc) + z.DecSendContainerState(codecSelfer_containerMapValue1234) + switch yys691 { + case "kind": + if 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 { + yyv694 := &x.ObjectMeta + yyv694.CodecDecodeSelf(d) + } + case "spec": + if r.TryDecodeAsNil() { + x.Spec = IngressSpec{} + } else { + yyv695 := &x.Spec + yyv695.CodecDecodeSelf(d) + } + case "status": + if r.TryDecodeAsNil() { + x.Status = IngressStatus{} + } else { + yyv696 := &x.Status + yyv696.CodecDecodeSelf(d) + } + default: + z.DecStructFieldNotFound(-1, yys691) + } // end switch yys691 + } // end for yyj691 + 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 yyj697 int + var yyb697 bool + var yyhl697 bool = l >= 0 + yyj697++ + if yyhl697 { + yyb697 = yyj697 > l + } else { + yyb697 = r.CheckBreak() + } + if yyb697 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Kind = "" + } else { + x.Kind = string(r.DecodeString()) + } + yyj697++ + if yyhl697 { + yyb697 = yyj697 > l + } else { + yyb697 = r.CheckBreak() + } + if yyb697 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.APIVersion = "" + } else { + x.APIVersion = string(r.DecodeString()) + } + yyj697++ + if yyhl697 { + yyb697 = yyj697 > l + } else { + yyb697 = r.CheckBreak() + } + if yyb697 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.ObjectMeta = pkg2_api.ObjectMeta{} + } else { + yyv700 := &x.ObjectMeta + yyv700.CodecDecodeSelf(d) + } + yyj697++ + if yyhl697 { + yyb697 = yyj697 > l + } else { + yyb697 = r.CheckBreak() + } + if yyb697 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Spec = IngressSpec{} + } else { + yyv701 := &x.Spec + yyv701.CodecDecodeSelf(d) + } + yyj697++ + if yyhl697 { + yyb697 = yyj697 > l + } else { + yyb697 = r.CheckBreak() + } + if yyb697 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Status = IngressStatus{} + } else { + yyv702 := &x.Status + yyv702.CodecDecodeSelf(d) + } + for { + yyj697++ + if yyhl697 { + yyb697 = yyj697 > l + } else { + yyb697 = r.CheckBreak() + } + if yyb697 { + break + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + z.DecStructFieldNotFound(yyj697-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 { + yym703 := z.EncBinary() + _ = yym703 + if false { + } else if z.HasExtensions() && z.EncExt(x) { + } else { + yysep704 := !z.EncBinary() + yy2arr704 := z.EncBasicHandle().StructToArray + var yyq704 [4]bool + _, _, _ = yysep704, yyq704, yy2arr704 + const yyr704 bool = false + yyq704[0] = x.Kind != "" + yyq704[1] = x.APIVersion != "" + yyq704[2] = true + var yynn704 int + if yyr704 || yy2arr704 { + r.EncodeArrayStart(4) + } else { + yynn704 = 1 + for _, b := range yyq704 { + if b { + yynn704++ + } + } + r.EncodeMapStart(yynn704) + yynn704 = 0 + } + if yyr704 || yy2arr704 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq704[0] { + yym706 := z.EncBinary() + _ = yym706 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq704[0] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("kind")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym707 := z.EncBinary() + _ = yym707 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + } + } + } + if yyr704 || yy2arr704 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq704[1] { + yym709 := z.EncBinary() + _ = yym709 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq704[1] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym710 := z.EncBinary() + _ = yym710 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + } + } + } + if yyr704 || yy2arr704 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq704[2] { + yy712 := &x.ListMeta + yym713 := z.EncBinary() + _ = yym713 + if false { + } else if z.HasExtensions() && z.EncExt(yy712) { + } else { + z.EncFallback(yy712) + } + } else { + r.EncodeNil() + } + } else { + if yyq704[2] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("metadata")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yy714 := &x.ListMeta + yym715 := z.EncBinary() + _ = yym715 + if false { + } else if z.HasExtensions() && z.EncExt(yy714) { + } else { + z.EncFallback(yy714) + } + } + } + if yyr704 || yy2arr704 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if x.Items == nil { + r.EncodeNil() + } else { + yym717 := z.EncBinary() + _ = yym717 + 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 { + yym718 := z.EncBinary() + _ = yym718 + if false { + } else { + h.encSliceIngress(([]Ingress)(x.Items), e) + } + } + } + if yyr704 || yy2arr704 { + 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 + yym719 := z.DecBinary() + _ = yym719 + if false { + } else if z.HasExtensions() && z.DecExt(x) { + } else { + yyct720 := r.ContainerType() + if yyct720 == codecSelferValueTypeMap1234 { + yyl720 := r.ReadMapStart() + if yyl720 == 0 { + z.DecSendContainerState(codecSelfer_containerMapEnd1234) + } else { + x.codecDecodeSelfFromMap(yyl720, d) + } + } else if yyct720 == codecSelferValueTypeArray1234 { + yyl720 := r.ReadArrayStart() + if yyl720 == 0 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + x.codecDecodeSelfFromArray(yyl720, 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 yys721Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys721Slc + var yyhl721 bool = l >= 0 + for yyj721 := 0; ; yyj721++ { + if yyhl721 { + if yyj721 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + z.DecSendContainerState(codecSelfer_containerMapKey1234) + yys721Slc = r.DecodeBytes(yys721Slc, true, true) + yys721 := string(yys721Slc) + z.DecSendContainerState(codecSelfer_containerMapValue1234) + switch yys721 { + case "kind": + if 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 { + yyv724 := &x.ListMeta + yym725 := z.DecBinary() + _ = yym725 + if false { + } else if z.HasExtensions() && z.DecExt(yyv724) { + } else { + z.DecFallback(yyv724, false) + } + } + case "items": + if r.TryDecodeAsNil() { + x.Items = nil + } else { + yyv726 := &x.Items + yym727 := z.DecBinary() + _ = yym727 + if false { + } else { + h.decSliceIngress((*[]Ingress)(yyv726), d) + } + } + default: + z.DecStructFieldNotFound(-1, yys721) + } // end switch yys721 + } // end for yyj721 + 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 yyj728 int + var yyb728 bool + var yyhl728 bool = l >= 0 + yyj728++ + if yyhl728 { + yyb728 = yyj728 > l + } else { + yyb728 = r.CheckBreak() + } + if yyb728 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Kind = "" + } else { + x.Kind = string(r.DecodeString()) + } + yyj728++ + if yyhl728 { + yyb728 = yyj728 > l + } else { + yyb728 = r.CheckBreak() + } + if yyb728 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.APIVersion = "" + } else { + x.APIVersion = string(r.DecodeString()) + } + yyj728++ + if yyhl728 { + yyb728 = yyj728 > l + } else { + yyb728 = r.CheckBreak() + } + if yyb728 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.ListMeta = pkg1_unversioned.ListMeta{} + } else { + yyv731 := &x.ListMeta + yym732 := z.DecBinary() + _ = yym732 + if false { + } else if z.HasExtensions() && z.DecExt(yyv731) { + } else { + z.DecFallback(yyv731, false) + } + } + yyj728++ + if yyhl728 { + yyb728 = yyj728 > l + } else { + yyb728 = r.CheckBreak() + } + if yyb728 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Items = nil + } else { + yyv733 := &x.Items + yym734 := z.DecBinary() + _ = yym734 + if false { + } else { + h.decSliceIngress((*[]Ingress)(yyv733), d) + } + } + for { + yyj728++ + if yyhl728 { + yyb728 = yyj728 > l + } else { + yyb728 = r.CheckBreak() + } + if yyb728 { + break + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + z.DecStructFieldNotFound(yyj728-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -7932,35 +8600,35 @@ func (x *IngressSpec) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym670 := z.EncBinary() - _ = yym670 + yym735 := z.EncBinary() + _ = yym735 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 { + yysep736 := !z.EncBinary() + yy2arr736 := z.EncBasicHandle().StructToArray + var yyq736 [3]bool + _, _, _ = yysep736, yyq736, yy2arr736 + const yyr736 bool = false + yyq736[0] = x.Backend != nil + yyq736[1] = len(x.TLS) != 0 + yyq736[2] = len(x.Rules) != 0 + var yynn736 int + if yyr736 || yy2arr736 { r.EncodeArrayStart(3) } else { - yynn671 = 0 - for _, b := range yyq671 { + yynn736 = 0 + for _, b := range yyq736 { if b { - yynn671++ + yynn736++ } } - r.EncodeMapStart(yynn671) - yynn671 = 0 + r.EncodeMapStart(yynn736) + yynn736 = 0 } - if yyr671 || yy2arr671 { + if yyr736 || yy2arr736 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq671[0] { + if yyq736[0] { if x.Backend == nil { r.EncodeNil() } else { @@ -7970,7 +8638,7 @@ func (x *IngressSpec) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq671[0] { + if yyq736[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("backend")) z.EncSendContainerState(codecSelfer_containerMapValue1234) @@ -7981,14 +8649,14 @@ func (x *IngressSpec) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr671 || yy2arr671 { + if yyr736 || yy2arr736 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq671[1] { + if yyq736[1] { if x.TLS == nil { r.EncodeNil() } else { - yym674 := z.EncBinary() - _ = yym674 + yym739 := z.EncBinary() + _ = yym739 if false { } else { h.encSliceIngressTLS(([]IngressTLS)(x.TLS), e) @@ -7998,15 +8666,15 @@ func (x *IngressSpec) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq671[1] { + if yyq736[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 + yym740 := z.EncBinary() + _ = yym740 if false { } else { h.encSliceIngressTLS(([]IngressTLS)(x.TLS), e) @@ -8014,14 +8682,14 @@ func (x *IngressSpec) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr671 || yy2arr671 { + if yyr736 || yy2arr736 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq671[2] { + if yyq736[2] { if x.Rules == nil { r.EncodeNil() } else { - yym677 := z.EncBinary() - _ = yym677 + yym742 := z.EncBinary() + _ = yym742 if false { } else { h.encSliceIngressRule(([]IngressRule)(x.Rules), e) @@ -8031,15 +8699,15 @@ func (x *IngressSpec) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq671[2] { + if yyq736[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 + yym743 := z.EncBinary() + _ = yym743 if false { } else { h.encSliceIngressRule(([]IngressRule)(x.Rules), e) @@ -8047,7 +8715,7 @@ func (x *IngressSpec) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr671 || yy2arr671 { + if yyr736 || yy2arr736 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -8060,25 +8728,25 @@ func (x *IngressSpec) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym679 := z.DecBinary() - _ = yym679 + yym744 := z.DecBinary() + _ = yym744 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct680 := r.ContainerType() - if yyct680 == codecSelferValueTypeMap1234 { - yyl680 := r.ReadMapStart() - if yyl680 == 0 { + yyct745 := r.ContainerType() + if yyct745 == codecSelferValueTypeMap1234 { + yyl745 := r.ReadMapStart() + if yyl745 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl680, d) + x.codecDecodeSelfFromMap(yyl745, d) } - } else if yyct680 == codecSelferValueTypeArray1234 { - yyl680 := r.ReadArrayStart() - if yyl680 == 0 { + } else if yyct745 == codecSelferValueTypeArray1234 { + yyl745 := r.ReadArrayStart() + if yyl745 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl680, d) + x.codecDecodeSelfFromArray(yyl745, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -8090,12 +8758,12 @@ 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 { + var yys746Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys746Slc + var yyhl746 bool = l >= 0 + for yyj746 := 0; ; yyj746++ { + if yyhl746 { + if yyj746 >= l { break } } else { @@ -8104,10 +8772,10 @@ func (x *IngressSpec) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys681Slc = r.DecodeBytes(yys681Slc, true, true) - yys681 := string(yys681Slc) + yys746Slc = r.DecodeBytes(yys746Slc, true, true) + yys746 := string(yys746Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys681 { + switch yys746 { case "backend": if r.TryDecodeAsNil() { if x.Backend != nil { @@ -8123,30 +8791,30 @@ func (x *IngressSpec) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.TLS = nil } else { - yyv683 := &x.TLS - yym684 := z.DecBinary() - _ = yym684 + yyv748 := &x.TLS + yym749 := z.DecBinary() + _ = yym749 if false { } else { - h.decSliceIngressTLS((*[]IngressTLS)(yyv683), d) + h.decSliceIngressTLS((*[]IngressTLS)(yyv748), d) } } case "rules": if r.TryDecodeAsNil() { x.Rules = nil } else { - yyv685 := &x.Rules - yym686 := z.DecBinary() - _ = yym686 + yyv750 := &x.Rules + yym751 := z.DecBinary() + _ = yym751 if false { } else { - h.decSliceIngressRule((*[]IngressRule)(yyv685), d) + h.decSliceIngressRule((*[]IngressRule)(yyv750), d) } } default: - z.DecStructFieldNotFound(-1, yys681) - } // end switch yys681 - } // end for yyj681 + z.DecStructFieldNotFound(-1, yys746) + } // end switch yys746 + } // end for yyj746 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -8154,16 +8822,16 @@ 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 + var yyj752 int + var yyb752 bool + var yyhl752 bool = l >= 0 + yyj752++ + if yyhl752 { + yyb752 = yyj752 > l } else { - yyb687 = r.CheckBreak() + yyb752 = r.CheckBreak() } - if yyb687 { + if yyb752 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -8178,13 +8846,13 @@ func (x *IngressSpec) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } x.Backend.CodecDecodeSelf(d) } - yyj687++ - if yyhl687 { - yyb687 = yyj687 > l + yyj752++ + if yyhl752 { + yyb752 = yyj752 > l } else { - yyb687 = r.CheckBreak() + yyb752 = r.CheckBreak() } - if yyb687 { + if yyb752 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -8192,21 +8860,21 @@ func (x *IngressSpec) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.TLS = nil } else { - yyv689 := &x.TLS - yym690 := z.DecBinary() - _ = yym690 + yyv754 := &x.TLS + yym755 := z.DecBinary() + _ = yym755 if false { } else { - h.decSliceIngressTLS((*[]IngressTLS)(yyv689), d) + h.decSliceIngressTLS((*[]IngressTLS)(yyv754), d) } } - yyj687++ - if yyhl687 { - yyb687 = yyj687 > l + yyj752++ + if yyhl752 { + yyb752 = yyj752 > l } else { - yyb687 = r.CheckBreak() + yyb752 = r.CheckBreak() } - if yyb687 { + if yyb752 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -8214,1035 +8882,31 @@ func (x *IngressSpec) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.Rules = nil } else { - yyv691 := &x.Rules - yym692 := z.DecBinary() - _ = yym692 + yyv756 := &x.Rules + yym757 := z.DecBinary() + _ = yym757 if false { } else { - h.decSliceIngressRule((*[]IngressRule)(yyv691), d) + h.decSliceIngressRule((*[]IngressRule)(yyv756), d) } } for { - yyj687++ - if yyhl687 { - yyb687 = yyj687 > l + yyj752++ + if yyhl752 { + yyb752 = yyj752 > l } else { - yyb687 = r.CheckBreak() + yyb752 = r.CheckBreak() } - if yyb687 { + if yyb752 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj687-1, "") + z.DecStructFieldNotFound(yyj752-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 @@ -9259,12 +8923,13 @@ func (x *HTTPIngressPath) CodecEncodeSelf(e *codec1978.Encoder) { var yyq759 [2]bool _, _, _ = yysep759, yyq759, yy2arr759 const yyr759 bool = false - yyq759[0] = x.Path != "" + yyq759[0] = len(x.Hosts) != 0 + yyq759[1] = x.SecretName != "" var yynn759 int if yyr759 || yy2arr759 { r.EncodeArrayStart(2) } else { - yynn759 = 1 + yynn759 = 0 for _, b := range yyq759 { if b { yynn759++ @@ -9276,38 +8941,60 @@ func (x *HTTPIngressPath) CodecEncodeSelf(e *codec1978.Encoder) { if yyr759 || yy2arr759 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq759[0] { - yym761 := z.EncBinary() - _ = yym761 - if false { + if x.Hosts == nil { + r.EncodeNil() } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Path)) + yym761 := z.EncBinary() + _ = yym761 + if false { + } else { + z.F.EncSliceStringV(x.Hosts, false, e) + } } } else { - r.EncodeString(codecSelferC_UTF81234, "") + r.EncodeNil() } } else { if yyq759[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("path")) + r.EncodeString(codecSelferC_UTF81234, string("hosts")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym762 := z.EncBinary() - _ = yym762 - if false { + if x.Hosts == nil { + r.EncodeNil() } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Path)) + yym762 := z.EncBinary() + _ = yym762 + if false { + } else { + z.F.EncSliceStringV(x.Hosts, false, e) + } } } } if yyr759 || yy2arr759 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy764 := &x.Backend - yy764.CodecEncodeSelf(e) + if yyq759[1] { + yym764 := z.EncBinary() + _ = yym764 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.SecretName)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("backend")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy765 := &x.Backend - yy765.CodecEncodeSelf(e) + if yyq759[1] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("secretName")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym765 := z.EncBinary() + _ = yym765 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.SecretName)) + } + } } if yyr759 || yy2arr759 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) @@ -9318,7 +9005,7 @@ func (x *HTTPIngressPath) CodecEncodeSelf(e *codec1978.Encoder) { } } -func (x *HTTPIngressPath) CodecDecodeSelf(d *codec1978.Decoder) { +func (x *IngressTLS) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r @@ -9348,7 +9035,7 @@ func (x *HTTPIngressPath) CodecDecodeSelf(d *codec1978.Decoder) { } } -func (x *HTTPIngressPath) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { +func (x *IngressTLS) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r @@ -9370,6 +9057,987 @@ func (x *HTTPIngressPath) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { yys768 := string(yys768Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys768 { + case "hosts": + if r.TryDecodeAsNil() { + x.Hosts = nil + } else { + yyv769 := &x.Hosts + yym770 := z.DecBinary() + _ = yym770 + if false { + } else { + z.F.DecSliceStringX(yyv769, false, d) + } + } + case "secretName": + if r.TryDecodeAsNil() { + x.SecretName = "" + } else { + x.SecretName = string(r.DecodeString()) + } + default: + z.DecStructFieldNotFound(-1, yys768) + } // end switch yys768 + } // end for yyj768 + 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 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.Hosts = nil + } else { + yyv773 := &x.Hosts + yym774 := z.DecBinary() + _ = yym774 + if false { + } else { + z.F.DecSliceStringX(yyv773, false, d) + } + } + 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()) + } + 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 *IngressStatus) 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 [1]bool + _, _, _ = yysep777, yyq777, yy2arr777 + const yyr777 bool = false + yyq777[0] = true + var yynn777 int + if yyr777 || yy2arr777 { + r.EncodeArrayStart(1) + } else { + yynn777 = 0 + for _, b := range yyq777 { + if b { + yynn777++ + } + } + r.EncodeMapStart(yynn777) + yynn777 = 0 + } + if yyr777 || yy2arr777 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq777[0] { + yy779 := &x.LoadBalancer + yy779.CodecEncodeSelf(e) + } else { + r.EncodeNil() + } + } else { + if yyq777[0] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("loadBalancer")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yy780 := &x.LoadBalancer + yy780.CodecEncodeSelf(e) + } + } + if yyr777 || yy2arr777 { + 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 + yym781 := z.DecBinary() + _ = yym781 + if false { + } else if z.HasExtensions() && z.DecExt(x) { + } else { + yyct782 := r.ContainerType() + if yyct782 == codecSelferValueTypeMap1234 { + yyl782 := r.ReadMapStart() + if yyl782 == 0 { + z.DecSendContainerState(codecSelfer_containerMapEnd1234) + } else { + x.codecDecodeSelfFromMap(yyl782, d) + } + } else if yyct782 == codecSelferValueTypeArray1234 { + yyl782 := r.ReadArrayStart() + if yyl782 == 0 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + x.codecDecodeSelfFromArray(yyl782, 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 yys783Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys783Slc + var yyhl783 bool = l >= 0 + for yyj783 := 0; ; yyj783++ { + if yyhl783 { + if yyj783 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + z.DecSendContainerState(codecSelfer_containerMapKey1234) + yys783Slc = r.DecodeBytes(yys783Slc, true, true) + yys783 := string(yys783Slc) + z.DecSendContainerState(codecSelfer_containerMapValue1234) + switch yys783 { + case "loadBalancer": + if r.TryDecodeAsNil() { + x.LoadBalancer = pkg2_api.LoadBalancerStatus{} + } else { + yyv784 := &x.LoadBalancer + yyv784.CodecDecodeSelf(d) + } + default: + z.DecStructFieldNotFound(-1, yys783) + } // end switch yys783 + } // end for yyj783 + 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 yyj785 int + var yyb785 bool + var yyhl785 bool = l >= 0 + yyj785++ + if yyhl785 { + yyb785 = yyj785 > l + } else { + yyb785 = r.CheckBreak() + } + if yyb785 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.LoadBalancer = pkg2_api.LoadBalancerStatus{} + } else { + yyv786 := &x.LoadBalancer + yyv786.CodecDecodeSelf(d) + } + for { + yyj785++ + if yyhl785 { + yyb785 = yyj785 > l + } else { + yyb785 = r.CheckBreak() + } + if yyb785 { + break + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + z.DecStructFieldNotFound(yyj785-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 { + yym787 := z.EncBinary() + _ = yym787 + if false { + } else if z.HasExtensions() && z.EncExt(x) { + } else { + yysep788 := !z.EncBinary() + yy2arr788 := z.EncBasicHandle().StructToArray + var yyq788 [2]bool + _, _, _ = yysep788, yyq788, yy2arr788 + const yyr788 bool = false + yyq788[0] = x.Host != "" + yyq788[1] = x.IngressRuleValue.HTTP != nil && x.HTTP != nil + var yynn788 int + if yyr788 || yy2arr788 { + r.EncodeArrayStart(2) + } else { + yynn788 = 0 + for _, b := range yyq788 { + if b { + yynn788++ + } + } + r.EncodeMapStart(yynn788) + yynn788 = 0 + } + if yyr788 || yy2arr788 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq788[0] { + yym790 := z.EncBinary() + _ = yym790 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Host)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq788[0] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("host")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym791 := z.EncBinary() + _ = yym791 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Host)) + } + } + } + var yyn792 bool + if x.IngressRuleValue.HTTP == nil { + yyn792 = true + goto LABEL792 + } + LABEL792: + if yyr788 || yy2arr788 { + if yyn792 { + r.EncodeNil() + } else { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq788[1] { + if x.HTTP == nil { + r.EncodeNil() + } else { + x.HTTP.CodecEncodeSelf(e) + } + } else { + r.EncodeNil() + } + } + } else { + if yyq788[1] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("http")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + if yyn792 { + r.EncodeNil() + } else { + if x.HTTP == nil { + r.EncodeNil() + } else { + x.HTTP.CodecEncodeSelf(e) + } + } + } + } + if yyr788 || yy2arr788 { + 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 + 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 *IngressRule) 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 "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, yys795) + } // end switch yys795 + } // end for yyj795 + 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 yyj798 int + var yyb798 bool + var yyhl798 bool = l >= 0 + yyj798++ + if yyhl798 { + yyb798 = yyj798 > l + } else { + yyb798 = r.CheckBreak() + } + if yyb798 { + 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) + } + yyj798++ + if yyhl798 { + yyb798 = yyj798 > l + } else { + yyb798 = r.CheckBreak() + } + if yyb798 { + 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 { + yyj798++ + if yyhl798 { + yyb798 = yyj798 > l + } else { + yyb798 = r.CheckBreak() + } + if yyb798 { + break + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + z.DecStructFieldNotFound(yyj798-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 { + yym801 := z.EncBinary() + _ = yym801 + if false { + } else if z.HasExtensions() && z.EncExt(x) { + } else { + yysep802 := !z.EncBinary() + yy2arr802 := z.EncBasicHandle().StructToArray + var yyq802 [1]bool + _, _, _ = yysep802, yyq802, yy2arr802 + const yyr802 bool = false + yyq802[0] = x.HTTP != nil + var yynn802 int + if yyr802 || yy2arr802 { + r.EncodeArrayStart(1) + } else { + yynn802 = 0 + for _, b := range yyq802 { + if b { + yynn802++ + } + } + r.EncodeMapStart(yynn802) + yynn802 = 0 + } + if yyr802 || yy2arr802 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq802[0] { + if x.HTTP == nil { + r.EncodeNil() + } else { + x.HTTP.CodecEncodeSelf(e) + } + } else { + r.EncodeNil() + } + } else { + if yyq802[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 yyr802 || yy2arr802 { + 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 + yym804 := z.DecBinary() + _ = yym804 + if false { + } else if z.HasExtensions() && z.DecExt(x) { + } else { + yyct805 := r.ContainerType() + if yyct805 == codecSelferValueTypeMap1234 { + yyl805 := r.ReadMapStart() + if yyl805 == 0 { + z.DecSendContainerState(codecSelfer_containerMapEnd1234) + } else { + x.codecDecodeSelfFromMap(yyl805, d) + } + } else if yyct805 == codecSelferValueTypeArray1234 { + yyl805 := r.ReadArrayStart() + if yyl805 == 0 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + x.codecDecodeSelfFromArray(yyl805, 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 yys806Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys806Slc + var yyhl806 bool = l >= 0 + for yyj806 := 0; ; yyj806++ { + if yyhl806 { + if yyj806 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + z.DecSendContainerState(codecSelfer_containerMapKey1234) + yys806Slc = r.DecodeBytes(yys806Slc, true, true) + yys806 := string(yys806Slc) + z.DecSendContainerState(codecSelfer_containerMapValue1234) + switch yys806 { + 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, yys806) + } // end switch yys806 + } // end for yyj806 + 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 yyj808 int + var yyb808 bool + var yyhl808 bool = l >= 0 + 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.HTTP != nil { + x.HTTP = nil + } + } else { + if x.HTTP == nil { + x.HTTP = new(HTTPIngressRuleValue) + } + x.HTTP.CodecDecodeSelf(d) + } + for { + yyj808++ + if yyhl808 { + yyb808 = yyj808 > l + } else { + yyb808 = r.CheckBreak() + } + if yyb808 { + break + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + z.DecStructFieldNotFound(yyj808-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 { + yym810 := z.EncBinary() + _ = yym810 + if false { + } else if z.HasExtensions() && z.EncExt(x) { + } else { + yysep811 := !z.EncBinary() + yy2arr811 := z.EncBasicHandle().StructToArray + var yyq811 [1]bool + _, _, _ = yysep811, yyq811, yy2arr811 + const yyr811 bool = false + var yynn811 int + if yyr811 || yy2arr811 { + r.EncodeArrayStart(1) + } else { + yynn811 = 1 + for _, b := range yyq811 { + if b { + yynn811++ + } + } + r.EncodeMapStart(yynn811) + yynn811 = 0 + } + if yyr811 || yy2arr811 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if x.Paths == nil { + r.EncodeNil() + } else { + yym813 := z.EncBinary() + _ = yym813 + 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 { + yym814 := z.EncBinary() + _ = yym814 + if false { + } else { + h.encSliceHTTPIngressPath(([]HTTPIngressPath)(x.Paths), e) + } + } + } + if yyr811 || yy2arr811 { + 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 + 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 *HTTPIngressRuleValue) 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 "paths": + if r.TryDecodeAsNil() { + x.Paths = nil + } else { + yyv818 := &x.Paths + yym819 := z.DecBinary() + _ = yym819 + if false { + } else { + h.decSliceHTTPIngressPath((*[]HTTPIngressPath)(yyv818), d) + } + } + default: + z.DecStructFieldNotFound(-1, yys817) + } // end switch yys817 + } // end for yyj817 + 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 yyj820 int + var yyb820 bool + var yyhl820 bool = l >= 0 + yyj820++ + if yyhl820 { + yyb820 = yyj820 > l + } else { + yyb820 = r.CheckBreak() + } + if yyb820 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Paths = nil + } else { + yyv821 := &x.Paths + yym822 := z.DecBinary() + _ = yym822 + if false { + } else { + h.decSliceHTTPIngressPath((*[]HTTPIngressPath)(yyv821), d) + } + } + for { + yyj820++ + if yyhl820 { + yyb820 = yyj820 > l + } else { + yyb820 = r.CheckBreak() + } + if yyb820 { + break + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + z.DecStructFieldNotFound(yyj820-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 { + yym823 := z.EncBinary() + _ = yym823 + if false { + } else if z.HasExtensions() && z.EncExt(x) { + } else { + yysep824 := !z.EncBinary() + yy2arr824 := z.EncBasicHandle().StructToArray + var yyq824 [2]bool + _, _, _ = yysep824, yyq824, yy2arr824 + const yyr824 bool = false + yyq824[0] = x.Path != "" + var yynn824 int + if yyr824 || yy2arr824 { + r.EncodeArrayStart(2) + } else { + yynn824 = 1 + for _, b := range yyq824 { + if b { + yynn824++ + } + } + r.EncodeMapStart(yynn824) + yynn824 = 0 + } + if yyr824 || yy2arr824 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq824[0] { + yym826 := z.EncBinary() + _ = yym826 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Path)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq824[0] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("path")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym827 := z.EncBinary() + _ = yym827 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Path)) + } + } + } + if yyr824 || yy2arr824 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yy829 := &x.Backend + yy829.CodecEncodeSelf(e) + } else { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("backend")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yy830 := &x.Backend + yy830.CodecEncodeSelf(e) + } + if yyr824 || yy2arr824 { + 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 + yym831 := z.DecBinary() + _ = yym831 + if false { + } else if z.HasExtensions() && z.DecExt(x) { + } else { + yyct832 := r.ContainerType() + if yyct832 == codecSelferValueTypeMap1234 { + yyl832 := r.ReadMapStart() + if yyl832 == 0 { + z.DecSendContainerState(codecSelfer_containerMapEnd1234) + } else { + x.codecDecodeSelfFromMap(yyl832, d) + } + } else if yyct832 == codecSelferValueTypeArray1234 { + yyl832 := r.ReadArrayStart() + if yyl832 == 0 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + x.codecDecodeSelfFromArray(yyl832, 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 yys833Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys833Slc + var yyhl833 bool = l >= 0 + for yyj833 := 0; ; yyj833++ { + if yyhl833 { + if yyj833 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + z.DecSendContainerState(codecSelfer_containerMapKey1234) + yys833Slc = r.DecodeBytes(yys833Slc, true, true) + yys833 := string(yys833Slc) + z.DecSendContainerState(codecSelfer_containerMapValue1234) + switch yys833 { case "path": if r.TryDecodeAsNil() { x.Path = "" @@ -9380,13 +10048,13 @@ func (x *HTTPIngressPath) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.Backend = IngressBackend{} } else { - yyv770 := &x.Backend - yyv770.CodecDecodeSelf(d) + yyv835 := &x.Backend + yyv835.CodecDecodeSelf(d) } default: - z.DecStructFieldNotFound(-1, yys768) - } // end switch yys768 - } // end for yyj768 + z.DecStructFieldNotFound(-1, yys833) + } // end switch yys833 + } // end for yyj833 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -9394,16 +10062,16 @@ 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 + var yyj836 int + var yyb836 bool + var yyhl836 bool = l >= 0 + yyj836++ + if yyhl836 { + yyb836 = yyj836 > l } else { - yyb771 = r.CheckBreak() + yyb836 = r.CheckBreak() } - if yyb771 { + if yyb836 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -9413,13 +10081,13 @@ func (x *HTTPIngressPath) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) } else { x.Path = string(r.DecodeString()) } - yyj771++ - if yyhl771 { - yyb771 = yyj771 > l + yyj836++ + if yyhl836 { + yyb836 = yyj836 > l } else { - yyb771 = r.CheckBreak() + yyb836 = r.CheckBreak() } - if yyb771 { + if yyb836 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -9427,21 +10095,21 @@ func (x *HTTPIngressPath) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) if r.TryDecodeAsNil() { x.Backend = IngressBackend{} } else { - yyv773 := &x.Backend - yyv773.CodecDecodeSelf(d) + yyv838 := &x.Backend + yyv838.CodecDecodeSelf(d) } for { - yyj771++ - if yyhl771 { - yyb771 = yyj771 > l + yyj836++ + if yyhl836 { + yyb836 = yyj836 > l } else { - yyb771 = r.CheckBreak() + yyb836 = r.CheckBreak() } - if yyb771 { + if yyb836 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj771-1, "") + z.DecStructFieldNotFound(yyj836-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -9453,33 +10121,33 @@ func (x *IngressBackend) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym774 := z.EncBinary() - _ = yym774 + yym839 := z.EncBinary() + _ = yym839 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 { + yysep840 := !z.EncBinary() + yy2arr840 := z.EncBasicHandle().StructToArray + var yyq840 [2]bool + _, _, _ = yysep840, yyq840, yy2arr840 + const yyr840 bool = false + var yynn840 int + if yyr840 || yy2arr840 { r.EncodeArrayStart(2) } else { - yynn775 = 2 - for _, b := range yyq775 { + yynn840 = 2 + for _, b := range yyq840 { if b { - yynn775++ + yynn840++ } } - r.EncodeMapStart(yynn775) - yynn775 = 0 + r.EncodeMapStart(yynn840) + yynn840 = 0 } - if yyr775 || yy2arr775 { + if yyr840 || yy2arr840 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym777 := z.EncBinary() - _ = yym777 + yym842 := z.EncBinary() + _ = yym842 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.ServiceName)) @@ -9488,41 +10156,41 @@ func (x *IngressBackend) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("serviceName")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym778 := z.EncBinary() - _ = yym778 + yym843 := z.EncBinary() + _ = yym843 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.ServiceName)) } } - if yyr775 || yy2arr775 { + if yyr840 || yy2arr840 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy780 := &x.ServicePort - yym781 := z.EncBinary() - _ = yym781 + yy845 := &x.ServicePort + yym846 := z.EncBinary() + _ = yym846 if false { - } else if z.HasExtensions() && z.EncExt(yy780) { - } else if !yym781 && z.IsJSONHandle() { - z.EncJSONMarshal(yy780) + } else if z.HasExtensions() && z.EncExt(yy845) { + } else if !yym846 && z.IsJSONHandle() { + z.EncJSONMarshal(yy845) } else { - z.EncFallback(yy780) + z.EncFallback(yy845) } } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("servicePort")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy782 := &x.ServicePort - yym783 := z.EncBinary() - _ = yym783 + yy847 := &x.ServicePort + yym848 := z.EncBinary() + _ = yym848 if false { - } else if z.HasExtensions() && z.EncExt(yy782) { - } else if !yym783 && z.IsJSONHandle() { - z.EncJSONMarshal(yy782) + } else if z.HasExtensions() && z.EncExt(yy847) { + } else if !yym848 && z.IsJSONHandle() { + z.EncJSONMarshal(yy847) } else { - z.EncFallback(yy782) + z.EncFallback(yy847) } } - if yyr775 || yy2arr775 { + if yyr840 || yy2arr840 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -9535,25 +10203,25 @@ func (x *IngressBackend) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym784 := z.DecBinary() - _ = yym784 + yym849 := z.DecBinary() + _ = yym849 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct785 := r.ContainerType() - if yyct785 == codecSelferValueTypeMap1234 { - yyl785 := r.ReadMapStart() - if yyl785 == 0 { + yyct850 := r.ContainerType() + if yyct850 == codecSelferValueTypeMap1234 { + yyl850 := r.ReadMapStart() + if yyl850 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl785, d) + x.codecDecodeSelfFromMap(yyl850, d) } - } else if yyct785 == codecSelferValueTypeArray1234 { - yyl785 := r.ReadArrayStart() - if yyl785 == 0 { + } else if yyct850 == codecSelferValueTypeArray1234 { + yyl850 := r.ReadArrayStart() + if yyl850 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl785, d) + x.codecDecodeSelfFromArray(yyl850, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -9565,12 +10233,12 @@ 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 { + var yys851Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys851Slc + var yyhl851 bool = l >= 0 + for yyj851 := 0; ; yyj851++ { + if yyhl851 { + if yyj851 >= l { break } } else { @@ -9579,10 +10247,10 @@ func (x *IngressBackend) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys786Slc = r.DecodeBytes(yys786Slc, true, true) - yys786 := string(yys786Slc) + yys851Slc = r.DecodeBytes(yys851Slc, true, true) + yys851 := string(yys851Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys786 { + switch yys851 { case "serviceName": if r.TryDecodeAsNil() { x.ServiceName = "" @@ -9593,21 +10261,21 @@ func (x *IngressBackend) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.ServicePort = pkg5_intstr.IntOrString{} } else { - yyv788 := &x.ServicePort - yym789 := z.DecBinary() - _ = yym789 + yyv853 := &x.ServicePort + yym854 := z.DecBinary() + _ = yym854 if false { - } else if z.HasExtensions() && z.DecExt(yyv788) { - } else if !yym789 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv788) + } else if z.HasExtensions() && z.DecExt(yyv853) { + } else if !yym854 && z.IsJSONHandle() { + z.DecJSONUnmarshal(yyv853) } else { - z.DecFallback(yyv788, false) + z.DecFallback(yyv853, false) } } default: - z.DecStructFieldNotFound(-1, yys786) - } // end switch yys786 - } // end for yyj786 + z.DecStructFieldNotFound(-1, yys851) + } // end switch yys851 + } // end for yyj851 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -9615,16 +10283,16 @@ 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 + var yyj855 int + var yyb855 bool + var yyhl855 bool = l >= 0 + yyj855++ + if yyhl855 { + yyb855 = yyj855 > l } else { - yyb790 = r.CheckBreak() + yyb855 = r.CheckBreak() } - if yyb790 { + if yyb855 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -9634,13 +10302,13 @@ func (x *IngressBackend) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.ServiceName = string(r.DecodeString()) } - yyj790++ - if yyhl790 { - yyb790 = yyj790 > l + yyj855++ + if yyhl855 { + yyb855 = yyj855 > l } else { - yyb790 = r.CheckBreak() + yyb855 = r.CheckBreak() } - if yyb790 { + if yyb855 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -9648,29 +10316,29 @@ func (x *IngressBackend) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.ServicePort = pkg5_intstr.IntOrString{} } else { - yyv792 := &x.ServicePort - yym793 := z.DecBinary() - _ = yym793 + yyv857 := &x.ServicePort + yym858 := z.DecBinary() + _ = yym858 if false { - } else if z.HasExtensions() && z.DecExt(yyv792) { - } else if !yym793 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv792) + } else if z.HasExtensions() && z.DecExt(yyv857) { + } else if !yym858 && z.IsJSONHandle() { + z.DecJSONUnmarshal(yyv857) } else { - z.DecFallback(yyv792, false) + z.DecFallback(yyv857, false) } } for { - yyj790++ - if yyhl790 { - yyb790 = yyj790 > l + yyj855++ + if yyhl855 { + yyb855 = yyj855 > l } else { - yyb790 = r.CheckBreak() + yyb855 = r.CheckBreak() } - if yyb790 { + if yyb855 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj790-1, "") + z.DecStructFieldNotFound(yyj855-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -9682,39 +10350,39 @@ func (x *ReplicaSet) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym794 := z.EncBinary() - _ = yym794 + yym859 := z.EncBinary() + _ = yym859 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 { + yysep860 := !z.EncBinary() + yy2arr860 := z.EncBasicHandle().StructToArray + var yyq860 [5]bool + _, _, _ = yysep860, yyq860, yy2arr860 + const yyr860 bool = false + yyq860[0] = x.Kind != "" + yyq860[1] = x.APIVersion != "" + yyq860[2] = true + yyq860[3] = true + yyq860[4] = true + var yynn860 int + if yyr860 || yy2arr860 { r.EncodeArrayStart(5) } else { - yynn795 = 0 - for _, b := range yyq795 { + yynn860 = 0 + for _, b := range yyq860 { if b { - yynn795++ + yynn860++ } } - r.EncodeMapStart(yynn795) - yynn795 = 0 + r.EncodeMapStart(yynn860) + yynn860 = 0 } - if yyr795 || yy2arr795 { + if yyr860 || yy2arr860 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq795[0] { - yym797 := z.EncBinary() - _ = yym797 + if yyq860[0] { + yym862 := z.EncBinary() + _ = yym862 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) @@ -9723,23 +10391,23 @@ func (x *ReplicaSet) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq795[0] { + if yyq860[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym798 := z.EncBinary() - _ = yym798 + yym863 := z.EncBinary() + _ = yym863 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } - if yyr795 || yy2arr795 { + if yyr860 || yy2arr860 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq795[1] { - yym800 := z.EncBinary() - _ = yym800 + if yyq860[1] { + yym865 := z.EncBinary() + _ = yym865 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) @@ -9748,70 +10416,70 @@ func (x *ReplicaSet) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq795[1] { + if yyq860[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym801 := z.EncBinary() - _ = yym801 + yym866 := z.EncBinary() + _ = yym866 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } - if yyr795 || yy2arr795 { + if yyr860 || yy2arr860 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq795[2] { - yy803 := &x.ObjectMeta - yy803.CodecEncodeSelf(e) + if yyq860[2] { + yy868 := &x.ObjectMeta + yy868.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { - if yyq795[2] { + if yyq860[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy804 := &x.ObjectMeta - yy804.CodecEncodeSelf(e) + yy869 := &x.ObjectMeta + yy869.CodecEncodeSelf(e) } } - if yyr795 || yy2arr795 { + if yyr860 || yy2arr860 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq795[3] { - yy806 := &x.Spec - yy806.CodecEncodeSelf(e) + if yyq860[3] { + yy871 := &x.Spec + yy871.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { - if yyq795[3] { + if yyq860[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("spec")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy807 := &x.Spec - yy807.CodecEncodeSelf(e) + yy872 := &x.Spec + yy872.CodecEncodeSelf(e) } } - if yyr795 || yy2arr795 { + if yyr860 || yy2arr860 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq795[4] { - yy809 := &x.Status - yy809.CodecEncodeSelf(e) + if yyq860[4] { + yy874 := &x.Status + yy874.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { - if yyq795[4] { + if yyq860[4] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("status")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy810 := &x.Status - yy810.CodecEncodeSelf(e) + yy875 := &x.Status + yy875.CodecEncodeSelf(e) } } - if yyr795 || yy2arr795 { + if yyr860 || yy2arr860 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -9824,25 +10492,25 @@ func (x *ReplicaSet) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym811 := z.DecBinary() - _ = yym811 + yym876 := z.DecBinary() + _ = yym876 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct812 := r.ContainerType() - if yyct812 == codecSelferValueTypeMap1234 { - yyl812 := r.ReadMapStart() - if yyl812 == 0 { + yyct877 := r.ContainerType() + if yyct877 == codecSelferValueTypeMap1234 { + yyl877 := r.ReadMapStart() + if yyl877 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl812, d) + x.codecDecodeSelfFromMap(yyl877, d) } - } else if yyct812 == codecSelferValueTypeArray1234 { - yyl812 := r.ReadArrayStart() - if yyl812 == 0 { + } else if yyct877 == codecSelferValueTypeArray1234 { + yyl877 := r.ReadArrayStart() + if yyl877 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl812, d) + x.codecDecodeSelfFromArray(yyl877, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -9854,12 +10522,12 @@ 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 { + var yys878Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys878Slc + var yyhl878 bool = l >= 0 + for yyj878 := 0; ; yyj878++ { + if yyhl878 { + if yyj878 >= l { break } } else { @@ -9868,10 +10536,10 @@ func (x *ReplicaSet) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys813Slc = r.DecodeBytes(yys813Slc, true, true) - yys813 := string(yys813Slc) + yys878Slc = r.DecodeBytes(yys878Slc, true, true) + yys878 := string(yys878Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys813 { + switch yys878 { case "kind": if r.TryDecodeAsNil() { x.Kind = "" @@ -9888,27 +10556,27 @@ func (x *ReplicaSet) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.ObjectMeta = pkg2_api.ObjectMeta{} } else { - yyv816 := &x.ObjectMeta - yyv816.CodecDecodeSelf(d) + yyv881 := &x.ObjectMeta + yyv881.CodecDecodeSelf(d) } case "spec": if r.TryDecodeAsNil() { x.Spec = ReplicaSetSpec{} } else { - yyv817 := &x.Spec - yyv817.CodecDecodeSelf(d) + yyv882 := &x.Spec + yyv882.CodecDecodeSelf(d) } case "status": if r.TryDecodeAsNil() { x.Status = ReplicaSetStatus{} } else { - yyv818 := &x.Status - yyv818.CodecDecodeSelf(d) + yyv883 := &x.Status + yyv883.CodecDecodeSelf(d) } default: - z.DecStructFieldNotFound(-1, yys813) - } // end switch yys813 - } // end for yyj813 + z.DecStructFieldNotFound(-1, yys878) + } // end switch yys878 + } // end for yyj878 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -9916,16 +10584,16 @@ 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 + var yyj884 int + var yyb884 bool + var yyhl884 bool = l >= 0 + yyj884++ + if yyhl884 { + yyb884 = yyj884 > l } else { - yyb819 = r.CheckBreak() + yyb884 = r.CheckBreak() } - if yyb819 { + if yyb884 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -9935,13 +10603,13 @@ func (x *ReplicaSet) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.Kind = string(r.DecodeString()) } - yyj819++ - if yyhl819 { - yyb819 = yyj819 > l + yyj884++ + if yyhl884 { + yyb884 = yyj884 > l } else { - yyb819 = r.CheckBreak() + yyb884 = r.CheckBreak() } - if yyb819 { + if yyb884 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -9951,13 +10619,13 @@ func (x *ReplicaSet) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.APIVersion = string(r.DecodeString()) } - yyj819++ - if yyhl819 { - yyb819 = yyj819 > l + yyj884++ + if yyhl884 { + yyb884 = yyj884 > l } else { - yyb819 = r.CheckBreak() + yyb884 = r.CheckBreak() } - if yyb819 { + if yyb884 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -9965,16 +10633,16 @@ func (x *ReplicaSet) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.ObjectMeta = pkg2_api.ObjectMeta{} } else { - yyv822 := &x.ObjectMeta - yyv822.CodecDecodeSelf(d) + yyv887 := &x.ObjectMeta + yyv887.CodecDecodeSelf(d) } - yyj819++ - if yyhl819 { - yyb819 = yyj819 > l + yyj884++ + if yyhl884 { + yyb884 = yyj884 > l } else { - yyb819 = r.CheckBreak() + yyb884 = r.CheckBreak() } - if yyb819 { + if yyb884 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -9982,16 +10650,16 @@ func (x *ReplicaSet) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.Spec = ReplicaSetSpec{} } else { - yyv823 := &x.Spec - yyv823.CodecDecodeSelf(d) + yyv888 := &x.Spec + yyv888.CodecDecodeSelf(d) } - yyj819++ - if yyhl819 { - yyb819 = yyj819 > l + yyj884++ + if yyhl884 { + yyb884 = yyj884 > l } else { - yyb819 = r.CheckBreak() + yyb884 = r.CheckBreak() } - if yyb819 { + if yyb884 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -9999,21 +10667,21 @@ func (x *ReplicaSet) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.Status = ReplicaSetStatus{} } else { - yyv824 := &x.Status - yyv824.CodecDecodeSelf(d) + yyv889 := &x.Status + yyv889.CodecDecodeSelf(d) } for { - yyj819++ - if yyhl819 { - yyb819 = yyj819 > l + yyj884++ + if yyhl884 { + yyb884 = yyj884 > l } else { - yyb819 = r.CheckBreak() + yyb884 = r.CheckBreak() } - if yyb819 { + if yyb884 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj819-1, "") + z.DecStructFieldNotFound(yyj884-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -10025,37 +10693,37 @@ func (x *ReplicaSetList) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym825 := z.EncBinary() - _ = yym825 + yym890 := z.EncBinary() + _ = yym890 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 { + yysep891 := !z.EncBinary() + yy2arr891 := z.EncBasicHandle().StructToArray + var yyq891 [4]bool + _, _, _ = yysep891, yyq891, yy2arr891 + const yyr891 bool = false + yyq891[0] = x.Kind != "" + yyq891[1] = x.APIVersion != "" + yyq891[2] = true + var yynn891 int + if yyr891 || yy2arr891 { r.EncodeArrayStart(4) } else { - yynn826 = 1 - for _, b := range yyq826 { + yynn891 = 1 + for _, b := range yyq891 { if b { - yynn826++ + yynn891++ } } - r.EncodeMapStart(yynn826) - yynn826 = 0 + r.EncodeMapStart(yynn891) + yynn891 = 0 } - if yyr826 || yy2arr826 { + if yyr891 || yy2arr891 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq826[0] { - yym828 := z.EncBinary() - _ = yym828 + if yyq891[0] { + yym893 := z.EncBinary() + _ = yym893 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) @@ -10064,23 +10732,23 @@ func (x *ReplicaSetList) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq826[0] { + if yyq891[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym829 := z.EncBinary() - _ = yym829 + yym894 := z.EncBinary() + _ = yym894 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } - if yyr826 || yy2arr826 { + if yyr891 || yy2arr891 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq826[1] { - yym831 := z.EncBinary() - _ = yym831 + if yyq891[1] { + yym896 := z.EncBinary() + _ = yym896 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) @@ -10089,54 +10757,54 @@ func (x *ReplicaSetList) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq826[1] { + if yyq891[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym832 := z.EncBinary() - _ = yym832 + yym897 := z.EncBinary() + _ = yym897 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } - if yyr826 || yy2arr826 { + if yyr891 || yy2arr891 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq826[2] { - yy834 := &x.ListMeta - yym835 := z.EncBinary() - _ = yym835 + if yyq891[2] { + yy899 := &x.ListMeta + yym900 := z.EncBinary() + _ = yym900 if false { - } else if z.HasExtensions() && z.EncExt(yy834) { + } else if z.HasExtensions() && z.EncExt(yy899) { } else { - z.EncFallback(yy834) + z.EncFallback(yy899) } } else { r.EncodeNil() } } else { - if yyq826[2] { + if yyq891[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy836 := &x.ListMeta - yym837 := z.EncBinary() - _ = yym837 + yy901 := &x.ListMeta + yym902 := z.EncBinary() + _ = yym902 if false { - } else if z.HasExtensions() && z.EncExt(yy836) { + } else if z.HasExtensions() && z.EncExt(yy901) { } else { - z.EncFallback(yy836) + z.EncFallback(yy901) } } } - if yyr826 || yy2arr826 { + if yyr891 || yy2arr891 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.Items == nil { r.EncodeNil() } else { - yym839 := z.EncBinary() - _ = yym839 + yym904 := z.EncBinary() + _ = yym904 if false { } else { h.encSliceReplicaSet(([]ReplicaSet)(x.Items), e) @@ -10149,15 +10817,15 @@ func (x *ReplicaSetList) CodecEncodeSelf(e *codec1978.Encoder) { if x.Items == nil { r.EncodeNil() } else { - yym840 := z.EncBinary() - _ = yym840 + yym905 := z.EncBinary() + _ = yym905 if false { } else { h.encSliceReplicaSet(([]ReplicaSet)(x.Items), e) } } } - if yyr826 || yy2arr826 { + if yyr891 || yy2arr891 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -10170,25 +10838,25 @@ func (x *ReplicaSetList) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym841 := z.DecBinary() - _ = yym841 + yym906 := z.DecBinary() + _ = yym906 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct842 := r.ContainerType() - if yyct842 == codecSelferValueTypeMap1234 { - yyl842 := r.ReadMapStart() - if yyl842 == 0 { + yyct907 := r.ContainerType() + if yyct907 == codecSelferValueTypeMap1234 { + yyl907 := r.ReadMapStart() + if yyl907 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl842, d) + x.codecDecodeSelfFromMap(yyl907, d) } - } else if yyct842 == codecSelferValueTypeArray1234 { - yyl842 := r.ReadArrayStart() - if yyl842 == 0 { + } else if yyct907 == codecSelferValueTypeArray1234 { + yyl907 := r.ReadArrayStart() + if yyl907 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl842, d) + x.codecDecodeSelfFromArray(yyl907, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -10200,12 +10868,12 @@ 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 { + 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 { @@ -10214,10 +10882,10 @@ func (x *ReplicaSetList) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys843Slc = r.DecodeBytes(yys843Slc, true, true) - yys843 := string(yys843Slc) + yys908Slc = r.DecodeBytes(yys908Slc, true, true) + yys908 := string(yys908Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys843 { + switch yys908 { case "kind": if r.TryDecodeAsNil() { x.Kind = "" @@ -10234,31 +10902,31 @@ func (x *ReplicaSetList) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.ListMeta = pkg1_unversioned.ListMeta{} } else { - yyv846 := &x.ListMeta - yym847 := z.DecBinary() - _ = yym847 + yyv911 := &x.ListMeta + yym912 := z.DecBinary() + _ = yym912 if false { - } else if z.HasExtensions() && z.DecExt(yyv846) { + } else if z.HasExtensions() && z.DecExt(yyv911) { } else { - z.DecFallback(yyv846, false) + z.DecFallback(yyv911, false) } } case "items": if r.TryDecodeAsNil() { x.Items = nil } else { - yyv848 := &x.Items - yym849 := z.DecBinary() - _ = yym849 + yyv913 := &x.Items + yym914 := z.DecBinary() + _ = yym914 if false { } else { - h.decSliceReplicaSet((*[]ReplicaSet)(yyv848), d) + h.decSliceReplicaSet((*[]ReplicaSet)(yyv913), d) } } default: - z.DecStructFieldNotFound(-1, yys843) - } // end switch yys843 - } // end for yyj843 + z.DecStructFieldNotFound(-1, yys908) + } // end switch yys908 + } // end for yyj908 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -10266,16 +10934,16 @@ 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 + var yyj915 int + var yyb915 bool + var yyhl915 bool = l >= 0 + yyj915++ + if yyhl915 { + yyb915 = yyj915 > l } else { - yyb850 = r.CheckBreak() + yyb915 = r.CheckBreak() } - if yyb850 { + if yyb915 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -10285,13 +10953,13 @@ func (x *ReplicaSetList) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.Kind = string(r.DecodeString()) } - yyj850++ - if yyhl850 { - yyb850 = yyj850 > l + yyj915++ + if yyhl915 { + yyb915 = yyj915 > l } else { - yyb850 = r.CheckBreak() + yyb915 = r.CheckBreak() } - if yyb850 { + if yyb915 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -10301,13 +10969,13 @@ func (x *ReplicaSetList) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.APIVersion = string(r.DecodeString()) } - yyj850++ - if yyhl850 { - yyb850 = yyj850 > l + yyj915++ + if yyhl915 { + yyb915 = yyj915 > l } else { - yyb850 = r.CheckBreak() + yyb915 = r.CheckBreak() } - if yyb850 { + if yyb915 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -10315,22 +10983,22 @@ func (x *ReplicaSetList) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.ListMeta = pkg1_unversioned.ListMeta{} } else { - yyv853 := &x.ListMeta - yym854 := z.DecBinary() - _ = yym854 + yyv918 := &x.ListMeta + yym919 := z.DecBinary() + _ = yym919 if false { - } else if z.HasExtensions() && z.DecExt(yyv853) { + } else if z.HasExtensions() && z.DecExt(yyv918) { } else { - z.DecFallback(yyv853, false) + z.DecFallback(yyv918, false) } } - yyj850++ - if yyhl850 { - yyb850 = yyj850 > l + yyj915++ + if yyhl915 { + yyb915 = yyj915 > l } else { - yyb850 = r.CheckBreak() + yyb915 = r.CheckBreak() } - if yyb850 { + if yyb915 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -10338,26 +11006,26 @@ func (x *ReplicaSetList) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.Items = nil } else { - yyv855 := &x.Items - yym856 := z.DecBinary() - _ = yym856 + yyv920 := &x.Items + yym921 := z.DecBinary() + _ = yym921 if false { } else { - h.decSliceReplicaSet((*[]ReplicaSet)(yyv855), d) + h.decSliceReplicaSet((*[]ReplicaSet)(yyv920), d) } } for { - yyj850++ - if yyhl850 { - yyb850 = yyj850 > l + yyj915++ + if yyhl915 { + yyb915 = yyj915 > l } else { - yyb850 = r.CheckBreak() + yyb915 = r.CheckBreak() } - if yyb850 { + if yyb915 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj850-1, "") + z.DecStructFieldNotFound(yyj915-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -10369,35 +11037,36 @@ func (x *ReplicaSetSpec) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym857 := z.EncBinary() - _ = yym857 + yym922 := z.EncBinary() + _ = yym922 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) + yysep923 := !z.EncBinary() + yy2arr923 := z.EncBasicHandle().StructToArray + var yyq923 [4]bool + _, _, _ = yysep923, yyq923, yy2arr923 + const yyr923 bool = false + yyq923[1] = x.MinReadySeconds != 0 + yyq923[2] = x.Selector != nil + yyq923[3] = true + var yynn923 int + if yyr923 || yy2arr923 { + r.EncodeArrayStart(4) } else { - yynn858 = 1 - for _, b := range yyq858 { + yynn923 = 1 + for _, b := range yyq923 { if b { - yynn858++ + yynn923++ } } - r.EncodeMapStart(yynn858) - yynn858 = 0 + r.EncodeMapStart(yynn923) + yynn923 = 0 } - if yyr858 || yy2arr858 { + if yyr923 || yy2arr923 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym860 := z.EncBinary() - _ = yym860 + yym925 := z.EncBinary() + _ = yym925 if false { } else { r.EncodeInt(int64(x.Replicas)) @@ -10406,21 +11075,46 @@ func (x *ReplicaSetSpec) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("replicas")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym861 := z.EncBinary() - _ = yym861 + yym926 := z.EncBinary() + _ = yym926 if false { } else { r.EncodeInt(int64(x.Replicas)) } } - if yyr858 || yy2arr858 { + if yyr923 || yy2arr923 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq858[1] { + if yyq923[1] { + yym928 := z.EncBinary() + _ = yym928 + if false { + } else { + r.EncodeInt(int64(x.MinReadySeconds)) + } + } else { + r.EncodeInt(0) + } + } else { + if yyq923[1] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("minReadySeconds")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym929 := z.EncBinary() + _ = yym929 + if false { + } else { + r.EncodeInt(int64(x.MinReadySeconds)) + } + } + } + if yyr923 || yy2arr923 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq923[2] { if x.Selector == nil { r.EncodeNil() } else { - yym863 := z.EncBinary() - _ = yym863 + yym931 := z.EncBinary() + _ = yym931 if false { } else if z.HasExtensions() && z.EncExt(x.Selector) { } else { @@ -10431,15 +11125,15 @@ func (x *ReplicaSetSpec) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq858[1] { + if yyq923[2] { 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 + yym932 := z.EncBinary() + _ = yym932 if false { } else if z.HasExtensions() && z.EncExt(x.Selector) { } else { @@ -10448,24 +11142,24 @@ func (x *ReplicaSetSpec) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr858 || yy2arr858 { + if yyr923 || yy2arr923 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq858[2] { - yy866 := &x.Template - yy866.CodecEncodeSelf(e) + if yyq923[3] { + yy934 := &x.Template + yy934.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { - if yyq858[2] { + if yyq923[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("template")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy867 := &x.Template - yy867.CodecEncodeSelf(e) + yy935 := &x.Template + yy935.CodecEncodeSelf(e) } } - if yyr858 || yy2arr858 { + if yyr923 || yy2arr923 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -10478,25 +11172,25 @@ func (x *ReplicaSetSpec) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym868 := z.DecBinary() - _ = yym868 + yym936 := z.DecBinary() + _ = yym936 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct869 := r.ContainerType() - if yyct869 == codecSelferValueTypeMap1234 { - yyl869 := r.ReadMapStart() - if yyl869 == 0 { + yyct937 := r.ContainerType() + if yyct937 == codecSelferValueTypeMap1234 { + yyl937 := r.ReadMapStart() + if yyl937 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl869, d) + x.codecDecodeSelfFromMap(yyl937, d) } - } else if yyct869 == codecSelferValueTypeArray1234 { - yyl869 := r.ReadArrayStart() - if yyl869 == 0 { + } else if yyct937 == codecSelferValueTypeArray1234 { + yyl937 := r.ReadArrayStart() + if yyl937 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl869, d) + x.codecDecodeSelfFromArray(yyl937, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -10508,12 +11202,12 @@ 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 { + var yys938Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys938Slc + var yyhl938 bool = l >= 0 + for yyj938 := 0; ; yyj938++ { + if yyhl938 { + if yyj938 >= l { break } } else { @@ -10522,16 +11216,22 @@ func (x *ReplicaSetSpec) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys870Slc = r.DecodeBytes(yys870Slc, true, true) - yys870 := string(yys870Slc) + yys938Slc = r.DecodeBytes(yys938Slc, true, true) + yys938 := string(yys938Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys870 { + switch yys938 { case "replicas": if r.TryDecodeAsNil() { x.Replicas = 0 } else { x.Replicas = int32(r.DecodeInt(32)) } + case "minReadySeconds": + if r.TryDecodeAsNil() { + x.MinReadySeconds = 0 + } else { + x.MinReadySeconds = int32(r.DecodeInt(32)) + } case "selector": if r.TryDecodeAsNil() { if x.Selector != nil { @@ -10541,8 +11241,8 @@ func (x *ReplicaSetSpec) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { if x.Selector == nil { x.Selector = new(pkg1_unversioned.LabelSelector) } - yym873 := z.DecBinary() - _ = yym873 + yym942 := z.DecBinary() + _ = yym942 if false { } else if z.HasExtensions() && z.DecExt(x.Selector) { } else { @@ -10553,13 +11253,13 @@ func (x *ReplicaSetSpec) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.Template = pkg2_api.PodTemplateSpec{} } else { - yyv874 := &x.Template - yyv874.CodecDecodeSelf(d) + yyv943 := &x.Template + yyv943.CodecDecodeSelf(d) } default: - z.DecStructFieldNotFound(-1, yys870) - } // end switch yys870 - } // end for yyj870 + z.DecStructFieldNotFound(-1, yys938) + } // end switch yys938 + } // end for yyj938 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -10567,16 +11267,16 @@ 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 + var yyj944 int + var yyb944 bool + var yyhl944 bool = l >= 0 + yyj944++ + if yyhl944 { + yyb944 = yyj944 > l } else { - yyb875 = r.CheckBreak() + yyb944 = r.CheckBreak() } - if yyb875 { + if yyb944 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -10586,13 +11286,29 @@ func (x *ReplicaSetSpec) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.Replicas = int32(r.DecodeInt(32)) } - yyj875++ - if yyhl875 { - yyb875 = yyj875 > l + yyj944++ + if yyhl944 { + yyb944 = yyj944 > l } else { - yyb875 = r.CheckBreak() + yyb944 = r.CheckBreak() } - if yyb875 { + if yyb944 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.MinReadySeconds = 0 + } else { + x.MinReadySeconds = int32(r.DecodeInt(32)) + } + yyj944++ + if yyhl944 { + yyb944 = yyj944 > l + } else { + yyb944 = r.CheckBreak() + } + if yyb944 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -10605,21 +11321,21 @@ func (x *ReplicaSetSpec) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if x.Selector == nil { x.Selector = new(pkg1_unversioned.LabelSelector) } - yym878 := z.DecBinary() - _ = yym878 + yym948 := z.DecBinary() + _ = yym948 if false { } else if z.HasExtensions() && z.DecExt(x.Selector) { } else { z.DecFallback(x.Selector, false) } } - yyj875++ - if yyhl875 { - yyb875 = yyj875 > l + yyj944++ + if yyhl944 { + yyb944 = yyj944 > l } else { - yyb875 = r.CheckBreak() + yyb944 = r.CheckBreak() } - if yyb875 { + if yyb944 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -10627,21 +11343,21 @@ func (x *ReplicaSetSpec) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.Template = pkg2_api.PodTemplateSpec{} } else { - yyv879 := &x.Template - yyv879.CodecDecodeSelf(d) + yyv949 := &x.Template + yyv949.CodecDecodeSelf(d) } for { - yyj875++ - if yyhl875 { - yyb875 = yyj875 > l + yyj944++ + if yyhl944 { + yyb944 = yyj944 > l } else { - yyb875 = r.CheckBreak() + yyb944 = r.CheckBreak() } - if yyb875 { + if yyb944 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj875-1, "") + z.DecStructFieldNotFound(yyj944-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -10653,36 +11369,38 @@ func (x *ReplicaSetStatus) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym880 := z.EncBinary() - _ = yym880 + yym950 := z.EncBinary() + _ = yym950 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - 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) + yysep951 := !z.EncBinary() + yy2arr951 := z.EncBasicHandle().StructToArray + var yyq951 [6]bool + _, _, _ = yysep951, yyq951, yy2arr951 + const yyr951 bool = false + yyq951[1] = x.FullyLabeledReplicas != 0 + yyq951[2] = x.ReadyReplicas != 0 + yyq951[3] = x.AvailableReplicas != 0 + yyq951[4] = x.ObservedGeneration != 0 + yyq951[5] = len(x.Conditions) != 0 + var yynn951 int + if yyr951 || yy2arr951 { + r.EncodeArrayStart(6) } else { - yynn881 = 1 - for _, b := range yyq881 { + yynn951 = 1 + for _, b := range yyq951 { if b { - yynn881++ + yynn951++ } } - r.EncodeMapStart(yynn881) - yynn881 = 0 + r.EncodeMapStart(yynn951) + yynn951 = 0 } - if yyr881 || yy2arr881 { + if yyr951 || yy2arr951 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym883 := z.EncBinary() - _ = yym883 + yym953 := z.EncBinary() + _ = yym953 if false { } else { r.EncodeInt(int64(x.Replicas)) @@ -10691,18 +11409,18 @@ func (x *ReplicaSetStatus) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("replicas")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym884 := z.EncBinary() - _ = yym884 + yym954 := z.EncBinary() + _ = yym954 if false { } else { r.EncodeInt(int64(x.Replicas)) } } - if yyr881 || yy2arr881 { + if yyr951 || yy2arr951 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq881[1] { - yym886 := z.EncBinary() - _ = yym886 + if yyq951[1] { + yym956 := z.EncBinary() + _ = yym956 if false { } else { r.EncodeInt(int64(x.FullyLabeledReplicas)) @@ -10711,23 +11429,23 @@ func (x *ReplicaSetStatus) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeInt(0) } } else { - if yyq881[1] { + if yyq951[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("fullyLabeledReplicas")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym887 := z.EncBinary() - _ = yym887 + yym957 := z.EncBinary() + _ = yym957 if false { } else { r.EncodeInt(int64(x.FullyLabeledReplicas)) } } } - if yyr881 || yy2arr881 { + if yyr951 || yy2arr951 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq881[2] { - yym889 := z.EncBinary() - _ = yym889 + if yyq951[2] { + yym959 := z.EncBinary() + _ = yym959 if false { } else { r.EncodeInt(int64(x.ReadyReplicas)) @@ -10736,23 +11454,48 @@ func (x *ReplicaSetStatus) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeInt(0) } } else { - if yyq881[2] { + if yyq951[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("readyReplicas")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym890 := z.EncBinary() - _ = yym890 + yym960 := z.EncBinary() + _ = yym960 if false { } else { r.EncodeInt(int64(x.ReadyReplicas)) } } } - if yyr881 || yy2arr881 { + if yyr951 || yy2arr951 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq881[3] { - yym892 := z.EncBinary() - _ = yym892 + if yyq951[3] { + yym962 := z.EncBinary() + _ = yym962 + if false { + } else { + r.EncodeInt(int64(x.AvailableReplicas)) + } + } else { + r.EncodeInt(0) + } + } else { + if yyq951[3] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("availableReplicas")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym963 := z.EncBinary() + _ = yym963 + if false { + } else { + r.EncodeInt(int64(x.AvailableReplicas)) + } + } + } + if yyr951 || yy2arr951 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq951[4] { + yym965 := z.EncBinary() + _ = yym965 if false { } else { r.EncodeInt(int64(x.ObservedGeneration)) @@ -10761,19 +11504,52 @@ func (x *ReplicaSetStatus) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeInt(0) } } else { - if yyq881[3] { + if yyq951[4] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("observedGeneration")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym893 := z.EncBinary() - _ = yym893 + yym966 := z.EncBinary() + _ = yym966 if false { } else { r.EncodeInt(int64(x.ObservedGeneration)) } } } - if yyr881 || yy2arr881 { + if yyr951 || yy2arr951 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq951[5] { + if x.Conditions == nil { + r.EncodeNil() + } else { + yym968 := z.EncBinary() + _ = yym968 + if false { + } else { + h.encSliceReplicaSetCondition(([]ReplicaSetCondition)(x.Conditions), e) + } + } + } else { + r.EncodeNil() + } + } else { + if yyq951[5] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("conditions")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + if x.Conditions == nil { + r.EncodeNil() + } else { + yym969 := z.EncBinary() + _ = yym969 + if false { + } else { + h.encSliceReplicaSetCondition(([]ReplicaSetCondition)(x.Conditions), e) + } + } + } + } + if yyr951 || yy2arr951 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -10786,25 +11562,25 @@ func (x *ReplicaSetStatus) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym894 := z.DecBinary() - _ = yym894 + yym970 := z.DecBinary() + _ = yym970 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct895 := r.ContainerType() - if yyct895 == codecSelferValueTypeMap1234 { - yyl895 := r.ReadMapStart() - if yyl895 == 0 { + yyct971 := r.ContainerType() + if yyct971 == codecSelferValueTypeMap1234 { + yyl971 := r.ReadMapStart() + if yyl971 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl895, d) + x.codecDecodeSelfFromMap(yyl971, d) } - } else if yyct895 == codecSelferValueTypeArray1234 { - yyl895 := r.ReadArrayStart() - if yyl895 == 0 { + } else if yyct971 == codecSelferValueTypeArray1234 { + yyl971 := r.ReadArrayStart() + if yyl971 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl895, d) + x.codecDecodeSelfFromArray(yyl971, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -10816,12 +11592,12 @@ func (x *ReplicaSetStatus) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys896Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys896Slc - var yyhl896 bool = l >= 0 - for yyj896 := 0; ; yyj896++ { - if yyhl896 { - if yyj896 >= l { + var yys972Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys972Slc + var yyhl972 bool = l >= 0 + for yyj972 := 0; ; yyj972++ { + if yyhl972 { + if yyj972 >= l { break } } else { @@ -10830,10 +11606,10 @@ func (x *ReplicaSetStatus) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys896Slc = r.DecodeBytes(yys896Slc, true, true) - yys896 := string(yys896Slc) + yys972Slc = r.DecodeBytes(yys972Slc, true, true) + yys972 := string(yys972Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys896 { + switch yys972 { case "replicas": if r.TryDecodeAsNil() { x.Replicas = 0 @@ -10852,16 +11628,34 @@ func (x *ReplicaSetStatus) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } else { x.ReadyReplicas = int32(r.DecodeInt(32)) } + case "availableReplicas": + if r.TryDecodeAsNil() { + x.AvailableReplicas = 0 + } else { + x.AvailableReplicas = int32(r.DecodeInt(32)) + } case "observedGeneration": if r.TryDecodeAsNil() { x.ObservedGeneration = 0 } else { x.ObservedGeneration = int64(r.DecodeInt(64)) } + case "conditions": + if r.TryDecodeAsNil() { + x.Conditions = nil + } else { + yyv978 := &x.Conditions + yym979 := z.DecBinary() + _ = yym979 + if false { + } else { + h.decSliceReplicaSetCondition((*[]ReplicaSetCondition)(yyv978), d) + } + } default: - z.DecStructFieldNotFound(-1, yys896) - } // end switch yys896 - } // end for yyj896 + z.DecStructFieldNotFound(-1, yys972) + } // end switch yys972 + } // end for yyj972 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -10869,16 +11663,16 @@ func (x *ReplicaSetStatus) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj901 int - var yyb901 bool - var yyhl901 bool = l >= 0 - yyj901++ - if yyhl901 { - yyb901 = yyj901 > l + var yyj980 int + var yyb980 bool + var yyhl980 bool = l >= 0 + yyj980++ + if yyhl980 { + yyb980 = yyj980 > l } else { - yyb901 = r.CheckBreak() + yyb980 = r.CheckBreak() } - if yyb901 { + if yyb980 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -10888,13 +11682,13 @@ func (x *ReplicaSetStatus) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) } else { x.Replicas = int32(r.DecodeInt(32)) } - yyj901++ - if yyhl901 { - yyb901 = yyj901 > l + yyj980++ + if yyhl980 { + yyb980 = yyj980 > l } else { - yyb901 = r.CheckBreak() + yyb980 = r.CheckBreak() } - if yyb901 { + if yyb980 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -10904,13 +11698,13 @@ func (x *ReplicaSetStatus) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) } else { x.FullyLabeledReplicas = int32(r.DecodeInt(32)) } - yyj901++ - if yyhl901 { - yyb901 = yyj901 > l + yyj980++ + if yyhl980 { + yyb980 = yyj980 > l } else { - yyb901 = r.CheckBreak() + yyb980 = r.CheckBreak() } - if yyb901 { + if yyb980 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -10920,13 +11714,29 @@ func (x *ReplicaSetStatus) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) } else { x.ReadyReplicas = int32(r.DecodeInt(32)) } - yyj901++ - if yyhl901 { - yyb901 = yyj901 > l + yyj980++ + if yyhl980 { + yyb980 = yyj980 > l } else { - yyb901 = r.CheckBreak() + yyb980 = r.CheckBreak() } - if yyb901 { + if yyb980 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.AvailableReplicas = 0 + } else { + x.AvailableReplicas = int32(r.DecodeInt(32)) + } + yyj980++ + if yyhl980 { + yyb980 = yyj980 > l + } else { + yyb980 = r.CheckBreak() + } + if yyb980 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -10936,18 +11746,439 @@ func (x *ReplicaSetStatus) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) } else { x.ObservedGeneration = int64(r.DecodeInt(64)) } - for { - yyj901++ - if yyhl901 { - yyb901 = yyj901 > l + yyj980++ + if yyhl980 { + yyb980 = yyj980 > l + } else { + yyb980 = r.CheckBreak() + } + if yyb980 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Conditions = nil + } else { + yyv986 := &x.Conditions + yym987 := z.DecBinary() + _ = yym987 + if false { } else { - yyb901 = r.CheckBreak() + h.decSliceReplicaSetCondition((*[]ReplicaSetCondition)(yyv986), d) } - if yyb901 { + } + for { + yyj980++ + if yyhl980 { + yyb980 = yyj980 > l + } else { + yyb980 = r.CheckBreak() + } + if yyb980 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj901-1, "") + z.DecStructFieldNotFound(yyj980-1, "") + } + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) +} + +func (x ReplicaSetConditionType) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + yym988 := z.EncBinary() + _ = yym988 + if false { + } else if z.HasExtensions() && z.EncExt(x) { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x)) + } +} + +func (x *ReplicaSetConditionType) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + yym989 := z.DecBinary() + _ = yym989 + if false { + } else if z.HasExtensions() && z.DecExt(x) { + } else { + *((*string)(x)) = r.DecodeString() + } +} + +func (x *ReplicaSetCondition) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + yym990 := z.EncBinary() + _ = yym990 + if false { + } else if z.HasExtensions() && z.EncExt(x) { + } else { + yysep991 := !z.EncBinary() + yy2arr991 := z.EncBasicHandle().StructToArray + var yyq991 [5]bool + _, _, _ = yysep991, yyq991, yy2arr991 + const yyr991 bool = false + yyq991[2] = true + yyq991[3] = x.Reason != "" + yyq991[4] = x.Message != "" + var yynn991 int + if yyr991 || yy2arr991 { + r.EncodeArrayStart(5) + } else { + yynn991 = 2 + for _, b := range yyq991 { + if b { + yynn991++ + } + } + r.EncodeMapStart(yynn991) + yynn991 = 0 + } + if yyr991 || yy2arr991 { + 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 yyr991 || yy2arr991 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yym994 := z.EncBinary() + _ = yym994 + 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) + yym995 := z.EncBinary() + _ = yym995 + if false { + } else if z.HasExtensions() && z.EncExt(x.Status) { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Status)) + } + } + if yyr991 || yy2arr991 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq991[2] { + yy997 := &x.LastTransitionTime + yym998 := z.EncBinary() + _ = yym998 + if false { + } else if z.HasExtensions() && z.EncExt(yy997) { + } else if yym998 { + z.EncBinaryMarshal(yy997) + } else if !yym998 && z.IsJSONHandle() { + z.EncJSONMarshal(yy997) + } else { + z.EncFallback(yy997) + } + } else { + r.EncodeNil() + } + } else { + if yyq991[2] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("lastTransitionTime")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yy999 := &x.LastTransitionTime + yym1000 := z.EncBinary() + _ = yym1000 + if false { + } else if z.HasExtensions() && z.EncExt(yy999) { + } else if yym1000 { + z.EncBinaryMarshal(yy999) + } else if !yym1000 && z.IsJSONHandle() { + z.EncJSONMarshal(yy999) + } else { + z.EncFallback(yy999) + } + } + } + if yyr991 || yy2arr991 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq991[3] { + yym1002 := z.EncBinary() + _ = yym1002 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Reason)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq991[3] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("reason")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym1003 := z.EncBinary() + _ = yym1003 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Reason)) + } + } + } + if yyr991 || yy2arr991 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq991[4] { + yym1005 := z.EncBinary() + _ = yym1005 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Message)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq991[4] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("message")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym1006 := z.EncBinary() + _ = yym1006 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Message)) + } + } + } + if yyr991 || yy2arr991 { + z.EncSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + z.EncSendContainerState(codecSelfer_containerMapEnd1234) + } + } + } +} + +func (x *ReplicaSetCondition) 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 *ReplicaSetCondition) 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 "type": + if r.TryDecodeAsNil() { + x.Type = "" + } else { + x.Type = ReplicaSetConditionType(r.DecodeString()) + } + case "status": + if r.TryDecodeAsNil() { + x.Status = "" + } else { + x.Status = pkg2_api.ConditionStatus(r.DecodeString()) + } + case "lastTransitionTime": + if r.TryDecodeAsNil() { + x.LastTransitionTime = pkg1_unversioned.Time{} + } else { + yyv1012 := &x.LastTransitionTime + yym1013 := z.DecBinary() + _ = yym1013 + if false { + } else if z.HasExtensions() && z.DecExt(yyv1012) { + } else if yym1013 { + z.DecBinaryUnmarshal(yyv1012) + } else if !yym1013 && z.IsJSONHandle() { + z.DecJSONUnmarshal(yyv1012) + } else { + z.DecFallback(yyv1012, 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, yys1009) + } // end switch yys1009 + } // end for yyj1009 + z.DecSendContainerState(codecSelfer_containerMapEnd1234) +} + +func (x *ReplicaSetCondition) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj1016 int + var yyb1016 bool + var yyhl1016 bool = l >= 0 + yyj1016++ + if yyhl1016 { + yyb1016 = yyj1016 > l + } else { + yyb1016 = r.CheckBreak() + } + if yyb1016 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Type = "" + } else { + x.Type = ReplicaSetConditionType(r.DecodeString()) + } + yyj1016++ + if yyhl1016 { + yyb1016 = yyj1016 > l + } else { + yyb1016 = r.CheckBreak() + } + if yyb1016 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Status = "" + } else { + x.Status = pkg2_api.ConditionStatus(r.DecodeString()) + } + yyj1016++ + if yyhl1016 { + yyb1016 = yyj1016 > l + } else { + yyb1016 = r.CheckBreak() + } + if yyb1016 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.LastTransitionTime = pkg1_unversioned.Time{} + } else { + yyv1019 := &x.LastTransitionTime + yym1020 := z.DecBinary() + _ = yym1020 + if false { + } else if z.HasExtensions() && z.DecExt(yyv1019) { + } else if yym1020 { + z.DecBinaryUnmarshal(yyv1019) + } else if !yym1020 && z.IsJSONHandle() { + z.DecJSONUnmarshal(yyv1019) + } else { + z.DecFallback(yyv1019, false) + } + } + yyj1016++ + if yyhl1016 { + yyb1016 = yyj1016 > l + } else { + yyb1016 = r.CheckBreak() + } + if yyb1016 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Reason = "" + } else { + x.Reason = string(r.DecodeString()) + } + yyj1016++ + if yyhl1016 { + yyb1016 = yyj1016 > l + } else { + yyb1016 = r.CheckBreak() + } + if yyb1016 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Message = "" + } else { + x.Message = string(r.DecodeString()) + } + for { + yyj1016++ + if yyhl1016 { + yyb1016 = yyj1016 > l + } else { + yyb1016 = r.CheckBreak() + } + if yyb1016 { + break + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + z.DecStructFieldNotFound(yyj1016-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -10959,38 +12190,38 @@ func (x *PodSecurityPolicy) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym906 := z.EncBinary() - _ = yym906 + yym1023 := z.EncBinary() + _ = yym1023 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - 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 { + yysep1024 := !z.EncBinary() + yy2arr1024 := z.EncBasicHandle().StructToArray + var yyq1024 [4]bool + _, _, _ = yysep1024, yyq1024, yy2arr1024 + const yyr1024 bool = false + yyq1024[0] = x.Kind != "" + yyq1024[1] = x.APIVersion != "" + yyq1024[2] = true + yyq1024[3] = true + var yynn1024 int + if yyr1024 || yy2arr1024 { r.EncodeArrayStart(4) } else { - yynn907 = 0 - for _, b := range yyq907 { + yynn1024 = 0 + for _, b := range yyq1024 { if b { - yynn907++ + yynn1024++ } } - r.EncodeMapStart(yynn907) - yynn907 = 0 + r.EncodeMapStart(yynn1024) + yynn1024 = 0 } - if yyr907 || yy2arr907 { + if yyr1024 || yy2arr1024 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq907[0] { - yym909 := z.EncBinary() - _ = yym909 + if yyq1024[0] { + yym1026 := z.EncBinary() + _ = yym1026 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) @@ -10999,23 +12230,23 @@ func (x *PodSecurityPolicy) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq907[0] { + if yyq1024[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym910 := z.EncBinary() - _ = yym910 + yym1027 := z.EncBinary() + _ = yym1027 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } - if yyr907 || yy2arr907 { + if yyr1024 || yy2arr1024 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq907[1] { - yym912 := z.EncBinary() - _ = yym912 + if yyq1024[1] { + yym1029 := z.EncBinary() + _ = yym1029 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) @@ -11024,53 +12255,53 @@ func (x *PodSecurityPolicy) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq907[1] { + if yyq1024[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym913 := z.EncBinary() - _ = yym913 + yym1030 := z.EncBinary() + _ = yym1030 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } - if yyr907 || yy2arr907 { + if yyr1024 || yy2arr1024 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq907[2] { - yy915 := &x.ObjectMeta - yy915.CodecEncodeSelf(e) + if yyq1024[2] { + yy1032 := &x.ObjectMeta + yy1032.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { - if yyq907[2] { + if yyq1024[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy916 := &x.ObjectMeta - yy916.CodecEncodeSelf(e) + yy1033 := &x.ObjectMeta + yy1033.CodecEncodeSelf(e) } } - if yyr907 || yy2arr907 { + if yyr1024 || yy2arr1024 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq907[3] { - yy918 := &x.Spec - yy918.CodecEncodeSelf(e) + if yyq1024[3] { + yy1035 := &x.Spec + yy1035.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { - if yyq907[3] { + if yyq1024[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("spec")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy919 := &x.Spec - yy919.CodecEncodeSelf(e) + yy1036 := &x.Spec + yy1036.CodecEncodeSelf(e) } } - if yyr907 || yy2arr907 { + if yyr1024 || yy2arr1024 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -11083,25 +12314,25 @@ func (x *PodSecurityPolicy) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym920 := z.DecBinary() - _ = yym920 + yym1037 := z.DecBinary() + _ = yym1037 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct921 := r.ContainerType() - if yyct921 == codecSelferValueTypeMap1234 { - yyl921 := r.ReadMapStart() - if yyl921 == 0 { + yyct1038 := r.ContainerType() + if yyct1038 == codecSelferValueTypeMap1234 { + yyl1038 := r.ReadMapStart() + if yyl1038 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl921, d) + x.codecDecodeSelfFromMap(yyl1038, d) } - } else if yyct921 == codecSelferValueTypeArray1234 { - yyl921 := r.ReadArrayStart() - if yyl921 == 0 { + } else if yyct1038 == codecSelferValueTypeArray1234 { + yyl1038 := r.ReadArrayStart() + if yyl1038 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl921, d) + x.codecDecodeSelfFromArray(yyl1038, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -11113,12 +12344,12 @@ func (x *PodSecurityPolicy) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys922Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys922Slc - var yyhl922 bool = l >= 0 - for yyj922 := 0; ; yyj922++ { - if yyhl922 { - if yyj922 >= 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 { @@ -11127,10 +12358,10 @@ func (x *PodSecurityPolicy) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys922Slc = r.DecodeBytes(yys922Slc, true, true) - yys922 := string(yys922Slc) + yys1039Slc = r.DecodeBytes(yys1039Slc, true, true) + yys1039 := string(yys1039Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys922 { + switch yys1039 { case "kind": if r.TryDecodeAsNil() { x.Kind = "" @@ -11147,20 +12378,20 @@ func (x *PodSecurityPolicy) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) if r.TryDecodeAsNil() { x.ObjectMeta = pkg2_api.ObjectMeta{} } else { - yyv925 := &x.ObjectMeta - yyv925.CodecDecodeSelf(d) + yyv1042 := &x.ObjectMeta + yyv1042.CodecDecodeSelf(d) } case "spec": if r.TryDecodeAsNil() { x.Spec = PodSecurityPolicySpec{} } else { - yyv926 := &x.Spec - yyv926.CodecDecodeSelf(d) + yyv1043 := &x.Spec + yyv1043.CodecDecodeSelf(d) } default: - z.DecStructFieldNotFound(-1, yys922) - } // end switch yys922 - } // end for yyj922 + z.DecStructFieldNotFound(-1, yys1039) + } // end switch yys1039 + } // end for yyj1039 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -11168,16 +12399,16 @@ func (x *PodSecurityPolicy) codecDecodeSelfFromArray(l int, d *codec1978.Decoder var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj927 int - var yyb927 bool - var yyhl927 bool = l >= 0 - yyj927++ - if yyhl927 { - yyb927 = yyj927 > l + var yyj1044 int + var yyb1044 bool + var yyhl1044 bool = l >= 0 + yyj1044++ + if yyhl1044 { + yyb1044 = yyj1044 > l } else { - yyb927 = r.CheckBreak() + yyb1044 = r.CheckBreak() } - if yyb927 { + if yyb1044 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -11187,13 +12418,13 @@ func (x *PodSecurityPolicy) codecDecodeSelfFromArray(l int, d *codec1978.Decoder } else { x.Kind = string(r.DecodeString()) } - yyj927++ - if yyhl927 { - yyb927 = yyj927 > l + yyj1044++ + if yyhl1044 { + yyb1044 = yyj1044 > l } else { - yyb927 = r.CheckBreak() + yyb1044 = r.CheckBreak() } - if yyb927 { + if yyb1044 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -11203,13 +12434,13 @@ func (x *PodSecurityPolicy) codecDecodeSelfFromArray(l int, d *codec1978.Decoder } else { x.APIVersion = string(r.DecodeString()) } - yyj927++ - if yyhl927 { - yyb927 = yyj927 > l + yyj1044++ + if yyhl1044 { + yyb1044 = yyj1044 > l } else { - yyb927 = r.CheckBreak() + yyb1044 = r.CheckBreak() } - if yyb927 { + if yyb1044 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -11217,16 +12448,16 @@ func (x *PodSecurityPolicy) codecDecodeSelfFromArray(l int, d *codec1978.Decoder if r.TryDecodeAsNil() { x.ObjectMeta = pkg2_api.ObjectMeta{} } else { - yyv930 := &x.ObjectMeta - yyv930.CodecDecodeSelf(d) + yyv1047 := &x.ObjectMeta + yyv1047.CodecDecodeSelf(d) } - yyj927++ - if yyhl927 { - yyb927 = yyj927 > l + yyj1044++ + if yyhl1044 { + yyb1044 = yyj1044 > l } else { - yyb927 = r.CheckBreak() + yyb1044 = r.CheckBreak() } - if yyb927 { + if yyb1044 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -11234,21 +12465,21 @@ func (x *PodSecurityPolicy) codecDecodeSelfFromArray(l int, d *codec1978.Decoder if r.TryDecodeAsNil() { x.Spec = PodSecurityPolicySpec{} } else { - yyv931 := &x.Spec - yyv931.CodecDecodeSelf(d) + yyv1048 := &x.Spec + yyv1048.CodecDecodeSelf(d) } for { - yyj927++ - if yyhl927 { - yyb927 = yyj927 > l + yyj1044++ + if yyhl1044 { + yyb1044 = yyj1044 > l } else { - yyb927 = r.CheckBreak() + yyb1044 = r.CheckBreak() } - if yyb927 { + if yyb1044 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj927-1, "") + z.DecStructFieldNotFound(yyj1044-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -11260,44 +12491,44 @@ func (x *PodSecurityPolicySpec) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym932 := z.EncBinary() - _ = yym932 + yym1049 := z.EncBinary() + _ = yym1049 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - 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 { + yysep1050 := !z.EncBinary() + yy2arr1050 := z.EncBasicHandle().StructToArray + var yyq1050 [14]bool + _, _, _ = yysep1050, yyq1050, yy2arr1050 + const yyr1050 bool = false + yyq1050[0] = x.Privileged != false + yyq1050[1] = len(x.DefaultAddCapabilities) != 0 + yyq1050[2] = len(x.RequiredDropCapabilities) != 0 + yyq1050[3] = len(x.AllowedCapabilities) != 0 + yyq1050[4] = len(x.Volumes) != 0 + yyq1050[5] = x.HostNetwork != false + yyq1050[6] = len(x.HostPorts) != 0 + yyq1050[7] = x.HostPID != false + yyq1050[8] = x.HostIPC != false + yyq1050[13] = x.ReadOnlyRootFilesystem != false + var yynn1050 int + if yyr1050 || yy2arr1050 { r.EncodeArrayStart(14) } else { - yynn933 = 4 - for _, b := range yyq933 { + yynn1050 = 4 + for _, b := range yyq1050 { if b { - yynn933++ + yynn1050++ } } - r.EncodeMapStart(yynn933) - yynn933 = 0 + r.EncodeMapStart(yynn1050) + yynn1050 = 0 } - if yyr933 || yy2arr933 { + if yyr1050 || yy2arr1050 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq933[0] { - yym935 := z.EncBinary() - _ = yym935 + if yyq1050[0] { + yym1052 := z.EncBinary() + _ = yym1052 if false { } else { r.EncodeBool(bool(x.Privileged)) @@ -11306,26 +12537,26 @@ func (x *PodSecurityPolicySpec) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeBool(false) } } else { - if yyq933[0] { + if yyq1050[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("privileged")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym936 := z.EncBinary() - _ = yym936 + yym1053 := z.EncBinary() + _ = yym1053 if false { } else { r.EncodeBool(bool(x.Privileged)) } } } - if yyr933 || yy2arr933 { + if yyr1050 || yy2arr1050 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq933[1] { + if yyq1050[1] { if x.DefaultAddCapabilities == nil { r.EncodeNil() } else { - yym938 := z.EncBinary() - _ = yym938 + yym1055 := z.EncBinary() + _ = yym1055 if false { } else { h.encSliceapi_Capability(([]pkg2_api.Capability)(x.DefaultAddCapabilities), e) @@ -11335,15 +12566,15 @@ func (x *PodSecurityPolicySpec) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq933[1] { + if yyq1050[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("defaultAddCapabilities")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.DefaultAddCapabilities == nil { r.EncodeNil() } else { - yym939 := z.EncBinary() - _ = yym939 + yym1056 := z.EncBinary() + _ = yym1056 if false { } else { h.encSliceapi_Capability(([]pkg2_api.Capability)(x.DefaultAddCapabilities), e) @@ -11351,14 +12582,14 @@ func (x *PodSecurityPolicySpec) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr933 || yy2arr933 { + if yyr1050 || yy2arr1050 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq933[2] { + if yyq1050[2] { if x.RequiredDropCapabilities == nil { r.EncodeNil() } else { - yym941 := z.EncBinary() - _ = yym941 + yym1058 := z.EncBinary() + _ = yym1058 if false { } else { h.encSliceapi_Capability(([]pkg2_api.Capability)(x.RequiredDropCapabilities), e) @@ -11368,15 +12599,15 @@ func (x *PodSecurityPolicySpec) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq933[2] { + if yyq1050[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("requiredDropCapabilities")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.RequiredDropCapabilities == nil { r.EncodeNil() } else { - yym942 := z.EncBinary() - _ = yym942 + yym1059 := z.EncBinary() + _ = yym1059 if false { } else { h.encSliceapi_Capability(([]pkg2_api.Capability)(x.RequiredDropCapabilities), e) @@ -11384,14 +12615,14 @@ func (x *PodSecurityPolicySpec) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr933 || yy2arr933 { + if yyr1050 || yy2arr1050 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq933[3] { + if yyq1050[3] { if x.AllowedCapabilities == nil { r.EncodeNil() } else { - yym944 := z.EncBinary() - _ = yym944 + yym1061 := z.EncBinary() + _ = yym1061 if false { } else { h.encSliceapi_Capability(([]pkg2_api.Capability)(x.AllowedCapabilities), e) @@ -11401,15 +12632,15 @@ func (x *PodSecurityPolicySpec) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq933[3] { + if yyq1050[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("allowedCapabilities")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.AllowedCapabilities == nil { r.EncodeNil() } else { - yym945 := z.EncBinary() - _ = yym945 + yym1062 := z.EncBinary() + _ = yym1062 if false { } else { h.encSliceapi_Capability(([]pkg2_api.Capability)(x.AllowedCapabilities), e) @@ -11417,14 +12648,14 @@ func (x *PodSecurityPolicySpec) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr933 || yy2arr933 { + if yyr1050 || yy2arr1050 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq933[4] { + if yyq1050[4] { if x.Volumes == nil { r.EncodeNil() } else { - yym947 := z.EncBinary() - _ = yym947 + yym1064 := z.EncBinary() + _ = yym1064 if false { } else { h.encSliceFSType(([]FSType)(x.Volumes), e) @@ -11434,15 +12665,15 @@ func (x *PodSecurityPolicySpec) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq933[4] { + if yyq1050[4] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("volumes")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.Volumes == nil { r.EncodeNil() } else { - yym948 := z.EncBinary() - _ = yym948 + yym1065 := z.EncBinary() + _ = yym1065 if false { } else { h.encSliceFSType(([]FSType)(x.Volumes), e) @@ -11450,11 +12681,11 @@ func (x *PodSecurityPolicySpec) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr933 || yy2arr933 { + if yyr1050 || yy2arr1050 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq933[5] { - yym950 := z.EncBinary() - _ = yym950 + if yyq1050[5] { + yym1067 := z.EncBinary() + _ = yym1067 if false { } else { r.EncodeBool(bool(x.HostNetwork)) @@ -11463,26 +12694,26 @@ func (x *PodSecurityPolicySpec) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeBool(false) } } else { - if yyq933[5] { + if yyq1050[5] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("hostNetwork")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym951 := z.EncBinary() - _ = yym951 + yym1068 := z.EncBinary() + _ = yym1068 if false { } else { r.EncodeBool(bool(x.HostNetwork)) } } } - if yyr933 || yy2arr933 { + if yyr1050 || yy2arr1050 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq933[6] { + if yyq1050[6] { if x.HostPorts == nil { r.EncodeNil() } else { - yym953 := z.EncBinary() - _ = yym953 + yym1070 := z.EncBinary() + _ = yym1070 if false { } else { h.encSliceHostPortRange(([]HostPortRange)(x.HostPorts), e) @@ -11492,15 +12723,15 @@ func (x *PodSecurityPolicySpec) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq933[6] { + if yyq1050[6] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("hostPorts")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.HostPorts == nil { r.EncodeNil() } else { - yym954 := z.EncBinary() - _ = yym954 + yym1071 := z.EncBinary() + _ = yym1071 if false { } else { h.encSliceHostPortRange(([]HostPortRange)(x.HostPorts), e) @@ -11508,11 +12739,11 @@ func (x *PodSecurityPolicySpec) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr933 || yy2arr933 { + if yyr1050 || yy2arr1050 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq933[7] { - yym956 := z.EncBinary() - _ = yym956 + if yyq1050[7] { + yym1073 := z.EncBinary() + _ = yym1073 if false { } else { r.EncodeBool(bool(x.HostPID)) @@ -11521,23 +12752,23 @@ func (x *PodSecurityPolicySpec) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeBool(false) } } else { - if yyq933[7] { + if yyq1050[7] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("hostPID")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym957 := z.EncBinary() - _ = yym957 + yym1074 := z.EncBinary() + _ = yym1074 if false { } else { r.EncodeBool(bool(x.HostPID)) } } } - if yyr933 || yy2arr933 { + if yyr1050 || yy2arr1050 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq933[8] { - yym959 := z.EncBinary() - _ = yym959 + if yyq1050[8] { + yym1076 := z.EncBinary() + _ = yym1076 if false { } else { r.EncodeBool(bool(x.HostIPC)) @@ -11546,67 +12777,67 @@ func (x *PodSecurityPolicySpec) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeBool(false) } } else { - if yyq933[8] { + if yyq1050[8] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("hostIPC")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym960 := z.EncBinary() - _ = yym960 + yym1077 := z.EncBinary() + _ = yym1077 if false { } else { r.EncodeBool(bool(x.HostIPC)) } } } - if yyr933 || yy2arr933 { + if yyr1050 || yy2arr1050 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy962 := &x.SELinux - yy962.CodecEncodeSelf(e) + yy1079 := &x.SELinux + yy1079.CodecEncodeSelf(e) } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("seLinux")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy963 := &x.SELinux - yy963.CodecEncodeSelf(e) + yy1080 := &x.SELinux + yy1080.CodecEncodeSelf(e) } - if yyr933 || yy2arr933 { + if yyr1050 || yy2arr1050 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy965 := &x.RunAsUser - yy965.CodecEncodeSelf(e) + yy1082 := &x.RunAsUser + yy1082.CodecEncodeSelf(e) } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("runAsUser")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy966 := &x.RunAsUser - yy966.CodecEncodeSelf(e) + yy1083 := &x.RunAsUser + yy1083.CodecEncodeSelf(e) } - if yyr933 || yy2arr933 { + if yyr1050 || yy2arr1050 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy968 := &x.SupplementalGroups - yy968.CodecEncodeSelf(e) + yy1085 := &x.SupplementalGroups + yy1085.CodecEncodeSelf(e) } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("supplementalGroups")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy969 := &x.SupplementalGroups - yy969.CodecEncodeSelf(e) + yy1086 := &x.SupplementalGroups + yy1086.CodecEncodeSelf(e) } - if yyr933 || yy2arr933 { + if yyr1050 || yy2arr1050 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy971 := &x.FSGroup - yy971.CodecEncodeSelf(e) + yy1088 := &x.FSGroup + yy1088.CodecEncodeSelf(e) } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("fsGroup")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy972 := &x.FSGroup - yy972.CodecEncodeSelf(e) + yy1089 := &x.FSGroup + yy1089.CodecEncodeSelf(e) } - if yyr933 || yy2arr933 { + if yyr1050 || yy2arr1050 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq933[13] { - yym974 := z.EncBinary() - _ = yym974 + if yyq1050[13] { + yym1091 := z.EncBinary() + _ = yym1091 if false { } else { r.EncodeBool(bool(x.ReadOnlyRootFilesystem)) @@ -11615,19 +12846,19 @@ func (x *PodSecurityPolicySpec) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeBool(false) } } else { - if yyq933[13] { + if yyq1050[13] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("readOnlyRootFilesystem")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym975 := z.EncBinary() - _ = yym975 + yym1092 := z.EncBinary() + _ = yym1092 if false { } else { r.EncodeBool(bool(x.ReadOnlyRootFilesystem)) } } } - if yyr933 || yy2arr933 { + if yyr1050 || yy2arr1050 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -11640,25 +12871,25 @@ func (x *PodSecurityPolicySpec) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym976 := z.DecBinary() - _ = yym976 + yym1093 := z.DecBinary() + _ = yym1093 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct977 := r.ContainerType() - if yyct977 == codecSelferValueTypeMap1234 { - yyl977 := r.ReadMapStart() - if yyl977 == 0 { + yyct1094 := r.ContainerType() + if yyct1094 == codecSelferValueTypeMap1234 { + yyl1094 := r.ReadMapStart() + if yyl1094 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl977, d) + x.codecDecodeSelfFromMap(yyl1094, d) } - } else if yyct977 == codecSelferValueTypeArray1234 { - yyl977 := r.ReadArrayStart() - if yyl977 == 0 { + } else if yyct1094 == codecSelferValueTypeArray1234 { + yyl1094 := r.ReadArrayStart() + if yyl1094 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl977, d) + x.codecDecodeSelfFromArray(yyl1094, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -11670,12 +12901,12 @@ func (x *PodSecurityPolicySpec) codecDecodeSelfFromMap(l int, d *codec1978.Decod var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys978Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys978Slc - var yyhl978 bool = l >= 0 - for yyj978 := 0; ; yyj978++ { - if yyhl978 { - if yyj978 >= 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 { @@ -11684,10 +12915,10 @@ func (x *PodSecurityPolicySpec) codecDecodeSelfFromMap(l int, d *codec1978.Decod } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys978Slc = r.DecodeBytes(yys978Slc, true, true) - yys978 := string(yys978Slc) + yys1095Slc = r.DecodeBytes(yys1095Slc, true, true) + yys1095 := string(yys1095Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys978 { + switch yys1095 { case "privileged": if r.TryDecodeAsNil() { x.Privileged = false @@ -11698,48 +12929,48 @@ func (x *PodSecurityPolicySpec) codecDecodeSelfFromMap(l int, d *codec1978.Decod if r.TryDecodeAsNil() { x.DefaultAddCapabilities = nil } else { - yyv980 := &x.DefaultAddCapabilities - yym981 := z.DecBinary() - _ = yym981 + yyv1097 := &x.DefaultAddCapabilities + yym1098 := z.DecBinary() + _ = yym1098 if false { } else { - h.decSliceapi_Capability((*[]pkg2_api.Capability)(yyv980), d) + h.decSliceapi_Capability((*[]pkg2_api.Capability)(yyv1097), d) } } case "requiredDropCapabilities": if r.TryDecodeAsNil() { x.RequiredDropCapabilities = nil } else { - yyv982 := &x.RequiredDropCapabilities - yym983 := z.DecBinary() - _ = yym983 + yyv1099 := &x.RequiredDropCapabilities + yym1100 := z.DecBinary() + _ = yym1100 if false { } else { - h.decSliceapi_Capability((*[]pkg2_api.Capability)(yyv982), d) + h.decSliceapi_Capability((*[]pkg2_api.Capability)(yyv1099), d) } } case "allowedCapabilities": if r.TryDecodeAsNil() { x.AllowedCapabilities = nil } else { - yyv984 := &x.AllowedCapabilities - yym985 := z.DecBinary() - _ = yym985 + yyv1101 := &x.AllowedCapabilities + yym1102 := z.DecBinary() + _ = yym1102 if false { } else { - h.decSliceapi_Capability((*[]pkg2_api.Capability)(yyv984), d) + h.decSliceapi_Capability((*[]pkg2_api.Capability)(yyv1101), d) } } case "volumes": if r.TryDecodeAsNil() { x.Volumes = nil } else { - yyv986 := &x.Volumes - yym987 := z.DecBinary() - _ = yym987 + yyv1103 := &x.Volumes + yym1104 := z.DecBinary() + _ = yym1104 if false { } else { - h.decSliceFSType((*[]FSType)(yyv986), d) + h.decSliceFSType((*[]FSType)(yyv1103), d) } } case "hostNetwork": @@ -11752,12 +12983,12 @@ func (x *PodSecurityPolicySpec) codecDecodeSelfFromMap(l int, d *codec1978.Decod if r.TryDecodeAsNil() { x.HostPorts = nil } else { - yyv989 := &x.HostPorts - yym990 := z.DecBinary() - _ = yym990 + yyv1106 := &x.HostPorts + yym1107 := z.DecBinary() + _ = yym1107 if false { } else { - h.decSliceHostPortRange((*[]HostPortRange)(yyv989), d) + h.decSliceHostPortRange((*[]HostPortRange)(yyv1106), d) } } case "hostPID": @@ -11776,29 +13007,29 @@ func (x *PodSecurityPolicySpec) codecDecodeSelfFromMap(l int, d *codec1978.Decod if r.TryDecodeAsNil() { x.SELinux = SELinuxStrategyOptions{} } else { - yyv993 := &x.SELinux - yyv993.CodecDecodeSelf(d) + yyv1110 := &x.SELinux + yyv1110.CodecDecodeSelf(d) } case "runAsUser": if r.TryDecodeAsNil() { x.RunAsUser = RunAsUserStrategyOptions{} } else { - yyv994 := &x.RunAsUser - yyv994.CodecDecodeSelf(d) + yyv1111 := &x.RunAsUser + yyv1111.CodecDecodeSelf(d) } case "supplementalGroups": if r.TryDecodeAsNil() { x.SupplementalGroups = SupplementalGroupsStrategyOptions{} } else { - yyv995 := &x.SupplementalGroups - yyv995.CodecDecodeSelf(d) + yyv1112 := &x.SupplementalGroups + yyv1112.CodecDecodeSelf(d) } case "fsGroup": if r.TryDecodeAsNil() { x.FSGroup = FSGroupStrategyOptions{} } else { - yyv996 := &x.FSGroup - yyv996.CodecDecodeSelf(d) + yyv1113 := &x.FSGroup + yyv1113.CodecDecodeSelf(d) } case "readOnlyRootFilesystem": if r.TryDecodeAsNil() { @@ -11807,9 +13038,9 @@ func (x *PodSecurityPolicySpec) codecDecodeSelfFromMap(l int, d *codec1978.Decod x.ReadOnlyRootFilesystem = bool(r.DecodeBool()) } default: - z.DecStructFieldNotFound(-1, yys978) - } // end switch yys978 - } // end for yyj978 + z.DecStructFieldNotFound(-1, yys1095) + } // end switch yys1095 + } // end for yyj1095 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -11817,16 +13048,16 @@ func (x *PodSecurityPolicySpec) codecDecodeSelfFromArray(l int, d *codec1978.Dec var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj998 int - var yyb998 bool - var yyhl998 bool = l >= 0 - yyj998++ - if yyhl998 { - yyb998 = yyj998 > l + var yyj1115 int + var yyb1115 bool + var yyhl1115 bool = l >= 0 + yyj1115++ + if yyhl1115 { + yyb1115 = yyj1115 > l } else { - yyb998 = r.CheckBreak() + yyb1115 = r.CheckBreak() } - if yyb998 { + if yyb1115 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -11836,13 +13067,13 @@ func (x *PodSecurityPolicySpec) codecDecodeSelfFromArray(l int, d *codec1978.Dec } else { x.Privileged = bool(r.DecodeBool()) } - yyj998++ - if yyhl998 { - yyb998 = yyj998 > l + yyj1115++ + if yyhl1115 { + yyb1115 = yyj1115 > l } else { - yyb998 = r.CheckBreak() + yyb1115 = r.CheckBreak() } - if yyb998 { + if yyb1115 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -11850,21 +13081,21 @@ func (x *PodSecurityPolicySpec) codecDecodeSelfFromArray(l int, d *codec1978.Dec if r.TryDecodeAsNil() { x.DefaultAddCapabilities = nil } else { - yyv1000 := &x.DefaultAddCapabilities - yym1001 := z.DecBinary() - _ = yym1001 + yyv1117 := &x.DefaultAddCapabilities + yym1118 := z.DecBinary() + _ = yym1118 if false { } else { - h.decSliceapi_Capability((*[]pkg2_api.Capability)(yyv1000), d) + h.decSliceapi_Capability((*[]pkg2_api.Capability)(yyv1117), d) } } - yyj998++ - if yyhl998 { - yyb998 = yyj998 > l + yyj1115++ + if yyhl1115 { + yyb1115 = yyj1115 > l } else { - yyb998 = r.CheckBreak() + yyb1115 = r.CheckBreak() } - if yyb998 { + if yyb1115 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -11872,21 +13103,21 @@ func (x *PodSecurityPolicySpec) codecDecodeSelfFromArray(l int, d *codec1978.Dec if r.TryDecodeAsNil() { x.RequiredDropCapabilities = nil } else { - yyv1002 := &x.RequiredDropCapabilities - yym1003 := z.DecBinary() - _ = yym1003 + yyv1119 := &x.RequiredDropCapabilities + yym1120 := z.DecBinary() + _ = yym1120 if false { } else { - h.decSliceapi_Capability((*[]pkg2_api.Capability)(yyv1002), d) + h.decSliceapi_Capability((*[]pkg2_api.Capability)(yyv1119), d) } } - yyj998++ - if yyhl998 { - yyb998 = yyj998 > l + yyj1115++ + if yyhl1115 { + yyb1115 = yyj1115 > l } else { - yyb998 = r.CheckBreak() + yyb1115 = r.CheckBreak() } - if yyb998 { + if yyb1115 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -11894,21 +13125,21 @@ func (x *PodSecurityPolicySpec) codecDecodeSelfFromArray(l int, d *codec1978.Dec if r.TryDecodeAsNil() { x.AllowedCapabilities = nil } else { - yyv1004 := &x.AllowedCapabilities - yym1005 := z.DecBinary() - _ = yym1005 + yyv1121 := &x.AllowedCapabilities + yym1122 := z.DecBinary() + _ = yym1122 if false { } else { - h.decSliceapi_Capability((*[]pkg2_api.Capability)(yyv1004), d) + h.decSliceapi_Capability((*[]pkg2_api.Capability)(yyv1121), d) } } - yyj998++ - if yyhl998 { - yyb998 = yyj998 > l + yyj1115++ + if yyhl1115 { + yyb1115 = yyj1115 > l } else { - yyb998 = r.CheckBreak() + yyb1115 = r.CheckBreak() } - if yyb998 { + if yyb1115 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -11916,21 +13147,21 @@ func (x *PodSecurityPolicySpec) codecDecodeSelfFromArray(l int, d *codec1978.Dec if r.TryDecodeAsNil() { x.Volumes = nil } else { - yyv1006 := &x.Volumes - yym1007 := z.DecBinary() - _ = yym1007 + yyv1123 := &x.Volumes + yym1124 := z.DecBinary() + _ = yym1124 if false { } else { - h.decSliceFSType((*[]FSType)(yyv1006), d) + h.decSliceFSType((*[]FSType)(yyv1123), d) } } - yyj998++ - if yyhl998 { - yyb998 = yyj998 > l + yyj1115++ + if yyhl1115 { + yyb1115 = yyj1115 > l } else { - yyb998 = r.CheckBreak() + yyb1115 = r.CheckBreak() } - if yyb998 { + if yyb1115 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -11940,13 +13171,13 @@ func (x *PodSecurityPolicySpec) codecDecodeSelfFromArray(l int, d *codec1978.Dec } else { x.HostNetwork = bool(r.DecodeBool()) } - yyj998++ - if yyhl998 { - yyb998 = yyj998 > l + yyj1115++ + if yyhl1115 { + yyb1115 = yyj1115 > l } else { - yyb998 = r.CheckBreak() + yyb1115 = r.CheckBreak() } - if yyb998 { + if yyb1115 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -11954,21 +13185,21 @@ func (x *PodSecurityPolicySpec) codecDecodeSelfFromArray(l int, d *codec1978.Dec if r.TryDecodeAsNil() { x.HostPorts = nil } else { - yyv1009 := &x.HostPorts - yym1010 := z.DecBinary() - _ = yym1010 + yyv1126 := &x.HostPorts + yym1127 := z.DecBinary() + _ = yym1127 if false { } else { - h.decSliceHostPortRange((*[]HostPortRange)(yyv1009), d) + h.decSliceHostPortRange((*[]HostPortRange)(yyv1126), d) } } - yyj998++ - if yyhl998 { - yyb998 = yyj998 > l + yyj1115++ + if yyhl1115 { + yyb1115 = yyj1115 > l } else { - yyb998 = r.CheckBreak() + yyb1115 = r.CheckBreak() } - if yyb998 { + if yyb1115 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -11978,13 +13209,13 @@ func (x *PodSecurityPolicySpec) codecDecodeSelfFromArray(l int, d *codec1978.Dec } else { x.HostPID = bool(r.DecodeBool()) } - yyj998++ - if yyhl998 { - yyb998 = yyj998 > l + yyj1115++ + if yyhl1115 { + yyb1115 = yyj1115 > l } else { - yyb998 = r.CheckBreak() + yyb1115 = r.CheckBreak() } - if yyb998 { + if yyb1115 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -11994,13 +13225,13 @@ func (x *PodSecurityPolicySpec) codecDecodeSelfFromArray(l int, d *codec1978.Dec } else { x.HostIPC = bool(r.DecodeBool()) } - yyj998++ - if yyhl998 { - yyb998 = yyj998 > l + yyj1115++ + if yyhl1115 { + yyb1115 = yyj1115 > l } else { - yyb998 = r.CheckBreak() + yyb1115 = r.CheckBreak() } - if yyb998 { + if yyb1115 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -12008,16 +13239,16 @@ func (x *PodSecurityPolicySpec) codecDecodeSelfFromArray(l int, d *codec1978.Dec if r.TryDecodeAsNil() { x.SELinux = SELinuxStrategyOptions{} } else { - yyv1013 := &x.SELinux - yyv1013.CodecDecodeSelf(d) + yyv1130 := &x.SELinux + yyv1130.CodecDecodeSelf(d) } - yyj998++ - if yyhl998 { - yyb998 = yyj998 > l + yyj1115++ + if yyhl1115 { + yyb1115 = yyj1115 > l } else { - yyb998 = r.CheckBreak() + yyb1115 = r.CheckBreak() } - if yyb998 { + if yyb1115 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -12025,16 +13256,16 @@ func (x *PodSecurityPolicySpec) codecDecodeSelfFromArray(l int, d *codec1978.Dec if r.TryDecodeAsNil() { x.RunAsUser = RunAsUserStrategyOptions{} } else { - yyv1014 := &x.RunAsUser - yyv1014.CodecDecodeSelf(d) + yyv1131 := &x.RunAsUser + yyv1131.CodecDecodeSelf(d) } - yyj998++ - if yyhl998 { - yyb998 = yyj998 > l + yyj1115++ + if yyhl1115 { + yyb1115 = yyj1115 > l } else { - yyb998 = r.CheckBreak() + yyb1115 = r.CheckBreak() } - if yyb998 { + if yyb1115 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -12042,16 +13273,16 @@ func (x *PodSecurityPolicySpec) codecDecodeSelfFromArray(l int, d *codec1978.Dec if r.TryDecodeAsNil() { x.SupplementalGroups = SupplementalGroupsStrategyOptions{} } else { - yyv1015 := &x.SupplementalGroups - yyv1015.CodecDecodeSelf(d) + yyv1132 := &x.SupplementalGroups + yyv1132.CodecDecodeSelf(d) } - yyj998++ - if yyhl998 { - yyb998 = yyj998 > l + yyj1115++ + if yyhl1115 { + yyb1115 = yyj1115 > l } else { - yyb998 = r.CheckBreak() + yyb1115 = r.CheckBreak() } - if yyb998 { + if yyb1115 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -12059,16 +13290,16 @@ func (x *PodSecurityPolicySpec) codecDecodeSelfFromArray(l int, d *codec1978.Dec if r.TryDecodeAsNil() { x.FSGroup = FSGroupStrategyOptions{} } else { - yyv1016 := &x.FSGroup - yyv1016.CodecDecodeSelf(d) + yyv1133 := &x.FSGroup + yyv1133.CodecDecodeSelf(d) } - yyj998++ - if yyhl998 { - yyb998 = yyj998 > l + yyj1115++ + if yyhl1115 { + yyb1115 = yyj1115 > l } else { - yyb998 = r.CheckBreak() + yyb1115 = r.CheckBreak() } - if yyb998 { + if yyb1115 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -12079,17 +13310,17 @@ func (x *PodSecurityPolicySpec) codecDecodeSelfFromArray(l int, d *codec1978.Dec x.ReadOnlyRootFilesystem = bool(r.DecodeBool()) } for { - yyj998++ - if yyhl998 { - yyb998 = yyj998 > l + yyj1115++ + if yyhl1115 { + yyb1115 = yyj1115 > l } else { - yyb998 = r.CheckBreak() + yyb1115 = r.CheckBreak() } - if yyb998 { + if yyb1115 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj998-1, "") + z.DecStructFieldNotFound(yyj1115-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -12101,33 +13332,33 @@ func (x *HostPortRange) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1018 := z.EncBinary() - _ = yym1018 + yym1135 := z.EncBinary() + _ = yym1135 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep1019 := !z.EncBinary() - yy2arr1019 := z.EncBasicHandle().StructToArray - var yyq1019 [2]bool - _, _, _ = yysep1019, yyq1019, yy2arr1019 - const yyr1019 bool = false - var yynn1019 int - if yyr1019 || yy2arr1019 { + yysep1136 := !z.EncBinary() + yy2arr1136 := z.EncBasicHandle().StructToArray + var yyq1136 [2]bool + _, _, _ = yysep1136, yyq1136, yy2arr1136 + const yyr1136 bool = false + var yynn1136 int + if yyr1136 || yy2arr1136 { r.EncodeArrayStart(2) } else { - yynn1019 = 2 - for _, b := range yyq1019 { + yynn1136 = 2 + for _, b := range yyq1136 { if b { - yynn1019++ + yynn1136++ } } - r.EncodeMapStart(yynn1019) - yynn1019 = 0 + r.EncodeMapStart(yynn1136) + yynn1136 = 0 } - if yyr1019 || yy2arr1019 { + if yyr1136 || yy2arr1136 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym1021 := z.EncBinary() - _ = yym1021 + yym1138 := z.EncBinary() + _ = yym1138 if false { } else { r.EncodeInt(int64(x.Min)) @@ -12136,17 +13367,17 @@ func (x *HostPortRange) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("min")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym1022 := z.EncBinary() - _ = yym1022 + yym1139 := z.EncBinary() + _ = yym1139 if false { } else { r.EncodeInt(int64(x.Min)) } } - if yyr1019 || yy2arr1019 { + if yyr1136 || yy2arr1136 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym1024 := z.EncBinary() - _ = yym1024 + yym1141 := z.EncBinary() + _ = yym1141 if false { } else { r.EncodeInt(int64(x.Max)) @@ -12155,14 +13386,14 @@ func (x *HostPortRange) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("max")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym1025 := z.EncBinary() - _ = yym1025 + yym1142 := z.EncBinary() + _ = yym1142 if false { } else { r.EncodeInt(int64(x.Max)) } } - if yyr1019 || yy2arr1019 { + if yyr1136 || yy2arr1136 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -12175,25 +13406,25 @@ func (x *HostPortRange) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1026 := z.DecBinary() - _ = yym1026 + yym1143 := z.DecBinary() + _ = yym1143 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct1027 := r.ContainerType() - if yyct1027 == codecSelferValueTypeMap1234 { - yyl1027 := r.ReadMapStart() - if yyl1027 == 0 { + yyct1144 := r.ContainerType() + if yyct1144 == codecSelferValueTypeMap1234 { + yyl1144 := r.ReadMapStart() + if yyl1144 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl1027, d) + x.codecDecodeSelfFromMap(yyl1144, d) } - } else if yyct1027 == codecSelferValueTypeArray1234 { - yyl1027 := r.ReadArrayStart() - if yyl1027 == 0 { + } else if yyct1144 == codecSelferValueTypeArray1234 { + yyl1144 := r.ReadArrayStart() + if yyl1144 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl1027, d) + x.codecDecodeSelfFromArray(yyl1144, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -12205,12 +13436,12 @@ func (x *HostPortRange) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys1028Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys1028Slc - var yyhl1028 bool = l >= 0 - for yyj1028 := 0; ; yyj1028++ { - if yyhl1028 { - if yyj1028 >= l { + var yys1145Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys1145Slc + var yyhl1145 bool = l >= 0 + for yyj1145 := 0; ; yyj1145++ { + if yyhl1145 { + if yyj1145 >= l { break } } else { @@ -12219,10 +13450,10 @@ func (x *HostPortRange) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys1028Slc = r.DecodeBytes(yys1028Slc, true, true) - yys1028 := string(yys1028Slc) + yys1145Slc = r.DecodeBytes(yys1145Slc, true, true) + yys1145 := string(yys1145Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys1028 { + switch yys1145 { case "min": if r.TryDecodeAsNil() { x.Min = 0 @@ -12236,9 +13467,9 @@ func (x *HostPortRange) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { x.Max = int(r.DecodeInt(codecSelferBitsize1234)) } default: - z.DecStructFieldNotFound(-1, yys1028) - } // end switch yys1028 - } // end for yyj1028 + z.DecStructFieldNotFound(-1, yys1145) + } // end switch yys1145 + } // end for yyj1145 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -12246,16 +13477,16 @@ func (x *HostPortRange) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj1031 int - var yyb1031 bool - var yyhl1031 bool = l >= 0 - yyj1031++ - if yyhl1031 { - yyb1031 = yyj1031 > l + var yyj1148 int + var yyb1148 bool + var yyhl1148 bool = l >= 0 + yyj1148++ + if yyhl1148 { + yyb1148 = yyj1148 > l } else { - yyb1031 = r.CheckBreak() + yyb1148 = r.CheckBreak() } - if yyb1031 { + if yyb1148 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -12265,13 +13496,13 @@ func (x *HostPortRange) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.Min = int(r.DecodeInt(codecSelferBitsize1234)) } - yyj1031++ - if yyhl1031 { - yyb1031 = yyj1031 > l + yyj1148++ + if yyhl1148 { + yyb1148 = yyj1148 > l } else { - yyb1031 = r.CheckBreak() + yyb1148 = r.CheckBreak() } - if yyb1031 { + if yyb1148 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -12282,17 +13513,17 @@ func (x *HostPortRange) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { x.Max = int(r.DecodeInt(codecSelferBitsize1234)) } for { - yyj1031++ - if yyhl1031 { - yyb1031 = yyj1031 > l + yyj1148++ + if yyhl1148 { + yyb1148 = yyj1148 > l } else { - yyb1031 = r.CheckBreak() + yyb1148 = r.CheckBreak() } - if yyb1031 { + if yyb1148 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj1031-1, "") + z.DecStructFieldNotFound(yyj1148-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -12301,8 +13532,8 @@ func (x FSType) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r - yym1034 := z.EncBinary() - _ = yym1034 + yym1151 := z.EncBinary() + _ = yym1151 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { @@ -12314,8 +13545,8 @@ func (x *FSType) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1035 := z.DecBinary() - _ = yym1035 + yym1152 := z.DecBinary() + _ = yym1152 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { @@ -12330,31 +13561,31 @@ func (x *SELinuxStrategyOptions) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1036 := z.EncBinary() - _ = yym1036 + yym1153 := z.EncBinary() + _ = yym1153 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - 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 { + yysep1154 := !z.EncBinary() + yy2arr1154 := z.EncBasicHandle().StructToArray + var yyq1154 [2]bool + _, _, _ = yysep1154, yyq1154, yy2arr1154 + const yyr1154 bool = false + yyq1154[1] = x.SELinuxOptions != nil + var yynn1154 int + if yyr1154 || yy2arr1154 { r.EncodeArrayStart(2) } else { - yynn1037 = 1 - for _, b := range yyq1037 { + yynn1154 = 1 + for _, b := range yyq1154 { if b { - yynn1037++ + yynn1154++ } } - r.EncodeMapStart(yynn1037) - yynn1037 = 0 + r.EncodeMapStart(yynn1154) + yynn1154 = 0 } - if yyr1037 || yy2arr1037 { + if yyr1154 || yy2arr1154 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) x.Rule.CodecEncodeSelf(e) } else { @@ -12363,9 +13594,9 @@ func (x *SELinuxStrategyOptions) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapValue1234) x.Rule.CodecEncodeSelf(e) } - if yyr1037 || yy2arr1037 { + if yyr1154 || yy2arr1154 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1037[1] { + if yyq1154[1] { if x.SELinuxOptions == nil { r.EncodeNil() } else { @@ -12375,7 +13606,7 @@ func (x *SELinuxStrategyOptions) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq1037[1] { + if yyq1154[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("seLinuxOptions")) z.EncSendContainerState(codecSelfer_containerMapValue1234) @@ -12386,7 +13617,7 @@ func (x *SELinuxStrategyOptions) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr1037 || yy2arr1037 { + if yyr1154 || yy2arr1154 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -12399,25 +13630,25 @@ func (x *SELinuxStrategyOptions) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1040 := z.DecBinary() - _ = yym1040 + yym1157 := z.DecBinary() + _ = yym1157 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct1041 := r.ContainerType() - if yyct1041 == codecSelferValueTypeMap1234 { - yyl1041 := r.ReadMapStart() - if yyl1041 == 0 { + yyct1158 := r.ContainerType() + if yyct1158 == codecSelferValueTypeMap1234 { + yyl1158 := r.ReadMapStart() + if yyl1158 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl1041, d) + x.codecDecodeSelfFromMap(yyl1158, d) } - } else if yyct1041 == codecSelferValueTypeArray1234 { - yyl1041 := r.ReadArrayStart() - if yyl1041 == 0 { + } else if yyct1158 == codecSelferValueTypeArray1234 { + yyl1158 := r.ReadArrayStart() + if yyl1158 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl1041, d) + x.codecDecodeSelfFromArray(yyl1158, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -12429,12 +13660,12 @@ func (x *SELinuxStrategyOptions) codecDecodeSelfFromMap(l int, d *codec1978.Deco var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys1042Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys1042Slc - var yyhl1042 bool = l >= 0 - for yyj1042 := 0; ; yyj1042++ { - if yyhl1042 { - if yyj1042 >= l { + var yys1159Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys1159Slc + var yyhl1159 bool = l >= 0 + for yyj1159 := 0; ; yyj1159++ { + if yyhl1159 { + if yyj1159 >= l { break } } else { @@ -12443,10 +13674,10 @@ func (x *SELinuxStrategyOptions) codecDecodeSelfFromMap(l int, d *codec1978.Deco } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys1042Slc = r.DecodeBytes(yys1042Slc, true, true) - yys1042 := string(yys1042Slc) + yys1159Slc = r.DecodeBytes(yys1159Slc, true, true) + yys1159 := string(yys1159Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys1042 { + switch yys1159 { case "rule": if r.TryDecodeAsNil() { x.Rule = "" @@ -12465,9 +13696,9 @@ func (x *SELinuxStrategyOptions) codecDecodeSelfFromMap(l int, d *codec1978.Deco x.SELinuxOptions.CodecDecodeSelf(d) } default: - z.DecStructFieldNotFound(-1, yys1042) - } // end switch yys1042 - } // end for yyj1042 + z.DecStructFieldNotFound(-1, yys1159) + } // end switch yys1159 + } // end for yyj1159 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -12475,16 +13706,16 @@ func (x *SELinuxStrategyOptions) codecDecodeSelfFromArray(l int, d *codec1978.De var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj1045 int - var yyb1045 bool - var yyhl1045 bool = l >= 0 - yyj1045++ - if yyhl1045 { - yyb1045 = yyj1045 > l + var yyj1162 int + var yyb1162 bool + var yyhl1162 bool = l >= 0 + yyj1162++ + if yyhl1162 { + yyb1162 = yyj1162 > l } else { - yyb1045 = r.CheckBreak() + yyb1162 = r.CheckBreak() } - if yyb1045 { + if yyb1162 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -12494,13 +13725,13 @@ func (x *SELinuxStrategyOptions) codecDecodeSelfFromArray(l int, d *codec1978.De } else { x.Rule = SELinuxStrategy(r.DecodeString()) } - yyj1045++ - if yyhl1045 { - yyb1045 = yyj1045 > l + yyj1162++ + if yyhl1162 { + yyb1162 = yyj1162 > l } else { - yyb1045 = r.CheckBreak() + yyb1162 = r.CheckBreak() } - if yyb1045 { + if yyb1162 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -12516,17 +13747,17 @@ func (x *SELinuxStrategyOptions) codecDecodeSelfFromArray(l int, d *codec1978.De x.SELinuxOptions.CodecDecodeSelf(d) } for { - yyj1045++ - if yyhl1045 { - yyb1045 = yyj1045 > l + yyj1162++ + if yyhl1162 { + yyb1162 = yyj1162 > l } else { - yyb1045 = r.CheckBreak() + yyb1162 = r.CheckBreak() } - if yyb1045 { + if yyb1162 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj1045-1, "") + z.DecStructFieldNotFound(yyj1162-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -12535,8 +13766,8 @@ func (x SELinuxStrategy) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r - yym1048 := z.EncBinary() - _ = yym1048 + yym1165 := z.EncBinary() + _ = yym1165 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { @@ -12548,8 +13779,8 @@ func (x *SELinuxStrategy) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1049 := z.DecBinary() - _ = yym1049 + yym1166 := z.DecBinary() + _ = yym1166 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { @@ -12564,31 +13795,31 @@ func (x *RunAsUserStrategyOptions) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1050 := z.EncBinary() - _ = yym1050 + yym1167 := z.EncBinary() + _ = yym1167 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - 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 { + yysep1168 := !z.EncBinary() + yy2arr1168 := z.EncBasicHandle().StructToArray + var yyq1168 [2]bool + _, _, _ = yysep1168, yyq1168, yy2arr1168 + const yyr1168 bool = false + yyq1168[1] = len(x.Ranges) != 0 + var yynn1168 int + if yyr1168 || yy2arr1168 { r.EncodeArrayStart(2) } else { - yynn1051 = 1 - for _, b := range yyq1051 { + yynn1168 = 1 + for _, b := range yyq1168 { if b { - yynn1051++ + yynn1168++ } } - r.EncodeMapStart(yynn1051) - yynn1051 = 0 + r.EncodeMapStart(yynn1168) + yynn1168 = 0 } - if yyr1051 || yy2arr1051 { + if yyr1168 || yy2arr1168 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) x.Rule.CodecEncodeSelf(e) } else { @@ -12597,14 +13828,14 @@ func (x *RunAsUserStrategyOptions) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapValue1234) x.Rule.CodecEncodeSelf(e) } - if yyr1051 || yy2arr1051 { + if yyr1168 || yy2arr1168 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1051[1] { + if yyq1168[1] { if x.Ranges == nil { r.EncodeNil() } else { - yym1054 := z.EncBinary() - _ = yym1054 + yym1171 := z.EncBinary() + _ = yym1171 if false { } else { h.encSliceIDRange(([]IDRange)(x.Ranges), e) @@ -12614,15 +13845,15 @@ func (x *RunAsUserStrategyOptions) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq1051[1] { + if yyq1168[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("ranges")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.Ranges == nil { r.EncodeNil() } else { - yym1055 := z.EncBinary() - _ = yym1055 + yym1172 := z.EncBinary() + _ = yym1172 if false { } else { h.encSliceIDRange(([]IDRange)(x.Ranges), e) @@ -12630,7 +13861,7 @@ func (x *RunAsUserStrategyOptions) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr1051 || yy2arr1051 { + if yyr1168 || yy2arr1168 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -12643,25 +13874,25 @@ func (x *RunAsUserStrategyOptions) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1056 := z.DecBinary() - _ = yym1056 + yym1173 := z.DecBinary() + _ = yym1173 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct1057 := r.ContainerType() - if yyct1057 == codecSelferValueTypeMap1234 { - yyl1057 := r.ReadMapStart() - if yyl1057 == 0 { + yyct1174 := r.ContainerType() + if yyct1174 == codecSelferValueTypeMap1234 { + yyl1174 := r.ReadMapStart() + if yyl1174 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl1057, d) + x.codecDecodeSelfFromMap(yyl1174, d) } - } else if yyct1057 == codecSelferValueTypeArray1234 { - yyl1057 := r.ReadArrayStart() - if yyl1057 == 0 { + } else if yyct1174 == codecSelferValueTypeArray1234 { + yyl1174 := r.ReadArrayStart() + if yyl1174 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl1057, d) + x.codecDecodeSelfFromArray(yyl1174, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -12673,12 +13904,12 @@ func (x *RunAsUserStrategyOptions) codecDecodeSelfFromMap(l int, d *codec1978.De var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys1058Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys1058Slc - var yyhl1058 bool = l >= 0 - for yyj1058 := 0; ; yyj1058++ { - if yyhl1058 { - if yyj1058 >= 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 { @@ -12687,10 +13918,10 @@ func (x *RunAsUserStrategyOptions) codecDecodeSelfFromMap(l int, d *codec1978.De } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys1058Slc = r.DecodeBytes(yys1058Slc, true, true) - yys1058 := string(yys1058Slc) + yys1175Slc = r.DecodeBytes(yys1175Slc, true, true) + yys1175 := string(yys1175Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys1058 { + switch yys1175 { case "rule": if r.TryDecodeAsNil() { x.Rule = "" @@ -12701,18 +13932,18 @@ func (x *RunAsUserStrategyOptions) codecDecodeSelfFromMap(l int, d *codec1978.De if r.TryDecodeAsNil() { x.Ranges = nil } else { - yyv1060 := &x.Ranges - yym1061 := z.DecBinary() - _ = yym1061 + yyv1177 := &x.Ranges + yym1178 := z.DecBinary() + _ = yym1178 if false { } else { - h.decSliceIDRange((*[]IDRange)(yyv1060), d) + h.decSliceIDRange((*[]IDRange)(yyv1177), d) } } default: - z.DecStructFieldNotFound(-1, yys1058) - } // end switch yys1058 - } // end for yyj1058 + z.DecStructFieldNotFound(-1, yys1175) + } // end switch yys1175 + } // end for yyj1175 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -12720,16 +13951,16 @@ func (x *RunAsUserStrategyOptions) codecDecodeSelfFromArray(l int, d *codec1978. var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj1062 int - var yyb1062 bool - var yyhl1062 bool = l >= 0 - yyj1062++ - if yyhl1062 { - yyb1062 = yyj1062 > l + var yyj1179 int + var yyb1179 bool + var yyhl1179 bool = l >= 0 + yyj1179++ + if yyhl1179 { + yyb1179 = yyj1179 > l } else { - yyb1062 = r.CheckBreak() + yyb1179 = r.CheckBreak() } - if yyb1062 { + if yyb1179 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -12739,13 +13970,13 @@ func (x *RunAsUserStrategyOptions) codecDecodeSelfFromArray(l int, d *codec1978. } else { x.Rule = RunAsUserStrategy(r.DecodeString()) } - yyj1062++ - if yyhl1062 { - yyb1062 = yyj1062 > l + yyj1179++ + if yyhl1179 { + yyb1179 = yyj1179 > l } else { - yyb1062 = r.CheckBreak() + yyb1179 = r.CheckBreak() } - if yyb1062 { + if yyb1179 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -12753,26 +13984,26 @@ func (x *RunAsUserStrategyOptions) codecDecodeSelfFromArray(l int, d *codec1978. if r.TryDecodeAsNil() { x.Ranges = nil } else { - yyv1064 := &x.Ranges - yym1065 := z.DecBinary() - _ = yym1065 + yyv1181 := &x.Ranges + yym1182 := z.DecBinary() + _ = yym1182 if false { } else { - h.decSliceIDRange((*[]IDRange)(yyv1064), d) + h.decSliceIDRange((*[]IDRange)(yyv1181), d) } } for { - yyj1062++ - if yyhl1062 { - yyb1062 = yyj1062 > l + yyj1179++ + if yyhl1179 { + yyb1179 = yyj1179 > l } else { - yyb1062 = r.CheckBreak() + yyb1179 = r.CheckBreak() } - if yyb1062 { + if yyb1179 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj1062-1, "") + z.DecStructFieldNotFound(yyj1179-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -12784,33 +14015,33 @@ func (x *IDRange) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1066 := z.EncBinary() - _ = yym1066 + yym1183 := z.EncBinary() + _ = yym1183 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep1067 := !z.EncBinary() - yy2arr1067 := z.EncBasicHandle().StructToArray - var yyq1067 [2]bool - _, _, _ = yysep1067, yyq1067, yy2arr1067 - const yyr1067 bool = false - var yynn1067 int - if yyr1067 || yy2arr1067 { + yysep1184 := !z.EncBinary() + yy2arr1184 := z.EncBasicHandle().StructToArray + var yyq1184 [2]bool + _, _, _ = yysep1184, yyq1184, yy2arr1184 + const yyr1184 bool = false + var yynn1184 int + if yyr1184 || yy2arr1184 { r.EncodeArrayStart(2) } else { - yynn1067 = 2 - for _, b := range yyq1067 { + yynn1184 = 2 + for _, b := range yyq1184 { if b { - yynn1067++ + yynn1184++ } } - r.EncodeMapStart(yynn1067) - yynn1067 = 0 + r.EncodeMapStart(yynn1184) + yynn1184 = 0 } - if yyr1067 || yy2arr1067 { + if yyr1184 || yy2arr1184 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym1069 := z.EncBinary() - _ = yym1069 + yym1186 := z.EncBinary() + _ = yym1186 if false { } else { r.EncodeInt(int64(x.Min)) @@ -12819,17 +14050,17 @@ func (x *IDRange) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("min")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym1070 := z.EncBinary() - _ = yym1070 + yym1187 := z.EncBinary() + _ = yym1187 if false { } else { r.EncodeInt(int64(x.Min)) } } - if yyr1067 || yy2arr1067 { + if yyr1184 || yy2arr1184 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym1072 := z.EncBinary() - _ = yym1072 + yym1189 := z.EncBinary() + _ = yym1189 if false { } else { r.EncodeInt(int64(x.Max)) @@ -12838,14 +14069,14 @@ func (x *IDRange) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("max")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym1073 := z.EncBinary() - _ = yym1073 + yym1190 := z.EncBinary() + _ = yym1190 if false { } else { r.EncodeInt(int64(x.Max)) } } - if yyr1067 || yy2arr1067 { + if yyr1184 || yy2arr1184 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -12858,25 +14089,25 @@ func (x *IDRange) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1074 := z.DecBinary() - _ = yym1074 + yym1191 := z.DecBinary() + _ = yym1191 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct1075 := r.ContainerType() - if yyct1075 == codecSelferValueTypeMap1234 { - yyl1075 := r.ReadMapStart() - if yyl1075 == 0 { + yyct1192 := r.ContainerType() + if yyct1192 == codecSelferValueTypeMap1234 { + yyl1192 := r.ReadMapStart() + if yyl1192 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl1075, d) + x.codecDecodeSelfFromMap(yyl1192, d) } - } else if yyct1075 == codecSelferValueTypeArray1234 { - yyl1075 := r.ReadArrayStart() - if yyl1075 == 0 { + } else if yyct1192 == codecSelferValueTypeArray1234 { + yyl1192 := r.ReadArrayStart() + if yyl1192 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl1075, d) + x.codecDecodeSelfFromArray(yyl1192, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -12888,12 +14119,12 @@ func (x *IDRange) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys1076Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys1076Slc - var yyhl1076 bool = l >= 0 - for yyj1076 := 0; ; yyj1076++ { - if yyhl1076 { - if yyj1076 >= l { + var yys1193Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys1193Slc + var yyhl1193 bool = l >= 0 + for yyj1193 := 0; ; yyj1193++ { + if yyhl1193 { + if yyj1193 >= l { break } } else { @@ -12902,10 +14133,10 @@ func (x *IDRange) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys1076Slc = r.DecodeBytes(yys1076Slc, true, true) - yys1076 := string(yys1076Slc) + yys1193Slc = r.DecodeBytes(yys1193Slc, true, true) + yys1193 := string(yys1193Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys1076 { + switch yys1193 { case "min": if r.TryDecodeAsNil() { x.Min = 0 @@ -12919,9 +14150,9 @@ func (x *IDRange) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { x.Max = int64(r.DecodeInt(64)) } default: - z.DecStructFieldNotFound(-1, yys1076) - } // end switch yys1076 - } // end for yyj1076 + z.DecStructFieldNotFound(-1, yys1193) + } // end switch yys1193 + } // end for yyj1193 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -12929,16 +14160,16 @@ func (x *IDRange) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj1079 int - var yyb1079 bool - var yyhl1079 bool = l >= 0 - yyj1079++ - if yyhl1079 { - yyb1079 = yyj1079 > l + var yyj1196 int + var yyb1196 bool + var yyhl1196 bool = l >= 0 + yyj1196++ + if yyhl1196 { + yyb1196 = yyj1196 > l } else { - yyb1079 = r.CheckBreak() + yyb1196 = r.CheckBreak() } - if yyb1079 { + if yyb1196 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -12948,13 +14179,13 @@ func (x *IDRange) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.Min = int64(r.DecodeInt(64)) } - yyj1079++ - if yyhl1079 { - yyb1079 = yyj1079 > l + yyj1196++ + if yyhl1196 { + yyb1196 = yyj1196 > l } else { - yyb1079 = r.CheckBreak() + yyb1196 = r.CheckBreak() } - if yyb1079 { + if yyb1196 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -12965,17 +14196,17 @@ func (x *IDRange) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { x.Max = int64(r.DecodeInt(64)) } for { - yyj1079++ - if yyhl1079 { - yyb1079 = yyj1079 > l + yyj1196++ + if yyhl1196 { + yyb1196 = yyj1196 > l } else { - yyb1079 = r.CheckBreak() + yyb1196 = r.CheckBreak() } - if yyb1079 { + if yyb1196 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj1079-1, "") + z.DecStructFieldNotFound(yyj1196-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -12984,8 +14215,8 @@ func (x RunAsUserStrategy) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r - yym1082 := z.EncBinary() - _ = yym1082 + yym1199 := z.EncBinary() + _ = yym1199 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { @@ -12997,8 +14228,8 @@ func (x *RunAsUserStrategy) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1083 := z.DecBinary() - _ = yym1083 + yym1200 := z.DecBinary() + _ = yym1200 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { @@ -13013,54 +14244,54 @@ func (x *FSGroupStrategyOptions) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1084 := z.EncBinary() - _ = yym1084 + yym1201 := z.EncBinary() + _ = yym1201 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - 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 { + yysep1202 := !z.EncBinary() + yy2arr1202 := z.EncBasicHandle().StructToArray + var yyq1202 [2]bool + _, _, _ = yysep1202, yyq1202, yy2arr1202 + const yyr1202 bool = false + yyq1202[0] = x.Rule != "" + yyq1202[1] = len(x.Ranges) != 0 + var yynn1202 int + if yyr1202 || yy2arr1202 { r.EncodeArrayStart(2) } else { - yynn1085 = 0 - for _, b := range yyq1085 { + yynn1202 = 0 + for _, b := range yyq1202 { if b { - yynn1085++ + yynn1202++ } } - r.EncodeMapStart(yynn1085) - yynn1085 = 0 + r.EncodeMapStart(yynn1202) + yynn1202 = 0 } - if yyr1085 || yy2arr1085 { + if yyr1202 || yy2arr1202 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1085[0] { + if yyq1202[0] { x.Rule.CodecEncodeSelf(e) } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq1085[0] { + if yyq1202[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("rule")) z.EncSendContainerState(codecSelfer_containerMapValue1234) x.Rule.CodecEncodeSelf(e) } } - if yyr1085 || yy2arr1085 { + if yyr1202 || yy2arr1202 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1085[1] { + if yyq1202[1] { if x.Ranges == nil { r.EncodeNil() } else { - yym1088 := z.EncBinary() - _ = yym1088 + yym1205 := z.EncBinary() + _ = yym1205 if false { } else { h.encSliceIDRange(([]IDRange)(x.Ranges), e) @@ -13070,15 +14301,15 @@ func (x *FSGroupStrategyOptions) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq1085[1] { + if yyq1202[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("ranges")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.Ranges == nil { r.EncodeNil() } else { - yym1089 := z.EncBinary() - _ = yym1089 + yym1206 := z.EncBinary() + _ = yym1206 if false { } else { h.encSliceIDRange(([]IDRange)(x.Ranges), e) @@ -13086,7 +14317,7 @@ func (x *FSGroupStrategyOptions) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr1085 || yy2arr1085 { + if yyr1202 || yy2arr1202 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -13099,25 +14330,25 @@ func (x *FSGroupStrategyOptions) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1090 := z.DecBinary() - _ = yym1090 + yym1207 := z.DecBinary() + _ = yym1207 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct1091 := r.ContainerType() - if yyct1091 == codecSelferValueTypeMap1234 { - yyl1091 := r.ReadMapStart() - if yyl1091 == 0 { + yyct1208 := r.ContainerType() + if yyct1208 == codecSelferValueTypeMap1234 { + yyl1208 := r.ReadMapStart() + if yyl1208 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl1091, d) + x.codecDecodeSelfFromMap(yyl1208, d) } - } else if yyct1091 == codecSelferValueTypeArray1234 { - yyl1091 := r.ReadArrayStart() - if yyl1091 == 0 { + } else if yyct1208 == codecSelferValueTypeArray1234 { + yyl1208 := r.ReadArrayStart() + if yyl1208 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl1091, d) + x.codecDecodeSelfFromArray(yyl1208, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -13129,12 +14360,12 @@ func (x *FSGroupStrategyOptions) codecDecodeSelfFromMap(l int, d *codec1978.Deco var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys1092Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys1092Slc - var yyhl1092 bool = l >= 0 - for yyj1092 := 0; ; yyj1092++ { - if yyhl1092 { - if yyj1092 >= l { + var yys1209Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys1209Slc + var yyhl1209 bool = l >= 0 + for yyj1209 := 0; ; yyj1209++ { + if yyhl1209 { + if yyj1209 >= l { break } } else { @@ -13143,10 +14374,10 @@ func (x *FSGroupStrategyOptions) codecDecodeSelfFromMap(l int, d *codec1978.Deco } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys1092Slc = r.DecodeBytes(yys1092Slc, true, true) - yys1092 := string(yys1092Slc) + yys1209Slc = r.DecodeBytes(yys1209Slc, true, true) + yys1209 := string(yys1209Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys1092 { + switch yys1209 { case "rule": if r.TryDecodeAsNil() { x.Rule = "" @@ -13157,18 +14388,18 @@ func (x *FSGroupStrategyOptions) codecDecodeSelfFromMap(l int, d *codec1978.Deco if r.TryDecodeAsNil() { x.Ranges = nil } else { - yyv1094 := &x.Ranges - yym1095 := z.DecBinary() - _ = yym1095 + yyv1211 := &x.Ranges + yym1212 := z.DecBinary() + _ = yym1212 if false { } else { - h.decSliceIDRange((*[]IDRange)(yyv1094), d) + h.decSliceIDRange((*[]IDRange)(yyv1211), d) } } default: - z.DecStructFieldNotFound(-1, yys1092) - } // end switch yys1092 - } // end for yyj1092 + z.DecStructFieldNotFound(-1, yys1209) + } // end switch yys1209 + } // end for yyj1209 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -13176,16 +14407,16 @@ func (x *FSGroupStrategyOptions) codecDecodeSelfFromArray(l int, d *codec1978.De var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj1096 int - var yyb1096 bool - var yyhl1096 bool = l >= 0 - yyj1096++ - if yyhl1096 { - yyb1096 = yyj1096 > l + var yyj1213 int + var yyb1213 bool + var yyhl1213 bool = l >= 0 + yyj1213++ + if yyhl1213 { + yyb1213 = yyj1213 > l } else { - yyb1096 = r.CheckBreak() + yyb1213 = r.CheckBreak() } - if yyb1096 { + if yyb1213 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -13195,13 +14426,13 @@ func (x *FSGroupStrategyOptions) codecDecodeSelfFromArray(l int, d *codec1978.De } else { x.Rule = FSGroupStrategyType(r.DecodeString()) } - yyj1096++ - if yyhl1096 { - yyb1096 = yyj1096 > l + yyj1213++ + if yyhl1213 { + yyb1213 = yyj1213 > l } else { - yyb1096 = r.CheckBreak() + yyb1213 = r.CheckBreak() } - if yyb1096 { + if yyb1213 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -13209,26 +14440,26 @@ func (x *FSGroupStrategyOptions) codecDecodeSelfFromArray(l int, d *codec1978.De if r.TryDecodeAsNil() { x.Ranges = nil } else { - yyv1098 := &x.Ranges - yym1099 := z.DecBinary() - _ = yym1099 + yyv1215 := &x.Ranges + yym1216 := z.DecBinary() + _ = yym1216 if false { } else { - h.decSliceIDRange((*[]IDRange)(yyv1098), d) + h.decSliceIDRange((*[]IDRange)(yyv1215), d) } } for { - yyj1096++ - if yyhl1096 { - yyb1096 = yyj1096 > l + yyj1213++ + if yyhl1213 { + yyb1213 = yyj1213 > l } else { - yyb1096 = r.CheckBreak() + yyb1213 = r.CheckBreak() } - if yyb1096 { + if yyb1213 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj1096-1, "") + z.DecStructFieldNotFound(yyj1213-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -13237,8 +14468,8 @@ func (x FSGroupStrategyType) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r - yym1100 := z.EncBinary() - _ = yym1100 + yym1217 := z.EncBinary() + _ = yym1217 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { @@ -13250,8 +14481,8 @@ func (x *FSGroupStrategyType) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1101 := z.DecBinary() - _ = yym1101 + yym1218 := z.DecBinary() + _ = yym1218 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { @@ -13266,54 +14497,54 @@ func (x *SupplementalGroupsStrategyOptions) CodecEncodeSelf(e *codec1978.Encoder if x == nil { r.EncodeNil() } else { - yym1102 := z.EncBinary() - _ = yym1102 + yym1219 := z.EncBinary() + _ = yym1219 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - 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 { + yysep1220 := !z.EncBinary() + yy2arr1220 := z.EncBasicHandle().StructToArray + var yyq1220 [2]bool + _, _, _ = yysep1220, yyq1220, yy2arr1220 + const yyr1220 bool = false + yyq1220[0] = x.Rule != "" + yyq1220[1] = len(x.Ranges) != 0 + var yynn1220 int + if yyr1220 || yy2arr1220 { r.EncodeArrayStart(2) } else { - yynn1103 = 0 - for _, b := range yyq1103 { + yynn1220 = 0 + for _, b := range yyq1220 { if b { - yynn1103++ + yynn1220++ } } - r.EncodeMapStart(yynn1103) - yynn1103 = 0 + r.EncodeMapStart(yynn1220) + yynn1220 = 0 } - if yyr1103 || yy2arr1103 { + if yyr1220 || yy2arr1220 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1103[0] { + if yyq1220[0] { x.Rule.CodecEncodeSelf(e) } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq1103[0] { + if yyq1220[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("rule")) z.EncSendContainerState(codecSelfer_containerMapValue1234) x.Rule.CodecEncodeSelf(e) } } - if yyr1103 || yy2arr1103 { + if yyr1220 || yy2arr1220 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1103[1] { + if yyq1220[1] { if x.Ranges == nil { r.EncodeNil() } else { - yym1106 := z.EncBinary() - _ = yym1106 + yym1223 := z.EncBinary() + _ = yym1223 if false { } else { h.encSliceIDRange(([]IDRange)(x.Ranges), e) @@ -13323,15 +14554,15 @@ func (x *SupplementalGroupsStrategyOptions) CodecEncodeSelf(e *codec1978.Encoder r.EncodeNil() } } else { - if yyq1103[1] { + if yyq1220[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("ranges")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.Ranges == nil { r.EncodeNil() } else { - yym1107 := z.EncBinary() - _ = yym1107 + yym1224 := z.EncBinary() + _ = yym1224 if false { } else { h.encSliceIDRange(([]IDRange)(x.Ranges), e) @@ -13339,7 +14570,7 @@ func (x *SupplementalGroupsStrategyOptions) CodecEncodeSelf(e *codec1978.Encoder } } } - if yyr1103 || yy2arr1103 { + if yyr1220 || yy2arr1220 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -13352,25 +14583,25 @@ func (x *SupplementalGroupsStrategyOptions) CodecDecodeSelf(d *codec1978.Decoder var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1108 := z.DecBinary() - _ = yym1108 + yym1225 := z.DecBinary() + _ = yym1225 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct1109 := r.ContainerType() - if yyct1109 == codecSelferValueTypeMap1234 { - yyl1109 := r.ReadMapStart() - if yyl1109 == 0 { + yyct1226 := r.ContainerType() + if yyct1226 == codecSelferValueTypeMap1234 { + yyl1226 := r.ReadMapStart() + if yyl1226 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl1109, d) + x.codecDecodeSelfFromMap(yyl1226, d) } - } else if yyct1109 == codecSelferValueTypeArray1234 { - yyl1109 := r.ReadArrayStart() - if yyl1109 == 0 { + } else if yyct1226 == codecSelferValueTypeArray1234 { + yyl1226 := r.ReadArrayStart() + if yyl1226 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl1109, d) + x.codecDecodeSelfFromArray(yyl1226, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -13382,12 +14613,12 @@ func (x *SupplementalGroupsStrategyOptions) codecDecodeSelfFromMap(l int, d *cod var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys1110Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys1110Slc - var yyhl1110 bool = l >= 0 - for yyj1110 := 0; ; yyj1110++ { - if yyhl1110 { - if yyj1110 >= l { + 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 { @@ -13396,10 +14627,10 @@ func (x *SupplementalGroupsStrategyOptions) codecDecodeSelfFromMap(l int, d *cod } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys1110Slc = r.DecodeBytes(yys1110Slc, true, true) - yys1110 := string(yys1110Slc) + yys1227Slc = r.DecodeBytes(yys1227Slc, true, true) + yys1227 := string(yys1227Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys1110 { + switch yys1227 { case "rule": if r.TryDecodeAsNil() { x.Rule = "" @@ -13410,18 +14641,18 @@ func (x *SupplementalGroupsStrategyOptions) codecDecodeSelfFromMap(l int, d *cod if r.TryDecodeAsNil() { x.Ranges = nil } else { - yyv1112 := &x.Ranges - yym1113 := z.DecBinary() - _ = yym1113 + yyv1229 := &x.Ranges + yym1230 := z.DecBinary() + _ = yym1230 if false { } else { - h.decSliceIDRange((*[]IDRange)(yyv1112), d) + h.decSliceIDRange((*[]IDRange)(yyv1229), d) } } default: - z.DecStructFieldNotFound(-1, yys1110) - } // end switch yys1110 - } // end for yyj1110 + z.DecStructFieldNotFound(-1, yys1227) + } // end switch yys1227 + } // end for yyj1227 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -13429,16 +14660,16 @@ func (x *SupplementalGroupsStrategyOptions) codecDecodeSelfFromArray(l int, d *c var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj1114 int - var yyb1114 bool - var yyhl1114 bool = l >= 0 - yyj1114++ - if yyhl1114 { - yyb1114 = yyj1114 > l + var yyj1231 int + var yyb1231 bool + var yyhl1231 bool = l >= 0 + yyj1231++ + if yyhl1231 { + yyb1231 = yyj1231 > l } else { - yyb1114 = r.CheckBreak() + yyb1231 = r.CheckBreak() } - if yyb1114 { + if yyb1231 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -13448,13 +14679,13 @@ func (x *SupplementalGroupsStrategyOptions) codecDecodeSelfFromArray(l int, d *c } else { x.Rule = SupplementalGroupsStrategyType(r.DecodeString()) } - yyj1114++ - if yyhl1114 { - yyb1114 = yyj1114 > l + yyj1231++ + if yyhl1231 { + yyb1231 = yyj1231 > l } else { - yyb1114 = r.CheckBreak() + yyb1231 = r.CheckBreak() } - if yyb1114 { + if yyb1231 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -13462,26 +14693,26 @@ func (x *SupplementalGroupsStrategyOptions) codecDecodeSelfFromArray(l int, d *c if r.TryDecodeAsNil() { x.Ranges = nil } else { - yyv1116 := &x.Ranges - yym1117 := z.DecBinary() - _ = yym1117 + yyv1233 := &x.Ranges + yym1234 := z.DecBinary() + _ = yym1234 if false { } else { - h.decSliceIDRange((*[]IDRange)(yyv1116), d) + h.decSliceIDRange((*[]IDRange)(yyv1233), d) } } for { - yyj1114++ - if yyhl1114 { - yyb1114 = yyj1114 > l + yyj1231++ + if yyhl1231 { + yyb1231 = yyj1231 > l } else { - yyb1114 = r.CheckBreak() + yyb1231 = r.CheckBreak() } - if yyb1114 { + if yyb1231 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj1114-1, "") + z.DecStructFieldNotFound(yyj1231-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -13490,8 +14721,8 @@ func (x SupplementalGroupsStrategyType) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r - yym1118 := z.EncBinary() - _ = yym1118 + yym1235 := z.EncBinary() + _ = yym1235 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { @@ -13503,8 +14734,8 @@ func (x *SupplementalGroupsStrategyType) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1119 := z.DecBinary() - _ = yym1119 + yym1236 := z.DecBinary() + _ = yym1236 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { @@ -13519,37 +14750,37 @@ func (x *PodSecurityPolicyList) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1120 := z.EncBinary() - _ = yym1120 + yym1237 := z.EncBinary() + _ = yym1237 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - 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 { + yysep1238 := !z.EncBinary() + yy2arr1238 := z.EncBasicHandle().StructToArray + var yyq1238 [4]bool + _, _, _ = yysep1238, yyq1238, yy2arr1238 + const yyr1238 bool = false + yyq1238[0] = x.Kind != "" + yyq1238[1] = x.APIVersion != "" + yyq1238[2] = true + var yynn1238 int + if yyr1238 || yy2arr1238 { r.EncodeArrayStart(4) } else { - yynn1121 = 1 - for _, b := range yyq1121 { + yynn1238 = 1 + for _, b := range yyq1238 { if b { - yynn1121++ + yynn1238++ } } - r.EncodeMapStart(yynn1121) - yynn1121 = 0 + r.EncodeMapStart(yynn1238) + yynn1238 = 0 } - if yyr1121 || yy2arr1121 { + if yyr1238 || yy2arr1238 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1121[0] { - yym1123 := z.EncBinary() - _ = yym1123 + if yyq1238[0] { + yym1240 := z.EncBinary() + _ = yym1240 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) @@ -13558,23 +14789,23 @@ func (x *PodSecurityPolicyList) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq1121[0] { + if yyq1238[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym1124 := z.EncBinary() - _ = yym1124 + yym1241 := z.EncBinary() + _ = yym1241 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } - if yyr1121 || yy2arr1121 { + if yyr1238 || yy2arr1238 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1121[1] { - yym1126 := z.EncBinary() - _ = yym1126 + if yyq1238[1] { + yym1243 := z.EncBinary() + _ = yym1243 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) @@ -13583,54 +14814,54 @@ func (x *PodSecurityPolicyList) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq1121[1] { + if yyq1238[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym1127 := z.EncBinary() - _ = yym1127 + yym1244 := z.EncBinary() + _ = yym1244 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } - if yyr1121 || yy2arr1121 { + if yyr1238 || yy2arr1238 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1121[2] { - yy1129 := &x.ListMeta - yym1130 := z.EncBinary() - _ = yym1130 + if yyq1238[2] { + yy1246 := &x.ListMeta + yym1247 := z.EncBinary() + _ = yym1247 if false { - } else if z.HasExtensions() && z.EncExt(yy1129) { + } else if z.HasExtensions() && z.EncExt(yy1246) { } else { - z.EncFallback(yy1129) + z.EncFallback(yy1246) } } else { r.EncodeNil() } } else { - if yyq1121[2] { + if yyq1238[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy1131 := &x.ListMeta - yym1132 := z.EncBinary() - _ = yym1132 + yy1248 := &x.ListMeta + yym1249 := z.EncBinary() + _ = yym1249 if false { - } else if z.HasExtensions() && z.EncExt(yy1131) { + } else if z.HasExtensions() && z.EncExt(yy1248) { } else { - z.EncFallback(yy1131) + z.EncFallback(yy1248) } } } - if yyr1121 || yy2arr1121 { + if yyr1238 || yy2arr1238 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.Items == nil { r.EncodeNil() } else { - yym1134 := z.EncBinary() - _ = yym1134 + yym1251 := z.EncBinary() + _ = yym1251 if false { } else { h.encSlicePodSecurityPolicy(([]PodSecurityPolicy)(x.Items), e) @@ -13643,15 +14874,15 @@ func (x *PodSecurityPolicyList) CodecEncodeSelf(e *codec1978.Encoder) { if x.Items == nil { r.EncodeNil() } else { - yym1135 := z.EncBinary() - _ = yym1135 + yym1252 := z.EncBinary() + _ = yym1252 if false { } else { h.encSlicePodSecurityPolicy(([]PodSecurityPolicy)(x.Items), e) } } } - if yyr1121 || yy2arr1121 { + if yyr1238 || yy2arr1238 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -13664,25 +14895,25 @@ func (x *PodSecurityPolicyList) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1136 := z.DecBinary() - _ = yym1136 + yym1253 := z.DecBinary() + _ = yym1253 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct1137 := r.ContainerType() - if yyct1137 == codecSelferValueTypeMap1234 { - yyl1137 := r.ReadMapStart() - if yyl1137 == 0 { + yyct1254 := r.ContainerType() + if yyct1254 == codecSelferValueTypeMap1234 { + yyl1254 := r.ReadMapStart() + if yyl1254 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl1137, d) + x.codecDecodeSelfFromMap(yyl1254, d) } - } else if yyct1137 == codecSelferValueTypeArray1234 { - yyl1137 := r.ReadArrayStart() - if yyl1137 == 0 { + } else if yyct1254 == codecSelferValueTypeArray1234 { + yyl1254 := r.ReadArrayStart() + if yyl1254 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl1137, d) + x.codecDecodeSelfFromArray(yyl1254, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -13694,12 +14925,12 @@ func (x *PodSecurityPolicyList) codecDecodeSelfFromMap(l int, d *codec1978.Decod var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys1138Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys1138Slc - var yyhl1138 bool = l >= 0 - for yyj1138 := 0; ; yyj1138++ { - if yyhl1138 { - if yyj1138 >= l { + var yys1255Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys1255Slc + var yyhl1255 bool = l >= 0 + for yyj1255 := 0; ; yyj1255++ { + if yyhl1255 { + if yyj1255 >= l { break } } else { @@ -13708,10 +14939,10 @@ func (x *PodSecurityPolicyList) codecDecodeSelfFromMap(l int, d *codec1978.Decod } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys1138Slc = r.DecodeBytes(yys1138Slc, true, true) - yys1138 := string(yys1138Slc) + yys1255Slc = r.DecodeBytes(yys1255Slc, true, true) + yys1255 := string(yys1255Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys1138 { + switch yys1255 { case "kind": if r.TryDecodeAsNil() { x.Kind = "" @@ -13728,31 +14959,31 @@ func (x *PodSecurityPolicyList) codecDecodeSelfFromMap(l int, d *codec1978.Decod if r.TryDecodeAsNil() { x.ListMeta = pkg1_unversioned.ListMeta{} } else { - yyv1141 := &x.ListMeta - yym1142 := z.DecBinary() - _ = yym1142 + yyv1258 := &x.ListMeta + yym1259 := z.DecBinary() + _ = yym1259 if false { - } else if z.HasExtensions() && z.DecExt(yyv1141) { + } else if z.HasExtensions() && z.DecExt(yyv1258) { } else { - z.DecFallback(yyv1141, false) + z.DecFallback(yyv1258, false) } } case "items": if r.TryDecodeAsNil() { x.Items = nil } else { - yyv1143 := &x.Items - yym1144 := z.DecBinary() - _ = yym1144 + yyv1260 := &x.Items + yym1261 := z.DecBinary() + _ = yym1261 if false { } else { - h.decSlicePodSecurityPolicy((*[]PodSecurityPolicy)(yyv1143), d) + h.decSlicePodSecurityPolicy((*[]PodSecurityPolicy)(yyv1260), d) } } default: - z.DecStructFieldNotFound(-1, yys1138) - } // end switch yys1138 - } // end for yyj1138 + z.DecStructFieldNotFound(-1, yys1255) + } // end switch yys1255 + } // end for yyj1255 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -13760,16 +14991,16 @@ func (x *PodSecurityPolicyList) codecDecodeSelfFromArray(l int, d *codec1978.Dec var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj1145 int - var yyb1145 bool - var yyhl1145 bool = l >= 0 - yyj1145++ - if yyhl1145 { - yyb1145 = yyj1145 > l + var yyj1262 int + var yyb1262 bool + var yyhl1262 bool = l >= 0 + yyj1262++ + if yyhl1262 { + yyb1262 = yyj1262 > l } else { - yyb1145 = r.CheckBreak() + yyb1262 = r.CheckBreak() } - if yyb1145 { + if yyb1262 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -13779,13 +15010,13 @@ func (x *PodSecurityPolicyList) codecDecodeSelfFromArray(l int, d *codec1978.Dec } else { x.Kind = string(r.DecodeString()) } - yyj1145++ - if yyhl1145 { - yyb1145 = yyj1145 > l + yyj1262++ + if yyhl1262 { + yyb1262 = yyj1262 > l } else { - yyb1145 = r.CheckBreak() + yyb1262 = r.CheckBreak() } - if yyb1145 { + if yyb1262 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -13795,13 +15026,13 @@ func (x *PodSecurityPolicyList) codecDecodeSelfFromArray(l int, d *codec1978.Dec } else { x.APIVersion = string(r.DecodeString()) } - yyj1145++ - if yyhl1145 { - yyb1145 = yyj1145 > l + yyj1262++ + if yyhl1262 { + yyb1262 = yyj1262 > l } else { - yyb1145 = r.CheckBreak() + yyb1262 = r.CheckBreak() } - if yyb1145 { + if yyb1262 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -13809,22 +15040,22 @@ func (x *PodSecurityPolicyList) codecDecodeSelfFromArray(l int, d *codec1978.Dec if r.TryDecodeAsNil() { x.ListMeta = pkg1_unversioned.ListMeta{} } else { - yyv1148 := &x.ListMeta - yym1149 := z.DecBinary() - _ = yym1149 + yyv1265 := &x.ListMeta + yym1266 := z.DecBinary() + _ = yym1266 if false { - } else if z.HasExtensions() && z.DecExt(yyv1148) { + } else if z.HasExtensions() && z.DecExt(yyv1265) { } else { - z.DecFallback(yyv1148, false) + z.DecFallback(yyv1265, false) } } - yyj1145++ - if yyhl1145 { - yyb1145 = yyj1145 > l + yyj1262++ + if yyhl1262 { + yyb1262 = yyj1262 > l } else { - yyb1145 = r.CheckBreak() + yyb1262 = r.CheckBreak() } - if yyb1145 { + if yyb1262 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -13832,26 +15063,26 @@ func (x *PodSecurityPolicyList) codecDecodeSelfFromArray(l int, d *codec1978.Dec if r.TryDecodeAsNil() { x.Items = nil } else { - yyv1150 := &x.Items - yym1151 := z.DecBinary() - _ = yym1151 + yyv1267 := &x.Items + yym1268 := z.DecBinary() + _ = yym1268 if false { } else { - h.decSlicePodSecurityPolicy((*[]PodSecurityPolicy)(yyv1150), d) + h.decSlicePodSecurityPolicy((*[]PodSecurityPolicy)(yyv1267), d) } } for { - yyj1145++ - if yyhl1145 { - yyb1145 = yyj1145 > l + yyj1262++ + if yyhl1262 { + yyb1262 = yyj1262 > l } else { - yyb1145 = r.CheckBreak() + yyb1262 = r.CheckBreak() } - if yyb1145 { + if yyb1262 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj1145-1, "") + z.DecStructFieldNotFound(yyj1262-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -13863,38 +15094,38 @@ func (x *NetworkPolicy) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1152 := z.EncBinary() - _ = yym1152 + yym1269 := z.EncBinary() + _ = yym1269 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - 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 { + yysep1270 := !z.EncBinary() + yy2arr1270 := z.EncBasicHandle().StructToArray + var yyq1270 [4]bool + _, _, _ = yysep1270, yyq1270, yy2arr1270 + const yyr1270 bool = false + yyq1270[0] = x.Kind != "" + yyq1270[1] = x.APIVersion != "" + yyq1270[2] = true + yyq1270[3] = true + var yynn1270 int + if yyr1270 || yy2arr1270 { r.EncodeArrayStart(4) } else { - yynn1153 = 0 - for _, b := range yyq1153 { + yynn1270 = 0 + for _, b := range yyq1270 { if b { - yynn1153++ + yynn1270++ } } - r.EncodeMapStart(yynn1153) - yynn1153 = 0 + r.EncodeMapStart(yynn1270) + yynn1270 = 0 } - if yyr1153 || yy2arr1153 { + if yyr1270 || yy2arr1270 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1153[0] { - yym1155 := z.EncBinary() - _ = yym1155 + if yyq1270[0] { + yym1272 := z.EncBinary() + _ = yym1272 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) @@ -13903,23 +15134,23 @@ func (x *NetworkPolicy) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq1153[0] { + if yyq1270[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym1156 := z.EncBinary() - _ = yym1156 + yym1273 := z.EncBinary() + _ = yym1273 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } - if yyr1153 || yy2arr1153 { + if yyr1270 || yy2arr1270 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1153[1] { - yym1158 := z.EncBinary() - _ = yym1158 + if yyq1270[1] { + yym1275 := z.EncBinary() + _ = yym1275 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) @@ -13928,53 +15159,53 @@ func (x *NetworkPolicy) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq1153[1] { + if yyq1270[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym1159 := z.EncBinary() - _ = yym1159 + yym1276 := z.EncBinary() + _ = yym1276 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } - if yyr1153 || yy2arr1153 { + if yyr1270 || yy2arr1270 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1153[2] { - yy1161 := &x.ObjectMeta - yy1161.CodecEncodeSelf(e) + if yyq1270[2] { + yy1278 := &x.ObjectMeta + yy1278.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { - if yyq1153[2] { + if yyq1270[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy1162 := &x.ObjectMeta - yy1162.CodecEncodeSelf(e) + yy1279 := &x.ObjectMeta + yy1279.CodecEncodeSelf(e) } } - if yyr1153 || yy2arr1153 { + if yyr1270 || yy2arr1270 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1153[3] { - yy1164 := &x.Spec - yy1164.CodecEncodeSelf(e) + if yyq1270[3] { + yy1281 := &x.Spec + yy1281.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { - if yyq1153[3] { + if yyq1270[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("spec")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy1165 := &x.Spec - yy1165.CodecEncodeSelf(e) + yy1282 := &x.Spec + yy1282.CodecEncodeSelf(e) } } - if yyr1153 || yy2arr1153 { + if yyr1270 || yy2arr1270 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -13987,25 +15218,25 @@ func (x *NetworkPolicy) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1166 := z.DecBinary() - _ = yym1166 + yym1283 := z.DecBinary() + _ = yym1283 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct1167 := r.ContainerType() - if yyct1167 == codecSelferValueTypeMap1234 { - yyl1167 := r.ReadMapStart() - if yyl1167 == 0 { + yyct1284 := r.ContainerType() + if yyct1284 == codecSelferValueTypeMap1234 { + yyl1284 := r.ReadMapStart() + if yyl1284 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl1167, d) + x.codecDecodeSelfFromMap(yyl1284, d) } - } else if yyct1167 == codecSelferValueTypeArray1234 { - yyl1167 := r.ReadArrayStart() - if yyl1167 == 0 { + } else if yyct1284 == codecSelferValueTypeArray1234 { + yyl1284 := r.ReadArrayStart() + if yyl1284 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl1167, d) + x.codecDecodeSelfFromArray(yyl1284, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -14017,12 +15248,12 @@ func (x *NetworkPolicy) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys1168Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys1168Slc - var yyhl1168 bool = l >= 0 - for yyj1168 := 0; ; yyj1168++ { - if yyhl1168 { - if yyj1168 >= l { + var yys1285Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys1285Slc + var yyhl1285 bool = l >= 0 + for yyj1285 := 0; ; yyj1285++ { + if yyhl1285 { + if yyj1285 >= l { break } } else { @@ -14031,10 +15262,10 @@ func (x *NetworkPolicy) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys1168Slc = r.DecodeBytes(yys1168Slc, true, true) - yys1168 := string(yys1168Slc) + yys1285Slc = r.DecodeBytes(yys1285Slc, true, true) + yys1285 := string(yys1285Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys1168 { + switch yys1285 { case "kind": if r.TryDecodeAsNil() { x.Kind = "" @@ -14051,20 +15282,20 @@ func (x *NetworkPolicy) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.ObjectMeta = pkg2_api.ObjectMeta{} } else { - yyv1171 := &x.ObjectMeta - yyv1171.CodecDecodeSelf(d) + yyv1288 := &x.ObjectMeta + yyv1288.CodecDecodeSelf(d) } case "spec": if r.TryDecodeAsNil() { x.Spec = NetworkPolicySpec{} } else { - yyv1172 := &x.Spec - yyv1172.CodecDecodeSelf(d) + yyv1289 := &x.Spec + yyv1289.CodecDecodeSelf(d) } default: - z.DecStructFieldNotFound(-1, yys1168) - } // end switch yys1168 - } // end for yyj1168 + z.DecStructFieldNotFound(-1, yys1285) + } // end switch yys1285 + } // end for yyj1285 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -14072,16 +15303,16 @@ func (x *NetworkPolicy) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj1173 int - var yyb1173 bool - var yyhl1173 bool = l >= 0 - yyj1173++ - if yyhl1173 { - yyb1173 = yyj1173 > l + var yyj1290 int + var yyb1290 bool + var yyhl1290 bool = l >= 0 + yyj1290++ + if yyhl1290 { + yyb1290 = yyj1290 > l } else { - yyb1173 = r.CheckBreak() + yyb1290 = r.CheckBreak() } - if yyb1173 { + if yyb1290 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -14091,13 +15322,13 @@ func (x *NetworkPolicy) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.Kind = string(r.DecodeString()) } - yyj1173++ - if yyhl1173 { - yyb1173 = yyj1173 > l + yyj1290++ + if yyhl1290 { + yyb1290 = yyj1290 > l } else { - yyb1173 = r.CheckBreak() + yyb1290 = r.CheckBreak() } - if yyb1173 { + if yyb1290 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -14107,13 +15338,13 @@ func (x *NetworkPolicy) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.APIVersion = string(r.DecodeString()) } - yyj1173++ - if yyhl1173 { - yyb1173 = yyj1173 > l + yyj1290++ + if yyhl1290 { + yyb1290 = yyj1290 > l } else { - yyb1173 = r.CheckBreak() + yyb1290 = r.CheckBreak() } - if yyb1173 { + if yyb1290 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -14121,16 +15352,16 @@ func (x *NetworkPolicy) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.ObjectMeta = pkg2_api.ObjectMeta{} } else { - yyv1176 := &x.ObjectMeta - yyv1176.CodecDecodeSelf(d) + yyv1293 := &x.ObjectMeta + yyv1293.CodecDecodeSelf(d) } - yyj1173++ - if yyhl1173 { - yyb1173 = yyj1173 > l + yyj1290++ + if yyhl1290 { + yyb1290 = yyj1290 > l } else { - yyb1173 = r.CheckBreak() + yyb1290 = r.CheckBreak() } - if yyb1173 { + if yyb1290 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -14138,21 +15369,21 @@ func (x *NetworkPolicy) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.Spec = NetworkPolicySpec{} } else { - yyv1177 := &x.Spec - yyv1177.CodecDecodeSelf(d) + yyv1294 := &x.Spec + yyv1294.CodecDecodeSelf(d) } for { - yyj1173++ - if yyhl1173 { - yyb1173 = yyj1173 > l + yyj1290++ + if yyhl1290 { + yyb1290 = yyj1290 > l } else { - yyb1173 = r.CheckBreak() + yyb1290 = r.CheckBreak() } - if yyb1173 { + if yyb1290 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj1173-1, "") + z.DecStructFieldNotFound(yyj1290-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -14164,61 +15395,61 @@ func (x *NetworkPolicySpec) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1178 := z.EncBinary() - _ = yym1178 + yym1295 := z.EncBinary() + _ = yym1295 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - 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 { + yysep1296 := !z.EncBinary() + yy2arr1296 := z.EncBasicHandle().StructToArray + var yyq1296 [2]bool + _, _, _ = yysep1296, yyq1296, yy2arr1296 + const yyr1296 bool = false + yyq1296[1] = len(x.Ingress) != 0 + var yynn1296 int + if yyr1296 || yy2arr1296 { r.EncodeArrayStart(2) } else { - yynn1179 = 1 - for _, b := range yyq1179 { + yynn1296 = 1 + for _, b := range yyq1296 { if b { - yynn1179++ + yynn1296++ } } - r.EncodeMapStart(yynn1179) - yynn1179 = 0 + r.EncodeMapStart(yynn1296) + yynn1296 = 0 } - if yyr1179 || yy2arr1179 { + if yyr1296 || yy2arr1296 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy1181 := &x.PodSelector - yym1182 := z.EncBinary() - _ = yym1182 + yy1298 := &x.PodSelector + yym1299 := z.EncBinary() + _ = yym1299 if false { - } else if z.HasExtensions() && z.EncExt(yy1181) { + } else if z.HasExtensions() && z.EncExt(yy1298) { } else { - z.EncFallback(yy1181) + z.EncFallback(yy1298) } } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("podSelector")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy1183 := &x.PodSelector - yym1184 := z.EncBinary() - _ = yym1184 + yy1300 := &x.PodSelector + yym1301 := z.EncBinary() + _ = yym1301 if false { - } else if z.HasExtensions() && z.EncExt(yy1183) { + } else if z.HasExtensions() && z.EncExt(yy1300) { } else { - z.EncFallback(yy1183) + z.EncFallback(yy1300) } } - if yyr1179 || yy2arr1179 { + if yyr1296 || yy2arr1296 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1179[1] { + if yyq1296[1] { if x.Ingress == nil { r.EncodeNil() } else { - yym1186 := z.EncBinary() - _ = yym1186 + yym1303 := z.EncBinary() + _ = yym1303 if false { } else { h.encSliceNetworkPolicyIngressRule(([]NetworkPolicyIngressRule)(x.Ingress), e) @@ -14228,15 +15459,15 @@ func (x *NetworkPolicySpec) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq1179[1] { + if yyq1296[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("ingress")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.Ingress == nil { r.EncodeNil() } else { - yym1187 := z.EncBinary() - _ = yym1187 + yym1304 := z.EncBinary() + _ = yym1304 if false { } else { h.encSliceNetworkPolicyIngressRule(([]NetworkPolicyIngressRule)(x.Ingress), e) @@ -14244,7 +15475,7 @@ func (x *NetworkPolicySpec) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr1179 || yy2arr1179 { + if yyr1296 || yy2arr1296 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -14257,25 +15488,25 @@ func (x *NetworkPolicySpec) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1188 := z.DecBinary() - _ = yym1188 + yym1305 := z.DecBinary() + _ = yym1305 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct1189 := r.ContainerType() - if yyct1189 == codecSelferValueTypeMap1234 { - yyl1189 := r.ReadMapStart() - if yyl1189 == 0 { + yyct1306 := r.ContainerType() + if yyct1306 == codecSelferValueTypeMap1234 { + yyl1306 := r.ReadMapStart() + if yyl1306 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl1189, d) + x.codecDecodeSelfFromMap(yyl1306, d) } - } else if yyct1189 == codecSelferValueTypeArray1234 { - yyl1189 := r.ReadArrayStart() - if yyl1189 == 0 { + } else if yyct1306 == codecSelferValueTypeArray1234 { + yyl1306 := r.ReadArrayStart() + if yyl1306 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl1189, d) + x.codecDecodeSelfFromArray(yyl1306, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -14287,12 +15518,12 @@ func (x *NetworkPolicySpec) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys1190Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys1190Slc - var yyhl1190 bool = l >= 0 - for yyj1190 := 0; ; yyj1190++ { - if yyhl1190 { - if yyj1190 >= l { + var yys1307Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys1307Slc + var yyhl1307 bool = l >= 0 + for yyj1307 := 0; ; yyj1307++ { + if yyhl1307 { + if yyj1307 >= l { break } } else { @@ -14301,39 +15532,39 @@ func (x *NetworkPolicySpec) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys1190Slc = r.DecodeBytes(yys1190Slc, true, true) - yys1190 := string(yys1190Slc) + yys1307Slc = r.DecodeBytes(yys1307Slc, true, true) + yys1307 := string(yys1307Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys1190 { + switch yys1307 { case "podSelector": if r.TryDecodeAsNil() { x.PodSelector = pkg1_unversioned.LabelSelector{} } else { - yyv1191 := &x.PodSelector - yym1192 := z.DecBinary() - _ = yym1192 + yyv1308 := &x.PodSelector + yym1309 := z.DecBinary() + _ = yym1309 if false { - } else if z.HasExtensions() && z.DecExt(yyv1191) { + } else if z.HasExtensions() && z.DecExt(yyv1308) { } else { - z.DecFallback(yyv1191, false) + z.DecFallback(yyv1308, false) } } case "ingress": if r.TryDecodeAsNil() { x.Ingress = nil } else { - yyv1193 := &x.Ingress - yym1194 := z.DecBinary() - _ = yym1194 + yyv1310 := &x.Ingress + yym1311 := z.DecBinary() + _ = yym1311 if false { } else { - h.decSliceNetworkPolicyIngressRule((*[]NetworkPolicyIngressRule)(yyv1193), d) + h.decSliceNetworkPolicyIngressRule((*[]NetworkPolicyIngressRule)(yyv1310), d) } } default: - z.DecStructFieldNotFound(-1, yys1190) - } // end switch yys1190 - } // end for yyj1190 + z.DecStructFieldNotFound(-1, yys1307) + } // end switch yys1307 + } // end for yyj1307 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -14341,16 +15572,16 @@ func (x *NetworkPolicySpec) codecDecodeSelfFromArray(l int, d *codec1978.Decoder var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj1195 int - var yyb1195 bool - var yyhl1195 bool = l >= 0 - yyj1195++ - if yyhl1195 { - yyb1195 = yyj1195 > l + var yyj1312 int + var yyb1312 bool + var yyhl1312 bool = l >= 0 + yyj1312++ + if yyhl1312 { + yyb1312 = yyj1312 > l } else { - yyb1195 = r.CheckBreak() + yyb1312 = r.CheckBreak() } - if yyb1195 { + if yyb1312 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -14358,22 +15589,22 @@ func (x *NetworkPolicySpec) codecDecodeSelfFromArray(l int, d *codec1978.Decoder if r.TryDecodeAsNil() { x.PodSelector = pkg1_unversioned.LabelSelector{} } else { - yyv1196 := &x.PodSelector - yym1197 := z.DecBinary() - _ = yym1197 + yyv1313 := &x.PodSelector + yym1314 := z.DecBinary() + _ = yym1314 if false { - } else if z.HasExtensions() && z.DecExt(yyv1196) { + } else if z.HasExtensions() && z.DecExt(yyv1313) { } else { - z.DecFallback(yyv1196, false) + z.DecFallback(yyv1313, false) } } - yyj1195++ - if yyhl1195 { - yyb1195 = yyj1195 > l + yyj1312++ + if yyhl1312 { + yyb1312 = yyj1312 > l } else { - yyb1195 = r.CheckBreak() + yyb1312 = r.CheckBreak() } - if yyb1195 { + if yyb1312 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -14381,26 +15612,26 @@ func (x *NetworkPolicySpec) codecDecodeSelfFromArray(l int, d *codec1978.Decoder if r.TryDecodeAsNil() { x.Ingress = nil } else { - yyv1198 := &x.Ingress - yym1199 := z.DecBinary() - _ = yym1199 + yyv1315 := &x.Ingress + yym1316 := z.DecBinary() + _ = yym1316 if false { } else { - h.decSliceNetworkPolicyIngressRule((*[]NetworkPolicyIngressRule)(yyv1198), d) + h.decSliceNetworkPolicyIngressRule((*[]NetworkPolicyIngressRule)(yyv1315), d) } } for { - yyj1195++ - if yyhl1195 { - yyb1195 = yyj1195 > l + yyj1312++ + if yyhl1312 { + yyb1312 = yyj1312 > l } else { - yyb1195 = r.CheckBreak() + yyb1312 = r.CheckBreak() } - if yyb1195 { + if yyb1312 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj1195-1, "") + z.DecStructFieldNotFound(yyj1312-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -14412,39 +15643,39 @@ func (x *NetworkPolicyIngressRule) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1200 := z.EncBinary() - _ = yym1200 + yym1317 := z.EncBinary() + _ = yym1317 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - 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 { + yysep1318 := !z.EncBinary() + yy2arr1318 := z.EncBasicHandle().StructToArray + var yyq1318 [2]bool + _, _, _ = yysep1318, yyq1318, yy2arr1318 + const yyr1318 bool = false + yyq1318[0] = len(x.Ports) != 0 + yyq1318[1] = len(x.From) != 0 + var yynn1318 int + if yyr1318 || yy2arr1318 { r.EncodeArrayStart(2) } else { - yynn1201 = 0 - for _, b := range yyq1201 { + yynn1318 = 0 + for _, b := range yyq1318 { if b { - yynn1201++ + yynn1318++ } } - r.EncodeMapStart(yynn1201) - yynn1201 = 0 + r.EncodeMapStart(yynn1318) + yynn1318 = 0 } - if yyr1201 || yy2arr1201 { + if yyr1318 || yy2arr1318 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1201[0] { + if yyq1318[0] { if x.Ports == nil { r.EncodeNil() } else { - yym1203 := z.EncBinary() - _ = yym1203 + yym1320 := z.EncBinary() + _ = yym1320 if false { } else { h.encSliceNetworkPolicyPort(([]NetworkPolicyPort)(x.Ports), e) @@ -14454,15 +15685,15 @@ func (x *NetworkPolicyIngressRule) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq1201[0] { + if yyq1318[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("ports")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.Ports == nil { r.EncodeNil() } else { - yym1204 := z.EncBinary() - _ = yym1204 + yym1321 := z.EncBinary() + _ = yym1321 if false { } else { h.encSliceNetworkPolicyPort(([]NetworkPolicyPort)(x.Ports), e) @@ -14470,14 +15701,14 @@ func (x *NetworkPolicyIngressRule) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr1201 || yy2arr1201 { + if yyr1318 || yy2arr1318 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1201[1] { + if yyq1318[1] { if x.From == nil { r.EncodeNil() } else { - yym1206 := z.EncBinary() - _ = yym1206 + yym1323 := z.EncBinary() + _ = yym1323 if false { } else { h.encSliceNetworkPolicyPeer(([]NetworkPolicyPeer)(x.From), e) @@ -14487,15 +15718,15 @@ func (x *NetworkPolicyIngressRule) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq1201[1] { + if yyq1318[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("from")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.From == nil { r.EncodeNil() } else { - yym1207 := z.EncBinary() - _ = yym1207 + yym1324 := z.EncBinary() + _ = yym1324 if false { } else { h.encSliceNetworkPolicyPeer(([]NetworkPolicyPeer)(x.From), e) @@ -14503,7 +15734,7 @@ func (x *NetworkPolicyIngressRule) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr1201 || yy2arr1201 { + if yyr1318 || yy2arr1318 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -14516,25 +15747,25 @@ func (x *NetworkPolicyIngressRule) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1208 := z.DecBinary() - _ = yym1208 + yym1325 := z.DecBinary() + _ = yym1325 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct1209 := r.ContainerType() - if yyct1209 == codecSelferValueTypeMap1234 { - yyl1209 := r.ReadMapStart() - if yyl1209 == 0 { + yyct1326 := r.ContainerType() + if yyct1326 == codecSelferValueTypeMap1234 { + yyl1326 := r.ReadMapStart() + if yyl1326 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl1209, d) + x.codecDecodeSelfFromMap(yyl1326, d) } - } else if yyct1209 == codecSelferValueTypeArray1234 { - yyl1209 := r.ReadArrayStart() - if yyl1209 == 0 { + } else if yyct1326 == codecSelferValueTypeArray1234 { + yyl1326 := r.ReadArrayStart() + if yyl1326 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl1209, d) + x.codecDecodeSelfFromArray(yyl1326, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -14546,12 +15777,12 @@ func (x *NetworkPolicyIngressRule) codecDecodeSelfFromMap(l int, d *codec1978.De var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys1210Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys1210Slc - var yyhl1210 bool = l >= 0 - for yyj1210 := 0; ; yyj1210++ { - if yyhl1210 { - if yyj1210 >= l { + var yys1327Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys1327Slc + var yyhl1327 bool = l >= 0 + for yyj1327 := 0; ; yyj1327++ { + if yyhl1327 { + if yyj1327 >= l { break } } else { @@ -14560,38 +15791,38 @@ func (x *NetworkPolicyIngressRule) codecDecodeSelfFromMap(l int, d *codec1978.De } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys1210Slc = r.DecodeBytes(yys1210Slc, true, true) - yys1210 := string(yys1210Slc) + yys1327Slc = r.DecodeBytes(yys1327Slc, true, true) + yys1327 := string(yys1327Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys1210 { + switch yys1327 { case "ports": if r.TryDecodeAsNil() { x.Ports = nil } else { - yyv1211 := &x.Ports - yym1212 := z.DecBinary() - _ = yym1212 + yyv1328 := &x.Ports + yym1329 := z.DecBinary() + _ = yym1329 if false { } else { - h.decSliceNetworkPolicyPort((*[]NetworkPolicyPort)(yyv1211), d) + h.decSliceNetworkPolicyPort((*[]NetworkPolicyPort)(yyv1328), d) } } case "from": if r.TryDecodeAsNil() { x.From = nil } else { - yyv1213 := &x.From - yym1214 := z.DecBinary() - _ = yym1214 + yyv1330 := &x.From + yym1331 := z.DecBinary() + _ = yym1331 if false { } else { - h.decSliceNetworkPolicyPeer((*[]NetworkPolicyPeer)(yyv1213), d) + h.decSliceNetworkPolicyPeer((*[]NetworkPolicyPeer)(yyv1330), d) } } default: - z.DecStructFieldNotFound(-1, yys1210) - } // end switch yys1210 - } // end for yyj1210 + z.DecStructFieldNotFound(-1, yys1327) + } // end switch yys1327 + } // end for yyj1327 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -14599,16 +15830,16 @@ func (x *NetworkPolicyIngressRule) codecDecodeSelfFromArray(l int, d *codec1978. var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj1215 int - var yyb1215 bool - var yyhl1215 bool = l >= 0 - yyj1215++ - if yyhl1215 { - yyb1215 = yyj1215 > l + var yyj1332 int + var yyb1332 bool + var yyhl1332 bool = l >= 0 + yyj1332++ + if yyhl1332 { + yyb1332 = yyj1332 > l } else { - yyb1215 = r.CheckBreak() + yyb1332 = r.CheckBreak() } - if yyb1215 { + if yyb1332 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -14616,21 +15847,21 @@ func (x *NetworkPolicyIngressRule) codecDecodeSelfFromArray(l int, d *codec1978. if r.TryDecodeAsNil() { x.Ports = nil } else { - yyv1216 := &x.Ports - yym1217 := z.DecBinary() - _ = yym1217 + yyv1333 := &x.Ports + yym1334 := z.DecBinary() + _ = yym1334 if false { } else { - h.decSliceNetworkPolicyPort((*[]NetworkPolicyPort)(yyv1216), d) + h.decSliceNetworkPolicyPort((*[]NetworkPolicyPort)(yyv1333), d) } } - yyj1215++ - if yyhl1215 { - yyb1215 = yyj1215 > l + yyj1332++ + if yyhl1332 { + yyb1332 = yyj1332 > l } else { - yyb1215 = r.CheckBreak() + yyb1332 = r.CheckBreak() } - if yyb1215 { + if yyb1332 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -14638,26 +15869,26 @@ func (x *NetworkPolicyIngressRule) codecDecodeSelfFromArray(l int, d *codec1978. if r.TryDecodeAsNil() { x.From = nil } else { - yyv1218 := &x.From - yym1219 := z.DecBinary() - _ = yym1219 + yyv1335 := &x.From + yym1336 := z.DecBinary() + _ = yym1336 if false { } else { - h.decSliceNetworkPolicyPeer((*[]NetworkPolicyPeer)(yyv1218), d) + h.decSliceNetworkPolicyPeer((*[]NetworkPolicyPeer)(yyv1335), d) } } for { - yyj1215++ - if yyhl1215 { - yyb1215 = yyj1215 > l + yyj1332++ + if yyhl1332 { + yyb1332 = yyj1332 > l } else { - yyb1215 = r.CheckBreak() + yyb1332 = r.CheckBreak() } - if yyb1215 { + if yyb1332 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj1215-1, "") + z.DecStructFieldNotFound(yyj1332-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -14669,79 +15900,79 @@ func (x *NetworkPolicyPort) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1220 := z.EncBinary() - _ = yym1220 + yym1337 := z.EncBinary() + _ = yym1337 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - 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 { + yysep1338 := !z.EncBinary() + yy2arr1338 := z.EncBasicHandle().StructToArray + var yyq1338 [2]bool + _, _, _ = yysep1338, yyq1338, yy2arr1338 + const yyr1338 bool = false + yyq1338[0] = x.Protocol != nil + yyq1338[1] = x.Port != nil + var yynn1338 int + if yyr1338 || yy2arr1338 { r.EncodeArrayStart(2) } else { - yynn1221 = 0 - for _, b := range yyq1221 { + yynn1338 = 0 + for _, b := range yyq1338 { if b { - yynn1221++ + yynn1338++ } } - r.EncodeMapStart(yynn1221) - yynn1221 = 0 + r.EncodeMapStart(yynn1338) + yynn1338 = 0 } - if yyr1221 || yy2arr1221 { + if yyr1338 || yy2arr1338 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1221[0] { + if yyq1338[0] { if x.Protocol == nil { r.EncodeNil() } else { - yy1223 := *x.Protocol - yym1224 := z.EncBinary() - _ = yym1224 + yy1340 := *x.Protocol + yym1341 := z.EncBinary() + _ = yym1341 if false { - } else if z.HasExtensions() && z.EncExt(yy1223) { + } else if z.HasExtensions() && z.EncExt(yy1340) { } else { - r.EncodeString(codecSelferC_UTF81234, string(yy1223)) + r.EncodeString(codecSelferC_UTF81234, string(yy1340)) } } } else { r.EncodeNil() } } else { - if yyq1221[0] { + if yyq1338[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("protocol")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.Protocol == nil { r.EncodeNil() } else { - yy1225 := *x.Protocol - yym1226 := z.EncBinary() - _ = yym1226 + yy1342 := *x.Protocol + yym1343 := z.EncBinary() + _ = yym1343 if false { - } else if z.HasExtensions() && z.EncExt(yy1225) { + } else if z.HasExtensions() && z.EncExt(yy1342) { } else { - r.EncodeString(codecSelferC_UTF81234, string(yy1225)) + r.EncodeString(codecSelferC_UTF81234, string(yy1342)) } } } } - if yyr1221 || yy2arr1221 { + if yyr1338 || yy2arr1338 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1221[1] { + if yyq1338[1] { if x.Port == nil { r.EncodeNil() } else { - yym1228 := z.EncBinary() - _ = yym1228 + yym1345 := z.EncBinary() + _ = yym1345 if false { } else if z.HasExtensions() && z.EncExt(x.Port) { - } else if !yym1228 && z.IsJSONHandle() { + } else if !yym1345 && z.IsJSONHandle() { z.EncJSONMarshal(x.Port) } else { z.EncFallback(x.Port) @@ -14751,18 +15982,18 @@ func (x *NetworkPolicyPort) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq1221[1] { + if yyq1338[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("port")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.Port == nil { r.EncodeNil() } else { - yym1229 := z.EncBinary() - _ = yym1229 + yym1346 := z.EncBinary() + _ = yym1346 if false { } else if z.HasExtensions() && z.EncExt(x.Port) { - } else if !yym1229 && z.IsJSONHandle() { + } else if !yym1346 && z.IsJSONHandle() { z.EncJSONMarshal(x.Port) } else { z.EncFallback(x.Port) @@ -14770,7 +16001,7 @@ func (x *NetworkPolicyPort) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr1221 || yy2arr1221 { + if yyr1338 || yy2arr1338 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -14783,25 +16014,25 @@ func (x *NetworkPolicyPort) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1230 := z.DecBinary() - _ = yym1230 + yym1347 := z.DecBinary() + _ = yym1347 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct1231 := r.ContainerType() - if yyct1231 == codecSelferValueTypeMap1234 { - yyl1231 := r.ReadMapStart() - if yyl1231 == 0 { + yyct1348 := r.ContainerType() + if yyct1348 == codecSelferValueTypeMap1234 { + yyl1348 := r.ReadMapStart() + if yyl1348 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl1231, d) + x.codecDecodeSelfFromMap(yyl1348, d) } - } else if yyct1231 == codecSelferValueTypeArray1234 { - yyl1231 := r.ReadArrayStart() - if yyl1231 == 0 { + } else if yyct1348 == codecSelferValueTypeArray1234 { + yyl1348 := r.ReadArrayStart() + if yyl1348 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl1231, d) + x.codecDecodeSelfFromArray(yyl1348, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -14813,12 +16044,12 @@ func (x *NetworkPolicyPort) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys1232Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys1232Slc - var yyhl1232 bool = l >= 0 - for yyj1232 := 0; ; yyj1232++ { - if yyhl1232 { - if yyj1232 >= 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 { @@ -14827,10 +16058,10 @@ func (x *NetworkPolicyPort) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys1232Slc = r.DecodeBytes(yys1232Slc, true, true) - yys1232 := string(yys1232Slc) + yys1349Slc = r.DecodeBytes(yys1349Slc, true, true) + yys1349 := string(yys1349Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys1232 { + switch yys1349 { case "protocol": if r.TryDecodeAsNil() { if x.Protocol != nil { @@ -14851,20 +16082,20 @@ func (x *NetworkPolicyPort) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) if x.Port == nil { x.Port = new(pkg5_intstr.IntOrString) } - yym1235 := z.DecBinary() - _ = yym1235 + yym1352 := z.DecBinary() + _ = yym1352 if false { } else if z.HasExtensions() && z.DecExt(x.Port) { - } else if !yym1235 && z.IsJSONHandle() { + } else if !yym1352 && z.IsJSONHandle() { z.DecJSONUnmarshal(x.Port) } else { z.DecFallback(x.Port, false) } } default: - z.DecStructFieldNotFound(-1, yys1232) - } // end switch yys1232 - } // end for yyj1232 + z.DecStructFieldNotFound(-1, yys1349) + } // end switch yys1349 + } // end for yyj1349 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -14872,16 +16103,16 @@ func (x *NetworkPolicyPort) codecDecodeSelfFromArray(l int, d *codec1978.Decoder var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj1236 int - var yyb1236 bool - var yyhl1236 bool = l >= 0 - yyj1236++ - if yyhl1236 { - yyb1236 = yyj1236 > l + var yyj1353 int + var yyb1353 bool + var yyhl1353 bool = l >= 0 + yyj1353++ + if yyhl1353 { + yyb1353 = yyj1353 > l } else { - yyb1236 = r.CheckBreak() + yyb1353 = r.CheckBreak() } - if yyb1236 { + if yyb1353 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -14896,13 +16127,13 @@ func (x *NetworkPolicyPort) codecDecodeSelfFromArray(l int, d *codec1978.Decoder } x.Protocol.CodecDecodeSelf(d) } - yyj1236++ - if yyhl1236 { - yyb1236 = yyj1236 > l + yyj1353++ + if yyhl1353 { + yyb1353 = yyj1353 > l } else { - yyb1236 = r.CheckBreak() + yyb1353 = r.CheckBreak() } - if yyb1236 { + if yyb1353 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -14915,28 +16146,28 @@ func (x *NetworkPolicyPort) codecDecodeSelfFromArray(l int, d *codec1978.Decoder if x.Port == nil { x.Port = new(pkg5_intstr.IntOrString) } - yym1239 := z.DecBinary() - _ = yym1239 + yym1356 := z.DecBinary() + _ = yym1356 if false { } else if z.HasExtensions() && z.DecExt(x.Port) { - } else if !yym1239 && z.IsJSONHandle() { + } else if !yym1356 && z.IsJSONHandle() { z.DecJSONUnmarshal(x.Port) } else { z.DecFallback(x.Port, false) } } for { - yyj1236++ - if yyhl1236 { - yyb1236 = yyj1236 > l + yyj1353++ + if yyhl1353 { + yyb1353 = yyj1353 > l } else { - yyb1236 = r.CheckBreak() + yyb1353 = r.CheckBreak() } - if yyb1236 { + if yyb1353 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj1236-1, "") + z.DecStructFieldNotFound(yyj1353-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -14948,39 +16179,39 @@ func (x *NetworkPolicyPeer) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1240 := z.EncBinary() - _ = yym1240 + yym1357 := z.EncBinary() + _ = yym1357 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - 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 { + yysep1358 := !z.EncBinary() + yy2arr1358 := z.EncBasicHandle().StructToArray + var yyq1358 [2]bool + _, _, _ = yysep1358, yyq1358, yy2arr1358 + const yyr1358 bool = false + yyq1358[0] = x.PodSelector != nil + yyq1358[1] = x.NamespaceSelector != nil + var yynn1358 int + if yyr1358 || yy2arr1358 { r.EncodeArrayStart(2) } else { - yynn1241 = 0 - for _, b := range yyq1241 { + yynn1358 = 0 + for _, b := range yyq1358 { if b { - yynn1241++ + yynn1358++ } } - r.EncodeMapStart(yynn1241) - yynn1241 = 0 + r.EncodeMapStart(yynn1358) + yynn1358 = 0 } - if yyr1241 || yy2arr1241 { + if yyr1358 || yy2arr1358 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1241[0] { + if yyq1358[0] { if x.PodSelector == nil { r.EncodeNil() } else { - yym1243 := z.EncBinary() - _ = yym1243 + yym1360 := z.EncBinary() + _ = yym1360 if false { } else if z.HasExtensions() && z.EncExt(x.PodSelector) { } else { @@ -14991,15 +16222,15 @@ func (x *NetworkPolicyPeer) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq1241[0] { + if yyq1358[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("podSelector")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.PodSelector == nil { r.EncodeNil() } else { - yym1244 := z.EncBinary() - _ = yym1244 + yym1361 := z.EncBinary() + _ = yym1361 if false { } else if z.HasExtensions() && z.EncExt(x.PodSelector) { } else { @@ -15008,14 +16239,14 @@ func (x *NetworkPolicyPeer) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr1241 || yy2arr1241 { + if yyr1358 || yy2arr1358 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1241[1] { + if yyq1358[1] { if x.NamespaceSelector == nil { r.EncodeNil() } else { - yym1246 := z.EncBinary() - _ = yym1246 + yym1363 := z.EncBinary() + _ = yym1363 if false { } else if z.HasExtensions() && z.EncExt(x.NamespaceSelector) { } else { @@ -15026,15 +16257,15 @@ func (x *NetworkPolicyPeer) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq1241[1] { + if yyq1358[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("namespaceSelector")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.NamespaceSelector == nil { r.EncodeNil() } else { - yym1247 := z.EncBinary() - _ = yym1247 + yym1364 := z.EncBinary() + _ = yym1364 if false { } else if z.HasExtensions() && z.EncExt(x.NamespaceSelector) { } else { @@ -15043,7 +16274,7 @@ func (x *NetworkPolicyPeer) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr1241 || yy2arr1241 { + if yyr1358 || yy2arr1358 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -15056,25 +16287,25 @@ func (x *NetworkPolicyPeer) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1248 := z.DecBinary() - _ = yym1248 + yym1365 := z.DecBinary() + _ = yym1365 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct1249 := r.ContainerType() - if yyct1249 == codecSelferValueTypeMap1234 { - yyl1249 := r.ReadMapStart() - if yyl1249 == 0 { + yyct1366 := r.ContainerType() + if yyct1366 == codecSelferValueTypeMap1234 { + yyl1366 := r.ReadMapStart() + if yyl1366 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl1249, d) + x.codecDecodeSelfFromMap(yyl1366, d) } - } else if yyct1249 == codecSelferValueTypeArray1234 { - yyl1249 := r.ReadArrayStart() - if yyl1249 == 0 { + } else if yyct1366 == codecSelferValueTypeArray1234 { + yyl1366 := r.ReadArrayStart() + if yyl1366 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl1249, d) + x.codecDecodeSelfFromArray(yyl1366, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -15086,12 +16317,12 @@ func (x *NetworkPolicyPeer) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys1250Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys1250Slc - var yyhl1250 bool = l >= 0 - for yyj1250 := 0; ; yyj1250++ { - if yyhl1250 { - if yyj1250 >= l { + var yys1367Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys1367Slc + var yyhl1367 bool = l >= 0 + for yyj1367 := 0; ; yyj1367++ { + if yyhl1367 { + if yyj1367 >= l { break } } else { @@ -15100,10 +16331,10 @@ func (x *NetworkPolicyPeer) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys1250Slc = r.DecodeBytes(yys1250Slc, true, true) - yys1250 := string(yys1250Slc) + yys1367Slc = r.DecodeBytes(yys1367Slc, true, true) + yys1367 := string(yys1367Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys1250 { + switch yys1367 { case "podSelector": if r.TryDecodeAsNil() { if x.PodSelector != nil { @@ -15113,8 +16344,8 @@ func (x *NetworkPolicyPeer) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) if x.PodSelector == nil { x.PodSelector = new(pkg1_unversioned.LabelSelector) } - yym1252 := z.DecBinary() - _ = yym1252 + yym1369 := z.DecBinary() + _ = yym1369 if false { } else if z.HasExtensions() && z.DecExt(x.PodSelector) { } else { @@ -15130,8 +16361,8 @@ func (x *NetworkPolicyPeer) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) if x.NamespaceSelector == nil { x.NamespaceSelector = new(pkg1_unversioned.LabelSelector) } - yym1254 := z.DecBinary() - _ = yym1254 + yym1371 := z.DecBinary() + _ = yym1371 if false { } else if z.HasExtensions() && z.DecExt(x.NamespaceSelector) { } else { @@ -15139,9 +16370,9 @@ func (x *NetworkPolicyPeer) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) } } default: - z.DecStructFieldNotFound(-1, yys1250) - } // end switch yys1250 - } // end for yyj1250 + z.DecStructFieldNotFound(-1, yys1367) + } // end switch yys1367 + } // end for yyj1367 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -15149,16 +16380,16 @@ func (x *NetworkPolicyPeer) codecDecodeSelfFromArray(l int, d *codec1978.Decoder var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj1255 int - var yyb1255 bool - var yyhl1255 bool = l >= 0 - yyj1255++ - if yyhl1255 { - yyb1255 = yyj1255 > l + var yyj1372 int + var yyb1372 bool + var yyhl1372 bool = l >= 0 + yyj1372++ + if yyhl1372 { + yyb1372 = yyj1372 > l } else { - yyb1255 = r.CheckBreak() + yyb1372 = r.CheckBreak() } - if yyb1255 { + if yyb1372 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -15171,21 +16402,21 @@ func (x *NetworkPolicyPeer) codecDecodeSelfFromArray(l int, d *codec1978.Decoder if x.PodSelector == nil { x.PodSelector = new(pkg1_unversioned.LabelSelector) } - yym1257 := z.DecBinary() - _ = yym1257 + yym1374 := z.DecBinary() + _ = yym1374 if false { } else if z.HasExtensions() && z.DecExt(x.PodSelector) { } else { z.DecFallback(x.PodSelector, false) } } - yyj1255++ - if yyhl1255 { - yyb1255 = yyj1255 > l + yyj1372++ + if yyhl1372 { + yyb1372 = yyj1372 > l } else { - yyb1255 = r.CheckBreak() + yyb1372 = r.CheckBreak() } - if yyb1255 { + if yyb1372 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -15198,8 +16429,8 @@ func (x *NetworkPolicyPeer) codecDecodeSelfFromArray(l int, d *codec1978.Decoder if x.NamespaceSelector == nil { x.NamespaceSelector = new(pkg1_unversioned.LabelSelector) } - yym1259 := z.DecBinary() - _ = yym1259 + yym1376 := z.DecBinary() + _ = yym1376 if false { } else if z.HasExtensions() && z.DecExt(x.NamespaceSelector) { } else { @@ -15207,17 +16438,17 @@ func (x *NetworkPolicyPeer) codecDecodeSelfFromArray(l int, d *codec1978.Decoder } } for { - yyj1255++ - if yyhl1255 { - yyb1255 = yyj1255 > l + yyj1372++ + if yyhl1372 { + yyb1372 = yyj1372 > l } else { - yyb1255 = r.CheckBreak() + yyb1372 = r.CheckBreak() } - if yyb1255 { + if yyb1372 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj1255-1, "") + z.DecStructFieldNotFound(yyj1372-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -15229,37 +16460,37 @@ func (x *NetworkPolicyList) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1260 := z.EncBinary() - _ = yym1260 + yym1377 := z.EncBinary() + _ = yym1377 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - 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 { + yysep1378 := !z.EncBinary() + yy2arr1378 := z.EncBasicHandle().StructToArray + var yyq1378 [4]bool + _, _, _ = yysep1378, yyq1378, yy2arr1378 + const yyr1378 bool = false + yyq1378[0] = x.Kind != "" + yyq1378[1] = x.APIVersion != "" + yyq1378[2] = true + var yynn1378 int + if yyr1378 || yy2arr1378 { r.EncodeArrayStart(4) } else { - yynn1261 = 1 - for _, b := range yyq1261 { + yynn1378 = 1 + for _, b := range yyq1378 { if b { - yynn1261++ + yynn1378++ } } - r.EncodeMapStart(yynn1261) - yynn1261 = 0 + r.EncodeMapStart(yynn1378) + yynn1378 = 0 } - if yyr1261 || yy2arr1261 { + if yyr1378 || yy2arr1378 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1261[0] { - yym1263 := z.EncBinary() - _ = yym1263 + if yyq1378[0] { + yym1380 := z.EncBinary() + _ = yym1380 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) @@ -15268,23 +16499,23 @@ func (x *NetworkPolicyList) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq1261[0] { + if yyq1378[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym1264 := z.EncBinary() - _ = yym1264 + yym1381 := z.EncBinary() + _ = yym1381 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } - if yyr1261 || yy2arr1261 { + if yyr1378 || yy2arr1378 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1261[1] { - yym1266 := z.EncBinary() - _ = yym1266 + if yyq1378[1] { + yym1383 := z.EncBinary() + _ = yym1383 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) @@ -15293,54 +16524,54 @@ func (x *NetworkPolicyList) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq1261[1] { + if yyq1378[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym1267 := z.EncBinary() - _ = yym1267 + yym1384 := z.EncBinary() + _ = yym1384 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } - if yyr1261 || yy2arr1261 { + if yyr1378 || yy2arr1378 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1261[2] { - yy1269 := &x.ListMeta - yym1270 := z.EncBinary() - _ = yym1270 + if yyq1378[2] { + yy1386 := &x.ListMeta + yym1387 := z.EncBinary() + _ = yym1387 if false { - } else if z.HasExtensions() && z.EncExt(yy1269) { + } else if z.HasExtensions() && z.EncExt(yy1386) { } else { - z.EncFallback(yy1269) + z.EncFallback(yy1386) } } else { r.EncodeNil() } } else { - if yyq1261[2] { + if yyq1378[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy1271 := &x.ListMeta - yym1272 := z.EncBinary() - _ = yym1272 + yy1388 := &x.ListMeta + yym1389 := z.EncBinary() + _ = yym1389 if false { - } else if z.HasExtensions() && z.EncExt(yy1271) { + } else if z.HasExtensions() && z.EncExt(yy1388) { } else { - z.EncFallback(yy1271) + z.EncFallback(yy1388) } } } - if yyr1261 || yy2arr1261 { + if yyr1378 || yy2arr1378 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.Items == nil { r.EncodeNil() } else { - yym1274 := z.EncBinary() - _ = yym1274 + yym1391 := z.EncBinary() + _ = yym1391 if false { } else { h.encSliceNetworkPolicy(([]NetworkPolicy)(x.Items), e) @@ -15353,15 +16584,15 @@ func (x *NetworkPolicyList) CodecEncodeSelf(e *codec1978.Encoder) { if x.Items == nil { r.EncodeNil() } else { - yym1275 := z.EncBinary() - _ = yym1275 + yym1392 := z.EncBinary() + _ = yym1392 if false { } else { h.encSliceNetworkPolicy(([]NetworkPolicy)(x.Items), e) } } } - if yyr1261 || yy2arr1261 { + if yyr1378 || yy2arr1378 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -15374,25 +16605,25 @@ func (x *NetworkPolicyList) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1276 := z.DecBinary() - _ = yym1276 + yym1393 := z.DecBinary() + _ = yym1393 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct1277 := r.ContainerType() - if yyct1277 == codecSelferValueTypeMap1234 { - yyl1277 := r.ReadMapStart() - if yyl1277 == 0 { + yyct1394 := r.ContainerType() + if yyct1394 == codecSelferValueTypeMap1234 { + yyl1394 := r.ReadMapStart() + if yyl1394 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl1277, d) + x.codecDecodeSelfFromMap(yyl1394, d) } - } else if yyct1277 == codecSelferValueTypeArray1234 { - yyl1277 := r.ReadArrayStart() - if yyl1277 == 0 { + } else if yyct1394 == codecSelferValueTypeArray1234 { + yyl1394 := r.ReadArrayStart() + if yyl1394 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl1277, d) + x.codecDecodeSelfFromArray(yyl1394, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -15404,12 +16635,12 @@ func (x *NetworkPolicyList) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys1278Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys1278Slc - var yyhl1278 bool = l >= 0 - for yyj1278 := 0; ; yyj1278++ { - if yyhl1278 { - if yyj1278 >= l { + var yys1395Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys1395Slc + var yyhl1395 bool = l >= 0 + for yyj1395 := 0; ; yyj1395++ { + if yyhl1395 { + if yyj1395 >= l { break } } else { @@ -15418,10 +16649,10 @@ func (x *NetworkPolicyList) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys1278Slc = r.DecodeBytes(yys1278Slc, true, true) - yys1278 := string(yys1278Slc) + yys1395Slc = r.DecodeBytes(yys1395Slc, true, true) + yys1395 := string(yys1395Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys1278 { + switch yys1395 { case "kind": if r.TryDecodeAsNil() { x.Kind = "" @@ -15438,31 +16669,31 @@ func (x *NetworkPolicyList) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) if r.TryDecodeAsNil() { x.ListMeta = pkg1_unversioned.ListMeta{} } else { - yyv1281 := &x.ListMeta - yym1282 := z.DecBinary() - _ = yym1282 + yyv1398 := &x.ListMeta + yym1399 := z.DecBinary() + _ = yym1399 if false { - } else if z.HasExtensions() && z.DecExt(yyv1281) { + } else if z.HasExtensions() && z.DecExt(yyv1398) { } else { - z.DecFallback(yyv1281, false) + z.DecFallback(yyv1398, false) } } case "items": if r.TryDecodeAsNil() { x.Items = nil } else { - yyv1283 := &x.Items - yym1284 := z.DecBinary() - _ = yym1284 + yyv1400 := &x.Items + yym1401 := z.DecBinary() + _ = yym1401 if false { } else { - h.decSliceNetworkPolicy((*[]NetworkPolicy)(yyv1283), d) + h.decSliceNetworkPolicy((*[]NetworkPolicy)(yyv1400), d) } } default: - z.DecStructFieldNotFound(-1, yys1278) - } // end switch yys1278 - } // end for yyj1278 + z.DecStructFieldNotFound(-1, yys1395) + } // end switch yys1395 + } // end for yyj1395 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -15470,16 +16701,16 @@ func (x *NetworkPolicyList) codecDecodeSelfFromArray(l int, d *codec1978.Decoder var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj1285 int - var yyb1285 bool - var yyhl1285 bool = l >= 0 - yyj1285++ - if yyhl1285 { - yyb1285 = yyj1285 > l + var yyj1402 int + var yyb1402 bool + var yyhl1402 bool = l >= 0 + yyj1402++ + if yyhl1402 { + yyb1402 = yyj1402 > l } else { - yyb1285 = r.CheckBreak() + yyb1402 = r.CheckBreak() } - if yyb1285 { + if yyb1402 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -15489,13 +16720,13 @@ func (x *NetworkPolicyList) codecDecodeSelfFromArray(l int, d *codec1978.Decoder } else { x.Kind = string(r.DecodeString()) } - yyj1285++ - if yyhl1285 { - yyb1285 = yyj1285 > l + yyj1402++ + if yyhl1402 { + yyb1402 = yyj1402 > l } else { - yyb1285 = r.CheckBreak() + yyb1402 = r.CheckBreak() } - if yyb1285 { + if yyb1402 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -15505,13 +16736,13 @@ func (x *NetworkPolicyList) codecDecodeSelfFromArray(l int, d *codec1978.Decoder } else { x.APIVersion = string(r.DecodeString()) } - yyj1285++ - if yyhl1285 { - yyb1285 = yyj1285 > l + yyj1402++ + if yyhl1402 { + yyb1402 = yyj1402 > l } else { - yyb1285 = r.CheckBreak() + yyb1402 = r.CheckBreak() } - if yyb1285 { + if yyb1402 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -15519,22 +16750,22 @@ func (x *NetworkPolicyList) codecDecodeSelfFromArray(l int, d *codec1978.Decoder if r.TryDecodeAsNil() { x.ListMeta = pkg1_unversioned.ListMeta{} } else { - yyv1288 := &x.ListMeta - yym1289 := z.DecBinary() - _ = yym1289 + yyv1405 := &x.ListMeta + yym1406 := z.DecBinary() + _ = yym1406 if false { - } else if z.HasExtensions() && z.DecExt(yyv1288) { + } else if z.HasExtensions() && z.DecExt(yyv1405) { } else { - z.DecFallback(yyv1288, false) + z.DecFallback(yyv1405, false) } } - yyj1285++ - if yyhl1285 { - yyb1285 = yyj1285 > l + yyj1402++ + if yyhl1402 { + yyb1402 = yyj1402 > l } else { - yyb1285 = r.CheckBreak() + yyb1402 = r.CheckBreak() } - if yyb1285 { + if yyb1402 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -15542,26 +16773,26 @@ func (x *NetworkPolicyList) codecDecodeSelfFromArray(l int, d *codec1978.Decoder if r.TryDecodeAsNil() { x.Items = nil } else { - yyv1290 := &x.Items - yym1291 := z.DecBinary() - _ = yym1291 + yyv1407 := &x.Items + yym1408 := z.DecBinary() + _ = yym1408 if false { } else { - h.decSliceNetworkPolicy((*[]NetworkPolicy)(yyv1290), d) + h.decSliceNetworkPolicy((*[]NetworkPolicy)(yyv1407), d) } } for { - yyj1285++ - if yyhl1285 { - yyb1285 = yyj1285 > l + yyj1402++ + if yyhl1402 { + yyb1402 = yyj1402 > l } else { - yyb1285 = r.CheckBreak() + yyb1402 = r.CheckBreak() } - if yyb1285 { + if yyb1402 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj1285-1, "") + z.DecStructFieldNotFound(yyj1402-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -15571,10 +16802,10 @@ func (x codecSelfer1234) encSliceCustomMetricTarget(v []CustomMetricTarget, e *c z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r r.EncodeArrayStart(len(v)) - for _, yyv1292 := range v { + for _, yyv1409 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy1293 := &yyv1292 - yy1293.CodecEncodeSelf(e) + yy1410 := &yyv1409 + yy1410.CodecEncodeSelf(e) } z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -15584,83 +16815,83 @@ func (x codecSelfer1234) decSliceCustomMetricTarget(v *[]CustomMetricTarget, d * z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yyv1294 := *v - yyh1294, yyl1294 := z.DecSliceHelperStart() - var yyc1294 bool - if yyl1294 == 0 { - if yyv1294 == nil { - yyv1294 = []CustomMetricTarget{} - yyc1294 = true - } else if len(yyv1294) != 0 { - yyv1294 = yyv1294[:0] - yyc1294 = true + yyv1411 := *v + yyh1411, yyl1411 := z.DecSliceHelperStart() + var yyc1411 bool + if yyl1411 == 0 { + if yyv1411 == nil { + yyv1411 = []CustomMetricTarget{} + yyc1411 = true + } else if len(yyv1411) != 0 { + yyv1411 = yyv1411[:0] + yyc1411 = true } - } else if yyl1294 > 0 { - var yyrr1294, yyrl1294 int - var yyrt1294 bool - if yyl1294 > cap(yyv1294) { + } else if yyl1411 > 0 { + var yyrr1411, yyrl1411 int + var yyrt1411 bool + if yyl1411 > cap(yyv1411) { - yyrg1294 := len(yyv1294) > 0 - yyv21294 := yyv1294 - yyrl1294, yyrt1294 = z.DecInferLen(yyl1294, z.DecBasicHandle().MaxInitLen, 72) - if yyrt1294 { - if yyrl1294 <= cap(yyv1294) { - yyv1294 = yyv1294[:yyrl1294] + yyrg1411 := len(yyv1411) > 0 + yyv21411 := yyv1411 + yyrl1411, yyrt1411 = z.DecInferLen(yyl1411, z.DecBasicHandle().MaxInitLen, 72) + if yyrt1411 { + if yyrl1411 <= cap(yyv1411) { + yyv1411 = yyv1411[:yyrl1411] } else { - yyv1294 = make([]CustomMetricTarget, yyrl1294) + yyv1411 = make([]CustomMetricTarget, yyrl1411) } } else { - yyv1294 = make([]CustomMetricTarget, yyrl1294) + yyv1411 = make([]CustomMetricTarget, yyrl1411) } - yyc1294 = true - yyrr1294 = len(yyv1294) - if yyrg1294 { - copy(yyv1294, yyv21294) + yyc1411 = true + yyrr1411 = len(yyv1411) + if yyrg1411 { + copy(yyv1411, yyv21411) } - } else if yyl1294 != len(yyv1294) { - yyv1294 = yyv1294[:yyl1294] - yyc1294 = true + } else if yyl1411 != len(yyv1411) { + yyv1411 = yyv1411[:yyl1411] + yyc1411 = true } - yyj1294 := 0 - for ; yyj1294 < yyrr1294; yyj1294++ { - yyh1294.ElemContainerState(yyj1294) + yyj1411 := 0 + for ; yyj1411 < yyrr1411; yyj1411++ { + yyh1411.ElemContainerState(yyj1411) if r.TryDecodeAsNil() { - yyv1294[yyj1294] = CustomMetricTarget{} + yyv1411[yyj1411] = CustomMetricTarget{} } else { - yyv1295 := &yyv1294[yyj1294] - yyv1295.CodecDecodeSelf(d) + yyv1412 := &yyv1411[yyj1411] + yyv1412.CodecDecodeSelf(d) } } - if yyrt1294 { - for ; yyj1294 < yyl1294; yyj1294++ { - yyv1294 = append(yyv1294, CustomMetricTarget{}) - yyh1294.ElemContainerState(yyj1294) + if yyrt1411 { + for ; yyj1411 < yyl1411; yyj1411++ { + yyv1411 = append(yyv1411, CustomMetricTarget{}) + yyh1411.ElemContainerState(yyj1411) if r.TryDecodeAsNil() { - yyv1294[yyj1294] = CustomMetricTarget{} + yyv1411[yyj1411] = CustomMetricTarget{} } else { - yyv1296 := &yyv1294[yyj1294] - yyv1296.CodecDecodeSelf(d) + yyv1413 := &yyv1411[yyj1411] + yyv1413.CodecDecodeSelf(d) } } } } else { - yyj1294 := 0 - for ; !r.CheckBreak(); yyj1294++ { + yyj1411 := 0 + for ; !r.CheckBreak(); yyj1411++ { - if yyj1294 >= len(yyv1294) { - yyv1294 = append(yyv1294, CustomMetricTarget{}) // var yyz1294 CustomMetricTarget - yyc1294 = true + if yyj1411 >= len(yyv1411) { + yyv1411 = append(yyv1411, CustomMetricTarget{}) // var yyz1411 CustomMetricTarget + yyc1411 = true } - yyh1294.ElemContainerState(yyj1294) - if yyj1294 < len(yyv1294) { + yyh1411.ElemContainerState(yyj1411) + if yyj1411 < len(yyv1411) { if r.TryDecodeAsNil() { - yyv1294[yyj1294] = CustomMetricTarget{} + yyv1411[yyj1411] = CustomMetricTarget{} } else { - yyv1297 := &yyv1294[yyj1294] - yyv1297.CodecDecodeSelf(d) + yyv1414 := &yyv1411[yyj1411] + yyv1414.CodecDecodeSelf(d) } } else { @@ -15668,17 +16899,17 @@ func (x codecSelfer1234) decSliceCustomMetricTarget(v *[]CustomMetricTarget, d * } } - if yyj1294 < len(yyv1294) { - yyv1294 = yyv1294[:yyj1294] - yyc1294 = true - } else if yyj1294 == 0 && yyv1294 == nil { - yyv1294 = []CustomMetricTarget{} - yyc1294 = true + if yyj1411 < len(yyv1411) { + yyv1411 = yyv1411[:yyj1411] + yyc1411 = true + } else if yyj1411 == 0 && yyv1411 == nil { + yyv1411 = []CustomMetricTarget{} + yyc1411 = true } } - yyh1294.End() - if yyc1294 { - *v = yyv1294 + yyh1411.End() + if yyc1411 { + *v = yyv1411 } } @@ -15687,10 +16918,10 @@ func (x codecSelfer1234) encSliceCustomMetricCurrentStatus(v []CustomMetricCurre z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r r.EncodeArrayStart(len(v)) - for _, yyv1298 := range v { + for _, yyv1415 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy1299 := &yyv1298 - yy1299.CodecEncodeSelf(e) + yy1416 := &yyv1415 + yy1416.CodecEncodeSelf(e) } z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -15700,83 +16931,83 @@ func (x codecSelfer1234) decSliceCustomMetricCurrentStatus(v *[]CustomMetricCurr z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yyv1300 := *v - yyh1300, yyl1300 := z.DecSliceHelperStart() - var yyc1300 bool - if yyl1300 == 0 { - if yyv1300 == nil { - yyv1300 = []CustomMetricCurrentStatus{} - yyc1300 = true - } else if len(yyv1300) != 0 { - yyv1300 = yyv1300[:0] - yyc1300 = true + yyv1417 := *v + yyh1417, yyl1417 := z.DecSliceHelperStart() + var yyc1417 bool + if yyl1417 == 0 { + if yyv1417 == nil { + yyv1417 = []CustomMetricCurrentStatus{} + yyc1417 = true + } else if len(yyv1417) != 0 { + yyv1417 = yyv1417[:0] + yyc1417 = true } - } else if yyl1300 > 0 { - var yyrr1300, yyrl1300 int - var yyrt1300 bool - if yyl1300 > cap(yyv1300) { + } else if yyl1417 > 0 { + var yyrr1417, yyrl1417 int + var yyrt1417 bool + if yyl1417 > cap(yyv1417) { - yyrg1300 := len(yyv1300) > 0 - yyv21300 := yyv1300 - yyrl1300, yyrt1300 = z.DecInferLen(yyl1300, z.DecBasicHandle().MaxInitLen, 72) - if yyrt1300 { - if yyrl1300 <= cap(yyv1300) { - yyv1300 = yyv1300[:yyrl1300] + yyrg1417 := len(yyv1417) > 0 + yyv21417 := yyv1417 + yyrl1417, yyrt1417 = z.DecInferLen(yyl1417, z.DecBasicHandle().MaxInitLen, 72) + if yyrt1417 { + if yyrl1417 <= cap(yyv1417) { + yyv1417 = yyv1417[:yyrl1417] } else { - yyv1300 = make([]CustomMetricCurrentStatus, yyrl1300) + yyv1417 = make([]CustomMetricCurrentStatus, yyrl1417) } } else { - yyv1300 = make([]CustomMetricCurrentStatus, yyrl1300) + yyv1417 = make([]CustomMetricCurrentStatus, yyrl1417) } - yyc1300 = true - yyrr1300 = len(yyv1300) - if yyrg1300 { - copy(yyv1300, yyv21300) + yyc1417 = true + yyrr1417 = len(yyv1417) + if yyrg1417 { + copy(yyv1417, yyv21417) } - } else if yyl1300 != len(yyv1300) { - yyv1300 = yyv1300[:yyl1300] - yyc1300 = true + } else if yyl1417 != len(yyv1417) { + yyv1417 = yyv1417[:yyl1417] + yyc1417 = true } - yyj1300 := 0 - for ; yyj1300 < yyrr1300; yyj1300++ { - yyh1300.ElemContainerState(yyj1300) + yyj1417 := 0 + for ; yyj1417 < yyrr1417; yyj1417++ { + yyh1417.ElemContainerState(yyj1417) if r.TryDecodeAsNil() { - yyv1300[yyj1300] = CustomMetricCurrentStatus{} + yyv1417[yyj1417] = CustomMetricCurrentStatus{} } else { - yyv1301 := &yyv1300[yyj1300] - yyv1301.CodecDecodeSelf(d) + yyv1418 := &yyv1417[yyj1417] + yyv1418.CodecDecodeSelf(d) } } - if yyrt1300 { - for ; yyj1300 < yyl1300; yyj1300++ { - yyv1300 = append(yyv1300, CustomMetricCurrentStatus{}) - yyh1300.ElemContainerState(yyj1300) + if yyrt1417 { + for ; yyj1417 < yyl1417; yyj1417++ { + yyv1417 = append(yyv1417, CustomMetricCurrentStatus{}) + yyh1417.ElemContainerState(yyj1417) if r.TryDecodeAsNil() { - yyv1300[yyj1300] = CustomMetricCurrentStatus{} + yyv1417[yyj1417] = CustomMetricCurrentStatus{} } else { - yyv1302 := &yyv1300[yyj1300] - yyv1302.CodecDecodeSelf(d) + yyv1419 := &yyv1417[yyj1417] + yyv1419.CodecDecodeSelf(d) } } } } else { - yyj1300 := 0 - for ; !r.CheckBreak(); yyj1300++ { + yyj1417 := 0 + for ; !r.CheckBreak(); yyj1417++ { - if yyj1300 >= len(yyv1300) { - yyv1300 = append(yyv1300, CustomMetricCurrentStatus{}) // var yyz1300 CustomMetricCurrentStatus - yyc1300 = true + if yyj1417 >= len(yyv1417) { + yyv1417 = append(yyv1417, CustomMetricCurrentStatus{}) // var yyz1417 CustomMetricCurrentStatus + yyc1417 = true } - yyh1300.ElemContainerState(yyj1300) - if yyj1300 < len(yyv1300) { + yyh1417.ElemContainerState(yyj1417) + if yyj1417 < len(yyv1417) { if r.TryDecodeAsNil() { - yyv1300[yyj1300] = CustomMetricCurrentStatus{} + yyv1417[yyj1417] = CustomMetricCurrentStatus{} } else { - yyv1303 := &yyv1300[yyj1300] - yyv1303.CodecDecodeSelf(d) + yyv1420 := &yyv1417[yyj1417] + yyv1420.CodecDecodeSelf(d) } } else { @@ -15784,17 +17015,17 @@ func (x codecSelfer1234) decSliceCustomMetricCurrentStatus(v *[]CustomMetricCurr } } - if yyj1300 < len(yyv1300) { - yyv1300 = yyv1300[:yyj1300] - yyc1300 = true - } else if yyj1300 == 0 && yyv1300 == nil { - yyv1300 = []CustomMetricCurrentStatus{} - yyc1300 = true + if yyj1417 < len(yyv1417) { + yyv1417 = yyv1417[:yyj1417] + yyc1417 = true + } else if yyj1417 == 0 && yyv1417 == nil { + yyv1417 = []CustomMetricCurrentStatus{} + yyc1417 = true } } - yyh1300.End() - if yyc1300 { - *v = yyv1300 + yyh1417.End() + if yyc1417 { + *v = yyv1417 } } @@ -15803,10 +17034,10 @@ func (x codecSelfer1234) encSliceAPIVersion(v []APIVersion, e *codec1978.Encoder z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r r.EncodeArrayStart(len(v)) - for _, yyv1304 := range v { + for _, yyv1421 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy1305 := &yyv1304 - yy1305.CodecEncodeSelf(e) + yy1422 := &yyv1421 + yy1422.CodecEncodeSelf(e) } z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -15816,83 +17047,83 @@ func (x codecSelfer1234) decSliceAPIVersion(v *[]APIVersion, d *codec1978.Decode z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yyv1306 := *v - yyh1306, yyl1306 := z.DecSliceHelperStart() - var yyc1306 bool - if yyl1306 == 0 { - if yyv1306 == nil { - yyv1306 = []APIVersion{} - yyc1306 = true - } else if len(yyv1306) != 0 { - yyv1306 = yyv1306[:0] - yyc1306 = true + yyv1423 := *v + yyh1423, yyl1423 := z.DecSliceHelperStart() + var yyc1423 bool + if yyl1423 == 0 { + if yyv1423 == nil { + yyv1423 = []APIVersion{} + yyc1423 = true + } else if len(yyv1423) != 0 { + yyv1423 = yyv1423[:0] + yyc1423 = true } - } else if yyl1306 > 0 { - var yyrr1306, yyrl1306 int - var yyrt1306 bool - if yyl1306 > cap(yyv1306) { + } else if yyl1423 > 0 { + var yyrr1423, yyrl1423 int + var yyrt1423 bool + if yyl1423 > cap(yyv1423) { - yyrg1306 := len(yyv1306) > 0 - yyv21306 := yyv1306 - yyrl1306, yyrt1306 = z.DecInferLen(yyl1306, z.DecBasicHandle().MaxInitLen, 16) - if yyrt1306 { - if yyrl1306 <= cap(yyv1306) { - yyv1306 = yyv1306[:yyrl1306] + yyrg1423 := len(yyv1423) > 0 + yyv21423 := yyv1423 + yyrl1423, yyrt1423 = z.DecInferLen(yyl1423, z.DecBasicHandle().MaxInitLen, 16) + if yyrt1423 { + if yyrl1423 <= cap(yyv1423) { + yyv1423 = yyv1423[:yyrl1423] } else { - yyv1306 = make([]APIVersion, yyrl1306) + yyv1423 = make([]APIVersion, yyrl1423) } } else { - yyv1306 = make([]APIVersion, yyrl1306) + yyv1423 = make([]APIVersion, yyrl1423) } - yyc1306 = true - yyrr1306 = len(yyv1306) - if yyrg1306 { - copy(yyv1306, yyv21306) + yyc1423 = true + yyrr1423 = len(yyv1423) + if yyrg1423 { + copy(yyv1423, yyv21423) } - } else if yyl1306 != len(yyv1306) { - yyv1306 = yyv1306[:yyl1306] - yyc1306 = true + } else if yyl1423 != len(yyv1423) { + yyv1423 = yyv1423[:yyl1423] + yyc1423 = true } - yyj1306 := 0 - for ; yyj1306 < yyrr1306; yyj1306++ { - yyh1306.ElemContainerState(yyj1306) + yyj1423 := 0 + for ; yyj1423 < yyrr1423; yyj1423++ { + yyh1423.ElemContainerState(yyj1423) if r.TryDecodeAsNil() { - yyv1306[yyj1306] = APIVersion{} + yyv1423[yyj1423] = APIVersion{} } else { - yyv1307 := &yyv1306[yyj1306] - yyv1307.CodecDecodeSelf(d) + yyv1424 := &yyv1423[yyj1423] + yyv1424.CodecDecodeSelf(d) } } - if yyrt1306 { - for ; yyj1306 < yyl1306; yyj1306++ { - yyv1306 = append(yyv1306, APIVersion{}) - yyh1306.ElemContainerState(yyj1306) + if yyrt1423 { + for ; yyj1423 < yyl1423; yyj1423++ { + yyv1423 = append(yyv1423, APIVersion{}) + yyh1423.ElemContainerState(yyj1423) if r.TryDecodeAsNil() { - yyv1306[yyj1306] = APIVersion{} + yyv1423[yyj1423] = APIVersion{} } else { - yyv1308 := &yyv1306[yyj1306] - yyv1308.CodecDecodeSelf(d) + yyv1425 := &yyv1423[yyj1423] + yyv1425.CodecDecodeSelf(d) } } } } else { - yyj1306 := 0 - for ; !r.CheckBreak(); yyj1306++ { + yyj1423 := 0 + for ; !r.CheckBreak(); yyj1423++ { - if yyj1306 >= len(yyv1306) { - yyv1306 = append(yyv1306, APIVersion{}) // var yyz1306 APIVersion - yyc1306 = true + if yyj1423 >= len(yyv1423) { + yyv1423 = append(yyv1423, APIVersion{}) // var yyz1423 APIVersion + yyc1423 = true } - yyh1306.ElemContainerState(yyj1306) - if yyj1306 < len(yyv1306) { + yyh1423.ElemContainerState(yyj1423) + if yyj1423 < len(yyv1423) { if r.TryDecodeAsNil() { - yyv1306[yyj1306] = APIVersion{} + yyv1423[yyj1423] = APIVersion{} } else { - yyv1309 := &yyv1306[yyj1306] - yyv1309.CodecDecodeSelf(d) + yyv1426 := &yyv1423[yyj1423] + yyv1426.CodecDecodeSelf(d) } } else { @@ -15900,17 +17131,17 @@ func (x codecSelfer1234) decSliceAPIVersion(v *[]APIVersion, d *codec1978.Decode } } - if yyj1306 < len(yyv1306) { - yyv1306 = yyv1306[:yyj1306] - yyc1306 = true - } else if yyj1306 == 0 && yyv1306 == nil { - yyv1306 = []APIVersion{} - yyc1306 = true + if yyj1423 < len(yyv1423) { + yyv1423 = yyv1423[:yyj1423] + yyc1423 = true + } else if yyj1423 == 0 && yyv1423 == nil { + yyv1423 = []APIVersion{} + yyc1423 = true } } - yyh1306.End() - if yyc1306 { - *v = yyv1306 + yyh1423.End() + if yyc1423 { + *v = yyv1423 } } @@ -15919,10 +17150,10 @@ func (x codecSelfer1234) encSliceThirdPartyResource(v []ThirdPartyResource, e *c z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r r.EncodeArrayStart(len(v)) - for _, yyv1310 := range v { + for _, yyv1427 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy1311 := &yyv1310 - yy1311.CodecEncodeSelf(e) + yy1428 := &yyv1427 + yy1428.CodecEncodeSelf(e) } z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -15932,83 +17163,83 @@ func (x codecSelfer1234) decSliceThirdPartyResource(v *[]ThirdPartyResource, d * z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yyv1312 := *v - yyh1312, yyl1312 := z.DecSliceHelperStart() - var yyc1312 bool - if yyl1312 == 0 { - if yyv1312 == nil { - yyv1312 = []ThirdPartyResource{} - yyc1312 = true - } else if len(yyv1312) != 0 { - yyv1312 = yyv1312[:0] - yyc1312 = true + yyv1429 := *v + yyh1429, yyl1429 := z.DecSliceHelperStart() + var yyc1429 bool + if yyl1429 == 0 { + if yyv1429 == nil { + yyv1429 = []ThirdPartyResource{} + yyc1429 = true + } else if len(yyv1429) != 0 { + yyv1429 = yyv1429[:0] + yyc1429 = true } - } else if yyl1312 > 0 { - var yyrr1312, yyrl1312 int - var yyrt1312 bool - if yyl1312 > cap(yyv1312) { + } else if yyl1429 > 0 { + var yyrr1429, yyrl1429 int + var yyrt1429 bool + if yyl1429 > cap(yyv1429) { - yyrg1312 := len(yyv1312) > 0 - yyv21312 := yyv1312 - yyrl1312, yyrt1312 = z.DecInferLen(yyl1312, z.DecBasicHandle().MaxInitLen, 296) - if yyrt1312 { - if yyrl1312 <= cap(yyv1312) { - yyv1312 = yyv1312[:yyrl1312] + yyrg1429 := len(yyv1429) > 0 + yyv21429 := yyv1429 + yyrl1429, yyrt1429 = z.DecInferLen(yyl1429, z.DecBasicHandle().MaxInitLen, 296) + if yyrt1429 { + if yyrl1429 <= cap(yyv1429) { + yyv1429 = yyv1429[:yyrl1429] } else { - yyv1312 = make([]ThirdPartyResource, yyrl1312) + yyv1429 = make([]ThirdPartyResource, yyrl1429) } } else { - yyv1312 = make([]ThirdPartyResource, yyrl1312) + yyv1429 = make([]ThirdPartyResource, yyrl1429) } - yyc1312 = true - yyrr1312 = len(yyv1312) - if yyrg1312 { - copy(yyv1312, yyv21312) + yyc1429 = true + yyrr1429 = len(yyv1429) + if yyrg1429 { + copy(yyv1429, yyv21429) } - } else if yyl1312 != len(yyv1312) { - yyv1312 = yyv1312[:yyl1312] - yyc1312 = true + } else if yyl1429 != len(yyv1429) { + yyv1429 = yyv1429[:yyl1429] + yyc1429 = true } - yyj1312 := 0 - for ; yyj1312 < yyrr1312; yyj1312++ { - yyh1312.ElemContainerState(yyj1312) + yyj1429 := 0 + for ; yyj1429 < yyrr1429; yyj1429++ { + yyh1429.ElemContainerState(yyj1429) if r.TryDecodeAsNil() { - yyv1312[yyj1312] = ThirdPartyResource{} + yyv1429[yyj1429] = ThirdPartyResource{} } else { - yyv1313 := &yyv1312[yyj1312] - yyv1313.CodecDecodeSelf(d) + yyv1430 := &yyv1429[yyj1429] + yyv1430.CodecDecodeSelf(d) } } - if yyrt1312 { - for ; yyj1312 < yyl1312; yyj1312++ { - yyv1312 = append(yyv1312, ThirdPartyResource{}) - yyh1312.ElemContainerState(yyj1312) + if yyrt1429 { + for ; yyj1429 < yyl1429; yyj1429++ { + yyv1429 = append(yyv1429, ThirdPartyResource{}) + yyh1429.ElemContainerState(yyj1429) if r.TryDecodeAsNil() { - yyv1312[yyj1312] = ThirdPartyResource{} + yyv1429[yyj1429] = ThirdPartyResource{} } else { - yyv1314 := &yyv1312[yyj1312] - yyv1314.CodecDecodeSelf(d) + yyv1431 := &yyv1429[yyj1429] + yyv1431.CodecDecodeSelf(d) } } } } else { - yyj1312 := 0 - for ; !r.CheckBreak(); yyj1312++ { + yyj1429 := 0 + for ; !r.CheckBreak(); yyj1429++ { - if yyj1312 >= len(yyv1312) { - yyv1312 = append(yyv1312, ThirdPartyResource{}) // var yyz1312 ThirdPartyResource - yyc1312 = true + if yyj1429 >= len(yyv1429) { + yyv1429 = append(yyv1429, ThirdPartyResource{}) // var yyz1429 ThirdPartyResource + yyc1429 = true } - yyh1312.ElemContainerState(yyj1312) - if yyj1312 < len(yyv1312) { + yyh1429.ElemContainerState(yyj1429) + if yyj1429 < len(yyv1429) { if r.TryDecodeAsNil() { - yyv1312[yyj1312] = ThirdPartyResource{} + yyv1429[yyj1429] = ThirdPartyResource{} } else { - yyv1315 := &yyv1312[yyj1312] - yyv1315.CodecDecodeSelf(d) + yyv1432 := &yyv1429[yyj1429] + yyv1432.CodecDecodeSelf(d) } } else { @@ -16016,17 +17247,133 @@ func (x codecSelfer1234) decSliceThirdPartyResource(v *[]ThirdPartyResource, d * } } - if yyj1312 < len(yyv1312) { - yyv1312 = yyv1312[:yyj1312] - yyc1312 = true - } else if yyj1312 == 0 && yyv1312 == nil { - yyv1312 = []ThirdPartyResource{} - yyc1312 = true + if yyj1429 < len(yyv1429) { + yyv1429 = yyv1429[:yyj1429] + yyc1429 = true + } else if yyj1429 == 0 && yyv1429 == nil { + yyv1429 = []ThirdPartyResource{} + yyc1429 = true } } - yyh1312.End() - if yyc1312 { - *v = yyv1312 + yyh1429.End() + if yyc1429 { + *v = yyv1429 + } +} + +func (x codecSelfer1234) encSliceDeploymentCondition(v []DeploymentCondition, e *codec1978.Encoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + r.EncodeArrayStart(len(v)) + for _, yyv1433 := range v { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yy1434 := &yyv1433 + yy1434.CodecEncodeSelf(e) + } + z.EncSendContainerState(codecSelfer_containerArrayEnd1234) +} + +func (x codecSelfer1234) decSliceDeploymentCondition(v *[]DeploymentCondition, d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + + yyv1435 := *v + yyh1435, yyl1435 := z.DecSliceHelperStart() + var yyc1435 bool + if yyl1435 == 0 { + if yyv1435 == nil { + yyv1435 = []DeploymentCondition{} + yyc1435 = true + } else if len(yyv1435) != 0 { + yyv1435 = yyv1435[:0] + yyc1435 = true + } + } else if yyl1435 > 0 { + var yyrr1435, yyrl1435 int + var yyrt1435 bool + if yyl1435 > cap(yyv1435) { + + yyrg1435 := len(yyv1435) > 0 + yyv21435 := yyv1435 + yyrl1435, yyrt1435 = z.DecInferLen(yyl1435, z.DecBasicHandle().MaxInitLen, 112) + if yyrt1435 { + if yyrl1435 <= cap(yyv1435) { + yyv1435 = yyv1435[:yyrl1435] + } else { + yyv1435 = make([]DeploymentCondition, yyrl1435) + } + } else { + yyv1435 = make([]DeploymentCondition, yyrl1435) + } + yyc1435 = true + yyrr1435 = len(yyv1435) + if yyrg1435 { + copy(yyv1435, yyv21435) + } + } else if yyl1435 != len(yyv1435) { + yyv1435 = yyv1435[:yyl1435] + yyc1435 = true + } + yyj1435 := 0 + for ; yyj1435 < yyrr1435; yyj1435++ { + yyh1435.ElemContainerState(yyj1435) + if r.TryDecodeAsNil() { + yyv1435[yyj1435] = DeploymentCondition{} + } else { + yyv1436 := &yyv1435[yyj1435] + yyv1436.CodecDecodeSelf(d) + } + + } + if yyrt1435 { + for ; yyj1435 < yyl1435; yyj1435++ { + yyv1435 = append(yyv1435, DeploymentCondition{}) + yyh1435.ElemContainerState(yyj1435) + if r.TryDecodeAsNil() { + yyv1435[yyj1435] = DeploymentCondition{} + } else { + yyv1437 := &yyv1435[yyj1435] + yyv1437.CodecDecodeSelf(d) + } + + } + } + + } else { + yyj1435 := 0 + for ; !r.CheckBreak(); yyj1435++ { + + if yyj1435 >= len(yyv1435) { + yyv1435 = append(yyv1435, DeploymentCondition{}) // var yyz1435 DeploymentCondition + yyc1435 = true + } + yyh1435.ElemContainerState(yyj1435) + if yyj1435 < len(yyv1435) { + if r.TryDecodeAsNil() { + yyv1435[yyj1435] = DeploymentCondition{} + } else { + yyv1438 := &yyv1435[yyj1435] + yyv1438.CodecDecodeSelf(d) + } + + } else { + z.DecSwallow() + } + + } + if yyj1435 < len(yyv1435) { + yyv1435 = yyv1435[:yyj1435] + yyc1435 = true + } else if yyj1435 == 0 && yyv1435 == nil { + yyv1435 = []DeploymentCondition{} + yyc1435 = true + } + } + yyh1435.End() + if yyc1435 { + *v = yyv1435 } } @@ -16035,10 +17382,10 @@ func (x codecSelfer1234) encSliceDeployment(v []Deployment, e *codec1978.Encoder z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r r.EncodeArrayStart(len(v)) - for _, yyv1316 := range v { + for _, yyv1439 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy1317 := &yyv1316 - yy1317.CodecEncodeSelf(e) + yy1440 := &yyv1439 + yy1440.CodecEncodeSelf(e) } z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -16048,83 +17395,83 @@ func (x codecSelfer1234) decSliceDeployment(v *[]Deployment, d *codec1978.Decode z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yyv1318 := *v - yyh1318, yyl1318 := z.DecSliceHelperStart() - var yyc1318 bool - if yyl1318 == 0 { - if yyv1318 == nil { - yyv1318 = []Deployment{} - yyc1318 = true - } else if len(yyv1318) != 0 { - yyv1318 = yyv1318[:0] - yyc1318 = true + yyv1441 := *v + yyh1441, yyl1441 := z.DecSliceHelperStart() + var yyc1441 bool + if yyl1441 == 0 { + if yyv1441 == nil { + yyv1441 = []Deployment{} + yyc1441 = true + } else if len(yyv1441) != 0 { + yyv1441 = yyv1441[:0] + yyc1441 = true } - } else if yyl1318 > 0 { - var yyrr1318, yyrl1318 int - var yyrt1318 bool - if yyl1318 > cap(yyv1318) { + } else if yyl1441 > 0 { + var yyrr1441, yyrl1441 int + var yyrt1441 bool + if yyl1441 > cap(yyv1441) { - yyrg1318 := len(yyv1318) > 0 - yyv21318 := yyv1318 - yyrl1318, yyrt1318 = z.DecInferLen(yyl1318, z.DecBasicHandle().MaxInitLen, 800) - if yyrt1318 { - if yyrl1318 <= cap(yyv1318) { - yyv1318 = yyv1318[:yyrl1318] + yyrg1441 := len(yyv1441) > 0 + yyv21441 := yyv1441 + yyrl1441, yyrt1441 = z.DecInferLen(yyl1441, z.DecBasicHandle().MaxInitLen, 832) + if yyrt1441 { + if yyrl1441 <= cap(yyv1441) { + yyv1441 = yyv1441[:yyrl1441] } else { - yyv1318 = make([]Deployment, yyrl1318) + yyv1441 = make([]Deployment, yyrl1441) } } else { - yyv1318 = make([]Deployment, yyrl1318) + yyv1441 = make([]Deployment, yyrl1441) } - yyc1318 = true - yyrr1318 = len(yyv1318) - if yyrg1318 { - copy(yyv1318, yyv21318) + yyc1441 = true + yyrr1441 = len(yyv1441) + if yyrg1441 { + copy(yyv1441, yyv21441) } - } else if yyl1318 != len(yyv1318) { - yyv1318 = yyv1318[:yyl1318] - yyc1318 = true + } else if yyl1441 != len(yyv1441) { + yyv1441 = yyv1441[:yyl1441] + yyc1441 = true } - yyj1318 := 0 - for ; yyj1318 < yyrr1318; yyj1318++ { - yyh1318.ElemContainerState(yyj1318) + yyj1441 := 0 + for ; yyj1441 < yyrr1441; yyj1441++ { + yyh1441.ElemContainerState(yyj1441) if r.TryDecodeAsNil() { - yyv1318[yyj1318] = Deployment{} + yyv1441[yyj1441] = Deployment{} } else { - yyv1319 := &yyv1318[yyj1318] - yyv1319.CodecDecodeSelf(d) + yyv1442 := &yyv1441[yyj1441] + yyv1442.CodecDecodeSelf(d) } } - if yyrt1318 { - for ; yyj1318 < yyl1318; yyj1318++ { - yyv1318 = append(yyv1318, Deployment{}) - yyh1318.ElemContainerState(yyj1318) + if yyrt1441 { + for ; yyj1441 < yyl1441; yyj1441++ { + yyv1441 = append(yyv1441, Deployment{}) + yyh1441.ElemContainerState(yyj1441) if r.TryDecodeAsNil() { - yyv1318[yyj1318] = Deployment{} + yyv1441[yyj1441] = Deployment{} } else { - yyv1320 := &yyv1318[yyj1318] - yyv1320.CodecDecodeSelf(d) + yyv1443 := &yyv1441[yyj1441] + yyv1443.CodecDecodeSelf(d) } } } } else { - yyj1318 := 0 - for ; !r.CheckBreak(); yyj1318++ { + yyj1441 := 0 + for ; !r.CheckBreak(); yyj1441++ { - if yyj1318 >= len(yyv1318) { - yyv1318 = append(yyv1318, Deployment{}) // var yyz1318 Deployment - yyc1318 = true + if yyj1441 >= len(yyv1441) { + yyv1441 = append(yyv1441, Deployment{}) // var yyz1441 Deployment + yyc1441 = true } - yyh1318.ElemContainerState(yyj1318) - if yyj1318 < len(yyv1318) { + yyh1441.ElemContainerState(yyj1441) + if yyj1441 < len(yyv1441) { if r.TryDecodeAsNil() { - yyv1318[yyj1318] = Deployment{} + yyv1441[yyj1441] = Deployment{} } else { - yyv1321 := &yyv1318[yyj1318] - yyv1321.CodecDecodeSelf(d) + yyv1444 := &yyv1441[yyj1441] + yyv1444.CodecDecodeSelf(d) } } else { @@ -16132,17 +17479,17 @@ func (x codecSelfer1234) decSliceDeployment(v *[]Deployment, d *codec1978.Decode } } - if yyj1318 < len(yyv1318) { - yyv1318 = yyv1318[:yyj1318] - yyc1318 = true - } else if yyj1318 == 0 && yyv1318 == nil { - yyv1318 = []Deployment{} - yyc1318 = true + if yyj1441 < len(yyv1441) { + yyv1441 = yyv1441[:yyj1441] + yyc1441 = true + } else if yyj1441 == 0 && yyv1441 == nil { + yyv1441 = []Deployment{} + yyc1441 = true } } - yyh1318.End() - if yyc1318 { - *v = yyv1318 + yyh1441.End() + if yyc1441 { + *v = yyv1441 } } @@ -16151,10 +17498,10 @@ func (x codecSelfer1234) encSliceDaemonSet(v []DaemonSet, e *codec1978.Encoder) z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r r.EncodeArrayStart(len(v)) - for _, yyv1322 := range v { + for _, yyv1445 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy1323 := &yyv1322 - yy1323.CodecEncodeSelf(e) + yy1446 := &yyv1445 + yy1446.CodecEncodeSelf(e) } z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -16164,83 +17511,83 @@ func (x codecSelfer1234) decSliceDaemonSet(v *[]DaemonSet, d *codec1978.Decoder) z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yyv1324 := *v - yyh1324, yyl1324 := z.DecSliceHelperStart() - var yyc1324 bool - if yyl1324 == 0 { - if yyv1324 == nil { - yyv1324 = []DaemonSet{} - yyc1324 = true - } else if len(yyv1324) != 0 { - yyv1324 = yyv1324[:0] - yyc1324 = true + yyv1447 := *v + yyh1447, yyl1447 := z.DecSliceHelperStart() + var yyc1447 bool + if yyl1447 == 0 { + if yyv1447 == nil { + yyv1447 = []DaemonSet{} + yyc1447 = true + } else if len(yyv1447) != 0 { + yyv1447 = yyv1447[:0] + yyc1447 = true } - } else if yyl1324 > 0 { - var yyrr1324, yyrl1324 int - var yyrt1324 bool - if yyl1324 > cap(yyv1324) { + } else if yyl1447 > 0 { + var yyrr1447, yyrl1447 int + var yyrt1447 bool + if yyl1447 > cap(yyv1447) { - yyrg1324 := len(yyv1324) > 0 - yyv21324 := yyv1324 - yyrl1324, yyrt1324 = z.DecInferLen(yyl1324, z.DecBasicHandle().MaxInitLen, 728) - if yyrt1324 { - if yyrl1324 <= cap(yyv1324) { - yyv1324 = yyv1324[:yyrl1324] + yyrg1447 := len(yyv1447) > 0 + yyv21447 := yyv1447 + yyrl1447, yyrt1447 = z.DecInferLen(yyl1447, z.DecBasicHandle().MaxInitLen, 728) + if yyrt1447 { + if yyrl1447 <= cap(yyv1447) { + yyv1447 = yyv1447[:yyrl1447] } else { - yyv1324 = make([]DaemonSet, yyrl1324) + yyv1447 = make([]DaemonSet, yyrl1447) } } else { - yyv1324 = make([]DaemonSet, yyrl1324) + yyv1447 = make([]DaemonSet, yyrl1447) } - yyc1324 = true - yyrr1324 = len(yyv1324) - if yyrg1324 { - copy(yyv1324, yyv21324) + yyc1447 = true + yyrr1447 = len(yyv1447) + if yyrg1447 { + copy(yyv1447, yyv21447) } - } else if yyl1324 != len(yyv1324) { - yyv1324 = yyv1324[:yyl1324] - yyc1324 = true + } else if yyl1447 != len(yyv1447) { + yyv1447 = yyv1447[:yyl1447] + yyc1447 = true } - yyj1324 := 0 - for ; yyj1324 < yyrr1324; yyj1324++ { - yyh1324.ElemContainerState(yyj1324) + yyj1447 := 0 + for ; yyj1447 < yyrr1447; yyj1447++ { + yyh1447.ElemContainerState(yyj1447) if r.TryDecodeAsNil() { - yyv1324[yyj1324] = DaemonSet{} + yyv1447[yyj1447] = DaemonSet{} } else { - yyv1325 := &yyv1324[yyj1324] - yyv1325.CodecDecodeSelf(d) + yyv1448 := &yyv1447[yyj1447] + yyv1448.CodecDecodeSelf(d) } } - if yyrt1324 { - for ; yyj1324 < yyl1324; yyj1324++ { - yyv1324 = append(yyv1324, DaemonSet{}) - yyh1324.ElemContainerState(yyj1324) + if yyrt1447 { + for ; yyj1447 < yyl1447; yyj1447++ { + yyv1447 = append(yyv1447, DaemonSet{}) + yyh1447.ElemContainerState(yyj1447) if r.TryDecodeAsNil() { - yyv1324[yyj1324] = DaemonSet{} + yyv1447[yyj1447] = DaemonSet{} } else { - yyv1326 := &yyv1324[yyj1324] - yyv1326.CodecDecodeSelf(d) + yyv1449 := &yyv1447[yyj1447] + yyv1449.CodecDecodeSelf(d) } } } } else { - yyj1324 := 0 - for ; !r.CheckBreak(); yyj1324++ { + yyj1447 := 0 + for ; !r.CheckBreak(); yyj1447++ { - if yyj1324 >= len(yyv1324) { - yyv1324 = append(yyv1324, DaemonSet{}) // var yyz1324 DaemonSet - yyc1324 = true + if yyj1447 >= len(yyv1447) { + yyv1447 = append(yyv1447, DaemonSet{}) // var yyz1447 DaemonSet + yyc1447 = true } - yyh1324.ElemContainerState(yyj1324) - if yyj1324 < len(yyv1324) { + yyh1447.ElemContainerState(yyj1447) + if yyj1447 < len(yyv1447) { if r.TryDecodeAsNil() { - yyv1324[yyj1324] = DaemonSet{} + yyv1447[yyj1447] = DaemonSet{} } else { - yyv1327 := &yyv1324[yyj1324] - yyv1327.CodecDecodeSelf(d) + yyv1450 := &yyv1447[yyj1447] + yyv1450.CodecDecodeSelf(d) } } else { @@ -16248,17 +17595,17 @@ func (x codecSelfer1234) decSliceDaemonSet(v *[]DaemonSet, d *codec1978.Decoder) } } - if yyj1324 < len(yyv1324) { - yyv1324 = yyv1324[:yyj1324] - yyc1324 = true - } else if yyj1324 == 0 && yyv1324 == nil { - yyv1324 = []DaemonSet{} - yyc1324 = true + if yyj1447 < len(yyv1447) { + yyv1447 = yyv1447[:yyj1447] + yyc1447 = true + } else if yyj1447 == 0 && yyv1447 == nil { + yyv1447 = []DaemonSet{} + yyc1447 = true } } - yyh1324.End() - if yyc1324 { - *v = yyv1324 + yyh1447.End() + if yyc1447 { + *v = yyv1447 } } @@ -16267,10 +17614,10 @@ func (x codecSelfer1234) encSliceThirdPartyResourceData(v []ThirdPartyResourceDa z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r r.EncodeArrayStart(len(v)) - for _, yyv1328 := range v { + for _, yyv1451 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy1329 := &yyv1328 - yy1329.CodecEncodeSelf(e) + yy1452 := &yyv1451 + yy1452.CodecEncodeSelf(e) } z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -16280,83 +17627,83 @@ func (x codecSelfer1234) decSliceThirdPartyResourceData(v *[]ThirdPartyResourceD z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yyv1330 := *v - yyh1330, yyl1330 := z.DecSliceHelperStart() - var yyc1330 bool - if yyl1330 == 0 { - if yyv1330 == nil { - yyv1330 = []ThirdPartyResourceData{} - yyc1330 = true - } else if len(yyv1330) != 0 { - yyv1330 = yyv1330[:0] - yyc1330 = true + yyv1453 := *v + yyh1453, yyl1453 := z.DecSliceHelperStart() + var yyc1453 bool + if yyl1453 == 0 { + if yyv1453 == nil { + yyv1453 = []ThirdPartyResourceData{} + yyc1453 = true + } else if len(yyv1453) != 0 { + yyv1453 = yyv1453[:0] + yyc1453 = true } - } else if yyl1330 > 0 { - var yyrr1330, yyrl1330 int - var yyrt1330 bool - if yyl1330 > cap(yyv1330) { + } else if yyl1453 > 0 { + var yyrr1453, yyrl1453 int + var yyrt1453 bool + if yyl1453 > cap(yyv1453) { - yyrg1330 := len(yyv1330) > 0 - yyv21330 := yyv1330 - yyrl1330, yyrt1330 = z.DecInferLen(yyl1330, z.DecBasicHandle().MaxInitLen, 280) - if yyrt1330 { - if yyrl1330 <= cap(yyv1330) { - yyv1330 = yyv1330[:yyrl1330] + yyrg1453 := len(yyv1453) > 0 + yyv21453 := yyv1453 + yyrl1453, yyrt1453 = z.DecInferLen(yyl1453, z.DecBasicHandle().MaxInitLen, 280) + if yyrt1453 { + if yyrl1453 <= cap(yyv1453) { + yyv1453 = yyv1453[:yyrl1453] } else { - yyv1330 = make([]ThirdPartyResourceData, yyrl1330) + yyv1453 = make([]ThirdPartyResourceData, yyrl1453) } } else { - yyv1330 = make([]ThirdPartyResourceData, yyrl1330) + yyv1453 = make([]ThirdPartyResourceData, yyrl1453) } - yyc1330 = true - yyrr1330 = len(yyv1330) - if yyrg1330 { - copy(yyv1330, yyv21330) + yyc1453 = true + yyrr1453 = len(yyv1453) + if yyrg1453 { + copy(yyv1453, yyv21453) } - } else if yyl1330 != len(yyv1330) { - yyv1330 = yyv1330[:yyl1330] - yyc1330 = true + } else if yyl1453 != len(yyv1453) { + yyv1453 = yyv1453[:yyl1453] + yyc1453 = true } - yyj1330 := 0 - for ; yyj1330 < yyrr1330; yyj1330++ { - yyh1330.ElemContainerState(yyj1330) + yyj1453 := 0 + for ; yyj1453 < yyrr1453; yyj1453++ { + yyh1453.ElemContainerState(yyj1453) if r.TryDecodeAsNil() { - yyv1330[yyj1330] = ThirdPartyResourceData{} + yyv1453[yyj1453] = ThirdPartyResourceData{} } else { - yyv1331 := &yyv1330[yyj1330] - yyv1331.CodecDecodeSelf(d) + yyv1454 := &yyv1453[yyj1453] + yyv1454.CodecDecodeSelf(d) } } - if yyrt1330 { - for ; yyj1330 < yyl1330; yyj1330++ { - yyv1330 = append(yyv1330, ThirdPartyResourceData{}) - yyh1330.ElemContainerState(yyj1330) + if yyrt1453 { + for ; yyj1453 < yyl1453; yyj1453++ { + yyv1453 = append(yyv1453, ThirdPartyResourceData{}) + yyh1453.ElemContainerState(yyj1453) if r.TryDecodeAsNil() { - yyv1330[yyj1330] = ThirdPartyResourceData{} + yyv1453[yyj1453] = ThirdPartyResourceData{} } else { - yyv1332 := &yyv1330[yyj1330] - yyv1332.CodecDecodeSelf(d) + yyv1455 := &yyv1453[yyj1453] + yyv1455.CodecDecodeSelf(d) } } } } else { - yyj1330 := 0 - for ; !r.CheckBreak(); yyj1330++ { + yyj1453 := 0 + for ; !r.CheckBreak(); yyj1453++ { - if yyj1330 >= len(yyv1330) { - yyv1330 = append(yyv1330, ThirdPartyResourceData{}) // var yyz1330 ThirdPartyResourceData - yyc1330 = true + if yyj1453 >= len(yyv1453) { + yyv1453 = append(yyv1453, ThirdPartyResourceData{}) // var yyz1453 ThirdPartyResourceData + yyc1453 = true } - yyh1330.ElemContainerState(yyj1330) - if yyj1330 < len(yyv1330) { + yyh1453.ElemContainerState(yyj1453) + if yyj1453 < len(yyv1453) { if r.TryDecodeAsNil() { - yyv1330[yyj1330] = ThirdPartyResourceData{} + yyv1453[yyj1453] = ThirdPartyResourceData{} } else { - yyv1333 := &yyv1330[yyj1330] - yyv1333.CodecDecodeSelf(d) + yyv1456 := &yyv1453[yyj1453] + yyv1456.CodecDecodeSelf(d) } } else { @@ -16364,17 +17711,17 @@ func (x codecSelfer1234) decSliceThirdPartyResourceData(v *[]ThirdPartyResourceD } } - if yyj1330 < len(yyv1330) { - yyv1330 = yyv1330[:yyj1330] - yyc1330 = true - } else if yyj1330 == 0 && yyv1330 == nil { - yyv1330 = []ThirdPartyResourceData{} - yyc1330 = true + if yyj1453 < len(yyv1453) { + yyv1453 = yyv1453[:yyj1453] + yyc1453 = true + } else if yyj1453 == 0 && yyv1453 == nil { + yyv1453 = []ThirdPartyResourceData{} + yyc1453 = true } } - yyh1330.End() - if yyc1330 { - *v = yyv1330 + yyh1453.End() + if yyc1453 { + *v = yyv1453 } } @@ -16383,10 +17730,10 @@ func (x codecSelfer1234) encSliceIngress(v []Ingress, e *codec1978.Encoder) { z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r r.EncodeArrayStart(len(v)) - for _, yyv1334 := range v { + for _, yyv1457 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy1335 := &yyv1334 - yy1335.CodecEncodeSelf(e) + yy1458 := &yyv1457 + yy1458.CodecEncodeSelf(e) } z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -16396,83 +17743,83 @@ func (x codecSelfer1234) decSliceIngress(v *[]Ingress, d *codec1978.Decoder) { z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yyv1336 := *v - yyh1336, yyl1336 := z.DecSliceHelperStart() - var yyc1336 bool - if yyl1336 == 0 { - if yyv1336 == nil { - yyv1336 = []Ingress{} - yyc1336 = true - } else if len(yyv1336) != 0 { - yyv1336 = yyv1336[:0] - yyc1336 = true + yyv1459 := *v + yyh1459, yyl1459 := z.DecSliceHelperStart() + var yyc1459 bool + if yyl1459 == 0 { + if yyv1459 == nil { + yyv1459 = []Ingress{} + yyc1459 = true + } else if len(yyv1459) != 0 { + yyv1459 = yyv1459[:0] + yyc1459 = true } - } else if yyl1336 > 0 { - var yyrr1336, yyrl1336 int - var yyrt1336 bool - if yyl1336 > cap(yyv1336) { + } else if yyl1459 > 0 { + var yyrr1459, yyrl1459 int + var yyrt1459 bool + if yyl1459 > cap(yyv1459) { - yyrg1336 := len(yyv1336) > 0 - yyv21336 := yyv1336 - yyrl1336, yyrt1336 = z.DecInferLen(yyl1336, z.DecBasicHandle().MaxInitLen, 336) - if yyrt1336 { - if yyrl1336 <= cap(yyv1336) { - yyv1336 = yyv1336[:yyrl1336] + yyrg1459 := len(yyv1459) > 0 + yyv21459 := yyv1459 + yyrl1459, yyrt1459 = z.DecInferLen(yyl1459, z.DecBasicHandle().MaxInitLen, 336) + if yyrt1459 { + if yyrl1459 <= cap(yyv1459) { + yyv1459 = yyv1459[:yyrl1459] } else { - yyv1336 = make([]Ingress, yyrl1336) + yyv1459 = make([]Ingress, yyrl1459) } } else { - yyv1336 = make([]Ingress, yyrl1336) + yyv1459 = make([]Ingress, yyrl1459) } - yyc1336 = true - yyrr1336 = len(yyv1336) - if yyrg1336 { - copy(yyv1336, yyv21336) + yyc1459 = true + yyrr1459 = len(yyv1459) + if yyrg1459 { + copy(yyv1459, yyv21459) } - } else if yyl1336 != len(yyv1336) { - yyv1336 = yyv1336[:yyl1336] - yyc1336 = true + } else if yyl1459 != len(yyv1459) { + yyv1459 = yyv1459[:yyl1459] + yyc1459 = true } - yyj1336 := 0 - for ; yyj1336 < yyrr1336; yyj1336++ { - yyh1336.ElemContainerState(yyj1336) + yyj1459 := 0 + for ; yyj1459 < yyrr1459; yyj1459++ { + yyh1459.ElemContainerState(yyj1459) if r.TryDecodeAsNil() { - yyv1336[yyj1336] = Ingress{} + yyv1459[yyj1459] = Ingress{} } else { - yyv1337 := &yyv1336[yyj1336] - yyv1337.CodecDecodeSelf(d) + yyv1460 := &yyv1459[yyj1459] + yyv1460.CodecDecodeSelf(d) } } - if yyrt1336 { - for ; yyj1336 < yyl1336; yyj1336++ { - yyv1336 = append(yyv1336, Ingress{}) - yyh1336.ElemContainerState(yyj1336) + if yyrt1459 { + for ; yyj1459 < yyl1459; yyj1459++ { + yyv1459 = append(yyv1459, Ingress{}) + yyh1459.ElemContainerState(yyj1459) if r.TryDecodeAsNil() { - yyv1336[yyj1336] = Ingress{} + yyv1459[yyj1459] = Ingress{} } else { - yyv1338 := &yyv1336[yyj1336] - yyv1338.CodecDecodeSelf(d) + yyv1461 := &yyv1459[yyj1459] + yyv1461.CodecDecodeSelf(d) } } } } else { - yyj1336 := 0 - for ; !r.CheckBreak(); yyj1336++ { + yyj1459 := 0 + for ; !r.CheckBreak(); yyj1459++ { - if yyj1336 >= len(yyv1336) { - yyv1336 = append(yyv1336, Ingress{}) // var yyz1336 Ingress - yyc1336 = true + if yyj1459 >= len(yyv1459) { + yyv1459 = append(yyv1459, Ingress{}) // var yyz1459 Ingress + yyc1459 = true } - yyh1336.ElemContainerState(yyj1336) - if yyj1336 < len(yyv1336) { + yyh1459.ElemContainerState(yyj1459) + if yyj1459 < len(yyv1459) { if r.TryDecodeAsNil() { - yyv1336[yyj1336] = Ingress{} + yyv1459[yyj1459] = Ingress{} } else { - yyv1339 := &yyv1336[yyj1336] - yyv1339.CodecDecodeSelf(d) + yyv1462 := &yyv1459[yyj1459] + yyv1462.CodecDecodeSelf(d) } } else { @@ -16480,17 +17827,17 @@ func (x codecSelfer1234) decSliceIngress(v *[]Ingress, d *codec1978.Decoder) { } } - if yyj1336 < len(yyv1336) { - yyv1336 = yyv1336[:yyj1336] - yyc1336 = true - } else if yyj1336 == 0 && yyv1336 == nil { - yyv1336 = []Ingress{} - yyc1336 = true + if yyj1459 < len(yyv1459) { + yyv1459 = yyv1459[:yyj1459] + yyc1459 = true + } else if yyj1459 == 0 && yyv1459 == nil { + yyv1459 = []Ingress{} + yyc1459 = true } } - yyh1336.End() - if yyc1336 { - *v = yyv1336 + yyh1459.End() + if yyc1459 { + *v = yyv1459 } } @@ -16499,10 +17846,10 @@ func (x codecSelfer1234) encSliceIngressTLS(v []IngressTLS, e *codec1978.Encoder z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r r.EncodeArrayStart(len(v)) - for _, yyv1340 := range v { + for _, yyv1463 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy1341 := &yyv1340 - yy1341.CodecEncodeSelf(e) + yy1464 := &yyv1463 + yy1464.CodecEncodeSelf(e) } z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -16512,83 +17859,83 @@ func (x codecSelfer1234) decSliceIngressTLS(v *[]IngressTLS, d *codec1978.Decode z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yyv1342 := *v - yyh1342, yyl1342 := z.DecSliceHelperStart() - var yyc1342 bool - if yyl1342 == 0 { - if yyv1342 == nil { - yyv1342 = []IngressTLS{} - yyc1342 = true - } else if len(yyv1342) != 0 { - yyv1342 = yyv1342[:0] - yyc1342 = true + yyv1465 := *v + yyh1465, yyl1465 := z.DecSliceHelperStart() + var yyc1465 bool + if yyl1465 == 0 { + if yyv1465 == nil { + yyv1465 = []IngressTLS{} + yyc1465 = true + } else if len(yyv1465) != 0 { + yyv1465 = yyv1465[:0] + yyc1465 = true } - } else if yyl1342 > 0 { - var yyrr1342, yyrl1342 int - var yyrt1342 bool - if yyl1342 > cap(yyv1342) { + } else if yyl1465 > 0 { + var yyrr1465, yyrl1465 int + var yyrt1465 bool + if yyl1465 > cap(yyv1465) { - yyrg1342 := len(yyv1342) > 0 - yyv21342 := yyv1342 - yyrl1342, yyrt1342 = z.DecInferLen(yyl1342, z.DecBasicHandle().MaxInitLen, 40) - if yyrt1342 { - if yyrl1342 <= cap(yyv1342) { - yyv1342 = yyv1342[:yyrl1342] + yyrg1465 := len(yyv1465) > 0 + yyv21465 := yyv1465 + yyrl1465, yyrt1465 = z.DecInferLen(yyl1465, z.DecBasicHandle().MaxInitLen, 40) + if yyrt1465 { + if yyrl1465 <= cap(yyv1465) { + yyv1465 = yyv1465[:yyrl1465] } else { - yyv1342 = make([]IngressTLS, yyrl1342) + yyv1465 = make([]IngressTLS, yyrl1465) } } else { - yyv1342 = make([]IngressTLS, yyrl1342) + yyv1465 = make([]IngressTLS, yyrl1465) } - yyc1342 = true - yyrr1342 = len(yyv1342) - if yyrg1342 { - copy(yyv1342, yyv21342) + yyc1465 = true + yyrr1465 = len(yyv1465) + if yyrg1465 { + copy(yyv1465, yyv21465) } - } else if yyl1342 != len(yyv1342) { - yyv1342 = yyv1342[:yyl1342] - yyc1342 = true + } else if yyl1465 != len(yyv1465) { + yyv1465 = yyv1465[:yyl1465] + yyc1465 = true } - yyj1342 := 0 - for ; yyj1342 < yyrr1342; yyj1342++ { - yyh1342.ElemContainerState(yyj1342) + yyj1465 := 0 + for ; yyj1465 < yyrr1465; yyj1465++ { + yyh1465.ElemContainerState(yyj1465) if r.TryDecodeAsNil() { - yyv1342[yyj1342] = IngressTLS{} + yyv1465[yyj1465] = IngressTLS{} } else { - yyv1343 := &yyv1342[yyj1342] - yyv1343.CodecDecodeSelf(d) + yyv1466 := &yyv1465[yyj1465] + yyv1466.CodecDecodeSelf(d) } } - if yyrt1342 { - for ; yyj1342 < yyl1342; yyj1342++ { - yyv1342 = append(yyv1342, IngressTLS{}) - yyh1342.ElemContainerState(yyj1342) + if yyrt1465 { + for ; yyj1465 < yyl1465; yyj1465++ { + yyv1465 = append(yyv1465, IngressTLS{}) + yyh1465.ElemContainerState(yyj1465) if r.TryDecodeAsNil() { - yyv1342[yyj1342] = IngressTLS{} + yyv1465[yyj1465] = IngressTLS{} } else { - yyv1344 := &yyv1342[yyj1342] - yyv1344.CodecDecodeSelf(d) + yyv1467 := &yyv1465[yyj1465] + yyv1467.CodecDecodeSelf(d) } } } } else { - yyj1342 := 0 - for ; !r.CheckBreak(); yyj1342++ { + yyj1465 := 0 + for ; !r.CheckBreak(); yyj1465++ { - if yyj1342 >= len(yyv1342) { - yyv1342 = append(yyv1342, IngressTLS{}) // var yyz1342 IngressTLS - yyc1342 = true + if yyj1465 >= len(yyv1465) { + yyv1465 = append(yyv1465, IngressTLS{}) // var yyz1465 IngressTLS + yyc1465 = true } - yyh1342.ElemContainerState(yyj1342) - if yyj1342 < len(yyv1342) { + yyh1465.ElemContainerState(yyj1465) + if yyj1465 < len(yyv1465) { if r.TryDecodeAsNil() { - yyv1342[yyj1342] = IngressTLS{} + yyv1465[yyj1465] = IngressTLS{} } else { - yyv1345 := &yyv1342[yyj1342] - yyv1345.CodecDecodeSelf(d) + yyv1468 := &yyv1465[yyj1465] + yyv1468.CodecDecodeSelf(d) } } else { @@ -16596,17 +17943,17 @@ func (x codecSelfer1234) decSliceIngressTLS(v *[]IngressTLS, d *codec1978.Decode } } - if yyj1342 < len(yyv1342) { - yyv1342 = yyv1342[:yyj1342] - yyc1342 = true - } else if yyj1342 == 0 && yyv1342 == nil { - yyv1342 = []IngressTLS{} - yyc1342 = true + if yyj1465 < len(yyv1465) { + yyv1465 = yyv1465[:yyj1465] + yyc1465 = true + } else if yyj1465 == 0 && yyv1465 == nil { + yyv1465 = []IngressTLS{} + yyc1465 = true } } - yyh1342.End() - if yyc1342 { - *v = yyv1342 + yyh1465.End() + if yyc1465 { + *v = yyv1465 } } @@ -16615,10 +17962,10 @@ func (x codecSelfer1234) encSliceIngressRule(v []IngressRule, e *codec1978.Encod z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r r.EncodeArrayStart(len(v)) - for _, yyv1346 := range v { + for _, yyv1469 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy1347 := &yyv1346 - yy1347.CodecEncodeSelf(e) + yy1470 := &yyv1469 + yy1470.CodecEncodeSelf(e) } z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -16628,83 +17975,83 @@ func (x codecSelfer1234) decSliceIngressRule(v *[]IngressRule, d *codec1978.Deco z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yyv1348 := *v - yyh1348, yyl1348 := z.DecSliceHelperStart() - var yyc1348 bool - if yyl1348 == 0 { - if yyv1348 == nil { - yyv1348 = []IngressRule{} - yyc1348 = true - } else if len(yyv1348) != 0 { - yyv1348 = yyv1348[:0] - yyc1348 = true + yyv1471 := *v + yyh1471, yyl1471 := z.DecSliceHelperStart() + var yyc1471 bool + if yyl1471 == 0 { + if yyv1471 == nil { + yyv1471 = []IngressRule{} + yyc1471 = true + } else if len(yyv1471) != 0 { + yyv1471 = yyv1471[:0] + yyc1471 = true } - } else if yyl1348 > 0 { - var yyrr1348, yyrl1348 int - var yyrt1348 bool - if yyl1348 > cap(yyv1348) { + } else if yyl1471 > 0 { + var yyrr1471, yyrl1471 int + var yyrt1471 bool + if yyl1471 > cap(yyv1471) { - yyrg1348 := len(yyv1348) > 0 - yyv21348 := yyv1348 - yyrl1348, yyrt1348 = z.DecInferLen(yyl1348, z.DecBasicHandle().MaxInitLen, 24) - if yyrt1348 { - if yyrl1348 <= cap(yyv1348) { - yyv1348 = yyv1348[:yyrl1348] + yyrg1471 := len(yyv1471) > 0 + yyv21471 := yyv1471 + yyrl1471, yyrt1471 = z.DecInferLen(yyl1471, z.DecBasicHandle().MaxInitLen, 24) + if yyrt1471 { + if yyrl1471 <= cap(yyv1471) { + yyv1471 = yyv1471[:yyrl1471] } else { - yyv1348 = make([]IngressRule, yyrl1348) + yyv1471 = make([]IngressRule, yyrl1471) } } else { - yyv1348 = make([]IngressRule, yyrl1348) + yyv1471 = make([]IngressRule, yyrl1471) } - yyc1348 = true - yyrr1348 = len(yyv1348) - if yyrg1348 { - copy(yyv1348, yyv21348) + yyc1471 = true + yyrr1471 = len(yyv1471) + if yyrg1471 { + copy(yyv1471, yyv21471) } - } else if yyl1348 != len(yyv1348) { - yyv1348 = yyv1348[:yyl1348] - yyc1348 = true + } else if yyl1471 != len(yyv1471) { + yyv1471 = yyv1471[:yyl1471] + yyc1471 = true } - yyj1348 := 0 - for ; yyj1348 < yyrr1348; yyj1348++ { - yyh1348.ElemContainerState(yyj1348) + yyj1471 := 0 + for ; yyj1471 < yyrr1471; yyj1471++ { + yyh1471.ElemContainerState(yyj1471) if r.TryDecodeAsNil() { - yyv1348[yyj1348] = IngressRule{} + yyv1471[yyj1471] = IngressRule{} } else { - yyv1349 := &yyv1348[yyj1348] - yyv1349.CodecDecodeSelf(d) + yyv1472 := &yyv1471[yyj1471] + yyv1472.CodecDecodeSelf(d) } } - if yyrt1348 { - for ; yyj1348 < yyl1348; yyj1348++ { - yyv1348 = append(yyv1348, IngressRule{}) - yyh1348.ElemContainerState(yyj1348) + if yyrt1471 { + for ; yyj1471 < yyl1471; yyj1471++ { + yyv1471 = append(yyv1471, IngressRule{}) + yyh1471.ElemContainerState(yyj1471) if r.TryDecodeAsNil() { - yyv1348[yyj1348] = IngressRule{} + yyv1471[yyj1471] = IngressRule{} } else { - yyv1350 := &yyv1348[yyj1348] - yyv1350.CodecDecodeSelf(d) + yyv1473 := &yyv1471[yyj1471] + yyv1473.CodecDecodeSelf(d) } } } } else { - yyj1348 := 0 - for ; !r.CheckBreak(); yyj1348++ { + yyj1471 := 0 + for ; !r.CheckBreak(); yyj1471++ { - if yyj1348 >= len(yyv1348) { - yyv1348 = append(yyv1348, IngressRule{}) // var yyz1348 IngressRule - yyc1348 = true + if yyj1471 >= len(yyv1471) { + yyv1471 = append(yyv1471, IngressRule{}) // var yyz1471 IngressRule + yyc1471 = true } - yyh1348.ElemContainerState(yyj1348) - if yyj1348 < len(yyv1348) { + yyh1471.ElemContainerState(yyj1471) + if yyj1471 < len(yyv1471) { if r.TryDecodeAsNil() { - yyv1348[yyj1348] = IngressRule{} + yyv1471[yyj1471] = IngressRule{} } else { - yyv1351 := &yyv1348[yyj1348] - yyv1351.CodecDecodeSelf(d) + yyv1474 := &yyv1471[yyj1471] + yyv1474.CodecDecodeSelf(d) } } else { @@ -16712,17 +18059,17 @@ func (x codecSelfer1234) decSliceIngressRule(v *[]IngressRule, d *codec1978.Deco } } - if yyj1348 < len(yyv1348) { - yyv1348 = yyv1348[:yyj1348] - yyc1348 = true - } else if yyj1348 == 0 && yyv1348 == nil { - yyv1348 = []IngressRule{} - yyc1348 = true + if yyj1471 < len(yyv1471) { + yyv1471 = yyv1471[:yyj1471] + yyc1471 = true + } else if yyj1471 == 0 && yyv1471 == nil { + yyv1471 = []IngressRule{} + yyc1471 = true } } - yyh1348.End() - if yyc1348 { - *v = yyv1348 + yyh1471.End() + if yyc1471 { + *v = yyv1471 } } @@ -16731,10 +18078,10 @@ func (x codecSelfer1234) encSliceHTTPIngressPath(v []HTTPIngressPath, e *codec19 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r r.EncodeArrayStart(len(v)) - for _, yyv1352 := range v { + for _, yyv1475 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy1353 := &yyv1352 - yy1353.CodecEncodeSelf(e) + yy1476 := &yyv1475 + yy1476.CodecEncodeSelf(e) } z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -16744,83 +18091,83 @@ func (x codecSelfer1234) decSliceHTTPIngressPath(v *[]HTTPIngressPath, d *codec1 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yyv1354 := *v - yyh1354, yyl1354 := z.DecSliceHelperStart() - var yyc1354 bool - if yyl1354 == 0 { - if yyv1354 == nil { - yyv1354 = []HTTPIngressPath{} - yyc1354 = true - } else if len(yyv1354) != 0 { - yyv1354 = yyv1354[:0] - yyc1354 = true + yyv1477 := *v + yyh1477, yyl1477 := z.DecSliceHelperStart() + var yyc1477 bool + if yyl1477 == 0 { + if yyv1477 == nil { + yyv1477 = []HTTPIngressPath{} + yyc1477 = true + } else if len(yyv1477) != 0 { + yyv1477 = yyv1477[:0] + yyc1477 = true } - } else if yyl1354 > 0 { - var yyrr1354, yyrl1354 int - var yyrt1354 bool - if yyl1354 > cap(yyv1354) { + } else if yyl1477 > 0 { + var yyrr1477, yyrl1477 int + var yyrt1477 bool + if yyl1477 > cap(yyv1477) { - yyrg1354 := len(yyv1354) > 0 - yyv21354 := yyv1354 - yyrl1354, yyrt1354 = z.DecInferLen(yyl1354, z.DecBasicHandle().MaxInitLen, 64) - if yyrt1354 { - if yyrl1354 <= cap(yyv1354) { - yyv1354 = yyv1354[:yyrl1354] + yyrg1477 := len(yyv1477) > 0 + yyv21477 := yyv1477 + yyrl1477, yyrt1477 = z.DecInferLen(yyl1477, z.DecBasicHandle().MaxInitLen, 64) + if yyrt1477 { + if yyrl1477 <= cap(yyv1477) { + yyv1477 = yyv1477[:yyrl1477] } else { - yyv1354 = make([]HTTPIngressPath, yyrl1354) + yyv1477 = make([]HTTPIngressPath, yyrl1477) } } else { - yyv1354 = make([]HTTPIngressPath, yyrl1354) + yyv1477 = make([]HTTPIngressPath, yyrl1477) } - yyc1354 = true - yyrr1354 = len(yyv1354) - if yyrg1354 { - copy(yyv1354, yyv21354) + yyc1477 = true + yyrr1477 = len(yyv1477) + if yyrg1477 { + copy(yyv1477, yyv21477) } - } else if yyl1354 != len(yyv1354) { - yyv1354 = yyv1354[:yyl1354] - yyc1354 = true + } else if yyl1477 != len(yyv1477) { + yyv1477 = yyv1477[:yyl1477] + yyc1477 = true } - yyj1354 := 0 - for ; yyj1354 < yyrr1354; yyj1354++ { - yyh1354.ElemContainerState(yyj1354) + yyj1477 := 0 + for ; yyj1477 < yyrr1477; yyj1477++ { + yyh1477.ElemContainerState(yyj1477) if r.TryDecodeAsNil() { - yyv1354[yyj1354] = HTTPIngressPath{} + yyv1477[yyj1477] = HTTPIngressPath{} } else { - yyv1355 := &yyv1354[yyj1354] - yyv1355.CodecDecodeSelf(d) + yyv1478 := &yyv1477[yyj1477] + yyv1478.CodecDecodeSelf(d) } } - if yyrt1354 { - for ; yyj1354 < yyl1354; yyj1354++ { - yyv1354 = append(yyv1354, HTTPIngressPath{}) - yyh1354.ElemContainerState(yyj1354) + if yyrt1477 { + for ; yyj1477 < yyl1477; yyj1477++ { + yyv1477 = append(yyv1477, HTTPIngressPath{}) + yyh1477.ElemContainerState(yyj1477) if r.TryDecodeAsNil() { - yyv1354[yyj1354] = HTTPIngressPath{} + yyv1477[yyj1477] = HTTPIngressPath{} } else { - yyv1356 := &yyv1354[yyj1354] - yyv1356.CodecDecodeSelf(d) + yyv1479 := &yyv1477[yyj1477] + yyv1479.CodecDecodeSelf(d) } } } } else { - yyj1354 := 0 - for ; !r.CheckBreak(); yyj1354++ { + yyj1477 := 0 + for ; !r.CheckBreak(); yyj1477++ { - if yyj1354 >= len(yyv1354) { - yyv1354 = append(yyv1354, HTTPIngressPath{}) // var yyz1354 HTTPIngressPath - yyc1354 = true + if yyj1477 >= len(yyv1477) { + yyv1477 = append(yyv1477, HTTPIngressPath{}) // var yyz1477 HTTPIngressPath + yyc1477 = true } - yyh1354.ElemContainerState(yyj1354) - if yyj1354 < len(yyv1354) { + yyh1477.ElemContainerState(yyj1477) + if yyj1477 < len(yyv1477) { if r.TryDecodeAsNil() { - yyv1354[yyj1354] = HTTPIngressPath{} + yyv1477[yyj1477] = HTTPIngressPath{} } else { - yyv1357 := &yyv1354[yyj1354] - yyv1357.CodecDecodeSelf(d) + yyv1480 := &yyv1477[yyj1477] + yyv1480.CodecDecodeSelf(d) } } else { @@ -16828,17 +18175,17 @@ func (x codecSelfer1234) decSliceHTTPIngressPath(v *[]HTTPIngressPath, d *codec1 } } - if yyj1354 < len(yyv1354) { - yyv1354 = yyv1354[:yyj1354] - yyc1354 = true - } else if yyj1354 == 0 && yyv1354 == nil { - yyv1354 = []HTTPIngressPath{} - yyc1354 = true + if yyj1477 < len(yyv1477) { + yyv1477 = yyv1477[:yyj1477] + yyc1477 = true + } else if yyj1477 == 0 && yyv1477 == nil { + yyv1477 = []HTTPIngressPath{} + yyc1477 = true } } - yyh1354.End() - if yyc1354 { - *v = yyv1354 + yyh1477.End() + if yyc1477 { + *v = yyv1477 } } @@ -16847,10 +18194,10 @@ func (x codecSelfer1234) encSliceReplicaSet(v []ReplicaSet, e *codec1978.Encoder z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r r.EncodeArrayStart(len(v)) - for _, yyv1358 := range v { + for _, yyv1481 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy1359 := &yyv1358 - yy1359.CodecEncodeSelf(e) + yy1482 := &yyv1481 + yy1482.CodecEncodeSelf(e) } z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -16860,83 +18207,83 @@ func (x codecSelfer1234) decSliceReplicaSet(v *[]ReplicaSet, d *codec1978.Decode z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yyv1360 := *v - yyh1360, yyl1360 := z.DecSliceHelperStart() - var yyc1360 bool - if yyl1360 == 0 { - if yyv1360 == nil { - yyv1360 = []ReplicaSet{} - yyc1360 = true - } else if len(yyv1360) != 0 { - yyv1360 = yyv1360[:0] - yyc1360 = true + yyv1483 := *v + yyh1483, yyl1483 := z.DecSliceHelperStart() + var yyc1483 bool + if yyl1483 == 0 { + if yyv1483 == nil { + yyv1483 = []ReplicaSet{} + yyc1483 = true + } else if len(yyv1483) != 0 { + yyv1483 = yyv1483[:0] + yyc1483 = true } - } else if yyl1360 > 0 { - var yyrr1360, yyrl1360 int - var yyrt1360 bool - if yyl1360 > cap(yyv1360) { + } else if yyl1483 > 0 { + var yyrr1483, yyrl1483 int + var yyrt1483 bool + if yyl1483 > cap(yyv1483) { - yyrg1360 := len(yyv1360) > 0 - yyv21360 := yyv1360 - yyrl1360, yyrt1360 = z.DecInferLen(yyl1360, z.DecBasicHandle().MaxInitLen, 744) - if yyrt1360 { - if yyrl1360 <= cap(yyv1360) { - yyv1360 = yyv1360[:yyrl1360] + yyrg1483 := len(yyv1483) > 0 + yyv21483 := yyv1483 + yyrl1483, yyrt1483 = z.DecInferLen(yyl1483, z.DecBasicHandle().MaxInitLen, 768) + if yyrt1483 { + if yyrl1483 <= cap(yyv1483) { + yyv1483 = yyv1483[:yyrl1483] } else { - yyv1360 = make([]ReplicaSet, yyrl1360) + yyv1483 = make([]ReplicaSet, yyrl1483) } } else { - yyv1360 = make([]ReplicaSet, yyrl1360) + yyv1483 = make([]ReplicaSet, yyrl1483) } - yyc1360 = true - yyrr1360 = len(yyv1360) - if yyrg1360 { - copy(yyv1360, yyv21360) + yyc1483 = true + yyrr1483 = len(yyv1483) + if yyrg1483 { + copy(yyv1483, yyv21483) } - } else if yyl1360 != len(yyv1360) { - yyv1360 = yyv1360[:yyl1360] - yyc1360 = true + } else if yyl1483 != len(yyv1483) { + yyv1483 = yyv1483[:yyl1483] + yyc1483 = true } - yyj1360 := 0 - for ; yyj1360 < yyrr1360; yyj1360++ { - yyh1360.ElemContainerState(yyj1360) + yyj1483 := 0 + for ; yyj1483 < yyrr1483; yyj1483++ { + yyh1483.ElemContainerState(yyj1483) if r.TryDecodeAsNil() { - yyv1360[yyj1360] = ReplicaSet{} + yyv1483[yyj1483] = ReplicaSet{} } else { - yyv1361 := &yyv1360[yyj1360] - yyv1361.CodecDecodeSelf(d) + yyv1484 := &yyv1483[yyj1483] + yyv1484.CodecDecodeSelf(d) } } - if yyrt1360 { - for ; yyj1360 < yyl1360; yyj1360++ { - yyv1360 = append(yyv1360, ReplicaSet{}) - yyh1360.ElemContainerState(yyj1360) + if yyrt1483 { + for ; yyj1483 < yyl1483; yyj1483++ { + yyv1483 = append(yyv1483, ReplicaSet{}) + yyh1483.ElemContainerState(yyj1483) if r.TryDecodeAsNil() { - yyv1360[yyj1360] = ReplicaSet{} + yyv1483[yyj1483] = ReplicaSet{} } else { - yyv1362 := &yyv1360[yyj1360] - yyv1362.CodecDecodeSelf(d) + yyv1485 := &yyv1483[yyj1483] + yyv1485.CodecDecodeSelf(d) } } } } else { - yyj1360 := 0 - for ; !r.CheckBreak(); yyj1360++ { + yyj1483 := 0 + for ; !r.CheckBreak(); yyj1483++ { - if yyj1360 >= len(yyv1360) { - yyv1360 = append(yyv1360, ReplicaSet{}) // var yyz1360 ReplicaSet - yyc1360 = true + if yyj1483 >= len(yyv1483) { + yyv1483 = append(yyv1483, ReplicaSet{}) // var yyz1483 ReplicaSet + yyc1483 = true } - yyh1360.ElemContainerState(yyj1360) - if yyj1360 < len(yyv1360) { + yyh1483.ElemContainerState(yyj1483) + if yyj1483 < len(yyv1483) { if r.TryDecodeAsNil() { - yyv1360[yyj1360] = ReplicaSet{} + yyv1483[yyj1483] = ReplicaSet{} } else { - yyv1363 := &yyv1360[yyj1360] - yyv1363.CodecDecodeSelf(d) + yyv1486 := &yyv1483[yyj1483] + yyv1486.CodecDecodeSelf(d) } } else { @@ -16944,17 +18291,133 @@ func (x codecSelfer1234) decSliceReplicaSet(v *[]ReplicaSet, d *codec1978.Decode } } - if yyj1360 < len(yyv1360) { - yyv1360 = yyv1360[:yyj1360] - yyc1360 = true - } else if yyj1360 == 0 && yyv1360 == nil { - yyv1360 = []ReplicaSet{} - yyc1360 = true + if yyj1483 < len(yyv1483) { + yyv1483 = yyv1483[:yyj1483] + yyc1483 = true + } else if yyj1483 == 0 && yyv1483 == nil { + yyv1483 = []ReplicaSet{} + yyc1483 = true } } - yyh1360.End() - if yyc1360 { - *v = yyv1360 + yyh1483.End() + if yyc1483 { + *v = yyv1483 + } +} + +func (x codecSelfer1234) encSliceReplicaSetCondition(v []ReplicaSetCondition, e *codec1978.Encoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + r.EncodeArrayStart(len(v)) + for _, yyv1487 := range v { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yy1488 := &yyv1487 + yy1488.CodecEncodeSelf(e) + } + z.EncSendContainerState(codecSelfer_containerArrayEnd1234) +} + +func (x codecSelfer1234) decSliceReplicaSetCondition(v *[]ReplicaSetCondition, d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + + yyv1489 := *v + yyh1489, yyl1489 := z.DecSliceHelperStart() + var yyc1489 bool + if yyl1489 == 0 { + if yyv1489 == nil { + yyv1489 = []ReplicaSetCondition{} + yyc1489 = true + } else if len(yyv1489) != 0 { + yyv1489 = yyv1489[:0] + yyc1489 = true + } + } else if yyl1489 > 0 { + var yyrr1489, yyrl1489 int + var yyrt1489 bool + if yyl1489 > cap(yyv1489) { + + yyrg1489 := len(yyv1489) > 0 + yyv21489 := yyv1489 + yyrl1489, yyrt1489 = z.DecInferLen(yyl1489, z.DecBasicHandle().MaxInitLen, 88) + if yyrt1489 { + if yyrl1489 <= cap(yyv1489) { + yyv1489 = yyv1489[:yyrl1489] + } else { + yyv1489 = make([]ReplicaSetCondition, yyrl1489) + } + } else { + yyv1489 = make([]ReplicaSetCondition, yyrl1489) + } + yyc1489 = true + yyrr1489 = len(yyv1489) + if yyrg1489 { + copy(yyv1489, yyv21489) + } + } else if yyl1489 != len(yyv1489) { + yyv1489 = yyv1489[:yyl1489] + yyc1489 = true + } + yyj1489 := 0 + for ; yyj1489 < yyrr1489; yyj1489++ { + yyh1489.ElemContainerState(yyj1489) + if r.TryDecodeAsNil() { + yyv1489[yyj1489] = ReplicaSetCondition{} + } else { + yyv1490 := &yyv1489[yyj1489] + yyv1490.CodecDecodeSelf(d) + } + + } + if yyrt1489 { + for ; yyj1489 < yyl1489; yyj1489++ { + yyv1489 = append(yyv1489, ReplicaSetCondition{}) + yyh1489.ElemContainerState(yyj1489) + if r.TryDecodeAsNil() { + yyv1489[yyj1489] = ReplicaSetCondition{} + } else { + yyv1491 := &yyv1489[yyj1489] + yyv1491.CodecDecodeSelf(d) + } + + } + } + + } else { + yyj1489 := 0 + for ; !r.CheckBreak(); yyj1489++ { + + if yyj1489 >= len(yyv1489) { + yyv1489 = append(yyv1489, ReplicaSetCondition{}) // var yyz1489 ReplicaSetCondition + yyc1489 = true + } + yyh1489.ElemContainerState(yyj1489) + if yyj1489 < len(yyv1489) { + if r.TryDecodeAsNil() { + yyv1489[yyj1489] = ReplicaSetCondition{} + } else { + yyv1492 := &yyv1489[yyj1489] + yyv1492.CodecDecodeSelf(d) + } + + } else { + z.DecSwallow() + } + + } + if yyj1489 < len(yyv1489) { + yyv1489 = yyv1489[:yyj1489] + yyc1489 = true + } else if yyj1489 == 0 && yyv1489 == nil { + yyv1489 = []ReplicaSetCondition{} + yyc1489 = true + } + } + yyh1489.End() + if yyc1489 { + *v = yyv1489 } } @@ -16963,14 +18426,14 @@ func (x codecSelfer1234) encSliceapi_Capability(v []pkg2_api.Capability, e *code z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r r.EncodeArrayStart(len(v)) - for _, yyv1364 := range v { + for _, yyv1493 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym1365 := z.EncBinary() - _ = yym1365 + yym1494 := z.EncBinary() + _ = yym1494 if false { - } else if z.HasExtensions() && z.EncExt(yyv1364) { + } else if z.HasExtensions() && z.EncExt(yyv1493) { } else { - r.EncodeString(codecSelferC_UTF81234, string(yyv1364)) + r.EncodeString(codecSelferC_UTF81234, string(yyv1493)) } } z.EncSendContainerState(codecSelfer_containerArrayEnd1234) @@ -16981,75 +18444,75 @@ func (x codecSelfer1234) decSliceapi_Capability(v *[]pkg2_api.Capability, d *cod z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yyv1366 := *v - yyh1366, yyl1366 := z.DecSliceHelperStart() - var yyc1366 bool - if yyl1366 == 0 { - if yyv1366 == nil { - yyv1366 = []pkg2_api.Capability{} - yyc1366 = true - } else if len(yyv1366) != 0 { - yyv1366 = yyv1366[:0] - yyc1366 = true + yyv1495 := *v + yyh1495, yyl1495 := z.DecSliceHelperStart() + var yyc1495 bool + if yyl1495 == 0 { + if yyv1495 == nil { + yyv1495 = []pkg2_api.Capability{} + yyc1495 = true + } else if len(yyv1495) != 0 { + yyv1495 = yyv1495[:0] + yyc1495 = true } - } else if yyl1366 > 0 { - var yyrr1366, yyrl1366 int - var yyrt1366 bool - if yyl1366 > cap(yyv1366) { + } else if yyl1495 > 0 { + var yyrr1495, yyrl1495 int + var yyrt1495 bool + if yyl1495 > cap(yyv1495) { - yyrl1366, yyrt1366 = z.DecInferLen(yyl1366, z.DecBasicHandle().MaxInitLen, 16) - if yyrt1366 { - if yyrl1366 <= cap(yyv1366) { - yyv1366 = yyv1366[:yyrl1366] + yyrl1495, yyrt1495 = z.DecInferLen(yyl1495, z.DecBasicHandle().MaxInitLen, 16) + if yyrt1495 { + if yyrl1495 <= cap(yyv1495) { + yyv1495 = yyv1495[:yyrl1495] } else { - yyv1366 = make([]pkg2_api.Capability, yyrl1366) + yyv1495 = make([]pkg2_api.Capability, yyrl1495) } } else { - yyv1366 = make([]pkg2_api.Capability, yyrl1366) + yyv1495 = make([]pkg2_api.Capability, yyrl1495) } - yyc1366 = true - yyrr1366 = len(yyv1366) - } else if yyl1366 != len(yyv1366) { - yyv1366 = yyv1366[:yyl1366] - yyc1366 = true + yyc1495 = true + yyrr1495 = len(yyv1495) + } else if yyl1495 != len(yyv1495) { + yyv1495 = yyv1495[:yyl1495] + yyc1495 = true } - yyj1366 := 0 - for ; yyj1366 < yyrr1366; yyj1366++ { - yyh1366.ElemContainerState(yyj1366) + yyj1495 := 0 + for ; yyj1495 < yyrr1495; yyj1495++ { + yyh1495.ElemContainerState(yyj1495) if r.TryDecodeAsNil() { - yyv1366[yyj1366] = "" + yyv1495[yyj1495] = "" } else { - yyv1366[yyj1366] = pkg2_api.Capability(r.DecodeString()) + yyv1495[yyj1495] = pkg2_api.Capability(r.DecodeString()) } } - if yyrt1366 { - for ; yyj1366 < yyl1366; yyj1366++ { - yyv1366 = append(yyv1366, "") - yyh1366.ElemContainerState(yyj1366) + if yyrt1495 { + for ; yyj1495 < yyl1495; yyj1495++ { + yyv1495 = append(yyv1495, "") + yyh1495.ElemContainerState(yyj1495) if r.TryDecodeAsNil() { - yyv1366[yyj1366] = "" + yyv1495[yyj1495] = "" } else { - yyv1366[yyj1366] = pkg2_api.Capability(r.DecodeString()) + yyv1495[yyj1495] = pkg2_api.Capability(r.DecodeString()) } } } } else { - yyj1366 := 0 - for ; !r.CheckBreak(); yyj1366++ { + yyj1495 := 0 + for ; !r.CheckBreak(); yyj1495++ { - if yyj1366 >= len(yyv1366) { - yyv1366 = append(yyv1366, "") // var yyz1366 pkg2_api.Capability - yyc1366 = true + if yyj1495 >= len(yyv1495) { + yyv1495 = append(yyv1495, "") // var yyz1495 pkg2_api.Capability + yyc1495 = true } - yyh1366.ElemContainerState(yyj1366) - if yyj1366 < len(yyv1366) { + yyh1495.ElemContainerState(yyj1495) + if yyj1495 < len(yyv1495) { if r.TryDecodeAsNil() { - yyv1366[yyj1366] = "" + yyv1495[yyj1495] = "" } else { - yyv1366[yyj1366] = pkg2_api.Capability(r.DecodeString()) + yyv1495[yyj1495] = pkg2_api.Capability(r.DecodeString()) } } else { @@ -17057,17 +18520,17 @@ func (x codecSelfer1234) decSliceapi_Capability(v *[]pkg2_api.Capability, d *cod } } - if yyj1366 < len(yyv1366) { - yyv1366 = yyv1366[:yyj1366] - yyc1366 = true - } else if yyj1366 == 0 && yyv1366 == nil { - yyv1366 = []pkg2_api.Capability{} - yyc1366 = true + if yyj1495 < len(yyv1495) { + yyv1495 = yyv1495[:yyj1495] + yyc1495 = true + } else if yyj1495 == 0 && yyv1495 == nil { + yyv1495 = []pkg2_api.Capability{} + yyc1495 = true } } - yyh1366.End() - if yyc1366 { - *v = yyv1366 + yyh1495.End() + if yyc1495 { + *v = yyv1495 } } @@ -17076,9 +18539,9 @@ func (x codecSelfer1234) encSliceFSType(v []FSType, e *codec1978.Encoder) { z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r r.EncodeArrayStart(len(v)) - for _, yyv1370 := range v { + for _, yyv1499 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yyv1370.CodecEncodeSelf(e) + yyv1499.CodecEncodeSelf(e) } z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -17088,75 +18551,75 @@ func (x codecSelfer1234) decSliceFSType(v *[]FSType, d *codec1978.Decoder) { z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yyv1371 := *v - yyh1371, yyl1371 := z.DecSliceHelperStart() - var yyc1371 bool - if yyl1371 == 0 { - if yyv1371 == nil { - yyv1371 = []FSType{} - yyc1371 = true - } else if len(yyv1371) != 0 { - yyv1371 = yyv1371[:0] - yyc1371 = true + yyv1500 := *v + yyh1500, yyl1500 := z.DecSliceHelperStart() + var yyc1500 bool + if yyl1500 == 0 { + if yyv1500 == nil { + yyv1500 = []FSType{} + yyc1500 = true + } else if len(yyv1500) != 0 { + yyv1500 = yyv1500[:0] + yyc1500 = true } - } else if yyl1371 > 0 { - var yyrr1371, yyrl1371 int - var yyrt1371 bool - if yyl1371 > cap(yyv1371) { + } else if yyl1500 > 0 { + var yyrr1500, yyrl1500 int + var yyrt1500 bool + if yyl1500 > cap(yyv1500) { - yyrl1371, yyrt1371 = z.DecInferLen(yyl1371, z.DecBasicHandle().MaxInitLen, 16) - if yyrt1371 { - if yyrl1371 <= cap(yyv1371) { - yyv1371 = yyv1371[:yyrl1371] + yyrl1500, yyrt1500 = z.DecInferLen(yyl1500, z.DecBasicHandle().MaxInitLen, 16) + if yyrt1500 { + if yyrl1500 <= cap(yyv1500) { + yyv1500 = yyv1500[:yyrl1500] } else { - yyv1371 = make([]FSType, yyrl1371) + yyv1500 = make([]FSType, yyrl1500) } } else { - yyv1371 = make([]FSType, yyrl1371) + yyv1500 = make([]FSType, yyrl1500) } - yyc1371 = true - yyrr1371 = len(yyv1371) - } else if yyl1371 != len(yyv1371) { - yyv1371 = yyv1371[:yyl1371] - yyc1371 = true + yyc1500 = true + yyrr1500 = len(yyv1500) + } else if yyl1500 != len(yyv1500) { + yyv1500 = yyv1500[:yyl1500] + yyc1500 = true } - yyj1371 := 0 - for ; yyj1371 < yyrr1371; yyj1371++ { - yyh1371.ElemContainerState(yyj1371) + yyj1500 := 0 + for ; yyj1500 < yyrr1500; yyj1500++ { + yyh1500.ElemContainerState(yyj1500) if r.TryDecodeAsNil() { - yyv1371[yyj1371] = "" + yyv1500[yyj1500] = "" } else { - yyv1371[yyj1371] = FSType(r.DecodeString()) + yyv1500[yyj1500] = FSType(r.DecodeString()) } } - if yyrt1371 { - for ; yyj1371 < yyl1371; yyj1371++ { - yyv1371 = append(yyv1371, "") - yyh1371.ElemContainerState(yyj1371) + if yyrt1500 { + for ; yyj1500 < yyl1500; yyj1500++ { + yyv1500 = append(yyv1500, "") + yyh1500.ElemContainerState(yyj1500) if r.TryDecodeAsNil() { - yyv1371[yyj1371] = "" + yyv1500[yyj1500] = "" } else { - yyv1371[yyj1371] = FSType(r.DecodeString()) + yyv1500[yyj1500] = FSType(r.DecodeString()) } } } } else { - yyj1371 := 0 - for ; !r.CheckBreak(); yyj1371++ { + yyj1500 := 0 + for ; !r.CheckBreak(); yyj1500++ { - if yyj1371 >= len(yyv1371) { - yyv1371 = append(yyv1371, "") // var yyz1371 FSType - yyc1371 = true + if yyj1500 >= len(yyv1500) { + yyv1500 = append(yyv1500, "") // var yyz1500 FSType + yyc1500 = true } - yyh1371.ElemContainerState(yyj1371) - if yyj1371 < len(yyv1371) { + yyh1500.ElemContainerState(yyj1500) + if yyj1500 < len(yyv1500) { if r.TryDecodeAsNil() { - yyv1371[yyj1371] = "" + yyv1500[yyj1500] = "" } else { - yyv1371[yyj1371] = FSType(r.DecodeString()) + yyv1500[yyj1500] = FSType(r.DecodeString()) } } else { @@ -17164,17 +18627,17 @@ func (x codecSelfer1234) decSliceFSType(v *[]FSType, d *codec1978.Decoder) { } } - if yyj1371 < len(yyv1371) { - yyv1371 = yyv1371[:yyj1371] - yyc1371 = true - } else if yyj1371 == 0 && yyv1371 == nil { - yyv1371 = []FSType{} - yyc1371 = true + if yyj1500 < len(yyv1500) { + yyv1500 = yyv1500[:yyj1500] + yyc1500 = true + } else if yyj1500 == 0 && yyv1500 == nil { + yyv1500 = []FSType{} + yyc1500 = true } } - yyh1371.End() - if yyc1371 { - *v = yyv1371 + yyh1500.End() + if yyc1500 { + *v = yyv1500 } } @@ -17183,10 +18646,10 @@ func (x codecSelfer1234) encSliceHostPortRange(v []HostPortRange, e *codec1978.E z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r r.EncodeArrayStart(len(v)) - for _, yyv1375 := range v { + for _, yyv1504 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy1376 := &yyv1375 - yy1376.CodecEncodeSelf(e) + yy1505 := &yyv1504 + yy1505.CodecEncodeSelf(e) } z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -17196,83 +18659,83 @@ func (x codecSelfer1234) decSliceHostPortRange(v *[]HostPortRange, d *codec1978. z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yyv1377 := *v - yyh1377, yyl1377 := z.DecSliceHelperStart() - var yyc1377 bool - if yyl1377 == 0 { - if yyv1377 == nil { - yyv1377 = []HostPortRange{} - yyc1377 = true - } else if len(yyv1377) != 0 { - yyv1377 = yyv1377[:0] - yyc1377 = true + yyv1506 := *v + yyh1506, yyl1506 := z.DecSliceHelperStart() + var yyc1506 bool + if yyl1506 == 0 { + if yyv1506 == nil { + yyv1506 = []HostPortRange{} + yyc1506 = true + } else if len(yyv1506) != 0 { + yyv1506 = yyv1506[:0] + yyc1506 = true } - } else if yyl1377 > 0 { - var yyrr1377, yyrl1377 int - var yyrt1377 bool - if yyl1377 > cap(yyv1377) { + } else if yyl1506 > 0 { + var yyrr1506, yyrl1506 int + var yyrt1506 bool + if yyl1506 > cap(yyv1506) { - yyrg1377 := len(yyv1377) > 0 - yyv21377 := yyv1377 - yyrl1377, yyrt1377 = z.DecInferLen(yyl1377, z.DecBasicHandle().MaxInitLen, 16) - if yyrt1377 { - if yyrl1377 <= cap(yyv1377) { - yyv1377 = yyv1377[:yyrl1377] + yyrg1506 := len(yyv1506) > 0 + yyv21506 := yyv1506 + yyrl1506, yyrt1506 = z.DecInferLen(yyl1506, z.DecBasicHandle().MaxInitLen, 16) + if yyrt1506 { + if yyrl1506 <= cap(yyv1506) { + yyv1506 = yyv1506[:yyrl1506] } else { - yyv1377 = make([]HostPortRange, yyrl1377) + yyv1506 = make([]HostPortRange, yyrl1506) } } else { - yyv1377 = make([]HostPortRange, yyrl1377) + yyv1506 = make([]HostPortRange, yyrl1506) } - yyc1377 = true - yyrr1377 = len(yyv1377) - if yyrg1377 { - copy(yyv1377, yyv21377) + yyc1506 = true + yyrr1506 = len(yyv1506) + if yyrg1506 { + copy(yyv1506, yyv21506) } - } else if yyl1377 != len(yyv1377) { - yyv1377 = yyv1377[:yyl1377] - yyc1377 = true + } else if yyl1506 != len(yyv1506) { + yyv1506 = yyv1506[:yyl1506] + yyc1506 = true } - yyj1377 := 0 - for ; yyj1377 < yyrr1377; yyj1377++ { - yyh1377.ElemContainerState(yyj1377) + yyj1506 := 0 + for ; yyj1506 < yyrr1506; yyj1506++ { + yyh1506.ElemContainerState(yyj1506) if r.TryDecodeAsNil() { - yyv1377[yyj1377] = HostPortRange{} + yyv1506[yyj1506] = HostPortRange{} } else { - yyv1378 := &yyv1377[yyj1377] - yyv1378.CodecDecodeSelf(d) + yyv1507 := &yyv1506[yyj1506] + yyv1507.CodecDecodeSelf(d) } } - if yyrt1377 { - for ; yyj1377 < yyl1377; yyj1377++ { - yyv1377 = append(yyv1377, HostPortRange{}) - yyh1377.ElemContainerState(yyj1377) + if yyrt1506 { + for ; yyj1506 < yyl1506; yyj1506++ { + yyv1506 = append(yyv1506, HostPortRange{}) + yyh1506.ElemContainerState(yyj1506) if r.TryDecodeAsNil() { - yyv1377[yyj1377] = HostPortRange{} + yyv1506[yyj1506] = HostPortRange{} } else { - yyv1379 := &yyv1377[yyj1377] - yyv1379.CodecDecodeSelf(d) + yyv1508 := &yyv1506[yyj1506] + yyv1508.CodecDecodeSelf(d) } } } } else { - yyj1377 := 0 - for ; !r.CheckBreak(); yyj1377++ { + yyj1506 := 0 + for ; !r.CheckBreak(); yyj1506++ { - if yyj1377 >= len(yyv1377) { - yyv1377 = append(yyv1377, HostPortRange{}) // var yyz1377 HostPortRange - yyc1377 = true + if yyj1506 >= len(yyv1506) { + yyv1506 = append(yyv1506, HostPortRange{}) // var yyz1506 HostPortRange + yyc1506 = true } - yyh1377.ElemContainerState(yyj1377) - if yyj1377 < len(yyv1377) { + yyh1506.ElemContainerState(yyj1506) + if yyj1506 < len(yyv1506) { if r.TryDecodeAsNil() { - yyv1377[yyj1377] = HostPortRange{} + yyv1506[yyj1506] = HostPortRange{} } else { - yyv1380 := &yyv1377[yyj1377] - yyv1380.CodecDecodeSelf(d) + yyv1509 := &yyv1506[yyj1506] + yyv1509.CodecDecodeSelf(d) } } else { @@ -17280,17 +18743,17 @@ func (x codecSelfer1234) decSliceHostPortRange(v *[]HostPortRange, d *codec1978. } } - if yyj1377 < len(yyv1377) { - yyv1377 = yyv1377[:yyj1377] - yyc1377 = true - } else if yyj1377 == 0 && yyv1377 == nil { - yyv1377 = []HostPortRange{} - yyc1377 = true + if yyj1506 < len(yyv1506) { + yyv1506 = yyv1506[:yyj1506] + yyc1506 = true + } else if yyj1506 == 0 && yyv1506 == nil { + yyv1506 = []HostPortRange{} + yyc1506 = true } } - yyh1377.End() - if yyc1377 { - *v = yyv1377 + yyh1506.End() + if yyc1506 { + *v = yyv1506 } } @@ -17299,10 +18762,10 @@ func (x codecSelfer1234) encSliceIDRange(v []IDRange, e *codec1978.Encoder) { z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r r.EncodeArrayStart(len(v)) - for _, yyv1381 := range v { + for _, yyv1510 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy1382 := &yyv1381 - yy1382.CodecEncodeSelf(e) + yy1511 := &yyv1510 + yy1511.CodecEncodeSelf(e) } z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -17312,83 +18775,83 @@ func (x codecSelfer1234) decSliceIDRange(v *[]IDRange, d *codec1978.Decoder) { z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yyv1383 := *v - yyh1383, yyl1383 := z.DecSliceHelperStart() - var yyc1383 bool - if yyl1383 == 0 { - if yyv1383 == nil { - yyv1383 = []IDRange{} - yyc1383 = true - } else if len(yyv1383) != 0 { - yyv1383 = yyv1383[:0] - yyc1383 = true + yyv1512 := *v + yyh1512, yyl1512 := z.DecSliceHelperStart() + var yyc1512 bool + if yyl1512 == 0 { + if yyv1512 == nil { + yyv1512 = []IDRange{} + yyc1512 = true + } else if len(yyv1512) != 0 { + yyv1512 = yyv1512[:0] + yyc1512 = true } - } else if yyl1383 > 0 { - var yyrr1383, yyrl1383 int - var yyrt1383 bool - if yyl1383 > cap(yyv1383) { + } else if yyl1512 > 0 { + var yyrr1512, yyrl1512 int + var yyrt1512 bool + if yyl1512 > cap(yyv1512) { - yyrg1383 := len(yyv1383) > 0 - yyv21383 := yyv1383 - yyrl1383, yyrt1383 = z.DecInferLen(yyl1383, z.DecBasicHandle().MaxInitLen, 16) - if yyrt1383 { - if yyrl1383 <= cap(yyv1383) { - yyv1383 = yyv1383[:yyrl1383] + yyrg1512 := len(yyv1512) > 0 + yyv21512 := yyv1512 + yyrl1512, yyrt1512 = z.DecInferLen(yyl1512, z.DecBasicHandle().MaxInitLen, 16) + if yyrt1512 { + if yyrl1512 <= cap(yyv1512) { + yyv1512 = yyv1512[:yyrl1512] } else { - yyv1383 = make([]IDRange, yyrl1383) + yyv1512 = make([]IDRange, yyrl1512) } } else { - yyv1383 = make([]IDRange, yyrl1383) + yyv1512 = make([]IDRange, yyrl1512) } - yyc1383 = true - yyrr1383 = len(yyv1383) - if yyrg1383 { - copy(yyv1383, yyv21383) + yyc1512 = true + yyrr1512 = len(yyv1512) + if yyrg1512 { + copy(yyv1512, yyv21512) } - } else if yyl1383 != len(yyv1383) { - yyv1383 = yyv1383[:yyl1383] - yyc1383 = true + } else if yyl1512 != len(yyv1512) { + yyv1512 = yyv1512[:yyl1512] + yyc1512 = true } - yyj1383 := 0 - for ; yyj1383 < yyrr1383; yyj1383++ { - yyh1383.ElemContainerState(yyj1383) + yyj1512 := 0 + for ; yyj1512 < yyrr1512; yyj1512++ { + yyh1512.ElemContainerState(yyj1512) if r.TryDecodeAsNil() { - yyv1383[yyj1383] = IDRange{} + yyv1512[yyj1512] = IDRange{} } else { - yyv1384 := &yyv1383[yyj1383] - yyv1384.CodecDecodeSelf(d) + yyv1513 := &yyv1512[yyj1512] + yyv1513.CodecDecodeSelf(d) } } - if yyrt1383 { - for ; yyj1383 < yyl1383; yyj1383++ { - yyv1383 = append(yyv1383, IDRange{}) - yyh1383.ElemContainerState(yyj1383) + if yyrt1512 { + for ; yyj1512 < yyl1512; yyj1512++ { + yyv1512 = append(yyv1512, IDRange{}) + yyh1512.ElemContainerState(yyj1512) if r.TryDecodeAsNil() { - yyv1383[yyj1383] = IDRange{} + yyv1512[yyj1512] = IDRange{} } else { - yyv1385 := &yyv1383[yyj1383] - yyv1385.CodecDecodeSelf(d) + yyv1514 := &yyv1512[yyj1512] + yyv1514.CodecDecodeSelf(d) } } } } else { - yyj1383 := 0 - for ; !r.CheckBreak(); yyj1383++ { + yyj1512 := 0 + for ; !r.CheckBreak(); yyj1512++ { - if yyj1383 >= len(yyv1383) { - yyv1383 = append(yyv1383, IDRange{}) // var yyz1383 IDRange - yyc1383 = true + if yyj1512 >= len(yyv1512) { + yyv1512 = append(yyv1512, IDRange{}) // var yyz1512 IDRange + yyc1512 = true } - yyh1383.ElemContainerState(yyj1383) - if yyj1383 < len(yyv1383) { + yyh1512.ElemContainerState(yyj1512) + if yyj1512 < len(yyv1512) { if r.TryDecodeAsNil() { - yyv1383[yyj1383] = IDRange{} + yyv1512[yyj1512] = IDRange{} } else { - yyv1386 := &yyv1383[yyj1383] - yyv1386.CodecDecodeSelf(d) + yyv1515 := &yyv1512[yyj1512] + yyv1515.CodecDecodeSelf(d) } } else { @@ -17396,17 +18859,17 @@ func (x codecSelfer1234) decSliceIDRange(v *[]IDRange, d *codec1978.Decoder) { } } - if yyj1383 < len(yyv1383) { - yyv1383 = yyv1383[:yyj1383] - yyc1383 = true - } else if yyj1383 == 0 && yyv1383 == nil { - yyv1383 = []IDRange{} - yyc1383 = true + if yyj1512 < len(yyv1512) { + yyv1512 = yyv1512[:yyj1512] + yyc1512 = true + } else if yyj1512 == 0 && yyv1512 == nil { + yyv1512 = []IDRange{} + yyc1512 = true } } - yyh1383.End() - if yyc1383 { - *v = yyv1383 + yyh1512.End() + if yyc1512 { + *v = yyv1512 } } @@ -17415,10 +18878,10 @@ func (x codecSelfer1234) encSlicePodSecurityPolicy(v []PodSecurityPolicy, e *cod z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r r.EncodeArrayStart(len(v)) - for _, yyv1387 := range v { + for _, yyv1516 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy1388 := &yyv1387 - yy1388.CodecEncodeSelf(e) + yy1517 := &yyv1516 + yy1517.CodecEncodeSelf(e) } z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -17428,83 +18891,83 @@ func (x codecSelfer1234) decSlicePodSecurityPolicy(v *[]PodSecurityPolicy, d *co z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yyv1389 := *v - yyh1389, yyl1389 := z.DecSliceHelperStart() - var yyc1389 bool - if yyl1389 == 0 { - if yyv1389 == nil { - yyv1389 = []PodSecurityPolicy{} - yyc1389 = true - } else if len(yyv1389) != 0 { - yyv1389 = yyv1389[:0] - yyc1389 = true + yyv1518 := *v + yyh1518, yyl1518 := z.DecSliceHelperStart() + var yyc1518 bool + if yyl1518 == 0 { + if yyv1518 == nil { + yyv1518 = []PodSecurityPolicy{} + yyc1518 = true + } else if len(yyv1518) != 0 { + yyv1518 = yyv1518[:0] + yyc1518 = true } - } else if yyl1389 > 0 { - var yyrr1389, yyrl1389 int - var yyrt1389 bool - if yyl1389 > cap(yyv1389) { + } else if yyl1518 > 0 { + var yyrr1518, yyrl1518 int + var yyrt1518 bool + if yyl1518 > cap(yyv1518) { - yyrg1389 := len(yyv1389) > 0 - yyv21389 := yyv1389 - yyrl1389, yyrt1389 = z.DecInferLen(yyl1389, z.DecBasicHandle().MaxInitLen, 552) - if yyrt1389 { - if yyrl1389 <= cap(yyv1389) { - yyv1389 = yyv1389[:yyrl1389] + yyrg1518 := len(yyv1518) > 0 + yyv21518 := yyv1518 + yyrl1518, yyrt1518 = z.DecInferLen(yyl1518, z.DecBasicHandle().MaxInitLen, 552) + if yyrt1518 { + if yyrl1518 <= cap(yyv1518) { + yyv1518 = yyv1518[:yyrl1518] } else { - yyv1389 = make([]PodSecurityPolicy, yyrl1389) + yyv1518 = make([]PodSecurityPolicy, yyrl1518) } } else { - yyv1389 = make([]PodSecurityPolicy, yyrl1389) + yyv1518 = make([]PodSecurityPolicy, yyrl1518) } - yyc1389 = true - yyrr1389 = len(yyv1389) - if yyrg1389 { - copy(yyv1389, yyv21389) + yyc1518 = true + yyrr1518 = len(yyv1518) + if yyrg1518 { + copy(yyv1518, yyv21518) } - } else if yyl1389 != len(yyv1389) { - yyv1389 = yyv1389[:yyl1389] - yyc1389 = true + } else if yyl1518 != len(yyv1518) { + yyv1518 = yyv1518[:yyl1518] + yyc1518 = true } - yyj1389 := 0 - for ; yyj1389 < yyrr1389; yyj1389++ { - yyh1389.ElemContainerState(yyj1389) + yyj1518 := 0 + for ; yyj1518 < yyrr1518; yyj1518++ { + yyh1518.ElemContainerState(yyj1518) if r.TryDecodeAsNil() { - yyv1389[yyj1389] = PodSecurityPolicy{} + yyv1518[yyj1518] = PodSecurityPolicy{} } else { - yyv1390 := &yyv1389[yyj1389] - yyv1390.CodecDecodeSelf(d) + yyv1519 := &yyv1518[yyj1518] + yyv1519.CodecDecodeSelf(d) } } - if yyrt1389 { - for ; yyj1389 < yyl1389; yyj1389++ { - yyv1389 = append(yyv1389, PodSecurityPolicy{}) - yyh1389.ElemContainerState(yyj1389) + if yyrt1518 { + for ; yyj1518 < yyl1518; yyj1518++ { + yyv1518 = append(yyv1518, PodSecurityPolicy{}) + yyh1518.ElemContainerState(yyj1518) if r.TryDecodeAsNil() { - yyv1389[yyj1389] = PodSecurityPolicy{} + yyv1518[yyj1518] = PodSecurityPolicy{} } else { - yyv1391 := &yyv1389[yyj1389] - yyv1391.CodecDecodeSelf(d) + yyv1520 := &yyv1518[yyj1518] + yyv1520.CodecDecodeSelf(d) } } } } else { - yyj1389 := 0 - for ; !r.CheckBreak(); yyj1389++ { + yyj1518 := 0 + for ; !r.CheckBreak(); yyj1518++ { - if yyj1389 >= len(yyv1389) { - yyv1389 = append(yyv1389, PodSecurityPolicy{}) // var yyz1389 PodSecurityPolicy - yyc1389 = true + if yyj1518 >= len(yyv1518) { + yyv1518 = append(yyv1518, PodSecurityPolicy{}) // var yyz1518 PodSecurityPolicy + yyc1518 = true } - yyh1389.ElemContainerState(yyj1389) - if yyj1389 < len(yyv1389) { + yyh1518.ElemContainerState(yyj1518) + if yyj1518 < len(yyv1518) { if r.TryDecodeAsNil() { - yyv1389[yyj1389] = PodSecurityPolicy{} + yyv1518[yyj1518] = PodSecurityPolicy{} } else { - yyv1392 := &yyv1389[yyj1389] - yyv1392.CodecDecodeSelf(d) + yyv1521 := &yyv1518[yyj1518] + yyv1521.CodecDecodeSelf(d) } } else { @@ -17512,17 +18975,17 @@ func (x codecSelfer1234) decSlicePodSecurityPolicy(v *[]PodSecurityPolicy, d *co } } - if yyj1389 < len(yyv1389) { - yyv1389 = yyv1389[:yyj1389] - yyc1389 = true - } else if yyj1389 == 0 && yyv1389 == nil { - yyv1389 = []PodSecurityPolicy{} - yyc1389 = true + if yyj1518 < len(yyv1518) { + yyv1518 = yyv1518[:yyj1518] + yyc1518 = true + } else if yyj1518 == 0 && yyv1518 == nil { + yyv1518 = []PodSecurityPolicy{} + yyc1518 = true } } - yyh1389.End() - if yyc1389 { - *v = yyv1389 + yyh1518.End() + if yyc1518 { + *v = yyv1518 } } @@ -17531,10 +18994,10 @@ func (x codecSelfer1234) encSliceNetworkPolicyIngressRule(v []NetworkPolicyIngre z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r r.EncodeArrayStart(len(v)) - for _, yyv1393 := range v { + for _, yyv1522 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy1394 := &yyv1393 - yy1394.CodecEncodeSelf(e) + yy1523 := &yyv1522 + yy1523.CodecEncodeSelf(e) } z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -17544,83 +19007,83 @@ func (x codecSelfer1234) decSliceNetworkPolicyIngressRule(v *[]NetworkPolicyIngr z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yyv1395 := *v - yyh1395, yyl1395 := z.DecSliceHelperStart() - var yyc1395 bool - if yyl1395 == 0 { - if yyv1395 == nil { - yyv1395 = []NetworkPolicyIngressRule{} - yyc1395 = true - } else if len(yyv1395) != 0 { - yyv1395 = yyv1395[:0] - yyc1395 = true + yyv1524 := *v + yyh1524, yyl1524 := z.DecSliceHelperStart() + var yyc1524 bool + if yyl1524 == 0 { + if yyv1524 == nil { + yyv1524 = []NetworkPolicyIngressRule{} + yyc1524 = true + } else if len(yyv1524) != 0 { + yyv1524 = yyv1524[:0] + yyc1524 = true } - } else if yyl1395 > 0 { - var yyrr1395, yyrl1395 int - var yyrt1395 bool - if yyl1395 > cap(yyv1395) { + } else if yyl1524 > 0 { + var yyrr1524, yyrl1524 int + var yyrt1524 bool + if yyl1524 > cap(yyv1524) { - yyrg1395 := len(yyv1395) > 0 - yyv21395 := yyv1395 - yyrl1395, yyrt1395 = z.DecInferLen(yyl1395, z.DecBasicHandle().MaxInitLen, 48) - if yyrt1395 { - if yyrl1395 <= cap(yyv1395) { - yyv1395 = yyv1395[:yyrl1395] + yyrg1524 := len(yyv1524) > 0 + yyv21524 := yyv1524 + yyrl1524, yyrt1524 = z.DecInferLen(yyl1524, z.DecBasicHandle().MaxInitLen, 48) + if yyrt1524 { + if yyrl1524 <= cap(yyv1524) { + yyv1524 = yyv1524[:yyrl1524] } else { - yyv1395 = make([]NetworkPolicyIngressRule, yyrl1395) + yyv1524 = make([]NetworkPolicyIngressRule, yyrl1524) } } else { - yyv1395 = make([]NetworkPolicyIngressRule, yyrl1395) + yyv1524 = make([]NetworkPolicyIngressRule, yyrl1524) } - yyc1395 = true - yyrr1395 = len(yyv1395) - if yyrg1395 { - copy(yyv1395, yyv21395) + yyc1524 = true + yyrr1524 = len(yyv1524) + if yyrg1524 { + copy(yyv1524, yyv21524) } - } else if yyl1395 != len(yyv1395) { - yyv1395 = yyv1395[:yyl1395] - yyc1395 = true + } else if yyl1524 != len(yyv1524) { + yyv1524 = yyv1524[:yyl1524] + yyc1524 = true } - yyj1395 := 0 - for ; yyj1395 < yyrr1395; yyj1395++ { - yyh1395.ElemContainerState(yyj1395) + yyj1524 := 0 + for ; yyj1524 < yyrr1524; yyj1524++ { + yyh1524.ElemContainerState(yyj1524) if r.TryDecodeAsNil() { - yyv1395[yyj1395] = NetworkPolicyIngressRule{} + yyv1524[yyj1524] = NetworkPolicyIngressRule{} } else { - yyv1396 := &yyv1395[yyj1395] - yyv1396.CodecDecodeSelf(d) + yyv1525 := &yyv1524[yyj1524] + yyv1525.CodecDecodeSelf(d) } } - if yyrt1395 { - for ; yyj1395 < yyl1395; yyj1395++ { - yyv1395 = append(yyv1395, NetworkPolicyIngressRule{}) - yyh1395.ElemContainerState(yyj1395) + if yyrt1524 { + for ; yyj1524 < yyl1524; yyj1524++ { + yyv1524 = append(yyv1524, NetworkPolicyIngressRule{}) + yyh1524.ElemContainerState(yyj1524) if r.TryDecodeAsNil() { - yyv1395[yyj1395] = NetworkPolicyIngressRule{} + yyv1524[yyj1524] = NetworkPolicyIngressRule{} } else { - yyv1397 := &yyv1395[yyj1395] - yyv1397.CodecDecodeSelf(d) + yyv1526 := &yyv1524[yyj1524] + yyv1526.CodecDecodeSelf(d) } } } } else { - yyj1395 := 0 - for ; !r.CheckBreak(); yyj1395++ { + yyj1524 := 0 + for ; !r.CheckBreak(); yyj1524++ { - if yyj1395 >= len(yyv1395) { - yyv1395 = append(yyv1395, NetworkPolicyIngressRule{}) // var yyz1395 NetworkPolicyIngressRule - yyc1395 = true + if yyj1524 >= len(yyv1524) { + yyv1524 = append(yyv1524, NetworkPolicyIngressRule{}) // var yyz1524 NetworkPolicyIngressRule + yyc1524 = true } - yyh1395.ElemContainerState(yyj1395) - if yyj1395 < len(yyv1395) { + yyh1524.ElemContainerState(yyj1524) + if yyj1524 < len(yyv1524) { if r.TryDecodeAsNil() { - yyv1395[yyj1395] = NetworkPolicyIngressRule{} + yyv1524[yyj1524] = NetworkPolicyIngressRule{} } else { - yyv1398 := &yyv1395[yyj1395] - yyv1398.CodecDecodeSelf(d) + yyv1527 := &yyv1524[yyj1524] + yyv1527.CodecDecodeSelf(d) } } else { @@ -17628,17 +19091,17 @@ func (x codecSelfer1234) decSliceNetworkPolicyIngressRule(v *[]NetworkPolicyIngr } } - if yyj1395 < len(yyv1395) { - yyv1395 = yyv1395[:yyj1395] - yyc1395 = true - } else if yyj1395 == 0 && yyv1395 == nil { - yyv1395 = []NetworkPolicyIngressRule{} - yyc1395 = true + if yyj1524 < len(yyv1524) { + yyv1524 = yyv1524[:yyj1524] + yyc1524 = true + } else if yyj1524 == 0 && yyv1524 == nil { + yyv1524 = []NetworkPolicyIngressRule{} + yyc1524 = true } } - yyh1395.End() - if yyc1395 { - *v = yyv1395 + yyh1524.End() + if yyc1524 { + *v = yyv1524 } } @@ -17647,10 +19110,10 @@ func (x codecSelfer1234) encSliceNetworkPolicyPort(v []NetworkPolicyPort, e *cod z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r r.EncodeArrayStart(len(v)) - for _, yyv1399 := range v { + for _, yyv1528 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy1400 := &yyv1399 - yy1400.CodecEncodeSelf(e) + yy1529 := &yyv1528 + yy1529.CodecEncodeSelf(e) } z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -17660,83 +19123,83 @@ func (x codecSelfer1234) decSliceNetworkPolicyPort(v *[]NetworkPolicyPort, d *co z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yyv1401 := *v - yyh1401, yyl1401 := z.DecSliceHelperStart() - var yyc1401 bool - if yyl1401 == 0 { - if yyv1401 == nil { - yyv1401 = []NetworkPolicyPort{} - yyc1401 = true - } else if len(yyv1401) != 0 { - yyv1401 = yyv1401[:0] - yyc1401 = true + yyv1530 := *v + yyh1530, yyl1530 := z.DecSliceHelperStart() + var yyc1530 bool + if yyl1530 == 0 { + if yyv1530 == nil { + yyv1530 = []NetworkPolicyPort{} + yyc1530 = true + } else if len(yyv1530) != 0 { + yyv1530 = yyv1530[:0] + yyc1530 = true } - } else if yyl1401 > 0 { - var yyrr1401, yyrl1401 int - var yyrt1401 bool - if yyl1401 > cap(yyv1401) { + } else if yyl1530 > 0 { + var yyrr1530, yyrl1530 int + var yyrt1530 bool + if yyl1530 > cap(yyv1530) { - yyrg1401 := len(yyv1401) > 0 - yyv21401 := yyv1401 - yyrl1401, yyrt1401 = z.DecInferLen(yyl1401, z.DecBasicHandle().MaxInitLen, 16) - if yyrt1401 { - if yyrl1401 <= cap(yyv1401) { - yyv1401 = yyv1401[:yyrl1401] + yyrg1530 := len(yyv1530) > 0 + yyv21530 := yyv1530 + yyrl1530, yyrt1530 = z.DecInferLen(yyl1530, z.DecBasicHandle().MaxInitLen, 16) + if yyrt1530 { + if yyrl1530 <= cap(yyv1530) { + yyv1530 = yyv1530[:yyrl1530] } else { - yyv1401 = make([]NetworkPolicyPort, yyrl1401) + yyv1530 = make([]NetworkPolicyPort, yyrl1530) } } else { - yyv1401 = make([]NetworkPolicyPort, yyrl1401) + yyv1530 = make([]NetworkPolicyPort, yyrl1530) } - yyc1401 = true - yyrr1401 = len(yyv1401) - if yyrg1401 { - copy(yyv1401, yyv21401) + yyc1530 = true + yyrr1530 = len(yyv1530) + if yyrg1530 { + copy(yyv1530, yyv21530) } - } else if yyl1401 != len(yyv1401) { - yyv1401 = yyv1401[:yyl1401] - yyc1401 = true + } else if yyl1530 != len(yyv1530) { + yyv1530 = yyv1530[:yyl1530] + yyc1530 = true } - yyj1401 := 0 - for ; yyj1401 < yyrr1401; yyj1401++ { - yyh1401.ElemContainerState(yyj1401) + yyj1530 := 0 + for ; yyj1530 < yyrr1530; yyj1530++ { + yyh1530.ElemContainerState(yyj1530) if r.TryDecodeAsNil() { - yyv1401[yyj1401] = NetworkPolicyPort{} + yyv1530[yyj1530] = NetworkPolicyPort{} } else { - yyv1402 := &yyv1401[yyj1401] - yyv1402.CodecDecodeSelf(d) + yyv1531 := &yyv1530[yyj1530] + yyv1531.CodecDecodeSelf(d) } } - if yyrt1401 { - for ; yyj1401 < yyl1401; yyj1401++ { - yyv1401 = append(yyv1401, NetworkPolicyPort{}) - yyh1401.ElemContainerState(yyj1401) + if yyrt1530 { + for ; yyj1530 < yyl1530; yyj1530++ { + yyv1530 = append(yyv1530, NetworkPolicyPort{}) + yyh1530.ElemContainerState(yyj1530) if r.TryDecodeAsNil() { - yyv1401[yyj1401] = NetworkPolicyPort{} + yyv1530[yyj1530] = NetworkPolicyPort{} } else { - yyv1403 := &yyv1401[yyj1401] - yyv1403.CodecDecodeSelf(d) + yyv1532 := &yyv1530[yyj1530] + yyv1532.CodecDecodeSelf(d) } } } } else { - yyj1401 := 0 - for ; !r.CheckBreak(); yyj1401++ { + yyj1530 := 0 + for ; !r.CheckBreak(); yyj1530++ { - if yyj1401 >= len(yyv1401) { - yyv1401 = append(yyv1401, NetworkPolicyPort{}) // var yyz1401 NetworkPolicyPort - yyc1401 = true + if yyj1530 >= len(yyv1530) { + yyv1530 = append(yyv1530, NetworkPolicyPort{}) // var yyz1530 NetworkPolicyPort + yyc1530 = true } - yyh1401.ElemContainerState(yyj1401) - if yyj1401 < len(yyv1401) { + yyh1530.ElemContainerState(yyj1530) + if yyj1530 < len(yyv1530) { if r.TryDecodeAsNil() { - yyv1401[yyj1401] = NetworkPolicyPort{} + yyv1530[yyj1530] = NetworkPolicyPort{} } else { - yyv1404 := &yyv1401[yyj1401] - yyv1404.CodecDecodeSelf(d) + yyv1533 := &yyv1530[yyj1530] + yyv1533.CodecDecodeSelf(d) } } else { @@ -17744,17 +19207,17 @@ func (x codecSelfer1234) decSliceNetworkPolicyPort(v *[]NetworkPolicyPort, d *co } } - if yyj1401 < len(yyv1401) { - yyv1401 = yyv1401[:yyj1401] - yyc1401 = true - } else if yyj1401 == 0 && yyv1401 == nil { - yyv1401 = []NetworkPolicyPort{} - yyc1401 = true + if yyj1530 < len(yyv1530) { + yyv1530 = yyv1530[:yyj1530] + yyc1530 = true + } else if yyj1530 == 0 && yyv1530 == nil { + yyv1530 = []NetworkPolicyPort{} + yyc1530 = true } } - yyh1401.End() - if yyc1401 { - *v = yyv1401 + yyh1530.End() + if yyc1530 { + *v = yyv1530 } } @@ -17763,10 +19226,10 @@ func (x codecSelfer1234) encSliceNetworkPolicyPeer(v []NetworkPolicyPeer, e *cod z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r r.EncodeArrayStart(len(v)) - for _, yyv1405 := range v { + for _, yyv1534 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy1406 := &yyv1405 - yy1406.CodecEncodeSelf(e) + yy1535 := &yyv1534 + yy1535.CodecEncodeSelf(e) } z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -17776,83 +19239,83 @@ func (x codecSelfer1234) decSliceNetworkPolicyPeer(v *[]NetworkPolicyPeer, d *co z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yyv1407 := *v - yyh1407, yyl1407 := z.DecSliceHelperStart() - var yyc1407 bool - if yyl1407 == 0 { - if yyv1407 == nil { - yyv1407 = []NetworkPolicyPeer{} - yyc1407 = true - } else if len(yyv1407) != 0 { - yyv1407 = yyv1407[:0] - yyc1407 = true + yyv1536 := *v + yyh1536, yyl1536 := z.DecSliceHelperStart() + var yyc1536 bool + if yyl1536 == 0 { + if yyv1536 == nil { + yyv1536 = []NetworkPolicyPeer{} + yyc1536 = true + } else if len(yyv1536) != 0 { + yyv1536 = yyv1536[:0] + yyc1536 = true } - } else if yyl1407 > 0 { - var yyrr1407, yyrl1407 int - var yyrt1407 bool - if yyl1407 > cap(yyv1407) { + } else if yyl1536 > 0 { + var yyrr1536, yyrl1536 int + var yyrt1536 bool + if yyl1536 > cap(yyv1536) { - yyrg1407 := len(yyv1407) > 0 - yyv21407 := yyv1407 - yyrl1407, yyrt1407 = z.DecInferLen(yyl1407, z.DecBasicHandle().MaxInitLen, 16) - if yyrt1407 { - if yyrl1407 <= cap(yyv1407) { - yyv1407 = yyv1407[:yyrl1407] + yyrg1536 := len(yyv1536) > 0 + yyv21536 := yyv1536 + yyrl1536, yyrt1536 = z.DecInferLen(yyl1536, z.DecBasicHandle().MaxInitLen, 16) + if yyrt1536 { + if yyrl1536 <= cap(yyv1536) { + yyv1536 = yyv1536[:yyrl1536] } else { - yyv1407 = make([]NetworkPolicyPeer, yyrl1407) + yyv1536 = make([]NetworkPolicyPeer, yyrl1536) } } else { - yyv1407 = make([]NetworkPolicyPeer, yyrl1407) + yyv1536 = make([]NetworkPolicyPeer, yyrl1536) } - yyc1407 = true - yyrr1407 = len(yyv1407) - if yyrg1407 { - copy(yyv1407, yyv21407) + yyc1536 = true + yyrr1536 = len(yyv1536) + if yyrg1536 { + copy(yyv1536, yyv21536) } - } else if yyl1407 != len(yyv1407) { - yyv1407 = yyv1407[:yyl1407] - yyc1407 = true + } else if yyl1536 != len(yyv1536) { + yyv1536 = yyv1536[:yyl1536] + yyc1536 = true } - yyj1407 := 0 - for ; yyj1407 < yyrr1407; yyj1407++ { - yyh1407.ElemContainerState(yyj1407) + yyj1536 := 0 + for ; yyj1536 < yyrr1536; yyj1536++ { + yyh1536.ElemContainerState(yyj1536) if r.TryDecodeAsNil() { - yyv1407[yyj1407] = NetworkPolicyPeer{} + yyv1536[yyj1536] = NetworkPolicyPeer{} } else { - yyv1408 := &yyv1407[yyj1407] - yyv1408.CodecDecodeSelf(d) + yyv1537 := &yyv1536[yyj1536] + yyv1537.CodecDecodeSelf(d) } } - if yyrt1407 { - for ; yyj1407 < yyl1407; yyj1407++ { - yyv1407 = append(yyv1407, NetworkPolicyPeer{}) - yyh1407.ElemContainerState(yyj1407) + if yyrt1536 { + for ; yyj1536 < yyl1536; yyj1536++ { + yyv1536 = append(yyv1536, NetworkPolicyPeer{}) + yyh1536.ElemContainerState(yyj1536) if r.TryDecodeAsNil() { - yyv1407[yyj1407] = NetworkPolicyPeer{} + yyv1536[yyj1536] = NetworkPolicyPeer{} } else { - yyv1409 := &yyv1407[yyj1407] - yyv1409.CodecDecodeSelf(d) + yyv1538 := &yyv1536[yyj1536] + yyv1538.CodecDecodeSelf(d) } } } } else { - yyj1407 := 0 - for ; !r.CheckBreak(); yyj1407++ { + yyj1536 := 0 + for ; !r.CheckBreak(); yyj1536++ { - if yyj1407 >= len(yyv1407) { - yyv1407 = append(yyv1407, NetworkPolicyPeer{}) // var yyz1407 NetworkPolicyPeer - yyc1407 = true + if yyj1536 >= len(yyv1536) { + yyv1536 = append(yyv1536, NetworkPolicyPeer{}) // var yyz1536 NetworkPolicyPeer + yyc1536 = true } - yyh1407.ElemContainerState(yyj1407) - if yyj1407 < len(yyv1407) { + yyh1536.ElemContainerState(yyj1536) + if yyj1536 < len(yyv1536) { if r.TryDecodeAsNil() { - yyv1407[yyj1407] = NetworkPolicyPeer{} + yyv1536[yyj1536] = NetworkPolicyPeer{} } else { - yyv1410 := &yyv1407[yyj1407] - yyv1410.CodecDecodeSelf(d) + yyv1539 := &yyv1536[yyj1536] + yyv1539.CodecDecodeSelf(d) } } else { @@ -17860,17 +19323,17 @@ func (x codecSelfer1234) decSliceNetworkPolicyPeer(v *[]NetworkPolicyPeer, d *co } } - if yyj1407 < len(yyv1407) { - yyv1407 = yyv1407[:yyj1407] - yyc1407 = true - } else if yyj1407 == 0 && yyv1407 == nil { - yyv1407 = []NetworkPolicyPeer{} - yyc1407 = true + if yyj1536 < len(yyv1536) { + yyv1536 = yyv1536[:yyj1536] + yyc1536 = true + } else if yyj1536 == 0 && yyv1536 == nil { + yyv1536 = []NetworkPolicyPeer{} + yyc1536 = true } } - yyh1407.End() - if yyc1407 { - *v = yyv1407 + yyh1536.End() + if yyc1536 { + *v = yyv1536 } } @@ -17879,10 +19342,10 @@ func (x codecSelfer1234) encSliceNetworkPolicy(v []NetworkPolicy, e *codec1978.E z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r r.EncodeArrayStart(len(v)) - for _, yyv1411 := range v { + for _, yyv1540 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy1412 := &yyv1411 - yy1412.CodecEncodeSelf(e) + yy1541 := &yyv1540 + yy1541.CodecEncodeSelf(e) } z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -17892,83 +19355,83 @@ func (x codecSelfer1234) decSliceNetworkPolicy(v *[]NetworkPolicy, d *codec1978. z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yyv1413 := *v - yyh1413, yyl1413 := z.DecSliceHelperStart() - var yyc1413 bool - if yyl1413 == 0 { - if yyv1413 == nil { - yyv1413 = []NetworkPolicy{} - yyc1413 = true - } else if len(yyv1413) != 0 { - yyv1413 = yyv1413[:0] - yyc1413 = true + yyv1542 := *v + yyh1542, yyl1542 := z.DecSliceHelperStart() + var yyc1542 bool + if yyl1542 == 0 { + if yyv1542 == nil { + yyv1542 = []NetworkPolicy{} + yyc1542 = true + } else if len(yyv1542) != 0 { + yyv1542 = yyv1542[:0] + yyc1542 = true } - } else if yyl1413 > 0 { - var yyrr1413, yyrl1413 int - var yyrt1413 bool - if yyl1413 > cap(yyv1413) { + } else if yyl1542 > 0 { + var yyrr1542, yyrl1542 int + var yyrt1542 bool + if yyl1542 > cap(yyv1542) { - yyrg1413 := len(yyv1413) > 0 - yyv21413 := yyv1413 - yyrl1413, yyrt1413 = z.DecInferLen(yyl1413, z.DecBasicHandle().MaxInitLen, 312) - if yyrt1413 { - if yyrl1413 <= cap(yyv1413) { - yyv1413 = yyv1413[:yyrl1413] + yyrg1542 := len(yyv1542) > 0 + yyv21542 := yyv1542 + yyrl1542, yyrt1542 = z.DecInferLen(yyl1542, z.DecBasicHandle().MaxInitLen, 312) + if yyrt1542 { + if yyrl1542 <= cap(yyv1542) { + yyv1542 = yyv1542[:yyrl1542] } else { - yyv1413 = make([]NetworkPolicy, yyrl1413) + yyv1542 = make([]NetworkPolicy, yyrl1542) } } else { - yyv1413 = make([]NetworkPolicy, yyrl1413) + yyv1542 = make([]NetworkPolicy, yyrl1542) } - yyc1413 = true - yyrr1413 = len(yyv1413) - if yyrg1413 { - copy(yyv1413, yyv21413) + yyc1542 = true + yyrr1542 = len(yyv1542) + if yyrg1542 { + copy(yyv1542, yyv21542) } - } else if yyl1413 != len(yyv1413) { - yyv1413 = yyv1413[:yyl1413] - yyc1413 = true + } else if yyl1542 != len(yyv1542) { + yyv1542 = yyv1542[:yyl1542] + yyc1542 = true } - yyj1413 := 0 - for ; yyj1413 < yyrr1413; yyj1413++ { - yyh1413.ElemContainerState(yyj1413) + yyj1542 := 0 + for ; yyj1542 < yyrr1542; yyj1542++ { + yyh1542.ElemContainerState(yyj1542) if r.TryDecodeAsNil() { - yyv1413[yyj1413] = NetworkPolicy{} + yyv1542[yyj1542] = NetworkPolicy{} } else { - yyv1414 := &yyv1413[yyj1413] - yyv1414.CodecDecodeSelf(d) + yyv1543 := &yyv1542[yyj1542] + yyv1543.CodecDecodeSelf(d) } } - if yyrt1413 { - for ; yyj1413 < yyl1413; yyj1413++ { - yyv1413 = append(yyv1413, NetworkPolicy{}) - yyh1413.ElemContainerState(yyj1413) + if yyrt1542 { + for ; yyj1542 < yyl1542; yyj1542++ { + yyv1542 = append(yyv1542, NetworkPolicy{}) + yyh1542.ElemContainerState(yyj1542) if r.TryDecodeAsNil() { - yyv1413[yyj1413] = NetworkPolicy{} + yyv1542[yyj1542] = NetworkPolicy{} } else { - yyv1415 := &yyv1413[yyj1413] - yyv1415.CodecDecodeSelf(d) + yyv1544 := &yyv1542[yyj1542] + yyv1544.CodecDecodeSelf(d) } } } } else { - yyj1413 := 0 - for ; !r.CheckBreak(); yyj1413++ { + yyj1542 := 0 + for ; !r.CheckBreak(); yyj1542++ { - if yyj1413 >= len(yyv1413) { - yyv1413 = append(yyv1413, NetworkPolicy{}) // var yyz1413 NetworkPolicy - yyc1413 = true + if yyj1542 >= len(yyv1542) { + yyv1542 = append(yyv1542, NetworkPolicy{}) // var yyz1542 NetworkPolicy + yyc1542 = true } - yyh1413.ElemContainerState(yyj1413) - if yyj1413 < len(yyv1413) { + yyh1542.ElemContainerState(yyj1542) + if yyj1542 < len(yyv1542) { if r.TryDecodeAsNil() { - yyv1413[yyj1413] = NetworkPolicy{} + yyv1542[yyj1542] = NetworkPolicy{} } else { - yyv1416 := &yyv1413[yyj1413] - yyv1416.CodecDecodeSelf(d) + yyv1545 := &yyv1542[yyj1542] + yyv1545.CodecDecodeSelf(d) } } else { @@ -17976,16 +19439,16 @@ func (x codecSelfer1234) decSliceNetworkPolicy(v *[]NetworkPolicy, d *codec1978. } } - if yyj1413 < len(yyv1413) { - yyv1413 = yyv1413[:yyj1413] - yyc1413 = true - } else if yyj1413 == 0 && yyv1413 == nil { - yyv1413 = []NetworkPolicy{} - yyc1413 = true + if yyj1542 < len(yyv1542) { + yyv1542 = yyv1542[:yyj1542] + yyc1542 = true + } else if yyj1542 == 0 && yyv1542 == nil { + yyv1542 = []NetworkPolicy{} + yyc1542 = true } } - yyh1413.End() - if yyc1413 { - *v = yyv1413 + yyh1542.End() + if yyc1542 { + *v = yyv1542 } } diff --git a/vendor/k8s.io/client-go/1.5/pkg/apis/extensions/types.go b/vendor/k8s.io/client-go/pkg/apis/extensions/types.go similarity index 84% rename from vendor/k8s.io/client-go/1.5/pkg/apis/extensions/types.go rename to vendor/k8s.io/client-go/pkg/apis/extensions/types.go index a2fd99ae6..3cae03f3e 100644 --- a/vendor/k8s.io/client-go/1.5/pkg/apis/extensions/types.go +++ b/vendor/k8s.io/client-go/pkg/apis/extensions/types.go @@ -29,10 +29,10 @@ support is experimental. package extensions import ( - "k8s.io/client-go/1.5/pkg/api" - "k8s.io/client-go/1.5/pkg/api/resource" - "k8s.io/client-go/1.5/pkg/api/unversioned" - "k8s.io/client-go/1.5/pkg/util/intstr" + "k8s.io/client-go/pkg/api" + "k8s.io/client-go/pkg/api/resource" + "k8s.io/client-go/pkg/api/unversioned" + "k8s.io/client-go/pkg/util/intstr" ) const ( @@ -45,6 +45,7 @@ const ( // describes the attributes of a scale subresource type ScaleSpec struct { // desired number of instances for the scaled object. + // +optional Replicas int32 `json:"replicas,omitempty"` } @@ -54,7 +55,8 @@ type ScaleStatus struct { 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 + // More info: http://kubernetes.io/docs/user-guide/labels#label-selectors + // +optional Selector *unversioned.LabelSelector `json:"selector,omitempty"` } @@ -65,12 +67,15 @@ type ScaleStatus struct { type Scale struct { unversioned.TypeMeta `json:",inline"` // Standard object metadata; More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata. + // +optional 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. + // +optional 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. + // +optional Status ScaleStatus `json:"status,omitempty"` } @@ -111,9 +116,11 @@ type ThirdPartyResource struct { unversioned.TypeMeta `json:",inline"` // Standard object metadata + // +optional api.ObjectMeta `json:"metadata,omitempty"` // Description is the description of this object. + // +optional Description string `json:"description,omitempty"` // Versions are versions for this third party object @@ -124,6 +131,7 @@ type ThirdPartyResourceList struct { unversioned.TypeMeta `json:",inline"` // Standard list metadata. + // +optional unversioned.ListMeta `json:"metadata,omitempty"` // Items is the list of horizontal pod autoscalers. @@ -141,9 +149,11 @@ type APIVersion struct { type ThirdPartyResourceData struct { unversioned.TypeMeta `json:",inline"` // Standard object metadata. + // +optional api.ObjectMeta `json:"metadata,omitempty"` // Data is the raw JSON data for this data. + // +optional Data []byte `json:"data,omitempty"` } @@ -151,44 +161,64 @@ type ThirdPartyResourceData struct { type Deployment struct { unversioned.TypeMeta `json:",inline"` - api.ObjectMeta `json:"metadata,omitempty"` + // +optional + api.ObjectMeta `json:"metadata,omitempty"` // Specification of the desired behavior of the Deployment. + // +optional Spec DeploymentSpec `json:"spec,omitempty"` // Most recently observed status of the Deployment. + // +optional 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. + // +optional 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. + // +optional 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. + // +optional 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) + // +optional 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. + // +optional RevisionHistoryLimit *int32 `json:"revisionHistoryLimit,omitempty"` // Indicates that the deployment is paused and will not be processed by the // deployment controller. + // +optional Paused bool `json:"paused,omitempty"` + // The config this deployment is rolling back to. Will be cleared after rollback is done. + // +optional RollbackTo *RollbackConfig `json:"rollbackTo,omitempty"` + + // The maximum time in seconds for a deployment to make progress before it + // is considered to be failed. The deployment controller will continue to + // process failed deployments and a condition with a ProgressDeadlineExceeded + // reason will be surfaced in the deployment status. Once autoRollback is + // implemented, the deployment controller will automatically rollback failed + // deployments. Note that progress will not be estimated during the time a + // deployment is paused. This is not set by default. + ProgressDeadlineSeconds *int32 `json:"progressDeadlineSeconds,omitempty"` } // DeploymentRollback stores the information required to rollback a deployment. @@ -197,6 +227,7 @@ type DeploymentRollback struct { // Required: This must match the Name of a deployment. Name string `json:"name"` // The annotations to be updated to a deployment + // +optional UpdatedAnnotations map[string]string `json:"updatedAnnotations,omitempty"` // The config of this deployment rollback. RollbackTo RollbackConfig `json:"rollbackTo"` @@ -204,6 +235,7 @@ type DeploymentRollback struct { type RollbackConfig struct { // The revision to rollback to. If set to 0, rollbck to the last revision. + // +optional Revision int64 `json:"revision,omitempty"` } @@ -216,6 +248,7 @@ const ( type DeploymentStrategy struct { // Type of deployment. Can be "Recreate" or "RollingUpdate". Default is RollingUpdate. + // +optional Type DeploymentStrategyType `json:"type,omitempty"` // Rolling update config params. Present only if DeploymentStrategyType = @@ -223,6 +256,7 @@ type DeploymentStrategy struct { //--- // TODO: Update this to follow our convention for oneOf, whatever we decide it // to be. + // +optional RollingUpdate *RollingUpdateDeployment `json:"rollingUpdate,omitempty"` } @@ -248,6 +282,7 @@ type RollingUpdateDeployment struct { // 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. + // +optional MaxUnavailable intstr.IntOrString `json:"maxUnavailable,omitempty"` // The maximum number of pods that can be scheduled above the original number of @@ -260,28 +295,71 @@ type RollingUpdateDeployment struct { // 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. + // +optional MaxSurge intstr.IntOrString `json:"maxSurge,omitempty"` } type DeploymentStatus struct { // The generation observed by the deployment controller. + // +optional ObservedGeneration int64 `json:"observedGeneration,omitempty"` // Total number of non-terminated pods targeted by this deployment (their labels match the selector). + // +optional Replicas int32 `json:"replicas,omitempty"` // Total number of non-terminated pods targeted by this deployment that have the desired template spec. + // +optional UpdatedReplicas int32 `json:"updatedReplicas,omitempty"` // Total number of available pods (ready for at least minReadySeconds) targeted by this deployment. + // +optional AvailableReplicas int32 `json:"availableReplicas,omitempty"` // Total number of unavailable pods targeted by this deployment. + // +optional UnavailableReplicas int32 `json:"unavailableReplicas,omitempty"` + + // Represents the latest available observations of a deployment's current state. + Conditions []DeploymentCondition `json:"conditions,omitempty" patchStrategy:"merge" patchMergeKey:"type"` +} + +type DeploymentConditionType string + +// These are valid conditions of a deployment. +const ( + // Available means the deployment is available, ie. at least the minimum available + // replicas required are up and running for at least minReadySeconds. + DeploymentAvailable DeploymentConditionType = "Available" + // Progressing means the deployment is progressing. Progress for a deployment is + // considered when a new replica set is created or adopted, and when new pods scale + // up or old pods scale down. Progress is not estimated for paused deployments or + // when progressDeadlineSeconds is not specified. + DeploymentProgressing DeploymentConditionType = "Progressing" + // ReplicaFailure is added in a deployment when one of its pods fails to be created + // or deleted. + DeploymentReplicaFailure DeploymentConditionType = "ReplicaFailure" +) + +// DeploymentCondition describes the state of a deployment at a certain point. +type DeploymentCondition struct { + // Type of deployment condition. + Type DeploymentConditionType `json:"type"` + // Status of the condition, one of True, False, Unknown. + Status api.ConditionStatus `json:"status"` + // The last time this condition was updated. + LastUpdateTime unversioned.Time `json:"lastUpdateTime,omitempty"` + // Last time the condition transitioned from one status to another. + LastTransitionTime unversioned.Time `json:"lastTransitionTime,omitempty"` + // The reason for the condition's last transition. + Reason string `json:"reason,omitempty"` + // A human readable message indicating details about the transition. + Message string `json:"message,omitempty"` } type DeploymentList struct { unversioned.TypeMeta `json:",inline"` + // +optional unversioned.ListMeta `json:"metadata,omitempty"` // Items is the list of deployments. @@ -292,6 +370,7 @@ type DeploymentList struct { /* 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. +// +optional Type DaemonSetUpdateStrategyType `json:"type,omitempty"` // Rolling update config params. Present only if DaemonSetUpdateStrategy = @@ -299,6 +378,7 @@ type DaemonSetUpdateStrategy struct { //--- // TODO: Update this to follow our convention for oneOf, whatever we decide it // to be. Same as DeploymentStrategy.RollingUpdate. +// +optional RollingUpdate *RollingUpdateDaemonSet `json:"rollingUpdate,omitempty"` } @@ -324,12 +404,14 @@ type RollingUpdateDaemonSet struct { // 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. +// +optional 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). +// +optional MinReadySeconds int `json:"minReadySeconds,omitempty"` } */ @@ -339,29 +421,32 @@ 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 + // More info: http://kubernetes.io/docs/user-guide/labels#label-selectors + // +optional 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 + // More info: http://kubernetes.io/docs/user-guide/replication-controller#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"` + // Update strategy to replace existing DaemonSet pods with new pods. + // +optional + 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"` + // 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. + // +optional + UniqueLabelKey string `json:"uniqueLabelKey,omitempty"` */ } @@ -385,6 +470,10 @@ type DaemonSetStatus struct { // 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"` + + // NumberReady is the number of nodes that should be running the daemon pod and have one + // or more of the daemon pod running and ready. + NumberReady int32 `json:"numberReady"` } // +genclient=true @@ -394,10 +483,12 @@ type DaemonSet struct { unversioned.TypeMeta `json:",inline"` // Standard object's metadata. // More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata + // +optional 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 + // +optional Spec DaemonSetSpec `json:"spec,omitempty"` // Status is the current status of this daemon set. This data may be @@ -405,6 +496,7 @@ type DaemonSet struct { // Populated by the system. // Read-only. // More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status + // +optional Status DaemonSetStatus `json:"status,omitempty"` } @@ -413,6 +505,7 @@ type DaemonSetList struct { unversioned.TypeMeta `json:",inline"` // Standard list metadata. // More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata + // +optional unversioned.ListMeta `json:"metadata,omitempty"` // Items is a list of daemon sets. @@ -423,6 +516,7 @@ type ThirdPartyResourceDataList struct { unversioned.TypeMeta `json:",inline"` // Standard list metadata // More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata + // +optional unversioned.ListMeta `json:"metadata,omitempty"` // Items is a list of third party objects Items []ThirdPartyResourceData `json:"items"` @@ -438,14 +532,17 @@ type Ingress struct { unversioned.TypeMeta `json:",inline"` // Standard object's metadata. // More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata + // +optional 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 + // +optional 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 + // +optional Status IngressStatus `json:"status,omitempty"` } @@ -454,6 +551,7 @@ type IngressList struct { unversioned.TypeMeta `json:",inline"` // Standard object's metadata. // More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata + // +optional unversioned.ListMeta `json:"metadata,omitempty"` // Items is the list of Ingress. @@ -466,6 +564,7 @@ type IngressSpec struct { // 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. + // +optional Backend *IngressBackend `json:"backend,omitempty"` // TLS configuration. Currently the Ingress only supports a single TLS @@ -473,10 +572,12 @@ type IngressSpec struct { // 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. + // +optional 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. + // +optional Rules []IngressRule `json:"rules,omitempty"` // TODO: Add the ability to specify load-balancer IP through claims } @@ -487,12 +588,14 @@ type IngressTLS struct { // 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. + // +optional 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. + // +optional SecretName string `json:"secretName,omitempty"` // TODO: Consider specifying different modes of termination, protocols etc. } @@ -500,6 +603,7 @@ type IngressTLS struct { // IngressStatus describe the current state of the Ingress. type IngressStatus struct { // LoadBalancer contains the current status of the load-balancer. + // +optional LoadBalancer api.LoadBalancerStatus `json:"loadBalancer,omitempty"` } @@ -519,12 +623,14 @@ type IngressRule struct { // 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. + // +optional 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. + // +optional IngressRuleValue `json:",inline,omitempty"` } @@ -539,6 +645,7 @@ type IngressRuleValue struct { // 2. Consider adding fields for ingress-type specific global options // usable by a loadbalancer, like http keep-alive. + // +optional HTTP *HTTPIngressRuleValue `json:"http,omitempty"` } @@ -564,6 +671,7 @@ type HTTPIngressPath struct { // 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. + // +optional Path string `json:"path,omitempty"` // Backend defines the referenced service endpoint to which the traffic @@ -585,19 +693,23 @@ type IngressBackend struct { // ReplicaSet represents the configuration of a replica set. type ReplicaSet struct { unversioned.TypeMeta `json:",inline"` - api.ObjectMeta `json:"metadata,omitempty"` + // +optional + api.ObjectMeta `json:"metadata,omitempty"` // Spec defines the desired behavior of this ReplicaSet. + // +optional 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. + // +optional Status ReplicaSetStatus `json:"status,omitempty"` } // ReplicaSetList is a collection of ReplicaSets. type ReplicaSetList struct { unversioned.TypeMeta `json:",inline"` + // +optional unversioned.ListMeta `json:"metadata,omitempty"` Items []ReplicaSet `json:"items"` @@ -610,14 +722,22 @@ type ReplicaSetSpec struct { // Replicas is the number of desired replicas. Replicas int32 `json:"replicas"` + // 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) + // +optional + MinReadySeconds int32 `json:"minReadySeconds,omitempty"` + // 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 + // More info: http://kubernetes.io/docs/user-guide/labels#label-selectors + // +optional Selector *unversioned.LabelSelector `json:"selector,omitempty"` // Template is the object that describes the pod that will be created if // insufficient replicas are detected. + // +optional Template api.PodTemplateSpec `json:"template,omitempty"` } @@ -627,13 +747,51 @@ type ReplicaSetStatus struct { Replicas int32 `json:"replicas"` // The number of pods that have labels matching the labels of the pod template of the replicaset. + // +optional FullyLabeledReplicas int32 `json:"fullyLabeledReplicas,omitempty"` // The number of ready replicas for this replica set. + // +optional ReadyReplicas int32 `json:"readyReplicas,omitempty"` + // The number of available replicas (ready for at least minReadySeconds) for this replica set. + // +optional + AvailableReplicas int32 `json:"availableReplicas,omitempty"` + // ObservedGeneration is the most recent generation observed by the controller. + // +optional ObservedGeneration int64 `json:"observedGeneration,omitempty"` + + // Represents the latest available observations of a replica set's current state. + // +optional + Conditions []ReplicaSetCondition `json:"conditions,omitempty" patchStrategy:"merge" patchMergeKey:"type"` +} + +type ReplicaSetConditionType string + +// These are valid conditions of a replica set. +const ( + // ReplicaSetReplicaFailure is added in a replica set when one of its pods fails to be created + // due to insufficient quota, limit ranges, pod security policy, node selectors, etc. or deleted + // due to kubelet being down or finalizers are failing. + ReplicaSetReplicaFailure ReplicaSetConditionType = "ReplicaFailure" +) + +// ReplicaSetCondition describes the state of a replica set at a certain point. +type ReplicaSetCondition struct { + // Type of replica set condition. + Type ReplicaSetConditionType `json:"type"` + // Status of the condition, one of True, False, Unknown. + Status api.ConditionStatus `json:"status"` + // The last time the condition transitioned from one status to another. + // +optional + LastTransitionTime unversioned.Time `json:"lastTransitionTime,omitempty"` + // The reason for the condition's last transition. + // +optional + Reason string `json:"reason,omitempty"` + // A human readable message indicating details about the transition. + // +optional + Message string `json:"message,omitempty"` } // +genclient=true @@ -643,37 +801,48 @@ type ReplicaSetStatus struct { // that will be applied to a pod and container. type PodSecurityPolicy struct { unversioned.TypeMeta `json:",inline"` - api.ObjectMeta `json:"metadata,omitempty"` + // +optional + api.ObjectMeta `json:"metadata,omitempty"` // Spec defines the policy enforced. + // +optional 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. + // +optional 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. + // +optional 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. + // +optional 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. + // +optional AllowedCapabilities []api.Capability `json:"allowedCapabilities,omitempty"` // Volumes is a white list of allowed volume plugins. Empty indicates that all plugins // may be used. + // +optional Volumes []FSType `json:"volumes,omitempty"` // HostNetwork determines if the policy allows the use of HostNetwork in the pod spec. + // +optional HostNetwork bool `json:"hostNetwork,omitempty"` // HostPorts determines which host port ranges are allowed to be exposed. + // +optional HostPorts []HostPortRange `json:"hostPorts,omitempty"` // HostPID determines if the policy allows the use of HostPID in the pod spec. + // +optional HostPID bool `json:"hostPID,omitempty"` // HostIPC determines if the policy allows the use of HostIPC in the pod spec. + // +optional HostIPC bool `json:"hostIPC,omitempty"` // SELinux is the strategy that will dictate the allowable labels that may be set. SELinux SELinuxStrategyOptions `json:"seLinux"` @@ -688,6 +857,7 @@ type PodSecurityPolicySpec struct { // 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. + // +optional ReadOnlyRootFilesystem bool `json:"readOnlyRootFilesystem,omitempty"` } @@ -726,6 +896,7 @@ var ( VsphereVolume FSType = "vsphereVolume" Quobyte FSType = "quobyte" AzureDisk FSType = "azureDisk" + PhotonPersistentDisk FSType = "photonPersistentDisk" All FSType = "*" ) @@ -735,6 +906,7 @@ type SELinuxStrategyOptions struct { 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 + // +optional SELinuxOptions *api.SELinuxOptions `json:"seLinuxOptions,omitempty"` } @@ -754,6 +926,7 @@ 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. + // +optional Ranges []IDRange `json:"ranges,omitempty"` } @@ -781,9 +954,11 @@ const ( // 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. + // +optional 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. + // +optional Ranges []IDRange `json:"ranges,omitempty"` } @@ -801,9 +976,11 @@ const ( // 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. + // +optional 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. + // +optional Ranges []IDRange `json:"ranges,omitempty"` } @@ -821,6 +998,7 @@ const ( // PodSecurityPolicyList is a list of PodSecurityPolicy objects. type PodSecurityPolicyList struct { unversioned.TypeMeta `json:",inline"` + // +optional unversioned.ListMeta `json:"metadata,omitempty"` Items []PodSecurityPolicy `json:"items"` @@ -830,9 +1008,11 @@ type PodSecurityPolicyList struct { type NetworkPolicy struct { unversioned.TypeMeta `json:",inline"` - api.ObjectMeta `json:"metadata,omitempty"` + // +optional + api.ObjectMeta `json:"metadata,omitempty"` // Specification of the desired behavior for this NetworkPolicy. + // +optional Spec NetworkPolicySpec `json:"spec,omitempty"` } @@ -852,6 +1032,7 @@ type NetworkPolicySpec struct { // 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. + // +optional Ingress []NetworkPolicyIngressRule `json:"ingress,omitempty"` } @@ -864,6 +1045,7 @@ type NetworkPolicyIngressRule struct { // 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. + // +optional Ports []NetworkPolicyPort `json:"ports,omitempty"` // List of sources which should be able to access the pods selected for this rule. @@ -873,12 +1055,14 @@ type NetworkPolicyIngressRule struct { // 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. + // +optional 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. + // +optional Protocol *api.Protocol `json:"protocol,omitempty"` // If specified, the port on the given protocol. This can @@ -886,6 +1070,7 @@ type NetworkPolicyPort struct { // this matches all port names and numbers. // If present, only traffic on the specified protocol AND port // will be matched. + // +optional Port *intstr.IntOrString `json:"port,omitempty"` } @@ -896,6 +1081,7 @@ type NetworkPolicyPeer struct { // 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. + // +optional PodSelector *unversioned.LabelSelector `json:"podSelector,omitempty"` // Selects Namespaces using cluster scoped-labels. This @@ -903,12 +1089,14 @@ type NetworkPolicyPeer struct { // This field follows standard label selector semantics. // If omitted, this selector selects no namespaces. // If present but empty, this selector selects all namespaces. + // +optional NamespaceSelector *unversioned.LabelSelector `json:"namespaceSelector,omitempty"` } // NetworkPolicyList is a list of NetworkPolicy objects. type NetworkPolicyList struct { unversioned.TypeMeta `json:",inline"` + // +optional unversioned.ListMeta `json:"metadata,omitempty"` Items []NetworkPolicy `json:"items"` diff --git a/vendor/k8s.io/client-go/1.5/pkg/apis/extensions/v1beta1/conversion.go b/vendor/k8s.io/client-go/pkg/apis/extensions/v1beta1/conversion.go similarity index 86% rename from vendor/k8s.io/client-go/1.5/pkg/apis/extensions/v1beta1/conversion.go rename to vendor/k8s.io/client-go/pkg/apis/extensions/v1beta1/conversion.go index 56f605e51..38f7a2766 100644 --- a/vendor/k8s.io/client-go/1.5/pkg/apis/extensions/v1beta1/conversion.go +++ b/vendor/k8s.io/client-go/pkg/apis/extensions/v1beta1/conversion.go @@ -19,15 +19,15 @@ package v1beta1 import ( "fmt" - "k8s.io/client-go/1.5/pkg/api" - "k8s.io/client-go/1.5/pkg/api/unversioned" - v1 "k8s.io/client-go/1.5/pkg/api/v1" - "k8s.io/client-go/1.5/pkg/apis/autoscaling" - "k8s.io/client-go/1.5/pkg/apis/batch" - "k8s.io/client-go/1.5/pkg/apis/extensions" - "k8s.io/client-go/1.5/pkg/conversion" - "k8s.io/client-go/1.5/pkg/runtime" - "k8s.io/client-go/1.5/pkg/util/intstr" + "k8s.io/client-go/pkg/api" + "k8s.io/client-go/pkg/api/unversioned" + v1 "k8s.io/client-go/pkg/api/v1" + "k8s.io/client-go/pkg/apis/autoscaling" + "k8s.io/client-go/pkg/apis/batch" + "k8s.io/client-go/pkg/apis/extensions" + "k8s.io/client-go/pkg/conversion" + "k8s.io/client-go/pkg/runtime" + "k8s.io/client-go/pkg/util/intstr" ) func addConversionFuncs(scheme *runtime.Scheme) error { @@ -134,14 +134,7 @@ func Convert_v1beta1_ScaleStatus_To_extensions_ScaleStatus(in *ScaleStatus, out func Convert_extensions_DeploymentSpec_To_v1beta1_DeploymentSpec(in *extensions.DeploymentSpec, out *DeploymentSpec, s conversion.Scope) error { out.Replicas = &in.Replicas - if in.Selector != nil { - out.Selector = new(LabelSelector) - if err := Convert_unversioned_LabelSelector_To_v1beta1_LabelSelector(in.Selector, out.Selector, s); err != nil { - return err - } - } else { - out.Selector = nil - } + out.Selector = in.Selector if err := v1.Convert_api_PodTemplateSpec_To_v1_PodTemplateSpec(&in.Template, &out.Template, s); err != nil { return err } @@ -160,6 +153,10 @@ func Convert_extensions_DeploymentSpec_To_v1beta1_DeploymentSpec(in *extensions. } else { out.RollbackTo = nil } + if in.ProgressDeadlineSeconds != nil { + out.ProgressDeadlineSeconds = new(int32) + *out.ProgressDeadlineSeconds = *in.ProgressDeadlineSeconds + } return nil } @@ -167,15 +164,7 @@ func Convert_v1beta1_DeploymentSpec_To_extensions_DeploymentSpec(in *DeploymentS if in.Replicas != nil { out.Replicas = *in.Replicas } - - if in.Selector != nil { - out.Selector = new(unversioned.LabelSelector) - if err := Convert_v1beta1_LabelSelector_To_unversioned_LabelSelector(in.Selector, out.Selector, s); err != nil { - return err - } - } else { - out.Selector = nil - } + out.Selector = in.Selector if err := v1.Convert_v1_PodTemplateSpec_To_api_PodTemplateSpec(&in.Template, &out.Template, s); err != nil { return err } @@ -191,6 +180,10 @@ func Convert_v1beta1_DeploymentSpec_To_extensions_DeploymentSpec(in *DeploymentS } else { out.RollbackTo = nil } + if in.ProgressDeadlineSeconds != nil { + out.ProgressDeadlineSeconds = new(int32) + *out.ProgressDeadlineSeconds = *in.ProgressDeadlineSeconds + } return nil } @@ -249,15 +242,8 @@ func Convert_v1beta1_RollingUpdateDeployment_To_extensions_RollingUpdateDeployme func Convert_extensions_ReplicaSetSpec_To_v1beta1_ReplicaSetSpec(in *extensions.ReplicaSetSpec, out *ReplicaSetSpec, s conversion.Scope) error { out.Replicas = new(int32) *out.Replicas = int32(in.Replicas) - if in.Selector != nil { - out.Selector = new(LabelSelector) - if err := Convert_unversioned_LabelSelector_To_v1beta1_LabelSelector(in.Selector, out.Selector, s); err != nil { - return err - } - } else { - out.Selector = nil - } - + out.MinReadySeconds = in.MinReadySeconds + out.Selector = in.Selector if err := v1.Convert_api_PodTemplateSpec_To_v1_PodTemplateSpec(&in.Template, &out.Template, s); err != nil { return err } @@ -268,14 +254,8 @@ func Convert_v1beta1_ReplicaSetSpec_To_extensions_ReplicaSetSpec(in *ReplicaSetS if in.Replicas != nil { out.Replicas = *in.Replicas } - if in.Selector != nil { - out.Selector = new(unversioned.LabelSelector) - if err := Convert_v1beta1_LabelSelector_To_unversioned_LabelSelector(in.Selector, out.Selector, s); err != nil { - return err - } - } else { - out.Selector = nil - } + out.MinReadySeconds = in.MinReadySeconds + out.Selector = in.Selector if err := v1.Convert_v1_PodTemplateSpec_To_api_PodTemplateSpec(&in.Template, &out.Template, s); err != nil { return err } @@ -286,16 +266,7 @@ func Convert_batch_JobSpec_To_v1beta1_JobSpec(in *batch.JobSpec, out *JobSpec, s out.Parallelism = in.Parallelism out.Completions = in.Completions out.ActiveDeadlineSeconds = in.ActiveDeadlineSeconds - // unable to generate simple pointer conversion for unversioned.LabelSelector -> v1beta1.LabelSelector - if in.Selector != nil { - out.Selector = new(LabelSelector) - if err := Convert_unversioned_LabelSelector_To_v1beta1_LabelSelector(in.Selector, out.Selector, s); err != nil { - return err - } - } else { - out.Selector = nil - } - + out.Selector = in.Selector // BEGIN non-standard conversion // autoSelector has opposite meaning as manualSelector. // in both cases, unset means false, and unset is always preferred to false. @@ -320,16 +291,7 @@ func Convert_v1beta1_JobSpec_To_batch_JobSpec(in *JobSpec, out *batch.JobSpec, s out.Parallelism = in.Parallelism out.Completions = in.Completions out.ActiveDeadlineSeconds = in.ActiveDeadlineSeconds - // unable to generate simple pointer conversion for v1beta1.LabelSelector -> unversioned.LabelSelector - if in.Selector != nil { - out.Selector = new(unversioned.LabelSelector) - if err := Convert_v1beta1_LabelSelector_To_unversioned_LabelSelector(in.Selector, out.Selector, s); err != nil { - return err - } - } else { - out.Selector = nil - } - + out.Selector = in.Selector // BEGIN non-standard conversion // autoSelector has opposite meaning as manualSelector. // in both cases, unset means false, and unset is always preferred to false. diff --git a/vendor/k8s.io/client-go/1.5/pkg/apis/extensions/v1beta1/defaults.go b/vendor/k8s.io/client-go/pkg/apis/extensions/v1beta1/defaults.go similarity index 90% rename from vendor/k8s.io/client-go/1.5/pkg/apis/extensions/v1beta1/defaults.go rename to vendor/k8s.io/client-go/pkg/apis/extensions/v1beta1/defaults.go index ae30a2bb3..2704d67f3 100644 --- a/vendor/k8s.io/client-go/1.5/pkg/apis/extensions/v1beta1/defaults.go +++ b/vendor/k8s.io/client-go/pkg/apis/extensions/v1beta1/defaults.go @@ -17,12 +17,14 @@ limitations under the License. package v1beta1 import ( - "k8s.io/client-go/1.5/pkg/api/v1" - "k8s.io/client-go/1.5/pkg/runtime" - "k8s.io/client-go/1.5/pkg/util/intstr" + "k8s.io/client-go/pkg/api/unversioned" + "k8s.io/client-go/pkg/api/v1" + "k8s.io/client-go/pkg/runtime" + "k8s.io/client-go/pkg/util/intstr" ) func addDefaultingFuncs(scheme *runtime.Scheme) error { + RegisterDefaults(scheme) return scheme.AddDefaultingFuncs( SetDefaults_DaemonSet, SetDefaults_Deployment, @@ -39,7 +41,7 @@ func SetDefaults_DaemonSet(obj *DaemonSet) { // TODO: support templates defined elsewhere when we support them in the API if labels != nil { if obj.Spec.Selector == nil { - obj.Spec.Selector = &LabelSelector{ + obj.Spec.Selector = &unversioned.LabelSelector{ MatchLabels: labels, } } @@ -55,7 +57,7 @@ func SetDefaults_Deployment(obj *Deployment) { if labels != nil { if obj.Spec.Selector == nil { - obj.Spec.Selector = &LabelSelector{MatchLabels: labels} + obj.Spec.Selector = &unversioned.LabelSelector{MatchLabels: labels} } if len(obj.Labels) == 0 { obj.Labels = labels @@ -71,7 +73,7 @@ func SetDefaults_Deployment(obj *Deployment) { if strategy.Type == "" { strategy.Type = RollingUpdateDeploymentStrategyType } - if strategy.Type == RollingUpdateDeploymentStrategyType { + if strategy.Type == RollingUpdateDeploymentStrategyType || strategy.RollingUpdate != nil { if strategy.RollingUpdate == nil { rollingUpdate := RollingUpdateDeployment{} strategy.RollingUpdate = &rollingUpdate @@ -101,7 +103,7 @@ func SetDefaults_Job(obj *Job) { // and default behavior for an unspecified manual selector is to use the pod template labels if manualSelector && obj.Spec.Selector == nil { - obj.Spec.Selector = &LabelSelector{ + obj.Spec.Selector = &unversioned.LabelSelector{ MatchLabels: labels, } } @@ -139,7 +141,7 @@ func SetDefaults_ReplicaSet(obj *ReplicaSet) { // TODO: support templates defined elsewhere when we support them in the API if labels != nil { if obj.Spec.Selector == nil { - obj.Spec.Selector = &LabelSelector{ + obj.Spec.Selector = &unversioned.LabelSelector{ MatchLabels: labels, } } diff --git a/vendor/k8s.io/client-go/1.5/pkg/apis/extensions/v1beta1/doc.go b/vendor/k8s.io/client-go/pkg/apis/extensions/v1beta1/doc.go similarity index 96% rename from vendor/k8s.io/client-go/1.5/pkg/apis/extensions/v1beta1/doc.go rename to vendor/k8s.io/client-go/pkg/apis/extensions/v1beta1/doc.go index a9520c2c2..2a7ce9134 100644 --- a/vendor/k8s.io/client-go/1.5/pkg/apis/extensions/v1beta1/doc.go +++ b/vendor/k8s.io/client-go/pkg/apis/extensions/v1beta1/doc.go @@ -19,5 +19,6 @@ limitations under the License. // +k8s:conversion-gen=k8s.io/kubernetes/pkg/apis/autoscaling // +k8s:conversion-gen=k8s.io/kubernetes/pkg/apis/batch // +k8s:openapi-gen=true +// +k8s:defaulter-gen=TypeMeta package v1beta1 diff --git a/vendor/k8s.io/client-go/1.5/pkg/apis/extensions/v1beta1/generated.pb.go b/vendor/k8s.io/client-go/pkg/apis/extensions/v1beta1/generated.pb.go similarity index 87% rename from vendor/k8s.io/client-go/1.5/pkg/apis/extensions/v1beta1/generated.pb.go rename to vendor/k8s.io/client-go/pkg/apis/extensions/v1beta1/generated.pb.go index 67b6a9c5a..2c8fb3249 100644 --- a/vendor/k8s.io/client-go/1.5/pkg/apis/extensions/v1beta1/generated.pb.go +++ b/vendor/k8s.io/client-go/pkg/apis/extensions/v1beta1/generated.pb.go @@ -1,5 +1,5 @@ /* -Copyright 2016 The Kubernetes Authors. +Copyright 2017 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -36,6 +36,7 @@ limitations under the License. DaemonSetSpec DaemonSetStatus Deployment + DeploymentCondition DeploymentList DeploymentRollback DeploymentSpec @@ -64,9 +65,6 @@ limitations under the License. JobList JobSpec JobStatus - LabelSelector - LabelSelectorRequirement - ListOptions NetworkPolicy NetworkPolicyIngressRule NetworkPolicyList @@ -77,6 +75,7 @@ limitations under the License. PodSecurityPolicyList PodSecurityPolicySpec ReplicaSet + ReplicaSetCondition ReplicaSetList ReplicaSetSpec ReplicaSetStatus @@ -101,10 +100,10 @@ import proto "github.com/gogo/protobuf/proto" import fmt "fmt" import math "math" -import k8s_io_kubernetes_pkg_api_unversioned "k8s.io/client-go/1.5/pkg/api/unversioned" -import k8s_io_kubernetes_pkg_api_v1 "k8s.io/client-go/1.5/pkg/api/v1" +import k8s_io_kubernetes_pkg_api_unversioned "k8s.io/client-go/pkg/api/unversioned" +import k8s_io_kubernetes_pkg_api_v1 "k8s.io/client-go/pkg/api/v1" -import k8s_io_kubernetes_pkg_util_intstr "k8s.io/client-go/1.5/pkg/util/intstr" +import k8s_io_kubernetes_pkg_util_intstr "k8s.io/client-go/pkg/util/intstr" import strings "strings" import reflect "reflect" @@ -169,330 +168,323 @@ func (m *Deployment) Reset() { *m = Deployment{} } func (*Deployment) ProtoMessage() {} func (*Deployment) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{10} } +func (m *DeploymentCondition) Reset() { *m = DeploymentCondition{} } +func (*DeploymentCondition) ProtoMessage() {} +func (*DeploymentCondition) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{11} } + func (m *DeploymentList) Reset() { *m = DeploymentList{} } func (*DeploymentList) ProtoMessage() {} -func (*DeploymentList) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{11} } +func (*DeploymentList) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{12} } func (m *DeploymentRollback) Reset() { *m = DeploymentRollback{} } func (*DeploymentRollback) ProtoMessage() {} -func (*DeploymentRollback) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{12} } +func (*DeploymentRollback) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{13} } func (m *DeploymentSpec) Reset() { *m = DeploymentSpec{} } func (*DeploymentSpec) ProtoMessage() {} -func (*DeploymentSpec) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{13} } +func (*DeploymentSpec) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{14} } func (m *DeploymentStatus) Reset() { *m = DeploymentStatus{} } func (*DeploymentStatus) ProtoMessage() {} -func (*DeploymentStatus) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{14} } +func (*DeploymentStatus) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{15} } func (m *DeploymentStrategy) Reset() { *m = DeploymentStrategy{} } func (*DeploymentStrategy) ProtoMessage() {} -func (*DeploymentStrategy) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{15} } +func (*DeploymentStrategy) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{16} } func (m *ExportOptions) Reset() { *m = ExportOptions{} } func (*ExportOptions) ProtoMessage() {} -func (*ExportOptions) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{16} } +func (*ExportOptions) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{17} } func (m *FSGroupStrategyOptions) Reset() { *m = FSGroupStrategyOptions{} } func (*FSGroupStrategyOptions) ProtoMessage() {} -func (*FSGroupStrategyOptions) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{17} } +func (*FSGroupStrategyOptions) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{18} } func (m *HTTPIngressPath) Reset() { *m = HTTPIngressPath{} } func (*HTTPIngressPath) ProtoMessage() {} -func (*HTTPIngressPath) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{18} } +func (*HTTPIngressPath) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{19} } func (m *HTTPIngressRuleValue) Reset() { *m = HTTPIngressRuleValue{} } func (*HTTPIngressRuleValue) ProtoMessage() {} -func (*HTTPIngressRuleValue) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{19} } +func (*HTTPIngressRuleValue) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{20} } func (m *HorizontalPodAutoscaler) Reset() { *m = HorizontalPodAutoscaler{} } func (*HorizontalPodAutoscaler) ProtoMessage() {} func (*HorizontalPodAutoscaler) Descriptor() ([]byte, []int) { - return fileDescriptorGenerated, []int{20} + return fileDescriptorGenerated, []int{21} } func (m *HorizontalPodAutoscalerList) Reset() { *m = HorizontalPodAutoscalerList{} } func (*HorizontalPodAutoscalerList) ProtoMessage() {} func (*HorizontalPodAutoscalerList) Descriptor() ([]byte, []int) { - return fileDescriptorGenerated, []int{21} + return fileDescriptorGenerated, []int{22} } func (m *HorizontalPodAutoscalerSpec) Reset() { *m = HorizontalPodAutoscalerSpec{} } func (*HorizontalPodAutoscalerSpec) ProtoMessage() {} func (*HorizontalPodAutoscalerSpec) Descriptor() ([]byte, []int) { - return fileDescriptorGenerated, []int{22} + return fileDescriptorGenerated, []int{23} } func (m *HorizontalPodAutoscalerStatus) Reset() { *m = HorizontalPodAutoscalerStatus{} } func (*HorizontalPodAutoscalerStatus) ProtoMessage() {} func (*HorizontalPodAutoscalerStatus) Descriptor() ([]byte, []int) { - return fileDescriptorGenerated, []int{23} + return fileDescriptorGenerated, []int{24} } func (m *HostPortRange) Reset() { *m = HostPortRange{} } func (*HostPortRange) ProtoMessage() {} -func (*HostPortRange) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{24} } +func (*HostPortRange) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{25} } func (m *IDRange) Reset() { *m = IDRange{} } func (*IDRange) ProtoMessage() {} -func (*IDRange) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{25} } +func (*IDRange) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{26} } func (m *Ingress) Reset() { *m = Ingress{} } func (*Ingress) ProtoMessage() {} -func (*Ingress) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{26} } +func (*Ingress) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{27} } func (m *IngressBackend) Reset() { *m = IngressBackend{} } func (*IngressBackend) ProtoMessage() {} -func (*IngressBackend) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{27} } +func (*IngressBackend) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{28} } func (m *IngressList) Reset() { *m = IngressList{} } func (*IngressList) ProtoMessage() {} -func (*IngressList) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{28} } +func (*IngressList) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{29} } func (m *IngressRule) Reset() { *m = IngressRule{} } func (*IngressRule) ProtoMessage() {} -func (*IngressRule) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{29} } +func (*IngressRule) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{30} } func (m *IngressRuleValue) Reset() { *m = IngressRuleValue{} } func (*IngressRuleValue) ProtoMessage() {} -func (*IngressRuleValue) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{30} } +func (*IngressRuleValue) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{31} } func (m *IngressSpec) Reset() { *m = IngressSpec{} } func (*IngressSpec) ProtoMessage() {} -func (*IngressSpec) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{31} } +func (*IngressSpec) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{32} } func (m *IngressStatus) Reset() { *m = IngressStatus{} } func (*IngressStatus) ProtoMessage() {} -func (*IngressStatus) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{32} } +func (*IngressStatus) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{33} } func (m *IngressTLS) Reset() { *m = IngressTLS{} } func (*IngressTLS) ProtoMessage() {} -func (*IngressTLS) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{33} } +func (*IngressTLS) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{34} } func (m *Job) Reset() { *m = Job{} } func (*Job) ProtoMessage() {} -func (*Job) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{34} } +func (*Job) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{35} } func (m *JobCondition) Reset() { *m = JobCondition{} } func (*JobCondition) ProtoMessage() {} -func (*JobCondition) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{35} } +func (*JobCondition) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{36} } func (m *JobList) Reset() { *m = JobList{} } func (*JobList) ProtoMessage() {} -func (*JobList) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{36} } +func (*JobList) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{37} } func (m *JobSpec) Reset() { *m = JobSpec{} } func (*JobSpec) ProtoMessage() {} -func (*JobSpec) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{37} } +func (*JobSpec) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{38} } func (m *JobStatus) Reset() { *m = JobStatus{} } func (*JobStatus) ProtoMessage() {} -func (*JobStatus) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{38} } - -func (m *LabelSelector) Reset() { *m = LabelSelector{} } -func (*LabelSelector) ProtoMessage() {} -func (*LabelSelector) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{39} } - -func (m *LabelSelectorRequirement) Reset() { *m = LabelSelectorRequirement{} } -func (*LabelSelectorRequirement) ProtoMessage() {} -func (*LabelSelectorRequirement) Descriptor() ([]byte, []int) { - return fileDescriptorGenerated, []int{40} -} - -func (m *ListOptions) Reset() { *m = ListOptions{} } -func (*ListOptions) ProtoMessage() {} -func (*ListOptions) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{41} } +func (*JobStatus) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{39} } func (m *NetworkPolicy) Reset() { *m = NetworkPolicy{} } func (*NetworkPolicy) ProtoMessage() {} -func (*NetworkPolicy) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{42} } +func (*NetworkPolicy) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{40} } func (m *NetworkPolicyIngressRule) Reset() { *m = NetworkPolicyIngressRule{} } func (*NetworkPolicyIngressRule) ProtoMessage() {} func (*NetworkPolicyIngressRule) Descriptor() ([]byte, []int) { - return fileDescriptorGenerated, []int{43} + return fileDescriptorGenerated, []int{41} } func (m *NetworkPolicyList) Reset() { *m = NetworkPolicyList{} } func (*NetworkPolicyList) ProtoMessage() {} -func (*NetworkPolicyList) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{44} } +func (*NetworkPolicyList) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{42} } func (m *NetworkPolicyPeer) Reset() { *m = NetworkPolicyPeer{} } func (*NetworkPolicyPeer) ProtoMessage() {} -func (*NetworkPolicyPeer) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{45} } +func (*NetworkPolicyPeer) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{43} } func (m *NetworkPolicyPort) Reset() { *m = NetworkPolicyPort{} } func (*NetworkPolicyPort) ProtoMessage() {} -func (*NetworkPolicyPort) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{46} } +func (*NetworkPolicyPort) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{44} } func (m *NetworkPolicySpec) Reset() { *m = NetworkPolicySpec{} } func (*NetworkPolicySpec) ProtoMessage() {} -func (*NetworkPolicySpec) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{47} } +func (*NetworkPolicySpec) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{45} } func (m *PodSecurityPolicy) Reset() { *m = PodSecurityPolicy{} } func (*PodSecurityPolicy) ProtoMessage() {} -func (*PodSecurityPolicy) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{48} } +func (*PodSecurityPolicy) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{46} } func (m *PodSecurityPolicyList) Reset() { *m = PodSecurityPolicyList{} } func (*PodSecurityPolicyList) ProtoMessage() {} -func (*PodSecurityPolicyList) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{49} } +func (*PodSecurityPolicyList) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{47} } func (m *PodSecurityPolicySpec) Reset() { *m = PodSecurityPolicySpec{} } func (*PodSecurityPolicySpec) ProtoMessage() {} -func (*PodSecurityPolicySpec) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{50} } +func (*PodSecurityPolicySpec) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{48} } func (m *ReplicaSet) Reset() { *m = ReplicaSet{} } func (*ReplicaSet) ProtoMessage() {} -func (*ReplicaSet) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{51} } +func (*ReplicaSet) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{49} } + +func (m *ReplicaSetCondition) Reset() { *m = ReplicaSetCondition{} } +func (*ReplicaSetCondition) ProtoMessage() {} +func (*ReplicaSetCondition) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{50} } func (m *ReplicaSetList) Reset() { *m = ReplicaSetList{} } func (*ReplicaSetList) ProtoMessage() {} -func (*ReplicaSetList) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{52} } +func (*ReplicaSetList) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{51} } func (m *ReplicaSetSpec) Reset() { *m = ReplicaSetSpec{} } func (*ReplicaSetSpec) ProtoMessage() {} -func (*ReplicaSetSpec) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{53} } +func (*ReplicaSetSpec) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{52} } func (m *ReplicaSetStatus) Reset() { *m = ReplicaSetStatus{} } func (*ReplicaSetStatus) ProtoMessage() {} -func (*ReplicaSetStatus) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{54} } +func (*ReplicaSetStatus) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{53} } func (m *ReplicationControllerDummy) Reset() { *m = ReplicationControllerDummy{} } func (*ReplicationControllerDummy) ProtoMessage() {} func (*ReplicationControllerDummy) Descriptor() ([]byte, []int) { - return fileDescriptorGenerated, []int{55} + return fileDescriptorGenerated, []int{54} } func (m *RollbackConfig) Reset() { *m = RollbackConfig{} } func (*RollbackConfig) ProtoMessage() {} -func (*RollbackConfig) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{56} } +func (*RollbackConfig) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{55} } func (m *RollingUpdateDeployment) Reset() { *m = RollingUpdateDeployment{} } func (*RollingUpdateDeployment) ProtoMessage() {} func (*RollingUpdateDeployment) Descriptor() ([]byte, []int) { - return fileDescriptorGenerated, []int{57} + return fileDescriptorGenerated, []int{56} } func (m *RunAsUserStrategyOptions) Reset() { *m = RunAsUserStrategyOptions{} } func (*RunAsUserStrategyOptions) ProtoMessage() {} func (*RunAsUserStrategyOptions) Descriptor() ([]byte, []int) { - return fileDescriptorGenerated, []int{58} + return fileDescriptorGenerated, []int{57} } func (m *SELinuxStrategyOptions) Reset() { *m = SELinuxStrategyOptions{} } func (*SELinuxStrategyOptions) ProtoMessage() {} -func (*SELinuxStrategyOptions) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{59} } +func (*SELinuxStrategyOptions) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{58} } func (m *Scale) Reset() { *m = Scale{} } func (*Scale) ProtoMessage() {} -func (*Scale) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{60} } +func (*Scale) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{59} } func (m *ScaleSpec) Reset() { *m = ScaleSpec{} } func (*ScaleSpec) ProtoMessage() {} -func (*ScaleSpec) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{61} } +func (*ScaleSpec) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{60} } func (m *ScaleStatus) Reset() { *m = ScaleStatus{} } func (*ScaleStatus) ProtoMessage() {} -func (*ScaleStatus) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{62} } +func (*ScaleStatus) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{61} } func (m *SubresourceReference) Reset() { *m = SubresourceReference{} } func (*SubresourceReference) ProtoMessage() {} -func (*SubresourceReference) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{63} } +func (*SubresourceReference) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{62} } func (m *SupplementalGroupsStrategyOptions) Reset() { *m = SupplementalGroupsStrategyOptions{} } func (*SupplementalGroupsStrategyOptions) ProtoMessage() {} func (*SupplementalGroupsStrategyOptions) Descriptor() ([]byte, []int) { - return fileDescriptorGenerated, []int{64} + return fileDescriptorGenerated, []int{63} } func (m *ThirdPartyResource) Reset() { *m = ThirdPartyResource{} } func (*ThirdPartyResource) ProtoMessage() {} -func (*ThirdPartyResource) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{65} } +func (*ThirdPartyResource) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{64} } func (m *ThirdPartyResourceData) Reset() { *m = ThirdPartyResourceData{} } func (*ThirdPartyResourceData) ProtoMessage() {} -func (*ThirdPartyResourceData) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{66} } +func (*ThirdPartyResourceData) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{65} } func (m *ThirdPartyResourceDataList) Reset() { *m = ThirdPartyResourceDataList{} } func (*ThirdPartyResourceDataList) ProtoMessage() {} func (*ThirdPartyResourceDataList) Descriptor() ([]byte, []int) { - return fileDescriptorGenerated, []int{67} + return fileDescriptorGenerated, []int{66} } func (m *ThirdPartyResourceList) Reset() { *m = ThirdPartyResourceList{} } func (*ThirdPartyResourceList) ProtoMessage() {} -func (*ThirdPartyResourceList) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{68} } +func (*ThirdPartyResourceList) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{67} } func init() { - proto.RegisterType((*APIVersion)(nil), "k8s.io.client-go.1.5.pkg.apis.extensions.v1beta1.APIVersion") - proto.RegisterType((*CPUTargetUtilization)(nil), "k8s.io.client-go.1.5.pkg.apis.extensions.v1beta1.CPUTargetUtilization") - proto.RegisterType((*CustomMetricCurrentStatus)(nil), "k8s.io.client-go.1.5.pkg.apis.extensions.v1beta1.CustomMetricCurrentStatus") - proto.RegisterType((*CustomMetricCurrentStatusList)(nil), "k8s.io.client-go.1.5.pkg.apis.extensions.v1beta1.CustomMetricCurrentStatusList") - proto.RegisterType((*CustomMetricTarget)(nil), "k8s.io.client-go.1.5.pkg.apis.extensions.v1beta1.CustomMetricTarget") - proto.RegisterType((*CustomMetricTargetList)(nil), "k8s.io.client-go.1.5.pkg.apis.extensions.v1beta1.CustomMetricTargetList") - proto.RegisterType((*DaemonSet)(nil), "k8s.io.client-go.1.5.pkg.apis.extensions.v1beta1.DaemonSet") - proto.RegisterType((*DaemonSetList)(nil), "k8s.io.client-go.1.5.pkg.apis.extensions.v1beta1.DaemonSetList") - proto.RegisterType((*DaemonSetSpec)(nil), "k8s.io.client-go.1.5.pkg.apis.extensions.v1beta1.DaemonSetSpec") - proto.RegisterType((*DaemonSetStatus)(nil), "k8s.io.client-go.1.5.pkg.apis.extensions.v1beta1.DaemonSetStatus") - proto.RegisterType((*Deployment)(nil), "k8s.io.client-go.1.5.pkg.apis.extensions.v1beta1.Deployment") - proto.RegisterType((*DeploymentList)(nil), "k8s.io.client-go.1.5.pkg.apis.extensions.v1beta1.DeploymentList") - proto.RegisterType((*DeploymentRollback)(nil), "k8s.io.client-go.1.5.pkg.apis.extensions.v1beta1.DeploymentRollback") - proto.RegisterType((*DeploymentSpec)(nil), "k8s.io.client-go.1.5.pkg.apis.extensions.v1beta1.DeploymentSpec") - proto.RegisterType((*DeploymentStatus)(nil), "k8s.io.client-go.1.5.pkg.apis.extensions.v1beta1.DeploymentStatus") - proto.RegisterType((*DeploymentStrategy)(nil), "k8s.io.client-go.1.5.pkg.apis.extensions.v1beta1.DeploymentStrategy") - proto.RegisterType((*ExportOptions)(nil), "k8s.io.client-go.1.5.pkg.apis.extensions.v1beta1.ExportOptions") - proto.RegisterType((*FSGroupStrategyOptions)(nil), "k8s.io.client-go.1.5.pkg.apis.extensions.v1beta1.FSGroupStrategyOptions") - proto.RegisterType((*HTTPIngressPath)(nil), "k8s.io.client-go.1.5.pkg.apis.extensions.v1beta1.HTTPIngressPath") - proto.RegisterType((*HTTPIngressRuleValue)(nil), "k8s.io.client-go.1.5.pkg.apis.extensions.v1beta1.HTTPIngressRuleValue") - proto.RegisterType((*HorizontalPodAutoscaler)(nil), "k8s.io.client-go.1.5.pkg.apis.extensions.v1beta1.HorizontalPodAutoscaler") - proto.RegisterType((*HorizontalPodAutoscalerList)(nil), "k8s.io.client-go.1.5.pkg.apis.extensions.v1beta1.HorizontalPodAutoscalerList") - proto.RegisterType((*HorizontalPodAutoscalerSpec)(nil), "k8s.io.client-go.1.5.pkg.apis.extensions.v1beta1.HorizontalPodAutoscalerSpec") - proto.RegisterType((*HorizontalPodAutoscalerStatus)(nil), "k8s.io.client-go.1.5.pkg.apis.extensions.v1beta1.HorizontalPodAutoscalerStatus") - proto.RegisterType((*HostPortRange)(nil), "k8s.io.client-go.1.5.pkg.apis.extensions.v1beta1.HostPortRange") - proto.RegisterType((*IDRange)(nil), "k8s.io.client-go.1.5.pkg.apis.extensions.v1beta1.IDRange") - proto.RegisterType((*Ingress)(nil), "k8s.io.client-go.1.5.pkg.apis.extensions.v1beta1.Ingress") - proto.RegisterType((*IngressBackend)(nil), "k8s.io.client-go.1.5.pkg.apis.extensions.v1beta1.IngressBackend") - proto.RegisterType((*IngressList)(nil), "k8s.io.client-go.1.5.pkg.apis.extensions.v1beta1.IngressList") - proto.RegisterType((*IngressRule)(nil), "k8s.io.client-go.1.5.pkg.apis.extensions.v1beta1.IngressRule") - proto.RegisterType((*IngressRuleValue)(nil), "k8s.io.client-go.1.5.pkg.apis.extensions.v1beta1.IngressRuleValue") - proto.RegisterType((*IngressSpec)(nil), "k8s.io.client-go.1.5.pkg.apis.extensions.v1beta1.IngressSpec") - proto.RegisterType((*IngressStatus)(nil), "k8s.io.client-go.1.5.pkg.apis.extensions.v1beta1.IngressStatus") - proto.RegisterType((*IngressTLS)(nil), "k8s.io.client-go.1.5.pkg.apis.extensions.v1beta1.IngressTLS") - proto.RegisterType((*Job)(nil), "k8s.io.client-go.1.5.pkg.apis.extensions.v1beta1.Job") - proto.RegisterType((*JobCondition)(nil), "k8s.io.client-go.1.5.pkg.apis.extensions.v1beta1.JobCondition") - proto.RegisterType((*JobList)(nil), "k8s.io.client-go.1.5.pkg.apis.extensions.v1beta1.JobList") - proto.RegisterType((*JobSpec)(nil), "k8s.io.client-go.1.5.pkg.apis.extensions.v1beta1.JobSpec") - proto.RegisterType((*JobStatus)(nil), "k8s.io.client-go.1.5.pkg.apis.extensions.v1beta1.JobStatus") - proto.RegisterType((*LabelSelector)(nil), "k8s.io.client-go.1.5.pkg.apis.extensions.v1beta1.LabelSelector") - proto.RegisterType((*LabelSelectorRequirement)(nil), "k8s.io.client-go.1.5.pkg.apis.extensions.v1beta1.LabelSelectorRequirement") - proto.RegisterType((*ListOptions)(nil), "k8s.io.client-go.1.5.pkg.apis.extensions.v1beta1.ListOptions") - proto.RegisterType((*NetworkPolicy)(nil), "k8s.io.client-go.1.5.pkg.apis.extensions.v1beta1.NetworkPolicy") - proto.RegisterType((*NetworkPolicyIngressRule)(nil), "k8s.io.client-go.1.5.pkg.apis.extensions.v1beta1.NetworkPolicyIngressRule") - proto.RegisterType((*NetworkPolicyList)(nil), "k8s.io.client-go.1.5.pkg.apis.extensions.v1beta1.NetworkPolicyList") - proto.RegisterType((*NetworkPolicyPeer)(nil), "k8s.io.client-go.1.5.pkg.apis.extensions.v1beta1.NetworkPolicyPeer") - proto.RegisterType((*NetworkPolicyPort)(nil), "k8s.io.client-go.1.5.pkg.apis.extensions.v1beta1.NetworkPolicyPort") - proto.RegisterType((*NetworkPolicySpec)(nil), "k8s.io.client-go.1.5.pkg.apis.extensions.v1beta1.NetworkPolicySpec") - proto.RegisterType((*PodSecurityPolicy)(nil), "k8s.io.client-go.1.5.pkg.apis.extensions.v1beta1.PodSecurityPolicy") - proto.RegisterType((*PodSecurityPolicyList)(nil), "k8s.io.client-go.1.5.pkg.apis.extensions.v1beta1.PodSecurityPolicyList") - proto.RegisterType((*PodSecurityPolicySpec)(nil), "k8s.io.client-go.1.5.pkg.apis.extensions.v1beta1.PodSecurityPolicySpec") - proto.RegisterType((*ReplicaSet)(nil), "k8s.io.client-go.1.5.pkg.apis.extensions.v1beta1.ReplicaSet") - proto.RegisterType((*ReplicaSetList)(nil), "k8s.io.client-go.1.5.pkg.apis.extensions.v1beta1.ReplicaSetList") - proto.RegisterType((*ReplicaSetSpec)(nil), "k8s.io.client-go.1.5.pkg.apis.extensions.v1beta1.ReplicaSetSpec") - proto.RegisterType((*ReplicaSetStatus)(nil), "k8s.io.client-go.1.5.pkg.apis.extensions.v1beta1.ReplicaSetStatus") - proto.RegisterType((*ReplicationControllerDummy)(nil), "k8s.io.client-go.1.5.pkg.apis.extensions.v1beta1.ReplicationControllerDummy") - proto.RegisterType((*RollbackConfig)(nil), "k8s.io.client-go.1.5.pkg.apis.extensions.v1beta1.RollbackConfig") - proto.RegisterType((*RollingUpdateDeployment)(nil), "k8s.io.client-go.1.5.pkg.apis.extensions.v1beta1.RollingUpdateDeployment") - proto.RegisterType((*RunAsUserStrategyOptions)(nil), "k8s.io.client-go.1.5.pkg.apis.extensions.v1beta1.RunAsUserStrategyOptions") - proto.RegisterType((*SELinuxStrategyOptions)(nil), "k8s.io.client-go.1.5.pkg.apis.extensions.v1beta1.SELinuxStrategyOptions") - proto.RegisterType((*Scale)(nil), "k8s.io.client-go.1.5.pkg.apis.extensions.v1beta1.Scale") - proto.RegisterType((*ScaleSpec)(nil), "k8s.io.client-go.1.5.pkg.apis.extensions.v1beta1.ScaleSpec") - proto.RegisterType((*ScaleStatus)(nil), "k8s.io.client-go.1.5.pkg.apis.extensions.v1beta1.ScaleStatus") - proto.RegisterType((*SubresourceReference)(nil), "k8s.io.client-go.1.5.pkg.apis.extensions.v1beta1.SubresourceReference") - proto.RegisterType((*SupplementalGroupsStrategyOptions)(nil), "k8s.io.client-go.1.5.pkg.apis.extensions.v1beta1.SupplementalGroupsStrategyOptions") - proto.RegisterType((*ThirdPartyResource)(nil), "k8s.io.client-go.1.5.pkg.apis.extensions.v1beta1.ThirdPartyResource") - proto.RegisterType((*ThirdPartyResourceData)(nil), "k8s.io.client-go.1.5.pkg.apis.extensions.v1beta1.ThirdPartyResourceData") - proto.RegisterType((*ThirdPartyResourceDataList)(nil), "k8s.io.client-go.1.5.pkg.apis.extensions.v1beta1.ThirdPartyResourceDataList") - proto.RegisterType((*ThirdPartyResourceList)(nil), "k8s.io.client-go.1.5.pkg.apis.extensions.v1beta1.ThirdPartyResourceList") + proto.RegisterType((*APIVersion)(nil), "k8s.io.client-go.pkg.apis.extensions.v1beta1.APIVersion") + proto.RegisterType((*CPUTargetUtilization)(nil), "k8s.io.client-go.pkg.apis.extensions.v1beta1.CPUTargetUtilization") + proto.RegisterType((*CustomMetricCurrentStatus)(nil), "k8s.io.client-go.pkg.apis.extensions.v1beta1.CustomMetricCurrentStatus") + proto.RegisterType((*CustomMetricCurrentStatusList)(nil), "k8s.io.client-go.pkg.apis.extensions.v1beta1.CustomMetricCurrentStatusList") + proto.RegisterType((*CustomMetricTarget)(nil), "k8s.io.client-go.pkg.apis.extensions.v1beta1.CustomMetricTarget") + proto.RegisterType((*CustomMetricTargetList)(nil), "k8s.io.client-go.pkg.apis.extensions.v1beta1.CustomMetricTargetList") + proto.RegisterType((*DaemonSet)(nil), "k8s.io.client-go.pkg.apis.extensions.v1beta1.DaemonSet") + proto.RegisterType((*DaemonSetList)(nil), "k8s.io.client-go.pkg.apis.extensions.v1beta1.DaemonSetList") + proto.RegisterType((*DaemonSetSpec)(nil), "k8s.io.client-go.pkg.apis.extensions.v1beta1.DaemonSetSpec") + proto.RegisterType((*DaemonSetStatus)(nil), "k8s.io.client-go.pkg.apis.extensions.v1beta1.DaemonSetStatus") + proto.RegisterType((*Deployment)(nil), "k8s.io.client-go.pkg.apis.extensions.v1beta1.Deployment") + proto.RegisterType((*DeploymentCondition)(nil), "k8s.io.client-go.pkg.apis.extensions.v1beta1.DeploymentCondition") + proto.RegisterType((*DeploymentList)(nil), "k8s.io.client-go.pkg.apis.extensions.v1beta1.DeploymentList") + proto.RegisterType((*DeploymentRollback)(nil), "k8s.io.client-go.pkg.apis.extensions.v1beta1.DeploymentRollback") + proto.RegisterType((*DeploymentSpec)(nil), "k8s.io.client-go.pkg.apis.extensions.v1beta1.DeploymentSpec") + proto.RegisterType((*DeploymentStatus)(nil), "k8s.io.client-go.pkg.apis.extensions.v1beta1.DeploymentStatus") + proto.RegisterType((*DeploymentStrategy)(nil), "k8s.io.client-go.pkg.apis.extensions.v1beta1.DeploymentStrategy") + proto.RegisterType((*ExportOptions)(nil), "k8s.io.client-go.pkg.apis.extensions.v1beta1.ExportOptions") + proto.RegisterType((*FSGroupStrategyOptions)(nil), "k8s.io.client-go.pkg.apis.extensions.v1beta1.FSGroupStrategyOptions") + proto.RegisterType((*HTTPIngressPath)(nil), "k8s.io.client-go.pkg.apis.extensions.v1beta1.HTTPIngressPath") + proto.RegisterType((*HTTPIngressRuleValue)(nil), "k8s.io.client-go.pkg.apis.extensions.v1beta1.HTTPIngressRuleValue") + proto.RegisterType((*HorizontalPodAutoscaler)(nil), "k8s.io.client-go.pkg.apis.extensions.v1beta1.HorizontalPodAutoscaler") + proto.RegisterType((*HorizontalPodAutoscalerList)(nil), "k8s.io.client-go.pkg.apis.extensions.v1beta1.HorizontalPodAutoscalerList") + proto.RegisterType((*HorizontalPodAutoscalerSpec)(nil), "k8s.io.client-go.pkg.apis.extensions.v1beta1.HorizontalPodAutoscalerSpec") + proto.RegisterType((*HorizontalPodAutoscalerStatus)(nil), "k8s.io.client-go.pkg.apis.extensions.v1beta1.HorizontalPodAutoscalerStatus") + proto.RegisterType((*HostPortRange)(nil), "k8s.io.client-go.pkg.apis.extensions.v1beta1.HostPortRange") + proto.RegisterType((*IDRange)(nil), "k8s.io.client-go.pkg.apis.extensions.v1beta1.IDRange") + proto.RegisterType((*Ingress)(nil), "k8s.io.client-go.pkg.apis.extensions.v1beta1.Ingress") + proto.RegisterType((*IngressBackend)(nil), "k8s.io.client-go.pkg.apis.extensions.v1beta1.IngressBackend") + proto.RegisterType((*IngressList)(nil), "k8s.io.client-go.pkg.apis.extensions.v1beta1.IngressList") + proto.RegisterType((*IngressRule)(nil), "k8s.io.client-go.pkg.apis.extensions.v1beta1.IngressRule") + proto.RegisterType((*IngressRuleValue)(nil), "k8s.io.client-go.pkg.apis.extensions.v1beta1.IngressRuleValue") + proto.RegisterType((*IngressSpec)(nil), "k8s.io.client-go.pkg.apis.extensions.v1beta1.IngressSpec") + proto.RegisterType((*IngressStatus)(nil), "k8s.io.client-go.pkg.apis.extensions.v1beta1.IngressStatus") + proto.RegisterType((*IngressTLS)(nil), "k8s.io.client-go.pkg.apis.extensions.v1beta1.IngressTLS") + proto.RegisterType((*Job)(nil), "k8s.io.client-go.pkg.apis.extensions.v1beta1.Job") + proto.RegisterType((*JobCondition)(nil), "k8s.io.client-go.pkg.apis.extensions.v1beta1.JobCondition") + proto.RegisterType((*JobList)(nil), "k8s.io.client-go.pkg.apis.extensions.v1beta1.JobList") + proto.RegisterType((*JobSpec)(nil), "k8s.io.client-go.pkg.apis.extensions.v1beta1.JobSpec") + proto.RegisterType((*JobStatus)(nil), "k8s.io.client-go.pkg.apis.extensions.v1beta1.JobStatus") + proto.RegisterType((*NetworkPolicy)(nil), "k8s.io.client-go.pkg.apis.extensions.v1beta1.NetworkPolicy") + proto.RegisterType((*NetworkPolicyIngressRule)(nil), "k8s.io.client-go.pkg.apis.extensions.v1beta1.NetworkPolicyIngressRule") + proto.RegisterType((*NetworkPolicyList)(nil), "k8s.io.client-go.pkg.apis.extensions.v1beta1.NetworkPolicyList") + proto.RegisterType((*NetworkPolicyPeer)(nil), "k8s.io.client-go.pkg.apis.extensions.v1beta1.NetworkPolicyPeer") + proto.RegisterType((*NetworkPolicyPort)(nil), "k8s.io.client-go.pkg.apis.extensions.v1beta1.NetworkPolicyPort") + proto.RegisterType((*NetworkPolicySpec)(nil), "k8s.io.client-go.pkg.apis.extensions.v1beta1.NetworkPolicySpec") + proto.RegisterType((*PodSecurityPolicy)(nil), "k8s.io.client-go.pkg.apis.extensions.v1beta1.PodSecurityPolicy") + proto.RegisterType((*PodSecurityPolicyList)(nil), "k8s.io.client-go.pkg.apis.extensions.v1beta1.PodSecurityPolicyList") + proto.RegisterType((*PodSecurityPolicySpec)(nil), "k8s.io.client-go.pkg.apis.extensions.v1beta1.PodSecurityPolicySpec") + proto.RegisterType((*ReplicaSet)(nil), "k8s.io.client-go.pkg.apis.extensions.v1beta1.ReplicaSet") + proto.RegisterType((*ReplicaSetCondition)(nil), "k8s.io.client-go.pkg.apis.extensions.v1beta1.ReplicaSetCondition") + proto.RegisterType((*ReplicaSetList)(nil), "k8s.io.client-go.pkg.apis.extensions.v1beta1.ReplicaSetList") + proto.RegisterType((*ReplicaSetSpec)(nil), "k8s.io.client-go.pkg.apis.extensions.v1beta1.ReplicaSetSpec") + proto.RegisterType((*ReplicaSetStatus)(nil), "k8s.io.client-go.pkg.apis.extensions.v1beta1.ReplicaSetStatus") + proto.RegisterType((*ReplicationControllerDummy)(nil), "k8s.io.client-go.pkg.apis.extensions.v1beta1.ReplicationControllerDummy") + proto.RegisterType((*RollbackConfig)(nil), "k8s.io.client-go.pkg.apis.extensions.v1beta1.RollbackConfig") + proto.RegisterType((*RollingUpdateDeployment)(nil), "k8s.io.client-go.pkg.apis.extensions.v1beta1.RollingUpdateDeployment") + proto.RegisterType((*RunAsUserStrategyOptions)(nil), "k8s.io.client-go.pkg.apis.extensions.v1beta1.RunAsUserStrategyOptions") + proto.RegisterType((*SELinuxStrategyOptions)(nil), "k8s.io.client-go.pkg.apis.extensions.v1beta1.SELinuxStrategyOptions") + proto.RegisterType((*Scale)(nil), "k8s.io.client-go.pkg.apis.extensions.v1beta1.Scale") + proto.RegisterType((*ScaleSpec)(nil), "k8s.io.client-go.pkg.apis.extensions.v1beta1.ScaleSpec") + proto.RegisterType((*ScaleStatus)(nil), "k8s.io.client-go.pkg.apis.extensions.v1beta1.ScaleStatus") + proto.RegisterType((*SubresourceReference)(nil), "k8s.io.client-go.pkg.apis.extensions.v1beta1.SubresourceReference") + proto.RegisterType((*SupplementalGroupsStrategyOptions)(nil), "k8s.io.client-go.pkg.apis.extensions.v1beta1.SupplementalGroupsStrategyOptions") + proto.RegisterType((*ThirdPartyResource)(nil), "k8s.io.client-go.pkg.apis.extensions.v1beta1.ThirdPartyResource") + proto.RegisterType((*ThirdPartyResourceData)(nil), "k8s.io.client-go.pkg.apis.extensions.v1beta1.ThirdPartyResourceData") + proto.RegisterType((*ThirdPartyResourceDataList)(nil), "k8s.io.client-go.pkg.apis.extensions.v1beta1.ThirdPartyResourceDataList") + proto.RegisterType((*ThirdPartyResourceList)(nil), "k8s.io.client-go.pkg.apis.extensions.v1beta1.ThirdPartyResourceList") } func (m *APIVersion) Marshal() (data []byte, err error) { size := m.Size() @@ -797,6 +789,9 @@ func (m *DaemonSetStatus) MarshalTo(data []byte) (int, error) { data[i] = 0x18 i++ i = encodeVarintGenerated(data, i, uint64(m.DesiredNumberScheduled)) + data[i] = 0x20 + i++ + i = encodeVarintGenerated(data, i, uint64(m.NumberReady)) return i, nil } @@ -842,6 +837,56 @@ func (m *Deployment) MarshalTo(data []byte) (int, error) { return i, nil } +func (m *DeploymentCondition) Marshal() (data []byte, err error) { + size := m.Size() + data = make([]byte, size) + n, err := m.MarshalTo(data) + if err != nil { + return nil, err + } + return data[:n], nil +} + +func (m *DeploymentCondition) 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] = 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.Message))) + i += copy(data[i:], m.Message) + data[i] = 0x32 + i++ + i = encodeVarintGenerated(data, i, uint64(m.LastUpdateTime.Size())) + n12, err := m.LastUpdateTime.MarshalTo(data[i:]) + if err != nil { + return 0, err + } + i += n12 + data[i] = 0x3a + i++ + i = encodeVarintGenerated(data, i, uint64(m.LastTransitionTime.Size())) + n13, err := m.LastTransitionTime.MarshalTo(data[i:]) + if err != nil { + return 0, err + } + i += n13 + return i, nil +} + func (m *DeploymentList) Marshal() (data []byte, err error) { size := m.Size() data = make([]byte, size) @@ -860,11 +905,11 @@ func (m *DeploymentList) MarshalTo(data []byte) (int, error) { data[i] = 0xa i++ i = encodeVarintGenerated(data, i, uint64(m.ListMeta.Size())) - n12, err := m.ListMeta.MarshalTo(data[i:]) + n14, err := m.ListMeta.MarshalTo(data[i:]) if err != nil { return 0, err } - i += n12 + i += n14 if len(m.Items) > 0 { for _, msg := range m.Items { data[i] = 0x12 @@ -919,11 +964,11 @@ func (m *DeploymentRollback) MarshalTo(data []byte) (int, error) { data[i] = 0x1a i++ i = encodeVarintGenerated(data, i, uint64(m.RollbackTo.Size())) - n13, err := m.RollbackTo.MarshalTo(data[i:]) + n15, err := m.RollbackTo.MarshalTo(data[i:]) if err != nil { return 0, err } - i += n13 + i += n15 return i, nil } @@ -951,28 +996,28 @@ func (m *DeploymentSpec) MarshalTo(data []byte) (int, error) { data[i] = 0x12 i++ i = encodeVarintGenerated(data, i, uint64(m.Selector.Size())) - n14, err := m.Selector.MarshalTo(data[i:]) + n16, err := m.Selector.MarshalTo(data[i:]) if err != nil { return 0, err } - i += n14 + i += n16 } data[i] = 0x1a i++ i = encodeVarintGenerated(data, i, uint64(m.Template.Size())) - n15, err := m.Template.MarshalTo(data[i:]) + n17, err := m.Template.MarshalTo(data[i:]) if err != nil { return 0, err } - i += n15 + i += n17 data[i] = 0x22 i++ i = encodeVarintGenerated(data, i, uint64(m.Strategy.Size())) - n16, err := m.Strategy.MarshalTo(data[i:]) + n18, err := m.Strategy.MarshalTo(data[i:]) if err != nil { return 0, err } - i += n16 + i += n18 data[i] = 0x28 i++ i = encodeVarintGenerated(data, i, uint64(m.MinReadySeconds)) @@ -993,11 +1038,16 @@ func (m *DeploymentSpec) MarshalTo(data []byte) (int, error) { data[i] = 0x42 i++ i = encodeVarintGenerated(data, i, uint64(m.RollbackTo.Size())) - n17, err := m.RollbackTo.MarshalTo(data[i:]) + n19, err := m.RollbackTo.MarshalTo(data[i:]) if err != nil { return 0, err } - i += n17 + i += n19 + } + if m.ProgressDeadlineSeconds != nil { + data[i] = 0x48 + i++ + i = encodeVarintGenerated(data, i, uint64(*m.ProgressDeadlineSeconds)) } return i, nil } @@ -1032,6 +1082,18 @@ func (m *DeploymentStatus) MarshalTo(data []byte) (int, error) { data[i] = 0x28 i++ i = encodeVarintGenerated(data, i, uint64(m.UnavailableReplicas)) + if len(m.Conditions) > 0 { + for _, msg := range m.Conditions { + 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 + } + } return i, nil } @@ -1058,11 +1120,11 @@ func (m *DeploymentStrategy) MarshalTo(data []byte) (int, error) { data[i] = 0x12 i++ i = encodeVarintGenerated(data, i, uint64(m.RollingUpdate.Size())) - n18, err := m.RollingUpdate.MarshalTo(data[i:]) + n20, err := m.RollingUpdate.MarshalTo(data[i:]) if err != nil { return 0, err } - i += n18 + i += n20 } return i, nil } @@ -1157,11 +1219,11 @@ func (m *HTTPIngressPath) MarshalTo(data []byte) (int, error) { data[i] = 0x12 i++ i = encodeVarintGenerated(data, i, uint64(m.Backend.Size())) - n19, err := m.Backend.MarshalTo(data[i:]) + n21, err := m.Backend.MarshalTo(data[i:]) if err != nil { return 0, err } - i += n19 + i += n21 return i, nil } @@ -1213,27 +1275,27 @@ func (m *HorizontalPodAutoscaler) MarshalTo(data []byte) (int, error) { data[i] = 0xa i++ i = encodeVarintGenerated(data, i, uint64(m.ObjectMeta.Size())) - n20, err := m.ObjectMeta.MarshalTo(data[i:]) - if err != nil { - return 0, err - } - i += n20 - data[i] = 0x12 - i++ - i = encodeVarintGenerated(data, i, uint64(m.Spec.Size())) - n21, err := m.Spec.MarshalTo(data[i:]) - if err != nil { - return 0, err - } - i += n21 - data[i] = 0x1a - i++ - i = encodeVarintGenerated(data, i, uint64(m.Status.Size())) - n22, err := m.Status.MarshalTo(data[i:]) + n22, err := m.ObjectMeta.MarshalTo(data[i:]) if err != nil { return 0, err } i += n22 + data[i] = 0x12 + i++ + i = encodeVarintGenerated(data, i, uint64(m.Spec.Size())) + n23, err := m.Spec.MarshalTo(data[i:]) + if err != nil { + return 0, err + } + i += n23 + data[i] = 0x1a + i++ + i = encodeVarintGenerated(data, i, uint64(m.Status.Size())) + n24, err := m.Status.MarshalTo(data[i:]) + if err != nil { + return 0, err + } + i += n24 return i, nil } @@ -1255,11 +1317,11 @@ func (m *HorizontalPodAutoscalerList) MarshalTo(data []byte) (int, error) { data[i] = 0xa i++ i = encodeVarintGenerated(data, i, uint64(m.ListMeta.Size())) - n23, err := m.ListMeta.MarshalTo(data[i:]) + n25, err := m.ListMeta.MarshalTo(data[i:]) if err != nil { return 0, err } - i += n23 + i += n25 if len(m.Items) > 0 { for _, msg := range m.Items { data[i] = 0x12 @@ -1293,11 +1355,11 @@ func (m *HorizontalPodAutoscalerSpec) MarshalTo(data []byte) (int, error) { data[i] = 0xa i++ i = encodeVarintGenerated(data, i, uint64(m.ScaleRef.Size())) - n24, err := m.ScaleRef.MarshalTo(data[i:]) + n26, err := m.ScaleRef.MarshalTo(data[i:]) if err != nil { return 0, err } - i += n24 + i += n26 if m.MinReplicas != nil { data[i] = 0x10 i++ @@ -1310,11 +1372,11 @@ func (m *HorizontalPodAutoscalerSpec) MarshalTo(data []byte) (int, error) { data[i] = 0x22 i++ i = encodeVarintGenerated(data, i, uint64(m.CPUUtilization.Size())) - n25, err := m.CPUUtilization.MarshalTo(data[i:]) + n27, err := m.CPUUtilization.MarshalTo(data[i:]) if err != nil { return 0, err } - i += n25 + i += n27 } return i, nil } @@ -1343,11 +1405,11 @@ func (m *HorizontalPodAutoscalerStatus) MarshalTo(data []byte) (int, error) { data[i] = 0x12 i++ i = encodeVarintGenerated(data, i, uint64(m.LastScaleTime.Size())) - n26, err := m.LastScaleTime.MarshalTo(data[i:]) + n28, err := m.LastScaleTime.MarshalTo(data[i:]) if err != nil { return 0, err } - i += n26 + i += n28 } data[i] = 0x18 i++ @@ -1429,27 +1491,27 @@ func (m *Ingress) MarshalTo(data []byte) (int, error) { data[i] = 0xa i++ i = encodeVarintGenerated(data, i, uint64(m.ObjectMeta.Size())) - n27, err := m.ObjectMeta.MarshalTo(data[i:]) - if err != nil { - return 0, err - } - i += n27 - data[i] = 0x12 - i++ - i = encodeVarintGenerated(data, i, uint64(m.Spec.Size())) - n28, err := m.Spec.MarshalTo(data[i:]) - if err != nil { - return 0, err - } - i += n28 - data[i] = 0x1a - i++ - i = encodeVarintGenerated(data, i, uint64(m.Status.Size())) - n29, err := m.Status.MarshalTo(data[i:]) + n29, err := m.ObjectMeta.MarshalTo(data[i:]) if err != nil { return 0, err } i += n29 + data[i] = 0x12 + i++ + i = encodeVarintGenerated(data, i, uint64(m.Spec.Size())) + n30, err := m.Spec.MarshalTo(data[i:]) + if err != nil { + return 0, err + } + i += n30 + data[i] = 0x1a + i++ + i = encodeVarintGenerated(data, i, uint64(m.Status.Size())) + n31, err := m.Status.MarshalTo(data[i:]) + if err != nil { + return 0, err + } + i += n31 return i, nil } @@ -1475,11 +1537,11 @@ func (m *IngressBackend) MarshalTo(data []byte) (int, error) { data[i] = 0x12 i++ i = encodeVarintGenerated(data, i, uint64(m.ServicePort.Size())) - n30, err := m.ServicePort.MarshalTo(data[i:]) + n32, err := m.ServicePort.MarshalTo(data[i:]) if err != nil { return 0, err } - i += n30 + i += n32 return i, nil } @@ -1501,11 +1563,11 @@ func (m *IngressList) MarshalTo(data []byte) (int, error) { data[i] = 0xa i++ i = encodeVarintGenerated(data, i, uint64(m.ListMeta.Size())) - n31, err := m.ListMeta.MarshalTo(data[i:]) + n33, err := m.ListMeta.MarshalTo(data[i:]) if err != nil { return 0, err } - i += n31 + i += n33 if len(m.Items) > 0 { for _, msg := range m.Items { data[i] = 0x12 @@ -1543,11 +1605,11 @@ func (m *IngressRule) MarshalTo(data []byte) (int, error) { data[i] = 0x12 i++ i = encodeVarintGenerated(data, i, uint64(m.IngressRuleValue.Size())) - n32, err := m.IngressRuleValue.MarshalTo(data[i:]) + n34, err := m.IngressRuleValue.MarshalTo(data[i:]) if err != nil { return 0, err } - i += n32 + i += n34 return i, nil } @@ -1570,11 +1632,11 @@ func (m *IngressRuleValue) MarshalTo(data []byte) (int, error) { data[i] = 0xa i++ i = encodeVarintGenerated(data, i, uint64(m.HTTP.Size())) - n33, err := m.HTTP.MarshalTo(data[i:]) + n35, err := m.HTTP.MarshalTo(data[i:]) if err != nil { return 0, err } - i += n33 + i += n35 } return i, nil } @@ -1598,11 +1660,11 @@ func (m *IngressSpec) MarshalTo(data []byte) (int, error) { data[i] = 0xa i++ i = encodeVarintGenerated(data, i, uint64(m.Backend.Size())) - n34, err := m.Backend.MarshalTo(data[i:]) + n36, err := m.Backend.MarshalTo(data[i:]) if err != nil { return 0, err } - i += n34 + i += n36 } if len(m.TLS) > 0 { for _, msg := range m.TLS { @@ -1649,11 +1711,11 @@ func (m *IngressStatus) MarshalTo(data []byte) (int, error) { data[i] = 0xa i++ i = encodeVarintGenerated(data, i, uint64(m.LoadBalancer.Size())) - n35, err := m.LoadBalancer.MarshalTo(data[i:]) + n37, err := m.LoadBalancer.MarshalTo(data[i:]) if err != nil { return 0, err } - i += n35 + i += n37 return i, nil } @@ -1712,27 +1774,27 @@ func (m *Job) MarshalTo(data []byte) (int, error) { data[i] = 0xa i++ i = encodeVarintGenerated(data, i, uint64(m.ObjectMeta.Size())) - n36, err := m.ObjectMeta.MarshalTo(data[i:]) - if err != nil { - return 0, err - } - i += n36 - data[i] = 0x12 - i++ - i = encodeVarintGenerated(data, i, uint64(m.Spec.Size())) - n37, err := m.Spec.MarshalTo(data[i:]) - if err != nil { - return 0, err - } - i += n37 - data[i] = 0x1a - i++ - i = encodeVarintGenerated(data, i, uint64(m.Status.Size())) - n38, err := m.Status.MarshalTo(data[i:]) + n38, err := m.ObjectMeta.MarshalTo(data[i:]) if err != nil { return 0, err } i += n38 + data[i] = 0x12 + i++ + i = encodeVarintGenerated(data, i, uint64(m.Spec.Size())) + n39, err := m.Spec.MarshalTo(data[i:]) + if err != nil { + return 0, err + } + i += n39 + data[i] = 0x1a + i++ + i = encodeVarintGenerated(data, i, uint64(m.Status.Size())) + n40, err := m.Status.MarshalTo(data[i:]) + if err != nil { + return 0, err + } + i += n40 return i, nil } @@ -1762,19 +1824,19 @@ func (m *JobCondition) MarshalTo(data []byte) (int, error) { data[i] = 0x1a i++ i = encodeVarintGenerated(data, i, uint64(m.LastProbeTime.Size())) - n39, err := m.LastProbeTime.MarshalTo(data[i:]) + n41, err := m.LastProbeTime.MarshalTo(data[i:]) if err != nil { return 0, err } - i += n39 + i += n41 data[i] = 0x22 i++ i = encodeVarintGenerated(data, i, uint64(m.LastTransitionTime.Size())) - n40, err := m.LastTransitionTime.MarshalTo(data[i:]) + n42, err := m.LastTransitionTime.MarshalTo(data[i:]) if err != nil { return 0, err } - i += n40 + i += n42 data[i] = 0x2a i++ i = encodeVarintGenerated(data, i, uint64(len(m.Reason))) @@ -1804,11 +1866,11 @@ func (m *JobList) MarshalTo(data []byte) (int, error) { data[i] = 0xa i++ i = encodeVarintGenerated(data, i, uint64(m.ListMeta.Size())) - n41, err := m.ListMeta.MarshalTo(data[i:]) + n43, err := m.ListMeta.MarshalTo(data[i:]) if err != nil { return 0, err } - i += n41 + i += n43 if len(m.Items) > 0 { for _, msg := range m.Items { data[i] = 0x12 @@ -1858,11 +1920,11 @@ func (m *JobSpec) MarshalTo(data []byte) (int, error) { data[i] = 0x22 i++ i = encodeVarintGenerated(data, i, uint64(m.Selector.Size())) - n42, err := m.Selector.MarshalTo(data[i:]) + n44, err := m.Selector.MarshalTo(data[i:]) if err != nil { return 0, err } - i += n42 + i += n44 } if m.AutoSelector != nil { data[i] = 0x28 @@ -1877,11 +1939,11 @@ func (m *JobSpec) MarshalTo(data []byte) (int, error) { data[i] = 0x32 i++ i = encodeVarintGenerated(data, i, uint64(m.Template.Size())) - n43, err := m.Template.MarshalTo(data[i:]) + n45, err := m.Template.MarshalTo(data[i:]) if err != nil { return 0, err } - i += n43 + i += n45 return i, nil } @@ -1916,21 +1978,21 @@ func (m *JobStatus) MarshalTo(data []byte) (int, error) { data[i] = 0x12 i++ i = encodeVarintGenerated(data, i, uint64(m.StartTime.Size())) - n44, err := m.StartTime.MarshalTo(data[i:]) + n46, err := m.StartTime.MarshalTo(data[i:]) if err != nil { return 0, err } - i += n44 + i += n46 } if m.CompletionTime != nil { data[i] = 0x1a i++ i = encodeVarintGenerated(data, i, uint64(m.CompletionTime.Size())) - n45, err := m.CompletionTime.MarshalTo(data[i:]) + n47, err := m.CompletionTime.MarshalTo(data[i:]) if err != nil { return 0, err } - i += n45 + i += n47 } data[i] = 0x20 i++ @@ -1944,137 +2006,6 @@ func (m *JobStatus) MarshalTo(data []byte) (int, error) { 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 *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 *NetworkPolicy) Marshal() (data []byte, err error) { size := m.Size() data = make([]byte, size) @@ -2093,19 +2024,19 @@ func (m *NetworkPolicy) MarshalTo(data []byte) (int, error) { data[i] = 0xa i++ i = encodeVarintGenerated(data, i, uint64(m.ObjectMeta.Size())) - n46, err := m.ObjectMeta.MarshalTo(data[i:]) + n48, err := m.ObjectMeta.MarshalTo(data[i:]) if err != nil { return 0, err } - i += n46 + i += n48 data[i] = 0x12 i++ i = encodeVarintGenerated(data, i, uint64(m.Spec.Size())) - n47, err := m.Spec.MarshalTo(data[i:]) + n49, err := m.Spec.MarshalTo(data[i:]) if err != nil { return 0, err } - i += n47 + i += n49 return i, nil } @@ -2169,11 +2100,11 @@ func (m *NetworkPolicyList) MarshalTo(data []byte) (int, error) { data[i] = 0xa i++ i = encodeVarintGenerated(data, i, uint64(m.ListMeta.Size())) - n48, err := m.ListMeta.MarshalTo(data[i:]) + n50, err := m.ListMeta.MarshalTo(data[i:]) if err != nil { return 0, err } - i += n48 + i += n50 if len(m.Items) > 0 { for _, msg := range m.Items { data[i] = 0x12 @@ -2208,21 +2139,21 @@ func (m *NetworkPolicyPeer) MarshalTo(data []byte) (int, error) { data[i] = 0xa i++ i = encodeVarintGenerated(data, i, uint64(m.PodSelector.Size())) - n49, err := m.PodSelector.MarshalTo(data[i:]) + n51, err := m.PodSelector.MarshalTo(data[i:]) if err != nil { return 0, err } - i += n49 + i += n51 } if m.NamespaceSelector != nil { data[i] = 0x12 i++ i = encodeVarintGenerated(data, i, uint64(m.NamespaceSelector.Size())) - n50, err := m.NamespaceSelector.MarshalTo(data[i:]) + n52, err := m.NamespaceSelector.MarshalTo(data[i:]) if err != nil { return 0, err } - i += n50 + i += n52 } return i, nil } @@ -2252,11 +2183,11 @@ func (m *NetworkPolicyPort) MarshalTo(data []byte) (int, error) { data[i] = 0x12 i++ i = encodeVarintGenerated(data, i, uint64(m.Port.Size())) - n51, err := m.Port.MarshalTo(data[i:]) + n53, err := m.Port.MarshalTo(data[i:]) if err != nil { return 0, err } - i += n51 + i += n53 } return i, nil } @@ -2279,11 +2210,11 @@ func (m *NetworkPolicySpec) MarshalTo(data []byte) (int, error) { data[i] = 0xa i++ i = encodeVarintGenerated(data, i, uint64(m.PodSelector.Size())) - n52, err := m.PodSelector.MarshalTo(data[i:]) + n54, err := m.PodSelector.MarshalTo(data[i:]) if err != nil { return 0, err } - i += n52 + i += n54 if len(m.Ingress) > 0 { for _, msg := range m.Ingress { data[i] = 0x12 @@ -2317,19 +2248,19 @@ func (m *PodSecurityPolicy) MarshalTo(data []byte) (int, error) { data[i] = 0xa i++ i = encodeVarintGenerated(data, i, uint64(m.ObjectMeta.Size())) - n53, err := m.ObjectMeta.MarshalTo(data[i:]) + n55, err := m.ObjectMeta.MarshalTo(data[i:]) if err != nil { return 0, err } - i += n53 + i += n55 data[i] = 0x12 i++ i = encodeVarintGenerated(data, i, uint64(m.Spec.Size())) - n54, err := m.Spec.MarshalTo(data[i:]) + n56, err := m.Spec.MarshalTo(data[i:]) if err != nil { return 0, err } - i += n54 + i += n56 return i, nil } @@ -2351,11 +2282,11 @@ func (m *PodSecurityPolicyList) MarshalTo(data []byte) (int, error) { data[i] = 0xa i++ i = encodeVarintGenerated(data, i, uint64(m.ListMeta.Size())) - n55, err := m.ListMeta.MarshalTo(data[i:]) + n57, err := m.ListMeta.MarshalTo(data[i:]) if err != nil { return 0, err } - i += n55 + i += n57 if len(m.Items) > 0 { for _, msg := range m.Items { data[i] = 0x12 @@ -2493,35 +2424,35 @@ func (m *PodSecurityPolicySpec) MarshalTo(data []byte) (int, error) { data[i] = 0x52 i++ i = encodeVarintGenerated(data, i, uint64(m.SELinux.Size())) - n56, err := m.SELinux.MarshalTo(data[i:]) - if err != nil { - return 0, err - } - i += n56 - data[i] = 0x5a - i++ - i = encodeVarintGenerated(data, i, uint64(m.RunAsUser.Size())) - n57, err := m.RunAsUser.MarshalTo(data[i:]) - if err != nil { - return 0, err - } - i += n57 - data[i] = 0x62 - i++ - i = encodeVarintGenerated(data, i, uint64(m.SupplementalGroups.Size())) - n58, err := m.SupplementalGroups.MarshalTo(data[i:]) + n58, err := m.SELinux.MarshalTo(data[i:]) if err != nil { return 0, err } i += n58 - data[i] = 0x6a + data[i] = 0x5a i++ - i = encodeVarintGenerated(data, i, uint64(m.FSGroup.Size())) - n59, err := m.FSGroup.MarshalTo(data[i:]) + i = encodeVarintGenerated(data, i, uint64(m.RunAsUser.Size())) + n59, err := m.RunAsUser.MarshalTo(data[i:]) if err != nil { return 0, err } i += n59 + data[i] = 0x62 + i++ + i = encodeVarintGenerated(data, i, uint64(m.SupplementalGroups.Size())) + n60, err := m.SupplementalGroups.MarshalTo(data[i:]) + if err != nil { + return 0, err + } + i += n60 + data[i] = 0x6a + i++ + i = encodeVarintGenerated(data, i, uint64(m.FSGroup.Size())) + n61, err := m.FSGroup.MarshalTo(data[i:]) + if err != nil { + return 0, err + } + i += n61 data[i] = 0x70 i++ if m.ReadOnlyRootFilesystem { @@ -2551,27 +2482,69 @@ func (m *ReplicaSet) MarshalTo(data []byte) (int, error) { data[i] = 0xa i++ i = encodeVarintGenerated(data, i, uint64(m.ObjectMeta.Size())) - n60, err := m.ObjectMeta.MarshalTo(data[i:]) - if err != nil { - return 0, err - } - i += n60 - data[i] = 0x12 - i++ - i = encodeVarintGenerated(data, i, uint64(m.Spec.Size())) - n61, err := m.Spec.MarshalTo(data[i:]) - if err != nil { - return 0, err - } - i += n61 - data[i] = 0x1a - i++ - i = encodeVarintGenerated(data, i, uint64(m.Status.Size())) - n62, err := m.Status.MarshalTo(data[i:]) + n62, err := m.ObjectMeta.MarshalTo(data[i:]) if err != nil { return 0, err } i += n62 + data[i] = 0x12 + i++ + i = encodeVarintGenerated(data, i, uint64(m.Spec.Size())) + n63, err := m.Spec.MarshalTo(data[i:]) + if err != nil { + return 0, err + } + i += n63 + data[i] = 0x1a + i++ + i = encodeVarintGenerated(data, i, uint64(m.Status.Size())) + n64, err := m.Status.MarshalTo(data[i:]) + if err != nil { + return 0, err + } + i += n64 + return i, nil +} + +func (m *ReplicaSetCondition) Marshal() (data []byte, err error) { + size := m.Size() + data = make([]byte, size) + n, err := m.MarshalTo(data) + if err != nil { + return nil, err + } + return data[:n], nil +} + +func (m *ReplicaSetCondition) 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.LastTransitionTime.Size())) + n65, err := m.LastTransitionTime.MarshalTo(data[i:]) + if err != nil { + return 0, err + } + i += n65 + 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.Message))) + i += copy(data[i:], m.Message) return i, nil } @@ -2593,11 +2566,11 @@ func (m *ReplicaSetList) MarshalTo(data []byte) (int, error) { data[i] = 0xa i++ i = encodeVarintGenerated(data, i, uint64(m.ListMeta.Size())) - n63, err := m.ListMeta.MarshalTo(data[i:]) + n66, err := m.ListMeta.MarshalTo(data[i:]) if err != nil { return 0, err } - i += n63 + i += n66 if len(m.Items) > 0 { for _, msg := range m.Items { data[i] = 0x12 @@ -2637,20 +2610,23 @@ func (m *ReplicaSetSpec) MarshalTo(data []byte) (int, error) { data[i] = 0x12 i++ i = encodeVarintGenerated(data, i, uint64(m.Selector.Size())) - n64, err := m.Selector.MarshalTo(data[i:]) + n67, err := m.Selector.MarshalTo(data[i:]) if err != nil { return 0, err } - i += n64 + i += n67 } data[i] = 0x1a i++ i = encodeVarintGenerated(data, i, uint64(m.Template.Size())) - n65, err := m.Template.MarshalTo(data[i:]) + n68, err := m.Template.MarshalTo(data[i:]) if err != nil { return 0, err } - i += n65 + i += n68 + data[i] = 0x20 + i++ + i = encodeVarintGenerated(data, i, uint64(m.MinReadySeconds)) return i, nil } @@ -2681,6 +2657,21 @@ func (m *ReplicaSetStatus) MarshalTo(data []byte) (int, error) { data[i] = 0x20 i++ i = encodeVarintGenerated(data, i, uint64(m.ReadyReplicas)) + data[i] = 0x28 + i++ + i = encodeVarintGenerated(data, i, uint64(m.AvailableReplicas)) + if len(m.Conditions) > 0 { + for _, msg := range m.Conditions { + 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 + } + } return i, nil } @@ -2742,21 +2733,21 @@ func (m *RollingUpdateDeployment) MarshalTo(data []byte) (int, error) { data[i] = 0xa i++ i = encodeVarintGenerated(data, i, uint64(m.MaxUnavailable.Size())) - n66, err := m.MaxUnavailable.MarshalTo(data[i:]) + n69, err := m.MaxUnavailable.MarshalTo(data[i:]) if err != nil { return 0, err } - i += n66 + i += n69 } if m.MaxSurge != nil { data[i] = 0x12 i++ i = encodeVarintGenerated(data, i, uint64(m.MaxSurge.Size())) - n67, err := m.MaxSurge.MarshalTo(data[i:]) + n70, err := m.MaxSurge.MarshalTo(data[i:]) if err != nil { return 0, err } - i += n67 + i += n70 } return i, nil } @@ -2818,11 +2809,11 @@ func (m *SELinuxStrategyOptions) MarshalTo(data []byte) (int, error) { data[i] = 0x12 i++ i = encodeVarintGenerated(data, i, uint64(m.SELinuxOptions.Size())) - n68, err := m.SELinuxOptions.MarshalTo(data[i:]) + n71, err := m.SELinuxOptions.MarshalTo(data[i:]) if err != nil { return 0, err } - i += n68 + i += n71 } return i, nil } @@ -2845,27 +2836,27 @@ func (m *Scale) MarshalTo(data []byte) (int, error) { data[i] = 0xa i++ i = encodeVarintGenerated(data, i, uint64(m.ObjectMeta.Size())) - n69, err := m.ObjectMeta.MarshalTo(data[i:]) + n72, err := m.ObjectMeta.MarshalTo(data[i:]) if err != nil { return 0, err } - i += n69 + i += n72 data[i] = 0x12 i++ i = encodeVarintGenerated(data, i, uint64(m.Spec.Size())) - n70, err := m.Spec.MarshalTo(data[i:]) + n73, err := m.Spec.MarshalTo(data[i:]) if err != nil { return 0, err } - i += n70 + i += n73 data[i] = 0x1a i++ i = encodeVarintGenerated(data, i, uint64(m.Status.Size())) - n71, err := m.Status.MarshalTo(data[i:]) + n74, err := m.Status.MarshalTo(data[i:]) if err != nil { return 0, err } - i += n71 + i += n74 return i, nil } @@ -3018,11 +3009,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:]) + n75, err := m.ObjectMeta.MarshalTo(data[i:]) if err != nil { return 0, err } - i += n72 + i += n75 data[i] = 0x12 i++ i = encodeVarintGenerated(data, i, uint64(len(m.Description))) @@ -3060,11 +3051,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:]) + n76, err := m.ObjectMeta.MarshalTo(data[i:]) if err != nil { return 0, err } - i += n73 + i += n76 if m.Data != nil { data[i] = 0x12 i++ @@ -3092,11 +3083,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:]) + n77, err := m.ListMeta.MarshalTo(data[i:]) if err != nil { return 0, err } - i += n74 + i += n77 if len(m.Items) > 0 { for _, msg := range m.Items { data[i] = 0x12 @@ -3130,11 +3121,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:]) + n78, err := m.ListMeta.MarshalTo(data[i:]) if err != nil { return 0, err } - i += n75 + i += n78 if len(m.Items) > 0 { for _, msg := range m.Items { data[i] = 0x12 @@ -3280,6 +3271,7 @@ func (m *DaemonSetStatus) Size() (n int) { n += 1 + sovGenerated(uint64(m.CurrentNumberScheduled)) n += 1 + sovGenerated(uint64(m.NumberMisscheduled)) n += 1 + sovGenerated(uint64(m.DesiredNumberScheduled)) + n += 1 + sovGenerated(uint64(m.NumberReady)) return n } @@ -3295,6 +3287,24 @@ func (m *Deployment) Size() (n int) { return n } +func (m *DeploymentCondition) 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.Reason) + n += 1 + l + sovGenerated(uint64(l)) + l = len(m.Message) + n += 1 + l + sovGenerated(uint64(l)) + l = m.LastUpdateTime.Size() + n += 1 + l + sovGenerated(uint64(l)) + l = m.LastTransitionTime.Size() + n += 1 + l + sovGenerated(uint64(l)) + return n +} + func (m *DeploymentList) Size() (n int) { var l int _ = l @@ -3350,6 +3360,9 @@ func (m *DeploymentSpec) Size() (n int) { l = m.RollbackTo.Size() n += 1 + l + sovGenerated(uint64(l)) } + if m.ProgressDeadlineSeconds != nil { + n += 1 + sovGenerated(uint64(*m.ProgressDeadlineSeconds)) + } return n } @@ -3361,6 +3374,12 @@ func (m *DeploymentStatus) Size() (n int) { n += 1 + sovGenerated(uint64(m.UpdatedReplicas)) n += 1 + sovGenerated(uint64(m.AvailableReplicas)) n += 1 + sovGenerated(uint64(m.UnavailableReplicas)) + if len(m.Conditions) > 0 { + for _, e := range m.Conditions { + l = e.Size() + n += 1 + l + sovGenerated(uint64(l)) + } + } return n } @@ -3687,58 +3706,6 @@ func (m *JobStatus) Size() (n int) { 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 *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 *NetworkPolicy) Size() (n int) { var l int _ = l @@ -3908,6 +3875,22 @@ func (m *ReplicaSet) Size() (n int) { return n } +func (m *ReplicaSetCondition) 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.LastTransitionTime.Size() + n += 1 + l + sovGenerated(uint64(l)) + l = len(m.Reason) + n += 1 + l + sovGenerated(uint64(l)) + l = len(m.Message) + n += 1 + l + sovGenerated(uint64(l)) + return n +} + func (m *ReplicaSetList) Size() (n int) { var l int _ = l @@ -3934,6 +3917,7 @@ func (m *ReplicaSetSpec) Size() (n int) { } l = m.Template.Size() n += 1 + l + sovGenerated(uint64(l)) + n += 1 + sovGenerated(uint64(m.MinReadySeconds)) return n } @@ -3944,6 +3928,13 @@ func (m *ReplicaSetStatus) Size() (n int) { n += 1 + sovGenerated(uint64(m.FullyLabeledReplicas)) n += 1 + sovGenerated(uint64(m.ObservedGeneration)) n += 1 + sovGenerated(uint64(m.ReadyReplicas)) + n += 1 + sovGenerated(uint64(m.AvailableReplicas)) + if len(m.Conditions) > 0 { + for _, e := range m.Conditions { + l = e.Size() + n += 1 + l + sovGenerated(uint64(l)) + } + } return n } @@ -4223,7 +4214,7 @@ func (this *DaemonSetSpec) String() string { return "nil" } s := strings.Join([]string{`&DaemonSetSpec{`, - `Selector:` + strings.Replace(fmt.Sprintf("%v", this.Selector), "LabelSelector", "LabelSelector", 1) + `,`, + `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) + `,`, `}`, }, "") @@ -4237,6 +4228,7 @@ func (this *DaemonSetStatus) String() string { `CurrentNumberScheduled:` + fmt.Sprintf("%v", this.CurrentNumberScheduled) + `,`, `NumberMisscheduled:` + fmt.Sprintf("%v", this.NumberMisscheduled) + `,`, `DesiredNumberScheduled:` + fmt.Sprintf("%v", this.DesiredNumberScheduled) + `,`, + `NumberReady:` + fmt.Sprintf("%v", this.NumberReady) + `,`, `}`, }, "") return s @@ -4253,6 +4245,21 @@ func (this *Deployment) String() string { }, "") return s } +func (this *DeploymentCondition) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&DeploymentCondition{`, + `Type:` + fmt.Sprintf("%v", this.Type) + `,`, + `Status:` + fmt.Sprintf("%v", this.Status) + `,`, + `Reason:` + fmt.Sprintf("%v", this.Reason) + `,`, + `Message:` + fmt.Sprintf("%v", this.Message) + `,`, + `LastUpdateTime:` + strings.Replace(strings.Replace(this.LastUpdateTime.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) + `,`, + `}`, + }, "") + return s +} func (this *DeploymentList) String() string { if this == nil { return "nil" @@ -4292,13 +4299,14 @@ func (this *DeploymentSpec) String() string { } s := strings.Join([]string{`&DeploymentSpec{`, `Replicas:` + valueToStringGenerated(this.Replicas) + `,`, - `Selector:` + strings.Replace(fmt.Sprintf("%v", this.Selector), "LabelSelector", "LabelSelector", 1) + `,`, + `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) + `,`, `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) + `,`, + `ProgressDeadlineSeconds:` + valueToStringGenerated(this.ProgressDeadlineSeconds) + `,`, `}`, }, "") return s @@ -4313,6 +4321,7 @@ func (this *DeploymentStatus) String() string { `UpdatedReplicas:` + fmt.Sprintf("%v", this.UpdatedReplicas) + `,`, `AvailableReplicas:` + fmt.Sprintf("%v", this.AvailableReplicas) + `,`, `UnavailableReplicas:` + fmt.Sprintf("%v", this.UnavailableReplicas) + `,`, + `Conditions:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.Conditions), "DeploymentCondition", "DeploymentCondition", 1), `&`, ``, 1) + `,`, `}`, }, "") return s @@ -4577,7 +4586,7 @@ func (this *JobSpec) String() string { `Parallelism:` + valueToStringGenerated(this.Parallelism) + `,`, `Completions:` + valueToStringGenerated(this.Completions) + `,`, `ActiveDeadlineSeconds:` + valueToStringGenerated(this.ActiveDeadlineSeconds) + `,`, - `Selector:` + strings.Replace(fmt.Sprintf("%v", this.Selector), "LabelSelector", "LabelSelector", 1) + `,`, + `Selector:` + strings.Replace(fmt.Sprintf("%v", this.Selector), "LabelSelector", "k8s_io_kubernetes_pkg_api_unversioned.LabelSelector", 1) + `,`, `AutoSelector:` + valueToStringGenerated(this.AutoSelector) + `,`, `Template:` + strings.Replace(strings.Replace(this.Template.String(), "PodTemplateSpec", "k8s_io_kubernetes_pkg_api_v1.PodTemplateSpec", 1), `&`, ``, 1) + `,`, `}`, @@ -4599,53 +4608,6 @@ func (this *JobStatus) String() string { }, "") 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" @@ -4684,8 +4646,8 @@ func (this *NetworkPolicyPeer) String() string { 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) + `,`, + `PodSelector:` + strings.Replace(fmt.Sprintf("%v", this.PodSelector), "LabelSelector", "k8s_io_kubernetes_pkg_api_unversioned.LabelSelector", 1) + `,`, + `NamespaceSelector:` + strings.Replace(fmt.Sprintf("%v", this.NamespaceSelector), "LabelSelector", "k8s_io_kubernetes_pkg_api_unversioned.LabelSelector", 1) + `,`, `}`, }, "") return s @@ -4706,7 +4668,7 @@ func (this *NetworkPolicySpec) String() string { return "nil" } s := strings.Join([]string{`&NetworkPolicySpec{`, - `PodSelector:` + strings.Replace(strings.Replace(this.PodSelector.String(), "LabelSelector", "LabelSelector", 1), `&`, ``, 1) + `,`, + `PodSelector:` + strings.Replace(strings.Replace(this.PodSelector.String(), "LabelSelector", "k8s_io_kubernetes_pkg_api_unversioned.LabelSelector", 1), `&`, ``, 1) + `,`, `Ingress:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.Ingress), "NetworkPolicyIngressRule", "NetworkPolicyIngressRule", 1), `&`, ``, 1) + `,`, `}`, }, "") @@ -4769,6 +4731,20 @@ func (this *ReplicaSet) String() string { }, "") return s } +func (this *ReplicaSetCondition) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&ReplicaSetCondition{`, + `Type:` + fmt.Sprintf("%v", this.Type) + `,`, + `Status:` + fmt.Sprintf("%v", this.Status) + `,`, + `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 *ReplicaSetList) String() string { if this == nil { return "nil" @@ -4786,8 +4762,9 @@ func (this *ReplicaSetSpec) String() string { } s := strings.Join([]string{`&ReplicaSetSpec{`, `Replicas:` + valueToStringGenerated(this.Replicas) + `,`, - `Selector:` + strings.Replace(fmt.Sprintf("%v", this.Selector), "LabelSelector", "LabelSelector", 1) + `,`, + `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) + `,`, + `MinReadySeconds:` + fmt.Sprintf("%v", this.MinReadySeconds) + `,`, `}`, }, "") return s @@ -4801,6 +4778,8 @@ func (this *ReplicaSetStatus) String() string { `FullyLabeledReplicas:` + fmt.Sprintf("%v", this.FullyLabeledReplicas) + `,`, `ObservedGeneration:` + fmt.Sprintf("%v", this.ObservedGeneration) + `,`, `ReadyReplicas:` + fmt.Sprintf("%v", this.ReadyReplicas) + `,`, + `AvailableReplicas:` + fmt.Sprintf("%v", this.AvailableReplicas) + `,`, + `Conditions:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.Conditions), "ReplicaSetCondition", "ReplicaSetCondition", 1), `&`, ``, 1) + `,`, `}`, }, "") return s @@ -5813,7 +5792,7 @@ func (m *DaemonSetSpec) Unmarshal(data []byte) error { return io.ErrUnexpectedEOF } if m.Selector == nil { - m.Selector = &LabelSelector{} + m.Selector = &k8s_io_kubernetes_pkg_api_unversioned.LabelSelector{} } if err := m.Selector.Unmarshal(data[iNdEx:postIndex]); err != nil { return err @@ -5956,6 +5935,25 @@ func (m *DaemonSetStatus) Unmarshal(data []byte) error { break } } + case 4: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field NumberReady", wireType) + } + m.NumberReady = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + m.NumberReady |= (int32(b) & 0x7F) << shift + if b < 0x80 { + break + } + } default: iNdEx = preIndex skippy, err := skipGenerated(data[iNdEx:]) @@ -6117,6 +6115,232 @@ func (m *Deployment) Unmarshal(data []byte) error { } return nil } +func (m *DeploymentCondition) Unmarshal(data []byte) error { + l := len(data) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + wire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: DeploymentCondition: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: DeploymentCondition: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Type", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + stringLen |= (uint64(b) & 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 = DeploymentConditionType(data[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Status", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + stringLen |= (uint64(b) & 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 = k8s_io_kubernetes_pkg_api_v1.ConditionStatus(data[iNdEx:postIndex]) + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Reason", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + stringLen |= (uint64(b) & 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 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 6: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field LastUpdateTime", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + 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.LastUpdateTime.Unmarshal(data[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 7: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field LastTransitionTime", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + 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 + 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 *DeploymentList) Unmarshal(data []byte) error { l := len(data) iNdEx := 0 @@ -6524,7 +6748,7 @@ func (m *DeploymentSpec) Unmarshal(data []byte) error { return io.ErrUnexpectedEOF } if m.Selector == nil { - m.Selector = &LabelSelector{} + m.Selector = &k8s_io_kubernetes_pkg_api_unversioned.LabelSelector{} } if err := m.Selector.Unmarshal(data[iNdEx:postIndex]); err != nil { return err @@ -6682,6 +6906,26 @@ func (m *DeploymentSpec) Unmarshal(data []byte) error { return err } iNdEx = postIndex + case 9: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field ProgressDeadlineSeconds", wireType) + } + var v int32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + v |= (int32(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + m.ProgressDeadlineSeconds = &v default: iNdEx = preIndex skippy, err := skipGenerated(data[iNdEx:]) @@ -6827,6 +7071,37 @@ func (m *DeploymentStatus) Unmarshal(data []byte) error { break } } + case 6: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Conditions", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + 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, DeploymentCondition{}) + 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:]) @@ -9568,7 +9843,7 @@ func (m *JobSpec) Unmarshal(data []byte) error { return io.ErrUnexpectedEOF } if m.Selector == nil { - m.Selector = &LabelSelector{} + m.Selector = &k8s_io_kubernetes_pkg_api_unversioned.LabelSelector{} } if err := m.Selector.Unmarshal(data[iNdEx:postIndex]); err != nil { return err @@ -9850,512 +10125,6 @@ func (m *JobStatus) Unmarshal(data []byte) error { } 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 *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 *NetworkPolicy) Unmarshal(data []byte) error { l := len(data) iNdEx := 0 @@ -10745,7 +10514,7 @@ func (m *NetworkPolicyPeer) Unmarshal(data []byte) error { return io.ErrUnexpectedEOF } if m.PodSelector == nil { - m.PodSelector = &LabelSelector{} + m.PodSelector = &k8s_io_kubernetes_pkg_api_unversioned.LabelSelector{} } if err := m.PodSelector.Unmarshal(data[iNdEx:postIndex]); err != nil { return err @@ -10778,7 +10547,7 @@ func (m *NetworkPolicyPeer) Unmarshal(data []byte) error { return io.ErrUnexpectedEOF } if m.NamespaceSelector == nil { - m.NamespaceSelector = &LabelSelector{} + m.NamespaceSelector = &k8s_io_kubernetes_pkg_api_unversioned.LabelSelector{} } if err := m.NamespaceSelector.Unmarshal(data[iNdEx:postIndex]); err != nil { return err @@ -11807,6 +11576,202 @@ func (m *ReplicaSet) Unmarshal(data []byte) error { } return nil } +func (m *ReplicaSetCondition) Unmarshal(data []byte) error { + l := len(data) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + wire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: ReplicaSetCondition: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ReplicaSetCondition: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Type", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + stringLen |= (uint64(b) & 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 = ReplicaSetConditionType(data[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Status", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + stringLen |= (uint64(b) & 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 = k8s_io_kubernetes_pkg_api_v1.ConditionStatus(data[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field LastTransitionTime", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + 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 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 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 *ReplicaSetList) Unmarshal(data []byte) error { l := len(data) iNdEx := 0 @@ -11994,7 +11959,7 @@ func (m *ReplicaSetSpec) Unmarshal(data []byte) error { return io.ErrUnexpectedEOF } if m.Selector == nil { - m.Selector = &LabelSelector{} + m.Selector = &k8s_io_kubernetes_pkg_api_unversioned.LabelSelector{} } if err := m.Selector.Unmarshal(data[iNdEx:postIndex]); err != nil { return err @@ -12030,6 +11995,25 @@ func (m *ReplicaSetSpec) Unmarshal(data []byte) error { return err } iNdEx = postIndex + case 4: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field MinReadySeconds", wireType) + } + m.MinReadySeconds = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + m.MinReadySeconds |= (int32(b) & 0x7F) << shift + if b < 0x80 { + break + } + } default: iNdEx = preIndex skippy, err := skipGenerated(data[iNdEx:]) @@ -12156,6 +12140,56 @@ func (m *ReplicaSetStatus) Unmarshal(data []byte) error { break } } + case 5: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field AvailableReplicas", wireType) + } + m.AvailableReplicas = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + m.AvailableReplicas |= (int32(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + case 6: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Conditions", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + 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, ReplicaSetCondition{}) + if err := m.Conditions[len(m.Conditions)-1].Unmarshal(data[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipGenerated(data[iNdEx:]) @@ -13907,251 +13941,250 @@ var ( ) var fileDescriptorGenerated = []byte{ - // 3921 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x09, 0x6e, 0x88, 0x02, 0xff, 0xe4, 0x1b, 0x4d, 0x8f, 0x1c, 0x47, - 0x35, 0x33, 0xb3, 0x1f, 0x33, 0xb5, 0x1f, 0x5e, 0x97, 0xd7, 0xf6, 0x64, 0x93, 0xd8, 0x49, 0x47, - 0x84, 0x44, 0xc4, 0xb3, 0xd8, 0x24, 0xc1, 0x71, 0x12, 0x27, 0x3b, 0xfb, 0x61, 0x3b, 0xd9, 0xb5, - 0x27, 0x35, 0x6b, 0x27, 0xe4, 0x93, 0xde, 0x99, 0xda, 0xd9, 0xf6, 0xf6, 0x4c, 0x4f, 0xfa, 0x63, - 0xbd, 0x13, 0x84, 0x08, 0x02, 0x24, 0x2e, 0x09, 0xb9, 0x11, 0x09, 0x38, 0x20, 0x81, 0x38, 0x20, - 0x22, 0x90, 0x90, 0x72, 0xe0, 0x02, 0x48, 0x08, 0x73, 0x40, 0x04, 0x04, 0x82, 0x0b, 0x09, 0x04, - 0x41, 0xc4, 0x5f, 0x08, 0x48, 0xf0, 0xaa, 0xba, 0xba, 0xbb, 0xaa, 0xa7, 0x7b, 0xec, 0x99, 0xfd, - 0x90, 0x10, 0x87, 0x95, 0xdd, 0xf5, 0x3e, 0xeb, 0xd5, 0xab, 0xf7, 0x5e, 0x55, 0xbd, 0x41, 0x8f, - 0x6d, 0x9e, 0x76, 0x4a, 0x86, 0x35, 0xbb, 0xe9, 0xad, 0x51, 0xbb, 0x45, 0x5d, 0xea, 0xcc, 0xb6, - 0x37, 0x1b, 0xb3, 0x7a, 0xdb, 0x70, 0x66, 0xe9, 0xb6, 0x4b, 0x5b, 0x8e, 0x61, 0xb5, 0x9c, 0xd9, - 0xad, 0x93, 0x6b, 0xd4, 0xd5, 0x4f, 0xce, 0x36, 0x68, 0x8b, 0xda, 0xba, 0x4b, 0xeb, 0xa5, 0xb6, - 0x6d, 0xb9, 0x16, 0x3e, 0xe1, 0x93, 0x97, 0x22, 0xf2, 0x12, 0x90, 0x97, 0x18, 0x79, 0x29, 0x22, - 0x2f, 0x09, 0xf2, 0x99, 0x13, 0x0d, 0xc3, 0xdd, 0xf0, 0xd6, 0x4a, 0x35, 0xab, 0x39, 0xdb, 0xb0, - 0x1a, 0xd6, 0x2c, 0xe7, 0xb2, 0xe6, 0xad, 0xf3, 0x2f, 0xfe, 0xc1, 0xff, 0xe7, 0x73, 0x9f, 0x39, - 0x95, 0xaa, 0xdc, 0xac, 0x4d, 0x1d, 0xcb, 0xb3, 0x6b, 0x34, 0xae, 0xd1, 0xcc, 0x83, 0xe9, 0x34, - 0x5e, 0x6b, 0x8b, 0xda, 0x4c, 0x21, 0x5a, 0xef, 0x22, 0xbb, 0x3f, 0x9d, 0x6c, 0xab, 0x6b, 0xda, - 0x33, 0x27, 0x92, 0xb1, 0x6d, 0xaf, 0xe5, 0x1a, 0xcd, 0x6e, 0x9d, 0x4e, 0x26, 0xa3, 0x7b, 0xae, - 0x61, 0xce, 0x1a, 0x2d, 0xd7, 0x71, 0xed, 0x38, 0x89, 0x56, 0x42, 0x68, 0xae, 0x72, 0xe1, 0x8a, - 0xaf, 0x2f, 0xbe, 0x13, 0x0d, 0xb5, 0xf4, 0x26, 0x2d, 0x66, 0xee, 0xcc, 0xdc, 0x5b, 0x28, 0x8f, - 0x5f, 0x7f, 0xef, 0xf8, 0x2d, 0x1f, 0xbc, 0x77, 0x7c, 0xe8, 0x22, 0x8c, 0x11, 0x0e, 0xd1, 0x5e, - 0x40, 0xd3, 0xf3, 0x95, 0xcb, 0xab, 0xba, 0xdd, 0xa0, 0xee, 0x65, 0xe0, 0x6b, 0xbc, 0xaa, 0xbb, - 0x8c, 0x72, 0x01, 0x4d, 0xb9, 0x7c, 0xb0, 0x42, 0xc1, 0x5a, 0x2d, 0x57, 0x6f, 0xf8, 0x5c, 0x86, - 0xcb, 0x45, 0xc1, 0x65, 0x6a, 0x35, 0x06, 0x27, 0x5d, 0x14, 0xda, 0xd7, 0x33, 0xe8, 0xd6, 0x79, - 0xcf, 0x71, 0xad, 0xe6, 0x0a, 0x75, 0x6d, 0xa3, 0x36, 0xef, 0xd9, 0x36, 0x80, 0xaa, 0xae, 0xee, - 0x7a, 0xce, 0x8d, 0xb5, 0xc3, 0xcf, 0xa2, 0xe1, 0x2d, 0xdd, 0xf4, 0x68, 0x31, 0x0b, 0x28, 0x63, - 0xa7, 0xee, 0x2f, 0xa5, 0xba, 0x4d, 0x29, 0x58, 0xd8, 0xd2, 0xd3, 0x9e, 0x0e, 0xd6, 0x74, 0x3b, - 0xe5, 0x69, 0xc1, 0x70, 0x5c, 0x48, 0xbd, 0xc2, 0x38, 0x11, 0x9f, 0xa1, 0xf6, 0x46, 0x06, 0xdd, - 0x91, 0xaa, 0xd9, 0xb2, 0xe1, 0xb8, 0xb8, 0x89, 0x86, 0x0d, 0x97, 0x36, 0x1d, 0x50, 0x2f, 0x07, - 0xb2, 0xcf, 0x97, 0xfa, 0x72, 0xd9, 0x52, 0x2a, 0xf3, 0xf2, 0x84, 0xd0, 0x6b, 0xf8, 0x02, 0x63, - 0x4f, 0x7c, 0x29, 0xda, 0xd7, 0x32, 0x08, 0xcb, 0x34, 0xbe, 0x75, 0x6f, 0xc2, 0x46, 0xcf, 0xec, - 0xc4, 0x46, 0x87, 0x04, 0xc3, 0x31, 0x5f, 0x9c, 0x62, 0xa2, 0xd7, 0x32, 0xe8, 0x48, 0xb7, 0x46, - 0xdc, 0x36, 0xeb, 0xaa, 0x6d, 0xe6, 0x76, 0x60, 0x1b, 0x9f, 0x6b, 0x8a, 0x51, 0x7e, 0x90, 0x45, - 0x85, 0x05, 0x9d, 0x36, 0xad, 0x56, 0x15, 0x6c, 0xf1, 0x2c, 0xca, 0x37, 0x81, 0xbe, 0xae, 0xbb, - 0x3a, 0xb7, 0xc7, 0xd8, 0xa9, 0x7b, 0x7b, 0x4c, 0x76, 0xeb, 0x64, 0xe9, 0xd2, 0xda, 0x55, 0x5a, - 0x73, 0x41, 0x8e, 0x5e, 0xc6, 0x82, 0x3f, 0x8a, 0xc6, 0x48, 0xc8, 0x0d, 0xbf, 0x84, 0x86, 0x9c, - 0x36, 0xad, 0x09, 0x13, 0x3e, 0xda, 0xe7, 0x74, 0x42, 0x0d, 0xab, 0xc0, 0x23, 0x5a, 0x23, 0xf6, - 0x45, 0x38, 0x5f, 0xb0, 0xd7, 0x88, 0xc3, 0x17, 0xbf, 0x98, 0xe3, 0x12, 0xce, 0x0e, 0x2c, 0xc1, - 0x77, 0xa1, 0x49, 0x21, 0x63, 0xc4, 0xff, 0x26, 0x82, 0xbb, 0xf6, 0xeb, 0x0c, 0x9a, 0x08, 0x71, - 0xf9, 0x4a, 0xbd, 0xd8, 0x65, 0xb3, 0xd9, 0x1e, 0x36, 0x93, 0x22, 0x5d, 0x89, 0x91, 0x73, 0xd3, - 0x4d, 0x09, 0x61, 0xf9, 0x60, 0x44, 0x32, 0xdc, 0x8b, 0x81, 0x23, 0x64, 0xb9, 0x23, 0x9c, 0x1e, - 0x74, 0x5e, 0x29, 0xeb, 0xff, 0x7b, 0x79, 0x3e, 0x55, 0xdf, 0x92, 0x79, 0x87, 0x9a, 0xb0, 0x82, - 0x96, 0x2d, 0xe6, 0xd3, 0xef, 0x6a, 0x2d, 0xeb, 0x6b, 0xd4, 0xac, 0x0a, 0x1e, 0xe5, 0x71, 0x36, - 0xb1, 0xe0, 0x8b, 0x84, 0xbc, 0xf1, 0xf3, 0x28, 0x0f, 0x1a, 0xb4, 0x4d, 0x08, 0xad, 0xc2, 0x2b, - 0x4e, 0xf4, 0xf6, 0xb5, 0x8a, 0x55, 0x5f, 0x15, 0x04, 0xdc, 0x0d, 0x42, 0xab, 0x05, 0xa3, 0x24, - 0x64, 0xa8, 0xbd, 0x9e, 0x45, 0x07, 0x62, 0x4b, 0x8a, 0xaf, 0xa0, 0x23, 0x35, 0x3f, 0x4c, 0x5c, - 0xf4, 0x9a, 0x20, 0xa0, 0x5a, 0xdb, 0xa0, 0x75, 0xcf, 0xa4, 0x75, 0x11, 0x76, 0x8f, 0x09, 0x7e, - 0x47, 0xe6, 0x13, 0xb1, 0x48, 0x0a, 0x35, 0x7e, 0x12, 0xe1, 0x16, 0x1f, 0x5a, 0x31, 0x1c, 0x27, - 0xe4, 0x99, 0xe5, 0x3c, 0x67, 0x04, 0x4f, 0x7c, 0xb1, 0x0b, 0x83, 0x24, 0x50, 0x31, 0x1d, 0xeb, - 0xd4, 0x31, 0x6c, 0x5a, 0x8f, 0xeb, 0x98, 0x53, 0x75, 0x5c, 0x48, 0xc4, 0x22, 0x29, 0xd4, 0xda, - 0x0f, 0xb3, 0x08, 0x2d, 0xd0, 0xb6, 0x69, 0x75, 0x9a, 0x30, 0x83, 0x3d, 0xdc, 0xe7, 0x2f, 0x2b, - 0xfb, 0xfc, 0xb1, 0x7e, 0xbd, 0x35, 0x54, 0x31, 0x75, 0xa3, 0x37, 0x62, 0x1b, 0xfd, 0xf1, 0xc1, - 0x45, 0xf4, 0xde, 0xe9, 0xbf, 0xc9, 0xa0, 0xc9, 0x08, 0x79, 0x3f, 0xb6, 0xfa, 0x4b, 0xea, 0x56, - 0x7f, 0x78, 0xe0, 0x99, 0xa5, 0xec, 0xf5, 0xb7, 0x72, 0x08, 0x47, 0x48, 0xc4, 0x32, 0xcd, 0x35, - 0xbd, 0xb6, 0x79, 0x13, 0x09, 0xf0, 0xbb, 0x90, 0x39, 0xbd, 0x76, 0x9d, 0x15, 0x41, 0x73, 0xad, - 0x96, 0xe5, 0xf2, 0x02, 0x26, 0x50, 0xf3, 0x33, 0x03, 0xab, 0x19, 0x68, 0x50, 0xba, 0xdc, 0xc5, - 0x7b, 0xb1, 0xe5, 0xda, 0x9d, 0x68, 0xf7, 0x74, 0x23, 0x90, 0x04, 0x85, 0xf0, 0x2b, 0x08, 0xd9, - 0x82, 0xe7, 0xaa, 0x25, 0xfc, 0xa3, 0x5f, 0x17, 0x0c, 0x94, 0x9a, 0xb7, 0x5a, 0xeb, 0x46, 0x23, - 0xf2, 0x76, 0x12, 0x32, 0x26, 0x92, 0x90, 0x99, 0x45, 0x74, 0x34, 0x45, 0x7b, 0x3c, 0x85, 0x72, - 0x9b, 0xb4, 0xe3, 0x9b, 0x95, 0xb0, 0xff, 0xe2, 0x69, 0xb9, 0x90, 0x28, 0x88, 0x2a, 0xe0, 0x4c, - 0xf6, 0x74, 0x46, 0x7b, 0x6b, 0x58, 0x76, 0x36, 0x1e, 0x87, 0xef, 0x45, 0x79, 0x1b, 0x46, 0x8c, - 0x9a, 0xee, 0x88, 0x00, 0xc5, 0x23, 0x29, 0x11, 0x63, 0x24, 0x84, 0x2a, 0x11, 0x3b, 0xbb, 0x4f, - 0x11, 0x3b, 0xb7, 0xcb, 0x11, 0x1b, 0x5b, 0x30, 0x09, 0x97, 0xd5, 0xd9, 0x8d, 0x4e, 0x71, 0x88, - 0x33, 0x9f, 0xdb, 0xc1, 0xce, 0xf6, 0x19, 0x45, 0x02, 0x83, 0x11, 0x12, 0x0a, 0xc1, 0x73, 0xe8, - 0x40, 0xd3, 0x68, 0x11, 0xaa, 0xd7, 0x3b, 0x55, 0x5a, 0xb3, 0x5a, 0x75, 0xa7, 0x38, 0xcc, 0xcd, - 0x7c, 0x54, 0x10, 0x1d, 0x58, 0x51, 0xc1, 0x24, 0x8e, 0x8f, 0x97, 0xd1, 0xb4, 0x4d, 0xb7, 0x0c, - 0xa6, 0xc6, 0x79, 0xd8, 0xce, 0x96, 0xdd, 0x59, 0x36, 0x9a, 0x86, 0x5b, 0x1c, 0xf1, 0xcb, 0x78, - 0xe0, 0x31, 0x4d, 0x12, 0xe0, 0x24, 0x91, 0x0a, 0xdf, 0x83, 0x46, 0xda, 0xba, 0xe7, 0x40, 0xac, - 0x1f, 0x05, 0xfa, 0x7c, 0x14, 0x98, 0x2a, 0x7c, 0x94, 0x08, 0x28, 0x94, 0xcd, 0xb2, 0x97, 0xe7, - 0x77, 0xc3, 0xcb, 0x27, 0xd3, 0x3d, 0x5c, 0xfb, 0x30, 0x8b, 0xa6, 0xe2, 0x41, 0x93, 0xe5, 0x3c, - 0x6b, 0xcd, 0xa1, 0xf6, 0x16, 0xad, 0x9f, 0xf3, 0xcf, 0x47, 0xc0, 0x9e, 0xbb, 0x69, 0x2e, 0xda, - 0xb5, 0x97, 0xba, 0x30, 0x48, 0x02, 0x15, 0xbe, 0x5f, 0x72, 0x74, 0x3f, 0x6b, 0x86, 0xcb, 0x96, - 0xe0, 0xec, 0xb0, 0x6c, 0x62, 0xe7, 0x07, 0x40, 0x91, 0x1a, 0xc3, 0x65, 0xbb, 0xac, 0x82, 0x49, - 0x1c, 0x1f, 0x9f, 0x43, 0x07, 0xf5, 0x2d, 0xdd, 0x30, 0xf5, 0x35, 0x93, 0x86, 0x4c, 0x86, 0x38, - 0x93, 0x5b, 0x05, 0x93, 0x83, 0x73, 0x71, 0x04, 0xd2, 0x4d, 0x83, 0x57, 0xd0, 0x21, 0xaf, 0xd5, - 0xcd, 0xca, 0x77, 0xa3, 0xdb, 0x04, 0xab, 0x43, 0x97, 0xbb, 0x51, 0x48, 0x12, 0x9d, 0xf6, 0xdb, - 0x8c, 0x1c, 0x9f, 0x03, 0x97, 0xc5, 0x67, 0xd0, 0x90, 0xdb, 0x69, 0x07, 0xf1, 0xf9, 0x9e, 0x20, - 0x3e, 0xaf, 0xc2, 0xd8, 0x47, 0xbc, 0x12, 0x88, 0x53, 0x30, 0x08, 0xe1, 0x34, 0xf8, 0x0b, 0x68, - 0x82, 0x2d, 0xa5, 0xd1, 0x6a, 0xf8, 0x56, 0x11, 0xf1, 0x61, 0x69, 0x00, 0x77, 0x09, 0x79, 0x48, - 0x79, 0xe6, 0x20, 0x28, 0x32, 0xa1, 0x00, 0x89, 0x2a, 0x0f, 0x4e, 0xbf, 0x13, 0x8b, 0xdb, 0x6d, - 0xcb, 0x76, 0x2f, 0xb5, 0xfd, 0x18, 0x0d, 0x5e, 0x4e, 0xf9, 0x00, 0x9f, 0x8f, 0xe4, 0xe5, 0x3e, - 0x1a, 0x11, 0x50, 0x7c, 0x37, 0x1a, 0xa6, 0xdb, 0x7a, 0xcd, 0xe5, 0x1a, 0xe7, 0xa3, 0x8c, 0xb6, - 0xc8, 0x06, 0x89, 0x0f, 0xd3, 0x7e, 0x04, 0x07, 0xa8, 0xa5, 0xea, 0x39, 0xdb, 0xf2, 0xda, 0xc1, - 0xe4, 0x03, 0x39, 0x9f, 0x46, 0x43, 0x36, 0x94, 0x3e, 0xc2, 0x6a, 0x77, 0x07, 0x56, 0x23, 0x30, - 0x06, 0x56, 0x3b, 0x14, 0xa3, 0xf2, 0x4d, 0xc6, 0x08, 0x20, 0x0b, 0x8f, 0xd8, 0x7a, 0xab, 0x41, - 0x83, 0xfc, 0xf6, 0x50, 0x9f, 0xb6, 0xba, 0xb0, 0x40, 0x18, 0x79, 0x34, 0x31, 0xfe, 0x09, 0x75, - 0x85, 0xcf, 0x55, 0xfb, 0x56, 0x06, 0x1d, 0x38, 0xbf, 0xba, 0x5a, 0xb9, 0xd0, 0x6a, 0xc0, 0x69, - 0xd1, 0xa9, 0xe8, 0xee, 0x06, 0x4b, 0xc1, 0x6d, 0xf8, 0x37, 0x9e, 0x82, 0x19, 0x8c, 0x70, 0x08, - 0xde, 0x40, 0xa3, 0x6c, 0x3f, 0xd2, 0x56, 0x7d, 0xc0, 0xd2, 0x4a, 0x88, 0x2b, 0xfb, 0x4c, 0xca, - 0x07, 0x84, 0x8c, 0x51, 0x31, 0x40, 0x02, 0xf6, 0xda, 0xe7, 0xd0, 0xb4, 0xa4, 0x1e, 0xb3, 0x17, - 0x3f, 0xb3, 0xe2, 0x1a, 0x1a, 0x66, 0x9a, 0x04, 0x27, 0xd2, 0x7e, 0x0f, 0x58, 0xb1, 0x29, 0x47, - 0x0b, 0xca, 0xbe, 0xa0, 0x44, 0xe1, 0xbc, 0xb5, 0x3f, 0x66, 0xd1, 0xd1, 0xf3, 0x96, 0x6d, 0xbc, - 0x6a, 0xb5, 0x5c, 0xdd, 0x84, 0xfc, 0x31, 0xe7, 0xb9, 0x96, 0x53, 0xd3, 0x4d, 0x6a, 0xef, 0x61, - 0xd1, 0x6a, 0x2a, 0x45, 0xeb, 0x93, 0xfd, 0xce, 0x2c, 0x59, 0xdf, 0xd4, 0x0a, 0xd6, 0x8d, 0x55, - 0xb0, 0xcb, 0xbb, 0x24, 0xaf, 0x77, 0x39, 0xfb, 0xcf, 0x0c, 0xba, 0x2d, 0x85, 0x72, 0x3f, 0x6a, - 0xdb, 0x4d, 0xb5, 0xb6, 0x5d, 0xda, 0x9d, 0x39, 0xa7, 0x14, 0xba, 0xff, 0xca, 0xa6, 0xce, 0x95, - 0x97, 0x56, 0xaf, 0x40, 0xad, 0xc1, 0xbe, 0x08, 0x5d, 0x17, 0x73, 0x9d, 0xef, 0x53, 0x9f, 0xaa, - 0xb7, 0x16, 0x5c, 0xf5, 0x00, 0x13, 0x0a, 0xc7, 0xc2, 0x1a, 0x95, 0xaa, 0x0d, 0xc1, 0x9c, 0x84, - 0x62, 0xf0, 0x49, 0x34, 0xc6, 0xab, 0x07, 0x25, 0xcf, 0x1d, 0x60, 0xf7, 0x42, 0x2b, 0xd1, 0x30, - 0x91, 0x71, 0xf0, 0x83, 0x40, 0xa2, 0x6f, 0xc7, 0xb2, 0x5c, 0x78, 0x9d, 0xb4, 0x12, 0x81, 0x88, - 0x8c, 0x07, 0x21, 0x7f, 0xb2, 0xd6, 0xf6, 0xa4, 0x9b, 0x46, 0x51, 0x4e, 0xf5, 0x3b, 0xc5, 0xa4, - 0x4b, 0xcb, 0x32, 0x06, 0xd1, 0x93, 0x00, 0x91, 0xc6, 0x48, 0x4c, 0x9c, 0xf6, 0xf3, 0x1c, 0xba, - 0xa3, 0xa7, 0x8f, 0xe2, 0xa5, 0x1e, 0xd5, 0xc3, 0x91, 0x3e, 0x2a, 0x87, 0x3a, 0x9a, 0x30, 0x75, - 0xc7, 0xe5, 0xe6, 0x5e, 0x35, 0x9a, 0x41, 0x76, 0xfb, 0xc4, 0x4d, 0x3a, 0x2e, 0x23, 0xf1, 0x53, - 0xd8, 0xb2, 0xcc, 0x85, 0xa8, 0x4c, 0x59, 0xc5, 0x21, 0x4e, 0xfe, 0x69, 0x15, 0xc7, 0xbc, 0x0a, - 0x26, 0x71, 0x7c, 0xc6, 0x42, 0x1c, 0xcc, 0x63, 0xf5, 0x46, 0xc8, 0x62, 0x41, 0x05, 0x93, 0x38, - 0x3e, 0x54, 0x7d, 0xc7, 0x05, 0x57, 0xd5, 0xfc, 0xd2, 0xed, 0xb1, 0x5f, 0x77, 0xdc, 0x0d, 0xec, - 0x8e, 0xcf, 0xf7, 0x46, 0x25, 0x37, 0xe2, 0xa5, 0xad, 0xa0, 0x89, 0xf3, 0x96, 0xe3, 0x56, 0x58, - 0x4a, 0x66, 0x79, 0x0b, 0xdf, 0x81, 0x72, 0xe0, 0x9c, 0xe2, 0x24, 0x32, 0x26, 0xd4, 0xce, 0x31, - 0xe7, 0x65, 0xe3, 0x1c, 0xac, 0x6f, 0x0b, 0xbf, 0x8e, 0xc0, 0xe0, 0x97, 0x6c, 0x5c, 0x3b, 0x87, - 0x46, 0x45, 0x5e, 0x94, 0x19, 0xe5, 0x7a, 0x33, 0xca, 0x25, 0x30, 0xfa, 0x5e, 0x16, 0x38, 0xf9, - 0x69, 0x64, 0x0f, 0x13, 0xc2, 0x0b, 0x4a, 0x42, 0x38, 0x33, 0x58, 0xaa, 0x4d, 0x4d, 0x00, 0xf5, - 0x58, 0x02, 0x78, 0x74, 0x40, 0xfe, 0xbd, 0x03, 0xfe, 0xdb, 0x19, 0x34, 0xa9, 0x26, 0x7d, 0x16, - 0x51, 0xd8, 0x1e, 0x32, 0x6a, 0xf4, 0x62, 0x74, 0xe0, 0x0f, 0x23, 0x4a, 0x35, 0x02, 0x11, 0x19, - 0x0f, 0xd3, 0x90, 0x8c, 0xb9, 0x83, 0x30, 0x4a, 0x29, 0x45, 0x69, 0xf6, 0x74, 0x52, 0xf2, 0x9f, - 0x4e, 0x40, 0x51, 0xf7, 0x12, 0xec, 0x79, 0x1b, 0xca, 0xc1, 0x2e, 0x31, 0xdc, 0xb3, 0x64, 0xbe, - 0xda, 0xaf, 0x32, 0x68, 0x4c, 0x28, 0xbc, 0x1f, 0x19, 0xe9, 0x79, 0x35, 0x23, 0x3d, 0x34, 0x60, - 0x3d, 0x95, 0x9c, 0x81, 0xde, 0x89, 0xe6, 0xc2, 0x2a, 0x28, 0x56, 0xe0, 0x6d, 0xc0, 0x76, 0x8a, - 0x17, 0x78, 0x6c, 0x8b, 0x11, 0x0e, 0xc1, 0x5f, 0xc9, 0xa0, 0x29, 0x23, 0x56, 0x73, 0x09, 0x53, - 0x3f, 0x3e, 0x98, 0x6a, 0x21, 0x9b, 0xe8, 0x41, 0x29, 0x0e, 0x21, 0x5d, 0x22, 0x35, 0x0f, 0x75, - 0x61, 0x61, 0x1d, 0xb4, 0x77, 0xdd, 0xf6, 0x80, 0xb9, 0x32, 0xa9, 0x9a, 0x2c, 0xe7, 0xf9, 0xf4, - 0x01, 0x42, 0x38, 0x6b, 0xed, 0xed, 0x6c, 0x68, 0xb0, 0xaa, 0xbf, 0x47, 0xc2, 0x7a, 0x37, 0xb3, - 0x1b, 0xf5, 0xee, 0x58, 0x52, 0xad, 0x0b, 0x11, 0x24, 0xe7, 0x9a, 0x83, 0xde, 0xb7, 0x09, 0x09, - 0xab, 0xcb, 0xd5, 0x28, 0x4e, 0xc1, 0x07, 0x61, 0x2c, 0xf1, 0xcb, 0x68, 0x98, 0x9d, 0x26, 0xd8, - 0x16, 0xcf, 0x0d, 0x1e, 0x42, 0x98, 0xbd, 0x22, 0x0f, 0x63, 0x5f, 0xe0, 0x61, 0x9c, 0x2f, 0x94, - 0xe9, 0x13, 0x4a, 0x1c, 0xc0, 0x57, 0xd1, 0xb8, 0x69, 0xe9, 0xf5, 0xb2, 0x6e, 0xea, 0x50, 0x8c, - 0x04, 0x77, 0xf7, 0x9f, 0xec, 0x1d, 0x11, 0x97, 0x25, 0x0a, 0x11, 0x4f, 0xc2, 0x47, 0x3d, 0x19, - 0x46, 0x14, 0xde, 0x9a, 0x8e, 0x50, 0x34, 0x7b, 0x7c, 0x1c, 0x0d, 0x33, 0x17, 0xf6, 0x4f, 0x06, - 0x85, 0x72, 0x81, 0xe9, 0xca, 0x3c, 0x1b, 0x74, 0xe5, 0xe3, 0xf8, 0x14, 0x42, 0x0e, 0xad, 0xd9, - 0xd4, 0xe5, 0x61, 0x87, 0x5f, 0x7e, 0x45, 0x01, 0xb8, 0x1a, 0x42, 0x88, 0x84, 0xa5, 0x7d, 0x23, - 0x8b, 0x72, 0x4f, 0x5a, 0x6b, 0x7b, 0x18, 0xe4, 0x9f, 0x55, 0x82, 0x7c, 0xbf, 0xfb, 0x1f, 0x74, - 0x4b, 0x0d, 0xf0, 0x9f, 0x8d, 0x05, 0xf8, 0xd3, 0x03, 0xf0, 0xee, 0x1d, 0xdc, 0x7f, 0x97, 0x43, - 0xe3, 0x80, 0x35, 0x6f, 0xb5, 0xea, 0x06, 0x2f, 0x85, 0x1e, 0x50, 0x2e, 0x09, 0xee, 0x8c, 0x5d, - 0x12, 0x4c, 0xc9, 0xb8, 0xd2, 0xf5, 0xc0, 0x95, 0x50, 0x51, 0x7f, 0x51, 0xce, 0xaa, 0xe2, 0x80, - 0xb2, 0xe7, 0xeb, 0x7b, 0x29, 0xe4, 0xa9, 0xaa, 0x07, 0xa7, 0x55, 0x5e, 0x43, 0x55, 0x6c, 0x6b, - 0xcd, 0x2f, 0xcc, 0x72, 0xfd, 0x17, 0x66, 0x87, 0x85, 0x2e, 0xbc, 0x38, 0x0b, 0x39, 0x11, 0x95, - 0x31, 0xbe, 0x86, 0x30, 0x1b, 0x58, 0x85, 0xc3, 0xb5, 0xe3, 0xcf, 0x8e, 0x89, 0x1b, 0xea, 0x5f, - 0x5c, 0x78, 0x6b, 0xb5, 0xdc, 0xc5, 0x8e, 0x24, 0x88, 0x60, 0xf7, 0x18, 0x36, 0xd5, 0x1d, 0xa8, - 0x5b, 0x87, 0xb9, 0xe9, 0xa2, 0xe3, 0x3e, 0x1f, 0x25, 0x02, 0x8a, 0xef, 0x43, 0xa3, 0x4d, 0xd8, - 0x27, 0xac, 0x3e, 0x1b, 0xe1, 0x88, 0xe1, 0xc9, 0x7b, 0xc5, 0x1f, 0x26, 0x01, 0x5c, 0xfb, 0x59, - 0x06, 0x8d, 0xc2, 0x42, 0xed, 0x47, 0xf2, 0x7b, 0x46, 0x4d, 0x7e, 0xa7, 0xfa, 0x77, 0xd0, 0x94, - 0xc4, 0xf7, 0x93, 0x1c, 0x9f, 0x03, 0x8f, 0xe1, 0x70, 0xe6, 0x69, 0xeb, 0xb6, 0x6e, 0x9a, 0xd4, - 0x34, 0x9c, 0xa6, 0x28, 0x1d, 0xf9, 0x99, 0xa7, 0x12, 0x0d, 0x13, 0x19, 0x87, 0x91, 0xd4, 0xac, - 0x66, 0xdb, 0xa4, 0xc1, 0x0b, 0x43, 0x48, 0x32, 0x1f, 0x0d, 0x13, 0x19, 0x07, 0x5f, 0x42, 0x87, - 0xf5, 0x9a, 0x6b, 0x6c, 0xd1, 0x05, 0xaa, 0xd7, 0x4d, 0xa3, 0x45, 0x83, 0xdb, 0xdc, 0x1c, 0x2f, - 0x21, 0x6f, 0x05, 0xe2, 0xc3, 0x73, 0x49, 0x08, 0x24, 0x99, 0x4e, 0xb9, 0x4e, 0x1f, 0xda, 0xc3, - 0xeb, 0xf4, 0x07, 0xd0, 0xb8, 0x0e, 0x27, 0xa3, 0x00, 0xc2, 0xfd, 0x28, 0x5f, 0x9e, 0x62, 0xa1, - 0x77, 0x4e, 0x1a, 0x27, 0x0a, 0x96, 0x72, 0x09, 0x3f, 0xb2, 0xdb, 0xcf, 0xa6, 0x3f, 0xcd, 0xa1, - 0x42, 0x18, 0x7c, 0xb0, 0x85, 0x50, 0x2d, 0xd8, 0xe0, 0xc1, 0xb5, 0xcf, 0x23, 0xfd, 0x7b, 0x4a, - 0x18, 0x24, 0xa2, 0x78, 0x1c, 0x0e, 0x39, 0x44, 0x12, 0x01, 0x11, 0xb9, 0x00, 0x01, 0xc4, 0x76, - 0x07, 0x3d, 0xcb, 0x4d, 0x00, 0xef, 0x42, 0x35, 0xe0, 0x40, 0x22, 0x66, 0xb8, 0x01, 0x87, 0xe2, - 0xd0, 0x67, 0x06, 0x8d, 0x48, 0xfe, 0xe1, 0x57, 0x61, 0x43, 0x62, 0x6c, 0x59, 0x58, 0xf0, 0xbd, - 0x4a, 0x1c, 0xf0, 0xc2, 0xb0, 0xe0, 0xbb, 0x20, 0x11, 0x50, 0x3c, 0x0b, 0x53, 0xf5, 0x6a, 0x35, - 0x4a, 0xeb, 0xb4, 0x2e, 0x0e, 0x6e, 0x07, 0x05, 0x6a, 0xa1, 0x1a, 0x00, 0x48, 0x84, 0xc3, 0x18, - 0xaf, 0xeb, 0x06, 0x7b, 0x09, 0x1e, 0x51, 0x19, 0x2f, 0xf1, 0x51, 0x22, 0xa0, 0xda, 0x3f, 0xb2, - 0x68, 0x42, 0xf1, 0x3f, 0xfc, 0xe5, 0x0c, 0xbb, 0x48, 0x70, 0x6b, 0x1b, 0x7c, 0x38, 0x58, 0xc8, - 0x95, 0x9d, 0xf8, 0x74, 0x69, 0x25, 0xe2, 0xe7, 0x3f, 0xd5, 0x49, 0xf7, 0x12, 0x21, 0x84, 0xc8, - 0x62, 0xf1, 0xeb, 0x50, 0xe0, 0xf2, 0xef, 0xc5, 0xed, 0x36, 0xab, 0x1c, 0xa4, 0x27, 0xc4, 0x73, - 0x3b, 0xd1, 0x85, 0xd0, 0x57, 0x3c, 0x38, 0x29, 0xf3, 0xfb, 0xe8, 0xb0, 0xd0, 0x5d, 0x89, 0x09, - 0x22, 0x5d, 0xa2, 0x67, 0xce, 0xa2, 0xa9, 0xf8, 0x2c, 0xfa, 0x7a, 0xb2, 0xfb, 0x4e, 0x06, 0x15, - 0xd3, 0x14, 0x61, 0xa7, 0xd8, 0x90, 0x51, 0x54, 0x1d, 0x3e, 0x45, 0x3b, 0x3e, 0xd7, 0x45, 0x94, - 0xb7, 0xda, 0xec, 0x16, 0x43, 0xbc, 0xd8, 0x15, 0xca, 0xf7, 0x05, 0xbb, 0xf2, 0x92, 0x18, 0x87, - 0xdc, 0x7b, 0x58, 0x61, 0x1f, 0x00, 0x48, 0x48, 0x8a, 0x35, 0x34, 0xc2, 0xf5, 0xf1, 0xab, 0xcc, - 0x42, 0x19, 0x31, 0x7f, 0xe0, 0xf5, 0x35, 0xa4, 0x62, 0x1f, 0xa2, 0x7d, 0x1f, 0x0a, 0x6b, 0x96, - 0x00, 0x82, 0x7b, 0xf1, 0x47, 0x58, 0x6a, 0x96, 0xd8, 0x0a, 0x1d, 0xa5, 0x6c, 0x2b, 0x4f, 0x49, - 0xc5, 0x65, 0xc4, 0xeb, 0x06, 0x35, 0xeb, 0x55, 0xf9, 0xb9, 0x51, 0x22, 0x5e, 0x92, 0x81, 0x44, - 0xc5, 0x65, 0x37, 0xfa, 0xd7, 0x98, 0xc1, 0xf9, 0xd6, 0x93, 0x6e, 0xf4, 0x9f, 0x61, 0x83, 0xc4, - 0x87, 0xb1, 0x9b, 0x92, 0xe0, 0x62, 0x4d, 0xb4, 0xd8, 0xf1, 0x8d, 0x54, 0x88, 0x6e, 0x4a, 0x88, - 0x0a, 0x26, 0x71, 0x7c, 0x7c, 0x06, 0x4d, 0xb2, 0x5e, 0x3f, 0xcb, 0x73, 0xe5, 0x77, 0xbd, 0x9c, - 0xbf, 0x7d, 0x57, 0x15, 0x08, 0x89, 0x61, 0xf2, 0xf6, 0x9e, 0x8b, 0xd4, 0xbd, 0x66, 0xd9, 0x9b, - 0x15, 0xcb, 0x34, 0x6a, 0x9d, 0x3d, 0xac, 0x3f, 0xd7, 0x94, 0xfa, 0xf3, 0x89, 0x3e, 0xf7, 0x80, - 0xa2, 0x65, 0x5a, 0x25, 0xaa, 0xfd, 0x1d, 0x9c, 0x54, 0xc1, 0x94, 0x0f, 0xa5, 0x14, 0x0d, 0xb3, - 0xa7, 0x96, 0x20, 0x22, 0xec, 0x48, 0x03, 0x76, 0x82, 0x97, 0xee, 0xf4, 0x19, 0x5b, 0xe2, 0x73, - 0x67, 0xf3, 0x5c, 0xb7, 0xad, 0xa6, 0xd8, 0xeb, 0x3b, 0x93, 0x42, 0xa9, 0x1d, 0xcd, 0x73, 0x09, - 0xb8, 0x12, 0xce, 0x5b, 0xfb, 0x43, 0x06, 0x1d, 0x54, 0x30, 0xf7, 0xa3, 0x88, 0xd2, 0xd5, 0x22, - 0xea, 0xd1, 0x9d, 0xcc, 0x2c, 0xa5, 0x9c, 0xfa, 0x6a, 0x36, 0x36, 0x2f, 0x66, 0x01, 0x48, 0xcc, - 0x63, 0x6d, 0xab, 0x5e, 0xdd, 0xcd, 0x2e, 0x2d, 0xbf, 0x2c, 0x8b, 0x98, 0x12, 0x59, 0x02, 0xfe, - 0x22, 0x98, 0x97, 0x75, 0x82, 0x38, 0x6d, 0xbd, 0x46, 0xab, 0xbb, 0xd9, 0x6b, 0x70, 0x98, 0x3d, - 0xb6, 0x5e, 0x8c, 0xb3, 0x26, 0xdd, 0xd2, 0xb4, 0x1f, 0xc7, 0x97, 0x98, 0x39, 0x19, 0x7e, 0x1a, - 0xe5, 0x79, 0x5b, 0x6e, 0xcd, 0x32, 0x45, 0x24, 0x7b, 0x90, 0xad, 0x56, 0x45, 0x8c, 0x41, 0x14, - 0xfd, 0x58, 0xcf, 0x13, 0x4c, 0x80, 0x48, 0x42, 0x36, 0x78, 0x19, 0x0d, 0xb5, 0x07, 0xbf, 0xe7, - 0xe2, 0x17, 0x1b, 0xfc, 0x72, 0x8b, 0x73, 0xd1, 0xfe, 0x1d, 0x57, 0x9b, 0x97, 0xc6, 0xce, 0xee, - 0xaf, 0x60, 0x98, 0x81, 0x53, 0x57, 0xd1, 0x46, 0xa3, 0xe2, 0xba, 0x67, 0xc0, 0xbc, 0x9b, 0x16, - 0x49, 0xa2, 0x33, 0x4d, 0x30, 0x18, 0x08, 0xe2, 0x1b, 0x93, 0x2b, 0x54, 0xf3, 0x6c, 0xc3, 0xed, - 0xec, 0x79, 0x50, 0x5d, 0x57, 0x82, 0xea, 0x42, 0x9f, 0x13, 0xec, 0xd2, 0x34, 0x35, 0xb0, 0xfe, - 0x39, 0x83, 0x0e, 0x77, 0x61, 0xef, 0x47, 0xd0, 0xa1, 0x6a, 0xd0, 0x79, 0x62, 0xa7, 0x33, 0x4c, - 0x09, 0x3c, 0xd7, 0x51, 0xc2, 0xfc, 0xb8, 0xeb, 0x9e, 0x42, 0xa8, 0x6d, 0x1b, 0x5b, 0x50, 0x6c, - 0x36, 0x44, 0xeb, 0x64, 0x3e, 0x5a, 0x93, 0x4a, 0x08, 0x21, 0x12, 0x16, 0xfe, 0x3c, 0x6b, 0x6b, - 0x5c, 0xd7, 0x3d, 0xd3, 0x9d, 0xab, 0xd7, 0xe7, 0xf5, 0xb6, 0xbe, 0x66, 0x98, 0x50, 0xf3, 0x8b, - 0x37, 0xf6, 0x42, 0x79, 0xd1, 0x6f, 0x69, 0x4c, 0xc2, 0x80, 0x1d, 0xfc, 0xf1, 0xde, 0x77, 0x10, - 0x01, 0x72, 0x87, 0xa4, 0x08, 0xc1, 0x5f, 0x82, 0x2c, 0x68, 0xfb, 0xd5, 0x59, 0x7d, 0xc1, 0xb6, - 0xda, 0x8a, 0x06, 0x7e, 0xe9, 0x74, 0x0e, 0x34, 0x28, 0x92, 0x14, 0x9c, 0x7e, 0x74, 0x48, 0x15, - 0x84, 0x5d, 0x74, 0x08, 0xce, 0xb9, 0xd6, 0x35, 0xaa, 0x5a, 0x60, 0x88, 0xcb, 0x2f, 0xb3, 0x4e, - 0x91, 0xb9, 0x6e, 0x70, 0x3f, 0xa2, 0x93, 0xd8, 0xc3, 0x41, 0x63, 0x74, 0xcb, 0x32, 0x3d, 0x88, - 0xa6, 0x50, 0x06, 0x31, 0x49, 0x2c, 0xe2, 0x8e, 0x5e, 0xf1, 0x87, 0x3e, 0x62, 0xe7, 0x87, 0x2a, - 0xbf, 0x10, 0x0a, 0xb0, 0xd8, 0x23, 0x01, 0xbb, 0xb5, 0x13, 0x7b, 0x9d, 0x9f, 0x36, 0xf2, 0x51, - 0x70, 0x39, 0x1f, 0x81, 0x88, 0x8c, 0x87, 0x9b, 0xa8, 0xb0, 0x21, 0x1e, 0x8c, 0x9c, 0xe2, 0xe8, - 0x40, 0x09, 0x51, 0x79, 0x70, 0x8a, 0x8e, 0x43, 0xc1, 0xb0, 0x43, 0x22, 0x09, 0xec, 0x5a, 0x85, - 0x7f, 0x5c, 0x58, 0xe0, 0x1d, 0x50, 0xf9, 0x28, 0x04, 0x9d, 0xf7, 0x87, 0x49, 0x00, 0x0f, 0x50, - 0x2f, 0x54, 0xe6, 0x8b, 0x85, 0x6e, 0x54, 0x18, 0x26, 0x01, 0x1c, 0xb7, 0xd1, 0xa8, 0x43, 0x97, - 0x8d, 0x96, 0xb7, 0x5d, 0x44, 0x7c, 0xeb, 0x2e, 0xf6, 0xfb, 0x2e, 0xbc, 0xc8, 0xa9, 0x63, 0xcd, - 0x28, 0x91, 0x44, 0x01, 0x27, 0x81, 0x18, 0xbc, 0x8d, 0x0a, 0xb6, 0xd7, 0x9a, 0x73, 0x2e, 0x3b, - 0xd4, 0x2e, 0x8e, 0x71, 0x99, 0xfd, 0x46, 0x65, 0x12, 0xd0, 0xc7, 0xa5, 0x86, 0x16, 0x0c, 0x31, - 0x48, 0x24, 0x0c, 0x7f, 0x33, 0x83, 0xb0, 0xe3, 0xb5, 0xe1, 0xf0, 0xca, 0x4e, 0x2c, 0xba, 0xc9, - 0xfb, 0x61, 0x9c, 0xe2, 0x38, 0xd7, 0xa1, 0xd2, 0xf7, 0x7b, 0x78, 0x9c, 0x51, 0x5c, 0x99, 0xf0, - 0x7e, 0xad, 0x1b, 0x95, 0x24, 0xe8, 0xc1, 0x96, 0x62, 0xdd, 0xe1, 0xff, 0x2f, 0x4e, 0x0c, 0xb4, - 0x14, 0xc9, 0x7d, 0x41, 0xd1, 0x52, 0x08, 0x38, 0x09, 0xc4, 0xb0, 0xde, 0x6b, 0x9b, 0xea, 0xf5, - 0x4b, 0x2d, 0xb3, 0x43, 0x2c, 0xcb, 0x5d, 0x82, 0xd8, 0xe5, 0x74, 0x1c, 0x88, 0x86, 0xc5, 0x49, - 0xee, 0x36, 0x61, 0xef, 0x35, 0x49, 0xc4, 0x22, 0x29, 0xd4, 0xbc, 0xf7, 0x5a, 0x3c, 0xe3, 0xee, - 0xed, 0x6f, 0x2c, 0x76, 0xd6, 0x7b, 0x1d, 0xa9, 0xb8, 0x67, 0xbd, 0xd7, 0x92, 0x88, 0x1b, 0xf7, - 0x5e, 0x47, 0xc8, 0xff, 0x03, 0xbd, 0xd7, 0x91, 0xb2, 0x29, 0xf9, 0xf4, 0x3f, 0xca, 0x8c, 0xfe, - 0x0f, 0x1b, 0x7c, 0xd9, 0x83, 0xce, 0x54, 0xdc, 0x01, 0x94, 0xde, 0xcf, 0xcc, 0x0d, 0x7b, 0x3f, - 0x2b, 0x68, 0x7a, 0xdd, 0x33, 0xcd, 0x0e, 0x9f, 0x8d, 0xd4, 0x4b, 0xe1, 0x5f, 0x13, 0xdf, 0x2e, - 0x28, 0xa7, 0x97, 0x12, 0x70, 0x48, 0x22, 0x65, 0x4a, 0x1f, 0x6b, 0x6e, 0xa0, 0x3e, 0xd6, 0x47, - 0xd0, 0x04, 0x8b, 0x00, 0x9d, 0x58, 0x8b, 0x47, 0x78, 0x39, 0x42, 0x64, 0x20, 0x51, 0x71, 0xb5, - 0xdb, 0xd1, 0x8c, 0xf8, 0x3f, 0xe3, 0x35, 0x6f, 0xb5, 0x5c, 0xd6, 0x47, 0x49, 0xed, 0x05, 0xaf, - 0xd9, 0xec, 0x68, 0x67, 0xc1, 0x79, 0x94, 0x8e, 0x5d, 0xdf, 0x70, 0x7e, 0x13, 0xb1, 0x68, 0xa5, - 0x90, 0x0c, 0xe7, 0x8f, 0x93, 0x10, 0x43, 0x7b, 0x3f, 0x83, 0x8e, 0xa6, 0xf4, 0x70, 0xe2, 0xab, - 0x68, 0xb2, 0xa9, 0x6f, 0x4b, 0x4d, 0xaa, 0x62, 0x7b, 0xf5, 0x7b, 0xf0, 0xe1, 0xd7, 0x2b, 0x2b, - 0x0a, 0x27, 0x12, 0xe3, 0xcc, 0x63, 0x9f, 0xbe, 0x5d, 0xf5, 0xec, 0x06, 0x1d, 0xf0, 0x78, 0xc5, - 0x5d, 0x77, 0x45, 0xf0, 0x20, 0x21, 0x37, 0xd6, 0x09, 0x5a, 0x4c, 0x4b, 0x84, 0x50, 0xd2, 0xc8, - 0xbd, 0xa0, 0x77, 0xc5, 0x7a, 0x41, 0x0f, 0x76, 0xd1, 0xed, 0x53, 0x27, 0xe8, 0x3b, 0x19, 0x74, - 0x24, 0xb9, 0x60, 0xc0, 0x9f, 0x52, 0x34, 0x3e, 0x1e, 0xd3, 0xf8, 0x40, 0x8c, 0x4a, 0xe8, 0xbb, - 0x81, 0x26, 0x45, 0x59, 0x21, 0xd8, 0xdc, 0xc4, 0x0f, 0x16, 0xb7, 0xc2, 0x9a, 0x25, 0x48, 0x90, - 0x7c, 0x1d, 0xd5, 0x31, 0x12, 0xe3, 0xab, 0x7d, 0x3b, 0x8b, 0x86, 0x79, 0x83, 0xd4, 0x1e, 0x66, - 0xb3, 0xe7, 0x94, 0x6c, 0xd6, 0xef, 0x13, 0x2a, 0xd7, 0x2e, 0x35, 0x91, 0xad, 0xc5, 0x12, 0xd9, - 0x99, 0x81, 0xb8, 0xf7, 0xce, 0x61, 0x0f, 0xa3, 0x42, 0xa8, 0x44, 0x7f, 0x71, 0x8e, 0x55, 0x0c, - 0x63, 0x92, 0x88, 0x3e, 0xa3, 0xe4, 0x96, 0x92, 0x2d, 0x06, 0xf9, 0x65, 0xad, 0x24, 0xbb, 0x14, - 0xa4, 0x09, 0xff, 0x9a, 0x3f, 0x6a, 0x71, 0xec, 0xce, 0x1e, 0x10, 0xa4, 0xfc, 0x9f, 0x27, 0x87, - 0xd7, 0x1a, 0x39, 0xee, 0xbd, 0x47, 0x04, 0xcd, 0xe4, 0xaa, 0x02, 0x25, 0x31, 0xec, 0x19, 0x88, - 0x9f, 0x8a, 0xb0, 0xbe, 0x6e, 0xe3, 0x7f, 0x91, 0x41, 0xd3, 0x49, 0x4d, 0x99, 0xac, 0xf3, 0x66, - 0xd3, 0x10, 0x5d, 0x24, 0x52, 0xe7, 0xcd, 0x53, 0x30, 0x46, 0x38, 0x24, 0xfc, 0xfd, 0x53, 0x36, - 0xf5, 0xf7, 0x4f, 0x70, 0xe4, 0x05, 0x53, 0x05, 0xf7, 0xd1, 0x39, 0xb5, 0x7f, 0x21, 0xfa, 0x31, - 0x38, 0x91, 0xb0, 0x78, 0xaf, 0x55, 0xa4, 0x8f, 0xb8, 0xc4, 0x8e, 0x9a, 0xa0, 0x24, 0x55, 0x65, - 0x3c, 0xed, 0x97, 0x19, 0x74, 0xd7, 0x0d, 0x8b, 0x69, 0x5c, 0x56, 0xc2, 0x43, 0x29, 0x16, 0x1e, - 0x8e, 0xa5, 0x33, 0xd8, 0xc7, 0x3e, 0xf7, 0x37, 0xb2, 0x08, 0xaf, 0x6e, 0x18, 0x76, 0xbd, 0xa2, - 0xdb, 0x70, 0x38, 0x15, 0x13, 0xdc, 0xc3, 0x80, 0x01, 0x16, 0xaf, 0x53, 0xa7, 0x66, 0x1b, 0xdc, - 0x48, 0x62, 0x39, 0x43, 0x8b, 0x2f, 0x44, 0x20, 0x22, 0xe3, 0x41, 0x51, 0x9b, 0x17, 0xb5, 0x62, - 0xd0, 0xac, 0xd3, 0x6f, 0xf1, 0x17, 0x79, 0x40, 0xb4, 0x3f, 0xc4, 0x00, 0xec, 0xcb, 0x80, 0xb9, - 0xf6, 0x26, 0x84, 0xfb, 0x6e, 0x83, 0x2c, 0xf8, 0xad, 0x28, 0x7b, 0x65, 0x94, 0xdb, 0xd1, 0x10, - 0xe7, 0xca, 0xac, 0x31, 0xee, 0x5f, 0x4e, 0x32, 0x89, 0x84, 0x8f, 0x6a, 0x1f, 0x66, 0xd0, 0x4c, - 0xb2, 0x4a, 0xfb, 0x51, 0x73, 0x5f, 0x55, 0x6b, 0xee, 0x7e, 0x0f, 0x78, 0xc9, 0x8a, 0xa7, 0xd4, - 0xdf, 0xef, 0x27, 0x1a, 0x7f, 0x3f, 0x66, 0xb9, 0xae, 0xce, 0x72, 0x6e, 0xc7, 0xb3, 0x4c, 0x9e, - 0x61, 0xf9, 0xbe, 0xeb, 0x7f, 0x3d, 0x76, 0xcb, 0xbb, 0xf0, 0xf7, 0x27, 0xf8, 0x7b, 0xed, 0x83, - 0x63, 0x99, 0xeb, 0xf0, 0xf7, 0x2e, 0xfc, 0xfd, 0x05, 0xfe, 0xde, 0xfc, 0xdb, 0xb1, 0x5b, 0x9e, - 0x1b, 0x15, 0x3c, 0xff, 0x1b, 0x00, 0x00, 0xff, 0xff, 0x58, 0xd8, 0xcd, 0xc3, 0x5b, 0x44, 0x00, - 0x00, + // 3908 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x09, 0x6e, 0x88, 0x02, 0xff, 0xe4, 0x5b, 0x5d, 0x6c, 0x24, 0xd9, + 0x55, 0x9e, 0xea, 0x76, 0xdb, 0xed, 0xd3, 0x63, 0x8f, 0xe7, 0x8e, 0xc7, 0xd3, 0xeb, 0xdd, 0x75, + 0x4f, 0x6a, 0xc5, 0x66, 0x22, 0x76, 0xdb, 0xcc, 0xb0, 0x13, 0x36, 0xbb, 0x9b, 0x4d, 0xdc, 0xf6, + 0xfc, 0x62, 0xcf, 0x74, 0x6e, 0xdb, 0x93, 0x21, 0xd9, 0x6c, 0xa8, 0xee, 0xba, 0x6e, 0xd7, 0xba, + 0xfe, 0xb6, 0xea, 0x96, 0xd7, 0x9d, 0x08, 0x25, 0x12, 0xe2, 0x35, 0xe4, 0x0d, 0x24, 0xe0, 0x81, + 0x07, 0xc4, 0x13, 0x11, 0x11, 0x48, 0x91, 0x78, 0x02, 0x04, 0x62, 0x91, 0x40, 0x04, 0x24, 0x04, + 0x0f, 0xd0, 0xcb, 0x3a, 0x42, 0x11, 0xef, 0x08, 0xa4, 0xe1, 0x05, 0xdd, 0x5b, 0xb7, 0x7e, 0xbb, + 0xaa, 0xc7, 0xd5, 0xfe, 0x91, 0x10, 0x6f, 0xdd, 0xf7, 0x9e, 0xf3, 0x9d, 0x73, 0x4f, 0x9d, 0x3a, + 0xe7, 0xdc, 0x7b, 0x4f, 0xc1, 0x17, 0xf7, 0xdf, 0x74, 0x9b, 0x9a, 0xb5, 0xba, 0xef, 0x75, 0x89, + 0x63, 0x12, 0x4a, 0xdc, 0x55, 0x7b, 0xbf, 0xbf, 0xaa, 0xd8, 0x9a, 0xbb, 0x4a, 0x0e, 0x29, 0x31, + 0x5d, 0xcd, 0x32, 0xdd, 0xd5, 0x83, 0x9b, 0x5d, 0x42, 0x95, 0x9b, 0xab, 0x7d, 0x62, 0x12, 0x47, + 0xa1, 0x44, 0x6d, 0xda, 0x8e, 0x45, 0x2d, 0xf4, 0xba, 0xcf, 0xde, 0x8c, 0xd8, 0x9b, 0xf6, 0x7e, + 0xbf, 0xc9, 0xd8, 0x9b, 0x11, 0x7b, 0x53, 0xb0, 0x2f, 0xbf, 0xde, 0xd7, 0xe8, 0x9e, 0xd7, 0x6d, + 0xf6, 0x2c, 0x63, 0xb5, 0x6f, 0xf5, 0xad, 0x55, 0x8e, 0xd2, 0xf5, 0x76, 0xf9, 0x3f, 0xfe, 0x87, + 0xff, 0xf2, 0xd1, 0x97, 0x6f, 0xe5, 0x2a, 0xb7, 0xea, 0x10, 0xd7, 0xf2, 0x9c, 0x1e, 0x49, 0x6b, + 0xb4, 0x7c, 0x3b, 0x9f, 0xc7, 0x33, 0x0f, 0x88, 0xc3, 0x14, 0x22, 0xea, 0x08, 0xdb, 0x6b, 0xf9, + 0x6c, 0x07, 0x23, 0xcb, 0x5e, 0x7e, 0x3d, 0x9b, 0xda, 0xf1, 0x4c, 0xaa, 0x19, 0xa3, 0x3a, 0xdd, + 0xcc, 0x26, 0xf7, 0xa8, 0xa6, 0xaf, 0x6a, 0x26, 0x75, 0xa9, 0x93, 0x66, 0x91, 0x9b, 0x00, 0x6b, + 0xed, 0x07, 0x4f, 0x7c, 0x7d, 0xd1, 0x75, 0x98, 0x32, 0x15, 0x83, 0xd4, 0xa5, 0xeb, 0xd2, 0x8d, + 0xd9, 0xd6, 0xc5, 0x8f, 0x87, 0x8d, 0x0b, 0x47, 0xc3, 0xc6, 0xd4, 0x23, 0xc5, 0x20, 0x98, 0xcf, + 0xc8, 0xef, 0xc1, 0xe2, 0x7a, 0x7b, 0x67, 0x5b, 0x71, 0xfa, 0x84, 0xee, 0x50, 0x4d, 0xd7, 0xbe, + 0xa5, 0x50, 0xc6, 0xb9, 0x01, 0x0b, 0x94, 0x0f, 0xb6, 0x89, 0xd3, 0x23, 0x26, 0x55, 0xfa, 0x3e, + 0x4a, 0xa5, 0x55, 0x17, 0x28, 0x0b, 0xdb, 0xa9, 0x79, 0x3c, 0xc2, 0x21, 0xff, 0x86, 0x04, 0x2f, + 0xac, 0x7b, 0x2e, 0xb5, 0x8c, 0x2d, 0x42, 0x1d, 0xad, 0xb7, 0xee, 0x39, 0x0e, 0x31, 0x69, 0x87, + 0x2a, 0xd4, 0x73, 0x9f, 0xaf, 0x1d, 0x7a, 0x0a, 0x95, 0x03, 0x45, 0xf7, 0x48, 0xbd, 0x74, 0x5d, + 0xba, 0x51, 0xbb, 0xf5, 0x5a, 0x33, 0xd7, 0x6d, 0x9a, 0xc1, 0x83, 0x6d, 0x7e, 0xc5, 0x53, 0x4c, + 0xaa, 0xd1, 0x41, 0x6b, 0x51, 0x00, 0x5e, 0x14, 0x52, 0x9f, 0x30, 0x24, 0xec, 0x03, 0xca, 0xdf, + 0x93, 0xe0, 0xe5, 0x5c, 0xcd, 0x36, 0x35, 0x97, 0x22, 0x03, 0x2a, 0x1a, 0x25, 0x86, 0x5b, 0x97, + 0xae, 0x97, 0x6f, 0xd4, 0x6e, 0xdd, 0x6f, 0x16, 0x72, 0xd9, 0x66, 0x2e, 0x78, 0x6b, 0x4e, 0xe8, + 0x55, 0x79, 0xc0, 0xe0, 0xb1, 0x2f, 0x45, 0xfe, 0x75, 0x09, 0x50, 0x9c, 0xc7, 0xb7, 0xee, 0x31, + 0x6c, 0xf4, 0xd5, 0x93, 0xd8, 0xe8, 0x8a, 0x00, 0xac, 0xf9, 0xe2, 0x12, 0x26, 0xfa, 0xae, 0x04, + 0x4b, 0xa3, 0x1a, 0x71, 0xdb, 0xec, 0x26, 0x6d, 0xb3, 0x76, 0x02, 0xdb, 0xf8, 0xa8, 0x39, 0x46, + 0xf9, 0x83, 0x12, 0xcc, 0x6e, 0x28, 0xc4, 0xb0, 0xcc, 0x0e, 0xa1, 0xe8, 0x29, 0x54, 0x0d, 0x42, + 0x15, 0x55, 0xa1, 0x0a, 0xb7, 0x47, 0xed, 0xd6, 0x8d, 0x31, 0x8b, 0x3d, 0xb8, 0xd9, 0x7c, 0xdc, + 0xfd, 0x80, 0xf4, 0xe8, 0x16, 0xa1, 0x4a, 0x0b, 0x09, 0x7c, 0x88, 0xc6, 0x70, 0x88, 0x86, 0xde, + 0x87, 0x29, 0xd7, 0x26, 0x3d, 0x61, 0xc2, 0x77, 0x0a, 0x2e, 0x27, 0xd4, 0xb0, 0x63, 0x93, 0x5e, + 0xf4, 0x8c, 0xd8, 0x3f, 0xcc, 0x71, 0xd1, 0x2e, 0x4c, 0xbb, 0xfc, 0xe1, 0xd7, 0xcb, 0x5c, 0xc2, + 0xbb, 0x13, 0x4b, 0xf0, 0x5d, 0x68, 0x5e, 0xc8, 0x98, 0xf6, 0xff, 0x63, 0x81, 0x2e, 0xff, 0xad, + 0x04, 0x73, 0x21, 0x2d, 0x7f, 0x52, 0xdf, 0x18, 0xb1, 0xd9, 0xea, 0x18, 0x9b, 0xc5, 0x22, 0x5d, + 0x93, 0xb1, 0x73, 0xd3, 0x2d, 0x08, 0x61, 0xd5, 0x60, 0x24, 0x66, 0xb8, 0x6f, 0x04, 0x8e, 0x50, + 0xe2, 0x8e, 0xf0, 0xe6, 0xa4, 0xeb, 0xca, 0x79, 0xfe, 0x7f, 0x13, 0x5f, 0x0f, 0xb3, 0x27, 0x7a, + 0x1f, 0xaa, 0x2e, 0xd1, 0x49, 0x8f, 0x5a, 0x8e, 0x58, 0xcf, 0x1b, 0xc7, 0x5d, 0x8f, 0xd2, 0x25, + 0x7a, 0x47, 0xf0, 0xb6, 0x2e, 0xb2, 0x05, 0x05, 0xff, 0x70, 0x88, 0x89, 0xbe, 0x0e, 0x55, 0x4a, + 0x0c, 0x5b, 0x57, 0x68, 0xf0, 0x42, 0xbd, 0x3e, 0xde, 0xc7, 0xda, 0x96, 0xba, 0x2d, 0x18, 0xf8, + 0xe3, 0x0f, 0xad, 0x15, 0x8c, 0xe2, 0x10, 0x50, 0xfe, 0x8b, 0x12, 0x5c, 0x4a, 0x3d, 0x4a, 0xf4, + 0x04, 0x96, 0x7a, 0x7e, 0x78, 0x78, 0xe4, 0x19, 0x5d, 0xe2, 0x74, 0x7a, 0x7b, 0x44, 0xf5, 0x74, + 0xa2, 0x8a, 0x70, 0xbb, 0x22, 0xf0, 0x96, 0xd6, 0x33, 0xa9, 0x70, 0x0e, 0x37, 0x7a, 0x08, 0xc8, + 0xe4, 0x43, 0x5b, 0x9a, 0xeb, 0x86, 0x98, 0x25, 0x8e, 0xb9, 0x2c, 0x30, 0xd1, 0xa3, 0x11, 0x0a, + 0x9c, 0xc1, 0xc5, 0x74, 0x54, 0x89, 0xab, 0x39, 0x44, 0x4d, 0xeb, 0x58, 0x4e, 0xea, 0xb8, 0x91, + 0x49, 0x85, 0x73, 0xb8, 0xd1, 0x6d, 0xa8, 0xf9, 0xd2, 0x30, 0x51, 0xd4, 0x41, 0x7d, 0x8a, 0x83, + 0x85, 0x21, 0xe9, 0x51, 0x34, 0x85, 0xe3, 0x74, 0xf2, 0x1f, 0x96, 0x00, 0x36, 0x88, 0xad, 0x5b, + 0x03, 0x83, 0x98, 0x67, 0x19, 0x16, 0xbe, 0x99, 0x08, 0x0b, 0x5f, 0x2c, 0xea, 0xdc, 0xa1, 0x8a, + 0xb9, 0x71, 0xa1, 0x9f, 0x8a, 0x0b, 0x5f, 0x9a, 0x5c, 0xc4, 0xf8, 0xc0, 0xf0, 0x93, 0x32, 0x5c, + 0x89, 0x88, 0xd7, 0x2d, 0x53, 0xd5, 0x78, 0x9a, 0x7f, 0x1b, 0xa6, 0xe8, 0xc0, 0x0e, 0xd2, 0xcb, + 0x67, 0x03, 0x15, 0xb7, 0x07, 0x36, 0x79, 0x36, 0x6c, 0x5c, 0xcb, 0x60, 0x61, 0x53, 0x98, 0x33, + 0xa1, 0x27, 0xa1, 0xf6, 0x25, 0xce, 0xfe, 0x6e, 0x52, 0xf8, 0xb3, 0x61, 0x63, 0x6c, 0x75, 0xd4, + 0x0c, 0x31, 0x93, 0xca, 0xa2, 0x57, 0x61, 0xda, 0x21, 0x8a, 0x6b, 0x99, 0xdc, 0x23, 0x66, 0xa3, + 0x45, 0x61, 0x3e, 0x8a, 0xc5, 0x2c, 0xfa, 0x1c, 0xcc, 0x18, 0xc4, 0x75, 0x59, 0x69, 0x52, 0xe1, + 0x84, 0x97, 0x04, 0xe1, 0xcc, 0x96, 0x3f, 0x8c, 0x83, 0x79, 0xb4, 0x0f, 0xf3, 0xba, 0xe2, 0xd2, + 0x1d, 0x5b, 0x55, 0x28, 0xd9, 0xd6, 0x0c, 0x52, 0x9f, 0xe6, 0x06, 0xff, 0xd9, 0x63, 0x06, 0x0f, + 0xc6, 0xd2, 0x5a, 0x12, 0xf0, 0xf3, 0x9b, 0x09, 0x28, 0x9c, 0x82, 0x46, 0x1f, 0x01, 0x62, 0x23, + 0xdb, 0x8e, 0x62, 0xba, 0xbe, 0xcd, 0x98, 0xc0, 0x99, 0xe2, 0x02, 0xc3, 0xf7, 0x74, 0x73, 0x04, + 0x0e, 0x67, 0x88, 0x90, 0xff, 0x4e, 0x82, 0xf9, 0xe8, 0x91, 0x9d, 0x47, 0xfc, 0x7f, 0x3f, 0x19, + 0xff, 0xbf, 0x30, 0xb1, 0xff, 0xe6, 0x24, 0x80, 0xdf, 0x2c, 0x03, 0x8a, 0x88, 0xb0, 0xa5, 0xeb, + 0x5d, 0xa5, 0xb7, 0x7f, 0x8c, 0xaa, 0xe8, 0xf7, 0x24, 0x40, 0x1e, 0x7f, 0x24, 0xea, 0x9a, 0x69, + 0x5a, 0x94, 0x57, 0xb5, 0x81, 0x9a, 0xbf, 0x34, 0xb1, 0x9a, 0x81, 0x06, 0xcd, 0x9d, 0x11, 0xec, + 0x3b, 0x26, 0x75, 0x06, 0xd1, 0x23, 0x1b, 0x25, 0xc0, 0x19, 0x0a, 0xa1, 0x0f, 0x01, 0x1c, 0x81, + 0xb9, 0x6d, 0x89, 0x28, 0x50, 0x34, 0xd0, 0x04, 0x4a, 0xad, 0x5b, 0xe6, 0xae, 0xd6, 0x8f, 0x62, + 0x1a, 0x0e, 0x81, 0x71, 0x4c, 0xc8, 0xf2, 0x1d, 0xb8, 0x96, 0xa3, 0x3d, 0x5a, 0x80, 0xf2, 0x3e, + 0x19, 0xf8, 0x66, 0xc5, 0xec, 0x27, 0x5a, 0x8c, 0x57, 0x97, 0xb3, 0xa2, 0x34, 0x7c, 0xab, 0xf4, + 0xa6, 0x24, 0xff, 0xb4, 0x12, 0x77, 0x36, 0x9e, 0x9c, 0x6f, 0x40, 0xd5, 0x21, 0xb6, 0xae, 0xf5, + 0x14, 0x57, 0x64, 0x2f, 0x9e, 0x66, 0xb1, 0x18, 0xc3, 0xe1, 0x6c, 0x22, 0x8d, 0x97, 0xce, 0x38, + 0x8d, 0x97, 0x4f, 0x39, 0x8d, 0x23, 0x0b, 0xaa, 0x2e, 0x65, 0x9b, 0xae, 0xbe, 0x9f, 0xb3, 0x8a, + 0x17, 0xc0, 0xf1, 0xb8, 0xed, 0x03, 0x45, 0x02, 0x83, 0x11, 0x1c, 0x0a, 0x41, 0x6b, 0x70, 0xc9, + 0xd0, 0x4c, 0x9e, 0xfc, 0x3a, 0xa4, 0x67, 0x99, 0xaa, 0xcb, 0x03, 0x5e, 0xa5, 0x75, 0x4d, 0x30, + 0x5d, 0xda, 0x4a, 0x4e, 0xe3, 0x34, 0x3d, 0xda, 0x84, 0x45, 0x87, 0x1c, 0x68, 0x4c, 0x8d, 0xfb, + 0x9a, 0x4b, 0x2d, 0x67, 0xb0, 0xa9, 0x19, 0x1a, 0xe5, 0x61, 0xb0, 0xd2, 0xaa, 0x1f, 0x0d, 0x1b, + 0x8b, 0x38, 0x63, 0x1e, 0x67, 0x72, 0xb1, 0x08, 0x6d, 0x2b, 0x9e, 0x4b, 0x54, 0x1e, 0xd5, 0xaa, + 0x51, 0x84, 0x6e, 0xf3, 0x51, 0x2c, 0x66, 0x91, 0x91, 0xf0, 0xee, 0xea, 0x69, 0x78, 0xf7, 0x7c, + 0xbe, 0x67, 0xa3, 0x1d, 0xb8, 0x66, 0x3b, 0x56, 0xdf, 0x21, 0xae, 0xbb, 0x41, 0x14, 0x55, 0xd7, + 0x4c, 0x12, 0xd8, 0x6b, 0x96, 0xaf, 0xf3, 0xc5, 0xa3, 0x61, 0xe3, 0x5a, 0x3b, 0x9b, 0x04, 0xe7, + 0xf1, 0xca, 0x9f, 0x94, 0x61, 0x21, 0x9d, 0x69, 0x59, 0x7d, 0x65, 0x75, 0x5d, 0xe2, 0x1c, 0x10, + 0xf5, 0x9e, 0xbf, 0x07, 0xd7, 0x2c, 0x93, 0x7b, 0x7d, 0x39, 0x0a, 0x02, 0x8f, 0x47, 0x28, 0x70, + 0x06, 0x17, 0x7a, 0x2d, 0xf6, 0xde, 0xf8, 0x15, 0x5a, 0xe8, 0x0d, 0x19, 0xef, 0xce, 0x1a, 0x5c, + 0x12, 0x81, 0x24, 0x98, 0x14, 0x65, 0x58, 0xe8, 0x0d, 0x3b, 0xc9, 0x69, 0x9c, 0xa6, 0x47, 0xf7, + 0xe0, 0xb2, 0x72, 0xa0, 0x68, 0xba, 0xd2, 0xd5, 0x49, 0x08, 0xe2, 0x97, 0x5f, 0x2f, 0x08, 0x90, + 0xcb, 0x6b, 0x69, 0x02, 0x3c, 0xca, 0x83, 0xb6, 0xe0, 0x8a, 0x67, 0x8e, 0x42, 0xf9, 0xde, 0xf9, + 0xa2, 0x80, 0xba, 0xb2, 0x33, 0x4a, 0x82, 0xb3, 0xf8, 0xd0, 0x01, 0x40, 0x2f, 0x28, 0x0a, 0xdc, + 0xfa, 0x34, 0x0f, 0xd6, 0xad, 0x89, 0xdf, 0xad, 0xb0, 0xbe, 0x88, 0x42, 0x62, 0x38, 0xe4, 0xe2, + 0x98, 0x24, 0xf9, 0xef, 0xa5, 0x78, 0x9a, 0x09, 0xde, 0x40, 0xf4, 0x56, 0xa2, 0x3a, 0x7a, 0x35, + 0x55, 0x1d, 0x2d, 0x8d, 0x72, 0xc4, 0x8a, 0xa3, 0xef, 0xc0, 0x1c, 0xf3, 0x4c, 0xcd, 0xec, 0xfb, + 0x4f, 0x43, 0x84, 0xb9, 0xbb, 0x13, 0x78, 0x7f, 0x88, 0x11, 0x4b, 0x97, 0x97, 0x8f, 0x86, 0x8d, + 0xb9, 0xc4, 0x24, 0x4e, 0xca, 0x93, 0xdf, 0x83, 0xb9, 0x3b, 0x87, 0xb6, 0xe5, 0xd0, 0xc7, 0xb6, + 0x9f, 0x6a, 0x5e, 0x85, 0x69, 0xc2, 0x07, 0xf8, 0x7a, 0x62, 0x2f, 0xad, 0x4f, 0x86, 0xc5, 0x2c, + 0x7a, 0x05, 0x2a, 0xe4, 0x50, 0xe9, 0x51, 0xae, 0x71, 0x35, 0x4a, 0xcc, 0x77, 0xd8, 0x20, 0xf6, + 0xe7, 0xe4, 0x1f, 0x4a, 0xb0, 0x74, 0xb7, 0x73, 0xcf, 0xb1, 0x3c, 0x3b, 0x58, 0x7c, 0x20, 0xe7, + 0x17, 0x60, 0xca, 0xf1, 0xf4, 0xc0, 0x6a, 0xaf, 0x04, 0x56, 0xc3, 0x9e, 0xce, 0xac, 0x76, 0x25, + 0xc5, 0xe5, 0x9b, 0x8c, 0x31, 0xa0, 0xf7, 0x61, 0xda, 0x51, 0xcc, 0x3e, 0x09, 0xd2, 0xf4, 0xe7, + 0x0b, 0xda, 0xea, 0xc1, 0x06, 0x66, 0xec, 0xb1, 0x7a, 0x91, 0xa3, 0x61, 0x81, 0x2a, 0xff, 0x8e, + 0x04, 0x97, 0xee, 0x6f, 0x6f, 0xb7, 0x1f, 0x98, 0xfc, 0x35, 0x6f, 0x2b, 0x74, 0x8f, 0x55, 0x12, + 0xb6, 0x42, 0xf7, 0xd2, 0x95, 0x04, 0x9b, 0xc3, 0x7c, 0x06, 0xed, 0xc1, 0x0c, 0x0b, 0x2f, 0xc4, + 0x54, 0x27, 0xdc, 0x07, 0x08, 0x71, 0x2d, 0x1f, 0x24, 0x2a, 0x52, 0xc5, 0x00, 0x0e, 0xe0, 0xe5, + 0x6f, 0xc3, 0x62, 0x4c, 0x3d, 0x66, 0x2f, 0x7e, 0x1e, 0x83, 0x7a, 0x50, 0x61, 0x9a, 0x04, 0xa7, + 0x2d, 0x45, 0x0f, 0x0f, 0x52, 0x4b, 0x8e, 0x1e, 0x28, 0xfb, 0xe7, 0x62, 0x1f, 0x5b, 0xfe, 0xa7, + 0x12, 0x5c, 0xbb, 0x6f, 0x39, 0xda, 0xb7, 0x2c, 0x93, 0x2a, 0x7a, 0xdb, 0x52, 0xd7, 0x3c, 0x6a, + 0xb9, 0x3d, 0x45, 0x27, 0xce, 0x19, 0xee, 0xb0, 0xf4, 0xc4, 0x0e, 0xeb, 0x61, 0xd1, 0x95, 0x65, + 0xeb, 0x9b, 0xbb, 0xdd, 0xa2, 0xa9, 0xed, 0xd6, 0xe6, 0x29, 0xc9, 0x1b, 0xbf, 0xf7, 0xfa, 0x0f, + 0x09, 0x5e, 0xcc, 0xe1, 0x3c, 0x8f, 0x12, 0x7d, 0x3f, 0x59, 0xa2, 0xdf, 0x3d, 0x9d, 0x35, 0xe7, + 0xd4, 0xeb, 0xff, 0x53, 0xca, 0x5d, 0x2b, 0xaf, 0x10, 0x3f, 0x84, 0x2a, 0xff, 0x87, 0xc9, 0xae, + 0x58, 0xeb, 0x7a, 0x41, 0x7d, 0x3a, 0x5e, 0x37, 0x38, 0xc6, 0xc4, 0x64, 0x97, 0x38, 0xc4, 0xec, + 0x91, 0x58, 0xf1, 0x24, 0xc0, 0x71, 0x28, 0x06, 0xdd, 0x84, 0x1a, 0x2f, 0x86, 0x12, 0xf9, 0xf5, + 0xd2, 0xd1, 0xb0, 0x51, 0xdb, 0x8a, 0x86, 0x71, 0x9c, 0x06, 0xdd, 0x86, 0x9a, 0xa1, 0x1c, 0xa6, + 0xb2, 0x6b, 0x78, 0x2e, 0xb1, 0x15, 0x4d, 0xe1, 0x38, 0x1d, 0xfa, 0x0e, 0xcc, 0xf7, 0x6c, 0x2f, + 0x76, 0x8a, 0x2e, 0xaa, 0xc3, 0xa2, 0x4b, 0xcc, 0x3a, 0x90, 0x6f, 0x21, 0xb6, 0xf1, 0x5c, 0x6f, + 0xef, 0xc4, 0xc6, 0x70, 0x4a, 0x9c, 0xfc, 0xe7, 0x65, 0x78, 0x79, 0xac, 0x8f, 0xa2, 0xbb, 0x63, + 0xaa, 0x96, 0xa5, 0x02, 0x15, 0x8b, 0x0a, 0x73, 0x6c, 0xff, 0xc9, 0xcd, 0xcd, 0x77, 0xb7, 0xa5, + 0xe2, 0xbb, 0x5b, 0x9e, 0xc2, 0x36, 0xe3, 0x28, 0x38, 0x09, 0xca, 0x2a, 0x1d, 0x71, 0xba, 0x95, + 0x57, 0xe9, 0xac, 0x27, 0xa7, 0x71, 0x9a, 0x9e, 0x41, 0x88, 0xc3, 0xa7, 0x54, 0x9d, 0x13, 0x42, + 0x6c, 0x24, 0xa7, 0x71, 0x9a, 0x1e, 0x19, 0xd0, 0x10, 0xa8, 0x49, 0xf3, 0xc7, 0x6e, 0x46, 0xfc, + 0x7a, 0xe7, 0x95, 0xa3, 0x61, 0xa3, 0xb1, 0x3e, 0x9e, 0x14, 0x3f, 0x0f, 0x4b, 0xde, 0x82, 0xb9, + 0xfb, 0x96, 0x4b, 0xdb, 0x2c, 0x25, 0xb3, 0xbc, 0x85, 0x5e, 0x86, 0xb2, 0xa1, 0x99, 0x62, 0x43, + 0x55, 0x13, 0x6a, 0x97, 0x99, 0xf3, 0xb2, 0x71, 0x3e, 0xad, 0x1c, 0x0a, 0xbf, 0x8e, 0xa6, 0x95, + 0x43, 0xcc, 0xc6, 0xe5, 0x7b, 0x30, 0x23, 0xf2, 0x62, 0x1c, 0xa8, 0x3c, 0x1e, 0xa8, 0x9c, 0x01, + 0xf4, 0xfb, 0x25, 0x98, 0x11, 0x69, 0xe4, 0x0c, 0x13, 0xc2, 0x7b, 0x89, 0x84, 0xf0, 0xd6, 0x64, + 0xa9, 0x36, 0x37, 0x01, 0xa8, 0xa9, 0x04, 0xf0, 0xce, 0x84, 0xf8, 0xe3, 0x03, 0xfe, 0x0f, 0x24, + 0x98, 0x4f, 0x26, 0x7d, 0x16, 0x51, 0xd8, 0x3b, 0xa4, 0xf5, 0xc8, 0xa3, 0xe8, 0xdc, 0x22, 0x8c, + 0x28, 0x9d, 0x68, 0x0a, 0xc7, 0xe9, 0x10, 0x09, 0xd9, 0x98, 0x3b, 0x08, 0xa3, 0x34, 0x73, 0x94, + 0xf6, 0xa8, 0xa6, 0x37, 0xfd, 0x6b, 0xc1, 0xe6, 0x03, 0x93, 0x3e, 0x76, 0x3a, 0xd4, 0xd1, 0xcc, + 0xfe, 0x88, 0x18, 0xee, 0x59, 0x71, 0x5c, 0xf9, 0xaf, 0x25, 0xa8, 0x09, 0x85, 0xcf, 0x23, 0x23, + 0x7d, 0x3d, 0x99, 0x91, 0x3e, 0x3f, 0x61, 0x3d, 0x95, 0x9d, 0x81, 0x7e, 0x14, 0xad, 0x85, 0x55, + 0x50, 0xac, 0xc0, 0xdb, 0xb3, 0x5c, 0x9a, 0x2e, 0xf0, 0xd8, 0x2b, 0x86, 0xf9, 0x0c, 0xfa, 0x35, + 0x09, 0x16, 0xb4, 0x54, 0xcd, 0x25, 0x4c, 0xfd, 0xa5, 0xc9, 0x54, 0x0b, 0x61, 0xa2, 0xcb, 0xd2, + 0xf4, 0x0c, 0x1e, 0x11, 0x29, 0x7b, 0x30, 0x42, 0x85, 0x14, 0x98, 0xda, 0xa3, 0xd4, 0x9e, 0x30, + 0x57, 0x66, 0x55, 0x93, 0xad, 0x2a, 0x5f, 0xfe, 0xf6, 0x76, 0x1b, 0x73, 0x68, 0xf9, 0x07, 0xa5, + 0xd0, 0x60, 0x1d, 0xff, 0x1d, 0x09, 0xeb, 0x5d, 0xe9, 0x34, 0xea, 0xdd, 0x5a, 0x56, 0xad, 0x8b, + 0x9e, 0x42, 0x99, 0xea, 0x93, 0x1e, 0x1b, 0x0a, 0x09, 0xdb, 0x9b, 0x9d, 0x28, 0x4e, 0x6d, 0x6f, + 0x76, 0x30, 0x83, 0x44, 0xdf, 0x84, 0x0a, 0xdb, 0x4d, 0xb0, 0x57, 0xbc, 0x3c, 0x79, 0x08, 0x61, + 0xf6, 0x8a, 0x3c, 0x8c, 0xfd, 0x73, 0xb1, 0x8f, 0x2b, 0x7f, 0x1b, 0xe6, 0x12, 0x71, 0x00, 0x7d, + 0x00, 0x17, 0x75, 0x4b, 0x51, 0x5b, 0x8a, 0xae, 0x98, 0x3d, 0x12, 0xdc, 0x4b, 0xfd, 0xdc, 0xf8, + 0x88, 0xb8, 0x19, 0xe3, 0x10, 0xf1, 0x24, 0xbc, 0xb0, 0x8e, 0xcf, 0xe1, 0x04, 0xb6, 0xac, 0x00, + 0x44, 0xab, 0x47, 0x0d, 0xa8, 0x30, 0x17, 0xf6, 0x77, 0x06, 0xb3, 0xad, 0x59, 0xa6, 0x2b, 0xf3, + 0x6c, 0x17, 0xfb, 0xe3, 0xe8, 0x16, 0x80, 0x4b, 0x7a, 0x0e, 0xa1, 0x3c, 0xec, 0xf8, 0xc7, 0xf4, + 0x61, 0x00, 0xee, 0x84, 0x33, 0x38, 0x46, 0x25, 0xff, 0x56, 0x09, 0xca, 0x0f, 0xad, 0xee, 0x19, + 0x06, 0xf9, 0xa7, 0x89, 0x20, 0x5f, 0xf4, 0xfd, 0x7f, 0x68, 0x75, 0x73, 0x03, 0xfc, 0x2f, 0xa7, + 0x02, 0xfc, 0x9b, 0x13, 0x60, 0x8f, 0x0f, 0xee, 0xff, 0x50, 0x86, 0x8b, 0x0f, 0xad, 0x6e, 0x74, + 0x85, 0xf2, 0x46, 0xe2, 0x90, 0xe0, 0x7a, 0xea, 0x90, 0x60, 0x21, 0x4e, 0x7b, 0x0e, 0x77, 0x27, + 0x7b, 0x7e, 0x61, 0xd6, 0x76, 0xac, 0xae, 0x5f, 0x98, 0x95, 0x8b, 0x17, 0x66, 0x57, 0x85, 0x2e, + 0xbc, 0x38, 0x0b, 0x91, 0x70, 0x12, 0x38, 0xe7, 0x96, 0x63, 0xea, 0xcc, 0x6f, 0x39, 0x62, 0xd7, + 0x43, 0x95, 0xe3, 0x5e, 0x0f, 0x4d, 0x8f, 0xbf, 0x1e, 0x92, 0xff, 0x4c, 0x82, 0x99, 0x87, 0x56, + 0xf7, 0x3c, 0x92, 0xdf, 0x57, 0x93, 0xc9, 0xef, 0x56, 0x71, 0x07, 0xcd, 0x49, 0x7c, 0x7f, 0x54, + 0xe6, 0x6b, 0xe0, 0x31, 0xfc, 0x26, 0xd4, 0x6c, 0xc5, 0x51, 0x74, 0x9d, 0xe8, 0x9a, 0x6b, 0x88, + 0xd2, 0x91, 0xef, 0x79, 0xda, 0xd1, 0x30, 0x8e, 0xd3, 0x30, 0x96, 0x9e, 0x65, 0xd8, 0x3a, 0x09, + 0x2e, 0x4a, 0x42, 0x96, 0xf5, 0x68, 0x18, 0xc7, 0x69, 0xd0, 0x63, 0xb8, 0xaa, 0xf4, 0xa8, 0x76, + 0x40, 0xd2, 0x87, 0xad, 0x65, 0x5e, 0x42, 0xbe, 0x70, 0x34, 0x6c, 0x5c, 0x5d, 0xcb, 0x22, 0xc0, + 0xd9, 0x7c, 0x89, 0x5b, 0x81, 0xa9, 0x33, 0xb8, 0x15, 0x78, 0x03, 0x2e, 0x2a, 0x1e, 0xb5, 0x82, + 0x19, 0xee, 0x3f, 0xd5, 0xd6, 0x02, 0x0b, 0xb9, 0x6b, 0xb1, 0x71, 0x9c, 0xa0, 0x4a, 0xdc, 0x25, + 0x4c, 0x9f, 0x76, 0x4b, 0xc0, 0x9f, 0x96, 0x61, 0x36, 0x0c, 0x3a, 0xc8, 0x4a, 0x9c, 0x7f, 0xfa, + 0xc7, 0x3d, 0x6f, 0x17, 0xf7, 0x90, 0x63, 0x1f, 0x7c, 0xa2, 0xa7, 0x30, 0xeb, 0x52, 0xc5, 0xa1, + 0x93, 0xee, 0xe1, 0xe6, 0x8e, 0x86, 0x8d, 0xd9, 0x4e, 0x80, 0x80, 0x23, 0x30, 0xd4, 0x87, 0xf9, + 0xc8, 0x57, 0x26, 0x8d, 0x44, 0xfe, 0xa6, 0x37, 0x01, 0x83, 0x53, 0xb0, 0x2c, 0x1c, 0xf8, 0xde, + 0x24, 0x36, 0x76, 0x61, 0x38, 0xf0, 0x5d, 0x0f, 0x8b, 0x59, 0xb4, 0x0a, 0xb3, 0xae, 0xd7, 0xeb, + 0x11, 0xa2, 0x12, 0x55, 0x6c, 0xd8, 0x2e, 0x0b, 0xd2, 0xd9, 0x4e, 0x30, 0x81, 0x23, 0x1a, 0x06, + 0xbc, 0xab, 0x68, 0x3a, 0x51, 0xc5, 0x25, 0x49, 0x08, 0x7c, 0x97, 0x8f, 0x62, 0x31, 0xcb, 0x9b, + 0x6e, 0x1e, 0x11, 0xfa, 0x91, 0xe5, 0xec, 0xb7, 0x2d, 0x5d, 0xeb, 0x0d, 0xce, 0x30, 0x73, 0x76, + 0x13, 0x99, 0xf3, 0xcb, 0x05, 0x5d, 0x23, 0xa1, 0x65, 0x5e, 0x0e, 0x95, 0xff, 0x5d, 0x82, 0x7a, + 0x82, 0x32, 0x5e, 0x4e, 0x13, 0xa8, 0xd8, 0x96, 0x43, 0x03, 0xe7, 0x3c, 0x91, 0x06, 0x6c, 0xef, + 0x11, 0x3b, 0x8d, 0x64, 0xb0, 0xd8, 0x47, 0x67, 0xeb, 0xdc, 0x75, 0x2c, 0x43, 0x04, 0xc9, 0x93, + 0x49, 0x21, 0xc4, 0x89, 0xd6, 0x79, 0xd7, 0xb1, 0x0c, 0xcc, 0xb1, 0xe5, 0x7f, 0x94, 0xe0, 0x72, + 0x82, 0xf2, 0x3c, 0xc2, 0xbf, 0x92, 0x0c, 0xff, 0xef, 0x9c, 0x64, 0x65, 0x39, 0x89, 0xe0, 0xbf, + 0xd3, 0xeb, 0x62, 0x16, 0x40, 0x7d, 0xa8, 0xd9, 0x96, 0xda, 0x39, 0x8d, 0xde, 0x29, 0x3f, 0x91, + 0x44, 0x60, 0x38, 0x8e, 0x8c, 0x06, 0x70, 0xd9, 0x54, 0x0c, 0xe2, 0xda, 0x4a, 0x8f, 0x74, 0x4e, + 0xe3, 0x8e, 0xf7, 0xea, 0xd1, 0xb0, 0x71, 0xf9, 0x51, 0x1a, 0x12, 0x8f, 0x4a, 0x91, 0xff, 0x78, + 0x64, 0xe5, 0x96, 0x43, 0xd1, 0x57, 0xa0, 0xca, 0x7b, 0x63, 0x7b, 0x96, 0x2e, 0x8a, 0xb4, 0xdb, + 0xec, 0xe1, 0xb4, 0xc5, 0xd8, 0xb3, 0x61, 0xe3, 0x67, 0xc6, 0x96, 0x5a, 0x01, 0x21, 0x0e, 0x61, + 0xd0, 0x26, 0x4c, 0xd9, 0x93, 0x6f, 0xc8, 0xf9, 0x0e, 0x8c, 0xef, 0xc2, 0x39, 0x8a, 0xfc, 0x9f, + 0x69, 0xb5, 0x79, 0x0e, 0xdf, 0x3f, 0xbd, 0x07, 0x16, 0x9e, 0x00, 0xe4, 0x3e, 0x34, 0x07, 0x66, + 0xc4, 0x7e, 0x54, 0x38, 0xe6, 0xbd, 0x93, 0x38, 0x66, 0x7c, 0x0f, 0x15, 0x16, 0x5d, 0xc1, 0x60, + 0x20, 0x88, 0xbf, 0x7f, 0x5c, 0xa1, 0x9e, 0xe7, 0x68, 0x74, 0x70, 0xe6, 0xb1, 0x73, 0x37, 0x11, + 0x3b, 0x37, 0x0a, 0x2e, 0x70, 0x44, 0xd3, 0xdc, 0xf8, 0xf9, 0xaf, 0x12, 0x5c, 0x1d, 0xa1, 0x3e, + 0x8f, 0xd8, 0x42, 0x92, 0xb1, 0xe5, 0xcb, 0x27, 0x5d, 0x61, 0x4e, 0x7c, 0xf9, 0x18, 0x32, 0xd6, + 0xc7, 0x5d, 0xf6, 0x16, 0x80, 0xed, 0x68, 0x07, 0x9a, 0x4e, 0xfa, 0xa2, 0x7f, 0xb1, 0x1a, 0x3d, + 0x93, 0x76, 0x38, 0x83, 0x63, 0x54, 0xe8, 0x57, 0x60, 0x49, 0x25, 0xbb, 0x8a, 0xa7, 0xd3, 0x35, + 0x55, 0x5d, 0x57, 0x6c, 0xa5, 0xab, 0xe9, 0x1a, 0xd5, 0xc4, 0x25, 0xe0, 0x6c, 0xeb, 0x8e, 0xdf, + 0x57, 0x98, 0x45, 0xf1, 0x6c, 0xd8, 0xf8, 0xec, 0xf8, 0x4d, 0x52, 0x40, 0x3c, 0xc0, 0x39, 0x42, + 0xd0, 0xaf, 0x4a, 0x50, 0x77, 0xc8, 0x87, 0x9e, 0xe6, 0x10, 0x75, 0xc3, 0xb1, 0xec, 0x84, 0x06, + 0x65, 0xae, 0xc1, 0xbd, 0xa3, 0x61, 0xa3, 0x8e, 0x73, 0x68, 0x8a, 0xe8, 0x90, 0x2b, 0x08, 0x51, + 0xb8, 0xa2, 0xe8, 0xba, 0xf5, 0x11, 0x49, 0x5a, 0x60, 0x8a, 0xcb, 0x6f, 0x1d, 0x0d, 0x1b, 0x57, + 0xd6, 0x46, 0xa7, 0x8b, 0x88, 0xce, 0x82, 0x47, 0xab, 0x30, 0x73, 0x60, 0xe9, 0x9e, 0x41, 0xdc, + 0x7a, 0x85, 0x4b, 0x62, 0x91, 0x76, 0xe6, 0x89, 0x3f, 0xf4, 0x8c, 0x15, 0x3a, 0x1d, 0xbe, 0x63, + 0x0d, 0xa8, 0xd0, 0x6d, 0xa8, 0xed, 0x59, 0x2e, 0x15, 0xef, 0x3a, 0x2f, 0x8b, 0xaa, 0x51, 0x70, + 0xb9, 0x1f, 0x4d, 0xe1, 0x38, 0x1d, 0x32, 0x60, 0x76, 0x4f, 0x9c, 0x68, 0xbb, 0xf5, 0x99, 0x89, + 0xf2, 0x5e, 0xe2, 0x44, 0x3c, 0xaa, 0xdb, 0x82, 0x61, 0x17, 0x47, 0x12, 0xd8, 0xbe, 0x8f, 0xff, + 0x79, 0xb0, 0xc1, 0x3b, 0x4e, 0xaa, 0x51, 0x08, 0xba, 0xef, 0x0f, 0xe3, 0x60, 0x3e, 0x20, 0x7d, + 0xd0, 0x5e, 0xe7, 0x0d, 0x22, 0x29, 0xd2, 0x07, 0xed, 0x75, 0x1c, 0xcc, 0x23, 0x1b, 0x66, 0x5c, + 0xb2, 0xa9, 0x99, 0xde, 0x61, 0x1d, 0xf8, 0xab, 0x7b, 0xa7, 0xe8, 0xc5, 0xd5, 0x1d, 0xce, 0x9d, + 0xba, 0x2d, 0x8f, 0x24, 0x8a, 0x79, 0x1c, 0x88, 0x41, 0x87, 0x30, 0xeb, 0x78, 0xe6, 0x9a, 0xbb, + 0xe3, 0x12, 0xa7, 0x5e, 0xe3, 0x32, 0x8b, 0x46, 0x65, 0x1c, 0xf0, 0xa7, 0xa5, 0x86, 0x16, 0x0c, + 0x29, 0x70, 0x24, 0x0c, 0xfd, 0xb6, 0x04, 0xc8, 0xf5, 0x6c, 0x5b, 0x27, 0x06, 0x31, 0xa9, 0xa2, + 0xf3, 0x0b, 0x7b, 0xb7, 0x7e, 0x91, 0xeb, 0xd0, 0x2e, 0x7c, 0x61, 0x97, 0x06, 0x4a, 0x2b, 0x13, + 0x1e, 0x00, 0x8c, 0x92, 0xe2, 0x0c, 0x3d, 0xd8, 0xa3, 0xd8, 0x75, 0xf9, 0xef, 0xfa, 0xdc, 0x44, + 0x8f, 0x22, 0xbb, 0x71, 0x21, 0x7a, 0x14, 0x62, 0x1e, 0x07, 0x62, 0xd0, 0x13, 0x58, 0x72, 0x88, + 0xa2, 0x3e, 0x36, 0xf5, 0x01, 0xb6, 0x2c, 0x7a, 0x57, 0xd3, 0x89, 0x3b, 0x70, 0x29, 0x31, 0xea, + 0xf3, 0xdc, 0x6d, 0xc2, 0x06, 0x68, 0x9c, 0x49, 0x85, 0x73, 0xb8, 0x79, 0x27, 0xb3, 0xb8, 0x67, + 0x3a, 0xdb, 0x0f, 0x1c, 0x4e, 0xd6, 0xc9, 0x1c, 0xa9, 0x78, 0x66, 0x9d, 0xcc, 0x31, 0x11, 0xe3, + 0xcf, 0xdf, 0xfe, 0xab, 0x04, 0x57, 0x22, 0xe2, 0x63, 0x77, 0x32, 0x67, 0xb0, 0x9c, 0xc3, 0x69, + 0x5c, 0xf6, 0x19, 0x59, 0xf9, 0x3c, 0xcf, 0xc8, 0x4e, 0xab, 0x85, 0x9a, 0x37, 0x17, 0x47, 0x56, + 0xfc, 0x3f, 0xd0, 0x5c, 0x1c, 0x29, 0x9b, 0x53, 0xc8, 0xfc, 0x49, 0x29, 0xbe, 0xa2, 0xff, 0x4f, + 0x1d, 0xac, 0x19, 0x0d, 0xa5, 0x53, 0xc5, 0x1a, 0x4a, 0xe5, 0x7f, 0x29, 0xc3, 0x42, 0xfa, 0xa5, + 0x4d, 0x34, 0x32, 0x4a, 0xcf, 0x6d, 0x64, 0x6c, 0xc3, 0xe2, 0xae, 0xa7, 0xeb, 0x03, 0x6e, 0x90, + 0xd8, 0x05, 0xbd, 0x7f, 0xf6, 0xf8, 0x92, 0xe0, 0x5c, 0xbc, 0x9b, 0x41, 0x83, 0x33, 0x39, 0x73, + 0x9a, 0x32, 0xcb, 0x13, 0x35, 0x65, 0xbe, 0x0d, 0x73, 0x0e, 0xff, 0xf6, 0x24, 0xd9, 0x37, 0x10, + 0x1e, 0x8e, 0xe3, 0xf8, 0x24, 0x4e, 0xd2, 0x66, 0x37, 0x58, 0x56, 0x26, 0x68, 0xb0, 0x3c, 0x8d, + 0x8e, 0xc8, 0x8c, 0xd8, 0xf7, 0xdc, 0x8e, 0xc8, 0x97, 0x60, 0x59, 0xb0, 0xb1, 0xff, 0xeb, 0x96, + 0x49, 0x1d, 0x4b, 0xd7, 0x89, 0xb3, 0xe1, 0x19, 0xc6, 0x40, 0x7e, 0x17, 0xe6, 0x93, 0x6d, 0xb9, + 0xfe, 0x93, 0xf7, 0x3b, 0x85, 0x45, 0x83, 0x41, 0xec, 0xc9, 0xfb, 0xe3, 0x38, 0xa4, 0x90, 0x3f, + 0x91, 0xe0, 0x5a, 0x4e, 0x67, 0x23, 0xfa, 0x00, 0xe6, 0x0d, 0xe5, 0x30, 0xd6, 0x32, 0x2a, 0x42, + 0x4b, 0xd1, 0x5d, 0x36, 0x3f, 0x3b, 0xdc, 0x4a, 0x20, 0xe1, 0x14, 0x32, 0x4f, 0xb8, 0xca, 0x61, + 0xc7, 0x73, 0xfa, 0x64, 0xc2, 0xbd, 0x3c, 0x7f, 0x7d, 0xb7, 0x04, 0x06, 0x0e, 0xd1, 0xe4, 0x1f, + 0x4a, 0x50, 0xcf, 0xab, 0xbe, 0xd0, 0xed, 0x44, 0x87, 0xe4, 0x67, 0x52, 0x1d, 0x92, 0x97, 0x47, + 0xf8, 0xce, 0xa9, 0x3f, 0xf2, 0x47, 0x12, 0x2c, 0x65, 0x57, 0xa9, 0xe8, 0xe7, 0x13, 0x1a, 0x37, + 0x52, 0x1a, 0x5f, 0x4a, 0x71, 0x09, 0x7d, 0xf7, 0x60, 0x5e, 0xd4, 0xb2, 0x02, 0xe6, 0x18, 0x9f, + 0xa8, 0x1e, 0x84, 0x85, 0x72, 0x50, 0x95, 0xf1, 0xe7, 0x98, 0x1c, 0xc3, 0x29, 0x5c, 0xf9, 0x77, + 0x4b, 0x50, 0xe1, 0x6d, 0x43, 0x67, 0x58, 0x42, 0x7d, 0x2d, 0x51, 0x42, 0x15, 0xbd, 0x58, 0xe4, + 0xda, 0xe5, 0x56, 0x4f, 0xdd, 0x54, 0xf5, 0xf4, 0xd6, 0x44, 0xe8, 0xe3, 0x0b, 0xa7, 0x2f, 0xc0, + 0x6c, 0xa8, 0x44, 0xb1, 0x40, 0xcd, 0xca, 0xd4, 0x5a, 0x4c, 0x44, 0xc1, 0x30, 0x7f, 0x90, 0xc8, + 0x94, 0x93, 0x7c, 0x4b, 0x1d, 0x93, 0xdd, 0x0c, 0x52, 0xa5, 0xff, 0xb9, 0x4d, 0xd4, 0xf8, 0x37, + 0x9a, 0x41, 0xdf, 0x85, 0x79, 0xff, 0x83, 0xf4, 0xf0, 0x0c, 0xad, 0xcc, 0xbd, 0x37, 0xfc, 0x8c, + 0x6b, 0x3b, 0x31, 0x8b, 0x53, 0xd4, 0xcb, 0x6f, 0xc3, 0x5c, 0x42, 0x58, 0xa1, 0xaf, 0x63, 0xfe, + 0x52, 0x82, 0xc5, 0xac, 0x56, 0x45, 0x74, 0x1d, 0xa6, 0xf6, 0x35, 0xd1, 0x5b, 0x11, 0xeb, 0x47, + 0xf9, 0x45, 0xcd, 0x54, 0x31, 0x9f, 0x09, 0x3f, 0x6e, 0x2a, 0xe5, 0x7e, 0xdc, 0x74, 0x0b, 0x40, + 0xb1, 0x35, 0xf1, 0x91, 0xbf, 0x58, 0x55, 0xe8, 0xbc, 0xd1, 0xe7, 0xff, 0x38, 0x46, 0xc5, 0x3b, + 0x90, 0x22, 0x7d, 0x44, 0x59, 0x18, 0xb5, 0x06, 0xc5, 0x54, 0x8d, 0xd3, 0xc9, 0x7f, 0x25, 0xc1, + 0x67, 0x9e, 0xbb, 0x83, 0x43, 0xad, 0x44, 0x78, 0x68, 0xa6, 0xc2, 0xc3, 0x4a, 0x3e, 0xc0, 0x39, + 0x76, 0x7f, 0x7f, 0xaf, 0x04, 0x68, 0x7b, 0x4f, 0x73, 0xd4, 0xb6, 0xe2, 0xd0, 0x01, 0x16, 0x0b, + 0x3c, 0xc3, 0x80, 0x71, 0x1b, 0x6a, 0x2a, 0x71, 0x7b, 0x8e, 0xc6, 0x8d, 0x24, 0x1e, 0x67, 0x68, + 0xf1, 0x8d, 0x68, 0x0a, 0xc7, 0xe9, 0x50, 0x1f, 0xaa, 0xa2, 0x56, 0x0c, 0x5a, 0x58, 0x8a, 0x16, + 0xbe, 0x91, 0x07, 0x44, 0xef, 0x87, 0x18, 0x70, 0x71, 0x08, 0x2e, 0x7f, 0x5f, 0x82, 0xa5, 0x51, + 0x83, 0x6c, 0xf8, 0x0d, 0x1a, 0x67, 0x65, 0x94, 0x97, 0x60, 0x8a, 0xa3, 0x32, 0x6b, 0x5c, 0xf4, + 0x4f, 0xc2, 0x99, 0x44, 0xcc, 0x47, 0xe5, 0x9f, 0x4a, 0xb0, 0x9c, 0xad, 0xd2, 0x79, 0xec, 0x37, + 0x3e, 0x48, 0xee, 0x37, 0x8a, 0x9e, 0x2a, 0x64, 0x2b, 0x9e, 0xb3, 0xf7, 0xf8, 0x24, 0xd3, 0xf8, + 0xe7, 0xb1, 0xca, 0xdd, 0xe4, 0x2a, 0xd7, 0x4e, 0xbc, 0xca, 0xec, 0x15, 0xb6, 0x3e, 0xf7, 0xf1, + 0xa7, 0x2b, 0x17, 0x7e, 0xfc, 0xe9, 0xca, 0x85, 0x7f, 0xfe, 0x74, 0xe5, 0xc2, 0x77, 0x8f, 0x56, + 0xa4, 0x8f, 0x8f, 0x56, 0xa4, 0x1f, 0x1f, 0xad, 0x48, 0xff, 0x76, 0xb4, 0x22, 0x7d, 0xff, 0x27, + 0x2b, 0x17, 0xbe, 0x36, 0x23, 0x30, 0xff, 0x37, 0x00, 0x00, 0xff, 0xff, 0x18, 0x07, 0xfd, 0xe8, + 0x4d, 0x46, 0x00, 0x00, } diff --git a/vendor/k8s.io/client-go/1.5/pkg/apis/extensions/v1beta1/register.go b/vendor/k8s.io/client-go/pkg/apis/extensions/v1beta1/register.go similarity index 89% rename from vendor/k8s.io/client-go/1.5/pkg/apis/extensions/v1beta1/register.go rename to vendor/k8s.io/client-go/pkg/apis/extensions/v1beta1/register.go index fb6bf0c5b..f8e81972b 100644 --- a/vendor/k8s.io/client-go/1.5/pkg/apis/extensions/v1beta1/register.go +++ b/vendor/k8s.io/client-go/pkg/apis/extensions/v1beta1/register.go @@ -17,10 +17,10 @@ limitations under the License. package v1beta1 import ( - "k8s.io/client-go/1.5/pkg/api/unversioned" - "k8s.io/client-go/1.5/pkg/api/v1" - "k8s.io/client-go/1.5/pkg/runtime" - versionedwatch "k8s.io/client-go/1.5/pkg/watch/versioned" + "k8s.io/client-go/pkg/api/unversioned" + "k8s.io/client-go/pkg/api/v1" + "k8s.io/client-go/pkg/runtime" + versionedwatch "k8s.io/client-go/pkg/watch/versioned" ) // GroupName is the group name use in this package @@ -54,8 +54,9 @@ func addKnownTypes(scheme *runtime.Scheme) error { &ThirdPartyResourceDataList{}, &Ingress{}, &IngressList{}, - &ListOptions{}, + &v1.ListOptions{}, &v1.DeleteOptions{}, + &v1.ExportOptions{}, &ReplicaSet{}, &ReplicaSetList{}, &PodSecurityPolicy{}, diff --git a/vendor/k8s.io/client-go/1.5/pkg/apis/extensions/v1beta1/types.generated.go b/vendor/k8s.io/client-go/pkg/apis/extensions/v1beta1/types.generated.go similarity index 67% rename from vendor/k8s.io/client-go/1.5/pkg/apis/extensions/v1beta1/types.generated.go rename to vendor/k8s.io/client-go/pkg/apis/extensions/v1beta1/types.generated.go index 05642626e..752fb71ec 100644 --- a/vendor/k8s.io/client-go/1.5/pkg/apis/extensions/v1beta1/types.generated.go +++ b/vendor/k8s.io/client-go/pkg/apis/extensions/v1beta1/types.generated.go @@ -25,11 +25,11 @@ import ( "errors" "fmt" codec1978 "github.com/ugorji/go/codec" - pkg4_resource "k8s.io/client-go/1.5/pkg/api/resource" - pkg1_unversioned "k8s.io/client-go/1.5/pkg/api/unversioned" - pkg2_v1 "k8s.io/client-go/1.5/pkg/api/v1" - pkg3_types "k8s.io/client-go/1.5/pkg/types" - pkg5_intstr "k8s.io/client-go/1.5/pkg/util/intstr" + pkg4_resource "k8s.io/client-go/pkg/api/resource" + pkg1_unversioned "k8s.io/client-go/pkg/api/unversioned" + pkg2_v1 "k8s.io/client-go/pkg/api/v1" + pkg3_types "k8s.io/client-go/pkg/types" + pkg5_intstr "k8s.io/client-go/pkg/util/intstr" "reflect" "runtime" time "time" @@ -5424,7 +5424,7 @@ func (x *DeploymentSpec) CodecEncodeSelf(e *codec1978.Encoder) { } else { yysep453 := !z.EncBinary() yy2arr453 := z.EncBasicHandle().StructToArray - var yyq453 [8]bool + var yyq453 [9]bool _, _, _ = yysep453, yyq453, yy2arr453 const yyr453 bool = false yyq453[0] = x.Replicas != nil @@ -5434,9 +5434,10 @@ func (x *DeploymentSpec) CodecEncodeSelf(e *codec1978.Encoder) { yyq453[5] = x.RevisionHistoryLimit != nil yyq453[6] = x.Paused != false yyq453[7] = x.RollbackTo != nil + yyq453[8] = x.ProgressDeadlineSeconds != nil var yynn453 int if yyr453 || yy2arr453 { - r.EncodeArrayStart(8) + r.EncodeArrayStart(9) } else { yynn453 = 1 for _, b := range yyq453 { @@ -5488,7 +5489,13 @@ func (x *DeploymentSpec) CodecEncodeSelf(e *codec1978.Encoder) { if x.Selector == nil { r.EncodeNil() } else { - x.Selector.CodecEncodeSelf(e) + yym460 := z.EncBinary() + _ = yym460 + if false { + } else if z.HasExtensions() && z.EncExt(x.Selector) { + } else { + z.EncFallback(x.Selector) + } } } else { r.EncodeNil() @@ -5501,26 +5508,32 @@ func (x *DeploymentSpec) CodecEncodeSelf(e *codec1978.Encoder) { if x.Selector == nil { r.EncodeNil() } else { - x.Selector.CodecEncodeSelf(e) + yym461 := z.EncBinary() + _ = yym461 + if false { + } else if z.HasExtensions() && z.EncExt(x.Selector) { + } else { + z.EncFallback(x.Selector) + } } } } if yyr453 || yy2arr453 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy461 := &x.Template - yy461.CodecEncodeSelf(e) + yy463 := &x.Template + yy463.CodecEncodeSelf(e) } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("template")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy462 := &x.Template - yy462.CodecEncodeSelf(e) + yy464 := &x.Template + yy464.CodecEncodeSelf(e) } if yyr453 || yy2arr453 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq453[3] { - yy464 := &x.Strategy - yy464.CodecEncodeSelf(e) + yy466 := &x.Strategy + yy466.CodecEncodeSelf(e) } else { r.EncodeNil() } @@ -5529,15 +5542,15 @@ func (x *DeploymentSpec) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("strategy")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy465 := &x.Strategy - yy465.CodecEncodeSelf(e) + yy467 := &x.Strategy + yy467.CodecEncodeSelf(e) } } if yyr453 || yy2arr453 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq453[4] { - yym467 := z.EncBinary() - _ = yym467 + yym469 := z.EncBinary() + _ = yym469 if false { } else { r.EncodeInt(int64(x.MinReadySeconds)) @@ -5550,8 +5563,8 @@ func (x *DeploymentSpec) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("minReadySeconds")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym468 := z.EncBinary() - _ = yym468 + yym470 := z.EncBinary() + _ = yym470 if false { } else { r.EncodeInt(int64(x.MinReadySeconds)) @@ -5564,12 +5577,12 @@ func (x *DeploymentSpec) CodecEncodeSelf(e *codec1978.Encoder) { if x.RevisionHistoryLimit == nil { r.EncodeNil() } else { - yy470 := *x.RevisionHistoryLimit - yym471 := z.EncBinary() - _ = yym471 + yy472 := *x.RevisionHistoryLimit + yym473 := z.EncBinary() + _ = yym473 if false { } else { - r.EncodeInt(int64(yy470)) + r.EncodeInt(int64(yy472)) } } } else { @@ -5583,12 +5596,12 @@ func (x *DeploymentSpec) CodecEncodeSelf(e *codec1978.Encoder) { if x.RevisionHistoryLimit == nil { r.EncodeNil() } else { - yy472 := *x.RevisionHistoryLimit - yym473 := z.EncBinary() - _ = yym473 + yy474 := *x.RevisionHistoryLimit + yym475 := z.EncBinary() + _ = yym475 if false { } else { - r.EncodeInt(int64(yy472)) + r.EncodeInt(int64(yy474)) } } } @@ -5596,8 +5609,8 @@ func (x *DeploymentSpec) CodecEncodeSelf(e *codec1978.Encoder) { if yyr453 || yy2arr453 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq453[6] { - yym475 := z.EncBinary() - _ = yym475 + yym477 := z.EncBinary() + _ = yym477 if false { } else { r.EncodeBool(bool(x.Paused)) @@ -5610,8 +5623,8 @@ func (x *DeploymentSpec) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("paused")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym476 := z.EncBinary() - _ = yym476 + yym478 := z.EncBinary() + _ = yym478 if false { } else { r.EncodeBool(bool(x.Paused)) @@ -5641,6 +5654,41 @@ func (x *DeploymentSpec) CodecEncodeSelf(e *codec1978.Encoder) { } } } + if yyr453 || yy2arr453 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq453[8] { + if x.ProgressDeadlineSeconds == nil { + r.EncodeNil() + } else { + yy481 := *x.ProgressDeadlineSeconds + yym482 := z.EncBinary() + _ = yym482 + if false { + } else { + r.EncodeInt(int64(yy481)) + } + } + } else { + r.EncodeNil() + } + } else { + if yyq453[8] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("progressDeadlineSeconds")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + if x.ProgressDeadlineSeconds == nil { + r.EncodeNil() + } else { + yy483 := *x.ProgressDeadlineSeconds + yym484 := z.EncBinary() + _ = yym484 + if false { + } else { + r.EncodeInt(int64(yy483)) + } + } + } + } if yyr453 || yy2arr453 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { @@ -5654,25 +5702,25 @@ func (x *DeploymentSpec) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym478 := z.DecBinary() - _ = yym478 + yym485 := z.DecBinary() + _ = yym485 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct479 := r.ContainerType() - if yyct479 == codecSelferValueTypeMap1234 { - yyl479 := r.ReadMapStart() - if yyl479 == 0 { + yyct486 := r.ContainerType() + if yyct486 == codecSelferValueTypeMap1234 { + yyl486 := r.ReadMapStart() + if yyl486 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl479, d) + x.codecDecodeSelfFromMap(yyl486, d) } - } else if yyct479 == codecSelferValueTypeArray1234 { - yyl479 := r.ReadArrayStart() - if yyl479 == 0 { + } else if yyct486 == codecSelferValueTypeArray1234 { + yyl486 := r.ReadArrayStart() + if yyl486 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl479, d) + x.codecDecodeSelfFromArray(yyl486, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -5684,12 +5732,12 @@ func (x *DeploymentSpec) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys480Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys480Slc - var yyhl480 bool = l >= 0 - for yyj480 := 0; ; yyj480++ { - if yyhl480 { - if yyj480 >= l { + var yys487Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys487Slc + var yyhl487 bool = l >= 0 + for yyj487 := 0; ; yyj487++ { + if yyhl487 { + if yyj487 >= l { break } } else { @@ -5698,10 +5746,10 @@ func (x *DeploymentSpec) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys480Slc = r.DecodeBytes(yys480Slc, true, true) - yys480 := string(yys480Slc) + yys487Slc = r.DecodeBytes(yys487Slc, true, true) + yys487 := string(yys487Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys480 { + switch yys487 { case "replicas": if r.TryDecodeAsNil() { if x.Replicas != nil { @@ -5711,8 +5759,8 @@ func (x *DeploymentSpec) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { if x.Replicas == nil { x.Replicas = new(int32) } - yym482 := z.DecBinary() - _ = yym482 + yym489 := z.DecBinary() + _ = yym489 if false { } else { *((*int32)(x.Replicas)) = int32(r.DecodeInt(32)) @@ -5725,23 +5773,29 @@ func (x *DeploymentSpec) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } else { if x.Selector == nil { - x.Selector = new(LabelSelector) + x.Selector = new(pkg1_unversioned.LabelSelector) + } + yym491 := z.DecBinary() + _ = yym491 + if false { + } else if z.HasExtensions() && z.DecExt(x.Selector) { + } else { + z.DecFallback(x.Selector, false) } - x.Selector.CodecDecodeSelf(d) } case "template": if r.TryDecodeAsNil() { x.Template = pkg2_v1.PodTemplateSpec{} } else { - yyv484 := &x.Template - yyv484.CodecDecodeSelf(d) + yyv492 := &x.Template + yyv492.CodecDecodeSelf(d) } case "strategy": if r.TryDecodeAsNil() { x.Strategy = DeploymentStrategy{} } else { - yyv485 := &x.Strategy - yyv485.CodecDecodeSelf(d) + yyv493 := &x.Strategy + yyv493.CodecDecodeSelf(d) } case "minReadySeconds": if r.TryDecodeAsNil() { @@ -5758,8 +5812,8 @@ func (x *DeploymentSpec) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { if x.RevisionHistoryLimit == nil { x.RevisionHistoryLimit = new(int32) } - yym488 := z.DecBinary() - _ = yym488 + yym496 := z.DecBinary() + _ = yym496 if false { } else { *((*int32)(x.RevisionHistoryLimit)) = int32(r.DecodeInt(32)) @@ -5782,10 +5836,26 @@ func (x *DeploymentSpec) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } x.RollbackTo.CodecDecodeSelf(d) } + case "progressDeadlineSeconds": + if r.TryDecodeAsNil() { + if x.ProgressDeadlineSeconds != nil { + x.ProgressDeadlineSeconds = nil + } + } else { + if x.ProgressDeadlineSeconds == nil { + x.ProgressDeadlineSeconds = new(int32) + } + yym500 := z.DecBinary() + _ = yym500 + if false { + } else { + *((*int32)(x.ProgressDeadlineSeconds)) = int32(r.DecodeInt(32)) + } + } default: - z.DecStructFieldNotFound(-1, yys480) - } // end switch yys480 - } // end for yyj480 + z.DecStructFieldNotFound(-1, yys487) + } // end switch yys487 + } // end for yyj487 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -5793,16 +5863,16 @@ func (x *DeploymentSpec) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj491 int - var yyb491 bool - var yyhl491 bool = l >= 0 - yyj491++ - if yyhl491 { - yyb491 = yyj491 > l + var yyj501 int + var yyb501 bool + var yyhl501 bool = l >= 0 + yyj501++ + if yyhl501 { + yyb501 = yyj501 > l } else { - yyb491 = r.CheckBreak() + yyb501 = r.CheckBreak() } - if yyb491 { + if yyb501 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -5815,20 +5885,20 @@ func (x *DeploymentSpec) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if x.Replicas == nil { x.Replicas = new(int32) } - yym493 := z.DecBinary() - _ = yym493 + yym503 := z.DecBinary() + _ = yym503 if false { } else { *((*int32)(x.Replicas)) = int32(r.DecodeInt(32)) } } - yyj491++ - if yyhl491 { - yyb491 = yyj491 > l + yyj501++ + if yyhl501 { + yyb501 = yyj501 > l } else { - yyb491 = r.CheckBreak() + yyb501 = r.CheckBreak() } - if yyb491 { + if yyb501 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -5839,17 +5909,23 @@ func (x *DeploymentSpec) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } } else { if x.Selector == nil { - x.Selector = new(LabelSelector) + x.Selector = new(pkg1_unversioned.LabelSelector) + } + yym505 := z.DecBinary() + _ = yym505 + if false { + } else if z.HasExtensions() && z.DecExt(x.Selector) { + } else { + z.DecFallback(x.Selector, false) } - x.Selector.CodecDecodeSelf(d) } - yyj491++ - if yyhl491 { - yyb491 = yyj491 > l + yyj501++ + if yyhl501 { + yyb501 = yyj501 > l } else { - yyb491 = r.CheckBreak() + yyb501 = r.CheckBreak() } - if yyb491 { + if yyb501 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -5857,16 +5933,16 @@ func (x *DeploymentSpec) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.Template = pkg2_v1.PodTemplateSpec{} } else { - yyv495 := &x.Template - yyv495.CodecDecodeSelf(d) + yyv506 := &x.Template + yyv506.CodecDecodeSelf(d) } - yyj491++ - if yyhl491 { - yyb491 = yyj491 > l + yyj501++ + if yyhl501 { + yyb501 = yyj501 > l } else { - yyb491 = r.CheckBreak() + yyb501 = r.CheckBreak() } - if yyb491 { + if yyb501 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -5874,16 +5950,16 @@ func (x *DeploymentSpec) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.Strategy = DeploymentStrategy{} } else { - yyv496 := &x.Strategy - yyv496.CodecDecodeSelf(d) + yyv507 := &x.Strategy + yyv507.CodecDecodeSelf(d) } - yyj491++ - if yyhl491 { - yyb491 = yyj491 > l + yyj501++ + if yyhl501 { + yyb501 = yyj501 > l } else { - yyb491 = r.CheckBreak() + yyb501 = r.CheckBreak() } - if yyb491 { + if yyb501 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -5893,13 +5969,13 @@ func (x *DeploymentSpec) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.MinReadySeconds = int32(r.DecodeInt(32)) } - yyj491++ - if yyhl491 { - yyb491 = yyj491 > l + yyj501++ + if yyhl501 { + yyb501 = yyj501 > l } else { - yyb491 = r.CheckBreak() + yyb501 = r.CheckBreak() } - if yyb491 { + if yyb501 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -5912,20 +5988,20 @@ func (x *DeploymentSpec) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if x.RevisionHistoryLimit == nil { x.RevisionHistoryLimit = new(int32) } - yym499 := z.DecBinary() - _ = yym499 + yym510 := z.DecBinary() + _ = yym510 if false { } else { *((*int32)(x.RevisionHistoryLimit)) = int32(r.DecodeInt(32)) } } - yyj491++ - if yyhl491 { - yyb491 = yyj491 > l + yyj501++ + if yyhl501 { + yyb501 = yyj501 > l } else { - yyb491 = r.CheckBreak() + yyb501 = r.CheckBreak() } - if yyb491 { + if yyb501 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -5935,13 +6011,13 @@ func (x *DeploymentSpec) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.Paused = bool(r.DecodeBool()) } - yyj491++ - if yyhl491 { - yyb491 = yyj491 > l + yyj501++ + if yyhl501 { + yyb501 = yyj501 > l } else { - yyb491 = r.CheckBreak() + yyb501 = r.CheckBreak() } - if yyb491 { + if yyb501 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -5956,18 +6032,44 @@ func (x *DeploymentSpec) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } x.RollbackTo.CodecDecodeSelf(d) } - for { - yyj491++ - if yyhl491 { - yyb491 = yyj491 > l - } else { - yyb491 = r.CheckBreak() + yyj501++ + if yyhl501 { + yyb501 = yyj501 > l + } else { + yyb501 = r.CheckBreak() + } + if yyb501 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + if x.ProgressDeadlineSeconds != nil { + x.ProgressDeadlineSeconds = nil } - if yyb491 { + } else { + if x.ProgressDeadlineSeconds == nil { + x.ProgressDeadlineSeconds = new(int32) + } + yym514 := z.DecBinary() + _ = yym514 + if false { + } else { + *((*int32)(x.ProgressDeadlineSeconds)) = int32(r.DecodeInt(32)) + } + } + for { + yyj501++ + if yyhl501 { + yyb501 = yyj501 > l + } else { + yyb501 = r.CheckBreak() + } + if yyb501 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj491-1, "") + z.DecStructFieldNotFound(yyj501-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -5979,37 +6081,37 @@ func (x *DeploymentRollback) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym502 := z.EncBinary() - _ = yym502 + yym515 := z.EncBinary() + _ = yym515 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - 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 { + yysep516 := !z.EncBinary() + yy2arr516 := z.EncBasicHandle().StructToArray + var yyq516 [5]bool + _, _, _ = yysep516, yyq516, yy2arr516 + const yyr516 bool = false + yyq516[0] = x.Kind != "" + yyq516[1] = x.APIVersion != "" + yyq516[3] = len(x.UpdatedAnnotations) != 0 + var yynn516 int + if yyr516 || yy2arr516 { r.EncodeArrayStart(5) } else { - yynn503 = 2 - for _, b := range yyq503 { + yynn516 = 2 + for _, b := range yyq516 { if b { - yynn503++ + yynn516++ } } - r.EncodeMapStart(yynn503) - yynn503 = 0 + r.EncodeMapStart(yynn516) + yynn516 = 0 } - if yyr503 || yy2arr503 { + if yyr516 || yy2arr516 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq503[0] { - yym505 := z.EncBinary() - _ = yym505 + if yyq516[0] { + yym518 := z.EncBinary() + _ = yym518 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) @@ -6018,23 +6120,23 @@ func (x *DeploymentRollback) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq503[0] { + if yyq516[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym506 := z.EncBinary() - _ = yym506 + yym519 := z.EncBinary() + _ = yym519 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } - if yyr503 || yy2arr503 { + if yyr516 || yy2arr516 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq503[1] { - yym508 := z.EncBinary() - _ = yym508 + if yyq516[1] { + yym521 := z.EncBinary() + _ = yym521 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) @@ -6043,22 +6145,22 @@ func (x *DeploymentRollback) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq503[1] { + if yyq516[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym509 := z.EncBinary() - _ = yym509 + yym522 := z.EncBinary() + _ = yym522 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } - if yyr503 || yy2arr503 { + if yyr516 || yy2arr516 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym511 := z.EncBinary() - _ = yym511 + yym524 := z.EncBinary() + _ = yym524 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Name)) @@ -6067,21 +6169,21 @@ func (x *DeploymentRollback) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("name")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym512 := z.EncBinary() - _ = yym512 + yym525 := z.EncBinary() + _ = yym525 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Name)) } } - if yyr503 || yy2arr503 { + if yyr516 || yy2arr516 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq503[3] { + if yyq516[3] { if x.UpdatedAnnotations == nil { r.EncodeNil() } else { - yym514 := z.EncBinary() - _ = yym514 + yym527 := z.EncBinary() + _ = yym527 if false { } else { z.F.EncMapStringStringV(x.UpdatedAnnotations, false, e) @@ -6091,15 +6193,15 @@ func (x *DeploymentRollback) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq503[3] { + if yyq516[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("updatedAnnotations")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.UpdatedAnnotations == nil { r.EncodeNil() } else { - yym515 := z.EncBinary() - _ = yym515 + yym528 := z.EncBinary() + _ = yym528 if false { } else { z.F.EncMapStringStringV(x.UpdatedAnnotations, false, e) @@ -6107,18 +6209,18 @@ func (x *DeploymentRollback) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr503 || yy2arr503 { + if yyr516 || yy2arr516 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy517 := &x.RollbackTo - yy517.CodecEncodeSelf(e) + yy530 := &x.RollbackTo + yy530.CodecEncodeSelf(e) } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("rollbackTo")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy518 := &x.RollbackTo - yy518.CodecEncodeSelf(e) + yy531 := &x.RollbackTo + yy531.CodecEncodeSelf(e) } - if yyr503 || yy2arr503 { + if yyr516 || yy2arr516 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -6131,25 +6233,25 @@ func (x *DeploymentRollback) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym519 := z.DecBinary() - _ = yym519 + yym532 := z.DecBinary() + _ = yym532 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct520 := r.ContainerType() - if yyct520 == codecSelferValueTypeMap1234 { - yyl520 := r.ReadMapStart() - if yyl520 == 0 { + yyct533 := r.ContainerType() + if yyct533 == codecSelferValueTypeMap1234 { + yyl533 := r.ReadMapStart() + if yyl533 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl520, d) + x.codecDecodeSelfFromMap(yyl533, d) } - } else if yyct520 == codecSelferValueTypeArray1234 { - yyl520 := r.ReadArrayStart() - if yyl520 == 0 { + } else if yyct533 == codecSelferValueTypeArray1234 { + yyl533 := r.ReadArrayStart() + if yyl533 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl520, d) + x.codecDecodeSelfFromArray(yyl533, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -6161,12 +6263,12 @@ func (x *DeploymentRollback) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys521Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys521Slc - var yyhl521 bool = l >= 0 - for yyj521 := 0; ; yyj521++ { - if yyhl521 { - if yyj521 >= l { + var yys534Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys534Slc + var yyhl534 bool = l >= 0 + for yyj534 := 0; ; yyj534++ { + if yyhl534 { + if yyj534 >= l { break } } else { @@ -6175,10 +6277,10 @@ func (x *DeploymentRollback) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys521Slc = r.DecodeBytes(yys521Slc, true, true) - yys521 := string(yys521Slc) + yys534Slc = r.DecodeBytes(yys534Slc, true, true) + yys534 := string(yys534Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys521 { + switch yys534 { case "kind": if r.TryDecodeAsNil() { x.Kind = "" @@ -6201,25 +6303,25 @@ func (x *DeploymentRollback) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) if r.TryDecodeAsNil() { x.UpdatedAnnotations = nil } else { - yyv525 := &x.UpdatedAnnotations - yym526 := z.DecBinary() - _ = yym526 + yyv538 := &x.UpdatedAnnotations + yym539 := z.DecBinary() + _ = yym539 if false { } else { - z.F.DecMapStringStringX(yyv525, false, d) + z.F.DecMapStringStringX(yyv538, false, d) } } case "rollbackTo": if r.TryDecodeAsNil() { x.RollbackTo = RollbackConfig{} } else { - yyv527 := &x.RollbackTo - yyv527.CodecDecodeSelf(d) + yyv540 := &x.RollbackTo + yyv540.CodecDecodeSelf(d) } default: - z.DecStructFieldNotFound(-1, yys521) - } // end switch yys521 - } // end for yyj521 + z.DecStructFieldNotFound(-1, yys534) + } // end switch yys534 + } // end for yyj534 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -6227,16 +6329,16 @@ func (x *DeploymentRollback) codecDecodeSelfFromArray(l int, d *codec1978.Decode var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj528 int - var yyb528 bool - var yyhl528 bool = l >= 0 - yyj528++ - if yyhl528 { - yyb528 = yyj528 > l + var yyj541 int + var yyb541 bool + var yyhl541 bool = l >= 0 + yyj541++ + if yyhl541 { + yyb541 = yyj541 > l } else { - yyb528 = r.CheckBreak() + yyb541 = r.CheckBreak() } - if yyb528 { + if yyb541 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -6246,13 +6348,13 @@ func (x *DeploymentRollback) codecDecodeSelfFromArray(l int, d *codec1978.Decode } else { x.Kind = string(r.DecodeString()) } - yyj528++ - if yyhl528 { - yyb528 = yyj528 > l + yyj541++ + if yyhl541 { + yyb541 = yyj541 > l } else { - yyb528 = r.CheckBreak() + yyb541 = r.CheckBreak() } - if yyb528 { + if yyb541 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -6262,13 +6364,13 @@ func (x *DeploymentRollback) codecDecodeSelfFromArray(l int, d *codec1978.Decode } else { x.APIVersion = string(r.DecodeString()) } - yyj528++ - if yyhl528 { - yyb528 = yyj528 > l + yyj541++ + if yyhl541 { + yyb541 = yyj541 > l } else { - yyb528 = r.CheckBreak() + yyb541 = r.CheckBreak() } - if yyb528 { + if yyb541 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -6278,13 +6380,13 @@ func (x *DeploymentRollback) codecDecodeSelfFromArray(l int, d *codec1978.Decode } else { x.Name = string(r.DecodeString()) } - yyj528++ - if yyhl528 { - yyb528 = yyj528 > l + yyj541++ + if yyhl541 { + yyb541 = yyj541 > l } else { - yyb528 = r.CheckBreak() + yyb541 = r.CheckBreak() } - if yyb528 { + if yyb541 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -6292,21 +6394,21 @@ func (x *DeploymentRollback) codecDecodeSelfFromArray(l int, d *codec1978.Decode if r.TryDecodeAsNil() { x.UpdatedAnnotations = nil } else { - yyv532 := &x.UpdatedAnnotations - yym533 := z.DecBinary() - _ = yym533 + yyv545 := &x.UpdatedAnnotations + yym546 := z.DecBinary() + _ = yym546 if false { } else { - z.F.DecMapStringStringX(yyv532, false, d) + z.F.DecMapStringStringX(yyv545, false, d) } } - yyj528++ - if yyhl528 { - yyb528 = yyj528 > l + yyj541++ + if yyhl541 { + yyb541 = yyj541 > l } else { - yyb528 = r.CheckBreak() + yyb541 = r.CheckBreak() } - if yyb528 { + if yyb541 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -6314,21 +6416,21 @@ func (x *DeploymentRollback) codecDecodeSelfFromArray(l int, d *codec1978.Decode if r.TryDecodeAsNil() { x.RollbackTo = RollbackConfig{} } else { - yyv534 := &x.RollbackTo - yyv534.CodecDecodeSelf(d) + yyv547 := &x.RollbackTo + yyv547.CodecDecodeSelf(d) } for { - yyj528++ - if yyhl528 { - yyb528 = yyj528 > l + yyj541++ + if yyhl541 { + yyb541 = yyj541 > l } else { - yyb528 = r.CheckBreak() + yyb541 = r.CheckBreak() } - if yyb528 { + if yyb541 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj528-1, "") + z.DecStructFieldNotFound(yyj541-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -6340,35 +6442,35 @@ func (x *RollbackConfig) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym535 := z.EncBinary() - _ = yym535 + yym548 := z.EncBinary() + _ = yym548 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - 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 { + yysep549 := !z.EncBinary() + yy2arr549 := z.EncBasicHandle().StructToArray + var yyq549 [1]bool + _, _, _ = yysep549, yyq549, yy2arr549 + const yyr549 bool = false + yyq549[0] = x.Revision != 0 + var yynn549 int + if yyr549 || yy2arr549 { r.EncodeArrayStart(1) } else { - yynn536 = 0 - for _, b := range yyq536 { + yynn549 = 0 + for _, b := range yyq549 { if b { - yynn536++ + yynn549++ } } - r.EncodeMapStart(yynn536) - yynn536 = 0 + r.EncodeMapStart(yynn549) + yynn549 = 0 } - if yyr536 || yy2arr536 { + if yyr549 || yy2arr549 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq536[0] { - yym538 := z.EncBinary() - _ = yym538 + if yyq549[0] { + yym551 := z.EncBinary() + _ = yym551 if false { } else { r.EncodeInt(int64(x.Revision)) @@ -6377,19 +6479,19 @@ func (x *RollbackConfig) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeInt(0) } } else { - if yyq536[0] { + if yyq549[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("revision")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym539 := z.EncBinary() - _ = yym539 + yym552 := z.EncBinary() + _ = yym552 if false { } else { r.EncodeInt(int64(x.Revision)) } } } - if yyr536 || yy2arr536 { + if yyr549 || yy2arr549 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -6402,25 +6504,25 @@ func (x *RollbackConfig) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym540 := z.DecBinary() - _ = yym540 + yym553 := z.DecBinary() + _ = yym553 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct541 := r.ContainerType() - if yyct541 == codecSelferValueTypeMap1234 { - yyl541 := r.ReadMapStart() - if yyl541 == 0 { + yyct554 := r.ContainerType() + if yyct554 == codecSelferValueTypeMap1234 { + yyl554 := r.ReadMapStart() + if yyl554 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl541, d) + x.codecDecodeSelfFromMap(yyl554, d) } - } else if yyct541 == codecSelferValueTypeArray1234 { - yyl541 := r.ReadArrayStart() - if yyl541 == 0 { + } else if yyct554 == codecSelferValueTypeArray1234 { + yyl554 := r.ReadArrayStart() + if yyl554 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl541, d) + x.codecDecodeSelfFromArray(yyl554, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -6432,12 +6534,12 @@ func (x *RollbackConfig) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys542Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys542Slc - var yyhl542 bool = l >= 0 - for yyj542 := 0; ; yyj542++ { - if yyhl542 { - if yyj542 >= l { + var yys555Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys555Slc + var yyhl555 bool = l >= 0 + for yyj555 := 0; ; yyj555++ { + if yyhl555 { + if yyj555 >= l { break } } else { @@ -6446,10 +6548,10 @@ func (x *RollbackConfig) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys542Slc = r.DecodeBytes(yys542Slc, true, true) - yys542 := string(yys542Slc) + yys555Slc = r.DecodeBytes(yys555Slc, true, true) + yys555 := string(yys555Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys542 { + switch yys555 { case "revision": if r.TryDecodeAsNil() { x.Revision = 0 @@ -6457,9 +6559,9 @@ func (x *RollbackConfig) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { x.Revision = int64(r.DecodeInt(64)) } default: - z.DecStructFieldNotFound(-1, yys542) - } // end switch yys542 - } // end for yyj542 + z.DecStructFieldNotFound(-1, yys555) + } // end switch yys555 + } // end for yyj555 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -6467,16 +6569,16 @@ func (x *RollbackConfig) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj544 int - var yyb544 bool - var yyhl544 bool = l >= 0 - yyj544++ - if yyhl544 { - yyb544 = yyj544 > l + var yyj557 int + var yyb557 bool + var yyhl557 bool = l >= 0 + yyj557++ + if yyhl557 { + yyb557 = yyj557 > l } else { - yyb544 = r.CheckBreak() + yyb557 = r.CheckBreak() } - if yyb544 { + if yyb557 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -6487,17 +6589,17 @@ func (x *RollbackConfig) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { x.Revision = int64(r.DecodeInt(64)) } for { - yyj544++ - if yyhl544 { - yyb544 = yyj544 > l + yyj557++ + if yyhl557 { + yyb557 = yyj557 > l } else { - yyb544 = r.CheckBreak() + yyb557 = r.CheckBreak() } - if yyb544 { + if yyb557 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj544-1, "") + z.DecStructFieldNotFound(yyj557-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -6509,49 +6611,49 @@ func (x *DeploymentStrategy) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym546 := z.EncBinary() - _ = yym546 + yym559 := z.EncBinary() + _ = yym559 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - 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 { + yysep560 := !z.EncBinary() + yy2arr560 := z.EncBasicHandle().StructToArray + var yyq560 [2]bool + _, _, _ = yysep560, yyq560, yy2arr560 + const yyr560 bool = false + yyq560[0] = x.Type != "" + yyq560[1] = x.RollingUpdate != nil + var yynn560 int + if yyr560 || yy2arr560 { r.EncodeArrayStart(2) } else { - yynn547 = 0 - for _, b := range yyq547 { + yynn560 = 0 + for _, b := range yyq560 { if b { - yynn547++ + yynn560++ } } - r.EncodeMapStart(yynn547) - yynn547 = 0 + r.EncodeMapStart(yynn560) + yynn560 = 0 } - if yyr547 || yy2arr547 { + if yyr560 || yy2arr560 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq547[0] { + if yyq560[0] { x.Type.CodecEncodeSelf(e) } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq547[0] { + if yyq560[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("type")) z.EncSendContainerState(codecSelfer_containerMapValue1234) x.Type.CodecEncodeSelf(e) } } - if yyr547 || yy2arr547 { + if yyr560 || yy2arr560 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq547[1] { + if yyq560[1] { if x.RollingUpdate == nil { r.EncodeNil() } else { @@ -6561,7 +6663,7 @@ func (x *DeploymentStrategy) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq547[1] { + if yyq560[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("rollingUpdate")) z.EncSendContainerState(codecSelfer_containerMapValue1234) @@ -6572,7 +6674,7 @@ func (x *DeploymentStrategy) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr547 || yy2arr547 { + if yyr560 || yy2arr560 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -6585,25 +6687,25 @@ func (x *DeploymentStrategy) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym550 := z.DecBinary() - _ = yym550 + yym563 := z.DecBinary() + _ = yym563 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct551 := r.ContainerType() - if yyct551 == codecSelferValueTypeMap1234 { - yyl551 := r.ReadMapStart() - if yyl551 == 0 { + yyct564 := r.ContainerType() + if yyct564 == codecSelferValueTypeMap1234 { + yyl564 := r.ReadMapStart() + if yyl564 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl551, d) + x.codecDecodeSelfFromMap(yyl564, d) } - } else if yyct551 == codecSelferValueTypeArray1234 { - yyl551 := r.ReadArrayStart() - if yyl551 == 0 { + } else if yyct564 == codecSelferValueTypeArray1234 { + yyl564 := r.ReadArrayStart() + if yyl564 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl551, d) + x.codecDecodeSelfFromArray(yyl564, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -6615,12 +6717,12 @@ func (x *DeploymentStrategy) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys552Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys552Slc - var yyhl552 bool = l >= 0 - for yyj552 := 0; ; yyj552++ { - if yyhl552 { - if yyj552 >= l { + var yys565Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys565Slc + var yyhl565 bool = l >= 0 + for yyj565 := 0; ; yyj565++ { + if yyhl565 { + if yyj565 >= l { break } } else { @@ -6629,10 +6731,10 @@ func (x *DeploymentStrategy) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys552Slc = r.DecodeBytes(yys552Slc, true, true) - yys552 := string(yys552Slc) + yys565Slc = r.DecodeBytes(yys565Slc, true, true) + yys565 := string(yys565Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys552 { + switch yys565 { case "type": if r.TryDecodeAsNil() { x.Type = "" @@ -6651,9 +6753,9 @@ func (x *DeploymentStrategy) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) x.RollingUpdate.CodecDecodeSelf(d) } default: - z.DecStructFieldNotFound(-1, yys552) - } // end switch yys552 - } // end for yyj552 + z.DecStructFieldNotFound(-1, yys565) + } // end switch yys565 + } // end for yyj565 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -6661,16 +6763,16 @@ func (x *DeploymentStrategy) codecDecodeSelfFromArray(l int, d *codec1978.Decode var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj555 int - var yyb555 bool - var yyhl555 bool = l >= 0 - yyj555++ - if yyhl555 { - yyb555 = yyj555 > l + var yyj568 int + var yyb568 bool + var yyhl568 bool = l >= 0 + yyj568++ + if yyhl568 { + yyb568 = yyj568 > l } else { - yyb555 = r.CheckBreak() + yyb568 = r.CheckBreak() } - if yyb555 { + if yyb568 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -6680,13 +6782,13 @@ func (x *DeploymentStrategy) codecDecodeSelfFromArray(l int, d *codec1978.Decode } else { x.Type = DeploymentStrategyType(r.DecodeString()) } - yyj555++ - if yyhl555 { - yyb555 = yyj555 > l + yyj568++ + if yyhl568 { + yyb568 = yyj568 > l } else { - yyb555 = r.CheckBreak() + yyb568 = r.CheckBreak() } - if yyb555 { + if yyb568 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -6702,17 +6804,17 @@ func (x *DeploymentStrategy) codecDecodeSelfFromArray(l int, d *codec1978.Decode x.RollingUpdate.CodecDecodeSelf(d) } for { - yyj555++ - if yyhl555 { - yyb555 = yyj555 > l + yyj568++ + if yyhl568 { + yyb568 = yyj568 > l } else { - yyb555 = r.CheckBreak() + yyb568 = r.CheckBreak() } - if yyb555 { + if yyb568 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj555-1, "") + z.DecStructFieldNotFound(yyj568-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -6721,8 +6823,8 @@ func (x DeploymentStrategyType) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r - yym558 := z.EncBinary() - _ = yym558 + yym571 := z.EncBinary() + _ = yym571 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { @@ -6734,8 +6836,8 @@ func (x *DeploymentStrategyType) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym559 := z.DecBinary() - _ = yym559 + yym572 := z.DecBinary() + _ = yym572 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { @@ -6750,42 +6852,42 @@ func (x *RollingUpdateDeployment) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym560 := z.EncBinary() - _ = yym560 + yym573 := z.EncBinary() + _ = yym573 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - 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 { + yysep574 := !z.EncBinary() + yy2arr574 := z.EncBasicHandle().StructToArray + var yyq574 [2]bool + _, _, _ = yysep574, yyq574, yy2arr574 + const yyr574 bool = false + yyq574[0] = x.MaxUnavailable != nil + yyq574[1] = x.MaxSurge != nil + var yynn574 int + if yyr574 || yy2arr574 { r.EncodeArrayStart(2) } else { - yynn561 = 0 - for _, b := range yyq561 { + yynn574 = 0 + for _, b := range yyq574 { if b { - yynn561++ + yynn574++ } } - r.EncodeMapStart(yynn561) - yynn561 = 0 + r.EncodeMapStart(yynn574) + yynn574 = 0 } - if yyr561 || yy2arr561 { + if yyr574 || yy2arr574 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq561[0] { + if yyq574[0] { if x.MaxUnavailable == nil { r.EncodeNil() } else { - yym563 := z.EncBinary() - _ = yym563 + yym576 := z.EncBinary() + _ = yym576 if false { } else if z.HasExtensions() && z.EncExt(x.MaxUnavailable) { - } else if !yym563 && z.IsJSONHandle() { + } else if !yym576 && z.IsJSONHandle() { z.EncJSONMarshal(x.MaxUnavailable) } else { z.EncFallback(x.MaxUnavailable) @@ -6795,18 +6897,18 @@ func (x *RollingUpdateDeployment) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq561[0] { + if yyq574[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("maxUnavailable")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.MaxUnavailable == nil { r.EncodeNil() } else { - yym564 := z.EncBinary() - _ = yym564 + yym577 := z.EncBinary() + _ = yym577 if false { } else if z.HasExtensions() && z.EncExt(x.MaxUnavailable) { - } else if !yym564 && z.IsJSONHandle() { + } else if !yym577 && z.IsJSONHandle() { z.EncJSONMarshal(x.MaxUnavailable) } else { z.EncFallback(x.MaxUnavailable) @@ -6814,17 +6916,17 @@ func (x *RollingUpdateDeployment) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr561 || yy2arr561 { + if yyr574 || yy2arr574 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq561[1] { + if yyq574[1] { if x.MaxSurge == nil { r.EncodeNil() } else { - yym566 := z.EncBinary() - _ = yym566 + yym579 := z.EncBinary() + _ = yym579 if false { } else if z.HasExtensions() && z.EncExt(x.MaxSurge) { - } else if !yym566 && z.IsJSONHandle() { + } else if !yym579 && z.IsJSONHandle() { z.EncJSONMarshal(x.MaxSurge) } else { z.EncFallback(x.MaxSurge) @@ -6834,18 +6936,18 @@ func (x *RollingUpdateDeployment) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq561[1] { + if yyq574[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("maxSurge")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.MaxSurge == nil { r.EncodeNil() } else { - yym567 := z.EncBinary() - _ = yym567 + yym580 := z.EncBinary() + _ = yym580 if false { } else if z.HasExtensions() && z.EncExt(x.MaxSurge) { - } else if !yym567 && z.IsJSONHandle() { + } else if !yym580 && z.IsJSONHandle() { z.EncJSONMarshal(x.MaxSurge) } else { z.EncFallback(x.MaxSurge) @@ -6853,7 +6955,7 @@ func (x *RollingUpdateDeployment) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr561 || yy2arr561 { + if yyr574 || yy2arr574 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -6866,25 +6968,25 @@ func (x *RollingUpdateDeployment) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym568 := z.DecBinary() - _ = yym568 + yym581 := z.DecBinary() + _ = yym581 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct569 := r.ContainerType() - if yyct569 == codecSelferValueTypeMap1234 { - yyl569 := r.ReadMapStart() - if yyl569 == 0 { + yyct582 := r.ContainerType() + if yyct582 == codecSelferValueTypeMap1234 { + yyl582 := r.ReadMapStart() + if yyl582 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl569, d) + x.codecDecodeSelfFromMap(yyl582, d) } - } else if yyct569 == codecSelferValueTypeArray1234 { - yyl569 := r.ReadArrayStart() - if yyl569 == 0 { + } else if yyct582 == codecSelferValueTypeArray1234 { + yyl582 := r.ReadArrayStart() + if yyl582 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl569, d) + x.codecDecodeSelfFromArray(yyl582, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -6896,12 +6998,12 @@ func (x *RollingUpdateDeployment) codecDecodeSelfFromMap(l int, d *codec1978.Dec var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys570Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys570Slc - var yyhl570 bool = l >= 0 - for yyj570 := 0; ; yyj570++ { - if yyhl570 { - if yyj570 >= l { + var yys583Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys583Slc + var yyhl583 bool = l >= 0 + for yyj583 := 0; ; yyj583++ { + if yyhl583 { + if yyj583 >= l { break } } else { @@ -6910,10 +7012,10 @@ func (x *RollingUpdateDeployment) codecDecodeSelfFromMap(l int, d *codec1978.Dec } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys570Slc = r.DecodeBytes(yys570Slc, true, true) - yys570 := string(yys570Slc) + yys583Slc = r.DecodeBytes(yys583Slc, true, true) + yys583 := string(yys583Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys570 { + switch yys583 { case "maxUnavailable": if r.TryDecodeAsNil() { if x.MaxUnavailable != nil { @@ -6923,11 +7025,11 @@ func (x *RollingUpdateDeployment) codecDecodeSelfFromMap(l int, d *codec1978.Dec if x.MaxUnavailable == nil { x.MaxUnavailable = new(pkg5_intstr.IntOrString) } - yym572 := z.DecBinary() - _ = yym572 + yym585 := z.DecBinary() + _ = yym585 if false { } else if z.HasExtensions() && z.DecExt(x.MaxUnavailable) { - } else if !yym572 && z.IsJSONHandle() { + } else if !yym585 && z.IsJSONHandle() { z.DecJSONUnmarshal(x.MaxUnavailable) } else { z.DecFallback(x.MaxUnavailable, false) @@ -6942,20 +7044,20 @@ func (x *RollingUpdateDeployment) codecDecodeSelfFromMap(l int, d *codec1978.Dec if x.MaxSurge == nil { x.MaxSurge = new(pkg5_intstr.IntOrString) } - yym574 := z.DecBinary() - _ = yym574 + yym587 := z.DecBinary() + _ = yym587 if false { } else if z.HasExtensions() && z.DecExt(x.MaxSurge) { - } else if !yym574 && z.IsJSONHandle() { + } else if !yym587 && z.IsJSONHandle() { z.DecJSONUnmarshal(x.MaxSurge) } else { z.DecFallback(x.MaxSurge, false) } } default: - z.DecStructFieldNotFound(-1, yys570) - } // end switch yys570 - } // end for yyj570 + z.DecStructFieldNotFound(-1, yys583) + } // end switch yys583 + } // end for yyj583 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -6963,16 +7065,16 @@ func (x *RollingUpdateDeployment) codecDecodeSelfFromArray(l int, d *codec1978.D var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj575 int - var yyb575 bool - var yyhl575 bool = l >= 0 - yyj575++ - if yyhl575 { - yyb575 = yyj575 > l + var yyj588 int + var yyb588 bool + var yyhl588 bool = l >= 0 + yyj588++ + if yyhl588 { + yyb588 = yyj588 > l } else { - yyb575 = r.CheckBreak() + yyb588 = r.CheckBreak() } - if yyb575 { + if yyb588 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -6985,23 +7087,23 @@ func (x *RollingUpdateDeployment) codecDecodeSelfFromArray(l int, d *codec1978.D if x.MaxUnavailable == nil { x.MaxUnavailable = new(pkg5_intstr.IntOrString) } - yym577 := z.DecBinary() - _ = yym577 + yym590 := z.DecBinary() + _ = yym590 if false { } else if z.HasExtensions() && z.DecExt(x.MaxUnavailable) { - } else if !yym577 && z.IsJSONHandle() { + } else if !yym590 && z.IsJSONHandle() { z.DecJSONUnmarshal(x.MaxUnavailable) } else { z.DecFallback(x.MaxUnavailable, false) } } - yyj575++ - if yyhl575 { - yyb575 = yyj575 > l + yyj588++ + if yyhl588 { + yyb588 = yyj588 > l } else { - yyb575 = r.CheckBreak() + yyb588 = r.CheckBreak() } - if yyb575 { + if yyb588 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -7014,28 +7116,28 @@ func (x *RollingUpdateDeployment) codecDecodeSelfFromArray(l int, d *codec1978.D if x.MaxSurge == nil { x.MaxSurge = new(pkg5_intstr.IntOrString) } - yym579 := z.DecBinary() - _ = yym579 + yym592 := z.DecBinary() + _ = yym592 if false { } else if z.HasExtensions() && z.DecExt(x.MaxSurge) { - } else if !yym579 && z.IsJSONHandle() { + } else if !yym592 && z.IsJSONHandle() { z.DecJSONUnmarshal(x.MaxSurge) } else { z.DecFallback(x.MaxSurge, false) } } for { - yyj575++ - if yyhl575 { - yyb575 = yyj575 > l + yyj588++ + if yyhl588 { + yyb588 = yyj588 > l } else { - yyb575 = r.CheckBreak() + yyb588 = r.CheckBreak() } - if yyb575 { + if yyb588 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj575-1, "") + z.DecStructFieldNotFound(yyj588-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -7047,160 +7149,194 @@ func (x *DeploymentStatus) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym580 := z.EncBinary() - _ = yym580 + yym593 := z.EncBinary() + _ = yym593 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - 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) + yysep594 := !z.EncBinary() + yy2arr594 := z.EncBasicHandle().StructToArray + var yyq594 [6]bool + _, _, _ = yysep594, yyq594, yy2arr594 + const yyr594 bool = false + yyq594[0] = x.ObservedGeneration != 0 + yyq594[1] = x.Replicas != 0 + yyq594[2] = x.UpdatedReplicas != 0 + yyq594[3] = x.AvailableReplicas != 0 + yyq594[4] = x.UnavailableReplicas != 0 + yyq594[5] = len(x.Conditions) != 0 + var yynn594 int + if yyr594 || yy2arr594 { + r.EncodeArrayStart(6) } else { - yynn581 = 0 - for _, b := range yyq581 { + yynn594 = 0 + for _, b := range yyq594 { if b { - yynn581++ + yynn594++ } } - r.EncodeMapStart(yynn581) - yynn581 = 0 + r.EncodeMapStart(yynn594) + yynn594 = 0 } - if yyr581 || yy2arr581 { + if yyr594 || yy2arr594 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq581[0] { - yym583 := z.EncBinary() - _ = yym583 - if false { - } else { - r.EncodeInt(int64(x.ObservedGeneration)) - } - } else { - r.EncodeInt(0) - } - } else { - if yyq581[0] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("observedGeneration")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym584 := z.EncBinary() - _ = yym584 - if false { - } else { - r.EncodeInt(int64(x.ObservedGeneration)) - } - } - } - if yyr581 || yy2arr581 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq581[1] { - yym586 := z.EncBinary() - _ = yym586 - if false { - } else { - r.EncodeInt(int64(x.Replicas)) - } - } else { - r.EncodeInt(0) - } - } else { - if yyq581[1] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("replicas")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym587 := z.EncBinary() - _ = yym587 - if false { - } else { - r.EncodeInt(int64(x.Replicas)) - } - } - } - if yyr581 || yy2arr581 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq581[2] { - yym589 := z.EncBinary() - _ = yym589 - if false { - } else { - r.EncodeInt(int64(x.UpdatedReplicas)) - } - } else { - r.EncodeInt(0) - } - } else { - if yyq581[2] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("updatedReplicas")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym590 := z.EncBinary() - _ = yym590 - if false { - } else { - r.EncodeInt(int64(x.UpdatedReplicas)) - } - } - } - if yyr581 || yy2arr581 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq581[3] { - yym592 := z.EncBinary() - _ = yym592 - if false { - } else { - r.EncodeInt(int64(x.AvailableReplicas)) - } - } else { - r.EncodeInt(0) - } - } else { - if yyq581[3] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("availableReplicas")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym593 := z.EncBinary() - _ = yym593 - if false { - } else { - r.EncodeInt(int64(x.AvailableReplicas)) - } - } - } - if yyr581 || yy2arr581 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq581[4] { - yym595 := z.EncBinary() - _ = yym595 - if false { - } else { - r.EncodeInt(int64(x.UnavailableReplicas)) - } - } else { - r.EncodeInt(0) - } - } else { - if yyq581[4] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("unavailableReplicas")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) + if yyq594[0] { yym596 := z.EncBinary() _ = yym596 if false { + } else { + r.EncodeInt(int64(x.ObservedGeneration)) + } + } else { + r.EncodeInt(0) + } + } else { + if yyq594[0] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("observedGeneration")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym597 := z.EncBinary() + _ = yym597 + if false { + } else { + r.EncodeInt(int64(x.ObservedGeneration)) + } + } + } + if yyr594 || yy2arr594 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq594[1] { + yym599 := z.EncBinary() + _ = yym599 + if false { + } else { + r.EncodeInt(int64(x.Replicas)) + } + } else { + r.EncodeInt(0) + } + } else { + if yyq594[1] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("replicas")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym600 := z.EncBinary() + _ = yym600 + if false { + } else { + r.EncodeInt(int64(x.Replicas)) + } + } + } + if yyr594 || yy2arr594 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq594[2] { + yym602 := z.EncBinary() + _ = yym602 + if false { + } else { + r.EncodeInt(int64(x.UpdatedReplicas)) + } + } else { + r.EncodeInt(0) + } + } else { + if yyq594[2] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("updatedReplicas")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym603 := z.EncBinary() + _ = yym603 + if false { + } else { + r.EncodeInt(int64(x.UpdatedReplicas)) + } + } + } + if yyr594 || yy2arr594 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq594[3] { + yym605 := z.EncBinary() + _ = yym605 + if false { + } else { + r.EncodeInt(int64(x.AvailableReplicas)) + } + } else { + r.EncodeInt(0) + } + } else { + if yyq594[3] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("availableReplicas")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym606 := z.EncBinary() + _ = yym606 + if false { + } else { + r.EncodeInt(int64(x.AvailableReplicas)) + } + } + } + if yyr594 || yy2arr594 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq594[4] { + yym608 := z.EncBinary() + _ = yym608 + if false { + } else { + r.EncodeInt(int64(x.UnavailableReplicas)) + } + } else { + r.EncodeInt(0) + } + } else { + if yyq594[4] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("unavailableReplicas")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym609 := z.EncBinary() + _ = yym609 + if false { } else { r.EncodeInt(int64(x.UnavailableReplicas)) } } } - if yyr581 || yy2arr581 { + if yyr594 || yy2arr594 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq594[5] { + if x.Conditions == nil { + r.EncodeNil() + } else { + yym611 := z.EncBinary() + _ = yym611 + if false { + } else { + h.encSliceDeploymentCondition(([]DeploymentCondition)(x.Conditions), e) + } + } + } else { + r.EncodeNil() + } + } else { + if yyq594[5] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("conditions")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + if x.Conditions == nil { + r.EncodeNil() + } else { + yym612 := z.EncBinary() + _ = yym612 + if false { + } else { + h.encSliceDeploymentCondition(([]DeploymentCondition)(x.Conditions), e) + } + } + } + } + if yyr594 || yy2arr594 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -7213,25 +7349,25 @@ func (x *DeploymentStatus) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym597 := z.DecBinary() - _ = yym597 + yym613 := z.DecBinary() + _ = yym613 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct598 := r.ContainerType() - if yyct598 == codecSelferValueTypeMap1234 { - yyl598 := r.ReadMapStart() - if yyl598 == 0 { + yyct614 := r.ContainerType() + if yyct614 == codecSelferValueTypeMap1234 { + yyl614 := r.ReadMapStart() + if yyl614 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl598, d) + x.codecDecodeSelfFromMap(yyl614, d) } - } else if yyct598 == codecSelferValueTypeArray1234 { - yyl598 := r.ReadArrayStart() - if yyl598 == 0 { + } else if yyct614 == codecSelferValueTypeArray1234 { + yyl614 := r.ReadArrayStart() + if yyl614 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl598, d) + x.codecDecodeSelfFromArray(yyl614, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -7243,12 +7379,12 @@ func (x *DeploymentStatus) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys599Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys599Slc - var yyhl599 bool = l >= 0 - for yyj599 := 0; ; yyj599++ { - if yyhl599 { - if yyj599 >= l { + var yys615Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys615Slc + var yyhl615 bool = l >= 0 + for yyj615 := 0; ; yyj615++ { + if yyhl615 { + if yyj615 >= l { break } } else { @@ -7257,10 +7393,10 @@ func (x *DeploymentStatus) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys599Slc = r.DecodeBytes(yys599Slc, true, true) - yys599 := string(yys599Slc) + yys615Slc = r.DecodeBytes(yys615Slc, true, true) + yys615 := string(yys615Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys599 { + switch yys615 { case "observedGeneration": if r.TryDecodeAsNil() { x.ObservedGeneration = 0 @@ -7291,10 +7427,22 @@ func (x *DeploymentStatus) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } else { x.UnavailableReplicas = int32(r.DecodeInt(32)) } + case "conditions": + if r.TryDecodeAsNil() { + x.Conditions = nil + } else { + yyv621 := &x.Conditions + yym622 := z.DecBinary() + _ = yym622 + if false { + } else { + h.decSliceDeploymentCondition((*[]DeploymentCondition)(yyv621), d) + } + } default: - z.DecStructFieldNotFound(-1, yys599) - } // end switch yys599 - } // end for yyj599 + z.DecStructFieldNotFound(-1, yys615) + } // end switch yys615 + } // end for yyj615 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -7302,16 +7450,16 @@ func (x *DeploymentStatus) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj605 int - var yyb605 bool - var yyhl605 bool = l >= 0 - yyj605++ - if yyhl605 { - yyb605 = yyj605 > l + var yyj623 int + var yyb623 bool + var yyhl623 bool = l >= 0 + yyj623++ + if yyhl623 { + yyb623 = yyj623 > l } else { - yyb605 = r.CheckBreak() + yyb623 = r.CheckBreak() } - if yyb605 { + if yyb623 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -7321,13 +7469,13 @@ func (x *DeploymentStatus) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) } else { x.ObservedGeneration = int64(r.DecodeInt(64)) } - yyj605++ - if yyhl605 { - yyb605 = yyj605 > l + yyj623++ + if yyhl623 { + yyb623 = yyj623 > l } else { - yyb605 = r.CheckBreak() + yyb623 = r.CheckBreak() } - if yyb605 { + if yyb623 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -7337,13 +7485,13 @@ func (x *DeploymentStatus) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) } else { x.Replicas = int32(r.DecodeInt(32)) } - yyj605++ - if yyhl605 { - yyb605 = yyj605 > l + yyj623++ + if yyhl623 { + yyb623 = yyj623 > l } else { - yyb605 = r.CheckBreak() + yyb623 = r.CheckBreak() } - if yyb605 { + if yyb623 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -7353,13 +7501,13 @@ func (x *DeploymentStatus) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) } else { x.UpdatedReplicas = int32(r.DecodeInt(32)) } - yyj605++ - if yyhl605 { - yyb605 = yyj605 > l + yyj623++ + if yyhl623 { + yyb623 = yyj623 > l } else { - yyb605 = r.CheckBreak() + yyb623 = r.CheckBreak() } - if yyb605 { + if yyb623 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -7369,13 +7517,13 @@ func (x *DeploymentStatus) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) } else { x.AvailableReplicas = int32(r.DecodeInt(32)) } - yyj605++ - if yyhl605 { - yyb605 = yyj605 > l + yyj623++ + if yyhl623 { + yyb623 = yyj623 > l } else { - yyb605 = r.CheckBreak() + yyb623 = r.CheckBreak() } - if yyb605 { + if yyb623 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -7385,18 +7533,521 @@ func (x *DeploymentStatus) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) } else { x.UnavailableReplicas = int32(r.DecodeInt(32)) } - for { - yyj605++ - if yyhl605 { - yyb605 = yyj605 > l + yyj623++ + if yyhl623 { + yyb623 = yyj623 > l + } else { + yyb623 = r.CheckBreak() + } + if yyb623 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Conditions = nil + } else { + yyv629 := &x.Conditions + yym630 := z.DecBinary() + _ = yym630 + if false { } else { - yyb605 = r.CheckBreak() + h.decSliceDeploymentCondition((*[]DeploymentCondition)(yyv629), d) } - if yyb605 { + } + for { + yyj623++ + if yyhl623 { + yyb623 = yyj623 > l + } else { + yyb623 = r.CheckBreak() + } + if yyb623 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj605-1, "") + z.DecStructFieldNotFound(yyj623-1, "") + } + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) +} + +func (x DeploymentConditionType) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + yym631 := z.EncBinary() + _ = yym631 + if false { + } else if z.HasExtensions() && z.EncExt(x) { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x)) + } +} + +func (x *DeploymentConditionType) 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 { + *((*string)(x)) = r.DecodeString() + } +} + +func (x *DeploymentCondition) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + yym633 := z.EncBinary() + _ = yym633 + if false { + } else if z.HasExtensions() && z.EncExt(x) { + } else { + yysep634 := !z.EncBinary() + yy2arr634 := z.EncBasicHandle().StructToArray + var yyq634 [6]bool + _, _, _ = yysep634, yyq634, yy2arr634 + const yyr634 bool = false + yyq634[2] = true + yyq634[3] = true + yyq634[4] = x.Reason != "" + yyq634[5] = x.Message != "" + var yynn634 int + if yyr634 || yy2arr634 { + r.EncodeArrayStart(6) + } else { + yynn634 = 2 + for _, b := range yyq634 { + if b { + yynn634++ + } + } + r.EncodeMapStart(yynn634) + yynn634 = 0 + } + if yyr634 || yy2arr634 { + 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 yyr634 || yy2arr634 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yym637 := z.EncBinary() + _ = yym637 + 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) + yym638 := z.EncBinary() + _ = yym638 + if false { + } else if z.HasExtensions() && z.EncExt(x.Status) { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Status)) + } + } + if yyr634 || yy2arr634 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq634[2] { + yy640 := &x.LastUpdateTime + yym641 := z.EncBinary() + _ = yym641 + if false { + } else if z.HasExtensions() && z.EncExt(yy640) { + } else if yym641 { + z.EncBinaryMarshal(yy640) + } else if !yym641 && z.IsJSONHandle() { + z.EncJSONMarshal(yy640) + } else { + z.EncFallback(yy640) + } + } else { + r.EncodeNil() + } + } else { + if yyq634[2] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("lastUpdateTime")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yy642 := &x.LastUpdateTime + yym643 := z.EncBinary() + _ = yym643 + if false { + } else if z.HasExtensions() && z.EncExt(yy642) { + } else if yym643 { + z.EncBinaryMarshal(yy642) + } else if !yym643 && z.IsJSONHandle() { + z.EncJSONMarshal(yy642) + } else { + z.EncFallback(yy642) + } + } + } + if yyr634 || yy2arr634 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq634[3] { + yy645 := &x.LastTransitionTime + yym646 := z.EncBinary() + _ = yym646 + if false { + } else if z.HasExtensions() && z.EncExt(yy645) { + } else if yym646 { + z.EncBinaryMarshal(yy645) + } else if !yym646 && z.IsJSONHandle() { + z.EncJSONMarshal(yy645) + } else { + z.EncFallback(yy645) + } + } else { + r.EncodeNil() + } + } else { + if yyq634[3] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("lastTransitionTime")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yy647 := &x.LastTransitionTime + yym648 := z.EncBinary() + _ = yym648 + if false { + } else if z.HasExtensions() && z.EncExt(yy647) { + } else if yym648 { + z.EncBinaryMarshal(yy647) + } else if !yym648 && z.IsJSONHandle() { + z.EncJSONMarshal(yy647) + } else { + z.EncFallback(yy647) + } + } + } + if yyr634 || yy2arr634 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq634[4] { + yym650 := z.EncBinary() + _ = yym650 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Reason)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq634[4] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("reason")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym651 := z.EncBinary() + _ = yym651 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Reason)) + } + } + } + if yyr634 || yy2arr634 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq634[5] { + yym653 := z.EncBinary() + _ = yym653 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Message)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq634[5] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("message")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym654 := z.EncBinary() + _ = yym654 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Message)) + } + } + } + if yyr634 || yy2arr634 { + z.EncSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + z.EncSendContainerState(codecSelfer_containerMapEnd1234) + } + } + } +} + +func (x *DeploymentCondition) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + yym655 := z.DecBinary() + _ = yym655 + if false { + } else if z.HasExtensions() && z.DecExt(x) { + } else { + yyct656 := r.ContainerType() + if yyct656 == codecSelferValueTypeMap1234 { + yyl656 := r.ReadMapStart() + if yyl656 == 0 { + z.DecSendContainerState(codecSelfer_containerMapEnd1234) + } else { + x.codecDecodeSelfFromMap(yyl656, d) + } + } else if yyct656 == codecSelferValueTypeArray1234 { + yyl656 := r.ReadArrayStart() + if yyl656 == 0 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + x.codecDecodeSelfFromArray(yyl656, d) + } + } else { + panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) + } + } +} + +func (x *DeploymentCondition) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yys657Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys657Slc + var yyhl657 bool = l >= 0 + for yyj657 := 0; ; yyj657++ { + if yyhl657 { + if yyj657 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + z.DecSendContainerState(codecSelfer_containerMapKey1234) + yys657Slc = r.DecodeBytes(yys657Slc, true, true) + yys657 := string(yys657Slc) + z.DecSendContainerState(codecSelfer_containerMapValue1234) + switch yys657 { + case "type": + if r.TryDecodeAsNil() { + x.Type = "" + } else { + x.Type = DeploymentConditionType(r.DecodeString()) + } + case "status": + if r.TryDecodeAsNil() { + x.Status = "" + } else { + x.Status = pkg2_v1.ConditionStatus(r.DecodeString()) + } + case "lastUpdateTime": + if r.TryDecodeAsNil() { + x.LastUpdateTime = pkg1_unversioned.Time{} + } else { + yyv660 := &x.LastUpdateTime + yym661 := z.DecBinary() + _ = yym661 + if false { + } else if z.HasExtensions() && z.DecExt(yyv660) { + } else if yym661 { + z.DecBinaryUnmarshal(yyv660) + } else if !yym661 && z.IsJSONHandle() { + z.DecJSONUnmarshal(yyv660) + } else { + z.DecFallback(yyv660, false) + } + } + case "lastTransitionTime": + if r.TryDecodeAsNil() { + x.LastTransitionTime = pkg1_unversioned.Time{} + } else { + yyv662 := &x.LastTransitionTime + yym663 := z.DecBinary() + _ = yym663 + if false { + } else if z.HasExtensions() && z.DecExt(yyv662) { + } else if yym663 { + z.DecBinaryUnmarshal(yyv662) + } else if !yym663 && z.IsJSONHandle() { + z.DecJSONUnmarshal(yyv662) + } else { + z.DecFallback(yyv662, 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, yys657) + } // end switch yys657 + } // end for yyj657 + z.DecSendContainerState(codecSelfer_containerMapEnd1234) +} + +func (x *DeploymentCondition) 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.Type = "" + } else { + x.Type = DeploymentConditionType(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.Status = "" + } else { + x.Status = pkg2_v1.ConditionStatus(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.LastUpdateTime = pkg1_unversioned.Time{} + } else { + yyv669 := &x.LastUpdateTime + yym670 := z.DecBinary() + _ = yym670 + if false { + } else if z.HasExtensions() && z.DecExt(yyv669) { + } else if yym670 { + z.DecBinaryUnmarshal(yyv669) + } else if !yym670 && z.IsJSONHandle() { + z.DecJSONUnmarshal(yyv669) + } else { + z.DecFallback(yyv669, false) + } + } + 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.LastTransitionTime = pkg1_unversioned.Time{} + } else { + yyv671 := &x.LastTransitionTime + yym672 := z.DecBinary() + _ = yym672 + if false { + } else if z.HasExtensions() && z.DecExt(yyv671) { + } else if yym672 { + z.DecBinaryUnmarshal(yyv671) + } else if !yym672 && z.IsJSONHandle() { + z.DecJSONUnmarshal(yyv671) + } else { + z.DecFallback(yyv671, false) + } + } + 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.Reason = "" + } else { + x.Reason = 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.Message = "" + } else { + x.Message = string(r.DecodeString()) + } + 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) } @@ -7408,37 +8059,37 @@ func (x *DeploymentList) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym611 := z.EncBinary() - _ = yym611 + yym675 := z.EncBinary() + _ = yym675 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - 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 { + yysep676 := !z.EncBinary() + yy2arr676 := z.EncBasicHandle().StructToArray + var yyq676 [4]bool + _, _, _ = yysep676, yyq676, yy2arr676 + const yyr676 bool = false + yyq676[0] = x.Kind != "" + yyq676[1] = x.APIVersion != "" + yyq676[2] = true + var yynn676 int + if yyr676 || yy2arr676 { r.EncodeArrayStart(4) } else { - yynn612 = 1 - for _, b := range yyq612 { + yynn676 = 1 + for _, b := range yyq676 { if b { - yynn612++ + yynn676++ } } - r.EncodeMapStart(yynn612) - yynn612 = 0 + r.EncodeMapStart(yynn676) + yynn676 = 0 } - if yyr612 || yy2arr612 { + if yyr676 || yy2arr676 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq612[0] { - yym614 := z.EncBinary() - _ = yym614 + if yyq676[0] { + yym678 := z.EncBinary() + _ = yym678 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) @@ -7447,23 +8098,23 @@ func (x *DeploymentList) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq612[0] { + if yyq676[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym615 := z.EncBinary() - _ = yym615 + yym679 := z.EncBinary() + _ = yym679 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } - if yyr612 || yy2arr612 { + if yyr676 || yy2arr676 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq612[1] { - yym617 := z.EncBinary() - _ = yym617 + if yyq676[1] { + yym681 := z.EncBinary() + _ = yym681 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) @@ -7472,54 +8123,54 @@ func (x *DeploymentList) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq612[1] { + if yyq676[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym618 := z.EncBinary() - _ = yym618 + yym682 := z.EncBinary() + _ = yym682 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } - if yyr612 || yy2arr612 { + if yyr676 || yy2arr676 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq612[2] { - yy620 := &x.ListMeta - yym621 := z.EncBinary() - _ = yym621 + if yyq676[2] { + yy684 := &x.ListMeta + yym685 := z.EncBinary() + _ = yym685 if false { - } else if z.HasExtensions() && z.EncExt(yy620) { + } else if z.HasExtensions() && z.EncExt(yy684) { } else { - z.EncFallback(yy620) + z.EncFallback(yy684) } } else { r.EncodeNil() } } else { - if yyq612[2] { + if yyq676[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy622 := &x.ListMeta - yym623 := z.EncBinary() - _ = yym623 + yy686 := &x.ListMeta + yym687 := z.EncBinary() + _ = yym687 if false { - } else if z.HasExtensions() && z.EncExt(yy622) { + } else if z.HasExtensions() && z.EncExt(yy686) { } else { - z.EncFallback(yy622) + z.EncFallback(yy686) } } } - if yyr612 || yy2arr612 { + if yyr676 || yy2arr676 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.Items == nil { r.EncodeNil() } else { - yym625 := z.EncBinary() - _ = yym625 + yym689 := z.EncBinary() + _ = yym689 if false { } else { h.encSliceDeployment(([]Deployment)(x.Items), e) @@ -7532,15 +8183,15 @@ func (x *DeploymentList) CodecEncodeSelf(e *codec1978.Encoder) { if x.Items == nil { r.EncodeNil() } else { - yym626 := z.EncBinary() - _ = yym626 + yym690 := z.EncBinary() + _ = yym690 if false { } else { h.encSliceDeployment(([]Deployment)(x.Items), e) } } } - if yyr612 || yy2arr612 { + if yyr676 || yy2arr676 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -7553,25 +8204,25 @@ func (x *DeploymentList) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym627 := z.DecBinary() - _ = yym627 + yym691 := z.DecBinary() + _ = yym691 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct628 := r.ContainerType() - if yyct628 == codecSelferValueTypeMap1234 { - yyl628 := r.ReadMapStart() - if yyl628 == 0 { + yyct692 := r.ContainerType() + if yyct692 == codecSelferValueTypeMap1234 { + yyl692 := r.ReadMapStart() + if yyl692 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl628, d) + x.codecDecodeSelfFromMap(yyl692, d) } - } else if yyct628 == codecSelferValueTypeArray1234 { - yyl628 := r.ReadArrayStart() - if yyl628 == 0 { + } else if yyct692 == codecSelferValueTypeArray1234 { + yyl692 := r.ReadArrayStart() + if yyl692 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl628, d) + x.codecDecodeSelfFromArray(yyl692, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -7583,12 +8234,12 @@ func (x *DeploymentList) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys629Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys629Slc - var yyhl629 bool = l >= 0 - for yyj629 := 0; ; yyj629++ { - if yyhl629 { - if yyj629 >= l { + var yys693Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys693Slc + var yyhl693 bool = l >= 0 + for yyj693 := 0; ; yyj693++ { + if yyhl693 { + if yyj693 >= l { break } } else { @@ -7597,10 +8248,10 @@ func (x *DeploymentList) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys629Slc = r.DecodeBytes(yys629Slc, true, true) - yys629 := string(yys629Slc) + yys693Slc = r.DecodeBytes(yys693Slc, true, true) + yys693 := string(yys693Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys629 { + switch yys693 { case "kind": if r.TryDecodeAsNil() { x.Kind = "" @@ -7617,31 +8268,31 @@ func (x *DeploymentList) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.ListMeta = pkg1_unversioned.ListMeta{} } else { - yyv632 := &x.ListMeta - yym633 := z.DecBinary() - _ = yym633 + yyv696 := &x.ListMeta + yym697 := z.DecBinary() + _ = yym697 if false { - } else if z.HasExtensions() && z.DecExt(yyv632) { + } else if z.HasExtensions() && z.DecExt(yyv696) { } else { - z.DecFallback(yyv632, false) + z.DecFallback(yyv696, false) } } case "items": if r.TryDecodeAsNil() { x.Items = nil } else { - yyv634 := &x.Items - yym635 := z.DecBinary() - _ = yym635 + yyv698 := &x.Items + yym699 := z.DecBinary() + _ = yym699 if false { } else { - h.decSliceDeployment((*[]Deployment)(yyv634), d) + h.decSliceDeployment((*[]Deployment)(yyv698), d) } } default: - z.DecStructFieldNotFound(-1, yys629) - } // end switch yys629 - } // end for yyj629 + z.DecStructFieldNotFound(-1, yys693) + } // end switch yys693 + } // end for yyj693 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -7649,16 +8300,16 @@ func (x *DeploymentList) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj636 int - var yyb636 bool - var yyhl636 bool = l >= 0 - yyj636++ - if yyhl636 { - yyb636 = yyj636 > l + var yyj700 int + var yyb700 bool + var yyhl700 bool = l >= 0 + yyj700++ + if yyhl700 { + yyb700 = yyj700 > l } else { - yyb636 = r.CheckBreak() + yyb700 = r.CheckBreak() } - if yyb636 { + if yyb700 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -7668,13 +8319,13 @@ func (x *DeploymentList) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.Kind = string(r.DecodeString()) } - yyj636++ - if yyhl636 { - yyb636 = yyj636 > l + yyj700++ + if yyhl700 { + yyb700 = yyj700 > l } else { - yyb636 = r.CheckBreak() + yyb700 = r.CheckBreak() } - if yyb636 { + if yyb700 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -7684,13 +8335,13 @@ func (x *DeploymentList) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.APIVersion = string(r.DecodeString()) } - yyj636++ - if yyhl636 { - yyb636 = yyj636 > l + yyj700++ + if yyhl700 { + yyb700 = yyj700 > l } else { - yyb636 = r.CheckBreak() + yyb700 = r.CheckBreak() } - if yyb636 { + if yyb700 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -7698,22 +8349,22 @@ func (x *DeploymentList) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.ListMeta = pkg1_unversioned.ListMeta{} } else { - yyv639 := &x.ListMeta - yym640 := z.DecBinary() - _ = yym640 + yyv703 := &x.ListMeta + yym704 := z.DecBinary() + _ = yym704 if false { - } else if z.HasExtensions() && z.DecExt(yyv639) { + } else if z.HasExtensions() && z.DecExt(yyv703) { } else { - z.DecFallback(yyv639, false) + z.DecFallback(yyv703, false) } } - yyj636++ - if yyhl636 { - yyb636 = yyj636 > l + yyj700++ + if yyhl700 { + yyb700 = yyj700 > l } else { - yyb636 = r.CheckBreak() + yyb700 = r.CheckBreak() } - if yyb636 { + if yyb700 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -7721,26 +8372,26 @@ func (x *DeploymentList) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.Items = nil } else { - yyv641 := &x.Items - yym642 := z.DecBinary() - _ = yym642 + yyv705 := &x.Items + yym706 := z.DecBinary() + _ = yym706 if false { } else { - h.decSliceDeployment((*[]Deployment)(yyv641), d) + h.decSliceDeployment((*[]Deployment)(yyv705), d) } } for { - yyj636++ - if yyhl636 { - yyb636 = yyj636 > l + yyj700++ + if yyhl700 { + yyb700 = yyj700 > l } else { - yyb636 = r.CheckBreak() + yyb700 = r.CheckBreak() } - if yyb636 { + if yyb700 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj636-1, "") + z.DecStructFieldNotFound(yyj700-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -7752,65 +8403,77 @@ func (x *DaemonSetSpec) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym643 := z.EncBinary() - _ = yym643 + yym707 := z.EncBinary() + _ = yym707 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - 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 { + yysep708 := !z.EncBinary() + yy2arr708 := z.EncBasicHandle().StructToArray + var yyq708 [2]bool + _, _, _ = yysep708, yyq708, yy2arr708 + const yyr708 bool = false + yyq708[0] = x.Selector != nil + var yynn708 int + if yyr708 || yy2arr708 { r.EncodeArrayStart(2) } else { - yynn644 = 1 - for _, b := range yyq644 { + yynn708 = 1 + for _, b := range yyq708 { if b { - yynn644++ + yynn708++ } } - r.EncodeMapStart(yynn644) - yynn644 = 0 + r.EncodeMapStart(yynn708) + yynn708 = 0 } - if yyr644 || yy2arr644 { + if yyr708 || yy2arr708 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq644[0] { + if yyq708[0] { if x.Selector == nil { r.EncodeNil() } else { - x.Selector.CodecEncodeSelf(e) + yym710 := z.EncBinary() + _ = yym710 + if false { + } else if z.HasExtensions() && z.EncExt(x.Selector) { + } else { + z.EncFallback(x.Selector) + } } } else { r.EncodeNil() } } else { - if yyq644[0] { + if yyq708[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("selector")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.Selector == nil { r.EncodeNil() } else { - x.Selector.CodecEncodeSelf(e) + yym711 := z.EncBinary() + _ = yym711 + if false { + } else if z.HasExtensions() && z.EncExt(x.Selector) { + } else { + z.EncFallback(x.Selector) + } } } } - if yyr644 || yy2arr644 { + if yyr708 || yy2arr708 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy647 := &x.Template - yy647.CodecEncodeSelf(e) + yy713 := &x.Template + yy713.CodecEncodeSelf(e) } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("template")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy648 := &x.Template - yy648.CodecEncodeSelf(e) + yy714 := &x.Template + yy714.CodecEncodeSelf(e) } - if yyr644 || yy2arr644 { + if yyr708 || yy2arr708 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -7823,25 +8486,25 @@ func (x *DaemonSetSpec) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym649 := z.DecBinary() - _ = yym649 + yym715 := z.DecBinary() + _ = yym715 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct650 := r.ContainerType() - if yyct650 == codecSelferValueTypeMap1234 { - yyl650 := r.ReadMapStart() - if yyl650 == 0 { + yyct716 := r.ContainerType() + if yyct716 == codecSelferValueTypeMap1234 { + yyl716 := r.ReadMapStart() + if yyl716 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl650, d) + x.codecDecodeSelfFromMap(yyl716, d) } - } else if yyct650 == codecSelferValueTypeArray1234 { - yyl650 := r.ReadArrayStart() - if yyl650 == 0 { + } else if yyct716 == codecSelferValueTypeArray1234 { + yyl716 := r.ReadArrayStart() + if yyl716 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl650, d) + x.codecDecodeSelfFromArray(yyl716, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -7853,12 +8516,12 @@ func (x *DaemonSetSpec) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys651Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys651Slc - var yyhl651 bool = l >= 0 - for yyj651 := 0; ; yyj651++ { - if yyhl651 { - if yyj651 >= l { + var yys717Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys717Slc + var yyhl717 bool = l >= 0 + for yyj717 := 0; ; yyj717++ { + if yyhl717 { + if yyj717 >= l { break } } else { @@ -7867,10 +8530,10 @@ func (x *DaemonSetSpec) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys651Slc = r.DecodeBytes(yys651Slc, true, true) - yys651 := string(yys651Slc) + yys717Slc = r.DecodeBytes(yys717Slc, true, true) + yys717 := string(yys717Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys651 { + switch yys717 { case "selector": if r.TryDecodeAsNil() { if x.Selector != nil { @@ -7878,21 +8541,27 @@ func (x *DaemonSetSpec) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } else { if x.Selector == nil { - x.Selector = new(LabelSelector) + x.Selector = new(pkg1_unversioned.LabelSelector) + } + yym719 := z.DecBinary() + _ = yym719 + if false { + } else if z.HasExtensions() && z.DecExt(x.Selector) { + } else { + z.DecFallback(x.Selector, false) } - x.Selector.CodecDecodeSelf(d) } case "template": if r.TryDecodeAsNil() { x.Template = pkg2_v1.PodTemplateSpec{} } else { - yyv653 := &x.Template - yyv653.CodecDecodeSelf(d) + yyv720 := &x.Template + yyv720.CodecDecodeSelf(d) } default: - z.DecStructFieldNotFound(-1, yys651) - } // end switch yys651 - } // end for yyj651 + z.DecStructFieldNotFound(-1, yys717) + } // end switch yys717 + } // end for yyj717 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -7900,16 +8569,16 @@ func (x *DaemonSetSpec) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj654 int - var yyb654 bool - var yyhl654 bool = l >= 0 - yyj654++ - if yyhl654 { - yyb654 = yyj654 > l + var yyj721 int + var yyb721 bool + var yyhl721 bool = l >= 0 + yyj721++ + if yyhl721 { + yyb721 = yyj721 > l } else { - yyb654 = r.CheckBreak() + yyb721 = r.CheckBreak() } - if yyb654 { + if yyb721 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -7920,17 +8589,23 @@ func (x *DaemonSetSpec) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } } else { if x.Selector == nil { - x.Selector = new(LabelSelector) + x.Selector = new(pkg1_unversioned.LabelSelector) + } + yym723 := z.DecBinary() + _ = yym723 + if false { + } else if z.HasExtensions() && z.DecExt(x.Selector) { + } else { + z.DecFallback(x.Selector, false) } - x.Selector.CodecDecodeSelf(d) } - yyj654++ - if yyhl654 { - yyb654 = yyj654 > l + yyj721++ + if yyhl721 { + yyb721 = yyj721 > l } else { - yyb654 = r.CheckBreak() + yyb721 = r.CheckBreak() } - if yyb654 { + if yyb721 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -7938,21 +8613,21 @@ func (x *DaemonSetSpec) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.Template = pkg2_v1.PodTemplateSpec{} } else { - yyv656 := &x.Template - yyv656.CodecDecodeSelf(d) + yyv724 := &x.Template + yyv724.CodecDecodeSelf(d) } for { - yyj654++ - if yyhl654 { - yyb654 = yyj654 > l + yyj721++ + if yyhl721 { + yyb721 = yyj721 > l } else { - yyb654 = r.CheckBreak() + yyb721 = r.CheckBreak() } - if yyb654 { + if yyb721 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj654-1, "") + z.DecStructFieldNotFound(yyj721-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -7964,33 +8639,33 @@ func (x *DaemonSetStatus) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym657 := z.EncBinary() - _ = yym657 + yym725 := z.EncBinary() + _ = yym725 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - 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) + yysep726 := !z.EncBinary() + yy2arr726 := z.EncBasicHandle().StructToArray + var yyq726 [4]bool + _, _, _ = yysep726, yyq726, yy2arr726 + const yyr726 bool = false + var yynn726 int + if yyr726 || yy2arr726 { + r.EncodeArrayStart(4) } else { - yynn658 = 3 - for _, b := range yyq658 { + yynn726 = 4 + for _, b := range yyq726 { if b { - yynn658++ + yynn726++ } } - r.EncodeMapStart(yynn658) - yynn658 = 0 + r.EncodeMapStart(yynn726) + yynn726 = 0 } - if yyr658 || yy2arr658 { + if yyr726 || yy2arr726 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym660 := z.EncBinary() - _ = yym660 + yym728 := z.EncBinary() + _ = yym728 if false { } else { r.EncodeInt(int64(x.CurrentNumberScheduled)) @@ -7999,17 +8674,17 @@ func (x *DaemonSetStatus) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("currentNumberScheduled")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym661 := z.EncBinary() - _ = yym661 + yym729 := z.EncBinary() + _ = yym729 if false { } else { r.EncodeInt(int64(x.CurrentNumberScheduled)) } } - if yyr658 || yy2arr658 { + if yyr726 || yy2arr726 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym663 := z.EncBinary() - _ = yym663 + yym731 := z.EncBinary() + _ = yym731 if false { } else { r.EncodeInt(int64(x.NumberMisscheduled)) @@ -8018,17 +8693,17 @@ func (x *DaemonSetStatus) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("numberMisscheduled")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym664 := z.EncBinary() - _ = yym664 + yym732 := z.EncBinary() + _ = yym732 if false { } else { r.EncodeInt(int64(x.NumberMisscheduled)) } } - if yyr658 || yy2arr658 { + if yyr726 || yy2arr726 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym666 := z.EncBinary() - _ = yym666 + yym734 := z.EncBinary() + _ = yym734 if false { } else { r.EncodeInt(int64(x.DesiredNumberScheduled)) @@ -8037,14 +8712,33 @@ func (x *DaemonSetStatus) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("desiredNumberScheduled")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym667 := z.EncBinary() - _ = yym667 + yym735 := z.EncBinary() + _ = yym735 if false { } else { r.EncodeInt(int64(x.DesiredNumberScheduled)) } } - if yyr658 || yy2arr658 { + if yyr726 || yy2arr726 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yym737 := z.EncBinary() + _ = yym737 + if false { + } else { + r.EncodeInt(int64(x.NumberReady)) + } + } else { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("numberReady")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym738 := z.EncBinary() + _ = yym738 + if false { + } else { + r.EncodeInt(int64(x.NumberReady)) + } + } + if yyr726 || yy2arr726 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -8057,25 +8751,25 @@ func (x *DaemonSetStatus) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym668 := z.DecBinary() - _ = yym668 + yym739 := z.DecBinary() + _ = yym739 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct669 := r.ContainerType() - if yyct669 == codecSelferValueTypeMap1234 { - yyl669 := r.ReadMapStart() - if yyl669 == 0 { + yyct740 := r.ContainerType() + if yyct740 == codecSelferValueTypeMap1234 { + yyl740 := r.ReadMapStart() + if yyl740 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl669, d) + x.codecDecodeSelfFromMap(yyl740, d) } - } else if yyct669 == codecSelferValueTypeArray1234 { - yyl669 := r.ReadArrayStart() - if yyl669 == 0 { + } else if yyct740 == codecSelferValueTypeArray1234 { + yyl740 := r.ReadArrayStart() + if yyl740 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl669, d) + x.codecDecodeSelfFromArray(yyl740, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -8087,12 +8781,12 @@ func (x *DaemonSetStatus) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys670Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys670Slc - var yyhl670 bool = l >= 0 - for yyj670 := 0; ; yyj670++ { - if yyhl670 { - if yyj670 >= 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 { @@ -8101,10 +8795,10 @@ func (x *DaemonSetStatus) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys670Slc = r.DecodeBytes(yys670Slc, true, true) - yys670 := string(yys670Slc) + yys741Slc = r.DecodeBytes(yys741Slc, true, true) + yys741 := string(yys741Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys670 { + switch yys741 { case "currentNumberScheduled": if r.TryDecodeAsNil() { x.CurrentNumberScheduled = 0 @@ -8123,10 +8817,16 @@ func (x *DaemonSetStatus) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } else { x.DesiredNumberScheduled = int32(r.DecodeInt(32)) } + case "numberReady": + if r.TryDecodeAsNil() { + x.NumberReady = 0 + } else { + x.NumberReady = int32(r.DecodeInt(32)) + } default: - z.DecStructFieldNotFound(-1, yys670) - } // end switch yys670 - } // end for yyj670 + z.DecStructFieldNotFound(-1, yys741) + } // end switch yys741 + } // end for yyj741 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -8134,16 +8834,16 @@ func (x *DaemonSetStatus) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj674 int - var yyb674 bool - var yyhl674 bool = l >= 0 - yyj674++ - if yyhl674 { - yyb674 = yyj674 > l + var yyj746 int + var yyb746 bool + var yyhl746 bool = l >= 0 + yyj746++ + if yyhl746 { + yyb746 = yyj746 > l } else { - yyb674 = r.CheckBreak() + yyb746 = r.CheckBreak() } - if yyb674 { + if yyb746 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -8153,13 +8853,13 @@ func (x *DaemonSetStatus) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) } else { x.CurrentNumberScheduled = int32(r.DecodeInt(32)) } - yyj674++ - if yyhl674 { - yyb674 = yyj674 > l + yyj746++ + if yyhl746 { + yyb746 = yyj746 > l } else { - yyb674 = r.CheckBreak() + yyb746 = r.CheckBreak() } - if yyb674 { + if yyb746 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -8169,13 +8869,13 @@ func (x *DaemonSetStatus) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) } else { x.NumberMisscheduled = int32(r.DecodeInt(32)) } - yyj674++ - if yyhl674 { - yyb674 = yyj674 > l + yyj746++ + if yyhl746 { + yyb746 = yyj746 > l } else { - yyb674 = r.CheckBreak() + yyb746 = r.CheckBreak() } - if yyb674 { + if yyb746 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -8185,18 +8885,34 @@ func (x *DaemonSetStatus) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) } else { x.DesiredNumberScheduled = int32(r.DecodeInt(32)) } + yyj746++ + if yyhl746 { + yyb746 = yyj746 > l + } else { + yyb746 = r.CheckBreak() + } + if yyb746 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.NumberReady = 0 + } else { + x.NumberReady = int32(r.DecodeInt(32)) + } for { - yyj674++ - if yyhl674 { - yyb674 = yyj674 > l + yyj746++ + if yyhl746 { + yyb746 = yyj746 > l } else { - yyb674 = r.CheckBreak() + yyb746 = r.CheckBreak() } - if yyb674 { + if yyb746 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj674-1, "") + z.DecStructFieldNotFound(yyj746-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -8208,39 +8924,39 @@ func (x *DaemonSet) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym678 := z.EncBinary() - _ = yym678 + yym751 := z.EncBinary() + _ = yym751 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - 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 { + yysep752 := !z.EncBinary() + yy2arr752 := z.EncBasicHandle().StructToArray + var yyq752 [5]bool + _, _, _ = yysep752, yyq752, yy2arr752 + const yyr752 bool = false + yyq752[0] = x.Kind != "" + yyq752[1] = x.APIVersion != "" + yyq752[2] = true + yyq752[3] = true + yyq752[4] = true + var yynn752 int + if yyr752 || yy2arr752 { r.EncodeArrayStart(5) } else { - yynn679 = 0 - for _, b := range yyq679 { + yynn752 = 0 + for _, b := range yyq752 { if b { - yynn679++ + yynn752++ } } - r.EncodeMapStart(yynn679) - yynn679 = 0 + r.EncodeMapStart(yynn752) + yynn752 = 0 } - if yyr679 || yy2arr679 { + if yyr752 || yy2arr752 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq679[0] { - yym681 := z.EncBinary() - _ = yym681 + if yyq752[0] { + yym754 := z.EncBinary() + _ = yym754 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) @@ -8249,23 +8965,23 @@ func (x *DaemonSet) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq679[0] { + if yyq752[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym682 := z.EncBinary() - _ = yym682 + yym755 := z.EncBinary() + _ = yym755 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } - if yyr679 || yy2arr679 { + if yyr752 || yy2arr752 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq679[1] { - yym684 := z.EncBinary() - _ = yym684 + if yyq752[1] { + yym757 := z.EncBinary() + _ = yym757 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) @@ -8274,70 +8990,70 @@ func (x *DaemonSet) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq679[1] { + if yyq752[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym685 := z.EncBinary() - _ = yym685 + yym758 := z.EncBinary() + _ = yym758 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } - if yyr679 || yy2arr679 { + if yyr752 || yy2arr752 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq679[2] { - yy687 := &x.ObjectMeta - yy687.CodecEncodeSelf(e) + if yyq752[2] { + yy760 := &x.ObjectMeta + yy760.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { - if yyq679[2] { + if yyq752[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy688 := &x.ObjectMeta - yy688.CodecEncodeSelf(e) + yy761 := &x.ObjectMeta + yy761.CodecEncodeSelf(e) } } - if yyr679 || yy2arr679 { + if yyr752 || yy2arr752 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq679[3] { - yy690 := &x.Spec - yy690.CodecEncodeSelf(e) + if yyq752[3] { + yy763 := &x.Spec + yy763.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { - if yyq679[3] { + if yyq752[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("spec")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy691 := &x.Spec - yy691.CodecEncodeSelf(e) + yy764 := &x.Spec + yy764.CodecEncodeSelf(e) } } - if yyr679 || yy2arr679 { + if yyr752 || yy2arr752 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq679[4] { - yy693 := &x.Status - yy693.CodecEncodeSelf(e) + if yyq752[4] { + yy766 := &x.Status + yy766.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { - if yyq679[4] { + if yyq752[4] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("status")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy694 := &x.Status - yy694.CodecEncodeSelf(e) + yy767 := &x.Status + yy767.CodecEncodeSelf(e) } } - if yyr679 || yy2arr679 { + if yyr752 || yy2arr752 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -8350,25 +9066,25 @@ func (x *DaemonSet) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym695 := z.DecBinary() - _ = yym695 + yym768 := z.DecBinary() + _ = yym768 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct696 := r.ContainerType() - if yyct696 == codecSelferValueTypeMap1234 { - yyl696 := r.ReadMapStart() - if yyl696 == 0 { + yyct769 := r.ContainerType() + if yyct769 == codecSelferValueTypeMap1234 { + yyl769 := r.ReadMapStart() + if yyl769 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl696, d) + x.codecDecodeSelfFromMap(yyl769, d) } - } else if yyct696 == codecSelferValueTypeArray1234 { - yyl696 := r.ReadArrayStart() - if yyl696 == 0 { + } else if yyct769 == codecSelferValueTypeArray1234 { + yyl769 := r.ReadArrayStart() + if yyl769 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl696, d) + x.codecDecodeSelfFromArray(yyl769, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -8380,12 +9096,12 @@ func (x *DaemonSet) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys697Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys697Slc - var yyhl697 bool = l >= 0 - for yyj697 := 0; ; yyj697++ { - if yyhl697 { - if yyj697 >= l { + var yys770Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys770Slc + var yyhl770 bool = l >= 0 + for yyj770 := 0; ; yyj770++ { + if yyhl770 { + if yyj770 >= l { break } } else { @@ -8394,10 +9110,10 @@ func (x *DaemonSet) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys697Slc = r.DecodeBytes(yys697Slc, true, true) - yys697 := string(yys697Slc) + yys770Slc = r.DecodeBytes(yys770Slc, true, true) + yys770 := string(yys770Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys697 { + switch yys770 { case "kind": if r.TryDecodeAsNil() { x.Kind = "" @@ -8414,27 +9130,27 @@ func (x *DaemonSet) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.ObjectMeta = pkg2_v1.ObjectMeta{} } else { - yyv700 := &x.ObjectMeta - yyv700.CodecDecodeSelf(d) + yyv773 := &x.ObjectMeta + yyv773.CodecDecodeSelf(d) } case "spec": if r.TryDecodeAsNil() { x.Spec = DaemonSetSpec{} } else { - yyv701 := &x.Spec - yyv701.CodecDecodeSelf(d) + yyv774 := &x.Spec + yyv774.CodecDecodeSelf(d) } case "status": if r.TryDecodeAsNil() { x.Status = DaemonSetStatus{} } else { - yyv702 := &x.Status - yyv702.CodecDecodeSelf(d) + yyv775 := &x.Status + yyv775.CodecDecodeSelf(d) } default: - z.DecStructFieldNotFound(-1, yys697) - } // end switch yys697 - } // end for yyj697 + z.DecStructFieldNotFound(-1, yys770) + } // end switch yys770 + } // end for yyj770 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -8442,16 +9158,16 @@ func (x *DaemonSet) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj703 int - var yyb703 bool - var yyhl703 bool = l >= 0 - yyj703++ - if yyhl703 { - yyb703 = yyj703 > l + var yyj776 int + var yyb776 bool + var yyhl776 bool = l >= 0 + yyj776++ + if yyhl776 { + yyb776 = yyj776 > l } else { - yyb703 = r.CheckBreak() + yyb776 = r.CheckBreak() } - if yyb703 { + if yyb776 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -8461,13 +9177,13 @@ func (x *DaemonSet) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.Kind = string(r.DecodeString()) } - yyj703++ - if yyhl703 { - yyb703 = yyj703 > l + yyj776++ + if yyhl776 { + yyb776 = yyj776 > l } else { - yyb703 = r.CheckBreak() + yyb776 = r.CheckBreak() } - if yyb703 { + if yyb776 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -8477,13 +9193,13 @@ func (x *DaemonSet) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.APIVersion = string(r.DecodeString()) } - yyj703++ - if yyhl703 { - yyb703 = yyj703 > l + yyj776++ + if yyhl776 { + yyb776 = yyj776 > l } else { - yyb703 = r.CheckBreak() + yyb776 = r.CheckBreak() } - if yyb703 { + if yyb776 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -8491,16 +9207,16 @@ func (x *DaemonSet) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.ObjectMeta = pkg2_v1.ObjectMeta{} } else { - yyv706 := &x.ObjectMeta - yyv706.CodecDecodeSelf(d) + yyv779 := &x.ObjectMeta + yyv779.CodecDecodeSelf(d) } - yyj703++ - if yyhl703 { - yyb703 = yyj703 > l + yyj776++ + if yyhl776 { + yyb776 = yyj776 > l } else { - yyb703 = r.CheckBreak() + yyb776 = r.CheckBreak() } - if yyb703 { + if yyb776 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -8508,16 +9224,16 @@ func (x *DaemonSet) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.Spec = DaemonSetSpec{} } else { - yyv707 := &x.Spec - yyv707.CodecDecodeSelf(d) + yyv780 := &x.Spec + yyv780.CodecDecodeSelf(d) } - yyj703++ - if yyhl703 { - yyb703 = yyj703 > l + yyj776++ + if yyhl776 { + yyb776 = yyj776 > l } else { - yyb703 = r.CheckBreak() + yyb776 = r.CheckBreak() } - if yyb703 { + if yyb776 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -8525,21 +9241,21 @@ func (x *DaemonSet) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.Status = DaemonSetStatus{} } else { - yyv708 := &x.Status - yyv708.CodecDecodeSelf(d) + yyv781 := &x.Status + yyv781.CodecDecodeSelf(d) } for { - yyj703++ - if yyhl703 { - yyb703 = yyj703 > l + yyj776++ + if yyhl776 { + yyb776 = yyj776 > l } else { - yyb703 = r.CheckBreak() + yyb776 = r.CheckBreak() } - if yyb703 { + if yyb776 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj703-1, "") + z.DecStructFieldNotFound(yyj776-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -8551,37 +9267,37 @@ func (x *DaemonSetList) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym709 := z.EncBinary() - _ = yym709 + yym782 := z.EncBinary() + _ = yym782 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - 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 { + yysep783 := !z.EncBinary() + yy2arr783 := z.EncBasicHandle().StructToArray + var yyq783 [4]bool + _, _, _ = yysep783, yyq783, yy2arr783 + const yyr783 bool = false + yyq783[0] = x.Kind != "" + yyq783[1] = x.APIVersion != "" + yyq783[2] = true + var yynn783 int + if yyr783 || yy2arr783 { r.EncodeArrayStart(4) } else { - yynn710 = 1 - for _, b := range yyq710 { + yynn783 = 1 + for _, b := range yyq783 { if b { - yynn710++ + yynn783++ } } - r.EncodeMapStart(yynn710) - yynn710 = 0 + r.EncodeMapStart(yynn783) + yynn783 = 0 } - if yyr710 || yy2arr710 { + if yyr783 || yy2arr783 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq710[0] { - yym712 := z.EncBinary() - _ = yym712 + if yyq783[0] { + yym785 := z.EncBinary() + _ = yym785 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) @@ -8590,23 +9306,23 @@ func (x *DaemonSetList) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq710[0] { + if yyq783[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym713 := z.EncBinary() - _ = yym713 + yym786 := z.EncBinary() + _ = yym786 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } - if yyr710 || yy2arr710 { + if yyr783 || yy2arr783 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq710[1] { - yym715 := z.EncBinary() - _ = yym715 + if yyq783[1] { + yym788 := z.EncBinary() + _ = yym788 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) @@ -8615,54 +9331,54 @@ func (x *DaemonSetList) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq710[1] { + if yyq783[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym716 := z.EncBinary() - _ = yym716 + yym789 := z.EncBinary() + _ = yym789 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } - if yyr710 || yy2arr710 { + if yyr783 || yy2arr783 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq710[2] { - yy718 := &x.ListMeta - yym719 := z.EncBinary() - _ = yym719 + if yyq783[2] { + yy791 := &x.ListMeta + yym792 := z.EncBinary() + _ = yym792 if false { - } else if z.HasExtensions() && z.EncExt(yy718) { + } else if z.HasExtensions() && z.EncExt(yy791) { } else { - z.EncFallback(yy718) + z.EncFallback(yy791) } } else { r.EncodeNil() } } else { - if yyq710[2] { + if yyq783[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy720 := &x.ListMeta - yym721 := z.EncBinary() - _ = yym721 + yy793 := &x.ListMeta + yym794 := z.EncBinary() + _ = yym794 if false { - } else if z.HasExtensions() && z.EncExt(yy720) { + } else if z.HasExtensions() && z.EncExt(yy793) { } else { - z.EncFallback(yy720) + z.EncFallback(yy793) } } } - if yyr710 || yy2arr710 { + if yyr783 || yy2arr783 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.Items == nil { r.EncodeNil() } else { - yym723 := z.EncBinary() - _ = yym723 + yym796 := z.EncBinary() + _ = yym796 if false { } else { h.encSliceDaemonSet(([]DaemonSet)(x.Items), e) @@ -8675,15 +9391,15 @@ func (x *DaemonSetList) CodecEncodeSelf(e *codec1978.Encoder) { if x.Items == nil { r.EncodeNil() } else { - yym724 := z.EncBinary() - _ = yym724 + yym797 := z.EncBinary() + _ = yym797 if false { } else { h.encSliceDaemonSet(([]DaemonSet)(x.Items), e) } } } - if yyr710 || yy2arr710 { + if yyr783 || yy2arr783 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -8696,25 +9412,25 @@ func (x *DaemonSetList) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym725 := z.DecBinary() - _ = yym725 + yym798 := z.DecBinary() + _ = yym798 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct726 := r.ContainerType() - if yyct726 == codecSelferValueTypeMap1234 { - yyl726 := r.ReadMapStart() - if yyl726 == 0 { + yyct799 := r.ContainerType() + if yyct799 == codecSelferValueTypeMap1234 { + yyl799 := r.ReadMapStart() + if yyl799 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl726, d) + x.codecDecodeSelfFromMap(yyl799, d) } - } else if yyct726 == codecSelferValueTypeArray1234 { - yyl726 := r.ReadArrayStart() - if yyl726 == 0 { + } else if yyct799 == codecSelferValueTypeArray1234 { + yyl799 := r.ReadArrayStart() + if yyl799 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl726, d) + x.codecDecodeSelfFromArray(yyl799, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -8726,12 +9442,12 @@ func (x *DaemonSetList) 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 { + var yys800Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys800Slc + var yyhl800 bool = l >= 0 + for yyj800 := 0; ; yyj800++ { + if yyhl800 { + if yyj800 >= l { break } } else { @@ -8740,10 +9456,10 @@ func (x *DaemonSetList) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys727Slc = r.DecodeBytes(yys727Slc, true, true) - yys727 := string(yys727Slc) + yys800Slc = r.DecodeBytes(yys800Slc, true, true) + yys800 := string(yys800Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys727 { + switch yys800 { case "kind": if r.TryDecodeAsNil() { x.Kind = "" @@ -8760,31 +9476,31 @@ func (x *DaemonSetList) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.ListMeta = pkg1_unversioned.ListMeta{} } else { - yyv730 := &x.ListMeta - yym731 := z.DecBinary() - _ = yym731 + yyv803 := &x.ListMeta + yym804 := z.DecBinary() + _ = yym804 if false { - } else if z.HasExtensions() && z.DecExt(yyv730) { + } else if z.HasExtensions() && z.DecExt(yyv803) { } else { - z.DecFallback(yyv730, false) + z.DecFallback(yyv803, false) } } case "items": if r.TryDecodeAsNil() { x.Items = nil } else { - yyv732 := &x.Items - yym733 := z.DecBinary() - _ = yym733 + yyv805 := &x.Items + yym806 := z.DecBinary() + _ = yym806 if false { } else { - h.decSliceDaemonSet((*[]DaemonSet)(yyv732), d) + h.decSliceDaemonSet((*[]DaemonSet)(yyv805), d) } } default: - z.DecStructFieldNotFound(-1, yys727) - } // end switch yys727 - } // end for yyj727 + z.DecStructFieldNotFound(-1, yys800) + } // end switch yys800 + } // end for yyj800 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -8792,16 +9508,16 @@ func (x *DaemonSetList) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj734 int - var yyb734 bool - var yyhl734 bool = l >= 0 - yyj734++ - if yyhl734 { - yyb734 = yyj734 > l + var yyj807 int + var yyb807 bool + var yyhl807 bool = l >= 0 + yyj807++ + if yyhl807 { + yyb807 = yyj807 > l } else { - yyb734 = r.CheckBreak() + yyb807 = r.CheckBreak() } - if yyb734 { + if yyb807 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -8811,13 +9527,13 @@ func (x *DaemonSetList) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.Kind = string(r.DecodeString()) } - yyj734++ - if yyhl734 { - yyb734 = yyj734 > l + yyj807++ + if yyhl807 { + yyb807 = yyj807 > l } else { - yyb734 = r.CheckBreak() + yyb807 = r.CheckBreak() } - if yyb734 { + if yyb807 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -8827,13 +9543,13 @@ func (x *DaemonSetList) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.APIVersion = string(r.DecodeString()) } - yyj734++ - if yyhl734 { - yyb734 = yyj734 > l + yyj807++ + if yyhl807 { + yyb807 = yyj807 > l } else { - yyb734 = r.CheckBreak() + yyb807 = r.CheckBreak() } - if yyb734 { + if yyb807 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -8841,22 +9557,22 @@ func (x *DaemonSetList) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.ListMeta = pkg1_unversioned.ListMeta{} } else { - yyv737 := &x.ListMeta - yym738 := z.DecBinary() - _ = yym738 + yyv810 := &x.ListMeta + yym811 := z.DecBinary() + _ = yym811 if false { - } else if z.HasExtensions() && z.DecExt(yyv737) { + } else if z.HasExtensions() && z.DecExt(yyv810) { } else { - z.DecFallback(yyv737, false) + z.DecFallback(yyv810, false) } } - yyj734++ - if yyhl734 { - yyb734 = yyj734 > l + yyj807++ + if yyhl807 { + yyb807 = yyj807 > l } else { - yyb734 = r.CheckBreak() + yyb807 = r.CheckBreak() } - if yyb734 { + if yyb807 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -8864,26 +9580,26 @@ func (x *DaemonSetList) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.Items = nil } else { - yyv739 := &x.Items - yym740 := z.DecBinary() - _ = yym740 + yyv812 := &x.Items + yym813 := z.DecBinary() + _ = yym813 if false { } else { - h.decSliceDaemonSet((*[]DaemonSet)(yyv739), d) + h.decSliceDaemonSet((*[]DaemonSet)(yyv812), d) } } for { - yyj734++ - if yyhl734 { - yyb734 = yyj734 > l + yyj807++ + if yyhl807 { + yyb807 = yyj807 > l } else { - yyb734 = r.CheckBreak() + yyb807 = r.CheckBreak() } - if yyb734 { + if yyb807 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj734-1, "") + z.DecStructFieldNotFound(yyj807-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -8895,37 +9611,37 @@ func (x *ThirdPartyResourceDataList) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym741 := z.EncBinary() - _ = yym741 + yym814 := z.EncBinary() + _ = yym814 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - 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 { + yysep815 := !z.EncBinary() + yy2arr815 := z.EncBasicHandle().StructToArray + var yyq815 [4]bool + _, _, _ = yysep815, yyq815, yy2arr815 + const yyr815 bool = false + yyq815[0] = x.Kind != "" + yyq815[1] = x.APIVersion != "" + yyq815[2] = true + var yynn815 int + if yyr815 || yy2arr815 { r.EncodeArrayStart(4) } else { - yynn742 = 1 - for _, b := range yyq742 { + yynn815 = 1 + for _, b := range yyq815 { if b { - yynn742++ + yynn815++ } } - r.EncodeMapStart(yynn742) - yynn742 = 0 + r.EncodeMapStart(yynn815) + yynn815 = 0 } - if yyr742 || yy2arr742 { + if yyr815 || yy2arr815 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq742[0] { - yym744 := z.EncBinary() - _ = yym744 + if yyq815[0] { + yym817 := z.EncBinary() + _ = yym817 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) @@ -8934,23 +9650,23 @@ func (x *ThirdPartyResourceDataList) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq742[0] { + if yyq815[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym745 := z.EncBinary() - _ = yym745 + yym818 := z.EncBinary() + _ = yym818 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } - if yyr742 || yy2arr742 { + if yyr815 || yy2arr815 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq742[1] { - yym747 := z.EncBinary() - _ = yym747 + if yyq815[1] { + yym820 := z.EncBinary() + _ = yym820 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) @@ -8959,54 +9675,54 @@ func (x *ThirdPartyResourceDataList) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq742[1] { + if yyq815[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym748 := z.EncBinary() - _ = yym748 + yym821 := z.EncBinary() + _ = yym821 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } - if yyr742 || yy2arr742 { + if yyr815 || yy2arr815 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq742[2] { - yy750 := &x.ListMeta - yym751 := z.EncBinary() - _ = yym751 + if yyq815[2] { + yy823 := &x.ListMeta + yym824 := z.EncBinary() + _ = yym824 if false { - } else if z.HasExtensions() && z.EncExt(yy750) { + } else if z.HasExtensions() && z.EncExt(yy823) { } else { - z.EncFallback(yy750) + z.EncFallback(yy823) } } else { r.EncodeNil() } } else { - if yyq742[2] { + if yyq815[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy752 := &x.ListMeta - yym753 := z.EncBinary() - _ = yym753 + yy825 := &x.ListMeta + yym826 := z.EncBinary() + _ = yym826 if false { - } else if z.HasExtensions() && z.EncExt(yy752) { + } else if z.HasExtensions() && z.EncExt(yy825) { } else { - z.EncFallback(yy752) + z.EncFallback(yy825) } } } - if yyr742 || yy2arr742 { + if yyr815 || yy2arr815 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.Items == nil { r.EncodeNil() } else { - yym755 := z.EncBinary() - _ = yym755 + yym828 := z.EncBinary() + _ = yym828 if false { } else { h.encSliceThirdPartyResourceData(([]ThirdPartyResourceData)(x.Items), e) @@ -9019,15 +9735,15 @@ func (x *ThirdPartyResourceDataList) CodecEncodeSelf(e *codec1978.Encoder) { if x.Items == nil { r.EncodeNil() } else { - yym756 := z.EncBinary() - _ = yym756 + yym829 := z.EncBinary() + _ = yym829 if false { } else { h.encSliceThirdPartyResourceData(([]ThirdPartyResourceData)(x.Items), e) } } } - if yyr742 || yy2arr742 { + if yyr815 || yy2arr815 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -9040,25 +9756,25 @@ func (x *ThirdPartyResourceDataList) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym757 := z.DecBinary() - _ = yym757 + yym830 := z.DecBinary() + _ = yym830 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct758 := r.ContainerType() - if yyct758 == codecSelferValueTypeMap1234 { - yyl758 := r.ReadMapStart() - if yyl758 == 0 { + yyct831 := r.ContainerType() + if yyct831 == codecSelferValueTypeMap1234 { + yyl831 := r.ReadMapStart() + if yyl831 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl758, d) + x.codecDecodeSelfFromMap(yyl831, d) } - } else if yyct758 == codecSelferValueTypeArray1234 { - yyl758 := r.ReadArrayStart() - if yyl758 == 0 { + } else if yyct831 == codecSelferValueTypeArray1234 { + yyl831 := r.ReadArrayStart() + if yyl831 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl758, d) + x.codecDecodeSelfFromArray(yyl831, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -9070,12 +9786,12 @@ func (x *ThirdPartyResourceDataList) codecDecodeSelfFromMap(l int, d *codec1978. var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys759Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys759Slc - var yyhl759 bool = l >= 0 - for yyj759 := 0; ; yyj759++ { - if yyhl759 { - if yyj759 >= l { + var yys832Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys832Slc + var yyhl832 bool = l >= 0 + for yyj832 := 0; ; yyj832++ { + if yyhl832 { + if yyj832 >= l { break } } else { @@ -9084,10 +9800,10 @@ func (x *ThirdPartyResourceDataList) codecDecodeSelfFromMap(l int, d *codec1978. } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys759Slc = r.DecodeBytes(yys759Slc, true, true) - yys759 := string(yys759Slc) + yys832Slc = r.DecodeBytes(yys832Slc, true, true) + yys832 := string(yys832Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys759 { + switch yys832 { case "kind": if r.TryDecodeAsNil() { x.Kind = "" @@ -9104,31 +9820,31 @@ func (x *ThirdPartyResourceDataList) codecDecodeSelfFromMap(l int, d *codec1978. if r.TryDecodeAsNil() { x.ListMeta = pkg1_unversioned.ListMeta{} } else { - yyv762 := &x.ListMeta - yym763 := z.DecBinary() - _ = yym763 + yyv835 := &x.ListMeta + yym836 := z.DecBinary() + _ = yym836 if false { - } else if z.HasExtensions() && z.DecExt(yyv762) { + } else if z.HasExtensions() && z.DecExt(yyv835) { } else { - z.DecFallback(yyv762, false) + z.DecFallback(yyv835, false) } } case "items": if r.TryDecodeAsNil() { x.Items = nil } else { - yyv764 := &x.Items - yym765 := z.DecBinary() - _ = yym765 + yyv837 := &x.Items + yym838 := z.DecBinary() + _ = yym838 if false { } else { - h.decSliceThirdPartyResourceData((*[]ThirdPartyResourceData)(yyv764), d) + h.decSliceThirdPartyResourceData((*[]ThirdPartyResourceData)(yyv837), d) } } default: - z.DecStructFieldNotFound(-1, yys759) - } // end switch yys759 - } // end for yyj759 + z.DecStructFieldNotFound(-1, yys832) + } // end switch yys832 + } // end for yyj832 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -9136,16 +9852,16 @@ func (x *ThirdPartyResourceDataList) codecDecodeSelfFromArray(l int, d *codec197 var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj766 int - var yyb766 bool - var yyhl766 bool = l >= 0 - yyj766++ - if yyhl766 { - yyb766 = yyj766 > l + var yyj839 int + var yyb839 bool + var yyhl839 bool = l >= 0 + yyj839++ + if yyhl839 { + yyb839 = yyj839 > l } else { - yyb766 = r.CheckBreak() + yyb839 = r.CheckBreak() } - if yyb766 { + if yyb839 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -9155,13 +9871,13 @@ func (x *ThirdPartyResourceDataList) codecDecodeSelfFromArray(l int, d *codec197 } else { x.Kind = string(r.DecodeString()) } - yyj766++ - if yyhl766 { - yyb766 = yyj766 > l + yyj839++ + if yyhl839 { + yyb839 = yyj839 > l } else { - yyb766 = r.CheckBreak() + yyb839 = r.CheckBreak() } - if yyb766 { + if yyb839 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -9171,13 +9887,13 @@ func (x *ThirdPartyResourceDataList) codecDecodeSelfFromArray(l int, d *codec197 } else { x.APIVersion = string(r.DecodeString()) } - yyj766++ - if yyhl766 { - yyb766 = yyj766 > l + yyj839++ + if yyhl839 { + yyb839 = yyj839 > l } else { - yyb766 = r.CheckBreak() + yyb839 = r.CheckBreak() } - if yyb766 { + if yyb839 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -9185,22 +9901,22 @@ func (x *ThirdPartyResourceDataList) codecDecodeSelfFromArray(l int, d *codec197 if r.TryDecodeAsNil() { x.ListMeta = pkg1_unversioned.ListMeta{} } else { - yyv769 := &x.ListMeta - yym770 := z.DecBinary() - _ = yym770 + yyv842 := &x.ListMeta + yym843 := z.DecBinary() + _ = yym843 if false { - } else if z.HasExtensions() && z.DecExt(yyv769) { + } else if z.HasExtensions() && z.DecExt(yyv842) { } else { - z.DecFallback(yyv769, false) + z.DecFallback(yyv842, false) } } - yyj766++ - if yyhl766 { - yyb766 = yyj766 > l + yyj839++ + if yyhl839 { + yyb839 = yyj839 > l } else { - yyb766 = r.CheckBreak() + yyb839 = r.CheckBreak() } - if yyb766 { + if yyb839 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -9208,26 +9924,26 @@ func (x *ThirdPartyResourceDataList) codecDecodeSelfFromArray(l int, d *codec197 if r.TryDecodeAsNil() { x.Items = nil } else { - yyv771 := &x.Items - yym772 := z.DecBinary() - _ = yym772 + yyv844 := &x.Items + yym845 := z.DecBinary() + _ = yym845 if false { } else { - h.decSliceThirdPartyResourceData((*[]ThirdPartyResourceData)(yyv771), d) + h.decSliceThirdPartyResourceData((*[]ThirdPartyResourceData)(yyv844), d) } } for { - yyj766++ - if yyhl766 { - yyb766 = yyj766 > l + yyj839++ + if yyhl839 { + yyb839 = yyj839 > l } else { - yyb766 = r.CheckBreak() + yyb839 = r.CheckBreak() } - if yyb766 { + if yyb839 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj766-1, "") + z.DecStructFieldNotFound(yyj839-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -9239,39 +9955,39 @@ func (x *Job) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym773 := z.EncBinary() - _ = yym773 + yym846 := z.EncBinary() + _ = yym846 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - 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 { + yysep847 := !z.EncBinary() + yy2arr847 := z.EncBasicHandle().StructToArray + var yyq847 [5]bool + _, _, _ = yysep847, yyq847, yy2arr847 + const yyr847 bool = false + yyq847[0] = x.Kind != "" + yyq847[1] = x.APIVersion != "" + yyq847[2] = true + yyq847[3] = true + yyq847[4] = true + var yynn847 int + if yyr847 || yy2arr847 { r.EncodeArrayStart(5) } else { - yynn774 = 0 - for _, b := range yyq774 { + yynn847 = 0 + for _, b := range yyq847 { if b { - yynn774++ + yynn847++ } } - r.EncodeMapStart(yynn774) - yynn774 = 0 + r.EncodeMapStart(yynn847) + yynn847 = 0 } - if yyr774 || yy2arr774 { + if yyr847 || yy2arr847 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq774[0] { - yym776 := z.EncBinary() - _ = yym776 + if yyq847[0] { + yym849 := z.EncBinary() + _ = yym849 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) @@ -9280,23 +9996,23 @@ func (x *Job) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq774[0] { + if yyq847[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym777 := z.EncBinary() - _ = yym777 + yym850 := z.EncBinary() + _ = yym850 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } - if yyr774 || yy2arr774 { + if yyr847 || yy2arr847 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq774[1] { - yym779 := z.EncBinary() - _ = yym779 + if yyq847[1] { + yym852 := z.EncBinary() + _ = yym852 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) @@ -9305,70 +10021,70 @@ func (x *Job) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq774[1] { + if yyq847[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym780 := z.EncBinary() - _ = yym780 + yym853 := z.EncBinary() + _ = yym853 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } - if yyr774 || yy2arr774 { + if yyr847 || yy2arr847 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq774[2] { - yy782 := &x.ObjectMeta - yy782.CodecEncodeSelf(e) + if yyq847[2] { + yy855 := &x.ObjectMeta + yy855.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { - if yyq774[2] { + if yyq847[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy783 := &x.ObjectMeta - yy783.CodecEncodeSelf(e) + yy856 := &x.ObjectMeta + yy856.CodecEncodeSelf(e) } } - if yyr774 || yy2arr774 { + if yyr847 || yy2arr847 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq774[3] { - yy785 := &x.Spec - yy785.CodecEncodeSelf(e) + if yyq847[3] { + yy858 := &x.Spec + yy858.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { - if yyq774[3] { + if yyq847[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("spec")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy786 := &x.Spec - yy786.CodecEncodeSelf(e) + yy859 := &x.Spec + yy859.CodecEncodeSelf(e) } } - if yyr774 || yy2arr774 { + if yyr847 || yy2arr847 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq774[4] { - yy788 := &x.Status - yy788.CodecEncodeSelf(e) + if yyq847[4] { + yy861 := &x.Status + yy861.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { - if yyq774[4] { + if yyq847[4] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("status")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy789 := &x.Status - yy789.CodecEncodeSelf(e) + yy862 := &x.Status + yy862.CodecEncodeSelf(e) } } - if yyr774 || yy2arr774 { + if yyr847 || yy2arr847 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -9381,25 +10097,25 @@ func (x *Job) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym790 := z.DecBinary() - _ = yym790 + yym863 := z.DecBinary() + _ = yym863 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct791 := r.ContainerType() - if yyct791 == codecSelferValueTypeMap1234 { - yyl791 := r.ReadMapStart() - if yyl791 == 0 { + yyct864 := r.ContainerType() + if yyct864 == codecSelferValueTypeMap1234 { + yyl864 := r.ReadMapStart() + if yyl864 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl791, d) + x.codecDecodeSelfFromMap(yyl864, d) } - } else if yyct791 == codecSelferValueTypeArray1234 { - yyl791 := r.ReadArrayStart() - if yyl791 == 0 { + } else if yyct864 == codecSelferValueTypeArray1234 { + yyl864 := r.ReadArrayStart() + if yyl864 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl791, d) + x.codecDecodeSelfFromArray(yyl864, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -9411,12 +10127,12 @@ func (x *Job) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys792Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys792Slc - var yyhl792 bool = l >= 0 - for yyj792 := 0; ; yyj792++ { - if yyhl792 { - if yyj792 >= l { + var yys865Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys865Slc + var yyhl865 bool = l >= 0 + for yyj865 := 0; ; yyj865++ { + if yyhl865 { + if yyj865 >= l { break } } else { @@ -9425,10 +10141,10 @@ func (x *Job) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys792Slc = r.DecodeBytes(yys792Slc, true, true) - yys792 := string(yys792Slc) + yys865Slc = r.DecodeBytes(yys865Slc, true, true) + yys865 := string(yys865Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys792 { + switch yys865 { case "kind": if r.TryDecodeAsNil() { x.Kind = "" @@ -9445,27 +10161,27 @@ func (x *Job) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.ObjectMeta = pkg2_v1.ObjectMeta{} } else { - yyv795 := &x.ObjectMeta - yyv795.CodecDecodeSelf(d) + yyv868 := &x.ObjectMeta + yyv868.CodecDecodeSelf(d) } case "spec": if r.TryDecodeAsNil() { x.Spec = JobSpec{} } else { - yyv796 := &x.Spec - yyv796.CodecDecodeSelf(d) + yyv869 := &x.Spec + yyv869.CodecDecodeSelf(d) } case "status": if r.TryDecodeAsNil() { x.Status = JobStatus{} } else { - yyv797 := &x.Status - yyv797.CodecDecodeSelf(d) + yyv870 := &x.Status + yyv870.CodecDecodeSelf(d) } default: - z.DecStructFieldNotFound(-1, yys792) - } // end switch yys792 - } // end for yyj792 + z.DecStructFieldNotFound(-1, yys865) + } // end switch yys865 + } // end for yyj865 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -9473,16 +10189,16 @@ func (x *Job) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj798 int - var yyb798 bool - var yyhl798 bool = l >= 0 - yyj798++ - if yyhl798 { - yyb798 = yyj798 > l + var yyj871 int + var yyb871 bool + var yyhl871 bool = l >= 0 + yyj871++ + if yyhl871 { + yyb871 = yyj871 > l } else { - yyb798 = r.CheckBreak() + yyb871 = r.CheckBreak() } - if yyb798 { + if yyb871 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -9492,13 +10208,13 @@ func (x *Job) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.Kind = string(r.DecodeString()) } - yyj798++ - if yyhl798 { - yyb798 = yyj798 > l + yyj871++ + if yyhl871 { + yyb871 = yyj871 > l } else { - yyb798 = r.CheckBreak() + yyb871 = r.CheckBreak() } - if yyb798 { + if yyb871 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -9508,13 +10224,13 @@ func (x *Job) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.APIVersion = string(r.DecodeString()) } - yyj798++ - if yyhl798 { - yyb798 = yyj798 > l + yyj871++ + if yyhl871 { + yyb871 = yyj871 > l } else { - yyb798 = r.CheckBreak() + yyb871 = r.CheckBreak() } - if yyb798 { + if yyb871 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -9522,16 +10238,16 @@ func (x *Job) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.ObjectMeta = pkg2_v1.ObjectMeta{} } else { - yyv801 := &x.ObjectMeta - yyv801.CodecDecodeSelf(d) + yyv874 := &x.ObjectMeta + yyv874.CodecDecodeSelf(d) } - yyj798++ - if yyhl798 { - yyb798 = yyj798 > l + yyj871++ + if yyhl871 { + yyb871 = yyj871 > l } else { - yyb798 = r.CheckBreak() + yyb871 = r.CheckBreak() } - if yyb798 { + if yyb871 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -9539,16 +10255,16 @@ func (x *Job) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.Spec = JobSpec{} } else { - yyv802 := &x.Spec - yyv802.CodecDecodeSelf(d) + yyv875 := &x.Spec + yyv875.CodecDecodeSelf(d) } - yyj798++ - if yyhl798 { - yyb798 = yyj798 > l + yyj871++ + if yyhl871 { + yyb871 = yyj871 > l } else { - yyb798 = r.CheckBreak() + yyb871 = r.CheckBreak() } - if yyb798 { + if yyb871 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -9556,21 +10272,21 @@ func (x *Job) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.Status = JobStatus{} } else { - yyv803 := &x.Status - yyv803.CodecDecodeSelf(d) + yyv876 := &x.Status + yyv876.CodecDecodeSelf(d) } for { - yyj798++ - if yyhl798 { - yyb798 = yyj798 > l + yyj871++ + if yyhl871 { + yyb871 = yyj871 > l } else { - yyb798 = r.CheckBreak() + yyb871 = r.CheckBreak() } - if yyb798 { + if yyb871 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj798-1, "") + z.DecStructFieldNotFound(yyj871-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -9582,37 +10298,37 @@ func (x *JobList) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym804 := z.EncBinary() - _ = yym804 + yym877 := z.EncBinary() + _ = yym877 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - 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 { + yysep878 := !z.EncBinary() + yy2arr878 := z.EncBasicHandle().StructToArray + var yyq878 [4]bool + _, _, _ = yysep878, yyq878, yy2arr878 + const yyr878 bool = false + yyq878[0] = x.Kind != "" + yyq878[1] = x.APIVersion != "" + yyq878[2] = true + var yynn878 int + if yyr878 || yy2arr878 { r.EncodeArrayStart(4) } else { - yynn805 = 1 - for _, b := range yyq805 { + yynn878 = 1 + for _, b := range yyq878 { if b { - yynn805++ + yynn878++ } } - r.EncodeMapStart(yynn805) - yynn805 = 0 + r.EncodeMapStart(yynn878) + yynn878 = 0 } - if yyr805 || yy2arr805 { + if yyr878 || yy2arr878 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq805[0] { - yym807 := z.EncBinary() - _ = yym807 + if yyq878[0] { + yym880 := z.EncBinary() + _ = yym880 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) @@ -9621,23 +10337,23 @@ func (x *JobList) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq805[0] { + if yyq878[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym808 := z.EncBinary() - _ = yym808 + yym881 := z.EncBinary() + _ = yym881 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } - if yyr805 || yy2arr805 { + if yyr878 || yy2arr878 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq805[1] { - yym810 := z.EncBinary() - _ = yym810 + if yyq878[1] { + yym883 := z.EncBinary() + _ = yym883 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) @@ -9646,54 +10362,54 @@ func (x *JobList) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq805[1] { + if yyq878[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym811 := z.EncBinary() - _ = yym811 + yym884 := z.EncBinary() + _ = yym884 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } - if yyr805 || yy2arr805 { + if yyr878 || yy2arr878 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq805[2] { - yy813 := &x.ListMeta - yym814 := z.EncBinary() - _ = yym814 + if yyq878[2] { + yy886 := &x.ListMeta + yym887 := z.EncBinary() + _ = yym887 if false { - } else if z.HasExtensions() && z.EncExt(yy813) { + } else if z.HasExtensions() && z.EncExt(yy886) { } else { - z.EncFallback(yy813) + z.EncFallback(yy886) } } else { r.EncodeNil() } } else { - if yyq805[2] { + if yyq878[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy815 := &x.ListMeta - yym816 := z.EncBinary() - _ = yym816 + yy888 := &x.ListMeta + yym889 := z.EncBinary() + _ = yym889 if false { - } else if z.HasExtensions() && z.EncExt(yy815) { + } else if z.HasExtensions() && z.EncExt(yy888) { } else { - z.EncFallback(yy815) + z.EncFallback(yy888) } } } - if yyr805 || yy2arr805 { + if yyr878 || yy2arr878 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.Items == nil { r.EncodeNil() } else { - yym818 := z.EncBinary() - _ = yym818 + yym891 := z.EncBinary() + _ = yym891 if false { } else { h.encSliceJob(([]Job)(x.Items), e) @@ -9706,15 +10422,15 @@ func (x *JobList) CodecEncodeSelf(e *codec1978.Encoder) { if x.Items == nil { r.EncodeNil() } else { - yym819 := z.EncBinary() - _ = yym819 + yym892 := z.EncBinary() + _ = yym892 if false { } else { h.encSliceJob(([]Job)(x.Items), e) } } } - if yyr805 || yy2arr805 { + if yyr878 || yy2arr878 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -9727,25 +10443,25 @@ func (x *JobList) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym820 := z.DecBinary() - _ = yym820 + yym893 := z.DecBinary() + _ = yym893 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct821 := r.ContainerType() - if yyct821 == codecSelferValueTypeMap1234 { - yyl821 := r.ReadMapStart() - if yyl821 == 0 { + yyct894 := r.ContainerType() + if yyct894 == codecSelferValueTypeMap1234 { + yyl894 := r.ReadMapStart() + if yyl894 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl821, d) + x.codecDecodeSelfFromMap(yyl894, d) } - } else if yyct821 == codecSelferValueTypeArray1234 { - yyl821 := r.ReadArrayStart() - if yyl821 == 0 { + } else if yyct894 == codecSelferValueTypeArray1234 { + yyl894 := r.ReadArrayStart() + if yyl894 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl821, d) + x.codecDecodeSelfFromArray(yyl894, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -9757,12 +10473,12 @@ func (x *JobList) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys822Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys822Slc - var yyhl822 bool = l >= 0 - for yyj822 := 0; ; yyj822++ { - if yyhl822 { - if yyj822 >= l { + var yys895Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys895Slc + var yyhl895 bool = l >= 0 + for yyj895 := 0; ; yyj895++ { + if yyhl895 { + if yyj895 >= l { break } } else { @@ -9771,10 +10487,10 @@ func (x *JobList) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys822Slc = r.DecodeBytes(yys822Slc, true, true) - yys822 := string(yys822Slc) + yys895Slc = r.DecodeBytes(yys895Slc, true, true) + yys895 := string(yys895Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys822 { + switch yys895 { case "kind": if r.TryDecodeAsNil() { x.Kind = "" @@ -9791,31 +10507,31 @@ func (x *JobList) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.ListMeta = pkg1_unversioned.ListMeta{} } else { - yyv825 := &x.ListMeta - yym826 := z.DecBinary() - _ = yym826 + yyv898 := &x.ListMeta + yym899 := z.DecBinary() + _ = yym899 if false { - } else if z.HasExtensions() && z.DecExt(yyv825) { + } else if z.HasExtensions() && z.DecExt(yyv898) { } else { - z.DecFallback(yyv825, false) + z.DecFallback(yyv898, false) } } case "items": if r.TryDecodeAsNil() { x.Items = nil } else { - yyv827 := &x.Items - yym828 := z.DecBinary() - _ = yym828 + yyv900 := &x.Items + yym901 := z.DecBinary() + _ = yym901 if false { } else { - h.decSliceJob((*[]Job)(yyv827), d) + h.decSliceJob((*[]Job)(yyv900), d) } } default: - z.DecStructFieldNotFound(-1, yys822) - } // end switch yys822 - } // end for yyj822 + z.DecStructFieldNotFound(-1, yys895) + } // end switch yys895 + } // end for yyj895 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -9823,16 +10539,16 @@ func (x *JobList) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj829 int - var yyb829 bool - var yyhl829 bool = l >= 0 - yyj829++ - if yyhl829 { - yyb829 = yyj829 > l + var yyj902 int + var yyb902 bool + var yyhl902 bool = l >= 0 + yyj902++ + if yyhl902 { + yyb902 = yyj902 > l } else { - yyb829 = r.CheckBreak() + yyb902 = r.CheckBreak() } - if yyb829 { + if yyb902 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -9842,13 +10558,13 @@ func (x *JobList) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.Kind = string(r.DecodeString()) } - yyj829++ - if yyhl829 { - yyb829 = yyj829 > l + yyj902++ + if yyhl902 { + yyb902 = yyj902 > l } else { - yyb829 = r.CheckBreak() + yyb902 = r.CheckBreak() } - if yyb829 { + if yyb902 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -9858,13 +10574,13 @@ func (x *JobList) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.APIVersion = string(r.DecodeString()) } - yyj829++ - if yyhl829 { - yyb829 = yyj829 > l + yyj902++ + if yyhl902 { + yyb902 = yyj902 > l } else { - yyb829 = r.CheckBreak() + yyb902 = r.CheckBreak() } - if yyb829 { + if yyb902 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -9872,22 +10588,22 @@ func (x *JobList) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.ListMeta = pkg1_unversioned.ListMeta{} } else { - yyv832 := &x.ListMeta - yym833 := z.DecBinary() - _ = yym833 + yyv905 := &x.ListMeta + yym906 := z.DecBinary() + _ = yym906 if false { - } else if z.HasExtensions() && z.DecExt(yyv832) { + } else if z.HasExtensions() && z.DecExt(yyv905) { } else { - z.DecFallback(yyv832, false) + z.DecFallback(yyv905, false) } } - yyj829++ - if yyhl829 { - yyb829 = yyj829 > l + yyj902++ + if yyhl902 { + yyb902 = yyj902 > l } else { - yyb829 = r.CheckBreak() + yyb902 = r.CheckBreak() } - if yyb829 { + if yyb902 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -9895,26 +10611,26 @@ func (x *JobList) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.Items = nil } else { - yyv834 := &x.Items - yym835 := z.DecBinary() - _ = yym835 + yyv907 := &x.Items + yym908 := z.DecBinary() + _ = yym908 if false { } else { - h.decSliceJob((*[]Job)(yyv834), d) + h.decSliceJob((*[]Job)(yyv907), d) } } for { - yyj829++ - if yyhl829 { - yyb829 = yyj829 > l + yyj902++ + if yyhl902 { + yyb902 = yyj902 > l } else { - yyb829 = r.CheckBreak() + yyb902 = r.CheckBreak() } - if yyb829 { + if yyb902 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj829-1, "") + z.DecStructFieldNotFound(yyj902-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -9926,209 +10642,221 @@ func (x *JobSpec) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym836 := z.EncBinary() - _ = yym836 + yym909 := z.EncBinary() + _ = yym909 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - 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 { + yysep910 := !z.EncBinary() + yy2arr910 := z.EncBasicHandle().StructToArray + var yyq910 [6]bool + _, _, _ = yysep910, yyq910, yy2arr910 + const yyr910 bool = false + yyq910[0] = x.Parallelism != nil + yyq910[1] = x.Completions != nil + yyq910[2] = x.ActiveDeadlineSeconds != nil + yyq910[3] = x.Selector != nil + yyq910[4] = x.AutoSelector != nil + var yynn910 int + if yyr910 || yy2arr910 { r.EncodeArrayStart(6) } else { - yynn837 = 1 - for _, b := range yyq837 { + yynn910 = 1 + for _, b := range yyq910 { if b { - yynn837++ + yynn910++ } } - r.EncodeMapStart(yynn837) - yynn837 = 0 + r.EncodeMapStart(yynn910) + yynn910 = 0 } - if yyr837 || yy2arr837 { + if yyr910 || yy2arr910 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq837[0] { + if yyq910[0] { if x.Parallelism == nil { r.EncodeNil() } else { - yy839 := *x.Parallelism - yym840 := z.EncBinary() - _ = yym840 + yy912 := *x.Parallelism + yym913 := z.EncBinary() + _ = yym913 if false { } else { - r.EncodeInt(int64(yy839)) + r.EncodeInt(int64(yy912)) } } } else { r.EncodeNil() } } else { - if yyq837[0] { + if yyq910[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("parallelism")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.Parallelism == nil { r.EncodeNil() } else { - yy841 := *x.Parallelism - yym842 := z.EncBinary() - _ = yym842 + yy914 := *x.Parallelism + yym915 := z.EncBinary() + _ = yym915 if false { } else { - r.EncodeInt(int64(yy841)) + r.EncodeInt(int64(yy914)) } } } } - if yyr837 || yy2arr837 { + if yyr910 || yy2arr910 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq837[1] { + if yyq910[1] { if x.Completions == nil { r.EncodeNil() } else { - yy844 := *x.Completions - yym845 := z.EncBinary() - _ = yym845 + yy917 := *x.Completions + yym918 := z.EncBinary() + _ = yym918 if false { } else { - r.EncodeInt(int64(yy844)) + r.EncodeInt(int64(yy917)) } } } else { r.EncodeNil() } } else { - if yyq837[1] { + if yyq910[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("completions")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.Completions == nil { r.EncodeNil() } else { - yy846 := *x.Completions - yym847 := z.EncBinary() - _ = yym847 + yy919 := *x.Completions + yym920 := z.EncBinary() + _ = yym920 if false { } else { - r.EncodeInt(int64(yy846)) + r.EncodeInt(int64(yy919)) } } } } - if yyr837 || yy2arr837 { + if yyr910 || yy2arr910 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq837[2] { + if yyq910[2] { if x.ActiveDeadlineSeconds == nil { r.EncodeNil() } else { - yy849 := *x.ActiveDeadlineSeconds - yym850 := z.EncBinary() - _ = yym850 + yy922 := *x.ActiveDeadlineSeconds + yym923 := z.EncBinary() + _ = yym923 if false { } else { - r.EncodeInt(int64(yy849)) + r.EncodeInt(int64(yy922)) } } } else { r.EncodeNil() } } else { - if yyq837[2] { + if yyq910[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("activeDeadlineSeconds")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.ActiveDeadlineSeconds == nil { r.EncodeNil() } else { - yy851 := *x.ActiveDeadlineSeconds - yym852 := z.EncBinary() - _ = yym852 + yy924 := *x.ActiveDeadlineSeconds + yym925 := z.EncBinary() + _ = yym925 if false { } else { - r.EncodeInt(int64(yy851)) + r.EncodeInt(int64(yy924)) } } } } - if yyr837 || yy2arr837 { + if yyr910 || yy2arr910 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq837[3] { + if yyq910[3] { if x.Selector == nil { r.EncodeNil() } else { - x.Selector.CodecEncodeSelf(e) + yym927 := z.EncBinary() + _ = yym927 + if false { + } else if z.HasExtensions() && z.EncExt(x.Selector) { + } else { + z.EncFallback(x.Selector) + } } } else { r.EncodeNil() } } else { - if yyq837[3] { + if yyq910[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("selector")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.Selector == nil { r.EncodeNil() } else { - x.Selector.CodecEncodeSelf(e) + yym928 := z.EncBinary() + _ = yym928 + if false { + } else if z.HasExtensions() && z.EncExt(x.Selector) { + } else { + z.EncFallback(x.Selector) + } } } } - if yyr837 || yy2arr837 { + if yyr910 || yy2arr910 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq837[4] { + if yyq910[4] { if x.AutoSelector == nil { r.EncodeNil() } else { - yy855 := *x.AutoSelector - yym856 := z.EncBinary() - _ = yym856 + yy930 := *x.AutoSelector + yym931 := z.EncBinary() + _ = yym931 if false { } else { - r.EncodeBool(bool(yy855)) + r.EncodeBool(bool(yy930)) } } } else { r.EncodeNil() } } else { - if yyq837[4] { + if yyq910[4] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("autoSelector")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.AutoSelector == nil { r.EncodeNil() } else { - yy857 := *x.AutoSelector - yym858 := z.EncBinary() - _ = yym858 + yy932 := *x.AutoSelector + yym933 := z.EncBinary() + _ = yym933 if false { } else { - r.EncodeBool(bool(yy857)) + r.EncodeBool(bool(yy932)) } } } } - if yyr837 || yy2arr837 { + if yyr910 || yy2arr910 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy860 := &x.Template - yy860.CodecEncodeSelf(e) + yy935 := &x.Template + yy935.CodecEncodeSelf(e) } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("template")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy861 := &x.Template - yy861.CodecEncodeSelf(e) + yy936 := &x.Template + yy936.CodecEncodeSelf(e) } - if yyr837 || yy2arr837 { + if yyr910 || yy2arr910 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -10141,25 +10869,25 @@ func (x *JobSpec) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym862 := z.DecBinary() - _ = yym862 + yym937 := z.DecBinary() + _ = yym937 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct863 := r.ContainerType() - if yyct863 == codecSelferValueTypeMap1234 { - yyl863 := r.ReadMapStart() - if yyl863 == 0 { + yyct938 := r.ContainerType() + if yyct938 == codecSelferValueTypeMap1234 { + yyl938 := r.ReadMapStart() + if yyl938 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl863, d) + x.codecDecodeSelfFromMap(yyl938, d) } - } else if yyct863 == codecSelferValueTypeArray1234 { - yyl863 := r.ReadArrayStart() - if yyl863 == 0 { + } else if yyct938 == codecSelferValueTypeArray1234 { + yyl938 := r.ReadArrayStart() + if yyl938 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl863, d) + x.codecDecodeSelfFromArray(yyl938, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -10171,12 +10899,12 @@ func (x *JobSpec) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys864Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys864Slc - var yyhl864 bool = l >= 0 - for yyj864 := 0; ; yyj864++ { - if yyhl864 { - if yyj864 >= l { + 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 { @@ -10185,10 +10913,10 @@ func (x *JobSpec) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys864Slc = r.DecodeBytes(yys864Slc, true, true) - yys864 := string(yys864Slc) + yys939Slc = r.DecodeBytes(yys939Slc, true, true) + yys939 := string(yys939Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys864 { + switch yys939 { case "parallelism": if r.TryDecodeAsNil() { if x.Parallelism != nil { @@ -10198,8 +10926,8 @@ func (x *JobSpec) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { if x.Parallelism == nil { x.Parallelism = new(int32) } - yym866 := z.DecBinary() - _ = yym866 + yym941 := z.DecBinary() + _ = yym941 if false { } else { *((*int32)(x.Parallelism)) = int32(r.DecodeInt(32)) @@ -10214,8 +10942,8 @@ func (x *JobSpec) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { if x.Completions == nil { x.Completions = new(int32) } - yym868 := z.DecBinary() - _ = yym868 + yym943 := z.DecBinary() + _ = yym943 if false { } else { *((*int32)(x.Completions)) = int32(r.DecodeInt(32)) @@ -10230,8 +10958,8 @@ func (x *JobSpec) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { if x.ActiveDeadlineSeconds == nil { x.ActiveDeadlineSeconds = new(int64) } - yym870 := z.DecBinary() - _ = yym870 + yym945 := z.DecBinary() + _ = yym945 if false { } else { *((*int64)(x.ActiveDeadlineSeconds)) = int64(r.DecodeInt(64)) @@ -10244,9 +10972,15 @@ func (x *JobSpec) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } else { if x.Selector == nil { - x.Selector = new(LabelSelector) + x.Selector = new(pkg1_unversioned.LabelSelector) + } + yym947 := z.DecBinary() + _ = yym947 + if false { + } else if z.HasExtensions() && z.DecExt(x.Selector) { + } else { + z.DecFallback(x.Selector, false) } - x.Selector.CodecDecodeSelf(d) } case "autoSelector": if r.TryDecodeAsNil() { @@ -10257,8 +10991,8 @@ func (x *JobSpec) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { if x.AutoSelector == nil { x.AutoSelector = new(bool) } - yym873 := z.DecBinary() - _ = yym873 + yym949 := z.DecBinary() + _ = yym949 if false { } else { *((*bool)(x.AutoSelector)) = r.DecodeBool() @@ -10268,13 +11002,13 @@ func (x *JobSpec) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.Template = pkg2_v1.PodTemplateSpec{} } else { - yyv874 := &x.Template - yyv874.CodecDecodeSelf(d) + yyv950 := &x.Template + yyv950.CodecDecodeSelf(d) } default: - z.DecStructFieldNotFound(-1, yys864) - } // end switch yys864 - } // end for yyj864 + z.DecStructFieldNotFound(-1, yys939) + } // end switch yys939 + } // end for yyj939 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -10282,16 +11016,16 @@ func (x *JobSpec) 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 + var yyj951 int + var yyb951 bool + var yyhl951 bool = l >= 0 + yyj951++ + if yyhl951 { + yyb951 = yyj951 > l } else { - yyb875 = r.CheckBreak() + yyb951 = r.CheckBreak() } - if yyb875 { + if yyb951 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -10304,20 +11038,20 @@ func (x *JobSpec) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if x.Parallelism == nil { x.Parallelism = new(int32) } - yym877 := z.DecBinary() - _ = yym877 + yym953 := z.DecBinary() + _ = yym953 if false { } else { *((*int32)(x.Parallelism)) = int32(r.DecodeInt(32)) } } - yyj875++ - if yyhl875 { - yyb875 = yyj875 > l + yyj951++ + if yyhl951 { + yyb951 = yyj951 > l } else { - yyb875 = r.CheckBreak() + yyb951 = r.CheckBreak() } - if yyb875 { + if yyb951 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -10330,20 +11064,20 @@ func (x *JobSpec) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if x.Completions == nil { x.Completions = new(int32) } - yym879 := z.DecBinary() - _ = yym879 + yym955 := z.DecBinary() + _ = yym955 if false { } else { *((*int32)(x.Completions)) = int32(r.DecodeInt(32)) } } - yyj875++ - if yyhl875 { - yyb875 = yyj875 > l + yyj951++ + if yyhl951 { + yyb951 = yyj951 > l } else { - yyb875 = r.CheckBreak() + yyb951 = r.CheckBreak() } - if yyb875 { + if yyb951 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -10356,20 +11090,20 @@ func (x *JobSpec) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if x.ActiveDeadlineSeconds == nil { x.ActiveDeadlineSeconds = new(int64) } - yym881 := z.DecBinary() - _ = yym881 + yym957 := z.DecBinary() + _ = yym957 if false { } else { *((*int64)(x.ActiveDeadlineSeconds)) = int64(r.DecodeInt(64)) } } - yyj875++ - if yyhl875 { - yyb875 = yyj875 > l + yyj951++ + if yyhl951 { + yyb951 = yyj951 > l } else { - yyb875 = r.CheckBreak() + yyb951 = r.CheckBreak() } - if yyb875 { + if yyb951 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -10380,17 +11114,23 @@ func (x *JobSpec) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } } else { if x.Selector == nil { - x.Selector = new(LabelSelector) + x.Selector = new(pkg1_unversioned.LabelSelector) + } + yym959 := z.DecBinary() + _ = yym959 + if false { + } else if z.HasExtensions() && z.DecExt(x.Selector) { + } else { + z.DecFallback(x.Selector, false) } - x.Selector.CodecDecodeSelf(d) } - yyj875++ - if yyhl875 { - yyb875 = yyj875 > l + yyj951++ + if yyhl951 { + yyb951 = yyj951 > l } else { - yyb875 = r.CheckBreak() + yyb951 = r.CheckBreak() } - if yyb875 { + if yyb951 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -10403,20 +11143,20 @@ func (x *JobSpec) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if x.AutoSelector == nil { x.AutoSelector = new(bool) } - yym884 := z.DecBinary() - _ = yym884 + yym961 := z.DecBinary() + _ = yym961 if false { } else { *((*bool)(x.AutoSelector)) = r.DecodeBool() } } - yyj875++ - if yyhl875 { - yyb875 = yyj875 > l + yyj951++ + if yyhl951 { + yyb951 = yyj951 > l } else { - yyb875 = r.CheckBreak() + yyb951 = r.CheckBreak() } - if yyb875 { + if yyb951 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -10424,21 +11164,21 @@ func (x *JobSpec) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.Template = pkg2_v1.PodTemplateSpec{} } else { - yyv885 := &x.Template - yyv885.CodecDecodeSelf(d) + yyv962 := &x.Template + yyv962.CodecDecodeSelf(d) } for { - yyj875++ - if yyhl875 { - yyb875 = yyj875 > l + yyj951++ + if yyhl951 { + yyb951 = yyj951 > l } else { - yyb875 = r.CheckBreak() + yyb951 = r.CheckBreak() } - if yyb875 { + if yyb951 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj875-1, "") + z.DecStructFieldNotFound(yyj951-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -10450,43 +11190,43 @@ func (x *JobStatus) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym886 := z.EncBinary() - _ = yym886 + yym963 := z.EncBinary() + _ = yym963 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - 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 { + yysep964 := !z.EncBinary() + yy2arr964 := z.EncBasicHandle().StructToArray + var yyq964 [6]bool + _, _, _ = yysep964, yyq964, yy2arr964 + const yyr964 bool = false + yyq964[0] = len(x.Conditions) != 0 + yyq964[1] = x.StartTime != nil + yyq964[2] = x.CompletionTime != nil + yyq964[3] = x.Active != 0 + yyq964[4] = x.Succeeded != 0 + yyq964[5] = x.Failed != 0 + var yynn964 int + if yyr964 || yy2arr964 { r.EncodeArrayStart(6) } else { - yynn887 = 0 - for _, b := range yyq887 { + yynn964 = 0 + for _, b := range yyq964 { if b { - yynn887++ + yynn964++ } } - r.EncodeMapStart(yynn887) - yynn887 = 0 + r.EncodeMapStart(yynn964) + yynn964 = 0 } - if yyr887 || yy2arr887 { + if yyr964 || yy2arr964 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq887[0] { + if yyq964[0] { if x.Conditions == nil { r.EncodeNil() } else { - yym889 := z.EncBinary() - _ = yym889 + yym966 := z.EncBinary() + _ = yym966 if false { } else { h.encSliceJobCondition(([]JobCondition)(x.Conditions), e) @@ -10496,15 +11236,15 @@ func (x *JobStatus) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq887[0] { + if yyq964[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("conditions")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.Conditions == nil { r.EncodeNil() } else { - yym890 := z.EncBinary() - _ = yym890 + yym967 := z.EncBinary() + _ = yym967 if false { } else { h.encSliceJobCondition(([]JobCondition)(x.Conditions), e) @@ -10512,19 +11252,19 @@ func (x *JobStatus) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr887 || yy2arr887 { + if yyr964 || yy2arr964 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq887[1] { + if yyq964[1] { if x.StartTime == nil { r.EncodeNil() } else { - yym892 := z.EncBinary() - _ = yym892 + yym969 := z.EncBinary() + _ = yym969 if false { } else if z.HasExtensions() && z.EncExt(x.StartTime) { - } else if yym892 { + } else if yym969 { z.EncBinaryMarshal(x.StartTime) - } else if !yym892 && z.IsJSONHandle() { + } else if !yym969 && z.IsJSONHandle() { z.EncJSONMarshal(x.StartTime) } else { z.EncFallback(x.StartTime) @@ -10534,20 +11274,20 @@ func (x *JobStatus) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq887[1] { + if yyq964[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("startTime")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.StartTime == nil { r.EncodeNil() } else { - yym893 := z.EncBinary() - _ = yym893 + yym970 := z.EncBinary() + _ = yym970 if false { } else if z.HasExtensions() && z.EncExt(x.StartTime) { - } else if yym893 { + } else if yym970 { z.EncBinaryMarshal(x.StartTime) - } else if !yym893 && z.IsJSONHandle() { + } else if !yym970 && z.IsJSONHandle() { z.EncJSONMarshal(x.StartTime) } else { z.EncFallback(x.StartTime) @@ -10555,19 +11295,19 @@ func (x *JobStatus) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr887 || yy2arr887 { + if yyr964 || yy2arr964 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq887[2] { + if yyq964[2] { if x.CompletionTime == nil { r.EncodeNil() } else { - yym895 := z.EncBinary() - _ = yym895 + yym972 := z.EncBinary() + _ = yym972 if false { } else if z.HasExtensions() && z.EncExt(x.CompletionTime) { - } else if yym895 { + } else if yym972 { z.EncBinaryMarshal(x.CompletionTime) - } else if !yym895 && z.IsJSONHandle() { + } else if !yym972 && z.IsJSONHandle() { z.EncJSONMarshal(x.CompletionTime) } else { z.EncFallback(x.CompletionTime) @@ -10577,20 +11317,20 @@ func (x *JobStatus) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq887[2] { + if yyq964[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("completionTime")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.CompletionTime == nil { r.EncodeNil() } else { - yym896 := z.EncBinary() - _ = yym896 + yym973 := z.EncBinary() + _ = yym973 if false { } else if z.HasExtensions() && z.EncExt(x.CompletionTime) { - } else if yym896 { + } else if yym973 { z.EncBinaryMarshal(x.CompletionTime) - } else if !yym896 && z.IsJSONHandle() { + } else if !yym973 && z.IsJSONHandle() { z.EncJSONMarshal(x.CompletionTime) } else { z.EncFallback(x.CompletionTime) @@ -10598,11 +11338,11 @@ func (x *JobStatus) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr887 || yy2arr887 { + if yyr964 || yy2arr964 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq887[3] { - yym898 := z.EncBinary() - _ = yym898 + if yyq964[3] { + yym975 := z.EncBinary() + _ = yym975 if false { } else { r.EncodeInt(int64(x.Active)) @@ -10611,23 +11351,23 @@ func (x *JobStatus) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeInt(0) } } else { - if yyq887[3] { + if yyq964[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("active")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym899 := z.EncBinary() - _ = yym899 + yym976 := z.EncBinary() + _ = yym976 if false { } else { r.EncodeInt(int64(x.Active)) } } } - if yyr887 || yy2arr887 { + if yyr964 || yy2arr964 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq887[4] { - yym901 := z.EncBinary() - _ = yym901 + if yyq964[4] { + yym978 := z.EncBinary() + _ = yym978 if false { } else { r.EncodeInt(int64(x.Succeeded)) @@ -10636,23 +11376,23 @@ func (x *JobStatus) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeInt(0) } } else { - if yyq887[4] { + if yyq964[4] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("succeeded")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym902 := z.EncBinary() - _ = yym902 + yym979 := z.EncBinary() + _ = yym979 if false { } else { r.EncodeInt(int64(x.Succeeded)) } } } - if yyr887 || yy2arr887 { + if yyr964 || yy2arr964 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq887[5] { - yym904 := z.EncBinary() - _ = yym904 + if yyq964[5] { + yym981 := z.EncBinary() + _ = yym981 if false { } else { r.EncodeInt(int64(x.Failed)) @@ -10661,19 +11401,19 @@ func (x *JobStatus) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeInt(0) } } else { - if yyq887[5] { + if yyq964[5] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("failed")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym905 := z.EncBinary() - _ = yym905 + yym982 := z.EncBinary() + _ = yym982 if false { } else { r.EncodeInt(int64(x.Failed)) } } } - if yyr887 || yy2arr887 { + if yyr964 || yy2arr964 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -10686,25 +11426,25 @@ func (x *JobStatus) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym906 := z.DecBinary() - _ = yym906 + yym983 := z.DecBinary() + _ = yym983 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct907 := r.ContainerType() - if yyct907 == codecSelferValueTypeMap1234 { - yyl907 := r.ReadMapStart() - if yyl907 == 0 { + yyct984 := r.ContainerType() + if yyct984 == codecSelferValueTypeMap1234 { + yyl984 := r.ReadMapStart() + if yyl984 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl907, d) + x.codecDecodeSelfFromMap(yyl984, d) } - } else if yyct907 == codecSelferValueTypeArray1234 { - yyl907 := r.ReadArrayStart() - if yyl907 == 0 { + } else if yyct984 == codecSelferValueTypeArray1234 { + yyl984 := r.ReadArrayStart() + if yyl984 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl907, d) + x.codecDecodeSelfFromArray(yyl984, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -10716,12 +11456,12 @@ func (x *JobStatus) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys908Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys908Slc - var yyhl908 bool = l >= 0 - for yyj908 := 0; ; yyj908++ { - if yyhl908 { - if yyj908 >= l { + var yys985Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys985Slc + var yyhl985 bool = l >= 0 + for yyj985 := 0; ; yyj985++ { + if yyhl985 { + if yyj985 >= l { break } } else { @@ -10730,20 +11470,20 @@ func (x *JobStatus) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys908Slc = r.DecodeBytes(yys908Slc, true, true) - yys908 := string(yys908Slc) + yys985Slc = r.DecodeBytes(yys985Slc, true, true) + yys985 := string(yys985Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys908 { + switch yys985 { case "conditions": if r.TryDecodeAsNil() { x.Conditions = nil } else { - yyv909 := &x.Conditions - yym910 := z.DecBinary() - _ = yym910 + yyv986 := &x.Conditions + yym987 := z.DecBinary() + _ = yym987 if false { } else { - h.decSliceJobCondition((*[]JobCondition)(yyv909), d) + h.decSliceJobCondition((*[]JobCondition)(yyv986), d) } } case "startTime": @@ -10755,13 +11495,13 @@ func (x *JobStatus) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { if x.StartTime == nil { x.StartTime = new(pkg1_unversioned.Time) } - yym912 := z.DecBinary() - _ = yym912 + yym989 := z.DecBinary() + _ = yym989 if false { } else if z.HasExtensions() && z.DecExt(x.StartTime) { - } else if yym912 { + } else if yym989 { z.DecBinaryUnmarshal(x.StartTime) - } else if !yym912 && z.IsJSONHandle() { + } else if !yym989 && z.IsJSONHandle() { z.DecJSONUnmarshal(x.StartTime) } else { z.DecFallback(x.StartTime, false) @@ -10776,13 +11516,13 @@ func (x *JobStatus) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { if x.CompletionTime == nil { x.CompletionTime = new(pkg1_unversioned.Time) } - yym914 := z.DecBinary() - _ = yym914 + yym991 := z.DecBinary() + _ = yym991 if false { } else if z.HasExtensions() && z.DecExt(x.CompletionTime) { - } else if yym914 { + } else if yym991 { z.DecBinaryUnmarshal(x.CompletionTime) - } else if !yym914 && z.IsJSONHandle() { + } else if !yym991 && z.IsJSONHandle() { z.DecJSONUnmarshal(x.CompletionTime) } else { z.DecFallback(x.CompletionTime, false) @@ -10807,9 +11547,9 @@ func (x *JobStatus) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { x.Failed = int32(r.DecodeInt(32)) } default: - z.DecStructFieldNotFound(-1, yys908) - } // end switch yys908 - } // end for yyj908 + z.DecStructFieldNotFound(-1, yys985) + } // end switch yys985 + } // end for yyj985 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -10817,16 +11557,16 @@ func (x *JobStatus) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj918 int - var yyb918 bool - var yyhl918 bool = l >= 0 - yyj918++ - if yyhl918 { - yyb918 = yyj918 > l + var yyj995 int + var yyb995 bool + var yyhl995 bool = l >= 0 + yyj995++ + if yyhl995 { + yyb995 = yyj995 > l } else { - yyb918 = r.CheckBreak() + yyb995 = r.CheckBreak() } - if yyb918 { + if yyb995 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -10834,21 +11574,21 @@ func (x *JobStatus) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.Conditions = nil } else { - yyv919 := &x.Conditions - yym920 := z.DecBinary() - _ = yym920 + yyv996 := &x.Conditions + yym997 := z.DecBinary() + _ = yym997 if false { } else { - h.decSliceJobCondition((*[]JobCondition)(yyv919), d) + h.decSliceJobCondition((*[]JobCondition)(yyv996), d) } } - yyj918++ - if yyhl918 { - yyb918 = yyj918 > l + yyj995++ + if yyhl995 { + yyb995 = yyj995 > l } else { - yyb918 = r.CheckBreak() + yyb995 = r.CheckBreak() } - if yyb918 { + if yyb995 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -10861,25 +11601,25 @@ func (x *JobStatus) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if x.StartTime == nil { x.StartTime = new(pkg1_unversioned.Time) } - yym922 := z.DecBinary() - _ = yym922 + yym999 := z.DecBinary() + _ = yym999 if false { } else if z.HasExtensions() && z.DecExt(x.StartTime) { - } else if yym922 { + } else if yym999 { z.DecBinaryUnmarshal(x.StartTime) - } else if !yym922 && z.IsJSONHandle() { + } else if !yym999 && z.IsJSONHandle() { z.DecJSONUnmarshal(x.StartTime) } else { z.DecFallback(x.StartTime, false) } } - yyj918++ - if yyhl918 { - yyb918 = yyj918 > l + yyj995++ + if yyhl995 { + yyb995 = yyj995 > l } else { - yyb918 = r.CheckBreak() + yyb995 = r.CheckBreak() } - if yyb918 { + if yyb995 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -10892,25 +11632,25 @@ func (x *JobStatus) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if x.CompletionTime == nil { x.CompletionTime = new(pkg1_unversioned.Time) } - yym924 := z.DecBinary() - _ = yym924 + yym1001 := z.DecBinary() + _ = yym1001 if false { } else if z.HasExtensions() && z.DecExt(x.CompletionTime) { - } else if yym924 { + } else if yym1001 { z.DecBinaryUnmarshal(x.CompletionTime) - } else if !yym924 && z.IsJSONHandle() { + } else if !yym1001 && z.IsJSONHandle() { z.DecJSONUnmarshal(x.CompletionTime) } else { z.DecFallback(x.CompletionTime, false) } } - yyj918++ - if yyhl918 { - yyb918 = yyj918 > l + yyj995++ + if yyhl995 { + yyb995 = yyj995 > l } else { - yyb918 = r.CheckBreak() + yyb995 = r.CheckBreak() } - if yyb918 { + if yyb995 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -10920,13 +11660,13 @@ func (x *JobStatus) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.Active = int32(r.DecodeInt(32)) } - yyj918++ - if yyhl918 { - yyb918 = yyj918 > l + yyj995++ + if yyhl995 { + yyb995 = yyj995 > l } else { - yyb918 = r.CheckBreak() + yyb995 = r.CheckBreak() } - if yyb918 { + if yyb995 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -10936,13 +11676,13 @@ func (x *JobStatus) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.Succeeded = int32(r.DecodeInt(32)) } - yyj918++ - if yyhl918 { - yyb918 = yyj918 > l + yyj995++ + if yyhl995 { + yyb995 = yyj995 > l } else { - yyb918 = r.CheckBreak() + yyb995 = r.CheckBreak() } - if yyb918 { + if yyb995 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -10953,17 +11693,17 @@ func (x *JobStatus) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { x.Failed = int32(r.DecodeInt(32)) } for { - yyj918++ - if yyhl918 { - yyb918 = yyj918 > l + yyj995++ + if yyhl995 { + yyb995 = yyj995 > l } else { - yyb918 = r.CheckBreak() + yyb995 = r.CheckBreak() } - if yyb918 { + if yyb995 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj918-1, "") + z.DecStructFieldNotFound(yyj995-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -10972,8 +11712,8 @@ func (x JobConditionType) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r - yym928 := z.EncBinary() - _ = yym928 + yym1005 := z.EncBinary() + _ = yym1005 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { @@ -10985,8 +11725,8 @@ func (x *JobConditionType) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym929 := z.DecBinary() - _ = yym929 + yym1006 := z.DecBinary() + _ = yym1006 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { @@ -11001,34 +11741,34 @@ func (x *JobCondition) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym930 := z.EncBinary() - _ = yym930 + yym1007 := z.EncBinary() + _ = yym1007 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - 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 { + yysep1008 := !z.EncBinary() + yy2arr1008 := z.EncBasicHandle().StructToArray + var yyq1008 [6]bool + _, _, _ = yysep1008, yyq1008, yy2arr1008 + const yyr1008 bool = false + yyq1008[2] = true + yyq1008[3] = true + yyq1008[4] = x.Reason != "" + yyq1008[5] = x.Message != "" + var yynn1008 int + if yyr1008 || yy2arr1008 { r.EncodeArrayStart(6) } else { - yynn931 = 2 - for _, b := range yyq931 { + yynn1008 = 2 + for _, b := range yyq1008 { if b { - yynn931++ + yynn1008++ } } - r.EncodeMapStart(yynn931) - yynn931 = 0 + r.EncodeMapStart(yynn1008) + yynn1008 = 0 } - if yyr931 || yy2arr931 { + if yyr1008 || yy2arr1008 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) x.Type.CodecEncodeSelf(e) } else { @@ -11037,10 +11777,10 @@ func (x *JobCondition) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapValue1234) x.Type.CodecEncodeSelf(e) } - if yyr931 || yy2arr931 { + if yyr1008 || yy2arr1008 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym934 := z.EncBinary() - _ = yym934 + yym1011 := z.EncBinary() + _ = yym1011 if false { } else if z.HasExtensions() && z.EncExt(x.Status) { } else { @@ -11050,93 +11790,93 @@ func (x *JobCondition) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("status")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym935 := z.EncBinary() - _ = yym935 + yym1012 := z.EncBinary() + _ = yym1012 if false { } else if z.HasExtensions() && z.EncExt(x.Status) { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Status)) } } - if yyr931 || yy2arr931 { + if yyr1008 || yy2arr1008 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq931[2] { - yy937 := &x.LastProbeTime - yym938 := z.EncBinary() - _ = yym938 + if yyq1008[2] { + yy1014 := &x.LastProbeTime + yym1015 := z.EncBinary() + _ = yym1015 if false { - } else if z.HasExtensions() && z.EncExt(yy937) { - } else if yym938 { - z.EncBinaryMarshal(yy937) - } else if !yym938 && z.IsJSONHandle() { - z.EncJSONMarshal(yy937) + } else if z.HasExtensions() && z.EncExt(yy1014) { + } else if yym1015 { + z.EncBinaryMarshal(yy1014) + } else if !yym1015 && z.IsJSONHandle() { + z.EncJSONMarshal(yy1014) } else { - z.EncFallback(yy937) + z.EncFallback(yy1014) } } else { r.EncodeNil() } } else { - if yyq931[2] { + if yyq1008[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("lastProbeTime")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy939 := &x.LastProbeTime - yym940 := z.EncBinary() - _ = yym940 + yy1016 := &x.LastProbeTime + yym1017 := z.EncBinary() + _ = yym1017 if false { - } else if z.HasExtensions() && z.EncExt(yy939) { - } else if yym940 { - z.EncBinaryMarshal(yy939) - } else if !yym940 && z.IsJSONHandle() { - z.EncJSONMarshal(yy939) + } else if z.HasExtensions() && z.EncExt(yy1016) { + } else if yym1017 { + z.EncBinaryMarshal(yy1016) + } else if !yym1017 && z.IsJSONHandle() { + z.EncJSONMarshal(yy1016) } else { - z.EncFallback(yy939) + z.EncFallback(yy1016) } } } - if yyr931 || yy2arr931 { + if yyr1008 || yy2arr1008 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq931[3] { - yy942 := &x.LastTransitionTime - yym943 := z.EncBinary() - _ = yym943 + if yyq1008[3] { + yy1019 := &x.LastTransitionTime + yym1020 := z.EncBinary() + _ = yym1020 if false { - } else if z.HasExtensions() && z.EncExt(yy942) { - } else if yym943 { - z.EncBinaryMarshal(yy942) - } else if !yym943 && z.IsJSONHandle() { - z.EncJSONMarshal(yy942) + } else if z.HasExtensions() && z.EncExt(yy1019) { + } else if yym1020 { + z.EncBinaryMarshal(yy1019) + } else if !yym1020 && z.IsJSONHandle() { + z.EncJSONMarshal(yy1019) } else { - z.EncFallback(yy942) + z.EncFallback(yy1019) } } else { r.EncodeNil() } } else { - if yyq931[3] { + if yyq1008[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("lastTransitionTime")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy944 := &x.LastTransitionTime - yym945 := z.EncBinary() - _ = yym945 + yy1021 := &x.LastTransitionTime + yym1022 := z.EncBinary() + _ = yym1022 if false { - } else if z.HasExtensions() && z.EncExt(yy944) { - } else if yym945 { - z.EncBinaryMarshal(yy944) - } else if !yym945 && z.IsJSONHandle() { - z.EncJSONMarshal(yy944) + } else if z.HasExtensions() && z.EncExt(yy1021) { + } else if yym1022 { + z.EncBinaryMarshal(yy1021) + } else if !yym1022 && z.IsJSONHandle() { + z.EncJSONMarshal(yy1021) } else { - z.EncFallback(yy944) + z.EncFallback(yy1021) } } } - if yyr931 || yy2arr931 { + if yyr1008 || yy2arr1008 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq931[4] { - yym947 := z.EncBinary() - _ = yym947 + if yyq1008[4] { + yym1024 := z.EncBinary() + _ = yym1024 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Reason)) @@ -11145,23 +11885,23 @@ func (x *JobCondition) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq931[4] { + if yyq1008[4] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("reason")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym948 := z.EncBinary() - _ = yym948 + yym1025 := z.EncBinary() + _ = yym1025 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Reason)) } } } - if yyr931 || yy2arr931 { + if yyr1008 || yy2arr1008 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq931[5] { - yym950 := z.EncBinary() - _ = yym950 + if yyq1008[5] { + yym1027 := z.EncBinary() + _ = yym1027 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Message)) @@ -11170,19 +11910,19 @@ func (x *JobCondition) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq931[5] { + if yyq1008[5] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("message")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym951 := z.EncBinary() - _ = yym951 + yym1028 := z.EncBinary() + _ = yym1028 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Message)) } } } - if yyr931 || yy2arr931 { + if yyr1008 || yy2arr1008 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -11195,25 +11935,25 @@ func (x *JobCondition) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym952 := z.DecBinary() - _ = yym952 + yym1029 := z.DecBinary() + _ = yym1029 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct953 := r.ContainerType() - if yyct953 == codecSelferValueTypeMap1234 { - yyl953 := r.ReadMapStart() - if yyl953 == 0 { + yyct1030 := r.ContainerType() + if yyct1030 == codecSelferValueTypeMap1234 { + yyl1030 := r.ReadMapStart() + if yyl1030 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl953, d) + x.codecDecodeSelfFromMap(yyl1030, d) } - } else if yyct953 == codecSelferValueTypeArray1234 { - yyl953 := r.ReadArrayStart() - if yyl953 == 0 { + } else if yyct1030 == codecSelferValueTypeArray1234 { + yyl1030 := r.ReadArrayStart() + if yyl1030 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl953, d) + x.codecDecodeSelfFromArray(yyl1030, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -11225,12 +11965,12 @@ func (x *JobCondition) 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 { + var yys1031Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys1031Slc + var yyhl1031 bool = l >= 0 + for yyj1031 := 0; ; yyj1031++ { + if yyhl1031 { + if yyj1031 >= l { break } } else { @@ -11239,10 +11979,10 @@ func (x *JobCondition) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys954Slc = r.DecodeBytes(yys954Slc, true, true) - yys954 := string(yys954Slc) + yys1031Slc = r.DecodeBytes(yys1031Slc, true, true) + yys1031 := string(yys1031Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys954 { + switch yys1031 { case "type": if r.TryDecodeAsNil() { x.Type = "" @@ -11259,34 +11999,34 @@ func (x *JobCondition) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.LastProbeTime = pkg1_unversioned.Time{} } else { - yyv957 := &x.LastProbeTime - yym958 := z.DecBinary() - _ = yym958 + yyv1034 := &x.LastProbeTime + yym1035 := z.DecBinary() + _ = yym1035 if false { - } else if z.HasExtensions() && z.DecExt(yyv957) { - } else if yym958 { - z.DecBinaryUnmarshal(yyv957) - } else if !yym958 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv957) + } else if z.HasExtensions() && z.DecExt(yyv1034) { + } else if yym1035 { + z.DecBinaryUnmarshal(yyv1034) + } else if !yym1035 && z.IsJSONHandle() { + z.DecJSONUnmarshal(yyv1034) } else { - z.DecFallback(yyv957, false) + z.DecFallback(yyv1034, false) } } case "lastTransitionTime": if r.TryDecodeAsNil() { x.LastTransitionTime = pkg1_unversioned.Time{} } else { - yyv959 := &x.LastTransitionTime - yym960 := z.DecBinary() - _ = yym960 + yyv1036 := &x.LastTransitionTime + yym1037 := z.DecBinary() + _ = yym1037 if false { - } else if z.HasExtensions() && z.DecExt(yyv959) { - } else if yym960 { - z.DecBinaryUnmarshal(yyv959) - } else if !yym960 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv959) + } else if z.HasExtensions() && z.DecExt(yyv1036) { + } else if yym1037 { + z.DecBinaryUnmarshal(yyv1036) + } else if !yym1037 && z.IsJSONHandle() { + z.DecJSONUnmarshal(yyv1036) } else { - z.DecFallback(yyv959, false) + z.DecFallback(yyv1036, false) } } case "reason": @@ -11302,9 +12042,9 @@ func (x *JobCondition) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { x.Message = string(r.DecodeString()) } default: - z.DecStructFieldNotFound(-1, yys954) - } // end switch yys954 - } // end for yyj954 + z.DecStructFieldNotFound(-1, yys1031) + } // end switch yys1031 + } // end for yyj1031 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -11312,16 +12052,16 @@ func (x *JobCondition) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj963 int - var yyb963 bool - var yyhl963 bool = l >= 0 - yyj963++ - if yyhl963 { - yyb963 = yyj963 > l + var yyj1040 int + var yyb1040 bool + var yyhl1040 bool = l >= 0 + yyj1040++ + if yyhl1040 { + yyb1040 = yyj1040 > l } else { - yyb963 = r.CheckBreak() + yyb1040 = r.CheckBreak() } - if yyb963 { + if yyb1040 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -11331,13 +12071,13 @@ func (x *JobCondition) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.Type = JobConditionType(r.DecodeString()) } - yyj963++ - if yyhl963 { - yyb963 = yyj963 > l + yyj1040++ + if yyhl1040 { + yyb1040 = yyj1040 > l } else { - yyb963 = r.CheckBreak() + yyb1040 = r.CheckBreak() } - if yyb963 { + if yyb1040 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -11347,13 +12087,13 @@ func (x *JobCondition) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.Status = pkg2_v1.ConditionStatus(r.DecodeString()) } - yyj963++ - if yyhl963 { - yyb963 = yyj963 > l + yyj1040++ + if yyhl1040 { + yyb1040 = yyj1040 > l } else { - yyb963 = r.CheckBreak() + yyb1040 = r.CheckBreak() } - if yyb963 { + if yyb1040 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -11361,26 +12101,26 @@ func (x *JobCondition) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.LastProbeTime = pkg1_unversioned.Time{} } else { - yyv966 := &x.LastProbeTime - yym967 := z.DecBinary() - _ = yym967 + yyv1043 := &x.LastProbeTime + yym1044 := z.DecBinary() + _ = yym1044 if false { - } else if z.HasExtensions() && z.DecExt(yyv966) { - } else if yym967 { - z.DecBinaryUnmarshal(yyv966) - } else if !yym967 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv966) + } else if z.HasExtensions() && z.DecExt(yyv1043) { + } else if yym1044 { + z.DecBinaryUnmarshal(yyv1043) + } else if !yym1044 && z.IsJSONHandle() { + z.DecJSONUnmarshal(yyv1043) } else { - z.DecFallback(yyv966, false) + z.DecFallback(yyv1043, false) } } - yyj963++ - if yyhl963 { - yyb963 = yyj963 > l + yyj1040++ + if yyhl1040 { + yyb1040 = yyj1040 > l } else { - yyb963 = r.CheckBreak() + yyb1040 = r.CheckBreak() } - if yyb963 { + if yyb1040 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -11388,26 +12128,26 @@ func (x *JobCondition) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.LastTransitionTime = pkg1_unversioned.Time{} } else { - yyv968 := &x.LastTransitionTime - yym969 := z.DecBinary() - _ = yym969 + yyv1045 := &x.LastTransitionTime + yym1046 := z.DecBinary() + _ = yym1046 if false { - } else if z.HasExtensions() && z.DecExt(yyv968) { - } else if yym969 { - z.DecBinaryUnmarshal(yyv968) - } else if !yym969 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv968) + } else if z.HasExtensions() && z.DecExt(yyv1045) { + } else if yym1046 { + z.DecBinaryUnmarshal(yyv1045) + } else if !yym1046 && z.IsJSONHandle() { + z.DecJSONUnmarshal(yyv1045) } else { - z.DecFallback(yyv968, false) + z.DecFallback(yyv1045, false) } } - yyj963++ - if yyhl963 { - yyb963 = yyj963 > l + yyj1040++ + if yyhl1040 { + yyb1040 = yyj1040 > l } else { - yyb963 = r.CheckBreak() + yyb1040 = r.CheckBreak() } - if yyb963 { + if yyb1040 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -11417,13 +12157,13 @@ func (x *JobCondition) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.Reason = string(r.DecodeString()) } - yyj963++ - if yyhl963 { - yyb963 = yyj963 > l + yyj1040++ + if yyhl1040 { + yyb1040 = yyj1040 > l } else { - yyb963 = r.CheckBreak() + yyb1040 = r.CheckBreak() } - if yyb963 { + if yyb1040 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -11434,17 +12174,17 @@ func (x *JobCondition) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { x.Message = string(r.DecodeString()) } for { - yyj963++ - if yyhl963 { - yyb963 = yyj963 > l + yyj1040++ + if yyhl1040 { + yyb1040 = yyj1040 > l } else { - yyb963 = r.CheckBreak() + yyb1040 = r.CheckBreak() } - if yyb963 { + if yyb1040 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj963-1, "") + z.DecStructFieldNotFound(yyj1040-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -11456,39 +12196,39 @@ func (x *Ingress) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym972 := z.EncBinary() - _ = yym972 + yym1049 := z.EncBinary() + _ = yym1049 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - 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 { + yysep1050 := !z.EncBinary() + yy2arr1050 := z.EncBasicHandle().StructToArray + var yyq1050 [5]bool + _, _, _ = yysep1050, yyq1050, yy2arr1050 + const yyr1050 bool = false + yyq1050[0] = x.Kind != "" + yyq1050[1] = x.APIVersion != "" + yyq1050[2] = true + yyq1050[3] = true + yyq1050[4] = true + var yynn1050 int + if yyr1050 || yy2arr1050 { r.EncodeArrayStart(5) } else { - yynn973 = 0 - for _, b := range yyq973 { + yynn1050 = 0 + for _, b := range yyq1050 { if b { - yynn973++ + yynn1050++ } } - r.EncodeMapStart(yynn973) - yynn973 = 0 + r.EncodeMapStart(yynn1050) + yynn1050 = 0 } - if yyr973 || yy2arr973 { + if yyr1050 || yy2arr1050 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq973[0] { - yym975 := z.EncBinary() - _ = yym975 + if yyq1050[0] { + yym1052 := z.EncBinary() + _ = yym1052 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) @@ -11497,23 +12237,23 @@ func (x *Ingress) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq973[0] { + if yyq1050[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym976 := z.EncBinary() - _ = yym976 + yym1053 := z.EncBinary() + _ = yym1053 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } - if yyr973 || yy2arr973 { + if yyr1050 || yy2arr1050 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq973[1] { - yym978 := z.EncBinary() - _ = yym978 + if yyq1050[1] { + yym1055 := z.EncBinary() + _ = yym1055 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) @@ -11522,70 +12262,70 @@ func (x *Ingress) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq973[1] { + if yyq1050[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym979 := z.EncBinary() - _ = yym979 + yym1056 := z.EncBinary() + _ = yym1056 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } - if yyr973 || yy2arr973 { + if yyr1050 || yy2arr1050 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq973[2] { - yy981 := &x.ObjectMeta - yy981.CodecEncodeSelf(e) + if yyq1050[2] { + yy1058 := &x.ObjectMeta + yy1058.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { - if yyq973[2] { + if yyq1050[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy982 := &x.ObjectMeta - yy982.CodecEncodeSelf(e) + yy1059 := &x.ObjectMeta + yy1059.CodecEncodeSelf(e) } } - if yyr973 || yy2arr973 { + if yyr1050 || yy2arr1050 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq973[3] { - yy984 := &x.Spec - yy984.CodecEncodeSelf(e) + if yyq1050[3] { + yy1061 := &x.Spec + yy1061.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { - if yyq973[3] { + if yyq1050[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("spec")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy985 := &x.Spec - yy985.CodecEncodeSelf(e) + yy1062 := &x.Spec + yy1062.CodecEncodeSelf(e) } } - if yyr973 || yy2arr973 { + if yyr1050 || yy2arr1050 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq973[4] { - yy987 := &x.Status - yy987.CodecEncodeSelf(e) + if yyq1050[4] { + yy1064 := &x.Status + yy1064.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { - if yyq973[4] { + if yyq1050[4] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("status")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy988 := &x.Status - yy988.CodecEncodeSelf(e) + yy1065 := &x.Status + yy1065.CodecEncodeSelf(e) } } - if yyr973 || yy2arr973 { + if yyr1050 || yy2arr1050 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -11595,960 +12335,6 @@ func (x *Ingress) CodecEncodeSelf(e *codec1978.Encoder) { } func (x *Ingress) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - yym989 := z.DecBinary() - _ = yym989 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - yyct990 := r.ContainerType() - if yyct990 == codecSelferValueTypeMap1234 { - yyl990 := r.ReadMapStart() - if yyl990 == 0 { - z.DecSendContainerState(codecSelfer_containerMapEnd1234) - } else { - x.codecDecodeSelfFromMap(yyl990, d) - } - } else if yyct990 == codecSelferValueTypeArray1234 { - yyl990 := r.ReadArrayStart() - if yyl990 == 0 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - x.codecDecodeSelfFromArray(yyl990, 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 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 { - if r.CheckBreak() { - break - } - } - z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys991Slc = r.DecodeBytes(yys991Slc, true, true) - yys991 := string(yys991Slc) - z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys991 { - case "kind": - if 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 { - yyv994 := &x.ObjectMeta - yyv994.CodecDecodeSelf(d) - } - case "spec": - if r.TryDecodeAsNil() { - x.Spec = IngressSpec{} - } else { - yyv995 := &x.Spec - yyv995.CodecDecodeSelf(d) - } - case "status": - if r.TryDecodeAsNil() { - x.Status = IngressStatus{} - } else { - yyv996 := &x.Status - yyv996.CodecDecodeSelf(d) - } - default: - z.DecStructFieldNotFound(-1, yys991) - } // end switch yys991 - } // end for yyj991 - 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 yyj997 int - var yyb997 bool - var yyhl997 bool = l >= 0 - yyj997++ - if yyhl997 { - yyb997 = yyj997 > l - } else { - yyb997 = r.CheckBreak() - } - if yyb997 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Kind = "" - } else { - x.Kind = string(r.DecodeString()) - } - yyj997++ - if yyhl997 { - yyb997 = yyj997 > l - } else { - yyb997 = r.CheckBreak() - } - if yyb997 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.APIVersion = "" - } else { - x.APIVersion = string(r.DecodeString()) - } - yyj997++ - if yyhl997 { - yyb997 = yyj997 > l - } else { - yyb997 = r.CheckBreak() - } - if yyb997 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.ObjectMeta = pkg2_v1.ObjectMeta{} - } else { - yyv1000 := &x.ObjectMeta - yyv1000.CodecDecodeSelf(d) - } - yyj997++ - if yyhl997 { - yyb997 = yyj997 > l - } else { - yyb997 = r.CheckBreak() - } - if yyb997 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Spec = IngressSpec{} - } else { - yyv1001 := &x.Spec - yyv1001.CodecDecodeSelf(d) - } - yyj997++ - if yyhl997 { - yyb997 = yyj997 > l - } else { - yyb997 = r.CheckBreak() - } - if yyb997 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Status = IngressStatus{} - } else { - yyv1002 := &x.Status - yyv1002.CodecDecodeSelf(d) - } - for { - yyj997++ - if yyhl997 { - yyb997 = yyj997 > l - } else { - yyb997 = r.CheckBreak() - } - if yyb997 { - break - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj997-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 { - yym1003 := z.EncBinary() - _ = yym1003 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - 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 { - 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.Kind)) - } - } else { - r.EncodeString(codecSelferC_UTF81234, "") - } - } else { - if yyq1004[0] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("kind")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym1007 := z.EncBinary() - _ = yym1007 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) - } - } - } - if yyr1004 || yy2arr1004 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1004[1] { - yym1009 := z.EncBinary() - _ = yym1009 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) - } - } else { - r.EncodeString(codecSelferC_UTF81234, "") - } - } else { - if yyq1004[1] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym1010 := z.EncBinary() - _ = yym1010 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) - } - } - } - if yyr1004 || yy2arr1004 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1004[2] { - yy1012 := &x.ListMeta - yym1013 := z.EncBinary() - _ = yym1013 - if false { - } else if z.HasExtensions() && z.EncExt(yy1012) { - } else { - z.EncFallback(yy1012) - } - } else { - r.EncodeNil() - } - } else { - if yyq1004[2] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("metadata")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy1014 := &x.ListMeta - yym1015 := z.EncBinary() - _ = yym1015 - if false { - } else if z.HasExtensions() && z.EncExt(yy1014) { - } else { - z.EncFallback(yy1014) - } - } - } - if yyr1004 || yy2arr1004 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if x.Items == nil { - r.EncodeNil() - } else { - yym1017 := z.EncBinary() - _ = yym1017 - 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 { - yym1018 := z.EncBinary() - _ = yym1018 - if false { - } else { - h.encSliceIngress(([]Ingress)(x.Items), e) - } - } - } - if yyr1004 || yy2arr1004 { - 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 - yym1019 := z.DecBinary() - _ = yym1019 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - yyct1020 := r.ContainerType() - if yyct1020 == codecSelferValueTypeMap1234 { - yyl1020 := r.ReadMapStart() - if yyl1020 == 0 { - z.DecSendContainerState(codecSelfer_containerMapEnd1234) - } else { - x.codecDecodeSelfFromMap(yyl1020, d) - } - } else if yyct1020 == codecSelferValueTypeArray1234 { - yyl1020 := r.ReadArrayStart() - if yyl1020 == 0 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - x.codecDecodeSelfFromArray(yyl1020, 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 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 { - if r.CheckBreak() { - break - } - } - z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys1021Slc = r.DecodeBytes(yys1021Slc, true, true) - yys1021 := string(yys1021Slc) - z.DecSendContainerState(codecSelfer_containerMapValue1234) - 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 { - yyv1024 := &x.ListMeta - yym1025 := z.DecBinary() - _ = yym1025 - if false { - } else if z.HasExtensions() && z.DecExt(yyv1024) { - } else { - z.DecFallback(yyv1024, false) - } - } - case "items": - if r.TryDecodeAsNil() { - x.Items = nil - } else { - yyv1026 := &x.Items - yym1027 := z.DecBinary() - _ = yym1027 - if false { - } else { - h.decSliceIngress((*[]Ingress)(yyv1026), d) - } - } - default: - z.DecStructFieldNotFound(-1, yys1021) - } // end switch yys1021 - } // end for yyj1021 - 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 yyj1028 int - var yyb1028 bool - var yyhl1028 bool = l >= 0 - yyj1028++ - if yyhl1028 { - yyb1028 = yyj1028 > l - } else { - yyb1028 = r.CheckBreak() - } - if yyb1028 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Kind = "" - } else { - x.Kind = string(r.DecodeString()) - } - yyj1028++ - if yyhl1028 { - yyb1028 = yyj1028 > l - } else { - yyb1028 = r.CheckBreak() - } - if yyb1028 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.APIVersion = "" - } else { - x.APIVersion = string(r.DecodeString()) - } - yyj1028++ - if yyhl1028 { - yyb1028 = yyj1028 > l - } else { - yyb1028 = r.CheckBreak() - } - if yyb1028 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.ListMeta = pkg1_unversioned.ListMeta{} - } else { - yyv1031 := &x.ListMeta - yym1032 := z.DecBinary() - _ = yym1032 - if false { - } else if z.HasExtensions() && z.DecExt(yyv1031) { - } else { - z.DecFallback(yyv1031, false) - } - } - yyj1028++ - if yyhl1028 { - yyb1028 = yyj1028 > l - } else { - yyb1028 = r.CheckBreak() - } - if yyb1028 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Items = nil - } else { - yyv1033 := &x.Items - yym1034 := z.DecBinary() - _ = yym1034 - if false { - } else { - h.decSliceIngress((*[]Ingress)(yyv1033), d) - } - } - for { - yyj1028++ - if yyhl1028 { - yyb1028 = yyj1028 > l - } else { - yyb1028 = r.CheckBreak() - } - if yyb1028 { - break - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj1028-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 { - yym1035 := z.EncBinary() - _ = yym1035 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - 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 { - yynn1036 = 0 - for _, b := range yyq1036 { - if b { - yynn1036++ - } - } - r.EncodeMapStart(yynn1036) - yynn1036 = 0 - } - if yyr1036 || yy2arr1036 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1036[0] { - if x.Backend == nil { - r.EncodeNil() - } else { - x.Backend.CodecEncodeSelf(e) - } - } else { - r.EncodeNil() - } - } else { - if yyq1036[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 yyr1036 || yy2arr1036 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1036[1] { - if x.TLS == nil { - r.EncodeNil() - } else { - yym1039 := z.EncBinary() - _ = yym1039 - if false { - } else { - h.encSliceIngressTLS(([]IngressTLS)(x.TLS), e) - } - } - } else { - r.EncodeNil() - } - } else { - if yyq1036[1] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("tls")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - if x.TLS == nil { - r.EncodeNil() - } else { - yym1040 := z.EncBinary() - _ = yym1040 - if false { - } else { - h.encSliceIngressTLS(([]IngressTLS)(x.TLS), e) - } - } - } - } - if yyr1036 || yy2arr1036 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1036[2] { - if x.Rules == nil { - r.EncodeNil() - } else { - yym1042 := z.EncBinary() - _ = yym1042 - if false { - } else { - h.encSliceIngressRule(([]IngressRule)(x.Rules), e) - } - } - } else { - r.EncodeNil() - } - } else { - if yyq1036[2] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("rules")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - if x.Rules == nil { - r.EncodeNil() - } else { - yym1043 := z.EncBinary() - _ = yym1043 - if false { - } else { - h.encSliceIngressRule(([]IngressRule)(x.Rules), e) - } - } - } - } - if yyr1036 || yy2arr1036 { - 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 - yym1044 := z.DecBinary() - _ = yym1044 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - yyct1045 := r.ContainerType() - if yyct1045 == codecSelferValueTypeMap1234 { - yyl1045 := r.ReadMapStart() - if yyl1045 == 0 { - z.DecSendContainerState(codecSelfer_containerMapEnd1234) - } else { - x.codecDecodeSelfFromMap(yyl1045, d) - } - } else if yyct1045 == codecSelferValueTypeArray1234 { - yyl1045 := r.ReadArrayStart() - if yyl1045 == 0 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - x.codecDecodeSelfFromArray(yyl1045, 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 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 { - if r.CheckBreak() { - break - } - } - z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys1046Slc = r.DecodeBytes(yys1046Slc, true, true) - yys1046 := string(yys1046Slc) - z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys1046 { - 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 { - yyv1048 := &x.TLS - yym1049 := z.DecBinary() - _ = yym1049 - if false { - } else { - h.decSliceIngressTLS((*[]IngressTLS)(yyv1048), d) - } - } - case "rules": - if r.TryDecodeAsNil() { - x.Rules = nil - } else { - yyv1050 := &x.Rules - yym1051 := z.DecBinary() - _ = yym1051 - if false { - } else { - h.decSliceIngressRule((*[]IngressRule)(yyv1050), d) - } - } - default: - z.DecStructFieldNotFound(-1, yys1046) - } // end switch yys1046 - } // end for yyj1046 - 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 yyj1052 int - var yyb1052 bool - var yyhl1052 bool = l >= 0 - yyj1052++ - if yyhl1052 { - yyb1052 = yyj1052 > l - } else { - yyb1052 = r.CheckBreak() - } - if yyb1052 { - 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) - } - yyj1052++ - if yyhl1052 { - yyb1052 = yyj1052 > l - } else { - yyb1052 = r.CheckBreak() - } - if yyb1052 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.TLS = nil - } else { - yyv1054 := &x.TLS - yym1055 := z.DecBinary() - _ = yym1055 - if false { - } else { - h.decSliceIngressTLS((*[]IngressTLS)(yyv1054), d) - } - } - yyj1052++ - if yyhl1052 { - yyb1052 = yyj1052 > l - } else { - yyb1052 = r.CheckBreak() - } - if yyb1052 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Rules = nil - } else { - yyv1056 := &x.Rules - yym1057 := z.DecBinary() - _ = yym1057 - if false { - } else { - h.decSliceIngressRule((*[]IngressRule)(yyv1056), d) - } - } - for { - yyj1052++ - if yyhl1052 { - yyb1052 = yyj1052 > l - } else { - yyb1052 = r.CheckBreak() - } - if yyb1052 { - break - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj1052-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 { - yym1058 := z.EncBinary() - _ = yym1058 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - 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 { - yynn1059 = 0 - for _, b := range yyq1059 { - if b { - yynn1059++ - } - } - r.EncodeMapStart(yynn1059) - yynn1059 = 0 - } - if yyr1059 || yy2arr1059 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1059[0] { - if x.Hosts == nil { - r.EncodeNil() - } else { - yym1061 := z.EncBinary() - _ = yym1061 - if false { - } else { - z.F.EncSliceStringV(x.Hosts, false, e) - } - } - } else { - r.EncodeNil() - } - } else { - if yyq1059[0] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("hosts")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - if x.Hosts == nil { - r.EncodeNil() - } else { - yym1062 := z.EncBinary() - _ = yym1062 - if false { - } else { - z.F.EncSliceStringV(x.Hosts, false, e) - } - } - } - } - if yyr1059 || yy2arr1059 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1059[1] { - yym1064 := z.EncBinary() - _ = yym1064 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.SecretName)) - } - } else { - r.EncodeString(codecSelferC_UTF81234, "") - } - } else { - if yyq1059[1] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("secretName")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym1065 := z.EncBinary() - _ = yym1065 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.SecretName)) - } - } - } - if yyr1059 || yy2arr1059 { - 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 @@ -12578,7 +12364,7 @@ func (x *IngressTLS) CodecDecodeSelf(d *codec1978.Decoder) { } } -func (x *IngressTLS) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { +func (x *Ingress) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r @@ -12600,16 +12386,970 @@ func (x *IngressTLS) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { yys1068 := string(yys1068Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys1068 { + case "kind": + if 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 { + yyv1071 := &x.ObjectMeta + yyv1071.CodecDecodeSelf(d) + } + case "spec": + if r.TryDecodeAsNil() { + x.Spec = IngressSpec{} + } else { + yyv1072 := &x.Spec + yyv1072.CodecDecodeSelf(d) + } + case "status": + if r.TryDecodeAsNil() { + x.Status = IngressStatus{} + } else { + yyv1073 := &x.Status + yyv1073.CodecDecodeSelf(d) + } + default: + z.DecStructFieldNotFound(-1, yys1068) + } // end switch yys1068 + } // end for yyj1068 + 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 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.Kind = "" + } else { + x.Kind = string(r.DecodeString()) + } + 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.APIVersion = "" + } else { + x.APIVersion = string(r.DecodeString()) + } + 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.ObjectMeta = pkg2_v1.ObjectMeta{} + } else { + yyv1077 := &x.ObjectMeta + yyv1077.CodecDecodeSelf(d) + } + 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.Spec = IngressSpec{} + } else { + yyv1078 := &x.Spec + yyv1078.CodecDecodeSelf(d) + } + 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.Status = IngressStatus{} + } else { + yyv1079 := &x.Status + yyv1079.CodecDecodeSelf(d) + } + 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 *IngressList) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + yym1080 := z.EncBinary() + _ = yym1080 + if false { + } else if z.HasExtensions() && z.EncExt(x) { + } else { + yysep1081 := !z.EncBinary() + yy2arr1081 := z.EncBasicHandle().StructToArray + var yyq1081 [4]bool + _, _, _ = yysep1081, yyq1081, yy2arr1081 + const yyr1081 bool = false + yyq1081[0] = x.Kind != "" + yyq1081[1] = x.APIVersion != "" + yyq1081[2] = true + var yynn1081 int + if yyr1081 || yy2arr1081 { + r.EncodeArrayStart(4) + } else { + yynn1081 = 1 + for _, b := range yyq1081 { + if b { + yynn1081++ + } + } + r.EncodeMapStart(yynn1081) + yynn1081 = 0 + } + if yyr1081 || yy2arr1081 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq1081[0] { + yym1083 := z.EncBinary() + _ = yym1083 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq1081[0] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("kind")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym1084 := z.EncBinary() + _ = yym1084 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + } + } + } + if yyr1081 || yy2arr1081 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq1081[1] { + yym1086 := z.EncBinary() + _ = yym1086 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq1081[1] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym1087 := z.EncBinary() + _ = yym1087 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + } + } + } + if yyr1081 || yy2arr1081 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq1081[2] { + yy1089 := &x.ListMeta + yym1090 := z.EncBinary() + _ = yym1090 + if false { + } else if z.HasExtensions() && z.EncExt(yy1089) { + } else { + z.EncFallback(yy1089) + } + } else { + r.EncodeNil() + } + } else { + if yyq1081[2] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("metadata")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yy1091 := &x.ListMeta + yym1092 := z.EncBinary() + _ = yym1092 + if false { + } else if z.HasExtensions() && z.EncExt(yy1091) { + } else { + z.EncFallback(yy1091) + } + } + } + if yyr1081 || yy2arr1081 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if x.Items == nil { + r.EncodeNil() + } else { + yym1094 := z.EncBinary() + _ = yym1094 + 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 { + yym1095 := z.EncBinary() + _ = yym1095 + if false { + } else { + h.encSliceIngress(([]Ingress)(x.Items), e) + } + } + } + if yyr1081 || yy2arr1081 { + 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 + yym1096 := z.DecBinary() + _ = yym1096 + if false { + } else if z.HasExtensions() && z.DecExt(x) { + } else { + yyct1097 := r.ContainerType() + if yyct1097 == codecSelferValueTypeMap1234 { + yyl1097 := r.ReadMapStart() + if yyl1097 == 0 { + z.DecSendContainerState(codecSelfer_containerMapEnd1234) + } else { + x.codecDecodeSelfFromMap(yyl1097, d) + } + } else if yyct1097 == codecSelferValueTypeArray1234 { + yyl1097 := r.ReadArrayStart() + if yyl1097 == 0 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + x.codecDecodeSelfFromArray(yyl1097, 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 yys1098Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys1098Slc + var yyhl1098 bool = l >= 0 + for yyj1098 := 0; ; yyj1098++ { + if yyhl1098 { + if yyj1098 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + z.DecSendContainerState(codecSelfer_containerMapKey1234) + yys1098Slc = r.DecodeBytes(yys1098Slc, true, true) + yys1098 := string(yys1098Slc) + z.DecSendContainerState(codecSelfer_containerMapValue1234) + switch yys1098 { + case "kind": + if 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 { + yyv1101 := &x.ListMeta + yym1102 := z.DecBinary() + _ = yym1102 + if false { + } else if z.HasExtensions() && z.DecExt(yyv1101) { + } else { + z.DecFallback(yyv1101, false) + } + } + case "items": + if r.TryDecodeAsNil() { + x.Items = nil + } else { + yyv1103 := &x.Items + yym1104 := z.DecBinary() + _ = yym1104 + if false { + } else { + h.decSliceIngress((*[]Ingress)(yyv1103), d) + } + } + default: + z.DecStructFieldNotFound(-1, yys1098) + } // end switch yys1098 + } // end for yyj1098 + 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 yyj1105 int + var yyb1105 bool + var yyhl1105 bool = l >= 0 + yyj1105++ + if yyhl1105 { + yyb1105 = yyj1105 > l + } else { + yyb1105 = r.CheckBreak() + } + if yyb1105 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Kind = "" + } else { + x.Kind = string(r.DecodeString()) + } + yyj1105++ + if yyhl1105 { + yyb1105 = yyj1105 > l + } else { + yyb1105 = r.CheckBreak() + } + if yyb1105 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.APIVersion = "" + } else { + x.APIVersion = string(r.DecodeString()) + } + yyj1105++ + if yyhl1105 { + yyb1105 = yyj1105 > l + } else { + yyb1105 = r.CheckBreak() + } + if yyb1105 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.ListMeta = pkg1_unversioned.ListMeta{} + } else { + yyv1108 := &x.ListMeta + yym1109 := z.DecBinary() + _ = yym1109 + if false { + } else if z.HasExtensions() && z.DecExt(yyv1108) { + } else { + z.DecFallback(yyv1108, false) + } + } + yyj1105++ + if yyhl1105 { + yyb1105 = yyj1105 > l + } else { + yyb1105 = r.CheckBreak() + } + if yyb1105 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Items = nil + } else { + yyv1110 := &x.Items + yym1111 := z.DecBinary() + _ = yym1111 + if false { + } else { + h.decSliceIngress((*[]Ingress)(yyv1110), d) + } + } + for { + yyj1105++ + if yyhl1105 { + yyb1105 = yyj1105 > l + } else { + yyb1105 = r.CheckBreak() + } + if yyb1105 { + break + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + z.DecStructFieldNotFound(yyj1105-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 { + yym1112 := z.EncBinary() + _ = yym1112 + if false { + } else if z.HasExtensions() && z.EncExt(x) { + } else { + yysep1113 := !z.EncBinary() + yy2arr1113 := z.EncBasicHandle().StructToArray + var yyq1113 [3]bool + _, _, _ = yysep1113, yyq1113, yy2arr1113 + const yyr1113 bool = false + yyq1113[0] = x.Backend != nil + yyq1113[1] = len(x.TLS) != 0 + yyq1113[2] = len(x.Rules) != 0 + var yynn1113 int + if yyr1113 || yy2arr1113 { + r.EncodeArrayStart(3) + } else { + yynn1113 = 0 + for _, b := range yyq1113 { + if b { + yynn1113++ + } + } + r.EncodeMapStart(yynn1113) + yynn1113 = 0 + } + if yyr1113 || yy2arr1113 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq1113[0] { + if x.Backend == nil { + r.EncodeNil() + } else { + x.Backend.CodecEncodeSelf(e) + } + } else { + r.EncodeNil() + } + } else { + if yyq1113[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 yyr1113 || yy2arr1113 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq1113[1] { + if x.TLS == nil { + r.EncodeNil() + } else { + yym1116 := z.EncBinary() + _ = yym1116 + if false { + } else { + h.encSliceIngressTLS(([]IngressTLS)(x.TLS), e) + } + } + } else { + r.EncodeNil() + } + } else { + if yyq1113[1] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("tls")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + if x.TLS == nil { + r.EncodeNil() + } else { + yym1117 := z.EncBinary() + _ = yym1117 + if false { + } else { + h.encSliceIngressTLS(([]IngressTLS)(x.TLS), e) + } + } + } + } + if yyr1113 || yy2arr1113 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq1113[2] { + if x.Rules == nil { + r.EncodeNil() + } else { + yym1119 := z.EncBinary() + _ = yym1119 + if false { + } else { + h.encSliceIngressRule(([]IngressRule)(x.Rules), e) + } + } + } else { + r.EncodeNil() + } + } else { + if yyq1113[2] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("rules")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + if x.Rules == nil { + r.EncodeNil() + } else { + yym1120 := z.EncBinary() + _ = yym1120 + if false { + } else { + h.encSliceIngressRule(([]IngressRule)(x.Rules), e) + } + } + } + } + if yyr1113 || yy2arr1113 { + 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 + yym1121 := z.DecBinary() + _ = yym1121 + if false { + } else if z.HasExtensions() && z.DecExt(x) { + } else { + yyct1122 := r.ContainerType() + if yyct1122 == codecSelferValueTypeMap1234 { + yyl1122 := r.ReadMapStart() + if yyl1122 == 0 { + z.DecSendContainerState(codecSelfer_containerMapEnd1234) + } else { + x.codecDecodeSelfFromMap(yyl1122, d) + } + } else if yyct1122 == codecSelferValueTypeArray1234 { + yyl1122 := r.ReadArrayStart() + if yyl1122 == 0 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + x.codecDecodeSelfFromArray(yyl1122, 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 yys1123Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys1123Slc + var yyhl1123 bool = l >= 0 + for yyj1123 := 0; ; yyj1123++ { + if yyhl1123 { + if yyj1123 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + z.DecSendContainerState(codecSelfer_containerMapKey1234) + yys1123Slc = r.DecodeBytes(yys1123Slc, true, true) + yys1123 := string(yys1123Slc) + z.DecSendContainerState(codecSelfer_containerMapValue1234) + switch yys1123 { + 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 { + yyv1125 := &x.TLS + yym1126 := z.DecBinary() + _ = yym1126 + if false { + } else { + h.decSliceIngressTLS((*[]IngressTLS)(yyv1125), d) + } + } + case "rules": + if r.TryDecodeAsNil() { + x.Rules = nil + } else { + yyv1127 := &x.Rules + yym1128 := z.DecBinary() + _ = yym1128 + if false { + } else { + h.decSliceIngressRule((*[]IngressRule)(yyv1127), d) + } + } + default: + z.DecStructFieldNotFound(-1, yys1123) + } // end switch yys1123 + } // end for yyj1123 + 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 yyj1129 int + var yyb1129 bool + var yyhl1129 bool = l >= 0 + yyj1129++ + if yyhl1129 { + yyb1129 = yyj1129 > l + } else { + yyb1129 = r.CheckBreak() + } + if yyb1129 { + 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) + } + yyj1129++ + if yyhl1129 { + yyb1129 = yyj1129 > l + } else { + yyb1129 = r.CheckBreak() + } + if yyb1129 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.TLS = nil + } else { + yyv1131 := &x.TLS + yym1132 := z.DecBinary() + _ = yym1132 + if false { + } else { + h.decSliceIngressTLS((*[]IngressTLS)(yyv1131), d) + } + } + yyj1129++ + if yyhl1129 { + yyb1129 = yyj1129 > l + } else { + yyb1129 = r.CheckBreak() + } + if yyb1129 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Rules = nil + } else { + yyv1133 := &x.Rules + yym1134 := z.DecBinary() + _ = yym1134 + if false { + } else { + h.decSliceIngressRule((*[]IngressRule)(yyv1133), d) + } + } + for { + yyj1129++ + if yyhl1129 { + yyb1129 = yyj1129 > l + } else { + yyb1129 = r.CheckBreak() + } + if yyb1129 { + break + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + z.DecStructFieldNotFound(yyj1129-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 { + yym1135 := z.EncBinary() + _ = yym1135 + if false { + } else if z.HasExtensions() && z.EncExt(x) { + } else { + yysep1136 := !z.EncBinary() + yy2arr1136 := z.EncBasicHandle().StructToArray + var yyq1136 [2]bool + _, _, _ = yysep1136, yyq1136, yy2arr1136 + const yyr1136 bool = false + yyq1136[0] = len(x.Hosts) != 0 + yyq1136[1] = x.SecretName != "" + var yynn1136 int + if yyr1136 || yy2arr1136 { + r.EncodeArrayStart(2) + } else { + yynn1136 = 0 + for _, b := range yyq1136 { + if b { + yynn1136++ + } + } + r.EncodeMapStart(yynn1136) + yynn1136 = 0 + } + if yyr1136 || yy2arr1136 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq1136[0] { + if x.Hosts == nil { + r.EncodeNil() + } else { + yym1138 := z.EncBinary() + _ = yym1138 + if false { + } else { + z.F.EncSliceStringV(x.Hosts, false, e) + } + } + } else { + r.EncodeNil() + } + } else { + if yyq1136[0] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("hosts")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + if x.Hosts == nil { + r.EncodeNil() + } else { + yym1139 := z.EncBinary() + _ = yym1139 + if false { + } else { + z.F.EncSliceStringV(x.Hosts, false, e) + } + } + } + } + if yyr1136 || yy2arr1136 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq1136[1] { + yym1141 := z.EncBinary() + _ = yym1141 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.SecretName)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq1136[1] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("secretName")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym1142 := z.EncBinary() + _ = yym1142 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.SecretName)) + } + } + } + if yyr1136 || yy2arr1136 { + 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 + yym1143 := z.DecBinary() + _ = yym1143 + if false { + } else if z.HasExtensions() && z.DecExt(x) { + } else { + yyct1144 := r.ContainerType() + if yyct1144 == codecSelferValueTypeMap1234 { + yyl1144 := r.ReadMapStart() + if yyl1144 == 0 { + z.DecSendContainerState(codecSelfer_containerMapEnd1234) + } else { + x.codecDecodeSelfFromMap(yyl1144, d) + } + } else if yyct1144 == codecSelferValueTypeArray1234 { + yyl1144 := r.ReadArrayStart() + if yyl1144 == 0 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + x.codecDecodeSelfFromArray(yyl1144, 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 yys1145Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys1145Slc + var yyhl1145 bool = l >= 0 + for yyj1145 := 0; ; yyj1145++ { + if yyhl1145 { + if yyj1145 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + z.DecSendContainerState(codecSelfer_containerMapKey1234) + yys1145Slc = r.DecodeBytes(yys1145Slc, true, true) + yys1145 := string(yys1145Slc) + z.DecSendContainerState(codecSelfer_containerMapValue1234) + switch yys1145 { case "hosts": if r.TryDecodeAsNil() { x.Hosts = nil } else { - yyv1069 := &x.Hosts - yym1070 := z.DecBinary() - _ = yym1070 + yyv1146 := &x.Hosts + yym1147 := z.DecBinary() + _ = yym1147 if false { } else { - z.F.DecSliceStringX(yyv1069, false, d) + z.F.DecSliceStringX(yyv1146, false, d) } } case "secretName": @@ -12619,9 +13359,9 @@ func (x *IngressTLS) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { x.SecretName = string(r.DecodeString()) } default: - z.DecStructFieldNotFound(-1, yys1068) - } // end switch yys1068 - } // end for yyj1068 + z.DecStructFieldNotFound(-1, yys1145) + } // end switch yys1145 + } // end for yyj1145 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -12629,16 +13369,16 @@ func (x *IngressTLS) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj1072 int - var yyb1072 bool - var yyhl1072 bool = l >= 0 - yyj1072++ - if yyhl1072 { - yyb1072 = yyj1072 > l + var yyj1149 int + var yyb1149 bool + var yyhl1149 bool = l >= 0 + yyj1149++ + if yyhl1149 { + yyb1149 = yyj1149 > l } else { - yyb1072 = r.CheckBreak() + yyb1149 = r.CheckBreak() } - if yyb1072 { + if yyb1149 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -12646,21 +13386,21 @@ func (x *IngressTLS) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.Hosts = nil } else { - yyv1073 := &x.Hosts - yym1074 := z.DecBinary() - _ = yym1074 + yyv1150 := &x.Hosts + yym1151 := z.DecBinary() + _ = yym1151 if false { } else { - z.F.DecSliceStringX(yyv1073, false, d) + z.F.DecSliceStringX(yyv1150, false, d) } } - yyj1072++ - if yyhl1072 { - yyb1072 = yyj1072 > l + yyj1149++ + if yyhl1149 { + yyb1149 = yyj1149 > l } else { - yyb1072 = r.CheckBreak() + yyb1149 = r.CheckBreak() } - if yyb1072 { + if yyb1149 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -12671,17 +13411,17 @@ func (x *IngressTLS) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { x.SecretName = string(r.DecodeString()) } for { - yyj1072++ - if yyhl1072 { - yyb1072 = yyj1072 > l + yyj1149++ + if yyhl1149 { + yyb1149 = yyj1149 > l } else { - yyb1072 = r.CheckBreak() + yyb1149 = r.CheckBreak() } - if yyb1072 { + if yyb1149 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj1072-1, "") + z.DecStructFieldNotFound(yyj1149-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -12693,48 +13433,48 @@ func (x *IngressStatus) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1076 := z.EncBinary() - _ = yym1076 + yym1153 := z.EncBinary() + _ = yym1153 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - 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 { + yysep1154 := !z.EncBinary() + yy2arr1154 := z.EncBasicHandle().StructToArray + var yyq1154 [1]bool + _, _, _ = yysep1154, yyq1154, yy2arr1154 + const yyr1154 bool = false + yyq1154[0] = true + var yynn1154 int + if yyr1154 || yy2arr1154 { r.EncodeArrayStart(1) } else { - yynn1077 = 0 - for _, b := range yyq1077 { + yynn1154 = 0 + for _, b := range yyq1154 { if b { - yynn1077++ + yynn1154++ } } - r.EncodeMapStart(yynn1077) - yynn1077 = 0 + r.EncodeMapStart(yynn1154) + yynn1154 = 0 } - if yyr1077 || yy2arr1077 { + if yyr1154 || yy2arr1154 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1077[0] { - yy1079 := &x.LoadBalancer - yy1079.CodecEncodeSelf(e) + if yyq1154[0] { + yy1156 := &x.LoadBalancer + yy1156.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { - if yyq1077[0] { + if yyq1154[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("loadBalancer")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy1080 := &x.LoadBalancer - yy1080.CodecEncodeSelf(e) + yy1157 := &x.LoadBalancer + yy1157.CodecEncodeSelf(e) } } - if yyr1077 || yy2arr1077 { + if yyr1154 || yy2arr1154 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -12747,25 +13487,25 @@ func (x *IngressStatus) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1081 := z.DecBinary() - _ = yym1081 + yym1158 := z.DecBinary() + _ = yym1158 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct1082 := r.ContainerType() - if yyct1082 == codecSelferValueTypeMap1234 { - yyl1082 := r.ReadMapStart() - if yyl1082 == 0 { + yyct1159 := r.ContainerType() + if yyct1159 == codecSelferValueTypeMap1234 { + yyl1159 := r.ReadMapStart() + if yyl1159 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl1082, d) + x.codecDecodeSelfFromMap(yyl1159, d) } - } else if yyct1082 == codecSelferValueTypeArray1234 { - yyl1082 := r.ReadArrayStart() - if yyl1082 == 0 { + } else if yyct1159 == codecSelferValueTypeArray1234 { + yyl1159 := r.ReadArrayStart() + if yyl1159 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl1082, d) + x.codecDecodeSelfFromArray(yyl1159, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -12777,12 +13517,12 @@ func (x *IngressStatus) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys1083Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys1083Slc - var yyhl1083 bool = l >= 0 - for yyj1083 := 0; ; yyj1083++ { - if yyhl1083 { - if yyj1083 >= l { + var yys1160Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys1160Slc + var yyhl1160 bool = l >= 0 + for yyj1160 := 0; ; yyj1160++ { + if yyhl1160 { + if yyj1160 >= l { break } } else { @@ -12791,21 +13531,21 @@ func (x *IngressStatus) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys1083Slc = r.DecodeBytes(yys1083Slc, true, true) - yys1083 := string(yys1083Slc) + yys1160Slc = r.DecodeBytes(yys1160Slc, true, true) + yys1160 := string(yys1160Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys1083 { + switch yys1160 { case "loadBalancer": if r.TryDecodeAsNil() { x.LoadBalancer = pkg2_v1.LoadBalancerStatus{} } else { - yyv1084 := &x.LoadBalancer - yyv1084.CodecDecodeSelf(d) + yyv1161 := &x.LoadBalancer + yyv1161.CodecDecodeSelf(d) } default: - z.DecStructFieldNotFound(-1, yys1083) - } // end switch yys1083 - } // end for yyj1083 + z.DecStructFieldNotFound(-1, yys1160) + } // end switch yys1160 + } // end for yyj1160 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -12813,16 +13553,16 @@ func (x *IngressStatus) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj1085 int - var yyb1085 bool - var yyhl1085 bool = l >= 0 - yyj1085++ - if yyhl1085 { - yyb1085 = yyj1085 > l + var yyj1162 int + var yyb1162 bool + var yyhl1162 bool = l >= 0 + yyj1162++ + if yyhl1162 { + yyb1162 = yyj1162 > l } else { - yyb1085 = r.CheckBreak() + yyb1162 = r.CheckBreak() } - if yyb1085 { + if yyb1162 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -12830,21 +13570,21 @@ func (x *IngressStatus) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.LoadBalancer = pkg2_v1.LoadBalancerStatus{} } else { - yyv1086 := &x.LoadBalancer - yyv1086.CodecDecodeSelf(d) + yyv1163 := &x.LoadBalancer + yyv1163.CodecDecodeSelf(d) } for { - yyj1085++ - if yyhl1085 { - yyb1085 = yyj1085 > l + yyj1162++ + if yyhl1162 { + yyb1162 = yyj1162 > l } else { - yyb1085 = r.CheckBreak() + yyb1162 = r.CheckBreak() } - if yyb1085 { + if yyb1162 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj1085-1, "") + z.DecStructFieldNotFound(yyj1162-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -12856,36 +13596,36 @@ func (x *IngressRule) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1087 := z.EncBinary() - _ = yym1087 + yym1164 := z.EncBinary() + _ = yym1164 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - 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 { + yysep1165 := !z.EncBinary() + yy2arr1165 := z.EncBasicHandle().StructToArray + var yyq1165 [2]bool + _, _, _ = yysep1165, yyq1165, yy2arr1165 + const yyr1165 bool = false + yyq1165[0] = x.Host != "" + yyq1165[1] = x.IngressRuleValue.HTTP != nil && x.HTTP != nil + var yynn1165 int + if yyr1165 || yy2arr1165 { r.EncodeArrayStart(2) } else { - yynn1088 = 0 - for _, b := range yyq1088 { + yynn1165 = 0 + for _, b := range yyq1165 { if b { - yynn1088++ + yynn1165++ } } - r.EncodeMapStart(yynn1088) - yynn1088 = 0 + r.EncodeMapStart(yynn1165) + yynn1165 = 0 } - if yyr1088 || yy2arr1088 { + if yyr1165 || yy2arr1165 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1088[0] { - yym1090 := z.EncBinary() - _ = yym1090 + if yyq1165[0] { + yym1167 := z.EncBinary() + _ = yym1167 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Host)) @@ -12894,30 +13634,30 @@ func (x *IngressRule) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq1088[0] { + if yyq1165[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("host")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym1091 := z.EncBinary() - _ = yym1091 + yym1168 := z.EncBinary() + _ = yym1168 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Host)) } } } - var yyn1092 bool + var yyn1169 bool if x.IngressRuleValue.HTTP == nil { - yyn1092 = true - goto LABEL1092 + yyn1169 = true + goto LABEL1169 } - LABEL1092: - if yyr1088 || yy2arr1088 { - if yyn1092 { + LABEL1169: + if yyr1165 || yy2arr1165 { + if yyn1169 { r.EncodeNil() } else { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1088[1] { + if yyq1165[1] { if x.HTTP == nil { r.EncodeNil() } else { @@ -12928,11 +13668,11 @@ func (x *IngressRule) CodecEncodeSelf(e *codec1978.Encoder) { } } } else { - if yyq1088[1] { + if yyq1165[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("http")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - if yyn1092 { + if yyn1169 { r.EncodeNil() } else { if x.HTTP == nil { @@ -12943,7 +13683,7 @@ func (x *IngressRule) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr1088 || yy2arr1088 { + if yyr1165 || yy2arr1165 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -12956,25 +13696,25 @@ func (x *IngressRule) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1093 := z.DecBinary() - _ = yym1093 + yym1170 := z.DecBinary() + _ = yym1170 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct1094 := r.ContainerType() - if yyct1094 == codecSelferValueTypeMap1234 { - yyl1094 := r.ReadMapStart() - if yyl1094 == 0 { + yyct1171 := r.ContainerType() + if yyct1171 == codecSelferValueTypeMap1234 { + yyl1171 := r.ReadMapStart() + if yyl1171 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl1094, d) + x.codecDecodeSelfFromMap(yyl1171, d) } - } else if yyct1094 == codecSelferValueTypeArray1234 { - yyl1094 := r.ReadArrayStart() - if yyl1094 == 0 { + } else if yyct1171 == codecSelferValueTypeArray1234 { + yyl1171 := r.ReadArrayStart() + if yyl1171 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl1094, d) + x.codecDecodeSelfFromArray(yyl1171, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -12986,12 +13726,12 @@ func (x *IngressRule) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys1095Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys1095Slc - var yyhl1095 bool = l >= 0 - for yyj1095 := 0; ; yyj1095++ { - if yyhl1095 { - if yyj1095 >= l { + var yys1172Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys1172Slc + var yyhl1172 bool = l >= 0 + for yyj1172 := 0; ; yyj1172++ { + if yyhl1172 { + if yyj1172 >= l { break } } else { @@ -13000,10 +13740,10 @@ func (x *IngressRule) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys1095Slc = r.DecodeBytes(yys1095Slc, true, true) - yys1095 := string(yys1095Slc) + yys1172Slc = r.DecodeBytes(yys1172Slc, true, true) + yys1172 := string(yys1172Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys1095 { + switch yys1172 { case "host": if r.TryDecodeAsNil() { x.Host = "" @@ -13025,9 +13765,9 @@ func (x *IngressRule) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { x.HTTP.CodecDecodeSelf(d) } default: - z.DecStructFieldNotFound(-1, yys1095) - } // end switch yys1095 - } // end for yyj1095 + z.DecStructFieldNotFound(-1, yys1172) + } // end switch yys1172 + } // end for yyj1172 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -13035,16 +13775,16 @@ func (x *IngressRule) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj1098 int - var yyb1098 bool - var yyhl1098 bool = l >= 0 - yyj1098++ - if yyhl1098 { - yyb1098 = yyj1098 > l + var yyj1175 int + var yyb1175 bool + var yyhl1175 bool = l >= 0 + yyj1175++ + if yyhl1175 { + yyb1175 = yyj1175 > l } else { - yyb1098 = r.CheckBreak() + yyb1175 = r.CheckBreak() } - if yyb1098 { + if yyb1175 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -13057,13 +13797,13 @@ func (x *IngressRule) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if x.IngressRuleValue.HTTP == nil { x.IngressRuleValue.HTTP = new(HTTPIngressRuleValue) } - yyj1098++ - if yyhl1098 { - yyb1098 = yyj1098 > l + yyj1175++ + if yyhl1175 { + yyb1175 = yyj1175 > l } else { - yyb1098 = r.CheckBreak() + yyb1175 = r.CheckBreak() } - if yyb1098 { + if yyb1175 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -13079,17 +13819,17 @@ func (x *IngressRule) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { x.HTTP.CodecDecodeSelf(d) } for { - yyj1098++ - if yyhl1098 { - yyb1098 = yyj1098 > l + yyj1175++ + if yyhl1175 { + yyb1175 = yyj1175 > l } else { - yyb1098 = r.CheckBreak() + yyb1175 = r.CheckBreak() } - if yyb1098 { + if yyb1175 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj1098-1, "") + z.DecStructFieldNotFound(yyj1175-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -13101,33 +13841,33 @@ func (x *IngressRuleValue) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1101 := z.EncBinary() - _ = yym1101 + yym1178 := z.EncBinary() + _ = yym1178 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - 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 { + yysep1179 := !z.EncBinary() + yy2arr1179 := z.EncBasicHandle().StructToArray + var yyq1179 [1]bool + _, _, _ = yysep1179, yyq1179, yy2arr1179 + const yyr1179 bool = false + yyq1179[0] = x.HTTP != nil + var yynn1179 int + if yyr1179 || yy2arr1179 { r.EncodeArrayStart(1) } else { - yynn1102 = 0 - for _, b := range yyq1102 { + yynn1179 = 0 + for _, b := range yyq1179 { if b { - yynn1102++ + yynn1179++ } } - r.EncodeMapStart(yynn1102) - yynn1102 = 0 + r.EncodeMapStart(yynn1179) + yynn1179 = 0 } - if yyr1102 || yy2arr1102 { + if yyr1179 || yy2arr1179 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1102[0] { + if yyq1179[0] { if x.HTTP == nil { r.EncodeNil() } else { @@ -13137,7 +13877,7 @@ func (x *IngressRuleValue) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq1102[0] { + if yyq1179[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("http")) z.EncSendContainerState(codecSelfer_containerMapValue1234) @@ -13148,7 +13888,7 @@ func (x *IngressRuleValue) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr1102 || yy2arr1102 { + if yyr1179 || yy2arr1179 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -13161,25 +13901,25 @@ func (x *IngressRuleValue) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1104 := z.DecBinary() - _ = yym1104 + yym1181 := z.DecBinary() + _ = yym1181 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct1105 := r.ContainerType() - if yyct1105 == codecSelferValueTypeMap1234 { - yyl1105 := r.ReadMapStart() - if yyl1105 == 0 { + yyct1182 := r.ContainerType() + if yyct1182 == codecSelferValueTypeMap1234 { + yyl1182 := r.ReadMapStart() + if yyl1182 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl1105, d) + x.codecDecodeSelfFromMap(yyl1182, d) } - } else if yyct1105 == codecSelferValueTypeArray1234 { - yyl1105 := r.ReadArrayStart() - if yyl1105 == 0 { + } else if yyct1182 == codecSelferValueTypeArray1234 { + yyl1182 := r.ReadArrayStart() + if yyl1182 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl1105, d) + x.codecDecodeSelfFromArray(yyl1182, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -13191,12 +13931,12 @@ func (x *IngressRuleValue) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys1106Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys1106Slc - var yyhl1106 bool = l >= 0 - for yyj1106 := 0; ; yyj1106++ { - if yyhl1106 { - if yyj1106 >= l { + var yys1183Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys1183Slc + var yyhl1183 bool = l >= 0 + for yyj1183 := 0; ; yyj1183++ { + if yyhl1183 { + if yyj1183 >= l { break } } else { @@ -13205,10 +13945,10 @@ func (x *IngressRuleValue) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys1106Slc = r.DecodeBytes(yys1106Slc, true, true) - yys1106 := string(yys1106Slc) + yys1183Slc = r.DecodeBytes(yys1183Slc, true, true) + yys1183 := string(yys1183Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys1106 { + switch yys1183 { case "http": if r.TryDecodeAsNil() { if x.HTTP != nil { @@ -13221,9 +13961,9 @@ func (x *IngressRuleValue) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { x.HTTP.CodecDecodeSelf(d) } default: - z.DecStructFieldNotFound(-1, yys1106) - } // end switch yys1106 - } // end for yyj1106 + z.DecStructFieldNotFound(-1, yys1183) + } // end switch yys1183 + } // end for yyj1183 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -13231,16 +13971,16 @@ func (x *IngressRuleValue) 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 + var yyj1185 int + var yyb1185 bool + var yyhl1185 bool = l >= 0 + yyj1185++ + if yyhl1185 { + yyb1185 = yyj1185 > l } else { - yyb1108 = r.CheckBreak() + yyb1185 = r.CheckBreak() } - if yyb1108 { + if yyb1185 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -13256,17 +13996,17 @@ func (x *IngressRuleValue) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) x.HTTP.CodecDecodeSelf(d) } for { - yyj1108++ - if yyhl1108 { - yyb1108 = yyj1108 > l + yyj1185++ + if yyhl1185 { + yyb1185 = yyj1185 > l } else { - yyb1108 = r.CheckBreak() + yyb1185 = r.CheckBreak() } - if yyb1108 { + if yyb1185 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj1108-1, "") + z.DecStructFieldNotFound(yyj1185-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -13278,36 +14018,36 @@ func (x *HTTPIngressRuleValue) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1110 := z.EncBinary() - _ = yym1110 + yym1187 := z.EncBinary() + _ = yym1187 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep1111 := !z.EncBinary() - yy2arr1111 := z.EncBasicHandle().StructToArray - var yyq1111 [1]bool - _, _, _ = yysep1111, yyq1111, yy2arr1111 - const yyr1111 bool = false - var yynn1111 int - if yyr1111 || yy2arr1111 { + yysep1188 := !z.EncBinary() + yy2arr1188 := z.EncBasicHandle().StructToArray + var yyq1188 [1]bool + _, _, _ = yysep1188, yyq1188, yy2arr1188 + const yyr1188 bool = false + var yynn1188 int + if yyr1188 || yy2arr1188 { r.EncodeArrayStart(1) } else { - yynn1111 = 1 - for _, b := range yyq1111 { + yynn1188 = 1 + for _, b := range yyq1188 { if b { - yynn1111++ + yynn1188++ } } - r.EncodeMapStart(yynn1111) - yynn1111 = 0 + r.EncodeMapStart(yynn1188) + yynn1188 = 0 } - if yyr1111 || yy2arr1111 { + if yyr1188 || yy2arr1188 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.Paths == nil { r.EncodeNil() } else { - yym1113 := z.EncBinary() - _ = yym1113 + yym1190 := z.EncBinary() + _ = yym1190 if false { } else { h.encSliceHTTPIngressPath(([]HTTPIngressPath)(x.Paths), e) @@ -13320,15 +14060,15 @@ func (x *HTTPIngressRuleValue) CodecEncodeSelf(e *codec1978.Encoder) { if x.Paths == nil { r.EncodeNil() } else { - yym1114 := z.EncBinary() - _ = yym1114 + yym1191 := z.EncBinary() + _ = yym1191 if false { } else { h.encSliceHTTPIngressPath(([]HTTPIngressPath)(x.Paths), e) } } } - if yyr1111 || yy2arr1111 { + if yyr1188 || yy2arr1188 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -13341,25 +14081,25 @@ func (x *HTTPIngressRuleValue) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1115 := z.DecBinary() - _ = yym1115 + yym1192 := z.DecBinary() + _ = yym1192 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct1116 := r.ContainerType() - if yyct1116 == codecSelferValueTypeMap1234 { - yyl1116 := r.ReadMapStart() - if yyl1116 == 0 { + yyct1193 := r.ContainerType() + if yyct1193 == codecSelferValueTypeMap1234 { + yyl1193 := r.ReadMapStart() + if yyl1193 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl1116, d) + x.codecDecodeSelfFromMap(yyl1193, d) } - } else if yyct1116 == codecSelferValueTypeArray1234 { - yyl1116 := r.ReadArrayStart() - if yyl1116 == 0 { + } else if yyct1193 == codecSelferValueTypeArray1234 { + yyl1193 := r.ReadArrayStart() + if yyl1193 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl1116, d) + x.codecDecodeSelfFromArray(yyl1193, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -13371,12 +14111,12 @@ func (x *HTTPIngressRuleValue) codecDecodeSelfFromMap(l int, d *codec1978.Decode var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys1117Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys1117Slc - var yyhl1117 bool = l >= 0 - for yyj1117 := 0; ; yyj1117++ { - if yyhl1117 { - if yyj1117 >= l { + var yys1194Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys1194Slc + var yyhl1194 bool = l >= 0 + for yyj1194 := 0; ; yyj1194++ { + if yyhl1194 { + if yyj1194 >= l { break } } else { @@ -13385,26 +14125,26 @@ func (x *HTTPIngressRuleValue) codecDecodeSelfFromMap(l int, d *codec1978.Decode } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys1117Slc = r.DecodeBytes(yys1117Slc, true, true) - yys1117 := string(yys1117Slc) + yys1194Slc = r.DecodeBytes(yys1194Slc, true, true) + yys1194 := string(yys1194Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys1117 { + switch yys1194 { case "paths": if r.TryDecodeAsNil() { x.Paths = nil } else { - yyv1118 := &x.Paths - yym1119 := z.DecBinary() - _ = yym1119 + yyv1195 := &x.Paths + yym1196 := z.DecBinary() + _ = yym1196 if false { } else { - h.decSliceHTTPIngressPath((*[]HTTPIngressPath)(yyv1118), d) + h.decSliceHTTPIngressPath((*[]HTTPIngressPath)(yyv1195), d) } } default: - z.DecStructFieldNotFound(-1, yys1117) - } // end switch yys1117 - } // end for yyj1117 + z.DecStructFieldNotFound(-1, yys1194) + } // end switch yys1194 + } // end for yyj1194 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -13412,16 +14152,16 @@ func (x *HTTPIngressRuleValue) codecDecodeSelfFromArray(l int, d *codec1978.Deco var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj1120 int - var yyb1120 bool - var yyhl1120 bool = l >= 0 - yyj1120++ - if yyhl1120 { - yyb1120 = yyj1120 > l + var yyj1197 int + var yyb1197 bool + var yyhl1197 bool = l >= 0 + yyj1197++ + if yyhl1197 { + yyb1197 = yyj1197 > l } else { - yyb1120 = r.CheckBreak() + yyb1197 = r.CheckBreak() } - if yyb1120 { + if yyb1197 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -13429,26 +14169,26 @@ func (x *HTTPIngressRuleValue) codecDecodeSelfFromArray(l int, d *codec1978.Deco if r.TryDecodeAsNil() { x.Paths = nil } else { - yyv1121 := &x.Paths - yym1122 := z.DecBinary() - _ = yym1122 + yyv1198 := &x.Paths + yym1199 := z.DecBinary() + _ = yym1199 if false { } else { - h.decSliceHTTPIngressPath((*[]HTTPIngressPath)(yyv1121), d) + h.decSliceHTTPIngressPath((*[]HTTPIngressPath)(yyv1198), d) } } for { - yyj1120++ - if yyhl1120 { - yyb1120 = yyj1120 > l + yyj1197++ + if yyhl1197 { + yyb1197 = yyj1197 > l } else { - yyb1120 = r.CheckBreak() + yyb1197 = r.CheckBreak() } - if yyb1120 { + if yyb1197 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj1120-1, "") + z.DecStructFieldNotFound(yyj1197-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -13460,35 +14200,35 @@ func (x *HTTPIngressPath) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1123 := z.EncBinary() - _ = yym1123 + yym1200 := z.EncBinary() + _ = yym1200 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - 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 { + yysep1201 := !z.EncBinary() + yy2arr1201 := z.EncBasicHandle().StructToArray + var yyq1201 [2]bool + _, _, _ = yysep1201, yyq1201, yy2arr1201 + const yyr1201 bool = false + yyq1201[0] = x.Path != "" + var yynn1201 int + if yyr1201 || yy2arr1201 { r.EncodeArrayStart(2) } else { - yynn1124 = 1 - for _, b := range yyq1124 { + yynn1201 = 1 + for _, b := range yyq1201 { if b { - yynn1124++ + yynn1201++ } } - r.EncodeMapStart(yynn1124) - yynn1124 = 0 + r.EncodeMapStart(yynn1201) + yynn1201 = 0 } - if yyr1124 || yy2arr1124 { + if yyr1201 || yy2arr1201 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1124[0] { - yym1126 := z.EncBinary() - _ = yym1126 + if yyq1201[0] { + yym1203 := z.EncBinary() + _ = yym1203 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Path)) @@ -13497,30 +14237,30 @@ func (x *HTTPIngressPath) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq1124[0] { + if yyq1201[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("path")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym1127 := z.EncBinary() - _ = yym1127 + yym1204 := z.EncBinary() + _ = yym1204 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Path)) } } } - if yyr1124 || yy2arr1124 { + if yyr1201 || yy2arr1201 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy1129 := &x.Backend - yy1129.CodecEncodeSelf(e) + yy1206 := &x.Backend + yy1206.CodecEncodeSelf(e) } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("backend")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy1130 := &x.Backend - yy1130.CodecEncodeSelf(e) + yy1207 := &x.Backend + yy1207.CodecEncodeSelf(e) } - if yyr1124 || yy2arr1124 { + if yyr1201 || yy2arr1201 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -13533,25 +14273,25 @@ func (x *HTTPIngressPath) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1131 := z.DecBinary() - _ = yym1131 + yym1208 := z.DecBinary() + _ = yym1208 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct1132 := r.ContainerType() - if yyct1132 == codecSelferValueTypeMap1234 { - yyl1132 := r.ReadMapStart() - if yyl1132 == 0 { + yyct1209 := r.ContainerType() + if yyct1209 == codecSelferValueTypeMap1234 { + yyl1209 := r.ReadMapStart() + if yyl1209 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl1132, d) + x.codecDecodeSelfFromMap(yyl1209, d) } - } else if yyct1132 == codecSelferValueTypeArray1234 { - yyl1132 := r.ReadArrayStart() - if yyl1132 == 0 { + } else if yyct1209 == codecSelferValueTypeArray1234 { + yyl1209 := r.ReadArrayStart() + if yyl1209 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl1132, d) + x.codecDecodeSelfFromArray(yyl1209, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -13563,12 +14303,12 @@ func (x *HTTPIngressPath) 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 { + 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 { @@ -13577,10 +14317,10 @@ func (x *HTTPIngressPath) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys1133Slc = r.DecodeBytes(yys1133Slc, true, true) - yys1133 := string(yys1133Slc) + yys1210Slc = r.DecodeBytes(yys1210Slc, true, true) + yys1210 := string(yys1210Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys1133 { + switch yys1210 { case "path": if r.TryDecodeAsNil() { x.Path = "" @@ -13591,13 +14331,13 @@ func (x *HTTPIngressPath) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.Backend = IngressBackend{} } else { - yyv1135 := &x.Backend - yyv1135.CodecDecodeSelf(d) + yyv1212 := &x.Backend + yyv1212.CodecDecodeSelf(d) } default: - z.DecStructFieldNotFound(-1, yys1133) - } // end switch yys1133 - } // end for yyj1133 + z.DecStructFieldNotFound(-1, yys1210) + } // end switch yys1210 + } // end for yyj1210 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -13605,16 +14345,16 @@ func (x *HTTPIngressPath) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj1136 int - var yyb1136 bool - var yyhl1136 bool = l >= 0 - yyj1136++ - if yyhl1136 { - yyb1136 = yyj1136 > l + var yyj1213 int + var yyb1213 bool + var yyhl1213 bool = l >= 0 + yyj1213++ + if yyhl1213 { + yyb1213 = yyj1213 > l } else { - yyb1136 = r.CheckBreak() + yyb1213 = r.CheckBreak() } - if yyb1136 { + if yyb1213 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -13624,13 +14364,13 @@ func (x *HTTPIngressPath) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) } else { x.Path = string(r.DecodeString()) } - yyj1136++ - if yyhl1136 { - yyb1136 = yyj1136 > l + yyj1213++ + if yyhl1213 { + yyb1213 = yyj1213 > l } else { - yyb1136 = r.CheckBreak() + yyb1213 = r.CheckBreak() } - if yyb1136 { + if yyb1213 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -13638,21 +14378,21 @@ func (x *HTTPIngressPath) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) if r.TryDecodeAsNil() { x.Backend = IngressBackend{} } else { - yyv1138 := &x.Backend - yyv1138.CodecDecodeSelf(d) + yyv1215 := &x.Backend + yyv1215.CodecDecodeSelf(d) } for { - yyj1136++ - if yyhl1136 { - yyb1136 = yyj1136 > l + yyj1213++ + if yyhl1213 { + yyb1213 = yyj1213 > l } else { - yyb1136 = r.CheckBreak() + yyb1213 = r.CheckBreak() } - if yyb1136 { + if yyb1213 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj1136-1, "") + z.DecStructFieldNotFound(yyj1213-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -13664,33 +14404,33 @@ func (x *IngressBackend) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1139 := z.EncBinary() - _ = yym1139 + yym1216 := z.EncBinary() + _ = yym1216 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep1140 := !z.EncBinary() - yy2arr1140 := z.EncBasicHandle().StructToArray - var yyq1140 [2]bool - _, _, _ = yysep1140, yyq1140, yy2arr1140 - const yyr1140 bool = false - var yynn1140 int - if yyr1140 || yy2arr1140 { + yysep1217 := !z.EncBinary() + yy2arr1217 := z.EncBasicHandle().StructToArray + var yyq1217 [2]bool + _, _, _ = yysep1217, yyq1217, yy2arr1217 + const yyr1217 bool = false + var yynn1217 int + if yyr1217 || yy2arr1217 { r.EncodeArrayStart(2) } else { - yynn1140 = 2 - for _, b := range yyq1140 { + yynn1217 = 2 + for _, b := range yyq1217 { if b { - yynn1140++ + yynn1217++ } } - r.EncodeMapStart(yynn1140) - yynn1140 = 0 + r.EncodeMapStart(yynn1217) + yynn1217 = 0 } - if yyr1140 || yy2arr1140 { + if yyr1217 || yy2arr1217 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym1142 := z.EncBinary() - _ = yym1142 + yym1219 := z.EncBinary() + _ = yym1219 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.ServiceName)) @@ -13699,41 +14439,41 @@ func (x *IngressBackend) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("serviceName")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym1143 := z.EncBinary() - _ = yym1143 + yym1220 := z.EncBinary() + _ = yym1220 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.ServiceName)) } } - if yyr1140 || yy2arr1140 { + if yyr1217 || yy2arr1217 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy1145 := &x.ServicePort - yym1146 := z.EncBinary() - _ = yym1146 + yy1222 := &x.ServicePort + yym1223 := z.EncBinary() + _ = yym1223 if false { - } else if z.HasExtensions() && z.EncExt(yy1145) { - } else if !yym1146 && z.IsJSONHandle() { - z.EncJSONMarshal(yy1145) + } else if z.HasExtensions() && z.EncExt(yy1222) { + } else if !yym1223 && z.IsJSONHandle() { + z.EncJSONMarshal(yy1222) } else { - z.EncFallback(yy1145) + z.EncFallback(yy1222) } } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("servicePort")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy1147 := &x.ServicePort - yym1148 := z.EncBinary() - _ = yym1148 + yy1224 := &x.ServicePort + yym1225 := z.EncBinary() + _ = yym1225 if false { - } else if z.HasExtensions() && z.EncExt(yy1147) { - } else if !yym1148 && z.IsJSONHandle() { - z.EncJSONMarshal(yy1147) + } else if z.HasExtensions() && z.EncExt(yy1224) { + } else if !yym1225 && z.IsJSONHandle() { + z.EncJSONMarshal(yy1224) } else { - z.EncFallback(yy1147) + z.EncFallback(yy1224) } } - if yyr1140 || yy2arr1140 { + if yyr1217 || yy2arr1217 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -13746,25 +14486,25 @@ func (x *IngressBackend) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1149 := z.DecBinary() - _ = yym1149 + yym1226 := z.DecBinary() + _ = yym1226 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct1150 := r.ContainerType() - if yyct1150 == codecSelferValueTypeMap1234 { - yyl1150 := r.ReadMapStart() - if yyl1150 == 0 { + yyct1227 := r.ContainerType() + if yyct1227 == codecSelferValueTypeMap1234 { + yyl1227 := r.ReadMapStart() + if yyl1227 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl1150, d) + x.codecDecodeSelfFromMap(yyl1227, d) } - } else if yyct1150 == codecSelferValueTypeArray1234 { - yyl1150 := r.ReadArrayStart() - if yyl1150 == 0 { + } else if yyct1227 == codecSelferValueTypeArray1234 { + yyl1227 := r.ReadArrayStart() + if yyl1227 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl1150, d) + x.codecDecodeSelfFromArray(yyl1227, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -13776,12 +14516,12 @@ func (x *IngressBackend) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys1151Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys1151Slc - var yyhl1151 bool = l >= 0 - for yyj1151 := 0; ; yyj1151++ { - if yyhl1151 { - if yyj1151 >= l { + var yys1228Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys1228Slc + var yyhl1228 bool = l >= 0 + for yyj1228 := 0; ; yyj1228++ { + if yyhl1228 { + if yyj1228 >= l { break } } else { @@ -13790,10 +14530,10 @@ func (x *IngressBackend) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys1151Slc = r.DecodeBytes(yys1151Slc, true, true) - yys1151 := string(yys1151Slc) + yys1228Slc = r.DecodeBytes(yys1228Slc, true, true) + yys1228 := string(yys1228Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys1151 { + switch yys1228 { case "serviceName": if r.TryDecodeAsNil() { x.ServiceName = "" @@ -13804,21 +14544,21 @@ func (x *IngressBackend) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.ServicePort = pkg5_intstr.IntOrString{} } else { - yyv1153 := &x.ServicePort - yym1154 := z.DecBinary() - _ = yym1154 + yyv1230 := &x.ServicePort + yym1231 := z.DecBinary() + _ = yym1231 if false { - } else if z.HasExtensions() && z.DecExt(yyv1153) { - } else if !yym1154 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv1153) + } else if z.HasExtensions() && z.DecExt(yyv1230) { + } else if !yym1231 && z.IsJSONHandle() { + z.DecJSONUnmarshal(yyv1230) } else { - z.DecFallback(yyv1153, false) + z.DecFallback(yyv1230, false) } } default: - z.DecStructFieldNotFound(-1, yys1151) - } // end switch yys1151 - } // end for yyj1151 + z.DecStructFieldNotFound(-1, yys1228) + } // end switch yys1228 + } // end for yyj1228 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -13826,16 +14566,16 @@ func (x *IngressBackend) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj1155 int - var yyb1155 bool - var yyhl1155 bool = l >= 0 - yyj1155++ - if yyhl1155 { - yyb1155 = yyj1155 > l + var yyj1232 int + var yyb1232 bool + var yyhl1232 bool = l >= 0 + yyj1232++ + if yyhl1232 { + yyb1232 = yyj1232 > l } else { - yyb1155 = r.CheckBreak() + yyb1232 = r.CheckBreak() } - if yyb1155 { + if yyb1232 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -13845,13 +14585,13 @@ func (x *IngressBackend) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.ServiceName = string(r.DecodeString()) } - yyj1155++ - if yyhl1155 { - yyb1155 = yyj1155 > l + yyj1232++ + if yyhl1232 { + yyb1232 = yyj1232 > l } else { - yyb1155 = r.CheckBreak() + yyb1232 = r.CheckBreak() } - if yyb1155 { + if yyb1232 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -13859,29 +14599,29 @@ func (x *IngressBackend) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.ServicePort = pkg5_intstr.IntOrString{} } else { - yyv1157 := &x.ServicePort - yym1158 := z.DecBinary() - _ = yym1158 + yyv1234 := &x.ServicePort + yym1235 := z.DecBinary() + _ = yym1235 if false { - } else if z.HasExtensions() && z.DecExt(yyv1157) { - } else if !yym1158 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv1157) + } else if z.HasExtensions() && z.DecExt(yyv1234) { + } else if !yym1235 && z.IsJSONHandle() { + z.DecJSONUnmarshal(yyv1234) } else { - z.DecFallback(yyv1157, false) + z.DecFallback(yyv1234, false) } } for { - yyj1155++ - if yyhl1155 { - yyb1155 = yyj1155 > l + yyj1232++ + if yyhl1232 { + yyb1232 = yyj1232 > l } else { - yyb1155 = r.CheckBreak() + yyb1232 = r.CheckBreak() } - if yyb1155 { + if yyb1232 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj1155-1, "") + z.DecStructFieldNotFound(yyj1232-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -13893,36 +14633,36 @@ func (x *ExportOptions) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1159 := z.EncBinary() - _ = yym1159 + yym1236 := z.EncBinary() + _ = yym1236 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - 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 { + yysep1237 := !z.EncBinary() + yy2arr1237 := z.EncBasicHandle().StructToArray + var yyq1237 [4]bool + _, _, _ = yysep1237, yyq1237, yy2arr1237 + const yyr1237 bool = false + yyq1237[0] = x.Kind != "" + yyq1237[1] = x.APIVersion != "" + var yynn1237 int + if yyr1237 || yy2arr1237 { r.EncodeArrayStart(4) } else { - yynn1160 = 2 - for _, b := range yyq1160 { + yynn1237 = 2 + for _, b := range yyq1237 { if b { - yynn1160++ + yynn1237++ } } - r.EncodeMapStart(yynn1160) - yynn1160 = 0 + r.EncodeMapStart(yynn1237) + yynn1237 = 0 } - if yyr1160 || yy2arr1160 { + if yyr1237 || yy2arr1237 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1160[0] { - yym1162 := z.EncBinary() - _ = yym1162 + if yyq1237[0] { + yym1239 := z.EncBinary() + _ = yym1239 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) @@ -13931,23 +14671,23 @@ func (x *ExportOptions) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq1160[0] { + if yyq1237[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym1163 := z.EncBinary() - _ = yym1163 + yym1240 := z.EncBinary() + _ = yym1240 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } - if yyr1160 || yy2arr1160 { + if yyr1237 || yy2arr1237 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1160[1] { - yym1165 := z.EncBinary() - _ = yym1165 + if yyq1237[1] { + yym1242 := z.EncBinary() + _ = yym1242 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) @@ -13956,22 +14696,22 @@ func (x *ExportOptions) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq1160[1] { + if yyq1237[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym1166 := z.EncBinary() - _ = yym1166 + yym1243 := z.EncBinary() + _ = yym1243 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } - if yyr1160 || yy2arr1160 { + if yyr1237 || yy2arr1237 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym1168 := z.EncBinary() - _ = yym1168 + yym1245 := z.EncBinary() + _ = yym1245 if false { } else { r.EncodeBool(bool(x.Export)) @@ -13980,17 +14720,17 @@ func (x *ExportOptions) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("export")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym1169 := z.EncBinary() - _ = yym1169 + yym1246 := z.EncBinary() + _ = yym1246 if false { } else { r.EncodeBool(bool(x.Export)) } } - if yyr1160 || yy2arr1160 { + if yyr1237 || yy2arr1237 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym1171 := z.EncBinary() - _ = yym1171 + yym1248 := z.EncBinary() + _ = yym1248 if false { } else { r.EncodeBool(bool(x.Exact)) @@ -13999,14 +14739,14 @@ func (x *ExportOptions) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("exact")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym1172 := z.EncBinary() - _ = yym1172 + yym1249 := z.EncBinary() + _ = yym1249 if false { } else { r.EncodeBool(bool(x.Exact)) } } - if yyr1160 || yy2arr1160 { + if yyr1237 || yy2arr1237 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -14019,25 +14759,25 @@ func (x *ExportOptions) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1173 := z.DecBinary() - _ = yym1173 + yym1250 := z.DecBinary() + _ = yym1250 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct1174 := r.ContainerType() - if yyct1174 == codecSelferValueTypeMap1234 { - yyl1174 := r.ReadMapStart() - if yyl1174 == 0 { + yyct1251 := r.ContainerType() + if yyct1251 == codecSelferValueTypeMap1234 { + yyl1251 := r.ReadMapStart() + if yyl1251 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl1174, d) + x.codecDecodeSelfFromMap(yyl1251, d) } - } else if yyct1174 == codecSelferValueTypeArray1234 { - yyl1174 := r.ReadArrayStart() - if yyl1174 == 0 { + } else if yyct1251 == codecSelferValueTypeArray1234 { + yyl1251 := r.ReadArrayStart() + if yyl1251 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl1174, d) + x.codecDecodeSelfFromArray(yyl1251, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -14049,12 +14789,12 @@ func (x *ExportOptions) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys1175Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys1175Slc - var yyhl1175 bool = l >= 0 - for yyj1175 := 0; ; yyj1175++ { - if yyhl1175 { - if yyj1175 >= l { + var yys1252Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys1252Slc + var yyhl1252 bool = l >= 0 + for yyj1252 := 0; ; yyj1252++ { + if yyhl1252 { + if yyj1252 >= l { break } } else { @@ -14063,10 +14803,10 @@ func (x *ExportOptions) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys1175Slc = r.DecodeBytes(yys1175Slc, true, true) - yys1175 := string(yys1175Slc) + yys1252Slc = r.DecodeBytes(yys1252Slc, true, true) + yys1252 := string(yys1252Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys1175 { + switch yys1252 { case "kind": if r.TryDecodeAsNil() { x.Kind = "" @@ -14092,9 +14832,9 @@ func (x *ExportOptions) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { x.Exact = bool(r.DecodeBool()) } default: - z.DecStructFieldNotFound(-1, yys1175) - } // end switch yys1175 - } // end for yyj1175 + z.DecStructFieldNotFound(-1, yys1252) + } // end switch yys1252 + } // end for yyj1252 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -14102,16 +14842,16 @@ func (x *ExportOptions) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj1180 int - var yyb1180 bool - var yyhl1180 bool = l >= 0 - yyj1180++ - if yyhl1180 { - yyb1180 = yyj1180 > l + var yyj1257 int + var yyb1257 bool + var yyhl1257 bool = l >= 0 + yyj1257++ + if yyhl1257 { + yyb1257 = yyj1257 > l } else { - yyb1180 = r.CheckBreak() + yyb1257 = r.CheckBreak() } - if yyb1180 { + if yyb1257 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -14121,13 +14861,13 @@ func (x *ExportOptions) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.Kind = string(r.DecodeString()) } - yyj1180++ - if yyhl1180 { - yyb1180 = yyj1180 > l + yyj1257++ + if yyhl1257 { + yyb1257 = yyj1257 > l } else { - yyb1180 = r.CheckBreak() + yyb1257 = r.CheckBreak() } - if yyb1180 { + if yyb1257 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -14137,13 +14877,13 @@ func (x *ExportOptions) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.APIVersion = string(r.DecodeString()) } - yyj1180++ - if yyhl1180 { - yyb1180 = yyj1180 > l + yyj1257++ + if yyhl1257 { + yyb1257 = yyj1257 > l } else { - yyb1180 = r.CheckBreak() + yyb1257 = r.CheckBreak() } - if yyb1180 { + if yyb1257 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -14153,13 +14893,13 @@ func (x *ExportOptions) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.Export = bool(r.DecodeBool()) } - yyj1180++ - if yyhl1180 { - yyb1180 = yyj1180 > l + yyj1257++ + if yyhl1257 { + yyb1257 = yyj1257 > l } else { - yyb1180 = r.CheckBreak() + yyb1257 = r.CheckBreak() } - if yyb1180 { + if yyb1257 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -14170,1052 +14910,21 @@ func (x *ExportOptions) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { x.Exact = bool(r.DecodeBool()) } for { - yyj1180++ - if yyhl1180 { - yyb1180 = yyj1180 > l + yyj1257++ + if yyhl1257 { + yyb1257 = yyj1257 > l } else { - yyb1180 = r.CheckBreak() + yyb1257 = r.CheckBreak() } - if yyb1180 { + if yyb1257 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj1180-1, "") + z.DecStructFieldNotFound(yyj1257-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 { - yym1185 := z.EncBinary() - _ = yym1185 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - 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 { - yynn1186 = 0 - for _, b := range yyq1186 { - if b { - yynn1186++ - } - } - r.EncodeMapStart(yynn1186) - yynn1186 = 0 - } - if yyr1186 || yy2arr1186 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1186[0] { - yym1188 := z.EncBinary() - _ = yym1188 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) - } - } else { - r.EncodeString(codecSelferC_UTF81234, "") - } - } else { - if yyq1186[0] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("kind")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym1189 := z.EncBinary() - _ = yym1189 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) - } - } - } - if yyr1186 || yy2arr1186 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1186[1] { - yym1191 := z.EncBinary() - _ = yym1191 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) - } - } else { - r.EncodeString(codecSelferC_UTF81234, "") - } - } else { - if yyq1186[1] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym1192 := z.EncBinary() - _ = yym1192 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) - } - } - } - if yyr1186 || yy2arr1186 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1186[2] { - yym1194 := z.EncBinary() - _ = yym1194 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.LabelSelector)) - } - } else { - r.EncodeString(codecSelferC_UTF81234, "") - } - } else { - if yyq1186[2] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("labelSelector")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym1195 := z.EncBinary() - _ = yym1195 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.LabelSelector)) - } - } - } - if yyr1186 || yy2arr1186 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1186[3] { - yym1197 := z.EncBinary() - _ = yym1197 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.FieldSelector)) - } - } else { - r.EncodeString(codecSelferC_UTF81234, "") - } - } else { - if yyq1186[3] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("fieldSelector")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym1198 := z.EncBinary() - _ = yym1198 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.FieldSelector)) - } - } - } - if yyr1186 || yy2arr1186 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1186[4] { - yym1200 := z.EncBinary() - _ = yym1200 - if false { - } else { - r.EncodeBool(bool(x.Watch)) - } - } else { - r.EncodeBool(false) - } - } else { - if yyq1186[4] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("watch")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym1201 := z.EncBinary() - _ = yym1201 - if false { - } else { - r.EncodeBool(bool(x.Watch)) - } - } - } - if yyr1186 || yy2arr1186 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1186[5] { - yym1203 := z.EncBinary() - _ = yym1203 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.ResourceVersion)) - } - } else { - r.EncodeString(codecSelferC_UTF81234, "") - } - } else { - if yyq1186[5] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("resourceVersion")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym1204 := z.EncBinary() - _ = yym1204 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.ResourceVersion)) - } - } - } - if yyr1186 || yy2arr1186 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1186[6] { - if x.TimeoutSeconds == nil { - r.EncodeNil() - } else { - yy1206 := *x.TimeoutSeconds - yym1207 := z.EncBinary() - _ = yym1207 - if false { - } else { - r.EncodeInt(int64(yy1206)) - } - } - } else { - r.EncodeNil() - } - } else { - if yyq1186[6] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("timeoutSeconds")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - if x.TimeoutSeconds == nil { - r.EncodeNil() - } else { - yy1208 := *x.TimeoutSeconds - yym1209 := z.EncBinary() - _ = yym1209 - if false { - } else { - r.EncodeInt(int64(yy1208)) - } - } - } - } - if yyr1186 || yy2arr1186 { - 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 - yym1210 := z.DecBinary() - _ = yym1210 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - yyct1211 := r.ContainerType() - if yyct1211 == codecSelferValueTypeMap1234 { - yyl1211 := r.ReadMapStart() - if yyl1211 == 0 { - z.DecSendContainerState(codecSelfer_containerMapEnd1234) - } else { - x.codecDecodeSelfFromMap(yyl1211, d) - } - } else if yyct1211 == codecSelferValueTypeArray1234 { - yyl1211 := r.ReadArrayStart() - if yyl1211 == 0 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - x.codecDecodeSelfFromArray(yyl1211, 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 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 { - if r.CheckBreak() { - break - } - } - z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys1212Slc = r.DecodeBytes(yys1212Slc, true, true) - yys1212 := string(yys1212Slc) - z.DecSendContainerState(codecSelfer_containerMapValue1234) - 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 = "" - } 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) - } - yym1220 := z.DecBinary() - _ = yym1220 - if false { - } else { - *((*int64)(x.TimeoutSeconds)) = int64(r.DecodeInt(64)) - } - } - default: - z.DecStructFieldNotFound(-1, yys1212) - } // end switch yys1212 - } // end for yyj1212 - 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 yyj1221 int - var yyb1221 bool - var yyhl1221 bool = l >= 0 - yyj1221++ - if yyhl1221 { - yyb1221 = yyj1221 > l - } else { - yyb1221 = r.CheckBreak() - } - if yyb1221 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Kind = "" - } else { - x.Kind = string(r.DecodeString()) - } - yyj1221++ - if yyhl1221 { - yyb1221 = yyj1221 > l - } else { - yyb1221 = r.CheckBreak() - } - if yyb1221 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.APIVersion = "" - } else { - x.APIVersion = string(r.DecodeString()) - } - yyj1221++ - if yyhl1221 { - yyb1221 = yyj1221 > l - } else { - yyb1221 = r.CheckBreak() - } - if yyb1221 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.LabelSelector = "" - } else { - x.LabelSelector = string(r.DecodeString()) - } - yyj1221++ - if yyhl1221 { - yyb1221 = yyj1221 > l - } else { - yyb1221 = r.CheckBreak() - } - if yyb1221 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.FieldSelector = "" - } else { - x.FieldSelector = string(r.DecodeString()) - } - yyj1221++ - if yyhl1221 { - yyb1221 = yyj1221 > l - } else { - yyb1221 = r.CheckBreak() - } - if yyb1221 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Watch = false - } else { - x.Watch = bool(r.DecodeBool()) - } - yyj1221++ - if yyhl1221 { - yyb1221 = yyj1221 > l - } else { - yyb1221 = r.CheckBreak() - } - if yyb1221 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.ResourceVersion = "" - } else { - x.ResourceVersion = string(r.DecodeString()) - } - yyj1221++ - if yyhl1221 { - yyb1221 = yyj1221 > l - } else { - yyb1221 = r.CheckBreak() - } - if yyb1221 { - 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) - } - yym1229 := z.DecBinary() - _ = yym1229 - if false { - } else { - *((*int64)(x.TimeoutSeconds)) = int64(r.DecodeInt(64)) - } - } - for { - yyj1221++ - if yyhl1221 { - yyb1221 = yyj1221 > l - } else { - yyb1221 = r.CheckBreak() - } - if yyb1221 { - break - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj1221-1, "") - } - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) -} - -func (x *LabelSelector) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - if x == nil { - r.EncodeNil() - } else { - yym1230 := z.EncBinary() - _ = yym1230 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - 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 { - yynn1231 = 0 - for _, b := range yyq1231 { - if b { - yynn1231++ - } - } - r.EncodeMapStart(yynn1231) - yynn1231 = 0 - } - if yyr1231 || yy2arr1231 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1231[0] { - if x.MatchLabels == nil { - r.EncodeNil() - } else { - yym1233 := z.EncBinary() - _ = yym1233 - if false { - } else { - z.F.EncMapStringStringV(x.MatchLabels, false, e) - } - } - } else { - r.EncodeNil() - } - } else { - if yyq1231[0] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("matchLabels")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - if x.MatchLabels == nil { - r.EncodeNil() - } else { - yym1234 := z.EncBinary() - _ = yym1234 - if false { - } else { - z.F.EncMapStringStringV(x.MatchLabels, false, e) - } - } - } - } - if yyr1231 || yy2arr1231 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1231[1] { - if x.MatchExpressions == nil { - r.EncodeNil() - } else { - yym1236 := z.EncBinary() - _ = yym1236 - if false { - } else { - h.encSliceLabelSelectorRequirement(([]LabelSelectorRequirement)(x.MatchExpressions), e) - } - } - } else { - r.EncodeNil() - } - } else { - if yyq1231[1] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("matchExpressions")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - if x.MatchExpressions == nil { - r.EncodeNil() - } else { - yym1237 := z.EncBinary() - _ = yym1237 - if false { - } else { - h.encSliceLabelSelectorRequirement(([]LabelSelectorRequirement)(x.MatchExpressions), e) - } - } - } - } - if yyr1231 || yy2arr1231 { - z.EncSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - z.EncSendContainerState(codecSelfer_containerMapEnd1234) - } - } - } -} - -func (x *LabelSelector) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - yym1238 := z.DecBinary() - _ = yym1238 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - yyct1239 := r.ContainerType() - if yyct1239 == codecSelferValueTypeMap1234 { - yyl1239 := r.ReadMapStart() - if yyl1239 == 0 { - z.DecSendContainerState(codecSelfer_containerMapEnd1234) - } else { - x.codecDecodeSelfFromMap(yyl1239, d) - } - } else if yyct1239 == codecSelferValueTypeArray1234 { - yyl1239 := r.ReadArrayStart() - if yyl1239 == 0 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - x.codecDecodeSelfFromArray(yyl1239, d) - } - } else { - panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) - } - } -} - -func (x *LabelSelector) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - 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 { - if r.CheckBreak() { - break - } - } - z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys1240Slc = r.DecodeBytes(yys1240Slc, true, true) - yys1240 := string(yys1240Slc) - z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys1240 { - case "matchLabels": - if r.TryDecodeAsNil() { - x.MatchLabels = nil - } else { - yyv1241 := &x.MatchLabels - yym1242 := z.DecBinary() - _ = yym1242 - if false { - } else { - z.F.DecMapStringStringX(yyv1241, false, d) - } - } - case "matchExpressions": - if r.TryDecodeAsNil() { - x.MatchExpressions = nil - } else { - yyv1243 := &x.MatchExpressions - yym1244 := z.DecBinary() - _ = yym1244 - if false { - } else { - h.decSliceLabelSelectorRequirement((*[]LabelSelectorRequirement)(yyv1243), d) - } - } - default: - z.DecStructFieldNotFound(-1, yys1240) - } // end switch yys1240 - } // end for yyj1240 - z.DecSendContainerState(codecSelfer_containerMapEnd1234) -} - -func (x *LabelSelector) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yyj1245 int - var yyb1245 bool - var yyhl1245 bool = l >= 0 - yyj1245++ - if yyhl1245 { - yyb1245 = yyj1245 > l - } else { - yyb1245 = r.CheckBreak() - } - if yyb1245 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.MatchLabels = nil - } else { - yyv1246 := &x.MatchLabels - yym1247 := z.DecBinary() - _ = yym1247 - if false { - } else { - z.F.DecMapStringStringX(yyv1246, false, d) - } - } - yyj1245++ - if yyhl1245 { - yyb1245 = yyj1245 > l - } else { - yyb1245 = r.CheckBreak() - } - if yyb1245 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.MatchExpressions = nil - } else { - yyv1248 := &x.MatchExpressions - yym1249 := z.DecBinary() - _ = yym1249 - if false { - } else { - h.decSliceLabelSelectorRequirement((*[]LabelSelectorRequirement)(yyv1248), d) - } - } - for { - yyj1245++ - if yyhl1245 { - yyb1245 = yyj1245 > l - } else { - yyb1245 = r.CheckBreak() - } - if yyb1245 { - break - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj1245-1, "") - } - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) -} - -func (x *LabelSelectorRequirement) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - if x == nil { - r.EncodeNil() - } else { - yym1250 := z.EncBinary() - _ = yym1250 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - 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 { - yynn1251 = 2 - for _, b := range yyq1251 { - if b { - yynn1251++ - } - } - r.EncodeMapStart(yynn1251) - yynn1251 = 0 - } - if yyr1251 || yy2arr1251 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym1253 := z.EncBinary() - _ = yym1253 - 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) - yym1254 := z.EncBinary() - _ = yym1254 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Key)) - } - } - if yyr1251 || yy2arr1251 { - 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 yyr1251 || yy2arr1251 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1251[2] { - if x.Values == nil { - r.EncodeNil() - } else { - yym1257 := z.EncBinary() - _ = yym1257 - if false { - } else { - z.F.EncSliceStringV(x.Values, false, e) - } - } - } else { - r.EncodeNil() - } - } else { - if yyq1251[2] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("values")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - if x.Values == nil { - r.EncodeNil() - } else { - yym1258 := z.EncBinary() - _ = yym1258 - if false { - } else { - z.F.EncSliceStringV(x.Values, false, e) - } - } - } - } - if yyr1251 || yy2arr1251 { - z.EncSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - z.EncSendContainerState(codecSelfer_containerMapEnd1234) - } - } - } -} - -func (x *LabelSelectorRequirement) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - yym1259 := z.DecBinary() - _ = yym1259 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - yyct1260 := r.ContainerType() - if yyct1260 == codecSelferValueTypeMap1234 { - yyl1260 := r.ReadMapStart() - if yyl1260 == 0 { - z.DecSendContainerState(codecSelfer_containerMapEnd1234) - } else { - x.codecDecodeSelfFromMap(yyl1260, d) - } - } else if yyct1260 == codecSelferValueTypeArray1234 { - yyl1260 := r.ReadArrayStart() - if yyl1260 == 0 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - x.codecDecodeSelfFromArray(yyl1260, d) - } - } else { - panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) - } - } -} - -func (x *LabelSelectorRequirement) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - 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 { - if r.CheckBreak() { - break - } - } - z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys1261Slc = r.DecodeBytes(yys1261Slc, true, true) - yys1261 := string(yys1261Slc) - z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys1261 { - case "key": - if r.TryDecodeAsNil() { - x.Key = "" - } else { - x.Key = string(r.DecodeString()) - } - case "operator": - if r.TryDecodeAsNil() { - x.Operator = "" - } else { - x.Operator = LabelSelectorOperator(r.DecodeString()) - } - case "values": - if r.TryDecodeAsNil() { - x.Values = nil - } else { - yyv1264 := &x.Values - yym1265 := z.DecBinary() - _ = yym1265 - if false { - } else { - z.F.DecSliceStringX(yyv1264, false, d) - } - } - default: - z.DecStructFieldNotFound(-1, yys1261) - } // end switch yys1261 - } // end for yyj1261 - z.DecSendContainerState(codecSelfer_containerMapEnd1234) -} - -func (x *LabelSelectorRequirement) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yyj1266 int - var yyb1266 bool - var yyhl1266 bool = l >= 0 - yyj1266++ - if yyhl1266 { - yyb1266 = yyj1266 > l - } else { - yyb1266 = r.CheckBreak() - } - if yyb1266 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Key = "" - } else { - x.Key = string(r.DecodeString()) - } - yyj1266++ - if yyhl1266 { - yyb1266 = yyj1266 > l - } else { - yyb1266 = r.CheckBreak() - } - if yyb1266 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Operator = "" - } else { - x.Operator = LabelSelectorOperator(r.DecodeString()) - } - yyj1266++ - if yyhl1266 { - yyb1266 = yyj1266 > l - } else { - yyb1266 = r.CheckBreak() - } - if yyb1266 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Values = nil - } else { - yyv1269 := &x.Values - yym1270 := z.DecBinary() - _ = yym1270 - if false { - } else { - z.F.DecSliceStringX(yyv1269, false, d) - } - } - for { - yyj1266++ - if yyhl1266 { - yyb1266 = yyj1266 > l - } else { - yyb1266 = r.CheckBreak() - } - if yyb1266 { - break - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj1266-1, "") - } - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) -} - -func (x LabelSelectorOperator) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - yym1271 := z.EncBinary() - _ = yym1271 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x)) - } -} - -func (x *LabelSelectorOperator) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - yym1272 := z.DecBinary() - _ = yym1272 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - *((*string)(x)) = r.DecodeString() - } -} - func (x *ReplicaSet) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) @@ -15223,39 +14932,39 @@ func (x *ReplicaSet) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1273 := z.EncBinary() - _ = yym1273 + yym1262 := z.EncBinary() + _ = yym1262 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - 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 { + yysep1263 := !z.EncBinary() + yy2arr1263 := z.EncBasicHandle().StructToArray + var yyq1263 [5]bool + _, _, _ = yysep1263, yyq1263, yy2arr1263 + const yyr1263 bool = false + yyq1263[0] = x.Kind != "" + yyq1263[1] = x.APIVersion != "" + yyq1263[2] = true + yyq1263[3] = true + yyq1263[4] = true + var yynn1263 int + if yyr1263 || yy2arr1263 { r.EncodeArrayStart(5) } else { - yynn1274 = 0 - for _, b := range yyq1274 { + yynn1263 = 0 + for _, b := range yyq1263 { if b { - yynn1274++ + yynn1263++ } } - r.EncodeMapStart(yynn1274) - yynn1274 = 0 + r.EncodeMapStart(yynn1263) + yynn1263 = 0 } - if yyr1274 || yy2arr1274 { + if yyr1263 || yy2arr1263 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1274[0] { - yym1276 := z.EncBinary() - _ = yym1276 + if yyq1263[0] { + yym1265 := z.EncBinary() + _ = yym1265 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) @@ -15264,23 +14973,23 @@ func (x *ReplicaSet) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq1274[0] { + if yyq1263[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym1277 := z.EncBinary() - _ = yym1277 + yym1266 := z.EncBinary() + _ = yym1266 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } - if yyr1274 || yy2arr1274 { + if yyr1263 || yy2arr1263 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1274[1] { - yym1279 := z.EncBinary() - _ = yym1279 + if yyq1263[1] { + yym1268 := z.EncBinary() + _ = yym1268 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) @@ -15289,70 +14998,70 @@ func (x *ReplicaSet) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq1274[1] { + if yyq1263[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym1280 := z.EncBinary() - _ = yym1280 + yym1269 := z.EncBinary() + _ = yym1269 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } - if yyr1274 || yy2arr1274 { + if yyr1263 || yy2arr1263 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1274[2] { - yy1282 := &x.ObjectMeta - yy1282.CodecEncodeSelf(e) + if yyq1263[2] { + yy1271 := &x.ObjectMeta + yy1271.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { - if yyq1274[2] { + if yyq1263[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy1283 := &x.ObjectMeta - yy1283.CodecEncodeSelf(e) + yy1272 := &x.ObjectMeta + yy1272.CodecEncodeSelf(e) } } - if yyr1274 || yy2arr1274 { + if yyr1263 || yy2arr1263 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1274[3] { - yy1285 := &x.Spec - yy1285.CodecEncodeSelf(e) + if yyq1263[3] { + yy1274 := &x.Spec + yy1274.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { - if yyq1274[3] { + if yyq1263[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("spec")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy1286 := &x.Spec - yy1286.CodecEncodeSelf(e) + yy1275 := &x.Spec + yy1275.CodecEncodeSelf(e) } } - if yyr1274 || yy2arr1274 { + if yyr1263 || yy2arr1263 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1274[4] { - yy1288 := &x.Status - yy1288.CodecEncodeSelf(e) + if yyq1263[4] { + yy1277 := &x.Status + yy1277.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { - if yyq1274[4] { + if yyq1263[4] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("status")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy1289 := &x.Status - yy1289.CodecEncodeSelf(e) + yy1278 := &x.Status + yy1278.CodecEncodeSelf(e) } } - if yyr1274 || yy2arr1274 { + if yyr1263 || yy2arr1263 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -15365,25 +15074,25 @@ func (x *ReplicaSet) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1290 := z.DecBinary() - _ = yym1290 + yym1279 := z.DecBinary() + _ = yym1279 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct1291 := r.ContainerType() - if yyct1291 == codecSelferValueTypeMap1234 { - yyl1291 := r.ReadMapStart() - if yyl1291 == 0 { + yyct1280 := r.ContainerType() + if yyct1280 == codecSelferValueTypeMap1234 { + yyl1280 := r.ReadMapStart() + if yyl1280 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl1291, d) + x.codecDecodeSelfFromMap(yyl1280, d) } - } else if yyct1291 == codecSelferValueTypeArray1234 { - yyl1291 := r.ReadArrayStart() - if yyl1291 == 0 { + } else if yyct1280 == codecSelferValueTypeArray1234 { + yyl1280 := r.ReadArrayStart() + if yyl1280 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl1291, d) + x.codecDecodeSelfFromArray(yyl1280, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -15395,12 +15104,12 @@ func (x *ReplicaSet) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys1292Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys1292Slc - var yyhl1292 bool = l >= 0 - for yyj1292 := 0; ; yyj1292++ { - if yyhl1292 { - if yyj1292 >= 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 { @@ -15409,10 +15118,10 @@ func (x *ReplicaSet) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys1292Slc = r.DecodeBytes(yys1292Slc, true, true) - yys1292 := string(yys1292Slc) + yys1281Slc = r.DecodeBytes(yys1281Slc, true, true) + yys1281 := string(yys1281Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys1292 { + switch yys1281 { case "kind": if r.TryDecodeAsNil() { x.Kind = "" @@ -15429,27 +15138,27 @@ func (x *ReplicaSet) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.ObjectMeta = pkg2_v1.ObjectMeta{} } else { - yyv1295 := &x.ObjectMeta - yyv1295.CodecDecodeSelf(d) + yyv1284 := &x.ObjectMeta + yyv1284.CodecDecodeSelf(d) } case "spec": if r.TryDecodeAsNil() { x.Spec = ReplicaSetSpec{} } else { - yyv1296 := &x.Spec - yyv1296.CodecDecodeSelf(d) + yyv1285 := &x.Spec + yyv1285.CodecDecodeSelf(d) } case "status": if r.TryDecodeAsNil() { x.Status = ReplicaSetStatus{} } else { - yyv1297 := &x.Status - yyv1297.CodecDecodeSelf(d) + yyv1286 := &x.Status + yyv1286.CodecDecodeSelf(d) } default: - z.DecStructFieldNotFound(-1, yys1292) - } // end switch yys1292 - } // end for yyj1292 + z.DecStructFieldNotFound(-1, yys1281) + } // end switch yys1281 + } // end for yyj1281 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -15457,16 +15166,16 @@ func (x *ReplicaSet) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj1298 int - var yyb1298 bool - var yyhl1298 bool = l >= 0 - yyj1298++ - if yyhl1298 { - yyb1298 = yyj1298 > l + var yyj1287 int + var yyb1287 bool + var yyhl1287 bool = l >= 0 + yyj1287++ + if yyhl1287 { + yyb1287 = yyj1287 > l } else { - yyb1298 = r.CheckBreak() + yyb1287 = r.CheckBreak() } - if yyb1298 { + if yyb1287 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -15476,13 +15185,13 @@ func (x *ReplicaSet) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.Kind = string(r.DecodeString()) } - yyj1298++ - if yyhl1298 { - yyb1298 = yyj1298 > l + yyj1287++ + if yyhl1287 { + yyb1287 = yyj1287 > l } else { - yyb1298 = r.CheckBreak() + yyb1287 = r.CheckBreak() } - if yyb1298 { + if yyb1287 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -15492,13 +15201,13 @@ func (x *ReplicaSet) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.APIVersion = string(r.DecodeString()) } - yyj1298++ - if yyhl1298 { - yyb1298 = yyj1298 > l + yyj1287++ + if yyhl1287 { + yyb1287 = yyj1287 > l } else { - yyb1298 = r.CheckBreak() + yyb1287 = r.CheckBreak() } - if yyb1298 { + if yyb1287 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -15506,16 +15215,16 @@ func (x *ReplicaSet) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.ObjectMeta = pkg2_v1.ObjectMeta{} } else { - yyv1301 := &x.ObjectMeta - yyv1301.CodecDecodeSelf(d) + yyv1290 := &x.ObjectMeta + yyv1290.CodecDecodeSelf(d) } - yyj1298++ - if yyhl1298 { - yyb1298 = yyj1298 > l + yyj1287++ + if yyhl1287 { + yyb1287 = yyj1287 > l } else { - yyb1298 = r.CheckBreak() + yyb1287 = r.CheckBreak() } - if yyb1298 { + if yyb1287 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -15523,16 +15232,16 @@ func (x *ReplicaSet) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.Spec = ReplicaSetSpec{} } else { - yyv1302 := &x.Spec - yyv1302.CodecDecodeSelf(d) + yyv1291 := &x.Spec + yyv1291.CodecDecodeSelf(d) } - yyj1298++ - if yyhl1298 { - yyb1298 = yyj1298 > l + yyj1287++ + if yyhl1287 { + yyb1287 = yyj1287 > l } else { - yyb1298 = r.CheckBreak() + yyb1287 = r.CheckBreak() } - if yyb1298 { + if yyb1287 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -15540,21 +15249,21 @@ func (x *ReplicaSet) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.Status = ReplicaSetStatus{} } else { - yyv1303 := &x.Status - yyv1303.CodecDecodeSelf(d) + yyv1292 := &x.Status + yyv1292.CodecDecodeSelf(d) } for { - yyj1298++ - if yyhl1298 { - yyb1298 = yyj1298 > l + yyj1287++ + if yyhl1287 { + yyb1287 = yyj1287 > l } else { - yyb1298 = r.CheckBreak() + yyb1287 = r.CheckBreak() } - if yyb1298 { + if yyb1287 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj1298-1, "") + z.DecStructFieldNotFound(yyj1287-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -15566,37 +15275,37 @@ func (x *ReplicaSetList) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1304 := z.EncBinary() - _ = yym1304 + yym1293 := z.EncBinary() + _ = yym1293 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - 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 { + yysep1294 := !z.EncBinary() + yy2arr1294 := z.EncBasicHandle().StructToArray + var yyq1294 [4]bool + _, _, _ = yysep1294, yyq1294, yy2arr1294 + const yyr1294 bool = false + yyq1294[0] = x.Kind != "" + yyq1294[1] = x.APIVersion != "" + yyq1294[2] = true + var yynn1294 int + if yyr1294 || yy2arr1294 { r.EncodeArrayStart(4) } else { - yynn1305 = 1 - for _, b := range yyq1305 { + yynn1294 = 1 + for _, b := range yyq1294 { if b { - yynn1305++ + yynn1294++ } } - r.EncodeMapStart(yynn1305) - yynn1305 = 0 + r.EncodeMapStart(yynn1294) + yynn1294 = 0 } - if yyr1305 || yy2arr1305 { + if yyr1294 || yy2arr1294 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1305[0] { - yym1307 := z.EncBinary() - _ = yym1307 + if yyq1294[0] { + yym1296 := z.EncBinary() + _ = yym1296 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) @@ -15605,23 +15314,23 @@ func (x *ReplicaSetList) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq1305[0] { + if yyq1294[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym1308 := z.EncBinary() - _ = yym1308 + yym1297 := z.EncBinary() + _ = yym1297 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } - if yyr1305 || yy2arr1305 { + if yyr1294 || yy2arr1294 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1305[1] { - yym1310 := z.EncBinary() - _ = yym1310 + if yyq1294[1] { + yym1299 := z.EncBinary() + _ = yym1299 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) @@ -15630,54 +15339,54 @@ func (x *ReplicaSetList) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq1305[1] { + if yyq1294[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym1311 := z.EncBinary() - _ = yym1311 + yym1300 := z.EncBinary() + _ = yym1300 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } - if yyr1305 || yy2arr1305 { + if yyr1294 || yy2arr1294 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1305[2] { - yy1313 := &x.ListMeta - yym1314 := z.EncBinary() - _ = yym1314 + if yyq1294[2] { + yy1302 := &x.ListMeta + yym1303 := z.EncBinary() + _ = yym1303 if false { - } else if z.HasExtensions() && z.EncExt(yy1313) { + } else if z.HasExtensions() && z.EncExt(yy1302) { } else { - z.EncFallback(yy1313) + z.EncFallback(yy1302) } } else { r.EncodeNil() } } else { - if yyq1305[2] { + if yyq1294[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy1315 := &x.ListMeta - yym1316 := z.EncBinary() - _ = yym1316 + yy1304 := &x.ListMeta + yym1305 := z.EncBinary() + _ = yym1305 if false { - } else if z.HasExtensions() && z.EncExt(yy1315) { + } else if z.HasExtensions() && z.EncExt(yy1304) { } else { - z.EncFallback(yy1315) + z.EncFallback(yy1304) } } } - if yyr1305 || yy2arr1305 { + if yyr1294 || yy2arr1294 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.Items == nil { r.EncodeNil() } else { - yym1318 := z.EncBinary() - _ = yym1318 + yym1307 := z.EncBinary() + _ = yym1307 if false { } else { h.encSliceReplicaSet(([]ReplicaSet)(x.Items), e) @@ -15690,15 +15399,15 @@ func (x *ReplicaSetList) CodecEncodeSelf(e *codec1978.Encoder) { if x.Items == nil { r.EncodeNil() } else { - yym1319 := z.EncBinary() - _ = yym1319 + yym1308 := z.EncBinary() + _ = yym1308 if false { } else { h.encSliceReplicaSet(([]ReplicaSet)(x.Items), e) } } } - if yyr1305 || yy2arr1305 { + if yyr1294 || yy2arr1294 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -15711,25 +15420,25 @@ func (x *ReplicaSetList) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1320 := z.DecBinary() - _ = yym1320 + yym1309 := z.DecBinary() + _ = yym1309 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct1321 := r.ContainerType() - if yyct1321 == codecSelferValueTypeMap1234 { - yyl1321 := r.ReadMapStart() - if yyl1321 == 0 { + yyct1310 := r.ContainerType() + if yyct1310 == codecSelferValueTypeMap1234 { + yyl1310 := r.ReadMapStart() + if yyl1310 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl1321, d) + x.codecDecodeSelfFromMap(yyl1310, d) } - } else if yyct1321 == codecSelferValueTypeArray1234 { - yyl1321 := r.ReadArrayStart() - if yyl1321 == 0 { + } else if yyct1310 == codecSelferValueTypeArray1234 { + yyl1310 := r.ReadArrayStart() + if yyl1310 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl1321, d) + x.codecDecodeSelfFromArray(yyl1310, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -15741,12 +15450,12 @@ func (x *ReplicaSetList) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys1322Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys1322Slc - var yyhl1322 bool = l >= 0 - for yyj1322 := 0; ; yyj1322++ { - if yyhl1322 { - if yyj1322 >= l { + var yys1311Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys1311Slc + var yyhl1311 bool = l >= 0 + for yyj1311 := 0; ; yyj1311++ { + if yyhl1311 { + if yyj1311 >= l { break } } else { @@ -15755,10 +15464,10 @@ func (x *ReplicaSetList) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys1322Slc = r.DecodeBytes(yys1322Slc, true, true) - yys1322 := string(yys1322Slc) + yys1311Slc = r.DecodeBytes(yys1311Slc, true, true) + yys1311 := string(yys1311Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys1322 { + switch yys1311 { case "kind": if r.TryDecodeAsNil() { x.Kind = "" @@ -15775,31 +15484,31 @@ func (x *ReplicaSetList) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.ListMeta = pkg1_unversioned.ListMeta{} } else { - yyv1325 := &x.ListMeta - yym1326 := z.DecBinary() - _ = yym1326 + yyv1314 := &x.ListMeta + yym1315 := z.DecBinary() + _ = yym1315 if false { - } else if z.HasExtensions() && z.DecExt(yyv1325) { + } else if z.HasExtensions() && z.DecExt(yyv1314) { } else { - z.DecFallback(yyv1325, false) + z.DecFallback(yyv1314, false) } } case "items": if r.TryDecodeAsNil() { x.Items = nil } else { - yyv1327 := &x.Items - yym1328 := z.DecBinary() - _ = yym1328 + yyv1316 := &x.Items + yym1317 := z.DecBinary() + _ = yym1317 if false { } else { - h.decSliceReplicaSet((*[]ReplicaSet)(yyv1327), d) + h.decSliceReplicaSet((*[]ReplicaSet)(yyv1316), d) } } default: - z.DecStructFieldNotFound(-1, yys1322) - } // end switch yys1322 - } // end for yyj1322 + z.DecStructFieldNotFound(-1, yys1311) + } // end switch yys1311 + } // end for yyj1311 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -15807,16 +15516,16 @@ func (x *ReplicaSetList) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj1329 int - var yyb1329 bool - var yyhl1329 bool = l >= 0 - yyj1329++ - if yyhl1329 { - yyb1329 = yyj1329 > l + var yyj1318 int + var yyb1318 bool + var yyhl1318 bool = l >= 0 + yyj1318++ + if yyhl1318 { + yyb1318 = yyj1318 > l } else { - yyb1329 = r.CheckBreak() + yyb1318 = r.CheckBreak() } - if yyb1329 { + if yyb1318 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -15826,13 +15535,13 @@ func (x *ReplicaSetList) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.Kind = string(r.DecodeString()) } - yyj1329++ - if yyhl1329 { - yyb1329 = yyj1329 > l + yyj1318++ + if yyhl1318 { + yyb1318 = yyj1318 > l } else { - yyb1329 = r.CheckBreak() + yyb1318 = r.CheckBreak() } - if yyb1329 { + if yyb1318 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -15842,13 +15551,13 @@ func (x *ReplicaSetList) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.APIVersion = string(r.DecodeString()) } - yyj1329++ - if yyhl1329 { - yyb1329 = yyj1329 > l + yyj1318++ + if yyhl1318 { + yyb1318 = yyj1318 > l } else { - yyb1329 = r.CheckBreak() + yyb1318 = r.CheckBreak() } - if yyb1329 { + if yyb1318 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -15856,22 +15565,22 @@ func (x *ReplicaSetList) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.ListMeta = pkg1_unversioned.ListMeta{} } else { - yyv1332 := &x.ListMeta - yym1333 := z.DecBinary() - _ = yym1333 + yyv1321 := &x.ListMeta + yym1322 := z.DecBinary() + _ = yym1322 if false { - } else if z.HasExtensions() && z.DecExt(yyv1332) { + } else if z.HasExtensions() && z.DecExt(yyv1321) { } else { - z.DecFallback(yyv1332, false) + z.DecFallback(yyv1321, false) } } - yyj1329++ - if yyhl1329 { - yyb1329 = yyj1329 > l + yyj1318++ + if yyhl1318 { + yyb1318 = yyj1318 > l } else { - yyb1329 = r.CheckBreak() + yyb1318 = r.CheckBreak() } - if yyb1329 { + if yyb1318 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -15879,26 +15588,26 @@ func (x *ReplicaSetList) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.Items = nil } else { - yyv1334 := &x.Items - yym1335 := z.DecBinary() - _ = yym1335 + yyv1323 := &x.Items + yym1324 := z.DecBinary() + _ = yym1324 if false { } else { - h.decSliceReplicaSet((*[]ReplicaSet)(yyv1334), d) + h.decSliceReplicaSet((*[]ReplicaSet)(yyv1323), d) } } for { - yyj1329++ - if yyhl1329 { - yyb1329 = yyj1329 > l + yyj1318++ + if yyhl1318 { + yyb1318 = yyj1318 > l } else { - yyb1329 = r.CheckBreak() + yyb1318 = r.CheckBreak() } - if yyb1329 { + if yyb1318 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj1329-1, "") + z.DecStructFieldNotFound(yyj1318-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -15910,108 +15619,146 @@ func (x *ReplicaSetSpec) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1336 := z.EncBinary() - _ = yym1336 + yym1325 := z.EncBinary() + _ = yym1325 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - 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) + yysep1326 := !z.EncBinary() + yy2arr1326 := z.EncBasicHandle().StructToArray + var yyq1326 [4]bool + _, _, _ = yysep1326, yyq1326, yy2arr1326 + const yyr1326 bool = false + yyq1326[0] = x.Replicas != nil + yyq1326[1] = x.MinReadySeconds != 0 + yyq1326[2] = x.Selector != nil + yyq1326[3] = true + var yynn1326 int + if yyr1326 || yy2arr1326 { + r.EncodeArrayStart(4) } else { - yynn1337 = 0 - for _, b := range yyq1337 { + yynn1326 = 0 + for _, b := range yyq1326 { if b { - yynn1337++ + yynn1326++ } } - r.EncodeMapStart(yynn1337) - yynn1337 = 0 + r.EncodeMapStart(yynn1326) + yynn1326 = 0 } - if yyr1337 || yy2arr1337 { + if yyr1326 || yy2arr1326 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1337[0] { + if yyq1326[0] { if x.Replicas == nil { r.EncodeNil() } else { - yy1339 := *x.Replicas - yym1340 := z.EncBinary() - _ = yym1340 + yy1328 := *x.Replicas + yym1329 := z.EncBinary() + _ = yym1329 if false { } else { - r.EncodeInt(int64(yy1339)) + r.EncodeInt(int64(yy1328)) } } } else { r.EncodeNil() } } else { - if yyq1337[0] { + if yyq1326[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("replicas")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.Replicas == nil { r.EncodeNil() } else { - yy1341 := *x.Replicas - yym1342 := z.EncBinary() - _ = yym1342 + yy1330 := *x.Replicas + yym1331 := z.EncBinary() + _ = yym1331 if false { } else { - r.EncodeInt(int64(yy1341)) + r.EncodeInt(int64(yy1330)) } } } } - if yyr1337 || yy2arr1337 { + if yyr1326 || yy2arr1326 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1337[1] { + if yyq1326[1] { + yym1333 := z.EncBinary() + _ = yym1333 + if false { + } else { + r.EncodeInt(int64(x.MinReadySeconds)) + } + } else { + r.EncodeInt(0) + } + } else { + if yyq1326[1] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("minReadySeconds")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym1334 := z.EncBinary() + _ = yym1334 + if false { + } else { + r.EncodeInt(int64(x.MinReadySeconds)) + } + } + } + if yyr1326 || yy2arr1326 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq1326[2] { if x.Selector == nil { r.EncodeNil() } else { - x.Selector.CodecEncodeSelf(e) + yym1336 := z.EncBinary() + _ = yym1336 + if false { + } else if z.HasExtensions() && z.EncExt(x.Selector) { + } else { + z.EncFallback(x.Selector) + } } } else { r.EncodeNil() } } else { - if yyq1337[1] { + if yyq1326[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("selector")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.Selector == nil { r.EncodeNil() } else { - x.Selector.CodecEncodeSelf(e) + yym1337 := z.EncBinary() + _ = yym1337 + if false { + } else if z.HasExtensions() && z.EncExt(x.Selector) { + } else { + z.EncFallback(x.Selector) + } } } } - if yyr1337 || yy2arr1337 { + if yyr1326 || yy2arr1326 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1337[2] { - yy1345 := &x.Template - yy1345.CodecEncodeSelf(e) + if yyq1326[3] { + yy1339 := &x.Template + yy1339.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { - if yyq1337[2] { + if yyq1326[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("template")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy1346 := &x.Template - yy1346.CodecEncodeSelf(e) + yy1340 := &x.Template + yy1340.CodecEncodeSelf(e) } } - if yyr1337 || yy2arr1337 { + if yyr1326 || yy2arr1326 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -16024,25 +15771,25 @@ func (x *ReplicaSetSpec) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1347 := z.DecBinary() - _ = yym1347 + yym1341 := z.DecBinary() + _ = yym1341 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct1348 := r.ContainerType() - if yyct1348 == codecSelferValueTypeMap1234 { - yyl1348 := r.ReadMapStart() - if yyl1348 == 0 { + yyct1342 := r.ContainerType() + if yyct1342 == codecSelferValueTypeMap1234 { + yyl1342 := r.ReadMapStart() + if yyl1342 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl1348, d) + x.codecDecodeSelfFromMap(yyl1342, d) } - } else if yyct1348 == codecSelferValueTypeArray1234 { - yyl1348 := r.ReadArrayStart() - if yyl1348 == 0 { + } else if yyct1342 == codecSelferValueTypeArray1234 { + yyl1342 := r.ReadArrayStart() + if yyl1342 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl1348, d) + x.codecDecodeSelfFromArray(yyl1342, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -16054,12 +15801,12 @@ func (x *ReplicaSetSpec) 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 { + 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 { @@ -16068,10 +15815,10 @@ func (x *ReplicaSetSpec) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys1349Slc = r.DecodeBytes(yys1349Slc, true, true) - yys1349 := string(yys1349Slc) + yys1343Slc = r.DecodeBytes(yys1343Slc, true, true) + yys1343 := string(yys1343Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys1349 { + switch yys1343 { case "replicas": if r.TryDecodeAsNil() { if x.Replicas != nil { @@ -16081,13 +15828,19 @@ func (x *ReplicaSetSpec) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { if x.Replicas == nil { x.Replicas = new(int32) } - yym1351 := z.DecBinary() - _ = yym1351 + yym1345 := z.DecBinary() + _ = yym1345 if false { } else { *((*int32)(x.Replicas)) = int32(r.DecodeInt(32)) } } + case "minReadySeconds": + if r.TryDecodeAsNil() { + x.MinReadySeconds = 0 + } else { + x.MinReadySeconds = int32(r.DecodeInt(32)) + } case "selector": if r.TryDecodeAsNil() { if x.Selector != nil { @@ -16095,21 +15848,27 @@ func (x *ReplicaSetSpec) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } else { if x.Selector == nil { - x.Selector = new(LabelSelector) + x.Selector = new(pkg1_unversioned.LabelSelector) + } + yym1348 := z.DecBinary() + _ = yym1348 + if false { + } else if z.HasExtensions() && z.DecExt(x.Selector) { + } else { + z.DecFallback(x.Selector, false) } - x.Selector.CodecDecodeSelf(d) } case "template": if r.TryDecodeAsNil() { x.Template = pkg2_v1.PodTemplateSpec{} } else { - yyv1353 := &x.Template - yyv1353.CodecDecodeSelf(d) + yyv1349 := &x.Template + yyv1349.CodecDecodeSelf(d) } default: - z.DecStructFieldNotFound(-1, yys1349) - } // end switch yys1349 - } // end for yyj1349 + z.DecStructFieldNotFound(-1, yys1343) + } // end switch yys1343 + } // end for yyj1343 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -16117,16 +15876,16 @@ func (x *ReplicaSetSpec) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj1354 int - var yyb1354 bool - var yyhl1354 bool = l >= 0 - yyj1354++ - if yyhl1354 { - yyb1354 = yyj1354 > l + var yyj1350 int + var yyb1350 bool + var yyhl1350 bool = l >= 0 + yyj1350++ + if yyhl1350 { + yyb1350 = yyj1350 > l } else { - yyb1354 = r.CheckBreak() + yyb1350 = r.CheckBreak() } - if yyb1354 { + if yyb1350 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -16139,20 +15898,36 @@ func (x *ReplicaSetSpec) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if x.Replicas == nil { x.Replicas = new(int32) } - yym1356 := z.DecBinary() - _ = yym1356 + yym1352 := z.DecBinary() + _ = yym1352 if false { } else { *((*int32)(x.Replicas)) = int32(r.DecodeInt(32)) } } - yyj1354++ - if yyhl1354 { - yyb1354 = yyj1354 > l + yyj1350++ + if yyhl1350 { + yyb1350 = yyj1350 > l } else { - yyb1354 = r.CheckBreak() + yyb1350 = r.CheckBreak() } - if yyb1354 { + if yyb1350 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.MinReadySeconds = 0 + } else { + x.MinReadySeconds = int32(r.DecodeInt(32)) + } + yyj1350++ + if yyhl1350 { + yyb1350 = yyj1350 > l + } else { + yyb1350 = r.CheckBreak() + } + if yyb1350 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -16163,17 +15938,23 @@ func (x *ReplicaSetSpec) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } } else { if x.Selector == nil { - x.Selector = new(LabelSelector) + x.Selector = new(pkg1_unversioned.LabelSelector) + } + yym1355 := z.DecBinary() + _ = yym1355 + if false { + } else if z.HasExtensions() && z.DecExt(x.Selector) { + } else { + z.DecFallback(x.Selector, false) } - x.Selector.CodecDecodeSelf(d) } - yyj1354++ - if yyhl1354 { - yyb1354 = yyj1354 > l + yyj1350++ + if yyhl1350 { + yyb1350 = yyj1350 > l } else { - yyb1354 = r.CheckBreak() + yyb1350 = r.CheckBreak() } - if yyb1354 { + if yyb1350 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -16181,21 +15962,21 @@ func (x *ReplicaSetSpec) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.Template = pkg2_v1.PodTemplateSpec{} } else { - yyv1358 := &x.Template - yyv1358.CodecDecodeSelf(d) + yyv1356 := &x.Template + yyv1356.CodecDecodeSelf(d) } for { - yyj1354++ - if yyhl1354 { - yyb1354 = yyj1354 > l + yyj1350++ + if yyhl1350 { + yyb1350 = yyj1350 > l } else { - yyb1354 = r.CheckBreak() + yyb1350 = r.CheckBreak() } - if yyb1354 { + if yyb1350 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj1354-1, "") + z.DecStructFieldNotFound(yyj1350-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -16207,36 +15988,38 @@ func (x *ReplicaSetStatus) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1359 := z.EncBinary() - _ = yym1359 + yym1357 := z.EncBinary() + _ = yym1357 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - 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) + yysep1358 := !z.EncBinary() + yy2arr1358 := z.EncBasicHandle().StructToArray + var yyq1358 [6]bool + _, _, _ = yysep1358, yyq1358, yy2arr1358 + const yyr1358 bool = false + yyq1358[1] = x.FullyLabeledReplicas != 0 + yyq1358[2] = x.ReadyReplicas != 0 + yyq1358[3] = x.AvailableReplicas != 0 + yyq1358[4] = x.ObservedGeneration != 0 + yyq1358[5] = len(x.Conditions) != 0 + var yynn1358 int + if yyr1358 || yy2arr1358 { + r.EncodeArrayStart(6) } else { - yynn1360 = 1 - for _, b := range yyq1360 { + yynn1358 = 1 + for _, b := range yyq1358 { if b { - yynn1360++ + yynn1358++ } } - r.EncodeMapStart(yynn1360) - yynn1360 = 0 + r.EncodeMapStart(yynn1358) + yynn1358 = 0 } - if yyr1360 || yy2arr1360 { + if yyr1358 || yy2arr1358 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym1362 := z.EncBinary() - _ = yym1362 + yym1360 := z.EncBinary() + _ = yym1360 if false { } else { r.EncodeInt(int64(x.Replicas)) @@ -16245,18 +16028,18 @@ func (x *ReplicaSetStatus) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("replicas")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym1363 := z.EncBinary() - _ = yym1363 + yym1361 := z.EncBinary() + _ = yym1361 if false { } else { r.EncodeInt(int64(x.Replicas)) } } - if yyr1360 || yy2arr1360 { + if yyr1358 || yy2arr1358 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1360[1] { - yym1365 := z.EncBinary() - _ = yym1365 + if yyq1358[1] { + yym1363 := z.EncBinary() + _ = yym1363 if false { } else { r.EncodeInt(int64(x.FullyLabeledReplicas)) @@ -16265,24 +16048,24 @@ func (x *ReplicaSetStatus) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeInt(0) } } else { - if yyq1360[1] { + if yyq1358[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("fullyLabeledReplicas")) z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym1364 := z.EncBinary() + _ = yym1364 + if false { + } else { + r.EncodeInt(int64(x.FullyLabeledReplicas)) + } + } + } + if yyr1358 || yy2arr1358 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq1358[2] { yym1366 := z.EncBinary() _ = yym1366 if false { - } else { - r.EncodeInt(int64(x.FullyLabeledReplicas)) - } - } - } - if yyr1360 || yy2arr1360 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1360[2] { - yym1368 := z.EncBinary() - _ = yym1368 - if false { } else { r.EncodeInt(int64(x.ReadyReplicas)) } @@ -16290,44 +16073,102 @@ func (x *ReplicaSetStatus) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeInt(0) } } else { - if yyq1360[2] { + if yyq1358[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("readyReplicas")) z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym1367 := z.EncBinary() + _ = yym1367 + if false { + } else { + r.EncodeInt(int64(x.ReadyReplicas)) + } + } + } + if yyr1358 || yy2arr1358 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq1358[3] { yym1369 := z.EncBinary() _ = yym1369 if false { } else { - r.EncodeInt(int64(x.ReadyReplicas)) - } - } - } - if yyr1360 || yy2arr1360 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1360[3] { - yym1371 := z.EncBinary() - _ = yym1371 - if false { - } else { - r.EncodeInt(int64(x.ObservedGeneration)) + r.EncodeInt(int64(x.AvailableReplicas)) } } else { r.EncodeInt(0) } } else { - if yyq1360[3] { + if yyq1358[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("observedGeneration")) + r.EncodeString(codecSelferC_UTF81234, string("availableReplicas")) z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym1370 := z.EncBinary() + _ = yym1370 + if false { + } else { + r.EncodeInt(int64(x.AvailableReplicas)) + } + } + } + if yyr1358 || yy2arr1358 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq1358[4] { yym1372 := z.EncBinary() _ = yym1372 if false { } else { r.EncodeInt(int64(x.ObservedGeneration)) } + } else { + r.EncodeInt(0) + } + } else { + if yyq1358[4] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("observedGeneration")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym1373 := z.EncBinary() + _ = yym1373 + if false { + } else { + r.EncodeInt(int64(x.ObservedGeneration)) + } } } - if yyr1360 || yy2arr1360 { + if yyr1358 || yy2arr1358 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq1358[5] { + if x.Conditions == nil { + r.EncodeNil() + } else { + yym1375 := z.EncBinary() + _ = yym1375 + if false { + } else { + h.encSliceReplicaSetCondition(([]ReplicaSetCondition)(x.Conditions), e) + } + } + } else { + r.EncodeNil() + } + } else { + if yyq1358[5] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("conditions")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + if x.Conditions == nil { + r.EncodeNil() + } else { + yym1376 := z.EncBinary() + _ = yym1376 + if false { + } else { + h.encSliceReplicaSetCondition(([]ReplicaSetCondition)(x.Conditions), e) + } + } + } + } + if yyr1358 || yy2arr1358 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -16340,25 +16181,25 @@ func (x *ReplicaSetStatus) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1373 := z.DecBinary() - _ = yym1373 + yym1377 := z.DecBinary() + _ = yym1377 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct1374 := r.ContainerType() - if yyct1374 == codecSelferValueTypeMap1234 { - yyl1374 := r.ReadMapStart() - if yyl1374 == 0 { + yyct1378 := r.ContainerType() + if yyct1378 == codecSelferValueTypeMap1234 { + yyl1378 := r.ReadMapStart() + if yyl1378 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl1374, d) + x.codecDecodeSelfFromMap(yyl1378, d) } - } else if yyct1374 == codecSelferValueTypeArray1234 { - yyl1374 := r.ReadArrayStart() - if yyl1374 == 0 { + } else if yyct1378 == codecSelferValueTypeArray1234 { + yyl1378 := r.ReadArrayStart() + if yyl1378 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl1374, d) + x.codecDecodeSelfFromArray(yyl1378, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -16370,12 +16211,12 @@ func (x *ReplicaSetStatus) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys1375Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys1375Slc - var yyhl1375 bool = l >= 0 - for yyj1375 := 0; ; yyj1375++ { - if yyhl1375 { - if yyj1375 >= 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 { @@ -16384,10 +16225,10 @@ func (x *ReplicaSetStatus) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys1375Slc = r.DecodeBytes(yys1375Slc, true, true) - yys1375 := string(yys1375Slc) + yys1379Slc = r.DecodeBytes(yys1379Slc, true, true) + yys1379 := string(yys1379Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys1375 { + switch yys1379 { case "replicas": if r.TryDecodeAsNil() { x.Replicas = 0 @@ -16406,16 +16247,34 @@ func (x *ReplicaSetStatus) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } else { x.ReadyReplicas = int32(r.DecodeInt(32)) } + case "availableReplicas": + if r.TryDecodeAsNil() { + x.AvailableReplicas = 0 + } else { + x.AvailableReplicas = int32(r.DecodeInt(32)) + } case "observedGeneration": if r.TryDecodeAsNil() { x.ObservedGeneration = 0 } else { x.ObservedGeneration = int64(r.DecodeInt(64)) } + case "conditions": + if r.TryDecodeAsNil() { + x.Conditions = nil + } else { + yyv1385 := &x.Conditions + yym1386 := z.DecBinary() + _ = yym1386 + if false { + } else { + h.decSliceReplicaSetCondition((*[]ReplicaSetCondition)(yyv1385), d) + } + } default: - z.DecStructFieldNotFound(-1, yys1375) - } // end switch yys1375 - } // end for yyj1375 + z.DecStructFieldNotFound(-1, yys1379) + } // end switch yys1379 + } // end for yyj1379 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -16423,16 +16282,16 @@ func (x *ReplicaSetStatus) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj1380 int - var yyb1380 bool - var yyhl1380 bool = l >= 0 - yyj1380++ - if yyhl1380 { - yyb1380 = yyj1380 > l + var yyj1387 int + var yyb1387 bool + var yyhl1387 bool = l >= 0 + yyj1387++ + if yyhl1387 { + yyb1387 = yyj1387 > l } else { - yyb1380 = r.CheckBreak() + yyb1387 = r.CheckBreak() } - if yyb1380 { + if yyb1387 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -16442,13 +16301,13 @@ func (x *ReplicaSetStatus) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) } else { x.Replicas = int32(r.DecodeInt(32)) } - yyj1380++ - if yyhl1380 { - yyb1380 = yyj1380 > l + yyj1387++ + if yyhl1387 { + yyb1387 = yyj1387 > l } else { - yyb1380 = r.CheckBreak() + yyb1387 = r.CheckBreak() } - if yyb1380 { + if yyb1387 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -16458,13 +16317,13 @@ func (x *ReplicaSetStatus) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) } else { x.FullyLabeledReplicas = int32(r.DecodeInt(32)) } - yyj1380++ - if yyhl1380 { - yyb1380 = yyj1380 > l + yyj1387++ + if yyhl1387 { + yyb1387 = yyj1387 > l } else { - yyb1380 = r.CheckBreak() + yyb1387 = r.CheckBreak() } - if yyb1380 { + if yyb1387 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -16474,13 +16333,29 @@ func (x *ReplicaSetStatus) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) } else { x.ReadyReplicas = int32(r.DecodeInt(32)) } - yyj1380++ - if yyhl1380 { - yyb1380 = yyj1380 > l + yyj1387++ + if yyhl1387 { + yyb1387 = yyj1387 > l } else { - yyb1380 = r.CheckBreak() + yyb1387 = r.CheckBreak() } - if yyb1380 { + if yyb1387 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.AvailableReplicas = 0 + } else { + x.AvailableReplicas = int32(r.DecodeInt(32)) + } + yyj1387++ + if yyhl1387 { + yyb1387 = yyj1387 > l + } else { + yyb1387 = r.CheckBreak() + } + if yyb1387 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -16490,18 +16365,439 @@ func (x *ReplicaSetStatus) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) } else { x.ObservedGeneration = int64(r.DecodeInt(64)) } - for { - yyj1380++ - if yyhl1380 { - yyb1380 = yyj1380 > l + yyj1387++ + if yyhl1387 { + yyb1387 = yyj1387 > l + } else { + yyb1387 = r.CheckBreak() + } + if yyb1387 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Conditions = nil + } else { + yyv1393 := &x.Conditions + yym1394 := z.DecBinary() + _ = yym1394 + if false { } else { - yyb1380 = r.CheckBreak() + h.decSliceReplicaSetCondition((*[]ReplicaSetCondition)(yyv1393), d) } - if yyb1380 { + } + for { + yyj1387++ + if yyhl1387 { + yyb1387 = yyj1387 > l + } else { + yyb1387 = r.CheckBreak() + } + if yyb1387 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj1380-1, "") + z.DecStructFieldNotFound(yyj1387-1, "") + } + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) +} + +func (x ReplicaSetConditionType) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + yym1395 := z.EncBinary() + _ = yym1395 + if false { + } else if z.HasExtensions() && z.EncExt(x) { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x)) + } +} + +func (x *ReplicaSetConditionType) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + yym1396 := z.DecBinary() + _ = yym1396 + if false { + } else if z.HasExtensions() && z.DecExt(x) { + } else { + *((*string)(x)) = r.DecodeString() + } +} + +func (x *ReplicaSetCondition) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + yym1397 := z.EncBinary() + _ = yym1397 + if false { + } else if z.HasExtensions() && z.EncExt(x) { + } else { + yysep1398 := !z.EncBinary() + yy2arr1398 := z.EncBasicHandle().StructToArray + var yyq1398 [5]bool + _, _, _ = yysep1398, yyq1398, yy2arr1398 + const yyr1398 bool = false + yyq1398[2] = true + yyq1398[3] = x.Reason != "" + yyq1398[4] = x.Message != "" + var yynn1398 int + if yyr1398 || yy2arr1398 { + r.EncodeArrayStart(5) + } else { + yynn1398 = 2 + for _, b := range yyq1398 { + if b { + yynn1398++ + } + } + r.EncodeMapStart(yynn1398) + yynn1398 = 0 + } + if yyr1398 || yy2arr1398 { + 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 yyr1398 || yy2arr1398 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yym1401 := z.EncBinary() + _ = yym1401 + 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) + yym1402 := z.EncBinary() + _ = yym1402 + if false { + } else if z.HasExtensions() && z.EncExt(x.Status) { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Status)) + } + } + if yyr1398 || yy2arr1398 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq1398[2] { + yy1404 := &x.LastTransitionTime + yym1405 := z.EncBinary() + _ = yym1405 + if false { + } else if z.HasExtensions() && z.EncExt(yy1404) { + } else if yym1405 { + z.EncBinaryMarshal(yy1404) + } else if !yym1405 && z.IsJSONHandle() { + z.EncJSONMarshal(yy1404) + } else { + z.EncFallback(yy1404) + } + } else { + r.EncodeNil() + } + } else { + if yyq1398[2] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("lastTransitionTime")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yy1406 := &x.LastTransitionTime + yym1407 := z.EncBinary() + _ = yym1407 + if false { + } else if z.HasExtensions() && z.EncExt(yy1406) { + } else if yym1407 { + z.EncBinaryMarshal(yy1406) + } else if !yym1407 && z.IsJSONHandle() { + z.EncJSONMarshal(yy1406) + } else { + z.EncFallback(yy1406) + } + } + } + if yyr1398 || yy2arr1398 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq1398[3] { + yym1409 := z.EncBinary() + _ = yym1409 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Reason)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq1398[3] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("reason")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym1410 := z.EncBinary() + _ = yym1410 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Reason)) + } + } + } + if yyr1398 || yy2arr1398 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq1398[4] { + yym1412 := z.EncBinary() + _ = yym1412 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Message)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq1398[4] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("message")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym1413 := z.EncBinary() + _ = yym1413 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Message)) + } + } + } + if yyr1398 || yy2arr1398 { + z.EncSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + z.EncSendContainerState(codecSelfer_containerMapEnd1234) + } + } + } +} + +func (x *ReplicaSetCondition) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + yym1414 := z.DecBinary() + _ = yym1414 + if false { + } else if z.HasExtensions() && z.DecExt(x) { + } else { + yyct1415 := r.ContainerType() + if yyct1415 == codecSelferValueTypeMap1234 { + yyl1415 := r.ReadMapStart() + if yyl1415 == 0 { + z.DecSendContainerState(codecSelfer_containerMapEnd1234) + } else { + x.codecDecodeSelfFromMap(yyl1415, d) + } + } else if yyct1415 == codecSelferValueTypeArray1234 { + yyl1415 := r.ReadArrayStart() + if yyl1415 == 0 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + x.codecDecodeSelfFromArray(yyl1415, d) + } + } else { + panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) + } + } +} + +func (x *ReplicaSetCondition) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yys1416Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys1416Slc + var yyhl1416 bool = l >= 0 + for yyj1416 := 0; ; yyj1416++ { + if yyhl1416 { + if yyj1416 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + z.DecSendContainerState(codecSelfer_containerMapKey1234) + yys1416Slc = r.DecodeBytes(yys1416Slc, true, true) + yys1416 := string(yys1416Slc) + z.DecSendContainerState(codecSelfer_containerMapValue1234) + switch yys1416 { + case "type": + if r.TryDecodeAsNil() { + x.Type = "" + } else { + x.Type = ReplicaSetConditionType(r.DecodeString()) + } + case "status": + if r.TryDecodeAsNil() { + x.Status = "" + } else { + x.Status = pkg2_v1.ConditionStatus(r.DecodeString()) + } + case "lastTransitionTime": + if r.TryDecodeAsNil() { + x.LastTransitionTime = pkg1_unversioned.Time{} + } else { + yyv1419 := &x.LastTransitionTime + yym1420 := z.DecBinary() + _ = yym1420 + if false { + } else if z.HasExtensions() && z.DecExt(yyv1419) { + } else if yym1420 { + z.DecBinaryUnmarshal(yyv1419) + } else if !yym1420 && z.IsJSONHandle() { + z.DecJSONUnmarshal(yyv1419) + } else { + z.DecFallback(yyv1419, 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, yys1416) + } // end switch yys1416 + } // end for yyj1416 + z.DecSendContainerState(codecSelfer_containerMapEnd1234) +} + +func (x *ReplicaSetCondition) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj1423 int + var yyb1423 bool + var yyhl1423 bool = l >= 0 + yyj1423++ + if yyhl1423 { + yyb1423 = yyj1423 > l + } else { + yyb1423 = r.CheckBreak() + } + if yyb1423 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Type = "" + } else { + x.Type = ReplicaSetConditionType(r.DecodeString()) + } + yyj1423++ + if yyhl1423 { + yyb1423 = yyj1423 > l + } else { + yyb1423 = r.CheckBreak() + } + if yyb1423 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Status = "" + } else { + x.Status = pkg2_v1.ConditionStatus(r.DecodeString()) + } + yyj1423++ + if yyhl1423 { + yyb1423 = yyj1423 > l + } else { + yyb1423 = r.CheckBreak() + } + if yyb1423 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.LastTransitionTime = pkg1_unversioned.Time{} + } else { + yyv1426 := &x.LastTransitionTime + yym1427 := z.DecBinary() + _ = yym1427 + if false { + } else if z.HasExtensions() && z.DecExt(yyv1426) { + } else if yym1427 { + z.DecBinaryUnmarshal(yyv1426) + } else if !yym1427 && z.IsJSONHandle() { + z.DecJSONUnmarshal(yyv1426) + } else { + z.DecFallback(yyv1426, false) + } + } + yyj1423++ + if yyhl1423 { + yyb1423 = yyj1423 > l + } else { + yyb1423 = r.CheckBreak() + } + if yyb1423 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Reason = "" + } else { + x.Reason = string(r.DecodeString()) + } + yyj1423++ + if yyhl1423 { + yyb1423 = yyj1423 > l + } else { + yyb1423 = r.CheckBreak() + } + if yyb1423 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Message = "" + } else { + x.Message = string(r.DecodeString()) + } + for { + yyj1423++ + if yyhl1423 { + yyb1423 = yyj1423 > l + } else { + yyb1423 = r.CheckBreak() + } + if yyb1423 { + break + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + z.DecStructFieldNotFound(yyj1423-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -16513,38 +16809,38 @@ func (x *PodSecurityPolicy) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1385 := z.EncBinary() - _ = yym1385 + yym1430 := z.EncBinary() + _ = yym1430 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - 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 { + yysep1431 := !z.EncBinary() + yy2arr1431 := z.EncBasicHandle().StructToArray + var yyq1431 [4]bool + _, _, _ = yysep1431, yyq1431, yy2arr1431 + const yyr1431 bool = false + yyq1431[0] = x.Kind != "" + yyq1431[1] = x.APIVersion != "" + yyq1431[2] = true + yyq1431[3] = true + var yynn1431 int + if yyr1431 || yy2arr1431 { r.EncodeArrayStart(4) } else { - yynn1386 = 0 - for _, b := range yyq1386 { + yynn1431 = 0 + for _, b := range yyq1431 { if b { - yynn1386++ + yynn1431++ } } - r.EncodeMapStart(yynn1386) - yynn1386 = 0 + r.EncodeMapStart(yynn1431) + yynn1431 = 0 } - if yyr1386 || yy2arr1386 { + if yyr1431 || yy2arr1431 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1386[0] { - yym1388 := z.EncBinary() - _ = yym1388 + if yyq1431[0] { + yym1433 := z.EncBinary() + _ = yym1433 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) @@ -16553,23 +16849,23 @@ func (x *PodSecurityPolicy) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq1386[0] { + if yyq1431[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym1389 := z.EncBinary() - _ = yym1389 + yym1434 := z.EncBinary() + _ = yym1434 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } - if yyr1386 || yy2arr1386 { + if yyr1431 || yy2arr1431 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1386[1] { - yym1391 := z.EncBinary() - _ = yym1391 + if yyq1431[1] { + yym1436 := z.EncBinary() + _ = yym1436 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) @@ -16578,53 +16874,53 @@ func (x *PodSecurityPolicy) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq1386[1] { + if yyq1431[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym1392 := z.EncBinary() - _ = yym1392 + yym1437 := z.EncBinary() + _ = yym1437 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } - if yyr1386 || yy2arr1386 { + if yyr1431 || yy2arr1431 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1386[2] { - yy1394 := &x.ObjectMeta - yy1394.CodecEncodeSelf(e) + if yyq1431[2] { + yy1439 := &x.ObjectMeta + yy1439.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { - if yyq1386[2] { + if yyq1431[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy1395 := &x.ObjectMeta - yy1395.CodecEncodeSelf(e) + yy1440 := &x.ObjectMeta + yy1440.CodecEncodeSelf(e) } } - if yyr1386 || yy2arr1386 { + if yyr1431 || yy2arr1431 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1386[3] { - yy1397 := &x.Spec - yy1397.CodecEncodeSelf(e) + if yyq1431[3] { + yy1442 := &x.Spec + yy1442.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { - if yyq1386[3] { + if yyq1431[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("spec")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy1398 := &x.Spec - yy1398.CodecEncodeSelf(e) + yy1443 := &x.Spec + yy1443.CodecEncodeSelf(e) } } - if yyr1386 || yy2arr1386 { + if yyr1431 || yy2arr1431 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -16637,25 +16933,25 @@ func (x *PodSecurityPolicy) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1399 := z.DecBinary() - _ = yym1399 + yym1444 := z.DecBinary() + _ = yym1444 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct1400 := r.ContainerType() - if yyct1400 == codecSelferValueTypeMap1234 { - yyl1400 := r.ReadMapStart() - if yyl1400 == 0 { + yyct1445 := r.ContainerType() + if yyct1445 == codecSelferValueTypeMap1234 { + yyl1445 := r.ReadMapStart() + if yyl1445 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl1400, d) + x.codecDecodeSelfFromMap(yyl1445, d) } - } else if yyct1400 == codecSelferValueTypeArray1234 { - yyl1400 := r.ReadArrayStart() - if yyl1400 == 0 { + } else if yyct1445 == codecSelferValueTypeArray1234 { + yyl1445 := r.ReadArrayStart() + if yyl1445 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl1400, d) + x.codecDecodeSelfFromArray(yyl1445, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -16667,12 +16963,12 @@ func (x *PodSecurityPolicy) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys1401Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys1401Slc - var yyhl1401 bool = l >= 0 - for yyj1401 := 0; ; yyj1401++ { - if yyhl1401 { - if yyj1401 >= l { + var yys1446Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys1446Slc + var yyhl1446 bool = l >= 0 + for yyj1446 := 0; ; yyj1446++ { + if yyhl1446 { + if yyj1446 >= l { break } } else { @@ -16681,10 +16977,10 @@ func (x *PodSecurityPolicy) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys1401Slc = r.DecodeBytes(yys1401Slc, true, true) - yys1401 := string(yys1401Slc) + yys1446Slc = r.DecodeBytes(yys1446Slc, true, true) + yys1446 := string(yys1446Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys1401 { + switch yys1446 { case "kind": if r.TryDecodeAsNil() { x.Kind = "" @@ -16701,20 +16997,20 @@ func (x *PodSecurityPolicy) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) if r.TryDecodeAsNil() { x.ObjectMeta = pkg2_v1.ObjectMeta{} } else { - yyv1404 := &x.ObjectMeta - yyv1404.CodecDecodeSelf(d) + yyv1449 := &x.ObjectMeta + yyv1449.CodecDecodeSelf(d) } case "spec": if r.TryDecodeAsNil() { x.Spec = PodSecurityPolicySpec{} } else { - yyv1405 := &x.Spec - yyv1405.CodecDecodeSelf(d) + yyv1450 := &x.Spec + yyv1450.CodecDecodeSelf(d) } default: - z.DecStructFieldNotFound(-1, yys1401) - } // end switch yys1401 - } // end for yyj1401 + z.DecStructFieldNotFound(-1, yys1446) + } // end switch yys1446 + } // end for yyj1446 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -16722,16 +17018,16 @@ func (x *PodSecurityPolicy) codecDecodeSelfFromArray(l int, d *codec1978.Decoder var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj1406 int - var yyb1406 bool - var yyhl1406 bool = l >= 0 - yyj1406++ - if yyhl1406 { - yyb1406 = yyj1406 > l + var yyj1451 int + var yyb1451 bool + var yyhl1451 bool = l >= 0 + yyj1451++ + if yyhl1451 { + yyb1451 = yyj1451 > l } else { - yyb1406 = r.CheckBreak() + yyb1451 = r.CheckBreak() } - if yyb1406 { + if yyb1451 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -16741,13 +17037,13 @@ func (x *PodSecurityPolicy) codecDecodeSelfFromArray(l int, d *codec1978.Decoder } else { x.Kind = string(r.DecodeString()) } - yyj1406++ - if yyhl1406 { - yyb1406 = yyj1406 > l + yyj1451++ + if yyhl1451 { + yyb1451 = yyj1451 > l } else { - yyb1406 = r.CheckBreak() + yyb1451 = r.CheckBreak() } - if yyb1406 { + if yyb1451 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -16757,13 +17053,13 @@ func (x *PodSecurityPolicy) codecDecodeSelfFromArray(l int, d *codec1978.Decoder } else { x.APIVersion = string(r.DecodeString()) } - yyj1406++ - if yyhl1406 { - yyb1406 = yyj1406 > l + yyj1451++ + if yyhl1451 { + yyb1451 = yyj1451 > l } else { - yyb1406 = r.CheckBreak() + yyb1451 = r.CheckBreak() } - if yyb1406 { + if yyb1451 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -16771,16 +17067,16 @@ func (x *PodSecurityPolicy) codecDecodeSelfFromArray(l int, d *codec1978.Decoder if r.TryDecodeAsNil() { x.ObjectMeta = pkg2_v1.ObjectMeta{} } else { - yyv1409 := &x.ObjectMeta - yyv1409.CodecDecodeSelf(d) + yyv1454 := &x.ObjectMeta + yyv1454.CodecDecodeSelf(d) } - yyj1406++ - if yyhl1406 { - yyb1406 = yyj1406 > l + yyj1451++ + if yyhl1451 { + yyb1451 = yyj1451 > l } else { - yyb1406 = r.CheckBreak() + yyb1451 = r.CheckBreak() } - if yyb1406 { + if yyb1451 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -16788,21 +17084,21 @@ func (x *PodSecurityPolicy) codecDecodeSelfFromArray(l int, d *codec1978.Decoder if r.TryDecodeAsNil() { x.Spec = PodSecurityPolicySpec{} } else { - yyv1410 := &x.Spec - yyv1410.CodecDecodeSelf(d) + yyv1455 := &x.Spec + yyv1455.CodecDecodeSelf(d) } for { - yyj1406++ - if yyhl1406 { - yyb1406 = yyj1406 > l + yyj1451++ + if yyhl1451 { + yyb1451 = yyj1451 > l } else { - yyb1406 = r.CheckBreak() + yyb1451 = r.CheckBreak() } - if yyb1406 { + if yyb1451 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj1406-1, "") + z.DecStructFieldNotFound(yyj1451-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -16814,44 +17110,44 @@ func (x *PodSecurityPolicySpec) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1411 := z.EncBinary() - _ = yym1411 + yym1456 := z.EncBinary() + _ = yym1456 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - 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 { + yysep1457 := !z.EncBinary() + yy2arr1457 := z.EncBasicHandle().StructToArray + var yyq1457 [14]bool + _, _, _ = yysep1457, yyq1457, yy2arr1457 + const yyr1457 bool = false + yyq1457[0] = x.Privileged != false + yyq1457[1] = len(x.DefaultAddCapabilities) != 0 + yyq1457[2] = len(x.RequiredDropCapabilities) != 0 + yyq1457[3] = len(x.AllowedCapabilities) != 0 + yyq1457[4] = len(x.Volumes) != 0 + yyq1457[5] = x.HostNetwork != false + yyq1457[6] = len(x.HostPorts) != 0 + yyq1457[7] = x.HostPID != false + yyq1457[8] = x.HostIPC != false + yyq1457[13] = x.ReadOnlyRootFilesystem != false + var yynn1457 int + if yyr1457 || yy2arr1457 { r.EncodeArrayStart(14) } else { - yynn1412 = 4 - for _, b := range yyq1412 { + yynn1457 = 4 + for _, b := range yyq1457 { if b { - yynn1412++ + yynn1457++ } } - r.EncodeMapStart(yynn1412) - yynn1412 = 0 + r.EncodeMapStart(yynn1457) + yynn1457 = 0 } - if yyr1412 || yy2arr1412 { + if yyr1457 || yy2arr1457 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1412[0] { - yym1414 := z.EncBinary() - _ = yym1414 + if yyq1457[0] { + yym1459 := z.EncBinary() + _ = yym1459 if false { } else { r.EncodeBool(bool(x.Privileged)) @@ -16860,26 +17156,26 @@ func (x *PodSecurityPolicySpec) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeBool(false) } } else { - if yyq1412[0] { + if yyq1457[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("privileged")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym1415 := z.EncBinary() - _ = yym1415 + yym1460 := z.EncBinary() + _ = yym1460 if false { } else { r.EncodeBool(bool(x.Privileged)) } } } - if yyr1412 || yy2arr1412 { + if yyr1457 || yy2arr1457 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1412[1] { + if yyq1457[1] { if x.DefaultAddCapabilities == nil { r.EncodeNil() } else { - yym1417 := z.EncBinary() - _ = yym1417 + yym1462 := z.EncBinary() + _ = yym1462 if false { } else { h.encSlicev1_Capability(([]pkg2_v1.Capability)(x.DefaultAddCapabilities), e) @@ -16889,15 +17185,15 @@ func (x *PodSecurityPolicySpec) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq1412[1] { + if yyq1457[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("defaultAddCapabilities")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.DefaultAddCapabilities == nil { r.EncodeNil() } else { - yym1418 := z.EncBinary() - _ = yym1418 + yym1463 := z.EncBinary() + _ = yym1463 if false { } else { h.encSlicev1_Capability(([]pkg2_v1.Capability)(x.DefaultAddCapabilities), e) @@ -16905,14 +17201,14 @@ func (x *PodSecurityPolicySpec) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr1412 || yy2arr1412 { + if yyr1457 || yy2arr1457 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1412[2] { + if yyq1457[2] { if x.RequiredDropCapabilities == nil { r.EncodeNil() } else { - yym1420 := z.EncBinary() - _ = yym1420 + yym1465 := z.EncBinary() + _ = yym1465 if false { } else { h.encSlicev1_Capability(([]pkg2_v1.Capability)(x.RequiredDropCapabilities), e) @@ -16922,15 +17218,15 @@ func (x *PodSecurityPolicySpec) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq1412[2] { + if yyq1457[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("requiredDropCapabilities")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.RequiredDropCapabilities == nil { r.EncodeNil() } else { - yym1421 := z.EncBinary() - _ = yym1421 + yym1466 := z.EncBinary() + _ = yym1466 if false { } else { h.encSlicev1_Capability(([]pkg2_v1.Capability)(x.RequiredDropCapabilities), e) @@ -16938,14 +17234,14 @@ func (x *PodSecurityPolicySpec) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr1412 || yy2arr1412 { + if yyr1457 || yy2arr1457 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1412[3] { + if yyq1457[3] { if x.AllowedCapabilities == nil { r.EncodeNil() } else { - yym1423 := z.EncBinary() - _ = yym1423 + yym1468 := z.EncBinary() + _ = yym1468 if false { } else { h.encSlicev1_Capability(([]pkg2_v1.Capability)(x.AllowedCapabilities), e) @@ -16955,15 +17251,15 @@ func (x *PodSecurityPolicySpec) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq1412[3] { + if yyq1457[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("allowedCapabilities")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.AllowedCapabilities == nil { r.EncodeNil() } else { - yym1424 := z.EncBinary() - _ = yym1424 + yym1469 := z.EncBinary() + _ = yym1469 if false { } else { h.encSlicev1_Capability(([]pkg2_v1.Capability)(x.AllowedCapabilities), e) @@ -16971,14 +17267,14 @@ func (x *PodSecurityPolicySpec) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr1412 || yy2arr1412 { + if yyr1457 || yy2arr1457 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1412[4] { + if yyq1457[4] { if x.Volumes == nil { r.EncodeNil() } else { - yym1426 := z.EncBinary() - _ = yym1426 + yym1471 := z.EncBinary() + _ = yym1471 if false { } else { h.encSliceFSType(([]FSType)(x.Volumes), e) @@ -16988,15 +17284,15 @@ func (x *PodSecurityPolicySpec) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq1412[4] { + if yyq1457[4] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("volumes")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.Volumes == nil { r.EncodeNil() } else { - yym1427 := z.EncBinary() - _ = yym1427 + yym1472 := z.EncBinary() + _ = yym1472 if false { } else { h.encSliceFSType(([]FSType)(x.Volumes), e) @@ -17004,11 +17300,11 @@ func (x *PodSecurityPolicySpec) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr1412 || yy2arr1412 { + if yyr1457 || yy2arr1457 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1412[5] { - yym1429 := z.EncBinary() - _ = yym1429 + if yyq1457[5] { + yym1474 := z.EncBinary() + _ = yym1474 if false { } else { r.EncodeBool(bool(x.HostNetwork)) @@ -17017,26 +17313,26 @@ func (x *PodSecurityPolicySpec) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeBool(false) } } else { - if yyq1412[5] { + if yyq1457[5] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("hostNetwork")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym1430 := z.EncBinary() - _ = yym1430 + yym1475 := z.EncBinary() + _ = yym1475 if false { } else { r.EncodeBool(bool(x.HostNetwork)) } } } - if yyr1412 || yy2arr1412 { + if yyr1457 || yy2arr1457 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1412[6] { + if yyq1457[6] { if x.HostPorts == nil { r.EncodeNil() } else { - yym1432 := z.EncBinary() - _ = yym1432 + yym1477 := z.EncBinary() + _ = yym1477 if false { } else { h.encSliceHostPortRange(([]HostPortRange)(x.HostPorts), e) @@ -17046,15 +17342,15 @@ func (x *PodSecurityPolicySpec) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq1412[6] { + if yyq1457[6] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("hostPorts")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.HostPorts == nil { r.EncodeNil() } else { - yym1433 := z.EncBinary() - _ = yym1433 + yym1478 := z.EncBinary() + _ = yym1478 if false { } else { h.encSliceHostPortRange(([]HostPortRange)(x.HostPorts), e) @@ -17062,11 +17358,11 @@ func (x *PodSecurityPolicySpec) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr1412 || yy2arr1412 { + if yyr1457 || yy2arr1457 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1412[7] { - yym1435 := z.EncBinary() - _ = yym1435 + if yyq1457[7] { + yym1480 := z.EncBinary() + _ = yym1480 if false { } else { r.EncodeBool(bool(x.HostPID)) @@ -17075,23 +17371,23 @@ func (x *PodSecurityPolicySpec) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeBool(false) } } else { - if yyq1412[7] { + if yyq1457[7] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("hostPID")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym1436 := z.EncBinary() - _ = yym1436 + yym1481 := z.EncBinary() + _ = yym1481 if false { } else { r.EncodeBool(bool(x.HostPID)) } } } - if yyr1412 || yy2arr1412 { + if yyr1457 || yy2arr1457 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1412[8] { - yym1438 := z.EncBinary() - _ = yym1438 + if yyq1457[8] { + yym1483 := z.EncBinary() + _ = yym1483 if false { } else { r.EncodeBool(bool(x.HostIPC)) @@ -17100,67 +17396,67 @@ func (x *PodSecurityPolicySpec) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeBool(false) } } else { - if yyq1412[8] { + if yyq1457[8] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("hostIPC")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym1439 := z.EncBinary() - _ = yym1439 + yym1484 := z.EncBinary() + _ = yym1484 if false { } else { r.EncodeBool(bool(x.HostIPC)) } } } - if yyr1412 || yy2arr1412 { + if yyr1457 || yy2arr1457 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy1441 := &x.SELinux - yy1441.CodecEncodeSelf(e) + yy1486 := &x.SELinux + yy1486.CodecEncodeSelf(e) } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("seLinux")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy1442 := &x.SELinux - yy1442.CodecEncodeSelf(e) + yy1487 := &x.SELinux + yy1487.CodecEncodeSelf(e) } - if yyr1412 || yy2arr1412 { + if yyr1457 || yy2arr1457 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy1444 := &x.RunAsUser - yy1444.CodecEncodeSelf(e) + yy1489 := &x.RunAsUser + yy1489.CodecEncodeSelf(e) } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("runAsUser")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy1445 := &x.RunAsUser - yy1445.CodecEncodeSelf(e) + yy1490 := &x.RunAsUser + yy1490.CodecEncodeSelf(e) } - if yyr1412 || yy2arr1412 { + if yyr1457 || yy2arr1457 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy1447 := &x.SupplementalGroups - yy1447.CodecEncodeSelf(e) + yy1492 := &x.SupplementalGroups + yy1492.CodecEncodeSelf(e) } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("supplementalGroups")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy1448 := &x.SupplementalGroups - yy1448.CodecEncodeSelf(e) + yy1493 := &x.SupplementalGroups + yy1493.CodecEncodeSelf(e) } - if yyr1412 || yy2arr1412 { + if yyr1457 || yy2arr1457 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy1450 := &x.FSGroup - yy1450.CodecEncodeSelf(e) + yy1495 := &x.FSGroup + yy1495.CodecEncodeSelf(e) } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("fsGroup")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy1451 := &x.FSGroup - yy1451.CodecEncodeSelf(e) + yy1496 := &x.FSGroup + yy1496.CodecEncodeSelf(e) } - if yyr1412 || yy2arr1412 { + if yyr1457 || yy2arr1457 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1412[13] { - yym1453 := z.EncBinary() - _ = yym1453 + if yyq1457[13] { + yym1498 := z.EncBinary() + _ = yym1498 if false { } else { r.EncodeBool(bool(x.ReadOnlyRootFilesystem)) @@ -17169,19 +17465,19 @@ func (x *PodSecurityPolicySpec) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeBool(false) } } else { - if yyq1412[13] { + if yyq1457[13] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("readOnlyRootFilesystem")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym1454 := z.EncBinary() - _ = yym1454 + yym1499 := z.EncBinary() + _ = yym1499 if false { } else { r.EncodeBool(bool(x.ReadOnlyRootFilesystem)) } } } - if yyr1412 || yy2arr1412 { + if yyr1457 || yy2arr1457 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -17194,25 +17490,25 @@ func (x *PodSecurityPolicySpec) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1455 := z.DecBinary() - _ = yym1455 + yym1500 := z.DecBinary() + _ = yym1500 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct1456 := r.ContainerType() - if yyct1456 == codecSelferValueTypeMap1234 { - yyl1456 := r.ReadMapStart() - if yyl1456 == 0 { + yyct1501 := r.ContainerType() + if yyct1501 == codecSelferValueTypeMap1234 { + yyl1501 := r.ReadMapStart() + if yyl1501 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl1456, d) + x.codecDecodeSelfFromMap(yyl1501, d) } - } else if yyct1456 == codecSelferValueTypeArray1234 { - yyl1456 := r.ReadArrayStart() - if yyl1456 == 0 { + } else if yyct1501 == codecSelferValueTypeArray1234 { + yyl1501 := r.ReadArrayStart() + if yyl1501 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl1456, d) + x.codecDecodeSelfFromArray(yyl1501, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -17224,12 +17520,12 @@ func (x *PodSecurityPolicySpec) codecDecodeSelfFromMap(l int, d *codec1978.Decod var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys1457Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys1457Slc - var yyhl1457 bool = l >= 0 - for yyj1457 := 0; ; yyj1457++ { - if yyhl1457 { - if yyj1457 >= l { + var yys1502Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys1502Slc + var yyhl1502 bool = l >= 0 + for yyj1502 := 0; ; yyj1502++ { + if yyhl1502 { + if yyj1502 >= l { break } } else { @@ -17238,10 +17534,10 @@ func (x *PodSecurityPolicySpec) codecDecodeSelfFromMap(l int, d *codec1978.Decod } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys1457Slc = r.DecodeBytes(yys1457Slc, true, true) - yys1457 := string(yys1457Slc) + yys1502Slc = r.DecodeBytes(yys1502Slc, true, true) + yys1502 := string(yys1502Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys1457 { + switch yys1502 { case "privileged": if r.TryDecodeAsNil() { x.Privileged = false @@ -17252,48 +17548,48 @@ func (x *PodSecurityPolicySpec) codecDecodeSelfFromMap(l int, d *codec1978.Decod if r.TryDecodeAsNil() { x.DefaultAddCapabilities = nil } else { - yyv1459 := &x.DefaultAddCapabilities - yym1460 := z.DecBinary() - _ = yym1460 + yyv1504 := &x.DefaultAddCapabilities + yym1505 := z.DecBinary() + _ = yym1505 if false { } else { - h.decSlicev1_Capability((*[]pkg2_v1.Capability)(yyv1459), d) + h.decSlicev1_Capability((*[]pkg2_v1.Capability)(yyv1504), d) } } case "requiredDropCapabilities": if r.TryDecodeAsNil() { x.RequiredDropCapabilities = nil } else { - yyv1461 := &x.RequiredDropCapabilities - yym1462 := z.DecBinary() - _ = yym1462 + yyv1506 := &x.RequiredDropCapabilities + yym1507 := z.DecBinary() + _ = yym1507 if false { } else { - h.decSlicev1_Capability((*[]pkg2_v1.Capability)(yyv1461), d) + h.decSlicev1_Capability((*[]pkg2_v1.Capability)(yyv1506), d) } } case "allowedCapabilities": if r.TryDecodeAsNil() { x.AllowedCapabilities = nil } else { - yyv1463 := &x.AllowedCapabilities - yym1464 := z.DecBinary() - _ = yym1464 + yyv1508 := &x.AllowedCapabilities + yym1509 := z.DecBinary() + _ = yym1509 if false { } else { - h.decSlicev1_Capability((*[]pkg2_v1.Capability)(yyv1463), d) + h.decSlicev1_Capability((*[]pkg2_v1.Capability)(yyv1508), d) } } case "volumes": if r.TryDecodeAsNil() { x.Volumes = nil } else { - yyv1465 := &x.Volumes - yym1466 := z.DecBinary() - _ = yym1466 + yyv1510 := &x.Volumes + yym1511 := z.DecBinary() + _ = yym1511 if false { } else { - h.decSliceFSType((*[]FSType)(yyv1465), d) + h.decSliceFSType((*[]FSType)(yyv1510), d) } } case "hostNetwork": @@ -17306,12 +17602,12 @@ func (x *PodSecurityPolicySpec) codecDecodeSelfFromMap(l int, d *codec1978.Decod if r.TryDecodeAsNil() { x.HostPorts = nil } else { - yyv1468 := &x.HostPorts - yym1469 := z.DecBinary() - _ = yym1469 + yyv1513 := &x.HostPorts + yym1514 := z.DecBinary() + _ = yym1514 if false { } else { - h.decSliceHostPortRange((*[]HostPortRange)(yyv1468), d) + h.decSliceHostPortRange((*[]HostPortRange)(yyv1513), d) } } case "hostPID": @@ -17330,29 +17626,29 @@ func (x *PodSecurityPolicySpec) codecDecodeSelfFromMap(l int, d *codec1978.Decod if r.TryDecodeAsNil() { x.SELinux = SELinuxStrategyOptions{} } else { - yyv1472 := &x.SELinux - yyv1472.CodecDecodeSelf(d) + yyv1517 := &x.SELinux + yyv1517.CodecDecodeSelf(d) } case "runAsUser": if r.TryDecodeAsNil() { x.RunAsUser = RunAsUserStrategyOptions{} } else { - yyv1473 := &x.RunAsUser - yyv1473.CodecDecodeSelf(d) + yyv1518 := &x.RunAsUser + yyv1518.CodecDecodeSelf(d) } case "supplementalGroups": if r.TryDecodeAsNil() { x.SupplementalGroups = SupplementalGroupsStrategyOptions{} } else { - yyv1474 := &x.SupplementalGroups - yyv1474.CodecDecodeSelf(d) + yyv1519 := &x.SupplementalGroups + yyv1519.CodecDecodeSelf(d) } case "fsGroup": if r.TryDecodeAsNil() { x.FSGroup = FSGroupStrategyOptions{} } else { - yyv1475 := &x.FSGroup - yyv1475.CodecDecodeSelf(d) + yyv1520 := &x.FSGroup + yyv1520.CodecDecodeSelf(d) } case "readOnlyRootFilesystem": if r.TryDecodeAsNil() { @@ -17361,9 +17657,9 @@ func (x *PodSecurityPolicySpec) codecDecodeSelfFromMap(l int, d *codec1978.Decod x.ReadOnlyRootFilesystem = bool(r.DecodeBool()) } default: - z.DecStructFieldNotFound(-1, yys1457) - } // end switch yys1457 - } // end for yyj1457 + z.DecStructFieldNotFound(-1, yys1502) + } // end switch yys1502 + } // end for yyj1502 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -17371,16 +17667,16 @@ func (x *PodSecurityPolicySpec) codecDecodeSelfFromArray(l int, d *codec1978.Dec var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj1477 int - var yyb1477 bool - var yyhl1477 bool = l >= 0 - yyj1477++ - if yyhl1477 { - yyb1477 = yyj1477 > l + var yyj1522 int + var yyb1522 bool + var yyhl1522 bool = l >= 0 + yyj1522++ + if yyhl1522 { + yyb1522 = yyj1522 > l } else { - yyb1477 = r.CheckBreak() + yyb1522 = r.CheckBreak() } - if yyb1477 { + if yyb1522 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -17390,13 +17686,13 @@ func (x *PodSecurityPolicySpec) codecDecodeSelfFromArray(l int, d *codec1978.Dec } else { x.Privileged = bool(r.DecodeBool()) } - yyj1477++ - if yyhl1477 { - yyb1477 = yyj1477 > l + yyj1522++ + if yyhl1522 { + yyb1522 = yyj1522 > l } else { - yyb1477 = r.CheckBreak() + yyb1522 = r.CheckBreak() } - if yyb1477 { + if yyb1522 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -17404,21 +17700,21 @@ func (x *PodSecurityPolicySpec) codecDecodeSelfFromArray(l int, d *codec1978.Dec if r.TryDecodeAsNil() { x.DefaultAddCapabilities = nil } else { - yyv1479 := &x.DefaultAddCapabilities - yym1480 := z.DecBinary() - _ = yym1480 + yyv1524 := &x.DefaultAddCapabilities + yym1525 := z.DecBinary() + _ = yym1525 if false { } else { - h.decSlicev1_Capability((*[]pkg2_v1.Capability)(yyv1479), d) + h.decSlicev1_Capability((*[]pkg2_v1.Capability)(yyv1524), d) } } - yyj1477++ - if yyhl1477 { - yyb1477 = yyj1477 > l + yyj1522++ + if yyhl1522 { + yyb1522 = yyj1522 > l } else { - yyb1477 = r.CheckBreak() + yyb1522 = r.CheckBreak() } - if yyb1477 { + if yyb1522 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -17426,21 +17722,21 @@ func (x *PodSecurityPolicySpec) codecDecodeSelfFromArray(l int, d *codec1978.Dec if r.TryDecodeAsNil() { x.RequiredDropCapabilities = nil } else { - yyv1481 := &x.RequiredDropCapabilities - yym1482 := z.DecBinary() - _ = yym1482 + yyv1526 := &x.RequiredDropCapabilities + yym1527 := z.DecBinary() + _ = yym1527 if false { } else { - h.decSlicev1_Capability((*[]pkg2_v1.Capability)(yyv1481), d) + h.decSlicev1_Capability((*[]pkg2_v1.Capability)(yyv1526), d) } } - yyj1477++ - if yyhl1477 { - yyb1477 = yyj1477 > l + yyj1522++ + if yyhl1522 { + yyb1522 = yyj1522 > l } else { - yyb1477 = r.CheckBreak() + yyb1522 = r.CheckBreak() } - if yyb1477 { + if yyb1522 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -17448,21 +17744,21 @@ func (x *PodSecurityPolicySpec) codecDecodeSelfFromArray(l int, d *codec1978.Dec if r.TryDecodeAsNil() { x.AllowedCapabilities = nil } else { - yyv1483 := &x.AllowedCapabilities - yym1484 := z.DecBinary() - _ = yym1484 + yyv1528 := &x.AllowedCapabilities + yym1529 := z.DecBinary() + _ = yym1529 if false { } else { - h.decSlicev1_Capability((*[]pkg2_v1.Capability)(yyv1483), d) + h.decSlicev1_Capability((*[]pkg2_v1.Capability)(yyv1528), d) } } - yyj1477++ - if yyhl1477 { - yyb1477 = yyj1477 > l + yyj1522++ + if yyhl1522 { + yyb1522 = yyj1522 > l } else { - yyb1477 = r.CheckBreak() + yyb1522 = r.CheckBreak() } - if yyb1477 { + if yyb1522 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -17470,21 +17766,21 @@ func (x *PodSecurityPolicySpec) codecDecodeSelfFromArray(l int, d *codec1978.Dec if r.TryDecodeAsNil() { x.Volumes = nil } else { - yyv1485 := &x.Volumes - yym1486 := z.DecBinary() - _ = yym1486 + yyv1530 := &x.Volumes + yym1531 := z.DecBinary() + _ = yym1531 if false { } else { - h.decSliceFSType((*[]FSType)(yyv1485), d) + h.decSliceFSType((*[]FSType)(yyv1530), d) } } - yyj1477++ - if yyhl1477 { - yyb1477 = yyj1477 > l + yyj1522++ + if yyhl1522 { + yyb1522 = yyj1522 > l } else { - yyb1477 = r.CheckBreak() + yyb1522 = r.CheckBreak() } - if yyb1477 { + if yyb1522 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -17494,13 +17790,13 @@ func (x *PodSecurityPolicySpec) codecDecodeSelfFromArray(l int, d *codec1978.Dec } else { x.HostNetwork = bool(r.DecodeBool()) } - yyj1477++ - if yyhl1477 { - yyb1477 = yyj1477 > l + yyj1522++ + if yyhl1522 { + yyb1522 = yyj1522 > l } else { - yyb1477 = r.CheckBreak() + yyb1522 = r.CheckBreak() } - if yyb1477 { + if yyb1522 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -17508,21 +17804,21 @@ func (x *PodSecurityPolicySpec) codecDecodeSelfFromArray(l int, d *codec1978.Dec if r.TryDecodeAsNil() { x.HostPorts = nil } else { - yyv1488 := &x.HostPorts - yym1489 := z.DecBinary() - _ = yym1489 + yyv1533 := &x.HostPorts + yym1534 := z.DecBinary() + _ = yym1534 if false { } else { - h.decSliceHostPortRange((*[]HostPortRange)(yyv1488), d) + h.decSliceHostPortRange((*[]HostPortRange)(yyv1533), d) } } - yyj1477++ - if yyhl1477 { - yyb1477 = yyj1477 > l + yyj1522++ + if yyhl1522 { + yyb1522 = yyj1522 > l } else { - yyb1477 = r.CheckBreak() + yyb1522 = r.CheckBreak() } - if yyb1477 { + if yyb1522 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -17532,13 +17828,13 @@ func (x *PodSecurityPolicySpec) codecDecodeSelfFromArray(l int, d *codec1978.Dec } else { x.HostPID = bool(r.DecodeBool()) } - yyj1477++ - if yyhl1477 { - yyb1477 = yyj1477 > l + yyj1522++ + if yyhl1522 { + yyb1522 = yyj1522 > l } else { - yyb1477 = r.CheckBreak() + yyb1522 = r.CheckBreak() } - if yyb1477 { + if yyb1522 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -17548,13 +17844,13 @@ func (x *PodSecurityPolicySpec) codecDecodeSelfFromArray(l int, d *codec1978.Dec } else { x.HostIPC = bool(r.DecodeBool()) } - yyj1477++ - if yyhl1477 { - yyb1477 = yyj1477 > l + yyj1522++ + if yyhl1522 { + yyb1522 = yyj1522 > l } else { - yyb1477 = r.CheckBreak() + yyb1522 = r.CheckBreak() } - if yyb1477 { + if yyb1522 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -17562,16 +17858,16 @@ func (x *PodSecurityPolicySpec) codecDecodeSelfFromArray(l int, d *codec1978.Dec if r.TryDecodeAsNil() { x.SELinux = SELinuxStrategyOptions{} } else { - yyv1492 := &x.SELinux - yyv1492.CodecDecodeSelf(d) + yyv1537 := &x.SELinux + yyv1537.CodecDecodeSelf(d) } - yyj1477++ - if yyhl1477 { - yyb1477 = yyj1477 > l + yyj1522++ + if yyhl1522 { + yyb1522 = yyj1522 > l } else { - yyb1477 = r.CheckBreak() + yyb1522 = r.CheckBreak() } - if yyb1477 { + if yyb1522 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -17579,16 +17875,16 @@ func (x *PodSecurityPolicySpec) codecDecodeSelfFromArray(l int, d *codec1978.Dec if r.TryDecodeAsNil() { x.RunAsUser = RunAsUserStrategyOptions{} } else { - yyv1493 := &x.RunAsUser - yyv1493.CodecDecodeSelf(d) + yyv1538 := &x.RunAsUser + yyv1538.CodecDecodeSelf(d) } - yyj1477++ - if yyhl1477 { - yyb1477 = yyj1477 > l + yyj1522++ + if yyhl1522 { + yyb1522 = yyj1522 > l } else { - yyb1477 = r.CheckBreak() + yyb1522 = r.CheckBreak() } - if yyb1477 { + if yyb1522 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -17596,16 +17892,16 @@ func (x *PodSecurityPolicySpec) codecDecodeSelfFromArray(l int, d *codec1978.Dec if r.TryDecodeAsNil() { x.SupplementalGroups = SupplementalGroupsStrategyOptions{} } else { - yyv1494 := &x.SupplementalGroups - yyv1494.CodecDecodeSelf(d) + yyv1539 := &x.SupplementalGroups + yyv1539.CodecDecodeSelf(d) } - yyj1477++ - if yyhl1477 { - yyb1477 = yyj1477 > l + yyj1522++ + if yyhl1522 { + yyb1522 = yyj1522 > l } else { - yyb1477 = r.CheckBreak() + yyb1522 = r.CheckBreak() } - if yyb1477 { + if yyb1522 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -17613,16 +17909,16 @@ func (x *PodSecurityPolicySpec) codecDecodeSelfFromArray(l int, d *codec1978.Dec if r.TryDecodeAsNil() { x.FSGroup = FSGroupStrategyOptions{} } else { - yyv1495 := &x.FSGroup - yyv1495.CodecDecodeSelf(d) + yyv1540 := &x.FSGroup + yyv1540.CodecDecodeSelf(d) } - yyj1477++ - if yyhl1477 { - yyb1477 = yyj1477 > l + yyj1522++ + if yyhl1522 { + yyb1522 = yyj1522 > l } else { - yyb1477 = r.CheckBreak() + yyb1522 = r.CheckBreak() } - if yyb1477 { + if yyb1522 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -17633,17 +17929,17 @@ func (x *PodSecurityPolicySpec) codecDecodeSelfFromArray(l int, d *codec1978.Dec x.ReadOnlyRootFilesystem = bool(r.DecodeBool()) } for { - yyj1477++ - if yyhl1477 { - yyb1477 = yyj1477 > l + yyj1522++ + if yyhl1522 { + yyb1522 = yyj1522 > l } else { - yyb1477 = r.CheckBreak() + yyb1522 = r.CheckBreak() } - if yyb1477 { + if yyb1522 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj1477-1, "") + z.DecStructFieldNotFound(yyj1522-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -17652,8 +17948,8 @@ func (x FSType) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r - yym1497 := z.EncBinary() - _ = yym1497 + yym1542 := z.EncBinary() + _ = yym1542 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { @@ -17665,8 +17961,8 @@ func (x *FSType) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1498 := z.DecBinary() - _ = yym1498 + yym1543 := z.DecBinary() + _ = yym1543 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { @@ -17681,33 +17977,33 @@ func (x *HostPortRange) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1499 := z.EncBinary() - _ = yym1499 + yym1544 := z.EncBinary() + _ = yym1544 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep1500 := !z.EncBinary() - yy2arr1500 := z.EncBasicHandle().StructToArray - var yyq1500 [2]bool - _, _, _ = yysep1500, yyq1500, yy2arr1500 - const yyr1500 bool = false - var yynn1500 int - if yyr1500 || yy2arr1500 { + yysep1545 := !z.EncBinary() + yy2arr1545 := z.EncBasicHandle().StructToArray + var yyq1545 [2]bool + _, _, _ = yysep1545, yyq1545, yy2arr1545 + const yyr1545 bool = false + var yynn1545 int + if yyr1545 || yy2arr1545 { r.EncodeArrayStart(2) } else { - yynn1500 = 2 - for _, b := range yyq1500 { + yynn1545 = 2 + for _, b := range yyq1545 { if b { - yynn1500++ + yynn1545++ } } - r.EncodeMapStart(yynn1500) - yynn1500 = 0 + r.EncodeMapStart(yynn1545) + yynn1545 = 0 } - if yyr1500 || yy2arr1500 { + if yyr1545 || yy2arr1545 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym1502 := z.EncBinary() - _ = yym1502 + yym1547 := z.EncBinary() + _ = yym1547 if false { } else { r.EncodeInt(int64(x.Min)) @@ -17716,17 +18012,17 @@ func (x *HostPortRange) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("min")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym1503 := z.EncBinary() - _ = yym1503 + yym1548 := z.EncBinary() + _ = yym1548 if false { } else { r.EncodeInt(int64(x.Min)) } } - if yyr1500 || yy2arr1500 { + if yyr1545 || yy2arr1545 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym1505 := z.EncBinary() - _ = yym1505 + yym1550 := z.EncBinary() + _ = yym1550 if false { } else { r.EncodeInt(int64(x.Max)) @@ -17735,14 +18031,14 @@ func (x *HostPortRange) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("max")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym1506 := z.EncBinary() - _ = yym1506 + yym1551 := z.EncBinary() + _ = yym1551 if false { } else { r.EncodeInt(int64(x.Max)) } } - if yyr1500 || yy2arr1500 { + if yyr1545 || yy2arr1545 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -17755,25 +18051,25 @@ func (x *HostPortRange) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1507 := z.DecBinary() - _ = yym1507 + yym1552 := z.DecBinary() + _ = yym1552 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct1508 := r.ContainerType() - if yyct1508 == codecSelferValueTypeMap1234 { - yyl1508 := r.ReadMapStart() - if yyl1508 == 0 { + yyct1553 := r.ContainerType() + if yyct1553 == codecSelferValueTypeMap1234 { + yyl1553 := r.ReadMapStart() + if yyl1553 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl1508, d) + x.codecDecodeSelfFromMap(yyl1553, d) } - } else if yyct1508 == codecSelferValueTypeArray1234 { - yyl1508 := r.ReadArrayStart() - if yyl1508 == 0 { + } else if yyct1553 == codecSelferValueTypeArray1234 { + yyl1553 := r.ReadArrayStart() + if yyl1553 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl1508, d) + x.codecDecodeSelfFromArray(yyl1553, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -17785,12 +18081,12 @@ func (x *HostPortRange) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys1509Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys1509Slc - var yyhl1509 bool = l >= 0 - for yyj1509 := 0; ; yyj1509++ { - if yyhl1509 { - if yyj1509 >= l { + var yys1554Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys1554Slc + var yyhl1554 bool = l >= 0 + for yyj1554 := 0; ; yyj1554++ { + if yyhl1554 { + if yyj1554 >= l { break } } else { @@ -17799,10 +18095,10 @@ func (x *HostPortRange) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys1509Slc = r.DecodeBytes(yys1509Slc, true, true) - yys1509 := string(yys1509Slc) + yys1554Slc = r.DecodeBytes(yys1554Slc, true, true) + yys1554 := string(yys1554Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys1509 { + switch yys1554 { case "min": if r.TryDecodeAsNil() { x.Min = 0 @@ -17816,9 +18112,9 @@ func (x *HostPortRange) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { x.Max = int32(r.DecodeInt(32)) } default: - z.DecStructFieldNotFound(-1, yys1509) - } // end switch yys1509 - } // end for yyj1509 + z.DecStructFieldNotFound(-1, yys1554) + } // end switch yys1554 + } // end for yyj1554 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -17826,16 +18122,16 @@ func (x *HostPortRange) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj1512 int - var yyb1512 bool - var yyhl1512 bool = l >= 0 - yyj1512++ - if yyhl1512 { - yyb1512 = yyj1512 > l + var yyj1557 int + var yyb1557 bool + var yyhl1557 bool = l >= 0 + yyj1557++ + if yyhl1557 { + yyb1557 = yyj1557 > l } else { - yyb1512 = r.CheckBreak() + yyb1557 = r.CheckBreak() } - if yyb1512 { + if yyb1557 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -17845,13 +18141,13 @@ func (x *HostPortRange) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.Min = int32(r.DecodeInt(32)) } - yyj1512++ - if yyhl1512 { - yyb1512 = yyj1512 > l + yyj1557++ + if yyhl1557 { + yyb1557 = yyj1557 > l } else { - yyb1512 = r.CheckBreak() + yyb1557 = r.CheckBreak() } - if yyb1512 { + if yyb1557 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -17862,17 +18158,17 @@ func (x *HostPortRange) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { x.Max = int32(r.DecodeInt(32)) } for { - yyj1512++ - if yyhl1512 { - yyb1512 = yyj1512 > l + yyj1557++ + if yyhl1557 { + yyb1557 = yyj1557 > l } else { - yyb1512 = r.CheckBreak() + yyb1557 = r.CheckBreak() } - if yyb1512 { + if yyb1557 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj1512-1, "") + z.DecStructFieldNotFound(yyj1557-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -17884,31 +18180,31 @@ func (x *SELinuxStrategyOptions) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1515 := z.EncBinary() - _ = yym1515 + yym1560 := z.EncBinary() + _ = yym1560 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - 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 { + yysep1561 := !z.EncBinary() + yy2arr1561 := z.EncBasicHandle().StructToArray + var yyq1561 [2]bool + _, _, _ = yysep1561, yyq1561, yy2arr1561 + const yyr1561 bool = false + yyq1561[1] = x.SELinuxOptions != nil + var yynn1561 int + if yyr1561 || yy2arr1561 { r.EncodeArrayStart(2) } else { - yynn1516 = 1 - for _, b := range yyq1516 { + yynn1561 = 1 + for _, b := range yyq1561 { if b { - yynn1516++ + yynn1561++ } } - r.EncodeMapStart(yynn1516) - yynn1516 = 0 + r.EncodeMapStart(yynn1561) + yynn1561 = 0 } - if yyr1516 || yy2arr1516 { + if yyr1561 || yy2arr1561 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) x.Rule.CodecEncodeSelf(e) } else { @@ -17917,9 +18213,9 @@ func (x *SELinuxStrategyOptions) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapValue1234) x.Rule.CodecEncodeSelf(e) } - if yyr1516 || yy2arr1516 { + if yyr1561 || yy2arr1561 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1516[1] { + if yyq1561[1] { if x.SELinuxOptions == nil { r.EncodeNil() } else { @@ -17929,7 +18225,7 @@ func (x *SELinuxStrategyOptions) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq1516[1] { + if yyq1561[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("seLinuxOptions")) z.EncSendContainerState(codecSelfer_containerMapValue1234) @@ -17940,7 +18236,7 @@ func (x *SELinuxStrategyOptions) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr1516 || yy2arr1516 { + if yyr1561 || yy2arr1561 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -17953,25 +18249,25 @@ func (x *SELinuxStrategyOptions) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1519 := z.DecBinary() - _ = yym1519 + yym1564 := z.DecBinary() + _ = yym1564 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct1520 := r.ContainerType() - if yyct1520 == codecSelferValueTypeMap1234 { - yyl1520 := r.ReadMapStart() - if yyl1520 == 0 { + yyct1565 := r.ContainerType() + if yyct1565 == codecSelferValueTypeMap1234 { + yyl1565 := r.ReadMapStart() + if yyl1565 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl1520, d) + x.codecDecodeSelfFromMap(yyl1565, d) } - } else if yyct1520 == codecSelferValueTypeArray1234 { - yyl1520 := r.ReadArrayStart() - if yyl1520 == 0 { + } else if yyct1565 == codecSelferValueTypeArray1234 { + yyl1565 := r.ReadArrayStart() + if yyl1565 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl1520, d) + x.codecDecodeSelfFromArray(yyl1565, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -17983,12 +18279,12 @@ func (x *SELinuxStrategyOptions) codecDecodeSelfFromMap(l int, d *codec1978.Deco var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys1521Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys1521Slc - var yyhl1521 bool = l >= 0 - for yyj1521 := 0; ; yyj1521++ { - if yyhl1521 { - if yyj1521 >= l { + var yys1566Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys1566Slc + var yyhl1566 bool = l >= 0 + for yyj1566 := 0; ; yyj1566++ { + if yyhl1566 { + if yyj1566 >= l { break } } else { @@ -17997,10 +18293,10 @@ func (x *SELinuxStrategyOptions) codecDecodeSelfFromMap(l int, d *codec1978.Deco } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys1521Slc = r.DecodeBytes(yys1521Slc, true, true) - yys1521 := string(yys1521Slc) + yys1566Slc = r.DecodeBytes(yys1566Slc, true, true) + yys1566 := string(yys1566Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys1521 { + switch yys1566 { case "rule": if r.TryDecodeAsNil() { x.Rule = "" @@ -18019,9 +18315,9 @@ func (x *SELinuxStrategyOptions) codecDecodeSelfFromMap(l int, d *codec1978.Deco x.SELinuxOptions.CodecDecodeSelf(d) } default: - z.DecStructFieldNotFound(-1, yys1521) - } // end switch yys1521 - } // end for yyj1521 + z.DecStructFieldNotFound(-1, yys1566) + } // end switch yys1566 + } // end for yyj1566 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -18029,16 +18325,16 @@ func (x *SELinuxStrategyOptions) codecDecodeSelfFromArray(l int, d *codec1978.De var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj1524 int - var yyb1524 bool - var yyhl1524 bool = l >= 0 - yyj1524++ - if yyhl1524 { - yyb1524 = yyj1524 > l + var yyj1569 int + var yyb1569 bool + var yyhl1569 bool = l >= 0 + yyj1569++ + if yyhl1569 { + yyb1569 = yyj1569 > l } else { - yyb1524 = r.CheckBreak() + yyb1569 = r.CheckBreak() } - if yyb1524 { + if yyb1569 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -18048,13 +18344,13 @@ func (x *SELinuxStrategyOptions) codecDecodeSelfFromArray(l int, d *codec1978.De } else { x.Rule = SELinuxStrategy(r.DecodeString()) } - yyj1524++ - if yyhl1524 { - yyb1524 = yyj1524 > l + yyj1569++ + if yyhl1569 { + yyb1569 = yyj1569 > l } else { - yyb1524 = r.CheckBreak() + yyb1569 = r.CheckBreak() } - if yyb1524 { + if yyb1569 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -18070,17 +18366,17 @@ func (x *SELinuxStrategyOptions) codecDecodeSelfFromArray(l int, d *codec1978.De x.SELinuxOptions.CodecDecodeSelf(d) } for { - yyj1524++ - if yyhl1524 { - yyb1524 = yyj1524 > l + yyj1569++ + if yyhl1569 { + yyb1569 = yyj1569 > l } else { - yyb1524 = r.CheckBreak() + yyb1569 = r.CheckBreak() } - if yyb1524 { + if yyb1569 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj1524-1, "") + z.DecStructFieldNotFound(yyj1569-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -18089,8 +18385,8 @@ func (x SELinuxStrategy) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r - yym1527 := z.EncBinary() - _ = yym1527 + yym1572 := z.EncBinary() + _ = yym1572 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { @@ -18102,8 +18398,8 @@ func (x *SELinuxStrategy) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1528 := z.DecBinary() - _ = yym1528 + yym1573 := z.DecBinary() + _ = yym1573 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { @@ -18118,31 +18414,31 @@ func (x *RunAsUserStrategyOptions) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1529 := z.EncBinary() - _ = yym1529 + yym1574 := z.EncBinary() + _ = yym1574 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - 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 { + yysep1575 := !z.EncBinary() + yy2arr1575 := z.EncBasicHandle().StructToArray + var yyq1575 [2]bool + _, _, _ = yysep1575, yyq1575, yy2arr1575 + const yyr1575 bool = false + yyq1575[1] = len(x.Ranges) != 0 + var yynn1575 int + if yyr1575 || yy2arr1575 { r.EncodeArrayStart(2) } else { - yynn1530 = 1 - for _, b := range yyq1530 { + yynn1575 = 1 + for _, b := range yyq1575 { if b { - yynn1530++ + yynn1575++ } } - r.EncodeMapStart(yynn1530) - yynn1530 = 0 + r.EncodeMapStart(yynn1575) + yynn1575 = 0 } - if yyr1530 || yy2arr1530 { + if yyr1575 || yy2arr1575 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) x.Rule.CodecEncodeSelf(e) } else { @@ -18151,14 +18447,14 @@ func (x *RunAsUserStrategyOptions) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapValue1234) x.Rule.CodecEncodeSelf(e) } - if yyr1530 || yy2arr1530 { + if yyr1575 || yy2arr1575 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1530[1] { + if yyq1575[1] { if x.Ranges == nil { r.EncodeNil() } else { - yym1533 := z.EncBinary() - _ = yym1533 + yym1578 := z.EncBinary() + _ = yym1578 if false { } else { h.encSliceIDRange(([]IDRange)(x.Ranges), e) @@ -18168,15 +18464,15 @@ func (x *RunAsUserStrategyOptions) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq1530[1] { + if yyq1575[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("ranges")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.Ranges == nil { r.EncodeNil() } else { - yym1534 := z.EncBinary() - _ = yym1534 + yym1579 := z.EncBinary() + _ = yym1579 if false { } else { h.encSliceIDRange(([]IDRange)(x.Ranges), e) @@ -18184,7 +18480,7 @@ func (x *RunAsUserStrategyOptions) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr1530 || yy2arr1530 { + if yyr1575 || yy2arr1575 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -18197,25 +18493,25 @@ func (x *RunAsUserStrategyOptions) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1535 := z.DecBinary() - _ = yym1535 + yym1580 := z.DecBinary() + _ = yym1580 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct1536 := r.ContainerType() - if yyct1536 == codecSelferValueTypeMap1234 { - yyl1536 := r.ReadMapStart() - if yyl1536 == 0 { + yyct1581 := r.ContainerType() + if yyct1581 == codecSelferValueTypeMap1234 { + yyl1581 := r.ReadMapStart() + if yyl1581 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl1536, d) + x.codecDecodeSelfFromMap(yyl1581, d) } - } else if yyct1536 == codecSelferValueTypeArray1234 { - yyl1536 := r.ReadArrayStart() - if yyl1536 == 0 { + } else if yyct1581 == codecSelferValueTypeArray1234 { + yyl1581 := r.ReadArrayStart() + if yyl1581 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl1536, d) + x.codecDecodeSelfFromArray(yyl1581, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -18227,12 +18523,12 @@ func (x *RunAsUserStrategyOptions) codecDecodeSelfFromMap(l int, d *codec1978.De var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys1537Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys1537Slc - var yyhl1537 bool = l >= 0 - for yyj1537 := 0; ; yyj1537++ { - if yyhl1537 { - if yyj1537 >= l { + var yys1582Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys1582Slc + var yyhl1582 bool = l >= 0 + for yyj1582 := 0; ; yyj1582++ { + if yyhl1582 { + if yyj1582 >= l { break } } else { @@ -18241,10 +18537,10 @@ func (x *RunAsUserStrategyOptions) codecDecodeSelfFromMap(l int, d *codec1978.De } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys1537Slc = r.DecodeBytes(yys1537Slc, true, true) - yys1537 := string(yys1537Slc) + yys1582Slc = r.DecodeBytes(yys1582Slc, true, true) + yys1582 := string(yys1582Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys1537 { + switch yys1582 { case "rule": if r.TryDecodeAsNil() { x.Rule = "" @@ -18255,18 +18551,18 @@ func (x *RunAsUserStrategyOptions) codecDecodeSelfFromMap(l int, d *codec1978.De if r.TryDecodeAsNil() { x.Ranges = nil } else { - yyv1539 := &x.Ranges - yym1540 := z.DecBinary() - _ = yym1540 + yyv1584 := &x.Ranges + yym1585 := z.DecBinary() + _ = yym1585 if false { } else { - h.decSliceIDRange((*[]IDRange)(yyv1539), d) + h.decSliceIDRange((*[]IDRange)(yyv1584), d) } } default: - z.DecStructFieldNotFound(-1, yys1537) - } // end switch yys1537 - } // end for yyj1537 + z.DecStructFieldNotFound(-1, yys1582) + } // end switch yys1582 + } // end for yyj1582 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -18274,16 +18570,16 @@ func (x *RunAsUserStrategyOptions) codecDecodeSelfFromArray(l int, d *codec1978. var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj1541 int - var yyb1541 bool - var yyhl1541 bool = l >= 0 - yyj1541++ - if yyhl1541 { - yyb1541 = yyj1541 > l + var yyj1586 int + var yyb1586 bool + var yyhl1586 bool = l >= 0 + yyj1586++ + if yyhl1586 { + yyb1586 = yyj1586 > l } else { - yyb1541 = r.CheckBreak() + yyb1586 = r.CheckBreak() } - if yyb1541 { + if yyb1586 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -18293,13 +18589,13 @@ func (x *RunAsUserStrategyOptions) codecDecodeSelfFromArray(l int, d *codec1978. } else { x.Rule = RunAsUserStrategy(r.DecodeString()) } - yyj1541++ - if yyhl1541 { - yyb1541 = yyj1541 > l + yyj1586++ + if yyhl1586 { + yyb1586 = yyj1586 > l } else { - yyb1541 = r.CheckBreak() + yyb1586 = r.CheckBreak() } - if yyb1541 { + if yyb1586 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -18307,26 +18603,26 @@ func (x *RunAsUserStrategyOptions) codecDecodeSelfFromArray(l int, d *codec1978. if r.TryDecodeAsNil() { x.Ranges = nil } else { - yyv1543 := &x.Ranges - yym1544 := z.DecBinary() - _ = yym1544 + yyv1588 := &x.Ranges + yym1589 := z.DecBinary() + _ = yym1589 if false { } else { - h.decSliceIDRange((*[]IDRange)(yyv1543), d) + h.decSliceIDRange((*[]IDRange)(yyv1588), d) } } for { - yyj1541++ - if yyhl1541 { - yyb1541 = yyj1541 > l + yyj1586++ + if yyhl1586 { + yyb1586 = yyj1586 > l } else { - yyb1541 = r.CheckBreak() + yyb1586 = r.CheckBreak() } - if yyb1541 { + if yyb1586 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj1541-1, "") + z.DecStructFieldNotFound(yyj1586-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -18338,33 +18634,33 @@ func (x *IDRange) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1545 := z.EncBinary() - _ = yym1545 + yym1590 := z.EncBinary() + _ = yym1590 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep1546 := !z.EncBinary() - yy2arr1546 := z.EncBasicHandle().StructToArray - var yyq1546 [2]bool - _, _, _ = yysep1546, yyq1546, yy2arr1546 - const yyr1546 bool = false - var yynn1546 int - if yyr1546 || yy2arr1546 { + yysep1591 := !z.EncBinary() + yy2arr1591 := z.EncBasicHandle().StructToArray + var yyq1591 [2]bool + _, _, _ = yysep1591, yyq1591, yy2arr1591 + const yyr1591 bool = false + var yynn1591 int + if yyr1591 || yy2arr1591 { r.EncodeArrayStart(2) } else { - yynn1546 = 2 - for _, b := range yyq1546 { + yynn1591 = 2 + for _, b := range yyq1591 { if b { - yynn1546++ + yynn1591++ } } - r.EncodeMapStart(yynn1546) - yynn1546 = 0 + r.EncodeMapStart(yynn1591) + yynn1591 = 0 } - if yyr1546 || yy2arr1546 { + if yyr1591 || yy2arr1591 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym1548 := z.EncBinary() - _ = yym1548 + yym1593 := z.EncBinary() + _ = yym1593 if false { } else { r.EncodeInt(int64(x.Min)) @@ -18373,17 +18669,17 @@ func (x *IDRange) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("min")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym1549 := z.EncBinary() - _ = yym1549 + yym1594 := z.EncBinary() + _ = yym1594 if false { } else { r.EncodeInt(int64(x.Min)) } } - if yyr1546 || yy2arr1546 { + if yyr1591 || yy2arr1591 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym1551 := z.EncBinary() - _ = yym1551 + yym1596 := z.EncBinary() + _ = yym1596 if false { } else { r.EncodeInt(int64(x.Max)) @@ -18392,14 +18688,14 @@ func (x *IDRange) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("max")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym1552 := z.EncBinary() - _ = yym1552 + yym1597 := z.EncBinary() + _ = yym1597 if false { } else { r.EncodeInt(int64(x.Max)) } } - if yyr1546 || yy2arr1546 { + if yyr1591 || yy2arr1591 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -18412,25 +18708,25 @@ func (x *IDRange) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1553 := z.DecBinary() - _ = yym1553 + yym1598 := z.DecBinary() + _ = yym1598 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct1554 := r.ContainerType() - if yyct1554 == codecSelferValueTypeMap1234 { - yyl1554 := r.ReadMapStart() - if yyl1554 == 0 { + yyct1599 := r.ContainerType() + if yyct1599 == codecSelferValueTypeMap1234 { + yyl1599 := r.ReadMapStart() + if yyl1599 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl1554, d) + x.codecDecodeSelfFromMap(yyl1599, d) } - } else if yyct1554 == codecSelferValueTypeArray1234 { - yyl1554 := r.ReadArrayStart() - if yyl1554 == 0 { + } else if yyct1599 == codecSelferValueTypeArray1234 { + yyl1599 := r.ReadArrayStart() + if yyl1599 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl1554, d) + x.codecDecodeSelfFromArray(yyl1599, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -18442,12 +18738,12 @@ func (x *IDRange) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys1555Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys1555Slc - var yyhl1555 bool = l >= 0 - for yyj1555 := 0; ; yyj1555++ { - if yyhl1555 { - if yyj1555 >= l { + var yys1600Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys1600Slc + var yyhl1600 bool = l >= 0 + for yyj1600 := 0; ; yyj1600++ { + if yyhl1600 { + if yyj1600 >= l { break } } else { @@ -18456,10 +18752,10 @@ func (x *IDRange) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys1555Slc = r.DecodeBytes(yys1555Slc, true, true) - yys1555 := string(yys1555Slc) + yys1600Slc = r.DecodeBytes(yys1600Slc, true, true) + yys1600 := string(yys1600Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys1555 { + switch yys1600 { case "min": if r.TryDecodeAsNil() { x.Min = 0 @@ -18473,9 +18769,9 @@ func (x *IDRange) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { x.Max = int64(r.DecodeInt(64)) } default: - z.DecStructFieldNotFound(-1, yys1555) - } // end switch yys1555 - } // end for yyj1555 + z.DecStructFieldNotFound(-1, yys1600) + } // end switch yys1600 + } // end for yyj1600 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -18483,16 +18779,16 @@ func (x *IDRange) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj1558 int - var yyb1558 bool - var yyhl1558 bool = l >= 0 - yyj1558++ - if yyhl1558 { - yyb1558 = yyj1558 > l + var yyj1603 int + var yyb1603 bool + var yyhl1603 bool = l >= 0 + yyj1603++ + if yyhl1603 { + yyb1603 = yyj1603 > l } else { - yyb1558 = r.CheckBreak() + yyb1603 = r.CheckBreak() } - if yyb1558 { + if yyb1603 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -18502,13 +18798,13 @@ func (x *IDRange) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.Min = int64(r.DecodeInt(64)) } - yyj1558++ - if yyhl1558 { - yyb1558 = yyj1558 > l + yyj1603++ + if yyhl1603 { + yyb1603 = yyj1603 > l } else { - yyb1558 = r.CheckBreak() + yyb1603 = r.CheckBreak() } - if yyb1558 { + if yyb1603 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -18519,17 +18815,17 @@ func (x *IDRange) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { x.Max = int64(r.DecodeInt(64)) } for { - yyj1558++ - if yyhl1558 { - yyb1558 = yyj1558 > l + yyj1603++ + if yyhl1603 { + yyb1603 = yyj1603 > l } else { - yyb1558 = r.CheckBreak() + yyb1603 = r.CheckBreak() } - if yyb1558 { + if yyb1603 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj1558-1, "") + z.DecStructFieldNotFound(yyj1603-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -18538,8 +18834,8 @@ func (x RunAsUserStrategy) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r - yym1561 := z.EncBinary() - _ = yym1561 + yym1606 := z.EncBinary() + _ = yym1606 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { @@ -18551,8 +18847,8 @@ func (x *RunAsUserStrategy) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1562 := z.DecBinary() - _ = yym1562 + yym1607 := z.DecBinary() + _ = yym1607 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { @@ -18567,54 +18863,54 @@ func (x *FSGroupStrategyOptions) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1563 := z.EncBinary() - _ = yym1563 + yym1608 := z.EncBinary() + _ = yym1608 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - 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 { + yysep1609 := !z.EncBinary() + yy2arr1609 := z.EncBasicHandle().StructToArray + var yyq1609 [2]bool + _, _, _ = yysep1609, yyq1609, yy2arr1609 + const yyr1609 bool = false + yyq1609[0] = x.Rule != "" + yyq1609[1] = len(x.Ranges) != 0 + var yynn1609 int + if yyr1609 || yy2arr1609 { r.EncodeArrayStart(2) } else { - yynn1564 = 0 - for _, b := range yyq1564 { + yynn1609 = 0 + for _, b := range yyq1609 { if b { - yynn1564++ + yynn1609++ } } - r.EncodeMapStart(yynn1564) - yynn1564 = 0 + r.EncodeMapStart(yynn1609) + yynn1609 = 0 } - if yyr1564 || yy2arr1564 { + if yyr1609 || yy2arr1609 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1564[0] { + if yyq1609[0] { x.Rule.CodecEncodeSelf(e) } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq1564[0] { + if yyq1609[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("rule")) z.EncSendContainerState(codecSelfer_containerMapValue1234) x.Rule.CodecEncodeSelf(e) } } - if yyr1564 || yy2arr1564 { + if yyr1609 || yy2arr1609 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1564[1] { + if yyq1609[1] { if x.Ranges == nil { r.EncodeNil() } else { - yym1567 := z.EncBinary() - _ = yym1567 + yym1612 := z.EncBinary() + _ = yym1612 if false { } else { h.encSliceIDRange(([]IDRange)(x.Ranges), e) @@ -18624,15 +18920,15 @@ func (x *FSGroupStrategyOptions) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq1564[1] { + if yyq1609[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("ranges")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.Ranges == nil { r.EncodeNil() } else { - yym1568 := z.EncBinary() - _ = yym1568 + yym1613 := z.EncBinary() + _ = yym1613 if false { } else { h.encSliceIDRange(([]IDRange)(x.Ranges), e) @@ -18640,7 +18936,7 @@ func (x *FSGroupStrategyOptions) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr1564 || yy2arr1564 { + if yyr1609 || yy2arr1609 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -18653,25 +18949,25 @@ func (x *FSGroupStrategyOptions) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1569 := z.DecBinary() - _ = yym1569 + yym1614 := z.DecBinary() + _ = yym1614 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct1570 := r.ContainerType() - if yyct1570 == codecSelferValueTypeMap1234 { - yyl1570 := r.ReadMapStart() - if yyl1570 == 0 { + yyct1615 := r.ContainerType() + if yyct1615 == codecSelferValueTypeMap1234 { + yyl1615 := r.ReadMapStart() + if yyl1615 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl1570, d) + x.codecDecodeSelfFromMap(yyl1615, d) } - } else if yyct1570 == codecSelferValueTypeArray1234 { - yyl1570 := r.ReadArrayStart() - if yyl1570 == 0 { + } else if yyct1615 == codecSelferValueTypeArray1234 { + yyl1615 := r.ReadArrayStart() + if yyl1615 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl1570, d) + x.codecDecodeSelfFromArray(yyl1615, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -18683,12 +18979,12 @@ func (x *FSGroupStrategyOptions) codecDecodeSelfFromMap(l int, d *codec1978.Deco var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys1571Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys1571Slc - var yyhl1571 bool = l >= 0 - for yyj1571 := 0; ; yyj1571++ { - if yyhl1571 { - if yyj1571 >= l { + var yys1616Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys1616Slc + var yyhl1616 bool = l >= 0 + for yyj1616 := 0; ; yyj1616++ { + if yyhl1616 { + if yyj1616 >= l { break } } else { @@ -18697,10 +18993,10 @@ func (x *FSGroupStrategyOptions) codecDecodeSelfFromMap(l int, d *codec1978.Deco } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys1571Slc = r.DecodeBytes(yys1571Slc, true, true) - yys1571 := string(yys1571Slc) + yys1616Slc = r.DecodeBytes(yys1616Slc, true, true) + yys1616 := string(yys1616Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys1571 { + switch yys1616 { case "rule": if r.TryDecodeAsNil() { x.Rule = "" @@ -18711,18 +19007,18 @@ func (x *FSGroupStrategyOptions) codecDecodeSelfFromMap(l int, d *codec1978.Deco if r.TryDecodeAsNil() { x.Ranges = nil } else { - yyv1573 := &x.Ranges - yym1574 := z.DecBinary() - _ = yym1574 + yyv1618 := &x.Ranges + yym1619 := z.DecBinary() + _ = yym1619 if false { } else { - h.decSliceIDRange((*[]IDRange)(yyv1573), d) + h.decSliceIDRange((*[]IDRange)(yyv1618), d) } } default: - z.DecStructFieldNotFound(-1, yys1571) - } // end switch yys1571 - } // end for yyj1571 + z.DecStructFieldNotFound(-1, yys1616) + } // end switch yys1616 + } // end for yyj1616 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -18730,16 +19026,16 @@ func (x *FSGroupStrategyOptions) codecDecodeSelfFromArray(l int, d *codec1978.De var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj1575 int - var yyb1575 bool - var yyhl1575 bool = l >= 0 - yyj1575++ - if yyhl1575 { - yyb1575 = yyj1575 > l + var yyj1620 int + var yyb1620 bool + var yyhl1620 bool = l >= 0 + yyj1620++ + if yyhl1620 { + yyb1620 = yyj1620 > l } else { - yyb1575 = r.CheckBreak() + yyb1620 = r.CheckBreak() } - if yyb1575 { + if yyb1620 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -18749,13 +19045,13 @@ func (x *FSGroupStrategyOptions) codecDecodeSelfFromArray(l int, d *codec1978.De } else { x.Rule = FSGroupStrategyType(r.DecodeString()) } - yyj1575++ - if yyhl1575 { - yyb1575 = yyj1575 > l + yyj1620++ + if yyhl1620 { + yyb1620 = yyj1620 > l } else { - yyb1575 = r.CheckBreak() + yyb1620 = r.CheckBreak() } - if yyb1575 { + if yyb1620 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -18763,26 +19059,26 @@ func (x *FSGroupStrategyOptions) codecDecodeSelfFromArray(l int, d *codec1978.De if r.TryDecodeAsNil() { x.Ranges = nil } else { - yyv1577 := &x.Ranges - yym1578 := z.DecBinary() - _ = yym1578 + yyv1622 := &x.Ranges + yym1623 := z.DecBinary() + _ = yym1623 if false { } else { - h.decSliceIDRange((*[]IDRange)(yyv1577), d) + h.decSliceIDRange((*[]IDRange)(yyv1622), d) } } for { - yyj1575++ - if yyhl1575 { - yyb1575 = yyj1575 > l + yyj1620++ + if yyhl1620 { + yyb1620 = yyj1620 > l } else { - yyb1575 = r.CheckBreak() + yyb1620 = r.CheckBreak() } - if yyb1575 { + if yyb1620 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj1575-1, "") + z.DecStructFieldNotFound(yyj1620-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -18791,8 +19087,8 @@ func (x FSGroupStrategyType) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r - yym1579 := z.EncBinary() - _ = yym1579 + yym1624 := z.EncBinary() + _ = yym1624 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { @@ -18804,8 +19100,8 @@ func (x *FSGroupStrategyType) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1580 := z.DecBinary() - _ = yym1580 + yym1625 := z.DecBinary() + _ = yym1625 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { @@ -18820,54 +19116,54 @@ func (x *SupplementalGroupsStrategyOptions) CodecEncodeSelf(e *codec1978.Encoder if x == nil { r.EncodeNil() } else { - yym1581 := z.EncBinary() - _ = yym1581 + yym1626 := z.EncBinary() + _ = yym1626 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - 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 { + yysep1627 := !z.EncBinary() + yy2arr1627 := z.EncBasicHandle().StructToArray + var yyq1627 [2]bool + _, _, _ = yysep1627, yyq1627, yy2arr1627 + const yyr1627 bool = false + yyq1627[0] = x.Rule != "" + yyq1627[1] = len(x.Ranges) != 0 + var yynn1627 int + if yyr1627 || yy2arr1627 { r.EncodeArrayStart(2) } else { - yynn1582 = 0 - for _, b := range yyq1582 { + yynn1627 = 0 + for _, b := range yyq1627 { if b { - yynn1582++ + yynn1627++ } } - r.EncodeMapStart(yynn1582) - yynn1582 = 0 + r.EncodeMapStart(yynn1627) + yynn1627 = 0 } - if yyr1582 || yy2arr1582 { + if yyr1627 || yy2arr1627 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1582[0] { + if yyq1627[0] { x.Rule.CodecEncodeSelf(e) } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq1582[0] { + if yyq1627[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("rule")) z.EncSendContainerState(codecSelfer_containerMapValue1234) x.Rule.CodecEncodeSelf(e) } } - if yyr1582 || yy2arr1582 { + if yyr1627 || yy2arr1627 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1582[1] { + if yyq1627[1] { if x.Ranges == nil { r.EncodeNil() } else { - yym1585 := z.EncBinary() - _ = yym1585 + yym1630 := z.EncBinary() + _ = yym1630 if false { } else { h.encSliceIDRange(([]IDRange)(x.Ranges), e) @@ -18877,15 +19173,15 @@ func (x *SupplementalGroupsStrategyOptions) CodecEncodeSelf(e *codec1978.Encoder r.EncodeNil() } } else { - if yyq1582[1] { + if yyq1627[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("ranges")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.Ranges == nil { r.EncodeNil() } else { - yym1586 := z.EncBinary() - _ = yym1586 + yym1631 := z.EncBinary() + _ = yym1631 if false { } else { h.encSliceIDRange(([]IDRange)(x.Ranges), e) @@ -18893,7 +19189,7 @@ func (x *SupplementalGroupsStrategyOptions) CodecEncodeSelf(e *codec1978.Encoder } } } - if yyr1582 || yy2arr1582 { + if yyr1627 || yy2arr1627 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -18906,25 +19202,25 @@ func (x *SupplementalGroupsStrategyOptions) CodecDecodeSelf(d *codec1978.Decoder var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1587 := z.DecBinary() - _ = yym1587 + yym1632 := z.DecBinary() + _ = yym1632 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct1588 := r.ContainerType() - if yyct1588 == codecSelferValueTypeMap1234 { - yyl1588 := r.ReadMapStart() - if yyl1588 == 0 { + yyct1633 := r.ContainerType() + if yyct1633 == codecSelferValueTypeMap1234 { + yyl1633 := r.ReadMapStart() + if yyl1633 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl1588, d) + x.codecDecodeSelfFromMap(yyl1633, d) } - } else if yyct1588 == codecSelferValueTypeArray1234 { - yyl1588 := r.ReadArrayStart() - if yyl1588 == 0 { + } else if yyct1633 == codecSelferValueTypeArray1234 { + yyl1633 := r.ReadArrayStart() + if yyl1633 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl1588, d) + x.codecDecodeSelfFromArray(yyl1633, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -18936,12 +19232,12 @@ func (x *SupplementalGroupsStrategyOptions) codecDecodeSelfFromMap(l int, d *cod var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys1589Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys1589Slc - var yyhl1589 bool = l >= 0 - for yyj1589 := 0; ; yyj1589++ { - if yyhl1589 { - if yyj1589 >= l { + var yys1634Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys1634Slc + var yyhl1634 bool = l >= 0 + for yyj1634 := 0; ; yyj1634++ { + if yyhl1634 { + if yyj1634 >= l { break } } else { @@ -18950,10 +19246,10 @@ func (x *SupplementalGroupsStrategyOptions) codecDecodeSelfFromMap(l int, d *cod } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys1589Slc = r.DecodeBytes(yys1589Slc, true, true) - yys1589 := string(yys1589Slc) + yys1634Slc = r.DecodeBytes(yys1634Slc, true, true) + yys1634 := string(yys1634Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys1589 { + switch yys1634 { case "rule": if r.TryDecodeAsNil() { x.Rule = "" @@ -18964,18 +19260,18 @@ func (x *SupplementalGroupsStrategyOptions) codecDecodeSelfFromMap(l int, d *cod if r.TryDecodeAsNil() { x.Ranges = nil } else { - yyv1591 := &x.Ranges - yym1592 := z.DecBinary() - _ = yym1592 + yyv1636 := &x.Ranges + yym1637 := z.DecBinary() + _ = yym1637 if false { } else { - h.decSliceIDRange((*[]IDRange)(yyv1591), d) + h.decSliceIDRange((*[]IDRange)(yyv1636), d) } } default: - z.DecStructFieldNotFound(-1, yys1589) - } // end switch yys1589 - } // end for yyj1589 + z.DecStructFieldNotFound(-1, yys1634) + } // end switch yys1634 + } // end for yyj1634 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -18983,16 +19279,16 @@ func (x *SupplementalGroupsStrategyOptions) codecDecodeSelfFromArray(l int, d *c var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj1593 int - var yyb1593 bool - var yyhl1593 bool = l >= 0 - yyj1593++ - if yyhl1593 { - yyb1593 = yyj1593 > l + var yyj1638 int + var yyb1638 bool + var yyhl1638 bool = l >= 0 + yyj1638++ + if yyhl1638 { + yyb1638 = yyj1638 > l } else { - yyb1593 = r.CheckBreak() + yyb1638 = r.CheckBreak() } - if yyb1593 { + if yyb1638 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -19002,13 +19298,13 @@ func (x *SupplementalGroupsStrategyOptions) codecDecodeSelfFromArray(l int, d *c } else { x.Rule = SupplementalGroupsStrategyType(r.DecodeString()) } - yyj1593++ - if yyhl1593 { - yyb1593 = yyj1593 > l + yyj1638++ + if yyhl1638 { + yyb1638 = yyj1638 > l } else { - yyb1593 = r.CheckBreak() + yyb1638 = r.CheckBreak() } - if yyb1593 { + if yyb1638 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -19016,26 +19312,26 @@ func (x *SupplementalGroupsStrategyOptions) codecDecodeSelfFromArray(l int, d *c if r.TryDecodeAsNil() { x.Ranges = nil } else { - yyv1595 := &x.Ranges - yym1596 := z.DecBinary() - _ = yym1596 + yyv1640 := &x.Ranges + yym1641 := z.DecBinary() + _ = yym1641 if false { } else { - h.decSliceIDRange((*[]IDRange)(yyv1595), d) + h.decSliceIDRange((*[]IDRange)(yyv1640), d) } } for { - yyj1593++ - if yyhl1593 { - yyb1593 = yyj1593 > l + yyj1638++ + if yyhl1638 { + yyb1638 = yyj1638 > l } else { - yyb1593 = r.CheckBreak() + yyb1638 = r.CheckBreak() } - if yyb1593 { + if yyb1638 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj1593-1, "") + z.DecStructFieldNotFound(yyj1638-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -19044,8 +19340,8 @@ func (x SupplementalGroupsStrategyType) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r - yym1597 := z.EncBinary() - _ = yym1597 + yym1642 := z.EncBinary() + _ = yym1642 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { @@ -19057,8 +19353,8 @@ func (x *SupplementalGroupsStrategyType) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1598 := z.DecBinary() - _ = yym1598 + yym1643 := z.DecBinary() + _ = yym1643 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { @@ -19073,37 +19369,37 @@ func (x *PodSecurityPolicyList) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1599 := z.EncBinary() - _ = yym1599 + yym1644 := z.EncBinary() + _ = yym1644 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - 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 { + yysep1645 := !z.EncBinary() + yy2arr1645 := z.EncBasicHandle().StructToArray + var yyq1645 [4]bool + _, _, _ = yysep1645, yyq1645, yy2arr1645 + const yyr1645 bool = false + yyq1645[0] = x.Kind != "" + yyq1645[1] = x.APIVersion != "" + yyq1645[2] = true + var yynn1645 int + if yyr1645 || yy2arr1645 { r.EncodeArrayStart(4) } else { - yynn1600 = 1 - for _, b := range yyq1600 { + yynn1645 = 1 + for _, b := range yyq1645 { if b { - yynn1600++ + yynn1645++ } } - r.EncodeMapStart(yynn1600) - yynn1600 = 0 + r.EncodeMapStart(yynn1645) + yynn1645 = 0 } - if yyr1600 || yy2arr1600 { + if yyr1645 || yy2arr1645 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1600[0] { - yym1602 := z.EncBinary() - _ = yym1602 + if yyq1645[0] { + yym1647 := z.EncBinary() + _ = yym1647 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) @@ -19112,23 +19408,23 @@ func (x *PodSecurityPolicyList) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq1600[0] { + if yyq1645[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym1603 := z.EncBinary() - _ = yym1603 + yym1648 := z.EncBinary() + _ = yym1648 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } - if yyr1600 || yy2arr1600 { + if yyr1645 || yy2arr1645 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1600[1] { - yym1605 := z.EncBinary() - _ = yym1605 + if yyq1645[1] { + yym1650 := z.EncBinary() + _ = yym1650 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) @@ -19137,54 +19433,54 @@ func (x *PodSecurityPolicyList) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq1600[1] { + if yyq1645[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym1606 := z.EncBinary() - _ = yym1606 + yym1651 := z.EncBinary() + _ = yym1651 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } - if yyr1600 || yy2arr1600 { + if yyr1645 || yy2arr1645 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1600[2] { - yy1608 := &x.ListMeta - yym1609 := z.EncBinary() - _ = yym1609 + if yyq1645[2] { + yy1653 := &x.ListMeta + yym1654 := z.EncBinary() + _ = yym1654 if false { - } else if z.HasExtensions() && z.EncExt(yy1608) { + } else if z.HasExtensions() && z.EncExt(yy1653) { } else { - z.EncFallback(yy1608) + z.EncFallback(yy1653) } } else { r.EncodeNil() } } else { - if yyq1600[2] { + if yyq1645[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy1610 := &x.ListMeta - yym1611 := z.EncBinary() - _ = yym1611 + yy1655 := &x.ListMeta + yym1656 := z.EncBinary() + _ = yym1656 if false { - } else if z.HasExtensions() && z.EncExt(yy1610) { + } else if z.HasExtensions() && z.EncExt(yy1655) { } else { - z.EncFallback(yy1610) + z.EncFallback(yy1655) } } } - if yyr1600 || yy2arr1600 { + if yyr1645 || yy2arr1645 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.Items == nil { r.EncodeNil() } else { - yym1613 := z.EncBinary() - _ = yym1613 + yym1658 := z.EncBinary() + _ = yym1658 if false { } else { h.encSlicePodSecurityPolicy(([]PodSecurityPolicy)(x.Items), e) @@ -19197,15 +19493,15 @@ func (x *PodSecurityPolicyList) CodecEncodeSelf(e *codec1978.Encoder) { if x.Items == nil { r.EncodeNil() } else { - yym1614 := z.EncBinary() - _ = yym1614 + yym1659 := z.EncBinary() + _ = yym1659 if false { } else { h.encSlicePodSecurityPolicy(([]PodSecurityPolicy)(x.Items), e) } } } - if yyr1600 || yy2arr1600 { + if yyr1645 || yy2arr1645 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -19218,25 +19514,25 @@ func (x *PodSecurityPolicyList) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1615 := z.DecBinary() - _ = yym1615 + yym1660 := z.DecBinary() + _ = yym1660 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct1616 := r.ContainerType() - if yyct1616 == codecSelferValueTypeMap1234 { - yyl1616 := r.ReadMapStart() - if yyl1616 == 0 { + yyct1661 := r.ContainerType() + if yyct1661 == codecSelferValueTypeMap1234 { + yyl1661 := r.ReadMapStart() + if yyl1661 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl1616, d) + x.codecDecodeSelfFromMap(yyl1661, d) } - } else if yyct1616 == codecSelferValueTypeArray1234 { - yyl1616 := r.ReadArrayStart() - if yyl1616 == 0 { + } else if yyct1661 == codecSelferValueTypeArray1234 { + yyl1661 := r.ReadArrayStart() + if yyl1661 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl1616, d) + x.codecDecodeSelfFromArray(yyl1661, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -19248,12 +19544,12 @@ func (x *PodSecurityPolicyList) codecDecodeSelfFromMap(l int, d *codec1978.Decod var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys1617Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys1617Slc - var yyhl1617 bool = l >= 0 - for yyj1617 := 0; ; yyj1617++ { - if yyhl1617 { - if yyj1617 >= l { + var yys1662Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys1662Slc + var yyhl1662 bool = l >= 0 + for yyj1662 := 0; ; yyj1662++ { + if yyhl1662 { + if yyj1662 >= l { break } } else { @@ -19262,10 +19558,10 @@ func (x *PodSecurityPolicyList) codecDecodeSelfFromMap(l int, d *codec1978.Decod } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys1617Slc = r.DecodeBytes(yys1617Slc, true, true) - yys1617 := string(yys1617Slc) + yys1662Slc = r.DecodeBytes(yys1662Slc, true, true) + yys1662 := string(yys1662Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys1617 { + switch yys1662 { case "kind": if r.TryDecodeAsNil() { x.Kind = "" @@ -19282,31 +19578,31 @@ func (x *PodSecurityPolicyList) codecDecodeSelfFromMap(l int, d *codec1978.Decod if r.TryDecodeAsNil() { x.ListMeta = pkg1_unversioned.ListMeta{} } else { - yyv1620 := &x.ListMeta - yym1621 := z.DecBinary() - _ = yym1621 + yyv1665 := &x.ListMeta + yym1666 := z.DecBinary() + _ = yym1666 if false { - } else if z.HasExtensions() && z.DecExt(yyv1620) { + } else if z.HasExtensions() && z.DecExt(yyv1665) { } else { - z.DecFallback(yyv1620, false) + z.DecFallback(yyv1665, false) } } case "items": if r.TryDecodeAsNil() { x.Items = nil } else { - yyv1622 := &x.Items - yym1623 := z.DecBinary() - _ = yym1623 + yyv1667 := &x.Items + yym1668 := z.DecBinary() + _ = yym1668 if false { } else { - h.decSlicePodSecurityPolicy((*[]PodSecurityPolicy)(yyv1622), d) + h.decSlicePodSecurityPolicy((*[]PodSecurityPolicy)(yyv1667), d) } } default: - z.DecStructFieldNotFound(-1, yys1617) - } // end switch yys1617 - } // end for yyj1617 + z.DecStructFieldNotFound(-1, yys1662) + } // end switch yys1662 + } // end for yyj1662 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -19314,16 +19610,16 @@ func (x *PodSecurityPolicyList) codecDecodeSelfFromArray(l int, d *codec1978.Dec var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj1624 int - var yyb1624 bool - var yyhl1624 bool = l >= 0 - yyj1624++ - if yyhl1624 { - yyb1624 = yyj1624 > l + var yyj1669 int + var yyb1669 bool + var yyhl1669 bool = l >= 0 + yyj1669++ + if yyhl1669 { + yyb1669 = yyj1669 > l } else { - yyb1624 = r.CheckBreak() + yyb1669 = r.CheckBreak() } - if yyb1624 { + if yyb1669 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -19333,13 +19629,13 @@ func (x *PodSecurityPolicyList) codecDecodeSelfFromArray(l int, d *codec1978.Dec } else { x.Kind = string(r.DecodeString()) } - yyj1624++ - if yyhl1624 { - yyb1624 = yyj1624 > l + yyj1669++ + if yyhl1669 { + yyb1669 = yyj1669 > l } else { - yyb1624 = r.CheckBreak() + yyb1669 = r.CheckBreak() } - if yyb1624 { + if yyb1669 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -19349,13 +19645,13 @@ func (x *PodSecurityPolicyList) codecDecodeSelfFromArray(l int, d *codec1978.Dec } else { x.APIVersion = string(r.DecodeString()) } - yyj1624++ - if yyhl1624 { - yyb1624 = yyj1624 > l + yyj1669++ + if yyhl1669 { + yyb1669 = yyj1669 > l } else { - yyb1624 = r.CheckBreak() + yyb1669 = r.CheckBreak() } - if yyb1624 { + if yyb1669 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -19363,22 +19659,22 @@ func (x *PodSecurityPolicyList) codecDecodeSelfFromArray(l int, d *codec1978.Dec if r.TryDecodeAsNil() { x.ListMeta = pkg1_unversioned.ListMeta{} } else { - yyv1627 := &x.ListMeta - yym1628 := z.DecBinary() - _ = yym1628 + yyv1672 := &x.ListMeta + yym1673 := z.DecBinary() + _ = yym1673 if false { - } else if z.HasExtensions() && z.DecExt(yyv1627) { + } else if z.HasExtensions() && z.DecExt(yyv1672) { } else { - z.DecFallback(yyv1627, false) + z.DecFallback(yyv1672, false) } } - yyj1624++ - if yyhl1624 { - yyb1624 = yyj1624 > l + yyj1669++ + if yyhl1669 { + yyb1669 = yyj1669 > l } else { - yyb1624 = r.CheckBreak() + yyb1669 = r.CheckBreak() } - if yyb1624 { + if yyb1669 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -19386,26 +19682,26 @@ func (x *PodSecurityPolicyList) codecDecodeSelfFromArray(l int, d *codec1978.Dec if r.TryDecodeAsNil() { x.Items = nil } else { - yyv1629 := &x.Items - yym1630 := z.DecBinary() - _ = yym1630 + yyv1674 := &x.Items + yym1675 := z.DecBinary() + _ = yym1675 if false { } else { - h.decSlicePodSecurityPolicy((*[]PodSecurityPolicy)(yyv1629), d) + h.decSlicePodSecurityPolicy((*[]PodSecurityPolicy)(yyv1674), d) } } for { - yyj1624++ - if yyhl1624 { - yyb1624 = yyj1624 > l + yyj1669++ + if yyhl1669 { + yyb1669 = yyj1669 > l } else { - yyb1624 = r.CheckBreak() + yyb1669 = r.CheckBreak() } - if yyb1624 { + if yyb1669 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj1624-1, "") + z.DecStructFieldNotFound(yyj1669-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -19417,38 +19713,38 @@ func (x *NetworkPolicy) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1631 := z.EncBinary() - _ = yym1631 + yym1676 := z.EncBinary() + _ = yym1676 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - 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 { + yysep1677 := !z.EncBinary() + yy2arr1677 := z.EncBasicHandle().StructToArray + var yyq1677 [4]bool + _, _, _ = yysep1677, yyq1677, yy2arr1677 + const yyr1677 bool = false + yyq1677[0] = x.Kind != "" + yyq1677[1] = x.APIVersion != "" + yyq1677[2] = true + yyq1677[3] = true + var yynn1677 int + if yyr1677 || yy2arr1677 { r.EncodeArrayStart(4) } else { - yynn1632 = 0 - for _, b := range yyq1632 { + yynn1677 = 0 + for _, b := range yyq1677 { if b { - yynn1632++ + yynn1677++ } } - r.EncodeMapStart(yynn1632) - yynn1632 = 0 + r.EncodeMapStart(yynn1677) + yynn1677 = 0 } - if yyr1632 || yy2arr1632 { + if yyr1677 || yy2arr1677 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1632[0] { - yym1634 := z.EncBinary() - _ = yym1634 + if yyq1677[0] { + yym1679 := z.EncBinary() + _ = yym1679 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) @@ -19457,23 +19753,23 @@ func (x *NetworkPolicy) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq1632[0] { + if yyq1677[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym1635 := z.EncBinary() - _ = yym1635 + yym1680 := z.EncBinary() + _ = yym1680 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } - if yyr1632 || yy2arr1632 { + if yyr1677 || yy2arr1677 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1632[1] { - yym1637 := z.EncBinary() - _ = yym1637 + if yyq1677[1] { + yym1682 := z.EncBinary() + _ = yym1682 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) @@ -19482,53 +19778,53 @@ func (x *NetworkPolicy) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq1632[1] { + if yyq1677[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym1638 := z.EncBinary() - _ = yym1638 + yym1683 := z.EncBinary() + _ = yym1683 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } - if yyr1632 || yy2arr1632 { + if yyr1677 || yy2arr1677 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1632[2] { - yy1640 := &x.ObjectMeta - yy1640.CodecEncodeSelf(e) + if yyq1677[2] { + yy1685 := &x.ObjectMeta + yy1685.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { - if yyq1632[2] { + if yyq1677[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy1641 := &x.ObjectMeta - yy1641.CodecEncodeSelf(e) + yy1686 := &x.ObjectMeta + yy1686.CodecEncodeSelf(e) } } - if yyr1632 || yy2arr1632 { + if yyr1677 || yy2arr1677 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1632[3] { - yy1643 := &x.Spec - yy1643.CodecEncodeSelf(e) + if yyq1677[3] { + yy1688 := &x.Spec + yy1688.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { - if yyq1632[3] { + if yyq1677[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("spec")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy1644 := &x.Spec - yy1644.CodecEncodeSelf(e) + yy1689 := &x.Spec + yy1689.CodecEncodeSelf(e) } } - if yyr1632 || yy2arr1632 { + if yyr1677 || yy2arr1677 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -19541,25 +19837,25 @@ func (x *NetworkPolicy) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1645 := z.DecBinary() - _ = yym1645 + yym1690 := z.DecBinary() + _ = yym1690 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct1646 := r.ContainerType() - if yyct1646 == codecSelferValueTypeMap1234 { - yyl1646 := r.ReadMapStart() - if yyl1646 == 0 { + yyct1691 := r.ContainerType() + if yyct1691 == codecSelferValueTypeMap1234 { + yyl1691 := r.ReadMapStart() + if yyl1691 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl1646, d) + x.codecDecodeSelfFromMap(yyl1691, d) } - } else if yyct1646 == codecSelferValueTypeArray1234 { - yyl1646 := r.ReadArrayStart() - if yyl1646 == 0 { + } else if yyct1691 == codecSelferValueTypeArray1234 { + yyl1691 := r.ReadArrayStart() + if yyl1691 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl1646, d) + x.codecDecodeSelfFromArray(yyl1691, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -19571,12 +19867,12 @@ func (x *NetworkPolicy) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys1647Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys1647Slc - var yyhl1647 bool = l >= 0 - for yyj1647 := 0; ; yyj1647++ { - if yyhl1647 { - if yyj1647 >= l { + var yys1692Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys1692Slc + var yyhl1692 bool = l >= 0 + for yyj1692 := 0; ; yyj1692++ { + if yyhl1692 { + if yyj1692 >= l { break } } else { @@ -19585,10 +19881,10 @@ func (x *NetworkPolicy) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys1647Slc = r.DecodeBytes(yys1647Slc, true, true) - yys1647 := string(yys1647Slc) + yys1692Slc = r.DecodeBytes(yys1692Slc, true, true) + yys1692 := string(yys1692Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys1647 { + switch yys1692 { case "kind": if r.TryDecodeAsNil() { x.Kind = "" @@ -19605,20 +19901,20 @@ func (x *NetworkPolicy) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.ObjectMeta = pkg2_v1.ObjectMeta{} } else { - yyv1650 := &x.ObjectMeta - yyv1650.CodecDecodeSelf(d) + yyv1695 := &x.ObjectMeta + yyv1695.CodecDecodeSelf(d) } case "spec": if r.TryDecodeAsNil() { x.Spec = NetworkPolicySpec{} } else { - yyv1651 := &x.Spec - yyv1651.CodecDecodeSelf(d) + yyv1696 := &x.Spec + yyv1696.CodecDecodeSelf(d) } default: - z.DecStructFieldNotFound(-1, yys1647) - } // end switch yys1647 - } // end for yyj1647 + z.DecStructFieldNotFound(-1, yys1692) + } // end switch yys1692 + } // end for yyj1692 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -19626,16 +19922,16 @@ func (x *NetworkPolicy) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj1652 int - var yyb1652 bool - var yyhl1652 bool = l >= 0 - yyj1652++ - if yyhl1652 { - yyb1652 = yyj1652 > l + var yyj1697 int + var yyb1697 bool + var yyhl1697 bool = l >= 0 + yyj1697++ + if yyhl1697 { + yyb1697 = yyj1697 > l } else { - yyb1652 = r.CheckBreak() + yyb1697 = r.CheckBreak() } - if yyb1652 { + if yyb1697 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -19645,13 +19941,13 @@ func (x *NetworkPolicy) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.Kind = string(r.DecodeString()) } - yyj1652++ - if yyhl1652 { - yyb1652 = yyj1652 > l + yyj1697++ + if yyhl1697 { + yyb1697 = yyj1697 > l } else { - yyb1652 = r.CheckBreak() + yyb1697 = r.CheckBreak() } - if yyb1652 { + if yyb1697 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -19661,13 +19957,13 @@ func (x *NetworkPolicy) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.APIVersion = string(r.DecodeString()) } - yyj1652++ - if yyhl1652 { - yyb1652 = yyj1652 > l + yyj1697++ + if yyhl1697 { + yyb1697 = yyj1697 > l } else { - yyb1652 = r.CheckBreak() + yyb1697 = r.CheckBreak() } - if yyb1652 { + if yyb1697 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -19675,16 +19971,16 @@ func (x *NetworkPolicy) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.ObjectMeta = pkg2_v1.ObjectMeta{} } else { - yyv1655 := &x.ObjectMeta - yyv1655.CodecDecodeSelf(d) + yyv1700 := &x.ObjectMeta + yyv1700.CodecDecodeSelf(d) } - yyj1652++ - if yyhl1652 { - yyb1652 = yyj1652 > l + yyj1697++ + if yyhl1697 { + yyb1697 = yyj1697 > l } else { - yyb1652 = r.CheckBreak() + yyb1697 = r.CheckBreak() } - if yyb1652 { + if yyb1697 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -19692,21 +19988,21 @@ func (x *NetworkPolicy) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.Spec = NetworkPolicySpec{} } else { - yyv1656 := &x.Spec - yyv1656.CodecDecodeSelf(d) + yyv1701 := &x.Spec + yyv1701.CodecDecodeSelf(d) } for { - yyj1652++ - if yyhl1652 { - yyb1652 = yyj1652 > l + yyj1697++ + if yyhl1697 { + yyb1697 = yyj1697 > l } else { - yyb1652 = r.CheckBreak() + yyb1697 = r.CheckBreak() } - if yyb1652 { + if yyb1697 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj1652-1, "") + z.DecStructFieldNotFound(yyj1697-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -19718,49 +20014,61 @@ func (x *NetworkPolicySpec) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1657 := z.EncBinary() - _ = yym1657 + yym1702 := z.EncBinary() + _ = yym1702 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - 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 { + yysep1703 := !z.EncBinary() + yy2arr1703 := z.EncBasicHandle().StructToArray + var yyq1703 [2]bool + _, _, _ = yysep1703, yyq1703, yy2arr1703 + const yyr1703 bool = false + yyq1703[1] = len(x.Ingress) != 0 + var yynn1703 int + if yyr1703 || yy2arr1703 { r.EncodeArrayStart(2) } else { - yynn1658 = 1 - for _, b := range yyq1658 { + yynn1703 = 1 + for _, b := range yyq1703 { if b { - yynn1658++ + yynn1703++ } } - r.EncodeMapStart(yynn1658) - yynn1658 = 0 + r.EncodeMapStart(yynn1703) + yynn1703 = 0 } - if yyr1658 || yy2arr1658 { + if yyr1703 || yy2arr1703 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy1660 := &x.PodSelector - yy1660.CodecEncodeSelf(e) + yy1705 := &x.PodSelector + yym1706 := z.EncBinary() + _ = yym1706 + if false { + } else if z.HasExtensions() && z.EncExt(yy1705) { + } else { + z.EncFallback(yy1705) + } } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("podSelector")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy1661 := &x.PodSelector - yy1661.CodecEncodeSelf(e) + yy1707 := &x.PodSelector + yym1708 := z.EncBinary() + _ = yym1708 + if false { + } else if z.HasExtensions() && z.EncExt(yy1707) { + } else { + z.EncFallback(yy1707) + } } - if yyr1658 || yy2arr1658 { + if yyr1703 || yy2arr1703 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1658[1] { + if yyq1703[1] { if x.Ingress == nil { r.EncodeNil() } else { - yym1663 := z.EncBinary() - _ = yym1663 + yym1710 := z.EncBinary() + _ = yym1710 if false { } else { h.encSliceNetworkPolicyIngressRule(([]NetworkPolicyIngressRule)(x.Ingress), e) @@ -19770,15 +20078,15 @@ func (x *NetworkPolicySpec) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq1658[1] { + if yyq1703[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("ingress")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.Ingress == nil { r.EncodeNil() } else { - yym1664 := z.EncBinary() - _ = yym1664 + yym1711 := z.EncBinary() + _ = yym1711 if false { } else { h.encSliceNetworkPolicyIngressRule(([]NetworkPolicyIngressRule)(x.Ingress), e) @@ -19786,7 +20094,7 @@ func (x *NetworkPolicySpec) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr1658 || yy2arr1658 { + if yyr1703 || yy2arr1703 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -19799,25 +20107,25 @@ func (x *NetworkPolicySpec) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1665 := z.DecBinary() - _ = yym1665 + yym1712 := z.DecBinary() + _ = yym1712 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct1666 := r.ContainerType() - if yyct1666 == codecSelferValueTypeMap1234 { - yyl1666 := r.ReadMapStart() - if yyl1666 == 0 { + yyct1713 := r.ContainerType() + if yyct1713 == codecSelferValueTypeMap1234 { + yyl1713 := r.ReadMapStart() + if yyl1713 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl1666, d) + x.codecDecodeSelfFromMap(yyl1713, d) } - } else if yyct1666 == codecSelferValueTypeArray1234 { - yyl1666 := r.ReadArrayStart() - if yyl1666 == 0 { + } else if yyct1713 == codecSelferValueTypeArray1234 { + yyl1713 := r.ReadArrayStart() + if yyl1713 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl1666, d) + x.codecDecodeSelfFromArray(yyl1713, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -19829,12 +20137,12 @@ func (x *NetworkPolicySpec) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys1667Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys1667Slc - var yyhl1667 bool = l >= 0 - for yyj1667 := 0; ; yyj1667++ { - if yyhl1667 { - if yyj1667 >= l { + var yys1714Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys1714Slc + var yyhl1714 bool = l >= 0 + for yyj1714 := 0; ; yyj1714++ { + if yyhl1714 { + if yyj1714 >= l { break } } else { @@ -19843,33 +20151,39 @@ func (x *NetworkPolicySpec) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys1667Slc = r.DecodeBytes(yys1667Slc, true, true) - yys1667 := string(yys1667Slc) + yys1714Slc = r.DecodeBytes(yys1714Slc, true, true) + yys1714 := string(yys1714Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys1667 { + switch yys1714 { case "podSelector": if r.TryDecodeAsNil() { - x.PodSelector = LabelSelector{} + x.PodSelector = pkg1_unversioned.LabelSelector{} } else { - yyv1668 := &x.PodSelector - yyv1668.CodecDecodeSelf(d) + yyv1715 := &x.PodSelector + yym1716 := z.DecBinary() + _ = yym1716 + if false { + } else if z.HasExtensions() && z.DecExt(yyv1715) { + } else { + z.DecFallback(yyv1715, false) + } } case "ingress": if r.TryDecodeAsNil() { x.Ingress = nil } else { - yyv1669 := &x.Ingress - yym1670 := z.DecBinary() - _ = yym1670 + yyv1717 := &x.Ingress + yym1718 := z.DecBinary() + _ = yym1718 if false { } else { - h.decSliceNetworkPolicyIngressRule((*[]NetworkPolicyIngressRule)(yyv1669), d) + h.decSliceNetworkPolicyIngressRule((*[]NetworkPolicyIngressRule)(yyv1717), d) } } default: - z.DecStructFieldNotFound(-1, yys1667) - } // end switch yys1667 - } // end for yyj1667 + z.DecStructFieldNotFound(-1, yys1714) + } // end switch yys1714 + } // end for yyj1714 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -19877,33 +20191,39 @@ func (x *NetworkPolicySpec) codecDecodeSelfFromArray(l int, d *codec1978.Decoder var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj1671 int - var yyb1671 bool - var yyhl1671 bool = l >= 0 - yyj1671++ - if yyhl1671 { - yyb1671 = yyj1671 > l + var yyj1719 int + var yyb1719 bool + var yyhl1719 bool = l >= 0 + yyj1719++ + if yyhl1719 { + yyb1719 = yyj1719 > l } else { - yyb1671 = r.CheckBreak() + yyb1719 = r.CheckBreak() } - if yyb1671 { + if yyb1719 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.PodSelector = LabelSelector{} + x.PodSelector = pkg1_unversioned.LabelSelector{} } else { - yyv1672 := &x.PodSelector - yyv1672.CodecDecodeSelf(d) + yyv1720 := &x.PodSelector + yym1721 := z.DecBinary() + _ = yym1721 + if false { + } else if z.HasExtensions() && z.DecExt(yyv1720) { + } else { + z.DecFallback(yyv1720, false) + } } - yyj1671++ - if yyhl1671 { - yyb1671 = yyj1671 > l + yyj1719++ + if yyhl1719 { + yyb1719 = yyj1719 > l } else { - yyb1671 = r.CheckBreak() + yyb1719 = r.CheckBreak() } - if yyb1671 { + if yyb1719 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -19911,26 +20231,26 @@ func (x *NetworkPolicySpec) codecDecodeSelfFromArray(l int, d *codec1978.Decoder if r.TryDecodeAsNil() { x.Ingress = nil } else { - yyv1673 := &x.Ingress - yym1674 := z.DecBinary() - _ = yym1674 + yyv1722 := &x.Ingress + yym1723 := z.DecBinary() + _ = yym1723 if false { } else { - h.decSliceNetworkPolicyIngressRule((*[]NetworkPolicyIngressRule)(yyv1673), d) + h.decSliceNetworkPolicyIngressRule((*[]NetworkPolicyIngressRule)(yyv1722), d) } } for { - yyj1671++ - if yyhl1671 { - yyb1671 = yyj1671 > l + yyj1719++ + if yyhl1719 { + yyb1719 = yyj1719 > l } else { - yyb1671 = r.CheckBreak() + yyb1719 = r.CheckBreak() } - if yyb1671 { + if yyb1719 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj1671-1, "") + z.DecStructFieldNotFound(yyj1719-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -19942,39 +20262,39 @@ func (x *NetworkPolicyIngressRule) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1675 := z.EncBinary() - _ = yym1675 + yym1724 := z.EncBinary() + _ = yym1724 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - 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 { + yysep1725 := !z.EncBinary() + yy2arr1725 := z.EncBasicHandle().StructToArray + var yyq1725 [2]bool + _, _, _ = yysep1725, yyq1725, yy2arr1725 + const yyr1725 bool = false + yyq1725[0] = len(x.Ports) != 0 + yyq1725[1] = len(x.From) != 0 + var yynn1725 int + if yyr1725 || yy2arr1725 { r.EncodeArrayStart(2) } else { - yynn1676 = 0 - for _, b := range yyq1676 { + yynn1725 = 0 + for _, b := range yyq1725 { if b { - yynn1676++ + yynn1725++ } } - r.EncodeMapStart(yynn1676) - yynn1676 = 0 + r.EncodeMapStart(yynn1725) + yynn1725 = 0 } - if yyr1676 || yy2arr1676 { + if yyr1725 || yy2arr1725 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1676[0] { + if yyq1725[0] { if x.Ports == nil { r.EncodeNil() } else { - yym1678 := z.EncBinary() - _ = yym1678 + yym1727 := z.EncBinary() + _ = yym1727 if false { } else { h.encSliceNetworkPolicyPort(([]NetworkPolicyPort)(x.Ports), e) @@ -19984,15 +20304,15 @@ func (x *NetworkPolicyIngressRule) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq1676[0] { + if yyq1725[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("ports")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.Ports == nil { r.EncodeNil() } else { - yym1679 := z.EncBinary() - _ = yym1679 + yym1728 := z.EncBinary() + _ = yym1728 if false { } else { h.encSliceNetworkPolicyPort(([]NetworkPolicyPort)(x.Ports), e) @@ -20000,14 +20320,14 @@ func (x *NetworkPolicyIngressRule) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr1676 || yy2arr1676 { + if yyr1725 || yy2arr1725 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1676[1] { + if yyq1725[1] { if x.From == nil { r.EncodeNil() } else { - yym1681 := z.EncBinary() - _ = yym1681 + yym1730 := z.EncBinary() + _ = yym1730 if false { } else { h.encSliceNetworkPolicyPeer(([]NetworkPolicyPeer)(x.From), e) @@ -20017,15 +20337,15 @@ func (x *NetworkPolicyIngressRule) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq1676[1] { + if yyq1725[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("from")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.From == nil { r.EncodeNil() } else { - yym1682 := z.EncBinary() - _ = yym1682 + yym1731 := z.EncBinary() + _ = yym1731 if false { } else { h.encSliceNetworkPolicyPeer(([]NetworkPolicyPeer)(x.From), e) @@ -20033,7 +20353,7 @@ func (x *NetworkPolicyIngressRule) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr1676 || yy2arr1676 { + if yyr1725 || yy2arr1725 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -20046,25 +20366,25 @@ func (x *NetworkPolicyIngressRule) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1683 := z.DecBinary() - _ = yym1683 + yym1732 := z.DecBinary() + _ = yym1732 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct1684 := r.ContainerType() - if yyct1684 == codecSelferValueTypeMap1234 { - yyl1684 := r.ReadMapStart() - if yyl1684 == 0 { + yyct1733 := r.ContainerType() + if yyct1733 == codecSelferValueTypeMap1234 { + yyl1733 := r.ReadMapStart() + if yyl1733 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl1684, d) + x.codecDecodeSelfFromMap(yyl1733, d) } - } else if yyct1684 == codecSelferValueTypeArray1234 { - yyl1684 := r.ReadArrayStart() - if yyl1684 == 0 { + } else if yyct1733 == codecSelferValueTypeArray1234 { + yyl1733 := r.ReadArrayStart() + if yyl1733 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl1684, d) + x.codecDecodeSelfFromArray(yyl1733, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -20076,12 +20396,12 @@ func (x *NetworkPolicyIngressRule) codecDecodeSelfFromMap(l int, d *codec1978.De var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys1685Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys1685Slc - var yyhl1685 bool = l >= 0 - for yyj1685 := 0; ; yyj1685++ { - if yyhl1685 { - if yyj1685 >= l { + var yys1734Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys1734Slc + var yyhl1734 bool = l >= 0 + for yyj1734 := 0; ; yyj1734++ { + if yyhl1734 { + if yyj1734 >= l { break } } else { @@ -20090,38 +20410,38 @@ func (x *NetworkPolicyIngressRule) codecDecodeSelfFromMap(l int, d *codec1978.De } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys1685Slc = r.DecodeBytes(yys1685Slc, true, true) - yys1685 := string(yys1685Slc) + yys1734Slc = r.DecodeBytes(yys1734Slc, true, true) + yys1734 := string(yys1734Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys1685 { + switch yys1734 { case "ports": if r.TryDecodeAsNil() { x.Ports = nil } else { - yyv1686 := &x.Ports - yym1687 := z.DecBinary() - _ = yym1687 + yyv1735 := &x.Ports + yym1736 := z.DecBinary() + _ = yym1736 if false { } else { - h.decSliceNetworkPolicyPort((*[]NetworkPolicyPort)(yyv1686), d) + h.decSliceNetworkPolicyPort((*[]NetworkPolicyPort)(yyv1735), d) } } case "from": if r.TryDecodeAsNil() { x.From = nil } else { - yyv1688 := &x.From - yym1689 := z.DecBinary() - _ = yym1689 + yyv1737 := &x.From + yym1738 := z.DecBinary() + _ = yym1738 if false { } else { - h.decSliceNetworkPolicyPeer((*[]NetworkPolicyPeer)(yyv1688), d) + h.decSliceNetworkPolicyPeer((*[]NetworkPolicyPeer)(yyv1737), d) } } default: - z.DecStructFieldNotFound(-1, yys1685) - } // end switch yys1685 - } // end for yyj1685 + z.DecStructFieldNotFound(-1, yys1734) + } // end switch yys1734 + } // end for yyj1734 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -20129,16 +20449,16 @@ func (x *NetworkPolicyIngressRule) codecDecodeSelfFromArray(l int, d *codec1978. var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj1690 int - var yyb1690 bool - var yyhl1690 bool = l >= 0 - yyj1690++ - if yyhl1690 { - yyb1690 = yyj1690 > l + var yyj1739 int + var yyb1739 bool + var yyhl1739 bool = l >= 0 + yyj1739++ + if yyhl1739 { + yyb1739 = yyj1739 > l } else { - yyb1690 = r.CheckBreak() + yyb1739 = r.CheckBreak() } - if yyb1690 { + if yyb1739 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -20146,21 +20466,21 @@ func (x *NetworkPolicyIngressRule) codecDecodeSelfFromArray(l int, d *codec1978. if r.TryDecodeAsNil() { x.Ports = nil } else { - yyv1691 := &x.Ports - yym1692 := z.DecBinary() - _ = yym1692 + yyv1740 := &x.Ports + yym1741 := z.DecBinary() + _ = yym1741 if false { } else { - h.decSliceNetworkPolicyPort((*[]NetworkPolicyPort)(yyv1691), d) + h.decSliceNetworkPolicyPort((*[]NetworkPolicyPort)(yyv1740), d) } } - yyj1690++ - if yyhl1690 { - yyb1690 = yyj1690 > l + yyj1739++ + if yyhl1739 { + yyb1739 = yyj1739 > l } else { - yyb1690 = r.CheckBreak() + yyb1739 = r.CheckBreak() } - if yyb1690 { + if yyb1739 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -20168,26 +20488,26 @@ func (x *NetworkPolicyIngressRule) codecDecodeSelfFromArray(l int, d *codec1978. if r.TryDecodeAsNil() { x.From = nil } else { - yyv1693 := &x.From - yym1694 := z.DecBinary() - _ = yym1694 + yyv1742 := &x.From + yym1743 := z.DecBinary() + _ = yym1743 if false { } else { - h.decSliceNetworkPolicyPeer((*[]NetworkPolicyPeer)(yyv1693), d) + h.decSliceNetworkPolicyPeer((*[]NetworkPolicyPeer)(yyv1742), d) } } for { - yyj1690++ - if yyhl1690 { - yyb1690 = yyj1690 > l + yyj1739++ + if yyhl1739 { + yyb1739 = yyj1739 > l } else { - yyb1690 = r.CheckBreak() + yyb1739 = r.CheckBreak() } - if yyb1690 { + if yyb1739 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj1690-1, "") + z.DecStructFieldNotFound(yyj1739-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -20199,79 +20519,79 @@ func (x *NetworkPolicyPort) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1695 := z.EncBinary() - _ = yym1695 + yym1744 := z.EncBinary() + _ = yym1744 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - 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 { + yysep1745 := !z.EncBinary() + yy2arr1745 := z.EncBasicHandle().StructToArray + var yyq1745 [2]bool + _, _, _ = yysep1745, yyq1745, yy2arr1745 + const yyr1745 bool = false + yyq1745[0] = x.Protocol != nil + yyq1745[1] = x.Port != nil + var yynn1745 int + if yyr1745 || yy2arr1745 { r.EncodeArrayStart(2) } else { - yynn1696 = 0 - for _, b := range yyq1696 { + yynn1745 = 0 + for _, b := range yyq1745 { if b { - yynn1696++ + yynn1745++ } } - r.EncodeMapStart(yynn1696) - yynn1696 = 0 + r.EncodeMapStart(yynn1745) + yynn1745 = 0 } - if yyr1696 || yy2arr1696 { + if yyr1745 || yy2arr1745 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1696[0] { + if yyq1745[0] { if x.Protocol == nil { r.EncodeNil() } else { - yy1698 := *x.Protocol - yym1699 := z.EncBinary() - _ = yym1699 + yy1747 := *x.Protocol + yym1748 := z.EncBinary() + _ = yym1748 if false { - } else if z.HasExtensions() && z.EncExt(yy1698) { + } else if z.HasExtensions() && z.EncExt(yy1747) { } else { - r.EncodeString(codecSelferC_UTF81234, string(yy1698)) + r.EncodeString(codecSelferC_UTF81234, string(yy1747)) } } } else { r.EncodeNil() } } else { - if yyq1696[0] { + if yyq1745[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("protocol")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.Protocol == nil { r.EncodeNil() } else { - yy1700 := *x.Protocol - yym1701 := z.EncBinary() - _ = yym1701 + yy1749 := *x.Protocol + yym1750 := z.EncBinary() + _ = yym1750 if false { - } else if z.HasExtensions() && z.EncExt(yy1700) { + } else if z.HasExtensions() && z.EncExt(yy1749) { } else { - r.EncodeString(codecSelferC_UTF81234, string(yy1700)) + r.EncodeString(codecSelferC_UTF81234, string(yy1749)) } } } } - if yyr1696 || yy2arr1696 { + if yyr1745 || yy2arr1745 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1696[1] { + if yyq1745[1] { if x.Port == nil { r.EncodeNil() } else { - yym1703 := z.EncBinary() - _ = yym1703 + yym1752 := z.EncBinary() + _ = yym1752 if false { } else if z.HasExtensions() && z.EncExt(x.Port) { - } else if !yym1703 && z.IsJSONHandle() { + } else if !yym1752 && z.IsJSONHandle() { z.EncJSONMarshal(x.Port) } else { z.EncFallback(x.Port) @@ -20281,18 +20601,18 @@ func (x *NetworkPolicyPort) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq1696[1] { + if yyq1745[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("port")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.Port == nil { r.EncodeNil() } else { - yym1704 := z.EncBinary() - _ = yym1704 + yym1753 := z.EncBinary() + _ = yym1753 if false { } else if z.HasExtensions() && z.EncExt(x.Port) { - } else if !yym1704 && z.IsJSONHandle() { + } else if !yym1753 && z.IsJSONHandle() { z.EncJSONMarshal(x.Port) } else { z.EncFallback(x.Port) @@ -20300,7 +20620,7 @@ func (x *NetworkPolicyPort) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr1696 || yy2arr1696 { + if yyr1745 || yy2arr1745 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -20313,25 +20633,25 @@ func (x *NetworkPolicyPort) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1705 := z.DecBinary() - _ = yym1705 + yym1754 := z.DecBinary() + _ = yym1754 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct1706 := r.ContainerType() - if yyct1706 == codecSelferValueTypeMap1234 { - yyl1706 := r.ReadMapStart() - if yyl1706 == 0 { + yyct1755 := r.ContainerType() + if yyct1755 == codecSelferValueTypeMap1234 { + yyl1755 := r.ReadMapStart() + if yyl1755 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl1706, d) + x.codecDecodeSelfFromMap(yyl1755, d) } - } else if yyct1706 == codecSelferValueTypeArray1234 { - yyl1706 := r.ReadArrayStart() - if yyl1706 == 0 { + } else if yyct1755 == codecSelferValueTypeArray1234 { + yyl1755 := r.ReadArrayStart() + if yyl1755 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl1706, d) + x.codecDecodeSelfFromArray(yyl1755, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -20343,12 +20663,12 @@ func (x *NetworkPolicyPort) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys1707Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys1707Slc - var yyhl1707 bool = l >= 0 - for yyj1707 := 0; ; yyj1707++ { - if yyhl1707 { - if yyj1707 >= l { + var yys1756Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys1756Slc + var yyhl1756 bool = l >= 0 + for yyj1756 := 0; ; yyj1756++ { + if yyhl1756 { + if yyj1756 >= l { break } } else { @@ -20357,10 +20677,10 @@ func (x *NetworkPolicyPort) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys1707Slc = r.DecodeBytes(yys1707Slc, true, true) - yys1707 := string(yys1707Slc) + yys1756Slc = r.DecodeBytes(yys1756Slc, true, true) + yys1756 := string(yys1756Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys1707 { + switch yys1756 { case "protocol": if r.TryDecodeAsNil() { if x.Protocol != nil { @@ -20381,20 +20701,20 @@ func (x *NetworkPolicyPort) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) if x.Port == nil { x.Port = new(pkg5_intstr.IntOrString) } - yym1710 := z.DecBinary() - _ = yym1710 + yym1759 := z.DecBinary() + _ = yym1759 if false { } else if z.HasExtensions() && z.DecExt(x.Port) { - } else if !yym1710 && z.IsJSONHandle() { + } else if !yym1759 && z.IsJSONHandle() { z.DecJSONUnmarshal(x.Port) } else { z.DecFallback(x.Port, false) } } default: - z.DecStructFieldNotFound(-1, yys1707) - } // end switch yys1707 - } // end for yyj1707 + z.DecStructFieldNotFound(-1, yys1756) + } // end switch yys1756 + } // end for yyj1756 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -20402,16 +20722,16 @@ func (x *NetworkPolicyPort) codecDecodeSelfFromArray(l int, d *codec1978.Decoder var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj1711 int - var yyb1711 bool - var yyhl1711 bool = l >= 0 - yyj1711++ - if yyhl1711 { - yyb1711 = yyj1711 > l + var yyj1760 int + var yyb1760 bool + var yyhl1760 bool = l >= 0 + yyj1760++ + if yyhl1760 { + yyb1760 = yyj1760 > l } else { - yyb1711 = r.CheckBreak() + yyb1760 = r.CheckBreak() } - if yyb1711 { + if yyb1760 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -20426,13 +20746,13 @@ func (x *NetworkPolicyPort) codecDecodeSelfFromArray(l int, d *codec1978.Decoder } x.Protocol.CodecDecodeSelf(d) } - yyj1711++ - if yyhl1711 { - yyb1711 = yyj1711 > l + yyj1760++ + if yyhl1760 { + yyb1760 = yyj1760 > l } else { - yyb1711 = r.CheckBreak() + yyb1760 = r.CheckBreak() } - if yyb1711 { + if yyb1760 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -20445,28 +20765,28 @@ func (x *NetworkPolicyPort) codecDecodeSelfFromArray(l int, d *codec1978.Decoder if x.Port == nil { x.Port = new(pkg5_intstr.IntOrString) } - yym1714 := z.DecBinary() - _ = yym1714 + yym1763 := z.DecBinary() + _ = yym1763 if false { } else if z.HasExtensions() && z.DecExt(x.Port) { - } else if !yym1714 && z.IsJSONHandle() { + } else if !yym1763 && z.IsJSONHandle() { z.DecJSONUnmarshal(x.Port) } else { z.DecFallback(x.Port, false) } } for { - yyj1711++ - if yyhl1711 { - yyb1711 = yyj1711 > l + yyj1760++ + if yyhl1760 { + yyb1760 = yyj1760 > l } else { - yyb1711 = r.CheckBreak() + yyb1760 = r.CheckBreak() } - if yyb1711 { + if yyb1760 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj1711-1, "") + z.DecStructFieldNotFound(yyj1760-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -20478,78 +20798,102 @@ func (x *NetworkPolicyPeer) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1715 := z.EncBinary() - _ = yym1715 + yym1764 := z.EncBinary() + _ = yym1764 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - 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 { + yysep1765 := !z.EncBinary() + yy2arr1765 := z.EncBasicHandle().StructToArray + var yyq1765 [2]bool + _, _, _ = yysep1765, yyq1765, yy2arr1765 + const yyr1765 bool = false + yyq1765[0] = x.PodSelector != nil + yyq1765[1] = x.NamespaceSelector != nil + var yynn1765 int + if yyr1765 || yy2arr1765 { r.EncodeArrayStart(2) } else { - yynn1716 = 0 - for _, b := range yyq1716 { + yynn1765 = 0 + for _, b := range yyq1765 { if b { - yynn1716++ + yynn1765++ } } - r.EncodeMapStart(yynn1716) - yynn1716 = 0 + r.EncodeMapStart(yynn1765) + yynn1765 = 0 } - if yyr1716 || yy2arr1716 { + if yyr1765 || yy2arr1765 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1716[0] { + if yyq1765[0] { if x.PodSelector == nil { r.EncodeNil() } else { - x.PodSelector.CodecEncodeSelf(e) + yym1767 := z.EncBinary() + _ = yym1767 + if false { + } else if z.HasExtensions() && z.EncExt(x.PodSelector) { + } else { + z.EncFallback(x.PodSelector) + } } } else { r.EncodeNil() } } else { - if yyq1716[0] { + if yyq1765[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("podSelector")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.PodSelector == nil { r.EncodeNil() } else { - x.PodSelector.CodecEncodeSelf(e) + yym1768 := z.EncBinary() + _ = yym1768 + if false { + } else if z.HasExtensions() && z.EncExt(x.PodSelector) { + } else { + z.EncFallback(x.PodSelector) + } } } } - if yyr1716 || yy2arr1716 { + if yyr1765 || yy2arr1765 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1716[1] { + if yyq1765[1] { if x.NamespaceSelector == nil { r.EncodeNil() } else { - x.NamespaceSelector.CodecEncodeSelf(e) + yym1770 := z.EncBinary() + _ = yym1770 + if false { + } else if z.HasExtensions() && z.EncExt(x.NamespaceSelector) { + } else { + z.EncFallback(x.NamespaceSelector) + } } } else { r.EncodeNil() } } else { - if yyq1716[1] { + if yyq1765[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("namespaceSelector")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.NamespaceSelector == nil { r.EncodeNil() } else { - x.NamespaceSelector.CodecEncodeSelf(e) + yym1771 := z.EncBinary() + _ = yym1771 + if false { + } else if z.HasExtensions() && z.EncExt(x.NamespaceSelector) { + } else { + z.EncFallback(x.NamespaceSelector) + } } } } - if yyr1716 || yy2arr1716 { + if yyr1765 || yy2arr1765 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -20562,25 +20906,25 @@ func (x *NetworkPolicyPeer) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1719 := z.DecBinary() - _ = yym1719 + yym1772 := z.DecBinary() + _ = yym1772 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct1720 := r.ContainerType() - if yyct1720 == codecSelferValueTypeMap1234 { - yyl1720 := r.ReadMapStart() - if yyl1720 == 0 { + yyct1773 := r.ContainerType() + if yyct1773 == codecSelferValueTypeMap1234 { + yyl1773 := r.ReadMapStart() + if yyl1773 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl1720, d) + x.codecDecodeSelfFromMap(yyl1773, d) } - } else if yyct1720 == codecSelferValueTypeArray1234 { - yyl1720 := r.ReadArrayStart() - if yyl1720 == 0 { + } else if yyct1773 == codecSelferValueTypeArray1234 { + yyl1773 := r.ReadArrayStart() + if yyl1773 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl1720, d) + x.codecDecodeSelfFromArray(yyl1773, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -20592,12 +20936,12 @@ func (x *NetworkPolicyPeer) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys1721Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys1721Slc - var yyhl1721 bool = l >= 0 - for yyj1721 := 0; ; yyj1721++ { - if yyhl1721 { - if yyj1721 >= l { + var 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 { @@ -20606,10 +20950,10 @@ func (x *NetworkPolicyPeer) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys1721Slc = r.DecodeBytes(yys1721Slc, true, true) - yys1721 := string(yys1721Slc) + yys1774Slc = r.DecodeBytes(yys1774Slc, true, true) + yys1774 := string(yys1774Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys1721 { + switch yys1774 { case "podSelector": if r.TryDecodeAsNil() { if x.PodSelector != nil { @@ -20617,9 +20961,15 @@ func (x *NetworkPolicyPeer) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) } } else { if x.PodSelector == nil { - x.PodSelector = new(LabelSelector) + x.PodSelector = new(pkg1_unversioned.LabelSelector) + } + yym1776 := z.DecBinary() + _ = yym1776 + if false { + } else if z.HasExtensions() && z.DecExt(x.PodSelector) { + } else { + z.DecFallback(x.PodSelector, false) } - x.PodSelector.CodecDecodeSelf(d) } case "namespaceSelector": if r.TryDecodeAsNil() { @@ -20628,14 +20978,20 @@ func (x *NetworkPolicyPeer) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) } } else { if x.NamespaceSelector == nil { - x.NamespaceSelector = new(LabelSelector) + x.NamespaceSelector = new(pkg1_unversioned.LabelSelector) + } + yym1778 := z.DecBinary() + _ = yym1778 + if false { + } else if z.HasExtensions() && z.DecExt(x.NamespaceSelector) { + } else { + z.DecFallback(x.NamespaceSelector, false) } - x.NamespaceSelector.CodecDecodeSelf(d) } default: - z.DecStructFieldNotFound(-1, yys1721) - } // end switch yys1721 - } // end for yyj1721 + z.DecStructFieldNotFound(-1, yys1774) + } // end switch yys1774 + } // end for yyj1774 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -20643,16 +20999,16 @@ 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 + var yyj1779 int + var yyb1779 bool + var yyhl1779 bool = l >= 0 + yyj1779++ + if yyhl1779 { + yyb1779 = yyj1779 > l } else { - yyb1724 = r.CheckBreak() + yyb1779 = r.CheckBreak() } - if yyb1724 { + if yyb1779 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -20663,17 +21019,23 @@ func (x *NetworkPolicyPeer) codecDecodeSelfFromArray(l int, d *codec1978.Decoder } } else { if x.PodSelector == nil { - x.PodSelector = new(LabelSelector) + x.PodSelector = new(pkg1_unversioned.LabelSelector) + } + yym1781 := z.DecBinary() + _ = yym1781 + if false { + } else if z.HasExtensions() && z.DecExt(x.PodSelector) { + } else { + z.DecFallback(x.PodSelector, false) } - x.PodSelector.CodecDecodeSelf(d) } - yyj1724++ - if yyhl1724 { - yyb1724 = yyj1724 > l + yyj1779++ + if yyhl1779 { + yyb1779 = yyj1779 > l } else { - yyb1724 = r.CheckBreak() + yyb1779 = r.CheckBreak() } - if yyb1724 { + if yyb1779 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -20684,22 +21046,28 @@ func (x *NetworkPolicyPeer) codecDecodeSelfFromArray(l int, d *codec1978.Decoder } } else { if x.NamespaceSelector == nil { - x.NamespaceSelector = new(LabelSelector) + x.NamespaceSelector = new(pkg1_unversioned.LabelSelector) + } + yym1783 := z.DecBinary() + _ = yym1783 + if false { + } else if z.HasExtensions() && z.DecExt(x.NamespaceSelector) { + } else { + z.DecFallback(x.NamespaceSelector, false) } - x.NamespaceSelector.CodecDecodeSelf(d) } for { - yyj1724++ - if yyhl1724 { - yyb1724 = yyj1724 > l + yyj1779++ + if yyhl1779 { + yyb1779 = yyj1779 > l } else { - yyb1724 = r.CheckBreak() + yyb1779 = r.CheckBreak() } - if yyb1724 { + if yyb1779 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj1724-1, "") + z.DecStructFieldNotFound(yyj1779-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -20711,37 +21079,37 @@ func (x *NetworkPolicyList) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1727 := z.EncBinary() - _ = yym1727 + yym1784 := z.EncBinary() + _ = yym1784 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 { + yysep1785 := !z.EncBinary() + yy2arr1785 := z.EncBasicHandle().StructToArray + var yyq1785 [4]bool + _, _, _ = yysep1785, yyq1785, yy2arr1785 + const yyr1785 bool = false + yyq1785[0] = x.Kind != "" + yyq1785[1] = x.APIVersion != "" + yyq1785[2] = true + var yynn1785 int + if yyr1785 || yy2arr1785 { r.EncodeArrayStart(4) } else { - yynn1728 = 1 - for _, b := range yyq1728 { + yynn1785 = 1 + for _, b := range yyq1785 { if b { - yynn1728++ + yynn1785++ } } - r.EncodeMapStart(yynn1728) - yynn1728 = 0 + r.EncodeMapStart(yynn1785) + yynn1785 = 0 } - if yyr1728 || yy2arr1728 { + if yyr1785 || yy2arr1785 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1728[0] { - yym1730 := z.EncBinary() - _ = yym1730 + if yyq1785[0] { + yym1787 := z.EncBinary() + _ = yym1787 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) @@ -20750,23 +21118,23 @@ func (x *NetworkPolicyList) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq1728[0] { + if yyq1785[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym1731 := z.EncBinary() - _ = yym1731 + yym1788 := z.EncBinary() + _ = yym1788 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } - if yyr1728 || yy2arr1728 { + if yyr1785 || yy2arr1785 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1728[1] { - yym1733 := z.EncBinary() - _ = yym1733 + if yyq1785[1] { + yym1790 := z.EncBinary() + _ = yym1790 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) @@ -20775,54 +21143,54 @@ func (x *NetworkPolicyList) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq1728[1] { + if yyq1785[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym1734 := z.EncBinary() - _ = yym1734 + yym1791 := z.EncBinary() + _ = yym1791 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } - if yyr1728 || yy2arr1728 { + if yyr1785 || yy2arr1785 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1728[2] { - yy1736 := &x.ListMeta - yym1737 := z.EncBinary() - _ = yym1737 + if yyq1785[2] { + yy1793 := &x.ListMeta + yym1794 := z.EncBinary() + _ = yym1794 if false { - } else if z.HasExtensions() && z.EncExt(yy1736) { + } else if z.HasExtensions() && z.EncExt(yy1793) { } else { - z.EncFallback(yy1736) + z.EncFallback(yy1793) } } else { r.EncodeNil() } } else { - if yyq1728[2] { + if yyq1785[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy1738 := &x.ListMeta - yym1739 := z.EncBinary() - _ = yym1739 + yy1795 := &x.ListMeta + yym1796 := z.EncBinary() + _ = yym1796 if false { - } else if z.HasExtensions() && z.EncExt(yy1738) { + } else if z.HasExtensions() && z.EncExt(yy1795) { } else { - z.EncFallback(yy1738) + z.EncFallback(yy1795) } } } - if yyr1728 || yy2arr1728 { + if yyr1785 || yy2arr1785 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.Items == nil { r.EncodeNil() } else { - yym1741 := z.EncBinary() - _ = yym1741 + yym1798 := z.EncBinary() + _ = yym1798 if false { } else { h.encSliceNetworkPolicy(([]NetworkPolicy)(x.Items), e) @@ -20835,15 +21203,15 @@ func (x *NetworkPolicyList) CodecEncodeSelf(e *codec1978.Encoder) { if x.Items == nil { r.EncodeNil() } else { - yym1742 := z.EncBinary() - _ = yym1742 + yym1799 := z.EncBinary() + _ = yym1799 if false { } else { h.encSliceNetworkPolicy(([]NetworkPolicy)(x.Items), e) } } } - if yyr1728 || yy2arr1728 { + if yyr1785 || yy2arr1785 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -20856,25 +21224,25 @@ func (x *NetworkPolicyList) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1743 := z.DecBinary() - _ = yym1743 + yym1800 := z.DecBinary() + _ = yym1800 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct1744 := r.ContainerType() - if yyct1744 == codecSelferValueTypeMap1234 { - yyl1744 := r.ReadMapStart() - if yyl1744 == 0 { + yyct1801 := r.ContainerType() + if yyct1801 == codecSelferValueTypeMap1234 { + yyl1801 := r.ReadMapStart() + if yyl1801 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl1744, d) + x.codecDecodeSelfFromMap(yyl1801, d) } - } else if yyct1744 == codecSelferValueTypeArray1234 { - yyl1744 := r.ReadArrayStart() - if yyl1744 == 0 { + } else if yyct1801 == codecSelferValueTypeArray1234 { + yyl1801 := r.ReadArrayStart() + if yyl1801 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl1744, d) + x.codecDecodeSelfFromArray(yyl1801, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -20886,12 +21254,12 @@ 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 { + var yys1802Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys1802Slc + var yyhl1802 bool = l >= 0 + for yyj1802 := 0; ; yyj1802++ { + if yyhl1802 { + if yyj1802 >= l { break } } else { @@ -20900,10 +21268,10 @@ func (x *NetworkPolicyList) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys1745Slc = r.DecodeBytes(yys1745Slc, true, true) - yys1745 := string(yys1745Slc) + yys1802Slc = r.DecodeBytes(yys1802Slc, true, true) + yys1802 := string(yys1802Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys1745 { + switch yys1802 { case "kind": if r.TryDecodeAsNil() { x.Kind = "" @@ -20920,31 +21288,31 @@ func (x *NetworkPolicyList) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) if r.TryDecodeAsNil() { x.ListMeta = pkg1_unversioned.ListMeta{} } else { - yyv1748 := &x.ListMeta - yym1749 := z.DecBinary() - _ = yym1749 + yyv1805 := &x.ListMeta + yym1806 := z.DecBinary() + _ = yym1806 if false { - } else if z.HasExtensions() && z.DecExt(yyv1748) { + } else if z.HasExtensions() && z.DecExt(yyv1805) { } else { - z.DecFallback(yyv1748, false) + z.DecFallback(yyv1805, false) } } case "items": if r.TryDecodeAsNil() { x.Items = nil } else { - yyv1750 := &x.Items - yym1751 := z.DecBinary() - _ = yym1751 + yyv1807 := &x.Items + yym1808 := z.DecBinary() + _ = yym1808 if false { } else { - h.decSliceNetworkPolicy((*[]NetworkPolicy)(yyv1750), d) + h.decSliceNetworkPolicy((*[]NetworkPolicy)(yyv1807), d) } } default: - z.DecStructFieldNotFound(-1, yys1745) - } // end switch yys1745 - } // end for yyj1745 + z.DecStructFieldNotFound(-1, yys1802) + } // end switch yys1802 + } // end for yyj1802 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -20952,16 +21320,16 @@ 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 + var yyj1809 int + var yyb1809 bool + var yyhl1809 bool = l >= 0 + yyj1809++ + if yyhl1809 { + yyb1809 = yyj1809 > l } else { - yyb1752 = r.CheckBreak() + yyb1809 = r.CheckBreak() } - if yyb1752 { + if yyb1809 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -20971,13 +21339,13 @@ func (x *NetworkPolicyList) codecDecodeSelfFromArray(l int, d *codec1978.Decoder } else { x.Kind = string(r.DecodeString()) } - yyj1752++ - if yyhl1752 { - yyb1752 = yyj1752 > l + yyj1809++ + if yyhl1809 { + yyb1809 = yyj1809 > l } else { - yyb1752 = r.CheckBreak() + yyb1809 = r.CheckBreak() } - if yyb1752 { + if yyb1809 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -20987,13 +21355,13 @@ func (x *NetworkPolicyList) codecDecodeSelfFromArray(l int, d *codec1978.Decoder } else { x.APIVersion = string(r.DecodeString()) } - yyj1752++ - if yyhl1752 { - yyb1752 = yyj1752 > l + yyj1809++ + if yyhl1809 { + yyb1809 = yyj1809 > l } else { - yyb1752 = r.CheckBreak() + yyb1809 = r.CheckBreak() } - if yyb1752 { + if yyb1809 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -21001,22 +21369,22 @@ func (x *NetworkPolicyList) codecDecodeSelfFromArray(l int, d *codec1978.Decoder if r.TryDecodeAsNil() { x.ListMeta = pkg1_unversioned.ListMeta{} } else { - yyv1755 := &x.ListMeta - yym1756 := z.DecBinary() - _ = yym1756 + yyv1812 := &x.ListMeta + yym1813 := z.DecBinary() + _ = yym1813 if false { - } else if z.HasExtensions() && z.DecExt(yyv1755) { + } else if z.HasExtensions() && z.DecExt(yyv1812) { } else { - z.DecFallback(yyv1755, false) + z.DecFallback(yyv1812, false) } } - yyj1752++ - if yyhl1752 { - yyb1752 = yyj1752 > l + yyj1809++ + if yyhl1809 { + yyb1809 = yyj1809 > l } else { - yyb1752 = r.CheckBreak() + yyb1809 = r.CheckBreak() } - if yyb1752 { + if yyb1809 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -21024,26 +21392,26 @@ func (x *NetworkPolicyList) codecDecodeSelfFromArray(l int, d *codec1978.Decoder if r.TryDecodeAsNil() { x.Items = nil } else { - yyv1757 := &x.Items - yym1758 := z.DecBinary() - _ = yym1758 + yyv1814 := &x.Items + yym1815 := z.DecBinary() + _ = yym1815 if false { } else { - h.decSliceNetworkPolicy((*[]NetworkPolicy)(yyv1757), d) + h.decSliceNetworkPolicy((*[]NetworkPolicy)(yyv1814), d) } } for { - yyj1752++ - if yyhl1752 { - yyb1752 = yyj1752 > l + yyj1809++ + if yyhl1809 { + yyb1809 = yyj1809 > l } else { - yyb1752 = r.CheckBreak() + yyb1809 = r.CheckBreak() } - if yyb1752 { + if yyb1809 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj1752-1, "") + z.DecStructFieldNotFound(yyj1809-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -21053,10 +21421,10 @@ func (x codecSelfer1234) encSliceCustomMetricTarget(v []CustomMetricTarget, e *c z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r r.EncodeArrayStart(len(v)) - for _, yyv1759 := range v { + for _, yyv1816 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy1760 := &yyv1759 - yy1760.CodecEncodeSelf(e) + yy1817 := &yyv1816 + yy1817.CodecEncodeSelf(e) } z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -21066,83 +21434,83 @@ func (x codecSelfer1234) decSliceCustomMetricTarget(v *[]CustomMetricTarget, d * z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yyv1761 := *v - yyh1761, yyl1761 := z.DecSliceHelperStart() - var yyc1761 bool - if yyl1761 == 0 { - if yyv1761 == nil { - yyv1761 = []CustomMetricTarget{} - yyc1761 = true - } else if len(yyv1761) != 0 { - yyv1761 = yyv1761[:0] - yyc1761 = true + yyv1818 := *v + yyh1818, yyl1818 := z.DecSliceHelperStart() + var yyc1818 bool + if yyl1818 == 0 { + if yyv1818 == nil { + yyv1818 = []CustomMetricTarget{} + yyc1818 = true + } else if len(yyv1818) != 0 { + yyv1818 = yyv1818[:0] + yyc1818 = true } - } else if yyl1761 > 0 { - var yyrr1761, yyrl1761 int - var yyrt1761 bool - if yyl1761 > cap(yyv1761) { + } else if yyl1818 > 0 { + var yyrr1818, yyrl1818 int + var yyrt1818 bool + if yyl1818 > cap(yyv1818) { - yyrg1761 := len(yyv1761) > 0 - yyv21761 := yyv1761 - yyrl1761, yyrt1761 = z.DecInferLen(yyl1761, z.DecBasicHandle().MaxInitLen, 72) - if yyrt1761 { - if yyrl1761 <= cap(yyv1761) { - yyv1761 = yyv1761[:yyrl1761] + yyrg1818 := len(yyv1818) > 0 + yyv21818 := yyv1818 + yyrl1818, yyrt1818 = z.DecInferLen(yyl1818, z.DecBasicHandle().MaxInitLen, 72) + if yyrt1818 { + if yyrl1818 <= cap(yyv1818) { + yyv1818 = yyv1818[:yyrl1818] } else { - yyv1761 = make([]CustomMetricTarget, yyrl1761) + yyv1818 = make([]CustomMetricTarget, yyrl1818) } } else { - yyv1761 = make([]CustomMetricTarget, yyrl1761) + yyv1818 = make([]CustomMetricTarget, yyrl1818) } - yyc1761 = true - yyrr1761 = len(yyv1761) - if yyrg1761 { - copy(yyv1761, yyv21761) + yyc1818 = true + yyrr1818 = len(yyv1818) + if yyrg1818 { + copy(yyv1818, yyv21818) } - } else if yyl1761 != len(yyv1761) { - yyv1761 = yyv1761[:yyl1761] - yyc1761 = true + } else if yyl1818 != len(yyv1818) { + yyv1818 = yyv1818[:yyl1818] + yyc1818 = true } - yyj1761 := 0 - for ; yyj1761 < yyrr1761; yyj1761++ { - yyh1761.ElemContainerState(yyj1761) + yyj1818 := 0 + for ; yyj1818 < yyrr1818; yyj1818++ { + yyh1818.ElemContainerState(yyj1818) if r.TryDecodeAsNil() { - yyv1761[yyj1761] = CustomMetricTarget{} + yyv1818[yyj1818] = CustomMetricTarget{} } else { - yyv1762 := &yyv1761[yyj1761] - yyv1762.CodecDecodeSelf(d) + yyv1819 := &yyv1818[yyj1818] + yyv1819.CodecDecodeSelf(d) } } - if yyrt1761 { - for ; yyj1761 < yyl1761; yyj1761++ { - yyv1761 = append(yyv1761, CustomMetricTarget{}) - yyh1761.ElemContainerState(yyj1761) + if yyrt1818 { + for ; yyj1818 < yyl1818; yyj1818++ { + yyv1818 = append(yyv1818, CustomMetricTarget{}) + yyh1818.ElemContainerState(yyj1818) if r.TryDecodeAsNil() { - yyv1761[yyj1761] = CustomMetricTarget{} + yyv1818[yyj1818] = CustomMetricTarget{} } else { - yyv1763 := &yyv1761[yyj1761] - yyv1763.CodecDecodeSelf(d) + yyv1820 := &yyv1818[yyj1818] + yyv1820.CodecDecodeSelf(d) } } } } else { - yyj1761 := 0 - for ; !r.CheckBreak(); yyj1761++ { + yyj1818 := 0 + for ; !r.CheckBreak(); yyj1818++ { - if yyj1761 >= len(yyv1761) { - yyv1761 = append(yyv1761, CustomMetricTarget{}) // var yyz1761 CustomMetricTarget - yyc1761 = true + if yyj1818 >= len(yyv1818) { + yyv1818 = append(yyv1818, CustomMetricTarget{}) // var yyz1818 CustomMetricTarget + yyc1818 = true } - yyh1761.ElemContainerState(yyj1761) - if yyj1761 < len(yyv1761) { + yyh1818.ElemContainerState(yyj1818) + if yyj1818 < len(yyv1818) { if r.TryDecodeAsNil() { - yyv1761[yyj1761] = CustomMetricTarget{} + yyv1818[yyj1818] = CustomMetricTarget{} } else { - yyv1764 := &yyv1761[yyj1761] - yyv1764.CodecDecodeSelf(d) + yyv1821 := &yyv1818[yyj1818] + yyv1821.CodecDecodeSelf(d) } } else { @@ -21150,17 +21518,17 @@ func (x codecSelfer1234) decSliceCustomMetricTarget(v *[]CustomMetricTarget, d * } } - if yyj1761 < len(yyv1761) { - yyv1761 = yyv1761[:yyj1761] - yyc1761 = true - } else if yyj1761 == 0 && yyv1761 == nil { - yyv1761 = []CustomMetricTarget{} - yyc1761 = true + if yyj1818 < len(yyv1818) { + yyv1818 = yyv1818[:yyj1818] + yyc1818 = true + } else if yyj1818 == 0 && yyv1818 == nil { + yyv1818 = []CustomMetricTarget{} + yyc1818 = true } } - yyh1761.End() - if yyc1761 { - *v = yyv1761 + yyh1818.End() + if yyc1818 { + *v = yyv1818 } } @@ -21169,10 +21537,10 @@ func (x codecSelfer1234) encSliceCustomMetricCurrentStatus(v []CustomMetricCurre z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r r.EncodeArrayStart(len(v)) - for _, yyv1765 := range v { + for _, yyv1822 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy1766 := &yyv1765 - yy1766.CodecEncodeSelf(e) + yy1823 := &yyv1822 + yy1823.CodecEncodeSelf(e) } z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -21182,83 +21550,83 @@ func (x codecSelfer1234) decSliceCustomMetricCurrentStatus(v *[]CustomMetricCurr z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yyv1767 := *v - yyh1767, yyl1767 := z.DecSliceHelperStart() - var yyc1767 bool - if yyl1767 == 0 { - if yyv1767 == nil { - yyv1767 = []CustomMetricCurrentStatus{} - yyc1767 = true - } else if len(yyv1767) != 0 { - yyv1767 = yyv1767[:0] - yyc1767 = true + yyv1824 := *v + yyh1824, yyl1824 := z.DecSliceHelperStart() + var yyc1824 bool + if yyl1824 == 0 { + if yyv1824 == nil { + yyv1824 = []CustomMetricCurrentStatus{} + yyc1824 = true + } else if len(yyv1824) != 0 { + yyv1824 = yyv1824[:0] + yyc1824 = true } - } else if yyl1767 > 0 { - var yyrr1767, yyrl1767 int - var yyrt1767 bool - if yyl1767 > cap(yyv1767) { + } else if yyl1824 > 0 { + var yyrr1824, yyrl1824 int + var yyrt1824 bool + if yyl1824 > cap(yyv1824) { - yyrg1767 := len(yyv1767) > 0 - yyv21767 := yyv1767 - yyrl1767, yyrt1767 = z.DecInferLen(yyl1767, z.DecBasicHandle().MaxInitLen, 72) - if yyrt1767 { - if yyrl1767 <= cap(yyv1767) { - yyv1767 = yyv1767[:yyrl1767] + yyrg1824 := len(yyv1824) > 0 + yyv21824 := yyv1824 + yyrl1824, yyrt1824 = z.DecInferLen(yyl1824, z.DecBasicHandle().MaxInitLen, 72) + if yyrt1824 { + if yyrl1824 <= cap(yyv1824) { + yyv1824 = yyv1824[:yyrl1824] } else { - yyv1767 = make([]CustomMetricCurrentStatus, yyrl1767) + yyv1824 = make([]CustomMetricCurrentStatus, yyrl1824) } } else { - yyv1767 = make([]CustomMetricCurrentStatus, yyrl1767) + yyv1824 = make([]CustomMetricCurrentStatus, yyrl1824) } - yyc1767 = true - yyrr1767 = len(yyv1767) - if yyrg1767 { - copy(yyv1767, yyv21767) + yyc1824 = true + yyrr1824 = len(yyv1824) + if yyrg1824 { + copy(yyv1824, yyv21824) } - } else if yyl1767 != len(yyv1767) { - yyv1767 = yyv1767[:yyl1767] - yyc1767 = true + } else if yyl1824 != len(yyv1824) { + yyv1824 = yyv1824[:yyl1824] + yyc1824 = true } - yyj1767 := 0 - for ; yyj1767 < yyrr1767; yyj1767++ { - yyh1767.ElemContainerState(yyj1767) + yyj1824 := 0 + for ; yyj1824 < yyrr1824; yyj1824++ { + yyh1824.ElemContainerState(yyj1824) if r.TryDecodeAsNil() { - yyv1767[yyj1767] = CustomMetricCurrentStatus{} + yyv1824[yyj1824] = CustomMetricCurrentStatus{} } else { - yyv1768 := &yyv1767[yyj1767] - yyv1768.CodecDecodeSelf(d) + yyv1825 := &yyv1824[yyj1824] + yyv1825.CodecDecodeSelf(d) } } - if yyrt1767 { - for ; yyj1767 < yyl1767; yyj1767++ { - yyv1767 = append(yyv1767, CustomMetricCurrentStatus{}) - yyh1767.ElemContainerState(yyj1767) + if yyrt1824 { + for ; yyj1824 < yyl1824; yyj1824++ { + yyv1824 = append(yyv1824, CustomMetricCurrentStatus{}) + yyh1824.ElemContainerState(yyj1824) if r.TryDecodeAsNil() { - yyv1767[yyj1767] = CustomMetricCurrentStatus{} + yyv1824[yyj1824] = CustomMetricCurrentStatus{} } else { - yyv1769 := &yyv1767[yyj1767] - yyv1769.CodecDecodeSelf(d) + yyv1826 := &yyv1824[yyj1824] + yyv1826.CodecDecodeSelf(d) } } } } else { - yyj1767 := 0 - for ; !r.CheckBreak(); yyj1767++ { + yyj1824 := 0 + for ; !r.CheckBreak(); yyj1824++ { - if yyj1767 >= len(yyv1767) { - yyv1767 = append(yyv1767, CustomMetricCurrentStatus{}) // var yyz1767 CustomMetricCurrentStatus - yyc1767 = true + if yyj1824 >= len(yyv1824) { + yyv1824 = append(yyv1824, CustomMetricCurrentStatus{}) // var yyz1824 CustomMetricCurrentStatus + yyc1824 = true } - yyh1767.ElemContainerState(yyj1767) - if yyj1767 < len(yyv1767) { + yyh1824.ElemContainerState(yyj1824) + if yyj1824 < len(yyv1824) { if r.TryDecodeAsNil() { - yyv1767[yyj1767] = CustomMetricCurrentStatus{} + yyv1824[yyj1824] = CustomMetricCurrentStatus{} } else { - yyv1770 := &yyv1767[yyj1767] - yyv1770.CodecDecodeSelf(d) + yyv1827 := &yyv1824[yyj1824] + yyv1827.CodecDecodeSelf(d) } } else { @@ -21266,17 +21634,17 @@ func (x codecSelfer1234) decSliceCustomMetricCurrentStatus(v *[]CustomMetricCurr } } - if yyj1767 < len(yyv1767) { - yyv1767 = yyv1767[:yyj1767] - yyc1767 = true - } else if yyj1767 == 0 && yyv1767 == nil { - yyv1767 = []CustomMetricCurrentStatus{} - yyc1767 = true + if yyj1824 < len(yyv1824) { + yyv1824 = yyv1824[:yyj1824] + yyc1824 = true + } else if yyj1824 == 0 && yyv1824 == nil { + yyv1824 = []CustomMetricCurrentStatus{} + yyc1824 = true } } - yyh1767.End() - if yyc1767 { - *v = yyv1767 + yyh1824.End() + if yyc1824 { + *v = yyv1824 } } @@ -21285,10 +21653,10 @@ func (x codecSelfer1234) encSliceHorizontalPodAutoscaler(v []HorizontalPodAutosc z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r r.EncodeArrayStart(len(v)) - for _, yyv1771 := range v { + for _, yyv1828 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy1772 := &yyv1771 - yy1772.CodecEncodeSelf(e) + yy1829 := &yyv1828 + yy1829.CodecEncodeSelf(e) } z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -21298,83 +21666,83 @@ func (x codecSelfer1234) decSliceHorizontalPodAutoscaler(v *[]HorizontalPodAutos z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yyv1773 := *v - yyh1773, yyl1773 := z.DecSliceHelperStart() - var yyc1773 bool - if yyl1773 == 0 { - if yyv1773 == nil { - yyv1773 = []HorizontalPodAutoscaler{} - yyc1773 = true - } else if len(yyv1773) != 0 { - yyv1773 = yyv1773[:0] - yyc1773 = true + yyv1830 := *v + yyh1830, yyl1830 := z.DecSliceHelperStart() + var yyc1830 bool + if yyl1830 == 0 { + if yyv1830 == nil { + yyv1830 = []HorizontalPodAutoscaler{} + yyc1830 = true + } else if len(yyv1830) != 0 { + yyv1830 = yyv1830[:0] + yyc1830 = true } - } else if yyl1773 > 0 { - var yyrr1773, yyrl1773 int - var yyrt1773 bool - if yyl1773 > cap(yyv1773) { + } else if yyl1830 > 0 { + var yyrr1830, yyrl1830 int + var yyrt1830 bool + if yyl1830 > cap(yyv1830) { - yyrg1773 := len(yyv1773) > 0 - yyv21773 := yyv1773 - yyrl1773, yyrt1773 = z.DecInferLen(yyl1773, z.DecBasicHandle().MaxInitLen, 376) - if yyrt1773 { - if yyrl1773 <= cap(yyv1773) { - yyv1773 = yyv1773[:yyrl1773] + yyrg1830 := len(yyv1830) > 0 + yyv21830 := yyv1830 + yyrl1830, yyrt1830 = z.DecInferLen(yyl1830, z.DecBasicHandle().MaxInitLen, 376) + if yyrt1830 { + if yyrl1830 <= cap(yyv1830) { + yyv1830 = yyv1830[:yyrl1830] } else { - yyv1773 = make([]HorizontalPodAutoscaler, yyrl1773) + yyv1830 = make([]HorizontalPodAutoscaler, yyrl1830) } } else { - yyv1773 = make([]HorizontalPodAutoscaler, yyrl1773) + yyv1830 = make([]HorizontalPodAutoscaler, yyrl1830) } - yyc1773 = true - yyrr1773 = len(yyv1773) - if yyrg1773 { - copy(yyv1773, yyv21773) + yyc1830 = true + yyrr1830 = len(yyv1830) + if yyrg1830 { + copy(yyv1830, yyv21830) } - } else if yyl1773 != len(yyv1773) { - yyv1773 = yyv1773[:yyl1773] - yyc1773 = true + } else if yyl1830 != len(yyv1830) { + yyv1830 = yyv1830[:yyl1830] + yyc1830 = true } - yyj1773 := 0 - for ; yyj1773 < yyrr1773; yyj1773++ { - yyh1773.ElemContainerState(yyj1773) + yyj1830 := 0 + for ; yyj1830 < yyrr1830; yyj1830++ { + yyh1830.ElemContainerState(yyj1830) if r.TryDecodeAsNil() { - yyv1773[yyj1773] = HorizontalPodAutoscaler{} + yyv1830[yyj1830] = HorizontalPodAutoscaler{} } else { - yyv1774 := &yyv1773[yyj1773] - yyv1774.CodecDecodeSelf(d) + yyv1831 := &yyv1830[yyj1830] + yyv1831.CodecDecodeSelf(d) } } - if yyrt1773 { - for ; yyj1773 < yyl1773; yyj1773++ { - yyv1773 = append(yyv1773, HorizontalPodAutoscaler{}) - yyh1773.ElemContainerState(yyj1773) + if yyrt1830 { + for ; yyj1830 < yyl1830; yyj1830++ { + yyv1830 = append(yyv1830, HorizontalPodAutoscaler{}) + yyh1830.ElemContainerState(yyj1830) if r.TryDecodeAsNil() { - yyv1773[yyj1773] = HorizontalPodAutoscaler{} + yyv1830[yyj1830] = HorizontalPodAutoscaler{} } else { - yyv1775 := &yyv1773[yyj1773] - yyv1775.CodecDecodeSelf(d) + yyv1832 := &yyv1830[yyj1830] + yyv1832.CodecDecodeSelf(d) } } } } else { - yyj1773 := 0 - for ; !r.CheckBreak(); yyj1773++ { + yyj1830 := 0 + for ; !r.CheckBreak(); yyj1830++ { - if yyj1773 >= len(yyv1773) { - yyv1773 = append(yyv1773, HorizontalPodAutoscaler{}) // var yyz1773 HorizontalPodAutoscaler - yyc1773 = true + if yyj1830 >= len(yyv1830) { + yyv1830 = append(yyv1830, HorizontalPodAutoscaler{}) // var yyz1830 HorizontalPodAutoscaler + yyc1830 = true } - yyh1773.ElemContainerState(yyj1773) - if yyj1773 < len(yyv1773) { + yyh1830.ElemContainerState(yyj1830) + if yyj1830 < len(yyv1830) { if r.TryDecodeAsNil() { - yyv1773[yyj1773] = HorizontalPodAutoscaler{} + yyv1830[yyj1830] = HorizontalPodAutoscaler{} } else { - yyv1776 := &yyv1773[yyj1773] - yyv1776.CodecDecodeSelf(d) + yyv1833 := &yyv1830[yyj1830] + yyv1833.CodecDecodeSelf(d) } } else { @@ -21382,17 +21750,17 @@ func (x codecSelfer1234) decSliceHorizontalPodAutoscaler(v *[]HorizontalPodAutos } } - if yyj1773 < len(yyv1773) { - yyv1773 = yyv1773[:yyj1773] - yyc1773 = true - } else if yyj1773 == 0 && yyv1773 == nil { - yyv1773 = []HorizontalPodAutoscaler{} - yyc1773 = true + if yyj1830 < len(yyv1830) { + yyv1830 = yyv1830[:yyj1830] + yyc1830 = true + } else if yyj1830 == 0 && yyv1830 == nil { + yyv1830 = []HorizontalPodAutoscaler{} + yyc1830 = true } } - yyh1773.End() - if yyc1773 { - *v = yyv1773 + yyh1830.End() + if yyc1830 { + *v = yyv1830 } } @@ -21401,10 +21769,10 @@ func (x codecSelfer1234) encSliceAPIVersion(v []APIVersion, e *codec1978.Encoder z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r r.EncodeArrayStart(len(v)) - for _, yyv1777 := range v { + for _, yyv1834 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy1778 := &yyv1777 - yy1778.CodecEncodeSelf(e) + yy1835 := &yyv1834 + yy1835.CodecEncodeSelf(e) } z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -21414,83 +21782,83 @@ func (x codecSelfer1234) decSliceAPIVersion(v *[]APIVersion, d *codec1978.Decode z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yyv1779 := *v - yyh1779, yyl1779 := z.DecSliceHelperStart() - var yyc1779 bool - if yyl1779 == 0 { - if yyv1779 == nil { - yyv1779 = []APIVersion{} - yyc1779 = true - } else if len(yyv1779) != 0 { - yyv1779 = yyv1779[:0] - yyc1779 = true + yyv1836 := *v + yyh1836, yyl1836 := z.DecSliceHelperStart() + var yyc1836 bool + if yyl1836 == 0 { + if yyv1836 == nil { + yyv1836 = []APIVersion{} + yyc1836 = true + } else if len(yyv1836) != 0 { + yyv1836 = yyv1836[:0] + yyc1836 = true } - } else if yyl1779 > 0 { - var yyrr1779, yyrl1779 int - var yyrt1779 bool - if yyl1779 > cap(yyv1779) { + } else if yyl1836 > 0 { + var yyrr1836, yyrl1836 int + var yyrt1836 bool + if yyl1836 > cap(yyv1836) { - yyrg1779 := len(yyv1779) > 0 - yyv21779 := yyv1779 - yyrl1779, yyrt1779 = z.DecInferLen(yyl1779, z.DecBasicHandle().MaxInitLen, 16) - if yyrt1779 { - if yyrl1779 <= cap(yyv1779) { - yyv1779 = yyv1779[:yyrl1779] + yyrg1836 := len(yyv1836) > 0 + yyv21836 := yyv1836 + yyrl1836, yyrt1836 = z.DecInferLen(yyl1836, z.DecBasicHandle().MaxInitLen, 16) + if yyrt1836 { + if yyrl1836 <= cap(yyv1836) { + yyv1836 = yyv1836[:yyrl1836] } else { - yyv1779 = make([]APIVersion, yyrl1779) + yyv1836 = make([]APIVersion, yyrl1836) } } else { - yyv1779 = make([]APIVersion, yyrl1779) + yyv1836 = make([]APIVersion, yyrl1836) } - yyc1779 = true - yyrr1779 = len(yyv1779) - if yyrg1779 { - copy(yyv1779, yyv21779) + yyc1836 = true + yyrr1836 = len(yyv1836) + if yyrg1836 { + copy(yyv1836, yyv21836) } - } else if yyl1779 != len(yyv1779) { - yyv1779 = yyv1779[:yyl1779] - yyc1779 = true + } else if yyl1836 != len(yyv1836) { + yyv1836 = yyv1836[:yyl1836] + yyc1836 = true } - yyj1779 := 0 - for ; yyj1779 < yyrr1779; yyj1779++ { - yyh1779.ElemContainerState(yyj1779) + yyj1836 := 0 + for ; yyj1836 < yyrr1836; yyj1836++ { + yyh1836.ElemContainerState(yyj1836) if r.TryDecodeAsNil() { - yyv1779[yyj1779] = APIVersion{} + yyv1836[yyj1836] = APIVersion{} } else { - yyv1780 := &yyv1779[yyj1779] - yyv1780.CodecDecodeSelf(d) + yyv1837 := &yyv1836[yyj1836] + yyv1837.CodecDecodeSelf(d) } } - if yyrt1779 { - for ; yyj1779 < yyl1779; yyj1779++ { - yyv1779 = append(yyv1779, APIVersion{}) - yyh1779.ElemContainerState(yyj1779) + if yyrt1836 { + for ; yyj1836 < yyl1836; yyj1836++ { + yyv1836 = append(yyv1836, APIVersion{}) + yyh1836.ElemContainerState(yyj1836) if r.TryDecodeAsNil() { - yyv1779[yyj1779] = APIVersion{} + yyv1836[yyj1836] = APIVersion{} } else { - yyv1781 := &yyv1779[yyj1779] - yyv1781.CodecDecodeSelf(d) + yyv1838 := &yyv1836[yyj1836] + yyv1838.CodecDecodeSelf(d) } } } } else { - yyj1779 := 0 - for ; !r.CheckBreak(); yyj1779++ { + yyj1836 := 0 + for ; !r.CheckBreak(); yyj1836++ { - if yyj1779 >= len(yyv1779) { - yyv1779 = append(yyv1779, APIVersion{}) // var yyz1779 APIVersion - yyc1779 = true + if yyj1836 >= len(yyv1836) { + yyv1836 = append(yyv1836, APIVersion{}) // var yyz1836 APIVersion + yyc1836 = true } - yyh1779.ElemContainerState(yyj1779) - if yyj1779 < len(yyv1779) { + yyh1836.ElemContainerState(yyj1836) + if yyj1836 < len(yyv1836) { if r.TryDecodeAsNil() { - yyv1779[yyj1779] = APIVersion{} + yyv1836[yyj1836] = APIVersion{} } else { - yyv1782 := &yyv1779[yyj1779] - yyv1782.CodecDecodeSelf(d) + yyv1839 := &yyv1836[yyj1836] + yyv1839.CodecDecodeSelf(d) } } else { @@ -21498,17 +21866,17 @@ func (x codecSelfer1234) decSliceAPIVersion(v *[]APIVersion, d *codec1978.Decode } } - if yyj1779 < len(yyv1779) { - yyv1779 = yyv1779[:yyj1779] - yyc1779 = true - } else if yyj1779 == 0 && yyv1779 == nil { - yyv1779 = []APIVersion{} - yyc1779 = true + if yyj1836 < len(yyv1836) { + yyv1836 = yyv1836[:yyj1836] + yyc1836 = true + } else if yyj1836 == 0 && yyv1836 == nil { + yyv1836 = []APIVersion{} + yyc1836 = true } } - yyh1779.End() - if yyc1779 { - *v = yyv1779 + yyh1836.End() + if yyc1836 { + *v = yyv1836 } } @@ -21517,10 +21885,10 @@ func (x codecSelfer1234) encSliceThirdPartyResource(v []ThirdPartyResource, e *c z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r r.EncodeArrayStart(len(v)) - for _, yyv1783 := range v { + for _, yyv1840 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy1784 := &yyv1783 - yy1784.CodecEncodeSelf(e) + yy1841 := &yyv1840 + yy1841.CodecEncodeSelf(e) } z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -21530,83 +21898,83 @@ func (x codecSelfer1234) decSliceThirdPartyResource(v *[]ThirdPartyResource, d * z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yyv1785 := *v - yyh1785, yyl1785 := z.DecSliceHelperStart() - var yyc1785 bool - if yyl1785 == 0 { - if yyv1785 == nil { - yyv1785 = []ThirdPartyResource{} - yyc1785 = true - } else if len(yyv1785) != 0 { - yyv1785 = yyv1785[:0] - yyc1785 = true + yyv1842 := *v + yyh1842, yyl1842 := z.DecSliceHelperStart() + var yyc1842 bool + if yyl1842 == 0 { + if yyv1842 == nil { + yyv1842 = []ThirdPartyResource{} + yyc1842 = true + } else if len(yyv1842) != 0 { + yyv1842 = yyv1842[:0] + yyc1842 = true } - } else if yyl1785 > 0 { - var yyrr1785, yyrl1785 int - var yyrt1785 bool - if yyl1785 > cap(yyv1785) { + } else if yyl1842 > 0 { + var yyrr1842, yyrl1842 int + var yyrt1842 bool + if yyl1842 > cap(yyv1842) { - yyrg1785 := len(yyv1785) > 0 - yyv21785 := yyv1785 - yyrl1785, yyrt1785 = z.DecInferLen(yyl1785, z.DecBasicHandle().MaxInitLen, 296) - if yyrt1785 { - if yyrl1785 <= cap(yyv1785) { - yyv1785 = yyv1785[:yyrl1785] + yyrg1842 := len(yyv1842) > 0 + yyv21842 := yyv1842 + yyrl1842, yyrt1842 = z.DecInferLen(yyl1842, z.DecBasicHandle().MaxInitLen, 296) + if yyrt1842 { + if yyrl1842 <= cap(yyv1842) { + yyv1842 = yyv1842[:yyrl1842] } else { - yyv1785 = make([]ThirdPartyResource, yyrl1785) + yyv1842 = make([]ThirdPartyResource, yyrl1842) } } else { - yyv1785 = make([]ThirdPartyResource, yyrl1785) + yyv1842 = make([]ThirdPartyResource, yyrl1842) } - yyc1785 = true - yyrr1785 = len(yyv1785) - if yyrg1785 { - copy(yyv1785, yyv21785) + yyc1842 = true + yyrr1842 = len(yyv1842) + if yyrg1842 { + copy(yyv1842, yyv21842) } - } else if yyl1785 != len(yyv1785) { - yyv1785 = yyv1785[:yyl1785] - yyc1785 = true + } else if yyl1842 != len(yyv1842) { + yyv1842 = yyv1842[:yyl1842] + yyc1842 = true } - yyj1785 := 0 - for ; yyj1785 < yyrr1785; yyj1785++ { - yyh1785.ElemContainerState(yyj1785) + yyj1842 := 0 + for ; yyj1842 < yyrr1842; yyj1842++ { + yyh1842.ElemContainerState(yyj1842) if r.TryDecodeAsNil() { - yyv1785[yyj1785] = ThirdPartyResource{} + yyv1842[yyj1842] = ThirdPartyResource{} } else { - yyv1786 := &yyv1785[yyj1785] - yyv1786.CodecDecodeSelf(d) + yyv1843 := &yyv1842[yyj1842] + yyv1843.CodecDecodeSelf(d) } } - if yyrt1785 { - for ; yyj1785 < yyl1785; yyj1785++ { - yyv1785 = append(yyv1785, ThirdPartyResource{}) - yyh1785.ElemContainerState(yyj1785) + if yyrt1842 { + for ; yyj1842 < yyl1842; yyj1842++ { + yyv1842 = append(yyv1842, ThirdPartyResource{}) + yyh1842.ElemContainerState(yyj1842) if r.TryDecodeAsNil() { - yyv1785[yyj1785] = ThirdPartyResource{} + yyv1842[yyj1842] = ThirdPartyResource{} } else { - yyv1787 := &yyv1785[yyj1785] - yyv1787.CodecDecodeSelf(d) + yyv1844 := &yyv1842[yyj1842] + yyv1844.CodecDecodeSelf(d) } } } } else { - yyj1785 := 0 - for ; !r.CheckBreak(); yyj1785++ { + yyj1842 := 0 + for ; !r.CheckBreak(); yyj1842++ { - if yyj1785 >= len(yyv1785) { - yyv1785 = append(yyv1785, ThirdPartyResource{}) // var yyz1785 ThirdPartyResource - yyc1785 = true + if yyj1842 >= len(yyv1842) { + yyv1842 = append(yyv1842, ThirdPartyResource{}) // var yyz1842 ThirdPartyResource + yyc1842 = true } - yyh1785.ElemContainerState(yyj1785) - if yyj1785 < len(yyv1785) { + yyh1842.ElemContainerState(yyj1842) + if yyj1842 < len(yyv1842) { if r.TryDecodeAsNil() { - yyv1785[yyj1785] = ThirdPartyResource{} + yyv1842[yyj1842] = ThirdPartyResource{} } else { - yyv1788 := &yyv1785[yyj1785] - yyv1788.CodecDecodeSelf(d) + yyv1845 := &yyv1842[yyj1842] + yyv1845.CodecDecodeSelf(d) } } else { @@ -21614,17 +21982,133 @@ func (x codecSelfer1234) decSliceThirdPartyResource(v *[]ThirdPartyResource, d * } } - if yyj1785 < len(yyv1785) { - yyv1785 = yyv1785[:yyj1785] - yyc1785 = true - } else if yyj1785 == 0 && yyv1785 == nil { - yyv1785 = []ThirdPartyResource{} - yyc1785 = true + if yyj1842 < len(yyv1842) { + yyv1842 = yyv1842[:yyj1842] + yyc1842 = true + } else if yyj1842 == 0 && yyv1842 == nil { + yyv1842 = []ThirdPartyResource{} + yyc1842 = true } } - yyh1785.End() - if yyc1785 { - *v = yyv1785 + yyh1842.End() + if yyc1842 { + *v = yyv1842 + } +} + +func (x codecSelfer1234) encSliceDeploymentCondition(v []DeploymentCondition, e *codec1978.Encoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + r.EncodeArrayStart(len(v)) + for _, yyv1846 := range v { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yy1847 := &yyv1846 + yy1847.CodecEncodeSelf(e) + } + z.EncSendContainerState(codecSelfer_containerArrayEnd1234) +} + +func (x codecSelfer1234) decSliceDeploymentCondition(v *[]DeploymentCondition, d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + + yyv1848 := *v + yyh1848, yyl1848 := z.DecSliceHelperStart() + var yyc1848 bool + if yyl1848 == 0 { + if yyv1848 == nil { + yyv1848 = []DeploymentCondition{} + yyc1848 = true + } else if len(yyv1848) != 0 { + yyv1848 = yyv1848[:0] + yyc1848 = true + } + } else if yyl1848 > 0 { + var yyrr1848, yyrl1848 int + var yyrt1848 bool + if yyl1848 > cap(yyv1848) { + + yyrg1848 := len(yyv1848) > 0 + yyv21848 := yyv1848 + yyrl1848, yyrt1848 = z.DecInferLen(yyl1848, z.DecBasicHandle().MaxInitLen, 112) + if yyrt1848 { + if yyrl1848 <= cap(yyv1848) { + yyv1848 = yyv1848[:yyrl1848] + } else { + yyv1848 = make([]DeploymentCondition, yyrl1848) + } + } else { + yyv1848 = make([]DeploymentCondition, yyrl1848) + } + yyc1848 = true + yyrr1848 = len(yyv1848) + if yyrg1848 { + copy(yyv1848, yyv21848) + } + } else if yyl1848 != len(yyv1848) { + yyv1848 = yyv1848[:yyl1848] + yyc1848 = true + } + yyj1848 := 0 + for ; yyj1848 < yyrr1848; yyj1848++ { + yyh1848.ElemContainerState(yyj1848) + if r.TryDecodeAsNil() { + yyv1848[yyj1848] = DeploymentCondition{} + } else { + yyv1849 := &yyv1848[yyj1848] + yyv1849.CodecDecodeSelf(d) + } + + } + if yyrt1848 { + for ; yyj1848 < yyl1848; yyj1848++ { + yyv1848 = append(yyv1848, DeploymentCondition{}) + yyh1848.ElemContainerState(yyj1848) + if r.TryDecodeAsNil() { + yyv1848[yyj1848] = DeploymentCondition{} + } else { + yyv1850 := &yyv1848[yyj1848] + yyv1850.CodecDecodeSelf(d) + } + + } + } + + } else { + yyj1848 := 0 + for ; !r.CheckBreak(); yyj1848++ { + + if yyj1848 >= len(yyv1848) { + yyv1848 = append(yyv1848, DeploymentCondition{}) // var yyz1848 DeploymentCondition + yyc1848 = true + } + yyh1848.ElemContainerState(yyj1848) + if yyj1848 < len(yyv1848) { + if r.TryDecodeAsNil() { + yyv1848[yyj1848] = DeploymentCondition{} + } else { + yyv1851 := &yyv1848[yyj1848] + yyv1851.CodecDecodeSelf(d) + } + + } else { + z.DecSwallow() + } + + } + if yyj1848 < len(yyv1848) { + yyv1848 = yyv1848[:yyj1848] + yyc1848 = true + } else if yyj1848 == 0 && yyv1848 == nil { + yyv1848 = []DeploymentCondition{} + yyc1848 = true + } + } + yyh1848.End() + if yyc1848 { + *v = yyv1848 } } @@ -21633,10 +22117,10 @@ func (x codecSelfer1234) encSliceDeployment(v []Deployment, e *codec1978.Encoder z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r r.EncodeArrayStart(len(v)) - for _, yyv1789 := range v { + for _, yyv1852 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy1790 := &yyv1789 - yy1790.CodecEncodeSelf(e) + yy1853 := &yyv1852 + yy1853.CodecEncodeSelf(e) } z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -21646,83 +22130,83 @@ func (x codecSelfer1234) decSliceDeployment(v *[]Deployment, d *codec1978.Decode z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yyv1791 := *v - yyh1791, yyl1791 := z.DecSliceHelperStart() - var yyc1791 bool - if yyl1791 == 0 { - if yyv1791 == nil { - yyv1791 = []Deployment{} - yyc1791 = true - } else if len(yyv1791) != 0 { - yyv1791 = yyv1791[:0] - yyc1791 = true + yyv1854 := *v + yyh1854, yyl1854 := z.DecSliceHelperStart() + var yyc1854 bool + if yyl1854 == 0 { + if yyv1854 == nil { + yyv1854 = []Deployment{} + yyc1854 = true + } else if len(yyv1854) != 0 { + yyv1854 = yyv1854[:0] + yyc1854 = true } - } else if yyl1791 > 0 { - var yyrr1791, yyrl1791 int - var yyrt1791 bool - if yyl1791 > cap(yyv1791) { + } else if yyl1854 > 0 { + var yyrr1854, yyrl1854 int + var yyrt1854 bool + if yyl1854 > cap(yyv1854) { - yyrg1791 := len(yyv1791) > 0 - yyv21791 := yyv1791 - yyrl1791, yyrt1791 = z.DecInferLen(yyl1791, z.DecBasicHandle().MaxInitLen, 824) - if yyrt1791 { - if yyrl1791 <= cap(yyv1791) { - yyv1791 = yyv1791[:yyrl1791] + yyrg1854 := len(yyv1854) > 0 + yyv21854 := yyv1854 + yyrl1854, yyrt1854 = z.DecInferLen(yyl1854, z.DecBasicHandle().MaxInitLen, 856) + if yyrt1854 { + if yyrl1854 <= cap(yyv1854) { + yyv1854 = yyv1854[:yyrl1854] } else { - yyv1791 = make([]Deployment, yyrl1791) + yyv1854 = make([]Deployment, yyrl1854) } } else { - yyv1791 = make([]Deployment, yyrl1791) + yyv1854 = make([]Deployment, yyrl1854) } - yyc1791 = true - yyrr1791 = len(yyv1791) - if yyrg1791 { - copy(yyv1791, yyv21791) + yyc1854 = true + yyrr1854 = len(yyv1854) + if yyrg1854 { + copy(yyv1854, yyv21854) } - } else if yyl1791 != len(yyv1791) { - yyv1791 = yyv1791[:yyl1791] - yyc1791 = true + } else if yyl1854 != len(yyv1854) { + yyv1854 = yyv1854[:yyl1854] + yyc1854 = true } - yyj1791 := 0 - for ; yyj1791 < yyrr1791; yyj1791++ { - yyh1791.ElemContainerState(yyj1791) + yyj1854 := 0 + for ; yyj1854 < yyrr1854; yyj1854++ { + yyh1854.ElemContainerState(yyj1854) if r.TryDecodeAsNil() { - yyv1791[yyj1791] = Deployment{} + yyv1854[yyj1854] = Deployment{} } else { - yyv1792 := &yyv1791[yyj1791] - yyv1792.CodecDecodeSelf(d) + yyv1855 := &yyv1854[yyj1854] + yyv1855.CodecDecodeSelf(d) } } - if yyrt1791 { - for ; yyj1791 < yyl1791; yyj1791++ { - yyv1791 = append(yyv1791, Deployment{}) - yyh1791.ElemContainerState(yyj1791) + if yyrt1854 { + for ; yyj1854 < yyl1854; yyj1854++ { + yyv1854 = append(yyv1854, Deployment{}) + yyh1854.ElemContainerState(yyj1854) if r.TryDecodeAsNil() { - yyv1791[yyj1791] = Deployment{} + yyv1854[yyj1854] = Deployment{} } else { - yyv1793 := &yyv1791[yyj1791] - yyv1793.CodecDecodeSelf(d) + yyv1856 := &yyv1854[yyj1854] + yyv1856.CodecDecodeSelf(d) } } } } else { - yyj1791 := 0 - for ; !r.CheckBreak(); yyj1791++ { + yyj1854 := 0 + for ; !r.CheckBreak(); yyj1854++ { - if yyj1791 >= len(yyv1791) { - yyv1791 = append(yyv1791, Deployment{}) // var yyz1791 Deployment - yyc1791 = true + if yyj1854 >= len(yyv1854) { + yyv1854 = append(yyv1854, Deployment{}) // var yyz1854 Deployment + yyc1854 = true } - yyh1791.ElemContainerState(yyj1791) - if yyj1791 < len(yyv1791) { + yyh1854.ElemContainerState(yyj1854) + if yyj1854 < len(yyv1854) { if r.TryDecodeAsNil() { - yyv1791[yyj1791] = Deployment{} + yyv1854[yyj1854] = Deployment{} } else { - yyv1794 := &yyv1791[yyj1791] - yyv1794.CodecDecodeSelf(d) + yyv1857 := &yyv1854[yyj1854] + yyv1857.CodecDecodeSelf(d) } } else { @@ -21730,17 +22214,17 @@ func (x codecSelfer1234) decSliceDeployment(v *[]Deployment, d *codec1978.Decode } } - if yyj1791 < len(yyv1791) { - yyv1791 = yyv1791[:yyj1791] - yyc1791 = true - } else if yyj1791 == 0 && yyv1791 == nil { - yyv1791 = []Deployment{} - yyc1791 = true + if yyj1854 < len(yyv1854) { + yyv1854 = yyv1854[:yyj1854] + yyc1854 = true + } else if yyj1854 == 0 && yyv1854 == nil { + yyv1854 = []Deployment{} + yyc1854 = true } } - yyh1791.End() - if yyc1791 { - *v = yyv1791 + yyh1854.End() + if yyc1854 { + *v = yyv1854 } } @@ -21749,10 +22233,10 @@ func (x codecSelfer1234) encSliceDaemonSet(v []DaemonSet, e *codec1978.Encoder) z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r r.EncodeArrayStart(len(v)) - for _, yyv1795 := range v { + for _, yyv1858 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy1796 := &yyv1795 - yy1796.CodecEncodeSelf(e) + yy1859 := &yyv1858 + yy1859.CodecEncodeSelf(e) } z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -21762,83 +22246,83 @@ func (x codecSelfer1234) decSliceDaemonSet(v *[]DaemonSet, d *codec1978.Decoder) z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yyv1797 := *v - yyh1797, yyl1797 := z.DecSliceHelperStart() - var yyc1797 bool - if yyl1797 == 0 { - if yyv1797 == nil { - yyv1797 = []DaemonSet{} - yyc1797 = true - } else if len(yyv1797) != 0 { - yyv1797 = yyv1797[:0] - yyc1797 = true + yyv1860 := *v + yyh1860, yyl1860 := z.DecSliceHelperStart() + var yyc1860 bool + if yyl1860 == 0 { + if yyv1860 == nil { + yyv1860 = []DaemonSet{} + yyc1860 = true + } else if len(yyv1860) != 0 { + yyv1860 = yyv1860[:0] + yyc1860 = true } - } else if yyl1797 > 0 { - var yyrr1797, yyrl1797 int - var yyrt1797 bool - if yyl1797 > cap(yyv1797) { + } else if yyl1860 > 0 { + var yyrr1860, yyrl1860 int + var yyrt1860 bool + if yyl1860 > cap(yyv1860) { - yyrg1797 := len(yyv1797) > 0 - yyv21797 := yyv1797 - yyrl1797, yyrt1797 = z.DecInferLen(yyl1797, z.DecBasicHandle().MaxInitLen, 752) - if yyrt1797 { - if yyrl1797 <= cap(yyv1797) { - yyv1797 = yyv1797[:yyrl1797] + yyrg1860 := len(yyv1860) > 0 + yyv21860 := yyv1860 + yyrl1860, yyrt1860 = z.DecInferLen(yyl1860, z.DecBasicHandle().MaxInitLen, 752) + if yyrt1860 { + if yyrl1860 <= cap(yyv1860) { + yyv1860 = yyv1860[:yyrl1860] } else { - yyv1797 = make([]DaemonSet, yyrl1797) + yyv1860 = make([]DaemonSet, yyrl1860) } } else { - yyv1797 = make([]DaemonSet, yyrl1797) + yyv1860 = make([]DaemonSet, yyrl1860) } - yyc1797 = true - yyrr1797 = len(yyv1797) - if yyrg1797 { - copy(yyv1797, yyv21797) + yyc1860 = true + yyrr1860 = len(yyv1860) + if yyrg1860 { + copy(yyv1860, yyv21860) } - } else if yyl1797 != len(yyv1797) { - yyv1797 = yyv1797[:yyl1797] - yyc1797 = true + } else if yyl1860 != len(yyv1860) { + yyv1860 = yyv1860[:yyl1860] + yyc1860 = true } - yyj1797 := 0 - for ; yyj1797 < yyrr1797; yyj1797++ { - yyh1797.ElemContainerState(yyj1797) + yyj1860 := 0 + for ; yyj1860 < yyrr1860; yyj1860++ { + yyh1860.ElemContainerState(yyj1860) if r.TryDecodeAsNil() { - yyv1797[yyj1797] = DaemonSet{} + yyv1860[yyj1860] = DaemonSet{} } else { - yyv1798 := &yyv1797[yyj1797] - yyv1798.CodecDecodeSelf(d) + yyv1861 := &yyv1860[yyj1860] + yyv1861.CodecDecodeSelf(d) } } - if yyrt1797 { - for ; yyj1797 < yyl1797; yyj1797++ { - yyv1797 = append(yyv1797, DaemonSet{}) - yyh1797.ElemContainerState(yyj1797) + if yyrt1860 { + for ; yyj1860 < yyl1860; yyj1860++ { + yyv1860 = append(yyv1860, DaemonSet{}) + yyh1860.ElemContainerState(yyj1860) if r.TryDecodeAsNil() { - yyv1797[yyj1797] = DaemonSet{} + yyv1860[yyj1860] = DaemonSet{} } else { - yyv1799 := &yyv1797[yyj1797] - yyv1799.CodecDecodeSelf(d) + yyv1862 := &yyv1860[yyj1860] + yyv1862.CodecDecodeSelf(d) } } } } else { - yyj1797 := 0 - for ; !r.CheckBreak(); yyj1797++ { + yyj1860 := 0 + for ; !r.CheckBreak(); yyj1860++ { - if yyj1797 >= len(yyv1797) { - yyv1797 = append(yyv1797, DaemonSet{}) // var yyz1797 DaemonSet - yyc1797 = true + if yyj1860 >= len(yyv1860) { + yyv1860 = append(yyv1860, DaemonSet{}) // var yyz1860 DaemonSet + yyc1860 = true } - yyh1797.ElemContainerState(yyj1797) - if yyj1797 < len(yyv1797) { + yyh1860.ElemContainerState(yyj1860) + if yyj1860 < len(yyv1860) { if r.TryDecodeAsNil() { - yyv1797[yyj1797] = DaemonSet{} + yyv1860[yyj1860] = DaemonSet{} } else { - yyv1800 := &yyv1797[yyj1797] - yyv1800.CodecDecodeSelf(d) + yyv1863 := &yyv1860[yyj1860] + yyv1863.CodecDecodeSelf(d) } } else { @@ -21846,17 +22330,17 @@ func (x codecSelfer1234) decSliceDaemonSet(v *[]DaemonSet, d *codec1978.Decoder) } } - if yyj1797 < len(yyv1797) { - yyv1797 = yyv1797[:yyj1797] - yyc1797 = true - } else if yyj1797 == 0 && yyv1797 == nil { - yyv1797 = []DaemonSet{} - yyc1797 = true + if yyj1860 < len(yyv1860) { + yyv1860 = yyv1860[:yyj1860] + yyc1860 = true + } else if yyj1860 == 0 && yyv1860 == nil { + yyv1860 = []DaemonSet{} + yyc1860 = true } } - yyh1797.End() - if yyc1797 { - *v = yyv1797 + yyh1860.End() + if yyc1860 { + *v = yyv1860 } } @@ -21865,10 +22349,10 @@ func (x codecSelfer1234) encSliceThirdPartyResourceData(v []ThirdPartyResourceDa z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r r.EncodeArrayStart(len(v)) - for _, yyv1801 := range v { + for _, yyv1864 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy1802 := &yyv1801 - yy1802.CodecEncodeSelf(e) + yy1865 := &yyv1864 + yy1865.CodecEncodeSelf(e) } z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -21878,83 +22362,83 @@ func (x codecSelfer1234) decSliceThirdPartyResourceData(v *[]ThirdPartyResourceD z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yyv1803 := *v - yyh1803, yyl1803 := z.DecSliceHelperStart() - var yyc1803 bool - if yyl1803 == 0 { - if yyv1803 == nil { - yyv1803 = []ThirdPartyResourceData{} - yyc1803 = true - } else if len(yyv1803) != 0 { - yyv1803 = yyv1803[:0] - yyc1803 = true + yyv1866 := *v + yyh1866, yyl1866 := z.DecSliceHelperStart() + var yyc1866 bool + if yyl1866 == 0 { + if yyv1866 == nil { + yyv1866 = []ThirdPartyResourceData{} + yyc1866 = true + } else if len(yyv1866) != 0 { + yyv1866 = yyv1866[:0] + yyc1866 = true } - } else if yyl1803 > 0 { - var yyrr1803, yyrl1803 int - var yyrt1803 bool - if yyl1803 > cap(yyv1803) { + } else if yyl1866 > 0 { + var yyrr1866, yyrl1866 int + var yyrt1866 bool + if yyl1866 > cap(yyv1866) { - yyrg1803 := len(yyv1803) > 0 - yyv21803 := yyv1803 - yyrl1803, yyrt1803 = z.DecInferLen(yyl1803, z.DecBasicHandle().MaxInitLen, 280) - if yyrt1803 { - if yyrl1803 <= cap(yyv1803) { - yyv1803 = yyv1803[:yyrl1803] + yyrg1866 := len(yyv1866) > 0 + yyv21866 := yyv1866 + yyrl1866, yyrt1866 = z.DecInferLen(yyl1866, z.DecBasicHandle().MaxInitLen, 280) + if yyrt1866 { + if yyrl1866 <= cap(yyv1866) { + yyv1866 = yyv1866[:yyrl1866] } else { - yyv1803 = make([]ThirdPartyResourceData, yyrl1803) + yyv1866 = make([]ThirdPartyResourceData, yyrl1866) } } else { - yyv1803 = make([]ThirdPartyResourceData, yyrl1803) + yyv1866 = make([]ThirdPartyResourceData, yyrl1866) } - yyc1803 = true - yyrr1803 = len(yyv1803) - if yyrg1803 { - copy(yyv1803, yyv21803) + yyc1866 = true + yyrr1866 = len(yyv1866) + if yyrg1866 { + copy(yyv1866, yyv21866) } - } else if yyl1803 != len(yyv1803) { - yyv1803 = yyv1803[:yyl1803] - yyc1803 = true + } else if yyl1866 != len(yyv1866) { + yyv1866 = yyv1866[:yyl1866] + yyc1866 = true } - yyj1803 := 0 - for ; yyj1803 < yyrr1803; yyj1803++ { - yyh1803.ElemContainerState(yyj1803) + yyj1866 := 0 + for ; yyj1866 < yyrr1866; yyj1866++ { + yyh1866.ElemContainerState(yyj1866) if r.TryDecodeAsNil() { - yyv1803[yyj1803] = ThirdPartyResourceData{} + yyv1866[yyj1866] = ThirdPartyResourceData{} } else { - yyv1804 := &yyv1803[yyj1803] - yyv1804.CodecDecodeSelf(d) + yyv1867 := &yyv1866[yyj1866] + yyv1867.CodecDecodeSelf(d) } } - if yyrt1803 { - for ; yyj1803 < yyl1803; yyj1803++ { - yyv1803 = append(yyv1803, ThirdPartyResourceData{}) - yyh1803.ElemContainerState(yyj1803) + if yyrt1866 { + for ; yyj1866 < yyl1866; yyj1866++ { + yyv1866 = append(yyv1866, ThirdPartyResourceData{}) + yyh1866.ElemContainerState(yyj1866) if r.TryDecodeAsNil() { - yyv1803[yyj1803] = ThirdPartyResourceData{} + yyv1866[yyj1866] = ThirdPartyResourceData{} } else { - yyv1805 := &yyv1803[yyj1803] - yyv1805.CodecDecodeSelf(d) + yyv1868 := &yyv1866[yyj1866] + yyv1868.CodecDecodeSelf(d) } } } } else { - yyj1803 := 0 - for ; !r.CheckBreak(); yyj1803++ { + yyj1866 := 0 + for ; !r.CheckBreak(); yyj1866++ { - if yyj1803 >= len(yyv1803) { - yyv1803 = append(yyv1803, ThirdPartyResourceData{}) // var yyz1803 ThirdPartyResourceData - yyc1803 = true + if yyj1866 >= len(yyv1866) { + yyv1866 = append(yyv1866, ThirdPartyResourceData{}) // var yyz1866 ThirdPartyResourceData + yyc1866 = true } - yyh1803.ElemContainerState(yyj1803) - if yyj1803 < len(yyv1803) { + yyh1866.ElemContainerState(yyj1866) + if yyj1866 < len(yyv1866) { if r.TryDecodeAsNil() { - yyv1803[yyj1803] = ThirdPartyResourceData{} + yyv1866[yyj1866] = ThirdPartyResourceData{} } else { - yyv1806 := &yyv1803[yyj1803] - yyv1806.CodecDecodeSelf(d) + yyv1869 := &yyv1866[yyj1866] + yyv1869.CodecDecodeSelf(d) } } else { @@ -21962,17 +22446,17 @@ func (x codecSelfer1234) decSliceThirdPartyResourceData(v *[]ThirdPartyResourceD } } - if yyj1803 < len(yyv1803) { - yyv1803 = yyv1803[:yyj1803] - yyc1803 = true - } else if yyj1803 == 0 && yyv1803 == nil { - yyv1803 = []ThirdPartyResourceData{} - yyc1803 = true + if yyj1866 < len(yyv1866) { + yyv1866 = yyv1866[:yyj1866] + yyc1866 = true + } else if yyj1866 == 0 && yyv1866 == nil { + yyv1866 = []ThirdPartyResourceData{} + yyc1866 = true } } - yyh1803.End() - if yyc1803 { - *v = yyv1803 + yyh1866.End() + if yyc1866 { + *v = yyv1866 } } @@ -21981,10 +22465,10 @@ func (x codecSelfer1234) encSliceJob(v []Job, e *codec1978.Encoder) { z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r r.EncodeArrayStart(len(v)) - for _, yyv1807 := range v { + for _, yyv1870 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy1808 := &yyv1807 - yy1808.CodecEncodeSelf(e) + yy1871 := &yyv1870 + yy1871.CodecEncodeSelf(e) } z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -21994,83 +22478,83 @@ func (x codecSelfer1234) decSliceJob(v *[]Job, d *codec1978.Decoder) { z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yyv1809 := *v - yyh1809, yyl1809 := z.DecSliceHelperStart() - var yyc1809 bool - if yyl1809 == 0 { - if yyv1809 == nil { - yyv1809 = []Job{} - yyc1809 = true - } else if len(yyv1809) != 0 { - yyv1809 = yyv1809[:0] - yyc1809 = true + yyv1872 := *v + yyh1872, yyl1872 := z.DecSliceHelperStart() + var yyc1872 bool + if yyl1872 == 0 { + if yyv1872 == nil { + yyv1872 = []Job{} + yyc1872 = true + } else if len(yyv1872) != 0 { + yyv1872 = yyv1872[:0] + yyc1872 = true } - } else if yyl1809 > 0 { - var yyrr1809, yyrl1809 int - var yyrt1809 bool - if yyl1809 > cap(yyv1809) { + } else if yyl1872 > 0 { + var yyrr1872, yyrl1872 int + var yyrt1872 bool + if yyl1872 > cap(yyv1872) { - yyrg1809 := len(yyv1809) > 0 - yyv21809 := yyv1809 - yyrl1809, yyrt1809 = z.DecInferLen(yyl1809, z.DecBasicHandle().MaxInitLen, 824) - if yyrt1809 { - if yyrl1809 <= cap(yyv1809) { - yyv1809 = yyv1809[:yyrl1809] + yyrg1872 := len(yyv1872) > 0 + yyv21872 := yyv1872 + yyrl1872, yyrt1872 = z.DecInferLen(yyl1872, z.DecBasicHandle().MaxInitLen, 824) + if yyrt1872 { + if yyrl1872 <= cap(yyv1872) { + yyv1872 = yyv1872[:yyrl1872] } else { - yyv1809 = make([]Job, yyrl1809) + yyv1872 = make([]Job, yyrl1872) } } else { - yyv1809 = make([]Job, yyrl1809) + yyv1872 = make([]Job, yyrl1872) } - yyc1809 = true - yyrr1809 = len(yyv1809) - if yyrg1809 { - copy(yyv1809, yyv21809) + yyc1872 = true + yyrr1872 = len(yyv1872) + if yyrg1872 { + copy(yyv1872, yyv21872) } - } else if yyl1809 != len(yyv1809) { - yyv1809 = yyv1809[:yyl1809] - yyc1809 = true + } else if yyl1872 != len(yyv1872) { + yyv1872 = yyv1872[:yyl1872] + yyc1872 = true } - yyj1809 := 0 - for ; yyj1809 < yyrr1809; yyj1809++ { - yyh1809.ElemContainerState(yyj1809) + yyj1872 := 0 + for ; yyj1872 < yyrr1872; yyj1872++ { + yyh1872.ElemContainerState(yyj1872) if r.TryDecodeAsNil() { - yyv1809[yyj1809] = Job{} + yyv1872[yyj1872] = Job{} } else { - yyv1810 := &yyv1809[yyj1809] - yyv1810.CodecDecodeSelf(d) + yyv1873 := &yyv1872[yyj1872] + yyv1873.CodecDecodeSelf(d) } } - if yyrt1809 { - for ; yyj1809 < yyl1809; yyj1809++ { - yyv1809 = append(yyv1809, Job{}) - yyh1809.ElemContainerState(yyj1809) + if yyrt1872 { + for ; yyj1872 < yyl1872; yyj1872++ { + yyv1872 = append(yyv1872, Job{}) + yyh1872.ElemContainerState(yyj1872) if r.TryDecodeAsNil() { - yyv1809[yyj1809] = Job{} + yyv1872[yyj1872] = Job{} } else { - yyv1811 := &yyv1809[yyj1809] - yyv1811.CodecDecodeSelf(d) + yyv1874 := &yyv1872[yyj1872] + yyv1874.CodecDecodeSelf(d) } } } } else { - yyj1809 := 0 - for ; !r.CheckBreak(); yyj1809++ { + yyj1872 := 0 + for ; !r.CheckBreak(); yyj1872++ { - if yyj1809 >= len(yyv1809) { - yyv1809 = append(yyv1809, Job{}) // var yyz1809 Job - yyc1809 = true + if yyj1872 >= len(yyv1872) { + yyv1872 = append(yyv1872, Job{}) // var yyz1872 Job + yyc1872 = true } - yyh1809.ElemContainerState(yyj1809) - if yyj1809 < len(yyv1809) { + yyh1872.ElemContainerState(yyj1872) + if yyj1872 < len(yyv1872) { if r.TryDecodeAsNil() { - yyv1809[yyj1809] = Job{} + yyv1872[yyj1872] = Job{} } else { - yyv1812 := &yyv1809[yyj1809] - yyv1812.CodecDecodeSelf(d) + yyv1875 := &yyv1872[yyj1872] + yyv1875.CodecDecodeSelf(d) } } else { @@ -22078,17 +22562,17 @@ func (x codecSelfer1234) decSliceJob(v *[]Job, d *codec1978.Decoder) { } } - if yyj1809 < len(yyv1809) { - yyv1809 = yyv1809[:yyj1809] - yyc1809 = true - } else if yyj1809 == 0 && yyv1809 == nil { - yyv1809 = []Job{} - yyc1809 = true + if yyj1872 < len(yyv1872) { + yyv1872 = yyv1872[:yyj1872] + yyc1872 = true + } else if yyj1872 == 0 && yyv1872 == nil { + yyv1872 = []Job{} + yyc1872 = true } } - yyh1809.End() - if yyc1809 { - *v = yyv1809 + yyh1872.End() + if yyc1872 { + *v = yyv1872 } } @@ -22097,10 +22581,10 @@ func (x codecSelfer1234) encSliceJobCondition(v []JobCondition, e *codec1978.Enc z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r r.EncodeArrayStart(len(v)) - for _, yyv1813 := range v { + for _, yyv1876 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy1814 := &yyv1813 - yy1814.CodecEncodeSelf(e) + yy1877 := &yyv1876 + yy1877.CodecEncodeSelf(e) } z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -22110,83 +22594,83 @@ func (x codecSelfer1234) decSliceJobCondition(v *[]JobCondition, d *codec1978.De z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yyv1815 := *v - yyh1815, yyl1815 := z.DecSliceHelperStart() - var yyc1815 bool - if yyl1815 == 0 { - if yyv1815 == nil { - yyv1815 = []JobCondition{} - yyc1815 = true - } else if len(yyv1815) != 0 { - yyv1815 = yyv1815[:0] - yyc1815 = true + yyv1878 := *v + yyh1878, yyl1878 := z.DecSliceHelperStart() + var yyc1878 bool + if yyl1878 == 0 { + if yyv1878 == nil { + yyv1878 = []JobCondition{} + yyc1878 = true + } else if len(yyv1878) != 0 { + yyv1878 = yyv1878[:0] + yyc1878 = true } - } else if yyl1815 > 0 { - var yyrr1815, yyrl1815 int - var yyrt1815 bool - if yyl1815 > cap(yyv1815) { + } else if yyl1878 > 0 { + var yyrr1878, yyrl1878 int + var yyrt1878 bool + if yyl1878 > cap(yyv1878) { - yyrg1815 := len(yyv1815) > 0 - yyv21815 := yyv1815 - yyrl1815, yyrt1815 = z.DecInferLen(yyl1815, z.DecBasicHandle().MaxInitLen, 112) - if yyrt1815 { - if yyrl1815 <= cap(yyv1815) { - yyv1815 = yyv1815[:yyrl1815] + yyrg1878 := len(yyv1878) > 0 + yyv21878 := yyv1878 + yyrl1878, yyrt1878 = z.DecInferLen(yyl1878, z.DecBasicHandle().MaxInitLen, 112) + if yyrt1878 { + if yyrl1878 <= cap(yyv1878) { + yyv1878 = yyv1878[:yyrl1878] } else { - yyv1815 = make([]JobCondition, yyrl1815) + yyv1878 = make([]JobCondition, yyrl1878) } } else { - yyv1815 = make([]JobCondition, yyrl1815) + yyv1878 = make([]JobCondition, yyrl1878) } - yyc1815 = true - yyrr1815 = len(yyv1815) - if yyrg1815 { - copy(yyv1815, yyv21815) + yyc1878 = true + yyrr1878 = len(yyv1878) + if yyrg1878 { + copy(yyv1878, yyv21878) } - } else if yyl1815 != len(yyv1815) { - yyv1815 = yyv1815[:yyl1815] - yyc1815 = true + } else if yyl1878 != len(yyv1878) { + yyv1878 = yyv1878[:yyl1878] + yyc1878 = true } - yyj1815 := 0 - for ; yyj1815 < yyrr1815; yyj1815++ { - yyh1815.ElemContainerState(yyj1815) + yyj1878 := 0 + for ; yyj1878 < yyrr1878; yyj1878++ { + yyh1878.ElemContainerState(yyj1878) if r.TryDecodeAsNil() { - yyv1815[yyj1815] = JobCondition{} + yyv1878[yyj1878] = JobCondition{} } else { - yyv1816 := &yyv1815[yyj1815] - yyv1816.CodecDecodeSelf(d) + yyv1879 := &yyv1878[yyj1878] + yyv1879.CodecDecodeSelf(d) } } - if yyrt1815 { - for ; yyj1815 < yyl1815; yyj1815++ { - yyv1815 = append(yyv1815, JobCondition{}) - yyh1815.ElemContainerState(yyj1815) + if yyrt1878 { + for ; yyj1878 < yyl1878; yyj1878++ { + yyv1878 = append(yyv1878, JobCondition{}) + yyh1878.ElemContainerState(yyj1878) if r.TryDecodeAsNil() { - yyv1815[yyj1815] = JobCondition{} + yyv1878[yyj1878] = JobCondition{} } else { - yyv1817 := &yyv1815[yyj1815] - yyv1817.CodecDecodeSelf(d) + yyv1880 := &yyv1878[yyj1878] + yyv1880.CodecDecodeSelf(d) } } } } else { - yyj1815 := 0 - for ; !r.CheckBreak(); yyj1815++ { + yyj1878 := 0 + for ; !r.CheckBreak(); yyj1878++ { - if yyj1815 >= len(yyv1815) { - yyv1815 = append(yyv1815, JobCondition{}) // var yyz1815 JobCondition - yyc1815 = true + if yyj1878 >= len(yyv1878) { + yyv1878 = append(yyv1878, JobCondition{}) // var yyz1878 JobCondition + yyc1878 = true } - yyh1815.ElemContainerState(yyj1815) - if yyj1815 < len(yyv1815) { + yyh1878.ElemContainerState(yyj1878) + if yyj1878 < len(yyv1878) { if r.TryDecodeAsNil() { - yyv1815[yyj1815] = JobCondition{} + yyv1878[yyj1878] = JobCondition{} } else { - yyv1818 := &yyv1815[yyj1815] - yyv1818.CodecDecodeSelf(d) + yyv1881 := &yyv1878[yyj1878] + yyv1881.CodecDecodeSelf(d) } } else { @@ -22194,17 +22678,17 @@ func (x codecSelfer1234) decSliceJobCondition(v *[]JobCondition, d *codec1978.De } } - if yyj1815 < len(yyv1815) { - yyv1815 = yyv1815[:yyj1815] - yyc1815 = true - } else if yyj1815 == 0 && yyv1815 == nil { - yyv1815 = []JobCondition{} - yyc1815 = true + if yyj1878 < len(yyv1878) { + yyv1878 = yyv1878[:yyj1878] + yyc1878 = true + } else if yyj1878 == 0 && yyv1878 == nil { + yyv1878 = []JobCondition{} + yyc1878 = true } } - yyh1815.End() - if yyc1815 { - *v = yyv1815 + yyh1878.End() + if yyc1878 { + *v = yyv1878 } } @@ -22213,10 +22697,10 @@ func (x codecSelfer1234) encSliceIngress(v []Ingress, e *codec1978.Encoder) { z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r r.EncodeArrayStart(len(v)) - for _, yyv1819 := range v { + for _, yyv1882 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy1820 := &yyv1819 - yy1820.CodecEncodeSelf(e) + yy1883 := &yyv1882 + yy1883.CodecEncodeSelf(e) } z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -22226,83 +22710,83 @@ func (x codecSelfer1234) decSliceIngress(v *[]Ingress, d *codec1978.Decoder) { z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yyv1821 := *v - yyh1821, yyl1821 := z.DecSliceHelperStart() - var yyc1821 bool - if yyl1821 == 0 { - if yyv1821 == nil { - yyv1821 = []Ingress{} - yyc1821 = true - } else if len(yyv1821) != 0 { - yyv1821 = yyv1821[:0] - yyc1821 = true + yyv1884 := *v + yyh1884, yyl1884 := z.DecSliceHelperStart() + var yyc1884 bool + if yyl1884 == 0 { + if yyv1884 == nil { + yyv1884 = []Ingress{} + yyc1884 = true + } else if len(yyv1884) != 0 { + yyv1884 = yyv1884[:0] + yyc1884 = true } - } else if yyl1821 > 0 { - var yyrr1821, yyrl1821 int - var yyrt1821 bool - if yyl1821 > cap(yyv1821) { + } else if yyl1884 > 0 { + var yyrr1884, yyrl1884 int + var yyrt1884 bool + if yyl1884 > cap(yyv1884) { - yyrg1821 := len(yyv1821) > 0 - yyv21821 := yyv1821 - yyrl1821, yyrt1821 = z.DecInferLen(yyl1821, z.DecBasicHandle().MaxInitLen, 336) - if yyrt1821 { - if yyrl1821 <= cap(yyv1821) { - yyv1821 = yyv1821[:yyrl1821] + yyrg1884 := len(yyv1884) > 0 + yyv21884 := yyv1884 + yyrl1884, yyrt1884 = z.DecInferLen(yyl1884, z.DecBasicHandle().MaxInitLen, 336) + if yyrt1884 { + if yyrl1884 <= cap(yyv1884) { + yyv1884 = yyv1884[:yyrl1884] } else { - yyv1821 = make([]Ingress, yyrl1821) + yyv1884 = make([]Ingress, yyrl1884) } } else { - yyv1821 = make([]Ingress, yyrl1821) + yyv1884 = make([]Ingress, yyrl1884) } - yyc1821 = true - yyrr1821 = len(yyv1821) - if yyrg1821 { - copy(yyv1821, yyv21821) + yyc1884 = true + yyrr1884 = len(yyv1884) + if yyrg1884 { + copy(yyv1884, yyv21884) } - } else if yyl1821 != len(yyv1821) { - yyv1821 = yyv1821[:yyl1821] - yyc1821 = true + } else if yyl1884 != len(yyv1884) { + yyv1884 = yyv1884[:yyl1884] + yyc1884 = true } - yyj1821 := 0 - for ; yyj1821 < yyrr1821; yyj1821++ { - yyh1821.ElemContainerState(yyj1821) + yyj1884 := 0 + for ; yyj1884 < yyrr1884; yyj1884++ { + yyh1884.ElemContainerState(yyj1884) if r.TryDecodeAsNil() { - yyv1821[yyj1821] = Ingress{} + yyv1884[yyj1884] = Ingress{} } else { - yyv1822 := &yyv1821[yyj1821] - yyv1822.CodecDecodeSelf(d) + yyv1885 := &yyv1884[yyj1884] + yyv1885.CodecDecodeSelf(d) } } - if yyrt1821 { - for ; yyj1821 < yyl1821; yyj1821++ { - yyv1821 = append(yyv1821, Ingress{}) - yyh1821.ElemContainerState(yyj1821) + if yyrt1884 { + for ; yyj1884 < yyl1884; yyj1884++ { + yyv1884 = append(yyv1884, Ingress{}) + yyh1884.ElemContainerState(yyj1884) if r.TryDecodeAsNil() { - yyv1821[yyj1821] = Ingress{} + yyv1884[yyj1884] = Ingress{} } else { - yyv1823 := &yyv1821[yyj1821] - yyv1823.CodecDecodeSelf(d) + yyv1886 := &yyv1884[yyj1884] + yyv1886.CodecDecodeSelf(d) } } } } else { - yyj1821 := 0 - for ; !r.CheckBreak(); yyj1821++ { + yyj1884 := 0 + for ; !r.CheckBreak(); yyj1884++ { - if yyj1821 >= len(yyv1821) { - yyv1821 = append(yyv1821, Ingress{}) // var yyz1821 Ingress - yyc1821 = true + if yyj1884 >= len(yyv1884) { + yyv1884 = append(yyv1884, Ingress{}) // var yyz1884 Ingress + yyc1884 = true } - yyh1821.ElemContainerState(yyj1821) - if yyj1821 < len(yyv1821) { + yyh1884.ElemContainerState(yyj1884) + if yyj1884 < len(yyv1884) { if r.TryDecodeAsNil() { - yyv1821[yyj1821] = Ingress{} + yyv1884[yyj1884] = Ingress{} } else { - yyv1824 := &yyv1821[yyj1821] - yyv1824.CodecDecodeSelf(d) + yyv1887 := &yyv1884[yyj1884] + yyv1887.CodecDecodeSelf(d) } } else { @@ -22310,17 +22794,17 @@ func (x codecSelfer1234) decSliceIngress(v *[]Ingress, d *codec1978.Decoder) { } } - if yyj1821 < len(yyv1821) { - yyv1821 = yyv1821[:yyj1821] - yyc1821 = true - } else if yyj1821 == 0 && yyv1821 == nil { - yyv1821 = []Ingress{} - yyc1821 = true + if yyj1884 < len(yyv1884) { + yyv1884 = yyv1884[:yyj1884] + yyc1884 = true + } else if yyj1884 == 0 && yyv1884 == nil { + yyv1884 = []Ingress{} + yyc1884 = true } } - yyh1821.End() - if yyc1821 { - *v = yyv1821 + yyh1884.End() + if yyc1884 { + *v = yyv1884 } } @@ -22329,10 +22813,10 @@ func (x codecSelfer1234) encSliceIngressTLS(v []IngressTLS, e *codec1978.Encoder z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r r.EncodeArrayStart(len(v)) - for _, yyv1825 := range v { + for _, yyv1888 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy1826 := &yyv1825 - yy1826.CodecEncodeSelf(e) + yy1889 := &yyv1888 + yy1889.CodecEncodeSelf(e) } z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -22342,83 +22826,83 @@ func (x codecSelfer1234) decSliceIngressTLS(v *[]IngressTLS, d *codec1978.Decode z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yyv1827 := *v - yyh1827, yyl1827 := z.DecSliceHelperStart() - var yyc1827 bool - if yyl1827 == 0 { - if yyv1827 == nil { - yyv1827 = []IngressTLS{} - yyc1827 = true - } else if len(yyv1827) != 0 { - yyv1827 = yyv1827[:0] - yyc1827 = true + yyv1890 := *v + yyh1890, yyl1890 := z.DecSliceHelperStart() + var yyc1890 bool + if yyl1890 == 0 { + if yyv1890 == nil { + yyv1890 = []IngressTLS{} + yyc1890 = true + } else if len(yyv1890) != 0 { + yyv1890 = yyv1890[:0] + yyc1890 = true } - } else if yyl1827 > 0 { - var yyrr1827, yyrl1827 int - var yyrt1827 bool - if yyl1827 > cap(yyv1827) { + } else if yyl1890 > 0 { + var yyrr1890, yyrl1890 int + var yyrt1890 bool + if yyl1890 > cap(yyv1890) { - yyrg1827 := len(yyv1827) > 0 - yyv21827 := yyv1827 - yyrl1827, yyrt1827 = z.DecInferLen(yyl1827, z.DecBasicHandle().MaxInitLen, 40) - if yyrt1827 { - if yyrl1827 <= cap(yyv1827) { - yyv1827 = yyv1827[:yyrl1827] + yyrg1890 := len(yyv1890) > 0 + yyv21890 := yyv1890 + yyrl1890, yyrt1890 = z.DecInferLen(yyl1890, z.DecBasicHandle().MaxInitLen, 40) + if yyrt1890 { + if yyrl1890 <= cap(yyv1890) { + yyv1890 = yyv1890[:yyrl1890] } else { - yyv1827 = make([]IngressTLS, yyrl1827) + yyv1890 = make([]IngressTLS, yyrl1890) } } else { - yyv1827 = make([]IngressTLS, yyrl1827) + yyv1890 = make([]IngressTLS, yyrl1890) } - yyc1827 = true - yyrr1827 = len(yyv1827) - if yyrg1827 { - copy(yyv1827, yyv21827) + yyc1890 = true + yyrr1890 = len(yyv1890) + if yyrg1890 { + copy(yyv1890, yyv21890) } - } else if yyl1827 != len(yyv1827) { - yyv1827 = yyv1827[:yyl1827] - yyc1827 = true + } else if yyl1890 != len(yyv1890) { + yyv1890 = yyv1890[:yyl1890] + yyc1890 = true } - yyj1827 := 0 - for ; yyj1827 < yyrr1827; yyj1827++ { - yyh1827.ElemContainerState(yyj1827) + yyj1890 := 0 + for ; yyj1890 < yyrr1890; yyj1890++ { + yyh1890.ElemContainerState(yyj1890) if r.TryDecodeAsNil() { - yyv1827[yyj1827] = IngressTLS{} + yyv1890[yyj1890] = IngressTLS{} } else { - yyv1828 := &yyv1827[yyj1827] - yyv1828.CodecDecodeSelf(d) + yyv1891 := &yyv1890[yyj1890] + yyv1891.CodecDecodeSelf(d) } } - if yyrt1827 { - for ; yyj1827 < yyl1827; yyj1827++ { - yyv1827 = append(yyv1827, IngressTLS{}) - yyh1827.ElemContainerState(yyj1827) + if yyrt1890 { + for ; yyj1890 < yyl1890; yyj1890++ { + yyv1890 = append(yyv1890, IngressTLS{}) + yyh1890.ElemContainerState(yyj1890) if r.TryDecodeAsNil() { - yyv1827[yyj1827] = IngressTLS{} + yyv1890[yyj1890] = IngressTLS{} } else { - yyv1829 := &yyv1827[yyj1827] - yyv1829.CodecDecodeSelf(d) + yyv1892 := &yyv1890[yyj1890] + yyv1892.CodecDecodeSelf(d) } } } } else { - yyj1827 := 0 - for ; !r.CheckBreak(); yyj1827++ { + yyj1890 := 0 + for ; !r.CheckBreak(); yyj1890++ { - if yyj1827 >= len(yyv1827) { - yyv1827 = append(yyv1827, IngressTLS{}) // var yyz1827 IngressTLS - yyc1827 = true + if yyj1890 >= len(yyv1890) { + yyv1890 = append(yyv1890, IngressTLS{}) // var yyz1890 IngressTLS + yyc1890 = true } - yyh1827.ElemContainerState(yyj1827) - if yyj1827 < len(yyv1827) { + yyh1890.ElemContainerState(yyj1890) + if yyj1890 < len(yyv1890) { if r.TryDecodeAsNil() { - yyv1827[yyj1827] = IngressTLS{} + yyv1890[yyj1890] = IngressTLS{} } else { - yyv1830 := &yyv1827[yyj1827] - yyv1830.CodecDecodeSelf(d) + yyv1893 := &yyv1890[yyj1890] + yyv1893.CodecDecodeSelf(d) } } else { @@ -22426,17 +22910,17 @@ func (x codecSelfer1234) decSliceIngressTLS(v *[]IngressTLS, d *codec1978.Decode } } - if yyj1827 < len(yyv1827) { - yyv1827 = yyv1827[:yyj1827] - yyc1827 = true - } else if yyj1827 == 0 && yyv1827 == nil { - yyv1827 = []IngressTLS{} - yyc1827 = true + if yyj1890 < len(yyv1890) { + yyv1890 = yyv1890[:yyj1890] + yyc1890 = true + } else if yyj1890 == 0 && yyv1890 == nil { + yyv1890 = []IngressTLS{} + yyc1890 = true } } - yyh1827.End() - if yyc1827 { - *v = yyv1827 + yyh1890.End() + if yyc1890 { + *v = yyv1890 } } @@ -22445,10 +22929,10 @@ func (x codecSelfer1234) encSliceIngressRule(v []IngressRule, e *codec1978.Encod z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r r.EncodeArrayStart(len(v)) - for _, yyv1831 := range v { + for _, yyv1894 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy1832 := &yyv1831 - yy1832.CodecEncodeSelf(e) + yy1895 := &yyv1894 + yy1895.CodecEncodeSelf(e) } z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -22458,83 +22942,83 @@ func (x codecSelfer1234) decSliceIngressRule(v *[]IngressRule, d *codec1978.Deco z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yyv1833 := *v - yyh1833, yyl1833 := z.DecSliceHelperStart() - var yyc1833 bool - if yyl1833 == 0 { - if yyv1833 == nil { - yyv1833 = []IngressRule{} - yyc1833 = true - } else if len(yyv1833) != 0 { - yyv1833 = yyv1833[:0] - yyc1833 = true + yyv1896 := *v + yyh1896, yyl1896 := z.DecSliceHelperStart() + var yyc1896 bool + if yyl1896 == 0 { + if yyv1896 == nil { + yyv1896 = []IngressRule{} + yyc1896 = true + } else if len(yyv1896) != 0 { + yyv1896 = yyv1896[:0] + yyc1896 = true } - } else if yyl1833 > 0 { - var yyrr1833, yyrl1833 int - var yyrt1833 bool - if yyl1833 > cap(yyv1833) { + } else if yyl1896 > 0 { + var yyrr1896, yyrl1896 int + var yyrt1896 bool + if yyl1896 > cap(yyv1896) { - yyrg1833 := len(yyv1833) > 0 - yyv21833 := yyv1833 - yyrl1833, yyrt1833 = z.DecInferLen(yyl1833, z.DecBasicHandle().MaxInitLen, 24) - if yyrt1833 { - if yyrl1833 <= cap(yyv1833) { - yyv1833 = yyv1833[:yyrl1833] + yyrg1896 := len(yyv1896) > 0 + yyv21896 := yyv1896 + yyrl1896, yyrt1896 = z.DecInferLen(yyl1896, z.DecBasicHandle().MaxInitLen, 24) + if yyrt1896 { + if yyrl1896 <= cap(yyv1896) { + yyv1896 = yyv1896[:yyrl1896] } else { - yyv1833 = make([]IngressRule, yyrl1833) + yyv1896 = make([]IngressRule, yyrl1896) } } else { - yyv1833 = make([]IngressRule, yyrl1833) + yyv1896 = make([]IngressRule, yyrl1896) } - yyc1833 = true - yyrr1833 = len(yyv1833) - if yyrg1833 { - copy(yyv1833, yyv21833) + yyc1896 = true + yyrr1896 = len(yyv1896) + if yyrg1896 { + copy(yyv1896, yyv21896) } - } else if yyl1833 != len(yyv1833) { - yyv1833 = yyv1833[:yyl1833] - yyc1833 = true + } else if yyl1896 != len(yyv1896) { + yyv1896 = yyv1896[:yyl1896] + yyc1896 = true } - yyj1833 := 0 - for ; yyj1833 < yyrr1833; yyj1833++ { - yyh1833.ElemContainerState(yyj1833) + yyj1896 := 0 + for ; yyj1896 < yyrr1896; yyj1896++ { + yyh1896.ElemContainerState(yyj1896) if r.TryDecodeAsNil() { - yyv1833[yyj1833] = IngressRule{} + yyv1896[yyj1896] = IngressRule{} } else { - yyv1834 := &yyv1833[yyj1833] - yyv1834.CodecDecodeSelf(d) + yyv1897 := &yyv1896[yyj1896] + yyv1897.CodecDecodeSelf(d) } } - if yyrt1833 { - for ; yyj1833 < yyl1833; yyj1833++ { - yyv1833 = append(yyv1833, IngressRule{}) - yyh1833.ElemContainerState(yyj1833) + if yyrt1896 { + for ; yyj1896 < yyl1896; yyj1896++ { + yyv1896 = append(yyv1896, IngressRule{}) + yyh1896.ElemContainerState(yyj1896) if r.TryDecodeAsNil() { - yyv1833[yyj1833] = IngressRule{} + yyv1896[yyj1896] = IngressRule{} } else { - yyv1835 := &yyv1833[yyj1833] - yyv1835.CodecDecodeSelf(d) + yyv1898 := &yyv1896[yyj1896] + yyv1898.CodecDecodeSelf(d) } } } } else { - yyj1833 := 0 - for ; !r.CheckBreak(); yyj1833++ { + yyj1896 := 0 + for ; !r.CheckBreak(); yyj1896++ { - if yyj1833 >= len(yyv1833) { - yyv1833 = append(yyv1833, IngressRule{}) // var yyz1833 IngressRule - yyc1833 = true + if yyj1896 >= len(yyv1896) { + yyv1896 = append(yyv1896, IngressRule{}) // var yyz1896 IngressRule + yyc1896 = true } - yyh1833.ElemContainerState(yyj1833) - if yyj1833 < len(yyv1833) { + yyh1896.ElemContainerState(yyj1896) + if yyj1896 < len(yyv1896) { if r.TryDecodeAsNil() { - yyv1833[yyj1833] = IngressRule{} + yyv1896[yyj1896] = IngressRule{} } else { - yyv1836 := &yyv1833[yyj1833] - yyv1836.CodecDecodeSelf(d) + yyv1899 := &yyv1896[yyj1896] + yyv1899.CodecDecodeSelf(d) } } else { @@ -22542,17 +23026,17 @@ func (x codecSelfer1234) decSliceIngressRule(v *[]IngressRule, d *codec1978.Deco } } - if yyj1833 < len(yyv1833) { - yyv1833 = yyv1833[:yyj1833] - yyc1833 = true - } else if yyj1833 == 0 && yyv1833 == nil { - yyv1833 = []IngressRule{} - yyc1833 = true + if yyj1896 < len(yyv1896) { + yyv1896 = yyv1896[:yyj1896] + yyc1896 = true + } else if yyj1896 == 0 && yyv1896 == nil { + yyv1896 = []IngressRule{} + yyc1896 = true } } - yyh1833.End() - if yyc1833 { - *v = yyv1833 + yyh1896.End() + if yyc1896 { + *v = yyv1896 } } @@ -22561,10 +23045,10 @@ func (x codecSelfer1234) encSliceHTTPIngressPath(v []HTTPIngressPath, e *codec19 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r r.EncodeArrayStart(len(v)) - for _, yyv1837 := range v { + for _, yyv1900 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy1838 := &yyv1837 - yy1838.CodecEncodeSelf(e) + yy1901 := &yyv1900 + yy1901.CodecEncodeSelf(e) } z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -22574,83 +23058,83 @@ func (x codecSelfer1234) decSliceHTTPIngressPath(v *[]HTTPIngressPath, d *codec1 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yyv1839 := *v - yyh1839, yyl1839 := z.DecSliceHelperStart() - var yyc1839 bool - if yyl1839 == 0 { - if yyv1839 == nil { - yyv1839 = []HTTPIngressPath{} - yyc1839 = true - } else if len(yyv1839) != 0 { - yyv1839 = yyv1839[:0] - yyc1839 = true + yyv1902 := *v + yyh1902, yyl1902 := z.DecSliceHelperStart() + var yyc1902 bool + if yyl1902 == 0 { + if yyv1902 == nil { + yyv1902 = []HTTPIngressPath{} + yyc1902 = true + } else if len(yyv1902) != 0 { + yyv1902 = yyv1902[:0] + yyc1902 = true } - } else if yyl1839 > 0 { - var yyrr1839, yyrl1839 int - var yyrt1839 bool - if yyl1839 > cap(yyv1839) { + } else if yyl1902 > 0 { + var yyrr1902, yyrl1902 int + var yyrt1902 bool + if yyl1902 > cap(yyv1902) { - yyrg1839 := len(yyv1839) > 0 - yyv21839 := yyv1839 - yyrl1839, yyrt1839 = z.DecInferLen(yyl1839, z.DecBasicHandle().MaxInitLen, 64) - if yyrt1839 { - if yyrl1839 <= cap(yyv1839) { - yyv1839 = yyv1839[:yyrl1839] + yyrg1902 := len(yyv1902) > 0 + yyv21902 := yyv1902 + yyrl1902, yyrt1902 = z.DecInferLen(yyl1902, z.DecBasicHandle().MaxInitLen, 64) + if yyrt1902 { + if yyrl1902 <= cap(yyv1902) { + yyv1902 = yyv1902[:yyrl1902] } else { - yyv1839 = make([]HTTPIngressPath, yyrl1839) + yyv1902 = make([]HTTPIngressPath, yyrl1902) } } else { - yyv1839 = make([]HTTPIngressPath, yyrl1839) + yyv1902 = make([]HTTPIngressPath, yyrl1902) } - yyc1839 = true - yyrr1839 = len(yyv1839) - if yyrg1839 { - copy(yyv1839, yyv21839) + yyc1902 = true + yyrr1902 = len(yyv1902) + if yyrg1902 { + copy(yyv1902, yyv21902) } - } else if yyl1839 != len(yyv1839) { - yyv1839 = yyv1839[:yyl1839] - yyc1839 = true + } else if yyl1902 != len(yyv1902) { + yyv1902 = yyv1902[:yyl1902] + yyc1902 = true } - yyj1839 := 0 - for ; yyj1839 < yyrr1839; yyj1839++ { - yyh1839.ElemContainerState(yyj1839) + yyj1902 := 0 + for ; yyj1902 < yyrr1902; yyj1902++ { + yyh1902.ElemContainerState(yyj1902) if r.TryDecodeAsNil() { - yyv1839[yyj1839] = HTTPIngressPath{} + yyv1902[yyj1902] = HTTPIngressPath{} } else { - yyv1840 := &yyv1839[yyj1839] - yyv1840.CodecDecodeSelf(d) + yyv1903 := &yyv1902[yyj1902] + yyv1903.CodecDecodeSelf(d) } } - if yyrt1839 { - for ; yyj1839 < yyl1839; yyj1839++ { - yyv1839 = append(yyv1839, HTTPIngressPath{}) - yyh1839.ElemContainerState(yyj1839) + if yyrt1902 { + for ; yyj1902 < yyl1902; yyj1902++ { + yyv1902 = append(yyv1902, HTTPIngressPath{}) + yyh1902.ElemContainerState(yyj1902) if r.TryDecodeAsNil() { - yyv1839[yyj1839] = HTTPIngressPath{} + yyv1902[yyj1902] = HTTPIngressPath{} } else { - yyv1841 := &yyv1839[yyj1839] - yyv1841.CodecDecodeSelf(d) + yyv1904 := &yyv1902[yyj1902] + yyv1904.CodecDecodeSelf(d) } } } } else { - yyj1839 := 0 - for ; !r.CheckBreak(); yyj1839++ { + yyj1902 := 0 + for ; !r.CheckBreak(); yyj1902++ { - if yyj1839 >= len(yyv1839) { - yyv1839 = append(yyv1839, HTTPIngressPath{}) // var yyz1839 HTTPIngressPath - yyc1839 = true + if yyj1902 >= len(yyv1902) { + yyv1902 = append(yyv1902, HTTPIngressPath{}) // var yyz1902 HTTPIngressPath + yyc1902 = true } - yyh1839.ElemContainerState(yyj1839) - if yyj1839 < len(yyv1839) { + yyh1902.ElemContainerState(yyj1902) + if yyj1902 < len(yyv1902) { if r.TryDecodeAsNil() { - yyv1839[yyj1839] = HTTPIngressPath{} + yyv1902[yyj1902] = HTTPIngressPath{} } else { - yyv1842 := &yyv1839[yyj1839] - yyv1842.CodecDecodeSelf(d) + yyv1905 := &yyv1902[yyj1902] + yyv1905.CodecDecodeSelf(d) } } else { @@ -22658,133 +23142,17 @@ func (x codecSelfer1234) decSliceHTTPIngressPath(v *[]HTTPIngressPath, d *codec1 } } - if yyj1839 < len(yyv1839) { - yyv1839 = yyv1839[:yyj1839] - yyc1839 = true - } else if yyj1839 == 0 && yyv1839 == nil { - yyv1839 = []HTTPIngressPath{} - yyc1839 = true + if yyj1902 < len(yyv1902) { + yyv1902 = yyv1902[:yyj1902] + yyc1902 = true + } else if yyj1902 == 0 && yyv1902 == nil { + yyv1902 = []HTTPIngressPath{} + yyc1902 = true } } - yyh1839.End() - if yyc1839 { - *v = yyv1839 - } -} - -func (x codecSelfer1234) encSliceLabelSelectorRequirement(v []LabelSelectorRequirement, e *codec1978.Encoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - r.EncodeArrayStart(len(v)) - for _, yyv1843 := range v { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy1844 := &yyv1843 - yy1844.CodecEncodeSelf(e) - } - z.EncSendContainerState(codecSelfer_containerArrayEnd1234) -} - -func (x codecSelfer1234) decSliceLabelSelectorRequirement(v *[]LabelSelectorRequirement, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - - yyv1845 := *v - yyh1845, yyl1845 := z.DecSliceHelperStart() - var yyc1845 bool - if yyl1845 == 0 { - if yyv1845 == nil { - yyv1845 = []LabelSelectorRequirement{} - yyc1845 = true - } else if len(yyv1845) != 0 { - yyv1845 = yyv1845[:0] - yyc1845 = true - } - } else if yyl1845 > 0 { - var yyrr1845, yyrl1845 int - var yyrt1845 bool - if yyl1845 > cap(yyv1845) { - - yyrg1845 := len(yyv1845) > 0 - yyv21845 := yyv1845 - yyrl1845, yyrt1845 = z.DecInferLen(yyl1845, z.DecBasicHandle().MaxInitLen, 56) - if yyrt1845 { - if yyrl1845 <= cap(yyv1845) { - yyv1845 = yyv1845[:yyrl1845] - } else { - yyv1845 = make([]LabelSelectorRequirement, yyrl1845) - } - } else { - yyv1845 = make([]LabelSelectorRequirement, yyrl1845) - } - yyc1845 = true - yyrr1845 = len(yyv1845) - if yyrg1845 { - copy(yyv1845, yyv21845) - } - } else if yyl1845 != len(yyv1845) { - yyv1845 = yyv1845[:yyl1845] - yyc1845 = true - } - yyj1845 := 0 - for ; yyj1845 < yyrr1845; yyj1845++ { - yyh1845.ElemContainerState(yyj1845) - if r.TryDecodeAsNil() { - yyv1845[yyj1845] = LabelSelectorRequirement{} - } else { - yyv1846 := &yyv1845[yyj1845] - yyv1846.CodecDecodeSelf(d) - } - - } - if yyrt1845 { - for ; yyj1845 < yyl1845; yyj1845++ { - yyv1845 = append(yyv1845, LabelSelectorRequirement{}) - yyh1845.ElemContainerState(yyj1845) - if r.TryDecodeAsNil() { - yyv1845[yyj1845] = LabelSelectorRequirement{} - } else { - yyv1847 := &yyv1845[yyj1845] - yyv1847.CodecDecodeSelf(d) - } - - } - } - - } else { - yyj1845 := 0 - for ; !r.CheckBreak(); yyj1845++ { - - if yyj1845 >= len(yyv1845) { - yyv1845 = append(yyv1845, LabelSelectorRequirement{}) // var yyz1845 LabelSelectorRequirement - yyc1845 = true - } - yyh1845.ElemContainerState(yyj1845) - if yyj1845 < len(yyv1845) { - if r.TryDecodeAsNil() { - yyv1845[yyj1845] = LabelSelectorRequirement{} - } else { - yyv1848 := &yyv1845[yyj1845] - yyv1848.CodecDecodeSelf(d) - } - - } else { - z.DecSwallow() - } - - } - if yyj1845 < len(yyv1845) { - yyv1845 = yyv1845[:yyj1845] - yyc1845 = true - } else if yyj1845 == 0 && yyv1845 == nil { - yyv1845 = []LabelSelectorRequirement{} - yyc1845 = true - } - } - yyh1845.End() - if yyc1845 { - *v = yyv1845 + yyh1902.End() + if yyc1902 { + *v = yyv1902 } } @@ -22793,10 +23161,10 @@ func (x codecSelfer1234) encSliceReplicaSet(v []ReplicaSet, e *codec1978.Encoder z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r r.EncodeArrayStart(len(v)) - for _, yyv1849 := range v { + for _, yyv1906 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy1850 := &yyv1849 - yy1850.CodecEncodeSelf(e) + yy1907 := &yyv1906 + yy1907.CodecEncodeSelf(e) } z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -22806,83 +23174,83 @@ func (x codecSelfer1234) decSliceReplicaSet(v *[]ReplicaSet, d *codec1978.Decode z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yyv1851 := *v - yyh1851, yyl1851 := z.DecSliceHelperStart() - var yyc1851 bool - if yyl1851 == 0 { - if yyv1851 == nil { - yyv1851 = []ReplicaSet{} - yyc1851 = true - } else if len(yyv1851) != 0 { - yyv1851 = yyv1851[:0] - yyc1851 = true + yyv1908 := *v + yyh1908, yyl1908 := z.DecSliceHelperStart() + var yyc1908 bool + if yyl1908 == 0 { + if yyv1908 == nil { + yyv1908 = []ReplicaSet{} + yyc1908 = true + } else if len(yyv1908) != 0 { + yyv1908 = yyv1908[:0] + yyc1908 = true } - } else if yyl1851 > 0 { - var yyrr1851, yyrl1851 int - var yyrt1851 bool - if yyl1851 > cap(yyv1851) { + } else if yyl1908 > 0 { + var yyrr1908, yyrl1908 int + var yyrt1908 bool + if yyl1908 > cap(yyv1908) { - yyrg1851 := len(yyv1851) > 0 - yyv21851 := yyv1851 - yyrl1851, yyrt1851 = z.DecInferLen(yyl1851, z.DecBasicHandle().MaxInitLen, 768) - if yyrt1851 { - if yyrl1851 <= cap(yyv1851) { - yyv1851 = yyv1851[:yyrl1851] + yyrg1908 := len(yyv1908) > 0 + yyv21908 := yyv1908 + yyrl1908, yyrt1908 = z.DecInferLen(yyl1908, z.DecBasicHandle().MaxInitLen, 800) + if yyrt1908 { + if yyrl1908 <= cap(yyv1908) { + yyv1908 = yyv1908[:yyrl1908] } else { - yyv1851 = make([]ReplicaSet, yyrl1851) + yyv1908 = make([]ReplicaSet, yyrl1908) } } else { - yyv1851 = make([]ReplicaSet, yyrl1851) + yyv1908 = make([]ReplicaSet, yyrl1908) } - yyc1851 = true - yyrr1851 = len(yyv1851) - if yyrg1851 { - copy(yyv1851, yyv21851) + yyc1908 = true + yyrr1908 = len(yyv1908) + if yyrg1908 { + copy(yyv1908, yyv21908) } - } else if yyl1851 != len(yyv1851) { - yyv1851 = yyv1851[:yyl1851] - yyc1851 = true + } else if yyl1908 != len(yyv1908) { + yyv1908 = yyv1908[:yyl1908] + yyc1908 = true } - yyj1851 := 0 - for ; yyj1851 < yyrr1851; yyj1851++ { - yyh1851.ElemContainerState(yyj1851) + yyj1908 := 0 + for ; yyj1908 < yyrr1908; yyj1908++ { + yyh1908.ElemContainerState(yyj1908) if r.TryDecodeAsNil() { - yyv1851[yyj1851] = ReplicaSet{} + yyv1908[yyj1908] = ReplicaSet{} } else { - yyv1852 := &yyv1851[yyj1851] - yyv1852.CodecDecodeSelf(d) + yyv1909 := &yyv1908[yyj1908] + yyv1909.CodecDecodeSelf(d) } } - if yyrt1851 { - for ; yyj1851 < yyl1851; yyj1851++ { - yyv1851 = append(yyv1851, ReplicaSet{}) - yyh1851.ElemContainerState(yyj1851) + if yyrt1908 { + for ; yyj1908 < yyl1908; yyj1908++ { + yyv1908 = append(yyv1908, ReplicaSet{}) + yyh1908.ElemContainerState(yyj1908) if r.TryDecodeAsNil() { - yyv1851[yyj1851] = ReplicaSet{} + yyv1908[yyj1908] = ReplicaSet{} } else { - yyv1853 := &yyv1851[yyj1851] - yyv1853.CodecDecodeSelf(d) + yyv1910 := &yyv1908[yyj1908] + yyv1910.CodecDecodeSelf(d) } } } } else { - yyj1851 := 0 - for ; !r.CheckBreak(); yyj1851++ { + yyj1908 := 0 + for ; !r.CheckBreak(); yyj1908++ { - if yyj1851 >= len(yyv1851) { - yyv1851 = append(yyv1851, ReplicaSet{}) // var yyz1851 ReplicaSet - yyc1851 = true + if yyj1908 >= len(yyv1908) { + yyv1908 = append(yyv1908, ReplicaSet{}) // var yyz1908 ReplicaSet + yyc1908 = true } - yyh1851.ElemContainerState(yyj1851) - if yyj1851 < len(yyv1851) { + yyh1908.ElemContainerState(yyj1908) + if yyj1908 < len(yyv1908) { if r.TryDecodeAsNil() { - yyv1851[yyj1851] = ReplicaSet{} + yyv1908[yyj1908] = ReplicaSet{} } else { - yyv1854 := &yyv1851[yyj1851] - yyv1854.CodecDecodeSelf(d) + yyv1911 := &yyv1908[yyj1908] + yyv1911.CodecDecodeSelf(d) } } else { @@ -22890,17 +23258,133 @@ func (x codecSelfer1234) decSliceReplicaSet(v *[]ReplicaSet, d *codec1978.Decode } } - if yyj1851 < len(yyv1851) { - yyv1851 = yyv1851[:yyj1851] - yyc1851 = true - } else if yyj1851 == 0 && yyv1851 == nil { - yyv1851 = []ReplicaSet{} - yyc1851 = true + if yyj1908 < len(yyv1908) { + yyv1908 = yyv1908[:yyj1908] + yyc1908 = true + } else if yyj1908 == 0 && yyv1908 == nil { + yyv1908 = []ReplicaSet{} + yyc1908 = true } } - yyh1851.End() - if yyc1851 { - *v = yyv1851 + yyh1908.End() + if yyc1908 { + *v = yyv1908 + } +} + +func (x codecSelfer1234) encSliceReplicaSetCondition(v []ReplicaSetCondition, e *codec1978.Encoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + r.EncodeArrayStart(len(v)) + for _, yyv1912 := range v { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yy1913 := &yyv1912 + yy1913.CodecEncodeSelf(e) + } + z.EncSendContainerState(codecSelfer_containerArrayEnd1234) +} + +func (x codecSelfer1234) decSliceReplicaSetCondition(v *[]ReplicaSetCondition, d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + + yyv1914 := *v + yyh1914, yyl1914 := z.DecSliceHelperStart() + var yyc1914 bool + if yyl1914 == 0 { + if yyv1914 == nil { + yyv1914 = []ReplicaSetCondition{} + yyc1914 = true + } else if len(yyv1914) != 0 { + yyv1914 = yyv1914[:0] + yyc1914 = true + } + } else if yyl1914 > 0 { + var yyrr1914, yyrl1914 int + var yyrt1914 bool + if yyl1914 > cap(yyv1914) { + + yyrg1914 := len(yyv1914) > 0 + yyv21914 := yyv1914 + yyrl1914, yyrt1914 = z.DecInferLen(yyl1914, z.DecBasicHandle().MaxInitLen, 88) + if yyrt1914 { + if yyrl1914 <= cap(yyv1914) { + yyv1914 = yyv1914[:yyrl1914] + } else { + yyv1914 = make([]ReplicaSetCondition, yyrl1914) + } + } else { + yyv1914 = make([]ReplicaSetCondition, yyrl1914) + } + yyc1914 = true + yyrr1914 = len(yyv1914) + if yyrg1914 { + copy(yyv1914, yyv21914) + } + } else if yyl1914 != len(yyv1914) { + yyv1914 = yyv1914[:yyl1914] + yyc1914 = true + } + yyj1914 := 0 + for ; yyj1914 < yyrr1914; yyj1914++ { + yyh1914.ElemContainerState(yyj1914) + if r.TryDecodeAsNil() { + yyv1914[yyj1914] = ReplicaSetCondition{} + } else { + yyv1915 := &yyv1914[yyj1914] + yyv1915.CodecDecodeSelf(d) + } + + } + if yyrt1914 { + for ; yyj1914 < yyl1914; yyj1914++ { + yyv1914 = append(yyv1914, ReplicaSetCondition{}) + yyh1914.ElemContainerState(yyj1914) + if r.TryDecodeAsNil() { + yyv1914[yyj1914] = ReplicaSetCondition{} + } else { + yyv1916 := &yyv1914[yyj1914] + yyv1916.CodecDecodeSelf(d) + } + + } + } + + } else { + yyj1914 := 0 + for ; !r.CheckBreak(); yyj1914++ { + + if yyj1914 >= len(yyv1914) { + yyv1914 = append(yyv1914, ReplicaSetCondition{}) // var yyz1914 ReplicaSetCondition + yyc1914 = true + } + yyh1914.ElemContainerState(yyj1914) + if yyj1914 < len(yyv1914) { + if r.TryDecodeAsNil() { + yyv1914[yyj1914] = ReplicaSetCondition{} + } else { + yyv1917 := &yyv1914[yyj1914] + yyv1917.CodecDecodeSelf(d) + } + + } else { + z.DecSwallow() + } + + } + if yyj1914 < len(yyv1914) { + yyv1914 = yyv1914[:yyj1914] + yyc1914 = true + } else if yyj1914 == 0 && yyv1914 == nil { + yyv1914 = []ReplicaSetCondition{} + yyc1914 = true + } + } + yyh1914.End() + if yyc1914 { + *v = yyv1914 } } @@ -22909,14 +23393,14 @@ func (x codecSelfer1234) encSlicev1_Capability(v []pkg2_v1.Capability, e *codec1 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r r.EncodeArrayStart(len(v)) - for _, yyv1855 := range v { + for _, yyv1918 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym1856 := z.EncBinary() - _ = yym1856 + yym1919 := z.EncBinary() + _ = yym1919 if false { - } else if z.HasExtensions() && z.EncExt(yyv1855) { + } else if z.HasExtensions() && z.EncExt(yyv1918) { } else { - r.EncodeString(codecSelferC_UTF81234, string(yyv1855)) + r.EncodeString(codecSelferC_UTF81234, string(yyv1918)) } } z.EncSendContainerState(codecSelfer_containerArrayEnd1234) @@ -22927,75 +23411,75 @@ func (x codecSelfer1234) decSlicev1_Capability(v *[]pkg2_v1.Capability, d *codec z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yyv1857 := *v - yyh1857, yyl1857 := z.DecSliceHelperStart() - var yyc1857 bool - if yyl1857 == 0 { - if yyv1857 == nil { - yyv1857 = []pkg2_v1.Capability{} - yyc1857 = true - } else if len(yyv1857) != 0 { - yyv1857 = yyv1857[:0] - yyc1857 = true + yyv1920 := *v + yyh1920, yyl1920 := z.DecSliceHelperStart() + var yyc1920 bool + if yyl1920 == 0 { + if yyv1920 == nil { + yyv1920 = []pkg2_v1.Capability{} + yyc1920 = true + } else if len(yyv1920) != 0 { + yyv1920 = yyv1920[:0] + yyc1920 = true } - } else if yyl1857 > 0 { - var yyrr1857, yyrl1857 int - var yyrt1857 bool - if yyl1857 > cap(yyv1857) { + } else if yyl1920 > 0 { + var yyrr1920, yyrl1920 int + var yyrt1920 bool + if yyl1920 > cap(yyv1920) { - yyrl1857, yyrt1857 = z.DecInferLen(yyl1857, z.DecBasicHandle().MaxInitLen, 16) - if yyrt1857 { - if yyrl1857 <= cap(yyv1857) { - yyv1857 = yyv1857[:yyrl1857] + yyrl1920, yyrt1920 = z.DecInferLen(yyl1920, z.DecBasicHandle().MaxInitLen, 16) + if yyrt1920 { + if yyrl1920 <= cap(yyv1920) { + yyv1920 = yyv1920[:yyrl1920] } else { - yyv1857 = make([]pkg2_v1.Capability, yyrl1857) + yyv1920 = make([]pkg2_v1.Capability, yyrl1920) } } else { - yyv1857 = make([]pkg2_v1.Capability, yyrl1857) + yyv1920 = make([]pkg2_v1.Capability, yyrl1920) } - yyc1857 = true - yyrr1857 = len(yyv1857) - } else if yyl1857 != len(yyv1857) { - yyv1857 = yyv1857[:yyl1857] - yyc1857 = true + yyc1920 = true + yyrr1920 = len(yyv1920) + } else if yyl1920 != len(yyv1920) { + yyv1920 = yyv1920[:yyl1920] + yyc1920 = true } - yyj1857 := 0 - for ; yyj1857 < yyrr1857; yyj1857++ { - yyh1857.ElemContainerState(yyj1857) + yyj1920 := 0 + for ; yyj1920 < yyrr1920; yyj1920++ { + yyh1920.ElemContainerState(yyj1920) if r.TryDecodeAsNil() { - yyv1857[yyj1857] = "" + yyv1920[yyj1920] = "" } else { - yyv1857[yyj1857] = pkg2_v1.Capability(r.DecodeString()) + yyv1920[yyj1920] = pkg2_v1.Capability(r.DecodeString()) } } - if yyrt1857 { - for ; yyj1857 < yyl1857; yyj1857++ { - yyv1857 = append(yyv1857, "") - yyh1857.ElemContainerState(yyj1857) + if yyrt1920 { + for ; yyj1920 < yyl1920; yyj1920++ { + yyv1920 = append(yyv1920, "") + yyh1920.ElemContainerState(yyj1920) if r.TryDecodeAsNil() { - yyv1857[yyj1857] = "" + yyv1920[yyj1920] = "" } else { - yyv1857[yyj1857] = pkg2_v1.Capability(r.DecodeString()) + yyv1920[yyj1920] = pkg2_v1.Capability(r.DecodeString()) } } } } else { - yyj1857 := 0 - for ; !r.CheckBreak(); yyj1857++ { + yyj1920 := 0 + for ; !r.CheckBreak(); yyj1920++ { - if yyj1857 >= len(yyv1857) { - yyv1857 = append(yyv1857, "") // var yyz1857 pkg2_v1.Capability - yyc1857 = true + if yyj1920 >= len(yyv1920) { + yyv1920 = append(yyv1920, "") // var yyz1920 pkg2_v1.Capability + yyc1920 = true } - yyh1857.ElemContainerState(yyj1857) - if yyj1857 < len(yyv1857) { + yyh1920.ElemContainerState(yyj1920) + if yyj1920 < len(yyv1920) { if r.TryDecodeAsNil() { - yyv1857[yyj1857] = "" + yyv1920[yyj1920] = "" } else { - yyv1857[yyj1857] = pkg2_v1.Capability(r.DecodeString()) + yyv1920[yyj1920] = pkg2_v1.Capability(r.DecodeString()) } } else { @@ -23003,17 +23487,17 @@ func (x codecSelfer1234) decSlicev1_Capability(v *[]pkg2_v1.Capability, d *codec } } - if yyj1857 < len(yyv1857) { - yyv1857 = yyv1857[:yyj1857] - yyc1857 = true - } else if yyj1857 == 0 && yyv1857 == nil { - yyv1857 = []pkg2_v1.Capability{} - yyc1857 = true + if yyj1920 < len(yyv1920) { + yyv1920 = yyv1920[:yyj1920] + yyc1920 = true + } else if yyj1920 == 0 && yyv1920 == nil { + yyv1920 = []pkg2_v1.Capability{} + yyc1920 = true } } - yyh1857.End() - if yyc1857 { - *v = yyv1857 + yyh1920.End() + if yyc1920 { + *v = yyv1920 } } @@ -23022,9 +23506,9 @@ func (x codecSelfer1234) encSliceFSType(v []FSType, e *codec1978.Encoder) { z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r r.EncodeArrayStart(len(v)) - for _, yyv1861 := range v { + for _, yyv1924 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yyv1861.CodecEncodeSelf(e) + yyv1924.CodecEncodeSelf(e) } z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -23034,75 +23518,75 @@ func (x codecSelfer1234) decSliceFSType(v *[]FSType, d *codec1978.Decoder) { z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yyv1862 := *v - yyh1862, yyl1862 := z.DecSliceHelperStart() - var yyc1862 bool - if yyl1862 == 0 { - if yyv1862 == nil { - yyv1862 = []FSType{} - yyc1862 = true - } else if len(yyv1862) != 0 { - yyv1862 = yyv1862[:0] - yyc1862 = true + yyv1925 := *v + yyh1925, yyl1925 := z.DecSliceHelperStart() + var yyc1925 bool + if yyl1925 == 0 { + if yyv1925 == nil { + yyv1925 = []FSType{} + yyc1925 = true + } else if len(yyv1925) != 0 { + yyv1925 = yyv1925[:0] + yyc1925 = true } - } else if yyl1862 > 0 { - var yyrr1862, yyrl1862 int - var yyrt1862 bool - if yyl1862 > cap(yyv1862) { + } else if yyl1925 > 0 { + var yyrr1925, yyrl1925 int + var yyrt1925 bool + if yyl1925 > cap(yyv1925) { - yyrl1862, yyrt1862 = z.DecInferLen(yyl1862, z.DecBasicHandle().MaxInitLen, 16) - if yyrt1862 { - if yyrl1862 <= cap(yyv1862) { - yyv1862 = yyv1862[:yyrl1862] + yyrl1925, yyrt1925 = z.DecInferLen(yyl1925, z.DecBasicHandle().MaxInitLen, 16) + if yyrt1925 { + if yyrl1925 <= cap(yyv1925) { + yyv1925 = yyv1925[:yyrl1925] } else { - yyv1862 = make([]FSType, yyrl1862) + yyv1925 = make([]FSType, yyrl1925) } } else { - yyv1862 = make([]FSType, yyrl1862) + yyv1925 = make([]FSType, yyrl1925) } - yyc1862 = true - yyrr1862 = len(yyv1862) - } else if yyl1862 != len(yyv1862) { - yyv1862 = yyv1862[:yyl1862] - yyc1862 = true + yyc1925 = true + yyrr1925 = len(yyv1925) + } else if yyl1925 != len(yyv1925) { + yyv1925 = yyv1925[:yyl1925] + yyc1925 = true } - yyj1862 := 0 - for ; yyj1862 < yyrr1862; yyj1862++ { - yyh1862.ElemContainerState(yyj1862) + yyj1925 := 0 + for ; yyj1925 < yyrr1925; yyj1925++ { + yyh1925.ElemContainerState(yyj1925) if r.TryDecodeAsNil() { - yyv1862[yyj1862] = "" + yyv1925[yyj1925] = "" } else { - yyv1862[yyj1862] = FSType(r.DecodeString()) + yyv1925[yyj1925] = FSType(r.DecodeString()) } } - if yyrt1862 { - for ; yyj1862 < yyl1862; yyj1862++ { - yyv1862 = append(yyv1862, "") - yyh1862.ElemContainerState(yyj1862) + if yyrt1925 { + for ; yyj1925 < yyl1925; yyj1925++ { + yyv1925 = append(yyv1925, "") + yyh1925.ElemContainerState(yyj1925) if r.TryDecodeAsNil() { - yyv1862[yyj1862] = "" + yyv1925[yyj1925] = "" } else { - yyv1862[yyj1862] = FSType(r.DecodeString()) + yyv1925[yyj1925] = FSType(r.DecodeString()) } } } } else { - yyj1862 := 0 - for ; !r.CheckBreak(); yyj1862++ { + yyj1925 := 0 + for ; !r.CheckBreak(); yyj1925++ { - if yyj1862 >= len(yyv1862) { - yyv1862 = append(yyv1862, "") // var yyz1862 FSType - yyc1862 = true + if yyj1925 >= len(yyv1925) { + yyv1925 = append(yyv1925, "") // var yyz1925 FSType + yyc1925 = true } - yyh1862.ElemContainerState(yyj1862) - if yyj1862 < len(yyv1862) { + yyh1925.ElemContainerState(yyj1925) + if yyj1925 < len(yyv1925) { if r.TryDecodeAsNil() { - yyv1862[yyj1862] = "" + yyv1925[yyj1925] = "" } else { - yyv1862[yyj1862] = FSType(r.DecodeString()) + yyv1925[yyj1925] = FSType(r.DecodeString()) } } else { @@ -23110,17 +23594,17 @@ func (x codecSelfer1234) decSliceFSType(v *[]FSType, d *codec1978.Decoder) { } } - if yyj1862 < len(yyv1862) { - yyv1862 = yyv1862[:yyj1862] - yyc1862 = true - } else if yyj1862 == 0 && yyv1862 == nil { - yyv1862 = []FSType{} - yyc1862 = true + if yyj1925 < len(yyv1925) { + yyv1925 = yyv1925[:yyj1925] + yyc1925 = true + } else if yyj1925 == 0 && yyv1925 == nil { + yyv1925 = []FSType{} + yyc1925 = true } } - yyh1862.End() - if yyc1862 { - *v = yyv1862 + yyh1925.End() + if yyc1925 { + *v = yyv1925 } } @@ -23129,10 +23613,10 @@ func (x codecSelfer1234) encSliceHostPortRange(v []HostPortRange, e *codec1978.E z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r r.EncodeArrayStart(len(v)) - for _, yyv1866 := range v { + for _, yyv1929 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy1867 := &yyv1866 - yy1867.CodecEncodeSelf(e) + yy1930 := &yyv1929 + yy1930.CodecEncodeSelf(e) } z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -23142,83 +23626,83 @@ func (x codecSelfer1234) decSliceHostPortRange(v *[]HostPortRange, d *codec1978. z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yyv1868 := *v - yyh1868, yyl1868 := z.DecSliceHelperStart() - var yyc1868 bool - if yyl1868 == 0 { - if yyv1868 == nil { - yyv1868 = []HostPortRange{} - yyc1868 = true - } else if len(yyv1868) != 0 { - yyv1868 = yyv1868[:0] - yyc1868 = true + yyv1931 := *v + yyh1931, yyl1931 := z.DecSliceHelperStart() + var yyc1931 bool + if yyl1931 == 0 { + if yyv1931 == nil { + yyv1931 = []HostPortRange{} + yyc1931 = true + } else if len(yyv1931) != 0 { + yyv1931 = yyv1931[:0] + yyc1931 = true } - } else if yyl1868 > 0 { - var yyrr1868, yyrl1868 int - var yyrt1868 bool - if yyl1868 > cap(yyv1868) { + } else if yyl1931 > 0 { + var yyrr1931, yyrl1931 int + var yyrt1931 bool + if yyl1931 > cap(yyv1931) { - yyrg1868 := len(yyv1868) > 0 - yyv21868 := yyv1868 - yyrl1868, yyrt1868 = z.DecInferLen(yyl1868, z.DecBasicHandle().MaxInitLen, 8) - if yyrt1868 { - if yyrl1868 <= cap(yyv1868) { - yyv1868 = yyv1868[:yyrl1868] + yyrg1931 := len(yyv1931) > 0 + yyv21931 := yyv1931 + yyrl1931, yyrt1931 = z.DecInferLen(yyl1931, z.DecBasicHandle().MaxInitLen, 8) + if yyrt1931 { + if yyrl1931 <= cap(yyv1931) { + yyv1931 = yyv1931[:yyrl1931] } else { - yyv1868 = make([]HostPortRange, yyrl1868) + yyv1931 = make([]HostPortRange, yyrl1931) } } else { - yyv1868 = make([]HostPortRange, yyrl1868) + yyv1931 = make([]HostPortRange, yyrl1931) } - yyc1868 = true - yyrr1868 = len(yyv1868) - if yyrg1868 { - copy(yyv1868, yyv21868) + yyc1931 = true + yyrr1931 = len(yyv1931) + if yyrg1931 { + copy(yyv1931, yyv21931) } - } else if yyl1868 != len(yyv1868) { - yyv1868 = yyv1868[:yyl1868] - yyc1868 = true + } else if yyl1931 != len(yyv1931) { + yyv1931 = yyv1931[:yyl1931] + yyc1931 = true } - yyj1868 := 0 - for ; yyj1868 < yyrr1868; yyj1868++ { - yyh1868.ElemContainerState(yyj1868) + yyj1931 := 0 + for ; yyj1931 < yyrr1931; yyj1931++ { + yyh1931.ElemContainerState(yyj1931) if r.TryDecodeAsNil() { - yyv1868[yyj1868] = HostPortRange{} + yyv1931[yyj1931] = HostPortRange{} } else { - yyv1869 := &yyv1868[yyj1868] - yyv1869.CodecDecodeSelf(d) + yyv1932 := &yyv1931[yyj1931] + yyv1932.CodecDecodeSelf(d) } } - if yyrt1868 { - for ; yyj1868 < yyl1868; yyj1868++ { - yyv1868 = append(yyv1868, HostPortRange{}) - yyh1868.ElemContainerState(yyj1868) + if yyrt1931 { + for ; yyj1931 < yyl1931; yyj1931++ { + yyv1931 = append(yyv1931, HostPortRange{}) + yyh1931.ElemContainerState(yyj1931) if r.TryDecodeAsNil() { - yyv1868[yyj1868] = HostPortRange{} + yyv1931[yyj1931] = HostPortRange{} } else { - yyv1870 := &yyv1868[yyj1868] - yyv1870.CodecDecodeSelf(d) + yyv1933 := &yyv1931[yyj1931] + yyv1933.CodecDecodeSelf(d) } } } } else { - yyj1868 := 0 - for ; !r.CheckBreak(); yyj1868++ { + yyj1931 := 0 + for ; !r.CheckBreak(); yyj1931++ { - if yyj1868 >= len(yyv1868) { - yyv1868 = append(yyv1868, HostPortRange{}) // var yyz1868 HostPortRange - yyc1868 = true + if yyj1931 >= len(yyv1931) { + yyv1931 = append(yyv1931, HostPortRange{}) // var yyz1931 HostPortRange + yyc1931 = true } - yyh1868.ElemContainerState(yyj1868) - if yyj1868 < len(yyv1868) { + yyh1931.ElemContainerState(yyj1931) + if yyj1931 < len(yyv1931) { if r.TryDecodeAsNil() { - yyv1868[yyj1868] = HostPortRange{} + yyv1931[yyj1931] = HostPortRange{} } else { - yyv1871 := &yyv1868[yyj1868] - yyv1871.CodecDecodeSelf(d) + yyv1934 := &yyv1931[yyj1931] + yyv1934.CodecDecodeSelf(d) } } else { @@ -23226,17 +23710,17 @@ func (x codecSelfer1234) decSliceHostPortRange(v *[]HostPortRange, d *codec1978. } } - if yyj1868 < len(yyv1868) { - yyv1868 = yyv1868[:yyj1868] - yyc1868 = true - } else if yyj1868 == 0 && yyv1868 == nil { - yyv1868 = []HostPortRange{} - yyc1868 = true + if yyj1931 < len(yyv1931) { + yyv1931 = yyv1931[:yyj1931] + yyc1931 = true + } else if yyj1931 == 0 && yyv1931 == nil { + yyv1931 = []HostPortRange{} + yyc1931 = true } } - yyh1868.End() - if yyc1868 { - *v = yyv1868 + yyh1931.End() + if yyc1931 { + *v = yyv1931 } } @@ -23245,10 +23729,10 @@ func (x codecSelfer1234) encSliceIDRange(v []IDRange, e *codec1978.Encoder) { z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r r.EncodeArrayStart(len(v)) - for _, yyv1872 := range v { + for _, yyv1935 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy1873 := &yyv1872 - yy1873.CodecEncodeSelf(e) + yy1936 := &yyv1935 + yy1936.CodecEncodeSelf(e) } z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -23258,83 +23742,83 @@ func (x codecSelfer1234) decSliceIDRange(v *[]IDRange, d *codec1978.Decoder) { z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yyv1874 := *v - yyh1874, yyl1874 := z.DecSliceHelperStart() - var yyc1874 bool - if yyl1874 == 0 { - if yyv1874 == nil { - yyv1874 = []IDRange{} - yyc1874 = true - } else if len(yyv1874) != 0 { - yyv1874 = yyv1874[:0] - yyc1874 = true + yyv1937 := *v + yyh1937, yyl1937 := z.DecSliceHelperStart() + var yyc1937 bool + if yyl1937 == 0 { + if yyv1937 == nil { + yyv1937 = []IDRange{} + yyc1937 = true + } else if len(yyv1937) != 0 { + yyv1937 = yyv1937[:0] + yyc1937 = true } - } else if yyl1874 > 0 { - var yyrr1874, yyrl1874 int - var yyrt1874 bool - if yyl1874 > cap(yyv1874) { + } else if yyl1937 > 0 { + var yyrr1937, yyrl1937 int + var yyrt1937 bool + if yyl1937 > cap(yyv1937) { - yyrg1874 := len(yyv1874) > 0 - yyv21874 := yyv1874 - yyrl1874, yyrt1874 = z.DecInferLen(yyl1874, z.DecBasicHandle().MaxInitLen, 16) - if yyrt1874 { - if yyrl1874 <= cap(yyv1874) { - yyv1874 = yyv1874[:yyrl1874] + yyrg1937 := len(yyv1937) > 0 + yyv21937 := yyv1937 + yyrl1937, yyrt1937 = z.DecInferLen(yyl1937, z.DecBasicHandle().MaxInitLen, 16) + if yyrt1937 { + if yyrl1937 <= cap(yyv1937) { + yyv1937 = yyv1937[:yyrl1937] } else { - yyv1874 = make([]IDRange, yyrl1874) + yyv1937 = make([]IDRange, yyrl1937) } } else { - yyv1874 = make([]IDRange, yyrl1874) + yyv1937 = make([]IDRange, yyrl1937) } - yyc1874 = true - yyrr1874 = len(yyv1874) - if yyrg1874 { - copy(yyv1874, yyv21874) + yyc1937 = true + yyrr1937 = len(yyv1937) + if yyrg1937 { + copy(yyv1937, yyv21937) } - } else if yyl1874 != len(yyv1874) { - yyv1874 = yyv1874[:yyl1874] - yyc1874 = true + } else if yyl1937 != len(yyv1937) { + yyv1937 = yyv1937[:yyl1937] + yyc1937 = true } - yyj1874 := 0 - for ; yyj1874 < yyrr1874; yyj1874++ { - yyh1874.ElemContainerState(yyj1874) + yyj1937 := 0 + for ; yyj1937 < yyrr1937; yyj1937++ { + yyh1937.ElemContainerState(yyj1937) if r.TryDecodeAsNil() { - yyv1874[yyj1874] = IDRange{} + yyv1937[yyj1937] = IDRange{} } else { - yyv1875 := &yyv1874[yyj1874] - yyv1875.CodecDecodeSelf(d) + yyv1938 := &yyv1937[yyj1937] + yyv1938.CodecDecodeSelf(d) } } - if yyrt1874 { - for ; yyj1874 < yyl1874; yyj1874++ { - yyv1874 = append(yyv1874, IDRange{}) - yyh1874.ElemContainerState(yyj1874) + if yyrt1937 { + for ; yyj1937 < yyl1937; yyj1937++ { + yyv1937 = append(yyv1937, IDRange{}) + yyh1937.ElemContainerState(yyj1937) if r.TryDecodeAsNil() { - yyv1874[yyj1874] = IDRange{} + yyv1937[yyj1937] = IDRange{} } else { - yyv1876 := &yyv1874[yyj1874] - yyv1876.CodecDecodeSelf(d) + yyv1939 := &yyv1937[yyj1937] + yyv1939.CodecDecodeSelf(d) } } } } else { - yyj1874 := 0 - for ; !r.CheckBreak(); yyj1874++ { + yyj1937 := 0 + for ; !r.CheckBreak(); yyj1937++ { - if yyj1874 >= len(yyv1874) { - yyv1874 = append(yyv1874, IDRange{}) // var yyz1874 IDRange - yyc1874 = true + if yyj1937 >= len(yyv1937) { + yyv1937 = append(yyv1937, IDRange{}) // var yyz1937 IDRange + yyc1937 = true } - yyh1874.ElemContainerState(yyj1874) - if yyj1874 < len(yyv1874) { + yyh1937.ElemContainerState(yyj1937) + if yyj1937 < len(yyv1937) { if r.TryDecodeAsNil() { - yyv1874[yyj1874] = IDRange{} + yyv1937[yyj1937] = IDRange{} } else { - yyv1877 := &yyv1874[yyj1874] - yyv1877.CodecDecodeSelf(d) + yyv1940 := &yyv1937[yyj1937] + yyv1940.CodecDecodeSelf(d) } } else { @@ -23342,17 +23826,17 @@ func (x codecSelfer1234) decSliceIDRange(v *[]IDRange, d *codec1978.Decoder) { } } - if yyj1874 < len(yyv1874) { - yyv1874 = yyv1874[:yyj1874] - yyc1874 = true - } else if yyj1874 == 0 && yyv1874 == nil { - yyv1874 = []IDRange{} - yyc1874 = true + if yyj1937 < len(yyv1937) { + yyv1937 = yyv1937[:yyj1937] + yyc1937 = true + } else if yyj1937 == 0 && yyv1937 == nil { + yyv1937 = []IDRange{} + yyc1937 = true } } - yyh1874.End() - if yyc1874 { - *v = yyv1874 + yyh1937.End() + if yyc1937 { + *v = yyv1937 } } @@ -23361,10 +23845,10 @@ func (x codecSelfer1234) encSlicePodSecurityPolicy(v []PodSecurityPolicy, e *cod z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r r.EncodeArrayStart(len(v)) - for _, yyv1878 := range v { + for _, yyv1941 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy1879 := &yyv1878 - yy1879.CodecEncodeSelf(e) + yy1942 := &yyv1941 + yy1942.CodecEncodeSelf(e) } z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -23374,83 +23858,83 @@ func (x codecSelfer1234) decSlicePodSecurityPolicy(v *[]PodSecurityPolicy, d *co z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yyv1880 := *v - yyh1880, yyl1880 := z.DecSliceHelperStart() - var yyc1880 bool - if yyl1880 == 0 { - if yyv1880 == nil { - yyv1880 = []PodSecurityPolicy{} - yyc1880 = true - } else if len(yyv1880) != 0 { - yyv1880 = yyv1880[:0] - yyc1880 = true + yyv1943 := *v + yyh1943, yyl1943 := z.DecSliceHelperStart() + var yyc1943 bool + if yyl1943 == 0 { + if yyv1943 == nil { + yyv1943 = []PodSecurityPolicy{} + yyc1943 = true + } else if len(yyv1943) != 0 { + yyv1943 = yyv1943[:0] + yyc1943 = true } - } else if yyl1880 > 0 { - var yyrr1880, yyrl1880 int - var yyrt1880 bool - if yyl1880 > cap(yyv1880) { + } else if yyl1943 > 0 { + var yyrr1943, yyrl1943 int + var yyrt1943 bool + if yyl1943 > cap(yyv1943) { - yyrg1880 := len(yyv1880) > 0 - yyv21880 := yyv1880 - yyrl1880, yyrt1880 = z.DecInferLen(yyl1880, z.DecBasicHandle().MaxInitLen, 552) - if yyrt1880 { - if yyrl1880 <= cap(yyv1880) { - yyv1880 = yyv1880[:yyrl1880] + yyrg1943 := len(yyv1943) > 0 + yyv21943 := yyv1943 + yyrl1943, yyrt1943 = z.DecInferLen(yyl1943, z.DecBasicHandle().MaxInitLen, 552) + if yyrt1943 { + if yyrl1943 <= cap(yyv1943) { + yyv1943 = yyv1943[:yyrl1943] } else { - yyv1880 = make([]PodSecurityPolicy, yyrl1880) + yyv1943 = make([]PodSecurityPolicy, yyrl1943) } } else { - yyv1880 = make([]PodSecurityPolicy, yyrl1880) + yyv1943 = make([]PodSecurityPolicy, yyrl1943) } - yyc1880 = true - yyrr1880 = len(yyv1880) - if yyrg1880 { - copy(yyv1880, yyv21880) + yyc1943 = true + yyrr1943 = len(yyv1943) + if yyrg1943 { + copy(yyv1943, yyv21943) } - } else if yyl1880 != len(yyv1880) { - yyv1880 = yyv1880[:yyl1880] - yyc1880 = true + } else if yyl1943 != len(yyv1943) { + yyv1943 = yyv1943[:yyl1943] + yyc1943 = true } - yyj1880 := 0 - for ; yyj1880 < yyrr1880; yyj1880++ { - yyh1880.ElemContainerState(yyj1880) + yyj1943 := 0 + for ; yyj1943 < yyrr1943; yyj1943++ { + yyh1943.ElemContainerState(yyj1943) if r.TryDecodeAsNil() { - yyv1880[yyj1880] = PodSecurityPolicy{} + yyv1943[yyj1943] = PodSecurityPolicy{} } else { - yyv1881 := &yyv1880[yyj1880] - yyv1881.CodecDecodeSelf(d) + yyv1944 := &yyv1943[yyj1943] + yyv1944.CodecDecodeSelf(d) } } - if yyrt1880 { - for ; yyj1880 < yyl1880; yyj1880++ { - yyv1880 = append(yyv1880, PodSecurityPolicy{}) - yyh1880.ElemContainerState(yyj1880) + if yyrt1943 { + for ; yyj1943 < yyl1943; yyj1943++ { + yyv1943 = append(yyv1943, PodSecurityPolicy{}) + yyh1943.ElemContainerState(yyj1943) if r.TryDecodeAsNil() { - yyv1880[yyj1880] = PodSecurityPolicy{} + yyv1943[yyj1943] = PodSecurityPolicy{} } else { - yyv1882 := &yyv1880[yyj1880] - yyv1882.CodecDecodeSelf(d) + yyv1945 := &yyv1943[yyj1943] + yyv1945.CodecDecodeSelf(d) } } } } else { - yyj1880 := 0 - for ; !r.CheckBreak(); yyj1880++ { + yyj1943 := 0 + for ; !r.CheckBreak(); yyj1943++ { - if yyj1880 >= len(yyv1880) { - yyv1880 = append(yyv1880, PodSecurityPolicy{}) // var yyz1880 PodSecurityPolicy - yyc1880 = true + if yyj1943 >= len(yyv1943) { + yyv1943 = append(yyv1943, PodSecurityPolicy{}) // var yyz1943 PodSecurityPolicy + yyc1943 = true } - yyh1880.ElemContainerState(yyj1880) - if yyj1880 < len(yyv1880) { + yyh1943.ElemContainerState(yyj1943) + if yyj1943 < len(yyv1943) { if r.TryDecodeAsNil() { - yyv1880[yyj1880] = PodSecurityPolicy{} + yyv1943[yyj1943] = PodSecurityPolicy{} } else { - yyv1883 := &yyv1880[yyj1880] - yyv1883.CodecDecodeSelf(d) + yyv1946 := &yyv1943[yyj1943] + yyv1946.CodecDecodeSelf(d) } } else { @@ -23458,17 +23942,17 @@ func (x codecSelfer1234) decSlicePodSecurityPolicy(v *[]PodSecurityPolicy, d *co } } - if yyj1880 < len(yyv1880) { - yyv1880 = yyv1880[:yyj1880] - yyc1880 = true - } else if yyj1880 == 0 && yyv1880 == nil { - yyv1880 = []PodSecurityPolicy{} - yyc1880 = true + if yyj1943 < len(yyv1943) { + yyv1943 = yyv1943[:yyj1943] + yyc1943 = true + } else if yyj1943 == 0 && yyv1943 == nil { + yyv1943 = []PodSecurityPolicy{} + yyc1943 = true } } - yyh1880.End() - if yyc1880 { - *v = yyv1880 + yyh1943.End() + if yyc1943 { + *v = yyv1943 } } @@ -23477,10 +23961,10 @@ func (x codecSelfer1234) encSliceNetworkPolicyIngressRule(v []NetworkPolicyIngre z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r r.EncodeArrayStart(len(v)) - for _, yyv1884 := range v { + for _, yyv1947 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy1885 := &yyv1884 - yy1885.CodecEncodeSelf(e) + yy1948 := &yyv1947 + yy1948.CodecEncodeSelf(e) } z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -23490,83 +23974,83 @@ func (x codecSelfer1234) decSliceNetworkPolicyIngressRule(v *[]NetworkPolicyIngr z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yyv1886 := *v - yyh1886, yyl1886 := z.DecSliceHelperStart() - var yyc1886 bool - if yyl1886 == 0 { - if yyv1886 == nil { - yyv1886 = []NetworkPolicyIngressRule{} - yyc1886 = true - } else if len(yyv1886) != 0 { - yyv1886 = yyv1886[:0] - yyc1886 = true + yyv1949 := *v + yyh1949, yyl1949 := z.DecSliceHelperStart() + var yyc1949 bool + if yyl1949 == 0 { + if yyv1949 == nil { + yyv1949 = []NetworkPolicyIngressRule{} + yyc1949 = true + } else if len(yyv1949) != 0 { + yyv1949 = yyv1949[:0] + yyc1949 = true } - } else if yyl1886 > 0 { - var yyrr1886, yyrl1886 int - var yyrt1886 bool - if yyl1886 > cap(yyv1886) { + } else if yyl1949 > 0 { + var yyrr1949, yyrl1949 int + var yyrt1949 bool + if yyl1949 > cap(yyv1949) { - yyrg1886 := len(yyv1886) > 0 - yyv21886 := yyv1886 - yyrl1886, yyrt1886 = z.DecInferLen(yyl1886, z.DecBasicHandle().MaxInitLen, 48) - if yyrt1886 { - if yyrl1886 <= cap(yyv1886) { - yyv1886 = yyv1886[:yyrl1886] + yyrg1949 := len(yyv1949) > 0 + yyv21949 := yyv1949 + yyrl1949, yyrt1949 = z.DecInferLen(yyl1949, z.DecBasicHandle().MaxInitLen, 48) + if yyrt1949 { + if yyrl1949 <= cap(yyv1949) { + yyv1949 = yyv1949[:yyrl1949] } else { - yyv1886 = make([]NetworkPolicyIngressRule, yyrl1886) + yyv1949 = make([]NetworkPolicyIngressRule, yyrl1949) } } else { - yyv1886 = make([]NetworkPolicyIngressRule, yyrl1886) + yyv1949 = make([]NetworkPolicyIngressRule, yyrl1949) } - yyc1886 = true - yyrr1886 = len(yyv1886) - if yyrg1886 { - copy(yyv1886, yyv21886) + yyc1949 = true + yyrr1949 = len(yyv1949) + if yyrg1949 { + copy(yyv1949, yyv21949) } - } else if yyl1886 != len(yyv1886) { - yyv1886 = yyv1886[:yyl1886] - yyc1886 = true + } else if yyl1949 != len(yyv1949) { + yyv1949 = yyv1949[:yyl1949] + yyc1949 = true } - yyj1886 := 0 - for ; yyj1886 < yyrr1886; yyj1886++ { - yyh1886.ElemContainerState(yyj1886) + yyj1949 := 0 + for ; yyj1949 < yyrr1949; yyj1949++ { + yyh1949.ElemContainerState(yyj1949) if r.TryDecodeAsNil() { - yyv1886[yyj1886] = NetworkPolicyIngressRule{} + yyv1949[yyj1949] = NetworkPolicyIngressRule{} } else { - yyv1887 := &yyv1886[yyj1886] - yyv1887.CodecDecodeSelf(d) + yyv1950 := &yyv1949[yyj1949] + yyv1950.CodecDecodeSelf(d) } } - if yyrt1886 { - for ; yyj1886 < yyl1886; yyj1886++ { - yyv1886 = append(yyv1886, NetworkPolicyIngressRule{}) - yyh1886.ElemContainerState(yyj1886) + if yyrt1949 { + for ; yyj1949 < yyl1949; yyj1949++ { + yyv1949 = append(yyv1949, NetworkPolicyIngressRule{}) + yyh1949.ElemContainerState(yyj1949) if r.TryDecodeAsNil() { - yyv1886[yyj1886] = NetworkPolicyIngressRule{} + yyv1949[yyj1949] = NetworkPolicyIngressRule{} } else { - yyv1888 := &yyv1886[yyj1886] - yyv1888.CodecDecodeSelf(d) + yyv1951 := &yyv1949[yyj1949] + yyv1951.CodecDecodeSelf(d) } } } } else { - yyj1886 := 0 - for ; !r.CheckBreak(); yyj1886++ { + yyj1949 := 0 + for ; !r.CheckBreak(); yyj1949++ { - if yyj1886 >= len(yyv1886) { - yyv1886 = append(yyv1886, NetworkPolicyIngressRule{}) // var yyz1886 NetworkPolicyIngressRule - yyc1886 = true + if yyj1949 >= len(yyv1949) { + yyv1949 = append(yyv1949, NetworkPolicyIngressRule{}) // var yyz1949 NetworkPolicyIngressRule + yyc1949 = true } - yyh1886.ElemContainerState(yyj1886) - if yyj1886 < len(yyv1886) { + yyh1949.ElemContainerState(yyj1949) + if yyj1949 < len(yyv1949) { if r.TryDecodeAsNil() { - yyv1886[yyj1886] = NetworkPolicyIngressRule{} + yyv1949[yyj1949] = NetworkPolicyIngressRule{} } else { - yyv1889 := &yyv1886[yyj1886] - yyv1889.CodecDecodeSelf(d) + yyv1952 := &yyv1949[yyj1949] + yyv1952.CodecDecodeSelf(d) } } else { @@ -23574,17 +24058,17 @@ func (x codecSelfer1234) decSliceNetworkPolicyIngressRule(v *[]NetworkPolicyIngr } } - if yyj1886 < len(yyv1886) { - yyv1886 = yyv1886[:yyj1886] - yyc1886 = true - } else if yyj1886 == 0 && yyv1886 == nil { - yyv1886 = []NetworkPolicyIngressRule{} - yyc1886 = true + if yyj1949 < len(yyv1949) { + yyv1949 = yyv1949[:yyj1949] + yyc1949 = true + } else if yyj1949 == 0 && yyv1949 == nil { + yyv1949 = []NetworkPolicyIngressRule{} + yyc1949 = true } } - yyh1886.End() - if yyc1886 { - *v = yyv1886 + yyh1949.End() + if yyc1949 { + *v = yyv1949 } } @@ -23593,10 +24077,10 @@ func (x codecSelfer1234) encSliceNetworkPolicyPort(v []NetworkPolicyPort, e *cod z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r r.EncodeArrayStart(len(v)) - for _, yyv1890 := range v { + for _, yyv1953 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy1891 := &yyv1890 - yy1891.CodecEncodeSelf(e) + yy1954 := &yyv1953 + yy1954.CodecEncodeSelf(e) } z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -23606,83 +24090,83 @@ func (x codecSelfer1234) decSliceNetworkPolicyPort(v *[]NetworkPolicyPort, d *co z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yyv1892 := *v - yyh1892, yyl1892 := z.DecSliceHelperStart() - var yyc1892 bool - if yyl1892 == 0 { - if yyv1892 == nil { - yyv1892 = []NetworkPolicyPort{} - yyc1892 = true - } else if len(yyv1892) != 0 { - yyv1892 = yyv1892[:0] - yyc1892 = true + yyv1955 := *v + yyh1955, yyl1955 := z.DecSliceHelperStart() + var yyc1955 bool + if yyl1955 == 0 { + if yyv1955 == nil { + yyv1955 = []NetworkPolicyPort{} + yyc1955 = true + } else if len(yyv1955) != 0 { + yyv1955 = yyv1955[:0] + yyc1955 = true } - } else if yyl1892 > 0 { - var yyrr1892, yyrl1892 int - var yyrt1892 bool - if yyl1892 > cap(yyv1892) { + } else if yyl1955 > 0 { + var yyrr1955, yyrl1955 int + var yyrt1955 bool + if yyl1955 > cap(yyv1955) { - yyrg1892 := len(yyv1892) > 0 - yyv21892 := yyv1892 - yyrl1892, yyrt1892 = z.DecInferLen(yyl1892, z.DecBasicHandle().MaxInitLen, 16) - if yyrt1892 { - if yyrl1892 <= cap(yyv1892) { - yyv1892 = yyv1892[:yyrl1892] + yyrg1955 := len(yyv1955) > 0 + yyv21955 := yyv1955 + yyrl1955, yyrt1955 = z.DecInferLen(yyl1955, z.DecBasicHandle().MaxInitLen, 16) + if yyrt1955 { + if yyrl1955 <= cap(yyv1955) { + yyv1955 = yyv1955[:yyrl1955] } else { - yyv1892 = make([]NetworkPolicyPort, yyrl1892) + yyv1955 = make([]NetworkPolicyPort, yyrl1955) } } else { - yyv1892 = make([]NetworkPolicyPort, yyrl1892) + yyv1955 = make([]NetworkPolicyPort, yyrl1955) } - yyc1892 = true - yyrr1892 = len(yyv1892) - if yyrg1892 { - copy(yyv1892, yyv21892) + yyc1955 = true + yyrr1955 = len(yyv1955) + if yyrg1955 { + copy(yyv1955, yyv21955) } - } else if yyl1892 != len(yyv1892) { - yyv1892 = yyv1892[:yyl1892] - yyc1892 = true + } else if yyl1955 != len(yyv1955) { + yyv1955 = yyv1955[:yyl1955] + yyc1955 = true } - yyj1892 := 0 - for ; yyj1892 < yyrr1892; yyj1892++ { - yyh1892.ElemContainerState(yyj1892) + yyj1955 := 0 + for ; yyj1955 < yyrr1955; yyj1955++ { + yyh1955.ElemContainerState(yyj1955) if r.TryDecodeAsNil() { - yyv1892[yyj1892] = NetworkPolicyPort{} + yyv1955[yyj1955] = NetworkPolicyPort{} } else { - yyv1893 := &yyv1892[yyj1892] - yyv1893.CodecDecodeSelf(d) + yyv1956 := &yyv1955[yyj1955] + yyv1956.CodecDecodeSelf(d) } } - if yyrt1892 { - for ; yyj1892 < yyl1892; yyj1892++ { - yyv1892 = append(yyv1892, NetworkPolicyPort{}) - yyh1892.ElemContainerState(yyj1892) + if yyrt1955 { + for ; yyj1955 < yyl1955; yyj1955++ { + yyv1955 = append(yyv1955, NetworkPolicyPort{}) + yyh1955.ElemContainerState(yyj1955) if r.TryDecodeAsNil() { - yyv1892[yyj1892] = NetworkPolicyPort{} + yyv1955[yyj1955] = NetworkPolicyPort{} } else { - yyv1894 := &yyv1892[yyj1892] - yyv1894.CodecDecodeSelf(d) + yyv1957 := &yyv1955[yyj1955] + yyv1957.CodecDecodeSelf(d) } } } } else { - yyj1892 := 0 - for ; !r.CheckBreak(); yyj1892++ { + yyj1955 := 0 + for ; !r.CheckBreak(); yyj1955++ { - if yyj1892 >= len(yyv1892) { - yyv1892 = append(yyv1892, NetworkPolicyPort{}) // var yyz1892 NetworkPolicyPort - yyc1892 = true + if yyj1955 >= len(yyv1955) { + yyv1955 = append(yyv1955, NetworkPolicyPort{}) // var yyz1955 NetworkPolicyPort + yyc1955 = true } - yyh1892.ElemContainerState(yyj1892) - if yyj1892 < len(yyv1892) { + yyh1955.ElemContainerState(yyj1955) + if yyj1955 < len(yyv1955) { if r.TryDecodeAsNil() { - yyv1892[yyj1892] = NetworkPolicyPort{} + yyv1955[yyj1955] = NetworkPolicyPort{} } else { - yyv1895 := &yyv1892[yyj1892] - yyv1895.CodecDecodeSelf(d) + yyv1958 := &yyv1955[yyj1955] + yyv1958.CodecDecodeSelf(d) } } else { @@ -23690,17 +24174,17 @@ func (x codecSelfer1234) decSliceNetworkPolicyPort(v *[]NetworkPolicyPort, d *co } } - if yyj1892 < len(yyv1892) { - yyv1892 = yyv1892[:yyj1892] - yyc1892 = true - } else if yyj1892 == 0 && yyv1892 == nil { - yyv1892 = []NetworkPolicyPort{} - yyc1892 = true + if yyj1955 < len(yyv1955) { + yyv1955 = yyv1955[:yyj1955] + yyc1955 = true + } else if yyj1955 == 0 && yyv1955 == nil { + yyv1955 = []NetworkPolicyPort{} + yyc1955 = true } } - yyh1892.End() - if yyc1892 { - *v = yyv1892 + yyh1955.End() + if yyc1955 { + *v = yyv1955 } } @@ -23709,10 +24193,10 @@ func (x codecSelfer1234) encSliceNetworkPolicyPeer(v []NetworkPolicyPeer, e *cod z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r r.EncodeArrayStart(len(v)) - for _, yyv1896 := range v { + for _, yyv1959 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy1897 := &yyv1896 - yy1897.CodecEncodeSelf(e) + yy1960 := &yyv1959 + yy1960.CodecEncodeSelf(e) } z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -23722,83 +24206,83 @@ func (x codecSelfer1234) decSliceNetworkPolicyPeer(v *[]NetworkPolicyPeer, d *co z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yyv1898 := *v - yyh1898, yyl1898 := z.DecSliceHelperStart() - var yyc1898 bool - if yyl1898 == 0 { - if yyv1898 == nil { - yyv1898 = []NetworkPolicyPeer{} - yyc1898 = true - } else if len(yyv1898) != 0 { - yyv1898 = yyv1898[:0] - yyc1898 = true + yyv1961 := *v + yyh1961, yyl1961 := z.DecSliceHelperStart() + var yyc1961 bool + if yyl1961 == 0 { + if yyv1961 == nil { + yyv1961 = []NetworkPolicyPeer{} + yyc1961 = true + } else if len(yyv1961) != 0 { + yyv1961 = yyv1961[:0] + yyc1961 = true } - } else if yyl1898 > 0 { - var yyrr1898, yyrl1898 int - var yyrt1898 bool - if yyl1898 > cap(yyv1898) { + } else if yyl1961 > 0 { + var yyrr1961, yyrl1961 int + var yyrt1961 bool + if yyl1961 > cap(yyv1961) { - yyrg1898 := len(yyv1898) > 0 - yyv21898 := yyv1898 - yyrl1898, yyrt1898 = z.DecInferLen(yyl1898, z.DecBasicHandle().MaxInitLen, 16) - if yyrt1898 { - if yyrl1898 <= cap(yyv1898) { - yyv1898 = yyv1898[:yyrl1898] + yyrg1961 := len(yyv1961) > 0 + yyv21961 := yyv1961 + yyrl1961, yyrt1961 = z.DecInferLen(yyl1961, z.DecBasicHandle().MaxInitLen, 16) + if yyrt1961 { + if yyrl1961 <= cap(yyv1961) { + yyv1961 = yyv1961[:yyrl1961] } else { - yyv1898 = make([]NetworkPolicyPeer, yyrl1898) + yyv1961 = make([]NetworkPolicyPeer, yyrl1961) } } else { - yyv1898 = make([]NetworkPolicyPeer, yyrl1898) + yyv1961 = make([]NetworkPolicyPeer, yyrl1961) } - yyc1898 = true - yyrr1898 = len(yyv1898) - if yyrg1898 { - copy(yyv1898, yyv21898) + yyc1961 = true + yyrr1961 = len(yyv1961) + if yyrg1961 { + copy(yyv1961, yyv21961) } - } else if yyl1898 != len(yyv1898) { - yyv1898 = yyv1898[:yyl1898] - yyc1898 = true + } else if yyl1961 != len(yyv1961) { + yyv1961 = yyv1961[:yyl1961] + yyc1961 = true } - yyj1898 := 0 - for ; yyj1898 < yyrr1898; yyj1898++ { - yyh1898.ElemContainerState(yyj1898) + yyj1961 := 0 + for ; yyj1961 < yyrr1961; yyj1961++ { + yyh1961.ElemContainerState(yyj1961) if r.TryDecodeAsNil() { - yyv1898[yyj1898] = NetworkPolicyPeer{} + yyv1961[yyj1961] = NetworkPolicyPeer{} } else { - yyv1899 := &yyv1898[yyj1898] - yyv1899.CodecDecodeSelf(d) + yyv1962 := &yyv1961[yyj1961] + yyv1962.CodecDecodeSelf(d) } } - if yyrt1898 { - for ; yyj1898 < yyl1898; yyj1898++ { - yyv1898 = append(yyv1898, NetworkPolicyPeer{}) - yyh1898.ElemContainerState(yyj1898) + if yyrt1961 { + for ; yyj1961 < yyl1961; yyj1961++ { + yyv1961 = append(yyv1961, NetworkPolicyPeer{}) + yyh1961.ElemContainerState(yyj1961) if r.TryDecodeAsNil() { - yyv1898[yyj1898] = NetworkPolicyPeer{} + yyv1961[yyj1961] = NetworkPolicyPeer{} } else { - yyv1900 := &yyv1898[yyj1898] - yyv1900.CodecDecodeSelf(d) + yyv1963 := &yyv1961[yyj1961] + yyv1963.CodecDecodeSelf(d) } } } } else { - yyj1898 := 0 - for ; !r.CheckBreak(); yyj1898++ { + yyj1961 := 0 + for ; !r.CheckBreak(); yyj1961++ { - if yyj1898 >= len(yyv1898) { - yyv1898 = append(yyv1898, NetworkPolicyPeer{}) // var yyz1898 NetworkPolicyPeer - yyc1898 = true + if yyj1961 >= len(yyv1961) { + yyv1961 = append(yyv1961, NetworkPolicyPeer{}) // var yyz1961 NetworkPolicyPeer + yyc1961 = true } - yyh1898.ElemContainerState(yyj1898) - if yyj1898 < len(yyv1898) { + yyh1961.ElemContainerState(yyj1961) + if yyj1961 < len(yyv1961) { if r.TryDecodeAsNil() { - yyv1898[yyj1898] = NetworkPolicyPeer{} + yyv1961[yyj1961] = NetworkPolicyPeer{} } else { - yyv1901 := &yyv1898[yyj1898] - yyv1901.CodecDecodeSelf(d) + yyv1964 := &yyv1961[yyj1961] + yyv1964.CodecDecodeSelf(d) } } else { @@ -23806,17 +24290,17 @@ func (x codecSelfer1234) decSliceNetworkPolicyPeer(v *[]NetworkPolicyPeer, d *co } } - if yyj1898 < len(yyv1898) { - yyv1898 = yyv1898[:yyj1898] - yyc1898 = true - } else if yyj1898 == 0 && yyv1898 == nil { - yyv1898 = []NetworkPolicyPeer{} - yyc1898 = true + if yyj1961 < len(yyv1961) { + yyv1961 = yyv1961[:yyj1961] + yyc1961 = true + } else if yyj1961 == 0 && yyv1961 == nil { + yyv1961 = []NetworkPolicyPeer{} + yyc1961 = true } } - yyh1898.End() - if yyc1898 { - *v = yyv1898 + yyh1961.End() + if yyc1961 { + *v = yyv1961 } } @@ -23825,10 +24309,10 @@ func (x codecSelfer1234) encSliceNetworkPolicy(v []NetworkPolicy, e *codec1978.E z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r r.EncodeArrayStart(len(v)) - for _, yyv1902 := range v { + for _, yyv1965 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy1903 := &yyv1902 - yy1903.CodecEncodeSelf(e) + yy1966 := &yyv1965 + yy1966.CodecEncodeSelf(e) } z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -23838,83 +24322,83 @@ func (x codecSelfer1234) decSliceNetworkPolicy(v *[]NetworkPolicy, d *codec1978. z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yyv1904 := *v - yyh1904, yyl1904 := z.DecSliceHelperStart() - var yyc1904 bool - if yyl1904 == 0 { - if yyv1904 == nil { - yyv1904 = []NetworkPolicy{} - yyc1904 = true - } else if len(yyv1904) != 0 { - yyv1904 = yyv1904[:0] - yyc1904 = true + yyv1967 := *v + yyh1967, yyl1967 := z.DecSliceHelperStart() + var yyc1967 bool + if yyl1967 == 0 { + if yyv1967 == nil { + yyv1967 = []NetworkPolicy{} + yyc1967 = true + } else if len(yyv1967) != 0 { + yyv1967 = yyv1967[:0] + yyc1967 = true } - } else if yyl1904 > 0 { - var yyrr1904, yyrl1904 int - var yyrt1904 bool - if yyl1904 > cap(yyv1904) { + } else if yyl1967 > 0 { + var yyrr1967, yyrl1967 int + var yyrt1967 bool + if yyl1967 > cap(yyv1967) { - yyrg1904 := len(yyv1904) > 0 - yyv21904 := yyv1904 - yyrl1904, yyrt1904 = z.DecInferLen(yyl1904, z.DecBasicHandle().MaxInitLen, 312) - if yyrt1904 { - if yyrl1904 <= cap(yyv1904) { - yyv1904 = yyv1904[:yyrl1904] + yyrg1967 := len(yyv1967) > 0 + yyv21967 := yyv1967 + yyrl1967, yyrt1967 = z.DecInferLen(yyl1967, z.DecBasicHandle().MaxInitLen, 312) + if yyrt1967 { + if yyrl1967 <= cap(yyv1967) { + yyv1967 = yyv1967[:yyrl1967] } else { - yyv1904 = make([]NetworkPolicy, yyrl1904) + yyv1967 = make([]NetworkPolicy, yyrl1967) } } else { - yyv1904 = make([]NetworkPolicy, yyrl1904) + yyv1967 = make([]NetworkPolicy, yyrl1967) } - yyc1904 = true - yyrr1904 = len(yyv1904) - if yyrg1904 { - copy(yyv1904, yyv21904) + yyc1967 = true + yyrr1967 = len(yyv1967) + if yyrg1967 { + copy(yyv1967, yyv21967) } - } else if yyl1904 != len(yyv1904) { - yyv1904 = yyv1904[:yyl1904] - yyc1904 = true + } else if yyl1967 != len(yyv1967) { + yyv1967 = yyv1967[:yyl1967] + yyc1967 = true } - yyj1904 := 0 - for ; yyj1904 < yyrr1904; yyj1904++ { - yyh1904.ElemContainerState(yyj1904) + yyj1967 := 0 + for ; yyj1967 < yyrr1967; yyj1967++ { + yyh1967.ElemContainerState(yyj1967) if r.TryDecodeAsNil() { - yyv1904[yyj1904] = NetworkPolicy{} + yyv1967[yyj1967] = NetworkPolicy{} } else { - yyv1905 := &yyv1904[yyj1904] - yyv1905.CodecDecodeSelf(d) + yyv1968 := &yyv1967[yyj1967] + yyv1968.CodecDecodeSelf(d) } } - if yyrt1904 { - for ; yyj1904 < yyl1904; yyj1904++ { - yyv1904 = append(yyv1904, NetworkPolicy{}) - yyh1904.ElemContainerState(yyj1904) + if yyrt1967 { + for ; yyj1967 < yyl1967; yyj1967++ { + yyv1967 = append(yyv1967, NetworkPolicy{}) + yyh1967.ElemContainerState(yyj1967) if r.TryDecodeAsNil() { - yyv1904[yyj1904] = NetworkPolicy{} + yyv1967[yyj1967] = NetworkPolicy{} } else { - yyv1906 := &yyv1904[yyj1904] - yyv1906.CodecDecodeSelf(d) + yyv1969 := &yyv1967[yyj1967] + yyv1969.CodecDecodeSelf(d) } } } } else { - yyj1904 := 0 - for ; !r.CheckBreak(); yyj1904++ { + yyj1967 := 0 + for ; !r.CheckBreak(); yyj1967++ { - if yyj1904 >= len(yyv1904) { - yyv1904 = append(yyv1904, NetworkPolicy{}) // var yyz1904 NetworkPolicy - yyc1904 = true + if yyj1967 >= len(yyv1967) { + yyv1967 = append(yyv1967, NetworkPolicy{}) // var yyz1967 NetworkPolicy + yyc1967 = true } - yyh1904.ElemContainerState(yyj1904) - if yyj1904 < len(yyv1904) { + yyh1967.ElemContainerState(yyj1967) + if yyj1967 < len(yyv1967) { if r.TryDecodeAsNil() { - yyv1904[yyj1904] = NetworkPolicy{} + yyv1967[yyj1967] = NetworkPolicy{} } else { - yyv1907 := &yyv1904[yyj1904] - yyv1907.CodecDecodeSelf(d) + yyv1970 := &yyv1967[yyj1967] + yyv1970.CodecDecodeSelf(d) } } else { @@ -23922,16 +24406,16 @@ func (x codecSelfer1234) decSliceNetworkPolicy(v *[]NetworkPolicy, d *codec1978. } } - if yyj1904 < len(yyv1904) { - yyv1904 = yyv1904[:yyj1904] - yyc1904 = true - } else if yyj1904 == 0 && yyv1904 == nil { - yyv1904 = []NetworkPolicy{} - yyc1904 = true + if yyj1967 < len(yyv1967) { + yyv1967 = yyv1967[:yyj1967] + yyc1967 = true + } else if yyj1967 == 0 && yyv1967 == nil { + yyv1967 = []NetworkPolicy{} + yyc1967 = true } } - yyh1904.End() - if yyc1904 { - *v = yyv1904 + yyh1967.End() + if yyc1967 { + *v = yyv1967 } } diff --git a/vendor/k8s.io/client-go/1.5/pkg/apis/extensions/v1beta1/types.go b/vendor/k8s.io/client-go/pkg/apis/extensions/v1beta1/types.go similarity index 84% rename from vendor/k8s.io/client-go/1.5/pkg/apis/extensions/v1beta1/types.go rename to vendor/k8s.io/client-go/pkg/apis/extensions/v1beta1/types.go index 1b916ecaf..0f7b44ef7 100644 --- a/vendor/k8s.io/client-go/1.5/pkg/apis/extensions/v1beta1/types.go +++ b/vendor/k8s.io/client-go/pkg/apis/extensions/v1beta1/types.go @@ -17,15 +17,16 @@ limitations under the License. package v1beta1 import ( - "k8s.io/client-go/1.5/pkg/api/resource" - "k8s.io/client-go/1.5/pkg/api/unversioned" - "k8s.io/client-go/1.5/pkg/api/v1" - "k8s.io/client-go/1.5/pkg/util/intstr" + "k8s.io/client-go/pkg/api/resource" + "k8s.io/client-go/pkg/api/unversioned" + "k8s.io/client-go/pkg/api/v1" + "k8s.io/client-go/pkg/util/intstr" ) // describes the attributes of a scale subresource type ScaleSpec struct { // desired number of instances for the scaled object. + // +optional Replicas int32 `json:"replicas,omitempty" protobuf:"varint,1,opt,name=replicas"` } @@ -34,7 +35,8 @@ type ScaleStatus struct { // actual number of observed instances of the scaled object. Replicas int32 `json:"replicas" protobuf:"varint,1,opt,name=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 + // label query over pods that should match the replicas count. More info: http://kubernetes.io/docs/user-guide/labels#label-selectors + // +optional Selector map[string]string `json:"selector,omitempty" protobuf:"bytes,2,rep,name=selector"` // label selector for pods that should match the replicas count. This is a serializated @@ -42,7 +44,8 @@ type ScaleStatus struct { // avoid introspection in the clients. The string will be in the same format as the // query-param syntax. If the target type only supports map-based selectors, both this // field and map-based selector field are populated. - // More info: http://releases.k8s.io/HEAD/docs/user-guide/labels.md#label-selectors + // More info: http://kubernetes.io/docs/user-guide/labels#label-selectors + // +optional TargetSelector string `json:"targetSelector,omitempty" protobuf:"bytes,3,opt,name=targetSelector"` } @@ -53,12 +56,15 @@ type ScaleStatus struct { type Scale struct { unversioned.TypeMeta `json:",inline"` // Standard object metadata; More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata. + // +optional v1.ObjectMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"` // defines the behavior of the scale. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status. + // +optional Spec ScaleSpec `json:"spec,omitempty" protobuf:"bytes,2,opt,name=spec"` // current status of the scale. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status. Read-only. + // +optional Status ScaleStatus `json:"status,omitempty" protobuf:"bytes,3,opt,name=status"` } @@ -70,12 +76,16 @@ type ReplicationControllerDummy struct { // SubresourceReference contains enough information to let you inspect or modify the referred subresource. type SubresourceReference struct { // Kind of the referent; More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds + // +optional Kind string `json:"kind,omitempty" protobuf:"bytes,1,opt,name=kind"` - // Name of the referent; More info: http://releases.k8s.io/HEAD/docs/user-guide/identifiers.md#names + // Name of the referent; More info: http://kubernetes.io/docs/user-guide/identifiers#names + // +optional Name string `json:"name,omitempty" protobuf:"bytes,2,opt,name=name"` // API version of the referent + // +optional APIVersion string `json:"apiVersion,omitempty" protobuf:"bytes,3,opt,name=apiVersion"` // Subresource name of the referent + // +optional Subresource string `json:"subresource,omitempty" protobuf:"bytes,4,opt,name=subresource"` } @@ -114,21 +124,25 @@ type HorizontalPodAutoscalerSpec struct { // and will set the desired number of pods by modifying its spec. ScaleRef SubresourceReference `json:"scaleRef" protobuf:"bytes,1,opt,name=scaleRef"` // lower limit for the number of pods that can be set by the autoscaler, default 1. + // +optional MinReplicas *int32 `json:"minReplicas,omitempty" protobuf:"varint,2,opt,name=minReplicas"` // upper limit for the number of pods that can be set by the autoscaler; cannot be smaller than MinReplicas. MaxReplicas int32 `json:"maxReplicas" protobuf:"varint,3,opt,name=maxReplicas"` // target average CPU utilization (represented as a percentage of requested CPU) over all the pods; // if not specified it defaults to the target CPU utilization at 80% of the requested resources. + // +optional CPUUtilization *CPUTargetUtilization `json:"cpuUtilization,omitempty" protobuf:"bytes,4,opt,name=cpuUtilization"` } // current status of a horizontal pod autoscaler type HorizontalPodAutoscalerStatus struct { // most recent generation observed by this autoscaler. + // +optional ObservedGeneration *int64 `json:"observedGeneration,omitempty" protobuf:"varint,1,opt,name=observedGeneration"` // last time the HorizontalPodAutoscaler scaled the number of pods; // used by the autoscaler to control how often the number of pods is changed. + // +optional LastScaleTime *unversioned.Time `json:"lastScaleTime,omitempty" protobuf:"bytes,2,opt,name=lastScaleTime"` // current number of replicas of pods managed by this autoscaler. @@ -139,6 +153,7 @@ type HorizontalPodAutoscalerStatus struct { // 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. + // +optional CurrentCPUUtilizationPercentage *int32 `json:"currentCPUUtilizationPercentage,omitempty" protobuf:"varint,5,opt,name=currentCPUUtilizationPercentage"` } @@ -146,12 +161,15 @@ type HorizontalPodAutoscalerStatus struct { type HorizontalPodAutoscaler struct { unversioned.TypeMeta `json:",inline"` // Standard object metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata + // +optional v1.ObjectMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"` // behaviour of autoscaler. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status. + // +optional Spec HorizontalPodAutoscalerSpec `json:"spec,omitempty" protobuf:"bytes,2,opt,name=spec"` // current information about the autoscaler. + // +optional Status HorizontalPodAutoscalerStatus `json:"status,omitempty" protobuf:"bytes,3,opt,name=status"` } @@ -159,6 +177,7 @@ type HorizontalPodAutoscaler struct { type HorizontalPodAutoscalerList struct { unversioned.TypeMeta `json:",inline"` // Standard list metadata. + // +optional unversioned.ListMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"` // list of horizontal pod autoscaler objects. @@ -174,12 +193,15 @@ type ThirdPartyResource struct { unversioned.TypeMeta `json:",inline"` // Standard object metadata + // +optional v1.ObjectMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"` // Description is the description of this object. + // +optional Description string `json:"description,omitempty" protobuf:"bytes,2,opt,name=description"` // Versions are versions for this third party object + // +optional Versions []APIVersion `json:"versions,omitempty" protobuf:"bytes,3,rep,name=versions"` } @@ -188,6 +210,7 @@ type ThirdPartyResourceList struct { unversioned.TypeMeta `json:",inline"` // Standard list metadata. + // +optional unversioned.ListMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"` // Items is the list of ThirdPartyResources. @@ -197,6 +220,7 @@ type ThirdPartyResourceList struct { // An APIVersion represents a single concrete version of an object model. type APIVersion struct { // Name of this version (e.g. 'v1'). + // +optional Name string `json:"name,omitempty" protobuf:"bytes,1,opt,name=name"` } @@ -204,9 +228,11 @@ type APIVersion struct { type ThirdPartyResourceData struct { unversioned.TypeMeta `json:",inline"` // Standard object metadata. + // +optional v1.ObjectMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"` // Data is the raw JSON data for this data. + // +optional Data []byte `json:"data,omitempty" protobuf:"bytes,2,opt,name=data"` } @@ -216,12 +242,15 @@ type ThirdPartyResourceData struct { type Deployment struct { unversioned.TypeMeta `json:",inline"` // Standard object metadata. + // +optional v1.ObjectMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"` // Specification of the desired behavior of the Deployment. + // +optional Spec DeploymentSpec `json:"spec,omitempty" protobuf:"bytes,2,opt,name=spec"` // Most recently observed status of the Deployment. + // +optional Status DeploymentStatus `json:"status,omitempty" protobuf:"bytes,3,opt,name=status"` } @@ -229,32 +258,49 @@ type Deployment struct { type DeploymentSpec struct { // Number of desired pods. This is a pointer to distinguish between explicit // zero and not specified. Defaults to 1. + // +optional Replicas *int32 `json:"replicas,omitempty" protobuf:"varint,1,opt,name=replicas"` // Label selector for pods. Existing ReplicaSets whose pods are // selected by this will be the ones affected by this deployment. - Selector *LabelSelector `json:"selector,omitempty" protobuf:"bytes,2,opt,name=selector"` + // +optional + Selector *unversioned.LabelSelector `json:"selector,omitempty" protobuf:"bytes,2,opt,name=selector"` // Template describes the pods that will be created. Template v1.PodTemplateSpec `json:"template" protobuf:"bytes,3,opt,name=template"` // The deployment strategy to use to replace existing pods with new ones. + // +optional Strategy DeploymentStrategy `json:"strategy,omitempty" protobuf:"bytes,4,opt,name=strategy"` // 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) + // +optional MinReadySeconds int32 `json:"minReadySeconds,omitempty" protobuf:"varint,5,opt,name=minReadySeconds"` // The number of old ReplicaSets to retain to allow rollback. // This is a pointer to distinguish between explicit zero and not specified. + // +optional RevisionHistoryLimit *int32 `json:"revisionHistoryLimit,omitempty" protobuf:"varint,6,opt,name=revisionHistoryLimit"` // Indicates that the deployment is paused and will not be processed by the // deployment controller. + // +optional Paused bool `json:"paused,omitempty" protobuf:"varint,7,opt,name=paused"` + // The config this deployment is rolling back to. Will be cleared after rollback is done. + // +optional RollbackTo *RollbackConfig `json:"rollbackTo,omitempty" protobuf:"bytes,8,opt,name=rollbackTo"` + + // The maximum time in seconds for a deployment to make progress before it + // is considered to be failed. The deployment controller will continue to + // process failed deployments and a condition with a ProgressDeadlineExceeded + // reason will be surfaced in the deployment status. Once autoRollback is + // implemented, the deployment controller will automatically rollback failed + // deployments. Note that progress will not be estimated during the time a + // deployment is paused. This is not set by default. + ProgressDeadlineSeconds *int32 `json:"progressDeadlineSeconds,omitempty" protobuf:"varint,9,opt,name=progressDeadlineSeconds"` } // DeploymentRollback stores the information required to rollback a deployment. @@ -263,6 +309,7 @@ type DeploymentRollback struct { // Required: This must match the Name of a deployment. Name string `json:"name" protobuf:"bytes,1,opt,name=name"` // The annotations to be updated to a deployment + // +optional UpdatedAnnotations map[string]string `json:"updatedAnnotations,omitempty" protobuf:"bytes,2,rep,name=updatedAnnotations"` // The config of this deployment rollback. RollbackTo RollbackConfig `json:"rollbackTo" protobuf:"bytes,3,opt,name=rollbackTo"` @@ -270,6 +317,7 @@ type DeploymentRollback struct { type RollbackConfig struct { // The revision to rollback to. If set to 0, rollbck to the last revision. + // +optional Revision int64 `json:"revision,omitempty" protobuf:"varint,1,opt,name=revision"` } @@ -283,6 +331,7 @@ const ( // DeploymentStrategy describes how to replace existing pods with new ones. type DeploymentStrategy struct { // Type of deployment. Can be "Recreate" or "RollingUpdate". Default is RollingUpdate. + // +optional Type DeploymentStrategyType `json:"type,omitempty" protobuf:"bytes,1,opt,name=type,casttype=DeploymentStrategyType"` // Rolling update config params. Present only if DeploymentStrategyType = @@ -290,6 +339,7 @@ type DeploymentStrategy struct { //--- // TODO: Update this to follow our convention for oneOf, whatever we decide it // to be. + // +optional RollingUpdate *RollingUpdateDeployment `json:"rollingUpdate,omitempty" protobuf:"bytes,2,opt,name=rollingUpdate"` } @@ -315,6 +365,7 @@ type RollingUpdateDeployment struct { // can be scaled down further, followed by scaling up the new RC, ensuring // that the total number of pods available at all times during the update is at // least 70% of desired pods. + // +optional MaxUnavailable *intstr.IntOrString `json:"maxUnavailable,omitempty" protobuf:"bytes,1,opt,name=maxUnavailable"` // The maximum number of pods that can be scheduled above the desired number of @@ -328,31 +379,74 @@ type RollingUpdateDeployment struct { // 130% of desired pods. 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 desired pods. + // +optional MaxSurge *intstr.IntOrString `json:"maxSurge,omitempty" protobuf:"bytes,2,opt,name=maxSurge"` } // DeploymentStatus is the most recently observed status of the Deployment. type DeploymentStatus struct { // The generation observed by the deployment controller. + // +optional ObservedGeneration int64 `json:"observedGeneration,omitempty" protobuf:"varint,1,opt,name=observedGeneration"` // Total number of non-terminated pods targeted by this deployment (their labels match the selector). + // +optional Replicas int32 `json:"replicas,omitempty" protobuf:"varint,2,opt,name=replicas"` // Total number of non-terminated pods targeted by this deployment that have the desired template spec. + // +optional UpdatedReplicas int32 `json:"updatedReplicas,omitempty" protobuf:"varint,3,opt,name=updatedReplicas"` // Total number of available pods (ready for at least minReadySeconds) targeted by this deployment. + // +optional AvailableReplicas int32 `json:"availableReplicas,omitempty" protobuf:"varint,4,opt,name=availableReplicas"` // Total number of unavailable pods targeted by this deployment. + // +optional UnavailableReplicas int32 `json:"unavailableReplicas,omitempty" protobuf:"varint,5,opt,name=unavailableReplicas"` + + // Represents the latest available observations of a deployment's current state. + Conditions []DeploymentCondition `json:"conditions,omitempty" patchStrategy:"merge" patchMergeKey:"type" protobuf:"bytes,6,rep,name=conditions"` +} + +type DeploymentConditionType string + +// These are valid conditions of a deployment. +const ( + // Available means the deployment is available, ie. at least the minimum available + // replicas required are up and running for at least minReadySeconds. + DeploymentAvailable DeploymentConditionType = "Available" + // Progressing means the deployment is progressing. Progress for a deployment is + // considered when a new replica set is created or adopted, and when new pods scale + // up or old pods scale down. Progress is not estimated for paused deployments or + // when progressDeadlineSeconds is not specified. + DeploymentProgressing DeploymentConditionType = "Progressing" + // ReplicaFailure is added in a deployment when one of its pods fails to be created + // or deleted. + DeploymentReplicaFailure DeploymentConditionType = "ReplicaFailure" +) + +// DeploymentCondition describes the state of a deployment at a certain point. +type DeploymentCondition struct { + // Type of deployment condition. + Type DeploymentConditionType `json:"type" protobuf:"bytes,1,opt,name=type,casttype=DeploymentConditionType"` + // Status of the condition, one of True, False, Unknown. + Status v1.ConditionStatus `json:"status" protobuf:"bytes,2,opt,name=status,casttype=k8s.io/kubernetes/pkg/api/v1.ConditionStatus"` + // The last time this condition was updated. + LastUpdateTime unversioned.Time `json:"lastUpdateTime,omitempty" protobuf:"bytes,6,opt,name=lastUpdateTime"` + // Last time the condition transitioned from one status to another. + LastTransitionTime unversioned.Time `json:"lastTransitionTime,omitempty" protobuf:"bytes,7,opt,name=lastTransitionTime"` + // The reason for the condition's last transition. + Reason string `json:"reason,omitempty" protobuf:"bytes,4,opt,name=reason"` + // A human readable message indicating details about the transition. + Message string `json:"message,omitempty" protobuf:"bytes,5,opt,name=message"` } // DeploymentList is a list of Deployments. type DeploymentList struct { unversioned.TypeMeta `json:",inline"` // Standard list metadata. + // +optional unversioned.ListMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"` // Items is the list of Deployments. @@ -363,6 +457,7 @@ type DeploymentList struct { /* 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. +// +optional Type DaemonSetUpdateStrategyType `json:"type,omitempty"` // Rolling update config params. Present only if DaemonSetUpdateStrategy = @@ -370,6 +465,7 @@ type DaemonSetUpdateStrategy struct { //--- // TODO: Update this to follow our convention for oneOf, whatever we decide it // to be. Same as DeploymentStrategy.RollingUpdate. +// +optional RollingUpdate *RollingUpdateDaemonSet `json:"rollingUpdate,omitempty"` } @@ -395,12 +491,14 @@ type RollingUpdateDaemonSet struct { // 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. +// +optional 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). +// +optional MinReadySeconds int32 `json:"minReadySeconds,omitempty"` } */ @@ -410,29 +508,32 @@ 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 *LabelSelector `json:"selector,omitempty" protobuf:"bytes,1,opt,name=selector"` + // More info: http://kubernetes.io/docs/user-guide/labels#label-selectors + // +optional + Selector *unversioned.LabelSelector `json:"selector,omitempty" protobuf:"bytes,1,opt,name=selector"` // 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 + // More info: http://kubernetes.io/docs/user-guide/replication-controller#pod-template Template v1.PodTemplateSpec `json:"template" protobuf:"bytes,2,opt,name=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"` + // Update strategy to replace existing DaemonSet pods with new pods. + // +optional + 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"` + // 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. + // +optional + UniqueLabelKey *string `json:"uniqueLabelKey,omitempty"` */ } @@ -459,6 +560,10 @@ type DaemonSetStatus struct { // pod (including nodes correctly running the daemon pod). // More info: http://releases.k8s.io/HEAD/docs/admin/daemons.md DesiredNumberScheduled int32 `json:"desiredNumberScheduled" protobuf:"varint,3,opt,name=desiredNumberScheduled"` + + // NumberReady is the number of nodes that should be running the daemon pod and have one + // or more of the daemon pod running and ready. + NumberReady int32 `json:"numberReady" protobuf:"varint,4,opt,name=numberReady"` } // +genclient=true @@ -468,10 +573,12 @@ type DaemonSet struct { unversioned.TypeMeta `json:",inline"` // Standard object's metadata. // More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata + // +optional v1.ObjectMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"` // Spec defines the desired behavior of this daemon set. // More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status + // +optional Spec DaemonSetSpec `json:"spec,omitempty" protobuf:"bytes,2,opt,name=spec"` // Status is the current status of this daemon set. This data may be @@ -479,6 +586,7 @@ type DaemonSet struct { // Populated by the system. // Read-only. // More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status + // +optional Status DaemonSetStatus `json:"status,omitempty" protobuf:"bytes,3,opt,name=status"` } @@ -487,6 +595,7 @@ type DaemonSetList struct { unversioned.TypeMeta `json:",inline"` // Standard list metadata. // More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata + // +optional unversioned.ListMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"` // Items is a list of daemon sets. @@ -498,6 +607,7 @@ type ThirdPartyResourceDataList struct { unversioned.TypeMeta `json:",inline"` // Standard list metadata // More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata + // +optional unversioned.ListMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"` // Items is the list of ThirdpartyResourceData. @@ -507,26 +617,32 @@ type ThirdPartyResourceDataList struct { // +genclient=true // Job represents the configuration of a single job. +// DEPRECATED: extensions/v1beta1.Job is deprecated, use batch/v1.Job instead. type Job struct { unversioned.TypeMeta `json:",inline"` // Standard object's metadata. // More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata + // +optional v1.ObjectMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"` // 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 + // +optional Spec JobSpec `json:"spec,omitempty" protobuf:"bytes,2,opt,name=spec"` // 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 + // +optional Status JobStatus `json:"status,omitempty" protobuf:"bytes,3,opt,name=status"` } // JobList is a collection of jobs. +// DEPRECATED: extensions/v1beta1.JobList is deprecated, use batch/v1.JobList instead. type JobList struct { unversioned.TypeMeta `json:",inline"` // Standard list metadata // More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata + // +optional unversioned.ListMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"` // Items is the list of Job. @@ -540,7 +656,8 @@ type JobSpec struct { // 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. - // More info: http://releases.k8s.io/HEAD/docs/user-guide/jobs.md + // More info: http://kubernetes.io/docs/user-guide/jobs + // +optional Parallelism *int32 `json:"parallelism,omitempty" protobuf:"varint,1,opt,name=parallelism"` // Completions specifies the desired number of successfully finished pods the @@ -548,28 +665,32 @@ type JobSpec struct { // 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. - // More info: http://releases.k8s.io/HEAD/docs/user-guide/jobs.md + // More info: http://kubernetes.io/docs/user-guide/jobs + // +optional Completions *int32 `json:"completions,omitempty" protobuf:"varint,2,opt,name=completions"` // 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 + // +optional ActiveDeadlineSeconds *int64 `json:"activeDeadlineSeconds,omitempty" protobuf:"varint,3,opt,name=activeDeadlineSeconds"` // Selector is a label query over pods that should match the pod count. // Normally, the system sets this field for you. - // More info: http://releases.k8s.io/HEAD/docs/user-guide/labels.md#label-selectors - Selector *LabelSelector `json:"selector,omitempty" protobuf:"bytes,4,opt,name=selector"` + // More info: http://kubernetes.io/docs/user-guide/labels#label-selectors + // +optional + Selector *unversioned.LabelSelector `json:"selector,omitempty" protobuf:"bytes,4,opt,name=selector"` // AutoSelector controls generation of pod labels and pod selectors. // It was not present in the original extensions/v1beta1 Job definition, but exists // to allow conversion from batch/v1 Jobs, where it corresponds to, but has the opposite // meaning as, ManualSelector. // More info: http://releases.k8s.io/HEAD/docs/design/selector-generation.md + // +optional AutoSelector *bool `json:"autoSelector,omitempty" protobuf:"varint,5,opt,name=autoSelector"` // Template is the object that describes the pod that will be created when // executing a job. - // More info: http://releases.k8s.io/HEAD/docs/user-guide/jobs.md + // More info: http://kubernetes.io/docs/user-guide/jobs Template v1.PodTemplateSpec `json:"template" protobuf:"bytes,6,opt,name=template"` } @@ -577,26 +698,32 @@ type JobSpec struct { type JobStatus struct { // Conditions represent the latest available observations of an object's current state. - // More info: http://releases.k8s.io/HEAD/docs/user-guide/jobs.md + // More info: http://kubernetes.io/docs/user-guide/jobs + // +optional Conditions []JobCondition `json:"conditions,omitempty" patchStrategy:"merge" patchMergeKey:"type" protobuf:"bytes,1,rep,name=conditions"` // 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. + // +optional StartTime *unversioned.Time `json:"startTime,omitempty" protobuf:"bytes,2,opt,name=startTime"` // 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. + // +optional CompletionTime *unversioned.Time `json:"completionTime,omitempty" protobuf:"bytes,3,opt,name=completionTime"` // Active is the number of actively running pods. + // +optional Active int32 `json:"active,omitempty" protobuf:"varint,4,opt,name=active"` // Succeeded is the number of pods which reached Phase Succeeded. + // +optional Succeeded int32 `json:"succeeded,omitempty" protobuf:"varint,5,opt,name=succeeded"` // Failed is the number of pods which reached Phase Failed. + // +optional Failed int32 `json:"failed,omitempty" protobuf:"varint,6,opt,name=failed"` } @@ -617,12 +744,16 @@ type JobCondition struct { // Status of the condition, one of True, False, Unknown. Status v1.ConditionStatus `json:"status" protobuf:"bytes,2,opt,name=status,casttype=k8s.io/kubernetes/pkg/api/v1.ConditionStatus"` // Last time the condition was checked. + // +optional LastProbeTime unversioned.Time `json:"lastProbeTime,omitempty" protobuf:"bytes,3,opt,name=lastProbeTime"` // Last time the condition transit from one status to another. + // +optional LastTransitionTime unversioned.Time `json:"lastTransitionTime,omitempty" protobuf:"bytes,4,opt,name=lastTransitionTime"` // (brief) reason for the condition's last transition. + // +optional Reason string `json:"reason,omitempty" protobuf:"bytes,5,opt,name=reason"` // Human readable message indicating details about last transition. + // +optional Message string `json:"message,omitempty" protobuf:"bytes,6,opt,name=message"` } @@ -636,14 +767,17 @@ type Ingress struct { unversioned.TypeMeta `json:",inline"` // Standard object's metadata. // More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata + // +optional v1.ObjectMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"` // Spec is the desired state of the Ingress. // More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status + // +optional Spec IngressSpec `json:"spec,omitempty" protobuf:"bytes,2,opt,name=spec"` // Status is the current state of the Ingress. // More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status + // +optional Status IngressStatus `json:"status,omitempty" protobuf:"bytes,3,opt,name=status"` } @@ -652,6 +786,7 @@ type IngressList struct { unversioned.TypeMeta `json:",inline"` // Standard object's metadata. // More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata + // +optional unversioned.ListMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"` // Items is the list of Ingress. @@ -664,6 +799,7 @@ type IngressSpec struct { // 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. + // +optional Backend *IngressBackend `json:"backend,omitempty" protobuf:"bytes,1,opt,name=backend"` // TLS configuration. Currently the Ingress only supports a single TLS @@ -671,10 +807,12 @@ type IngressSpec struct { // 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. + // +optional TLS []IngressTLS `json:"tls,omitempty" protobuf:"bytes,2,rep,name=tls"` // A list of host rules used to configure the Ingress. If unspecified, or // no rule matches, all traffic is sent to the default backend. + // +optional Rules []IngressRule `json:"rules,omitempty" protobuf:"bytes,3,rep,name=rules"` // TODO: Add the ability to specify load-balancer IP through claims } @@ -685,12 +823,14 @@ type IngressTLS struct { // 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. + // +optional Hosts []string `json:"hosts,omitempty" protobuf:"bytes,1,rep,name=hosts"` // 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. + // +optional SecretName string `json:"secretName,omitempty" protobuf:"bytes,2,opt,name=secretName"` // TODO: Consider specifying different modes of termination, protocols etc. } @@ -698,6 +838,7 @@ type IngressTLS struct { // IngressStatus describe the current state of the Ingress. type IngressStatus struct { // LoadBalancer contains the current status of the load-balancer. + // +optional LoadBalancer v1.LoadBalancerStatus `json:"loadBalancer,omitempty" protobuf:"bytes,1,opt,name=loadBalancer"` } @@ -717,12 +858,14 @@ type IngressRule struct { // 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. + // +optional Host string `json:"host,omitempty" protobuf:"bytes,1,opt,name=host"` // 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. + // +optional IngressRuleValue `json:",inline,omitempty" protobuf:"bytes,2,opt,name=ingressRuleValue"` } @@ -737,6 +880,7 @@ type IngressRuleValue struct { // 2. Consider adding fields for ingress-type specific global options // usable by a loadbalancer, like http keep-alive. + // +optional HTTP *HTTPIngressRuleValue `json:"http,omitempty" protobuf:"bytes,1,opt,name=http"` } @@ -762,6 +906,7 @@ type HTTPIngressPath struct { // 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. + // +optional Path string `json:"path,omitempty" protobuf:"bytes,1,opt,name=path"` // Backend defines the referenced service endpoint to which the traffic @@ -787,63 +932,6 @@ type ExportOptions struct { 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"` -} - -// 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" -) - // +genclient=true // ReplicaSet represents the configuration of a ReplicaSet. @@ -853,10 +941,12 @@ type ReplicaSet struct { // If the Labels of a ReplicaSet are empty, they are defaulted to // be the same as the Pod(s) that the ReplicaSet manages. // Standard object's metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata + // +optional v1.ObjectMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"` // Spec defines the specification of the desired behavior of the ReplicaSet. // More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status + // +optional Spec ReplicaSetSpec `json:"spec,omitempty" protobuf:"bytes,2,opt,name=spec"` // Status is the most recently observed status of the ReplicaSet. @@ -864,6 +954,7 @@ type ReplicaSet struct { // Populated by the system. // Read-only. // More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status + // +optional Status ReplicaSetStatus `json:"status,omitempty" protobuf:"bytes,3,opt,name=status"` } @@ -872,10 +963,11 @@ type ReplicaSetList struct { unversioned.TypeMeta `json:",inline"` // Standard list metadata. // More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds + // +optional unversioned.ListMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"` // List of ReplicaSets. - // More info: http://releases.k8s.io/HEAD/docs/user-guide/replication-controller.md + // More info: http://kubernetes.io/docs/user-guide/replication-controller Items []ReplicaSet `json:"items" protobuf:"bytes,2,rep,name=items"` } @@ -884,35 +976,82 @@ type ReplicaSetSpec 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 + // More info: http://kubernetes.io/docs/user-guide/replication-controller#what-is-a-replication-controller + // +optional Replicas *int32 `json:"replicas,omitempty" protobuf:"varint,1,opt,name=replicas"` + // 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) + // +optional + MinReadySeconds int32 `json:"minReadySeconds,omitempty" protobuf:"varint,4,opt,name=minReadySeconds"` + // Selector is a label query over pods that should match the replica count. // If the 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 replica set. - // More info: http://releases.k8s.io/HEAD/docs/user-guide/labels.md#label-selectors - Selector *LabelSelector `json:"selector,omitempty" protobuf:"bytes,2,opt,name=selector"` + // More info: http://kubernetes.io/docs/user-guide/labels#label-selectors + // +optional + Selector *unversioned.LabelSelector `json:"selector,omitempty" protobuf:"bytes,2,opt,name=selector"` // Template is the object that describes the pod that will be created if // insufficient replicas are detected. - // More info: http://releases.k8s.io/HEAD/docs/user-guide/replication-controller.md#pod-template + // More info: http://kubernetes.io/docs/user-guide/replication-controller#pod-template + // +optional Template v1.PodTemplateSpec `json:"template,omitempty" protobuf:"bytes,3,opt,name=template"` } // ReplicaSetStatus represents the current status of a ReplicaSet. type ReplicaSetStatus 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 + // More info: http://kubernetes.io/docs/user-guide/replication-controller#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 replicaset. + // +optional FullyLabeledReplicas int32 `json:"fullyLabeledReplicas,omitempty" protobuf:"varint,2,opt,name=fullyLabeledReplicas"` // The number of ready replicas for this replica set. + // +optional ReadyReplicas int32 `json:"readyReplicas,omitempty" protobuf:"varint,4,opt,name=readyReplicas"` + // The number of available replicas (ready for at least minReadySeconds) for this replica set. + // +optional + AvailableReplicas int32 `json:"availableReplicas,omitempty" protobuf:"varint,5,opt,name=availableReplicas"` + // ObservedGeneration reflects the generation of the most recently observed ReplicaSet. + // +optional ObservedGeneration int64 `json:"observedGeneration,omitempty" protobuf:"varint,3,opt,name=observedGeneration"` + + // Represents the latest available observations of a replica set's current state. + // +optional + Conditions []ReplicaSetCondition `json:"conditions,omitempty" patchStrategy:"merge" patchMergeKey:"type" protobuf:"bytes,6,rep,name=conditions"` +} + +type ReplicaSetConditionType string + +// These are valid conditions of a replica set. +const ( + // ReplicaSetReplicaFailure is added in a replica set when one of its pods fails to be created + // due to insufficient quota, limit ranges, pod security policy, node selectors, etc. or deleted + // due to kubelet being down or finalizers are failing. + ReplicaSetReplicaFailure ReplicaSetConditionType = "ReplicaFailure" +) + +// ReplicaSetCondition describes the state of a replica set at a certain point. +type ReplicaSetCondition struct { + // Type of replica set condition. + Type ReplicaSetConditionType `json:"type" protobuf:"bytes,1,opt,name=type,casttype=ReplicaSetConditionType"` + // Status of the condition, one of True, False, Unknown. + Status v1.ConditionStatus `json:"status" protobuf:"bytes,2,opt,name=status,casttype=k8s.io/kubernetes/pkg/api/v1.ConditionStatus"` + // The last time the condition transitioned from one status to another. + // +optional + LastTransitionTime unversioned.Time `json:"lastTransitionTime,omitempty" protobuf:"bytes,3,opt,name=lastTransitionTime"` + // The reason for the condition's last transition. + // +optional + Reason string `json:"reason,omitempty" protobuf:"bytes,4,opt,name=reason"` + // A human readable message indicating details about the transition. + // +optional + Message string `json:"message,omitempty" protobuf:"bytes,5,opt,name=message"` } // +genclient=true @@ -924,37 +1063,48 @@ type PodSecurityPolicy struct { unversioned.TypeMeta `json:",inline"` // Standard object's metadata. // More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata + // +optional v1.ObjectMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"` // spec defines the policy enforced. + // +optional Spec PodSecurityPolicySpec `json:"spec,omitempty" protobuf:"bytes,2,opt,name=spec"` } // Pod Security Policy Spec defines the policy enforced. type PodSecurityPolicySpec struct { // privileged determines if a pod can request to be run as privileged. + // +optional Privileged bool `json:"privileged,omitempty" protobuf:"varint,1,opt,name=privileged"` // 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 capabiility in both // DefaultAddCapabilities and RequiredDropCapabilities. + // +optional DefaultAddCapabilities []v1.Capability `json:"defaultAddCapabilities,omitempty" protobuf:"bytes,2,rep,name=defaultAddCapabilities,casttype=k8s.io/kubernetes/pkg/api/v1.Capability"` // RequiredDropCapabilities are the capabilities that will be dropped from the container. These // are required to be dropped and cannot be added. + // +optional RequiredDropCapabilities []v1.Capability `json:"requiredDropCapabilities,omitempty" protobuf:"bytes,3,rep,name=requiredDropCapabilities,casttype=k8s.io/kubernetes/pkg/api/v1.Capability"` // 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. + // +optional AllowedCapabilities []v1.Capability `json:"allowedCapabilities,omitempty" protobuf:"bytes,4,rep,name=allowedCapabilities,casttype=k8s.io/kubernetes/pkg/api/v1.Capability"` // volumes is a white list of allowed volume plugins. Empty indicates that all plugins // may be used. + // +optional Volumes []FSType `json:"volumes,omitempty" protobuf:"bytes,5,rep,name=volumes,casttype=FSType"` // hostNetwork determines if the policy allows the use of HostNetwork in the pod spec. + // +optional HostNetwork bool `json:"hostNetwork,omitempty" protobuf:"varint,6,opt,name=hostNetwork"` // hostPorts determines which host port ranges are allowed to be exposed. + // +optional HostPorts []HostPortRange `json:"hostPorts,omitempty" protobuf:"bytes,7,rep,name=hostPorts"` // hostPID determines if the policy allows the use of HostPID in the pod spec. + // +optional HostPID bool `json:"hostPID,omitempty" protobuf:"varint,8,opt,name=hostPID"` // hostIPC determines if the policy allows the use of HostIPC in the pod spec. + // +optional HostIPC bool `json:"hostIPC,omitempty" protobuf:"varint,9,opt,name=hostIPC"` // seLinux is the strategy that will dictate the allowable labels that may be set. SELinux SELinuxStrategyOptions `json:"seLinux" protobuf:"bytes,10,opt,name=seLinux"` @@ -969,6 +1119,7 @@ type PodSecurityPolicySpec struct { // 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. + // +optional ReadOnlyRootFilesystem bool `json:"readOnlyRootFilesystem,omitempty" protobuf:"varint,14,opt,name=readOnlyRootFilesystem"` } @@ -1015,6 +1166,7 @@ type SELinuxStrategyOptions struct { Rule SELinuxStrategy `json:"rule" protobuf:"bytes,1,opt,name=rule,casttype=SELinuxStrategy"` // seLinuxOptions required to run as; required for MustRunAs // More info: http://releases.k8s.io/HEAD/docs/design/security_context.md#security-context + // +optional SELinuxOptions *v1.SELinuxOptions `json:"seLinuxOptions,omitempty" protobuf:"bytes,2,opt,name=seLinuxOptions"` } @@ -1034,6 +1186,7 @@ type RunAsUserStrategyOptions struct { // Rule is the strategy that will dictate the allowable RunAsUser values that may be set. Rule RunAsUserStrategy `json:"rule" protobuf:"bytes,1,opt,name=rule,casttype=RunAsUserStrategy"` // Ranges are the allowed ranges of uids that may be used. + // +optional Ranges []IDRange `json:"ranges,omitempty" protobuf:"bytes,2,rep,name=ranges"` } @@ -1061,9 +1214,11 @@ const ( // 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. + // +optional Rule FSGroupStrategyType `json:"rule,omitempty" protobuf:"bytes,1,opt,name=rule,casttype=FSGroupStrategyType"` // 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. + // +optional Ranges []IDRange `json:"ranges,omitempty" protobuf:"bytes,2,rep,name=ranges"` } @@ -1081,9 +1236,11 @@ const ( // 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. + // +optional Rule SupplementalGroupsStrategyType `json:"rule,omitempty" protobuf:"bytes,1,opt,name=rule,casttype=SupplementalGroupsStrategyType"` // 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. + // +optional Ranges []IDRange `json:"ranges,omitempty" protobuf:"bytes,2,rep,name=ranges"` } @@ -1103,6 +1260,7 @@ type PodSecurityPolicyList struct { unversioned.TypeMeta `json:",inline"` // Standard list metadata. // More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata + // +optional unversioned.ListMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"` // Items is a list of schema objects. @@ -1113,9 +1271,11 @@ type NetworkPolicy struct { unversioned.TypeMeta `json:",inline"` // Standard object's metadata. // More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata + // +optional v1.ObjectMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"` // Specification of the desired behavior for this NetworkPolicy. + // +optional Spec NetworkPolicySpec `json:"spec,omitempty" protobuf:"bytes,2,opt,name=spec"` } @@ -1125,7 +1285,7 @@ type NetworkPolicySpec struct { // 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 LabelSelector `json:"podSelector" protobuf:"bytes,1,opt,name=podSelector"` + PodSelector unversioned.LabelSelector `json:"podSelector" protobuf:"bytes,1,opt,name=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, @@ -1135,6 +1295,7 @@ type NetworkPolicySpec struct { // 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. + // +optional Ingress []NetworkPolicyIngressRule `json:"ingress,omitempty" protobuf:"bytes,2,rep,name=ingress"` } @@ -1147,6 +1308,7 @@ type NetworkPolicyIngressRule struct { // 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. + // +optional Ports []NetworkPolicyPort `json:"ports,omitempty" protobuf:"bytes,1,rep,name=ports"` // List of sources which should be able to access the pods selected for this rule. @@ -1156,12 +1318,14 @@ type NetworkPolicyIngressRule struct { // 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. + // +optional From []NetworkPolicyPeer `json:"from,omitempty" protobuf:"bytes,2,rep,name=from"` } type NetworkPolicyPort struct { // Optional. The protocol (TCP or UDP) which traffic must match. // If not specified, this field defaults to TCP. + // +optional Protocol *v1.Protocol `json:"protocol,omitempty" protobuf:"bytes,1,opt,name=protocol,casttype=k8s.io/kubernetes/pkg/api/v1.Protocol"` // If specified, the port on the given protocol. This can @@ -1169,6 +1333,7 @@ type NetworkPolicyPort struct { // this matches all port names and numbers. // If present, only traffic on the specified protocol AND port // will be matched. + // +optional Port *intstr.IntOrString `json:"port,omitempty" protobuf:"bytes,2,opt,name=port"` } @@ -1179,14 +1344,16 @@ type NetworkPolicyPeer struct { // 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 *LabelSelector `json:"podSelector,omitempty" protobuf:"bytes,1,opt,name=podSelector"` + // +optional + PodSelector *unversioned.LabelSelector `json:"podSelector,omitempty" protobuf:"bytes,1,opt,name=podSelector"` // 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 *LabelSelector `json:"namespaceSelector,omitempty" protobuf:"bytes,2,opt,name=namespaceSelector"` + // +optional + NamespaceSelector *unversioned.LabelSelector `json:"namespaceSelector,omitempty" protobuf:"bytes,2,opt,name=namespaceSelector"` } // Network Policy List is a list of NetworkPolicy objects. @@ -1194,6 +1361,7 @@ type NetworkPolicyList struct { unversioned.TypeMeta `json:",inline"` // Standard list metadata. // More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata + // +optional unversioned.ListMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"` // Items is a list of schema objects. diff --git a/vendor/k8s.io/client-go/1.5/pkg/apis/extensions/v1beta1/types_swagger_doc_generated.go b/vendor/k8s.io/client-go/pkg/apis/extensions/v1beta1/types_swagger_doc_generated.go similarity index 86% rename from vendor/k8s.io/client-go/1.5/pkg/apis/extensions/v1beta1/types_swagger_doc_generated.go rename to vendor/k8s.io/client-go/pkg/apis/extensions/v1beta1/types_swagger_doc_generated.go index 4b1e22ba5..1fd1fd5be 100644 --- a/vendor/k8s.io/client-go/1.5/pkg/apis/extensions/v1beta1/types_swagger_doc_generated.go +++ b/vendor/k8s.io/client-go/pkg/apis/extensions/v1beta1/types_swagger_doc_generated.go @@ -86,8 +86,8 @@ func (DaemonSetList) SwaggerDoc() map[string]string { var map_DaemonSetSpec = map[string]string{ "": "DaemonSetSpec is the specification of a daemon set.", - "selector": "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", - "template": "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", + "selector": "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://kubernetes.io/docs/user-guide/labels#label-selectors", + "template": "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://kubernetes.io/docs/user-guide/replication-controller#pod-template", } func (DaemonSetSpec) SwaggerDoc() map[string]string { @@ -99,6 +99,7 @@ var map_DaemonSetStatus = map[string]string{ "currentNumberScheduled": "CurrentNumberScheduled is the number of nodes that are running at least 1 daemon pod and are supposed to run the daemon pod. More info: http://releases.k8s.io/HEAD/docs/admin/daemons.md", "numberMisscheduled": "NumberMisscheduled is the number of nodes that are running the daemon pod, but are not supposed to run the daemon pod. More info: http://releases.k8s.io/HEAD/docs/admin/daemons.md", "desiredNumberScheduled": "DesiredNumberScheduled is the total number of nodes that should be running the daemon pod (including nodes correctly running the daemon pod). More info: http://releases.k8s.io/HEAD/docs/admin/daemons.md", + "numberReady": "NumberReady is the number of nodes that should be running the daemon pod and have one or more of the daemon pod running and ready.", } func (DaemonSetStatus) SwaggerDoc() map[string]string { @@ -116,6 +117,20 @@ func (Deployment) SwaggerDoc() map[string]string { return map_Deployment } +var map_DeploymentCondition = map[string]string{ + "": "DeploymentCondition describes the state of a deployment at a certain point.", + "type": "Type of deployment condition.", + "status": "Status of the condition, one of True, False, Unknown.", + "lastUpdateTime": "The last time this condition was updated.", + "lastTransitionTime": "Last time the condition transitioned from one status to another.", + "reason": "The reason for the condition's last transition.", + "message": "A human readable message indicating details about the transition.", +} + +func (DeploymentCondition) SwaggerDoc() map[string]string { + return map_DeploymentCondition +} + var map_DeploymentList = map[string]string{ "": "DeploymentList is a list of Deployments.", "metadata": "Standard list metadata.", @@ -138,15 +153,16 @@ func (DeploymentRollback) SwaggerDoc() map[string]string { } var map_DeploymentSpec = map[string]string{ - "": "DeploymentSpec is the specification of the desired behavior of the Deployment.", - "replicas": "Number of desired pods. This is a pointer to distinguish between explicit zero and not specified. Defaults to 1.", - "selector": "Label selector for pods. Existing ReplicaSets whose pods are selected by this will be the ones affected by this deployment.", - "template": "Template describes the pods that will be created.", - "strategy": "The deployment strategy to use to replace existing pods with new ones.", - "minReadySeconds": "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)", - "revisionHistoryLimit": "The number of old ReplicaSets to retain to allow rollback. This is a pointer to distinguish between explicit zero and not specified.", - "paused": "Indicates that the deployment is paused and will not be processed by the deployment controller.", - "rollbackTo": "The config this deployment is rolling back to. Will be cleared after rollback is done.", + "": "DeploymentSpec is the specification of the desired behavior of the Deployment.", + "replicas": "Number of desired pods. This is a pointer to distinguish between explicit zero and not specified. Defaults to 1.", + "selector": "Label selector for pods. Existing ReplicaSets whose pods are selected by this will be the ones affected by this deployment.", + "template": "Template describes the pods that will be created.", + "strategy": "The deployment strategy to use to replace existing pods with new ones.", + "minReadySeconds": "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)", + "revisionHistoryLimit": "The number of old ReplicaSets to retain to allow rollback. This is a pointer to distinguish between explicit zero and not specified.", + "paused": "Indicates that the deployment is paused and will not be processed by the deployment controller.", + "rollbackTo": "The config this deployment is rolling back to. Will be cleared after rollback is done.", + "progressDeadlineSeconds": "The maximum time in seconds for a deployment to make progress before it is considered to be failed. The deployment controller will continue to process failed deployments and a condition with a ProgressDeadlineExceeded reason will be surfaced in the deployment status. Once autoRollback is implemented, the deployment controller will automatically rollback failed deployments. Note that progress will not be estimated during the time a deployment is paused. This is not set by default.", } func (DeploymentSpec) SwaggerDoc() map[string]string { @@ -160,6 +176,7 @@ var map_DeploymentStatus = map[string]string{ "updatedReplicas": "Total number of non-terminated pods targeted by this deployment that have the desired template spec.", "availableReplicas": "Total number of available pods (ready for at least minReadySeconds) targeted by this deployment.", "unavailableReplicas": "Total number of unavailable pods targeted by this deployment.", + "conditions": "Represents the latest available observations of a deployment's current state.", } func (DeploymentStatus) SwaggerDoc() map[string]string { @@ -360,7 +377,7 @@ func (IngressTLS) SwaggerDoc() map[string]string { } var map_Job = map[string]string{ - "": "Job represents the configuration of a single job.", + "": "Job represents the configuration of a single job. DEPRECATED: extensions/v1beta1.Job is deprecated, use batch/v1.Job instead.", "metadata": "Standard object's metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata", "spec": "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", "status": "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", @@ -385,7 +402,7 @@ func (JobCondition) SwaggerDoc() map[string]string { } var map_JobList = map[string]string{ - "": "JobList is a collection of jobs.", + "": "JobList is a collection of jobs. DEPRECATED: extensions/v1beta1.JobList is deprecated, use batch/v1.JobList instead.", "metadata": "Standard list metadata More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata", "items": "Items is the list of Job.", } @@ -396,12 +413,12 @@ func (JobList) SwaggerDoc() map[string]string { var map_JobSpec = map[string]string{ "": "JobSpec describes how the job execution will look like.", - "parallelism": "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. More info: http://releases.k8s.io/HEAD/docs/user-guide/jobs.md", - "completions": "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. More info: http://releases.k8s.io/HEAD/docs/user-guide/jobs.md", + "parallelism": "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. More info: http://kubernetes.io/docs/user-guide/jobs", + "completions": "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. More info: http://kubernetes.io/docs/user-guide/jobs", "activeDeadlineSeconds": "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", - "selector": "Selector is a label query over pods that should match the pod count. Normally, the system sets this field for you. More info: http://releases.k8s.io/HEAD/docs/user-guide/labels.md#label-selectors", + "selector": "Selector is a label query over pods that should match the pod count. Normally, the system sets this field for you. More info: http://kubernetes.io/docs/user-guide/labels#label-selectors", "autoSelector": "AutoSelector controls generation of pod labels and pod selectors. It was not present in the original extensions/v1beta1 Job definition, but exists to allow conversion from batch/v1 Jobs, where it corresponds to, but has the opposite meaning as, ManualSelector. More info: http://releases.k8s.io/HEAD/docs/design/selector-generation.md", - "template": "Template is the object that describes the pod that will be created when executing a job. More info: http://releases.k8s.io/HEAD/docs/user-guide/jobs.md", + "template": "Template is the object that describes the pod that will be created when executing a job. More info: http://kubernetes.io/docs/user-guide/jobs", } func (JobSpec) SwaggerDoc() map[string]string { @@ -410,7 +427,7 @@ func (JobSpec) SwaggerDoc() map[string]string { var map_JobStatus = map[string]string{ "": "JobStatus represents the current state of a Job.", - "conditions": "Conditions represent the latest available observations of an object's current state. More info: http://releases.k8s.io/HEAD/docs/user-guide/jobs.md", + "conditions": "Conditions represent the latest available observations of an object's current state. More info: http://kubernetes.io/docs/user-guide/jobs", "startTime": "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.", "completionTime": "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.", "active": "Active is the number of actively running pods.", @@ -422,40 +439,6 @@ func (JobStatus) SwaggerDoc() map[string]string { return map_JobStatus } -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_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_NetworkPolicy = map[string]string{ "metadata": "Standard object's metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata", "spec": "Specification of the desired behavior for this NetworkPolicy.", @@ -565,10 +548,23 @@ func (ReplicaSet) SwaggerDoc() map[string]string { return map_ReplicaSet } +var map_ReplicaSetCondition = map[string]string{ + "": "ReplicaSetCondition describes the state of a replica set at a certain point.", + "type": "Type of replica set condition.", + "status": "Status of the condition, one of True, False, Unknown.", + "lastTransitionTime": "The last time the condition transitioned from one status to another.", + "reason": "The reason for the condition's last transition.", + "message": "A human readable message indicating details about the transition.", +} + +func (ReplicaSetCondition) SwaggerDoc() map[string]string { + return map_ReplicaSetCondition +} + var map_ReplicaSetList = map[string]string{ "": "ReplicaSetList is a collection of ReplicaSets.", "metadata": "Standard list metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds", - "items": "List of ReplicaSets. More info: http://releases.k8s.io/HEAD/docs/user-guide/replication-controller.md", + "items": "List of ReplicaSets. More info: http://kubernetes.io/docs/user-guide/replication-controller", } func (ReplicaSetList) SwaggerDoc() map[string]string { @@ -576,10 +572,11 @@ func (ReplicaSetList) SwaggerDoc() map[string]string { } var map_ReplicaSetSpec = map[string]string{ - "": "ReplicaSetSpec is the specification of a ReplicaSet.", - "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 replica count. If the 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 replica set. 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. More info: http://releases.k8s.io/HEAD/docs/user-guide/replication-controller.md#pod-template", + "": "ReplicaSetSpec is the specification of a ReplicaSet.", + "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://kubernetes.io/docs/user-guide/replication-controller#what-is-a-replication-controller", + "minReadySeconds": "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)", + "selector": "Selector is a label query over pods that should match the replica count. If the 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 replica set. More info: http://kubernetes.io/docs/user-guide/labels#label-selectors", + "template": "Template is the object that describes the pod that will be created if insufficient replicas are detected. More info: http://kubernetes.io/docs/user-guide/replication-controller#pod-template", } func (ReplicaSetSpec) SwaggerDoc() map[string]string { @@ -588,10 +585,12 @@ func (ReplicaSetSpec) SwaggerDoc() map[string]string { 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", + "replicas": "Replicas is the most recently oberved number of replicas. More info: http://kubernetes.io/docs/user-guide/replication-controller#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.", + "availableReplicas": "The number of available replicas (ready for at least minReadySeconds) for this replica set.", "observedGeneration": "ObservedGeneration reflects the generation of the most recently observed ReplicaSet.", + "conditions": "Represents the latest available observations of a replica set's current state.", } func (ReplicaSetStatus) SwaggerDoc() map[string]string { @@ -667,8 +666,8 @@ func (ScaleSpec) SwaggerDoc() map[string]string { var map_ScaleStatus = map[string]string{ "": "represents the current status of a scale subresource.", "replicas": "actual number of observed instances of the scaled object.", - "selector": "label query over pods that should match the replicas count. More info: http://releases.k8s.io/HEAD/docs/user-guide/labels.md#label-selectors", - "targetSelector": "label selector for pods that should match the replicas count. This is a serializated version of both map-based and more expressive set-based selectors. This is done to avoid introspection in the clients. The string will be in the same format as the query-param syntax. If the target type only supports map-based selectors, both this field and map-based selector field are populated. More info: http://releases.k8s.io/HEAD/docs/user-guide/labels.md#label-selectors", + "selector": "label query over pods that should match the replicas count. More info: http://kubernetes.io/docs/user-guide/labels#label-selectors", + "targetSelector": "label selector for pods that should match the replicas count. This is a serializated version of both map-based and more expressive set-based selectors. This is done to avoid introspection in the clients. The string will be in the same format as the query-param syntax. If the target type only supports map-based selectors, both this field and map-based selector field are populated. More info: http://kubernetes.io/docs/user-guide/labels#label-selectors", } func (ScaleStatus) SwaggerDoc() map[string]string { @@ -678,7 +677,7 @@ func (ScaleStatus) SwaggerDoc() map[string]string { 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", - "name": "Name of the referent; More info: http://releases.k8s.io/HEAD/docs/user-guide/identifiers.md#names", + "name": "Name of the referent; More info: http://kubernetes.io/docs/user-guide/identifiers#names", "apiVersion": "API version of the referent", "subresource": "Subresource name of the referent", } diff --git a/vendor/k8s.io/client-go/1.5/pkg/apis/extensions/v1beta1/zz_generated.conversion.go b/vendor/k8s.io/client-go/pkg/apis/extensions/v1beta1/zz_generated.conversion.go similarity index 69% rename from vendor/k8s.io/client-go/1.5/pkg/apis/extensions/v1beta1/zz_generated.conversion.go rename to vendor/k8s.io/client-go/pkg/apis/extensions/v1beta1/zz_generated.conversion.go index 6c76c93cd..80eb9ab56 100644 --- a/vendor/k8s.io/client-go/1.5/pkg/apis/extensions/v1beta1/zz_generated.conversion.go +++ b/vendor/k8s.io/client-go/pkg/apis/extensions/v1beta1/zz_generated.conversion.go @@ -1,7 +1,7 @@ // +build !ignore_autogenerated /* -Copyright 2016 The Kubernetes Authors. +Copyright 2017 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -21,14 +21,16 @@ limitations under the License. package v1beta1 import ( - api "k8s.io/client-go/1.5/pkg/api" - unversioned "k8s.io/client-go/1.5/pkg/api/unversioned" - v1 "k8s.io/client-go/1.5/pkg/api/v1" - autoscaling "k8s.io/client-go/1.5/pkg/apis/autoscaling" - batch "k8s.io/client-go/1.5/pkg/apis/batch" - extensions "k8s.io/client-go/1.5/pkg/apis/extensions" - conversion "k8s.io/client-go/1.5/pkg/conversion" - runtime "k8s.io/client-go/1.5/pkg/runtime" + api "k8s.io/client-go/pkg/api" + unversioned "k8s.io/client-go/pkg/api/unversioned" + v1 "k8s.io/client-go/pkg/api/v1" + autoscaling "k8s.io/client-go/pkg/apis/autoscaling" + batch "k8s.io/client-go/pkg/apis/batch" + extensions "k8s.io/client-go/pkg/apis/extensions" + conversion "k8s.io/client-go/pkg/conversion" + runtime "k8s.io/client-go/pkg/runtime" + intstr "k8s.io/client-go/pkg/util/intstr" + unsafe "unsafe" ) func init() { @@ -59,6 +61,8 @@ func RegisterConversions(scheme *runtime.Scheme) error { Convert_extensions_DaemonSetStatus_To_v1beta1_DaemonSetStatus, Convert_v1beta1_Deployment_To_extensions_Deployment, Convert_extensions_Deployment_To_v1beta1_Deployment, + Convert_v1beta1_DeploymentCondition_To_extensions_DeploymentCondition, + Convert_extensions_DeploymentCondition_To_v1beta1_DeploymentCondition, Convert_v1beta1_DeploymentList_To_extensions_DeploymentList, Convert_extensions_DeploymentList_To_v1beta1_DeploymentList, Convert_v1beta1_DeploymentRollback_To_extensions_DeploymentRollback, @@ -115,12 +119,6 @@ func RegisterConversions(scheme *runtime.Scheme) error { Convert_batch_JobSpec_To_v1beta1_JobSpec, Convert_v1beta1_JobStatus_To_batch_JobStatus, Convert_batch_JobStatus_To_v1beta1_JobStatus, - Convert_v1beta1_LabelSelector_To_unversioned_LabelSelector, - Convert_unversioned_LabelSelector_To_v1beta1_LabelSelector, - Convert_v1beta1_LabelSelectorRequirement_To_unversioned_LabelSelectorRequirement, - Convert_unversioned_LabelSelectorRequirement_To_v1beta1_LabelSelectorRequirement, - Convert_v1beta1_ListOptions_To_api_ListOptions, - Convert_api_ListOptions_To_v1beta1_ListOptions, Convert_v1beta1_NetworkPolicy_To_extensions_NetworkPolicy, Convert_extensions_NetworkPolicy_To_v1beta1_NetworkPolicy, Convert_v1beta1_NetworkPolicyIngressRule_To_extensions_NetworkPolicyIngressRule, @@ -141,6 +139,8 @@ func RegisterConversions(scheme *runtime.Scheme) error { Convert_extensions_PodSecurityPolicySpec_To_v1beta1_PodSecurityPolicySpec, Convert_v1beta1_ReplicaSet_To_extensions_ReplicaSet, Convert_extensions_ReplicaSet_To_v1beta1_ReplicaSet, + Convert_v1beta1_ReplicaSetCondition_To_extensions_ReplicaSetCondition, + Convert_extensions_ReplicaSetCondition_To_v1beta1_ReplicaSetCondition, Convert_v1beta1_ReplicaSetList_To_extensions_ReplicaSetList, Convert_extensions_ReplicaSetList_To_v1beta1_ReplicaSetList, Convert_v1beta1_ReplicaSetSpec_To_extensions_ReplicaSetSpec, @@ -196,9 +196,7 @@ func Convert_extensions_APIVersion_To_v1beta1_APIVersion(in *extensions.APIVersi func autoConvert_v1beta1_CustomMetricCurrentStatus_To_extensions_CustomMetricCurrentStatus(in *CustomMetricCurrentStatus, out *extensions.CustomMetricCurrentStatus, s conversion.Scope) error { out.Name = in.Name - if err := api.Convert_resource_Quantity_To_resource_Quantity(&in.CurrentValue, &out.CurrentValue, s); err != nil { - return err - } + out.CurrentValue = in.CurrentValue return nil } @@ -208,9 +206,7 @@ func Convert_v1beta1_CustomMetricCurrentStatus_To_extensions_CustomMetricCurrent func autoConvert_extensions_CustomMetricCurrentStatus_To_v1beta1_CustomMetricCurrentStatus(in *extensions.CustomMetricCurrentStatus, out *CustomMetricCurrentStatus, s conversion.Scope) error { out.Name = in.Name - if err := api.Convert_resource_Quantity_To_resource_Quantity(&in.CurrentValue, &out.CurrentValue, s); err != nil { - return err - } + out.CurrentValue = in.CurrentValue return nil } @@ -219,17 +215,7 @@ func Convert_extensions_CustomMetricCurrentStatus_To_v1beta1_CustomMetricCurrent } func autoConvert_v1beta1_CustomMetricCurrentStatusList_To_extensions_CustomMetricCurrentStatusList(in *CustomMetricCurrentStatusList, out *extensions.CustomMetricCurrentStatusList, s conversion.Scope) error { - if in.Items != nil { - in, out := &in.Items, &out.Items - *out = make([]extensions.CustomMetricCurrentStatus, len(*in)) - for i := range *in { - if err := Convert_v1beta1_CustomMetricCurrentStatus_To_extensions_CustomMetricCurrentStatus(&(*in)[i], &(*out)[i], s); err != nil { - return err - } - } - } else { - out.Items = nil - } + out.Items = *(*[]extensions.CustomMetricCurrentStatus)(unsafe.Pointer(&in.Items)) return nil } @@ -238,17 +224,7 @@ func Convert_v1beta1_CustomMetricCurrentStatusList_To_extensions_CustomMetricCur } func autoConvert_extensions_CustomMetricCurrentStatusList_To_v1beta1_CustomMetricCurrentStatusList(in *extensions.CustomMetricCurrentStatusList, out *CustomMetricCurrentStatusList, s conversion.Scope) error { - if in.Items != nil { - in, out := &in.Items, &out.Items - *out = make([]CustomMetricCurrentStatus, len(*in)) - for i := range *in { - if err := Convert_extensions_CustomMetricCurrentStatus_To_v1beta1_CustomMetricCurrentStatus(&(*in)[i], &(*out)[i], s); err != nil { - return err - } - } - } else { - out.Items = nil - } + out.Items = *(*[]CustomMetricCurrentStatus)(unsafe.Pointer(&in.Items)) return nil } @@ -258,9 +234,7 @@ func Convert_extensions_CustomMetricCurrentStatusList_To_v1beta1_CustomMetricCur func autoConvert_v1beta1_CustomMetricTarget_To_extensions_CustomMetricTarget(in *CustomMetricTarget, out *extensions.CustomMetricTarget, s conversion.Scope) error { out.Name = in.Name - if err := api.Convert_resource_Quantity_To_resource_Quantity(&in.TargetValue, &out.TargetValue, s); err != nil { - return err - } + out.TargetValue = in.TargetValue return nil } @@ -270,9 +244,7 @@ func Convert_v1beta1_CustomMetricTarget_To_extensions_CustomMetricTarget(in *Cus func autoConvert_extensions_CustomMetricTarget_To_v1beta1_CustomMetricTarget(in *extensions.CustomMetricTarget, out *CustomMetricTarget, s conversion.Scope) error { out.Name = in.Name - if err := api.Convert_resource_Quantity_To_resource_Quantity(&in.TargetValue, &out.TargetValue, s); err != nil { - return err - } + out.TargetValue = in.TargetValue return nil } @@ -281,17 +253,7 @@ func Convert_extensions_CustomMetricTarget_To_v1beta1_CustomMetricTarget(in *ext } func autoConvert_v1beta1_CustomMetricTargetList_To_extensions_CustomMetricTargetList(in *CustomMetricTargetList, out *extensions.CustomMetricTargetList, s conversion.Scope) error { - if in.Items != nil { - in, out := &in.Items, &out.Items - *out = make([]extensions.CustomMetricTarget, len(*in)) - for i := range *in { - if err := Convert_v1beta1_CustomMetricTarget_To_extensions_CustomMetricTarget(&(*in)[i], &(*out)[i], s); err != nil { - return err - } - } - } else { - out.Items = nil - } + out.Items = *(*[]extensions.CustomMetricTarget)(unsafe.Pointer(&in.Items)) return nil } @@ -300,17 +262,7 @@ func Convert_v1beta1_CustomMetricTargetList_To_extensions_CustomMetricTargetList } func autoConvert_extensions_CustomMetricTargetList_To_v1beta1_CustomMetricTargetList(in *extensions.CustomMetricTargetList, out *CustomMetricTargetList, s conversion.Scope) error { - if in.Items != nil { - in, out := &in.Items, &out.Items - *out = make([]CustomMetricTarget, len(*in)) - for i := range *in { - if err := Convert_extensions_CustomMetricTarget_To_v1beta1_CustomMetricTarget(&(*in)[i], &(*out)[i], s); err != nil { - return err - } - } - } else { - out.Items = nil - } + out.Items = *(*[]CustomMetricTarget)(unsafe.Pointer(&in.Items)) return nil } @@ -319,10 +271,6 @@ func Convert_extensions_CustomMetricTargetList_To_v1beta1_CustomMetricTargetList } func autoConvert_v1beta1_DaemonSet_To_extensions_DaemonSet(in *DaemonSet, out *extensions.DaemonSet, s conversion.Scope) error { - SetDefaults_DaemonSet(in) - 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 @@ -341,9 +289,6 @@ func Convert_v1beta1_DaemonSet_To_extensions_DaemonSet(in *DaemonSet, out *exten } func autoConvert_extensions_DaemonSet_To_v1beta1_DaemonSet(in *extensions.DaemonSet, out *DaemonSet, 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 @@ -362,12 +307,7 @@ func Convert_extensions_DaemonSet_To_v1beta1_DaemonSet(in *extensions.DaemonSet, } func autoConvert_v1beta1_DaemonSetList_To_extensions_DaemonSetList(in *DaemonSetList, out *extensions.DaemonSetList, 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 - } + out.ListMeta = in.ListMeta if in.Items != nil { in, out := &in.Items, &out.Items *out = make([]extensions.DaemonSet, len(*in)) @@ -387,12 +327,7 @@ func Convert_v1beta1_DaemonSetList_To_extensions_DaemonSetList(in *DaemonSetList } func autoConvert_extensions_DaemonSetList_To_v1beta1_DaemonSetList(in *extensions.DaemonSetList, out *DaemonSetList, 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 - } + out.ListMeta = in.ListMeta if in.Items != nil { in, out := &in.Items, &out.Items *out = make([]DaemonSet, len(*in)) @@ -412,15 +347,7 @@ func Convert_extensions_DaemonSetList_To_v1beta1_DaemonSetList(in *extensions.Da } func autoConvert_v1beta1_DaemonSetSpec_To_extensions_DaemonSetSpec(in *DaemonSetSpec, out *extensions.DaemonSetSpec, s conversion.Scope) error { - 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 - } + out.Selector = (*unversioned.LabelSelector)(unsafe.Pointer(in.Selector)) if err := v1.Convert_v1_PodTemplateSpec_To_api_PodTemplateSpec(&in.Template, &out.Template, s); err != nil { return err } @@ -432,15 +359,7 @@ func Convert_v1beta1_DaemonSetSpec_To_extensions_DaemonSetSpec(in *DaemonSetSpec } func autoConvert_extensions_DaemonSetSpec_To_v1beta1_DaemonSetSpec(in *extensions.DaemonSetSpec, out *DaemonSetSpec, s conversion.Scope) error { - 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 - } + out.Selector = (*unversioned.LabelSelector)(unsafe.Pointer(in.Selector)) if err := v1.Convert_api_PodTemplateSpec_To_v1_PodTemplateSpec(&in.Template, &out.Template, s); err != nil { return err } @@ -455,6 +374,7 @@ func autoConvert_v1beta1_DaemonSetStatus_To_extensions_DaemonSetStatus(in *Daemo out.CurrentNumberScheduled = in.CurrentNumberScheduled out.NumberMisscheduled = in.NumberMisscheduled out.DesiredNumberScheduled = in.DesiredNumberScheduled + out.NumberReady = in.NumberReady return nil } @@ -466,6 +386,7 @@ func autoConvert_extensions_DaemonSetStatus_To_v1beta1_DaemonSetStatus(in *exten out.CurrentNumberScheduled = in.CurrentNumberScheduled out.NumberMisscheduled = in.NumberMisscheduled out.DesiredNumberScheduled = in.DesiredNumberScheduled + out.NumberReady = in.NumberReady return nil } @@ -474,10 +395,6 @@ func Convert_extensions_DaemonSetStatus_To_v1beta1_DaemonSetStatus(in *extension } func autoConvert_v1beta1_Deployment_To_extensions_Deployment(in *Deployment, out *extensions.Deployment, s conversion.Scope) error { - SetDefaults_Deployment(in) - 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 @@ -496,9 +413,6 @@ func Convert_v1beta1_Deployment_To_extensions_Deployment(in *Deployment, out *ex } func autoConvert_extensions_Deployment_To_v1beta1_Deployment(in *extensions.Deployment, out *Deployment, 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 @@ -516,13 +430,36 @@ func Convert_extensions_Deployment_To_v1beta1_Deployment(in *extensions.Deployme return autoConvert_extensions_Deployment_To_v1beta1_Deployment(in, out, s) } +func autoConvert_v1beta1_DeploymentCondition_To_extensions_DeploymentCondition(in *DeploymentCondition, out *extensions.DeploymentCondition, s conversion.Scope) error { + out.Type = extensions.DeploymentConditionType(in.Type) + out.Status = api.ConditionStatus(in.Status) + out.LastUpdateTime = in.LastUpdateTime + out.LastTransitionTime = in.LastTransitionTime + out.Reason = in.Reason + out.Message = in.Message + return nil +} + +func Convert_v1beta1_DeploymentCondition_To_extensions_DeploymentCondition(in *DeploymentCondition, out *extensions.DeploymentCondition, s conversion.Scope) error { + return autoConvert_v1beta1_DeploymentCondition_To_extensions_DeploymentCondition(in, out, s) +} + +func autoConvert_extensions_DeploymentCondition_To_v1beta1_DeploymentCondition(in *extensions.DeploymentCondition, out *DeploymentCondition, s conversion.Scope) error { + out.Type = DeploymentConditionType(in.Type) + out.Status = v1.ConditionStatus(in.Status) + out.LastUpdateTime = in.LastUpdateTime + out.LastTransitionTime = in.LastTransitionTime + out.Reason = in.Reason + out.Message = in.Message + return nil +} + +func Convert_extensions_DeploymentCondition_To_v1beta1_DeploymentCondition(in *extensions.DeploymentCondition, out *DeploymentCondition, s conversion.Scope) error { + return autoConvert_extensions_DeploymentCondition_To_v1beta1_DeploymentCondition(in, out, s) +} + func autoConvert_v1beta1_DeploymentList_To_extensions_DeploymentList(in *DeploymentList, out *extensions.DeploymentList, 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 - } + out.ListMeta = in.ListMeta if in.Items != nil { in, out := &in.Items, &out.Items *out = make([]extensions.Deployment, len(*in)) @@ -542,12 +479,7 @@ func Convert_v1beta1_DeploymentList_To_extensions_DeploymentList(in *DeploymentL } func autoConvert_extensions_DeploymentList_To_v1beta1_DeploymentList(in *extensions.DeploymentList, out *DeploymentList, 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 - } + out.ListMeta = in.ListMeta if in.Items != nil { in, out := &in.Items, &out.Items *out = make([]Deployment, len(*in)) @@ -567,11 +499,8 @@ func Convert_extensions_DeploymentList_To_v1beta1_DeploymentList(in *extensions. } func autoConvert_v1beta1_DeploymentRollback_To_extensions_DeploymentRollback(in *DeploymentRollback, out *extensions.DeploymentRollback, s conversion.Scope) error { - if err := api.Convert_unversioned_TypeMeta_To_unversioned_TypeMeta(&in.TypeMeta, &out.TypeMeta, s); err != nil { - return err - } out.Name = in.Name - out.UpdatedAnnotations = in.UpdatedAnnotations + out.UpdatedAnnotations = *(*map[string]string)(unsafe.Pointer(&in.UpdatedAnnotations)) if err := Convert_v1beta1_RollbackConfig_To_extensions_RollbackConfig(&in.RollbackTo, &out.RollbackTo, s); err != nil { return err } @@ -583,11 +512,8 @@ func Convert_v1beta1_DeploymentRollback_To_extensions_DeploymentRollback(in *Dep } func autoConvert_extensions_DeploymentRollback_To_v1beta1_DeploymentRollback(in *extensions.DeploymentRollback, out *DeploymentRollback, s conversion.Scope) error { - if err := api.Convert_unversioned_TypeMeta_To_unversioned_TypeMeta(&in.TypeMeta, &out.TypeMeta, s); err != nil { - return err - } out.Name = in.Name - out.UpdatedAnnotations = in.UpdatedAnnotations + out.UpdatedAnnotations = *(*map[string]string)(unsafe.Pointer(&in.UpdatedAnnotations)) if err := Convert_extensions_RollbackConfig_To_v1beta1_RollbackConfig(&in.RollbackTo, &out.RollbackTo, s); err != nil { return err } @@ -602,15 +528,7 @@ func autoConvert_v1beta1_DeploymentSpec_To_extensions_DeploymentSpec(in *Deploym 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 - } + out.Selector = (*unversioned.LabelSelector)(unsafe.Pointer(in.Selector)) if err := v1.Convert_v1_PodTemplateSpec_To_api_PodTemplateSpec(&in.Template, &out.Template, s); err != nil { return err } @@ -618,17 +536,10 @@ func autoConvert_v1beta1_DeploymentSpec_To_extensions_DeploymentSpec(in *Deploym return err } out.MinReadySeconds = in.MinReadySeconds - out.RevisionHistoryLimit = in.RevisionHistoryLimit + out.RevisionHistoryLimit = (*int32)(unsafe.Pointer(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 - } + out.RollbackTo = (*extensions.RollbackConfig)(unsafe.Pointer(in.RollbackTo)) + out.ProgressDeadlineSeconds = (*int32)(unsafe.Pointer(in.ProgressDeadlineSeconds)) return nil } @@ -636,15 +547,7 @@ func autoConvert_extensions_DeploymentSpec_To_v1beta1_DeploymentSpec(in *extensi 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 - } + out.Selector = (*unversioned.LabelSelector)(unsafe.Pointer(in.Selector)) if err := v1.Convert_api_PodTemplateSpec_To_v1_PodTemplateSpec(&in.Template, &out.Template, s); err != nil { return err } @@ -652,17 +555,10 @@ func autoConvert_extensions_DeploymentSpec_To_v1beta1_DeploymentSpec(in *extensi return err } out.MinReadySeconds = in.MinReadySeconds - out.RevisionHistoryLimit = in.RevisionHistoryLimit + out.RevisionHistoryLimit = (*int32)(unsafe.Pointer(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 - } + out.RollbackTo = (*RollbackConfig)(unsafe.Pointer(in.RollbackTo)) + out.ProgressDeadlineSeconds = (*int32)(unsafe.Pointer(in.ProgressDeadlineSeconds)) return nil } @@ -672,6 +568,7 @@ func autoConvert_v1beta1_DeploymentStatus_To_extensions_DeploymentStatus(in *Dep out.UpdatedReplicas = in.UpdatedReplicas out.AvailableReplicas = in.AvailableReplicas out.UnavailableReplicas = in.UnavailableReplicas + out.Conditions = *(*[]extensions.DeploymentCondition)(unsafe.Pointer(&in.Conditions)) return nil } @@ -685,6 +582,7 @@ func autoConvert_extensions_DeploymentStatus_To_v1beta1_DeploymentStatus(in *ext out.UpdatedReplicas = in.UpdatedReplicas out.AvailableReplicas = in.AvailableReplicas out.UnavailableReplicas = in.UnavailableReplicas + out.Conditions = *(*[]DeploymentCondition)(unsafe.Pointer(&in.Conditions)) return nil } @@ -721,9 +619,6 @@ func autoConvert_extensions_DeploymentStrategy_To_v1beta1_DeploymentStrategy(in } func autoConvert_v1beta1_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 @@ -734,9 +629,6 @@ func Convert_v1beta1_ExportOptions_To_api_ExportOptions(in *ExportOptions, out * } func autoConvert_api_ExportOptions_To_v1beta1_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 @@ -748,17 +640,7 @@ func Convert_api_ExportOptions_To_v1beta1_ExportOptions(in *api.ExportOptions, o func autoConvert_v1beta1_FSGroupStrategyOptions_To_extensions_FSGroupStrategyOptions(in *FSGroupStrategyOptions, out *extensions.FSGroupStrategyOptions, s conversion.Scope) error { out.Rule = extensions.FSGroupStrategyType(in.Rule) - if in.Ranges != nil { - in, out := &in.Ranges, &out.Ranges - *out = make([]extensions.IDRange, len(*in)) - for i := range *in { - if err := Convert_v1beta1_IDRange_To_extensions_IDRange(&(*in)[i], &(*out)[i], s); err != nil { - return err - } - } - } else { - out.Ranges = nil - } + out.Ranges = *(*[]extensions.IDRange)(unsafe.Pointer(&in.Ranges)) return nil } @@ -768,17 +650,7 @@ func Convert_v1beta1_FSGroupStrategyOptions_To_extensions_FSGroupStrategyOptions func autoConvert_extensions_FSGroupStrategyOptions_To_v1beta1_FSGroupStrategyOptions(in *extensions.FSGroupStrategyOptions, out *FSGroupStrategyOptions, s conversion.Scope) error { out.Rule = FSGroupStrategyType(in.Rule) - if in.Ranges != nil { - in, out := &in.Ranges, &out.Ranges - *out = make([]IDRange, len(*in)) - for i := range *in { - if err := Convert_extensions_IDRange_To_v1beta1_IDRange(&(*in)[i], &(*out)[i], s); err != nil { - return err - } - } - } else { - out.Ranges = nil - } + out.Ranges = *(*[]IDRange)(unsafe.Pointer(&in.Ranges)) return nil } @@ -811,17 +683,7 @@ func Convert_extensions_HTTPIngressPath_To_v1beta1_HTTPIngressPath(in *extension } func autoConvert_v1beta1_HTTPIngressRuleValue_To_extensions_HTTPIngressRuleValue(in *HTTPIngressRuleValue, out *extensions.HTTPIngressRuleValue, s conversion.Scope) error { - if in.Paths != nil { - in, out := &in.Paths, &out.Paths - *out = make([]extensions.HTTPIngressPath, len(*in)) - for i := range *in { - if err := Convert_v1beta1_HTTPIngressPath_To_extensions_HTTPIngressPath(&(*in)[i], &(*out)[i], s); err != nil { - return err - } - } - } else { - out.Paths = nil - } + out.Paths = *(*[]extensions.HTTPIngressPath)(unsafe.Pointer(&in.Paths)) return nil } @@ -830,17 +692,7 @@ func Convert_v1beta1_HTTPIngressRuleValue_To_extensions_HTTPIngressRuleValue(in } func autoConvert_extensions_HTTPIngressRuleValue_To_v1beta1_HTTPIngressRuleValue(in *extensions.HTTPIngressRuleValue, out *HTTPIngressRuleValue, s conversion.Scope) error { - if in.Paths != nil { - in, out := &in.Paths, &out.Paths - *out = make([]HTTPIngressPath, len(*in)) - for i := range *in { - if err := Convert_extensions_HTTPIngressPath_To_v1beta1_HTTPIngressPath(&(*in)[i], &(*out)[i], s); err != nil { - return err - } - } - } else { - out.Paths = nil - } + out.Paths = *(*[]HTTPIngressPath)(unsafe.Pointer(&in.Paths)) return nil } @@ -849,10 +701,6 @@ func Convert_extensions_HTTPIngressRuleValue_To_v1beta1_HTTPIngressRuleValue(in } func autoConvert_v1beta1_HorizontalPodAutoscaler_To_autoscaling_HorizontalPodAutoscaler(in *HorizontalPodAutoscaler, out *autoscaling.HorizontalPodAutoscaler, s conversion.Scope) error { - SetDefaults_HorizontalPodAutoscaler(in) - 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 @@ -871,9 +719,6 @@ func Convert_v1beta1_HorizontalPodAutoscaler_To_autoscaling_HorizontalPodAutosca } func autoConvert_autoscaling_HorizontalPodAutoscaler_To_v1beta1_HorizontalPodAutoscaler(in *autoscaling.HorizontalPodAutoscaler, out *HorizontalPodAutoscaler, 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 @@ -892,12 +737,7 @@ func Convert_autoscaling_HorizontalPodAutoscaler_To_v1beta1_HorizontalPodAutosca } func autoConvert_v1beta1_HorizontalPodAutoscalerList_To_autoscaling_HorizontalPodAutoscalerList(in *HorizontalPodAutoscalerList, out *autoscaling.HorizontalPodAutoscalerList, 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 - } + out.ListMeta = in.ListMeta if in.Items != nil { in, out := &in.Items, &out.Items *out = make([]autoscaling.HorizontalPodAutoscaler, len(*in)) @@ -917,12 +757,7 @@ func Convert_v1beta1_HorizontalPodAutoscalerList_To_autoscaling_HorizontalPodAut } func autoConvert_autoscaling_HorizontalPodAutoscalerList_To_v1beta1_HorizontalPodAutoscalerList(in *autoscaling.HorizontalPodAutoscalerList, out *HorizontalPodAutoscalerList, 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 - } + out.ListMeta = in.ListMeta if in.Items != nil { in, out := &in.Items, &out.Items *out = make([]HorizontalPodAutoscaler, len(*in)) @@ -943,7 +778,7 @@ func Convert_autoscaling_HorizontalPodAutoscalerList_To_v1beta1_HorizontalPodAut func autoConvert_v1beta1_HorizontalPodAutoscalerSpec_To_autoscaling_HorizontalPodAutoscalerSpec(in *HorizontalPodAutoscalerSpec, out *autoscaling.HorizontalPodAutoscalerSpec, s conversion.Scope) error { // WARNING: in.ScaleRef requires manual conversion: does not exist in peer-type - out.MinReplicas = in.MinReplicas + out.MinReplicas = (*int32)(unsafe.Pointer(in.MinReplicas)) out.MaxReplicas = in.MaxReplicas // WARNING: in.CPUUtilization requires manual conversion: does not exist in peer-type return nil @@ -951,18 +786,18 @@ func autoConvert_v1beta1_HorizontalPodAutoscalerSpec_To_autoscaling_HorizontalPo func autoConvert_autoscaling_HorizontalPodAutoscalerSpec_To_v1beta1_HorizontalPodAutoscalerSpec(in *autoscaling.HorizontalPodAutoscalerSpec, out *HorizontalPodAutoscalerSpec, s conversion.Scope) error { // WARNING: in.ScaleTargetRef requires manual conversion: does not exist in peer-type - out.MinReplicas = in.MinReplicas + out.MinReplicas = (*int32)(unsafe.Pointer(in.MinReplicas)) out.MaxReplicas = in.MaxReplicas // WARNING: in.TargetCPUUtilizationPercentage requires manual conversion: does not exist in peer-type return nil } func autoConvert_v1beta1_HorizontalPodAutoscalerStatus_To_autoscaling_HorizontalPodAutoscalerStatus(in *HorizontalPodAutoscalerStatus, out *autoscaling.HorizontalPodAutoscalerStatus, s conversion.Scope) error { - out.ObservedGeneration = in.ObservedGeneration - out.LastScaleTime = in.LastScaleTime + out.ObservedGeneration = (*int64)(unsafe.Pointer(in.ObservedGeneration)) + out.LastScaleTime = (*unversioned.Time)(unsafe.Pointer(in.LastScaleTime)) out.CurrentReplicas = in.CurrentReplicas out.DesiredReplicas = in.DesiredReplicas - out.CurrentCPUUtilizationPercentage = in.CurrentCPUUtilizationPercentage + out.CurrentCPUUtilizationPercentage = (*int32)(unsafe.Pointer(in.CurrentCPUUtilizationPercentage)) return nil } @@ -971,11 +806,11 @@ func Convert_v1beta1_HorizontalPodAutoscalerStatus_To_autoscaling_HorizontalPodA } func autoConvert_autoscaling_HorizontalPodAutoscalerStatus_To_v1beta1_HorizontalPodAutoscalerStatus(in *autoscaling.HorizontalPodAutoscalerStatus, out *HorizontalPodAutoscalerStatus, s conversion.Scope) error { - out.ObservedGeneration = in.ObservedGeneration - out.LastScaleTime = in.LastScaleTime + out.ObservedGeneration = (*int64)(unsafe.Pointer(in.ObservedGeneration)) + out.LastScaleTime = (*unversioned.Time)(unsafe.Pointer(in.LastScaleTime)) out.CurrentReplicas = in.CurrentReplicas out.DesiredReplicas = in.DesiredReplicas - out.CurrentCPUUtilizationPercentage = in.CurrentCPUUtilizationPercentage + out.CurrentCPUUtilizationPercentage = (*int32)(unsafe.Pointer(in.CurrentCPUUtilizationPercentage)) return nil } @@ -1024,9 +859,6 @@ func Convert_extensions_IDRange_To_v1beta1_IDRange(in *extensions.IDRange, out * } func autoConvert_v1beta1_Ingress_To_extensions_Ingress(in *Ingress, out *extensions.Ingress, 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 @@ -1045,9 +877,6 @@ func Convert_v1beta1_Ingress_To_extensions_Ingress(in *Ingress, out *extensions. } func autoConvert_extensions_Ingress_To_v1beta1_Ingress(in *extensions.Ingress, out *Ingress, 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 @@ -1067,9 +896,7 @@ func Convert_extensions_Ingress_To_v1beta1_Ingress(in *extensions.Ingress, out * func autoConvert_v1beta1_IngressBackend_To_extensions_IngressBackend(in *IngressBackend, out *extensions.IngressBackend, s conversion.Scope) error { out.ServiceName = in.ServiceName - if err := api.Convert_intstr_IntOrString_To_intstr_IntOrString(&in.ServicePort, &out.ServicePort, s); err != nil { - return err - } + out.ServicePort = in.ServicePort return nil } @@ -1079,9 +906,7 @@ func Convert_v1beta1_IngressBackend_To_extensions_IngressBackend(in *IngressBack func autoConvert_extensions_IngressBackend_To_v1beta1_IngressBackend(in *extensions.IngressBackend, out *IngressBackend, s conversion.Scope) error { out.ServiceName = in.ServiceName - if err := api.Convert_intstr_IntOrString_To_intstr_IntOrString(&in.ServicePort, &out.ServicePort, s); err != nil { - return err - } + out.ServicePort = in.ServicePort return nil } @@ -1090,23 +915,8 @@ func Convert_extensions_IngressBackend_To_v1beta1_IngressBackend(in *extensions. } func autoConvert_v1beta1_IngressList_To_extensions_IngressList(in *IngressList, out *extensions.IngressList, 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.Ingress, len(*in)) - for i := range *in { - if err := Convert_v1beta1_Ingress_To_extensions_Ingress(&(*in)[i], &(*out)[i], s); err != nil { - return err - } - } - } else { - out.Items = nil - } + out.ListMeta = in.ListMeta + out.Items = *(*[]extensions.Ingress)(unsafe.Pointer(&in.Items)) return nil } @@ -1115,23 +925,8 @@ func Convert_v1beta1_IngressList_To_extensions_IngressList(in *IngressList, out } func autoConvert_extensions_IngressList_To_v1beta1_IngressList(in *extensions.IngressList, out *IngressList, 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([]Ingress, len(*in)) - for i := range *in { - if err := Convert_extensions_Ingress_To_v1beta1_Ingress(&(*in)[i], &(*out)[i], s); err != nil { - return err - } - } - } else { - out.Items = nil - } + out.ListMeta = in.ListMeta + out.Items = *(*[]Ingress)(unsafe.Pointer(&in.Items)) return nil } @@ -1164,15 +959,7 @@ func Convert_extensions_IngressRule_To_v1beta1_IngressRule(in *extensions.Ingres } func autoConvert_v1beta1_IngressRuleValue_To_extensions_IngressRuleValue(in *IngressRuleValue, out *extensions.IngressRuleValue, s conversion.Scope) error { - if in.HTTP != nil { - in, out := &in.HTTP, &out.HTTP - *out = new(extensions.HTTPIngressRuleValue) - if err := Convert_v1beta1_HTTPIngressRuleValue_To_extensions_HTTPIngressRuleValue(*in, *out, s); err != nil { - return err - } - } else { - out.HTTP = nil - } + out.HTTP = (*extensions.HTTPIngressRuleValue)(unsafe.Pointer(in.HTTP)) return nil } @@ -1181,15 +968,7 @@ func Convert_v1beta1_IngressRuleValue_To_extensions_IngressRuleValue(in *Ingress } func autoConvert_extensions_IngressRuleValue_To_v1beta1_IngressRuleValue(in *extensions.IngressRuleValue, out *IngressRuleValue, s conversion.Scope) error { - if in.HTTP != nil { - in, out := &in.HTTP, &out.HTTP - *out = new(HTTPIngressRuleValue) - if err := Convert_extensions_HTTPIngressRuleValue_To_v1beta1_HTTPIngressRuleValue(*in, *out, s); err != nil { - return err - } - } else { - out.HTTP = nil - } + out.HTTP = (*HTTPIngressRuleValue)(unsafe.Pointer(in.HTTP)) return nil } @@ -1198,37 +977,9 @@ func Convert_extensions_IngressRuleValue_To_v1beta1_IngressRuleValue(in *extensi } func autoConvert_v1beta1_IngressSpec_To_extensions_IngressSpec(in *IngressSpec, out *extensions.IngressSpec, s conversion.Scope) error { - if in.Backend != nil { - in, out := &in.Backend, &out.Backend - *out = new(extensions.IngressBackend) - if err := Convert_v1beta1_IngressBackend_To_extensions_IngressBackend(*in, *out, s); err != nil { - return err - } - } else { - out.Backend = nil - } - if in.TLS != nil { - in, out := &in.TLS, &out.TLS - *out = make([]extensions.IngressTLS, len(*in)) - for i := range *in { - if err := Convert_v1beta1_IngressTLS_To_extensions_IngressTLS(&(*in)[i], &(*out)[i], s); err != nil { - return err - } - } - } else { - out.TLS = nil - } - if in.Rules != nil { - in, out := &in.Rules, &out.Rules - *out = make([]extensions.IngressRule, len(*in)) - for i := range *in { - if err := Convert_v1beta1_IngressRule_To_extensions_IngressRule(&(*in)[i], &(*out)[i], s); err != nil { - return err - } - } - } else { - out.Rules = nil - } + out.Backend = (*extensions.IngressBackend)(unsafe.Pointer(in.Backend)) + out.TLS = *(*[]extensions.IngressTLS)(unsafe.Pointer(&in.TLS)) + out.Rules = *(*[]extensions.IngressRule)(unsafe.Pointer(&in.Rules)) return nil } @@ -1237,37 +988,9 @@ func Convert_v1beta1_IngressSpec_To_extensions_IngressSpec(in *IngressSpec, out } func autoConvert_extensions_IngressSpec_To_v1beta1_IngressSpec(in *extensions.IngressSpec, out *IngressSpec, s conversion.Scope) error { - if in.Backend != nil { - in, out := &in.Backend, &out.Backend - *out = new(IngressBackend) - if err := Convert_extensions_IngressBackend_To_v1beta1_IngressBackend(*in, *out, s); err != nil { - return err - } - } 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 := Convert_extensions_IngressTLS_To_v1beta1_IngressTLS(&(*in)[i], &(*out)[i], s); 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 := Convert_extensions_IngressRule_To_v1beta1_IngressRule(&(*in)[i], &(*out)[i], s); err != nil { - return err - } - } - } else { - out.Rules = nil - } + out.Backend = (*IngressBackend)(unsafe.Pointer(in.Backend)) + out.TLS = *(*[]IngressTLS)(unsafe.Pointer(&in.TLS)) + out.Rules = *(*[]IngressRule)(unsafe.Pointer(&in.Rules)) return nil } @@ -1300,7 +1023,7 @@ func Convert_extensions_IngressStatus_To_v1beta1_IngressStatus(in *extensions.In } func autoConvert_v1beta1_IngressTLS_To_extensions_IngressTLS(in *IngressTLS, out *extensions.IngressTLS, s conversion.Scope) error { - out.Hosts = in.Hosts + out.Hosts = *(*[]string)(unsafe.Pointer(&in.Hosts)) out.SecretName = in.SecretName return nil } @@ -1310,7 +1033,7 @@ func Convert_v1beta1_IngressTLS_To_extensions_IngressTLS(in *IngressTLS, out *ex } func autoConvert_extensions_IngressTLS_To_v1beta1_IngressTLS(in *extensions.IngressTLS, out *IngressTLS, s conversion.Scope) error { - out.Hosts = in.Hosts + out.Hosts = *(*[]string)(unsafe.Pointer(&in.Hosts)) out.SecretName = in.SecretName return nil } @@ -1320,10 +1043,6 @@ func Convert_extensions_IngressTLS_To_v1beta1_IngressTLS(in *extensions.IngressT } func autoConvert_v1beta1_Job_To_batch_Job(in *Job, out *batch.Job, s conversion.Scope) error { - SetDefaults_Job(in) - 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 @@ -1342,9 +1061,6 @@ func Convert_v1beta1_Job_To_batch_Job(in *Job, out *batch.Job, s conversion.Scop } func autoConvert_batch_Job_To_v1beta1_Job(in *batch.Job, out *Job, 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 @@ -1365,12 +1081,8 @@ func Convert_batch_Job_To_v1beta1_Job(in *batch.Job, out *Job, s conversion.Scop func autoConvert_v1beta1_JobCondition_To_batch_JobCondition(in *JobCondition, out *batch.JobCondition, s conversion.Scope) error { out.Type = batch.JobConditionType(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.LastProbeTime = in.LastProbeTime + out.LastTransitionTime = in.LastTransitionTime out.Reason = in.Reason out.Message = in.Message return nil @@ -1383,12 +1095,8 @@ func Convert_v1beta1_JobCondition_To_batch_JobCondition(in *JobCondition, out *b func autoConvert_batch_JobCondition_To_v1beta1_JobCondition(in *batch.JobCondition, out *JobCondition, s conversion.Scope) error { out.Type = JobConditionType(in.Type) out.Status = v1.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.LastProbeTime = in.LastProbeTime + out.LastTransitionTime = in.LastTransitionTime out.Reason = in.Reason out.Message = in.Message return nil @@ -1399,12 +1107,7 @@ func Convert_batch_JobCondition_To_v1beta1_JobCondition(in *batch.JobCondition, } func autoConvert_v1beta1_JobList_To_batch_JobList(in *JobList, out *batch.JobList, 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 - } + out.ListMeta = in.ListMeta if in.Items != nil { in, out := &in.Items, &out.Items *out = make([]batch.Job, len(*in)) @@ -1424,12 +1127,7 @@ func Convert_v1beta1_JobList_To_batch_JobList(in *JobList, out *batch.JobList, s } func autoConvert_batch_JobList_To_v1beta1_JobList(in *batch.JobList, out *JobList, 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 - } + out.ListMeta = in.ListMeta if in.Items != nil { in, out := &in.Items, &out.Items *out = make([]Job, len(*in)) @@ -1449,18 +1147,10 @@ func Convert_batch_JobList_To_v1beta1_JobList(in *batch.JobList, out *JobList, s } func autoConvert_v1beta1_JobSpec_To_batch_JobSpec(in *JobSpec, out *batch.JobSpec, s conversion.Scope) error { - out.Parallelism = in.Parallelism - out.Completions = in.Completions - out.ActiveDeadlineSeconds = in.ActiveDeadlineSeconds - 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 - } + out.Parallelism = (*int32)(unsafe.Pointer(in.Parallelism)) + out.Completions = (*int32)(unsafe.Pointer(in.Completions)) + out.ActiveDeadlineSeconds = (*int64)(unsafe.Pointer(in.ActiveDeadlineSeconds)) + out.Selector = (*unversioned.LabelSelector)(unsafe.Pointer(in.Selector)) // WARNING: in.AutoSelector requires manual conversion: does not exist in peer-type if err := v1.Convert_v1_PodTemplateSpec_To_api_PodTemplateSpec(&in.Template, &out.Template, s); err != nil { return err @@ -1469,18 +1159,10 @@ func autoConvert_v1beta1_JobSpec_To_batch_JobSpec(in *JobSpec, out *batch.JobSpe } func autoConvert_batch_JobSpec_To_v1beta1_JobSpec(in *batch.JobSpec, out *JobSpec, s conversion.Scope) error { - out.Parallelism = in.Parallelism - out.Completions = in.Completions - out.ActiveDeadlineSeconds = in.ActiveDeadlineSeconds - 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 - } + out.Parallelism = (*int32)(unsafe.Pointer(in.Parallelism)) + out.Completions = (*int32)(unsafe.Pointer(in.Completions)) + out.ActiveDeadlineSeconds = (*int64)(unsafe.Pointer(in.ActiveDeadlineSeconds)) + out.Selector = (*unversioned.LabelSelector)(unsafe.Pointer(in.Selector)) // WARNING: in.ManualSelector requires manual conversion: does not exist in peer-type if err := v1.Convert_api_PodTemplateSpec_To_v1_PodTemplateSpec(&in.Template, &out.Template, s); err != nil { return err @@ -1489,19 +1171,9 @@ func autoConvert_batch_JobSpec_To_v1beta1_JobSpec(in *batch.JobSpec, out *JobSpe } func autoConvert_v1beta1_JobStatus_To_batch_JobStatus(in *JobStatus, out *batch.JobStatus, s conversion.Scope) error { - if in.Conditions != nil { - in, out := &in.Conditions, &out.Conditions - *out = make([]batch.JobCondition, len(*in)) - for i := range *in { - if err := Convert_v1beta1_JobCondition_To_batch_JobCondition(&(*in)[i], &(*out)[i], s); err != nil { - return err - } - } - } else { - out.Conditions = nil - } - out.StartTime = in.StartTime - out.CompletionTime = in.CompletionTime + out.Conditions = *(*[]batch.JobCondition)(unsafe.Pointer(&in.Conditions)) + out.StartTime = (*unversioned.Time)(unsafe.Pointer(in.StartTime)) + out.CompletionTime = (*unversioned.Time)(unsafe.Pointer(in.CompletionTime)) out.Active = in.Active out.Succeeded = in.Succeeded out.Failed = in.Failed @@ -1513,19 +1185,9 @@ func Convert_v1beta1_JobStatus_To_batch_JobStatus(in *JobStatus, out *batch.JobS } func autoConvert_batch_JobStatus_To_v1beta1_JobStatus(in *batch.JobStatus, out *JobStatus, s conversion.Scope) error { - if in.Conditions != nil { - in, out := &in.Conditions, &out.Conditions - *out = make([]JobCondition, len(*in)) - for i := range *in { - if err := Convert_batch_JobCondition_To_v1beta1_JobCondition(&(*in)[i], &(*out)[i], s); err != nil { - return err - } - } - } else { - out.Conditions = nil - } - out.StartTime = in.StartTime - out.CompletionTime = in.CompletionTime + out.Conditions = *(*[]JobCondition)(unsafe.Pointer(&in.Conditions)) + out.StartTime = (*unversioned.Time)(unsafe.Pointer(in.StartTime)) + out.CompletionTime = (*unversioned.Time)(unsafe.Pointer(in.CompletionTime)) out.Active = in.Active out.Succeeded = in.Succeeded out.Failed = in.Failed @@ -1536,113 +1198,7 @@ func Convert_batch_JobStatus_To_v1beta1_JobStatus(in *batch.JobStatus, out *JobS return autoConvert_batch_JobStatus_To_v1beta1_JobStatus(in, out, s) } -func autoConvert_v1beta1_LabelSelector_To_unversioned_LabelSelector(in *LabelSelector, out *unversioned.LabelSelector, s conversion.Scope) error { - out.MatchLabels = in.MatchLabels - if in.MatchExpressions != nil { - in, out := &in.MatchExpressions, &out.MatchExpressions - *out = make([]unversioned.LabelSelectorRequirement, len(*in)) - for i := range *in { - if err := Convert_v1beta1_LabelSelectorRequirement_To_unversioned_LabelSelectorRequirement(&(*in)[i], &(*out)[i], s); err != nil { - return err - } - } - } else { - out.MatchExpressions = nil - } - return nil -} - -func Convert_v1beta1_LabelSelector_To_unversioned_LabelSelector(in *LabelSelector, out *unversioned.LabelSelector, s conversion.Scope) error { - return autoConvert_v1beta1_LabelSelector_To_unversioned_LabelSelector(in, out, s) -} - -func autoConvert_unversioned_LabelSelector_To_v1beta1_LabelSelector(in *unversioned.LabelSelector, out *LabelSelector, s conversion.Scope) error { - out.MatchLabels = in.MatchLabels - if in.MatchExpressions != nil { - in, out := &in.MatchExpressions, &out.MatchExpressions - *out = make([]LabelSelectorRequirement, len(*in)) - for i := range *in { - if err := Convert_unversioned_LabelSelectorRequirement_To_v1beta1_LabelSelectorRequirement(&(*in)[i], &(*out)[i], s); err != nil { - return err - } - } - } else { - out.MatchExpressions = nil - } - return nil -} - -func Convert_unversioned_LabelSelector_To_v1beta1_LabelSelector(in *unversioned.LabelSelector, out *LabelSelector, s conversion.Scope) error { - return autoConvert_unversioned_LabelSelector_To_v1beta1_LabelSelector(in, out, s) -} - -func autoConvert_v1beta1_LabelSelectorRequirement_To_unversioned_LabelSelectorRequirement(in *LabelSelectorRequirement, out *unversioned.LabelSelectorRequirement, s conversion.Scope) error { - out.Key = in.Key - out.Operator = unversioned.LabelSelectorOperator(in.Operator) - out.Values = in.Values - return nil -} - -func Convert_v1beta1_LabelSelectorRequirement_To_unversioned_LabelSelectorRequirement(in *LabelSelectorRequirement, out *unversioned.LabelSelectorRequirement, s conversion.Scope) error { - return autoConvert_v1beta1_LabelSelectorRequirement_To_unversioned_LabelSelectorRequirement(in, out, s) -} - -func autoConvert_unversioned_LabelSelectorRequirement_To_v1beta1_LabelSelectorRequirement(in *unversioned.LabelSelectorRequirement, out *LabelSelectorRequirement, s conversion.Scope) error { - out.Key = in.Key - out.Operator = LabelSelectorOperator(in.Operator) - out.Values = in.Values - return nil -} - -func Convert_unversioned_LabelSelectorRequirement_To_v1beta1_LabelSelectorRequirement(in *unversioned.LabelSelectorRequirement, out *LabelSelectorRequirement, s conversion.Scope) error { - return autoConvert_unversioned_LabelSelectorRequirement_To_v1beta1_LabelSelectorRequirement(in, out, s) -} - -func autoConvert_v1beta1_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_v1beta1_ListOptions_To_api_ListOptions(in *ListOptions, out *api.ListOptions, s conversion.Scope) error { - return autoConvert_v1beta1_ListOptions_To_api_ListOptions(in, out, s) -} - -func autoConvert_api_ListOptions_To_v1beta1_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_v1beta1_ListOptions(in *api.ListOptions, out *ListOptions, s conversion.Scope) error { - return autoConvert_api_ListOptions_To_v1beta1_ListOptions(in, out, s) -} - func autoConvert_v1beta1_NetworkPolicy_To_extensions_NetworkPolicy(in *NetworkPolicy, out *extensions.NetworkPolicy, s conversion.Scope) error { - SetDefaults_NetworkPolicy(in) - 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 @@ -1658,9 +1214,6 @@ func Convert_v1beta1_NetworkPolicy_To_extensions_NetworkPolicy(in *NetworkPolicy } func autoConvert_extensions_NetworkPolicy_To_v1beta1_NetworkPolicy(in *extensions.NetworkPolicy, out *NetworkPolicy, 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 @@ -1676,28 +1229,8 @@ func Convert_extensions_NetworkPolicy_To_v1beta1_NetworkPolicy(in *extensions.Ne } func autoConvert_v1beta1_NetworkPolicyIngressRule_To_extensions_NetworkPolicyIngressRule(in *NetworkPolicyIngressRule, out *extensions.NetworkPolicyIngressRule, s conversion.Scope) error { - if in.Ports != nil { - in, out := &in.Ports, &out.Ports - *out = make([]extensions.NetworkPolicyPort, len(*in)) - for i := range *in { - if err := Convert_v1beta1_NetworkPolicyPort_To_extensions_NetworkPolicyPort(&(*in)[i], &(*out)[i], s); err != nil { - return err - } - } - } else { - out.Ports = nil - } - if in.From != nil { - in, out := &in.From, &out.From - *out = make([]extensions.NetworkPolicyPeer, len(*in)) - for i := range *in { - if err := Convert_v1beta1_NetworkPolicyPeer_To_extensions_NetworkPolicyPeer(&(*in)[i], &(*out)[i], s); err != nil { - return err - } - } - } else { - out.From = nil - } + out.Ports = *(*[]extensions.NetworkPolicyPort)(unsafe.Pointer(&in.Ports)) + out.From = *(*[]extensions.NetworkPolicyPeer)(unsafe.Pointer(&in.From)) return nil } @@ -1706,28 +1239,8 @@ func Convert_v1beta1_NetworkPolicyIngressRule_To_extensions_NetworkPolicyIngress } func autoConvert_extensions_NetworkPolicyIngressRule_To_v1beta1_NetworkPolicyIngressRule(in *extensions.NetworkPolicyIngressRule, out *NetworkPolicyIngressRule, s conversion.Scope) error { - if in.Ports != nil { - in, out := &in.Ports, &out.Ports - *out = make([]NetworkPolicyPort, len(*in)) - for i := range *in { - if err := Convert_extensions_NetworkPolicyPort_To_v1beta1_NetworkPolicyPort(&(*in)[i], &(*out)[i], s); 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 := Convert_extensions_NetworkPolicyPeer_To_v1beta1_NetworkPolicyPeer(&(*in)[i], &(*out)[i], s); err != nil { - return err - } - } - } else { - out.From = nil - } + out.Ports = *(*[]NetworkPolicyPort)(unsafe.Pointer(&in.Ports)) + out.From = *(*[]NetworkPolicyPeer)(unsafe.Pointer(&in.From)) return nil } @@ -1736,23 +1249,8 @@ func Convert_extensions_NetworkPolicyIngressRule_To_v1beta1_NetworkPolicyIngress } func autoConvert_v1beta1_NetworkPolicyList_To_extensions_NetworkPolicyList(in *NetworkPolicyList, out *extensions.NetworkPolicyList, 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.NetworkPolicy, len(*in)) - for i := range *in { - if err := Convert_v1beta1_NetworkPolicy_To_extensions_NetworkPolicy(&(*in)[i], &(*out)[i], s); err != nil { - return err - } - } - } else { - out.Items = nil - } + out.ListMeta = in.ListMeta + out.Items = *(*[]extensions.NetworkPolicy)(unsafe.Pointer(&in.Items)) return nil } @@ -1761,23 +1259,8 @@ func Convert_v1beta1_NetworkPolicyList_To_extensions_NetworkPolicyList(in *Netwo } func autoConvert_extensions_NetworkPolicyList_To_v1beta1_NetworkPolicyList(in *extensions.NetworkPolicyList, out *NetworkPolicyList, 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([]NetworkPolicy, len(*in)) - for i := range *in { - if err := Convert_extensions_NetworkPolicy_To_v1beta1_NetworkPolicy(&(*in)[i], &(*out)[i], s); err != nil { - return err - } - } - } else { - out.Items = nil - } + out.ListMeta = in.ListMeta + out.Items = *(*[]NetworkPolicy)(unsafe.Pointer(&in.Items)) return nil } @@ -1786,24 +1269,8 @@ func Convert_extensions_NetworkPolicyList_To_v1beta1_NetworkPolicyList(in *exten } func autoConvert_v1beta1_NetworkPolicyPeer_To_extensions_NetworkPolicyPeer(in *NetworkPolicyPeer, out *extensions.NetworkPolicyPeer, s conversion.Scope) error { - if in.PodSelector != nil { - in, out := &in.PodSelector, &out.PodSelector - *out = new(unversioned.LabelSelector) - if err := Convert_v1beta1_LabelSelector_To_unversioned_LabelSelector(*in, *out, s); err != nil { - return err - } - } else { - out.PodSelector = nil - } - if in.NamespaceSelector != nil { - in, out := &in.NamespaceSelector, &out.NamespaceSelector - *out = new(unversioned.LabelSelector) - if err := Convert_v1beta1_LabelSelector_To_unversioned_LabelSelector(*in, *out, s); err != nil { - return err - } - } else { - out.NamespaceSelector = nil - } + out.PodSelector = (*unversioned.LabelSelector)(unsafe.Pointer(in.PodSelector)) + out.NamespaceSelector = (*unversioned.LabelSelector)(unsafe.Pointer(in.NamespaceSelector)) return nil } @@ -1812,24 +1279,8 @@ func Convert_v1beta1_NetworkPolicyPeer_To_extensions_NetworkPolicyPeer(in *Netwo } func autoConvert_extensions_NetworkPolicyPeer_To_v1beta1_NetworkPolicyPeer(in *extensions.NetworkPolicyPeer, out *NetworkPolicyPeer, s conversion.Scope) error { - if in.PodSelector != nil { - in, out := &in.PodSelector, &out.PodSelector - *out = new(LabelSelector) - if err := Convert_unversioned_LabelSelector_To_v1beta1_LabelSelector(*in, *out, s); err != nil { - return err - } - } else { - out.PodSelector = nil - } - if in.NamespaceSelector != nil { - in, out := &in.NamespaceSelector, &out.NamespaceSelector - *out = new(LabelSelector) - if err := Convert_unversioned_LabelSelector_To_v1beta1_LabelSelector(*in, *out, s); err != nil { - return err - } - } else { - out.NamespaceSelector = nil - } + out.PodSelector = (*unversioned.LabelSelector)(unsafe.Pointer(in.PodSelector)) + out.NamespaceSelector = (*unversioned.LabelSelector)(unsafe.Pointer(in.NamespaceSelector)) return nil } @@ -1838,14 +1289,8 @@ func Convert_extensions_NetworkPolicyPeer_To_v1beta1_NetworkPolicyPeer(in *exten } func autoConvert_v1beta1_NetworkPolicyPort_To_extensions_NetworkPolicyPort(in *NetworkPolicyPort, out *extensions.NetworkPolicyPort, s conversion.Scope) error { - if in.Protocol != nil { - in, out := &in.Protocol, &out.Protocol - *out = new(api.Protocol) - **out = api.Protocol(**in) - } else { - out.Protocol = nil - } - out.Port = in.Port + out.Protocol = (*api.Protocol)(unsafe.Pointer(in.Protocol)) + out.Port = (*intstr.IntOrString)(unsafe.Pointer(in.Port)) return nil } @@ -1854,14 +1299,8 @@ func Convert_v1beta1_NetworkPolicyPort_To_extensions_NetworkPolicyPort(in *Netwo } func autoConvert_extensions_NetworkPolicyPort_To_v1beta1_NetworkPolicyPort(in *extensions.NetworkPolicyPort, out *NetworkPolicyPort, s conversion.Scope) error { - if in.Protocol != nil { - in, out := &in.Protocol, &out.Protocol - *out = new(v1.Protocol) - **out = v1.Protocol(**in) - } else { - out.Protocol = nil - } - out.Port = in.Port + out.Protocol = (*v1.Protocol)(unsafe.Pointer(in.Protocol)) + out.Port = (*intstr.IntOrString)(unsafe.Pointer(in.Port)) return nil } @@ -1870,20 +1309,8 @@ func Convert_extensions_NetworkPolicyPort_To_v1beta1_NetworkPolicyPort(in *exten } func autoConvert_v1beta1_NetworkPolicySpec_To_extensions_NetworkPolicySpec(in *NetworkPolicySpec, out *extensions.NetworkPolicySpec, s conversion.Scope) error { - if err := Convert_v1beta1_LabelSelector_To_unversioned_LabelSelector(&in.PodSelector, &out.PodSelector, s); err != nil { - return err - } - if in.Ingress != nil { - in, out := &in.Ingress, &out.Ingress - *out = make([]extensions.NetworkPolicyIngressRule, len(*in)) - for i := range *in { - if err := Convert_v1beta1_NetworkPolicyIngressRule_To_extensions_NetworkPolicyIngressRule(&(*in)[i], &(*out)[i], s); err != nil { - return err - } - } - } else { - out.Ingress = nil - } + out.PodSelector = in.PodSelector + out.Ingress = *(*[]extensions.NetworkPolicyIngressRule)(unsafe.Pointer(&in.Ingress)) return nil } @@ -1892,20 +1319,8 @@ func Convert_v1beta1_NetworkPolicySpec_To_extensions_NetworkPolicySpec(in *Netwo } func autoConvert_extensions_NetworkPolicySpec_To_v1beta1_NetworkPolicySpec(in *extensions.NetworkPolicySpec, out *NetworkPolicySpec, s conversion.Scope) error { - if err := Convert_unversioned_LabelSelector_To_v1beta1_LabelSelector(&in.PodSelector, &out.PodSelector, s); 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 := Convert_extensions_NetworkPolicyIngressRule_To_v1beta1_NetworkPolicyIngressRule(&(*in)[i], &(*out)[i], s); err != nil { - return err - } - } - } else { - out.Ingress = nil - } + out.PodSelector = in.PodSelector + out.Ingress = *(*[]NetworkPolicyIngressRule)(unsafe.Pointer(&in.Ingress)) return nil } @@ -1914,9 +1329,6 @@ func Convert_extensions_NetworkPolicySpec_To_v1beta1_NetworkPolicySpec(in *exten } func autoConvert_v1beta1_PodSecurityPolicy_To_extensions_PodSecurityPolicy(in *PodSecurityPolicy, out *extensions.PodSecurityPolicy, 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 @@ -1932,9 +1344,6 @@ func Convert_v1beta1_PodSecurityPolicy_To_extensions_PodSecurityPolicy(in *PodSe } func autoConvert_extensions_PodSecurityPolicy_To_v1beta1_PodSecurityPolicy(in *extensions.PodSecurityPolicy, out *PodSecurityPolicy, 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 @@ -1950,12 +1359,7 @@ func Convert_extensions_PodSecurityPolicy_To_v1beta1_PodSecurityPolicy(in *exten } func autoConvert_v1beta1_PodSecurityPolicyList_To_extensions_PodSecurityPolicyList(in *PodSecurityPolicyList, out *extensions.PodSecurityPolicyList, 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 - } + out.ListMeta = in.ListMeta if in.Items != nil { in, out := &in.Items, &out.Items *out = make([]extensions.PodSecurityPolicy, len(*in)) @@ -1975,12 +1379,7 @@ func Convert_v1beta1_PodSecurityPolicyList_To_extensions_PodSecurityPolicyList(i } func autoConvert_extensions_PodSecurityPolicyList_To_v1beta1_PodSecurityPolicyList(in *extensions.PodSecurityPolicyList, out *PodSecurityPolicyList, 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 - } + out.ListMeta = in.ListMeta if in.Items != nil { in, out := &in.Items, &out.Items *out = make([]PodSecurityPolicy, len(*in)) @@ -2001,42 +1400,10 @@ func Convert_extensions_PodSecurityPolicyList_To_v1beta1_PodSecurityPolicyList(i func autoConvert_v1beta1_PodSecurityPolicySpec_To_extensions_PodSecurityPolicySpec(in *PodSecurityPolicySpec, out *extensions.PodSecurityPolicySpec, s conversion.Scope) 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] = api.Capability((*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] = api.Capability((*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] = api.Capability((*in)[i]) - } - } else { - out.AllowedCapabilities = nil - } - if in.Volumes != nil { - in, out := &in.Volumes, &out.Volumes - *out = make([]extensions.FSType, len(*in)) - for i := range *in { - (*out)[i] = extensions.FSType((*in)[i]) - } - } else { - out.Volumes = nil - } + out.DefaultAddCapabilities = *(*[]api.Capability)(unsafe.Pointer(&in.DefaultAddCapabilities)) + out.RequiredDropCapabilities = *(*[]api.Capability)(unsafe.Pointer(&in.RequiredDropCapabilities)) + out.AllowedCapabilities = *(*[]api.Capability)(unsafe.Pointer(&in.AllowedCapabilities)) + out.Volumes = *(*[]extensions.FSType)(unsafe.Pointer(&in.Volumes)) out.HostNetwork = in.HostNetwork if in.HostPorts != nil { in, out := &in.HostPorts, &out.HostPorts @@ -2073,42 +1440,10 @@ func Convert_v1beta1_PodSecurityPolicySpec_To_extensions_PodSecurityPolicySpec(i func autoConvert_extensions_PodSecurityPolicySpec_To_v1beta1_PodSecurityPolicySpec(in *extensions.PodSecurityPolicySpec, out *PodSecurityPolicySpec, s conversion.Scope) 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] = v1.Capability((*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] = v1.Capability((*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] = v1.Capability((*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] = FSType((*in)[i]) - } - } else { - out.Volumes = nil - } + out.DefaultAddCapabilities = *(*[]v1.Capability)(unsafe.Pointer(&in.DefaultAddCapabilities)) + out.RequiredDropCapabilities = *(*[]v1.Capability)(unsafe.Pointer(&in.RequiredDropCapabilities)) + out.AllowedCapabilities = *(*[]v1.Capability)(unsafe.Pointer(&in.AllowedCapabilities)) + out.Volumes = *(*[]FSType)(unsafe.Pointer(&in.Volumes)) out.HostNetwork = in.HostNetwork if in.HostPorts != nil { in, out := &in.HostPorts, &out.HostPorts @@ -2144,10 +1479,6 @@ func Convert_extensions_PodSecurityPolicySpec_To_v1beta1_PodSecurityPolicySpec(i } func autoConvert_v1beta1_ReplicaSet_To_extensions_ReplicaSet(in *ReplicaSet, out *extensions.ReplicaSet, s conversion.Scope) error { - SetDefaults_ReplicaSet(in) - 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 @@ -2166,9 +1497,6 @@ func Convert_v1beta1_ReplicaSet_To_extensions_ReplicaSet(in *ReplicaSet, out *ex } func autoConvert_extensions_ReplicaSet_To_v1beta1_ReplicaSet(in *extensions.ReplicaSet, out *ReplicaSet, 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 @@ -2186,13 +1514,34 @@ func Convert_extensions_ReplicaSet_To_v1beta1_ReplicaSet(in *extensions.ReplicaS return autoConvert_extensions_ReplicaSet_To_v1beta1_ReplicaSet(in, out, s) } +func autoConvert_v1beta1_ReplicaSetCondition_To_extensions_ReplicaSetCondition(in *ReplicaSetCondition, out *extensions.ReplicaSetCondition, s conversion.Scope) error { + out.Type = extensions.ReplicaSetConditionType(in.Type) + out.Status = api.ConditionStatus(in.Status) + out.LastTransitionTime = in.LastTransitionTime + out.Reason = in.Reason + out.Message = in.Message + return nil +} + +func Convert_v1beta1_ReplicaSetCondition_To_extensions_ReplicaSetCondition(in *ReplicaSetCondition, out *extensions.ReplicaSetCondition, s conversion.Scope) error { + return autoConvert_v1beta1_ReplicaSetCondition_To_extensions_ReplicaSetCondition(in, out, s) +} + +func autoConvert_extensions_ReplicaSetCondition_To_v1beta1_ReplicaSetCondition(in *extensions.ReplicaSetCondition, out *ReplicaSetCondition, s conversion.Scope) error { + out.Type = ReplicaSetConditionType(in.Type) + out.Status = v1.ConditionStatus(in.Status) + out.LastTransitionTime = in.LastTransitionTime + out.Reason = in.Reason + out.Message = in.Message + return nil +} + +func Convert_extensions_ReplicaSetCondition_To_v1beta1_ReplicaSetCondition(in *extensions.ReplicaSetCondition, out *ReplicaSetCondition, s conversion.Scope) error { + return autoConvert_extensions_ReplicaSetCondition_To_v1beta1_ReplicaSetCondition(in, out, s) +} + func autoConvert_v1beta1_ReplicaSetList_To_extensions_ReplicaSetList(in *ReplicaSetList, out *extensions.ReplicaSetList, 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 - } + out.ListMeta = in.ListMeta if in.Items != nil { in, out := &in.Items, &out.Items *out = make([]extensions.ReplicaSet, len(*in)) @@ -2212,12 +1561,7 @@ func Convert_v1beta1_ReplicaSetList_To_extensions_ReplicaSetList(in *ReplicaSetL } func autoConvert_extensions_ReplicaSetList_To_v1beta1_ReplicaSetList(in *extensions.ReplicaSetList, out *ReplicaSetList, 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 - } + out.ListMeta = in.ListMeta if in.Items != nil { in, out := &in.Items, &out.Items *out = make([]ReplicaSet, len(*in)) @@ -2240,15 +1584,8 @@ func autoConvert_v1beta1_ReplicaSetSpec_To_extensions_ReplicaSetSpec(in *Replica 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 - } + out.MinReadySeconds = in.MinReadySeconds + out.Selector = (*unversioned.LabelSelector)(unsafe.Pointer(in.Selector)) if err := v1.Convert_v1_PodTemplateSpec_To_api_PodTemplateSpec(&in.Template, &out.Template, s); err != nil { return err } @@ -2259,15 +1596,8 @@ func autoConvert_extensions_ReplicaSetSpec_To_v1beta1_ReplicaSetSpec(in *extensi 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 - } + out.MinReadySeconds = in.MinReadySeconds + out.Selector = (*unversioned.LabelSelector)(unsafe.Pointer(in.Selector)) if err := v1.Convert_api_PodTemplateSpec_To_v1_PodTemplateSpec(&in.Template, &out.Template, s); err != nil { return err } @@ -2278,7 +1608,9 @@ func autoConvert_v1beta1_ReplicaSetStatus_To_extensions_ReplicaSetStatus(in *Rep out.Replicas = in.Replicas out.FullyLabeledReplicas = in.FullyLabeledReplicas out.ReadyReplicas = in.ReadyReplicas + out.AvailableReplicas = in.AvailableReplicas out.ObservedGeneration = in.ObservedGeneration + out.Conditions = *(*[]extensions.ReplicaSetCondition)(unsafe.Pointer(&in.Conditions)) return nil } @@ -2290,7 +1622,9 @@ func autoConvert_extensions_ReplicaSetStatus_To_v1beta1_ReplicaSetStatus(in *ext out.Replicas = in.Replicas out.FullyLabeledReplicas = in.FullyLabeledReplicas out.ReadyReplicas = in.ReadyReplicas + out.AvailableReplicas = in.AvailableReplicas out.ObservedGeneration = in.ObservedGeneration + out.Conditions = *(*[]ReplicaSetCondition)(unsafe.Pointer(&in.Conditions)) return nil } @@ -2299,9 +1633,6 @@ func Convert_extensions_ReplicaSetStatus_To_v1beta1_ReplicaSetStatus(in *extensi } func autoConvert_v1beta1_ReplicationControllerDummy_To_extensions_ReplicationControllerDummy(in *ReplicationControllerDummy, out *extensions.ReplicationControllerDummy, s conversion.Scope) error { - if err := api.Convert_unversioned_TypeMeta_To_unversioned_TypeMeta(&in.TypeMeta, &out.TypeMeta, s); err != nil { - return err - } return nil } @@ -2310,9 +1641,6 @@ func Convert_v1beta1_ReplicationControllerDummy_To_extensions_ReplicationControl } func autoConvert_extensions_ReplicationControllerDummy_To_v1beta1_ReplicationControllerDummy(in *extensions.ReplicationControllerDummy, out *ReplicationControllerDummy, s conversion.Scope) error { - if err := api.Convert_unversioned_TypeMeta_To_unversioned_TypeMeta(&in.TypeMeta, &out.TypeMeta, s); err != nil { - return err - } return nil } @@ -2352,17 +1680,7 @@ func autoConvert_extensions_RollingUpdateDeployment_To_v1beta1_RollingUpdateDepl func autoConvert_v1beta1_RunAsUserStrategyOptions_To_extensions_RunAsUserStrategyOptions(in *RunAsUserStrategyOptions, out *extensions.RunAsUserStrategyOptions, s conversion.Scope) error { out.Rule = extensions.RunAsUserStrategy(in.Rule) - if in.Ranges != nil { - in, out := &in.Ranges, &out.Ranges - *out = make([]extensions.IDRange, len(*in)) - for i := range *in { - if err := Convert_v1beta1_IDRange_To_extensions_IDRange(&(*in)[i], &(*out)[i], s); err != nil { - return err - } - } - } else { - out.Ranges = nil - } + out.Ranges = *(*[]extensions.IDRange)(unsafe.Pointer(&in.Ranges)) return nil } @@ -2372,17 +1690,7 @@ func Convert_v1beta1_RunAsUserStrategyOptions_To_extensions_RunAsUserStrategyOpt func autoConvert_extensions_RunAsUserStrategyOptions_To_v1beta1_RunAsUserStrategyOptions(in *extensions.RunAsUserStrategyOptions, out *RunAsUserStrategyOptions, s conversion.Scope) error { out.Rule = RunAsUserStrategy(in.Rule) - if in.Ranges != nil { - in, out := &in.Ranges, &out.Ranges - *out = make([]IDRange, len(*in)) - for i := range *in { - if err := Convert_extensions_IDRange_To_v1beta1_IDRange(&(*in)[i], &(*out)[i], s); err != nil { - return err - } - } - } else { - out.Ranges = nil - } + out.Ranges = *(*[]IDRange)(unsafe.Pointer(&in.Ranges)) return nil } @@ -2392,16 +1700,7 @@ func Convert_extensions_RunAsUserStrategyOptions_To_v1beta1_RunAsUserStrategyOpt func autoConvert_v1beta1_SELinuxStrategyOptions_To_extensions_SELinuxStrategyOptions(in *SELinuxStrategyOptions, out *extensions.SELinuxStrategyOptions, s conversion.Scope) error { out.Rule = extensions.SELinuxStrategy(in.Rule) - if in.SELinuxOptions != nil { - in, out := &in.SELinuxOptions, &out.SELinuxOptions - *out = new(api.SELinuxOptions) - // TODO: Inefficient conversion - can we improve it? - if err := s.Convert(*in, *out, 0); err != nil { - return err - } - } else { - out.SELinuxOptions = nil - } + out.SELinuxOptions = (*api.SELinuxOptions)(unsafe.Pointer(in.SELinuxOptions)) return nil } @@ -2411,16 +1710,7 @@ func Convert_v1beta1_SELinuxStrategyOptions_To_extensions_SELinuxStrategyOptions func autoConvert_extensions_SELinuxStrategyOptions_To_v1beta1_SELinuxStrategyOptions(in *extensions.SELinuxStrategyOptions, out *SELinuxStrategyOptions, s conversion.Scope) error { out.Rule = SELinuxStrategy(in.Rule) - if in.SELinuxOptions != nil { - in, out := &in.SELinuxOptions, &out.SELinuxOptions - *out = new(v1.SELinuxOptions) - // TODO: Inefficient conversion - can we improve it? - if err := s.Convert(*in, *out, 0); err != nil { - return err - } - } else { - out.SELinuxOptions = nil - } + out.SELinuxOptions = (*v1.SELinuxOptions)(unsafe.Pointer(in.SELinuxOptions)) return nil } @@ -2429,9 +1719,6 @@ func Convert_extensions_SELinuxStrategyOptions_To_v1beta1_SELinuxStrategyOptions } func autoConvert_v1beta1_Scale_To_extensions_Scale(in *Scale, out *extensions.Scale, 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 @@ -2450,9 +1737,6 @@ func Convert_v1beta1_Scale_To_extensions_Scale(in *Scale, out *extensions.Scale, } func autoConvert_extensions_Scale_To_v1beta1_Scale(in *extensions.Scale, out *Scale, 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 @@ -2503,17 +1787,7 @@ func autoConvert_extensions_ScaleStatus_To_v1beta1_ScaleStatus(in *extensions.Sc 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 { - in, out := &in.Ranges, &out.Ranges - *out = make([]extensions.IDRange, len(*in)) - for i := range *in { - if err := Convert_v1beta1_IDRange_To_extensions_IDRange(&(*in)[i], &(*out)[i], s); err != nil { - return err - } - } - } else { - out.Ranges = nil - } + out.Ranges = *(*[]extensions.IDRange)(unsafe.Pointer(&in.Ranges)) return nil } @@ -2523,17 +1797,7 @@ func Convert_v1beta1_SupplementalGroupsStrategyOptions_To_extensions_Supplementa func autoConvert_extensions_SupplementalGroupsStrategyOptions_To_v1beta1_SupplementalGroupsStrategyOptions(in *extensions.SupplementalGroupsStrategyOptions, out *SupplementalGroupsStrategyOptions, s conversion.Scope) error { out.Rule = SupplementalGroupsStrategyType(in.Rule) - if in.Ranges != nil { - in, out := &in.Ranges, &out.Ranges - *out = make([]IDRange, len(*in)) - for i := range *in { - if err := Convert_extensions_IDRange_To_v1beta1_IDRange(&(*in)[i], &(*out)[i], s); err != nil { - return err - } - } - } else { - out.Ranges = nil - } + out.Ranges = *(*[]IDRange)(unsafe.Pointer(&in.Ranges)) return nil } @@ -2542,25 +1806,12 @@ func Convert_extensions_SupplementalGroupsStrategyOptions_To_v1beta1_Supplementa } func autoConvert_v1beta1_ThirdPartyResource_To_extensions_ThirdPartyResource(in *ThirdPartyResource, out *extensions.ThirdPartyResource, 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.Description = in.Description - if in.Versions != nil { - in, out := &in.Versions, &out.Versions - *out = make([]extensions.APIVersion, len(*in)) - for i := range *in { - if err := Convert_v1beta1_APIVersion_To_extensions_APIVersion(&(*in)[i], &(*out)[i], s); err != nil { - return err - } - } - } else { - out.Versions = nil - } + out.Versions = *(*[]extensions.APIVersion)(unsafe.Pointer(&in.Versions)) return nil } @@ -2569,25 +1820,12 @@ func Convert_v1beta1_ThirdPartyResource_To_extensions_ThirdPartyResource(in *Thi } func autoConvert_extensions_ThirdPartyResource_To_v1beta1_ThirdPartyResource(in *extensions.ThirdPartyResource, out *ThirdPartyResource, 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.Description = in.Description - if in.Versions != nil { - in, out := &in.Versions, &out.Versions - *out = make([]APIVersion, len(*in)) - for i := range *in { - if err := Convert_extensions_APIVersion_To_v1beta1_APIVersion(&(*in)[i], &(*out)[i], s); err != nil { - return err - } - } - } else { - out.Versions = nil - } + out.Versions = *(*[]APIVersion)(unsafe.Pointer(&in.Versions)) return nil } @@ -2596,16 +1834,11 @@ func Convert_extensions_ThirdPartyResource_To_v1beta1_ThirdPartyResource(in *ext } func autoConvert_v1beta1_ThirdPartyResourceData_To_extensions_ThirdPartyResourceData(in *ThirdPartyResourceData, out *extensions.ThirdPartyResourceData, 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 := conversion.Convert_Slice_byte_To_Slice_byte(&in.Data, &out.Data, s); err != nil { - return err - } + out.Data = *(*[]byte)(unsafe.Pointer(&in.Data)) return nil } @@ -2614,16 +1847,11 @@ func Convert_v1beta1_ThirdPartyResourceData_To_extensions_ThirdPartyResourceData } func autoConvert_extensions_ThirdPartyResourceData_To_v1beta1_ThirdPartyResourceData(in *extensions.ThirdPartyResourceData, out *ThirdPartyResourceData, 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 := conversion.Convert_Slice_byte_To_Slice_byte(&in.Data, &out.Data, s); err != nil { - return err - } + out.Data = *(*[]byte)(unsafe.Pointer(&in.Data)) return nil } @@ -2632,23 +1860,8 @@ func Convert_extensions_ThirdPartyResourceData_To_v1beta1_ThirdPartyResourceData } func autoConvert_v1beta1_ThirdPartyResourceDataList_To_extensions_ThirdPartyResourceDataList(in *ThirdPartyResourceDataList, out *extensions.ThirdPartyResourceDataList, 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.ThirdPartyResourceData, len(*in)) - for i := range *in { - if err := Convert_v1beta1_ThirdPartyResourceData_To_extensions_ThirdPartyResourceData(&(*in)[i], &(*out)[i], s); err != nil { - return err - } - } - } else { - out.Items = nil - } + out.ListMeta = in.ListMeta + out.Items = *(*[]extensions.ThirdPartyResourceData)(unsafe.Pointer(&in.Items)) return nil } @@ -2657,23 +1870,8 @@ func Convert_v1beta1_ThirdPartyResourceDataList_To_extensions_ThirdPartyResource } func autoConvert_extensions_ThirdPartyResourceDataList_To_v1beta1_ThirdPartyResourceDataList(in *extensions.ThirdPartyResourceDataList, out *ThirdPartyResourceDataList, 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([]ThirdPartyResourceData, len(*in)) - for i := range *in { - if err := Convert_extensions_ThirdPartyResourceData_To_v1beta1_ThirdPartyResourceData(&(*in)[i], &(*out)[i], s); err != nil { - return err - } - } - } else { - out.Items = nil - } + out.ListMeta = in.ListMeta + out.Items = *(*[]ThirdPartyResourceData)(unsafe.Pointer(&in.Items)) return nil } @@ -2682,23 +1880,8 @@ func Convert_extensions_ThirdPartyResourceDataList_To_v1beta1_ThirdPartyResource } func autoConvert_v1beta1_ThirdPartyResourceList_To_extensions_ThirdPartyResourceList(in *ThirdPartyResourceList, out *extensions.ThirdPartyResourceList, 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.ThirdPartyResource, len(*in)) - for i := range *in { - if err := Convert_v1beta1_ThirdPartyResource_To_extensions_ThirdPartyResource(&(*in)[i], &(*out)[i], s); err != nil { - return err - } - } - } else { - out.Items = nil - } + out.ListMeta = in.ListMeta + out.Items = *(*[]extensions.ThirdPartyResource)(unsafe.Pointer(&in.Items)) return nil } @@ -2707,23 +1890,8 @@ func Convert_v1beta1_ThirdPartyResourceList_To_extensions_ThirdPartyResourceList } func autoConvert_extensions_ThirdPartyResourceList_To_v1beta1_ThirdPartyResourceList(in *extensions.ThirdPartyResourceList, out *ThirdPartyResourceList, 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([]ThirdPartyResource, len(*in)) - for i := range *in { - if err := Convert_extensions_ThirdPartyResource_To_v1beta1_ThirdPartyResource(&(*in)[i], &(*out)[i], s); err != nil { - return err - } - } - } else { - out.Items = nil - } + out.ListMeta = in.ListMeta + out.Items = *(*[]ThirdPartyResource)(unsafe.Pointer(&in.Items)) return nil } diff --git a/vendor/k8s.io/client-go/1.5/pkg/apis/extensions/v1beta1/zz_generated.deepcopy.go b/vendor/k8s.io/client-go/pkg/apis/extensions/v1beta1/zz_generated.deepcopy.go similarity index 93% rename from vendor/k8s.io/client-go/1.5/pkg/apis/extensions/v1beta1/zz_generated.deepcopy.go rename to vendor/k8s.io/client-go/pkg/apis/extensions/v1beta1/zz_generated.deepcopy.go index 614d0d6c1..6c84195ac 100644 --- a/vendor/k8s.io/client-go/1.5/pkg/apis/extensions/v1beta1/zz_generated.deepcopy.go +++ b/vendor/k8s.io/client-go/pkg/apis/extensions/v1beta1/zz_generated.deepcopy.go @@ -1,7 +1,7 @@ // +build !ignore_autogenerated /* -Copyright 2016 The Kubernetes Authors. +Copyright 2017 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -21,11 +21,11 @@ limitations under the License. package v1beta1 import ( - unversioned "k8s.io/client-go/1.5/pkg/api/unversioned" - v1 "k8s.io/client-go/1.5/pkg/api/v1" - conversion "k8s.io/client-go/1.5/pkg/conversion" - runtime "k8s.io/client-go/1.5/pkg/runtime" - intstr "k8s.io/client-go/1.5/pkg/util/intstr" + unversioned "k8s.io/client-go/pkg/api/unversioned" + v1 "k8s.io/client-go/pkg/api/v1" + conversion "k8s.io/client-go/pkg/conversion" + runtime "k8s.io/client-go/pkg/runtime" + intstr "k8s.io/client-go/pkg/util/intstr" reflect "reflect" ) @@ -48,6 +48,7 @@ func RegisterDeepCopies(scheme *runtime.Scheme) error { 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_DeploymentCondition, InType: reflect.TypeOf(&DeploymentCondition{})}, 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{})}, @@ -76,9 +77,6 @@ func RegisterDeepCopies(scheme *runtime.Scheme) error { 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{})}, @@ -89,6 +87,7 @@ func RegisterDeepCopies(scheme *runtime.Scheme) error { 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_ReplicaSetCondition, InType: reflect.TypeOf(&ReplicaSetCondition{})}, 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{})}, @@ -228,8 +227,8 @@ func DeepCopy_v1beta1_DaemonSetSpec(in interface{}, out interface{}, c *conversi 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 { + *out = new(unversioned.LabelSelector) + if err := unversioned.DeepCopy_unversioned_LabelSelector(*in, *out, c); err != nil { return err } } else { @@ -249,6 +248,7 @@ func DeepCopy_v1beta1_DaemonSetStatus(in interface{}, out interface{}, c *conver out.CurrentNumberScheduled = in.CurrentNumberScheduled out.NumberMisscheduled = in.NumberMisscheduled out.DesiredNumberScheduled = in.DesiredNumberScheduled + out.NumberReady = in.NumberReady return nil } } @@ -264,7 +264,23 @@ func DeepCopy_v1beta1_Deployment(in interface{}, out interface{}, c *conversion. if err := DeepCopy_v1beta1_DeploymentSpec(&in.Spec, &out.Spec, c); err != nil { return err } + if err := DeepCopy_v1beta1_DeploymentStatus(&in.Status, &out.Status, c); err != nil { + return err + } + return nil + } +} + +func DeepCopy_v1beta1_DeploymentCondition(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*DeploymentCondition) + out := out.(*DeploymentCondition) + out.Type = in.Type out.Status = in.Status + out.LastUpdateTime = in.LastUpdateTime.DeepCopy() + out.LastTransitionTime = in.LastTransitionTime.DeepCopy() + out.Reason = in.Reason + out.Message = in.Message return nil } } @@ -323,8 +339,8 @@ func DeepCopy_v1beta1_DeploymentSpec(in interface{}, out interface{}, c *convers } if in.Selector != nil { in, out := &in.Selector, &out.Selector - *out = new(LabelSelector) - if err := DeepCopy_v1beta1_LabelSelector(*in, *out, c); err != nil { + *out = new(unversioned.LabelSelector) + if err := unversioned.DeepCopy_unversioned_LabelSelector(*in, *out, c); err != nil { return err } } else { @@ -352,6 +368,13 @@ func DeepCopy_v1beta1_DeploymentSpec(in interface{}, out interface{}, c *convers } else { out.RollbackTo = nil } + if in.ProgressDeadlineSeconds != nil { + in, out := &in.ProgressDeadlineSeconds, &out.ProgressDeadlineSeconds + *out = new(int32) + **out = **in + } else { + out.ProgressDeadlineSeconds = nil + } return nil } } @@ -365,6 +388,17 @@ func DeepCopy_v1beta1_DeploymentStatus(in interface{}, out interface{}, c *conve out.UpdatedReplicas = in.UpdatedReplicas out.AvailableReplicas = in.AvailableReplicas out.UnavailableReplicas = in.UnavailableReplicas + if in.Conditions != nil { + in, out := &in.Conditions, &out.Conditions + *out = make([]DeploymentCondition, len(*in)) + for i := range *in { + if err := DeepCopy_v1beta1_DeploymentCondition(&(*in)[i], &(*out)[i], c); err != nil { + return err + } + } + } else { + out.Conditions = nil + } return nil } } @@ -779,8 +813,8 @@ func DeepCopy_v1beta1_JobSpec(in interface{}, out interface{}, c *conversion.Clo } if in.Selector != nil { in, out := &in.Selector, &out.Selector - *out = new(LabelSelector) - if err := DeepCopy_v1beta1_LabelSelector(*in, *out, c); err != nil { + *out = new(unversioned.LabelSelector) + if err := unversioned.DeepCopy_unversioned_LabelSelector(*in, *out, c); err != nil { return err } } else { @@ -836,71 +870,6 @@ func DeepCopy_v1beta1_JobStatus(in interface{}, out interface{}, c *conversion.C } } -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) @@ -973,8 +942,8 @@ func DeepCopy_v1beta1_NetworkPolicyPeer(in interface{}, out interface{}, c *conv 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 { + *out = new(unversioned.LabelSelector) + if err := unversioned.DeepCopy_unversioned_LabelSelector(*in, *out, c); err != nil { return err } } else { @@ -982,8 +951,8 @@ func DeepCopy_v1beta1_NetworkPolicyPeer(in interface{}, out interface{}, c *conv } if in.NamespaceSelector != nil { in, out := &in.NamespaceSelector, &out.NamespaceSelector - *out = new(LabelSelector) - if err := DeepCopy_v1beta1_LabelSelector(*in, *out, c); err != nil { + *out = new(unversioned.LabelSelector) + if err := unversioned.DeepCopy_unversioned_LabelSelector(*in, *out, c); err != nil { return err } } else { @@ -1019,7 +988,7 @@ func DeepCopy_v1beta1_NetworkPolicySpec(in interface{}, out interface{}, c *conv { in := in.(*NetworkPolicySpec) out := out.(*NetworkPolicySpec) - if err := DeepCopy_v1beta1_LabelSelector(&in.PodSelector, &out.PodSelector, c); err != nil { + if err := unversioned.DeepCopy_unversioned_LabelSelector(&in.PodSelector, &out.PodSelector, c); err != nil { return err } if in.Ingress != nil { @@ -1154,7 +1123,22 @@ func DeepCopy_v1beta1_ReplicaSet(in interface{}, out interface{}, c *conversion. if err := DeepCopy_v1beta1_ReplicaSetSpec(&in.Spec, &out.Spec, c); err != nil { return err } + if err := DeepCopy_v1beta1_ReplicaSetStatus(&in.Status, &out.Status, c); err != nil { + return err + } + return nil + } +} + +func DeepCopy_v1beta1_ReplicaSetCondition(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*ReplicaSetCondition) + out := out.(*ReplicaSetCondition) + out.Type = in.Type out.Status = in.Status + out.LastTransitionTime = in.LastTransitionTime.DeepCopy() + out.Reason = in.Reason + out.Message = in.Message return nil } } @@ -1191,10 +1175,11 @@ func DeepCopy_v1beta1_ReplicaSetSpec(in interface{}, out interface{}, c *convers } else { out.Replicas = nil } + out.MinReadySeconds = in.MinReadySeconds if in.Selector != nil { in, out := &in.Selector, &out.Selector - *out = new(LabelSelector) - if err := DeepCopy_v1beta1_LabelSelector(*in, *out, c); err != nil { + *out = new(unversioned.LabelSelector) + if err := unversioned.DeepCopy_unversioned_LabelSelector(*in, *out, c); err != nil { return err } } else { @@ -1214,7 +1199,19 @@ func DeepCopy_v1beta1_ReplicaSetStatus(in interface{}, out interface{}, c *conve out.Replicas = in.Replicas out.FullyLabeledReplicas = in.FullyLabeledReplicas out.ReadyReplicas = in.ReadyReplicas + out.AvailableReplicas = in.AvailableReplicas out.ObservedGeneration = in.ObservedGeneration + if in.Conditions != nil { + in, out := &in.Conditions, &out.Conditions + *out = make([]ReplicaSetCondition, len(*in)) + for i := range *in { + if err := DeepCopy_v1beta1_ReplicaSetCondition(&(*in)[i], &(*out)[i], c); err != nil { + return err + } + } + } else { + out.Conditions = nil + } return nil } } diff --git a/vendor/k8s.io/client-go/pkg/apis/extensions/v1beta1/zz_generated.defaults.go b/vendor/k8s.io/client-go/pkg/apis/extensions/v1beta1/zz_generated.defaults.go new file mode 100644 index 000000000..2c9708f8c --- /dev/null +++ b/vendor/k8s.io/client-go/pkg/apis/extensions/v1beta1/zz_generated.defaults.go @@ -0,0 +1,565 @@ +// +build !ignore_autogenerated + +/* +Copyright 2017 The Kubernetes Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT 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 defaulter-gen. Do not edit it manually! + +package v1beta1 + +import ( + v1 "k8s.io/client-go/pkg/api/v1" + runtime "k8s.io/client-go/pkg/runtime" +) + +// RegisterDefaults adds defaulters functions to the given scheme. +// Public to allow building arbitrary schemes. +// All generated defaulters are covering - they call all nested defaulters. +func RegisterDefaults(scheme *runtime.Scheme) error { + scheme.AddTypeDefaultingFunc(&DaemonSet{}, func(obj interface{}) { SetObjectDefaults_DaemonSet(obj.(*DaemonSet)) }) + scheme.AddTypeDefaultingFunc(&DaemonSetList{}, func(obj interface{}) { SetObjectDefaults_DaemonSetList(obj.(*DaemonSetList)) }) + scheme.AddTypeDefaultingFunc(&Deployment{}, func(obj interface{}) { SetObjectDefaults_Deployment(obj.(*Deployment)) }) + scheme.AddTypeDefaultingFunc(&DeploymentList{}, func(obj interface{}) { SetObjectDefaults_DeploymentList(obj.(*DeploymentList)) }) + scheme.AddTypeDefaultingFunc(&HorizontalPodAutoscaler{}, func(obj interface{}) { SetObjectDefaults_HorizontalPodAutoscaler(obj.(*HorizontalPodAutoscaler)) }) + scheme.AddTypeDefaultingFunc(&HorizontalPodAutoscalerList{}, func(obj interface{}) { + SetObjectDefaults_HorizontalPodAutoscalerList(obj.(*HorizontalPodAutoscalerList)) + }) + scheme.AddTypeDefaultingFunc(&Job{}, func(obj interface{}) { SetObjectDefaults_Job(obj.(*Job)) }) + scheme.AddTypeDefaultingFunc(&JobList{}, func(obj interface{}) { SetObjectDefaults_JobList(obj.(*JobList)) }) + scheme.AddTypeDefaultingFunc(&NetworkPolicy{}, func(obj interface{}) { SetObjectDefaults_NetworkPolicy(obj.(*NetworkPolicy)) }) + scheme.AddTypeDefaultingFunc(&NetworkPolicyList{}, func(obj interface{}) { SetObjectDefaults_NetworkPolicyList(obj.(*NetworkPolicyList)) }) + scheme.AddTypeDefaultingFunc(&ReplicaSet{}, func(obj interface{}) { SetObjectDefaults_ReplicaSet(obj.(*ReplicaSet)) }) + scheme.AddTypeDefaultingFunc(&ReplicaSetList{}, func(obj interface{}) { SetObjectDefaults_ReplicaSetList(obj.(*ReplicaSetList)) }) + return nil +} + +func SetObjectDefaults_DaemonSet(in *DaemonSet) { + SetDefaults_DaemonSet(in) + v1.SetDefaults_PodSpec(&in.Spec.Template.Spec) + for i := range in.Spec.Template.Spec.Volumes { + a := &in.Spec.Template.Spec.Volumes[i] + v1.SetDefaults_Volume(a) + if a.VolumeSource.Secret != nil { + v1.SetDefaults_SecretVolumeSource(a.VolumeSource.Secret) + } + if a.VolumeSource.ISCSI != nil { + v1.SetDefaults_ISCSIVolumeSource(a.VolumeSource.ISCSI) + } + if a.VolumeSource.RBD != nil { + v1.SetDefaults_RBDVolumeSource(a.VolumeSource.RBD) + } + if a.VolumeSource.DownwardAPI != nil { + v1.SetDefaults_DownwardAPIVolumeSource(a.VolumeSource.DownwardAPI) + for j := range a.VolumeSource.DownwardAPI.Items { + b := &a.VolumeSource.DownwardAPI.Items[j] + if b.FieldRef != nil { + v1.SetDefaults_ObjectFieldSelector(b.FieldRef) + } + } + } + if a.VolumeSource.ConfigMap != nil { + v1.SetDefaults_ConfigMapVolumeSource(a.VolumeSource.ConfigMap) + } + if a.VolumeSource.AzureDisk != nil { + v1.SetDefaults_AzureDiskVolumeSource(a.VolumeSource.AzureDisk) + } + } + for i := range in.Spec.Template.Spec.InitContainers { + a := &in.Spec.Template.Spec.InitContainers[i] + v1.SetDefaults_Container(a) + for j := range a.Ports { + b := &a.Ports[j] + v1.SetDefaults_ContainerPort(b) + } + for j := range a.Env { + b := &a.Env[j] + if b.ValueFrom != nil { + if b.ValueFrom.FieldRef != nil { + v1.SetDefaults_ObjectFieldSelector(b.ValueFrom.FieldRef) + } + } + } + v1.SetDefaults_ResourceList(&a.Resources.Limits) + v1.SetDefaults_ResourceList(&a.Resources.Requests) + if a.LivenessProbe != nil { + v1.SetDefaults_Probe(a.LivenessProbe) + if a.LivenessProbe.Handler.HTTPGet != nil { + v1.SetDefaults_HTTPGetAction(a.LivenessProbe.Handler.HTTPGet) + } + } + if a.ReadinessProbe != nil { + v1.SetDefaults_Probe(a.ReadinessProbe) + if a.ReadinessProbe.Handler.HTTPGet != nil { + v1.SetDefaults_HTTPGetAction(a.ReadinessProbe.Handler.HTTPGet) + } + } + if a.Lifecycle != nil { + if a.Lifecycle.PostStart != nil { + if a.Lifecycle.PostStart.HTTPGet != nil { + v1.SetDefaults_HTTPGetAction(a.Lifecycle.PostStart.HTTPGet) + } + } + if a.Lifecycle.PreStop != nil { + if a.Lifecycle.PreStop.HTTPGet != nil { + v1.SetDefaults_HTTPGetAction(a.Lifecycle.PreStop.HTTPGet) + } + } + } + } + for i := range in.Spec.Template.Spec.Containers { + a := &in.Spec.Template.Spec.Containers[i] + v1.SetDefaults_Container(a) + for j := range a.Ports { + b := &a.Ports[j] + v1.SetDefaults_ContainerPort(b) + } + for j := range a.Env { + b := &a.Env[j] + if b.ValueFrom != nil { + if b.ValueFrom.FieldRef != nil { + v1.SetDefaults_ObjectFieldSelector(b.ValueFrom.FieldRef) + } + } + } + v1.SetDefaults_ResourceList(&a.Resources.Limits) + v1.SetDefaults_ResourceList(&a.Resources.Requests) + if a.LivenessProbe != nil { + v1.SetDefaults_Probe(a.LivenessProbe) + if a.LivenessProbe.Handler.HTTPGet != nil { + v1.SetDefaults_HTTPGetAction(a.LivenessProbe.Handler.HTTPGet) + } + } + if a.ReadinessProbe != nil { + v1.SetDefaults_Probe(a.ReadinessProbe) + if a.ReadinessProbe.Handler.HTTPGet != nil { + v1.SetDefaults_HTTPGetAction(a.ReadinessProbe.Handler.HTTPGet) + } + } + if a.Lifecycle != nil { + if a.Lifecycle.PostStart != nil { + if a.Lifecycle.PostStart.HTTPGet != nil { + v1.SetDefaults_HTTPGetAction(a.Lifecycle.PostStart.HTTPGet) + } + } + if a.Lifecycle.PreStop != nil { + if a.Lifecycle.PreStop.HTTPGet != nil { + v1.SetDefaults_HTTPGetAction(a.Lifecycle.PreStop.HTTPGet) + } + } + } + } +} + +func SetObjectDefaults_DaemonSetList(in *DaemonSetList) { + for i := range in.Items { + a := &in.Items[i] + SetObjectDefaults_DaemonSet(a) + } +} + +func SetObjectDefaults_Deployment(in *Deployment) { + SetDefaults_Deployment(in) + v1.SetDefaults_PodSpec(&in.Spec.Template.Spec) + for i := range in.Spec.Template.Spec.Volumes { + a := &in.Spec.Template.Spec.Volumes[i] + v1.SetDefaults_Volume(a) + if a.VolumeSource.Secret != nil { + v1.SetDefaults_SecretVolumeSource(a.VolumeSource.Secret) + } + if a.VolumeSource.ISCSI != nil { + v1.SetDefaults_ISCSIVolumeSource(a.VolumeSource.ISCSI) + } + if a.VolumeSource.RBD != nil { + v1.SetDefaults_RBDVolumeSource(a.VolumeSource.RBD) + } + if a.VolumeSource.DownwardAPI != nil { + v1.SetDefaults_DownwardAPIVolumeSource(a.VolumeSource.DownwardAPI) + for j := range a.VolumeSource.DownwardAPI.Items { + b := &a.VolumeSource.DownwardAPI.Items[j] + if b.FieldRef != nil { + v1.SetDefaults_ObjectFieldSelector(b.FieldRef) + } + } + } + if a.VolumeSource.ConfigMap != nil { + v1.SetDefaults_ConfigMapVolumeSource(a.VolumeSource.ConfigMap) + } + if a.VolumeSource.AzureDisk != nil { + v1.SetDefaults_AzureDiskVolumeSource(a.VolumeSource.AzureDisk) + } + } + for i := range in.Spec.Template.Spec.InitContainers { + a := &in.Spec.Template.Spec.InitContainers[i] + v1.SetDefaults_Container(a) + for j := range a.Ports { + b := &a.Ports[j] + v1.SetDefaults_ContainerPort(b) + } + for j := range a.Env { + b := &a.Env[j] + if b.ValueFrom != nil { + if b.ValueFrom.FieldRef != nil { + v1.SetDefaults_ObjectFieldSelector(b.ValueFrom.FieldRef) + } + } + } + v1.SetDefaults_ResourceList(&a.Resources.Limits) + v1.SetDefaults_ResourceList(&a.Resources.Requests) + if a.LivenessProbe != nil { + v1.SetDefaults_Probe(a.LivenessProbe) + if a.LivenessProbe.Handler.HTTPGet != nil { + v1.SetDefaults_HTTPGetAction(a.LivenessProbe.Handler.HTTPGet) + } + } + if a.ReadinessProbe != nil { + v1.SetDefaults_Probe(a.ReadinessProbe) + if a.ReadinessProbe.Handler.HTTPGet != nil { + v1.SetDefaults_HTTPGetAction(a.ReadinessProbe.Handler.HTTPGet) + } + } + if a.Lifecycle != nil { + if a.Lifecycle.PostStart != nil { + if a.Lifecycle.PostStart.HTTPGet != nil { + v1.SetDefaults_HTTPGetAction(a.Lifecycle.PostStart.HTTPGet) + } + } + if a.Lifecycle.PreStop != nil { + if a.Lifecycle.PreStop.HTTPGet != nil { + v1.SetDefaults_HTTPGetAction(a.Lifecycle.PreStop.HTTPGet) + } + } + } + } + for i := range in.Spec.Template.Spec.Containers { + a := &in.Spec.Template.Spec.Containers[i] + v1.SetDefaults_Container(a) + for j := range a.Ports { + b := &a.Ports[j] + v1.SetDefaults_ContainerPort(b) + } + for j := range a.Env { + b := &a.Env[j] + if b.ValueFrom != nil { + if b.ValueFrom.FieldRef != nil { + v1.SetDefaults_ObjectFieldSelector(b.ValueFrom.FieldRef) + } + } + } + v1.SetDefaults_ResourceList(&a.Resources.Limits) + v1.SetDefaults_ResourceList(&a.Resources.Requests) + if a.LivenessProbe != nil { + v1.SetDefaults_Probe(a.LivenessProbe) + if a.LivenessProbe.Handler.HTTPGet != nil { + v1.SetDefaults_HTTPGetAction(a.LivenessProbe.Handler.HTTPGet) + } + } + if a.ReadinessProbe != nil { + v1.SetDefaults_Probe(a.ReadinessProbe) + if a.ReadinessProbe.Handler.HTTPGet != nil { + v1.SetDefaults_HTTPGetAction(a.ReadinessProbe.Handler.HTTPGet) + } + } + if a.Lifecycle != nil { + if a.Lifecycle.PostStart != nil { + if a.Lifecycle.PostStart.HTTPGet != nil { + v1.SetDefaults_HTTPGetAction(a.Lifecycle.PostStart.HTTPGet) + } + } + if a.Lifecycle.PreStop != nil { + if a.Lifecycle.PreStop.HTTPGet != nil { + v1.SetDefaults_HTTPGetAction(a.Lifecycle.PreStop.HTTPGet) + } + } + } + } +} + +func SetObjectDefaults_DeploymentList(in *DeploymentList) { + for i := range in.Items { + a := &in.Items[i] + SetObjectDefaults_Deployment(a) + } +} + +func SetObjectDefaults_HorizontalPodAutoscaler(in *HorizontalPodAutoscaler) { + SetDefaults_HorizontalPodAutoscaler(in) +} + +func SetObjectDefaults_HorizontalPodAutoscalerList(in *HorizontalPodAutoscalerList) { + for i := range in.Items { + a := &in.Items[i] + SetObjectDefaults_HorizontalPodAutoscaler(a) + } +} + +func SetObjectDefaults_Job(in *Job) { + SetDefaults_Job(in) + v1.SetDefaults_PodSpec(&in.Spec.Template.Spec) + for i := range in.Spec.Template.Spec.Volumes { + a := &in.Spec.Template.Spec.Volumes[i] + v1.SetDefaults_Volume(a) + if a.VolumeSource.Secret != nil { + v1.SetDefaults_SecretVolumeSource(a.VolumeSource.Secret) + } + if a.VolumeSource.ISCSI != nil { + v1.SetDefaults_ISCSIVolumeSource(a.VolumeSource.ISCSI) + } + if a.VolumeSource.RBD != nil { + v1.SetDefaults_RBDVolumeSource(a.VolumeSource.RBD) + } + if a.VolumeSource.DownwardAPI != nil { + v1.SetDefaults_DownwardAPIVolumeSource(a.VolumeSource.DownwardAPI) + for j := range a.VolumeSource.DownwardAPI.Items { + b := &a.VolumeSource.DownwardAPI.Items[j] + if b.FieldRef != nil { + v1.SetDefaults_ObjectFieldSelector(b.FieldRef) + } + } + } + if a.VolumeSource.ConfigMap != nil { + v1.SetDefaults_ConfigMapVolumeSource(a.VolumeSource.ConfigMap) + } + if a.VolumeSource.AzureDisk != nil { + v1.SetDefaults_AzureDiskVolumeSource(a.VolumeSource.AzureDisk) + } + } + for i := range in.Spec.Template.Spec.InitContainers { + a := &in.Spec.Template.Spec.InitContainers[i] + v1.SetDefaults_Container(a) + for j := range a.Ports { + b := &a.Ports[j] + v1.SetDefaults_ContainerPort(b) + } + for j := range a.Env { + b := &a.Env[j] + if b.ValueFrom != nil { + if b.ValueFrom.FieldRef != nil { + v1.SetDefaults_ObjectFieldSelector(b.ValueFrom.FieldRef) + } + } + } + v1.SetDefaults_ResourceList(&a.Resources.Limits) + v1.SetDefaults_ResourceList(&a.Resources.Requests) + if a.LivenessProbe != nil { + v1.SetDefaults_Probe(a.LivenessProbe) + if a.LivenessProbe.Handler.HTTPGet != nil { + v1.SetDefaults_HTTPGetAction(a.LivenessProbe.Handler.HTTPGet) + } + } + if a.ReadinessProbe != nil { + v1.SetDefaults_Probe(a.ReadinessProbe) + if a.ReadinessProbe.Handler.HTTPGet != nil { + v1.SetDefaults_HTTPGetAction(a.ReadinessProbe.Handler.HTTPGet) + } + } + if a.Lifecycle != nil { + if a.Lifecycle.PostStart != nil { + if a.Lifecycle.PostStart.HTTPGet != nil { + v1.SetDefaults_HTTPGetAction(a.Lifecycle.PostStart.HTTPGet) + } + } + if a.Lifecycle.PreStop != nil { + if a.Lifecycle.PreStop.HTTPGet != nil { + v1.SetDefaults_HTTPGetAction(a.Lifecycle.PreStop.HTTPGet) + } + } + } + } + for i := range in.Spec.Template.Spec.Containers { + a := &in.Spec.Template.Spec.Containers[i] + v1.SetDefaults_Container(a) + for j := range a.Ports { + b := &a.Ports[j] + v1.SetDefaults_ContainerPort(b) + } + for j := range a.Env { + b := &a.Env[j] + if b.ValueFrom != nil { + if b.ValueFrom.FieldRef != nil { + v1.SetDefaults_ObjectFieldSelector(b.ValueFrom.FieldRef) + } + } + } + v1.SetDefaults_ResourceList(&a.Resources.Limits) + v1.SetDefaults_ResourceList(&a.Resources.Requests) + if a.LivenessProbe != nil { + v1.SetDefaults_Probe(a.LivenessProbe) + if a.LivenessProbe.Handler.HTTPGet != nil { + v1.SetDefaults_HTTPGetAction(a.LivenessProbe.Handler.HTTPGet) + } + } + if a.ReadinessProbe != nil { + v1.SetDefaults_Probe(a.ReadinessProbe) + if a.ReadinessProbe.Handler.HTTPGet != nil { + v1.SetDefaults_HTTPGetAction(a.ReadinessProbe.Handler.HTTPGet) + } + } + if a.Lifecycle != nil { + if a.Lifecycle.PostStart != nil { + if a.Lifecycle.PostStart.HTTPGet != nil { + v1.SetDefaults_HTTPGetAction(a.Lifecycle.PostStart.HTTPGet) + } + } + if a.Lifecycle.PreStop != nil { + if a.Lifecycle.PreStop.HTTPGet != nil { + v1.SetDefaults_HTTPGetAction(a.Lifecycle.PreStop.HTTPGet) + } + } + } + } +} + +func SetObjectDefaults_JobList(in *JobList) { + for i := range in.Items { + a := &in.Items[i] + SetObjectDefaults_Job(a) + } +} + +func SetObjectDefaults_NetworkPolicy(in *NetworkPolicy) { + SetDefaults_NetworkPolicy(in) +} + +func SetObjectDefaults_NetworkPolicyList(in *NetworkPolicyList) { + for i := range in.Items { + a := &in.Items[i] + SetObjectDefaults_NetworkPolicy(a) + } +} + +func SetObjectDefaults_ReplicaSet(in *ReplicaSet) { + SetDefaults_ReplicaSet(in) + v1.SetDefaults_PodSpec(&in.Spec.Template.Spec) + for i := range in.Spec.Template.Spec.Volumes { + a := &in.Spec.Template.Spec.Volumes[i] + v1.SetDefaults_Volume(a) + if a.VolumeSource.Secret != nil { + v1.SetDefaults_SecretVolumeSource(a.VolumeSource.Secret) + } + if a.VolumeSource.ISCSI != nil { + v1.SetDefaults_ISCSIVolumeSource(a.VolumeSource.ISCSI) + } + if a.VolumeSource.RBD != nil { + v1.SetDefaults_RBDVolumeSource(a.VolumeSource.RBD) + } + if a.VolumeSource.DownwardAPI != nil { + v1.SetDefaults_DownwardAPIVolumeSource(a.VolumeSource.DownwardAPI) + for j := range a.VolumeSource.DownwardAPI.Items { + b := &a.VolumeSource.DownwardAPI.Items[j] + if b.FieldRef != nil { + v1.SetDefaults_ObjectFieldSelector(b.FieldRef) + } + } + } + if a.VolumeSource.ConfigMap != nil { + v1.SetDefaults_ConfigMapVolumeSource(a.VolumeSource.ConfigMap) + } + if a.VolumeSource.AzureDisk != nil { + v1.SetDefaults_AzureDiskVolumeSource(a.VolumeSource.AzureDisk) + } + } + for i := range in.Spec.Template.Spec.InitContainers { + a := &in.Spec.Template.Spec.InitContainers[i] + v1.SetDefaults_Container(a) + for j := range a.Ports { + b := &a.Ports[j] + v1.SetDefaults_ContainerPort(b) + } + for j := range a.Env { + b := &a.Env[j] + if b.ValueFrom != nil { + if b.ValueFrom.FieldRef != nil { + v1.SetDefaults_ObjectFieldSelector(b.ValueFrom.FieldRef) + } + } + } + v1.SetDefaults_ResourceList(&a.Resources.Limits) + v1.SetDefaults_ResourceList(&a.Resources.Requests) + if a.LivenessProbe != nil { + v1.SetDefaults_Probe(a.LivenessProbe) + if a.LivenessProbe.Handler.HTTPGet != nil { + v1.SetDefaults_HTTPGetAction(a.LivenessProbe.Handler.HTTPGet) + } + } + if a.ReadinessProbe != nil { + v1.SetDefaults_Probe(a.ReadinessProbe) + if a.ReadinessProbe.Handler.HTTPGet != nil { + v1.SetDefaults_HTTPGetAction(a.ReadinessProbe.Handler.HTTPGet) + } + } + if a.Lifecycle != nil { + if a.Lifecycle.PostStart != nil { + if a.Lifecycle.PostStart.HTTPGet != nil { + v1.SetDefaults_HTTPGetAction(a.Lifecycle.PostStart.HTTPGet) + } + } + if a.Lifecycle.PreStop != nil { + if a.Lifecycle.PreStop.HTTPGet != nil { + v1.SetDefaults_HTTPGetAction(a.Lifecycle.PreStop.HTTPGet) + } + } + } + } + for i := range in.Spec.Template.Spec.Containers { + a := &in.Spec.Template.Spec.Containers[i] + v1.SetDefaults_Container(a) + for j := range a.Ports { + b := &a.Ports[j] + v1.SetDefaults_ContainerPort(b) + } + for j := range a.Env { + b := &a.Env[j] + if b.ValueFrom != nil { + if b.ValueFrom.FieldRef != nil { + v1.SetDefaults_ObjectFieldSelector(b.ValueFrom.FieldRef) + } + } + } + v1.SetDefaults_ResourceList(&a.Resources.Limits) + v1.SetDefaults_ResourceList(&a.Resources.Requests) + if a.LivenessProbe != nil { + v1.SetDefaults_Probe(a.LivenessProbe) + if a.LivenessProbe.Handler.HTTPGet != nil { + v1.SetDefaults_HTTPGetAction(a.LivenessProbe.Handler.HTTPGet) + } + } + if a.ReadinessProbe != nil { + v1.SetDefaults_Probe(a.ReadinessProbe) + if a.ReadinessProbe.Handler.HTTPGet != nil { + v1.SetDefaults_HTTPGetAction(a.ReadinessProbe.Handler.HTTPGet) + } + } + if a.Lifecycle != nil { + if a.Lifecycle.PostStart != nil { + if a.Lifecycle.PostStart.HTTPGet != nil { + v1.SetDefaults_HTTPGetAction(a.Lifecycle.PostStart.HTTPGet) + } + } + if a.Lifecycle.PreStop != nil { + if a.Lifecycle.PreStop.HTTPGet != nil { + v1.SetDefaults_HTTPGetAction(a.Lifecycle.PreStop.HTTPGet) + } + } + } + } +} + +func SetObjectDefaults_ReplicaSetList(in *ReplicaSetList) { + for i := range in.Items { + a := &in.Items[i] + SetObjectDefaults_ReplicaSet(a) + } +} diff --git a/vendor/k8s.io/client-go/1.5/pkg/apis/extensions/zz_generated.deepcopy.go b/vendor/k8s.io/client-go/pkg/apis/extensions/zz_generated.deepcopy.go similarity index 93% rename from vendor/k8s.io/client-go/1.5/pkg/apis/extensions/zz_generated.deepcopy.go rename to vendor/k8s.io/client-go/pkg/apis/extensions/zz_generated.deepcopy.go index 4f5b015af..66a7739af 100644 --- a/vendor/k8s.io/client-go/1.5/pkg/apis/extensions/zz_generated.deepcopy.go +++ b/vendor/k8s.io/client-go/pkg/apis/extensions/zz_generated.deepcopy.go @@ -1,7 +1,7 @@ // +build !ignore_autogenerated /* -Copyright 2016 The Kubernetes Authors. +Copyright 2017 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -21,11 +21,11 @@ limitations under the License. package extensions import ( - api "k8s.io/client-go/1.5/pkg/api" - unversioned "k8s.io/client-go/1.5/pkg/api/unversioned" - conversion "k8s.io/client-go/1.5/pkg/conversion" - runtime "k8s.io/client-go/1.5/pkg/runtime" - intstr "k8s.io/client-go/1.5/pkg/util/intstr" + api "k8s.io/client-go/pkg/api" + unversioned "k8s.io/client-go/pkg/api/unversioned" + conversion "k8s.io/client-go/pkg/conversion" + runtime "k8s.io/client-go/pkg/runtime" + intstr "k8s.io/client-go/pkg/util/intstr" reflect "reflect" ) @@ -47,6 +47,7 @@ func RegisterDeepCopies(scheme *runtime.Scheme) error { 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_DeploymentCondition, InType: reflect.TypeOf(&DeploymentCondition{})}, 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{})}, @@ -75,6 +76,7 @@ func RegisterDeepCopies(scheme *runtime.Scheme) error { 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_ReplicaSetCondition, InType: reflect.TypeOf(&ReplicaSetCondition{})}, 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{})}, @@ -225,6 +227,7 @@ func DeepCopy_extensions_DaemonSetStatus(in interface{}, out interface{}, c *con out.CurrentNumberScheduled = in.CurrentNumberScheduled out.NumberMisscheduled = in.NumberMisscheduled out.DesiredNumberScheduled = in.DesiredNumberScheduled + out.NumberReady = in.NumberReady return nil } } @@ -240,7 +243,23 @@ func DeepCopy_extensions_Deployment(in interface{}, out interface{}, c *conversi if err := DeepCopy_extensions_DeploymentSpec(&in.Spec, &out.Spec, c); err != nil { return err } + if err := DeepCopy_extensions_DeploymentStatus(&in.Status, &out.Status, c); err != nil { + return err + } + return nil + } +} + +func DeepCopy_extensions_DeploymentCondition(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*DeploymentCondition) + out := out.(*DeploymentCondition) + out.Type = in.Type out.Status = in.Status + out.LastUpdateTime = in.LastUpdateTime.DeepCopy() + out.LastTransitionTime = in.LastTransitionTime.DeepCopy() + out.Reason = in.Reason + out.Message = in.Message return nil } } @@ -322,6 +341,13 @@ func DeepCopy_extensions_DeploymentSpec(in interface{}, out interface{}, c *conv } else { out.RollbackTo = nil } + if in.ProgressDeadlineSeconds != nil { + in, out := &in.ProgressDeadlineSeconds, &out.ProgressDeadlineSeconds + *out = new(int32) + **out = **in + } else { + out.ProgressDeadlineSeconds = nil + } return nil } } @@ -335,6 +361,17 @@ func DeepCopy_extensions_DeploymentStatus(in interface{}, out interface{}, c *co out.UpdatedReplicas = in.UpdatedReplicas out.AvailableReplicas = in.AvailableReplicas out.UnavailableReplicas = in.UnavailableReplicas + if in.Conditions != nil { + in, out := &in.Conditions, &out.Conditions + *out = make([]DeploymentCondition, len(*in)) + for i := range *in { + if err := DeepCopy_extensions_DeploymentCondition(&(*in)[i], &(*out)[i], c); err != nil { + return err + } + } + } else { + out.Conditions = nil + } return nil } } @@ -815,7 +852,22 @@ func DeepCopy_extensions_ReplicaSet(in interface{}, out interface{}, c *conversi if err := DeepCopy_extensions_ReplicaSetSpec(&in.Spec, &out.Spec, c); err != nil { return err } + if err := DeepCopy_extensions_ReplicaSetStatus(&in.Status, &out.Status, c); err != nil { + return err + } + return nil + } +} + +func DeepCopy_extensions_ReplicaSetCondition(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*ReplicaSetCondition) + out := out.(*ReplicaSetCondition) + out.Type = in.Type out.Status = in.Status + out.LastTransitionTime = in.LastTransitionTime.DeepCopy() + out.Reason = in.Reason + out.Message = in.Message return nil } } @@ -846,6 +898,7 @@ func DeepCopy_extensions_ReplicaSetSpec(in interface{}, out interface{}, c *conv in := in.(*ReplicaSetSpec) out := out.(*ReplicaSetSpec) out.Replicas = in.Replicas + out.MinReadySeconds = in.MinReadySeconds if in.Selector != nil { in, out := &in.Selector, &out.Selector *out = new(unversioned.LabelSelector) @@ -869,7 +922,19 @@ func DeepCopy_extensions_ReplicaSetStatus(in interface{}, out interface{}, c *co out.Replicas = in.Replicas out.FullyLabeledReplicas = in.FullyLabeledReplicas out.ReadyReplicas = in.ReadyReplicas + out.AvailableReplicas = in.AvailableReplicas out.ObservedGeneration = in.ObservedGeneration + if in.Conditions != nil { + in, out := &in.Conditions, &out.Conditions + *out = make([]ReplicaSetCondition, len(*in)) + for i := range *in { + if err := DeepCopy_extensions_ReplicaSetCondition(&(*in)[i], &(*out)[i], c); err != nil { + return err + } + } + } else { + out.Conditions = nil + } return nil } } diff --git a/vendor/k8s.io/client-go/1.5/pkg/apis/policy/doc.go b/vendor/k8s.io/client-go/pkg/apis/policy/doc.go similarity index 100% rename from vendor/k8s.io/client-go/1.5/pkg/apis/policy/doc.go rename to vendor/k8s.io/client-go/pkg/apis/policy/doc.go diff --git a/vendor/k8s.io/client-go/1.5/pkg/apis/policy/install/install.go b/vendor/k8s.io/client-go/pkg/apis/policy/install/install.go similarity index 74% rename from vendor/k8s.io/client-go/1.5/pkg/apis/policy/install/install.go rename to vendor/k8s.io/client-go/pkg/apis/policy/install/install.go index 26d374d46..674b90433 100644 --- a/vendor/k8s.io/client-go/1.5/pkg/apis/policy/install/install.go +++ b/vendor/k8s.io/client-go/pkg/apis/policy/install/install.go @@ -19,21 +19,21 @@ limitations under the License. package install import ( - "k8s.io/client-go/1.5/pkg/apimachinery/announced" - "k8s.io/client-go/1.5/pkg/apis/policy" - "k8s.io/client-go/1.5/pkg/apis/policy/v1alpha1" + "k8s.io/client-go/pkg/apimachinery/announced" + "k8s.io/client-go/pkg/apis/policy" + "k8s.io/client-go/pkg/apis/policy/v1beta1" ) func init() { if err := announced.NewGroupMetaFactory( &announced.GroupMetaFactoryArgs{ GroupName: policy.GroupName, - VersionPreferenceOrder: []string{v1alpha1.SchemeGroupVersion.Version}, - ImportPrefix: "k8s.io/client-go/1.5/pkg/apis/policy", + VersionPreferenceOrder: []string{v1beta1.SchemeGroupVersion.Version}, + ImportPrefix: "k8s.io/client-go/pkg/apis/policy", AddInternalObjectsToScheme: policy.AddToScheme, }, announced.VersionToSchemeFunc{ - v1alpha1.SchemeGroupVersion.Version: v1alpha1.AddToScheme, + v1beta1.SchemeGroupVersion.Version: v1beta1.AddToScheme, }, ).Announce().RegisterAndEnable(); err != nil { panic(err) diff --git a/vendor/k8s.io/client-go/1.5/pkg/apis/policy/register.go b/vendor/k8s.io/client-go/pkg/apis/policy/register.go similarity index 93% rename from vendor/k8s.io/client-go/1.5/pkg/apis/policy/register.go rename to vendor/k8s.io/client-go/pkg/apis/policy/register.go index bb0f6c63e..af378cbd7 100644 --- a/vendor/k8s.io/client-go/1.5/pkg/apis/policy/register.go +++ b/vendor/k8s.io/client-go/pkg/apis/policy/register.go @@ -17,9 +17,9 @@ limitations under the License. package policy import ( - "k8s.io/client-go/1.5/pkg/api" - "k8s.io/client-go/1.5/pkg/api/unversioned" - "k8s.io/client-go/1.5/pkg/runtime" + "k8s.io/client-go/pkg/api" + "k8s.io/client-go/pkg/api/unversioned" + "k8s.io/client-go/pkg/runtime" ) // GroupName is the group name use in this package diff --git a/vendor/k8s.io/client-go/1.5/pkg/apis/policy/types.generated.go b/vendor/k8s.io/client-go/pkg/apis/policy/types.generated.go similarity index 63% rename from vendor/k8s.io/client-go/1.5/pkg/apis/policy/types.generated.go rename to vendor/k8s.io/client-go/pkg/apis/policy/types.generated.go index 9afa1aa7b..fd1a669b7 100644 --- a/vendor/k8s.io/client-go/1.5/pkg/apis/policy/types.generated.go +++ b/vendor/k8s.io/client-go/pkg/apis/policy/types.generated.go @@ -25,10 +25,10 @@ import ( "errors" "fmt" codec1978 "github.com/ugorji/go/codec" - pkg3_api "k8s.io/client-go/1.5/pkg/api" - pkg2_unversioned "k8s.io/client-go/1.5/pkg/api/unversioned" - pkg4_types "k8s.io/client-go/1.5/pkg/types" - pkg1_intstr "k8s.io/client-go/1.5/pkg/util/intstr" + pkg3_api "k8s.io/client-go/pkg/api" + pkg2_unversioned "k8s.io/client-go/pkg/api/unversioned" + pkg4_types "k8s.io/client-go/pkg/types" + pkg1_intstr "k8s.io/client-go/pkg/util/intstr" "reflect" "runtime" time "time" @@ -362,14 +362,15 @@ func (x *PodDisruptionBudgetStatus) CodecEncodeSelf(e *codec1978.Encoder) { } else { yysep24 := !z.EncBinary() yy2arr24 := z.EncBasicHandle().StructToArray - var yyq24 [4]bool + var yyq24 [6]bool _, _, _ = yysep24, yyq24, yy2arr24 const yyr24 bool = false + yyq24[0] = x.ObservedGeneration != 0 var yynn24 int if yyr24 || yy2arr24 { - r.EncodeArrayStart(4) + r.EncodeArrayStart(6) } else { - yynn24 = 4 + yynn24 = 5 for _, b := range yyq24 { if b { yynn24++ @@ -380,40 +381,54 @@ func (x *PodDisruptionBudgetStatus) CodecEncodeSelf(e *codec1978.Encoder) { } if yyr24 || yy2arr24 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym26 := z.EncBinary() - _ = yym26 - if false { + if yyq24[0] { + yym26 := z.EncBinary() + _ = yym26 + if false { + } else { + r.EncodeInt(int64(x.ObservedGeneration)) + } } else { - r.EncodeBool(bool(x.PodDisruptionAllowed)) + r.EncodeInt(0) } } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("disruptionAllowed")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym27 := z.EncBinary() - _ = yym27 - if false { - } else { - r.EncodeBool(bool(x.PodDisruptionAllowed)) + if yyq24[0] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("observedGeneration")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym27 := z.EncBinary() + _ = yym27 + if false { + } else { + r.EncodeInt(int64(x.ObservedGeneration)) + } } } if yyr24 || yy2arr24 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym29 := z.EncBinary() - _ = yym29 - if false { + if x.DisruptedPods == nil { + r.EncodeNil() } else { - r.EncodeInt(int64(x.CurrentHealthy)) + yym29 := z.EncBinary() + _ = yym29 + if false { + } else { + h.encMapstringunversioned_Time((map[string]pkg2_unversioned.Time)(x.DisruptedPods), e) + } } } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("currentHealthy")) + r.EncodeString(codecSelferC_UTF81234, string("disruptedPods")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym30 := z.EncBinary() - _ = yym30 - if false { + if x.DisruptedPods == nil { + r.EncodeNil() } else { - r.EncodeInt(int64(x.CurrentHealthy)) + yym30 := z.EncBinary() + _ = yym30 + if false { + } else { + h.encMapstringunversioned_Time((map[string]pkg2_unversioned.Time)(x.DisruptedPods), e) + } } } if yyr24 || yy2arr24 { @@ -422,17 +437,17 @@ func (x *PodDisruptionBudgetStatus) CodecEncodeSelf(e *codec1978.Encoder) { _ = yym32 if false { } else { - r.EncodeInt(int64(x.DesiredHealthy)) + r.EncodeInt(int64(x.PodDisruptionsAllowed)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("desiredHealthy")) + r.EncodeString(codecSelferC_UTF81234, string("disruptionsAllowed")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym33 := z.EncBinary() _ = yym33 if false { } else { - r.EncodeInt(int64(x.DesiredHealthy)) + r.EncodeInt(int64(x.PodDisruptionsAllowed)) } } if yyr24 || yy2arr24 { @@ -440,6 +455,44 @@ func (x *PodDisruptionBudgetStatus) CodecEncodeSelf(e *codec1978.Encoder) { yym35 := z.EncBinary() _ = yym35 if false { + } else { + r.EncodeInt(int64(x.CurrentHealthy)) + } + } else { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("currentHealthy")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym36 := z.EncBinary() + _ = yym36 + if false { + } else { + r.EncodeInt(int64(x.CurrentHealthy)) + } + } + if yyr24 || yy2arr24 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yym38 := z.EncBinary() + _ = yym38 + if false { + } else { + r.EncodeInt(int64(x.DesiredHealthy)) + } + } else { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("desiredHealthy")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym39 := z.EncBinary() + _ = yym39 + if false { + } else { + r.EncodeInt(int64(x.DesiredHealthy)) + } + } + if yyr24 || yy2arr24 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yym41 := z.EncBinary() + _ = yym41 + if false { } else { r.EncodeInt(int64(x.ExpectedPods)) } @@ -447,8 +500,8 @@ func (x *PodDisruptionBudgetStatus) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("expectedPods")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym36 := z.EncBinary() - _ = yym36 + yym42 := z.EncBinary() + _ = yym42 if false { } else { r.EncodeInt(int64(x.ExpectedPods)) @@ -467,25 +520,25 @@ func (x *PodDisruptionBudgetStatus) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym37 := z.DecBinary() - _ = yym37 + yym43 := z.DecBinary() + _ = yym43 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct38 := r.ContainerType() - if yyct38 == codecSelferValueTypeMap1234 { - yyl38 := r.ReadMapStart() - if yyl38 == 0 { + yyct44 := r.ContainerType() + if yyct44 == codecSelferValueTypeMap1234 { + yyl44 := r.ReadMapStart() + if yyl44 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl38, d) + x.codecDecodeSelfFromMap(yyl44, d) } - } else if yyct38 == codecSelferValueTypeArray1234 { - yyl38 := r.ReadArrayStart() - if yyl38 == 0 { + } else if yyct44 == codecSelferValueTypeArray1234 { + yyl44 := r.ReadArrayStart() + if yyl44 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl38, d) + x.codecDecodeSelfFromArray(yyl44, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -497,12 +550,12 @@ func (x *PodDisruptionBudgetStatus) codecDecodeSelfFromMap(l int, d *codec1978.D 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 { + 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 { @@ -511,15 +564,33 @@ func (x *PodDisruptionBudgetStatus) codecDecodeSelfFromMap(l int, d *codec1978.D } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys39Slc = r.DecodeBytes(yys39Slc, true, true) - yys39 := string(yys39Slc) + yys45Slc = r.DecodeBytes(yys45Slc, true, true) + yys45 := string(yys45Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys39 { - case "disruptionAllowed": + switch yys45 { + case "observedGeneration": if r.TryDecodeAsNil() { - x.PodDisruptionAllowed = false + x.ObservedGeneration = 0 } else { - x.PodDisruptionAllowed = bool(r.DecodeBool()) + x.ObservedGeneration = int64(r.DecodeInt(64)) + } + case "disruptedPods": + if r.TryDecodeAsNil() { + x.DisruptedPods = nil + } else { + yyv47 := &x.DisruptedPods + yym48 := z.DecBinary() + _ = yym48 + if false { + } else { + h.decMapstringunversioned_Time((*map[string]pkg2_unversioned.Time)(yyv47), d) + } + } + case "disruptionsAllowed": + if r.TryDecodeAsNil() { + x.PodDisruptionsAllowed = 0 + } else { + x.PodDisruptionsAllowed = int32(r.DecodeInt(32)) } case "currentHealthy": if r.TryDecodeAsNil() { @@ -540,9 +611,9 @@ func (x *PodDisruptionBudgetStatus) codecDecodeSelfFromMap(l int, d *codec1978.D x.ExpectedPods = int32(r.DecodeInt(32)) } default: - z.DecStructFieldNotFound(-1, yys39) - } // end switch yys39 - } // end for yyj39 + z.DecStructFieldNotFound(-1, yys45) + } // end switch yys45 + } // end for yyj45 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -550,32 +621,70 @@ func (x *PodDisruptionBudgetStatus) codecDecodeSelfFromArray(l int, d *codec1978 var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj44 int - var yyb44 bool - var yyhl44 bool = l >= 0 - yyj44++ - if yyhl44 { - yyb44 = yyj44 > l + var yyj53 int + var yyb53 bool + var yyhl53 bool = l >= 0 + yyj53++ + if yyhl53 { + yyb53 = yyj53 > l } else { - yyb44 = r.CheckBreak() + yyb53 = r.CheckBreak() } - if yyb44 { + if yyb53 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.PodDisruptionAllowed = false + x.ObservedGeneration = 0 } else { - x.PodDisruptionAllowed = bool(r.DecodeBool()) + x.ObservedGeneration = int64(r.DecodeInt(64)) } - yyj44++ - if yyhl44 { - yyb44 = yyj44 > l + yyj53++ + if yyhl53 { + yyb53 = yyj53 > l } else { - yyb44 = r.CheckBreak() + yyb53 = r.CheckBreak() } - if yyb44 { + if yyb53 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.DisruptedPods = nil + } else { + yyv55 := &x.DisruptedPods + yym56 := z.DecBinary() + _ = yym56 + if false { + } else { + h.decMapstringunversioned_Time((*map[string]pkg2_unversioned.Time)(yyv55), d) + } + } + yyj53++ + if yyhl53 { + yyb53 = yyj53 > l + } else { + yyb53 = r.CheckBreak() + } + if yyb53 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.PodDisruptionsAllowed = 0 + } else { + x.PodDisruptionsAllowed = int32(r.DecodeInt(32)) + } + yyj53++ + if yyhl53 { + yyb53 = yyj53 > l + } else { + yyb53 = r.CheckBreak() + } + if yyb53 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -585,13 +694,13 @@ func (x *PodDisruptionBudgetStatus) codecDecodeSelfFromArray(l int, d *codec1978 } else { x.CurrentHealthy = int32(r.DecodeInt(32)) } - yyj44++ - if yyhl44 { - yyb44 = yyj44 > l + yyj53++ + if yyhl53 { + yyb53 = yyj53 > l } else { - yyb44 = r.CheckBreak() + yyb53 = r.CheckBreak() } - if yyb44 { + if yyb53 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -601,13 +710,13 @@ func (x *PodDisruptionBudgetStatus) codecDecodeSelfFromArray(l int, d *codec1978 } else { x.DesiredHealthy = int32(r.DecodeInt(32)) } - yyj44++ - if yyhl44 { - yyb44 = yyj44 > l + yyj53++ + if yyhl53 { + yyb53 = yyj53 > l } else { - yyb44 = r.CheckBreak() + yyb53 = r.CheckBreak() } - if yyb44 { + if yyb53 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -618,17 +727,17 @@ func (x *PodDisruptionBudgetStatus) codecDecodeSelfFromArray(l int, d *codec1978 x.ExpectedPods = int32(r.DecodeInt(32)) } for { - yyj44++ - if yyhl44 { - yyb44 = yyj44 > l + yyj53++ + if yyhl53 { + yyb53 = yyj53 > l } else { - yyb44 = r.CheckBreak() + yyb53 = r.CheckBreak() } - if yyb44 { + if yyb53 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj44-1, "") + z.DecStructFieldNotFound(yyj53-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -640,39 +749,39 @@ func (x *PodDisruptionBudget) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym49 := z.EncBinary() - _ = yym49 + yym61 := z.EncBinary() + _ = yym61 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - 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 { + yysep62 := !z.EncBinary() + yy2arr62 := z.EncBasicHandle().StructToArray + var yyq62 [5]bool + _, _, _ = yysep62, yyq62, yy2arr62 + const yyr62 bool = false + yyq62[0] = x.Kind != "" + yyq62[1] = x.APIVersion != "" + yyq62[2] = true + yyq62[3] = true + yyq62[4] = true + var yynn62 int + if yyr62 || yy2arr62 { r.EncodeArrayStart(5) } else { - yynn50 = 0 - for _, b := range yyq50 { + yynn62 = 0 + for _, b := range yyq62 { if b { - yynn50++ + yynn62++ } } - r.EncodeMapStart(yynn50) - yynn50 = 0 + r.EncodeMapStart(yynn62) + yynn62 = 0 } - if yyr50 || yy2arr50 { + if yyr62 || yy2arr62 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq50[0] { - yym52 := z.EncBinary() - _ = yym52 + if yyq62[0] { + yym64 := z.EncBinary() + _ = yym64 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) @@ -681,23 +790,23 @@ func (x *PodDisruptionBudget) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq50[0] { + if yyq62[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym53 := z.EncBinary() - _ = yym53 + yym65 := z.EncBinary() + _ = yym65 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } - if yyr50 || yy2arr50 { + if yyr62 || yy2arr62 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq50[1] { - yym55 := z.EncBinary() - _ = yym55 + if yyq62[1] { + yym67 := z.EncBinary() + _ = yym67 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) @@ -706,70 +815,70 @@ func (x *PodDisruptionBudget) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq50[1] { + if yyq62[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym56 := z.EncBinary() - _ = yym56 + yym68 := z.EncBinary() + _ = yym68 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } - if yyr50 || yy2arr50 { + if yyr62 || yy2arr62 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq50[2] { - yy58 := &x.ObjectMeta - yy58.CodecEncodeSelf(e) + if yyq62[2] { + yy70 := &x.ObjectMeta + yy70.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { - if yyq50[2] { + if yyq62[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy59 := &x.ObjectMeta - yy59.CodecEncodeSelf(e) + yy71 := &x.ObjectMeta + yy71.CodecEncodeSelf(e) } } - if yyr50 || yy2arr50 { + if yyr62 || yy2arr62 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq50[3] { - yy61 := &x.Spec - yy61.CodecEncodeSelf(e) + if yyq62[3] { + yy73 := &x.Spec + yy73.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { - if yyq50[3] { + if yyq62[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("spec")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy62 := &x.Spec - yy62.CodecEncodeSelf(e) + yy74 := &x.Spec + yy74.CodecEncodeSelf(e) } } - if yyr50 || yy2arr50 { + if yyr62 || yy2arr62 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq50[4] { - yy64 := &x.Status - yy64.CodecEncodeSelf(e) + if yyq62[4] { + yy76 := &x.Status + yy76.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { - if yyq50[4] { + if yyq62[4] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("status")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy65 := &x.Status - yy65.CodecEncodeSelf(e) + yy77 := &x.Status + yy77.CodecEncodeSelf(e) } } - if yyr50 || yy2arr50 { + if yyr62 || yy2arr62 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -782,25 +891,25 @@ func (x *PodDisruptionBudget) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym66 := z.DecBinary() - _ = yym66 + yym78 := z.DecBinary() + _ = yym78 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct67 := r.ContainerType() - if yyct67 == codecSelferValueTypeMap1234 { - yyl67 := r.ReadMapStart() - if yyl67 == 0 { + yyct79 := r.ContainerType() + if yyct79 == codecSelferValueTypeMap1234 { + yyl79 := r.ReadMapStart() + if yyl79 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl67, d) + x.codecDecodeSelfFromMap(yyl79, d) } - } else if yyct67 == codecSelferValueTypeArray1234 { - yyl67 := r.ReadArrayStart() - if yyl67 == 0 { + } else if yyct79 == codecSelferValueTypeArray1234 { + yyl79 := r.ReadArrayStart() + if yyl79 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl67, d) + x.codecDecodeSelfFromArray(yyl79, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -812,12 +921,12 @@ func (x *PodDisruptionBudget) codecDecodeSelfFromMap(l int, d *codec1978.Decoder var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys68Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys68Slc - var yyhl68 bool = l >= 0 - for yyj68 := 0; ; yyj68++ { - if yyhl68 { - if yyj68 >= 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 { @@ -826,10 +935,10 @@ func (x *PodDisruptionBudget) codecDecodeSelfFromMap(l int, d *codec1978.Decoder } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys68Slc = r.DecodeBytes(yys68Slc, true, true) - yys68 := string(yys68Slc) + yys80Slc = r.DecodeBytes(yys80Slc, true, true) + yys80 := string(yys80Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys68 { + switch yys80 { case "kind": if r.TryDecodeAsNil() { x.Kind = "" @@ -846,27 +955,27 @@ func (x *PodDisruptionBudget) codecDecodeSelfFromMap(l int, d *codec1978.Decoder if r.TryDecodeAsNil() { x.ObjectMeta = pkg3_api.ObjectMeta{} } else { - yyv71 := &x.ObjectMeta - yyv71.CodecDecodeSelf(d) + yyv83 := &x.ObjectMeta + yyv83.CodecDecodeSelf(d) } case "spec": if r.TryDecodeAsNil() { x.Spec = PodDisruptionBudgetSpec{} } else { - yyv72 := &x.Spec - yyv72.CodecDecodeSelf(d) + yyv84 := &x.Spec + yyv84.CodecDecodeSelf(d) } case "status": if r.TryDecodeAsNil() { x.Status = PodDisruptionBudgetStatus{} } else { - yyv73 := &x.Status - yyv73.CodecDecodeSelf(d) + yyv85 := &x.Status + yyv85.CodecDecodeSelf(d) } default: - z.DecStructFieldNotFound(-1, yys68) - } // end switch yys68 - } // end for yyj68 + z.DecStructFieldNotFound(-1, yys80) + } // end switch yys80 + } // end for yyj80 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -874,16 +983,16 @@ func (x *PodDisruptionBudget) codecDecodeSelfFromArray(l int, d *codec1978.Decod 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 + var yyj86 int + var yyb86 bool + var yyhl86 bool = l >= 0 + yyj86++ + if yyhl86 { + yyb86 = yyj86 > l } else { - yyb74 = r.CheckBreak() + yyb86 = r.CheckBreak() } - if yyb74 { + if yyb86 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -893,13 +1002,13 @@ func (x *PodDisruptionBudget) codecDecodeSelfFromArray(l int, d *codec1978.Decod } else { x.Kind = string(r.DecodeString()) } - yyj74++ - if yyhl74 { - yyb74 = yyj74 > l + yyj86++ + if yyhl86 { + yyb86 = yyj86 > l } else { - yyb74 = r.CheckBreak() + yyb86 = r.CheckBreak() } - if yyb74 { + if yyb86 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -909,13 +1018,13 @@ func (x *PodDisruptionBudget) codecDecodeSelfFromArray(l int, d *codec1978.Decod } else { x.APIVersion = string(r.DecodeString()) } - yyj74++ - if yyhl74 { - yyb74 = yyj74 > l + yyj86++ + if yyhl86 { + yyb86 = yyj86 > l } else { - yyb74 = r.CheckBreak() + yyb86 = r.CheckBreak() } - if yyb74 { + if yyb86 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -923,16 +1032,16 @@ func (x *PodDisruptionBudget) codecDecodeSelfFromArray(l int, d *codec1978.Decod if r.TryDecodeAsNil() { x.ObjectMeta = pkg3_api.ObjectMeta{} } else { - yyv77 := &x.ObjectMeta - yyv77.CodecDecodeSelf(d) + yyv89 := &x.ObjectMeta + yyv89.CodecDecodeSelf(d) } - yyj74++ - if yyhl74 { - yyb74 = yyj74 > l + yyj86++ + if yyhl86 { + yyb86 = yyj86 > l } else { - yyb74 = r.CheckBreak() + yyb86 = r.CheckBreak() } - if yyb74 { + if yyb86 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -940,16 +1049,16 @@ func (x *PodDisruptionBudget) codecDecodeSelfFromArray(l int, d *codec1978.Decod if r.TryDecodeAsNil() { x.Spec = PodDisruptionBudgetSpec{} } else { - yyv78 := &x.Spec - yyv78.CodecDecodeSelf(d) + yyv90 := &x.Spec + yyv90.CodecDecodeSelf(d) } - yyj74++ - if yyhl74 { - yyb74 = yyj74 > l + yyj86++ + if yyhl86 { + yyb86 = yyj86 > l } else { - yyb74 = r.CheckBreak() + yyb86 = r.CheckBreak() } - if yyb74 { + if yyb86 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -957,21 +1066,21 @@ func (x *PodDisruptionBudget) codecDecodeSelfFromArray(l int, d *codec1978.Decod if r.TryDecodeAsNil() { x.Status = PodDisruptionBudgetStatus{} } else { - yyv79 := &x.Status - yyv79.CodecDecodeSelf(d) + yyv91 := &x.Status + yyv91.CodecDecodeSelf(d) } for { - yyj74++ - if yyhl74 { - yyb74 = yyj74 > l + yyj86++ + if yyhl86 { + yyb86 = yyj86 > l } else { - yyb74 = r.CheckBreak() + yyb86 = r.CheckBreak() } - if yyb74 { + if yyb86 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj74-1, "") + z.DecStructFieldNotFound(yyj86-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -983,37 +1092,37 @@ func (x *PodDisruptionBudgetList) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym80 := z.EncBinary() - _ = yym80 + yym92 := z.EncBinary() + _ = yym92 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[0] = x.Kind != "" - yyq81[1] = x.APIVersion != "" - yyq81[2] = true - var yynn81 int - if yyr81 || yy2arr81 { + yysep93 := !z.EncBinary() + yy2arr93 := z.EncBasicHandle().StructToArray + var yyq93 [4]bool + _, _, _ = yysep93, yyq93, yy2arr93 + const yyr93 bool = false + yyq93[0] = x.Kind != "" + yyq93[1] = x.APIVersion != "" + yyq93[2] = true + var yynn93 int + if yyr93 || yy2arr93 { r.EncodeArrayStart(4) } else { - yynn81 = 1 - for _, b := range yyq81 { + yynn93 = 1 + for _, b := range yyq93 { if b { - yynn81++ + yynn93++ } } - r.EncodeMapStart(yynn81) - yynn81 = 0 + r.EncodeMapStart(yynn93) + yynn93 = 0 } - if yyr81 || yy2arr81 { + if yyr93 || yy2arr93 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq81[0] { - yym83 := z.EncBinary() - _ = yym83 + if yyq93[0] { + yym95 := z.EncBinary() + _ = yym95 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) @@ -1022,23 +1131,23 @@ func (x *PodDisruptionBudgetList) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq81[0] { + if yyq93[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym84 := z.EncBinary() - _ = yym84 + yym96 := z.EncBinary() + _ = yym96 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } - if yyr81 || yy2arr81 { + if yyr93 || yy2arr93 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq81[1] { - yym86 := z.EncBinary() - _ = yym86 + if yyq93[1] { + yym98 := z.EncBinary() + _ = yym98 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) @@ -1047,54 +1156,54 @@ func (x *PodDisruptionBudgetList) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq81[1] { + if yyq93[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym87 := z.EncBinary() - _ = yym87 + yym99 := z.EncBinary() + _ = yym99 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } - if yyr81 || yy2arr81 { + if yyr93 || yy2arr93 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq81[2] { - yy89 := &x.ListMeta - yym90 := z.EncBinary() - _ = yym90 + if yyq93[2] { + yy101 := &x.ListMeta + yym102 := z.EncBinary() + _ = yym102 if false { - } else if z.HasExtensions() && z.EncExt(yy89) { + } else if z.HasExtensions() && z.EncExt(yy101) { } else { - z.EncFallback(yy89) + z.EncFallback(yy101) } } else { r.EncodeNil() } } else { - if yyq81[2] { + if yyq93[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy91 := &x.ListMeta - yym92 := z.EncBinary() - _ = yym92 + yy103 := &x.ListMeta + yym104 := z.EncBinary() + _ = yym104 if false { - } else if z.HasExtensions() && z.EncExt(yy91) { + } else if z.HasExtensions() && z.EncExt(yy103) { } else { - z.EncFallback(yy91) + z.EncFallback(yy103) } } } - if yyr81 || yy2arr81 { + if yyr93 || yy2arr93 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.Items == nil { r.EncodeNil() } else { - yym94 := z.EncBinary() - _ = yym94 + yym106 := z.EncBinary() + _ = yym106 if false { } else { h.encSlicePodDisruptionBudget(([]PodDisruptionBudget)(x.Items), e) @@ -1107,15 +1216,15 @@ func (x *PodDisruptionBudgetList) CodecEncodeSelf(e *codec1978.Encoder) { if x.Items == nil { r.EncodeNil() } else { - yym95 := z.EncBinary() - _ = yym95 + yym107 := z.EncBinary() + _ = yym107 if false { } else { h.encSlicePodDisruptionBudget(([]PodDisruptionBudget)(x.Items), e) } } } - if yyr81 || yy2arr81 { + if yyr93 || yy2arr93 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -1128,25 +1237,25 @@ func (x *PodDisruptionBudgetList) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym96 := z.DecBinary() - _ = yym96 + yym108 := z.DecBinary() + _ = yym108 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct97 := r.ContainerType() - if yyct97 == codecSelferValueTypeMap1234 { - yyl97 := r.ReadMapStart() - if yyl97 == 0 { + yyct109 := r.ContainerType() + if yyct109 == codecSelferValueTypeMap1234 { + yyl109 := r.ReadMapStart() + if yyl109 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl97, d) + x.codecDecodeSelfFromMap(yyl109, d) } - } else if yyct97 == codecSelferValueTypeArray1234 { - yyl97 := r.ReadArrayStart() - if yyl97 == 0 { + } else if yyct109 == codecSelferValueTypeArray1234 { + yyl109 := r.ReadArrayStart() + if yyl109 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl97, d) + x.codecDecodeSelfFromArray(yyl109, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -1158,12 +1267,12 @@ func (x *PodDisruptionBudgetList) codecDecodeSelfFromMap(l int, d *codec1978.Dec 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 { + var yys110Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys110Slc + var yyhl110 bool = l >= 0 + for yyj110 := 0; ; yyj110++ { + if yyhl110 { + if yyj110 >= l { break } } else { @@ -1172,10 +1281,10 @@ func (x *PodDisruptionBudgetList) codecDecodeSelfFromMap(l int, d *codec1978.Dec } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys98Slc = r.DecodeBytes(yys98Slc, true, true) - yys98 := string(yys98Slc) + yys110Slc = r.DecodeBytes(yys110Slc, true, true) + yys110 := string(yys110Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys98 { + switch yys110 { case "kind": if r.TryDecodeAsNil() { x.Kind = "" @@ -1192,31 +1301,31 @@ func (x *PodDisruptionBudgetList) codecDecodeSelfFromMap(l int, d *codec1978.Dec if r.TryDecodeAsNil() { x.ListMeta = pkg2_unversioned.ListMeta{} } else { - yyv101 := &x.ListMeta - yym102 := z.DecBinary() - _ = yym102 + yyv113 := &x.ListMeta + yym114 := z.DecBinary() + _ = yym114 if false { - } else if z.HasExtensions() && z.DecExt(yyv101) { + } else if z.HasExtensions() && z.DecExt(yyv113) { } else { - z.DecFallback(yyv101, false) + z.DecFallback(yyv113, false) } } case "items": if r.TryDecodeAsNil() { x.Items = nil } else { - yyv103 := &x.Items - yym104 := z.DecBinary() - _ = yym104 + yyv115 := &x.Items + yym116 := z.DecBinary() + _ = yym116 if false { } else { - h.decSlicePodDisruptionBudget((*[]PodDisruptionBudget)(yyv103), d) + h.decSlicePodDisruptionBudget((*[]PodDisruptionBudget)(yyv115), d) } } default: - z.DecStructFieldNotFound(-1, yys98) - } // end switch yys98 - } // end for yyj98 + z.DecStructFieldNotFound(-1, yys110) + } // end switch yys110 + } // end for yyj110 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -1224,16 +1333,16 @@ func (x *PodDisruptionBudgetList) codecDecodeSelfFromArray(l int, d *codec1978.D 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 + var yyj117 int + var yyb117 bool + var yyhl117 bool = l >= 0 + yyj117++ + if yyhl117 { + yyb117 = yyj117 > l } else { - yyb105 = r.CheckBreak() + yyb117 = r.CheckBreak() } - if yyb105 { + if yyb117 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -1243,13 +1352,13 @@ func (x *PodDisruptionBudgetList) codecDecodeSelfFromArray(l int, d *codec1978.D } else { x.Kind = string(r.DecodeString()) } - yyj105++ - if yyhl105 { - yyb105 = yyj105 > l + yyj117++ + if yyhl117 { + yyb117 = yyj117 > l } else { - yyb105 = r.CheckBreak() + yyb117 = r.CheckBreak() } - if yyb105 { + if yyb117 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -1259,13 +1368,13 @@ func (x *PodDisruptionBudgetList) codecDecodeSelfFromArray(l int, d *codec1978.D } else { x.APIVersion = string(r.DecodeString()) } - yyj105++ - if yyhl105 { - yyb105 = yyj105 > l + yyj117++ + if yyhl117 { + yyb117 = yyj117 > l } else { - yyb105 = r.CheckBreak() + yyb117 = r.CheckBreak() } - if yyb105 { + if yyb117 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -1273,22 +1382,22 @@ func (x *PodDisruptionBudgetList) codecDecodeSelfFromArray(l int, d *codec1978.D if r.TryDecodeAsNil() { x.ListMeta = pkg2_unversioned.ListMeta{} } else { - yyv108 := &x.ListMeta - yym109 := z.DecBinary() - _ = yym109 + yyv120 := &x.ListMeta + yym121 := z.DecBinary() + _ = yym121 if false { - } else if z.HasExtensions() && z.DecExt(yyv108) { + } else if z.HasExtensions() && z.DecExt(yyv120) { } else { - z.DecFallback(yyv108, false) + z.DecFallback(yyv120, false) } } - yyj105++ - if yyhl105 { - yyb105 = yyj105 > l + yyj117++ + if yyhl117 { + yyb117 = yyj117 > l } else { - yyb105 = r.CheckBreak() + yyb117 = r.CheckBreak() } - if yyb105 { + if yyb117 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -1296,26 +1405,26 @@ func (x *PodDisruptionBudgetList) codecDecodeSelfFromArray(l int, d *codec1978.D if r.TryDecodeAsNil() { x.Items = nil } else { - yyv110 := &x.Items - yym111 := z.DecBinary() - _ = yym111 + yyv122 := &x.Items + yym123 := z.DecBinary() + _ = yym123 if false { } else { - h.decSlicePodDisruptionBudget((*[]PodDisruptionBudget)(yyv110), d) + h.decSlicePodDisruptionBudget((*[]PodDisruptionBudget)(yyv122), d) } } for { - yyj105++ - if yyhl105 { - yyb105 = yyj105 > l + yyj117++ + if yyhl117 { + yyb117 = yyj117 > l } else { - yyb105 = r.CheckBreak() + yyb117 = r.CheckBreak() } - if yyb105 { + if yyb117 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj105-1, "") + z.DecStructFieldNotFound(yyj117-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -1327,38 +1436,38 @@ func (x *Eviction) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym112 := z.EncBinary() - _ = yym112 + yym124 := z.EncBinary() + _ = yym124 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 { + yysep125 := !z.EncBinary() + yy2arr125 := z.EncBasicHandle().StructToArray + var yyq125 [4]bool + _, _, _ = yysep125, yyq125, yy2arr125 + const yyr125 bool = false + yyq125[0] = x.Kind != "" + yyq125[1] = x.APIVersion != "" + yyq125[2] = true + yyq125[3] = x.DeleteOptions != nil + var yynn125 int + if yyr125 || yy2arr125 { r.EncodeArrayStart(4) } else { - yynn113 = 0 - for _, b := range yyq113 { + yynn125 = 0 + for _, b := range yyq125 { if b { - yynn113++ + yynn125++ } } - r.EncodeMapStart(yynn113) - yynn113 = 0 + r.EncodeMapStart(yynn125) + yynn125 = 0 } - if yyr113 || yy2arr113 { + if yyr125 || yy2arr125 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq113[0] { - yym115 := z.EncBinary() - _ = yym115 + if yyq125[0] { + yym127 := z.EncBinary() + _ = yym127 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) @@ -1367,23 +1476,23 @@ func (x *Eviction) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq113[0] { + if yyq125[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym116 := z.EncBinary() - _ = yym116 + yym128 := z.EncBinary() + _ = yym128 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } - if yyr113 || yy2arr113 { + if yyr125 || yy2arr125 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq113[1] { - yym118 := z.EncBinary() - _ = yym118 + if yyq125[1] { + yym130 := z.EncBinary() + _ = yym130 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) @@ -1392,38 +1501,38 @@ func (x *Eviction) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq113[1] { + if yyq125[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym119 := z.EncBinary() - _ = yym119 + yym131 := z.EncBinary() + _ = yym131 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } - if yyr113 || yy2arr113 { + if yyr125 || yy2arr125 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq113[2] { - yy121 := &x.ObjectMeta - yy121.CodecEncodeSelf(e) + if yyq125[2] { + yy133 := &x.ObjectMeta + yy133.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { - if yyq113[2] { + if yyq125[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy122 := &x.ObjectMeta - yy122.CodecEncodeSelf(e) + yy134 := &x.ObjectMeta + yy134.CodecEncodeSelf(e) } } - if yyr113 || yy2arr113 { + if yyr125 || yy2arr125 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq113[3] { + if yyq125[3] { if x.DeleteOptions == nil { r.EncodeNil() } else { @@ -1433,7 +1542,7 @@ func (x *Eviction) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq113[3] { + if yyq125[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("deleteOptions")) z.EncSendContainerState(codecSelfer_containerMapValue1234) @@ -1444,7 +1553,7 @@ func (x *Eviction) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr113 || yy2arr113 { + if yyr125 || yy2arr125 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -1457,25 +1566,25 @@ func (x *Eviction) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym124 := z.DecBinary() - _ = yym124 + yym136 := z.DecBinary() + _ = yym136 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct125 := r.ContainerType() - if yyct125 == codecSelferValueTypeMap1234 { - yyl125 := r.ReadMapStart() - if yyl125 == 0 { + yyct137 := r.ContainerType() + if yyct137 == codecSelferValueTypeMap1234 { + yyl137 := r.ReadMapStart() + if yyl137 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl125, d) + x.codecDecodeSelfFromMap(yyl137, d) } - } else if yyct125 == codecSelferValueTypeArray1234 { - yyl125 := r.ReadArrayStart() - if yyl125 == 0 { + } else if yyct137 == codecSelferValueTypeArray1234 { + yyl137 := r.ReadArrayStart() + if yyl137 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl125, d) + x.codecDecodeSelfFromArray(yyl137, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -1487,12 +1596,12 @@ func (x *Eviction) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys126Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys126Slc - var yyhl126 bool = l >= 0 - for yyj126 := 0; ; yyj126++ { - if yyhl126 { - if yyj126 >= l { + var yys138Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys138Slc + var yyhl138 bool = l >= 0 + for yyj138 := 0; ; yyj138++ { + if yyhl138 { + if yyj138 >= l { break } } else { @@ -1501,10 +1610,10 @@ func (x *Eviction) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys126Slc = r.DecodeBytes(yys126Slc, true, true) - yys126 := string(yys126Slc) + yys138Slc = r.DecodeBytes(yys138Slc, true, true) + yys138 := string(yys138Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys126 { + switch yys138 { case "kind": if r.TryDecodeAsNil() { x.Kind = "" @@ -1521,8 +1630,8 @@ func (x *Eviction) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.ObjectMeta = pkg3_api.ObjectMeta{} } else { - yyv129 := &x.ObjectMeta - yyv129.CodecDecodeSelf(d) + yyv141 := &x.ObjectMeta + yyv141.CodecDecodeSelf(d) } case "deleteOptions": if r.TryDecodeAsNil() { @@ -1536,9 +1645,9 @@ func (x *Eviction) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { x.DeleteOptions.CodecDecodeSelf(d) } default: - z.DecStructFieldNotFound(-1, yys126) - } // end switch yys126 - } // end for yyj126 + z.DecStructFieldNotFound(-1, yys138) + } // end switch yys138 + } // end for yyj138 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -1546,16 +1655,16 @@ func (x *Eviction) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj131 int - var yyb131 bool - var yyhl131 bool = l >= 0 - yyj131++ - if yyhl131 { - yyb131 = yyj131 > l + var yyj143 int + var yyb143 bool + var yyhl143 bool = l >= 0 + yyj143++ + if yyhl143 { + yyb143 = yyj143 > l } else { - yyb131 = r.CheckBreak() + yyb143 = r.CheckBreak() } - if yyb131 { + if yyb143 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -1565,13 +1674,13 @@ func (x *Eviction) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.Kind = string(r.DecodeString()) } - yyj131++ - if yyhl131 { - yyb131 = yyj131 > l + yyj143++ + if yyhl143 { + yyb143 = yyj143 > l } else { - yyb131 = r.CheckBreak() + yyb143 = r.CheckBreak() } - if yyb131 { + if yyb143 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -1581,13 +1690,13 @@ func (x *Eviction) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.APIVersion = string(r.DecodeString()) } - yyj131++ - if yyhl131 { - yyb131 = yyj131 > l + yyj143++ + if yyhl143 { + yyb143 = yyj143 > l } else { - yyb131 = r.CheckBreak() + yyb143 = r.CheckBreak() } - if yyb131 { + if yyb143 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -1595,16 +1704,16 @@ func (x *Eviction) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.ObjectMeta = pkg3_api.ObjectMeta{} } else { - yyv134 := &x.ObjectMeta - yyv134.CodecDecodeSelf(d) + yyv146 := &x.ObjectMeta + yyv146.CodecDecodeSelf(d) } - yyj131++ - if yyhl131 { - yyb131 = yyj131 > l + yyj143++ + if yyhl143 { + yyb143 = yyj143 > l } else { - yyb131 = r.CheckBreak() + yyb143 = r.CheckBreak() } - if yyb131 { + if yyb143 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -1620,30 +1729,155 @@ func (x *Eviction) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { x.DeleteOptions.CodecDecodeSelf(d) } for { - yyj131++ - if yyhl131 { - yyb131 = yyj131 > l + yyj143++ + if yyhl143 { + yyb143 = yyj143 > l } else { - yyb131 = r.CheckBreak() + yyb143 = r.CheckBreak() } - if yyb131 { + if yyb143 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj131-1, "") + z.DecStructFieldNotFound(yyj143-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } +func (x codecSelfer1234) encMapstringunversioned_Time(v map[string]pkg2_unversioned.Time, e *codec1978.Encoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + r.EncodeMapStart(len(v)) + for yyk148, yyv148 := range v { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + yym149 := z.EncBinary() + _ = yym149 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(yyk148)) + } + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yy150 := &yyv148 + 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) + } + } + z.EncSendContainerState(codecSelfer_containerMapEnd1234) +} + +func (x codecSelfer1234) decMapstringunversioned_Time(v *map[string]pkg2_unversioned.Time, d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + + yyv152 := *v + yyl152 := r.ReadMapStart() + yybh152 := z.DecBasicHandle() + if yyv152 == nil { + yyrl152, _ := z.DecInferLen(yyl152, yybh152.MaxInitLen, 40) + yyv152 = make(map[string]pkg2_unversioned.Time, yyrl152) + *v = yyv152 + } + var yymk152 string + var yymv152 pkg2_unversioned.Time + var yymg152 bool + if yybh152.MapValueReset { + yymg152 = true + } + if yyl152 > 0 { + for yyj152 := 0; yyj152 < yyl152; yyj152++ { + z.DecSendContainerState(codecSelfer_containerMapKey1234) + if r.TryDecodeAsNil() { + yymk152 = "" + } else { + yymk152 = string(r.DecodeString()) + } + + if yymg152 { + yymv152 = yyv152[yymk152] + } else { + yymv152 = pkg2_unversioned.Time{} + } + z.DecSendContainerState(codecSelfer_containerMapValue1234) + if r.TryDecodeAsNil() { + yymv152 = pkg2_unversioned.Time{} + } else { + yyv154 := &yymv152 + yym155 := z.DecBinary() + _ = yym155 + if false { + } else if z.HasExtensions() && z.DecExt(yyv154) { + } else if yym155 { + z.DecBinaryUnmarshal(yyv154) + } else if !yym155 && z.IsJSONHandle() { + z.DecJSONUnmarshal(yyv154) + } else { + z.DecFallback(yyv154, false) + } + } + + if yyv152 != nil { + yyv152[yymk152] = yymv152 + } + } + } else if yyl152 < 0 { + for yyj152 := 0; !r.CheckBreak(); yyj152++ { + z.DecSendContainerState(codecSelfer_containerMapKey1234) + if r.TryDecodeAsNil() { + yymk152 = "" + } else { + yymk152 = string(r.DecodeString()) + } + + if yymg152 { + yymv152 = yyv152[yymk152] + } else { + yymv152 = pkg2_unversioned.Time{} + } + z.DecSendContainerState(codecSelfer_containerMapValue1234) + if r.TryDecodeAsNil() { + yymv152 = pkg2_unversioned.Time{} + } else { + yyv157 := &yymv152 + yym158 := z.DecBinary() + _ = yym158 + if false { + } else if z.HasExtensions() && z.DecExt(yyv157) { + } else if yym158 { + z.DecBinaryUnmarshal(yyv157) + } else if !yym158 && z.IsJSONHandle() { + z.DecJSONUnmarshal(yyv157) + } else { + z.DecFallback(yyv157, false) + } + } + + if yyv152 != nil { + yyv152[yymk152] = yymv152 + } + } + } // else len==0: TODO: Should we clear map entries? + z.DecSendContainerState(codecSelfer_containerMapEnd1234) +} + func (x codecSelfer1234) encSlicePodDisruptionBudget(v []PodDisruptionBudget, e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r r.EncodeArrayStart(len(v)) - for _, yyv136 := range v { + for _, yyv159 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy137 := &yyv136 - yy137.CodecEncodeSelf(e) + yy160 := &yyv159 + yy160.CodecEncodeSelf(e) } z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -1653,83 +1887,83 @@ func (x codecSelfer1234) decSlicePodDisruptionBudget(v *[]PodDisruptionBudget, d z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - 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 + yyv161 := *v + yyh161, yyl161 := z.DecSliceHelperStart() + var yyc161 bool + if yyl161 == 0 { + if yyv161 == nil { + yyv161 = []PodDisruptionBudget{} + yyc161 = true + } else if len(yyv161) != 0 { + yyv161 = yyv161[:0] + yyc161 = true } - } else if yyl138 > 0 { - var yyrr138, yyrl138 int - var yyrt138 bool - if yyl138 > cap(yyv138) { + } else if yyl161 > 0 { + var yyrr161, yyrl161 int + var yyrt161 bool + if yyl161 > cap(yyv161) { - yyrg138 := len(yyv138) > 0 - yyv2138 := yyv138 - yyrl138, yyrt138 = z.DecInferLen(yyl138, z.DecBasicHandle().MaxInitLen, 312) - if yyrt138 { - if yyrl138 <= cap(yyv138) { - yyv138 = yyv138[:yyrl138] + yyrg161 := len(yyv161) > 0 + yyv2161 := yyv161 + yyrl161, yyrt161 = z.DecInferLen(yyl161, z.DecBasicHandle().MaxInitLen, 328) + if yyrt161 { + if yyrl161 <= cap(yyv161) { + yyv161 = yyv161[:yyrl161] } else { - yyv138 = make([]PodDisruptionBudget, yyrl138) + yyv161 = make([]PodDisruptionBudget, yyrl161) } } else { - yyv138 = make([]PodDisruptionBudget, yyrl138) + yyv161 = make([]PodDisruptionBudget, yyrl161) } - yyc138 = true - yyrr138 = len(yyv138) - if yyrg138 { - copy(yyv138, yyv2138) + yyc161 = true + yyrr161 = len(yyv161) + if yyrg161 { + copy(yyv161, yyv2161) } - } else if yyl138 != len(yyv138) { - yyv138 = yyv138[:yyl138] - yyc138 = true + } else if yyl161 != len(yyv161) { + yyv161 = yyv161[:yyl161] + yyc161 = true } - yyj138 := 0 - for ; yyj138 < yyrr138; yyj138++ { - yyh138.ElemContainerState(yyj138) + yyj161 := 0 + for ; yyj161 < yyrr161; yyj161++ { + yyh161.ElemContainerState(yyj161) if r.TryDecodeAsNil() { - yyv138[yyj138] = PodDisruptionBudget{} + yyv161[yyj161] = PodDisruptionBudget{} } else { - yyv139 := &yyv138[yyj138] - yyv139.CodecDecodeSelf(d) + yyv162 := &yyv161[yyj161] + yyv162.CodecDecodeSelf(d) } } - if yyrt138 { - for ; yyj138 < yyl138; yyj138++ { - yyv138 = append(yyv138, PodDisruptionBudget{}) - yyh138.ElemContainerState(yyj138) + if yyrt161 { + for ; yyj161 < yyl161; yyj161++ { + yyv161 = append(yyv161, PodDisruptionBudget{}) + yyh161.ElemContainerState(yyj161) if r.TryDecodeAsNil() { - yyv138[yyj138] = PodDisruptionBudget{} + yyv161[yyj161] = PodDisruptionBudget{} } else { - yyv140 := &yyv138[yyj138] - yyv140.CodecDecodeSelf(d) + yyv163 := &yyv161[yyj161] + yyv163.CodecDecodeSelf(d) } } } } else { - yyj138 := 0 - for ; !r.CheckBreak(); yyj138++ { + yyj161 := 0 + for ; !r.CheckBreak(); yyj161++ { - if yyj138 >= len(yyv138) { - yyv138 = append(yyv138, PodDisruptionBudget{}) // var yyz138 PodDisruptionBudget - yyc138 = true + if yyj161 >= len(yyv161) { + yyv161 = append(yyv161, PodDisruptionBudget{}) // var yyz161 PodDisruptionBudget + yyc161 = true } - yyh138.ElemContainerState(yyj138) - if yyj138 < len(yyv138) { + yyh161.ElemContainerState(yyj161) + if yyj161 < len(yyv161) { if r.TryDecodeAsNil() { - yyv138[yyj138] = PodDisruptionBudget{} + yyv161[yyj161] = PodDisruptionBudget{} } else { - yyv141 := &yyv138[yyj138] - yyv141.CodecDecodeSelf(d) + yyv164 := &yyv161[yyj161] + yyv164.CodecDecodeSelf(d) } } else { @@ -1737,16 +1971,16 @@ func (x codecSelfer1234) decSlicePodDisruptionBudget(v *[]PodDisruptionBudget, d } } - if yyj138 < len(yyv138) { - yyv138 = yyv138[:yyj138] - yyc138 = true - } else if yyj138 == 0 && yyv138 == nil { - yyv138 = []PodDisruptionBudget{} - yyc138 = true + if yyj161 < len(yyv161) { + yyv161 = yyv161[:yyj161] + yyc161 = true + } else if yyj161 == 0 && yyv161 == nil { + yyv161 = []PodDisruptionBudget{} + yyc161 = true } } - yyh138.End() - if yyc138 { - *v = yyv138 + yyh161.End() + if yyc161 { + *v = yyv161 } } diff --git a/vendor/k8s.io/client-go/1.5/pkg/apis/policy/types.go b/vendor/k8s.io/client-go/pkg/apis/policy/types.go similarity index 56% rename from vendor/k8s.io/client-go/1.5/pkg/apis/policy/types.go rename to vendor/k8s.io/client-go/pkg/apis/policy/types.go index c2d272437..1b753f0f4 100644 --- a/vendor/k8s.io/client-go/1.5/pkg/apis/policy/types.go +++ b/vendor/k8s.io/client-go/pkg/apis/policy/types.go @@ -17,27 +17,49 @@ limitations under the License. package policy import ( - "k8s.io/client-go/1.5/pkg/api" - "k8s.io/client-go/1.5/pkg/api/unversioned" - "k8s.io/client-go/1.5/pkg/util/intstr" + "k8s.io/client-go/pkg/api" + "k8s.io/client-go/pkg/api/unversioned" + "k8s.io/client-go/pkg/util/intstr" ) // PodDisruptionBudgetSpec is a description of a PodDisruptionBudget. type PodDisruptionBudgetSpec struct { - // The minimum number of pods that must be available simultaneously. This - // can be either an integer or a string specifying a percentage, e.g. "28%". + // An eviction is allowed if at least "minAvailable" pods selected by + // "selector" will still be available after the eviction, i.e. even in the + // absence of the evicted pod. So for example you can prevent all voluntary + // evictions by specifying "100%". + // +optional MinAvailable intstr.IntOrString `json:"minAvailable,omitempty"` // Label query over pods whose evictions are managed by the disruption // budget. + // +optional Selector *unversioned.LabelSelector `json:"selector,omitempty"` } // PodDisruptionBudgetStatus represents information about the status of a // PodDisruptionBudget. Status may trail the actual state of a system. type PodDisruptionBudgetStatus struct { - // Whether or not a disruption is currently allowed. - PodDisruptionAllowed bool `json:"disruptionAllowed"` + // Most recent generation observed when updating this PDB status. PodDisruptionsAllowed and other + // status informatio is valid only if observedGeneration equals to PDB's object generation. + // +optional + ObservedGeneration int64 `json:"observedGeneration,omitempty"` + + // DisruptedPods contains information about pods whose eviction was + // processed by the API server eviction subresource handler but has not + // yet been observed by the PodDisruptionBudget controller. + // A pod will be in this map from the time when the API server processed the + // eviction request to the time when the pod is seen by PDB controller + // as having been marked for deletion (or after a timeout). The key in the map is the name of the pod + // and the value is the time when the API server processed the eviction request. If + // the deletion didn't occur and a pod is still there it will be removed from + // the list automatically by PodDisruptionBudget controller after some time. + // If everything goes smooth this map should be empty for the most of the time. + // Large number of entries in the map may indicate problems with pod deletions. + DisruptedPods map[string]unversioned.Time `json:"disruptedPods" protobuf:"bytes,5,rep,name=disruptedPods"` + + // Number of pod disruptions that are currently allowed. + PodDisruptionsAllowed int32 `json:"disruptionsAllowed"` // current number of healthy pods CurrentHealthy int32 `json:"currentHealthy"` @@ -54,30 +76,39 @@ type PodDisruptionBudgetStatus struct { // PodDisruptionBudget is an object to define the max disruption that can be caused to a collection of pods type PodDisruptionBudget struct { unversioned.TypeMeta `json:",inline"` - api.ObjectMeta `json:"metadata,omitempty"` + // +optional + api.ObjectMeta `json:"metadata,omitempty"` // Specification of the desired behavior of the PodDisruptionBudget. + // +optional Spec PodDisruptionBudgetSpec `json:"spec,omitempty"` // Most recently observed status of the PodDisruptionBudget. + // +optional Status PodDisruptionBudgetStatus `json:"status,omitempty"` } // PodDisruptionBudgetList is a collection of PodDisruptionBudgets. type PodDisruptionBudgetList struct { unversioned.TypeMeta `json:",inline"` + // +optional unversioned.ListMeta `json:"metadata,omitempty"` Items []PodDisruptionBudget `json:"items"` } +// +genclient=true +// +noMethods=true + // 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//evictions. +// created by POSTing to .../pods//eviction. type Eviction struct { unversioned.TypeMeta `json:",inline"` // ObjectMeta describes the pod that is being evicted. + // +optional api.ObjectMeta `json:"metadata,omitempty"` // DeleteOptions may be provided + // +optional DeleteOptions *api.DeleteOptions `json:"deleteOptions,omitempty"` } diff --git a/vendor/k8s.io/client-go/1.5/pkg/apis/policy/v1alpha1/doc.go b/vendor/k8s.io/client-go/pkg/apis/policy/v1beta1/doc.go similarity index 98% rename from vendor/k8s.io/client-go/1.5/pkg/apis/policy/v1alpha1/doc.go rename to vendor/k8s.io/client-go/pkg/apis/policy/v1beta1/doc.go index 90fb7f928..5a3389947 100644 --- a/vendor/k8s.io/client-go/1.5/pkg/apis/policy/v1alpha1/doc.go +++ b/vendor/k8s.io/client-go/pkg/apis/policy/v1beta1/doc.go @@ -21,4 +21,4 @@ limitations under the License. // they aren't all here, are PodDisruptionBudget, PodSecurityPolicy, // NetworkPolicy, etc. // +k8s:openapi-gen=true -package v1alpha1 +package v1beta1 diff --git a/vendor/k8s.io/client-go/1.5/pkg/apis/policy/v1alpha1/generated.pb.go b/vendor/k8s.io/client-go/pkg/apis/policy/v1beta1/generated.pb.go similarity index 71% rename from vendor/k8s.io/client-go/1.5/pkg/apis/policy/v1alpha1/generated.pb.go rename to vendor/k8s.io/client-go/pkg/apis/policy/v1beta1/generated.pb.go index cc337cb9b..036105335 100644 --- a/vendor/k8s.io/client-go/1.5/pkg/apis/policy/v1alpha1/generated.pb.go +++ b/vendor/k8s.io/client-go/pkg/apis/policy/v1beta1/generated.pb.go @@ -1,5 +1,5 @@ /* -Copyright 2016 The Kubernetes Authors. +Copyright 2017 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -15,14 +15,14 @@ limitations under the License. */ // Code generated by protoc-gen-gogo. -// source: k8s.io/kubernetes/pkg/apis/policy/v1alpha1/generated.proto +// source: k8s.io/kubernetes/pkg/apis/policy/v1beta1/generated.proto // DO NOT EDIT! /* - Package v1alpha1 is a generated protocol buffer package. + Package v1beta1 is a generated protocol buffer package. It is generated from these files: - k8s.io/kubernetes/pkg/apis/policy/v1alpha1/generated.proto + k8s.io/kubernetes/pkg/apis/policy/v1beta1/generated.proto It has these top-level messages: Eviction @@ -31,17 +31,18 @@ limitations under the License. PodDisruptionBudgetSpec PodDisruptionBudgetStatus */ -package v1alpha1 +package v1beta1 import proto "github.com/gogo/protobuf/proto" import fmt "fmt" import math "math" -import k8s_io_kubernetes_pkg_api_unversioned "k8s.io/client-go/1.5/pkg/api/unversioned" -import k8s_io_kubernetes_pkg_api_v1 "k8s.io/client-go/1.5/pkg/api/v1" +import k8s_io_kubernetes_pkg_api_unversioned "k8s.io/client-go/pkg/api/unversioned" +import k8s_io_kubernetes_pkg_api_v1 "k8s.io/client-go/pkg/api/v1" import strings "strings" import reflect "reflect" +import github_com_gogo_protobuf_sortkeys "github.com/gogo/protobuf/sortkeys" import io "io" @@ -77,11 +78,11 @@ func (*PodDisruptionBudgetStatus) Descriptor() ([]byte, []int) { } func init() { - proto.RegisterType((*Eviction)(nil), "k8s.io.client-go.1.5.pkg.apis.policy.v1alpha1.Eviction") - proto.RegisterType((*PodDisruptionBudget)(nil), "k8s.io.client-go.1.5.pkg.apis.policy.v1alpha1.PodDisruptionBudget") - proto.RegisterType((*PodDisruptionBudgetList)(nil), "k8s.io.client-go.1.5.pkg.apis.policy.v1alpha1.PodDisruptionBudgetList") - proto.RegisterType((*PodDisruptionBudgetSpec)(nil), "k8s.io.client-go.1.5.pkg.apis.policy.v1alpha1.PodDisruptionBudgetSpec") - proto.RegisterType((*PodDisruptionBudgetStatus)(nil), "k8s.io.client-go.1.5.pkg.apis.policy.v1alpha1.PodDisruptionBudgetStatus") + proto.RegisterType((*Eviction)(nil), "k8s.io.client-go.pkg.apis.policy.v1beta1.Eviction") + proto.RegisterType((*PodDisruptionBudget)(nil), "k8s.io.client-go.pkg.apis.policy.v1beta1.PodDisruptionBudget") + proto.RegisterType((*PodDisruptionBudgetList)(nil), "k8s.io.client-go.pkg.apis.policy.v1beta1.PodDisruptionBudgetList") + proto.RegisterType((*PodDisruptionBudgetSpec)(nil), "k8s.io.client-go.pkg.apis.policy.v1beta1.PodDisruptionBudgetSpec") + proto.RegisterType((*PodDisruptionBudgetStatus)(nil), "k8s.io.client-go.pkg.apis.policy.v1beta1.PodDisruptionBudgetStatus") } func (m *Eviction) Marshal() (data []byte, err error) { size := m.Size() @@ -252,20 +253,40 @@ func (m *PodDisruptionBudgetStatus) MarshalTo(data []byte) (int, error) { _ = l data[i] = 0x8 i++ - if m.PodDisruptionAllowed { - data[i] = 1 - } else { - data[i] = 0 + i = encodeVarintGenerated(data, i, uint64(m.ObservedGeneration)) + if len(m.DisruptedPods) > 0 { + for k := range m.DisruptedPods { + data[i] = 0x12 + i++ + v := m.DisruptedPods[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())) + n9, err := (&v).MarshalTo(data[i:]) + if err != nil { + return 0, err + } + i += n9 + } } - i++ - data[i] = 0x10 - i++ - i = encodeVarintGenerated(data, i, uint64(m.CurrentHealthy)) data[i] = 0x18 i++ - i = encodeVarintGenerated(data, i, uint64(m.DesiredHealthy)) + i = encodeVarintGenerated(data, i, uint64(m.PodDisruptionsAllowed)) data[i] = 0x20 i++ + i = encodeVarintGenerated(data, i, uint64(m.CurrentHealthy)) + data[i] = 0x28 + i++ + i = encodeVarintGenerated(data, i, uint64(m.DesiredHealthy)) + data[i] = 0x30 + i++ i = encodeVarintGenerated(data, i, uint64(m.ExpectedPods)) return i, nil } @@ -350,7 +371,17 @@ func (m *PodDisruptionBudgetSpec) Size() (n int) { func (m *PodDisruptionBudgetStatus) Size() (n int) { var l int _ = l - n += 2 + n += 1 + sovGenerated(uint64(m.ObservedGeneration)) + if len(m.DisruptedPods) > 0 { + for k, v := range m.DisruptedPods { + _ = k + _ = v + l = v.Size() + mapEntrySize := 1 + len(k) + sovGenerated(uint64(len(k))) + 1 + l + sovGenerated(uint64(l)) + n += mapEntrySize + 1 + sovGenerated(uint64(mapEntrySize)) + } + } + n += 1 + sovGenerated(uint64(m.PodDisruptionsAllowed)) n += 1 + sovGenerated(uint64(m.CurrentHealthy)) n += 1 + sovGenerated(uint64(m.DesiredHealthy)) n += 1 + sovGenerated(uint64(m.ExpectedPods)) @@ -419,8 +450,20 @@ func (this *PodDisruptionBudgetStatus) String() string { if this == nil { return "nil" } + keysForDisruptedPods := make([]string, 0, len(this.DisruptedPods)) + for k := range this.DisruptedPods { + keysForDisruptedPods = append(keysForDisruptedPods, k) + } + github_com_gogo_protobuf_sortkeys.Strings(keysForDisruptedPods) + mapStringForDisruptedPods := "map[string]k8s_io_kubernetes_pkg_api_unversioned.Time{" + for _, k := range keysForDisruptedPods { + mapStringForDisruptedPods += fmt.Sprintf("%v: %v,", k, this.DisruptedPods[k]) + } + mapStringForDisruptedPods += "}" s := strings.Join([]string{`&PodDisruptionBudgetStatus{`, - `PodDisruptionAllowed:` + fmt.Sprintf("%v", this.PodDisruptionAllowed) + `,`, + `ObservedGeneration:` + fmt.Sprintf("%v", this.ObservedGeneration) + `,`, + `DisruptedPods:` + mapStringForDisruptedPods + `,`, + `PodDisruptionsAllowed:` + fmt.Sprintf("%v", this.PodDisruptionsAllowed) + `,`, `CurrentHealthy:` + fmt.Sprintf("%v", this.CurrentHealthy) + `,`, `DesiredHealthy:` + fmt.Sprintf("%v", this.DesiredHealthy) + `,`, `ExpectedPods:` + fmt.Sprintf("%v", this.ExpectedPods) + `,`, @@ -944,9 +987,9 @@ func (m *PodDisruptionBudgetStatus) Unmarshal(data []byte) error { switch fieldNum { case 1: if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field PodDisruptionAllowed", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field ObservedGeneration", wireType) } - var v int + m.ObservedGeneration = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGenerated @@ -956,13 +999,147 @@ func (m *PodDisruptionBudgetStatus) Unmarshal(data []byte) error { } b := data[iNdEx] iNdEx++ - v |= (int(b) & 0x7F) << shift + m.ObservedGeneration |= (int64(b) & 0x7F) << shift if b < 0x80 { break } } - m.PodDisruptionAllowed = bool(v != 0) case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field DisruptedPods", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + 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 := &k8s_io_kubernetes_pkg_api_unversioned.Time{} + if err := mapvalue.Unmarshal(data[iNdEx:postmsgIndex]); err != nil { + return err + } + iNdEx = postmsgIndex + if m.DisruptedPods == nil { + m.DisruptedPods = make(map[string]k8s_io_kubernetes_pkg_api_unversioned.Time) + } + m.DisruptedPods[mapkey] = *mapvalue + iNdEx = postIndex + case 3: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field PodDisruptionsAllowed", wireType) + } + m.PodDisruptionsAllowed = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + m.PodDisruptionsAllowed |= (int32(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + case 4: if wireType != 0 { return fmt.Errorf("proto: wrong wireType = %d for field CurrentHealthy", wireType) } @@ -981,7 +1158,7 @@ func (m *PodDisruptionBudgetStatus) Unmarshal(data []byte) error { break } } - case 3: + case 5: if wireType != 0 { return fmt.Errorf("proto: wrong wireType = %d for field DesiredHealthy", wireType) } @@ -1000,7 +1177,7 @@ func (m *PodDisruptionBudgetStatus) Unmarshal(data []byte) error { break } } - case 4: + case 6: if wireType != 0 { return fmt.Errorf("proto: wrong wireType = %d for field ExpectedPods", wireType) } @@ -1146,46 +1323,53 @@ var ( ) 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, + // 758 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x09, 0x6e, 0x88, 0x02, 0xff, 0xb4, 0x94, 0xcf, 0x6f, 0xdb, 0x36, + 0x14, 0xc7, 0xad, 0xd8, 0xce, 0x3c, 0xc6, 0x0e, 0x32, 0x6e, 0xd9, 0x3c, 0x03, 0x53, 0x06, 0x9f, + 0x12, 0x6c, 0xa1, 0xe0, 0x60, 0x03, 0xb2, 0x1d, 0x02, 0x44, 0x73, 0xb0, 0x65, 0x58, 0xe0, 0x40, + 0x19, 0xb0, 0x61, 0xc0, 0x0a, 0xe8, 0xc7, 0xab, 0xc2, 0x5a, 0x16, 0x05, 0x92, 0x52, 0xeb, 0x5b, + 0xff, 0x84, 0x1e, 0xfa, 0x1f, 0xf5, 0x12, 0xf4, 0x94, 0x63, 0x2f, 0x0d, 0x1a, 0xe7, 0x7f, 0xe8, + 0xb9, 0x90, 0x44, 0x3b, 0x96, 0x7f, 0x04, 0x01, 0xd2, 0xde, 0x44, 0xf2, 0x7d, 0xbe, 0xdf, 0xf7, + 0x1e, 0x1f, 0x85, 0x7e, 0xe9, 0xef, 0x0b, 0x42, 0x99, 0xd1, 0x8f, 0x1d, 0xe0, 0x21, 0x48, 0x10, + 0x46, 0xd4, 0xf7, 0x0d, 0x3b, 0xa2, 0xc2, 0x88, 0x58, 0x40, 0xdd, 0xa1, 0x91, 0x74, 0x1c, 0x90, + 0x76, 0xc7, 0xf0, 0x21, 0x04, 0x6e, 0x4b, 0xf0, 0x48, 0xc4, 0x99, 0x64, 0x78, 0x27, 0x47, 0xc9, + 0x2d, 0x4a, 0xa2, 0xbe, 0x4f, 0x52, 0x94, 0xe4, 0x28, 0x51, 0x68, 0x6b, 0xd7, 0xa7, 0xf2, 0x3c, + 0x76, 0x88, 0xcb, 0x06, 0x86, 0xcf, 0x7c, 0x66, 0x64, 0x0a, 0x4e, 0xfc, 0x38, 0x5b, 0x65, 0x8b, + 0xec, 0x2b, 0x57, 0x6e, 0xed, 0x2d, 0x4d, 0xca, 0xe0, 0x20, 0x58, 0xcc, 0x5d, 0x98, 0xcd, 0xa6, + 0xf5, 0xf3, 0x72, 0x26, 0x0e, 0x13, 0xe0, 0x82, 0xb2, 0x10, 0xbc, 0x39, 0xec, 0xc7, 0xe5, 0x58, + 0x32, 0x57, 0x72, 0x6b, 0x77, 0x71, 0x34, 0x8f, 0x43, 0x49, 0x07, 0xf3, 0x39, 0x75, 0x16, 0x87, + 0xc7, 0x92, 0x06, 0x06, 0x0d, 0xa5, 0x90, 0x7c, 0x16, 0x69, 0xbf, 0xd6, 0x50, 0xed, 0x28, 0xa1, + 0xae, 0xa4, 0x2c, 0xc4, 0xff, 0xa2, 0xda, 0x00, 0xa4, 0xed, 0xd9, 0xd2, 0x6e, 0x6a, 0xdf, 0x6b, + 0xdb, 0x6b, 0x7b, 0xdb, 0x64, 0x69, 0xd3, 0x49, 0xd2, 0x21, 0x3d, 0xe7, 0x09, 0xb8, 0xf2, 0x04, + 0xa4, 0x6d, 0xe2, 0x8b, 0xab, 0xad, 0xd2, 0xe8, 0x6a, 0x0b, 0xdd, 0xee, 0x59, 0x13, 0x35, 0xec, + 0xa1, 0x86, 0x07, 0x01, 0x48, 0xe8, 0x45, 0xa9, 0x93, 0x68, 0xae, 0x64, 0xf2, 0x3f, 0xdc, 0x2d, + 0xdf, 0x9d, 0x46, 0xcc, 0x2f, 0x46, 0x57, 0x5b, 0x8d, 0xc2, 0x96, 0x55, 0x14, 0x6d, 0xbf, 0x5a, + 0x41, 0x5f, 0x9e, 0x32, 0xaf, 0x4b, 0x05, 0x8f, 0xb3, 0x2d, 0x33, 0xf6, 0x7c, 0x90, 0x9f, 0xb4, + 0xae, 0x8a, 0x88, 0xc0, 0x55, 0xe5, 0x98, 0xe4, 0xde, 0x23, 0x4a, 0x16, 0xe4, 0x79, 0x16, 0x81, + 0x6b, 0xd6, 0x95, 0x5f, 0x25, 0x5d, 0x59, 0x99, 0x3a, 0x0e, 0xd0, 0xaa, 0x90, 0xb6, 0x8c, 0x45, + 0xb3, 0x9c, 0xf9, 0x74, 0x1f, 0xe8, 0x93, 0x69, 0x99, 0xeb, 0xca, 0x69, 0x35, 0x5f, 0x5b, 0xca, + 0xa3, 0xfd, 0x56, 0x43, 0xdf, 0x2c, 0xa0, 0xfe, 0xa2, 0x42, 0xe2, 0xff, 0xe7, 0x3a, 0x69, 0xdc, + 0xd1, 0xc9, 0xa9, 0x87, 0x40, 0x52, 0x3c, 0x6b, 0xe8, 0x86, 0xb2, 0xad, 0x8d, 0x77, 0xa6, 0xda, + 0xe9, 0xa2, 0x2a, 0x95, 0x30, 0x48, 0xc7, 0xa3, 0xbc, 0xbd, 0xb6, 0x77, 0xf0, 0xb0, 0x3a, 0xcd, + 0x86, 0xb2, 0xaa, 0x1e, 0xa7, 0xa2, 0x56, 0xae, 0xdd, 0xbe, 0x59, 0x5c, 0x5f, 0xda, 0x6f, 0x7c, + 0x8e, 0xea, 0x03, 0x1a, 0x1e, 0x26, 0x36, 0x0d, 0x6c, 0x27, 0x00, 0x55, 0x23, 0x59, 0x92, 0x47, + 0xfa, 0xb0, 0x48, 0xfe, 0xb0, 0xc8, 0x71, 0x28, 0x7b, 0xfc, 0x4c, 0x72, 0x1a, 0xfa, 0xe6, 0x57, + 0xca, 0xb7, 0x7e, 0x32, 0xa5, 0x65, 0x15, 0x94, 0xf1, 0x23, 0x54, 0x13, 0x10, 0x80, 0x2b, 0x19, + 0x57, 0xd3, 0xf3, 0xd3, 0x7d, 0x3b, 0x69, 0x3b, 0x10, 0x9c, 0x29, 0xd6, 0xac, 0xa7, 0xad, 0x1c, + 0xaf, 0xac, 0x89, 0x66, 0xfb, 0x7d, 0x05, 0x7d, 0xbb, 0xf4, 0xee, 0xf1, 0x9f, 0x08, 0x33, 0x47, + 0x00, 0x4f, 0xc0, 0xfb, 0x3d, 0xff, 0x23, 0x50, 0x16, 0x66, 0xd5, 0x96, 0xcd, 0x96, 0xca, 0x1e, + 0xf7, 0xe6, 0x22, 0xac, 0x05, 0x14, 0x7e, 0xa9, 0xa1, 0x86, 0x97, 0xdb, 0x80, 0x77, 0xca, 0xbc, + 0xf1, 0xed, 0xfd, 0xf3, 0x31, 0xa6, 0x94, 0x74, 0xa7, 0x95, 0x8f, 0x42, 0xc9, 0x87, 0xe6, 0xa6, + 0x4a, 0xb0, 0x51, 0x38, 0xb3, 0x8a, 0x49, 0xe0, 0x13, 0x84, 0xbd, 0x89, 0xa4, 0x38, 0x0c, 0x02, + 0xf6, 0x14, 0xbc, 0xec, 0x01, 0x55, 0xcd, 0xef, 0x94, 0xc2, 0x66, 0xc1, 0x77, 0x1c, 0x64, 0x2d, + 0x00, 0xf1, 0x01, 0x5a, 0x77, 0x63, 0xce, 0x21, 0x94, 0x7f, 0x80, 0x1d, 0xc8, 0xf3, 0x61, 0xb3, + 0x92, 0x49, 0x7d, 0xad, 0xa4, 0xd6, 0x7f, 0x2b, 0x9c, 0x5a, 0x33, 0xd1, 0x29, 0xef, 0x81, 0xa0, + 0x1c, 0xbc, 0x31, 0x5f, 0x2d, 0xf2, 0xdd, 0xc2, 0xa9, 0x35, 0x13, 0x8d, 0xf7, 0x51, 0x1d, 0x9e, + 0x45, 0xe0, 0x8e, 0x7b, 0xbc, 0x9a, 0xd1, 0x93, 0x49, 0x3b, 0x9a, 0x3a, 0xb3, 0x0a, 0x91, 0xad, + 0x01, 0xc2, 0xf3, 0x4d, 0xc4, 0x1b, 0xa8, 0xdc, 0x87, 0x61, 0x76, 0xe5, 0x9f, 0x5b, 0xe9, 0x27, + 0x3e, 0x44, 0xd5, 0xc4, 0x0e, 0x62, 0xb8, 0xc7, 0xbf, 0x79, 0x7a, 0x1c, 0xff, 0xa6, 0x03, 0xb0, + 0x72, 0xf2, 0xd7, 0x95, 0x7d, 0xcd, 0xdc, 0xb9, 0xb8, 0xd6, 0x4b, 0x97, 0xd7, 0x7a, 0xe9, 0xcd, + 0xb5, 0x5e, 0x7a, 0x3e, 0xd2, 0xb5, 0x8b, 0x91, 0xae, 0x5d, 0x8e, 0x74, 0xed, 0xdd, 0x48, 0xd7, + 0x5e, 0xdc, 0xe8, 0xa5, 0xff, 0x3e, 0x53, 0xb7, 0xfe, 0x21, 0x00, 0x00, 0xff, 0xff, 0x59, 0x3e, + 0xe1, 0xf8, 0x0d, 0x08, 0x00, 0x00, } diff --git a/vendor/k8s.io/client-go/1.5/pkg/apis/policy/v1alpha1/register.go b/vendor/k8s.io/client-go/pkg/apis/policy/v1beta1/register.go similarity index 85% rename from vendor/k8s.io/client-go/1.5/pkg/apis/policy/v1alpha1/register.go rename to vendor/k8s.io/client-go/pkg/apis/policy/v1beta1/register.go index f3f36faaa..9901c28b2 100644 --- a/vendor/k8s.io/client-go/1.5/pkg/apis/policy/v1alpha1/register.go +++ b/vendor/k8s.io/client-go/pkg/apis/policy/v1beta1/register.go @@ -14,20 +14,20 @@ See the License for the specific language governing permissions and limitations under the License. */ -package v1alpha1 +package v1beta1 import ( - "k8s.io/client-go/1.5/pkg/api/unversioned" - "k8s.io/client-go/1.5/pkg/api/v1" - "k8s.io/client-go/1.5/pkg/runtime" - versionedwatch "k8s.io/client-go/1.5/pkg/watch/versioned" + "k8s.io/client-go/pkg/api/unversioned" + "k8s.io/client-go/pkg/api/v1" + "k8s.io/client-go/pkg/runtime" + versionedwatch "k8s.io/client-go/pkg/watch/versioned" ) // GroupName is the group name use in this package const GroupName = "policy" // SchemeGroupVersion is group version used to register these objects -var SchemeGroupVersion = unversioned.GroupVersion{Group: GroupName, Version: "v1alpha1"} +var SchemeGroupVersion = unversioned.GroupVersion{Group: GroupName, Version: "v1beta1"} var ( SchemeBuilder = runtime.NewSchemeBuilder(addKnownTypes) @@ -42,6 +42,7 @@ func addKnownTypes(scheme *runtime.Scheme) error { &Eviction{}, &v1.ListOptions{}, &v1.DeleteOptions{}, + &v1.ExportOptions{}, ) // Add the watch version that applies versionedwatch.AddToGroupVersion(scheme, SchemeGroupVersion) diff --git a/vendor/k8s.io/client-go/1.5/pkg/apis/policy/v1alpha1/types.generated.go b/vendor/k8s.io/client-go/pkg/apis/policy/v1beta1/types.generated.go similarity index 63% rename from vendor/k8s.io/client-go/1.5/pkg/apis/policy/v1alpha1/types.generated.go rename to vendor/k8s.io/client-go/pkg/apis/policy/v1beta1/types.generated.go index afaf78fdc..387b3f578 100644 --- a/vendor/k8s.io/client-go/1.5/pkg/apis/policy/v1alpha1/types.generated.go +++ b/vendor/k8s.io/client-go/pkg/apis/policy/v1beta1/types.generated.go @@ -19,16 +19,16 @@ limitations under the License. // THIS FILE IS AUTO-GENERATED BY codecgen. // ************************************************************ -package v1alpha1 +package v1beta1 import ( "errors" "fmt" codec1978 "github.com/ugorji/go/codec" - pkg2_unversioned "k8s.io/client-go/1.5/pkg/api/unversioned" - pkg3_v1 "k8s.io/client-go/1.5/pkg/api/v1" - pkg4_types "k8s.io/client-go/1.5/pkg/types" - pkg1_intstr "k8s.io/client-go/1.5/pkg/util/intstr" + pkg2_unversioned "k8s.io/client-go/pkg/api/unversioned" + pkg3_v1 "k8s.io/client-go/pkg/api/v1" + pkg4_types "k8s.io/client-go/pkg/types" + pkg1_intstr "k8s.io/client-go/pkg/util/intstr" "reflect" "runtime" time "time" @@ -362,14 +362,15 @@ func (x *PodDisruptionBudgetStatus) CodecEncodeSelf(e *codec1978.Encoder) { } else { yysep24 := !z.EncBinary() yy2arr24 := z.EncBasicHandle().StructToArray - var yyq24 [4]bool + var yyq24 [6]bool _, _, _ = yysep24, yyq24, yy2arr24 const yyr24 bool = false + yyq24[0] = x.ObservedGeneration != 0 var yynn24 int if yyr24 || yy2arr24 { - r.EncodeArrayStart(4) + r.EncodeArrayStart(6) } else { - yynn24 = 4 + yynn24 = 5 for _, b := range yyq24 { if b { yynn24++ @@ -380,40 +381,54 @@ func (x *PodDisruptionBudgetStatus) CodecEncodeSelf(e *codec1978.Encoder) { } if yyr24 || yy2arr24 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym26 := z.EncBinary() - _ = yym26 - if false { + if yyq24[0] { + yym26 := z.EncBinary() + _ = yym26 + if false { + } else { + r.EncodeInt(int64(x.ObservedGeneration)) + } } else { - r.EncodeBool(bool(x.PodDisruptionAllowed)) + r.EncodeInt(0) } } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("disruptionAllowed")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym27 := z.EncBinary() - _ = yym27 - if false { - } else { - r.EncodeBool(bool(x.PodDisruptionAllowed)) + if yyq24[0] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("observedGeneration")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym27 := z.EncBinary() + _ = yym27 + if false { + } else { + r.EncodeInt(int64(x.ObservedGeneration)) + } } } if yyr24 || yy2arr24 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym29 := z.EncBinary() - _ = yym29 - if false { + if x.DisruptedPods == nil { + r.EncodeNil() } else { - r.EncodeInt(int64(x.CurrentHealthy)) + yym29 := z.EncBinary() + _ = yym29 + if false { + } else { + h.encMapstringunversioned_Time((map[string]pkg2_unversioned.Time)(x.DisruptedPods), e) + } } } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("currentHealthy")) + r.EncodeString(codecSelferC_UTF81234, string("disruptedPods")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym30 := z.EncBinary() - _ = yym30 - if false { + if x.DisruptedPods == nil { + r.EncodeNil() } else { - r.EncodeInt(int64(x.CurrentHealthy)) + yym30 := z.EncBinary() + _ = yym30 + if false { + } else { + h.encMapstringunversioned_Time((map[string]pkg2_unversioned.Time)(x.DisruptedPods), e) + } } } if yyr24 || yy2arr24 { @@ -422,17 +437,17 @@ func (x *PodDisruptionBudgetStatus) CodecEncodeSelf(e *codec1978.Encoder) { _ = yym32 if false { } else { - r.EncodeInt(int64(x.DesiredHealthy)) + r.EncodeInt(int64(x.PodDisruptionsAllowed)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("desiredHealthy")) + r.EncodeString(codecSelferC_UTF81234, string("disruptionsAllowed")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym33 := z.EncBinary() _ = yym33 if false { } else { - r.EncodeInt(int64(x.DesiredHealthy)) + r.EncodeInt(int64(x.PodDisruptionsAllowed)) } } if yyr24 || yy2arr24 { @@ -440,6 +455,44 @@ func (x *PodDisruptionBudgetStatus) CodecEncodeSelf(e *codec1978.Encoder) { yym35 := z.EncBinary() _ = yym35 if false { + } else { + r.EncodeInt(int64(x.CurrentHealthy)) + } + } else { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("currentHealthy")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym36 := z.EncBinary() + _ = yym36 + if false { + } else { + r.EncodeInt(int64(x.CurrentHealthy)) + } + } + if yyr24 || yy2arr24 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yym38 := z.EncBinary() + _ = yym38 + if false { + } else { + r.EncodeInt(int64(x.DesiredHealthy)) + } + } else { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("desiredHealthy")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym39 := z.EncBinary() + _ = yym39 + if false { + } else { + r.EncodeInt(int64(x.DesiredHealthy)) + } + } + if yyr24 || yy2arr24 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yym41 := z.EncBinary() + _ = yym41 + if false { } else { r.EncodeInt(int64(x.ExpectedPods)) } @@ -447,8 +500,8 @@ func (x *PodDisruptionBudgetStatus) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("expectedPods")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym36 := z.EncBinary() - _ = yym36 + yym42 := z.EncBinary() + _ = yym42 if false { } else { r.EncodeInt(int64(x.ExpectedPods)) @@ -467,25 +520,25 @@ func (x *PodDisruptionBudgetStatus) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym37 := z.DecBinary() - _ = yym37 + yym43 := z.DecBinary() + _ = yym43 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct38 := r.ContainerType() - if yyct38 == codecSelferValueTypeMap1234 { - yyl38 := r.ReadMapStart() - if yyl38 == 0 { + yyct44 := r.ContainerType() + if yyct44 == codecSelferValueTypeMap1234 { + yyl44 := r.ReadMapStart() + if yyl44 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl38, d) + x.codecDecodeSelfFromMap(yyl44, d) } - } else if yyct38 == codecSelferValueTypeArray1234 { - yyl38 := r.ReadArrayStart() - if yyl38 == 0 { + } else if yyct44 == codecSelferValueTypeArray1234 { + yyl44 := r.ReadArrayStart() + if yyl44 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl38, d) + x.codecDecodeSelfFromArray(yyl44, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -497,12 +550,12 @@ func (x *PodDisruptionBudgetStatus) codecDecodeSelfFromMap(l int, d *codec1978.D 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 { + 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 { @@ -511,15 +564,33 @@ func (x *PodDisruptionBudgetStatus) codecDecodeSelfFromMap(l int, d *codec1978.D } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys39Slc = r.DecodeBytes(yys39Slc, true, true) - yys39 := string(yys39Slc) + yys45Slc = r.DecodeBytes(yys45Slc, true, true) + yys45 := string(yys45Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys39 { - case "disruptionAllowed": + switch yys45 { + case "observedGeneration": if r.TryDecodeAsNil() { - x.PodDisruptionAllowed = false + x.ObservedGeneration = 0 } else { - x.PodDisruptionAllowed = bool(r.DecodeBool()) + x.ObservedGeneration = int64(r.DecodeInt(64)) + } + case "disruptedPods": + if r.TryDecodeAsNil() { + x.DisruptedPods = nil + } else { + yyv47 := &x.DisruptedPods + yym48 := z.DecBinary() + _ = yym48 + if false { + } else { + h.decMapstringunversioned_Time((*map[string]pkg2_unversioned.Time)(yyv47), d) + } + } + case "disruptionsAllowed": + if r.TryDecodeAsNil() { + x.PodDisruptionsAllowed = 0 + } else { + x.PodDisruptionsAllowed = int32(r.DecodeInt(32)) } case "currentHealthy": if r.TryDecodeAsNil() { @@ -540,9 +611,9 @@ func (x *PodDisruptionBudgetStatus) codecDecodeSelfFromMap(l int, d *codec1978.D x.ExpectedPods = int32(r.DecodeInt(32)) } default: - z.DecStructFieldNotFound(-1, yys39) - } // end switch yys39 - } // end for yyj39 + z.DecStructFieldNotFound(-1, yys45) + } // end switch yys45 + } // end for yyj45 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -550,32 +621,70 @@ func (x *PodDisruptionBudgetStatus) codecDecodeSelfFromArray(l int, d *codec1978 var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj44 int - var yyb44 bool - var yyhl44 bool = l >= 0 - yyj44++ - if yyhl44 { - yyb44 = yyj44 > l + var yyj53 int + var yyb53 bool + var yyhl53 bool = l >= 0 + yyj53++ + if yyhl53 { + yyb53 = yyj53 > l } else { - yyb44 = r.CheckBreak() + yyb53 = r.CheckBreak() } - if yyb44 { + if yyb53 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.PodDisruptionAllowed = false + x.ObservedGeneration = 0 } else { - x.PodDisruptionAllowed = bool(r.DecodeBool()) + x.ObservedGeneration = int64(r.DecodeInt(64)) } - yyj44++ - if yyhl44 { - yyb44 = yyj44 > l + yyj53++ + if yyhl53 { + yyb53 = yyj53 > l } else { - yyb44 = r.CheckBreak() + yyb53 = r.CheckBreak() } - if yyb44 { + if yyb53 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.DisruptedPods = nil + } else { + yyv55 := &x.DisruptedPods + yym56 := z.DecBinary() + _ = yym56 + if false { + } else { + h.decMapstringunversioned_Time((*map[string]pkg2_unversioned.Time)(yyv55), d) + } + } + yyj53++ + if yyhl53 { + yyb53 = yyj53 > l + } else { + yyb53 = r.CheckBreak() + } + if yyb53 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.PodDisruptionsAllowed = 0 + } else { + x.PodDisruptionsAllowed = int32(r.DecodeInt(32)) + } + yyj53++ + if yyhl53 { + yyb53 = yyj53 > l + } else { + yyb53 = r.CheckBreak() + } + if yyb53 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -585,13 +694,13 @@ func (x *PodDisruptionBudgetStatus) codecDecodeSelfFromArray(l int, d *codec1978 } else { x.CurrentHealthy = int32(r.DecodeInt(32)) } - yyj44++ - if yyhl44 { - yyb44 = yyj44 > l + yyj53++ + if yyhl53 { + yyb53 = yyj53 > l } else { - yyb44 = r.CheckBreak() + yyb53 = r.CheckBreak() } - if yyb44 { + if yyb53 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -601,13 +710,13 @@ func (x *PodDisruptionBudgetStatus) codecDecodeSelfFromArray(l int, d *codec1978 } else { x.DesiredHealthy = int32(r.DecodeInt(32)) } - yyj44++ - if yyhl44 { - yyb44 = yyj44 > l + yyj53++ + if yyhl53 { + yyb53 = yyj53 > l } else { - yyb44 = r.CheckBreak() + yyb53 = r.CheckBreak() } - if yyb44 { + if yyb53 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -618,17 +727,17 @@ func (x *PodDisruptionBudgetStatus) codecDecodeSelfFromArray(l int, d *codec1978 x.ExpectedPods = int32(r.DecodeInt(32)) } for { - yyj44++ - if yyhl44 { - yyb44 = yyj44 > l + yyj53++ + if yyhl53 { + yyb53 = yyj53 > l } else { - yyb44 = r.CheckBreak() + yyb53 = r.CheckBreak() } - if yyb44 { + if yyb53 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj44-1, "") + z.DecStructFieldNotFound(yyj53-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -640,39 +749,39 @@ func (x *PodDisruptionBudget) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym49 := z.EncBinary() - _ = yym49 + yym61 := z.EncBinary() + _ = yym61 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - 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 { + yysep62 := !z.EncBinary() + yy2arr62 := z.EncBasicHandle().StructToArray + var yyq62 [5]bool + _, _, _ = yysep62, yyq62, yy2arr62 + const yyr62 bool = false + yyq62[0] = x.Kind != "" + yyq62[1] = x.APIVersion != "" + yyq62[2] = true + yyq62[3] = true + yyq62[4] = true + var yynn62 int + if yyr62 || yy2arr62 { r.EncodeArrayStart(5) } else { - yynn50 = 0 - for _, b := range yyq50 { + yynn62 = 0 + for _, b := range yyq62 { if b { - yynn50++ + yynn62++ } } - r.EncodeMapStart(yynn50) - yynn50 = 0 + r.EncodeMapStart(yynn62) + yynn62 = 0 } - if yyr50 || yy2arr50 { + if yyr62 || yy2arr62 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq50[0] { - yym52 := z.EncBinary() - _ = yym52 + if yyq62[0] { + yym64 := z.EncBinary() + _ = yym64 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) @@ -681,23 +790,23 @@ func (x *PodDisruptionBudget) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq50[0] { + if yyq62[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym53 := z.EncBinary() - _ = yym53 + yym65 := z.EncBinary() + _ = yym65 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } - if yyr50 || yy2arr50 { + if yyr62 || yy2arr62 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq50[1] { - yym55 := z.EncBinary() - _ = yym55 + if yyq62[1] { + yym67 := z.EncBinary() + _ = yym67 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) @@ -706,70 +815,70 @@ func (x *PodDisruptionBudget) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq50[1] { + if yyq62[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym56 := z.EncBinary() - _ = yym56 + yym68 := z.EncBinary() + _ = yym68 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } - if yyr50 || yy2arr50 { + if yyr62 || yy2arr62 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq50[2] { - yy58 := &x.ObjectMeta - yy58.CodecEncodeSelf(e) + if yyq62[2] { + yy70 := &x.ObjectMeta + yy70.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { - if yyq50[2] { + if yyq62[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy59 := &x.ObjectMeta - yy59.CodecEncodeSelf(e) + yy71 := &x.ObjectMeta + yy71.CodecEncodeSelf(e) } } - if yyr50 || yy2arr50 { + if yyr62 || yy2arr62 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq50[3] { - yy61 := &x.Spec - yy61.CodecEncodeSelf(e) + if yyq62[3] { + yy73 := &x.Spec + yy73.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { - if yyq50[3] { + if yyq62[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("spec")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy62 := &x.Spec - yy62.CodecEncodeSelf(e) + yy74 := &x.Spec + yy74.CodecEncodeSelf(e) } } - if yyr50 || yy2arr50 { + if yyr62 || yy2arr62 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq50[4] { - yy64 := &x.Status - yy64.CodecEncodeSelf(e) + if yyq62[4] { + yy76 := &x.Status + yy76.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { - if yyq50[4] { + if yyq62[4] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("status")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy65 := &x.Status - yy65.CodecEncodeSelf(e) + yy77 := &x.Status + yy77.CodecEncodeSelf(e) } } - if yyr50 || yy2arr50 { + if yyr62 || yy2arr62 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -782,25 +891,25 @@ func (x *PodDisruptionBudget) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym66 := z.DecBinary() - _ = yym66 + yym78 := z.DecBinary() + _ = yym78 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct67 := r.ContainerType() - if yyct67 == codecSelferValueTypeMap1234 { - yyl67 := r.ReadMapStart() - if yyl67 == 0 { + yyct79 := r.ContainerType() + if yyct79 == codecSelferValueTypeMap1234 { + yyl79 := r.ReadMapStart() + if yyl79 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl67, d) + x.codecDecodeSelfFromMap(yyl79, d) } - } else if yyct67 == codecSelferValueTypeArray1234 { - yyl67 := r.ReadArrayStart() - if yyl67 == 0 { + } else if yyct79 == codecSelferValueTypeArray1234 { + yyl79 := r.ReadArrayStart() + if yyl79 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl67, d) + x.codecDecodeSelfFromArray(yyl79, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -812,12 +921,12 @@ func (x *PodDisruptionBudget) codecDecodeSelfFromMap(l int, d *codec1978.Decoder var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys68Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys68Slc - var yyhl68 bool = l >= 0 - for yyj68 := 0; ; yyj68++ { - if yyhl68 { - if yyj68 >= 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 { @@ -826,10 +935,10 @@ func (x *PodDisruptionBudget) codecDecodeSelfFromMap(l int, d *codec1978.Decoder } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys68Slc = r.DecodeBytes(yys68Slc, true, true) - yys68 := string(yys68Slc) + yys80Slc = r.DecodeBytes(yys80Slc, true, true) + yys80 := string(yys80Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys68 { + switch yys80 { case "kind": if r.TryDecodeAsNil() { x.Kind = "" @@ -846,27 +955,27 @@ func (x *PodDisruptionBudget) codecDecodeSelfFromMap(l int, d *codec1978.Decoder if r.TryDecodeAsNil() { x.ObjectMeta = pkg3_v1.ObjectMeta{} } else { - yyv71 := &x.ObjectMeta - yyv71.CodecDecodeSelf(d) + yyv83 := &x.ObjectMeta + yyv83.CodecDecodeSelf(d) } case "spec": if r.TryDecodeAsNil() { x.Spec = PodDisruptionBudgetSpec{} } else { - yyv72 := &x.Spec - yyv72.CodecDecodeSelf(d) + yyv84 := &x.Spec + yyv84.CodecDecodeSelf(d) } case "status": if r.TryDecodeAsNil() { x.Status = PodDisruptionBudgetStatus{} } else { - yyv73 := &x.Status - yyv73.CodecDecodeSelf(d) + yyv85 := &x.Status + yyv85.CodecDecodeSelf(d) } default: - z.DecStructFieldNotFound(-1, yys68) - } // end switch yys68 - } // end for yyj68 + z.DecStructFieldNotFound(-1, yys80) + } // end switch yys80 + } // end for yyj80 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -874,16 +983,16 @@ func (x *PodDisruptionBudget) codecDecodeSelfFromArray(l int, d *codec1978.Decod 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 + var yyj86 int + var yyb86 bool + var yyhl86 bool = l >= 0 + yyj86++ + if yyhl86 { + yyb86 = yyj86 > l } else { - yyb74 = r.CheckBreak() + yyb86 = r.CheckBreak() } - if yyb74 { + if yyb86 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -893,13 +1002,13 @@ func (x *PodDisruptionBudget) codecDecodeSelfFromArray(l int, d *codec1978.Decod } else { x.Kind = string(r.DecodeString()) } - yyj74++ - if yyhl74 { - yyb74 = yyj74 > l + yyj86++ + if yyhl86 { + yyb86 = yyj86 > l } else { - yyb74 = r.CheckBreak() + yyb86 = r.CheckBreak() } - if yyb74 { + if yyb86 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -909,13 +1018,13 @@ func (x *PodDisruptionBudget) codecDecodeSelfFromArray(l int, d *codec1978.Decod } else { x.APIVersion = string(r.DecodeString()) } - yyj74++ - if yyhl74 { - yyb74 = yyj74 > l + yyj86++ + if yyhl86 { + yyb86 = yyj86 > l } else { - yyb74 = r.CheckBreak() + yyb86 = r.CheckBreak() } - if yyb74 { + if yyb86 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -923,16 +1032,16 @@ func (x *PodDisruptionBudget) codecDecodeSelfFromArray(l int, d *codec1978.Decod if r.TryDecodeAsNil() { x.ObjectMeta = pkg3_v1.ObjectMeta{} } else { - yyv77 := &x.ObjectMeta - yyv77.CodecDecodeSelf(d) + yyv89 := &x.ObjectMeta + yyv89.CodecDecodeSelf(d) } - yyj74++ - if yyhl74 { - yyb74 = yyj74 > l + yyj86++ + if yyhl86 { + yyb86 = yyj86 > l } else { - yyb74 = r.CheckBreak() + yyb86 = r.CheckBreak() } - if yyb74 { + if yyb86 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -940,16 +1049,16 @@ func (x *PodDisruptionBudget) codecDecodeSelfFromArray(l int, d *codec1978.Decod if r.TryDecodeAsNil() { x.Spec = PodDisruptionBudgetSpec{} } else { - yyv78 := &x.Spec - yyv78.CodecDecodeSelf(d) + yyv90 := &x.Spec + yyv90.CodecDecodeSelf(d) } - yyj74++ - if yyhl74 { - yyb74 = yyj74 > l + yyj86++ + if yyhl86 { + yyb86 = yyj86 > l } else { - yyb74 = r.CheckBreak() + yyb86 = r.CheckBreak() } - if yyb74 { + if yyb86 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -957,21 +1066,21 @@ func (x *PodDisruptionBudget) codecDecodeSelfFromArray(l int, d *codec1978.Decod if r.TryDecodeAsNil() { x.Status = PodDisruptionBudgetStatus{} } else { - yyv79 := &x.Status - yyv79.CodecDecodeSelf(d) + yyv91 := &x.Status + yyv91.CodecDecodeSelf(d) } for { - yyj74++ - if yyhl74 { - yyb74 = yyj74 > l + yyj86++ + if yyhl86 { + yyb86 = yyj86 > l } else { - yyb74 = r.CheckBreak() + yyb86 = r.CheckBreak() } - if yyb74 { + if yyb86 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj74-1, "") + z.DecStructFieldNotFound(yyj86-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -983,37 +1092,37 @@ func (x *PodDisruptionBudgetList) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym80 := z.EncBinary() - _ = yym80 + yym92 := z.EncBinary() + _ = yym92 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[0] = x.Kind != "" - yyq81[1] = x.APIVersion != "" - yyq81[2] = true - var yynn81 int - if yyr81 || yy2arr81 { + yysep93 := !z.EncBinary() + yy2arr93 := z.EncBasicHandle().StructToArray + var yyq93 [4]bool + _, _, _ = yysep93, yyq93, yy2arr93 + const yyr93 bool = false + yyq93[0] = x.Kind != "" + yyq93[1] = x.APIVersion != "" + yyq93[2] = true + var yynn93 int + if yyr93 || yy2arr93 { r.EncodeArrayStart(4) } else { - yynn81 = 1 - for _, b := range yyq81 { + yynn93 = 1 + for _, b := range yyq93 { if b { - yynn81++ + yynn93++ } } - r.EncodeMapStart(yynn81) - yynn81 = 0 + r.EncodeMapStart(yynn93) + yynn93 = 0 } - if yyr81 || yy2arr81 { + if yyr93 || yy2arr93 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq81[0] { - yym83 := z.EncBinary() - _ = yym83 + if yyq93[0] { + yym95 := z.EncBinary() + _ = yym95 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) @@ -1022,23 +1131,23 @@ func (x *PodDisruptionBudgetList) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq81[0] { + if yyq93[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym84 := z.EncBinary() - _ = yym84 + yym96 := z.EncBinary() + _ = yym96 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } - if yyr81 || yy2arr81 { + if yyr93 || yy2arr93 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq81[1] { - yym86 := z.EncBinary() - _ = yym86 + if yyq93[1] { + yym98 := z.EncBinary() + _ = yym98 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) @@ -1047,54 +1156,54 @@ func (x *PodDisruptionBudgetList) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq81[1] { + if yyq93[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym87 := z.EncBinary() - _ = yym87 + yym99 := z.EncBinary() + _ = yym99 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } - if yyr81 || yy2arr81 { + if yyr93 || yy2arr93 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq81[2] { - yy89 := &x.ListMeta - yym90 := z.EncBinary() - _ = yym90 + if yyq93[2] { + yy101 := &x.ListMeta + yym102 := z.EncBinary() + _ = yym102 if false { - } else if z.HasExtensions() && z.EncExt(yy89) { + } else if z.HasExtensions() && z.EncExt(yy101) { } else { - z.EncFallback(yy89) + z.EncFallback(yy101) } } else { r.EncodeNil() } } else { - if yyq81[2] { + if yyq93[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy91 := &x.ListMeta - yym92 := z.EncBinary() - _ = yym92 + yy103 := &x.ListMeta + yym104 := z.EncBinary() + _ = yym104 if false { - } else if z.HasExtensions() && z.EncExt(yy91) { + } else if z.HasExtensions() && z.EncExt(yy103) { } else { - z.EncFallback(yy91) + z.EncFallback(yy103) } } } - if yyr81 || yy2arr81 { + if yyr93 || yy2arr93 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.Items == nil { r.EncodeNil() } else { - yym94 := z.EncBinary() - _ = yym94 + yym106 := z.EncBinary() + _ = yym106 if false { } else { h.encSlicePodDisruptionBudget(([]PodDisruptionBudget)(x.Items), e) @@ -1107,15 +1216,15 @@ func (x *PodDisruptionBudgetList) CodecEncodeSelf(e *codec1978.Encoder) { if x.Items == nil { r.EncodeNil() } else { - yym95 := z.EncBinary() - _ = yym95 + yym107 := z.EncBinary() + _ = yym107 if false { } else { h.encSlicePodDisruptionBudget(([]PodDisruptionBudget)(x.Items), e) } } } - if yyr81 || yy2arr81 { + if yyr93 || yy2arr93 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -1128,25 +1237,25 @@ func (x *PodDisruptionBudgetList) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym96 := z.DecBinary() - _ = yym96 + yym108 := z.DecBinary() + _ = yym108 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct97 := r.ContainerType() - if yyct97 == codecSelferValueTypeMap1234 { - yyl97 := r.ReadMapStart() - if yyl97 == 0 { + yyct109 := r.ContainerType() + if yyct109 == codecSelferValueTypeMap1234 { + yyl109 := r.ReadMapStart() + if yyl109 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl97, d) + x.codecDecodeSelfFromMap(yyl109, d) } - } else if yyct97 == codecSelferValueTypeArray1234 { - yyl97 := r.ReadArrayStart() - if yyl97 == 0 { + } else if yyct109 == codecSelferValueTypeArray1234 { + yyl109 := r.ReadArrayStart() + if yyl109 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl97, d) + x.codecDecodeSelfFromArray(yyl109, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -1158,12 +1267,12 @@ func (x *PodDisruptionBudgetList) codecDecodeSelfFromMap(l int, d *codec1978.Dec 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 { + var yys110Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys110Slc + var yyhl110 bool = l >= 0 + for yyj110 := 0; ; yyj110++ { + if yyhl110 { + if yyj110 >= l { break } } else { @@ -1172,10 +1281,10 @@ func (x *PodDisruptionBudgetList) codecDecodeSelfFromMap(l int, d *codec1978.Dec } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys98Slc = r.DecodeBytes(yys98Slc, true, true) - yys98 := string(yys98Slc) + yys110Slc = r.DecodeBytes(yys110Slc, true, true) + yys110 := string(yys110Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys98 { + switch yys110 { case "kind": if r.TryDecodeAsNil() { x.Kind = "" @@ -1192,31 +1301,31 @@ func (x *PodDisruptionBudgetList) codecDecodeSelfFromMap(l int, d *codec1978.Dec if r.TryDecodeAsNil() { x.ListMeta = pkg2_unversioned.ListMeta{} } else { - yyv101 := &x.ListMeta - yym102 := z.DecBinary() - _ = yym102 + yyv113 := &x.ListMeta + yym114 := z.DecBinary() + _ = yym114 if false { - } else if z.HasExtensions() && z.DecExt(yyv101) { + } else if z.HasExtensions() && z.DecExt(yyv113) { } else { - z.DecFallback(yyv101, false) + z.DecFallback(yyv113, false) } } case "items": if r.TryDecodeAsNil() { x.Items = nil } else { - yyv103 := &x.Items - yym104 := z.DecBinary() - _ = yym104 + yyv115 := &x.Items + yym116 := z.DecBinary() + _ = yym116 if false { } else { - h.decSlicePodDisruptionBudget((*[]PodDisruptionBudget)(yyv103), d) + h.decSlicePodDisruptionBudget((*[]PodDisruptionBudget)(yyv115), d) } } default: - z.DecStructFieldNotFound(-1, yys98) - } // end switch yys98 - } // end for yyj98 + z.DecStructFieldNotFound(-1, yys110) + } // end switch yys110 + } // end for yyj110 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -1224,16 +1333,16 @@ func (x *PodDisruptionBudgetList) codecDecodeSelfFromArray(l int, d *codec1978.D 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 + var yyj117 int + var yyb117 bool + var yyhl117 bool = l >= 0 + yyj117++ + if yyhl117 { + yyb117 = yyj117 > l } else { - yyb105 = r.CheckBreak() + yyb117 = r.CheckBreak() } - if yyb105 { + if yyb117 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -1243,13 +1352,13 @@ func (x *PodDisruptionBudgetList) codecDecodeSelfFromArray(l int, d *codec1978.D } else { x.Kind = string(r.DecodeString()) } - yyj105++ - if yyhl105 { - yyb105 = yyj105 > l + yyj117++ + if yyhl117 { + yyb117 = yyj117 > l } else { - yyb105 = r.CheckBreak() + yyb117 = r.CheckBreak() } - if yyb105 { + if yyb117 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -1259,13 +1368,13 @@ func (x *PodDisruptionBudgetList) codecDecodeSelfFromArray(l int, d *codec1978.D } else { x.APIVersion = string(r.DecodeString()) } - yyj105++ - if yyhl105 { - yyb105 = yyj105 > l + yyj117++ + if yyhl117 { + yyb117 = yyj117 > l } else { - yyb105 = r.CheckBreak() + yyb117 = r.CheckBreak() } - if yyb105 { + if yyb117 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -1273,22 +1382,22 @@ func (x *PodDisruptionBudgetList) codecDecodeSelfFromArray(l int, d *codec1978.D if r.TryDecodeAsNil() { x.ListMeta = pkg2_unversioned.ListMeta{} } else { - yyv108 := &x.ListMeta - yym109 := z.DecBinary() - _ = yym109 + yyv120 := &x.ListMeta + yym121 := z.DecBinary() + _ = yym121 if false { - } else if z.HasExtensions() && z.DecExt(yyv108) { + } else if z.HasExtensions() && z.DecExt(yyv120) { } else { - z.DecFallback(yyv108, false) + z.DecFallback(yyv120, false) } } - yyj105++ - if yyhl105 { - yyb105 = yyj105 > l + yyj117++ + if yyhl117 { + yyb117 = yyj117 > l } else { - yyb105 = r.CheckBreak() + yyb117 = r.CheckBreak() } - if yyb105 { + if yyb117 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -1296,26 +1405,26 @@ func (x *PodDisruptionBudgetList) codecDecodeSelfFromArray(l int, d *codec1978.D if r.TryDecodeAsNil() { x.Items = nil } else { - yyv110 := &x.Items - yym111 := z.DecBinary() - _ = yym111 + yyv122 := &x.Items + yym123 := z.DecBinary() + _ = yym123 if false { } else { - h.decSlicePodDisruptionBudget((*[]PodDisruptionBudget)(yyv110), d) + h.decSlicePodDisruptionBudget((*[]PodDisruptionBudget)(yyv122), d) } } for { - yyj105++ - if yyhl105 { - yyb105 = yyj105 > l + yyj117++ + if yyhl117 { + yyb117 = yyj117 > l } else { - yyb105 = r.CheckBreak() + yyb117 = r.CheckBreak() } - if yyb105 { + if yyb117 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj105-1, "") + z.DecStructFieldNotFound(yyj117-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -1327,38 +1436,38 @@ func (x *Eviction) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym112 := z.EncBinary() - _ = yym112 + yym124 := z.EncBinary() + _ = yym124 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 { + yysep125 := !z.EncBinary() + yy2arr125 := z.EncBasicHandle().StructToArray + var yyq125 [4]bool + _, _, _ = yysep125, yyq125, yy2arr125 + const yyr125 bool = false + yyq125[0] = x.Kind != "" + yyq125[1] = x.APIVersion != "" + yyq125[2] = true + yyq125[3] = x.DeleteOptions != nil + var yynn125 int + if yyr125 || yy2arr125 { r.EncodeArrayStart(4) } else { - yynn113 = 0 - for _, b := range yyq113 { + yynn125 = 0 + for _, b := range yyq125 { if b { - yynn113++ + yynn125++ } } - r.EncodeMapStart(yynn113) - yynn113 = 0 + r.EncodeMapStart(yynn125) + yynn125 = 0 } - if yyr113 || yy2arr113 { + if yyr125 || yy2arr125 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq113[0] { - yym115 := z.EncBinary() - _ = yym115 + if yyq125[0] { + yym127 := z.EncBinary() + _ = yym127 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) @@ -1367,23 +1476,23 @@ func (x *Eviction) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq113[0] { + if yyq125[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym116 := z.EncBinary() - _ = yym116 + yym128 := z.EncBinary() + _ = yym128 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } - if yyr113 || yy2arr113 { + if yyr125 || yy2arr125 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq113[1] { - yym118 := z.EncBinary() - _ = yym118 + if yyq125[1] { + yym130 := z.EncBinary() + _ = yym130 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) @@ -1392,38 +1501,38 @@ func (x *Eviction) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq113[1] { + if yyq125[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym119 := z.EncBinary() - _ = yym119 + yym131 := z.EncBinary() + _ = yym131 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } - if yyr113 || yy2arr113 { + if yyr125 || yy2arr125 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq113[2] { - yy121 := &x.ObjectMeta - yy121.CodecEncodeSelf(e) + if yyq125[2] { + yy133 := &x.ObjectMeta + yy133.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { - if yyq113[2] { + if yyq125[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy122 := &x.ObjectMeta - yy122.CodecEncodeSelf(e) + yy134 := &x.ObjectMeta + yy134.CodecEncodeSelf(e) } } - if yyr113 || yy2arr113 { + if yyr125 || yy2arr125 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq113[3] { + if yyq125[3] { if x.DeleteOptions == nil { r.EncodeNil() } else { @@ -1433,7 +1542,7 @@ func (x *Eviction) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq113[3] { + if yyq125[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("deleteOptions")) z.EncSendContainerState(codecSelfer_containerMapValue1234) @@ -1444,7 +1553,7 @@ func (x *Eviction) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr113 || yy2arr113 { + if yyr125 || yy2arr125 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -1457,25 +1566,25 @@ func (x *Eviction) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym124 := z.DecBinary() - _ = yym124 + yym136 := z.DecBinary() + _ = yym136 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct125 := r.ContainerType() - if yyct125 == codecSelferValueTypeMap1234 { - yyl125 := r.ReadMapStart() - if yyl125 == 0 { + yyct137 := r.ContainerType() + if yyct137 == codecSelferValueTypeMap1234 { + yyl137 := r.ReadMapStart() + if yyl137 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl125, d) + x.codecDecodeSelfFromMap(yyl137, d) } - } else if yyct125 == codecSelferValueTypeArray1234 { - yyl125 := r.ReadArrayStart() - if yyl125 == 0 { + } else if yyct137 == codecSelferValueTypeArray1234 { + yyl137 := r.ReadArrayStart() + if yyl137 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl125, d) + x.codecDecodeSelfFromArray(yyl137, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -1487,12 +1596,12 @@ func (x *Eviction) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys126Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys126Slc - var yyhl126 bool = l >= 0 - for yyj126 := 0; ; yyj126++ { - if yyhl126 { - if yyj126 >= l { + var yys138Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys138Slc + var yyhl138 bool = l >= 0 + for yyj138 := 0; ; yyj138++ { + if yyhl138 { + if yyj138 >= l { break } } else { @@ -1501,10 +1610,10 @@ func (x *Eviction) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys126Slc = r.DecodeBytes(yys126Slc, true, true) - yys126 := string(yys126Slc) + yys138Slc = r.DecodeBytes(yys138Slc, true, true) + yys138 := string(yys138Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys126 { + switch yys138 { case "kind": if r.TryDecodeAsNil() { x.Kind = "" @@ -1521,8 +1630,8 @@ func (x *Eviction) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.ObjectMeta = pkg3_v1.ObjectMeta{} } else { - yyv129 := &x.ObjectMeta - yyv129.CodecDecodeSelf(d) + yyv141 := &x.ObjectMeta + yyv141.CodecDecodeSelf(d) } case "deleteOptions": if r.TryDecodeAsNil() { @@ -1536,9 +1645,9 @@ func (x *Eviction) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { x.DeleteOptions.CodecDecodeSelf(d) } default: - z.DecStructFieldNotFound(-1, yys126) - } // end switch yys126 - } // end for yyj126 + z.DecStructFieldNotFound(-1, yys138) + } // end switch yys138 + } // end for yyj138 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -1546,16 +1655,16 @@ func (x *Eviction) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj131 int - var yyb131 bool - var yyhl131 bool = l >= 0 - yyj131++ - if yyhl131 { - yyb131 = yyj131 > l + var yyj143 int + var yyb143 bool + var yyhl143 bool = l >= 0 + yyj143++ + if yyhl143 { + yyb143 = yyj143 > l } else { - yyb131 = r.CheckBreak() + yyb143 = r.CheckBreak() } - if yyb131 { + if yyb143 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -1565,13 +1674,13 @@ func (x *Eviction) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.Kind = string(r.DecodeString()) } - yyj131++ - if yyhl131 { - yyb131 = yyj131 > l + yyj143++ + if yyhl143 { + yyb143 = yyj143 > l } else { - yyb131 = r.CheckBreak() + yyb143 = r.CheckBreak() } - if yyb131 { + if yyb143 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -1581,13 +1690,13 @@ func (x *Eviction) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.APIVersion = string(r.DecodeString()) } - yyj131++ - if yyhl131 { - yyb131 = yyj131 > l + yyj143++ + if yyhl143 { + yyb143 = yyj143 > l } else { - yyb131 = r.CheckBreak() + yyb143 = r.CheckBreak() } - if yyb131 { + if yyb143 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -1595,16 +1704,16 @@ func (x *Eviction) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.ObjectMeta = pkg3_v1.ObjectMeta{} } else { - yyv134 := &x.ObjectMeta - yyv134.CodecDecodeSelf(d) + yyv146 := &x.ObjectMeta + yyv146.CodecDecodeSelf(d) } - yyj131++ - if yyhl131 { - yyb131 = yyj131 > l + yyj143++ + if yyhl143 { + yyb143 = yyj143 > l } else { - yyb131 = r.CheckBreak() + yyb143 = r.CheckBreak() } - if yyb131 { + if yyb143 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -1620,30 +1729,155 @@ func (x *Eviction) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { x.DeleteOptions.CodecDecodeSelf(d) } for { - yyj131++ - if yyhl131 { - yyb131 = yyj131 > l + yyj143++ + if yyhl143 { + yyb143 = yyj143 > l } else { - yyb131 = r.CheckBreak() + yyb143 = r.CheckBreak() } - if yyb131 { + if yyb143 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj131-1, "") + z.DecStructFieldNotFound(yyj143-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } +func (x codecSelfer1234) encMapstringunversioned_Time(v map[string]pkg2_unversioned.Time, e *codec1978.Encoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + r.EncodeMapStart(len(v)) + for yyk148, yyv148 := range v { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + yym149 := z.EncBinary() + _ = yym149 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(yyk148)) + } + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yy150 := &yyv148 + 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) + } + } + z.EncSendContainerState(codecSelfer_containerMapEnd1234) +} + +func (x codecSelfer1234) decMapstringunversioned_Time(v *map[string]pkg2_unversioned.Time, d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + + yyv152 := *v + yyl152 := r.ReadMapStart() + yybh152 := z.DecBasicHandle() + if yyv152 == nil { + yyrl152, _ := z.DecInferLen(yyl152, yybh152.MaxInitLen, 40) + yyv152 = make(map[string]pkg2_unversioned.Time, yyrl152) + *v = yyv152 + } + var yymk152 string + var yymv152 pkg2_unversioned.Time + var yymg152 bool + if yybh152.MapValueReset { + yymg152 = true + } + if yyl152 > 0 { + for yyj152 := 0; yyj152 < yyl152; yyj152++ { + z.DecSendContainerState(codecSelfer_containerMapKey1234) + if r.TryDecodeAsNil() { + yymk152 = "" + } else { + yymk152 = string(r.DecodeString()) + } + + if yymg152 { + yymv152 = yyv152[yymk152] + } else { + yymv152 = pkg2_unversioned.Time{} + } + z.DecSendContainerState(codecSelfer_containerMapValue1234) + if r.TryDecodeAsNil() { + yymv152 = pkg2_unversioned.Time{} + } else { + yyv154 := &yymv152 + yym155 := z.DecBinary() + _ = yym155 + if false { + } else if z.HasExtensions() && z.DecExt(yyv154) { + } else if yym155 { + z.DecBinaryUnmarshal(yyv154) + } else if !yym155 && z.IsJSONHandle() { + z.DecJSONUnmarshal(yyv154) + } else { + z.DecFallback(yyv154, false) + } + } + + if yyv152 != nil { + yyv152[yymk152] = yymv152 + } + } + } else if yyl152 < 0 { + for yyj152 := 0; !r.CheckBreak(); yyj152++ { + z.DecSendContainerState(codecSelfer_containerMapKey1234) + if r.TryDecodeAsNil() { + yymk152 = "" + } else { + yymk152 = string(r.DecodeString()) + } + + if yymg152 { + yymv152 = yyv152[yymk152] + } else { + yymv152 = pkg2_unversioned.Time{} + } + z.DecSendContainerState(codecSelfer_containerMapValue1234) + if r.TryDecodeAsNil() { + yymv152 = pkg2_unversioned.Time{} + } else { + yyv157 := &yymv152 + yym158 := z.DecBinary() + _ = yym158 + if false { + } else if z.HasExtensions() && z.DecExt(yyv157) { + } else if yym158 { + z.DecBinaryUnmarshal(yyv157) + } else if !yym158 && z.IsJSONHandle() { + z.DecJSONUnmarshal(yyv157) + } else { + z.DecFallback(yyv157, false) + } + } + + if yyv152 != nil { + yyv152[yymk152] = yymv152 + } + } + } // else len==0: TODO: Should we clear map entries? + z.DecSendContainerState(codecSelfer_containerMapEnd1234) +} + func (x codecSelfer1234) encSlicePodDisruptionBudget(v []PodDisruptionBudget, e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r r.EncodeArrayStart(len(v)) - for _, yyv136 := range v { + for _, yyv159 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy137 := &yyv136 - yy137.CodecEncodeSelf(e) + yy160 := &yyv159 + yy160.CodecEncodeSelf(e) } z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -1653,83 +1887,83 @@ func (x codecSelfer1234) decSlicePodDisruptionBudget(v *[]PodDisruptionBudget, d z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - 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 + yyv161 := *v + yyh161, yyl161 := z.DecSliceHelperStart() + var yyc161 bool + if yyl161 == 0 { + if yyv161 == nil { + yyv161 = []PodDisruptionBudget{} + yyc161 = true + } else if len(yyv161) != 0 { + yyv161 = yyv161[:0] + yyc161 = true } - } else if yyl138 > 0 { - var yyrr138, yyrl138 int - var yyrt138 bool - if yyl138 > cap(yyv138) { + } else if yyl161 > 0 { + var yyrr161, yyrl161 int + var yyrt161 bool + if yyl161 > cap(yyv161) { - yyrg138 := len(yyv138) > 0 - yyv2138 := yyv138 - yyrl138, yyrt138 = z.DecInferLen(yyl138, z.DecBasicHandle().MaxInitLen, 312) - if yyrt138 { - if yyrl138 <= cap(yyv138) { - yyv138 = yyv138[:yyrl138] + yyrg161 := len(yyv161) > 0 + yyv2161 := yyv161 + yyrl161, yyrt161 = z.DecInferLen(yyl161, z.DecBasicHandle().MaxInitLen, 328) + if yyrt161 { + if yyrl161 <= cap(yyv161) { + yyv161 = yyv161[:yyrl161] } else { - yyv138 = make([]PodDisruptionBudget, yyrl138) + yyv161 = make([]PodDisruptionBudget, yyrl161) } } else { - yyv138 = make([]PodDisruptionBudget, yyrl138) + yyv161 = make([]PodDisruptionBudget, yyrl161) } - yyc138 = true - yyrr138 = len(yyv138) - if yyrg138 { - copy(yyv138, yyv2138) + yyc161 = true + yyrr161 = len(yyv161) + if yyrg161 { + copy(yyv161, yyv2161) } - } else if yyl138 != len(yyv138) { - yyv138 = yyv138[:yyl138] - yyc138 = true + } else if yyl161 != len(yyv161) { + yyv161 = yyv161[:yyl161] + yyc161 = true } - yyj138 := 0 - for ; yyj138 < yyrr138; yyj138++ { - yyh138.ElemContainerState(yyj138) + yyj161 := 0 + for ; yyj161 < yyrr161; yyj161++ { + yyh161.ElemContainerState(yyj161) if r.TryDecodeAsNil() { - yyv138[yyj138] = PodDisruptionBudget{} + yyv161[yyj161] = PodDisruptionBudget{} } else { - yyv139 := &yyv138[yyj138] - yyv139.CodecDecodeSelf(d) + yyv162 := &yyv161[yyj161] + yyv162.CodecDecodeSelf(d) } } - if yyrt138 { - for ; yyj138 < yyl138; yyj138++ { - yyv138 = append(yyv138, PodDisruptionBudget{}) - yyh138.ElemContainerState(yyj138) + if yyrt161 { + for ; yyj161 < yyl161; yyj161++ { + yyv161 = append(yyv161, PodDisruptionBudget{}) + yyh161.ElemContainerState(yyj161) if r.TryDecodeAsNil() { - yyv138[yyj138] = PodDisruptionBudget{} + yyv161[yyj161] = PodDisruptionBudget{} } else { - yyv140 := &yyv138[yyj138] - yyv140.CodecDecodeSelf(d) + yyv163 := &yyv161[yyj161] + yyv163.CodecDecodeSelf(d) } } } } else { - yyj138 := 0 - for ; !r.CheckBreak(); yyj138++ { + yyj161 := 0 + for ; !r.CheckBreak(); yyj161++ { - if yyj138 >= len(yyv138) { - yyv138 = append(yyv138, PodDisruptionBudget{}) // var yyz138 PodDisruptionBudget - yyc138 = true + if yyj161 >= len(yyv161) { + yyv161 = append(yyv161, PodDisruptionBudget{}) // var yyz161 PodDisruptionBudget + yyc161 = true } - yyh138.ElemContainerState(yyj138) - if yyj138 < len(yyv138) { + yyh161.ElemContainerState(yyj161) + if yyj161 < len(yyv161) { if r.TryDecodeAsNil() { - yyv138[yyj138] = PodDisruptionBudget{} + yyv161[yyj161] = PodDisruptionBudget{} } else { - yyv141 := &yyv138[yyj138] - yyv141.CodecDecodeSelf(d) + yyv164 := &yyv161[yyj161] + yyv164.CodecDecodeSelf(d) } } else { @@ -1737,16 +1971,16 @@ func (x codecSelfer1234) decSlicePodDisruptionBudget(v *[]PodDisruptionBudget, d } } - if yyj138 < len(yyv138) { - yyv138 = yyv138[:yyj138] - yyc138 = true - } else if yyj138 == 0 && yyv138 == nil { - yyv138 = []PodDisruptionBudget{} - yyc138 = true + if yyj161 < len(yyv161) { + yyv161 = yyv161[:yyj161] + yyc161 = true + } else if yyj161 == 0 && yyv161 == nil { + yyv161 = []PodDisruptionBudget{} + yyc161 = true } } - yyh138.End() - if yyc138 { - *v = yyv138 + yyh161.End() + if yyc161 { + *v = yyv161 } } diff --git a/vendor/k8s.io/client-go/1.5/pkg/apis/policy/v1alpha1/types.go b/vendor/k8s.io/client-go/pkg/apis/policy/v1beta1/types.go similarity index 58% rename from vendor/k8s.io/client-go/1.5/pkg/apis/policy/v1alpha1/types.go rename to vendor/k8s.io/client-go/pkg/apis/policy/v1beta1/types.go index f10b84536..cc892d965 100644 --- a/vendor/k8s.io/client-go/1.5/pkg/apis/policy/v1alpha1/types.go +++ b/vendor/k8s.io/client-go/pkg/apis/policy/v1beta1/types.go @@ -14,18 +14,20 @@ See the License for the specific language governing permissions and limitations under the License. */ -package v1alpha1 +package v1beta1 import ( - "k8s.io/client-go/1.5/pkg/api/unversioned" - "k8s.io/client-go/1.5/pkg/api/v1" - "k8s.io/client-go/1.5/pkg/util/intstr" + "k8s.io/client-go/pkg/api/unversioned" + "k8s.io/client-go/pkg/api/v1" + "k8s.io/client-go/pkg/util/intstr" ) // PodDisruptionBudgetSpec is a description of a PodDisruptionBudget. type PodDisruptionBudgetSpec struct { - // The minimum number of pods that must be available simultaneously. This - // can be either an integer or a string specifying a percentage, e.g. "28%". + // An eviction is allowed if at least "minAvailable" pods selected by + // "selector" will still be available after the eviction, i.e. even in the + // absence of the evicted pod. So for example you can prevent all voluntary + // evictions by specifying "100%". MinAvailable intstr.IntOrString `json:"minAvailable,omitempty" protobuf:"bytes,1,opt,name=minAvailable"` // Label query over pods whose evictions are managed by the disruption @@ -36,17 +38,35 @@ type PodDisruptionBudgetSpec struct { // PodDisruptionBudgetStatus represents information about the status of a // PodDisruptionBudget. Status may trail the actual state of a system. type PodDisruptionBudgetStatus struct { - // Whether or not a disruption is currently allowed. - PodDisruptionAllowed bool `json:"disruptionAllowed" protobuf:"varint,1,opt,name=disruptionAllowed"` + // Most recent generation observed when updating this PDB status. PodDisruptionsAllowed and other + // status informatio is valid only if observedGeneration equals to PDB's object generation. + // +optional + ObservedGeneration int64 `json:"observedGeneration,omitempty" protobuf:"varint,1,opt,name=observedGeneration"` + + // DisruptedPods contains information about pods whose eviction was + // processed by the API server eviction subresource handler but has not + // yet been observed by the PodDisruptionBudget controller. + // A pod will be in this map from the time when the API server processed the + // eviction request to the time when the pod is seen by PDB controller + // as having been marked for deletion (or after a timeout). The key in the map is the name of the pod + // and the value is the time when the API server processed the eviction request. If + // the deletion didn't occur and a pod is still there it will be removed from + // the list automatically by PodDisruptionBudget controller after some time. + // If everything goes smooth this map should be empty for the most of the time. + // Large number of entries in the map may indicate problems with pod deletions. + DisruptedPods map[string]unversioned.Time `json:"disruptedPods" protobuf:"bytes,2,rep,name=disruptedPods"` + + // Number of pod disruptions that are currently allowed. + PodDisruptionsAllowed int32 `json:"disruptionsAllowed" protobuf:"varint,3,opt,name=disruptionsAllowed"` // current number of healthy pods - CurrentHealthy int32 `json:"currentHealthy" protobuf:"varint,2,opt,name=currentHealthy"` + CurrentHealthy int32 `json:"currentHealthy" protobuf:"varint,4,opt,name=currentHealthy"` // minimum desired number of healthy pods - DesiredHealthy int32 `json:"desiredHealthy" protobuf:"varint,3,opt,name=desiredHealthy"` + DesiredHealthy int32 `json:"desiredHealthy" protobuf:"varint,5,opt,name=desiredHealthy"` // total number of pods counted by this disruption budget - ExpectedPods int32 `json:"expectedPods" protobuf:"varint,4,opt,name=expectedPods"` + ExpectedPods int32 `json:"expectedPods" protobuf:"varint,6,opt,name=expectedPods"` } // +genclient=true diff --git a/vendor/k8s.io/client-go/1.5/pkg/apis/policy/v1alpha1/types_swagger_doc_generated.go b/vendor/k8s.io/client-go/pkg/apis/policy/v1beta1/types_swagger_doc_generated.go similarity index 61% rename from vendor/k8s.io/client-go/1.5/pkg/apis/policy/v1alpha1/types_swagger_doc_generated.go rename to vendor/k8s.io/client-go/pkg/apis/policy/v1beta1/types_swagger_doc_generated.go index 7750b1007..d919856b2 100644 --- a/vendor/k8s.io/client-go/1.5/pkg/apis/policy/v1alpha1/types_swagger_doc_generated.go +++ b/vendor/k8s.io/client-go/pkg/apis/policy/v1beta1/types_swagger_doc_generated.go @@ -14,7 +14,7 @@ See the License for the specific language governing permissions and limitations under the License. */ -package v1alpha1 +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 @@ -57,7 +57,7 @@ func (PodDisruptionBudgetList) SwaggerDoc() map[string]string { var map_PodDisruptionBudgetSpec = map[string]string{ "": "PodDisruptionBudgetSpec is a description of a PodDisruptionBudget.", - "minAvailable": "The minimum number of pods that must be available simultaneously. This can be either an integer or a string specifying a percentage, e.g. \"28%\".", + "minAvailable": "An eviction is allowed if at least \"minAvailable\" pods selected by \"selector\" will still be available after the eviction, i.e. even in the absence of the evicted pod. So for example you can prevent all voluntary evictions by specifying \"100%\".", "selector": "Label query over pods whose evictions are managed by the disruption budget.", } @@ -66,11 +66,13 @@ func (PodDisruptionBudgetSpec) SwaggerDoc() map[string]string { } var map_PodDisruptionBudgetStatus = map[string]string{ - "": "PodDisruptionBudgetStatus represents information about the status of a PodDisruptionBudget. Status may trail the actual state of a system.", - "disruptionAllowed": "Whether or not a disruption is currently allowed.", - "currentHealthy": "current number of healthy pods", - "desiredHealthy": "minimum desired number of healthy pods", - "expectedPods": "total number of pods counted by this disruption budget", + "": "PodDisruptionBudgetStatus represents information about the status of a PodDisruptionBudget. Status may trail the actual state of a system.", + "observedGeneration": "Most recent generation observed when updating this PDB status. PodDisruptionsAllowed and other status informatio is valid only if observedGeneration equals to PDB's object generation.", + "disruptedPods": "DisruptedPods contains information about pods whose eviction was processed by the API server eviction subresource handler but has not yet been observed by the PodDisruptionBudget controller. A pod will be in this map from the time when the API server processed the eviction request to the time when the pod is seen by PDB controller as having been marked for deletion (or after a timeout). The key in the map is the name of the pod and the value is the time when the API server processed the eviction request. If the deletion didn't occur and a pod is still there it will be removed from the list automatically by PodDisruptionBudget controller after some time. If everything goes smooth this map should be empty for the most of the time. Large number of entries in the map may indicate problems with pod deletions.", + "disruptionsAllowed": "Number of pod disruptions that are currently allowed.", + "currentHealthy": "current number of healthy pods", + "desiredHealthy": "minimum desired number of healthy pods", + "expectedPods": "total number of pods counted by this disruption budget", } func (PodDisruptionBudgetStatus) SwaggerDoc() map[string]string { diff --git a/vendor/k8s.io/client-go/pkg/apis/policy/v1beta1/zz_generated.conversion.go b/vendor/k8s.io/client-go/pkg/apis/policy/v1beta1/zz_generated.conversion.go new file mode 100644 index 000000000..de5d26c32 --- /dev/null +++ b/vendor/k8s.io/client-go/pkg/apis/policy/v1beta1/zz_generated.conversion.go @@ -0,0 +1,182 @@ +// +build !ignore_autogenerated + +/* +Copyright 2017 The Kubernetes Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT 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/client-go/pkg/api" + unversioned "k8s.io/client-go/pkg/api/unversioned" + v1 "k8s.io/client-go/pkg/api/v1" + policy "k8s.io/client-go/pkg/apis/policy" + conversion "k8s.io/client-go/pkg/conversion" + runtime "k8s.io/client-go/pkg/runtime" + unsafe "unsafe" +) + +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_Eviction_To_policy_Eviction, + Convert_policy_Eviction_To_v1beta1_Eviction, + Convert_v1beta1_PodDisruptionBudget_To_policy_PodDisruptionBudget, + Convert_policy_PodDisruptionBudget_To_v1beta1_PodDisruptionBudget, + Convert_v1beta1_PodDisruptionBudgetList_To_policy_PodDisruptionBudgetList, + Convert_policy_PodDisruptionBudgetList_To_v1beta1_PodDisruptionBudgetList, + Convert_v1beta1_PodDisruptionBudgetSpec_To_policy_PodDisruptionBudgetSpec, + Convert_policy_PodDisruptionBudgetSpec_To_v1beta1_PodDisruptionBudgetSpec, + Convert_v1beta1_PodDisruptionBudgetStatus_To_policy_PodDisruptionBudgetStatus, + Convert_policy_PodDisruptionBudgetStatus_To_v1beta1_PodDisruptionBudgetStatus, + ) +} + +func autoConvert_v1beta1_Eviction_To_policy_Eviction(in *Eviction, out *policy.Eviction, s conversion.Scope) error { + // TODO: Inefficient conversion - can we improve it? + if err := s.Convert(&in.ObjectMeta, &out.ObjectMeta, 0); err != nil { + return err + } + out.DeleteOptions = (*api.DeleteOptions)(unsafe.Pointer(in.DeleteOptions)) + return nil +} + +func Convert_v1beta1_Eviction_To_policy_Eviction(in *Eviction, out *policy.Eviction, s conversion.Scope) error { + return autoConvert_v1beta1_Eviction_To_policy_Eviction(in, out, s) +} + +func autoConvert_policy_Eviction_To_v1beta1_Eviction(in *policy.Eviction, out *Eviction, s conversion.Scope) error { + // TODO: Inefficient conversion - can we improve it? + if err := s.Convert(&in.ObjectMeta, &out.ObjectMeta, 0); err != nil { + return err + } + out.DeleteOptions = (*v1.DeleteOptions)(unsafe.Pointer(in.DeleteOptions)) + return nil +} + +func Convert_policy_Eviction_To_v1beta1_Eviction(in *policy.Eviction, out *Eviction, s conversion.Scope) error { + return autoConvert_policy_Eviction_To_v1beta1_Eviction(in, out, s) +} + +func autoConvert_v1beta1_PodDisruptionBudget_To_policy_PodDisruptionBudget(in *PodDisruptionBudget, out *policy.PodDisruptionBudget, s conversion.Scope) error { + // TODO: Inefficient conversion - can we improve it? + if err := s.Convert(&in.ObjectMeta, &out.ObjectMeta, 0); err != nil { + return err + } + if err := Convert_v1beta1_PodDisruptionBudgetSpec_To_policy_PodDisruptionBudgetSpec(&in.Spec, &out.Spec, s); err != nil { + return err + } + if err := Convert_v1beta1_PodDisruptionBudgetStatus_To_policy_PodDisruptionBudgetStatus(&in.Status, &out.Status, s); err != nil { + return err + } + return nil +} + +func Convert_v1beta1_PodDisruptionBudget_To_policy_PodDisruptionBudget(in *PodDisruptionBudget, out *policy.PodDisruptionBudget, s conversion.Scope) error { + return autoConvert_v1beta1_PodDisruptionBudget_To_policy_PodDisruptionBudget(in, out, s) +} + +func autoConvert_policy_PodDisruptionBudget_To_v1beta1_PodDisruptionBudget(in *policy.PodDisruptionBudget, out *PodDisruptionBudget, s conversion.Scope) error { + // TODO: Inefficient conversion - can we improve it? + if err := s.Convert(&in.ObjectMeta, &out.ObjectMeta, 0); err != nil { + return err + } + if err := Convert_policy_PodDisruptionBudgetSpec_To_v1beta1_PodDisruptionBudgetSpec(&in.Spec, &out.Spec, s); err != nil { + return err + } + if err := Convert_policy_PodDisruptionBudgetStatus_To_v1beta1_PodDisruptionBudgetStatus(&in.Status, &out.Status, s); err != nil { + return err + } + return nil +} + +func Convert_policy_PodDisruptionBudget_To_v1beta1_PodDisruptionBudget(in *policy.PodDisruptionBudget, out *PodDisruptionBudget, s conversion.Scope) error { + return autoConvert_policy_PodDisruptionBudget_To_v1beta1_PodDisruptionBudget(in, out, s) +} + +func autoConvert_v1beta1_PodDisruptionBudgetList_To_policy_PodDisruptionBudgetList(in *PodDisruptionBudgetList, out *policy.PodDisruptionBudgetList, s conversion.Scope) error { + out.ListMeta = in.ListMeta + out.Items = *(*[]policy.PodDisruptionBudget)(unsafe.Pointer(&in.Items)) + return nil +} + +func Convert_v1beta1_PodDisruptionBudgetList_To_policy_PodDisruptionBudgetList(in *PodDisruptionBudgetList, out *policy.PodDisruptionBudgetList, s conversion.Scope) error { + return autoConvert_v1beta1_PodDisruptionBudgetList_To_policy_PodDisruptionBudgetList(in, out, s) +} + +func autoConvert_policy_PodDisruptionBudgetList_To_v1beta1_PodDisruptionBudgetList(in *policy.PodDisruptionBudgetList, out *PodDisruptionBudgetList, s conversion.Scope) error { + out.ListMeta = in.ListMeta + out.Items = *(*[]PodDisruptionBudget)(unsafe.Pointer(&in.Items)) + return nil +} + +func Convert_policy_PodDisruptionBudgetList_To_v1beta1_PodDisruptionBudgetList(in *policy.PodDisruptionBudgetList, out *PodDisruptionBudgetList, s conversion.Scope) error { + return autoConvert_policy_PodDisruptionBudgetList_To_v1beta1_PodDisruptionBudgetList(in, out, s) +} + +func autoConvert_v1beta1_PodDisruptionBudgetSpec_To_policy_PodDisruptionBudgetSpec(in *PodDisruptionBudgetSpec, out *policy.PodDisruptionBudgetSpec, s conversion.Scope) error { + out.MinAvailable = in.MinAvailable + out.Selector = (*unversioned.LabelSelector)(unsafe.Pointer(in.Selector)) + return nil +} + +func Convert_v1beta1_PodDisruptionBudgetSpec_To_policy_PodDisruptionBudgetSpec(in *PodDisruptionBudgetSpec, out *policy.PodDisruptionBudgetSpec, s conversion.Scope) error { + return autoConvert_v1beta1_PodDisruptionBudgetSpec_To_policy_PodDisruptionBudgetSpec(in, out, s) +} + +func autoConvert_policy_PodDisruptionBudgetSpec_To_v1beta1_PodDisruptionBudgetSpec(in *policy.PodDisruptionBudgetSpec, out *PodDisruptionBudgetSpec, s conversion.Scope) error { + out.MinAvailable = in.MinAvailable + out.Selector = (*unversioned.LabelSelector)(unsafe.Pointer(in.Selector)) + return nil +} + +func Convert_policy_PodDisruptionBudgetSpec_To_v1beta1_PodDisruptionBudgetSpec(in *policy.PodDisruptionBudgetSpec, out *PodDisruptionBudgetSpec, s conversion.Scope) error { + return autoConvert_policy_PodDisruptionBudgetSpec_To_v1beta1_PodDisruptionBudgetSpec(in, out, s) +} + +func autoConvert_v1beta1_PodDisruptionBudgetStatus_To_policy_PodDisruptionBudgetStatus(in *PodDisruptionBudgetStatus, out *policy.PodDisruptionBudgetStatus, s conversion.Scope) error { + out.ObservedGeneration = in.ObservedGeneration + out.DisruptedPods = *(*map[string]unversioned.Time)(unsafe.Pointer(&in.DisruptedPods)) + out.PodDisruptionsAllowed = in.PodDisruptionsAllowed + out.CurrentHealthy = in.CurrentHealthy + out.DesiredHealthy = in.DesiredHealthy + out.ExpectedPods = in.ExpectedPods + return nil +} + +func Convert_v1beta1_PodDisruptionBudgetStatus_To_policy_PodDisruptionBudgetStatus(in *PodDisruptionBudgetStatus, out *policy.PodDisruptionBudgetStatus, s conversion.Scope) error { + return autoConvert_v1beta1_PodDisruptionBudgetStatus_To_policy_PodDisruptionBudgetStatus(in, out, s) +} + +func autoConvert_policy_PodDisruptionBudgetStatus_To_v1beta1_PodDisruptionBudgetStatus(in *policy.PodDisruptionBudgetStatus, out *PodDisruptionBudgetStatus, s conversion.Scope) error { + out.ObservedGeneration = in.ObservedGeneration + out.DisruptedPods = *(*map[string]unversioned.Time)(unsafe.Pointer(&in.DisruptedPods)) + out.PodDisruptionsAllowed = in.PodDisruptionsAllowed + out.CurrentHealthy = in.CurrentHealthy + out.DesiredHealthy = in.DesiredHealthy + out.ExpectedPods = in.ExpectedPods + return nil +} + +func Convert_policy_PodDisruptionBudgetStatus_To_v1beta1_PodDisruptionBudgetStatus(in *policy.PodDisruptionBudgetStatus, out *PodDisruptionBudgetStatus, s conversion.Scope) error { + return autoConvert_policy_PodDisruptionBudgetStatus_To_v1beta1_PodDisruptionBudgetStatus(in, out, s) +} diff --git a/vendor/k8s.io/client-go/1.5/pkg/apis/policy/v1alpha1/zz_generated.deepcopy.go b/vendor/k8s.io/client-go/pkg/apis/policy/v1beta1/zz_generated.deepcopy.go similarity index 56% rename from vendor/k8s.io/client-go/1.5/pkg/apis/policy/v1alpha1/zz_generated.deepcopy.go rename to vendor/k8s.io/client-go/pkg/apis/policy/v1beta1/zz_generated.deepcopy.go index 56439e069..eb41b401f 100644 --- a/vendor/k8s.io/client-go/1.5/pkg/apis/policy/v1alpha1/zz_generated.deepcopy.go +++ b/vendor/k8s.io/client-go/pkg/apis/policy/v1beta1/zz_generated.deepcopy.go @@ -1,7 +1,7 @@ // +build !ignore_autogenerated /* -Copyright 2016 The Kubernetes Authors. +Copyright 2017 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -18,13 +18,13 @@ limitations under the License. // This file was autogenerated by deepcopy-gen. Do not edit it manually! -package v1alpha1 +package v1beta1 import ( - unversioned "k8s.io/client-go/1.5/pkg/api/unversioned" - v1 "k8s.io/client-go/1.5/pkg/api/v1" - conversion "k8s.io/client-go/1.5/pkg/conversion" - runtime "k8s.io/client-go/1.5/pkg/runtime" + unversioned "k8s.io/client-go/pkg/api/unversioned" + v1 "k8s.io/client-go/pkg/api/v1" + conversion "k8s.io/client-go/pkg/conversion" + runtime "k8s.io/client-go/pkg/runtime" reflect "reflect" ) @@ -36,15 +36,15 @@ func init() { // to allow building arbitrary schemes. func RegisterDeepCopies(scheme *runtime.Scheme) error { return scheme.AddGeneratedDeepCopyFuncs( - conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_v1alpha1_Eviction, InType: reflect.TypeOf(&Eviction{})}, - conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_v1alpha1_PodDisruptionBudget, InType: reflect.TypeOf(&PodDisruptionBudget{})}, - conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_v1alpha1_PodDisruptionBudgetList, InType: reflect.TypeOf(&PodDisruptionBudgetList{})}, - conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_v1alpha1_PodDisruptionBudgetSpec, InType: reflect.TypeOf(&PodDisruptionBudgetSpec{})}, - conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_v1alpha1_PodDisruptionBudgetStatus, InType: reflect.TypeOf(&PodDisruptionBudgetStatus{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_v1beta1_Eviction, InType: reflect.TypeOf(&Eviction{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_v1beta1_PodDisruptionBudget, InType: reflect.TypeOf(&PodDisruptionBudget{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_v1beta1_PodDisruptionBudgetList, InType: reflect.TypeOf(&PodDisruptionBudgetList{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_v1beta1_PodDisruptionBudgetSpec, InType: reflect.TypeOf(&PodDisruptionBudgetSpec{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_v1beta1_PodDisruptionBudgetStatus, InType: reflect.TypeOf(&PodDisruptionBudgetStatus{})}, ) } -func DeepCopy_v1alpha1_Eviction(in interface{}, out interface{}, c *conversion.Cloner) error { +func DeepCopy_v1beta1_Eviction(in interface{}, out interface{}, c *conversion.Cloner) error { { in := in.(*Eviction) out := out.(*Eviction) @@ -65,7 +65,7 @@ func DeepCopy_v1alpha1_Eviction(in interface{}, out interface{}, c *conversion.C } } -func DeepCopy_v1alpha1_PodDisruptionBudget(in interface{}, out interface{}, c *conversion.Cloner) error { +func DeepCopy_v1beta1_PodDisruptionBudget(in interface{}, out interface{}, c *conversion.Cloner) error { { in := in.(*PodDisruptionBudget) out := out.(*PodDisruptionBudget) @@ -73,15 +73,17 @@ func DeepCopy_v1alpha1_PodDisruptionBudget(in interface{}, out interface{}, c *c 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 { + if err := DeepCopy_v1beta1_PodDisruptionBudgetSpec(&in.Spec, &out.Spec, c); err != nil { + return err + } + if err := DeepCopy_v1beta1_PodDisruptionBudgetStatus(&in.Status, &out.Status, c); err != nil { return err } - out.Status = in.Status return nil } } -func DeepCopy_v1alpha1_PodDisruptionBudgetList(in interface{}, out interface{}, c *conversion.Cloner) error { +func DeepCopy_v1beta1_PodDisruptionBudgetList(in interface{}, out interface{}, c *conversion.Cloner) error { { in := in.(*PodDisruptionBudgetList) out := out.(*PodDisruptionBudgetList) @@ -91,7 +93,7 @@ func DeepCopy_v1alpha1_PodDisruptionBudgetList(in interface{}, out interface{}, 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 { + if err := DeepCopy_v1beta1_PodDisruptionBudget(&(*in)[i], &(*out)[i], c); err != nil { return err } } @@ -102,7 +104,7 @@ func DeepCopy_v1alpha1_PodDisruptionBudgetList(in interface{}, out interface{}, } } -func DeepCopy_v1alpha1_PodDisruptionBudgetSpec(in interface{}, out interface{}, c *conversion.Cloner) error { +func DeepCopy_v1beta1_PodDisruptionBudgetSpec(in interface{}, out interface{}, c *conversion.Cloner) error { { in := in.(*PodDisruptionBudgetSpec) out := out.(*PodDisruptionBudgetSpec) @@ -120,11 +122,21 @@ func DeepCopy_v1alpha1_PodDisruptionBudgetSpec(in interface{}, out interface{}, } } -func DeepCopy_v1alpha1_PodDisruptionBudgetStatus(in interface{}, out interface{}, c *conversion.Cloner) error { +func DeepCopy_v1beta1_PodDisruptionBudgetStatus(in interface{}, out interface{}, c *conversion.Cloner) error { { in := in.(*PodDisruptionBudgetStatus) out := out.(*PodDisruptionBudgetStatus) - out.PodDisruptionAllowed = in.PodDisruptionAllowed + out.ObservedGeneration = in.ObservedGeneration + if in.DisruptedPods != nil { + in, out := &in.DisruptedPods, &out.DisruptedPods + *out = make(map[string]unversioned.Time) + for key, val := range *in { + (*out)[key] = val.DeepCopy() + } + } else { + out.DisruptedPods = nil + } + out.PodDisruptionsAllowed = in.PodDisruptionsAllowed out.CurrentHealthy = in.CurrentHealthy out.DesiredHealthy = in.DesiredHealthy out.ExpectedPods = in.ExpectedPods diff --git a/vendor/k8s.io/client-go/1.5/pkg/apis/policy/zz_generated.deepcopy.go b/vendor/k8s.io/client-go/pkg/apis/policy/zz_generated.deepcopy.go similarity index 85% rename from vendor/k8s.io/client-go/1.5/pkg/apis/policy/zz_generated.deepcopy.go rename to vendor/k8s.io/client-go/pkg/apis/policy/zz_generated.deepcopy.go index 9153d5e74..9d543fdbd 100644 --- a/vendor/k8s.io/client-go/1.5/pkg/apis/policy/zz_generated.deepcopy.go +++ b/vendor/k8s.io/client-go/pkg/apis/policy/zz_generated.deepcopy.go @@ -1,7 +1,7 @@ // +build !ignore_autogenerated /* -Copyright 2016 The Kubernetes Authors. +Copyright 2017 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -21,10 +21,10 @@ limitations under the License. package policy import ( - api "k8s.io/client-go/1.5/pkg/api" - unversioned "k8s.io/client-go/1.5/pkg/api/unversioned" - conversion "k8s.io/client-go/1.5/pkg/conversion" - runtime "k8s.io/client-go/1.5/pkg/runtime" + api "k8s.io/client-go/pkg/api" + unversioned "k8s.io/client-go/pkg/api/unversioned" + conversion "k8s.io/client-go/pkg/conversion" + runtime "k8s.io/client-go/pkg/runtime" reflect "reflect" ) @@ -76,7 +76,9 @@ func DeepCopy_policy_PodDisruptionBudget(in interface{}, out interface{}, c *con if err := DeepCopy_policy_PodDisruptionBudgetSpec(&in.Spec, &out.Spec, c); err != nil { return err } - out.Status = in.Status + if err := DeepCopy_policy_PodDisruptionBudgetStatus(&in.Status, &out.Status, c); err != nil { + return err + } return nil } } @@ -124,7 +126,17 @@ func DeepCopy_policy_PodDisruptionBudgetStatus(in interface{}, out interface{}, { in := in.(*PodDisruptionBudgetStatus) out := out.(*PodDisruptionBudgetStatus) - out.PodDisruptionAllowed = in.PodDisruptionAllowed + out.ObservedGeneration = in.ObservedGeneration + if in.DisruptedPods != nil { + in, out := &in.DisruptedPods, &out.DisruptedPods + *out = make(map[string]unversioned.Time) + for key, val := range *in { + (*out)[key] = val.DeepCopy() + } + } else { + out.DisruptedPods = nil + } + out.PodDisruptionsAllowed = in.PodDisruptionsAllowed out.CurrentHealthy = in.CurrentHealthy out.DesiredHealthy = in.DesiredHealthy out.ExpectedPods = in.ExpectedPods diff --git a/vendor/k8s.io/client-go/1.5/pkg/apis/rbac/doc.go b/vendor/k8s.io/client-go/pkg/apis/rbac/doc.go similarity index 100% rename from vendor/k8s.io/client-go/1.5/pkg/apis/rbac/doc.go rename to vendor/k8s.io/client-go/pkg/apis/rbac/doc.go diff --git a/vendor/k8s.io/client-go/1.5/pkg/apis/rbac/helpers.go b/vendor/k8s.io/client-go/pkg/apis/rbac/helpers.go similarity index 69% rename from vendor/k8s.io/client-go/1.5/pkg/apis/rbac/helpers.go rename to vendor/k8s.io/client-go/pkg/apis/rbac/helpers.go index 4be3bf062..f9a770bb0 100644 --- a/vendor/k8s.io/client-go/1.5/pkg/apis/rbac/helpers.go +++ b/vendor/k8s.io/client-go/pkg/apis/rbac/helpers.go @@ -20,7 +20,8 @@ import ( "fmt" "strings" - "k8s.io/client-go/1.5/pkg/api/unversioned" + "k8s.io/client-go/pkg/api" + "k8s.io/client-go/pkg/api/unversioned" ) func RoleRefGroupKind(roleRef RoleRef) unversioned.GroupKind { @@ -162,3 +163,61 @@ func (r *PolicyRuleBuilder) Rule() (PolicyRule, error) { return r.PolicyRule, nil } + +// +k8s:deepcopy-gen=false +// ClusterRoleBindingBuilder let's us attach methods. A no-no for API types. +// We use it to construct bindings in code. It's more compact than trying to write them +// out in a literal. +type ClusterRoleBindingBuilder struct { + ClusterRoleBinding ClusterRoleBinding +} + +func NewClusterBinding(clusterRoleName string) *ClusterRoleBindingBuilder { + return &ClusterRoleBindingBuilder{ + ClusterRoleBinding: ClusterRoleBinding{ + ObjectMeta: api.ObjectMeta{Name: clusterRoleName}, + RoleRef: RoleRef{ + APIGroup: GroupName, + Kind: "ClusterRole", + Name: clusterRoleName, + }, + }, + } +} + +func (r *ClusterRoleBindingBuilder) Groups(groups ...string) *ClusterRoleBindingBuilder { + for _, group := range groups { + r.ClusterRoleBinding.Subjects = append(r.ClusterRoleBinding.Subjects, Subject{Kind: GroupKind, Name: group}) + } + return r +} + +func (r *ClusterRoleBindingBuilder) Users(users ...string) *ClusterRoleBindingBuilder { + for _, user := range users { + r.ClusterRoleBinding.Subjects = append(r.ClusterRoleBinding.Subjects, Subject{Kind: UserKind, Name: user}) + } + return r +} + +func (r *ClusterRoleBindingBuilder) SAs(namespace string, serviceAccountNames ...string) *ClusterRoleBindingBuilder { + for _, saName := range serviceAccountNames { + r.ClusterRoleBinding.Subjects = append(r.ClusterRoleBinding.Subjects, Subject{Kind: ServiceAccountKind, Namespace: namespace, Name: saName}) + } + return r +} + +func (r *ClusterRoleBindingBuilder) BindingOrDie() ClusterRoleBinding { + ret, err := r.Binding() + if err != nil { + panic(err) + } + return ret +} + +func (r *ClusterRoleBindingBuilder) Binding() (ClusterRoleBinding, error) { + if len(r.ClusterRoleBinding.Subjects) == 0 { + return ClusterRoleBinding{}, fmt.Errorf("subjects are required: %#v", r.ClusterRoleBinding) + } + + return r.ClusterRoleBinding, nil +} diff --git a/vendor/k8s.io/client-go/1.5/pkg/apis/rbac/install/install.go b/vendor/k8s.io/client-go/pkg/apis/rbac/install/install.go similarity index 83% rename from vendor/k8s.io/client-go/1.5/pkg/apis/rbac/install/install.go rename to vendor/k8s.io/client-go/pkg/apis/rbac/install/install.go index d02f33943..37e5b91a5 100644 --- a/vendor/k8s.io/client-go/1.5/pkg/apis/rbac/install/install.go +++ b/vendor/k8s.io/client-go/pkg/apis/rbac/install/install.go @@ -19,10 +19,10 @@ limitations under the License. package install import ( - "k8s.io/client-go/1.5/pkg/apimachinery/announced" - "k8s.io/client-go/1.5/pkg/apis/rbac" - "k8s.io/client-go/1.5/pkg/apis/rbac/v1alpha1" - "k8s.io/client-go/1.5/pkg/util/sets" + "k8s.io/client-go/pkg/apimachinery/announced" + "k8s.io/client-go/pkg/apis/rbac" + "k8s.io/client-go/pkg/apis/rbac/v1alpha1" + "k8s.io/client-go/pkg/util/sets" ) func init() { @@ -30,7 +30,7 @@ func init() { &announced.GroupMetaFactoryArgs{ GroupName: rbac.GroupName, VersionPreferenceOrder: []string{v1alpha1.SchemeGroupVersion.Version}, - ImportPrefix: "k8s.io/client-go/1.5/pkg/apis/rbac", + ImportPrefix: "k8s.io/client-go/pkg/apis/rbac", RootScopedKinds: sets.NewString("ClusterRole", "ClusterRoleBinding"), AddInternalObjectsToScheme: rbac.AddToScheme, }, diff --git a/vendor/k8s.io/client-go/1.5/pkg/apis/rbac/register.go b/vendor/k8s.io/client-go/pkg/apis/rbac/register.go similarity index 91% rename from vendor/k8s.io/client-go/1.5/pkg/apis/rbac/register.go rename to vendor/k8s.io/client-go/pkg/apis/rbac/register.go index 4ac400d94..d50d55745 100644 --- a/vendor/k8s.io/client-go/1.5/pkg/apis/rbac/register.go +++ b/vendor/k8s.io/client-go/pkg/apis/rbac/register.go @@ -17,10 +17,10 @@ limitations under the License. package rbac import ( - "k8s.io/client-go/1.5/pkg/api" - "k8s.io/client-go/1.5/pkg/api/unversioned" - "k8s.io/client-go/1.5/pkg/runtime" - "k8s.io/client-go/1.5/pkg/watch/versioned" + "k8s.io/client-go/pkg/api" + "k8s.io/client-go/pkg/api/unversioned" + "k8s.io/client-go/pkg/runtime" + "k8s.io/client-go/pkg/watch/versioned" ) const GroupName = "rbac.authorization.k8s.io" diff --git a/vendor/k8s.io/client-go/1.5/pkg/apis/rbac/types.go b/vendor/k8s.io/client-go/pkg/apis/rbac/types.go similarity index 98% rename from vendor/k8s.io/client-go/1.5/pkg/apis/rbac/types.go rename to vendor/k8s.io/client-go/pkg/apis/rbac/types.go index c2af95acc..0d8ec843f 100644 --- a/vendor/k8s.io/client-go/1.5/pkg/apis/rbac/types.go +++ b/vendor/k8s.io/client-go/pkg/apis/rbac/types.go @@ -17,9 +17,9 @@ limitations under the License. package rbac import ( - "k8s.io/client-go/1.5/pkg/api" - "k8s.io/client-go/1.5/pkg/api/unversioned" - "k8s.io/client-go/1.5/pkg/runtime" + "k8s.io/client-go/pkg/api" + "k8s.io/client-go/pkg/api/unversioned" + "k8s.io/client-go/pkg/runtime" ) // Authorization is calculated against diff --git a/vendor/k8s.io/client-go/1.5/pkg/apis/rbac/v1alpha1/defaults.go b/vendor/k8s.io/client-go/pkg/apis/rbac/v1alpha1/defaults.go similarity index 64% rename from vendor/k8s.io/client-go/1.5/pkg/apis/rbac/v1alpha1/defaults.go rename to vendor/k8s.io/client-go/pkg/apis/rbac/v1alpha1/defaults.go index d989a3e02..51f51e5ae 100644 --- a/vendor/k8s.io/client-go/1.5/pkg/apis/rbac/v1alpha1/defaults.go +++ b/vendor/k8s.io/client-go/pkg/apis/rbac/v1alpha1/defaults.go @@ -17,20 +17,24 @@ limitations under the License. package v1alpha1 import ( - "k8s.io/client-go/1.5/pkg/runtime" + "k8s.io/client-go/pkg/runtime" ) func addDefaultingFuncs(scheme *runtime.Scheme) error { + RegisterDefaults(scheme) return scheme.AddDefaultingFuncs( - func(obj *ClusterRoleBinding) { - if len(obj.RoleRef.APIGroup) == 0 { - obj.RoleRef.APIGroup = GroupName - } - }, - func(obj *RoleBinding) { - if len(obj.RoleRef.APIGroup) == 0 { - obj.RoleRef.APIGroup = GroupName - } - }, + SetDefaults_ClusterRoleBinding, + SetDefaults_RoleBinding, ) } + +func SetDefaults_ClusterRoleBinding(obj *ClusterRoleBinding) { + if len(obj.RoleRef.APIGroup) == 0 { + obj.RoleRef.APIGroup = GroupName + } +} +func SetDefaults_RoleBinding(obj *RoleBinding) { + if len(obj.RoleRef.APIGroup) == 0 { + obj.RoleRef.APIGroup = GroupName + } +} diff --git a/vendor/k8s.io/client-go/1.5/pkg/apis/rbac/v1alpha1/doc.go b/vendor/k8s.io/client-go/pkg/apis/rbac/v1alpha1/doc.go similarity index 96% rename from vendor/k8s.io/client-go/1.5/pkg/apis/rbac/v1alpha1/doc.go rename to vendor/k8s.io/client-go/pkg/apis/rbac/v1alpha1/doc.go index ab6aa6aba..0540241e8 100644 --- a/vendor/k8s.io/client-go/1.5/pkg/apis/rbac/v1alpha1/doc.go +++ b/vendor/k8s.io/client-go/pkg/apis/rbac/v1alpha1/doc.go @@ -17,6 +17,7 @@ limitations under the License. // +k8s:deepcopy-gen=package,register // +k8s:conversion-gen=k8s.io/kubernetes/pkg/apis/rbac // +k8s:openapi-gen=true +// +k8s:defaulter-gen=TypeMeta // +groupName=rbac.authorization.k8s.io package v1alpha1 diff --git a/vendor/k8s.io/client-go/1.5/pkg/apis/rbac/v1alpha1/generated.pb.go b/vendor/k8s.io/client-go/pkg/apis/rbac/v1alpha1/generated.pb.go similarity index 90% rename from vendor/k8s.io/client-go/1.5/pkg/apis/rbac/v1alpha1/generated.pb.go rename to vendor/k8s.io/client-go/pkg/apis/rbac/v1alpha1/generated.pb.go index fc09bd66f..9aa46cc2c 100644 --- a/vendor/k8s.io/client-go/1.5/pkg/apis/rbac/v1alpha1/generated.pb.go +++ b/vendor/k8s.io/client-go/pkg/apis/rbac/v1alpha1/generated.pb.go @@ -1,5 +1,5 @@ /* -Copyright 2016 The Kubernetes Authors. +Copyright 2017 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -102,17 +102,17 @@ func (*Subject) ProtoMessage() {} func (*Subject) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{10} } func init() { - proto.RegisterType((*ClusterRole)(nil), "k8s.io.client-go.1.5.pkg.apis.rbac.v1alpha1.ClusterRole") - proto.RegisterType((*ClusterRoleBinding)(nil), "k8s.io.client-go.1.5.pkg.apis.rbac.v1alpha1.ClusterRoleBinding") - proto.RegisterType((*ClusterRoleBindingList)(nil), "k8s.io.client-go.1.5.pkg.apis.rbac.v1alpha1.ClusterRoleBindingList") - proto.RegisterType((*ClusterRoleList)(nil), "k8s.io.client-go.1.5.pkg.apis.rbac.v1alpha1.ClusterRoleList") - proto.RegisterType((*PolicyRule)(nil), "k8s.io.client-go.1.5.pkg.apis.rbac.v1alpha1.PolicyRule") - proto.RegisterType((*Role)(nil), "k8s.io.client-go.1.5.pkg.apis.rbac.v1alpha1.Role") - proto.RegisterType((*RoleBinding)(nil), "k8s.io.client-go.1.5.pkg.apis.rbac.v1alpha1.RoleBinding") - proto.RegisterType((*RoleBindingList)(nil), "k8s.io.client-go.1.5.pkg.apis.rbac.v1alpha1.RoleBindingList") - proto.RegisterType((*RoleList)(nil), "k8s.io.client-go.1.5.pkg.apis.rbac.v1alpha1.RoleList") - proto.RegisterType((*RoleRef)(nil), "k8s.io.client-go.1.5.pkg.apis.rbac.v1alpha1.RoleRef") - proto.RegisterType((*Subject)(nil), "k8s.io.client-go.1.5.pkg.apis.rbac.v1alpha1.Subject") + proto.RegisterType((*ClusterRole)(nil), "k8s.io.client-go.pkg.apis.rbac.v1alpha1.ClusterRole") + proto.RegisterType((*ClusterRoleBinding)(nil), "k8s.io.client-go.pkg.apis.rbac.v1alpha1.ClusterRoleBinding") + proto.RegisterType((*ClusterRoleBindingList)(nil), "k8s.io.client-go.pkg.apis.rbac.v1alpha1.ClusterRoleBindingList") + proto.RegisterType((*ClusterRoleList)(nil), "k8s.io.client-go.pkg.apis.rbac.v1alpha1.ClusterRoleList") + proto.RegisterType((*PolicyRule)(nil), "k8s.io.client-go.pkg.apis.rbac.v1alpha1.PolicyRule") + proto.RegisterType((*Role)(nil), "k8s.io.client-go.pkg.apis.rbac.v1alpha1.Role") + proto.RegisterType((*RoleBinding)(nil), "k8s.io.client-go.pkg.apis.rbac.v1alpha1.RoleBinding") + proto.RegisterType((*RoleBindingList)(nil), "k8s.io.client-go.pkg.apis.rbac.v1alpha1.RoleBindingList") + proto.RegisterType((*RoleList)(nil), "k8s.io.client-go.pkg.apis.rbac.v1alpha1.RoleList") + proto.RegisterType((*RoleRef)(nil), "k8s.io.client-go.pkg.apis.rbac.v1alpha1.RoleRef") + proto.RegisterType((*Subject)(nil), "k8s.io.client-go.pkg.apis.rbac.v1alpha1.Subject") } func (m *ClusterRole) Marshal() (data []byte, err error) { size := m.Size() @@ -2539,55 +2539,56 @@ var ( ) var fileDescriptorGenerated = []byte{ - // 800 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x09, 0x6e, 0x88, 0x02, 0xff, 0xec, 0x54, 0x41, 0x4f, 0x13, 0x4d, - 0x18, 0x66, 0x69, 0xfb, 0xd1, 0x1d, 0xbe, 0xa6, 0x1f, 0xf3, 0x85, 0x2f, 0x4d, 0x93, 0x0f, 0x48, - 0x4f, 0x8d, 0xc0, 0x6c, 0x4a, 0x24, 0x72, 0xd0, 0x03, 0x6b, 0x8c, 0x21, 0x22, 0x92, 0x21, 0x12, - 0x25, 0x1a, 0xb3, 0x6d, 0x87, 0xb2, 0xb6, 0xdd, 0x6d, 0x76, 0x66, 0x51, 0xe3, 0x85, 0xf8, 0x0b, - 0xfc, 0x15, 0xde, 0xbc, 0x78, 0x35, 0xf1, 0xe0, 0x89, 0x83, 0x07, 0x8e, 0xc6, 0x03, 0x51, 0xfc, - 0x23, 0xbe, 0xb3, 0xbb, 0xd3, 0xdd, 0xd2, 0x56, 0x0a, 0x89, 0x24, 0x26, 0x1e, 0x26, 0xed, 0xbc, - 0xef, 0xf3, 0xbc, 0xf3, 0x3e, 0xef, 0xce, 0x3c, 0x68, 0xa5, 0xb9, 0xc2, 0x89, 0xed, 0x1a, 0x4d, - 0xbf, 0xca, 0x3c, 0x87, 0x09, 0xc6, 0x8d, 0x4e, 0xb3, 0x61, 0x58, 0x1d, 0x9b, 0x1b, 0x5e, 0xd5, - 0xaa, 0x19, 0xfb, 0x15, 0xab, 0xd5, 0xd9, 0xb3, 0x2a, 0x46, 0x83, 0x39, 0xcc, 0xb3, 0x04, 0xab, - 0x93, 0x8e, 0xe7, 0x0a, 0x17, 0x97, 0x43, 0x26, 0x89, 0x99, 0x04, 0x98, 0x44, 0x32, 0x89, 0x64, - 0x12, 0xc5, 0x2c, 0x2e, 0x36, 0x6c, 0xb1, 0xe7, 0x57, 0x49, 0xcd, 0x6d, 0x1b, 0x0d, 0xb7, 0xe1, - 0x1a, 0x41, 0x81, 0xaa, 0xbf, 0x1b, 0xec, 0x82, 0x4d, 0xf0, 0x2f, 0x2c, 0x5c, 0x5c, 0x1a, 0xda, - 0x92, 0xe1, 0x31, 0xee, 0xfa, 0x5e, 0x8d, 0x9d, 0x6e, 0xa6, 0xb8, 0x3c, 0x9c, 0xe3, 0x3b, 0xfb, - 0xcc, 0xe3, 0xb6, 0xeb, 0xb0, 0x7a, 0x1f, 0x6d, 0x61, 0x38, 0x6d, 0xbf, 0x4f, 0x71, 0x71, 0x71, - 0x30, 0xda, 0xf3, 0x1d, 0x61, 0xb7, 0xfb, 0x7b, 0xaa, 0x0c, 0x86, 0xfb, 0xc2, 0x6e, 0x19, 0xb6, - 0x23, 0xb8, 0xf0, 0x4e, 0x53, 0x4a, 0x1f, 0x35, 0x34, 0x79, 0xb3, 0xe5, 0x73, 0xc1, 0x3c, 0xea, - 0xb6, 0x18, 0x7e, 0x80, 0xb2, 0x6d, 0x26, 0xac, 0xba, 0x25, 0xac, 0x82, 0x36, 0xa7, 0x95, 0x27, - 0x97, 0xca, 0x64, 0xe8, 0xd8, 0x61, 0xe0, 0xe4, 0x5e, 0xf5, 0x29, 0xab, 0x89, 0xbb, 0xc0, 0x31, - 0xf1, 0xe1, 0xf1, 0xec, 0xd8, 0xc9, 0xf1, 0x2c, 0x8a, 0x63, 0xb4, 0x5b, 0x0d, 0x3f, 0x44, 0x19, - 0xcf, 0x6f, 0x31, 0x5e, 0x18, 0x9f, 0x4b, 0x41, 0xd9, 0xab, 0x64, 0xd4, 0xaf, 0x49, 0x36, 0xdd, - 0x96, 0x5d, 0x7b, 0x41, 0x81, 0x6c, 0xe6, 0xa2, 0x23, 0x32, 0x72, 0xc7, 0x69, 0x58, 0xb1, 0xf4, - 0x76, 0x1c, 0xe1, 0x84, 0x08, 0xd3, 0x76, 0xea, 0xb6, 0xd3, 0xf8, 0x85, 0x5a, 0x9e, 0xa0, 0x2c, - 0xf7, 0x83, 0x84, 0x92, 0x53, 0x19, 0x5d, 0xce, 0x56, 0xc8, 0x34, 0xff, 0x89, 0x8e, 0xc8, 0x46, - 0x01, 0x4e, 0xbb, 0x45, 0xf1, 0x23, 0x34, 0xe1, 0x81, 0x12, 0xca, 0x76, 0x0b, 0xa9, 0xa0, 0xf3, - 0x73, 0xd4, 0xa7, 0x21, 0xd1, 0xcc, 0x47, 0xf5, 0x27, 0xa2, 0x00, 0x55, 0x25, 0x4b, 0x5f, 0x34, - 0xf4, 0x5f, 0xff, 0xbc, 0xd6, 0x6d, 0x2e, 0xf0, 0xe3, 0xbe, 0x99, 0x19, 0x3f, 0x99, 0x59, 0xe2, - 0xa6, 0x13, 0x49, 0x0f, 0x46, 0xd7, 0xd5, 0xa5, 0x22, 0x89, 0xc1, 0x59, 0x28, 0x63, 0x0b, 0xd6, - 0x56, 0x53, 0xbb, 0x3e, 0xba, 0xaa, 0xfe, 0x7e, 0xe3, 0xcb, 0xb0, 0x26, 0x4b, 0xd2, 0xb0, 0x72, - 0xe9, 0x93, 0x86, 0xf2, 0x09, 0xf0, 0x65, 0xa8, 0xda, 0xe9, 0x55, 0xb5, 0x7c, 0x31, 0x55, 0x83, - 0xe5, 0xbc, 0x4a, 0x21, 0x14, 0x3f, 0x00, 0x3c, 0x8b, 0x32, 0xd0, 0x5c, 0x95, 0x83, 0x8c, 0x54, - 0x59, 0x37, 0x75, 0x89, 0xdf, 0x96, 0x01, 0x1a, 0xc6, 0xf1, 0x81, 0x86, 0xa6, 0x2d, 0x21, 0x3c, - 0xbb, 0xea, 0x0b, 0xf8, 0xd8, 0xf0, 0xe6, 0xed, 0x9a, 0x00, 0x2d, 0xb2, 0x39, 0x29, 0x7c, 0x7e, - 0x48, 0x73, 0x91, 0xa7, 0x10, 0x6a, 0x3d, 0xbb, 0xf5, 0x5c, 0x30, 0x47, 0xea, 0x37, 0xff, 0x8f, - 0x5a, 0x9a, 0x5e, 0x1d, 0x54, 0x91, 0x0e, 0x3e, 0x08, 0xcf, 0x23, 0x1d, 0xa4, 0xde, 0xf6, 0x5c, - 0xbf, 0xc3, 0xe1, 0xfa, 0xca, 0x3e, 0x73, 0x50, 0x44, 0x5f, 0xdd, 0x5c, 0x0b, 0x83, 0x34, 0xce, - 0x4b, 0xb0, 0xf2, 0x58, 0x5e, 0x48, 0xc7, 0x60, 0xaa, 0x82, 0x34, 0xce, 0xe3, 0x6b, 0x28, 0xa7, - 0x36, 0x1b, 0x56, 0x1b, 0x08, 0x99, 0x80, 0x30, 0x05, 0x84, 0x1c, 0x4d, 0x26, 0x68, 0x2f, 0x0e, - 0xdf, 0x40, 0x79, 0xc7, 0x75, 0x14, 0xe4, 0x3e, 0x5d, 0xe7, 0x85, 0xbf, 0x02, 0xea, 0xbf, 0x40, - 0xcd, 0x6f, 0xf4, 0xa6, 0xe8, 0x69, 0x6c, 0xe9, 0xbd, 0x86, 0xd2, 0xbf, 0xaf, 0x3d, 0xbe, 0x19, - 0x47, 0x93, 0x7f, 0x7c, 0x71, 0x04, 0x5f, 0x94, 0xd6, 0x71, 0xc9, 0x86, 0x78, 0x71, 0xeb, 0x38, - 0xdb, 0x09, 0x3f, 0x68, 0x28, 0x7b, 0x59, 0x16, 0xb8, 0xd5, 0xab, 0x83, 0x9c, 0x53, 0xc7, 0x60, - 0x01, 0x2f, 0x91, 0xfa, 0x46, 0x78, 0x01, 0x65, 0x95, 0x67, 0x04, 0xed, 0xeb, 0x71, 0x37, 0xca, - 0x56, 0x68, 0x17, 0x81, 0xe7, 0x50, 0xba, 0x09, 0xa3, 0x09, 0x2c, 0x4f, 0x37, 0xff, 0x8e, 0x90, - 0xe9, 0x3b, 0x10, 0xa3, 0x41, 0x46, 0x22, 0x1c, 0x70, 0x86, 0xe0, 0x16, 0x25, 0x10, 0xd2, 0x2d, - 0x68, 0x90, 0x29, 0xbd, 0xd3, 0xd0, 0x44, 0x74, 0x03, 0xbb, 0xf5, 0xb4, 0xa1, 0xf5, 0x96, 0x10, - 0x82, 0xd3, 0xb7, 0xc3, 0xa1, 0x45, 0xe7, 0x76, 0xdf, 0x0a, 0x74, 0x18, 0x65, 0x68, 0x02, 0x75, - 0x76, 0x0f, 0xd8, 0x40, 0xba, 0xfc, 0xe5, 0x1d, 0xab, 0xc6, 0xc0, 0x1c, 0x25, 0x6c, 0x2a, 0x82, - 0xe9, 0x1b, 0x2a, 0x41, 0x63, 0x8c, 0x79, 0xe5, 0xf0, 0xdb, 0xcc, 0xd8, 0x11, 0xac, 0xcf, 0xb0, - 0x0e, 0x4e, 0x66, 0xb4, 0x43, 0x58, 0x47, 0xb0, 0xbe, 0xc2, 0x7a, 0xfd, 0x7d, 0x66, 0x6c, 0x27, - 0xab, 0x06, 0xff, 0x23, 0x00, 0x00, 0xff, 0xff, 0x62, 0x32, 0x8a, 0x1f, 0x89, 0x0b, 0x00, 0x00, + // 815 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x09, 0x6e, 0x88, 0x02, 0xff, 0xec, 0x54, 0x41, 0x6b, 0xe3, 0x46, + 0x18, 0xb5, 0x62, 0xbb, 0xb1, 0xc6, 0x35, 0x6e, 0x54, 0x52, 0x84, 0xa1, 0xb2, 0xf1, 0xc9, 0x34, + 0xc9, 0x08, 0x9b, 0x86, 0xe6, 0xd0, 0x1e, 0xa2, 0x52, 0x4a, 0x68, 0x9a, 0x86, 0x09, 0x0d, 0x6d, + 0x68, 0x29, 0x63, 0x7b, 0xe2, 0x4c, 0x2d, 0x4b, 0x62, 0x66, 0xe4, 0xb6, 0xf4, 0x12, 0xf6, 0x17, + 0xec, 0xaf, 0xd8, 0xdb, 0x5e, 0xf6, 0xba, 0xb0, 0x87, 0x3d, 0xe5, 0xb0, 0x87, 0x1c, 0x97, 0x3d, + 0x98, 0x8d, 0xf6, 0x8f, 0x2c, 0x1a, 0x49, 0x96, 0x1d, 0xdb, 0x1b, 0x27, 0xb0, 0x81, 0x85, 0x3d, + 0x25, 0xf3, 0x7d, 0xef, 0xbd, 0xf9, 0xde, 0xe7, 0xd1, 0x03, 0x3b, 0xfd, 0x1d, 0x0e, 0xa9, 0x6b, + 0xf6, 0xfd, 0x36, 0x61, 0x0e, 0x11, 0x84, 0x9b, 0x5e, 0xbf, 0x67, 0x62, 0x8f, 0x72, 0x93, 0xb5, + 0x71, 0xc7, 0x1c, 0x36, 0xb1, 0xed, 0x9d, 0xe1, 0xa6, 0xd9, 0x23, 0x0e, 0x61, 0x58, 0x90, 0x2e, + 0xf4, 0x98, 0x2b, 0x5c, 0xad, 0x11, 0x31, 0x61, 0xca, 0x84, 0x5e, 0xbf, 0x07, 0x43, 0x26, 0x0c, + 0x99, 0x30, 0x61, 0x56, 0xb6, 0x7a, 0x54, 0x9c, 0xf9, 0x6d, 0xd8, 0x71, 0x07, 0x66, 0xcf, 0xed, + 0xb9, 0xa6, 0x14, 0x68, 0xfb, 0xa7, 0xf2, 0x24, 0x0f, 0xf2, 0xbf, 0x48, 0xb8, 0xd2, 0x5a, 0x38, + 0x92, 0xc9, 0x08, 0x77, 0x7d, 0xd6, 0x21, 0xd7, 0x87, 0xa9, 0x6c, 0x2f, 0xe6, 0xf8, 0xce, 0x90, + 0x30, 0x4e, 0x5d, 0x87, 0x74, 0x67, 0x68, 0x9b, 0x8b, 0x69, 0xc3, 0x19, 0xc7, 0x95, 0xad, 0xf9, + 0x68, 0xe6, 0x3b, 0x82, 0x0e, 0x66, 0x67, 0x6a, 0xce, 0x87, 0xfb, 0x82, 0xda, 0x26, 0x75, 0x04, + 0x17, 0xec, 0x3a, 0xa5, 0xfe, 0x5c, 0x01, 0xc5, 0xef, 0x6d, 0x9f, 0x0b, 0xc2, 0x90, 0x6b, 0x13, + 0xed, 0x37, 0x50, 0x18, 0x10, 0x81, 0xbb, 0x58, 0x60, 0x5d, 0xa9, 0x29, 0x8d, 0x62, 0xab, 0x01, + 0x17, 0xae, 0x1d, 0x0e, 0x9b, 0xf0, 0x97, 0xf6, 0xdf, 0xa4, 0x23, 0x7e, 0x26, 0x02, 0x5b, 0xda, + 0xc5, 0xa8, 0x9a, 0x09, 0x46, 0x55, 0x90, 0xd6, 0xd0, 0x58, 0x4d, 0xfb, 0x1d, 0xe4, 0x99, 0x6f, + 0x13, 0xae, 0xaf, 0xd4, 0xb2, 0x8d, 0x62, 0xeb, 0x6b, 0xb8, 0xec, 0xaf, 0x09, 0x0f, 0x5d, 0x9b, + 0x76, 0xfe, 0x43, 0xbe, 0x4d, 0xac, 0x52, 0x7c, 0x45, 0x3e, 0x3c, 0x71, 0x14, 0x29, 0xd6, 0x1f, + 0xaf, 0x00, 0x6d, 0xc2, 0x84, 0x45, 0x9d, 0x2e, 0x75, 0x7a, 0xef, 0xd1, 0xcb, 0x5f, 0xa0, 0xc0, + 0x7d, 0xd9, 0x48, 0xec, 0x34, 0x97, 0xb7, 0x73, 0x14, 0x31, 0xad, 0xcf, 0xe2, 0x2b, 0x0a, 0x71, + 0x81, 0xa3, 0xb1, 0xa8, 0xf6, 0x07, 0x58, 0x65, 0xae, 0x4d, 0x10, 0x39, 0xd5, 0xb3, 0x72, 0xf2, + 0x5b, 0xe8, 0xa3, 0x88, 0x68, 0x95, 0x63, 0xfd, 0xd5, 0xb8, 0x80, 0x12, 0xc9, 0xfa, 0x2b, 0x05, + 0x7c, 0x31, 0xbb, 0xaf, 0x7d, 0xca, 0x85, 0xf6, 0xe7, 0xcc, 0xce, 0xcc, 0x77, 0xec, 0x6c, 0xe2, + 0xa5, 0xc3, 0x90, 0x2e, 0x57, 0x37, 0xf6, 0x95, 0x54, 0x26, 0x16, 0x87, 0x41, 0x9e, 0x0a, 0x32, + 0x48, 0xb6, 0xf6, 0xed, 0xf2, 0xae, 0x66, 0xe7, 0x4d, 0x1f, 0xc3, 0x5e, 0x28, 0x89, 0x22, 0xe5, + 0xfa, 0x0b, 0x05, 0x94, 0x27, 0xc0, 0xf7, 0xe1, 0xea, 0x64, 0xda, 0xd5, 0xf6, 0xdd, 0x5c, 0xcd, + 0xb7, 0xf3, 0x20, 0x0b, 0x40, 0xfa, 0x01, 0x68, 0x55, 0x90, 0x1f, 0x12, 0xd6, 0xe6, 0xba, 0x52, + 0xcb, 0x36, 0x54, 0x4b, 0x0d, 0xf1, 0xc7, 0x61, 0x01, 0x45, 0x75, 0xed, 0x5c, 0x01, 0xeb, 0x58, + 0x08, 0x46, 0xdb, 0xbe, 0x20, 0x88, 0x70, 0xc1, 0x68, 0x47, 0x50, 0xd7, 0x09, 0x87, 0x0b, 0x8d, + 0x6f, 0x2c, 0x18, 0x2e, 0xce, 0x14, 0x88, 0xf0, 0x3f, 0x3f, 0xfc, 0x2b, 0x88, 0x13, 0xfa, 0xb7, + 0xbe, 0x8c, 0x47, 0x5a, 0xdf, 0x9d, 0xa7, 0x88, 0xe6, 0x5f, 0xa4, 0x6d, 0x00, 0x15, 0x7b, 0xf4, + 0x47, 0xe6, 0xfa, 0x1e, 0xd7, 0xb3, 0x72, 0xce, 0x52, 0x30, 0xaa, 0xaa, 0xbb, 0x87, 0x7b, 0x51, + 0x11, 0xa5, 0xfd, 0x10, 0x9c, 0x64, 0x2c, 0xd7, 0x73, 0x29, 0x18, 0x25, 0x45, 0x94, 0xf6, 0xb5, + 0x6f, 0x40, 0x29, 0x39, 0x1c, 0xe0, 0x01, 0xe1, 0x7a, 0x5e, 0x12, 0xd6, 0x82, 0x51, 0xb5, 0x84, + 0x26, 0x1b, 0x68, 0x1a, 0xa7, 0x7d, 0x07, 0xca, 0x8e, 0xeb, 0x24, 0x90, 0x5f, 0xd1, 0x3e, 0xd7, + 0x3f, 0x91, 0xd4, 0xcf, 0x83, 0x51, 0xb5, 0x7c, 0x30, 0xdd, 0x42, 0xd7, 0xb1, 0xf5, 0xa7, 0x0a, + 0xc8, 0x7d, 0xb8, 0xf1, 0xf8, 0x68, 0x05, 0x14, 0x3f, 0xe6, 0xe2, 0x12, 0xb9, 0x18, 0x46, 0xc7, + 0x3d, 0x07, 0xe2, 0xdd, 0xa3, 0xe3, 0xe6, 0x24, 0x7c, 0xa6, 0x80, 0xc2, 0x7d, 0x45, 0xe0, 0xd1, + 0xb4, 0x0f, 0x78, 0x4b, 0x1f, 0xf3, 0x0d, 0xfc, 0x0f, 0x92, 0xdf, 0x48, 0xdb, 0x04, 0x85, 0x24, + 0x33, 0xe4, 0xf8, 0x6a, 0x3a, 0x4d, 0x12, 0x2b, 0x68, 0x8c, 0xd0, 0x6a, 0x20, 0xd7, 0xa7, 0x4e, + 0x57, 0x46, 0x9e, 0x6a, 0x7d, 0x1a, 0x23, 0x73, 0x3f, 0x51, 0xa7, 0x8b, 0x64, 0x27, 0x44, 0x38, + 0x78, 0x40, 0xe4, 0x2b, 0x9a, 0x40, 0x84, 0x69, 0x81, 0x64, 0xa7, 0xfe, 0x44, 0x01, 0xab, 0xf1, + 0x0b, 0x1c, 0xeb, 0x29, 0x0b, 0xf5, 0x5a, 0x00, 0x60, 0x8f, 0x1e, 0x47, 0x4b, 0x8b, 0xef, 0x1d, + 0x7f, 0x2b, 0xbb, 0x87, 0x7b, 0x71, 0x07, 0x4d, 0xa0, 0x6e, 0x9e, 0x41, 0x33, 0x81, 0x1a, 0xfe, + 0xe5, 0x1e, 0xee, 0x10, 0x3d, 0x27, 0x61, 0x6b, 0x31, 0x4c, 0x3d, 0x48, 0x1a, 0x28, 0xc5, 0x58, + 0x5f, 0x5d, 0x5c, 0x19, 0x99, 0xcb, 0x2b, 0x23, 0xf3, 0xf2, 0xca, 0xc8, 0x9c, 0x07, 0x86, 0x72, + 0x11, 0x18, 0xca, 0x65, 0x60, 0x28, 0xaf, 0x03, 0x43, 0x79, 0xf8, 0xc6, 0xc8, 0x9c, 0x14, 0x92, + 0xc5, 0xbf, 0x0d, 0x00, 0x00, 0xff, 0xff, 0x62, 0x32, 0x8a, 0x1f, 0x89, 0x0b, 0x00, 0x00, } diff --git a/vendor/k8s.io/client-go/1.5/pkg/apis/rbac/v1alpha1/register.go b/vendor/k8s.io/client-go/pkg/apis/rbac/v1alpha1/register.go similarity index 89% rename from vendor/k8s.io/client-go/1.5/pkg/apis/rbac/v1alpha1/register.go rename to vendor/k8s.io/client-go/pkg/apis/rbac/v1alpha1/register.go index 7657ecc29..069071139 100644 --- a/vendor/k8s.io/client-go/1.5/pkg/apis/rbac/v1alpha1/register.go +++ b/vendor/k8s.io/client-go/pkg/apis/rbac/v1alpha1/register.go @@ -17,10 +17,10 @@ limitations under the License. package v1alpha1 import ( - "k8s.io/client-go/1.5/pkg/api/unversioned" - "k8s.io/client-go/1.5/pkg/api/v1" - "k8s.io/client-go/1.5/pkg/runtime" - "k8s.io/client-go/1.5/pkg/watch/versioned" + "k8s.io/client-go/pkg/api/unversioned" + "k8s.io/client-go/pkg/api/v1" + "k8s.io/client-go/pkg/runtime" + "k8s.io/client-go/pkg/watch/versioned" ) const GroupName = "rbac.authorization.k8s.io" diff --git a/vendor/k8s.io/client-go/1.5/pkg/apis/rbac/v1alpha1/types.generated.go b/vendor/k8s.io/client-go/pkg/apis/rbac/v1alpha1/types.generated.go similarity index 99% rename from vendor/k8s.io/client-go/1.5/pkg/apis/rbac/v1alpha1/types.generated.go rename to vendor/k8s.io/client-go/pkg/apis/rbac/v1alpha1/types.generated.go index 7113b9149..3e0824d3f 100644 --- a/vendor/k8s.io/client-go/1.5/pkg/apis/rbac/v1alpha1/types.generated.go +++ b/vendor/k8s.io/client-go/pkg/apis/rbac/v1alpha1/types.generated.go @@ -25,10 +25,10 @@ import ( "errors" "fmt" codec1978 "github.com/ugorji/go/codec" - pkg2_unversioned "k8s.io/client-go/1.5/pkg/api/unversioned" - pkg3_v1 "k8s.io/client-go/1.5/pkg/api/v1" - pkg1_runtime "k8s.io/client-go/1.5/pkg/runtime" - pkg4_types "k8s.io/client-go/1.5/pkg/types" + pkg2_unversioned "k8s.io/client-go/pkg/api/unversioned" + pkg3_v1 "k8s.io/client-go/pkg/api/v1" + pkg1_runtime "k8s.io/client-go/pkg/runtime" + pkg4_types "k8s.io/client-go/pkg/types" "reflect" "runtime" time "time" diff --git a/vendor/k8s.io/client-go/1.5/pkg/apis/rbac/v1alpha1/types.go b/vendor/k8s.io/client-go/pkg/apis/rbac/v1alpha1/types.go similarity index 96% rename from vendor/k8s.io/client-go/1.5/pkg/apis/rbac/v1alpha1/types.go rename to vendor/k8s.io/client-go/pkg/apis/rbac/v1alpha1/types.go index eefa6636b..a8b8b2294 100644 --- a/vendor/k8s.io/client-go/1.5/pkg/apis/rbac/v1alpha1/types.go +++ b/vendor/k8s.io/client-go/pkg/apis/rbac/v1alpha1/types.go @@ -17,9 +17,9 @@ limitations under the License. package v1alpha1 import ( - "k8s.io/client-go/1.5/pkg/api/unversioned" - "k8s.io/client-go/1.5/pkg/api/v1" - "k8s.io/client-go/1.5/pkg/runtime" + "k8s.io/client-go/pkg/api/unversioned" + "k8s.io/client-go/pkg/api/v1" + "k8s.io/client-go/pkg/runtime" ) // Authorization is calculated against @@ -34,20 +34,25 @@ type PolicyRule struct { Verbs []string `json:"verbs" protobuf:"bytes,1,rep,name=verbs"` // 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. + // +optional 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. + // +optional 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. + // +optional 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. + // +optional ResourceNames []string `json:"resourceNames,omitempty" protobuf:"bytes,5,rep,name=resourceNames"` // 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. + // +optional NonResourceURLs []string `json:"nonResourceURLs,omitempty" protobuf:"bytes,6,rep,name=nonResourceURLs"` } @@ -58,11 +63,13 @@ type Subject struct { // If the Authorizer does not recognized the kind value, the Authorizer should report an error. Kind string `json:"kind" protobuf:"bytes,1,opt,name=kind"` // APIVersion holds the API group and version of the referenced object. + // +optional APIVersion string `json:"apiVersion,omitempty" protobuf:"bytes,2,opt.name=apiVersion"` // Name of the object being referenced. Name string `json:"name" protobuf:"bytes,3,opt,name=name"` // Namespace of the referenced object. If the object kind is non-namespace, such as "User" or "Group", and this value is not empty // the Authorizer should report an error. + // +optional Namespace string `json:"namespace,omitempty" protobuf:"bytes,4,opt,name=namespace"` } @@ -82,6 +89,7 @@ type RoleRef struct { type Role struct { unversioned.TypeMeta `json:",inline"` // Standard object's metadata. + // +optional v1.ObjectMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"` // Rules holds all the PolicyRules for this Role @@ -96,6 +104,7 @@ type Role struct { type RoleBinding struct { unversioned.TypeMeta `json:",inline"` // Standard object's metadata. + // +optional v1.ObjectMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"` // Subjects holds references to the objects the role applies to. @@ -110,6 +119,7 @@ type RoleBinding struct { type RoleBindingList struct { unversioned.TypeMeta `json:",inline"` // Standard object's metadata. + // +optional unversioned.ListMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"` // Items is a list of RoleBindings @@ -120,6 +130,7 @@ type RoleBindingList struct { type RoleList struct { unversioned.TypeMeta `json:",inline"` // Standard object's metadata. + // +optional unversioned.ListMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"` // Items is a list of Roles @@ -133,6 +144,7 @@ type RoleList struct { type ClusterRole struct { unversioned.TypeMeta `json:",inline"` // Standard object's metadata. + // +optional v1.ObjectMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"` // Rules holds all the PolicyRules for this ClusterRole @@ -147,6 +159,7 @@ type ClusterRole struct { type ClusterRoleBinding struct { unversioned.TypeMeta `json:",inline"` // Standard object's metadata. + // +optional v1.ObjectMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"` // Subjects holds references to the objects the role applies to. @@ -161,6 +174,7 @@ type ClusterRoleBinding struct { type ClusterRoleBindingList struct { unversioned.TypeMeta `json:",inline"` // Standard object's metadata. + // +optional unversioned.ListMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"` // Items is a list of ClusterRoleBindings @@ -171,6 +185,7 @@ type ClusterRoleBindingList struct { type ClusterRoleList struct { unversioned.TypeMeta `json:",inline"` // Standard object's metadata. + // +optional unversioned.ListMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"` // Items is a list of ClusterRoles diff --git a/vendor/k8s.io/client-go/1.5/pkg/apis/rbac/v1alpha1/types_swagger_doc_generated.go b/vendor/k8s.io/client-go/pkg/apis/rbac/v1alpha1/types_swagger_doc_generated.go similarity index 100% rename from vendor/k8s.io/client-go/1.5/pkg/apis/rbac/v1alpha1/types_swagger_doc_generated.go rename to vendor/k8s.io/client-go/pkg/apis/rbac/v1alpha1/types_swagger_doc_generated.go diff --git a/vendor/k8s.io/client-go/1.5/pkg/apis/rbac/v1alpha1/zz_generated.conversion.go b/vendor/k8s.io/client-go/pkg/apis/rbac/v1alpha1/zz_generated.conversion.go similarity index 70% rename from vendor/k8s.io/client-go/1.5/pkg/apis/rbac/v1alpha1/zz_generated.conversion.go rename to vendor/k8s.io/client-go/pkg/apis/rbac/v1alpha1/zz_generated.conversion.go index 49e957994..32080dc54 100644 --- a/vendor/k8s.io/client-go/1.5/pkg/apis/rbac/v1alpha1/zz_generated.conversion.go +++ b/vendor/k8s.io/client-go/pkg/apis/rbac/v1alpha1/zz_generated.conversion.go @@ -1,7 +1,7 @@ // +build !ignore_autogenerated /* -Copyright 2016 The Kubernetes Authors. +Copyright 2017 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -21,10 +21,10 @@ limitations under the License. package v1alpha1 import ( - api "k8s.io/client-go/1.5/pkg/api" - rbac "k8s.io/client-go/1.5/pkg/apis/rbac" - conversion "k8s.io/client-go/1.5/pkg/conversion" - runtime "k8s.io/client-go/1.5/pkg/runtime" + rbac "k8s.io/client-go/pkg/apis/rbac" + conversion "k8s.io/client-go/pkg/conversion" + runtime "k8s.io/client-go/pkg/runtime" + unsafe "unsafe" ) func init() { @@ -61,9 +61,6 @@ func RegisterConversions(scheme *runtime.Scheme) error { } func autoConvert_v1alpha1_ClusterRole_To_rbac_ClusterRole(in *ClusterRole, out *rbac.ClusterRole, 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 @@ -87,9 +84,6 @@ func Convert_v1alpha1_ClusterRole_To_rbac_ClusterRole(in *ClusterRole, out *rbac } func autoConvert_rbac_ClusterRole_To_v1alpha1_ClusterRole(in *rbac.ClusterRole, out *ClusterRole, 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 @@ -113,24 +107,11 @@ func Convert_rbac_ClusterRole_To_v1alpha1_ClusterRole(in *rbac.ClusterRole, out } func autoConvert_v1alpha1_ClusterRoleBinding_To_rbac_ClusterRoleBinding(in *ClusterRoleBinding, out *rbac.ClusterRoleBinding, 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.Subjects != nil { - in, out := &in.Subjects, &out.Subjects - *out = make([]rbac.Subject, len(*in)) - for i := range *in { - if err := Convert_v1alpha1_Subject_To_rbac_Subject(&(*in)[i], &(*out)[i], s); err != nil { - return err - } - } - } else { - out.Subjects = nil - } + out.Subjects = *(*[]rbac.Subject)(unsafe.Pointer(&in.Subjects)) if err := Convert_v1alpha1_RoleRef_To_rbac_RoleRef(&in.RoleRef, &out.RoleRef, s); err != nil { return err } @@ -142,24 +123,11 @@ func Convert_v1alpha1_ClusterRoleBinding_To_rbac_ClusterRoleBinding(in *ClusterR } func autoConvert_rbac_ClusterRoleBinding_To_v1alpha1_ClusterRoleBinding(in *rbac.ClusterRoleBinding, out *ClusterRoleBinding, 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.Subjects != nil { - in, out := &in.Subjects, &out.Subjects - *out = make([]Subject, len(*in)) - for i := range *in { - if err := Convert_rbac_Subject_To_v1alpha1_Subject(&(*in)[i], &(*out)[i], s); err != nil { - return err - } - } - } else { - out.Subjects = nil - } + out.Subjects = *(*[]Subject)(unsafe.Pointer(&in.Subjects)) if err := Convert_rbac_RoleRef_To_v1alpha1_RoleRef(&in.RoleRef, &out.RoleRef, s); err != nil { return err } @@ -171,23 +139,8 @@ func Convert_rbac_ClusterRoleBinding_To_v1alpha1_ClusterRoleBinding(in *rbac.Clu } func autoConvert_v1alpha1_ClusterRoleBindingList_To_rbac_ClusterRoleBindingList(in *ClusterRoleBindingList, out *rbac.ClusterRoleBindingList, 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([]rbac.ClusterRoleBinding, len(*in)) - for i := range *in { - if err := Convert_v1alpha1_ClusterRoleBinding_To_rbac_ClusterRoleBinding(&(*in)[i], &(*out)[i], s); err != nil { - return err - } - } - } else { - out.Items = nil - } + out.ListMeta = in.ListMeta + out.Items = *(*[]rbac.ClusterRoleBinding)(unsafe.Pointer(&in.Items)) return nil } @@ -196,23 +149,8 @@ func Convert_v1alpha1_ClusterRoleBindingList_To_rbac_ClusterRoleBindingList(in * } func autoConvert_rbac_ClusterRoleBindingList_To_v1alpha1_ClusterRoleBindingList(in *rbac.ClusterRoleBindingList, out *ClusterRoleBindingList, 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([]ClusterRoleBinding, len(*in)) - for i := range *in { - if err := Convert_rbac_ClusterRoleBinding_To_v1alpha1_ClusterRoleBinding(&(*in)[i], &(*out)[i], s); err != nil { - return err - } - } - } else { - out.Items = nil - } + out.ListMeta = in.ListMeta + out.Items = *(*[]ClusterRoleBinding)(unsafe.Pointer(&in.Items)) return nil } @@ -221,12 +159,7 @@ func Convert_rbac_ClusterRoleBindingList_To_v1alpha1_ClusterRoleBindingList(in * } func autoConvert_v1alpha1_ClusterRoleList_To_rbac_ClusterRoleList(in *ClusterRoleList, out *rbac.ClusterRoleList, 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 - } + out.ListMeta = in.ListMeta if in.Items != nil { in, out := &in.Items, &out.Items *out = make([]rbac.ClusterRole, len(*in)) @@ -246,12 +179,7 @@ func Convert_v1alpha1_ClusterRoleList_To_rbac_ClusterRoleList(in *ClusterRoleLis } func autoConvert_rbac_ClusterRoleList_To_v1alpha1_ClusterRoleList(in *rbac.ClusterRoleList, out *ClusterRoleList, 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 - } + out.ListMeta = in.ListMeta if in.Items != nil { in, out := &in.Items, &out.Items *out = make([]ClusterRole, len(*in)) @@ -271,14 +199,14 @@ func Convert_rbac_ClusterRoleList_To_v1alpha1_ClusterRoleList(in *rbac.ClusterRo } func autoConvert_v1alpha1_PolicyRule_To_rbac_PolicyRule(in *PolicyRule, out *rbac.PolicyRule, s conversion.Scope) error { - out.Verbs = in.Verbs + out.Verbs = *(*[]string)(unsafe.Pointer(&in.Verbs)) if err := runtime.Convert_runtime_RawExtension_To_runtime_Object(&in.AttributeRestrictions, &out.AttributeRestrictions, s); err != nil { return err } - out.APIGroups = in.APIGroups - out.Resources = in.Resources - out.ResourceNames = in.ResourceNames - out.NonResourceURLs = in.NonResourceURLs + out.APIGroups = *(*[]string)(unsafe.Pointer(&in.APIGroups)) + out.Resources = *(*[]string)(unsafe.Pointer(&in.Resources)) + out.ResourceNames = *(*[]string)(unsafe.Pointer(&in.ResourceNames)) + out.NonResourceURLs = *(*[]string)(unsafe.Pointer(&in.NonResourceURLs)) return nil } @@ -287,14 +215,14 @@ func Convert_v1alpha1_PolicyRule_To_rbac_PolicyRule(in *PolicyRule, out *rbac.Po } func autoConvert_rbac_PolicyRule_To_v1alpha1_PolicyRule(in *rbac.PolicyRule, out *PolicyRule, s conversion.Scope) error { - out.Verbs = in.Verbs + out.Verbs = *(*[]string)(unsafe.Pointer(&in.Verbs)) if err := runtime.Convert_runtime_Object_To_runtime_RawExtension(&in.AttributeRestrictions, &out.AttributeRestrictions, s); err != nil { return err } - out.APIGroups = in.APIGroups - out.Resources = in.Resources - out.ResourceNames = in.ResourceNames - out.NonResourceURLs = in.NonResourceURLs + out.APIGroups = *(*[]string)(unsafe.Pointer(&in.APIGroups)) + out.Resources = *(*[]string)(unsafe.Pointer(&in.Resources)) + out.ResourceNames = *(*[]string)(unsafe.Pointer(&in.ResourceNames)) + out.NonResourceURLs = *(*[]string)(unsafe.Pointer(&in.NonResourceURLs)) return nil } @@ -303,9 +231,6 @@ func Convert_rbac_PolicyRule_To_v1alpha1_PolicyRule(in *rbac.PolicyRule, out *Po } func autoConvert_v1alpha1_Role_To_rbac_Role(in *Role, out *rbac.Role, 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 @@ -329,9 +254,6 @@ func Convert_v1alpha1_Role_To_rbac_Role(in *Role, out *rbac.Role, s conversion.S } func autoConvert_rbac_Role_To_v1alpha1_Role(in *rbac.Role, out *Role, 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 @@ -355,24 +277,11 @@ func Convert_rbac_Role_To_v1alpha1_Role(in *rbac.Role, out *Role, s conversion.S } func autoConvert_v1alpha1_RoleBinding_To_rbac_RoleBinding(in *RoleBinding, out *rbac.RoleBinding, 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.Subjects != nil { - in, out := &in.Subjects, &out.Subjects - *out = make([]rbac.Subject, len(*in)) - for i := range *in { - if err := Convert_v1alpha1_Subject_To_rbac_Subject(&(*in)[i], &(*out)[i], s); err != nil { - return err - } - } - } else { - out.Subjects = nil - } + out.Subjects = *(*[]rbac.Subject)(unsafe.Pointer(&in.Subjects)) if err := Convert_v1alpha1_RoleRef_To_rbac_RoleRef(&in.RoleRef, &out.RoleRef, s); err != nil { return err } @@ -384,24 +293,11 @@ func Convert_v1alpha1_RoleBinding_To_rbac_RoleBinding(in *RoleBinding, out *rbac } func autoConvert_rbac_RoleBinding_To_v1alpha1_RoleBinding(in *rbac.RoleBinding, out *RoleBinding, 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.Subjects != nil { - in, out := &in.Subjects, &out.Subjects - *out = make([]Subject, len(*in)) - for i := range *in { - if err := Convert_rbac_Subject_To_v1alpha1_Subject(&(*in)[i], &(*out)[i], s); err != nil { - return err - } - } - } else { - out.Subjects = nil - } + out.Subjects = *(*[]Subject)(unsafe.Pointer(&in.Subjects)) if err := Convert_rbac_RoleRef_To_v1alpha1_RoleRef(&in.RoleRef, &out.RoleRef, s); err != nil { return err } @@ -413,23 +309,8 @@ func Convert_rbac_RoleBinding_To_v1alpha1_RoleBinding(in *rbac.RoleBinding, out } func autoConvert_v1alpha1_RoleBindingList_To_rbac_RoleBindingList(in *RoleBindingList, out *rbac.RoleBindingList, 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([]rbac.RoleBinding, len(*in)) - for i := range *in { - if err := Convert_v1alpha1_RoleBinding_To_rbac_RoleBinding(&(*in)[i], &(*out)[i], s); err != nil { - return err - } - } - } else { - out.Items = nil - } + out.ListMeta = in.ListMeta + out.Items = *(*[]rbac.RoleBinding)(unsafe.Pointer(&in.Items)) return nil } @@ -438,23 +319,8 @@ func Convert_v1alpha1_RoleBindingList_To_rbac_RoleBindingList(in *RoleBindingLis } func autoConvert_rbac_RoleBindingList_To_v1alpha1_RoleBindingList(in *rbac.RoleBindingList, out *RoleBindingList, 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([]RoleBinding, len(*in)) - for i := range *in { - if err := Convert_rbac_RoleBinding_To_v1alpha1_RoleBinding(&(*in)[i], &(*out)[i], s); err != nil { - return err - } - } - } else { - out.Items = nil - } + out.ListMeta = in.ListMeta + out.Items = *(*[]RoleBinding)(unsafe.Pointer(&in.Items)) return nil } @@ -463,12 +329,7 @@ func Convert_rbac_RoleBindingList_To_v1alpha1_RoleBindingList(in *rbac.RoleBindi } func autoConvert_v1alpha1_RoleList_To_rbac_RoleList(in *RoleList, out *rbac.RoleList, 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 - } + out.ListMeta = in.ListMeta if in.Items != nil { in, out := &in.Items, &out.Items *out = make([]rbac.Role, len(*in)) @@ -488,12 +349,7 @@ func Convert_v1alpha1_RoleList_To_rbac_RoleList(in *RoleList, out *rbac.RoleList } func autoConvert_rbac_RoleList_To_v1alpha1_RoleList(in *rbac.RoleList, out *RoleList, 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 - } + out.ListMeta = in.ListMeta if in.Items != nil { in, out := &in.Items, &out.Items *out = make([]Role, len(*in)) diff --git a/vendor/k8s.io/client-go/1.5/pkg/apis/rbac/v1alpha1/zz_generated.deepcopy.go b/vendor/k8s.io/client-go/pkg/apis/rbac/v1alpha1/zz_generated.deepcopy.go similarity index 97% rename from vendor/k8s.io/client-go/1.5/pkg/apis/rbac/v1alpha1/zz_generated.deepcopy.go rename to vendor/k8s.io/client-go/pkg/apis/rbac/v1alpha1/zz_generated.deepcopy.go index f8dd0b8a0..89e25de80 100644 --- a/vendor/k8s.io/client-go/1.5/pkg/apis/rbac/v1alpha1/zz_generated.deepcopy.go +++ b/vendor/k8s.io/client-go/pkg/apis/rbac/v1alpha1/zz_generated.deepcopy.go @@ -1,7 +1,7 @@ // +build !ignore_autogenerated /* -Copyright 2016 The Kubernetes Authors. +Copyright 2017 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -21,9 +21,9 @@ limitations under the License. package v1alpha1 import ( - v1 "k8s.io/client-go/1.5/pkg/api/v1" - conversion "k8s.io/client-go/1.5/pkg/conversion" - runtime "k8s.io/client-go/1.5/pkg/runtime" + v1 "k8s.io/client-go/pkg/api/v1" + conversion "k8s.io/client-go/pkg/conversion" + runtime "k8s.io/client-go/pkg/runtime" reflect "reflect" ) diff --git a/vendor/k8s.io/client-go/pkg/apis/rbac/v1alpha1/zz_generated.defaults.go b/vendor/k8s.io/client-go/pkg/apis/rbac/v1alpha1/zz_generated.defaults.go new file mode 100644 index 000000000..b6071895e --- /dev/null +++ b/vendor/k8s.io/client-go/pkg/apis/rbac/v1alpha1/zz_generated.defaults.go @@ -0,0 +1,58 @@ +// +build !ignore_autogenerated + +/* +Copyright 2017 The Kubernetes Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT 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 defaulter-gen. Do not edit it manually! + +package v1alpha1 + +import ( + runtime "k8s.io/client-go/pkg/runtime" +) + +// RegisterDefaults adds defaulters functions to the given scheme. +// Public to allow building arbitrary schemes. +// All generated defaulters are covering - they call all nested defaulters. +func RegisterDefaults(scheme *runtime.Scheme) error { + scheme.AddTypeDefaultingFunc(&ClusterRoleBinding{}, func(obj interface{}) { SetObjectDefaults_ClusterRoleBinding(obj.(*ClusterRoleBinding)) }) + scheme.AddTypeDefaultingFunc(&ClusterRoleBindingList{}, func(obj interface{}) { SetObjectDefaults_ClusterRoleBindingList(obj.(*ClusterRoleBindingList)) }) + scheme.AddTypeDefaultingFunc(&RoleBinding{}, func(obj interface{}) { SetObjectDefaults_RoleBinding(obj.(*RoleBinding)) }) + scheme.AddTypeDefaultingFunc(&RoleBindingList{}, func(obj interface{}) { SetObjectDefaults_RoleBindingList(obj.(*RoleBindingList)) }) + return nil +} + +func SetObjectDefaults_ClusterRoleBinding(in *ClusterRoleBinding) { + SetDefaults_ClusterRoleBinding(in) +} + +func SetObjectDefaults_ClusterRoleBindingList(in *ClusterRoleBindingList) { + for i := range in.Items { + a := &in.Items[i] + SetObjectDefaults_ClusterRoleBinding(a) + } +} + +func SetObjectDefaults_RoleBinding(in *RoleBinding) { + SetDefaults_RoleBinding(in) +} + +func SetObjectDefaults_RoleBindingList(in *RoleBindingList) { + for i := range in.Items { + a := &in.Items[i] + SetObjectDefaults_RoleBinding(a) + } +} diff --git a/vendor/k8s.io/client-go/1.5/pkg/apis/rbac/zz_generated.deepcopy.go b/vendor/k8s.io/client-go/pkg/apis/rbac/zz_generated.deepcopy.go similarity index 97% rename from vendor/k8s.io/client-go/1.5/pkg/apis/rbac/zz_generated.deepcopy.go rename to vendor/k8s.io/client-go/pkg/apis/rbac/zz_generated.deepcopy.go index 20df3be7d..bfe4316c4 100644 --- a/vendor/k8s.io/client-go/1.5/pkg/apis/rbac/zz_generated.deepcopy.go +++ b/vendor/k8s.io/client-go/pkg/apis/rbac/zz_generated.deepcopy.go @@ -1,7 +1,7 @@ // +build !ignore_autogenerated /* -Copyright 2016 The Kubernetes Authors. +Copyright 2017 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -21,9 +21,9 @@ limitations under the License. package rbac import ( - api "k8s.io/client-go/1.5/pkg/api" - conversion "k8s.io/client-go/1.5/pkg/conversion" - runtime "k8s.io/client-go/1.5/pkg/runtime" + api "k8s.io/client-go/pkg/api" + conversion "k8s.io/client-go/pkg/conversion" + runtime "k8s.io/client-go/pkg/runtime" reflect "reflect" ) diff --git a/vendor/k8s.io/client-go/1.5/pkg/apis/storage/doc.go b/vendor/k8s.io/client-go/pkg/apis/storage/doc.go similarity index 100% rename from vendor/k8s.io/client-go/1.5/pkg/apis/storage/doc.go rename to vendor/k8s.io/client-go/pkg/apis/storage/doc.go diff --git a/vendor/k8s.io/client-go/1.5/pkg/apis/storage/install/install.go b/vendor/k8s.io/client-go/pkg/apis/storage/install/install.go similarity index 83% rename from vendor/k8s.io/client-go/1.5/pkg/apis/storage/install/install.go rename to vendor/k8s.io/client-go/pkg/apis/storage/install/install.go index 175ee2c71..4fc5ac7ed 100644 --- a/vendor/k8s.io/client-go/1.5/pkg/apis/storage/install/install.go +++ b/vendor/k8s.io/client-go/pkg/apis/storage/install/install.go @@ -19,10 +19,10 @@ limitations under the License. package install import ( - "k8s.io/client-go/1.5/pkg/apimachinery/announced" - "k8s.io/client-go/1.5/pkg/apis/storage" - "k8s.io/client-go/1.5/pkg/apis/storage/v1beta1" - "k8s.io/client-go/1.5/pkg/util/sets" + "k8s.io/client-go/pkg/apimachinery/announced" + "k8s.io/client-go/pkg/apis/storage" + "k8s.io/client-go/pkg/apis/storage/v1beta1" + "k8s.io/client-go/pkg/util/sets" ) func init() { @@ -30,7 +30,7 @@ func init() { &announced.GroupMetaFactoryArgs{ GroupName: storage.GroupName, VersionPreferenceOrder: []string{v1beta1.SchemeGroupVersion.Version}, - ImportPrefix: "k8s.io/client-go/1.5/pkg/apis/storage", + ImportPrefix: "k8s.io/client-go/pkg/apis/storage", RootScopedKinds: sets.NewString("StorageClass"), AddInternalObjectsToScheme: storage.AddToScheme, }, diff --git a/vendor/k8s.io/client-go/1.5/pkg/apis/storage/register.go b/vendor/k8s.io/client-go/pkg/apis/storage/register.go similarity index 93% rename from vendor/k8s.io/client-go/1.5/pkg/apis/storage/register.go rename to vendor/k8s.io/client-go/pkg/apis/storage/register.go index d71cdf61e..a924b7758 100644 --- a/vendor/k8s.io/client-go/1.5/pkg/apis/storage/register.go +++ b/vendor/k8s.io/client-go/pkg/apis/storage/register.go @@ -17,9 +17,9 @@ limitations under the License. package storage import ( - "k8s.io/client-go/1.5/pkg/api" - "k8s.io/client-go/1.5/pkg/api/unversioned" - "k8s.io/client-go/1.5/pkg/runtime" + "k8s.io/client-go/pkg/api" + "k8s.io/client-go/pkg/api/unversioned" + "k8s.io/client-go/pkg/runtime" ) // GroupName is the group name use in this package diff --git a/vendor/k8s.io/client-go/1.5/pkg/apis/storage/types.generated.go b/vendor/k8s.io/client-go/pkg/apis/storage/types.generated.go similarity index 99% rename from vendor/k8s.io/client-go/1.5/pkg/apis/storage/types.generated.go rename to vendor/k8s.io/client-go/pkg/apis/storage/types.generated.go index 68f862894..9d8d7bf96 100644 --- a/vendor/k8s.io/client-go/1.5/pkg/apis/storage/types.generated.go +++ b/vendor/k8s.io/client-go/pkg/apis/storage/types.generated.go @@ -25,9 +25,9 @@ import ( "errors" "fmt" codec1978 "github.com/ugorji/go/codec" - pkg2_api "k8s.io/client-go/1.5/pkg/api" - pkg1_unversioned "k8s.io/client-go/1.5/pkg/api/unversioned" - pkg3_types "k8s.io/client-go/1.5/pkg/types" + pkg2_api "k8s.io/client-go/pkg/api" + pkg1_unversioned "k8s.io/client-go/pkg/api/unversioned" + pkg3_types "k8s.io/client-go/pkg/types" "reflect" "runtime" time "time" diff --git a/vendor/k8s.io/client-go/1.5/pkg/apis/storage/types.go b/vendor/k8s.io/client-go/pkg/apis/storage/types.go similarity index 93% rename from vendor/k8s.io/client-go/1.5/pkg/apis/storage/types.go rename to vendor/k8s.io/client-go/pkg/apis/storage/types.go index 20b70cee6..4d4a18f60 100644 --- a/vendor/k8s.io/client-go/1.5/pkg/apis/storage/types.go +++ b/vendor/k8s.io/client-go/pkg/apis/storage/types.go @@ -17,8 +17,8 @@ limitations under the License. package storage import ( - "k8s.io/client-go/1.5/pkg/api" - "k8s.io/client-go/1.5/pkg/api/unversioned" + "k8s.io/client-go/pkg/api" + "k8s.io/client-go/pkg/api/unversioned" ) // +genclient=true @@ -32,7 +32,8 @@ import ( // 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"` + // +optional + api.ObjectMeta `json:"metadata,omitempty"` // provisioner is the driver expected to handle this StorageClass. // This is an optionally-prefixed name, like a label key. @@ -45,6 +46,7 @@ type StorageClass struct { // 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 + // +optional Parameters map[string]string `json:"parameters,omitempty"` } @@ -53,6 +55,7 @@ type StorageClassList struct { unversioned.TypeMeta `json:",inline"` // Standard list metadata // More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata + // +optional unversioned.ListMeta `json:"metadata,omitempty"` // Items is the list of StorageClasses diff --git a/vendor/k8s.io/client-go/1.5/pkg/apis/storage/v1beta1/doc.go b/vendor/k8s.io/client-go/pkg/apis/storage/v1beta1/doc.go similarity index 95% rename from vendor/k8s.io/client-go/1.5/pkg/apis/storage/v1beta1/doc.go rename to vendor/k8s.io/client-go/pkg/apis/storage/v1beta1/doc.go index c560310f2..a25066e96 100644 --- a/vendor/k8s.io/client-go/1.5/pkg/apis/storage/v1beta1/doc.go +++ b/vendor/k8s.io/client-go/pkg/apis/storage/v1beta1/doc.go @@ -18,4 +18,5 @@ limitations under the License. // +k8s:conversion-gen=k8s.io/kubernetes/pkg/apis/storage // +groupName=storage.k8s.io // +k8s:openapi-gen=true +// +k8s:defaulter-gen=TypeMeta package v1beta1 diff --git a/vendor/k8s.io/client-go/1.5/pkg/apis/storage/v1beta1/generated.pb.go b/vendor/k8s.io/client-go/pkg/apis/storage/v1beta1/generated.pb.go similarity index 84% rename from vendor/k8s.io/client-go/1.5/pkg/apis/storage/v1beta1/generated.pb.go rename to vendor/k8s.io/client-go/pkg/apis/storage/v1beta1/generated.pb.go index c865fbd6e..aa28246cb 100644 --- a/vendor/k8s.io/client-go/1.5/pkg/apis/storage/v1beta1/generated.pb.go +++ b/vendor/k8s.io/client-go/pkg/apis/storage/v1beta1/generated.pb.go @@ -1,5 +1,5 @@ /* -Copyright 2016 The Kubernetes Authors. +Copyright 2017 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -58,8 +58,8 @@ func (*StorageClassList) ProtoMessage() {} func (*StorageClassList) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{1} } func init() { - proto.RegisterType((*StorageClass)(nil), "k8s.io.client-go.1.5.pkg.apis.storage.v1beta1.StorageClass") - proto.RegisterType((*StorageClassList)(nil), "k8s.io.client-go.1.5.pkg.apis.storage.v1beta1.StorageClassList") + proto.RegisterType((*StorageClass)(nil), "k8s.io.client-go.pkg.apis.storage.v1beta1.StorageClass") + proto.RegisterType((*StorageClassList)(nil), "k8s.io.client-go.pkg.apis.storage.v1beta1.StorageClassList") } func (m *StorageClass) Marshal() (data []byte, err error) { size := m.Size() @@ -696,34 +696,34 @@ var ( ) var fileDescriptorGenerated = []byte{ - // 455 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x09, 0x6e, 0x88, 0x02, 0xff, 0x9c, 0x92, 0x4d, 0x6b, 0x13, 0x41, - 0x18, 0xc7, 0xb3, 0x09, 0xc1, 0x76, 0xa2, 0x18, 0x46, 0x0f, 0x61, 0x0f, 0x69, 0xe9, 0xa9, 0x8a, - 0x9d, 0x21, 0x85, 0x42, 0x28, 0x78, 0x59, 0x11, 0x14, 0x14, 0xcb, 0x7a, 0x11, 0xa1, 0x87, 0xd9, - 0xe4, 0x71, 0x1d, 0x37, 0xbb, 0xb3, 0xcc, 0xcb, 0x42, 0xc1, 0x83, 0x1f, 0xc1, 0x8f, 0x95, 0x63, - 0x8e, 0x1e, 0xa4, 0x68, 0xfd, 0x22, 0xce, 0xbe, 0xd8, 0x5d, 0xb2, 0x59, 0x11, 0x0f, 0x0f, 0xcc, - 0xdb, 0xef, 0xff, 0xfc, 0x9f, 0x3f, 0x83, 0xce, 0xa3, 0xb9, 0x22, 0x5c, 0xd0, 0xc8, 0x04, 0x20, - 0x13, 0xd0, 0xa0, 0x68, 0x1a, 0x85, 0x94, 0xa5, 0x5c, 0x51, 0xa5, 0x85, 0x64, 0x21, 0xd0, 0x6c, - 0x16, 0x80, 0x66, 0x33, 0x1a, 0x42, 0x02, 0x92, 0x69, 0x58, 0x92, 0x54, 0x0a, 0x2d, 0xf0, 0xe3, - 0x92, 0x25, 0x35, 0x4b, 0x2c, 0x4b, 0x72, 0x96, 0x54, 0x2c, 0xa9, 0x58, 0xf7, 0x24, 0xe4, 0xfa, - 0xa3, 0x09, 0xc8, 0x42, 0xc4, 0x34, 0x14, 0xa1, 0xa0, 0x85, 0x44, 0x60, 0x3e, 0x14, 0xbb, 0x62, - 0x53, 0xac, 0x4a, 0x69, 0xf7, 0xb4, 0xd3, 0x16, 0x95, 0xa0, 0x84, 0x91, 0x0b, 0xd8, 0xb6, 0xe3, - 0x9e, 0x75, 0x33, 0x26, 0xc9, 0x40, 0x2a, 0x2e, 0x12, 0x58, 0xb6, 0xb0, 0x27, 0xdd, 0x58, 0xd6, - 0x9a, 0xd9, 0x3d, 0xd9, 0xfd, 0x5a, 0x9a, 0x44, 0xf3, 0xb8, 0xed, 0x69, 0xb6, 0xfb, 0xb9, 0xd1, - 0x7c, 0x45, 0x79, 0xa2, 0x95, 0x96, 0xdb, 0xc8, 0xd1, 0xf7, 0x3e, 0xba, 0xfb, 0xb6, 0x4c, 0xef, - 0xd9, 0x8a, 0x29, 0x85, 0xdf, 0xa1, 0xbd, 0xd8, 0x66, 0xb8, 0x64, 0x9a, 0x4d, 0x9c, 0x43, 0xe7, - 0x78, 0x74, 0x7a, 0x4c, 0x3a, 0x93, 0xb7, 0x81, 0x93, 0x37, 0xc1, 0x27, 0x58, 0xe8, 0xd7, 0x96, - 0xf1, 0xf0, 0xfa, 0xfa, 0xa0, 0x77, 0x73, 0x7d, 0x80, 0xea, 0x33, 0xff, 0x56, 0x0d, 0x9f, 0xa1, - 0x91, 0xed, 0x99, 0xf1, 0x22, 0x19, 0x39, 0xe9, 0x5b, 0xf1, 0x7d, 0xef, 0x41, 0x85, 0x8c, 0x2e, - 0xea, 0x2b, 0xbf, 0xf9, 0x0e, 0x7f, 0x46, 0x28, 0x65, 0x92, 0x59, 0x19, 0x1b, 0xea, 0x64, 0x70, - 0x38, 0xb0, 0x96, 0x5e, 0x90, 0x7f, 0xff, 0x0c, 0xa4, 0x39, 0x1e, 0xb9, 0xb8, 0x95, 0x7a, 0x9e, - 0x68, 0x79, 0x55, 0x5b, 0xae, 0x2f, 0xfc, 0x46, 0x3f, 0xf7, 0x29, 0xba, 0xbf, 0x85, 0xe0, 0x31, - 0x1a, 0x44, 0x70, 0x55, 0x84, 0xb3, 0xef, 0xe7, 0x4b, 0xfc, 0x10, 0x0d, 0x33, 0xb6, 0x32, 0x50, - 0xce, 0xe4, 0x97, 0x9b, 0xf3, 0xfe, 0xdc, 0x39, 0xda, 0x38, 0x68, 0xdc, 0xec, 0xff, 0x8a, 0x2b, - 0x8d, 0x2f, 0x5b, 0x11, 0xd3, 0xbf, 0x44, 0xdc, 0xf8, 0x4d, 0x24, 0xc7, 0x8b, 0xa4, 0xc7, 0x95, - 0xed, 0xbd, 0x3f, 0x27, 0x8d, 0x9c, 0x2f, 0xd1, 0x90, 0x6b, 0x88, 0x95, 0x75, 0x93, 0x67, 0x35, - 0xff, 0xdf, 0xac, 0xbc, 0x7b, 0x55, 0x93, 0xe1, 0xcb, 0x5c, 0xce, 0x2f, 0x55, 0xbd, 0x47, 0xeb, - 0x9f, 0xd3, 0xde, 0xc6, 0xd6, 0x37, 0x5b, 0x5f, 0x6e, 0xa6, 0xce, 0xda, 0xd6, 0xc6, 0xd6, 0x0f, - 0x5b, 0x5f, 0x7f, 0x4d, 0x7b, 0xef, 0xef, 0x54, 0x6a, 0xbf, 0x03, 0x00, 0x00, 0xff, 0xff, 0x86, - 0x21, 0xa9, 0x43, 0xef, 0x03, 0x00, 0x00, + // 462 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x09, 0x6e, 0x88, 0x02, 0xff, 0x9c, 0x92, 0xcf, 0x8b, 0xd3, 0x40, + 0x14, 0xc7, 0x33, 0x2d, 0xc5, 0xdd, 0xa9, 0x62, 0x89, 0x1e, 0x4a, 0x0e, 0xd9, 0xb2, 0xa7, 0x2a, + 0xee, 0x0c, 0x2d, 0x2c, 0x94, 0x05, 0x2f, 0x15, 0x41, 0x41, 0x71, 0x89, 0x17, 0x11, 0xf6, 0x30, + 0x69, 0x9f, 0x71, 0x4c, 0x93, 0x09, 0x33, 0x2f, 0x81, 0x05, 0x0f, 0xfe, 0x09, 0xfe, 0x59, 0x3d, + 0xf6, 0xe8, 0x41, 0x16, 0x1b, 0xff, 0x11, 0x69, 0x12, 0x37, 0xa1, 0x3f, 0x44, 0xf6, 0x36, 0x6f, + 0xe6, 0x7d, 0xbe, 0xef, 0xfb, 0xbe, 0x0c, 0xbd, 0x08, 0x27, 0x86, 0x49, 0xc5, 0xc3, 0xd4, 0x07, + 0x1d, 0x03, 0x82, 0xe1, 0x49, 0x18, 0x70, 0x91, 0x48, 0xc3, 0x0d, 0x2a, 0x2d, 0x02, 0xe0, 0xd9, + 0xc8, 0x07, 0x14, 0x23, 0x1e, 0x40, 0x0c, 0x5a, 0x20, 0xcc, 0x59, 0xa2, 0x15, 0x2a, 0xfb, 0x69, + 0xc9, 0xb2, 0x9a, 0x65, 0x49, 0x18, 0xb0, 0x0d, 0xcb, 0x2a, 0x96, 0x55, 0xac, 0x73, 0x16, 0x48, + 0xfc, 0x9c, 0xfa, 0x6c, 0xa6, 0x22, 0x1e, 0xa8, 0x40, 0xf1, 0x42, 0xc2, 0x4f, 0x3f, 0x15, 0x55, + 0x51, 0x14, 0xa7, 0x52, 0xda, 0x19, 0x1f, 0xb4, 0xc5, 0x35, 0x18, 0x95, 0xea, 0x19, 0x6c, 0xdb, + 0x71, 0xce, 0x0f, 0x33, 0x69, 0x9c, 0x81, 0x36, 0x52, 0xc5, 0x30, 0xdf, 0xc1, 0x9e, 0x1d, 0xc6, + 0xb2, 0x9d, 0x9d, 0x9d, 0xb3, 0xfd, 0xdd, 0x3a, 0x8d, 0x51, 0x46, 0xbb, 0x9e, 0x46, 0xfb, 0xdb, + 0x53, 0x94, 0x0b, 0x2e, 0x63, 0x34, 0xa8, 0xb7, 0x91, 0xd3, 0x9f, 0x2d, 0x7a, 0xff, 0x7d, 0x99, + 0xde, 0x8b, 0x85, 0x30, 0xc6, 0xfe, 0x40, 0x8f, 0x22, 0x40, 0x31, 0x17, 0x28, 0xfa, 0x64, 0x40, + 0x86, 0xdd, 0xf1, 0x90, 0x1d, 0x4c, 0x9e, 0x65, 0x23, 0xf6, 0xce, 0xff, 0x02, 0x33, 0x7c, 0x0b, + 0x28, 0xa6, 0xf6, 0xf2, 0xe6, 0xc4, 0xca, 0x6f, 0x4e, 0x68, 0x7d, 0xe7, 0xdd, 0xaa, 0xd9, 0xe7, + 0xb4, 0x9b, 0x68, 0x95, 0xc9, 0x22, 0x19, 0xdd, 0x6f, 0x0d, 0xc8, 0xf0, 0x78, 0xfa, 0xa8, 0x42, + 0xba, 0x97, 0xf5, 0x93, 0xd7, 0xec, 0xb3, 0xbf, 0x52, 0x9a, 0x08, 0x2d, 0x22, 0x40, 0xd0, 0xa6, + 0xdf, 0x1e, 0xb4, 0x87, 0xdd, 0xf1, 0x2b, 0xf6, 0xff, 0x9f, 0x81, 0x35, 0xd7, 0x63, 0x97, 0xb7, + 0x52, 0x2f, 0x63, 0xd4, 0xd7, 0xb5, 0xe5, 0xfa, 0xc1, 0x6b, 0xcc, 0x73, 0x9e, 0xd3, 0x87, 0x5b, + 0x88, 0xdd, 0xa3, 0xed, 0x10, 0xae, 0x8b, 0x70, 0x8e, 0xbd, 0xcd, 0xd1, 0x7e, 0x4c, 0x3b, 0x99, + 0x58, 0xa4, 0x50, 0xee, 0xe4, 0x95, 0xc5, 0x45, 0x6b, 0x42, 0x4e, 0x57, 0x84, 0xf6, 0x9a, 0xf3, + 0xdf, 0x48, 0x83, 0xf6, 0xd5, 0x4e, 0xc4, 0xfc, 0x1f, 0x11, 0x37, 0x7e, 0x13, 0xdb, 0xe0, 0x45, + 0xd2, 0xbd, 0xca, 0xf6, 0xd1, 0xdf, 0x9b, 0x46, 0xce, 0x57, 0xb4, 0x23, 0x11, 0x22, 0xd3, 0x6f, + 0x15, 0x59, 0x4d, 0xee, 0x9a, 0xd5, 0xf4, 0x41, 0x35, 0xa4, 0xf3, 0x7a, 0x23, 0xe7, 0x95, 0xaa, + 0xd3, 0x27, 0xcb, 0xb5, 0x6b, 0xad, 0xd6, 0xae, 0xf5, 0x63, 0xed, 0x5a, 0xdf, 0x72, 0x97, 0x2c, + 0x73, 0x97, 0xac, 0x72, 0x97, 0xfc, 0xca, 0x5d, 0xf2, 0xfd, 0xb7, 0x6b, 0x7d, 0xbc, 0x57, 0xa9, + 0xfd, 0x09, 0x00, 0x00, 0xff, 0xff, 0x86, 0x21, 0xa9, 0x43, 0xef, 0x03, 0x00, 0x00, } diff --git a/vendor/k8s.io/client-go/1.5/pkg/apis/storage/v1beta1/register.go b/vendor/k8s.io/client-go/pkg/apis/storage/v1beta1/register.go similarity index 88% rename from vendor/k8s.io/client-go/1.5/pkg/apis/storage/v1beta1/register.go rename to vendor/k8s.io/client-go/pkg/apis/storage/v1beta1/register.go index 97c322dcf..040881177 100644 --- a/vendor/k8s.io/client-go/1.5/pkg/apis/storage/v1beta1/register.go +++ b/vendor/k8s.io/client-go/pkg/apis/storage/v1beta1/register.go @@ -17,10 +17,10 @@ limitations under the License. package v1beta1 import ( - "k8s.io/client-go/1.5/pkg/api/unversioned" - "k8s.io/client-go/1.5/pkg/api/v1" - "k8s.io/client-go/1.5/pkg/runtime" - versionedwatch "k8s.io/client-go/1.5/pkg/watch/versioned" + "k8s.io/client-go/pkg/api/unversioned" + "k8s.io/client-go/pkg/api/v1" + "k8s.io/client-go/pkg/runtime" + versionedwatch "k8s.io/client-go/pkg/watch/versioned" ) // GroupName is the group name use in this package diff --git a/vendor/k8s.io/client-go/1.5/pkg/apis/storage/v1beta1/types.generated.go b/vendor/k8s.io/client-go/pkg/apis/storage/v1beta1/types.generated.go similarity index 99% rename from vendor/k8s.io/client-go/1.5/pkg/apis/storage/v1beta1/types.generated.go rename to vendor/k8s.io/client-go/pkg/apis/storage/v1beta1/types.generated.go index 4e8d77446..39e924563 100644 --- a/vendor/k8s.io/client-go/1.5/pkg/apis/storage/v1beta1/types.generated.go +++ b/vendor/k8s.io/client-go/pkg/apis/storage/v1beta1/types.generated.go @@ -25,9 +25,9 @@ import ( "errors" "fmt" codec1978 "github.com/ugorji/go/codec" - pkg1_unversioned "k8s.io/client-go/1.5/pkg/api/unversioned" - pkg2_v1 "k8s.io/client-go/1.5/pkg/api/v1" - pkg3_types "k8s.io/client-go/1.5/pkg/types" + pkg1_unversioned "k8s.io/client-go/pkg/api/unversioned" + pkg2_v1 "k8s.io/client-go/pkg/api/v1" + pkg3_types "k8s.io/client-go/pkg/types" "reflect" "runtime" time "time" diff --git a/vendor/k8s.io/client-go/1.5/pkg/apis/storage/v1beta1/types.go b/vendor/k8s.io/client-go/pkg/apis/storage/v1beta1/types.go similarity index 94% rename from vendor/k8s.io/client-go/1.5/pkg/apis/storage/v1beta1/types.go rename to vendor/k8s.io/client-go/pkg/apis/storage/v1beta1/types.go index e281b5793..c48bfde51 100644 --- a/vendor/k8s.io/client-go/1.5/pkg/apis/storage/v1beta1/types.go +++ b/vendor/k8s.io/client-go/pkg/apis/storage/v1beta1/types.go @@ -17,8 +17,8 @@ limitations under the License. package v1beta1 import ( - "k8s.io/client-go/1.5/pkg/api/unversioned" - "k8s.io/client-go/1.5/pkg/api/v1" + "k8s.io/client-go/pkg/api/unversioned" + "k8s.io/client-go/pkg/api/v1" ) // +genclient=true @@ -33,6 +33,7 @@ type StorageClass struct { unversioned.TypeMeta `json:",inline"` // Standard object's metadata. // More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata + // +optional v1.ObjectMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"` // Provisioner indicates the type of the provisioner. @@ -40,6 +41,7 @@ type StorageClass struct { // Parameters holds the parameters for the provisioner that should // create volumes of this storage class. + // +optional Parameters map[string]string `json:"parameters,omitempty" protobuf:"bytes,3,rep,name=parameters"` } @@ -48,6 +50,7 @@ type StorageClassList struct { unversioned.TypeMeta `json:",inline"` // Standard list metadata // More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata + // +optional unversioned.ListMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"` // Items is the list of StorageClasses diff --git a/vendor/k8s.io/client-go/1.5/pkg/apis/storage/v1beta1/types_swagger_doc_generated.go b/vendor/k8s.io/client-go/pkg/apis/storage/v1beta1/types_swagger_doc_generated.go similarity index 100% rename from vendor/k8s.io/client-go/1.5/pkg/apis/storage/v1beta1/types_swagger_doc_generated.go rename to vendor/k8s.io/client-go/pkg/apis/storage/v1beta1/types_swagger_doc_generated.go diff --git a/vendor/k8s.io/client-go/1.5/pkg/apis/storage/v1beta1/zz_generated.conversion.go b/vendor/k8s.io/client-go/pkg/apis/storage/v1beta1/zz_generated.conversion.go similarity index 65% rename from vendor/k8s.io/client-go/1.5/pkg/apis/storage/v1beta1/zz_generated.conversion.go rename to vendor/k8s.io/client-go/pkg/apis/storage/v1beta1/zz_generated.conversion.go index fc900af2f..b51cd4757 100644 --- a/vendor/k8s.io/client-go/1.5/pkg/apis/storage/v1beta1/zz_generated.conversion.go +++ b/vendor/k8s.io/client-go/pkg/apis/storage/v1beta1/zz_generated.conversion.go @@ -1,7 +1,7 @@ // +build !ignore_autogenerated /* -Copyright 2016 The Kubernetes Authors. +Copyright 2017 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -21,10 +21,10 @@ limitations under the License. package v1beta1 import ( - api "k8s.io/client-go/1.5/pkg/api" - storage "k8s.io/client-go/1.5/pkg/apis/storage" - conversion "k8s.io/client-go/1.5/pkg/conversion" - runtime "k8s.io/client-go/1.5/pkg/runtime" + storage "k8s.io/client-go/pkg/apis/storage" + conversion "k8s.io/client-go/pkg/conversion" + runtime "k8s.io/client-go/pkg/runtime" + unsafe "unsafe" ) func init() { @@ -43,15 +43,12 @@ func RegisterConversions(scheme *runtime.Scheme) error { } func autoConvert_v1beta1_StorageClass_To_storage_StorageClass(in *StorageClass, out *storage.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 + out.Parameters = *(*map[string]string)(unsafe.Pointer(&in.Parameters)) return nil } @@ -60,15 +57,12 @@ func Convert_v1beta1_StorageClass_To_storage_StorageClass(in *StorageClass, out } func autoConvert_storage_StorageClass_To_v1beta1_StorageClass(in *storage.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 + out.Parameters = *(*map[string]string)(unsafe.Pointer(&in.Parameters)) return nil } @@ -77,23 +71,8 @@ func Convert_storage_StorageClass_To_v1beta1_StorageClass(in *storage.StorageCla } func autoConvert_v1beta1_StorageClassList_To_storage_StorageClassList(in *StorageClassList, out *storage.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([]storage.StorageClass, len(*in)) - for i := range *in { - if err := Convert_v1beta1_StorageClass_To_storage_StorageClass(&(*in)[i], &(*out)[i], s); err != nil { - return err - } - } - } else { - out.Items = nil - } + out.ListMeta = in.ListMeta + out.Items = *(*[]storage.StorageClass)(unsafe.Pointer(&in.Items)) return nil } @@ -102,23 +81,8 @@ func Convert_v1beta1_StorageClassList_To_storage_StorageClassList(in *StorageCla } func autoConvert_storage_StorageClassList_To_v1beta1_StorageClassList(in *storage.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_storage_StorageClass_To_v1beta1_StorageClass(&(*in)[i], &(*out)[i], s); err != nil { - return err - } - } - } else { - out.Items = nil - } + out.ListMeta = in.ListMeta + out.Items = *(*[]StorageClass)(unsafe.Pointer(&in.Items)) return nil } diff --git a/vendor/k8s.io/client-go/1.5/pkg/apis/storage/v1beta1/zz_generated.deepcopy.go b/vendor/k8s.io/client-go/pkg/apis/storage/v1beta1/zz_generated.deepcopy.go similarity index 92% rename from vendor/k8s.io/client-go/1.5/pkg/apis/storage/v1beta1/zz_generated.deepcopy.go rename to vendor/k8s.io/client-go/pkg/apis/storage/v1beta1/zz_generated.deepcopy.go index 27e39b68c..a61f65960 100644 --- a/vendor/k8s.io/client-go/1.5/pkg/apis/storage/v1beta1/zz_generated.deepcopy.go +++ b/vendor/k8s.io/client-go/pkg/apis/storage/v1beta1/zz_generated.deepcopy.go @@ -1,7 +1,7 @@ // +build !ignore_autogenerated /* -Copyright 2016 The Kubernetes Authors. +Copyright 2017 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -21,9 +21,9 @@ limitations under the License. package v1beta1 import ( - v1 "k8s.io/client-go/1.5/pkg/api/v1" - conversion "k8s.io/client-go/1.5/pkg/conversion" - runtime "k8s.io/client-go/1.5/pkg/runtime" + v1 "k8s.io/client-go/pkg/api/v1" + conversion "k8s.io/client-go/pkg/conversion" + runtime "k8s.io/client-go/pkg/runtime" reflect "reflect" ) diff --git a/vendor/k8s.io/client-go/1.5/pkg/apis/storage/zz_generated.deepcopy.go b/vendor/k8s.io/client-go/pkg/apis/storage/zz_generated.deepcopy.go similarity index 93% rename from vendor/k8s.io/client-go/1.5/pkg/apis/storage/zz_generated.deepcopy.go rename to vendor/k8s.io/client-go/pkg/apis/storage/zz_generated.deepcopy.go index d158ebcc6..e36d619f6 100644 --- a/vendor/k8s.io/client-go/1.5/pkg/apis/storage/zz_generated.deepcopy.go +++ b/vendor/k8s.io/client-go/pkg/apis/storage/zz_generated.deepcopy.go @@ -1,7 +1,7 @@ // +build !ignore_autogenerated /* -Copyright 2016 The Kubernetes Authors. +Copyright 2017 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -21,9 +21,9 @@ limitations under the License. package storage import ( - api "k8s.io/client-go/1.5/pkg/api" - conversion "k8s.io/client-go/1.5/pkg/conversion" - runtime "k8s.io/client-go/1.5/pkg/runtime" + api "k8s.io/client-go/pkg/api" + conversion "k8s.io/client-go/pkg/conversion" + runtime "k8s.io/client-go/pkg/runtime" reflect "reflect" ) diff --git a/vendor/k8s.io/client-go/1.5/pkg/auth/user/doc.go b/vendor/k8s.io/client-go/pkg/auth/user/doc.go similarity index 100% rename from vendor/k8s.io/client-go/1.5/pkg/auth/user/doc.go rename to vendor/k8s.io/client-go/pkg/auth/user/doc.go diff --git a/vendor/k8s.io/client-go/1.5/pkg/auth/user/user.go b/vendor/k8s.io/client-go/pkg/auth/user/user.go similarity index 87% rename from vendor/k8s.io/client-go/1.5/pkg/auth/user/user.go rename to vendor/k8s.io/client-go/pkg/auth/user/user.go index 7e7cc16f6..3af195988 100644 --- a/vendor/k8s.io/client-go/1.5/pkg/auth/user/user.go +++ b/vendor/k8s.io/client-go/pkg/auth/user/user.go @@ -65,3 +65,14 @@ func (i *DefaultInfo) GetGroups() []string { func (i *DefaultInfo) GetExtra() map[string][]string { return i.Extra } + +// well-known user and group names +const ( + SystemPrivilegedGroup = "system:masters" + NodesGroup = "system:nodes" + AllUnauthenticated = "system:unauthenticated" + AllAuthenticated = "system:authenticated" + + Anonymous = "system:anonymous" + APIServerUser = "system:apiserver" +) diff --git a/vendor/k8s.io/client-go/1.5/pkg/conversion/cloner.go b/vendor/k8s.io/client-go/pkg/conversion/cloner.go similarity index 100% rename from vendor/k8s.io/client-go/1.5/pkg/conversion/cloner.go rename to vendor/k8s.io/client-go/pkg/conversion/cloner.go diff --git a/vendor/k8s.io/client-go/1.5/pkg/conversion/converter.go b/vendor/k8s.io/client-go/pkg/conversion/converter.go similarity index 99% rename from vendor/k8s.io/client-go/1.5/pkg/conversion/converter.go rename to vendor/k8s.io/client-go/pkg/conversion/converter.go index 8941b18ae..9ab468ebe 100644 --- a/vendor/k8s.io/client-go/1.5/pkg/conversion/converter.go +++ b/vendor/k8s.io/client-go/pkg/conversion/converter.go @@ -431,10 +431,10 @@ func (c *Converter) SetStructFieldCopy(srcFieldType interface{}, srcFieldName st } // RegisterDefaultingFunc registers a value-defaulting func with the Converter. -// defaultingFunc must take one parameters: a pointer to the input type. +// defaultingFunc must take one parameter: a pointer to the input type. // // Example: -// c.RegisteDefaultingFunc( +// c.RegisterDefaultingFunc( // func(in *v1.Pod) { // // defaulting logic... // }) diff --git a/vendor/k8s.io/client-go/1.5/pkg/conversion/deep_equal.go b/vendor/k8s.io/client-go/pkg/conversion/deep_equal.go similarity index 94% rename from vendor/k8s.io/client-go/1.5/pkg/conversion/deep_equal.go rename to vendor/k8s.io/client-go/pkg/conversion/deep_equal.go index 9edb3a82e..d1cf931b5 100644 --- a/vendor/k8s.io/client-go/1.5/pkg/conversion/deep_equal.go +++ b/vendor/k8s.io/client-go/pkg/conversion/deep_equal.go @@ -17,7 +17,7 @@ limitations under the License. package conversion import ( - "k8s.io/client-go/1.5/pkg/third_party/forked/golang/reflect" + "k8s.io/client-go/pkg/third_party/forked/golang/reflect" ) // The code for this type must be located in third_party, since it forks from diff --git a/vendor/k8s.io/client-go/1.5/pkg/conversion/doc.go b/vendor/k8s.io/client-go/pkg/conversion/doc.go similarity index 100% rename from vendor/k8s.io/client-go/1.5/pkg/conversion/doc.go rename to vendor/k8s.io/client-go/pkg/conversion/doc.go diff --git a/vendor/k8s.io/client-go/1.5/pkg/conversion/helper.go b/vendor/k8s.io/client-go/pkg/conversion/helper.go similarity index 100% rename from vendor/k8s.io/client-go/1.5/pkg/conversion/helper.go rename to vendor/k8s.io/client-go/pkg/conversion/helper.go diff --git a/vendor/k8s.io/client-go/1.5/pkg/conversion/queryparams/convert.go b/vendor/k8s.io/client-go/pkg/conversion/queryparams/convert.go similarity index 100% rename from vendor/k8s.io/client-go/1.5/pkg/conversion/queryparams/convert.go rename to vendor/k8s.io/client-go/pkg/conversion/queryparams/convert.go diff --git a/vendor/k8s.io/client-go/1.5/pkg/conversion/queryparams/doc.go b/vendor/k8s.io/client-go/pkg/conversion/queryparams/doc.go similarity index 100% rename from vendor/k8s.io/client-go/1.5/pkg/conversion/queryparams/doc.go rename to vendor/k8s.io/client-go/pkg/conversion/queryparams/doc.go diff --git a/vendor/k8s.io/client-go/1.5/pkg/fields/doc.go b/vendor/k8s.io/client-go/pkg/fields/doc.go similarity index 100% rename from vendor/k8s.io/client-go/1.5/pkg/fields/doc.go rename to vendor/k8s.io/client-go/pkg/fields/doc.go diff --git a/vendor/k8s.io/client-go/1.5/pkg/fields/fields.go b/vendor/k8s.io/client-go/pkg/fields/fields.go similarity index 100% rename from vendor/k8s.io/client-go/1.5/pkg/fields/fields.go rename to vendor/k8s.io/client-go/pkg/fields/fields.go diff --git a/vendor/k8s.io/client-go/1.5/pkg/fields/requirements.go b/vendor/k8s.io/client-go/pkg/fields/requirements.go similarity index 95% rename from vendor/k8s.io/client-go/1.5/pkg/fields/requirements.go rename to vendor/k8s.io/client-go/pkg/fields/requirements.go index 1ab540aa6..fdf81c123 100644 --- a/vendor/k8s.io/client-go/1.5/pkg/fields/requirements.go +++ b/vendor/k8s.io/client-go/pkg/fields/requirements.go @@ -16,7 +16,7 @@ limitations under the License. package fields -import "k8s.io/client-go/1.5/pkg/selection" +import "k8s.io/client-go/pkg/selection" // Requirements is AND of all requirements. type Requirements []Requirement diff --git a/vendor/k8s.io/client-go/1.5/pkg/fields/selector.go b/vendor/k8s.io/client-go/pkg/fields/selector.go similarity index 99% rename from vendor/k8s.io/client-go/1.5/pkg/fields/selector.go rename to vendor/k8s.io/client-go/pkg/fields/selector.go index cd61a0130..836e8ba72 100644 --- a/vendor/k8s.io/client-go/1.5/pkg/fields/selector.go +++ b/vendor/k8s.io/client-go/pkg/fields/selector.go @@ -21,7 +21,7 @@ import ( "sort" "strings" - "k8s.io/client-go/1.5/pkg/selection" + "k8s.io/client-go/pkg/selection" ) // Selector represents a field selector. diff --git a/vendor/k8s.io/client-go/1.5/pkg/genericapiserver/openapi/common/common.go b/vendor/k8s.io/client-go/pkg/genericapiserver/openapi/common/common.go similarity index 69% rename from vendor/k8s.io/client-go/1.5/pkg/genericapiserver/openapi/common/common.go rename to vendor/k8s.io/client-go/pkg/genericapiserver/openapi/common/common.go index 48c4f9c01..d2a80f2e9 100644 --- a/vendor/k8s.io/client-go/1.5/pkg/genericapiserver/openapi/common/common.go +++ b/vendor/k8s.io/client-go/pkg/genericapiserver/openapi/common/common.go @@ -16,7 +16,10 @@ limitations under the License. package common -import "github.com/go-openapi/spec" +import ( + "github.com/emicklei/go-restful" + "github.com/go-openapi/spec" +) // OpenAPIDefinition describes single type. Normally these definitions are auto-generated using gen-openapi. type OpenAPIDefinition struct { @@ -35,6 +38,41 @@ type OpenAPIDefinitionGetter interface { OpenAPIDefinition() *OpenAPIDefinition } +// Config is set of configuration for openAPI spec generation. +type Config struct { + // List of supported protocols such as https, http, etc. + ProtocolList []string + + // Info is general information about the API. + Info *spec.Info + + // DefaultResponse will be used if an operation does not have any responses listed. It + // will show up as ... "responses" : {"default" : $DefaultResponse} in the spec. + DefaultResponse *spec.Response + + // CommonResponses will be added as a response to all operation specs. This is a good place to add common + // responses such as authorization failed. + CommonResponses map[int]spec.Response + + // List of webservice's path prefixes to ignore + IgnorePrefixes []string + + // OpenAPIDefinitions should provide definition for all models used by routes. Failure to provide this map + // or any of the models will result in spec generation failure. + Definitions *OpenAPIDefinitions + + // GetOperationIDAndTags returns operation id and tags for a restful route. It is an optional function to customize operation IDs. + GetOperationIDAndTags func(servePath string, r *restful.Route) (string, []string, error) + + // SecurityDefinitions is list of all security definitions for OpenAPI service. If this is not nil, the user of config + // is responsible to provide DefaultSecurity and (maybe) add unauthorized response to CommonResponses. + SecurityDefinitions *spec.SecurityDefinitions + + // DefaultSecurity for all operations. This will pass as spec.SwaggerProps.Security to OpenAPI. + // For most cases, this will be list of acceptable definitions in SecurityDefinitions. + DefaultSecurity []map[string][]string +} + // This function is a reference for converting go (or any custom type) to a simple open API type,format pair. There are // two ways to customize spec for a type. If you add it here, a type will be converted to a simple type and the type // comment (the comment that is added before type definition) will be lost. The spec will still have the property diff --git a/vendor/k8s.io/client-go/1.5/pkg/genericapiserver/openapi/common/doc.go b/vendor/k8s.io/client-go/pkg/genericapiserver/openapi/common/doc.go similarity index 100% rename from vendor/k8s.io/client-go/1.5/pkg/genericapiserver/openapi/common/doc.go rename to vendor/k8s.io/client-go/pkg/genericapiserver/openapi/common/doc.go diff --git a/vendor/k8s.io/client-go/1.5/pkg/labels/doc.go b/vendor/k8s.io/client-go/pkg/labels/doc.go similarity index 100% rename from vendor/k8s.io/client-go/1.5/pkg/labels/doc.go rename to vendor/k8s.io/client-go/pkg/labels/doc.go diff --git a/vendor/k8s.io/client-go/1.5/pkg/labels/labels.go b/vendor/k8s.io/client-go/pkg/labels/labels.go similarity index 51% rename from vendor/k8s.io/client-go/1.5/pkg/labels/labels.go rename to vendor/k8s.io/client-go/pkg/labels/labels.go index 822b137a9..0d0caa77d 100644 --- a/vendor/k8s.io/client-go/1.5/pkg/labels/labels.go +++ b/vendor/k8s.io/client-go/pkg/labels/labels.go @@ -17,6 +17,7 @@ limitations under the License. package labels import ( + "fmt" "sort" "strings" ) @@ -78,3 +79,103 @@ func FormatLabels(labelMap map[string]string) string { } return l } + +// Conflicts takes 2 maps and returns true if there a key match between +// the maps but the value doesn't match, and returns false in other cases +func Conflicts(labels1, labels2 Set) bool { + small := labels1 + big := labels2 + if len(labels2) < len(labels1) { + small = labels2 + big = labels1 + } + + for k, v := range small { + if val, match := big[k]; match { + if val != v { + return true + } + } + } + + return false +} + +// Merge combines given maps, and does not check for any conflicts +// between the maps. In case of conflicts, second map (labels2) wins +func Merge(labels1, labels2 Set) Set { + mergedMap := Set{} + + for k, v := range labels1 { + mergedMap[k] = v + } + for k, v := range labels2 { + mergedMap[k] = v + } + return mergedMap +} + +// Equals returns true if the given maps are equal +func Equals(labels1, labels2 Set) bool { + if len(labels1) != len(labels2) { + return false + } + + for k, v := range labels1 { + value, ok := labels2[k] + if !ok { + return false + } + if value != v { + return false + } + } + return true +} + +// AreLabelsInWhiteList verifies if the provided label list +// is in the provided whitelist and returns true, otherwise false. +func AreLabelsInWhiteList(labels, whitelist Set) bool { + if len(whitelist) == 0 { + return true + } + + for k, v := range labels { + value, ok := whitelist[k] + if !ok { + return false + } + if value != v { + return false + } + } + return true +} + +// ConvertSelectorToLabelsMap converts selector string to labels map +// and validates keys and values +func ConvertSelectorToLabelsMap(selector string) (Set, error) { + labelsMap := Set{} + + if len(selector) == 0 { + return labelsMap, nil + } + + labels := strings.Split(selector, ",") + for _, label := range labels { + l := strings.Split(label, "=") + if len(l) != 2 { + return labelsMap, fmt.Errorf("invalid selector: %s", l) + } + key := strings.TrimSpace(l[0]) + if err := validateLabelKey(key); err != nil { + return labelsMap, err + } + value := strings.TrimSpace(l[1]) + if err := validateLabelValue(value); err != nil { + return labelsMap, err + } + labelsMap[key] = value + } + return labelsMap, nil +} diff --git a/vendor/k8s.io/client-go/1.5/pkg/labels/selector.go b/vendor/k8s.io/client-go/pkg/labels/selector.go similarity index 94% rename from vendor/k8s.io/client-go/1.5/pkg/labels/selector.go rename to vendor/k8s.io/client-go/pkg/labels/selector.go index c6b8fd1d6..d14f6f90b 100644 --- a/vendor/k8s.io/client-go/1.5/pkg/labels/selector.go +++ b/vendor/k8s.io/client-go/pkg/labels/selector.go @@ -24,9 +24,9 @@ import ( "strings" "github.com/golang/glog" - "k8s.io/client-go/1.5/pkg/selection" - "k8s.io/client-go/1.5/pkg/util/sets" - "k8s.io/client-go/1.5/pkg/util/validation" + "k8s.io/client-go/pkg/selection" + "k8s.io/client-go/pkg/util/sets" + "k8s.io/client-go/pkg/util/validation" ) // Requirements is AND of all requirements. @@ -91,9 +91,12 @@ func (a ByKey) Less(i, j int) bool { return a[i].key < a[j].key } // Requirement implements both set based match and exact match // Requirement should be initialized via NewRequirement constructor for creating a valid Requirement. type Requirement struct { - key string - operator selection.Operator - strValues sets.String + key string + operator selection.Operator + // In huge majority of cases we have at most one value here. + // It is generally faster to operate on a single-element slice + // than on a single-element map, so we have a slice here. + strValues []string } // NewRequirement is the constructor for a Requirement. @@ -107,7 +110,7 @@ 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 selection.Operator, vals sets.String) (*Requirement, error) { +func NewRequirement(key string, op selection.Operator, vals []string) (*Requirement, error) { if err := validateLabelKey(key); err != nil { return nil, err } @@ -128,8 +131,8 @@ func NewRequirement(key string, op selection.Operator, vals sets.String) (*Requi 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 { + for i := range vals { + if _, err := strconv.ParseInt(vals[i], 10, 64); err != nil { return nil, fmt.Errorf("for 'Gt', 'Lt' operators, the value must be an integer") } } @@ -137,14 +140,24 @@ func NewRequirement(key string, op selection.Operator, vals sets.String) (*Requi return nil, fmt.Errorf("operator '%v' is not recognized", op) } - for v := range vals { - if err := validateLabelValue(v); err != nil { + for i := range vals { + if err := validateLabelValue(vals[i]); err != nil { return nil, err } } + sort.Strings(vals) return &Requirement{key: key, operator: op, strValues: vals}, nil } +func (r *Requirement) hasValue(value string) bool { + for i := range r.strValues { + if r.strValues[i] == value { + return true + } + } + return false +} + // 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. @@ -162,12 +175,12 @@ func (r *Requirement) Matches(ls Labels) bool { if !ls.Has(r.key) { return false } - return r.strValues.Has(ls.Get(r.key)) + return r.hasValue(ls.Get(r.key)) case selection.NotIn, selection.NotEquals: if !ls.Has(r.key) { return true } - return !r.strValues.Has(ls.Get(r.key)) + return !r.hasValue(ls.Get(r.key)) case selection.Exists: return ls.Has(r.key) case selection.DoesNotExist: @@ -189,10 +202,10 @@ func (r *Requirement) Matches(ls Labels) bool { } var rValue int64 - for strValue := range r.strValues { - rValue, err = strconv.ParseInt(strValue, 10, 64) + for i := range r.strValues { + rValue, err = strconv.ParseInt(r.strValues[i], 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", r.strValues[i], r) return false } } @@ -210,8 +223,8 @@ func (r *Requirement) Operator() selection.Operator { } func (r *Requirement) Values() sets.String { ret := sets.String{} - for k := range r.strValues { - ret.Insert(k) + for i := range r.strValues { + ret.Insert(r.strValues[i]) } return ret } @@ -258,9 +271,9 @@ func (r *Requirement) String() string { buffer.WriteString("(") } if len(r.strValues) == 1 { - buffer.WriteString(r.strValues.List()[0]) + buffer.WriteString(r.strValues[0]) } else { // only > 1 since == 0 prohibited by NewRequirement - buffer.WriteString(strings.Join(r.strValues.List(), ",")) + buffer.WriteString(strings.Join(r.strValues, ",")) } switch r.operator { @@ -561,7 +574,7 @@ func (p *Parser) parseRequirement() (*Requirement, error) { return nil, err } if operator == selection.Exists || operator == selection.DoesNotExist { // operator found lookahead set checked - return NewRequirement(key, operator, nil) + return NewRequirement(key, operator, []string{}) } operator, err = p.parseOperator() if err != nil { @@ -577,7 +590,7 @@ func (p *Parser) parseRequirement() (*Requirement, error) { if err != nil { return nil, err } - return NewRequirement(key, operator, values) + return NewRequirement(key, operator, values.List()) } @@ -784,7 +797,7 @@ func SelectorFromSet(ls Set) Selector { } var requirements internalSelector for label, value := range ls { - if r, err := NewRequirement(label, selection.Equals, sets.NewString(value)); err != nil { + if r, err := NewRequirement(label, selection.Equals, []string{value}); err != nil { //TODO: double check errors when input comes from serialization? return internalSelector{} } else { @@ -805,7 +818,7 @@ func SelectorFromValidatedSet(ls Set) Selector { } var requirements internalSelector for label, value := range ls { - requirements = append(requirements, Requirement{key: label, operator: selection.Equals, strValues: sets.NewString(value)}) + requirements = append(requirements, Requirement{key: label, operator: selection.Equals, strValues: []string{value}}) } // sort to have deterministic string representation sort.Sort(ByKey(requirements)) diff --git a/vendor/k8s.io/client-go/1.5/pkg/runtime/codec.go b/vendor/k8s.io/client-go/pkg/runtime/codec.go similarity index 87% rename from vendor/k8s.io/client-go/1.5/pkg/runtime/codec.go rename to vendor/k8s.io/client-go/pkg/runtime/codec.go index 10ea163a1..070738cda 100644 --- a/vendor/k8s.io/client-go/1.5/pkg/runtime/codec.go +++ b/vendor/k8s.io/client-go/pkg/runtime/codec.go @@ -24,8 +24,8 @@ import ( "net/url" "reflect" - "k8s.io/client-go/1.5/pkg/api/unversioned" - "k8s.io/client-go/1.5/pkg/conversion/queryparams" + "k8s.io/client-go/pkg/api/unversioned" + "k8s.io/client-go/pkg/conversion/queryparams" ) // codec binds an encoder and decoder. @@ -76,6 +76,24 @@ func EncodeOrDie(e Encoder, obj Object) string { return string(bytes) } +// DefaultingSerializer invokes defaulting after decoding. +type DefaultingSerializer struct { + Defaulter ObjectDefaulter + Decoder Decoder + // Encoder is optional to allow this type to be used as both a Decoder and an Encoder + Encoder +} + +// Decode performs a decode and then allows the defaulter to act on the provided object. +func (d DefaultingSerializer) Decode(data []byte, defaultGVK *unversioned.GroupVersionKind, into Object) (Object, *unversioned.GroupVersionKind, error) { + obj, gvk, err := d.Decoder.Decode(data, defaultGVK, into) + if err != nil { + return obj, gvk, err + } + d.Defaulter.Default(obj) + return obj, gvk, nil +} + // 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) { @@ -199,6 +217,22 @@ func (s base64Serializer) Decode(data []byte, defaults *unversioned.GroupVersion return s.Serializer.Decode(out[:n], defaults, into) } +// SerializerInfoForMediaType returns the first info in types that has a matching media type (which cannot +// include media-type parameters), or the first info with an empty media type, or false if no type matches. +func SerializerInfoForMediaType(types []SerializerInfo, mediaType string) (SerializerInfo, bool) { + for _, info := range types { + if info.MediaType == mediaType { + return info, true + } + } + for _, info := range types { + if len(info.MediaType) == 0 { + return info, true + } + } + return SerializerInfo{}, false +} + var ( // InternalGroupVersioner will always prefer the internal version for a given group version kind. InternalGroupVersioner GroupVersioner = internalGroupVersioner{} diff --git a/vendor/k8s.io/client-go/1.5/pkg/runtime/codec_check.go b/vendor/k8s.io/client-go/pkg/runtime/codec_check.go similarity index 97% rename from vendor/k8s.io/client-go/1.5/pkg/runtime/codec_check.go rename to vendor/k8s.io/client-go/pkg/runtime/codec_check.go index 1f9755e92..9a52ad2e5 100644 --- a/vendor/k8s.io/client-go/1.5/pkg/runtime/codec_check.go +++ b/vendor/k8s.io/client-go/pkg/runtime/codec_check.go @@ -20,7 +20,7 @@ import ( "fmt" "reflect" - "k8s.io/client-go/1.5/pkg/api/unversioned" + "k8s.io/client-go/pkg/api/unversioned" ) // CheckCodec makes sure that the codec can encode objects like internalType, diff --git a/vendor/k8s.io/client-go/1.5/pkg/runtime/conversion.go b/vendor/k8s.io/client-go/pkg/runtime/conversion.go similarity index 98% rename from vendor/k8s.io/client-go/1.5/pkg/runtime/conversion.go rename to vendor/k8s.io/client-go/pkg/runtime/conversion.go index 822304db2..034bef9f1 100644 --- a/vendor/k8s.io/client-go/1.5/pkg/runtime/conversion.go +++ b/vendor/k8s.io/client-go/pkg/runtime/conversion.go @@ -23,7 +23,7 @@ import ( "strconv" "strings" - "k8s.io/client-go/1.5/pkg/conversion" + "k8s.io/client-go/pkg/conversion" ) // JSONKeyMapper uses the struct tags on a conversion to determine the key value for diff --git a/vendor/k8s.io/client-go/1.5/pkg/runtime/doc.go b/vendor/k8s.io/client-go/pkg/runtime/doc.go similarity index 100% rename from vendor/k8s.io/client-go/1.5/pkg/runtime/doc.go rename to vendor/k8s.io/client-go/pkg/runtime/doc.go diff --git a/vendor/k8s.io/client-go/1.5/pkg/runtime/embedded.go b/vendor/k8s.io/client-go/pkg/runtime/embedded.go similarity index 97% rename from vendor/k8s.io/client-go/1.5/pkg/runtime/embedded.go rename to vendor/k8s.io/client-go/pkg/runtime/embedded.go index 7184a7d34..f914256b7 100644 --- a/vendor/k8s.io/client-go/1.5/pkg/runtime/embedded.go +++ b/vendor/k8s.io/client-go/pkg/runtime/embedded.go @@ -19,8 +19,8 @@ package runtime import ( "errors" - "k8s.io/client-go/1.5/pkg/api/unversioned" - "k8s.io/client-go/1.5/pkg/conversion" + "k8s.io/client-go/pkg/api/unversioned" + "k8s.io/client-go/pkg/conversion" ) type encodable struct { diff --git a/vendor/k8s.io/client-go/1.5/pkg/runtime/error.go b/vendor/k8s.io/client-go/pkg/runtime/error.go similarity index 98% rename from vendor/k8s.io/client-go/1.5/pkg/runtime/error.go rename to vendor/k8s.io/client-go/pkg/runtime/error.go index 098e5bcf2..086507c14 100644 --- a/vendor/k8s.io/client-go/1.5/pkg/runtime/error.go +++ b/vendor/k8s.io/client-go/pkg/runtime/error.go @@ -20,7 +20,7 @@ import ( "fmt" "reflect" - "k8s.io/client-go/1.5/pkg/api/unversioned" + "k8s.io/client-go/pkg/api/unversioned" ) type notRegisteredErr struct { diff --git a/vendor/k8s.io/client-go/1.5/pkg/runtime/extension.go b/vendor/k8s.io/client-go/pkg/runtime/extension.go similarity index 100% rename from vendor/k8s.io/client-go/1.5/pkg/runtime/extension.go rename to vendor/k8s.io/client-go/pkg/runtime/extension.go diff --git a/vendor/k8s.io/client-go/1.5/pkg/runtime/generated.pb.go b/vendor/k8s.io/client-go/pkg/runtime/generated.pb.go similarity index 86% rename from vendor/k8s.io/client-go/1.5/pkg/runtime/generated.pb.go rename to vendor/k8s.io/client-go/pkg/runtime/generated.pb.go index bdf9aa92b..546ec0683 100644 --- a/vendor/k8s.io/client-go/1.5/pkg/runtime/generated.pb.go +++ b/vendor/k8s.io/client-go/pkg/runtime/generated.pb.go @@ -1,5 +1,5 @@ /* -Copyright 2016 The Kubernetes Authors. +Copyright 2017 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -62,9 +62,9 @@ func (*Unknown) ProtoMessage() {} func (*Unknown) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{2} } func init() { - proto.RegisterType((*RawExtension)(nil), "k8s.io.client-go.1.5.pkg.runtime.RawExtension") - proto.RegisterType((*TypeMeta)(nil), "k8s.io.client-go.1.5.pkg.runtime.TypeMeta") - proto.RegisterType((*Unknown)(nil), "k8s.io.client-go.1.5.pkg.runtime.Unknown") + proto.RegisterType((*RawExtension)(nil), "k8s.io.client-go.pkg.runtime.RawExtension") + proto.RegisterType((*TypeMeta)(nil), "k8s.io.client-go.pkg.runtime.TypeMeta") + proto.RegisterType((*Unknown)(nil), "k8s.io.client-go.pkg.runtime.Unknown") } func (m *RawExtension) Marshal() (data []byte, err error) { size := m.Size() @@ -738,29 +738,30 @@ var ( ) 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, + // 388 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x09, 0x6e, 0x88, 0x02, 0xff, 0x7c, 0x90, 0x3f, 0x8f, 0xda, 0x30, + 0x18, 0xc6, 0x13, 0x40, 0x82, 0x1a, 0x24, 0x2a, 0x77, 0x68, 0x8a, 0x54, 0x83, 0x58, 0x5a, 0x06, + 0x6c, 0x15, 0xa9, 0x52, 0x57, 0x82, 0x18, 0xaa, 0xaa, 0x52, 0x65, 0x95, 0x0e, 0x9d, 0x1a, 0x12, + 0x37, 0xb5, 0x52, 0xec, 0xc8, 0x71, 0x94, 0x76, 0xeb, 0x47, 0xe8, 0xc7, 0x62, 0x64, 0xbc, 0x09, + 0x1d, 0xb9, 0xcf, 0x70, 0xfb, 0x09, 0x63, 0xfe, 0x1c, 0xa0, 0xdb, 0xe2, 0xf7, 0xf9, 0x3d, 0xcf, + 0xfb, 0xbc, 0x01, 0xc3, 0xe4, 0x43, 0x86, 0xb9, 0x24, 0x49, 0x3e, 0x67, 0x4a, 0x30, 0xcd, 0x32, + 0x92, 0x26, 0x31, 0x51, 0xb9, 0xd0, 0x7c, 0xc1, 0x48, 0xcc, 0x04, 0x53, 0x81, 0x66, 0x11, 0x4e, + 0x95, 0xd4, 0x12, 0xbe, 0xde, 0xe1, 0xf8, 0x88, 0xe3, 0x34, 0x89, 0xb1, 0xc5, 0x3b, 0xc3, 0x98, + 0xeb, 0x5f, 0xf9, 0x1c, 0x87, 0x72, 0x41, 0x62, 0x19, 0x4b, 0x62, 0x5c, 0xf3, 0xfc, 0xa7, 0x79, + 0x99, 0x87, 0xf9, 0xda, 0xa5, 0x75, 0x46, 0xd7, 0x97, 0x07, 0x29, 0x27, 0x8a, 0x65, 0x32, 0x57, + 0xe1, 0x45, 0x83, 0xce, 0xbb, 0xeb, 0x9e, 0x5c, 0xf3, 0xdf, 0x84, 0x0b, 0x9d, 0x69, 0x75, 0x6e, + 0xe9, 0x0f, 0x40, 0x8b, 0x06, 0xc5, 0xf4, 0x8f, 0x66, 0x22, 0xe3, 0x52, 0xc0, 0x57, 0xa0, 0xaa, + 0x82, 0xc2, 0x73, 0x7b, 0xee, 0xdb, 0x96, 0x5f, 0x2f, 0xd7, 0xdd, 0x2a, 0x0d, 0x0a, 0xba, 0x9d, + 0xf5, 0x7f, 0x80, 0xc6, 0xd7, 0xbf, 0x29, 0xfb, 0xcc, 0x74, 0x00, 0x47, 0x00, 0x04, 0x29, 0xff, + 0xc6, 0xd4, 0xd6, 0x64, 0xe8, 0x67, 0x3e, 0x5c, 0xae, 0xbb, 0x4e, 0xb9, 0xee, 0x82, 0xf1, 0x97, + 0x8f, 0x56, 0xa1, 0x27, 0x14, 0xec, 0x81, 0x5a, 0xc2, 0x45, 0xe4, 0x55, 0x0c, 0xdd, 0xb2, 0x74, + 0xed, 0x13, 0x17, 0x11, 0x35, 0x4a, 0xff, 0xde, 0x05, 0xf5, 0x99, 0x48, 0x84, 0x2c, 0x04, 0x9c, + 0x81, 0x86, 0xb6, 0xdb, 0x4c, 0x7e, 0x73, 0xf4, 0x06, 0x3f, 0xf9, 0x83, 0xf1, 0xbe, 0x9c, 0xff, + 0xdc, 0x46, 0x1f, 0xea, 0xd2, 0x43, 0xd4, 0xfe, 0xbe, 0xca, 0xe5, 0x7d, 0x70, 0x0c, 0xda, 0xa1, + 0x14, 0x9a, 0x09, 0x3d, 0x15, 0xa1, 0x8c, 0xb8, 0x88, 0xbd, 0xaa, 0xa9, 0xfa, 0xd2, 0xe6, 0xb5, + 0x27, 0x8f, 0x65, 0x7a, 0xce, 0xc3, 0xf7, 0xa0, 0x69, 0x47, 0xdb, 0xd5, 0x5e, 0xcd, 0xd8, 0x5f, + 0x58, 0x7b, 0x73, 0x72, 0x94, 0xe8, 0x29, 0xe7, 0x0f, 0x96, 0x1b, 0xe4, 0xac, 0x36, 0xc8, 0xb9, + 0xd9, 0x20, 0xe7, 0x5f, 0x89, 0xdc, 0x65, 0x89, 0xdc, 0x55, 0x89, 0xdc, 0xdb, 0x12, 0xb9, 0xff, + 0xef, 0x90, 0xf3, 0xbd, 0x6e, 0x8f, 0x7c, 0x08, 0x00, 0x00, 0xff, 0xff, 0x32, 0xc1, 0x73, 0x2d, + 0x94, 0x02, 0x00, 0x00, } diff --git a/vendor/k8s.io/client-go/1.5/pkg/runtime/helper.go b/vendor/k8s.io/client-go/pkg/runtime/helper.go similarity index 98% rename from vendor/k8s.io/client-go/1.5/pkg/runtime/helper.go rename to vendor/k8s.io/client-go/pkg/runtime/helper.go index 3c2c68325..3062109f7 100644 --- a/vendor/k8s.io/client-go/1.5/pkg/runtime/helper.go +++ b/vendor/k8s.io/client-go/pkg/runtime/helper.go @@ -21,9 +21,9 @@ import ( "io" "reflect" - "k8s.io/client-go/1.5/pkg/api/unversioned" - "k8s.io/client-go/1.5/pkg/conversion" - "k8s.io/client-go/1.5/pkg/util/errors" + "k8s.io/client-go/pkg/api/unversioned" + "k8s.io/client-go/pkg/conversion" + "k8s.io/client-go/pkg/util/errors" ) // unsafeObjectConvertor implements ObjectConvertor using the unsafe conversion path. diff --git a/vendor/k8s.io/client-go/1.5/pkg/runtime/interfaces.go b/vendor/k8s.io/client-go/pkg/runtime/interfaces.go similarity index 86% rename from vendor/k8s.io/client-go/1.5/pkg/runtime/interfaces.go rename to vendor/k8s.io/client-go/pkg/runtime/interfaces.go index caed60a2b..0315cac51 100644 --- a/vendor/k8s.io/client-go/1.5/pkg/runtime/interfaces.go +++ b/vendor/k8s.io/client-go/pkg/runtime/interfaces.go @@ -20,7 +20,7 @@ import ( "io" "net/url" - "k8s.io/client-go/1.5/pkg/api/unversioned" + "k8s.io/client-go/pkg/api/unversioned" ) const ( @@ -89,20 +89,28 @@ type Framer interface { // 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 + // EncodesAsText indicates this serializer can be encoded to UTF-8 safely. + EncodesAsText bool + // Serializer is the individual object serializer for this media type. + Serializer Serializer + // PrettySerializer, if set, can serialize this object in a form biased towards + // readability. + PrettySerializer Serializer + // StreamSerializer, if set, describes the streaming serialization format + // for this media type. + StreamSerializer *StreamSerializerInfo } // StreamSerializerInfo contains information about a specific stream serialization format type StreamSerializerInfo struct { - SerializerInfo + // EncodesAsText indicates this serializer can be encoded to UTF-8 safely. + EncodesAsText bool + // Serializer is the top level object serializer for this type when streaming + Serializer // 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 @@ -110,21 +118,7 @@ type StreamSerializerInfo struct { // 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) + SupportedMediaTypes() []SerializerInfo // EncoderForVersion returns an encoder that ensures objects being written to the provided // serializer are in the provided group version. @@ -138,9 +132,8 @@ type NegotiatedSerializer interface { // 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) + // SupportedMediaTypes are the media types supported for reading and writing objects. + SupportedMediaTypes() []SerializerInfo // UniversalDeserializer returns a Serializer that can read objects in multiple supported formats // by introspecting the data at rest. @@ -169,6 +162,12 @@ type NestedObjectDecoder interface { /////////////////////////////////////////////////////////////////////////////// // Non-codec interfaces +type ObjectDefaulter interface { + // Default takes an object (must be a pointer) and applies any default values. + // Defaulters may not error. + Default(in Object) +} + type ObjectVersioner interface { ConvertToVersion(in Object, gv GroupVersioner) (out Object, err error) } diff --git a/vendor/k8s.io/client-go/1.5/pkg/runtime/register.go b/vendor/k8s.io/client-go/pkg/runtime/register.go similarity index 98% rename from vendor/k8s.io/client-go/1.5/pkg/runtime/register.go rename to vendor/k8s.io/client-go/pkg/runtime/register.go index 7515b795e..66f664fa0 100644 --- a/vendor/k8s.io/client-go/1.5/pkg/runtime/register.go +++ b/vendor/k8s.io/client-go/pkg/runtime/register.go @@ -17,7 +17,7 @@ limitations under the License. package runtime import ( - "k8s.io/client-go/1.5/pkg/api/unversioned" + "k8s.io/client-go/pkg/api/unversioned" ) // SetGroupVersionKind satisfies the ObjectKind interface for all objects that embed TypeMeta diff --git a/vendor/k8s.io/client-go/1.5/pkg/runtime/scheme.go b/vendor/k8s.io/client-go/pkg/runtime/scheme.go similarity index 93% rename from vendor/k8s.io/client-go/1.5/pkg/runtime/scheme.go rename to vendor/k8s.io/client-go/pkg/runtime/scheme.go index 51eb10a8f..b191e5fb4 100644 --- a/vendor/k8s.io/client-go/1.5/pkg/runtime/scheme.go +++ b/vendor/k8s.io/client-go/pkg/runtime/scheme.go @@ -21,8 +21,8 @@ import ( "net/url" "reflect" - "k8s.io/client-go/1.5/pkg/api/unversioned" - "k8s.io/client-go/1.5/pkg/conversion" + "k8s.io/client-go/pkg/api/unversioned" + "k8s.io/client-go/pkg/conversion" ) // Scheme defines methods for serializing and deserializing API objects, a type @@ -61,6 +61,10 @@ type Scheme struct { // resource field labels in that version to internal version. fieldLabelConversionFuncs map[string]map[string]FieldLabelConversionFunc + // defaulterFuncs is an array of interfaces to be called with an object to provide defaulting + // the provided object must be a pointer. + defaulterFuncs map[reflect.Type]func(interface{}) + // converter stores all registered conversion functions. It also has // default coverting behavior. converter *conversion.Converter @@ -82,6 +86,7 @@ func NewScheme() *Scheme { unversionedKinds: map[string]reflect.Type{}, cloner: conversion.NewCloner(), fieldLabelConversionFuncs: map[string]map[string]FieldLabelConversionFunc{}, + defaulterFuncs: map[reflect.Type]func(interface{}){}, } s.converter = conversion.NewConverter(s.nameFunc) @@ -421,6 +426,22 @@ func (s *Scheme) AddDefaultingFuncs(defaultingFuncs ...interface{}) error { return nil } +// AddTypeDefaultingFuncs registers a function that is passed a pointer to an +// object and can default fields on the object. These functions will be invoked +// when Default() is called. The function will never be called unless the +// defaulted object matches srcType. If this function is invoked twice with the +// same srcType, the fn passed to the later call will be used instead. +func (s *Scheme) AddTypeDefaultingFunc(srcType Object, fn func(interface{})) { + s.defaulterFuncs[reflect.TypeOf(srcType)] = fn +} + +// Default sets defaults on the provided Object. +func (s *Scheme) Default(src Object) { + if fn, ok := s.defaulterFuncs[reflect.TypeOf(src)]; ok { + fn(src) + } +} + // Copy does a deep copy of an API object. func (s *Scheme) Copy(src Object) (Object, error) { dst, err := s.DeepCopy(src) @@ -498,6 +519,15 @@ func (s *Scheme) convertToVersion(copy bool, in Object, target GroupVersioner) ( gvk, ok := target.KindForGroupVersionKinds(kinds) if !ok { + // try to see if this type is listed as unversioned (for legacy support) + // TODO: when we move to server API versions, we should completely remove the unversioned concept + if unversionedKind, ok := s.unversionedTypes[t]; ok { + if gvk, ok := target.KindForGroupVersionKinds([]unversioned.GroupVersionKind{unversionedKind}); ok { + return copyAndSetTargetKind(copy, s, in, gvk) + } + return copyAndSetTargetKind(copy, s, in, unversionedKind) + } + // TODO: should this be a typed error? return nil, fmt.Errorf("%v is not suitable for converting to %q", t, target) } diff --git a/vendor/k8s.io/client-go/1.5/pkg/runtime/scheme_builder.go b/vendor/k8s.io/client-go/pkg/runtime/scheme_builder.go similarity index 100% rename from vendor/k8s.io/client-go/1.5/pkg/runtime/scheme_builder.go rename to vendor/k8s.io/client-go/pkg/runtime/scheme_builder.go diff --git a/vendor/k8s.io/client-go/1.5/pkg/runtime/serializer/codec_factory.go b/vendor/k8s.io/client-go/pkg/runtime/serializer/codec_factory.go similarity index 56% rename from vendor/k8s.io/client-go/1.5/pkg/runtime/serializer/codec_factory.go rename to vendor/k8s.io/client-go/pkg/runtime/serializer/codec_factory.go index 6d0c9f046..69f56bb61 100644 --- a/vendor/k8s.io/client-go/1.5/pkg/runtime/serializer/codec_factory.go +++ b/vendor/k8s.io/client-go/pkg/runtime/serializer/codec_factory.go @@ -17,11 +17,11 @@ limitations under the License. package serializer import ( - "k8s.io/client-go/1.5/pkg/api/unversioned" - "k8s.io/client-go/1.5/pkg/runtime" - "k8s.io/client-go/1.5/pkg/runtime/serializer/json" - "k8s.io/client-go/1.5/pkg/runtime/serializer/recognizer" - "k8s.io/client-go/1.5/pkg/runtime/serializer/versioning" + "k8s.io/client-go/pkg/api/unversioned" + "k8s.io/client-go/pkg/runtime" + "k8s.io/client-go/pkg/runtime/serializer/json" + "k8s.io/client-go/pkg/runtime/serializer/recognizer" + "k8s.io/client-go/pkg/runtime/serializer/versioning" ) // serializerExtensions are for serializers that are conditionally compiled in @@ -36,25 +36,12 @@ type serializerType struct { 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 { @@ -71,10 +58,8 @@ func newSerializersForScheme(scheme *runtime.Scheme, mf json.MetaFactory) []seri Serializer: jsonSerializer, PrettySerializer: jsonPrettySerializer, - AcceptStreamContentTypes: []string{"application/json", "application/json;stream=watch"}, - StreamContentType: "application/json", - Framer: json.Framer, - StreamSerializer: jsonSerializer, + Framer: json.Framer, + StreamSerializer: jsonSerializer, }, { AcceptContentTypes: []string{"application/yaml"}, @@ -82,13 +67,6 @@ func newSerializersForScheme(scheme *runtime.Scheme, mf json.MetaFactory) []seri 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, }, } @@ -103,11 +81,10 @@ func newSerializersForScheme(scheme *runtime.Scheme, mf json.MetaFactory) []seri // 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 + scheme *runtime.Scheme + serializers []serializerType + universal runtime.Decoder + accepts []runtime.SerializerInfo legacySerializer runtime.Serializer } @@ -126,7 +103,7 @@ func NewCodecFactory(scheme *runtime.Scheme) CodecFactory { // 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{} + var accepts []runtime.SerializerInfo alreadyAccepted := make(map[string]struct{}) var legacySerializer runtime.Serializer @@ -137,8 +114,21 @@ func newCodecFactory(scheme *runtime.Scheme, serializers []serializerType) Codec continue } alreadyAccepted[mediaType] = struct{}{} - accepts = append(accepts, mediaType) - if mediaType == "application/json" { + info := runtime.SerializerInfo{ + MediaType: d.ContentType, + EncodesAsText: d.EncodesAsText, + Serializer: d.Serializer, + PrettySerializer: d.PrettySerializer, + } + if d.StreamSerializer != nil { + info.StreamSerializer = &runtime.StreamSerializerInfo{ + Serializer: d.StreamSerializer, + EncodesAsText: d.EncodesAsText, + Framer: d.Framer, + } + } + accepts = append(accepts, info) + if mediaType == runtime.ContentTypeJSON { legacySerializer = d.Serializer } } @@ -147,45 +137,22 @@ func newCodecFactory(scheme *runtime.Scheme, serializers []serializerType) Codec 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, + accepts: accepts, legacySerializer: legacySerializer, } } -var _ runtime.NegotiatedSerializer = &CodecFactory{} - // SupportedMediaTypes returns the RFC2046 media types that this factory has serializers for. -func (f CodecFactory) SupportedMediaTypes() []string { +func (f CodecFactory) SupportedMediaTypes() []runtime.SerializerInfo { 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 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. @@ -196,7 +163,7 @@ func (f CodecFactory) SupportedStreamingMediaTypes() []string { // 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, unversioned.GroupVersions(version), runtime.InternalGroupVersioner) + return versioning.NewDefaultingCodecForScheme(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 @@ -235,7 +202,7 @@ func (f CodecFactory) CodecForVersions(encoder runtime.Encoder, decoder runtime. if decode == nil { decode = runtime.InternalGroupVersioner } - return versioning.NewCodecForScheme(f.scheme, encoder, decoder, encode, decode) + return versioning.NewDefaultingCodecForScheme(f.scheme, encoder, decoder, encode, decode) } // DecoderToVersion returns a decoder that targets the provided group version. @@ -248,85 +215,6 @@ func (f CodecFactory) EncoderForVersion(encoder runtime.Encoder, gv runtime.Grou return f.CodecForVersions(encoder, nil, 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 diff --git a/vendor/k8s.io/client-go/1.5/pkg/runtime/serializer/json/json.go b/vendor/k8s.io/client-go/pkg/runtime/serializer/json/json.go similarity index 97% rename from vendor/k8s.io/client-go/1.5/pkg/runtime/serializer/json/json.go rename to vendor/k8s.io/client-go/pkg/runtime/serializer/json/json.go index 513f6d969..2f2f69fbb 100644 --- a/vendor/k8s.io/client-go/1.5/pkg/runtime/serializer/json/json.go +++ b/vendor/k8s.io/client-go/pkg/runtime/serializer/json/json.go @@ -23,11 +23,11 @@ import ( "github.com/ghodss/yaml" "github.com/ugorji/go/codec" - "k8s.io/client-go/1.5/pkg/api/unversioned" - "k8s.io/client-go/1.5/pkg/runtime" - "k8s.io/client-go/1.5/pkg/runtime/serializer/recognizer" - "k8s.io/client-go/1.5/pkg/util/framer" - utilyaml "k8s.io/client-go/1.5/pkg/util/yaml" + "k8s.io/client-go/pkg/api/unversioned" + "k8s.io/client-go/pkg/runtime" + "k8s.io/client-go/pkg/runtime/serializer/recognizer" + "k8s.io/client-go/pkg/util/framer" + utilyaml "k8s.io/client-go/pkg/util/yaml" ) // NewSerializer creates a JSON serializer that handles encoding versioned objects into the proper JSON form. If typer diff --git a/vendor/k8s.io/client-go/1.5/pkg/runtime/serializer/json/meta.go b/vendor/k8s.io/client-go/pkg/runtime/serializer/json/meta.go similarity index 95% rename from vendor/k8s.io/client-go/1.5/pkg/runtime/serializer/json/meta.go rename to vendor/k8s.io/client-go/pkg/runtime/serializer/json/meta.go index d9dacf437..325df63d3 100644 --- a/vendor/k8s.io/client-go/1.5/pkg/runtime/serializer/json/meta.go +++ b/vendor/k8s.io/client-go/pkg/runtime/serializer/json/meta.go @@ -20,7 +20,7 @@ import ( "encoding/json" "fmt" - "k8s.io/client-go/1.5/pkg/api/unversioned" + "k8s.io/client-go/pkg/api/unversioned" ) // MetaFactory is used to store and retrieve the version and kind @@ -47,8 +47,10 @@ type SimpleMetaFactory struct { // encoding of an object, or an error. func (SimpleMetaFactory) Interpret(data []byte) (*unversioned.GroupVersionKind, error) { findKind := struct { + // +optional APIVersion string `json:"apiVersion,omitempty"` - Kind string `json:"kind,omitempty"` + // +optional + 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) diff --git a/vendor/k8s.io/client-go/pkg/runtime/serializer/negotiated_codec.go b/vendor/k8s.io/client-go/pkg/runtime/serializer/negotiated_codec.go new file mode 100644 index 000000000..95e3dd3a5 --- /dev/null +++ b/vendor/k8s.io/client-go/pkg/runtime/serializer/negotiated_codec.go @@ -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. +*/ + +package serializer + +import ( + "k8s.io/client-go/pkg/runtime" +) + +// TODO: We should split negotiated serializers that we can change versions on from those we can change +// serialization formats on +type negotiatedSerializerWrapper struct { + info runtime.SerializerInfo +} + +func NegotiatedSerializerWrapper(info runtime.SerializerInfo) runtime.NegotiatedSerializer { + return &negotiatedSerializerWrapper{info} +} + +func (n *negotiatedSerializerWrapper) SupportedMediaTypes() []runtime.SerializerInfo { + return []runtime.SerializerInfo{n.info} +} + +func (n *negotiatedSerializerWrapper) EncoderForVersion(e runtime.Encoder, _ runtime.GroupVersioner) runtime.Encoder { + return e +} + +func (n *negotiatedSerializerWrapper) DecoderToVersion(d runtime.Decoder, _gv runtime.GroupVersioner) runtime.Decoder { + return d +} diff --git a/vendor/k8s.io/client-go/1.5/pkg/runtime/serializer/protobuf/doc.go b/vendor/k8s.io/client-go/pkg/runtime/serializer/protobuf/doc.go similarity index 100% rename from vendor/k8s.io/client-go/1.5/pkg/runtime/serializer/protobuf/doc.go rename to vendor/k8s.io/client-go/pkg/runtime/serializer/protobuf/doc.go diff --git a/vendor/k8s.io/client-go/1.5/pkg/runtime/serializer/protobuf/protobuf.go b/vendor/k8s.io/client-go/pkg/runtime/serializer/protobuf/protobuf.go similarity index 98% rename from vendor/k8s.io/client-go/1.5/pkg/runtime/serializer/protobuf/protobuf.go rename to vendor/k8s.io/client-go/pkg/runtime/serializer/protobuf/protobuf.go index b64bf62f4..0118828ee 100644 --- a/vendor/k8s.io/client-go/1.5/pkg/runtime/serializer/protobuf/protobuf.go +++ b/vendor/k8s.io/client-go/pkg/runtime/serializer/protobuf/protobuf.go @@ -24,10 +24,10 @@ import ( "github.com/gogo/protobuf/proto" - "k8s.io/client-go/1.5/pkg/api/unversioned" - "k8s.io/client-go/1.5/pkg/runtime" - "k8s.io/client-go/1.5/pkg/runtime/serializer/recognizer" - "k8s.io/client-go/1.5/pkg/util/framer" + "k8s.io/client-go/pkg/api/unversioned" + "k8s.io/client-go/pkg/runtime" + "k8s.io/client-go/pkg/runtime/serializer/recognizer" + "k8s.io/client-go/pkg/util/framer" ) var ( diff --git a/vendor/k8s.io/client-go/1.5/pkg/runtime/serializer/protobuf_extension.go b/vendor/k8s.io/client-go/pkg/runtime/serializer/protobuf_extension.go similarity index 74% rename from vendor/k8s.io/client-go/1.5/pkg/runtime/serializer/protobuf_extension.go rename to vendor/k8s.io/client-go/pkg/runtime/serializer/protobuf_extension.go index c47383b99..fa525a372 100644 --- a/vendor/k8s.io/client-go/1.5/pkg/runtime/serializer/protobuf_extension.go +++ b/vendor/k8s.io/client-go/pkg/runtime/serializer/protobuf_extension.go @@ -17,8 +17,8 @@ limitations under the License. package serializer import ( - "k8s.io/client-go/1.5/pkg/runtime" - "k8s.io/client-go/1.5/pkg/runtime/serializer/protobuf" + "k8s.io/client-go/pkg/runtime" + "k8s.io/client-go/pkg/runtime/serializer/protobuf" ) const ( @@ -26,8 +26,7 @@ const ( // 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" + contentTypeProtobuf = "application/vnd.kubernetes.protobuf" ) func protobufSerializer(scheme *runtime.Scheme) (serializerType, bool) { @@ -38,12 +37,9 @@ func protobufSerializer(scheme *runtime.Scheme) (serializerType, bool) { ContentType: contentTypeProtobuf, FileExtensions: []string{"pb"}, Serializer: serializer, - RawSerializer: raw, - AcceptStreamContentTypes: []string{contentTypeProtobuf, contentTypeProtobufWatch}, - StreamContentType: contentTypeProtobufWatch, - Framer: protobuf.LengthDelimitedFramer, - StreamSerializer: raw, + Framer: protobuf.LengthDelimitedFramer, + StreamSerializer: raw, }, true } diff --git a/vendor/k8s.io/client-go/1.5/pkg/runtime/serializer/recognizer/recognizer.go b/vendor/k8s.io/client-go/pkg/runtime/serializer/recognizer/recognizer.go similarity index 97% rename from vendor/k8s.io/client-go/1.5/pkg/runtime/serializer/recognizer/recognizer.go rename to vendor/k8s.io/client-go/pkg/runtime/serializer/recognizer/recognizer.go index bc29015ca..54d978fb3 100644 --- a/vendor/k8s.io/client-go/1.5/pkg/runtime/serializer/recognizer/recognizer.go +++ b/vendor/k8s.io/client-go/pkg/runtime/serializer/recognizer/recognizer.go @@ -22,8 +22,8 @@ import ( "fmt" "io" - "k8s.io/client-go/1.5/pkg/api/unversioned" - "k8s.io/client-go/1.5/pkg/runtime" + "k8s.io/client-go/pkg/api/unversioned" + "k8s.io/client-go/pkg/runtime" ) type RecognizingDecoder interface { diff --git a/vendor/k8s.io/client-go/1.5/pkg/runtime/serializer/streaming/streaming.go b/vendor/k8s.io/client-go/pkg/runtime/serializer/streaming/streaming.go similarity index 97% rename from vendor/k8s.io/client-go/1.5/pkg/runtime/serializer/streaming/streaming.go rename to vendor/k8s.io/client-go/pkg/runtime/serializer/streaming/streaming.go index ffdcf2e26..9b91f1ba8 100644 --- a/vendor/k8s.io/client-go/1.5/pkg/runtime/serializer/streaming/streaming.go +++ b/vendor/k8s.io/client-go/pkg/runtime/serializer/streaming/streaming.go @@ -23,8 +23,8 @@ import ( "fmt" "io" - "k8s.io/client-go/1.5/pkg/api/unversioned" - "k8s.io/client-go/1.5/pkg/runtime" + "k8s.io/client-go/pkg/api/unversioned" + "k8s.io/client-go/pkg/runtime" ) // Encoder is a runtime.Encoder on a stream. diff --git a/vendor/k8s.io/client-go/1.5/pkg/runtime/serializer/versioning/versioning.go b/vendor/k8s.io/client-go/pkg/runtime/serializer/versioning/versioning.go similarity index 82% rename from vendor/k8s.io/client-go/1.5/pkg/runtime/serializer/versioning/versioning.go rename to vendor/k8s.io/client-go/pkg/runtime/serializer/versioning/versioning.go index 310d1aa91..386397f08 100644 --- a/vendor/k8s.io/client-go/1.5/pkg/runtime/serializer/versioning/versioning.go +++ b/vendor/k8s.io/client-go/pkg/runtime/serializer/versioning/versioning.go @@ -19,8 +19,9 @@ package versioning import ( "io" - "k8s.io/client-go/1.5/pkg/api/unversioned" - "k8s.io/client-go/1.5/pkg/runtime" + "k8s.io/client-go/pkg/api/unversioned" + "k8s.io/client-go/pkg/runtime" + utilruntime "k8s.io/client-go/pkg/util/runtime" ) // NewCodecForScheme is a convenience method for callers that are using a scheme. @@ -32,7 +33,19 @@ func NewCodecForScheme( encodeVersion runtime.GroupVersioner, decodeVersion runtime.GroupVersioner, ) runtime.Codec { - return NewCodec(encoder, decoder, runtime.UnsafeObjectConvertor(scheme), scheme, scheme, scheme, encodeVersion, decodeVersion) + return NewCodec(encoder, decoder, runtime.UnsafeObjectConvertor(scheme), scheme, scheme, scheme, nil, encodeVersion, decodeVersion) +} + +// NewDefaultingCodecForScheme is a convenience method for callers that are using a scheme. +func NewDefaultingCodecForScheme( + // TODO: I should be a scheme interface? + scheme *runtime.Scheme, + encoder runtime.Encoder, + decoder runtime.Decoder, + encodeVersion runtime.GroupVersioner, + decodeVersion runtime.GroupVersioner, +) runtime.Codec { + return NewCodec(encoder, decoder, runtime.UnsafeObjectConvertor(scheme), scheme, scheme, scheme, scheme, encodeVersion, decodeVersion) } // NewCodec takes objects in their internal versions and converts them to external versions before @@ -45,6 +58,7 @@ func NewCodec( creater runtime.ObjectCreater, copier runtime.ObjectCopier, typer runtime.ObjectTyper, + defaulter runtime.ObjectDefaulter, encodeVersion runtime.GroupVersioner, decodeVersion runtime.GroupVersioner, ) runtime.Codec { @@ -55,6 +69,7 @@ func NewCodec( creater: creater, copier: copier, typer: typer, + defaulter: defaulter, encodeVersion: encodeVersion, decodeVersion: decodeVersion, @@ -69,6 +84,7 @@ type codec struct { creater runtime.ObjectCreater copier runtime.ObjectCopier typer runtime.ObjectTyper + defaulter runtime.ObjectDefaulter encodeVersion runtime.GroupVersioner decodeVersion runtime.GroupVersioner @@ -102,11 +118,31 @@ func (c *codec) Decode(data []byte, defaultGVK *unversioned.GroupVersionKind, in } return into, gvk, nil } + + // perform defaulting if requested + if c.defaulter != nil { + // create a copy to ensure defaulting is not applied to the original versioned objects + if isVersioned { + copied, err := c.copier.Copy(obj) + if err != nil { + utilruntime.HandleError(err) + copied = obj + } + versioned.Objects = []runtime.Object{copied} + } + c.defaulter.Default(obj) + } else { + if isVersioned { + versioned.Objects = []runtime.Object{obj} + } + } + if err := c.convertor.Convert(obj, into, c.decodeVersion); err != nil { return nil, gvk, err } + if isVersioned { - versioned.Objects = []runtime.Object{obj, into} + versioned.Objects = append(versioned.Objects, into) return versioned, gvk, nil } return into, gvk, nil @@ -117,10 +153,17 @@ func (c *codec) Decode(data []byte, defaultGVK *unversioned.GroupVersionKind, in // create a copy, because ConvertToVersion does not guarantee non-mutation of objects copied, err := c.copier.Copy(obj) if err != nil { + utilruntime.HandleError(err) copied = obj } versioned.Objects = []runtime.Object{copied} } + + // perform defaulting if requested + if c.defaulter != nil { + c.defaulter.Default(obj) + } + out, err := c.convertor.ConvertToVersion(obj, c.decodeVersion) if err != nil { return nil, gvk, err diff --git a/vendor/k8s.io/client-go/1.5/pkg/runtime/swagger_doc_generator.go b/vendor/k8s.io/client-go/pkg/runtime/swagger_doc_generator.go similarity index 100% rename from vendor/k8s.io/client-go/1.5/pkg/runtime/swagger_doc_generator.go rename to vendor/k8s.io/client-go/pkg/runtime/swagger_doc_generator.go diff --git a/vendor/k8s.io/client-go/1.5/pkg/runtime/types.go b/vendor/k8s.io/client-go/pkg/runtime/types.go similarity index 97% rename from vendor/k8s.io/client-go/1.5/pkg/runtime/types.go rename to vendor/k8s.io/client-go/pkg/runtime/types.go index 2ac265ccd..ceffdd9f7 100644 --- a/vendor/k8s.io/client-go/1.5/pkg/runtime/types.go +++ b/vendor/k8s.io/client-go/pkg/runtime/types.go @@ -34,8 +34,10 @@ package runtime // +protobuf=true // +k8s:openapi-gen=true type TypeMeta struct { + // +optional 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"` + // +optional + Kind string `json:"kind,omitempty" yaml:"kind,omitempty" protobuf:"bytes,2,opt,name=kind"` } const ( diff --git a/vendor/k8s.io/client-go/1.5/pkg/runtime/types_proto.go b/vendor/k8s.io/client-go/pkg/runtime/types_proto.go similarity index 100% rename from vendor/k8s.io/client-go/1.5/pkg/runtime/types_proto.go rename to vendor/k8s.io/client-go/pkg/runtime/types_proto.go diff --git a/vendor/k8s.io/client-go/1.5/pkg/runtime/unstructured.go b/vendor/k8s.io/client-go/pkg/runtime/unstructured.go similarity index 99% rename from vendor/k8s.io/client-go/1.5/pkg/runtime/unstructured.go rename to vendor/k8s.io/client-go/pkg/runtime/unstructured.go index 54b38ddb3..a15208c51 100644 --- a/vendor/k8s.io/client-go/1.5/pkg/runtime/unstructured.go +++ b/vendor/k8s.io/client-go/pkg/runtime/unstructured.go @@ -26,10 +26,10 @@ import ( "github.com/golang/glog" - "k8s.io/client-go/1.5/pkg/api/meta/metatypes" - "k8s.io/client-go/1.5/pkg/api/unversioned" - "k8s.io/client-go/1.5/pkg/types" - "k8s.io/client-go/1.5/pkg/util/json" + "k8s.io/client-go/pkg/api/meta/metatypes" + "k8s.io/client-go/pkg/api/unversioned" + "k8s.io/client-go/pkg/types" + "k8s.io/client-go/pkg/util/json" ) // MarshalJSON ensures that the unstructured object produces proper diff --git a/vendor/k8s.io/client-go/1.5/pkg/runtime/zz_generated.deepcopy.go b/vendor/k8s.io/client-go/pkg/runtime/zz_generated.deepcopy.go similarity index 95% rename from vendor/k8s.io/client-go/1.5/pkg/runtime/zz_generated.deepcopy.go rename to vendor/k8s.io/client-go/pkg/runtime/zz_generated.deepcopy.go index c9f30ba2b..f8e5f3436 100644 --- a/vendor/k8s.io/client-go/1.5/pkg/runtime/zz_generated.deepcopy.go +++ b/vendor/k8s.io/client-go/pkg/runtime/zz_generated.deepcopy.go @@ -1,7 +1,7 @@ // +build !ignore_autogenerated /* -Copyright 2016 The Kubernetes Authors. +Copyright 2017 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -21,7 +21,7 @@ limitations under the License. package runtime import ( - conversion "k8s.io/client-go/1.5/pkg/conversion" + conversion "k8s.io/client-go/pkg/conversion" ) func DeepCopy_runtime_RawExtension(in interface{}, out interface{}, c *conversion.Cloner) error { diff --git a/vendor/k8s.io/client-go/1.5/pkg/selection/operator.go b/vendor/k8s.io/client-go/pkg/selection/operator.go similarity index 100% rename from vendor/k8s.io/client-go/1.5/pkg/selection/operator.go rename to vendor/k8s.io/client-go/pkg/selection/operator.go diff --git a/vendor/k8s.io/client-go/1.5/pkg/third_party/forked/golang/reflect/deep_equal.go b/vendor/k8s.io/client-go/pkg/third_party/forked/golang/reflect/deep_equal.go similarity index 100% rename from vendor/k8s.io/client-go/1.5/pkg/third_party/forked/golang/reflect/deep_equal.go rename to vendor/k8s.io/client-go/pkg/third_party/forked/golang/reflect/deep_equal.go diff --git a/vendor/k8s.io/client-go/1.5/pkg/third_party/forked/golang/reflect/type.go b/vendor/k8s.io/client-go/pkg/third_party/forked/golang/reflect/type.go similarity index 100% rename from vendor/k8s.io/client-go/1.5/pkg/third_party/forked/golang/reflect/type.go rename to vendor/k8s.io/client-go/pkg/third_party/forked/golang/reflect/type.go diff --git a/vendor/k8s.io/client-go/pkg/third_party/forked/golang/template/exec.go b/vendor/k8s.io/client-go/pkg/third_party/forked/golang/template/exec.go new file mode 100644 index 000000000..739fd3509 --- /dev/null +++ b/vendor/k8s.io/client-go/pkg/third_party/forked/golang/template/exec.go @@ -0,0 +1,94 @@ +//This package is copied from Go library text/template. +//The original private functions indirect and printableValue +//are exported as public functions. +package template + +import ( + "fmt" + "reflect" +) + +var Indirect = indirect +var PrintableValue = printableValue + +var ( + errorType = reflect.TypeOf((*error)(nil)).Elem() + fmtStringerType = reflect.TypeOf((*fmt.Stringer)(nil)).Elem() +) + +// indirect returns the item at the end of indirection, and a bool to indicate if it's nil. +// We indirect through pointers and empty interfaces (only) because +// non-empty interfaces have methods we might need. +func indirect(v reflect.Value) (rv reflect.Value, isNil bool) { + for ; v.Kind() == reflect.Ptr || v.Kind() == reflect.Interface; v = v.Elem() { + if v.IsNil() { + return v, true + } + if v.Kind() == reflect.Interface && v.NumMethod() > 0 { + break + } + } + return v, false +} + +// printableValue returns the, possibly indirected, interface value inside v that +// is best for a call to formatted printer. +func printableValue(v reflect.Value) (interface{}, bool) { + if v.Kind() == reflect.Ptr { + v, _ = indirect(v) // fmt.Fprint handles nil. + } + if !v.IsValid() { + return "", true + } + + if !v.Type().Implements(errorType) && !v.Type().Implements(fmtStringerType) { + if v.CanAddr() && (reflect.PtrTo(v.Type()).Implements(errorType) || reflect.PtrTo(v.Type()).Implements(fmtStringerType)) { + v = v.Addr() + } else { + switch v.Kind() { + case reflect.Chan, reflect.Func: + return nil, false + } + } + } + return v.Interface(), true +} + +// canBeNil reports whether an untyped nil can be assigned to the type. See reflect.Zero. +func canBeNil(typ reflect.Type) bool { + switch typ.Kind() { + case reflect.Chan, reflect.Func, reflect.Interface, reflect.Map, reflect.Ptr, reflect.Slice: + return true + } + return false +} + +// isTrue reports whether the value is 'true', in the sense of not the zero of its type, +// and whether the value has a meaningful truth value. +func isTrue(val reflect.Value) (truth, ok bool) { + if !val.IsValid() { + // Something like var x interface{}, never set. It's a form of nil. + return false, true + } + switch val.Kind() { + case reflect.Array, reflect.Map, reflect.Slice, reflect.String: + truth = val.Len() > 0 + case reflect.Bool: + truth = val.Bool() + case reflect.Complex64, reflect.Complex128: + truth = val.Complex() != 0 + case reflect.Chan, reflect.Func, reflect.Ptr, reflect.Interface: + truth = !val.IsNil() + case reflect.Int, reflect.Int8, reflect.Int16, reflect.Int32, reflect.Int64: + truth = val.Int() != 0 + case reflect.Float32, reflect.Float64: + truth = val.Float() != 0 + case reflect.Uint, reflect.Uint8, reflect.Uint16, reflect.Uint32, reflect.Uint64, reflect.Uintptr: + truth = val.Uint() != 0 + case reflect.Struct: + truth = true // Struct values are always true. + default: + return + } + return truth, true +} diff --git a/vendor/k8s.io/client-go/pkg/third_party/forked/golang/template/funcs.go b/vendor/k8s.io/client-go/pkg/third_party/forked/golang/template/funcs.go new file mode 100644 index 000000000..27a008b0a --- /dev/null +++ b/vendor/k8s.io/client-go/pkg/third_party/forked/golang/template/funcs.go @@ -0,0 +1,599 @@ +//This package is copied from Go library text/template. +//The original private functions eq, ge, gt, le, lt, and ne +//are exported as public functions. +package template + +import ( + "bytes" + "errors" + "fmt" + "io" + "net/url" + "reflect" + "strings" + "unicode" + "unicode/utf8" +) + +var Equal = eq +var GreaterEqual = ge +var Greater = gt +var LessEqual = le +var Less = lt +var NotEqual = ne + +// FuncMap is the type of the map defining the mapping from names to functions. +// Each function must have either a single return value, or two return values of +// which the second has type error. In that case, if the second (error) +// return value evaluates to non-nil during execution, execution terminates and +// Execute returns that error. +type FuncMap map[string]interface{} + +var builtins = FuncMap{ + "and": and, + "call": call, + "html": HTMLEscaper, + "index": index, + "js": JSEscaper, + "len": length, + "not": not, + "or": or, + "print": fmt.Sprint, + "printf": fmt.Sprintf, + "println": fmt.Sprintln, + "urlquery": URLQueryEscaper, + + // Comparisons + "eq": eq, // == + "ge": ge, // >= + "gt": gt, // > + "le": le, // <= + "lt": lt, // < + "ne": ne, // != +} + +var builtinFuncs = createValueFuncs(builtins) + +// createValueFuncs turns a FuncMap into a map[string]reflect.Value +func createValueFuncs(funcMap FuncMap) map[string]reflect.Value { + m := make(map[string]reflect.Value) + addValueFuncs(m, funcMap) + return m +} + +// addValueFuncs adds to values the functions in funcs, converting them to reflect.Values. +func addValueFuncs(out map[string]reflect.Value, in FuncMap) { + for name, fn := range in { + v := reflect.ValueOf(fn) + if v.Kind() != reflect.Func { + panic("value for " + name + " not a function") + } + if !goodFunc(v.Type()) { + panic(fmt.Errorf("can't install method/function %q with %d results", name, v.Type().NumOut())) + } + out[name] = v + } +} + +// AddFuncs adds to values the functions in funcs. It does no checking of the input - +// call addValueFuncs first. +func addFuncs(out, in FuncMap) { + for name, fn := range in { + out[name] = fn + } +} + +// goodFunc checks that the function or method has the right result signature. +func goodFunc(typ reflect.Type) bool { + // We allow functions with 1 result or 2 results where the second is an error. + switch { + case typ.NumOut() == 1: + return true + case typ.NumOut() == 2 && typ.Out(1) == errorType: + return true + } + return false +} + +// findFunction looks for a function in the template, and global map. +func findFunction(name string) (reflect.Value, bool) { + if fn := builtinFuncs[name]; fn.IsValid() { + return fn, true + } + return reflect.Value{}, false +} + +// Indexing. + +// index returns the result of indexing its first argument by the following +// arguments. Thus "index x 1 2 3" is, in Go syntax, x[1][2][3]. Each +// indexed item must be a map, slice, or array. +func index(item interface{}, indices ...interface{}) (interface{}, error) { + v := reflect.ValueOf(item) + for _, i := range indices { + index := reflect.ValueOf(i) + var isNil bool + if v, isNil = indirect(v); isNil { + return nil, fmt.Errorf("index of nil pointer") + } + switch v.Kind() { + case reflect.Array, reflect.Slice, reflect.String: + var x int64 + switch index.Kind() { + case reflect.Int, reflect.Int8, reflect.Int16, reflect.Int32, reflect.Int64: + x = index.Int() + case reflect.Uint, reflect.Uint8, reflect.Uint16, reflect.Uint32, reflect.Uint64, reflect.Uintptr: + x = int64(index.Uint()) + default: + return nil, fmt.Errorf("cannot index slice/array with type %s", index.Type()) + } + if x < 0 || x >= int64(v.Len()) { + return nil, fmt.Errorf("index out of range: %d", x) + } + v = v.Index(int(x)) + case reflect.Map: + if !index.IsValid() { + index = reflect.Zero(v.Type().Key()) + } + if !index.Type().AssignableTo(v.Type().Key()) { + return nil, fmt.Errorf("%s is not index type for %s", index.Type(), v.Type()) + } + if x := v.MapIndex(index); x.IsValid() { + v = x + } else { + v = reflect.Zero(v.Type().Elem()) + } + default: + return nil, fmt.Errorf("can't index item of type %s", v.Type()) + } + } + return v.Interface(), nil +} + +// Length + +// length returns the length of the item, with an error if it has no defined length. +func length(item interface{}) (int, error) { + v, isNil := indirect(reflect.ValueOf(item)) + if isNil { + return 0, fmt.Errorf("len of nil pointer") + } + switch v.Kind() { + case reflect.Array, reflect.Chan, reflect.Map, reflect.Slice, reflect.String: + return v.Len(), nil + } + return 0, fmt.Errorf("len of type %s", v.Type()) +} + +// Function invocation + +// call returns the result of evaluating the first argument as a function. +// The function must return 1 result, or 2 results, the second of which is an error. +func call(fn interface{}, args ...interface{}) (interface{}, error) { + v := reflect.ValueOf(fn) + typ := v.Type() + if typ.Kind() != reflect.Func { + return nil, fmt.Errorf("non-function of type %s", typ) + } + if !goodFunc(typ) { + return nil, fmt.Errorf("function called with %d args; should be 1 or 2", typ.NumOut()) + } + numIn := typ.NumIn() + var dddType reflect.Type + if typ.IsVariadic() { + if len(args) < numIn-1 { + return nil, fmt.Errorf("wrong number of args: got %d want at least %d", len(args), numIn-1) + } + dddType = typ.In(numIn - 1).Elem() + } else { + if len(args) != numIn { + return nil, fmt.Errorf("wrong number of args: got %d want %d", len(args), numIn) + } + } + argv := make([]reflect.Value, len(args)) + for i, arg := range args { + value := reflect.ValueOf(arg) + // Compute the expected type. Clumsy because of variadics. + var argType reflect.Type + if !typ.IsVariadic() || i < numIn-1 { + argType = typ.In(i) + } else { + argType = dddType + } + if !value.IsValid() && canBeNil(argType) { + value = reflect.Zero(argType) + } + if !value.Type().AssignableTo(argType) { + return nil, fmt.Errorf("arg %d has type %s; should be %s", i, value.Type(), argType) + } + argv[i] = value + } + result := v.Call(argv) + if len(result) == 2 && !result[1].IsNil() { + return result[0].Interface(), result[1].Interface().(error) + } + return result[0].Interface(), nil +} + +// Boolean logic. + +func truth(a interface{}) bool { + t, _ := isTrue(reflect.ValueOf(a)) + return t +} + +// and computes the Boolean AND of its arguments, returning +// the first false argument it encounters, or the last argument. +func and(arg0 interface{}, args ...interface{}) interface{} { + if !truth(arg0) { + return arg0 + } + for i := range args { + arg0 = args[i] + if !truth(arg0) { + break + } + } + return arg0 +} + +// or computes the Boolean OR of its arguments, returning +// the first true argument it encounters, or the last argument. +func or(arg0 interface{}, args ...interface{}) interface{} { + if truth(arg0) { + return arg0 + } + for i := range args { + arg0 = args[i] + if truth(arg0) { + break + } + } + return arg0 +} + +// not returns the Boolean negation of its argument. +func not(arg interface{}) (truth bool) { + truth, _ = isTrue(reflect.ValueOf(arg)) + return !truth +} + +// Comparison. + +// TODO: Perhaps allow comparison between signed and unsigned integers. + +var ( + errBadComparisonType = errors.New("invalid type for comparison") + errBadComparison = errors.New("incompatible types for comparison") + errNoComparison = errors.New("missing argument for comparison") +) + +type kind int + +const ( + invalidKind kind = iota + boolKind + complexKind + intKind + floatKind + integerKind + stringKind + uintKind +) + +func basicKind(v reflect.Value) (kind, error) { + switch v.Kind() { + case reflect.Bool: + return boolKind, nil + case reflect.Int, reflect.Int8, reflect.Int16, reflect.Int32, reflect.Int64: + return intKind, nil + case reflect.Uint, reflect.Uint8, reflect.Uint16, reflect.Uint32, reflect.Uint64, reflect.Uintptr: + return uintKind, nil + case reflect.Float32, reflect.Float64: + return floatKind, nil + case reflect.Complex64, reflect.Complex128: + return complexKind, nil + case reflect.String: + return stringKind, nil + } + return invalidKind, errBadComparisonType +} + +// eq evaluates the comparison a == b || a == c || ... +func eq(arg1 interface{}, arg2 ...interface{}) (bool, error) { + v1 := reflect.ValueOf(arg1) + k1, err := basicKind(v1) + if err != nil { + return false, err + } + if len(arg2) == 0 { + return false, errNoComparison + } + for _, arg := range arg2 { + v2 := reflect.ValueOf(arg) + k2, err := basicKind(v2) + if err != nil { + return false, err + } + truth := false + if k1 != k2 { + // Special case: Can compare integer values regardless of type's sign. + switch { + case k1 == intKind && k2 == uintKind: + truth = v1.Int() >= 0 && uint64(v1.Int()) == v2.Uint() + case k1 == uintKind && k2 == intKind: + truth = v2.Int() >= 0 && v1.Uint() == uint64(v2.Int()) + default: + return false, errBadComparison + } + } else { + switch k1 { + case boolKind: + truth = v1.Bool() == v2.Bool() + case complexKind: + truth = v1.Complex() == v2.Complex() + case floatKind: + truth = v1.Float() == v2.Float() + case intKind: + truth = v1.Int() == v2.Int() + case stringKind: + truth = v1.String() == v2.String() + case uintKind: + truth = v1.Uint() == v2.Uint() + default: + panic("invalid kind") + } + } + if truth { + return true, nil + } + } + return false, nil +} + +// ne evaluates the comparison a != b. +func ne(arg1, arg2 interface{}) (bool, error) { + // != is the inverse of ==. + equal, err := eq(arg1, arg2) + return !equal, err +} + +// lt evaluates the comparison a < b. +func lt(arg1, arg2 interface{}) (bool, error) { + v1 := reflect.ValueOf(arg1) + k1, err := basicKind(v1) + if err != nil { + return false, err + } + v2 := reflect.ValueOf(arg2) + k2, err := basicKind(v2) + if err != nil { + return false, err + } + truth := false + if k1 != k2 { + // Special case: Can compare integer values regardless of type's sign. + switch { + case k1 == intKind && k2 == uintKind: + truth = v1.Int() < 0 || uint64(v1.Int()) < v2.Uint() + case k1 == uintKind && k2 == intKind: + truth = v2.Int() >= 0 && v1.Uint() < uint64(v2.Int()) + default: + return false, errBadComparison + } + } else { + switch k1 { + case boolKind, complexKind: + return false, errBadComparisonType + case floatKind: + truth = v1.Float() < v2.Float() + case intKind: + truth = v1.Int() < v2.Int() + case stringKind: + truth = v1.String() < v2.String() + case uintKind: + truth = v1.Uint() < v2.Uint() + default: + panic("invalid kind") + } + } + return truth, nil +} + +// le evaluates the comparison <= b. +func le(arg1, arg2 interface{}) (bool, error) { + // <= is < or ==. + lessThan, err := lt(arg1, arg2) + if lessThan || err != nil { + return lessThan, err + } + return eq(arg1, arg2) +} + +// gt evaluates the comparison a > b. +func gt(arg1, arg2 interface{}) (bool, error) { + // > is the inverse of <=. + lessOrEqual, err := le(arg1, arg2) + if err != nil { + return false, err + } + return !lessOrEqual, nil +} + +// ge evaluates the comparison a >= b. +func ge(arg1, arg2 interface{}) (bool, error) { + // >= is the inverse of <. + lessThan, err := lt(arg1, arg2) + if err != nil { + return false, err + } + return !lessThan, nil +} + +// HTML escaping. + +var ( + htmlQuot = []byte(""") // shorter than """ + htmlApos = []byte("'") // shorter than "'" and apos was not in HTML until HTML5 + htmlAmp = []byte("&") + htmlLt = []byte("<") + htmlGt = []byte(">") +) + +// HTMLEscape writes to w the escaped HTML equivalent of the plain text data b. +func HTMLEscape(w io.Writer, b []byte) { + last := 0 + for i, c := range b { + var html []byte + switch c { + case '"': + html = htmlQuot + case '\'': + html = htmlApos + case '&': + html = htmlAmp + case '<': + html = htmlLt + case '>': + html = htmlGt + default: + continue + } + w.Write(b[last:i]) + w.Write(html) + last = i + 1 + } + w.Write(b[last:]) +} + +// HTMLEscapeString returns the escaped HTML equivalent of the plain text data s. +func HTMLEscapeString(s string) string { + // Avoid allocation if we can. + if strings.IndexAny(s, `'"&<>`) < 0 { + return s + } + var b bytes.Buffer + HTMLEscape(&b, []byte(s)) + return b.String() +} + +// HTMLEscaper returns the escaped HTML equivalent of the textual +// representation of its arguments. +func HTMLEscaper(args ...interface{}) string { + return HTMLEscapeString(evalArgs(args)) +} + +// JavaScript escaping. + +var ( + jsLowUni = []byte(`\u00`) + hex = []byte("0123456789ABCDEF") + + jsBackslash = []byte(`\\`) + jsApos = []byte(`\'`) + jsQuot = []byte(`\"`) + jsLt = []byte(`\x3C`) + jsGt = []byte(`\x3E`) +) + +// JSEscape writes to w the escaped JavaScript equivalent of the plain text data b. +func JSEscape(w io.Writer, b []byte) { + last := 0 + for i := 0; i < len(b); i++ { + c := b[i] + + if !jsIsSpecial(rune(c)) { + // fast path: nothing to do + continue + } + w.Write(b[last:i]) + + if c < utf8.RuneSelf { + // Quotes, slashes and angle brackets get quoted. + // Control characters get written as \u00XX. + switch c { + case '\\': + w.Write(jsBackslash) + case '\'': + w.Write(jsApos) + case '"': + w.Write(jsQuot) + case '<': + w.Write(jsLt) + case '>': + w.Write(jsGt) + default: + w.Write(jsLowUni) + t, b := c>>4, c&0x0f + w.Write(hex[t : t+1]) + w.Write(hex[b : b+1]) + } + } else { + // Unicode rune. + r, size := utf8.DecodeRune(b[i:]) + if unicode.IsPrint(r) { + w.Write(b[i : i+size]) + } else { + fmt.Fprintf(w, "\\u%04X", r) + } + i += size - 1 + } + last = i + 1 + } + w.Write(b[last:]) +} + +// JSEscapeString returns the escaped JavaScript equivalent of the plain text data s. +func JSEscapeString(s string) string { + // Avoid allocation if we can. + if strings.IndexFunc(s, jsIsSpecial) < 0 { + return s + } + var b bytes.Buffer + JSEscape(&b, []byte(s)) + return b.String() +} + +func jsIsSpecial(r rune) bool { + switch r { + case '\\', '\'', '"', '<', '>': + return true + } + return r < ' ' || utf8.RuneSelf <= r +} + +// JSEscaper returns the escaped JavaScript equivalent of the textual +// representation of its arguments. +func JSEscaper(args ...interface{}) string { + return JSEscapeString(evalArgs(args)) +} + +// URLQueryEscaper returns the escaped value of the textual representation of +// its arguments in a form suitable for embedding in a URL query. +func URLQueryEscaper(args ...interface{}) string { + return url.QueryEscape(evalArgs(args)) +} + +// evalArgs formats the list of arguments into a string. It is therefore equivalent to +// fmt.Sprint(args...) +// except that each argument is indirected (if a pointer), as required, +// using the same rules as the default string evaluation during template +// execution. +func evalArgs(args []interface{}) string { + ok := false + var s string + // Fast path for simple common case. + if len(args) == 1 { + s, ok = args[0].(string) + } + if !ok { + for i, arg := range args { + a, ok := printableValue(reflect.ValueOf(arg)) + if ok { + args[i] = a + } // else left fmt do its thing + } + s = fmt.Sprint(args...) + } + return s +} diff --git a/vendor/k8s.io/client-go/1.5/pkg/types/doc.go b/vendor/k8s.io/client-go/pkg/types/doc.go similarity index 100% rename from vendor/k8s.io/client-go/1.5/pkg/types/doc.go rename to vendor/k8s.io/client-go/pkg/types/doc.go diff --git a/vendor/k8s.io/client-go/1.5/pkg/types/namespacedname.go b/vendor/k8s.io/client-go/pkg/types/namespacedname.go similarity index 100% rename from vendor/k8s.io/client-go/1.5/pkg/types/namespacedname.go rename to vendor/k8s.io/client-go/pkg/types/namespacedname.go diff --git a/vendor/k8s.io/client-go/1.5/pkg/types/nodename.go b/vendor/k8s.io/client-go/pkg/types/nodename.go similarity index 100% rename from vendor/k8s.io/client-go/1.5/pkg/types/nodename.go rename to vendor/k8s.io/client-go/pkg/types/nodename.go diff --git a/vendor/k8s.io/client-go/1.5/pkg/types/uid.go b/vendor/k8s.io/client-go/pkg/types/uid.go similarity index 100% rename from vendor/k8s.io/client-go/1.5/pkg/types/uid.go rename to vendor/k8s.io/client-go/pkg/types/uid.go diff --git a/vendor/k8s.io/client-go/1.5/pkg/types/unix_user_id.go b/vendor/k8s.io/client-go/pkg/types/unix_user_id.go similarity index 100% rename from vendor/k8s.io/client-go/1.5/pkg/types/unix_user_id.go rename to vendor/k8s.io/client-go/pkg/types/unix_user_id.go diff --git a/vendor/k8s.io/client-go/1.5/pkg/util/cert/cert.go b/vendor/k8s.io/client-go/pkg/util/cert/cert.go similarity index 80% rename from vendor/k8s.io/client-go/1.5/pkg/util/cert/cert.go rename to vendor/k8s.io/client-go/pkg/util/cert/cert.go index 8617744a7..fff5b38d6 100644 --- a/vendor/k8s.io/client-go/1.5/pkg/util/cert/cert.go +++ b/vendor/k8s.io/client-go/pkg/util/cert/cert.go @@ -126,16 +126,13 @@ func MakeEllipticPrivateKeyPEM() ([]byte, error) { return pem.EncodeToMemory(privateKeyPemBlock), nil } -// GenerateSelfSignedCert creates a self-signed certificate and key for the given host. +// GenerateSelfSignedCertKey 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 { +func GenerateSelfSignedCertKey(host string, alternateIPs []net.IP, alternateDNS []string) ([]byte, []byte, error) { priv, err := rsa.GenerateKey(cryptorand.Reader, 2048) if err != nil { - return err + return nil, nil, err } template := x509.Certificate{ @@ -163,28 +160,48 @@ func GenerateSelfSignedCert(host, certPath, keyPath string, alternateIPs []net.I derBytes, err := x509.CreateCertificate(cryptorand.Reader, &template, &template, &priv.PublicKey, priv) if err != nil { - return err + return nil, nil, err } // Generate cert certBuffer := bytes.Buffer{} if err := pem.Encode(&certBuffer, &pem.Block{Type: "CERTIFICATE", Bytes: derBytes}); err != nil { - return err + return nil, nil, 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 + return nil, nil, err } - if err := WriteCert(certPath, certBuffer.Bytes()); err != nil { - return err - } - - if err := WriteKey(keyPath, keyBuffer.Bytes()); err != nil { - return err - } - - return nil + return certBuffer.Bytes(), keyBuffer.Bytes(), nil +} + +// FormatBytesCert receives byte array certificate and formats in human-readable format +func FormatBytesCert(cert []byte) (string, error) { + block, _ := pem.Decode(cert) + c, err := x509.ParseCertificate(block.Bytes) + if err != nil { + return "", fmt.Errorf("failed to parse certificate [%v]", err) + } + return FormatCert(c), nil +} + +// FormatCert receives certificate and formats in human-readable format +func FormatCert(c *x509.Certificate) string { + var ips []string + for _, ip := range c.IPAddresses { + ips = append(ips, ip.String()) + } + altNames := append(ips, c.DNSNames...) + res := fmt.Sprintf( + "Issuer: CN=%s | Subject: CN=%s | CA: %t\n", + c.Issuer.CommonName, c.Subject.CommonName, c.IsCA, + ) + res += fmt.Sprintf("Not before: %s Not After: %s", c.NotBefore, c.NotAfter) + if len(altNames) > 0 { + res += fmt.Sprintf("\nAlternate Names: %v", altNames) + } + return res } diff --git a/vendor/k8s.io/client-go/1.5/pkg/util/cert/csr.go b/vendor/k8s.io/client-go/pkg/util/cert/csr.go similarity index 98% rename from vendor/k8s.io/client-go/1.5/pkg/util/cert/csr.go rename to vendor/k8s.io/client-go/pkg/util/cert/csr.go index f03e8d826..69846df6d 100644 --- a/vendor/k8s.io/client-go/1.5/pkg/util/cert/csr.go +++ b/vendor/k8s.io/client-go/pkg/util/cert/csr.go @@ -25,7 +25,7 @@ import ( "errors" "net" - "k8s.io/client-go/1.5/pkg/apis/certificates" + "k8s.io/client-go/pkg/apis/certificates" ) // ParseCSR extracts the CSR from the API object and decodes it. diff --git a/vendor/k8s.io/client-go/1.5/pkg/util/cert/io.go b/vendor/k8s.io/client-go/pkg/util/cert/io.go similarity index 100% rename from vendor/k8s.io/client-go/1.5/pkg/util/cert/io.go rename to vendor/k8s.io/client-go/pkg/util/cert/io.go diff --git a/vendor/k8s.io/client-go/1.5/pkg/util/cert/pem.go b/vendor/k8s.io/client-go/pkg/util/cert/pem.go similarity index 100% rename from vendor/k8s.io/client-go/1.5/pkg/util/cert/pem.go rename to vendor/k8s.io/client-go/pkg/util/cert/pem.go diff --git a/vendor/k8s.io/client-go/1.5/pkg/util/clock/clock.go b/vendor/k8s.io/client-go/pkg/util/clock/clock.go similarity index 100% rename from vendor/k8s.io/client-go/1.5/pkg/util/clock/clock.go rename to vendor/k8s.io/client-go/pkg/util/clock/clock.go diff --git a/vendor/k8s.io/client-go/pkg/util/diff/diff.go b/vendor/k8s.io/client-go/pkg/util/diff/diff.go new file mode 100644 index 000000000..be406a01d --- /dev/null +++ b/vendor/k8s.io/client-go/pkg/util/diff/diff.go @@ -0,0 +1,280 @@ +/* +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 diff + +import ( + "bytes" + "encoding/json" + "fmt" + "reflect" + "sort" + "strings" + "text/tabwriter" + + "github.com/davecgh/go-spew/spew" + + "k8s.io/client-go/pkg/util/validation/field" +) + +// StringDiff diffs a and b and returns a human readable diff. +func StringDiff(a, b string) string { + ba := []byte(a) + bb := []byte(b) + out := []byte{} + i := 0 + for ; i < len(ba) && i < len(bb); i++ { + if ba[i] != bb[i] { + break + } + out = append(out, ba[i]) + } + out = append(out, []byte("\n\nA: ")...) + out = append(out, ba[i:]...) + out = append(out, []byte("\n\nB: ")...) + out = append(out, bb[i:]...) + out = append(out, []byte("\n\n")...) + return string(out) +} + +// ObjectDiff writes the two objects out as JSON and prints out the identical part of +// the objects followed by the remaining part of 'a' and finally the remaining part of 'b'. +// For debugging tests. +func ObjectDiff(a, b interface{}) string { + ab, err := json.Marshal(a) + if err != nil { + panic(fmt.Sprintf("a: %v", err)) + } + bb, err := json.Marshal(b) + if err != nil { + panic(fmt.Sprintf("b: %v", err)) + } + return StringDiff(string(ab), string(bb)) +} + +// ObjectGoPrintDiff is like ObjectDiff, but uses go-spew to print the objects, +// which shows absolutely everything by recursing into every single pointer +// (go's %#v formatters OTOH stop at a certain point). This is needed when you +// can't figure out why reflect.DeepEqual is returning false and nothing is +// showing you differences. This will. +func ObjectGoPrintDiff(a, b interface{}) string { + s := spew.ConfigState{DisableMethods: true} + return StringDiff( + s.Sprintf("%#v", a), + s.Sprintf("%#v", b), + ) +} + +func ObjectReflectDiff(a, b interface{}) string { + vA, vB := reflect.ValueOf(a), reflect.ValueOf(b) + if vA.Type() != vB.Type() { + return fmt.Sprintf("type A %T and type B %T do not match", a, b) + } + diffs := objectReflectDiff(field.NewPath("object"), vA, vB) + if len(diffs) == 0 { + return "" + } + out := []string{""} + for _, d := range diffs { + out = append(out, + fmt.Sprintf("%s:", d.path), + limit(fmt.Sprintf(" a: %#v", d.a), 80), + limit(fmt.Sprintf(" b: %#v", d.b), 80), + ) + } + return strings.Join(out, "\n") +} + +func limit(s string, max int) string { + if len(s) > max { + return s[:max] + } + return s +} + +func public(s string) bool { + if len(s) == 0 { + return false + } + return s[:1] == strings.ToUpper(s[:1]) +} + +type diff struct { + path *field.Path + a, b interface{} +} + +type orderedDiffs []diff + +func (d orderedDiffs) Len() int { return len(d) } +func (d orderedDiffs) Swap(i, j int) { d[i], d[j] = d[j], d[i] } +func (d orderedDiffs) Less(i, j int) bool { + a, b := d[i].path.String(), d[j].path.String() + if a < b { + return true + } + return false +} + +func objectReflectDiff(path *field.Path, a, b reflect.Value) []diff { + switch a.Type().Kind() { + case reflect.Struct: + var changes []diff + for i := 0; i < a.Type().NumField(); i++ { + if !public(a.Type().Field(i).Name) { + if reflect.DeepEqual(a.Interface(), b.Interface()) { + continue + } + return []diff{{path: path, a: fmt.Sprintf("%#v", a), b: fmt.Sprintf("%#v", b)}} + } + if sub := objectReflectDiff(path.Child(a.Type().Field(i).Name), a.Field(i), b.Field(i)); len(sub) > 0 { + changes = append(changes, sub...) + } else { + if !reflect.DeepEqual(a.Field(i).Interface(), b.Field(i).Interface()) { + changes = append(changes, diff{path: path, a: a.Field(i).Interface(), b: b.Field(i).Interface()}) + } + } + } + return changes + case reflect.Ptr, reflect.Interface: + if a.IsNil() || b.IsNil() { + switch { + case a.IsNil() && b.IsNil(): + return nil + case a.IsNil(): + return []diff{{path: path, a: nil, b: b.Interface()}} + default: + return []diff{{path: path, a: a.Interface(), b: nil}} + } + } + return objectReflectDiff(path, a.Elem(), b.Elem()) + case reflect.Chan: + if !reflect.DeepEqual(a.Interface(), b.Interface()) { + return []diff{{path: path, a: a.Interface(), b: b.Interface()}} + } + return nil + case reflect.Slice: + lA, lB := a.Len(), b.Len() + l := lA + if lB < lA { + l = lB + } + if lA == lB && lA == 0 { + if a.IsNil() != b.IsNil() { + return []diff{{path: path, a: a.Interface(), b: b.Interface()}} + } + return nil + } + for i := 0; i < l; i++ { + if !reflect.DeepEqual(a.Index(i), b.Index(i)) { + return objectReflectDiff(path.Index(i), a.Index(i), b.Index(i)) + } + } + var diffs []diff + for i := l; i < lA; i++ { + diffs = append(diffs, diff{path: path.Index(i), a: a.Index(i), b: nil}) + } + for i := l; i < lB; i++ { + diffs = append(diffs, diff{path: path.Index(i), a: nil, b: b.Index(i)}) + } + if len(diffs) == 0 { + diffs = append(diffs, diff{path: path, a: a, b: b}) + } + return diffs + case reflect.Map: + if reflect.DeepEqual(a.Interface(), b.Interface()) { + return nil + } + aKeys := make(map[interface{}]interface{}) + for _, key := range a.MapKeys() { + aKeys[key.Interface()] = a.MapIndex(key).Interface() + } + var missing []diff + for _, key := range b.MapKeys() { + if _, ok := aKeys[key.Interface()]; ok { + delete(aKeys, key.Interface()) + if reflect.DeepEqual(a.MapIndex(key).Interface(), b.MapIndex(key).Interface()) { + continue + } + missing = append(missing, objectReflectDiff(path.Key(fmt.Sprintf("%s", key.Interface())), a.MapIndex(key), b.MapIndex(key))...) + continue + } + missing = append(missing, diff{path: path.Key(fmt.Sprintf("%s", key.Interface())), a: nil, b: b.MapIndex(key).Interface()}) + } + for key, value := range aKeys { + missing = append(missing, diff{path: path.Key(fmt.Sprintf("%s", key)), a: value, b: nil}) + } + if len(missing) == 0 { + missing = append(missing, diff{path: path, a: a.Interface(), b: b.Interface()}) + } + sort.Sort(orderedDiffs(missing)) + return missing + default: + if reflect.DeepEqual(a.Interface(), b.Interface()) { + return nil + } + if !a.CanInterface() { + return []diff{{path: path, a: fmt.Sprintf("%#v", a), b: fmt.Sprintf("%#v", b)}} + } + return []diff{{path: path, a: a.Interface(), b: b.Interface()}} + } +} + +// ObjectGoPrintSideBySide prints a and b as textual dumps side by side, +// enabling easy visual scanning for mismatches. +func ObjectGoPrintSideBySide(a, b interface{}) string { + s := spew.ConfigState{ + Indent: " ", + // Extra deep spew. + DisableMethods: true, + } + sA := s.Sdump(a) + sB := s.Sdump(b) + + linesA := strings.Split(sA, "\n") + linesB := strings.Split(sB, "\n") + width := 0 + for _, s := range linesA { + l := len(s) + if l > width { + width = l + } + } + for _, s := range linesB { + l := len(s) + if l > width { + width = l + } + } + buf := &bytes.Buffer{} + w := tabwriter.NewWriter(buf, width, 0, 1, ' ', 0) + max := len(linesA) + if len(linesB) > max { + max = len(linesB) + } + for i := 0; i < max; i++ { + var a, b string + if i < len(linesA) { + a = linesA[i] + } + if i < len(linesB) { + b = linesB[i] + } + fmt.Fprintf(w, "%s\t%s\n", a, b) + } + w.Flush() + return buf.String() +} diff --git a/vendor/k8s.io/client-go/1.5/pkg/util/doc.go b/vendor/k8s.io/client-go/pkg/util/doc.go similarity index 100% rename from vendor/k8s.io/client-go/1.5/pkg/util/doc.go rename to vendor/k8s.io/client-go/pkg/util/doc.go diff --git a/vendor/k8s.io/client-go/1.5/pkg/util/errors/doc.go b/vendor/k8s.io/client-go/pkg/util/errors/doc.go similarity index 100% rename from vendor/k8s.io/client-go/1.5/pkg/util/errors/doc.go rename to vendor/k8s.io/client-go/pkg/util/errors/doc.go diff --git a/vendor/k8s.io/client-go/1.5/pkg/util/errors/errors.go b/vendor/k8s.io/client-go/pkg/util/errors/errors.go similarity index 100% rename from vendor/k8s.io/client-go/1.5/pkg/util/errors/errors.go rename to vendor/k8s.io/client-go/pkg/util/errors/errors.go diff --git a/vendor/k8s.io/client-go/1.5/pkg/util/flowcontrol/backoff.go b/vendor/k8s.io/client-go/pkg/util/flowcontrol/backoff.go similarity index 98% rename from vendor/k8s.io/client-go/1.5/pkg/util/flowcontrol/backoff.go rename to vendor/k8s.io/client-go/pkg/util/flowcontrol/backoff.go index dae898065..c3bf9582c 100644 --- a/vendor/k8s.io/client-go/1.5/pkg/util/flowcontrol/backoff.go +++ b/vendor/k8s.io/client-go/pkg/util/flowcontrol/backoff.go @@ -20,8 +20,8 @@ import ( "sync" "time" - "k8s.io/client-go/1.5/pkg/util/clock" - "k8s.io/client-go/1.5/pkg/util/integer" + "k8s.io/client-go/pkg/util/clock" + "k8s.io/client-go/pkg/util/integer" ) type backoffEntry struct { diff --git a/vendor/k8s.io/client-go/1.5/pkg/util/flowcontrol/throttle.go b/vendor/k8s.io/client-go/pkg/util/flowcontrol/throttle.go similarity index 100% rename from vendor/k8s.io/client-go/1.5/pkg/util/flowcontrol/throttle.go rename to vendor/k8s.io/client-go/pkg/util/flowcontrol/throttle.go diff --git a/vendor/k8s.io/client-go/1.5/pkg/util/framer/framer.go b/vendor/k8s.io/client-go/pkg/util/framer/framer.go similarity index 100% rename from vendor/k8s.io/client-go/1.5/pkg/util/framer/framer.go rename to vendor/k8s.io/client-go/pkg/util/framer/framer.go diff --git a/vendor/k8s.io/client-go/1.5/pkg/util/integer/integer.go b/vendor/k8s.io/client-go/pkg/util/integer/integer.go similarity index 100% rename from vendor/k8s.io/client-go/1.5/pkg/util/integer/integer.go rename to vendor/k8s.io/client-go/pkg/util/integer/integer.go diff --git a/vendor/k8s.io/client-go/1.5/pkg/util/intstr/generated.pb.go b/vendor/k8s.io/client-go/pkg/util/intstr/generated.pb.go similarity index 81% rename from vendor/k8s.io/client-go/1.5/pkg/util/intstr/generated.pb.go rename to vendor/k8s.io/client-go/pkg/util/intstr/generated.pb.go index de36b07ae..e2c0e70a9 100644 --- a/vendor/k8s.io/client-go/1.5/pkg/util/intstr/generated.pb.go +++ b/vendor/k8s.io/client-go/pkg/util/intstr/generated.pb.go @@ -1,5 +1,5 @@ /* -Copyright 2016 The Kubernetes Authors. +Copyright 2017 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -49,7 +49,7 @@ func (*IntOrString) ProtoMessage() {} func (*IntOrString) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{0} } func init() { - proto.RegisterType((*IntOrString)(nil), "k8s.io.client-go.1.5.pkg.util.intstr.IntOrString") + proto.RegisterType((*IntOrString)(nil), "k8s.io.client-go.pkg.util.intstr.IntOrString") } func (m *IntOrString) Marshal() (data []byte, err error) { size := m.Size() @@ -352,21 +352,22 @@ var ( ) 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, + // 269 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x09, 0x6e, 0x88, 0x02, 0xff, 0x44, 0x8f, 0x31, 0x4e, 0xc3, 0x30, + 0x18, 0x85, 0x6d, 0x5a, 0x2a, 0x08, 0x12, 0x43, 0xc4, 0x50, 0x31, 0x38, 0x81, 0x01, 0x79, 0xc1, + 0x16, 0x1b, 0x62, 0xcc, 0xd6, 0x09, 0x29, 0x45, 0x0c, 0x6c, 0x0d, 0x18, 0x63, 0xa5, 0xd8, 0x96, + 0xf3, 0x67, 0xe8, 0xd6, 0x23, 0xc0, 0xc6, 0xc8, 0x71, 0x32, 0x76, 0x64, 0x40, 0x15, 0x31, 0xb7, + 0x60, 0x42, 0x71, 0x22, 0x75, 0xb2, 0xdf, 0x7b, 0xdf, 0x67, 0xc9, 0xd1, 0x55, 0x79, 0x5d, 0x31, + 0x65, 0x78, 0x59, 0x17, 0xc2, 0x69, 0x01, 0xa2, 0xe2, 0xb6, 0x94, 0xbc, 0x06, 0xb5, 0xe4, 0x4a, + 0x43, 0x05, 0x8e, 0x4b, 0xa1, 0x85, 0x5b, 0x80, 0x78, 0x62, 0xd6, 0x19, 0x30, 0xf1, 0x59, 0xaf, + 0xb0, 0x9d, 0xc2, 0x6c, 0x29, 0x59, 0xa7, 0xb0, 0x5e, 0x39, 0xbd, 0x94, 0x0a, 0x5e, 0xea, 0x82, + 0x3d, 0x9a, 0x57, 0x2e, 0x8d, 0x34, 0x3c, 0x98, 0x45, 0xfd, 0x1c, 0x52, 0x08, 0xe1, 0xd6, 0xbf, + 0x78, 0xfe, 0x8e, 0xa3, 0xa3, 0x99, 0x86, 0x5b, 0x37, 0x07, 0xa7, 0xb4, 0x8c, 0x69, 0x34, 0x86, + 0x95, 0x15, 0x53, 0x9c, 0x62, 0x3a, 0xca, 0x4e, 0x9a, 0x6d, 0x82, 0xfc, 0x36, 0x19, 0xdf, 0xad, + 0xac, 0xf8, 0x1b, 0xce, 0x3c, 0x10, 0xf1, 0x45, 0x34, 0x51, 0x1a, 0xee, 0x17, 0xcb, 0xe9, 0x5e, + 0x8a, 0xe9, 0x7e, 0x76, 0x3c, 0xb0, 0x93, 0x59, 0x68, 0xf3, 0x61, 0xed, 0xb8, 0x0a, 0x5c, 0xc7, + 0x8d, 0x52, 0x4c, 0x0f, 0x77, 0xdc, 0x3c, 0xb4, 0xf9, 0xb0, 0xde, 0x1c, 0x7c, 0x7c, 0x26, 0x68, + 0xfd, 0x9d, 0xa2, 0x8c, 0x36, 0x2d, 0x41, 0x9b, 0x96, 0xa0, 0xaf, 0x96, 0xa0, 0xb5, 0x27, 0xb8, + 0xf1, 0x04, 0x6f, 0x3c, 0xc1, 0x3f, 0x9e, 0xe0, 0xb7, 0x5f, 0x82, 0x1e, 0x26, 0xfd, 0x67, 0xff, + 0x03, 0x00, 0x00, 0xff, 0xff, 0x68, 0x57, 0xfb, 0xfa, 0x43, 0x01, 0x00, 0x00, } diff --git a/vendor/k8s.io/client-go/1.5/pkg/util/intstr/intstr.go b/vendor/k8s.io/client-go/pkg/util/intstr/intstr.go similarity index 98% rename from vendor/k8s.io/client-go/1.5/pkg/util/intstr/intstr.go rename to vendor/k8s.io/client-go/pkg/util/intstr/intstr.go index 28c0c0ed4..a365f623e 100644 --- a/vendor/k8s.io/client-go/1.5/pkg/util/intstr/intstr.go +++ b/vendor/k8s.io/client-go/pkg/util/intstr/intstr.go @@ -23,7 +23,7 @@ import ( "strconv" "strings" - "k8s.io/client-go/1.5/pkg/genericapiserver/openapi/common" + "k8s.io/client-go/pkg/genericapiserver/openapi/common" "github.com/go-openapi/spec" "github.com/google/gofuzz" diff --git a/vendor/k8s.io/client-go/1.5/pkg/util/json/json.go b/vendor/k8s.io/client-go/pkg/util/json/json.go similarity index 100% rename from vendor/k8s.io/client-go/1.5/pkg/util/json/json.go rename to vendor/k8s.io/client-go/pkg/util/json/json.go diff --git a/vendor/k8s.io/client-go/pkg/util/jsonpath/doc.go b/vendor/k8s.io/client-go/pkg/util/jsonpath/doc.go new file mode 100644 index 000000000..2a6e17061 --- /dev/null +++ b/vendor/k8s.io/client-go/pkg/util/jsonpath/doc.go @@ -0,0 +1,20 @@ +/* +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 jsonpath is a template engine using jsonpath syntax, +// which can be seen at http://goessner.net/articles/JsonPath/. +// In addition, it has {range} {end} function to iterate list and slice. +package jsonpath diff --git a/vendor/k8s.io/client-go/pkg/util/jsonpath/jsonpath.go b/vendor/k8s.io/client-go/pkg/util/jsonpath/jsonpath.go new file mode 100644 index 000000000..11a1c521a --- /dev/null +++ b/vendor/k8s.io/client-go/pkg/util/jsonpath/jsonpath.go @@ -0,0 +1,498 @@ +/* +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 jsonpath + +import ( + "bytes" + "fmt" + "io" + "reflect" + "strings" + + "k8s.io/client-go/pkg/third_party/forked/golang/template" +) + +type JSONPath struct { + name string + parser *Parser + stack [][]reflect.Value //push and pop values in different scopes + cur []reflect.Value //current scope values + beginRange int + inRange int + endRange int + + allowMissingKeys bool +} + +func New(name string) *JSONPath { + return &JSONPath{ + name: name, + beginRange: 0, + inRange: 0, + endRange: 0, + } +} + +// AllowMissingKeys allows a caller to specify whether they want an error if a field or map key +// cannot be located, or simply an empty result. The receiver is returned for chaining. +func (j *JSONPath) AllowMissingKeys(allow bool) *JSONPath { + j.allowMissingKeys = allow + return j +} + +// Parse parse the given template, return error +func (j *JSONPath) Parse(text string) (err error) { + j.parser, err = Parse(j.name, text) + return +} + +// Execute bounds data into template and write the result +func (j *JSONPath) Execute(wr io.Writer, data interface{}) error { + fullResults, err := j.FindResults(data) + if err != nil { + return err + } + for ix := range fullResults { + if err := j.PrintResults(wr, fullResults[ix]); err != nil { + return err + } + } + return nil +} + +func (j *JSONPath) FindResults(data interface{}) ([][]reflect.Value, error) { + if j.parser == nil { + return nil, fmt.Errorf("%s is an incomplete jsonpath template", j.name) + } + + j.cur = []reflect.Value{reflect.ValueOf(data)} + nodes := j.parser.Root.Nodes + fullResult := [][]reflect.Value{} + for i := 0; i < len(nodes); i++ { + node := nodes[i] + results, err := j.walk(j.cur, node) + if err != nil { + return nil, err + } + + //encounter an end node, break the current block + if j.endRange > 0 && j.endRange <= j.inRange { + j.endRange -= 1 + break + } + //encounter a range node, start a range loop + if j.beginRange > 0 { + j.beginRange -= 1 + j.inRange += 1 + for k, value := range results { + j.parser.Root.Nodes = nodes[i+1:] + if k == len(results)-1 { + j.inRange -= 1 + } + nextResults, err := j.FindResults(value.Interface()) + if err != nil { + return nil, err + } + fullResult = append(fullResult, nextResults...) + } + break + } + fullResult = append(fullResult, results) + } + return fullResult, nil +} + +// PrintResults write the results into writer +func (j *JSONPath) PrintResults(wr io.Writer, results []reflect.Value) error { + for i, r := range results { + text, err := j.evalToText(r) + if err != nil { + return err + } + if i != len(results)-1 { + text = append(text, ' ') + } + if _, err = wr.Write(text); err != nil { + return err + } + } + return nil +} + +// walk visits tree rooted at the given node in DFS order +func (j *JSONPath) walk(value []reflect.Value, node Node) ([]reflect.Value, error) { + switch node := node.(type) { + case *ListNode: + return j.evalList(value, node) + case *TextNode: + return []reflect.Value{reflect.ValueOf(node.Text)}, nil + case *FieldNode: + return j.evalField(value, node) + case *ArrayNode: + return j.evalArray(value, node) + case *FilterNode: + return j.evalFilter(value, node) + case *IntNode: + return j.evalInt(value, node) + case *FloatNode: + return j.evalFloat(value, node) + case *WildcardNode: + return j.evalWildcard(value, node) + case *RecursiveNode: + return j.evalRecursive(value, node) + case *UnionNode: + return j.evalUnion(value, node) + case *IdentifierNode: + return j.evalIdentifier(value, node) + default: + return value, fmt.Errorf("unexpected Node %v", node) + } +} + +// evalInt evaluates IntNode +func (j *JSONPath) evalInt(input []reflect.Value, node *IntNode) ([]reflect.Value, error) { + result := make([]reflect.Value, len(input)) + for i := range input { + result[i] = reflect.ValueOf(node.Value) + } + return result, nil +} + +// evalFloat evaluates FloatNode +func (j *JSONPath) evalFloat(input []reflect.Value, node *FloatNode) ([]reflect.Value, error) { + result := make([]reflect.Value, len(input)) + for i := range input { + result[i] = reflect.ValueOf(node.Value) + } + return result, nil +} + +// evalList evaluates ListNode +func (j *JSONPath) evalList(value []reflect.Value, node *ListNode) ([]reflect.Value, error) { + var err error + curValue := value + for _, node := range node.Nodes { + curValue, err = j.walk(curValue, node) + if err != nil { + return curValue, err + } + } + return curValue, nil +} + +// evalIdentifier evaluates IdentifierNode +func (j *JSONPath) evalIdentifier(input []reflect.Value, node *IdentifierNode) ([]reflect.Value, error) { + results := []reflect.Value{} + switch node.Name { + case "range": + j.stack = append(j.stack, j.cur) + j.beginRange += 1 + results = input + case "end": + if j.endRange < j.inRange { //inside a loop, break the current block + j.endRange += 1 + break + } + // the loop is about to end, pop value and continue the following execution + if len(j.stack) > 0 { + j.cur, j.stack = j.stack[len(j.stack)-1], j.stack[:len(j.stack)-1] + } else { + return results, fmt.Errorf("not in range, nothing to end") + } + default: + return input, fmt.Errorf("unrecognized identifier %v", node.Name) + } + return results, nil +} + +// evalArray evaluates ArrayNode +func (j *JSONPath) evalArray(input []reflect.Value, node *ArrayNode) ([]reflect.Value, error) { + result := []reflect.Value{} + for _, value := range input { + + value, isNil := template.Indirect(value) + if isNil { + continue + } + if value.Kind() != reflect.Array && value.Kind() != reflect.Slice { + return input, fmt.Errorf("%v is not array or slice", value.Type()) + } + params := node.Params + if !params[0].Known { + params[0].Value = 0 + } + if params[0].Value < 0 { + params[0].Value += value.Len() + } + if !params[1].Known { + params[1].Value = value.Len() + } + + if params[1].Value < 0 { + params[1].Value += value.Len() + } + + sliceLength := value.Len() + if params[1].Value != params[0].Value { // if you're requesting zero elements, allow it through. + if params[0].Value >= sliceLength { + return input, fmt.Errorf("array index out of bounds: index %d, length %d", params[0].Value, sliceLength) + } + if params[1].Value > sliceLength { + return input, fmt.Errorf("array index out of bounds: index %d, length %d", params[1].Value-1, sliceLength) + } + } + + if !params[2].Known { + value = value.Slice(params[0].Value, params[1].Value) + } else { + value = value.Slice3(params[0].Value, params[1].Value, params[2].Value) + } + for i := 0; i < value.Len(); i++ { + result = append(result, value.Index(i)) + } + } + return result, nil +} + +// evalUnion evaluates UnionNode +func (j *JSONPath) evalUnion(input []reflect.Value, node *UnionNode) ([]reflect.Value, error) { + result := []reflect.Value{} + for _, listNode := range node.Nodes { + temp, err := j.evalList(input, listNode) + if err != nil { + return input, err + } + result = append(result, temp...) + } + return result, nil +} + +func (j *JSONPath) findFieldInValue(value *reflect.Value, node *FieldNode) (reflect.Value, error) { + t := value.Type() + var inlineValue *reflect.Value + for ix := 0; ix < t.NumField(); ix++ { + f := t.Field(ix) + jsonTag := f.Tag.Get("json") + parts := strings.Split(jsonTag, ",") + if len(parts) == 0 { + continue + } + if parts[0] == node.Value { + return value.Field(ix), nil + } + if len(parts[0]) == 0 { + val := value.Field(ix) + inlineValue = &val + } + } + if inlineValue != nil { + if inlineValue.Kind() == reflect.Struct { + // handle 'inline' + match, err := j.findFieldInValue(inlineValue, node) + if err != nil { + return reflect.Value{}, err + } + if match.IsValid() { + return match, nil + } + } + } + return value.FieldByName(node.Value), nil +} + +// evalField evaluates field of struct or key of map. +func (j *JSONPath) evalField(input []reflect.Value, node *FieldNode) ([]reflect.Value, error) { + results := []reflect.Value{} + // If there's no input, there's no output + if len(input) == 0 { + return results, nil + } + for _, value := range input { + var result reflect.Value + value, isNil := template.Indirect(value) + if isNil { + continue + } + + if value.Kind() == reflect.Struct { + var err error + if result, err = j.findFieldInValue(&value, node); err != nil { + return nil, err + } + } else if value.Kind() == reflect.Map { + mapKeyType := value.Type().Key() + nodeValue := reflect.ValueOf(node.Value) + // node value type must be convertible to map key type + if !nodeValue.Type().ConvertibleTo(mapKeyType) { + return results, fmt.Errorf("%s is not convertible to %s", nodeValue, mapKeyType) + } + result = value.MapIndex(nodeValue.Convert(mapKeyType)) + } + if result.IsValid() { + results = append(results, result) + } + } + if len(results) == 0 { + if j.allowMissingKeys { + return results, nil + } + return results, fmt.Errorf("%s is not found", node.Value) + } + return results, nil +} + +// evalWildcard extract all contents of the given value +func (j *JSONPath) evalWildcard(input []reflect.Value, node *WildcardNode) ([]reflect.Value, error) { + results := []reflect.Value{} + for _, value := range input { + value, isNil := template.Indirect(value) + if isNil { + continue + } + + kind := value.Kind() + if kind == reflect.Struct { + for i := 0; i < value.NumField(); i++ { + results = append(results, value.Field(i)) + } + } else if kind == reflect.Map { + for _, key := range value.MapKeys() { + results = append(results, value.MapIndex(key)) + } + } else if kind == reflect.Array || kind == reflect.Slice || kind == reflect.String { + for i := 0; i < value.Len(); i++ { + results = append(results, value.Index(i)) + } + } + } + return results, nil +} + +// evalRecursive visit the given value recursively and push all of them to result +func (j *JSONPath) evalRecursive(input []reflect.Value, node *RecursiveNode) ([]reflect.Value, error) { + result := []reflect.Value{} + for _, value := range input { + results := []reflect.Value{} + value, isNil := template.Indirect(value) + if isNil { + continue + } + + kind := value.Kind() + if kind == reflect.Struct { + for i := 0; i < value.NumField(); i++ { + results = append(results, value.Field(i)) + } + } else if kind == reflect.Map { + for _, key := range value.MapKeys() { + results = append(results, value.MapIndex(key)) + } + } else if kind == reflect.Array || kind == reflect.Slice || kind == reflect.String { + for i := 0; i < value.Len(); i++ { + results = append(results, value.Index(i)) + } + } + if len(results) != 0 { + result = append(result, value) + output, err := j.evalRecursive(results, node) + if err != nil { + return result, err + } + result = append(result, output...) + } + } + return result, nil +} + +// evalFilter filter array according to FilterNode +func (j *JSONPath) evalFilter(input []reflect.Value, node *FilterNode) ([]reflect.Value, error) { + results := []reflect.Value{} + for _, value := range input { + value, _ = template.Indirect(value) + + if value.Kind() != reflect.Array && value.Kind() != reflect.Slice { + return input, fmt.Errorf("%v is not array or slice and cannot be filtered", value) + } + for i := 0; i < value.Len(); i++ { + temp := []reflect.Value{value.Index(i)} + lefts, err := j.evalList(temp, node.Left) + + //case exists + if node.Operator == "exists" { + if len(lefts) > 0 { + results = append(results, value.Index(i)) + } + continue + } + + if err != nil { + return input, err + } + + var left, right interface{} + if len(lefts) != 1 { + return input, fmt.Errorf("can only compare one element at a time") + } + left = lefts[0].Interface() + + rights, err := j.evalList(temp, node.Right) + if err != nil { + return input, err + } + if len(rights) != 1 { + return input, fmt.Errorf("can only compare one element at a time") + } + right = rights[0].Interface() + + pass := false + switch node.Operator { + case "<": + pass, err = template.Less(left, right) + case ">": + pass, err = template.Greater(left, right) + case "==": + pass, err = template.Equal(left, right) + case "!=": + pass, err = template.NotEqual(left, right) + case "<=": + pass, err = template.LessEqual(left, right) + case ">=": + pass, err = template.GreaterEqual(left, right) + default: + return results, fmt.Errorf("unrecognized filter operator %s", node.Operator) + } + if err != nil { + return results, err + } + if pass { + results = append(results, value.Index(i)) + } + } + } + return results, nil +} + +// evalToText translates reflect value to corresponding text +func (j *JSONPath) evalToText(v reflect.Value) ([]byte, error) { + iface, ok := template.PrintableValue(v) + if !ok { + return nil, fmt.Errorf("can't print type %s", v.Type()) + } + var buffer bytes.Buffer + fmt.Fprint(&buffer, iface) + return buffer.Bytes(), nil +} diff --git a/vendor/k8s.io/client-go/pkg/util/jsonpath/node.go b/vendor/k8s.io/client-go/pkg/util/jsonpath/node.go new file mode 100644 index 000000000..f0a27853d --- /dev/null +++ b/vendor/k8s.io/client-go/pkg/util/jsonpath/node.go @@ -0,0 +1,239 @@ +/* +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 jsonpath + +import "fmt" + +// NodeType identifies the type of a parse tree node. +type NodeType int + +// Type returns itself and provides an easy default implementation +func (t NodeType) Type() NodeType { + return t +} + +func (t NodeType) String() string { + return NodeTypeName[t] +} + +const ( + NodeText NodeType = iota + NodeArray + NodeList + NodeField + NodeIdentifier + NodeFilter + NodeInt + NodeFloat + NodeWildcard + NodeRecursive + NodeUnion +) + +var NodeTypeName = map[NodeType]string{ + NodeText: "NodeText", + NodeArray: "NodeArray", + NodeList: "NodeList", + NodeField: "NodeField", + NodeIdentifier: "NodeIdentifier", + NodeFilter: "NodeFilter", + NodeInt: "NodeInt", + NodeFloat: "NodeFloat", + NodeWildcard: "NodeWildcard", + NodeRecursive: "NodeRecursive", + NodeUnion: "NodeUnion", +} + +type Node interface { + Type() NodeType + String() string +} + +// ListNode holds a sequence of nodes. +type ListNode struct { + NodeType + Nodes []Node // The element nodes in lexical order. +} + +func newList() *ListNode { + return &ListNode{NodeType: NodeList} +} + +func (l *ListNode) append(n Node) { + l.Nodes = append(l.Nodes, n) +} + +func (l *ListNode) String() string { + return fmt.Sprintf("%s", l.Type()) +} + +// TextNode holds plain text. +type TextNode struct { + NodeType + Text string // The text; may span newlines. +} + +func newText(text string) *TextNode { + return &TextNode{NodeType: NodeText, Text: text} +} + +func (t *TextNode) String() string { + return fmt.Sprintf("%s: %s", t.Type(), t.Text) +} + +// FieldNode holds field of struct +type FieldNode struct { + NodeType + Value string +} + +func newField(value string) *FieldNode { + return &FieldNode{NodeType: NodeField, Value: value} +} + +func (f *FieldNode) String() string { + return fmt.Sprintf("%s: %s", f.Type(), f.Value) +} + +// IdentifierNode holds an identifier +type IdentifierNode struct { + NodeType + Name string +} + +func newIdentifier(value string) *IdentifierNode { + return &IdentifierNode{ + NodeType: NodeIdentifier, + Name: value, + } +} + +func (f *IdentifierNode) String() string { + return fmt.Sprintf("%s: %s", f.Type(), f.Name) +} + +// ParamsEntry holds param information for ArrayNode +type ParamsEntry struct { + Value int + Known bool //whether the value is known when parse it +} + +// ArrayNode holds start, end, step information for array index selection +type ArrayNode struct { + NodeType + Params [3]ParamsEntry //start, end, step +} + +func newArray(params [3]ParamsEntry) *ArrayNode { + return &ArrayNode{ + NodeType: NodeArray, + Params: params, + } +} + +func (a *ArrayNode) String() string { + return fmt.Sprintf("%s: %v", a.Type(), a.Params) +} + +// FilterNode holds operand and operator information for filter +type FilterNode struct { + NodeType + Left *ListNode + Right *ListNode + Operator string +} + +func newFilter(left, right *ListNode, operator string) *FilterNode { + return &FilterNode{ + NodeType: NodeFilter, + Left: left, + Right: right, + Operator: operator, + } +} + +func (f *FilterNode) String() string { + return fmt.Sprintf("%s: %s %s %s", f.Type(), f.Left, f.Operator, f.Right) +} + +// IntNode holds integer value +type IntNode struct { + NodeType + Value int +} + +func newInt(num int) *IntNode { + return &IntNode{NodeType: NodeInt, Value: num} +} + +func (i *IntNode) String() string { + return fmt.Sprintf("%s: %d", i.Type(), i.Value) +} + +// FloatNode holds float value +type FloatNode struct { + NodeType + Value float64 +} + +func newFloat(num float64) *FloatNode { + return &FloatNode{NodeType: NodeFloat, Value: num} +} + +func (i *FloatNode) String() string { + return fmt.Sprintf("%s: %f", i.Type(), i.Value) +} + +// WildcardNode means a wildcard +type WildcardNode struct { + NodeType +} + +func newWildcard() *WildcardNode { + return &WildcardNode{NodeType: NodeWildcard} +} + +func (i *WildcardNode) String() string { + return fmt.Sprintf("%s", i.Type()) +} + +// RecursiveNode means a recursive descent operator +type RecursiveNode struct { + NodeType +} + +func newRecursive() *RecursiveNode { + return &RecursiveNode{NodeType: NodeRecursive} +} + +func (r *RecursiveNode) String() string { + return fmt.Sprintf("%s", r.Type()) +} + +// UnionNode is union of ListNode +type UnionNode struct { + NodeType + Nodes []*ListNode +} + +func newUnion(nodes []*ListNode) *UnionNode { + return &UnionNode{NodeType: NodeUnion, Nodes: nodes} +} + +func (u *UnionNode) String() string { + return fmt.Sprintf("%s", u.Type()) +} diff --git a/vendor/k8s.io/client-go/pkg/util/jsonpath/parser.go b/vendor/k8s.io/client-go/pkg/util/jsonpath/parser.go new file mode 100644 index 000000000..7dc38d31f --- /dev/null +++ b/vendor/k8s.io/client-go/pkg/util/jsonpath/parser.go @@ -0,0 +1,433 @@ +/* +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 jsonpath + +import ( + "fmt" + "regexp" + "strconv" + "strings" + "unicode" + "unicode/utf8" +) + +const eof = -1 + +const ( + leftDelim = "{" + rightDelim = "}" +) + +type Parser struct { + Name string + Root *ListNode + input string + cur *ListNode + pos int + start int + width int +} + +// Parse parsed the given text and return a node Parser. +// If an error is encountered, parsing stops and an empty +// Parser is returned with the error +func Parse(name, text string) (*Parser, error) { + p := NewParser(name) + err := p.Parse(text) + if err != nil { + p = nil + } + return p, err +} + +func NewParser(name string) *Parser { + return &Parser{ + Name: name, + } +} + +// parseAction parsed the expression inside delimiter +func parseAction(name, text string) (*Parser, error) { + p, err := Parse(name, fmt.Sprintf("%s%s%s", leftDelim, text, rightDelim)) + // when error happens, p will be nil, so we need to return here + if err != nil { + return p, err + } + p.Root = p.Root.Nodes[0].(*ListNode) + return p, nil +} + +func (p *Parser) Parse(text string) error { + p.input = text + p.Root = newList() + p.pos = 0 + return p.parseText(p.Root) +} + +// consumeText return the parsed text since last cosumeText +func (p *Parser) consumeText() string { + value := p.input[p.start:p.pos] + p.start = p.pos + return value +} + +// next returns the next rune in the input. +func (p *Parser) next() rune { + if int(p.pos) >= len(p.input) { + p.width = 0 + return eof + } + r, w := utf8.DecodeRuneInString(p.input[p.pos:]) + p.width = w + p.pos += p.width + return r +} + +// peek returns but does not consume the next rune in the input. +func (p *Parser) peek() rune { + r := p.next() + p.backup() + return r +} + +// backup steps back one rune. Can only be called once per call of next. +func (p *Parser) backup() { + p.pos -= p.width +} + +func (p *Parser) parseText(cur *ListNode) error { + for { + if strings.HasPrefix(p.input[p.pos:], leftDelim) { + if p.pos > p.start { + cur.append(newText(p.consumeText())) + } + return p.parseLeftDelim(cur) + } + if p.next() == eof { + break + } + } + // Correctly reached EOF. + if p.pos > p.start { + cur.append(newText(p.consumeText())) + } + return nil +} + +// parseLeftDelim scans the left delimiter, which is known to be present. +func (p *Parser) parseLeftDelim(cur *ListNode) error { + p.pos += len(leftDelim) + p.consumeText() + newNode := newList() + cur.append(newNode) + cur = newNode + return p.parseInsideAction(cur) +} + +func (p *Parser) parseInsideAction(cur *ListNode) error { + prefixMap := map[string]func(*ListNode) error{ + rightDelim: p.parseRightDelim, + "[?(": p.parseFilter, + "..": p.parseRecursive, + } + for prefix, parseFunc := range prefixMap { + if strings.HasPrefix(p.input[p.pos:], prefix) { + return parseFunc(cur) + } + } + + switch r := p.next(); { + case r == eof || isEndOfLine(r): + return fmt.Errorf("unclosed action") + case r == ' ': + p.consumeText() + case r == '@' || r == '$': //the current object, just pass it + p.consumeText() + case r == '[': + return p.parseArray(cur) + case r == '"': + return p.parseQuote(cur) + case r == '.': + return p.parseField(cur) + case r == '+' || r == '-' || unicode.IsDigit(r): + p.backup() + return p.parseNumber(cur) + case isAlphaNumeric(r): + p.backup() + return p.parseIdentifier(cur) + default: + return fmt.Errorf("unrecognized character in action: %#U", r) + } + return p.parseInsideAction(cur) +} + +// parseRightDelim scans the right delimiter, which is known to be present. +func (p *Parser) parseRightDelim(cur *ListNode) error { + p.pos += len(rightDelim) + p.consumeText() + cur = p.Root + return p.parseText(cur) +} + +// parseIdentifier scans build-in keywords, like "range" "end" +func (p *Parser) parseIdentifier(cur *ListNode) error { + var r rune + for { + r = p.next() + if isTerminator(r) { + p.backup() + break + } + } + value := p.consumeText() + cur.append(newIdentifier(value)) + return p.parseInsideAction(cur) +} + +// parseRecursive scans the recursive desent operator .. +func (p *Parser) parseRecursive(cur *ListNode) error { + p.pos += len("..") + p.consumeText() + cur.append(newRecursive()) + if r := p.peek(); isAlphaNumeric(r) { + return p.parseField(cur) + } + return p.parseInsideAction(cur) +} + +// parseNumber scans number +func (p *Parser) parseNumber(cur *ListNode) error { + r := p.peek() + if r == '+' || r == '-' { + r = p.next() + } + for { + r = p.next() + if r != '.' && !unicode.IsDigit(r) { + p.backup() + break + } + } + value := p.consumeText() + i, err := strconv.Atoi(value) + if err == nil { + cur.append(newInt(i)) + return p.parseInsideAction(cur) + } + d, err := strconv.ParseFloat(value, 64) + if err == nil { + cur.append(newFloat(d)) + return p.parseInsideAction(cur) + } + return fmt.Errorf("cannot parse number %s", value) +} + +// parseArray scans array index selection +func (p *Parser) parseArray(cur *ListNode) error { +Loop: + for { + switch p.next() { + case eof, '\n': + return fmt.Errorf("unterminated array") + case ']': + break Loop + } + } + text := p.consumeText() + text = string(text[1 : len(text)-1]) + if text == "*" { + text = ":" + } + + //union operator + strs := strings.Split(text, ",") + if len(strs) > 1 { + union := []*ListNode{} + for _, str := range strs { + parser, err := parseAction("union", fmt.Sprintf("[%s]", strings.Trim(str, " "))) + if err != nil { + return err + } + union = append(union, parser.Root) + } + cur.append(newUnion(union)) + return p.parseInsideAction(cur) + } + + // dict key + reg := regexp.MustCompile(`^'([^']*)'$`) + value := reg.FindStringSubmatch(text) + if value != nil { + parser, err := parseAction("arraydict", fmt.Sprintf(".%s", value[1])) + if err != nil { + return err + } + for _, node := range parser.Root.Nodes { + cur.append(node) + } + return p.parseInsideAction(cur) + } + + //slice operator + reg = regexp.MustCompile(`^(-?[\d]*)(:-?[\d]*)?(:[\d]*)?$`) + value = reg.FindStringSubmatch(text) + if value == nil { + return fmt.Errorf("invalid array index %s", text) + } + value = value[1:] + params := [3]ParamsEntry{} + for i := 0; i < 3; i++ { + if value[i] != "" { + if i > 0 { + value[i] = value[i][1:] + } + if i > 0 && value[i] == "" { + params[i].Known = false + } else { + var err error + params[i].Known = true + params[i].Value, err = strconv.Atoi(value[i]) + if err != nil { + return fmt.Errorf("array index %s is not a number", value[i]) + } + } + } else { + if i == 1 { + params[i].Known = true + params[i].Value = params[0].Value + 1 + } else { + params[i].Known = false + params[i].Value = 0 + } + } + } + cur.append(newArray(params)) + return p.parseInsideAction(cur) +} + +// parseFilter scans filter inside array selection +func (p *Parser) parseFilter(cur *ListNode) error { + p.pos += len("[?(") + p.consumeText() +Loop: + for { + switch p.next() { + case eof, '\n': + return fmt.Errorf("unterminated filter") + case ')': + break Loop + } + } + if p.next() != ']' { + return fmt.Errorf("unclosed array expect ]") + } + reg := regexp.MustCompile(`^([^!<>=]+)([!<>=]+)(.+?)$`) + text := p.consumeText() + text = string(text[:len(text)-2]) + value := reg.FindStringSubmatch(text) + if value == nil { + parser, err := parseAction("text", text) + if err != nil { + return err + } + cur.append(newFilter(parser.Root, newList(), "exists")) + } else { + leftParser, err := parseAction("left", value[1]) + if err != nil { + return err + } + rightParser, err := parseAction("right", value[3]) + if err != nil { + return err + } + cur.append(newFilter(leftParser.Root, rightParser.Root, value[2])) + } + return p.parseInsideAction(cur) +} + +// parseQuote unquotes string inside double quote +func (p *Parser) parseQuote(cur *ListNode) error { +Loop: + for { + switch p.next() { + case eof, '\n': + return fmt.Errorf("unterminated quoted string") + case '"': + break Loop + } + } + value := p.consumeText() + s, err := strconv.Unquote(value) + if err != nil { + return fmt.Errorf("unquote string %s error %v", value, err) + } + cur.append(newText(s)) + return p.parseInsideAction(cur) +} + +// parseField scans a field until a terminator +func (p *Parser) parseField(cur *ListNode) error { + p.consumeText() + for p.advance() { + } + value := p.consumeText() + if value == "*" { + cur.append(newWildcard()) + } else { + cur.append(newField(strings.Replace(value, "\\", "", -1))) + } + return p.parseInsideAction(cur) +} + +// advance scans until next non-escaped terminator +func (p *Parser) advance() bool { + r := p.next() + if r == '\\' { + p.next() + } else if isTerminator(r) { + p.backup() + return false + } + return true +} + +// isTerminator reports whether the input is at valid termination character to appear after an identifier. +func isTerminator(r rune) bool { + if isSpace(r) || isEndOfLine(r) { + return true + } + switch r { + case eof, '.', ',', '[', ']', '$', '@', '{', '}': + return true + } + return false +} + +// isSpace reports whether r is a space character. +func isSpace(r rune) bool { + return r == ' ' || r == '\t' +} + +// isEndOfLine reports whether r is an end-of-line character. +func isEndOfLine(r rune) bool { + return r == '\r' || r == '\n' +} + +// isAlphaNumeric reports whether r is an alphabetic, digit, or underscore. +func isAlphaNumeric(r rune) bool { + return r == '_' || unicode.IsLetter(r) || unicode.IsDigit(r) +} diff --git a/vendor/k8s.io/client-go/1.5/pkg/util/labels/doc.go b/vendor/k8s.io/client-go/pkg/util/labels/doc.go similarity index 100% rename from vendor/k8s.io/client-go/1.5/pkg/util/labels/doc.go rename to vendor/k8s.io/client-go/pkg/util/labels/doc.go diff --git a/vendor/k8s.io/client-go/1.5/pkg/util/labels/labels.go b/vendor/k8s.io/client-go/pkg/util/labels/labels.go similarity index 98% rename from vendor/k8s.io/client-go/1.5/pkg/util/labels/labels.go rename to vendor/k8s.io/client-go/pkg/util/labels/labels.go index 37f60cffb..3e1f623e5 100644 --- a/vendor/k8s.io/client-go/1.5/pkg/util/labels/labels.go +++ b/vendor/k8s.io/client-go/pkg/util/labels/labels.go @@ -19,7 +19,7 @@ package labels import ( "fmt" - "k8s.io/client-go/1.5/pkg/api/unversioned" + "k8s.io/client-go/pkg/api/unversioned" ) // Clones the given map and returns a new map with the given key and value added. diff --git a/vendor/k8s.io/client-go/1.5/pkg/util/net/http.go b/vendor/k8s.io/client-go/pkg/util/net/http.go similarity index 100% rename from vendor/k8s.io/client-go/1.5/pkg/util/net/http.go rename to vendor/k8s.io/client-go/pkg/util/net/http.go diff --git a/vendor/k8s.io/client-go/1.5/pkg/util/net/interface.go b/vendor/k8s.io/client-go/pkg/util/net/interface.go similarity index 100% rename from vendor/k8s.io/client-go/1.5/pkg/util/net/interface.go rename to vendor/k8s.io/client-go/pkg/util/net/interface.go diff --git a/vendor/k8s.io/client-go/1.5/pkg/util/net/port_range.go b/vendor/k8s.io/client-go/pkg/util/net/port_range.go similarity index 100% rename from vendor/k8s.io/client-go/1.5/pkg/util/net/port_range.go rename to vendor/k8s.io/client-go/pkg/util/net/port_range.go diff --git a/vendor/k8s.io/client-go/1.5/pkg/util/net/port_split.go b/vendor/k8s.io/client-go/pkg/util/net/port_split.go similarity index 98% rename from vendor/k8s.io/client-go/1.5/pkg/util/net/port_split.go rename to vendor/k8s.io/client-go/pkg/util/net/port_split.go index 74983498d..a341983ad 100644 --- a/vendor/k8s.io/client-go/1.5/pkg/util/net/port_split.go +++ b/vendor/k8s.io/client-go/pkg/util/net/port_split.go @@ -19,7 +19,7 @@ package net import ( "strings" - "k8s.io/client-go/1.5/pkg/util/sets" + "k8s.io/client-go/pkg/util/sets" ) var validSchemes = sets.NewString("http", "https", "") diff --git a/vendor/k8s.io/client-go/1.5/pkg/util/net/util.go b/vendor/k8s.io/client-go/pkg/util/net/util.go similarity index 100% rename from vendor/k8s.io/client-go/1.5/pkg/util/net/util.go rename to vendor/k8s.io/client-go/pkg/util/net/util.go diff --git a/vendor/k8s.io/client-go/1.5/pkg/util/parsers/parsers.go b/vendor/k8s.io/client-go/pkg/util/parsers/parsers.go similarity index 100% rename from vendor/k8s.io/client-go/1.5/pkg/util/parsers/parsers.go rename to vendor/k8s.io/client-go/pkg/util/parsers/parsers.go diff --git a/vendor/k8s.io/client-go/1.5/pkg/util/rand/rand.go b/vendor/k8s.io/client-go/pkg/util/rand/rand.go similarity index 84% rename from vendor/k8s.io/client-go/1.5/pkg/util/rand/rand.go rename to vendor/k8s.io/client-go/pkg/util/rand/rand.go index 134c15260..db109c2cd 100644 --- a/vendor/k8s.io/client-go/1.5/pkg/util/rand/rand.go +++ b/vendor/k8s.io/client-go/pkg/util/rand/rand.go @@ -23,8 +23,6 @@ import ( "time" ) -var letters = []rune("abcdefghijklmnopqrstuvwxyz0123456789") -var numLetters = len(letters) var rng = struct { sync.Mutex rand *rand.Rand @@ -72,12 +70,16 @@ func Perm(n int) []int { return rng.rand.Perm(n) } -// String generates a random alphanumeric string n characters long. This will -// panic if n is less than zero. +// We omit vowels from the set of available characters to reduce the chances +// of "bad words" being formed. +var alphanums = []rune("bcdfghjklmnpqrstvwxz0123456789") + +// String generates a random alphanumeric string, without vowels, which is 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)] + b[i] = alphanums[Intn(len(alphanums))] } return string(b) } diff --git a/vendor/k8s.io/client-go/1.5/pkg/util/runtime/runtime.go b/vendor/k8s.io/client-go/pkg/util/runtime/runtime.go similarity index 76% rename from vendor/k8s.io/client-go/1.5/pkg/util/runtime/runtime.go rename to vendor/k8s.io/client-go/pkg/util/runtime/runtime.go index 976de49d5..748174e19 100644 --- a/vendor/k8s.io/client-go/1.5/pkg/util/runtime/runtime.go +++ b/vendor/k8s.io/client-go/pkg/util/runtime/runtime.go @@ -19,6 +19,8 @@ package runtime import ( "fmt" "runtime" + "sync" + "time" "github.com/golang/glog" ) @@ -79,7 +81,18 @@ func getCallers(r interface{}) string { // ErrorHandlers is a list of functions which will be invoked when an unreturnable // error occurs. -var ErrorHandlers = []func(error){logError} +// TODO(lavalamp): for testability, this and the below HandleError function +// should be packaged up into a testable and reusable object. +var ErrorHandlers = []func(error){ + logError, + (&rudimentaryErrorBackoff{ + lastErrorTime: time.Now(), + // 1ms was the number folks were able to stomach as a global rate limit. + // If you need to log errors more than 1000 times a second you + // should probably consider fixing your code instead. :) + minPeriod: time.Millisecond, + }).OnError, +} // 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 @@ -101,6 +114,26 @@ func logError(err error) { glog.ErrorDepth(2, err) } +type rudimentaryErrorBackoff struct { + minPeriod time.Duration // immutable + // TODO(lavalamp): use the clock for testability. Need to move that + // package for that to be accessible here. + lastErrorTimeLock sync.Mutex + lastErrorTime time.Time +} + +// OnError will block if it is called more often than the embedded period time. +// This will prevent overly tight hot error loops. +func (r *rudimentaryErrorBackoff) OnError(error) { + r.lastErrorTimeLock.Lock() + defer r.lastErrorTimeLock.Unlock() + d := time.Since(r.lastErrorTime) + if d < r.minPeriod { + time.Sleep(r.minPeriod - d) + } + r.lastErrorTime = time.Now() +} + // GetCaller returns the caller of the function that calls it. func GetCaller() string { var pc [1]uintptr diff --git a/vendor/k8s.io/client-go/1.5/pkg/util/sets/byte.go b/vendor/k8s.io/client-go/pkg/util/sets/byte.go similarity index 99% rename from vendor/k8s.io/client-go/1.5/pkg/util/sets/byte.go rename to vendor/k8s.io/client-go/pkg/util/sets/byte.go index 3d6d0dfe4..a460e4b1f 100644 --- a/vendor/k8s.io/client-go/1.5/pkg/util/sets/byte.go +++ b/vendor/k8s.io/client-go/pkg/util/sets/byte.go @@ -1,5 +1,5 @@ /* -Copyright 2016 The Kubernetes Authors. +Copyright 2017 The Kubernetes Authors. 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/vendor/k8s.io/client-go/1.5/pkg/util/sets/doc.go b/vendor/k8s.io/client-go/pkg/util/sets/doc.go similarity index 94% rename from vendor/k8s.io/client-go/1.5/pkg/util/sets/doc.go rename to vendor/k8s.io/client-go/pkg/util/sets/doc.go index c5e541621..28a6a7d5c 100644 --- a/vendor/k8s.io/client-go/1.5/pkg/util/sets/doc.go +++ b/vendor/k8s.io/client-go/pkg/util/sets/doc.go @@ -1,5 +1,5 @@ /* -Copyright 2016 The Kubernetes Authors. +Copyright 2017 The Kubernetes Authors. 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/vendor/k8s.io/client-go/1.5/pkg/util/sets/empty.go b/vendor/k8s.io/client-go/pkg/util/sets/empty.go similarity index 95% rename from vendor/k8s.io/client-go/1.5/pkg/util/sets/empty.go rename to vendor/k8s.io/client-go/pkg/util/sets/empty.go index 5654edd77..cd22b953a 100644 --- a/vendor/k8s.io/client-go/1.5/pkg/util/sets/empty.go +++ b/vendor/k8s.io/client-go/pkg/util/sets/empty.go @@ -1,5 +1,5 @@ /* -Copyright 2016 The Kubernetes Authors. +Copyright 2017 The Kubernetes Authors. 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/vendor/k8s.io/client-go/1.5/pkg/util/sets/int.go b/vendor/k8s.io/client-go/pkg/util/sets/int.go similarity index 99% rename from vendor/k8s.io/client-go/1.5/pkg/util/sets/int.go rename to vendor/k8s.io/client-go/pkg/util/sets/int.go index 6d32f84c7..0614e9fb0 100644 --- a/vendor/k8s.io/client-go/1.5/pkg/util/sets/int.go +++ b/vendor/k8s.io/client-go/pkg/util/sets/int.go @@ -1,5 +1,5 @@ /* -Copyright 2016 The Kubernetes Authors. +Copyright 2017 The Kubernetes Authors. 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/vendor/k8s.io/client-go/1.5/pkg/util/sets/int64.go b/vendor/k8s.io/client-go/pkg/util/sets/int64.go similarity index 99% rename from vendor/k8s.io/client-go/1.5/pkg/util/sets/int64.go rename to vendor/k8s.io/client-go/pkg/util/sets/int64.go index 1de18319b..82e1ba782 100644 --- a/vendor/k8s.io/client-go/1.5/pkg/util/sets/int64.go +++ b/vendor/k8s.io/client-go/pkg/util/sets/int64.go @@ -1,5 +1,5 @@ /* -Copyright 2016 The Kubernetes Authors. +Copyright 2017 The Kubernetes Authors. 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/vendor/k8s.io/client-go/1.5/pkg/util/sets/string.go b/vendor/k8s.io/client-go/pkg/util/sets/string.go similarity index 99% rename from vendor/k8s.io/client-go/1.5/pkg/util/sets/string.go rename to vendor/k8s.io/client-go/pkg/util/sets/string.go index da66eaf8e..baef7a6a2 100644 --- a/vendor/k8s.io/client-go/1.5/pkg/util/sets/string.go +++ b/vendor/k8s.io/client-go/pkg/util/sets/string.go @@ -1,5 +1,5 @@ /* -Copyright 2016 The Kubernetes Authors. +Copyright 2017 The Kubernetes Authors. 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/vendor/k8s.io/client-go/1.5/pkg/util/template.go b/vendor/k8s.io/client-go/pkg/util/template.go similarity index 100% rename from vendor/k8s.io/client-go/1.5/pkg/util/template.go rename to vendor/k8s.io/client-go/pkg/util/template.go diff --git a/vendor/k8s.io/client-go/1.5/pkg/util/trace.go b/vendor/k8s.io/client-go/pkg/util/trace.go similarity index 100% rename from vendor/k8s.io/client-go/1.5/pkg/util/trace.go rename to vendor/k8s.io/client-go/pkg/util/trace.go diff --git a/vendor/k8s.io/client-go/pkg/util/trie.go b/vendor/k8s.io/client-go/pkg/util/trie.go new file mode 100644 index 000000000..0eeac436d --- /dev/null +++ b/vendor/k8s.io/client-go/pkg/util/trie.go @@ -0,0 +1,79 @@ +/* +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 + +// A simple trie implementation with Add an HasPrefix methods only. +type Trie struct { + children map[byte]*Trie + wordTail bool + word string +} + +// CreateTrie creates a Trie and add all strings in the provided list to it. +func CreateTrie(list []string) Trie { + ret := Trie{ + children: make(map[byte]*Trie), + wordTail: false, + } + for _, v := range list { + ret.Add(v) + } + return ret +} + +// Add adds a word to this trie +func (t *Trie) Add(v string) { + root := t + for _, b := range []byte(v) { + child, exists := root.children[b] + if !exists { + child = &Trie{ + children: make(map[byte]*Trie), + wordTail: false, + } + root.children[b] = child + } + root = child + } + root.wordTail = true + root.word = v +} + +// HasPrefix returns true of v has any of the prefixes stored in this trie. +func (t *Trie) HasPrefix(v string) bool { + _, has := t.GetPrefix(v) + return has +} + +// GetPrefix is like HasPrefix but return the prefix in case of match or empty string otherwise. +func (t *Trie) GetPrefix(v string) (string, bool) { + root := t + if root.wordTail { + return root.word, true + } + for _, b := range []byte(v) { + child, exists := root.children[b] + if !exists { + return "", false + } + if child.wordTail { + return child.word, true + } + root = child + } + return "", false +} diff --git a/vendor/k8s.io/client-go/1.5/pkg/util/umask.go b/vendor/k8s.io/client-go/pkg/util/umask.go similarity index 100% rename from vendor/k8s.io/client-go/1.5/pkg/util/umask.go rename to vendor/k8s.io/client-go/pkg/util/umask.go diff --git a/vendor/k8s.io/client-go/1.5/pkg/util/umask_windows.go b/vendor/k8s.io/client-go/pkg/util/umask_windows.go similarity index 100% rename from vendor/k8s.io/client-go/1.5/pkg/util/umask_windows.go rename to vendor/k8s.io/client-go/pkg/util/umask_windows.go diff --git a/vendor/k8s.io/client-go/1.5/pkg/util/util.go b/vendor/k8s.io/client-go/pkg/util/util.go similarity index 82% rename from vendor/k8s.io/client-go/1.5/pkg/util/util.go rename to vendor/k8s.io/client-go/pkg/util/util.go index 7a9414957..356b295a3 100644 --- a/vendor/k8s.io/client-go/1.5/pkg/util/util.go +++ b/vendor/k8s.io/client-go/pkg/util/util.go @@ -84,36 +84,20 @@ func FileExists(filename string) (bool, error) { 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) { +// ReadDirNoStat returns a string of files/directories contained +// in dirname without calling lstat on them. +func ReadDirNoStat(dirname string) ([]string, error) { if dirname == "" { dirname = "." } f, err := os.Open(dirname) if err != nil { - return nil, nil, err + return 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 + return f.Readdirnames(-1) } // IntPtr returns a pointer to an int diff --git a/vendor/k8s.io/client-go/1.5/pkg/util/uuid/uuid.go b/vendor/k8s.io/client-go/pkg/util/uuid/uuid.go similarity index 97% rename from vendor/k8s.io/client-go/1.5/pkg/util/uuid/uuid.go rename to vendor/k8s.io/client-go/pkg/util/uuid/uuid.go index d1cbda5da..ad0e8a6a4 100644 --- a/vendor/k8s.io/client-go/1.5/pkg/util/uuid/uuid.go +++ b/vendor/k8s.io/client-go/pkg/util/uuid/uuid.go @@ -20,7 +20,7 @@ import ( "sync" "github.com/pborman/uuid" - "k8s.io/client-go/1.5/pkg/types" + "k8s.io/client-go/pkg/types" ) var uuidLock sync.Mutex diff --git a/vendor/k8s.io/client-go/1.5/pkg/util/validation/field/errors.go b/vendor/k8s.io/client-go/pkg/util/validation/field/errors.go similarity index 99% rename from vendor/k8s.io/client-go/1.5/pkg/util/validation/field/errors.go rename to vendor/k8s.io/client-go/pkg/util/validation/field/errors.go index 0e303e37a..6d11ec616 100644 --- a/vendor/k8s.io/client-go/1.5/pkg/util/validation/field/errors.go +++ b/vendor/k8s.io/client-go/pkg/util/validation/field/errors.go @@ -21,7 +21,7 @@ import ( "fmt" "strings" - utilerrors "k8s.io/client-go/1.5/pkg/util/errors" + utilerrors "k8s.io/client-go/pkg/util/errors" ) // Error is an implementation of the 'error' interface, which represents a diff --git a/vendor/k8s.io/client-go/1.5/pkg/util/validation/field/path.go b/vendor/k8s.io/client-go/pkg/util/validation/field/path.go similarity index 100% rename from vendor/k8s.io/client-go/1.5/pkg/util/validation/field/path.go rename to vendor/k8s.io/client-go/pkg/util/validation/field/path.go diff --git a/vendor/k8s.io/client-go/1.5/pkg/util/validation/validation.go b/vendor/k8s.io/client-go/pkg/util/validation/validation.go similarity index 99% rename from vendor/k8s.io/client-go/1.5/pkg/util/validation/validation.go rename to vendor/k8s.io/client-go/pkg/util/validation/validation.go index aac2357d7..aaf631908 100644 --- a/vendor/k8s.io/client-go/1.5/pkg/util/validation/validation.go +++ b/vendor/k8s.io/client-go/pkg/util/validation/validation.go @@ -225,7 +225,7 @@ func IsValidPortName(port string) []string { 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)") + errs = append(errs, "must contain at least one letter or number (a-z, 0-9)") } if strings.Contains(port, "--") { errs = append(errs, "must not contain consecutive hyphens") diff --git a/vendor/k8s.io/client-go/1.5/pkg/util/wait/doc.go b/vendor/k8s.io/client-go/pkg/util/wait/doc.go similarity index 100% rename from vendor/k8s.io/client-go/1.5/pkg/util/wait/doc.go rename to vendor/k8s.io/client-go/pkg/util/wait/doc.go diff --git a/vendor/k8s.io/client-go/1.5/pkg/util/wait/wait.go b/vendor/k8s.io/client-go/pkg/util/wait/wait.go similarity index 61% rename from vendor/k8s.io/client-go/1.5/pkg/util/wait/wait.go rename to vendor/k8s.io/client-go/pkg/util/wait/wait.go index b58a6288d..5bda688b0 100644 --- a/vendor/k8s.io/client-go/1.5/pkg/util/wait/wait.go +++ b/vendor/k8s.io/client-go/pkg/util/wait/wait.go @@ -20,6 +20,8 @@ import ( "errors" "math/rand" "time" + + "k8s.io/client-go/pkg/util/runtime" ) // For any test of the style: @@ -34,33 +36,42 @@ 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 +// Forever calls f every period for ever. +// +// 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). +// +// Until is syntactic sugar on top of JitterUntil with zero jitter factor and +// 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). +// 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. +// If jitterFactor is not positive, the period is unchanged and not jitterd. +// +// If slidingis true, the period is computed after f runs. If it is false then +// period includes the runtime for f. +// +// Close stopCh to stop. f may not be invoked if stop channel is already +// closed. Pass NeverStop to if you don't want it stop. func JitterUntil(f func(), period time.Duration, jitterFactor float64, sliding bool, stopCh <-chan struct{}) { for { @@ -81,6 +92,7 @@ func JitterUntil(f func(), period time.Duration, jitterFactor float64, sliding b } func() { + defer runtime.HandleCrash() f() }() @@ -101,9 +113,11 @@ func JitterUntil(f func(), period time.Duration, jitterFactor float64, sliding b } } -// 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. +// Jitter returns a time.Duration between duration and duration + maxFactor * +// duration. +// +// This allows 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 @@ -112,26 +126,31 @@ func Jitter(duration time.Duration, maxFactor float64) time.Duration { return wait } -// ErrWaitTimeout is returned when the condition exited without success +// 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. +// Backoff holds parameters applied to a Backoff function. type Backoff struct { - Duration time.Duration - Factor float64 - Jitter float64 - Steps int + Duration time.Duration // the base duration + Factor float64 // Duration is multipled by factor each iteration + Jitter float64 // The amount of jitter applied each iteration + Steps int // Exit with error after this many steps } -// 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. +// ExponentialBackoff repeats a condition check with exponential backoff. +// +// It checks the condition 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++ { @@ -151,22 +170,33 @@ func ExponentialBackoff(backoff Backoff, condition ConditionFunc) error { } // 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. +// is reached. +// +// Poll always waits the interval before the run of 'condition'. +// 'condition' will always be invoked at least once. +// +// 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) + return WaitFor(wait, condition, NeverStop) } -// PollImmediate is identical to Poll, except that it performs the first check -// immediately, not waiting interval beforehand. +// PollImmediate tries a condition func until it returns true, an error, or the timeout +// is reached. +// +// Poll always checks 'condition' before waiting for the interval. 'condition' +// will always be invoked at least once. +// +// 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. func PollImmediate(interval, timeout time.Duration, condition ConditionFunc) error { return pollImmediateInternal(poller(interval, timeout), condition) } @@ -182,14 +212,40 @@ func pollImmediateInternal(wait WaitFunc, condition ConditionFunc) error { return pollInternal(wait, condition) } -// PollInfinite polls forever. +// PollInfinite tries a condition func until it returns true or an error +// +// PollInfinite always waits the interval before the run of 'condition'. +// +// Some intervals may be missed if the condition takes too long or the time +// window is too short. func PollInfinite(interval time.Duration, condition ConditionFunc) error { done := make(chan struct{}) defer close(done) return PollUntil(interval, condition, done) } -// PollUntil is like Poll, but it takes a stop change instead of total duration +// PollImmediateInfinite tries a condition func until it returns true or an error +// +// PollImmediateInfinite runs the 'condition' before waiting for the interval. +// +// Some intervals may be missed if the condition takes too long or the time +// window is too short. +func PollImmediateInfinite(interval time.Duration, condition ConditionFunc) error { + done, err := condition() + if err != nil { + return err + } + if done { + return nil + } + return PollInfinite(interval, condition) +} + +// PollUntil tries a condition func until it returns true, an error or stopCh is +// closed. +// +// PolUntil always waits interval before the first run of 'condition'. +// 'condition' will always be invoked at least once. func PollUntil(interval time.Duration, condition ConditionFunc, stopCh <-chan struct{}) error { return WaitFor(poller(interval, 0), condition, stopCh) } @@ -198,11 +254,16 @@ func PollUntil(interval time.Duration, condition ConditionFunc, stopCh <-chan st // 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. +// WaitFor continually checks 'fn' as driven by 'wait'. +// +// 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 { @@ -221,11 +282,14 @@ func WaitFor(wait WaitFunc, fn ConditionFunc, done <-chan struct{}) error { 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. +// poller returns a WaitFunc that will send to the channel every interval until +// timeout has elapsed and then closes the channel. +// +// Over very short intervals you may receive no ticks before the channel is +// closed. A timeout of 0 is interpreted as an infinity. +// +// Output ticks are not buffered. If the channel is not ready to receive an +// item, the tick is skipped. func poller(interval, timeout time.Duration) WaitFunc { return WaitFunc(func(done <-chan struct{}) <-chan struct{} { ch := make(chan struct{}) diff --git a/vendor/k8s.io/client-go/1.5/pkg/util/yaml/decoder.go b/vendor/k8s.io/client-go/pkg/util/yaml/decoder.go similarity index 93% rename from vendor/k8s.io/client-go/1.5/pkg/util/yaml/decoder.go rename to vendor/k8s.io/client-go/pkg/util/yaml/decoder.go index c65c2d6ba..ed503d039 100644 --- a/vendor/k8s.io/client-go/1.5/pkg/util/yaml/decoder.go +++ b/vendor/k8s.io/client-go/pkg/util/yaml/decoder.go @@ -137,7 +137,7 @@ func (d *YAMLDecoder) Close() error { } const yamlSeparator = "\n---" -const separator = "---\n" +const separator = "---" // splitYAMLDocument is a bufio.SplitFunc for splitting YAML streams into individual documents. func splitYAMLDocument(data []byte, atEOF bool) (advance int, token []byte, err error) { @@ -246,16 +246,28 @@ func (r *YAMLReader) Read() ([]byte, error) { return nil, err } - if string(line) == separator || err == io.EOF { + sep := len([]byte(separator)) + if i := bytes.Index(line, []byte(separator)); i == 0 { + // We have a potential document terminator + i += sep + after := line[i:] + if len(strings.TrimRightFunc(string(after), unicode.IsSpace)) == 0 { + if buffer.Len() != 0 { + return buffer.Bytes(), nil + } + if err == io.EOF { + return nil, err + } + } + } + if err == io.EOF { if buffer.Len() != 0 { + // If we're at EOF, we have a final, non-terminated line. Return it. return buffer.Bytes(), nil } - if err == io.EOF { - return nil, err - } - } else { - buffer.Write(line) + return nil, err } + buffer.Write(line) } } diff --git a/vendor/k8s.io/client-go/1.5/pkg/version/base.go b/vendor/k8s.io/client-go/pkg/version/base.go similarity index 93% rename from vendor/k8s.io/client-go/1.5/pkg/version/base.go rename to vendor/k8s.io/client-go/pkg/version/base.go index c377705fe..cb6223b6c 100644 --- a/vendor/k8s.io/client-go/1.5/pkg/version/base.go +++ b/vendor/k8s.io/client-go/pkg/version/base.go @@ -39,8 +39,8 @@ var ( // 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 "+" + gitMajor string = "1" // major version, always numeric + gitMinor string = "5+" // minor version, numeric possibly followed by "+" // semantic version, derived by build scripts (see // https://github.com/kubernetes/kubernetes/blob/master/docs/design/versioning.md @@ -51,7 +51,7 @@ var ( // 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$" + gitVersion string = "v1.5.3-beta.0+$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" diff --git a/vendor/k8s.io/client-go/1.5/pkg/version/doc.go b/vendor/k8s.io/client-go/pkg/version/doc.go similarity index 100% rename from vendor/k8s.io/client-go/1.5/pkg/version/doc.go rename to vendor/k8s.io/client-go/pkg/version/doc.go diff --git a/vendor/k8s.io/client-go/1.5/pkg/version/semver.go b/vendor/k8s.io/client-go/pkg/version/semver.go similarity index 100% rename from vendor/k8s.io/client-go/1.5/pkg/version/semver.go rename to vendor/k8s.io/client-go/pkg/version/semver.go diff --git a/vendor/k8s.io/client-go/1.5/pkg/version/version.go b/vendor/k8s.io/client-go/pkg/version/version.go similarity index 100% rename from vendor/k8s.io/client-go/1.5/pkg/version/version.go rename to vendor/k8s.io/client-go/pkg/version/version.go diff --git a/vendor/k8s.io/client-go/1.5/pkg/watch/doc.go b/vendor/k8s.io/client-go/pkg/watch/doc.go similarity index 100% rename from vendor/k8s.io/client-go/1.5/pkg/watch/doc.go rename to vendor/k8s.io/client-go/pkg/watch/doc.go diff --git a/vendor/k8s.io/client-go/1.5/pkg/watch/filter.go b/vendor/k8s.io/client-go/pkg/watch/filter.go similarity index 100% rename from vendor/k8s.io/client-go/1.5/pkg/watch/filter.go rename to vendor/k8s.io/client-go/pkg/watch/filter.go diff --git a/vendor/k8s.io/client-go/1.5/pkg/watch/mux.go b/vendor/k8s.io/client-go/pkg/watch/mux.go similarity index 98% rename from vendor/k8s.io/client-go/1.5/pkg/watch/mux.go rename to vendor/k8s.io/client-go/pkg/watch/mux.go index 65b6609a1..3c7cfd1b1 100644 --- a/vendor/k8s.io/client-go/1.5/pkg/watch/mux.go +++ b/vendor/k8s.io/client-go/pkg/watch/mux.go @@ -19,8 +19,8 @@ package watch import ( "sync" - "k8s.io/client-go/1.5/pkg/api/unversioned" - "k8s.io/client-go/1.5/pkg/runtime" + "k8s.io/client-go/pkg/api/unversioned" + "k8s.io/client-go/pkg/runtime" ) // FullChannelBehavior controls how the Broadcaster reacts if a watcher's watch diff --git a/vendor/k8s.io/client-go/1.5/pkg/watch/streamwatcher.go b/vendor/k8s.io/client-go/pkg/watch/streamwatcher.go similarity index 96% rename from vendor/k8s.io/client-go/1.5/pkg/watch/streamwatcher.go rename to vendor/k8s.io/client-go/pkg/watch/streamwatcher.go index 92609a06c..5b0f6882f 100644 --- a/vendor/k8s.io/client-go/1.5/pkg/watch/streamwatcher.go +++ b/vendor/k8s.io/client-go/pkg/watch/streamwatcher.go @@ -21,9 +21,9 @@ import ( "sync" "github.com/golang/glog" - "k8s.io/client-go/1.5/pkg/runtime" - "k8s.io/client-go/1.5/pkg/util/net" - utilruntime "k8s.io/client-go/1.5/pkg/util/runtime" + "k8s.io/client-go/pkg/runtime" + "k8s.io/client-go/pkg/util/net" + utilruntime "k8s.io/client-go/pkg/util/runtime" ) // Decoder allows StreamWatcher to watch any stream for which a Decoder can be written. diff --git a/vendor/k8s.io/client-go/1.5/pkg/watch/until.go b/vendor/k8s.io/client-go/pkg/watch/until.go similarity index 95% rename from vendor/k8s.io/client-go/1.5/pkg/watch/until.go rename to vendor/k8s.io/client-go/pkg/watch/until.go index cd46b099c..f05eecc82 100644 --- a/vendor/k8s.io/client-go/1.5/pkg/watch/until.go +++ b/vendor/k8s.io/client-go/pkg/watch/until.go @@ -19,7 +19,7 @@ package watch import ( "time" - "k8s.io/client-go/1.5/pkg/util/wait" + "k8s.io/client-go/pkg/util/wait" ) // ConditionFunc returns true if the condition has been reached, false if it has not been reached yet, @@ -32,6 +32,7 @@ type ConditionFunc func(event Event) (bool, error) // 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. +// A zero timeout means to wait forever. func Until(timeout time.Duration, watcher Interface, conditions ...ConditionFunc) (*Event, error) { ch := watcher.ResultChan() defer watcher.Stop() @@ -40,7 +41,7 @@ func Until(timeout time.Duration, watcher Interface, conditions ...ConditionFunc after = time.After(timeout) } else { ch := make(chan time.Time) - close(ch) + defer close(ch) after = ch } var lastEvent *Event @@ -52,7 +53,7 @@ func Until(timeout time.Duration, watcher Interface, conditions ...ConditionFunc return lastEvent, err } if done { - break + continue } } ConditionSucceeded: diff --git a/vendor/k8s.io/client-go/1.5/pkg/watch/versioned/decoder.go b/vendor/k8s.io/client-go/pkg/watch/versioned/decoder.go similarity index 94% rename from vendor/k8s.io/client-go/1.5/pkg/watch/versioned/decoder.go rename to vendor/k8s.io/client-go/pkg/watch/versioned/decoder.go index 150623348..25390c5e4 100644 --- a/vendor/k8s.io/client-go/1.5/pkg/watch/versioned/decoder.go +++ b/vendor/k8s.io/client-go/pkg/watch/versioned/decoder.go @@ -19,9 +19,9 @@ package versioned import ( "fmt" - "k8s.io/client-go/1.5/pkg/runtime" - "k8s.io/client-go/1.5/pkg/runtime/serializer/streaming" - "k8s.io/client-go/1.5/pkg/watch" + "k8s.io/client-go/pkg/runtime" + "k8s.io/client-go/pkg/runtime/serializer/streaming" + "k8s.io/client-go/pkg/watch" ) // Decoder implements the watch.Decoder interface for io.ReadClosers that diff --git a/vendor/k8s.io/client-go/1.5/pkg/watch/versioned/encoder.go b/vendor/k8s.io/client-go/pkg/watch/versioned/encoder.go similarity index 91% rename from vendor/k8s.io/client-go/1.5/pkg/watch/versioned/encoder.go rename to vendor/k8s.io/client-go/pkg/watch/versioned/encoder.go index 0f499d4bb..3d7f436f8 100644 --- a/vendor/k8s.io/client-go/1.5/pkg/watch/versioned/encoder.go +++ b/vendor/k8s.io/client-go/pkg/watch/versioned/encoder.go @@ -19,9 +19,9 @@ package versioned import ( "encoding/json" - "k8s.io/client-go/1.5/pkg/runtime" - "k8s.io/client-go/1.5/pkg/runtime/serializer/streaming" - "k8s.io/client-go/1.5/pkg/watch" + "k8s.io/client-go/pkg/runtime" + "k8s.io/client-go/pkg/runtime/serializer/streaming" + "k8s.io/client-go/pkg/watch" ) // Encoder serializes watch.Events into io.Writer. The internal objects diff --git a/vendor/k8s.io/client-go/1.5/pkg/watch/versioned/generated.pb.go b/vendor/k8s.io/client-go/pkg/watch/versioned/generated.pb.go similarity index 81% rename from vendor/k8s.io/client-go/1.5/pkg/watch/versioned/generated.pb.go rename to vendor/k8s.io/client-go/pkg/watch/versioned/generated.pb.go index 241878de1..45be02d3d 100644 --- a/vendor/k8s.io/client-go/1.5/pkg/watch/versioned/generated.pb.go +++ b/vendor/k8s.io/client-go/pkg/watch/versioned/generated.pb.go @@ -1,5 +1,5 @@ /* -Copyright 2016 The Kubernetes Authors. +Copyright 2017 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -52,7 +52,7 @@ func (*Event) ProtoMessage() {} func (*Event) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{0} } func init() { - proto.RegisterType((*Event)(nil), "k8s.io.client-go.1.5.pkg.watch.versioned.Event") + proto.RegisterType((*Event)(nil), "k8s.io.client-go.pkg.watch.versioned.Event") } func (m *Event) Marshal() (data []byte, err error) { size := m.Size() @@ -368,23 +368,23 @@ var ( ) 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, + // 280 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x09, 0x6e, 0x88, 0x02, 0xff, 0x6c, 0x90, 0x41, 0x4b, 0xc3, 0x30, + 0x18, 0x86, 0x1b, 0x99, 0x83, 0x55, 0xf1, 0xd0, 0xd3, 0xe8, 0x21, 0x2b, 0x82, 0x30, 0x18, 0x4b, + 0x50, 0x10, 0x3c, 0x17, 0x76, 0x16, 0xaa, 0x27, 0x6f, 0x6d, 0xf7, 0x99, 0xc5, 0xba, 0xa4, 0xa4, + 0x5f, 0x37, 0x77, 0x11, 0x7f, 0x82, 0x3f, 0xab, 0xc7, 0x1d, 0x3d, 0x0d, 0x5b, 0xff, 0x88, 0x98, + 0x95, 0x09, 0xa3, 0xb7, 0xbc, 0x24, 0xcf, 0xc3, 0xfb, 0xc6, 0xbd, 0xcd, 0xee, 0x0a, 0x26, 0x35, + 0xcf, 0xca, 0x04, 0x8c, 0x02, 0x84, 0x82, 0xe7, 0x99, 0xe0, 0xeb, 0x18, 0xd3, 0x05, 0x5f, 0x81, + 0x29, 0xa4, 0x56, 0x30, 0xe7, 0x02, 0x14, 0x98, 0x18, 0x61, 0xce, 0x72, 0xa3, 0x51, 0x7b, 0x57, + 0x7b, 0x8c, 0xfd, 0x63, 0x2c, 0xcf, 0x04, 0xb3, 0x18, 0x3b, 0x60, 0xfe, 0x54, 0x48, 0x5c, 0x94, + 0x09, 0x4b, 0xf5, 0x92, 0x0b, 0x2d, 0x34, 0xb7, 0x74, 0x52, 0x3e, 0xdb, 0x64, 0x83, 0x3d, 0xed, + 0xad, 0xfe, 0xb4, 0xbb, 0x8c, 0x29, 0x15, 0xca, 0x25, 0x1c, 0x97, 0xf0, 0xaf, 0xbb, 0x9f, 0x97, + 0x28, 0x5f, 0xb9, 0x54, 0x58, 0xa0, 0x39, 0x46, 0x2e, 0xdf, 0xdd, 0xd3, 0xd9, 0x0a, 0x14, 0x7a, + 0x81, 0xdb, 0xc3, 0x4d, 0x0e, 0x43, 0x12, 0x90, 0xf1, 0x20, 0x3c, 0xaf, 0x76, 0x23, 0xa7, 0xd9, + 0x8d, 0x7a, 0x8f, 0x9b, 0x1c, 0x22, 0x7b, 0xe3, 0x3d, 0xb8, 0x7d, 0x9d, 0xbc, 0x40, 0x8a, 0xc3, + 0x93, 0x80, 0x8c, 0xcf, 0x6e, 0x26, 0xac, 0x7b, 0x73, 0xdb, 0x8e, 0x45, 0xf1, 0x7a, 0xf6, 0x86, + 0xa0, 0xfe, 0xa6, 0x87, 0x17, 0xad, 0xb0, 0x7f, 0x6f, 0x15, 0x51, 0xab, 0x0a, 0x27, 0x55, 0x4d, + 0x9d, 0x6d, 0x4d, 0x9d, 0xaf, 0x9a, 0x3a, 0x1f, 0x0d, 0x25, 0x55, 0x43, 0xc9, 0xb6, 0xa1, 0xe4, + 0xbb, 0xa1, 0xe4, 0xf3, 0x87, 0x3a, 0x4f, 0x83, 0xc3, 0xef, 0xfd, 0x06, 0x00, 0x00, 0xff, 0xff, + 0x23, 0x3d, 0x7b, 0x7e, 0x9c, 0x01, 0x00, 0x00, } diff --git a/vendor/k8s.io/client-go/1.5/pkg/watch/versioned/register.go b/vendor/k8s.io/client-go/pkg/watch/versioned/register.go similarity index 94% rename from vendor/k8s.io/client-go/1.5/pkg/watch/versioned/register.go rename to vendor/k8s.io/client-go/pkg/watch/versioned/register.go index a1eaec494..2223a934b 100644 --- a/vendor/k8s.io/client-go/1.5/pkg/watch/versioned/register.go +++ b/vendor/k8s.io/client-go/pkg/watch/versioned/register.go @@ -17,10 +17,10 @@ limitations under the License. package versioned import ( - "k8s.io/client-go/1.5/pkg/api/unversioned" - "k8s.io/client-go/1.5/pkg/conversion" - "k8s.io/client-go/1.5/pkg/runtime" - "k8s.io/client-go/1.5/pkg/watch" + "k8s.io/client-go/pkg/api/unversioned" + "k8s.io/client-go/pkg/conversion" + "k8s.io/client-go/pkg/runtime" + "k8s.io/client-go/pkg/watch" ) // WatchEventKind is name reserved for serializing watch events. diff --git a/vendor/k8s.io/client-go/1.5/pkg/watch/versioned/types.go b/vendor/k8s.io/client-go/pkg/watch/versioned/types.go similarity index 97% rename from vendor/k8s.io/client-go/1.5/pkg/watch/versioned/types.go rename to vendor/k8s.io/client-go/pkg/watch/versioned/types.go index f73cb68db..16b8b02ec 100644 --- a/vendor/k8s.io/client-go/1.5/pkg/watch/versioned/types.go +++ b/vendor/k8s.io/client-go/pkg/watch/versioned/types.go @@ -19,7 +19,7 @@ limitations under the License. package versioned import ( - "k8s.io/client-go/1.5/pkg/runtime" + "k8s.io/client-go/pkg/runtime" ) // Event represents a single event to a watched resource. diff --git a/vendor/k8s.io/client-go/1.5/pkg/watch/watch.go b/vendor/k8s.io/client-go/pkg/watch/watch.go similarity index 60% rename from vendor/k8s.io/client-go/1.5/pkg/watch/watch.go rename to vendor/k8s.io/client-go/pkg/watch/watch.go index 861932af3..0995e03c6 100644 --- a/vendor/k8s.io/client-go/1.5/pkg/watch/watch.go +++ b/vendor/k8s.io/client-go/pkg/watch/watch.go @@ -17,9 +17,10 @@ limitations under the License. package watch import ( + "fmt" "sync" - "k8s.io/client-go/1.5/pkg/runtime" + "k8s.io/client-go/pkg/runtime" "github.com/golang/glog" ) @@ -44,6 +45,8 @@ const ( Modified EventType = "MODIFIED" Deleted EventType = "DELETED" Error EventType = "ERROR" + + DefaultChanSize int32 = 100 ) // Event represents a single event to a watched resource. @@ -91,7 +94,7 @@ func NewFake() *FakeWatcher { } } -func NewFakeWithChanSize(size int) *FakeWatcher { +func NewFakeWithChanSize(size int, blocking bool) *FakeWatcher { return &FakeWatcher{ result: make(chan Event, size), } @@ -150,3 +153,117 @@ func (f *FakeWatcher) Error(errValue runtime.Object) { func (f *FakeWatcher) Action(action EventType, obj runtime.Object) { f.result <- Event{action, obj} } + +// RaceFreeFakeWatcher lets you test anything that consumes a watch.Interface; threadsafe. +type RaceFreeFakeWatcher struct { + result chan Event + Stopped bool + sync.Mutex +} + +func NewRaceFreeFake() *RaceFreeFakeWatcher { + return &RaceFreeFakeWatcher{ + result: make(chan Event, DefaultChanSize), + } +} + +// Stop implements Interface.Stop(). +func (f *RaceFreeFakeWatcher) Stop() { + f.Lock() + defer f.Unlock() + if !f.Stopped { + glog.V(4).Infof("Stopping fake watcher.") + close(f.result) + f.Stopped = true + } +} + +func (f *RaceFreeFakeWatcher) IsStopped() bool { + f.Lock() + defer f.Unlock() + return f.Stopped +} + +// Reset prepares the watcher to be reused. +func (f *RaceFreeFakeWatcher) Reset() { + f.Lock() + defer f.Unlock() + f.Stopped = false + f.result = make(chan Event, DefaultChanSize) +} + +func (f *RaceFreeFakeWatcher) ResultChan() <-chan Event { + f.Lock() + defer f.Unlock() + return f.result +} + +// Add sends an add event. +func (f *RaceFreeFakeWatcher) Add(obj runtime.Object) { + f.Lock() + defer f.Unlock() + if !f.Stopped { + select { + case f.result <- Event{Added, obj}: + return + default: + panic(fmt.Errorf("channel full")) + } + } +} + +// Modify sends a modify event. +func (f *RaceFreeFakeWatcher) Modify(obj runtime.Object) { + f.Lock() + defer f.Unlock() + if !f.Stopped { + select { + case f.result <- Event{Modified, obj}: + return + default: + panic(fmt.Errorf("channel full")) + } + } +} + +// Delete sends a delete event. +func (f *RaceFreeFakeWatcher) Delete(lastValue runtime.Object) { + f.Lock() + defer f.Unlock() + if !f.Stopped { + select { + case f.result <- Event{Deleted, lastValue}: + return + default: + panic(fmt.Errorf("channel full")) + } + } +} + +// Error sends an Error event. +func (f *RaceFreeFakeWatcher) Error(errValue runtime.Object) { + f.Lock() + defer f.Unlock() + if !f.Stopped { + select { + case f.result <- Event{Error, errValue}: + return + default: + panic(fmt.Errorf("channel full")) + } + } +} + +// Action sends an event of the requested type, for table-based testing. +func (f *RaceFreeFakeWatcher) Action(action EventType, obj runtime.Object) { + f.Lock() + defer f.Unlock() + if !f.Stopped { + select { + case f.result <- Event{action, obj}: + return + default: + panic(fmt.Errorf("channel full")) + } + } +} diff --git a/vendor/k8s.io/client-go/plugin/pkg/client/auth/gcp/gcp.go b/vendor/k8s.io/client-go/plugin/pkg/client/auth/gcp/gcp.go new file mode 100644 index 000000000..c187bdd00 --- /dev/null +++ b/vendor/k8s.io/client-go/plugin/pkg/client/auth/gcp/gcp.go @@ -0,0 +1,274 @@ +/* +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 gcp + +import ( + "bytes" + "encoding/json" + "fmt" + "net/http" + "os/exec" + "strings" + "sync" + "time" + + "github.com/golang/glog" + "golang.org/x/net/context" + "golang.org/x/oauth2" + "golang.org/x/oauth2/google" + "k8s.io/client-go/pkg/util/jsonpath" + "k8s.io/client-go/pkg/util/yaml" + "k8s.io/client-go/rest" +) + +func init() { + if err := rest.RegisterAuthProviderPlugin("gcp", newGCPAuthProvider); err != nil { + glog.Fatalf("Failed to register gcp auth plugin: %v", err) + } +} + +// gcpAuthProvider is an auth provider plugin that uses GCP credentials to provide +// tokens for kubectl to authenticate itself to the apiserver. A sample json config +// is provided below with all recognized options described. +// +// { +// 'auth-provider': { +// # Required +// "name": "gcp", +// +// 'config': { +// # Caching options +// +// # Raw string data representing cached access token. +// "access-token": "ya29.CjWdA4GiBPTt", +// # RFC3339Nano expiration timestamp for cached access token. +// "expiry": "2016-10-31 22:31:9.123", +// +// # Command execution options +// # These options direct the plugin to execute a specified command and parse +// # token and expiry time from the output of the command. +// +// # Command to execute for access token. String is split on whitespace +// # with first field treated as the executable, remaining fields as args. +// # Command output will be parsed as JSON. +// "cmd-path": "/usr/bin/gcloud config config-helper --output=json", +// +// # JSONPath to the string field that represents the access token in +// # command output. If omitted, defaults to "{.access_token}". +// "token-key": "{.credential.access_token}", +// +// # JSONPath to the string field that represents expiration timestamp +// # of the access token in the command output. If omitted, defaults to +// # "{.token_expiry}" +// "expiry-key": ""{.credential.token_expiry}", +// +// # golang reference time in the format that the expiration timestamp uses. +// # If omitted, defaults to time.RFC3339Nano +// "time-fmt": "2006-01-02 15:04:05.999999999" +// } +// } +// } +// +type gcpAuthProvider struct { + tokenSource oauth2.TokenSource + persister rest.AuthProviderConfigPersister +} + +func newGCPAuthProvider(_ string, gcpConfig map[string]string, persister rest.AuthProviderConfigPersister) (rest.AuthProvider, error) { + cmd, useCmd := gcpConfig["cmd-path"] + var ts oauth2.TokenSource + var err error + if useCmd { + ts, err = newCmdTokenSource(cmd, gcpConfig["token-key"], gcpConfig["expiry-key"], gcpConfig["time-fmt"]) + } else { + ts, err = google.DefaultTokenSource(context.Background(), "https://www.googleapis.com/auth/cloud-platform") + } + if err != nil { + return nil, err + } + cts, err := newCachedTokenSource(gcpConfig["access-token"], gcpConfig["expiry"], persister, ts, gcpConfig) + if err != nil { + return nil, err + } + return &gcpAuthProvider{cts, persister}, nil +} + +func (g *gcpAuthProvider) WrapTransport(rt http.RoundTripper) http.RoundTripper { + return &oauth2.Transport{ + Source: g.tokenSource, + Base: rt, + } +} + +func (g *gcpAuthProvider) Login() error { return nil } + +type cachedTokenSource struct { + lk sync.Mutex + source oauth2.TokenSource + accessToken string + expiry time.Time + persister rest.AuthProviderConfigPersister + cache map[string]string +} + +func newCachedTokenSource(accessToken, expiry string, persister rest.AuthProviderConfigPersister, ts oauth2.TokenSource, cache map[string]string) (*cachedTokenSource, error) { + var expiryTime time.Time + if parsedTime, err := time.Parse(time.RFC3339Nano, expiry); err == nil { + expiryTime = parsedTime + } + if cache == nil { + cache = make(map[string]string) + } + return &cachedTokenSource{ + source: ts, + accessToken: accessToken, + expiry: expiryTime, + persister: persister, + cache: cache, + }, nil +} + +func (t *cachedTokenSource) Token() (*oauth2.Token, error) { + tok := t.cachedToken() + if tok.Valid() && !tok.Expiry.IsZero() { + return tok, nil + } + tok, err := t.source.Token() + if err != nil { + return nil, err + } + cache := t.update(tok) + if t.persister != nil { + if err := t.persister.Persist(cache); err != nil { + glog.V(4).Infof("Failed to persist token: %v", err) + } + } + return tok, nil +} + +func (t *cachedTokenSource) cachedToken() *oauth2.Token { + t.lk.Lock() + defer t.lk.Unlock() + return &oauth2.Token{ + AccessToken: t.accessToken, + TokenType: "Bearer", + Expiry: t.expiry, + } +} + +func (t *cachedTokenSource) update(tok *oauth2.Token) map[string]string { + t.lk.Lock() + defer t.lk.Unlock() + t.accessToken = tok.AccessToken + t.expiry = tok.Expiry + ret := map[string]string{} + for k, v := range t.cache { + ret[k] = v + } + ret["access-token"] = t.accessToken + ret["expiry"] = t.expiry.Format(time.RFC3339Nano) + return ret +} + +type commandTokenSource struct { + cmd string + args []string + tokenKey string + expiryKey string + timeFmt string +} + +func newCmdTokenSource(cmd, tokenKey, expiryKey, timeFmt string) (*commandTokenSource, error) { + if len(timeFmt) == 0 { + timeFmt = time.RFC3339Nano + } + if len(tokenKey) == 0 { + tokenKey = "{.access_token}" + } + if len(expiryKey) == 0 { + expiryKey = "{.token_expiry}" + } + fields := strings.Fields(cmd) + if len(fields) == 0 { + return nil, fmt.Errorf("missing access token cmd") + } + return &commandTokenSource{ + cmd: fields[0], + args: fields[1:], + tokenKey: tokenKey, + expiryKey: expiryKey, + timeFmt: timeFmt, + }, nil +} + +func (c *commandTokenSource) Token() (*oauth2.Token, error) { + fullCmd := fmt.Sprintf("%s %s", c.cmd, strings.Join(c.args, " ")) + cmd := exec.Command(c.cmd, c.args...) + output, err := cmd.Output() + if err != nil { + return nil, fmt.Errorf("error executing access token command %q: %v", fullCmd, err) + } + token, err := c.parseTokenCmdOutput(output) + if err != nil { + return nil, fmt.Errorf("error parsing output for access token command %q: %v", fullCmd, err) + } + return token, nil +} + +func (c *commandTokenSource) parseTokenCmdOutput(output []byte) (*oauth2.Token, error) { + output, err := yaml.ToJSON(output) + if err != nil { + return nil, err + } + var data interface{} + if err := json.Unmarshal(output, &data); err != nil { + return nil, err + } + + accessToken, err := parseJSONPath(data, "token-key", c.tokenKey) + if err != nil { + return nil, fmt.Errorf("error parsing token-key %q: %v", c.tokenKey, err) + } + expiryStr, err := parseJSONPath(data, "expiry-key", c.expiryKey) + if err != nil { + return nil, fmt.Errorf("error parsing expiry-key %q: %v", c.expiryKey, err) + } + var expiry time.Time + if t, err := time.Parse(c.timeFmt, expiryStr); err != nil { + glog.V(4).Infof("Failed to parse token expiry from %s (fmt=%s): %v", expiryStr, c.timeFmt, err) + } else { + expiry = t + } + + return &oauth2.Token{ + AccessToken: accessToken, + TokenType: "Bearer", + Expiry: expiry, + }, nil +} + +func parseJSONPath(input interface{}, name, template string) (string, error) { + j := jsonpath.New(name) + buf := new(bytes.Buffer) + if err := j.Parse(template); err != nil { + return "", err + } + if err := j.Execute(buf, input); err != nil { + return "", err + } + return buf.String(), nil +} diff --git a/vendor/k8s.io/client-go/plugin/pkg/client/auth/oidc/oidc.go b/vendor/k8s.io/client-go/plugin/pkg/client/auth/oidc/oidc.go new file mode 100644 index 000000000..606be4538 --- /dev/null +++ b/vendor/k8s.io/client-go/plugin/pkg/client/auth/oidc/oidc.go @@ -0,0 +1,333 @@ +/* +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 oidc + +import ( + "encoding/base64" + "errors" + "fmt" + "net/http" + "strings" + "sync" + "time" + + "github.com/coreos/go-oidc/jose" + "github.com/coreos/go-oidc/oauth2" + "github.com/coreos/go-oidc/oidc" + "github.com/golang/glog" + + "k8s.io/client-go/rest" +) + +const ( + cfgIssuerUrl = "idp-issuer-url" + cfgClientID = "client-id" + cfgClientSecret = "client-secret" + cfgCertificateAuthority = "idp-certificate-authority" + cfgCertificateAuthorityData = "idp-certificate-authority-data" + cfgExtraScopes = "extra-scopes" + cfgIDToken = "id-token" + cfgRefreshToken = "refresh-token" +) + +func init() { + if err := rest.RegisterAuthProviderPlugin("oidc", newOIDCAuthProvider); err != nil { + glog.Fatalf("Failed to register oidc auth plugin: %v", err) + } +} + +// expiryDelta determines how earlier a token should be considered +// expired than its actual expiration time. It is used to avoid late +// expirations due to client-server time mismatches. +// +// NOTE(ericchiang): this is take from golang.org/x/oauth2 +const expiryDelta = 10 * time.Second + +var cache = newClientCache() + +// Like TLS transports, keep a cache of OIDC clients indexed by issuer URL. +type clientCache struct { + mu sync.RWMutex + cache map[cacheKey]*oidcAuthProvider +} + +func newClientCache() *clientCache { + return &clientCache{cache: make(map[cacheKey]*oidcAuthProvider)} +} + +type cacheKey struct { + // Canonical issuer URL string of the provider. + issuerURL string + + clientID string + clientSecret string + + // Don't use CA as cache key because we only add a cache entry if we can connect + // to the issuer in the first place. A valid CA is a prerequisite. +} + +func (c *clientCache) getClient(issuer, clientID, clientSecret string) (*oidcAuthProvider, bool) { + c.mu.RLock() + defer c.mu.RUnlock() + client, ok := c.cache[cacheKey{issuer, clientID, clientSecret}] + return client, ok +} + +// setClient attempts to put the client in the cache but may return any clients +// with the same keys set before. This is so there's only ever one client for a provider. +func (c *clientCache) setClient(issuer, clientID, clientSecret string, client *oidcAuthProvider) *oidcAuthProvider { + c.mu.Lock() + defer c.mu.Unlock() + key := cacheKey{issuer, clientID, clientSecret} + + // If another client has already initialized a client for the given provider we want + // to use that client instead of the one we're trying to set. This is so all transports + // share a client and can coordinate around the same mutex when refreshing and writing + // to the kubeconfig. + if oldClient, ok := c.cache[key]; ok { + return oldClient + } + + c.cache[key] = client + return client +} + +func newOIDCAuthProvider(_ string, cfg map[string]string, persister rest.AuthProviderConfigPersister) (rest.AuthProvider, error) { + issuer := cfg[cfgIssuerUrl] + if issuer == "" { + return nil, fmt.Errorf("Must provide %s", cfgIssuerUrl) + } + + clientID := cfg[cfgClientID] + if clientID == "" { + return nil, fmt.Errorf("Must provide %s", cfgClientID) + } + + clientSecret := cfg[cfgClientSecret] + if clientSecret == "" { + return nil, fmt.Errorf("Must provide %s", cfgClientSecret) + } + + // Check cache for existing provider. + if provider, ok := cache.getClient(issuer, clientID, clientSecret); ok { + return provider, nil + } + + var certAuthData []byte + var err error + if cfg[cfgCertificateAuthorityData] != "" { + certAuthData, err = base64.StdEncoding.DecodeString(cfg[cfgCertificateAuthorityData]) + if err != nil { + return nil, err + } + } + + clientConfig := rest.Config{ + TLSClientConfig: rest.TLSClientConfig{ + CAFile: cfg[cfgCertificateAuthority], + CAData: certAuthData, + }, + } + + trans, err := rest.TransportFor(&clientConfig) + if err != nil { + return nil, err + } + hc := &http.Client{Transport: trans} + + providerCfg, err := oidc.FetchProviderConfig(hc, issuer) + if err != nil { + return nil, fmt.Errorf("error fetching provider config: %v", err) + } + + scopes := strings.Split(cfg[cfgExtraScopes], ",") + oidcCfg := oidc.ClientConfig{ + HTTPClient: hc, + Credentials: oidc.ClientCredentials{ + ID: clientID, + Secret: clientSecret, + }, + ProviderConfig: providerCfg, + Scope: append(scopes, oidc.DefaultScope...), + } + client, err := oidc.NewClient(oidcCfg) + if err != nil { + return nil, fmt.Errorf("error creating OIDC Client: %v", err) + } + + provider := &oidcAuthProvider{ + client: &oidcClient{client}, + cfg: cfg, + persister: persister, + now: time.Now, + } + + return cache.setClient(issuer, clientID, clientSecret, provider), nil +} + +type oidcAuthProvider struct { + // Interface rather than a raw *oidc.Client for testing. + client OIDCClient + + // Stubbed out for testing. + now func() time.Time + + // Mutex guards persisting to the kubeconfig file and allows synchronized + // updates to the in-memory config. It also ensures concurrent calls to + // the RoundTripper only trigger a single refresh request. + mu sync.Mutex + cfg map[string]string + persister rest.AuthProviderConfigPersister +} + +func (p *oidcAuthProvider) WrapTransport(rt http.RoundTripper) http.RoundTripper { + return &roundTripper{ + wrapped: rt, + provider: p, + } +} + +func (p *oidcAuthProvider) Login() error { + return errors.New("not yet implemented") +} + +type OIDCClient interface { + refreshToken(rt string) (oauth2.TokenResponse, error) + verifyJWT(jwt *jose.JWT) error +} + +type roundTripper struct { + provider *oidcAuthProvider + wrapped http.RoundTripper +} + +func (r *roundTripper) RoundTrip(req *http.Request) (*http.Response, error) { + token, err := r.provider.idToken() + if err != nil { + return nil, err + } + + // shallow copy of the struct + r2 := new(http.Request) + *r2 = *req + // deep copy of the Header so we don't modify the original + // request's Header (as per RoundTripper contract). + r2.Header = make(http.Header) + for k, s := range req.Header { + r2.Header[k] = s + } + r2.Header.Set("Authorization", fmt.Sprintf("Bearer %s", token)) + + return r.wrapped.RoundTrip(r2) +} + +func (p *oidcAuthProvider) idToken() (string, error) { + p.mu.Lock() + defer p.mu.Unlock() + + if idToken, ok := p.cfg[cfgIDToken]; ok && len(idToken) > 0 { + valid, err := verifyJWTExpiry(p.now(), idToken) + if err != nil { + return "", err + } + if valid { + // If the cached id token is still valid use it. + return idToken, nil + } + } + + // Try to request a new token using the refresh token. + rt, ok := p.cfg[cfgRefreshToken] + if !ok || len(rt) == 0 { + return "", errors.New("No valid id-token, and cannot refresh without refresh-token") + } + + tokens, err := p.client.refreshToken(rt) + if err != nil { + return "", fmt.Errorf("could not refresh token: %v", err) + } + jwt, err := jose.ParseJWT(tokens.IDToken) + if err != nil { + return "", err + } + + if err := p.client.verifyJWT(&jwt); err != nil { + return "", err + } + + // Create a new config to persist. + newCfg := make(map[string]string) + for key, val := range p.cfg { + newCfg[key] = val + } + + if tokens.RefreshToken != "" && tokens.RefreshToken != rt { + newCfg[cfgRefreshToken] = tokens.RefreshToken + } + + newCfg[cfgIDToken] = tokens.IDToken + if err = p.persister.Persist(newCfg); err != nil { + return "", fmt.Errorf("could not perist new tokens: %v", err) + } + + // Update the in memory config to reflect the on disk one. + p.cfg = newCfg + + return tokens.IDToken, nil +} + +// oidcClient is the real implementation of the OIDCClient interface, which is +// used for testing. +type oidcClient struct { + client *oidc.Client +} + +func (o *oidcClient) refreshToken(rt string) (oauth2.TokenResponse, error) { + oac, err := o.client.OAuthClient() + if err != nil { + return oauth2.TokenResponse{}, err + } + + return oac.RequestToken(oauth2.GrantTypeRefreshToken, rt) +} + +func (o *oidcClient) verifyJWT(jwt *jose.JWT) error { + return o.client.VerifyJWT(*jwt) +} + +func verifyJWTExpiry(now time.Time, s string) (valid bool, err error) { + jwt, err := jose.ParseJWT(s) + if err != nil { + return false, fmt.Errorf("invalid %q", cfgIDToken) + } + claims, err := jwt.Claims() + if err != nil { + return false, err + } + + exp, ok, err := claims.TimeClaim("exp") + switch { + case err != nil: + return false, fmt.Errorf("failed to parse 'exp' claim: %v", err) + case !ok: + return false, errors.New("missing required 'exp' claim") + case exp.After(now.Add(expiryDelta)): + return true, nil + } + + return false, nil +} diff --git a/vendor/k8s.io/client-go/1.5/plugin/pkg/client/auth/plugins.go b/vendor/k8s.io/client-go/plugin/pkg/client/auth/plugins.go similarity index 85% rename from vendor/k8s.io/client-go/1.5/plugin/pkg/client/auth/plugins.go rename to vendor/k8s.io/client-go/plugin/pkg/client/auth/plugins.go index 4be6cc515..5cb2375ff 100644 --- a/vendor/k8s.io/client-go/1.5/plugin/pkg/client/auth/plugins.go +++ b/vendor/k8s.io/client-go/plugin/pkg/client/auth/plugins.go @@ -18,6 +18,6 @@ package auth import ( // Initialize all known client auth plugins. - _ "k8s.io/client-go/1.5/plugin/pkg/client/auth/gcp" - _ "k8s.io/client-go/1.5/plugin/pkg/client/auth/oidc" + _ "k8s.io/client-go/plugin/pkg/client/auth/gcp" + _ "k8s.io/client-go/plugin/pkg/client/auth/oidc" ) diff --git a/vendor/k8s.io/client-go/1.5/rest/client.go b/vendor/k8s.io/client-go/rest/client.go similarity index 76% rename from vendor/k8s.io/client-go/1.5/rest/client.go rename to vendor/k8s.io/client-go/rest/client.go index c1fdf1f09..79559edb4 100644 --- a/vendor/k8s.io/client-go/1.5/rest/client.go +++ b/vendor/k8s.io/client-go/rest/client.go @@ -18,6 +18,7 @@ package rest import ( "fmt" + "mime" "net/http" "net/url" "os" @@ -25,10 +26,10 @@ import ( "strings" "time" - "k8s.io/client-go/1.5/pkg/api" - "k8s.io/client-go/1.5/pkg/api/unversioned" - "k8s.io/client-go/1.5/pkg/runtime" - "k8s.io/client-go/1.5/pkg/util/flowcontrol" + "k8s.io/client-go/pkg/api" + "k8s.io/client-go/pkg/api/unversioned" + "k8s.io/client-go/pkg/runtime" + "k8s.io/client-go/pkg/util/flowcontrol" ) const ( @@ -38,6 +39,18 @@ const ( envBackoffDuration = "KUBE_CLIENT_BACKOFF_DURATION" ) +// Interface captures the set of operations for generically interacting with Kubernetes REST apis. +type Interface interface { + GetRateLimiter() flowcontrol.RateLimiter + Verb(verb string) *Request + Post() *Request + Put() *Request + Patch(pt api.PatchType) *Request + Get() *Request + Delete() *Request + APIVersion() unversioned.GroupVersion +} + // 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 @@ -141,34 +154,55 @@ func readExpBackoffConfig() BackoffManager { } // createSerializers creates all necessary serializers for given contentType. +// TODO: the negotiated serializer passed to this method should probably return +// serializers that control decoding and versioning without this package +// being aware of the types. Depends on whether RESTClient must deal with +// generic infrastructure. func createSerializers(config ContentConfig) (*Serializers, error) { - negotiated := config.NegotiatedSerializer + mediaTypes := config.NegotiatedSerializer.SupportedMediaTypes() contentType := config.ContentType - info, ok := negotiated.SerializerForMediaType(contentType, nil) + mediaType, _, err := mime.ParseMediaType(contentType) + if err != nil { + return nil, fmt.Errorf("the content type specified in the client configuration is not recognized: %v", err) + } + info, ok := runtime.SerializerInfoForMediaType(mediaTypes, mediaType) if !ok { - return nil, fmt.Errorf("serializer for %s not registered", contentType) + if len(contentType) != 0 || len(mediaTypes) == 0 { + return nil, fmt.Errorf("no serializers registered for %s", contentType) + } + info = mediaTypes[0] } - streamInfo, ok := negotiated.StreamingSerializerForMediaType(contentType, nil) - if !ok { - return nil, fmt.Errorf("streaming serializer for %s not registered", contentType) + + internalGV := unversioned.GroupVersions{ + { + Group: config.GroupVersion.Group, + Version: runtime.APIVersionInternal, + }, + // always include the legacy group as a decoding target to handle non-error `Status` return types + { + Group: "", + Version: runtime.APIVersionInternal, + }, } - 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, + + s := &Serializers{ + Encoder: config.NegotiatedSerializer.EncoderForVersion(info.Serializer, *config.GroupVersion), + Decoder: config.NegotiatedSerializer.DecoderToVersion(info.Serializer, internalGV), + RenegotiatedDecoder: func(contentType string, params map[string]string) (runtime.Decoder, error) { - renegotiated, ok := negotiated.SerializerForMediaType(contentType, params) + info, ok := runtime.SerializerInfoForMediaType(mediaTypes, contentType) if !ok { return nil, fmt.Errorf("serializer for %s not registered", contentType) } - return negotiated.DecoderToVersion(renegotiated.Serializer, internalGV), nil + return config.NegotiatedSerializer.DecoderToVersion(info.Serializer, internalGV), nil }, - }, nil + } + if info.StreamSerializer != nil { + s.StreamingSerializer = info.StreamSerializer.Serializer + s.Framer = info.StreamSerializer.Framer + } + + return s, nil } // Verb begins a request with a verb (GET, POST, PUT, DELETE). diff --git a/vendor/k8s.io/client-go/1.5/rest/config.go b/vendor/k8s.io/client-go/rest/config.go similarity index 90% rename from vendor/k8s.io/client-go/1.5/rest/config.go rename to vendor/k8s.io/client-go/rest/config.go index 416096171..37d875649 100644 --- a/vendor/k8s.io/client-go/1.5/rest/config.go +++ b/vendor/k8s.io/client-go/rest/config.go @@ -29,13 +29,13 @@ import ( "github.com/golang/glog" - "k8s.io/client-go/1.5/pkg/api" - "k8s.io/client-go/1.5/pkg/api/unversioned" - "k8s.io/client-go/1.5/pkg/runtime" - certutil "k8s.io/client-go/1.5/pkg/util/cert" - "k8s.io/client-go/1.5/pkg/util/flowcontrol" - "k8s.io/client-go/1.5/pkg/version" - clientcmdapi "k8s.io/client-go/1.5/tools/clientcmd/api" + "k8s.io/client-go/pkg/api" + "k8s.io/client-go/pkg/api/unversioned" + "k8s.io/client-go/pkg/runtime" + certutil "k8s.io/client-go/pkg/util/cert" + "k8s.io/client-go/pkg/util/flowcontrol" + "k8s.io/client-go/pkg/version" + clientcmdapi "k8s.io/client-go/tools/clientcmd/api" ) const ( @@ -189,6 +189,9 @@ func RESTClientFor(config *Config) (*RESTClient, error) { var httpClient *http.Client if transport != http.DefaultTransport { httpClient = &http.Client{Transport: transport} + if config.Timeout > 0 { + httpClient.Timeout = config.Timeout + } } return NewRESTClient(baseURL, versionedAPIPath, config.ContentConfig, qps, burst, config.RateLimiter, httpClient) @@ -214,6 +217,9 @@ func UnversionedRESTClientFor(config *Config) (*RESTClient, error) { var httpClient *http.Client if transport != http.DefaultTransport { httpClient = &http.Client{Transport: transport} + if config.Timeout > 0 { + httpClient.Timeout = config.Timeout + } } versionConfig := config.ContentConfig @@ -337,3 +343,26 @@ func AddUserAgent(config *Config, userAgent string) *Config { config.UserAgent = fullUserAgent return config } + +// AnonymousClientConfig returns a copy of the given config with all user credentials (cert/key, bearer token, and username/password) removed +func AnonymousClientConfig(config *Config) *Config { + // copy only known safe fields + return &Config{ + Host: config.Host, + APIPath: config.APIPath, + Prefix: config.Prefix, + ContentConfig: config.ContentConfig, + TLSClientConfig: TLSClientConfig{ + CAFile: config.TLSClientConfig.CAFile, + CAData: config.TLSClientConfig.CAData, + }, + RateLimiter: config.RateLimiter, + Insecure: config.Insecure, + UserAgent: config.UserAgent, + Transport: config.Transport, + WrapTransport: config.WrapTransport, + QPS: config.QPS, + Burst: config.Burst, + Timeout: config.Timeout, + } +} diff --git a/vendor/k8s.io/client-go/1.5/rest/plugin.go b/vendor/k8s.io/client-go/rest/plugin.go similarity index 97% rename from vendor/k8s.io/client-go/1.5/rest/plugin.go rename to vendor/k8s.io/client-go/rest/plugin.go index 9f1ce9973..cf8fbabfd 100644 --- a/vendor/k8s.io/client-go/1.5/rest/plugin.go +++ b/vendor/k8s.io/client-go/rest/plugin.go @@ -23,7 +23,7 @@ import ( "github.com/golang/glog" - clientcmdapi "k8s.io/client-go/1.5/tools/clientcmd/api" + clientcmdapi "k8s.io/client-go/tools/clientcmd/api" ) type AuthProvider interface { diff --git a/vendor/k8s.io/client-go/1.5/rest/request.go b/vendor/k8s.io/client-go/rest/request.go similarity index 87% rename from vendor/k8s.io/client-go/1.5/rest/request.go rename to vendor/k8s.io/client-go/rest/request.go index 4e57a0cc2..f5926e3b9 100644 --- a/vendor/k8s.io/client-go/1.5/rest/request.go +++ b/vendor/k8s.io/client-go/rest/request.go @@ -32,20 +32,20 @@ import ( "time" "github.com/golang/glog" - "k8s.io/client-go/1.5/pkg/api/errors" - "k8s.io/client-go/1.5/pkg/api/unversioned" - "k8s.io/client-go/1.5/pkg/api/v1" - pathvalidation "k8s.io/client-go/1.5/pkg/api/validation/path" - "k8s.io/client-go/1.5/pkg/fields" - "k8s.io/client-go/1.5/pkg/labels" - "k8s.io/client-go/1.5/pkg/runtime" - "k8s.io/client-go/1.5/pkg/runtime/serializer/streaming" - "k8s.io/client-go/1.5/pkg/util/flowcontrol" - "k8s.io/client-go/1.5/pkg/util/net" - "k8s.io/client-go/1.5/pkg/util/sets" - "k8s.io/client-go/1.5/pkg/watch" - "k8s.io/client-go/1.5/pkg/watch/versioned" - "k8s.io/client-go/1.5/tools/metrics" + "k8s.io/client-go/pkg/api/errors" + "k8s.io/client-go/pkg/api/unversioned" + "k8s.io/client-go/pkg/api/v1" + pathvalidation "k8s.io/client-go/pkg/api/validation/path" + "k8s.io/client-go/pkg/fields" + "k8s.io/client-go/pkg/labels" + "k8s.io/client-go/pkg/runtime" + "k8s.io/client-go/pkg/runtime/serializer/streaming" + "k8s.io/client-go/pkg/util/flowcontrol" + "k8s.io/client-go/pkg/util/net" + "k8s.io/client-go/pkg/util/sets" + "k8s.io/client-go/pkg/watch" + "k8s.io/client-go/pkg/watch/versioned" + "k8s.io/client-go/tools/metrics" ) var ( @@ -357,8 +357,9 @@ var fieldMappings = versionToResourceToFieldMapping{ nodeUnschedulable: nodeUnschedulable, }, "pods": clientFieldNameToAPIVersionFieldName{ - podHost: podHost, - podStatus: podStatus, + objectNameField: objectNameField, + podHost: podHost, + podStatus: podStatus, }, "secrets": clientFieldNameToAPIVersionFieldName{ secretType: secretType, @@ -794,6 +795,12 @@ func (r *Request) request(fn func(*http.Request, *http.Response)) error { req.Header = r.headers r.backoffMgr.Sleep(r.backoffMgr.CalculateBackoff(r.URL())) + if retries > 0 { + // We are retrying the request that we already send to apiserver + // at least once before. + // This request should also be throttled with the client-internal throttler. + r.tryThrottle() + } resp, err := client.Do(req) updateURLMetrics(r, resp, err) if err != nil { @@ -889,10 +896,11 @@ func (r *Request) transformResponse(resp *http.Response, req *http.Request) Resu } if glog.V(8) { - switch { - case bytes.IndexFunc(body, func(r rune) bool { return r < 0x0a }) != -1: + if bytes.IndexFunc(body, func(r rune) bool { + return r < 0x0a + }) != -1 { glog.Infof("Response Body:\n%s", hex.Dump(body)) - default: + } else { glog.Infof("Response Body: %s", string(body)) } } @@ -922,33 +930,21 @@ func (r *Request) transformResponse(resp *http.Response, req *http.Request) Resu } } - // 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)} + // calculate an unstructured error from the response which the Result object may use if the caller + // did not return a structured error. + retryAfter, _ := retryAfterSeconds(resp) + err := r.newUnstructuredResponseError(body, isTextResponse(resp), resp.StatusCode, req.Method, retryAfter) + return Result{ + body: body, + contentType: contentType, + statusCode: resp.StatusCode, + decoder: decoder, + err: err, } - 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{ @@ -959,6 +955,9 @@ func (r *Request) transformResponse(resp *http.Response, req *http.Request) Resu } } +// maxUnstructuredResponseTextBytes is an upper bound on how much output to include in the unstructured error. +const maxUnstructuredResponseTextBytes = 2048 + // 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 @@ -979,20 +978,29 @@ func (r *Request) transformResponse(resp *http.Response, req *http.Request) Resu // 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 { + if data, err := ioutil.ReadAll(&io.LimitedReader{R: resp.Body, N: maxUnstructuredResponseTextBytes}); err == nil { body = data } } + retryAfter, _ := retryAfterSeconds(resp) + return r.newUnstructuredResponseError(body, isTextResponse(resp), resp.StatusCode, req.Method, retryAfter) +} + +// newUnstructuredResponseError instantiates the appropriate generic error for the provided input. It also logs the body. +func (r *Request) newUnstructuredResponseError(body []byte, isTextResponse bool, statusCode int, method string, retryAfter int) error { + // cap the amount of output we create + if len(body) > maxUnstructuredResponseTextBytes { + body = body[:maxUnstructuredResponseTextBytes] + } glog.V(8).Infof("Response Body: %#v", string(body)) message := "unknown" - if isTextResponse(resp) { + if isTextResponse { message = strings.TrimSpace(string(body)) } - retryAfter, _ := retryAfterSeconds(resp) return errors.NewGenericServerResponse( - resp.StatusCode, - req.Method, + statusCode, + method, unversioned.GroupResource{ Group: r.content.GroupVersion.Group, Resource: r.resource, @@ -1056,15 +1064,31 @@ func (r Result) Raw() ([]byte, error) { return r.body, r.err } -// Get returns the result as an object. +// Get returns the result as an object, which means it passes through the decoder. +// If the returned object is of type Status and has .Status != StatusSuccess, the +// additional information in Status will be used to enrich the error. func (r Result) Get() (runtime.Object, error) { if r.err != nil { - return nil, r.err + // Check whether the result has a Status object in the body and prefer that. + return nil, r.Error() } if r.decoder == nil { return nil, fmt.Errorf("serializer for %s doesn't exist", r.contentType) } - return runtime.Decode(r.decoder, r.body) + + // decode, but if the result is Status return that as an error instead. + out, _, err := r.decoder.Decode(r.body, nil, nil) + if err != nil { + return nil, err + } + switch t := out.(type) { + case *unversioned.Status: + // any status besides StatusSuccess is considered an error. + if t.Status != unversioned.StatusSuccess { + return nil, errors.FromObject(t) + } + } + return out, nil } // StatusCode returns the HTTP status code of the request. (Only valid if no @@ -1075,14 +1099,31 @@ func (r Result) StatusCode(statusCode *int) Result { } // Into stores the result into obj, if possible. If obj is nil it is ignored. +// If the returned object is of type Status and has .Status != StatusSuccess, the +// additional information in Status will be used to enrich the error. func (r Result) Into(obj runtime.Object) error { if r.err != nil { - return r.err + // Check whether the result has a Status object in the body and prefer that. + return r.Error() } if r.decoder == nil { return fmt.Errorf("serializer for %s doesn't exist", r.contentType) } - return runtime.DecodeInto(r.decoder, r.body, obj) + + out, _, err := r.decoder.Decode(r.body, nil, obj) + if err != nil || out == obj { + return err + } + // if a different object is returned, see if it is Status and avoid double decoding + // the object. + switch t := out.(type) { + case *unversioned.Status: + // any status besides StatusSuccess is considered an error. + if t.Status != unversioned.StatusSuccess { + return errors.FromObject(t) + } + } + return nil } // WasCreated updates the provided bool pointer to whether the server returned @@ -1093,7 +1134,29 @@ func (r Result) WasCreated(wasCreated *bool) Result { } // Error returns the error executing the request, nil if no error occurred. +// If the returned object is of type Status and has Status != StatusSuccess, the +// additional information in Status will be used to enrich the error. // See the Request.Do() comment for what errors you might get. func (r Result) Error() error { + // if we have received an unexpected server error, and we have a body and decoder, we can try to extract + // a Status object. + if r.err == nil || !errors.IsUnexpectedServerError(r.err) || len(r.body) == 0 || r.decoder == nil { + return r.err + } + + // attempt to convert the body into a Status object + // to be backwards compatible with old servers that do not return a version, default to "v1" + out, _, err := r.decoder.Decode(r.body, &unversioned.GroupVersionKind{Version: "v1"}, nil) + if err != nil { + glog.V(5).Infof("body was not decodable (unable to check for Status): %v", err) + return r.err + } + switch t := out.(type) { + case *unversioned.Status: + // because we default the kind, we *must* check for StatusFailure + if t.Status == unversioned.StatusFailure { + return errors.FromObject(t) + } + } return r.err } diff --git a/vendor/k8s.io/client-go/1.5/rest/transport.go b/vendor/k8s.io/client-go/rest/transport.go similarity index 90% rename from vendor/k8s.io/client-go/1.5/rest/transport.go rename to vendor/k8s.io/client-go/rest/transport.go index 6cd2757a2..0672fb46c 100644 --- a/vendor/k8s.io/client-go/1.5/rest/transport.go +++ b/vendor/k8s.io/client-go/rest/transport.go @@ -20,13 +20,13 @@ import ( "crypto/tls" "net/http" - "k8s.io/client-go/1.5/transport" + "k8s.io/client-go/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() + cfg, err := config.TransportConfig() if err != nil { return nil, err } @@ -37,7 +37,7 @@ func TLSConfigFor(config *Config) (*tls.Config, error) { // 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() + cfg, err := config.TransportConfig() if err != nil { return nil, err } @@ -49,15 +49,15 @@ func TransportFor(config *Config) (http.RoundTripper, error) { // 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() + 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) { +// 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) diff --git a/vendor/k8s.io/client-go/1.5/rest/url_utils.go b/vendor/k8s.io/client-go/rest/url_utils.go similarity index 98% rename from vendor/k8s.io/client-go/1.5/rest/url_utils.go rename to vendor/k8s.io/client-go/rest/url_utils.go index f674f47d1..46da99101 100644 --- a/vendor/k8s.io/client-go/1.5/rest/url_utils.go +++ b/vendor/k8s.io/client-go/rest/url_utils.go @@ -21,7 +21,7 @@ import ( "net/url" "path" - "k8s.io/client-go/1.5/pkg/api/unversioned" + "k8s.io/client-go/pkg/api/unversioned" ) // DefaultServerURL converts a host, host:port, or URL string to the default base server API path diff --git a/vendor/k8s.io/client-go/1.5/rest/urlbackoff.go b/vendor/k8s.io/client-go/rest/urlbackoff.go similarity index 97% rename from vendor/k8s.io/client-go/1.5/rest/urlbackoff.go rename to vendor/k8s.io/client-go/rest/urlbackoff.go index bac7477ff..1bfb61a61 100644 --- a/vendor/k8s.io/client-go/1.5/rest/urlbackoff.go +++ b/vendor/k8s.io/client-go/rest/urlbackoff.go @@ -21,8 +21,8 @@ import ( "time" "github.com/golang/glog" - "k8s.io/client-go/1.5/pkg/util/flowcontrol" - "k8s.io/client-go/1.5/pkg/util/sets" + "k8s.io/client-go/pkg/util/flowcontrol" + "k8s.io/client-go/pkg/util/sets" ) // Set of resp. Codes that we backoff for. diff --git a/vendor/k8s.io/client-go/1.5/rest/versions.go b/vendor/k8s.io/client-go/rest/versions.go similarity index 98% rename from vendor/k8s.io/client-go/1.5/rest/versions.go rename to vendor/k8s.io/client-go/rest/versions.go index e2cd9212c..12ef828dd 100644 --- a/vendor/k8s.io/client-go/1.5/rest/versions.go +++ b/vendor/k8s.io/client-go/rest/versions.go @@ -22,7 +22,7 @@ import ( "net/http" "path" - "k8s.io/client-go/1.5/pkg/api/unversioned" + "k8s.io/client-go/pkg/api/unversioned" ) const ( diff --git a/vendor/k8s.io/client-go/1.5/tools/cache/controller.go b/vendor/k8s.io/client-go/tools/cache/controller.go similarity index 95% rename from vendor/k8s.io/client-go/1.5/tools/cache/controller.go rename to vendor/k8s.io/client-go/tools/cache/controller.go index 413f45589..ff4ec0122 100644 --- a/vendor/k8s.io/client-go/1.5/tools/cache/controller.go +++ b/vendor/k8s.io/client-go/tools/cache/controller.go @@ -20,16 +20,16 @@ import ( "sync" "time" - "k8s.io/client-go/1.5/pkg/runtime" - utilruntime "k8s.io/client-go/1.5/pkg/util/runtime" - "k8s.io/client-go/1.5/pkg/util/wait" + "k8s.io/client-go/pkg/runtime" + utilruntime "k8s.io/client-go/pkg/util/runtime" + "k8s.io/client-go/pkg/util/wait" ) // Config contains all the settings for a Controller. type Config struct { // The queue for your objects; either a FIFO or // a DeltaFIFO. Your Process() function should accept - // the output of this Oueue's Pop() method. + // the output of this Queue's Pop() method. Queue // Something that can list and watch your objects. @@ -121,6 +121,11 @@ func (c *Controller) Requeue(obj interface{}) error { // TODO: Consider doing the processing in parallel. This will require a little thought // to make sure that we don't end up processing the same object multiple times // concurrently. +// +// TODO: Plumb through the stopCh here (and down to the queue) so that this can +// actually exit when the controller is stopped. Or just give up on this stuff +// ever being stoppable. Converting this whole package to use Context would +// also be helpful. func (c *Controller) processLoop() { for { obj, err := c.config.Queue.Pop(PopProcessFunc(c.config.Process)) @@ -134,7 +139,7 @@ func (c *Controller) processLoop() { } // ResourceEventHandler can handle notifications for events that happen to a -// resource. The events are informational only, so you can't return an +// resource. The events are informational only, so you can't return an // error. // * OnAdd is called when an object is added. // * OnUpdate is called when an object is modified. Note that oldObj is the diff --git a/vendor/k8s.io/client-go/1.5/tools/cache/delta_fifo.go b/vendor/k8s.io/client-go/tools/cache/delta_fifo.go similarity index 98% rename from vendor/k8s.io/client-go/1.5/tools/cache/delta_fifo.go rename to vendor/k8s.io/client-go/tools/cache/delta_fifo.go index b26eefe6a..af7de8a97 100644 --- a/vendor/k8s.io/client-go/1.5/tools/cache/delta_fifo.go +++ b/vendor/k8s.io/client-go/tools/cache/delta_fifo.go @@ -21,7 +21,7 @@ import ( "fmt" "sync" - "k8s.io/client-go/1.5/pkg/util/sets" + "k8s.io/client-go/pkg/util/sets" "github.com/golang/glog" ) @@ -437,11 +437,6 @@ func (f *DeltaFIFO) Replace(list []interface{}, resourceVersion string) error { defer f.lock.Unlock() keys := make(sets.String, len(list)) - if !f.populated { - f.populated = true - f.initialPopulationCount = len(list) - } - for _, item := range list { key, err := f.KeyOf(item) if err != nil { @@ -467,6 +462,12 @@ func (f *DeltaFIFO) Replace(list []interface{}, resourceVersion string) error { return err } } + + if !f.populated { + f.populated = true + f.initialPopulationCount = len(list) + } + return nil } @@ -474,6 +475,7 @@ func (f *DeltaFIFO) Replace(list []interface{}, resourceVersion string) error { // TODO(lavalamp): This may be racy-- we aren't properly locked // with knownObjects. Unproven. knownKeys := f.knownObjects.ListKeys() + queuedDeletions := 0 for _, k := range knownKeys { if keys.Has(k) { continue @@ -487,10 +489,17 @@ func (f *DeltaFIFO) Replace(list []interface{}, resourceVersion string) error { deletedObj = nil glog.Infof("Key %v does not exist in known objects store, placing DeleteFinalStateUnknown marker without object", k) } + queuedDeletions++ if err := f.queueActionLocked(Deleted, DeletedFinalStateUnknown{k, deletedObj}); err != nil { return err } } + + if !f.populated { + f.populated = true + f.initialPopulationCount = len(list) + queuedDeletions + } + return nil } diff --git a/vendor/k8s.io/client-go/1.5/tools/cache/doc.go b/vendor/k8s.io/client-go/tools/cache/doc.go similarity index 94% rename from vendor/k8s.io/client-go/1.5/tools/cache/doc.go rename to vendor/k8s.io/client-go/tools/cache/doc.go index 72b39f2f9..56b61d300 100644 --- a/vendor/k8s.io/client-go/1.5/tools/cache/doc.go +++ b/vendor/k8s.io/client-go/tools/cache/doc.go @@ -21,4 +21,4 @@ limitations under the License. // list currently available nodes), and one that additionally acts as // a FIFO queue (for example, to allow a scheduler to process incoming // pods). -package cache // import "k8s.io/client-go/1.5/tools/cache" +package cache // import "k8s.io/client-go/tools/cache" diff --git a/vendor/k8s.io/client-go/1.5/tools/cache/expiration_cache.go b/vendor/k8s.io/client-go/tools/cache/expiration_cache.go similarity index 99% rename from vendor/k8s.io/client-go/1.5/tools/cache/expiration_cache.go rename to vendor/k8s.io/client-go/tools/cache/expiration_cache.go index 07f5dee40..10d68c533 100644 --- a/vendor/k8s.io/client-go/1.5/tools/cache/expiration_cache.go +++ b/vendor/k8s.io/client-go/tools/cache/expiration_cache.go @@ -21,7 +21,7 @@ import ( "time" "github.com/golang/glog" - "k8s.io/client-go/1.5/pkg/util/clock" + "k8s.io/client-go/pkg/util/clock" ) // ExpirationCache implements the store interface diff --git a/vendor/k8s.io/client-go/1.5/tools/cache/expiration_cache_fakes.go b/vendor/k8s.io/client-go/tools/cache/expiration_cache_fakes.go similarity index 94% rename from vendor/k8s.io/client-go/1.5/tools/cache/expiration_cache_fakes.go rename to vendor/k8s.io/client-go/tools/cache/expiration_cache_fakes.go index 53a346ce4..13f4e4c0f 100644 --- a/vendor/k8s.io/client-go/1.5/tools/cache/expiration_cache_fakes.go +++ b/vendor/k8s.io/client-go/tools/cache/expiration_cache_fakes.go @@ -17,8 +17,8 @@ limitations under the License. package cache import ( - "k8s.io/client-go/1.5/pkg/util/clock" - "k8s.io/client-go/1.5/pkg/util/sets" + "k8s.io/client-go/pkg/util/clock" + "k8s.io/client-go/pkg/util/sets" ) type fakeThreadSafeMap struct { diff --git a/vendor/k8s.io/client-go/1.5/tools/cache/fake_custom_store.go b/vendor/k8s.io/client-go/tools/cache/fake_custom_store.go similarity index 100% rename from vendor/k8s.io/client-go/1.5/tools/cache/fake_custom_store.go rename to vendor/k8s.io/client-go/tools/cache/fake_custom_store.go diff --git a/vendor/k8s.io/client-go/1.5/tools/cache/fifo.go b/vendor/k8s.io/client-go/tools/cache/fifo.go similarity index 99% rename from vendor/k8s.io/client-go/1.5/tools/cache/fifo.go rename to vendor/k8s.io/client-go/tools/cache/fifo.go index d0c002c52..0e1c9a8be 100644 --- a/vendor/k8s.io/client-go/1.5/tools/cache/fifo.go +++ b/vendor/k8s.io/client-go/tools/cache/fifo.go @@ -19,7 +19,7 @@ package cache import ( "sync" - "k8s.io/client-go/1.5/pkg/util/sets" + "k8s.io/client-go/pkg/util/sets" ) // PopProcessFunc is passed to Pop() method of Queue interface. diff --git a/vendor/k8s.io/client-go/1.5/tools/cache/index.go b/vendor/k8s.io/client-go/tools/cache/index.go similarity index 97% rename from vendor/k8s.io/client-go/1.5/tools/cache/index.go rename to vendor/k8s.io/client-go/tools/cache/index.go index bc257ae03..25ad67805 100644 --- a/vendor/k8s.io/client-go/1.5/tools/cache/index.go +++ b/vendor/k8s.io/client-go/tools/cache/index.go @@ -19,8 +19,8 @@ package cache import ( "fmt" - "k8s.io/client-go/1.5/pkg/api/meta" - "k8s.io/client-go/1.5/pkg/util/sets" + "k8s.io/client-go/pkg/api/meta" + "k8s.io/client-go/pkg/util/sets" ) // Indexer is a storage interface that lets you list objects using multiple indexing functions diff --git a/vendor/k8s.io/client-go/tools/cache/listers.go b/vendor/k8s.io/client-go/tools/cache/listers.go new file mode 100644 index 000000000..eafac197a --- /dev/null +++ b/vendor/k8s.io/client-go/tools/cache/listers.go @@ -0,0 +1,478 @@ +/* +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 ( + "fmt" + + "github.com/golang/glog" + "k8s.io/client-go/pkg/api" + "k8s.io/client-go/pkg/api/errors" + "k8s.io/client-go/pkg/api/meta" + "k8s.io/client-go/pkg/api/unversioned" + "k8s.io/client-go/pkg/apis/apps" + "k8s.io/client-go/pkg/apis/certificates" + "k8s.io/client-go/pkg/apis/extensions" + "k8s.io/client-go/pkg/apis/policy" + "k8s.io/client-go/pkg/apis/storage" + "k8s.io/client-go/pkg/labels" + "k8s.io/client-go/pkg/runtime" +) + +// AppendFunc is used to add a matching item to whatever list the caller is using +type AppendFunc func(interface{}) + +func ListAll(store Store, selector labels.Selector, appendFn AppendFunc) error { + for _, m := range store.List() { + metadata, err := meta.Accessor(m) + if err != nil { + return err + } + if selector.Matches(labels.Set(metadata.GetLabels())) { + appendFn(m) + } + } + return nil +} + +func ListAllByNamespace(indexer Indexer, namespace string, selector labels.Selector, appendFn AppendFunc) error { + if namespace == api.NamespaceAll { + for _, m := range indexer.List() { + metadata, err := meta.Accessor(m) + if err != nil { + return err + } + if selector.Matches(labels.Set(metadata.GetLabels())) { + appendFn(m) + } + } + return nil + } + + items, err := indexer.Index(NamespaceIndex, &api.ObjectMeta{Namespace: namespace}) + if err != nil { + // Ignore error; do slow search without index. + glog.Warningf("can not retrieve list of objects using index : %v", err) + for _, m := range indexer.List() { + metadata, err := meta.Accessor(m) + if err != nil { + return err + } + if metadata.GetNamespace() == namespace && selector.Matches(labels.Set(metadata.GetLabels())) { + appendFn(m) + } + + } + return nil + } + for _, m := range items { + metadata, err := meta.Accessor(m) + if err != nil { + return err + } + if selector.Matches(labels.Set(metadata.GetLabels())) { + appendFn(m) + } + } + + return nil +} + +// GenericLister is a lister skin on a generic Indexer +type GenericLister interface { + // List will return all objects across namespaces + List(selector labels.Selector) (ret []runtime.Object, err error) + // Get will attempt to retrieve assuming that name==key + Get(name string) (runtime.Object, error) + // ByNamespace will give you a GenericNamespaceLister for one namespace + ByNamespace(namespace string) GenericNamespaceLister +} + +// GenericNamespaceLister is a lister skin on a generic Indexer +type GenericNamespaceLister interface { + // List will return all objects in this namespace + List(selector labels.Selector) (ret []runtime.Object, err error) + // Get will attempt to retrieve by namespace and name + Get(name string) (runtime.Object, error) +} + +func NewGenericLister(indexer Indexer, resource unversioned.GroupResource) GenericLister { + return &genericLister{indexer: indexer, resource: resource} +} + +type genericLister struct { + indexer Indexer + resource unversioned.GroupResource +} + +func (s *genericLister) List(selector labels.Selector) (ret []runtime.Object, err error) { + err = ListAll(s.indexer, selector, func(m interface{}) { + ret = append(ret, m.(runtime.Object)) + }) + return ret, err +} + +func (s *genericLister) ByNamespace(namespace string) GenericNamespaceLister { + return &genericNamespaceLister{indexer: s.indexer, namespace: namespace, resource: s.resource} +} + +func (s *genericLister) Get(name string) (runtime.Object, error) { + obj, exists, err := s.indexer.GetByKey(name) + if err != nil { + return nil, err + } + if !exists { + return nil, errors.NewNotFound(s.resource, name) + } + return obj.(runtime.Object), nil +} + +type genericNamespaceLister struct { + indexer Indexer + namespace string + resource unversioned.GroupResource +} + +func (s *genericNamespaceLister) List(selector labels.Selector) (ret []runtime.Object, err error) { + err = ListAllByNamespace(s.indexer, s.namespace, selector, func(m interface{}) { + ret = append(ret, m.(runtime.Object)) + }) + return ret, err +} + +func (s *genericNamespaceLister) Get(name string) (runtime.Object, error) { + obj, exists, err := s.indexer.GetByKey(s.namespace + "/" + name) + if err != nil { + return nil, err + } + if !exists { + return nil, errors.NewNotFound(s.resource, name) + } + return obj.(runtime.Object), nil +} + +// TODO: generate these classes and methods for all resources of interest using +// a script. Can use "go generate" once 1.4 is supported by all users. + +// NodeConditionPredicate is a function that indicates whether the given node's conditions meet +// some set of criteria defined by the function. +type NodeConditionPredicate func(node *api.Node) bool + +// StoreToNodeLister makes a Store have the List method of the client.NodeInterface +// The Store must contain (only) Nodes. +type StoreToNodeLister struct { + Store +} + +func (s *StoreToNodeLister) List() (machines api.NodeList, err error) { + for _, m := range s.Store.List() { + machines.Items = append(machines.Items, *(m.(*api.Node))) + } + return machines, nil +} + +// NodeCondition returns a storeToNodeConditionLister +func (s *StoreToNodeLister) NodeCondition(predicate NodeConditionPredicate) storeToNodeConditionLister { + // TODO: Move this filtering server side. Currently our selectors don't facilitate searching through a list so we + // have the reflector filter out the Unschedulable field and sift through node conditions in the lister. + return storeToNodeConditionLister{s.Store, predicate} +} + +// storeToNodeConditionLister filters and returns nodes matching the given type and status from the store. +type storeToNodeConditionLister struct { + store Store + predicate NodeConditionPredicate +} + +// List returns a list of nodes that match the conditions defined by the predicate functions in the storeToNodeConditionLister. +func (s storeToNodeConditionLister) List() (nodes []*api.Node, err error) { + for _, m := range s.store.List() { + node := m.(*api.Node) + if s.predicate(node) { + nodes = append(nodes, node) + } else { + glog.V(5).Infof("Node %s matches none of the conditions", node.Name) + } + } + return +} + +// StoreToDaemonSetLister gives a store List and Exists methods. The store must contain only DaemonSets. +type StoreToDaemonSetLister struct { + Store +} + +// Exists checks if the given daemon set exists in the store. +func (s *StoreToDaemonSetLister) Exists(ds *extensions.DaemonSet) (bool, error) { + _, exists, err := s.Store.Get(ds) + if err != nil { + return false, err + } + return exists, nil +} + +// List lists all daemon sets in the store. +// TODO: converge on the interface in pkg/client +func (s *StoreToDaemonSetLister) List() (dss extensions.DaemonSetList, err error) { + for _, c := range s.Store.List() { + dss.Items = append(dss.Items, *(c.(*extensions.DaemonSet))) + } + return dss, nil +} + +// GetPodDaemonSets returns a list of daemon sets managing a pod. +// Returns an error if and only if no matching daemon sets are found. +func (s *StoreToDaemonSetLister) GetPodDaemonSets(pod *api.Pod) (daemonSets []extensions.DaemonSet, err error) { + var selector labels.Selector + var daemonSet extensions.DaemonSet + + if len(pod.Labels) == 0 { + err = fmt.Errorf("no daemon sets found for pod %v because it has no labels", pod.Name) + return + } + + for _, m := range s.Store.List() { + daemonSet = *m.(*extensions.DaemonSet) + if daemonSet.Namespace != pod.Namespace { + continue + } + selector, err = unversioned.LabelSelectorAsSelector(daemonSet.Spec.Selector) + if err != nil { + // this should not happen if the DaemonSet passed validation + return nil, err + } + + // If a daemonSet with a nil or empty selector creeps in, it should match nothing, not everything. + if selector.Empty() || !selector.Matches(labels.Set(pod.Labels)) { + continue + } + daemonSets = append(daemonSets, daemonSet) + } + if len(daemonSets) == 0 { + err = fmt.Errorf("could not find daemon set for pod %s in namespace %s with labels: %v", pod.Name, pod.Namespace, pod.Labels) + } + return +} + +// StoreToEndpointsLister makes a Store that lists endpoints. +type StoreToEndpointsLister struct { + Store +} + +// List lists all endpoints in the store. +func (s *StoreToEndpointsLister) List() (services api.EndpointsList, err error) { + for _, m := range s.Store.List() { + services.Items = append(services.Items, *(m.(*api.Endpoints))) + } + return services, nil +} + +// GetServiceEndpoints returns the endpoints of a service, matched on service name. +func (s *StoreToEndpointsLister) GetServiceEndpoints(svc *api.Service) (ep api.Endpoints, err error) { + for _, m := range s.Store.List() { + ep = *m.(*api.Endpoints) + if svc.Name == ep.Name && svc.Namespace == ep.Namespace { + return ep, nil + } + } + err = fmt.Errorf("could not find endpoints for service: %v", svc.Name) + return +} + +// Typed wrapper around a store of PersistentVolumes +type StoreToPVFetcher struct { + Store +} + +// GetPersistentVolumeInfo returns cached data for the PersistentVolume 'id'. +func (s *StoreToPVFetcher) GetPersistentVolumeInfo(id string) (*api.PersistentVolume, error) { + o, exists, err := s.Get(&api.PersistentVolume{ObjectMeta: api.ObjectMeta{Name: id}}) + + if err != nil { + return nil, fmt.Errorf("error retrieving PersistentVolume '%v' from cache: %v", id, err) + } + + if !exists { + return nil, fmt.Errorf("PersistentVolume '%v' not found", id) + } + + return o.(*api.PersistentVolume), nil +} + +// StoreToStatefulSetLister gives a store List and Exists methods. The store must contain only StatefulSets. +type StoreToStatefulSetLister struct { + Store +} + +// Exists checks if the given StatefulSet exists in the store. +func (s *StoreToStatefulSetLister) Exists(ps *apps.StatefulSet) (bool, error) { + _, exists, err := s.Store.Get(ps) + if err != nil { + return false, err + } + return exists, nil +} + +// List lists all StatefulSets in the store. +func (s *StoreToStatefulSetLister) List() (psList []apps.StatefulSet, err error) { + for _, ps := range s.Store.List() { + psList = append(psList, *(ps.(*apps.StatefulSet))) + } + return psList, nil +} + +type storeStatefulSetsNamespacer struct { + store Store + namespace string +} + +func (s *StoreToStatefulSetLister) StatefulSets(namespace string) storeStatefulSetsNamespacer { + return storeStatefulSetsNamespacer{s.Store, namespace} +} + +// GetPodStatefulSets returns a list of StatefulSets managing a pod. Returns an error only if no matching StatefulSets are found. +func (s *StoreToStatefulSetLister) GetPodStatefulSets(pod *api.Pod) (psList []apps.StatefulSet, err error) { + var selector labels.Selector + var ps apps.StatefulSet + + if len(pod.Labels) == 0 { + err = fmt.Errorf("no StatefulSets found for pod %v because it has no labels", pod.Name) + return + } + + for _, m := range s.Store.List() { + ps = *m.(*apps.StatefulSet) + if ps.Namespace != pod.Namespace { + continue + } + selector, err = unversioned.LabelSelectorAsSelector(ps.Spec.Selector) + if err != nil { + err = fmt.Errorf("invalid selector: %v", err) + return + } + + // If a StatefulSet with a nil or empty selector creeps in, it should match nothing, not everything. + if selector.Empty() || !selector.Matches(labels.Set(pod.Labels)) { + continue + } + psList = append(psList, ps) + } + if len(psList) == 0 { + err = fmt.Errorf("could not find StatefulSet for pod %s in namespace %s with labels: %v", pod.Name, pod.Namespace, pod.Labels) + } + 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 +} + +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 +} + +// StorageClassLister knows how to list storage classes +type StorageClassLister interface { + List(selector labels.Selector) (ret []*storage.StorageClass, err error) + Get(name string) (*storage.StorageClass, error) +} + +// storageClassLister implements StorageClassLister +type storageClassLister struct { + indexer Indexer +} + +// NewStorageClassLister returns a new lister. +func NewStorageClassLister(indexer Indexer) StorageClassLister { + return &storageClassLister{indexer: indexer} +} + +// List returns a list of storage classes +func (s *storageClassLister) List(selector labels.Selector) (ret []*storage.StorageClass, err error) { + err = ListAll(s.indexer, selector, func(m interface{}) { + ret = append(ret, m.(*storage.StorageClass)) + }) + return ret, err +} + +// List returns a list of storage classes +func (s *storageClassLister) Get(name string) (*storage.StorageClass, error) { + key := &storage.StorageClass{ObjectMeta: api.ObjectMeta{Name: name}} + obj, exists, err := s.indexer.Get(key) + if err != nil { + return nil, err + } + if !exists { + return nil, errors.NewNotFound(storage.Resource("storageclass"), name) + } + return obj.(*storage.StorageClass), nil +} diff --git a/vendor/k8s.io/client-go/1.5/tools/cache/listers_core.go b/vendor/k8s.io/client-go/tools/cache/listers_core.go similarity index 57% rename from vendor/k8s.io/client-go/1.5/tools/cache/listers_core.go rename to vendor/k8s.io/client-go/tools/cache/listers_core.go index 854c2a2ca..b9038e4ae 100644 --- a/vendor/k8s.io/client-go/1.5/tools/cache/listers_core.go +++ b/vendor/k8s.io/client-go/tools/cache/listers_core.go @@ -19,9 +19,9 @@ package cache import ( "fmt" - "k8s.io/client-go/1.5/pkg/api" - "k8s.io/client-go/1.5/pkg/api/errors" - "k8s.io/client-go/1.5/pkg/labels" + "k8s.io/client-go/pkg/api" + "k8s.io/client-go/pkg/api/errors" + "k8s.io/client-go/pkg/labels" ) // TODO: generate these classes and methods for all resources of interest using @@ -203,3 +203,146 @@ func (s *StoreToReplicationControllerLister) GetPodControllers(pod *api.Pod) (co } return } + +// StoreToServiceAccountLister helps list service accounts +type StoreToServiceAccountLister struct { + Indexer Indexer +} + +func (s *StoreToServiceAccountLister) List(selector labels.Selector) (ret []*api.ServiceAccount, err error) { + err = ListAll(s.Indexer, selector, func(m interface{}) { + ret = append(ret, m.(*api.ServiceAccount)) + }) + return ret, err +} + +func (s *StoreToServiceAccountLister) ServiceAccounts(namespace string) storeServiceAccountsNamespacer { + return storeServiceAccountsNamespacer{s.Indexer, namespace} +} + +type storeServiceAccountsNamespacer struct { + indexer Indexer + namespace string +} + +func (s storeServiceAccountsNamespacer) List(selector labels.Selector) (ret []*api.ServiceAccount, err error) { + err = ListAllByNamespace(s.indexer, s.namespace, selector, func(m interface{}) { + ret = append(ret, m.(*api.ServiceAccount)) + }) + return ret, err +} + +func (s storeServiceAccountsNamespacer) Get(name string) (*api.ServiceAccount, error) { + obj, exists, err := s.indexer.GetByKey(s.namespace + "/" + name) + if err != nil { + return nil, err + } + if !exists { + return nil, errors.NewNotFound(api.Resource("serviceaccount"), name) + } + return obj.(*api.ServiceAccount), nil +} + +// StoreToLimitRangeLister helps list limit ranges +type StoreToLimitRangeLister struct { + Indexer Indexer +} + +func (s *StoreToLimitRangeLister) List(selector labels.Selector) (ret []*api.LimitRange, err error) { + err = ListAll(s.Indexer, selector, func(m interface{}) { + ret = append(ret, m.(*api.LimitRange)) + }) + return ret, err +} + +// StoreToPersistentVolumeClaimLister helps list pvcs +type StoreToPersistentVolumeClaimLister struct { + Indexer Indexer +} + +// List returns all persistentvolumeclaims that match the specified selector +func (s *StoreToPersistentVolumeClaimLister) List(selector labels.Selector) (ret []*api.PersistentVolumeClaim, err error) { + err = ListAll(s.Indexer, selector, func(m interface{}) { + ret = append(ret, m.(*api.PersistentVolumeClaim)) + }) + return ret, err +} + +func (s *StoreToLimitRangeLister) LimitRanges(namespace string) storeLimitRangesNamespacer { + return storeLimitRangesNamespacer{s.Indexer, namespace} +} + +type storeLimitRangesNamespacer struct { + indexer Indexer + namespace string +} + +func (s storeLimitRangesNamespacer) List(selector labels.Selector) (ret []*api.LimitRange, err error) { + err = ListAllByNamespace(s.indexer, s.namespace, selector, func(m interface{}) { + ret = append(ret, m.(*api.LimitRange)) + }) + return ret, err +} + +func (s storeLimitRangesNamespacer) Get(name string) (*api.LimitRange, error) { + obj, exists, err := s.indexer.GetByKey(s.namespace + "/" + name) + if err != nil { + return nil, err + } + if !exists { + return nil, errors.NewNotFound(api.Resource("limitrange"), name) + } + return obj.(*api.LimitRange), nil +} + +// PersistentVolumeClaims returns all claims in a specified namespace. +func (s *StoreToPersistentVolumeClaimLister) PersistentVolumeClaims(namespace string) storePersistentVolumeClaimsNamespacer { + return storePersistentVolumeClaimsNamespacer{Indexer: s.Indexer, namespace: namespace} +} + +type storePersistentVolumeClaimsNamespacer struct { + Indexer Indexer + namespace string +} + +func (s storePersistentVolumeClaimsNamespacer) List(selector labels.Selector) (ret []*api.PersistentVolumeClaim, err error) { + err = ListAllByNamespace(s.Indexer, s.namespace, selector, func(m interface{}) { + ret = append(ret, m.(*api.PersistentVolumeClaim)) + }) + return ret, err +} + +func (s storePersistentVolumeClaimsNamespacer) Get(name string) (*api.PersistentVolumeClaim, error) { + obj, exists, err := s.Indexer.GetByKey(s.namespace + "/" + name) + if err != nil { + return nil, err + } + if !exists { + return nil, errors.NewNotFound(api.Resource("persistentvolumeclaims"), name) + } + return obj.(*api.PersistentVolumeClaim), nil +} + +// IndexerToNamespaceLister gives an Indexer List method +type IndexerToNamespaceLister struct { + Indexer +} + +// List returns a list of namespaces +func (i *IndexerToNamespaceLister) List(selector labels.Selector) (ret []*api.Namespace, err error) { + err = ListAll(i.Indexer, selector, func(m interface{}) { + ret = append(ret, m.(*api.Namespace)) + }) + return ret, err +} + +func (i *IndexerToNamespaceLister) Get(name string) (*api.Namespace, error) { + obj, exists, err := i.Indexer.GetByKey(name) + if err != nil { + return nil, err + } + if !exists { + return nil, errors.NewNotFound(api.Resource("namespace"), name) + } + return obj.(*api.Namespace), nil +} diff --git a/vendor/k8s.io/client-go/tools/cache/listers_extensions.go b/vendor/k8s.io/client-go/tools/cache/listers_extensions.go new file mode 100644 index 000000000..7281df9e3 --- /dev/null +++ b/vendor/k8s.io/client-go/tools/cache/listers_extensions.go @@ -0,0 +1,210 @@ +/* +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 ( + "fmt" + + "k8s.io/client-go/pkg/api" + "k8s.io/client-go/pkg/api/errors" + "k8s.io/client-go/pkg/api/unversioned" + "k8s.io/client-go/pkg/apis/extensions" + "k8s.io/client-go/pkg/labels" +) + +// TODO: generate these classes and methods for all resources of interest using +// a script. Can use "go generate" once 1.4 is supported by all users. + +// Lister makes an Index have the List method. The Stores must contain only the expected type +// Example: +// s := cache.NewStore() +// lw := cache.ListWatch{Client: c, FieldSelector: sel, Resource: "pods"} +// r := cache.NewReflector(lw, &extensions.Deployment{}, s).Run() +// l := StoreToDeploymentLister{s} +// l.List() + +// StoreToDeploymentLister helps list deployments +type StoreToDeploymentLister struct { + Indexer Indexer +} + +func (s *StoreToDeploymentLister) List(selector labels.Selector) (ret []*extensions.Deployment, err error) { + err = ListAll(s.Indexer, selector, func(m interface{}) { + ret = append(ret, m.(*extensions.Deployment)) + }) + return ret, err +} + +func (s *StoreToDeploymentLister) Deployments(namespace string) storeDeploymentsNamespacer { + return storeDeploymentsNamespacer{Indexer: s.Indexer, namespace: namespace} +} + +type storeDeploymentsNamespacer struct { + Indexer Indexer + namespace string +} + +func (s storeDeploymentsNamespacer) List(selector labels.Selector) (ret []*extensions.Deployment, err error) { + err = ListAllByNamespace(s.Indexer, s.namespace, selector, func(m interface{}) { + ret = append(ret, m.(*extensions.Deployment)) + }) + return ret, err +} + +func (s storeDeploymentsNamespacer) Get(name string) (*extensions.Deployment, error) { + obj, exists, err := s.Indexer.GetByKey(s.namespace + "/" + name) + if err != nil { + return nil, err + } + if !exists { + return nil, errors.NewNotFound(extensions.Resource("deployment"), name) + } + return obj.(*extensions.Deployment), nil +} + +// GetDeploymentsForReplicaSet returns a list of deployments managing a replica set. Returns an error only if no matching deployments are found. +func (s *StoreToDeploymentLister) GetDeploymentsForReplicaSet(rs *extensions.ReplicaSet) (deployments []*extensions.Deployment, err error) { + if len(rs.Labels) == 0 { + err = fmt.Errorf("no deployments found for ReplicaSet %v because it has no labels", rs.Name) + return + } + + // TODO: MODIFY THIS METHOD so that it checks for the podTemplateSpecHash label + dList, err := s.Deployments(rs.Namespace).List(labels.Everything()) + if err != nil { + return + } + for _, d := range dList { + selector, err := unversioned.LabelSelectorAsSelector(d.Spec.Selector) + if err != nil { + return nil, fmt.Errorf("invalid label selector: %v", err) + } + // If a deployment with a nil or empty selector creeps in, it should match nothing, not everything. + if selector.Empty() || !selector.Matches(labels.Set(rs.Labels)) { + continue + } + deployments = append(deployments, d) + } + if len(deployments) == 0 { + err = fmt.Errorf("could not find deployments set for ReplicaSet %s in namespace %s with labels: %v", rs.Name, rs.Namespace, rs.Labels) + } + return +} + +// GetDeploymentsForDeployments returns a list of deployments managing a pod. Returns an error only if no matching deployments are found. +// TODO eliminate shallow copies +func (s *StoreToDeploymentLister) GetDeploymentsForPod(pod *api.Pod) (deployments []*extensions.Deployment, err error) { + if len(pod.Labels) == 0 { + err = fmt.Errorf("no deployments found for Pod %v because it has no labels", pod.Name) + return + } + + if len(pod.Labels[extensions.DefaultDeploymentUniqueLabelKey]) == 0 { + return + } + + dList, err := s.Deployments(pod.Namespace).List(labels.Everything()) + if err != nil { + return + } + for _, d := range dList { + selector, err := unversioned.LabelSelectorAsSelector(d.Spec.Selector) + if err != nil { + return nil, fmt.Errorf("invalid label selector: %v", err) + } + // If a deployment with a nil or empty selector creeps in, it should match nothing, not everything. + if selector.Empty() || !selector.Matches(labels.Set(pod.Labels)) { + continue + } + deployments = append(deployments, d) + } + if len(deployments) == 0 { + err = fmt.Errorf("could not find deployments set for Pod %s in namespace %s with labels: %v", pod.Name, pod.Namespace, pod.Labels) + } + return +} + +// StoreToReplicaSetLister helps list replicasets +type StoreToReplicaSetLister struct { + Indexer Indexer +} + +func (s *StoreToReplicaSetLister) List(selector labels.Selector) (ret []*extensions.ReplicaSet, err error) { + err = ListAll(s.Indexer, selector, func(m interface{}) { + ret = append(ret, m.(*extensions.ReplicaSet)) + }) + return ret, err +} + +func (s *StoreToReplicaSetLister) ReplicaSets(namespace string) storeReplicaSetsNamespacer { + return storeReplicaSetsNamespacer{Indexer: s.Indexer, namespace: namespace} +} + +type storeReplicaSetsNamespacer struct { + Indexer Indexer + namespace string +} + +func (s storeReplicaSetsNamespacer) List(selector labels.Selector) (ret []*extensions.ReplicaSet, err error) { + err = ListAllByNamespace(s.Indexer, s.namespace, selector, func(m interface{}) { + ret = append(ret, m.(*extensions.ReplicaSet)) + }) + return ret, err +} + +func (s storeReplicaSetsNamespacer) Get(name string) (*extensions.ReplicaSet, error) { + obj, exists, err := s.Indexer.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 +} + +// GetPodReplicaSets returns a list of ReplicaSets managing a pod. Returns an error only if no matching ReplicaSets are found. +func (s *StoreToReplicaSetLister) GetPodReplicaSets(pod *api.Pod) (rss []*extensions.ReplicaSet, err error) { + if len(pod.Labels) == 0 { + err = fmt.Errorf("no ReplicaSets found for pod %v because it has no labels", pod.Name) + return + } + + list, err := s.ReplicaSets(pod.Namespace).List(labels.Everything()) + if err != nil { + return + } + for _, rs := range list { + if rs.Namespace != pod.Namespace { + continue + } + selector, err := unversioned.LabelSelectorAsSelector(rs.Spec.Selector) + if err != nil { + return nil, fmt.Errorf("invalid selector: %v", err) + } + + // If a ReplicaSet with a nil or empty selector creeps in, it should match nothing, not everything. + if selector.Empty() || !selector.Matches(labels.Set(pod.Labels)) { + continue + } + rss = append(rss, rs) + } + if len(rss) == 0 { + err = fmt.Errorf("could not find ReplicaSet for pod %s in namespace %s with labels: %v", pod.Name, pod.Namespace, pod.Labels) + } + return +} diff --git a/vendor/k8s.io/client-go/tools/cache/listers_rbac.go b/vendor/k8s.io/client-go/tools/cache/listers_rbac.go new file mode 100644 index 000000000..fb9906f19 --- /dev/null +++ b/vendor/k8s.io/client-go/tools/cache/listers_rbac.go @@ -0,0 +1,234 @@ +/* +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 ( + "k8s.io/client-go/pkg/api/errors" + "k8s.io/client-go/pkg/apis/rbac" + "k8s.io/client-go/pkg/labels" +) + +// TODO: generate these classes and methods for all resources of interest using +// a script. Can use "go generate" once 1.4 is supported by all users. + +// Lister makes an Index have the List method. The Stores must contain only the expected type +// Example: +// s := cache.NewStore() +// lw := cache.ListWatch{Client: c, FieldSelector: sel, Resource: "pods"} +// r := cache.NewReflector(lw, &rbac.ClusterRole{}, s).Run() +// l := clusterRoleLister{s} +// l.List() + +func NewClusterRoleLister(indexer Indexer) ClusterRoleLister { + return &clusterRoleLister{indexer: indexer} +} +func NewClusterRoleBindingLister(indexer Indexer) ClusterRoleBindingLister { + return &clusterRoleBindingLister{indexer: indexer} +} +func NewRoleLister(indexer Indexer) RoleLister { + return &roleLister{indexer: indexer} +} +func NewRoleBindingLister(indexer Indexer) RoleBindingLister { + return &roleBindingLister{indexer: indexer} +} + +// these interfaces are used by the rbac authorizer +type authorizerClusterRoleGetter interface { + GetClusterRole(name string) (*rbac.ClusterRole, error) +} + +type authorizerClusterRoleBindingLister interface { + ListClusterRoleBindings() ([]*rbac.ClusterRoleBinding, error) +} + +type authorizerRoleGetter interface { + GetRole(namespace, name string) (*rbac.Role, error) +} + +type authorizerRoleBindingLister interface { + ListRoleBindings(namespace string) ([]*rbac.RoleBinding, error) +} + +type ClusterRoleLister interface { + authorizerClusterRoleGetter + List(selector labels.Selector) (ret []*rbac.ClusterRole, err error) + Get(name string) (*rbac.ClusterRole, error) +} + +type clusterRoleLister struct { + indexer Indexer +} + +func (s *clusterRoleLister) List(selector labels.Selector) (ret []*rbac.ClusterRole, err error) { + err = ListAll(s.indexer, selector, func(m interface{}) { + ret = append(ret, m.(*rbac.ClusterRole)) + }) + return ret, err +} + +func (s clusterRoleLister) Get(name string) (*rbac.ClusterRole, error) { + obj, exists, err := s.indexer.GetByKey(name) + if err != nil { + return nil, err + } + if !exists { + return nil, errors.NewNotFound(rbac.Resource("clusterrole"), name) + } + return obj.(*rbac.ClusterRole), nil +} + +func (s clusterRoleLister) GetClusterRole(name string) (*rbac.ClusterRole, error) { + return s.Get(name) +} + +type ClusterRoleBindingLister interface { + authorizerClusterRoleBindingLister + List(selector labels.Selector) (ret []*rbac.ClusterRoleBinding, err error) + Get(name string) (*rbac.ClusterRoleBinding, error) +} + +type clusterRoleBindingLister struct { + indexer Indexer +} + +func (s *clusterRoleBindingLister) List(selector labels.Selector) (ret []*rbac.ClusterRoleBinding, err error) { + err = ListAll(s.indexer, selector, func(m interface{}) { + ret = append(ret, m.(*rbac.ClusterRoleBinding)) + }) + return ret, err +} + +func (s clusterRoleBindingLister) Get(name string) (*rbac.ClusterRoleBinding, error) { + obj, exists, err := s.indexer.GetByKey(name) + if err != nil { + return nil, err + } + if !exists { + return nil, errors.NewNotFound(rbac.Resource("clusterrolebinding"), name) + } + return obj.(*rbac.ClusterRoleBinding), nil +} + +func (s clusterRoleBindingLister) ListClusterRoleBindings() ([]*rbac.ClusterRoleBinding, error) { + return s.List(labels.Everything()) +} + +type RoleLister interface { + authorizerRoleGetter + List(selector labels.Selector) (ret []*rbac.Role, err error) + Roles(namespace string) RoleNamespaceLister +} + +type RoleNamespaceLister interface { + List(selector labels.Selector) (ret []*rbac.Role, err error) + Get(name string) (*rbac.Role, error) +} + +type roleLister struct { + indexer Indexer +} + +func (s *roleLister) List(selector labels.Selector) (ret []*rbac.Role, err error) { + err = ListAll(s.indexer, selector, func(m interface{}) { + ret = append(ret, m.(*rbac.Role)) + }) + return ret, err +} + +func (s *roleLister) Roles(namespace string) RoleNamespaceLister { + return roleNamespaceLister{indexer: s.indexer, namespace: namespace} +} + +func (s roleLister) GetRole(namespace, name string) (*rbac.Role, error) { + return s.Roles(namespace).Get(name) +} + +type roleNamespaceLister struct { + indexer Indexer + namespace string +} + +func (s roleNamespaceLister) List(selector labels.Selector) (ret []*rbac.Role, err error) { + err = ListAllByNamespace(s.indexer, s.namespace, selector, func(m interface{}) { + ret = append(ret, m.(*rbac.Role)) + }) + return ret, err +} + +func (s roleNamespaceLister) Get(name string) (*rbac.Role, error) { + obj, exists, err := s.indexer.GetByKey(s.namespace + "/" + name) + if err != nil { + return nil, err + } + if !exists { + return nil, errors.NewNotFound(rbac.Resource("role"), name) + } + return obj.(*rbac.Role), nil +} + +type RoleBindingLister interface { + authorizerRoleBindingLister + List(selector labels.Selector) (ret []*rbac.RoleBinding, err error) + RoleBindings(namespace string) RoleBindingNamespaceLister +} + +type RoleBindingNamespaceLister interface { + List(selector labels.Selector) (ret []*rbac.RoleBinding, err error) + Get(name string) (*rbac.RoleBinding, error) +} + +type roleBindingLister struct { + indexer Indexer +} + +func (s *roleBindingLister) List(selector labels.Selector) (ret []*rbac.RoleBinding, err error) { + err = ListAll(s.indexer, selector, func(m interface{}) { + ret = append(ret, m.(*rbac.RoleBinding)) + }) + return ret, err +} + +func (s *roleBindingLister) RoleBindings(namespace string) RoleBindingNamespaceLister { + return roleBindingNamespaceLister{indexer: s.indexer, namespace: namespace} +} + +func (s roleBindingLister) ListRoleBindings(namespace string) ([]*rbac.RoleBinding, error) { + return s.RoleBindings(namespace).List(labels.Everything()) +} + +type roleBindingNamespaceLister struct { + indexer Indexer + namespace string +} + +func (s roleBindingNamespaceLister) List(selector labels.Selector) (ret []*rbac.RoleBinding, err error) { + err = ListAllByNamespace(s.indexer, s.namespace, selector, func(m interface{}) { + ret = append(ret, m.(*rbac.RoleBinding)) + }) + return ret, err +} + +func (s roleBindingNamespaceLister) Get(name string) (*rbac.RoleBinding, error) { + obj, exists, err := s.indexer.GetByKey(s.namespace + "/" + name) + if err != nil { + return nil, err + } + if !exists { + return nil, errors.NewNotFound(rbac.Resource("rolebinding"), name) + } + return obj.(*rbac.RoleBinding), nil +} diff --git a/vendor/k8s.io/client-go/1.5/tools/cache/listwatch.go b/vendor/k8s.io/client-go/tools/cache/listwatch.go similarity index 51% rename from vendor/k8s.io/client-go/1.5/tools/cache/listwatch.go rename to vendor/k8s.io/client-go/tools/cache/listwatch.go index 4790c9c5c..d3c7d67db 100644 --- a/vendor/k8s.io/client-go/1.5/tools/cache/listwatch.go +++ b/vendor/k8s.io/client-go/tools/cache/listwatch.go @@ -19,13 +19,23 @@ package cache import ( "time" - "k8s.io/client-go/1.5/pkg/api" - "k8s.io/client-go/1.5/pkg/fields" - "k8s.io/client-go/1.5/pkg/runtime" - "k8s.io/client-go/1.5/pkg/watch" - "k8s.io/client-go/1.5/rest" + "k8s.io/client-go/pkg/api" + "k8s.io/client-go/pkg/api/meta" + "k8s.io/client-go/pkg/fields" + "k8s.io/client-go/pkg/runtime" + "k8s.io/client-go/pkg/watch" + "k8s.io/client-go/rest" ) +// ListerWatcher is any object that knows how to perform an initial list and start a watch on a resource. +type ListerWatcher interface { + // List should return a list type object; the Items field will be extracted, and the + // ResourceVersion field will be used to start the watch in the right place. + List(options api.ListOptions) (runtime.Object, error) + // Watch should begin a watch at the specified version. + Watch(options api.ListOptions) (watch.Interface, error) +} + // ListFunc knows how to list resources type ListFunc func(options api.ListOptions) (runtime.Object, error) @@ -84,3 +94,69 @@ func (lw *ListWatch) List(options api.ListOptions) (runtime.Object, error) { func (lw *ListWatch) Watch(options api.ListOptions) (watch.Interface, error) { return lw.WatchFunc(options) } + +// TODO: check for watch expired error and retry watch from latest point? Same issue exists for Until. +func ListWatchUntil(timeout time.Duration, lw ListerWatcher, conditions ...watch.ConditionFunc) (*watch.Event, error) { + if len(conditions) == 0 { + return nil, nil + } + + list, err := lw.List(api.ListOptions{}) + if err != nil { + return nil, err + } + initialItems, err := meta.ExtractList(list) + if err != nil { + return nil, err + } + + // use the initial items as simulated "adds" + var lastEvent *watch.Event + currIndex := 0 + passedConditions := 0 + 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 { + passedConditions = passedConditions + 1 + continue + } + } + + ConditionSucceeded: + for currIndex < len(initialItems) { + lastEvent = &watch.Event{Type: watch.Added, Object: initialItems[currIndex]} + currIndex++ + + done, err := condition(*lastEvent) + if err != nil { + return lastEvent, err + } + if done { + passedConditions = passedConditions + 1 + break ConditionSucceeded + } + } + } + if passedConditions == len(conditions) { + return lastEvent, nil + } + remainingConditions := conditions[passedConditions:] + + metaObj, err := meta.ListAccessor(list) + if err != nil { + return nil, err + } + currResourceVersion := metaObj.GetResourceVersion() + + watchInterface, err := lw.Watch(api.ListOptions{ResourceVersion: currResourceVersion}) + if err != nil { + return nil, err + } + + return watch.Until(timeout, watchInterface, remainingConditions...) +} diff --git a/vendor/k8s.io/client-go/tools/cache/mutation_detector.go b/vendor/k8s.io/client-go/tools/cache/mutation_detector.go new file mode 100644 index 000000000..e27e339e0 --- /dev/null +++ b/vendor/k8s.io/client-go/tools/cache/mutation_detector.go @@ -0,0 +1,135 @@ +/* +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 ( + "fmt" + "os" + "reflect" + "strconv" + "sync" + "time" + + "k8s.io/client-go/pkg/api" + "k8s.io/client-go/pkg/runtime" + "k8s.io/client-go/pkg/util/diff" +) + +var mutationDetectionEnabled = false + +func init() { + mutationDetectionEnabled, _ = strconv.ParseBool(os.Getenv("KUBE_CACHE_MUTATION_DETECTOR")) +} + +type CacheMutationDetector interface { + AddObject(obj interface{}) + Run(stopCh <-chan struct{}) +} + +func NewCacheMutationDetector(name string) CacheMutationDetector { + if !mutationDetectionEnabled { + return dummyMutationDetector{} + } + return &defaultCacheMutationDetector{name: name, period: 1 * time.Second} +} + +type dummyMutationDetector struct{} + +func (dummyMutationDetector) Run(stopCh <-chan struct{}) { +} +func (dummyMutationDetector) AddObject(obj interface{}) { +} + +// defaultCacheMutationDetector gives a way to detect if a cached object has been mutated +// It has a list of cached objects and their copies. I haven't thought of a way +// to see WHO is mutating it, just that it's getting mutated. +type defaultCacheMutationDetector struct { + name string + period time.Duration + + lock sync.Mutex + cachedObjs []cacheObj + + // failureFunc is injectable for unit testing. If you don't have it, the process will panic. + // This panic is intentional, since turning on this detection indicates you want a strong + // failure signal. This failure is effectively a p0 bug and you can't trust process results + // after a mutation anyway. + failureFunc func(message string) +} + +// cacheObj holds the actual object and a copy +type cacheObj struct { + cached interface{} + copied interface{} +} + +func (d *defaultCacheMutationDetector) Run(stopCh <-chan struct{}) { + // we DON'T want protection from panics. If we're running this code, we want to die + go func() { + for { + d.CompareObjects() + + select { + case <-stopCh: + return + case <-time.After(d.period): + } + } + }() +} + +// AddObject makes a deep copy of the object for later comparison. It only works on runtime.Object +// but that covers the vast majority of our cached objects +func (d *defaultCacheMutationDetector) AddObject(obj interface{}) { + if _, ok := obj.(DeletedFinalStateUnknown); ok { + return + } + if _, ok := obj.(runtime.Object); !ok { + return + } + + copiedObj, err := api.Scheme.Copy(obj.(runtime.Object)) + if err != nil { + return + } + + d.lock.Lock() + defer d.lock.Unlock() + d.cachedObjs = append(d.cachedObjs, cacheObj{cached: obj, copied: copiedObj}) +} + +func (d *defaultCacheMutationDetector) CompareObjects() { + d.lock.Lock() + defer d.lock.Unlock() + + altered := false + for i, obj := range d.cachedObjs { + if !reflect.DeepEqual(obj.cached, obj.copied) { + fmt.Printf("CACHE %s[%d] ALTERED!\n%v\n", d.name, i, diff.ObjectDiff(obj.cached, obj.copied)) + altered = true + } + } + + if altered { + msg := fmt.Sprintf("cache %s modified", d.name) + if d.failureFunc != nil { + d.failureFunc(msg) + return + } + panic(msg) + } +} diff --git a/vendor/k8s.io/client-go/1.5/tools/cache/reflector.go b/vendor/k8s.io/client-go/tools/cache/reflector.go similarity index 90% rename from vendor/k8s.io/client-go/1.5/tools/cache/reflector.go rename to vendor/k8s.io/client-go/tools/cache/reflector.go index 8dacf3ac1..eadb55120 100644 --- a/vendor/k8s.io/client-go/1.5/tools/cache/reflector.go +++ b/vendor/k8s.io/client-go/tools/cache/reflector.go @@ -34,27 +34,18 @@ import ( "time" "github.com/golang/glog" - "k8s.io/client-go/1.5/pkg/api" - apierrs "k8s.io/client-go/1.5/pkg/api/errors" - "k8s.io/client-go/1.5/pkg/api/meta" - "k8s.io/client-go/1.5/pkg/runtime" - utilruntime "k8s.io/client-go/1.5/pkg/util/runtime" - "k8s.io/client-go/1.5/pkg/util/wait" - "k8s.io/client-go/1.5/pkg/watch" + "k8s.io/client-go/pkg/api" + apierrs "k8s.io/client-go/pkg/api/errors" + "k8s.io/client-go/pkg/api/meta" + "k8s.io/client-go/pkg/runtime" + utilruntime "k8s.io/client-go/pkg/util/runtime" + "k8s.io/client-go/pkg/util/wait" + "k8s.io/client-go/pkg/watch" ) -// ListerWatcher is any object that knows how to perform an initial list and start a watch on a resource. -type ListerWatcher interface { - // List should return a list type object; the Items field will be extracted, and the - // ResourceVersion field will be used to start the watch in the right place. - List(options api.ListOptions) (runtime.Object, error) - // Watch should begin a watch at the specified version. - Watch(options api.ListOptions) (watch.Interface, error) -} - // Reflector watches a specified resource and causes all changes to be reflected in the given store. type Reflector struct { - // name identifies this reflector. By default it will be a file:line if possible. + // name identifies this reflector. By default it will be a file:line if possible. name string // The type of object we expect to place in the store. @@ -83,12 +74,6 @@ var ( // However, it can be modified to avoid periodic resync to break the // TCP connection. minWatchTimeout = 5 * time.Minute - // If we are within 'forceResyncThreshold' from the next planned resync - // and are just before issuing Watch(), resync will be forced now. - forceResyncThreshold = 3 * time.Second - // We try to set timeouts for Watch() so that we will finish about - // than 'timeoutThreshold' from next planned periodic resync. - timeoutThreshold = 1 * time.Second ) // NewNamespaceKeyedIndexerAndReflector creates an Indexer and a Reflector @@ -123,9 +108,9 @@ func NewNamedReflector(name string, lw ListerWatcher, expectedType interface{}, return r } -// internalPackages are packages that ignored when creating a default reflector name. These packages are in the common +// internalPackages are packages that ignored when creating a default reflector name. These packages are in the common // call chains to NewReflector, so they'd be low entropy names for reflectors -var internalPackages = []string{"kubernetes/pkg/client/cache/", "kubernetes/pkg/controller/framework/", "/runtime/asm_"} +var internalPackages = []string{"kubernetes/pkg/client/cache/", "/runtime/asm_"} // getDefaultReflectorName walks back through the call stack until we find a caller from outside of the ignoredPackages // it returns back a shortpath/filename:line to aid in identification of this reflector when it starts logging @@ -164,8 +149,8 @@ func hasPackage(file string, ignoredPackages []string) bool { // trimPackagePrefix reduces duplicate values off the front of a package name. func trimPackagePrefix(file string) string { - if l := strings.LastIndex(file, "k8s.io/client-go/1.5/pkg/"); l >= 0 { - return file[l+len("k8s.io/client-go/1.5/"):] + if l := strings.LastIndex(file, "k8s.io/client-go/pkg/"); l >= 0 { + return file[l+len("k8s.io/client-go/"):] } if l := strings.LastIndex(file, "/src/"); l >= 0 { return file[l+5:] @@ -274,12 +259,16 @@ func (r *Reflector) ListAndWatch(stopCh <-chan struct{}) error { r.setLastSyncResourceVersion(resourceVersion) resyncerrc := make(chan error, 1) + cancelCh := make(chan struct{}) + defer close(cancelCh) go func() { for { select { case <-resyncCh: case <-stopCh: return + case <-cancelCh: + return } glog.V(4).Infof("%s: forcing resync", r.name) if err := r.store.Resync(); err != nil { diff --git a/vendor/k8s.io/client-go/1.5/tools/cache/shared_informer.go b/vendor/k8s.io/client-go/tools/cache/shared_informer.go similarity index 94% rename from vendor/k8s.io/client-go/1.5/tools/cache/shared_informer.go rename to vendor/k8s.io/client-go/tools/cache/shared_informer.go index ffa6a919a..7687bca47 100644 --- a/vendor/k8s.io/client-go/1.5/tools/cache/shared_informer.go +++ b/vendor/k8s.io/client-go/tools/cache/shared_informer.go @@ -21,9 +21,9 @@ import ( "sync" "time" - "k8s.io/client-go/1.5/pkg/runtime" - utilruntime "k8s.io/client-go/1.5/pkg/util/runtime" - "k8s.io/client-go/1.5/pkg/util/wait" + "k8s.io/client-go/pkg/runtime" + utilruntime "k8s.io/client-go/pkg/util/runtime" + "k8s.io/client-go/pkg/util/wait" "github.com/golang/glog" ) @@ -68,11 +68,12 @@ func NewSharedInformer(lw ListerWatcher, objType runtime.Object, resyncPeriod ti // be shared amongst all consumers. func NewSharedIndexInformer(lw ListerWatcher, objType runtime.Object, resyncPeriod time.Duration, indexers Indexers) SharedIndexInformer { sharedIndexInformer := &sharedIndexInformer{ - processor: &sharedProcessor{}, - indexer: NewIndexer(DeletionHandlingMetaNamespaceKeyFunc, indexers), - listerWatcher: lw, - objectType: objType, - fullResyncPeriod: resyncPeriod, + processor: &sharedProcessor{}, + indexer: NewIndexer(DeletionHandlingMetaNamespaceKeyFunc, indexers), + listerWatcher: lw, + objectType: objType, + fullResyncPeriod: resyncPeriod, + cacheMutationDetector: NewCacheMutationDetector(fmt.Sprintf("%T", objType)), } return sharedIndexInformer } @@ -109,7 +110,8 @@ type sharedIndexInformer struct { indexer Indexer controller *Controller - processor *sharedProcessor + processor *sharedProcessor + cacheMutationDetector CacheMutationDetector // This block is tracked to handle late initialization of the controller listerWatcher ListerWatcher @@ -180,6 +182,7 @@ func (s *sharedIndexInformer) Run(stopCh <-chan struct{}) { }() s.stopCh = stopCh + s.cacheMutationDetector.Run(stopCh) s.processor.run(stopCh) s.controller.Run(stopCh) } @@ -204,7 +207,7 @@ func (s *sharedIndexInformer) LastSyncResourceVersion() string { s.startedLock.Lock() defer s.startedLock.Unlock() - if s.controller == nil { + if s.controller == nil || s.controller.reflector == nil { return "" } return s.controller.reflector.LastSyncResourceVersion() @@ -273,6 +276,7 @@ func (s *sharedIndexInformer) HandleDeltas(obj interface{}) error { for _, d := range obj.(Deltas) { switch d.Type { case Sync, Added, Updated: + s.cacheMutationDetector.AddObject(d.Object) if old, exists, err := s.indexer.Get(d.Object); err == nil && exists { if err := s.indexer.Update(d.Object); err != nil { return err diff --git a/vendor/k8s.io/client-go/1.5/tools/cache/store.go b/vendor/k8s.io/client-go/tools/cache/store.go similarity index 99% rename from vendor/k8s.io/client-go/1.5/tools/cache/store.go rename to vendor/k8s.io/client-go/tools/cache/store.go index 6dcf50a66..d8e65e495 100755 --- a/vendor/k8s.io/client-go/1.5/tools/cache/store.go +++ b/vendor/k8s.io/client-go/tools/cache/store.go @@ -20,7 +20,7 @@ import ( "fmt" "strings" - "k8s.io/client-go/1.5/pkg/api/meta" + "k8s.io/client-go/pkg/api/meta" ) // Store is a generic object storage interface. Reflector knows how to watch a server diff --git a/vendor/k8s.io/client-go/1.5/tools/cache/thread_safe_store.go b/vendor/k8s.io/client-go/tools/cache/thread_safe_store.go similarity index 99% rename from vendor/k8s.io/client-go/1.5/tools/cache/thread_safe_store.go rename to vendor/k8s.io/client-go/tools/cache/thread_safe_store.go index 913a77ac2..1f5fb3543 100644 --- a/vendor/k8s.io/client-go/1.5/tools/cache/thread_safe_store.go +++ b/vendor/k8s.io/client-go/tools/cache/thread_safe_store.go @@ -20,7 +20,7 @@ import ( "fmt" "sync" - "k8s.io/client-go/1.5/pkg/util/sets" + "k8s.io/client-go/pkg/util/sets" ) // ThreadSafeStore is an interface that allows concurrent access to a storage backend. diff --git a/vendor/k8s.io/client-go/1.5/tools/cache/undelta_store.go b/vendor/k8s.io/client-go/tools/cache/undelta_store.go similarity index 100% rename from vendor/k8s.io/client-go/1.5/tools/cache/undelta_store.go rename to vendor/k8s.io/client-go/tools/cache/undelta_store.go diff --git a/vendor/k8s.io/client-go/1.5/tools/clientcmd/api/helpers.go b/vendor/k8s.io/client-go/tools/clientcmd/api/helpers.go similarity index 100% rename from vendor/k8s.io/client-go/1.5/tools/clientcmd/api/helpers.go rename to vendor/k8s.io/client-go/tools/clientcmd/api/helpers.go diff --git a/vendor/k8s.io/client-go/1.5/tools/clientcmd/api/register.go b/vendor/k8s.io/client-go/tools/clientcmd/api/register.go similarity index 94% rename from vendor/k8s.io/client-go/1.5/tools/clientcmd/api/register.go rename to vendor/k8s.io/client-go/tools/clientcmd/api/register.go index a7f46d5ac..efca4eea1 100644 --- a/vendor/k8s.io/client-go/1.5/tools/clientcmd/api/register.go +++ b/vendor/k8s.io/client-go/tools/clientcmd/api/register.go @@ -17,8 +17,8 @@ limitations under the License. package api import ( - "k8s.io/client-go/1.5/pkg/api/unversioned" - "k8s.io/client-go/1.5/pkg/runtime" + "k8s.io/client-go/pkg/api/unversioned" + "k8s.io/client-go/pkg/runtime" ) // SchemeGroupVersion is group version used to register these objects diff --git a/vendor/k8s.io/client-go/1.5/tools/clientcmd/api/types.go b/vendor/k8s.io/client-go/tools/clientcmd/api/types.go similarity index 95% rename from vendor/k8s.io/client-go/1.5/tools/clientcmd/api/types.go rename to vendor/k8s.io/client-go/tools/clientcmd/api/types.go index 7b7ed9f5b..af4d9fef0 100644 --- a/vendor/k8s.io/client-go/1.5/tools/clientcmd/api/types.go +++ b/vendor/k8s.io/client-go/tools/clientcmd/api/types.go @@ -17,7 +17,7 @@ limitations under the License. package api import ( - "k8s.io/client-go/1.5/pkg/runtime" + "k8s.io/client-go/pkg/runtime" ) // Where possible, json tags match the cli argument names. @@ -28,12 +28,14 @@ import ( type Config struct { // Legacy field from pkg/api/types.go TypeMeta. // TODO(jlowdermilk): remove this after eliminating downstream dependencies. + // +optional 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. + // +optional APIVersion string `json:"apiVersion,omitempty"` // Preferences holds general information to be use for cli interactions Preferences Preferences `json:"preferences"` @@ -46,13 +48,16 @@ type Config struct { // 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 + // +optional Extensions map[string]runtime.Object `json:"extensions,omitempty"` } // IMPORTANT if you add fields to this struct, please update IsConfigEmpty() type Preferences struct { + // +optional Colors bool `json:"colors,omitempty"` // Extensions holds additional information. This is useful for extenders so that reads and writes don't clobber unknown fields + // +optional Extensions map[string]runtime.Object `json:"extensions,omitempty"` } @@ -63,14 +68,19 @@ type Cluster struct { // 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). + // +optional APIVersion string `json:"api-version,omitempty"` // InsecureSkipTLSVerify skips the validity check for the server's certificate. This will make your HTTPS connections insecure. + // +optional InsecureSkipTLSVerify bool `json:"insecure-skip-tls-verify,omitempty"` // CertificateAuthority is the path to a cert file for the certificate authority. + // +optional CertificateAuthority string `json:"certificate-authority,omitempty"` // CertificateAuthorityData contains PEM-encoded certificate authority certificates. Overrides CertificateAuthority + // +optional 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 + // +optional Extensions map[string]runtime.Object `json:"extensions,omitempty"` } @@ -79,26 +89,37 @@ 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. + // +optional ClientCertificate string `json:"client-certificate,omitempty"` // ClientCertificateData contains PEM-encoded data from a client cert file for TLS. Overrides ClientCertificate + // +optional ClientCertificateData []byte `json:"client-certificate-data,omitempty"` // ClientKey is the path to a client key file for TLS. + // +optional ClientKey string `json:"client-key,omitempty"` // ClientKeyData contains PEM-encoded data from a client key file for TLS. Overrides ClientKey + // +optional ClientKeyData []byte `json:"client-key-data,omitempty"` // Token is the bearer token for authentication to the kubernetes cluster. + // +optional 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. + // +optional TokenFile string `json:"tokenFile,omitempty"` // Impersonate is the username to act-as. + // +optional Impersonate string `json:"act-as,omitempty"` // Username is the username for basic authentication to the kubernetes cluster. + // +optional Username string `json:"username,omitempty"` // Password is the password for basic authentication to the kubernetes cluster. + // +optional Password string `json:"password,omitempty"` // AuthProvider specifies a custom authentication plugin for the kubernetes cluster. + // +optional 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 + // +optional Extensions map[string]runtime.Object `json:"extensions,omitempty"` } @@ -111,14 +132,17 @@ type Context struct { // AuthInfo is the name of the authInfo for this context AuthInfo string `json:"user"` // Namespace is the default namespace to use on unspecified requests + // +optional Namespace string `json:"namespace,omitempty"` // Extensions holds additional information. This is useful for extenders so that reads and writes don't clobber unknown fields + // +optional Extensions map[string]runtime.Object `json:"extensions,omitempty"` } // AuthProviderConfig holds the configuration for a specified auth provider. type AuthProviderConfig struct { - Name string `json:"name"` + Name string `json:"name"` + // +optional Config map[string]string `json:"config,omitempty"` } diff --git a/vendor/k8s.io/client-go/1.5/tools/metrics/metrics.go b/vendor/k8s.io/client-go/tools/metrics/metrics.go similarity index 100% rename from vendor/k8s.io/client-go/1.5/tools/metrics/metrics.go rename to vendor/k8s.io/client-go/tools/metrics/metrics.go diff --git a/vendor/k8s.io/client-go/1.5/transport/cache.go b/vendor/k8s.io/client-go/transport/cache.go similarity index 98% rename from vendor/k8s.io/client-go/1.5/transport/cache.go rename to vendor/k8s.io/client-go/transport/cache.go index 6902757e1..6e52d771e 100644 --- a/vendor/k8s.io/client-go/1.5/transport/cache.go +++ b/vendor/k8s.io/client-go/transport/cache.go @@ -23,7 +23,7 @@ import ( "sync" "time" - utilnet "k8s.io/client-go/1.5/pkg/util/net" + utilnet "k8s.io/client-go/pkg/util/net" ) // TlsTransportCache caches TLS http.RoundTrippers different configurations. The diff --git a/vendor/k8s.io/client-go/1.5/transport/config.go b/vendor/k8s.io/client-go/transport/config.go similarity index 100% rename from vendor/k8s.io/client-go/1.5/transport/config.go rename to vendor/k8s.io/client-go/transport/config.go diff --git a/vendor/k8s.io/client-go/1.5/transport/round_trippers.go b/vendor/k8s.io/client-go/transport/round_trippers.go similarity index 100% rename from vendor/k8s.io/client-go/1.5/transport/round_trippers.go rename to vendor/k8s.io/client-go/transport/round_trippers.go diff --git a/vendor/k8s.io/client-go/1.5/transport/transport.go b/vendor/k8s.io/client-go/transport/transport.go similarity index 100% rename from vendor/k8s.io/client-go/1.5/transport/transport.go rename to vendor/k8s.io/client-go/transport/transport.go